Remove some unnecessary focus switches
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-20 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.c
4 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
5 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
6
7 2019-12-20 Tom Tromey <tom@tromey.com>
8
9 * tui/tui-winsource.h (struct tui_source_window_base)
10 <maybe_update>: Remove line_no and addr parameters.
11 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
12 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
13 Update.
14 * tui/tui-source.c (tui_source_window::maybe_update): Remove
15 line_no and addr parameters.
16 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
17 Update.
18 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
19 line_no and addr parameters.
20
21 2019-12-20 Tom Tromey <tom@tromey.com>
22
23 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
24 (tui_source_window_base::update_breakpoint_info): Remove asserts.
25
26 2019-12-20 Tom Tromey <tom@tromey.com>
27
28 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
29 tui_show_disassem.
30 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
31 declare.
32 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
33
34 2019-12-20 Tom Tromey <tom@tromey.com>
35
36 * tui/tui.h (tui_show_source): Remove parameters.
37 * tui/tui.c (tui_show_source): Remove parameters.
38 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
39
40 2019-12-20 Tom Tromey <tom@tromey.com>
41
42 * tui/tui.c (tui_show_source): Update.
43 * tui/tui-winsource.c (tui_display_main): Update.
44 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
45 to symtab.
46 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
47 to symtab.
48 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
49
50 2019-12-20 Tom Tromey <tom@tromey.com>
51
52 PR tui/23619:
53 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
54 (tui_redisplay_readline): Use rl_display_prompt.
55 (tui_prep_terminal): Update.
56
57 2019-12-19 Christian Biesinger <cbiesinger@google.com>
58
59 * configure: Regenerate.
60 * configure.ac: Quote variable arguments of test.
61 * gdbsupport/common.m4: Likewise.
62
63 2019-12-19 Christian Biesinger <cbiesinger@google.com>
64
65 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
66 2 to pow ().
67
68 2019-12-19 Christian Biesinger <cbiesinger@google.com>
69
70 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
71 log10 to double to fix Solaris 11 with gcc 5.5.
72
73 2019-12-19 Christian Biesinger <cbiesinger@google.com>
74
75 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
76 "sun" to "saddr_un".
77
78 2019-12-19 Tom Tromey <tromey@adacore.com>
79
80 * ui-out.h (enum class field_kind): Fix comment.
81
82 2019-12-11 Tom Tromey <tromey@adacore.com>
83
84 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
85
86 2019-12-18 Tom Tromey <tromey@adacore.com>
87
88 PR build/25268:
89 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
90 type on macOS. Add comment.
91
92 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
93
94 * c-lang.c (c_get_string, asm_language_defn): Remove space
95 before tab.
96
97 2019-12-18 Tom Tromey <tromey@adacore.com>
98
99 PR build/25250:
100 * ui-out.c (ui_out::vmessage): Update.
101 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
102 Rename.
103 (string_field): Update.
104 (signed_field): Update.
105
106 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
107
108 * top.c (print_gdb_configuration): Adjust indentation.
109
110 2019-12-17 Christian Biesinger <cbiesinger@google.com>
111
112 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
113
114 2019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
115
116 * tui/tui-layout.h (class tui_layout_base): Add virtual
117 destructor.
118
119 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
120
121 * infcmd.c (prepare_one_step): Step over skipped inline functions.
122 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
123 (process_event_stop_test): Keep stepping over skipped inline functions.
124
125 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
126
127 * jit.c (struct gdb_block) <next>: Remove field.
128 (struct gdb_symtab) <~gdb_symtab>: Remove.
129 <blocks>: Change type to std::forward_list<gdb_block>.
130 (compare_block): Remove.
131 (jit_block_open_impl): Adjust to std::forward_list. Place the new
132 block at the beginning, don't mind about sorting.
133 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
134 before using it.
135
136 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
137
138 * jit.c (struct gdb_block): Add constructor, initialize
139 real_block and next fields.
140 <name>: Change type to gdb::unique_xmalloc_ptr.
141 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
142 (jit_block_open_impl): Allocate gdb_block with new.
143 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
144
145 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
146
147 * jit.c: Include forward_list.
148 (struct gdb_symtab) <next>: Remove field.
149 (struct gdb_object) <symtabs>: Change type to
150 std::forward_list<gdb_symtab>.
151 (jit_object_open_impl): Allocate gdb_object with new.
152 (jit_symtab_open_impl): Adjust to std::forward_list.
153 (finalize_symtab): Don't delete symtab.
154 (jit_object_close_impl): Adjust to std::forward_list. Free
155 gdb_object with delete.
156
157 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * jit.c (struct gdb_symtab): Add constructor, destructor,
160 initialize fields.
161 <linetable>: Change type to unique_xmalloc_ptr.
162 <file_name>: Change type to std::string.
163 (jit_symtab_open_impl): Allocate gdb_symtab with new.
164 (jit_symtab_line_mapping_add_impl): Adjust.
165 (finalize_symtab): Adjust, call delete on stab.
166
167 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
168
169 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
170
171 2019-12-16 Tom Tromey <tromey@adacore.com>
172
173 * windows-nat.c (windows_nat_target::attach): Update.
174 * remote.c (extended_remote_target::attach): Update.
175 * procfs.c (procfs_target::attach): Update.
176 * nto-procfs.c (nto_procfs_target::attach): Update.
177 (nto_procfs_target::create_inferior): Update.
178 * inf-ptrace.c (inf_ptrace_target::attach): Update.
179 * gnu-nat.c (gnu_nat_target::attach): Update.
180 (gnu_nat_target::detach): Update.
181 * darwin-nat.c (darwin_nat_target::attach): Update.
182 * corefile.c (get_exec_file): Constify result. Remove extraneous
183 return.
184 * bsd-kvm.c (bsd_kvm_target_open): Update.
185 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
186
187 2019-12-16 Christian Biesinger <cbiesinger@google.com>
188
189 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
190 (we no longer need to include time.h before pathmax.h)
191
192 2019-12-15 Christian Biesinger <cbiesinger@google.com>
193
194 * ada-exp.y (write_ambiguous_var): Update.
195 * coffread.c (process_coff_symbol): Update.
196 * ctfread.c (ctf_add_enum_member_cb): Update.
197 (new_symbol): Update.
198 * dwarf2read.c (fixup_go_packaging): Update.
199 (new_symbol): Update.
200 * language.c (language_alloc_type_symbol): Update.
201 * mdebugread.c (new_symbol): Update.
202 * minsyms.c (minimal_symbol_reader::record_full): Update.
203 * psymtab.c (add_psymbol_to_bcache): Update.
204 * stabsread.c (define_symbol): Update.
205 (read_enum_type): Update.
206 * symtab.c (symbol_set_language): Make this a member function...
207 (general_symbol_info::set_language): ... here.
208 * symtab.h (struct general_symbol_info) <set_language>: New function.
209 (SYMBOL_SET_LANGUAGE): Remove.
210 (symbol_set_language): Remove.
211
212 2019-12-15 Christian Biesinger <cbiesinger@google.com>
213
214 * ada-lang.c (ada_add_block_symbols): Update.
215 (ada_collect_symbol_completion_matches): Update.
216 * ax-gdb.c (gen_expr): Update.
217 * block.c (block_lookup_symbol): Update.
218 (block_lookup_symbol_primary): Update.
219 (block_find_symbol): Update.
220 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
221 * dbxread.c (process_one_symbol): Update.
222 * dictionary.c (insert_symbol_hashed): Update.
223 (collate_pending_symbols_by_language): Update.
224 (mdict_add_symbol): Update.
225 * dwarf-index-write.c (write_psymbols): Update.
226 * dwarf2read.c (fixup_go_packaging): Update.
227 * findvar.c (read_var_value): Update.
228 * ft32-tdep.c (ft32_skip_prologue): Update.
229 * go-lang.c (go_symbol_package_name): Update.
230 * language.h (scoped_switch_to_sym_language_if_auto::
231 scoped_switch_to_sym_language_if_auto): Update.
232 * linespec.c (find_method): Update.
233 (find_label_symbols_in_block): Update.
234 * mdebugread.c (parse_symbol): Update.
235 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
236 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
237 (minimal_symbol_reader::install): Update.
238 * moxie-tdep.c (moxie_skip_prologue): Update.
239 * parse.c (parse_exp_in_context): Update.
240 * psymtab.c (psymbol_name_matches): Update.
241 (match_partial_symbol): Update.
242 (lookup_partial_symbol): Update.
243 (psymbol_hash): Update.
244 (psymbol_compare): Update.
245 * python/py-framefilter.c (extract_sym): Update.
246 (py_print_single_arg): Update.
247 * stabsread.c (define_symbol): Update.
248 * stack.c (print_frame_arg): Update.
249 (find_frame_funname): Update.
250 (info_frame_command_core): Update.
251 * symfile.c (set_initial_language): Update.
252 * symtab.c (symbol_set_demangled_name): Update.
253 (symbol_get_demangled_name): Update.
254 (symbol_set_language): Update.
255 (symbol_find_demangled_name): Update.
256 (symbol_set_names): Update.
257 (general_symbol_info::natural_name): Update.
258 (general_symbol_info::demangled_name): Update.
259 (general_symbol_info::search_name): Update.
260 (symbol_matches_search_name): Update.
261 (eq_symbol_entry): Update.
262 (iterate_over_symbols): Update.
263 (completion_list_add_symbol): Update.
264 (completion_list_add_msymbol): Update.
265 (completion_list_add_fields): Update.
266 * symtab.h (struct general_symbol_info) <language>: New function.
267 <language>: Rename to...
268 <m_language>: ...this.
269 (SYMBOL_LANGUAGE): Remove.
270 (MSYMBOL_LANGUAGE): Remove.
271 (struct symbol) <ctor>: Update.
272 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
273
274 2019-12-15 Christian Biesinger <cbiesinger@google.com>
275
276 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
277 set the language of sym.
278 * language.c (language_alloc_type_symbol): Likewise.
279
280 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
281
282 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
283 PR gdb/23613
284 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
285 * corelow.c: Include 'gdbsupport/pathstuff.h'.
286 (core_target_open): Use 'gdb_abspath'.
287 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
288 'current_directory == NULL' case.
289 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
290 explain what happens when 'current_directory' is NULL.
291 * go32-nat.c (go32_nat_target::wait): Check if
292 'current_directory' is NULL before call to 'chdir'.
293 * source.c (add_path): Use 'gdb_abspath'.
294 * top.c: Include 'gdbsupport/pathstuff.h'.
295 (init_history): Use 'gdb_abspath'.
296 (set_history_filename): Likewise.
297 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
298 (tfile_target_open): Use 'gdb_abspath'.
299
300 2019-12-13 Tom Tromey <tromey@adacore.com>
301
302 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
303 warning or error.
304
305 2019-12-13 Tom Tromey <tromey@adacore.com>
306
307 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
308
309 2019-12-13 Tom Tromey <tromey@adacore.com>
310
311 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
312
313 2019-12-13 Tom Tromey <tromey@adacore.com>
314
315 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
316
317 2019-12-13 Tom Tromey <tromey@adacore.com>
318
319 * gdbsupport/common-utils.c (string_printf, string_vprintf)
320 (string_vappendf): Add ARI comment.
321
322 2019-12-13 Tom Tromey <tromey@adacore.com>
323
324 * contrib/ari/gdb_ari.sh: Remove "fix" call for
325 floatformat_to_double.
326 * target-float.c (host_float_ops<T>::from_target): Add ARI
327 comment.
328
329 2019-12-13 Tom Tromey <tromey@adacore.com>
330
331 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
332 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
333 ARI marker to abort.
334 * event-top.c (handle_sigsegv): Add ARI marker to abort.
335
336 2019-12-13 Tom Tromey <tromey@adacore.com>
337
338 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
339
340 2019-12-13 Tom Tromey <tromey@adacore.com>
341
342 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
343
344 2019-12-13 Tom Tromey <tromey@adacore.com>
345
346 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
347 checks.
348
349 2019-12-13 Tom Tromey <tromey@adacore.com>
350
351 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
352 end>: No longer "const".
353
354 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
355
356 * jit.c: Fix indentation, replace spaces with tabs where
357 applicable.
358
359 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
360
361 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
362
363 2019-12-12 Tom Tromey <tom@tromey.com>
364
365 * objfiles.h (struct objfile) <partial_symtabs>: Now a
366 unique_ptr.
367
368 2019-12-12 Tom Tromey <tom@tromey.com>
369
370 * progspace.h (objfile_list): New typedef.
371 (class unwrapping_objfile_iterator)
372 (struct unwrapping_objfile_range): Newl
373 (struct program_space) <objfiles_range>: Change type.
374 <objfiles>: Change return type.
375 <add_objfile>: Change type of "objfile" parameter.
376 <objfiles_list>: Now a list of shared_ptr.
377 * progspace.c (program_space::add_objfile): Change type of
378 "objfile". Update.
379 (program_space::remove_objfile): Update.
380 * objfiles.h (struct objfile) <~objfile>: Make public.
381 * objfiles.c (objfile::make): Update.
382 (objfile::unlink): Don't call delete.
383
384 2019-12-12 Tom Tromey <tom@tromey.com>
385
386 * symfile.c (symbol_file_clear): Update.
387 * progspace.h (struct program_space) <free_all_objfiles>: Declare
388 method.
389 * progspace.c (program_space::free_all_objfiles): New method.
390 * objfiles.h (free_all_objfiles): Don't declare.
391 * objfiles.c (free_all_objfiles): Move to program_space.
392
393 2019-12-12 Tom Tromey <tom@tromey.com>
394
395 * progspace.c (program_space::add_objfile)
396 (program_space::remove_objfile): Update.
397 (program_space::multi_objfile_p): Remove.
398 * objfiles.h (struct objfile) <next>: Remove.
399 * objfiles.c (objfile::objfile): Update.
400 (put_objfile_before): Update.
401 (unlink_objfile): Update.
402 * progspace.h (object_files): Remove.
403 (struct program_space) <objfiles_head>: Remove.
404 <objfiles_list>: New member.
405 <objfiles_range, objfiles_safe_range>: Change type.
406 (objfiles): Change return type.
407 (objfiles_safe): Update.
408 (multi_objfile_p): Rewrite and inline.
409 (object_files): Remove macro.
410
411 2019-12-12 Tom Tromey <tom@tromey.com>
412
413 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
414 second constructor.
415 (basic_safe_range): New class.
416
417 2019-12-12 Tom Tromey <tom@tromey.com>
418
419 * progspace.c (program_space::multi_objfile_p): New method.
420 * printcmd.c (info_symbol_command): Update.
421 * maint.c (maintenance_translate_address): Update.
422 * objfiles.h (MULTI_OBJFILE_P): Remove.
423 * progspace.h (struct program_space) <multi_objfile_p>: New
424 method.
425
426 2019-12-12 Tom Tromey <tom@tromey.com>
427
428 * progspace.h (struct program_space) <remove_objfile>: Declare.
429 * progspace.c (program_space::remove_objfile): New method.
430 * objfiles.c (unlink_objfile): Remove.
431 (objfile::unlink): Call remove_objfile.
432 (objfile): Don't call unlink_objfile.
433
434 2019-12-12 Tom Tromey <tom@tromey.com>
435
436 * progspace.h (struct program_space) <add_objfile>: Declare
437 method.
438 * progspace.c (program_space::add_objfile): New method.
439 * objfiles.c (~objfile): Don't unlink objfile.
440 (put_objfile_before): Remove.
441 (add_separate_debug_objfile): Don't call put_objfile_before.
442 (objfile::make): Call add_objfile. Set new_objfiles_available on
443 the per-program-space data.
444
445 2019-12-12 Tom Tromey <tom@tromey.com>
446
447 * symfile.c (syms_from_objfile_1): Use objfile_up.
448 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
449 method.
450 (reread_symbols): Use objfile_up.
451 * solib.c (update_solib_list, reload_shared_libraries_1): Call
452 unlink method.
453 * objfiles.h (struct objfile) <~objfile>: Now private.
454 <unlink>: New method.
455 (struct objfile_deleter): New.
456 (objfile_up): New typedef.
457 * objfiles.c (objfile::unlink): New method.
458 (free_objfile_separate_debug, free_all_objfiles)
459 (objfile_purge_solibs): Use it.
460 * jit.c (jit_unregister_code): Remove.
461 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
462 objfile.
463 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
464 objfile.
465 * compile/compile-object-load.c (compile_object_load): Use
466 objfile_up.
467
468 2019-12-12 Tom Tromey <tom@tromey.com>
469
470 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
471 objfile::make.
472 * objfiles.h (struct objjfile) <make>: No longer inline.
473 (add_separate_debug_objfile): Don't declare.
474 * objfiles.c (add_separate_debug_objfile): Now static.
475 (objfile::make): Move from objfiles.h. Call
476 add_separate_debug_objfile. Add "parent" parameter.
477
478 2019-12-12 Tom Tromey <tom@tromey.com>
479
480 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
481 * objfiles.h (struct objfile): Make constructor private.
482 <make>: New static method.
483 * jit.c (jit_object_close_impl): Update.
484
485 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
486
487 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
488 gdb::byte_vector.
489
490 2019-12-12 Tom Tromey <tromey@adacore.com>
491
492 * xml-support.c (xml_fetch_content_from_file): Don't call
493 malloc_failure.
494 * utils.h (class gdb_argv): Remove malloc_failure comment.
495 * utils.c (gdb_argv::reset): Don't call malloc_failure.
496
497 2019-12-12 Tom Tromey <tromey@adacore.com>
498
499 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
500 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
501 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
502 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
503 * riscv-ravenscar-thread.c: New file.
504 * riscv-ravenscar-thread.h: New file.
505 * riscv-tdep.c (riscv_gdbarch_init): Call
506 register_riscv_ravenscar_ops.
507
508 2019-12-12 Tom Tromey <tromey@adacore.com>
509
510 * gdbsupport/thread-pool.c (set_thread_name): Use
511 ATTRIBUTE_UNUSED.
512
513 2019-12-12 Luis Machado <luis.machado@linaro.org>
514
515 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
516 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
517 macros.
518
519 2019-12-11 Tom Tromey <tom@tromey.com>
520
521 * tui/tui-win.c (tui_set_win_height_command): Call
522 tui_adjust_window_height.
523 (tui_adjust_win_heights, new_height_ok): Remove.
524 * tui/tui-layout.h (tui_adjust_window_height): Declare.
525 * tui/tui-layout.c (tui_adjust_window_height): New function.
526
527 2019-12-11 Tom Tromey <tom@tromey.com>
528
529 * tui/tui-win.c (tui_resize_all): Remove code, call
530 tui_apply_current_layout.
531
532 2019-12-11 Tom Tromey <tom@tromey.com>
533
534 * tui/tui-layout.h (tui_apply_current_layout): Declare.
535 * tui/tui-layout.c (standard_layouts, applied_layout): New
536 globals.
537 (tui_apply_current_layout): New function.
538 (show_layout): Set applied_layout. Call
539 tui_apply_current_layout.
540 (show_source_command, show_disasm_command)
541 (show_source_disasm_command, show_data)
542 (show_source_or_disasm_and_command): Remove.
543 (initialize_layouts): New function.
544 (_initialize_tui_layout): Call initialize_layouts.
545
546 2019-12-11 Tom Tromey <tom@tromey.com>
547
548 * tui/tui-layout.h (class tui_layout_base)
549 (class tui_layout_window, class tui_layout_split): New.
550 * tui/tui-layout.c (tui_get_window_by_name)
551 (tui_layout_window::clone, tui_layout_window::apply)
552 (tui_layout_window::get_sizes, tui_layout_window::add_split)
553 (tui_layout_split::add_window, tui_layout_split::clone)
554 (tui_layout_split::get_sizes)
555 (tui_layout_split::set_weights_from_heights)
556 (tui_layout_split::adjust_size, tui_layout_split::apply): New
557 functions.
558 (tui_layout_split::add_split, tui_layout_split::add_split)
559 (tui_layout_split::set_weights_from_heights)
560 (tui_layout_split::set_weights_from_heights): New functions.
561
562 2019-12-11 Tom Tromey <tom@tromey.com>
563
564 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
565 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
566 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
567 * tui/tui-data.h (struct tui_point): Remove.
568 (struct tui_gen_win_info) <origin>: Remove.
569 <x, y>: New fields.
570 * tui/tui-command.c (tui_cmd_window::resize): Update.
571
572 2019-12-11 Tom Tromey <tom@tromey.com>
573
574 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
575 Implement.
576 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
577 Implement.
578 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
579 method.
580 (struct tui_win_info) <min_height>: Implement.
581
582 2019-12-11 Tom Tromey <tom@tromey.com>
583
584 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
585 (struct tui_win_info) <can_box>: Update.
586
587 2019-12-11 Tom Tromey <tom@tromey.com>
588
589 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
590 method.
591 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
592 method.
593 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
594 method.
595 (struct tui_win_info) <max_height>: Now override.
596
597 2019-12-11 Joel Brobecker <brobecker@adacore.com>
598
599 * NEWS: Create a new section for the next release branch.
600 Rename the section of the current branch, now that it has
601 been cut.
602
603 2019-12-11 Joel Brobecker <brobecker@adacore.com>
604
605 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
606 * version.in: Bump version to 10.0.50.DATE-git.
607
608 2019-12-11 Tom Tromey <tromey@adacore.com>
609
610 PR build/25268:
611 * gdbsupport/thread-pool.c (set_thread_name): New function.
612 (thread_pool::set_thread_count): Don't call pthread_setname_np.
613 (thread_pool::thread_function): Call set_thread_name.
614
615 2019-12-11 Tom Tromey <tromey@adacore.com>
616
617 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
618 bfd_get_signed_8.
619
620 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
621
622 * NEWS: Document -raw-values option and the related setting commands.
623 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
624 only set it on when /r is given.
625 * valprint.c (value_print_option_defs): New element raw-values.
626 * Makefile.in: Add the new file.
627
628 2019-12-10 Christian Biesinger <cbiesinger@google.com>
629
630 * gdbsupport/safe-strerror.c: Supress the unused function warning
631 for select_strerror_r.
632
633 2019-12-10 Christian Biesinger <cbiesinger@google.com>
634
635 * config.in: Regenerate.
636 * configure: Regenerate.
637 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
638 safe_strerror instead of strerror.
639 * gdbsupport/common.m4: Don't check for strerror.
640 * gdbsupport/safe-strerror.c: Support both the glibc version
641 of strerror_r and the XSI version.
642
643 2019-12-10 Tom Tromey <tromey@adacore.com>
644
645 * ada-typeprint.c (print_choices): Use a single "?".
646 (print_variant_part): Print "?" if the discriminant name
647 is not known.
648
649 2019-12-10 George Barrett <bob@bob131.so>
650
651 Fix scripted probe breakpoints.
652 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
653 declaration forward.
654 (breakpoint_ops_for_event_location_type)
655 (breakpoint_ops_for_event_location): Add function definitions.
656 (break_command_1, trace_command): Use
657 breakpoint_ops_for_event_location.
658 * breakpoint.h (breakpoint_ops_for_event_location): Add function
659 declarations.
660 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
661 breakpoint_ops_for_event_location.
662 * python/py-breakpoint.c (bppy_init): Use
663 breakpoint_ops_for_event_location.
664
665 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
666
667 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
668 when ranking an lvalue argument for an rvalue parameter.
669
670 2019-12-08 Wataru Ashihara <wataash@wataash.com>
671
672 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
673 template argument for scoped_restore_tmpl from bool to int.
674
675 2019-12-07 Keith Seitz <keiths@redhat.com>
676
677 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
678 (build_id_to_debug_bfd): Make static, rewriting to use
679 build_id_to_bfd_suffix.
680 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
681 adding `suffix' parameter. Append SUFFIX to file names
682 when searching for matching files.
683 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
684 (build_id_to_exec_bfd): Likewise.
685 * build-id.h (build_id_to_debug_bfd): Clarify that function
686 searches for BFD of debug info file.
687 (build_id_to_exec_bfd): Declare.
688 * corelow.c: Include build-id.h.
689 (locate_exec_from_corefile_build_id): New function.
690 (core_target_open): If no executable BFD is found,
691 search for a core file BFD using build-id.
692
693 2019-12-06 Christian Biesinger <cbiesinger@google.com>
694
695 * bcache.c: Put in namespace gdb.
696 * bcache.h: Likewise.
697 * gdbtypes.c (check_types_worklist): Update.
698 (types_deeply_equal): Update.
699 * macrotab.c (struct macro_table) <bcache>: Update.
700 (new_macro_table): Update.
701 * macrotab.h (struct bcache): Put this forward declaration
702 inside namespace gdb.
703 (new_macro_table): Update.
704 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
705 Update.
706 <macro_cache>: Update.
707 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
708
709 2019-12-06 Tom de Vries <tdevries@suse.de>
710
711 PR symtab/24971
712 * block.c (best_symbol, better_symbol): New function.
713 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
714 decl.
715
716 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
717
718 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
719 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
720 for ranking see-through reference cases.
721
722 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
723 * stack.c (faas_command): Check a command is provided.
724 * thread.c (taas_command, tfaas_command): Likewise.
725
726 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
727 * inferior.c (prune_inferiors): Only call delete_inferior,
728 Do not modify the inferior list.
729
730 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
731
732 * c-exp.y: Update calls to lookup_typename,
733 lookup_signed_typename and lookup_unsigned_typename.
734 * c-lang.c (evaluate_subexp_c): Likewise.
735 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
736 Likewise.
737 * eval.c (binop_promote): Likewise.
738 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
739 (lookup_unsigned_typename): Likewise.
740 (lookup_signed_typename): Likewise.
741 * gdbtypes.h (lookup_unsigned_typename): Likewise.
742 (lookup_signed_typename): Likewise.
743 (lookup_typename): Likewise.
744 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
745 lookup_typename, lookup_signed_typename,
746 lookup_unsigned_typename.
747 * m2-exp.y: Likewise.
748 * printcmd.c (printf_wide_c_string): Likewise.
749 (ui_printf): Likewise.
750 * python/py-type.c (typy_lookup_typename): Likewise.
751 * python/py-xmethods.c (python_xmethod_worker::invoke):
752 Likewise.
753 * rust-exp.y: Likewise.
754
755 2019-12-04 Christian Biesinger <cbiesinger@google.com>
756
757 * configure.nat (obsd64): Add missing files x86-nat.o and
758 nat/x86-dregs.o.
759
760 2019-12-04 Tom Tromey <tom@tromey.com>
761
762 * valprint.c (val_print_string): Use metadata_style.
763 * go-valprint.c (print_go_string): Use metadata style.
764 * p-valprint.c (pascal_object_print_static_field): Use metadata
765 style.
766 * cp-valprint.c (cp_print_static_field): Use metadata style.
767
768 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
769 Chris January <chris.january@arm.com>
770
771 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
772 tokens.
773 (typebase): New patterns for complex, single/double precision, and
774 single/double complex.
775 (f77_keywords): Change token for complex keyword, and add single,
776 double, and precision keywords.
777
778 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
779
780 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
781 "info io_registers".
782
783 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
784
785 * regcache.c (cooked_read_test): Initialize thread list of
786 mock_inferior.
787
788 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
789
790 * aarch64-linux-tdep.c: Remove includes.
791
792 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
793
794 * aarch64-tdep.c: Remove includes.
795
796 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
797
798 * filtered-iterator.h (filtered_iterator) <operator==,
799 operator!=>: Compare wrapped iterators, not wrapped pointers.
800 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
801 unittests/filtered_iterator-selftests.c.
802 * unittests/filtered_iterator-selftests.c: New file.
803
804 2019-12-04 Tom Tromey <tromey@adacore.com>
805
806 * gdbtypes.c (create_range_type): Inherit endianity
807 from base type.
808
809 2019-12-04 Tom Tromey <tromey@adacore.com>
810
811 * ada-lang.c (decode_constrained_packed_array)
812 (ada_value_assign, value_assign_to_component): Update.
813 * dwarf2loc.c (rw_pieced_value, access_memory)
814 (dwarf2_compile_expr_to_ax): Update.
815 * dwarf2read.c (dwarf2_add_field): Update.
816 * eval.c (evaluate_subexp_standard): Update.
817 * gdbarch.c, gdbarch.h: Rebuild.
818 * gdbarch.sh (bits_big_endian): Remove.
819 * gdbtypes.h (union field_location): Update comment.
820 * target-descriptions.c (make_gdb_type): Update.
821 * valarith.c (value_bit_index): Update.
822 * value.c (struct value) <bitpos>: Update comment.
823 (unpack_bits_as_long, modify_field): Update.
824 * value.h (value_bitpos): Update comment.
825
826 2019-12-04 Tom Tromey <tromey@adacore.com>
827
828 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
829 endian-ness.
830
831 2019-12-04 Tom Tromey <tromey@adacore.com>
832
833 * dwarf2read.c (dwarf2_init_float_type)
834 (dwarf2_init_complex_target_type): Add byte_order parameter.
835 (read_base_type): Compute byte order earlier.
836 * gdbtypes.c (init_float_type): Add byte_order parameter.
837 * gdbtypes.h (init_float_type): Add byte_order parameter.
838
839 2019-12-04 Tom Tromey <tromey@adacore.com>
840
841 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
842
843 2019-12-04 Tom Tromey <tromey@adacore.com>
844
845 * dwarf2read.c (process_structure_scope): Initialize
846 "discr_offset".
847
848 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
849
850 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
851 add it into the search spec.
852 (parse_max_results_option): New function.
853 (mi_info_functions_or_variables): Parse -max-results flag and pass
854 it to mi_symbol_info.
855 (mi_cmd_symbol_info_modules): Likewise.
856 (mi_cmd_symbol_info_types): Likewise.
857 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
858 return type to bool, change result container into a set, and don't
859 add new results if we have enough already.
860 (global_symbol_searcher::add_matching_msymbols): Change return
861 type to bool, and don't add new results if we have enough already.
862 (sort_search_symbols_remove_dups): Delete.
863 (global_symbol_searcher::search): Early exit from search loop when
864 we have enough results. Use a std::set to collect the results
865 from calling add_matching_symbols.
866 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
867 member function.
868 (global_symbol_searcher) <m_max_search_results>: New member
869 variable.
870 (global_symbol_searcher) <add_matching_symbols>: Update header
871 comment and change return type to bool.
872 (global_symbol_searcher) <add_matching_msymbols>: Update header
873 comment and change return type to bool.
874
875 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
876
877 * symtab.c (symbol_search::compare_search_syms): Update header
878 comment.
879 (global_symbol_searcher::is_suitable_msymbol): New function.
880 (global_symbol_searcher::expand_symtabs): New function.
881 (global_symbol_searcher::add_matching_symbols): New function.
882 (global_symbol_searcher::add_matching_msymbols): New function.
883 (global_symbol_searcher::search): Move most of the content
884 into the new functions above, and call them as needed.
885 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
886 function.
887 (global_symbol_searcher) <add_matching_symbols>: New member
888 function.
889 (global_symbol_searcher) <add_matching_msymbols>: New member
890 function.
891 (global_symbol_searcher) <is_suitable_msymbol>: New member
892 function.
893
894 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
895
896 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
897 -symbol-info-module-variables entries.
898 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
899 (mi_cmd_symbol_info_module_variables): Declare.
900 * mi/mi-symbol-cmds.c
901 (module_symbol_search_iterator): New typedef.
902 (output_module_symbols_in_single_module_and_file): New function.
903 (output_module_symbols_in_single_module): New function.
904 (mi_info_module_functions_or_variables): New function.
905 (mi_cmd_symbol_info_module_functions): New function.
906 (mi_cmd_symbol_info_module_variables): New function.
907 * NEWS: Mention new MI command.
908
909 2019-12-03 Christian Biesinger <cbiesinger@google.com>
910
911 * bcache.c (hash): Remove.
912 (hash_continue): Remove.
913 * bcache.h (hash): Remove.
914 (hash_continue): Remove.
915 (struct bcache) <ctor>: Update.
916 * psymtab.c (psymbol_hash): Update.
917 * stabsread.c (hashname): Update.
918 * utils.h (fast_hash): Add an argument for a start value,
919 defaulting to zero.
920
921 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
922 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
923 (destroy_block_symbol_cache): New function.
924 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
925 (resize_symbol_cache): Likewise.
926
927 2019-12-02 Tom Tromey <tom@tromey.com>
928
929 * unittests/tui-selftests.c (run_tests): Make conditional.
930 (_initialize_tui_selftest): Make conditional.
931
932 2019-12-02 Christian Biesinger <cbiesinger@google.com>
933
934 * aix-thread.c (debug_aix_thread): Change type to bool.
935
936 2019-12-02 Luis Machado <luis.machado@linaro.org>
937
938 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
939
940 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 * dwarf2read.c (read_tag_string_type): Read the fields required to
943 make a dynamic string, and possibly create a dynamic range for the
944 string.
945 (attr_to_dynamic_prop): Setup is_reference based on the type of
946 attribute being processed.
947 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
948 (resolve_dynamic_array): Rename to...
949 (resolve_dynamic_array_or_string): ...this, update header comment,
950 and accept TYPE_CODE_STRING.
951 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
952
953 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
954
955 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
956 of its implementation from...
957 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
958 the new function.
959
960 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
961
962 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
963 create a range with stride where appropriate.
964 * f-valprint.c: Include 'gdbarch.h'.
965 (f77_print_array_1): Take the stride into account when walking the
966 array. Also convert the stride into addressable units.
967 * gdbtypes.c (create_range_type): Initialise the stride to
968 constant zero.
969 (create_range_type_with_stride): New function, initialise the
970 range as normal, and then setup the stride.
971 (has_static_range): Include the stride here. Also change the
972 return type to bool.
973 (create_array_type_with_stride): Consider the range stride if the
974 array isn't given its own stride.
975 (resolve_dynamic_range): Resolve the stride if needed.
976 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
977 (struct range_bounds) <flag_is_byte_stride>: New member variable.
978 (TYPE_BIT_STRIDE): Define.
979 (TYPE_ARRAY_BIT_STRIDE): Define.
980 (create_range_type_with_stride): Declare.
981 * valarith.c (value_subscripted_rvalue): Take range stride into
982 account when walking the array.
983
984 2019-12-01 Tom Tromey <tom@tromey.com>
985
986 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
987 specially.
988
989 2019-12-01 Tom Tromey <tom@tromey.com>
990
991 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
992 \0.
993 * unittests/tui-selftests.c: New file.
994 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
995
996 2019-12-01 Tom Tromey <tom@tromey.com>
997
998 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
999
1000 2019-12-01 Tom Tromey <tom@tromey.com>
1001
1002 * NEWS: Document new settings.
1003 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1004 * tui/tui-win.c (_initialize_tui_win): Add border style
1005 observers.
1006 * tui/tui-io.h (tui_apply_style): Declare.
1007 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1008 longer static.
1009 (apply_ansi_escape, tui_set_reverse_mode): Update.
1010 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1011 Add "skip_intensity" parameter.
1012 <changed>: New member.
1013 <do_set_value>: Declare.
1014 (tui_border_style, tui_active_border_style): Declare.
1015 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1016 globals.
1017 (cli_style_option): Initialize "changed".
1018 (cli_style_option::do_set_value): New function.
1019 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1020 parameter. Update.
1021 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1022 (_initialize_cli_style): Update. Create TUI border style
1023 commands.
1024
1025 2019-12-01 Tom Tromey <tom@tromey.com>
1026
1027 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1028 parameter.
1029 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1030 parameter.
1031 * tui/tui-win.h (compact_source): Declare.
1032 * tui/tui-win.c (compact_source): New global.
1033 (tui_set_compact_source, tui_show_compact_source): New functions.
1034 (_initialize_tui_win): Add "compact-source" setting.
1035 * tui/tui-source.c (tui_source_window::set_contents): Handle
1036 compact_source setting.
1037 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1038 * NEWS: Document new setting.
1039
1040 2019-11-30 Tom Tromey <tom@tromey.com>
1041
1042 * dwarf2read.c (dwarf2_add_field): Include field offset when
1043 computing variant part length.
1044
1045 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1046 * NEWS: Mention define-prefix. Tell that command names can now
1047 contain a . character.
1048
1049 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1050
1051 * command.h (valid_cmd_char_p): Declare.
1052 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1053 the check of valid command char.
1054 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1055 valid_cmd_char_p.
1056 * cli/cli-script.c (validate_comname): Likewise.
1057 * completer.c (gdb_completer_command_word_break_characters):
1058 Do not remove . from the word break char, update comments.
1059 (complete_line_internal_1): Use valid_cmd_char_p.
1060 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1061 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1062
1063 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1064
1065 * cli/cli-script.c (do_define_command): Ensure a redefined
1066 prefix command is kept as a prefix command.
1067 (define_prefix_command): New function.
1068 (show_user_1): Report user defined prefixes.
1069 (_initialize_cli_script): Create the new 'define-prefix' command.
1070 Add completers for 'define' and 'document'.
1071 * top.c (execute_command): If command is a user-defined prefix only
1072 command, report the list of commands for this prefix command.
1073
1074 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1075
1076 * valops.c (find_oload_champ): Improve debug output.
1077
1078 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1079
1080 * valops.c (find_oload_champ): Print part of debug messages
1081 before the badness vector is std::move'd.
1082
1083 2019-11-28 Tom Tromey <tom@tromey.com>
1084
1085 * value.c (creal_internal_fn): Fix comment.
1086
1087 2019-11-28 Tom Tromey <tom@tromey.com>
1088
1089 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1090 flag_bound_evaluated>: Now unsigned.
1091
1092 2019-11-28 Tom Tromey <tom@tromey.com>
1093
1094 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1095 declare.
1096
1097 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1098
1099 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1100 debug output.
1101 * jit.c (jit_unregister_code): Add debug print to match
1102 `jit_register_code`.
1103
1104 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1105
1106 * NEWS: Mention the new multithreaded symbol loading.
1107
1108 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1109
1110 * maint.c (n_worker_threads): Default to 0.
1111 (worker_threads_disabled): New function.
1112 * maint.h (worker_threads_disabled): New function.
1113 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1114 here if worker_threads_disabled () is true.
1115 (minimal_symbol_reader::install): Skip all threading if
1116 worker_threads_disabled () is true.
1117
1118 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1119
1120 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1121 hash code if possible.
1122 (add_minsym_to_demangled_hash_table): Likewise.
1123 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1124 on the background thread.
1125 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1126 Add these fields.
1127
1128 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1129
1130 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1131 of the mangled name on the background thread.
1132 * symtab.c (symbol_set_names): Allow passing in the hash of the
1133 linkage_name.
1134 * symtab.h (symbol_set_names): Likewise.
1135
1136 2019-11-27 Kevin Buettner <kevinb@redhat.com>
1137
1138 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1139 physnames are computed for inherited DIEs.
1140
1141 2019-11-27 Tom Tromey <tromey@adacore.com>
1142
1143 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1144 backslashes.
1145 * cp-support.c: Remove unnecessary backslashes.
1146
1147 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1148
1149 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1150 with sym->set_linkage_name.
1151 * coffread.c (coff_read_enum_type): Likewise.
1152 * mdebugread.c (parse_symbol): Likewise.
1153 * stabsread.c (patch_block_stabs): Likewise.
1154 (define_symbol): Likewise.
1155 (read_enum_type): Likewise.
1156 (common_block_end): Likewise.
1157 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1158 function.
1159 (SYMBOL_SET_LINKAGE_NAME): Remove.
1160 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1161 with sym->set_linkage_name.
1162
1163 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1166 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1167 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1168 * NEWS: Mention new MI command.
1169
1170 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1173 '-symbol-info-types', and '-symbol-info-variables'.
1174 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1175 (mi_cmd_symbol_info_types): Declare.
1176 (mi_cmd_symbol_info_variables): Declare.
1177 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1178 (output_debug_symbol): New function.
1179 (output_nondebug_symbol): New function.
1180 (mi_symbol_info): New function.
1181 (mi_info_functions_or_variables): New function.
1182 (mi_cmd_symbol_info_functions): New function.
1183 (mi_cmd_symbol_info_types): New function.
1184 (mi_cmd_symbol_info_variables): New function.
1185 * NEWS: Mention new commands.
1186
1187 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * symtab.c (symbol_to_info_string): New function, most content
1190 moved from print_symbol_info, but updated to return a std::string.
1191 (print_symbol_info): Update to use symbol_to_info_string and print
1192 returned string.
1193 * symtab.h (symbol_to_info_string): Declare new function.
1194
1195 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1196
1197 * python/python.c (gdbpy_rbreak): Convert to using
1198 global_symbol_searcher.
1199 * symtab.c (file_matches): Convert return type to bool, change
1200 file list to std::vector, update header comment.
1201 (search_symbols): Rename to...
1202 (global_symbol_searcher::search): ...this and update now its
1203 a member function of global_symbol_searcher. Take account of the
1204 changes to file_matches.
1205 (symtab_symbol_info): Convert to using global_symbol_searcher.
1206 (rbreak_command): Likewise.
1207 (search_module_symbols): Likewise.
1208 * symtab.h (enum symbol_search): Update comment.
1209 (search_symbols): Remove declaration.
1210 (class global_symbol_searcher): New class.
1211
1212 2019-11-26 Tom Tromey <tromey@adacore.com>
1213
1214 * cp-support.c (_initialize_cp_support): Conditionally initialize
1215 gdb_demangle_attempt_core_dump.
1216
1217 2019-11-26 Tom Tromey <tom@tromey.com>
1218
1219 * python/py-function.c (fnpy_init): Update.
1220 * value.h (add_internal_function): Adjust declaration.
1221 * value.c (function_destroyer): Remove.
1222 (do_add_internal_function): Don't set destroyer or copy name.
1223 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1224 Set name_allocated.
1225 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1226 (cmdpy_init): Set name_allocated.
1227 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1228 member.
1229 (~cmd_list_element): Free "name" if needed.
1230
1231 2019-11-26 Tom Tromey <tom@tromey.com>
1232
1233 * value.h (add_internal_function): Add new overload. Move
1234 documentation from value.h.
1235 * value.c (do_add_internal_function): New function.
1236 (add_internal_function): Use it. Add new overload.
1237 (function_destroyer): Don't free doc.
1238 * python/py-function.c (fnpy_init): Update.
1239
1240 2019-11-26 Tom Tromey <tom@tromey.com>
1241
1242 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1243 (cmdpy_init): Set "doc_allocated".
1244
1245 2019-11-26 Tom Tromey <tom@tromey.com>
1246
1247 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1248 name of worker thread.
1249 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1250 pthread_setname_np.
1251 * configure, config.in: Rebuild.
1252
1253 2019-11-26 Tom Tromey <tom@tromey.com>
1254
1255 * python/python.c (class gdbpy_gil): New.
1256 (struct gdbpy_event): Add constructor, destructor, operator().
1257 (gdbpy_post_event): Use run_on_main_thread.
1258 (gdbpy_initialize_events): Remove.
1259 (do_start_initialization): Update.
1260
1261 2019-11-26 Tom Tromey <tom@tromey.com>
1262
1263 * NEWS: Add entry.
1264 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1265 commands. Call update_thread_pool_size.
1266 (update_thread_pool_size, maintenance_set_worker_threads): New
1267 functions.
1268 (n_worker_threads): New global.
1269
1270 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1271 Tom Tromey <tom@tromey.com>
1272
1273 * minsyms.c (minimal_symbol_reader::install): Use
1274 parallel_for_each.
1275 * gdbsupport/parallel-for.h: New file.
1276 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1277
1278 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1279 Tom Tromey <tom@tromey.com>
1280
1281 * gdbsupport/thread-pool.h: New file.
1282 * gdbsupport/thread-pool.c: New file.
1283 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1284 (HFILES_NO_SRCDIR): Add thread-pool.h.
1285
1286 2019-11-26 Tom Tromey <tom@tromey.com>
1287
1288 * event-top.h (thread_local_segv_handler): Declare.
1289 * event-top.c (thread_local_segv_handler): New global.
1290 (install_handle_sigsegv, handle_sigsegv): New functions.
1291 (async_init_signals): Install SIGSEGV handler.
1292 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1293 thread-local.
1294 (report_failed_demangle): New function.
1295 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1296 handler-setting code, instead use segv_handler. Run warning code
1297 on main thread.
1298
1299 2019-11-26 Tom Tromey <tom@tromey.com>
1300
1301 * run-on-main-thread.c: New file.
1302 * run-on-main-thread.h: New file.
1303 * unittests/main-thread-selftests.c: New file.
1304 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1305 main-thread-selftests.c.
1306 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1307 (COMMON_SFILES): Add run-on-main-thread.c.
1308
1309 2019-11-26 Tom Tromey <tom@tromey.com>
1310
1311 * main.c (setup_alternate_signal_stack): Remove.
1312 (captured_main_1): Use gdb::alternate_signal_stack.
1313 * gdbsupport/alt-stack.h: New file.
1314
1315 2019-11-26 Tom Tromey <tom@tromey.com>
1316
1317 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1318 Remove comment.
1319 (save_original_signals_state, restore_original_signals_state): Use
1320 gdb_sigmask.
1321 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1322 (_initialize_linux_nat): Use gdb_sigmask.
1323 * guile/guile.c (_initialize_guile): Use block_signals.
1324 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1325 * gdbsupport/gdb-sigmask.h: New file.
1326 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1327 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1328 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1329 pthread_sigmask.
1330 * configure, config.in: Rebuild.
1331 * gdbsupport/block-signals.h: New file.
1332
1333 2019-11-26 Tom Tromey <tom@tromey.com>
1334
1335 * acinclude.m4: Include ax_pthread.m4.
1336 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1337 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1338 (CLIBS): Use PTHREAD_LIBS.
1339 (aclocal_m4_deps): Add ax_pthread.m4.
1340 * config.in, configure: Rebuild.
1341 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1342
1343 2019-11-26 Tom Tromey <tom@tromey.com>
1344
1345 * symtab.h (struct minimal_symbol) <name_set>: New member.
1346 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1347 Don't call symbol_set_names.
1348 (minimal_symbol_reader::install): Call symbol_set_names.
1349
1350 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1351
1352 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1353 restore_active_ext_lang, as GIL is needed for (indirectly)
1354 called PyOS_InterruptOccurred.
1355
1356 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1357
1358 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1359 definition.
1360
1361 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1362
1363 * remote-sim.c (simulator_command): Make static, remove
1364 declaration.
1365
1366 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1367
1368 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1369 static.
1370 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1371 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1372 (main): Likewise.
1373 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1374 (main): Likewise.
1375 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1376 (main): Likewise.
1377 * unittests/basic_string_view/element_access/char/1.cc (test01):
1378 Likewise.
1379 (main): Likewise.
1380 * unittests/basic_string_view/element_access/char/empty.cc (main):
1381 Likewise.
1382 * unittests/basic_string_view/element_access/char/front_back.cc
1383 (test01): Likewise.
1384 (main): Likewise.
1385 * unittests/basic_string_view/inserters/char/2.cc (test05):
1386 Likewise.
1387 (main): Likewise.
1388 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1389 (test01): Likewise.
1390 (main): Likewise.
1391 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1392 (test01): Likewise.
1393 (main): Likewise.
1394 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1395 Likewise.
1396 * unittests/basic_string_view/operations/compare/char/1.cc
1397 (test01): Likewise.
1398 (main): Likewise.
1399 * unittests/basic_string_view/operations/compare/char/13650.cc
1400 (test01): Likewise.
1401 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1402 Likewise.
1403 (main): Likewise.
1404 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1405 Likewise.
1406 (main): Likewise.
1407 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1408 Likewise.
1409 (main): Likewise.
1410 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1411 Likewise.
1412 (main): Likewise.
1413 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1414 Likewise.
1415 (main): Likewise.
1416 * unittests/basic_string_view/operations/find/char/4.cc (main):
1417 Likewise.
1418 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1419 Likewise.
1420 (main): Likewise.
1421 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1422 Likewise.
1423 (main): Likewise.
1424 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1425 Likewise.
1426 (main): Likewise.
1427 * unittests/basic_string_view/operations/substr/char/1.cc
1428 (test01): Likewise.
1429 (main): Likewise.
1430 * unittests/basic_string_view/operators/char/2.cc (main):
1431 Likewise.
1432 * unittests/optional/assignment/1.cc (test): Likewise.
1433 * unittests/optional/assignment/2.cc (test): Likewise.
1434 * unittests/optional/assignment/3.cc (test): Likewise.
1435 * unittests/optional/assignment/4.cc (test): Likewise.
1436 * unittests/optional/assignment/5.cc (test): Likewise.
1437 * unittests/optional/assignment/6.cc (test): Likewise.
1438 * unittests/optional/assignment/7.cc (test): Likewise.
1439 * unittests/optional/cons/copy.cc (test): Likewise.
1440 * unittests/optional/cons/default.cc (test): Likewise.
1441 * unittests/optional/cons/move.cc (test): Likewise.
1442 * unittests/optional/cons/value.cc (test): Likewise.
1443 * unittests/optional/in_place.cc (test): Likewise.
1444 * unittests/optional/observers/1.cc (test): Likewise.
1445 * unittests/optional/observers/2.cc (test): Likewise.
1446
1447 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1448
1449 * tui-win.h (tui_set_var_cmd): Remove.
1450 * tui-win.c (tui_set_var_cmd): Make static.
1451
1452 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1453
1454 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1455 rbreak_command_wrapper): Remove.
1456 * symtab.c (rbreak_command_wrapper): Remove.
1457
1458 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * inferior.h (info_terminal_command): Remove declaration.
1461 * inflow.c (info_terminal_command): Make static.
1462
1463 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1464
1465 * inferior.c (exit_inferior_silent): Remove.
1466
1467 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1468
1469 * dictionary.c (dict_empty, mdict_empty): Remove.
1470 * dictionary.c (mdict_empty): Remove.
1471
1472 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1473
1474 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1475 (arc_insn_get_memory_offset): Likewise.
1476 (arc_insn_dump): Likewise.
1477 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1478 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1479 * dictionary.c (dict_iterator_next): Likewise.
1480 (dict_iter_match_first): Likewise.
1481 (dict_iter_match_next): Likewise.
1482 * f-lang.c (evaluate_subexp_f): Likewise.
1483 * hppa-tdep.c (hppa_read_pc): Likewise.
1484 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1485 * parse.c (write_exp_elt_msym): Likewise.
1486 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1487 * remote.c (remote_packet_size): Likewise.
1488 (remote_notif_stop_parse): Likewise.
1489 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1490 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1491 * source.c (prepare_path_for_appending): Likewise.
1492 * sparc64-linux-tdep.c
1493 (sparc64_linux_handle_segmentation_fault); Likewise.
1494 * stack.c (frame_selection_by_function_completer): Likewise.
1495
1496 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1497
1498 * completer.c (set_gdb_completion_word_break_characters):
1499 Remove.
1500
1501 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1502
1503 * dwarf-index-write.c: Include dwarf-index-write.h.
1504 * mi/mi-interp.c: Include mi/mi-interp.h.
1505
1506 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1507
1508 * aarch32-tdep.c: Include aarch32-tdep.h.
1509 * aarch32-tdep.h: Forward-declare struct target_desc.
1510
1511 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1512
1513 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1514 strerror.
1515 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1516 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1517
1518 2019-11-25 Tom de Vries <tdevries@suse.de>
1519
1520 * contrib/words.sh: Add -c option.
1521
1522 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1523
1524 * solib.c (solib_find_1): Change int to bool.
1525 (exec_file_find): Change int to bool.
1526 (solib_find): Change int to bool.
1527 (solib_read_symbols): Change int to bool.
1528 (solib_used): Change int to bool.
1529 (solib_add): Change int to bool.
1530 (info_sharedlibrary_command): Change int to bool.
1531 (solib_contains_address_p): Change int to bool.
1532 (solib_keep_data_in_core): Change int to bool.
1533 (in_solib_dynsym_resolve_code): Change int to bool.
1534 (reload_shared_libraries_1): Change int to bool.
1535 (gdb_sysroot_changed): Change int to bool.
1536 * solib.h (solib_read_symbols): Change int to bool.
1537 (solib_contains_address_p): Change int to bool.
1538 (solib_keep_data_in_core): Change int to bool.
1539 (in_solib_dynsym_resolve_code): Change int to bool.
1540 (libpthread_name_p): Change int to bool.
1541
1542 2019-11-25 Luis Machado <luis.machado@linaro.org>
1543
1544 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1545 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1546 (remote_packet_max_chars): New static global.
1547 (show_remote_packet_max_chars): New function.
1548 (remote_target::putpkt_binary): Adjust to use new
1549 remote_packet_max_chars option.
1550 (remote_target::getpkt_or_notif_sane_1): Likewise.
1551 (_initialize_remote): Register new remote-packet-max-chars option.
1552
1553 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1554
1555 * m68k-linux-nat.c: Include gdbarch.h.
1556
1557 2019-11-24 Tom Tromey <tom@tromey.com>
1558
1559 * symfile.c (read_symbols): Update.
1560 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1561 bool.
1562 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1563 (psym_lookup_symbol, psym_find_last_source_symtab)
1564 (psym_forget_cached_source_info, psym_print_stats)
1565 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1566 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1567 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1568 (psym_find_compunit_symtab_by_address)
1569 (maintenance_print_psymbols, maintenance_info_psymtabs)
1570 (maintenance_check_psymtabs): Update.
1571 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1572 bool.
1573
1574 2019-11-22 Tom Tromey <tom@tromey.com>
1575
1576 * observable.h: Update comments.
1577
1578 2019-11-22 Tom Tromey <tromey@adacore.com>
1579
1580 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1581 (print_ada_task_info): Don't try to fetch thread id if task is not
1582 alive.
1583
1584 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1585
1586 * ada-exp.y: Update.
1587 * ada-lang.c (sort_choices): Update.
1588 (ada_print_symbol_signature): Update.
1589 (resolve_subexp): Update.
1590 (ada_parse_renaming): Update.
1591 (ada_read_renaming_var_value): Update.
1592 (lesseq_defined_than): Update.
1593 (remove_extra_symbols): Update.
1594 (remove_irrelevant_renamings): Update.
1595 (ada_add_block_symbols): Update.
1596 (ada_collect_symbol_completion_matches): Update.
1597 (ada_is_renaming_symbol): Update.
1598 (aggregate_assign_from_choices): Update.
1599 (ada_evaluate_subexp): Update.
1600 (ada_has_this_exception_support): Update.
1601 (ada_is_non_standard_exception_sym): Update.
1602 (ada_add_exceptions_from_frame): Update.
1603 (ada_add_global_exceptions): Update.
1604 (ada_print_subexp): Update.
1605 * ax-gdb.c (gen_var_ref): Update.
1606 (gen_maybe_namespace_elt): Update.
1607 (gen_expr_for_cast): Update.
1608 (gen_expr): Update.
1609 * block.h: Update.
1610 * blockframe.c (find_pc_partial_function): Update.
1611 * breakpoint.c (print_breakpoint_location): Update.
1612 (update_static_tracepoint): Update.
1613 * btrace.c (ftrace_print_function_name): Update.
1614 (ftrace_function_switched): Update.
1615 * buildsym.c (find_symbol_in_list): Update.
1616 * c-exp.y: Update.
1617 * c-typeprint.c (c_print_typedef): Update.
1618 (c_type_print_template_args): Update.
1619 * cli/cli-cmds.c (edit_command): Update.
1620 (list_command): Update.
1621 (print_sal_location): Update.
1622 * coffread.c (patch_opaque_types): Update.
1623 (process_coff_symbol): Update.
1624 (coff_read_enum_type): Update.
1625 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1626 (convert_one_symbol): Update.
1627 (hash_symname): Update.
1628 (eq_symname): Update.
1629 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1630 * compile/compile-cplus-types.c (debug_print_scope): Update.
1631 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1632 * compile/compile-object-load.c (get_out_value_type): Update.
1633 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1634 (search_symbol_list): Update.
1635 (cp_lookup_symbol_imports_or_template): Update.
1636 * cp-support.c (overload_list_add_symbol): Update.
1637 * ctfread.c (psymtab_to_symtab): Update.
1638 * dbxread.c (cp_set_block_scope): Update.
1639 * dictionary.c (iter_match_first_hashed): Update.
1640 (iter_match_next_hashed): Update.
1641 (insert_symbol_hashed): Update.
1642 (iter_match_next_linear): Update.
1643 * dictionary.h: Update.
1644 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1645 (locexpr_describe_location_piece): Update.
1646 (locexpr_describe_location_1): Update.
1647 (locexpr_generate_c_location): Update.
1648 (loclist_describe_location): Update.
1649 (loclist_generate_c_location): Update.
1650 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1651 (read_func_scope): Update.
1652 (process_enumeration_scope): Update.
1653 (new_symbol): Update.
1654 (dwarf2_const_value): Update.
1655 (dwarf2_symbol_mark_computed): Update.
1656 * eval.c (evaluate_funcall): Update.
1657 (evaluate_subexp_standard): Update.
1658 * expprint.c (print_subexp_standard): Update.
1659 (dump_subexp_body_standard): Update.
1660 * f-valprint.c (info_common_command_for_block): Update.
1661 * findvar.c (get_hosting_frame): Update.
1662 (default_read_var_value): Update.
1663 * go-lang.c (go_symbol_package_name): Update.
1664 * guile/scm-block.c (bkscm_print_block_smob): Update.
1665 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1666 (gdbscm_symbol_name): Update.
1667 (gdbscm_symbol_linkage_name): Update.
1668 (gdbscm_symbol_print_name): Update.
1669 * infcall.c (get_function_name): Update.
1670 * infcmd.c (jump_command): Update.
1671 (finish_command): Update.
1672 * infrun.c (insert_exception_resume_breakpoint): Update.
1673 * linespec.c (canonicalize_linespec): Update.
1674 (create_sals_line_offset): Update.
1675 (convert_linespec_to_sals): Update.
1676 (complete_label): Update.
1677 (find_label_symbols_in_block): Update.
1678 * m2-typeprint.c (m2_print_typedef): Update.
1679 * mdebugread.c (mdebug_reg_to_regnum): Update.
1680 (parse_symbol): Update.
1681 (mylookup_symbol): Update.
1682 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1683 (list_args_or_locals): Update.
1684 * objc-lang.c (compare_selectors): Update.
1685 (info_selectors_command): Update.
1686 (compare_classes): Update.
1687 (info_classes_command): Update.
1688 (find_imps): Update.
1689 * p-typeprint.c (pascal_print_typedef): Update.
1690 * printcmd.c (build_address_symbolic): Update.
1691 (info_address_command): Update.
1692 (print_variable_and_value): Update.
1693 * python/py-framefilter.c (extract_sym): Update.
1694 (py_print_single_arg): Update.
1695 * python/py-symbol.c (sympy_str): Update.
1696 (sympy_get_name): Update.
1697 (sympy_get_linkage_name): Update.
1698 * python/python.c (gdbpy_rbreak): Update.
1699 * record-btrace.c (btrace_get_bfun_name): Update.
1700 (btrace_call_history): Update.
1701 * rust-lang.c (rust_print_typedef): Update.
1702 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1703 * stabsread.c (stab_reg_to_regnum): Update.
1704 (define_symbol): Update.
1705 (read_enum_type): Update.
1706 (common_block_end): Update.
1707 (cleanup_undefined_types_1): Update.
1708 (scan_file_globals): Update.
1709 * stack.c (print_frame_arg): Update.
1710 (print_frame_args): Update.
1711 (find_frame_funname): Update.
1712 (info_frame_command_core): Update.
1713 (iterate_over_block_locals): Update.
1714 (print_block_frame_labels): Update.
1715 (do_print_variable_and_value): Update.
1716 (iterate_over_block_arg_vars): Update.
1717 (return_command): Update.
1718 * symmisc.c (dump_symtab_1): Update.
1719 (print_symbol): Update.
1720 * symtab.c (eq_symbol_entry): Update.
1721 (symbol_cache_dump): Update.
1722 (lookup_language_this): Update.
1723 (find_pc_sect_line): Update.
1724 (skip_prologue_sal): Update.
1725 (symbol_search::compare_search_syms): Update.
1726 (treg_matches_sym_type_name): Update.
1727 (search_symbols): Update.
1728 (print_symbol_info): Update.
1729 (rbreak_command): Update.
1730 (completion_list_add_symbol): Update.
1731 (find_gnu_ifunc): Update.
1732 (get_symbol_address): Update.
1733 (search_module_symbols): Update.
1734 (info_module_subcommand): Update.
1735 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1736 (SYMBOL_LINKAGE_NAME): Remove.
1737 (SYMBOL_DEMANGLED_NAME): Remove.
1738 (SYMBOL_PRINT_NAME): Remove.
1739 (SYMBOL_SEARCH_NAME): Remove.
1740 * tracepoint.c (set_traceframe_context): Update.
1741 (validate_actionline): Update.
1742 (collection_list::collect_symbol): Update.
1743 (encode_actions_1): Update.
1744 (info_scope_command): Update.
1745 (print_one_static_tracepoint_marker): Update.
1746 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1747 * valops.c (address_of_variable): Update.
1748 (find_overload_match): Update.
1749 (find_oload_champ): Update.
1750
1751 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1752
1753 * ada-lang.c (ada_lookup_simple_minsym): Update.
1754 (ada_collect_symbol_completion_matches): Update.
1755 * ada-tasks.c (read_atcb): Update.
1756 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1757 (amd64_windows_skip_trampoline_code): Update.
1758 * arm-tdep.c (skip_prologue_function): Update.
1759 (arm_skip_stack_protector): Update.
1760 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1761 (arm_wince_skip_main_prologue): Update.
1762 * ax-gdb.c (gen_expr): Update.
1763 * block.c (call_site_for_pc): Update.
1764 * blockframe.c (find_pc_partial_function): Update.
1765 * breakpoint.c (set_breakpoint_location_function): Update.
1766 * btrace.c (ftrace_print_function_name): Update.
1767 (ftrace_function_switched): Update.
1768 * c-valprint.c (print_unpacked_pointer): Update.
1769 * coffread.c (coff_symfile_read): Update.
1770 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1771 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1772 * dwarf-index-write.c (write_psymbols): Update.
1773 * dwarf2loc.c (call_site_to_target_addr): Update.
1774 (func_verify_no_selftailcall): Update.
1775 (tailcall_dump): Update.
1776 (call_site_find_chain_1): Update.
1777 (dwarf_expr_reg_to_entry_parameter): Update.
1778 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1779 * eval.c (evaluate_funcall): Update.
1780 (evaluate_subexp_standard): Update.
1781 (evaluate_subexp_for_sizeof): Update.
1782 * expprint.c (print_subexp_standard): Update.
1783 (dump_subexp_body_standard): Update.
1784 * frame.c (get_prev_frame_always_1): Update.
1785 * frv-tdep.c (frv_skip_main_prologue): Update.
1786 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1787 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1788 (gnuv3_get_typename_from_type_info): Update.
1789 (gnuv3_skip_trampoline): Update.
1790 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1791 * i386-tdep.c (i386_skip_main_prologue): Update.
1792 (i386_pe_skip_trampoline_code): Update.
1793 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1794 * infcall.c (get_function_name): Update.
1795 * linespec.c (minsym_found): Update.
1796 * linux-fork.c (info_checkpoints_command): Update.
1797 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1798 (m32c_m16c_pointer_to_address): Update.
1799 * maint.c (maintenance_translate_address): Update.
1800 * minsyms.c (add_minsym_to_hash_table): Update.
1801 (add_minsym_to_demangled_hash_table): Update.
1802 (lookup_minimal_symbol_mangled): Update.
1803 (lookup_minimal_symbol_demangled): Update.
1804 (lookup_minimal_symbol_linkage): Update.
1805 (lookup_minimal_symbol_text): Update.
1806 (lookup_minimal_symbol_by_pc_name): Update.
1807 (minimal_symbol_is_less_than): Update.
1808 (compact_minimal_symbols): Update.
1809 (build_minimal_symbol_hash_tables): Update.
1810 (find_solib_trampoline_target): Update.
1811 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1812 (mips_skip_pic_trampoline_code): Update.
1813 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1814 * objc-lang.c (info_selectors_command): Update.
1815 (info_classes_command): Update.
1816 (find_methods): Update.
1817 (find_imps): Update.
1818 * p-valprint.c (pascal_val_print): Update.
1819 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1820 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1821 * printcmd.c (build_address_symbolic): Update.
1822 (info_symbol_command): Update.
1823 * psymtab.c (psymbol_name_matches): Update.
1824 (match_partial_symbol): Update.
1825 (lookup_partial_symbol): Update.
1826 (print_partial_symbols): Update.
1827 (sort_pst_symbols): Update.
1828 (maintenance_check_psymtabs): Update.
1829 * python/py-framefilter.c (py_print_frame): Update.
1830 * python/python.c (gdbpy_rbreak): Update.
1831 * record-btrace.c (btrace_get_bfun_name): Update.
1832 (btrace_call_history): Update.
1833 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1834 (rs6000_skip_trampoline_code): Update.
1835 * sol-thread.c (info_cb): Update.
1836 * stabsread.c (scan_file_globals): Update.
1837 * stack.c (find_frame_funname): Update.
1838 (info_frame_command_core): Update.
1839 * symmisc.c (dump_msymbols): Update.
1840 * symtab.c (symbol_natural_name): Rename to..,
1841 (general_symbol_info::natural_name): ...this.
1842 (symbol_demangled_name): Rename to...
1843 (general_symbol_info::demangled_name): ...this.
1844 (symbol_search_name): Rename to...
1845 (general_symbol_info::search_name): ...this.
1846 (symbol_matches_search_name): Update.
1847 (find_pc_sect_line): Update.
1848 (skip_prologue_sal): Update.
1849 (search_symbols): Update.
1850 (print_msymbol_info): Update.
1851 (rbreak_command): Update.
1852 (completion_list_add_msymbol): Update.
1853 (completion_list_objc_symbol): Update.
1854 (get_msymbol_address): Update.
1855 * symtab.h (struct general_symbol_info): Add member functions
1856 natural_name (), linkage_name (), print_name (), demangled_name (),
1857 and search_name ().
1858 (SYMBOL_NATURAL_NAME): Update.
1859 (symbol_natural_name): Move to a member function on general_symbol_info.
1860 (SYMBOL_DEMANGLED_NAME): Update.
1861 (symbol_demangled_name): Move to a member function on
1862 general_symbol_info.
1863 (SYMBOL_SEARCH_NAME): Update.
1864 (symbol_search_name): Move to a member function on general_symbol_info.
1865 (MSYMBOL_NATURAL_NAME): Remove.
1866 (MSYMBOL_LINKAGE_NAME): Remove.
1867 (MSYMBOL_PRINT_NAME): Remove.
1868 (MSYMBOL_DEMANGLED_NAME): Remove.
1869 (MSYMBOL_SEARCH_NAME): Remove.
1870 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1871
1872 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1873
1874 * symtab.c (create_demangled_names_hash): Use per_bfd->
1875 minimal_symbol_count for computing the initial size, if greater
1876 than our default size.
1877
1878 2019-11-22 Tom de Vries <tdevries@suse.de>
1879
1880 * contrib/words.sh: Improve words extraction.
1881
1882 2019-11-22 Tom de Vries <tdevries@suse.de>
1883
1884 * contrib/words.sh: Combine sed invocations.
1885
1886 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1887
1888 * Makefile.in: Update.
1889 * demangle.c: Rename to...
1890 * gdb-demangle.c: ..this.
1891 (is_cplus_marker): Change return type to bool.
1892 (_initialize_demangler): Rename to...
1893 (_initialize_gdb_demangle): ...this.
1894 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1895 * symtab.h (demangle): Remove declaration; instead include
1896 gdb-demangle.h.
1897
1898 2019-11-21 Tom Tromey <tromey@adacore.com>
1899
1900 * gdbsupport/format.c (format_pieces): Parse %I64d.
1901 * unittests/format_pieces-selftests.c (test_windows_formats): New
1902 function.
1903 (run_tests): Call it.
1904
1905 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1906
1907 Byte reverse display of variables with DW_END_big, DW_END_little
1908 (DW_AT_endianity) dwarf attributes if different than the native
1909 byte order.
1910 * ada-lang.c (ada_value_binop):
1911 Use type_byte_order instead of gdbarch_byte_order.
1912 * ada-valprint.c (printstr):
1913 (ada_val_print_string):
1914 * ada-lang.c (value_pointer):
1915 (ada_value_binop):
1916 Use type_byte_order instead of gdbarch_byte_order.
1917 * c-lang.c (c_get_string):
1918 Use type_byte_order instead of gdbarch_byte_order.
1919 * c-valprint.c (c_val_print_array):
1920 Use type_byte_order instead of gdbarch_byte_order.
1921 * cp-valprint.c (cp_print_class_member):
1922 Use type_byte_order instead of gdbarch_byte_order.
1923 * dwarf2loc.c (rw_pieced_value):
1924 Use type_byte_order instead of gdbarch_byte_order.
1925 * dwarf2read.c (read_base_type): Handle DW_END_big,
1926 DW_END_little
1927 * f-lang.c (f_get_encoding):
1928 Use type_byte_order instead of gdbarch_byte_order.
1929 * findvar.c (default_read_var_value):
1930 Use type_byte_order instead of gdbarch_byte_order.
1931 * gdbtypes.c (check_types_equal):
1932 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1933 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1934 and TYPE_ENDIANITY_LITTLE if set.
1935 (type_byte_order): new function.
1936 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1937 (struct main_type) <flag_endianity_not_default>:
1938 New field.
1939 (type_byte_order): New function.
1940 * infcmd.c (default_print_one_register_info):
1941 Use type_byte_order instead of gdbarch_byte_order.
1942 * p-lang.c (pascal_printstr):
1943 Use type_byte_order instead of gdbarch_byte_order.
1944 * p-valprint.c (pascal_val_print):
1945 Use type_byte_order instead of gdbarch_byte_order.
1946 * printcmd.c (print_scalar_formatted):
1947 Use type_byte_order instead of gdbarch_byte_order.
1948 * solib-darwin.c (darwin_current_sos):
1949 Use type_byte_order instead of gdbarch_byte_order.
1950 * solib-svr4.c (solib_svr4_r_ldsomap):
1951 Use type_byte_order instead of gdbarch_byte_order.
1952 * stap-probe.c (stap_modify_semaphore):
1953 Use type_byte_order instead of gdbarch_byte_order.
1954 * target-float.c (target_float_same_format_p):
1955 Use type_byte_order instead of gdbarch_byte_order.
1956 * valarith.c (scalar_binop):
1957 (value_bit_index):
1958 Use type_byte_order instead of gdbarch_byte_order.
1959 * valops.c (value_cast):
1960 Use type_byte_order instead of gdbarch_byte_order.
1961 * valprint.c (generic_emit_char):
1962 (generic_printstr):
1963 (val_print_string):
1964 Use type_byte_order instead of gdbarch_byte_order.
1965 * value.c (unpack_long):
1966 (unpack_bits_as_long):
1967 (unpack_value_bitfield):
1968 (modify_field):
1969 (pack_long):
1970 (pack_unsigned_long):
1971 Use type_byte_order instead of gdbarch_byte_order.
1972 * findvar.c (unsigned_pointer_to_address):
1973 (signed_pointer_to_address):
1974 (unsigned_address_to_pointer):
1975 (address_to_signed_pointer):
1976 (default_read_var_value):
1977 (default_value_from_register):
1978 Use type_byte_order instead of gdbarch_byte_order.
1979 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1980 Use type_byte_order instead of gdbarch_byte_order.
1981 * riscv-tdep.c (riscv_print_one_register_info):
1982 Use type_byte_order instead of gdbarch_byte_order.
1983
1984 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1985
1986 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1987 (current_ui_gdb_stdin_ptr): Likewise.
1988 (current_ui_gdb_stderr_ptr): Likewise.
1989 (current_ui_gdb_stdlog_ptr): Likewise.
1990 (current_ui_current_uiout_ptr): Likewise.
1991 (gen_ret_current_ui_field_ptr): Remove.
1992
1993 2019-11-21 Tom de Vries <tdevries@suse.de>
1994
1995 PR gdb/24956
1996 * cli/cli-script.c (execute_control_command): Only switch to
1997 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1998
1999 2019-11-19 Tom Tromey <tom@tromey.com>
2000
2001 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2002 Now static. Change type of "name".
2003 (tui_set_win_height_command): Don't copy "arg".
2004 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2005 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2006
2007 2019-11-19 Ali Tamur <tamur@google.com>
2008
2009 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2010 "if (attr != nullptr)".
2011 (dwarf2_find_base_address): Likewise.
2012 (dwarf2_build_include_psymtabs): Likewise.
2013 (read_cutu_die_from_dwo): Likewise.
2014 (read_func_scope): Likewise.
2015 (read_call_site_scope): Likewise.
2016 (dwarf2_get_pc_bounds): Likewise.
2017 (dwarf2_record_block_ranges): Likewise.
2018 (dwarf2_add_field): Likewise.
2019 (dwarf2_add_member_fn): Likewise.
2020 (read_structure_type): Likewise.
2021 (read_enumeration_type): Likewise.
2022 (read_array_type): Likewise.
2023 (read_array_order): Likewise.
2024 (read_set_type): Likewise.
2025 (read_common_block): Likewise.
2026 (read_tag_reference_type): Likewise.
2027 (read_tag_string_type): Likewise.
2028 (read_subroutine_type): Likewise.
2029 (read_base_type): Likewise.
2030 (read_subrange_type): Likewise.
2031 (new_symbol): Likewise.
2032 (prepare_one_comp_unit): Likewise.
2033
2034 2019-11-19 Tom Tromey <tromey@adacore.com>
2035
2036 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2037 result in error when DebugActiveProcess fails.
2038
2039 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2040 Pedro Alves <palves@redhat.com>
2041
2042 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2043 * target.c (target_stack::push): Call 'unpush' if there's a
2044 target on top of the stack.
2045
2046 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2047
2048 * python/py-block.c (blpy_dealloc): Call tp_free.
2049 (blpy_block_syms_dealloc): Likewise.
2050 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2051 * python/py-inferior.c (infpy_dealloc): Likewise.
2052 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2053 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2054 * python/py-symbol.c (sympy_dealloc): Likewise.
2055 * python/py-symtab.c (stpy_dealloc): Likewise.
2056 * python/py-type.c (typy_iterator_dealloc): Likewise.
2057
2058 2019-11-18 Christian Biesinger <cbiesinger@google.com>
2059
2060 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2061 constructor instead of using a class initializer.
2062
2063 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2064
2065 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2066 * configure: Regenerate.
2067 * configure.ac: Don't source common.host.
2068 * gdbsupport/common.host: Remove.
2069 * gdbsupport/mingw-strerror.c: Remove.
2070 * gdbsupport/posix-strerror.c: Rename to...
2071 * gdbsupport/safe-strerror.c: ...this.
2072
2073 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2074
2075 * maint.c (scoped_command_stats::print_time): Use localtime_r
2076 instead of localtime (provided through gnulib if necessary).
2077 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2078 of ctime.
2079
2080 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2081
2082 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2083 avoid compile errors.
2084
2085 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2086
2087 * config.in: Regenerate.
2088 * configure: Regenerate.
2089 * gdbsupport/common.m4: No longer check for strerror_r.
2090 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2091 POSIX version of strerror_r, now that gnulib provides it if
2092 necessary.
2093
2094 2019-11-14 Christian Biesinger <cbiesinger@google.com>
2095
2096 * README (`configure' options): Update.
2097
2098 2019-11-14 Tom Tromey <tromey@adacore.com>
2099
2100 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2101 expected type for the RHS if the LHS is a convenience variable.
2102
2103 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2104
2105 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2106 Provide explicit default and copy constructor.
2107
2108 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2109
2110 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2111 only call Py_INCREF (newbp) in the bppy_pending_object case.
2112
2113 2019-11-13 Tom Tromey <tromey@adacore.com>
2114
2115 PR build/25182:
2116 * psympriv.h (partial_symbol): Remove static assert.
2117 * symtab.h (general_symbol_info, symbol): Remove static assert.
2118
2119 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2120
2121 * gdbsupport/format.c (format_pieces::format_pieces): Support
2122 printf 'z' size modifier.
2123 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2124 * printcmd.c (ui_printf): Handle size_t_arg.
2125 * ui-out.c (ui_out::vmessage): Likewise.
2126 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2127 function.
2128 (run_tests): Call test_format_int_sizes.
2129
2130 2019-11-12 Christian Biesinger <cbiesinger@google.com>
2131
2132 * ada-exp.y (write_ambiguous_var): Update.
2133 * buildsym.c (add_symbol_to_list): Update.
2134 * dwarf2read.c (read_variable): Update.
2135 (new_symbol): Update.
2136 * jit.c (finalize_symtab): Update.
2137 * language.c (language_alloc_type_symbol): Update.
2138 * symtab.c (fixup_symbol_section): Update.
2139 (initialize_objfile_symbol_1): Move code to...
2140 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2141 (allocate_symbol): Update.
2142 (allocate_template_symbol): Update.
2143 (get_symbol_address): Update.
2144 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2145 of having as a field, and add a constructor.
2146 (SYMBOL_VALUE): Update.
2147 (SYMBOL_VALUE_ADDRESS): Update.
2148 (SET_SYMBOL_VALUE_ADDRESS): Update.
2149 (SYMBOL_VALUE_BYTES): Update.
2150 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2151 (SYMBOL_BLOCK_VALUE): Update.
2152 (SYMBOL_VALUE_CHAIN): Update.
2153 (SYMBOL_LANGUAGE): Update.
2154 (SYMBOL_SECTION): Update.
2155 (SYMBOL_OBJ_SECTION): Update.
2156 (SYMBOL_SET_LANGUAGE): Update.
2157 (SYMBOL_SET_LINKAGE_NAME): Update.
2158 (SYMBOL_SET_NAMES): Update.
2159 (SYMBOL_NATURAL_NAME): Update.
2160 (SYMBOL_LINKAGE_NAME): Update.
2161 (SYMBOL_DEMANGLED_NAME): Update.
2162 (SYMBOL_SEARCH_NAME): Update.
2163 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2164 (struct symbol): Update.
2165 (struct template_symbol): Update.
2166 (struct rust_vtable_symbol): Update.
2167 * xcoffread.c (SYMBOL_DUP): Update.
2168
2169 2019-11-12 Tom Tromey <tom@tromey.com>
2170
2171 * tui/tui-layout.c (show_layout): Set current_layout.
2172 (show_source_disasm_command, show_data)
2173 (show_source_or_disasm_and_command): Don't set current_layout.
2174
2175 2019-11-12 Tom Tromey <tom@tromey.com>
2176
2177 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2178
2179 2019-11-12 Tom Tromey <tom@tromey.com>
2180
2181 * tui/tui-win.c (resize_message): New global.
2182 (show_tui_resize_message): New function.
2183 (tui_async_resize_screen): Print message if requested.
2184 (_initialize_tui_win): Add tui-resize-message setting.
2185 * NEWS: Add entry for new commands.
2186
2187 2019-11-11 Tom Tromey <tom@tromey.com>
2188
2189 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2190 functions.
2191
2192 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2193
2194 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2195
2196 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2199 function.
2200 * python/python-internal.h (gdbpy_lookup_static_symbols):
2201 Declare new function.
2202 * python/python.c (python_GdbMethods): Add
2203 gdb.lookup_static_symbols method.
2204 * NEWS: Mention gdb.lookup_static_symbols.
2205
2206 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2207
2208 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2209 static block of current object file first. Also fix typo in
2210 header comment.
2211
2212 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2213
2214 * stack.c (set_last_displayed_sal): Delete.
2215 (last_displayed_sal_valid): Delete.
2216 (last_displayed_pspace): Delete.
2217 (last_displayed_addr): Delete.
2218 (last_displayed_symtab): Delete.
2219 (last_displayed_line): Delete.
2220 (class last_displayed_symtab_info_type): New.
2221 (last_displayed_symtab_info): New static global variable.
2222 (print_frame_info): Call methods on last_displayed_symtab_info.
2223 (clear_last_displayed_sal): Update header comment, and make use of
2224 last_displayed_symtab_info.
2225 (last_displayed_sal_is_valid): Likewise.
2226 (get_last_displayed_pspace): Likewise.
2227 (get_last_displayed_addr): Likewise.
2228 (get_last_displayed_symtab): Likewise.
2229 (get_last_displayed_line): Likewise.
2230 (get_last_displayed_sal): Likewise.
2231 * stack.h (clear_last_displayed_sal): Update header comment.
2232 (last_displayed_sal_is_valid): Likewise.
2233 (get_last_displayed_pspace): Likewise.
2234 (get_last_displayed_addr): Likewise.
2235 (get_last_displayed_symtab): Likewise.
2236 (get_last_displayed_line): Likewise.
2237 (get_last_displayed_sal): Likewise.
2238
2239 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * stack.c (frame_show_address): Convert return type to bool.
2242 * stack.h (frame_show_address): Likewise, and update header
2243 comment.
2244
2245 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2246
2247 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2248 * unittests/vec-utils-selftests.c: New file.
2249 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2250
2251 2019-11-10 Tom Tromey <tom@tromey.com>
2252
2253 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2254 (tui_highlight_win): Likewise.
2255 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2256 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2257 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2258 Don't set can_highlight.
2259
2260 2019-11-10 Tom Tromey <tom@tromey.com>
2261
2262 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2263 Remove unused declaration.
2264
2265 2019-11-08 Tom Tromey <tromey@adacore.com>
2266
2267 * top.c (read_command_file): Update.
2268 (command_line_input): Make return type const.
2269 * python/py-gdb-readline.c: Update.
2270 * linespec.c (decode_line_2): Update.
2271 * defs.h (command_line_input): Make return type const.
2272 * cli/cli-script.c (read_next_line): Make return type const.
2273 * ada-lang.c (get_selections): Update.
2274
2275 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2276
2277 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2278 * mi/mi-main.c (output_cores): Likewise.
2279 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2280 (linux_xfer_osdata_modules): Likewise.
2281 * remote.c (register_remote_support_xml): Likewise.
2282 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2283 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2284
2285 2019-11-06 Tom Tromey <tom@tromey.com>
2286
2287 * tui/tui-interp.c: Don't include readline.h.
2288 * tui/tui-hooks.c: Don't include readline.h.
2289 * symmisc.c: Include tilde.h, not readline.h.
2290 * symfile.c: Include tilde.h, not readline.h.
2291 * source.c: Include tilde.h, not readline.h.
2292 * solib.c: Include tilde.h, not readline.h.
2293 * psymtab.c: Include tilde.h, not readline.h.
2294 * exec.c: Include tilde.h, not readline.h.
2295 * corelow.c: Include tilde.h, not readline.h.
2296 * cli/cli-dump.c: Include tilde.h, not readline.h.
2297 * cli/cli-cmds.c: Don't include readline.h.
2298
2299 2019-11-05 Tom Tromey <tom@tromey.com>
2300
2301 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2302 (tui_disassemble): Set addr_size.
2303 (tui_disasm_window::set_contents): Use addr_size.
2304
2305 2019-11-05 Tom Tromey <tom@tromey.com>
2306
2307 * rust-lang.c (rust_language_defn): Update.
2308 * python/py-value.c (valpy_string): Call c_get_string.
2309 * p-lang.c (pascal_language_defn): Update.
2310 * opencl-lang.c (opencl_language_defn): Update.
2311 * objc-lang.c (objc_language_defn): Update.
2312 * m2-lang.c (m2_language_defn): Update.
2313 * language.c (unknown_language_defn, auto_language_defn): Update.
2314 (default_get_string): Remove.
2315 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2316 * go-lang.c (go_language_defn): Update.
2317 * f-lang.c (f_language_defn): Update.
2318 * d-lang.c (d_language_defn): Update.
2319 * c-lang.c (c_language_defn, cplus_language_defn)
2320 (asm_language_defn, minimal_language_defn): Update.
2321 * ada-lang.c (ada_language_defn): Update.
2322 * language.h (struct language_defn) <la_get_string>: Remove.
2323 (LA_GET_STRING): Remove.
2324 (default_get_string): Don't declare.
2325
2326 2019-11-05 Tom Tromey <tom@tromey.com>
2327
2328 * tui/tui-source.h (struct tui_source_window): Inline
2329 constructor. Remove destructor.
2330 <style_changed, m_observable>: Move to superclass.
2331 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2332 (struct tui_source_window_base): Move private members to end.
2333 <style_changed, m_observable>: Move from tui_source_window.
2334 * tui/tui-winsource.c (tui_copy_source_line): Move from
2335 tui-source.c. Rename from copy_source_line. Add special handling
2336 for negative line number.
2337 (tui_source_window_base::style_changed): Move from
2338 tui_source_window.
2339 (tui_source_window_base): Register observer.
2340 (~tui_source_window_base): New.
2341 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2342 rename.
2343 (tui_source_window::set_contents): Use tui_copy_source_line.
2344 (tui_source_window::tui_source_window): Move to tui-source.h.
2345 (tui_source_window::~tui_source_window): Remove.
2346 (tui_source_window::style_changed): Move to superclass.
2347 * tui/tui-disasm.c (tui_disassemble): Create string file with
2348 styling, when possible. Add "addr_size" parameter.
2349 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2350 Don't compute maximum size.
2351 (len_without_escapes): New function
2352
2353 2019-11-05 Tom Tromey <tom@tromey.com>
2354
2355 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2356 std::string.
2357 * tui/tui-winsource.c (tui_show_source_line): Update.
2358 * tui/tui-source.c (tui_source_window::set_contents): Update.
2359 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2360
2361 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2362
2363 * symtab.h (gdb_static_assert): Put && operator at the beginning
2364 of the line instead of the end.
2365
2366 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2367
2368 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2369 and sizeof (symbol).
2370 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2371
2372 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2373
2374 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2375 * configure.host: Mark *-*-solaris2.10* obsolete.
2376 * configure.tgt: Mark Solaris < 11 obsolete.
2377 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2378 Update target triplet.
2379
2380 2019-11-01 Tom Tromey <tromey@adacore.com>
2381
2382 * utils.c (print_sys_errmsg): Simplify.
2383
2384 2019-11-01 Tom Tromey <tromey@adacore.com>
2385
2386 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2387
2388 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2389
2390 * configure: Regenerate.
2391 * configure.ac: Remove check for strerror_r.
2392 * gdbsupport/common.m4: Check for strerror_r.
2393
2394 2019-11-01 Luis Machado <luis.machado@linaro.org>
2395
2396 PR gdb/25124
2397
2398 * arm-tdep.c (arm_per_objfile): Rename to ...
2399 (arm_per_bfd): ... this.
2400 (arm_objfile_data_key): Rename to ...
2401 (arm_bfd_data_key): ... this.
2402 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2403 data.
2404 (arm_record_special_symbol): Likewise.
2405
2406 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2407
2408 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2409 end.
2410 * c-typeprint.c (c_print_typedef): Likewise.
2411 * f-typeprint.c (f_print_typedef): Likewise.
2412 * m2-typeprint.c (m2_print_typedef): Likewise.
2413 * p-typeprint.c (pascal_print_typedef): Likewise.
2414 * rust-lang.c (rust_print_typedef): Likewise.
2415 * symtab.c (print_symbol_info): Print a newline after calling
2416 typedef_print.
2417
2418 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2419
2420 * symtab.c (info_module_cmdlist): New variable.
2421 (info_module_command): New function.
2422 (search_module_symbols): New function.
2423 (info_module_subcommand): New function.
2424 (struct info_modules_var_func_options): New struct.
2425 (info_modules_var_func_options_defs): New variable.
2426 (make_info_modules_var_func_options_def_group): New function.
2427 (info_module_functions_command): New function.
2428 (info_module_variables_command): New function.
2429 (info_module_var_func_command_completer): New function.
2430 (_initialize_symtab): Register new 'info module functions' and
2431 'info module variables' commands.
2432 * symtab.h (typedef symbol_search_in_module): New typedef.
2433 (search_module_symbols): Declare new function.
2434 * NEWS: Mention new commands.
2435
2436 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2437
2438 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2439 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2440 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2441 MODULES_DOMAIN.
2442 (scan_partial_symbols): Only create partial module symbols for non
2443 declarations.
2444 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2445 and MODULES_DOMAIN.
2446 * symtab.c (search_domain_name): Likewise.
2447 (search_symbols): Likewise.
2448 (print_symbol_info): Likewise.
2449 (symtab_symbol_info): Likewise.
2450 (info_modules_command): New function.
2451 (_initialize_symtab): Register 'info modules' command.
2452 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2453 * NEWS: Mention new 'info modules' command.
2454
2455 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2456
2457 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2458 and $_gdb_maint_setting_str.
2459
2460 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2461
2462 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2463 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2464 (str_value_from_setting, gdb_setting_str_internal_fn)
2465 (gdb_maint_setting_str_internal_fn): New functions.
2466 (_initialize_cli_cmds): Define the new convenience functions.
2467 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2468 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2469
2470 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2471
2472 * agent.c (set_can_use_agent): When the setting is turned on,
2473 look up agent symbols if we don't have them yet.
2474 (agent_new_objfile): Don't look up agent symbols when the agent
2475 setting is off.
2476
2477 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2478
2479 * config.in: Regenerate.
2480
2481 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2482
2483 * configure: Regenerate.
2484 * configure.ac: Check for strerror_r.
2485 * gdbsupport/common-utils.h (safe_strerror): Change return value
2486 to const char * and document that this function is now threadsafe.
2487 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2488 thread_local and call strerror_r, if available.
2489 * utils.c (perror_string): Update.
2490 (print_sys_errmsg): Update.
2491
2492 2019-10-31 Luis Machado <luis.machado@linaro.org>
2493
2494 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2495 objfile_key.
2496 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2497 objfile to fetch per-bfd data.
2498 (arm_find_exidx_entry): Likewise.
2499
2500 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2501
2502 * gdbsupport/agent.c (debug_agent): Change type to bool.
2503 (use_agent): Likewise.
2504 (all_agent_symbols_look_up): Likewise.
2505 (agent_loaded_p): Change return value to bool.
2506 (agent_look_up_symbols): Update.
2507 (agent_capability_check): Change return value to bool.
2508 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2509 (debug_agent): Change type to bool.
2510 (use_agent): Likewise.
2511 (agent_capability_check): Change return value to bool.
2512
2513 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2514
2515 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2516 (build_minimal_symbol_hash_tables): Code to clear the table moved
2517 to clear_minimal_symbol_hash_tables.
2518 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2519 when needed.
2520
2521 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2522
2523 * infcmd.c: Remove includes.
2524 * infrun.c: Remove includes.
2525
2526 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2529 (grow_vect): Remove declaration.
2530 (ada_type_of_array): Remove declaration.
2531 (ada_update_initial_language): Remove declaration.
2532 (ada_fold_name): Remove declaration.
2533 (ada_fill_in_ada_prototype): Remove declaration.
2534 (user_select_syms): Remove declaration.
2535 (get_selections): Remove declaration.
2536 (ada_tag_type): Remove declaration.
2537 (ada_value_tag): Remove declaration.
2538 (ada_is_others_clause): Remove declaration.
2539 (ada_in_variant): Remove declaration.
2540 (ada_value_struct_elt): Remove declaration.
2541 (ada_attribute_name): Remove declaration.
2542 (ada_system_address_type): Remove declaration.
2543 * ada-lang.c (ada_watch_location_expression): Make static.
2544 (GROW_VECT): Move here from ada-lang.h.
2545 (grow_vect): Make static.
2546 (ada_update_initial_language): Make static.
2547 (ada_fold_name): Make static.
2548 (ada_type_of_array): Make static.
2549 (encoded_ordered_before): Move up.
2550 (sort_choices): Move up.
2551 (print_signatures): Move up.
2552 (ada_print_symbol_signature): Move up.
2553 (get_selections): Move up and make static.
2554 (user_select_syms): Move up and make static.
2555 (ada_value_struct_elt): Move up and make static.
2556 (ada_tag_type): Make static.
2557 (ada_value_tag): Make static.
2558 (ada_is_others_clause): Make static.
2559 (ada_in_variant): Make static.
2560 (ada_attribute_name): Make static.
2561
2562 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * ada-lang.c: Remove includes.
2565 * ada-typeprint.c: Remove includes.
2566 * ada-valprint.c: Remove includes.
2567
2568 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2569
2570 * addrmap.c: Add static assertions of type size, moved from
2571 _initialize_addrmap.
2572 (_initialize_addrmap): Remove.
2573
2574 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2575
2576 * coffread.c (record_minimal_symbol): Update.
2577 (process_coff_symbol): Update.
2578 * dbxread.c (read_dbx_symtab): Update.
2579 * dwarf2read.c (add_partial_symbol): Update.
2580 (fixup_go_packaging): Update.
2581 (load_partial_dies): Update.
2582 (new_symbol): Update.
2583 * elfread.c (record_minimal_symbol): Change signature to use
2584 gdb::string_view instead of name+len.
2585 (elf_symtab_read): Update.
2586 (elf_rel_plt_read): Update.
2587 * mdebugread.c (parse_partial_symbols): Update.
2588 (handle_psymbol_enumerators): Update.
2589 (new_symbol): Update.
2590 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2591 to use gdb::string_view instead of name+len.
2592 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2593 * psympriv.h (add_psymbol_to_list): Likewise.
2594 * psymtab.c (add_psymbol_to_bcache): Likewise.
2595 (add_psymbol_to_list): Likewise.
2596 * stabsread.c (define_symbol): Update.
2597 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2598 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2599 (symbol_set_names): Likewise.
2600 * xcoffread.c (scan_xcoff_symtab): Update.
2601
2602 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2603
2604 * symtab.h (symbol_set_names): Document that copy_name must be
2605 set to true for non-nullterminated strings.
2606 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2607 linkage_name if the entry was not found and we need to demangle.
2608
2609 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2610
2611 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2612 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2613 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2614 * gdbsupport/gdb_binary_search.h: New file.
2615
2616 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2617
2618 * NEWS: Mention new --with-system-gdbinit-dir option.
2619 * config.in: Regenerate.
2620 * configure: Regenerate.
2621 * configure.ac: Add new option --with-system-gdbinit-dir.
2622 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2623 for a ".gdb" suffix.
2624 * main.c (get_init_files): Change system_gdbinit argument to
2625 a vector and return the files in SYSTEM_GDBINIT_DIR in
2626 addition to SYSTEM_GDBINIT.
2627 (captured_main_1): Update.
2628 (print_gdb_help): Update.
2629 * top.c (print_gdb_configuration): Also print the value of
2630 SYSTEM_GDBINIT_DIR.
2631
2632 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2633
2634 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2635 that takes gdb::string_view arguments.
2636
2637 2019-10-26 Tom de Vries <tdevries@suse.de>
2638
2639 * aarch64-linux-tdep.c: Fix typos in comments.
2640 * aarch64-tdep.c: Same.
2641 * ada-lang.c: Same.
2642 * amd64-nat.c: Same.
2643 * arc-tdep.c: Same.
2644 * arch/aarch64-insn.c: Same.
2645 * block.c: Same.
2646 * breakpoint.h: Same.
2647 * btrace.h: Same.
2648 * c-varobj.c: Same.
2649 * cli/cli-decode.c: Same.
2650 * cli/cli-script.c: Same.
2651 * cli/cli-utils.h: Same.
2652 * coff-pe-read.c: Same.
2653 * coffread.c: Same.
2654 * compile/compile-cplus-symbols.c: Same.
2655 * compile/compile-object-run.c: Same.
2656 * completer.c: Same.
2657 * corelow.c: Same.
2658 * cp-support.c: Same.
2659 * demangle.c: Same.
2660 * dwarf-index-write.c: Same.
2661 * dwarf2-frame.c: Same.
2662 * dwarf2-frame.h: Same.
2663 * eval.c: Same.
2664 * frame-base.h: Same.
2665 * frame.h: Same.
2666 * gdbcmd.h: Same.
2667 * gdbtypes.h: Same.
2668 * gnu-nat.c: Same.
2669 * guile/scm-objfile.c: Same.
2670 * i386-tdep.c: Same.
2671 * i386-tdep.h: Same.
2672 * infcall.c: Same.
2673 * infcall.h: Same.
2674 * linux-nat.c: Same.
2675 * m68k-tdep.c: Same.
2676 * macroexp.c: Same.
2677 * memattr.c: Same.
2678 * mi/mi-cmd-disas.c: Same.
2679 * mi/mi-getopt.h: Same.
2680 * mi/mi-main.c: Same.
2681 * minsyms.c: Same.
2682 * nat/aarch64-sve-linux-sigcontext.h: Same.
2683 * objfiles.h: Same.
2684 * ppc-linux-nat.c: Same.
2685 * ppc-linux-tdep.c: Same.
2686 * ppc-tdep.h: Same.
2687 * progspace.h: Same.
2688 * prologue-value.h: Same.
2689 * python/py-evtregistry.c: Same.
2690 * python/py-instruction.h: Same.
2691 * record-btrace.c: Same.
2692 * record-full.c: Same.
2693 * remote.c: Same.
2694 * rs6000-tdep.c: Same.
2695 * ser-tcp.c: Same.
2696 * sol-thread.c: Same.
2697 * sparc-sol2-tdep.c: Same.
2698 * sparc64-tdep.c: Same.
2699 * stabsread.c: Same.
2700 * symfile.c: Same.
2701 * symtab.h: Same.
2702 * target.c: Same.
2703 * tracepoint.c: Same.
2704 * tui/tui-data.h: Same.
2705 * tui/tui-io.c: Same.
2706 * tui/tui-win.c: Same.
2707 * tui/tui.c: Same.
2708 * unittests/rsp-low-selftests.c: Same.
2709 * user-regs.h: Same.
2710 * utils.c: Same.
2711 * utils.h: Same.
2712 * valarith.c: Same.
2713 * valops.c: Same.
2714 * valprint.c: Same.
2715 * valprint.h: Same.
2716 * value.c: Same.
2717 * value.h: Same.
2718 * varobj.c: Same.
2719 * x86-nat.h: Same.
2720 * xtensa-tdep.c: Same.
2721
2722 2019-10-25 Ali Tamur <tamur@google.com>
2723
2724 * charset.c (find_charset_names): Reflect API change.
2725
2726 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2727
2728 * symtab.c (struct demangled_name_entry): Change demangled name
2729 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2730 part of the struct anymore.
2731 (symbol_set_names): No longer obstack allocate + copy the demangled
2732 name, just store the allocated name from bfd.
2733
2734 2019-10-25 Tom Tromey <tromey@adacore.com>
2735
2736 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2737 (bsearch_cie_cmp, add_cie): Remove.
2738 (find_cie): Reimplement.
2739 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2740 (dwarf2_build_frame_info): Update.
2741
2742 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2743
2744 PR gdb/25126
2745 * symfile.c (reread_symbols): Call forget_cached_source_info to
2746 clear the stale source cache.
2747
2748 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2749
2750 * configure: Regenerate.
2751 * configure.ac: Remove code that sets python_has_threads.
2752
2753 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2754
2755 * config.in: Regenerate.
2756 * configure: Regenerate.
2757 * configure.ac: Remove the code that uses sed to get the python
2758 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2759
2760 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2763 error paths.
2764
2765 2019-10-23 Tom Tromey <tom@tromey.com>
2766
2767 * arc-tdep.c: Remove ".." from include.
2768 * frv-tdep.c: Remove ".." from include.
2769 * lm32-tdep.c: Remove ".." from include.
2770 * microblaze-tdep.c: Remove ".." from include.
2771 * or1k-tdep.h: Remove ".." from include.
2772 * s12z-tdep.c: Remove ".." from include.
2773 * Makefile.in (OPCODES_CFLAGS): Add comment.
2774 (TOP_CFLAGS): New variable.
2775 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2776
2777 2019-10-23 Tom Tromey <tom@tromey.com>
2778
2779 * Makefile.in (READLINE_DIR): Update.
2780
2781 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2782
2783 * infcall.c (call_function_by_hand_dummy): Fix the function
2784 comment. And extract out a code section into...
2785 (reserve_stack_space): ...this new function.
2786
2787 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2788
2789 * infcall.c (value_arg_coerce): Remove an unused parameter.
2790 (call_function_by_hand_dummy): Update the call to
2791 'value_arg_coerce'.
2792
2793 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2794
2795 * infcall.c (call_function_by_hand_dummy): Refactor.
2796
2797 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2798
2799 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2800
2801 2019-10-23 Tom Tromey <tom@tromey.com>
2802
2803 * configure: Rebuild.
2804 * configure.ac: Don't check for sigprocmask.
2805 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2806
2807 2019-10-23 Tom Tromey <tom@tromey.com>
2808
2809 * configure: Rebuild.
2810 * acinclude.m4: Use m4_include, not sinclude.
2811
2812 2019-10-23 Tom de Vries <tdevries@suse.de>
2813
2814 PR breakpoints/24687
2815 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2816
2817 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2818
2819 * symtab.c (struct demangled_name_entry) <language>: Change from
2820 bitfield to regular variable.
2821
2822 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2823
2824 * symtab.c (struct demangled_name_entry): Add a constructor.
2825 (free_demangled_name_entry): New function to call the destructor
2826 for demangled_name_entry.
2827 (create_demangled_names_hash): Pass free_demangled_name_entry to
2828 htab_create_alloc.
2829 (symbol_set_names): Call placement new for demangled_name_entry.
2830 * utils.c: No longer include xxhash.h here, now that fast_hash
2831 is inlined in the header.
2832 * utils.h: Instead, include it here.
2833
2834 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2835
2836 * Makefile.in: Link with libxxhash.
2837 * config.in: Regenerate.
2838 * configure: Regenerate.
2839 * configure.ac: Search for libxxhash.
2840 * utils.c (fast_hash): Use xxhash if present.
2841
2842 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2843
2844 * utils.h (fast_hash): New function.
2845 * symtab.c (hash_demangled_name_entry): Call new function
2846 fast_hash.
2847
2848 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2849
2850 * symtab.c (struct demangled_name_entry): Change type of mangled
2851 to gdb::string_view. Also adds a constructor that takes the
2852 mangled name.
2853 (hash_demangled_name_entry): Update.
2854 (eq_demangled_name_entry): Update.
2855 (free_demangled_name_entry): New function to call the destructor
2856 now that this is not a POD anymore.
2857 (create_demangled_names_hash): Pass free_demangled_name_entry to
2858 htab_create_alloc.
2859 (symbol_set_names): Update.
2860
2861 2019-10-21 Ali Tamur <tamu@google.com>
2862
2863 * dwarf2read.c (dir_index): Change type.
2864 (file_name_index): Likewise.
2865 (line_header::include_dir_at): Change comment and implementation on
2866 whether it is DWARF 5.
2867 (line_header::is_valid_file_index): New function.
2868 (line_header::file_name_at): Change comment and implementation on
2869 whether it is DWARF 5.
2870 (line_header::file_names): Change to private field renamed as
2871 m_file_names and introduce a new accessor method.
2872 (line_header::file_names_size): New method.
2873 (line_header::include_dirs): Change to private field and rename as
2874 m_include_dirs.
2875 (dw2_get_file_names_reader): Define local var at a smaller scope and
2876 reflect API change.
2877 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2878 (process_structure_scope): Likewise.
2879 (line_header::add_include_dir): Change message and reflect renaming.
2880 (line_header::add_file_name): Likewise.
2881 (read_formatted_entries): Handle DW_FORM_data16.
2882 (dwarf_decode_line_header): Fix line header length calculation.
2883 (psymtab_include_file_name): Change comment and API.
2884 (lnp_state_machine::m_file): Update comment and reflect type change.
2885 (lnp_state_machine::record_line): Reflect type change.
2886 (dwarf_decode_lines): Reflect API change.
2887 (file_file_name): Likewise.
2888 (file_full_name): Likewise.
2889
2890 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2893
2894 2019-10-21 Tom Tromey <tom@tromey.com>
2895
2896 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2897
2898 2019-10-21 Tom Tromey <tom@tromey.com>
2899
2900 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2901 NM_H. Use AC_CONFIG_LINKS.
2902 * configure: Rebuild.
2903 * Makefile.in (NM_H): New variable.
2904 (generated_files): Add NM_H. Remove gcore.
2905 (nm.h, stamp-nmh): New targets.
2906
2907 2019-10-20 Tom Tromey <tom@tromey.com>
2908
2909 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2910 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2911 obsolete comment.
2912 (put_objfile_before): Now static.
2913
2914 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2915
2916 * gdbsupport/common-utils.h (startswith): Change return type to
2917 bool.
2918
2919 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2920
2921 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2922 * breakpoint.c (bp_locations_compare): Rename to...
2923 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2924 (update_global_location_list): Use std::sort instead of qsort.
2925 * buildsym.c (compare_line_numbers): Rename to...
2926 (lte_is_less_than): ...this, and change to std::sort semantics.
2927 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2928 instead of qsort.
2929 * disasm.c (compare_lines): Rename to...
2930 (line_is_less_than): ...this, and change to std::sort semantics.
2931 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2932 of qsort.
2933 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2934 (fde_is_less_than): ...this, and change to std::sort semantics.
2935 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2936 * mdebugread.c (compare_blocks):
2937 (block_is_less_than): ...this, and change to std::sort semantics.
2938 (sort_blocks): Call std::sort instead of qsort.
2939 * objfiles.c (qsort_cmp): Rename to...
2940 (sort_cmp): ...this, and change to std::sort semantics.
2941 (update_section_map): Call std::sort instead of qsort.
2942 * remote.c (compare_pnums): Remove.
2943 (map_regcache_remote_table): Call std::sort instead of qsort.
2944 * utils.c (compare_positive_ints): Remove.
2945 * utils.h (compare_positive_ints): Remove.
2946 * xcoffread.c (compare_lte): Remove.
2947 (arrange_linetable): Call std::sort instead of qsort.
2948
2949 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2950
2951 * symfile.c (init_entry_point_info): Fix typo.
2952 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2953
2954 2019-10-18 Tom de Vries <tdevries@suse.de>
2955
2956 * aarch64-tdep.c: Fix typos in comments.
2957 * ada-lang.c: Same.
2958 * ada-tasks.c: Same.
2959 * alpha-tdep.c: Same.
2960 * alpha-tdep.h: Same.
2961 * amd64-nat.c: Same.
2962 * amd64-windows-tdep.c: Same.
2963 * arc-tdep.c: Same.
2964 * arc-tdep.h: Same.
2965 * arch-utils.c: Same.
2966 * arm-nbsd-tdep.c: Same.
2967 * arm-tdep.c: Same.
2968 * ax-gdb.c: Same.
2969 * blockframe.c: Same.
2970 * btrace.c: Same.
2971 * c-varobj.c: Same.
2972 * coff-pe-read.c: Same.
2973 * coffread.c: Same.
2974 * cris-tdep.c: Same.
2975 * darwin-nat.c: Same.
2976 * dbxread.c: Same.
2977 * dcache.c: Same.
2978 * disasm.c: Same.
2979 * dtrace-probe.c: Same.
2980 * dwarf-index-write.c: Same.
2981 * dwarf2-frame-tailcall.c: Same.
2982 * dwarf2-frame.c: Same.
2983 * dwarf2read.c: Same.
2984 * eval.c: Same.
2985 * exceptions.c: Same.
2986 * fbsd-tdep.c: Same.
2987 * findvar.c: Same.
2988 * frame.c: Same.
2989 * frv-tdep.c: Same.
2990 * gnu-v3-abi.c: Same.
2991 * go32-nat.c: Same.
2992 * h8300-tdep.c: Same.
2993 * hppa-tdep.c: Same.
2994 * i386-linux-tdep.c: Same.
2995 * i386-tdep.c: Same.
2996 * ia64-libunwind-tdep.c: Same.
2997 * ia64-tdep.c: Same.
2998 * infcmd.c: Same.
2999 * infrun.c: Same.
3000 * linespec.c: Same.
3001 * linux-nat.c: Same.
3002 * linux-thread-db.c: Same.
3003 * machoread.c: Same.
3004 * mdebugread.c: Same.
3005 * mep-tdep.c: Same.
3006 * mn10300-tdep.c: Same.
3007 * namespace.c: Same.
3008 * objfiles.c: Same.
3009 * opencl-lang.c: Same.
3010 * or1k-tdep.c: Same.
3011 * osabi.c: Same.
3012 * ppc-linux-nat.c: Same.
3013 * ppc-linux-tdep.c: Same.
3014 * ppc-sysv-tdep.c: Same.
3015 * printcmd.c: Same.
3016 * procfs.c: Same.
3017 * record-btrace.c: Same.
3018 * record-full.c: Same.
3019 * remote-fileio.c: Same.
3020 * remote.c: Same.
3021 * rs6000-tdep.c: Same.
3022 * s12z-tdep.c: Same.
3023 * score-tdep.c: Same.
3024 * ser-base.c: Same.
3025 * ser-go32.c: Same.
3026 * skip.c: Same.
3027 * sol-thread.c: Same.
3028 * solib-svr4.c: Same.
3029 * solib.c: Same.
3030 * source.c: Same.
3031 * sparc-nat.c: Same.
3032 * sparc-sol2-tdep.c: Same.
3033 * sparc-tdep.c: Same.
3034 * sparc64-tdep.c: Same.
3035 * stabsread.c: Same.
3036 * stack.c: Same.
3037 * symfile.c: Same.
3038 * symtab.c: Same.
3039 * target-descriptions.c: Same.
3040 * target-float.c: Same.
3041 * thread.c: Same.
3042 * utils.c: Same.
3043 * valops.c: Same.
3044 * valprint.c: Same.
3045 * value.c: Same.
3046 * varobj.c: Same.
3047 * windows-nat.c: Same.
3048 * xcoffread.c: Same.
3049 * xstormy16-tdep.c: Same.
3050 * xtensa-tdep.c: Same.
3051
3052 2019-10-17 Tom Tromey <tromey@adacore.com>
3053
3054 * configure: Rebuild.
3055 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3056 in AC_CONFIG_FILES invocation.
3057 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3058 new-style config.status invocation.
3059
3060 2019-10-17 Tom de Vries <tdevries@suse.de>
3061
3062 * arm-nbsd-nat.c: Fix typos in comments.
3063 * arm-tdep.c: Same.
3064 * darwin-nat-info.c: Same.
3065 * dwarf2read.c: Same.
3066 * elfread.c: Same.
3067 * event-top.c: Same.
3068 * findvar.c: Same.
3069 * gdbtypes.c: Same.
3070 * hppa-tdep.c: Same.
3071 * i386-tdep.c: Same.
3072 * jit.c: Same.
3073 * main.c: Same.
3074 * mdebugread.c: Same.
3075 * moxie-tdep.c: Same.
3076 * nto-procfs.c: Same.
3077 * osabi.c: Same.
3078 * ppc-linux-tdep.c: Same.
3079 * remote.c: Same.
3080 * riscv-tdep.c: Same.
3081 * s390-tdep.c: Same.
3082 * sh-tdep.c: Same.
3083 * sparc-linux-tdep.c: Same.
3084 * sparc-nat.c: Same.
3085 * stack.c: Same.
3086 * target-descriptions.c: Same.
3087 * top.c: Same.
3088 * varobj.c: Same.
3089
3090 2019-10-16 Tom Tromey <tom@tromey.com>
3091
3092 * objfiles.h (struct objfile) <original_name>: Now const.
3093
3094 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3095
3096 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3097 pass on to sigsetjmp's second argument.
3098 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3099
3100 2019-10-16 Keith Seitz <keiths@redhat.com>
3101
3102 PR gdb/23567
3103 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3104 sections whose size is greater than the file size.
3105
3106 2019-10-16 Jim Wilson <jimw@sifive.com>
3107
3108 * riscv-tdep.c (riscv_gcc_target_options): New.
3109 (riscv_gnu_triplet_regexp): New.
3110 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3111 set_gdbarch_gnu_triplet_regexp.
3112
3113 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3114
3115 * Makefile.in: Add xml-builtin.h.
3116 * features/feature_to_c.sh: Add an include for xml-builtin.h
3117 to ensure that the compiler checks that the types match.
3118 * xml-builtin.h: New file.
3119 * xml-support.c (fetch_xml_builtin): Add missing const.
3120 * xml-support.h: Remove declaration of xml_builtins.
3121
3122 2019-10-16 Tom de Vries <tdevries@suse.de>
3123
3124 PR tdep/25096
3125 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3126 (amd64_classify_aggregate): ... here.
3127 (amd64_classify_aggregate_field): Handled fiels of nested structs
3128 recursively.
3129
3130 2019-10-16 Tom de Vries <tdevries@suse.de>
3131
3132 PR tdep/24104
3133 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3134 that handles 'theclass'.
3135
3136 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3137
3138 * linespec.c (decode_digits_ordinary): Update comment.
3139 * make-target-delegates: No longer need to handle VEC case.
3140 * memrange.c (normalize_mem_ranges): Update comment.
3141 * namespace.c (add_using_directive): Update comment.
3142 * objc-lang.c (uniquify_strings): Update comment.
3143 * ppc-linux-nat.c (struct thread_points): Update comment.
3144 * probe.h (find_probes_in_objfile): Update comment.
3145 * target.h (enum flash_preserve_mode): Update comment.
3146 * varobj.c (varobj_restrict_range): Update comment.
3147 * varobj.h (varobj_list_children): Update comment.
3148
3149 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3150
3151 * Makefile.in: Remove references to vec.h and vec.c.
3152 * aarch64-tdep.c: No longer include vec.h.
3153 * ada-lang.c: Likewise.
3154 * ada-lang.h: Likewise.
3155 * arm-tdep.c: Likewise.
3156 * ax.h: Likewise.
3157 * breakpoint.h: Likewise.
3158 * charset.c: Likewise.
3159 * cp-support.h: Likewise.
3160 * dtrace-probe.c: Likewise.
3161 * dwarf2read.c: Likewise.
3162 * extension.h: Likewise.
3163 * gdb_bfd.c: Likewise.
3164 * gdbsupport/gdb_vecs.h: Likewise.
3165 * gdbsupport/vec.c: Remove.
3166 * gdbsupport/vec.h: Remove.
3167 * gdbthread.h: Likewise.
3168 * guile/scm-type.c: Likewise.
3169 * inline-frame.c: Likewise.
3170 * machoread.c: Likewise.
3171 * memattr.c: Likewise.
3172 * memrange.h: Likewise.
3173 * namespace.h: Likewise.
3174 * nat/linux-btrace.h: Likewise.
3175 * osdata.c: Likewise.
3176 * parser-defs.h: Likewise.
3177 * progspace.h: Likewise.
3178 * python/py-type.c: Likewise.
3179 * record-btrace.c: Likewise.
3180 * rust-exp.y: Likewise.
3181 * solib-target.c: Likewise.
3182 * stap-probe.c: Likewise.
3183 * target-descriptions.c: Likewise.
3184 * target-memory.c: Likewise.
3185 * target.h: Likewise.
3186 * varobj.c: Likewise.
3187 * varobj.h: Likewise.
3188 * xml-support.h: Likewise.
3189
3190 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3193 Update for new std::vector based implementation.
3194 (process_psymtab_comp_unit_reader): Likewise.
3195 (scan_partial_symbols): Likewise.
3196 (recursively_compute_inclusions): Likewise.
3197 (compute_compunit_symtab_includes): Likewise.
3198 (process_imported_unit_die): Likewise.
3199 (queue_and_load_dwo_tu): Likewise.
3200 (follow_die_sig_1): Likewise.
3201 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3202 (typedef dwarf2_per_cu_ptr): Remove.
3203 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3204 function.
3205 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3206 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3207 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3208 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3209 std::vector.
3210
3211 2019-10-15 Tom Tromey <tromey@adacore.com>
3212
3213 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3214 TID.
3215
3216 2019-10-15 Tom Tromey <tromey@adacore.com>
3217
3218 * windows-nat.c (windows_nat_target::fetch_registers)
3219 (windows_nat_target::store_registers): Rename "pid" to "tid".
3220
3221 2019-10-15 Tom Tromey <tromey@adacore.com>
3222
3223 * gdbarch.h, gdbarch.c: Rebuild.
3224 * gdbarch.sh (gcc_target_options): Change return type to
3225 std::string.
3226 * compile/compile.c (get_args): Update.
3227 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3228 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3229 std::string.
3230 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3231 std::string.
3232 * arch-utils.c (default_gcc_target_options): Return std::string.
3233 * arch-utils.h (default_gcc_target_options): Return std::string.
3234 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3235
3236 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3237
3238 * breakpoint.c (breakpoint_chain): Make static.
3239 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3240 of accessing breakpoint_chain.
3241
3242 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3243
3244 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3245 to a gdb::function_view and return value to bool.
3246 * breakpoint.h (iterate_over_breakpoints): Likewise.
3247 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3248 (pop_dummy_frame): Update.
3249 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3250 (gdbscm_breakpoints): Update.
3251 * python/py-breakpoint.c (build_bp_list): Update.
3252 (gdbpy_breakpoints): Update.
3253 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3254 Update.
3255 (bpfinishpy_handle_stop): Update.
3256 (bpfinishpy_handle_exit): Update.
3257 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3258 (svr4_update_solib_event_breakpoints): Update.
3259
3260 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3261
3262 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3263 when unwrapping single-field structs.
3264
3265 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3266
3267 * dwarf2read.c: Remove includes.
3268
3269 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3270
3271 * ui-out.c (ui_out::call_do_message): Silence
3272 -Wformat-nonliteral warning.
3273
3274 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3275
3276 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3277 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3278 include: readline/tilde.h.
3279
3280 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3281
3282 * remote.c (remote_target::get_trace_status): Remove declaration of
3283 trace_regblock_size.
3284
3285 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3286
3287 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3288 (show_user): Remove declaration of cmdlist.
3289 * cli/cli-cmds.h (max_user_call_depth): Declare.
3290 * cli/cli-script.c (execute_user_command): Remove declaration
3291 of max_user_call_depth.
3292
3293 2019-10-11 Jim Wilson <jimw@sifive.com>
3294
3295 * gdbsupport/print-utils.h (pulongest): Fix comment.
3296 (plongest): Likewise.
3297 (phex): Add missing comment, mention leading zeros.
3298 (phex_nz): Add mention of no leading zeros to comment.
3299
3300 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3301 plongest instead of unsigned long long cast.
3302
3303 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3304
3305 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3306 for external_editor_command and gdbtk_test.
3307
3308 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3309
3310 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3311 * varobj.c (varobjdebug): Move comment to...
3312 * varobj.h (varobjdebug): ...here, and declare.
3313
3314 2019-10-09 Tom Tromey <tom@tromey.com>
3315
3316 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3317 erase_data_content.
3318
3319 2019-10-09 Tom Tromey <tom@tromey.com>
3320
3321 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3322 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3323 * tui/tui-command.c (tui_cmd_window::resize)
3324 (tui_refresh_cmd_win): Update.
3325 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3326 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3327 * tui/tui-data.c (~tui_gen_win_info): Remove.
3328 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3329 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3330 (tui_redisplay_readline, tui_mld_flush)
3331 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3332 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3333 (tui_data_window::erase_data_content)
3334 (tui_data_item_window::rerender)
3335 (tui_data_item_window::refresh_window): Update.
3336 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3337 (box_win, tui_gen_win_info::make_window)
3338 (tui_gen_win_info::make_visible): Update.
3339 (tui_delete_win): Remove.
3340 * tui/tui-winsource.c
3341 (tui_source_window_base::do_erase_source_content): Update.
3342 (tui_show_source_line, tui_source_window_base::update_tab_width)
3343 (tui_source_window_base::update_exec_info): Update.
3344 * tui/tui-data.h (struct curses_deleter): New.
3345 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3346 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3347
3348 2019-10-09 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3351
3352 2019-10-09 Tom Tromey <tom@tromey.com>
3353
3354 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3355 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3356
3357 2019-10-09 Tom Tromey <tom@tromey.com>
3358
3359 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3360 window height directly.
3361 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3362 declare.
3363 * tui/tui-layout.c (tui_default_win_height): Remove.
3364 (tui_default_win_viewport_height): Remove.
3365
3366 2019-10-09 Tom Tromey <tom@tromey.com>
3367
3368 * tui/tui.h: Remove comments.
3369
3370 2019-10-09 Tom de Vries <tdevries@suse.de>
3371
3372 * python/lib/gdb/printer/bound_registers.py: Use
3373 '^builtin_type_bound128' as regexp argument for
3374 add_builtin_pretty_printer.
3375
3376 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3377
3378 * guile/guile.c (guile_extension_script_ops): Remove forward
3379 declaration and mark as static.
3380 (guile_script_ops): Likewise.
3381 (extension_language_guile): Move further down in the file so
3382 it can reference the definitions for guile_{extension_,}script_ops.
3383
3384 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3385
3386 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3387 except SORTL, DFLTCC, and KDSA.
3388
3389 2019-10-08 Tom Tromey <tromey@adacore.com>
3390
3391 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3392 (struct safe_symbol_file_add_args): Remove.
3393
3394 2019-10-08 Tom Tromey <tromey@adacore.com>
3395
3396 * windows-nat.c: Don't include buildsym-legacy.h.
3397
3398 2019-10-08 Tom Tromey <tromey@adacore.com>
3399
3400 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3401
3402 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3403
3404 * gdbtypes.c (overload_debug): Move comment to header.
3405 * gdbtypes.h (overload_debug): Declare.
3406 * valops.c: Remove declaration of overload_debug, instead
3407 include gdbtypes.h.
3408
3409 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3410
3411 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3412 through _().
3413 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3414 move comment...
3415 * language.h (lang_frame_mismatch_warn): ... here. Also add
3416 declaration.
3417 * top.c (lang_frame_mismatch_warn): Remove declaration.
3418 (check_frame_language_change): Pass lang_frame_mismatch_warn
3419 through _().
3420
3421 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3422
3423 * c-lang.h (vtbl_ptr_name): Declare.
3424 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3425 it from the header.
3426 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3427
3428 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3429
3430 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3431 gdb_static_assert.
3432
3433 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3434
3435 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3436 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3437 * ctfread.c: New file.
3438 * ctfread.h: New file.
3439 * elfread.c: Include ctfread.h.
3440 (struct elfinfo text_p): New member ctfsect.
3441 (elf_locate_sections): Mark CTF section.
3442 (elf_symfile_read): Call elfctf_build_psymtabs.
3443 * Makefile.in (LIBCTF): Add.
3444 (CLIBS): Use it.
3445 (CDEPS): Likewise.
3446 (DIST): Add ctfread.c.
3447
3448 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * ctfread.c (struct nextfield): Renamed to ...
3451 (struct ctf_nextfield): ... this.
3452 (struct field_info): Renamed to ...
3453 (strut ctf_field_info): ... this.
3454 (attach_fields_to_type): Update for renamed structures.
3455 (ctf_add_member_cb): Likewise.
3456 (ctf_add_enum_member_cb): Likewise.
3457 (process_struct_members): Likewise.
3458 (process_enum_type): Likewise.
3459
3460 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3461
3462 * tracectf.h: Rename, was ctf.h.
3463 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3464 * tracefile.c: Likewise.
3465 * tracepoint.c: Remove unused include ctf.h.
3466 * mi/mi-main.c: Likewise.
3467 * Makefile.in Replace ctf.c with tracectf.c.
3468
3469 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3470
3471 * version.in: Change version number to "9.0.50.DATE-git".
3472
3473 2019-10-03 Tom Tromey <tom@tromey.com>
3474
3475 PR rust/24976:
3476 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3477
3478 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3479
3480 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3481 cp_search_name_hash.
3482 * NEWS: Add entry about nested function support.
3483
3484 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3485 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3488 for nested static variables when searchin VAR_DOMAIN.
3489 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3490 global scope, update comment.
3491 (add_partial_subprogram): Call add_partial_subprogram recursively
3492 for nested subroutines when processinng Fortran.
3493 (load_partial_dies): Process the child entities of a subprogram
3494 when processing Fortran.
3495 (partial_die_parent_scope): Handle building scope
3496 for Fortran nested functions.
3497 (process_die): Record that nested functions have a scope.
3498 (new_symbol): Always record Fortran subprograms on the global
3499 symbol list.
3500 (determine_prefix): How to build the prefix for Fortran
3501 subprograms.
3502
3503 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3504
3505 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3506 have just sent the thread a SIGSTOP and are waiting for it to
3507 arrive.
3508
3509 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * btrace.c (btrace_add_pc): Remove whitespace before the template
3512 parameter in 'std::vector <...>'.
3513 (parse_xml_btrace_block): Likewise.
3514 (btrace_maint_decode_pt): Likewise.
3515 (btrace_maint_update_packets): Likewise.
3516 (btrace_maint_print_packets): Likewise.
3517 * btrace.h (struct btrace_maint_info): Likewise.
3518 * dwarf2read.c (struct type_unit_group): Likewise.
3519 (build_type_psymtabs_reader): Likewise.
3520 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3521 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3522 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3523
3524 2019-10-03 Tom de Vries <tdevries@suse.de>
3525
3526 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3527 the first line of the help text for set/show style metadata.
3528
3529 2019-10-02 Tom Tromey <tromey@adacore.com>
3530
3531 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3532 * gdbsupport/common-inferior.c: New file.
3533 * infcmd.c (startup_with_shell): Don't define.
3534 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3535 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3536 * inferior.h (startup_with_shell): Don't declare.
3537
3538 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3539
3540 * gdbsupport/gdb_assert.h: Include errors.h.
3541 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3542
3543 2019-10-02 Tom Tromey <tromey@adacore.com>
3544
3545 * NEWS: Add $_ada_exception entry.
3546 * ada-lang.c (struct ada_catchpoint): Add constructor.
3547 <m_kind>: New member.
3548 (allocate_location_exception, re_set_exception): Remove
3549 "ex" parameter.
3550 (should_stop_exception): Compute $_ada_exception.
3551 (check_status_exception, print_it_exception)
3552 (print_one_exception, print_mention_exception): Remove
3553 "ex" parameter.
3554 (allocate_location_catch_exception, re_set_catch_exception)
3555 (check_status_exception, print_it_catch_exception)
3556 (print_one_catch_exception, print_mention_catch_exception)
3557 (print_recreate_catch_exception)
3558 (allocate_location_catch_exception_unhandled)
3559 (re_set_catch_exception_unhandled)
3560 (check_status_exception, print_it_catch_exception_unhandled)
3561 (print_one_catch_exception_unhandled)
3562 (print_mention_catch_exception_unhandled)
3563 (print_recreate_catch_exception_unhandled)
3564 (allocate_location_catch_assert, re_set_catch_assert)
3565 (check_status_assert, print_it_catch_assert)
3566 (print_one_catch_assert, print_mention_catch_assert)
3567 (print_recreate_catch_assert)
3568 (allocate_location_catch_handlers, re_set_catch_handlers)
3569 (check_status_handlers, print_it_catch_handlers)
3570 (print_one_catch_handlers, print_mention_catch_handlers)
3571 (print_recreate_catch_handlers): Remove.
3572 (create_ada_exception_catchpoint): Update.
3573 (initialize_ada_catchpoint_ops): Update.
3574
3575 2019-10-02 Tom Tromey <tromey@adacore.com>
3576
3577 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3578 (create_excep_cond_exprs): Simplify exception string computation.
3579 (ada_exception_catchpoint_cond_string): Likewise.
3580
3581 2019-10-02 Tom Tromey <tromey@adacore.com>
3582
3583 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3584 * ada-lang.c (lesseq_defined_than): Handle
3585 LOC_STATIC.
3586 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3587 parameter.
3588 (dwarf2_has_info): Likewise.
3589 (new_symbol): Set maybe_copied on symbol when
3590 appropriate.
3591 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3592 parameter.
3593 <can_copy>: New member.
3594 * elfread.c (record_minimal_symbol): Set maybe_copied
3595 on symbol when appropriate.
3596 (elf_symfile_read): Update call to dwarf2_has_info.
3597 * minsyms.c (lookup_minimal_symbol_linkage): New
3598 function.
3599 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3600 * symtab.c (get_symbol_address, get_msymbol_address):
3601 New functions.
3602 * symtab.h (get_symbol_address, get_msymbol_address):
3603 Declare.
3604 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3605 maybe_copied.
3606 (struct symbol, struct minimal_symbol) <maybe_copied>:
3607 New member.
3608
3609 2019-10-02 Tom Tromey <tromey@adacore.com>
3610
3611 * source.c (struct current_source_location): New.
3612 (current_source_key): New global.
3613 (current_source_symtab, current_source_line)
3614 (current_source_pspace): Remove.
3615 (get_source_location): New function.
3616 (get_current_source_symtab_and_line)
3617 (set_default_source_symtab_and_line)
3618 (set_current_source_symtab_and_line)
3619 (clear_current_source_symtab_and_line, select_source_symtab)
3620 (info_source_command, print_source_lines_base)
3621 (info_line_command, search_command_helper, _initialize_source):
3622 Update.
3623
3624 2019-10-02 Tom Tromey <tromey@adacore.com>
3625
3626 * source.c (select_source_symtab): Don't call
3627 decode_line_with_current_source.
3628
3629 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3630
3631 * symtab.c (lookup_global_symbol): Search global block.
3632
3633 2019-10-02 Tom Tromey <tromey@adacore.com>
3634
3635 * coffread.c (process_coff_symbol): Update.
3636 * dwarf2read.c (var_decode_location, new_symbol): Update.
3637 * mdebugread.c (parse_symbol): Update.
3638 * objfiles.c (relocate_one_symbol): Update.
3639 * stabsread.c (define_symbol, fix_common_block)
3640 (scan_file_globals): Update.
3641 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3642 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3643 * xcoffread.c (process_xcoff_symbol): Update.
3644
3645 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3646
3647 * MAINTAINERS: Update my email address.
3648
3649 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3652 std::vector.
3653 (build_type_psymtabs_reader): Update for std::vector.
3654 (build_type_psymtab_dependencies): Likewise.
3655 * dwarf2read.h: Remove use of DEF_VEC_P.
3656 (typedef sig_type_ptr): Delete.
3657
3658 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3661 to std::vector.
3662 (btrace_maint_decode_pt): Likewise, and move allocation of the
3663 vector outside of the loop.
3664 (btrace_maint_update_packets): Update to handle change from VEC to
3665 std::vector.
3666 (btrace_maint_print_packets): Likewise.
3667 (maint_info_btrace_cmd): Likewise.
3668 * btrace.h: Remove use of DEF_VEC_O.
3669 (typedef btrace_pt_packet_s): Delete.
3670 (struct btrace_maint_info) <packets>: Change fromm VEC to
3671 std::vector.
3672 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3673
3674 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3675
3676 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3677 make accesses into the vector constant references.
3678 (btrace_add_pc): Update for std::vector.
3679 (btrace_stitch_bts): Likewise.
3680 (parse_xml_btrace_block): Likewise.
3681 (btrace_maint_update_packets): Likewise.
3682 (btrace_maint_print_packets): Likewise.
3683 (maint_info_btrace_cmd): Likewise.
3684 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3685 std::vector.
3686 (btrace_data::empty): Likewise.
3687 (btrace_data_append): Likewise.
3688 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3689 (typedef btrace_block_s): Delete.
3690 (struct btrace_block): Add constructor.
3691 (struct btrace_data_bts) <blocks>: Change to std::vector.
3692 * nat/linux-btrace.c (perf_event_read_bts): Update for
3693 std::vector.
3694 (linux_read_bts): Likewise.
3695
3696 2019-10-01 Tom Tromey <tom@tromey.com>
3697
3698 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3699
3700 2019-10-01 Tom Tromey <tom@tromey.com>
3701
3702 * stack.c (print_frame, info_frame_command_core): Use
3703 styled_string.
3704 * linux-thread-db.c (try_thread_db_load_1)
3705 (try_thread_db_load_from_pdir_1): Use styled_string.
3706 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3707 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3708 (maybe_print_unsupported_script_warning)
3709 (maybe_print_script_not_found_warning): Use styled_string.
3710 * ada-lang.c (user_select_syms): Use styled_string.
3711
3712 2019-10-01 Tom Tromey <tom@tromey.com>
3713
3714 * p-lang.c (pascal_printstr): Use metadata style.
3715 * value.c (show_convenience): Use metadata style.
3716 * valprint.c (valprint_check_validity, val_print_optimized_out)
3717 (val_print_not_saved, val_print_unavailable)
3718 (val_print_invalid_address, generic_val_print, val_print)
3719 (value_check_printable, val_print_array_elements): Use metadata
3720 style.
3721 * ui-out.h (class ui_out) <field_fmt>: New overload.
3722 <do_field_fmt>: Add style parameter.
3723 * ui-out.c (ui_out::field_fmt): New overload.
3724 * typeprint.c (type_print_unknown_return_type)
3725 (val_print_not_allocated, val_print_not_associated): Use metadata
3726 style.
3727 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3728 parameter.
3729 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3730 * tracepoint.c (tvariables_info_1): Use metadata style.
3731 * stack.c (print_frame_arg, print_frame_info, print_frame)
3732 (info_frame_command_core): Use metadata style.
3733 * skip.c (info_skip_command): Use metadata style.
3734 * rust-lang.c (rust_print_enum): Use metadata style.
3735 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3736 metadata style.
3737 * python/py-framefilter.c (py_print_single_arg): Use metadata
3738 style.
3739 * printcmd.c (do_one_display, print_variable_and_value): Use
3740 metadata style.
3741 * p-valprint.c (pascal_val_print)
3742 (pascal_object_print_value_fields): Use metadata style.
3743 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3744 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3745 parameter.
3746 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3747 * m2-valprint.c (m2_print_long_set): Use metadata style.
3748 * m2-typeprint.c (m2_print_type): Use metadata style.
3749 * infcmd.c (print_return_value_1): Use metadata style.
3750 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3751 * f-valprint.c (info_common_command_for_block): Use metadata
3752 style.
3753 * f-typeprint.c (f_type_print_base): Use metadata style.
3754 * expprint.c (print_subexp_standard): Use metadata style.
3755 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3756 * cli/cli-style.h (class cli_style_option): Add constructor.
3757 (metadata_style): Declare.
3758 * cli/cli-style.c (metadata_style): New global.
3759 (_initialize_cli_style): Register metadata style.
3760 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3761 parameter.
3762 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3763 * c-typeprint.c (c_type_print_base_struct_union)
3764 (c_type_print_base_1): Use metadata style.
3765 * breakpoint.c (watchpoint_value_print)
3766 (print_one_breakpoint_location): Use metadata style.
3767 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3768 style.
3769 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3770 style.
3771 * ada-valprint.c (val_print_packed_array_elements, printstr)
3772 (print_field_values, ada_val_print_ref, ada_val_print): Use
3773 metadata style.
3774 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3775 style.
3776 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3777 style.
3778 * ada-lang.c (user_select_syms): Use metadata style.
3779
3780 2019-10-01 Tom Tromey <tom@tromey.com>
3781
3782 * cli/cli-cmds.c (pwd_command): Style output.
3783
3784 2019-10-01 Pedro Alves <palves@redhat.com>
3785 Tom Tromey <tom@tromey.com>
3786
3787 * symtab.c (print_symbol_info): Use %ps.
3788 (print_msymbol_info): Use %ps.
3789 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3790 * printcmd.c (print_variable_and_value): Use %ps.
3791 * macrocmd.c (show_pp_source_pos): Use %ps.
3792 * infrun.c (print_exited_reason): Use ui_out::message.
3793 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3794 (describe_other_breakpoints): Use ui_out::message and new
3795 formats.
3796 (say_where): Use new formats.
3797 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3798 and new formats.
3799
3800 2019-10-01 Pedro Alves <palves@redhat.com>
3801 Tom Tromey <tom@tromey.com>
3802
3803 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3804 (test_gdb_formats): New function.
3805 (run_tests): Call it.
3806 (test_format_specifier): Update.
3807 * utils.h (fputs_filtered): Update comment.
3808 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3809 (fputs_styled_unfiltered): Declare.
3810 * utils.c (fputs_styled_unfiltered): New function.
3811 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3812 (vfprintf_filtered): Update.
3813 (vfprintf_unfiltered, vprintf_filtered): Update.
3814 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3815 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3816 disallow_ui_out_field>: New constants.
3817 (enum class field_kind): New.
3818 (struct base_field_s, struct signed_field_s): New.
3819 (signed_field): New function.
3820 (struct string_field_s): New.
3821 (string_field): New function.
3822 (struct styled_string_s): New.
3823 (styled_string): New function.
3824 (class ui_out) <message>: Add comment.
3825 <vmessage, call_do_message>: New methods.
3826 <do_message>: Add style parameter.
3827 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3828 methods.
3829 (ui_out::message): Rewrite.
3830 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3831 parameter.
3832 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3833 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3834 gdb_extensions parameter.
3835 (class format_piece): Add parameter to constructor.
3836 (n_int_args): New field.
3837 * gdbsupport/format.c (format_pieces::format_pieces): Add
3838 gdb_extensions parameter. Handle '*'.
3839 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3840 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3841 vfprintf_styled_no_gdbfmt.
3842 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3843 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3844 unfiltered output.
3845 * ui-style.h (struct ui_file_style) <ptr>: New method.
3846
3847 2019-10-01 Tom Tromey <tom@tromey.com>
3848
3849 * unittests/format_pieces-selftests.c: Update. Add final format.
3850 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3851 empty literal pieces.
3852
3853 2019-10-01 Tom Tromey <tom@tromey.com>
3854
3855 * ui-out.h (enum class ui_out_style_kind): Remove.
3856 (class ui_out) <field_string, field_stsream, do_field_string>:
3857 Change type of "style".
3858 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3859 (ui_out::field_string): Update.
3860 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3861 of "style".
3862 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3863 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3864 * stack.c (print_frame_arg, print_frame_info, print_frame):
3865 Update.
3866 * source.c (print_source_lines_base): Update.
3867 * solib.c (info_sharedlibrary_command): Update.
3868 * skip.c (info_skip_command): Update.
3869 * record-btrace.c (btrace_call_history_src_line)
3870 (btrace_call_history): Update.
3871 * python/py-framefilter.c (py_print_frame): Update.
3872 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3873 "style".
3874 * mi/mi-out.c (mi_ui_out::do_table_header)
3875 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3876 (mi_ui_out::do_field_string): Update.
3877 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3878 Update.
3879 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3880 "style".
3881 * cli-out.c (cli_ui_out::do_table_header)
3882 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3883 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3884 (cli_ui_out::do_field_fmt): Update.
3885 * breakpoint.c (print_breakpoint_location): Update.
3886 (update_static_tracepoint): Update.
3887
3888 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3889
3890 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3891 conversion of gdb_datadir.
3892 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3893 remove not needed c_str ().
3894
3895 2019-09-30 Ali Tamur <tamur@google.com>
3896
3897 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3898 (dwarf2_string_attr): Likewise.
3899
3900 2019-09-30 Ali Tamur <tamur@google.com>
3901
3902 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3903 (process_full_type_unit): Likewise.
3904 (dump_die_shallow): Likewise.
3905 (cu_debug_loc_section): Likewise.
3906
3907 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3908
3909 * minsyms.c (compare_minimal_symbols): Rename to...
3910 (minimal_symbol_is_less_than): ...this, and adjust to STL
3911 conventions (return bool, take arguments as references)
3912 (minimal_symbol_reader::install): Call std::sort instead
3913 of qsort.
3914
3915 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3916
3917 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3918 hash and why.
3919 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3920 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3921
3922 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3923
3924 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3925 * psympriv.h (add_psymbol_to_list): Move comment here and update
3926 it.
3927
3928 2019-09-29 Tom de Vries <tdevries@suse.de>
3929
3930 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3931 Use $tmpdir/$(basename "$output_file").dwz instead of
3932 "${output_file}.dwz".
3933
3934 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3935
3936 PR gdb/25045
3937 * hppa-linux-nat.c: Include gdbarch.h.
3938
3939 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3940
3941 * blockframe.c (find_pc_partial_function): Change return type to bool.
3942 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3943 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3944 (stub_gnu_ifunc_resolve_name): Likewise.
3945 * symtab.c (compare_filenames_for_search): Likewise.
3946 (compare_glob_filenames_for_search): Likewise.
3947 (matching_obj_sections): Likewise.
3948 (symbol_matches_domain): Likewise.
3949 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3950 (find_line_pc): Change return type to bool.
3951 (find_line_pc_range): Likewise.
3952 (producer_is_realview): Likewise.
3953 * symtab.h (symbol_matches_domain): Likewise.
3954 (find_pc_partial_function): Likewise.
3955 (find_pc_line_pc_range): Likewise.
3956 (in_gnu_ifunc_stub): Likewise.
3957 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3958 (find_line_pc): Likewise.
3959 (find_line_pc_range): Likewise.
3960 (matching_obj_sections): Likewise.
3961 (find_line_symtab): Change out parameter to bool.
3962 (producer_is_realview): Change return type to bool.
3963 (compare_filenames_for_search): Likewise.
3964 (compare_glob_filenames_for_search): Likewise.
3965
3966 2019-09-26 Tom Tromey <tom@tromey.com>
3967
3968 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3969 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3970 * gdb_usleep.h: Remove.
3971 * gdb_usleep.c: Remove.
3972 * utils.c: Don't include gdb_usleep.h.
3973
3974 2019-09-26 Tom Tromey <tromey@adacore.com>
3975
3976 * python/py-type.c (type_to_type_object): Call check_typedef
3977 for stub types.
3978
3979 2019-09-26 Tom Tromey <tom@tromey.com>
3980
3981 * utils.h (initialize_utils): Don't declare.
3982 * top.c (gdb_init): Don't call initialize_utils.
3983 * utils.c (initialize_utils): Remove. Move contents...
3984 (_initialize_utils): ... here.
3985
3986 2019-09-25 Tom Tromey <tom@tromey.com>
3987
3988 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3989 * utils.h (make_hex_string): Don't declare.
3990 * utils.c (make_hex_string): Remove.
3991
3992 2019-09-24 Tom de Vries <tdevries@suse.de>
3993
3994 PR gdb/23815
3995 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3996 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3997
3998 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3999
4000 * NEWS: Mention new simulator port for PRU.
4001
4002 2019-09-23 Christian Biesinger <cbiesinger@google.com>
4003
4004 * ada-exp.y (write_object_remaining): Update.
4005 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4006 and eliminate the static buffer.
4007 (ada_decode_symbol): Update.
4008 (ada_la_decode): Update.
4009 (ada_sniff_from_mangled_name): Update.
4010 (is_valid_name_for_wild_match): Update.
4011 (ada_lookup_name_info::matches): Update and simplify.
4012 (name_matches_regex): Update.
4013 (ada_add_global_exceptions): Update.
4014 * ada-lang.h (ada_decode): Update signature.
4015 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4016 * dwarf-index-write.c (debug_names::insert): Update.
4017
4018 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4019
4020 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4021 formatting.
4022
4023 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4024
4025 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4026 Change "nonzero" to "true" in documentation.
4027
4028 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4029
4030 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4031 (_initialize_darwin_solib): Don't set
4032 darwin_so_ops.lookup_lib_global_symbol.
4033 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4034 set_gdbarch_iterate_over_objfiles_in_search_order.
4035 (elf_lookup_lib_symbol): Rename to...
4036 (svr4_iterate_over_objfiles_in_search_order): this, and update
4037 to iterate semantics.
4038 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4039 * solib.c (solib_global_lookup): Remove.
4040 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4041 (solib_global_lookup): Remove.
4042 * symtab.c (lookup_global_or_static_symbol): Remove call to
4043 solib_global_lookup.
4044
4045 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4046
4047 * NEWS: Move entries about default MI version now being
4048 version 3, and about the GDB/MI fix for multi-location
4049 breakpoints to the "since GDB 8.3" section.
4050
4051 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4052
4053 GDB 8.3.1 released.
4054
4055 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4056
4057 * NEWS: Mention that Cell/B.E. debugging support was removed.
4058 * MAINTAINERS: Remove spu target.
4059
4060 * config/djgpp/fnchange.lst: Remove entries for removed files.
4061
4062 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4063 spu-multiarch.o, and spu-tdep.o.
4064 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4065 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4066 spu-multiarch.c, and spu-tdep.c.
4067 * spu-linux-nat.c: Remove file.
4068 * spu-multiarch.c: Remove file.
4069 * spu-tdep.c: Remove file.
4070 * spu-tdep.h: Remove file.
4071 * solib-spu.c: Remove file.
4072 * solib-spu.h: Remove file.
4073
4074 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4075 * configure.nat (spu-linux): Remove.
4076 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4077 solib-multiarch.o from gdb_target_obs.
4078 (spu*-*-*): Remove.
4079
4080 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4081 feature flag.
4082 (ppc_linux_no_features): Update.
4083 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4084 Cell/B.E. support.
4085 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4086 (tdesc_powerpc_cell64l): Likewise.
4087 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4088 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4089 Cell/B.E. support.
4090 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4091 Do not include "features/rs6000/powerpc-cell32l.c" or
4092 "features/rs6000/powerpc-cell64l.c".
4093 (ppc_linux_spu_section): Remove.
4094 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4095 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4096 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4097 (ppc_linux_spe_context_lookup): Remove.
4098 (ppc_linux_spe_context_inferior_created): Remove.
4099 (ppc_linux_spe_context_solib_loaded): Remove.
4100 (ppc_linux_spe_context_solib_unloaded): Remove.
4101 (ppc_linux_spe_context): Remove.
4102 (struct ppu2spu_cache): Remove.
4103 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4104 (struct ppu2spu_data): Remove.
4105 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4106 ppu2spu_unwind): Remove.
4107 (ppc_linux_init_abi): Remove Cell/B.E. support.
4108 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4109
4110 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4111 (rs6000/powerpc-cell64l-expedite): Likewise
4112 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4113 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4114 rs6000/powerpc-cell64l.xml.
4115 * features/rs6000/powerpc-cell32l.xml: Remove.
4116 * features/rs6000/powerpc-cell64l.xml: Likewise.
4117 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4118 * features/rs6000/powerpc-cell64l.c: Likewise.
4119 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4120 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4121 * regformats/reg-spu.dat: Remove.
4122
4123 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4124 * corelow.c (struct spuid_list): Remove.
4125 (add_to_spuid_list): Remove.
4126 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4127 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4128 (remote_protocol_features): Remove associated entries.
4129 (_initialize_remote): No longer initialize them.
4130 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4131 * linux-nat.c (SPUFS_MAGIC): Remove.
4132 (linux_proc_xfer_spu): Remove.
4133 (spu_enumerate_spu_ids): Remove.
4134 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4135 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4136 (linux_make_corefile_notes): No longer call it.
4137
4138 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4139 (cooked_write_test): Likewise.
4140
4141 2019-09-20 Tom Tromey <tom@tromey.com>
4142
4143 * NEWS: Mention case-sensitivity of TUI commands.
4144 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4145 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4146 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4147
4148 2019-09-20 Tom Tromey <tom@tromey.com>
4149
4150 * tui/tui-source.c (tui_source_window::set_contents): Use
4151 make_unique_xstrdup.
4152 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4153 make_unique_xstrdup.
4154
4155 2019-09-20 Tom Tromey <tom@tromey.com>
4156
4157 * tui/tui-data.c: Remove separator comments.
4158 * tui/tui-layout.c: Remove separator comments.
4159 * tui/tui-win.c: Remove separator comments.
4160 * tui/tui-wingeneral.c: Remove separator comments.
4161
4162 2019-09-20 Tom Tromey <tom@tromey.com>
4163
4164 * tui/tui.h (strcat_to_buf): Don't declare.
4165 * tui/tui.c (strcat_to_buf): Remove.
4166
4167 2019-09-20 Tom Tromey <tom@tromey.com>
4168
4169 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4170 from "fullname".
4171 * tui/tui-source.c (tui_source_window::set_contents)
4172 (tui_source_window::location_matches_p)
4173 (tui_source_window::maybe_update): Update.
4174
4175 2019-09-20 Tom Tromey <tom@tromey.com>
4176
4177 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4178 Update.
4179 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4180 prefix.
4181 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4182 (tui_data_window::line_from_reg_element_no)
4183 (tui_data_window::first_reg_element_no_inline)
4184 (tui_data_window::show_registers)
4185 (tui_data_window::show_register_group)
4186 (tui_data_window::display_registers_from)
4187 (tui_data_window::display_registers_from_line)
4188 (tui_data_window::first_data_item_displayed)
4189 (tui_data_window::delete_data_content_windows)
4190 (tui_data_window::erase_data_content)
4191 (tui_data_window::do_scroll_vertical)
4192 (tui_data_window::refresh_window)
4193 (tui_data_window::check_register_values): Update.
4194
4195 2019-09-20 Tom Tromey <tom@tromey.com>
4196
4197 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4198 (struct tui_locator_window) <full_name, proc_name>: Now
4199 std::string.
4200 * tui/tui-stack.c (tui_locator_window::make_status_line)
4201 (tui_locator_window::set_locator_fullname)
4202 (tui_locator_window::set_locator_info): Update.
4203 * tui/tui-source.c (tui_source_window::set_contents)
4204 (tui_source_window::showing_source_p): Update.
4205
4206 2019-09-20 Tom Tromey <tom@tromey.com>
4207
4208 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4209 Don't call tui_locator_win_info_ptr.
4210
4211 2019-09-20 Tom Tromey <tom@tromey.com>
4212
4213 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4214
4215 2019-09-20 Tom Tromey <tom@tromey.com>
4216
4217 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4218 height for locator.
4219 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4220 * tui/tui-layout.c (show_source_disasm_command, show_data)
4221 (show_source_or_disasm_and_command): Use 1 as height for locator.
4222
4223 2019-09-20 Tom Tromey <tom@tromey.com>
4224
4225 * tui/tui.c (tui_enable): Update.
4226 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4227 Update.
4228 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4229 Update.
4230 * tui/tui-data.c (win_resized): Now bool.
4231 (tui_win_resized): Return bool.
4232 (tui_set_win_resized_to): Accept a bool.
4233
4234 2019-09-20 Tom Tromey <tom@tromey.com>
4235
4236 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4237 Change type of "refresh_values_only".
4238 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4239 type of "refresh_values_only".
4240
4241 2019-09-20 Tom Tromey <tom@tromey.com>
4242
4243 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4244 std::string.
4245 (tui_disassemble): Add "pos" parameter.
4246 (tui_disasm_window::set_contents): Simplify.
4247
4248 2019-09-20 Tom Tromey <tom@tromey.com>
4249
4250 * tui/tui-winsource.h (struct tui_source_window_base)
4251 <show_source_content>: Now private.
4252 * tui/tui-winsource.c
4253 (tui_source_window_base::show_source_content): Don't handle empty
4254 content case.
4255
4256 2019-09-20 Tom Tromey <tom@tromey.com>
4257
4258 * tui/tui-layout.c (show_source_disasm_command)
4259 (show_source_or_disasm_and_command): Don't call
4260 show_source_content.
4261
4262 2019-09-20 Tom Tromey <tom@tromey.com>
4263
4264 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4265 Declare.
4266 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4267 from tui_make_status_line.
4268 (tui_locator_window::rerender): Update.
4269
4270 2019-09-20 Tom Tromey <tom@tromey.com>
4271
4272 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4273 (tui_locator_window::rerender): Update.
4274
4275 2019-09-20 Tom Tromey <tom@tromey.com>
4276
4277 * tui/tui-winsource.h (struct tui_source_window_base)
4278 <~tui_source_window_base>: Don't declare.
4279 <fullname>: Remove.
4280 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4281 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4282 member.
4283 * tui/tui-source.c (tui_source_window::set_contents): Update.
4284 (tui_source_window::location_matches_p)
4285 (tui_source_window::maybe_update): Update.
4286
4287 2019-09-20 Tom Tromey <tom@tromey.com>
4288
4289 * tui/tui-winsource.h (~tui_source_element): Remove.
4290 (tui_source_element): Update.
4291 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4292 * tui/tui-winsource.c (tui_show_source_line): Update.
4293 * tui/tui-source.c (tui_source_window::set_contents): Update.
4294 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4295
4296 2019-09-20 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4299 declare.
4300 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4301 tui_clear_source_windows_detail.
4302 * tui/tui-winsource.h (struct tui_source_window_base)
4303 <clear_detail>: Don't declare.
4304 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4305 Remove.
4306 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4307
4308 2019-09-20 Tom Tromey <tromey@adacore.com>
4309
4310 PR ada/24919:
4311 * block.c (contained_in): Fix final return value.
4312
4313 2019-09-20 Alan Modra <amodra@gmail.com>
4314
4315 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4316 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4317 (read_indirect_string_from_dwz): Use bfd accessor.
4318 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4319 * machoread.c (macho_symfile_read_all_oso): Likewise.
4320 * solib.c (solib_bfd_open): Likewise.
4321
4322 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4323
4324 * eval.c: Move declaration of overload_resolution to...
4325 * value.h: ...here.
4326
4327 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4328
4329 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4330 * arm-linux-tdep.c: Likewise.
4331 * arm-nbsd-nat.c: Likewise.
4332 * arm-tdep.h: Declare arm_apcs_32.
4333 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4334
4335 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4336
4337 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4338 * dwarf2read.h: Declare dwarf_always_disassemble.
4339
4340 2019-09-19 Tom de Vries <tdevries@suse.de>
4341
4342 PR gdb/25009
4343 * source-cache.c (source_cache::ensure): Catch exception thrown during
4344 construction of the highlighter.
4345
4346 2019-09-18 Alan Modra <amodra@gmail.com>
4347
4348 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4349 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4350 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4351 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4352 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4353 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4354 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4355 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4356 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4357 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4358 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4359 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4360 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4361 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4362 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4363 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4364 * mi/mi-interp.c: Update throughout for bfd section macro and
4365 function changes.
4366 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4367 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4368
4369 2019-09-18 Tom Tromey <tom@tromey.com>
4370
4371 * NEWS: Add entry.
4372 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4373 call rl_initialize.
4374 (tui_enable): Do not call rl_initialize.
4375
4376 2019-09-18 Christian Groessler <chris@groessler.org>
4377
4378 * alpha-linux-nat.c: Include gdbarch.h.
4379
4380 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4381
4382 * ui-file.c: Include cli/cli-style.h.
4383 (term_cli_styling): Remove cli_styling declaration.
4384
4385 2019-09-18 Alan Modra <amodra@gmail.com>
4386
4387 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4388 to bfd_asymbol_section.
4389
4390 2019-09-18 Alan Modra <amodra@gmail.com>
4391
4392 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4393 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4394 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4395
4396 2019-09-18 Alan Modra <amodra@gmail.com>
4397
4398 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4399 * spu-linux-nat.c (spu_bfd_open): Likewise.
4400
4401 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4402
4403 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4404 to bool to match definition in dwarf2read.c.
4405
4406 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4407
4408 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4409 (print_signatures): Likewise.
4410 (trust_pad_over_xvs): Likewise.
4411 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4412 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4413 * arm-linux-nat.c (arm_apcs_32): Likewise.
4414 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4415 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4416 * arm-tdep.c (arm_debug): Likewise.
4417 (arm_apcs_32): Likewise.
4418 * auto-load.c (debug_auto_load): Likewise.
4419 (auto_load_gdb_scripts): Likewise.
4420 (global_auto_load): Likewise.
4421 (auto_load_local_gdbinit): Likewise.
4422 (auto_load_local_gdbinit_loaded): Likewise.
4423 * auto-load.h (global_auto_load): Likewise.
4424 (auto_load_local_gdbinit): Likewise.
4425 (auto_load_local_gdbinit_loaded): Likewise.
4426 * breakpoint.c (disconnected_dprintf): Likewise.
4427 (breakpoint_proceeded): Likewise.
4428 (automatic_hardware_breakpoints): Likewise.
4429 (always_inserted_mode): Likewise.
4430 (target_exact_watchpoints): Likewise.
4431 (_initialize_breakpoint): Update.
4432 * breakpoint.h (target_exact_watchpoints): Change to bool.
4433 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4434 * cli/cli-cmds.c (trace_commands): Likewise.
4435 * cli/cli-cmds.h (trace_commands): Likewise.
4436 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4437 to bool*.
4438 * cli/cli-logging.c (logging_overwrite): Change to bool.
4439 (logging_redirect): Likewise.
4440 (debug_redirect): Likewise.
4441 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4442 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4443 to bool.
4444 <boolean_option_def>: Update.
4445 (struct flag_option_def): Change default type of Context to bool
4446 from int.
4447 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4448 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4449 (get_setshow_command_value_string): Likewise.
4450 * cli/cli-style.c (cli_styling): Change to bool.
4451 (source_styling): Likewise.
4452 * cli/cli-style.h (source_styling): Likewise.
4453 (cli_styling): Likewise.
4454 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4455 to bool.
4456 * command.h (var_types): Update comment.
4457 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4458 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4459 bool.
4460 (debug_compile_cplus_scopes): Likewise.
4461 * compile/compile-internal.h (compile_debug): Likewise.
4462 * compile/compile.c (compile_debug): Likewise.
4463 (struct compile_options) <raw>: Likewise.
4464 * cp-support.c (catch_demangler_crashes): Likewise.
4465 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4466 (usr_cmd_cris_dwarf2_cfi): Likewise.
4467 * csky-tdep.c (csky_debug): Likewise.
4468 * darwin-nat.c (enable_mach_exceptions): Likewise.
4469 * dcache.c (dcache_enabled_p): Likewise.
4470 * defs.h (info_verbose): Likewise.
4471 * demangle.c (demangle): Likewise.
4472 (asm_demangle): Likewise.
4473 * dwarf-index-cache.c (debug_index_cache): Likewise.
4474 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4475 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4476 * dwarf2read.c (check_physname): Likewise.
4477 (use_deprecated_index_sections): Likewise.
4478 (dwarf_always_disassemble): Likewise.
4479 * eval.c (overload_resolution): Likewise.
4480 * event-top.c (set_editing_cmd_var): Likewise.
4481 (exec_done_display_p): Likewise.
4482 * event-top.h (set_editing_cmd_var): Likewise.
4483 (exec_done_display_p): Likewise.
4484 * exec.c (write_files): Likewise.
4485 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4486 (debug_fbsd_nat): Likewise.
4487 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4488 Likewise.
4489 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4490 <backtrace_past_entry> Likewise.
4491 * gdb-demangle.h (demangle): Likewise.
4492 (asm_demangle): Likewise.
4493 * gdb_bfd.c (bfd_sharing): Likewise.
4494 * gdbcore.h (write_files): Likewise.
4495 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4496 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4497 * gdbthread.h (print_thread_events): Likewise.
4498 * gdbtypes.c (opaque_type_resolution): Likewise.
4499 (strict_type_checking): Likewise.
4500 * gnu-nat.c (gnu_debug_flag): Likewise.
4501 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4502 * guile/scm-param.c (pascm_variable): Add boolval.
4503 (add_setshow_generic): Update.
4504 (pascm_param_value): Update.
4505 (pascm_set_param_value_x): Update.
4506 * hppa-tdep.c (hppa_debug): Change to bool..
4507 * infcall.c (may_call_functions_p): Likewise.
4508 (coerce_float_to_double_p): Likewise.
4509 (unwind_on_signal_p): Likewise.
4510 (unwind_on_terminating_exception_p): Likewise.
4511 * infcmd.c (startup_with_shell): Likewise.
4512 * inferior.c (print_inferior_events): Likewise.
4513 * inferior.h (startup_with_shell): Likewise.
4514 (print_inferior_events): Likewise.
4515 * infrun.c (step_stop_if_no_debug): Likewise.
4516 (detach_fork): Likewise.
4517 (debug_displaced): Likewise.
4518 (disable_randomization): Likewise.
4519 (non_stop): Likewise.
4520 (non_stop_1): Likewise.
4521 (observer_mode): Likewise.
4522 (observer_mode_1): Likewise.
4523 (set_observer_mode): Update.
4524 (sched_multi): Change to bool.
4525 * infrun.h (debug_displaced): Likewise.
4526 (sched_multi): Likewise.
4527 (step_stop_if_no_debug): Likewise.
4528 (non_stop): Likewise.
4529 (disable_randomization): Likewise.
4530 * linux-tdep.c (use_coredump_filter): Likewise.
4531 (dump_excluded_mappings): Likewise.
4532 * linux-thread-db.c (auto_load_thread_db): Likewise.
4533 (check_thread_db_on_load): Likewise.
4534 * main.c (captured_main_1): Update.
4535 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4536 xx2_opt, boolean_opt>: Change to bool.
4537 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4538 * maint.c (maintenance_profile_p): Likewise.
4539 (per_command_time): Likewise.
4540 (per_command_space): Likewise.
4541 (per_command_symtab): Likewise.
4542 * memattr.c (inaccessible_by_default): Likewise.
4543 * mi/mi-main.c (mi_async): Likewise.
4544 (mi_async_1): Likewise.
4545 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4546 * nat/fork-inferior.h (startup_with_shell): Likewise.
4547 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4548 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4549 * nios2-tdep.c (nios2_debug): Likewise.
4550 * or1k-tdep.c (or1k_debug): Likewise.
4551 * parse.c (parser_debug): Likewise.
4552 * parser-defs.h (parser_debug): Likewise.
4553 * printcmd.c (print_symbol_filename): Likewise.
4554 * proc-api.c (procfs_trace): Likewise.
4555 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4556 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4557 (set_parameter_value): Update.
4558 (add_setshow_generic): Update.
4559 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4560 to bool*.
4561 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4562 int*.
4563 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4564 * record-btrace.c (record_btrace_target::store_registers): Update.
4565 * record-full.c (record_full_memory_query): Change to bool.
4566 (record_full_stop_at_limit): Likewise.
4567 * record-full.h (record_full_memory_query): Likewise.
4568 * remote-notif.c (notif_debug): Likewise.
4569 * remote-notif.h (notif_debug): Likewise.
4570 * remote.c (use_range_stepping): Likewise.
4571 (interrupt_on_connect): Likewise.
4572 (remote_break): Likewise.
4573 * ser-tcp.c (tcp_auto_retry): Likewise.
4574 * ser-unix.c (serial_hwflow): Likewise.
4575 * skip.c (debug_skip): Likewise.
4576 * solib-aix.c (solib_aix_debug): Likewise.
4577 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4578 (spu_auto_flush_cache_p): Likewise.
4579 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4580 Likewise.
4581 (struct info_print_options) <quiet>: Likewise.
4582 * symfile-debug.c (debug_symfile): Likewise.
4583 * symfile.c (auto_solib_add): Likewise.
4584 (separate_debug_file_debug): Likewise.
4585 * symfile.h (auto_solib_add): Likewise.
4586 (separate_debug_file_debug): Likewise.
4587 * symtab.c (basenames_may_differ): Likewise.
4588 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4589 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4590 (struct info_types_options) <quiet>: Likewise.
4591 * symtab.h (demangle): Likewise.
4592 (basenames_may_differ): Likewise.
4593 * target-dcache.c (stack_cache_enabled_1): Likewise.
4594 (code_cache_enabled_1): Likewise.
4595 * target.c (trust_readonly): Likewise.
4596 (may_write_registers): Likewise.
4597 (may_write_memory): Likewise.
4598 (may_insert_breakpoints): Likewise.
4599 (may_insert_tracepoints): Likewise.
4600 (may_insert_fast_tracepoints): Likewise.
4601 (may_stop): Likewise.
4602 (auto_connect_native_target): Likewise.
4603 (target_stop_and_wait): Update.
4604 (target_async_permitted): Change to bool.
4605 (target_async_permitted_1): Likewise.
4606 (may_write_registers_1): Likewise.
4607 (may_write_memory_1): Likewise.
4608 (may_insert_breakpoints_1): Likewise.
4609 (may_insert_tracepoints_1): Likewise.
4610 (may_insert_fast_tracepoints_1): Likewise.
4611 (may_stop_1): Likewise.
4612 * target.h (target_async_permitted): Likewise.
4613 (may_write_registers): Likewise.
4614 (may_write_memory): Likewise.
4615 (may_insert_breakpoints): Likewise.
4616 (may_insert_tracepoints): Likewise.
4617 (may_insert_fast_tracepoints): Likewise.
4618 (may_stop): Likewise.
4619 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4620 (make_thread_apply_all_options_def_group): Change argument from int*
4621 to bool*.
4622 (thread_apply_all_command): Update.
4623 (print_thread_events): Change to bool.
4624 * top.c (confirm): Likewise.
4625 (command_editing_p): Likewise.
4626 (history_expansion_p): Likewise.
4627 (write_history_p): Likewise.
4628 (info_verbose): Likewise.
4629 * top.h (confirm): Likewise.
4630 (history_expansion_p): Likewise.
4631 * tracepoint.c (disconnected_tracing): Likewise.
4632 (circular_trace_buffer): Likewise.
4633 * typeprint.c (print_methods): Likewise.
4634 (print_typedefs): Likewise.
4635 * utils.c (debug_timestamp): Likewise.
4636 (sevenbit_strings): Likewise.
4637 (pagination_enabled): Likewise.
4638 * utils.h (sevenbit_strings): Likewise.
4639 (pagination_enabled): Likewise.
4640 * valops.c (overload_resolution): Likewise.
4641 * valprint.h (struct value_print_options) <prettyformat_arrays,
4642 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4643 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4644 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4645 Likewise.
4646 * windows-nat.c (new_console): Likewise.
4647 (cygwin_exceptions): Likewise.
4648 (new_group): Likewise.
4649 (debug_exec): Likewise.
4650 (debug_events): Likewise.
4651 (debug_memory): Likewise.
4652 (debug_exceptions): Likewise.
4653 (useshell): Likewise.
4654 * windows-tdep.c (maint_display_all_tib): Likewise.
4655 * xml-support.c (debug_xml): Likewise.
4656
4657 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4658
4659 * source.c (prepare_path_for_appending): New function.
4660 (openp): Make use of new function.
4661 (find_and_open_source): Search for the compilation directory and
4662 source file as a relative path beneath the directory search path.
4663
4664 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4665
4666 * source-cache.c (source_cache::get_line_charpos): Catch
4667 exceptions and return false, this matches the behaviour documented
4668 in the header file.
4669
4670 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4671
4672 * ada-tasks.c (info_task): Remove quoting of the task's name.
4673
4674 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4675
4676 * symfile.c (auto_solib_add): Replace comment with a reference
4677 to the header file.
4678
4679 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4680
4681 * NEWS: Mention that gdb can now be compiled with Python 3
4682 on Windows.
4683
4684 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4685
4686 * maint.c (maint_print_section_data::maint_print_section_data):
4687 Force use of 'float log10 (float)' by casting the argument to
4688 float.
4689
4690 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4691
4692 * maint.c: Add 'cmath' include.
4693 (struct maint_print_section_data): New structure.
4694 (print_section_index): New function.
4695 (print_bfd_section_info): Add header comment, small whitespace
4696 cleanup, and update to call new print_section_index function.
4697 (print_objfile_section_info): Likewise.
4698 (maint_obj_section_from_bfd_section): New function.
4699 (print_bfd_section_info_maybe_relocated): New function.
4700 (maintenance_info_sections): Add header comment, always use
4701 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4702
4703 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4704
4705 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4706 inner scope, add check that the objfile has psymtabs before
4707 checking psymtabs_addrmap.
4708 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4709
4710 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4711
4712 * NEWS: Announce that Ada task names are now shown at more places,
4713 and between quotes (except in info task output).
4714 * gdb/ada-tasks.c (task_to_str): New function.
4715 (display_current_task_id): Call task_to_str.
4716 (task_command_1): Likewise.
4717 (print_ada_task_info): In non-mi mode, Properly align headers and data
4718 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4719
4720 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4721
4722 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4723 prstatus.pr_lwp.pr_info instead of making it up.
4724
4725 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4726
4727 * auto-load.c (auto_load_expand_dir_vars): Update.
4728 * defs.h (gdb_datadir): Change to std::string.
4729 (python_libdir): Likewise.
4730 (relocate_gdb_directory): Change return type to std::string.
4731 * guile/guile.c (gdbscm_data_directory): Update.
4732 (initialize_scheme_side): Update.
4733 * jit.c (jit_reader_dir): Change to std::string.
4734 (jit_reader_load_command): Update.
4735 * main.c (gdb_datadir): Change to std::string.
4736 (python_libdir): Likewise.
4737 (set_gdb_data_directory): Update.
4738 (relocate_path): Change to return std::string.
4739 (relocate_gdb_directory): Change to return std::string.
4740 (relocate_gdbinit_path_maybe_in_datadir): Update.
4741 (captured_main_1): Update.
4742 * python/python.c (do_start_initialization): Update.
4743 * top.c (show_gdb_datadir): Update.
4744 * xml-syscall.c (xml_init_syscalls_info): Update.
4745 (init_syscalls_info): Update.
4746
4747 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4748
4749 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4750 out of get_init_files.
4751 (get_init_files): Update.
4752
4753 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4754
4755 * main.c (get_init_files): Change to use std::string.
4756 (captured_main_1): Update.
4757 (print_gdb_help): Update.
4758
4759 2019-09-11 Ali Tamur <tamur@google.com>
4760
4761 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4762 implementation.
4763
4764 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4765
4766 * dbxread.c (read_dbx_symtab): Update.
4767 * dwarf2read.c (load_partial_dies): Update.
4768 * mdebugread.c (parse_partial_symbols): Update.
4769 (handle_psymbol_enumerators): Update.
4770 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4771 * psymtab.c (add_psymbol_to_bcache): Likewise.
4772 (add_psymbol_to_list): Likewise.
4773 * symtab.c (symbol_set_names): Likewise.
4774 * symtab.h (symbol_set_names): Likewise.
4775 * xcoffread.c (scan_xcoff_symtab): Update.
4776
4777 2019-09-11 Tom Tromey <tom@tromey.com>
4778
4779 * symfile-mem.c (symbol_file_add_from_memory): Use
4780 bfd_set_filename.
4781 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4782 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4783
4784 2019-09-10 Tom Tromey <tromey@adacore.com>
4785
4786 * dwarf-index-write.c (write_psymbols): Extend error message.
4787 (debug_names::insert): Add Ada code.
4788 (debug_names::write_psymbols): Remove Ada check.
4789 (debug_names) <m_string_obstack>: New member.
4790 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4791 (gdb_index_symbol_name_matcher::matches): Remove.
4792 (mapped_index_base::find_name_components_bounds): Add "lang"
4793 parameter.
4794 (mapped_index_base::build_name_components): Also split names
4795 according to Ada syntax.
4796 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4797 type of "match_callback".
4798 (check_match, check_find_bounds_finds)
4799 (dw2_expand_symtabs_matching): Update.
4800 (dw2_debug_names_iterator): Add new constructor.
4801 (dw2_debug_names_map_matching_symbols): New function.
4802 (dw2_debug_names_expand_symtabs_matching): Update.
4803 (dwarf2_debug_names_functions): Use
4804 dw2_debug_names_map_matching_symbols.
4805
4806 2019-09-10 Tom Tromey <tromey@adacore.com>
4807
4808 * dwarf2read.c (dw2_get_file_names_reader): Add the
4809 CU's file name to the results.
4810
4811 2019-09-10 Tom Tromey <tromey@adacore.com>
4812
4813 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4814 map_matching_symbols. Update.
4815 * dwarf2read.c (dw2_map_matching_symbols): Update.
4816 * psymtab.c (match_partial_symbol): Change type; update.
4817 (psym_map_matching_symbols): Likewise.
4818 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4819 type; update.
4820 * symfile.h (struct quick_symbol_functions)
4821 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4822 Remove "match".
4823
4824 2019-09-10 Tom Tromey <tromey@adacore.com>
4825
4826 * psymtab.c (map_block): Remove.
4827 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4828 * symtab.c (iterate_over_symbols_terminated): New function.
4829 * symtab.c (iterate_over_symbols_terminated): Declare.
4830
4831 2019-09-10 Tom Tromey <tromey@adacore.com>
4832
4833 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4834 * language.h (struct language_defn) <la_iterate_over_symbols>:
4835 Return bool.
4836 * symtab.c (iterate_over_symbols): Return bool.
4837 * symtab.h (iterate_over_symbols): Return bool.
4838
4839 2019-09-10 Tom Tromey <tromey@adacore.com>
4840
4841 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4842 (add_nonlocal_symbols): Update.
4843 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4844 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4845 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4846 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4847 Change type of "callback". Remove "data".
4848
4849
4850 2019-09-09 Ali Tamur <tamur@google.com>
4851
4852 * dwarf2read.c (comp_unit_head): Update comment.
4853 (dwarf2_dwo_name): New function declaration.
4854 (dwarf_unit_type_name): New function declaration.
4855 (read_comp_unit_head): Add support for new compilation units,
4856 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4857 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4858 (currently named as "signature") in their header. Also clarify error
4859 messages.
4860 (lookup_dwo_id): New function. Returns the dwo id of the given
4861 compile unit.
4862 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4863 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4864 functions.
4865 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4866 (dwarf2_dwo_name): Get the dwo name if present.
4867 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4868 purposes.
4869
4870 2019-09-09 Tom Tromey <tom@tromey.com>
4871
4872 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4873
4874 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4875
4876 * python/python.c (do_start_initialization): Make progname_copy static,
4877 to avoid a leak report.
4878
4879 2019-09-08 Tom Tromey <tom@tromey.com>
4880
4881 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4882
4883 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4884
4885 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4886 Change type to gdb::optional<block_enum>.
4887 (dw2_symtab_iter_init): Change block_index parameter type
4888 to gdb::optional<block_enum>.
4889 (dw2_lookup_symbol): Change block_index parameter
4890 type to block_enum.c
4891 (dw2_debug_names_lookup_symbol): Likewise.
4892 * psymtab.c (psym_lookup_symbol): Likewise.
4893 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4894 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4895 Likewise.
4896
4897 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4898
4899 * defs.h (relocate_gdb_directory): Change int to bool in
4900 signature and rename flag to relocatable.
4901 * main.c (relocate_path): Likewise.
4902 (relocate_gdb_directory): Likewise.
4903
4904 2019-09-06 Alan Modra <amodra@gmail.com>
4905
4906 * coffread.c (coff_symfile_read): Constify filename variable.
4907 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4908 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4909 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4910 * solib.c (reload_shared_libraries_1): Likewise.
4911 * symfile.c (reread_symbols): Likewise.
4912 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4913 * solib-darwin.c (darwin_bfd_open): Likewise.
4914 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4915
4916 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4917
4918 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4919 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4920
4921 2019-09-03 Tom Tromey <tromey@adacore.com>
4922
4923 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4924 types.
4925 (has_negatives): Unbias a range type bound.
4926 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4927 * gdbtypes.c (operator==): Handle new field.
4928 (create_range_type): Add "bias" parameter.
4929 (create_static_range_type, resolve_dynamic_range): Update.
4930 * gdbtypes.h (struct range_bounds) <bias>: New member.
4931 (create_range_type): Add bias parameter.
4932 * printcmd.c (print_scalar_formatted): Unbias range types.
4933 * value.c (unpack_long): Unbias range types.
4934 (pack_long): Bias range types.
4935
4936 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4937
4938 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4939 probe arguments.
4940
4941 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4942
4943 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4944 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4945 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4946 (compile_probe_arg): Likewise.
4947 * probe.h (get_argument_count): Likewise.
4948 * solib-svr4.c (solib_event_probe_action): Likewise.
4949 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4950
4951 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4952
4953 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4954 code to here...
4955 (svr4_create_solib_event_breakpoints): ...from here.
4956
4957 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4958
4959 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4960 suffix from warning message.
4961
4962 2019-08-30 Tom Tromey <tom@tromey.com>
4963
4964 * tui/tui-winsource.h (struct tui_source_window_base)
4965 <refresh_all>: Don't declare.
4966 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4967 Remove.
4968 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4969 tui_show_locator_content.
4970 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4971 declare.
4972 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4973 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4974 declare.
4975
4976 2019-08-30 Tom Tromey <tom@tromey.com>
4977
4978 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4979
4980 2019-08-30 Tom Tromey <tom@tromey.com>
4981
4982 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4983 Remove unnecessary forward declarations.
4984
4985 2019-08-30 Tom Tromey <tom@tromey.com>
4986
4987 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4988 rerender.
4989 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4990 tui_show_locator_content.
4991
4992 2019-08-30 Tom Tromey <tom@tromey.com>
4993
4994 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4995 (tui_locator_window::rerender): Rewrite using body of previous
4996 tui_show_locator_content.
4997
4998 2019-08-30 Tom Tromey <tom@tromey.com>
4999
5000 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5001 set_locator_fullname>: New methods.
5002 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5003 Rename from tui_set_locator_fullname.
5004 (tui_locator_window::set_locator_info): Rename from
5005 tui_set_locator_info. Return bool.
5006 (tui_update_locator_fullname, tui_show_frame_info): Update.
5007
5008 2019-08-30 Tom Tromey <tom@tromey.com>
5009
5010 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5011
5012 2019-08-30 Tom Tromey <tom@tromey.com>
5013
5014 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5015 call touchwin.
5016
5017 2019-08-30 Tom Tromey <tom@tromey.com>
5018
5019 * tui/tui-wingeneral.c (box_win): Assume win_info and
5020 win_info->handle cannot be NULL.
5021
5022 2019-08-30 Tom Tromey <tom@tromey.com>
5023
5024 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5025 refresh_window>: Declare.
5026 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5027 resize.
5028 (tui_data_item_window::rerender): Rename from
5029 tui_display_register.
5030 (tui_data_item_window::refresh_window): New method.
5031 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5032 no-op.
5033
5034 2019-08-30 Tom Tromey <tom@tromey.com>
5035
5036 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5037 regs_column_count, current_group>: Move later. Now private.
5038 <get_current_group>: New method.
5039 * tui/tui-regs.c (tui_reg_command): Update.
5040 * tui/tui-layout.c (tui_set_layout): Update.
5041
5042 2019-08-30 Tom Tromey <tom@tromey.com>
5043
5044 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5045 (tui_data_window::rerender): Don't call
5046 check_and_display_highlight_if_needed.
5047 (tui_data_window::refresh_all): Remove call to
5048 erase_data_content.
5049
5050 2019-08-30 Tom Tromey <tom@tromey.com>
5051
5052 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5053 (tui_data_window::display_registers_from)
5054 (tui_data_window::display_reg_element_at_line)
5055 (tui_data_window::display_registers_from_line): Remove checks of
5056 "empty".
5057
5058 2019-08-30 Tom Tromey <tom@tromey.com>
5059
5060 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5061 Don't declare.
5062 * tui/tui-regs.c (tui_data_window::show_registers): Call
5063 rerender.
5064 (tui_data_window::rerender): Rename from display_all_data.
5065 (tui_data_window::rerender): Remove old implementation.
5066
5067 2019-08-30 Tom Tromey <tom@tromey.com>
5068
5069 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5070 text.
5071 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5072
5073 2019-08-29 Bernhard Wodok <barto@gmx.net>
5074 Sergio Durigan Junior <sergiodj@redhat.com>
5075
5076 PR win32/24284
5077 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5078
5079 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5080
5081 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5082 when searching for types.
5083
5084 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5085
5086 * f-lang.c (f_language_defn): Use f_print_typedef.
5087 * f-lang.h (f_print_typedef): Declare.
5088 * f-typeprint.c (f_print_typedef): Define.
5089
5090 2019-08-27 Christian Biesinger <cbiesinger@google.com>
5091
5092 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5093
5094 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5095
5096 * cli/cli-utils.c (info_print_options_defs): Delete.
5097 (make_info_print_options_def_group): Delete.
5098 (extract_info_print_options): Delete.
5099 (info_print_command_completer): Delete.
5100 (info_print_args_help): Add extra parameter, and optionally
5101 include text about -n flag.
5102 * cli/cli-utils.h (struct info_print_options): Delete.
5103 (extract_info_print_options): Delete declaration.
5104 (info_print_command_completer): Delete declaration.
5105 (info_print_args_help): Add extra parameter, extend header
5106 comment.
5107 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5108 search_symbols.
5109 * stack.c (struct info_print_options): New type.
5110 (info_print_options_defs): New file scoped variable.
5111 (make_info_print_options_def_group): New static function.
5112 (info_print_command_completer): New static function.
5113 (info_locals_command): Update to use new local functions.
5114 (info_args_command): Likewise.
5115 (_initialize_stack): Add extra parameter to calls to
5116 info_print_args_help.
5117 * symtab.c (search_symbols): Add extra parameter, use this to
5118 possibly excluse non-debug symbols.
5119 (symtab_symbol_info): Add extra parameter, which is passed on to
5120 search_symbols.
5121 (struct info_print_options): New type.
5122 (info_print_options_defs): New file scoped variable.
5123 (make_info_print_options_def_group): New static function.
5124 (info_print_command_completer): New static function.
5125 (info_variables_command): Update to use local functions, and pass
5126 extra parameter through to symtab_symbol_info.
5127 (info_functions_command): Likewise.
5128 (info_types_command): Pass additional argument through to
5129 symtab_symbol_info.
5130 (rbreak_command): Pass extra argument to search_symbols.
5131 (_initialize_symtab): Add extra arguments for calls to
5132 info_print_args_help, and update help text for 'info variables',
5133 'whereis', and 'info functions' commands.
5134 * symtab.h (search_symbols): Add extra argument to declaration.
5135 * NEWS: Mention new flags.
5136
5137 2019-08-26 Christian Biesinger <cbiesinger@google.com>
5138
5139 * symtab.c (lookup_static_symbol): Call the new function (and move
5140 it down to be next to lookup_global_symbol).
5141 (struct global_sym_lookup_data): Add block_enum member and rename to...
5142 (struct global_or_static_sym_lookup_data): ...this.
5143 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5144 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5145 (lookup_symbol_global_or_static_iterator_cb): ...this.
5146 (lookup_global_or_static_symbol): New function.
5147 (lookup_global_symbol): Call new function.
5148
5149 2019-08-26 Tom de Vries <tdevries@suse.de>
5150
5151 PR c++/24852
5152 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5153 when pc_probe.prob == NULL.
5154
5155 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5156
5157 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5158 variable symbol_linkage to symbol_linkage_.
5159
5160 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5161
5162 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5163 represent whether the symbol is static, dynamic, or we don't
5164 know.
5165
5166 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5167
5168 * gdb/rx-tdep.c (rx_register_names): New.
5169 (rx_register_name): Delete.
5170 (rx_psw_type): Delete.
5171 (rx_fpsw_type): Delete.
5172 (rx_register_type): Delete.
5173 (rx_gdbarch_init): Convert target-descriptions.
5174 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5175 * gdb/features/Makefile: Add rx.xml.
5176 * gdb/features/rx.xml: New.
5177 * gdb/features/rx.c: Generated.
5178 * gdb/NEWS: Mention target description support.
5179
5180 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5181
5182 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5183 *slot_ptr.
5184
5185 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5186
5187 * configure.ac: Don't check for 'dlfcn.h' (moved to
5188 gdbsupport/common.m4).
5189 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5190 'gdbsupport/'.
5191 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5192 * compile/compile-c-support.c: Include
5193 'gdbsupport/gdb-dlfcn.h'.
5194 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5195 * gdb-dlfcn.c: Move to...
5196 * gdbsupport/gdb-dlfcn.c: ... here.
5197 * gdb-dlfcn.h: Move to...
5198 * gdbsupport/gdb-dlfcn.h: ... here.
5199
5200 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5201
5202 * nios2-tdep.c (struct reg_value): Improve comments. Make
5203 the offset field signed.
5204
5205 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5206
5207 * python/lib/gdb/__init__.py (_execute_file): New function.
5208 * python/python.c (python_run_simple_file): Call gdb._execute_file
5209 on Windows.
5210
5211 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5212
5213 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5214 all uses as this was never set to anything but a zero value.
5215
5216 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5217
5218 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5219
5220 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5221
5222 * tui/tui-data.h (tui_gen_win_info): Add an =default
5223 move constructor, required by some GCC versions.
5224
5225 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5226
5227 * go32-nat.c (go32_sysinfo): Add hygon_p.
5228
5229 2019-08-20 Tom Tromey <tom@tromey.com>
5230
5231 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5232 line_from_reg_element_no, first_reg_element_no_inline,
5233 display_all_data, delete_data_content_windows,
5234 erase_data_content>: Now private.
5235
5236 2019-08-20 Tom Tromey <tom@tromey.com>
5237
5238 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5239 (tui_unhighlight_win, tui_highlight_win)
5240 (tui_win_info::make_window): Update.
5241 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5242
5243 2019-08-20 Tom Tromey <tom@tromey.com>
5244
5245 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5246 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5247 (MAX_PID_WIDTH): Move to tui-stack.c.
5248 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5249 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5250 (MAX_PID_WIDTH): Move from tui-data.h.
5251
5252 2019-08-20 Tom Tromey <tom@tromey.com>
5253
5254 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5255 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5256 (box_win): Update.
5257 (tui_gen_win_info::make_window): Rename from tui_make_window.
5258 (tui_win_info::make_window): New method.
5259 (tui_gen_win_info::make_visible): Update.
5260 * tui/tui-source.c (tui_source_window::set_contents): Update.
5261 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5262 (tui_data_window::display_registers_from): Update.
5263 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5264 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5265 Declare.
5266 <can_box>: Remove.
5267 <title>: Remove.
5268 (struct tui_win_info) <make_window>: Declare.
5269 <can_box>: Now virtual.
5270 <title>: New member.
5271 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5272 * tui/tui-command.c (tui_cmd_window::resize): Update.
5273
5274 2019-08-20 Tom Tromey <tom@tromey.com>
5275
5276 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5277 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5278 (tui_data_window::check_register_values): Update.
5279
5280 2019-08-20 Tom Tromey <tom@tromey.com>
5281
5282 * tui/tui-regs.h (struct tui_data_window): Use
5283 DISABLE_COPY_AND_ASSIGN.
5284 <regs_content>: Change type, removing unique_ptr.
5285 <tui_data_window>: Add move constructor.
5286 * tui/tui-regs.c (tui_data_window::show_registers)
5287 (tui_data_window::show_register_group)
5288 (tui_data_window::display_registers_from)
5289 (tui_data_window::display_registers_from)
5290 (tui_data_window::first_data_item_displayed)
5291 (tui_data_window::delete_data_content_windows)
5292 (tui_data_window::rerender, tui_data_window::refresh_window)
5293 (tui_data_window::check_register_values): Update.
5294
5295 2019-08-20 Tom Tromey <tom@tromey.com>
5296
5297 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5298 show_register_group>: Declare.
5299 (tui_show_register_group): Don't declare.
5300 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5301 tui_show_registers.
5302 (tui_data_window::show_register_group): Rename from
5303 tui_show_register_group.
5304 (tui_data_window::check_register_values, tui_reg_command):
5305 Update.
5306 * tui/tui-layout.c (tui_set_layout): Update.
5307
5308 2019-08-20 Tom Tromey <tom@tromey.com>
5309
5310 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5311 Declare.
5312 (tui_check_register_values): Don't declare.
5313 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5314 from tui_check_register_values.
5315 * tui/tui-hooks.c (tui_register_changed): Update.
5316
5317 2019-08-20 Tom Tromey <tom@tromey.com>
5318
5319 * tui/tui-regs.c (tui_reg_layout): Move later.
5320 (tui_show_registers): Don't enable TUI mode or change layout.
5321
5322 2019-08-20 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-regs.h (struct tui_data_item_window)
5325 <~tui_data_item_window>: Remove.
5326 <content>: Now a unique_xmalloc_ptr.
5327 * tui/tui-regs.c (tui_register_format): Return a
5328 unique_xmalloc_ptr.
5329 (tui_get_register): Update.
5330 (~tui_data_item_window): Remove.
5331 (tui_data_window::display_registers_from, tui_display_register):
5332 Update.
5333 * tui/tui-io.h (tui_expand_tabs): Update.
5334 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5335 Remove "col" parameter.
5336
5337 2019-08-20 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5340 field.
5341 * tui/tui-regs.c (~tui_data_item_window): Update.
5342
5343 2019-08-20 Tom Tromey <tom@tromey.com>
5344
5345 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5346 earlier.
5347
5348 2019-08-20 Tom Tromey <tom@tromey.com>
5349
5350 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5351
5352 2019-08-20 Tom Tromey <tom@tromey.com>
5353
5354 * tui/tui-source.h (struct tui_source_window): Update.
5355 * tui/tui-regs.c (tui_show_registers): Update.
5356 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5357 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5358 (NO_REGS_STRING): Remove defines.
5359
5360 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5361
5362 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5363 unnecessary thread walk if remote doesn't support the packet.
5364
5365 2019-08-19 Tom Tromey <tromey@adacore.com>
5366
5367 * python/py-value.c (value_has_field): Fix indentation.
5368
5369 2019-08-19 Tom Tromey <tromey@adacore.com>
5370
5371 * printcmd.c (do_one_display, info_display_command): Update.
5372 * block.h (contained_in): Return bool. Add allow_nested
5373 parameter.
5374 * block.c (contained_in): Return bool. Add allow_nested
5375 parameter.
5376
5377 2019-08-19 Tom Tromey <tom@tromey.com>
5378
5379 * configure: Rebuild.
5380 * configure.ac: Disallow the combination of -static-libstdc++ and
5381 source highlight.
5382 * source-cache.c (get_language_name): Handle rust.
5383 (source_cache::get_source_lines): Ignore highlighting exceptions.
5384
5385 2019-08-16 Tom Tromey <tom@tromey.com>
5386
5387 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5388 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5389 (struct tui_source_window_base) <make_visible, refresh_window,
5390 resize>: Remove methods.
5391 <execution_info>: Remove field.
5392 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5393 (tui_show_source_line, tui_source_window_base)
5394 (~tui_source_window_base): Update.
5395 (tui_source_window_base::resize)
5396 (tui_source_window_base::make_visible)
5397 (tui_source_window_base::refresh_window): Remove.
5398 (tui_source_window_base::update_exec_info): Update.
5399 * tui/tui-source.c (tui_source_window::set_contents): Update.
5400 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5401
5402 2019-08-16 Tom Tromey <tom@tromey.com>
5403
5404 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5405 deprecated_query_hook.
5406
5407 2019-08-16 Tom Tromey <tom@tromey.com>
5408
5409 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5410 (tui_update_source_windows_with_line): Update.
5411 * tui/tui-source.h (struct tui_source_window)
5412 <show_symtab_source>: Declare.
5413 (tui_show_symtab_source): Don't declare.
5414 * tui/tui-source.c (tui_show_symtab_source): Rename from
5415 tui_show_symtab_source.
5416
5417 2019-08-16 Tom Tromey <tom@tromey.com>
5418
5419 * tui/tui-winsource.h (struct tui_source_window_base)
5420 <set_contents>: Declare.
5421 * tui/tui-winsource.c
5422 (tui_source_window_base::update_source_window_as_is): Update.
5423 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5424 Declare.
5425 (tui_set_source_content): Don't declare.
5426 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5427 tui_set_source_content.
5428 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5429 Declare.
5430 (tui_set_disassem_content): Don't declare.
5431 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5432 tui_set_disassem_content.
5433
5434 2019-08-16 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-winsource.h (struct tui_source_window_base)
5437 <update_breakpoint_info>: Declare.
5438 (tui_update_breakpoint_info): Don't declare.
5439 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5440 (tui_update_all_breakpoint_info): Update.
5441 (tui_source_window_base::update_breakpoint_info): Rename from
5442 tui_update_breakpoint_info.
5443 (tui_source_window_base::update_exec_info): Update.
5444
5445 2019-08-16 Tom Tromey <tom@tromey.com>
5446
5447 * tui/tui-winsource.h (struct tui_source_window_base)
5448 <update_source_window>: Declare.
5449 (tui_update_source_window): Don't declare.
5450 * tui/tui-winsource.c
5451 (tui_source_window_base::update_source_window): Rename from
5452 tui_update_source_window.
5453 (tui_source_window_base::rerender): Update.
5454 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5455 * tui/tui-disasm.c (tui_show_disassem)
5456 (tui_show_disassem_and_update_source)
5457 (tui_disasm_window::maybe_update): Update.
5458
5459 2019-08-16 Tom Tromey <tom@tromey.com>
5460
5461 * tui/tui-winsource.h (struct tui_source_window_base)
5462 <update_source_window_as_is>: Declare.
5463 (tui_update_source_window_as_is): Don't declare.
5464 * tui/tui-winsource.c (tui_update_source_window): Update
5465 (tui_source_window_base::update_source_window_as_is): Rename from
5466 tui_update_source_window_as_is.
5467 (tui_source_window_base::refill): Update.
5468 * tui/tui-source.c (tui_show_symtab_source): Update.
5469 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5470 Update.
5471
5472 2019-08-16 Tom Tromey <tom@tromey.com>
5473
5474 * tui/tui-winsource.h (tui_update_source_window)
5475 (tui_update_source_window_as_is): Remove "noerror" parameter.
5476 * tui/tui-winsource.c (tui_update_source_window)
5477 (tui_update_source_window_as_is): Remove "noerror" parameter.
5478 (tui_update_source_windows_with_addr)
5479 (tui_update_source_windows_with_line)
5480 (tui_source_window_base::rerender)
5481 (tui_source_window_base::refill): Update.
5482 * tui/tui-source.h (tui_set_source_content)
5483 (tui_show_symtab_source): Remove "noerror" parameter.
5484 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5485 parameter.
5486 (tui_show_symtab_source): Likewise.
5487 (tui_source_window::maybe_update): Update.
5488 * tui/tui-disasm.c (tui_show_disassem)
5489 (tui_show_disassem_and_update_source)
5490 (tui_disasm_window::do_scroll_vertical)
5491 (tui_disasm_window::maybe_update): Update.
5492
5493 2019-08-16 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui.c (tui_is_window_visible): Update.
5496 * tui/tui-wingeneral.c (tui_make_window)
5497 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5498 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5499 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5500 (tui_set_win_height_command, parse_scrolling_args): Update.
5501 * tui/tui-source.c (tui_source_window::style_changed): Update.
5502 * tui/tui-regs.c (tui_show_registers)
5503 (tui_data_window::first_data_item_displayed)
5504 (tui_data_window::delete_data_content_windows)
5505 (tui_check_register_values, tui_reg_command): Update.
5506 * tui/tui-disasm.c (tui_show_disassem): Update.
5507 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5508 method.
5509 <is_visible>: Remove field.
5510 * tui/tui-data.c (tui_next_win, tui_prev_win)
5511 (tui_delete_invisible_windows): Update.
5512
5513 2019-08-16 Tom Tromey <tom@tromey.com>
5514
5515 * tui/tui-winsource.h (struct tui_source_window_base)
5516 <m_has_locator>: Remove.
5517 * tui/tui-layout.c (show_source_disasm_command, show_data)
5518 (show_source_or_disasm_and_command): Update.
5519
5520 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5521
5522 * NEWS (Other MI changes): New subsection.
5523 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5524 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5525 * arch-utils.c (default_get_pc_address_flags): New function.
5526 * arch-utils.h (default_get_pc_address_flags): New declaration.
5527 * gdbarch.sh: Add get_pc_address_flags.
5528 * gdbarch.c: Regenerate.
5529 * gdbarch.h: Likewise.
5530 * stack.c (print_pc): New function.
5531 (print_frame_info) (print_frame): Call print_pc.
5532
5533 2019-08-16 Tom de Vries <tdevries@suse.de>
5534
5535 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5536 print_objfile_section_info.
5537
5538 2019-08-15 Tom Tromey <tom@tromey.com>
5539
5540 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5541 calling update_cmdwin_start_line.
5542 * tui/tui-winsource.h (struct tui_source_window_base)
5543 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5544 <rerender>: Declare.
5545 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5546 Call rerender.
5547 (tui_source_window_base::set_new_height): Remove.
5548 (tui_source_window_base::rerender): Rename from
5549 do_make_visible_with_new_height.
5550 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5551 resize method.
5552 (tui_win_info::make_invisible_and_set_new_height)
5553 (tui_win_info::make_visible_with_new_height): Remove.
5554 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5555 Declare.
5556 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5557 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5558 do_make_visible_with_new_height>: Don't declare.
5559 <rerender>: Declare.
5560 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5561 set_new_height.
5562 (tui_data_window::do_make_visible_with_new_height): Remove.
5563 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5564 call tui_show_locator_content.
5565 (tui_gen_win_info::resize): Call rerender.
5566 (show_source_or_disasm_and_command): Don't call
5567 tui_show_locator_content.
5568 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5569 method.
5570 (struct tui_win_info) <rerender>: Declare.
5571 <set_new_height, make_invisible_and_set_new_height,
5572 make_visible_with_new_height>: Don't declare.
5573 * tui/tui-data.c (tui_win_list::rerender): New method.
5574 * tui/tui-command.h (struct tui_cmd_window)
5575 <do_make_visible_with_new_height>: Don't declare.
5576 * tui/tui-command.c
5577 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5578
5579 2019-08-15 Tom Tromey <tromey@adacore.com>
5580
5581 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5582 * ada-lang.c (ada_enum_name): Likewise.
5583
5584 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5585
5586 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5587 leading underscore.
5588 (GdbOutputErrorFile): Likewise.
5589 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5590 accordingly.
5591 (execute_unwinders): Rename to have a leading underscore.
5592 (auto_load_packages): Likewise.
5593 (global scope): Adjust call to auto_load_packages accordingly.
5594 (GdbSetPythonDirectory): Likewise.
5595 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5596 instead of execute_unwinders.
5597
5598 2019-08-15 Tom Tromey <tom@tromey.com>
5599
5600 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5601 (show_data): Don't change window visibility.
5602 (tui_gen_win_info::resize): Remove special case for command
5603 window. Use wresize, when available.
5604 (show_source_or_disasm_and_command): Don't change window
5605 visibility.
5606 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5607 <make_visible>: New method.
5608 * tui/tui-command.c (tui_cmd_window::resize): New method.
5609
5610 2019-08-15 Tom Tromey <tom@tromey.com>
5611
5612 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5613 (struct tui_source_windows): New.
5614 * tui/tui-winsource.c (tui_display_main): Update.
5615 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5616 (new_height_ok, parse_scrolling_args): Update.
5617 * tui/tui-layout.c (show_layout, show_data): Update.
5618 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5619 (tui_add_to_source_windows): Don't declare.
5620 * tui/tui-data.c (source_windows, tui_source_windows)
5621 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5622
5623 2019-08-15 Tom Tromey <tom@tromey.com>
5624
5625 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5626 Rename from reset.
5627 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5628 * tui/tui-layout.c (show_source_disasm_command, show_data):
5629 Update.
5630 (tui_gen_win_info::resize): Rename.
5631 (show_source_or_disasm_and_command): Update.
5632 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5633 reset.
5634
5635 2019-08-15 Tom Tromey <tom@tromey.com>
5636
5637 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5638 * tui/tui-interp.c (tui_interp::init): Don't call
5639 tui_initialize_static_data.
5640 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5641
5642 2019-08-15 Tom Tromey <tom@tromey.com>
5643
5644 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5645 examine tui_win_list.
5646
5647 2019-08-15 Tom Tromey <tom@tromey.com>
5648
5649 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5650 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5651 tui_clear_source_content.
5652 (tui_clear_source_content): Remove.
5653 (tui_source_window_base::do_erase_source_content): Hoist call to
5654 content.clear().
5655 * tui/tui-stack.c (tui_show_frame_info): Don't call
5656 tui_clear_source_content.
5657
5658 2019-08-15 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-winsource.h (struct tui_source_window_base)
5661 <do_erase_source_content>: New method.
5662 <erase_source_content>: New method.
5663 (tui_erase_source_content): Don't declare.
5664 * tui/tui-winsource.c (tui_clear_source_content): Update.
5665 (tui_source_window_base::do_erase_source_content): Rename from
5666 tui_erase_source_content.
5667 (tui_source_window_base::show_source_content): Update.
5668 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5669 * tui/tui-source.h (struct tui_source_window)
5670 <erase_source_content>: New method.
5671 * tui/tui-disasm.h (struct tui_disasm_window)
5672 <erase_source_content>: New method.
5673
5674 2019-08-15 Tom Tromey <tom@tromey.com>
5675
5676 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5677 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5678 constructor.
5679 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5680 * tui/tui-source.c (tui_set_source_content): Update.
5681 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5682
5683 2019-08-15 Tom Tromey <tom@tromey.com>
5684
5685 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5686 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5687 tui-source.c.
5688 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5689 Declare.
5690 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5691 method.
5692 (tui_source_window::maybe_update): Update.
5693
5694 2019-08-15 Tom Tromey <tom@tromey.com>
5695
5696 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5697 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5698 tui-disasm.c.
5699 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5700 Declare.
5701 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5702 method.
5703 (tui_disasm_window::maybe_update): Update.
5704
5705 2019-08-15 Tom Tromey <tom@tromey.com>
5706
5707 * tui/tui-winsource.h (struct tui_source_window_base)
5708 <maybe_update>: Declare.
5709 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5710 method.
5711 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5712 Declare.
5713 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5714 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5715 Declare.
5716 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5717
5718 2019-08-15 Tom Tromey <tom@tromey.com>
5719
5720 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5721
5722 2019-08-15 Tom Tromey <tom@tromey.com>
5723
5724 * tui/tui-wingeneral.c: Include tui-stack.h.
5725 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5726 (struct tui_locator_window): Move from tui-data.h.
5727 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5728 (tui_initialize_static_data): Move from tui-data.c.
5729 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5730 (struct tui_locator_window): Move to tui-stack.c.
5731 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5732 (tui_initialize_static_data): Move to tui-stack.c.
5733
5734 2019-08-15 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-layout.c (show_source_disasm_command)
5737 (show_source_or_disasm_and_command): Use make_visible method, not
5738 tui_make_window.
5739 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5740 Remove.
5741
5742 2019-08-15 Tom Tromey <tom@tromey.com>
5743
5744 * tui/tui-wingeneral.h (tui_make_window): Update.
5745 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5746 parameter.
5747 (tui_gen_win_info::make_visible): Update.
5748 * tui/tui-regs.c (tui_data_window::display_registers_from):
5749 Update.
5750 * tui/tui-layout.c (show_source_disasm_command)
5751 (show_source_or_disasm_and_command): Update.
5752 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5753 (enum tui_box): Remove.
5754 (struct tui_win_info) <can_box>: New method.
5755 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5756 method.
5757
5758 2019-08-15 Tom de Vries <tdevries@suse.de>
5759
5760 * linux-nat-trad.c: Include gdbarch.h.
5761
5762 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5763
5764 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5765 register sizes.
5766
5767 2019-08-14 Tom Tromey <tromey@adacore.com>
5768
5769 * darwin-nat.c: Include gdbarch.h.
5770 * darwin-nat-info.c: Include gdbarch.h.
5771
5772 2019-08-13 Tom Tromey <tom@tromey.com>
5773
5774 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5775 Remove.
5776 * tui/tui-data.c (tui_initialize_static_data): Update.
5777
5778 2019-08-13 Tom Tromey <tom@tromey.com>
5779
5780 * tui/tui-winsource.h (struct tui_exec_info_window)
5781 <~tui_exec_info_window, maybe_allocate_content, get_content,
5782 m_content>: Remove.
5783 (struct tui_source_window_base) <set_exec_info_content,
5784 show_exec_info_content>: Don't declare.
5785 * tui/tui-winsource.c
5786 (tui_exec_info_window::maybe_allocate_content): Remove.
5787 (tui_source_window_base::update_exec_info): Rename from
5788 set_exec_info_content.
5789 (tui_source_window_base::show_exec_info_content)
5790 (tui_source_window_base::update_exec_info): Remove.
5791
5792 2019-08-13 Tom Tromey <tom@tromey.com>
5793
5794 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5795 declare.
5796 * tui/tui-winsource.c (tui_update_source_window_as_is)
5797 (tui_update_source_windows_with_addr, tui_erase_source_content):
5798 Update.
5799 (tui_clear_exec_info_content): Remove.
5800
5801 2019-08-13 Tom Tromey <tom@tromey.com>
5802
5803 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5804 declare.
5805 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5806 call tui_erase_exec_info_content.
5807 (tui_clear_exec_info_content): Rename from
5808 tui_erase_exec_info_content.
5809 (tui_clear_exec_info_content): Delete.
5810
5811 2019-08-13 Tom Tromey <tom@tromey.com>
5812
5813 * tui/tui-winsource.h (struct tui_source_window_base)
5814 <show_exec_info_content>: Declare.
5815 (tui_show_exec_info_content): Don't declare.
5816 * tui/tui-winsource.c
5817 (tui_source_window_base::show_exec_info_content): Rename from
5818 tui_show_exec_info_content.
5819 (tui_source_window_base::update_exec_info): Update.
5820
5821 2019-08-13 Tom Tromey <tom@tromey.com>
5822
5823 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5824 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5825 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5826 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5827 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5828 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5829 ... here.
5830
5831 2019-08-13 Tom Tromey <tom@tromey.com>
5832
5833 * tui/tui-winsource.h (struct tui_source_window_base)
5834 <update_exec_info>: Declare.
5835 (tui_update_exec_info): Don't declare.
5836 * tui/tui-winsource.c (tui_update_source_window_as_is)
5837 (tui_source_window_base::refresh_all)
5838 (tui_update_all_breakpoint_info): Update.
5839 (tui_source_window_base::update_exec_info): Rename from
5840 tui_update_exec_info.
5841 * tui/tui-stack.c (tui_show_frame_info): Update.
5842
5843 2019-08-13 Tom Tromey <tom@tromey.com>
5844
5845 * tui/tui-winsource.h (struct tui_source_window_base)
5846 <set_exec_info_content>: Declare.
5847 (tui_set_exec_info_content): Don't declare.
5848 * tui/tui-winsource.c
5849 (tui_source_window_base::set_exec_info_content): Rename from
5850 tui_set_exec_info_content.
5851 (tui_update_exec_info): Update.
5852
5853 2019-08-13 Tom Tromey <tom@tromey.com>
5854
5855 * tui/tui-winsource.h (struct tui_source_window_base)
5856 <show_source_content>: Declare.
5857 (tui_show_source_content): Don't declare.
5858 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5859 (tui_source_window_base::show_source_content): Rename from
5860 tui_show_source_content.
5861 (tui_source_window_base::refresh_all): Update.
5862 * tui/tui-layout.c (show_source_disasm_command)
5863 (show_source_or_disasm_and_command): Update.
5864
5865 2019-08-13 Tom Tromey <tom@tromey.com>
5866
5867 * tui/tui-winsource.c (tui_erase_source_content)
5868 (tui_show_source_content, tui_source_window_base::refresh_all):
5869 Update.
5870 * tui/tui-wingeneral.h
5871 (tui_check_and_display_highlight_if_needed): Don't declare.
5872 * tui/tui-wingeneral.c
5873 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5874 check_and_display_highlight_if_needed.
5875 * tui/tui-win.c (tui_rehighlight_all)
5876 (tui_win_info::make_visible_with_new_height): Update.
5877 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5878 (tui_data_window::erase_data_content)
5879 (tui_data_window::display_all_data): Update.
5880 * tui/tui-data.h (struct tui_win_info)
5881 <check_and_display_highlight_if_needed>: Declare.
5882
5883 2019-08-13 Tom Tromey <tom@tromey.com>
5884
5885 * tui/tui-win.c (tui_resize_all): Call
5886 tui_delete_invisible_windows.
5887 * tui/tui-layout.c (show_layout): Call
5888 tui_delete_invisible_windows.
5889 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5890 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5891
5892 2019-08-13 Tom Tromey <tom@tromey.com>
5893
5894 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5895 tui_add_win_to_layout.
5896
5897 2019-08-13 Tom Tromey <tom@tromey.com>
5898
5899 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5900 * tui/tui-layout.c (tui_default_win_height): Now static.
5901
5902 2019-08-13 Tom Tromey <tom@tromey.com>
5903
5904 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5905 single switch.
5906 (show_source_disasm_command, show_source_or_disasm_and_command):
5907 Don't check current layout.
5908
5909 2019-08-13 Tom Tromey <tom@tromey.com>
5910
5911 * tui/tui-wingeneral.c (make_all_visible): Remove.
5912 (tui_make_all_invisible): Simplify.
5913 * tui/tui-layout.c (tui_make_all_invisible): Move from
5914 tui-wingeneral.c; simplify.
5915 (show_layout): Hoist call to tui_make_all_invisible.
5916 (show_data): Don't call tui_make_all_invisible.
5917
5918 2019-08-13 Tom Tromey <tom@tromey.com>
5919
5920 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5921 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5922
5923 2019-08-13 Tom Tromey <tom@tromey.com>
5924
5925 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5926 tui-data.c.
5927 (show_source_disasm_command, show_data)
5928 (show_source_or_disasm_and_command): Don't use
5929 tui_set_current_layout_to.
5930 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5931 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5932 tui-layout.c.
5933 (tui_set_current_layout_to): Remove.
5934
5935 2019-08-13 Tom Tromey <tom@tromey.com>
5936
5937 * tui/tui-layout.c (tui_set_layout): Update.
5938 * tui/tui-data.h (struct tui_layout_def): Remove.
5939 (tui_layout_def): Don't declare.
5940 * tui/tui-data.c (layout_def): Remove.
5941 (tui_layout_def): Remove.
5942
5943 2019-08-13 Tom Tromey <tom@tromey.com>
5944
5945 * tui/tui-winsource.h (struct tui_source_window_base)
5946 <clear_detail>: No longer "override".
5947 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5948 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5949 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5950 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5951 Remove.
5952 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5953
5954 2019-08-13 Tom Tromey <tromey@adacore.com>
5955
5956 * tracepoint.c: Don't include readline.h or history.h.
5957
5958 2019-08-12 Tom Tromey <tom@tromey.com>
5959
5960 * configure: Rebuild.
5961 * configure.ac: Check for readline 7.
5962 * NEWS: Mention readline 7 requirement.
5963 * README: Update.
5964
5965 2019-08-12 Tom Tromey <tom@tromey.com>
5966
5967 * mingw-hdep.c (gdb_select): Remove readline hack.
5968
5969 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5970
5971 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5972 when the function fails.
5973
5974 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5975
5976 * s390-tdep.c (s390_type_align): New function.
5977 (s390_gdbarch_init): Set it as type_align gdbarch method.
5978
5979 2019-08-09 Tom de Vries <tdevries@suse.de>
5980
5981 PR gdb/24591
5982 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5983 pc_low with relocation offset.
5984
5985 2019-08-07 Tom Tromey <tromey@adacore.com>
5986
5987 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5988 (print_frame_args): Update.
5989 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5990 Update.
5991 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5992 * frame.h (struct frame_arg): Add initializers.
5993 <error>: Now a unique_xmalloc_ptr.
5994
5995 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5996
5997 * NEWS: Expand the Pointer Authentication entry.
5998 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5999 (aarch64_frame_unmask_lr): ... to this.
6000 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6001 Call aarch64_frame_unmask_lr.
6002 * frame.c (struct frame_info): Add "masked" variable.
6003 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6004 (fprint_frame): Check for masked pc.
6005 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6006 declarations.
6007 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6008 * stack.c (print_frame): Check for masked pc.
6009
6010 2019-08-06 Tom Tromey <tom@tromey.com>
6011
6012 * stabsread.c (patch_block_stabs, read_one_struct_field)
6013 (read_enum_type): Use obstack_strndup.
6014 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6015 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6016 * dwarf2read.c (guess_full_die_structure_name)
6017 (anonymous_struct_prefix): Use obstack_strndup.
6018 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6019 * c-exp.y (yylex): Use obstack_strndup.
6020 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6021 (write_var_or_type): Use obstack_strndup.
6022
6023 2019-08-06 Tom Tromey <tom@tromey.com>
6024
6025 * symfile.c (reread_symbols): Use obstack_strdup.
6026 * stabsread.c (read_type): Use obstack_strdup.
6027 * gdb_obstack.h (obstack_strdup): New overload.
6028 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6029 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6030 (dwarf2_canonicalize_name): Use obstack_strdup.
6031 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6032 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6033 Use obstack_strdup.
6034
6035 2019-08-06 Tom Tromey <tom@tromey.com>
6036
6037 * gdb_obstack.h (obstack_strdup): Define.
6038 * gdb_obstack.c (obstack_strdup): Don't define.
6039
6040 2019-08-06 Tom Tromey <tom@tromey.com>
6041
6042 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6043 obstack_strdup.
6044 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6045 obstack_strdup.
6046 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6047 * stabsread.c (common_block_start): Use obstack_strdup.
6048 * objfiles.c (set_objfile_main_name, objfile): Use
6049 obstack_strdup.
6050 * namespace.c (add_using_directive): Use obstack_strdup.
6051 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6052 * jit.c (finalize_symtab): Use obstack_strdup.
6053 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6054 (guess_partial_die_structure_name, partial_die_info::fixup)
6055 (dwarf2_name): Use obstack_strdup.
6056 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6057 obstack_strdup.
6058 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6059 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6060 obstack_strdup.
6061 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6062
6063 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6064
6065 * unittests/help-doc-selftests.c: New file.
6066 * Makefile.in: Add the new file.
6067
6068 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6069
6070 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6071 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6072 the full first line, except when FOR_VALUE_PREFIX. In this case,
6073 the trailing '.' is not output, and the first character is uppercased.
6074 (print_help_for_command): Update call to print_doc_line.
6075 (print_doc_of_command): Likewise.
6076 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6077 * cli/cli-option.c (append_indented_doc): Do not append newline.
6078 (build_help_option): Append newline after first appended_indented_doc
6079 only if a second call is done.
6080 (build_help): Append 2 new lines before each option, except the first
6081 one.
6082 * compile/compile.c (_initialize_compile): Add new lines after
6083 %OPTIONS%, when not at the end of the help.
6084 Change help doc or code
6085 producing the help doc to respect the invariants.
6086 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6087 Also removed the new line after 'Options:', as all other commands
6088 do not put an empty line between 'Options:' and the first option.
6089 * printcmd.c (_initialize_printcmd): Likewise.
6090 * stack.c (_initialize_stack): Likewise.
6091 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6092 incorrectly telling COMMAND is optional.
6093 * ada-lang.c (_initialize_ada_language): Change help doc or code
6094 producing the help doc to respect the invariants.
6095 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6096 * breakpoint.c (_initialize_breakpoint): Likewise.
6097 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6098 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6099 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6100 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6101 _initialize_cli_style): Likewise.
6102 * corelow.c (core_target_info): Likewise.
6103 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6104 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6105 * filesystem.c (_initialize_filesystem): Likewise.
6106 * frame.c (_initialize_frame): Likewise.
6107 * gnu-nat.c (add_task_commands): Likewise.
6108 * infcall.c (_initialize_infcall): Likewise.
6109 * infcmd.c (_initialize_infcmd): Likewise.
6110 * interps.c (_initialize_interpreter): Likewise.
6111 * language.c (_initialize_language): Likewise.
6112 * linux-fork.c (_initialize_linux_fork): Likewise.
6113 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6114 * maint.c (_initialize_maint_cmds): Likewise.
6115 * memattr.c (_initialize_mem): Likewise.
6116 * printcmd.c (_initialize_printcmd): Likewise.
6117 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6118 _RegEx): Likewise.
6119 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6120 * record-btrace.c (_initialize_record_btrace): Likewise.
6121 * record-full.c (_initialize_record_full): Likewise.
6122 * record.c (_initialize_record): Likewise.
6123 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6124 * regcache.c (_initialize_regcache): Likewise.
6125 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6126 _initialize_remote): Likewise.
6127 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6128 * serial.c (_initialize_serial): Likewise.
6129 * skip.c (_initialize_step_skip): Likewise.
6130 * source.c (_initialize_source): Likewise.
6131 * stack.c (_initialize_stack): Likewise.
6132 * symfile.c (_initialize_symfile): Likewise.
6133 * symtab.c (_initialize_symtab): Likewise.
6134 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6135 * top.c (init_main): Likewise.
6136 * tracefile-tfile.c (tfile_target_info): Likewise.
6137 * tracepoint.c (_initialize_tracepoint): Likewise.
6138 * tui/tui-win.c (_initialize_tui_win): Likewise.
6139 * utils.c (add_internal_problem_command): Likewise.
6140 * valprint.c (value_print_option_defs): Likewise.
6141
6142 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
6143
6144 PR build/24886
6145 * configure.ac: Drop enable-libmcheck support.
6146 * configure, config.in: Rebuild.
6147 * libmcheck.m4: Remove.
6148 * acinclude.m4: Don't include it.
6149 * Makefile.in: Don't distribute it.
6150 * top.c (print_gdb_configuration): Don't mention it.
6151
6152 2019-08-06 Tom Tromey <tom@tromey.com>
6153
6154 * utils.c (set_output_style): Sometimes pass stream to
6155 emit_style_escape.
6156 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6157 * record-btrace.c (btrace_insn_history): Update.
6158 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6159 method.
6160 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6161 Update initializers.
6162 <m_uiout>: New field.
6163 <m_di>: Move lower.
6164 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6165 Remove "uiout" parameter.
6166 (dump_insns): Update.
6167 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6168 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6169
6170 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6171
6172 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6173 (error_in_psymtab_expansion): Likewise.
6174 (lookup_symbol_via_quick_fns): Likewise.
6175 (basic_lookup_transparent_type_quick): Likewise.
6176 (basic_lookup_transparent_type_1): Likewise.
6177
6178 2019-08-06 Tom Tromey <tromey@adacore.com>
6179
6180 * source.c (last_source_error): Now bool.
6181 (print_source_lines_base): Make "noprint" bool. Only open
6182 source file when last_source_visited changes.
6183
6184 2019-08-06 Tom Tromey <tromey@adacore.com>
6185
6186 * annotate.c (annotate_source_line): Use g_source_cache.
6187 * source-cache.c (source_cache::get_plain_source_lines): Change
6188 parameters. Populate m_offset_cache.
6189 (source_cache::ensure): New method.
6190 (source_cache::get_line_charpos): New method.
6191 (extract_lines): Move lower. Change parameters.
6192 (source_cache::get_source_lines): Move lower.
6193 * source-cache.h (class source_cache): Update comment.
6194 <get_line_charpos>: New method.
6195 <get_source_lines>: Update comment.
6196 <clear>: Clear m_offset_cache.
6197 <get_plain_source_lines>: Change parameters.
6198 <ensure>: New method
6199 <m_offset_cache>: New member.
6200 * source.c (forget_cached_source_info_for_objfile): Update.
6201 (info_source_command): Use g_source_cache.
6202 (find_source_lines, open_source_file_with_line_charpos): Remove.
6203 (print_source_lines_base, search_command_helper): Use g_source_cache.
6204 * source.h (open_source_file_with_line_charpos): Don't declare.
6205 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6206 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6207 Use g_source_cache.
6208
6209 2019-08-06 Tom Tromey <tromey@adacore.com>
6210
6211 * source-cache.c (source_cache::get_plain_source_lines):
6212 Remove "first_line" and "last_line" parameters.
6213 (source_cache::get_source_lines): Cache plain text.
6214 * source-cache.h (class source_cache)
6215 <get_plain_source_lines>: Update.
6216
6217 2019-08-06 Tom Tromey <tromey@adacore.com>
6218
6219 * source-cache.c (extract_lines): No longer a method.
6220 Changed type of parameter. Include final newline.
6221 (selftests::extract_lines_test): New function.
6222 (_initialize_source_cache): Likewise.
6223 * source-cache.h (class source_cache)
6224 <extract_lines>: Don't declare.
6225
6226 2019-08-06 Tom Tromey <tromey@adacore.com>
6227
6228 * breakpoint.c (init_breakpoint_sal): Update.
6229 (breakpoint): Update.
6230 * breakpoint.h (struct breakpoint) <filter>: Now a
6231 unique_xmalloc_ptr.
6232
6233 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6234
6235 * NEWS: Mention dictionary access on blocks.
6236 * python/py-block.c (blpy_getitem): New function.
6237 (block_object_as_mapping): New struct.
6238 (block_object_type): Use new struct for tp_as_mapping field.
6239
6240 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6241
6242 * objfiles.h (objfile): Add a comment describing partial symbols.
6243
6244 2019-08-05 Tom Tromey <tromey@adacore.com>
6245
6246 * compile/compile.c (_initialize_compile): Use _(), not N_().
6247 * thread.c (_initialize_thread): Use _(), not N_().
6248 * stack.c (_initialize_stack): Use _(), not N_().
6249 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6250
6251 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6252
6253 * dwarf2read.c (struct dw2_symtab_iterator):
6254 <want_specific_block>: Remove.
6255 <block_index>: Change type to gdb::optional.
6256 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6257 change type of BLOCK_INDEX parameter to gdb::optional.
6258 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6259 (dw2_lookup_symbol): Don't pass argument for
6260 WANT_SPECIFIC_BLOCK.
6261 (dw2_expand_symtabs_for_function): Don't pass argument for
6262 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6263 (class dw2_debug_names_iterator)
6264 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6265 parameter, change BLOCK_INDEX type to gdb::optional.
6266 <m_want_specific_block>: Remove.
6267 <m_block_index>: Change type to gdb::optional.
6268 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6269 gdb::optional. Re-write in function of gdb::optional.
6270 (dw2_debug_names_lookup_symbol): Don't pass argument for
6271 WANT_SPECIFIC_BLOCK.
6272 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6273 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6274 BLOCK_INDEX.
6275
6276 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6277
6278 * NEWS: Mention changes to "info sources" command.
6279
6280 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6281
6282 * symtab.c (filename_partial_match_opts): New struct type.
6283 (struct output_source_filename_data): New members
6284 regexp, c_regexp, partial_match.
6285 (output_source_filename): Use new members to decide to print file.
6286 (info_sources_option_defs): New variable.
6287 (make_info_sources_options_def_group, print_info_sources_header,
6288 info_sources_command_completer):
6289 New functions.
6290 (info_sources_command): Read new optional arguments.
6291 (_initialize_symtab): Update info sources help.
6292
6293 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6294
6295 * ada-lang.c (exception_support_info_v0): Renamed from...
6296 (default_exception_support_info): ... this. Create new
6297 definition for v1.
6298 (ada_has_this_exception_support): Look up catch_handlers_sym.
6299 (ada_exception_support_info_sniffer): Try v0 after default.
6300
6301 2019-08-01 Tom Tromey <tromey@adacore.com>
6302
6303 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6304 gdbarch.h.
6305
6306 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6307
6308 * s12z-tdep.c: Fix include path for s12z-opc.h.
6309
6310 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6311
6312 * NEWS: Require GNU make 3.82.
6313
6314 2019-07-16 Tom Tromey <tom@tromey.com>
6315
6316 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6317 declare.
6318
6319 2019-07-30 Tom Tromey <tromey@adacore.com>
6320
6321 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6322
6323 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6324
6325 * printcmd.c (print_address_symbolic): Print negative offsets.
6326 (build_address_symbolic): Force signed arithmetic when computing
6327 offset.
6328
6329 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6330
6331 PR/24474: Add a function to lookup static variables.
6332 * NEWS: Mention this new function.
6333 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6334 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6335 * python/python.c (python_GdbMethods): Add new function.
6336
6337 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6338
6339 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6340 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6341 (objfpy_lookup_static_symbol): New function.
6342 (objfile_object_methods): Add new functions.
6343
6344 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6345
6346 * NEWS: Mention 'set|show print frame-info'. Mention new
6347 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6348 backtrace argument. Mention that python frame filtering code
6349 is now consistent with what 'backtrace' command prints.
6350
6351 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6352
6353 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6354 comments.
6355 (print_frame_info_auto, print_frame_info_source_line,
6356 print_frame_info_location, print_frame_info_source_and_location,
6357 print_frame_info_location_and_address, print_frame_info_short_location):
6358 New declarations.
6359 (struct frame_print_options): New member print_frame_info.
6360 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6361 * stack.h (get_user_print_what_frame_info): New declaration.
6362 (frame_show_address): New declaration.
6363 * stack.c (print_frame_arguments_choices): New value 'presence'.
6364 (print_frame_info_auto, print_frame_info_source_line,
6365 print_frame_info_location, print_frame_info_source_and_location,
6366 print_frame_info_location_and_address, print_frame_info_short_location,
6367 print_frame_info_choices, print_frame_info_print_what): New definitions.
6368 (print_frame_args): Only print dots for args if print frame-arguments
6369 is 'presence'.
6370 (frame_print_option_defs): New element for "frame-info".
6371 (get_user_print_what_frame_info): New function.
6372 (frame_show_address): Make non static. Move comment to stack.h.
6373 (print_frame_info_to_print_what): New function.
6374 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6375 to decide what to print.
6376 (backtrace_command_1): Handle the new print_frame_arguments_presence
6377 value.
6378 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6379 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6380 (py_print_frame): In non-mi mode, use LOCATION as default for
6381 print_what, similarly to frame information printed directly by
6382 backtrace command. Handle frame-info user option in non MI mode.
6383
6384 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6385
6386 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6387 Add case for debugging 32-bit target on 64-bit host. Revise
6388 comment.
6389
6390 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6391
6392 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6393 instead of find_function_entry_range_from_pc.
6394
6395 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6396
6397 * stack.c (find_frame_funname): Remove code which preferred
6398 minsym over symtab sym in "certain pathological cases".
6399
6400 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6401 parameter. Change type of "do_demangle" to bool.
6402 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6403 Pass suitable "prefer_sym_over_minsym" flag to
6404 build_address_symbolic(). Don't output "+" for negative offsets.
6405 * printcmd.c (print_address_symbolic): Update invocation of
6406 build_address_symbolic to include a "prefer_sym_over_minsym"
6407 flag.
6408 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6409 Restrict cases in which use of minimal symbol is preferred to that
6410 of a found symbol. Update comments.
6411
6412 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6413 for entry pc when entry pc is out of range for that FDE.
6414
6415 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6416
6417 PR gdb/24839:
6418 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6419 type.
6420
6421 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6422
6423 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6424 this function's Python signature.
6425
6426
6427 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6428
6429 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6430 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6431 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6432 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6433 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6434
6435
6436 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6437
6438 * h8300-tdep.c (h8300_register_name_common): New.
6439 h8300_register_name): Use h8300_register_name_common.
6440 (h8300s_register_name): Likewise.
6441 (h8300sx_register_name): Likewise.
6442 (h8300h_register_nam): New.
6443 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6444
6445
6446 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6447
6448 * arm-tdep.c (arm_skip_cmse_entry): New function.
6449 (arm_is_sgstubs_section): New function.
6450 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6451
6452 2019-07-22 Tom Tromey <tom@tromey.com>
6453
6454 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6455 Don't self-assign.
6456
6457 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6458
6459 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6460 type_print.
6461
6462 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6463
6464 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6465 so that GDB doesn't match any msymbols when searching in the
6466 TYPES_DOMAIN.
6467 (print_symbol_info): Print using typedef_print or type_print based
6468 on the type of the symbol. Add updated FIXME comment moved from...
6469 (_initialize_symtab): ... move and update FIXME comment to above.
6470
6471 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6472
6473 * NEWS: Mention adding -q option to "info types".
6474 * symtab.c (struct info_types_options): New struct.
6475 (info_types_options_defs): New variable.
6476 (make_info_types_options_def_group): New function.
6477 (info_types_command): Use gdb::option framework to parse options.
6478 (info_types_command_completer): New function.
6479 (_initialize_symtab): Extend the help text on "info types" and
6480 register command completer.
6481
6482 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6483
6484 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6485 (lookup_symbol_in_objfile): Change int to block_enum and add a
6486 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6487
6488 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6489
6490 * MAINTAINERS (Write After Approval): Add self.
6491
6492 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6493
6494 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6495 instruction to the dummy code region.
6496
6497 2019-07-19 Tom Tromey <tromey@adacore.com>
6498
6499 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6500 (ARGSUSED, PARAMS, __func__): Remove rules.
6501
6502 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6503
6504 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6505 * features/arm/arm-with-iwmmxt.c: Remove.
6506 * features/arm/arm-with-iwmmxt.xml: Remove.
6507 * features/arm/arm-with-m-fpa-layout.c: Remove.
6508 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6509 * features/arm/arm-with-m-vfp-d16.c: Remove.
6510 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6511 * features/arm/arm-with-m.c: Remove.
6512 * features/arm/arm-with-m.xml: Remove.
6513 * features/arm/arm-with-neon.c: Remove.
6514 * features/arm/arm-with-neon.xml: Remove.
6515 * features/arm/arm-with-vfpv2.c: Remove.
6516 * features/arm/arm-with-vfpv2.xml: Remove.
6517 * features/arm/arm-with-vfpv3.c: Remove.
6518 * features/arm/arm-with-vfpv3.xml: Remove.
6519
6520 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6521
6522 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6523
6524 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6525
6526 * arch/aarch32.c (aarch32_create_target_description): Create
6527 target descriptions using features.
6528 * arch/arm.c (arm_create_target_description)
6529 (arm_create_mprofile_target_description): Likewise.
6530 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6531
6532 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6533
6534 * Makefile.in: Add new files.
6535 * aarch32-tdep.c: New file.
6536 * aarch32-tdep.h: New file.
6537 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6538 Call aarch32_read_description.
6539 * arch/aarch32.c: New file.
6540 * arch/aarch32.h: New file.
6541 * arch/arm.c (arm_create_target_description)
6542 (arm_create_mprofile_target_description): New function.
6543 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6544 (arm_create_target_description)
6545 (arm_create_mprofile_target_description): New declaration.
6546 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6547 read_description functions.
6548 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6549 Likewise.
6550 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6551 * arm-tdep.c (tdesc_arm_list): New variable.
6552 (arm_register_g_packet_guesses): Call create description functions.
6553 (arm_read_description) (arm_read_mprofile_description): New
6554 function.
6555 * arm-tdep.h (arm_read_description)
6556 (arm_read_mprofile_description): Add declaration.
6557 * configure.tgt: Add new files.
6558
6559 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6560
6561 * top.c (new_ui_command): Open specified terminal just once.
6562
6563 2019-07-18 Tom Tromey <tromey@adacore.com>
6564
6565 * symtab.c (main_name): Constify return type.
6566 * symfile.c (set_initial_language): Update.
6567 * symtab.h (main_name): Constify return type.
6568
6569 2019-07-17 Tom Tromey <tom@tromey.com>
6570
6571 * tui/tui-winsource.c (tui_update_source_window)
6572 (tui_update_source_window_as_is)
6573 (tui_update_source_windows_with_line): Remove return.
6574 * tui/tui-disasm.c (tui_show_disassem)
6575 (tui_show_disassem_and_update_source): Remove return.
6576 * tui/tui.c (tui_reset): Remove return.
6577 * tui/tui-wingeneral.c
6578 (tui_check_and_display_highlight_if_needed): Remove return.
6579
6580 2019-07-17 Tom Tromey <tom@tromey.com>
6581
6582 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6583
6584 2019-07-17 Tom Tromey <tom@tromey.com>
6585
6586 * tui/tui-winsource.h (struct tui_exec_info_window)
6587 (struct tui_source_window_base): Move from tui-data.h.
6588 * tui/tui-winsource.c: Move many method definitions from
6589 elsewhere. Remove "structuring" comments.
6590 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6591 (tui_source_window_base::refresh_window): Move to
6592 tui-winsource.c.
6593 * tui/tui-win.c (tui_source_window_base::refresh_all)
6594 (tui_source_window_base::update_tab_width)
6595 (tui_source_window_base::set_new_height)
6596 (tui_source_window_base::do_make_visible_with_new_height): Move to
6597 tui-winsource.c.
6598 * tui/tui-source.h: Update.
6599 * tui/tui-source.c (tui_source_window_base::reset): Move to
6600 tui-winsource.c.
6601 * tui/tui-disasm.h: Update.
6602 * tui/tui-data.h (struct tui_exec_info_window): Move to
6603 tui-winsource.h.
6604 (struct tui_source_window_base): Likewise.
6605 * tui/tui-data.c (tui_source_window_base::clear_detail)
6606 (tui_source_window_base, ~tui_source_window_base): Move to
6607 tui-winsource.c.
6608
6609 2019-07-17 Tom Tromey <tom@tromey.com>
6610
6611 * tui/tui-win.c (tui_resize_all)
6612 (tui_source_window_base::update_tab_width)
6613 (tui_adjust_win_heights): Update.
6614 (tui_win_info::make_invisible_and_set_new_height): Rename from
6615 make_invisible_and_set_new_height.
6616 * tui/tui-data.h (struct tui_win_info)
6617 <make_invisible_and_set_new_height>: New method.
6618
6619 2019-07-17 Tom Tromey <tom@tromey.com>
6620
6621 * tui/tui.c: Update.
6622 * tui/tui-source.h (struct tui_source_window): Move from
6623 tui-data.h.
6624 * tui/tui-layout.c: Update.
6625 * tui/tui-disasm.c: Update.
6626 * tui/tui-data.h (struct tui_source_window): Move to
6627 tui-source.h.
6628
6629 2019-07-17 Tom Tromey <tom@tromey.com>
6630
6631 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6632 tui-data.h.
6633 * tui/tui-data.h (struct tui_disasm_window): Move to
6634 tui-disasm.h.
6635
6636 2019-07-17 Tom Tromey <tom@tromey.com>
6637
6638 * tui/tui-regs.h (struct tui_data_item_window): Move from
6639 tui-data.h.
6640 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6641 * tui/tui-data.h (struct tui_data_item_window): Move to
6642 tui-regs.h.
6643 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6644
6645 2019-07-17 Tom Tromey <tom@tromey.com>
6646
6647 * tui/tui.c: Update.
6648 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6649 (tui_cmd_window::max_height): Move to tui-command.c.
6650 * tui/tui-layout.c: Update.
6651 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6652 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6653 tui-command.c.
6654 * tui/tui-command.h (struct tui_cmd_window): Move from
6655 tui-data.h.
6656 * tui/tui-command.c: Remove "structuring" comments.
6657 (tui_cmd_window::clear_detail)
6658 (tui_cmd_window::do_make_visible_with_new_height)
6659 (tui_cmd_window::max_height): Move from elsewhere.
6660
6661 2019-07-17 Tom Tromey <tom@tromey.com>
6662
6663 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6664 Now static.
6665 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6666 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6667
6668 2019-07-17 Tom Tromey <tom@tromey.com>
6669
6670 * tui/tui.c: Update.
6671 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6672 tui-regs.c.
6673 * tui/tui-windata.h: Remove file.
6674 * tui/tui-windata.c: Remove file.
6675 * tui/tui-win.c (tui_data_window::set_new_height)
6676 (tui_data_window::do_make_visible_with_new_height): Move to
6677 tui-regs.c.
6678 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6679 * tui/tui-regs.c: Remove "structuring" comments.
6680 (tui_data_window::first_data_item_displayed)
6681 (tui_data_window::delete_data_content_windows)
6682 (tui_data_window::erase_data_content)
6683 (tui_data_window::display_all_data)
6684 (tui_data_window::refresh_all)
6685 (tui_data_window::do_scroll_vertical)
6686 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6687 (tui_data_window::do_make_visible_with_new_height)
6688 (tui_data_window::refresh_window): Move from elsewhere.
6689 (_initialize_tui_regs): Move to end of file.
6690 * tui/tui-layout.c: Update.
6691 * tui/tui-hooks.c: Update.
6692 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6693 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6694 tui-regs.c.
6695 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6696
6697 2019-07-17 Tom Tromey <tom@tromey.com>
6698
6699 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6700 seen.
6701
6702 2019-07-17 Tom Tromey <tom@tromey.com>
6703
6704 * tui/tui-win.c (tui_source_window_base::set_new_height)
6705 (tui_source_window_base::do_make_visible_with_new_height): Use
6706 m_has_locator field directly.
6707 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6708 method.
6709 (struct tui_source_window_base) <has_locator>: Likewise.
6710
6711 2019-07-17 Tom Tromey <tom@tromey.com>
6712
6713 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6714 Don't declare.
6715 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6716 Remove.
6717 * tui/tui-win.c (tui_source_window_base::set_new_height)
6718 (tui_source_window_base::set_new_height)
6719 (make_invisible_and_set_new_height)
6720 (tui_source_window_base::do_make_visible_with_new_height)
6721 (tui_source_window_base::do_make_visible_with_new_height):
6722 Update.
6723 * tui/tui-layout.c (show_source_disasm_command, show_data)
6724 (show_source_or_disasm_and_command): Update.
6725 * tui/tui-layout.c (show_layout): Update.
6726
6727 2019-07-17 Tom Tromey <tom@tromey.com>
6728
6729 * tui/tui-layout.c (make_data_window): Remove.
6730 (show_data): Unify creation and re-initialization cases.
6731
6732 2019-07-17 Tom Tromey <tom@tromey.com>
6733
6734 * tui/tui-layout.c (make_source_window, make_disasm_window):
6735 Remove.
6736 (show_data): Unify creation and re-initialization cases.
6737
6738 2019-07-17 Tom Tromey <tom@tromey.com>
6739
6740 * tui/tui-layout.c (make_command_window): Remove.
6741 (show_source_disasm_command, show_source_or_disasm_and_command):
6742 Unify creation and re-initialization cases.
6743
6744 2019-07-17 Tom Tromey <tom@tromey.com>
6745
6746 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6747 creation and re-initialization cases.
6748
6749 2019-07-17 Tom Tromey <tom@tromey.com>
6750
6751 * tui/tui-regs.c (tui_get_register): Return void.
6752
6753 2019-07-17 Tom Tromey <tom@tromey.com>
6754
6755 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6756 Simplify.
6757
6758 2019-07-17 Tom Tromey <tom@tromey.com>
6759
6760 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6761 resetting.
6762
6763 2019-07-17 Tom Tromey <tom@tromey.com>
6764
6765 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6766 * tui/tui-regs.c (tui_reg_layout): New function.
6767 (tui_show_registers, tui_reg_command): Use it.
6768 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6769 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6770 parameters.
6771 (tui_layout_command): Remove.
6772
6773 2019-07-17 Tom Tromey <tom@tromey.com>
6774
6775 * tui/tui-layout.h (tui/tui-layout): Return void.
6776 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6777
6778 2019-07-17 Tom Tromey <tom@tromey.com>
6779
6780 * tui/tui-layout.c (show_source_disasm_command, show_data):
6781 Update.
6782 (reset_locator): Remove.
6783 (show_source_or_disasm_and_command): Update.
6784
6785 2019-07-17 Tom Tromey <tom@tromey.com>
6786
6787 * tui/tui-source.c (tui_source_window_base::reset): Remove
6788 win_type parameter.
6789 * tui/tui-layout.c (make_command_window, make_source_window)
6790 (make_disasm_window, make_data_window)
6791 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6792 (reset_locator, show_source_or_disasm_and_command): Update.
6793 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6794 win_type parameter.
6795 (struct tui_source_window_base) <reset>: Likewise.
6796
6797 2019-07-17 Tom Tromey <tom@tromey.com>
6798
6799 * tui/tui-layout.c (show_source_disasm_command): Use
6800 reset_locator.
6801 (reset_locator): New function.
6802 (init_and_make_win): Remove.
6803 (show_source_or_disasm_and_command): Use reset_locator.
6804
6805 2019-07-17 Tom Tromey <tom@tromey.com>
6806
6807 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6808 condition.
6809 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6810 Remove condition.
6811 * tui/tui-source.c (tui_source_window_base::reset): New method.
6812 * tui/tui-layout.c (make_command_window): Don't call
6813 init_and_make_win.
6814 (make_source_window, make_disasm_window): Don't call
6815 make_source_or_disasm_window.
6816 (make_data_window): Don't call init_and_make_win. Change calling
6817 convention.
6818 (show_source_disasm_command, show_data): Simplify.
6819 (make_source_or_disasm_window): Remove.
6820 (show_source_or_disasm_and_command): Simplify.
6821 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6822 (struct tui_source_window_base) <reset>: Likewise.
6823 <execution_info>: Remove initializer.
6824 * tui/tui-data.c (tui_source_window_base): Initialize
6825 execution_info.
6826
6827 2019-07-17 Tom Tromey <tom@tromey.com>
6828
6829 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6830 variable.
6831
6832 2019-07-17 Tom Tromey <tom@tromey.com>
6833
6834 * tui/tui.c (tui_rl_other_window): Update.
6835 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6836 superclass method first. Always iterate over regs_content.
6837 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6838 method.
6839 * tui/tui-win.c (tui_set_focus_command): Update.
6840
6841 2019-07-17 Tom Tromey <tom@tromey.com>
6842
6843 * tui/tui-win.c (tui_set_focus_command): Rename from
6844 tui_set_focus. Call tui_enable.
6845 (tui_set_focus_command): Remove.
6846
6847 2019-07-17 Tom Tromey <tom@tromey.com>
6848
6849 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6850 refresh_window.
6851 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6852 touchwin.
6853 (tui_data_window::refresh_window): Call refresh_window on data
6854 items. Always call superclass refresh_window.
6855 (tui_win_info::refresh): Remove.
6856 (tui_source_window_base::refresh_window): Update.
6857 (tui_refresh_all): Update.
6858 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6859 refresh_window.
6860 (show_source_or_disasm_and_command): Likewise.
6861 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6862 (struct tui_source_window_base) <refresh>: Likewise.
6863
6864 2019-07-17 Tom Tromey <tom@tromey.com>
6865
6866 * tui/tui-winsource.c (tui_clear_source_content)
6867 (tui_show_source_content): Update.
6868 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6869 whether content is empty.
6870 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6871 Remove.
6872
6873 2019-07-17 Tom Tromey <tom@tromey.com>
6874
6875 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6876 window's contents.
6877 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6878 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6879
6880 2019-07-17 Tom Tromey <tom@tromey.com>
6881
6882 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6883 (struct tui_data_item_window): Update.
6884
6885 2019-07-17 Tom Tromey <tom@tromey.com>
6886
6887 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6888 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6889 defines.
6890
6891 2019-07-17 Tom Tromey <tom@tromey.com>
6892
6893 * tui/tui-winsource.h (tui_erase_source_content)
6894 (tui_clear_source_content): Remove "display_prompt" parameter.
6895 * tui/tui-winsource.c (tui_update_source_window_as_is)
6896 (tui_update_source_windows_with_addr): Update.
6897 (tui_clear_source_content): Remove "display_prompt" parameter.
6898 (tui_erase_source_content): Likewise. Simplify.
6899 (tui_show_source_content): Update.
6900 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6901 * tui/tui-stack.c (tui_show_frame_info): Update.
6902 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6903 Remove defines.
6904
6905 2019-07-17 Tom Tromey <tom@tromey.com>
6906
6907 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6908 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6909 parameter.
6910 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6911 parameter.
6912
6913 2019-07-17 Tom Tromey <tom@tromey.com>
6914
6915 * tui/tui-winsource.c (tui_clear_source_content)
6916 (tui_show_source_content, tui_show_exec_info_content)
6917 (tui_clear_exec_info_content): Update.
6918 * tui/tui-stack.c (tui_show_locator_content): Update.
6919 (tui_show_frame_info): Update.
6920 * tui/tui-source.h (tui_source_window): Don't declare.
6921 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6922 from tui_source_is_displayed.
6923 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6924 Remove field.
6925 (struct tui_source_window_base) <content_in_use>: New field. Now
6926 bool.
6927 (struct tui_source_window) <showing_source_p>: New method.
6928 (TUI_SRC_WIN): Change cast.
6929 * tui/tui-data.c (tui_initialize_static_data): Update.
6930
6931 2019-07-17 Tom Tromey <tom@tromey.com>
6932
6933 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6934 location_matches_p.
6935 * tui/tui-source.c (tui_source_window::location_matches_p): New
6936 method.
6937 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6938 method.
6939 * tui/tui-data.h (struct tui_source_window_base)
6940 <location_matches_p>: New method.
6941 (struct tui_source_window, struct tui_disasm_window)
6942 <location_matches_p>: Likewise.
6943
6944 2019-07-17 Tom Tromey <tom@tromey.com>
6945
6946 * tui/tui-win.c (tui_set_win_height_command): Rename from
6947 tui_set_win_height.
6948 (tui_set_win_height_command): Remove.
6949
6950 2019-07-17 Tom Tromey <tom@tromey.com>
6951
6952 * tui/tui-source.c (tui_source_window): New constructor. Add
6953 observer.
6954 (~tui_source_window): New destructor.
6955 (tui_source_window::style_changed): New method.
6956 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6957 (tui_attach_detach_observers): Update.
6958 * tui/tui-data.h (struct tui_source_window): Make constructor not
6959 inline. Add destructor.
6960 (struct tui_source_window) <style_changed>: New method.
6961 <m_observable>: New member.
6962
6963 2019-07-17 Tom Tromey <tom@tromey.com>
6964
6965 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6966 * tui/tui-win.c (tui_resize_all): Fix typo.
6967
6968 2019-07-17 Tom Tromey <tom@tromey.com>
6969
6970 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6971 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6972 (tui_refresh_all): Remove "list" parameter. Use foreach.
6973 * tui/tui-win.c (window_name_completer): Use foreach.
6974 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6975 (update_tab_width): Likewise.
6976 * tui/tui-layout.c (show_layout): Update.
6977 * tui/tui-data.h (class tui_window_iterator): New.
6978 (struct all_tui_windows): New.
6979 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6980
6981 2019-07-17 Tom Tromey <tom@tromey.com>
6982
6983 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6984 parameter. Don't reference globals.
6985 (tui_reg_command): Update.
6986
6987 2019-07-17 Tom Tromey <tom@tromey.com>
6988
6989 * tui/tui-regs.c (tui_show_registers): Simplify.
6990
6991 2019-07-17 Tom Tromey <tom@tromey.com>
6992
6993 * tui/tui-regs.c (tui_show_registers): Update.
6994 (tui_show_register_group): Add win_info parameter.
6995
6996 2019-07-17 Tom Tromey <tom@tromey.com>
6997
6998 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6999 Rename from tui_display_reg_element_at_line.
7000 (tui_data_window::display_registers_from_line): Update.
7001 * tui/tui-data.h (struct tui_data_window)
7002 <display_reg_element_at_line>: New method.
7003
7004 2019-07-17 Tom Tromey <tom@tromey.com>
7005
7006 * tui/tui-regs.h (tui_display_registers_from)
7007 (tui_display_registers_from_line): Don't declare.
7008 * tui/tui-windata.c (tui_data_window::display_all_data)
7009 (tui_data_window::refresh_all)
7010 (tui_data_window::do_scroll_vertical): Update.
7011 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7012 from tui_display_registers_from.
7013 (tui_display_reg_element_at_line): Update.
7014 (tui_data_window::display_registers_from_line): Rename from
7015 tui_display_registers_from_line.
7016 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7017 display_registers_from_line>: New methods.
7018
7019 2019-07-17 Tom Tromey <tom@tromey.com>
7020
7021 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7022 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7023 from tui_erase_data_content.
7024 (tui_data_window::display_all_data)
7025 (tui_data_window::refresh_all)
7026 (tui_data_window::do_scroll_vertical): Update.
7027 * tui/tui-regs.c (tui_show_registers): Update.
7028 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7029 New method.
7030
7031 2019-07-17 Tom Tromey <tom@tromey.com>
7032
7033 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7034 declare.
7035 * tui/tui-windata.c
7036 (tui_data_window::delete_data_content_windows): Rename from
7037 tui_delete_data_content_windows.
7038 (tui_data_window::display_all_data)
7039 (tui_data_window::do_scroll_vertical): Update.
7040 * tui/tui-data.h (struct tui_data_window)
7041 <delete_data_content_windows>: New method.
7042
7043 2019-07-17 Tom Tromey <tom@tromey.com>
7044
7045 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7046 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7047
7048 2019-07-17 Tom Tromey <tom@tromey.com>
7049
7050 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7051 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7052 from tui_display_all_data.
7053 * tui/tui-win.c
7054 (tui_data_window::do_make_visible_with_new_height): Update.
7055 * tui/tui-regs.c (tui_show_registers): Update.
7056 * tui/tui-layout.c (tui_set_layout): Update.
7057 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7058 method.
7059
7060 2019-07-17 Tom Tromey <tom@tromey.com>
7061
7062 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7063 * tui/tui-windata.c (tui_display_data_from): Remove.
7064 (tui_data_window::refresh_all): Update.
7065
7066 2019-07-17 Tom Tromey <tom@tromey.com>
7067
7068 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7069 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7070 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7071 tui_display_registers_from_line.
7072 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7073 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7074 "force_display" parameter.
7075
7076 2019-07-17 Tom Tromey <tom@tromey.com>
7077
7078 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7079 declare.
7080 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7081 Rename from tui_first_reg_element_no_inline.
7082 (tui_display_reg_element_at_line)
7083 (tui_display_registers_from_line): Update.
7084 * tui/tui-data.h (struct tui_data_window)
7085 <first_reg_element_no_inline>: New method.
7086
7087 2019-07-17 Tom Tromey <tom@tromey.com>
7088
7089 * tui/tui-windata.c (tui_display_data_from)
7090 (tui_data_window::do_scroll_vertical): Update.
7091 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7092 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7093 Rename from tui_line_from_reg_element_no.
7094 (tui_display_registers_from_line): Update.
7095 * tui/tui-data.h (struct tui_data_window)
7096 <line_from_reg_element_no>: New method.
7097
7098 2019-07-17 Tom Tromey <tom@tromey.com>
7099
7100 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7101 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7102 tui_last_regs_line_no.
7103 (tui_display_reg_element_at_line)
7104 (tui_display_registers_from_line): Update.
7105 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7106 method.
7107
7108 2019-07-17 Tom Tromey <tom@tromey.com>
7109
7110 PR tui/24722:
7111 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7112 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7113 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7114 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7115 (tui_update_breakpoint_info): Likewise.
7116 * tui/tui-hooks.c (tui_event_create_breakpoint)
7117 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7118 Update.
7119
7120 2019-07-17 Tom Tromey <tom@tromey.com>
7121
7122 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7123
7124 2019-07-17 Tom Tromey <tom@tromey.com>
7125
7126 * tui/tui-winsource.c (tui_update_source_window_as_is)
7127 (tui_update_source_windows_with_addr): Update.
7128 * tui/tui-source.h (tui_set_source_content)
7129 (tui_show_symtab_source): Add "win_info" parameter.
7130 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7131 parameter.
7132 (tui_show_symtab_source): Likewise.
7133
7134 2019-07-17 Tom Tromey <tom@tromey.com>
7135
7136 * tui/tui-wingeneral.c
7137 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7138
7139 2019-07-17 Tom Tromey <tom@tromey.com>
7140
7141 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7142 (struct tui_cmd_window) <can_scroll>: New method.
7143 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7144 method.
7145
7146 2019-07-17 Tom Tromey <tromey@adacore.com>
7147
7148 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7149 do_field_signed>: Rename. Change type of "value".
7150 * ui-out.c (ui_out::field_signed): Rename from field_int.
7151 Change type of "value".
7152 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7153 type of "value".
7154 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7155 do_field_int. Change type of "value".
7156 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7157 do_field_int. Change type of "value".
7158 * tracepoint.c (trace_status_mi, tfind_1)
7159 (print_one_static_tracepoint_marker): Update.
7160 * thread.c (print_thread_info_1, print_selected_thread_frame):
7161 Update.
7162 * stack.c (print_frame, print_frame_info): Update.
7163 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7164 Update.
7165 * source.c (print_source_lines_base): Update.
7166 * skip.c (info_skip_command): Update.
7167 * record-btrace.c (btrace_ui_out_decode_error)
7168 (btrace_call_history_src_line): Update.
7169 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7170 Update.
7171 * progspace.c (print_program_space): Update.
7172 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7173 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7174 do_field_int. Change type of "value".
7175 * mi/mi-out.c (mi_ui_out::do_table_begin)
7176 (mi_ui_out::do_table_header): Update.
7177 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7178 type of "value".
7179 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7180 (mi_cmd_data_list_changed_registers, output_register)
7181 (mi_cmd_data_read_memory, mi_load_progress)
7182 (mi_cmd_trace_frame_collected): Update.
7183 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7184 Update.
7185 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7186 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7187 (mi_cmd_var_list_children, varobj_update_one): Update.
7188 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7189 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7190 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7191 * inferior.c (print_inferior): Update.
7192 * gdb_bfd.c (print_one_bfd): Update.
7193 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7194 Update.
7195 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7196 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7197 do_field_int. Change type of "value".
7198 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7199 do_field_int. Change type of "value".
7200 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7201 (print_one_breakpoint_location, print_it_catch_fork)
7202 (print_one_catch_fork, print_it_catch_vfork)
7203 (print_one_catch_vfork, print_it_catch_solib)
7204 (print_it_catch_exec, print_it_ranged_breakpoint)
7205 (print_mention_watchpoint, print_mention_masked_watchpoint)
7206 (bkpt_print_it, update_static_tracepoint): Update.
7207 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7208 * break-catch-syscall.c (print_it_catch_syscall): Update.
7209 * ada-tasks.c (print_ada_task_info): Update.
7210 * ada-lang.c (print_it_exception, print_mention_exception):
7211 Update.
7212
7213 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7214
7215 PR breakpoints/24541
7216 * gdbarch.c: Regenerate.
7217 * gdbarch.h: Regenerate.
7218 * gdbarch.sh: Adjust return type and parameter types for
7219 'stap_adjust_register'.
7220 (i386_stap_adjust_register): Adjust signature and return new
7221 register name.
7222 * stap-probe.c (stap_parse_register_operand): Adjust use of
7223 'gdbarch_stap_adjust_register'.
7224
7225 2019-07-17 Tom Tromey <tromey@adacore.com>
7226
7227 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7228 declare VEC.
7229 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7230 std::vector.
7231 (struct s390_process_info): Add initializers.
7232 (s390_add_process): Use new.
7233 (s390_linux_nat_target::low_forget_process): Use delete.
7234 (s390_linux_nat_target::low_new_fork)
7235 (s390_linux_nat_target::stopped_by_watchpoint)
7236 (s390_linux_nat_target::low_prepare_to_resume)
7237 (s390_linux_nat_target::insert_watchpoint)
7238 (s390_linux_nat_target::insert_hw_breakpoint)
7239 (s390_linux_nat_target::remove_watchpoint)
7240 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7241
7242 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7243
7244 * aarch64-fbsd-nat.c: Include regcache.h.
7245 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7246 argument.
7247 (aarch64_fbsd_nat_target::fetch_registers)
7248 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7249 variable.
7250 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7251
7252 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7253
7254 * fbsd-nat.c: Include gdbarch.h.
7255
7256 2019-07-15 Tom Tromey <tromey@adacore.com>
7257
7258 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7259
7260 2019-07-15 Tom Tromey <tromey@adacore.com>
7261
7262 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7263 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7264 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7265 * cli-out.c (cli_ui_out::do_field_int): New method.
7266 * ui-out.c (ui_out::field_unsigned): New method.
7267 * symfile.c (generic_load): Use field_unsigned.
7268 (print_transfer_performance): Likewise.
7269 * record-btrace.c (ui_out_field_uint): Remove.
7270 (btrace_call_history_insn_range, btrace_call_history): Use
7271 field_unsigned.
7272 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7273 field_unsigned.
7274 * ui-out.h (class ui_out) <field_unsigned>: New method.
7275 <do_field_unsigned>: Likewise.
7276
7277 2019-07-15 Tom Tromey <tromey@adacore.com>
7278
7279 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7280 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7281 * target.c (flash_erase_command): Use field_string.
7282 * infrun.c (print_signal_received_reason): Use field_string.
7283 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7284 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7285 field_string.
7286 * ada-tasks.c (print_ada_task_info): Use field_string.
7287
7288 2019-07-15 Tom Tromey <tromey@adacore.com>
7289
7290 * target.c (flash_erase_command): Use field_core_addr.
7291 * symfile.c (generic_load): Use field_core_addr.
7292 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7293 Use field_core_addr.
7294 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7295 field_core_addr.
7296
7297 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7298
7299 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7300 value if its desired type is smaller than a CORE_ADDR and signed.
7301
7302 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7303
7304 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7305 of changes to field names, and use new is_reference field to
7306 decide if a property is a reference or not.
7307 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7308 field.
7309 (struct dwarf2_property_baton): Update header comment, rename
7310 'referenced_type' to 'property_type' and update comments.
7311 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7312 default property type, store in property baton, update to take
7313 accound of renamed field.
7314 (read_func_scope): Update call to attr_to_dynamic_prop.
7315 (read_array_type): Likewise.
7316 (dwarf2_per_cu_addr_sized_int_type): New function.
7317 (read_subrange_index_type): Move type finding code to
7318 dwarf2_per_cu_addr_sized_int_type.
7319 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7320 (dwarf2_per_cu_addr_type): New function.
7321 (set_die_type): Update calls to attr_to_dynamic_prop.
7322
7323 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7324
7325 * dwarf2read.c (read_subrange_index_type): New function.
7326 (read_subrange_type): Move code into new function and call it.
7327 * gdbtypes.c (create_range_type): Add some asserts.
7328
7329 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7330
7331 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7332 update return statements.
7333 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7334 declaration, and update comment to match.
7335 * gdbtypes.c (resolve_dynamic_array): Update call to
7336 dwarf2_evaluate_property to match new return type.
7337
7338 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7339
7340 * valarith.c (value_subscripted_rvalue): Change lowerbound
7341 parameter type from int to LONGEST.
7342 * value.h (value_subscripted_rvalue): Likewise in declaration.
7343
7344 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7345
7346 * cli/cli-utils.c (info_print_command_completer): New function.
7347 * cli/cli-utils.h: Add 'completer.h' include, and forward
7348 declaration for 'struct cmd_list_element'.
7349 (info_print_command_completer): Declare.
7350 * stack.c (_initialize_stack): Add completer for 'info locals' and
7351 'info args'.
7352 * symtab.c (_initialize_symtab): Add completer for 'info
7353 variables' and 'info functions'.
7354 * NEWS: Mention completion for additional info commands.
7355
7356 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7357
7358 * cli/cli-utils.c (extract_info_print_args): Delete.
7359 (extract_arg_maybe_quoted): Delete.
7360 (info_print_options_defs): New variable.
7361 (make_info_print_options_def_group): New function.
7362 (extract_info_print_options): Define new function.
7363 * cli/cli-utils.h (extract_info_print_args): Delete.
7364 (struct info_print_options): New structure.
7365 (extract_info_print_options): Declare new function.
7366 * stack.c (info_locals_command): Update to use new
7367 extract_info_print_options, also add a header comment.
7368 (info_args_command): Likewise.
7369 * symtab.c (info_variables_command): Likewise.
7370 (info_functions_command): Likewise.
7371
7372 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7373
7374 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7375 to extract string arguments.
7376 * common/common-utils.c (extract_string_maybe_quoted): New function.
7377 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7378
7379 2019-07-11 Tom Tromey <tromey@adacore.com>
7380
7381 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7382 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7383 * top.h (gdbinit): Don't declare.
7384 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7385 into...
7386 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7387 * top.c (gdb_init): Don't call init_cli_cmds.
7388 (gdbinit): Remove.
7389 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7390
7391 2019-07-11 Tom Tromey <tromey@adacore.com>
7392
7393 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7394 after it has been moved.
7395
7396 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7397
7398 * valops.c (value_must_coerce_to_target): Change return type to
7399 bool.
7400 * value.h (value_must_coerce_to_target): Likewise.
7401
7402 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7403
7404 * breakpoint.c (is_hardware_watchpoint): Remove
7405 forward-declaration.
7406 (is_masked_watchpoint): Change return type to bool.
7407 (is_tracepoint): Likewise.
7408 (is_breakpoint): Likewise.
7409 (is_hardware_watchpoint): Likewise.
7410 (is_watchpoint): Likewise.
7411 (is_no_memory_software_watchpoint): Likewise.
7412 (is_catchpoint): Likewise.
7413 (breakpoint_1): Make FILTER parameter's return type bool.
7414 is_masked_watchpoint): Change return type to bool.
7415 (save_breakpoints): Make FILTER parameter's return type bool.
7416 * breakpoint.h (is_breakpoint): Change return type to bool.
7417 (is_watchpoint): Likewise.
7418 (is_catchpoint): Likewise.
7419 (is_tracepoint): Likewise.
7420
7421 2019-07-10 Tom Tromey <tom@tromey.com>
7422
7423 * defs.h: Don't include gdbarch.h.
7424 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7425 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7426 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7427 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7428 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7429 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7430 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7431 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7432 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7433 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7434 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7435 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7436 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7437 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7438 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7439 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7440 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7441 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7442 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7443 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7444 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7445 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7446 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7447 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7448 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7449 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7450 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7451
7452 2019-07-10 Tom Tromey <tromey@adacore.com>
7453
7454 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7455 * breakpoint.c (init_ada_exception_breakpoint): Register as
7456 bp_catchpoint.
7457 (print_one_breakpoint_location, print_one_breakpoint): Use
7458 is_ada_exception_catchpoint.
7459 * ada-lang.c (class ada_catchpoint_location): Pass
7460 bp_loc_software_breakpoint to bp_location constructor.
7461 (is_ada_exception_catchpoint): New function.
7462
7463 2019-07-10 Tom Tromey <tromey@adacore.com>
7464
7465 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7466 VEC.
7467 (struct arm_exidx_entry): New method operator<.
7468 (struct arm_exidx_data) <section_maps>: Change type.
7469 (arm_exidx_data_free): Remove.
7470 (arm_exidx_data_key): Change type. Move lower.
7471 (arm_exidx_new_objfile): Update.
7472 (arm_compare_exidx_entries): Remove.
7473 (arm_find_exidx_entry, _initialize_arm_tdep)
7474
7475 2019-07-10 Tom Tromey <tromey@adacore.com>
7476
7477 * solib-spu.c (ocl_program_data_key): Change type.
7478 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7479 Update.
7480
7481 2019-07-10 Tom Tromey <tromey@adacore.com>
7482
7483 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7484 (struct solib_aix_inferior_data) <library_list>: Change type.
7485 (solib_aix_inferior_data_handle): Change type.
7486 (get_solib_aix_inferior_data): Update.
7487 (solib_aix_free_library_list): Remove.
7488 (library_list_start_library): Update.
7489 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7490 return type.
7491 (solib_aix_get_library_list)
7492 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7493 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7494
7495 2019-07-10 Tom Tromey <tromey@adacore.com>
7496
7497 * solib-dsbt.c (struct dsbt_info): Add initializers.
7498 (solib_dsbt_pspace_data): Change type.
7499 (dsbt_pspace_data_cleanup): Remove.
7500 (get_dsbt_info, _initialize_dsbt_solib): Update.
7501
7502 2019-07-10 Tom Tromey <tromey@adacore.com>
7503
7504 * spu-tdep.c (spu_overlay_data): Change type.
7505 (spu_get_overlay_table, spu_overlay_new_objfile)
7506 (_initialize_spu_tdep): Update.
7507
7508 2019-07-10 Tom Tromey <tromey@adacore.com>
7509
7510 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7511 destructor.
7512 (dbx_objfile_data_key): Change type and declare later.
7513 (DBX_SYMFILE_INFO): Rewrite.
7514 * dbxread.c (dbx_objfile_data_key): Change type.
7515 (dbx_symfile_init): Update.
7516 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7517 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7518 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7519
7520 2019-07-10 Tom Tromey <tromey@adacore.com>
7521
7522 * jit.c (jit_program_space_key): Change type. Move lower.
7523 (get_jit_program_space_data): Update.
7524 (jit_program_space_data_cleanup): Remove.
7525 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7526 Update.
7527 (struct jit_program_space_data): Add initializers.
7528
7529 2019-07-10 Tom Tromey <tromey@adacore.com>
7530
7531 * solib-darwin.c (struct darwin_info): Add initializers.
7532 (solib_darwin_pspace_data): Change type.
7533 (darwin_pspace_data_cleanup): Remove.
7534 (get_darwin_info, _initialize_darwin_solib): Update.
7535
7536 2019-07-10 Tom Tromey <tromey@adacore.com>
7537
7538 * remote-sim.c (struct sim_inferior_data): Add initializers,
7539 constructor, and destructor.
7540 (sim_inferior_data_key): Change type. Move lower.
7541 (check_for_duplicate_sim_descriptor): Update.
7542 (get_sim_inferior_data): Use new. Update.
7543 (~sim_inferior_data_cleanup): Rename from
7544 sim_inferior_data_cleanup. Simplify.
7545 (gdbsim_close_inferior, simulator_command)
7546 (sim_command_completer, _initialize_remote_sim): Update.
7547 (next_pid, INITIAL_PID): Move earlier.
7548
7549 2019-07-10 Tom Tromey <tromey@adacore.com>
7550
7551 * python/python-internal.h (create_thread_object): Return
7552 gdbpy_ref.
7553 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7554 * python/py-inferior.c (struct threadlist_entry): Add
7555 constructor.
7556 <thread_obj>: Now a gdbpy_ref.
7557 (thread_to_thread_object): Update.
7558 (add_thread_object): Use new.
7559 (delete_thread_object): Use delete.
7560 (infpy_threads): Update.
7561 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7562 GIL.
7563
7564 2019-07-10 Tom Tromey <tromey@adacore.com>
7565
7566 * valops.c (value_cast): Specialize error message for Ada.
7567
7568 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7569
7570 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7571
7572 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7573
7574 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7575 bpstat_should_step): Return bool, adjust comments.
7576 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7577 bpstat_should_step): Likewise.
7578
7579 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7580
7581 * features/Makefile: Use feature target descriptions for Arm.
7582 * features/arm/arm-core.c: Generate new file.
7583 * features/arm/arm-fpa.c: Likewise.
7584 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7585 * features/arm/arm-m-profile.c: Likewise.
7586 * features/arm/arm-vfpv2.c: Likewise.
7587 * features/arm/arm-vfpv3.c: Likewise.
7588 * features/arm/xscale-iwmmxt.c: Likewise.
7589 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7590
7591 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7592
7593 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7594 ptrace earlier.
7595
7596 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7597
7598 * features/aarch64-pauth.c: Regenerate.
7599
7600 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7601
7602 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7603 bool.
7604 (bpstat_what): Use false instead of 0.
7605
7606 2019-07-09 Pedro Alves <palves@redhat.com>
7607
7608 * break-catch-throw.c (is_exception_catchpoint): New.
7609 * breakpoint.c (print_one_breakpoint_location): New parameter
7610 'raw_loc'. Handle it. Use
7611 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7612 looking at the breakpoint's type.
7613 (print_one_breakpoint): If handling "maint info breakpoints", also
7614 print locations of exception catchpoints.
7615 * breakpoint.h (is_exception_catchpoint): Declare.
7616
7617 2019-07-09 Pedro Alves <palves@redhat.com>
7618
7619 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7620 "addr" field.
7621 (allocate_location_exception_catchpoint): New.
7622 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7623 (initialize_throw_catchpoint_ops): Install
7624 allocate_location_exception_catchpoint as allocate_location
7625 method.
7626 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7627 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7628 bp_loc_other.
7629 (breakpoint_address_is_meaningful): Delete.
7630 (bl_address_is_meaningful): New.
7631 (breakpoint_locations_match): Adjust comment.
7632 (bp_location_from_bp_type): New, factored out of...
7633 (bp_location::bp_location(breakpoint *)): ... this.
7634 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7635 factored out of...
7636 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7637 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7638 breakpoint_address_is_meaningful.
7639 (bp_locations_compare): Adjust comment.
7640 (update_global_location_list): Use bl_address_is_meaningful
7641 instead of breakpoint_address_is_meaningful.
7642 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7643 explicit.
7644 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7645 * python/py-breakpoint.c (bppy_get_location): No longer check
7646 whether location is null.
7647
7648 2019-07-09 Pedro Alves <palves@redhat.com>
7649
7650 PR c++/15468
7651 * breakpoint.c (print_one_breakpoint_location): Remove
7652 single-location assert.
7653
7654 2019-07-09 Tom Tromey <tom@tromey.com>
7655
7656 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7657 * configure: Rebuild.
7658 * configure.ac: Change common to gdbsupport.
7659 * gdbsupport: Rename from common.
7660 * acinclude.m4: Change common to gdbsupport.
7661 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7662 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7663 gdbsupport.
7664 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7665 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7666 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7667 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7668 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7669 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7670 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7671 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7672 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7673 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7674 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7675 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7676 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7677 coff-pe-read.c, command.h, compile/compile-c-support.c,
7678 compile/compile-c.h, compile/compile-cplus-symbols.c,
7679 compile/compile-cplus-types.c, compile/compile-cplus.h,
7680 compile/compile-loc2c.c, compile/compile.c, completer.c,
7681 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7682 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7683 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7684 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7685 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7686 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7687 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7688 features/aarch64-core.c, features/aarch64-fpu.c,
7689 features/aarch64-pauth.c, features/aarch64-sve.c,
7690 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7691 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7692 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7693 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7694 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7695 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7696 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7697 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7698 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7699 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7700 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7701 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7702 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7703 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7704 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7705 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7706 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7707 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7708 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7709 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7710 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7711 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7712 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7713 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7714 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7715 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7716 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7717 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7718 minsyms.c, mips-linux-tdep.c, namespace.h,
7719 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7720 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7721 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7722 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7723 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7724 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7725 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7726 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7727 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7728 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7729 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7730 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7731 procfs.c, producer.c, progspace.h, psymtab.h,
7732 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7733 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7734 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7735 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7736 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7737 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7738 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7739 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7740 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7741 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7742 target-memory.c, target.c, target.h, target/waitstatus.c,
7743 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7744 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7745 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7746 unittests/array-view-selftests.c,
7747 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7748 unittests/common-utils-selftests.c,
7749 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7750 unittests/format_pieces-selftests.c,
7751 unittests/function-view-selftests.c,
7752 unittests/lookup_name_info-selftests.c,
7753 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7754 unittests/mkdir-recursive-selftests.c,
7755 unittests/observable-selftests.c,
7756 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7757 unittests/parse-connection-spec-selftests.c,
7758 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7759 unittests/scoped_fd-selftests.c,
7760 unittests/scoped_mmap-selftests.c,
7761 unittests/scoped_restore-selftests.c,
7762 unittests/string_view-selftests.c, unittests/style-selftests.c,
7763 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7764 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7765 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7766 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7767 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7768 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7769
7770 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7771
7772 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7773 bool value.
7774 (decode_digits_ordinary): Set explicit_line field in sal.
7775 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7776 symtab_and_line that was set on an explicit line number in
7777 assembler code. Do always update the recorded symtab and line if
7778 we do skip the prologue.
7779
7780 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7781
7782 * breakpoint.c (set_breakpoint_location_function): Remove
7783 explicit_loc parameter.
7784 (momentary_breakpoint_from_master): Update call to
7785 set_breakpoint_location_function.
7786 (add_location_to_breakpoint): Likewise.
7787
7788 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7789
7790 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7791 required features based on default bfd type when no specific bfd
7792 is present.
7793
7794 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7795
7796 * NEWS: Mention that GDB printf and eval commands can now print
7797 C-style and Ada-style convenience var strings without
7798 calling the inferior.
7799 * printcmd.c (printf_c_string): Locally print GDB internal var
7800 instead of transiting via the inferior.
7801 (printf_wide_c_string): Likewise.
7802
7803 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7804
7805 PR breakpoints/25011
7806 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7807
7808 2019-07-04 Tom Tromey <tom@tromey.com>
7809
7810 PR tui/24724:
7811 * tui/tui-winsource.c (tui_clear_source_content): Update.
7812 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7813 (tui_update_breakpoint_info): Update.
7814 (tui_set_exec_info_content): Update.
7815 * tui/tui-source.c (tui_set_source_content_nil): Update.
7816 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7817 has_break.
7818 * tui/tui-data.h (enum tui_bp_flag): New.
7819 (tui_bp_flags): New enum flags type.
7820 (struct tui_source_element) <break_mode>: Change type. Rename
7821 from has_break.
7822 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7823 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7824 constants.
7825 * tui/tui-winsource.h: Fix comment.
7826
7827 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7828
7829 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7830 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7831 (store_fpregs_to_thread)
7832 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7833 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7834 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7835 (IWMMXT_REGS_SIZE): Add define.
7836 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7837 (fetch_vfp_regs, store_vfp_regs)
7838 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7839 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7840
7841 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7842
7843 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7844 defines.
7845 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7846 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7847 (ARM_INT_REGISTER_SIZE): ...to this.
7848 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7849 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7850 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7851 (arm_linux_collect_gregset, supply_nwfpe_register)
7852 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7853 defines.
7854 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7855 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7856 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7857 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7858 (arm_return_in_memory, arm_store_return_value)
7859 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7860 (arm_record_ld_st_multiple): Likewise.
7861 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7862 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7863
7864 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7865
7866 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7867 AARCH64_DISPLACED_MODIFIED_INSNS.
7868 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7869 (aarch64_displaced_step_copy_insn): Likewise.
7870 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7871 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7872 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7873 ARM_DISPLACED_MODIFIED_INSNS.
7874 * arm-tdep.c (arm_gdbarch_init): Likewise.
7875 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7876 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7877 (struct arm_displaced_step_closure): Use
7878 ARM_DISPLACED_MODIFIED_INSNS.
7879
7880 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7881
7882 * features/Makefile: Remove unused xml files.
7883 * features/aarch64.xml: Remove.
7884 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7885 * features/i386/amd64-avx-avx512.xml: Remove.
7886 * features/i386/amd64-avx-linux.xml: Remove.
7887 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7888 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7889 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7890 * features/i386/amd64-avx-mpx.xml: Remove.
7891 * features/i386/amd64-avx.xml: Remove.
7892 * features/i386/amd64-linux.xml: Remove.
7893 * features/i386/amd64-mpx-linux.xml: Remove.
7894 * features/i386/amd64-mpx.xml: Remove.
7895 * features/i386/amd64.xml: Remove.
7896 * features/i386/i386-avx-avx512-linux.xml: Remove.
7897 * features/i386/i386-avx-avx512.xml: Remove.
7898 * features/i386/i386-avx-linux.xml: Remove.
7899 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7900 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7901 * features/i386/i386-avx-mpx-linux.xml: Remove.
7902 * features/i386/i386-avx-mpx.xml: Remove.
7903 * features/i386/i386-avx.xml: Remove.
7904 * features/i386/i386-linux.xml: Remove.
7905 * features/i386/i386-mmx-linux.xml: Remove.
7906 * features/i386/i386-mmx.xml: Remove.
7907 * features/i386/i386-mpx-linux.xml: Remove.
7908 * features/i386/i386-mpx.xml: Remove.
7909 * features/i386/i386.xml: Remove.
7910 * features/i386/x32-avx-avx512-linux.xml: Remove.
7911 * features/i386/x32-avx-linux.xml: Remove.
7912 * features/i386/x32-linux.xml: Remove.
7913
7914 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7915
7916 * regformats/aarch64.dat: Remove.
7917 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7918 * regformats/i386/amd64-avx-linux.dat: Remove.
7919 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7920 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7921 * regformats/i386/amd64-linux.dat: Remove.
7922 * regformats/i386/amd64-mpx-linux.dat: Remove.
7923 * regformats/i386/amd64.dat: Remove.
7924 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7925 * regformats/i386/i386-avx-linux.dat: Remove.
7926 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7927 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7928 * regformats/i386/i386-linux.dat: Remove.
7929 * regformats/i386/i386-mmx-linux.dat: Remove.
7930 * regformats/i386/i386-mpx-linux.dat: Remove.
7931 * regformats/i386/i386.dat: Remove.
7932 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7933 * regformats/i386/x32-avx-linux.dat: Remove.
7934 * regformats/i386/x32-linux.dat: Remove.
7935
7936 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7937
7938 * aarch64-tdep.c: Remove xml self tests.
7939 * amd64-linux-tdep.c: Likewise.
7940 * amd64-tdep.c: Likewise.
7941 * i386-linux-tdep.c: Likewise.
7942 * i386-tdep.c: Likewise.
7943
7944 2019-07-03 Pedro Alves <palves@redhat.com>
7945
7946 PR cli/24732
7947 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7948 (pipe_cmd_option_defs): New.
7949 (make_pipe_cmd_options_def_group): New.
7950 (pipe_command): Use gdb::option::process_options.
7951 (pipe_command_completer): New function.
7952 (_initialize_cli_cmds): Install completer for "pipe" command.
7953
7954 2019-07-03 Pedro Alves <palves@redhat.com>
7955
7956 * cli/cli-option.c (union option_value) <string>: New field.
7957 (struct option_def_and_value): Add ctor, move ctor, dtor and
7958 use DISABLE_COPY_AND_ASSIGN.
7959 (option_def_and_value::clear_value): New.
7960 (parse_option, save_option_value_in_ctx, get_val_type_str)
7961 (add_setshow_cmds_for_options): Handle var_string.
7962 * cli-option.h (union option_def::var_address) <string>: New
7963 field.
7964 (struct string_option_def): New.
7965 * maint-test-options.c (struct test_options_opts): Add default
7966 ctor and use DISABLE_COPY_AND_ASSIGN.
7967 <string_opt>: New field.
7968 (test_options_opts::~test_options_opts): New.
7969 (test_options_opts::dump): Also dump "-string".
7970 (test_options_option_defs): Install "string.
7971
7972 2019-07-03 Pedro Alves <palves@redhat.com>
7973
7974 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7975 option_value with a null enumeration.
7976 (complete_options): Save the option values in the context.
7977 (save_option_value_in_ctx): New, factored out from ...
7978 (process_options): ... here.
7979 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7980 of the function.
7981 * maint-test-options.c (test_options_opts::dump): New, factored
7982 out from ...
7983 (maintenance_test_options_command_mode): ... here.
7984 (maintenance_test_options_command_completion_result): Delete.
7985 (maintenance_test_options_command_completion_text): Update
7986 comment.
7987 (maintenance_show_test_options_completion_result): Change
7988 prototype. Just print
7989 maintenance_test_options_command_completion_text.
7990 (save_completion_result): New.
7991 (maintenance_test_options_completer_mode): Pass options context to
7992 complete_options, and then save a dump.
7993 (_initialize_maint_test_options): Use add_cmd to install "maint
7994 show test-options-completion-result".
7995
7996 2019-07-03 Pedro Alves <palves@redhat.com>
7997
7998 * NEWS (New commands): Mention "with" and "maint with".
7999 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8000 (with_command, with_command_completer): New.
8001 (pipe_command): Adjust to new repeat_previous
8002 interface.
8003 (_initialize_cli_cmds): Install the "with" command and its "w"
8004 alias.
8005 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8006 declarations.
8007 * cli/cli-setshow.c (parse_cli_var_uinteger)
8008 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8009 argument strings for all var_types.
8010 (get_setshow_command_value_string): New, factored out from ...
8011 (do_show_command): ... this.
8012 * cli/cli-setshow.h: Include <string>.
8013 (get_setshow_command_value_string): Declare.
8014 * command.h (repeat_previous): Now returns const char *. Adjust
8015 comment.
8016 * maint.c: Include "cli/cli-cmds.h".
8017 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8018 (_initialize_maint_cmds): Register the "maintenance with" command.
8019 * top.c (repeat_previous): Move bits from pipe_command here:
8020 Return the saved command line, if any; error out if there's no
8021 command to relaunch.
8022
8023 2019-07-03 Pedro Alves <palves@redhat.com>
8024
8025 * NEWS (New commands): Mention "maint set/show test-settings"
8026 instead of "maint test-settings".
8027 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8028 (maintenance_test_settings_set_list): Rename to ...
8029 (maintenance_set_test_settings_list): ... this.
8030 (maintenance_test_settings_show_list): Rename to ...
8031 (maintenance_show_test_settings_list): ... this.
8032 (maintenance_test_settings_cmd): Delete.
8033 (maintenance_test_settings_set_cmd): ...
8034 (maintenance_set_test_settings_cmd): ... this.
8035 (maintenance_test_settings_show_cmd): ...
8036 (maintenance_show_test_settings_cmd): ... this.
8037 (maintenance_test_settings_show_value_cmd):
8038 (maintenance_show_test_settings_value_cmd): ... this.
8039 (_initialize_maint_test_settings): No longer install the "maint
8040 test-settings" prefix command. Rename "maint test-settings set"
8041 to "maint set test-settings", and "maint test-settings show" to
8042 "maint show test-settings". Adjust all subcommands.
8043
8044 2019-07-03 Pedro Alves <palves@redhat.com>
8045
8046 * maint-test-settings.c: Fix file's intro comment. Replace all
8047 references to "test-options" with references to "test-settings",
8048 in comments.
8049
8050 2019-07-03 Pedro Alves <palves@redhat.com>
8051
8052 * maint-test-settings.c (maintenance_test_settings_xxx)
8053 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8054 New.
8055 (maintenance_test_settings_enums): Use them.
8056 (maintenance_test_settings_enum): Default to
8057 maintenance_test_settings_xxx.
8058 (_initialize_maint_test_settings): Initialize
8059 MAINTENANCE_TEST_SETTINGS_FILENAME.
8060
8061 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8062
8063 * breakpoint.h (remove_breakpoints_inf): Change return type to
8064 void, move function documentation here.
8065 * breakpoint.c (remove_breakpoints_inf): Change return type to
8066 void, move function documentation to header.
8067
8068 2019-07-02 Pedro Alves <palves@redhat.com>
8069
8070 * NEWS (Completion improvements): Mention "info threads".
8071 * thread.c (struct info_threads_opts, info_threads_option_defs)
8072 (make_info_threads_options_def_group): New.
8073 (info_threads_command): Use gdb::option::process_options.
8074 (info_threads_command_completer): New.
8075 (_initialize_thread): Use gdb::option::build_help to build the
8076 help text for "info threads".
8077
8078 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8079
8080 * defs.h (generic_load): Move from here...
8081 * symfile.h (generic_load): ... to here. Rename name parameter
8082 to args.
8083 * symfile.c (generic_load): Add comment.
8084
8085 2019-07-01 Tom Tromey <tromey@adacore.com>
8086
8087 * dwarf2read.c
8088 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8089 declaration of without_params. Fix formatting.
8090
8091 2019-07-01 Tom Tromey <tromey@adacore.com>
8092
8093 * ada-exp.y (find_primitive_type): Update.
8094 * ada-lang.h (ada_lookup_symbol): Update.
8095 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8096 parameter.
8097 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8098
8099 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8100
8101 PR breakpoints/24541
8102 * gdbarch.c: Regenerate.
8103 * gdbarch.h: Regenerate.
8104 * gdbarch.sh: Add 'stap_adjust_register'.
8105 * i386-tdep.c: Include '<unordered_set>'.
8106 (i386_stap_adjust_register): New function.
8107 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8108 * stap-probe.c (stap_parse_register_operand): Call
8109 'gdbarch_stap_adjust_register'.
8110
8111 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8112
8113 PR python/24742
8114 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8115 * python/python.c (do_start_initialization): Use 'xmalloc'
8116 instead of 'PyMem_Malloc'.
8117
8118 2019-06-28 Tom Tromey <tromey@adacore.com>
8119
8120 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8121 for Ada.
8122
8123 2019-06-27 Tom Tromey <tromey@adacore.com>
8124
8125 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8126 objfile_key.
8127 (arm_find_mapping_symbol, arm_record_special_symbol)
8128 (_initialize_arm_tdep): Update.
8129 (arm_objfile_data_free): Remove.
8130
8131 2019-06-27 Tom Tromey <tromey@adacore.com>
8132
8133 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8134 to cp_print_static_field.
8135
8136 2019-06-26 Tom Tromey <tromey@adacore.com>
8137
8138 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8139 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8140 declare.
8141
8142 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8143
8144 * features/aarch64-core.c (create_feature_aarch64_core):
8145 Regenerate.
8146 * features/aarch64-core.xml: Add cpsr flags.
8147
8148 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8149
8150 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8151 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8152
8153 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8154
8155 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8156 field.
8157 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8158 use.
8159 (arm_record_special_symbol): Don't insert new symbol in sorted
8160 position, push it at the end.
8161
8162 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8163
8164 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8165 (arm_mapping_symbol_s): Remove.
8166 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8167 (arm_mapping_symbol_vec): New typedef.
8168 (struct arm_per_objfile): Add constructor.
8169 <section_maps>: Change type to
8170 std::unique_ptr<arm_mapping_symbol_vec[]>.
8171 (arm_compare_mapping_symbols): Remove.
8172 (arm_find_mapping_symbol): Adjust to section_maps type change.
8173 (arm_objfile_data_free): Call delete on arm_per_objfile.
8174 (arm_record_special_symbol): Adjust to section_maps type change.
8175 Allocate arm_per_objfile with new.
8176
8177 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8178
8179 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8180 with the command prefix.
8181
8182 2019-06-25 Tom Tromey <tom@tromey.com>
8183
8184 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8185 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8186
8187 2019-06-25 Tom Tromey <tom@tromey.com>
8188
8189 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8190 type.
8191 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8192 protected.
8193
8194 2019-06-25 Tom Tromey <tom@tromey.com>
8195
8196 * tui/tui-winsource.c
8197 (tui_source_window_base::set_is_exec_point_at): Add check against
8198 LOA_ADDRESS.
8199
8200 2019-06-25 Tom Tromey <tom@tromey.com>
8201
8202 * tui/tui-source.c (tui_set_source_content): Don't check before
8203 xfree.
8204 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8205
8206 2019-06-25 Tom Tromey <tom@tromey.com>
8207
8208 * tui/tui-winsource.h (tui_update_source_window_as_is)
8209 (tui_alloc_source_buffer, tui_line_is_displayed)
8210 (tui_addr_is_displayed): Change type of win_info.
8211 * tui/tui-winsource.c (tui_update_source_window_as_is)
8212 (tui_clear_source_content, tui_show_source_line)
8213 (tui_show_source_content, tui_source_window_base::refill)
8214 (tui_source_window_base::set_is_exec_point_at)
8215 (tui_source_window_base::set_is_exec_point_at)
8216 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8217 (tui_alloc_source_buffer, tui_line_is_displayed)
8218 (tui_addr_is_displayed): Change type of win_info. Update.
8219 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8220 (tui_source_window_base::do_make_visible_with_new_height):
8221 Update.
8222 * tui/tui-source.c (tui_set_source_content)
8223 (tui_set_source_content_nil)
8224 (tui_source_window::do_scroll_vertical): Update.
8225 * tui/tui-layout.c (show_layout): Update.
8226 * tui/tui-disasm.c (tui_set_disassem_content)
8227 (tui_disasm_window::do_scroll_vertical): Update.
8228 * tui/tui-data.h (tui_win_content): Remove.
8229 (struct tui_gen_win_info) <content, content_size>: Remove.
8230 (struct tui_source_element): Add initializers and destructor.
8231 (union tui_which_element, struct tui_win_element): Remove.
8232 (struct tui_source_window_base) <content>: New field.
8233 (struct tui_data_window): Remove destructor.
8234 (tui_alloc_content, tui_free_win_content)
8235 (tui_free_all_source_wins_content): Don't declare.
8236 * tui/tui-data.c (tui_initialize_static_data): Update.
8237 (init_content_element, tui_alloc_content): Remove.
8238 (~tui_gen_win_info): Update.
8239 (~tui_data_window, tui_free_all_source_wins_content)
8240 (tui_free_win_content, free_content, free_content_elements):
8241 Remove.
8242
8243 2019-06-25 Tom Tromey <tom@tromey.com>
8244
8245 * tui/tui-winsource.h (tui_clear_source_content)
8246 (tui_erase_source_content, tui_show_source_content): Change type
8247 of win_info.
8248 * tui/tui-winsource.c (tui_clear_source_content)
8249 (tui_erase_source_content, tui_show_source_content): Change type
8250 of win_info.
8251 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8252 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8253 win_info.
8254 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8255 win_info.
8256 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8257
8258 2019-06-25 Tom Tromey <tom@tromey.com>
8259
8260 * tui/tui-winsource.c (tui_clear_source_content)
8261 (tui_source_window_base::set_is_exec_point_at): Update.
8262 * tui/tui-source.c (tui_set_source_content_nil): Update.
8263 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8264 a bool.
8265 * tui/tui-data.c (init_content_element): Update.
8266
8267 2019-06-25 Tom Tromey <tom@tromey.com>
8268
8269 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8270 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8271 * tui/tui-layout.c (init_and_make_win): Update.
8272 * tui/tui.h (enum tui_win_type): Update.
8273 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8274 tui_win_is_auxillary.
8275 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8276 tui_win_is_auxillary.
8277
8278 2019-06-25 Tom Tromey <tom@tromey.com>
8279
8280 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8281 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8282 (tui_delete_data_content_windows, tui_display_all_data)
8283 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8284 Update.
8285 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8286 * tui/tui-regs.c (tui_last_regs_line_no)
8287 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8288 (tui_show_registers): Update.
8289 (tui_show_register_group): Return void. Update.
8290 (tui_display_registers_from, tui_display_reg_element_at_line)
8291 (tui_display_registers_from_line, tui_check_register_values):
8292 Update.
8293 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8294 member.
8295 (struct tui_data_window) <regs_content>: Now a std::vector.
8296 <regs_content_count>: Remove.
8297 (tui_add_content_elements, tui_free_data_content): Don't declare.
8298 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8299 (init_content_element): Remove DATA_WIN case. Add assert.
8300 (tui_add_content_elements): Remove.
8301 (tui_data_window): Update.
8302 (tui_free_data_content): Remove.
8303 (free_content_elements): Remove DATA_WIN case.
8304
8305 2019-06-25 Tom Tromey <tom@tromey.com>
8306
8307 * tui/tui-data.c (tui_data_item_window): Update.
8308 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8309 * tui/tui-windata.c (tui_display_all_data)
8310 (tui_display_data_from_line): Update.
8311 (tui_check_data_values): Remove.
8312 * tui/tui-regs.c (tui_show_register_group)
8313 (tui_display_reg_element_at_line): Update.
8314 * tui/tui-hooks.c (tui_register_changed)
8315 (tui_refresh_frame_and_register_information): Call
8316 tui_check_register_values.
8317 * tui/tui-data.h (struct tui_data_window) <data_content,
8318 data_content_count, data_type>: Remove.
8319 (enum tui_data_type): Remove.
8320
8321 * tui/tui-data.c (tui_data_window::clear_detail)
8322 (~tui_data_window): Update.
8323
8324 2019-06-25 Tom Tromey <tom@tromey.com>
8325
8326 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8327 declare.
8328 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8329 Rename from tui_first_data_item_displayed. Update.
8330 (tui_data_window::refresh_all)
8331 (tui_data_window::do_scroll_vertical): Update.
8332 * tui/tui-data.h (struct tui_data_window)
8333 <first_data_item_displayed>: Declare new method.
8334
8335 2019-06-25 Tom Tromey <tom@tromey.com>
8336
8337 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8338 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8339 contents...
8340 (tui_initialize_static_data): ...here.
8341
8342 2019-06-25 Tom Tromey <tom@tromey.com>
8343
8344 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8345 (tui_display_registers_from, tui_check_register_values): Update.
8346 (tui_display_register): Remove win_info parameter; update.
8347 (tui_get_register): Change type of parameters.
8348 * tui/tui-data.h (struct tui_data_element): Remove.
8349 (union tui_which_element) <data>: Remove.
8350 <data_window>: Change type.
8351 (struct tui_data_item_window): New.
8352 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8353 case. Add assert.
8354 (~tui_data_item_window): New destructor.
8355 (free_content_elements): Remove DATA_ITEM_WIN case.
8356
8357 2019-06-25 Tom Tromey <tom@tromey.com>
8358
8359 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8360 Remove.
8361
8362 2019-06-25 Tom Tromey <tom@tromey.com>
8363
8364 * tui/tui-data.h (struct tui_command_element): Remove.
8365 (union tui_which_element) <command>: Remove.
8366 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8367 assert.
8368 (free_content_elements): Remove CMD_WIN case.
8369
8370 2019-06-25 Tom Tromey <tom@tromey.com>
8371
8372 * tui/tui-layout.c (tui_set_layout): Update.
8373 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8374 * tui/tui-data.c (layout_def): Update.
8375
8376 2019-06-25 Tom Tromey <tom@tromey.com>
8377
8378 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8379 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8380 (tui_source_window_base::set_new_height): Update.
8381 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8382 Update.
8383 (tui_set_locator_fullname, tui_set_locator_info)
8384 (tui_show_frame_info): Update.
8385 * tui/tui-source.c (tui_set_source_content)
8386 (tui_source_is_displayed): Update.
8387 * tui/tui-layout.c (show_source_disasm_command, show_data)
8388 (show_source_or_disasm_and_command): Update.
8389 * tui/tui-disasm.c (tui_set_disassem_content)
8390 (tui_get_begin_asm_address): Update.
8391 * tui/tui-data.h (struct tui_locator_element): Remove.
8392 (union tui_which_element) <locator>: Remove.
8393 (struct tui_locator_window): New.
8394 (tui_locator_win_info_ptr): Change return type.
8395 * tui/tui-data.c (_locator): Change type.
8396 (tui_locator_win_info_ptr): Change return type.
8397 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8398 (tui_alloc_content): Add assert.
8399
8400 2019-06-25 Tom Tromey <tom@tromey.com>
8401
8402 * tui/tui-winsource.c
8403 (tui_exec_info_window::maybe_allocate_content): New method.
8404 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8405 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8406 (make_source_or_disasm_window): Add cast.
8407 * tui/tui-data.h (union tui_which_element) <simple_string>:
8408 Remove.
8409 (struct tui_source_info): New.
8410 (struct tui_source_window_base) <execution_info>: Change type.
8411 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8412 case, and add assert.
8413 (tui_alloc_content): Add assert.
8414
8415 2019-06-25 Tom Tromey <tom@tromey.com>
8416
8417 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8418 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8419 * tui/tui-data.c (tui_alloc_win_info): Remove.
8420
8421 2019-06-25 Tom Tromey <tom@tromey.com>
8422
8423 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8424 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8425 can_highlight.
8426
8427 2019-06-25 Tom Tromey <tom@tromey.com>
8428
8429 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8430 make_visible_with_new_height method.
8431 (tui_win_info::make_visible_with_new_height): New method.
8432 (tui_source_window_base::do_make_visible_with_new_height)
8433 (tui_data_window::do_make_visible_with_new_height)
8434 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8435 (make_visible_with_new_height): Remove.
8436 (tui_resize_all, tui_adjust_win_heights): Use
8437 make_visible_with_new_height method.
8438 * tui/tui-data.h (struct tui_win_info)
8439 <do_make_visible_with_new_height, make_visible_with_new_height>:
8440 New methods.
8441 (struct tui_source_window_base, struct tui_data_window)
8442 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8443 methods.
8444
8445 2019-06-25 Tom Tromey <tom@tromey.com>
8446
8447 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8448 method.
8449 (update_tab_width): Call update_tab_width method.
8450 * tui/tui-data.h (struct tui_win_info)
8451 (struct tui_source_window_base) <update_tab_width>: New methods.
8452
8453 2019-06-25 Tom Tromey <tom@tromey.com>
8454
8455 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8456 parameter.
8457 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8458 parameter.
8459 (tui_gen_win_info::make_visible): Update.
8460 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8461 parameter.
8462 * tui/tui-data.h (enum tui_box): New enum.
8463 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8464
8465 2019-06-25 Tom Tromey <tom@tromey.com>
8466
8467 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8468 init_and_make_win for EXEC_INFO_WIN.
8469 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8470 longer inline.
8471 (struct tui_win_info) <~tui_win_info>: Inline.
8472 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8473 Don't declare.
8474 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8475 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8476 Remove.
8477 (tui_initialize_static_data): Update.
8478 (~tui_gen_win_info): Handle more cleanup here.
8479 (~tui_source_window_base): Delete "execution_info".
8480 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8481
8482 2019-06-25 Tom Tromey <tom@tromey.com>
8483
8484 * tui/tui-layout.c (make_command_window): Don't set
8485 can_highlight.
8486 (show_source_disasm_command): Call the reset method.
8487 (show_data): Don't set can_highlight. Call the reset method.
8488 (tui_gen_win_info::reset): Rename from init_gen_win_info
8489 (init_and_make_win): Simplify. Return tui_gen_win_info.
8490 (show_source_or_disasm_and_command): Call the reset method.
8491 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8492 (struct tui_cmd_window): Set can_highlight.
8493
8494 2019-06-25 Tom Tromey <tom@tromey.com>
8495
8496 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8497 from make_visible.
8498 (tui_make_visible, tui_make_invisible): Rewrite.
8499 (tui_win_info::make_visible): Remove.
8500 (tui_source_window_base::make_visible): Update.
8501 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8502 method. Moved from...
8503 (struct tui_win_info) <make_visible>: ...here.
8504
8505 2019-06-25 Tom Tromey <tom@tromey.com>
8506
8507 * tui/tui-winsource.c
8508 (tui_source_window_base::do_scroll_horizontal): Remove direction
8509 parameter.
8510 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8511 direction parameter.
8512 * tui/tui-win.c (tui_win_info::forward_scroll)
8513 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8514 (tui_win_info::right_scroll): Update.
8515 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8516 direction parameter.
8517 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8518 direction parameter.
8519 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8520 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8521 Remove direction parameter.
8522 (struct tui_source_window_base, struct tui_source_window)
8523 (struct tui_disasm_window, struct tui_data_window)
8524 (struct tui_cmd_window): Update.
8525
8526 2019-06-25 Tom Tromey <tom@tromey.com>
8527
8528 * tui/tui-winsource.h (tui_set_exec_info_content)
8529 (tui_show_exec_info_content, tui_erase_exec_info_content)
8530 (tui_clear_exec_info_content, tui_update_exec_info): Change
8531 argument to tui_source_window_base.
8532 * tui/tui-winsource.c (tui_set_exec_info_content)
8533 (tui_show_exec_info_content, tui_erase_exec_info_content)
8534 (tui_clear_exec_info_content, tui_update_exec_info): Change
8535 argument to tui_source_window_base.
8536
8537 2019-06-25 Tom Tromey <tom@tromey.com>
8538
8539 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8540 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8541
8542 2019-06-25 Tom Tromey <tom@tromey.com>
8543
8544 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8545 check.
8546
8547 2019-06-25 Tom Tromey <tom@tromey.com>
8548
8549 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8550 type to void.
8551 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8552 type to void.
8553 * tui/tui-source.c (tui_set_source_content): Update.
8554 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8555
8556 2019-06-25 Tom Tromey <tom@tromey.com>
8557
8558 * tui/tui-win.c (window_name_completer, tui_set_focus)
8559 (tui_all_windows_info): Use name method.
8560 * tui/tui-data.h (struct tui_gen_win_info)
8561 (struct tui_source_window, struct tui_disasm_window)
8562 (struct tui_data_window, struct tui_cmd_window) <name>: New
8563 method.
8564 (tui_win_name): Don't declare.
8565 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8566 (tui_win_name): Remove.
8567
8568 2019-06-25 Tom Tromey <tom@tromey.com>
8569
8570 * tui/tui-winsource.h (tui_update_source_window)
8571 (tui_update_source_window_as_is): Change parameter type.
8572 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8573 to be a tui_source_window_base.
8574 (tui_update_source_window_as_is): Likewise.
8575 * tui/tui-win.c (make_visible_with_new_height): Update.
8576
8577 2019-06-25 Tom Tromey <tom@tromey.com>
8578
8579 * tui/tui-winsource.c (tui_erase_source_content)
8580 (tui_show_source_content, tui_show_exec_info_content)
8581 (tui_erase_exec_info_content): Use refresh_window method.
8582 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8583 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8584 from tui_refresh_win.
8585 (tui_data_window::refresh_window): New method.
8586 (tui_win_info::refresh, tui_source_window_base::refresh)
8587 (tui_refresh_all): Use refresh_window method.
8588 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8589 method.
8590 * tui/tui-regs.c (tui_display_register): Call refresh_window
8591 method.
8592 * tui/tui-layout.c (show_source_disasm_command)
8593 (show_source_or_disasm_and_command): Call refresh_window method.
8594 * tui/tui-data.h (struct tui_gen_win_info)
8595 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8596 New method.
8597
8598 2019-06-25 Tom Tromey <tom@tromey.com>
8599
8600 * tui/tui.c (tui_rl_other_window, tui_enable)
8601 (tui_is_window_visible, tui_get_command_dimension): Update.
8602 * tui/tui-winsource.c (tui_update_source_window_as_is)
8603 (tui_clear_source_content, tui_erase_source_content)
8604 (tui_show_source_line, tui_source_window_base::refill)
8605 (tui_source_window_base::do_scroll_horizontal)
8606 (tui_source_window_base::set_is_exec_point_at)
8607 (tui_update_breakpoint_info, tui_set_exec_info_content)
8608 (tui_alloc_source_buffer, tui_line_is_displayed)
8609 (tui_addr_is_displayed): Update.
8610 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8611 (tui_check_and_display_highlight_if_needed)
8612 (tui_win_info::make_visible, tui_win_info::refresh)
8613 (tui_refresh_all): Update.
8614 * tui/tui-windata.c (tui_first_data_item_displayed)
8615 (tui_delete_data_content_windows, tui_erase_data_content)
8616 (tui_display_all_data, tui_data_window::refresh_all)
8617 (tui_check_data_values): Update.
8618 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8619 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8620 (tui_win_info::backward_scroll, tui_refresh_all_win)
8621 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8622 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8623 (tui_source_window_base::set_new_height)
8624 (tui_data_window::set_new_height)
8625 (make_invisible_and_set_new_height)
8626 (make_visible_with_new_height, new_height_ok)
8627 (parse_scrolling_args): Update.
8628 * tui/tui-stack.c (tui_show_frame_info): Update.
8629 * tui/tui-source.c (tui_set_source_content)
8630 (tui_set_source_content_nil, tui_source_is_displayed)
8631 (tui_source_window::do_scroll_vertical): Update.
8632 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8633 (tui_display_registers_from, tui_display_reg_element_at_line)
8634 (tui_check_register_values, tui_reg_command): Update.
8635 * tui/tui-layout.c (tui_default_win_height)
8636 (show_source_disasm_command, show_data, init_and_make_win)
8637 (show_source_or_disasm_and_command): Update.
8638 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8639 (tui_redisplay_readline, tui_mld_flush)
8640 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8641 (tui_getc): Update.
8642 * tui/tui-disasm.c (tui_set_disassem_content)
8643 (tui_disasm_window::do_scroll_vertical): Update.
8644 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8645 Now virtual.
8646 (struct tui_win_info): Derive from tui_gen_win_info.
8647 <~tui_win_info>: Mark as override.
8648 <generic>: Remove member.
8649 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8650 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8651 (~tui_data_window, ~tui_win_info)
8652 (tui_free_all_source_wins_content): Update.
8653 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8654
8655 2019-06-25 Tom Tromey <tom@tromey.com>
8656
8657 * tui/tui-layout.c (init_and_make_win): Use new.
8658 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8659 destructor, initializers.
8660 (tui_alloc_generic_win_info): Don't declare.
8661 * tui/tui-data.c (_locator): Add argument to constructor.
8662 (source_win, disasm_win): New globals.
8663 (exec_info): Remove.
8664 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8665 Update.
8666 (tui_alloc_generic_win_info): Remove.
8667 (init_content_element): Use new.
8668 (tui_win_info::tui_win_info): Update.
8669 (free_content_elements) <case DATA_WIN>: Use delete.
8670
8671 2019-06-25 Tom Tromey <tom@tromey.com>
8672
8673 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8674 * tui/tui-windata.c (tui_first_data_item_displayed)
8675 (tui_delete_data_content_windows): Update.
8676 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8677 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8678 (tui_display_registers_from, tui_check_register_values): Update.
8679 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8680 pointer.
8681 * tui/tui-data.c (init_content_element): Update. Allocate the new
8682 window.
8683 (tui_free_data_content): Update.
8684 (free_content_elements) <case DATA_WIN>: Free the window.
8685
8686 2019-06-25 Tom Tromey <tom@tromey.com>
8687
8688 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8689 Update.
8690 * tui/tui-layout.c (make_command_window)
8691 (show_source_disasm_command, show_data, init_and_make_win)
8692 (show_source_or_disasm_and_command): Update.
8693 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8694 method.
8695 <can_highight, is_highlighted>: Now bool.
8696 (tui_set_win_highlight): Don't declare.
8697 * tui/tui-data.c (tui_set_win_highlight): Remove.
8698
8699 2019-06-25 Tom Tromey <tom@tromey.com>
8700
8701 * tui/tui-wingeneral.c (make_visible): Remove check of window
8702 type.
8703
8704 2019-06-25 Tom Tromey <tom@tromey.com>
8705
8706 * tui/tui-win.c (tui_win_info::max_height)
8707 (tui_cmd_window::max_height): New methods.
8708 (new_height_ok): Call max_height.
8709 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8710 <max_height>: New method.
8711
8712 2019-06-25 Tom Tromey <tom@tromey.com>
8713
8714 * tui/tui-win.c (tui_source_window_base::set_new_height)
8715 (tui_data_window::set_new_height): New methods.
8716 (make_invisible_and_set_new_height): Call set_new_height method.
8717 * tui/tui-data.h (struct tui_win_info)
8718 (struct tui_source_window_base, struct tui_data_window)
8719 <set_new_height>: New method.
8720
8721 2019-06-25 Tom Tromey <tom@tromey.com>
8722
8723 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8724 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8725 tui_refresh_data_win.
8726 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8727 method.
8728 (tui_refresh_all_win): Call the refresh_all method.
8729 (tui_set_focus): Likewise.
8730 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8731 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8732 Likewise.
8733
8734 2019-06-25 Tom Tromey <tom@tromey.com>
8735
8736 * tui/tui-winsource.h (tui_refill_source_window)
8737 (tui_set_is_exec_point_at): Don't declare.
8738 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8739 (tui_source_window_base::refill): Rename from
8740 tui_refill_source_window.
8741 (tui_source_window_base::do_scroll_horizontal): Update.
8742 (tui_source_window_base::set_is_exec_point_at): Rename from
8743 tui_set_is_exec_point_at.
8744 (tui_update_all_breakpoint_info): Update.
8745 * tui/tui-stack.c (tui_show_frame_info): Update.
8746 * tui/tui-layout.c (show_data): Add cast.
8747 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8748 * tui/tui-data.h (struct tui_source_window_base) <refill,
8749 set_is_exec_point_at>: New methods.
8750 (tui_source_windows, tui_add_to_source_windows): Update types.
8751 (tui_add_to_source_windows): Remove redundant declaration.
8752 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8753 (tui_source_windows): Change return type.
8754 (tui_clear_source_windows_detail): Update.
8755 (tui_add_to_source_windows): Change type of parameter.
8756 (tui_free_all_source_wins_content): Update.
8757
8758 2019-06-25 Tom Tromey <tom@tromey.com>
8759
8760 * tui/tui-wingeneral.c (tui_win_info::refresh)
8761 (tui_source_window_base::refresh): New methods.
8762 (tui_refresh_all): Call the refresh method.
8763 * tui/tui-data.h (struct tui_win_info)
8764 (struct tui_source_window_base) <refresh>: New method.
8765
8766 2019-06-25 Tom Tromey <tom@tromey.com>
8767
8768 * tui/tui.h (tui_is_window_visible): Return bool.
8769 * tui/tui.c (tui_is_window_visible): Return bool.
8770 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8771 (tui_make_visible, tui_make_invisible)
8772 (tui_win_info::make_visible)
8773 (tui_source_window_base::make_visible, make_all_visible)
8774 (tui_make_all_visible, tui_make_all_invisible): Update.
8775 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8776 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8777 bool.
8778 (struct tui_win_info, struct tui_source_window_base)
8779 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8780 * tui/tui-data.c (tui_init_generic_part): Update.
8781
8782 2019-06-25 Tom Tromey <tom@tromey.com>
8783
8784 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8785 (tui_source_window_base::make_visible): New methods.
8786 (make_all_visible): Make method call.
8787 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8788 (struct tui_source_window_base, struct tui_cmd_window): Override
8789 make_visible.
8790 (tui_win_is_source_type): Don't declare.
8791 * tui/tui-data.c (tui_win_is_source_type): Remove.
8792
8793 2019-06-25 Tom Tromey <tom@tromey.com>
8794
8795 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8796 NULL check.
8797
8798 2019-06-25 Tom Tromey <tom@tromey.com>
8799
8800 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8801 Inline constructor. Add initializers for members.
8802 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8803 constructors; now inline in class.
8804
8805 2019-06-25 Tom Tromey <tom@tromey.com>
8806
8807 * tui/tui-regs.c (tui_show_registers): Update.
8808 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8809 bool.
8810 * tui/tui-data.c (tui_data_window::clear_detail)
8811 (tui_data_window): Update.
8812
8813 2019-06-25 Tom Tromey <tom@tromey.com>
8814
8815 * tui/tui-windata.c (tui_display_all_data)
8816 (tui_display_data_from_line, tui_display_data_from)
8817 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8818 Update.
8819 * tui/tui-regs.c (tui_last_regs_line_no)
8820 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8821 (tui_show_registers, tui_show_register_group)
8822 (tui_display_registers_from, tui_display_reg_element_at_line)
8823 (tui_display_registers_from_line, tui_check_register_values)
8824 (tui_reg_next, tui_reg_prev): Update.
8825 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8826 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8827 tui_data_window.
8828 (struct tui_win_info) <detail>: Remove. Add new fields from
8829 tui_data_info.
8830 (TUI_DATA_WIN): Add cast.
8831 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8832 (~tui_data_window): Simplify.
8833
8834 2019-06-25 Tom Tromey <tom@tromey.com>
8835
8836 * tui/tui-layout.c (show_source_disasm_command)
8837 (show_source_or_disasm_and_command): Update.
8838 * tui/tui-io.c (update_cmdwin_start_line)
8839 (tui_redisplay_readline): Update.
8840 * tui/tui-data.h (struct tui_command_info): Remove.
8841 (struct tui_win_info) <detail>: Remove command_info member.
8842 (struct tui_data_window) <start_line>: New member, from
8843 tui_command_info.
8844 (TUI_CMD_WIN): Add casts.
8845
8846 2019-06-25 Tom Tromey <tom@tromey.com>
8847
8848 * tui/tui-winsource.c (tui_update_source_window)
8849 (tui_refill_source_window)
8850 (tui_source_window_base::do_scroll_horizontal)
8851 (tui_update_breakpoint_info, tui_set_exec_info_content)
8852 (tui_show_exec_info_content, tui_erase_exec_info_content)
8853 (tui_clear_exec_info_content): Update.
8854 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8855 Update.
8856 * tui/tui-win.c (make_invisible_and_set_new_height)
8857 (make_visible_with_new_height): Update.
8858 * tui/tui-source.c (tui_set_source_content)
8859 (tui_show_symtab_source): Update.
8860 * tui/tui-layout.c (extract_display_start_addr)
8861 (show_source_disasm_command, show_data)
8862 (make_source_or_disasm_window)
8863 (show_source_or_disasm_and_command): Update.
8864 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8865 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8866 "gdbarch".
8867 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8868 to tui_source_window_base.
8869 (struct tui_win_info) <detail>: Remove source_info member.
8870 (struct tui_source_window_base) <has_locator>: Inline.
8871 Move contents from tui_source_info; rename has_locator member to
8872 m_has_locator.
8873 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8874 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8875 header file.
8876 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8877 Simplify.
8878 (tui_free_all_source_wins_content): Cast to
8879 tui_source_window_base.
8880
8881 2019-06-25 Tom Tromey <tom@tromey.com>
8882
8883 * tui/tui-win.c (make_invisible_and_set_new_height)
8884 (make_visible_with_new_height): Call has_locator method.
8885 * tui/tui-layout.c (show_source_disasm_command, show_data)
8886 (show_source_or_disasm_and_command): Update for bool change.
8887 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8888 (tui_win_info) <has_locator>: New method.
8889 (struct tui_source_window_base) <has_locator>: New method.
8890 (tui_win_has_locator): Don't declare.
8891 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8892 from tui_win_has_locator.
8893 (tui_source_window_base): Use false, not FALSE.
8894
8895 2019-06-25 Tom Tromey <tom@tromey.com>
8896
8897 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8898 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8899 clear_detail method directly.
8900 (tui_clear_win_detail): Remove.
8901
8902 2019-06-25 Tom Tromey <tom@tromey.com>
8903
8904 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8905 "this", not TUI_DISASM_WIN.
8906
8907 2019-06-25 Tom Tromey <tom@tromey.com>
8908
8909 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8910 declare.
8911 * tui/tui-winsource.c
8912 (tui_source_window_base::do_scroll_horizontal): Rename from
8913 tui_horizontal_source_scroll.
8914 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8915 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8916 from tui_vertical_data_scroll.
8917 * tui/tui-win.h (tui_scroll): Don't declare.
8918 * tui/tui-win.c (tui_win_info::forward_scroll)
8919 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8920 (tui_win_info::right_scroll): Rename and update.
8921 (tui_scroll_forward_command, tui_scroll_backward_command)
8922 (tui_scroll_left_command, tui_scroll_right_command): Update.
8923 (tui_scroll): Remove.
8924 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8925 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8926 from tui_vertical_source_scroll.
8927 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8928 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8929 from tui_vertical_disassem_scroll.
8930 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8931 do_scroll_horizontal>: New methods.
8932 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8933 Likewise.
8934 (struct tui_source_window_base): Add do_scroll_horizontal.
8935 (struct tui_source_window, struct tui_disasm_window): Add
8936 do_scroll_vertical.
8937 (struct tui_data_window, struct tui_cmd_window): Add
8938 do_scroll_horizontal and do_scroll_vertical.
8939 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8940
8941 2019-06-25 Tom Tromey <tom@tromey.com>
8942
8943 * tui/tui-data.h (struct tui_source_window_base): New struct.
8944 (struct tui_source_window): Derive from tui_source_window_base.
8945 (struct tui_disasm_window): New struct.
8946 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8947 from tui_source_window::clear_detail.
8948 (tui_source_window_base): Rename from tui_source_window.
8949 (~tui_source_window_base): Rename from ~tui_source_window.
8950 (tui_alloc_win_info): Create a tui_disasm_window.
8951
8952 2019-06-25 Tom Tromey <tom@tromey.com>
8953
8954 * tui/tui-data.h (struct tui_source_window)
8955 (struct tui_data_window): Declare destructors.
8956 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8957 destructors.
8958 (tui_win_info): Simplify.
8959
8960 2019-06-25 Tom Tromey <tom@tromey.com>
8961
8962 * tui/tui-winsource.c (tui_display_main)
8963 (tui_update_source_windows_with_addr)
8964 (tui_update_all_breakpoint_info): Update.
8965 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8966 (new_height_ok, parse_scrolling_args): Update.
8967 * tui/tui-stack.c (tui_show_frame_info): Update.
8968 * tui/tui-data.h (struct tui_list): Remove.
8969 (tui_source_windows): Return a reference to a std::vector.
8970 * tui/tui-data.c (source_windows): Now a std::vector.
8971 (tui_source_windows): Change return type.
8972 (tui_clear_source_windows): Rewrite.
8973 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8974 (tui_free_all_source_wins_content): Rewrite.
8975
8976 2019-06-25 Tom Tromey <tom@tromey.com>
8977
8978 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8979 (struct tui_data_window, struct tui_cmd_window): Declare
8980 clear_detail method.
8981 * tui/tui-data.c (tui_source_window::clear_detail)
8982 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8983 methods.
8984 (tui_clear_win_detail): Simplify.
8985
8986 2019-06-25 Tom Tromey <tom@tromey.com>
8987
8988 * tui/tui-layout.c (make_source_window, make_disasm_window)
8989 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8990 Return the new window.
8991 (show_source_disasm_command, show_data)
8992 (show_source_or_disasm_and_command): Update.
8993
8994 2019-06-25 Tom Tromey <tom@tromey.com>
8995
8996 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8997 parameter. Return the new window.
8998 (show_source_disasm_command): Update and remove NULL check.
8999 (show_source_or_disasm_and_command): Update.
9000
9001 2019-06-25 Tom Tromey <tom@tromey.com>
9002
9003 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9004
9005 2019-06-25 Tom Tromey <tom@tromey.com>
9006
9007 * tui/tui-data.h (struct tui_win_info): Make constructor
9008 protected. Make destructor virtual. Add initializers.
9009 (tui_source_window, tui_data_window, tui_cmd_window): New
9010 classes.
9011 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9012 constructor. Add "type" parameter.
9013 (tui_source_window, tui_data_window, tui_cmd_window): New
9014 constructors.
9015 (tui_alloc_win_info): Instantiate the appropriate subclass.
9016
9017 2019-06-25 Tom Tromey <tom@tromey.com>
9018
9019 * tui/tui-win.c (tui_resize_all): Use delete.
9020 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9021 destructor.
9022 (tui_free_window): Don't declare.
9023 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9024 Update.
9025
9026 2019-06-25 Tom Tromey <tom@tromey.com>
9027
9028 * tui/tui-data.h (struct tui_win_info): Add constructor.
9029 * tui/tui-data.c (tui_alloc_win_info): Use new.
9030 (tui_free_window): Use delete.
9031
9032 2019-06-22 Tom Tromey <tom@tromey.com>
9033
9034 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9035 declare.
9036 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9037
9038 2019-06-22 Tom Tromey <tom@tromey.com>
9039
9040 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9041 declare.
9042 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9043
9044 2019-06-22 Tom de Vries <tdevries@suse.de>
9045
9046 * dwarf2read.c (create_addrmap_from_aranges)
9047 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9048 instead of '%zu'.
9049
9050 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
9051
9052 * dwarf2read.h (dwarf2_section_info_def): Remove.
9053 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9054 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9055 std::vector<dwarf2_section_info>.
9056 (struct dwo_file) <~dwo_file>: Remove.
9057 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9058 types field.
9059 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9060 (dwarf2_read_debug_names): Likewise.
9061 (create_debug_types_hash_table): Change parameter type to
9062 array_view, adjust code accordingly.
9063 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9064 (partial_die_info::fixup): Likewise.
9065 (determine_prefix): Likewise.
9066 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9067
9068 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9069
9070 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9071 gdb_bfd_ref_ptr.
9072 <~dwo_file>: Remove call to gdb_bfd_unref.
9073 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9074 gdb_bfd_ref_ptr::get.
9075
9076 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9077
9078 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9079 type to htab_up.
9080 * dwarf2read.c (struct dwo_file): Initialize fields.
9081 <~dwo_file>: New.
9082 (free_dwo_file): Remove, move content to ~dwo_file.
9083 (struct dwo_file_deleter): Remove.
9084 (dwo_file_up>: Remove custom deleter.
9085 (free_dwo_files): Remove.
9086 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9087 dwo_files.
9088 (process_skeletonless_type_units): Call unique_ptr::get.
9089 (allocate_dwo_file_hash_table): Add deleter to created hash
9090 table. Change return type to htab_up.
9091 (lookup_dwo_file_slot): Don't memset dwo_file, call
9092 unique_ptr::get.
9093 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9094 (create_dwo_unit_in_dwp_v2): Likewise.
9095 (open_and_init_dwo_file): Likewise.
9096 (free_dwo_file_from_slot): Remove.
9097
9098 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9099
9100 * dwarf2read.h (struct dwarf2_section_info) <readin,
9101 is_virtual>: Change type to bool.
9102 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9103 true instead of 1.
9104
9105 2019-06-19 Tom Tromey <tom@tromey.com>
9106
9107 * tui/tui-data.h (tui_init_content_element): Don't declare.
9108
9109 2019-06-19 Tom Tromey <tom@tromey.com>
9110
9111 * tui/tui-data.h (tui_init_win_info): Don't declare.
9112
9113 2019-06-19 Tom de Vries <tdevries@suse.de>
9114
9115 * dwarf2read.h (abstract_to_concrete): Change type to
9116 std::unordered_map<sect_offset, std::vector<sect_offset>,
9117 gdb::hash_enum<sect_offset>>.
9118
9119 2019-06-19 Tom Tromey <tromey@adacore.com>
9120
9121 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9122 EVAL_AVOID_SIDE_EFFECTS specially.
9123
9124 2019-06-19 Tom Tromey <tromey@adacore.com>
9125
9126 * source-cache.c (highlighter): New global.
9127 (source_cache::get_source_lines): Create a highlighter on demand.
9128
9129 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9130
9131 * defs.h (deprecated_interactive_hook): Delete declaration.
9132 * interps.c (clear_interpreter_hooks): Remove use of
9133 deprecated_interactive_hook.
9134 * top.c (deprecated_interactive_hook): Delete definition.
9135 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9136
9137 2019-06-18 Tom de Vries <tdevries@suse.de>
9138
9139 PR gdb/24515
9140 * dwarf2read.h (abstract_to_concrete): Change type from
9141 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9142 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9143 * dwarf2read.c (read_variable): Update.
9144 (dwarf2_fetch_die_loc_sect_off): Update.
9145
9146 2019-06-17 Tom de Vries <tdevries@suse.de>
9147
9148 PR gdb/24617
9149 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9150 accessing parent[parent_len - 1].
9151
9152 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9153
9154 PR gdb/24364
9155 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9156 call dtrace_process_dof with NULL dof.
9157
9158 2019-06-16 Tom de Vries <tdevries@suse.de>
9159
9160 PR gdb/24445
9161 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9162
9163 2019-06-16 Tom Tromey <tom@tromey.com>
9164
9165 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9166 (make_all_visible): Use address of member.
9167
9168 2019-06-16 Tom Tromey <tom@tromey.com>
9169
9170 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9171 (tui_free_window, free_content, free_content_elements): Remove
9172 unnecessary cast.
9173 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9174 cast.
9175 * tui/tui-regs.c (tui_show_register_group)
9176 (tui_display_registers_from, tui_display_reg_element_at_line):
9177 Remove unnecessary cast.
9178
9179 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9180
9181 * linux-nat.c (normal_mask): Delete.
9182 (_initialize_linux_nat): Don't initialise normal_mask.
9183
9184 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9185
9186 PR gdb/24445
9187 * dwarf-index-write.h (write_psymtabs_to_index): Add
9188 dwz_basename parameter.
9189 * dwarf-index-write.c (write_gdbindex): Move file writing to
9190 write_gdbindex_1. Change return type void.
9191 (assert_file_size): Move up, remove filename parameter.
9192 (write_gdbindex_1): New function.
9193 (write_debug_names): Change return type to void, call
9194 assert_file_size.
9195 (struct index_wip_file): New struct.
9196 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9197 file logic to index_wip_file. Write index for dwz file if
9198 needed.
9199 (save_gdb_index_command): Pass basename of dwz file, if present.
9200 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9201 build-id of dwz file, if present.
9202 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9203 (dwarf2_get_dwz_file): Likewise.
9204 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9205 (dwarf2_get_dwz_file): Likewise.
9206
9207 2019-06-16 Tom Tromey <tom@tromey.com>
9208
9209 * coffread.c (process_coff_symbol): Use xstrdup.
9210 * value.c (create_internalvar): Use xstrdup.
9211
9212 2019-06-16 Tom Tromey <tom@tromey.com>
9213
9214 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9215 * breakpoint.c (stopin_command, stopat_command)
9216 (until_break_command, decode_location_default): Remove unnecessary
9217 cast.
9218 * utils.c (subset_compare): Remove unnecessary cast.
9219 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9220 cast.
9221 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9222 cast.
9223 * infcmd.c (path_command): Remove unnecessary cast.
9224 * coffread.c (decode_type): Remove unnecessary cast.
9225 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9226 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9227 * tui/tui-stack.c (tui_show_locator_content)
9228 (tui_show_frame_info): Remove unnecessary cast.
9229 * tui/tui-win.c (tui_scroll_forward_command)
9230 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9231 (parse_scrolling_args): Remove unnecessary cast.
9232 * tui/tui-data.c (init_win_info, tui_del_window)
9233 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9234 (free_content_elements): Remove unnecessary cast.
9235 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9236 unnecessary cast.
9237 * tui/tui-source.c (tui_set_source_content)
9238 (tui_vertical_source_scroll): Remove unnecessary cast.
9239 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9240 cast.
9241 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9242 * tui/tui-regs.c (tui_display_registers_from)
9243 (tui_display_register): Remove unnecessary cast.
9244 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9245 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9246 (make_visible): Remove unnecessary cast.
9247 * tui/tui-winsource.c (tui_erase_source_content)
9248 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9249 unnecessary cast.
9250 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9251 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9252 * stabsread.c (read_type, read_array_type, read_range_type):
9253 Remove unnecessary cast.
9254 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9255 (parse_symbol, parse_type, upgrade_type, parse_external)
9256 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9257 unnecessary cast.
9258 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9259
9260 2019-06-16 Tom Tromey <tom@tromey.com>
9261
9262 * tui/tui-data.c (tui_alloc_generic_win_info)
9263 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9264 checks.
9265
9266 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9267 Andrew Burgess <andrew.burgess@embecosm.com>
9268
9269 * f-typeprint.c (f_print_type): Don't return early for not
9270 associated or not allocated types.
9271 (f_type_print_varspec_suffix): Add print_rank parameter and print
9272 ranks of array types in case they dangling.
9273 (f_type_print_base): Add print_rank parameter.
9274
9275 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9276
9277 * NEWS: Mention new MI commands.
9278 * break-catch-throw.c (enum exception_event_kind): Move to
9279 breakpoint.h.
9280 (print_mention_exception_catchpoint): Output text as a single
9281 message.
9282 (catch_exception_command_1): Rename to...
9283 (catch_exception_event): ...this, make non-static, update header
9284 command, and change some parameter types.
9285 (catch_catch_command): Update for changes to
9286 catch_exception_command_1.
9287 (catch_throw_command): Likewise.
9288 (catch_rethrow_command): Likewise.
9289 * breakpoint.c (enum exception_event_kind): Delete.
9290 * breakpoint.h (enum exception_event_kind): Moved here from
9291 break-catch-throw.c.
9292 (catch_exception_event): Declare.
9293 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9294 (mi_cmd_catch_throw): New function.
9295 (mi_cmd_catch_rethrow): New function.
9296 (mi_cmd_catch_catch): New function.
9297 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9298 'catch-catch' entries.
9299 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9300 (mi_cmd_catch_rethrow): Declare.
9301 (mi_cmd_catch_catch): Declare.
9302
9303 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9304
9305 * annotate.c (annotate_source_line): Change return type to void,
9306 update implementation to match.
9307 * annotate.h (annotate_source_line): Change return type to void,
9308 update header comment.
9309 * stack.c (print_frame_info): Don't change what frame information
9310 is printed based on whether annotations are on or not.
9311
9312 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9313
9314 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9315 (annotate_source): Make static.
9316 (annotate_source_line): Moved from source.c and renamed from
9317 identify_source_line. Update the return type.
9318 * annotate.h (annotate_source): Delete declaration.
9319 (annotate_source_line): Declaration moved from source.h, and
9320 renamed from identify_source_line. Return type updated.
9321 * source.c (identify_source_line): Moved to annotate.c and renamed
9322 to annotate_source_line.
9323 (info_line_command): Remove check of annotation_level.
9324 * source.h (identify_source_line): Move declaration to annotate.h
9325 and rename to annotate_source_line.
9326 * stack.c: Add 'annotate.h' include.
9327 (print_frame_info): Remove check of annotation_level before
9328 calling annotate_source_line.
9329
9330 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9331
9332 * source-cache.c (source_cache::get_plain_source_lines): Use
9333 open_source_file_with_line_charpos instead of just
9334 open_source_file, remove call to find_source_lines.
9335 (source_cache::get_source_lines): Likewise.
9336 * source.c (find_source_lines): Make static.
9337 (get_filename_and_charpos): Renamed into...
9338 (open_source_file_with_line_charpos): ..this along with changes to
9339 return a scoped_fd, and some other minor clean ups.
9340 (identify_source_line): Use open_source_file_with_line_charpos.
9341 (search_command_helper): Use open_source_file_with_line_charpos
9342 instead of just open_source_file, remove call to
9343 find_source_lines.
9344 * source.h (open_source_file_with_line_charpos): Declare new
9345 function.
9346 (find_source_lines): Delete declaration.
9347
9348 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9349
9350 * source.c (get_filename_and_charpos): Remove fullname
9351 parameter.
9352 (identify_source_line): Update call to get_filename_and_charpos.
9353
9354 2019-06-14 Tom Tromey <tromey@adacore.com>
9355
9356 PR gdb/24502:
9357 * ui-style.h (skip_ansi_escape): Update comment.
9358 * ui-file.h (class no_terminal_escape_file): New class.
9359 * ui-file.c (no_terminal_escape_file::write)
9360 (no_terminal_escape_file::puts): New methods.
9361 * cli/cli-logging.c (handle_redirections): Use
9362 no_terminal_escape_file.
9363
9364 2019-06-14 Tom Tromey <tromey@adacore.com>
9365
9366 * NEWS: Move convenience variable news above Python news.
9367
9368 2019-06-14 Tom Tromey <tom@tromey.com>
9369
9370 * gnulib: Move directory to top-level.
9371 * configure.ac: Don't configure gnulib.
9372 * configure: Rebuild.
9373 * common/common-defs.h: Use new path to gnulib.
9374 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9375 (GNULIB_H): Remove.
9376 (INCGNU): Look in new gnulib location.
9377 (HFILES_NO_SRCDIR): Remove gnulib files.
9378 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9379 (generated_files): Remove GNULIB_H.
9380 ($(LIBGNU), all-lib): Remove targets.
9381 (distclean): Don't mention GNULIB_BUILDDIR.
9382 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9383
9384 2019-06-14 Tom Tromey <tromey@adacore.com>
9385
9386 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9387 Warn if symbol file does not provide any symbols.
9388
9389 2019-06-14 Tom Tromey <tromey@adacore.com>
9390
9391 * source.c (find_and_open_source): Respect basenames_may_differ.
9392
9393 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9394
9395 * annotate.c (annotate_breakpoints_invalid): Make use of
9396 scoped_restore_terminal_state.
9397 (annotate_frames_invalid): Likewise.
9398
9399 2019-06-14 Tom Tromey <tromey@adacore.com>
9400
9401 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9402 allow assignment to an internalvar.
9403
9404 2019-06-14 Tom Tromey <tromey@adacore.com>
9405
9406 * ada-lex.l: Allow "_" in attribute names.
9407
9408 2019-06-14 Tom Tromey <tromey@adacore.com>
9409
9410 PR gdb/24653:
9411 * regcache.c (registers_changed): Don't call alloca.
9412 * top.c (execute_command): Don't call alloca.
9413
9414 2019-06-13 Pedro Alves <palves@redhat.com>
9415
9416 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9417 'expression'. When parsing an expression, error out if there's
9418 junk after "unlimited".
9419 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9420 (do_set_command): Adjust calls to is_unlimited_literal.
9421
9422 2019-06-13 Pedro Alves <palves@redhat.com>
9423
9424 * compile/compile.c (make_compile_options_def_group): Add braces
9425 around array_view initializer.
9426 * thread.c (make_thread_apply_all_options_def_group)
9427 (make_thread_apply_all_options_def_group): Likewise.
9428
9429 2019-06-13 Pedro Alves <palves@redhat.com>
9430
9431 * NEWS (New commands): Mention "maint test-options
9432 require-delimiter", "maint test-options unknown-is-error", "maint
9433 test-options unknown-is-operand" and "maint show
9434 test-options-completion-result".
9435 (New command options, command completion): New section.
9436 (Completion improvements): New section.
9437 Mention that you can abbreviate "unlimited".
9438
9439 2019-06-13 Pedro Alves <palves@redhat.com>
9440
9441 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9442 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9443 * unittests/cli-utils-selftests.c (test_parse_flags)
9444 (test_parse_flags_qcs): Delete.
9445 (test_cli_utils): Don't call deleted functions.
9446
9447 2019-06-13 Pedro Alves <palves@redhat.com>
9448
9449 * thread.c: Include "cli/cli-option.h".
9450 (tp_array_compar_ascending): Global.
9451 (tp_array_compar): Delete function.
9452 (tp_array_compar_ascending, tp_array_compar_descending): New
9453 functions.
9454 (ascending_option_def, qcs_flag_option_def)
9455 (thr_qcs_flags_option_defs)
9456 (make_thread_apply_all_options_def_group)
9457 (make_thread_apply_options_def_group): New.
9458 (thread_apply_all_command): Use gdb::option::process_options.
9459 (thread_apply_command_completer)
9460 (thread_apply_all_command_completer): New.
9461 (thread_apply_command): Use gdb::option::process_options.
9462 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9463 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9464 to generate help text of "thread apply". Adjust "taas"'s help.
9465 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9466 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9467
9468 2019-06-13 Pedro Alves <palves@redhat.com>
9469
9470 * thread.c (thread_apply_command): Check for invalid TID with
9471 isdigit instead of !isalpha.
9472
9473 2019-06-13 Pedro Alves <palves@redhat.com>
9474
9475 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9476 (validate_flags_qcs): New.
9477 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9478 (validate_flags_qcs): Declare.
9479 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9480 (make_frame_apply_options_def_group): New.
9481 (frame_apply_command_count): Process options with
9482 gdb::option::process_options.
9483 (frame_apply_completer): New.
9484 (frame_apply_level_completer, frame_apply_all_completer)
9485 (frame_apply_completer): New.
9486 (_initialize_stack): Update help of "frame apply", "frame apply
9487 level", "frame apply all" and "faas" to mention supported options
9488 and install command completers.
9489 * stack.h (frame_apply_all_completer): Declare.
9490 * thread.c: Include "stack.h".
9491 (tfaas_command): Add "--".
9492 (_initialize_thread): Update help "tfaas" to mention supported
9493 options and install command completer.
9494
9495 2019-06-13 Pedro Alves <palves@redhat.com>
9496
9497 * completer.c (complete_nested_command_line): New.
9498 (gdb_completion_word_break_characters_throw): Add assertion.
9499 * completer.h (complete_nested_command_line): Declare.
9500
9501 2019-06-13 Pedro Alves <palves@redhat.com>
9502
9503 * stack.c (parse_backtrace_qualifiers): New.
9504 (backtrace_command): Use it.
9505 (backtrace_command_completer): Complete on qualifiers.
9506
9507 2019-06-13 Pedro Alves <palves@redhat.com>
9508
9509 * frame.c: Include "cli/cli-option.h.
9510 (user_set_backtrace_options): New.
9511 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9512 Delete.
9513 (get_prev_frame): Adjust.
9514 (boolean_option_def, uinteger_option_def)
9515 (set_backtrace_option_defs): New.
9516 (_initialize_frame): Adjust and use
9517 gdb::option::add_setshow_cmds_for_options to install "set
9518 backtrace past-main" and "set backtrace past-entry".
9519 * frame.h: Include "cli/cli-option.h".
9520 (struct frame_print_options): Forward declare.
9521 (print_frame_arguments_all, print_frame_arguments_scalars)
9522 (print_frame_arguments_none): Declare.
9523 (print_entry_values): Delete declaration.
9524 (struct frame_print_options, user_frame_print_options): New.
9525 (struct set_backtrace_options): New.
9526 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9527 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9528 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9529 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9530 (list_args_or_locals): Add frame_print_options parameter.
9531 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9532 * python/py-framefilter.c (enumerate_args): Pass down
9533 USER_FRAME_PRINT_OPTIONS.
9534 * stack.c: Include "cli/cli-option.h".
9535 (print_frame_arguments_all, print_frame_arguments_scalars)
9536 (print_frame_arguments_none): Declare.
9537 (print_raw_frame_arguments, print_entry_values): Delete.
9538 (user_frame_print_options): New.
9539 (boolean_option_def, enum_option_def, frame_print_option_defs):
9540 New.
9541 (struct backtrace_cmd_options): New.
9542 (bt_flag_option_def): New.
9543 (backtrace_command_option_defs): New.
9544 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9545 (print_frame_arg, read_frame_arg, print_frame_args)
9546 (print_frame_info, print_frame): Add frame_print_options parameter
9547 and use it.
9548 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9549 (backtrace_command_1): Add frame_print_options and
9550 backtrace_cmd_options parameters and use them.
9551 (make_backtrace_options_def_group): New.
9552 (backtrace_command): Process command options with
9553 gdb::option::process_options.
9554 (backtrace_command_completer): New.
9555 (_initialize_stack): Extend "backtrace"'s help to mention
9556 supported options. Install completer for "backtrace".
9557 Install some settings commands with add_setshow_cmds_for_options.
9558
9559 2019-06-13 Pedro Alves <palves@redhat.com>
9560
9561 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9562 and that "set/show print raw frame-arguments" are now deprecated.
9563
9564 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9565 command.
9566 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9567 * stack.c (_initialize_stack): Install "set/show print
9568 raw-frame-arguments", and deprecate "set/show print raw
9569 frame-arguments".
9570 * valprint.c (_initialize_valprint): Deprecate "set/show print
9571 raw".
9572
9573 2019-06-13 Pedro Alves <palves@redhat.com>
9574
9575 * compile/compile.c (struct compile_options): New.
9576 (compile_flag_option_def, compile_command_option_defs)
9577 (make_compile_options_def_group): New.
9578 (compile_file_command): Handle options with
9579 gdb::option::process_options.
9580 (compile_file_command_completer): New function.
9581 (compile_code_command): Handle options with
9582 gdb::option::process_options.
9583 (compile_code_command_completer): New function.
9584 (_initialize_compiler): Install completers for "compile code" and
9585 "compile file". Mention available options in "compile code" and
9586 "compile code"'s help.
9587 * completer.c (advance_to_completion_word): New, factored out from
9588 ...
9589 (advance_to_expression_complete_word_point): ... this.
9590 (advance_to_filename_complete_word_point): New.
9591 * completer.h (advance_to_filename_complete_word_point): New
9592 declaration.
9593
9594 2019-06-13 Pedro Alves <palves@redhat.com>
9595
9596 * compile/compile.c: Include "cli/cli-option.h".
9597 (compile_print_value): Scope data pointer is now a
9598 value_print_options pointer; adjust.
9599 (compile_print_command): Process options. Scope data pointer is
9600 now a value_print_options pointer; adjust.
9601 (_initialize_compile): Update "compile print"'s help to include
9602 supported options. Install a completer for "compile print".
9603 * cp-valprint.c (show_vtblprint, show_objectprint)
9604 (show_static_field_print): Delete.
9605 (_initialize_cp_valprint): Don't install "set print
9606 static-members", "set print vtbl", "set print object" here.
9607 * printcmd.c: Include "cli/cli-option.h" and
9608 "common/gdb_optional.h".
9609 (print_command_parse_format): Rework to fill in a
9610 value_print_options instead of a format_data.
9611 (print_value): Change parameter type from format_data pointer to
9612 value_print_options reference. Adjust.
9613 (print_command_1): Process options. Adjust to pass down a
9614 value_print_options.
9615 (print_command_completer): New.
9616 (_initialize_printcmd): Install print_command_completer as
9617 handle_brkchars completer for the "print" command. Update
9618 "print"'s help to include supported options.
9619 * valprint.c: Include "cli/cli-option.h".
9620 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9621 here from cp-valprint.c.
9622 (boolean_option_def, uinteger_option_def)
9623 (value_print_option_defs, make_value_print_options_def_group):
9624 New. Use gdb::option::add_setshow_cmds_for_options to install
9625 "set print elements", "set print null-stop", "set print repeats",
9626 "set print pretty", "set print union", "set print array", "set
9627 print address", "set print symbol", "set print array-indexes".
9628 * valprint.h: Include <string> and "cli/cli-option.h".
9629 (make_value_print_options_def_group): Declare.
9630 (print_value): Change parameter type from format_data pointer to
9631 value_print_options reference.
9632 (print_command_completer): Declare.
9633
9634 2019-06-13 Pedro Alves <palves@redhat.com>
9635
9636 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9637 (COMMON_SFILES): Add maint-test-settings.c.
9638 * cli/cli-decode.c (boolean_enums): New global, factored out from
9639 ...
9640 (add_setshow_boolean_cmd): ... here.
9641 * cli/cli-decode.h (boolean_enums): Declare.
9642 * cli/cli-option.c: New file.
9643 * cli/cli-option.h: New file.
9644 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9645 factored out from ...
9646 (parse_cli_boolean_value(const char *)): ... this.
9647 (is_unlimited_literal): Change parameter type to pointer to
9648 pointer. Adjust and advance ARG pointer.
9649 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9650 (parse_cli_var_enum): New, factored out from ...
9651 (do_set_command): ... this. Adjust.
9652 * cli/cli-setshow.h (parse_cli_boolean_value)
9653 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9654 (parse_cli_var_enum): Declare.
9655 * cli/cli-utils.c: Include "cli/cli-option.h".
9656 (get_ulongest): New.
9657 * cli/cli-utils.h (get_ulongest): Declare.
9658 (check_for_argument): New overloads.
9659 * maint-test-options.c: New file.
9660
9661 2019-06-13 Pedro Alves <palves@redhat.com>
9662
9663 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9664 parse a range if "-" is at the end of the string.
9665
9666 2019-06-13 Pedro Alves <palves@redhat.com>
9667
9668 * cli/cli-setshow.c (parse_auto_binary_operation)
9669 (parse_cli_boolean_value): Don't allow "o".
9670
9671 2019-06-13 Pedro Alves <palves@redhat.com>
9672
9673 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9674 * NEWS: Mention maint test-settings KIND.
9675 * maint-test-settings.c: New file.
9676
9677 2019-06-13 Pedro Alves <palves@redhat.com>
9678
9679 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9680 completer.
9681 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9682 "set" completers.
9683
9684 2019-06-13 Pedro Alves <palves@redhat.com>
9685
9686 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9687 after item.
9688
9689 2019-06-13 Pedro Alves <palves@redhat.com>
9690
9691 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9692
9693 2019-06-13 Pedro Alves <palves@redhat.com>
9694
9695 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9696 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9697 call.
9698 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9699 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9700 calls.
9701 (check_for_argument): Skip spaces after argument.
9702
9703 2019-06-13 Pedro Alves <palves@redhat.com>
9704
9705 * thread.c (thread_apply_command): Adjust TID parsing.
9706 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9707 detected before end of string.
9708 (tid_is_in_list): Error out if LIST is invalid.
9709
9710 2019-06-13 Pedro Alves <palves@redhat.com>
9711
9712 * completer.c (complete_line_internal_1): Rewind completion word
9713 point.
9714 (completion_tracker::advance_custom_word_point_by): Change
9715 parameter type to int.
9716 * completer.h (completion_tracker::advance_custom_word_point_by):
9717 Likewise.
9718
9719 2019-06-13 Pedro Alves <palves@redhat.com>
9720
9721 * completer.c (advance_to_completion_word): Handle delimiters.
9722
9723 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9724
9725 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9726
9727 2019-06-11 Tom Tromey <tom@tromey.com>
9728
9729 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9730 (xmalloc_failed): Move to alloc.c.
9731 * alloc.c: New file.
9732 * Makefile.in (COMMON_SFILES): Add alloc.c.
9733
9734 2019-06-11 Tom Tromey <tom@tromey.com>
9735
9736 * nat/linux-waitpid.c: Don't include server.h.
9737 (linux_debug): Remove.
9738 (my_waitpid): Update.
9739
9740 2019-06-11 Tom Tromey <tromey@adacore.com>
9741
9742 * infcall.c (_initialize_infcall): Remove trailing newline from
9743 help.
9744 * user-regs.c (_initialize_user_regs): Remove trailing newline
9745 from help.
9746 * typeprint.c (_initialize_typeprint): Remove trailing newline
9747 from help.
9748 * reverse.c (_initialize_reverse): Remove trailing newlines from
9749 help.
9750 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9751 from help.
9752 * language.c (add_set_language_command): Remove trailing newline
9753 from help.
9754 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9755 help.
9756 * disasm.c (_initialize_disasm): Remove trailing newline from
9757 help.
9758 * top.c (init_main): Remove trailing newline from help.
9759 * interps.c (_initialize_interpreter): Remove trailing newline
9760 from help.
9761 * btrace.c (_initialize_btrace): Remove trailing newlines from
9762 help.
9763 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9764 from help.
9765 * python/python.c (_initialize_python): Remove trailing newline
9766 from help.
9767 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9768 help.
9769 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9770 from help. Reformat some text.
9771 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9772 from help.
9773 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9774 newline from help.
9775
9776 2019-06-11 Tom Tromey <tromey@adacore.com>
9777
9778 * darwin-nat.c (darwin_decode_exception_message)
9779 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9780
9781 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9782
9783 * valops.c (value_slice): Check for not allocated or not
9784 associated values.
9785
9786 2019-06-10 Tom de Vries <tdevries@suse.de>
9787
9788 PR gdb/24618
9789 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9790 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9791 invalid.
9792
9793 2019-06-10 Tom de Vries <tdevries@suse.de>
9794
9795 PR gdb/24611
9796 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9797 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9798
9799 2019-06-10 Tom de Vries <tdevries@suse.de>
9800
9801 PR symtab/24545
9802 * symtab.c (struct demangled_name_entry): Add language field.
9803 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9804 static minimal symbol". Set and use language field.
9805
9806 2019-06-10 Tom Tromey <tromey@adacore.com>
9807
9808 * ada-lang.c (_initialize_ada_language): Update help text.
9809
9810 2019-06-10 Tom Tromey <tromey@adacore.com>
9811
9812 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9813 with a newline.
9814 * guile/guile.c (handle_boot_error): Don't end warning with a
9815 newline.
9816 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9817 warning with a newline.
9818 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9819 newline.
9820 (s12z_frame_cache): Likewise.
9821 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9822 a newline.
9823 * solib-svr4.c (disable_probes_interface): Don't end warning with
9824 a newline.
9825 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9826 newline.
9827 * python/python.c (do_finish_initialization): Don't end warning
9828 with a newline.
9829
9830 2019-06-10 Tom Tromey <tom@tromey.com>
9831
9832 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9833 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9834 gdbpy_enter.
9835
9836 2019-06-10 Tom Tromey <tromey@adacore.com>
9837
9838 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9839 data.
9840 (elf_new_init): Don't call stabsread_new_init.
9841 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9842 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9843 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9844
9845 2019-06-10 Tom de Vries <tdevries@suse.de>
9846
9847 PR symtab/16264
9848 PR symtab/24517
9849 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9850
9851 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9852
9853 * source.c (find_and_open_source): Also rewrite relative file
9854 names.
9855
9856 2019-04-26 Amos Bird <amosbird@gmail.com>
9857
9858 * annotate.c (annotate_thread_exited): Add "thread-exited"
9859 annotation.
9860
9861 2019-06-06 Tom Tromey <tromey@adacore.com>
9862
9863 * maint.h (class scoped_command_stats): Use
9864 DISABLE_COPY_AND_ASSIGN.
9865 <print_time>: New method.
9866 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9867 print_time.
9868 (scoped_command_stats::print_time): New method.
9869
9870 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9871
9872 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9873 instructions of lengths 6 or 8 bytes.
9874
9875 2019-06-04 Pedro Alves <palves@redhat.com>
9876
9877 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9878
9879 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9880 * breakpoint.c (condition_completer): Likewise.
9881 * cli/cli-dump.c (scan_expression): Likewise.
9882 * common/filestuff.c (mkdir_recursive): Likewise.
9883 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9884 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9885 (gdb_abspath): Likewise.
9886 * compile/compile-cplus-types.c
9887 (compile_cplus_instance::decl_name): Likewise.
9888 * completer.c (complete_explicit_location):
9889 (signal_completer, reg_or_group_completer_1): Likewise.
9890 * cp-support.c (cp_remove_params_if_any): Likewise.
9891 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9892 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9893 * infcmd.c (strip_bg_char): Likewise.
9894 * linespec.c (copy_token_string): Likewise.
9895 * mi/mi-main.c (output_cores): Likewise.
9896 * psymtab.c (psymtab_search_name):
9897 * symfile.c (test_set_ext_lang_command): Likewise.
9898 * target.c (target_fileio_read_stralloc): Likewise.
9899 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9900 * value.c (complete_internalvar): Likewise.
9901
9902 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9903
9904 Add objfile property to gdb.Type.
9905 * NEWS: Mention Python API addition.
9906 * python/py-type.c (typy_get_objfile): New method.
9907
9908 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9909
9910 * NEWS: Mention the new set|show style [title|highlight].
9911 Mention changes to "show style", "help" and "apropos".
9912
9913 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9914
9915 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9916 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9917 instead of print_help_for_command.
9918 (print_doc_of_command): New function.
9919 (help_list): Add 'apropos -v word' suggestion.
9920 (print_help_for_command): Style the command name using title style.
9921 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9922 (_initialize_cli_cmds): Describe -v in apropos_command help.
9923
9924 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9925
9926 * cli/cli-style.h (cli_style_option): Add name in constructor,
9927 add m_name class member, add constructor with intensity,
9928 add name class function.
9929 (cli_style_option::add_setshow_commands): Remove name argument.
9930 (highlight_style, title_style): New styles.
9931 * cli/cli-style.c (do_show): New function that shows a style
9932 characteristic styling the style name with itself.
9933 (set_style_name): New function.
9934 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9935 Update all callers according to the changes in cli/cli-style.h.
9936 * utils.h (fputs_highlighted): New function.
9937 * utils.c (fputs_highlighted): Likewise.
9938
9939 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9940
9941 * NEWS: Mention new pipe command and new convenience variables.
9942
9943 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9944
9945 * cli/cli-cmds.c (pipe_command): New function.
9946 (_initialize_cli_cmds): Call add_com for pipe_command.
9947 Define | as an alias for pipe.
9948 (exit_status_set_internal_vars): New function.
9949 (shell_escape): Call exit_status_set_internal_vars.
9950 cli/cli-decode.c (find_command_name_length): Recognize | as
9951 a single character command.
9952
9953 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9954
9955 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9956 top.c (execute_command_to_ui_file): New function, mostly a copy
9957 of execute_command_to_string.
9958 (execute_command_to_string): Implement by calling
9959 execute_command_to_ui_file.
9960
9961 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9962
9963 * top.h (saved_command_line): Remove declaration.
9964 * top.c (previous_saved_command_line, previous_repeat_arguments):
9965 New variables.
9966 (saved_command_line): Make static, define together with other
9967 'repeat variables'.
9968 (dont_repeat): Clear repeat_arguments.
9969 (repeat_previous, get_saved_command_line, save_command_line):
9970 New functions.
9971 (gdb_init): Initialize saved_command_line
9972 and previous_saved_command_line.
9973 * main.c (captured_main_1): Remove saved_command_line initialization.
9974 * event-top.c (handle_line_of_input): Update to use
9975 the new 'repeat' related functions instead of direct access to
9976 saved_command_line.
9977 * command.h (repeat_previous, get_saved_command_line,
9978 save_command_line): New declarations.
9979 (dont_repeat): Add comment.
9980
9981 2019-05-30 Tom Tromey <tromey@adacore.com>
9982
9983 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9984 Fix comment.
9985 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9986
9987 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9988
9989 PR cli/24587
9990 * completer.c (complete): Initialize variable word.
9991
9992 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9993
9994 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9995 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9996 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9997 'body' is NULL to the outter 'if', protecting the '!is_define'
9998 situation as well.
9999
10000 2019-05-29 Tom Tromey <tromey@adacore.com>
10001
10002 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10003 (dwarf_unknown): New function.
10004 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10005 (dwarf_type_encoding_name): Use dwarf_unknown.
10006
10007 2019-05-29 Tom Tromey <tromey@adacore.com>
10008
10009 PR c++/20020:
10010 * cp-valprint.c (cp_print_value_fields): Call
10011 cp_print_static_field inside "try".
10012
10013 2019-05-29 Tom Tromey <tromey@adacore.com>
10014
10015 * inflow.c (struct terminal_info): Add default operator=.
10016 * configure: Rebuild.
10017 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10018 -Wdeprecated-copy-dtor, -Wredundant-move.
10019
10020 2019-05-29 Tom Tromey <tromey@adacore.com>
10021
10022 * NEWS: Add entry.
10023 * infcmd.c (print_return_value_1): Handle finish_print
10024 option.
10025 (show_print_finish): New function.
10026 (_initialize_infcmd): Add "set/show print finish" commands.
10027 * valprint.c (user_print_options): Initialize new member.
10028 * valprint.h (struct value_print_options) <finish_print>: New
10029 member.
10030
10031 2019-05-28 Tom Tromey <tromey@adacore.com>
10032
10033 * ada-lang.c (ada_remove_Xbn_suffix)
10034 (find_old_style_renaming_symbol)
10035 (parse_old_style_renaming): Remove.
10036 (ada_find_renaming_symbol): Don't call
10037 find_old_style_renaming_symbol.
10038 (ada_is_renaming_symbol): Rename from
10039 ada_find_renaming_symbol. Remove "block" parameter. Return
10040 bool. Now static.
10041 (ada_read_var_value): Update and simplify.
10042 * ada-exp.y (write_var_or_type): Remove old code.
10043
10044 2019-05-28 Alan Hayward <alan.hayward@arm.com>
10045
10046 PR gdb/25010
10047 * event-top.c: Remove include comment.
10048 * inflow.c (class scoped_ignore_sigttou): Move from here...
10049 * inflow.h (class scoped_ignore_sigttou): ...to here.
10050 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10051 * top.c: Remove include comment.
10052
10053 2019-05-27 Tom Tromey <tom@tromey.com>
10054
10055 * NEWS: Fix typo.
10056
10057 2019-05-22 Tom Tromey <tromey@adacore.com>
10058
10059 * target.c (target_follow_exec): Constify parameter.
10060 * target-delegates.c: Rebuild.
10061 * remote.c (remote_target::follow_exec): Constify parameter.
10062 * infrun.c (follow_exec): Constify parameter.
10063 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10064 (target_follow_exec): Likewise.
10065
10066 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10067
10068 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10069 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10070
10071 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10072
10073 * NEWS: Add debugredirect and testsuite sections.
10074
10075 2019-05-22 Simon Cook <simon.cook@embecosm.com>
10076
10077 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10078 target descriptions using exclusively floating point register name
10079 aliases.
10080
10081 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10082
10083 PR gdb/18644:
10084 * f-lang.c (build_fortran_types): Handle the case where
10085 gdbarch_floatformat_for_type returns a nullptr.
10086
10087 2019-05-21 Tom de Vries <tdevries@suse.de>
10088
10089 PR cli/24587
10090 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10091
10092 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10093
10094 PR gdb/18644:
10095 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10096 16-byte floats.
10097 * i386-tdep.c (i386_floatformat_for_type): Use
10098 floatformats_ia64_quad for the 16-byte floating point component
10099 within a fortran 32-byte complex number.
10100
10101 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10102
10103 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10104 delete default constructor.
10105 (find_partial_die): Update to return const struct.
10106 (partial_die_parent_scope): Move variable declaration into scope
10107 of its use and change its type to auto.
10108 (guess_partial_die_structure_name): Likewise.
10109 (partial_die_info::fixup): Likewise.
10110
10111 2019-05-17 Tom Tromey <tromey@adacore.com>
10112
10113 * source.c (find_and_open_source): Remove cast.
10114
10115 2019-05-17 Tom Tromey <tromey@adacore.com>
10116
10117 * annotate.c (annotate_source): Make "filename" const.
10118 * annotate.h (annotate_source): Use const.
10119
10120 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10121
10122 * disasm.c (set_disassembler_options): Send errors to stderr.
10123
10124 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10125
10126 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10127 (cli_interp_base::set_logging): Check debug_redirect.
10128 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10129 * cli/cli-logging.c (debug_redirect): Add static variable.
10130 (pop_output_files): Add default param.
10131 (handle_redirections): Print debug setting.
10132 (show_logging_command): Likewise.
10133 (_initialize_cli_logging): Add debugredirect command.
10134 * interps.c (current_interp_set_logging): Add debug_redirect
10135 parameter.
10136 * interps.h (set_logging): Add debug_redirect parameter.
10137 (current_interp_set_logging): Likewise.
10138 * mi/mi-common.h: Likewise.
10139 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10140
10141 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10142 Tom Tromey <tromey@adacore.com>
10143
10144 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10145 directly.
10146 * cli/cli-interp.h (make_logging_output): Remove declaration.
10147 * cli/cli-logging.c (make_logging_output): Remove function.
10148 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10149 directly.
10150 * ui-file.c (tee_file::tee_file): Remove bools.
10151 (tee_file::~tee_file): Remove deletes.
10152 * ui-file.h (tee_file): Remove bools.
10153
10154 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10155
10156 * mi/mi-cmds.h (mi_cmd_complete): New function.
10157 * mi/mi-main.c (mi_cmd_complete): Likewise.
10158 * mi/mi-cmds.c: Define new MI command -complete.
10159 * NEWS: Mention new -complete command.
10160
10161 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10162
10163 * completer.h (complete): New function.
10164 * completer.c (complete): Likewise.
10165 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10166 function defined in completer.h.
10167
10168 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10169
10170 * MAINTAINERS (Write After Approval): Add myself.
10171
10172 2019-05-17 Tom de Vries <tdevries@suse.de>
10173
10174 PR gdb/24094
10175 * dwarf2read.c (struct cu_partial_die_info): New struct.
10176 (find_partial_die): Return cu_partial_die_info.
10177 (partial_die_parent_scope, guess_partial_die_structure_name)
10178 (partial_die_info::fixup): Handle new return type of find_partial_die.
10179
10180 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10181
10182 PR breakpoints/24541
10183 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10184 "std::string", simplifying the algorithm.
10185
10186 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10187
10188 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10189 (stap_static_probe_ops::get_probes): Likewise.
10190
10191 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10192
10193 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10194 '-')" and "else if".
10195 (stap_parse_single_operand): Join checks for
10196 "gdbarch_stap_parse_special_token_p" and
10197 "gdbarch_stap_parse_special_token" in the same "if" statement.
10198 Invert check when verifying for operation on register
10199 displacement.
10200
10201 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10202
10203 * stap-probe.c (stap_get_opcode): Update comment.
10204 (stap_get_expected_argument_type): Likewise.
10205 (handle_stap_probe): Likewise.
10206
10207 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10208
10209 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10210 return type to 'bool'. Adjust comment. Use 'bool' when
10211 appropriate.
10212 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10213 * stap-probe.c (stap_parse_argument_1): Likewise.
10214 (stap_is_operator): Likewise.
10215 (stap_is_generic_prefix): Likewise.
10216 (stap_is_register_prefix): Likewise.
10217 (stap_is_register_indirection_prefix): Likewise.
10218 (stap_is_integer_prefix): Likewise.
10219 (stap_generic_check_suffix): Likewise.
10220 (stap_check_integer_suffix): Likewise.
10221 (stap_check_register_suffix): Likewise.
10222 (stap_check_register_indirection_suffix): Likewise.
10223 (stap_parse_register_operand): Likewise.
10224 (stap_parse_single_operand): Likewise.
10225 (stap_parse_argument_1): Likewise.
10226 (stap_probe::get_argument_count): Likewise.
10227 (stap_is_operator): Likewise.
10228
10229 2019-05-16 Tom Tromey <tromey@adacore.com>
10230
10231 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10232 keyword to foreach.
10233
10234 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10235
10236 * linux-thread-db.c (try_thread_db_load_1): Change return type
10237 to bool.
10238 (try_thread_db_load): Likewise.
10239 (try_thread_db_load_from_pdir_1): Likewise.
10240 (try_thread_db_load_from_pdir): Likewise.
10241 (try_thread_db_load_from_sdir): Likewise.
10242 (try_thread_db_load_from_dir): Likewise.
10243 (thread_db_load_search): Likewise.
10244 (has_libpthread): Likewise.
10245 (thread_db_load): Likewise.
10246
10247 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10248
10249 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10250 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10251 NULL, and complain/return if that's the case.
10252
10253 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10254
10255 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10256 (advance, posn, abstract_read_memory): New functions.
10257 [struct mem_read_abstraction]: New struct.
10258 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10259
10260 2019-05-14 Tom Tromey <tromey@adacore.com>
10261
10262 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10263 value is not lval_memory.
10264
10265 2019-05-14 Tom Tromey <tromey@adacore.com>
10266
10267 * solib.c (info_sharedlibrary_command): Style the file name.
10268
10269 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10270
10271 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10272 (aarch64_vnv_type): Likewise.
10273 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10274 * common/tdesc.c: Likewise.
10275 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10276 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10277 * features/aarch64-fpu.xml: Add ieee half view.
10278 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10279 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10280 * gdbtypes.h (struct builtin_type): Likewise.
10281 (struct objfile_type): Likewise.
10282
10283 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10284
10285 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10286 typo.
10287 * location.h (string_to_event_location): Likewise.
10288
10289 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10290
10291 GDB 8.3 released.
10292
10293 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10294
10295 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10296 New variable declaration.
10297 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10298 New variable.
10299 (print_one_breakpoint): Use ui_out::test_flags and new global
10300 variable to compute use_fixed_output.
10301 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10302 Remove.
10303 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10304 (mi_multi_location_breakpoint_output_fixed): Remove.
10305 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10306 new variable.
10307 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10308 fix_multi_location_breakpoint_output flag if version >= 3.
10309 * ui-out.h (enum ui_out_flag)
10310 <fix_multi_location_breakpoint_output>: New enumerator.
10311
10312 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10313
10314 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10315
10316 2019-05-10 Tom Tromey <tromey@adacore.com>
10317
10318 * ada-lang.c (catch_ada_completer): New function.
10319 (_initialize_ada_language): Use it.
10320
10321 2019-05-10 Tom Tromey <tromey@adacore.com>
10322
10323 * thread.c (print_thread_info): Make "requested_threads" const.
10324 * gdbthread.h (print_thread_info): Make "requested_threads"
10325 const.
10326 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10327 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10328
10329 2019-05-08 Tom Tromey <tom@tromey.com>
10330
10331 * gdbtypes.c (objfile_type_data): Change type.
10332 (objfile_type, _initialize_gdbtypes): Update.
10333
10334 2019-05-08 Tom Tromey <tom@tromey.com>
10335
10336 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10337 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10338 (_initialize_dwarf2_frame): Update.
10339
10340 2019-05-08 Tom Tromey <tom@tromey.com>
10341
10342 * objc-lang.c (objc_objfile_data): Change type.
10343 (find_methods): Update.
10344 (_initialize_objc_lang): Remove.
10345
10346 2019-05-08 Tom Tromey <tom@tromey.com>
10347
10348 * stabsread.c (rs6000_builtin_type_data): Change type.
10349 (rs6000_builtin_type, _initialize_stabsread): Update.
10350
10351 2019-05-08 Tom Tromey <tom@tromey.com>
10352
10353 * mips-tdep.c (mips_pdr_data): Remove.
10354 (_initialize_mips_tdep): Update.
10355
10356 2019-05-08 Tom Tromey <tom@tromey.com>
10357
10358 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10359 (hppa_init_objfile_priv_data, read_unwind_info)
10360 (find_unwind_entry, _initialize_hppa_tdep): Update.
10361
10362 2019-05-08 Tom Tromey <tom@tromey.com>
10363
10364 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10365 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10366 on obstack.
10367 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10368
10369 2019-05-08 Tom Tromey <tom@tromey.com>
10370
10371 * mdebugread.c (basic_type_data): Change type.
10372 (basic_type, _initialize_mdebugread): Update.
10373
10374 2019-05-08 Tom Tromey <tom@tromey.com>
10375
10376 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10377
10378 2019-05-08 Tom Tromey <tom@tromey.com>
10379
10380 * nto-tdep.c (nto_inferior_data_reg): Change type.
10381 (nto_inferior_data): Update.
10382 (nto_inferior_data_cleanup, nto_new_inferior_data)
10383 (_initialize_nto_tdep): Remove.
10384 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10385
10386 2019-05-08 Tom Tromey <tom@tromey.com>
10387
10388 * ada-lang.c (struct ada_inferior_data): Add initializers.
10389 (ada_inferior_data): Change type.
10390 (ada_inferior_data_cleanup): Remove.
10391 (get_ada_inferior_data, ada_inferior_exit)
10392 (struct ada_pspace_data): Add initializers, destructor.
10393 (ada_pspace_data_handle): Change type.
10394 (get_ada_pspace_data): Update.
10395 (ada_pspace_data_cleanup): Remove.
10396
10397 2019-05-08 Tom Tromey <tom@tromey.com>
10398
10399 * coffread.c (struct coff_symfile_info): Add initializers.
10400 (coff_objfile_data_key): Move lower. Change type.
10401 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10402 Update.
10403 (coff_free_info): Remove.
10404
10405 2019-05-08 Tom Tromey <tom@tromey.com>
10406
10407 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10408 (fbsd_pspace_data_handle): Move lower. Change type.
10409 (get_fbsd_pspace_data): Update.
10410 (fbsd_pspace_data_cleanup): Remove.
10411 (_initialize_fbsd_tdep): Update.
10412
10413 2019-05-08 Tom Tromey <tom@tromey.com>
10414
10415 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10416 (get_ada_tasks_pspace_data): Update.
10417 (ada_tasks_pspace_data_cleanup): Remove.
10418 (_initialize_tasks): Update.
10419 (ada_tasks_inferior_data_handle): Change type.
10420 (get_ada_tasks_inferior_data): Update.
10421 (ada_tasks_inferior_data_cleanup): Remove.
10422 (struct ada_tasks_pspace_data): Add initializers.
10423
10424 2019-05-08 Tom Tromey <tom@tromey.com>
10425
10426 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10427 * symfile-debug.c (debug_sym_get_probes): Change type.
10428 * stap-probe.c (handle_stap_probe):
10429 (stap_static_probe_ops::get_probes): Change type.
10430 * probe.h (class static_probe_ops) <get_probes>: Change type.
10431 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10432 (parse_probes_in_pspace): Update.
10433 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10434 Update.
10435 (any_static_probe_ops::get_probes): Change type.
10436 * elfread.c (elfread_data): New typedef.
10437 (probe_key): Change type.
10438 (elf_get_probes): Likewise. Update.
10439 (probe_key_free): Remove.
10440 (_initialize_elfread): Update.
10441 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10442 Change type.
10443 (dtrace_process_dof_probe, dtrace_process_dof)
10444 (dtrace_static_probe_ops::get_probe): Change type.
10445
10446 2019-05-08 Tom Tromey <tom@tromey.com>
10447
10448 * xcoffread.c (struct xcoff_symfile_info): Rename from
10449 coff_symfile_info. Add initializers.
10450 (xcoff_objfile_data_key): Move lower. Change type.
10451 (XCOFF_DATA): Rewrite.
10452 (xcoff_free_info): Remove.
10453 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10454 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10455 (xcoff_initial_scan): Update.
10456
10457 2019-05-08 Tom Tromey <tom@tromey.com>
10458
10459 * solib-svr4.c (struct svr4_info): Add initializers and
10460 destructor.
10461 <probes_table>: Now an htab_up.
10462 (solib_svr4_pspace_data): Change type.
10463 (free_probes_table): Simplify.
10464 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10465 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10466 (probes_table_remove_objfile_probes, register_solib_event_probe)
10467 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10468 (_initialize_svr4_solib): Update.
10469
10470 2019-05-08 Tom Tromey <tom@tromey.com>
10471
10472 * remote.c (remote_pspace_data): Change type.
10473 (remote_pspace_data_cleanup): Remove.
10474 (get_remote_exec_file, set_pspace_remote_exec_file)
10475 (_initialize_remote): Update.
10476
10477 2019-05-08 Tom Tromey <tom@tromey.com>
10478
10479 * breakpoint.c (breakpoint_objfile_key): Change type.
10480 (get_breakpoint_objfile_data): Update.
10481 (free_breakpoint_objfile_data): Remove.
10482 (_initialize_breakpoint): Update.
10483
10484 2019-05-08 Tom Tromey <tom@tromey.com>
10485
10486 * linux-tdep.c (struct linux_info): Add initializers.
10487 (linux_inferior_data): Move. Change type.
10488 (invalidate_linux_cache_inf): Update.
10489 (linux_inferior_data_cleanup): Remove.
10490 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10491
10492 2019-05-08 Tom Tromey <tom@tromey.com>
10493
10494 * auxv.c (auxv_inferior_data): Move. Change type.
10495 (auxv_inferior_data_cleanup): Remove.
10496 (invalidate_auxv_cache_inf): Rewrite.
10497 (get_auxv_inferior_data, _initialize_auxv): Update.
10498
10499 2019-05-08 Tom Tromey <tom@tromey.com>
10500
10501 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10502 (symfile_debug_objfile_data_key): Change type.
10503 (symfile_debug_installed, debug_qf_has_symbols)
10504 (debug_qf_find_last_source_symtab)
10505 (debug_qf_forget_cached_source_info)
10506 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10507 (debug_qf_print_stats, debug_qf_dump)
10508 (debug_qf_expand_symtabs_for_function)
10509 (debug_qf_expand_all_symtabs)
10510 (debug_qf_expand_symtabs_with_fullname)
10511 (debug_qf_map_matching_symbols)
10512 (debug_qf_expand_symtabs_matching)
10513 (debug_qf_find_pc_sect_compunit_symtab)
10514 (debug_qf_map_symbol_filenames)
10515 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10516 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10517 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10518 (debug_sym_read_linetable, debug_sym_relocate): Update.
10519 (symfile_debug_free_objfile): Remove.
10520 (install_symfile_debug_logging, _initialize_symfile_debug):
10521 Update.
10522
10523 2019-05-08 Tom Tromey <tom@tromey.com>
10524
10525 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10526 allocate_on_obstack.
10527 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10528 (get_dwarf2_per_objfile): Update.
10529 (set_dwarf2_per_objfile): Remove.
10530 (dwarf2_has_info, dwarf2_get_section_info): Update.
10531 (dwarf2_free_objfile): Remove.
10532 (_initialize_dwarf2_read): Update.
10533
10534 2019-05-08 Tom Tromey <tom@tromey.com>
10535
10536 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10537 initializers.
10538 <unsupported_script_warning_printed,
10539 script_not_found_warning_printed>: Now bool.
10540 (auto_load_pspace_data): Change type.
10541 (~auto_load_pspace_info): Rename from
10542 auto_load_pspace_data_cleanup.
10543 (get_auto_load_pspace_data, init_loaded_scripts_info)
10544 (clear_section_scripts, maybe_print_unsupported_script_warning)
10545 (maybe_print_script_not_found_warning, _initialize_auto_load):
10546 Update.
10547
10548 2019-05-08 Tom Tromey <tom@tromey.com>
10549
10550 * objfiles.c (objfile_pspace_info): Add destructor and
10551 initializers.
10552 (objfiles_pspace_data): Change type.
10553 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10554 (get_objfile_pspace_data): Update.
10555 (objfiles_bfd_data): Change type.
10556 (get_objfile_bfd_data): Update.
10557 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10558
10559 2019-05-08 Tom Tromey <tom@tromey.com>
10560
10561 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10562 Change type.
10563 (get_catch_syscall_inferior_data): Update.
10564 (catch_syscall_inferior_data_cleanup): Remove.
10565 (_initialize_break_catch_syscall): Update.
10566
10567 2019-05-08 Tom Tromey <tom@tromey.com>
10568
10569 * inflow.c (struct terminal_info): Add destructor and
10570 initializers.
10571 (inflow_inferior_data): Change type.
10572 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10573 (get_inflow_inferior_data, inflow_inferior_exit)
10574 (swap_terminal_info, _initialize_inflow): Update.
10575
10576 2019-05-08 Tom Tromey <tom@tromey.com>
10577
10578 * target-dcache.c (target_dcache_cleanup): Remove.
10579 (target_dcache_aspace_key): Change type.
10580 (target_dcache_init_p, target_dcache_invalidate)
10581 (target_dcache_get, target_dcache_get_or_init)
10582 (_initialize_target_dcache): Update.
10583 * dcache.h (struct dcache_deleter): New.
10584
10585 2019-05-08 Tom Tromey <tom@tromey.com>
10586
10587 * symtab.c (struct symbol_cache): Add destructor and
10588 initializers.
10589 (symbol_cache_key): Move. Change type.
10590 (make_symbol_cache, free_symbol_cache): Remove.
10591 (get_symbol_cache): Update.
10592 (symbol_cache_cleanup): Remove.
10593 (ALL_PSPACES, symbol_cache_flush)
10594 (maintenance_print_symbol_cache)
10595 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10596 Update.
10597
10598 2019-05-08 Tom Tromey <tom@tromey.com>
10599
10600 * symtab.c (struct main_info): Add destructor and initializers.
10601 (main_progspace_key): Move. Change type.
10602 (get_main_info): Update.
10603 (main_info_cleanup): Remove.
10604 (_initialize_symtab): Update.
10605
10606 2019-05-08 Tom Tromey <tom@tromey.com>
10607
10608 * registry.h (DECLARE_REGISTRY): Define the _key class.
10609
10610 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10611
10612 * NEWS: Merge two 'New commands' sections.
10613
10614 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10615
10616 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10617 parameter and use Ada language definition instead.
10618 (ada_val_print_ptr): Remove unused language parameter.
10619 (ada_val_print_num): Remove language parameter and use Ada language
10620 definition instead.
10621 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10622 parameter.
10623 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10624 parameter and use Ada language definition instead.
10625 (ada_val_print_1): Update all ada_val_print_xxx calls.
10626 Remove language parameter.
10627 (ada_val_print): Update ada_val_print_1 call.
10628
10629 2019-05-08 Tom Tromey <tromey@adacore.com>
10630
10631 * remote.c (remote_hw_watchpoint_limit)
10632 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10633 Now static.
10634
10635 2019-05-08 Tom Tromey <tromey@adacore.com>
10636
10637 * maint.c (_initialize_maint_cmds): Move initialization code to
10638 remote.c.
10639 (watchdog, show_watchdog): Move to remote.c.
10640 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10641 "watchdog" static.
10642 (_initialize_remote): Move initialization code from maint.c.
10643 * defs.h (watchdog): Don't declare.
10644
10645 2019-05-08 Tom Tromey <tromey@adacore.com>
10646
10647 * tui/tui-interp.c: Include main.h.
10648 * interps.c: Include main.h.
10649 * main.h (interpreter_p): Declare.
10650 * defs.h (interpreter_p): Don't declare.
10651
10652 2019-05-08 Tom Tromey <tromey@adacore.com>
10653
10654 * dwarf2loc.c: Include dwarf2read.h.
10655 * defs.h (read_unsigned_leb128): Don't declare.
10656 * dwarf2read.h (read_unsigned_leb128): Declare.
10657
10658 2019-05-08 Tom Tromey <tromey@adacore.com>
10659
10660 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10661 method.
10662
10663 2019-05-08 Tom Tromey <tromey@adacore.com>
10664
10665 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10666 when no wrap column is set.
10667
10668 2019-05-08 Tom Tromey <tromey@adacore.com>
10669
10670 * c-lang.c (c_get_string): Handle non-C-style arrays.
10671
10672 2019-05-08 Tom Tromey <tromey@adacore.com>
10673
10674 * typeprint.c (print_offset_data::update): Print the bit offset,
10675 not the number of bits remaining.
10676
10677 2019-05-08 Tom Tromey <tromey@adacore.com>
10678
10679 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10680 padding at end of comment.
10681
10682 2019-05-08 Tom Tromey <tromey@adacore.com>
10683
10684 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10685 Compare main types.
10686
10687 2019-05-06 Tom Tromey <tom@tromey.com>
10688
10689 * common/scoped_mmap.c: Include common-defs.h.
10690 * common/scoped_mmap.h: Don't include config.h.
10691
10692 2019-05-04 Tom Tromey <tom@tromey.com>
10693
10694 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10695 (struct aarch64_call_info): Add initializers.
10696 <si>: Now a std::vector.
10697 (pass_on_stack, aarch64_push_dummy_call): Update.
10698
10699 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10700 Tom Tromey <tom@tromey.com>
10701
10702 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10703 (ppc_threads): Now a std::vector. Now static.
10704 (hwdebug_find_thread_points_by_tid)
10705 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10706 Update.
10707
10708 2019-05-04 Tom Tromey <tom@tromey.com>
10709
10710 * arc-tdep.c (arc_tdesc_init): Return bool.
10711
10712 2019-05-04 Tom Tromey <tom@tromey.com>
10713
10714 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10715 Use gdb_assert_not_reached.
10716
10717 2019-05-04 Tom Tromey <tom@tromey.com>
10718
10719 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10720 "false".
10721
10722 2019-05-04 Tom Tromey <tom@tromey.com>
10723
10724 * arc-tdep.c (arc_tdesc_init): Use bool.
10725
10726 2019-05-04 Tom Tromey <tom@tromey.com>
10727
10728 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10729
10730 2019-05-04 Tom Tromey <tom@tromey.com>
10731
10732 * cli/cli-cmds.c (valid_command_p): Return bool.
10733
10734 2019-05-04 Tom Tromey <tom@tromey.com>
10735
10736 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10737 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10738
10739 2019-05-04 Raul Tambre <raul@tambre.ee>
10740
10741 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10742 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10743 operator for comparison.
10744
10745 2019-05-04 Tom Tromey <tom@tromey.com>
10746
10747 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10748 (lookup_partial_symbol, print_partial_symbols)
10749 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10750 (psymbol_compare): Update.
10751 (add_psymbol_to_bcache): Clear the entire psymbol.
10752 (maintenance_check_psymtabs): Update.
10753 * psympriv.h (struct partial_symbol): Don't derive from
10754 general_symbol_info.
10755 <obj_section, unrelocated_address, address,
10756 set_unrelocated_address>: Update.
10757 <ginfo>: New member.
10758 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10759 (debug_names::write_psymbols): Update.
10760
10761 2019-05-04 Tom de Vries <tdevries@suse.de>
10762
10763 * contrib/cc-with-tweaks.sh: Support -n arg.
10764
10765 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10766
10767 * corelow.c (core_target::detach): Ensure frame cache and
10768 register caches are cleared.
10769 inferior.c (exit_inferior_1): Likewise.
10770
10771 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10772 Tom Tromey <tom@tromey.com>
10773
10774 * dictionary.c (collate_pending_symbols_by_language): Remove
10775 "struct" from foreach.
10776 * symtab.c (lookup_global_symbol_from_objfile)
10777 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10778 foreach.
10779 * ser-tcp.c (net_open): Remove "struct" from foreach.
10780 * objfiles.c (objfile_relocate, objfile_rebase)
10781 (objfile_has_symbols): Remove "struct" from foreach.
10782 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10783 from foreach.
10784 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10785 foreach.
10786 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10787 "struct" from foreach.
10788 * ada-lang.c (create_excep_cond_exprs)
10789 (ada_exception_catchpoint_cond_string): Remove "struct" from
10790 foreach.
10791
10792 2019-05-03 Tom Tromey <tromey@adacore.com>
10793
10794 * ada-exp.y (convert_char_literal): Check suffix of each
10795 enumerator.
10796
10797 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10798
10799 PR ada/21406:
10800 * ada-exp.y (yywrap): Don't define.
10801 * ada-lex.l (%option): Add noyywrap
10802 (yywrap): Remove.
10803
10804 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10805
10806 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10807 _WIN32_WINNT to the XP level, unless already defined to a higher
10808 level.
10809
10810 * unittests/parse-connection-spec-selftests.c:
10811 * ser-tcp.c:
10812 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10813 override.
10814
10815 * symfile.c (find_separate_debug_file): Remove colon from the
10816 drive spec of DOS/Windows file names of the target, so that the
10817 file name produced from DEBUGDIR and the target's directory will
10818 be valid on DOS/Windows systems.
10819
10820 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10821
10822 * rust-lang.c (val_print_struct): Handle printing structures
10823 containing strings.
10824
10825 2019-05-02 Tom Tromey <tromey@adacore.com>
10826
10827 * valarith.c (_initialize_valarith): Remove.
10828
10829 2019-05-01 Tom Tromey <tromey@adacore.com>
10830
10831 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10832 bitfields.
10833
10834 2019-05-01 Tom Tromey <tromey@adacore.com>
10835
10836 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10837 for big-endian copies.
10838
10839 2019-04-30 Ali Tamur <tamur@google.com>
10840 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10841 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10842 (read_3_bytes): New function.
10843
10844 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10845
10846 * windows-nat.c (main_thread_id): Delete.
10847 (handle_output_debug_string): Replace main_thread_id by
10848 current_event.dwThreadId.
10849 (fake_create_process): Likewise.
10850 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10851 Do not set main_thread_id.
10852 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10853 current_event.dwThreadId.
10854 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10855
10856 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10857
10858 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10859 Use current_event.dwThreadId instead of main_thread_id.
10860
10861 2019-04-30 Tom Tromey <tromey@adacore.com>
10862
10863 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10864 (create_excep_cond_exprs): Iterate over program spaces.
10865 (ada_exception_catchpoint_cond_string): Examine all minimal
10866 symbols for exception types.
10867
10868 2019-04-30 Tom Tromey <tromey@adacore.com>
10869
10870 PR c++/24470:
10871 * dwarf2read.c (process_structure_scope): Handle case where type
10872 has template parameters but no symbol was created.
10873
10874 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10875 Chris January <chris.january@arm.com>
10876
10877 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10878 qualifier.
10879 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10880
10881 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10882
10883 * f-typeprint.c (f_print_type): Update rules for printing
10884 whitespace.
10885 (f_type_print_varspec_suffix): Likewise.
10886
10887 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10888 Chris January <chris.january@arm.com>
10889
10890 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10891 function arguments.
10892
10893 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10894
10895 * f-lang.c (build_fortran_types): Change name of void type to
10896 lower case.
10897 * f-typeprint.c (f_type_print_base): Print the name of the void
10898 type, rather than a fixed string.
10899 * f-valprint.c (f_decorations): Use lower case void string.
10900
10901 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10902 Chris January <chris.january@arm.com>
10903
10904 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10905 types for Fortran.
10906
10907 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10908 Chris January <chris.january@arm.com>
10909 David Lecomber <david.lecomber@arm.com>
10910
10911 * f-exp.y (BINOP_INTRINSIC): New token.
10912 (exp): New parser rule handling BINOP_INTRINSIC.
10913 (f77_keywords): Add new builtin procedures.
10914 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10915 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10916 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10917 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10918 (print_unop_subexp_f): New function.
10919 (print_binop_subexp_f): New function.
10920 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10921 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10922 (dump_subexp_body_f): Likewise.
10923 (operator_check_f): Likewise.
10924 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10925 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10926
10927 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10928
10929 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10930 UNOP_KIND.
10931 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10932 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10933 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10934 (operator_length_f): New fuction.
10935 (print_subexp_f): New function.
10936 (op_name_f): New function.
10937 (dump_subexp_body_f): New function.
10938 (operator_check_f): New function.
10939 (exp_descriptor_f): Replace standard expression handling functions
10940 with new functions.
10941 * gdb/fortran-operator.def: New file.
10942 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10943 * gdb/std-operator.def: Remove UNOP_KIND.
10944
10945 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10946
10947 * std-operator.def: Remove unbalanced, stray double quote
10948 character.
10949
10950 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10951 Chris January <chris.january@arm.com>
10952 Daniel Everett <daniel.everett@arm.com>
10953 Nick Forrington <nick.forrington@arm.com>
10954 Richard Bunt <richard.bunt@arm.com>
10955
10956 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10957 of depth when printing anonymous structs or unions.
10958 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10959 Don't print either the top-level value, or the children if the
10960 max-depth is exceeded.
10961 (ppscm_print_children): When printing the key of a map, allow one
10962 extra level of depth.
10963 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10964 print either the top-level value, or the children if the max-depth
10965 is exceeded.
10966 (print_children): When printing the key of a map, allow one extra
10967 level of depth.
10968 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10969 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10970 (user_print_options): Initialise max_depth field.
10971 (val_print_scalar_or_string_type_p): New function.
10972 (val_print): Check to see if the max depth has been reached.
10973 (val_print_check_max_depth): Define new function.
10974 (show_print_max_depth): New function.
10975 (_initialize_valprint): Add 'print max-depth' option.
10976 * valprint.h (struct value_print_options) <max_depth>: New field.
10977 (val_print_check_max_depth): Declare new function.
10978 * NEWS: Document new feature.
10979
10980 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10981
10982 * ada-lang.c (ada_language_defn): Initialise new field.
10983 * c-lang.c (c_is_string_type_p): New function.
10984 (c_language_defn): Initialise new field.
10985 (cplus_language_defn): Initialise new field.
10986 (asm_language_defn): Initialise new field.
10987 (minimal_language_defn): Initialise new field.
10988 * c-lang.h (c_is_string_type_p): Declare new function.
10989 * d-lang.c (d_language_defn): Initialise new field.
10990 * f-lang.c (f_is_string_type_p): New function.
10991 (f_language_defn): Initialise new field.
10992 * go-lang.c (go_is_string_type_p): New function.
10993 (go_language_defn): Initialise new field.
10994 * language.c (default_is_string_type_p): New function.
10995 (unknown_language_defn): Initialise new field.
10996 (auto_language_defn): Initialise new field.
10997 * language.h (struct language_defn) <la_is_string_type_p>: New
10998 member variable.
10999 (default_is_string_type_p): Declare new function.
11000 * m2-lang.c (m2_language_defn): Initialise new field.
11001 * objc-lang.c (objc_language_defn): Initialise new field.
11002 * opencl-lang.c (opencl_language_defn): Initialise new field.
11003 * p-lang.c (pascal_is_string_type_p): New function.
11004 (pascal_language_defn): Initialise new field.
11005 * rust-lang.c (rust_is_string_type_p): New function.
11006 (rust_language_defn): Initialise new field.
11007
11008 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11009
11010 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11011 New field.
11012 * ada-lang.c (ada_language_defn): Initialise new field.
11013 * c-lang.c (c_language_defn): Likewise.
11014 (cplus_language_defn): Likewise.
11015 (asm_language_defn): Likewise.
11016 (minimal_language_defn): Likewise.
11017 * d-lang.c (d_language_defn): Likewise.
11018 * f-lang.c (f_language_defn): Likewise.
11019 * go-lang.c (go_language_defn): Likewise.
11020 * language.c (unknown_language_defn): Likewise.
11021 (auto_language_defn): Likewise.
11022 * m2-lang.c (m2_language_defn): Likewise.
11023 * objc-lang.c (objc_language_defn): Likewise.
11024 * opencl-lang.c (opencl_language_defn): Likewise.
11025 * p-lang.c (pascal_language_defn): Likewise.
11026 * rust-lang.c (rust_language_defn): Likewise.
11027
11028 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11029
11030 * ada-lang.c (ada_is_character_type): Change return type to bool.
11031 (ada_is_string_type): Likewise.
11032 * ada-lang.h (ada_is_character_type): Update declaration
11033 (ada_is_string_type): Likewise.
11034
11035 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11036
11037 Support style in 'frame|thread apply'
11038
11039 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11040 * record.c (record_start, record_stop): Update callers of
11041 execute_command_to_string with false.
11042 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11043 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11044 methods.
11045 (class string_file): New constructor with term_out parameter.
11046 Override methods term_out and can_emit_style_escape. New member
11047 term_out.
11048 (class stdio_file): Override can_emit_style_escape.
11049 (class tee_file): Override term_out and can_emit_style_escape.
11050 * utils.h (can_emit_style_escape): Remove.
11051 * utils.c (can_emit_style_escape): Likewise.
11052 Update all callers of can_emit_style_escape (SOMESTREAM) to
11053 SOMESTREAM->can_emit_style_escape.
11054 * source-cache.c (source_cache::get_source_lines): Likewise.
11055 * stack.c (frame_apply_command_count): Call execute_command_to_string
11056 passing the term_out characteristic of the current gdb_stdout.
11057 * thread.c (thr_try_catch_cmd): Likewise.
11058 * top.c (execute_command_to_string): pass term_out parameter
11059 to construct the string_file for the command output.
11060 * ui-file.c (term_cli_styling): New function (most code moved
11061 from utils.c can_emit_style_escape).
11062 (string_file::string_file, string_file::can_emit_style_escape,
11063 stdio_file::can_emit_style_escape, tee_file::term_out,
11064 tee_file::can_emit_style_escape): New functions.
11065
11066 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11067
11068 * NEWS: Mention the new set|show may-call-functions.
11069 * infcall.c (may_call_functions_p): New variable.
11070 (show_may_call_functions_p): New function.
11071 (call_function_by_hand_dummy): Throws an error if not
11072 may-call-functions.
11073 (_initialize_infcall): Call add_setshow_boolean_cmd for
11074 may-call-functions.
11075
11076 2019-04-25 Keith Seitz <keiths@redhat.com>
11077
11078 PR c++/24367
11079 * cp-support.c (inspect_type): Don't attempt substitutions
11080 of symbol with the same name.
11081
11082 2019-04-25 Tom Tromey <tromey@adacore.com>
11083
11084 PR gdb/24475:
11085 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11086 static.
11087
11088 2019-04-25 Tom Tromey <tromey@adacore.com>
11089
11090 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11091 rvalue reference.
11092 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11093 (gdb_xml_parser::parse): Use std::move.
11094 * python/python-internal.h (gdbpy_convert_exception): Take a const
11095 reference.
11096 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11097 std::move.
11098 * python/py-utils.c (gdbpy_convert_exception): Take a const
11099 reference.
11100 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11101 Use std::move.
11102 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11103 Use std::move.
11104 * mi/mi-main.c (mi_print_exception): Take a const reference.
11105 * main.c (handle_command_errors): Take a const reference.
11106 * linespec.c (parse_linespec): Use std::move.
11107 * infcall.c (run_inferior_call): Use std::move.
11108 (call_function_by_hand_dummy): Use std::move.
11109 * exec.c (try_open_exec_file): Use std::move.
11110 * exceptions.h (exception_print, exception_fprintf)
11111 (exception_print_same): Update.
11112 * exceptions.c (print_exception, exception_print)
11113 (exception_fprintf, exception_print_same): Change parameters to
11114 const reference.
11115 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11116 * common/new-op.c: Use std::move.
11117 * common/common-exceptions.h (struct gdb_exception): Add move
11118 constructor.
11119 (struct gdb_exception_error, struct gdb_exception_quit, struct
11120 gdb_quit_bad_alloc): Change constructor to move constructor.
11121 (throw_exception): Change parameter to rvalue reference.
11122 * common/common-exceptions.c (throw_exception): Take rvalue
11123 reference.
11124 * cli/cli-interp.c (safe_execute_command): Use std::move.
11125 * breakpoint.c (insert_bp_location, location_to_sals): Use
11126 std::move.
11127
11128 2019-04-25 Tom Tromey <tromey@adacore.com>
11129
11130 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11131 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11132 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11133 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11134 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11135 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11136 guile/scm-value.c: Use unpack.
11137 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11138 gdbscm_gdb_exception.
11139 (gdbscm_throw_gdb_exception): Likewise.
11140 (struct gdbscm_gdb_exception): New.
11141 (unpack): New function.
11142 (gdbscm_wrap): Use unpack.
11143
11144 2019-04-25 Tom Tromey <tromey@adacore.com>
11145
11146 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11147 (gdb_rl_callback_handler): Use std::move.
11148 * common/common-exceptions.h (struct gdb_exception): Add move
11149 assignment operator.
11150 (throw_exception_sjlj): Change "exception" to const reference.
11151 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11152 (throw_exception_sjlj): Change "exception" to const reference.
11153
11154 2019-04-25 Tom Tromey <tromey@adacore.com>
11155
11156 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11157 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11158 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11159 Update.
11160 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11161 Update.
11162 * mi/mi-interp.c (mi_interp::exec): Update.
11163 * linespec.c (parse_linespec): Update.
11164 * infcall.c (run_inferior_call): Update.
11165 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11166 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11167 (gdbscm_lookup_global_symbol): Update.
11168 * guile/scm-param.c (gdbscm_parameter_value): Update.
11169 * guile/scm-frame.c (gdbscm_frame_read_register)
11170 (gdbscm_frame_read_var): Update.
11171 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11172 * exec.c (try_open_exec_file): Update.
11173 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11174 (gdb_rl_callback_handler): Update.
11175 * common/common-exceptions.h (exception_none): Don't declare.
11176 * common/common-exceptions.c (exception_none): Don't define.
11177 (struct catcher) <exception>: Update.
11178 * cli/cli-interp.c (safe_execute_command): Update.
11179 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11180
11181 2019-04-25 Ali Tamur <tamur@google.com>
11182
11183 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11184 (read_attribute_value): Likewise.
11185 (dwarf2_read_addr_index): Update comment.
11186 (read_str_index): Add DW_FORM_strx.
11187 (dwarf2_string_attr): Likewise.
11188 (dwarf2_const_value_attr): Likewise.
11189 (dump_die_shallow): Likewise.
11190 (dwarf2_fetch_constant_bytes): Likewise.
11191 (skip_form_bytes): Likewise.
11192 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11193
11194 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11195
11196 PR corefiles/11608
11197 PR corefiles/18187
11198 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11199 OFFSET. Verify if current mapping contains an ELF header.
11200 (linux_find_memory_regions_full): Adjust call to
11201 dump_mapping_p.
11202
11203 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11204 Kang Li <kanglictf@gmail.com>
11205
11206 PR gdb/21600
11207
11208 * dwarf2-frame.c (read_initial_length): Be consistent about using
11209 unsigned representation of length.
11210 (decode_frame_entry_1): Likewise. Check for wraparound of
11211 end pointer as well as buffer overflow.
11212
11213 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11214
11215 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11216 "vq".
11217
11218 2019-04-24 Tom Tromey <tromey@adacore.com>
11219
11220 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11221
11222 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11223
11224 * s12z-tdep.c (s12z_unwind_pc): Delete.
11225 (s12z_unwind_sp): Delete.
11226 (s12z_gdbarch_init): Don't register deleted functions with
11227 gdbarch.
11228
11229 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11230
11231 * rl78-tdep.c (rl78_unwind_sp): Delete.
11232 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11233
11234 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11235
11236 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11237 (xstormy16_unwind_pc): Delete.
11238 (xstormy16_dummy_id): Delete.
11239 (xstormy16_gdbarch_init): Don't register deleted functions with
11240 gdbarch.
11241
11242 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11243
11244 * vax-tdep.c (vax_unwind_pc): Delete.
11245 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11246
11247 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11248
11249 * v850-tdep.c (v850_unwind_sp): Delete.
11250 (v850_unwind_pc): Delete.
11251 (v850_dummy_id): Delete.
11252 (v850_gdbarch_init): Don't register deleted functions with
11253 gdbarch.
11254
11255 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11256
11257 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11258 (tilegx_unwind_pc): Delete.
11259 (tilegx_unwind_dummy_id): Delete.
11260 (tilegx_gdbarch_init): Don't register deleted functions with
11261 gdbarch.
11262
11263 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11264
11265 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11266 (tic6x_dummy_id): Delete.
11267 (tic6x_gdbarch_init): Don't register deleted functions with
11268 gdbarch.
11269
11270 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11271
11272 * sparc-tdep.c (sparc_unwind_pc): Delete.
11273 (sparc32_gdbarch_init): Don't register deleted function with
11274 gdbarch.
11275
11276 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11277
11278 * sh-tdep.c (sh_unwind_sp): Delete.
11279 (sh_unwind_pc): Delete.
11280 (sh_dummy_id): Delete.
11281 (sh_gdbarch_init): Don't register deleted functions with
11282 gdbarch.
11283
11284 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11285
11286 * score-tdep.c (score_unwind_sp): Delete.
11287 (score_unwind_pc): Delete.
11288 (score_dummy_id): Delete.
11289 (score_gdbarch_init): Don't register deleted functions with
11290 gdbarch.
11291
11292 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11293
11294 * rx-tdep.c (rx_unwind_pc): Delete.
11295 (rx_unwind_sp): Delete.
11296 (rx_dummy_id): Delete.
11297 (rx_gdbarch_init): Don't register deleted functions with
11298 gdbarch. Update comment.
11299
11300 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11301
11302 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11303 (rs6000_dummy_id): Delete.
11304 (rs6000_gdbarch_init): Don't register deleted functions with
11305 gdbarch.
11306
11307 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11308
11309 * or1k-tdep.c (or1k_dummy_id): Delete.
11310 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11311
11312 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11313
11314 * nios2-tdep.c (nios2_dummy_id): Delete.
11315 (nios2_unwind_sp): Delete.
11316 (nios2_gdbarch_init): Don't register deleted functions with
11317 gdbarch.
11318
11319 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11320
11321 * nds32-tdep.c (nds32_dummy_id): Delete.
11322 (nds32_unwind_pc): Delete.
11323 (nds32_unwind_sp): Delete.
11324 (nds32_gdbarch_init): Don't register deleted functions with
11325 gdbarch.
11326
11327 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11328
11329 * msp430-tdep.c (msp430_unwind_pc): Delete.
11330 (msp430_unwind_sp): Delete.
11331 (msp430_dummy_id): Delete.
11332 (msp430_gdbarch_init): Don't register deleted functions with
11333 gdbarch.
11334
11335 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11336
11337 * moxie-tdep.c (moxie_unwind_sp): Delete.
11338 (moxie_unwind_pc): Delete.
11339 (moxie_dummy_id): Delete.
11340 (moxie_gdbarch_init): Don't register deleted functions with
11341 gdbarch.
11342
11343 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11344
11345 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11346 (mn10300_unwind_pc): Delete.
11347 (mn10300_unwind_sp): Delete.
11348 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11349 mn10300_unwind_sp.
11350 (mn10300_frame_unwind_init): Don't register deleted functions with
11351 gdbarch.
11352
11353 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11354
11355 * mep-tdep.c (mep_unwind_pc): Delete.
11356 (mep_unwind_sp): Delete.
11357 (mep_dummy_id): Delete.
11358 (mep_gdbarch_init): Don't register deleted functions with
11359 gdbarch.
11360
11361 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11362
11363 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11364 (m68hc11_unwind_sp): Delete.
11365 (m68hc11_gdbarch_init): Don't register deleted functions with
11366 gdbarch.
11367
11368 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11369
11370 * m32r-tdep.c (m32r_unwind_sp): Delete.
11371 (m32r_unwind_pc): Delete.
11372 (m32r_dummy_id): Delete.
11373 (m32r_gdbarch_init): Don't register deleted functions with
11374 gdbarch.
11375
11376 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11377
11378 * m32c-tdep.c (m32c_unwind_pc): Delete.
11379 (m32c_unwind_sp): Delete.
11380 (m32c_dummy_id): Delete.
11381 (m32c_gdbarch_init): Don't register deleted functions with
11382 gdbarch.
11383
11384 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11385
11386 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11387 (lm32_unwind_pc): Delete.
11388 (lm32_dummy_id): Delete.
11389 (lm32_gdbarch_init): Don't register deleted functions with
11390 gdbarch.
11391
11392 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11393
11394 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11395 (iq2000_unwind_pc): Delete.
11396 (iq2000_dummy_id): Delete.
11397 (iq2000_gdbarch_init): Don't register deleted functions with
11398 gdbarch.
11399
11400 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11401
11402 * nds32-tdep.c (nds32_type_align): Delete.
11403 (nds32_push_dummy_call): Use type_align instead.
11404
11405 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11406
11407 * arm-tdep.c (arm_type_align): Only handle vector override case.
11408 (arm_push_dummy_call): Use type_align.
11409 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11410
11411 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11412
11413 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11414 case.
11415 (pass_on_stack): Use type_align.
11416 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11417 function.
11418
11419 2019-04-23 Tom Tromey <tromey@adacore.com>
11420
11421 * dwarf2read.c (line_header::file_name_at): Remove unused
11422 overload.
11423
11424 2019-04-23 Tom de Vries <tdevries@suse.de>
11425
11426 PR gdb/24438
11427 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11428 invocation.
11429
11430
11431 2019-03-27 Ali Tamur <tamur@google.com>
11432
11433 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11434 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11435 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11436 (dwarf_expr_context::get_addr_index): Likewise
11437 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11438 (symbol_needs_eval_context::get_addr_index): Likewise
11439 (disassemble_dwarf_expression): Add DW_OP_addrx
11440 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11441 (read_cutu_die_from_dwo): Update comment
11442 (skip_one_die): Add DW_FORM_addrx
11443 (read_attribute_value): Likewise
11444 (var_decode_location): Add DW_OP_addrx
11445 (dwarf2_const_value_attr): Add DW_FORM_addrx
11446 (dump_die_shallow): Likewise
11447 (dwarf2_fetch_constant_bytes): Likewise
11448 (decode_locdesc): Add DW_OP_addrx
11449 (skip_form_bytes): Add DW_FORM_addrx
11450
11451 2019-04-22 Ali Tamur <tamur@google.com>
11452
11453 * MAINTAINERS (Write After Approval): Add self.
11454
11455 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11456
11457 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11458 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11459 (open_symbol_file_object): Likewise.
11460 (svr4_default_sos): Add info parameter.
11461 (svr4_read_so_list): Likewise.
11462 (svr4_current_sos_direct): Adjust functions calls to pass down
11463 info.
11464 (svr4_current_sos_1): Add info parameter.
11465 (svr4_current_sos): Call get_svr4_info, pass info down to
11466 svr4_current_sos_1.
11467 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11468 get_svr4_info.
11469 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11470 get_svr4_info.
11471 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11472 to get_svr4_info.
11473 (probes_table_remove_objfile_probes): Likewise.
11474 (register_solib_event_probe): Add info parameter.
11475 (solist_update_incremental): Pass info parameter down to
11476 svr4_read_so_list.
11477 (disable_probes_interface): Add info parameter.
11478 (svr4_handle_solib_event): Pass current_program_space to
11479 get_svr4_info. Adjust disable_probes_interface cleanup.
11480 (svr4_create_probe_breakpoints): Add info parameter, pass it
11481 down to register_solib_event_probe.
11482 (svr4_create_solib_event_breakpoints): Add info parameter,
11483 pass it down to svr4_create_probe_breakpoints.
11484 (enable_break): Pass info down to
11485 svr4_create_solib_event_breakpoints.
11486 (svr4_solib_create_inferior_hook): Pass current_program_space to
11487 get_svr4_info.
11488 (svr4_clear_solib): Likewise.
11489
11490 2019-04-22 Pedro Alves <palves@redhat.com>
11491
11492 * solib-svr4.c (svr4_free_objfile_observer): New.
11493 (probe_and_action::objfile): New field.
11494 (probes_table_htab_remove_objfile_probes)
11495 (probes_table_remove_objfile_probes): New functions.
11496 (register_solib_event_probe): Add 'objfile' parameter. Store it
11497 in the new probe_and_action. Don't store the probe in 'lookup'.
11498 (svr4_create_probe_breakpoints): Pass objfile to
11499 register_solib_event_probe.
11500 (_initialize_svr4_solib): Register a free_objfile observer.
11501
11502 2019-04-19 Tom Tromey <tom@tromey.com>
11503
11504 * common/queue.h: Remove.
11505
11506 2019-04-19 Tom Tromey <tom@tromey.com>
11507
11508 * event-loop.c: Don't include "common/queue.h".
11509
11510 2019-04-19 Tom Tromey <tom@tromey.com>
11511
11512 * remote.c (remote_target): Use delete.
11513 * remote-notif.h: Include <list>, not "common/queue.h".
11514 (notif_client_p): Remove typedef.
11515 (remote_notif_state): Add constructor, destructor, initializer.
11516 <notif_queue>: Now a std::list.
11517 (remote_notif_state_xfree): Don't declare.
11518 * remote-notif.c (remote_notif_process, handle_notification)
11519 (remote_notif_state_allocate): Update.
11520 (~remote_notif_state): Rename from remote_notif_state_xfree.
11521
11522 2019-04-19 Tom Tromey <tom@tromey.com>
11523
11524 * symfile.c (reread_symbols): Update.
11525 * objfiles.c (objfile_register_static_link)
11526 (objfile_lookup_static_link): Update
11527 (~objfile) Don't delete static_links.
11528 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11529
11530 2019-04-19 Tom Tromey <tom@tromey.com>
11531
11532 * type-stack.h (struct type_stack) <insert>: Constify string.
11533 * type-stack.c (type_stack::insert): Constify string.
11534 * gdbtypes.h (lookup_template_type): Update.
11535 (address_space_name_to_int): Update.
11536 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11537 const.
11538 (lookup_template_type): Make name const.
11539 * c-exp.y: Update rules.
11540 (lex_one_token, classify_name, classify_inner_name)
11541 (c_print_token): Update.
11542 * p-exp.y: Update rules.
11543 (yylex): Update.
11544 * f-exp.y: Update rules.
11545 (yylex): Update.
11546 * d-exp.y: Update rules.
11547 (lex_one_token, classify_name, classify_inner_name): Update.
11548 * parse.c (write_dollar_variable, copy_name): Return std::string.
11549 * parser-defs.h (copy_name): Change return type.
11550 * m2-exp.y: Update rules.
11551 (yylex): Update.
11552 * go-exp.y (lex_one_token): Update.
11553 Update rules.
11554 (classify_unsafe_function, classify_packaged_name)
11555 (classify_name, yylex): Update.
11556
11557 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11558
11559 * configure.ac: add --enable-source-highlight switch.
11560 * configure: Regenerate.
11561 * top.c (print_gdb_version): plumb --enable-source-highlight
11562 status to "show configuration".
11563
11564 2019-04-19 Tom Tromey <tromey@adacore.com>
11565
11566 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11567 Check ADA_TYPE_P.
11568 (empty_record, ada_template_to_fixed_record_type_1)
11569 (template_to_static_fixed_type)
11570 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11571 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11572 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11573 macros.
11574
11575 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11576
11577 PR symtab/24423:
11578 * source.c (print_source_lines_base): Advance "iter" when a
11579 control character is seen.
11580
11581 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11582
11583 * inferior.h (struct infcall_suspend_state_deleter):
11584 Catch exception in destructor to avoid crash.
11585
11586 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11587
11588 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11589 close to the add_com "shell".
11590
11591 2019-04-18 Tom Tromey <tromey@adacore.com>
11592
11593 * process-stratum-target.h (class process_stratum_target)
11594 <stratum>: Add "final".
11595
11596 2019-04-17 Tom Tromey <tromey@adacore.com>
11597
11598 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11599 against nullptr before use.
11600
11601 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11602
11603 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11604
11605 2019-04-17 Jim Wilson <jimw@sifive.com>
11606 Andrew Burgess <andrew.burgess@embecosm.com>
11607
11608 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11609 code read might fail, assume 4-byte breakpoint in that case.
11610
11611 2019-04-15 Leszek Swirski <leszeks@google.com>
11612
11613 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11614 rather than a hand-rolled POD check when checking for forced MEMORY
11615 classification.
11616
11617 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11618
11619 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11620 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11621 function.
11622 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11623 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11624 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11625 declaration.
11626
11627 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11628
11629 * aarch64-linux-nat.c
11630 (aarch64_linux_nat_target::thread_architecture): Add override.
11631 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11632 each VQ.
11633
11634 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11635
11636 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11637
11638 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11639
11640 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11641 target types of size 96-bits, add some additional comments, and
11642 check that the builtin type we found was the correct size.
11643
11644 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11645
11646 * utils.c (prompt_for_continue): Don't restore the styling at the
11647 end, as applied_style has the wrong value. This fixes styling in
11648 long lists of file names that are interrupted by the "Continue?"
11649 prompt.
11650
11651 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11652
11653 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11654 * c-lang.c (c_language_defn): Likewise.
11655 (cplus_language_defn): Likewise.
11656 (asm_language_defn): Likewise.
11657 (minimal_language_defn): Likewise.
11658 * d-lang.c (d_language_defn): Likewise.
11659 * f-lang.c (f_language_defn): Likewise.
11660 * go-lang.c (go_language_defn): Likewise.
11661 * language.c (unknown_language_defn): Likewise.
11662 (auto_language_defn): Likewise.
11663 * language.h (struct language_defn): Remove la_magic field.
11664 (LANG_MAGIC): Delete.
11665 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11666 * objc-lang.c (objc_language_defn): Likewise.
11667 * opencl-lang.c (opencl_language_defn): Likewise.
11668 * p-lang.c (pascal_language_defn): Likewise.
11669 * rust-lang.c (rust_language_defn): Likewise.
11670
11671 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11672
11673 * riscv-tdep.c (riscv_type_align): New function.
11674 (riscv_type_alignment): Delete.
11675 (riscv_arg_location): Use 'type_align'.
11676 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11677
11678 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11679
11680 * gdbtypes.c (type_align): A struct with no non-static fields also
11681 has alignment of 1.
11682
11683 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11684
11685 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11686 component to 0.
11687 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11688 member.
11689 (riscv_struct_info::analyse): New implementation using new
11690 analyse_inner member function.
11691 (riscv_struct_info::field_offset): New member function.
11692 (riscv_struct_info::m_offsets): New member variable.
11693 (riscv_struct_info::analyse_inner): New private member function,
11694 takes the old implementation of riscv_struct_info::analyse but
11695 extended to track field offsets.
11696 (riscv_call_arg_struct): Update the struct folding special cases
11697 to handle cases where empty C++ structs, which are non-zero
11698 length, are found.
11699 (riscv_arg_location): Initialise the length of each location, a
11700 non-zero length now indicates the location is in use.
11701 (riscv_push_dummy_call): Allow for the first location having a
11702 non-zero offset when setting up arguments.
11703 (riscv_return_value): Likewise, but for return values.
11704
11705 2019-04-11 Tom Tromey <tromey@adacore.com>
11706
11707 * utils.c (internal_vproblem): Make "msg" const.
11708
11709 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11710
11711 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11712 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11713 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11714 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11715
11716 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11717
11718 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11719 function.
11720 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11721 of amd64_collect_native_gregset.
11722 (amd64_linux_nat_target::store_registers): Likewise.
11723
11724 2019-04-10 Tom Tromey <tom@tromey.com>
11725
11726 * symtab.c (lookup_global_symbol_from_objfile)
11727 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11728 * objfiles.h (class separate_debug_iterator): New.
11729 (class separate_debug_range): New.
11730 (struct objfile) <separate_debug_objfiles>: New method.
11731 (objfile_separate_debug_iterate): Don't declare.
11732 * objfiles.c (separate_debug_iterator::operator++): Rename from
11733 objfile_separate_debug_iterate.
11734 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11735 iterator.
11736 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11737 iterator.
11738
11739 2019-04-10 Tom Tromey <tom@tromey.com>
11740
11741 * symfile.c (reread_symbols): Remove old comment.
11742 * objfiles.c (free_all_objfiles): Fix a typo.
11743
11744 2019-04-10 Tom Tromey <tom@tromey.com>
11745
11746 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11747 * minsyms.c (lookup_minimal_symbol): Use foreach.
11748 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11749 (lookup_minimal_symbol_solib_trampoline): Likewise.
11750 * symfile.c (reread_symbols): Use foreach.
11751
11752 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11753 Tom Tromey <tromey@adacore.com>
11754
11755 PR rust/24414:
11756 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11757 (rust_lex_int_test): Change "value" to be LONGEST.
11758 (rust_lex_tests): Add test for long integer literal.
11759
11760 2019-04-09 Tom Tromey <tromey@adacore.com>
11761
11762 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11763 to bool.
11764 (extended_remote_target::attach): Update.
11765 (remote_target::remote_notice_new_inferior): Update.
11766 (remote_target::add_current_inferior_and_thread): Update.
11767 * inferior.c (exit_inferior_1): Use "false".
11768 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11769
11770 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11771
11772 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11773 the "start" command.
11774
11775 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11776
11777 * python/py-inferior.c (infpy_thread_from_thread_handle):
11778 Adjust comments to reflect renaming of thread_from_thread_handle
11779 to thread_from_handle. Adjust keywords. Fix type error message.
11780 (inferior_object_methods): Add thread_from_handle. Retain
11781 thread_from_thread_handle, but mark it as deprecated.
11782
11783 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11784
11785 * gdbthread.h (find_thread_by_handle): Revise declaration.
11786 * thread.c (find_thread_by_handle): Likewise. Adjust
11787 implementation too.
11788 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11789 support for buffer objects as handles.
11790
11791 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11792
11793 * python/py-infthread.c (thpy_thread_handle): New function.
11794 (thread_object_methods): Register thpy_thread_handle.
11795
11796 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11797
11798 * gdbthread.h (thread_to_thread_handle): Declare.
11799 * thread.c (gdbtypes.h): Include.
11800 (thread_to_thread_handle): New function.
11801
11802 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11803 (target_thread_info_to_thread_handle): Declare.
11804 * target.c (target_thread_info_to_thread_handle): New function.
11805 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11806 * target-delegates.c: Regenerate.
11807
11808 * linux-thread-db.c (class thread_db_target): Add method
11809 thread_info_to_thread_handle.
11810 (thread_db_target::thread_info_to_thread_handle): Define.
11811 * remote.c (class remote_target): Add new method
11812 thread_info_to_thread_handle.
11813 (remote_target::thread_info_to_thread_handle): Define.
11814
11815 2019-04-08 Pedro Alves <palves@redhat.com>
11816
11817 * common/common-exceptions.c (throw_exception): Don't create
11818 named object to throw; throw directly.
11819 (throw_it): Likewise. Don't initialize gdb_exception::message
11820 here, with new; pass FMT and AP to the ctor instead.
11821 * common/common-exceptions.h: Include <string>.
11822 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11823 const char *, va_list)): New ctor. Use std::make_shared.
11824 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11825 errors)): Delete.
11826 (gdb_exception_error::gdb_exception_error(enum errors, const char
11827 *, va_list)): New.
11828 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11829 Add assertion.
11830 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11831 errors)): Delete.
11832 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11833 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11834 Add assertion.
11835
11836 2019-04-08 Tom Tromey <tom@tromey.com>
11837
11838 * valops.c (value_rtti_indirect_type): Replace throw_exception
11839 with throw.
11840 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11841 with throw.
11842 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11843 throw.
11844 * target.c (target_translate_tls_address): Replace throw_exception
11845 with throw.
11846 * stack.c (frame_apply_command_count): Replace throw_exception
11847 with throw.
11848 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11849 throw.
11850 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11851 with throw.
11852 * rs6000-tdep.c (rs6000_frame_cache)
11853 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11854 * remote.c: Replace throw_exception with throw.
11855 * record-full.c (record_full_message, record_full_wait_1)
11856 (record_full_restore): Replace throw_exception with throw.
11857 * record-btrace.c:
11858 (get_thread_current_frame_id, record_btrace_start_replaying)
11859 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11860 (cmd_record_btrace_start): Replace throw_exception with throw.
11861 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11862 throw.
11863 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11864 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11865 * linespec.c:
11866 (find_linespec_symbols): Replace throw_exception with throw.
11867 * infrun.c (displaced_step_prepare, resume): Replace
11868 throw_exception with throw.
11869 * infcmd.c (post_create_inferior): Replace throw_exception with
11870 throw.
11871 * inf-loop.c (inferior_event_handler): Replace throw_exception
11872 with throw.
11873 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11874 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11875 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11876 (get_prev_frame_always, get_frame_pc_if_available)
11877 (get_frame_address_in_block_if_available, get_frame_language):
11878 Replace throw_exception with throw.
11879 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11880 throw_exception with throw.
11881 * eval.c (fetch_subexp_value, evaluate_var_value)
11882 (evaluate_funcall, evaluate_subexp_standard): Replace
11883 throw_exception with throw.
11884 * dwarf2loc.c (call_site_find_chain)
11885 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11886 Replace throw_exception with throw.
11887 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11888 with throw.
11889 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11890 throw.
11891 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11892 * completer.c (complete_line_internal): Replace throw_exception
11893 with throw.
11894 * compile/compile-object-run.c (compile_object_run): Replace
11895 throw_exception with throw.
11896 * cli/cli-script.c (process_next_line): Replace throw_exception
11897 with throw.
11898 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11899 (btrace_enable, btrace_maint_update_pt_packets): Replace
11900 throw_exception with throw.
11901 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11902 throw_exception with throw.
11903 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11904 throw_exception with throw.
11905 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11906 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11907 * aarch64-tdep.c (aarch64_make_prologue_cache)
11908 (aarch64_make_stub_cache): Replace throw_exception with throw.
11909
11910 2019-04-08 Tom Tromey <tom@tromey.com>
11911
11912 * common/common-exceptions.c (throw_exception): Rename from
11913 throw_exception_cxx. Remove old copy. Make argument const.
11914 (throw_it): Create and throw exception objects directly.
11915 * common/common-exceptions.h (throw_exception): Make argument
11916 const.
11917 (struct gdb_exception_error): Add constructor.
11918 (struct gdb_exception_quit): Add constructor.
11919
11920 2019-04-08 Tom Tromey <tom@tromey.com>
11921
11922 * common/common-exceptions.h (exception_rethrow): Don't declare.
11923 (TRY_SJLJ): Update comment.
11924 (TRY, CATCH, END_CATCH): Remove.
11925 * common/common-exceptions.c (exception_rethrow): Remove.
11926
11927 2019-04-08 Tom Tromey <tom@tromey.com>
11928
11929 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11930 Remove.
11931 (gdb_exception_error): Rename from
11932 gdb_exception_RETURN_MASK_ERROR.
11933 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11934 (gdb_quit_bad_alloc): Update.
11935 * aarch64-tdep.c: Update.
11936 * ada-lang.c: Update.
11937 * ada-typeprint.c: Update.
11938 * ada-valprint.c: Update.
11939 * amd64-tdep.c: Update.
11940 * arch-utils.c: Update.
11941 * break-catch-throw.c: Update.
11942 * breakpoint.c: Update.
11943 * btrace.c: Update.
11944 * c-varobj.c: Update.
11945 * cli/cli-cmds.c: Update.
11946 * cli/cli-interp.c: Update.
11947 * cli/cli-script.c: Update.
11948 * common/common-exceptions.c: Update.
11949 * common/new-op.c: Update.
11950 * common/selftest.c: Update.
11951 * compile/compile-c-symbols.c: Update.
11952 * compile/compile-cplus-symbols.c: Update.
11953 * compile/compile-object-load.c: Update.
11954 * compile/compile-object-run.c: Update.
11955 * completer.c: Update.
11956 * corelow.c: Update.
11957 * cp-abi.c: Update.
11958 * cp-support.c: Update.
11959 * cp-valprint.c: Update.
11960 * darwin-nat.c: Update.
11961 * disasm-selftests.c: Update.
11962 * dtrace-probe.c: Update.
11963 * dwarf-index-cache.c: Update.
11964 * dwarf-index-write.c: Update.
11965 * dwarf2-frame-tailcall.c: Update.
11966 * dwarf2-frame.c: Update.
11967 * dwarf2loc.c: Update.
11968 * dwarf2read.c: Update.
11969 * eval.c: Update.
11970 * event-loop.c: Update.
11971 * event-top.c: Update.
11972 * exec.c: Update.
11973 * f-valprint.c: Update.
11974 * fbsd-tdep.c: Update.
11975 * frame-unwind.c: Update.
11976 * frame.c: Update.
11977 * gdbtypes.c: Update.
11978 * gnu-v3-abi.c: Update.
11979 * guile/guile-internal.h: Update.
11980 * guile/scm-block.c: Update.
11981 * guile/scm-breakpoint.c: Update.
11982 * guile/scm-cmd.c: Update.
11983 * guile/scm-disasm.c: Update.
11984 * guile/scm-frame.c: Update.
11985 * guile/scm-lazy-string.c: Update.
11986 * guile/scm-math.c: Update.
11987 * guile/scm-param.c: Update.
11988 * guile/scm-ports.c: Update.
11989 * guile/scm-pretty-print.c: Update.
11990 * guile/scm-symbol.c: Update.
11991 * guile/scm-symtab.c: Update.
11992 * guile/scm-type.c: Update.
11993 * guile/scm-value.c: Update.
11994 * i386-linux-tdep.c: Update.
11995 * i386-tdep.c: Update.
11996 * inf-loop.c: Update.
11997 * infcall.c: Update.
11998 * infcmd.c: Update.
11999 * infrun.c: Update.
12000 * jit.c: Update.
12001 * language.c: Update.
12002 * linespec.c: Update.
12003 * linux-fork.c: Update.
12004 * linux-nat.c: Update.
12005 * linux-tdep.c: Update.
12006 * linux-thread-db.c: Update.
12007 * main.c: Update.
12008 * mi/mi-cmd-break.c: Update.
12009 * mi/mi-cmd-stack.c: Update.
12010 * mi/mi-interp.c: Update.
12011 * mi/mi-main.c: Update.
12012 * objc-lang.c: Update.
12013 * p-valprint.c: Update.
12014 * parse.c: Update.
12015 * ppc-linux-tdep.c: Update.
12016 * printcmd.c: Update.
12017 * python/py-arch.c: Update.
12018 * python/py-breakpoint.c: Update.
12019 * python/py-cmd.c: Update.
12020 * python/py-finishbreakpoint.c: Update.
12021 * python/py-frame.c: Update.
12022 * python/py-framefilter.c: Update.
12023 * python/py-gdb-readline.c: Update.
12024 * python/py-inferior.c: Update.
12025 * python/py-infthread.c: Update.
12026 * python/py-lazy-string.c: Update.
12027 * python/py-linetable.c: Update.
12028 * python/py-objfile.c: Update.
12029 * python/py-param.c: Update.
12030 * python/py-prettyprint.c: Update.
12031 * python/py-progspace.c: Update.
12032 * python/py-record-btrace.c: Update.
12033 * python/py-record.c: Update.
12034 * python/py-symbol.c: Update.
12035 * python/py-type.c: Update.
12036 * python/py-unwind.c: Update.
12037 * python/py-utils.c: Update.
12038 * python/py-value.c: Update.
12039 * python/python.c: Update.
12040 * record-btrace.c: Update.
12041 * record-full.c: Update.
12042 * remote-fileio.c: Update.
12043 * remote.c: Update.
12044 * riscv-tdep.c: Update.
12045 * rs6000-aix-tdep.c: Update.
12046 * rs6000-tdep.c: Update.
12047 * rust-exp.y: Update.
12048 * rust-lang.c: Update.
12049 * s390-tdep.c: Update.
12050 * selftest-arch.c: Update.
12051 * solib-dsbt.c: Update.
12052 * solib-frv.c: Update.
12053 * solib-spu.c: Update.
12054 * solib-svr4.c: Update.
12055 * solib.c: Update.
12056 * sparc64-linux-tdep.c: Update.
12057 * stack.c: Update.
12058 * symfile-mem.c: Update.
12059 * symmisc.c: Update.
12060 * target.c: Update.
12061 * thread.c: Update.
12062 * top.c: Update.
12063 * tracefile-tfile.c: Update.
12064 * tui/tui.c: Update.
12065 * typeprint.c: Update.
12066 * unittests/cli-utils-selftests.c: Update.
12067 * unittests/parse-connection-spec-selftests.c: Update.
12068 * valops.c: Update.
12069 * valprint.c: Update.
12070 * value.c: Update.
12071 * varobj.c: Update.
12072 * windows-nat.c: Update.
12073 * x86-linux-nat.c: Update.
12074 * xml-support.c: Update.
12075
12076 2019-04-08 Tom Tromey <tom@tromey.com>
12077
12078 * xml-support.c: Use C++ exception handling.
12079 * x86-linux-nat.c: Use C++ exception handling.
12080 * windows-nat.c: Use C++ exception handling.
12081 * varobj.c: Use C++ exception handling.
12082 * value.c: Use C++ exception handling.
12083 * valprint.c: Use C++ exception handling.
12084 * valops.c: Use C++ exception handling.
12085 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12086 handling.
12087 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12088 * typeprint.c: Use C++ exception handling.
12089 * tui/tui.c: Use C++ exception handling.
12090 * tracefile-tfile.c: Use C++ exception handling.
12091 * top.c: Use C++ exception handling.
12092 * thread.c: Use C++ exception handling.
12093 * target.c: Use C++ exception handling.
12094 * symmisc.c: Use C++ exception handling.
12095 * symfile-mem.c: Use C++ exception handling.
12096 * stack.c: Use C++ exception handling.
12097 * sparc64-linux-tdep.c: Use C++ exception handling.
12098 * solib.c: Use C++ exception handling.
12099 * solib-svr4.c: Use C++ exception handling.
12100 * solib-spu.c: Use C++ exception handling.
12101 * solib-frv.c: Use C++ exception handling.
12102 * solib-dsbt.c: Use C++ exception handling.
12103 * selftest-arch.c: Use C++ exception handling.
12104 * s390-tdep.c: Use C++ exception handling.
12105 * rust-lang.c: Use C++ exception handling.
12106 * rust-exp.y: Use C++ exception handling.
12107 * rs6000-tdep.c: Use C++ exception handling.
12108 * rs6000-aix-tdep.c: Use C++ exception handling.
12109 * riscv-tdep.c: Use C++ exception handling.
12110 * remote.c: Use C++ exception handling.
12111 * remote-fileio.c: Use C++ exception handling.
12112 * record-full.c: Use C++ exception handling.
12113 * record-btrace.c: Use C++ exception handling.
12114 * python/python.c: Use C++ exception handling.
12115 * python/py-value.c: Use C++ exception handling.
12116 * python/py-utils.c: Use C++ exception handling.
12117 * python/py-unwind.c: Use C++ exception handling.
12118 * python/py-type.c: Use C++ exception handling.
12119 * python/py-symbol.c: Use C++ exception handling.
12120 * python/py-record.c: Use C++ exception handling.
12121 * python/py-record-btrace.c: Use C++ exception handling.
12122 * python/py-progspace.c: Use C++ exception handling.
12123 * python/py-prettyprint.c: Use C++ exception handling.
12124 * python/py-param.c: Use C++ exception handling.
12125 * python/py-objfile.c: Use C++ exception handling.
12126 * python/py-linetable.c: Use C++ exception handling.
12127 * python/py-lazy-string.c: Use C++ exception handling.
12128 * python/py-infthread.c: Use C++ exception handling.
12129 * python/py-inferior.c: Use C++ exception handling.
12130 * python/py-gdb-readline.c: Use C++ exception handling.
12131 * python/py-framefilter.c: Use C++ exception handling.
12132 * python/py-frame.c: Use C++ exception handling.
12133 * python/py-finishbreakpoint.c: Use C++ exception handling.
12134 * python/py-cmd.c: Use C++ exception handling.
12135 * python/py-breakpoint.c: Use C++ exception handling.
12136 * python/py-arch.c: Use C++ exception handling.
12137 * printcmd.c: Use C++ exception handling.
12138 * ppc-linux-tdep.c: Use C++ exception handling.
12139 * parse.c: Use C++ exception handling.
12140 * p-valprint.c: Use C++ exception handling.
12141 * objc-lang.c: Use C++ exception handling.
12142 * mi/mi-main.c: Use C++ exception handling.
12143 * mi/mi-interp.c: Use C++ exception handling.
12144 * mi/mi-cmd-stack.c: Use C++ exception handling.
12145 * mi/mi-cmd-break.c: Use C++ exception handling.
12146 * main.c: Use C++ exception handling.
12147 * linux-thread-db.c: Use C++ exception handling.
12148 * linux-tdep.c: Use C++ exception handling.
12149 * linux-nat.c: Use C++ exception handling.
12150 * linux-fork.c: Use C++ exception handling.
12151 * linespec.c: Use C++ exception handling.
12152 * language.c: Use C++ exception handling.
12153 * jit.c: Use C++ exception handling.
12154 * infrun.c: Use C++ exception handling.
12155 * infcmd.c: Use C++ exception handling.
12156 * infcall.c: Use C++ exception handling.
12157 * inf-loop.c: Use C++ exception handling.
12158 * i386-tdep.c: Use C++ exception handling.
12159 * i386-linux-tdep.c: Use C++ exception handling.
12160 * guile/scm-value.c: Use C++ exception handling.
12161 * guile/scm-type.c: Use C++ exception handling.
12162 * guile/scm-symtab.c: Use C++ exception handling.
12163 * guile/scm-symbol.c: Use C++ exception handling.
12164 * guile/scm-pretty-print.c: Use C++ exception handling.
12165 * guile/scm-ports.c: Use C++ exception handling.
12166 * guile/scm-param.c: Use C++ exception handling.
12167 * guile/scm-math.c: Use C++ exception handling.
12168 * guile/scm-lazy-string.c: Use C++ exception handling.
12169 * guile/scm-frame.c: Use C++ exception handling.
12170 * guile/scm-disasm.c: Use C++ exception handling.
12171 * guile/scm-cmd.c: Use C++ exception handling.
12172 * guile/scm-breakpoint.c: Use C++ exception handling.
12173 * guile/scm-block.c: Use C++ exception handling.
12174 * guile/guile-internal.h: Use C++ exception handling.
12175 * gnu-v3-abi.c: Use C++ exception handling.
12176 * gdbtypes.c: Use C++ exception handling.
12177 * frame.c: Use C++ exception handling.
12178 * frame-unwind.c: Use C++ exception handling.
12179 * fbsd-tdep.c: Use C++ exception handling.
12180 * f-valprint.c: Use C++ exception handling.
12181 * exec.c: Use C++ exception handling.
12182 * event-top.c: Use C++ exception handling.
12183 * event-loop.c: Use C++ exception handling.
12184 * eval.c: Use C++ exception handling.
12185 * dwarf2read.c: Use C++ exception handling.
12186 * dwarf2loc.c: Use C++ exception handling.
12187 * dwarf2-frame.c: Use C++ exception handling.
12188 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12189 * dwarf-index-write.c: Use C++ exception handling.
12190 * dwarf-index-cache.c: Use C++ exception handling.
12191 * dtrace-probe.c: Use C++ exception handling.
12192 * disasm-selftests.c: Use C++ exception handling.
12193 * darwin-nat.c: Use C++ exception handling.
12194 * cp-valprint.c: Use C++ exception handling.
12195 * cp-support.c: Use C++ exception handling.
12196 * cp-abi.c: Use C++ exception handling.
12197 * corelow.c: Use C++ exception handling.
12198 * completer.c: Use C++ exception handling.
12199 * compile/compile-object-run.c: Use C++ exception handling.
12200 * compile/compile-object-load.c: Use C++ exception handling.
12201 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12202 * compile/compile-c-symbols.c: Use C++ exception handling.
12203 * common/selftest.c: Use C++ exception handling.
12204 * common/new-op.c: Use C++ exception handling.
12205 * cli/cli-script.c: Use C++ exception handling.
12206 * cli/cli-interp.c: Use C++ exception handling.
12207 * cli/cli-cmds.c: Use C++ exception handling.
12208 * c-varobj.c: Use C++ exception handling.
12209 * btrace.c: Use C++ exception handling.
12210 * breakpoint.c: Use C++ exception handling.
12211 * break-catch-throw.c: Use C++ exception handling.
12212 * arch-utils.c: Use C++ exception handling.
12213 * amd64-tdep.c: Use C++ exception handling.
12214 * ada-valprint.c: Use C++ exception handling.
12215 * ada-typeprint.c: Use C++ exception handling.
12216 * ada-lang.c: Use C++ exception handling.
12217 * aarch64-tdep.c: Use C++ exception handling.
12218
12219 2019-04-08 Tom Tromey <tom@tromey.com>
12220
12221 * xml-support.c (gdb_xml_parser::parse): Update.
12222 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12223 * value.c (show_convenience): Update.
12224 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12225 (test_parse_flags_qcs): Update.
12226 * thread.c (thr_try_catch_cmd): Update.
12227 * target.c (target_translate_tls_address): Update.
12228 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12229 (info_frame_command_core, frame_apply_command_count): Update.
12230 * rust-exp.y (rust_lex_exception_test): Update.
12231 * riscv-tdep.c (riscv_print_one_register_info): Update.
12232 * remote.c (remote_target::enable_btrace): Update.
12233 * record-btrace.c (record_btrace_enable_warn): Update.
12234 * python/py-utils.c (gdbpy_convert_exception): Update.
12235 * printcmd.c (do_one_display, print_variable_and_value): Update.
12236 * mi/mi-main.c (mi_print_exception): Update.
12237 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12238 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12239 * linux-nat.c (linux_nat_target::attach): Update.
12240 * linux-fork.c (class scoped_switch_fork_info): Update.
12241 * infrun.c (displaced_step_prepare): Update.
12242 * infcall.c (call_function_by_hand_dummy): Update.
12243 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12244 * gnu-v3-abi.c (print_one_vtable): Update.
12245 * frame.c (get_prev_frame_always): Update.
12246 * f-valprint.c (info_common_command_for_block): Update.
12247 * exec.c (try_open_exec_file): Update.
12248 * exceptions.c (print_exception, exception_print)
12249 (exception_fprintf, exception_print_same): Update.
12250 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12251 * dwarf-index-cache.c (index_cache::store)
12252 (index_cache::lookup_gdb_index): Update.
12253 * darwin-nat.c (maybe_cache_shell): Update.
12254 * cp-valprint.c (cp_print_value_fields): Update.
12255 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12256 (gcc_cplus_symbol_address): Update.
12257 * compile/compile-c-symbols.c (gcc_convert_symbol)
12258 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12259 * common/selftest.c: Update.
12260 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12261 a std::string.
12262 (exception_try_scope_entry, exception_try_scope_exit): Don't
12263 declare.
12264 (struct exception_try_scope): Remove.
12265 (TRY): Don't use exception_try_scope.
12266 (struct gdb_exception): Add constructor, operator=.
12267 <what>: New method.
12268 (struct gdb_exception_RETURN_MASK_ALL)
12269 (struct gdb_exception_RETURN_MASK_ERROR)
12270 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12271 (struct gdb_quit_bad_alloc): Update.
12272 * common/common-exceptions.c (exception_none): Change
12273 initializer.
12274 (struct catcher) <state, exception>: Initialize inline.
12275 <prev>: Remove member.
12276 (current_catcher): Remove.
12277 (catchers): New global.
12278 (exceptions_state_mc_init): Simplify.
12279 (catcher_pop): Remove.
12280 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12281 (try_scope_depth, exception_try_scope_entry)
12282 (exception_try_scope_exit): Remove.
12283 (throw_exception_sjlj): Update.
12284 (exception_messages, exception_messages_size): Remove.
12285 (throw_it): Simplify.
12286 (gdb_exception_sliced_copy): Remove.
12287 (throw_exception_cxx): Update.
12288 * cli/cli-script.c (script_from_file): Update.
12289 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12290 Update.
12291 * ada-valprint.c (ada_val_print): Update.
12292 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12293 (create_excep_cond_exprs): Update.
12294
12295 2019-04-08 Tom Tromey <tom@tromey.com>
12296
12297 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12298 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12299 (TRY, CATCH, END_CATCH): Remove some definitions.
12300 * common/common-exceptions.c: Don't use GDB_XCPT.
12301 (catcher_list_size): Remove.
12302 (throw_exception, throw_it): Simplify.
12303
12304 2019-04-05 Tom Tromey <tom@tromey.com>
12305
12306 Revert the header-sorting patch.
12307 * ft32-tdep.c: Revert.
12308 * frv-tdep.c: Revert.
12309 * frv-linux-tdep.c: Revert.
12310 * frame.c: Revert.
12311 * frame-unwind.c: Revert.
12312 * frame-base.c: Revert.
12313 * fork-child.c: Revert.
12314 * findvar.c: Revert.
12315 * findcmd.c: Revert.
12316 * filesystem.c: Revert.
12317 * filename-seen-cache.h: Revert.
12318 * filename-seen-cache.c: Revert.
12319 * fbsd-tdep.c: Revert.
12320 * fbsd-nat.h: Revert.
12321 * fbsd-nat.c: Revert.
12322 * f-valprint.c: Revert.
12323 * f-typeprint.c: Revert.
12324 * f-lang.c: Revert.
12325 * extension.h: Revert.
12326 * extension.c: Revert.
12327 * extension-priv.h: Revert.
12328 * expprint.c: Revert.
12329 * exec.h: Revert.
12330 * exec.c: Revert.
12331 * exceptions.c: Revert.
12332 * event-top.c: Revert.
12333 * event-loop.c: Revert.
12334 * eval.c: Revert.
12335 * elfread.c: Revert.
12336 * dwarf2read.h: Revert.
12337 * dwarf2read.c: Revert.
12338 * dwarf2loc.c: Revert.
12339 * dwarf2expr.h: Revert.
12340 * dwarf2expr.c: Revert.
12341 * dwarf2-frame.c: Revert.
12342 * dwarf2-frame-tailcall.c: Revert.
12343 * dwarf-index-write.h: Revert.
12344 * dwarf-index-write.c: Revert.
12345 * dwarf-index-common.c: Revert.
12346 * dwarf-index-cache.h: Revert.
12347 * dwarf-index-cache.c: Revert.
12348 * dummy-frame.c: Revert.
12349 * dtrace-probe.c: Revert.
12350 * disasm.h: Revert.
12351 * disasm.c: Revert.
12352 * disasm-selftests.c: Revert.
12353 * dictionary.c: Revert.
12354 * dicos-tdep.c: Revert.
12355 * demangle.c: Revert.
12356 * dcache.h: Revert.
12357 * dcache.c: Revert.
12358 * darwin-nat.h: Revert.
12359 * darwin-nat.c: Revert.
12360 * darwin-nat-info.c: Revert.
12361 * d-valprint.c: Revert.
12362 * d-namespace.c: Revert.
12363 * d-lang.c: Revert.
12364 * ctf.c: Revert.
12365 * csky-tdep.c: Revert.
12366 * csky-linux-tdep.c: Revert.
12367 * cris-tdep.c: Revert.
12368 * cris-linux-tdep.c: Revert.
12369 * cp-valprint.c: Revert.
12370 * cp-support.c: Revert.
12371 * cp-namespace.c: Revert.
12372 * cp-abi.c: Revert.
12373 * corelow.c: Revert.
12374 * corefile.c: Revert.
12375 * continuations.c: Revert.
12376 * completer.h: Revert.
12377 * completer.c: Revert.
12378 * complaints.c: Revert.
12379 * coffread.c: Revert.
12380 * coff-pe-read.c: Revert.
12381 * cli-out.h: Revert.
12382 * cli-out.c: Revert.
12383 * charset.c: Revert.
12384 * c-varobj.c: Revert.
12385 * c-valprint.c: Revert.
12386 * c-typeprint.c: Revert.
12387 * c-lang.c: Revert.
12388 * buildsym.c: Revert.
12389 * buildsym-legacy.c: Revert.
12390 * build-id.h: Revert.
12391 * build-id.c: Revert.
12392 * btrace.c: Revert.
12393 * bsd-uthread.c: Revert.
12394 * breakpoint.h: Revert.
12395 * breakpoint.c: Revert.
12396 * break-catch-throw.c: Revert.
12397 * break-catch-syscall.c: Revert.
12398 * break-catch-sig.c: Revert.
12399 * blockframe.c: Revert.
12400 * block.c: Revert.
12401 * bfin-tdep.c: Revert.
12402 * bfin-linux-tdep.c: Revert.
12403 * bfd-target.c: Revert.
12404 * bcache.c: Revert.
12405 * ax-general.c: Revert.
12406 * ax-gdb.h: Revert.
12407 * ax-gdb.c: Revert.
12408 * avr-tdep.c: Revert.
12409 * auxv.c: Revert.
12410 * auto-load.c: Revert.
12411 * arm-wince-tdep.c: Revert.
12412 * arm-tdep.c: Revert.
12413 * arm-symbian-tdep.c: Revert.
12414 * arm-pikeos-tdep.c: Revert.
12415 * arm-obsd-tdep.c: Revert.
12416 * arm-nbsd-tdep.c: Revert.
12417 * arm-nbsd-nat.c: Revert.
12418 * arm-linux-tdep.c: Revert.
12419 * arm-linux-nat.c: Revert.
12420 * arm-fbsd-tdep.c: Revert.
12421 * arm-fbsd-nat.c: Revert.
12422 * arm-bsd-tdep.c: Revert.
12423 * arch-utils.c: Revert.
12424 * arc-tdep.c: Revert.
12425 * arc-newlib-tdep.c: Revert.
12426 * annotate.h: Revert.
12427 * annotate.c: Revert.
12428 * amd64-windows-tdep.c: Revert.
12429 * amd64-windows-nat.c: Revert.
12430 * amd64-tdep.c: Revert.
12431 * amd64-sol2-tdep.c: Revert.
12432 * amd64-obsd-tdep.c: Revert.
12433 * amd64-obsd-nat.c: Revert.
12434 * amd64-nbsd-tdep.c: Revert.
12435 * amd64-nbsd-nat.c: Revert.
12436 * amd64-nat.c: Revert.
12437 * amd64-linux-tdep.c: Revert.
12438 * amd64-linux-nat.c: Revert.
12439 * amd64-fbsd-tdep.c: Revert.
12440 * amd64-fbsd-nat.c: Revert.
12441 * amd64-dicos-tdep.c: Revert.
12442 * amd64-darwin-tdep.c: Revert.
12443 * amd64-bsd-nat.c: Revert.
12444 * alpha-tdep.c: Revert.
12445 * alpha-obsd-tdep.c: Revert.
12446 * alpha-nbsd-tdep.c: Revert.
12447 * alpha-mdebug-tdep.c: Revert.
12448 * alpha-linux-tdep.c: Revert.
12449 * alpha-linux-nat.c: Revert.
12450 * alpha-bsd-tdep.c: Revert.
12451 * alpha-bsd-nat.c: Revert.
12452 * aix-thread.c: Revert.
12453 * agent.c: Revert.
12454 * addrmap.c: Revert.
12455 * ada-varobj.c: Revert.
12456 * ada-valprint.c: Revert.
12457 * ada-typeprint.c: Revert.
12458 * ada-tasks.c: Revert.
12459 * ada-lang.c: Revert.
12460 * aarch64-tdep.c: Revert.
12461 * aarch64-ravenscar-thread.c: Revert.
12462 * aarch64-newlib-tdep.c: Revert.
12463 * aarch64-linux-tdep.c: Revert.
12464 * aarch64-linux-nat.c: Revert.
12465 * aarch64-fbsd-tdep.c: Revert.
12466 * aarch64-fbsd-nat.c: Revert.
12467 * aarch32-linux-nat.c: Revert.
12468
12469 2019-04-05 Tom Tromey <tom@tromey.com>
12470
12471 * ft32-tdep.c: Sort headers.
12472 * frv-tdep.c: Sort headers.
12473 * frv-linux-tdep.c: Sort headers.
12474 * frame.c: Sort headers.
12475 * frame-unwind.c: Sort headers.
12476 * frame-base.c: Sort headers.
12477 * fork-child.c: Sort headers.
12478 * findvar.c: Sort headers.
12479 * findcmd.c: Sort headers.
12480 * filesystem.c: Sort headers.
12481 * filename-seen-cache.h: Sort headers.
12482 * filename-seen-cache.c: Sort headers.
12483 * fbsd-tdep.c: Sort headers.
12484 * fbsd-nat.h: Sort headers.
12485 * fbsd-nat.c: Sort headers.
12486 * f-valprint.c: Sort headers.
12487 * f-typeprint.c: Sort headers.
12488 * f-lang.c: Sort headers.
12489 * extension.h: Sort headers.
12490 * extension.c: Sort headers.
12491 * extension-priv.h: Sort headers.
12492 * expprint.c: Sort headers.
12493 * exec.h: Sort headers.
12494 * exec.c: Sort headers.
12495 * exceptions.c: Sort headers.
12496 * event-top.c: Sort headers.
12497 * event-loop.c: Sort headers.
12498 * eval.c: Sort headers.
12499 * elfread.c: Sort headers.
12500 * dwarf2read.h: Sort headers.
12501 * dwarf2read.c: Sort headers.
12502 * dwarf2loc.c: Sort headers.
12503 * dwarf2expr.h: Sort headers.
12504 * dwarf2expr.c: Sort headers.
12505 * dwarf2-frame.c: Sort headers.
12506 * dwarf2-frame-tailcall.c: Sort headers.
12507 * dwarf-index-write.h: Sort headers.
12508 * dwarf-index-write.c: Sort headers.
12509 * dwarf-index-common.c: Sort headers.
12510 * dwarf-index-cache.h: Sort headers.
12511 * dwarf-index-cache.c: Sort headers.
12512 * dummy-frame.c: Sort headers.
12513 * dtrace-probe.c: Sort headers.
12514 * disasm.h: Sort headers.
12515 * disasm.c: Sort headers.
12516 * disasm-selftests.c: Sort headers.
12517 * dictionary.c: Sort headers.
12518 * dicos-tdep.c: Sort headers.
12519 * demangle.c: Sort headers.
12520 * dcache.h: Sort headers.
12521 * dcache.c: Sort headers.
12522 * darwin-nat.h: Sort headers.
12523 * darwin-nat.c: Sort headers.
12524 * darwin-nat-info.c: Sort headers.
12525 * d-valprint.c: Sort headers.
12526 * d-namespace.c: Sort headers.
12527 * d-lang.c: Sort headers.
12528 * ctf.c: Sort headers.
12529 * csky-tdep.c: Sort headers.
12530 * csky-linux-tdep.c: Sort headers.
12531 * cris-tdep.c: Sort headers.
12532 * cris-linux-tdep.c: Sort headers.
12533 * cp-valprint.c: Sort headers.
12534 * cp-support.c: Sort headers.
12535 * cp-namespace.c: Sort headers.
12536 * cp-abi.c: Sort headers.
12537 * corelow.c: Sort headers.
12538 * corefile.c: Sort headers.
12539 * continuations.c: Sort headers.
12540 * completer.h: Sort headers.
12541 * completer.c: Sort headers.
12542 * complaints.c: Sort headers.
12543 * coffread.c: Sort headers.
12544 * coff-pe-read.c: Sort headers.
12545 * cli-out.h: Sort headers.
12546 * cli-out.c: Sort headers.
12547 * charset.c: Sort headers.
12548 * c-varobj.c: Sort headers.
12549 * c-valprint.c: Sort headers.
12550 * c-typeprint.c: Sort headers.
12551 * c-lang.c: Sort headers.
12552 * buildsym.c: Sort headers.
12553 * buildsym-legacy.c: Sort headers.
12554 * build-id.h: Sort headers.
12555 * build-id.c: Sort headers.
12556 * btrace.c: Sort headers.
12557 * bsd-uthread.c: Sort headers.
12558 * breakpoint.h: Sort headers.
12559 * breakpoint.c: Sort headers.
12560 * break-catch-throw.c: Sort headers.
12561 * break-catch-syscall.c: Sort headers.
12562 * break-catch-sig.c: Sort headers.
12563 * blockframe.c: Sort headers.
12564 * block.c: Sort headers.
12565 * bfin-tdep.c: Sort headers.
12566 * bfin-linux-tdep.c: Sort headers.
12567 * bfd-target.c: Sort headers.
12568 * bcache.c: Sort headers.
12569 * ax-general.c: Sort headers.
12570 * ax-gdb.h: Sort headers.
12571 * ax-gdb.c: Sort headers.
12572 * avr-tdep.c: Sort headers.
12573 * auxv.c: Sort headers.
12574 * auto-load.c: Sort headers.
12575 * arm-wince-tdep.c: Sort headers.
12576 * arm-tdep.c: Sort headers.
12577 * arm-symbian-tdep.c: Sort headers.
12578 * arm-pikeos-tdep.c: Sort headers.
12579 * arm-obsd-tdep.c: Sort headers.
12580 * arm-nbsd-tdep.c: Sort headers.
12581 * arm-nbsd-nat.c: Sort headers.
12582 * arm-linux-tdep.c: Sort headers.
12583 * arm-linux-nat.c: Sort headers.
12584 * arm-fbsd-tdep.c: Sort headers.
12585 * arm-fbsd-nat.c: Sort headers.
12586 * arm-bsd-tdep.c: Sort headers.
12587 * arch-utils.c: Sort headers.
12588 * arc-tdep.c: Sort headers.
12589 * arc-newlib-tdep.c: Sort headers.
12590 * annotate.h: Sort headers.
12591 * annotate.c: Sort headers.
12592 * amd64-windows-tdep.c: Sort headers.
12593 * amd64-windows-nat.c: Sort headers.
12594 * amd64-tdep.c: Sort headers.
12595 * amd64-sol2-tdep.c: Sort headers.
12596 * amd64-obsd-tdep.c: Sort headers.
12597 * amd64-obsd-nat.c: Sort headers.
12598 * amd64-nbsd-tdep.c: Sort headers.
12599 * amd64-nbsd-nat.c: Sort headers.
12600 * amd64-nat.c: Sort headers.
12601 * amd64-linux-tdep.c: Sort headers.
12602 * amd64-linux-nat.c: Sort headers.
12603 * amd64-fbsd-tdep.c: Sort headers.
12604 * amd64-fbsd-nat.c: Sort headers.
12605 * amd64-dicos-tdep.c: Sort headers.
12606 * amd64-darwin-tdep.c: Sort headers.
12607 * amd64-bsd-nat.c: Sort headers.
12608 * alpha-tdep.c: Sort headers.
12609 * alpha-obsd-tdep.c: Sort headers.
12610 * alpha-nbsd-tdep.c: Sort headers.
12611 * alpha-mdebug-tdep.c: Sort headers.
12612 * alpha-linux-tdep.c: Sort headers.
12613 * alpha-linux-nat.c: Sort headers.
12614 * alpha-bsd-tdep.c: Sort headers.
12615 * alpha-bsd-nat.c: Sort headers.
12616 * aix-thread.c: Sort headers.
12617 * agent.c: Sort headers.
12618 * addrmap.c: Sort headers.
12619 * ada-varobj.c: Sort headers.
12620 * ada-valprint.c: Sort headers.
12621 * ada-typeprint.c: Sort headers.
12622 * ada-tasks.c: Sort headers.
12623 * ada-lang.c: Sort headers.
12624 * aarch64-tdep.c: Sort headers.
12625 * aarch64-ravenscar-thread.c: Sort headers.
12626 * aarch64-newlib-tdep.c: Sort headers.
12627 * aarch64-linux-tdep.c: Sort headers.
12628 * aarch64-linux-nat.c: Sort headers.
12629 * aarch64-fbsd-tdep.c: Sort headers.
12630 * aarch64-fbsd-nat.c: Sort headers.
12631 * aarch32-linux-nat.c: Sort headers.
12632
12633 2019-04-04 Tom Tromey <tom@tromey.com>
12634
12635 * varobj.c (varobj_create): Update.
12636 * rust-exp.y (struct rust_parser) <update_innermost_block,
12637 lookup_symbol>: New methods.
12638 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12639 Rename.
12640 (rust_parser::rust_lookup_type)
12641 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12642 * printcmd.c (display_command, do_one_display): Update.
12643 * parser-defs.h (struct parser_state) <parser_state>: Add
12644 "tracker" parameter.
12645 (block_tracker): New member.
12646 (class innermost_block_tracker) <innermost_block_tracker>: Add
12647 "types" parameter.
12648 <reset>: Remove method.
12649 (innermost_block): Don't declare.
12650 (null_post_parser): Update.
12651 * parse.c (innermost_block): Remove global.
12652 (write_dollar_variable): Update.
12653 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12654 Remove "tracker_types" parameter.
12655 (parse_expression): Add "tracker" parameter.
12656 (parse_expression_for_completion): Update.
12657 (null_post_parser): Add "tracker" parameter.
12658 * p-exp.y: Update rules.
12659 * m2-exp.y: Update rules.
12660 * language.h (struct language_defn) <la_post_parser>: Add
12661 "tracker" parameter.
12662 * go-exp.y: Update rules.
12663 * f-exp.y: Update rules.
12664 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12665 parameter.
12666 * d-exp.y: Update rules.
12667 * c-exp.y: Update rules.
12668 * breakpoint.c (set_breakpoint_condition): Create an
12669 innermost_block_tracker.
12670 (watch_command_1): Likewise.
12671 * ada-lang.c (resolve): Add "tracker" parameter.
12672 (resolve_subexp): Likewise.
12673 * ada-exp.y (write_var_from_sym): Update.
12674
12675 2019-04-04 Tom Tromey <tom@tromey.com>
12676
12677 * type-stack.h: New file.
12678 * type-stack.c: New file.
12679 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12680 type-stack.h.
12681 (insert_into_type_stack, insert_type, push_type, push_type_int)
12682 (insert_type_address_space, pop_type, pop_type_int)
12683 (pop_typelist, pop_type_stack, append_type_stack)
12684 (push_type_stack, get_type_stack, push_typelist)
12685 (follow_type_instance_flags, follow_types): Don't declare.
12686 * parse.c (type_stack): Remove global.
12687 (parse_exp_in_context): Update.
12688 (insert_into_type_stack, insert_type, push_type, push_type_int)
12689 (insert_type_address_space, pop_type, pop_type_int)
12690 (pop_typelist, pop_type_stack, append_type_stack)
12691 (push_type_stack, get_type_stack, push_typelist)
12692 (follow_type_instance_flags, follow_types): Remove (moved to
12693 type-stack.c).
12694 * f-exp.y (type_stack): New global.
12695 Update rules.
12696 (push_kind_type, f_parse): Update.
12697 * d-exp.y (type_stack): New global.
12698 Update rules.
12699 (d_parse): Update.
12700 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12701 Update rules.
12702 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12703 (HFILES_NO_SRCDIR): Add type-stack.h.
12704
12705 2019-04-04 Tom Tromey <tom@tromey.com>
12706
12707 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12708 (rust_parser::convert_ast_to_expression, rust_parse)
12709 (rust_lex_test_completion, rust_lex_tests): Update.
12710 * parser-defs.h (struct expr_completion_state): New.
12711 (struct parser_state) <parser_state>: Add completion parameter.
12712 <mark_struct_expression, mark_completion_tag>: New methods.
12713 <parse_completion, m_completion_state>: New members.
12714 (prefixify_expression, null_post_parser): Update.
12715 (mark_struct_expression, mark_completion_tag): Don't declare.
12716 * parse.c (parse_completion, expout_last_struct)
12717 (expout_tag_completion_type, expout_completion_name): Remove
12718 globals.
12719 (parser_state::mark_struct_expression)
12720 (parser_state::mark_completion_tag): Now methods.
12721 (prefixify_expression): Add last_struct parameter.
12722 (prefixify_subexp): Likewise.
12723 (parse_exp_1): Update.
12724 (parse_exp_in_context): Add cstate parameter. Update.
12725 (parse_expression_for_completion): Create an
12726 expr_completion_state.
12727 (null_post_parser): Add "completion" parameter.
12728 * p-exp.y: Update rules.
12729 (yylex): Update.
12730 * language.h (struct language_defn) <la_post_parser>: Add
12731 "completing" parameter.
12732 * go-exp.y: Update rules.
12733 (lex_one_token): Update.
12734 * expression.h (parse_completion): Don't declare.
12735 * d-exp.y: Update rules.
12736 (lex_one_token): Update rules.
12737 * c-exp.y: Update rules.
12738 (lex_one_token): Update.
12739 * ada-lang.c (resolve): Add "parse_completion" parameter.
12740 (resolve_subexp): Likewise.
12741 (ada_resolve_function): Likewise.
12742
12743 2019-04-04 Tom Tromey <tom@tromey.com>
12744
12745 * parser-defs.h (struct parser_state) <start_arglist,
12746 end_arglist>: New methods.
12747 <arglist_len, m_funcall_chain>: New members.
12748 (arglist_len, start_arglist, end_arglist): Don't declare.
12749 * parse.c (arglist_len, funcall_chain): Remove global.
12750 (start_arglist, end_arglist): Remove functions.
12751 (parse_exp_in_context): Update.
12752 * p-exp.y: Update rules.
12753 * m2-exp.y: Update rules.
12754 * go-exp.y: Update rules.
12755 * f-exp.y: Update rules.
12756 * d-exp.y: Update rules.
12757 * c-exp.y: Update rules.
12758
12759 2019-04-04 Tom Tromey <tom@tromey.com>
12760
12761 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12762 lex_operator, push_back>: New methods.
12763 Update all rules.
12764 (rust_parser::lex_hex, lex_escape): Rename and update.
12765 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12766 (rust_parser::lex_operator): Rename and update.
12767 (rust_parser::lex_number, rustyylex, rustyyerror)
12768 (rust_lex_test_init, rust_lex_test_sequence)
12769 (rust_lex_test_push_back, rust_lex_tests): Update.
12770 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12771 parameter.
12772 <lexptr, prev_lexptr>: New members.
12773 (lexptr, prev_lexptr): Don't declare.
12774 * parse.c (lexptr, prev_lexptr): Remove globals.
12775 (parse_exp_in_context): Update.
12776 * p-exp.y (yylex, yyerror): Update.
12777 * m2-exp.y (parse_number, yylex, yyerror): Update.
12778 * go-exp.y (lex_one_token, yyerror): Update.
12779 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12780 * d-exp.y (lex_one_token, yyerror): Update.
12781 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12782 (lex_one_token, yyerror): Update.
12783 * ada-lex.l (YY_INPUT): Update.
12784 (rewind_to_char): Update.
12785 * ada-exp.y (yyerror): Update.
12786
12787 2019-04-04 Tom Tromey <tom@tromey.com>
12788
12789 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12790 * parser-defs.h (struct parser_state) <parser_state>: Add new
12791 parameter.
12792 <comma_terminates>: New member.
12793 (comma_terminates): Don't declare global.
12794 * parse.c (comma_terminates): Remove global.
12795 (parse_exp_in_context): Update.
12796 * p-exp.y (yylex): Update.
12797 * m2-exp.y (yylex): Update.
12798 * go-exp.y (lex_one_token): Update.
12799 * f-exp.y (yylex): Update.
12800 * d-exp.y (lex_one_token): Update.
12801 * c-exp.y (lex_one_token): Update.
12802 * ada-lex.l: Update.
12803
12804 2019-04-04 Tom Tromey <tom@tromey.com>
12805
12806 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12807 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12808 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12809 * parser-defs.h (paren_depth): Don't declare.
12810 * parse.c (paren_depth): Remove global.
12811 (parse_exp_in_context): Update.
12812 * p-exp.y (paren_depth): New global.
12813 (pascal_parse): Initialize it.
12814 * m2-exp.y (paren_depth): New global.
12815 (m2_parse): Initialize it.
12816 * go-exp.y (paren_depth): New global.
12817 (go_parse): Initialize it.
12818 * f-exp.y (paren_depth): New global.
12819 (f_parse): Initialize it.
12820 * d-exp.y (paren_depth): New global.
12821 (d_parse): Initialize it.
12822 * c-exp.y (paren_depth): New global.
12823 (c_parse): Initialize it.
12824 * ada-lex.l (paren_depth): New global.
12825 (lexer_init): Initialize it.
12826
12827 2019-04-04 Tom Tromey <tom@tromey.com>
12828
12829 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12830 (rust_parser::convert_ast_to_type)
12831 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12832 * parser-defs.h (struct parser_state) <parser_state>: Add
12833 parameters. Initialize new members.
12834 <expression_context_block, expression_context_pc>: New members.
12835 * parse.c (expression_context_block, expression_context_pc):
12836 Remove globals.
12837 (parse_exp_in_context): Update.
12838 * p-exp.y: Update all rules.
12839 (yylex): Update.
12840 * m2-exp.y: Update all rules.
12841 (yylex): Update.
12842 * go-exp.y (yylex): Update.
12843 * f-exp.y (yylex): Update.
12844 * d-exp.y: Update all rules.
12845 (yylex): Update.
12846 * c-exp.y: Update all rules.
12847 (lex_one_token, classify_name, yylex, c_parse): Update.
12848 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12849
12850 2019-04-04 Tom Tromey <tom@tromey.com>
12851
12852 * gdbarch.h, gdbarch.c: Rebuild.
12853 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12854 * stap-probe.h:
12855 (struct stap_parse_info): Replace "parser_state" with
12856 "expr_builder".
12857 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12858 (parser_state): New class.
12859 * parse.c (expr_builder): Rename.
12860 (expr_builder::release): Rename.
12861 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12862 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12863 (write_exp_elt_longcst, write_exp_elt_floatcst)
12864 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12865 (write_exp_string_vector, write_exp_bitstring)
12866 (write_exp_msymbol, mark_struct_expression)
12867 (write_dollar_variable)
12868 (insert_type_address_space, increase_expout_size): Replace
12869 "parser_state" with "expr_builder".
12870 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12871 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12872 "parser_state" with "expr_builder".
12873
12874 2019-04-04 Tom Tromey <tom@tromey.com>
12875
12876 * rust-exp.y: Replace "parse_language" with method call.
12877 * p-exp.y:
12878 (yylex): Replace "parse_language" with method call.
12879 * m2-exp.y:
12880 (yylex): Replace "parse_language" with method call.
12881 * go-exp.y (classify_name): Replace "parse_language" with method
12882 call.
12883 * f-exp.y (yylex): Replace "parse_language" with method call.
12884 * d-exp.y (lex_one_token): Replace "parse_language" with method
12885 call.
12886 * c-exp.y:
12887 (lex_one_token, classify_name, yylex): Replace "parse_language"
12888 with method call.
12889 * ada-exp.y (find_primitive_type, type_char)
12890 (type_system_address): Replace "parse_language" with method call.
12891
12892 2019-04-04 Tom Tromey <tom@tromey.com>
12893
12894 * rust-exp.y: Replace "parse_gdbarch" with method call.
12895 * parse.c (write_dollar_variable, insert_type_address_space):
12896 Replace "parse_gdbarch" with method call.
12897 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12898 call.
12899 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12900 call.
12901 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12902 "parse_gdbarch" with method call.
12903 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12904 with method call.
12905 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12906 "parse_gdbarch" with method call.
12907 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12908 "parse_gdbarch" with method call.
12909 * c-exp.y (parse_type, parse_number, classify_name): Replace
12910 "parse_gdbarch" with method call.
12911 * ada-lex.l: Replace "parse_gdbarch" with method call.
12912 * ada-exp.y (parse_type, find_primitive_type, type_char)
12913 (type_system_address): Replace "parse_gdbarch" with method call.
12914
12915 2019-04-04 Tom Tromey <tom@tromey.com>
12916
12917 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12918 * stap-probe.c (stap_parse_argument): Update.
12919 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12920 initial_size parameter.
12921 * rust-exp.y (rust_lex_tests): Update.
12922 * parse.c (parser_state): Update.
12923 (parse_exp_in_context): Update.
12924 * parser-defs.h (struct parser_state) <parser_state>: Remove
12925 "initial_size" parameter.
12926
12927 2019-04-04 Tom Tromey <tom@tromey.com>
12928
12929 * parser-defs.h (increase_expout_size): Don't declare.
12930 * parse.c (increase_expout_size): Now static.
12931
12932 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12933
12934 * gnu-nat.c (gnu_nat_target::wait): Fix
12935 target_waitstatus_to_string call.
12936
12937 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12938
12939 * eval.c (evaluate_subexp_standard): Handle internal functions
12940 during Fortran function call handling.
12941
12942 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12943
12944 * NEWS: Mention new internal functions.
12945 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12946 (read_base_type): Use dwarf2_init_complex_target_type.
12947 * value.c (creal_internal_fn): New function.
12948 (cimag_internal_fn): New function.
12949 (_initialize_values): Register new internal functions.
12950
12951 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12952
12953 * infrun.c (stop_all_threads): If debug_infrun, always
12954 trace the wait status after wait_one, using
12955 target_waitstatus_to_string and target_pid_to_str.
12956 (handle_inferior_event): Replace various trace of
12957 wait status kind by a single trace.
12958 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12959 wait status kind image by target_waitstatus_to_string.
12960 * target/waitstatus.c (target_waitstatus_to_string): Fix
12961 obsolete comment.
12962
12963 2019-04-01 Tom Tromey <tromey@adacore.com>
12964
12965 PR symtab/23331:
12966 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12967
12968 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12969 Pedro Alves <palves@redhat.com>
12970
12971 * top.c (quit_force): Call 'finalize_values'.
12972 * value.c (finalize_values): New function.
12973 * value.h (finalize_values): Declare.
12974
12975 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12976
12977 * NEWS: Announce $_gdb_major and $_gdb_minor.
12978
12979 * top.c (init_gdb_version_vars): New function.
12980 (gdb_init): Call init_gdb_version_vars.
12981
12982 2019-03-29 Tom Tromey <tromey@adacore.com>
12983
12984 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12985 help text. Remove dead code.
12986
12987 2019-03-29 Keith Seitz <keiths@redhat.com>
12988
12989 From Siddhesh Poyarekar:
12990 * f-lang.h (f77_get_upperbound): Return LONGEST.
12991 (f77_get_lowerbound): Likewise.
12992 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12993 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12994 print them.
12995 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12996 plongest to format print it.
12997 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12998 (f77_get_upperbound): Likewise.
12999 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13000 LOWER_BOUND to LONGEST.
13001 (f77_create_arrayprint_offset_tbl): Likewise.
13002
13003 2019-03-29 Keith Seitz <keiths@redhat.com>
13004
13005 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13006 %s/pulongest for TYPE_LENGTH instead of %d in format
13007 strings.
13008 * ada-typerint.c (ada_print_type): Likewise.
13009 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13010 * compile/compile-c-support.c (generate_register_struct): Likewise.
13011 * gdbtypes.c (recursive_dump_type): Likewise.
13012 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13013 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13014 instead of %d in format strings.
13015 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13016 to std::min to ULONGEST.
13017 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13018 instead of %d in format strings.
13019 * tracepoint.c (info_scope_command): Likewise.
13020 * typeprint.c (print_offset_data::update)
13021 (print_offset_data::finish): Likewise.
13022 * xtensa-tdep.c (xtensa_store_return_value)
13023 (xtensa_push_dummy_call): Likewise.
13024
13025 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13026
13027 * windows-nat.c (display_selector): Fixed format specifications
13028 for 64-bit Cygwin.
13029
13030 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13031
13032 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13033
13034 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13035
13036 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13037 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13038 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13039 (nios2_linux_init_abi): Install it.
13040
13041 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13042
13043 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13044
13045 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13046
13047 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13048
13049 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13050 Tom Tromey <tromey@adacore.com>
13051
13052 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13053
13054 2019-03-26 Joel Brobecker <brobecker@adacore.com>
13055
13056 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13057 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13058 method to compute the bounds of range types. Also print "[evaluated]"
13059 if the bounds' values come from a dynamic evaluation.
13060
13061 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13062
13063 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13064 whitespace when pretty printing is on.
13065
13066 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13067
13068 * ppc-linux-nat.c: Add include.
13069
13070 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13071
13072 * NEWS: Mention AArch64 Pointer Authentication.
13073
13074 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13075
13076 * arm-linux-nat.c: Add include.
13077
13078 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13079
13080 * source-cache.c (source_cache::get_source_lines): Re-read
13081 fullname after calling open_source_file.
13082
13083 2019-03-25 John Baldwin <jhb@FreeBSD.org>
13084
13085 * NEWS: Mention TLS support for FreeBSD.
13086
13087 2019-03-25 Tom Tromey <tromey@adacore.com>
13088
13089 * minsyms.c (BUNCH_SIZE): Update comment.
13090 (~minimal_symbol_reader): Remove old comment.
13091 (compact_minimal_symbols): Update comment.
13092 (minimal_symbol_reader::install): Remove old comment. Update
13093 other comments.
13094
13095 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13096
13097 * s390-linux-nat.c: Add include.
13098
13099 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13100
13101 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13102 Call linux_get_hwcap.
13103 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13104 Likewise.
13105 (aarch64_linux_get_hwcap): Remove function.
13106 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13107 declaration.
13108 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13109 linux_get_hwcap.
13110 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13111 * linux-tdep.c (linux_get_hwcap): Add function.
13112 (linux_get_hwcap2): Likewise.
13113 * linux-tdep.h (linux_get_hwcap): Add declaration.
13114 (linux_get_hwcap2): Likewise.
13115 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13116 (ppc_linux_get_hwcap2): Likewise.
13117 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13118 linux_get_hwcap.
13119 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13120 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13121 (ppc_linux_nat_target::read_description): Likewise.
13122 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13123 * s390-linux-nat.c: Likewise.
13124 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13125
13126 2019-03-24 Tom Tromey <tom@tromey.com>
13127
13128 * ada-lang.c (standard_lookup): Simplify initialization.
13129 (ada_lookup_symbol_nonlocal): Simplify return.
13130 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13131 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13132 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13133 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13134 initialization.
13135 * solib.c (solib_global_lookup): Simplify.
13136 * symtab.c (null_block_symbol): Remove.
13137 (symbol_cache_lookup): Simplify returns.
13138 (lookup_language_this): Simplify returns.
13139 (lookup_symbol_aux): Simplify return.
13140 (lookup_local_symbol): Simplify returns.
13141 (lookup_global_symbol_from_objfile): Simplify return.
13142 (lookup_symbol_in_objfile_symtabs)
13143 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13144 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13145 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13146 * cp-namespace.c (cp_lookup_bare_symbol)
13147 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13148 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13149 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13150 (cp_lookup_symbol_via_imports): Simplify initialization.
13151 (find_symbol_in_baseclass): Likewise.
13152 * symtab.h (null_block_symbol): Remove.
13153 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13154 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13155 (d_lookup_symbol_module): Likewise.
13156 (find_symbol_in_baseclass): Simplify initialization.
13157
13158 2019-03-24 Tom Tromey <tom@tromey.com>
13159
13160 * expression.h: Don't include symtab.h.
13161 (struct block): Forward declare.
13162
13163 2019-03-24 Tom Tromey <tom@tromey.com>
13164
13165 * c-exp.y (typebase): Remove casts.
13166 * gdbtypes.c (lookup_unsigned_typename, )
13167 (lookup_signed_typename): Remove cast.
13168 * eval.c (parse_to_comma_and_eval): Remove cast.
13169 * parse.c (write_dollar_variable): Remove cast.
13170 * block.h (struct block) <superblock>: Now const.
13171 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13172 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13173 (map_block): Make "block" const.
13174 * symfile.h (struct quick_symbol_functions)
13175 <map_matching_symbols>: Constify block argument to "callback".
13176 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13177 const.
13178 (find_pc_sect_compunit_symtab): Make "b" const.
13179 (find_symbol_at_address): Likewise.
13180 (search_symbols): Likewise.
13181 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13182 (dw2_debug_names_lookup_symbol): Likewise.
13183 (dw2_map_matching_symbols): Update.
13184 * p-valprint.c (pascal_val_print): Remove "block".
13185 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13186 (aux_add_nonlocal_symbols): Make "block" const.
13187 (resolve_subexp): Remove cast.
13188 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13189 const.
13190 (iterate_over_file_blocks): Likewise.
13191 * f-exp.y (%union) <bval>: Remove.
13192 * coffread.c (patch_opaque_types): Make "b" const.
13193 * spu-tdep.c (spu_catch_start): Make "block" const.
13194 * c-valprint.c (print_unpacked_pointer): Remove "block".
13195 * symmisc.c (dump_symtab_1): Make "b" const.
13196 (block_depth): Make "block" const.
13197 * d-exp.y (%union) <bval>: Remove.
13198 * cp-support.h (cp_lookup_rtti_type): Update.
13199 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13200 * psymtab.c (psym_lookup_symbol): Make "block" const.
13201 (maintenance_check_psymtabs): Make "b" const.
13202 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13203 (enumerate_locals, enumerate_args): Update.
13204 * python/py-symtab.c (stpy_global_block): Make "block" const.
13205 (stpy_static_block): Likewise.
13206 * inline-frame.c (block_starting_point_at): Make "new_block"
13207 const.
13208 * block.c (find_block_in_blockvector): Make return type const.
13209 (blockvector_for_pc_sect): Make "b" const.
13210 (find_block_in_blockvector): Make "b" const.
13211
13212 2019-03-23 Tom Tromey <tom@tromey.com>
13213
13214 * varobj.c (varobj_create): Update.
13215 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13216 * printcmd.c (display_command, do_one_display): Don't reset
13217 innermost_block.
13218 * parser-defs.h (enum innermost_block_tracker_type): Move to
13219 expression.h.
13220 (innermost_block): Update comment.
13221 * parse.c (parse_exp_1): Add tracker_types parameter.
13222 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13223 tracker_types parameter. Reset innermost_block.
13224 (parse_exp_in_context): Remove.
13225 (parse_expression_for_completion): Update.
13226 * objfiles.c (~objfile): Don't reset expression_context_block or
13227 innermost_block.
13228 * expression.h (enum innermost_block_tracker_type): Move from
13229 parser-defs.h.
13230 (parse_exp_1): Add tracker_types parameter.
13231 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13232 reset innermost_block.
13233
13234 2019-03-23 Tom Tromey <tom@tromey.com>
13235
13236 * objfiles.h: Include bcache.h.
13237
13238 2019-03-23 Tom Tromey <tom@tromey.com>
13239
13240 * linespec.c (get_current_search_block): Use
13241 scoped_restore_current_language.
13242 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13243
13244 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13245 Jiong Wang <jiong.wang@arm.com>
13246
13247 * aarch64-linux-tdep.c
13248 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13249 section.
13250 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13251
13252 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13253 Jiong Wang <jiong.wang@arm.com>
13254
13255 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13256 instructions.
13257 (aarch64_analyze_prologue_test): Add PACIASP test.
13258 (aarch64_prologue_prev_register): Unmask PC value.
13259
13260 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13261 Jiong Wang <jiong.wang@arm.com>
13262
13263 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13264 (aarch64_dwarf2_prev_register): Unmask PC value.
13265 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13266 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13267 DW_CFA_AARCH64_negate_ra_state.
13268 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13269
13270 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13271 Jiong Wang <jiong.wang@arm.com>
13272
13273 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13274 registers.
13275 (aarch64_pseudo_register_name): Likewise.
13276 (aarch64_pseudo_register_type): Likewise.
13277 (aarch64_pseudo_register_reggroup_p): Likewise.
13278 (aarch64_gdbarch_init): Add pauth registers.
13279 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13280 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13281 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13282 (struct gdbarch_tdep): Add regnum for ra_state.
13283
13284 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13285 Jiong Wang <jiong.wang@arm.com>
13286
13287 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13288
13289 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13290 Jiong Wang <jiong.wang@arm.com>
13291
13292 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13293 function.
13294 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13295 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13296 (aarch64_gdbarch_init): Add puth registers.
13297 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13298 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13299 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13300
13301 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13302 Jiong Wang <jiong.wang@arm.com>
13303
13304 * aarch64-linux-nat.c
13305 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13306 * aarch64-linux-tdep.c
13307 (aarch64_linux_core_read_description): Likewise.
13308 (aarch64_linux_get_hwcap): New function.
13309 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13310 (aarch64_linux_get_hwcap): New declaration.
13311
13312 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13313 Jiong Wang <jiong.wang@arm.com>
13314
13315 * aarch64-linux-nat.c
13316 (aarch64_linux_nat_target::read_description): Add pauth param.
13317 * aarch64-linux-tdep.c
13318 (aarch64_linux_core_read_description): Likewise.
13319 * aarch64-tdep.c (struct target_desc): Add in pauth.
13320 (aarch64_read_description): Add pauth param.
13321 (aarch64_gdbarch_init): Likewise.
13322 * aarch64-tdep.h (aarch64_read_description): Likewise.
13323 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13324 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13325 * features/Makefile: Add new files.
13326 * features/aarch64-pauth.c: New file.
13327 * features/aarch64-pauth.xml: New file.
13328
13329 2019-03-20 Tom Tromey <tromey@adacore.com>
13330
13331 * infrun.c (handle_inferior_event): Rename from
13332 handle_inferior_event_1. Create a scoped_value_mark.
13333 (handle_inferior_event): Remove.
13334
13335 2019-03-19 Tom Tromey <tromey@adacore.com>
13336
13337 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13338 * infrun.h (print_stop_event): Add "displays" parameter.
13339 * infrun.c (print_stop_event): Add "displays" parameter.
13340
13341 2019-03-19 Pedro Alves <palves@redhat.com>
13342
13343 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13344 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13345 to -1. Fix TABs vs spaces.
13346 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13347 * tui/tui-out.h (tui_ui_out) Add intro comments.
13348 <m_line, m_start_of_line>: In-class initialize, and add describing
13349 comment.
13350
13351 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13352
13353 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13354 variable names.
13355 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13356
13357 2019-03-18 Pedro Alves <palves@redhat.com>
13358 Eli Zaretskii <eliz@gnu.org>
13359
13360 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13361 m_line and m_start_of_line.
13362
13363 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13364
13365 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13366 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13367 it returns a newline. This fixes a regression in TU mode, whereby
13368 the next line is output on the same screen line as the user input.
13369
13370 2019-03-18 Tom Tromey <tromey@adacore.com>
13371
13372 * minsyms.c (minimal_symbol_reader::install): Remove call to
13373 obstack_blank.
13374
13375 2019-03-18 Pedro Alves <palves@redhat.com>
13376
13377 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13378 New globals.
13379 (apply_style): New, factored out from ...
13380 (apply_ansi_escape): ... this. Handle reverse video mode.
13381 (tui_set_reverse_mode): New function.
13382 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13383 * tui/tui-winsource.c (tui_show_source_line): Use
13384 tui_set_reverse_mode instead of setting A_STANDOUT.
13385 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13386 New setter methods.
13387
13388 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13389
13390 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13391 Handle tabs.
13392
13393 2019-03-18 Tom Tromey <tromey@adacore.com>
13394
13395 * ada-lang.c (empty_array): Add "high" parameter.
13396 (ada_evaluate_subexp): Update.
13397
13398 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13399
13400 * unittests/string_view-selftests.c: Define
13401 _initialize_string_view_selftests unconditionally.
13402
13403 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13404
13405 PR gdb/24350
13406 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13407
13408 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13409
13410 PR gdb/24351
13411 * windows-nat.c (display_selector): Fix format specifiers.
13412
13413 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13414
13415 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13416 tui_refill_source_window instead of tui_refresh_win, to update the
13417 current execution line. This fixes redisplay of the current line
13418 when stepping through the code with "next" or "step".
13419
13420 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13421
13422 * source-cache.c (source_cache::get_source_lines): Call
13423 find_source_lines to initialize s->nlines. This fixes vertical
13424 scrolling of TUI source window when the DOWN arrow is pressed.
13425
13426 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13427
13428 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13429 linux-thread-db.c (_initialize_thread_db): Likewise.
13430
13431 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13432
13433 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13434 wclrtoeol in tui_show_source_line". This reverts changes made in
13435 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13436
13437 2019-03-15 Tom Tromey <tom@tromey.com>
13438
13439 * symtab.h (struct minimal_symbol): Derive from
13440 general_symbol_info.
13441 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13442 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13443 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13444 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13445 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13446 (MSYMBOL_SEARCH_NAME): Update.
13447 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13448 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13449 * minsyms.c (minimal_symbol_reader::record_full): Update.
13450
13451 2019-03-15 Tom Tromey <tom@tromey.com>
13452
13453 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13454
13455 2019-03-15 Tom Tromey <tom@tromey.com>
13456
13457 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13458 unique_xmalloc_ptr.
13459 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13460 Update.
13461 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13462 (build_minimal_symbol_hash_tables)
13463 (minimal_symbol_reader::install): Update.
13464
13465 2019-03-15 Tom Tromey <tom@tromey.com>
13466
13467 * symtab.c (create_demangled_names_hash): Update.
13468 (symbol_set_names): Update.
13469 * objfiles.h (struct objfile_per_bfd_storage)
13470 <demangled_names_hash>: Now an htab_up.
13471 * objfiles.c (objfile_per_bfd_storage): Simplify.
13472
13473 2019-03-15 Tom Tromey <tom@tromey.com>
13474
13475 * objfiles.h (struct objfile_per_bfd_storage): Declare
13476 destructor.
13477 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13478 New.
13479 (get_objfile_bfd_data): Use new. Don't initialize
13480 language_of_main.
13481 (free_objfile_per_bfd_storage): Remove.
13482 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13483
13484 2019-03-15 Tom Tromey <tom@tromey.com>
13485
13486 * symfile.c (reread_symbols): Update.
13487 * objfiles.c (objfile::objfile): Update.
13488 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13489 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13490 comment.
13491 (minimal_symbol_reader::install): Update.
13492 (terminate_minimal_symbol_table): Remove.
13493 * jit.c (jit_object_close_impl): Update.
13494
13495 2019-03-15 Tom Tromey <tom@tromey.com>
13496
13497 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13498 initializations.
13499
13500 2019-03-15 Tom Tromey <tom@tromey.com>
13501
13502 * objfiles.h (struct objfile_per_bfd_storage)
13503 <demangled_hash_languages>: Now a bitset.
13504 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13505 (lookup_minimal_symbol): Update.
13506
13507 2019-03-15 Tom Tromey <tom@tromey.com>
13508
13509 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13510 Don't return the symbol.
13511 * coffread.c (record_minimal_symbol): Use record_full.
13512
13513 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13514
13515 The MS-Windows port of ncurses fails to switch to a color pair if
13516 one or both of the colors are the implicit default colors. This
13517 change records the default colors when TUI is initialized, and
13518 then specifies them explicitly when a color pair uses the default
13519 colors. This allows color styling in TUI mode on MS-Windows.
13520
13521 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13522 ncurses_norm_attr.
13523 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13524 colors in ncurses_norm_attr.
13525 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13526 "none", replace it with the default color recorded in
13527 ncurses_norm_attr.
13528
13529 2019-03-14 Tom Tromey <tromey@adacore.com>
13530
13531 * source-cache.h (class source_cache) <get_source_lines>: Return
13532 std::string.
13533 * source-cache.c (source_cache::extract_lines): Handle case where
13534 first_pos==npos. Return std::string.
13535 (source_cache::get_source_lines): Update.
13536
13537 2019-03-14 Tom Tromey <tromey@adacore.com>
13538
13539 * NEWS: Add item for "style sources" commands.
13540 * source-cache.c (source_cache::get_source_lines): Check
13541 source_styling.
13542 * cli/cli-style.c (source_styling): New global.
13543 (_initialize_cli_style): Add "style sources" commands.
13544 (show_style_sources): New function.
13545 * cli/cli-style.h (source_styling): Declare.
13546
13547 2019-03-14 Pedro Alves <palves@redhat.com>
13548 Tom Tromey <tromey@adacore.com>
13549
13550 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13551 * tui/tui-winsource.c (tui_refill_source_window): New function,
13552 from...
13553 (tui_horizontal_source_scroll): ... here. Move some logic.
13554 * cli/cli-style.c (set_style_enabled): Notify new observable.
13555 * tui/tui-hooks.c (tui_redisplay_source): New function.
13556 (tui_attach_detach_observers): Attach or detach
13557 tui_redisplay_source.
13558 * observable.h (source_styling_changed): New observable.
13559 * observable.c: Define source_styling_changed observable.
13560
13561 2019-03-13 Tom Tromey <tromey@adacore.com>
13562
13563 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13564 (i386_gnu_nat_target::store_registers): Update.
13565 * target-debug.h (target_debug_print_std_string): New macro.
13566 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13567 * windows-tdep.c (display_one_tib): Update.
13568 * tui/tui-stack.c (tui_make_status_line): Update.
13569 * top.c (print_inferior_quit_action): Update.
13570 * thread.c (thr_try_catch_cmd): Update.
13571 (add_thread_with_info): Update.
13572 (thread_target_id_str): Update.
13573 (thr_try_catch_cmd): Update.
13574 (thread_command): Update.
13575 (thread_find_command): Update.
13576 * record-btrace.c (record_btrace_target::info_record)
13577 (record_btrace_resume_thread, record_btrace_target::resume)
13578 (record_btrace_cancel_resume, record_btrace_step_thread)
13579 (record_btrace_target::wait, record_btrace_target::wait)
13580 (record_btrace_target::wait, record_btrace_target::stop): Update.
13581 * progspace.c (print_program_space): Update.
13582 * process-stratum-target.c
13583 (process_stratum_target::thread_address_space): Update.
13584 * linux-fork.c (linux_fork_mourn_inferior)
13585 (detach_checkpoint_command, info_checkpoints_command)
13586 (linux_fork_context): Update.
13587 (linux_fork_detach): Update.
13588 (class scoped_switch_fork_info): Update.
13589 (delete_checkpoint_command): Update.
13590 * infrun.c (follow_fork_inferior): Update.
13591 (follow_fork_inferior): Update.
13592 (proceed_after_vfork_done): Update.
13593 (handle_vfork_child_exec_or_exit): Update.
13594 (follow_exec): Update.
13595 (displaced_step_prepare_throw): Update.
13596 (displaced_step_restore): Update.
13597 (start_step_over): Update.
13598 (resume_1): Update.
13599 (clear_proceed_status_thread): Update.
13600 (proceed): Update.
13601 (print_target_wait_results): Update.
13602 (do_target_wait): Update.
13603 (context_switch): Update.
13604 (stop_all_threads): Update.
13605 (restart_threads): Update.
13606 (finish_step_over): Update.
13607 (handle_signal_stop): Update.
13608 (switch_back_to_stepped_thread): Update.
13609 (keep_going_pass_signal): Update.
13610 (print_exited_reason): Update.
13611 (normal_stop): Update.
13612 * inferior.c (inferior_pid_to_str): Change return type.
13613 (print_selected_inferior): Update.
13614 (add_inferior): Update.
13615 (detach_inferior): Update.
13616 * dummy-frame.c (fprint_dummy_frames): Update.
13617 * dcache.c (dcache_info_1): Update.
13618 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13619 (btrace_fetch, btrace_clear): Update.
13620 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13621 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13622 type.
13623 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13624 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13625 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13626 * gdbarch.c, gdbarch.h: Rebuild.
13627 * gdbarch.sh (core_pid_to_str): Change return type.
13628 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13629 return type.
13630 (windows_nat_target::pid_to_str): Change return type.
13631 (windows_delete_thread): Update.
13632 (windows_nat_target::attach): Update.
13633 (windows_nat_target::files_info): Update.
13634 * target-delegates.c: Rebuild.
13635 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13636 return type.
13637 (sol_thread_target::pid_to_str): Change return type.
13638 * remote.c (class remote_target) <pid_to_str>: Change return
13639 type.
13640 (remote_target::pid_to_str): Change return type.
13641 (extended_remote_target::attach, remote_target::remote_stop_ns)
13642 (remote_target::remote_notif_remove_queued_reply)
13643 (remote_target::push_stop_reply, remote_target::disable_btrace):
13644 Update.
13645 (extended_remote_target::attach): Update.
13646 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13647 type.
13648 (gdbsim_target::pid_to_str): Change return type.
13649 * ravenscar-thread.c (struct ravenscar_thread_target)
13650 <pid_to_str>: Change return type.
13651 (ravenscar_thread_target::pid_to_str): Change return type.
13652 * procfs.c (class procfs_target) <pid_to_str>: Change return
13653 type.
13654 (procfs_target::pid_to_str): Change return type.
13655 (procfs_target::attach): Update.
13656 (procfs_target::detach): Update.
13657 (procfs_target::fetch_registers): Update.
13658 (procfs_target::store_registers): Update.
13659 (procfs_target::wait): Update.
13660 (procfs_target::files_info): Update.
13661 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13662 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13663 return type.
13664 (nto_procfs_target::pid_to_str): Change return type.
13665 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13666 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13667 return type.
13668 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13669 (exit_lwp): Update.
13670 (attach_proc_task_lwp_callback, get_detach_signal)
13671 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13672 (linux_nat_target::resume, wait_lwp, stop_callback)
13673 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13674 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13675 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13676 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13677 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13678 type.
13679 (inf_ptrace_target::attach): Update.
13680 (inf_ptrace_target::files_info): Update.
13681 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13682 type.
13683 (go32_nat_target::pid_to_str): Change return type.
13684 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13685 (gnu_nat_target::wait): Update.
13686 (gnu_nat_target::wait): Update.
13687 (gnu_nat_target::resume): Update.
13688 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13689 (fbsd_nat_target::wait): Update.
13690 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13691 type.
13692 (darwin_nat_target::attach): Update.
13693 * corelow.c (class core_target) <pid_to_str>: Change return type.
13694 (core_target::pid_to_str): Change return type.
13695 * target.c (normal_pid_to_str): Change return type.
13696 (default_pid_to_str): Likewise.
13697 (target_pid_to_str): Change return type.
13698 (target_translate_tls_address): Update.
13699 (target_announce_detach): Update.
13700 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13701 return type.
13702 (bsd_uthread_target::pid_to_str): Change return type.
13703 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13704 type.
13705 (bsd_kvm_target::pid_to_str): Change return type.
13706 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13707 return type.
13708 (aix_thread_target::pid_to_str): Change return type.
13709 * target.h (struct target_ops) <pid_to_str>: Change return type.
13710 (target_pid_to_str, normal_pid_to_str): Likewise.
13711 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13712 type.
13713 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13714 type.
13715 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13716 return type.
13717 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13718 type.
13719 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13720 type.
13721 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13722 return type.
13723
13724 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13725
13726 * NEWS: Mention that the new default MI version is 3. Mention
13727 changes to the output of commands and events that deal with
13728 multi-location breakpoints.
13729 * breakpoint.c: Include "mi/mi-out.h".
13730 (print_one_breakpoint): Change output syntax if using MI version
13731 >= 3.
13732 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13733 New.
13734 (mi_multi_location_breakpoint_output_fixed): New.
13735 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13736 (mi_cmd_fix_multi_location_breakpoint_output): New.
13737 (mi_multi_location_breakpoint_output_fixed): New.
13738 * mi/mi-cmds.c (mi_cmds): Register command
13739 -fix-multi-location-breakpoint-output.
13740 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13741 interpreter "mi".
13742
13743 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13744
13745 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13746 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13747 instantiate mi_ui_out based on interpreter name.
13748 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13749 * mi/mi-main.c (mi_load_progress): Likewise.
13750
13751 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13752
13753 * NEWS: Combine separate "New targets" sections for 8.3.
13754
13755 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13756
13757 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13758 (ppcfbsd_init_abi): Install gdbarch
13759 "fetch_tls_load_module_address" and "get_thread_local_address"
13760 methods.
13761
13762 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13763
13764 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13765 (riscv_fbsd_init_abi): Install gdbarch
13766 "fetch_tls_load_module_address" and "get_thread_local_address"
13767 methods.
13768
13769 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13770
13771 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13772 (i386fbsd_init_abi): Install gdbarch
13773 "fetch_tls_load_module_address" and "get_thread_local_address"
13774 methods.
13775
13776 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13777
13778 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13779 (amd64fbsd_init_abi): Install gdbarch
13780 "fetch_tls_load_module_address" and "get_thread_local_address"
13781 methods.
13782
13783 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13784
13785 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13786 (struct fbsd_pspace_data): New type.
13787 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13788 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13789 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13790 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13791 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13792
13793 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13794
13795 * gdbtypes.c (lookup_struct_elt): New function.
13796 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13797 * gdbtypes.h (struct struct_elt): New type.
13798 (lookup_struct_elt): New prototype.
13799
13800 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13801
13802 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13803 remove disabled code block.
13804
13805 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13806
13807 * gdbarch.sh (get_thread_local_address): New method.
13808 * gdbarch.h, gdbarch.c: Regenerate.
13809 * target.c (target_translate_tls_address): Use
13810 gdbarch_get_thread_local_address if present instead of
13811 target::get_thread_local_address.
13812
13813 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13814
13815 * target.h (target::get_thread_local_address): Update comment.
13816
13817 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13818
13819 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13820 objfile->separate_debug_objfile_backlink if not NULL.
13821
13822 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13823
13824 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13825 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13826 (amd64bsd_store_inferior_registers): Likewise.
13827 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13828 Enable segment base registers.
13829 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13830 PT_GETFSBASE and PT_GETGSBASE.
13831 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13832 PT_SETGSBASE.
13833 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13834 segment base registers.
13835 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13836
13837 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13838
13839 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13840 Update calls to i386_target_description to add 'segments'
13841 parameter.
13842 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13843 add segment base registers.
13844 * arch/i386.c (i386_create_target_description): Add 'segments'
13845 parameter to enable segment base registers.
13846 * arch/i386.h (i386_create_target_description): Likewise.
13847 * features/i386/32bit-segments.xml: New file.
13848 * features/i386/32bit-segments.c: Generate.
13849 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13850 call to i386_target_description to add 'segments' parameter.
13851 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13852 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13853 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13854 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13855 if feature is present.
13856 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13857 Add 'segments' parameter to call to i386_target_description.
13858 (i386_target_description): Add 'segments' parameter to enable
13859 segment base registers.
13860 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13861 to call to i386_target_description.
13862 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13863 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13864 Define I386_NUM_REGS.
13865 (i386_target_description): Add 'segments' parameter to enable
13866 segment base registers.
13867
13868 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13869
13870 PR/24325
13871 * source-cache.c: #undef open and close, to avoid unresolved
13872 externals during linking.
13873
13874 2019-03-12 Tom Tromey <tromey@adacore.com>
13875
13876 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13877 const. Add initializers.
13878 (_initialize_remote): Don't initialize ptid globals.
13879
13880 2019-03-12 Pedro Alves <palves@redhat.com>
13881
13882 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13883
13884 2019-03-12 Pedro Alves <palves@redhat.com>
13885
13886 * cp-name-parser.y (main): Remove unused 'len' variable.
13887
13888 2019-03-12 Tom Tromey <tromey@adacore.com>
13889
13890 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13891 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13892
13893 2019-03-12 Tom Tromey <tromey@adacore.com>
13894
13895 * linux-nat.c (iterate_over_lwps): Update.
13896 (stop_callback): Remove parameter.
13897 (stop_wait_callback, detach_callback, resume_set_callback)
13898 (select_singlestep_lwp_callback, set_ignore_sigint)
13899 (status_callback, resumed_callback, resume_clear_callback)
13900 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13901 data parameter.
13902 (linux_nat_target::detach, linux_nat_target::resume)
13903 (linux_stop_and_wait_all_lwps, select_event_lwp)
13904 (linux_nat_filter_event, linux_nat_wait_1)
13905 (linux_nat_target::kill, linux_nat_target::stop)
13906 (linux_nat_target::stop): Update.
13907 (linux_nat_resume_callback): Change type.
13908 (resume_stopped_resumed_lwps, count_events_callback)
13909 (select_event_lwp_callback): Likewise.
13910 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13911 * arm-linux-nat.c (struct update_registers_data): Remove.
13912 (update_registers_callback): Change type.
13913 (arm_linux_insert_hw_breakpoint1): Update.
13914 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13915 parameter.
13916 (x86_linux_dr_set_addr): Update.
13917 (x86_linux_dr_set_control): Update.
13918 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13919 (iterate_over_lwps): Use gdb::function_view.
13920 * nat/aarch64-linux-hw-point.c (struct
13921 aarch64_dr_update_callback_param): Remove.
13922 (debug_reg_change_callback): Change type.
13923 (aarch64_notify_debug_reg_change): Update.
13924 * s390-linux-nat.c (s390_refresh_per_info): Update.
13925
13926 2019-03-11 Tom Tromey <tromey@adacore.com>
13927
13928 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13929 redundant assignment to "this_cu".
13930
13931 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13932
13933 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13934
13935 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13936
13937 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13938 from...
13939 (rank_one_type): ... this.
13940
13941 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13942
13943 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13944 from...
13945 (rank_one_type): ... this.
13946
13947 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13948
13949 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13950 from...
13951 (rank_one_type): ... this.
13952
13953 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13954
13955 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13956 from...
13957 (rank_one_type): ... this.
13958
13959 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13960
13961 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13962 from...
13963 (rank_one_type): ... this.
13964
13965 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13966
13967 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13968 from...
13969 (rank_one_type): ... this.
13970
13971 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13972
13973 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13974 from...
13975 (rank_one_type): ... this.
13976
13977 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13978
13979 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13980 from...
13981 (rank_one_type): ... this.
13982
13983 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13984
13985 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13986 from...
13987 (rank_one_type): ... this.
13988
13989 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13990
13991 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13992 from...
13993 (rank_one_type): ... this.
13994
13995 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13996
13997 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13998 from...
13999 (rank_one_type): ... this.
14000
14001 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14002
14003 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14004 from...
14005 (rank_one_type): ... this.
14006
14007 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14008
14009 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14010 inferior-events' shows the example events.
14011
14012 2019-03-08 Eli Zaretskii <eliz@gnu.org>
14013
14014 Support styling on native MS-Windows console
14015
14016 PR/24315
14017 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14018 on MS-Windows if $TERM is not defined.
14019
14020 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14021
14022 * posix-hdep.c (gdb_console_fputs):
14023 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14024 functions.
14025 * ui-file.h (gdb_console_fputs): Add prototype.
14026
14027 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14028 back to fputs only if the former returns zero.
14029
14030 2019-03-07 Tom Tromey <tom@tromey.com>
14031
14032 * symmisc.c (print_symbol_bcache_statistics): Update.
14033 (print_objfile_statistics): Update.
14034 * symfile.c (allocate_symtab): Update.
14035 * stabsread.c: Don't include bcache.h.
14036 * psymtab.h (struct psymbol_bcache): Don't declare.
14037 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14038 (psymbol_bcache_init, psymbol_bcache_free)
14039 (psymbol_bcache_get_bcache): Don't declare.
14040 * psymtab.c (struct psymbol_bcache): Remove.
14041 (psymtab_storage::psymtab_storage): Update.
14042 (psymtab_storage::~psymtab_storage): Update.
14043 (psymbol_bcache_init, psymbol_bcache_free)
14044 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14045 (add_psymbol_to_bcache): Update.
14046 (allocate_psymtab): Update.
14047 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14048 macro_cache>: No longer pointers.
14049 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14050 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14051 * macrotab.c (macro_bcache): Update.
14052 * macroexp.c: Don't include bcache.h.
14053 * gdbtypes.c (check_types_worklist): Update.
14054 (types_deeply_equal): Remove TRY/CATCH. Update.
14055 * elfread.c (elf_symtab_read): Update.
14056 * dwarf2read.c: Don't include bcache.h.
14057 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14058 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14059 (print_bcache_statistics, bcache_memory_used): Don't declare.
14060 (struct bcache): Move from bcache.c. Add constructor, destructor,
14061 methods. Rename all data members.
14062 * bcache.c (struct bcache): Move to bcache.h.
14063 (bcache::expand_hash_table): Rename from expand_hash_table.
14064 (bcache): Remove.
14065 (bcache::insert): Rename from bcache_full.
14066 (bcache::compare): Rename from bcache_compare.
14067 (bcache_xmalloc): Remove.
14068 (bcache::~bcache): Rename from bcache_xfree.
14069 (bcache::print_statistics): Rename from print_bcache_statistics.
14070 (bcache::memory_used): Rename from bcache_memory_used.
14071
14072 2019-03-07 Pedro Alves <palves@redhat.com>
14073
14074 * infrun.c (normal_stop): Also check for
14075 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14076
14077 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14078
14079 * f-lang.c (value_from_host_double): Moved to...
14080 * value.c (value_from_host_double): ...here.
14081 * value.h (value_from_host_double): Declare.
14082 * guile/scm-math.c (vlscm_convert_typed_number): Use
14083 value_from_host_double.
14084 (vlscm_convert_number): Likewise.
14085 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14086 * python/py-value.c (convert_value_from_python): Likewise.
14087
14088 2019-03-06 Tom Tromey <tom@tromey.com>
14089
14090 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14091
14092 2019-03-06 Tom Tromey <tom@tromey.com>
14093
14094 * utils.h (free_current_contents): Don't declare.
14095 * utils.c (free_current_contents): Remove.
14096
14097 2019-03-06 Tom Tromey <tom@tromey.com>
14098
14099 * top.c (quit_force): Update.
14100 * main.c (captured_command_loop): Update.
14101 * common/new-op.c (operator new): Update.
14102 * common/common-exceptions.c (struct catcher)
14103 <save_cleanup_chain>: Remove member.
14104 (exceptions_state_mc_init): Update.
14105 (exception_try_scope_entry): Return nullptr.
14106 (exception_try_scope_exit, exception_rethrow)
14107 (throw_exception_sjlj, throw_exception_cxx): Update.
14108 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14109 (all_cleanups, do_cleanups, discard_cleanups)
14110 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14111 (restore_cleanups, restore_final_cleanups): Don't declare.
14112 (do_final_cleanups): Remove parameter.
14113 * common/cleanups.c (cleanup_chain, make_cleanup)
14114 (make_cleanup_dtor, all_cleanups, do_cleanups)
14115 (discard_my_cleanups, discard_cleanups)
14116 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14117 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14118 (null_cleanup): Remove.
14119 (do_final_cleanups): Remove parameter.
14120
14121 2019-03-06 Tom Tromey <tom@tromey.com>
14122
14123 * remote.c (remote_target::remote_parse_stop_reply): Use
14124 unique_xmalloc_ptr.
14125
14126 2019-03-06 Tom Tromey <tom@tromey.com>
14127
14128 * stabsread.c (struct stabs_field_info): Rename from field_info.
14129 <list, fnlist>: Add initializers.
14130 <obstack>: New member.
14131 (read_member_functions, read_struct_fields, read_baseclasses):
14132 Allocate on obstack. Don't use cleanups.
14133 (read_one_struct_field, read_member_functions, read_struct_fields)
14134 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14135 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14136 (read_struct_type): Update.
14137
14138 2019-03-06 Tom Tromey <tom@tromey.com>
14139
14140 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14141 * common/filestuff.h (make_cleanup_close): Don't declare.
14142 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14143 Remove.
14144
14145 2019-03-06 Tom Tromey <tom@tromey.com>
14146
14147 * solib-aix.c: Use make_scope_exit.
14148
14149 2019-03-06 Tom Tromey <tom@tromey.com>
14150
14151 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14152 Use make_scope_exit.
14153
14154 2019-03-06 Tom Tromey <tom@tromey.com>
14155
14156 * solib-svr4.c (disable_probes_interface): Remove parameter.
14157 (svr4_handle_solib_event): Use make_scope_exit.
14158
14159 2019-03-06 Tom Tromey <tom@tromey.com>
14160
14161 * remote.c (struct stop_reply_deleter): Remove.
14162 (stop_reply_up): Update.
14163 (struct stop_reply): Derive from notif_event. Don't typedef.
14164 <regcache>: Now a std::vector.
14165 (stop_reply_xfree): Remove.
14166 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14167 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14168 (remote_target::discard_pending_stop_replies): Use delete.
14169 (remote_target::remote_parse_stop_reply): Update.
14170 (remote_target::process_stop_reply): Update.
14171 * remote-notif.h (struct notif_event): Add virtual destructor.
14172 Remove "dtr" member.
14173 (struct notif_client) <alloc_event>: Return a unique_ptr.
14174 (notif_event_xfree): Don't declare.
14175 (notif_event_up): New typedef.
14176 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14177 (notif_event_xfree, do_notif_event_xfree): Remove.
14178 (remote_notif_state_xfree): Update.
14179
14180 2019-03-06 Tom Tromey <tom@tromey.com>
14181
14182 * infrun.c (displaced_step_clear_cleanup): Now a
14183 forward_scope_exit type.
14184 (displaced_step_prepare_throw): Update.
14185 (displaced_step_fixup): Update.
14186
14187 2019-03-06 Tom Tromey <tom@tromey.com>
14188
14189 * inferior.h (class inferior): Update comment.
14190 * gdbthread.h (class thread_info): Update comment.
14191
14192 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14193 Tom Tromey <tom@tromey.com>
14194
14195 * stabsread.h (struct stab_section_list): Remove.
14196 (coffstab_build_psymtabs): Update.
14197 * dbxread.c (symbuf_sections): Now a std::vector.
14198 (sect_idx): New global.
14199 (fill_symbuf): Update.
14200 (coffstab_build_psymtabs): Change type of stabsects parameter.
14201 Update.
14202 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14203 std::vector.
14204 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14205 (coff_locate_sections): Update.
14206 (coff_symfile_read): Remove cleanups. Update.
14207 (init_stringtab): Add storage parameter.
14208 (free_stringtab, free_stringtab_cleanup): Remove.
14209 (init_lineno): Add storage parameter.
14210 (free_linetab, free_linetab_cleanup): Remove.
14211
14212 2019-03-06 Pedro Alves <palves@redhat.com>
14213
14214 * linux-fork.c (fork_info::clobber_regs): Delete.
14215 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14216 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14217 comment. Adjust.
14218 (scoped_switch_fork_info::scoped_switch_fork_info)
14219 (checkpoint_command, linux_fork_context): Adjust
14220 fork_save_infrun_state calls.
14221
14222 2019-03-06 Pedro Alves <palves@redhat.com>
14223
14224 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14225 (inf_has_multiple_threads): Return 'bool' and rewrite using
14226 inferior_info::threads().
14227
14228 2019-03-06 Pedro Alves <palves@redhat.com>
14229
14230 * linux-fork.c: Include <list>.
14231 (fork_list): Now a std::list instance.
14232 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14233 (forks_exist_p, find_last_fork): Adjust.
14234 (new_fork): Delete.
14235 (one_fork_p): New.
14236 (add_fork): Adjust.
14237 (free_fork): Delete, folded into fork_info::~fork_info().
14238 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14239 Adjust.
14240 (init_fork_list): Delete.
14241 (linux_fork_killall, linux_fork_mourn_inferior)
14242 (linux_fork_detach, info_checkpoints_command): Adjust.
14243 (_initialize_linux_fork): No longer call init_fork_list.
14244
14245 2019-03-06 Pedro Alves <palves@redhat.com>
14246
14247 * linux-fork.c (new_fork): New, split out of ...
14248 (add_fork): ... this. Return void. Move "first fork" special
14249 case from here, to ...
14250 (checkpoint_command): ... here.
14251 * linux-linux.h (add_fork): Return void.
14252
14253 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14254
14255 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14256
14257 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14258 Chris January <chris.january@arm.com>
14259 David Lecomber <david.lecomber@arm.com>
14260
14261 * f-exp.y: New token, UNOP_INTRINSIC.
14262 (exp): New pattern using UNOP_INTRINSIC token.
14263 (f77_keywords): Add 'abs' keyword.
14264 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14265 (value_from_host_double): New function.
14266 (evaluate_subexp_f): Support UNOP_ABS.
14267
14268 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14269
14270 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14271 types.
14272
14273 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14274
14275 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14276 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14277 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14278
14279 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14280
14281 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14282
14283 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14284 Chris January <chris.january@arm.com>
14285
14286 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14287 * f-exp.y: Define 'KIND' token.
14288 (exp): New pattern for KIND expressions.
14289 (ptype): Handle types with a kind extension.
14290 (direct_abs_decl): Extend to spot kind extensions.
14291 (f77_keywords): Add 'kind' to the list.
14292 (push_kind_type): New function.
14293 (convert_to_kind_type): New function.
14294 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14295 * parse.c (operator_length_standard): Likewise.
14296 * parser-defs.h (enum type_pieces): Add tp_kind.
14297 * std-operator.def: Add UNOP_KIND.
14298
14299 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14300
14301 * f-exp.y (f_parse): Set yydebug.
14302
14303 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14304
14305 * f-lang.c (evaluate_subexp_f): New function.
14306 (exp_descriptor_f): New global.
14307 (f_language_defn): Use exp_descriptor_f instead of
14308 exp_descriptor_standard.
14309
14310 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14311
14312 * f-exp.y (struct token): Add comments.
14313 (dot_ops): Remove uppercase versions and the end marker.
14314 (f77_keywords): Likewise.
14315 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14316 entries in the dot_ops array are case insensitive, and use
14317 strncasecmp to compare strings. Also some whitespace cleanup in
14318 this area. Similar for the f77_keywords array, except entries in
14319 this list might be case sensitive.
14320
14321 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14322
14323 * f-exp.y (struct f77_boolean_val): Add comments.
14324 (boolean_values): Remove uppercase versions, and end marker.
14325 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14326 and use strncasecmp to achieve case insensitivity. Additionally,
14327 perform whitespace cleanup around this code.
14328
14329 2019-03-06 Tom Tromey <tromey@adacore.com>
14330
14331 * remote-sim.c (gdbsim_target_open): Use result of
14332 gdb_argv::release.
14333
14334 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14335 Dirk Schubert <dirk.schubert@arm.com>
14336 Chris January <chris.january@arm.com>
14337
14338 * eval.c (evaluate_subexp_standard): Call Fortran argument
14339 wrapping logic.
14340 * f-lang.c (struct value): A value which can be passed into a
14341 Fortran function call.
14342 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14343 where appropriate.
14344 (struct type): Value ready for a Fortran function call.
14345 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14346 is needed.
14347 * f-lang.h (fortran_argument_convert): Declaration.
14348 (fortran_preserve_arg_pointer): Declaration.
14349 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14350
14351 2019-03-05 Tom Tromey <tromey@adacore.com>
14352
14353 * python/py-prettyprint.c (print_string_repr): Remove #if.
14354 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14355
14356 2019-03-05 Tom Tromey <tromey@adacore.com>
14357
14358 * target.c (the_dummy_target): Move later. Change type to
14359 "dummy_target".
14360 (initialize_targets): Don't initialize the_dummy_target.
14361
14362 2019-03-05 Tom Tromey <tromey@adacore.com>
14363
14364 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14365 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14366
14367 2019-03-05 Tom Tromey <tromey@adacore.com>
14368
14369 * windows-nat.c (windows_nat_target::attach)
14370 (windows_nat_target::detach): Don't call gdb_flush.
14371 * valprint.c (generic_val_print, val_print, val_print_string):
14372 Don't call gdb_flush.
14373 * utils.c (defaulted_query): Don't call gdb_flush.
14374 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14375 * target.c (target_announce_detach): Don't call gdb_flush.
14376 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14377 * remote.c (extended_remote_target::attach): Don't call
14378 gdb_flush.
14379 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14380 * printcmd.c (do_examine): Don't call gdb_flush.
14381 (info_display_command): Don't call gdb_flush.
14382 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14383 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14384 * memattr.c (info_mem_command): Don't call gdb_flush.
14385 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14386 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14387 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14388 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14389 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14390 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14391 (gnu_nat_target::detach): Don't call gdb_flush.
14392 * f-valprint.c (f_val_print): Don't call gdb_flush.
14393 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14394 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14395 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14396 gdb_flush.
14397 * c-valprint.c (c_val_print): Don't call gdb_flush.
14398 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14399
14400 2019-03-05 Tom Tromey <tromey@adacore.com>
14401
14402 * varobj.c (update_dynamic_varobj_children): Update.
14403 (install_default_visualizer): Use reset, not release.
14404 * value.c (set_internalvar): Update.
14405 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14406 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14407 ATTRIBUTE_UNUSED_RESULT.
14408
14409 2019-03-05 Tom Tromey <tromey@adacore.com>
14410
14411 * remote.c (class scoped_remote_fd) <release>: Add
14412 ATTRIBUTE_UNUSED_RESULT.
14413
14414 2019-03-05 Tom Tromey <tromey@adacore.com>
14415
14416 * macroexp.c (struct macro_buffer) <release>: Add
14417 ATTRIBUTE_UNUSED_RESULT.
14418
14419 2019-03-05 Tom Tromey <tromey@adacore.com>
14420
14421 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14422 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14423 ATTRIBUTE_UNUSED_RESULT.
14424
14425 2019-03-05 Tom Tromey <tromey@adacore.com>
14426
14427 * common/scoped_fd.h (class scoped_fd) <release>: Add
14428 ATTRIBUTE_UNUSED_RESULT.
14429
14430 2019-03-05 Tom Tromey <tromey@adacore.com>
14431
14432 * parser-defs.h (struct parser_state) <release>: Add
14433 ATTRIBUTE_UNUSED_RESULT.
14434
14435 2019-03-05 Tom Tromey <tromey@adacore.com>
14436
14437 * utils.h (class gdb_argv) <release>: Add
14438 ATTRIBUTE_UNUSED_RESULT.
14439 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14440
14441 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14442
14443 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14444 for-loop range, to avoid compiler warnings.
14445
14446 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14447 avoid compiler warnings about unused variables.
14448
14449 * NEWS: Mention end of support for native debugging on MS-Windows
14450 before XP.
14451
14452 PR gdb/24292
14453 * common/netstuff.c:
14454 * gdbserver/gdbreplay.c
14455 * gdbserver/remote-utils.c:
14456 * ser-tcp.c:
14457 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14458 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14459 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14460 'getaddrinfo' and 'freeaddrinfo' were not available before
14461 Windows XP, and mingw.org's MinGW headers by default define
14462 _WIN32_WINNT to 0x500.
14463
14464 2019-03-01 Gary Benson <gbenson@redhat.com>
14465
14466 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14467
14468 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14469 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14470
14471 PR gdb/8527
14472 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14473 set_sigint_trap, clear_sigint_trap.
14474
14475 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14476
14477 * target.c (target_detach): Clear the regcache and the
14478 frame cache.
14479
14480 2019-02-27 Pedro Alves <palves@redhat.com>
14481
14482 * utils.c (set_screen_size): When we cap the height/width sizes,
14483 tweak the corresponding command variable to show "unlimited":
14484
14485 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14486 Pedro Alves <palves@redhat.com>
14487
14488 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14489 before calling rl_set_screen_size.
14490
14491 2019-02-27 Tom Tromey <tromey@adacore.com>
14492
14493 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14494 define.
14495 * python/py-value.c: Remove Python 2.4 workaround.
14496 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14497 workaround.
14498 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14499 Python 2.4 workaround.
14500 * python/python-internal.h: Remove Python 2.4 comment.
14501 (Py_ssize_t): Don't define.
14502 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14503 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14504 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14505 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14506 * python/python.c (do_start_initialization): Remove Python 2.4
14507 workaround.
14508 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14509 (print_children): Remove Python 2.4 workaround.
14510 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14511 workaround.
14512 (CHARBUFFERPROC_NAME): Remove.
14513 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14514 Python 2.4 workaround.
14515
14516 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14517
14518 * NEWS: Note minimum Python version.
14519
14520 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14521
14522 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14523 code from these functions. Remove corresponding ifdefs. Use
14524 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14525 Remove gotos and target of gotos.
14526 (infpy_search_memory): Likewise.
14527
14528 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14529
14530 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14531 (hppa_gdbarch_init): Don't register deleted functions with
14532 gdbarch.
14533
14534 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14535
14536 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14537 (h8300_unwind_sp): Delete.
14538 (h8300_dummy_id): Delete.
14539 (h8300_gdbarch_init): Don't register deleted functions with
14540 gdbarch.
14541
14542 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14543
14544 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14545 (ft32_unwind_pc): Delete.
14546 (ft32_unwind_sp): Delete.
14547 (ft32_gdbarch_init): Don't register deleted functions with
14548 gdbarch.
14549
14550 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14551
14552 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14553 (frv_unwind_pc): Delete.
14554 (frv_unwind_sp): Delete.
14555 (frv_gdbarch_init): Don't register deleted functions with
14556 gdbarch.
14557
14558 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14559
14560 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14561 (riscv_unwind_pc): Delete.
14562 (riscv_unwind_sp): Delete.
14563 (riscv_gdbarch_init): Don't register deleted functions with
14564 gdbarch.
14565
14566 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14567
14568 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14569 (csky_unwind_pc): Delete.
14570 (csky_unwind_sp): Delete.
14571 (csky_gdbarch_init): Don't register deleted functions with
14572 gdbarch.
14573
14574 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14575
14576 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14577 (cris_unwind_pc): Delete.
14578 (cris_unwind_sp): Delete.
14579 (cris_gdbarch_init): Don't register deleted functions with
14580 gdbarch.
14581
14582 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14583
14584 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14585 (bfin_unwind_pc): Delete.
14586 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14587
14588 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14589
14590 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14591 (arm_unwind_pc): Delete.
14592 (arm_unwind_sp): Delete.
14593 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14594
14595 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14596
14597 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14598 (arc_unwind_pc): Delete.
14599 (arc_unwind_sp): Delete.
14600 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14601
14602 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14603
14604 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14605 (alpha_unwind_pc): Delete.
14606 (alpha_gdbarch_init): Don't register deleted functions with
14607 gdbarch.
14608
14609 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14610
14611 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14612 (aarch64_unwind_pc): Delete.
14613 (aarch64_unwind_sp): Delete.
14614 (aarch64_gdbarch_init): Don't register deleted functions with
14615 gdbarch.
14616
14617 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14618
14619 * gdbtypes.c (type_align): Don't consider static members when
14620 computing structure alignment.
14621
14622 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14623
14624 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14625 return 0 for other types.
14626 * arch-utils.c (default_type_align): Always return 0.
14627 * gdbarch.h: Regenerate.
14628 * gdbarch.sh (type_align): Extend comment.
14629 * gdbtypes.c (type_align): Add additional comments, always call
14630 gdbarch_type_align before applying the default rules.
14631 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14632 generic code will then apply a suitable default.
14633 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14634 types, return 0 for other types.
14635
14636 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14637
14638 * NEWS: Create a new section for the next release branch.
14639 Rename the section of the current branch, now that it has
14640 been cut.
14641
14642 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14643
14644 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14645 * version.in: Bump version to 8.3.50.DATE-git.
14646
14647 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14648
14649 * aix-thread.c (ptid_cmp): Remove unused variable.
14650 (get_signaled_thread): Likewise.
14651 (store_regs_user_thread): Likewise.
14652 (store_regs_kernel_thread): Likewise.
14653 (fetch_regs_kernel_thread): Remove shadowed variable.
14654
14655 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14656
14657 * features/riscv/32bit-cpu.xml: Add register numbers.
14658 * features/riscv/32bit-fpu.c: Regenerate.
14659 * features/riscv/32bit-fpu.xml: Add register numbers.
14660 * features/riscv/64bit-cpu.xml: Add register numbers.
14661 * features/riscv/64bit-fpu.c: Regenerate.
14662 * features/riscv/64bit-fpu.xml: Add register numbers.
14663
14664 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14665
14666 * NEWS: Mention two argument form of gdb.Value constructor.
14667 * python/py-value.c (convert_buffer_and_type_to_value): New
14668 function.
14669 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14670 Add support for handling an optional second argument. Call
14671 convert_buffer_and_type_to_value as appropriate.
14672 * python/python-internal.h (Py_buffer_deleter): New struct.
14673 (Py_buffer_up): New typedef.
14674
14675 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14676
14677 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14678 instead of releasing ownership.
14679
14680 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14681
14682 * dwarf2read.c (open_and_init_dwp_file): Call
14683 elf_numsections instead of bfd_count_sections to initialize
14684 dwp_file->num_sections.
14685
14686 2019-02-25 Tom Tromey <tromey@adacore.com>
14687
14688 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14689
14690 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14691
14692 * gcore.in: Add '--readnever' option when invoking GDB.
14693
14694 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14695
14696 * MAINTAINERS: Update my email address.
14697
14698 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14699
14700 * build-id.c (build_id_to_debug_bfd_1): New function.
14701 (build_id_to_debug_bfd): Look for separate debug file in
14702 sysroot.
14703
14704 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14705
14706 * gdbarch.sh: Update the copyright year range that is placed into
14707 generated files.
14708
14709 2019-02-22 Keith Seitz <keiths@redhat.com>
14710
14711 PR symtab/23853
14712 * linespec.c (create_sals_line_offset): Search for the default
14713 symtab's filename instead of its fullname.
14714
14715 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14716
14717 * NEWS: Update style defaults.
14718
14719 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14720
14721 * main.c (captured_main_1): Disable styling in batch mode.
14722
14723 2019-02-20 Tom Tromey <tom@tromey.com>
14724
14725 * symtab.c (symtab_symbol_info): Fix typos.
14726
14727 2019-02-20 Tom Tromey <tromey@adacore.com>
14728
14729 * findcmd.c (_initialize_mem_search): Use upper case for
14730 metasyntactic variables.
14731
14732 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14733
14734 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14735 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14736
14737 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14738
14739 * top.h (source_file_name): Change to std::string.
14740 * top.c (source_file_name): Likewise.
14741 (command_line_input): Adjust.
14742 * cli/cli-script.c (script_from_file): Adjust.
14743
14744 2019-02-19 Tom Tromey <tromey@adacore.com>
14745
14746 * ravenscar-thread.c
14747 (ravenscar_thread_target::update_thread_list): Don't call
14748 ada_build_task_list.
14749 * ada-lang.h (ada_build_task_list): Don't declare.
14750 * ada-tasks.c (struct ada_tasks_inferior_data)
14751 <task_list_valid_p>: Now bool.
14752 (read_known_tasks, ada_task_list_changed)
14753 (ada_tasks_invalidate_inferior_data): Update.
14754 (read_known_tasks_array): Return bool.
14755 (read_known_tasks_list): Likewise.
14756 (read_known_tasks): Return void.
14757 (ada_build_task_list): Now static.
14758
14759 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14760
14761 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14762 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14763
14764 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14765
14766 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14767 variant for ada_tasks_pspace_data_handle and
14768 ada_tasks_inferior_data_handle.
14769 (ada_tasks_pspace_data_cleanup): New function.
14770 (ada_tasks_inferior_data_cleanup): New function.
14771
14772 2019-02-17 Tom Tromey <tom@tromey.com>
14773
14774 * macrotab.h (macro_source_fullname): Return a std::string.
14775 * macrotab.c (macro_include, check_for_redefinition)
14776 (macro_undef, macro_lookup_definition, foreach_macro)
14777 (foreach_macro_in_scope): Update.
14778 (macro_source_fullname): Return a std::string.
14779 * macrocmd.c (show_pp_source_pos): Update.
14780
14781 2019-02-17 Tom Tromey <tom@tromey.com>
14782
14783 * macrocmd.c (show_pp_source_pos): Style the file names.
14784
14785 2019-02-17 Tom Tromey <tom@tromey.com>
14786
14787 PR tui/24197:
14788 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14789
14790 2019-02-17 Tom Tromey <tom@tromey.com>
14791
14792 * ada-lang.c (user_select_syms): Use filtered printing.
14793 * utils.c (wrap_style): New global.
14794 (desired_style): Remove.
14795 (emit_style_escape): Add stream parameter.
14796 (set_output_style, reset_terminal_style, prompt_for_continue):
14797 Update.
14798 (flush_wrap_buffer): Only flush gdb_stdout.
14799 (wrap_here): Set wrap_style.
14800 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14801 treat escape sequences as a character. Change when wrap buffer is
14802 flushed.
14803 (fputs_styled): Do not set the output style when the default is
14804 requested.
14805 * ui-style.h (struct ui_file_style) <is_default>: New method.
14806 * source.c (print_source_lines_base): Emit escape sequences in one
14807 piece.
14808
14809 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14810
14811 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14812 integers and enumeration types.
14813
14814 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14815
14816 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14817 instead of lookup_symbol_in_language
14818 (do_exact_match): New function.
14819 (ada_get_symbol_name_matcher): Return do_exact_match when
14820 doing a verbatim match.
14821
14822 2019-02-15 Tom Tromey <tromey@adacore.com>
14823
14824 * ravenscar-thread.c (ravenscar_thread_target::resume)
14825 (ravenscar_thread_target::wait): Special case wildcard requests.
14826
14827 2019-02-15 Tom Tromey <tromey@adacore.com>
14828
14829 * ravenscar-thread.c (base_ptid): Remove.
14830 (struct ravenscar_thread_target) <close>: New method.
14831 <m_base_ptid>: New member.
14832 <update_inferior_ptid, active_task, task_is_currently_active,
14833 runtime_initialized>: Declare methods.
14834 <ravenscar_thread_target>: Add constructor.
14835 (ravenscar_thread_target::task_is_currently_active)
14836 (ravenscar_thread_target::update_inferior_ptid)
14837 (ravenscar_runtime_initialized): Rename. Now methods.
14838 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14839 (ravenscar_thread_target::update_thread_list): Update.
14840 (ravenscar_thread_target::active_task): Now method.
14841 (ravenscar_thread_target::store_registers)
14842 (ravenscar_thread_target::prepare_to_store)
14843 (ravenscar_thread_target::prepare_to_store)
14844 (ravenscar_thread_target::mourn_inferior): Update.
14845 (ravenscar_inferior_created): Use "new" to create target.
14846 (ravenscar_thread_target::get_ada_task_ptid): Update.
14847 (_initialize_ravenscar): Don't initialize base_ptid.
14848 (ravenscar_ops): Remove global.
14849
14850 2019-02-15 Tom Tromey <tromey@adacore.com>
14851
14852 * target.h (push_target): Declare new overload.
14853 * target.c (push_target): New overload, taking an rvalue reference.
14854 * remote.c (remote_target::open_1): Use push_target overload.
14855 * corelow.c (core_target_open): Use push_target overload.
14856
14857 2019-02-15 Tom Tromey <tromey@adacore.com>
14858
14859 * ravenscar-thread.c (is_ravenscar_task)
14860 (ravenscar_task_is_currently_active): Return bool.
14861 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14862 (_initialize_ravenscar): Remove "(void)".
14863 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14864 Return bool.
14865
14866 2019-02-15 Tom Tromey <tromey@adacore.com>
14867
14868 * ravenscar-thread.c (ravenscar_runtime_initializer)
14869 (has_ravenscar_runtime, get_running_thread_id)
14870 (ravenscar_thread_target::resume): Fix indentation.
14871
14872 2019-02-15 Tom Tromey <tromey@adacore.com>
14873
14874 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14875 from ravenscar_arch_ops.
14876 (sparc_ravenscar_ops::fetch_registers)
14877 (sparc_ravenscar_ops::store_registers): Now methods.
14878 (sparc_ravenscar_prepare_to_store): Remove.
14879 (sparc_ravenscar_ops): Redefine.
14880 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14881 methods and destructor. Remove members.
14882 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14883 (ravenscar_thread_target::store_registers)
14884 (ravenscar_thread_target::prepare_to_store): Update.
14885 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14886 Remove.
14887 (struct ppc_ravenscar_powerpc_ops): Derive from
14888 ravenscar_arch_ops.
14889 (ppc_ravenscar_powerpc_ops::fetch_registers)
14890 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14891 (ppc_ravenscar_powerpc_ops): Redefine.
14892 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14893 (ppc_ravenscar_e500_ops::fetch_registers)
14894 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14895 (ppc_ravenscar_e500_ops): Redefine.
14896 * aarch64-ravenscar-thread.c
14897 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14898 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14899 (aarch64_ravenscar_fetch_registers)
14900 (aarch64_ravenscar_store_registers): Now methods.
14901 (aarch64_ravenscar_ops): Redefine.
14902
14903 2019-02-15 Tom Tromey <tromey@adacore.com>
14904
14905 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14906 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14907 (ravenscar_thread_target::stopped_by_watchpoint)
14908 (ravenscar_thread_target::stopped_data_address)
14909 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14910
14911 2019-02-15 Tom Tromey <tromey@adacore.com>
14912
14913 * ravenscar-thread.c: Fix some typos.
14914
14915 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14916 Tom Tromey <tromey@adacore.com>
14917
14918 * ada-lang.c (ada_exception_sal): Change addr_string to a
14919 std::string.
14920 (create_ada_exception_catchpoint): Update.
14921
14922 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14923 Tom Tromey <tromey@adacore.com>
14924
14925 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14926 (bp_location_ops): Remove.
14927 (base_breakpoint_allocate_location): Update.
14928 (free_bp_location): Update.
14929 * ada-lang.c (class ada_catchpoint_location)
14930 <ada_catchpoint_location>: Remove ops parameter.
14931 (ada_catchpoint_location_dtor): Remove.
14932 (ada_catchpoint_location_ops): Remove.
14933 (allocate_location_exception): Update.
14934 * breakpoint.h (struct bp_location_ops): Remove.
14935 (class bp_location) <bp_location>: Remove bp_location_ops
14936 parameter.
14937 <~bp_location>: Add destructor.
14938 <ops>: Remove.
14939
14940 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14941 Pedro Alves <palves@redhat.com>
14942
14943 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14944 'PATH_MAX'.
14945
14946 2019-02-14 David Michael <fedora.dm0@gmail.com>
14947 Samuel Thibault <samuel.thibault@gnu.org>
14948 Thomas Schwinge <thomas@codesourcery.com>
14949
14950 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14951 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14952
14953 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14954
14955 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14956 (check_empty): Use "const char *".
14957
14958 * gnu-nat.c (gnu_nat_target::detach): Instead of
14959 'detach_inferior (pid)' call
14960 'detach_inferior (find_inferior_pid (pid))'.
14961
14962 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14963 'nat/fork-inferior.o'.
14964 * gnu-nat.c: #include "nat/fork-inferior.h".
14965
14966 * gnu-nat.c (gnu_nat_target::detach): Instead of
14967 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14968 * gnu-nat.h: #include "inf-child.h".
14969 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14970 'i386_gnu_nat_target::fetch_registers'.
14971 (gnu_store_registers): Rename/move to
14972 'i386_gnu_nat_target::store_registers'.
14973
14974 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14975 * gnu-nat.h (mach_thread_info): New function.
14976 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14977
14978 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14979
14980 2019-02-14 Frederic Konrad <konrad@adacore.com>
14981
14982 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14983
14984 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14985
14986 * windows-nat.c (windows_add_thread): Add new parameter
14987 "main_thread_p" with default value set to false. Update
14988 function documentation as well as all callers.
14989 (windows_delete_thread): Likewise.
14990 (fake_create_process): Update call to windows_add_thread.
14991 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14992 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14993 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14994 call to windows_delete_thread.
14995
14996 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14997
14998 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14999
15000 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15001
15002 * symfile.c (find_separate_debug_file): Use canonical path of
15003 sysroot with child_path instead of gdb_sysroot if it is valid.
15004
15005 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15006
15007 * symfile.c (find_separate_debug_file): Use child_path to
15008 determine if an object file is under a sysroot.
15009
15010 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15011
15012 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15013 unittests/child-path-selftests.c.
15014 * common/pathstuff.c (child_path): New function.
15015 * common/pathstuff.h (child_path): New prototype.
15016 * unittests/child-path-selftests.c: New file.
15017
15018 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15019
15020 * symfile.c (find_separate_debug_file): Look for separate debug
15021 files in debug directories under the sysroot.
15022
15023 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15024
15025 * symtab.h (struct minimal_symbol data_p): New const method.
15026 (struct minimal_symbol text_p): Likewise.
15027 * symtab.c (output_source_filename): Use file name style
15028 to print file name.
15029 (print_symbol_info): Likewise.
15030 (print_msymbol_info): Use address style to print addresses.
15031 Use function name style to print executable text symbols.
15032 (expand_symtab_containing_pc): Use data_p.
15033 (find_pc_sect_compunit_symtab): Likewise.
15034
15035 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15036
15037 * breakpoint.c (describe_other_breakpoints): Use address style
15038 to print addresses.
15039 (say_where): Likewise.
15040
15041 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15042
15043 * ada-typeprint.c (print_func_type): Print function name
15044 style to print function name.
15045 * c-typeprint.c (c_print_type_1): Likewise.
15046
15047 2019-02-11 Alan Hayward <alan.hayward@arm.com>
15048
15049 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15050 for execve.
15051
15052 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15053
15054 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15055 type_stack.
15056
15057 2019-02-10 Joel Brobecker <brobecker@adacore.com>
15058
15059 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15060 TYPE_CODE_REF types.
15061
15062 2019-02-08 Jim Wilson <jimw@sifive.com>
15063
15064 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15065 (riscv_linux_fregset): New.
15066 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15067
15068 2019-02-07 Tom Tromey <tom@tromey.com>
15069
15070 * thread.c (thread_cancel_execution_command): Update.
15071 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15072 methods.
15073 (struct thread_fsm_ops): Remove.
15074 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15075 (thread_fsm_should_stop, thread_fsm_return_value)
15076 (thread_fsm_set_finished, thread_fsm_finished_p)
15077 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15078 Don't declare.
15079 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15080 * infrun.c (clear_proceed_status_thread)
15081 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15082 (print_stop_event): Update.
15083 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15084 Add constructor.
15085 (step_command_fsm_ops): Remove.
15086 (new_step_command_fsm): Remove.
15087 (step_1): Update.
15088 (step_command_fsm::should_stop): Rename from
15089 step_command_fsm_should_stop.
15090 (step_command_fsm::clean_up): Rename from
15091 step_command_fsm_clean_up.
15092 (step_command_fsm::do_async_reply_reason): Rename from
15093 step_command_fsm_async_reply_reason.
15094 (struct until_next_fsm): Inherit from thread_fsm. Add
15095 constructor.
15096 (until_next_fsm_ops): Remove.
15097 (new_until_next_fsm): Remove.
15098 (until_next_fsm::should_stop): Rename from
15099 until_next_fsm_should_stop.
15100 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15101 (until_next_fsm::do_async_reply_reason): Rename from
15102 until_next_fsm_async_reply_reason.
15103 (struct finish_command_fsm): Inherit from thread_fsm. Add
15104 constructor. Change type of breakpoint.
15105 (finish_command_fsm_ops): Remove.
15106 (new_finish_command_fsm): Remove.
15107 (finish_command_fsm::should_stop): Rename from
15108 finish_command_fsm_should_stop.
15109 (finish_command_fsm::clean_up): Rename from
15110 finish_command_fsm_clean_up.
15111 (finish_command_fsm::return_value): Rename from
15112 finish_command_fsm_return_value.
15113 (finish_command_fsm::do_async_reply_reason): Rename from
15114 finish_command_fsm_async_reply_reason.
15115 (finish_command): Update.
15116 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15117 Add constructor.
15118 (call_thread_fsm_ops): Remove.
15119 (call_thread_fsm::call_thread_fsm): Rename from
15120 new_call_thread_fsm.
15121 (call_thread_fsm::should_stop): Rename from
15122 call_thread_fsm_should_stop.
15123 (call_thread_fsm::should_notify_stop): Rename from
15124 call_thread_fsm_should_notify_stop.
15125 (run_inferior_call, call_function_by_hand_dummy): Update.
15126 * cli/cli-interp.c (should_print_stop_to_console): Update.
15127 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15128 Add constructor. Change type of location_breakpoint,
15129 caller_breakpoint.
15130 (until_break_fsm_ops): Remove.
15131 (new_until_break_fsm): Remove.
15132 (until_break_fsm::should_stop): Rename from
15133 until_break_fsm_should_stop.
15134 (until_break_fsm::clean_up): Rename from
15135 until_break_fsm_clean_up.
15136 (until_break_fsm::do_async_reply_reason): Rename from
15137 until_break_fsm_async_reply_reason.
15138 (until_break_command): Update.
15139 * thread-fsm.c: Remove.
15140 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15141
15142 2019-02-07 Tom Tromey <tom@tromey.com>
15143
15144 * yy-remap.h: Add include guard.
15145 * xtensa-tdep.h: Add include guard.
15146 * xcoffread.h: Rename include guard.
15147 * varobj-iter.h: Add include guard.
15148 * tui/tui.h: Rename include guard.
15149 * tui/tui-winsource.h: Rename include guard.
15150 * tui/tui-wingeneral.h: Rename include guard.
15151 * tui/tui-windata.h: Rename include guard.
15152 * tui/tui-win.h: Rename include guard.
15153 * tui/tui-stack.h: Rename include guard.
15154 * tui/tui-source.h: Rename include guard.
15155 * tui/tui-regs.h: Rename include guard.
15156 * tui/tui-out.h: Rename include guard.
15157 * tui/tui-layout.h: Rename include guard.
15158 * tui/tui-io.h: Rename include guard.
15159 * tui/tui-hooks.h: Rename include guard.
15160 * tui/tui-file.h: Rename include guard.
15161 * tui/tui-disasm.h: Rename include guard.
15162 * tui/tui-data.h: Rename include guard.
15163 * tui/tui-command.h: Rename include guard.
15164 * tic6x-tdep.h: Add include guard.
15165 * target/waitstatus.h: Rename include guard.
15166 * target/wait.h: Rename include guard.
15167 * target/target.h: Rename include guard.
15168 * target/resume.h: Rename include guard.
15169 * target-float.h: Rename include guard.
15170 * stabsread.h: Add include guard.
15171 * rs6000-tdep.h: Add include guard.
15172 * riscv-fbsd-tdep.h: Add include guard.
15173 * regformats/regdef.h: Rename include guard.
15174 * record.h: Rename include guard.
15175 * python/python.h: Rename include guard.
15176 * python/python-internal.h: Rename include guard.
15177 * python/py-stopevent.h: Rename include guard.
15178 * python/py-ref.h: Rename include guard.
15179 * python/py-record.h: Rename include guard.
15180 * python/py-record-full.h: Rename include guard.
15181 * python/py-record-btrace.h: Rename include guard.
15182 * python/py-instruction.h: Rename include guard.
15183 * python/py-events.h: Rename include guard.
15184 * python/py-event.h: Rename include guard.
15185 * procfs.h: Add include guard.
15186 * proc-utils.h: Add include guard.
15187 * p-lang.h: Add include guard.
15188 * or1k-tdep.h: Rename include guard.
15189 * observable.h: Rename include guard.
15190 * nto-tdep.h: Rename include guard.
15191 * nat/x86-linux.h: Rename include guard.
15192 * nat/x86-linux-dregs.h: Rename include guard.
15193 * nat/x86-gcc-cpuid.h: Add include guard.
15194 * nat/x86-dregs.h: Rename include guard.
15195 * nat/x86-cpuid.h: Rename include guard.
15196 * nat/ppc-linux.h: Rename include guard.
15197 * nat/mips-linux-watch.h: Rename include guard.
15198 * nat/linux-waitpid.h: Rename include guard.
15199 * nat/linux-ptrace.h: Rename include guard.
15200 * nat/linux-procfs.h: Rename include guard.
15201 * nat/linux-osdata.h: Rename include guard.
15202 * nat/linux-nat.h: Rename include guard.
15203 * nat/linux-namespaces.h: Rename include guard.
15204 * nat/linux-btrace.h: Rename include guard.
15205 * nat/glibc_thread_db.h: Rename include guard.
15206 * nat/gdb_thread_db.h: Rename include guard.
15207 * nat/gdb_ptrace.h: Rename include guard.
15208 * nat/fork-inferior.h: Rename include guard.
15209 * nat/amd64-linux-siginfo.h: Rename include guard.
15210 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15211 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15212 * nat/aarch64-linux.h: Rename include guard.
15213 * nat/aarch64-linux-hw-point.h: Rename include guard.
15214 * mn10300-tdep.h: Add include guard.
15215 * mips-linux-tdep.h: Add include guard.
15216 * mi/mi-parse.h: Rename include guard.
15217 * mi/mi-out.h: Rename include guard.
15218 * mi/mi-main.h: Rename include guard.
15219 * mi/mi-interp.h: Rename include guard.
15220 * mi/mi-getopt.h: Rename include guard.
15221 * mi/mi-console.h: Rename include guard.
15222 * mi/mi-common.h: Rename include guard.
15223 * mi/mi-cmds.h: Rename include guard.
15224 * mi/mi-cmd-break.h: Rename include guard.
15225 * m2-lang.h: Add include guard.
15226 * location.h: Rename include guard.
15227 * linux-record.h: Rename include guard.
15228 * linux-nat.h: Add include guard.
15229 * linux-fork.h: Add include guard.
15230 * i386-darwin-tdep.h: Rename include guard.
15231 * hppa-linux-offsets.h: Add include guard.
15232 * guile/guile.h: Rename include guard.
15233 * guile/guile-internal.h: Rename include guard.
15234 * gnu-nat.h: Rename include guard.
15235 * gdb-stabs.h: Rename include guard.
15236 * frv-tdep.h: Add include guard.
15237 * f-lang.h: Add include guard.
15238 * event-loop.h: Add include guard.
15239 * darwin-nat.h: Rename include guard.
15240 * cp-abi.h: Rename include guard.
15241 * config/sparc/nm-sol2.h: Rename include guard.
15242 * config/nm-nto.h: Rename include guard.
15243 * config/nm-linux.h: Add include guard.
15244 * config/i386/nm-i386gnu.h: Rename include guard.
15245 * config/djgpp/nl_types.h: Rename include guard.
15246 * config/djgpp/langinfo.h: Rename include guard.
15247 * compile/gcc-cp-plugin.h: Add include guard.
15248 * compile/gcc-c-plugin.h: Add include guard.
15249 * compile/compile.h: Rename include guard.
15250 * compile/compile-object-run.h: Rename include guard.
15251 * compile/compile-object-load.h: Rename include guard.
15252 * compile/compile-internal.h: Rename include guard.
15253 * compile/compile-cplus.h: Rename include guard.
15254 * compile/compile-c.h: Rename include guard.
15255 * common/xml-utils.h: Rename include guard.
15256 * common/x86-xstate.h: Rename include guard.
15257 * common/version.h: Rename include guard.
15258 * common/vec.h: Rename include guard.
15259 * common/tdesc.h: Rename include guard.
15260 * common/selftest.h: Rename include guard.
15261 * common/scoped_restore.h: Rename include guard.
15262 * common/scoped_mmap.h: Rename include guard.
15263 * common/scoped_fd.h: Rename include guard.
15264 * common/safe-iterator.h: Rename include guard.
15265 * common/run-time-clock.h: Rename include guard.
15266 * common/refcounted-object.h: Rename include guard.
15267 * common/queue.h: Rename include guard.
15268 * common/ptid.h: Rename include guard.
15269 * common/print-utils.h: Rename include guard.
15270 * common/preprocessor.h: Rename include guard.
15271 * common/pathstuff.h: Rename include guard.
15272 * common/observable.h: Rename include guard.
15273 * common/netstuff.h: Rename include guard.
15274 * common/job-control.h: Rename include guard.
15275 * common/host-defs.h: Rename include guard.
15276 * common/gdb_wait.h: Rename include guard.
15277 * common/gdb_vecs.h: Rename include guard.
15278 * common/gdb_unlinker.h: Rename include guard.
15279 * common/gdb_unique_ptr.h: Rename include guard.
15280 * common/gdb_tilde_expand.h: Rename include guard.
15281 * common/gdb_sys_time.h: Rename include guard.
15282 * common/gdb_string_view.h: Rename include guard.
15283 * common/gdb_splay_tree.h: Rename include guard.
15284 * common/gdb_setjmp.h: Rename include guard.
15285 * common/gdb_ref_ptr.h: Rename include guard.
15286 * common/gdb_optional.h: Rename include guard.
15287 * common/gdb_locale.h: Rename include guard.
15288 * common/gdb_assert.h: Rename include guard.
15289 * common/filtered-iterator.h: Rename include guard.
15290 * common/filestuff.h: Rename include guard.
15291 * common/fileio.h: Rename include guard.
15292 * common/environ.h: Rename include guard.
15293 * common/common-utils.h: Rename include guard.
15294 * common/common-types.h: Rename include guard.
15295 * common/common-regcache.h: Rename include guard.
15296 * common/common-inferior.h: Rename include guard.
15297 * common/common-gdbthread.h: Rename include guard.
15298 * common/common-exceptions.h: Rename include guard.
15299 * common/common-defs.h: Rename include guard.
15300 * common/common-debug.h: Rename include guard.
15301 * common/cleanups.h: Rename include guard.
15302 * common/buffer.h: Rename include guard.
15303 * common/btrace-common.h: Rename include guard.
15304 * common/break-common.h: Rename include guard.
15305 * cli/cli-utils.h: Rename include guard.
15306 * cli/cli-style.h: Rename include guard.
15307 * cli/cli-setshow.h: Rename include guard.
15308 * cli/cli-script.h: Rename include guard.
15309 * cli/cli-interp.h: Rename include guard.
15310 * cli/cli-decode.h: Rename include guard.
15311 * cli/cli-cmds.h: Rename include guard.
15312 * charset-list.h: Add include guard.
15313 * buildsym-legacy.h: Rename include guard.
15314 * bfin-tdep.h: Add include guard.
15315 * ax.h: Rename include guard.
15316 * arm-linux-tdep.h: Add include guard.
15317 * arm-fbsd-tdep.h: Add include guard.
15318 * arch/xtensa.h: Rename include guard.
15319 * arch/tic6x.h: Add include guard.
15320 * arch/i386.h: Add include guard.
15321 * arch/arm.h: Rename include guard.
15322 * arch/arm-linux.h: Rename include guard.
15323 * arch/arm-get-next-pcs.h: Rename include guard.
15324 * arch/amd64.h: Add include guard.
15325 * arch/aarch64-insn.h: Rename include guard.
15326 * arch-utils.h: Rename include guard.
15327 * annotate.h: Add include guard.
15328 * amd64-darwin-tdep.h: Rename include guard.
15329 * aarch64-linux-tdep.h: Add include guard.
15330 * aarch64-fbsd-tdep.h: Add include guard.
15331 * aarch32-linux-nat.h: Add include guard.
15332
15333 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15334
15335 * macrotab.c (macro_define_internal): New function that
15336 factorizes macro_define_object_internal and macro_define_function
15337 code.
15338 (macro_define_object_internal): Use macro_define_internal.
15339 (macro_define_function): Likewise.
15340
15341 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15342
15343 * macrocmd.c (extract_identifier): Return
15344 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15345 callers.
15346
15347 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15348
15349 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15350
15351 2019-02-05 Tom Tromey <tom@tromey.com>
15352
15353 * target.c (target_stack::unpush): Move assertion earlier.
15354
15355 2019-01-30 Tom Tromey <tom@tromey.com>
15356
15357 PR python/23615:
15358 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15359 (gdbpy_parse_and_eval): Likewise.
15360 * python/python-internal.h (gdbpy_allow_threads): New class.
15361
15362 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15363
15364 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15365 (aarch64_fbsd_fpregmap): Move earlier.
15366 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15367 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15368 instead of individual calls to trad_frame_set_reg_addr.
15369 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15370 earlier.
15371 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15372 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15373 instead of individual calls to trad_frame_set_reg_addr.
15374
15375 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15376
15377 * CONTRIBUTE: Replace contribution list with wiki link.
15378
15379 2019-01-25 Tom Tromey <tom@tromey.com>
15380
15381 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15382
15383 2019-01-25 Tom Tromey <tom@tromey.com>
15384
15385 * xtensa-linux-nat.c: Fix common/ includes.
15386 * xml-support.h: Fix common/ includes.
15387 * xml-support.c: Fix common/ includes.
15388 * x86-linux-nat.c: Fix common/ includes.
15389 * windows-nat.c: Fix common/ includes.
15390 * varobj.h: Fix common/ includes.
15391 * varobj.c: Fix common/ includes.
15392 * value.c: Fix common/ includes.
15393 * valops.c: Fix common/ includes.
15394 * utils.c: Fix common/ includes.
15395 * unittests/xml-utils-selftests.c: Fix common/ includes.
15396 * unittests/utils-selftests.c: Fix common/ includes.
15397 * unittests/unpack-selftests.c: Fix common/ includes.
15398 * unittests/tracepoint-selftests.c: Fix common/ includes.
15399 * unittests/style-selftests.c: Fix common/ includes.
15400 * unittests/string_view-selftests.c: Fix common/ includes.
15401 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15402 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15403 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15404 * unittests/rsp-low-selftests.c: Fix common/ includes.
15405 * unittests/parse-connection-spec-selftests.c: Fix common/
15406 includes.
15407 * unittests/optional-selftests.c: Fix common/ includes.
15408 * unittests/offset-type-selftests.c: Fix common/ includes.
15409 * unittests/observable-selftests.c: Fix common/ includes.
15410 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15411 * unittests/memrange-selftests.c: Fix common/ includes.
15412 * unittests/memory-map-selftests.c: Fix common/ includes.
15413 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15414 * unittests/function-view-selftests.c: Fix common/ includes.
15415 * unittests/environ-selftests.c: Fix common/ includes.
15416 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15417 * unittests/common-utils-selftests.c: Fix common/ includes.
15418 * unittests/cli-utils-selftests.c: Fix common/ includes.
15419 * unittests/array-view-selftests.c: Fix common/ includes.
15420 * ui-file.c: Fix common/ includes.
15421 * tui/tui-io.c: Fix common/ includes.
15422 * tracepoint.h: Fix common/ includes.
15423 * tracepoint.c: Fix common/ includes.
15424 * tracefile-tfile.c: Fix common/ includes.
15425 * top.h: Fix common/ includes.
15426 * top.c: Fix common/ includes.
15427 * thread.c: Fix common/ includes.
15428 * target/waitstatus.h: Fix common/ includes.
15429 * target/waitstatus.c: Fix common/ includes.
15430 * target.h: Fix common/ includes.
15431 * target.c: Fix common/ includes.
15432 * target-memory.c: Fix common/ includes.
15433 * target-descriptions.c: Fix common/ includes.
15434 * symtab.h: Fix common/ includes.
15435 * symfile.c: Fix common/ includes.
15436 * stap-probe.c: Fix common/ includes.
15437 * spu-linux-nat.c: Fix common/ includes.
15438 * sparc-nat.c: Fix common/ includes.
15439 * source.c: Fix common/ includes.
15440 * solib.c: Fix common/ includes.
15441 * solib-target.c: Fix common/ includes.
15442 * ser-unix.c: Fix common/ includes.
15443 * ser-tcp.c: Fix common/ includes.
15444 * ser-pipe.c: Fix common/ includes.
15445 * ser-base.c: Fix common/ includes.
15446 * selftest-arch.c: Fix common/ includes.
15447 * s12z-tdep.c: Fix common/ includes.
15448 * rust-exp.y: Fix common/ includes.
15449 * rs6000-aix-tdep.c: Fix common/ includes.
15450 * riscv-tdep.c: Fix common/ includes.
15451 * remote.c: Fix common/ includes.
15452 * remote-notif.h: Fix common/ includes.
15453 * remote-fileio.h: Fix common/ includes.
15454 * remote-fileio.c: Fix common/ includes.
15455 * regcache.h: Fix common/ includes.
15456 * regcache.c: Fix common/ includes.
15457 * record-btrace.c: Fix common/ includes.
15458 * python/python.c: Fix common/ includes.
15459 * python/py-type.c: Fix common/ includes.
15460 * python/py-inferior.c: Fix common/ includes.
15461 * progspace.h: Fix common/ includes.
15462 * producer.c: Fix common/ includes.
15463 * procfs.c: Fix common/ includes.
15464 * proc-api.c: Fix common/ includes.
15465 * printcmd.c: Fix common/ includes.
15466 * ppc-linux-nat.c: Fix common/ includes.
15467 * parser-defs.h: Fix common/ includes.
15468 * osdata.c: Fix common/ includes.
15469 * obsd-nat.c: Fix common/ includes.
15470 * nat/x86-linux.c: Fix common/ includes.
15471 * nat/x86-linux-dregs.c: Fix common/ includes.
15472 * nat/x86-dregs.h: Fix common/ includes.
15473 * nat/x86-dregs.c: Fix common/ includes.
15474 * nat/ppc-linux.c: Fix common/ includes.
15475 * nat/mips-linux-watch.h: Fix common/ includes.
15476 * nat/mips-linux-watch.c: Fix common/ includes.
15477 * nat/linux-waitpid.c: Fix common/ includes.
15478 * nat/linux-ptrace.h: Fix common/ includes.
15479 * nat/linux-ptrace.c: Fix common/ includes.
15480 * nat/linux-procfs.c: Fix common/ includes.
15481 * nat/linux-personality.c: Fix common/ includes.
15482 * nat/linux-osdata.c: Fix common/ includes.
15483 * nat/linux-namespaces.c: Fix common/ includes.
15484 * nat/linux-btrace.h: Fix common/ includes.
15485 * nat/linux-btrace.c: Fix common/ includes.
15486 * nat/fork-inferior.c: Fix common/ includes.
15487 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15488 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15489 * nat/aarch64-linux.c: Fix common/ includes.
15490 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15491 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15492 * namespace.h: Fix common/ includes.
15493 * mips-linux-tdep.c: Fix common/ includes.
15494 * minsyms.c: Fix common/ includes.
15495 * mi/mi-parse.h: Fix common/ includes.
15496 * mi/mi-main.c: Fix common/ includes.
15497 * mi/mi-cmd-env.c: Fix common/ includes.
15498 * memrange.h: Fix common/ includes.
15499 * memattr.c: Fix common/ includes.
15500 * maint.h: Fix common/ includes.
15501 * maint.c: Fix common/ includes.
15502 * main.c: Fix common/ includes.
15503 * machoread.c: Fix common/ includes.
15504 * location.c: Fix common/ includes.
15505 * linux-thread-db.c: Fix common/ includes.
15506 * linux-nat.c: Fix common/ includes.
15507 * linux-fork.c: Fix common/ includes.
15508 * inline-frame.c: Fix common/ includes.
15509 * infrun.c: Fix common/ includes.
15510 * inflow.c: Fix common/ includes.
15511 * inferior.h: Fix common/ includes.
15512 * inferior.c: Fix common/ includes.
15513 * infcmd.c: Fix common/ includes.
15514 * inf-ptrace.c: Fix common/ includes.
15515 * inf-child.c: Fix common/ includes.
15516 * ia64-linux-nat.c: Fix common/ includes.
15517 * i387-tdep.c: Fix common/ includes.
15518 * i386-tdep.c: Fix common/ includes.
15519 * i386-linux-tdep.c: Fix common/ includes.
15520 * i386-linux-nat.c: Fix common/ includes.
15521 * i386-go32-tdep.c: Fix common/ includes.
15522 * i386-fbsd-tdep.c: Fix common/ includes.
15523 * i386-fbsd-nat.c: Fix common/ includes.
15524 * guile/scm-type.c: Fix common/ includes.
15525 * guile/guile.c: Fix common/ includes.
15526 * go32-nat.c: Fix common/ includes.
15527 * gnu-nat.c: Fix common/ includes.
15528 * gdbthread.h: Fix common/ includes.
15529 * gdbarch-selftests.c: Fix common/ includes.
15530 * gdb_usleep.c: Fix common/ includes.
15531 * gdb_select.h: Fix common/ includes.
15532 * gdb_bfd.c: Fix common/ includes.
15533 * gcore.c: Fix common/ includes.
15534 * fork-child.c: Fix common/ includes.
15535 * findvar.c: Fix common/ includes.
15536 * fbsd-nat.c: Fix common/ includes.
15537 * event-top.c: Fix common/ includes.
15538 * event-loop.c: Fix common/ includes.
15539 * dwarf2read.c: Fix common/ includes.
15540 * dwarf2loc.c: Fix common/ includes.
15541 * dwarf2-frame.c: Fix common/ includes.
15542 * dwarf-index-cache.c: Fix common/ includes.
15543 * dtrace-probe.c: Fix common/ includes.
15544 * disasm-selftests.c: Fix common/ includes.
15545 * defs.h: Fix common/ includes.
15546 * csky-tdep.c: Fix common/ includes.
15547 * cp-valprint.c: Fix common/ includes.
15548 * cp-support.h: Fix common/ includes.
15549 * cp-support.c: Fix common/ includes.
15550 * corelow.c: Fix common/ includes.
15551 * completer.h: Fix common/ includes.
15552 * completer.c: Fix common/ includes.
15553 * compile/compile.c: Fix common/ includes.
15554 * compile/compile-loc2c.c: Fix common/ includes.
15555 * compile/compile-cplus-types.c: Fix common/ includes.
15556 * compile/compile-cplus-symbols.c: Fix common/ includes.
15557 * command.h: Fix common/ includes.
15558 * cli/cli-dump.c: Fix common/ includes.
15559 * cli/cli-cmds.c: Fix common/ includes.
15560 * charset.c: Fix common/ includes.
15561 * build-id.c: Fix common/ includes.
15562 * btrace.h: Fix common/ includes.
15563 * btrace.c: Fix common/ includes.
15564 * breakpoint.h: Fix common/ includes.
15565 * breakpoint.c: Fix common/ includes.
15566 * ax.h:
15567 (enum agent_op): Fix common/ includes.
15568 * ax-general.c (struct aop_map): Fix common/ includes.
15569 * ax-gdb.c: Fix common/ includes.
15570 * auxv.c: Fix common/ includes.
15571 * auto-load.c: Fix common/ includes.
15572 * arm-tdep.c: Fix common/ includes.
15573 * arch/riscv.c: Fix common/ includes.
15574 * arch/ppc-linux-common.c: Fix common/ includes.
15575 * arch/i386.c: Fix common/ includes.
15576 * arch/arm.c: Fix common/ includes.
15577 * arch/arm-linux.c: Fix common/ includes.
15578 * arch/arm-get-next-pcs.c: Fix common/ includes.
15579 * arch/amd64.c: Fix common/ includes.
15580 * arch/aarch64.c: Fix common/ includes.
15581 * arch/aarch64-insn.c: Fix common/ includes.
15582 * arch-utils.c: Fix common/ includes.
15583 * amd64-windows-tdep.c: Fix common/ includes.
15584 * amd64-tdep.c: Fix common/ includes.
15585 * amd64-sol2-tdep.c: Fix common/ includes.
15586 * amd64-obsd-tdep.c: Fix common/ includes.
15587 * amd64-nbsd-tdep.c: Fix common/ includes.
15588 * amd64-linux-tdep.c: Fix common/ includes.
15589 * amd64-linux-nat.c: Fix common/ includes.
15590 * amd64-fbsd-tdep.c: Fix common/ includes.
15591 * amd64-fbsd-nat.c: Fix common/ includes.
15592 * amd64-dicos-tdep.c: Fix common/ includes.
15593 * amd64-darwin-tdep.c: Fix common/ includes.
15594 * agent.c: Fix common/ includes.
15595 * ada-lang.h: Fix common/ includes.
15596 * ada-lang.c: Fix common/ includes.
15597 * aarch64-tdep.c: Fix common/ includes.
15598
15599 2019-01-25 Tom Tromey <tom@tromey.com>
15600
15601 * common/create-version.sh: Use common/version.h.
15602
15603 2019-01-24 Pedro Alves <palves@redhat.com>
15604
15605 * infrun.c (signal_stop, signal_print, signal_program)
15606 (signal_catch, signal_pass): Now arrays instead of pointers.
15607 (update_signals_program_target, do_target_resume)
15608 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15609 * linux-nat.c (linux_nat_target::pass_signals)
15610 (linux_nat_target::create_inferior, linux_nat_target::attach):
15611 Adjust.
15612 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15613 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15614 * procfs.c (procfs_target::pass_signals): Adjust.
15615 * record-full.c (record_full_target::resume): Adjust.
15616 * remote.c (remote_target::pass_signals)
15617 (remote_target::program_signals): Adjust.
15618 * target-debug.h (target_debug_print_signals): Now takes a
15619 gdb::array_view as parameter. Adjust.
15620 * target.h (target_ops) <pass_signals, program_signals>: Replace
15621 pointer and length parameters with gdb::array_view.
15622 (target_pass_signals, target_program_signals): Likewise.
15623 * target-delegates.c: Regenerate.
15624
15625 2019-01-24 Pedro Alves <palves@redhat.com>
15626
15627 * common/forward-scope-exit.h
15628 (forward_scope_exit::forward_scope_exit): Pass arguments to
15629 m_bind_function directly, instead of creating a std::bind and
15630 copying that.
15631
15632 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15633
15634 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15635 for static members.
15636 (pass_in_v_vfp_candidate): Likewise.
15637
15638 2019-01-23 Tom Tromey <tom@tromey.com>
15639 Pedro Alves <palves@redhat.com>
15640
15641 * regcache.c (class regcache_invalidator): Remove.
15642 (regcache::raw_write): Use make_scope_exit.
15643
15644 2019-01-23 Tom Tromey <tom@tromey.com>
15645
15646 * ui-out.h (class ui_out_emit_type): Update comment.
15647
15648 2019-01-23 Tom Tromey <tom@tromey.com>
15649
15650 * infrun.c (fetch_inferior_event): Update comment.
15651
15652 2019-01-23 Tom Tromey <tom@tromey.com>
15653 Pedro Alves <palves@redhat.com>
15654
15655 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15656 parameter.
15657 (fetch_inferior_event): Use SCOPE_EXIT.
15658
15659
15660 2019-01-23 Tom Tromey <tom@tromey.com>
15661 Pedro Alves <palves@redhat.com>
15662
15663 * infrun.c (disable_thread_events): Delete.
15664 (stop_all_threads): Use SCOPE_EXIT.
15665
15666 2019-01-23 Tom Tromey <tom@tromey.com>
15667 Pedro Alves <palves@redhat.com>
15668
15669 * symfile.c: Include forward-scope-exit.h.
15670 (clear_symtab_users_cleanup): Replace forward declaration with
15671 a FORWARD_SCOPE_EXIT.
15672 (syms_from_objfile_1): Use the forward_scope_exit and
15673 gdb::optional instead of cleanup_function.
15674 (reread_symbols): Use the forward_scope_exit instead of
15675 cleanup_function.
15676 (clear_symtab_users_cleanup): Remove function.
15677
15678 2019-01-23 Tom Tromey <tom@tromey.com>
15679 Pedro Alves <palves@redhat.com>
15680
15681 * linux-nat.c: Include scope-exit.h.
15682 (cleanup_target_stop): Remove.
15683 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15684 SCOPE_EXIT.
15685
15686 2019-01-23 Tom Tromey <tom@tromey.com>
15687 Pedro Alves <palves@redhat.com>
15688
15689 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15690 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15691
15692 2019-01-23 Tom Tromey <tom@tromey.com>
15693 Andrew Burgess <andrew.burgess@embecosm.com>
15694 Pedro Alves <palves@redhat.com>
15695
15696 * infrun.c (fetch_inferior_event): Use scope_exit.
15697 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15698 * top.c (execute_command): Use scope_exit.
15699 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15700 * utils.c (do_bpstat_clear_actions_cleanup)
15701 (make_bpstat_clear_actions_cleanup): Remove.
15702
15703 2019-01-23 Tom Tromey <tom@tromey.com>
15704 Pedro Alves <palves@redhat.com>
15705
15706 * infrun.c: Include "common/scope-exit.h"
15707 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15708 (wait_for_inferior): Use SCOPE_EXIT.
15709 (fetch_inferior_event): Use scope_exit.
15710
15711 2019-01-23 Tom Tromey <tom@tromey.com>
15712 Pedro Alves <palves@redhat.com>
15713
15714 * breakpoint.c (create_breakpoint): Remove cleanup.
15715
15716 2019-01-23 Tom Tromey <tom@tromey.com>
15717 Andrew Burgess <andrew.burgess@embecosm.com>
15718 Pedro Alves <palves@redhat.com>
15719
15720 2019-01-23 Pedro Alves <palves@redhat.com>
15721
15722 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15723
15724 2019-01-23 Pedro Alves <palves@redhat.com>
15725 Andrew Burgess <andrew.burgess@embecosm.com>
15726
15727 * gdbthread.h: Include "common/forward-scope-exit.h".
15728 (scoped_finish_thread_state): Redefine custom class in terms of
15729 forward_scope_exit.
15730
15731 2019-01-23 Pedro Alves <palves@redhat.com>
15732 Andrew Burgess <andrew.burgess@embecosm.com>
15733
15734 * common/forward-scope-exit.h: New file.
15735
15736 2019-01-23 Pedro Alves <palves@redhat.com>
15737 Andrew Burgess <andrew.burgess@embecosm.com>
15738 Tom Tromey <tom@tromey.com>
15739
15740 * common/scope-exit.h: New file.
15741
15742 2019-01-23 Pedro Alves <palves@redhat.com>
15743
15744 * common/preprocessor.h (ESC): Rename to ...
15745 (ESC_PARENS): ... this.
15746 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15747 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15748
15749 2019-01-23 Tom Tromey <tom@tromey.com>
15750
15751 * language.h (class scoped_switch_to_sym_language_if_auto):
15752 Initialize m_lang in both cases.
15753
15754 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15755
15756 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15757 with XCNEW.
15758
15759 2019-01-22 Tom Tromey <tom@tromey.com>
15760
15761 * corelow.c: Do not include sys/file.h.
15762
15763 2019-01-22 Tom Tromey <tom@tromey.com>
15764
15765 * tui/tui-wingeneral.h: Include gdb_curses.h.
15766
15767 2019-01-22 Tom Tromey <tom@tromey.com>
15768
15769 * source-cache.h (class source_cache) <get_source_lines,
15770 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15771
15772 2019-01-22 Tom Tromey <tom@tromey.com>
15773
15774 * remote-fileio.h (struct remote_target): Declare.
15775
15776 2019-01-22 Tom Tromey <tom@tromey.com>
15777
15778 * python/py-arch.c: Do not include py-ref.h.
15779 * python/py-bpevent.c: Do not include py-ref.h.
15780 * python/py-cmd.c: Do not include py-ref.h.
15781 * python/py-continueevent.c: Do not include py-ref.h.
15782 * python/py-event.h: Do not include py-ref.h.
15783 * python/py-evtregistry.c: Do not include py-ref.h.
15784 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15785 * python/py-frame.c: Do not include py-ref.h.
15786 * python/py-framefilter.c: Do not include py-ref.h.
15787 * python/py-function.c: Do not include py-ref.h.
15788 * python/py-infevents.c: Do not include py-ref.h.
15789 * python/py-linetable.c: Do not include py-ref.h.
15790 * python/py-objfile.c: Do not include py-ref.h.
15791 * python/py-param.c: Do not include py-ref.h.
15792 * python/py-prettyprint.c: Do not include py-ref.h.
15793 * python/py-progspace.c: Do not include py-ref.h.
15794 * python/py-symbol.c: Do not include py-ref.h.
15795 * python/py-symtab.c: Do not include py-ref.h.
15796 * python/py-type.c: Do not include py-ref.h.
15797 * python/py-unwind.c: Do not include py-ref.h.
15798 * python/py-utils.c: Do not include py-ref.h.
15799 * python/py-value.c: Do not include py-ref.h.
15800 * python/py-varobj.c: Do not include py-ref.h.
15801 * python/py-xmethods.c: Do not include py-ref.h.
15802 * python/python.c: Do not include py-ref.h.
15803 * varobj.c: Do not include py-ref.h.
15804
15805 2019-01-22 Tom Tromey <tom@tromey.com>
15806
15807 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15808 keyword for bcache.
15809
15810 2019-01-22 Tom Tromey <tom@tromey.com>
15811
15812 * compile/compile-cplus-types.c: Remove a comment by #include.
15813
15814 2019-01-22 Tom Tromey <tom@tromey.com>
15815
15816 * compile/gcc-c-plugin.h: Include compile-internal.h.
15817
15818 2019-01-22 Tom Tromey <tom@tromey.com>
15819
15820 * stabsread.c (EXTERN): Do not define.
15821 (symnum, next_symbol_text_func, processing_gcc_compilation)
15822 (within_function, global_sym_chain, global_stabs)
15823 (previous_stab_code, this_object_header_files)
15824 (n_this_object_header_files)
15825 (n_allocated_this_object_header_files): Define.
15826 * stabsread.h (EXTERN): Never define. Use "extern".
15827
15828 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15829
15830 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15831 history_value.
15832
15833 2019-01-21 Tom Tromey <tom@tromey.com>
15834
15835 * ui-out.c: Fix includes.
15836 * tui/tui-source.c: Fix includes.
15837 * target.c: Fix includes.
15838 * remote.c: Fix includes.
15839 * regcache.c: Fix includes.
15840 * python/py-block.c: Fix includes.
15841 * printcmd.c: Fix includes.
15842 * or1k-tdep.c: Fix includes.
15843 * mi/mi-main.c: Fix includes.
15844 * m32r-tdep.c: Fix includes.
15845 * csky-tdep.c: Fix includes.
15846 * compile/compile-cplus-types.c: Fix includes.
15847 * cli/cli-interp.c: Fix includes.
15848
15849 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15850
15851 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15852 for padding.
15853
15854 2019-01-16 Tom Tromey <tom@tromey.com>
15855
15856 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15857 earlier.
15858 (struct objfile) <msymbols_range>: Move from top level.
15859 <msymbols>: New method.
15860 (class objfile_msymbols): Remove.
15861 * symtab.c (default_collect_symbol_completion_matches_break_on):
15862 Update.
15863 * symmisc.c (dump_msymbols): Update.
15864 * stabsread.c (scan_file_globals): Update.
15865 * objc-lang.c (info_selectors_command, info_classes_command)
15866 (find_methods): Update.
15867 * minsyms.c (find_solib_trampoline_target): Update.
15868 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15869 * coffread.c (coff_symfile_read): Update.
15870 * ada-lang.c (ada_lookup_simple_minsym)
15871 (ada_collect_symbol_completion_matches): Update.
15872
15873 2019-01-16 Tom Tromey <tom@tromey.com>
15874
15875 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15876 type. Remove no-argument constructor.
15877 <iterator::operator++>: Simplify.
15878 <begin>: Update.
15879 <end>: Use minimal_symbol_count.
15880
15881 2019-01-16 Tom Tromey <tom@tromey.com>
15882
15883 * objfiles.h (struct objfile) <psymtabs>: New method.
15884 (class objfile_psymtabs): Remove.
15885 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15886 typedef.
15887 <range>: New method.
15888 (require_partial_symbols): Change return type.
15889 * psymtab.c (require_partial_symbols)
15890 (psym_expand_symtabs_matching): Update.
15891 * mdebugread.c (parse_partial_symbols): Update.
15892 * dbxread.c (dbx_end_psymtab): Update.
15893
15894 2019-01-15 Tom Tromey <tom@tromey.com>
15895
15896 * symtab.c (lookup_objfile_from_block)
15897 (lookup_symbol_in_objfile_symtabs)
15898 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15899 (find_line_symtab, info_sources_command)
15900 (default_collect_symbol_completion_matches_break_on)
15901 (make_source_files_completion_list): Update.
15902 * symmisc.c (print_objfile_statistics, dump_objfile)
15903 (maintenance_print_symbols, maintenance_info_symtabs)
15904 (maintenance_check_symtabs, maintenance_info_line_tables):
15905 Update.
15906 * source.c (select_source_symtab)
15907 (forget_cached_source_info_for_objfile): Update.
15908 * objfiles.h (class objfile_compunits): Remove.
15909 (struct objfile) <compunits_range>: New typedef.
15910 (compunits): New method.
15911 * objfiles.c (objfile_relocate1): Update.
15912 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15913 * maint.c (count_symtabs_and_blocks): Update.
15914 * linespec.c (iterate_over_all_matching_symtabs): Update.
15915 * cp-support.c (add_symbol_overload_list_qualified): Update.
15916 * coffread.c (coff_symtab_read): Update.
15917 * ada-lang.c (add_nonlocal_symbols)
15918 (ada_collect_symbol_completion_matches)
15919 (ada_add_global_exceptions): Update.
15920
15921 2019-01-15 Tom Tromey <tom@tromey.com>
15922
15923 * progspace.h (program_space) <objfiles_safe_range>: New
15924 typedef.
15925 <objfiles_safe>: New method.
15926 * objfiles.h (class all_objfiles_safe): Remove.
15927 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15928 * jit.c (jit_inferior_exit_hook): Update.
15929
15930 2019-01-17 Tom Tromey <tom@tromey.com>
15931
15932 * progspace.h (program_space) <objfiles_range>: New typedef.
15933 <objfiles>: New method.
15934 <objfiles_head>: Rename from objfiles.
15935 (object_files): Update.
15936 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15937 * guile/scm-pretty-print.c
15938 (ppscm_find_pretty_printer_from_objfiles): Update.
15939 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15940 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15941 Update.
15942 * python/py-progspace.c (pspy_get_objfiles): Update.
15943 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15944 Update.
15945 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15946 (objfpy_lookup_objfile_by_build_id): Update.
15947 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15948 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15949 Update.
15950 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15951 (expand_symtab_containing_pc, lookup_objfile_from_block)
15952 (lookup_static_symbol, basic_lookup_transparent_type)
15953 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15954 (find_line_symtab, info_sources_command)
15955 (default_collect_symbol_completion_matches_break_on)
15956 (make_source_files_completion_list, find_main_name): Update.
15957 * symmisc.c (print_symbol_bcache_statistics)
15958 (print_objfile_statistics, maintenance_print_symbols)
15959 (maintenance_print_msymbols, maintenance_print_objfiles)
15960 (maintenance_info_symtabs, maintenance_check_symtabs)
15961 (maintenance_expand_symtabs, maintenance_info_line_tables):
15962 Update.
15963 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15964 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15965 (map_overlay_command, unmap_overlay_command)
15966 (simple_overlay_update, expand_symtabs_matching)
15967 (map_symbol_filenames): Update.
15968 * symfile-debug.c (set_debug_symfile): Update.
15969 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15970 Update.
15971 * source.c (select_source_symtab, forget_cached_source_info):
15972 Update.
15973 * solib.c (solib_read_symbols): Update.
15974 * solib-spu.c (append_ocl_sos): Update.
15975 * psymtab.c (maintenance_print_psymbols)
15976 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15977 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15978 * printcmd.c (info_symbol_command): Update.
15979 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15980 Update.
15981 * objfiles.h (class all_objfiles): Remove.
15982 * objfiles.c (have_partial_symbols, have_full_symbols)
15983 (have_minimal_symbols, qsort_cmp, update_section_map)
15984 (shared_objfile_contains_address_p)
15985 (default_iterate_over_objfiles_in_search_order): Update.
15986 * objc-lang.c (info_selectors_command, info_classes_command)
15987 (find_methods): Update.
15988 * minsyms.c (find_solib_trampoline_target): Update.
15989 * maint.c (maintenance_info_sections)
15990 (maintenance_translate_address, count_symtabs_and_blocks):
15991 Update.
15992 * main.c (captured_main_1): Update.
15993 * linux-thread-db.c (try_thread_db_load_from_pdir)
15994 (has_libpthread): Update.
15995 * linespec.c (iterate_over_all_matching_symtabs)
15996 (search_minsyms_for_name): Update.
15997 * jit.c (jit_find_objf_with_entry_addr): Update.
15998 * hppa-tdep.c (find_unwind_entry)
15999 (hppa_lookup_stub_minimal_symbol): Update.
16000 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16001 Update.
16002 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16003 (elf_gnu_ifunc_resolve_by_got): Update.
16004 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16005 * dwarf-index-write.c (save_gdb_index_command): Update.
16006 * cp-support.c (add_symbol_overload_list_qualified): Update.
16007 * breakpoint.c (create_overlay_event_breakpoint)
16008 (create_longjmp_master_breakpoint)
16009 (create_std_terminate_master_breakpoint)
16010 (create_exception_master_breakpoint): Update.
16011 * blockframe.c (find_pc_partial_function): Update.
16012 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16013 (ada_collect_symbol_completion_matches)
16014 (ada_add_global_exceptions): Update.
16015
16016 2019-01-17 Tom Tromey <tom@tromey.com>
16017
16018 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16019 declare VEC.
16020 (solib_target_parse_libraries): Change return type.
16021 (library_list_start_segment, library_list_start_section)
16022 (library_list_end_library, library_list_start_library); Update.
16023 (solib_target_free_library_list): Remove.
16024 (solib_target_parse_libraries): Remove cleanup. Change return
16025 type.
16026 (solib_target_current_sos): Update.
16027
16028 2019-01-17 Tom Tromey <tromey@bapiya>
16029
16030 * valprint.c: Replace "the the" with "the".
16031 * symtab.c: Replace "the the" with "the".
16032 * solib.c: Replace "the the" with "the".
16033 * solib-dsbt.c: Replace "the the" with "the".
16034 * linespec.c: Replace "the the" with "the".
16035 * dwarf2loc.h: Replace "the the" with "the".
16036 * amd64-windows-tdep.c: Replace "the the" with "the".
16037 * aarch64-tdep.c: Replace "the the" with "the".
16038
16039 2019-01-16 Keith Seitz <keiths@redhat.com>
16040
16041 PR gdb/23773
16042 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16043 <builder>: Rename to ..
16044 <m_builder>: ... this and make private.
16045 (dwarf2_cu::get_builder): New method. Change all users of
16046 `builder' to use this method.
16047 (dwarf2_start_symtab): Move to ...
16048 (dwarf2_cu::start_symtab): ... here. Update all callers
16049 (setup_type_unit_groups): Move to ...
16050 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16051 callers.
16052 (dwarf2_cu::reset_builder): New method.
16053 (process_full_compunit, process_full_type_unit): Use
16054 dwarf2_cu::reset_builder.
16055 (follow_die_offset): Record the ancestor CU if it is different
16056 from the followed DIE's CU.
16057 (follow_die_sig_1): Likewise.
16058
16059 2019-01-15 Tom Tromey <tom@tromey.com>
16060
16061 * remote.c (class remote_state) <buf>: Now a char_vector.
16062 <buf_size>: Remove.
16063 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16064 parameter.
16065 (remote_target::getpkt_or_notif_sane_1)
16066 (remote_target::getpkt_sane)
16067 (remote_target::getpkt_or_notif_sane): Likewise.
16068 (class remote_target) <putpkt>: New overload.
16069 (remote_target::read_frame): Change type of "buf_p". Remove
16070 sizeof_p parameter.
16071 (packet_ok): New overload.
16072 (packet_check_result): New overload.
16073 Update all uses.
16074
16075 2019-01-14 Tom Tromey <tom@tromey.com>
16076
16077 * remote-notif.c (handle_notification, remote_notif_ack)
16078 (remote_notif_parse): Make "buf" const.
16079 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16080 const.
16081 (remote_notif_parse, remote_notif_ack, handle_notification):
16082 Likewise.
16083 * remote.c (remote_notif_stop_parse): Make "buf" const.
16084 (remote_target::remote_parse_stop_reply): Make "buf" const.
16085 (remote_notif_stop_ack): Make "buf" const.
16086
16087 2019-01-14 Tom Tromey <tom@tromey.com>
16088
16089 * remote.c (remote_console_output): Make parameter const.
16090
16091 2019-01-14 Tom Tromey <tom@tromey.com>
16092
16093 * target-debug.h (target_debug_print_signals): Constify.
16094 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16095 * procfs.c (procfs_target::pass_signals): Update.
16096 * linux-nat.c (linux_nat_target::pass_signals): Update.
16097 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16098 * target-delegates.c: Rebuild.
16099 * remote.c (remote_target::program_signals): Update.
16100 (remote_target::pass_signals): Update.
16101 * target.c (target_pass_signals): Constify argument.
16102 (target_program_signals): Likewise.
16103 * target.h (struct target_ops) <pass_signals, program_signals>:
16104 Constify argument.
16105 (target_pass_signals, target_program_signals): Constify argument.
16106
16107 2019-01-14 Tom Tromey <tom@tromey.com>
16108
16109 PR tui/28819:
16110 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16111
16112 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16113
16114 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16115 field.
16116 * rs6000-tdep.c: Include reggroups.h.
16117 (IS_V_ALIAS_PSEUDOREG): Define.
16118 (rs6000_register_name): Return names for the "vX" aliases.
16119 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16120 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16121 aliases. Call default_register_reggroup_p for all other
16122 pseudo-registers.
16123 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16124 New functions.
16125 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16126 Handle "vX" aliases.
16127 (v_alias_pseudo_register_collect): New function.
16128 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16129 (rs6000_gdbarch_init): Initialize "vX" aliases as
16130 pseudo-registers. Restore registration of
16131 rs6000_pseudo_register_reggroup_p with
16132 set_tdesc_pseudo_register_reggroup_p.
16133
16134 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16135
16136 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16137 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16138 set_gdbarch_num_pseudo_regs.
16139
16140 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16141
16142 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16143 Remove arg prefixname, add do_set and do_show.
16144 Add member functions set_list and show_list.
16145 * cli/cli-style.c (class cli_style_option): Update accordingly.
16146 (style_set_list): Move to file scope.
16147 (style_show_list): Likewise.
16148 (set_style): Call help_list.
16149 (show_style): Call cmd_show_list.
16150 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16151 Update to use the new macro.
16152
16153 2019-10-12 Joel Brobecker <brobecker@adacore.com>
16154
16155 * ada-lang.c (_initialize_ada_language): Expand the help text
16156 for the "catch exception" command.
16157
16158 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16159
16160 * symtab.c (matching_obj_sections): Initialize obj,
16161 declare it closer to its usage.
16162
16163 2019-01-10 Tom Tromey <tom@tromey.com>
16164
16165 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16166 (basic_inf_threads_range): Remove.
16167 (inf_threads_range, inf_non_exited_threads_range)
16168 (safe_inf_threads_range): Use next_adapter.
16169
16170 2019-01-10 Keith Seitz <keiths@redhat.com>
16171
16172 PR gdb/23712
16173 PR symtab/23010
16174 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16175 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16176
16177 2019-01-10 Keith Seitz <keiths@redhat.com>
16178
16179 PR gdb/23712
16180 PR symtab/23010
16181 * dictionary.c (pending_to_vector): Remove.
16182 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16183 Remove _1 suffix, replacing functions of the same name. Update
16184 all callers.
16185 (dict_create_hashed, dict_create_hashed_expandable)
16186 (dict_create_linear, dict_create_linear_expandable, dict_free)
16187 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16188 Make functions static.
16189
16190 2019-01-10 Keith Seitz <keiths@redhat.com>
16191
16192 PR gdb/23712
16193 PR symtab/23010
16194 * dictionary.h (struct dictionary): Replace declaration with
16195 multidictionary.
16196 (dict_create_hashed, dict_create_hashed_expandable)
16197 (dict_create_linear, dict_create_linear_expandable)
16198 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16199 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16200 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16201 taking multidictionary argument.
16202 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16203 * block.h (struct block) <dict>: Change to multidictionary
16204 and rename `multidict'.
16205 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16206 symmisc.c: Update all dictionary references to multidictionary.
16207
16208 2019-01-10 Keith Seitz <keiths@redhat.com>
16209
16210 PR gdb/23712
16211 PR symtab/23010
16212 * dictionary.c: Include unordered_map.
16213 (pending_to_vector): New function.
16214 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16215 Rewrite the non-"_1" functions to take vector instead
16216 of linked list.
16217 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16218 "new" _1 versions of the same name.
16219 (multidictionary): Define.
16220 (std::hash<enum language): New definition.
16221 (collate_pending_symbols_by_language, mdict_create_hashed)
16222 (mdict_create_hashed_expandable, mdict_create_linear)
16223 (mdict_create_linear_expandable, mdict_free)
16224 (find_language_dictionary, create_new_language_dictionary)
16225 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16226 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16227 (mdict_size, mdict_empty): New functions.
16228 * dictionary.h (mdict_iterator): Define.
16229
16230 2019-01-10 Pedro Alves <palves@redhat.com>
16231
16232 * breakpoint.c (read_uploaded_action)
16233 (create_tracepoint_from_upload): Adjust to use
16234 gdb::unique_xmalloc_ptr.
16235 * ctf.c (ctf_write_uploaded_tp):
16236 (SET_ARRAY_FIELD): Use emplace_back.
16237 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16238 * tracefile-tfile.c (tfile_write_uploaded_tp):
16239 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16240 gdb::unique_xmalloc_ptr.
16241 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16242 at_string, cond_string, cmd_strings>: Replace char pointers
16243 with gdb::unique_xmalloc_ptr.
16244
16245 2019-01-10 Pedro Alves <palves@redhat.com>
16246
16247 * solib-target.c (library_list_start_library): Don't xstrdup name.
16248
16249 2019-01-10 Pedro Alves <palves@redhat.com>
16250
16251 * mdebugread.c (parse_partial_symbols): Use
16252 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16253
16254 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16255
16256 * linux-fork.c (scoped_switch_fork_info)
16257 <~scoped_switch_fork_info>: Fix incorrect variable name.
16258
16259 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16260
16261 * linux-fork.c (scoped_switch_fork_info)
16262 <scoped_switch_fork_info>: Make explicit.
16263 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16264
16265 2019-01-10 Tom Tromey <tom@tromey.com>
16266
16267 * objfiles.h (objfile::reset_psymtabs): Update.
16268 * objfiles.c (objfile::objfile): Update.
16269 * psymtab.h (psymtab_storage::obstack): Update.
16270 (psymtab_storage::m_obstack): Use gdb::optional.
16271 (class psymtab_storage): Update comment. Remove objfile
16272 parameter.
16273 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16274
16275 2019-01-10 Tom Tromey <tom@tromey.com>
16276
16277 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16278 <free_psymtabs>: Now private.
16279 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16280 (allocate_psymtab): Use new method.
16281
16282 2019-01-10 Tom Tromey <tom@tromey.com>
16283
16284 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16285 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16286 * mdebugread.c (parse_partial_symbols): Use
16287 allocate_dependencies.
16288 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16289 allocate_dependencies.
16290 (process_psymtab_comp_unit_reader)
16291 (build_type_psymtab_dependencies): Likewise.
16292 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16293
16294 2019-01-10 Tom Tromey <tom@tromey.com>
16295
16296 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16297 PSYMBOL_SET_LANGUAGE.
16298 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16299
16300 2019-01-10 Tom Tromey <tom@tromey.com>
16301
16302 * psymtab.h (psymtab_storage::obstack): New method.
16303 <m_obstack>: Rename from obstack; now private.
16304 * psymtab.c (psymtab_storage): Update.
16305 * dwarf2read.c (create_addrmap_from_index)
16306 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16307 Update.
16308
16309 2019-01-10 Tom Tromey <tom@tromey.com>
16310
16311 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16312 * objfiles.h (objfile::reset_psymtabs): New method.
16313
16314 2019-01-10 Tom Tromey <tom@tromey.com>
16315
16316 * symmisc.c (print_symbol_bcache_statistics): Update.
16317 (print_objfile_statistics): Update.
16318 * symfile.c (reread_symbols): Update.
16319 * psymtab.h (class psymtab_storage): New.
16320 * psymtab.c (psymtab_storage): New constructor.
16321 (~psymtab_storage): New destructor.
16322 (require_partial_symbols): Update.
16323 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16324 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16325 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16326 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16327 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16328 (start_psymtab_common, end_psymtab_common)
16329 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16330 (allocate_psymtab): Update.
16331 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16332 Update.
16333 (dump_psymtab_addrmap, maintenance_print_psymbols)
16334 (maintenance_check_psymtabs): Update.
16335 (class objfile_psymtabs): Move to objfiles.h.
16336 * psympriv.h (discard_psymtab): Now inline.
16337 (psymtab_discarder::psymtab_discarder): Update.
16338 (psymtab_discarder::~psymtab_discarder): Update.
16339 (ALL_OBJFILE_PSYMTABS): Rewrite.
16340 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16341 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16342 Remove fields.
16343 <partial_symtabs>: New field.
16344 (class objfile_psymtabs): Move from psymtab.h. Update.
16345 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16346 psymbol_cache.
16347 (objfile::~objfile): Don't destroy psymbol_cache.
16348 * mdebugread.c (parse_partial_symbols): Update.
16349 * dwarf2read.c (create_addrmap_from_index)
16350 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16351 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16352 (add_partial_subprogram, dwarf2_ranges_read): Update.
16353 * dwarf-index-write.c (write_address_map)
16354 (write_one_signatured_type, recursively_write_psymbols)
16355 (class debug_names, class debug_names, write_psymtabs_to_index):
16356 Update.
16357
16358 2019-01-10 Tom Tromey <tom@tromey.com>
16359
16360 * symtab.h (SYMBOL_SET_NAMES): Update.
16361 (symbol_set_names): Update.
16362 (MSYMBOL_SET_NAMES): Update.
16363 * symtab.c (symbol_set_names): Change argument to be an
16364 objfile_per_bfd_storage.
16365 * psymtab.c (add_psymbol_to_bcache): Update.
16366 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16367
16368 2019-01-10 Tom Tromey <tom@tromey.com>
16369
16370 * symtab.c (create_demangled_names_hash): Change argument to be an
16371 objfile_per_bfd_storage.
16372 (symbol_set_names): Update.
16373
16374 2019-01-10 Tom Tromey <tom@tromey.com>
16375
16376 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16377 init_psymbol_list.
16378 * psymtab.c (init_psymbol_list): Do nothing if already called.
16379 * psympriv.h (init_psymbol_list): Add comment.
16380 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16381 init_psymbol_list.
16382 * dbxread.c (dbx_symfile_read): Unconditionally call
16383 init_psymbol_list.
16384
16385 2019-01-10 Tom Tromey <tom@tromey.com>
16386
16387 * xcoffread.c (scan_xcoff_symtab): Update.
16388 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16389 "where".
16390 * mdebugread.c (parse_partial_symbols)
16391 (handle_psymbol_enumerators): Update.
16392 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16393 * dbxread.c (read_dbx_symtab): Update.
16394 * psympriv.h (psymbol_placement): New enum.
16395 (add_psymbol_to_list): Update.
16396
16397 2019-01-10 Tom Tromey <tom@tromey.com>
16398
16399 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16400 static_psymbols parameters.
16401 (scan_xcoff_symtab): Update.
16402 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16403 static_psymbols parameters.
16404 * psympriv.h (start_psymtab_common): Update.
16405 * mdebugread.c (parse_partial_symbols): Update.
16406 * dwarf2read.c (create_partial_symtab): Update.
16407 * dbxread.c (read_dbx_symtab): Update.
16408 (start_psymtab): Remove global_psymbols and static_psymbols
16409 parameters.
16410
16411 2019-01-10 Tom Tromey <tom@tromey.com>
16412
16413 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16414 * psymtab.c (allocate_psymtab): Add comment.
16415 * psympriv.h (allocate_psymtab): Add comment.
16416 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16417 initializations.
16418 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16419
16420 2019-01-10 Tom Tromey <tom@tromey.com>
16421
16422 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16423 Don't declare.
16424 * mipsread.c: Include mdebugread.h.
16425 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16426 Declare.
16427 * elfread.c: Include mdebugread.h.
16428
16429 2019-01-09 Tom Tromey <tom@tromey.com>
16430
16431 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16432 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16433 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16434 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16435 (psym_lookup_symbol, psym_find_last_source_symtab)
16436 (psym_forget_cached_source_info, psym_print_stats)
16437 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16438 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16439 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16440 (psym_find_compunit_symtab_by_address)
16441 (maintenance_print_psymbols, maintenance_info_psymtabs)
16442 (maintenance_check_psymtabs): Use ranged for.
16443 * psymtab.h (class objfile_psymtabs): New.
16444 (require_partial_symbols): Return objfile_psymtabs.
16445 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16446
16447 2019-01-09 Tom Tromey <tom@tromey.com>
16448
16449 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16450 (find_pc_mapped_section, list_overlays_command)
16451 (map_overlay_command, unmap_overlay_command)
16452 (simple_overlay_update): Use all_objfiles.
16453 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16454 * printcmd.c (info_symbol_command): Use all_objfiles.
16455 * objfiles.h (ALL_OBJSECTIONS): Remove.
16456 * maint.c (maintenance_translate_address): Use all_objfiles.
16457 * gcore.c (gcore_create_callback): Use all_objfiles.
16458 (objfile_find_memory_regions): Likewise.
16459
16460 2019-01-09 Tom Tromey <tom@tromey.com>
16461
16462 * symtab.c (find_line_symtab, info_sources_command)
16463 (make_source_files_completion_list): Use objfile_compunits.
16464 * source.c (select_source_symtab): Use objfile_compunits.
16465 * objfiles.h (struct objfile): Update comment.
16466 (ALL_OBJFILES): Remove.
16467 (ALL_FILETABS): Remove.
16468 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16469 objfile_compunits.
16470
16471 2019-01-09 Tom Tromey <tom@tromey.com>
16472
16473 * symmisc.c (print_objfile_statistics, dump_objfile)
16474 (maintenance_print_symbols): Use compunit_filetabs.
16475 * source.c (forget_cached_source_info_for_objfile): Use
16476 compunit_filetabs.
16477 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16478 (ALL_FILETABS): Use compunit_filetabs.
16479 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16480 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16481
16482 2019-01-09 Tom Tromey <tom@tromey.com>
16483
16484 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16485 (compunit_filetabs): New.
16486 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16487 compunit_filetabs.
16488 (info_sources_command, make_source_files_completion_list): Remove
16489 declaration.
16490 * symmisc.c (print_objfile_statistics, dump_objfile)
16491 (maintenance_print_symbols): Remove declaration.
16492 (maintenance_info_symtabs): Use compunit_filetabs.
16493 (maintenance_info_line_tables): Likewise.
16494 * source.c (select_source_symtab): Change local variable name.
16495 (forget_cached_source_info_for_objfile): Remove declaration.
16496 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16497 * objfiles.c (objfile_relocate1): Remove declaration.
16498 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16499 declaration.
16500 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16501 * coffread.c (coff_symtab_read): Remove declaration.
16502 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16503 compunit_filetabs.
16504
16505 2019-01-09 Tom Tromey <tom@tromey.com>
16506
16507 * symtab.c (lookup_objfile_from_block)
16508 (find_pc_sect_compunit_symtab, search_symbols)
16509 (default_collect_symbol_completion_matches_break_on): Use
16510 objfile_compunits.
16511 * objfiles.h (ALL_COMPUNITS): Remove.
16512 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16513 * cp-support.c (add_symbol_overload_list_qualified): Use
16514 objfile_compunits.
16515 * ada-lang.c (ada_collect_symbol_completion_matches)
16516 (ada_add_global_exceptions): Use objfile_compunits.
16517
16518 2019-01-09 Tom Tromey <tom@tromey.com>
16519
16520 * source.c (select_source_symtab)
16521 (forget_cached_source_info_for_objfile): Remove declaration.
16522 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16523 declaration.
16524 * maint.c (count_symtabs_and_blocks): Remove declaration.
16525 * cp-support.c (add_symbol_overload_list_qualified): Remove
16526 declaration.
16527 * coffread.c (coff_symtab_read): Remove declaration.
16528 * symtab.c (lookup_symbol_in_objfile_symtabs)
16529 (basic_lookup_transparent_type_1): Use objfile_compunits.
16530 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16531 (info_sources_command, search_symbols)
16532 (default_collect_symbol_completion_matches_break_on)
16533 (make_source_files_completion_list): Remove declaration.
16534 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16535 (ada_collect_symbol_completion_matches)
16536 (ada_add_global_exceptions): Remove declaration.
16537 * linespec.c (iterate_over_all_matching_symtabs): Use
16538 objfile_compunits.
16539 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16540 (class objfile_compunits): New.
16541 (ALL_COMPUNITS): Use objfile_compunits.
16542 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16543 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16544 objfile_compunits.
16545 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16546
16547 2019-01-09 Tom Tromey <tom@tromey.com>
16548
16549 * symtab.c (search_symbols)
16550 (default_collect_symbol_completion_matches_break_on): Use
16551 objfile_msymbols.
16552 * ada-lang.c (ada_lookup_simple_minsym)
16553 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16554 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16555 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16556 objfile_msymbols.
16557 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16558 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16559 * objc-lang.c (find_methods): Use objfile_msymbols.
16560 (info_selectors_command, info_classes_command): Likewise.
16561 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16562 * objfiles.h (class objfile_msymbols): New.
16563 (ALL_OBJFILE_MSYMBOLS): Remove.
16564 (ALL_MSYMBOLS): Remove.
16565
16566 2019-01-09 Tom Tromey <tom@tromey.com>
16567
16568 * common/next-iterator.h (next_adapter): Add Iterator template
16569 parameter.
16570 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16571 (class all_objfiles_safe): New.
16572 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16573 * objfiles.c (put_objfile_before): Update comment.
16574 (add_separate_debug_objfile): Likewise.
16575 (free_all_objfiles): Use all_objfiles_safe.
16576 (objfile_purge_solibs): Likewise.
16577
16578 2019-01-09 Tom Tromey <tom@tromey.com>
16579
16580 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16581 (expand_symtab_containing_pc, lookup_static_symbol)
16582 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16583 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16584 all_objfiles.
16585 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16586 * breakpoint.c (create_overlay_event_breakpoint)
16587 (create_longjmp_master_breakpoint)
16588 (create_std_terminate_master_breakpoint)
16589 (create_exception_master_breakpoint): Use all_objfiles.
16590 * linux-thread-db.c (try_thread_db_load_from_pdir)
16591 (has_libpthread): Use all_objfiles.
16592 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16593 * linespec.c (iterate_over_all_matching_symtabs)
16594 (search_minsyms_for_name): Use all_objfiles.
16595 * maint.c (maintenance_info_sections): Use all_objfiles.
16596 * main.c (captured_main_1): Use all_objfiles.
16597 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16598 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16599 * guile/scm-pretty-print.c
16600 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16601 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16602 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16603 (maintenance_print_msymbols): Use all_objfiles.
16604 * source.c (select_source_symtab): Use all_objfiles.
16605 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16606 * symfile.c (remove_symbol_file_command)
16607 (expand_symtabs_matching, map_symbol_filenames): Use
16608 all_objfiles.
16609 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16610 all_objfiles.
16611 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16612 * objc-lang.c (find_methods): Use all_objfiles.
16613 * objfiles.c (have_partial_symbols, have_full_symbols)
16614 (have_minimal_symbols, qsort_cmp)
16615 (default_iterate_over_objfiles_in_search_order): Use
16616 all_objfiles.
16617 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16618 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16619 (maintenance_check_psymtabs): Use all_objfiles.
16620 (ALL_PSYMTABS): Remove.
16621 * compile/compile-object-run.c (do_module_cleanup): Use
16622 all_objfiles.
16623 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16624 * cp-support.c (add_symbol_overload_list_qualified): Use
16625 all_objfiles.
16626 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16627 Use all_objfiles.
16628 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16629 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16630 all_objfiles.
16631 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16632 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16633 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16634 Uses all_objfiles.
16635 * solib.c (solib_read_symbols): Use all_objfiles
16636
16637 2019-01-09 Tom Tromey <tom@tromey.com>
16638
16639 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16640 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16641 all_objfiles.
16642 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16643 * symmisc.c (print_symbol_bcache_statistics)
16644 (print_objfile_statistics, maintenance_print_objfiles)
16645 (maintenance_info_symtabs, maintenance_check_symtabs)
16646 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16647 all_objfiles.
16648 * source.c (forget_cached_source_info): Use all_objfiles.
16649 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16650 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16651 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16652 * objfiles.c (update_section_map): Use all_objfiles.
16653 (shared_objfile_contains_address_p): Likewise.
16654 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16655 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16656
16657 2019-01-09 Tom Tromey <tom@tromey.com>
16658
16659 * common/next-iterator.h: New file.
16660 * objfiles.h (class all_objfiles): New.
16661 (struct objfile_iterator): New.
16662
16663 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16664
16665 * NEWS: Move the description of the changed "frame", "select-frame",
16666 and "info frame" commands to the Changed commands section.
16667
16668 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16669
16670 * gdbtypes.c (check_stub_method_group): Remove handling of old
16671 mangling schemes.
16672 * linespec.c (find_methods): Likewise.
16673 * stabsread.c (read_member_functions): Likewise.
16674 * valops.c (search_struct_method): Likewise.
16675 (value_struct_elt_for_reference): Likewise.
16676 * NEWS: Mention this change.
16677
16678 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16679
16680 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16681 print_source_lines.
16682 * source.c (print_source_lines_base): Update line number check.
16683 (print_source_lines): New function.
16684 (source_lines_range::source_lines_range): New function.
16685 * source.h (class source_lines_range): New class.
16686 (print_source_lines): New declaration.
16687
16688 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16689
16690 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16691
16692 2019-01-08 Tom Tromey <tom@tromey.com>
16693 Simon Marchi <simon.marchi@ericsson.com>
16694
16695 PR gdb/24060
16696 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16697 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16698 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16699 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16700 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16701 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16702
16703 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16704
16705 * source.c (select_source_symtab): Move header comment to
16706 declaration in source.h.
16707 (forget_cached_source_info_for_objfile): Likewise.
16708 (forget_cached_source_info): Likewise.
16709 (identify_source_line): Likewise.
16710 * source.h (identify_source_line): Move declaration from symtab.h
16711 and add comment from source.c
16712 (print_source_lines): Likewise.
16713 (forget_cached_source_info_for_objfile): Likewise.
16714 (forget_cached_source_info): Likewise.
16715 (select_source_symtab): Likewise.
16716 (enum print_source_lines_flag): Move definition from symtab.h.
16717 * symtab.h (identify_source_line): Move declaration to source.h.
16718 (print_source_lines): Likewise.
16719 (forget_cached_source_info_for_objfile): Likewise.
16720 (forget_cached_source_info): Likewise.
16721 (select_source_symtab): Likewise.
16722 (enum print_source_lines_flag): Move definition to source.h.
16723 * tui/tui-hooks.c: Add 'source.h' include.
16724
16725 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16726
16727 * source.c (print_source_lines_base): Handle requests to print
16728 reverse line number sequences, and guard against empty lines
16729 string.
16730
16731 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16732
16733 * source.c (print_source_lines_base): Fix skip of '\r' if next
16734 character is '\n'.
16735
16736 2019-01-06 Tom Tromey <tom@tromey.com>
16737
16738 * c-exp.y (struct c_parse_state) <macro_original_text,
16739 expansion_obstack>: New member.
16740 (macro_original_text, expansion_obstack): Remove globals.
16741 (scan_macro_expansion, scanning_macro_expansion)
16742 (finished_macro_expansion): Update.
16743 (scan_macro_cleanup): Remove.
16744 (yylex, c_parse): Update.
16745
16746 2019-01-06 Tom Tromey <tom@tromey.com>
16747
16748 * c-exp.y (struct c_parse_state) <strings>: New member.
16749 (operator_stoken): Update.
16750
16751 2019-01-06 Tom Tromey <tom@tromey.com>
16752
16753 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16754 (union type_stack_elt) <typelist_val>: Now a pointer to
16755 std::vector.
16756 (type_stack_cleanup): Don't declare.
16757 (push_typelist): Update.
16758 * parse.c (pop_typelist): Return a std::vector.
16759 (push_typelist): Take a std::vector.
16760 (follow_types): Update. Do not free args.
16761 (type_stack_cleanup): Remove.
16762 * c-exp.y (struct c_parse_state): New.
16763 (cpstate): New global.
16764 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16765 (nonempty_typelist): Update.
16766 (func_mod): Create a new vector.
16767 (c_parse): Create a c_parse_state.
16768 (check_parameter_typelist): Do not delete params.
16769 (function_method): Update. Do not delete type_list.
16770
16771 2019-01-06 Tom Tromey <tom@tromey.com>
16772
16773 PR gdb/28155:
16774 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16775 check_typedef.
16776 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16777 (print_return_value): Likewise.
16778
16779 2019-01-05 Tom Tromey <tom@tromey.com>
16780
16781 * contrib/cleanup_check.py: Remove.
16782 * contrib/gcc-with-excheck: Remove.
16783 * contrib/exsummary.py: Remove.
16784 * contrib/excheck.py: Remove.
16785
16786 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16787
16788 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16789 NULL. Initialize tpprev to NULL instead of assigning it
16790 to NULL on the next statement.
16791 * windows-nat.c (windows_delete_thread): Remove check for
16792 main_thread_id before printing thread exit notifications.
16793 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16794 Remove thread ID check against main_thread_id.
16795 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16796 windows_delete_thread.
16797 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16798
16799 2019-01-04 Tom Tromey <tom@tromey.com>
16800
16801 * compile/compile.c (_initialize_compile): Use upper case for
16802 metasyntactic variables.
16803 * symmisc.c (_initialize_symmisc): Use upper case for
16804 metasyntactic variables.
16805 * psymtab.c (_initialize_psymtab): Use upper case for
16806 metasyntactic variables.
16807 * demangle.c (demangle_command): Use upper case for metasyntactic
16808 variables.
16809 (_initialize_demangler): Likewise.
16810 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16811 variables.
16812
16813 2019-01-03 Tom Tromey <tom@tromey.com>
16814
16815 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16816
16817 2019-01-03 Tom Tromey <tom@tromey.com>
16818
16819 * python/py-symtab.c (salpy_str): Update.
16820 (struct salpy_sal_object) <symtab>: Now a PyObject.
16821 (salpy_dealloc): Update.
16822 (del_objfile_sal): Use gdbpy_ref.
16823
16824 2019-01-03 Tom Tromey <tom@tromey.com>
16825
16826 * python/py-type.c (convert_field): Use new_reference. Return
16827 gdbpy_ref.
16828 (make_fielditem): Return gdbpy_ref.
16829 (typy_fields): Update.
16830 (typy_getitem): Update.
16831 (field_name): Return gdbpy_ref. Use new_reference.
16832 (typy_iterator_iternext): Update.
16833
16834 2019-01-03 Tom Tromey <tom@tromey.com>
16835
16836 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16837
16838 2019-01-03 Tom Tromey <tom@tromey.com>
16839
16840 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16841 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16842 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16843 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16844 (pspy_set_type_printers): Likewise.
16845 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16846 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16847 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16848 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16849 (objfpy_set_type_printers): Likewise.
16850
16851 2019-01-03 Tom Tromey <tom@tromey.com>
16852
16853 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16854 (gdbpy_print_stack): Use gdbpy_err_fetch.
16855 * python/python-internal.h (class gdbpy_err_fetch): New class.
16856 (class gdbpy_enter) <m_error_type, m_error_value,
16857 m_error_traceback>: Remove.
16858 <m_error>: New member.
16859 (gdbpy_exception_to_string): Don't declare.
16860 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16861 * python/py-value.c (convert_value_from_python): Use
16862 gdbpy_err_fetch.
16863 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16864 gdbpy_exception_to_string.
16865 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16866 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16867 gdbpy_err_fetch.
16868
16869 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16870
16871 * linux-nat.c (delete_lwp_cleanup): Delete.
16872 (struct lwp_deleter): New struct.
16873 (lwp_info_up): New typedef.
16874 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16875 lwp_info_up.
16876
16877 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16878
16879 * linux-fork.c (class scoped_switch_fork_info): New class.
16880 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16881
16882 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16883
16884 * valops.c (find_overload_match): Remove use of null_cleanup, and
16885 calls to do_cleanups.
16886
16887 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16888
16889 * compile/compile-cplus-types.c
16890 (compile_cplus_instance::decl_name): Handle changes to
16891 cp_func_name.
16892 * cp-support.c (cp_func_name): Update header comment, update
16893 return type.
16894 * cp-support.h (cp_func_name): Update return type in declaration.
16895 * valops.c (find_overload_match): Move temp_func local to top
16896 level of function and change its type. Use temp_func to hold and
16897 delete temporary string obtained from cp_func_name.
16898
16899 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16900
16901 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16902 gdb::char_vector, remove cleanup, and update uses of `msg`.
16903
16904 2019-01-03 Jim Wilson <jimw@sifive.com>
16905
16906 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16907
16908 2019-01-02 Tom Tromey <tom@tromey.com>
16909
16910 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16911 (tdesc_parse_xml): Remove cleanups.
16912 * target-descriptions.h (make_cleanup_free_target_description):
16913 Don't declare.
16914 (target_desc_deleter): New struct.
16915 (target_desc_up): New typedef.
16916 * target-descriptions.c (target_desc_deleter::operator()): Rename
16917 from free_target_description.
16918 (make_cleanup_free_target_description): Remove.
16919
16920 2019-01-02 Tom Tromey <tom@tromey.com>
16921
16922 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16923 constructor, destructor.
16924 (linespec_parser): Remove typedef.
16925 (~linespec_parser): Rename from linespec_parser_delete.
16926 (linespec_lex_to_end, linespec_complete_label)
16927 (linespec_complete): Update.
16928 (decode_line_full): Remove cleanups.
16929 (decode_line_1): Update.
16930
16931 2019-01-02 Tom Tromey <tom@tromey.com>
16932
16933 * python/python-internal.h (inferior_to_inferior_object): Change
16934 return type.
16935 * python/py-exitedevent.c (create_exited_event_object): Update.
16936 * python/py-inferior.c (inferior_to_inferior_object): Return
16937 gdbpy_ref.
16938 (python_new_inferior, python_inferior_deleted)
16939 (thread_to_thread_object, delete_thread_object)
16940 (build_inferior_list, gdbpy_selected_inferior): Update.
16941 * python/py-infthread.c (create_thread_object): Update. Also fail
16942 if inferior_to_inferior_object fails.
16943
16944 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16945
16946 * inferior.h (class inferior) <displaced_step_state>: New field.
16947 * infrun.h (struct displaced_step_state): Move here from
16948 infrun.c. Initialize fields, add constructor.
16949 <inf>: Remove field.
16950 <reset>: New method.
16951 * infrun.c (struct displaced_step_inferior_state): Move to
16952 infrun.h.
16953 (displaced_step_inferior_states): Remove.
16954 (get_displaced_stepping_state): Adust.
16955 (displaced_step_in_progress_any_inferior): Adjust.
16956 (displaced_step_in_progress_thread): Adjust.
16957 (displaced_step_in_progress): Adjust.
16958 (add_displaced_stepping_state): Remove.
16959 (get_displaced_step_closure_by_addr): Adjust.
16960 (remove_displaced_stepping_state): Remove.
16961 (infrun_inferior_exit): Call displaced_step_state.reset.
16962 (use_displaced_stepping): Don't check for NULL.
16963 (displaced_step_prepare_throw): Call
16964 get_displaced_stepping_state.
16965 (displaced_step_fixup): Don't check for NULL.
16966 (prepare_for_detach): Don't check for NULL.
16967
16968 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16969
16970 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16971 in case of call that did not complete.
16972
16973 2019-01-02 Andrey Utkin <autkin@undo.io>
16974
16975 * symfile.c (find_separate_debug_file): Fix search of debug files for
16976 remote debuggee.
16977
16978 2019-01-02 Tom Tromey <tom@tromey.com>
16979
16980 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16981 indentation.
16982 * python/py-frame.c (frapy_older): Remove cast.
16983 (frapy_newer): Likewise.
16984 * python/py-breakpoint.c (local_setattro): Remove cast.
16985 * python/py-arch.c (archpy_name): Remove local variable.
16986 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16987
16988 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16989
16990 * unittests/basic_string_view/element_access/char/empty.cc:
16991 Fix year range in copyright header.
16992
16993 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16994
16995 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16996 Delete.
16997 <operator==>: Update with for removed field.
16998 <hash>: Likewise.
16999 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17000 <isa_features>: ...this.
17001 <abi_features>: New field.
17002 (riscv_isa_flen): Update comment.
17003 (riscv_abi_xlen): New declaration.
17004 (riscv_abi_flen): New declaration.
17005 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17006 isa_features.
17007 (riscv_abi_xlen): New function.
17008 (riscv_isa_flen): Update to get answer from isa_features.
17009 (riscv_abi_flen): New function.
17010 (riscv_has_fp_abi): Update to get answer from abi_features.
17011 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17012 xlen and flen.
17013 (riscv_call_info) <xlen, flen>: Update comment.
17014 (riscv_call_arg_struct): Remove invalid assertions
17015 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17016 is removed.
17017 (riscv_gdbarch_init): Gather isa features and abi features
17018 separately, ensure both match on the gdbarch when reusing an old
17019 gdbarch. Relax an error check to allow 32-bit abi float to run on
17020 a target with 64-bit float hardware.
17021
17022 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17023
17024 * source.c (search_command_helper): Stop reverse search
17025 when line 1 has been searched.
17026
17027 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17028
17029 * record-full.c (record_full_base_target::close): Rewrite
17030 record_full_core_buf_list free logic.
17031
17032 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17033
17034 * break-catch-syscall.c (print_one_catch_syscall): xfree
17035 the last text.
17036
17037 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17038
17039 * top.c (print_gdb_version): Update Copyright year in version
17040 message.
17041
17042 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17043
17044 Update copyright year range in all GDB files.
17045
17046 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
17047
17048 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
17049
17050 For older changes see ChangeLog-2018.
17051 \f
17052 Local Variables:
17053 mode: change-log
17054 left-margin: 8
17055 fill-column: 74
17056 version-control: never
17057 coding: utf-8
17058 End:
17059
This page took 0.392782 seconds and 4 git commands to generate.