Store the mangled name as a string_view
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7bb43059
CB
12019-10-22 Christian Biesinger <cbiesinger@google.com>
2
3 * symtab.c (struct demangled_name_entry): Change type of mangled
4 to gdb::string_view. Also adds a constructor that takes the
5 mangled name.
6 (hash_demangled_name_entry): Update.
7 (eq_demangled_name_entry): Update.
8 (free_demangled_name_entry): New function to call the destructor
9 now that this is not a POD anymore.
10 (create_demangled_names_hash): Pass free_demangled_name_entry to
11 htab_create_alloc.
12 (symbol_set_names): Update.
13
7ba99d21
AT
142019-10-21 Ali Tamur <tamu@google.com>
15
16 * dwarf2read.c (dir_index): Change type.
17 (file_name_index): Likewise.
18 (line_header::include_dir_at): Change comment and implementation on
19 whether it is DWARF 5.
20 (line_header::is_valid_file_index): New function.
21 (line_header::file_name_at): Change comment and implementation on
22 whether it is DWARF 5.
23 (line_header::file_names): Change to private field renamed as
24 m_file_names and introduce a new accessor method.
25 (line_header::file_names_size): New method.
26 (line_header::include_dirs): Change to private field and rename as
27 m_include_dirs.
28 (dw2_get_file_names_reader): Define local var at a smaller scope and
29 reflect API change.
30 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
31 (process_structure_scope): Likewise.
32 (line_header::add_include_dir): Change message and reflect renaming.
33 (line_header::add_file_name): Likewise.
34 (read_formatted_entries): Handle DW_FORM_data16.
35 (dwarf_decode_line_header): Fix line header length calculation.
36 (psymtab_include_file_name): Change comment and API.
37 (lnp_state_machine::m_file): Update comment and reflect type change.
38 (lnp_state_machine::record_line): Reflect type change.
39 (dwarf_decode_lines): Reflect API change.
40 (file_file_name): Likewise.
41 (file_full_name): Likewise.
42
45f47c3a
AB
432019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
44
45 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
46
e5f3c0e3
TT
472019-10-21 Tom Tromey <tom@tromey.com>
48
49 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
50
a0a461e5
TT
512019-10-21 Tom Tromey <tom@tromey.com>
52
53 * configure.ac (nm.h): Conditionally create nm.h link. Subst
54 NM_H. Use AC_CONFIG_LINKS.
55 * configure: Rebuild.
56 * Makefile.in (NM_H): New variable.
57 (generated_files): Add NM_H. Remove gcore.
58 (nm.h, stamp-nmh): New targets.
59
54d83b8d
TT
602019-10-20 Tom Tromey <tom@tromey.com>
61
62 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
63 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
64 obsolete comment.
65 (put_objfile_before): Now static.
66
23771117
SM
672019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
68
69 * gdbsupport/common-utils.h (startswith): Change return type to
70 bool.
71
39ef2f62
CB
722019-10-19 Christian Biesinger <cbiesinger@google.com>
73
74 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
75 * breakpoint.c (bp_locations_compare): Rename to...
76 (bp_location_is_less_than): ...this, and change to std::sort semantics.
77 (update_global_location_list): Use std::sort instead of qsort.
78 * buildsym.c (compare_line_numbers): Rename to...
79 (lte_is_less_than): ...this, and change to std::sort semantics.
80 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
81 instead of qsort.
82 * disasm.c (compare_lines): Rename to...
83 (line_is_less_than): ...this, and change to std::sort semantics.
84 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
85 of qsort.
86 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
87 (fde_is_less_than): ...this, and change to std::sort semantics.
88 (dwarf2_build_frame_info): Call std::sort instead of qsort.
89 * mdebugread.c (compare_blocks):
90 (block_is_less_than): ...this, and change to std::sort semantics.
91 (sort_blocks): Call std::sort instead of qsort.
92 * objfiles.c (qsort_cmp): Rename to...
93 (sort_cmp): ...this, and change to std::sort semantics.
94 (update_section_map): Call std::sort instead of qsort.
95 * remote.c (compare_pnums): Remove.
96 (map_regcache_remote_table): Call std::sort instead of qsort.
97 * utils.c (compare_positive_ints): Remove.
98 * utils.h (compare_positive_ints): Remove.
99 * xcoffread.c (compare_lte): Remove.
100 (arrange_linetable): Call std::sort instead of qsort.
101
f71433ee
SDJ
1022019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
103
104 * symfile.c (init_entry_point_info): Fix typo.
105 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
106
85102364
TV
1072019-10-18 Tom de Vries <tdevries@suse.de>
108
109 * aarch64-tdep.c: Fix typos in comments.
110 * ada-lang.c: Same.
111 * ada-tasks.c: Same.
112 * alpha-tdep.c: Same.
113 * alpha-tdep.h: Same.
114 * amd64-nat.c: Same.
115 * amd64-windows-tdep.c: Same.
116 * arc-tdep.c: Same.
117 * arc-tdep.h: Same.
118 * arch-utils.c: Same.
119 * arm-nbsd-tdep.c: Same.
120 * arm-tdep.c: Same.
121 * ax-gdb.c: Same.
122 * blockframe.c: Same.
123 * btrace.c: Same.
124 * c-varobj.c: Same.
125 * coff-pe-read.c: Same.
126 * coffread.c: Same.
127 * cris-tdep.c: Same.
128 * darwin-nat.c: Same.
129 * dbxread.c: Same.
130 * dcache.c: Same.
131 * disasm.c: Same.
132 * dtrace-probe.c: Same.
133 * dwarf-index-write.c: Same.
134 * dwarf2-frame-tailcall.c: Same.
135 * dwarf2-frame.c: Same.
136 * dwarf2read.c: Same.
137 * eval.c: Same.
138 * exceptions.c: Same.
139 * fbsd-tdep.c: Same.
140 * findvar.c: Same.
141 * frame.c: Same.
142 * frv-tdep.c: Same.
143 * gnu-v3-abi.c: Same.
144 * go32-nat.c: Same.
145 * h8300-tdep.c: Same.
146 * hppa-tdep.c: Same.
147 * i386-linux-tdep.c: Same.
148 * i386-tdep.c: Same.
149 * ia64-libunwind-tdep.c: Same.
150 * ia64-tdep.c: Same.
151 * infcmd.c: Same.
152 * infrun.c: Same.
153 * linespec.c: Same.
154 * linux-nat.c: Same.
155 * linux-thread-db.c: Same.
156 * machoread.c: Same.
157 * mdebugread.c: Same.
158 * mep-tdep.c: Same.
159 * mn10300-tdep.c: Same.
160 * namespace.c: Same.
161 * objfiles.c: Same.
162 * opencl-lang.c: Same.
163 * or1k-tdep.c: Same.
164 * osabi.c: Same.
165 * ppc-linux-nat.c: Same.
166 * ppc-linux-tdep.c: Same.
167 * ppc-sysv-tdep.c: Same.
168 * printcmd.c: Same.
169 * procfs.c: Same.
170 * record-btrace.c: Same.
171 * record-full.c: Same.
172 * remote-fileio.c: Same.
173 * remote.c: Same.
174 * rs6000-tdep.c: Same.
175 * s12z-tdep.c: Same.
176 * score-tdep.c: Same.
177 * ser-base.c: Same.
178 * ser-go32.c: Same.
179 * skip.c: Same.
180 * sol-thread.c: Same.
181 * solib-svr4.c: Same.
182 * solib.c: Same.
183 * source.c: Same.
184 * sparc-nat.c: Same.
185 * sparc-sol2-tdep.c: Same.
186 * sparc-tdep.c: Same.
187 * sparc64-tdep.c: Same.
188 * stabsread.c: Same.
189 * stack.c: Same.
190 * symfile.c: Same.
191 * symtab.c: Same.
192 * target-descriptions.c: Same.
193 * target-float.c: Same.
194 * thread.c: Same.
195 * utils.c: Same.
196 * valops.c: Same.
197 * valprint.c: Same.
198 * value.c: Same.
199 * varobj.c: Same.
200 * windows-nat.c: Same.
201 * xcoffread.c: Same.
202 * xstormy16-tdep.c: Same.
203 * xtensa-tdep.c: Same.
204
c5adaa19
TT
2052019-10-17 Tom Tromey <tromey@adacore.com>
206
207 * configure: Rebuild.
208 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
209 in AC_CONFIG_FILES invocation.
210 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
211 new-style config.status invocation.
212
405feb71
TV
2132019-10-17 Tom de Vries <tdevries@suse.de>
214
215 * arm-nbsd-nat.c: Fix typos in comments.
216 * arm-tdep.c: Same.
217 * darwin-nat-info.c: Same.
218 * dwarf2read.c: Same.
219 * elfread.c: Same.
220 * event-top.c: Same.
221 * findvar.c: Same.
222 * gdbtypes.c: Same.
223 * hppa-tdep.c: Same.
224 * i386-tdep.c: Same.
225 * jit.c: Same.
226 * main.c: Same.
227 * mdebugread.c: Same.
228 * moxie-tdep.c: Same.
229 * nto-procfs.c: Same.
230 * osabi.c: Same.
231 * ppc-linux-tdep.c: Same.
232 * remote.c: Same.
233 * riscv-tdep.c: Same.
234 * s390-tdep.c: Same.
235 * sh-tdep.c: Same.
236 * sparc-linux-tdep.c: Same.
237 * sparc-nat.c: Same.
238 * stack.c: Same.
239 * target-descriptions.c: Same.
240 * top.c: Same.
241 * varobj.c: Same.
242
befcd486
TT
2432019-10-16 Tom Tromey <tom@tromey.com>
244
245 * objfiles.h (struct objfile) <original_name>: Now const.
246
17bfe554
CB
2472019-10-16 Christian Biesinger <cbiesinger@google.com>
248
249 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
250 pass on to sigsetjmp's second argument.
251 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
252
950b7495
KS
2532019-10-16 Keith Seitz <keiths@redhat.com>
254
255 PR gdb/23567
256 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
257 sections whose size is greater than the file size.
258
ff371ec9
JW
2592019-10-16 Jim Wilson <jimw@sifive.com>
260
261 * riscv-tdep.c (riscv_gcc_target_options): New.
262 (riscv_gnu_triplet_regexp): New.
263 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
264 set_gdbarch_gnu_triplet_regexp.
265
fec4e896
CB
2662019-10-16 Christian Biesinger <cbiesinger@google.com>
267
268 * Makefile.in: Add xml-builtin.h.
269 * features/feature_to_c.sh: Add an include for xml-builtin.h
270 to ensure that the compiler checks that the types match.
271 * xml-builtin.h: New file.
272 * xml-support.c (fetch_xml_builtin): Add missing const.
273 * xml-support.h: Remove declaration of xml_builtins.
274
d10eccaa
TV
2752019-10-16 Tom de Vries <tdevries@suse.de>
276
277 PR tdep/25096
278 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
279 (amd64_classify_aggregate): ... here.
280 (amd64_classify_aggregate_field): Handled fiels of nested structs
281 recursively.
282
745ff14e
TV
2832019-10-16 Tom de Vries <tdevries@suse.de>
284
285 PR tdep/24104
286 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
287 that handles 'theclass'.
288
791b7405
AB
2892019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * linespec.c (decode_digits_ordinary): Update comment.
292 * make-target-delegates: No longer need to handle VEC case.
293 * memrange.c (normalize_mem_ranges): Update comment.
294 * namespace.c (add_using_directive): Update comment.
295 * objc-lang.c (uniquify_strings): Update comment.
296 * ppc-linux-nat.c (struct thread_points): Update comment.
297 * probe.h (find_probes_in_objfile): Update comment.
298 * target.h (enum flash_preserve_mode): Update comment.
299 * varobj.c (varobj_restrict_range): Update comment.
300 * varobj.h (varobj_list_children): Update comment.
301
0dc32745
AB
3022019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * Makefile.in: Remove references to vec.h and vec.c.
305 * aarch64-tdep.c: No longer include vec.h.
306 * ada-lang.c: Likewise.
307 * ada-lang.h: Likewise.
308 * arm-tdep.c: Likewise.
309 * ax.h: Likewise.
310 * breakpoint.h: Likewise.
311 * charset.c: Likewise.
312 * cp-support.h: Likewise.
313 * dtrace-probe.c: Likewise.
314 * dwarf2read.c: Likewise.
315 * extension.h: Likewise.
316 * gdb_bfd.c: Likewise.
317 * gdbsupport/gdb_vecs.h: Likewise.
318 * gdbsupport/vec.c: Remove.
319 * gdbsupport/vec.h: Remove.
320 * gdbthread.h: Likewise.
321 * guile/scm-type.c: Likewise.
322 * inline-frame.c: Likewise.
323 * machoread.c: Likewise.
324 * memattr.c: Likewise.
325 * memrange.h: Likewise.
326 * namespace.h: Likewise.
327 * nat/linux-btrace.h: Likewise.
328 * osdata.c: Likewise.
329 * parser-defs.h: Likewise.
330 * progspace.h: Likewise.
331 * python/py-type.c: Likewise.
332 * record-btrace.c: Likewise.
333 * rust-exp.y: Likewise.
334 * solib-target.c: Likewise.
335 * stap-probe.c: Likewise.
336 * target-descriptions.c: Likewise.
337 * target-memory.c: Likewise.
338 * target.h: Likewise.
339 * varobj.c: Likewise.
340 * varobj.h: Likewise.
341 * xml-support.h: Likewise.
342
ae640021
AB
3432019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
346 Update for new std::vector based implementation.
347 (process_psymtab_comp_unit_reader): Likewise.
348 (scan_partial_symbols): Likewise.
349 (recursively_compute_inclusions): Likewise.
350 (compute_compunit_symtab_includes): Likewise.
351 (process_imported_unit_die): Likewise.
352 (queue_and_load_dwo_tu): Likewise.
353 (follow_die_sig_1): Likewise.
354 * gdb/dwarf2read.h: Remove DEF_VEC_P.
355 (typedef dwarf2_per_cu_ptr): Remove.
356 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
357 function.
358 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
359 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
360 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
361 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
362 std::vector.
363
55dfc88f
TT
3642019-10-15 Tom Tromey <tromey@adacore.com>
365
366 * windows-nat.c (windows_nat_target::resume): Use %x when logging
367 TID.
368
96b49c5e
TT
3692019-10-15 Tom Tromey <tromey@adacore.com>
370
371 * windows-nat.c (windows_nat_target::fetch_registers)
372 (windows_nat_target::store_registers): Rename "pid" to "tid".
373
953cff56
TT
3742019-10-15 Tom Tromey <tromey@adacore.com>
375
376 * gdbarch.h, gdbarch.c: Rebuild.
377 * gdbarch.sh (gcc_target_options): Change return type to
378 std::string.
379 * compile/compile.c (get_args): Update.
380 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
381 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
382 std::string.
383 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
384 std::string.
385 * arch-utils.c (default_gcc_target_options): Return std::string.
386 * arch-utils.h (default_gcc_target_options): Return std::string.
387 * s390-tdep.c (s390_gcc_target_options): Return std::string.
388
81e6b8eb
CB
3892019-10-15 Christian Biesinger <cbiesinger@google.com>
390
391 * breakpoint.c (breakpoint_chain): Make static.
392 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
393 of accessing breakpoint_chain.
394
95da600f
CB
3952019-10-15 Christian Biesinger <cbiesinger@google.com>
396
397 * breakpoint.c (iterate_over_breakpoints): Change function pointer
398 to a gdb::function_view and return value to bool.
399 * breakpoint.h (iterate_over_breakpoints): Likewise.
400 * dummy-frame.c (pop_dummy_frame_bpt): Update.
401 (pop_dummy_frame): Update.
402 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
403 (gdbscm_breakpoints): Update.
404 * python/py-breakpoint.c (build_bp_list): Update.
405 (gdbpy_breakpoints): Update.
406 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
407 Update.
408 (bpfinishpy_handle_stop): Update.
409 (bpfinishpy_handle_exit): Update.
410 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
411 (svr4_update_solib_event_breakpoints): Update.
412
ba18312d
AA
4132019-10-15 Andreas Arnez <arnez@linux.ibm.com>
414
415 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
416 when unwrapping single-field structs.
417
6acc1a0b
SM
4182019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
419
420 * dwarf2read.c: Remove includes.
421
284782de
SM
4222019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
423
424 * ui-out.c (ui_out::call_do_message): Silence
425 -Wformat-nonliteral warning.
426
073bbbb0
SM
4272019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
428
429 * breakpoint.c: Remove some includes: continuations.h, skip.h,
430 mi/mi-main.h, readline/readline.h, readline/history.h. Add
431 include: readline/tilde.h.
432
7b9a15e1
CB
4332019-10-12 Christian Biesinger <cbiesinger@google.com>
434
435 * remote.c (remote_target::get_trace_status): Remove declaration of
436 trace_regblock_size.
437
cc8dee1f
CB
4382019-10-12 Christian Biesinger <cbiesinger@google.com>
439
440 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
441 (show_user): Remove declaration of cmdlist.
442 * cli/cli-cmds.h (max_user_call_depth): Declare.
443 * cli/cli-script.c (execute_user_command): Remove declaration
444 of max_user_call_depth.
445
a83d4ef6
JW
4462019-10-11 Jim Wilson <jimw@sifive.com>
447
5f93c5a6
JW
448 * gdbsupport/print-utils.h (pulongest): Fix comment.
449 (plongest): Likewise.
450 (phex): Add missing comment, mention leading zeros.
451 (phex_nz): Add mention of no leading zeros to comment.
452
a83d4ef6
JW
453 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
454 plongest instead of unsigned long long cast.
455
26344e0c
CB
4562019-10-10 Christian Biesinger <cbiesinger@google.com>
457
458 * main.c (captured_main_1): Include gdbtk.h and remove declarations
459 for external_editor_command and gdbtk_test.
460
c2c440a9
CB
4612019-10-10 Christian Biesinger <cbiesinger@google.com>
462
463 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
464 * varobj.c (varobjdebug): Move comment to...
465 * varobj.h (varobjdebug): ...here, and declare.
466
a31bff9d
TT
4672019-10-09 Tom Tromey <tom@tromey.com>
468
469 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
470 erase_data_content.
471
7523da63
TT
4722019-10-09 Tom Tromey <tom@tromey.com>
473
474 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
475 * tui/tui-stack.c (tui_locator_window::rerender): Update.
476 * tui/tui-command.c (tui_cmd_window::resize)
477 (tui_refresh_cmd_win): Update.
478 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
479 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
480 * tui/tui-data.c (~tui_gen_win_info): Remove.
481 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
482 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
483 (tui_redisplay_readline, tui_mld_flush)
484 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
485 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
486 (tui_data_window::erase_data_content)
487 (tui_data_item_window::rerender)
488 (tui_data_item_window::refresh_window): Update.
489 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
490 (box_win, tui_gen_win_info::make_window)
491 (tui_gen_win_info::make_visible): Update.
492 (tui_delete_win): Remove.
493 * tui/tui-winsource.c
494 (tui_source_window_base::do_erase_source_content): Update.
495 (tui_show_source_line, tui_source_window_base::update_tab_width)
496 (tui_source_window_base::update_exec_info): Update.
497 * tui/tui-data.h (struct curses_deleter): New.
498 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
499 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
500
a7798e7f
TT
5012019-10-09 Tom Tromey <tom@tromey.com>
502
503 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
504
5c45899e
TT
5052019-10-09 Tom Tromey <tom@tromey.com>
506
507 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
508 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
509
6d7fd9aa
TT
5102019-10-09 Tom Tromey <tom@tromey.com>
511
512 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
513 window height directly.
514 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
515 declare.
516 * tui/tui-layout.c (tui_default_win_height): Remove.
517 (tui_default_win_viewport_height): Remove.
518
d2dd1084
TT
5192019-10-09 Tom Tromey <tom@tromey.com>
520
521 * tui/tui.h: Remove comments.
522
cff32449
TV
5232019-10-09 Tom de Vries <tdevries@suse.de>
524
525 * python/lib/gdb/printer/bound_registers.py: Use
526 '^builtin_type_bound128' as regexp argument for
527 add_builtin_pretty_printer.
528
6a25e8a2
CB
5292019-10-09 Christian Biesinger <cbiesinger@google.com>
530
531 * guile/guile.c (guile_extension_script_ops): Remove forward
532 declaration and mark as static.
533 (guile_script_ops): Likewise.
534 (extension_language_guile): Move further down in the file so
535 it can reference the definitions for guile_{extension_,}script_ops.
536
6d9d6da4
AA
5372019-10-09 Andreas Arnez <arnez@linux.ibm.com>
538
539 * s390-tdep.c (390_process_record): Handle new arch13 instructions
540 except SORTL, DFLTCC, and KDSA.
541
3abea05d
TT
5422019-10-08 Tom Tromey <tromey@adacore.com>
543
544 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
545 (struct safe_symbol_file_add_args): Remove.
546
dde996e2
TT
5472019-10-08 Tom Tromey <tromey@adacore.com>
548
549 * windows-nat.c: Don't include buildsym-legacy.h.
550
cd6fdaa1
TT
5512019-10-08 Tom Tromey <tromey@adacore.com>
552
553 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
554
79bb1944
CB
5552019-10-08 Christian Biesinger <cbiesinger@google.com>
556
557 * gdbtypes.c (overload_debug): Move comment to header.
558 * gdbtypes.h (overload_debug): Declare.
559 * valops.c: Remove declaration of overload_debug, instead
560 include gdbtypes.h.
561
34916edc
CB
5622019-10-08 Christian Biesinger <cbiesinger@google.com>
563
564 * language.c (show_language_command): Pass lang_frame_mismatch_warn
565 through _().
566 (lang_frame_mismatch_warn): Make const, mark with N_(), and
567 move comment...
568 * language.h (lang_frame_mismatch_warn): ... here. Also add
569 declaration.
570 * top.c (lang_frame_mismatch_warn): Remove declaration.
571 (check_frame_language_change): Pass lang_frame_mismatch_warn
572 through _().
573
bad5c026
CB
5742019-10-07 Christian Biesinger <cbiesinger@google.com>
575
576 * c-lang.h (vtbl_ptr_name): Declare.
577 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
578 it from the header.
579 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
580
51f1fdc3
CB
5812019-10-07 Christian Biesinger <cbiesinger@google.com>
582
583 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
584 gdb_static_assert.
585
30d1f018
WP
5862019-10-07 Weimin Pan <weimin.pan@oracle.com>
587
606813d5
WP
588 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
589 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
590 * ctfread.c: New file.
591 * ctfread.h: New file.
592 * elfread.c: Include ctfread.h.
593 (struct elfinfo text_p): New member ctfsect.
594 (elf_locate_sections): Mark CTF section.
595 (elf_symfile_read): Call elfctf_build_psymtabs.
596 * Makefile.in (LIBCTF): Add.
597 (CLIBS): Use it.
598 (CDEPS): Likewise.
599 (DIST): Add ctfread.c.
606813d5
WP
600
6012019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * ctfread.c (struct nextfield): Renamed to ...
604 (struct ctf_nextfield): ... this.
605 (struct field_info): Renamed to ...
606 (strut ctf_field_info): ... this.
607 (attach_fields_to_type): Update for renamed structures.
608 (ctf_add_member_cb): Likewise.
609 (ctf_add_enum_member_cb): Likewise.
610 (process_struct_members): Likewise.
611 (process_enum_type): Likewise.
30d1f018 612
518fe38c
WP
6132019-10-07 Weimin Pan <weimin.pan@oracle.com>
614
615 * tracectf.h: Rename, was ctf.h.
616 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
617 * tracefile.c: Likewise.
618 * tracepoint.c: Remove unused include ctf.h.
619 * mi/mi-main.c: Likewise.
620 * Makefile.in Replace ctf.c with tracectf.c.
621
225f296a
JB
6222019-10-06 Joel Brobecker <brobecker@adacore.com>
623
624 * version.in: Change version number to "9.0.50.DATE-git".
625
77c2dba3
TT
6262019-10-03 Tom Tromey <tom@tromey.com>
627
628 PR rust/24976:
629 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
630
179aed7f
AB
6312019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
634 cp_search_name_hash.
635 * NEWS: Add entry about nested function support.
636
0a4b0913
AB
6372019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
638 Andrew Burgess <andrew.burgess@embecosm.com>
639
640 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
641 for nested static variables when searchin VAR_DOMAIN.
642 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
643 global scope, update comment.
644 (add_partial_subprogram): Call add_partial_subprogram recursively
645 for nested subroutines when processinng Fortran.
646 (load_partial_dies): Process the child entities of a subprogram
647 when processing Fortran.
648 (partial_die_parent_scope): Handle building scope
649 for Fortran nested functions.
650 (process_die): Record that nested functions have a scope.
651 (new_symbol): Always record Fortran subprograms on the global
652 symbol list.
653 (determine_prefix): How to build the prefix for Fortran
654 subprograms.
655
d8c06f22
AB
6562019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
657
658 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
659 have just sent the thread a SIGSTOP and are waiting for it to
660 arrive.
661
a8b3b8e9
AB
6622019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
663
664 * btrace.c (btrace_add_pc): Remove whitespace before the template
665 parameter in 'std::vector <...>'.
666 (parse_xml_btrace_block): Likewise.
667 (btrace_maint_decode_pt): Likewise.
668 (btrace_maint_update_packets): Likewise.
669 (btrace_maint_print_packets): Likewise.
670 * btrace.h (struct btrace_maint_info): Likewise.
671 * dwarf2read.c (struct type_unit_group): Likewise.
672 (build_type_psymtabs_reader): Likewise.
673 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
674 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
675 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
676
4d825eab
TV
6772019-10-03 Tom de Vries <tdevries@suse.de>
678
679 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
680 the first line of the help text for set/show style metadata.
681
80fd2826
TT
6822019-10-02 Tom Tromey <tromey@adacore.com>
683
684 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
685 * gdbsupport/common-inferior.c: New file.
686 * infcmd.c (startup_with_shell): Don't define.
687 * nat/fork-inferior.h (startup_with_shell): Don't declare.
688 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
689 * inferior.h (startup_with_shell): Don't declare.
690
70054538
CB
6912019-10-02 Christian Biesinger <cbiesinger@google.com>
692
693 * gdbsupport/gdb_assert.h: Include errors.h.
694 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
695
37f6a7f4
TT
6962019-10-02 Tom Tromey <tromey@adacore.com>
697
698 * NEWS: Add $_ada_exception entry.
699 * ada-lang.c (struct ada_catchpoint): Add constructor.
700 <m_kind>: New member.
701 (allocate_location_exception, re_set_exception): Remove
702 "ex" parameter.
703 (should_stop_exception): Compute $_ada_exception.
704 (check_status_exception, print_it_exception)
705 (print_one_exception, print_mention_exception): Remove
706 "ex" parameter.
707 (allocate_location_catch_exception, re_set_catch_exception)
708 (check_status_exception, print_it_catch_exception)
709 (print_one_catch_exception, print_mention_catch_exception)
710 (print_recreate_catch_exception)
711 (allocate_location_catch_exception_unhandled)
712 (re_set_catch_exception_unhandled)
713 (check_status_exception, print_it_catch_exception_unhandled)
714 (print_one_catch_exception_unhandled)
715 (print_mention_catch_exception_unhandled)
716 (print_recreate_catch_exception_unhandled)
717 (allocate_location_catch_assert, re_set_catch_assert)
718 (check_status_assert, print_it_catch_assert)
719 (print_one_catch_assert, print_mention_catch_assert)
720 (print_recreate_catch_assert)
721 (allocate_location_catch_handlers, re_set_catch_handlers)
722 (check_status_handlers, print_it_catch_handlers)
723 (print_one_catch_handlers, print_mention_catch_handlers)
724 (print_recreate_catch_handlers): Remove.
725 (create_ada_exception_catchpoint): Update.
726 (initialize_ada_catchpoint_ops): Update.
727
fccf9de1
TT
7282019-10-02 Tom Tromey <tromey@adacore.com>
729
730 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
731 (create_excep_cond_exprs): Simplify exception string computation.
732 (ada_exception_catchpoint_cond_string): Likewise.
733
4b610737
TT
7342019-10-02 Tom Tromey <tromey@adacore.com>
735
736 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
737 * ada-lang.c (lesseq_defined_than): Handle
738 LOC_STATIC.
739 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
740 parameter.
741 (dwarf2_has_info): Likewise.
742 (new_symbol): Set maybe_copied on symbol when
743 appropriate.
744 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
745 parameter.
746 <can_copy>: New member.
747 * elfread.c (record_minimal_symbol): Set maybe_copied
748 on symbol when appropriate.
749 (elf_symfile_read): Update call to dwarf2_has_info.
750 * minsyms.c (lookup_minimal_symbol_linkage): New
751 function.
752 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
753 * symtab.c (get_symbol_address, get_msymbol_address):
754 New functions.
755 * symtab.h (get_symbol_address, get_msymbol_address):
756 Declare.
757 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
758 maybe_copied.
759 (struct symbol, struct minimal_symbol) <maybe_copied>:
760 New member.
761
1dd58850
TT
7622019-10-02 Tom Tromey <tromey@adacore.com>
763
764 * source.c (struct current_source_location): New.
765 (current_source_key): New global.
766 (current_source_symtab, current_source_line)
767 (current_source_pspace): Remove.
768 (get_source_location): New function.
769 (get_current_source_symtab_and_line)
770 (set_default_source_symtab_and_line)
771 (set_current_source_symtab_and_line)
772 (clear_current_source_symtab_and_line, select_source_symtab)
773 (info_source_command, print_source_lines_base)
774 (info_line_command, search_command_helper, _initialize_source):
775 Update.
776
5c281dbb
TT
7772019-10-02 Tom Tromey <tromey@adacore.com>
778
779 * source.c (select_source_symtab): Don't call
780 decode_line_with_current_source.
781
d3d32391
AB
7822019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
783
784 * symtab.c (lookup_global_symbol): Search global block.
785
38583298
TT
7862019-10-02 Tom Tromey <tromey@adacore.com>
787
788 * coffread.c (process_coff_symbol): Update.
789 * dwarf2read.c (var_decode_location, new_symbol): Update.
790 * mdebugread.c (parse_symbol): Update.
791 * objfiles.c (relocate_one_symbol): Update.
792 * stabsread.c (define_symbol, fix_common_block)
793 (scan_file_globals): Update.
794 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
795 (SET_SYMBOL_VALUE_ADDRESS): New macro.
796 * xcoffread.c (process_xcoff_symbol): Update.
797
9344c18f
AA
7982019-10-02 Andreas Arnez <arnez@linux.ibm.com>
799
800 * MAINTAINERS: Update my email address.
801
df07e2c7
AB
8022019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
803
804 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
805 std::vector.
806 (build_type_psymtabs_reader): Update for std::vector.
807 (build_type_psymtab_dependencies): Likewise.
808 * dwarf2read.h: Remove use of DEF_VEC_P.
809 (typedef sig_type_ptr): Delete.
810
554ac434
AB
8112019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
812
813 * btrace.c (btrace_maint_clear): Update to handle change from VEC
814 to std::vector.
815 (btrace_maint_decode_pt): Likewise, and move allocation of the
816 vector outside of the loop.
817 (btrace_maint_update_packets): Update to handle change from VEC to
818 std::vector.
819 (btrace_maint_print_packets): Likewise.
820 (maint_info_btrace_cmd): Likewise.
821 * btrace.h: Remove use of DEF_VEC_O.
822 (typedef btrace_pt_packet_s): Delete.
823 (struct btrace_maint_info) <packets>: Change fromm VEC to
824 std::vector.
825 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
826
46f29a9a
AB
8272019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
828
829 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
830 make accesses into the vector constant references.
831 (btrace_add_pc): Update for std::vector.
832 (btrace_stitch_bts): Likewise.
833 (parse_xml_btrace_block): Likewise.
834 (btrace_maint_update_packets): Likewise.
835 (btrace_maint_print_packets): Likewise.
836 (maint_info_btrace_cmd): Likewise.
837 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
838 std::vector.
839 (btrace_data::empty): Likewise.
840 (btrace_data_append): Likewise.
841 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
842 (typedef btrace_block_s): Delete.
843 (struct btrace_block): Add constructor.
844 (struct btrace_data_bts) <blocks>: Change to std::vector.
845 * nat/linux-btrace.c (perf_event_read_bts): Update for
846 std::vector.
847 (linux_read_bts): Likewise.
848
d770d56f
TT
8492019-10-01 Tom Tromey <tom@tromey.com>
850
851 * cli/cli-logging.c (show_logging_filename): Use styled_string.
852
9d636d67
TT
8532019-10-01 Tom Tromey <tom@tromey.com>
854
855 * stack.c (print_frame, info_frame_command_core): Use
856 styled_string.
857 * linux-thread-db.c (try_thread_db_load_1)
858 (try_thread_db_load_from_pdir_1): Use styled_string.
859 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
860 (auto_load_section_scripts, info_auto_load_local_gdbinit)
861 (maybe_print_unsupported_script_warning)
862 (maybe_print_script_not_found_warning): Use styled_string.
863 * ada-lang.c (user_select_syms): Use styled_string.
864
7f6aba03
TT
8652019-10-01 Tom Tromey <tom@tromey.com>
866
867 * p-lang.c (pascal_printstr): Use metadata style.
868 * value.c (show_convenience): Use metadata style.
869 * valprint.c (valprint_check_validity, val_print_optimized_out)
870 (val_print_not_saved, val_print_unavailable)
871 (val_print_invalid_address, generic_val_print, val_print)
872 (value_check_printable, val_print_array_elements): Use metadata
873 style.
874 * ui-out.h (class ui_out) <field_fmt>: New overload.
875 <do_field_fmt>: Add style parameter.
876 * ui-out.c (ui_out::field_fmt): New overload.
877 * typeprint.c (type_print_unknown_return_type)
878 (val_print_not_allocated, val_print_not_associated): Use metadata
879 style.
880 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
881 parameter.
882 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
883 * tracepoint.c (tvariables_info_1): Use metadata style.
884 * stack.c (print_frame_arg, print_frame_info, print_frame)
885 (info_frame_command_core): Use metadata style.
886 * skip.c (info_skip_command): Use metadata style.
887 * rust-lang.c (rust_print_enum): Use metadata style.
888 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
889 metadata style.
890 * python/py-framefilter.c (py_print_single_arg): Use metadata
891 style.
892 * printcmd.c (do_one_display, print_variable_and_value): Use
893 metadata style.
894 * p-valprint.c (pascal_val_print)
895 (pascal_object_print_value_fields): Use metadata style.
896 * p-typeprint.c (pascal_type_print_base): Use metadata style.
897 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
898 parameter.
899 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
900 * m2-valprint.c (m2_print_long_set): Use metadata style.
901 * m2-typeprint.c (m2_print_type): Use metadata style.
902 * infcmd.c (print_return_value_1): Use metadata style.
903 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
904 * f-valprint.c (info_common_command_for_block): Use metadata
905 style.
906 * f-typeprint.c (f_type_print_base): Use metadata style.
907 * expprint.c (print_subexp_standard): Use metadata style.
908 * cp-valprint.c (cp_print_value_fields): Use metadata style.
909 * cli/cli-style.h (class cli_style_option): Add constructor.
910 (metadata_style): Declare.
911 * cli/cli-style.c (metadata_style): New global.
912 (_initialize_cli_style): Register metadata style.
913 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
914 parameter.
915 * cli-out.c (cli_ui_out::do_field_fmt): Update.
916 * c-typeprint.c (c_type_print_base_struct_union)
917 (c_type_print_base_1): Use metadata style.
918 * breakpoint.c (watchpoint_value_print)
919 (print_one_breakpoint_location): Use metadata style.
920 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
921 style.
922 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
923 style.
924 * ada-valprint.c (val_print_packed_array_elements, printstr)
925 (print_field_values, ada_val_print_ref, ada_val_print): Use
926 metadata style.
927 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
928 style.
929 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
930 style.
931 * ada-lang.c (user_select_syms): Use metadata style.
932
14309bb6
TT
9332019-10-01 Tom Tromey <tom@tromey.com>
934
935 * cli/cli-cmds.c (pwd_command): Style output.
936
6a831f06
PA
9372019-10-01 Pedro Alves <palves@redhat.com>
938 Tom Tromey <tom@tromey.com>
939
940 * symtab.c (print_symbol_info): Use %ps.
941 (print_msymbol_info): Use %ps.
942 * symfile.c (symbol_file_add_with_addrs): Use %ps.
943 * printcmd.c (print_variable_and_value): Use %ps.
944 * macrocmd.c (show_pp_source_pos): Use %ps.
945 * infrun.c (print_exited_reason): Use ui_out::message.
946 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
947 (describe_other_breakpoints): Use ui_out::message and new
948 formats.
949 (say_where): Use new formats.
950 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
951 and new formats.
952
2a3c1174
PA
9532019-10-01 Pedro Alves <palves@redhat.com>
954 Tom Tromey <tom@tromey.com>
955
956 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
957 (test_gdb_formats): New function.
958 (run_tests): Call it.
959 (test_format_specifier): Update.
960 * utils.h (fputs_filtered): Update comment.
961 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
962 (fputs_styled_unfiltered): Declare.
963 * utils.c (fputs_styled_unfiltered): New function.
964 (vfprintf_maybe_filtered): Add gdbfmt parameter.
965 (vfprintf_filtered): Update.
966 (vfprintf_unfiltered, vprintf_filtered): Update.
967 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
968 * ui-out.h (enum ui_out_flag) <unfiltered_output,
969 disallow_ui_out_field>: New constants.
970 (enum class field_kind): New.
971 (struct base_field_s, struct signed_field_s): New.
972 (signed_field): New function.
973 (struct string_field_s): New.
974 (string_field): New function.
975 (struct styled_string_s): New.
976 (styled_string): New function.
977 (class ui_out) <message>: Add comment.
978 <vmessage, call_do_message>: New methods.
979 <do_message>: Add style parameter.
980 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
981 methods.
982 (ui_out::message): Rewrite.
983 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
984 parameter.
985 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
986 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
987 gdb_extensions parameter.
988 (class format_piece): Add parameter to constructor.
989 (n_int_args): New field.
990 * gdbsupport/format.c (format_pieces::format_pieces): Add
991 gdb_extensions parameter. Handle '*'.
992 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
993 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
994 vfprintf_styled_no_gdbfmt.
995 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
996 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
997 unfiltered output.
998 * ui-style.h (struct ui_file_style) <ptr>: New method.
999
0dfe5bfb
TT
10002019-10-01 Tom Tromey <tom@tromey.com>
1001
1002 * unittests/format_pieces-selftests.c: Update. Add final format.
1003 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1004 empty literal pieces.
1005
e43b10e1
TT
10062019-10-01 Tom Tromey <tom@tromey.com>
1007
1008 * ui-out.h (enum class ui_out_style_kind): Remove.
1009 (class ui_out) <field_string, field_stsream, do_field_string>:
1010 Change type of "style".
1011 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1012 (ui_out::field_string): Update.
1013 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1014 of "style".
1015 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1016 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1017 * stack.c (print_frame_arg, print_frame_info, print_frame):
1018 Update.
1019 * source.c (print_source_lines_base): Update.
1020 * solib.c (info_sharedlibrary_command): Update.
1021 * skip.c (info_skip_command): Update.
1022 * record-btrace.c (btrace_call_history_src_line)
1023 (btrace_call_history): Update.
1024 * python/py-framefilter.c (py_print_frame): Update.
1025 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1026 "style".
1027 * mi/mi-out.c (mi_ui_out::do_table_header)
1028 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1029 (mi_ui_out::do_field_string): Update.
1030 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1031 Update.
1032 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1033 "style".
1034 * cli-out.c (cli_ui_out::do_table_header)
1035 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1036 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1037 (cli_ui_out::do_field_fmt): Update.
1038 * breakpoint.c (print_breakpoint_location): Update.
1039 (update_static_tracepoint): Update.
1040
cd7c32c3
PW
10412019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1042
1043 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1044 conversion of gdb_datadir.
1045 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1046 remove not needed c_str ().
1047
8fe0f950
AT
10482019-09-30 Ali Tamur <tamur@google.com>
1049
1050 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1051 (dwarf2_string_attr): Likewise.
1052
5f48f8f3
AT
10532019-09-30 Ali Tamur <tamur@google.com>
1054
1055 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1056 (process_full_type_unit): Likewise.
1057 (dump_die_shallow): Likewise.
1058 (cu_debug_loc_section): Likewise.
1059
6fb08628
CB
10602019-09-28 Christian Biesinger <cbiesinger@google.com>
1061
1062 * minsyms.c (compare_minimal_symbols): Rename to...
1063 (minimal_symbol_is_less_than): ...this, and adjust to STL
1064 conventions (return bool, take arguments as references)
1065 (minimal_symbol_reader::install): Call std::sort instead
1066 of qsort.
1067
c7ee338a
CB
10682019-09-29 Christian Biesinger <cbiesinger@google.com>
1069
1070 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1071 hash and why.
1072 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1073 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1074
703a86c2
SM
10752019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1076
1077 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1078 * psympriv.h (add_psymbol_to_list): Move comment here and update
1079 it.
1080
0df0352a
TV
10812019-09-29 Tom de Vries <tdevries@suse.de>
1082
1083 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1084 Use $tmpdir/$(basename "$output_file").dwz instead of
1085 "${output_file}.dwz".
1086
ad75efa6
SM
10872019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 PR gdb/25045
1090 * hppa-linux-nat.c: Include gdbarch.h.
1091
ececd218
CB
10922019-09-26 Christian Biesinger <cbiesinger@google.com>
1093
1094 * blockframe.c (find_pc_partial_function): Change return type to bool.
1095 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1096 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1097 (stub_gnu_ifunc_resolve_name): Likewise.
1098 * symtab.c (compare_filenames_for_search): Likewise.
1099 (compare_glob_filenames_for_search): Likewise.
1100 (matching_obj_sections): Likewise.
1101 (symbol_matches_domain): Likewise.
1102 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1103 (find_line_pc): Change return type to bool.
1104 (find_line_pc_range): Likewise.
1105 (producer_is_realview): Likewise.
1106 * symtab.h (symbol_matches_domain): Likewise.
1107 (find_pc_partial_function): Likewise.
1108 (find_pc_line_pc_range): Likewise.
1109 (in_gnu_ifunc_stub): Likewise.
1110 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1111 (find_line_pc): Likewise.
1112 (find_line_pc_range): Likewise.
1113 (matching_obj_sections): Likewise.
1114 (find_line_symtab): Change out parameter to bool.
1115 (producer_is_realview): Change return type to bool.
1116 (compare_filenames_for_search): Likewise.
1117 (compare_glob_filenames_for_search): Likewise.
1118
27a900b8
TT
11192019-09-26 Tom Tromey <tom@tromey.com>
1120
1121 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1122 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1123 * gdb_usleep.h: Remove.
1124 * gdb_usleep.c: Remove.
1125 * utils.c: Don't include gdb_usleep.h.
1126
5d63b30a
TT
11272019-09-26 Tom Tromey <tromey@adacore.com>
1128
1129 * python/py-type.c (type_to_type_object): Call check_typedef
1130 for stub types.
1131
12904d37
TT
11322019-09-26 Tom Tromey <tom@tromey.com>
1133
1134 * utils.h (initialize_utils): Don't declare.
1135 * top.c (gdb_init): Don't call initialize_utils.
1136 * utils.c (initialize_utils): Remove. Move contents...
1137 (_initialize_utils): ... here.
1138
858f25f0
TT
11392019-09-25 Tom Tromey <tom@tromey.com>
1140
1141 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1142 * utils.h (make_hex_string): Don't declare.
1143 * utils.c (make_hex_string): Remove.
1144
3d435220
TV
11452019-09-24 Tom de Vries <tdevries@suse.de>
1146
1147 PR gdb/23815
1148 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1149 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1150
ddd44b70
DD
11512019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1152
1153 * NEWS: Mention new simulator port for PRU.
1154
f945dedf
CB
11552019-09-23 Christian Biesinger <cbiesinger@google.com>
1156
1157 * ada-exp.y (write_object_remaining): Update.
1158 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1159 and eliminate the static buffer.
1160 (ada_decode_symbol): Update.
1161 (ada_la_decode): Update.
1162 (ada_sniff_from_mangled_name): Update.
1163 (is_valid_name_for_wild_match): Update.
1164 (ada_lookup_name_info::matches): Update and simplify.
1165 (name_matches_regex): Update.
1166 (ada_add_global_exceptions): Update.
1167 * ada-lang.h (ada_decode): Update signature.
1168 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1169 * dwarf-index-write.c (debug_names::insert): Update.
1170
7ab78ccb
SM
11712019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1172
1173 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1174 formatting.
1175
9252448b
SM
11762019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1177
1178 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1179 Change "nonzero" to "true" in documentation.
1180
626ca2c0
CB
11812019-09-20 Christian Biesinger <cbiesinger@google.com>
1182
1183 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1184 (_initialize_darwin_solib): Don't set
1185 darwin_so_ops.lookup_lib_global_symbol.
1186 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1187 set_gdbarch_iterate_over_objfiles_in_search_order.
1188 (elf_lookup_lib_symbol): Rename to...
1189 (svr4_iterate_over_objfiles_in_search_order): this, and update
1190 to iterate semantics.
1191 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1192 * solib.c (solib_global_lookup): Remove.
1193 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1194 (solib_global_lookup): Remove.
1195 * symtab.c (lookup_global_or_static_symbol): Remove call to
1196 solib_global_lookup.
1197
5a3a0d63
JB
11982019-09-20 Joel Brobecker <brobecker@adacore.com>
1199
1200 * NEWS: Move entries about default MI version now being
1201 version 3, and about the GDB/MI fix for multi-location
1202 breakpoints to the "since GDB 8.3" section.
1203
ffea1427
JB
12042019-09-20 Joel Brobecker <brobecker@adacore.com>
1205
1206 GDB 8.3.1 released.
1207
abf516c6
UW
12082019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1209
1210 * NEWS: Mention that Cell/B.E. debugging support was removed.
1211 * MAINTAINERS: Remove spu target.
1212
1213 * config/djgpp/fnchange.lst: Remove entries for removed files.
1214
1215 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1216 spu-multiarch.o, and spu-tdep.o.
1217 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1218 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1219 spu-multiarch.c, and spu-tdep.c.
1220 * spu-linux-nat.c: Remove file.
1221 * spu-multiarch.c: Remove file.
1222 * spu-tdep.c: Remove file.
1223 * spu-tdep.h: Remove file.
1224 * solib-spu.c: Remove file.
1225 * solib-spu.h: Remove file.
1226
1227 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1228 * configure.nat (spu-linux): Remove.
1229 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1230 solib-multiarch.o from gdb_target_obs.
1231 (spu*-*-*): Remove.
1232
1233 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1234 feature flag.
1235 (ppc_linux_no_features): Update.
1236 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1237 Cell/B.E. support.
1238 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1239 (tdesc_powerpc_cell64l): Likewise.
1240 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1241 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1242 Cell/B.E. support.
1243 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1244 Do not include "features/rs6000/powerpc-cell32l.c" or
1245 "features/rs6000/powerpc-cell64l.c".
1246 (ppc_linux_spu_section): Remove.
1247 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1248 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1249 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1250 (ppc_linux_spe_context_lookup): Remove.
1251 (ppc_linux_spe_context_inferior_created): Remove.
1252 (ppc_linux_spe_context_solib_loaded): Remove.
1253 (ppc_linux_spe_context_solib_unloaded): Remove.
1254 (ppc_linux_spe_context): Remove.
1255 (struct ppu2spu_cache): Remove.
1256 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1257 (struct ppu2spu_data): Remove.
1258 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1259 ppu2spu_unwind): Remove.
1260 (ppc_linux_init_abi): Remove Cell/B.E. support.
1261 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1262
1263 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1264 (rs6000/powerpc-cell64l-expedite): Likewise
1265 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1266 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1267 rs6000/powerpc-cell64l.xml.
1268 * features/rs6000/powerpc-cell32l.xml: Remove.
1269 * features/rs6000/powerpc-cell64l.xml: Likewise.
1270 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1271 * features/rs6000/powerpc-cell64l.c: Likewise.
1272 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1273 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1274 * regformats/reg-spu.dat: Remove.
1275
1276 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1277 * corelow.c (struct spuid_list): Remove.
1278 (add_to_spuid_list): Remove.
1279 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1280 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1281 (remote_protocol_features): Remove associated entries.
1282 (_initialize_remote): No longer initialize them.
1283 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1284 * linux-nat.c (SPUFS_MAGIC): Remove.
1285 (linux_proc_xfer_spu): Remove.
1286 (spu_enumerate_spu_ids): Remove.
1287 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1288 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1289 (linux_make_corefile_notes): No longer call it.
1290
1291 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1292 (cooked_write_test): Likewise.
1293
78e8cb91
TT
12942019-09-20 Tom Tromey <tom@tromey.com>
1295
1296 * NEWS: Mention case-sensitivity of TUI commands.
1297 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1298 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1299 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1300
f074b67e
TT
13012019-09-20 Tom Tromey <tom@tromey.com>
1302
1303 * tui/tui-source.c (tui_source_window::set_contents): Use
1304 make_unique_xstrdup.
1305 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1306 make_unique_xstrdup.
1307
63c4bf19
TT
13082019-09-20 Tom Tromey <tom@tromey.com>
1309
1310 * tui/tui-data.c: Remove separator comments.
1311 * tui/tui-layout.c: Remove separator comments.
1312 * tui/tui-win.c: Remove separator comments.
1313 * tui/tui-wingeneral.c: Remove separator comments.
1314
43df9b2f
TT
13152019-09-20 Tom Tromey <tom@tromey.com>
1316
1317 * tui/tui.h (strcat_to_buf): Don't declare.
1318 * tui/tui.c (strcat_to_buf): Remove.
1319
7226433c
TT
13202019-09-20 Tom Tromey <tom@tromey.com>
1321
1322 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1323 from "fullname".
1324 * tui/tui-source.c (tui_source_window::set_contents)
1325 (tui_source_window::location_matches_p)
1326 (tui_source_window::maybe_update): Update.
1327
80df3337
TT
13282019-09-20 Tom Tromey <tom@tromey.com>
1329
1330 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1331 Update.
1332 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1333 prefix.
1334 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1335 (tui_data_window::line_from_reg_element_no)
1336 (tui_data_window::first_reg_element_no_inline)
1337 (tui_data_window::show_registers)
1338 (tui_data_window::show_register_group)
1339 (tui_data_window::display_registers_from)
1340 (tui_data_window::display_registers_from_line)
1341 (tui_data_window::first_data_item_displayed)
1342 (tui_data_window::delete_data_content_windows)
1343 (tui_data_window::erase_data_content)
1344 (tui_data_window::do_scroll_vertical)
1345 (tui_data_window::refresh_window)
1346 (tui_data_window::check_register_values): Update.
1347
9923f347
TT
13482019-09-20 Tom Tromey <tom@tromey.com>
1349
1350 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1351 (struct tui_locator_window) <full_name, proc_name>: Now
1352 std::string.
1353 * tui/tui-stack.c (tui_locator_window::make_status_line)
1354 (tui_locator_window::set_locator_fullname)
1355 (tui_locator_window::set_locator_info): Update.
1356 * tui/tui-source.c (tui_source_window::set_contents)
1357 (tui_source_window::showing_source_p): Update.
1358
b76251ab
TT
13592019-09-20 Tom Tromey <tom@tromey.com>
1360
1361 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1362 Don't call tui_locator_win_info_ptr.
1363
0891be08
TT
13642019-09-20 Tom Tromey <tom@tromey.com>
1365
1366 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1367
1b935acf
TT
13682019-09-20 Tom Tromey <tom@tromey.com>
1369
1370 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1371 height for locator.
1372 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1373 * tui/tui-layout.c (show_source_disasm_command, show_data)
1374 (show_source_or_disasm_and_command): Use 1 as height for locator.
1375
9abd8a65
TT
13762019-09-20 Tom Tromey <tom@tromey.com>
1377
1378 * tui/tui.c (tui_enable): Update.
1379 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1380 Update.
1381 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1382 Update.
1383 * tui/tui-data.c (win_resized): Now bool.
1384 (tui_win_resized): Return bool.
1385 (tui_set_win_resized_to): Accept a bool.
1386
b5457826
TT
13872019-09-20 Tom Tromey <tom@tromey.com>
1388
1389 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1390 Change type of "refresh_values_only".
1391 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1392 type of "refresh_values_only".
1393
6b915f7d
TT
13942019-09-20 Tom Tromey <tom@tromey.com>
1395
1396 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1397 std::string.
1398 (tui_disassemble): Add "pos" parameter.
1399 (tui_disasm_window::set_contents): Simplify.
1400
2ad52f6f
TT
14012019-09-20 Tom Tromey <tom@tromey.com>
1402
1403 * tui/tui-winsource.h (struct tui_source_window_base)
1404 <show_source_content>: Now private.
1405 * tui/tui-winsource.c
1406 (tui_source_window_base::show_source_content): Don't handle empty
1407 content case.
1408
b3b1bde6
TT
14092019-09-20 Tom Tromey <tom@tromey.com>
1410
1411 * tui/tui-layout.c (show_source_disasm_command)
1412 (show_source_or_disasm_and_command): Don't call
1413 show_source_content.
1414
71a25ed2
TT
14152019-09-20 Tom Tromey <tom@tromey.com>
1416
1417 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1418 Declare.
1419 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1420 from tui_make_status_line.
1421 (tui_locator_window::rerender): Update.
1422
f8532154
TT
14232019-09-20 Tom Tromey <tom@tromey.com>
1424
1425 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1426 (tui_locator_window::rerender): Update.
1427
2d81b349
TT
14282019-09-20 Tom Tromey <tom@tromey.com>
1429
1430 * tui/tui-winsource.h (struct tui_source_window_base)
1431 <~tui_source_window_base>: Don't declare.
1432 <fullname>: Remove.
1433 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1434 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1435 member.
1436 * tui/tui-source.c (tui_source_window::set_contents): Update.
1437 (tui_source_window::location_matches_p)
1438 (tui_source_window::maybe_update): Update.
1439
f14bec58
TT
14402019-09-20 Tom Tromey <tom@tromey.com>
1441
1442 * tui/tui-winsource.h (~tui_source_element): Remove.
1443 (tui_source_element): Update.
1444 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1445 * tui/tui-winsource.c (tui_show_source_line): Update.
1446 * tui/tui-source.c (tui_source_window::set_contents): Update.
1447 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1448
78d5933a
TT
14492019-09-20 Tom Tromey <tom@tromey.com>
1450
1451 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1452 declare.
1453 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1454 tui_clear_source_windows_detail.
1455 * tui/tui-winsource.h (struct tui_source_window_base)
1456 <clear_detail>: Don't declare.
1457 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1458 Remove.
1459 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1460
d4207696
TT
14612019-09-20 Tom Tromey <tromey@adacore.com>
1462
1463 PR ada/24919:
1464 * block.c (contained_in): Fix final return value.
1465
00f93c44
AM
14662019-09-20 Alan Modra <amodra@gmail.com>
1467
1468 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1469 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1470 (read_indirect_string_from_dwz): Use bfd accessor.
1471 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1472 * machoread.c (macho_symfile_read_all_oso): Likewise.
1473 * solib.c (solib_bfd_open): Likewise.
1474
e4153ae6
CB
14752019-09-19 Christian Biesinger <cbiesinger@google.com>
1476
1477 * eval.c: Move declaration of overload_resolution to...
1478 * value.h: ...here.
1479
c7ae7675
CB
14802019-09-19 Christian Biesinger <cbiesinger@google.com>
1481
1482 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1483 * arm-linux-tdep.c: Likewise.
1484 * arm-nbsd-nat.c: Likewise.
1485 * arm-tdep.h: Declare arm_apcs_32.
1486 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1487
e86f08d2
CB
14882019-09-19 Christian Biesinger <cbiesinger@google.com>
1489
1490 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1491 * dwarf2read.h: Declare dwarf_always_disassemble.
1492
f64e2f40
TV
14932019-09-19 Tom de Vries <tdevries@suse.de>
1494
1495 PR gdb/25009
1496 * source-cache.c (source_cache::ensure): Catch exception thrown during
1497 construction of the highlighter.
1498
fd361982
AM
14992019-09-18 Alan Modra <amodra@gmail.com>
1500
1501 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1502 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1503 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1504 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1505 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1506 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1507 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1508 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1509 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1510 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1511 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1512 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1513 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1514 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1515 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1516 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1517 * mi/mi-interp.c: Update throughout for bfd section macro and
1518 function changes.
1519 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1520 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1521
11061048
TT
15222019-09-18 Tom Tromey <tom@tromey.com>
1523
1524 * NEWS: Add entry.
1525 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1526 call rl_initialize.
1527 (tui_enable): Do not call rl_initialize.
1528
7a27b85f
CG
15292019-09-18 Christian Groessler <chris@groessler.org>
1530
1531 * alpha-linux-nat.c: Include gdbarch.h.
1532
f64eea3a
SM
15332019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * ui-file.c: Include cli/cli-style.h.
1536 (term_cli_styling): Remove cli_styling declaration.
1537
e6f7f6d1
AM
15382019-09-18 Alan Modra <amodra@gmail.com>
1539
1540 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1541 to bfd_asymbol_section.
1542
1d38e9d1
AM
15432019-09-18 Alan Modra <amodra@gmail.com>
1544
1545 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1546 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1547 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1548
90d92a63
AM
15492019-09-18 Alan Modra <amodra@gmail.com>
1550
1551 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1552 * spu-linux-nat.c (spu_bfd_open): Likewise.
1553
a3d181d2
CB
15542019-09-18 Christian Biesinger <cbiesinger@google.com>
1555
1556 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1557 to bool to match definition in dwarf2read.c.
1558
491144b5
CB
15592019-09-17 Christian Biesinger <cbiesinger@google.com>
1560
1561 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1562 (print_signatures): Likewise.
1563 (trust_pad_over_xvs): Likewise.
1564 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1565 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1566 * arm-linux-nat.c (arm_apcs_32): Likewise.
1567 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1568 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1569 * arm-tdep.c (arm_debug): Likewise.
1570 (arm_apcs_32): Likewise.
1571 * auto-load.c (debug_auto_load): Likewise.
1572 (auto_load_gdb_scripts): Likewise.
1573 (global_auto_load): Likewise.
1574 (auto_load_local_gdbinit): Likewise.
1575 (auto_load_local_gdbinit_loaded): Likewise.
1576 * auto-load.h (global_auto_load): Likewise.
1577 (auto_load_local_gdbinit): Likewise.
1578 (auto_load_local_gdbinit_loaded): Likewise.
1579 * breakpoint.c (disconnected_dprintf): Likewise.
1580 (breakpoint_proceeded): Likewise.
1581 (automatic_hardware_breakpoints): Likewise.
1582 (always_inserted_mode): Likewise.
1583 (target_exact_watchpoints): Likewise.
1584 (_initialize_breakpoint): Update.
1585 * breakpoint.h (target_exact_watchpoints): Change to bool.
1586 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1587 * cli/cli-cmds.c (trace_commands): Likewise.
1588 * cli/cli-cmds.h (trace_commands): Likewise.
1589 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1590 to bool*.
1591 * cli/cli-logging.c (logging_overwrite): Change to bool.
1592 (logging_redirect): Likewise.
1593 (debug_redirect): Likewise.
1594 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1595 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1596 to bool.
1597 <boolean_option_def>: Update.
1598 (struct flag_option_def): Change default type of Context to bool
1599 from int.
1600 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1601 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1602 (get_setshow_command_value_string): Likewise.
1603 * cli/cli-style.c (cli_styling): Change to bool.
1604 (source_styling): Likewise.
1605 * cli/cli-style.h (source_styling): Likewise.
1606 (cli_styling): Likewise.
1607 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1608 to bool.
1609 * command.h (var_types): Update comment.
1610 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1611 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1612 bool.
1613 (debug_compile_cplus_scopes): Likewise.
1614 * compile/compile-internal.h (compile_debug): Likewise.
1615 * compile/compile.c (compile_debug): Likewise.
1616 (struct compile_options) <raw>: Likewise.
1617 * cp-support.c (catch_demangler_crashes): Likewise.
1618 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1619 (usr_cmd_cris_dwarf2_cfi): Likewise.
1620 * csky-tdep.c (csky_debug): Likewise.
1621 * darwin-nat.c (enable_mach_exceptions): Likewise.
1622 * dcache.c (dcache_enabled_p): Likewise.
1623 * defs.h (info_verbose): Likewise.
1624 * demangle.c (demangle): Likewise.
1625 (asm_demangle): Likewise.
1626 * dwarf-index-cache.c (debug_index_cache): Likewise.
1627 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1628 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1629 * dwarf2read.c (check_physname): Likewise.
1630 (use_deprecated_index_sections): Likewise.
1631 (dwarf_always_disassemble): Likewise.
1632 * eval.c (overload_resolution): Likewise.
1633 * event-top.c (set_editing_cmd_var): Likewise.
1634 (exec_done_display_p): Likewise.
1635 * event-top.h (set_editing_cmd_var): Likewise.
1636 (exec_done_display_p): Likewise.
1637 * exec.c (write_files): Likewise.
1638 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1639 (debug_fbsd_nat): Likewise.
1640 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1641 Likewise.
1642 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1643 <backtrace_past_entry> Likewise.
1644 * gdb-demangle.h (demangle): Likewise.
1645 (asm_demangle): Likewise.
1646 * gdb_bfd.c (bfd_sharing): Likewise.
1647 * gdbcore.h (write_files): Likewise.
1648 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1649 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1650 * gdbthread.h (print_thread_events): Likewise.
1651 * gdbtypes.c (opaque_type_resolution): Likewise.
1652 (strict_type_checking): Likewise.
1653 * gnu-nat.c (gnu_debug_flag): Likewise.
1654 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1655 * guile/scm-param.c (pascm_variable): Add boolval.
1656 (add_setshow_generic): Update.
1657 (pascm_param_value): Update.
1658 (pascm_set_param_value_x): Update.
1659 * hppa-tdep.c (hppa_debug): Change to bool..
1660 * infcall.c (may_call_functions_p): Likewise.
1661 (coerce_float_to_double_p): Likewise.
1662 (unwind_on_signal_p): Likewise.
1663 (unwind_on_terminating_exception_p): Likewise.
1664 * infcmd.c (startup_with_shell): Likewise.
1665 * inferior.c (print_inferior_events): Likewise.
1666 * inferior.h (startup_with_shell): Likewise.
1667 (print_inferior_events): Likewise.
1668 * infrun.c (step_stop_if_no_debug): Likewise.
1669 (detach_fork): Likewise.
1670 (debug_displaced): Likewise.
1671 (disable_randomization): Likewise.
1672 (non_stop): Likewise.
1673 (non_stop_1): Likewise.
1674 (observer_mode): Likewise.
1675 (observer_mode_1): Likewise.
1676 (set_observer_mode): Update.
1677 (sched_multi): Change to bool.
1678 * infrun.h (debug_displaced): Likewise.
1679 (sched_multi): Likewise.
1680 (step_stop_if_no_debug): Likewise.
1681 (non_stop): Likewise.
1682 (disable_randomization): Likewise.
1683 * linux-tdep.c (use_coredump_filter): Likewise.
1684 (dump_excluded_mappings): Likewise.
1685 * linux-thread-db.c (auto_load_thread_db): Likewise.
1686 (check_thread_db_on_load): Likewise.
1687 * main.c (captured_main_1): Update.
1688 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1689 xx2_opt, boolean_opt>: Change to bool.
1690 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1691 * maint.c (maintenance_profile_p): Likewise.
1692 (per_command_time): Likewise.
1693 (per_command_space): Likewise.
1694 (per_command_symtab): Likewise.
1695 * memattr.c (inaccessible_by_default): Likewise.
1696 * mi/mi-main.c (mi_async): Likewise.
1697 (mi_async_1): Likewise.
1698 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1699 * nat/fork-inferior.h (startup_with_shell): Likewise.
1700 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1701 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1702 * nios2-tdep.c (nios2_debug): Likewise.
1703 * or1k-tdep.c (or1k_debug): Likewise.
1704 * parse.c (parser_debug): Likewise.
1705 * parser-defs.h (parser_debug): Likewise.
1706 * printcmd.c (print_symbol_filename): Likewise.
1707 * proc-api.c (procfs_trace): Likewise.
1708 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1709 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1710 (set_parameter_value): Update.
1711 (add_setshow_generic): Update.
1712 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1713 to bool*.
1714 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1715 int*.
1716 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1717 * record-btrace.c (record_btrace_target::store_registers): Update.
1718 * record-full.c (record_full_memory_query): Change to bool.
1719 (record_full_stop_at_limit): Likewise.
1720 * record-full.h (record_full_memory_query): Likewise.
1721 * remote-notif.c (notif_debug): Likewise.
1722 * remote-notif.h (notif_debug): Likewise.
1723 * remote.c (use_range_stepping): Likewise.
1724 (interrupt_on_connect): Likewise.
1725 (remote_break): Likewise.
1726 * ser-tcp.c (tcp_auto_retry): Likewise.
1727 * ser-unix.c (serial_hwflow): Likewise.
1728 * skip.c (debug_skip): Likewise.
1729 * solib-aix.c (solib_aix_debug): Likewise.
1730 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1731 (spu_auto_flush_cache_p): Likewise.
1732 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1733 Likewise.
1734 (struct info_print_options) <quiet>: Likewise.
1735 * symfile-debug.c (debug_symfile): Likewise.
1736 * symfile.c (auto_solib_add): Likewise.
1737 (separate_debug_file_debug): Likewise.
1738 * symfile.h (auto_solib_add): Likewise.
1739 (separate_debug_file_debug): Likewise.
1740 * symtab.c (basenames_may_differ): Likewise.
1741 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1742 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1743 (struct info_types_options) <quiet>: Likewise.
1744 * symtab.h (demangle): Likewise.
1745 (basenames_may_differ): Likewise.
1746 * target-dcache.c (stack_cache_enabled_1): Likewise.
1747 (code_cache_enabled_1): Likewise.
1748 * target.c (trust_readonly): Likewise.
1749 (may_write_registers): Likewise.
1750 (may_write_memory): Likewise.
1751 (may_insert_breakpoints): Likewise.
1752 (may_insert_tracepoints): Likewise.
1753 (may_insert_fast_tracepoints): Likewise.
1754 (may_stop): Likewise.
1755 (auto_connect_native_target): Likewise.
1756 (target_stop_and_wait): Update.
1757 (target_async_permitted): Change to bool.
1758 (target_async_permitted_1): Likewise.
1759 (may_write_registers_1): Likewise.
1760 (may_write_memory_1): Likewise.
1761 (may_insert_breakpoints_1): Likewise.
1762 (may_insert_tracepoints_1): Likewise.
1763 (may_insert_fast_tracepoints_1): Likewise.
1764 (may_stop_1): Likewise.
1765 * target.h (target_async_permitted): Likewise.
1766 (may_write_registers): Likewise.
1767 (may_write_memory): Likewise.
1768 (may_insert_breakpoints): Likewise.
1769 (may_insert_tracepoints): Likewise.
1770 (may_insert_fast_tracepoints): Likewise.
1771 (may_stop): Likewise.
1772 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1773 (make_thread_apply_all_options_def_group): Change argument from int*
1774 to bool*.
1775 (thread_apply_all_command): Update.
1776 (print_thread_events): Change to bool.
1777 * top.c (confirm): Likewise.
1778 (command_editing_p): Likewise.
1779 (history_expansion_p): Likewise.
1780 (write_history_p): Likewise.
1781 (info_verbose): Likewise.
1782 * top.h (confirm): Likewise.
1783 (history_expansion_p): Likewise.
1784 * tracepoint.c (disconnected_tracing): Likewise.
1785 (circular_trace_buffer): Likewise.
1786 * typeprint.c (print_methods): Likewise.
1787 (print_typedefs): Likewise.
1788 * utils.c (debug_timestamp): Likewise.
1789 (sevenbit_strings): Likewise.
1790 (pagination_enabled): Likewise.
1791 * utils.h (sevenbit_strings): Likewise.
1792 (pagination_enabled): Likewise.
1793 * valops.c (overload_resolution): Likewise.
1794 * valprint.h (struct value_print_options) <prettyformat_arrays,
1795 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1796 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1797 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1798 Likewise.
1799 * windows-nat.c (new_console): Likewise.
1800 (cygwin_exceptions): Likewise.
1801 (new_group): Likewise.
1802 (debug_exec): Likewise.
1803 (debug_events): Likewise.
1804 (debug_memory): Likewise.
1805 (debug_exceptions): Likewise.
1806 (useshell): Likewise.
1807 * windows-tdep.c (maint_display_all_tib): Likewise.
1808 * xml-support.c (debug_xml): Likewise.
1809
f1b620e9
MG
18102019-09-17 Mike Gulick <mgulick@mathworks.com>
1811
1812 * source.c (prepare_path_for_appending): New function.
1813 (openp): Make use of new function.
1814 (find_and_open_source): Search for the compilation directory and
1815 source file as a relative path beneath the directory search path.
1816
67f3ed6a
AB
18172019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * source-cache.c (source_cache::get_line_charpos): Catch
1820 exceptions and return false, this matches the behaviour documented
1821 in the header file.
1822
74332189
JB
18232019-09-17 Joel Brobecker <brobecker@adacore.com>
1824
1825 * ada-tasks.c (info_task): Remove quoting of the task's name.
1826
f2f24aa9
CB
18272019-09-16 Christian Biesinger <cbiesinger@google.com>
1828
1829 * symfile.c (auto_solib_add): Replace comment with a reference
1830 to the header file.
1831
6a062a93
CB
18322019-09-14 Christian Biesinger <cbiesinger@google.com>
1833
1834 * NEWS: Mention that gdb can now be compiled with Python 3
1835 on Windows.
1836
ec6c8338
AB
18372019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * maint.c (maint_print_section_data::maint_print_section_data):
1840 Force use of 'float log10 (float)' by casting the argument to
1841 float.
1842
aa17805f
AB
18432019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1844
1845 * maint.c: Add 'cmath' include.
1846 (struct maint_print_section_data): New structure.
1847 (print_section_index): New function.
1848 (print_bfd_section_info): Add header comment, small whitespace
1849 cleanup, and update to call new print_section_index function.
1850 (print_objfile_section_info): Likewise.
1851 (maint_obj_section_from_bfd_section): New function.
1852 (print_bfd_section_info_maybe_relocated): New function.
1853 (maintenance_info_sections): Add header comment, always use
1854 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1855
3dd9bb46
AB
18562019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1857
1858 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1859 inner scope, add check that the objfile has psymtabs before
1860 checking psymtabs_addrmap.
1861 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1862
4993045d
PW
18632019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1864
1865 * NEWS: Announce that Ada task names are now shown at more places,
1866 and between quotes (except in info task output).
1867 * gdb/ada-tasks.c (task_to_str): New function.
1868 (display_current_task_id): Call task_to_str.
1869 (task_command_1): Likewise.
1870 (print_ada_task_info): In non-mi mode, Properly align headers and data
1871 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1872
7a289707
RO
18732019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1874
1875 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1876 prstatus.pr_lwp.pr_info instead of making it up.
1877
f2aec7f6
CB
18782019-09-11 Christian Biesinger <cbiesinger@google.com>
1879
1880 * auto-load.c (auto_load_expand_dir_vars): Update.
1881 * defs.h (gdb_datadir): Change to std::string.
1882 (python_libdir): Likewise.
1883 (relocate_gdb_directory): Change return type to std::string.
1884 * guile/guile.c (gdbscm_data_directory): Update.
1885 (initialize_scheme_side): Update.
1886 * jit.c (jit_reader_dir): Change to std::string.
1887 (jit_reader_load_command): Update.
1888 * main.c (gdb_datadir): Change to std::string.
1889 (python_libdir): Likewise.
1890 (set_gdb_data_directory): Update.
1891 (relocate_path): Change to return std::string.
1892 (relocate_gdb_directory): Change to return std::string.
1893 (relocate_gdbinit_path_maybe_in_datadir): Update.
1894 (captured_main_1): Update.
1895 * python/python.c (do_start_initialization): Update.
1896 * top.c (show_gdb_datadir): Update.
1897 * xml-syscall.c (xml_init_syscalls_info): Update.
1898 (init_syscalls_info): Update.
1899
9224a013
CB
19002019-09-11 Christian Biesinger <cbiesinger@google.com>
1901
1902 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1903 out of get_init_files.
1904 (get_init_files): Update.
1905
f48cd836
CB
19062019-09-11 Christian Biesinger <cbiesinger@google.com>
1907
1908 * main.c (get_init_files): Change to use std::string.
1909 (captured_main_1): Update.
1910 (print_gdb_help): Update.
1911
9cab7ecd
AT
19122019-09-11 Ali Tamur <tamur@google.com>
1913
1914 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1915 implementation.
1916
67547d89
CB
19172019-09-11 Christian Biesinger <cbiesinger@google.com>
1918
1919 * dbxread.c (read_dbx_symtab): Update.
1920 * dwarf2read.c (load_partial_dies): Update.
1921 * mdebugread.c (parse_partial_symbols): Update.
1922 (handle_psymbol_enumerators): Update.
1923 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1924 * psymtab.c (add_psymbol_to_bcache): Likewise.
1925 (add_psymbol_to_list): Likewise.
1926 * symtab.c (symbol_set_names): Likewise.
1927 * symtab.h (symbol_set_names): Likewise.
1928 * xcoffread.c (scan_xcoff_symtab): Update.
1929
64b2d4a0
TT
19302019-09-11 Tom Tromey <tom@tromey.com>
1931
1932 * symfile-mem.c (symbol_file_add_from_memory): Use
1933 bfd_set_filename.
1934 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1935 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1936
3b00ef10
TT
19372019-09-10 Tom Tromey <tromey@adacore.com>
1938
1939 * dwarf-index-write.c (write_psymbols): Extend error message.
1940 (debug_names::insert): Add Ada code.
1941 (debug_names::write_psymbols): Remove Ada check.
1942 (debug_names) <m_string_obstack>: New member.
1943 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1944 (gdb_index_symbol_name_matcher::matches): Remove.
1945 (mapped_index_base::find_name_components_bounds): Add "lang"
1946 parameter.
1947 (mapped_index_base::build_name_components): Also split names
1948 according to Ada syntax.
1949 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1950 type of "match_callback".
1951 (check_match, check_find_bounds_finds)
1952 (dw2_expand_symtabs_matching): Update.
1953 (dw2_debug_names_iterator): Add new constructor.
1954 (dw2_debug_names_map_matching_symbols): New function.
1955 (dw2_debug_names_expand_symtabs_matching): Update.
1956 (dwarf2_debug_names_functions): Use
1957 dw2_debug_names_map_matching_symbols.
1958
aa391654
TT
19592019-09-10 Tom Tromey <tromey@adacore.com>
1960
1961 * dwarf2read.c (dw2_get_file_names_reader): Add the
1962 CU's file name to the results.
1963
b054970d
TT
19642019-09-10 Tom Tromey <tromey@adacore.com>
1965
1966 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1967 map_matching_symbols. Update.
1968 * dwarf2read.c (dw2_map_matching_symbols): Update.
1969 * psymtab.c (match_partial_symbol): Change type; update.
1970 (psym_map_matching_symbols): Likewise.
1971 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1972 type; update.
1973 * symfile.h (struct quick_symbol_functions)
1974 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1975 Remove "match".
1976
6a3dbf1b
TT
19772019-09-10 Tom Tromey <tromey@adacore.com>
1978
1979 * psymtab.c (map_block): Remove.
1980 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1981 * symtab.c (iterate_over_symbols_terminated): New function.
1982 * symtab.c (iterate_over_symbols_terminated): Declare.
1983
6969f124
TT
19842019-09-10 Tom Tromey <tromey@adacore.com>
1985
1986 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1987 * language.h (struct language_defn) <la_iterate_over_symbols>:
1988 Return bool.
1989 * symtab.c (iterate_over_symbols): Return bool.
1990 * symtab.h (iterate_over_symbols): Return bool.
1991
199b4314
TT
19922019-09-10 Tom Tromey <tromey@adacore.com>
1993
1994 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1995 (add_nonlocal_symbols): Update.
1996 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1997 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1998 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1999 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2000 Change type of "callback". Remove "data".
2001
a084a2a6
AT
2002
20032019-09-09 Ali Tamur <tamur@google.com>
2004
2005 * dwarf2read.c (comp_unit_head): Update comment.
2006 (dwarf2_dwo_name): New function declaration.
2007 (dwarf_unit_type_name): New function declaration.
2008 (read_comp_unit_head): Add support for new compilation units,
2009 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2010 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2011 (currently named as "signature") in their header. Also clarify error
2012 messages.
2013 (lookup_dwo_id): New function. Returns the dwo id of the given
2014 compile unit.
2015 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2016 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2017 functions.
2018 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2019 (dwarf2_dwo_name): Get the dwo name if present.
2020 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2021 purposes.
2022
25a2915e
TT
20232019-09-09 Tom Tromey <tom@tromey.com>
2024
2025 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2026
e4df0874
PW
20272019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2028
2029 * python/python.c (do_start_initialization): Make progname_copy static,
2030 to avoid a leak report.
2031
8634b462
TT
20322019-09-08 Tom Tromey <tom@tromey.com>
2033
2034 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2035
c7f839cb
SM
20362019-09-07 Simon Marchi <simon.marchi@efficios.com>
2037
2038 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2039 Change type to gdb::optional<block_enum>.
2040 (dw2_symtab_iter_init): Change block_index parameter type
2041 to gdb::optional<block_enum>.
2042 (dw2_lookup_symbol): Change block_index parameter
2043 type to block_enum.c
2044 (dw2_debug_names_lookup_symbol): Likewise.
2045 * psymtab.c (psym_lookup_symbol): Likewise.
2046 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2047 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2048 Likewise.
2049
ead0e69a
CB
20502019-09-06 Christian Biesinger <cbiesinger@google.com>
2051
2052 * defs.h (relocate_gdb_directory): Change int to bool in
2053 signature and rename flag to relocatable.
2054 * main.c (relocate_path): Likewise.
2055 (relocate_gdb_directory): Likewise.
2056
b16c44de
AM
20572019-09-06 Alan Modra <amodra@gmail.com>
2058
2059 * coffread.c (coff_symfile_read): Constify filename variable.
2060 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2061 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2062 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2063 * solib.c (reload_shared_libraries_1): Likewise.
2064 * symfile.c (reread_symbols): Likewise.
2065 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2066 * solib-darwin.c (darwin_bfd_open): Likewise.
2067 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2068
06ff036e
AB
20692019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2072 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2073
4e962e74
TT
20742019-09-03 Tom Tromey <tromey@adacore.com>
2075
2076 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2077 types.
2078 (has_negatives): Unbias a range type bound.
2079 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2080 * gdbtypes.c (operator==): Handle new field.
2081 (create_range_type): Add "bias" parameter.
2082 (create_static_range_type, resolve_dynamic_range): Update.
2083 * gdbtypes.h (struct range_bounds) <bias>: New member.
2084 (create_range_type): Add bias parameter.
2085 * printcmd.c (print_scalar_formatted): Unbias range types.
2086 * value.c (unpack_long): Unbias range types.
2087 (pack_long): Bias range types.
2088
d90b8f26
AH
20892019-09-02 Alan Hayward <alan.hayward@arm.com>
2090
2091 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2092 probe arguments.
2093
fe01123e
AH
20942019-09-02 Alan Hayward <alan.hayward@arm.com>
2095
2096 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2097 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2098 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2099 (compile_probe_arg): Likewise.
2100 * probe.h (get_argument_count): Likewise.
2101 * solib-svr4.c (solib_event_probe_action): Likewise.
2102 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2103
e661ef01
AH
21042019-09-02 Alan Hayward <alan.hayward@arm.com>
2105
2106 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2107 code to here...
2108 (svr4_create_solib_event_breakpoints): ...from here.
2109
47a536d9
SDJ
21102019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2111
2112 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2113 suffix from warning message.
2114
d6a00eba
TT
21152019-08-30 Tom Tromey <tom@tromey.com>
2116
2117 * tui/tui-winsource.h (struct tui_source_window_base)
2118 <refresh_all>: Don't declare.
2119 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2120 Remove.
2121 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2122 tui_show_locator_content.
2123 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2124 declare.
2125 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2126 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2127 declare.
2128
55b2657b
TT
21292019-08-30 Tom Tromey <tom@tromey.com>
2130
2131 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2132
12a8555a
TT
21332019-08-30 Tom Tromey <tom@tromey.com>
2134
2135 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2136 Remove unnecessary forward declarations.
2137
900ac242
TT
21382019-08-30 Tom Tromey <tom@tromey.com>
2139
2140 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2141 rerender.
2142 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2143 tui_show_locator_content.
2144
99ab33fb
TT
21452019-08-30 Tom Tromey <tom@tromey.com>
2146
2147 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2148 (tui_locator_window::rerender): Rewrite using body of previous
2149 tui_show_locator_content.
2150
e594a5d1
TT
21512019-08-30 Tom Tromey <tom@tromey.com>
2152
2153 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2154 set_locator_fullname>: New methods.
2155 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2156 Rename from tui_set_locator_fullname.
2157 (tui_locator_window::set_locator_info): Rename from
2158 tui_set_locator_info. Return bool.
2159 (tui_update_locator_fullname, tui_show_frame_info): Update.
2160
715bb467
TT
21612019-08-30 Tom Tromey <tom@tromey.com>
2162
2163 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2164
772f3f03
TT
21652019-08-30 Tom Tromey <tom@tromey.com>
2166
2167 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2168 call touchwin.
2169
108e13ab
TT
21702019-08-30 Tom Tromey <tom@tromey.com>
2171
2172 * tui/tui-wingeneral.c (box_win): Assume win_info and
2173 win_info->handle cannot be NULL.
2174
cdaa6eb4
TT
21752019-08-30 Tom Tromey <tom@tromey.com>
2176
2177 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2178 refresh_window>: Declare.
2179 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2180 resize.
2181 (tui_data_item_window::rerender): Rename from
2182 tui_display_register.
2183 (tui_data_item_window::refresh_window): New method.
2184 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2185 no-op.
2186
89df7f90
TT
21872019-08-30 Tom Tromey <tom@tromey.com>
2188
2189 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2190 regs_column_count, current_group>: Move later. Now private.
2191 <get_current_group>: New method.
2192 * tui/tui-regs.c (tui_reg_command): Update.
2193 * tui/tui-layout.c (tui_set_layout): Update.
2194
1bf2866a
TT
21952019-08-30 Tom Tromey <tom@tromey.com>
2196
2197 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2198 (tui_data_window::rerender): Don't call
2199 check_and_display_highlight_if_needed.
2200 (tui_data_window::refresh_all): Remove call to
2201 erase_data_content.
2202
0670413d
TT
22032019-08-30 Tom Tromey <tom@tromey.com>
2204
2205 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2206 (tui_data_window::display_registers_from)
2207 (tui_data_window::display_reg_element_at_line)
2208 (tui_data_window::display_registers_from_line): Remove checks of
2209 "empty".
2210
18bb55c7
TT
22112019-08-30 Tom Tromey <tom@tromey.com>
2212
2213 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2214 Don't declare.
2215 * tui/tui-regs.c (tui_data_window::show_registers): Call
2216 rerender.
2217 (tui_data_window::rerender): Rename from display_all_data.
2218 (tui_data_window::rerender): Remove old implementation.
2219
1f6d2f10
TT
22202019-08-30 Tom Tromey <tom@tromey.com>
2221
2222 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2223 text.
2224 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2225
16d01f9c
BW
22262019-08-29 Bernhard Wodok <barto@gmx.net>
2227 Sergio Durigan Junior <sergiodj@redhat.com>
2228
2229 PR win32/24284
2230 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2231
d8f27c60
AB
22322019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2233
2234 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2235 when searching for types.
2236
1f20c35e
AB
22372019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2238
2239 * f-lang.c (f_language_defn): Use f_print_typedef.
2240 * f-lang.h (f_print_typedef): Declare.
2241 * f-typeprint.c (f_print_typedef): Define.
2242
550105b7
CB
22432019-08-27 Christian Biesinger <cbiesinger@google.com>
2244
2245 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2246
4acfdd20
AB
22472019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * cli/cli-utils.c (info_print_options_defs): Delete.
2250 (make_info_print_options_def_group): Delete.
2251 (extract_info_print_options): Delete.
2252 (info_print_command_completer): Delete.
2253 (info_print_args_help): Add extra parameter, and optionally
2254 include text about -n flag.
2255 * cli/cli-utils.h (struct info_print_options): Delete.
2256 (extract_info_print_options): Delete declaration.
2257 (info_print_command_completer): Delete declaration.
2258 (info_print_args_help): Add extra parameter, extend header
2259 comment.
2260 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2261 search_symbols.
2262 * stack.c (struct info_print_options): New type.
2263 (info_print_options_defs): New file scoped variable.
2264 (make_info_print_options_def_group): New static function.
2265 (info_print_command_completer): New static function.
2266 (info_locals_command): Update to use new local functions.
2267 (info_args_command): Likewise.
2268 (_initialize_stack): Add extra parameter to calls to
2269 info_print_args_help.
2270 * symtab.c (search_symbols): Add extra parameter, use this to
2271 possibly excluse non-debug symbols.
2272 (symtab_symbol_info): Add extra parameter, which is passed on to
2273 search_symbols.
2274 (struct info_print_options): New type.
2275 (info_print_options_defs): New file scoped variable.
2276 (make_info_print_options_def_group): New static function.
2277 (info_print_command_completer): New static function.
2278 (info_variables_command): Update to use local functions, and pass
2279 extra parameter through to symtab_symbol_info.
2280 (info_functions_command): Likewise.
2281 (info_types_command): Pass additional argument through to
2282 symtab_symbol_info.
2283 (rbreak_command): Pass extra argument to search_symbols.
2284 (_initialize_symtab): Add extra arguments for calls to
2285 info_print_args_help, and update help text for 'info variables',
2286 'whereis', and 'info functions' commands.
2287 * symtab.h (search_symbols): Add extra argument to declaration.
2288 * NEWS: Mention new flags.
2289
9aa55206
CB
22902019-08-26 Christian Biesinger <cbiesinger@google.com>
2291
2292 * symtab.c (lookup_static_symbol): Call the new function (and move
2293 it down to be next to lookup_global_symbol).
2294 (struct global_sym_lookup_data): Add block_enum member and rename to...
2295 (struct global_or_static_sym_lookup_data): ...this.
2296 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2297 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2298 (lookup_symbol_global_or_static_iterator_cb): ...this.
2299 (lookup_global_or_static_symbol): New function.
2300 (lookup_global_symbol): Call new function.
2301
5c31b358
TV
23022019-08-26 Tom de Vries <tdevries@suse.de>
2303
2304 PR c++/24852
2305 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2306 when pc_probe.prob == NULL.
2307
23c13d42
SM
23082019-08-25 Simon Marchi <simon.marchi@efficios.com>
2309
2310 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2311 variable symbol_linkage to symbol_linkage_.
2312
beadd3e8
SM
23132019-08-25 Simon Marchi <simon.marchi@efficios.com>
2314
2315 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2316 represent whether the symbol is static, dynamic, or we don't
2317 know.
2318
e3ec872f
YS
23192019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2320
2321 * gdb/rx-tdep.c (rx_register_names): New.
2322 (rx_register_name): Delete.
2323 (rx_psw_type): Delete.
2324 (rx_fpsw_type): Delete.
2325 (rx_register_type): Delete.
2326 (rx_gdbarch_init): Convert target-descriptions.
2327 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2328 * gdb/features/Makefile: Add rx.xml.
2329 * gdb/features/rx.xml: New.
2330 * gdb/features/rx.c: Generated.
2331 * gdb/NEWS: Mention target description support.
2332
d0509ba4
CB
23332019-08-22 Christian Biesinger <cbiesinger@google.com>
2334
2335 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2336 *slot_ptr.
2337
2d41fa11
SDJ
23382019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2339
2340 * configure.ac: Don't check for 'dlfcn.h' (moved to
2341 gdbsupport/common.m4).
2342 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2343 'gdbsupport/'.
2344 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2345 * compile/compile-c-support.c: Include
2346 'gdbsupport/gdb-dlfcn.h'.
2347 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2348 * gdb-dlfcn.c: Move to...
2349 * gdbsupport/gdb-dlfcn.c: ... here.
2350 * gdb-dlfcn.h: Move to...
2351 * gdbsupport/gdb-dlfcn.h: ... here.
2352
de8af808
SL
23532019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2354
2355 * nios2-tdep.c (struct reg_value): Improve comments. Make
2356 the offset field signed.
2357
27204489
CB
23582019-08-22 Christian Biesinger <cbiesinger@google.com>
2359
2360 * python/lib/gdb/__init__.py (_execute_file): New function.
2361 * python/python.c (python_run_simple_file): Call gdb._execute_file
2362 on Windows.
2363
43771869
AB
23642019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2367 all uses as this was never set to anything but a zero value.
2368
26c957f1
PA
23692019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2370
2371 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2372
c07aae6e
CB
23732019-08-21 Christian Biesinger <cbiesinger@google.com>
2374
2375 * tui/tui-data.h (tui_gen_win_info): Add an =default
2376 move constructor, required by some GCC versions.
2377
3960cb7a
JF
23782019-08-21 Jinke Fan <fanjinke51@yeah.net>
2379
2380 * go32-nat.c (go32_sysinfo): Add hygon_p.
2381
04c72a68
TT
23822019-08-20 Tom Tromey <tom@tromey.com>
2383
2384 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2385 line_from_reg_element_no, first_reg_element_no_inline,
2386 display_all_data, delete_data_content_windows,
2387 erase_data_content>: Now private.
2388
072272ce
TT
23892019-08-20 Tom Tromey <tom@tromey.com>
2390
2391 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2392 (tui_unhighlight_win, tui_highlight_win)
2393 (tui_win_info::make_window): Update.
2394 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2395
973961bd
TT
23962019-08-20 Tom Tromey <tom@tromey.com>
2397
2398 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2399 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2400 (MAX_PID_WIDTH): Move to tui-stack.c.
2401 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2402 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2403 (MAX_PID_WIDTH): Move from tui-data.h.
2404
ab0e1f1a
TT
24052019-08-20 Tom Tromey <tom@tromey.com>
2406
2407 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2408 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2409 (box_win): Update.
2410 (tui_gen_win_info::make_window): Rename from tui_make_window.
2411 (tui_win_info::make_window): New method.
2412 (tui_gen_win_info::make_visible): Update.
2413 * tui/tui-source.c (tui_source_window::set_contents): Update.
2414 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2415 (tui_data_window::display_registers_from): Update.
2416 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2417 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2418 Declare.
2419 <can_box>: Remove.
2420 <title>: Remove.
2421 (struct tui_win_info) <make_window>: Declare.
2422 <can_box>: Now virtual.
2423 <title>: New member.
2424 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2425 * tui/tui-command.c (tui_cmd_window::resize): Update.
2426
100c2bf3
TT
24272019-08-20 Tom Tromey <tom@tromey.com>
2428
2429 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2430 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2431 (tui_data_window::check_register_values): Update.
2432
fa4dc567
TT
24332019-08-20 Tom Tromey <tom@tromey.com>
2434
2435 * tui/tui-regs.h (struct tui_data_window): Use
2436 DISABLE_COPY_AND_ASSIGN.
2437 <regs_content>: Change type, removing unique_ptr.
2438 <tui_data_window>: Add move constructor.
2439 * tui/tui-regs.c (tui_data_window::show_registers)
2440 (tui_data_window::show_register_group)
2441 (tui_data_window::display_registers_from)
2442 (tui_data_window::display_registers_from)
2443 (tui_data_window::first_data_item_displayed)
2444 (tui_data_window::delete_data_content_windows)
2445 (tui_data_window::rerender, tui_data_window::refresh_window)
2446 (tui_data_window::check_register_values): Update.
2447
ca02d7c8
TT
24482019-08-20 Tom Tromey <tom@tromey.com>
2449
2450 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2451 show_register_group>: Declare.
2452 (tui_show_register_group): Don't declare.
2453 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2454 tui_show_registers.
2455 (tui_data_window::show_register_group): Rename from
2456 tui_show_register_group.
2457 (tui_data_window::check_register_values, tui_reg_command):
2458 Update.
2459 * tui/tui-layout.c (tui_set_layout): Update.
2460
63356bfd
TT
24612019-08-20 Tom Tromey <tom@tromey.com>
2462
2463 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2464 Declare.
2465 (tui_check_register_values): Don't declare.
2466 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2467 from tui_check_register_values.
2468 * tui/tui-hooks.c (tui_register_changed): Update.
2469
42cc14a7
TT
24702019-08-20 Tom Tromey <tom@tromey.com>
2471
2472 * tui/tui-regs.c (tui_reg_layout): Move later.
2473 (tui_show_registers): Don't enable TUI mode or change layout.
2474
b9ad3686
TT
24752019-08-20 Tom Tromey <tom@tromey.com>
2476
2477 * tui/tui-regs.h (struct tui_data_item_window)
2478 <~tui_data_item_window>: Remove.
2479 <content>: Now a unique_xmalloc_ptr.
2480 * tui/tui-regs.c (tui_register_format): Return a
2481 unique_xmalloc_ptr.
2482 (tui_get_register): Update.
2483 (~tui_data_item_window): Remove.
2484 (tui_data_window::display_registers_from, tui_display_register):
2485 Update.
2486 * tui/tui-io.h (tui_expand_tabs): Update.
2487 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2488 Remove "col" parameter.
2489
8e114aab
TT
24902019-08-20 Tom Tromey <tom@tromey.com>
2491
2492 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2493 field.
2494 * tui/tui-regs.c (~tui_data_item_window): Update.
2495
1a4f81dd
TT
24962019-08-20 Tom Tromey <tom@tromey.com>
2497
2498 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2499 earlier.
2500
0f8d8876
TT
25012019-08-20 Tom Tromey <tom@tromey.com>
2502
2503 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2504
605dc2c2
TT
25052019-08-20 Tom Tromey <tom@tromey.com>
2506
2507 * tui/tui-source.h (struct tui_source_window): Update.
2508 * tui/tui-regs.c (tui_show_registers): Update.
2509 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2510 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2511 (NO_REGS_STRING): Remove defines.
2512
aedbe3bb
CM
25132019-08-20 Conrad Meyer <cem@FreeBSD.org>
2514
2515 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2516 unnecessary thread walk if remote doesn't support the packet.
2517
7ce8f214
TT
25182019-08-19 Tom Tromey <tromey@adacore.com>
2519
2520 * python/py-value.c (value_has_field): Fix indentation.
2521
f21c2bd7
TT
25222019-08-19 Tom Tromey <tromey@adacore.com>
2523
2524 * printcmd.c (do_one_display, info_display_command): Update.
2525 * block.h (contained_in): Return bool. Add allow_nested
2526 parameter.
2527 * block.c (contained_in): Return bool. Add allow_nested
2528 parameter.
2529
d806ea2d
TT
25302019-08-19 Tom Tromey <tom@tromey.com>
2531
2532 * configure: Rebuild.
2533 * configure.ac: Disallow the combination of -static-libstdc++ and
2534 source highlight.
2535 * source-cache.c (get_language_name): Handle rust.
2536 (source_cache::get_source_lines): Ignore highlighting exceptions.
2537
398fdd60
TT
25382019-08-16 Tom Tromey <tom@tromey.com>
2539
2540 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2541 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2542 (struct tui_source_window_base) <make_visible, refresh_window,
2543 resize>: Remove methods.
2544 <execution_info>: Remove field.
2545 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2546 (tui_show_source_line, tui_source_window_base)
2547 (~tui_source_window_base): Update.
2548 (tui_source_window_base::resize)
2549 (tui_source_window_base::make_visible)
2550 (tui_source_window_base::refresh_window): Remove.
2551 (tui_source_window_base::update_exec_info): Update.
2552 * tui/tui-source.c (tui_source_window::set_contents): Update.
2553 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2554
e699d331
TT
25552019-08-16 Tom Tromey <tom@tromey.com>
2556
2557 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2558 deprecated_query_hook.
2559
bb01dbfc
TT
25602019-08-16 Tom Tromey <tom@tromey.com>
2561
2562 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2563 (tui_update_source_windows_with_line): Update.
2564 * tui/tui-source.h (struct tui_source_window)
2565 <show_symtab_source>: Declare.
2566 (tui_show_symtab_source): Don't declare.
2567 * tui/tui-source.c (tui_show_symtab_source): Rename from
2568 tui_show_symtab_source.
2569
81c82c4b
TT
25702019-08-16 Tom Tromey <tom@tromey.com>
2571
2572 * tui/tui-winsource.h (struct tui_source_window_base)
2573 <set_contents>: Declare.
2574 * tui/tui-winsource.c
2575 (tui_source_window_base::update_source_window_as_is): Update.
2576 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2577 Declare.
2578 (tui_set_source_content): Don't declare.
2579 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2580 tui_set_source_content.
2581 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2582 Declare.
2583 (tui_set_disassem_content): Don't declare.
2584 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2585 tui_set_disassem_content.
2586
2ddaf614
TT
25872019-08-16 Tom Tromey <tom@tromey.com>
2588
2589 * tui/tui-winsource.h (struct tui_source_window_base)
2590 <update_breakpoint_info>: Declare.
2591 (tui_update_breakpoint_info): Don't declare.
2592 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2593 (tui_update_all_breakpoint_info): Update.
2594 (tui_source_window_base::update_breakpoint_info): Rename from
2595 tui_update_breakpoint_info.
2596 (tui_source_window_base::update_exec_info): Update.
2597
017f9828
TT
25982019-08-16 Tom Tromey <tom@tromey.com>
2599
2600 * tui/tui-winsource.h (struct tui_source_window_base)
2601 <update_source_window>: Declare.
2602 (tui_update_source_window): Don't declare.
2603 * tui/tui-winsource.c
2604 (tui_source_window_base::update_source_window): Rename from
2605 tui_update_source_window.
2606 (tui_source_window_base::rerender): Update.
2607 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2608 * tui/tui-disasm.c (tui_show_disassem)
2609 (tui_show_disassem_and_update_source)
2610 (tui_disasm_window::maybe_update): Update.
2611
ed8358e9
TT
26122019-08-16 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-winsource.h (struct tui_source_window_base)
2615 <update_source_window_as_is>: Declare.
2616 (tui_update_source_window_as_is): Don't declare.
2617 * tui/tui-winsource.c (tui_update_source_window): Update
2618 (tui_source_window_base::update_source_window_as_is): Rename from
2619 tui_update_source_window_as_is.
2620 (tui_source_window_base::refill): Update.
2621 * tui/tui-source.c (tui_show_symtab_source): Update.
2622 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2623 Update.
2624
20149b6b
TT
26252019-08-16 Tom Tromey <tom@tromey.com>
2626
2627 * tui/tui-winsource.h (tui_update_source_window)
2628 (tui_update_source_window_as_is): Remove "noerror" parameter.
2629 * tui/tui-winsource.c (tui_update_source_window)
2630 (tui_update_source_window_as_is): Remove "noerror" parameter.
2631 (tui_update_source_windows_with_addr)
2632 (tui_update_source_windows_with_line)
2633 (tui_source_window_base::rerender)
2634 (tui_source_window_base::refill): Update.
2635 * tui/tui-source.h (tui_set_source_content)
2636 (tui_show_symtab_source): Remove "noerror" parameter.
2637 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2638 parameter.
2639 (tui_show_symtab_source): Likewise.
2640 (tui_source_window::maybe_update): Update.
2641 * tui/tui-disasm.c (tui_show_disassem)
2642 (tui_show_disassem_and_update_source)
2643 (tui_disasm_window::do_scroll_vertical)
2644 (tui_disasm_window::maybe_update): Update.
2645
2d83e710
TT
26462019-08-16 Tom Tromey <tom@tromey.com>
2647
2648 * tui/tui.c (tui_is_window_visible): Update.
2649 * tui/tui-wingeneral.c (tui_make_window)
2650 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2651 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2652 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2653 (tui_set_win_height_command, parse_scrolling_args): Update.
2654 * tui/tui-source.c (tui_source_window::style_changed): Update.
2655 * tui/tui-regs.c (tui_show_registers)
2656 (tui_data_window::first_data_item_displayed)
2657 (tui_data_window::delete_data_content_windows)
2658 (tui_check_register_values, tui_reg_command): Update.
2659 * tui/tui-disasm.c (tui_show_disassem): Update.
2660 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2661 method.
2662 <is_visible>: Remove field.
2663 * tui/tui-data.c (tui_next_win, tui_prev_win)
2664 (tui_delete_invisible_windows): Update.
2665
d4ab829a
TT
26662019-08-16 Tom Tromey <tom@tromey.com>
2667
2668 * tui/tui-winsource.h (struct tui_source_window_base)
2669 <m_has_locator>: Remove.
2670 * tui/tui-layout.c (show_source_disasm_command, show_data)
2671 (show_source_or_disasm_and_command): Update.
2672
aa7ca1bb
AH
26732019-08-16 Alan Hayward <alan.hayward@arm.com>
2674
2675 * NEWS (Other MI changes): New subsection.
2676 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2677 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2678 * arch-utils.c (default_get_pc_address_flags): New function.
2679 * arch-utils.h (default_get_pc_address_flags): New declaration.
2680 * gdbarch.sh: Add get_pc_address_flags.
2681 * gdbarch.c: Regenerate.
2682 * gdbarch.h: Likewise.
2683 * stack.c (print_pc): New function.
2684 (print_frame_info) (print_frame): Call print_pc.
2685
6eac171f
TV
26862019-08-16 Tom de Vries <tdevries@suse.de>
2687
2688 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2689 print_objfile_section_info.
2690
3df505f6
TT
26912019-08-15 Tom Tromey <tom@tromey.com>
2692
2693 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2694 calling update_cmdwin_start_line.
2695 * tui/tui-winsource.h (struct tui_source_window_base)
2696 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2697 <rerender>: Declare.
2698 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2699 Call rerender.
2700 (tui_source_window_base::set_new_height): Remove.
2701 (tui_source_window_base::rerender): Rename from
2702 do_make_visible_with_new_height.
2703 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2704 resize method.
2705 (tui_win_info::make_invisible_and_set_new_height)
2706 (tui_win_info::make_visible_with_new_height): Remove.
2707 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2708 Declare.
2709 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2710 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2711 do_make_visible_with_new_height>: Don't declare.
2712 <rerender>: Declare.
2713 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2714 set_new_height.
2715 (tui_data_window::do_make_visible_with_new_height): Remove.
2716 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2717 call tui_show_locator_content.
2718 (tui_gen_win_info::resize): Call rerender.
2719 (show_source_or_disasm_and_command): Don't call
2720 tui_show_locator_content.
2721 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2722 method.
2723 (struct tui_win_info) <rerender>: Declare.
2724 <set_new_height, make_invisible_and_set_new_height,
2725 make_visible_with_new_height>: Don't declare.
2726 * tui/tui-data.c (tui_win_list::rerender): New method.
2727 * tui/tui-command.h (struct tui_cmd_window)
2728 <do_make_visible_with_new_height>: Don't declare.
2729 * tui/tui-command.c
2730 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2731
272560b5
TT
27322019-08-15 Tom Tromey <tromey@adacore.com>
2733
2734 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2735 * ada-lang.c (ada_enum_name): Likewise.
2736
08235187
CB
27372019-08-15 Christian Biesinger <cbiesinger@google.com>
2738
2739 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2740 leading underscore.
2741 (GdbOutputErrorFile): Likewise.
2742 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2743 accordingly.
2744 (execute_unwinders): Rename to have a leading underscore.
2745 (auto_load_packages): Likewise.
2746 (global scope): Adjust call to auto_load_packages accordingly.
2747 (GdbSetPythonDirectory): Likewise.
2748 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2749 instead of execute_unwinders.
2750
db502012
TT
27512019-08-15 Tom Tromey <tom@tromey.com>
2752
2753 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2754 (show_data): Don't change window visibility.
2755 (tui_gen_win_info::resize): Remove special case for command
2756 window. Use wresize, when available.
2757 (show_source_or_disasm_and_command): Don't change window
2758 visibility.
2759 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2760 <make_visible>: New method.
2761 * tui/tui-command.c (tui_cmd_window::resize): New method.
2762
3891b65e
TT
27632019-08-15 Tom Tromey <tom@tromey.com>
2764
2765 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2766 (struct tui_source_windows): New.
2767 * tui/tui-winsource.c (tui_display_main): Update.
2768 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2769 (new_height_ok, parse_scrolling_args): Update.
2770 * tui/tui-layout.c (show_layout, show_data): Update.
2771 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2772 (tui_add_to_source_windows): Don't declare.
2773 * tui/tui-data.c (source_windows, tui_source_windows)
2774 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2775
ee556432
TT
27762019-08-15 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2779 Rename from reset.
2780 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2781 * tui/tui-layout.c (show_source_disasm_command, show_data):
2782 Update.
2783 (tui_gen_win_info::resize): Rename.
2784 (show_source_or_disasm_and_command): Update.
2785 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2786 reset.
2787
46f438e3
TT
27882019-08-15 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2791 * tui/tui-interp.c (tui_interp::init): Don't call
2792 tui_initialize_static_data.
2793 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2794
f4ce562c
TT
27952019-08-15 Tom Tromey <tom@tromey.com>
2796
2797 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2798 examine tui_win_list.
2799
c398c3d0
TT
28002019-08-15 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2803 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2804 tui_clear_source_content.
2805 (tui_clear_source_content): Remove.
2806 (tui_source_window_base::do_erase_source_content): Hoist call to
2807 content.clear().
2808 * tui/tui-stack.c (tui_show_frame_info): Don't call
2809 tui_clear_source_content.
2810
e25d2004
TT
28112019-08-15 Tom Tromey <tom@tromey.com>
2812
2813 * tui/tui-winsource.h (struct tui_source_window_base)
2814 <do_erase_source_content>: New method.
2815 <erase_source_content>: New method.
2816 (tui_erase_source_content): Don't declare.
2817 * tui/tui-winsource.c (tui_clear_source_content): Update.
2818 (tui_source_window_base::do_erase_source_content): Rename from
2819 tui_erase_source_content.
2820 (tui_source_window_base::show_source_content): Update.
2821 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2822 * tui/tui-source.h (struct tui_source_window)
2823 <erase_source_content>: New method.
2824 * tui/tui-disasm.h (struct tui_disasm_window)
2825 <erase_source_content>: New method.
2826
002f15c2
TT
28272019-08-15 Tom Tromey <tom@tromey.com>
2828
2829 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2830 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2831 constructor.
2832 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2833 * tui/tui-source.c (tui_set_source_content): Update.
2834 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2835
c9033fe8
TT
28362019-08-15 Tom Tromey <tom@tromey.com>
2837
2838 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2839 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2840 tui-source.c.
2841 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2842 Declare.
2843 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2844 method.
2845 (tui_source_window::maybe_update): Update.
2846
088f37dd
TT
28472019-08-15 Tom Tromey <tom@tromey.com>
2848
2849 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2850 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2851 tui-disasm.c.
2852 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2853 Declare.
2854 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2855 method.
2856 (tui_disasm_window::maybe_update): Update.
2857
a54700c6
TT
28582019-08-15 Tom Tromey <tom@tromey.com>
2859
2860 * tui/tui-winsource.h (struct tui_source_window_base)
2861 <maybe_update>: Declare.
2862 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2863 method.
2864 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2865 Declare.
2866 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2867 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2868 Declare.
2869 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2870
e2a678a5
TT
28712019-08-15 Tom Tromey <tom@tromey.com>
2872
2873 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2874
f2dda477
TT
28752019-08-15 Tom Tromey <tom@tromey.com>
2876
2877 * tui/tui-wingeneral.c: Include tui-stack.h.
2878 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2879 (struct tui_locator_window): Move from tui-data.h.
2880 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2881 (tui_initialize_static_data): Move from tui-data.c.
2882 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2883 (struct tui_locator_window): Move to tui-stack.c.
2884 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2885 (tui_initialize_static_data): Move to tui-stack.c.
2886
ed4a1084
TT
28872019-08-15 Tom Tromey <tom@tromey.com>
2888
2889 * tui/tui-layout.c (show_source_disasm_command)
2890 (show_source_or_disasm_and_command): Use make_visible method, not
2891 tui_make_window.
2892 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2893 Remove.
2894
65962b20
TT
28952019-08-15 Tom Tromey <tom@tromey.com>
2896
2897 * tui/tui-wingeneral.h (tui_make_window): Update.
2898 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2899 parameter.
2900 (tui_gen_win_info::make_visible): Update.
2901 * tui/tui-regs.c (tui_data_window::display_registers_from):
2902 Update.
2903 * tui/tui-layout.c (show_source_disasm_command)
2904 (show_source_or_disasm_and_command): Update.
2905 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2906 (enum tui_box): Remove.
2907 (struct tui_win_info) <can_box>: New method.
2908 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2909 method.
2910
2208ee91
TV
29112019-08-15 Tom de Vries <tdevries@suse.de>
2912
2913 * linux-nat-trad.c: Include gdbarch.h.
2914
75faf5c4
AH
29152019-08-14 Alan Hayward <alan.hayward@arm.com>
2916
2917 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2918 register sizes.
2919
b1c896b3
TT
29202019-08-14 Tom Tromey <tromey@adacore.com>
2921
2922 * darwin-nat.c: Include gdbarch.h.
2923 * darwin-nat-info.c: Include gdbarch.h.
2924
6405cd73
TT
29252019-08-13 Tom Tromey <tom@tromey.com>
2926
2927 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2928 Remove.
2929 * tui/tui-data.c (tui_initialize_static_data): Update.
2930
5216580d
TT
29312019-08-13 Tom Tromey <tom@tromey.com>
2932
2933 * tui/tui-winsource.h (struct tui_exec_info_window)
2934 <~tui_exec_info_window, maybe_allocate_content, get_content,
2935 m_content>: Remove.
2936 (struct tui_source_window_base) <set_exec_info_content,
2937 show_exec_info_content>: Don't declare.
2938 * tui/tui-winsource.c
2939 (tui_exec_info_window::maybe_allocate_content): Remove.
2940 (tui_source_window_base::update_exec_info): Rename from
2941 set_exec_info_content.
2942 (tui_source_window_base::show_exec_info_content)
2943 (tui_source_window_base::update_exec_info): Remove.
2944
93858ad3
TT
29452019-08-13 Tom Tromey <tom@tromey.com>
2946
2947 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2948 declare.
2949 * tui/tui-winsource.c (tui_update_source_window_as_is)
2950 (tui_update_source_windows_with_addr, tui_erase_source_content):
2951 Update.
2952 (tui_clear_exec_info_content): Remove.
2953
e321e7ce
TT
29542019-08-13 Tom Tromey <tom@tromey.com>
2955
2956 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2957 declare.
2958 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2959 call tui_erase_exec_info_content.
2960 (tui_clear_exec_info_content): Rename from
2961 tui_erase_exec_info_content.
2962 (tui_clear_exec_info_content): Delete.
2963
8270ac62
TT
29642019-08-13 Tom Tromey <tom@tromey.com>
2965
2966 * tui/tui-winsource.h (struct tui_source_window_base)
2967 <show_exec_info_content>: Declare.
2968 (tui_show_exec_info_content): Don't declare.
2969 * tui/tui-winsource.c
2970 (tui_source_window_base::show_exec_info_content): Rename from
2971 tui_show_exec_info_content.
2972 (tui_source_window_base::update_exec_info): Update.
2973
7b56485d
TT
29742019-08-13 Tom Tromey <tom@tromey.com>
2975
2976 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2977 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2978 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2979 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2980 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2981 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2982 ... here.
2983
7ba913dc
TT
29842019-08-13 Tom Tromey <tom@tromey.com>
2985
2986 * tui/tui-winsource.h (struct tui_source_window_base)
2987 <update_exec_info>: Declare.
2988 (tui_update_exec_info): Don't declare.
2989 * tui/tui-winsource.c (tui_update_source_window_as_is)
2990 (tui_source_window_base::refresh_all)
2991 (tui_update_all_breakpoint_info): Update.
2992 (tui_source_window_base::update_exec_info): Rename from
2993 tui_update_exec_info.
2994 * tui/tui-stack.c (tui_show_frame_info): Update.
2995
37a4a131
TT
29962019-08-13 Tom Tromey <tom@tromey.com>
2997
2998 * tui/tui-winsource.h (struct tui_source_window_base)
2999 <set_exec_info_content>: Declare.
3000 (tui_set_exec_info_content): Don't declare.
3001 * tui/tui-winsource.c
3002 (tui_source_window_base::set_exec_info_content): Rename from
3003 tui_set_exec_info_content.
3004 (tui_update_exec_info): Update.
3005
0bd27e07
TT
30062019-08-13 Tom Tromey <tom@tromey.com>
3007
3008 * tui/tui-winsource.h (struct tui_source_window_base)
3009 <show_source_content>: Declare.
3010 (tui_show_source_content): Don't declare.
3011 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3012 (tui_source_window_base::show_source_content): Rename from
3013 tui_show_source_content.
3014 (tui_source_window_base::refresh_all): Update.
3015 * tui/tui-layout.c (show_source_disasm_command)
3016 (show_source_or_disasm_and_command): Update.
3017
b4ef5aeb
TT
30182019-08-13 Tom Tromey <tom@tromey.com>
3019
3020 * tui/tui-winsource.c (tui_erase_source_content)
3021 (tui_show_source_content, tui_source_window_base::refresh_all):
3022 Update.
3023 * tui/tui-wingeneral.h
3024 (tui_check_and_display_highlight_if_needed): Don't declare.
3025 * tui/tui-wingeneral.c
3026 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3027 check_and_display_highlight_if_needed.
3028 * tui/tui-win.c (tui_rehighlight_all)
3029 (tui_win_info::make_visible_with_new_height): Update.
3030 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3031 (tui_data_window::erase_data_content)
3032 (tui_data_window::display_all_data): Update.
3033 * tui/tui-data.h (struct tui_win_info)
3034 <check_and_display_highlight_if_needed>: Declare.
3035
fede5273
TT
30362019-08-13 Tom Tromey <tom@tromey.com>
3037
3038 * tui/tui-win.c (tui_resize_all): Call
3039 tui_delete_invisible_windows.
3040 * tui/tui-layout.c (show_layout): Call
3041 tui_delete_invisible_windows.
3042 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3043 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3044
22c3f490
TT
30452019-08-13 Tom Tromey <tom@tromey.com>
3046
3047 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3048 tui_add_win_to_layout.
3049
16cb7910
TT
30502019-08-13 Tom Tromey <tom@tromey.com>
3051
3052 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3053 * tui/tui-layout.c (tui_default_win_height): Now static.
3054
cc0c3ffb
TT
30552019-08-13 Tom Tromey <tom@tromey.com>
3056
3057 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3058 single switch.
3059 (show_source_disasm_command, show_source_or_disasm_and_command):
3060 Don't check current layout.
3061
3f3ffe54
TT
30622019-08-13 Tom Tromey <tom@tromey.com>
3063
3064 * tui/tui-wingeneral.c (make_all_visible): Remove.
3065 (tui_make_all_invisible): Simplify.
3066 * tui/tui-layout.c (tui_make_all_invisible): Move from
3067 tui-wingeneral.c; simplify.
3068 (show_layout): Hoist call to tui_make_all_invisible.
3069 (show_data): Don't call tui_make_all_invisible.
3070
69258091
TT
30712019-08-13 Tom Tromey <tom@tromey.com>
3072
3073 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3074 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3075
62cf57fe
TT
30762019-08-13 Tom Tromey <tom@tromey.com>
3077
3078 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3079 tui-data.c.
3080 (show_source_disasm_command, show_data)
3081 (show_source_or_disasm_and_command): Don't use
3082 tui_set_current_layout_to.
3083 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3084 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3085 tui-layout.c.
3086 (tui_set_current_layout_to): Remove.
3087
2afade5d
TT
30882019-08-13 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui-layout.c (tui_set_layout): Update.
3091 * tui/tui-data.h (struct tui_layout_def): Remove.
3092 (tui_layout_def): Don't declare.
3093 * tui/tui-data.c (layout_def): Remove.
3094 (tui_layout_def): Remove.
3095
a3504e96
TT
30962019-08-13 Tom Tromey <tom@tromey.com>
3097
3098 * tui/tui-winsource.h (struct tui_source_window_base)
3099 <clear_detail>: No longer "override".
3100 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3101 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3102 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3103 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3104 Remove.
3105 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3106
29c92911
TT
31072019-08-13 Tom Tromey <tromey@adacore.com>
3108
3109 * tracepoint.c: Don't include readline.h or history.h.
3110
86c6b807
TT
31112019-08-12 Tom Tromey <tom@tromey.com>
3112
3113 * configure: Rebuild.
3114 * configure.ac: Check for readline 7.
3115 * NEWS: Mention readline 7 requirement.
3116 * README: Update.
3117
5db2718c
TT
31182019-08-12 Tom Tromey <tom@tromey.com>
3119
3120 * mingw-hdep.c (gdb_select): Remove readline hack.
3121
dac36daf
PFC
31222019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3123
3124 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3125 when the function fails.
3126
1022c627
AA
31272019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3128
3129 * s390-tdep.c (s390_type_align): New function.
3130 (s390_gdbarch_init): Set it as type_align gdbarch method.
3131
eba4caf2
TV
31322019-08-09 Tom de Vries <tdevries@suse.de>
3133
3134 PR gdb/24591
3135 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3136 pc_low with relocation offset.
3137
123cd851
TT
31382019-08-07 Tom Tromey <tromey@adacore.com>
3139
3140 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3141 (print_frame_args): Update.
3142 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3143 Update.
3144 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3145 * frame.h (struct frame_arg): Add initializers.
3146 <error>: Now a unique_xmalloc_ptr.
3147
3d31bc39
AH
31482019-08-07 Alan Hayward <alan.hayward@arm.com>
3149
3150 * NEWS: Expand the Pointer Authentication entry.
3151 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3152 (aarch64_frame_unmask_lr): ... to this.
3153 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3154 Call aarch64_frame_unmask_lr.
3155 * frame.c (struct frame_info): Add "masked" variable.
3156 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3157 (fprint_frame): Check for masked pc.
3158 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3159 declarations.
3160 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3161 * stack.c (print_frame): Check for masked pc.
3162
0cf9feb9
TT
31632019-08-06 Tom Tromey <tom@tromey.com>
3164
3165 * stabsread.c (patch_block_stabs, read_one_struct_field)
3166 (read_enum_type): Use obstack_strndup.
3167 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3168 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3169 * dwarf2read.c (guess_full_die_structure_name)
3170 (anonymous_struct_prefix): Use obstack_strndup.
3171 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3172 * c-exp.y (yylex): Use obstack_strndup.
3173 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3174 (write_var_or_type): Use obstack_strndup.
3175
efba19b0
TT
31762019-08-06 Tom Tromey <tom@tromey.com>
3177
3178 * symfile.c (reread_symbols): Use obstack_strdup.
3179 * stabsread.c (read_type): Use obstack_strdup.
3180 * gdb_obstack.h (obstack_strdup): New overload.
3181 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3182 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3183 (dwarf2_canonicalize_name): Use obstack_strdup.
3184 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3185 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3186 Use obstack_strdup.
3187
f25102f7
TT
31882019-08-06 Tom Tromey <tom@tromey.com>
3189
3190 * gdb_obstack.h (obstack_strdup): Define.
3191 * gdb_obstack.c (obstack_strdup): Don't define.
3192
021887d8
TT
31932019-08-06 Tom Tromey <tom@tromey.com>
3194
3195 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3196 obstack_strdup.
3197 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3198 obstack_strdup.
3199 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3200 * stabsread.c (common_block_start): Use obstack_strdup.
3201 * objfiles.c (set_objfile_main_name, objfile): Use
3202 obstack_strdup.
3203 * namespace.c (add_using_directive): Use obstack_strdup.
3204 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3205 * jit.c (finalize_symtab): Use obstack_strdup.
3206 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3207 (guess_partial_die_structure_name, partial_die_info::fixup)
3208 (dwarf2_name): Use obstack_strdup.
3209 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3210 obstack_strdup.
3211 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3212 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3213 obstack_strdup.
3214 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3215
d2834edc
PW
32162019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3217
3218 * unittests/help-doc-selftests.c: New file.
3219 * Makefile.in: Add the new file.
3220
590042fc
PW
32212019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3222
3223 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3224 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3225 the full first line, except when FOR_VALUE_PREFIX. In this case,
3226 the trailing '.' is not output, and the first character is uppercased.
3227 (print_help_for_command): Update call to print_doc_line.
3228 (print_doc_of_command): Likewise.
3229 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3230 * cli/cli-option.c (append_indented_doc): Do not append newline.
3231 (build_help_option): Append newline after first appended_indented_doc
3232 only if a second call is done.
3233 (build_help): Append 2 new lines before each option, except the first
3234 one.
3235 * compile/compile.c (_initialize_compile): Add new lines after
3236 %OPTIONS%, when not at the end of the help.
3237 Change help doc or code
3238 producing the help doc to respect the invariants.
3239 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3240 Also removed the new line after 'Options:', as all other commands
3241 do not put an empty line between 'Options:' and the first option.
3242 * printcmd.c (_initialize_printcmd): Likewise.
3243 * stack.c (_initialize_stack): Likewise.
3244 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3245 incorrectly telling COMMAND is optional.
3246 * ada-lang.c (_initialize_ada_language): Change help doc or code
3247 producing the help doc to respect the invariants.
3248 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3249 * breakpoint.c (_initialize_breakpoint): Likewise.
3250 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3251 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3252 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3253 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3254 _initialize_cli_style): Likewise.
3255 * corelow.c (core_target_info): Likewise.
3256 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3257 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3258 * filesystem.c (_initialize_filesystem): Likewise.
3259 * frame.c (_initialize_frame): Likewise.
3260 * gnu-nat.c (add_task_commands): Likewise.
3261 * infcall.c (_initialize_infcall): Likewise.
3262 * infcmd.c (_initialize_infcmd): Likewise.
3263 * interps.c (_initialize_interpreter): Likewise.
3264 * language.c (_initialize_language): Likewise.
3265 * linux-fork.c (_initialize_linux_fork): Likewise.
3266 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3267 * maint.c (_initialize_maint_cmds): Likewise.
3268 * memattr.c (_initialize_mem): Likewise.
3269 * printcmd.c (_initialize_printcmd): Likewise.
3270 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3271 _RegEx): Likewise.
3272 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3273 * record-btrace.c (_initialize_record_btrace): Likewise.
3274 * record-full.c (_initialize_record_full): Likewise.
3275 * record.c (_initialize_record): Likewise.
3276 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3277 * regcache.c (_initialize_regcache): Likewise.
3278 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3279 _initialize_remote): Likewise.
3280 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3281 * serial.c (_initialize_serial): Likewise.
3282 * skip.c (_initialize_step_skip): Likewise.
3283 * source.c (_initialize_source): Likewise.
3284 * stack.c (_initialize_stack): Likewise.
3285 * symfile.c (_initialize_symfile): Likewise.
3286 * symtab.c (_initialize_symtab): Likewise.
3287 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3288 * top.c (init_main): Likewise.
3289 * tracefile-tfile.c (tfile_target_info): Likewise.
3290 * tracepoint.c (_initialize_tracepoint): Likewise.
3291 * tui/tui-win.c (_initialize_tui_win): Likewise.
3292 * utils.c (add_internal_problem_command): Likewise.
3293 * valprint.c (value_print_option_defs): Likewise.
3294
404f2902
FCE
32952019-08-06 Frank Ch. Eigler <fche@redhat.com>
3296
3297 PR build/24886
3298 * configure.ac: Drop enable-libmcheck support.
3299 * configure, config.in: Rebuild.
3300 * libmcheck.m4: Remove.
3301 * acinclude.m4: Don't include it.
3302 * Makefile.in: Don't distribute it.
3303 * top.c (print_gdb_configuration): Don't mention it.
3304
046bebe1
TT
33052019-08-06 Tom Tromey <tom@tromey.com>
3306
3307 * utils.c (set_output_style): Sometimes pass stream to
3308 emit_style_escape.
3309 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3310 * record-btrace.c (btrace_insn_history): Update.
3311 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3312 method.
3313 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3314 Update initializers.
3315 <m_uiout>: New field.
3316 <m_di>: Move lower.
3317 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3318 Remove "uiout" parameter.
3319 (dump_insns): Update.
3320 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3321 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3322
ddbcedf5
CB
33232019-08-06 Christian Biesinger <cbiesinger@google.com>
3324
3325 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3326 (error_in_psymtab_expansion): Likewise.
3327 (lookup_symbol_via_quick_fns): Likewise.
3328 (basic_lookup_transparent_type_quick): Likewise.
3329 (basic_lookup_transparent_type_1): Likewise.
3330
b08b16c8
TT
33312019-08-06 Tom Tromey <tromey@adacore.com>
3332
3333 * source.c (last_source_error): Now bool.
3334 (print_source_lines_base): Make "noprint" bool. Only open
3335 source file when last_source_visited changes.
3336
cb44333d
TT
33372019-08-06 Tom Tromey <tromey@adacore.com>
3338
3339 * annotate.c (annotate_source_line): Use g_source_cache.
3340 * source-cache.c (source_cache::get_plain_source_lines): Change
3341 parameters. Populate m_offset_cache.
3342 (source_cache::ensure): New method.
3343 (source_cache::get_line_charpos): New method.
3344 (extract_lines): Move lower. Change parameters.
3345 (source_cache::get_source_lines): Move lower.
3346 * source-cache.h (class source_cache): Update comment.
3347 <get_line_charpos>: New method.
3348 <get_source_lines>: Update comment.
3349 <clear>: Clear m_offset_cache.
3350 <get_plain_source_lines>: Change parameters.
3351 <ensure>: New method
3352 <m_offset_cache>: New member.
3353 * source.c (forget_cached_source_info_for_objfile): Update.
3354 (info_source_command): Use g_source_cache.
3355 (find_source_lines, open_source_file_with_line_charpos): Remove.
3356 (print_source_lines_base, search_command_helper): Use g_source_cache.
3357 * source.h (open_source_file_with_line_charpos): Don't declare.
3358 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3359 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3360 Use g_source_cache.
3361
872dceaa
TT
33622019-08-06 Tom Tromey <tromey@adacore.com>
3363
3364 * source-cache.c (source_cache::get_plain_source_lines):
3365 Remove "first_line" and "last_line" parameters.
3366 (source_cache::get_source_lines): Cache plain text.
3367 * source-cache.h (class source_cache)
3368 <get_plain_source_lines>: Update.
3369
269249d9
TT
33702019-08-06 Tom Tromey <tromey@adacore.com>
3371
3372 * source-cache.c (extract_lines): No longer a method.
3373 Changed type of parameter. Include final newline.
3374 (selftests::extract_lines_test): New function.
3375 (_initialize_source_cache): Likewise.
3376 * source-cache.h (class source_cache)
3377 <extract_lines>: Don't declare.
3378
c0e8dcd8
TT
33792019-08-06 Tom Tromey <tromey@adacore.com>
3380
3381 * breakpoint.c (init_breakpoint_sal): Update.
3382 (breakpoint): Update.
3383 * breakpoint.h (struct breakpoint) <filter>: Now a
3384 unique_xmalloc_ptr.
3385
0b27c27d
CB
33862019-08-05 Christian Biesinger <cbiesinger@google.com>
3387
3388 * NEWS: Mention dictionary access on blocks.
3389 * python/py-block.c (blpy_getitem): New function.
3390 (block_object_as_mapping): New struct.
3391 (block_object_type): Use new struct for tp_as_mapping field.
3392
4ee94178
CB
33932019-08-05 Christian Biesinger <cbiesinger@google.com>
3394
3395 * objfiles.h (objfile): Add a comment describing partial symbols.
3396
8abfcabc
TT
33972019-08-05 Tom Tromey <tromey@adacore.com>
3398
3399 * compile/compile.c (_initialize_compile): Use _(), not N_().
3400 * thread.c (_initialize_thread): Use _(), not N_().
3401 * stack.c (_initialize_stack): Use _(), not N_().
3402 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3403
2b79f376
SM
34042019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 * dwarf2read.c (struct dw2_symtab_iterator):
3407 <want_specific_block>: Remove.
3408 <block_index>: Change type to gdb::optional.
3409 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3410 change type of BLOCK_INDEX parameter to gdb::optional.
3411 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3412 (dw2_lookup_symbol): Don't pass argument for
3413 WANT_SPECIFIC_BLOCK.
3414 (dw2_expand_symtabs_for_function): Don't pass argument for
3415 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3416 (class dw2_debug_names_iterator)
3417 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3418 parameter, change BLOCK_INDEX type to gdb::optional.
3419 <m_want_specific_block>: Remove.
3420 <m_block_index>: Change type to gdb::optional.
3421 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3422 gdb::optional. Re-write in function of gdb::optional.
3423 (dw2_debug_names_lookup_symbol): Don't pass argument for
3424 WANT_SPECIFIC_BLOCK.
3425 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3426 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3427 BLOCK_INDEX.
3428
ae60f04e
PW
34292019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3430
3431 * NEWS: Mention changes to "info sources" command.
3432
28cd9371
PW
34332019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3434
3435 * symtab.c (filename_partial_match_opts): New struct type.
3436 (struct output_source_filename_data): New members
3437 regexp, c_regexp, partial_match.
3438 (output_source_filename): Use new members to decide to print file.
3439 (info_sources_option_defs): New variable.
3440 (make_info_sources_options_def_group, print_info_sources_header,
3441 info_sources_command_completer):
3442 New functions.
3443 (info_sources_command): Read new optional arguments.
3444 (_initialize_symtab): Update info sources help.
3445
ca683e3a
AO
34462019-08-02 Alexandre Oliva <oliva@adacore.com>
3447
3448 * ada-lang.c (exception_support_info_v0): Renamed from...
3449 (default_exception_support_info): ... this. Create new
3450 definition for v1.
3451 (ada_has_this_exception_support): Look up catch_handlers_sym.
3452 (ada_exception_support_info_sniffer): Try v0 after default.
3453
f1264162
TT
34542019-08-01 Tom Tromey <tromey@adacore.com>
3455
3456 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3457 gdbarch.h.
3458
0a7b2485
CB
34592019-08-01 Christian Biesinger <cbiesinger@google.com>
3460
3461 * s12z-tdep.c: Fix include path for s12z-opc.h.
3462
c6bdbeb7
AH
34632019-08-01 Alan Hayward <alan.hayward@arm.com>
3464
3465 * NEWS: Require GNU make 3.82.
3466
a2bd7b82
TT
34672019-07-16 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3470 declare.
3471
aa3b6533
TT
34722019-07-30 Tom Tromey <tromey@adacore.com>
3473
3474 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3475
a1530dc7
KB
34762019-07-30 Kevin Buettner <kevinb@redhat.com>
3477
3478 * printcmd.c (print_address_symbolic): Print negative offsets.
3479 (build_address_symbolic): Force signed arithmetic when computing
3480 offset.
3481
2906593f
CB
34822019-07-30 Christian Biesinger <cbiesinger@google.com>
3483
3484 PR/24474: Add a function to lookup static variables.
3485 * NEWS: Mention this new function.
3486 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3487 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3488 * python/python.c (python_GdbMethods): Add new function.
3489
c620ed88
CB
34902019-07-29 Christian Biesinger <cbiesinger@google.com>
3491
3492 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3493 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3494 (objfpy_lookup_static_symbol): New function.
3495 (objfile_object_methods): Add new functions.
3496
bc4268a5
PW
34972019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3498
3499 * NEWS: Mention 'set|show print frame-info'. Mention new
3500 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3501 backtrace argument. Mention that python frame filtering code
3502 is now consistent with what 'backtrace' command prints.
3503
4b5e8d19
PW
35042019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3505
3506 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3507 comments.
3508 (print_frame_info_auto, print_frame_info_source_line,
3509 print_frame_info_location, print_frame_info_source_and_location,
3510 print_frame_info_location_and_address, print_frame_info_short_location):
3511 New declarations.
3512 (struct frame_print_options): New member print_frame_info.
3513 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3514 * stack.h (get_user_print_what_frame_info): New declaration.
3515 (frame_show_address): New declaration.
3516 * stack.c (print_frame_arguments_choices): New value 'presence'.
3517 (print_frame_info_auto, print_frame_info_source_line,
3518 print_frame_info_location, print_frame_info_source_and_location,
3519 print_frame_info_location_and_address, print_frame_info_short_location,
3520 print_frame_info_choices, print_frame_info_print_what): New definitions.
3521 (print_frame_args): Only print dots for args if print frame-arguments
3522 is 'presence'.
3523 (frame_print_option_defs): New element for "frame-info".
3524 (get_user_print_what_frame_info): New function.
3525 (frame_show_address): Make non static. Move comment to stack.h.
3526 (print_frame_info_to_print_what): New function.
3527 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3528 to decide what to print.
3529 (backtrace_command_1): Handle the new print_frame_arguments_presence
3530 value.
3531 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3532 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3533 (py_print_frame): In non-mi mode, use LOCATION as default for
3534 print_what, similarly to frame information printed directly by
3535 backtrace command. Handle frame-info user option in non MI mode.
3536
6bdfee81
KB
35372019-07-27 Kevin Buettner <kevinb@redhat.com>
3538
3539 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3540 Add case for debugging 32-bit target on 64-bit host. Revise
3541 comment.
3542
98a617f8
KB
35432019-07-27 Kevin Buettner <kevinb@redhat.com>
3544
3545 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3546 instead of find_function_entry_range_from_pc.
3547
567238c9
KB
35482019-07-27 Kevin Buettner <kevinb@redhat.com>
3549
3550 * stack.c (find_frame_funname): Remove code which preferred
3551 minsym over symtab sym in "certain pathological cases".
3552
2dc80cf8
KB
3553 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3554 parameter. Change type of "do_demangle" to bool.
3555 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3556 Pass suitable "prefer_sym_over_minsym" flag to
3557 build_address_symbolic(). Don't output "+" for negative offsets.
3558 * printcmd.c (print_address_symbolic): Update invocation of
3559 build_address_symbolic to include a "prefer_sym_over_minsym"
3560 flag.
3561 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3562 Restrict cases in which use of minimal symbol is preferred to that
3563 of a found symbol. Update comments.
3564
1aff7173
KB
3565 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3566 for entry pc when entry pc is out of range for that FDE.
3567
89b085ac
BC
35682019-07-26 Brian Callahan <bcallah@openbsd.org>
3569
3570 PR gdb/24839:
3571 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3572 type.
3573
f32feb4a
CB
35742019-07-25 Christian Biesinger <cbiesinger@google.com>
3575
3576 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3577 this function's Python signature.
3578
3579
35802019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
3581
3582 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3583 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3584 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3585 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3586 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3587
3588
c54e4253
YS
35892019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3590
3591 * h8300-tdep.c (h8300_register_name_common): New.
3592 h8300_register_name): Use h8300_register_name_common.
3593 (h8300s_register_name): Likewise.
3594 (h8300sx_register_name): Likewise.
3595 (h8300h_register_nam): New.
3596 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3597
3598
40eadf04
SP
35992019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3600
3601 * arm-tdep.c (arm_skip_cmse_entry): New function.
3602 (arm_is_sgstubs_section): New function.
3603 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3604
bfa2a36d
TT
36052019-07-22 Tom Tromey <tom@tromey.com>
3606
3607 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3608 Don't self-assign.
3609
a8e9d247
AB
36102019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3611
3612 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3613 type_print.
3614
eb86c5e2
AB
36152019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3616
3617 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3618 so that GDB doesn't match any msymbols when searching in the
3619 TYPES_DOMAIN.
3620 (print_symbol_info): Print using typedef_print or type_print based
3621 on the type of the symbol. Add updated FIXME comment moved from...
3622 (_initialize_symtab): ... move and update FIXME comment to above.
3623
a8eab7c6
AB
36242019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3625
3626 * NEWS: Mention adding -q option to "info types".
3627 * symtab.c (struct info_types_options): New struct.
3628 (info_types_options_defs): New variable.
3629 (make_info_types_options_def_group): New function.
3630 (info_types_command): Use gdb::option framework to parse options.
3631 (info_types_command_completer): New function.
3632 (_initialize_symtab): Extend the help text on "info types" and
3633 register command completer.
3634
b4603c34
CB
36352019-07-21 Christian Biesinger <cbiesinger@google.com>
3636
3637 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3638 (lookup_symbol_in_objfile): Change int to block_enum and add a
3639 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3640
c8cdc1e0
CB
36412019-07-20 Christian Biesinger <cbiesinger@google.com>
3642
3643 * MAINTAINERS (Write After Approval): Add self.
3644
01e175fe
AB
36452019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3646
3647 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3648 instruction to the dummy code region.
3649
56f79b63
TT
36502019-07-19 Tom Tromey <tromey@adacore.com>
3651
3652 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3653 (ARGSUSED, PARAMS, __func__): Remove rules.
3654
4c5aa8e0
AH
36552019-07-19 Alan Hayward <alan.hayward@arm.com>
3656
3657 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3658 * features/arm/arm-with-iwmmxt.c: Remove.
3659 * features/arm/arm-with-iwmmxt.xml: Remove.
3660 * features/arm/arm-with-m-fpa-layout.c: Remove.
3661 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3662 * features/arm/arm-with-m-vfp-d16.c: Remove.
3663 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3664 * features/arm/arm-with-m.c: Remove.
3665 * features/arm/arm-with-m.xml: Remove.
3666 * features/arm/arm-with-neon.c: Remove.
3667 * features/arm/arm-with-neon.xml: Remove.
3668 * features/arm/arm-with-vfpv2.c: Remove.
3669 * features/arm/arm-with-vfpv2.xml: Remove.
3670 * features/arm/arm-with-vfpv3.c: Remove.
3671 * features/arm/arm-with-vfpv3.xml: Remove.
3672
f42b2617
AH
36732019-07-19 Alan Hayward <alan.hayward@arm.com>
3674
3675 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3676
f29ec966
AH
36772019-07-19 Alan Hayward <alan.hayward@arm.com>
3678
3679 * arch/aarch32.c (aarch32_create_target_description): Create
3680 target descriptions using features.
3681 * arch/arm.c (arm_create_target_description)
3682 (arm_create_mprofile_target_description): Likewise.
3683 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3684
d105cce5
AH
36852019-07-19 Alan Hayward <alan.hayward@arm.com>
3686
3687 * Makefile.in: Add new files.
3688 * aarch32-tdep.c: New file.
3689 * aarch32-tdep.h: New file.
3690 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3691 Call aarch32_read_description.
3692 * arch/aarch32.c: New file.
3693 * arch/aarch32.h: New file.
3694 * arch/arm.c (arm_create_target_description)
3695 (arm_create_mprofile_target_description): New function.
3696 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3697 (arm_create_target_description)
3698 (arm_create_mprofile_target_description): New declaration.
3699 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3700 read_description functions.
3701 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3702 Likewise.
3703 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3704 * arm-tdep.c (tdesc_arm_list): New variable.
3705 (arm_register_g_packet_guesses): Call create description functions.
3706 (arm_read_description) (arm_read_mprofile_description): New
3707 function.
3708 * arm-tdep.h (arm_read_description)
3709 (arm_read_mprofile_description): Add declaration.
3710 * configure.tgt: Add new files.
3711
afe09f0b
GL
37122019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3713
3714 * top.c (new_ui_command): Open specified terminal just once.
3715
cd215b2e
TT
37162019-07-18 Tom Tromey <tromey@adacore.com>
3717
3718 * symtab.c (main_name): Constify return type.
3719 * symfile.c (set_initial_language): Update.
3720 * symtab.h (main_name): Constify return type.
3721
d8f68fcb
TT
37222019-07-17 Tom Tromey <tom@tromey.com>
3723
3724 * tui/tui-winsource.c (tui_update_source_window)
3725 (tui_update_source_window_as_is)
3726 (tui_update_source_windows_with_line): Remove return.
3727 * tui/tui-disasm.c (tui_show_disassem)
3728 (tui_show_disassem_and_update_source): Remove return.
3729 * tui/tui.c (tui_reset): Remove return.
3730 * tui/tui-wingeneral.c
3731 (tui_check_and_display_highlight_if_needed): Remove return.
3732
ca5af91e
TT
37332019-07-17 Tom Tromey <tom@tromey.com>
3734
3735 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3736
5104fe36
TT
37372019-07-17 Tom Tromey <tom@tromey.com>
3738
3739 * tui/tui-winsource.h (struct tui_exec_info_window)
3740 (struct tui_source_window_base): Move from tui-data.h.
3741 * tui/tui-winsource.c: Move many method definitions from
3742 elsewhere. Remove "structuring" comments.
3743 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3744 (tui_source_window_base::refresh_window): Move to
3745 tui-winsource.c.
3746 * tui/tui-win.c (tui_source_window_base::refresh_all)
3747 (tui_source_window_base::update_tab_width)
3748 (tui_source_window_base::set_new_height)
3749 (tui_source_window_base::do_make_visible_with_new_height): Move to
3750 tui-winsource.c.
3751 * tui/tui-source.h: Update.
3752 * tui/tui-source.c (tui_source_window_base::reset): Move to
3753 tui-winsource.c.
3754 * tui/tui-disasm.h: Update.
3755 * tui/tui-data.h (struct tui_exec_info_window): Move to
3756 tui-winsource.h.
3757 (struct tui_source_window_base): Likewise.
3758 * tui/tui-data.c (tui_source_window_base::clear_detail)
3759 (tui_source_window_base, ~tui_source_window_base): Move to
3760 tui-winsource.c.
3761
daa15dde
TT
37622019-07-17 Tom Tromey <tom@tromey.com>
3763
3764 * tui/tui-win.c (tui_resize_all)
3765 (tui_source_window_base::update_tab_width)
3766 (tui_adjust_win_heights): Update.
3767 (tui_win_info::make_invisible_and_set_new_height): Rename from
3768 make_invisible_and_set_new_height.
3769 * tui/tui-data.h (struct tui_win_info)
3770 <make_invisible_and_set_new_height>: New method.
3771
bfad4537
TT
37722019-07-17 Tom Tromey <tom@tromey.com>
3773
3774 * tui/tui.c: Update.
3775 * tui/tui-source.h (struct tui_source_window): Move from
3776 tui-data.h.
3777 * tui/tui-layout.c: Update.
3778 * tui/tui-disasm.c: Update.
3779 * tui/tui-data.h (struct tui_source_window): Move to
3780 tui-source.h.
3781
88f7e873
TT
37822019-07-17 Tom Tromey <tom@tromey.com>
3783
3784 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3785 tui-data.h.
3786 * tui/tui-data.h (struct tui_disasm_window): Move to
3787 tui-disasm.h.
3788
96bd6233
TT
37892019-07-17 Tom Tromey <tom@tromey.com>
3790
3791 * tui/tui-regs.h (struct tui_data_item_window): Move from
3792 tui-data.h.
3793 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3794 * tui/tui-data.h (struct tui_data_item_window): Move to
3795 tui-regs.h.
3796 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3797
ce38393b
TT
37982019-07-17 Tom Tromey <tom@tromey.com>
3799
3800 * tui/tui.c: Update.
3801 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3802 (tui_cmd_window::max_height): Move to tui-command.c.
3803 * tui/tui-layout.c: Update.
3804 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3805 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3806 tui-command.c.
3807 * tui/tui-command.h (struct tui_cmd_window): Move from
3808 tui-data.h.
3809 * tui/tui-command.c: Remove "structuring" comments.
3810 (tui_cmd_window::clear_detail)
3811 (tui_cmd_window::do_make_visible_with_new_height)
3812 (tui_cmd_window::max_height): Move from elsewhere.
3813
2d8b51cb
TT
38142019-07-17 Tom Tromey <tom@tromey.com>
3815
3816 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3817 Now static.
3818 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3819 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3820
18ab23af
TT
38212019-07-17 Tom Tromey <tom@tromey.com>
3822
3823 * tui/tui.c: Update.
3824 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3825 tui-regs.c.
3826 * tui/tui-windata.h: Remove file.
3827 * tui/tui-windata.c: Remove file.
3828 * tui/tui-win.c (tui_data_window::set_new_height)
3829 (tui_data_window::do_make_visible_with_new_height): Move to
3830 tui-regs.c.
3831 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3832 * tui/tui-regs.c: Remove "structuring" comments.
3833 (tui_data_window::first_data_item_displayed)
3834 (tui_data_window::delete_data_content_windows)
3835 (tui_data_window::erase_data_content)
3836 (tui_data_window::display_all_data)
3837 (tui_data_window::refresh_all)
3838 (tui_data_window::do_scroll_vertical)
3839 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3840 (tui_data_window::do_make_visible_with_new_height)
3841 (tui_data_window::refresh_window): Move from elsewhere.
3842 (_initialize_tui_regs): Move to end of file.
3843 * tui/tui-layout.c: Update.
3844 * tui/tui-hooks.c: Update.
3845 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3846 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3847 tui-regs.c.
3848 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3849
88b7e7cc
TT
38502019-07-17 Tom Tromey <tom@tromey.com>
3851
3852 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3853 seen.
3854
0fcd3711
TT
38552019-07-17 Tom Tromey <tom@tromey.com>
3856
3857 * tui/tui-win.c (tui_source_window_base::set_new_height)
3858 (tui_source_window_base::do_make_visible_with_new_height): Use
3859 m_has_locator field directly.
3860 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3861 method.
3862 (struct tui_source_window_base) <has_locator>: Likewise.
3863
4a38112d
TT
38642019-07-17 Tom Tromey <tom@tromey.com>
3865
3866 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3867 Don't declare.
3868 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3869 Remove.
3870 * tui/tui-win.c (tui_source_window_base::set_new_height)
3871 (tui_source_window_base::set_new_height)
3872 (make_invisible_and_set_new_height)
3873 (tui_source_window_base::do_make_visible_with_new_height)
3874 (tui_source_window_base::do_make_visible_with_new_height):
3875 Update.
3876 * tui/tui-layout.c (show_source_disasm_command, show_data)
3877 (show_source_or_disasm_and_command): Update.
3878 * tui/tui-layout.c (show_layout): Update.
3879
09129226
TT
38802019-07-17 Tom Tromey <tom@tromey.com>
3881
3882 * tui/tui-layout.c (make_data_window): Remove.
3883 (show_data): Unify creation and re-initialization cases.
3884
4a8a5e84
TT
38852019-07-17 Tom Tromey <tom@tromey.com>
3886
3887 * tui/tui-layout.c (make_source_window, make_disasm_window):
3888 Remove.
3889 (show_data): Unify creation and re-initialization cases.
3890
76d2be8e
TT
38912019-07-17 Tom Tromey <tom@tromey.com>
3892
3893 * tui/tui-layout.c (make_command_window): Remove.
3894 (show_source_disasm_command, show_source_or_disasm_and_command):
3895 Unify creation and re-initialization cases.
3896
890b8bde
TT
38972019-07-17 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3900 creation and re-initialization cases.
3901
2cdfa113
TT
39022019-07-17 Tom Tromey <tom@tromey.com>
3903
3904 * tui/tui-regs.c (tui_get_register): Return void.
3905
8e3cfd09
TT
39062019-07-17 Tom Tromey <tom@tromey.com>
3907
3908 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3909 Simplify.
3910
f4e04977
TT
39112019-07-17 Tom Tromey <tom@tromey.com>
3912
3913 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3914 resetting.
3915
0379b883
TT
39162019-07-17 Tom Tromey <tom@tromey.com>
3917
3918 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3919 * tui/tui-regs.c (tui_reg_layout): New function.
3920 (tui_show_registers, tui_reg_command): Use it.
3921 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3922 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3923 parameters.
3924 (tui_layout_command): Remove.
3925
b7fbad91
TT
39262019-07-17 Tom Tromey <tom@tromey.com>
3927
3928 * tui/tui-layout.h (tui/tui-layout): Return void.
3929 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3930
4e1e56b9
TT
39312019-07-17 Tom Tromey <tom@tromey.com>
3932
3933 * tui/tui-layout.c (show_source_disasm_command, show_data):
3934 Update.
3935 (reset_locator): Remove.
3936 (show_source_or_disasm_and_command): Update.
3937
1e0c09ba
TT
39382019-07-17 Tom Tromey <tom@tromey.com>
3939
3940 * tui/tui-source.c (tui_source_window_base::reset): Remove
3941 win_type parameter.
3942 * tui/tui-layout.c (make_command_window, make_source_window)
3943 (make_disasm_window, make_data_window)
3944 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3945 (reset_locator, show_source_or_disasm_and_command): Update.
3946 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3947 win_type parameter.
3948 (struct tui_source_window_base) <reset>: Likewise.
3949
1bf605de
TT
39502019-07-17 Tom Tromey <tom@tromey.com>
3951
3952 * tui/tui-layout.c (show_source_disasm_command): Use
3953 reset_locator.
3954 (reset_locator): New function.
3955 (init_and_make_win): Remove.
3956 (show_source_or_disasm_and_command): Use reset_locator.
3957
098f9ed4
TT
39582019-07-17 Tom Tromey <tom@tromey.com>
3959
3960 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3961 condition.
3962 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3963 Remove condition.
3964 * tui/tui-source.c (tui_source_window_base::reset): New method.
3965 * tui/tui-layout.c (make_command_window): Don't call
3966 init_and_make_win.
3967 (make_source_window, make_disasm_window): Don't call
3968 make_source_or_disasm_window.
3969 (make_data_window): Don't call init_and_make_win. Change calling
3970 convention.
3971 (show_source_disasm_command, show_data): Simplify.
3972 (make_source_or_disasm_window): Remove.
3973 (show_source_or_disasm_and_command): Simplify.
3974 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3975 (struct tui_source_window_base) <reset>: Likewise.
3976 <execution_info>: Remove initializer.
3977 * tui/tui-data.c (tui_source_window_base): Initialize
3978 execution_info.
3979
80110957
TT
39802019-07-17 Tom Tromey <tom@tromey.com>
3981
3982 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3983 variable.
3984
cf82af05
TT
39852019-07-17 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui.c (tui_rl_other_window): Update.
3988 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3989 superclass method first. Always iterate over regs_content.
3990 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3991 method.
3992 * tui/tui-win.c (tui_set_focus_command): Update.
3993
01aeb396
TT
39942019-07-17 Tom Tromey <tom@tromey.com>
3995
3996 * tui/tui-win.c (tui_set_focus_command): Rename from
3997 tui_set_focus. Call tui_enable.
3998 (tui_set_focus_command): Remove.
3999
fd6c75ee
TT
40002019-07-17 Tom Tromey <tom@tromey.com>
4001
4002 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4003 refresh_window.
4004 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4005 touchwin.
4006 (tui_data_window::refresh_window): Call refresh_window on data
4007 items. Always call superclass refresh_window.
4008 (tui_win_info::refresh): Remove.
4009 (tui_source_window_base::refresh_window): Update.
4010 (tui_refresh_all): Update.
4011 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4012 refresh_window.
4013 (show_source_or_disasm_and_command): Likewise.
4014 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4015 (struct tui_source_window_base) <refresh>: Likewise.
4016
f6cc34a9
TT
40172019-07-17 Tom Tromey <tom@tromey.com>
4018
4019 * tui/tui-winsource.c (tui_clear_source_content)
4020 (tui_show_source_content): Update.
4021 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4022 whether content is empty.
4023 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4024 Remove.
4025
f31ec9af
TT
40262019-07-17 Tom Tromey <tom@tromey.com>
4027
4028 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4029 window's contents.
4030 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4031 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4032
d1b6f1e5
TT
40332019-07-17 Tom Tromey <tom@tromey.com>
4034
4035 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4036 (struct tui_data_item_window): Update.
4037
d9743a13
TT
40382019-07-17 Tom Tromey <tom@tromey.com>
4039
4040 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4041 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4042 defines.
4043
caf0bc4e
TT
40442019-07-17 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui-winsource.h (tui_erase_source_content)
4047 (tui_clear_source_content): Remove "display_prompt" parameter.
4048 * tui/tui-winsource.c (tui_update_source_window_as_is)
4049 (tui_update_source_windows_with_addr): Update.
4050 (tui_clear_source_content): Remove "display_prompt" parameter.
4051 (tui_erase_source_content): Likewise. Simplify.
4052 (tui_show_source_content): Update.
4053 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4054 * tui/tui-stack.c (tui_show_frame_info): Update.
4055 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4056 Remove defines.
4057
9d391078
TT
40582019-07-17 Tom Tromey <tom@tromey.com>
4059
4060 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4061 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4062 parameter.
4063 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4064 parameter.
4065
a38da35d
TT
40662019-07-17 Tom Tromey <tom@tromey.com>
4067
4068 * tui/tui-winsource.c (tui_clear_source_content)
4069 (tui_show_source_content, tui_show_exec_info_content)
4070 (tui_clear_exec_info_content): Update.
4071 * tui/tui-stack.c (tui_show_locator_content): Update.
4072 (tui_show_frame_info): Update.
4073 * tui/tui-source.h (tui_source_window): Don't declare.
4074 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4075 from tui_source_is_displayed.
4076 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4077 Remove field.
4078 (struct tui_source_window_base) <content_in_use>: New field. Now
4079 bool.
4080 (struct tui_source_window) <showing_source_p>: New method.
4081 (TUI_SRC_WIN): Change cast.
4082 * tui/tui-data.c (tui_initialize_static_data): Update.
4083
c2cd8994
TT
40842019-07-17 Tom Tromey <tom@tromey.com>
4085
4086 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4087 location_matches_p.
4088 * tui/tui-source.c (tui_source_window::location_matches_p): New
4089 method.
4090 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4091 method.
4092 * tui/tui-data.h (struct tui_source_window_base)
4093 <location_matches_p>: New method.
4094 (struct tui_source_window, struct tui_disasm_window)
4095 <location_matches_p>: Likewise.
4096
4dde7b34
TT
40972019-07-17 Tom Tromey <tom@tromey.com>
4098
4099 * tui/tui-win.c (tui_set_win_height_command): Rename from
4100 tui_set_win_height.
4101 (tui_set_win_height_command): Remove.
4102
b73dd877
TT
41032019-07-17 Tom Tromey <tom@tromey.com>
4104
4105 * tui/tui-source.c (tui_source_window): New constructor. Add
4106 observer.
4107 (~tui_source_window): New destructor.
4108 (tui_source_window::style_changed): New method.
4109 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4110 (tui_attach_detach_observers): Update.
4111 * tui/tui-data.h (struct tui_source_window): Make constructor not
4112 inline. Add destructor.
4113 (struct tui_source_window) <style_changed>: New method.
4114 <m_observable>: New member.
4115
ae2b5380
TT
41162019-07-17 Tom Tromey <tom@tromey.com>
4117
4118 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4119 * tui/tui-win.c (tui_resize_all): Fix typo.
4120
1ce3e844
TT
41212019-07-17 Tom Tromey <tom@tromey.com>
4122
4123 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4124 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4125 (tui_refresh_all): Remove "list" parameter. Use foreach.
4126 * tui/tui-win.c (window_name_completer): Use foreach.
4127 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4128 (update_tab_width): Likewise.
4129 * tui/tui-layout.c (show_layout): Update.
4130 * tui/tui-data.h (class tui_window_iterator): New.
4131 (struct all_tui_windows): New.
4132 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4133
fe3eaf1c
TT
41342019-07-17 Tom Tromey <tom@tromey.com>
4135
4136 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4137 parameter. Don't reference globals.
4138 (tui_reg_command): Update.
4139
368c1354
TT
41402019-07-17 Tom Tromey <tom@tromey.com>
4141
4142 * tui/tui-regs.c (tui_show_registers): Simplify.
4143
e80cd204
TT
41442019-07-17 Tom Tromey <tom@tromey.com>
4145
4146 * tui/tui-regs.c (tui_show_registers): Update.
4147 (tui_show_register_group): Add win_info parameter.
4148
aca2dd16
TT
41492019-07-17 Tom Tromey <tom@tromey.com>
4150
4151 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4152 Rename from tui_display_reg_element_at_line.
4153 (tui_data_window::display_registers_from_line): Update.
4154 * tui/tui-data.h (struct tui_data_window)
4155 <display_reg_element_at_line>: New method.
4156
517e9505
TT
41572019-07-17 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-regs.h (tui_display_registers_from)
4160 (tui_display_registers_from_line): Don't declare.
4161 * tui/tui-windata.c (tui_data_window::display_all_data)
4162 (tui_data_window::refresh_all)
4163 (tui_data_window::do_scroll_vertical): Update.
4164 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4165 from tui_display_registers_from.
4166 (tui_display_reg_element_at_line): Update.
4167 (tui_data_window::display_registers_from_line): Rename from
4168 tui_display_registers_from_line.
4169 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4170 display_registers_from_line>: New methods.
4171
f76d8b19
TT
41722019-07-17 Tom Tromey <tom@tromey.com>
4173
4174 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4175 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4176 from tui_erase_data_content.
4177 (tui_data_window::display_all_data)
4178 (tui_data_window::refresh_all)
4179 (tui_data_window::do_scroll_vertical): Update.
4180 * tui/tui-regs.c (tui_show_registers): Update.
4181 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4182 New method.
4183
b4094625
TT
41842019-07-17 Tom Tromey <tom@tromey.com>
4185
4186 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4187 declare.
4188 * tui/tui-windata.c
4189 (tui_data_window::delete_data_content_windows): Rename from
4190 tui_delete_data_content_windows.
4191 (tui_data_window::display_all_data)
4192 (tui_data_window::do_scroll_vertical): Update.
4193 * tui/tui-data.h (struct tui_data_window)
4194 <delete_data_content_windows>: New method.
4195
c223a729
TT
41962019-07-17 Tom Tromey <tom@tromey.com>
4197
4198 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4199 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4200
50daf268
TT
42012019-07-17 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4204 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4205 from tui_display_all_data.
4206 * tui/tui-win.c
4207 (tui_data_window::do_make_visible_with_new_height): Update.
4208 * tui/tui-regs.c (tui_show_registers): Update.
4209 * tui/tui-layout.c (tui_set_layout): Update.
4210 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4211 method.
4212
df5f8cab
TT
42132019-07-17 Tom Tromey <tom@tromey.com>
4214
4215 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4216 * tui/tui-windata.c (tui_display_data_from): Remove.
4217 (tui_data_window::refresh_all): Update.
4218
80cb6c27
TT
42192019-07-17 Tom Tromey <tom@tromey.com>
4220
4221 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4222 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4223 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4224 tui_display_registers_from_line.
4225 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4226 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4227 "force_display" parameter.
4228
baff0c28
TT
42292019-07-17 Tom Tromey <tom@tromey.com>
4230
4231 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4232 declare.
4233 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4234 Rename from tui_first_reg_element_no_inline.
4235 (tui_display_reg_element_at_line)
4236 (tui_display_registers_from_line): Update.
4237 * tui/tui-data.h (struct tui_data_window)
4238 <first_reg_element_no_inline>: New method.
4239
3b23c5f2
TT
42402019-07-17 Tom Tromey <tom@tromey.com>
4241
4242 * tui/tui-windata.c (tui_display_data_from)
4243 (tui_data_window::do_scroll_vertical): Update.
4244 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4245 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4246 Rename from tui_line_from_reg_element_no.
4247 (tui_display_registers_from_line): Update.
4248 * tui/tui-data.h (struct tui_data_window)
4249 <line_from_reg_element_no>: New method.
4250
0b5ec218
TT
42512019-07-17 Tom Tromey <tom@tromey.com>
4252
4253 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4254 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4255 tui_last_regs_line_no.
4256 (tui_display_reg_element_at_line)
4257 (tui_display_registers_from_line): Update.
4258 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4259 method.
4260
0807ab7b
TT
42612019-07-17 Tom Tromey <tom@tromey.com>
4262
4263 PR tui/24722:
4264 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4265 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4266 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4267 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4268 (tui_update_breakpoint_info): Likewise.
4269 * tui/tui-hooks.c (tui_event_create_breakpoint)
4270 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4271 Update.
4272
9ad7fdef
TT
42732019-07-17 Tom Tromey <tom@tromey.com>
4274
4275 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4276
5813316f
TT
42772019-07-17 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-winsource.c (tui_update_source_window_as_is)
4280 (tui_update_source_windows_with_addr): Update.
4281 * tui/tui-source.h (tui_set_source_content)
4282 (tui_show_symtab_source): Add "win_info" parameter.
4283 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4284 parameter.
4285 (tui_show_symtab_source): Likewise.
4286
00e264e7
TT
42872019-07-17 Tom Tromey <tom@tromey.com>
4288
4289 * tui/tui-wingeneral.c
4290 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4291
06210ce4
TT
42922019-07-17 Tom Tromey <tom@tromey.com>
4293
4294 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4295 (struct tui_cmd_window) <can_scroll>: New method.
4296 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4297 method.
4298
381befee
TT
42992019-07-17 Tom Tromey <tromey@adacore.com>
4300
4301 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4302 do_field_signed>: Rename. Change type of "value".
4303 * ui-out.c (ui_out::field_signed): Rename from field_int.
4304 Change type of "value".
4305 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4306 type of "value".
4307 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4308 do_field_int. Change type of "value".
4309 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4310 do_field_int. Change type of "value".
4311 * tracepoint.c (trace_status_mi, tfind_1)
4312 (print_one_static_tracepoint_marker): Update.
4313 * thread.c (print_thread_info_1, print_selected_thread_frame):
4314 Update.
4315 * stack.c (print_frame, print_frame_info): Update.
4316 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4317 Update.
4318 * source.c (print_source_lines_base): Update.
4319 * skip.c (info_skip_command): Update.
4320 * record-btrace.c (btrace_ui_out_decode_error)
4321 (btrace_call_history_src_line): Update.
4322 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4323 Update.
4324 * progspace.c (print_program_space): Update.
4325 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4326 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4327 do_field_int. Change type of "value".
4328 * mi/mi-out.c (mi_ui_out::do_table_begin)
4329 (mi_ui_out::do_table_header): Update.
4330 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4331 type of "value".
4332 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4333 (mi_cmd_data_list_changed_registers, output_register)
4334 (mi_cmd_data_read_memory, mi_load_progress)
4335 (mi_cmd_trace_frame_collected): Update.
4336 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4337 Update.
4338 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4339 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4340 (mi_cmd_var_list_children, varobj_update_one): Update.
4341 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4342 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4343 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4344 * inferior.c (print_inferior): Update.
4345 * gdb_bfd.c (print_one_bfd): Update.
4346 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4347 Update.
4348 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4349 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4350 do_field_int. Change type of "value".
4351 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4352 do_field_int. Change type of "value".
4353 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4354 (print_one_breakpoint_location, print_it_catch_fork)
4355 (print_one_catch_fork, print_it_catch_vfork)
4356 (print_one_catch_vfork, print_it_catch_solib)
4357 (print_it_catch_exec, print_it_ranged_breakpoint)
4358 (print_mention_watchpoint, print_mention_masked_watchpoint)
4359 (bkpt_print_it, update_static_tracepoint): Update.
4360 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4361 * break-catch-syscall.c (print_it_catch_syscall): Update.
4362 * ada-tasks.c (print_ada_task_info): Update.
4363 * ada-lang.c (print_it_exception, print_mention_exception):
4364 Update.
4365
6b78c3f8
AB
43662019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4367
4368 PR breakpoints/24541
4369 * gdbarch.c: Regenerate.
4370 * gdbarch.h: Regenerate.
4371 * gdbarch.sh: Adjust return type and parameter types for
4372 'stap_adjust_register'.
4373 (i386_stap_adjust_register): Adjust signature and return new
4374 register name.
4375 * stap-probe.c (stap_parse_register_operand): Adjust use of
4376 'gdbarch_stap_adjust_register'.
4377
d72a9b85
TT
43782019-07-17 Tom Tromey <tromey@adacore.com>
4379
4380 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4381 declare VEC.
4382 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4383 std::vector.
4384 (struct s390_process_info): Add initializers.
4385 (s390_add_process): Use new.
4386 (s390_linux_nat_target::low_forget_process): Use delete.
4387 (s390_linux_nat_target::low_new_fork)
4388 (s390_linux_nat_target::stopped_by_watchpoint)
4389 (s390_linux_nat_target::low_prepare_to_resume)
4390 (s390_linux_nat_target::insert_watchpoint)
4391 (s390_linux_nat_target::insert_hw_breakpoint)
4392 (s390_linux_nat_target::remove_watchpoint)
4393 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4394
206e6c58
JB
43952019-07-16 John Baldwin <jhb@FreeBSD.org>
4396
4397 * aarch64-fbsd-nat.c: Include regcache.h.
4398 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4399 argument.
4400 (aarch64_fbsd_nat_target::fetch_registers)
4401 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4402 variable.
4403 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4404
cbde90f2
JB
44052019-07-16 John Baldwin <jhb@FreeBSD.org>
4406
4407 * fbsd-nat.c: Include gdbarch.h.
4408
07128006
TT
44092019-07-15 Tom Tromey <tromey@adacore.com>
4410
4411 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4412
1f77b012
TT
44132019-07-15 Tom Tromey <tromey@adacore.com>
4414
4415 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4416 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4417 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4418 * cli-out.c (cli_ui_out::do_field_int): New method.
4419 * ui-out.c (ui_out::field_unsigned): New method.
4420 * symfile.c (generic_load): Use field_unsigned.
4421 (print_transfer_performance): Likewise.
4422 * record-btrace.c (ui_out_field_uint): Remove.
4423 (btrace_call_history_insn_range, btrace_call_history): Use
4424 field_unsigned.
4425 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4426 field_unsigned.
4427 * ui-out.h (class ui_out) <field_unsigned>: New method.
4428 <do_field_unsigned>: Likewise.
4429
33eca680
TT
44302019-07-15 Tom Tromey <tromey@adacore.com>
4431
4432 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4433 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4434 * target.c (flash_erase_command): Use field_string.
4435 * infrun.c (print_signal_received_reason): Use field_string.
4436 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4437 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4438 field_string.
4439 * ada-tasks.c (print_ada_task_info): Use field_string.
4440
ca8d69be
TT
44412019-07-15 Tom Tromey <tromey@adacore.com>
4442
4443 * target.c (flash_erase_command): Use field_core_addr.
4444 * symfile.c (generic_load): Use field_core_addr.
4445 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4446 Use field_core_addr.
4447 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4448 field_core_addr.
4449
0d4e84ed
AB
44502019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4451
4452 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4453 value if its desired type is smaller than a CORE_ADDR and signed.
4454
9a49df9d
AB
44552019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4456
4457 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4458 of changes to field names, and use new is_reference field to
4459 decide if a property is a reference or not.
4460 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4461 field.
4462 (struct dwarf2_property_baton): Update header comment, rename
4463 'referenced_type' to 'property_type' and update comments.
4464 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4465 default property type, store in property baton, update to take
4466 accound of renamed field.
4467 (read_func_scope): Update call to attr_to_dynamic_prop.
4468 (read_array_type): Likewise.
4469 (dwarf2_per_cu_addr_sized_int_type): New function.
4470 (read_subrange_index_type): Move type finding code to
4471 dwarf2_per_cu_addr_sized_int_type.
4472 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4473 (dwarf2_per_cu_addr_type): New function.
4474 (set_die_type): Update calls to attr_to_dynamic_prop.
4475
b86352cf
AB
44762019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4477
4478 * dwarf2read.c (read_subrange_index_type): New function.
4479 (read_subrange_type): Move code into new function and call it.
4480 * gdbtypes.c (create_range_type): Add some asserts.
4481
603490bf
AB
44822019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4483
4484 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4485 update return statements.
4486 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4487 declaration, and update comment to match.
4488 * gdbtypes.c (resolve_dynamic_array): Update call to
4489 dwarf2_evaluate_property to match new return type.
4490
592f9d27
AB
44912019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4492
4493 * valarith.c (value_subscripted_rvalue): Change lowerbound
4494 parameter type from int to LONGEST.
4495 * value.h (value_subscripted_rvalue): Likewise in declaration.
4496
60cfcb20
AB
44972019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4498
4499 * cli/cli-utils.c (info_print_command_completer): New function.
4500 * cli/cli-utils.h: Add 'completer.h' include, and forward
4501 declaration for 'struct cmd_list_element'.
4502 (info_print_command_completer): Declare.
4503 * stack.c (_initialize_stack): Add completer for 'info locals' and
4504 'info args'.
4505 * symtab.c (_initialize_symtab): Add completer for 'info
4506 variables' and 'info functions'.
4507 * NEWS: Mention completion for additional info commands.
4508
b16507e0
AB
45092019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4510
4511 * cli/cli-utils.c (extract_info_print_args): Delete.
4512 (extract_arg_maybe_quoted): Delete.
4513 (info_print_options_defs): New variable.
4514 (make_info_print_options_def_group): New function.
4515 (extract_info_print_options): Define new function.
4516 * cli/cli-utils.h (extract_info_print_args): Delete.
4517 (struct info_print_options): New structure.
4518 (extract_info_print_options): Declare new function.
4519 * stack.c (info_locals_command): Update to use new
4520 extract_info_print_options, also add a header comment.
4521 (info_args_command): Likewise.
4522 * symtab.c (info_variables_command): Likewise.
4523 (info_functions_command): Likewise.
4524
021d8588
AB
45252019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4526
4527 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4528 to extract string arguments.
4529 * common/common-utils.c (extract_string_maybe_quoted): New function.
4530 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4531
b777eb6d
TT
45322019-07-11 Tom Tromey <tromey@adacore.com>
4533
4534 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4535 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4536 * top.h (gdbinit): Don't declare.
4537 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4538 into...
4539 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4540 * top.c (gdb_init): Don't call init_cli_cmds.
4541 (gdbinit): Remove.
4542 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4543
72ee03ff
TT
45442019-07-11 Tom Tromey <tromey@adacore.com>
4545
4546 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4547 after it has been moved.
4548
00db9531
SM
45492019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4550
4551 * valops.c (value_must_coerce_to_target): Change return type to
4552 bool.
4553 * value.h (value_must_coerce_to_target): Likewise.
4554
f2478a7e
SM
45552019-07-10 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * breakpoint.c (is_hardware_watchpoint): Remove
4558 forward-declaration.
4559 (is_masked_watchpoint): Change return type to bool.
4560 (is_tracepoint): Likewise.
4561 (is_breakpoint): Likewise.
4562 (is_hardware_watchpoint): Likewise.
4563 (is_watchpoint): Likewise.
4564 (is_no_memory_software_watchpoint): Likewise.
4565 (is_catchpoint): Likewise.
4566 (breakpoint_1): Make FILTER parameter's return type bool.
4567 is_masked_watchpoint): Change return type to bool.
4568 (save_breakpoints): Make FILTER parameter's return type bool.
4569 * breakpoint.h (is_breakpoint): Change return type to bool.
4570 (is_watchpoint): Likewise.
4571 (is_catchpoint): Likewise.
4572 (is_tracepoint): Likewise.
4573
0d12e84c
TT
45742019-07-10 Tom Tromey <tom@tromey.com>
4575
4576 * defs.h: Don't include gdbarch.h.
4577 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4578 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4579 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4580 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4581 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4582 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4583 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4584 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4585 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4586 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4587 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4588 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4589 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4590 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4591 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4592 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4593 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4594 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4595 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4596 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4597 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4598 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4599 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4600 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4601 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4602 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4603 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4604
f06f1252
TT
46052019-07-10 Tom Tromey <tromey@adacore.com>
4606
4607 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4608 * breakpoint.c (init_ada_exception_breakpoint): Register as
4609 bp_catchpoint.
4610 (print_one_breakpoint_location, print_one_breakpoint): Use
4611 is_ada_exception_catchpoint.
4612 * ada-lang.c (class ada_catchpoint_location): Pass
4613 bp_loc_software_breakpoint to bp_location constructor.
4614 (is_ada_exception_catchpoint): New function.
4615
7a5d944b
TT
46162019-07-10 Tom Tromey <tromey@adacore.com>
4617
4618 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4619 VEC.
4620 (struct arm_exidx_entry): New method operator<.
4621 (struct arm_exidx_data) <section_maps>: Change type.
4622 (arm_exidx_data_free): Remove.
4623 (arm_exidx_data_key): Change type. Move lower.
4624 (arm_exidx_new_objfile): Update.
4625 (arm_compare_exidx_entries): Remove.
4626 (arm_find_exidx_entry, _initialize_arm_tdep)
4627
48c66e1d
TT
46282019-07-10 Tom Tromey <tromey@adacore.com>
4629
4630 * solib-spu.c (ocl_program_data_key): Change type.
4631 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4632 Update.
4633
a269fbf1
TT
46342019-07-10 Tom Tromey <tromey@adacore.com>
4635
4636 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4637 (struct solib_aix_inferior_data) <library_list>: Change type.
4638 (solib_aix_inferior_data_handle): Change type.
4639 (get_solib_aix_inferior_data): Update.
4640 (solib_aix_free_library_list): Remove.
4641 (library_list_start_library): Update.
4642 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4643 return type.
4644 (solib_aix_get_library_list)
4645 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4646 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4647
c294730c
TT
46482019-07-10 Tom Tromey <tromey@adacore.com>
4649
4650 * solib-dsbt.c (struct dsbt_info): Add initializers.
4651 (solib_dsbt_pspace_data): Change type.
4652 (dsbt_pspace_data_cleanup): Remove.
4653 (get_dsbt_info, _initialize_dsbt_solib): Update.
4654
9d52077d
TT
46552019-07-10 Tom Tromey <tromey@adacore.com>
4656
4657 * spu-tdep.c (spu_overlay_data): Change type.
4658 (spu_get_overlay_table, spu_overlay_new_objfile)
4659 (_initialize_spu_tdep): Update.
4660
22a20dca
TT
46612019-07-10 Tom Tromey <tromey@adacore.com>
4662
4663 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4664 destructor.
4665 (dbx_objfile_data_key): Change type and declare later.
4666 (DBX_SYMFILE_INFO): Rewrite.
4667 * dbxread.c (dbx_objfile_data_key): Change type.
4668 (dbx_symfile_init): Update.
4669 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4670 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4671 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4672
cb60f420
TT
46732019-07-10 Tom Tromey <tromey@adacore.com>
4674
4675 * jit.c (jit_program_space_key): Change type. Move lower.
4676 (get_jit_program_space_data): Update.
4677 (jit_program_space_data_cleanup): Remove.
4678 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4679 Update.
4680 (struct jit_program_space_data): Add initializers.
4681
51df2ae3
TT
46822019-07-10 Tom Tromey <tromey@adacore.com>
4683
4684 * solib-darwin.c (struct darwin_info): Add initializers.
4685 (solib_darwin_pspace_data): Change type.
4686 (darwin_pspace_data_cleanup): Remove.
4687 (get_darwin_info, _initialize_darwin_solib): Update.
4688
18101a35
TT
46892019-07-10 Tom Tromey <tromey@adacore.com>
4690
4691 * remote-sim.c (struct sim_inferior_data): Add initializers,
4692 constructor, and destructor.
4693 (sim_inferior_data_key): Change type. Move lower.
4694 (check_for_duplicate_sim_descriptor): Update.
4695 (get_sim_inferior_data): Use new. Update.
4696 (~sim_inferior_data_cleanup): Rename from
4697 sim_inferior_data_cleanup. Simplify.
4698 (gdbsim_close_inferior, simulator_command)
4699 (sim_command_completer, _initialize_remote_sim): Update.
4700 (next_pid, INITIAL_PID): Move earlier.
4701
05b08ac1
TT
47022019-07-10 Tom Tromey <tromey@adacore.com>
4703
4704 * python/python-internal.h (create_thread_object): Return
4705 gdbpy_ref.
4706 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4707 * python/py-inferior.c (struct threadlist_entry): Add
4708 constructor.
4709 <thread_obj>: Now a gdbpy_ref.
4710 (thread_to_thread_object): Update.
4711 (add_thread_object): Use new.
4712 (delete_thread_object): Use delete.
4713 (infpy_threads): Update.
4714 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4715 GIL.
4716
32372d80
TT
47172019-07-10 Tom Tromey <tromey@adacore.com>
4718
4719 * valops.c (value_cast): Specialize error message for Ada.
4720
5c458ae8
SM
47212019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4722
4723 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4724
4c462cb0
SM
47252019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4726
4727 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4728 bpstat_should_step): Return bool, adjust comments.
4729 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4730 bpstat_should_step): Likewise.
4731
89abbcc2
AH
47322019-07-10 Alan Hayward <alan.hayward@arm.com>
4733
4734 * features/Makefile: Use feature target descriptions for Arm.
4735 * features/arm/arm-core.c: Generate new file.
4736 * features/arm/arm-fpa.c: Likewise.
4737 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4738 * features/arm/arm-m-profile.c: Likewise.
4739 * features/arm/arm-vfpv2.c: Likewise.
4740 * features/arm/arm-vfpv3.c: Likewise.
4741 * features/arm/xscale-iwmmxt.c: Likewise.
4742 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4743
166a82be
AH
47442019-07-10 Alan Hayward <alan.hayward@arm.com>
4745
4746 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4747 ptrace earlier.
4748
9fb4c7e9
AH
47492019-07-10 Alan Hayward <alan.hayward@arm.com>
4750
4751 * features/aarch64-pauth.c: Regenerate.
4752
e2d0f980
SM
47532019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4754
4755 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4756 bool.
4757 (bpstat_what): Use false instead of 0.
4758
a38118e5
PA
47592019-07-09 Pedro Alves <palves@redhat.com>
4760
4761 * break-catch-throw.c (is_exception_catchpoint): New.
4762 * breakpoint.c (print_one_breakpoint_location): New parameter
4763 'raw_loc'. Handle it. Use
4764 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4765 looking at the breakpoint's type.
4766 (print_one_breakpoint): If handling "maint info breakpoints", also
4767 print locations of exception catchpoints.
4768 * breakpoint.h (is_exception_catchpoint): Declare.
4769
cb1e4e32
PA
47702019-07-09 Pedro Alves <palves@redhat.com>
4771
4772 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4773 "addr" field.
4774 (allocate_location_exception_catchpoint): New.
4775 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4776 (initialize_throw_catchpoint_ops): Install
4777 allocate_location_exception_catchpoint as allocate_location
4778 method.
4779 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4780 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4781 bp_loc_other.
4782 (breakpoint_address_is_meaningful): Delete.
4783 (bl_address_is_meaningful): New.
4784 (breakpoint_locations_match): Adjust comment.
4785 (bp_location_from_bp_type): New, factored out of...
4786 (bp_location::bp_location(breakpoint *)): ... this.
4787 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4788 factored out of...
4789 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4790 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4791 breakpoint_address_is_meaningful.
4792 (bp_locations_compare): Adjust comment.
4793 (update_global_location_list): Use bl_address_is_meaningful
4794 instead of breakpoint_address_is_meaningful.
4795 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4796 explicit.
4797 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4798 * python/py-breakpoint.c (bppy_get_location): No longer check
4799 whether location is null.
4800
b58a68fe
PA
48012019-07-09 Pedro Alves <palves@redhat.com>
4802
4803 PR c++/15468
4804 * breakpoint.c (print_one_breakpoint_location): Remove
4805 single-location assert.
4806
268a13a5
TT
48072019-07-09 Tom Tromey <tom@tromey.com>
4808
4809 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4810 * configure: Rebuild.
4811 * configure.ac: Change common to gdbsupport.
4812 * gdbsupport: Rename from common.
4813 * acinclude.m4: Change common to gdbsupport.
4814 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4815 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4816 gdbsupport.
4817 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4818 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4819 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4820 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4821 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4822 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4823 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4824 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4825 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4826 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4827 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4828 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4829 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4830 coff-pe-read.c, command.h, compile/compile-c-support.c,
4831 compile/compile-c.h, compile/compile-cplus-symbols.c,
4832 compile/compile-cplus-types.c, compile/compile-cplus.h,
4833 compile/compile-loc2c.c, compile/compile.c, completer.c,
4834 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4835 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4836 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4837 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4838 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4839 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4840 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4841 features/aarch64-core.c, features/aarch64-fpu.c,
4842 features/aarch64-pauth.c, features/aarch64-sve.c,
4843 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4844 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4845 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4846 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4847 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4848 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4849 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4850 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4851 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4852 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4853 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4854 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4855 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4856 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4857 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4858 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4859 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4860 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4861 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4862 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4863 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4864 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4865 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4866 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4867 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4868 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4869 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4870 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4871 minsyms.c, mips-linux-tdep.c, namespace.h,
4872 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4873 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4874 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4875 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4876 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4877 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4878 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4879 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4880 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4881 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4882 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4883 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4884 procfs.c, producer.c, progspace.h, psymtab.h,
4885 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4886 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4887 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4888 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4889 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4890 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4891 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4892 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4893 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4894 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4895 target-memory.c, target.c, target.h, target/waitstatus.c,
4896 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4897 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4898 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4899 unittests/array-view-selftests.c,
4900 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4901 unittests/common-utils-selftests.c,
4902 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4903 unittests/format_pieces-selftests.c,
4904 unittests/function-view-selftests.c,
4905 unittests/lookup_name_info-selftests.c,
4906 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4907 unittests/mkdir-recursive-selftests.c,
4908 unittests/observable-selftests.c,
4909 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4910 unittests/parse-connection-spec-selftests.c,
4911 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4912 unittests/scoped_fd-selftests.c,
4913 unittests/scoped_mmap-selftests.c,
4914 unittests/scoped_restore-selftests.c,
4915 unittests/string_view-selftests.c, unittests/style-selftests.c,
4916 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4917 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4918 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4919 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4920 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4921 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4922
5b0e2db4
AB
49232019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4924
4925 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4926 bool value.
4927 (decode_digits_ordinary): Set explicit_line field in sal.
4928 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4929 symtab_and_line that was set on an explicit line number in
4930 assembler code. Do always update the recorded symtab and line if
4931 we do skip the prologue.
4932
0ba852ab
AB
49332019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4934
4935 * breakpoint.c (set_breakpoint_location_function): Remove
4936 explicit_loc parameter.
4937 (momentary_breakpoint_from_master): Update call to
4938 set_breakpoint_location_function.
4939 (add_location_to_breakpoint): Likewise.
4940
b3a7d171
AB
49412019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4942
4943 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4944 required features based on default bfd type when no specific bfd
4945 is present.
4946
1f6f6e21
PW
49472019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4948
4949 * NEWS: Mention that GDB printf and eval commands can now print
4950 C-style and Ada-style convenience var strings without
4951 calling the inferior.
4952 * printcmd.c (printf_c_string): Locally print GDB internal var
4953 instead of transiting via the inferior.
4954 (printf_wide_c_string): Likewise.
4955
49562019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 4957
5862c886 4958 PR breakpoints/25011
ea142fbf
AH
4959 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4960
0598af48
TT
49612019-07-04 Tom Tromey <tom@tromey.com>
4962
4963 PR tui/24724:
4964 * tui/tui-winsource.c (tui_clear_source_content): Update.
4965 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4966 (tui_update_breakpoint_info): Update.
4967 (tui_set_exec_info_content): Update.
4968 * tui/tui-source.c (tui_set_source_content_nil): Update.
4969 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4970 has_break.
4971 * tui/tui-data.h (enum tui_bp_flag): New.
4972 (tui_bp_flags): New enum flags type.
4973 (struct tui_source_element) <break_mode>: Change type. Rename
4974 from has_break.
4975 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4976 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4977 constants.
4978 * tui/tui-winsource.h: Fix comment.
4979
350fab54
AH
49802019-07-04 Alan Hayward <alan.hayward@arm.com>
4981
4982 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4983 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4984 (store_fpregs_to_thread)
4985 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4986 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4987 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4988 (IWMMXT_REGS_SIZE): Add define.
4989 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4990 (fetch_vfp_regs, store_vfp_regs)
4991 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4992 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4993
f0452268
AH
49942019-07-04 Alan Hayward <alan.hayward@arm.com>
4995
4996 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4997 defines.
4998 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4999 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5000 (ARM_INT_REGISTER_SIZE): ...to this.
5001 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5002 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5003 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5004 (arm_linux_collect_gregset, supply_nwfpe_register)
5005 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5006 defines.
5007 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5008 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5009 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5010 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5011 (arm_return_in_memory, arm_store_return_value)
5012 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5013 (arm_record_ld_st_multiple): Likewise.
5014 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5015 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5016
e935475c
AH
50172019-07-04 Alan Hayward <alan.hayward@arm.com>
5018
5019 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5020 AARCH64_DISPLACED_MODIFIED_INSNS.
5021 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5022 (aarch64_displaced_step_copy_insn): Likewise.
5023 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5024 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5025 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5026 ARM_DISPLACED_MODIFIED_INSNS.
5027 * arm-tdep.c (arm_gdbarch_init): Likewise.
5028 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5029 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5030 (struct arm_displaced_step_closure): Use
5031 ARM_DISPLACED_MODIFIED_INSNS.
5032
df0bb381
AH
50332019-07-04 Alan Hayward <alan.hayward@arm.com>
5034
5035 * features/Makefile: Remove unused xml files.
5036 * features/aarch64.xml: Remove.
5037 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5038 * features/i386/amd64-avx-avx512.xml: Remove.
5039 * features/i386/amd64-avx-linux.xml: Remove.
5040 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5041 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5042 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5043 * features/i386/amd64-avx-mpx.xml: Remove.
5044 * features/i386/amd64-avx.xml: Remove.
5045 * features/i386/amd64-linux.xml: Remove.
5046 * features/i386/amd64-mpx-linux.xml: Remove.
5047 * features/i386/amd64-mpx.xml: Remove.
5048 * features/i386/amd64.xml: Remove.
5049 * features/i386/i386-avx-avx512-linux.xml: Remove.
5050 * features/i386/i386-avx-avx512.xml: Remove.
5051 * features/i386/i386-avx-linux.xml: Remove.
5052 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5053 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5054 * features/i386/i386-avx-mpx-linux.xml: Remove.
5055 * features/i386/i386-avx-mpx.xml: Remove.
5056 * features/i386/i386-avx.xml: Remove.
5057 * features/i386/i386-linux.xml: Remove.
5058 * features/i386/i386-mmx-linux.xml: Remove.
5059 * features/i386/i386-mmx.xml: Remove.
5060 * features/i386/i386-mpx-linux.xml: Remove.
5061 * features/i386/i386-mpx.xml: Remove.
5062 * features/i386/i386.xml: Remove.
5063 * features/i386/x32-avx-avx512-linux.xml: Remove.
5064 * features/i386/x32-avx-linux.xml: Remove.
5065 * features/i386/x32-linux.xml: Remove.
5066
edd6266a
AH
50672019-07-04 Alan Hayward <alan.hayward@arm.com>
5068
5069 * regformats/aarch64.dat: Remove.
5070 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5071 * regformats/i386/amd64-avx-linux.dat: Remove.
5072 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5073 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5074 * regformats/i386/amd64-linux.dat: Remove.
5075 * regformats/i386/amd64-mpx-linux.dat: Remove.
5076 * regformats/i386/amd64.dat: Remove.
5077 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5078 * regformats/i386/i386-avx-linux.dat: Remove.
5079 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5080 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5081 * regformats/i386/i386-linux.dat: Remove.
5082 * regformats/i386/i386-mmx-linux.dat: Remove.
5083 * regformats/i386/i386-mpx-linux.dat: Remove.
5084 * regformats/i386/i386.dat: Remove.
5085 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5086 * regformats/i386/x32-avx-linux.dat: Remove.
5087 * regformats/i386/x32-linux.dat: Remove.
5088
2b40fda7
AH
50892019-07-04 Alan Hayward <alan.hayward@arm.com>
5090
5091 * aarch64-tdep.c: Remove xml self tests.
5092 * amd64-linux-tdep.c: Likewise.
5093 * amd64-tdep.c: Likewise.
5094 * i386-linux-tdep.c: Likewise.
5095 * i386-tdep.c: Likewise.
5096
5f4ba3e7
PA
50972019-07-03 Pedro Alves <palves@redhat.com>
5098
5099 PR cli/24732
5100 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5101 (pipe_cmd_option_defs): New.
5102 (make_pipe_cmd_options_def_group): New.
5103 (pipe_command): Use gdb::option::process_options.
5104 (pipe_command_completer): New function.
5105 (_initialize_cli_cmds): Install completer for "pipe" command.
5106
3d9be6f5
PA
51072019-07-03 Pedro Alves <palves@redhat.com>
5108
5109 * cli/cli-option.c (union option_value) <string>: New field.
5110 (struct option_def_and_value): Add ctor, move ctor, dtor and
5111 use DISABLE_COPY_AND_ASSIGN.
5112 (option_def_and_value::clear_value): New.
5113 (parse_option, save_option_value_in_ctx, get_val_type_str)
5114 (add_setshow_cmds_for_options): Handle var_string.
5115 * cli-option.h (union option_def::var_address) <string>: New
5116 field.
5117 (struct string_option_def): New.
5118 * maint-test-options.c (struct test_options_opts): Add default
5119 ctor and use DISABLE_COPY_AND_ASSIGN.
5120 <string_opt>: New field.
5121 (test_options_opts::~test_options_opts): New.
5122 (test_options_opts::dump): Also dump "-string".
5123 (test_options_option_defs): Install "string.
5124
41fc454c
PA
51252019-07-03 Pedro Alves <palves@redhat.com>
5126
5127 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5128 option_value with a null enumeration.
5129 (complete_options): Save the option values in the context.
5130 (save_option_value_in_ctx): New, factored out from ...
5131 (process_options): ... here.
5132 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5133 of the function.
5134 * maint-test-options.c (test_options_opts::dump): New, factored
5135 out from ...
5136 (maintenance_test_options_command_mode): ... here.
5137 (maintenance_test_options_command_completion_result): Delete.
5138 (maintenance_test_options_command_completion_text): Update
5139 comment.
5140 (maintenance_show_test_options_completion_result): Change
5141 prototype. Just print
5142 maintenance_test_options_command_completion_text.
5143 (save_completion_result): New.
5144 (maintenance_test_options_completer_mode): Pass options context to
5145 complete_options, and then save a dump.
5146 (_initialize_maint_test_options): Use add_cmd to install "maint
5147 show test-options-completion-result".
5148
fdbc9870
PA
51492019-07-03 Pedro Alves <palves@redhat.com>
5150
5151 * NEWS (New commands): Mention "with" and "maint with".
5152 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5153 (with_command, with_command_completer): New.
5154 (pipe_command): Adjust to new repeat_previous
5155 interface.
5156 (_initialize_cli_cmds): Install the "with" command and its "w"
5157 alias.
5158 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5159 declarations.
5160 * cli/cli-setshow.c (parse_cli_var_uinteger)
5161 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5162 argument strings for all var_types.
5163 (get_setshow_command_value_string): New, factored out from ...
5164 (do_show_command): ... this.
5165 * cli/cli-setshow.h: Include <string>.
5166 (get_setshow_command_value_string): Declare.
5167 * command.h (repeat_previous): Now returns const char *. Adjust
5168 comment.
5169 * maint.c: Include "cli/cli-cmds.h".
5170 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5171 (_initialize_maint_cmds): Register the "maintenance with" command.
5172 * top.c (repeat_previous): Move bits from pipe_command here:
5173 Return the saved command line, if any; error out if there's no
5174 command to relaunch.
5175
c6ac8931
PA
51762019-07-03 Pedro Alves <palves@redhat.com>
5177
5178 * NEWS (New commands): Mention "maint set/show test-settings"
5179 instead of "maint test-settings".
5180 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5181 (maintenance_test_settings_set_list): Rename to ...
5182 (maintenance_set_test_settings_list): ... this.
5183 (maintenance_test_settings_show_list): Rename to ...
5184 (maintenance_show_test_settings_list): ... this.
5185 (maintenance_test_settings_cmd): Delete.
5186 (maintenance_test_settings_set_cmd): ...
5187 (maintenance_set_test_settings_cmd): ... this.
5188 (maintenance_test_settings_show_cmd): ...
5189 (maintenance_show_test_settings_cmd): ... this.
5190 (maintenance_test_settings_show_value_cmd):
5191 (maintenance_show_test_settings_value_cmd): ... this.
5192 (_initialize_maint_test_settings): No longer install the "maint
5193 test-settings" prefix command. Rename "maint test-settings set"
5194 to "maint set test-settings", and "maint test-settings show" to
5195 "maint show test-settings". Adjust all subcommands.
5196
d1fcf2fd
PA
51972019-07-03 Pedro Alves <palves@redhat.com>
5198
5199 * maint-test-settings.c: Fix file's intro comment. Replace all
5200 references to "test-options" with references to "test-settings",
5201 in comments.
5202
970f9d09
PA
52032019-07-03 Pedro Alves <palves@redhat.com>
5204
5205 * maint-test-settings.c (maintenance_test_settings_xxx)
5206 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5207 New.
5208 (maintenance_test_settings_enums): Use them.
5209 (maintenance_test_settings_enum): Default to
5210 maintenance_test_settings_xxx.
5211 (_initialize_maint_test_settings): Initialize
5212 MAINTENANCE_TEST_SETTINGS_FILENAME.
5213
f3869b1a
SM
52142019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5215
5216 * breakpoint.h (remove_breakpoints_inf): Change return type to
5217 void, move function documentation here.
5218 * breakpoint.c (remove_breakpoints_inf): Change return type to
5219 void, move function documentation to header.
5220
54d66006
PA
52212019-07-02 Pedro Alves <palves@redhat.com>
5222
5223 * NEWS (Completion improvements): Mention "info threads".
5224 * thread.c (struct info_threads_opts, info_threads_option_defs)
5225 (make_info_threads_options_def_group): New.
5226 (info_threads_command): Use gdb::option::process_options.
5227 (info_threads_command_completer): New.
5228 (_initialize_thread): Use gdb::option::build_help to build the
5229 help text for "info threads".
5230
854f6088
SM
52312019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5232
5233 * defs.h (generic_load): Move from here...
5234 * symfile.h (generic_load): ... to here. Rename name parameter
5235 to args.
5236 * symfile.c (generic_load): Add comment.
5237
54ee4252
TT
52382019-07-01 Tom Tromey <tromey@adacore.com>
5239
5240 * dwarf2read.c
5241 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5242 declaration of without_params. Fix formatting.
5243
65392b3e
TT
52442019-07-01 Tom Tromey <tromey@adacore.com>
5245
5246 * ada-exp.y (find_primitive_type): Update.
5247 * ada-lang.h (ada_lookup_symbol): Update.
5248 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5249 parameter.
5250 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5251
7d7571f0
SDJ
52522019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5253
5254 PR breakpoints/24541
5255 * gdbarch.c: Regenerate.
5256 * gdbarch.h: Regenerate.
5257 * gdbarch.sh: Add 'stap_adjust_register'.
5258 * i386-tdep.c: Include '<unordered_set>'.
5259 (i386_stap_adjust_register): New function.
5260 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5261 * stap-probe.c (stap_parse_register_operand): Call
5262 'gdbarch_stap_adjust_register'.
5263
5af5392a
SDJ
52642019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5265
5266 PR python/24742
5267 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5268 * python/python.c (do_start_initialization): Use 'xmalloc'
5269 instead of 'PyMem_Malloc'.
5270
10d06d82
TT
52712019-06-28 Tom Tromey <tromey@adacore.com>
5272
5273 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5274 for Ada.
5275
1b7f24cd
TT
52762019-06-27 Tom Tromey <tromey@adacore.com>
5277
5278 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5279 objfile_key.
5280 (arm_find_mapping_symbol, arm_record_special_symbol)
5281 (_initialize_arm_tdep): Update.
5282 (arm_objfile_data_free): Remove.
5283
3d507ff2
TT
52842019-06-27 Tom Tromey <tromey@adacore.com>
5285
5286 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5287 to cp_print_static_field.
5288
762c164d
TT
52892019-06-26 Tom Tromey <tromey@adacore.com>
5290
5291 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5292 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5293 declare.
5294
aa2f9bcf
AH
52952019-06-26 Alan Hayward <alan.hayward@arm.com>
5296
5297 * features/aarch64-core.c (create_feature_aarch64_core):
5298 Regenerate.
5299 * features/aarch64-core.xml: Add cpsr flags.
5300
3426ae57
AH
53012019-06-26 Alan Hayward <alan.hayward@arm.com>
5302
5303 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5304 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5305
4838e44c
SM
53062019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5307
5308 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5309 field.
5310 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5311 use.
5312 (arm_record_special_symbol): Don't insert new symbol in sorted
5313 position, push it at the end.
5314
54cc7474
SM
53152019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5316
5317 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5318 (arm_mapping_symbol_s): Remove.
5319 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5320 (arm_mapping_symbol_vec): New typedef.
5321 (struct arm_per_objfile): Add constructor.
5322 <section_maps>: Change type to
5323 std::unique_ptr<arm_mapping_symbol_vec[]>.
5324 (arm_compare_mapping_symbols): Remove.
5325 (arm_find_mapping_symbol): Adjust to section_maps type change.
5326 (arm_objfile_data_free): Call delete on arm_per_objfile.
5327 (arm_record_special_symbol): Adjust to section_maps type change.
5328 Allocate arm_per_objfile with new.
5329
b65b566c
PW
53302019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5331
5332 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5333 with the command prefix.
5334
c2fc64f5
TT
53352019-06-25 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5338 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5339
fb54fa76
TT
53402019-06-25 Tom Tromey <tom@tromey.com>
5341
5342 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5343 type.
5344 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5345 protected.
5346
f7952c57
TT
53472019-06-25 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-winsource.c
5350 (tui_source_window_base::set_is_exec_point_at): Add check against
5351 LOA_ADDRESS.
5352
17568d78
TT
53532019-06-25 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-source.c (tui_set_source_content): Don't check before
5356 xfree.
5357 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5358
53e7cdba
TT
53592019-06-25 Tom Tromey <tom@tromey.com>
5360
5361 * tui/tui-winsource.h (tui_update_source_window_as_is)
5362 (tui_alloc_source_buffer, tui_line_is_displayed)
5363 (tui_addr_is_displayed): Change type of win_info.
5364 * tui/tui-winsource.c (tui_update_source_window_as_is)
5365 (tui_clear_source_content, tui_show_source_line)
5366 (tui_show_source_content, tui_source_window_base::refill)
5367 (tui_source_window_base::set_is_exec_point_at)
5368 (tui_source_window_base::set_is_exec_point_at)
5369 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5370 (tui_alloc_source_buffer, tui_line_is_displayed)
5371 (tui_addr_is_displayed): Change type of win_info. Update.
5372 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5373 (tui_source_window_base::do_make_visible_with_new_height):
5374 Update.
5375 * tui/tui-source.c (tui_set_source_content)
5376 (tui_set_source_content_nil)
5377 (tui_source_window::do_scroll_vertical): Update.
5378 * tui/tui-layout.c (show_layout): Update.
5379 * tui/tui-disasm.c (tui_set_disassem_content)
5380 (tui_disasm_window::do_scroll_vertical): Update.
5381 * tui/tui-data.h (tui_win_content): Remove.
5382 (struct tui_gen_win_info) <content, content_size>: Remove.
5383 (struct tui_source_element): Add initializers and destructor.
5384 (union tui_which_element, struct tui_win_element): Remove.
5385 (struct tui_source_window_base) <content>: New field.
5386 (struct tui_data_window): Remove destructor.
5387 (tui_alloc_content, tui_free_win_content)
5388 (tui_free_all_source_wins_content): Don't declare.
5389 * tui/tui-data.c (tui_initialize_static_data): Update.
5390 (init_content_element, tui_alloc_content): Remove.
5391 (~tui_gen_win_info): Update.
5392 (~tui_data_window, tui_free_all_source_wins_content)
5393 (tui_free_win_content, free_content, free_content_elements):
5394 Remove.
5395
7908abbf
TT
53962019-06-25 Tom Tromey <tom@tromey.com>
5397
5398 * tui/tui-winsource.h (tui_clear_source_content)
5399 (tui_erase_source_content, tui_show_source_content): Change type
5400 of win_info.
5401 * tui/tui-winsource.c (tui_clear_source_content)
5402 (tui_erase_source_content, tui_show_source_content): Change type
5403 of win_info.
5404 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5405 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5406 win_info.
5407 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5408 win_info.
5409 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5410
02c28df0
TT
54112019-06-25 Tom Tromey <tom@tromey.com>
5412
5413 * tui/tui-winsource.c (tui_clear_source_content)
5414 (tui_source_window_base::set_is_exec_point_at): Update.
5415 * tui/tui-source.c (tui_set_source_content_nil): Update.
5416 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5417 a bool.
5418 * tui/tui-data.c (init_content_element): Update.
5419
6658b1bf
TT
54202019-06-25 Tom Tromey <tom@tromey.com>
5421
5422 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5423 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5424 * tui/tui-layout.c (init_and_make_win): Update.
5425 * tui/tui.h (enum tui_win_type): Update.
5426 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5427 tui_win_is_auxillary.
5428 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5429 tui_win_is_auxillary.
5430
21e1c91e
TT
54312019-06-25 Tom Tromey <tom@tromey.com>
5432
5433 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5434 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5435 (tui_delete_data_content_windows, tui_display_all_data)
5436 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5437 Update.
5438 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5439 * tui/tui-regs.c (tui_last_regs_line_no)
5440 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5441 (tui_show_registers): Update.
5442 (tui_show_register_group): Return void. Update.
5443 (tui_display_registers_from, tui_display_reg_element_at_line)
5444 (tui_display_registers_from_line, tui_check_register_values):
5445 Update.
5446 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5447 member.
5448 (struct tui_data_window) <regs_content>: Now a std::vector.
5449 <regs_content_count>: Remove.
5450 (tui_add_content_elements, tui_free_data_content): Don't declare.
5451 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5452 (init_content_element): Remove DATA_WIN case. Add assert.
5453 (tui_add_content_elements): Remove.
5454 (tui_data_window): Update.
5455 (tui_free_data_content): Remove.
5456 (free_content_elements): Remove DATA_WIN case.
5457
115ac53b
TT
54582019-06-25 Tom Tromey <tom@tromey.com>
5459
5460 * tui/tui-data.c (tui_data_item_window): Update.
5461 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5462 * tui/tui-windata.c (tui_display_all_data)
5463 (tui_display_data_from_line): Update.
5464 (tui_check_data_values): Remove.
5465 * tui/tui-regs.c (tui_show_register_group)
5466 (tui_display_reg_element_at_line): Update.
5467 * tui/tui-hooks.c (tui_register_changed)
5468 (tui_refresh_frame_and_register_information): Call
5469 tui_check_register_values.
5470 * tui/tui-data.h (struct tui_data_window) <data_content,
5471 data_content_count, data_type>: Remove.
5472 (enum tui_data_type): Remove.
5473
5474 * tui/tui-data.c (tui_data_window::clear_detail)
5475 (~tui_data_window): Update.
5476
eaf9738b
TT
54772019-06-25 Tom Tromey <tom@tromey.com>
5478
5479 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5480 declare.
5481 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5482 Rename from tui_first_data_item_displayed. Update.
5483 (tui_data_window::refresh_all)
5484 (tui_data_window::do_scroll_vertical): Update.
5485 * tui/tui-data.h (struct tui_data_window)
5486 <first_data_item_displayed>: Declare new method.
5487
31ca4723
TT
54882019-06-25 Tom Tromey <tom@tromey.com>
5489
5490 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5491 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5492 contents...
5493 (tui_initialize_static_data): ...here.
5494
41bcff7f
TT
54952019-06-25 Tom Tromey <tom@tromey.com>
5496
5497 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5498 (tui_display_registers_from, tui_check_register_values): Update.
5499 (tui_display_register): Remove win_info parameter; update.
5500 (tui_get_register): Change type of parameters.
5501 * tui/tui-data.h (struct tui_data_element): Remove.
5502 (union tui_which_element) <data>: Remove.
5503 <data_window>: Change type.
5504 (struct tui_data_item_window): New.
5505 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5506 case. Add assert.
5507 (~tui_data_item_window): New destructor.
5508 (free_content_elements): Remove DATA_ITEM_WIN case.
5509
d2802c33
TT
55102019-06-25 Tom Tromey <tom@tromey.com>
5511
5512 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5513 Remove.
5514
dd835f8b
TT
55152019-06-25 Tom Tromey <tom@tromey.com>
5516
5517 * tui/tui-data.h (struct tui_command_element): Remove.
5518 (union tui_which_element) <command>: Remove.
5519 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5520 assert.
5521 (free_content_elements): Remove CMD_WIN case.
5522
bd7db367
TT
55232019-06-25 Tom Tromey <tom@tromey.com>
5524
5525 * tui/tui-layout.c (tui_set_layout): Update.
5526 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5527 * tui/tui-data.c (layout_def): Update.
5528
3add462f
TT
55292019-06-25 Tom Tromey <tom@tromey.com>
5530
5531 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5532 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5533 (tui_source_window_base::set_new_height): Update.
5534 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5535 Update.
5536 (tui_set_locator_fullname, tui_set_locator_info)
5537 (tui_show_frame_info): Update.
5538 * tui/tui-source.c (tui_set_source_content)
5539 (tui_source_is_displayed): Update.
5540 * tui/tui-layout.c (show_source_disasm_command, show_data)
5541 (show_source_or_disasm_and_command): Update.
5542 * tui/tui-disasm.c (tui_set_disassem_content)
5543 (tui_get_begin_asm_address): Update.
5544 * tui/tui-data.h (struct tui_locator_element): Remove.
5545 (union tui_which_element) <locator>: Remove.
5546 (struct tui_locator_window): New.
5547 (tui_locator_win_info_ptr): Change return type.
5548 * tui/tui-data.c (_locator): Change type.
5549 (tui_locator_win_info_ptr): Change return type.
5550 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5551 (tui_alloc_content): Add assert.
5552
489e9d8b
TT
55532019-06-25 Tom Tromey <tom@tromey.com>
5554
5555 * tui/tui-winsource.c
5556 (tui_exec_info_window::maybe_allocate_content): New method.
5557 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5558 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5559 (make_source_or_disasm_window): Add cast.
5560 * tui/tui-data.h (union tui_which_element) <simple_string>:
5561 Remove.
5562 (struct tui_source_info): New.
5563 (struct tui_source_window_base) <execution_info>: Change type.
5564 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5565 case, and add assert.
5566 (tui_alloc_content): Add assert.
5567
c3fabb7d
TT
55682019-06-25 Tom Tromey <tom@tromey.com>
5569
5570 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5571 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5572 * tui/tui-data.c (tui_alloc_win_info): Remove.
5573
bbc228ee
TT
55742019-06-25 Tom Tromey <tom@tromey.com>
5575
5576 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5577 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5578 can_highlight.
5579
5fcee43a
TT
55802019-06-25 Tom Tromey <tom@tromey.com>
5581
5582 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5583 make_visible_with_new_height method.
5584 (tui_win_info::make_visible_with_new_height): New method.
5585 (tui_source_window_base::do_make_visible_with_new_height)
5586 (tui_data_window::do_make_visible_with_new_height)
5587 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5588 (make_visible_with_new_height): Remove.
5589 (tui_resize_all, tui_adjust_win_heights): Use
5590 make_visible_with_new_height method.
5591 * tui/tui-data.h (struct tui_win_info)
5592 <do_make_visible_with_new_height, make_visible_with_new_height>:
5593 New methods.
5594 (struct tui_source_window_base, struct tui_data_window)
5595 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5596 methods.
5597
d83f1fe6
TT
55982019-06-25 Tom Tromey <tom@tromey.com>
5599
5600 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5601 method.
5602 (update_tab_width): Call update_tab_width method.
5603 * tui/tui-data.h (struct tui_win_info)
5604 (struct tui_source_window_base) <update_tab_width>: New methods.
5605
17374de4
TT
56062019-06-25 Tom Tromey <tom@tromey.com>
5607
5608 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5609 parameter.
5610 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5611 parameter.
5612 (tui_gen_win_info::make_visible): Update.
5613 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5614 parameter.
5615 * tui/tui-data.h (enum tui_box): New enum.
5616 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5617
f936bca2
TT
56182019-06-25 Tom Tromey <tom@tromey.com>
5619
5620 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5621 init_and_make_win for EXEC_INFO_WIN.
5622 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5623 longer inline.
5624 (struct tui_win_info) <~tui_win_info>: Inline.
5625 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5626 Don't declare.
5627 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5628 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5629 Remove.
5630 (tui_initialize_static_data): Update.
5631 (~tui_gen_win_info): Handle more cleanup here.
5632 (~tui_source_window_base): Delete "execution_info".
5633 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5634
d6ba6a11
TT
56352019-06-25 Tom Tromey <tom@tromey.com>
5636
5637 * tui/tui-layout.c (make_command_window): Don't set
5638 can_highlight.
5639 (show_source_disasm_command): Call the reset method.
5640 (show_data): Don't set can_highlight. Call the reset method.
5641 (tui_gen_win_info::reset): Rename from init_gen_win_info
5642 (init_and_make_win): Simplify. Return tui_gen_win_info.
5643 (show_source_or_disasm_and_command): Call the reset method.
5644 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5645 (struct tui_cmd_window): Set can_highlight.
5646
48a3bd16
TT
56472019-06-25 Tom Tromey <tom@tromey.com>
5648
5649 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5650 from make_visible.
5651 (tui_make_visible, tui_make_invisible): Rewrite.
5652 (tui_win_info::make_visible): Remove.
5653 (tui_source_window_base::make_visible): Update.
5654 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5655 method. Moved from...
5656 (struct tui_win_info) <make_visible>: ...here.
5657
c3bd716f
TT
56582019-06-25 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-winsource.c
5661 (tui_source_window_base::do_scroll_horizontal): Remove direction
5662 parameter.
5663 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5664 direction parameter.
5665 * tui/tui-win.c (tui_win_info::forward_scroll)
5666 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5667 (tui_win_info::right_scroll): Update.
5668 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5669 direction parameter.
5670 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5671 direction parameter.
5672 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5673 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5674 Remove direction parameter.
5675 (struct tui_source_window_base, struct tui_source_window)
5676 (struct tui_disasm_window, struct tui_data_window)
5677 (struct tui_cmd_window): Update.
5678
21c32dca
TT
56792019-06-25 Tom Tromey <tom@tromey.com>
5680
5681 * tui/tui-winsource.h (tui_set_exec_info_content)
5682 (tui_show_exec_info_content, tui_erase_exec_info_content)
5683 (tui_clear_exec_info_content, tui_update_exec_info): Change
5684 argument to tui_source_window_base.
5685 * tui/tui-winsource.c (tui_set_exec_info_content)
5686 (tui_show_exec_info_content, tui_erase_exec_info_content)
5687 (tui_clear_exec_info_content, tui_update_exec_info): Change
5688 argument to tui_source_window_base.
5689
73fbdc65
TT
56902019-06-25 Tom Tromey <tom@tromey.com>
5691
5692 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5693 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5694
33325343
TT
56952019-06-25 Tom Tromey <tom@tromey.com>
5696
5697 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5698 check.
5699
29d2c474
TT
57002019-06-25 Tom Tromey <tom@tromey.com>
5701
5702 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5703 type to void.
5704 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5705 type to void.
5706 * tui/tui-source.c (tui_set_source_content): Update.
5707 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5708
152f3f4b
TT
57092019-06-25 Tom Tromey <tom@tromey.com>
5710
5711 * tui/tui-win.c (window_name_completer, tui_set_focus)
5712 (tui_all_windows_info): Use name method.
5713 * tui/tui-data.h (struct tui_gen_win_info)
5714 (struct tui_source_window, struct tui_disasm_window)
5715 (struct tui_data_window, struct tui_cmd_window) <name>: New
5716 method.
5717 (tui_win_name): Don't declare.
5718 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5719 (tui_win_name): Remove.
5720
be4da588
TT
57212019-06-25 Tom Tromey <tom@tromey.com>
5722
5723 * tui/tui-winsource.h (tui_update_source_window)
5724 (tui_update_source_window_as_is): Change parameter type.
5725 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5726 to be a tui_source_window_base.
5727 (tui_update_source_window_as_is): Likewise.
5728 * tui/tui-win.c (make_visible_with_new_height): Update.
5729
5b81daba
TT
57302019-06-25 Tom Tromey <tom@tromey.com>
5731
5732 * tui/tui-winsource.c (tui_erase_source_content)
5733 (tui_show_source_content, tui_show_exec_info_content)
5734 (tui_erase_exec_info_content): Use refresh_window method.
5735 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5736 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5737 from tui_refresh_win.
5738 (tui_data_window::refresh_window): New method.
5739 (tui_win_info::refresh, tui_source_window_base::refresh)
5740 (tui_refresh_all): Use refresh_window method.
5741 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5742 method.
5743 * tui/tui-regs.c (tui_display_register): Call refresh_window
5744 method.
5745 * tui/tui-layout.c (show_source_disasm_command)
5746 (show_source_or_disasm_and_command): Call refresh_window method.
5747 * tui/tui-data.h (struct tui_gen_win_info)
5748 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5749 New method.
5750
cb2ce893
TT
57512019-06-25 Tom Tromey <tom@tromey.com>
5752
5753 * tui/tui.c (tui_rl_other_window, tui_enable)
5754 (tui_is_window_visible, tui_get_command_dimension): Update.
5755 * tui/tui-winsource.c (tui_update_source_window_as_is)
5756 (tui_clear_source_content, tui_erase_source_content)
5757 (tui_show_source_line, tui_source_window_base::refill)
5758 (tui_source_window_base::do_scroll_horizontal)
5759 (tui_source_window_base::set_is_exec_point_at)
5760 (tui_update_breakpoint_info, tui_set_exec_info_content)
5761 (tui_alloc_source_buffer, tui_line_is_displayed)
5762 (tui_addr_is_displayed): Update.
5763 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5764 (tui_check_and_display_highlight_if_needed)
5765 (tui_win_info::make_visible, tui_win_info::refresh)
5766 (tui_refresh_all): Update.
5767 * tui/tui-windata.c (tui_first_data_item_displayed)
5768 (tui_delete_data_content_windows, tui_erase_data_content)
5769 (tui_display_all_data, tui_data_window::refresh_all)
5770 (tui_check_data_values): Update.
5771 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5772 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5773 (tui_win_info::backward_scroll, tui_refresh_all_win)
5774 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5775 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5776 (tui_source_window_base::set_new_height)
5777 (tui_data_window::set_new_height)
5778 (make_invisible_and_set_new_height)
5779 (make_visible_with_new_height, new_height_ok)
5780 (parse_scrolling_args): Update.
5781 * tui/tui-stack.c (tui_show_frame_info): Update.
5782 * tui/tui-source.c (tui_set_source_content)
5783 (tui_set_source_content_nil, tui_source_is_displayed)
5784 (tui_source_window::do_scroll_vertical): Update.
5785 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5786 (tui_display_registers_from, tui_display_reg_element_at_line)
5787 (tui_check_register_values, tui_reg_command): Update.
5788 * tui/tui-layout.c (tui_default_win_height)
5789 (show_source_disasm_command, show_data, init_and_make_win)
5790 (show_source_or_disasm_and_command): Update.
5791 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5792 (tui_redisplay_readline, tui_mld_flush)
5793 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5794 (tui_getc): Update.
5795 * tui/tui-disasm.c (tui_set_disassem_content)
5796 (tui_disasm_window::do_scroll_vertical): Update.
5797 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5798 Now virtual.
5799 (struct tui_win_info): Derive from tui_gen_win_info.
5800 <~tui_win_info>: Mark as override.
5801 <generic>: Remove member.
5802 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5803 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5804 (~tui_data_window, ~tui_win_info)
5805 (tui_free_all_source_wins_content): Update.
5806 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5807
ab313b35
TT
58082019-06-25 Tom Tromey <tom@tromey.com>
5809
5810 * tui/tui-layout.c (init_and_make_win): Use new.
5811 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5812 destructor, initializers.
5813 (tui_alloc_generic_win_info): Don't declare.
5814 * tui/tui-data.c (_locator): Add argument to constructor.
5815 (source_win, disasm_win): New globals.
5816 (exec_info): Remove.
5817 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5818 Update.
5819 (tui_alloc_generic_win_info): Remove.
5820 (init_content_element): Use new.
5821 (tui_win_info::tui_win_info): Update.
5822 (free_content_elements) <case DATA_WIN>: Use delete.
5823
dc2c33e4
TT
58242019-06-25 Tom Tromey <tom@tromey.com>
5825
5826 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5827 * tui/tui-windata.c (tui_first_data_item_displayed)
5828 (tui_delete_data_content_windows): Update.
5829 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5830 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5831 (tui_display_registers_from, tui_check_register_values): Update.
5832 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5833 pointer.
5834 * tui/tui-data.c (init_content_element): Update. Allocate the new
5835 window.
5836 (tui_free_data_content): Update.
5837 (free_content_elements) <case DATA_WIN>: Free the window.
5838
214a5cbe
TT
58392019-06-25 Tom Tromey <tom@tromey.com>
5840
5841 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5842 Update.
5843 * tui/tui-layout.c (make_command_window)
5844 (show_source_disasm_command, show_data, init_and_make_win)
5845 (show_source_or_disasm_and_command): Update.
5846 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5847 method.
5848 <can_highight, is_highlighted>: Now bool.
5849 (tui_set_win_highlight): Don't declare.
5850 * tui/tui-data.c (tui_set_win_highlight): Remove.
5851
8e2daf15
TT
58522019-06-25 Tom Tromey <tom@tromey.com>
5853
5854 * tui/tui-wingeneral.c (make_visible): Remove check of window
5855 type.
5856
8903bd8a
TT
58572019-06-25 Tom Tromey <tom@tromey.com>
5858
5859 * tui/tui-win.c (tui_win_info::max_height)
5860 (tui_cmd_window::max_height): New methods.
5861 (new_height_ok): Call max_height.
5862 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5863 <max_height>: New method.
5864
3f02ce1e
TT
58652019-06-25 Tom Tromey <tom@tromey.com>
5866
5867 * tui/tui-win.c (tui_source_window_base::set_new_height)
5868 (tui_data_window::set_new_height): New methods.
5869 (make_invisible_and_set_new_height): Call set_new_height method.
5870 * tui/tui-data.h (struct tui_win_info)
5871 (struct tui_source_window_base, struct tui_data_window)
5872 <set_new_height>: New method.
5873
1825f487
TT
58742019-06-25 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5877 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5878 tui_refresh_data_win.
5879 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5880 method.
5881 (tui_refresh_all_win): Call the refresh_all method.
5882 (tui_set_focus): Likewise.
5883 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5884 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5885 Likewise.
5886
ad54d15b
TT
58872019-06-25 Tom Tromey <tom@tromey.com>
5888
5889 * tui/tui-winsource.h (tui_refill_source_window)
5890 (tui_set_is_exec_point_at): Don't declare.
5891 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5892 (tui_source_window_base::refill): Rename from
5893 tui_refill_source_window.
5894 (tui_source_window_base::do_scroll_horizontal): Update.
5895 (tui_source_window_base::set_is_exec_point_at): Rename from
5896 tui_set_is_exec_point_at.
5897 (tui_update_all_breakpoint_info): Update.
5898 * tui/tui-stack.c (tui_show_frame_info): Update.
5899 * tui/tui-layout.c (show_data): Add cast.
5900 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5901 * tui/tui-data.h (struct tui_source_window_base) <refill,
5902 set_is_exec_point_at>: New methods.
5903 (tui_source_windows, tui_add_to_source_windows): Update types.
5904 (tui_add_to_source_windows): Remove redundant declaration.
5905 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5906 (tui_source_windows): Change return type.
5907 (tui_clear_source_windows_detail): Update.
5908 (tui_add_to_source_windows): Change type of parameter.
5909 (tui_free_all_source_wins_content): Update.
5910
2042b506
TT
59112019-06-25 Tom Tromey <tom@tromey.com>
5912
5913 * tui/tui-wingeneral.c (tui_win_info::refresh)
5914 (tui_source_window_base::refresh): New methods.
5915 (tui_refresh_all): Call the refresh method.
5916 * tui/tui-data.h (struct tui_win_info)
5917 (struct tui_source_window_base) <refresh>: New method.
5918
56122977
TT
59192019-06-25 Tom Tromey <tom@tromey.com>
5920
5921 * tui/tui.h (tui_is_window_visible): Return bool.
5922 * tui/tui.c (tui_is_window_visible): Return bool.
5923 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5924 (tui_make_visible, tui_make_invisible)
5925 (tui_win_info::make_visible)
5926 (tui_source_window_base::make_visible, make_all_visible)
5927 (tui_make_all_visible, tui_make_all_invisible): Update.
5928 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5929 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5930 bool.
5931 (struct tui_win_info, struct tui_source_window_base)
5932 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5933 * tui/tui-data.c (tui_init_generic_part): Update.
5934
cda37efb
TT
59352019-06-25 Tom Tromey <tom@tromey.com>
5936
5937 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5938 (tui_source_window_base::make_visible): New methods.
5939 (make_all_visible): Make method call.
5940 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5941 (struct tui_source_window_base, struct tui_cmd_window): Override
5942 make_visible.
5943 (tui_win_is_source_type): Don't declare.
5944 * tui/tui-data.c (tui_win_is_source_type): Remove.
5945
6a0ee02c
TT
59462019-06-25 Tom Tromey <tom@tromey.com>
5947
5948 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5949 NULL check.
5950
63901aec
TT
59512019-06-25 Tom Tromey <tom@tromey.com>
5952
5953 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5954 Inline constructor. Add initializers for members.
5955 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5956 constructors; now inline in class.
5957
ceb13a13
TT
59582019-06-25 Tom Tromey <tom@tromey.com>
5959
5960 * tui/tui-regs.c (tui_show_registers): Update.
5961 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5962 bool.
5963 * tui/tui-data.c (tui_data_window::clear_detail)
5964 (tui_data_window): Update.
5965
238eb706
TT
59662019-06-25 Tom Tromey <tom@tromey.com>
5967
5968 * tui/tui-windata.c (tui_display_all_data)
5969 (tui_display_data_from_line, tui_display_data_from)
5970 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5971 Update.
5972 * tui/tui-regs.c (tui_last_regs_line_no)
5973 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5974 (tui_show_registers, tui_show_register_group)
5975 (tui_display_registers_from, tui_display_reg_element_at_line)
5976 (tui_display_registers_from_line, tui_check_register_values)
5977 (tui_reg_next, tui_reg_prev): Update.
5978 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5979 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5980 tui_data_window.
5981 (struct tui_win_info) <detail>: Remove. Add new fields from
5982 tui_data_info.
5983 (TUI_DATA_WIN): Add cast.
5984 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5985 (~tui_data_window): Simplify.
5986
81491aa0
TT
59872019-06-25 Tom Tromey <tom@tromey.com>
5988
5989 * tui/tui-layout.c (show_source_disasm_command)
5990 (show_source_or_disasm_and_command): Update.
5991 * tui/tui-io.c (update_cmdwin_start_line)
5992 (tui_redisplay_readline): Update.
5993 * tui/tui-data.h (struct tui_command_info): Remove.
5994 (struct tui_win_info) <detail>: Remove command_info member.
5995 (struct tui_data_window) <start_line>: New member, from
5996 tui_command_info.
5997 (TUI_CMD_WIN): Add casts.
5998
e6e41501
TT
59992019-06-25 Tom Tromey <tom@tromey.com>
6000
6001 * tui/tui-winsource.c (tui_update_source_window)
6002 (tui_refill_source_window)
6003 (tui_source_window_base::do_scroll_horizontal)
6004 (tui_update_breakpoint_info, tui_set_exec_info_content)
6005 (tui_show_exec_info_content, tui_erase_exec_info_content)
6006 (tui_clear_exec_info_content): Update.
6007 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6008 Update.
6009 * tui/tui-win.c (make_invisible_and_set_new_height)
6010 (make_visible_with_new_height): Update.
6011 * tui/tui-source.c (tui_set_source_content)
6012 (tui_show_symtab_source): Update.
6013 * tui/tui-layout.c (extract_display_start_addr)
6014 (show_source_disasm_command, show_data)
6015 (make_source_or_disasm_window)
6016 (show_source_or_disasm_and_command): Update.
6017 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6018 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6019 "gdbarch".
6020 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6021 to tui_source_window_base.
6022 (struct tui_win_info) <detail>: Remove source_info member.
6023 (struct tui_source_window_base) <has_locator>: Inline.
6024 Move contents from tui_source_info; rename has_locator member to
6025 m_has_locator.
6026 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6027 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6028 header file.
6029 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6030 Simplify.
6031 (tui_free_all_source_wins_content): Cast to
6032 tui_source_window_base.
6033
44f0e208
TT
60342019-06-25 Tom Tromey <tom@tromey.com>
6035
6036 * tui/tui-win.c (make_invisible_and_set_new_height)
6037 (make_visible_with_new_height): Call has_locator method.
6038 * tui/tui-layout.c (show_source_disasm_command, show_data)
6039 (show_source_or_disasm_and_command): Update for bool change.
6040 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6041 (tui_win_info) <has_locator>: New method.
6042 (struct tui_source_window_base) <has_locator>: New method.
6043 (tui_win_has_locator): Don't declare.
6044 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6045 from tui_win_has_locator.
6046 (tui_source_window_base): Use false, not FALSE.
6047
7778b912
TT
60482019-06-25 Tom Tromey <tom@tromey.com>
6049
6050 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6051 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6052 clear_detail method directly.
6053 (tui_clear_win_detail): Remove.
6054
f83d391c
TT
60552019-06-25 Tom Tromey <tom@tromey.com>
6056
6057 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6058 "this", not TUI_DISASM_WIN.
6059
13446e05
TT
60602019-06-25 Tom Tromey <tom@tromey.com>
6061
6062 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6063 declare.
6064 * tui/tui-winsource.c
6065 (tui_source_window_base::do_scroll_horizontal): Rename from
6066 tui_horizontal_source_scroll.
6067 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6068 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6069 from tui_vertical_data_scroll.
6070 * tui/tui-win.h (tui_scroll): Don't declare.
6071 * tui/tui-win.c (tui_win_info::forward_scroll)
6072 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6073 (tui_win_info::right_scroll): Rename and update.
6074 (tui_scroll_forward_command, tui_scroll_backward_command)
6075 (tui_scroll_left_command, tui_scroll_right_command): Update.
6076 (tui_scroll): Remove.
6077 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6078 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6079 from tui_vertical_source_scroll.
6080 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6081 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6082 from tui_vertical_disassem_scroll.
6083 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6084 do_scroll_horizontal>: New methods.
6085 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6086 Likewise.
6087 (struct tui_source_window_base): Add do_scroll_horizontal.
6088 (struct tui_source_window, struct tui_disasm_window): Add
6089 do_scroll_vertical.
6090 (struct tui_data_window, struct tui_cmd_window): Add
6091 do_scroll_horizontal and do_scroll_vertical.
6092 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6093
5cf82909
TT
60942019-06-25 Tom Tromey <tom@tromey.com>
6095
6096 * tui/tui-data.h (struct tui_source_window_base): New struct.
6097 (struct tui_source_window): Derive from tui_source_window_base.
6098 (struct tui_disasm_window): New struct.
6099 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6100 from tui_source_window::clear_detail.
6101 (tui_source_window_base): Rename from tui_source_window.
6102 (~tui_source_window_base): Rename from ~tui_source_window.
6103 (tui_alloc_win_info): Create a tui_disasm_window.
6104
ee1d42d6
TT
61052019-06-25 Tom Tromey <tom@tromey.com>
6106
6107 * tui/tui-data.h (struct tui_source_window)
6108 (struct tui_data_window): Declare destructors.
6109 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6110 destructors.
6111 (tui_win_info): Simplify.
6112
b4eb2452
TT
61132019-06-25 Tom Tromey <tom@tromey.com>
6114
6115 * tui/tui-winsource.c (tui_display_main)
6116 (tui_update_source_windows_with_addr)
6117 (tui_update_all_breakpoint_info): Update.
6118 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6119 (new_height_ok, parse_scrolling_args): Update.
6120 * tui/tui-stack.c (tui_show_frame_info): Update.
6121 * tui/tui-data.h (struct tui_list): Remove.
6122 (tui_source_windows): Return a reference to a std::vector.
6123 * tui/tui-data.c (source_windows): Now a std::vector.
6124 (tui_source_windows): Change return type.
6125 (tui_clear_source_windows): Rewrite.
6126 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6127 (tui_free_all_source_wins_content): Rewrite.
6128
8761a91b
TT
61292019-06-25 Tom Tromey <tom@tromey.com>
6130
6131 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6132 (struct tui_data_window, struct tui_cmd_window): Declare
6133 clear_detail method.
6134 * tui/tui-data.c (tui_source_window::clear_detail)
6135 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6136 methods.
6137 (tui_clear_win_detail): Simplify.
6138
0ed69eda
TT
61392019-06-25 Tom Tromey <tom@tromey.com>
6140
6141 * tui/tui-layout.c (make_source_window, make_disasm_window)
6142 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6143 Return the new window.
6144 (show_source_disasm_command, show_data)
6145 (show_source_or_disasm_and_command): Update.
6146
82432e10
TT
61472019-06-25 Tom Tromey <tom@tromey.com>
6148
6149 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6150 parameter. Return the new window.
6151 (show_source_disasm_command): Update and remove NULL check.
6152 (show_source_or_disasm_and_command): Update.
6153
ec328aa5
TT
61542019-06-25 Tom Tromey <tom@tromey.com>
6155
6156 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6157
33b906ab
TT
61582019-06-25 Tom Tromey <tom@tromey.com>
6159
6160 * tui/tui-data.h (struct tui_win_info): Make constructor
6161 protected. Make destructor virtual. Add initializers.
6162 (tui_source_window, tui_data_window, tui_cmd_window): New
6163 classes.
6164 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6165 constructor. Add "type" parameter.
6166 (tui_source_window, tui_data_window, tui_cmd_window): New
6167 constructors.
6168 (tui_alloc_win_info): Instantiate the appropriate subclass.
6169
e7e11af4
TT
61702019-06-25 Tom Tromey <tom@tromey.com>
6171
6172 * tui/tui-win.c (tui_resize_all): Use delete.
6173 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6174 destructor.
6175 (tui_free_window): Don't declare.
6176 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6177 Update.
6178
6792b55e
TT
61792019-06-25 Tom Tromey <tom@tromey.com>
6180
6181 * tui/tui-data.h (struct tui_win_info): Add constructor.
6182 * tui/tui-data.c (tui_alloc_win_info): Use new.
6183 (tui_free_window): Use delete.
6184
f95675e1
TT
61852019-06-22 Tom Tromey <tom@tromey.com>
6186
6187 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6188 declare.
6189 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6190
5bff081c
TT
61912019-06-22 Tom Tromey <tom@tromey.com>
6192
6193 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6194 declare.
6195 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6196
47e3f474
TV
61972019-06-22 Tom de Vries <tdevries@suse.de>
6198
6199 * dwarf2read.c (create_addrmap_from_aranges)
6200 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6201 instead of '%zu'.
6202
fd5866f6
SM
62032019-06-21 Simon Marchi <simon.marchi@efficios.com>
6204
6205 * dwarf2read.h (dwarf2_section_info_def): Remove.
6206 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6207 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6208 std::vector<dwarf2_section_info>.
6209 (struct dwo_file) <~dwo_file>: Remove.
6210 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6211 types field.
6212 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6213 (dwarf2_read_debug_names): Likewise.
6214 (create_debug_types_hash_table): Change parameter type to
6215 array_view, adjust code accordingly.
6216 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6217 (partial_die_info::fixup): Likewise.
6218 (determine_prefix): Likewise.
6219 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6220
fb1eb2f9
SM
62212019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6222
6223 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6224 gdb_bfd_ref_ptr.
6225 <~dwo_file>: Remove call to gdb_bfd_unref.
6226 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6227 gdb_bfd_ref_ptr::get.
6228
51ac9db5
SM
62292019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6230
6231 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6232 type to htab_up.
6233 * dwarf2read.c (struct dwo_file): Initialize fields.
6234 <~dwo_file>: New.
6235 (free_dwo_file): Remove, move content to ~dwo_file.
6236 (struct dwo_file_deleter): Remove.
6237 (dwo_file_up>: Remove custom deleter.
6238 (free_dwo_files): Remove.
6239 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6240 dwo_files.
6241 (process_skeletonless_type_units): Call unique_ptr::get.
6242 (allocate_dwo_file_hash_table): Add deleter to created hash
6243 table. Change return type to htab_up.
6244 (lookup_dwo_file_slot): Don't memset dwo_file, call
6245 unique_ptr::get.
6246 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6247 (create_dwo_unit_in_dwp_v2): Likewise.
6248 (open_and_init_dwo_file): Likewise.
6249 (free_dwo_file_from_slot): Remove.
6250
dc4ccb6f
SM
62512019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6252
6253 * dwarf2read.h (struct dwarf2_section_info) <readin,
6254 is_virtual>: Change type to bool.
6255 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6256 true instead of 1.
6257
e6a1c5cb
TT
62582019-06-19 Tom Tromey <tom@tromey.com>
6259
6260 * tui/tui-data.h (tui_init_content_element): Don't declare.
6261
6f6ffbeb
TT
62622019-06-19 Tom Tromey <tom@tromey.com>
6263
6264 * tui/tui-data.h (tui_init_win_info): Don't declare.
6265
f23f598e
TV
62662019-06-19 Tom de Vries <tdevries@suse.de>
6267
6268 * dwarf2read.h (abstract_to_concrete): Change type to
6269 std::unordered_map<sect_offset, std::vector<sect_offset>,
6270 gdb::hash_enum<sect_offset>>.
6271
680e1bee
TT
62722019-06-19 Tom Tromey <tromey@adacore.com>
6273
6274 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6275 EVAL_AVOID_SIDE_EFFECTS specially.
6276
dcf37923
TT
62772019-06-19 Tom Tromey <tromey@adacore.com>
6278
6279 * source-cache.c (highlighter): New global.
6280 (source_cache::get_source_lines): Create a highlighter on demand.
6281
494986d5
AB
62822019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6283
6284 * defs.h (deprecated_interactive_hook): Delete declaration.
6285 * interps.c (clear_interpreter_hooks): Remove use of
6286 deprecated_interactive_hook.
6287 * top.c (deprecated_interactive_hook): Delete definition.
6288 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6289
3360b6e7
TV
62902019-06-18 Tom de Vries <tdevries@suse.de>
6291
6292 PR gdb/24515
6293 * dwarf2read.h (abstract_to_concrete): Change type from
6294 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6295 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6296 * dwarf2read.c (read_variable): Update.
6297 (dwarf2_fetch_die_loc_sect_off): Update.
6298
310b3441
TV
62992019-06-17 Tom de Vries <tdevries@suse.de>
6300
6301 PR gdb/24617
6302 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6303 accessing parent[parent_len - 1].
6304
ba9777be
PP
63052019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6306
6307 PR gdb/24364
6308 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6309 call dtrace_process_dof with NULL dof.
6310
2b9f6e89
TV
63112019-06-16 Tom de Vries <tdevries@suse.de>
6312
6313 PR gdb/24445
6314 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6315
431b3ead
TT
63162019-06-16 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6319 (make_all_visible): Use address of member.
6320
d04b44a1
TT
63212019-06-16 Tom Tromey <tom@tromey.com>
6322
6323 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6324 (tui_free_window, free_content, free_content_elements): Remove
6325 unnecessary cast.
6326 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6327 cast.
6328 * tui/tui-regs.c (tui_show_register_group)
6329 (tui_display_registers_from, tui_display_reg_element_at_line):
6330 Remove unnecessary cast.
6331
bf5142e7
AB
63322019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6333
6334 * linux-nat.c (normal_mask): Delete.
6335 (_initialize_linux_nat): Don't initialise normal_mask.
6336
c4973306
SM
63372019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6338
6339 PR gdb/24445
6340 * dwarf-index-write.h (write_psymtabs_to_index): Add
6341 dwz_basename parameter.
6342 * dwarf-index-write.c (write_gdbindex): Move file writing to
6343 write_gdbindex_1. Change return type void.
6344 (assert_file_size): Move up, remove filename parameter.
6345 (write_gdbindex_1): New function.
6346 (write_debug_names): Change return type to void, call
6347 assert_file_size.
6348 (struct index_wip_file): New struct.
6349 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6350 file logic to index_wip_file. Write index for dwz file if
6351 needed.
6352 (save_gdb_index_command): Pass basename of dwz file, if present.
6353 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6354 build-id of dwz file, if present.
6355 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6356 (dwarf2_get_dwz_file): Likewise.
6357 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6358 (dwarf2_get_dwz_file): Likewise.
6359
395f9c91
TT
63602019-06-16 Tom Tromey <tom@tromey.com>
6361
6362 * coffread.c (process_coff_symbol): Use xstrdup.
6363 * value.c (create_internalvar): Use xstrdup.
6364
cafb3438
TT
63652019-06-16 Tom Tromey <tom@tromey.com>
6366
6367 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6368 * breakpoint.c (stopin_command, stopat_command)
6369 (until_break_command, decode_location_default): Remove unnecessary
6370 cast.
6371 * utils.c (subset_compare): Remove unnecessary cast.
6372 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6373 cast.
6374 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6375 cast.
6376 * infcmd.c (path_command): Remove unnecessary cast.
6377 * coffread.c (decode_type): Remove unnecessary cast.
6378 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6379 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6380 * tui/tui-stack.c (tui_show_locator_content)
6381 (tui_show_frame_info): Remove unnecessary cast.
6382 * tui/tui-win.c (tui_scroll_forward_command)
6383 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6384 (parse_scrolling_args): Remove unnecessary cast.
6385 * tui/tui-data.c (init_win_info, tui_del_window)
6386 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6387 (free_content_elements): Remove unnecessary cast.
6388 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6389 unnecessary cast.
6390 * tui/tui-source.c (tui_set_source_content)
6391 (tui_vertical_source_scroll): Remove unnecessary cast.
6392 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6393 cast.
6394 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6395 * tui/tui-regs.c (tui_display_registers_from)
6396 (tui_display_register): Remove unnecessary cast.
6397 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6398 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6399 (make_visible): Remove unnecessary cast.
6400 * tui/tui-winsource.c (tui_erase_source_content)
6401 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6402 unnecessary cast.
6403 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6404 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6405 * stabsread.c (read_type, read_array_type, read_range_type):
6406 Remove unnecessary cast.
6407 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6408 (parse_symbol, parse_type, upgrade_type, parse_external)
6409 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6410 unnecessary cast.
6411 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6412
730ead81
TT
64132019-06-16 Tom Tromey <tom@tromey.com>
6414
6415 * tui/tui-data.c (tui_alloc_generic_win_info)
6416 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6417 checks.
6418
584a927c
AB
64192019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6420 Andrew Burgess <andrew.burgess@embecosm.com>
6421
6422 * f-typeprint.c (f_print_type): Don't return early for not
6423 associated or not allocated types.
6424 (f_type_print_varspec_suffix): Add print_rank parameter and print
6425 ranks of array types in case they dangling.
6426 (f_type_print_base): Add print_rank parameter.
6427
30056ea0
AB
64282019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6429
6430 * NEWS: Mention new MI commands.
6431 * break-catch-throw.c (enum exception_event_kind): Move to
6432 breakpoint.h.
6433 (print_mention_exception_catchpoint): Output text as a single
6434 message.
6435 (catch_exception_command_1): Rename to...
6436 (catch_exception_event): ...this, make non-static, update header
6437 command, and change some parameter types.
6438 (catch_catch_command): Update for changes to
6439 catch_exception_command_1.
6440 (catch_throw_command): Likewise.
6441 (catch_rethrow_command): Likewise.
6442 * breakpoint.c (enum exception_event_kind): Delete.
6443 * breakpoint.h (enum exception_event_kind): Moved here from
6444 break-catch-throw.c.
6445 (catch_exception_event): Declare.
6446 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6447 (mi_cmd_catch_throw): New function.
6448 (mi_cmd_catch_rethrow): New function.
6449 (mi_cmd_catch_catch): New function.
6450 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6451 'catch-catch' entries.
6452 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6453 (mi_cmd_catch_rethrow): Declare.
6454 (mi_cmd_catch_catch): Declare.
6455
ec8e2b6d
AB
64562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6457
6458 * annotate.c (annotate_source_line): Change return type to void,
6459 update implementation to match.
6460 * annotate.h (annotate_source_line): Change return type to void,
6461 update header comment.
6462 * stack.c (print_frame_info): Don't change what frame information
6463 is printed based on whether annotations are on or not.
6464
0d3abd8c
AB
64652019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6466
6467 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6468 (annotate_source): Make static.
6469 (annotate_source_line): Moved from source.c and renamed from
6470 identify_source_line. Update the return type.
6471 * annotate.h (annotate_source): Delete declaration.
6472 (annotate_source_line): Declaration moved from source.h, and
6473 renamed from identify_source_line. Return type updated.
6474 * source.c (identify_source_line): Moved to annotate.c and renamed
6475 to annotate_source_line.
6476 (info_line_command): Remove check of annotation_level.
6477 * source.h (identify_source_line): Move declaration to annotate.h
6478 and rename to annotate_source_line.
6479 * stack.c: Add 'annotate.h' include.
6480 (print_frame_info): Remove check of annotation_level before
6481 calling annotate_source_line.
6482
00df30ae
AB
64832019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6484
6485 * source-cache.c (source_cache::get_plain_source_lines): Use
6486 open_source_file_with_line_charpos instead of just
6487 open_source_file, remove call to find_source_lines.
6488 (source_cache::get_source_lines): Likewise.
6489 * source.c (find_source_lines): Make static.
6490 (get_filename_and_charpos): Renamed into...
6491 (open_source_file_with_line_charpos): ..this along with changes to
6492 return a scoped_fd, and some other minor clean ups.
6493 (identify_source_line): Use open_source_file_with_line_charpos.
6494 (search_command_helper): Use open_source_file_with_line_charpos
6495 instead of just open_source_file, remove call to
6496 find_source_lines.
6497 * source.h (open_source_file_with_line_charpos): Declare new
6498 function.
6499 (find_source_lines): Delete declaration.
6500
afda45a2
AB
65012019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6502
6503 * source.c (get_filename_and_charpos): Remove fullname
6504 parameter.
6505 (identify_source_line): Update call to get_filename_and_charpos.
6506
0735b091
TT
65072019-06-14 Tom Tromey <tromey@adacore.com>
6508
6509 PR gdb/24502:
6510 * ui-style.h (skip_ansi_escape): Update comment.
6511 * ui-file.h (class no_terminal_escape_file): New class.
6512 * ui-file.c (no_terminal_escape_file::write)
6513 (no_terminal_escape_file::puts): New methods.
6514 * cli/cli-logging.c (handle_redirections): Use
6515 no_terminal_escape_file.
6516
52ce35e2
TT
65172019-06-14 Tom Tromey <tromey@adacore.com>
6518
6519 * NEWS: Move convenience variable news above Python news.
6520
73cc7272
TT
65212019-06-14 Tom Tromey <tom@tromey.com>
6522
6523 * gnulib: Move directory to top-level.
6524 * configure.ac: Don't configure gnulib.
6525 * configure: Rebuild.
6526 * common/common-defs.h: Use new path to gnulib.
6527 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6528 (GNULIB_H): Remove.
6529 (INCGNU): Look in new gnulib location.
6530 (HFILES_NO_SRCDIR): Remove gnulib files.
6531 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6532 (generated_files): Remove GNULIB_H.
6533 ($(LIBGNU), all-lib): Remove targets.
6534 (distclean): Don't mention GNULIB_BUILDDIR.
6535 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6536
f5686554
TT
65372019-06-14 Tom Tromey <tromey@adacore.com>
6538
6539 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6540 Warn if symbol file does not provide any symbols.
6541
a0c1ffed
TT
65422019-06-14 Tom Tromey <tromey@adacore.com>
6543
6544 * source.c (find_and_open_source): Respect basenames_may_differ.
6545
7c39e397
AB
65462019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6547
6548 * annotate.c (annotate_breakpoints_invalid): Make use of
6549 scoped_restore_terminal_state.
6550 (annotate_frames_invalid): Likewise.
6551
f411722c
TT
65522019-06-14 Tom Tromey <tromey@adacore.com>
6553
6554 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6555 allow assignment to an internalvar.
6556
4268ec18
TT
65572019-06-14 Tom Tromey <tromey@adacore.com>
6558
6559 * ada-lex.l: Allow "_" in attribute names.
6560
abdb711e
TT
65612019-06-14 Tom Tromey <tromey@adacore.com>
6562
6563 PR gdb/24653:
6564 * regcache.c (registers_changed): Don't call alloca.
6565 * top.c (execute_command): Don't call alloca.
6566
4c048731
PA
65672019-06-13 Pedro Alves <palves@redhat.com>
6568
6569 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6570 'expression'. When parsing an expression, error out if there's
6571 junk after "unlimited".
6572 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6573 (do_set_command): Adjust calls to is_unlimited_literal.
6574
66eb1ed3
PA
65752019-06-13 Pedro Alves <palves@redhat.com>
6576
6577 * compile/compile.c (make_compile_options_def_group): Add braces
6578 around array_view initializer.
6579 * thread.c (make_thread_apply_all_options_def_group)
6580 (make_thread_apply_all_options_def_group): Likewise.
6581
3345721a
PA
65822019-06-13 Pedro Alves <palves@redhat.com>
6583
6584 * NEWS (New commands): Mention "maint test-options
6585 require-delimiter", "maint test-options unknown-is-error", "maint
6586 test-options unknown-is-operand" and "maint show
6587 test-options-completion-result".
6588 (New command options, command completion): New section.
6589 (Completion improvements): New section.
6590 Mention that you can abbreviate "unlimited".
6591
6206060d
PA
65922019-06-13 Pedro Alves <palves@redhat.com>
6593
6594 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6595 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6596 * unittests/cli-utils-selftests.c (test_parse_flags)
6597 (test_parse_flags_qcs): Delete.
6598 (test_cli_utils): Don't call deleted functions.
6599
6665660a
PA
66002019-06-13 Pedro Alves <palves@redhat.com>
6601
6602 * thread.c: Include "cli/cli-option.h".
6603 (tp_array_compar_ascending): Global.
6604 (tp_array_compar): Delete function.
6605 (tp_array_compar_ascending, tp_array_compar_descending): New
6606 functions.
6607 (ascending_option_def, qcs_flag_option_def)
6608 (thr_qcs_flags_option_defs)
6609 (make_thread_apply_all_options_def_group)
6610 (make_thread_apply_options_def_group): New.
6611 (thread_apply_all_command): Use gdb::option::process_options.
6612 (thread_apply_command_completer)
6613 (thread_apply_all_command_completer): New.
6614 (thread_apply_command): Use gdb::option::process_options.
6615 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6616 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6617 to generate help text of "thread apply". Adjust "taas"'s help.
6618 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6619 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6620
f7e13587
PA
66212019-06-13 Pedro Alves <palves@redhat.com>
6622
6623 * thread.c (thread_apply_command): Check for invalid TID with
6624 isdigit instead of !isalpha.
6625
5d707134
PA
66262019-06-13 Pedro Alves <palves@redhat.com>
6627
6628 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6629 (validate_flags_qcs): New.
6630 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6631 (validate_flags_qcs): Declare.
6632 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6633 (make_frame_apply_options_def_group): New.
6634 (frame_apply_command_count): Process options with
6635 gdb::option::process_options.
6636 (frame_apply_completer): New.
6637 (frame_apply_level_completer, frame_apply_all_completer)
6638 (frame_apply_completer): New.
6639 (_initialize_stack): Update help of "frame apply", "frame apply
6640 level", "frame apply all" and "faas" to mention supported options
6641 and install command completers.
6642 * stack.h (frame_apply_all_completer): Declare.
6643 * thread.c: Include "stack.h".
6644 (tfaas_command): Add "--".
6645 (_initialize_thread): Update help "tfaas" to mention supported
6646 options and install command completer.
6647
272d4594
PA
66482019-06-13 Pedro Alves <palves@redhat.com>
6649
6650 * completer.c (complete_nested_command_line): New.
6651 (gdb_completion_word_break_characters_throw): Add assertion.
6652 * completer.h (complete_nested_command_line): Declare.
6653
90a1ef87
PA
66542019-06-13 Pedro Alves <palves@redhat.com>
6655
6656 * stack.c (parse_backtrace_qualifiers): New.
6657 (backtrace_command): Use it.
6658 (backtrace_command_completer): Complete on qualifiers.
6659
d4c16835
PA
66602019-06-13 Pedro Alves <palves@redhat.com>
6661
6662 * frame.c: Include "cli/cli-option.h.
6663 (user_set_backtrace_options): New.
6664 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6665 Delete.
6666 (get_prev_frame): Adjust.
6667 (boolean_option_def, uinteger_option_def)
6668 (set_backtrace_option_defs): New.
6669 (_initialize_frame): Adjust and use
6670 gdb::option::add_setshow_cmds_for_options to install "set
6671 backtrace past-main" and "set backtrace past-entry".
6672 * frame.h: Include "cli/cli-option.h".
6673 (struct frame_print_options): Forward declare.
6674 (print_frame_arguments_all, print_frame_arguments_scalars)
6675 (print_frame_arguments_none): Declare.
6676 (print_entry_values): Delete declaration.
6677 (struct frame_print_options, user_frame_print_options): New.
6678 (struct set_backtrace_options): New.
6679 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6680 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6681 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6682 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6683 (list_args_or_locals): Add frame_print_options parameter.
6684 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6685 * python/py-framefilter.c (enumerate_args): Pass down
6686 USER_FRAME_PRINT_OPTIONS.
6687 * stack.c: Include "cli/cli-option.h".
6688 (print_frame_arguments_all, print_frame_arguments_scalars)
6689 (print_frame_arguments_none): Declare.
6690 (print_raw_frame_arguments, print_entry_values): Delete.
6691 (user_frame_print_options): New.
6692 (boolean_option_def, enum_option_def, frame_print_option_defs):
6693 New.
6694 (struct backtrace_cmd_options): New.
6695 (bt_flag_option_def): New.
6696 (backtrace_command_option_defs): New.
6697 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6698 (print_frame_arg, read_frame_arg, print_frame_args)
6699 (print_frame_info, print_frame): Add frame_print_options parameter
6700 and use it.
6701 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6702 (backtrace_command_1): Add frame_print_options and
6703 backtrace_cmd_options parameters and use them.
6704 (make_backtrace_options_def_group): New.
6705 (backtrace_command): Process command options with
6706 gdb::option::process_options.
6707 (backtrace_command_completer): New.
6708 (_initialize_stack): Extend "backtrace"'s help to mention
6709 supported options. Install completer for "backtrace".
6710 Install some settings commands with add_setshow_cmds_for_options.
6711
2daf894e
PA
67122019-06-13 Pedro Alves <palves@redhat.com>
6713
6714 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6715 and that "set/show print raw frame-arguments" are now deprecated.
6716
6717 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6718 command.
6719 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6720 * stack.c (_initialize_stack): Install "set/show print
6721 raw-frame-arguments", and deprecate "set/show print raw
6722 frame-arguments".
6723 * valprint.c (_initialize_valprint): Deprecate "set/show print
6724 raw".
6725
e6ed716c
PA
67262019-06-13 Pedro Alves <palves@redhat.com>
6727
6728 * compile/compile.c (struct compile_options): New.
6729 (compile_flag_option_def, compile_command_option_defs)
6730 (make_compile_options_def_group): New.
6731 (compile_file_command): Handle options with
6732 gdb::option::process_options.
6733 (compile_file_command_completer): New function.
6734 (compile_code_command): Handle options with
6735 gdb::option::process_options.
6736 (compile_code_command_completer): New function.
6737 (_initialize_compiler): Install completers for "compile code" and
6738 "compile file". Mention available options in "compile code" and
6739 "compile code"'s help.
6740 * completer.c (advance_to_completion_word): New, factored out from
6741 ...
6742 (advance_to_expression_complete_word_point): ... this.
6743 (advance_to_filename_complete_word_point): New.
6744 * completer.h (advance_to_filename_complete_word_point): New
6745 declaration.
6746
7d8062de
PA
67472019-06-13 Pedro Alves <palves@redhat.com>
6748
6749 * compile/compile.c: Include "cli/cli-option.h".
6750 (compile_print_value): Scope data pointer is now a
6751 value_print_options pointer; adjust.
6752 (compile_print_command): Process options. Scope data pointer is
6753 now a value_print_options pointer; adjust.
6754 (_initialize_compile): Update "compile print"'s help to include
6755 supported options. Install a completer for "compile print".
6756 * cp-valprint.c (show_vtblprint, show_objectprint)
6757 (show_static_field_print): Delete.
6758 (_initialize_cp_valprint): Don't install "set print
6759 static-members", "set print vtbl", "set print object" here.
6760 * printcmd.c: Include "cli/cli-option.h" and
6761 "common/gdb_optional.h".
6762 (print_command_parse_format): Rework to fill in a
6763 value_print_options instead of a format_data.
6764 (print_value): Change parameter type from format_data pointer to
6765 value_print_options reference. Adjust.
6766 (print_command_1): Process options. Adjust to pass down a
6767 value_print_options.
6768 (print_command_completer): New.
6769 (_initialize_printcmd): Install print_command_completer as
6770 handle_brkchars completer for the "print" command. Update
6771 "print"'s help to include supported options.
6772 * valprint.c: Include "cli/cli-option.h".
6773 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6774 here from cp-valprint.c.
6775 (boolean_option_def, uinteger_option_def)
6776 (value_print_option_defs, make_value_print_options_def_group):
6777 New. Use gdb::option::add_setshow_cmds_for_options to install
6778 "set print elements", "set print null-stop", "set print repeats",
6779 "set print pretty", "set print union", "set print array", "set
6780 print address", "set print symbol", "set print array-indexes".
6781 * valprint.h: Include <string> and "cli/cli-option.h".
6782 (make_value_print_options_def_group): Declare.
6783 (print_value): Change parameter type from format_data pointer to
6784 value_print_options reference.
6785 (print_command_completer): Declare.
6786
9d0faba9
PA
67872019-06-13 Pedro Alves <palves@redhat.com>
6788
6789 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6790 (COMMON_SFILES): Add maint-test-settings.c.
6791 * cli/cli-decode.c (boolean_enums): New global, factored out from
6792 ...
6793 (add_setshow_boolean_cmd): ... here.
6794 * cli/cli-decode.h (boolean_enums): Declare.
6795 * cli/cli-option.c: New file.
6796 * cli/cli-option.h: New file.
6797 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6798 factored out from ...
6799 (parse_cli_boolean_value(const char *)): ... this.
6800 (is_unlimited_literal): Change parameter type to pointer to
6801 pointer. Adjust and advance ARG pointer.
6802 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6803 (parse_cli_var_enum): New, factored out from ...
6804 (do_set_command): ... this. Adjust.
6805 * cli/cli-setshow.h (parse_cli_boolean_value)
6806 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6807 (parse_cli_var_enum): Declare.
6808 * cli/cli-utils.c: Include "cli/cli-option.h".
6809 (get_ulongest): New.
6810 * cli/cli-utils.h (get_ulongest): Declare.
6811 (check_for_argument): New overloads.
6812 * maint-test-options.c: New file.
6813
2c722807
PA
68142019-06-13 Pedro Alves <palves@redhat.com>
6815
6816 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6817 parse a range if "-" is at the end of the string.
6818
dee7b4c8
PA
68192019-06-13 Pedro Alves <palves@redhat.com>
6820
6821 * cli/cli-setshow.c (parse_auto_binary_operation)
6822 (parse_cli_boolean_value): Don't allow "o".
6823
dca0f6c0
PA
68242019-06-13 Pedro Alves <palves@redhat.com>
6825
6826 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6827 * NEWS: Mention maint test-settings KIND.
6828 * maint-test-settings.c: New file.
6829
597bf39d
PA
68302019-06-13 Pedro Alves <palves@redhat.com>
6831
6832 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6833 completer.
6834 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6835 "set" completers.
6836
48c410fb
PA
68372019-06-13 Pedro Alves <palves@redhat.com>
6838
6839 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6840 after item.
6841
93bcb043
PA
68422019-06-13 Pedro Alves <palves@redhat.com>
6843
6844 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6845
cbba3ecd
PA
68462019-06-13 Pedro Alves <palves@redhat.com>
6847
6848 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6849 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6850 call.
6851 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6852 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6853 calls.
6854 (check_for_argument): Skip spaces after argument.
6855
b9a3f842
PA
68562019-06-13 Pedro Alves <palves@redhat.com>
6857
6858 * thread.c (thread_apply_command): Adjust TID parsing.
6859 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6860 detected before end of string.
6861 (tid_is_in_list): Error out if LIST is invalid.
6862
3844e605
PA
68632019-06-13 Pedro Alves <palves@redhat.com>
6864
6865 * completer.c (complete_line_internal_1): Rewind completion word
6866 point.
6867 (completion_tracker::advance_custom_word_point_by): Change
6868 parameter type to int.
6869 * completer.h (completion_tracker::advance_custom_word_point_by):
6870 Likewise.
6871
00b56dbe
PA
68722019-06-13 Pedro Alves <palves@redhat.com>
6873
6874 * completer.c (advance_to_completion_word): Handle delimiters.
6875
d106773e
PA
68762019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6877
6878 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6879
08f10e02
TT
68802019-06-11 Tom Tromey <tom@tromey.com>
6881
6882 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6883 (xmalloc_failed): Move to alloc.c.
6884 * alloc.c: New file.
6885 * Makefile.in (COMMON_SFILES): Add alloc.c.
6886
1c7fe951
TT
68872019-06-11 Tom Tromey <tom@tromey.com>
6888
6889 * nat/linux-waitpid.c: Don't include server.h.
6890 (linux_debug): Remove.
6891 (my_waitpid): Update.
6892
89549d7f
TT
68932019-06-11 Tom Tromey <tromey@adacore.com>
6894
6895 * infcall.c (_initialize_infcall): Remove trailing newline from
6896 help.
6897 * user-regs.c (_initialize_user_regs): Remove trailing newline
6898 from help.
6899 * typeprint.c (_initialize_typeprint): Remove trailing newline
6900 from help.
6901 * reverse.c (_initialize_reverse): Remove trailing newlines from
6902 help.
6903 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6904 from help.
6905 * language.c (add_set_language_command): Remove trailing newline
6906 from help.
6907 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6908 help.
6909 * disasm.c (_initialize_disasm): Remove trailing newline from
6910 help.
6911 * top.c (init_main): Remove trailing newline from help.
6912 * interps.c (_initialize_interpreter): Remove trailing newline
6913 from help.
6914 * btrace.c (_initialize_btrace): Remove trailing newlines from
6915 help.
6916 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6917 from help.
6918 * python/python.c (_initialize_python): Remove trailing newline
6919 from help.
6920 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6921 help.
6922 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6923 from help. Reformat some text.
6924 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6925 from help.
6926 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6927 newline from help.
6928
86108c13
TT
69292019-06-11 Tom Tromey <tromey@adacore.com>
6930
6931 * darwin-nat.c (darwin_decode_exception_message)
6932 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6933
a7067863
AB
69342019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6935
6936 * valops.c (value_slice): Check for not allocated or not
6937 associated values.
6938
9ab08412
TV
69392019-06-10 Tom de Vries <tdevries@suse.de>
6940
6941 PR gdb/24618
6942 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6943 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6944 invalid.
6945
f19e22e9
TV
69462019-06-10 Tom de Vries <tdevries@suse.de>
6947
6948 PR gdb/24611
6949 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6950 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6951
e99f9db0
TV
69522019-06-10 Tom de Vries <tdevries@suse.de>
6953
6954 PR symtab/24545
6955 * symtab.c (struct demangled_name_entry): Add language field.
6956 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6957 static minimal symbol". Set and use language field.
6958
9bf7038b
TT
69592019-06-10 Tom Tromey <tromey@adacore.com>
6960
6961 * ada-lang.c (_initialize_ada_language): Update help text.
6962
422186a9
TT
69632019-06-10 Tom Tromey <tromey@adacore.com>
6964
6965 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6966 with a newline.
6967 * guile/guile.c (handle_boot_error): Don't end warning with a
6968 newline.
6969 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6970 warning with a newline.
6971 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6972 newline.
6973 (s12z_frame_cache): Likewise.
6974 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6975 a newline.
6976 * solib-svr4.c (disable_probes_interface): Don't end warning with
6977 a newline.
6978 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6979 newline.
6980 * python/python.c (do_finish_initialization): Don't end warning
6981 with a newline.
6982
25ce02ee
TT
69832019-06-10 Tom Tromey <tom@tromey.com>
6984
6985 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6986 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6987 gdbpy_enter.
6988
caa429d8
TT
69892019-06-10 Tom Tromey <tromey@adacore.com>
6990
6991 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6992 data.
6993 (elf_new_init): Don't call stabsread_new_init.
6994 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6995 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6996 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6997
81873cc8
TV
69982019-06-10 Tom de Vries <tdevries@suse.de>
6999
7000 PR symtab/16264
7001 PR symtab/24517
7002 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7003
4fa0265e
РИ
70042019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7005
7006 * source.c (find_and_open_source): Also rewrite relative file
7007 names.
7008
1a3da2cd
AB
70092019-04-26 Amos Bird <amosbird@gmail.com>
7010
7011 * annotate.c (annotate_thread_exited): Add "thread-exited"
7012 annotation.
7013
3847a7bf
TT
70142019-06-06 Tom Tromey <tromey@adacore.com>
7015
7016 * maint.h (class scoped_command_stats): Use
7017 DISABLE_COPY_AND_ASSIGN.
7018 <print_time>: New method.
7019 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7020 print_time.
7021 (scoped_command_stats::print_time): New method.
7022
312617a3
AB
70232019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7024
7025 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7026 instructions of lengths 6 or 8 bytes.
7027
b02f78f9
PA
70282019-06-04 Pedro Alves <palves@redhat.com>
7029
7030 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7031
7032 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7033 * breakpoint.c (condition_completer): Likewise.
7034 * cli/cli-dump.c (scan_expression): Likewise.
7035 * common/filestuff.c (mkdir_recursive): Likewise.
7036 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7037 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7038 (gdb_abspath): Likewise.
7039 * compile/compile-cplus-types.c
7040 (compile_cplus_instance::decl_name): Likewise.
7041 * completer.c (complete_explicit_location):
7042 (signal_completer, reg_or_group_completer_1): Likewise.
7043 * cp-support.c (cp_remove_params_if_any): Likewise.
7044 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7045 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7046 * infcmd.c (strip_bg_char): Likewise.
7047 * linespec.c (copy_token_string): Likewise.
7048 * mi/mi-main.c (output_cores): Likewise.
7049 * psymtab.c (psymtab_search_name):
7050 * symfile.c (test_set_ext_lang_command): Likewise.
7051 * target.c (target_fileio_read_stralloc): Likewise.
7052 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7053 * value.c (complete_internalvar): Likewise.
7054
e1f2e1a2
CB
70552019-06-04 Christian Biesinger <cbiesinger@google.com>
7056
7057 Add objfile property to gdb.Type.
d3238f7d
PA
7058 * NEWS: Mention Python API addition.
7059 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 7060
e664d728
PW
70612019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7062
7063 * NEWS: Mention the new set|show style [title|highlight].
7064 Mention changes to "show style", "help" and "apropos".
7065
66d8c862
PW
70662019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7067
7068 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7069 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7070 instead of print_help_for_command.
7071 (print_doc_of_command): New function.
7072 (help_list): Add 'apropos -v word' suggestion.
7073 (print_help_for_command): Style the command name using title style.
7074 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7075 (_initialize_cli_cmds): Describe -v in apropos_command help.
7076
9303eb2f
PW
70772019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7078
7079 * cli/cli-style.h (cli_style_option): Add name in constructor,
7080 add m_name class member, add constructor with intensity,
7081 add name class function.
7082 (cli_style_option::add_setshow_commands): Remove name argument.
7083 (highlight_style, title_style): New styles.
7084 * cli/cli-style.c (do_show): New function that shows a style
7085 characteristic styling the style name with itself.
7086 (set_style_name): New function.
7087 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7088 Update all callers according to the changes in cli/cli-style.h.
7089 * utils.h (fputs_highlighted): New function.
7090 * utils.c (fputs_highlighted): Likewise.
7091
e2c52041
PW
70922019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7093
7094 * NEWS: Mention new pipe command and new convenience variables.
7095
947d3946
PW
70962019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7097
7098 * cli/cli-cmds.c (pipe_command): New function.
7099 (_initialize_cli_cmds): Call add_com for pipe_command.
7100 Define | as an alias for pipe.
7101 (exit_status_set_internal_vars): New function.
7102 (shell_escape): Call exit_status_set_internal_vars.
7103 cli/cli-decode.c (find_command_name_length): Recognize | as
7104 a single character command.
7105
b8fd0918
PW
71062019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7107
7108 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7109 top.c (execute_command_to_ui_file): New function, mostly a copy
7110 of execute_command_to_string.
7111 (execute_command_to_string): Implement by calling
7112 execute_command_to_ui_file.
7113
68bb5386
PW
71142019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7115
7116 * top.h (saved_command_line): Remove declaration.
7117 * top.c (previous_saved_command_line, previous_repeat_arguments):
7118 New variables.
7119 (saved_command_line): Make static, define together with other
7120 'repeat variables'.
7121 (dont_repeat): Clear repeat_arguments.
7122 (repeat_previous, get_saved_command_line, save_command_line):
7123 New functions.
7124 (gdb_init): Initialize saved_command_line
7125 and previous_saved_command_line.
7126 * main.c (captured_main_1): Remove saved_command_line initialization.
7127 * event-top.c (handle_line_of_input): Update to use
7128 the new 'repeat' related functions instead of direct access to
7129 saved_command_line.
7130 * command.h (repeat_previous, get_saved_command_line,
7131 save_command_line): New declarations.
7132 (dont_repeat): Add comment.
7133
bfcdb852
TT
71342019-05-30 Tom Tromey <tromey@adacore.com>
7135
7136 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7137 Fix comment.
7138 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7139
0ef209f2
JV
71402019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7141
7142 PR cli/24587
7143 * completer.c (complete): Initialize variable word.
7144
955b06fa
SDJ
71452019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7146
7147 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7148 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7149 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7150 'body' is NULL to the outter 'if', protecting the '!is_define'
7151 situation as well.
7152
fa9c3fa0
TT
71532019-05-29 Tom Tromey <tromey@adacore.com>
7154
7155 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7156 (dwarf_unknown): New function.
7157 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7158 (dwarf_type_encoding_name): Use dwarf_unknown.
7159
4330d61d
TT
71602019-05-29 Tom Tromey <tromey@adacore.com>
7161
7162 PR c++/20020:
7163 * cp-valprint.c (cp_print_value_fields): Call
7164 cp_print_static_field inside "try".
7165
33a6bc35
TT
71662019-05-29 Tom Tromey <tromey@adacore.com>
7167
7168 * inflow.c (struct terminal_info): Add default operator=.
7169 * configure: Rebuild.
7170 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7171 -Wdeprecated-copy-dtor, -Wredundant-move.
7172
000439d5
TT
71732019-05-29 Tom Tromey <tromey@adacore.com>
7174
7175 * NEWS: Add entry.
7176 * infcmd.c (print_return_value_1): Handle finish_print
7177 option.
7178 (show_print_finish): New function.
7179 (_initialize_infcmd): Add "set/show print finish" commands.
7180 * valprint.c (user_print_options): Initialize new member.
7181 * valprint.h (struct value_print_options) <finish_print>: New
7182 member.
7183
c0e70c62
TT
71842019-05-28 Tom Tromey <tromey@adacore.com>
7185
7186 * ada-lang.c (ada_remove_Xbn_suffix)
7187 (find_old_style_renaming_symbol)
7188 (parse_old_style_renaming): Remove.
7189 (ada_find_renaming_symbol): Don't call
7190 find_old_style_renaming_symbol.
7191 (ada_is_renaming_symbol): Rename from
7192 ada_find_renaming_symbol. Remove "block" parameter. Return
7193 bool. Now static.
7194 (ada_read_var_value): Update and simplify.
7195 * ada-exp.y (write_var_or_type): Remove old code.
7196
766f8836
AH
71972019-05-28 Alan Hayward <alan.hayward@arm.com>
7198
68255adc 7199 PR gdb/25010
766f8836
AH
7200 * event-top.c: Remove include comment.
7201 * inflow.c (class scoped_ignore_sigttou): Move from here...
7202 * inflow.h (class scoped_ignore_sigttou): ...to here.
7203 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7204 * top.c: Remove include comment.
7205
eb41253a
TT
72062019-05-27 Tom Tromey <tom@tromey.com>
7207
7208 * NEWS: Fix typo.
7209
4ca51187
TT
72102019-05-22 Tom Tromey <tromey@adacore.com>
7211
7212 * target.c (target_follow_exec): Constify parameter.
7213 * target-delegates.c: Rebuild.
7214 * remote.c (remote_target::follow_exec): Constify parameter.
7215 * infrun.c (follow_exec): Constify parameter.
7216 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7217 (target_follow_exec): Likewise.
7218
8fca4da0
AH
72192019-05-22 Alan Hayward <alan.hayward@arm.com>
7220
7221 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7222 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7223
b7060614
AH
72242019-05-22 Alan Hayward <alan.hayward@arm.com>
7225
7226 * NEWS: Add debugredirect and testsuite sections.
7227
0a5954bd
SC
72282019-05-22 Simon Cook <simon.cook@embecosm.com>
7229
7230 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7231 target descriptions using exclusively floating point register name
7232 aliases.
7233
dc42e902
AB
72342019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7235
7236 PR gdb/18644:
7237 * f-lang.c (build_fortran_types): Handle the case where
7238 gdbarch_floatformat_for_type returns a nullptr.
7239
fb7806c7
TV
72402019-05-21 Tom de Vries <tdevries@suse.de>
7241
7242 PR cli/24587
7243 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7244
34d11c68
AB
72452019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7246
7247 PR gdb/18644:
7248 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7249 16-byte floats.
7250 * i386-tdep.c (i386_floatformat_for_type): Use
7251 floatformats_ia64_quad for the 16-byte floating point component
7252 within a fortran 32-byte complex number.
7253
122cf0f2
AB
72542019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7255
7256 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7257 delete default constructor.
7258 (find_partial_die): Update to return const struct.
7259 (partial_die_parent_scope): Move variable declaration into scope
7260 of its use and change its type to auto.
7261 (guess_partial_die_structure_name): Likewise.
7262 (partial_die_info::fixup): Likewise.
7263
33d0e35a
TT
72642019-05-17 Tom Tromey <tromey@adacore.com>
7265
7266 * source.c (find_and_open_source): Remove cast.
7267
a45575b0
TT
72682019-05-17 Tom Tromey <tromey@adacore.com>
7269
7270 * annotate.c (annotate_source): Make "filename" const.
7271 * annotate.h (annotate_source): Use const.
7272
81f47ac2
AH
72732019-05-17 Alan Hayward <alan.hayward@arm.com>
7274
7275 * disasm.c (set_disassembler_options): Send errors to stderr.
7276
ca1285d1
AH
72772019-05-17 Alan Hayward <alan.hayward@arm.com>
7278
7279 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7280 (cli_interp_base::set_logging): Check debug_redirect.
7281 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7282 * cli/cli-logging.c (debug_redirect): Add static variable.
7283 (pop_output_files): Add default param.
7284 (handle_redirections): Print debug setting.
7285 (show_logging_command): Likewise.
7286 (_initialize_cli_logging): Add debugredirect command.
7287 * interps.c (current_interp_set_logging): Add debug_redirect
7288 parameter.
7289 * interps.h (set_logging): Add debug_redirect parameter.
7290 (current_interp_set_logging): Likewise.
7291 * mi/mi-common.h: Likewise.
7292 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7293
72942019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
7295 Tom Tromey <tromey@adacore.com>
7296
7297 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7298 directly.
7299 * cli/cli-interp.h (make_logging_output): Remove declaration.
7300 * cli/cli-logging.c (make_logging_output): Remove function.
7301 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7302 directly.
7303 * ui-file.c (tee_file::tee_file): Remove bools.
7304 (tee_file::~tee_file): Remove deletes.
7305 * ui-file.h (tee_file): Remove bools.
7306
26648588
JV
73072019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7308
7309 * mi/mi-cmds.h (mi_cmd_complete): New function.
7310 * mi/mi-main.c (mi_cmd_complete): Likewise.
7311 * mi/mi-cmds.c: Define new MI command -complete.
7312 * NEWS: Mention new -complete command.
7313
6e035501
JV
73142019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7315
7316 * completer.h (complete): New function.
7317 * completer.c (complete): Likewise.
7318 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7319 function defined in completer.h.
7320
7d0e2ece
JV
73212019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7322
e79be6e5 7323 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 7324
fb816e8b
TV
73252019-05-17 Tom de Vries <tdevries@suse.de>
7326
7327 PR gdb/24094
7328 * dwarf2read.c (struct cu_partial_die_info): New struct.
7329 (find_partial_die): Return cu_partial_die_info.
7330 (partial_die_parent_scope, guess_partial_die_structure_name)
7331 (partial_die_info::fixup): Handle new return type of find_partial_die.
7332
677052f2
SDJ
73332019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7334
a1726c38 7335 PR breakpoints/24541
677052f2
SDJ
7336 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7337 "std::string", simplifying the algorithm.
7338
f3da9116
SDJ
73392019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7340
7341 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7342 (stap_static_probe_ops::get_probes): Likewise.
7343
f1bb75ab
SDJ
73442019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7345
7346 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7347 '-')" and "else if".
7348 (stap_parse_single_operand): Join checks for
7349 "gdbarch_stap_parse_special_token_p" and
7350 "gdbarch_stap_parse_special_token" in the same "if" statement.
7351 Invert check when verifying for operation on register
7352 displacement.
7353
3ca58cde
SDJ
73542019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7355
7356 * stap-probe.c (stap_get_opcode): Update comment.
7357 (stap_get_expected_argument_type): Likewise.
7358 (handle_stap_probe): Likewise.
7359
af2d9bee
SDJ
73602019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7361
7362 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7363 return type to 'bool'. Adjust comment. Use 'bool' when
7364 appropriate.
7365 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7366 * stap-probe.c (stap_parse_argument_1): Likewise.
7367 (stap_is_operator): Likewise.
7368 (stap_is_generic_prefix): Likewise.
7369 (stap_is_register_prefix): Likewise.
7370 (stap_is_register_indirection_prefix): Likewise.
7371 (stap_is_integer_prefix): Likewise.
7372 (stap_generic_check_suffix): Likewise.
7373 (stap_check_integer_suffix): Likewise.
7374 (stap_check_register_suffix): Likewise.
7375 (stap_check_register_indirection_suffix): Likewise.
7376 (stap_parse_register_operand): Likewise.
7377 (stap_parse_single_operand): Likewise.
7378 (stap_parse_argument_1): Likewise.
7379 (stap_probe::get_argument_count): Likewise.
7380 (stap_is_operator): Likewise.
7381
61c9c421
TT
73822019-05-16 Tom Tromey <tromey@adacore.com>
7383
7384 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7385 keyword to foreach.
7386
9ddc1af1
SM
73872019-05-15 Simon Marchi <simon.marchi@efficios.com>
7388
7389 * linux-thread-db.c (try_thread_db_load_1): Change return type
7390 to bool.
7391 (try_thread_db_load): Likewise.
7392 (try_thread_db_load_from_pdir_1): Likewise.
7393 (try_thread_db_load_from_pdir): Likewise.
7394 (try_thread_db_load_from_sdir): Likewise.
7395 (try_thread_db_load_from_dir): Likewise.
7396 (thread_db_load_search): Likewise.
7397 (has_libpthread): Likewise.
7398 (thread_db_load): Likewise.
7399
7bede828
SDJ
74002019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7401
7402 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7403 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7404 NULL, and complain/return if that's the case.
7405
c5358db4
JD
74062019-05-15 John Darrington <john@darrington.wattle.id.au>
7407
7408 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7409 (advance, posn, abstract_read_memory): New functions.
7410 [struct mem_read_abstraction]: New struct.
7411 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7412
c408a94f
TT
74132019-05-14 Tom Tromey <tromey@adacore.com>
7414
7415 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7416 value is not lval_memory.
7417
e7bd7fba
TT
74182019-05-14 Tom Tromey <tromey@adacore.com>
7419
7420 * solib.c (info_sharedlibrary_command): Style the file name.
7421
a6d0f249
AH
74222019-05-14 Alan Hayward <alan.hayward@arm.com>
7423
7424 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7425 (aarch64_vnv_type): Likewise.
7426 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7427 * common/tdesc.c: Likewise.
7428 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7429 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7430 * features/aarch64-fpu.xml: Add ieee half view.
7431 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7432 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7433 * gdbtypes.h (struct builtin_type): Likewise.
7434 (struct objfile_type): Likewise.
7435
66b8bb74
SM
74362019-05-12 Paul Naert <paul.naert@polymtl.ca>
7437
7438 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7439 typo.
7440 * location.h (string_to_event_location): Likewise.
7441
21c219fd
JB
74422019-05-11 Joel Brobecker <brobecker@adacore.com>
7443
7444 GDB 8.3 released.
7445
13674803
SM
74462019-05-10 Simon Marchi <simon.marchi@efficios.com>
7447
7448 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7449 New variable declaration.
7450 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7451 New variable.
7452 (print_one_breakpoint): Use ui_out::test_flags and new global
7453 variable to compute use_fixed_output.
7454 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7455 Remove.
7456 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7457 (mi_multi_location_breakpoint_output_fixed): Remove.
7458 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7459 new variable.
7460 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7461 fix_multi_location_breakpoint_output flag if version >= 3.
7462 * ui-out.h (enum ui_out_flag)
7463 <fix_multi_location_breakpoint_output>: New enumerator.
7464
a9eac7f9
SM
74652019-05-10 Simon Marchi <simon.marchi@efficios.com>
7466
7467 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7468
71bed2db
TT
74692019-05-10 Tom Tromey <tromey@adacore.com>
7470
7471 * ada-lang.c (catch_ada_completer): New function.
7472 (_initialize_ada_language): Use it.
7473
24c54127
TT
74742019-05-10 Tom Tromey <tromey@adacore.com>
7475
7476 * thread.c (print_thread_info): Make "requested_threads" const.
7477 * gdbthread.h (print_thread_info): Make "requested_threads"
7478 const.
7479 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7480 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7481
7a102139
TT
74822019-05-08 Tom Tromey <tom@tromey.com>
7483
7484 * gdbtypes.c (objfile_type_data): Change type.
7485 (objfile_type, _initialize_gdbtypes): Update.
7486
924d79e2
TT
74872019-05-08 Tom Tromey <tom@tromey.com>
7488
7489 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7490 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7491 (_initialize_dwarf2_frame): Update.
7492
4c58e337
TT
74932019-05-08 Tom Tromey <tom@tromey.com>
7494
7495 * objc-lang.c (objc_objfile_data): Change type.
7496 (find_methods): Update.
7497 (_initialize_objc_lang): Remove.
7498
d772d2ab
TT
74992019-05-08 Tom Tromey <tom@tromey.com>
7500
7501 * stabsread.c (rs6000_builtin_type_data): Change type.
7502 (rs6000_builtin_type, _initialize_stabsread): Update.
7503
d11d83f4
TT
75042019-05-08 Tom Tromey <tom@tromey.com>
7505
7506 * mips-tdep.c (mips_pdr_data): Remove.
7507 (_initialize_mips_tdep): Update.
7508
9a73f0ad
TT
75092019-05-08 Tom Tromey <tom@tromey.com>
7510
7511 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7512 (hppa_init_objfile_priv_data, read_unwind_info)
7513 (find_unwind_entry, _initialize_hppa_tdep): Update.
7514
8127a2fa
TT
75152019-05-08 Tom Tromey <tom@tromey.com>
7516
7517 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7518 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7519 on obstack.
7520 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7521
91d3055d
TT
75222019-05-08 Tom Tromey <tom@tromey.com>
7523
7524 * mdebugread.c (basic_type_data): Change type.
7525 (basic_type, _initialize_mdebugread): Update.
7526
31930bd3
TT
75272019-05-08 Tom Tromey <tom@tromey.com>
7528
7529 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7530
bdb3ed9e
TT
75312019-05-08 Tom Tromey <tom@tromey.com>
7532
7533 * nto-tdep.c (nto_inferior_data_reg): Change type.
7534 (nto_inferior_data): Update.
7535 (nto_inferior_data_cleanup, nto_new_inferior_data)
7536 (_initialize_nto_tdep): Remove.
7537 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7538
f37b313d
TT
75392019-05-08 Tom Tromey <tom@tromey.com>
7540
7541 * ada-lang.c (struct ada_inferior_data): Add initializers.
7542 (ada_inferior_data): Change type.
7543 (ada_inferior_data_cleanup): Remove.
7544 (get_ada_inferior_data, ada_inferior_exit)
7545 (struct ada_pspace_data): Add initializers, destructor.
7546 (ada_pspace_data_handle): Change type.
7547 (get_ada_pspace_data): Update.
7548 (ada_pspace_data_cleanup): Remove.
7549
24699405
TT
75502019-05-08 Tom Tromey <tom@tromey.com>
7551
7552 * coffread.c (struct coff_symfile_info): Add initializers.
7553 (coff_objfile_data_key): Move lower. Change type.
7554 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7555 Update.
7556 (coff_free_info): Remove.
7557
d4e05d2f
TT
75582019-05-08 Tom Tromey <tom@tromey.com>
7559
7560 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7561 (fbsd_pspace_data_handle): Move lower. Change type.
7562 (get_fbsd_pspace_data): Update.
7563 (fbsd_pspace_data_cleanup): Remove.
7564 (_initialize_fbsd_tdep): Update.
7565
14ef6690
TT
75662019-05-08 Tom Tromey <tom@tromey.com>
7567
7568 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7569 (get_ada_tasks_pspace_data): Update.
7570 (ada_tasks_pspace_data_cleanup): Remove.
7571 (_initialize_tasks): Update.
7572 (ada_tasks_inferior_data_handle): Change type.
7573 (get_ada_tasks_inferior_data): Update.
7574 (ada_tasks_inferior_data_cleanup): Remove.
7575 (struct ada_tasks_pspace_data): Add initializers.
7576
814cf43a
TT
75772019-05-08 Tom Tromey <tom@tromey.com>
7578
7579 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7580 * symfile-debug.c (debug_sym_get_probes): Change type.
7581 * stap-probe.c (handle_stap_probe):
7582 (stap_static_probe_ops::get_probes): Change type.
7583 * probe.h (class static_probe_ops) <get_probes>: Change type.
7584 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7585 (parse_probes_in_pspace): Update.
7586 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7587 Update.
7588 (any_static_probe_ops::get_probes): Change type.
7589 * elfread.c (elfread_data): New typedef.
7590 (probe_key): Change type.
7591 (elf_get_probes): Likewise. Update.
7592 (probe_key_free): Remove.
7593 (_initialize_elfread): Update.
7594 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7595 Change type.
7596 (dtrace_process_dof_probe, dtrace_process_dof)
7597 (dtrace_static_probe_ops::get_probe): Change type.
7598
02dc647e
TT
75992019-05-08 Tom Tromey <tom@tromey.com>
7600
7601 * xcoffread.c (struct xcoff_symfile_info): Rename from
7602 coff_symfile_info. Add initializers.
7603 (xcoff_objfile_data_key): Move lower. Change type.
7604 (XCOFF_DATA): Rewrite.
7605 (xcoff_free_info): Remove.
7606 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7607 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7608 (xcoff_initial_scan): Update.
7609
09232438
TT
76102019-05-08 Tom Tromey <tom@tromey.com>
7611
7612 * solib-svr4.c (struct svr4_info): Add initializers and
7613 destructor.
7614 <probes_table>: Now an htab_up.
7615 (solib_svr4_pspace_data): Change type.
7616 (free_probes_table): Simplify.
7617 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7618 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7619 (probes_table_remove_objfile_probes, register_solib_event_probe)
7620 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7621 (_initialize_svr4_solib): Update.
7622
7b4a314f
TT
76232019-05-08 Tom Tromey <tom@tromey.com>
7624
7625 * remote.c (remote_pspace_data): Change type.
7626 (remote_pspace_data_cleanup): Remove.
7627 (get_remote_exec_file, set_pspace_remote_exec_file)
7628 (_initialize_remote): Update.
7629
51d3063a
TT
76302019-05-08 Tom Tromey <tom@tromey.com>
7631
7632 * breakpoint.c (breakpoint_objfile_key): Change type.
7633 (get_breakpoint_objfile_data): Update.
7634 (free_breakpoint_objfile_data): Remove.
7635 (_initialize_breakpoint): Update.
7636
89fb8848
TT
76372019-05-08 Tom Tromey <tom@tromey.com>
7638
7639 * linux-tdep.c (struct linux_info): Add initializers.
7640 (linux_inferior_data): Move. Change type.
7641 (invalidate_linux_cache_inf): Update.
7642 (linux_inferior_data_cleanup): Remove.
7643 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7644
e9b89e2d
TT
76452019-05-08 Tom Tromey <tom@tromey.com>
7646
7647 * auxv.c (auxv_inferior_data): Move. Change type.
7648 (auxv_inferior_data_cleanup): Remove.
7649 (invalidate_auxv_cache_inf): Rewrite.
7650 (get_auxv_inferior_data, _initialize_auxv): Update.
7651
8c42777c
TT
76522019-05-08 Tom Tromey <tom@tromey.com>
7653
7654 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7655 (symfile_debug_objfile_data_key): Change type.
7656 (symfile_debug_installed, debug_qf_has_symbols)
7657 (debug_qf_find_last_source_symtab)
7658 (debug_qf_forget_cached_source_info)
7659 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7660 (debug_qf_print_stats, debug_qf_dump)
7661 (debug_qf_expand_symtabs_for_function)
7662 (debug_qf_expand_all_symtabs)
7663 (debug_qf_expand_symtabs_with_fullname)
7664 (debug_qf_map_matching_symbols)
7665 (debug_qf_expand_symtabs_matching)
7666 (debug_qf_find_pc_sect_compunit_symtab)
7667 (debug_qf_map_symbol_filenames)
7668 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7669 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7670 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7671 (debug_sym_read_linetable, debug_sym_relocate): Update.
7672 (symfile_debug_free_objfile): Remove.
7673 (install_symfile_debug_logging, _initialize_symfile_debug):
7674 Update.
7675
5bfd760d
TT
76762019-05-08 Tom Tromey <tom@tromey.com>
7677
7678 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7679 allocate_on_obstack.
7680 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7681 (get_dwarf2_per_objfile): Update.
7682 (set_dwarf2_per_objfile): Remove.
7683 (dwarf2_has_info, dwarf2_get_section_info): Update.
7684 (dwarf2_free_objfile): Remove.
7685 (_initialize_dwarf2_read): Update.
7686
e85e19b4
TT
76872019-05-08 Tom Tromey <tom@tromey.com>
7688
7689 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7690 initializers.
7691 <unsupported_script_warning_printed,
7692 script_not_found_warning_printed>: Now bool.
7693 (auto_load_pspace_data): Change type.
7694 (~auto_load_pspace_info): Rename from
7695 auto_load_pspace_data_cleanup.
7696 (get_auto_load_pspace_data, init_loaded_scripts_info)
7697 (clear_section_scripts, maybe_print_unsupported_script_warning)
7698 (maybe_print_script_not_found_warning, _initialize_auto_load):
7699 Update.
7700
f6aa7436
TT
77012019-05-08 Tom Tromey <tom@tromey.com>
7702
7703 * objfiles.c (objfile_pspace_info): Add destructor and
7704 initializers.
7705 (objfiles_pspace_data): Change type.
7706 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7707 (get_objfile_pspace_data): Update.
7708 (objfiles_bfd_data): Change type.
7709 (get_objfile_bfd_data): Update.
7710 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7711
6ae614f6
TT
77122019-05-08 Tom Tromey <tom@tromey.com>
7713
7714 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7715 Change type.
7716 (get_catch_syscall_inferior_data): Update.
7717 (catch_syscall_inferior_data_cleanup): Remove.
7718 (_initialize_break_catch_syscall): Update.
7719
6509b8eb
TT
77202019-05-08 Tom Tromey <tom@tromey.com>
7721
7722 * inflow.c (struct terminal_info): Add destructor and
7723 initializers.
7724 (inflow_inferior_data): Change type.
7725 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7726 (get_inflow_inferior_data, inflow_inferior_exit)
7727 (swap_terminal_info, _initialize_inflow): Update.
7728
35632941
TT
77292019-05-08 Tom Tromey <tom@tromey.com>
7730
7731 * target-dcache.c (target_dcache_cleanup): Remove.
7732 (target_dcache_aspace_key): Change type.
7733 (target_dcache_init_p, target_dcache_invalidate)
7734 (target_dcache_get, target_dcache_get_or_init)
7735 (_initialize_target_dcache): Update.
7736 * dcache.h (struct dcache_deleter): New.
7737
3017b94d
TT
77382019-05-08 Tom Tromey <tom@tromey.com>
7739
7740 * symtab.c (struct symbol_cache): Add destructor and
7741 initializers.
7742 (symbol_cache_key): Move. Change type.
7743 (make_symbol_cache, free_symbol_cache): Remove.
7744 (get_symbol_cache): Update.
7745 (symbol_cache_cleanup): Remove.
7746 (ALL_PSPACES, symbol_cache_flush)
7747 (maintenance_print_symbol_cache)
7748 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7749 Update.
7750
a32ad8c5
TT
77512019-05-08 Tom Tromey <tom@tromey.com>
7752
7753 * symtab.c (struct main_info): Add destructor and initializers.
7754 (main_progspace_key): Move. Change type.
7755 (get_main_info): Update.
7756 (main_info_cleanup): Remove.
7757 (_initialize_symtab): Update.
7758
5f6e90a0
TT
77592019-05-08 Tom Tromey <tom@tromey.com>
7760
7761 * registry.h (DECLARE_REGISTRY): Define the _key class.
7762
1bd0c6e4
AB
77632019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7764
7765 * NEWS: Merge two 'New commands' sections.
7766
2228ef77
XR
77672019-05-08 Joel Brobecker <brobecker@adacore.com>
7768
7769 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7770 parameter and use Ada language definition instead.
7771 (ada_val_print_ptr): Remove unused language parameter.
7772 (ada_val_print_num): Remove language parameter and use Ada language
7773 definition instead.
7774 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7775 parameter.
7776 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7777 parameter and use Ada language definition instead.
7778 (ada_val_print_1): Update all ada_val_print_xxx calls.
7779 Remove language parameter.
7780 (ada_val_print): Update ada_val_print_1 call.
7781
60fcc1c3
TT
77822019-05-08 Tom Tromey <tromey@adacore.com>
7783
7784 * remote.c (remote_hw_watchpoint_limit)
7785 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7786 Now static.
7787
ed2b7c17
TT
77882019-05-08 Tom Tromey <tromey@adacore.com>
7789
7790 * maint.c (_initialize_maint_cmds): Move initialization code to
7791 remote.c.
7792 (watchdog, show_watchdog): Move to remote.c.
7793 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7794 "watchdog" static.
7795 (_initialize_remote): Move initialization code from maint.c.
7796 * defs.h (watchdog): Don't declare.
7797
b0be6c91
TT
77982019-05-08 Tom Tromey <tromey@adacore.com>
7799
7800 * tui/tui-interp.c: Include main.h.
7801 * interps.c: Include main.h.
7802 * main.h (interpreter_p): Declare.
7803 * defs.h (interpreter_p): Don't declare.
7804
587ee17b
TT
78052019-05-08 Tom Tromey <tromey@adacore.com>
7806
7807 * dwarf2loc.c: Include dwarf2read.h.
7808 * defs.h (read_unsigned_leb128): Don't declare.
7809 * dwarf2read.h (read_unsigned_leb128): Declare.
7810
ca1df239
TT
78112019-05-08 Tom Tromey <tromey@adacore.com>
7812
7813 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7814 method.
7815
99f20f08
TT
78162019-05-08 Tom Tromey <tromey@adacore.com>
7817
7818 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7819 when no wrap column is set.
7820
80e55b13
TT
78212019-05-08 Tom Tromey <tromey@adacore.com>
7822
7823 * c-lang.c (c_get_string): Handle non-C-style arrays.
7824
9d3421af
TT
78252019-05-08 Tom Tromey <tromey@adacore.com>
7826
7827 * typeprint.c (print_offset_data::update): Print the bit offset,
7828 not the number of bits remaining.
7829
844333e2
TT
78302019-05-08 Tom Tromey <tromey@adacore.com>
7831
7832 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7833 padding at end of comment.
7834
988915ee
TT
78352019-05-08 Tom Tromey <tromey@adacore.com>
7836
7837 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7838 Compare main types.
7839
26bfd823
TT
78402019-05-06 Tom Tromey <tom@tromey.com>
7841
7842 * common/scoped_mmap.c: Include common-defs.h.
7843 * common/scoped_mmap.h: Don't include config.h.
7844
89055eaa
TT
78452019-05-04 Tom Tromey <tom@tromey.com>
7846
7847 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7848 (struct aarch64_call_info): Add initializers.
7849 <si>: Now a std::vector.
7850 (pass_on_stack, aarch64_push_dummy_call): Update.
7851
5da01df5
TT
78522019-05-04 Simon Marchi <simon.marchi@efficios.com>
7853 Tom Tromey <tom@tromey.com>
7854
7855 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7856 (ppc_threads): Now a std::vector. Now static.
7857 (hwdebug_find_thread_points_by_tid)
7858 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7859 Update.
7860
fbdf05a1
TT
78612019-05-04 Tom Tromey <tom@tromey.com>
7862
7863 * arc-tdep.c (arc_tdesc_init): Return bool.
7864
06d16ec9
TT
78652019-05-04 Tom Tromey <tom@tromey.com>
7866
7867 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7868 Use gdb_assert_not_reached.
7869
9c056022
TT
78702019-05-04 Tom Tromey <tom@tromey.com>
7871
7872 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7873 "false".
7874
fa9c2a59
TT
78752019-05-04 Tom Tromey <tom@tromey.com>
7876
7877 * arc-tdep.c (arc_tdesc_init): Use bool.
7878
e2eb806a
TT
78792019-05-04 Tom Tromey <tom@tromey.com>
7880
7881 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7882
6fe87677
TT
78832019-05-04 Tom Tromey <tom@tromey.com>
7884
7885 * cli/cli-cmds.c (valid_command_p): Return bool.
7886
7f008c9e
TT
78872019-05-04 Tom Tromey <tom@tromey.com>
7888
7889 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7890 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7891
b6484282
RT
78922019-05-04 Raul Tambre <raul@tambre.ee>
7893
7894 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7895 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7896 operator for comparison.
7897
af97b416
TT
78982019-05-04 Tom Tromey <tom@tromey.com>
7899
7900 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7901 (lookup_partial_symbol, print_partial_symbols)
7902 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7903 (psymbol_compare): Update.
7904 (add_psymbol_to_bcache): Clear the entire psymbol.
7905 (maintenance_check_psymtabs): Update.
7906 * psympriv.h (struct partial_symbol): Don't derive from
7907 general_symbol_info.
7908 <obj_section, unrelocated_address, address,
7909 set_unrelocated_address>: Update.
7910 <ginfo>: New member.
7911 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7912 (debug_names::write_psymbols): Update.
7913
9d6d4be8
TV
79142019-05-04 Tom de Vries <tdevries@suse.de>
7915
7916 * contrib/cc-with-tweaks.sh: Support -n arg.
7917
66452beb
PW
79182019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7919
7920 * corelow.c (core_target::detach): Ensure frame cache and
7921 register caches are cleared.
7922 inferior.c (exit_inferior_1): Likewise.
7923
bde09ab7
TT
79242019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7925 Tom Tromey <tom@tromey.com>
7926
7927 * dictionary.c (collate_pending_symbols_by_language): Remove
7928 "struct" from foreach.
7929 * symtab.c (lookup_global_symbol_from_objfile)
7930 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7931 foreach.
7932 * ser-tcp.c (net_open): Remove "struct" from foreach.
7933 * objfiles.c (objfile_relocate, objfile_rebase)
7934 (objfile_has_symbols): Remove "struct" from foreach.
7935 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7936 from foreach.
7937 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7938 foreach.
7939 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7940 "struct" from foreach.
7941 * ada-lang.c (create_excep_cond_exprs)
7942 (ada_exception_catchpoint_cond_string): Remove "struct" from
7943 foreach.
7944
222a8d25
TT
79452019-05-03 Tom Tromey <tromey@adacore.com>
7946
7947 * ada-exp.y (convert_char_literal): Check suffix of each
7948 enumerator.
7949
fcd60b84
DP
79502019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7951
7952 PR ada/21406:
7953 * ada-exp.y (yywrap): Don't define.
7954 * ada-lex.l (%option): Add noyywrap
7955 (yywrap): Remove.
7956
5f2459c2
EZ
79572019-05-03 Eli Zaretskii <eliz@gnu.org>
7958
353ea2d1
EZ
7959 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7960 _WIN32_WINNT to the XP level, unless already defined to a higher
7961 level.
7962
7963 * unittests/parse-connection-spec-selftests.c:
7964 * ser-tcp.c:
7965 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7966 override.
7967
5f2459c2
EZ
7968 * symfile.c (find_separate_debug_file): Remove colon from the
7969 drive spec of DOS/Windows file names of the target, so that the
7970 file name produced from DEBUGDIR and the target's directory will
7971 be valid on DOS/Windows systems.
7972
80062eb9
AB
79732019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7974
7975 * rust-lang.c (val_print_struct): Handle printing structures
7976 containing strings.
7977
b8c05e85
TT
79782019-05-02 Tom Tromey <tromey@adacore.com>
7979
7980 * valarith.c (_initialize_valarith): Remove.
7981
4504bbde
TT
79822019-05-01 Tom Tromey <tromey@adacore.com>
7983
7984 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7985 bitfields.
7986
d48e62f4
TT
79872019-05-01 Tom Tromey <tromey@adacore.com>
7988
7989 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7990 for big-endian copies.
7991
15f18d14
AT
79922019-04-30 Ali Tamur <tamur@google.com>
7993 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7994 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7995 (read_3_bytes): New function.
7996
ab4ee614
JB
79972019-04-30 Joel Brobecker <brobecker@adacore.com>
7998
7999 * windows-nat.c (main_thread_id): Delete.
8000 (handle_output_debug_string): Replace main_thread_id by
8001 current_event.dwThreadId.
8002 (fake_create_process): Likewise.
8003 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8004 Do not set main_thread_id.
8005 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8006 current_event.dwThreadId.
8007 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8008
8ed5b76e
JB
80092019-04-30 Joel Brobecker <brobecker@adacore.com>
8010
8011 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8012 Use current_event.dwThreadId instead of main_thread_id.
8013
2ff0a947
TT
80142019-04-30 Tom Tromey <tromey@adacore.com>
8015
8016 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8017 (create_excep_cond_exprs): Iterate over program spaces.
8018 (ada_exception_catchpoint_cond_string): Examine all minimal
8019 symbols for exception types.
8020
a776957c
TT
80212019-04-30 Tom Tromey <tromey@adacore.com>
8022
8023 PR c++/24470:
8024 * dwarf2read.c (process_structure_scope): Handle case where type
8025 has template parameters but no symbol was created.
8026
bc68014d
AB
80272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8028 Chris January <chris.january@arm.com>
8029
8030 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8031 qualifier.
8032 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8033
f1fdc960
AB
80342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8035
8036 * f-typeprint.c (f_print_type): Update rules for printing
8037 whitespace.
8038 (f_type_print_varspec_suffix): Likewise.
8039
bf7a4de1
AB
80402019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8041 Chris January <chris.january@arm.com>
8042
8043 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8044 function arguments.
8045
bbe75b9d
AB
80462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8047
8048 * f-lang.c (build_fortran_types): Change name of void type to
8049 lower case.
8050 * f-typeprint.c (f_type_print_base): Print the name of the void
8051 type, rather than a fixed string.
8052 * f-valprint.c (f_decorations): Use lower case void string.
8053
1db455a7
AB
80542019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8055 Chris January <chris.january@arm.com>
8056
8057 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8058 types for Fortran.
8059
b6d03bb2
AB
80602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8061 Chris January <chris.january@arm.com>
8062 David Lecomber <david.lecomber@arm.com>
8063
8064 * f-exp.y (BINOP_INTRINSIC): New token.
8065 (exp): New parser rule handling BINOP_INTRINSIC.
8066 (f77_keywords): Add new builtin procedures.
8067 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8068 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8069 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8070 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8071 (print_unop_subexp_f): New function.
8072 (print_binop_subexp_f): New function.
8073 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8074 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8075 (dump_subexp_body_f): Likewise.
8076 (operator_check_f): Likewise.
8077 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8078 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8079
83228e93
AB
80802019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8083 UNOP_KIND.
8084 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8085 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8086 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8087 (operator_length_f): New fuction.
8088 (print_subexp_f): New function.
8089 (op_name_f): New function.
8090 (dump_subexp_body_f): New function.
8091 (operator_check_f): New function.
8092 (exp_descriptor_f): Replace standard expression handling functions
8093 with new functions.
8094 * gdb/fortran-operator.def: New file.
8095 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8096 * gdb/std-operator.def: Remove UNOP_KIND.
8097
6fdcd7cc
AB
80982019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8099
8100 * std-operator.def: Remove unbalanced, stray double quote
8101 character.
8102
2e62ab40
AB
81032019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8104 Chris January <chris.january@arm.com>
8105 Daniel Everett <daniel.everett@arm.com>
8106 Nick Forrington <nick.forrington@arm.com>
8107 Richard Bunt <richard.bunt@arm.com>
8108
8109 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8110 of depth when printing anonymous structs or unions.
8111 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8112 Don't print either the top-level value, or the children if the
8113 max-depth is exceeded.
8114 (ppscm_print_children): When printing the key of a map, allow one
8115 extra level of depth.
8116 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8117 print either the top-level value, or the children if the max-depth
8118 is exceeded.
8119 (print_children): When printing the key of a map, allow one extra
8120 level of depth.
8121 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8122 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8123 (user_print_options): Initialise max_depth field.
8124 (val_print_scalar_or_string_type_p): New function.
8125 (val_print): Check to see if the max depth has been reached.
8126 (val_print_check_max_depth): Define new function.
8127 (show_print_max_depth): New function.
8128 (_initialize_valprint): Add 'print max-depth' option.
8129 * valprint.h (struct value_print_options) <max_depth>: New field.
8130 (val_print_check_max_depth): Declare new function.
8131 * NEWS: Document new feature.
8132
4be290b2
AB
81332019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8134
8135 * ada-lang.c (ada_language_defn): Initialise new field.
8136 * c-lang.c (c_is_string_type_p): New function.
8137 (c_language_defn): Initialise new field.
8138 (cplus_language_defn): Initialise new field.
8139 (asm_language_defn): Initialise new field.
8140 (minimal_language_defn): Initialise new field.
8141 * c-lang.h (c_is_string_type_p): Declare new function.
8142 * d-lang.c (d_language_defn): Initialise new field.
8143 * f-lang.c (f_is_string_type_p): New function.
8144 (f_language_defn): Initialise new field.
8145 * go-lang.c (go_is_string_type_p): New function.
8146 (go_language_defn): Initialise new field.
8147 * language.c (default_is_string_type_p): New function.
8148 (unknown_language_defn): Initialise new field.
8149 (auto_language_defn): Initialise new field.
8150 * language.h (struct language_defn) <la_is_string_type_p>: New
8151 member variable.
8152 (default_is_string_type_p): Declare new function.
8153 * m2-lang.c (m2_language_defn): Initialise new field.
8154 * objc-lang.c (objc_language_defn): Initialise new field.
8155 * opencl-lang.c (opencl_language_defn): Initialise new field.
8156 * p-lang.c (pascal_is_string_type_p): New function.
8157 (pascal_language_defn): Initialise new field.
8158 * rust-lang.c (rust_is_string_type_p): New function.
8159 (rust_language_defn): Initialise new field.
8160
721b08c6
AB
81612019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8162
8163 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8164 New field.
8165 * ada-lang.c (ada_language_defn): Initialise new field.
8166 * c-lang.c (c_language_defn): Likewise.
8167 (cplus_language_defn): Likewise.
8168 (asm_language_defn): Likewise.
8169 (minimal_language_defn): Likewise.
8170 * d-lang.c (d_language_defn): Likewise.
8171 * f-lang.c (f_language_defn): Likewise.
8172 * go-lang.c (go_language_defn): Likewise.
8173 * language.c (unknown_language_defn): Likewise.
8174 (auto_language_defn): Likewise.
8175 * m2-lang.c (m2_language_defn): Likewise.
8176 * objc-lang.c (objc_language_defn): Likewise.
8177 * opencl-lang.c (opencl_language_defn): Likewise.
8178 * p-lang.c (pascal_language_defn): Likewise.
8179 * rust-lang.c (rust_language_defn): Likewise.
8180
fc913e53
AB
81812019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8182
8183 * ada-lang.c (ada_is_character_type): Change return type to bool.
8184 (ada_is_string_type): Likewise.
8185 * ada-lang.h (ada_is_character_type): Update declaration
8186 (ada_is_string_type): Likewise.
8187
fa731fa0
PW
81882019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8189
8190 Support style in 'frame|thread apply'
8191
8192 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8193 * record.c (record_start, record_stop): Update callers of
8194 execute_command_to_string with false.
8195 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8196 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8197 methods.
8198 (class string_file): New constructor with term_out parameter.
8199 Override methods term_out and can_emit_style_escape. New member
8200 term_out.
8201 (class stdio_file): Override can_emit_style_escape.
8202 (class tee_file): Override term_out and can_emit_style_escape.
8203 * utils.h (can_emit_style_escape): Remove.
8204 * utils.c (can_emit_style_escape): Likewise.
8205 Update all callers of can_emit_style_escape (SOMESTREAM) to
8206 SOMESTREAM->can_emit_style_escape.
8207 * source-cache.c (source_cache::get_source_lines): Likewise.
8208 * stack.c (frame_apply_command_count): Call execute_command_to_string
8209 passing the term_out characteristic of the current gdb_stdout.
8210 * thread.c (thr_try_catch_cmd): Likewise.
8211 * top.c (execute_command_to_string): pass term_out parameter
8212 to construct the string_file for the command output.
8213 * ui-file.c (term_cli_styling): New function (most code moved
8214 from utils.c can_emit_style_escape).
8215 (string_file::string_file, string_file::can_emit_style_escape,
8216 stdio_file::can_emit_style_escape, tee_file::term_out,
8217 tee_file::can_emit_style_escape): New functions.
8218
136afab8
PW
82192019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8220
8221 * NEWS: Mention the new set|show may-call-functions.
8222 * infcall.c (may_call_functions_p): New variable.
8223 (show_may_call_functions_p): New function.
8224 (call_function_by_hand_dummy): Throws an error if not
8225 may-call-functions.
8226 (_initialize_infcall): Call add_setshow_boolean_cmd for
8227 may-call-functions.
8228
725cbb63
KS
82292019-04-25 Keith Seitz <keiths@redhat.com>
8230
8231 PR c++/24367
8232 * cp-support.c (inspect_type): Don't attempt substitutions
8233 of symbol with the same name.
8234
3d1cbb78
TT
82352019-04-25 Tom Tromey <tromey@adacore.com>
8236
8237 PR gdb/24475:
8238 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8239 static.
8240
94aeb44b
TT
82412019-04-25 Tom Tromey <tromey@adacore.com>
8242
8243 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8244 rvalue reference.
8245 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8246 (gdb_xml_parser::parse): Use std::move.
8247 * python/python-internal.h (gdbpy_convert_exception): Take a const
8248 reference.
8249 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8250 std::move.
8251 * python/py-utils.c (gdbpy_convert_exception): Take a const
8252 reference.
8253 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8254 Use std::move.
8255 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8256 Use std::move.
8257 * mi/mi-main.c (mi_print_exception): Take a const reference.
8258 * main.c (handle_command_errors): Take a const reference.
8259 * linespec.c (parse_linespec): Use std::move.
8260 * infcall.c (run_inferior_call): Use std::move.
8261 (call_function_by_hand_dummy): Use std::move.
8262 * exec.c (try_open_exec_file): Use std::move.
8263 * exceptions.h (exception_print, exception_fprintf)
8264 (exception_print_same): Update.
8265 * exceptions.c (print_exception, exception_print)
8266 (exception_fprintf, exception_print_same): Change parameters to
8267 const reference.
8268 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8269 * common/new-op.c: Use std::move.
8270 * common/common-exceptions.h (struct gdb_exception): Add move
8271 constructor.
8272 (struct gdb_exception_error, struct gdb_exception_quit, struct
8273 gdb_quit_bad_alloc): Change constructor to move constructor.
8274 (throw_exception): Change parameter to rvalue reference.
8275 * common/common-exceptions.c (throw_exception): Take rvalue
8276 reference.
8277 * cli/cli-interp.c (safe_execute_command): Use std::move.
8278 * breakpoint.c (insert_bp_location, location_to_sals): Use
8279 std::move.
8280
680d7fd5
TT
82812019-04-25 Tom Tromey <tromey@adacore.com>
8282
8283 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8284 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8285 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8286 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8287 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8288 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8289 guile/scm-value.c: Use unpack.
8290 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8291 gdbscm_gdb_exception.
8292 (gdbscm_throw_gdb_exception): Likewise.
8293 (struct gdbscm_gdb_exception): New.
8294 (unpack): New function.
8295 (gdbscm_wrap): Use unpack.
8296
c6fdd8b2
TT
82972019-04-25 Tom Tromey <tromey@adacore.com>
8298
8299 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8300 (gdb_rl_callback_handler): Use std::move.
8301 * common/common-exceptions.h (struct gdb_exception): Add move
8302 assignment operator.
8303 (throw_exception_sjlj): Change "exception" to const reference.
8304 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8305 (throw_exception_sjlj): Change "exception" to const reference.
8306
cc06b668
TT
83072019-04-25 Tom Tromey <tromey@adacore.com>
8308
8309 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8310 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8311 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8312 Update.
8313 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8314 Update.
8315 * mi/mi-interp.c (mi_interp::exec): Update.
8316 * linespec.c (parse_linespec): Update.
8317 * infcall.c (run_inferior_call): Update.
8318 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8319 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8320 (gdbscm_lookup_global_symbol): Update.
8321 * guile/scm-param.c (gdbscm_parameter_value): Update.
8322 * guile/scm-frame.c (gdbscm_frame_read_register)
8323 (gdbscm_frame_read_var): Update.
8324 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8325 * exec.c (try_open_exec_file): Update.
8326 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8327 (gdb_rl_callback_handler): Update.
8328 * common/common-exceptions.h (exception_none): Don't declare.
8329 * common/common-exceptions.c (exception_none): Don't define.
8330 (struct catcher) <exception>: Update.
8331 * cli/cli-interp.c (safe_execute_command): Update.
8332 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8333
cf532bd1
AT
83342019-04-25 Ali Tamur <tamur@google.com>
8335
8336 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8337 (read_attribute_value): Likewise.
8338 (dwarf2_read_addr_index): Update comment.
8339 (read_str_index): Add DW_FORM_strx.
8340 (dwarf2_string_attr): Likewise.
8341 (dwarf2_const_value_attr): Likewise.
8342 (dump_die_shallow): Likewise.
8343 (dwarf2_fetch_constant_bytes): Likewise.
8344 (skip_form_bytes): Likewise.
8345 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8346
82433e3e
SDJ
83472019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8348
8349 PR corefiles/11608
8350 PR corefiles/18187
8351 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8352 OFFSET. Verify if current mapping contains an ELF header.
8353 (linux_find_memory_regions_full): Adjust call to
8354 dump_mapping_p.
8355
723adb65
SL
83562019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8357 Kang Li <kanglictf@gmail.com>
8358
8359 PR gdb/21600
8360
8361 * dwarf2-frame.c (read_initial_length): Be consistent about using
8362 unsigned representation of length.
8363 (decode_frame_entry_1): Likewise. Check for wraparound of
8364 end pointer as well as buffer overflow.
8365
596179f7
SDJ
83662019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8367
8368 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8369 "vq".
8370
a59240a4
TT
83712019-04-24 Tom Tromey <tromey@adacore.com>
8372
8373 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8374
f872fdbb
AB
83752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8376
8377 * s12z-tdep.c (s12z_unwind_pc): Delete.
8378 (s12z_unwind_sp): Delete.
8379 (s12z_gdbarch_init): Don't register deleted functions with
8380 gdbarch.
8381
b614e6f3
AB
83822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8383
8384 * rl78-tdep.c (rl78_unwind_sp): Delete.
8385 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8386
14faed38
AB
83872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8388
8389 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8390 (xstormy16_unwind_pc): Delete.
8391 (xstormy16_dummy_id): Delete.
8392 (xstormy16_gdbarch_init): Don't register deleted functions with
8393 gdbarch.
8394
541aad8a
AB
83952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8396
8397 * vax-tdep.c (vax_unwind_pc): Delete.
8398 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8399
29222070
AB
84002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8401
8402 * v850-tdep.c (v850_unwind_sp): Delete.
8403 (v850_unwind_pc): Delete.
8404 (v850_dummy_id): Delete.
8405 (v850_gdbarch_init): Don't register deleted functions with
8406 gdbarch.
8407
0f534d76
AB
84082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8409
8410 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8411 (tilegx_unwind_pc): Delete.
8412 (tilegx_unwind_dummy_id): Delete.
8413 (tilegx_gdbarch_init): Don't register deleted functions with
8414 gdbarch.
8415
1ba7b7f9
AB
84162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8417
8418 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8419 (tic6x_dummy_id): Delete.
8420 (tic6x_gdbarch_init): Don't register deleted functions with
8421 gdbarch.
8422
d31f262c
AB
84232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8424
8425 * sparc-tdep.c (sparc_unwind_pc): Delete.
8426 (sparc32_gdbarch_init): Don't register deleted function with
8427 gdbarch.
8428
6d14d64d
AB
84292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8430
8431 * sh-tdep.c (sh_unwind_sp): Delete.
8432 (sh_unwind_pc): Delete.
8433 (sh_dummy_id): Delete.
8434 (sh_gdbarch_init): Don't register deleted functions with
8435 gdbarch.
8436
a40dde9d
AB
84372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8438
8439 * score-tdep.c (score_unwind_sp): Delete.
8440 (score_unwind_pc): Delete.
8441 (score_dummy_id): Delete.
8442 (score_gdbarch_init): Don't register deleted functions with
8443 gdbarch.
8444
47c47d69
AB
84452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8446
8447 * rx-tdep.c (rx_unwind_pc): Delete.
8448 (rx_unwind_sp): Delete.
8449 (rx_dummy_id): Delete.
8450 (rx_gdbarch_init): Don't register deleted functions with
8451 gdbarch. Update comment.
8452
833a4480
AB
84532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8454
8455 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8456 (rs6000_dummy_id): Delete.
8457 (rs6000_gdbarch_init): Don't register deleted functions with
8458 gdbarch.
8459
3f2cef49
AB
84602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8461
8462 * or1k-tdep.c (or1k_dummy_id): Delete.
8463 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8464
96acf884
AB
84652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8466
8467 * nios2-tdep.c (nios2_dummy_id): Delete.
8468 (nios2_unwind_sp): Delete.
8469 (nios2_gdbarch_init): Don't register deleted functions with
8470 gdbarch.
8471
ca0ab0aa
AB
84722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8473
8474 * nds32-tdep.c (nds32_dummy_id): Delete.
8475 (nds32_unwind_pc): Delete.
8476 (nds32_unwind_sp): Delete.
8477 (nds32_gdbarch_init): Don't register deleted functions with
8478 gdbarch.
8479
c8259044
AB
84802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8481
8482 * msp430-tdep.c (msp430_unwind_pc): Delete.
8483 (msp430_unwind_sp): Delete.
8484 (msp430_dummy_id): Delete.
8485 (msp430_gdbarch_init): Don't register deleted functions with
8486 gdbarch.
8487
27f113c8
AB
84882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8489
8490 * moxie-tdep.c (moxie_unwind_sp): Delete.
8491 (moxie_unwind_pc): Delete.
8492 (moxie_dummy_id): Delete.
8493 (moxie_gdbarch_init): Don't register deleted functions with
8494 gdbarch.
8495
aee6c3cd
AB
84962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8497
8498 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8499 (mn10300_unwind_pc): Delete.
8500 (mn10300_unwind_sp): Delete.
8501 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8502 mn10300_unwind_sp.
8503 (mn10300_frame_unwind_init): Don't register deleted functions with
8504 gdbarch.
8505
8e2b5aea
AB
85062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8507
8508 * mep-tdep.c (mep_unwind_pc): Delete.
8509 (mep_unwind_sp): Delete.
8510 (mep_dummy_id): Delete.
8511 (mep_gdbarch_init): Don't register deleted functions with
8512 gdbarch.
8513
43cf3ede
AB
85142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8515
8516 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8517 (m68hc11_unwind_sp): Delete.
8518 (m68hc11_gdbarch_init): Don't register deleted functions with
8519 gdbarch.
8520
5e79b7bb
AB
85212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8522
8523 * m32r-tdep.c (m32r_unwind_sp): Delete.
8524 (m32r_unwind_pc): Delete.
8525 (m32r_dummy_id): Delete.
8526 (m32r_gdbarch_init): Don't register deleted functions with
8527 gdbarch.
8528
89b268d8
AB
85292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8530
8531 * m32c-tdep.c (m32c_unwind_pc): Delete.
8532 (m32c_unwind_sp): Delete.
8533 (m32c_dummy_id): Delete.
8534 (m32c_gdbarch_init): Don't register deleted functions with
8535 gdbarch.
8536
946c28d2
AB
85372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8538
8539 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8540 (lm32_unwind_pc): Delete.
8541 (lm32_dummy_id): Delete.
8542 (lm32_gdbarch_init): Don't register deleted functions with
8543 gdbarch.
8544
bf12844a
AB
85452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8546
8547 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8548 (iq2000_unwind_pc): Delete.
8549 (iq2000_dummy_id): Delete.
8550 (iq2000_gdbarch_init): Don't register deleted functions with
8551 gdbarch.
8552
ecbc06d2
AB
85532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8554
8555 * nds32-tdep.c (nds32_type_align): Delete.
8556 (nds32_push_dummy_call): Use type_align instead.
8557
030197b4
AB
85582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8559
8560 * arm-tdep.c (arm_type_align): Only handle vector override case.
8561 (arm_push_dummy_call): Use type_align.
8562 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8563
b907456c
AB
85642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8565
8566 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8567 case.
8568 (pass_on_stack): Use type_align.
8569 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8570 function.
8571
9e97ba43
TT
85722019-04-23 Tom Tromey <tromey@adacore.com>
8573
8574 * dwarf2read.c (line_header::file_name_at): Remove unused
8575 overload.
8576
6892f601
TV
85772019-04-23 Tom de Vries <tdevries@suse.de>
8578
8579 PR gdb/24438
8580 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8581 invocation.
8582
336d760d
AT
8583
85842019-03-27 Ali Tamur <tamur@google.com>
8585
8586 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8587 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8588 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8589 (dwarf_expr_context::get_addr_index): Likewise
8590 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8591 (symbol_needs_eval_context::get_addr_index): Likewise
8592 (disassemble_dwarf_expression): Add DW_OP_addrx
8593 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8594 (read_cutu_die_from_dwo): Update comment
8595 (skip_one_die): Add DW_FORM_addrx
8596 (read_attribute_value): Likewise
8597 (var_decode_location): Add DW_OP_addrx
8598 (dwarf2_const_value_attr): Add DW_FORM_addrx
8599 (dump_die_shallow): Likewise
8600 (dwarf2_fetch_constant_bytes): Likewise
8601 (decode_locdesc): Add DW_OP_addrx
8602 (skip_form_bytes): Add DW_FORM_addrx
8603
ad9d13f8
AT
86042019-04-22 Ali Tamur <tamur@google.com>
8605
8606 * MAINTAINERS (Write After Approval): Add self.
8607
d70cc3ba
SM
86082019-04-22 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8611 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8612 (open_symbol_file_object): Likewise.
8613 (svr4_default_sos): Add info parameter.
8614 (svr4_read_so_list): Likewise.
8615 (svr4_current_sos_direct): Adjust functions calls to pass down
8616 info.
8617 (svr4_current_sos_1): Add info parameter.
8618 (svr4_current_sos): Call get_svr4_info, pass info down to
8619 svr4_current_sos_1.
8620 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8621 get_svr4_info.
8622 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8623 get_svr4_info.
8624 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8625 to get_svr4_info.
8626 (probes_table_remove_objfile_probes): Likewise.
8627 (register_solib_event_probe): Add info parameter.
8628 (solist_update_incremental): Pass info parameter down to
8629 svr4_read_so_list.
8630 (disable_probes_interface): Add info parameter.
8631 (svr4_handle_solib_event): Pass current_program_space to
8632 get_svr4_info. Adjust disable_probes_interface cleanup.
8633 (svr4_create_probe_breakpoints): Add info parameter, pass it
8634 down to register_solib_event_probe.
8635 (svr4_create_solib_event_breakpoints): Add info parameter,
8636 pass it down to svr4_create_probe_breakpoints.
8637 (enable_break): Pass info down to
8638 svr4_create_solib_event_breakpoints.
8639 (svr4_solib_create_inferior_hook): Pass current_program_space to
8640 get_svr4_info.
8641 (svr4_clear_solib): Likewise.
8642
7905fc35
PA
86432019-04-22 Pedro Alves <palves@redhat.com>
8644
8645 * solib-svr4.c (svr4_free_objfile_observer): New.
8646 (probe_and_action::objfile): New field.
8647 (probes_table_htab_remove_objfile_probes)
8648 (probes_table_remove_objfile_probes): New functions.
8649 (register_solib_event_probe): Add 'objfile' parameter. Store it
8650 in the new probe_and_action. Don't store the probe in 'lookup'.
8651 (svr4_create_probe_breakpoints): Pass objfile to
8652 register_solib_event_probe.
8653 (_initialize_svr4_solib): Register a free_objfile observer.
8654
fb881986
TT
86552019-04-19 Tom Tromey <tom@tromey.com>
8656
8657 * common/queue.h: Remove.
8658
8732db6c
TT
86592019-04-19 Tom Tromey <tom@tromey.com>
8660
8661 * event-loop.c: Don't include "common/queue.h".
8662
97dfbadd
TT
86632019-04-19 Tom Tromey <tom@tromey.com>
8664
8665 * remote.c (remote_target): Use delete.
8666 * remote-notif.h: Include <list>, not "common/queue.h".
8667 (notif_client_p): Remove typedef.
8668 (remote_notif_state): Add constructor, destructor, initializer.
8669 <notif_queue>: Now a std::list.
8670 (remote_notif_state_xfree): Don't declare.
8671 * remote-notif.c (remote_notif_process, handle_notification)
8672 (remote_notif_state_allocate): Update.
8673 (~remote_notif_state): Rename from remote_notif_state_xfree.
8674
cf250e36
TT
86752019-04-19 Tom Tromey <tom@tromey.com>
8676
8677 * symfile.c (reread_symbols): Update.
8678 * objfiles.c (objfile_register_static_link)
8679 (objfile_lookup_static_link): Update
8680 (~objfile) Don't delete static_links.
8681 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8682
61f4b350
TT
86832019-04-19 Tom Tromey <tom@tromey.com>
8684
8685 * type-stack.h (struct type_stack) <insert>: Constify string.
8686 * type-stack.c (type_stack::insert): Constify string.
8687 * gdbtypes.h (lookup_template_type): Update.
8688 (address_space_name_to_int): Update.
8689 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8690 const.
8691 (lookup_template_type): Make name const.
8692 * c-exp.y: Update rules.
8693 (lex_one_token, classify_name, classify_inner_name)
8694 (c_print_token): Update.
8695 * p-exp.y: Update rules.
8696 (yylex): Update.
8697 * f-exp.y: Update rules.
8698 (yylex): Update.
8699 * d-exp.y: Update rules.
8700 (lex_one_token, classify_name, classify_inner_name): Update.
8701 * parse.c (write_dollar_variable, copy_name): Return std::string.
8702 * parser-defs.h (copy_name): Change return type.
8703 * m2-exp.y: Update rules.
8704 (yylex): Update.
8705 * go-exp.y (lex_one_token): Update.
8706 Update rules.
8707 (classify_unsafe_function, classify_packaged_name)
8708 (classify_name, yylex): Update.
8709
189b8c2e
ST
87102019-04-19 Sergei Trofimovich <siarheit@google.com>
8711
8712 * configure.ac: add --enable-source-highlight switch.
8713 * configure: Regenerate.
8714 * top.c (print_gdb_version): plumb --enable-source-highlight
8715 status to "show configuration".
8716
8ecb59f8
TT
87172019-04-19 Tom Tromey <tromey@adacore.com>
8718
8719 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8720 Check ADA_TYPE_P.
8721 (empty_record, ada_template_to_fixed_record_type_1)
8722 (template_to_static_fixed_type)
8723 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8724 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8725 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8726 macros.
8727
62160ec9
TT
87282019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8729
8730 PR symtab/24423:
8731 * source.c (print_source_lines_base): Advance "iter" when a
8732 control character is seen.
8733
f2ae8bc8
PW
87342019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8735
8736 * inferior.h (struct infcall_suspend_state_deleter):
8737 Catch exception in destructor to avoid crash.
8738
d563b953
PW
87392019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8740
8741 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8742 close to the add_com "shell".
8743
dc34c897
TT
87442019-04-18 Tom Tromey <tromey@adacore.com>
8745
8746 * process-stratum-target.h (class process_stratum_target)
8747 <stratum>: Add "final".
8748
a12e5744
TT
87492019-04-17 Tom Tromey <tromey@adacore.com>
8750
8751 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8752 against nullptr before use.
8753
a7e559cc
AH
87542019-04-17 Alan Hayward <alan.hayward@arm.com>
8755
8756 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8757
c01660c6
AB
87582019-04-17 Jim Wilson <jimw@sifive.com>
8759 Andrew Burgess <andrew.burgess@embecosm.com>
8760
8761 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8762 code read might fail, assume 4-byte breakpoint in that case.
8763
4aa866af
LS
87642019-04-15 Leszek Swirski <leszeks@google.com>
8765
8766 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8767 rather than a hand-rolled POD check when checking for forced MEMORY
8768 classification.
8769
48574d91
AH
87702019-04-15 Alan Hayward <alan.hayward@arm.com>
8771
8772 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8773 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8774 function.
8775 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8776 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8777 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8778 declaration.
8779
4da037ef
AH
87802019-04-15 Alan Hayward <alan.hayward@arm.com>
8781
8782 * aarch64-linux-nat.c
8783 (aarch64_linux_nat_target::thread_architecture): Add override.
8784 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8785 each VQ.
8786
ccb8d7e8
AH
87872019-04-15 Alan Hayward <alan.hayward@arm.com>
8788
8789 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8790
35add35e
AB
87912019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8792
8793 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8794 target types of size 96-bits, add some additional comments, and
8795 check that the builtin type we found was the correct size.
8796
51196bbc
EZ
87972019-04-12 Eli Zaretskii <eliz@gnu.org>
8798
8799 * utils.c (prompt_for_continue): Don't restore the styling at the
8800 end, as applied_style has the wrong value. This fixes styling in
8801 long lists of file names that are interrupted by the "Continue?"
8802 prompt.
8803
62253a61
AB
88042019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8805
8806 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8807 * c-lang.c (c_language_defn): Likewise.
8808 (cplus_language_defn): Likewise.
8809 (asm_language_defn): Likewise.
8810 (minimal_language_defn): Likewise.
8811 * d-lang.c (d_language_defn): Likewise.
8812 * f-lang.c (f_language_defn): Likewise.
8813 * go-lang.c (go_language_defn): Likewise.
8814 * language.c (unknown_language_defn): Likewise.
8815 (auto_language_defn): Likewise.
8816 * language.h (struct language_defn): Remove la_magic field.
8817 (LANG_MAGIC): Delete.
8818 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8819 * objc-lang.c (objc_language_defn): Likewise.
8820 * opencl-lang.c (opencl_language_defn): Likewise.
8821 * p-lang.c (pascal_language_defn): Likewise.
8822 * rust-lang.c (rust_language_defn): Likewise.
8823
a9158a86
AB
88242019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8825
8826 * riscv-tdep.c (riscv_type_align): New function.
8827 (riscv_type_alignment): Delete.
8828 (riscv_arg_location): Use 'type_align'.
8829 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8830
41077b66
AB
88312019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8832
8833 * gdbtypes.c (type_align): A struct with no non-static fields also
8834 has alignment of 1.
8835
9f0272f8
AB
88362019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8837
8838 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8839 component to 0.
8840 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8841 member.
8842 (riscv_struct_info::analyse): New implementation using new
8843 analyse_inner member function.
8844 (riscv_struct_info::field_offset): New member function.
8845 (riscv_struct_info::m_offsets): New member variable.
8846 (riscv_struct_info::analyse_inner): New private member function,
8847 takes the old implementation of riscv_struct_info::analyse but
8848 extended to track field offsets.
8849 (riscv_call_arg_struct): Update the struct folding special cases
8850 to handle cases where empty C++ structs, which are non-zero
8851 length, are found.
8852 (riscv_arg_location): Initialise the length of each location, a
8853 non-zero length now indicates the location is in use.
8854 (riscv_push_dummy_call): Allow for the first location having a
8855 non-zero offset when setting up arguments.
8856 (riscv_return_value): Likewise, but for return values.
8857
02cf60c7
TT
88582019-04-11 Tom Tromey <tromey@adacore.com>
8859
8860 * utils.c (internal_vproblem): Make "msg" const.
8861
68811f8f
AH
88622019-04-11 Alan Hayward <alan.hayward@arm.com>
8863
8864 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8865 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8866 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8867 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8868
3f52fdbc
KB
88692019-04-10 Kevin Buettner <kevinb@redhat.com>
8870
8871 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8872 function.
8873 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8874 of amd64_collect_native_gregset.
8875 (amd64_linux_nat_target::store_registers): Likewise.
8876
e9ad22ee
TT
88772019-04-10 Tom Tromey <tom@tromey.com>
8878
8879 * symtab.c (lookup_global_symbol_from_objfile)
8880 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8881 * objfiles.h (class separate_debug_iterator): New.
8882 (class separate_debug_range): New.
8883 (struct objfile) <separate_debug_objfiles>: New method.
8884 (objfile_separate_debug_iterate): Don't declare.
8885 * objfiles.c (separate_debug_iterator::operator++): Rename from
8886 objfile_separate_debug_iterate.
8887 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8888 iterator.
8889 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8890 iterator.
8891
ee371134
TT
88922019-04-10 Tom Tromey <tom@tromey.com>
8893
8894 * symfile.c (reread_symbols): Remove old comment.
8895 * objfiles.c (free_all_objfiles): Fix a typo.
8896
bf227d61
TT
88972019-04-10 Tom Tromey <tom@tromey.com>
8898
8899 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8900 * minsyms.c (lookup_minimal_symbol): Use foreach.
8901 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8902 (lookup_minimal_symbol_solib_trampoline): Likewise.
8903 * symfile.c (reread_symbols): Use foreach.
8904
8dc433a0
TT
89052019-04-09 Ivan Begert <ivanbegert@gmail.com>
8906 Tom Tromey <tromey@adacore.com>
8907
8908 PR rust/24414:
8909 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8910 (rust_lex_int_test): Change "value" to be LONGEST.
8911 (rust_lex_tests): Add test for long integer literal.
8912
9ab8741a
TT
89132019-04-09 Tom Tromey <tromey@adacore.com>
8914
8915 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8916 to bool.
8917 (extended_remote_target::attach): Update.
8918 (remote_target::remote_notice_new_inferior): Update.
8919 (remote_target::add_current_inferior_and_thread): Update.
8920 * inferior.c (exit_inferior_1): Use "false".
8921 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8922
e242fd12
SM
89232019-04-09 Simon Marchi <simon.marchi@efficios.com>
8924
9ca1957f 8925 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
8926 the "start" command.
8927
2b0c8b01
KB
89282019-04-08 Kevin Buettner <kevinb@redhat.com>
8929
8930 * python/py-inferior.c (infpy_thread_from_thread_handle):
8931 Adjust comments to reflect renaming of thread_from_thread_handle
8932 to thread_from_handle. Adjust keywords. Fix type error message.
8933 (inferior_object_methods): Add thread_from_handle. Retain
8934 thread_from_thread_handle, but mark it as deprecated.
8935
50a82723
KB
89362019-04-08 Kevin Buettner <kevinb@redhat.com>
8937
8938 * gdbthread.h (find_thread_by_handle): Revise declaration.
8939 * thread.c (find_thread_by_handle): Likewise. Adjust
8940 implementation too.
8941 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8942 support for buffer objects as handles.
8943
cf63b016
KB
89442019-04-08 Kevin Buettner <kevinb@redhat.com>
8945
8946 * python/py-infthread.c (thpy_thread_handle): New function.
8947 (thread_object_methods): Register thpy_thread_handle.
8948
3d6c6204
KB
89492019-04-08 Kevin Buettner <kevinb@redhat.com>
8950
8951 * gdbthread.h (thread_to_thread_handle): Declare.
8952 * thread.c (gdbtypes.h): Include.
8953 (thread_to_thread_handle): New function.
8954
8955 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8956 (target_thread_info_to_thread_handle): Declare.
8957 * target.c (target_thread_info_to_thread_handle): New function.
8958 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8959 * target-delegates.c: Regenerate.
8960
8961 * linux-thread-db.c (class thread_db_target): Add method
8962 thread_info_to_thread_handle.
8963 (thread_db_target::thread_info_to_thread_handle): Define.
8964 * remote.c (class remote_target): Add new method
8965 thread_info_to_thread_handle.
8966 (remote_target::thread_info_to_thread_handle): Define.
8967
56be6ea8
PA
89682019-04-08 Pedro Alves <palves@redhat.com>
8969
8970 * common/common-exceptions.c (throw_exception): Don't create
8971 named object to throw; throw directly.
8972 (throw_it): Likewise. Don't initialize gdb_exception::message
8973 here, with new; pass FMT and AP to the ctor instead.
8974 * common/common-exceptions.h: Include <string>.
8975 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8976 const char *, va_list)): New ctor. Use std::make_shared.
8977 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8978 errors)): Delete.
8979 (gdb_exception_error::gdb_exception_error(enum errors, const char
8980 *, va_list)): New.
8981 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8982 Add assertion.
8983 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8984 errors)): Delete.
8985 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8986 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8987 Add assertion.
8988
eedc3f4f
TT
89892019-04-08 Tom Tromey <tom@tromey.com>
8990
8991 * valops.c (value_rtti_indirect_type): Replace throw_exception
8992 with throw.
8993 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8994 with throw.
8995 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8996 throw.
8997 * target.c (target_translate_tls_address): Replace throw_exception
8998 with throw.
8999 * stack.c (frame_apply_command_count): Replace throw_exception
9000 with throw.
9001 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9002 throw.
9003 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9004 with throw.
9005 * rs6000-tdep.c (rs6000_frame_cache)
9006 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9007 * remote.c: Replace throw_exception with throw.
9008 * record-full.c (record_full_message, record_full_wait_1)
9009 (record_full_restore): Replace throw_exception with throw.
9010 * record-btrace.c:
9011 (get_thread_current_frame_id, record_btrace_start_replaying)
9012 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9013 (cmd_record_btrace_start): Replace throw_exception with throw.
9014 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9015 throw.
9016 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9017 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9018 * linespec.c:
9019 (find_linespec_symbols): Replace throw_exception with throw.
9020 * infrun.c (displaced_step_prepare, resume): Replace
9021 throw_exception with throw.
9022 * infcmd.c (post_create_inferior): Replace throw_exception with
9023 throw.
9024 * inf-loop.c (inferior_event_handler): Replace throw_exception
9025 with throw.
9026 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9027 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9028 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9029 (get_prev_frame_always, get_frame_pc_if_available)
9030 (get_frame_address_in_block_if_available, get_frame_language):
9031 Replace throw_exception with throw.
9032 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9033 throw_exception with throw.
9034 * eval.c (fetch_subexp_value, evaluate_var_value)
9035 (evaluate_funcall, evaluate_subexp_standard): Replace
9036 throw_exception with throw.
9037 * dwarf2loc.c (call_site_find_chain)
9038 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9039 Replace throw_exception with throw.
9040 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9041 with throw.
9042 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9043 throw.
9044 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9045 * completer.c (complete_line_internal): Replace throw_exception
9046 with throw.
9047 * compile/compile-object-run.c (compile_object_run): Replace
9048 throw_exception with throw.
9049 * cli/cli-script.c (process_next_line): Replace throw_exception
9050 with throw.
9051 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9052 (btrace_enable, btrace_maint_update_pt_packets): Replace
9053 throw_exception with throw.
9054 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9055 throw_exception with throw.
9056 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9057 throw_exception with throw.
9058 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9059 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9060 * aarch64-tdep.c (aarch64_make_prologue_cache)
9061 (aarch64_make_stub_cache): Replace throw_exception with throw.
9062
26003a20
TT
90632019-04-08 Tom Tromey <tom@tromey.com>
9064
9065 * common/common-exceptions.c (throw_exception): Rename from
9066 throw_exception_cxx. Remove old copy. Make argument const.
9067 (throw_it): Create and throw exception objects directly.
9068 * common/common-exceptions.h (throw_exception): Make argument
9069 const.
9070 (struct gdb_exception_error): Add constructor.
9071 (struct gdb_exception_quit): Add constructor.
9072
d272eb37
TT
90732019-04-08 Tom Tromey <tom@tromey.com>
9074
9075 * common/common-exceptions.h (exception_rethrow): Don't declare.
9076 (TRY_SJLJ): Update comment.
9077 (TRY, CATCH, END_CATCH): Remove.
9078 * common/common-exceptions.c (exception_rethrow): Remove.
9079
230d2906
TT
90802019-04-08 Tom Tromey <tom@tromey.com>
9081
9082 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9083 Remove.
9084 (gdb_exception_error): Rename from
9085 gdb_exception_RETURN_MASK_ERROR.
9086 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9087 (gdb_quit_bad_alloc): Update.
9088 * aarch64-tdep.c: Update.
9089 * ada-lang.c: Update.
9090 * ada-typeprint.c: Update.
9091 * ada-valprint.c: Update.
9092 * amd64-tdep.c: Update.
9093 * arch-utils.c: Update.
9094 * break-catch-throw.c: Update.
9095 * breakpoint.c: Update.
9096 * btrace.c: Update.
9097 * c-varobj.c: Update.
9098 * cli/cli-cmds.c: Update.
9099 * cli/cli-interp.c: Update.
9100 * cli/cli-script.c: Update.
9101 * common/common-exceptions.c: Update.
9102 * common/new-op.c: Update.
9103 * common/selftest.c: Update.
9104 * compile/compile-c-symbols.c: Update.
9105 * compile/compile-cplus-symbols.c: Update.
9106 * compile/compile-object-load.c: Update.
9107 * compile/compile-object-run.c: Update.
9108 * completer.c: Update.
9109 * corelow.c: Update.
9110 * cp-abi.c: Update.
9111 * cp-support.c: Update.
9112 * cp-valprint.c: Update.
9113 * darwin-nat.c: Update.
9114 * disasm-selftests.c: Update.
9115 * dtrace-probe.c: Update.
9116 * dwarf-index-cache.c: Update.
9117 * dwarf-index-write.c: Update.
9118 * dwarf2-frame-tailcall.c: Update.
9119 * dwarf2-frame.c: Update.
9120 * dwarf2loc.c: Update.
9121 * dwarf2read.c: Update.
9122 * eval.c: Update.
9123 * event-loop.c: Update.
9124 * event-top.c: Update.
9125 * exec.c: Update.
9126 * f-valprint.c: Update.
9127 * fbsd-tdep.c: Update.
9128 * frame-unwind.c: Update.
9129 * frame.c: Update.
9130 * gdbtypes.c: Update.
9131 * gnu-v3-abi.c: Update.
9132 * guile/guile-internal.h: Update.
9133 * guile/scm-block.c: Update.
9134 * guile/scm-breakpoint.c: Update.
9135 * guile/scm-cmd.c: Update.
9136 * guile/scm-disasm.c: Update.
9137 * guile/scm-frame.c: Update.
9138 * guile/scm-lazy-string.c: Update.
9139 * guile/scm-math.c: Update.
9140 * guile/scm-param.c: Update.
9141 * guile/scm-ports.c: Update.
9142 * guile/scm-pretty-print.c: Update.
9143 * guile/scm-symbol.c: Update.
9144 * guile/scm-symtab.c: Update.
9145 * guile/scm-type.c: Update.
9146 * guile/scm-value.c: Update.
9147 * i386-linux-tdep.c: Update.
9148 * i386-tdep.c: Update.
9149 * inf-loop.c: Update.
9150 * infcall.c: Update.
9151 * infcmd.c: Update.
9152 * infrun.c: Update.
9153 * jit.c: Update.
9154 * language.c: Update.
9155 * linespec.c: Update.
9156 * linux-fork.c: Update.
9157 * linux-nat.c: Update.
9158 * linux-tdep.c: Update.
9159 * linux-thread-db.c: Update.
9160 * main.c: Update.
9161 * mi/mi-cmd-break.c: Update.
9162 * mi/mi-cmd-stack.c: Update.
9163 * mi/mi-interp.c: Update.
9164 * mi/mi-main.c: Update.
9165 * objc-lang.c: Update.
9166 * p-valprint.c: Update.
9167 * parse.c: Update.
9168 * ppc-linux-tdep.c: Update.
9169 * printcmd.c: Update.
9170 * python/py-arch.c: Update.
9171 * python/py-breakpoint.c: Update.
9172 * python/py-cmd.c: Update.
9173 * python/py-finishbreakpoint.c: Update.
9174 * python/py-frame.c: Update.
9175 * python/py-framefilter.c: Update.
9176 * python/py-gdb-readline.c: Update.
9177 * python/py-inferior.c: Update.
9178 * python/py-infthread.c: Update.
9179 * python/py-lazy-string.c: Update.
9180 * python/py-linetable.c: Update.
9181 * python/py-objfile.c: Update.
9182 * python/py-param.c: Update.
9183 * python/py-prettyprint.c: Update.
9184 * python/py-progspace.c: Update.
9185 * python/py-record-btrace.c: Update.
9186 * python/py-record.c: Update.
9187 * python/py-symbol.c: Update.
9188 * python/py-type.c: Update.
9189 * python/py-unwind.c: Update.
9190 * python/py-utils.c: Update.
9191 * python/py-value.c: Update.
9192 * python/python.c: Update.
9193 * record-btrace.c: Update.
9194 * record-full.c: Update.
9195 * remote-fileio.c: Update.
9196 * remote.c: Update.
9197 * riscv-tdep.c: Update.
9198 * rs6000-aix-tdep.c: Update.
9199 * rs6000-tdep.c: Update.
9200 * rust-exp.y: Update.
9201 * rust-lang.c: Update.
9202 * s390-tdep.c: Update.
9203 * selftest-arch.c: Update.
9204 * solib-dsbt.c: Update.
9205 * solib-frv.c: Update.
9206 * solib-spu.c: Update.
9207 * solib-svr4.c: Update.
9208 * solib.c: Update.
9209 * sparc64-linux-tdep.c: Update.
9210 * stack.c: Update.
9211 * symfile-mem.c: Update.
9212 * symmisc.c: Update.
9213 * target.c: Update.
9214 * thread.c: Update.
9215 * top.c: Update.
9216 * tracefile-tfile.c: Update.
9217 * tui/tui.c: Update.
9218 * typeprint.c: Update.
9219 * unittests/cli-utils-selftests.c: Update.
9220 * unittests/parse-connection-spec-selftests.c: Update.
9221 * valops.c: Update.
9222 * valprint.c: Update.
9223 * value.c: Update.
9224 * varobj.c: Update.
9225 * windows-nat.c: Update.
9226 * x86-linux-nat.c: Update.
9227 * xml-support.c: Update.
9228
a70b8144
TT
92292019-04-08 Tom Tromey <tom@tromey.com>
9230
9231 * xml-support.c: Use C++ exception handling.
9232 * x86-linux-nat.c: Use C++ exception handling.
9233 * windows-nat.c: Use C++ exception handling.
9234 * varobj.c: Use C++ exception handling.
9235 * value.c: Use C++ exception handling.
9236 * valprint.c: Use C++ exception handling.
9237 * valops.c: Use C++ exception handling.
9238 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9239 handling.
9240 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9241 * typeprint.c: Use C++ exception handling.
9242 * tui/tui.c: Use C++ exception handling.
9243 * tracefile-tfile.c: Use C++ exception handling.
9244 * top.c: Use C++ exception handling.
9245 * thread.c: Use C++ exception handling.
9246 * target.c: Use C++ exception handling.
9247 * symmisc.c: Use C++ exception handling.
9248 * symfile-mem.c: Use C++ exception handling.
9249 * stack.c: Use C++ exception handling.
9250 * sparc64-linux-tdep.c: Use C++ exception handling.
9251 * solib.c: Use C++ exception handling.
9252 * solib-svr4.c: Use C++ exception handling.
9253 * solib-spu.c: Use C++ exception handling.
9254 * solib-frv.c: Use C++ exception handling.
9255 * solib-dsbt.c: Use C++ exception handling.
9256 * selftest-arch.c: Use C++ exception handling.
9257 * s390-tdep.c: Use C++ exception handling.
9258 * rust-lang.c: Use C++ exception handling.
9259 * rust-exp.y: Use C++ exception handling.
9260 * rs6000-tdep.c: Use C++ exception handling.
9261 * rs6000-aix-tdep.c: Use C++ exception handling.
9262 * riscv-tdep.c: Use C++ exception handling.
9263 * remote.c: Use C++ exception handling.
9264 * remote-fileio.c: Use C++ exception handling.
9265 * record-full.c: Use C++ exception handling.
9266 * record-btrace.c: Use C++ exception handling.
9267 * python/python.c: Use C++ exception handling.
9268 * python/py-value.c: Use C++ exception handling.
9269 * python/py-utils.c: Use C++ exception handling.
9270 * python/py-unwind.c: Use C++ exception handling.
9271 * python/py-type.c: Use C++ exception handling.
9272 * python/py-symbol.c: Use C++ exception handling.
9273 * python/py-record.c: Use C++ exception handling.
9274 * python/py-record-btrace.c: Use C++ exception handling.
9275 * python/py-progspace.c: Use C++ exception handling.
9276 * python/py-prettyprint.c: Use C++ exception handling.
9277 * python/py-param.c: Use C++ exception handling.
9278 * python/py-objfile.c: Use C++ exception handling.
9279 * python/py-linetable.c: Use C++ exception handling.
9280 * python/py-lazy-string.c: Use C++ exception handling.
9281 * python/py-infthread.c: Use C++ exception handling.
9282 * python/py-inferior.c: Use C++ exception handling.
9283 * python/py-gdb-readline.c: Use C++ exception handling.
9284 * python/py-framefilter.c: Use C++ exception handling.
9285 * python/py-frame.c: Use C++ exception handling.
9286 * python/py-finishbreakpoint.c: Use C++ exception handling.
9287 * python/py-cmd.c: Use C++ exception handling.
9288 * python/py-breakpoint.c: Use C++ exception handling.
9289 * python/py-arch.c: Use C++ exception handling.
9290 * printcmd.c: Use C++ exception handling.
9291 * ppc-linux-tdep.c: Use C++ exception handling.
9292 * parse.c: Use C++ exception handling.
9293 * p-valprint.c: Use C++ exception handling.
9294 * objc-lang.c: Use C++ exception handling.
9295 * mi/mi-main.c: Use C++ exception handling.
9296 * mi/mi-interp.c: Use C++ exception handling.
9297 * mi/mi-cmd-stack.c: Use C++ exception handling.
9298 * mi/mi-cmd-break.c: Use C++ exception handling.
9299 * main.c: Use C++ exception handling.
9300 * linux-thread-db.c: Use C++ exception handling.
9301 * linux-tdep.c: Use C++ exception handling.
9302 * linux-nat.c: Use C++ exception handling.
9303 * linux-fork.c: Use C++ exception handling.
9304 * linespec.c: Use C++ exception handling.
9305 * language.c: Use C++ exception handling.
9306 * jit.c: Use C++ exception handling.
9307 * infrun.c: Use C++ exception handling.
9308 * infcmd.c: Use C++ exception handling.
9309 * infcall.c: Use C++ exception handling.
9310 * inf-loop.c: Use C++ exception handling.
9311 * i386-tdep.c: Use C++ exception handling.
9312 * i386-linux-tdep.c: Use C++ exception handling.
9313 * guile/scm-value.c: Use C++ exception handling.
9314 * guile/scm-type.c: Use C++ exception handling.
9315 * guile/scm-symtab.c: Use C++ exception handling.
9316 * guile/scm-symbol.c: Use C++ exception handling.
9317 * guile/scm-pretty-print.c: Use C++ exception handling.
9318 * guile/scm-ports.c: Use C++ exception handling.
9319 * guile/scm-param.c: Use C++ exception handling.
9320 * guile/scm-math.c: Use C++ exception handling.
9321 * guile/scm-lazy-string.c: Use C++ exception handling.
9322 * guile/scm-frame.c: Use C++ exception handling.
9323 * guile/scm-disasm.c: Use C++ exception handling.
9324 * guile/scm-cmd.c: Use C++ exception handling.
9325 * guile/scm-breakpoint.c: Use C++ exception handling.
9326 * guile/scm-block.c: Use C++ exception handling.
9327 * guile/guile-internal.h: Use C++ exception handling.
9328 * gnu-v3-abi.c: Use C++ exception handling.
9329 * gdbtypes.c: Use C++ exception handling.
9330 * frame.c: Use C++ exception handling.
9331 * frame-unwind.c: Use C++ exception handling.
9332 * fbsd-tdep.c: Use C++ exception handling.
9333 * f-valprint.c: Use C++ exception handling.
9334 * exec.c: Use C++ exception handling.
9335 * event-top.c: Use C++ exception handling.
9336 * event-loop.c: Use C++ exception handling.
9337 * eval.c: Use C++ exception handling.
9338 * dwarf2read.c: Use C++ exception handling.
9339 * dwarf2loc.c: Use C++ exception handling.
9340 * dwarf2-frame.c: Use C++ exception handling.
9341 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9342 * dwarf-index-write.c: Use C++ exception handling.
9343 * dwarf-index-cache.c: Use C++ exception handling.
9344 * dtrace-probe.c: Use C++ exception handling.
9345 * disasm-selftests.c: Use C++ exception handling.
9346 * darwin-nat.c: Use C++ exception handling.
9347 * cp-valprint.c: Use C++ exception handling.
9348 * cp-support.c: Use C++ exception handling.
9349 * cp-abi.c: Use C++ exception handling.
9350 * corelow.c: Use C++ exception handling.
9351 * completer.c: Use C++ exception handling.
9352 * compile/compile-object-run.c: Use C++ exception handling.
9353 * compile/compile-object-load.c: Use C++ exception handling.
9354 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9355 * compile/compile-c-symbols.c: Use C++ exception handling.
9356 * common/selftest.c: Use C++ exception handling.
9357 * common/new-op.c: Use C++ exception handling.
9358 * cli/cli-script.c: Use C++ exception handling.
9359 * cli/cli-interp.c: Use C++ exception handling.
9360 * cli/cli-cmds.c: Use C++ exception handling.
9361 * c-varobj.c: Use C++ exception handling.
9362 * btrace.c: Use C++ exception handling.
9363 * breakpoint.c: Use C++ exception handling.
9364 * break-catch-throw.c: Use C++ exception handling.
9365 * arch-utils.c: Use C++ exception handling.
9366 * amd64-tdep.c: Use C++ exception handling.
9367 * ada-valprint.c: Use C++ exception handling.
9368 * ada-typeprint.c: Use C++ exception handling.
9369 * ada-lang.c: Use C++ exception handling.
9370 * aarch64-tdep.c: Use C++ exception handling.
9371
3d6e9d23
TT
93722019-04-08 Tom Tromey <tom@tromey.com>
9373
9374 * xml-support.c (gdb_xml_parser::parse): Update.
9375 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9376 * value.c (show_convenience): Update.
9377 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9378 (test_parse_flags_qcs): Update.
9379 * thread.c (thr_try_catch_cmd): Update.
9380 * target.c (target_translate_tls_address): Update.
9381 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9382 (info_frame_command_core, frame_apply_command_count): Update.
9383 * rust-exp.y (rust_lex_exception_test): Update.
9384 * riscv-tdep.c (riscv_print_one_register_info): Update.
9385 * remote.c (remote_target::enable_btrace): Update.
9386 * record-btrace.c (record_btrace_enable_warn): Update.
9387 * python/py-utils.c (gdbpy_convert_exception): Update.
9388 * printcmd.c (do_one_display, print_variable_and_value): Update.
9389 * mi/mi-main.c (mi_print_exception): Update.
9390 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9391 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9392 * linux-nat.c (linux_nat_target::attach): Update.
9393 * linux-fork.c (class scoped_switch_fork_info): Update.
9394 * infrun.c (displaced_step_prepare): Update.
9395 * infcall.c (call_function_by_hand_dummy): Update.
9396 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9397 * gnu-v3-abi.c (print_one_vtable): Update.
9398 * frame.c (get_prev_frame_always): Update.
9399 * f-valprint.c (info_common_command_for_block): Update.
9400 * exec.c (try_open_exec_file): Update.
9401 * exceptions.c (print_exception, exception_print)
9402 (exception_fprintf, exception_print_same): Update.
9403 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9404 * dwarf-index-cache.c (index_cache::store)
9405 (index_cache::lookup_gdb_index): Update.
9406 * darwin-nat.c (maybe_cache_shell): Update.
9407 * cp-valprint.c (cp_print_value_fields): Update.
9408 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9409 (gcc_cplus_symbol_address): Update.
9410 * compile/compile-c-symbols.c (gcc_convert_symbol)
9411 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9412 * common/selftest.c: Update.
9413 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9414 a std::string.
9415 (exception_try_scope_entry, exception_try_scope_exit): Don't
9416 declare.
9417 (struct exception_try_scope): Remove.
9418 (TRY): Don't use exception_try_scope.
9419 (struct gdb_exception): Add constructor, operator=.
9420 <what>: New method.
9421 (struct gdb_exception_RETURN_MASK_ALL)
9422 (struct gdb_exception_RETURN_MASK_ERROR)
9423 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9424 (struct gdb_quit_bad_alloc): Update.
9425 * common/common-exceptions.c (exception_none): Change
9426 initializer.
9427 (struct catcher) <state, exception>: Initialize inline.
9428 <prev>: Remove member.
9429 (current_catcher): Remove.
9430 (catchers): New global.
9431 (exceptions_state_mc_init): Simplify.
9432 (catcher_pop): Remove.
9433 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9434 (try_scope_depth, exception_try_scope_entry)
9435 (exception_try_scope_exit): Remove.
9436 (throw_exception_sjlj): Update.
9437 (exception_messages, exception_messages_size): Remove.
9438 (throw_it): Simplify.
9439 (gdb_exception_sliced_copy): Remove.
9440 (throw_exception_cxx): Update.
9441 * cli/cli-script.c (script_from_file): Update.
9442 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9443 Update.
9444 * ada-valprint.c (ada_val_print): Update.
9445 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9446 (create_excep_cond_exprs): Update.
9447
c5c10118
TT
94482019-04-08 Tom Tromey <tom@tromey.com>
9449
9450 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9451 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9452 (TRY, CATCH, END_CATCH): Remove some definitions.
9453 * common/common-exceptions.c: Don't use GDB_XCPT.
9454 (catcher_list_size): Remove.
9455 (throw_exception, throw_it): Simplify.
9456
4de283e4
TT
94572019-04-05 Tom Tromey <tom@tromey.com>
9458
9459 Revert the header-sorting patch.
9460 * ft32-tdep.c: Revert.
9461 * frv-tdep.c: Revert.
9462 * frv-linux-tdep.c: Revert.
9463 * frame.c: Revert.
9464 * frame-unwind.c: Revert.
9465 * frame-base.c: Revert.
9466 * fork-child.c: Revert.
9467 * findvar.c: Revert.
9468 * findcmd.c: Revert.
9469 * filesystem.c: Revert.
9470 * filename-seen-cache.h: Revert.
9471 * filename-seen-cache.c: Revert.
9472 * fbsd-tdep.c: Revert.
9473 * fbsd-nat.h: Revert.
9474 * fbsd-nat.c: Revert.
9475 * f-valprint.c: Revert.
9476 * f-typeprint.c: Revert.
9477 * f-lang.c: Revert.
9478 * extension.h: Revert.
9479 * extension.c: Revert.
9480 * extension-priv.h: Revert.
9481 * expprint.c: Revert.
9482 * exec.h: Revert.
9483 * exec.c: Revert.
9484 * exceptions.c: Revert.
9485 * event-top.c: Revert.
9486 * event-loop.c: Revert.
9487 * eval.c: Revert.
9488 * elfread.c: Revert.
9489 * dwarf2read.h: Revert.
9490 * dwarf2read.c: Revert.
9491 * dwarf2loc.c: Revert.
9492 * dwarf2expr.h: Revert.
9493 * dwarf2expr.c: Revert.
9494 * dwarf2-frame.c: Revert.
9495 * dwarf2-frame-tailcall.c: Revert.
9496 * dwarf-index-write.h: Revert.
9497 * dwarf-index-write.c: Revert.
9498 * dwarf-index-common.c: Revert.
9499 * dwarf-index-cache.h: Revert.
9500 * dwarf-index-cache.c: Revert.
9501 * dummy-frame.c: Revert.
9502 * dtrace-probe.c: Revert.
9503 * disasm.h: Revert.
9504 * disasm.c: Revert.
9505 * disasm-selftests.c: Revert.
9506 * dictionary.c: Revert.
9507 * dicos-tdep.c: Revert.
9508 * demangle.c: Revert.
9509 * dcache.h: Revert.
9510 * dcache.c: Revert.
9511 * darwin-nat.h: Revert.
9512 * darwin-nat.c: Revert.
9513 * darwin-nat-info.c: Revert.
9514 * d-valprint.c: Revert.
9515 * d-namespace.c: Revert.
9516 * d-lang.c: Revert.
9517 * ctf.c: Revert.
9518 * csky-tdep.c: Revert.
9519 * csky-linux-tdep.c: Revert.
9520 * cris-tdep.c: Revert.
9521 * cris-linux-tdep.c: Revert.
9522 * cp-valprint.c: Revert.
9523 * cp-support.c: Revert.
9524 * cp-namespace.c: Revert.
9525 * cp-abi.c: Revert.
9526 * corelow.c: Revert.
9527 * corefile.c: Revert.
9528 * continuations.c: Revert.
9529 * completer.h: Revert.
9530 * completer.c: Revert.
9531 * complaints.c: Revert.
9532 * coffread.c: Revert.
9533 * coff-pe-read.c: Revert.
9534 * cli-out.h: Revert.
9535 * cli-out.c: Revert.
9536 * charset.c: Revert.
9537 * c-varobj.c: Revert.
9538 * c-valprint.c: Revert.
9539 * c-typeprint.c: Revert.
9540 * c-lang.c: Revert.
9541 * buildsym.c: Revert.
9542 * buildsym-legacy.c: Revert.
9543 * build-id.h: Revert.
9544 * build-id.c: Revert.
9545 * btrace.c: Revert.
9546 * bsd-uthread.c: Revert.
9547 * breakpoint.h: Revert.
9548 * breakpoint.c: Revert.
9549 * break-catch-throw.c: Revert.
9550 * break-catch-syscall.c: Revert.
9551 * break-catch-sig.c: Revert.
9552 * blockframe.c: Revert.
9553 * block.c: Revert.
9554 * bfin-tdep.c: Revert.
9555 * bfin-linux-tdep.c: Revert.
9556 * bfd-target.c: Revert.
9557 * bcache.c: Revert.
9558 * ax-general.c: Revert.
9559 * ax-gdb.h: Revert.
9560 * ax-gdb.c: Revert.
9561 * avr-tdep.c: Revert.
9562 * auxv.c: Revert.
9563 * auto-load.c: Revert.
9564 * arm-wince-tdep.c: Revert.
9565 * arm-tdep.c: Revert.
9566 * arm-symbian-tdep.c: Revert.
9567 * arm-pikeos-tdep.c: Revert.
9568 * arm-obsd-tdep.c: Revert.
9569 * arm-nbsd-tdep.c: Revert.
9570 * arm-nbsd-nat.c: Revert.
9571 * arm-linux-tdep.c: Revert.
9572 * arm-linux-nat.c: Revert.
9573 * arm-fbsd-tdep.c: Revert.
9574 * arm-fbsd-nat.c: Revert.
9575 * arm-bsd-tdep.c: Revert.
9576 * arch-utils.c: Revert.
9577 * arc-tdep.c: Revert.
9578 * arc-newlib-tdep.c: Revert.
9579 * annotate.h: Revert.
9580 * annotate.c: Revert.
9581 * amd64-windows-tdep.c: Revert.
9582 * amd64-windows-nat.c: Revert.
9583 * amd64-tdep.c: Revert.
9584 * amd64-sol2-tdep.c: Revert.
9585 * amd64-obsd-tdep.c: Revert.
9586 * amd64-obsd-nat.c: Revert.
9587 * amd64-nbsd-tdep.c: Revert.
9588 * amd64-nbsd-nat.c: Revert.
9589 * amd64-nat.c: Revert.
9590 * amd64-linux-tdep.c: Revert.
9591 * amd64-linux-nat.c: Revert.
9592 * amd64-fbsd-tdep.c: Revert.
9593 * amd64-fbsd-nat.c: Revert.
9594 * amd64-dicos-tdep.c: Revert.
9595 * amd64-darwin-tdep.c: Revert.
9596 * amd64-bsd-nat.c: Revert.
9597 * alpha-tdep.c: Revert.
9598 * alpha-obsd-tdep.c: Revert.
9599 * alpha-nbsd-tdep.c: Revert.
9600 * alpha-mdebug-tdep.c: Revert.
9601 * alpha-linux-tdep.c: Revert.
9602 * alpha-linux-nat.c: Revert.
9603 * alpha-bsd-tdep.c: Revert.
9604 * alpha-bsd-nat.c: Revert.
9605 * aix-thread.c: Revert.
9606 * agent.c: Revert.
9607 * addrmap.c: Revert.
9608 * ada-varobj.c: Revert.
9609 * ada-valprint.c: Revert.
9610 * ada-typeprint.c: Revert.
9611 * ada-tasks.c: Revert.
9612 * ada-lang.c: Revert.
9613 * aarch64-tdep.c: Revert.
9614 * aarch64-ravenscar-thread.c: Revert.
9615 * aarch64-newlib-tdep.c: Revert.
9616 * aarch64-linux-tdep.c: Revert.
9617 * aarch64-linux-nat.c: Revert.
9618 * aarch64-fbsd-tdep.c: Revert.
9619 * aarch64-fbsd-nat.c: Revert.
9620 * aarch32-linux-nat.c: Revert.
9621
d55e5aa6
TT
96222019-04-05 Tom Tromey <tom@tromey.com>
9623
9624 * ft32-tdep.c: Sort headers.
9625 * frv-tdep.c: Sort headers.
9626 * frv-linux-tdep.c: Sort headers.
9627 * frame.c: Sort headers.
9628 * frame-unwind.c: Sort headers.
9629 * frame-base.c: Sort headers.
9630 * fork-child.c: Sort headers.
9631 * findvar.c: Sort headers.
9632 * findcmd.c: Sort headers.
9633 * filesystem.c: Sort headers.
9634 * filename-seen-cache.h: Sort headers.
9635 * filename-seen-cache.c: Sort headers.
9636 * fbsd-tdep.c: Sort headers.
9637 * fbsd-nat.h: Sort headers.
9638 * fbsd-nat.c: Sort headers.
9639 * f-valprint.c: Sort headers.
9640 * f-typeprint.c: Sort headers.
9641 * f-lang.c: Sort headers.
9642 * extension.h: Sort headers.
9643 * extension.c: Sort headers.
9644 * extension-priv.h: Sort headers.
9645 * expprint.c: Sort headers.
9646 * exec.h: Sort headers.
9647 * exec.c: Sort headers.
9648 * exceptions.c: Sort headers.
9649 * event-top.c: Sort headers.
9650 * event-loop.c: Sort headers.
9651 * eval.c: Sort headers.
9652 * elfread.c: Sort headers.
9653 * dwarf2read.h: Sort headers.
9654 * dwarf2read.c: Sort headers.
9655 * dwarf2loc.c: Sort headers.
9656 * dwarf2expr.h: Sort headers.
9657 * dwarf2expr.c: Sort headers.
9658 * dwarf2-frame.c: Sort headers.
9659 * dwarf2-frame-tailcall.c: Sort headers.
9660 * dwarf-index-write.h: Sort headers.
9661 * dwarf-index-write.c: Sort headers.
9662 * dwarf-index-common.c: Sort headers.
9663 * dwarf-index-cache.h: Sort headers.
9664 * dwarf-index-cache.c: Sort headers.
9665 * dummy-frame.c: Sort headers.
9666 * dtrace-probe.c: Sort headers.
9667 * disasm.h: Sort headers.
9668 * disasm.c: Sort headers.
9669 * disasm-selftests.c: Sort headers.
9670 * dictionary.c: Sort headers.
9671 * dicos-tdep.c: Sort headers.
9672 * demangle.c: Sort headers.
9673 * dcache.h: Sort headers.
9674 * dcache.c: Sort headers.
9675 * darwin-nat.h: Sort headers.
9676 * darwin-nat.c: Sort headers.
9677 * darwin-nat-info.c: Sort headers.
9678 * d-valprint.c: Sort headers.
9679 * d-namespace.c: Sort headers.
9680 * d-lang.c: Sort headers.
9681 * ctf.c: Sort headers.
9682 * csky-tdep.c: Sort headers.
9683 * csky-linux-tdep.c: Sort headers.
9684 * cris-tdep.c: Sort headers.
9685 * cris-linux-tdep.c: Sort headers.
9686 * cp-valprint.c: Sort headers.
9687 * cp-support.c: Sort headers.
9688 * cp-namespace.c: Sort headers.
9689 * cp-abi.c: Sort headers.
9690 * corelow.c: Sort headers.
9691 * corefile.c: Sort headers.
9692 * continuations.c: Sort headers.
9693 * completer.h: Sort headers.
9694 * completer.c: Sort headers.
9695 * complaints.c: Sort headers.
9696 * coffread.c: Sort headers.
9697 * coff-pe-read.c: Sort headers.
9698 * cli-out.h: Sort headers.
9699 * cli-out.c: Sort headers.
9700 * charset.c: Sort headers.
9701 * c-varobj.c: Sort headers.
9702 * c-valprint.c: Sort headers.
9703 * c-typeprint.c: Sort headers.
9704 * c-lang.c: Sort headers.
9705 * buildsym.c: Sort headers.
9706 * buildsym-legacy.c: Sort headers.
9707 * build-id.h: Sort headers.
9708 * build-id.c: Sort headers.
9709 * btrace.c: Sort headers.
9710 * bsd-uthread.c: Sort headers.
9711 * breakpoint.h: Sort headers.
9712 * breakpoint.c: Sort headers.
9713 * break-catch-throw.c: Sort headers.
9714 * break-catch-syscall.c: Sort headers.
9715 * break-catch-sig.c: Sort headers.
9716 * blockframe.c: Sort headers.
9717 * block.c: Sort headers.
9718 * bfin-tdep.c: Sort headers.
9719 * bfin-linux-tdep.c: Sort headers.
9720 * bfd-target.c: Sort headers.
9721 * bcache.c: Sort headers.
9722 * ax-general.c: Sort headers.
9723 * ax-gdb.h: Sort headers.
9724 * ax-gdb.c: Sort headers.
9725 * avr-tdep.c: Sort headers.
9726 * auxv.c: Sort headers.
9727 * auto-load.c: Sort headers.
9728 * arm-wince-tdep.c: Sort headers.
9729 * arm-tdep.c: Sort headers.
9730 * arm-symbian-tdep.c: Sort headers.
9731 * arm-pikeos-tdep.c: Sort headers.
9732 * arm-obsd-tdep.c: Sort headers.
9733 * arm-nbsd-tdep.c: Sort headers.
9734 * arm-nbsd-nat.c: Sort headers.
9735 * arm-linux-tdep.c: Sort headers.
9736 * arm-linux-nat.c: Sort headers.
9737 * arm-fbsd-tdep.c: Sort headers.
9738 * arm-fbsd-nat.c: Sort headers.
9739 * arm-bsd-tdep.c: Sort headers.
9740 * arch-utils.c: Sort headers.
9741 * arc-tdep.c: Sort headers.
9742 * arc-newlib-tdep.c: Sort headers.
9743 * annotate.h: Sort headers.
9744 * annotate.c: Sort headers.
9745 * amd64-windows-tdep.c: Sort headers.
9746 * amd64-windows-nat.c: Sort headers.
9747 * amd64-tdep.c: Sort headers.
9748 * amd64-sol2-tdep.c: Sort headers.
9749 * amd64-obsd-tdep.c: Sort headers.
9750 * amd64-obsd-nat.c: Sort headers.
9751 * amd64-nbsd-tdep.c: Sort headers.
9752 * amd64-nbsd-nat.c: Sort headers.
9753 * amd64-nat.c: Sort headers.
9754 * amd64-linux-tdep.c: Sort headers.
9755 * amd64-linux-nat.c: Sort headers.
9756 * amd64-fbsd-tdep.c: Sort headers.
9757 * amd64-fbsd-nat.c: Sort headers.
9758 * amd64-dicos-tdep.c: Sort headers.
9759 * amd64-darwin-tdep.c: Sort headers.
9760 * amd64-bsd-nat.c: Sort headers.
9761 * alpha-tdep.c: Sort headers.
9762 * alpha-obsd-tdep.c: Sort headers.
9763 * alpha-nbsd-tdep.c: Sort headers.
9764 * alpha-mdebug-tdep.c: Sort headers.
9765 * alpha-linux-tdep.c: Sort headers.
9766 * alpha-linux-nat.c: Sort headers.
9767 * alpha-bsd-tdep.c: Sort headers.
9768 * alpha-bsd-nat.c: Sort headers.
9769 * aix-thread.c: Sort headers.
9770 * agent.c: Sort headers.
9771 * addrmap.c: Sort headers.
9772 * ada-varobj.c: Sort headers.
9773 * ada-valprint.c: Sort headers.
9774 * ada-typeprint.c: Sort headers.
9775 * ada-tasks.c: Sort headers.
9776 * ada-lang.c: Sort headers.
9777 * aarch64-tdep.c: Sort headers.
9778 * aarch64-ravenscar-thread.c: Sort headers.
9779 * aarch64-newlib-tdep.c: Sort headers.
9780 * aarch64-linux-tdep.c: Sort headers.
9781 * aarch64-linux-nat.c: Sort headers.
9782 * aarch64-fbsd-tdep.c: Sort headers.
9783 * aarch64-fbsd-nat.c: Sort headers.
9784 * aarch32-linux-nat.c: Sort headers.
9785
699bd4cf
TT
97862019-04-04 Tom Tromey <tom@tromey.com>
9787
9788 * varobj.c (varobj_create): Update.
9789 * rust-exp.y (struct rust_parser) <update_innermost_block,
9790 lookup_symbol>: New methods.
9791 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9792 Rename.
9793 (rust_parser::rust_lookup_type)
9794 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9795 * printcmd.c (display_command, do_one_display): Update.
9796 * parser-defs.h (struct parser_state) <parser_state>: Add
9797 "tracker" parameter.
9798 (block_tracker): New member.
9799 (class innermost_block_tracker) <innermost_block_tracker>: Add
9800 "types" parameter.
9801 <reset>: Remove method.
9802 (innermost_block): Don't declare.
9803 (null_post_parser): Update.
9804 * parse.c (innermost_block): Remove global.
9805 (write_dollar_variable): Update.
9806 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9807 Remove "tracker_types" parameter.
9808 (parse_expression): Add "tracker" parameter.
9809 (parse_expression_for_completion): Update.
9810 (null_post_parser): Add "tracker" parameter.
9811 * p-exp.y: Update rules.
9812 * m2-exp.y: Update rules.
9813 * language.h (struct language_defn) <la_post_parser>: Add
9814 "tracker" parameter.
9815 * go-exp.y: Update rules.
9816 * f-exp.y: Update rules.
9817 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9818 parameter.
9819 * d-exp.y: Update rules.
9820 * c-exp.y: Update rules.
9821 * breakpoint.c (set_breakpoint_condition): Create an
9822 innermost_block_tracker.
9823 (watch_command_1): Likewise.
9824 * ada-lang.c (resolve): Add "tracker" parameter.
9825 (resolve_subexp): Likewise.
9826 * ada-exp.y (write_var_from_sym): Update.
9827
dac43e32
TT
98282019-04-04 Tom Tromey <tom@tromey.com>
9829
9830 * type-stack.h: New file.
9831 * type-stack.c: New file.
9832 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9833 type-stack.h.
9834 (insert_into_type_stack, insert_type, push_type, push_type_int)
9835 (insert_type_address_space, pop_type, pop_type_int)
9836 (pop_typelist, pop_type_stack, append_type_stack)
9837 (push_type_stack, get_type_stack, push_typelist)
9838 (follow_type_instance_flags, follow_types): Don't declare.
9839 * parse.c (type_stack): Remove global.
9840 (parse_exp_in_context): Update.
9841 (insert_into_type_stack, insert_type, push_type, push_type_int)
9842 (insert_type_address_space, pop_type, pop_type_int)
9843 (pop_typelist, pop_type_stack, append_type_stack)
9844 (push_type_stack, get_type_stack, push_typelist)
9845 (follow_type_instance_flags, follow_types): Remove (moved to
9846 type-stack.c).
9847 * f-exp.y (type_stack): New global.
9848 Update rules.
9849 (push_kind_type, f_parse): Update.
9850 * d-exp.y (type_stack): New global.
9851 Update rules.
9852 (d_parse): Update.
9853 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9854 Update rules.
9855 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9856 (HFILES_NO_SRCDIR): Add type-stack.h.
9857
2a612529
TT
98582019-04-04 Tom Tromey <tom@tromey.com>
9859
9860 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9861 (rust_parser::convert_ast_to_expression, rust_parse)
9862 (rust_lex_test_completion, rust_lex_tests): Update.
9863 * parser-defs.h (struct expr_completion_state): New.
9864 (struct parser_state) <parser_state>: Add completion parameter.
9865 <mark_struct_expression, mark_completion_tag>: New methods.
9866 <parse_completion, m_completion_state>: New members.
9867 (prefixify_expression, null_post_parser): Update.
9868 (mark_struct_expression, mark_completion_tag): Don't declare.
9869 * parse.c (parse_completion, expout_last_struct)
9870 (expout_tag_completion_type, expout_completion_name): Remove
9871 globals.
9872 (parser_state::mark_struct_expression)
9873 (parser_state::mark_completion_tag): Now methods.
9874 (prefixify_expression): Add last_struct parameter.
9875 (prefixify_subexp): Likewise.
9876 (parse_exp_1): Update.
9877 (parse_exp_in_context): Add cstate parameter. Update.
9878 (parse_expression_for_completion): Create an
9879 expr_completion_state.
9880 (null_post_parser): Add "completion" parameter.
9881 * p-exp.y: Update rules.
9882 (yylex): Update.
9883 * language.h (struct language_defn) <la_post_parser>: Add
9884 "completing" parameter.
9885 * go-exp.y: Update rules.
9886 (lex_one_token): Update.
9887 * expression.h (parse_completion): Don't declare.
9888 * d-exp.y: Update rules.
9889 (lex_one_token): Update rules.
9890 * c-exp.y: Update rules.
9891 (lex_one_token): Update.
9892 * ada-lang.c (resolve): Add "parse_completion" parameter.
9893 (resolve_subexp): Likewise.
9894 (ada_resolve_function): Likewise.
9895
43476f0b
TT
98962019-04-04 Tom Tromey <tom@tromey.com>
9897
9898 * parser-defs.h (struct parser_state) <start_arglist,
9899 end_arglist>: New methods.
9900 <arglist_len, m_funcall_chain>: New members.
9901 (arglist_len, start_arglist, end_arglist): Don't declare.
9902 * parse.c (arglist_len, funcall_chain): Remove global.
9903 (start_arglist, end_arglist): Remove functions.
9904 (parse_exp_in_context): Update.
9905 * p-exp.y: Update rules.
9906 * m2-exp.y: Update rules.
9907 * go-exp.y: Update rules.
9908 * f-exp.y: Update rules.
9909 * d-exp.y: Update rules.
9910 * c-exp.y: Update rules.
9911
5776fca3
TT
99122019-04-04 Tom Tromey <tom@tromey.com>
9913
9914 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9915 lex_operator, push_back>: New methods.
9916 Update all rules.
9917 (rust_parser::lex_hex, lex_escape): Rename and update.
9918 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9919 (rust_parser::lex_operator): Rename and update.
9920 (rust_parser::lex_number, rustyylex, rustyyerror)
9921 (rust_lex_test_init, rust_lex_test_sequence)
9922 (rust_lex_test_push_back, rust_lex_tests): Update.
9923 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9924 parameter.
9925 <lexptr, prev_lexptr>: New members.
9926 (lexptr, prev_lexptr): Don't declare.
9927 * parse.c (lexptr, prev_lexptr): Remove globals.
9928 (parse_exp_in_context): Update.
9929 * p-exp.y (yylex, yyerror): Update.
9930 * m2-exp.y (parse_number, yylex, yyerror): Update.
9931 * go-exp.y (lex_one_token, yyerror): Update.
9932 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9933 * d-exp.y (lex_one_token, yyerror): Update.
9934 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9935 (lex_one_token, yyerror): Update.
9936 * ada-lex.l (YY_INPUT): Update.
9937 (rewind_to_char): Update.
9938 * ada-exp.y (yyerror): Update.
9939
8621b685
TT
99402019-04-04 Tom Tromey <tom@tromey.com>
9941
9942 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9943 * parser-defs.h (struct parser_state) <parser_state>: Add new
9944 parameter.
9945 <comma_terminates>: New member.
9946 (comma_terminates): Don't declare global.
9947 * parse.c (comma_terminates): Remove global.
9948 (parse_exp_in_context): Update.
9949 * p-exp.y (yylex): Update.
9950 * m2-exp.y (yylex): Update.
9951 * go-exp.y (lex_one_token): Update.
9952 * f-exp.y (yylex): Update.
9953 * d-exp.y (lex_one_token): Update.
9954 * c-exp.y (lex_one_token): Update.
9955 * ada-lex.l: Update.
9956
28aaf3fd
TT
99572019-04-04 Tom Tromey <tom@tromey.com>
9958
9959 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9960 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9961 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9962 * parser-defs.h (paren_depth): Don't declare.
9963 * parse.c (paren_depth): Remove global.
9964 (parse_exp_in_context): Update.
9965 * p-exp.y (paren_depth): New global.
9966 (pascal_parse): Initialize it.
9967 * m2-exp.y (paren_depth): New global.
9968 (m2_parse): Initialize it.
9969 * go-exp.y (paren_depth): New global.
9970 (go_parse): Initialize it.
9971 * f-exp.y (paren_depth): New global.
9972 (f_parse): Initialize it.
9973 * d-exp.y (paren_depth): New global.
9974 (d_parse): Initialize it.
9975 * c-exp.y (paren_depth): New global.
9976 (c_parse): Initialize it.
9977 * ada-lex.l (paren_depth): New global.
9978 (lexer_init): Initialize it.
9979
1e58a4a4
TT
99802019-04-04 Tom Tromey <tom@tromey.com>
9981
9982 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9983 (rust_parser::convert_ast_to_type)
9984 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9985 * parser-defs.h (struct parser_state) <parser_state>: Add
9986 parameters. Initialize new members.
9987 <expression_context_block, expression_context_pc>: New members.
9988 * parse.c (expression_context_block, expression_context_pc):
9989 Remove globals.
9990 (parse_exp_in_context): Update.
9991 * p-exp.y: Update all rules.
9992 (yylex): Update.
9993 * m2-exp.y: Update all rules.
9994 (yylex): Update.
9995 * go-exp.y (yylex): Update.
9996 * f-exp.y (yylex): Update.
9997 * d-exp.y: Update all rules.
9998 (yylex): Update.
9999 * c-exp.y: Update all rules.
10000 (lex_one_token, classify_name, yylex, c_parse): Update.
10001 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10002
37eedb39
TT
100032019-04-04 Tom Tromey <tom@tromey.com>
10004
10005 * gdbarch.h, gdbarch.c: Rebuild.
10006 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10007 * stap-probe.h:
10008 (struct stap_parse_info): Replace "parser_state" with
10009 "expr_builder".
10010 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10011 (parser_state): New class.
10012 * parse.c (expr_builder): Rename.
10013 (expr_builder::release): Rename.
10014 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10015 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10016 (write_exp_elt_longcst, write_exp_elt_floatcst)
10017 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10018 (write_exp_string_vector, write_exp_bitstring)
10019 (write_exp_msymbol, mark_struct_expression)
10020 (write_dollar_variable)
10021 (insert_type_address_space, increase_expout_size): Replace
10022 "parser_state" with "expr_builder".
10023 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10024 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10025 "parser_state" with "expr_builder".
10026
73923d7e
TT
100272019-04-04 Tom Tromey <tom@tromey.com>
10028
10029 * rust-exp.y: Replace "parse_language" with method call.
10030 * p-exp.y:
10031 (yylex): Replace "parse_language" with method call.
10032 * m2-exp.y:
10033 (yylex): Replace "parse_language" with method call.
10034 * go-exp.y (classify_name): Replace "parse_language" with method
10035 call.
10036 * f-exp.y (yylex): Replace "parse_language" with method call.
10037 * d-exp.y (lex_one_token): Replace "parse_language" with method
10038 call.
10039 * c-exp.y:
10040 (lex_one_token, classify_name, yylex): Replace "parse_language"
10041 with method call.
10042 * ada-exp.y (find_primitive_type, type_char)
10043 (type_system_address): Replace "parse_language" with method call.
10044
fa9f5be6
TT
100452019-04-04 Tom Tromey <tom@tromey.com>
10046
10047 * rust-exp.y: Replace "parse_gdbarch" with method call.
10048 * parse.c (write_dollar_variable, insert_type_address_space):
10049 Replace "parse_gdbarch" with method call.
10050 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10051 call.
10052 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10053 call.
10054 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10055 "parse_gdbarch" with method call.
10056 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10057 with method call.
10058 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10059 "parse_gdbarch" with method call.
10060 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10061 "parse_gdbarch" with method call.
10062 * c-exp.y (parse_type, parse_number, classify_name): Replace
10063 "parse_gdbarch" with method call.
10064 * ada-lex.l: Replace "parse_gdbarch" with method call.
10065 * ada-exp.y (parse_type, find_primitive_type, type_char)
10066 (type_system_address): Replace "parse_gdbarch" with method call.
10067
1201a264
TT
100682019-04-04 Tom Tromey <tom@tromey.com>
10069
10070 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10071 * stap-probe.c (stap_parse_argument): Update.
10072 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10073 initial_size parameter.
10074 * rust-exp.y (rust_lex_tests): Update.
10075 * parse.c (parser_state): Update.
10076 (parse_exp_in_context): Update.
10077 * parser-defs.h (struct parser_state) <parser_state>: Remove
10078 "initial_size" parameter.
10079
e3980ce2
TT
100802019-04-04 Tom Tromey <tom@tromey.com>
10081
10082 * parser-defs.h (increase_expout_size): Don't declare.
10083 * parse.c (increase_expout_size): Now static.
10084
e9f8e3f1
TS
100852019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10086
10087 * gnu-nat.c (gnu_nat_target::wait): Fix
10088 target_waitstatus_to_string call.
10089
d7df6549
AB
100902019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10091
10092 * eval.c (evaluate_subexp_standard): Handle internal functions
10093 during Fortran function call handling.
10094
8bdc1658
AB
100952019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10096
10097 * NEWS: Mention new internal functions.
10098 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10099 (read_base_type): Use dwarf2_init_complex_target_type.
10100 * value.c (creal_internal_fn): New function.
10101 (cimag_internal_fn): New function.
10102 (_initialize_values): Register new internal functions.
10103
c29705b7
PW
101042019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10105
10106 * infrun.c (stop_all_threads): If debug_infrun, always
10107 trace the wait status after wait_one, using
10108 target_waitstatus_to_string and target_pid_to_str.
10109 (handle_inferior_event): Replace various trace of
10110 wait status kind by a single trace.
10111 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10112 wait status kind image by target_waitstatus_to_string.
10113 * target/waitstatus.c (target_waitstatus_to_string): Fix
10114 obsolete comment.
10115
05caa1d2
TT
101162019-04-01 Tom Tromey <tromey@adacore.com>
10117
10118 PR symtab/23331:
10119 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10120
9d1447e0
SDJ
101212019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10122 Pedro Alves <palves@redhat.com>
10123
10124 * top.c (quit_force): Call 'finalize_values'.
10125 * value.c (finalize_values): New function.
10126 * value.h (finalize_values): Declare.
10127
7734102d
EZ
101282019-03-30 Eli Zaretskii <eliz@gnu.org>
10129
10130 * NEWS: Announce $_gdb_major and $_gdb_minor.
10131
10132 * top.c (init_gdb_version_vars): New function.
10133 (gdb_init): Call init_gdb_version_vars.
10134
188e1fa9
TT
101352019-03-29 Tom Tromey <tromey@adacore.com>
10136
10137 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10138 help text. Remove dead code.
10139
2880242d
KS
101402019-03-29 Keith Seitz <keiths@redhat.com>
10141
10142 From Siddhesh Poyarekar:
10143 * f-lang.h (f77_get_upperbound): Return LONGEST.
10144 (f77_get_lowerbound): Likewise.
10145 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10146 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10147 print them.
10148 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10149 plongest to format print it.
10150 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10151 (f77_get_upperbound): Likewise.
10152 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10153 LOWER_BOUND to LONGEST.
10154 (f77_create_arrayprint_offset_tbl): Likewise.
10155
cc1defb1
KS
101562019-03-29 Keith Seitz <keiths@redhat.com>
10157
10158 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10159 %s/pulongest for TYPE_LENGTH instead of %d in format
10160 strings.
10161 * ada-typerint.c (ada_print_type): Likewise.
10162 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10163 * compile/compile-c-support.c (generate_register_struct): Likewise.
10164 * gdbtypes.c (recursive_dump_type): Likewise.
10165 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10166 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10167 instead of %d in format strings.
10168 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10169 to std::min to ULONGEST.
10170 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10171 instead of %d in format strings.
10172 * tracepoint.c (info_scope_command): Likewise.
10173 * typeprint.c (print_offset_data::update)
10174 (print_offset_data::finish): Likewise.
10175 * xtensa-tdep.c (xtensa_store_return_value)
10176 (xtensa_push_dummy_call): Likewise.
10177
e432ccf1
JT
101782019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10179
10180 * windows-nat.c (display_selector): Fixed format specifications
10181 for 64-bit Cygwin.
10182
65d2b333
PW
101832019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10184
10185 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10186
f489207e
SL
101872019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10188
10189 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10190 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10191 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10192 (nios2_linux_init_abi): Install it.
10193
bffa1015
AH
101942019-03-28 Alan Hayward <alan.hayward@arm.com>
10195
10196 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10197
fc96163a
AH
101982019-03-28 Alan Hayward <alan.hayward@arm.com>
10199
10200 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10201
20dc7e9b
PW
102022019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10203 Tom Tromey <tromey@adacore.com>
10204
10205 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10206
7f5331a8
JB
102072019-03-26 Joel Brobecker <brobecker@adacore.com>
10208
10209 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10210 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10211 method to compute the bounds of range types. Also print "[evaluated]"
10212 if the bounds' values come from a dynamic evaluation.
10213
18c77628
AB
102142019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10215
10216 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10217 whitespace when pretty printing is on.
10218
53c973f2
AH
102192019-03-26 Alan Hayward <alan.hayward@arm.com>
10220
e79be6e5 10221 * ppc-linux-nat.c: Add include.
53c973f2 10222
d851aa71
AH
102232019-03-26 Alan Hayward <alan.hayward@arm.com>
10224
e79be6e5 10225 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 10226
2fe7bab7
AH
102272019-03-26 Alan Hayward <alan.hayward@arm.com>
10228
e79be6e5 10229 * arm-linux-nat.c: Add include.
2fe7bab7 10230
068ef30e
SM
102312019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10232
10233 * source-cache.c (source_cache::get_source_lines): Re-read
10234 fullname after calling open_source_file.
10235
81a24d04
JB
102362019-03-25 John Baldwin <jhb@FreeBSD.org>
10237
10238 * NEWS: Mention TLS support for FreeBSD.
10239
79e7ae11
TT
102402019-03-25 Tom Tromey <tromey@adacore.com>
10241
10242 * minsyms.c (BUNCH_SIZE): Update comment.
10243 (~minimal_symbol_reader): Remove old comment.
10244 (compact_minimal_symbols): Update comment.
10245 (minimal_symbol_reader::install): Remove old comment. Update
10246 other comments.
10247
d45963c2
AH
102482019-03-25 Alan Hayward <alan.hayward@arm.com>
10249
10250 * s390-linux-nat.c: Add include.
10251
0f83012e
AH
102522019-03-25 Alan Hayward <alan.hayward@arm.com>
10253
10254 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10255 Call linux_get_hwcap.
10256 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10257 Likewise.
10258 (aarch64_linux_get_hwcap): Remove function.
10259 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10260 declaration.
10261 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10262 linux_get_hwcap.
10263 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10264 * linux-tdep.c (linux_get_hwcap): Add function.
10265 (linux_get_hwcap2): Likewise.
10266 * linux-tdep.h (linux_get_hwcap): Add declaration.
10267 (linux_get_hwcap2): Likewise.
10268 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10269 (ppc_linux_get_hwcap2): Likewise.
10270 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10271 linux_get_hwcap.
10272 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10273 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10274 (ppc_linux_nat_target::read_description): Likewise.
10275 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10276 * s390-linux-nat.c: Likewise.
10277 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10278
6640a367
TT
102792019-03-24 Tom Tromey <tom@tromey.com>
10280
10281 * ada-lang.c (standard_lookup): Simplify initialization.
10282 (ada_lookup_symbol_nonlocal): Simplify return.
10283 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10284 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10285 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10286 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10287 initialization.
10288 * solib.c (solib_global_lookup): Simplify.
10289 * symtab.c (null_block_symbol): Remove.
10290 (symbol_cache_lookup): Simplify returns.
10291 (lookup_language_this): Simplify returns.
10292 (lookup_symbol_aux): Simplify return.
10293 (lookup_local_symbol): Simplify returns.
10294 (lookup_global_symbol_from_objfile): Simplify return.
10295 (lookup_symbol_in_objfile_symtabs)
10296 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10297 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10298 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10299 * cp-namespace.c (cp_lookup_bare_symbol)
10300 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10301 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10302 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10303 (cp_lookup_symbol_via_imports): Simplify initialization.
10304 (find_symbol_in_baseclass): Likewise.
10305 * symtab.h (null_block_symbol): Remove.
10306 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10307 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10308 (d_lookup_symbol_module): Likewise.
10309 (find_symbol_in_baseclass): Simplify initialization.
10310
a930ebcd
TT
103112019-03-24 Tom Tromey <tom@tromey.com>
10312
10313 * expression.h: Don't include symtab.h.
10314 (struct block): Forward declare.
10315
582942f4
TT
103162019-03-24 Tom Tromey <tom@tromey.com>
10317
10318 * c-exp.y (typebase): Remove casts.
10319 * gdbtypes.c (lookup_unsigned_typename, )
10320 (lookup_signed_typename): Remove cast.
10321 * eval.c (parse_to_comma_and_eval): Remove cast.
10322 * parse.c (write_dollar_variable): Remove cast.
10323 * block.h (struct block) <superblock>: Now const.
10324 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10325 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10326 (map_block): Make "block" const.
10327 * symfile.h (struct quick_symbol_functions)
10328 <map_matching_symbols>: Constify block argument to "callback".
10329 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10330 const.
10331 (find_pc_sect_compunit_symtab): Make "b" const.
10332 (find_symbol_at_address): Likewise.
10333 (search_symbols): Likewise.
10334 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10335 (dw2_debug_names_lookup_symbol): Likewise.
10336 (dw2_map_matching_symbols): Update.
10337 * p-valprint.c (pascal_val_print): Remove "block".
10338 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10339 (aux_add_nonlocal_symbols): Make "block" const.
10340 (resolve_subexp): Remove cast.
10341 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10342 const.
10343 (iterate_over_file_blocks): Likewise.
10344 * f-exp.y (%union) <bval>: Remove.
10345 * coffread.c (patch_opaque_types): Make "b" const.
10346 * spu-tdep.c (spu_catch_start): Make "block" const.
10347 * c-valprint.c (print_unpacked_pointer): Remove "block".
10348 * symmisc.c (dump_symtab_1): Make "b" const.
10349 (block_depth): Make "block" const.
10350 * d-exp.y (%union) <bval>: Remove.
10351 * cp-support.h (cp_lookup_rtti_type): Update.
10352 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10353 * psymtab.c (psym_lookup_symbol): Make "block" const.
10354 (maintenance_check_psymtabs): Make "b" const.
10355 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10356 (enumerate_locals, enumerate_args): Update.
10357 * python/py-symtab.c (stpy_global_block): Make "block" const.
10358 (stpy_static_block): Likewise.
10359 * inline-frame.c (block_starting_point_at): Make "new_block"
10360 const.
10361 * block.c (find_block_in_blockvector): Make return type const.
10362 (blockvector_for_pc_sect): Make "b" const.
10363 (find_block_in_blockvector): Make "b" const.
10364
7ad417dd
TT
103652019-03-23 Tom Tromey <tom@tromey.com>
10366
10367 * varobj.c (varobj_create): Update.
10368 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10369 * printcmd.c (display_command, do_one_display): Don't reset
10370 innermost_block.
10371 * parser-defs.h (enum innermost_block_tracker_type): Move to
10372 expression.h.
10373 (innermost_block): Update comment.
10374 * parse.c (parse_exp_1): Add tracker_types parameter.
10375 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10376 tracker_types parameter. Reset innermost_block.
10377 (parse_exp_in_context): Remove.
10378 (parse_expression_for_completion): Update.
10379 * objfiles.c (~objfile): Don't reset expression_context_block or
10380 innermost_block.
10381 * expression.h (enum innermost_block_tracker_type): Move from
10382 parser-defs.h.
10383 (parse_exp_1): Add tracker_types parameter.
10384 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10385 reset innermost_block.
10386
b366c208
TT
103872019-03-23 Tom Tromey <tom@tromey.com>
10388
10389 * objfiles.h: Include bcache.h.
10390
9bb9b2f9
TT
103912019-03-23 Tom Tromey <tom@tromey.com>
10392
10393 * linespec.c (get_current_search_block): Use
10394 scoped_restore_current_language.
10395 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10396
59c28372
AH
103972019-03-22 Alan Hayward <alan.hayward@arm.com>
10398 Jiong Wang <jiong.wang@arm.com>
10399
10400 * aarch64-linux-tdep.c
10401 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10402 section.
10403 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10404
17e116a7
AH
104052019-03-22 Alan Hayward <alan.hayward@arm.com>
10406 Jiong Wang <jiong.wang@arm.com>
10407
10408 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10409 instructions.
10410 (aarch64_analyze_prologue_test): Add PACIASP test.
10411 (aarch64_prologue_prev_register): Unmask PC value.
10412
11e1b75f
AH
104132019-03-22 Alan Hayward <alan.hayward@arm.com>
10414 Jiong Wang <jiong.wang@arm.com>
10415
10416 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10417 (aarch64_dwarf2_prev_register): Unmask PC value.
10418 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10419 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10420 DW_CFA_AARCH64_negate_ra_state.
10421 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10422
34dcc7cf
AH
104232019-03-22 Alan Hayward <alan.hayward@arm.com>
10424 Jiong Wang <jiong.wang@arm.com>
10425
10426 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10427 registers.
10428 (aarch64_pseudo_register_name): Likewise.
10429 (aarch64_pseudo_register_type): Likewise.
10430 (aarch64_pseudo_register_reggroup_p): Likewise.
10431 (aarch64_gdbarch_init): Add pauth registers.
10432 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10433 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10434 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10435 (struct gdbarch_tdep): Add regnum for ra_state.
10436
1ef53e6b
AH
104372019-03-22 Alan Hayward <alan.hayward@arm.com>
10438 Jiong Wang <jiong.wang@arm.com>
10439
10440 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10441
76bed0fd
AH
104422019-03-22 Alan Hayward <alan.hayward@arm.com>
10443 Jiong Wang <jiong.wang@arm.com>
10444
10445 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10446 function.
10447 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10448 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10449 (aarch64_gdbarch_init): Add puth registers.
10450 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10451 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10452 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10453
ee4fbcfa
AH
104542019-03-22 Alan Hayward <alan.hayward@arm.com>
10455 Jiong Wang <jiong.wang@arm.com>
10456
10457 * aarch64-linux-nat.c
10458 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10459 * aarch64-linux-tdep.c
10460 (aarch64_linux_core_read_description): Likewise.
10461 (aarch64_linux_get_hwcap): New function.
10462 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10463 (aarch64_linux_get_hwcap): New declaration.
10464
6dc0ebde
AH
104652019-03-22 Alan Hayward <alan.hayward@arm.com>
10466 Jiong Wang <jiong.wang@arm.com>
10467
10468 * aarch64-linux-nat.c
10469 (aarch64_linux_nat_target::read_description): Add pauth param.
10470 * aarch64-linux-tdep.c
10471 (aarch64_linux_core_read_description): Likewise.
10472 * aarch64-tdep.c (struct target_desc): Add in pauth.
10473 (aarch64_read_description): Add pauth param.
10474 (aarch64_gdbarch_init): Likewise.
10475 * aarch64-tdep.h (aarch64_read_description): Likewise.
10476 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10477 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10478 * features/Makefile: Add new files.
10479 * features/aarch64-pauth.c: New file.
10480 * features/aarch64-pauth.xml: New file.
10481
595915c1
TT
104822019-03-20 Tom Tromey <tromey@adacore.com>
10483
10484 * infrun.c (handle_inferior_event): Rename from
10485 handle_inferior_event_1. Create a scoped_value_mark.
10486 (handle_inferior_event): Remove.
10487
4c7d57e7
TT
104882019-03-19 Tom Tromey <tromey@adacore.com>
10489
10490 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10491 * infrun.h (print_stop_event): Add "displays" parameter.
10492 * infrun.c (print_stop_event): Add "displays" parameter.
10493
cb246234
PA
104942019-03-19 Pedro Alves <palves@redhat.com>
10495
10496 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10497 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10498 to -1. Fix TABs vs spaces.
10499 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10500 * tui/tui-out.h (tui_ui_out) Add intro comments.
10501 <m_line, m_start_of_line>: In-class initialize, and add describing
10502 comment.
10503
3a0e45b2
AH
105042019-03-18 Alan Hayward <alan.hayward@arm.com>
10505
10506 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10507 variable names.
10508 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10509
5371b850
PA
105102019-03-18 Pedro Alves <palves@redhat.com>
10511 Eli Zaretskii <eliz@gnu.org>
10512
10513 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10514 m_line and m_start_of_line.
10515
b17c4cd0
EZ
105162019-03-18 Eli Zaretskii <eliz@gnu.org>
10517
10518 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10519 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10520 it returns a newline. This fixes a regression in TU mode, whereby
10521 the next line is output on the same screen line as the user input.
10522
4bd56d18
TT
105232019-03-18 Tom Tromey <tromey@adacore.com>
10524
10525 * minsyms.c (minimal_symbol_reader::install): Remove call to
10526 obstack_blank.
10527
55c10aca
PA
105282019-03-18 Pedro Alves <palves@redhat.com>
10529
10530 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10531 New globals.
10532 (apply_style): New, factored out from ...
10533 (apply_ansi_escape): ... this. Handle reverse video mode.
10534 (tui_set_reverse_mode): New function.
10535 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10536 * tui/tui-winsource.c (tui_show_source_line): Use
10537 tui_set_reverse_mode instead of setting A_STANDOUT.
10538 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10539 New setter methods.
10540
647bb750
HD
105412019-03-18 Hannes Domani <ssbssa@yahoo.de>
10542
10543 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10544 Handle tabs.
10545
bff8c71f
TT
105462019-03-18 Tom Tromey <tromey@adacore.com>
10547
10548 * ada-lang.c (empty_array): Add "high" parameter.
10549 (ada_evaluate_subexp): Update.
10550
58785d98
ST
105512019-03-17 Sergei Trofimovich <siarheit@google.com>
10552
10553 * unittests/string_view-selftests.c: Define
10554 _initialize_string_view_selftests unconditionally.
10555
d4cbef22
ВМ
105562019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10557
10558 PR gdb/24350
10559 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10560
fce4c071
ВМ
105612019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10562
10563 PR gdb/24351
10564 * windows-nat.c (display_selector): Fix format specifiers.
10565
f7f0a123
EZ
105662019-03-17 Eli Zaretskii <eliz@gnu.org>
10567
10568 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10569 tui_refill_source_window instead of tui_refresh_win, to update the
10570 current execution line. This fixes redisplay of the current line
10571 when stepping through the code with "next" or "step".
10572
ab42892f
EZ
105732019-03-16 Eli Zaretskii <eliz@gnu.org>
10574
10575 * source-cache.c (source_cache::get_source_lines): Call
10576 find_source_lines to initialize s->nlines. This fixes vertical
10577 scrolling of TUI source window when the DOWN arrow is pressed.
10578
8d8c087f
PW
105792019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10580
10581 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10582 linux-thread-db.c (_initialize_thread_db): Likewise.
10583
798e1c30
EZ
105842019-03-16 Eli Zaretskii <eliz@gnu.org>
10585
10586 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10587 wclrtoeol in tui_show_source_line". This reverts changes made in
10588 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10589
eefba3da
TT
105902019-03-15 Tom Tromey <tom@tromey.com>
10591
10592 * symtab.h (struct minimal_symbol): Derive from
10593 general_symbol_info.
10594 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10595 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10596 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10597 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10598 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10599 (MSYMBOL_SEARCH_NAME): Update.
10600 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10601 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10602 * minsyms.c (minimal_symbol_reader::record_full): Update.
10603
0de2420c
TT
106042019-03-15 Tom Tromey <tom@tromey.com>
10605
10606 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10607
042d75e4
TT
106082019-03-15 Tom Tromey <tom@tromey.com>
10609
10610 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10611 unique_xmalloc_ptr.
10612 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10613 Update.
10614 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10615 (build_minimal_symbol_hash_tables)
10616 (minimal_symbol_reader::install): Update.
10617
db92718b
TT
106182019-03-15 Tom Tromey <tom@tromey.com>
10619
10620 * symtab.c (create_demangled_names_hash): Update.
10621 (symbol_set_names): Update.
10622 * objfiles.h (struct objfile_per_bfd_storage)
10623 <demangled_names_hash>: Now an htab_up.
10624 * objfiles.c (objfile_per_bfd_storage): Simplify.
10625
d6797f46
TT
106262019-03-15 Tom Tromey <tom@tromey.com>
10627
10628 * objfiles.h (struct objfile_per_bfd_storage): Declare
10629 destructor.
10630 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10631 New.
10632 (get_objfile_bfd_data): Use new. Don't initialize
10633 language_of_main.
10634 (free_objfile_per_bfd_storage): Remove.
10635 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10636
741d7538
TT
106372019-03-15 Tom Tromey <tom@tromey.com>
10638
10639 * symfile.c (reread_symbols): Update.
10640 * objfiles.c (objfile::objfile): Update.
10641 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10642 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10643 comment.
10644 (minimal_symbol_reader::install): Update.
10645 (terminate_minimal_symbol_table): Remove.
10646 * jit.c (jit_object_close_impl): Update.
10647
788c80d1
TT
106482019-03-15 Tom Tromey <tom@tromey.com>
10649
10650 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10651 initializations.
10652
1b7a07cb
TT
106532019-03-15 Tom Tromey <tom@tromey.com>
10654
10655 * objfiles.h (struct objfile_per_bfd_storage)
10656 <demangled_hash_languages>: Now a bitset.
10657 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10658 (lookup_minimal_symbol): Update.
10659
3db066bc
TT
106602019-03-15 Tom Tromey <tom@tromey.com>
10661
10662 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10663 Don't return the symbol.
10664 * coffread.c (record_minimal_symbol): Use record_full.
10665
3fff2c37
EZ
106662019-03-14 Eli Zaretskii <eliz@gnu.org>
10667
10668 The MS-Windows port of ncurses fails to switch to a color pair if
10669 one or both of the colors are the implicit default colors. This
10670 change records the default colors when TUI is initialized, and
10671 then specifies them explicitly when a color pair uses the default
10672 colors. This allows color styling in TUI mode on MS-Windows.
10673
10674 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10675 ncurses_norm_attr.
10676 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10677 colors in ncurses_norm_attr.
10678 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10679 "none", replace it with the default color recorded in
10680 ncurses_norm_attr.
10681
3b336828
TT
106822019-03-14 Tom Tromey <tromey@adacore.com>
10683
10684 * source-cache.h (class source_cache) <get_source_lines>: Return
10685 std::string.
10686 * source-cache.c (source_cache::extract_lines): Handle case where
10687 first_pos==npos. Return std::string.
10688 (source_cache::get_source_lines): Update.
10689
d085f989
TT
106902019-03-14 Tom Tromey <tromey@adacore.com>
10691
10692 * NEWS: Add item for "style sources" commands.
10693 * source-cache.c (source_cache::get_source_lines): Check
10694 source_styling.
10695 * cli/cli-style.c (source_styling): New global.
10696 (_initialize_cli_style): Add "style sources" commands.
10697 (show_style_sources): New function.
10698 * cli/cli-style.h (source_styling): Declare.
10699
6f11e682
TT
107002019-03-14 Pedro Alves <palves@redhat.com>
10701 Tom Tromey <tromey@adacore.com>
10702
10703 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10704 * tui/tui-winsource.c (tui_refill_source_window): New function,
10705 from...
10706 (tui_horizontal_source_scroll): ... here. Move some logic.
10707 * cli/cli-style.c (set_style_enabled): Notify new observable.
10708 * tui/tui-hooks.c (tui_redisplay_source): New function.
10709 (tui_attach_detach_observers): Attach or detach
10710 tui_redisplay_source.
10711 * observable.h (source_styling_changed): New observable.
10712 * observable.c: Define source_styling_changed observable.
10713
a068643d
TT
107142019-03-13 Tom Tromey <tromey@adacore.com>
10715
10716 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10717 (i386_gnu_nat_target::store_registers): Update.
10718 * target-debug.h (target_debug_print_std_string): New macro.
10719 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10720 * windows-tdep.c (display_one_tib): Update.
10721 * tui/tui-stack.c (tui_make_status_line): Update.
10722 * top.c (print_inferior_quit_action): Update.
10723 * thread.c (thr_try_catch_cmd): Update.
10724 (add_thread_with_info): Update.
10725 (thread_target_id_str): Update.
10726 (thr_try_catch_cmd): Update.
10727 (thread_command): Update.
10728 (thread_find_command): Update.
10729 * record-btrace.c (record_btrace_target::info_record)
10730 (record_btrace_resume_thread, record_btrace_target::resume)
10731 (record_btrace_cancel_resume, record_btrace_step_thread)
10732 (record_btrace_target::wait, record_btrace_target::wait)
10733 (record_btrace_target::wait, record_btrace_target::stop): Update.
10734 * progspace.c (print_program_space): Update.
10735 * process-stratum-target.c
10736 (process_stratum_target::thread_address_space): Update.
10737 * linux-fork.c (linux_fork_mourn_inferior)
10738 (detach_checkpoint_command, info_checkpoints_command)
10739 (linux_fork_context): Update.
10740 (linux_fork_detach): Update.
10741 (class scoped_switch_fork_info): Update.
10742 (delete_checkpoint_command): Update.
10743 * infrun.c (follow_fork_inferior): Update.
10744 (follow_fork_inferior): Update.
10745 (proceed_after_vfork_done): Update.
10746 (handle_vfork_child_exec_or_exit): Update.
10747 (follow_exec): Update.
10748 (displaced_step_prepare_throw): Update.
10749 (displaced_step_restore): Update.
10750 (start_step_over): Update.
10751 (resume_1): Update.
10752 (clear_proceed_status_thread): Update.
10753 (proceed): Update.
10754 (print_target_wait_results): Update.
10755 (do_target_wait): Update.
10756 (context_switch): Update.
10757 (stop_all_threads): Update.
10758 (restart_threads): Update.
10759 (finish_step_over): Update.
10760 (handle_signal_stop): Update.
10761 (switch_back_to_stepped_thread): Update.
10762 (keep_going_pass_signal): Update.
10763 (print_exited_reason): Update.
10764 (normal_stop): Update.
10765 * inferior.c (inferior_pid_to_str): Change return type.
10766 (print_selected_inferior): Update.
10767 (add_inferior): Update.
10768 (detach_inferior): Update.
10769 * dummy-frame.c (fprint_dummy_frames): Update.
10770 * dcache.c (dcache_info_1): Update.
10771 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10772 (btrace_fetch, btrace_clear): Update.
10773 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10774 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10775 type.
10776 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10777 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10778 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10779 * gdbarch.c, gdbarch.h: Rebuild.
10780 * gdbarch.sh (core_pid_to_str): Change return type.
10781 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10782 return type.
10783 (windows_nat_target::pid_to_str): Change return type.
10784 (windows_delete_thread): Update.
10785 (windows_nat_target::attach): Update.
10786 (windows_nat_target::files_info): Update.
10787 * target-delegates.c: Rebuild.
10788 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10789 return type.
10790 (sol_thread_target::pid_to_str): Change return type.
10791 * remote.c (class remote_target) <pid_to_str>: Change return
10792 type.
10793 (remote_target::pid_to_str): Change return type.
10794 (extended_remote_target::attach, remote_target::remote_stop_ns)
10795 (remote_target::remote_notif_remove_queued_reply)
10796 (remote_target::push_stop_reply, remote_target::disable_btrace):
10797 Update.
10798 (extended_remote_target::attach): Update.
10799 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10800 type.
10801 (gdbsim_target::pid_to_str): Change return type.
10802 * ravenscar-thread.c (struct ravenscar_thread_target)
10803 <pid_to_str>: Change return type.
10804 (ravenscar_thread_target::pid_to_str): Change return type.
10805 * procfs.c (class procfs_target) <pid_to_str>: Change return
10806 type.
10807 (procfs_target::pid_to_str): Change return type.
10808 (procfs_target::attach): Update.
10809 (procfs_target::detach): Update.
10810 (procfs_target::fetch_registers): Update.
10811 (procfs_target::store_registers): Update.
10812 (procfs_target::wait): Update.
10813 (procfs_target::files_info): Update.
10814 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10815 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10816 return type.
10817 (nto_procfs_target::pid_to_str): Change return type.
10818 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10819 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10820 return type.
10821 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10822 (exit_lwp): Update.
10823 (attach_proc_task_lwp_callback, get_detach_signal)
10824 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10825 (linux_nat_target::resume, wait_lwp, stop_callback)
10826 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10827 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10828 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10829 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10830 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10831 type.
10832 (inf_ptrace_target::attach): Update.
10833 (inf_ptrace_target::files_info): Update.
10834 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10835 type.
10836 (go32_nat_target::pid_to_str): Change return type.
10837 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10838 (gnu_nat_target::wait): Update.
10839 (gnu_nat_target::wait): Update.
10840 (gnu_nat_target::resume): Update.
10841 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10842 (fbsd_nat_target::wait): Update.
10843 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10844 type.
10845 (darwin_nat_target::attach): Update.
10846 * corelow.c (class core_target) <pid_to_str>: Change return type.
10847 (core_target::pid_to_str): Change return type.
10848 * target.c (normal_pid_to_str): Change return type.
10849 (default_pid_to_str): Likewise.
10850 (target_pid_to_str): Change return type.
10851 (target_translate_tls_address): Update.
10852 (target_announce_detach): Update.
10853 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10854 return type.
10855 (bsd_uthread_target::pid_to_str): Change return type.
10856 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10857 type.
10858 (bsd_kvm_target::pid_to_str): Change return type.
10859 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10860 return type.
10861 (aix_thread_target::pid_to_str): Change return type.
10862 * target.h (struct target_ops) <pid_to_str>: Change return type.
10863 (target_pid_to_str, normal_pid_to_str): Likewise.
10864 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10865 type.
10866 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10867 type.
10868 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10869 return type.
10870 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10871 type.
10872 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10873 type.
10874 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10875 return type.
10876
b4be1b06
SM
108772019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10878
10879 * NEWS: Mention that the new default MI version is 3. Mention
10880 changes to the output of commands and events that deal with
10881 multi-location breakpoints.
10882 * breakpoint.c: Include "mi/mi-out.h".
10883 (print_one_breakpoint): Change output syntax if using MI version
10884 >= 3.
10885 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10886 New.
10887 (mi_multi_location_breakpoint_output_fixed): New.
10888 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10889 (mi_cmd_fix_multi_location_breakpoint_output): New.
10890 (mi_multi_location_breakpoint_output_fixed): New.
10891 * mi/mi-cmds.c (mi_cmds): Register command
10892 -fix-multi-location-breakpoint-output.
10893 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10894 interpreter "mi".
10895
8e5e5494
SM
108962019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10897
10898 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10899 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10900 instantiate mi_ui_out based on interpreter name.
10901 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10902 * mi/mi-main.c (mi_load_progress): Likewise.
10903
197df35e
JB
109042019-03-12 John Baldwin <jhb@FreeBSD.org>
10905
10906 * NEWS: Combine separate "New targets" sections for 8.3.
10907
8399425f
JB
109082019-03-12 John Baldwin <jhb@FreeBSD.org>
10909
10910 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10911 (ppcfbsd_init_abi): Install gdbarch
10912 "fetch_tls_load_module_address" and "get_thread_local_address"
10913 methods.
10914
b0f87ed0
JB
109152019-03-12 John Baldwin <jhb@FreeBSD.org>
10916
10917 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10918 (riscv_fbsd_init_abi): Install gdbarch
10919 "fetch_tls_load_module_address" and "get_thread_local_address"
10920 methods.
10921
ce25aa57
JB
109222019-03-12 John Baldwin <jhb@FreeBSD.org>
10923
10924 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10925 (i386fbsd_init_abi): Install gdbarch
10926 "fetch_tls_load_module_address" and "get_thread_local_address"
10927 methods.
10928
f5424cfa
JB
109292019-03-12 John Baldwin <jhb@FreeBSD.org>
10930
10931 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10932 (amd64fbsd_init_abi): Install gdbarch
10933 "fetch_tls_load_module_address" and "get_thread_local_address"
10934 methods.
10935
945f3901
JB
109362019-03-12 John Baldwin <jhb@FreeBSD.org>
10937
10938 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10939 (struct fbsd_pspace_data): New type.
10940 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10941 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10942 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10943 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10944 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10945
ef0bd204
JB
109462019-03-12 John Baldwin <jhb@FreeBSD.org>
10947
10948 * gdbtypes.c (lookup_struct_elt): New function.
10949 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10950 * gdbtypes.h (struct struct_elt): New type.
10951 (lookup_struct_elt): New prototype.
10952
36c53a02
JB
109532019-03-12 John Baldwin <jhb@FreeBSD.org>
10954
10955 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10956 remove disabled code block.
10957
6e056c81
JB
109582019-03-12 John Baldwin <jhb@FreeBSD.org>
10959
10960 * gdbarch.sh (get_thread_local_address): New method.
10961 * gdbarch.h, gdbarch.c: Regenerate.
10962 * target.c (target_translate_tls_address): Use
10963 gdbarch_get_thread_local_address if present instead of
10964 target::get_thread_local_address.
10965
cd250a18
JB
109662019-03-12 John Baldwin <jhb@FreeBSD.org>
10967
10968 * target.h (target::get_thread_local_address): Update comment.
10969
df22c1e5
JB
109702019-03-12 John Baldwin <jhb@FreeBSD.org>
10971
10972 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10973 objfile->separate_debug_objfile_backlink if not NULL.
10974
dd6876c9
JB
109752019-03-12 John Baldwin <jhb@FreeBSD.org>
10976
10977 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10978 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10979 (amd64bsd_store_inferior_registers): Likewise.
10980 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10981 Enable segment base registers.
10982 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10983 PT_GETFSBASE and PT_GETGSBASE.
10984 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10985 PT_SETGSBASE.
10986 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10987 segment base registers.
10988 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10989
1163a4b7
JB
109902019-03-12 John Baldwin <jhb@FreeBSD.org>
10991
10992 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10993 Update calls to i386_target_description to add 'segments'
10994 parameter.
10995 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10996 add segment base registers.
10997 * arch/i386.c (i386_create_target_description): Add 'segments'
10998 parameter to enable segment base registers.
10999 * arch/i386.h (i386_create_target_description): Likewise.
11000 * features/i386/32bit-segments.xml: New file.
11001 * features/i386/32bit-segments.c: Generate.
11002 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11003 call to i386_target_description to add 'segments' parameter.
11004 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11005 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11006 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11007 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11008 if feature is present.
11009 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11010 Add 'segments' parameter to call to i386_target_description.
11011 (i386_target_description): Add 'segments' parameter to enable
11012 segment base registers.
11013 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11014 to call to i386_target_description.
11015 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11016 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11017 Define I386_NUM_REGS.
11018 (i386_target_description): Add 'segments' parameter to enable
11019 segment base registers.
11020
3a350822
EZ
110212019-03-12 Eli Zaretskii <eliz@gnu.org>
11022
11023 PR/24325
11024 * source-cache.c: #undef open and close, to avoid unresolved
11025 externals during linking.
11026
ffdd69cf
TT
110272019-03-12 Tom Tromey <tromey@adacore.com>
11028
11029 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11030 const. Add initializers.
11031 (_initialize_remote): Don't initialize ptid globals.
11032
ec148c57
PA
110332019-03-12 Pedro Alves <palves@redhat.com>
11034
11035 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11036
32764270
PA
110372019-03-12 Pedro Alves <palves@redhat.com>
11038
11039 * cp-name-parser.y (main): Remove unused 'len' variable.
11040
17547186
TT
110412019-03-12 Tom Tromey <tromey@adacore.com>
11042
11043 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11044 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11045
d3a70e03
TT
110462019-03-12 Tom Tromey <tromey@adacore.com>
11047
11048 * linux-nat.c (iterate_over_lwps): Update.
11049 (stop_callback): Remove parameter.
11050 (stop_wait_callback, detach_callback, resume_set_callback)
11051 (select_singlestep_lwp_callback, set_ignore_sigint)
11052 (status_callback, resumed_callback, resume_clear_callback)
11053 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11054 data parameter.
11055 (linux_nat_target::detach, linux_nat_target::resume)
11056 (linux_stop_and_wait_all_lwps, select_event_lwp)
11057 (linux_nat_filter_event, linux_nat_wait_1)
11058 (linux_nat_target::kill, linux_nat_target::stop)
11059 (linux_nat_target::stop): Update.
11060 (linux_nat_resume_callback): Change type.
11061 (resume_stopped_resumed_lwps, count_events_callback)
11062 (select_event_lwp_callback): Likewise.
11063 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11064 * arm-linux-nat.c (struct update_registers_data): Remove.
11065 (update_registers_callback): Change type.
11066 (arm_linux_insert_hw_breakpoint1): Update.
11067 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11068 parameter.
11069 (x86_linux_dr_set_addr): Update.
11070 (x86_linux_dr_set_control): Update.
11071 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11072 (iterate_over_lwps): Use gdb::function_view.
11073 * nat/aarch64-linux-hw-point.c (struct
11074 aarch64_dr_update_callback_param): Remove.
11075 (debug_reg_change_callback): Change type.
11076 (aarch64_notify_debug_reg_change): Update.
11077 * s390-linux-nat.c (s390_refresh_per_info): Update.
11078
82cb27ff
TT
110792019-03-11 Tom Tromey <tromey@adacore.com>
11080
11081 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11082 redundant assignment to "this_cu".
11083
568c0683
SM
110842019-03-08 Simon Marchi <simon.marchi@efficios.com>
11085
11086 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11087
f09ce22d
SM
110882019-03-08 Simon Marchi <simon.marchi@efficios.com>
11089
11090 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11091 from...
11092 (rank_one_type): ... this.
11093
595f96a9
SM
110942019-03-08 Simon Marchi <simon.marchi@efficios.com>
11095
11096 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11097 from...
11098 (rank_one_type): ... this.
11099
2598a94b
SM
111002019-03-08 Simon Marchi <simon.marchi@efficios.com>
11101
11102 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11103 from...
11104 (rank_one_type): ... this.
11105
7f17b20d
SM
111062019-03-08 Simon Marchi <simon.marchi@efficios.com>
11107
11108 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11109 from...
11110 (rank_one_type): ... this.
11111
2c509035
SM
111122019-03-08 Simon Marchi <simon.marchi@efficios.com>
11113
11114 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11115 from...
11116 (rank_one_type): ... this.
11117
0dd322dc
SM
111182019-03-08 Simon Marchi <simon.marchi@efficios.com>
11119
11120 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11121 from...
11122 (rank_one_type): ... this.
11123
41ea4728
SM
111242019-03-08 Simon Marchi <simon.marchi@efficios.com>
11125
11126 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11127 from...
11128 (rank_one_type): ... this.
11129
793cd1d2
SM
111302019-03-08 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11133 from...
11134 (rank_one_type): ... this.
11135
34910087
SM
111362019-03-08 Simon Marchi <simon.marchi@efficios.com>
11137
11138 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11139 from...
11140 (rank_one_type): ... this.
11141
f1f832d6
SM
111422019-03-08 Simon Marchi <simon.marchi@efficios.com>
11143
11144 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11145 from...
11146 (rank_one_type): ... this.
11147
b9f4512f
SM
111482019-03-08 Simon Marchi <simon.marchi@efficios.com>
11149
11150 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11151 from...
11152 (rank_one_type): ... this.
11153
9293fc63
SM
111542019-03-08 Simon Marchi <simon.marchi@efficios.com>
11155
11156 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11157 from...
11158 (rank_one_type): ... this.
11159
e3abbe7e
PW
111602019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11161
11162 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11163 inferior-events' shows the example events.
11164
e4adb939
EZ
111652019-03-08 Eli Zaretskii <eliz@gnu.org>
11166
11167 Support styling on native MS-Windows console
11168
11169 PR/24315
11170 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11171 on MS-Windows if $TERM is not defined.
11172
11173 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11174
11175 * posix-hdep.c (gdb_console_fputs):
11176 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11177 functions.
11178 * ui-file.h (gdb_console_fputs): Add prototype.
11179
11180 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11181 back to fputs only if the former returns zero.
11182
25629dfd
TT
111832019-03-07 Tom Tromey <tom@tromey.com>
11184
11185 * symmisc.c (print_symbol_bcache_statistics): Update.
11186 (print_objfile_statistics): Update.
11187 * symfile.c (allocate_symtab): Update.
11188 * stabsread.c: Don't include bcache.h.
11189 * psymtab.h (struct psymbol_bcache): Don't declare.
11190 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11191 (psymbol_bcache_init, psymbol_bcache_free)
11192 (psymbol_bcache_get_bcache): Don't declare.
11193 * psymtab.c (struct psymbol_bcache): Remove.
11194 (psymtab_storage::psymtab_storage): Update.
11195 (psymtab_storage::~psymtab_storage): Update.
11196 (psymbol_bcache_init, psymbol_bcache_free)
11197 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11198 (add_psymbol_to_bcache): Update.
11199 (allocate_psymtab): Update.
11200 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11201 macro_cache>: No longer pointers.
11202 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11203 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11204 * macrotab.c (macro_bcache): Update.
11205 * macroexp.c: Don't include bcache.h.
11206 * gdbtypes.c (check_types_worklist): Update.
11207 (types_deeply_equal): Remove TRY/CATCH. Update.
11208 * elfread.c (elf_symtab_read): Update.
11209 * dwarf2read.c: Don't include bcache.h.
11210 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11211 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11212 (print_bcache_statistics, bcache_memory_used): Don't declare.
11213 (struct bcache): Move from bcache.c. Add constructor, destructor,
11214 methods. Rename all data members.
11215 * bcache.c (struct bcache): Move to bcache.h.
11216 (bcache::expand_hash_table): Rename from expand_hash_table.
11217 (bcache): Remove.
11218 (bcache::insert): Rename from bcache_full.
11219 (bcache::compare): Rename from bcache_compare.
11220 (bcache_xmalloc): Remove.
11221 (bcache::~bcache): Rename from bcache_xfree.
11222 (bcache::print_statistics): Rename from print_bcache_statistics.
11223 (bcache::memory_used): Rename from bcache_memory_used.
11224
fe726667
PA
112252019-03-07 Pedro Alves <palves@redhat.com>
11226
11227 * infrun.c (normal_stop): Also check for
11228 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11229
7584bb30
AB
112302019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11231
11232 * f-lang.c (value_from_host_double): Moved to...
11233 * value.c (value_from_host_double): ...here.
11234 * value.h (value_from_host_double): Declare.
11235 * guile/scm-math.c (vlscm_convert_typed_number): Use
11236 value_from_host_double.
11237 (vlscm_convert_number): Likewise.
11238 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11239 * python/py-value.c (convert_value_from_python): Likewise.
11240
a7b1986e
TT
112412019-03-06 Tom Tromey <tom@tromey.com>
11242
11243 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11244
0ccf4211
TT
112452019-03-06 Tom Tromey <tom@tromey.com>
11246
11247 * utils.h (free_current_contents): Don't declare.
11248 * utils.c (free_current_contents): Remove.
11249
fe7b42e5
TT
112502019-03-06 Tom Tromey <tom@tromey.com>
11251
11252 * top.c (quit_force): Update.
11253 * main.c (captured_command_loop): Update.
11254 * common/new-op.c (operator new): Update.
11255 * common/common-exceptions.c (struct catcher)
11256 <save_cleanup_chain>: Remove member.
11257 (exceptions_state_mc_init): Update.
11258 (exception_try_scope_entry): Return nullptr.
11259 (exception_try_scope_exit, exception_rethrow)
11260 (throw_exception_sjlj, throw_exception_cxx): Update.
11261 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11262 (all_cleanups, do_cleanups, discard_cleanups)
11263 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11264 (restore_cleanups, restore_final_cleanups): Don't declare.
11265 (do_final_cleanups): Remove parameter.
11266 * common/cleanups.c (cleanup_chain, make_cleanup)
11267 (make_cleanup_dtor, all_cleanups, do_cleanups)
11268 (discard_my_cleanups, discard_cleanups)
11269 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11270 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11271 (null_cleanup): Remove.
11272 (do_final_cleanups): Remove parameter.
11273
c6321f19
TT
112742019-03-06 Tom Tromey <tom@tromey.com>
11275
11276 * remote.c (remote_target::remote_parse_stop_reply): Use
11277 unique_xmalloc_ptr.
11278
61b30099
TT
112792019-03-06 Tom Tromey <tom@tromey.com>
11280
11281 * stabsread.c (struct stabs_field_info): Rename from field_info.
11282 <list, fnlist>: Add initializers.
11283 <obstack>: New member.
11284 (read_member_functions, read_struct_fields, read_baseclasses):
11285 Allocate on obstack. Don't use cleanups.
11286 (read_one_struct_field, read_member_functions, read_struct_fields)
11287 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11288 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11289 (read_struct_type): Update.
11290
6cceac94
TT
112912019-03-06 Tom Tromey <tom@tromey.com>
11292
11293 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11294 * common/filestuff.h (make_cleanup_close): Don't declare.
11295 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11296 Remove.
11297
72412762
TT
112982019-03-06 Tom Tromey <tom@tromey.com>
11299
11300 * solib-aix.c: Use make_scope_exit.
11301
2b6ff1c0
TT
113022019-03-06 Tom Tromey <tom@tromey.com>
11303
11304 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11305 Use make_scope_exit.
11306
d01c5877
TT
113072019-03-06 Tom Tromey <tom@tromey.com>
11308
11309 * solib-svr4.c (disable_probes_interface): Remove parameter.
11310 (svr4_handle_solib_event): Use make_scope_exit.
11311
32603266
TT
113122019-03-06 Tom Tromey <tom@tromey.com>
11313
11314 * remote.c (struct stop_reply_deleter): Remove.
11315 (stop_reply_up): Update.
11316 (struct stop_reply): Derive from notif_event. Don't typedef.
11317 <regcache>: Now a std::vector.
11318 (stop_reply_xfree): Remove.
11319 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11320 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11321 (remote_target::discard_pending_stop_replies): Use delete.
11322 (remote_target::remote_parse_stop_reply): Update.
11323 (remote_target::process_stop_reply): Update.
11324 * remote-notif.h (struct notif_event): Add virtual destructor.
11325 Remove "dtr" member.
11326 (struct notif_client) <alloc_event>: Return a unique_ptr.
11327 (notif_event_xfree): Don't declare.
11328 (notif_event_up): New typedef.
11329 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11330 (notif_event_xfree, do_notif_event_xfree): Remove.
11331 (remote_notif_state_xfree): Update.
11332
9799571e
TT
113332019-03-06 Tom Tromey <tom@tromey.com>
11334
11335 * infrun.c (displaced_step_clear_cleanup): Now a
11336 forward_scope_exit type.
11337 (displaced_step_prepare_throw): Update.
11338 (displaced_step_fixup): Update.
11339
09e3c4ca
TT
113402019-03-06 Tom Tromey <tom@tromey.com>
11341
11342 * inferior.h (class inferior): Update comment.
11343 * gdbthread.h (class thread_info): Update comment.
11344
e2a03548
TT
113452019-03-06 Joel Brobecker <brobecker@adacore.com>
11346 Tom Tromey <tom@tromey.com>
11347
11348 * stabsread.h (struct stab_section_list): Remove.
11349 (coffstab_build_psymtabs): Update.
11350 * dbxread.c (symbuf_sections): Now a std::vector.
11351 (sect_idx): New global.
11352 (fill_symbuf): Update.
11353 (coffstab_build_psymtabs): Change type of stabsects parameter.
11354 Update.
11355 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11356 std::vector.
11357 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11358 (coff_locate_sections): Update.
11359 (coff_symfile_read): Remove cleanups. Update.
11360 (init_stringtab): Add storage parameter.
11361 (free_stringtab, free_stringtab_cleanup): Remove.
11362 (init_lineno): Add storage parameter.
11363 (free_linetab, free_linetab_cleanup): Remove.
11364
b7e60d85
PA
113652019-03-06 Pedro Alves <palves@redhat.com>
11366
11367 * linux-fork.c (fork_info::clobber_regs): Delete.
11368 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11369 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11370 comment. Adjust.
11371 (scoped_switch_fork_info::scoped_switch_fork_info)
11372 (checkpoint_command, linux_fork_context): Adjust
11373 fork_save_infrun_state calls.
11374
e52c971f
PA
113752019-03-06 Pedro Alves <palves@redhat.com>
11376
11377 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11378 (inf_has_multiple_threads): Return 'bool' and rewrite using
11379 inferior_info::threads().
11380
06974e6c
PA
113812019-03-06 Pedro Alves <palves@redhat.com>
11382
11383 * linux-fork.c: Include <list>.
11384 (fork_list): Now a std::list instance.
11385 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11386 (forks_exist_p, find_last_fork): Adjust.
11387 (new_fork): Delete.
11388 (one_fork_p): New.
11389 (add_fork): Adjust.
11390 (free_fork): Delete, folded into fork_info::~fork_info().
11391 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11392 Adjust.
11393 (init_fork_list): Delete.
11394 (linux_fork_killall, linux_fork_mourn_inferior)
11395 (linux_fork_detach, info_checkpoints_command): Adjust.
11396 (_initialize_linux_fork): No longer call init_fork_list.
11397
72f31aea
PA
113982019-03-06 Pedro Alves <palves@redhat.com>
11399
11400 * linux-fork.c (new_fork): New, split out of ...
11401 (add_fork): ... this. Return void. Move "first fork" special
11402 case from here, to ...
11403 (checkpoint_command): ... here.
11404 * linux-linux.h (add_fork): Return void.
11405
efbecbc1
AB
114062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11407
11408 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11409
0841c79a
AB
114102019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11411 Chris January <chris.january@arm.com>
11412 David Lecomber <david.lecomber@arm.com>
11413
11414 * f-exp.y: New token, UNOP_INTRINSIC.
11415 (exp): New pattern using UNOP_INTRINSIC token.
11416 (f77_keywords): Add 'abs' keyword.
11417 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11418 (value_from_host_double): New function.
11419 (evaluate_subexp_f): Support UNOP_ABS.
11420
4a270568
AB
114212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11422
11423 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11424 types.
11425
067630bd
AB
114262019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11427
11428 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11429 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11430 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11431
3be47f7a
AB
114322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11433
11434 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11435
4d00f5d8
AB
114362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11437 Chris January <chris.january@arm.com>
11438
11439 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11440 * f-exp.y: Define 'KIND' token.
11441 (exp): New pattern for KIND expressions.
11442 (ptype): Handle types with a kind extension.
11443 (direct_abs_decl): Extend to spot kind extensions.
11444 (f77_keywords): Add 'kind' to the list.
11445 (push_kind_type): New function.
11446 (convert_to_kind_type): New function.
11447 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11448 * parse.c (operator_length_standard): Likewise.
11449 * parser-defs.h (enum type_pieces): Add tp_kind.
11450 * std-operator.def: Add UNOP_KIND.
11451
e454224f
AB
114522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11453
11454 * f-exp.y (f_parse): Set yydebug.
11455
9dad4a58
AB
114562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11457
11458 * f-lang.c (evaluate_subexp_f): New function.
11459 (exp_descriptor_f): New global.
11460 (f_language_defn): Use exp_descriptor_f instead of
11461 exp_descriptor_standard.
11462
c8f91604
AB
114632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11464
11465 * f-exp.y (struct token): Add comments.
11466 (dot_ops): Remove uppercase versions and the end marker.
11467 (f77_keywords): Likewise.
11468 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11469 entries in the dot_ops array are case insensitive, and use
11470 strncasecmp to compare strings. Also some whitespace cleanup in
11471 this area. Similar for the f77_keywords array, except entries in
11472 this list might be case sensitive.
11473
dd9f2c76
AB
114742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11475
11476 * f-exp.y (struct f77_boolean_val): Add comments.
11477 (boolean_values): Remove uppercase versions, and end marker.
11478 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11479 and use strncasecmp to achieve case insensitivity. Additionally,
11480 perform whitespace cleanup around this code.
11481
67a3048c
TT
114822019-03-06 Tom Tromey <tromey@adacore.com>
11483
11484 * remote-sim.c (gdbsim_target_open): Use result of
11485 gdb_argv::release.
11486
aa3cfbda
RB
114872019-03-06 Richard Bunt <richard.bunt@arm.com>
11488 Dirk Schubert <dirk.schubert@arm.com>
11489 Chris January <chris.january@arm.com>
11490
11491 * eval.c (evaluate_subexp_standard): Call Fortran argument
11492 wrapping logic.
11493 * f-lang.c (struct value): A value which can be passed into a
11494 Fortran function call.
11495 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11496 where appropriate.
11497 (struct type): Value ready for a Fortran function call.
11498 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11499 is needed.
11500 * f-lang.h (fortran_argument_convert): Declaration.
11501 (fortran_preserve_arg_pointer): Declaration.
11502 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11503
ea38e5df
TT
115042019-03-05 Tom Tromey <tromey@adacore.com>
11505
11506 * python/py-prettyprint.c (print_string_repr): Remove #if.
11507 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11508
06b5b831
TT
115092019-03-05 Tom Tromey <tromey@adacore.com>
11510
11511 * target.c (the_dummy_target): Move later. Change type to
11512 "dummy_target".
11513 (initialize_targets): Don't initialize the_dummy_target.
11514
edbd9e45
TT
115152019-03-05 Tom Tromey <tromey@adacore.com>
11516
11517 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11518 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11519
c119e040
TT
115202019-03-05 Tom Tromey <tromey@adacore.com>
11521
11522 * windows-nat.c (windows_nat_target::attach)
11523 (windows_nat_target::detach): Don't call gdb_flush.
11524 * valprint.c (generic_val_print, val_print, val_print_string):
11525 Don't call gdb_flush.
11526 * utils.c (defaulted_query): Don't call gdb_flush.
11527 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11528 * target.c (target_announce_detach): Don't call gdb_flush.
11529 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11530 * remote.c (extended_remote_target::attach): Don't call
11531 gdb_flush.
11532 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11533 * printcmd.c (do_examine): Don't call gdb_flush.
11534 (info_display_command): Don't call gdb_flush.
11535 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11536 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11537 * memattr.c (info_mem_command): Don't call gdb_flush.
11538 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11539 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11540 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11541 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11542 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11543 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11544 (gnu_nat_target::detach): Don't call gdb_flush.
11545 * f-valprint.c (f_val_print): Don't call gdb_flush.
11546 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11547 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11548 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11549 gdb_flush.
11550 * c-valprint.c (c_val_print): Don't call gdb_flush.
11551 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11552
895dafa6
TT
115532019-03-05 Tom Tromey <tromey@adacore.com>
11554
11555 * varobj.c (update_dynamic_varobj_children): Update.
11556 (install_default_visualizer): Use reset, not release.
11557 * value.c (set_internalvar): Update.
11558 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11559 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11560 ATTRIBUTE_UNUSED_RESULT.
11561
88a774b9
TT
115622019-03-05 Tom Tromey <tromey@adacore.com>
11563
11564 * remote.c (class scoped_remote_fd) <release>: Add
11565 ATTRIBUTE_UNUSED_RESULT.
11566
4e4a8b93
TT
115672019-03-05 Tom Tromey <tromey@adacore.com>
11568
11569 * macroexp.c (struct macro_buffer) <release>: Add
11570 ATTRIBUTE_UNUSED_RESULT.
11571
083eef1f
TT
115722019-03-05 Tom Tromey <tromey@adacore.com>
11573
11574 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11575 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11576 ATTRIBUTE_UNUSED_RESULT.
11577
3cabd438
TT
115782019-03-05 Tom Tromey <tromey@adacore.com>
11579
11580 * common/scoped_fd.h (class scoped_fd) <release>: Add
11581 ATTRIBUTE_UNUSED_RESULT.
11582
41e3300a
TT
115832019-03-05 Tom Tromey <tromey@adacore.com>
11584
11585 * parser-defs.h (struct parser_state) <release>: Add
11586 ATTRIBUTE_UNUSED_RESULT.
11587
18cb7c9f
TT
115882019-03-05 Tom Tromey <tromey@adacore.com>
11589
11590 * utils.h (class gdb_argv) <release>: Add
11591 ATTRIBUTE_UNUSED_RESULT.
11592 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11593
41fa577f
EZ
115942019-03-02 Eli Zaretskii <eliz@gnu.org>
11595
a6a4b2c6
EZ
11596 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11597 for-loop range, to avoid compiler warnings.
11598
11599 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11600 avoid compiler warnings about unused variables.
11601
742a7df5
EZ
11602 * NEWS: Mention end of support for native debugging on MS-Windows
11603 before XP.
11604
41fa577f
EZ
11605 PR gdb/24292
11606 * common/netstuff.c:
11607 * gdbserver/gdbreplay.c
11608 * gdbserver/remote-utils.c:
11609 * ser-tcp.c:
11610 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11611 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11612 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11613 'getaddrinfo' and 'freeaddrinfo' were not available before
11614 Windows XP, and mingw.org's MinGW headers by default define
11615 _WIN32_WINNT to 0x500.
11616
827f438f
GB
116172019-03-01 Gary Benson <gbenson@redhat.com>
11618
11619 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11620
92137da0
RO
116212019-02-28 Brian Vandenberg <phantall@gmail.com>
11622 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11623
11624 PR gdb/8527
11625 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11626 set_sigint_trap, clear_sigint_trap.
11627
799efbe8
PW
116282019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11629
11630 * target.c (target_detach): Clear the regcache and the
11631 frame cache.
11632
8ed25214
PA
116332019-02-27 Pedro Alves <palves@redhat.com>
11634
11635 * utils.c (set_screen_size): When we cap the height/width sizes,
11636 tweak the corresponding command variable to show "unlimited":
11637
23031e31
SJ
116382019-02-27 Saagar Jha <saagar@saagarjha.com>
11639 Pedro Alves <palves@redhat.com>
11640
11641 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11642 before calling rl_set_screen_size.
11643
6c28e44a
TT
116442019-02-27 Tom Tromey <tromey@adacore.com>
11645
11646 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11647 define.
11648 * python/py-value.c: Remove Python 2.4 workaround.
11649 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11650 workaround.
11651 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11652 Python 2.4 workaround.
11653 * python/python-internal.h: Remove Python 2.4 comment.
11654 (Py_ssize_t): Don't define.
11655 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11656 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11657 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11658 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11659 * python/python.c (do_start_initialization): Remove Python 2.4
11660 workaround.
11661 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11662 (print_children): Remove Python 2.4 workaround.
11663 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11664 workaround.
11665 (CHARBUFFERPROC_NAME): Remove.
11666 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11667 Python 2.4 workaround.
11668
2c3fc25d 116692019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 11670
2c3fc25d
KB
11671 * NEWS: Note minimum Python version.
11672
6ca62222
KB
116732019-02-27 Kevin Buettner <kevinb@redhat.com>
11674
11675 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11676 code from these functions. Remove corresponding ifdefs. Use
11677 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11678 Remove gotos and target of gotos.
11679 (infpy_search_memory): Likewise.
11680
f4bc7d2c
AB
116812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11682
11683 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11684 (hppa_gdbarch_init): Don't register deleted functions with
11685 gdbarch.
11686
9734a586
AB
116872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11688
11689 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11690 (h8300_unwind_sp): Delete.
11691 (h8300_dummy_id): Delete.
11692 (h8300_gdbarch_init): Don't register deleted functions with
11693 gdbarch.
11694
68b867f3
AB
116952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11696
11697 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11698 (ft32_unwind_pc): Delete.
11699 (ft32_unwind_sp): Delete.
11700 (ft32_gdbarch_init): Don't register deleted functions with
11701 gdbarch.
11702
2fbe7ad0
AB
117032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11704
11705 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11706 (frv_unwind_pc): Delete.
11707 (frv_unwind_sp): Delete.
11708 (frv_gdbarch_init): Don't register deleted functions with
11709 gdbarch.
11710
76055cbe
AB
117112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11712
11713 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11714 (riscv_unwind_pc): Delete.
11715 (riscv_unwind_sp): Delete.
11716 (riscv_gdbarch_init): Don't register deleted functions with
11717 gdbarch.
11718
4133e5a1
AB
117192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11720
11721 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11722 (csky_unwind_pc): Delete.
11723 (csky_unwind_sp): Delete.
11724 (csky_gdbarch_init): Don't register deleted functions with
11725 gdbarch.
11726
8010f576
AB
117272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11728
11729 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11730 (cris_unwind_pc): Delete.
11731 (cris_unwind_sp): Delete.
11732 (cris_gdbarch_init): Don't register deleted functions with
11733 gdbarch.
11734
b56bf084
AB
117352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11736
11737 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11738 (bfin_unwind_pc): Delete.
11739 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11740
a19a650f
AB
117412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11742
11743 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11744 (arm_unwind_pc): Delete.
11745 (arm_unwind_sp): Delete.
11746 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11747
f8278c3c
AB
117482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11749
11750 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11751 (arc_unwind_pc): Delete.
11752 (arc_unwind_sp): Delete.
11753 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11754
480e46cf
AB
117552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11756
11757 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11758 (alpha_unwind_pc): Delete.
11759 (alpha_gdbarch_init): Don't register deleted functions with
11760 gdbarch.
11761
7a995095
AB
117622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11763
11764 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11765 (aarch64_unwind_pc): Delete.
11766 (aarch64_unwind_sp): Delete.
11767 (aarch64_gdbarch_init): Don't register deleted functions with
11768 gdbarch.
11769
bf9a735e
AB
117702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11771
11772 * gdbtypes.c (type_align): Don't consider static members when
11773 computing structure alignment.
11774
5561fc30
AB
117752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11776
11777 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11778 return 0 for other types.
11779 * arch-utils.c (default_type_align): Always return 0.
11780 * gdbarch.h: Regenerate.
11781 * gdbarch.sh (type_align): Extend comment.
11782 * gdbtypes.c (type_align): Add additional comments, always call
11783 gdbarch_type_align before applying the default rules.
11784 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11785 generic code will then apply a suitable default.
11786 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11787 types, return 0 for other types.
11788
9335e75a
JB
117892019-02-27 Joel Brobecker <brobecker@adacore.com>
11790
11791 * NEWS: Create a new section for the next release branch.
11792 Rename the section of the current branch, now that it has
11793 been cut.
11794
3d34d8de
JB
117952019-02-27 Joel Brobecker <brobecker@adacore.com>
11796
11797 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11798 * version.in: Bump version to 8.3.50.DATE-git.
11799
143420fb
SM
118002019-02-26 Simon Marchi <simon.marchi@efficios.com>
11801
11802 * aix-thread.c (ptid_cmp): Remove unused variable.
11803 (get_signaled_thread): Likewise.
11804 (store_regs_user_thread): Likewise.
11805 (store_regs_kernel_thread): Likewise.
11806 (fetch_regs_kernel_thread): Remove shadowed variable.
11807
172fb711
AB
118082019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11809
11810 * features/riscv/32bit-cpu.xml: Add register numbers.
11811 * features/riscv/32bit-fpu.c: Regenerate.
11812 * features/riscv/32bit-fpu.xml: Add register numbers.
11813 * features/riscv/64bit-cpu.xml: Add register numbers.
11814 * features/riscv/64bit-fpu.c: Regenerate.
11815 * features/riscv/64bit-fpu.xml: Add register numbers.
11816
26c89782
KB
118172019-02-26 Kevin Buettner <kevinb@redhat.com>
11818
af54ade9 11819 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
11820 * python/py-value.c (convert_buffer_and_type_to_value): New
11821 function.
11822 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11823 Add support for handling an optional second argument. Call
11824 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
11825 * python/python-internal.h (Py_buffer_deleter): New struct.
11826 (Py_buffer_up): New typedef.
11827
0f58c9e8
JB
118282019-02-25 John Baldwin <jhb@FreeBSD.org>
11829
11830 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11831 instead of releasing ownership.
11832
0a0f4c01
JR
118332019-02-25 Jordan Rupprecht <rupprecht@google.com>
11834
11835 * dwarf2read.c (open_and_init_dwp_file): Call
11836 elf_numsections instead of bfd_count_sections to initialize
11837 dwp_file->num_sections.
11838
cd5a152c
TT
118392019-02-25 Tom Tromey <tromey@adacore.com>
11840
11841 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11842
8a6a8513
SDJ
118432019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11844
11845 * gcore.in: Add '--readnever' option when invoking GDB.
11846
04dcda9c
SM
118472019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11848
11849 * MAINTAINERS: Update my email address.
11850
07bc701d
SM
118512019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11852
11853 * build-id.c (build_id_to_debug_bfd_1): New function.
11854 (build_id_to_debug_bfd): Look for separate debug file in
11855 sysroot.
11856
c6f4a5d0
AB
118572019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11858
11859 * gdbarch.sh: Update the copyright year range that is placed into
11860 generated files.
11861
9600246d
KS
118622019-02-22 Keith Seitz <keiths@redhat.com>
11863
11864 PR symtab/23853
11865 * linespec.c (create_sals_line_offset): Search for the default
11866 symtab's filename instead of its fullname.
11867
7557a514
AH
118682019-02-21 Alan Hayward <alan.hayward@arm.com>
11869
11870 * NEWS: Update style defaults.
11871
ee2bcb0c
AH
118722019-02-21 Alan Hayward <alan.hayward@arm.com>
11873
11874 * main.c (captured_main_1): Disable styling in batch mode.
11875
0c95f9ed
TT
118762019-02-20 Tom Tromey <tom@tromey.com>
11877
11878 * symtab.c (symtab_symbol_info): Fix typos.
11879
c763b894
TT
118802019-02-20 Tom Tromey <tromey@adacore.com>
11881
11882 * findcmd.c (_initialize_mem_search): Use upper case for
11883 metasyntactic variables.
11884
0ef8a082
AH
118852019-02-20 Alan Hayward <alan.hayward@arm.com>
11886
11887 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11888 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11889
6caa91b6
SM
118902019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11891
11892 * top.h (source_file_name): Change to std::string.
11893 * top.c (source_file_name): Likewise.
11894 (command_line_input): Adjust.
11895 * cli/cli-script.c (script_from_file): Adjust.
11896
98814c6c
TT
118972019-02-19 Tom Tromey <tromey@adacore.com>
11898
11899 * ravenscar-thread.c
11900 (ravenscar_thread_target::update_thread_list): Don't call
11901 ada_build_task_list.
11902 * ada-lang.h (ada_build_task_list): Don't declare.
11903 * ada-tasks.c (struct ada_tasks_inferior_data)
11904 <task_list_valid_p>: Now bool.
11905 (read_known_tasks, ada_task_list_changed)
11906 (ada_tasks_invalidate_inferior_data): Update.
11907 (read_known_tasks_array): Return bool.
11908 (read_known_tasks_list): Likewise.
11909 (read_known_tasks): Return void.
11910 (ada_build_task_list): Now static.
11911
70cd633e
AB
119122019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11913
11914 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11915 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11916
040b3e95
PW
119172019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11918
11919 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11920 variant for ada_tasks_pspace_data_handle and
11921 ada_tasks_inferior_data_handle.
11922 (ada_tasks_pspace_data_cleanup): New function.
11923 (ada_tasks_inferior_data_cleanup): New function.
11924
9409233b
TT
119252019-02-17 Tom Tromey <tom@tromey.com>
11926
11927 * macrotab.h (macro_source_fullname): Return a std::string.
11928 * macrotab.c (macro_include, check_for_redefinition)
11929 (macro_undef, macro_lookup_definition, foreach_macro)
11930 (foreach_macro_in_scope): Update.
11931 (macro_source_fullname): Return a std::string.
11932 * macrocmd.c (show_pp_source_pos): Update.
11933
6506371f
TT
119342019-02-17 Tom Tromey <tom@tromey.com>
11935
11936 * macrocmd.c (show_pp_source_pos): Style the file names.
11937
0c820d67
TT
119382019-02-17 Tom Tromey <tom@tromey.com>
11939
11940 PR tui/24197:
11941 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11942
a0087920
TT
119432019-02-17 Tom Tromey <tom@tromey.com>
11944
11945 * ada-lang.c (user_select_syms): Use filtered printing.
11946 * utils.c (wrap_style): New global.
11947 (desired_style): Remove.
11948 (emit_style_escape): Add stream parameter.
11949 (set_output_style, reset_terminal_style, prompt_for_continue):
11950 Update.
11951 (flush_wrap_buffer): Only flush gdb_stdout.
11952 (wrap_here): Set wrap_style.
11953 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11954 treat escape sequences as a character. Change when wrap buffer is
11955 flushed.
11956 (fputs_styled): Do not set the output style when the default is
11957 requested.
11958 * ui-style.h (struct ui_file_style) <is_default>: New method.
11959 * source.c (print_source_lines_base): Emit escape sequences in one
11960 piece.
11961
75ba10dc
JB
119622019-02-17 Joel Brobecker <brobecker@adacore.com>
11963
11964 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11965 integers and enumeration types.
11966
a2cd4f14
JB
119672019-02-17 Joel Brobecker <brobecker@adacore.com>
11968
11969 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11970 instead of lookup_symbol_in_language
11971 (do_exact_match): New function.
11972 (ada_get_symbol_name_matcher): Return do_exact_match when
11973 doing a verbatim match.
11974
485b851b
TT
119752019-02-15 Tom Tromey <tromey@adacore.com>
11976
11977 * ravenscar-thread.c (ravenscar_thread_target::resume)
11978 (ravenscar_thread_target::wait): Special case wildcard requests.
11979
0b790b1e
TT
119802019-02-15 Tom Tromey <tromey@adacore.com>
11981
11982 * ravenscar-thread.c (base_ptid): Remove.
11983 (struct ravenscar_thread_target) <close>: New method.
11984 <m_base_ptid>: New member.
11985 <update_inferior_ptid, active_task, task_is_currently_active,
11986 runtime_initialized>: Declare methods.
11987 <ravenscar_thread_target>: Add constructor.
11988 (ravenscar_thread_target::task_is_currently_active)
11989 (ravenscar_thread_target::update_inferior_ptid)
11990 (ravenscar_runtime_initialized): Rename. Now methods.
11991 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11992 (ravenscar_thread_target::update_thread_list): Update.
11993 (ravenscar_thread_target::active_task): Now method.
11994 (ravenscar_thread_target::store_registers)
11995 (ravenscar_thread_target::prepare_to_store)
11996 (ravenscar_thread_target::prepare_to_store)
11997 (ravenscar_thread_target::mourn_inferior): Update.
11998 (ravenscar_inferior_created): Use "new" to create target.
11999 (ravenscar_thread_target::get_ada_task_ptid): Update.
12000 (_initialize_ravenscar): Don't initialize base_ptid.
12001 (ravenscar_ops): Remove global.
12002
dea57a62
TT
120032019-02-15 Tom Tromey <tromey@adacore.com>
12004
12005 * target.h (push_target): Declare new overload.
12006 * target.c (push_target): New overload, taking an rvalue reference.
12007 * remote.c (remote_target::open_1): Use push_target overload.
12008 * corelow.c (core_target_open): Use push_target overload.
12009
989f3c58
TT
120102019-02-15 Tom Tromey <tromey@adacore.com>
12011
12012 * ravenscar-thread.c (is_ravenscar_task)
12013 (ravenscar_task_is_currently_active): Return bool.
12014 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12015 (_initialize_ravenscar): Remove "(void)".
12016 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12017 Return bool.
12018
6cbcc006
TT
120192019-02-15 Tom Tromey <tromey@adacore.com>
12020
12021 * ravenscar-thread.c (ravenscar_runtime_initializer)
12022 (has_ravenscar_runtime, get_running_thread_id)
12023 (ravenscar_thread_target::resume): Fix indentation.
12024
7657f14d
TT
120252019-02-15 Tom Tromey <tromey@adacore.com>
12026
12027 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12028 from ravenscar_arch_ops.
12029 (sparc_ravenscar_ops::fetch_registers)
12030 (sparc_ravenscar_ops::store_registers): Now methods.
12031 (sparc_ravenscar_prepare_to_store): Remove.
12032 (sparc_ravenscar_ops): Redefine.
12033 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12034 methods and destructor. Remove members.
12035 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12036 (ravenscar_thread_target::store_registers)
12037 (ravenscar_thread_target::prepare_to_store): Update.
12038 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12039 Remove.
12040 (struct ppc_ravenscar_powerpc_ops): Derive from
12041 ravenscar_arch_ops.
12042 (ppc_ravenscar_powerpc_ops::fetch_registers)
12043 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12044 (ppc_ravenscar_powerpc_ops): Redefine.
12045 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12046 (ppc_ravenscar_e500_ops::fetch_registers)
12047 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12048 (ppc_ravenscar_e500_ops): Redefine.
12049 * aarch64-ravenscar-thread.c
12050 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12051 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12052 (aarch64_ravenscar_fetch_registers)
12053 (aarch64_ravenscar_store_registers): Now methods.
12054 (aarch64_ravenscar_ops): Redefine.
12055
5b6ea500
TT
120562019-02-15 Tom Tromey <tromey@adacore.com>
12057
12058 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12059 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12060 (ravenscar_thread_target::stopped_by_watchpoint)
12061 (ravenscar_thread_target::stopped_data_address)
12062 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12063
e397fd39
TT
120642019-02-15 Tom Tromey <tromey@adacore.com>
12065
12066 * ravenscar-thread.c: Fix some typos.
12067
cc12f4a8
TT
120682019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12069 Tom Tromey <tromey@adacore.com>
12070
12071 * ada-lang.c (ada_exception_sal): Change addr_string to a
12072 std::string.
12073 (create_ada_exception_catchpoint): Update.
12074
5f486660
TT
120752019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12076 Tom Tromey <tromey@adacore.com>
12077
12078 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12079 (bp_location_ops): Remove.
12080 (base_breakpoint_allocate_location): Update.
12081 (free_bp_location): Update.
12082 * ada-lang.c (class ada_catchpoint_location)
12083 <ada_catchpoint_location>: Remove ops parameter.
12084 (ada_catchpoint_location_dtor): Remove.
12085 (ada_catchpoint_location_ops): Remove.
12086 (allocate_location_exception): Update.
12087 * breakpoint.h (struct bp_location_ops): Remove.
12088 (class bp_location) <bp_location>: Remove bp_location_ops
12089 parameter.
12090 <~bp_location>: Add destructor.
12091 <ops>: Remove.
12092
b671c7fb
TS
120932019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12094 Pedro Alves <palves@redhat.com>
12095
12096 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12097 'PATH_MAX'.
12098
8071c5ce
DM
120992019-02-14 David Michael <fedora.dm0@gmail.com>
12100 Samuel Thibault <samuel.thibault@gnu.org>
12101 Thomas Schwinge <thomas@codesourcery.com>
12102
12103 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12104 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12105
b1041ae0
TS
121062019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12107
924514e1
TS
12108 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12109 (check_empty): Use "const char *".
12110
c29ee8d4
TS
12111 * gnu-nat.c (gnu_nat_target::detach): Instead of
12112 'detach_inferior (pid)' call
12113 'detach_inferior (find_inferior_pid (pid))'.
12114
6c6ef69f
TS
12115 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12116 'nat/fork-inferior.o'.
12117 * gnu-nat.c: #include "nat/fork-inferior.h".
12118
2d0a338c
TS
12119 * gnu-nat.c (gnu_nat_target::detach): Instead of
12120 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12121 * gnu-nat.h: #include "inf-child.h".
12122 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12123 'i386_gnu_nat_target::fetch_registers'.
12124 (gnu_store_registers): Rename/move to
12125 'i386_gnu_nat_target::store_registers'.
12126
cabb5f06
TS
12127 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12128 * gnu-nat.h (mach_thread_info): New function.
12129 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12130
b1041ae0
TS
12131 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12132
2988d01e
KF
121332019-02-14 Frederic Konrad <konrad@adacore.com>
12134
12135 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12136
c559d709
JB
121372019-02-14 Joel Brobecker <brobecker@adacore.com>
12138
12139 * windows-nat.c (windows_add_thread): Add new parameter
12140 "main_thread_p" with default value set to false. Update
12141 function documentation as well as all callers.
12142 (windows_delete_thread): Likewise.
12143 (fake_create_process): Update call to windows_add_thread.
12144 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12145 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12146 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12147 call to windows_delete_thread.
12148
007024cc
SM
121492019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12150
12151 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12152
f62318e9
JB
121532019-02-12 John Baldwin <jhb@FreeBSD.org>
12154
12155 * symfile.c (find_separate_debug_file): Use canonical path of
12156 sysroot with child_path instead of gdb_sysroot if it is valid.
12157
cd4b7848
JB
121582019-02-12 John Baldwin <jhb@FreeBSD.org>
12159
12160 * symfile.c (find_separate_debug_file): Use child_path to
12161 determine if an object file is under a sysroot.
12162
efac4bfe
JB
121632019-02-12 John Baldwin <jhb@FreeBSD.org>
12164
12165 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12166 unittests/child-path-selftests.c.
12167 * common/pathstuff.c (child_path): New function.
12168 * common/pathstuff.h (child_path): New prototype.
12169 * unittests/child-path-selftests.c: New file.
12170
402d2bfe
JB
121712019-02-12 John Baldwin <jhb@FreeBSD.org>
12172
12173 * symfile.c (find_separate_debug_file): Look for separate debug
12174 files in debug directories under the sysroot.
12175
1ed9f74e
PW
121762019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12177
12178 * symtab.h (struct minimal_symbol data_p): New const method.
12179 (struct minimal_symbol text_p): Likewise.
12180 * symtab.c (output_source_filename): Use file name style
12181 to print file name.
12182 (print_symbol_info): Likewise.
12183 (print_msymbol_info): Use address style to print addresses.
12184 Use function name style to print executable text symbols.
12185 (expand_symtab_containing_pc): Use data_p.
12186 (find_pc_sect_compunit_symtab): Likewise.
12187
2636d81d
PW
121882019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12189
12190 * breakpoint.c (describe_other_breakpoints): Use address style
12191 to print addresses.
12192 (say_where): Likewise.
12193
ac8c53cc
PW
121942019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12195
12196 * ada-typeprint.c (print_func_type): Print function name
12197 style to print function name.
12198 * c-typeprint.c (c_print_type_1): Likewise.
12199
ea638c43
AH
122002019-02-11 Alan Hayward <alan.hayward@arm.com>
12201
12202 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12203 for execve.
12204
ab759ca8
PW
122052019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12206
12207 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12208 type_stack.
12209
aff29d1c
JB
122102019-02-10 Joel Brobecker <brobecker@adacore.com>
12211
12212 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12213 TYPE_CODE_REF types.
12214
617126bc
JW
122152019-02-08 Jim Wilson <jimw@sifive.com>
12216
12217 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12218 (riscv_linux_fregset): New.
12219 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12220
46e3ed7f
TT
122212019-02-07 Tom Tromey <tom@tromey.com>
12222
12223 * thread.c (thread_cancel_execution_command): Update.
12224 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12225 methods.
12226 (struct thread_fsm_ops): Remove.
12227 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12228 (thread_fsm_should_stop, thread_fsm_return_value)
12229 (thread_fsm_set_finished, thread_fsm_finished_p)
12230 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12231 Don't declare.
12232 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12233 * infrun.c (clear_proceed_status_thread)
12234 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12235 (print_stop_event): Update.
12236 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12237 Add constructor.
12238 (step_command_fsm_ops): Remove.
12239 (new_step_command_fsm): Remove.
12240 (step_1): Update.
12241 (step_command_fsm::should_stop): Rename from
12242 step_command_fsm_should_stop.
12243 (step_command_fsm::clean_up): Rename from
12244 step_command_fsm_clean_up.
12245 (step_command_fsm::do_async_reply_reason): Rename from
12246 step_command_fsm_async_reply_reason.
12247 (struct until_next_fsm): Inherit from thread_fsm. Add
12248 constructor.
12249 (until_next_fsm_ops): Remove.
12250 (new_until_next_fsm): Remove.
12251 (until_next_fsm::should_stop): Rename from
12252 until_next_fsm_should_stop.
12253 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12254 (until_next_fsm::do_async_reply_reason): Rename from
12255 until_next_fsm_async_reply_reason.
12256 (struct finish_command_fsm): Inherit from thread_fsm. Add
12257 constructor. Change type of breakpoint.
12258 (finish_command_fsm_ops): Remove.
12259 (new_finish_command_fsm): Remove.
12260 (finish_command_fsm::should_stop): Rename from
12261 finish_command_fsm_should_stop.
12262 (finish_command_fsm::clean_up): Rename from
12263 finish_command_fsm_clean_up.
12264 (finish_command_fsm::return_value): Rename from
12265 finish_command_fsm_return_value.
12266 (finish_command_fsm::do_async_reply_reason): Rename from
12267 finish_command_fsm_async_reply_reason.
12268 (finish_command): Update.
12269 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12270 Add constructor.
12271 (call_thread_fsm_ops): Remove.
12272 (call_thread_fsm::call_thread_fsm): Rename from
12273 new_call_thread_fsm.
12274 (call_thread_fsm::should_stop): Rename from
12275 call_thread_fsm_should_stop.
12276 (call_thread_fsm::should_notify_stop): Rename from
12277 call_thread_fsm_should_notify_stop.
12278 (run_inferior_call, call_function_by_hand_dummy): Update.
12279 * cli/cli-interp.c (should_print_stop_to_console): Update.
12280 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12281 Add constructor. Change type of location_breakpoint,
12282 caller_breakpoint.
12283 (until_break_fsm_ops): Remove.
12284 (new_until_break_fsm): Remove.
12285 (until_break_fsm::should_stop): Rename from
12286 until_break_fsm_should_stop.
12287 (until_break_fsm::clean_up): Rename from
12288 until_break_fsm_clean_up.
12289 (until_break_fsm::do_async_reply_reason): Rename from
12290 until_break_fsm_async_reply_reason.
12291 (until_break_command): Update.
12292 * thread-fsm.c: Remove.
12293 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12294
1a5c2598
TT
122952019-02-07 Tom Tromey <tom@tromey.com>
12296
12297 * yy-remap.h: Add include guard.
12298 * xtensa-tdep.h: Add include guard.
12299 * xcoffread.h: Rename include guard.
12300 * varobj-iter.h: Add include guard.
12301 * tui/tui.h: Rename include guard.
12302 * tui/tui-winsource.h: Rename include guard.
12303 * tui/tui-wingeneral.h: Rename include guard.
12304 * tui/tui-windata.h: Rename include guard.
12305 * tui/tui-win.h: Rename include guard.
12306 * tui/tui-stack.h: Rename include guard.
12307 * tui/tui-source.h: Rename include guard.
12308 * tui/tui-regs.h: Rename include guard.
12309 * tui/tui-out.h: Rename include guard.
12310 * tui/tui-layout.h: Rename include guard.
12311 * tui/tui-io.h: Rename include guard.
12312 * tui/tui-hooks.h: Rename include guard.
12313 * tui/tui-file.h: Rename include guard.
12314 * tui/tui-disasm.h: Rename include guard.
12315 * tui/tui-data.h: Rename include guard.
12316 * tui/tui-command.h: Rename include guard.
12317 * tic6x-tdep.h: Add include guard.
12318 * target/waitstatus.h: Rename include guard.
12319 * target/wait.h: Rename include guard.
12320 * target/target.h: Rename include guard.
12321 * target/resume.h: Rename include guard.
12322 * target-float.h: Rename include guard.
12323 * stabsread.h: Add include guard.
12324 * rs6000-tdep.h: Add include guard.
12325 * riscv-fbsd-tdep.h: Add include guard.
12326 * regformats/regdef.h: Rename include guard.
12327 * record.h: Rename include guard.
12328 * python/python.h: Rename include guard.
12329 * python/python-internal.h: Rename include guard.
12330 * python/py-stopevent.h: Rename include guard.
12331 * python/py-ref.h: Rename include guard.
12332 * python/py-record.h: Rename include guard.
12333 * python/py-record-full.h: Rename include guard.
12334 * python/py-record-btrace.h: Rename include guard.
12335 * python/py-instruction.h: Rename include guard.
12336 * python/py-events.h: Rename include guard.
12337 * python/py-event.h: Rename include guard.
12338 * procfs.h: Add include guard.
12339 * proc-utils.h: Add include guard.
12340 * p-lang.h: Add include guard.
12341 * or1k-tdep.h: Rename include guard.
12342 * observable.h: Rename include guard.
12343 * nto-tdep.h: Rename include guard.
12344 * nat/x86-linux.h: Rename include guard.
12345 * nat/x86-linux-dregs.h: Rename include guard.
12346 * nat/x86-gcc-cpuid.h: Add include guard.
12347 * nat/x86-dregs.h: Rename include guard.
12348 * nat/x86-cpuid.h: Rename include guard.
12349 * nat/ppc-linux.h: Rename include guard.
12350 * nat/mips-linux-watch.h: Rename include guard.
12351 * nat/linux-waitpid.h: Rename include guard.
12352 * nat/linux-ptrace.h: Rename include guard.
12353 * nat/linux-procfs.h: Rename include guard.
12354 * nat/linux-osdata.h: Rename include guard.
12355 * nat/linux-nat.h: Rename include guard.
12356 * nat/linux-namespaces.h: Rename include guard.
12357 * nat/linux-btrace.h: Rename include guard.
12358 * nat/glibc_thread_db.h: Rename include guard.
12359 * nat/gdb_thread_db.h: Rename include guard.
12360 * nat/gdb_ptrace.h: Rename include guard.
12361 * nat/fork-inferior.h: Rename include guard.
12362 * nat/amd64-linux-siginfo.h: Rename include guard.
12363 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12364 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12365 * nat/aarch64-linux.h: Rename include guard.
12366 * nat/aarch64-linux-hw-point.h: Rename include guard.
12367 * mn10300-tdep.h: Add include guard.
12368 * mips-linux-tdep.h: Add include guard.
12369 * mi/mi-parse.h: Rename include guard.
12370 * mi/mi-out.h: Rename include guard.
12371 * mi/mi-main.h: Rename include guard.
12372 * mi/mi-interp.h: Rename include guard.
12373 * mi/mi-getopt.h: Rename include guard.
12374 * mi/mi-console.h: Rename include guard.
12375 * mi/mi-common.h: Rename include guard.
12376 * mi/mi-cmds.h: Rename include guard.
12377 * mi/mi-cmd-break.h: Rename include guard.
12378 * m2-lang.h: Add include guard.
12379 * location.h: Rename include guard.
12380 * linux-record.h: Rename include guard.
12381 * linux-nat.h: Add include guard.
12382 * linux-fork.h: Add include guard.
12383 * i386-darwin-tdep.h: Rename include guard.
12384 * hppa-linux-offsets.h: Add include guard.
12385 * guile/guile.h: Rename include guard.
12386 * guile/guile-internal.h: Rename include guard.
12387 * gnu-nat.h: Rename include guard.
12388 * gdb-stabs.h: Rename include guard.
12389 * frv-tdep.h: Add include guard.
12390 * f-lang.h: Add include guard.
12391 * event-loop.h: Add include guard.
12392 * darwin-nat.h: Rename include guard.
12393 * cp-abi.h: Rename include guard.
12394 * config/sparc/nm-sol2.h: Rename include guard.
12395 * config/nm-nto.h: Rename include guard.
12396 * config/nm-linux.h: Add include guard.
12397 * config/i386/nm-i386gnu.h: Rename include guard.
12398 * config/djgpp/nl_types.h: Rename include guard.
12399 * config/djgpp/langinfo.h: Rename include guard.
12400 * compile/gcc-cp-plugin.h: Add include guard.
12401 * compile/gcc-c-plugin.h: Add include guard.
12402 * compile/compile.h: Rename include guard.
12403 * compile/compile-object-run.h: Rename include guard.
12404 * compile/compile-object-load.h: Rename include guard.
12405 * compile/compile-internal.h: Rename include guard.
12406 * compile/compile-cplus.h: Rename include guard.
12407 * compile/compile-c.h: Rename include guard.
12408 * common/xml-utils.h: Rename include guard.
12409 * common/x86-xstate.h: Rename include guard.
12410 * common/version.h: Rename include guard.
12411 * common/vec.h: Rename include guard.
12412 * common/tdesc.h: Rename include guard.
12413 * common/selftest.h: Rename include guard.
12414 * common/scoped_restore.h: Rename include guard.
12415 * common/scoped_mmap.h: Rename include guard.
12416 * common/scoped_fd.h: Rename include guard.
12417 * common/safe-iterator.h: Rename include guard.
12418 * common/run-time-clock.h: Rename include guard.
12419 * common/refcounted-object.h: Rename include guard.
12420 * common/queue.h: Rename include guard.
12421 * common/ptid.h: Rename include guard.
12422 * common/print-utils.h: Rename include guard.
12423 * common/preprocessor.h: Rename include guard.
12424 * common/pathstuff.h: Rename include guard.
12425 * common/observable.h: Rename include guard.
12426 * common/netstuff.h: Rename include guard.
12427 * common/job-control.h: Rename include guard.
12428 * common/host-defs.h: Rename include guard.
12429 * common/gdb_wait.h: Rename include guard.
12430 * common/gdb_vecs.h: Rename include guard.
12431 * common/gdb_unlinker.h: Rename include guard.
12432 * common/gdb_unique_ptr.h: Rename include guard.
12433 * common/gdb_tilde_expand.h: Rename include guard.
12434 * common/gdb_sys_time.h: Rename include guard.
12435 * common/gdb_string_view.h: Rename include guard.
12436 * common/gdb_splay_tree.h: Rename include guard.
12437 * common/gdb_setjmp.h: Rename include guard.
12438 * common/gdb_ref_ptr.h: Rename include guard.
12439 * common/gdb_optional.h: Rename include guard.
12440 * common/gdb_locale.h: Rename include guard.
12441 * common/gdb_assert.h: Rename include guard.
12442 * common/filtered-iterator.h: Rename include guard.
12443 * common/filestuff.h: Rename include guard.
12444 * common/fileio.h: Rename include guard.
12445 * common/environ.h: Rename include guard.
12446 * common/common-utils.h: Rename include guard.
12447 * common/common-types.h: Rename include guard.
12448 * common/common-regcache.h: Rename include guard.
12449 * common/common-inferior.h: Rename include guard.
12450 * common/common-gdbthread.h: Rename include guard.
12451 * common/common-exceptions.h: Rename include guard.
12452 * common/common-defs.h: Rename include guard.
12453 * common/common-debug.h: Rename include guard.
12454 * common/cleanups.h: Rename include guard.
12455 * common/buffer.h: Rename include guard.
12456 * common/btrace-common.h: Rename include guard.
12457 * common/break-common.h: Rename include guard.
12458 * cli/cli-utils.h: Rename include guard.
12459 * cli/cli-style.h: Rename include guard.
12460 * cli/cli-setshow.h: Rename include guard.
12461 * cli/cli-script.h: Rename include guard.
12462 * cli/cli-interp.h: Rename include guard.
12463 * cli/cli-decode.h: Rename include guard.
12464 * cli/cli-cmds.h: Rename include guard.
12465 * charset-list.h: Add include guard.
12466 * buildsym-legacy.h: Rename include guard.
12467 * bfin-tdep.h: Add include guard.
12468 * ax.h: Rename include guard.
12469 * arm-linux-tdep.h: Add include guard.
12470 * arm-fbsd-tdep.h: Add include guard.
12471 * arch/xtensa.h: Rename include guard.
12472 * arch/tic6x.h: Add include guard.
12473 * arch/i386.h: Add include guard.
12474 * arch/arm.h: Rename include guard.
12475 * arch/arm-linux.h: Rename include guard.
12476 * arch/arm-get-next-pcs.h: Rename include guard.
12477 * arch/amd64.h: Add include guard.
12478 * arch/aarch64-insn.h: Rename include guard.
12479 * arch-utils.h: Rename include guard.
12480 * annotate.h: Add include guard.
12481 * amd64-darwin-tdep.h: Rename include guard.
12482 * aarch64-linux-tdep.h: Add include guard.
12483 * aarch64-fbsd-tdep.h: Add include guard.
12484 * aarch32-linux-nat.h: Add include guard.
12485
ab9268d2
PW
124862019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12487
12488 * macrotab.c (macro_define_internal): New function that
12489 factorizes macro_define_object_internal and macro_define_function
12490 code.
12491 (macro_define_object_internal): Use macro_define_internal.
12492 (macro_define_function): Likewise.
12493
bb0da2b4
PW
124942019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12495
12496 * macrocmd.c (extract_identifier): Return
12497 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12498 callers.
12499
424eb552
JB
125002019-02-06 John Baldwin <jhb@FreeBSD.org>
12501
12502 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12503
1688cb29
TT
125042019-02-05 Tom Tromey <tom@tromey.com>
12505
12506 * target.c (target_stack::unpush): Move assertion earlier.
12507
b5eba2d8
TT
125082019-01-30 Tom Tromey <tom@tromey.com>
12509
12510 PR python/23615:
12511 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12512 (gdbpy_parse_and_eval): Likewise.
12513 * python/python-internal.h (gdbpy_allow_threads): New class.
12514
7054e2ff
JB
125152019-01-28 John Baldwin <jhb@FreeBSD.org>
12516
12517 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12518 (aarch64_fbsd_fpregmap): Move earlier.
12519 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12520 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12521 instead of individual calls to trad_frame_set_reg_addr.
12522 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12523 earlier.
12524 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12525 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12526 instead of individual calls to trad_frame_set_reg_addr.
12527
36c25ffa
AH
125282019-01-28 Alan Hayward <alan.hayward@arm.com>
12529
12530 * CONTRIBUTE: Replace contribution list with wiki link.
12531
a0707f3c
TT
125322019-01-25 Tom Tromey <tom@tromey.com>
12533
12534 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12535
0747795c
TT
125362019-01-25 Tom Tromey <tom@tromey.com>
12537
12538 * xtensa-linux-nat.c: Fix common/ includes.
12539 * xml-support.h: Fix common/ includes.
12540 * xml-support.c: Fix common/ includes.
12541 * x86-linux-nat.c: Fix common/ includes.
12542 * windows-nat.c: Fix common/ includes.
12543 * varobj.h: Fix common/ includes.
12544 * varobj.c: Fix common/ includes.
12545 * value.c: Fix common/ includes.
12546 * valops.c: Fix common/ includes.
12547 * utils.c: Fix common/ includes.
12548 * unittests/xml-utils-selftests.c: Fix common/ includes.
12549 * unittests/utils-selftests.c: Fix common/ includes.
12550 * unittests/unpack-selftests.c: Fix common/ includes.
12551 * unittests/tracepoint-selftests.c: Fix common/ includes.
12552 * unittests/style-selftests.c: Fix common/ includes.
12553 * unittests/string_view-selftests.c: Fix common/ includes.
12554 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12555 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12556 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12557 * unittests/rsp-low-selftests.c: Fix common/ includes.
12558 * unittests/parse-connection-spec-selftests.c: Fix common/
12559 includes.
12560 * unittests/optional-selftests.c: Fix common/ includes.
12561 * unittests/offset-type-selftests.c: Fix common/ includes.
12562 * unittests/observable-selftests.c: Fix common/ includes.
12563 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12564 * unittests/memrange-selftests.c: Fix common/ includes.
12565 * unittests/memory-map-selftests.c: Fix common/ includes.
12566 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12567 * unittests/function-view-selftests.c: Fix common/ includes.
12568 * unittests/environ-selftests.c: Fix common/ includes.
12569 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12570 * unittests/common-utils-selftests.c: Fix common/ includes.
12571 * unittests/cli-utils-selftests.c: Fix common/ includes.
12572 * unittests/array-view-selftests.c: Fix common/ includes.
12573 * ui-file.c: Fix common/ includes.
12574 * tui/tui-io.c: Fix common/ includes.
12575 * tracepoint.h: Fix common/ includes.
12576 * tracepoint.c: Fix common/ includes.
12577 * tracefile-tfile.c: Fix common/ includes.
12578 * top.h: Fix common/ includes.
12579 * top.c: Fix common/ includes.
12580 * thread.c: Fix common/ includes.
12581 * target/waitstatus.h: Fix common/ includes.
12582 * target/waitstatus.c: Fix common/ includes.
12583 * target.h: Fix common/ includes.
12584 * target.c: Fix common/ includes.
12585 * target-memory.c: Fix common/ includes.
12586 * target-descriptions.c: Fix common/ includes.
12587 * symtab.h: Fix common/ includes.
12588 * symfile.c: Fix common/ includes.
12589 * stap-probe.c: Fix common/ includes.
12590 * spu-linux-nat.c: Fix common/ includes.
12591 * sparc-nat.c: Fix common/ includes.
12592 * source.c: Fix common/ includes.
12593 * solib.c: Fix common/ includes.
12594 * solib-target.c: Fix common/ includes.
12595 * ser-unix.c: Fix common/ includes.
12596 * ser-tcp.c: Fix common/ includes.
12597 * ser-pipe.c: Fix common/ includes.
12598 * ser-base.c: Fix common/ includes.
12599 * selftest-arch.c: Fix common/ includes.
12600 * s12z-tdep.c: Fix common/ includes.
12601 * rust-exp.y: Fix common/ includes.
12602 * rs6000-aix-tdep.c: Fix common/ includes.
12603 * riscv-tdep.c: Fix common/ includes.
12604 * remote.c: Fix common/ includes.
12605 * remote-notif.h: Fix common/ includes.
12606 * remote-fileio.h: Fix common/ includes.
12607 * remote-fileio.c: Fix common/ includes.
12608 * regcache.h: Fix common/ includes.
12609 * regcache.c: Fix common/ includes.
12610 * record-btrace.c: Fix common/ includes.
12611 * python/python.c: Fix common/ includes.
12612 * python/py-type.c: Fix common/ includes.
12613 * python/py-inferior.c: Fix common/ includes.
12614 * progspace.h: Fix common/ includes.
12615 * producer.c: Fix common/ includes.
12616 * procfs.c: Fix common/ includes.
12617 * proc-api.c: Fix common/ includes.
12618 * printcmd.c: Fix common/ includes.
12619 * ppc-linux-nat.c: Fix common/ includes.
12620 * parser-defs.h: Fix common/ includes.
12621 * osdata.c: Fix common/ includes.
12622 * obsd-nat.c: Fix common/ includes.
12623 * nat/x86-linux.c: Fix common/ includes.
12624 * nat/x86-linux-dregs.c: Fix common/ includes.
12625 * nat/x86-dregs.h: Fix common/ includes.
12626 * nat/x86-dregs.c: Fix common/ includes.
12627 * nat/ppc-linux.c: Fix common/ includes.
12628 * nat/mips-linux-watch.h: Fix common/ includes.
12629 * nat/mips-linux-watch.c: Fix common/ includes.
12630 * nat/linux-waitpid.c: Fix common/ includes.
12631 * nat/linux-ptrace.h: Fix common/ includes.
12632 * nat/linux-ptrace.c: Fix common/ includes.
12633 * nat/linux-procfs.c: Fix common/ includes.
12634 * nat/linux-personality.c: Fix common/ includes.
12635 * nat/linux-osdata.c: Fix common/ includes.
12636 * nat/linux-namespaces.c: Fix common/ includes.
12637 * nat/linux-btrace.h: Fix common/ includes.
12638 * nat/linux-btrace.c: Fix common/ includes.
12639 * nat/fork-inferior.c: Fix common/ includes.
12640 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12641 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12642 * nat/aarch64-linux.c: Fix common/ includes.
12643 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12644 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12645 * namespace.h: Fix common/ includes.
12646 * mips-linux-tdep.c: Fix common/ includes.
12647 * minsyms.c: Fix common/ includes.
12648 * mi/mi-parse.h: Fix common/ includes.
12649 * mi/mi-main.c: Fix common/ includes.
12650 * mi/mi-cmd-env.c: Fix common/ includes.
12651 * memrange.h: Fix common/ includes.
12652 * memattr.c: Fix common/ includes.
12653 * maint.h: Fix common/ includes.
12654 * maint.c: Fix common/ includes.
12655 * main.c: Fix common/ includes.
12656 * machoread.c: Fix common/ includes.
12657 * location.c: Fix common/ includes.
12658 * linux-thread-db.c: Fix common/ includes.
12659 * linux-nat.c: Fix common/ includes.
12660 * linux-fork.c: Fix common/ includes.
12661 * inline-frame.c: Fix common/ includes.
12662 * infrun.c: Fix common/ includes.
12663 * inflow.c: Fix common/ includes.
12664 * inferior.h: Fix common/ includes.
12665 * inferior.c: Fix common/ includes.
12666 * infcmd.c: Fix common/ includes.
12667 * inf-ptrace.c: Fix common/ includes.
12668 * inf-child.c: Fix common/ includes.
12669 * ia64-linux-nat.c: Fix common/ includes.
12670 * i387-tdep.c: Fix common/ includes.
12671 * i386-tdep.c: Fix common/ includes.
12672 * i386-linux-tdep.c: Fix common/ includes.
12673 * i386-linux-nat.c: Fix common/ includes.
12674 * i386-go32-tdep.c: Fix common/ includes.
12675 * i386-fbsd-tdep.c: Fix common/ includes.
12676 * i386-fbsd-nat.c: Fix common/ includes.
12677 * guile/scm-type.c: Fix common/ includes.
12678 * guile/guile.c: Fix common/ includes.
12679 * go32-nat.c: Fix common/ includes.
12680 * gnu-nat.c: Fix common/ includes.
12681 * gdbthread.h: Fix common/ includes.
12682 * gdbarch-selftests.c: Fix common/ includes.
12683 * gdb_usleep.c: Fix common/ includes.
12684 * gdb_select.h: Fix common/ includes.
12685 * gdb_bfd.c: Fix common/ includes.
12686 * gcore.c: Fix common/ includes.
12687 * fork-child.c: Fix common/ includes.
12688 * findvar.c: Fix common/ includes.
12689 * fbsd-nat.c: Fix common/ includes.
12690 * event-top.c: Fix common/ includes.
12691 * event-loop.c: Fix common/ includes.
12692 * dwarf2read.c: Fix common/ includes.
12693 * dwarf2loc.c: Fix common/ includes.
12694 * dwarf2-frame.c: Fix common/ includes.
12695 * dwarf-index-cache.c: Fix common/ includes.
12696 * dtrace-probe.c: Fix common/ includes.
12697 * disasm-selftests.c: Fix common/ includes.
12698 * defs.h: Fix common/ includes.
12699 * csky-tdep.c: Fix common/ includes.
12700 * cp-valprint.c: Fix common/ includes.
12701 * cp-support.h: Fix common/ includes.
12702 * cp-support.c: Fix common/ includes.
12703 * corelow.c: Fix common/ includes.
12704 * completer.h: Fix common/ includes.
12705 * completer.c: Fix common/ includes.
12706 * compile/compile.c: Fix common/ includes.
12707 * compile/compile-loc2c.c: Fix common/ includes.
12708 * compile/compile-cplus-types.c: Fix common/ includes.
12709 * compile/compile-cplus-symbols.c: Fix common/ includes.
12710 * command.h: Fix common/ includes.
12711 * cli/cli-dump.c: Fix common/ includes.
12712 * cli/cli-cmds.c: Fix common/ includes.
12713 * charset.c: Fix common/ includes.
12714 * build-id.c: Fix common/ includes.
12715 * btrace.h: Fix common/ includes.
12716 * btrace.c: Fix common/ includes.
12717 * breakpoint.h: Fix common/ includes.
12718 * breakpoint.c: Fix common/ includes.
12719 * ax.h:
12720 (enum agent_op): Fix common/ includes.
12721 * ax-general.c (struct aop_map): Fix common/ includes.
12722 * ax-gdb.c: Fix common/ includes.
12723 * auxv.c: Fix common/ includes.
12724 * auto-load.c: Fix common/ includes.
12725 * arm-tdep.c: Fix common/ includes.
12726 * arch/riscv.c: Fix common/ includes.
12727 * arch/ppc-linux-common.c: Fix common/ includes.
12728 * arch/i386.c: Fix common/ includes.
12729 * arch/arm.c: Fix common/ includes.
12730 * arch/arm-linux.c: Fix common/ includes.
12731 * arch/arm-get-next-pcs.c: Fix common/ includes.
12732 * arch/amd64.c: Fix common/ includes.
12733 * arch/aarch64.c: Fix common/ includes.
12734 * arch/aarch64-insn.c: Fix common/ includes.
12735 * arch-utils.c: Fix common/ includes.
12736 * amd64-windows-tdep.c: Fix common/ includes.
12737 * amd64-tdep.c: Fix common/ includes.
12738 * amd64-sol2-tdep.c: Fix common/ includes.
12739 * amd64-obsd-tdep.c: Fix common/ includes.
12740 * amd64-nbsd-tdep.c: Fix common/ includes.
12741 * amd64-linux-tdep.c: Fix common/ includes.
12742 * amd64-linux-nat.c: Fix common/ includes.
12743 * amd64-fbsd-tdep.c: Fix common/ includes.
12744 * amd64-fbsd-nat.c: Fix common/ includes.
12745 * amd64-dicos-tdep.c: Fix common/ includes.
12746 * amd64-darwin-tdep.c: Fix common/ includes.
12747 * agent.c: Fix common/ includes.
12748 * ada-lang.h: Fix common/ includes.
12749 * ada-lang.c: Fix common/ includes.
12750 * aarch64-tdep.c: Fix common/ includes.
12751
2f5c153e
TT
127522019-01-25 Tom Tromey <tom@tromey.com>
12753
12754 * common/create-version.sh: Use common/version.h.
12755
adc6a863
PA
127562019-01-24 Pedro Alves <palves@redhat.com>
12757
12758 * infrun.c (signal_stop, signal_print, signal_program)
12759 (signal_catch, signal_pass): Now arrays instead of pointers.
12760 (update_signals_program_target, do_target_resume)
12761 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12762 * linux-nat.c (linux_nat_target::pass_signals)
12763 (linux_nat_target::create_inferior, linux_nat_target::attach):
12764 Adjust.
12765 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12766 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12767 * procfs.c (procfs_target::pass_signals): Adjust.
12768 * record-full.c (record_full_target::resume): Adjust.
12769 * remote.c (remote_target::pass_signals)
12770 (remote_target::program_signals): Adjust.
12771 * target-debug.h (target_debug_print_signals): Now takes a
12772 gdb::array_view as parameter. Adjust.
12773 * target.h (target_ops) <pass_signals, program_signals>: Replace
12774 pointer and length parameters with gdb::array_view.
12775 (target_pass_signals, target_program_signals): Likewise.
12776 * target-delegates.c: Regenerate.
12777
3046d67a
PA
127782019-01-24 Pedro Alves <palves@redhat.com>
12779
12780 * common/forward-scope-exit.h
12781 (forward_scope_exit::forward_scope_exit): Pass arguments to
12782 m_bind_function directly, instead of creating a std::bind and
12783 copying that.
12784
353229bf
AH
127852019-01-24 Alan Hayward <alan.hayward@arm.com>
12786
12787 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12788 for static members.
12789 (pass_in_v_vfp_candidate): Likewise.
12790
311dc83a
TT
127912019-01-23 Tom Tromey <tom@tromey.com>
12792 Pedro Alves <palves@redhat.com>
12793
12794 * regcache.c (class regcache_invalidator): Remove.
12795 (regcache::raw_write): Use make_scope_exit.
12796
296bd123
TT
127972019-01-23 Tom Tromey <tom@tromey.com>
12798
12799 * ui-out.h (class ui_out_emit_type): Update comment.
12800
979a0d13
TT
128012019-01-23 Tom Tromey <tom@tromey.com>
12802
12803 * infrun.c (fetch_inferior_event): Update comment.
12804
d238133d
TT
128052019-01-23 Tom Tromey <tom@tromey.com>
12806 Pedro Alves <palves@redhat.com>
12807
12808 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12809 parameter.
12810 (fetch_inferior_event): Use SCOPE_EXIT.
12811
12812
9885e6bb
TT
128132019-01-23 Tom Tromey <tom@tromey.com>
12814 Pedro Alves <palves@redhat.com>
12815
12816 * infrun.c (disable_thread_events): Delete.
12817 (stop_all_threads): Use SCOPE_EXIT.
12818
286526c1
TT
128192019-01-23 Tom Tromey <tom@tromey.com>
12820 Pedro Alves <palves@redhat.com>
12821
12822 * symfile.c: Include forward-scope-exit.h.
12823 (clear_symtab_users_cleanup): Replace forward declaration with
12824 a FORWARD_SCOPE_EXIT.
12825 (syms_from_objfile_1): Use the forward_scope_exit and
12826 gdb::optional instead of cleanup_function.
12827 (reread_symbols): Use the forward_scope_exit instead of
12828 cleanup_function.
12829 (clear_symtab_users_cleanup): Remove function.
12830
1db93f14
TT
128312019-01-23 Tom Tromey <tom@tromey.com>
12832 Pedro Alves <palves@redhat.com>
12833
12834 * linux-nat.c: Include scope-exit.h.
12835 (cleanup_target_stop): Remove.
12836 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12837 SCOPE_EXIT.
12838
2cc83d1e
TT
128392019-01-23 Tom Tromey <tom@tromey.com>
12840 Pedro Alves <palves@redhat.com>
12841
12842 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12843 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12844
694c6bf5
TT
128452019-01-23 Tom Tromey <tom@tromey.com>
12846 Andrew Burgess <andrew.burgess@embecosm.com>
12847 Pedro Alves <palves@redhat.com>
12848
12849 * infrun.c (fetch_inferior_event): Use scope_exit.
12850 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12851 * top.c (execute_command): Use scope_exit.
12852 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12853 * utils.c (do_bpstat_clear_actions_cleanup)
12854 (make_bpstat_clear_actions_cleanup): Remove.
12855
4c41382a
TT
128562019-01-23 Tom Tromey <tom@tromey.com>
12857 Pedro Alves <palves@redhat.com>
12858
12859 * infrun.c: Include "common/scope-exit.h"
12860 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12861 (wait_for_inferior): Use SCOPE_EXIT.
12862 (fetch_inferior_event): Use scope_exit.
12863
89f8fb50
TT
128642019-01-23 Tom Tromey <tom@tromey.com>
12865 Pedro Alves <palves@redhat.com>
12866
12867 * breakpoint.c (create_breakpoint): Remove cleanup.
12868
5419bdae
TT
128692019-01-23 Tom Tromey <tom@tromey.com>
12870 Andrew Burgess <andrew.burgess@embecosm.com>
12871 Pedro Alves <palves@redhat.com>
12872
e587ef42
PA
128732019-01-23 Pedro Alves <palves@redhat.com>
12874
12875 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12876
77f0e74c
PA
128772019-01-23 Pedro Alves <palves@redhat.com>
12878 Andrew Burgess <andrew.burgess@embecosm.com>
12879
12880 * gdbthread.h: Include "common/forward-scope-exit.h".
12881 (scoped_finish_thread_state): Redefine custom class in terms of
12882 forward_scope_exit.
12883
5b9b3e53
PA
128842019-01-23 Pedro Alves <palves@redhat.com>
12885 Andrew Burgess <andrew.burgess@embecosm.com>
12886
12887 * common/forward-scope-exit.h: New file.
12888
54b65c9b
PA
128892019-01-23 Pedro Alves <palves@redhat.com>
12890 Andrew Burgess <andrew.burgess@embecosm.com>
12891 Tom Tromey <tom@tromey.com>
12892
12893 * common/scope-exit.h: New file.
12894
cf08fb29
PA
128952019-01-23 Pedro Alves <palves@redhat.com>
12896
12897 * common/preprocessor.h (ESC): Rename to ...
12898 (ESC_PARENS): ... this.
12899 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12900 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12901
ae73e2e2
TT
129022019-01-23 Tom Tromey <tom@tromey.com>
12903
12904 * language.h (class scoped_switch_to_sym_language_if_auto):
12905 Initialize m_lang in both cases.
12906
6594e122
AH
129072019-01-23 Alan Hayward <alan.hayward@arm.com>
12908
12909 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12910 with XCNEW.
12911
a7c9855d
TT
129122019-01-22 Tom Tromey <tom@tromey.com>
12913
12914 * corelow.c: Do not include sys/file.h.
12915
93cc1d53
TT
129162019-01-22 Tom Tromey <tom@tromey.com>
12917
12918 * tui/tui-wingeneral.h: Include gdb_curses.h.
12919
38561778
TT
129202019-01-22 Tom Tromey <tom@tromey.com>
12921
12922 * source-cache.h (class source_cache) <get_source_lines,
12923 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12924
37b3ab5b
TT
129252019-01-22 Tom Tromey <tom@tromey.com>
12926
12927 * remote-fileio.h (struct remote_target): Declare.
12928
3fabc016
TT
129292019-01-22 Tom Tromey <tom@tromey.com>
12930
12931 * python/py-arch.c: Do not include py-ref.h.
12932 * python/py-bpevent.c: Do not include py-ref.h.
12933 * python/py-cmd.c: Do not include py-ref.h.
12934 * python/py-continueevent.c: Do not include py-ref.h.
12935 * python/py-event.h: Do not include py-ref.h.
12936 * python/py-evtregistry.c: Do not include py-ref.h.
12937 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12938 * python/py-frame.c: Do not include py-ref.h.
12939 * python/py-framefilter.c: Do not include py-ref.h.
12940 * python/py-function.c: Do not include py-ref.h.
12941 * python/py-infevents.c: Do not include py-ref.h.
12942 * python/py-linetable.c: Do not include py-ref.h.
12943 * python/py-objfile.c: Do not include py-ref.h.
12944 * python/py-param.c: Do not include py-ref.h.
12945 * python/py-prettyprint.c: Do not include py-ref.h.
12946 * python/py-progspace.c: Do not include py-ref.h.
12947 * python/py-symbol.c: Do not include py-ref.h.
12948 * python/py-symtab.c: Do not include py-ref.h.
12949 * python/py-type.c: Do not include py-ref.h.
12950 * python/py-unwind.c: Do not include py-ref.h.
12951 * python/py-utils.c: Do not include py-ref.h.
12952 * python/py-value.c: Do not include py-ref.h.
12953 * python/py-varobj.c: Do not include py-ref.h.
12954 * python/py-xmethods.c: Do not include py-ref.h.
12955 * python/python.c: Do not include py-ref.h.
12956 * varobj.c: Do not include py-ref.h.
12957
6b4d7774
TT
129582019-01-22 Tom Tromey <tom@tromey.com>
12959
12960 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12961 keyword for bcache.
12962
7af7e9b5
TT
129632019-01-22 Tom Tromey <tom@tromey.com>
12964
12965 * compile/compile-cplus-types.c: Remove a comment by #include.
12966
951d1049
TT
129672019-01-22 Tom Tromey <tom@tromey.com>
12968
12969 * compile/gcc-c-plugin.h: Include compile-internal.h.
12970
d65d5705
TT
129712019-01-22 Tom Tromey <tom@tromey.com>
12972
12973 * stabsread.c (EXTERN): Do not define.
12974 (symnum, next_symbol_text_func, processing_gcc_compilation)
12975 (within_function, global_sym_chain, global_stabs)
12976 (previous_stab_code, this_object_header_files)
12977 (n_this_object_header_files)
12978 (n_allocated_this_object_header_files): Define.
12979 * stabsread.h (EXTERN): Never define. Use "extern".
12980
b6fb1ee5
PW
129812019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12982
12983 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12984 history_value.
12985
be6d4f74
TT
129862019-01-21 Tom Tromey <tom@tromey.com>
12987
12988 * ui-out.c: Fix includes.
12989 * tui/tui-source.c: Fix includes.
12990 * target.c: Fix includes.
12991 * remote.c: Fix includes.
12992 * regcache.c: Fix includes.
12993 * python/py-block.c: Fix includes.
12994 * printcmd.c: Fix includes.
12995 * or1k-tdep.c: Fix includes.
12996 * mi/mi-main.c: Fix includes.
12997 * m32r-tdep.c: Fix includes.
12998 * csky-tdep.c: Fix includes.
12999 * compile/compile-cplus-types.c: Fix includes.
13000 * cli/cli-interp.c: Fix includes.
13001
73021deb
AH
130022019-01-21 Alan Hayward <alan.hayward@arm.com>
13003
13004 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13005 for padding.
13006
7932255d
TT
130072019-01-16 Tom Tromey <tom@tromey.com>
13008
13009 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13010 earlier.
13011 (struct objfile) <msymbols_range>: Move from top level.
13012 <msymbols>: New method.
13013 (class objfile_msymbols): Remove.
13014 * symtab.c (default_collect_symbol_completion_matches_break_on):
13015 Update.
13016 * symmisc.c (dump_msymbols): Update.
13017 * stabsread.c (scan_file_globals): Update.
13018 * objc-lang.c (info_selectors_command, info_classes_command)
13019 (find_methods): Update.
13020 * minsyms.c (find_solib_trampoline_target): Update.
13021 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13022 * coffread.c (coff_symfile_read): Update.
13023 * ada-lang.c (ada_lookup_simple_minsym)
13024 (ada_collect_symbol_completion_matches): Update.
13025
604b1bfb
TT
130262019-01-16 Tom Tromey <tom@tromey.com>
13027
13028 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13029 type. Remove no-argument constructor.
13030 <iterator::operator++>: Simplify.
13031 <begin>: Update.
13032 <end>: Use minimal_symbol_count.
13033
f252c6d5
TT
130342019-01-16 Tom Tromey <tom@tromey.com>
13035
13036 * objfiles.h (struct objfile) <psymtabs>: New method.
13037 (class objfile_psymtabs): Remove.
13038 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13039 typedef.
13040 <range>: New method.
13041 (require_partial_symbols): Change return type.
13042 * psymtab.c (require_partial_symbols)
13043 (psym_expand_symtabs_matching): Update.
13044 * mdebugread.c (parse_partial_symbols): Update.
13045 * dbxread.c (dbx_end_psymtab): Update.
13046
b669c953
TT
130472019-01-15 Tom Tromey <tom@tromey.com>
13048
13049 * symtab.c (lookup_objfile_from_block)
13050 (lookup_symbol_in_objfile_symtabs)
13051 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13052 (find_line_symtab, info_sources_command)
13053 (default_collect_symbol_completion_matches_break_on)
13054 (make_source_files_completion_list): Update.
13055 * symmisc.c (print_objfile_statistics, dump_objfile)
13056 (maintenance_print_symbols, maintenance_info_symtabs)
13057 (maintenance_check_symtabs, maintenance_info_line_tables):
13058 Update.
13059 * source.c (select_source_symtab)
13060 (forget_cached_source_info_for_objfile): Update.
13061 * objfiles.h (class objfile_compunits): Remove.
13062 (struct objfile) <compunits_range>: New typedef.
13063 (compunits): New method.
13064 * objfiles.c (objfile_relocate1): Update.
13065 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13066 * maint.c (count_symtabs_and_blocks): Update.
13067 * linespec.c (iterate_over_all_matching_symtabs): Update.
13068 * cp-support.c (add_symbol_overload_list_qualified): Update.
13069 * coffread.c (coff_symtab_read): Update.
13070 * ada-lang.c (add_nonlocal_symbols)
13071 (ada_collect_symbol_completion_matches)
13072 (ada_add_global_exceptions): Update.
13073
7e955d83
TT
130742019-01-15 Tom Tromey <tom@tromey.com>
13075
13076 * progspace.h (program_space) <objfiles_safe_range>: New
13077 typedef.
13078 <objfiles_safe>: New method.
13079 * objfiles.h (class all_objfiles_safe): Remove.
13080 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13081 * jit.c (jit_inferior_exit_hook): Update.
13082
2030c079
TT
130832019-01-17 Tom Tromey <tom@tromey.com>
13084
13085 * progspace.h (program_space) <objfiles_range>: New typedef.
13086 <objfiles>: New method.
13087 <objfiles_head>: Rename from objfiles.
13088 (object_files): Update.
13089 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13090 * guile/scm-pretty-print.c
13091 (ppscm_find_pretty_printer_from_objfiles): Update.
13092 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13093 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13094 Update.
13095 * python/py-progspace.c (pspy_get_objfiles): Update.
13096 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13097 Update.
13098 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13099 (objfpy_lookup_objfile_by_build_id): Update.
13100 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13101 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13102 Update.
13103 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13104 (expand_symtab_containing_pc, lookup_objfile_from_block)
13105 (lookup_static_symbol, basic_lookup_transparent_type)
13106 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13107 (find_line_symtab, info_sources_command)
13108 (default_collect_symbol_completion_matches_break_on)
13109 (make_source_files_completion_list, find_main_name): Update.
13110 * symmisc.c (print_symbol_bcache_statistics)
13111 (print_objfile_statistics, maintenance_print_symbols)
13112 (maintenance_print_msymbols, maintenance_print_objfiles)
13113 (maintenance_info_symtabs, maintenance_check_symtabs)
13114 (maintenance_expand_symtabs, maintenance_info_line_tables):
13115 Update.
13116 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13117 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13118 (map_overlay_command, unmap_overlay_command)
13119 (simple_overlay_update, expand_symtabs_matching)
13120 (map_symbol_filenames): Update.
13121 * symfile-debug.c (set_debug_symfile): Update.
13122 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13123 Update.
13124 * source.c (select_source_symtab, forget_cached_source_info):
13125 Update.
13126 * solib.c (solib_read_symbols): Update.
13127 * solib-spu.c (append_ocl_sos): Update.
13128 * psymtab.c (maintenance_print_psymbols)
13129 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13130 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13131 * printcmd.c (info_symbol_command): Update.
13132 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13133 Update.
13134 * objfiles.h (class all_objfiles): Remove.
13135 * objfiles.c (have_partial_symbols, have_full_symbols)
13136 (have_minimal_symbols, qsort_cmp, update_section_map)
13137 (shared_objfile_contains_address_p)
13138 (default_iterate_over_objfiles_in_search_order): Update.
13139 * objc-lang.c (info_selectors_command, info_classes_command)
13140 (find_methods): Update.
13141 * minsyms.c (find_solib_trampoline_target): Update.
13142 * maint.c (maintenance_info_sections)
13143 (maintenance_translate_address, count_symtabs_and_blocks):
13144 Update.
13145 * main.c (captured_main_1): Update.
13146 * linux-thread-db.c (try_thread_db_load_from_pdir)
13147 (has_libpthread): Update.
13148 * linespec.c (iterate_over_all_matching_symtabs)
13149 (search_minsyms_for_name): Update.
13150 * jit.c (jit_find_objf_with_entry_addr): Update.
13151 * hppa-tdep.c (find_unwind_entry)
13152 (hppa_lookup_stub_minimal_symbol): Update.
13153 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13154 Update.
13155 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13156 (elf_gnu_ifunc_resolve_by_got): Update.
13157 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13158 * dwarf-index-write.c (save_gdb_index_command): Update.
13159 * cp-support.c (add_symbol_overload_list_qualified): Update.
13160 * breakpoint.c (create_overlay_event_breakpoint)
13161 (create_longjmp_master_breakpoint)
13162 (create_std_terminate_master_breakpoint)
13163 (create_exception_master_breakpoint): Update.
13164 * blockframe.c (find_pc_partial_function): Update.
13165 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13166 (ada_collect_symbol_completion_matches)
13167 (ada_add_global_exceptions): Update.
13168
776489e0
TT
131692019-01-17 Tom Tromey <tom@tromey.com>
13170
13171 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13172 declare VEC.
13173 (solib_target_parse_libraries): Change return type.
13174 (library_list_start_segment, library_list_start_section)
13175 (library_list_end_library, library_list_start_library); Update.
13176 (solib_target_free_library_list): Remove.
13177 (solib_target_parse_libraries): Remove cleanup. Change return
13178 type.
13179 (solib_target_current_sos): Update.
13180
6471e7d2
TT
131812019-01-17 Tom Tromey <tromey@bapiya>
13182
13183 * valprint.c: Replace "the the" with "the".
13184 * symtab.c: Replace "the the" with "the".
13185 * solib.c: Replace "the the" with "the".
13186 * solib-dsbt.c: Replace "the the" with "the".
13187 * linespec.c: Replace "the the" with "the".
13188 * dwarf2loc.h: Replace "the the" with "the".
13189 * amd64-windows-tdep.c: Replace "the the" with "the".
13190 * aarch64-tdep.c: Replace "the the" with "the".
13191
c24bdb02
KS
131922019-01-16 Keith Seitz <keiths@redhat.com>
13193
13194 PR gdb/23773
13195 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13196 <builder>: Rename to ..
13197 <m_builder>: ... this and make private.
13198 (dwarf2_cu::get_builder): New method. Change all users of
13199 `builder' to use this method.
13200 (dwarf2_start_symtab): Move to ...
13201 (dwarf2_cu::start_symtab): ... here. Update all callers
13202 (setup_type_unit_groups): Move to ...
13203 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13204 callers.
13205 (dwarf2_cu::reset_builder): New method.
13206 (process_full_compunit, process_full_type_unit): Use
13207 dwarf2_cu::reset_builder.
13208 (follow_die_offset): Record the ancestor CU if it is different
13209 from the followed DIE's CU.
13210 (follow_die_sig_1): Likewise.
13211
8d64371b
TT
132122019-01-15 Tom Tromey <tom@tromey.com>
13213
13214 * remote.c (class remote_state) <buf>: Now a char_vector.
13215 <buf_size>: Remove.
13216 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13217 parameter.
13218 (remote_target::getpkt_or_notif_sane_1)
13219 (remote_target::getpkt_sane)
13220 (remote_target::getpkt_or_notif_sane): Likewise.
13221 (class remote_target) <putpkt>: New overload.
13222 (remote_target::read_frame): Change type of "buf_p". Remove
13223 sizeof_p parameter.
13224 (packet_ok): New overload.
13225 (packet_check_result): New overload.
13226 Update all uses.
13227
bb277751
TT
132282019-01-14 Tom Tromey <tom@tromey.com>
13229
13230 * remote-notif.c (handle_notification, remote_notif_ack)
13231 (remote_notif_parse): Make "buf" const.
13232 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13233 const.
13234 (remote_notif_parse, remote_notif_ack, handle_notification):
13235 Likewise.
13236 * remote.c (remote_notif_stop_parse): Make "buf" const.
13237 (remote_target::remote_parse_stop_reply): Make "buf" const.
13238 (remote_notif_stop_ack): Make "buf" const.
13239
05be00a8
TT
132402019-01-14 Tom Tromey <tom@tromey.com>
13241
13242 * remote.c (remote_console_output): Make parameter const.
13243
491adeca
TT
132442019-01-14 Tom Tromey <tom@tromey.com>
13245
13246 * target-debug.h (target_debug_print_signals): Constify.
13247 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13248 * procfs.c (procfs_target::pass_signals): Update.
13249 * linux-nat.c (linux_nat_target::pass_signals): Update.
13250 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13251 * target-delegates.c: Rebuild.
13252 * remote.c (remote_target::program_signals): Update.
13253 (remote_target::pass_signals): Update.
13254 * target.c (target_pass_signals): Constify argument.
13255 (target_program_signals): Likewise.
13256 * target.h (struct target_ops) <pass_signals, program_signals>:
13257 Constify argument.
13258 (target_pass_signals, target_program_signals): Constify argument.
13259
bbd94648
TT
132602019-01-14 Tom Tromey <tom@tromey.com>
13261
13262 PR tui/28819:
13263 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13264
6f072a10
PFC
132652019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13266
13267 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13268 field.
13269 * rs6000-tdep.c: Include reggroups.h.
13270 (IS_V_ALIAS_PSEUDOREG): Define.
13271 (rs6000_register_name): Return names for the "vX" aliases.
13272 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13273 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13274 aliases. Call default_register_reggroup_p for all other
13275 pseudo-registers.
13276 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13277 New functions.
13278 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13279 Handle "vX" aliases.
13280 (v_alias_pseudo_register_collect): New function.
13281 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13282 (rs6000_gdbarch_init): Initialize "vX" aliases as
13283 pseudo-registers. Restore registration of
13284 rs6000_pseudo_register_reggroup_p with
13285 set_tdesc_pseudo_register_reggroup_p.
13286
1a782351
MF
132872019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13288
13289 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13290 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13291 set_gdbarch_num_pseudo_regs.
13292
d73cff18
PW
132932019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13294
13295 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13296 Remove arg prefixname, add do_set and do_show.
13297 Add member functions set_list and show_list.
13298 * cli/cli-style.c (class cli_style_option): Update accordingly.
13299 (style_set_list): Move to file scope.
13300 (style_show_list): Likewise.
13301 (set_style): Call help_list.
13302 (show_style): Call cmd_show_list.
13303 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13304 Update to use the new macro.
13305
60a90376
JB
133062019-10-12 Joel Brobecker <brobecker@adacore.com>
13307
13308 * ada-lang.c (_initialize_ada_language): Expand the help text
13309 for the "catch exception" command.
13310
9d7c67bf
PW
133112019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13312
13313 * symtab.c (matching_obj_sections): Initialize obj,
13314 declare it closer to its usage.
13315
7cf47dc4
TT
133162019-01-10 Tom Tromey <tom@tromey.com>
13317
13318 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13319 (basic_inf_threads_range): Remove.
13320 (inf_threads_range, inf_non_exited_threads_range)
13321 (safe_inf_threads_range): Use next_adapter.
13322
d3cb6808
KS
133232019-01-10 Keith Seitz <keiths@redhat.com>
13324
13325 PR gdb/23712
13326 PR symtab/23010
13327 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13328 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13329
63a20375
KS
133302019-01-10 Keith Seitz <keiths@redhat.com>
13331
13332 PR gdb/23712
13333 PR symtab/23010
13334 * dictionary.c (pending_to_vector): Remove.
13335 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13336 Remove _1 suffix, replacing functions of the same name. Update
13337 all callers.
13338 (dict_create_hashed, dict_create_hashed_expandable)
13339 (dict_create_linear, dict_create_linear_expandable, dict_free)
13340 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13341 Make functions static.
13342
b026f593
KS
133432019-01-10 Keith Seitz <keiths@redhat.com>
13344
13345 PR gdb/23712
13346 PR symtab/23010
13347 * dictionary.h (struct dictionary): Replace declaration with
13348 multidictionary.
13349 (dict_create_hashed, dict_create_hashed_expandable)
13350 (dict_create_linear, dict_create_linear_expandable)
13351 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13352 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13353 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13354 taking multidictionary argument.
13355 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13356 * block.h (struct block) <dict>: Change to multidictionary
13357 and rename `multidict'.
13358 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13359 symmisc.c: Update all dictionary references to multidictionary.
13360
c7748ee9
KS
133612019-01-10 Keith Seitz <keiths@redhat.com>
13362
13363 PR gdb/23712
13364 PR symtab/23010
13365 * dictionary.c: Include unordered_map.
13366 (pending_to_vector): New function.
13367 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13368 Rewrite the non-"_1" functions to take vector instead
13369 of linked list.
13370 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13371 "new" _1 versions of the same name.
13372 (multidictionary): Define.
13373 (std::hash<enum language): New definition.
13374 (collate_pending_symbols_by_language, mdict_create_hashed)
13375 (mdict_create_hashed_expandable, mdict_create_linear)
13376 (mdict_create_linear_expandable, mdict_free)
13377 (find_language_dictionary, create_new_language_dictionary)
13378 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13379 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13380 (mdict_size, mdict_empty): New functions.
13381 * dictionary.h (mdict_iterator): Define.
13382
67aa1f3c
PA
133832019-01-10 Pedro Alves <palves@redhat.com>
13384
13385 * breakpoint.c (read_uploaded_action)
13386 (create_tracepoint_from_upload): Adjust to use
13387 gdb::unique_xmalloc_ptr.
13388 * ctf.c (ctf_write_uploaded_tp):
13389 (SET_ARRAY_FIELD): Use emplace_back.
13390 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13391 * tracefile-tfile.c (tfile_write_uploaded_tp):
13392 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13393 gdb::unique_xmalloc_ptr.
13394 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13395 at_string, cond_string, cmd_strings>: Replace char pointers
13396 with gdb::unique_xmalloc_ptr.
13397
2f667667
PA
133982019-01-10 Pedro Alves <palves@redhat.com>
13399
13400 * solib-target.c (library_list_start_library): Don't xstrdup name.
13401
36cb7237
PA
134022019-01-10 Pedro Alves <palves@redhat.com>
13403
13404 * mdebugread.c (parse_partial_symbols): Use
13405 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13406
da584958
AB
134072019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13408
13409 * linux-fork.c (scoped_switch_fork_info)
13410 <~scoped_switch_fork_info>: Fix incorrect variable name.
13411
1ef8573c
AB
134122019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13413
13414 * linux-fork.c (scoped_switch_fork_info)
13415 <scoped_switch_fork_info>: Make explicit.
13416 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13417
8d7bcccb
TT
134182019-01-10 Tom Tromey <tom@tromey.com>
13419
13420 * objfiles.h (objfile::reset_psymtabs): Update.
13421 * objfiles.c (objfile::objfile): Update.
13422 * psymtab.h (psymtab_storage::obstack): Update.
13423 (psymtab_storage::m_obstack): Use gdb::optional.
13424 (class psymtab_storage): Update comment. Remove objfile
13425 parameter.
13426 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13427
b596a3c7
TT
134282019-01-10 Tom Tromey <tom@tromey.com>
13429
13430 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13431 <free_psymtabs>: Now private.
13432 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13433 (allocate_psymtab): Use new method.
13434
a9342b62
TT
134352019-01-10 Tom Tromey <tom@tromey.com>
13436
13437 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13438 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13439 * mdebugread.c (parse_partial_symbols): Use
13440 allocate_dependencies.
13441 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13442 allocate_dependencies.
13443 (process_psymtab_comp_unit_reader)
13444 (build_type_psymtab_dependencies): Likewise.
13445 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13446
5af70966
TT
134472019-01-10 Tom Tromey <tom@tromey.com>
13448
13449 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13450 PSYMBOL_SET_LANGUAGE.
13451 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13452
5923a04c
TT
134532019-01-10 Tom Tromey <tom@tromey.com>
13454
13455 * psymtab.h (psymtab_storage::obstack): New method.
13456 <m_obstack>: Rename from obstack; now private.
13457 * psymtab.c (psymtab_storage): Update.
13458 * dwarf2read.c (create_addrmap_from_index)
13459 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13460 Update.
13461
6d6a12bf
TT
134622019-01-10 Tom Tromey <tom@tromey.com>
13463
13464 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13465 * objfiles.h (objfile::reset_psymtabs): New method.
13466
d320c2b5
TT
134672019-01-10 Tom Tromey <tom@tromey.com>
13468
13469 * symmisc.c (print_symbol_bcache_statistics): Update.
13470 (print_objfile_statistics): Update.
13471 * symfile.c (reread_symbols): Update.
13472 * psymtab.h (class psymtab_storage): New.
13473 * psymtab.c (psymtab_storage): New constructor.
13474 (~psymtab_storage): New destructor.
13475 (require_partial_symbols): Update.
13476 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13477 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13478 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13479 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13480 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13481 (start_psymtab_common, end_psymtab_common)
13482 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13483 (allocate_psymtab): Update.
13484 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13485 Update.
13486 (dump_psymtab_addrmap, maintenance_print_psymbols)
13487 (maintenance_check_psymtabs): Update.
13488 (class objfile_psymtabs): Move to objfiles.h.
13489 * psympriv.h (discard_psymtab): Now inline.
13490 (psymtab_discarder::psymtab_discarder): Update.
13491 (psymtab_discarder::~psymtab_discarder): Update.
13492 (ALL_OBJFILE_PSYMTABS): Rewrite.
13493 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13494 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13495 Remove fields.
13496 <partial_symtabs>: New field.
13497 (class objfile_psymtabs): Move from psymtab.h. Update.
13498 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13499 psymbol_cache.
13500 (objfile::~objfile): Don't destroy psymbol_cache.
13501 * mdebugread.c (parse_partial_symbols): Update.
13502 * dwarf2read.c (create_addrmap_from_index)
13503 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13504 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13505 (add_partial_subprogram, dwarf2_ranges_read): Update.
13506 * dwarf-index-write.c (write_address_map)
13507 (write_one_signatured_type, recursively_write_psymbols)
13508 (class debug_names, class debug_names, write_psymtabs_to_index):
13509 Update.
13510
1d94a5a3
TT
135112019-01-10 Tom Tromey <tom@tromey.com>
13512
13513 * symtab.h (SYMBOL_SET_NAMES): Update.
13514 (symbol_set_names): Update.
13515 (MSYMBOL_SET_NAMES): Update.
13516 * symtab.c (symbol_set_names): Change argument to be an
13517 objfile_per_bfd_storage.
13518 * psymtab.c (add_psymbol_to_bcache): Update.
13519 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13520
0f14768a
TT
135212019-01-10 Tom Tromey <tom@tromey.com>
13522
13523 * symtab.c (create_demangled_names_hash): Change argument to be an
13524 objfile_per_bfd_storage.
13525 (symbol_set_names): Update.
13526
6eee24ce
TT
135272019-01-10 Tom Tromey <tom@tromey.com>
13528
13529 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13530 init_psymbol_list.
13531 * psymtab.c (init_psymbol_list): Do nothing if already called.
13532 * psympriv.h (init_psymbol_list): Add comment.
13533 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13534 init_psymbol_list.
13535 * dbxread.c (dbx_symfile_read): Unconditionally call
13536 init_psymbol_list.
13537
75aedd27
TT
135382019-01-10 Tom Tromey <tom@tromey.com>
13539
13540 * xcoffread.c (scan_xcoff_symtab): Update.
13541 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13542 "where".
13543 * mdebugread.c (parse_partial_symbols)
13544 (handle_psymbol_enumerators): Update.
13545 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13546 * dbxread.c (read_dbx_symtab): Update.
13547 * psympriv.h (psymbol_placement): New enum.
13548 (add_psymbol_to_list): Update.
13549
939652a5
TT
135502019-01-10 Tom Tromey <tom@tromey.com>
13551
13552 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13553 static_psymbols parameters.
13554 (scan_xcoff_symtab): Update.
13555 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13556 static_psymbols parameters.
13557 * psympriv.h (start_psymtab_common): Update.
13558 * mdebugread.c (parse_partial_symbols): Update.
13559 * dwarf2read.c (create_partial_symtab): Update.
13560 * dbxread.c (read_dbx_symtab): Update.
13561 (start_psymtab): Remove global_psymbols and static_psymbols
13562 parameters.
13563
baa62830
TT
135642019-01-10 Tom Tromey <tom@tromey.com>
13565
13566 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13567 * psymtab.c (allocate_psymtab): Add comment.
13568 * psympriv.h (allocate_psymtab): Add comment.
13569 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13570 initializations.
13571 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13572
0e8f53ba
TT
135732019-01-10 Tom Tromey <tom@tromey.com>
13574
13575 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13576 Don't declare.
13577 * mipsread.c: Include mdebugread.h.
13578 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13579 Declare.
13580 * elfread.c: Include mdebugread.h.
13581
b22a7c6a
TT
135822019-01-09 Tom Tromey <tom@tromey.com>
13583
13584 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13585 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13586 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13587 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13588 (psym_lookup_symbol, psym_find_last_source_symtab)
13589 (psym_forget_cached_source_info, psym_print_stats)
13590 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13591 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13592 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13593 (psym_find_compunit_symtab_by_address)
13594 (maintenance_print_psymbols, maintenance_info_psymtabs)
13595 (maintenance_check_psymtabs): Use ranged for.
13596 * psymtab.h (class objfile_psymtabs): New.
13597 (require_partial_symbols): Return objfile_psymtabs.
13598 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13599
3b9d3ac2
TT
136002019-01-09 Tom Tromey <tom@tromey.com>
13601
13602 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13603 (find_pc_mapped_section, list_overlays_command)
13604 (map_overlay_command, unmap_overlay_command)
13605 (simple_overlay_update): Use all_objfiles.
13606 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13607 * printcmd.c (info_symbol_command): Use all_objfiles.
13608 * objfiles.h (ALL_OBJSECTIONS): Remove.
13609 * maint.c (maintenance_translate_address): Use all_objfiles.
13610 * gcore.c (gcore_create_callback): Use all_objfiles.
13611 (objfile_find_memory_regions): Likewise.
13612
8b31193a
TT
136132019-01-09 Tom Tromey <tom@tromey.com>
13614
13615 * symtab.c (find_line_symtab, info_sources_command)
13616 (make_source_files_completion_list): Use objfile_compunits.
13617 * source.c (select_source_symtab): Use objfile_compunits.
13618 * objfiles.h (struct objfile): Update comment.
13619 (ALL_OBJFILES): Remove.
13620 (ALL_FILETABS): Remove.
13621 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13622 objfile_compunits.
13623
d5da8b3c
TT
136242019-01-09 Tom Tromey <tom@tromey.com>
13625
13626 * symmisc.c (print_objfile_statistics, dump_objfile)
13627 (maintenance_print_symbols): Use compunit_filetabs.
13628 * source.c (forget_cached_source_info_for_objfile): Use
13629 compunit_filetabs.
13630 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13631 (ALL_FILETABS): Use compunit_filetabs.
13632 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13633 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13634
5accd1a0
TT
136352019-01-09 Tom Tromey <tom@tromey.com>
13636
13637 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13638 (compunit_filetabs): New.
13639 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13640 compunit_filetabs.
13641 (info_sources_command, make_source_files_completion_list): Remove
13642 declaration.
13643 * symmisc.c (print_objfile_statistics, dump_objfile)
13644 (maintenance_print_symbols): Remove declaration.
13645 (maintenance_info_symtabs): Use compunit_filetabs.
13646 (maintenance_info_line_tables): Likewise.
13647 * source.c (select_source_symtab): Change local variable name.
13648 (forget_cached_source_info_for_objfile): Remove declaration.
13649 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13650 * objfiles.c (objfile_relocate1): Remove declaration.
13651 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13652 declaration.
13653 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13654 * coffread.c (coff_symtab_read): Remove declaration.
13655 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13656 compunit_filetabs.
13657
d8aeb77f
TT
136582019-01-09 Tom Tromey <tom@tromey.com>
13659
13660 * symtab.c (lookup_objfile_from_block)
13661 (find_pc_sect_compunit_symtab, search_symbols)
13662 (default_collect_symbol_completion_matches_break_on): Use
13663 objfile_compunits.
13664 * objfiles.h (ALL_COMPUNITS): Remove.
13665 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13666 * cp-support.c (add_symbol_overload_list_qualified): Use
13667 objfile_compunits.
13668 * ada-lang.c (ada_collect_symbol_completion_matches)
13669 (ada_add_global_exceptions): Use objfile_compunits.
13670
592553c4
TT
136712019-01-09 Tom Tromey <tom@tromey.com>
13672
13673 * source.c (select_source_symtab)
13674 (forget_cached_source_info_for_objfile): Remove declaration.
13675 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13676 declaration.
13677 * maint.c (count_symtabs_and_blocks): Remove declaration.
13678 * cp-support.c (add_symbol_overload_list_qualified): Remove
13679 declaration.
13680 * coffread.c (coff_symtab_read): Remove declaration.
13681 * symtab.c (lookup_symbol_in_objfile_symtabs)
13682 (basic_lookup_transparent_type_1): Use objfile_compunits.
13683 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13684 (info_sources_command, search_symbols)
13685 (default_collect_symbol_completion_matches_break_on)
13686 (make_source_files_completion_list): Remove declaration.
13687 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13688 (ada_collect_symbol_completion_matches)
13689 (ada_add_global_exceptions): Remove declaration.
13690 * linespec.c (iterate_over_all_matching_symtabs): Use
13691 objfile_compunits.
13692 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13693 (class objfile_compunits): New.
13694 (ALL_COMPUNITS): Use objfile_compunits.
13695 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13696 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13697 objfile_compunits.
13698 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13699
5325b9bf
TT
137002019-01-09 Tom Tromey <tom@tromey.com>
13701
13702 * symtab.c (search_symbols)
13703 (default_collect_symbol_completion_matches_break_on): Use
13704 objfile_msymbols.
13705 * ada-lang.c (ada_lookup_simple_minsym)
13706 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13707 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13708 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13709 objfile_msymbols.
13710 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13711 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13712 * objc-lang.c (find_methods): Use objfile_msymbols.
13713 (info_selectors_command, info_classes_command): Likewise.
13714 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13715 * objfiles.h (class objfile_msymbols): New.
13716 (ALL_OBJFILE_MSYMBOLS): Remove.
13717 (ALL_MSYMBOLS): Remove.
13718
cac85af2
TT
137192019-01-09 Tom Tromey <tom@tromey.com>
13720
13721 * common/next-iterator.h (next_adapter): Add Iterator template
13722 parameter.
13723 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13724 (class all_objfiles_safe): New.
13725 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13726 * objfiles.c (put_objfile_before): Update comment.
13727 (add_separate_debug_objfile): Likewise.
13728 (free_all_objfiles): Use all_objfiles_safe.
13729 (objfile_purge_solibs): Likewise.
13730
aed57c53
TT
137312019-01-09 Tom Tromey <tom@tromey.com>
13732
13733 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13734 (expand_symtab_containing_pc, lookup_static_symbol)
13735 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13736 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13737 all_objfiles.
13738 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13739 * breakpoint.c (create_overlay_event_breakpoint)
13740 (create_longjmp_master_breakpoint)
13741 (create_std_terminate_master_breakpoint)
13742 (create_exception_master_breakpoint): Use all_objfiles.
13743 * linux-thread-db.c (try_thread_db_load_from_pdir)
13744 (has_libpthread): Use all_objfiles.
13745 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13746 * linespec.c (iterate_over_all_matching_symtabs)
13747 (search_minsyms_for_name): Use all_objfiles.
13748 * maint.c (maintenance_info_sections): Use all_objfiles.
13749 * main.c (captured_main_1): Use all_objfiles.
13750 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13751 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13752 * guile/scm-pretty-print.c
13753 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13754 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13755 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13756 (maintenance_print_msymbols): Use all_objfiles.
13757 * source.c (select_source_symtab): Use all_objfiles.
13758 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13759 * symfile.c (remove_symbol_file_command)
13760 (expand_symtabs_matching, map_symbol_filenames): Use
13761 all_objfiles.
13762 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13763 all_objfiles.
13764 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13765 * objc-lang.c (find_methods): Use all_objfiles.
13766 * objfiles.c (have_partial_symbols, have_full_symbols)
13767 (have_minimal_symbols, qsort_cmp)
13768 (default_iterate_over_objfiles_in_search_order): Use
13769 all_objfiles.
13770 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13771 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13772 (maintenance_check_psymtabs): Use all_objfiles.
13773 (ALL_PSYMTABS): Remove.
13774 * compile/compile-object-run.c (do_module_cleanup): Use
13775 all_objfiles.
13776 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13777 * cp-support.c (add_symbol_overload_list_qualified): Use
13778 all_objfiles.
13779 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13780 Use all_objfiles.
13781 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13782 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13783 all_objfiles.
13784 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13785 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13786 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13787 Uses all_objfiles.
13788 * solib.c (solib_read_symbols): Use all_objfiles
13789
99d89cde
TT
137902019-01-09 Tom Tromey <tom@tromey.com>
13791
13792 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13793 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13794 all_objfiles.
13795 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13796 * symmisc.c (print_symbol_bcache_statistics)
13797 (print_objfile_statistics, maintenance_print_objfiles)
13798 (maintenance_info_symtabs, maintenance_check_symtabs)
13799 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13800 all_objfiles.
13801 * source.c (forget_cached_source_info): Use all_objfiles.
13802 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13803 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13804 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13805 * objfiles.c (update_section_map): Use all_objfiles.
13806 (shared_objfile_contains_address_p): Likewise.
13807 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13808 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13809
21708325
TT
138102019-01-09 Tom Tromey <tom@tromey.com>
13811
13812 * common/next-iterator.h: New file.
13813 * objfiles.h (class all_objfiles): New.
13814 (struct objfile_iterator): New.
13815
669e09f6
PW
138162019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13817
13818 * NEWS: Move the description of the changed "frame", "select-frame",
13819 and "info frame" commands to the Changed commands section.
13820
041be526
SM
138212019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13822
13823 * gdbtypes.c (check_stub_method_group): Remove handling of old
13824 mangling schemes.
13825 * linespec.c (find_methods): Likewise.
13826 * stabsread.c (read_member_functions): Likewise.
13827 * valops.c (search_struct_method): Likewise.
13828 (value_struct_elt_for_reference): Likewise.
13829 * NEWS: Mention this change.
13830
0e2a2133
AB
138312019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13832
13833 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13834 print_source_lines.
13835 * source.c (print_source_lines_base): Update line number check.
13836 (print_source_lines): New function.
13837 (source_lines_range::source_lines_range): New function.
13838 * source.h (class source_lines_range): New class.
13839 (print_source_lines): New declaration.
13840
1055a3b4
PW
138412019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13842
13843 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13844
cfeadda5
TT
138452019-01-08 Tom Tromey <tom@tromey.com>
13846 Simon Marchi <simon.marchi@ericsson.com>
13847
13848 PR gdb/24060
13849 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13850 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13851 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13852 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13853 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13854 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13855
583068ca
AB
138562019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13857
13858 * source.c (select_source_symtab): Move header comment to
13859 declaration in source.h.
13860 (forget_cached_source_info_for_objfile): Likewise.
13861 (forget_cached_source_info): Likewise.
13862 (identify_source_line): Likewise.
13863 * source.h (identify_source_line): Move declaration from symtab.h
13864 and add comment from source.c
13865 (print_source_lines): Likewise.
13866 (forget_cached_source_info_for_objfile): Likewise.
13867 (forget_cached_source_info): Likewise.
13868 (select_source_symtab): Likewise.
13869 (enum print_source_lines_flag): Move definition from symtab.h.
13870 * symtab.h (identify_source_line): Move declaration to source.h.
13871 (print_source_lines): Likewise.
13872 (forget_cached_source_info_for_objfile): Likewise.
13873 (forget_cached_source_info): Likewise.
13874 (select_source_symtab): Likewise.
13875 (enum print_source_lines_flag): Move definition to source.h.
13876 * tui/tui-hooks.c: Add 'source.h' include.
13877
ec98a4ad
AB
138782019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13879
13880 * source.c (print_source_lines_base): Handle requests to print
13881 reverse line number sequences, and guard against empty lines
13882 string.
13883
62ea19c1
AB
138842019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13885
13886 * source.c (print_source_lines_base): Fix skip of '\r' if next
13887 character is '\n'.
13888
9d30e1fd
TT
138892019-01-06 Tom Tromey <tom@tromey.com>
13890
13891 * c-exp.y (struct c_parse_state) <macro_original_text,
13892 expansion_obstack>: New member.
13893 (macro_original_text, expansion_obstack): Remove globals.
13894 (scan_macro_expansion, scanning_macro_expansion)
13895 (finished_macro_expansion): Update.
13896 (scan_macro_cleanup): Remove.
13897 (yylex, c_parse): Update.
13898
c65bac38
TT
138992019-01-06 Tom Tromey <tom@tromey.com>
13900
13901 * c-exp.y (struct c_parse_state) <strings>: New member.
13902 (operator_stoken): Update.
13903
02e12e38
TT
139042019-01-06 Tom Tromey <tom@tromey.com>
13905
13906 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13907 (union type_stack_elt) <typelist_val>: Now a pointer to
13908 std::vector.
13909 (type_stack_cleanup): Don't declare.
13910 (push_typelist): Update.
13911 * parse.c (pop_typelist): Return a std::vector.
13912 (push_typelist): Take a std::vector.
13913 (follow_types): Update. Do not free args.
13914 (type_stack_cleanup): Remove.
13915 * c-exp.y (struct c_parse_state): New.
13916 (cpstate): New global.
13917 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13918 (nonempty_typelist): Update.
13919 (func_mod): Create a new vector.
13920 (c_parse): Create a c_parse_state.
13921 (check_parameter_typelist): Do not delete params.
13922 (function_method): Update. Do not delete type_list.
13923
f097f5ad
TT
139242019-01-06 Tom Tromey <tom@tromey.com>
13925
13926 PR gdb/28155:
13927 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13928 check_typedef.
13929 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13930 (print_return_value): Likewise.
13931
d2adf9f1
TT
139322019-01-05 Tom Tromey <tom@tromey.com>
13933
13934 * contrib/cleanup_check.py: Remove.
13935 * contrib/gcc-with-excheck: Remove.
13936 * contrib/exsummary.py: Remove.
13937 * contrib/excheck.py: Remove.
13938
2eab46b1
JB
139392019-01-05 Joel Brobecker <brobecker@adacore.com>
13940
13941 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13942 NULL. Initialize tpprev to NULL instead of assigning it
13943 to NULL on the next statement.
13944 * windows-nat.c (windows_delete_thread): Remove check for
13945 main_thread_id before printing thread exit notifications.
13946 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13947 Remove thread ID check against main_thread_id.
13948 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13949 windows_delete_thread.
13950 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13951
48c5e7e2
TT
139522019-01-04 Tom Tromey <tom@tromey.com>
13953
13954 * compile/compile.c (_initialize_compile): Use upper case for
13955 metasyntactic variables.
13956 * symmisc.c (_initialize_symmisc): Use upper case for
13957 metasyntactic variables.
13958 * psymtab.c (_initialize_psymtab): Use upper case for
13959 metasyntactic variables.
13960 * demangle.c (demangle_command): Use upper case for metasyntactic
13961 variables.
13962 (_initialize_demangler): Likewise.
13963 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13964 variables.
13965
986041cd
TT
139662019-01-03 Tom Tromey <tom@tromey.com>
13967
13968 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13969
7c711119
TT
139702019-01-03 Tom Tromey <tom@tromey.com>
13971
13972 * python/py-symtab.c (salpy_str): Update.
13973 (struct salpy_sal_object) <symtab>: Now a PyObject.
13974 (salpy_dealloc): Update.
13975 (del_objfile_sal): Use gdbpy_ref.
13976
1b20edf0
TT
139772019-01-03 Tom Tromey <tom@tromey.com>
13978
13979 * python/py-type.c (convert_field): Use new_reference. Return
13980 gdbpy_ref.
13981 (make_fielditem): Return gdbpy_ref.
13982 (typy_fields): Update.
13983 (typy_getitem): Update.
13984 (field_name): Return gdbpy_ref. Use new_reference.
13985 (typy_iterator_iternext): Update.
13986
ea41325b
TT
139872019-01-03 Tom Tromey <tom@tromey.com>
13988
13989 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13990
2a3c71d6
TT
139912019-01-03 Tom Tromey <tom@tromey.com>
13992
13993 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13994 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13995 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13996 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13997 (pspy_set_type_printers): Likewise.
13998 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13999 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14000 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14001 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14002 (objfpy_set_type_printers): Likewise.
14003
5c329e6a
TT
140042019-01-03 Tom Tromey <tom@tromey.com>
14005
14006 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14007 (gdbpy_print_stack): Use gdbpy_err_fetch.
14008 * python/python-internal.h (class gdbpy_err_fetch): New class.
14009 (class gdbpy_enter) <m_error_type, m_error_value,
14010 m_error_traceback>: Remove.
14011 <m_error>: New member.
14012 (gdbpy_exception_to_string): Don't declare.
14013 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14014 * python/py-value.c (convert_value_from_python): Use
14015 gdbpy_err_fetch.
14016 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14017 gdbpy_exception_to_string.
14018 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14019 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14020 gdbpy_err_fetch.
14021
169bb27b
AB
140222019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14023
14024 * linux-nat.c (delete_lwp_cleanup): Delete.
14025 (struct lwp_deleter): New struct.
14026 (lwp_info_up): New typedef.
14027 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14028 lwp_info_up.
14029
a07c8880
AB
140302019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14031
14032 * linux-fork.c (class scoped_switch_fork_info): New class.
14033 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14034
26089c49
AB
140352019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14036
14037 * valops.c (find_overload_match): Remove use of null_cleanup, and
14038 calls to do_cleanups.
14039
06d3e5b0
AB
140402019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14041
14042 * compile/compile-cplus-types.c
14043 (compile_cplus_instance::decl_name): Handle changes to
14044 cp_func_name.
14045 * cp-support.c (cp_func_name): Update header comment, update
14046 return type.
14047 * cp-support.h (cp_func_name): Update return type in declaration.
14048 * valops.c (find_overload_match): Move temp_func local to top
14049 level of function and change its type. Use temp_func to hold and
14050 delete temporary string obtained from cp_func_name.
14051
66644cd3
AB
140522019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14053
14054 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14055 gdb::char_vector, remove cleanup, and update uses of `msg`.
14056
592d8c0a
JW
140572019-01-03 Jim Wilson <jimw@sifive.com>
14058
14059 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14060
c55d06ec
TT
140612019-01-02 Tom Tromey <tom@tromey.com>
14062
14063 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14064 (tdesc_parse_xml): Remove cleanups.
14065 * target-descriptions.h (make_cleanup_free_target_description):
14066 Don't declare.
14067 (target_desc_deleter): New struct.
14068 (target_desc_up): New typedef.
14069 * target-descriptions.c (target_desc_deleter::operator()): Rename
14070 from free_target_description.
14071 (make_cleanup_free_target_description): Remove.
14072
3a6ae42d
TT
140732019-01-02 Tom Tromey <tom@tromey.com>
14074
14075 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14076 constructor, destructor.
14077 (linespec_parser): Remove typedef.
14078 (~linespec_parser): Rename from linespec_parser_delete.
14079 (linespec_lex_to_end, linespec_complete_label)
14080 (linespec_complete): Update.
14081 (decode_line_full): Remove cleanups.
14082 (decode_line_1): Update.
14083
61fd3e73
TT
140842019-01-02 Tom Tromey <tom@tromey.com>
14085
14086 * python/python-internal.h (inferior_to_inferior_object): Change
14087 return type.
14088 * python/py-exitedevent.c (create_exited_event_object): Update.
14089 * python/py-inferior.c (inferior_to_inferior_object): Return
14090 gdbpy_ref.
14091 (python_new_inferior, python_inferior_deleted)
14092 (thread_to_thread_object, delete_thread_object)
14093 (build_inferior_list, gdbpy_selected_inferior): Update.
14094 * python/py-infthread.c (create_thread_object): Update. Also fail
14095 if inferior_to_inferior_object fails.
14096
d20172fc
SM
140972019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14098
14099 * inferior.h (class inferior) <displaced_step_state>: New field.
14100 * infrun.h (struct displaced_step_state): Move here from
14101 infrun.c. Initialize fields, add constructor.
14102 <inf>: Remove field.
14103 <reset>: New method.
14104 * infrun.c (struct displaced_step_inferior_state): Move to
14105 infrun.h.
14106 (displaced_step_inferior_states): Remove.
14107 (get_displaced_stepping_state): Adust.
14108 (displaced_step_in_progress_any_inferior): Adjust.
14109 (displaced_step_in_progress_thread): Adjust.
14110 (displaced_step_in_progress): Adjust.
14111 (add_displaced_stepping_state): Remove.
14112 (get_displaced_step_closure_by_addr): Adjust.
14113 (remove_displaced_stepping_state): Remove.
14114 (infrun_inferior_exit): Call displaced_step_state.reset.
14115 (use_displaced_stepping): Don't check for NULL.
14116 (displaced_step_prepare_throw): Call
14117 get_displaced_stepping_state.
14118 (displaced_step_fixup): Don't check for NULL.
14119 (prepare_for_detach): Don't check for NULL.
14120
e3319240
PW
141212019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14122
14123 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14124 in case of call that did not complete.
14125
5d36dfb9
AU
141262019-01-02 Andrey Utkin <autkin@undo.io>
14127
14128 * symfile.c (find_separate_debug_file): Fix search of debug files for
14129 remote debuggee.
14130
8833fbf0
TT
141312019-01-02 Tom Tromey <tom@tromey.com>
14132
14133 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14134 indentation.
14135 * python/py-frame.c (frapy_older): Remove cast.
14136 (frapy_newer): Likewise.
14137 * python/py-breakpoint.c (local_setattro): Remove cast.
14138 * python/py-arch.c (archpy_name): Remove local variable.
14139 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14140
4ada3dfd
JB
141412019-01-02 Joel Brobecker <brobecker@adacore.com>
14142
14143 * unittests/basic_string_view/element_access/char/empty.cc:
14144 Fix year range in copyright header.
14145
113b7b81
AB
141462019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14147
14148 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14149 Delete.
14150 <operator==>: Update with for removed field.
14151 <hash>: Likewise.
14152 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14153 <isa_features>: ...this.
14154 <abi_features>: New field.
14155 (riscv_isa_flen): Update comment.
14156 (riscv_abi_xlen): New declaration.
14157 (riscv_abi_flen): New declaration.
14158 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14159 isa_features.
14160 (riscv_abi_xlen): New function.
14161 (riscv_isa_flen): Update to get answer from isa_features.
14162 (riscv_abi_flen): New function.
14163 (riscv_has_fp_abi): Update to get answer from abi_features.
14164 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14165 xlen and flen.
14166 (riscv_call_info) <xlen, flen>: Update comment.
14167 (riscv_call_arg_struct): Remove invalid assertions
14168 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14169 is removed.
14170 (riscv_gdbarch_init): Gather isa features and abi features
14171 separately, ensure both match on the gdbarch when reusing an old
14172 gdbarch. Relax an error check to allow 32-bit abi float to run on
14173 a target with 64-bit float hardware.
14174
b18ca514
PW
141752019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14176
14177 * source.c (search_command_helper): Stop reverse search
14178 when line 1 has been searched.
14179
ec70d8db
PW
141802019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14181
14182 * record-full.c (record_full_base_target::close): Rewrite
14183 record_full_core_buf_list free logic.
14184
5b38f9c1
PW
141852019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14186
14187 * break-catch-syscall.c (print_one_catch_syscall): xfree
14188 the last text.
14189
66d91b39
JB
141902019-01-01 Joel Brobecker <brobecker@adacore.com>
14191
14192 * top.c (print_gdb_version): Update Copyright year in version
14193 message.
14194
42a4f53d
JB
141952019-01-01 Joel Brobecker <brobecker@adacore.com>
14196
14197 Update copyright year range in all GDB files.
14198
7e955d83 141992019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 14200
5bbd631d 14201 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 14202
5bbd631d 14203For older changes see ChangeLog-2018.
c906108c
SS
14204\f
14205Local Variables:
14206mode: change-log
14207left-margin: 8
14208fill-column: 74
14209version-control: never
57da7796 14210coding: utf-8
c906108c 14211End:
5bbd631d 14212
This page took 2.778702 seconds and 4 git commands to generate.