Remove tui_source_window::show_symtab_source
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-20 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4 (tui_update_source_windows_with_line): Call update_source_window.
5 * tui/tui-source.h (struct tui_source_window)
6 <show_symtab_source>: Don't declare.
7 * tui/tui-source.c (tui_source_window::show_symtab_source):
8 Remove.
9
10 2019-12-20 Tom Tromey <tom@tromey.com>
11
12 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
13 update_source_window directly.
14 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
15 * tui/tui-disasm.c (tui_show_disassem): Remove.
16
17 2019-12-20 Tom Tromey <tom@tromey.com>
18
19 * tui/tui-winsource.c
20 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
21 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
22
23 2019-12-20 Tom Tromey <tom@tromey.com>
24
25 * tui/tui-winsource.h (struct tui_source_window_base)
26 <maybe_update>: Remove line_no and addr parameters.
27 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
28 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
29 Update.
30 * tui/tui-source.c (tui_source_window::maybe_update): Remove
31 line_no and addr parameters.
32 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
33 Update.
34 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
35 line_no and addr parameters.
36
37 2019-12-20 Tom Tromey <tom@tromey.com>
38
39 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
40 (tui_source_window_base::update_breakpoint_info): Remove asserts.
41
42 2019-12-20 Tom Tromey <tom@tromey.com>
43
44 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
45 tui_show_disassem.
46 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
47 declare.
48 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
49
50 2019-12-20 Tom Tromey <tom@tromey.com>
51
52 * tui/tui.h (tui_show_source): Remove parameters.
53 * tui/tui.c (tui_show_source): Remove parameters.
54 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
55
56 2019-12-20 Tom Tromey <tom@tromey.com>
57
58 * tui/tui.c (tui_show_source): Update.
59 * tui/tui-winsource.c (tui_display_main): Update.
60 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
61 to symtab.
62 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
63 to symtab.
64 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
65
66 2019-12-20 Tom Tromey <tom@tromey.com>
67
68 PR tui/23619:
69 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
70 (tui_redisplay_readline): Use rl_display_prompt.
71 (tui_prep_terminal): Update.
72
73 2019-12-19 Christian Biesinger <cbiesinger@google.com>
74
75 * configure: Regenerate.
76 * configure.ac: Quote variable arguments of test.
77 * gdbsupport/common.m4: Likewise.
78
79 2019-12-19 Christian Biesinger <cbiesinger@google.com>
80
81 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
82 2 to pow ().
83
84 2019-12-19 Christian Biesinger <cbiesinger@google.com>
85
86 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
87 log10 to double to fix Solaris 11 with gcc 5.5.
88
89 2019-12-19 Christian Biesinger <cbiesinger@google.com>
90
91 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
92 "sun" to "saddr_un".
93
94 2019-12-19 Tom Tromey <tromey@adacore.com>
95
96 * ui-out.h (enum class field_kind): Fix comment.
97
98 2019-12-11 Tom Tromey <tromey@adacore.com>
99
100 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
101
102 2019-12-18 Tom Tromey <tromey@adacore.com>
103
104 PR build/25268:
105 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
106 type on macOS. Add comment.
107
108 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
109
110 * c-lang.c (c_get_string, asm_language_defn): Remove space
111 before tab.
112
113 2019-12-18 Tom Tromey <tromey@adacore.com>
114
115 PR build/25250:
116 * ui-out.c (ui_out::vmessage): Update.
117 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
118 Rename.
119 (string_field): Update.
120 (signed_field): Update.
121
122 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
123
124 * top.c (print_gdb_configuration): Adjust indentation.
125
126 2019-12-17 Christian Biesinger <cbiesinger@google.com>
127
128 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
129
130 2019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
131
132 * tui/tui-layout.h (class tui_layout_base): Add virtual
133 destructor.
134
135 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
136
137 * infcmd.c (prepare_one_step): Step over skipped inline functions.
138 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
139 (process_event_stop_test): Keep stepping over skipped inline functions.
140
141 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
142
143 * jit.c (struct gdb_block) <next>: Remove field.
144 (struct gdb_symtab) <~gdb_symtab>: Remove.
145 <blocks>: Change type to std::forward_list<gdb_block>.
146 (compare_block): Remove.
147 (jit_block_open_impl): Adjust to std::forward_list. Place the new
148 block at the beginning, don't mind about sorting.
149 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
150 before using it.
151
152 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
153
154 * jit.c (struct gdb_block): Add constructor, initialize
155 real_block and next fields.
156 <name>: Change type to gdb::unique_xmalloc_ptr.
157 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
158 (jit_block_open_impl): Allocate gdb_block with new.
159 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
160
161 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
162
163 * jit.c: Include forward_list.
164 (struct gdb_symtab) <next>: Remove field.
165 (struct gdb_object) <symtabs>: Change type to
166 std::forward_list<gdb_symtab>.
167 (jit_object_open_impl): Allocate gdb_object with new.
168 (jit_symtab_open_impl): Adjust to std::forward_list.
169 (finalize_symtab): Don't delete symtab.
170 (jit_object_close_impl): Adjust to std::forward_list. Free
171 gdb_object with delete.
172
173 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
174
175 * jit.c (struct gdb_symtab): Add constructor, destructor,
176 initialize fields.
177 <linetable>: Change type to unique_xmalloc_ptr.
178 <file_name>: Change type to std::string.
179 (jit_symtab_open_impl): Allocate gdb_symtab with new.
180 (jit_symtab_line_mapping_add_impl): Adjust.
181 (finalize_symtab): Adjust, call delete on stab.
182
183 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
184
185 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
186
187 2019-12-16 Tom Tromey <tromey@adacore.com>
188
189 * windows-nat.c (windows_nat_target::attach): Update.
190 * remote.c (extended_remote_target::attach): Update.
191 * procfs.c (procfs_target::attach): Update.
192 * nto-procfs.c (nto_procfs_target::attach): Update.
193 (nto_procfs_target::create_inferior): Update.
194 * inf-ptrace.c (inf_ptrace_target::attach): Update.
195 * gnu-nat.c (gnu_nat_target::attach): Update.
196 (gnu_nat_target::detach): Update.
197 * darwin-nat.c (darwin_nat_target::attach): Update.
198 * corefile.c (get_exec_file): Constify result. Remove extraneous
199 return.
200 * bsd-kvm.c (bsd_kvm_target_open): Update.
201 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
202
203 2019-12-16 Christian Biesinger <cbiesinger@google.com>
204
205 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
206 (we no longer need to include time.h before pathmax.h)
207
208 2019-12-15 Christian Biesinger <cbiesinger@google.com>
209
210 * ada-exp.y (write_ambiguous_var): Update.
211 * coffread.c (process_coff_symbol): Update.
212 * ctfread.c (ctf_add_enum_member_cb): Update.
213 (new_symbol): Update.
214 * dwarf2read.c (fixup_go_packaging): Update.
215 (new_symbol): Update.
216 * language.c (language_alloc_type_symbol): Update.
217 * mdebugread.c (new_symbol): Update.
218 * minsyms.c (minimal_symbol_reader::record_full): Update.
219 * psymtab.c (add_psymbol_to_bcache): Update.
220 * stabsread.c (define_symbol): Update.
221 (read_enum_type): Update.
222 * symtab.c (symbol_set_language): Make this a member function...
223 (general_symbol_info::set_language): ... here.
224 * symtab.h (struct general_symbol_info) <set_language>: New function.
225 (SYMBOL_SET_LANGUAGE): Remove.
226 (symbol_set_language): Remove.
227
228 2019-12-15 Christian Biesinger <cbiesinger@google.com>
229
230 * ada-lang.c (ada_add_block_symbols): Update.
231 (ada_collect_symbol_completion_matches): Update.
232 * ax-gdb.c (gen_expr): Update.
233 * block.c (block_lookup_symbol): Update.
234 (block_lookup_symbol_primary): Update.
235 (block_find_symbol): Update.
236 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
237 * dbxread.c (process_one_symbol): Update.
238 * dictionary.c (insert_symbol_hashed): Update.
239 (collate_pending_symbols_by_language): Update.
240 (mdict_add_symbol): Update.
241 * dwarf-index-write.c (write_psymbols): Update.
242 * dwarf2read.c (fixup_go_packaging): Update.
243 * findvar.c (read_var_value): Update.
244 * ft32-tdep.c (ft32_skip_prologue): Update.
245 * go-lang.c (go_symbol_package_name): Update.
246 * language.h (scoped_switch_to_sym_language_if_auto::
247 scoped_switch_to_sym_language_if_auto): Update.
248 * linespec.c (find_method): Update.
249 (find_label_symbols_in_block): Update.
250 * mdebugread.c (parse_symbol): Update.
251 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
252 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
253 (minimal_symbol_reader::install): Update.
254 * moxie-tdep.c (moxie_skip_prologue): Update.
255 * parse.c (parse_exp_in_context): Update.
256 * psymtab.c (psymbol_name_matches): Update.
257 (match_partial_symbol): Update.
258 (lookup_partial_symbol): Update.
259 (psymbol_hash): Update.
260 (psymbol_compare): Update.
261 * python/py-framefilter.c (extract_sym): Update.
262 (py_print_single_arg): Update.
263 * stabsread.c (define_symbol): Update.
264 * stack.c (print_frame_arg): Update.
265 (find_frame_funname): Update.
266 (info_frame_command_core): Update.
267 * symfile.c (set_initial_language): Update.
268 * symtab.c (symbol_set_demangled_name): Update.
269 (symbol_get_demangled_name): Update.
270 (symbol_set_language): Update.
271 (symbol_find_demangled_name): Update.
272 (symbol_set_names): Update.
273 (general_symbol_info::natural_name): Update.
274 (general_symbol_info::demangled_name): Update.
275 (general_symbol_info::search_name): Update.
276 (symbol_matches_search_name): Update.
277 (eq_symbol_entry): Update.
278 (iterate_over_symbols): Update.
279 (completion_list_add_symbol): Update.
280 (completion_list_add_msymbol): Update.
281 (completion_list_add_fields): Update.
282 * symtab.h (struct general_symbol_info) <language>: New function.
283 <language>: Rename to...
284 <m_language>: ...this.
285 (SYMBOL_LANGUAGE): Remove.
286 (MSYMBOL_LANGUAGE): Remove.
287 (struct symbol) <ctor>: Update.
288 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
289
290 2019-12-15 Christian Biesinger <cbiesinger@google.com>
291
292 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
293 set the language of sym.
294 * language.c (language_alloc_type_symbol): Likewise.
295
296 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
297
298 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
299 PR gdb/23613
300 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
301 * corelow.c: Include 'gdbsupport/pathstuff.h'.
302 (core_target_open): Use 'gdb_abspath'.
303 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
304 'current_directory == NULL' case.
305 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
306 explain what happens when 'current_directory' is NULL.
307 * go32-nat.c (go32_nat_target::wait): Check if
308 'current_directory' is NULL before call to 'chdir'.
309 * source.c (add_path): Use 'gdb_abspath'.
310 * top.c: Include 'gdbsupport/pathstuff.h'.
311 (init_history): Use 'gdb_abspath'.
312 (set_history_filename): Likewise.
313 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
314 (tfile_target_open): Use 'gdb_abspath'.
315
316 2019-12-13 Tom Tromey <tromey@adacore.com>
317
318 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
319 warning or error.
320
321 2019-12-13 Tom Tromey <tromey@adacore.com>
322
323 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
324
325 2019-12-13 Tom Tromey <tromey@adacore.com>
326
327 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
328
329 2019-12-13 Tom Tromey <tromey@adacore.com>
330
331 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
332
333 2019-12-13 Tom Tromey <tromey@adacore.com>
334
335 * gdbsupport/common-utils.c (string_printf, string_vprintf)
336 (string_vappendf): Add ARI comment.
337
338 2019-12-13 Tom Tromey <tromey@adacore.com>
339
340 * contrib/ari/gdb_ari.sh: Remove "fix" call for
341 floatformat_to_double.
342 * target-float.c (host_float_ops<T>::from_target): Add ARI
343 comment.
344
345 2019-12-13 Tom Tromey <tromey@adacore.com>
346
347 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
348 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
349 ARI marker to abort.
350 * event-top.c (handle_sigsegv): Add ARI marker to abort.
351
352 2019-12-13 Tom Tromey <tromey@adacore.com>
353
354 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
355
356 2019-12-13 Tom Tromey <tromey@adacore.com>
357
358 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
359
360 2019-12-13 Tom Tromey <tromey@adacore.com>
361
362 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
363 checks.
364
365 2019-12-13 Tom Tromey <tromey@adacore.com>
366
367 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
368 end>: No longer "const".
369
370 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * jit.c: Fix indentation, replace spaces with tabs where
373 applicable.
374
375 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
376
377 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
378
379 2019-12-12 Tom Tromey <tom@tromey.com>
380
381 * objfiles.h (struct objfile) <partial_symtabs>: Now a
382 unique_ptr.
383
384 2019-12-12 Tom Tromey <tom@tromey.com>
385
386 * progspace.h (objfile_list): New typedef.
387 (class unwrapping_objfile_iterator)
388 (struct unwrapping_objfile_range): Newl
389 (struct program_space) <objfiles_range>: Change type.
390 <objfiles>: Change return type.
391 <add_objfile>: Change type of "objfile" parameter.
392 <objfiles_list>: Now a list of shared_ptr.
393 * progspace.c (program_space::add_objfile): Change type of
394 "objfile". Update.
395 (program_space::remove_objfile): Update.
396 * objfiles.h (struct objfile) <~objfile>: Make public.
397 * objfiles.c (objfile::make): Update.
398 (objfile::unlink): Don't call delete.
399
400 2019-12-12 Tom Tromey <tom@tromey.com>
401
402 * symfile.c (symbol_file_clear): Update.
403 * progspace.h (struct program_space) <free_all_objfiles>: Declare
404 method.
405 * progspace.c (program_space::free_all_objfiles): New method.
406 * objfiles.h (free_all_objfiles): Don't declare.
407 * objfiles.c (free_all_objfiles): Move to program_space.
408
409 2019-12-12 Tom Tromey <tom@tromey.com>
410
411 * progspace.c (program_space::add_objfile)
412 (program_space::remove_objfile): Update.
413 (program_space::multi_objfile_p): Remove.
414 * objfiles.h (struct objfile) <next>: Remove.
415 * objfiles.c (objfile::objfile): Update.
416 (put_objfile_before): Update.
417 (unlink_objfile): Update.
418 * progspace.h (object_files): Remove.
419 (struct program_space) <objfiles_head>: Remove.
420 <objfiles_list>: New member.
421 <objfiles_range, objfiles_safe_range>: Change type.
422 (objfiles): Change return type.
423 (objfiles_safe): Update.
424 (multi_objfile_p): Rewrite and inline.
425 (object_files): Remove macro.
426
427 2019-12-12 Tom Tromey <tom@tromey.com>
428
429 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
430 second constructor.
431 (basic_safe_range): New class.
432
433 2019-12-12 Tom Tromey <tom@tromey.com>
434
435 * progspace.c (program_space::multi_objfile_p): New method.
436 * printcmd.c (info_symbol_command): Update.
437 * maint.c (maintenance_translate_address): Update.
438 * objfiles.h (MULTI_OBJFILE_P): Remove.
439 * progspace.h (struct program_space) <multi_objfile_p>: New
440 method.
441
442 2019-12-12 Tom Tromey <tom@tromey.com>
443
444 * progspace.h (struct program_space) <remove_objfile>: Declare.
445 * progspace.c (program_space::remove_objfile): New method.
446 * objfiles.c (unlink_objfile): Remove.
447 (objfile::unlink): Call remove_objfile.
448 (objfile): Don't call unlink_objfile.
449
450 2019-12-12 Tom Tromey <tom@tromey.com>
451
452 * progspace.h (struct program_space) <add_objfile>: Declare
453 method.
454 * progspace.c (program_space::add_objfile): New method.
455 * objfiles.c (~objfile): Don't unlink objfile.
456 (put_objfile_before): Remove.
457 (add_separate_debug_objfile): Don't call put_objfile_before.
458 (objfile::make): Call add_objfile. Set new_objfiles_available on
459 the per-program-space data.
460
461 2019-12-12 Tom Tromey <tom@tromey.com>
462
463 * symfile.c (syms_from_objfile_1): Use objfile_up.
464 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
465 method.
466 (reread_symbols): Use objfile_up.
467 * solib.c (update_solib_list, reload_shared_libraries_1): Call
468 unlink method.
469 * objfiles.h (struct objfile) <~objfile>: Now private.
470 <unlink>: New method.
471 (struct objfile_deleter): New.
472 (objfile_up): New typedef.
473 * objfiles.c (objfile::unlink): New method.
474 (free_objfile_separate_debug, free_all_objfiles)
475 (objfile_purge_solibs): Use it.
476 * jit.c (jit_unregister_code): Remove.
477 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
478 objfile.
479 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
480 objfile.
481 * compile/compile-object-load.c (compile_object_load): Use
482 objfile_up.
483
484 2019-12-12 Tom Tromey <tom@tromey.com>
485
486 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
487 objfile::make.
488 * objfiles.h (struct objjfile) <make>: No longer inline.
489 (add_separate_debug_objfile): Don't declare.
490 * objfiles.c (add_separate_debug_objfile): Now static.
491 (objfile::make): Move from objfiles.h. Call
492 add_separate_debug_objfile. Add "parent" parameter.
493
494 2019-12-12 Tom Tromey <tom@tromey.com>
495
496 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
497 * objfiles.h (struct objfile): Make constructor private.
498 <make>: New static method.
499 * jit.c (jit_object_close_impl): Update.
500
501 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
504 gdb::byte_vector.
505
506 2019-12-12 Tom Tromey <tromey@adacore.com>
507
508 * xml-support.c (xml_fetch_content_from_file): Don't call
509 malloc_failure.
510 * utils.h (class gdb_argv): Remove malloc_failure comment.
511 * utils.c (gdb_argv::reset): Don't call malloc_failure.
512
513 2019-12-12 Tom Tromey <tromey@adacore.com>
514
515 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
516 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
517 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
518 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
519 * riscv-ravenscar-thread.c: New file.
520 * riscv-ravenscar-thread.h: New file.
521 * riscv-tdep.c (riscv_gdbarch_init): Call
522 register_riscv_ravenscar_ops.
523
524 2019-12-12 Tom Tromey <tromey@adacore.com>
525
526 * gdbsupport/thread-pool.c (set_thread_name): Use
527 ATTRIBUTE_UNUSED.
528
529 2019-12-12 Luis Machado <luis.machado@linaro.org>
530
531 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
532 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
533 macros.
534
535 2019-12-11 Tom Tromey <tom@tromey.com>
536
537 * tui/tui-win.c (tui_set_win_height_command): Call
538 tui_adjust_window_height.
539 (tui_adjust_win_heights, new_height_ok): Remove.
540 * tui/tui-layout.h (tui_adjust_window_height): Declare.
541 * tui/tui-layout.c (tui_adjust_window_height): New function.
542
543 2019-12-11 Tom Tromey <tom@tromey.com>
544
545 * tui/tui-win.c (tui_resize_all): Remove code, call
546 tui_apply_current_layout.
547
548 2019-12-11 Tom Tromey <tom@tromey.com>
549
550 * tui/tui-layout.h (tui_apply_current_layout): Declare.
551 * tui/tui-layout.c (standard_layouts, applied_layout): New
552 globals.
553 (tui_apply_current_layout): New function.
554 (show_layout): Set applied_layout. Call
555 tui_apply_current_layout.
556 (show_source_command, show_disasm_command)
557 (show_source_disasm_command, show_data)
558 (show_source_or_disasm_and_command): Remove.
559 (initialize_layouts): New function.
560 (_initialize_tui_layout): Call initialize_layouts.
561
562 2019-12-11 Tom Tromey <tom@tromey.com>
563
564 * tui/tui-layout.h (class tui_layout_base)
565 (class tui_layout_window, class tui_layout_split): New.
566 * tui/tui-layout.c (tui_get_window_by_name)
567 (tui_layout_window::clone, tui_layout_window::apply)
568 (tui_layout_window::get_sizes, tui_layout_window::add_split)
569 (tui_layout_split::add_window, tui_layout_split::clone)
570 (tui_layout_split::get_sizes)
571 (tui_layout_split::set_weights_from_heights)
572 (tui_layout_split::adjust_size, tui_layout_split::apply): New
573 functions.
574 (tui_layout_split::add_split, tui_layout_split::add_split)
575 (tui_layout_split::set_weights_from_heights)
576 (tui_layout_split::set_weights_from_heights): New functions.
577
578 2019-12-11 Tom Tromey <tom@tromey.com>
579
580 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
581 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
582 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
583 * tui/tui-data.h (struct tui_point): Remove.
584 (struct tui_gen_win_info) <origin>: Remove.
585 <x, y>: New fields.
586 * tui/tui-command.c (tui_cmd_window::resize): Update.
587
588 2019-12-11 Tom Tromey <tom@tromey.com>
589
590 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
591 Implement.
592 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
593 Implement.
594 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
595 method.
596 (struct tui_win_info) <min_height>: Implement.
597
598 2019-12-11 Tom Tromey <tom@tromey.com>
599
600 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
601 (struct tui_win_info) <can_box>: Update.
602
603 2019-12-11 Tom Tromey <tom@tromey.com>
604
605 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
606 method.
607 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
608 method.
609 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
610 method.
611 (struct tui_win_info) <max_height>: Now override.
612
613 2019-12-11 Joel Brobecker <brobecker@adacore.com>
614
615 * NEWS: Create a new section for the next release branch.
616 Rename the section of the current branch, now that it has
617 been cut.
618
619 2019-12-11 Joel Brobecker <brobecker@adacore.com>
620
621 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
622 * version.in: Bump version to 10.0.50.DATE-git.
623
624 2019-12-11 Tom Tromey <tromey@adacore.com>
625
626 PR build/25268:
627 * gdbsupport/thread-pool.c (set_thread_name): New function.
628 (thread_pool::set_thread_count): Don't call pthread_setname_np.
629 (thread_pool::thread_function): Call set_thread_name.
630
631 2019-12-11 Tom Tromey <tromey@adacore.com>
632
633 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
634 bfd_get_signed_8.
635
636 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
637
638 * NEWS: Document -raw-values option and the related setting commands.
639 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
640 only set it on when /r is given.
641 * valprint.c (value_print_option_defs): New element raw-values.
642 * Makefile.in: Add the new file.
643
644 2019-12-10 Christian Biesinger <cbiesinger@google.com>
645
646 * gdbsupport/safe-strerror.c: Supress the unused function warning
647 for select_strerror_r.
648
649 2019-12-10 Christian Biesinger <cbiesinger@google.com>
650
651 * config.in: Regenerate.
652 * configure: Regenerate.
653 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
654 safe_strerror instead of strerror.
655 * gdbsupport/common.m4: Don't check for strerror.
656 * gdbsupport/safe-strerror.c: Support both the glibc version
657 of strerror_r and the XSI version.
658
659 2019-12-10 Tom Tromey <tromey@adacore.com>
660
661 * ada-typeprint.c (print_choices): Use a single "?".
662 (print_variant_part): Print "?" if the discriminant name
663 is not known.
664
665 2019-12-10 George Barrett <bob@bob131.so>
666
667 Fix scripted probe breakpoints.
668 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
669 declaration forward.
670 (breakpoint_ops_for_event_location_type)
671 (breakpoint_ops_for_event_location): Add function definitions.
672 (break_command_1, trace_command): Use
673 breakpoint_ops_for_event_location.
674 * breakpoint.h (breakpoint_ops_for_event_location): Add function
675 declarations.
676 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
677 breakpoint_ops_for_event_location.
678 * python/py-breakpoint.c (bppy_init): Use
679 breakpoint_ops_for_event_location.
680
681 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
682
683 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
684 when ranking an lvalue argument for an rvalue parameter.
685
686 2019-12-08 Wataru Ashihara <wataash@wataash.com>
687
688 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
689 template argument for scoped_restore_tmpl from bool to int.
690
691 2019-12-07 Keith Seitz <keiths@redhat.com>
692
693 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
694 (build_id_to_debug_bfd): Make static, rewriting to use
695 build_id_to_bfd_suffix.
696 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
697 adding `suffix' parameter. Append SUFFIX to file names
698 when searching for matching files.
699 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
700 (build_id_to_exec_bfd): Likewise.
701 * build-id.h (build_id_to_debug_bfd): Clarify that function
702 searches for BFD of debug info file.
703 (build_id_to_exec_bfd): Declare.
704 * corelow.c: Include build-id.h.
705 (locate_exec_from_corefile_build_id): New function.
706 (core_target_open): If no executable BFD is found,
707 search for a core file BFD using build-id.
708
709 2019-12-06 Christian Biesinger <cbiesinger@google.com>
710
711 * bcache.c: Put in namespace gdb.
712 * bcache.h: Likewise.
713 * gdbtypes.c (check_types_worklist): Update.
714 (types_deeply_equal): Update.
715 * macrotab.c (struct macro_table) <bcache>: Update.
716 (new_macro_table): Update.
717 * macrotab.h (struct bcache): Put this forward declaration
718 inside namespace gdb.
719 (new_macro_table): Update.
720 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
721 Update.
722 <macro_cache>: Update.
723 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
724
725 2019-12-06 Tom de Vries <tdevries@suse.de>
726
727 PR symtab/24971
728 * block.c (best_symbol, better_symbol): New function.
729 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
730 decl.
731
732 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
733
734 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
735 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
736 for ranking see-through reference cases.
737
738 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
739 * stack.c (faas_command): Check a command is provided.
740 * thread.c (taas_command, tfaas_command): Likewise.
741
742 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
743 * inferior.c (prune_inferiors): Only call delete_inferior,
744 Do not modify the inferior list.
745
746 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
747
748 * c-exp.y: Update calls to lookup_typename,
749 lookup_signed_typename and lookup_unsigned_typename.
750 * c-lang.c (evaluate_subexp_c): Likewise.
751 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
752 Likewise.
753 * eval.c (binop_promote): Likewise.
754 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
755 (lookup_unsigned_typename): Likewise.
756 (lookup_signed_typename): Likewise.
757 * gdbtypes.h (lookup_unsigned_typename): Likewise.
758 (lookup_signed_typename): Likewise.
759 (lookup_typename): Likewise.
760 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
761 lookup_typename, lookup_signed_typename,
762 lookup_unsigned_typename.
763 * m2-exp.y: Likewise.
764 * printcmd.c (printf_wide_c_string): Likewise.
765 (ui_printf): Likewise.
766 * python/py-type.c (typy_lookup_typename): Likewise.
767 * python/py-xmethods.c (python_xmethod_worker::invoke):
768 Likewise.
769 * rust-exp.y: Likewise.
770
771 2019-12-04 Christian Biesinger <cbiesinger@google.com>
772
773 * configure.nat (obsd64): Add missing files x86-nat.o and
774 nat/x86-dregs.o.
775
776 2019-12-04 Tom Tromey <tom@tromey.com>
777
778 * valprint.c (val_print_string): Use metadata_style.
779 * go-valprint.c (print_go_string): Use metadata style.
780 * p-valprint.c (pascal_object_print_static_field): Use metadata
781 style.
782 * cp-valprint.c (cp_print_static_field): Use metadata style.
783
784 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
785 Chris January <chris.january@arm.com>
786
787 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
788 tokens.
789 (typebase): New patterns for complex, single/double precision, and
790 single/double complex.
791 (f77_keywords): Change token for complex keyword, and add single,
792 double, and precision keywords.
793
794 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
795
796 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
797 "info io_registers".
798
799 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * regcache.c (cooked_read_test): Initialize thread list of
802 mock_inferior.
803
804 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
805
806 * aarch64-linux-tdep.c: Remove includes.
807
808 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
809
810 * aarch64-tdep.c: Remove includes.
811
812 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
813
814 * filtered-iterator.h (filtered_iterator) <operator==,
815 operator!=>: Compare wrapped iterators, not wrapped pointers.
816 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
817 unittests/filtered_iterator-selftests.c.
818 * unittests/filtered_iterator-selftests.c: New file.
819
820 2019-12-04 Tom Tromey <tromey@adacore.com>
821
822 * gdbtypes.c (create_range_type): Inherit endianity
823 from base type.
824
825 2019-12-04 Tom Tromey <tromey@adacore.com>
826
827 * ada-lang.c (decode_constrained_packed_array)
828 (ada_value_assign, value_assign_to_component): Update.
829 * dwarf2loc.c (rw_pieced_value, access_memory)
830 (dwarf2_compile_expr_to_ax): Update.
831 * dwarf2read.c (dwarf2_add_field): Update.
832 * eval.c (evaluate_subexp_standard): Update.
833 * gdbarch.c, gdbarch.h: Rebuild.
834 * gdbarch.sh (bits_big_endian): Remove.
835 * gdbtypes.h (union field_location): Update comment.
836 * target-descriptions.c (make_gdb_type): Update.
837 * valarith.c (value_bit_index): Update.
838 * value.c (struct value) <bitpos>: Update comment.
839 (unpack_bits_as_long, modify_field): Update.
840 * value.h (value_bitpos): Update comment.
841
842 2019-12-04 Tom Tromey <tromey@adacore.com>
843
844 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
845 endian-ness.
846
847 2019-12-04 Tom Tromey <tromey@adacore.com>
848
849 * dwarf2read.c (dwarf2_init_float_type)
850 (dwarf2_init_complex_target_type): Add byte_order parameter.
851 (read_base_type): Compute byte order earlier.
852 * gdbtypes.c (init_float_type): Add byte_order parameter.
853 * gdbtypes.h (init_float_type): Add byte_order parameter.
854
855 2019-12-04 Tom Tromey <tromey@adacore.com>
856
857 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
858
859 2019-12-04 Tom Tromey <tromey@adacore.com>
860
861 * dwarf2read.c (process_structure_scope): Initialize
862 "discr_offset".
863
864 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
867 add it into the search spec.
868 (parse_max_results_option): New function.
869 (mi_info_functions_or_variables): Parse -max-results flag and pass
870 it to mi_symbol_info.
871 (mi_cmd_symbol_info_modules): Likewise.
872 (mi_cmd_symbol_info_types): Likewise.
873 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
874 return type to bool, change result container into a set, and don't
875 add new results if we have enough already.
876 (global_symbol_searcher::add_matching_msymbols): Change return
877 type to bool, and don't add new results if we have enough already.
878 (sort_search_symbols_remove_dups): Delete.
879 (global_symbol_searcher::search): Early exit from search loop when
880 we have enough results. Use a std::set to collect the results
881 from calling add_matching_symbols.
882 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
883 member function.
884 (global_symbol_searcher) <m_max_search_results>: New member
885 variable.
886 (global_symbol_searcher) <add_matching_symbols>: Update header
887 comment and change return type to bool.
888 (global_symbol_searcher) <add_matching_msymbols>: Update header
889 comment and change return type to bool.
890
891 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
892
893 * symtab.c (symbol_search::compare_search_syms): Update header
894 comment.
895 (global_symbol_searcher::is_suitable_msymbol): New function.
896 (global_symbol_searcher::expand_symtabs): New function.
897 (global_symbol_searcher::add_matching_symbols): New function.
898 (global_symbol_searcher::add_matching_msymbols): New function.
899 (global_symbol_searcher::search): Move most of the content
900 into the new functions above, and call them as needed.
901 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
902 function.
903 (global_symbol_searcher) <add_matching_symbols>: New member
904 function.
905 (global_symbol_searcher) <add_matching_msymbols>: New member
906 function.
907 (global_symbol_searcher) <is_suitable_msymbol>: New member
908 function.
909
910 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
911
912 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
913 -symbol-info-module-variables entries.
914 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
915 (mi_cmd_symbol_info_module_variables): Declare.
916 * mi/mi-symbol-cmds.c
917 (module_symbol_search_iterator): New typedef.
918 (output_module_symbols_in_single_module_and_file): New function.
919 (output_module_symbols_in_single_module): New function.
920 (mi_info_module_functions_or_variables): New function.
921 (mi_cmd_symbol_info_module_functions): New function.
922 (mi_cmd_symbol_info_module_variables): New function.
923 * NEWS: Mention new MI command.
924
925 2019-12-03 Christian Biesinger <cbiesinger@google.com>
926
927 * bcache.c (hash): Remove.
928 (hash_continue): Remove.
929 * bcache.h (hash): Remove.
930 (hash_continue): Remove.
931 (struct bcache) <ctor>: Update.
932 * psymtab.c (psymbol_hash): Update.
933 * stabsread.c (hashname): Update.
934 * utils.h (fast_hash): Add an argument for a start value,
935 defaulting to zero.
936
937 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
938 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
939 (destroy_block_symbol_cache): New function.
940 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
941 (resize_symbol_cache): Likewise.
942
943 2019-12-02 Tom Tromey <tom@tromey.com>
944
945 * unittests/tui-selftests.c (run_tests): Make conditional.
946 (_initialize_tui_selftest): Make conditional.
947
948 2019-12-02 Christian Biesinger <cbiesinger@google.com>
949
950 * aix-thread.c (debug_aix_thread): Change type to bool.
951
952 2019-12-02 Luis Machado <luis.machado@linaro.org>
953
954 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
955
956 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * dwarf2read.c (read_tag_string_type): Read the fields required to
959 make a dynamic string, and possibly create a dynamic range for the
960 string.
961 (attr_to_dynamic_prop): Setup is_reference based on the type of
962 attribute being processed.
963 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
964 (resolve_dynamic_array): Rename to...
965 (resolve_dynamic_array_or_string): ...this, update header comment,
966 and accept TYPE_CODE_STRING.
967 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
968
969 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
970
971 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
972 of its implementation from...
973 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
974 the new function.
975
976 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
977
978 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
979 create a range with stride where appropriate.
980 * f-valprint.c: Include 'gdbarch.h'.
981 (f77_print_array_1): Take the stride into account when walking the
982 array. Also convert the stride into addressable units.
983 * gdbtypes.c (create_range_type): Initialise the stride to
984 constant zero.
985 (create_range_type_with_stride): New function, initialise the
986 range as normal, and then setup the stride.
987 (has_static_range): Include the stride here. Also change the
988 return type to bool.
989 (create_array_type_with_stride): Consider the range stride if the
990 array isn't given its own stride.
991 (resolve_dynamic_range): Resolve the stride if needed.
992 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
993 (struct range_bounds) <flag_is_byte_stride>: New member variable.
994 (TYPE_BIT_STRIDE): Define.
995 (TYPE_ARRAY_BIT_STRIDE): Define.
996 (create_range_type_with_stride): Declare.
997 * valarith.c (value_subscripted_rvalue): Take range stride into
998 account when walking the array.
999
1000 2019-12-01 Tom Tromey <tom@tromey.com>
1001
1002 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1003 specially.
1004
1005 2019-12-01 Tom Tromey <tom@tromey.com>
1006
1007 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1008 \0.
1009 * unittests/tui-selftests.c: New file.
1010 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1011
1012 2019-12-01 Tom Tromey <tom@tromey.com>
1013
1014 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1015
1016 2019-12-01 Tom Tromey <tom@tromey.com>
1017
1018 * NEWS: Document new settings.
1019 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1020 * tui/tui-win.c (_initialize_tui_win): Add border style
1021 observers.
1022 * tui/tui-io.h (tui_apply_style): Declare.
1023 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1024 longer static.
1025 (apply_ansi_escape, tui_set_reverse_mode): Update.
1026 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1027 Add "skip_intensity" parameter.
1028 <changed>: New member.
1029 <do_set_value>: Declare.
1030 (tui_border_style, tui_active_border_style): Declare.
1031 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1032 globals.
1033 (cli_style_option): Initialize "changed".
1034 (cli_style_option::do_set_value): New function.
1035 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1036 parameter. Update.
1037 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1038 (_initialize_cli_style): Update. Create TUI border style
1039 commands.
1040
1041 2019-12-01 Tom Tromey <tom@tromey.com>
1042
1043 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1044 parameter.
1045 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1046 parameter.
1047 * tui/tui-win.h (compact_source): Declare.
1048 * tui/tui-win.c (compact_source): New global.
1049 (tui_set_compact_source, tui_show_compact_source): New functions.
1050 (_initialize_tui_win): Add "compact-source" setting.
1051 * tui/tui-source.c (tui_source_window::set_contents): Handle
1052 compact_source setting.
1053 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1054 * NEWS: Document new setting.
1055
1056 2019-11-30 Tom Tromey <tom@tromey.com>
1057
1058 * dwarf2read.c (dwarf2_add_field): Include field offset when
1059 computing variant part length.
1060
1061 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1062 * NEWS: Mention define-prefix. Tell that command names can now
1063 contain a . character.
1064
1065 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1066
1067 * command.h (valid_cmd_char_p): Declare.
1068 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1069 the check of valid command char.
1070 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1071 valid_cmd_char_p.
1072 * cli/cli-script.c (validate_comname): Likewise.
1073 * completer.c (gdb_completer_command_word_break_characters):
1074 Do not remove . from the word break char, update comments.
1075 (complete_line_internal_1): Use valid_cmd_char_p.
1076 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1077 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1078
1079 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1080
1081 * cli/cli-script.c (do_define_command): Ensure a redefined
1082 prefix command is kept as a prefix command.
1083 (define_prefix_command): New function.
1084 (show_user_1): Report user defined prefixes.
1085 (_initialize_cli_script): Create the new 'define-prefix' command.
1086 Add completers for 'define' and 'document'.
1087 * top.c (execute_command): If command is a user-defined prefix only
1088 command, report the list of commands for this prefix command.
1089
1090 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1091
1092 * valops.c (find_oload_champ): Improve debug output.
1093
1094 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1095
1096 * valops.c (find_oload_champ): Print part of debug messages
1097 before the badness vector is std::move'd.
1098
1099 2019-11-28 Tom Tromey <tom@tromey.com>
1100
1101 * value.c (creal_internal_fn): Fix comment.
1102
1103 2019-11-28 Tom Tromey <tom@tromey.com>
1104
1105 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1106 flag_bound_evaluated>: Now unsigned.
1107
1108 2019-11-28 Tom Tromey <tom@tromey.com>
1109
1110 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1111 declare.
1112
1113 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1114
1115 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1116 debug output.
1117 * jit.c (jit_unregister_code): Add debug print to match
1118 `jit_register_code`.
1119
1120 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1121
1122 * NEWS: Mention the new multithreaded symbol loading.
1123
1124 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1125
1126 * maint.c (n_worker_threads): Default to 0.
1127 (worker_threads_disabled): New function.
1128 * maint.h (worker_threads_disabled): New function.
1129 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1130 here if worker_threads_disabled () is true.
1131 (minimal_symbol_reader::install): Skip all threading if
1132 worker_threads_disabled () is true.
1133
1134 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1135
1136 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1137 hash code if possible.
1138 (add_minsym_to_demangled_hash_table): Likewise.
1139 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1140 on the background thread.
1141 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1142 Add these fields.
1143
1144 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1145
1146 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1147 of the mangled name on the background thread.
1148 * symtab.c (symbol_set_names): Allow passing in the hash of the
1149 linkage_name.
1150 * symtab.h (symbol_set_names): Likewise.
1151
1152 2019-11-27 Kevin Buettner <kevinb@redhat.com>
1153
1154 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1155 physnames are computed for inherited DIEs.
1156
1157 2019-11-27 Tom Tromey <tromey@adacore.com>
1158
1159 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1160 backslashes.
1161 * cp-support.c: Remove unnecessary backslashes.
1162
1163 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1164
1165 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1166 with sym->set_linkage_name.
1167 * coffread.c (coff_read_enum_type): Likewise.
1168 * mdebugread.c (parse_symbol): Likewise.
1169 * stabsread.c (patch_block_stabs): Likewise.
1170 (define_symbol): Likewise.
1171 (read_enum_type): Likewise.
1172 (common_block_end): Likewise.
1173 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1174 function.
1175 (SYMBOL_SET_LINKAGE_NAME): Remove.
1176 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1177 with sym->set_linkage_name.
1178
1179 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1180
1181 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1182 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1183 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1184 * NEWS: Mention new MI command.
1185
1186 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1187
1188 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1189 '-symbol-info-types', and '-symbol-info-variables'.
1190 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1191 (mi_cmd_symbol_info_types): Declare.
1192 (mi_cmd_symbol_info_variables): Declare.
1193 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1194 (output_debug_symbol): New function.
1195 (output_nondebug_symbol): New function.
1196 (mi_symbol_info): New function.
1197 (mi_info_functions_or_variables): New function.
1198 (mi_cmd_symbol_info_functions): New function.
1199 (mi_cmd_symbol_info_types): New function.
1200 (mi_cmd_symbol_info_variables): New function.
1201 * NEWS: Mention new commands.
1202
1203 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * symtab.c (symbol_to_info_string): New function, most content
1206 moved from print_symbol_info, but updated to return a std::string.
1207 (print_symbol_info): Update to use symbol_to_info_string and print
1208 returned string.
1209 * symtab.h (symbol_to_info_string): Declare new function.
1210
1211 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1212
1213 * python/python.c (gdbpy_rbreak): Convert to using
1214 global_symbol_searcher.
1215 * symtab.c (file_matches): Convert return type to bool, change
1216 file list to std::vector, update header comment.
1217 (search_symbols): Rename to...
1218 (global_symbol_searcher::search): ...this and update now its
1219 a member function of global_symbol_searcher. Take account of the
1220 changes to file_matches.
1221 (symtab_symbol_info): Convert to using global_symbol_searcher.
1222 (rbreak_command): Likewise.
1223 (search_module_symbols): Likewise.
1224 * symtab.h (enum symbol_search): Update comment.
1225 (search_symbols): Remove declaration.
1226 (class global_symbol_searcher): New class.
1227
1228 2019-11-26 Tom Tromey <tromey@adacore.com>
1229
1230 * cp-support.c (_initialize_cp_support): Conditionally initialize
1231 gdb_demangle_attempt_core_dump.
1232
1233 2019-11-26 Tom Tromey <tom@tromey.com>
1234
1235 * python/py-function.c (fnpy_init): Update.
1236 * value.h (add_internal_function): Adjust declaration.
1237 * value.c (function_destroyer): Remove.
1238 (do_add_internal_function): Don't set destroyer or copy name.
1239 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1240 Set name_allocated.
1241 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1242 (cmdpy_init): Set name_allocated.
1243 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1244 member.
1245 (~cmd_list_element): Free "name" if needed.
1246
1247 2019-11-26 Tom Tromey <tom@tromey.com>
1248
1249 * value.h (add_internal_function): Add new overload. Move
1250 documentation from value.h.
1251 * value.c (do_add_internal_function): New function.
1252 (add_internal_function): Use it. Add new overload.
1253 (function_destroyer): Don't free doc.
1254 * python/py-function.c (fnpy_init): Update.
1255
1256 2019-11-26 Tom Tromey <tom@tromey.com>
1257
1258 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1259 (cmdpy_init): Set "doc_allocated".
1260
1261 2019-11-26 Tom Tromey <tom@tromey.com>
1262
1263 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1264 name of worker thread.
1265 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1266 pthread_setname_np.
1267 * configure, config.in: Rebuild.
1268
1269 2019-11-26 Tom Tromey <tom@tromey.com>
1270
1271 * python/python.c (class gdbpy_gil): New.
1272 (struct gdbpy_event): Add constructor, destructor, operator().
1273 (gdbpy_post_event): Use run_on_main_thread.
1274 (gdbpy_initialize_events): Remove.
1275 (do_start_initialization): Update.
1276
1277 2019-11-26 Tom Tromey <tom@tromey.com>
1278
1279 * NEWS: Add entry.
1280 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1281 commands. Call update_thread_pool_size.
1282 (update_thread_pool_size, maintenance_set_worker_threads): New
1283 functions.
1284 (n_worker_threads): New global.
1285
1286 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1287 Tom Tromey <tom@tromey.com>
1288
1289 * minsyms.c (minimal_symbol_reader::install): Use
1290 parallel_for_each.
1291 * gdbsupport/parallel-for.h: New file.
1292 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1293
1294 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1295 Tom Tromey <tom@tromey.com>
1296
1297 * gdbsupport/thread-pool.h: New file.
1298 * gdbsupport/thread-pool.c: New file.
1299 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1300 (HFILES_NO_SRCDIR): Add thread-pool.h.
1301
1302 2019-11-26 Tom Tromey <tom@tromey.com>
1303
1304 * event-top.h (thread_local_segv_handler): Declare.
1305 * event-top.c (thread_local_segv_handler): New global.
1306 (install_handle_sigsegv, handle_sigsegv): New functions.
1307 (async_init_signals): Install SIGSEGV handler.
1308 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1309 thread-local.
1310 (report_failed_demangle): New function.
1311 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1312 handler-setting code, instead use segv_handler. Run warning code
1313 on main thread.
1314
1315 2019-11-26 Tom Tromey <tom@tromey.com>
1316
1317 * run-on-main-thread.c: New file.
1318 * run-on-main-thread.h: New file.
1319 * unittests/main-thread-selftests.c: New file.
1320 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1321 main-thread-selftests.c.
1322 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1323 (COMMON_SFILES): Add run-on-main-thread.c.
1324
1325 2019-11-26 Tom Tromey <tom@tromey.com>
1326
1327 * main.c (setup_alternate_signal_stack): Remove.
1328 (captured_main_1): Use gdb::alternate_signal_stack.
1329 * gdbsupport/alt-stack.h: New file.
1330
1331 2019-11-26 Tom Tromey <tom@tromey.com>
1332
1333 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1334 Remove comment.
1335 (save_original_signals_state, restore_original_signals_state): Use
1336 gdb_sigmask.
1337 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1338 (_initialize_linux_nat): Use gdb_sigmask.
1339 * guile/guile.c (_initialize_guile): Use block_signals.
1340 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1341 * gdbsupport/gdb-sigmask.h: New file.
1342 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1343 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1344 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1345 pthread_sigmask.
1346 * configure, config.in: Rebuild.
1347 * gdbsupport/block-signals.h: New file.
1348
1349 2019-11-26 Tom Tromey <tom@tromey.com>
1350
1351 * acinclude.m4: Include ax_pthread.m4.
1352 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1353 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1354 (CLIBS): Use PTHREAD_LIBS.
1355 (aclocal_m4_deps): Add ax_pthread.m4.
1356 * config.in, configure: Rebuild.
1357 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1358
1359 2019-11-26 Tom Tromey <tom@tromey.com>
1360
1361 * symtab.h (struct minimal_symbol) <name_set>: New member.
1362 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1363 Don't call symbol_set_names.
1364 (minimal_symbol_reader::install): Call symbol_set_names.
1365
1366 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1367
1368 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1369 restore_active_ext_lang, as GIL is needed for (indirectly)
1370 called PyOS_InterruptOccurred.
1371
1372 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1373
1374 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1375 definition.
1376
1377 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1378
1379 * remote-sim.c (simulator_command): Make static, remove
1380 declaration.
1381
1382 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1383
1384 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1385 static.
1386 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1387 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1388 (main): Likewise.
1389 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1390 (main): Likewise.
1391 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1392 (main): Likewise.
1393 * unittests/basic_string_view/element_access/char/1.cc (test01):
1394 Likewise.
1395 (main): Likewise.
1396 * unittests/basic_string_view/element_access/char/empty.cc (main):
1397 Likewise.
1398 * unittests/basic_string_view/element_access/char/front_back.cc
1399 (test01): Likewise.
1400 (main): Likewise.
1401 * unittests/basic_string_view/inserters/char/2.cc (test05):
1402 Likewise.
1403 (main): Likewise.
1404 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1405 (test01): Likewise.
1406 (main): Likewise.
1407 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1408 (test01): Likewise.
1409 (main): Likewise.
1410 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1411 Likewise.
1412 * unittests/basic_string_view/operations/compare/char/1.cc
1413 (test01): Likewise.
1414 (main): Likewise.
1415 * unittests/basic_string_view/operations/compare/char/13650.cc
1416 (test01): Likewise.
1417 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1418 Likewise.
1419 (main): Likewise.
1420 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1421 Likewise.
1422 (main): Likewise.
1423 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1424 Likewise.
1425 (main): Likewise.
1426 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1427 Likewise.
1428 (main): Likewise.
1429 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1430 Likewise.
1431 (main): Likewise.
1432 * unittests/basic_string_view/operations/find/char/4.cc (main):
1433 Likewise.
1434 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1435 Likewise.
1436 (main): Likewise.
1437 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1438 Likewise.
1439 (main): Likewise.
1440 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1441 Likewise.
1442 (main): Likewise.
1443 * unittests/basic_string_view/operations/substr/char/1.cc
1444 (test01): Likewise.
1445 (main): Likewise.
1446 * unittests/basic_string_view/operators/char/2.cc (main):
1447 Likewise.
1448 * unittests/optional/assignment/1.cc (test): Likewise.
1449 * unittests/optional/assignment/2.cc (test): Likewise.
1450 * unittests/optional/assignment/3.cc (test): Likewise.
1451 * unittests/optional/assignment/4.cc (test): Likewise.
1452 * unittests/optional/assignment/5.cc (test): Likewise.
1453 * unittests/optional/assignment/6.cc (test): Likewise.
1454 * unittests/optional/assignment/7.cc (test): Likewise.
1455 * unittests/optional/cons/copy.cc (test): Likewise.
1456 * unittests/optional/cons/default.cc (test): Likewise.
1457 * unittests/optional/cons/move.cc (test): Likewise.
1458 * unittests/optional/cons/value.cc (test): Likewise.
1459 * unittests/optional/in_place.cc (test): Likewise.
1460 * unittests/optional/observers/1.cc (test): Likewise.
1461 * unittests/optional/observers/2.cc (test): Likewise.
1462
1463 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1464
1465 * tui-win.h (tui_set_var_cmd): Remove.
1466 * tui-win.c (tui_set_var_cmd): Make static.
1467
1468 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1469
1470 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1471 rbreak_command_wrapper): Remove.
1472 * symtab.c (rbreak_command_wrapper): Remove.
1473
1474 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1475
1476 * inferior.h (info_terminal_command): Remove declaration.
1477 * inflow.c (info_terminal_command): Make static.
1478
1479 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1480
1481 * inferior.c (exit_inferior_silent): Remove.
1482
1483 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1484
1485 * dictionary.c (dict_empty, mdict_empty): Remove.
1486 * dictionary.c (mdict_empty): Remove.
1487
1488 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1489
1490 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1491 (arc_insn_get_memory_offset): Likewise.
1492 (arc_insn_dump): Likewise.
1493 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1494 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1495 * dictionary.c (dict_iterator_next): Likewise.
1496 (dict_iter_match_first): Likewise.
1497 (dict_iter_match_next): Likewise.
1498 * f-lang.c (evaluate_subexp_f): Likewise.
1499 * hppa-tdep.c (hppa_read_pc): Likewise.
1500 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1501 * parse.c (write_exp_elt_msym): Likewise.
1502 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1503 * remote.c (remote_packet_size): Likewise.
1504 (remote_notif_stop_parse): Likewise.
1505 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1506 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1507 * source.c (prepare_path_for_appending): Likewise.
1508 * sparc64-linux-tdep.c
1509 (sparc64_linux_handle_segmentation_fault); Likewise.
1510 * stack.c (frame_selection_by_function_completer): Likewise.
1511
1512 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1513
1514 * completer.c (set_gdb_completion_word_break_characters):
1515 Remove.
1516
1517 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1518
1519 * dwarf-index-write.c: Include dwarf-index-write.h.
1520 * mi/mi-interp.c: Include mi/mi-interp.h.
1521
1522 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1523
1524 * aarch32-tdep.c: Include aarch32-tdep.h.
1525 * aarch32-tdep.h: Forward-declare struct target_desc.
1526
1527 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1528
1529 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1530 strerror.
1531 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1532 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1533
1534 2019-11-25 Tom de Vries <tdevries@suse.de>
1535
1536 * contrib/words.sh: Add -c option.
1537
1538 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1539
1540 * solib.c (solib_find_1): Change int to bool.
1541 (exec_file_find): Change int to bool.
1542 (solib_find): Change int to bool.
1543 (solib_read_symbols): Change int to bool.
1544 (solib_used): Change int to bool.
1545 (solib_add): Change int to bool.
1546 (info_sharedlibrary_command): Change int to bool.
1547 (solib_contains_address_p): Change int to bool.
1548 (solib_keep_data_in_core): Change int to bool.
1549 (in_solib_dynsym_resolve_code): Change int to bool.
1550 (reload_shared_libraries_1): Change int to bool.
1551 (gdb_sysroot_changed): Change int to bool.
1552 * solib.h (solib_read_symbols): Change int to bool.
1553 (solib_contains_address_p): Change int to bool.
1554 (solib_keep_data_in_core): Change int to bool.
1555 (in_solib_dynsym_resolve_code): Change int to bool.
1556 (libpthread_name_p): Change int to bool.
1557
1558 2019-11-25 Luis Machado <luis.machado@linaro.org>
1559
1560 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1561 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1562 (remote_packet_max_chars): New static global.
1563 (show_remote_packet_max_chars): New function.
1564 (remote_target::putpkt_binary): Adjust to use new
1565 remote_packet_max_chars option.
1566 (remote_target::getpkt_or_notif_sane_1): Likewise.
1567 (_initialize_remote): Register new remote-packet-max-chars option.
1568
1569 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1570
1571 * m68k-linux-nat.c: Include gdbarch.h.
1572
1573 2019-11-24 Tom Tromey <tom@tromey.com>
1574
1575 * symfile.c (read_symbols): Update.
1576 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1577 bool.
1578 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1579 (psym_lookup_symbol, psym_find_last_source_symtab)
1580 (psym_forget_cached_source_info, psym_print_stats)
1581 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1582 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1583 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1584 (psym_find_compunit_symtab_by_address)
1585 (maintenance_print_psymbols, maintenance_info_psymtabs)
1586 (maintenance_check_psymtabs): Update.
1587 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1588 bool.
1589
1590 2019-11-22 Tom Tromey <tom@tromey.com>
1591
1592 * observable.h: Update comments.
1593
1594 2019-11-22 Tom Tromey <tromey@adacore.com>
1595
1596 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1597 (print_ada_task_info): Don't try to fetch thread id if task is not
1598 alive.
1599
1600 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1601
1602 * ada-exp.y: Update.
1603 * ada-lang.c (sort_choices): Update.
1604 (ada_print_symbol_signature): Update.
1605 (resolve_subexp): Update.
1606 (ada_parse_renaming): Update.
1607 (ada_read_renaming_var_value): Update.
1608 (lesseq_defined_than): Update.
1609 (remove_extra_symbols): Update.
1610 (remove_irrelevant_renamings): Update.
1611 (ada_add_block_symbols): Update.
1612 (ada_collect_symbol_completion_matches): Update.
1613 (ada_is_renaming_symbol): Update.
1614 (aggregate_assign_from_choices): Update.
1615 (ada_evaluate_subexp): Update.
1616 (ada_has_this_exception_support): Update.
1617 (ada_is_non_standard_exception_sym): Update.
1618 (ada_add_exceptions_from_frame): Update.
1619 (ada_add_global_exceptions): Update.
1620 (ada_print_subexp): Update.
1621 * ax-gdb.c (gen_var_ref): Update.
1622 (gen_maybe_namespace_elt): Update.
1623 (gen_expr_for_cast): Update.
1624 (gen_expr): Update.
1625 * block.h: Update.
1626 * blockframe.c (find_pc_partial_function): Update.
1627 * breakpoint.c (print_breakpoint_location): Update.
1628 (update_static_tracepoint): Update.
1629 * btrace.c (ftrace_print_function_name): Update.
1630 (ftrace_function_switched): Update.
1631 * buildsym.c (find_symbol_in_list): Update.
1632 * c-exp.y: Update.
1633 * c-typeprint.c (c_print_typedef): Update.
1634 (c_type_print_template_args): Update.
1635 * cli/cli-cmds.c (edit_command): Update.
1636 (list_command): Update.
1637 (print_sal_location): Update.
1638 * coffread.c (patch_opaque_types): Update.
1639 (process_coff_symbol): Update.
1640 (coff_read_enum_type): Update.
1641 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1642 (convert_one_symbol): Update.
1643 (hash_symname): Update.
1644 (eq_symname): Update.
1645 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1646 * compile/compile-cplus-types.c (debug_print_scope): Update.
1647 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1648 * compile/compile-object-load.c (get_out_value_type): Update.
1649 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1650 (search_symbol_list): Update.
1651 (cp_lookup_symbol_imports_or_template): Update.
1652 * cp-support.c (overload_list_add_symbol): Update.
1653 * ctfread.c (psymtab_to_symtab): Update.
1654 * dbxread.c (cp_set_block_scope): Update.
1655 * dictionary.c (iter_match_first_hashed): Update.
1656 (iter_match_next_hashed): Update.
1657 (insert_symbol_hashed): Update.
1658 (iter_match_next_linear): Update.
1659 * dictionary.h: Update.
1660 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1661 (locexpr_describe_location_piece): Update.
1662 (locexpr_describe_location_1): Update.
1663 (locexpr_generate_c_location): Update.
1664 (loclist_describe_location): Update.
1665 (loclist_generate_c_location): Update.
1666 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1667 (read_func_scope): Update.
1668 (process_enumeration_scope): Update.
1669 (new_symbol): Update.
1670 (dwarf2_const_value): Update.
1671 (dwarf2_symbol_mark_computed): Update.
1672 * eval.c (evaluate_funcall): Update.
1673 (evaluate_subexp_standard): Update.
1674 * expprint.c (print_subexp_standard): Update.
1675 (dump_subexp_body_standard): Update.
1676 * f-valprint.c (info_common_command_for_block): Update.
1677 * findvar.c (get_hosting_frame): Update.
1678 (default_read_var_value): Update.
1679 * go-lang.c (go_symbol_package_name): Update.
1680 * guile/scm-block.c (bkscm_print_block_smob): Update.
1681 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1682 (gdbscm_symbol_name): Update.
1683 (gdbscm_symbol_linkage_name): Update.
1684 (gdbscm_symbol_print_name): Update.
1685 * infcall.c (get_function_name): Update.
1686 * infcmd.c (jump_command): Update.
1687 (finish_command): Update.
1688 * infrun.c (insert_exception_resume_breakpoint): Update.
1689 * linespec.c (canonicalize_linespec): Update.
1690 (create_sals_line_offset): Update.
1691 (convert_linespec_to_sals): Update.
1692 (complete_label): Update.
1693 (find_label_symbols_in_block): Update.
1694 * m2-typeprint.c (m2_print_typedef): Update.
1695 * mdebugread.c (mdebug_reg_to_regnum): Update.
1696 (parse_symbol): Update.
1697 (mylookup_symbol): Update.
1698 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1699 (list_args_or_locals): Update.
1700 * objc-lang.c (compare_selectors): Update.
1701 (info_selectors_command): Update.
1702 (compare_classes): Update.
1703 (info_classes_command): Update.
1704 (find_imps): Update.
1705 * p-typeprint.c (pascal_print_typedef): Update.
1706 * printcmd.c (build_address_symbolic): Update.
1707 (info_address_command): Update.
1708 (print_variable_and_value): Update.
1709 * python/py-framefilter.c (extract_sym): Update.
1710 (py_print_single_arg): Update.
1711 * python/py-symbol.c (sympy_str): Update.
1712 (sympy_get_name): Update.
1713 (sympy_get_linkage_name): Update.
1714 * python/python.c (gdbpy_rbreak): Update.
1715 * record-btrace.c (btrace_get_bfun_name): Update.
1716 (btrace_call_history): Update.
1717 * rust-lang.c (rust_print_typedef): Update.
1718 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1719 * stabsread.c (stab_reg_to_regnum): Update.
1720 (define_symbol): Update.
1721 (read_enum_type): Update.
1722 (common_block_end): Update.
1723 (cleanup_undefined_types_1): Update.
1724 (scan_file_globals): Update.
1725 * stack.c (print_frame_arg): Update.
1726 (print_frame_args): Update.
1727 (find_frame_funname): Update.
1728 (info_frame_command_core): Update.
1729 (iterate_over_block_locals): Update.
1730 (print_block_frame_labels): Update.
1731 (do_print_variable_and_value): Update.
1732 (iterate_over_block_arg_vars): Update.
1733 (return_command): Update.
1734 * symmisc.c (dump_symtab_1): Update.
1735 (print_symbol): Update.
1736 * symtab.c (eq_symbol_entry): Update.
1737 (symbol_cache_dump): Update.
1738 (lookup_language_this): Update.
1739 (find_pc_sect_line): Update.
1740 (skip_prologue_sal): Update.
1741 (symbol_search::compare_search_syms): Update.
1742 (treg_matches_sym_type_name): Update.
1743 (search_symbols): Update.
1744 (print_symbol_info): Update.
1745 (rbreak_command): Update.
1746 (completion_list_add_symbol): Update.
1747 (find_gnu_ifunc): Update.
1748 (get_symbol_address): Update.
1749 (search_module_symbols): Update.
1750 (info_module_subcommand): Update.
1751 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1752 (SYMBOL_LINKAGE_NAME): Remove.
1753 (SYMBOL_DEMANGLED_NAME): Remove.
1754 (SYMBOL_PRINT_NAME): Remove.
1755 (SYMBOL_SEARCH_NAME): Remove.
1756 * tracepoint.c (set_traceframe_context): Update.
1757 (validate_actionline): Update.
1758 (collection_list::collect_symbol): Update.
1759 (encode_actions_1): Update.
1760 (info_scope_command): Update.
1761 (print_one_static_tracepoint_marker): Update.
1762 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1763 * valops.c (address_of_variable): Update.
1764 (find_overload_match): Update.
1765 (find_oload_champ): Update.
1766
1767 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1768
1769 * ada-lang.c (ada_lookup_simple_minsym): Update.
1770 (ada_collect_symbol_completion_matches): Update.
1771 * ada-tasks.c (read_atcb): Update.
1772 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1773 (amd64_windows_skip_trampoline_code): Update.
1774 * arm-tdep.c (skip_prologue_function): Update.
1775 (arm_skip_stack_protector): Update.
1776 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1777 (arm_wince_skip_main_prologue): Update.
1778 * ax-gdb.c (gen_expr): Update.
1779 * block.c (call_site_for_pc): Update.
1780 * blockframe.c (find_pc_partial_function): Update.
1781 * breakpoint.c (set_breakpoint_location_function): Update.
1782 * btrace.c (ftrace_print_function_name): Update.
1783 (ftrace_function_switched): Update.
1784 * c-valprint.c (print_unpacked_pointer): Update.
1785 * coffread.c (coff_symfile_read): Update.
1786 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1787 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1788 * dwarf-index-write.c (write_psymbols): Update.
1789 * dwarf2loc.c (call_site_to_target_addr): Update.
1790 (func_verify_no_selftailcall): Update.
1791 (tailcall_dump): Update.
1792 (call_site_find_chain_1): Update.
1793 (dwarf_expr_reg_to_entry_parameter): Update.
1794 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1795 * eval.c (evaluate_funcall): Update.
1796 (evaluate_subexp_standard): Update.
1797 (evaluate_subexp_for_sizeof): Update.
1798 * expprint.c (print_subexp_standard): Update.
1799 (dump_subexp_body_standard): Update.
1800 * frame.c (get_prev_frame_always_1): Update.
1801 * frv-tdep.c (frv_skip_main_prologue): Update.
1802 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1803 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1804 (gnuv3_get_typename_from_type_info): Update.
1805 (gnuv3_skip_trampoline): Update.
1806 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1807 * i386-tdep.c (i386_skip_main_prologue): Update.
1808 (i386_pe_skip_trampoline_code): Update.
1809 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1810 * infcall.c (get_function_name): Update.
1811 * linespec.c (minsym_found): Update.
1812 * linux-fork.c (info_checkpoints_command): Update.
1813 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1814 (m32c_m16c_pointer_to_address): Update.
1815 * maint.c (maintenance_translate_address): Update.
1816 * minsyms.c (add_minsym_to_hash_table): Update.
1817 (add_minsym_to_demangled_hash_table): Update.
1818 (lookup_minimal_symbol_mangled): Update.
1819 (lookup_minimal_symbol_demangled): Update.
1820 (lookup_minimal_symbol_linkage): Update.
1821 (lookup_minimal_symbol_text): Update.
1822 (lookup_minimal_symbol_by_pc_name): Update.
1823 (minimal_symbol_is_less_than): Update.
1824 (compact_minimal_symbols): Update.
1825 (build_minimal_symbol_hash_tables): Update.
1826 (find_solib_trampoline_target): Update.
1827 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1828 (mips_skip_pic_trampoline_code): Update.
1829 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1830 * objc-lang.c (info_selectors_command): Update.
1831 (info_classes_command): Update.
1832 (find_methods): Update.
1833 (find_imps): Update.
1834 * p-valprint.c (pascal_val_print): Update.
1835 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1836 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1837 * printcmd.c (build_address_symbolic): Update.
1838 (info_symbol_command): Update.
1839 * psymtab.c (psymbol_name_matches): Update.
1840 (match_partial_symbol): Update.
1841 (lookup_partial_symbol): Update.
1842 (print_partial_symbols): Update.
1843 (sort_pst_symbols): Update.
1844 (maintenance_check_psymtabs): Update.
1845 * python/py-framefilter.c (py_print_frame): Update.
1846 * python/python.c (gdbpy_rbreak): Update.
1847 * record-btrace.c (btrace_get_bfun_name): Update.
1848 (btrace_call_history): Update.
1849 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1850 (rs6000_skip_trampoline_code): Update.
1851 * sol-thread.c (info_cb): Update.
1852 * stabsread.c (scan_file_globals): Update.
1853 * stack.c (find_frame_funname): Update.
1854 (info_frame_command_core): Update.
1855 * symmisc.c (dump_msymbols): Update.
1856 * symtab.c (symbol_natural_name): Rename to..,
1857 (general_symbol_info::natural_name): ...this.
1858 (symbol_demangled_name): Rename to...
1859 (general_symbol_info::demangled_name): ...this.
1860 (symbol_search_name): Rename to...
1861 (general_symbol_info::search_name): ...this.
1862 (symbol_matches_search_name): Update.
1863 (find_pc_sect_line): Update.
1864 (skip_prologue_sal): Update.
1865 (search_symbols): Update.
1866 (print_msymbol_info): Update.
1867 (rbreak_command): Update.
1868 (completion_list_add_msymbol): Update.
1869 (completion_list_objc_symbol): Update.
1870 (get_msymbol_address): Update.
1871 * symtab.h (struct general_symbol_info): Add member functions
1872 natural_name (), linkage_name (), print_name (), demangled_name (),
1873 and search_name ().
1874 (SYMBOL_NATURAL_NAME): Update.
1875 (symbol_natural_name): Move to a member function on general_symbol_info.
1876 (SYMBOL_DEMANGLED_NAME): Update.
1877 (symbol_demangled_name): Move to a member function on
1878 general_symbol_info.
1879 (SYMBOL_SEARCH_NAME): Update.
1880 (symbol_search_name): Move to a member function on general_symbol_info.
1881 (MSYMBOL_NATURAL_NAME): Remove.
1882 (MSYMBOL_LINKAGE_NAME): Remove.
1883 (MSYMBOL_PRINT_NAME): Remove.
1884 (MSYMBOL_DEMANGLED_NAME): Remove.
1885 (MSYMBOL_SEARCH_NAME): Remove.
1886 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1887
1888 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1889
1890 * symtab.c (create_demangled_names_hash): Use per_bfd->
1891 minimal_symbol_count for computing the initial size, if greater
1892 than our default size.
1893
1894 2019-11-22 Tom de Vries <tdevries@suse.de>
1895
1896 * contrib/words.sh: Improve words extraction.
1897
1898 2019-11-22 Tom de Vries <tdevries@suse.de>
1899
1900 * contrib/words.sh: Combine sed invocations.
1901
1902 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1903
1904 * Makefile.in: Update.
1905 * demangle.c: Rename to...
1906 * gdb-demangle.c: ..this.
1907 (is_cplus_marker): Change return type to bool.
1908 (_initialize_demangler): Rename to...
1909 (_initialize_gdb_demangle): ...this.
1910 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1911 * symtab.h (demangle): Remove declaration; instead include
1912 gdb-demangle.h.
1913
1914 2019-11-21 Tom Tromey <tromey@adacore.com>
1915
1916 * gdbsupport/format.c (format_pieces): Parse %I64d.
1917 * unittests/format_pieces-selftests.c (test_windows_formats): New
1918 function.
1919 (run_tests): Call it.
1920
1921 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1922
1923 Byte reverse display of variables with DW_END_big, DW_END_little
1924 (DW_AT_endianity) dwarf attributes if different than the native
1925 byte order.
1926 * ada-lang.c (ada_value_binop):
1927 Use type_byte_order instead of gdbarch_byte_order.
1928 * ada-valprint.c (printstr):
1929 (ada_val_print_string):
1930 * ada-lang.c (value_pointer):
1931 (ada_value_binop):
1932 Use type_byte_order instead of gdbarch_byte_order.
1933 * c-lang.c (c_get_string):
1934 Use type_byte_order instead of gdbarch_byte_order.
1935 * c-valprint.c (c_val_print_array):
1936 Use type_byte_order instead of gdbarch_byte_order.
1937 * cp-valprint.c (cp_print_class_member):
1938 Use type_byte_order instead of gdbarch_byte_order.
1939 * dwarf2loc.c (rw_pieced_value):
1940 Use type_byte_order instead of gdbarch_byte_order.
1941 * dwarf2read.c (read_base_type): Handle DW_END_big,
1942 DW_END_little
1943 * f-lang.c (f_get_encoding):
1944 Use type_byte_order instead of gdbarch_byte_order.
1945 * findvar.c (default_read_var_value):
1946 Use type_byte_order instead of gdbarch_byte_order.
1947 * gdbtypes.c (check_types_equal):
1948 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1949 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1950 and TYPE_ENDIANITY_LITTLE if set.
1951 (type_byte_order): new function.
1952 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1953 (struct main_type) <flag_endianity_not_default>:
1954 New field.
1955 (type_byte_order): New function.
1956 * infcmd.c (default_print_one_register_info):
1957 Use type_byte_order instead of gdbarch_byte_order.
1958 * p-lang.c (pascal_printstr):
1959 Use type_byte_order instead of gdbarch_byte_order.
1960 * p-valprint.c (pascal_val_print):
1961 Use type_byte_order instead of gdbarch_byte_order.
1962 * printcmd.c (print_scalar_formatted):
1963 Use type_byte_order instead of gdbarch_byte_order.
1964 * solib-darwin.c (darwin_current_sos):
1965 Use type_byte_order instead of gdbarch_byte_order.
1966 * solib-svr4.c (solib_svr4_r_ldsomap):
1967 Use type_byte_order instead of gdbarch_byte_order.
1968 * stap-probe.c (stap_modify_semaphore):
1969 Use type_byte_order instead of gdbarch_byte_order.
1970 * target-float.c (target_float_same_format_p):
1971 Use type_byte_order instead of gdbarch_byte_order.
1972 * valarith.c (scalar_binop):
1973 (value_bit_index):
1974 Use type_byte_order instead of gdbarch_byte_order.
1975 * valops.c (value_cast):
1976 Use type_byte_order instead of gdbarch_byte_order.
1977 * valprint.c (generic_emit_char):
1978 (generic_printstr):
1979 (val_print_string):
1980 Use type_byte_order instead of gdbarch_byte_order.
1981 * value.c (unpack_long):
1982 (unpack_bits_as_long):
1983 (unpack_value_bitfield):
1984 (modify_field):
1985 (pack_long):
1986 (pack_unsigned_long):
1987 Use type_byte_order instead of gdbarch_byte_order.
1988 * findvar.c (unsigned_pointer_to_address):
1989 (signed_pointer_to_address):
1990 (unsigned_address_to_pointer):
1991 (address_to_signed_pointer):
1992 (default_read_var_value):
1993 (default_value_from_register):
1994 Use type_byte_order instead of gdbarch_byte_order.
1995 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1996 Use type_byte_order instead of gdbarch_byte_order.
1997 * riscv-tdep.c (riscv_print_one_register_info):
1998 Use type_byte_order instead of gdbarch_byte_order.
1999
2000 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2001
2002 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2003 (current_ui_gdb_stdin_ptr): Likewise.
2004 (current_ui_gdb_stderr_ptr): Likewise.
2005 (current_ui_gdb_stdlog_ptr): Likewise.
2006 (current_ui_current_uiout_ptr): Likewise.
2007 (gen_ret_current_ui_field_ptr): Remove.
2008
2009 2019-11-21 Tom de Vries <tdevries@suse.de>
2010
2011 PR gdb/24956
2012 * cli/cli-script.c (execute_control_command): Only switch to
2013 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2014
2015 2019-11-19 Tom Tromey <tom@tromey.com>
2016
2017 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2018 Now static. Change type of "name".
2019 (tui_set_win_height_command): Don't copy "arg".
2020 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2021 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2022
2023 2019-11-19 Ali Tamur <tamur@google.com>
2024
2025 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2026 "if (attr != nullptr)".
2027 (dwarf2_find_base_address): Likewise.
2028 (dwarf2_build_include_psymtabs): Likewise.
2029 (read_cutu_die_from_dwo): Likewise.
2030 (read_func_scope): Likewise.
2031 (read_call_site_scope): Likewise.
2032 (dwarf2_get_pc_bounds): Likewise.
2033 (dwarf2_record_block_ranges): Likewise.
2034 (dwarf2_add_field): Likewise.
2035 (dwarf2_add_member_fn): Likewise.
2036 (read_structure_type): Likewise.
2037 (read_enumeration_type): Likewise.
2038 (read_array_type): Likewise.
2039 (read_array_order): Likewise.
2040 (read_set_type): Likewise.
2041 (read_common_block): Likewise.
2042 (read_tag_reference_type): Likewise.
2043 (read_tag_string_type): Likewise.
2044 (read_subroutine_type): Likewise.
2045 (read_base_type): Likewise.
2046 (read_subrange_type): Likewise.
2047 (new_symbol): Likewise.
2048 (prepare_one_comp_unit): Likewise.
2049
2050 2019-11-19 Tom Tromey <tromey@adacore.com>
2051
2052 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2053 result in error when DebugActiveProcess fails.
2054
2055 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2056 Pedro Alves <palves@redhat.com>
2057
2058 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2059 * target.c (target_stack::push): Call 'unpush' if there's a
2060 target on top of the stack.
2061
2062 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2063
2064 * python/py-block.c (blpy_dealloc): Call tp_free.
2065 (blpy_block_syms_dealloc): Likewise.
2066 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2067 * python/py-inferior.c (infpy_dealloc): Likewise.
2068 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2069 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2070 * python/py-symbol.c (sympy_dealloc): Likewise.
2071 * python/py-symtab.c (stpy_dealloc): Likewise.
2072 * python/py-type.c (typy_iterator_dealloc): Likewise.
2073
2074 2019-11-18 Christian Biesinger <cbiesinger@google.com>
2075
2076 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2077 constructor instead of using a class initializer.
2078
2079 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2080
2081 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2082 * configure: Regenerate.
2083 * configure.ac: Don't source common.host.
2084 * gdbsupport/common.host: Remove.
2085 * gdbsupport/mingw-strerror.c: Remove.
2086 * gdbsupport/posix-strerror.c: Rename to...
2087 * gdbsupport/safe-strerror.c: ...this.
2088
2089 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2090
2091 * maint.c (scoped_command_stats::print_time): Use localtime_r
2092 instead of localtime (provided through gnulib if necessary).
2093 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2094 of ctime.
2095
2096 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2097
2098 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2099 avoid compile errors.
2100
2101 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2102
2103 * config.in: Regenerate.
2104 * configure: Regenerate.
2105 * gdbsupport/common.m4: No longer check for strerror_r.
2106 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2107 POSIX version of strerror_r, now that gnulib provides it if
2108 necessary.
2109
2110 2019-11-14 Christian Biesinger <cbiesinger@google.com>
2111
2112 * README (`configure' options): Update.
2113
2114 2019-11-14 Tom Tromey <tromey@adacore.com>
2115
2116 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2117 expected type for the RHS if the LHS is a convenience variable.
2118
2119 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2120
2121 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2122 Provide explicit default and copy constructor.
2123
2124 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2125
2126 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2127 only call Py_INCREF (newbp) in the bppy_pending_object case.
2128
2129 2019-11-13 Tom Tromey <tromey@adacore.com>
2130
2131 PR build/25182:
2132 * psympriv.h (partial_symbol): Remove static assert.
2133 * symtab.h (general_symbol_info, symbol): Remove static assert.
2134
2135 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 * gdbsupport/format.c (format_pieces::format_pieces): Support
2138 printf 'z' size modifier.
2139 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2140 * printcmd.c (ui_printf): Handle size_t_arg.
2141 * ui-out.c (ui_out::vmessage): Likewise.
2142 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2143 function.
2144 (run_tests): Call test_format_int_sizes.
2145
2146 2019-11-12 Christian Biesinger <cbiesinger@google.com>
2147
2148 * ada-exp.y (write_ambiguous_var): Update.
2149 * buildsym.c (add_symbol_to_list): Update.
2150 * dwarf2read.c (read_variable): Update.
2151 (new_symbol): Update.
2152 * jit.c (finalize_symtab): Update.
2153 * language.c (language_alloc_type_symbol): Update.
2154 * symtab.c (fixup_symbol_section): Update.
2155 (initialize_objfile_symbol_1): Move code to...
2156 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2157 (allocate_symbol): Update.
2158 (allocate_template_symbol): Update.
2159 (get_symbol_address): Update.
2160 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2161 of having as a field, and add a constructor.
2162 (SYMBOL_VALUE): Update.
2163 (SYMBOL_VALUE_ADDRESS): Update.
2164 (SET_SYMBOL_VALUE_ADDRESS): Update.
2165 (SYMBOL_VALUE_BYTES): Update.
2166 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2167 (SYMBOL_BLOCK_VALUE): Update.
2168 (SYMBOL_VALUE_CHAIN): Update.
2169 (SYMBOL_LANGUAGE): Update.
2170 (SYMBOL_SECTION): Update.
2171 (SYMBOL_OBJ_SECTION): Update.
2172 (SYMBOL_SET_LANGUAGE): Update.
2173 (SYMBOL_SET_LINKAGE_NAME): Update.
2174 (SYMBOL_SET_NAMES): Update.
2175 (SYMBOL_NATURAL_NAME): Update.
2176 (SYMBOL_LINKAGE_NAME): Update.
2177 (SYMBOL_DEMANGLED_NAME): Update.
2178 (SYMBOL_SEARCH_NAME): Update.
2179 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2180 (struct symbol): Update.
2181 (struct template_symbol): Update.
2182 (struct rust_vtable_symbol): Update.
2183 * xcoffread.c (SYMBOL_DUP): Update.
2184
2185 2019-11-12 Tom Tromey <tom@tromey.com>
2186
2187 * tui/tui-layout.c (show_layout): Set current_layout.
2188 (show_source_disasm_command, show_data)
2189 (show_source_or_disasm_and_command): Don't set current_layout.
2190
2191 2019-11-12 Tom Tromey <tom@tromey.com>
2192
2193 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2194
2195 2019-11-12 Tom Tromey <tom@tromey.com>
2196
2197 * tui/tui-win.c (resize_message): New global.
2198 (show_tui_resize_message): New function.
2199 (tui_async_resize_screen): Print message if requested.
2200 (_initialize_tui_win): Add tui-resize-message setting.
2201 * NEWS: Add entry for new commands.
2202
2203 2019-11-11 Tom Tromey <tom@tromey.com>
2204
2205 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2206 functions.
2207
2208 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2209
2210 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2211
2212 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2213
2214 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2215 function.
2216 * python/python-internal.h (gdbpy_lookup_static_symbols):
2217 Declare new function.
2218 * python/python.c (python_GdbMethods): Add
2219 gdb.lookup_static_symbols method.
2220 * NEWS: Mention gdb.lookup_static_symbols.
2221
2222 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2225 static block of current object file first. Also fix typo in
2226 header comment.
2227
2228 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * stack.c (set_last_displayed_sal): Delete.
2231 (last_displayed_sal_valid): Delete.
2232 (last_displayed_pspace): Delete.
2233 (last_displayed_addr): Delete.
2234 (last_displayed_symtab): Delete.
2235 (last_displayed_line): Delete.
2236 (class last_displayed_symtab_info_type): New.
2237 (last_displayed_symtab_info): New static global variable.
2238 (print_frame_info): Call methods on last_displayed_symtab_info.
2239 (clear_last_displayed_sal): Update header comment, and make use of
2240 last_displayed_symtab_info.
2241 (last_displayed_sal_is_valid): Likewise.
2242 (get_last_displayed_pspace): Likewise.
2243 (get_last_displayed_addr): Likewise.
2244 (get_last_displayed_symtab): Likewise.
2245 (get_last_displayed_line): Likewise.
2246 (get_last_displayed_sal): Likewise.
2247 * stack.h (clear_last_displayed_sal): Update header comment.
2248 (last_displayed_sal_is_valid): Likewise.
2249 (get_last_displayed_pspace): Likewise.
2250 (get_last_displayed_addr): Likewise.
2251 (get_last_displayed_symtab): Likewise.
2252 (get_last_displayed_line): Likewise.
2253 (get_last_displayed_sal): Likewise.
2254
2255 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * stack.c (frame_show_address): Convert return type to bool.
2258 * stack.h (frame_show_address): Likewise, and update header
2259 comment.
2260
2261 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2264 * unittests/vec-utils-selftests.c: New file.
2265 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2266
2267 2019-11-10 Tom Tromey <tom@tromey.com>
2268
2269 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2270 (tui_highlight_win): Likewise.
2271 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2272 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2273 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2274 Don't set can_highlight.
2275
2276 2019-11-10 Tom Tromey <tom@tromey.com>
2277
2278 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2279 Remove unused declaration.
2280
2281 2019-11-08 Tom Tromey <tromey@adacore.com>
2282
2283 * top.c (read_command_file): Update.
2284 (command_line_input): Make return type const.
2285 * python/py-gdb-readline.c: Update.
2286 * linespec.c (decode_line_2): Update.
2287 * defs.h (command_line_input): Make return type const.
2288 * cli/cli-script.c (read_next_line): Make return type const.
2289 * ada-lang.c (get_selections): Update.
2290
2291 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2292
2293 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2294 * mi/mi-main.c (output_cores): Likewise.
2295 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2296 (linux_xfer_osdata_modules): Likewise.
2297 * remote.c (register_remote_support_xml): Likewise.
2298 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2299 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2300
2301 2019-11-06 Tom Tromey <tom@tromey.com>
2302
2303 * tui/tui-interp.c: Don't include readline.h.
2304 * tui/tui-hooks.c: Don't include readline.h.
2305 * symmisc.c: Include tilde.h, not readline.h.
2306 * symfile.c: Include tilde.h, not readline.h.
2307 * source.c: Include tilde.h, not readline.h.
2308 * solib.c: Include tilde.h, not readline.h.
2309 * psymtab.c: Include tilde.h, not readline.h.
2310 * exec.c: Include tilde.h, not readline.h.
2311 * corelow.c: Include tilde.h, not readline.h.
2312 * cli/cli-dump.c: Include tilde.h, not readline.h.
2313 * cli/cli-cmds.c: Don't include readline.h.
2314
2315 2019-11-05 Tom Tromey <tom@tromey.com>
2316
2317 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2318 (tui_disassemble): Set addr_size.
2319 (tui_disasm_window::set_contents): Use addr_size.
2320
2321 2019-11-05 Tom Tromey <tom@tromey.com>
2322
2323 * rust-lang.c (rust_language_defn): Update.
2324 * python/py-value.c (valpy_string): Call c_get_string.
2325 * p-lang.c (pascal_language_defn): Update.
2326 * opencl-lang.c (opencl_language_defn): Update.
2327 * objc-lang.c (objc_language_defn): Update.
2328 * m2-lang.c (m2_language_defn): Update.
2329 * language.c (unknown_language_defn, auto_language_defn): Update.
2330 (default_get_string): Remove.
2331 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2332 * go-lang.c (go_language_defn): Update.
2333 * f-lang.c (f_language_defn): Update.
2334 * d-lang.c (d_language_defn): Update.
2335 * c-lang.c (c_language_defn, cplus_language_defn)
2336 (asm_language_defn, minimal_language_defn): Update.
2337 * ada-lang.c (ada_language_defn): Update.
2338 * language.h (struct language_defn) <la_get_string>: Remove.
2339 (LA_GET_STRING): Remove.
2340 (default_get_string): Don't declare.
2341
2342 2019-11-05 Tom Tromey <tom@tromey.com>
2343
2344 * tui/tui-source.h (struct tui_source_window): Inline
2345 constructor. Remove destructor.
2346 <style_changed, m_observable>: Move to superclass.
2347 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2348 (struct tui_source_window_base): Move private members to end.
2349 <style_changed, m_observable>: Move from tui_source_window.
2350 * tui/tui-winsource.c (tui_copy_source_line): Move from
2351 tui-source.c. Rename from copy_source_line. Add special handling
2352 for negative line number.
2353 (tui_source_window_base::style_changed): Move from
2354 tui_source_window.
2355 (tui_source_window_base): Register observer.
2356 (~tui_source_window_base): New.
2357 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2358 rename.
2359 (tui_source_window::set_contents): Use tui_copy_source_line.
2360 (tui_source_window::tui_source_window): Move to tui-source.h.
2361 (tui_source_window::~tui_source_window): Remove.
2362 (tui_source_window::style_changed): Move to superclass.
2363 * tui/tui-disasm.c (tui_disassemble): Create string file with
2364 styling, when possible. Add "addr_size" parameter.
2365 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2366 Don't compute maximum size.
2367 (len_without_escapes): New function
2368
2369 2019-11-05 Tom Tromey <tom@tromey.com>
2370
2371 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2372 std::string.
2373 * tui/tui-winsource.c (tui_show_source_line): Update.
2374 * tui/tui-source.c (tui_source_window::set_contents): Update.
2375 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2376
2377 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2378
2379 * symtab.h (gdb_static_assert): Put && operator at the beginning
2380 of the line instead of the end.
2381
2382 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2383
2384 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2385 and sizeof (symbol).
2386 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2387
2388 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2389
2390 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2391 * configure.host: Mark *-*-solaris2.10* obsolete.
2392 * configure.tgt: Mark Solaris < 11 obsolete.
2393 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2394 Update target triplet.
2395
2396 2019-11-01 Tom Tromey <tromey@adacore.com>
2397
2398 * utils.c (print_sys_errmsg): Simplify.
2399
2400 2019-11-01 Tom Tromey <tromey@adacore.com>
2401
2402 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2403
2404 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2405
2406 * configure: Regenerate.
2407 * configure.ac: Remove check for strerror_r.
2408 * gdbsupport/common.m4: Check for strerror_r.
2409
2410 2019-11-01 Luis Machado <luis.machado@linaro.org>
2411
2412 PR gdb/25124
2413
2414 * arm-tdep.c (arm_per_objfile): Rename to ...
2415 (arm_per_bfd): ... this.
2416 (arm_objfile_data_key): Rename to ...
2417 (arm_bfd_data_key): ... this.
2418 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2419 data.
2420 (arm_record_special_symbol): Likewise.
2421
2422 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2425 end.
2426 * c-typeprint.c (c_print_typedef): Likewise.
2427 * f-typeprint.c (f_print_typedef): Likewise.
2428 * m2-typeprint.c (m2_print_typedef): Likewise.
2429 * p-typeprint.c (pascal_print_typedef): Likewise.
2430 * rust-lang.c (rust_print_typedef): Likewise.
2431 * symtab.c (print_symbol_info): Print a newline after calling
2432 typedef_print.
2433
2434 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * symtab.c (info_module_cmdlist): New variable.
2437 (info_module_command): New function.
2438 (search_module_symbols): New function.
2439 (info_module_subcommand): New function.
2440 (struct info_modules_var_func_options): New struct.
2441 (info_modules_var_func_options_defs): New variable.
2442 (make_info_modules_var_func_options_def_group): New function.
2443 (info_module_functions_command): New function.
2444 (info_module_variables_command): New function.
2445 (info_module_var_func_command_completer): New function.
2446 (_initialize_symtab): Register new 'info module functions' and
2447 'info module variables' commands.
2448 * symtab.h (typedef symbol_search_in_module): New typedef.
2449 (search_module_symbols): Declare new function.
2450 * NEWS: Mention new commands.
2451
2452 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2453
2454 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2455 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2456 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2457 MODULES_DOMAIN.
2458 (scan_partial_symbols): Only create partial module symbols for non
2459 declarations.
2460 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2461 and MODULES_DOMAIN.
2462 * symtab.c (search_domain_name): Likewise.
2463 (search_symbols): Likewise.
2464 (print_symbol_info): Likewise.
2465 (symtab_symbol_info): Likewise.
2466 (info_modules_command): New function.
2467 (_initialize_symtab): Register 'info modules' command.
2468 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2469 * NEWS: Mention new 'info modules' command.
2470
2471 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2472
2473 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2474 and $_gdb_maint_setting_str.
2475
2476 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2477
2478 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2479 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2480 (str_value_from_setting, gdb_setting_str_internal_fn)
2481 (gdb_maint_setting_str_internal_fn): New functions.
2482 (_initialize_cli_cmds): Define the new convenience functions.
2483 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2484 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2485
2486 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2487
2488 * agent.c (set_can_use_agent): When the setting is turned on,
2489 look up agent symbols if we don't have them yet.
2490 (agent_new_objfile): Don't look up agent symbols when the agent
2491 setting is off.
2492
2493 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2494
2495 * config.in: Regenerate.
2496
2497 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2498
2499 * configure: Regenerate.
2500 * configure.ac: Check for strerror_r.
2501 * gdbsupport/common-utils.h (safe_strerror): Change return value
2502 to const char * and document that this function is now threadsafe.
2503 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2504 thread_local and call strerror_r, if available.
2505 * utils.c (perror_string): Update.
2506 (print_sys_errmsg): Update.
2507
2508 2019-10-31 Luis Machado <luis.machado@linaro.org>
2509
2510 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2511 objfile_key.
2512 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2513 objfile to fetch per-bfd data.
2514 (arm_find_exidx_entry): Likewise.
2515
2516 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2517
2518 * gdbsupport/agent.c (debug_agent): Change type to bool.
2519 (use_agent): Likewise.
2520 (all_agent_symbols_look_up): Likewise.
2521 (agent_loaded_p): Change return value to bool.
2522 (agent_look_up_symbols): Update.
2523 (agent_capability_check): Change return value to bool.
2524 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2525 (debug_agent): Change type to bool.
2526 (use_agent): Likewise.
2527 (agent_capability_check): Change return value to bool.
2528
2529 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2530
2531 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2532 (build_minimal_symbol_hash_tables): Code to clear the table moved
2533 to clear_minimal_symbol_hash_tables.
2534 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2535 when needed.
2536
2537 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2538
2539 * infcmd.c: Remove includes.
2540 * infrun.c: Remove includes.
2541
2542 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2543
2544 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2545 (grow_vect): Remove declaration.
2546 (ada_type_of_array): Remove declaration.
2547 (ada_update_initial_language): Remove declaration.
2548 (ada_fold_name): Remove declaration.
2549 (ada_fill_in_ada_prototype): Remove declaration.
2550 (user_select_syms): Remove declaration.
2551 (get_selections): Remove declaration.
2552 (ada_tag_type): Remove declaration.
2553 (ada_value_tag): Remove declaration.
2554 (ada_is_others_clause): Remove declaration.
2555 (ada_in_variant): Remove declaration.
2556 (ada_value_struct_elt): Remove declaration.
2557 (ada_attribute_name): Remove declaration.
2558 (ada_system_address_type): Remove declaration.
2559 * ada-lang.c (ada_watch_location_expression): Make static.
2560 (GROW_VECT): Move here from ada-lang.h.
2561 (grow_vect): Make static.
2562 (ada_update_initial_language): Make static.
2563 (ada_fold_name): Make static.
2564 (ada_type_of_array): Make static.
2565 (encoded_ordered_before): Move up.
2566 (sort_choices): Move up.
2567 (print_signatures): Move up.
2568 (ada_print_symbol_signature): Move up.
2569 (get_selections): Move up and make static.
2570 (user_select_syms): Move up and make static.
2571 (ada_value_struct_elt): Move up and make static.
2572 (ada_tag_type): Make static.
2573 (ada_value_tag): Make static.
2574 (ada_is_others_clause): Make static.
2575 (ada_in_variant): Make static.
2576 (ada_attribute_name): Make static.
2577
2578 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2579
2580 * ada-lang.c: Remove includes.
2581 * ada-typeprint.c: Remove includes.
2582 * ada-valprint.c: Remove includes.
2583
2584 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2585
2586 * addrmap.c: Add static assertions of type size, moved from
2587 _initialize_addrmap.
2588 (_initialize_addrmap): Remove.
2589
2590 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2591
2592 * coffread.c (record_minimal_symbol): Update.
2593 (process_coff_symbol): Update.
2594 * dbxread.c (read_dbx_symtab): Update.
2595 * dwarf2read.c (add_partial_symbol): Update.
2596 (fixup_go_packaging): Update.
2597 (load_partial_dies): Update.
2598 (new_symbol): Update.
2599 * elfread.c (record_minimal_symbol): Change signature to use
2600 gdb::string_view instead of name+len.
2601 (elf_symtab_read): Update.
2602 (elf_rel_plt_read): Update.
2603 * mdebugread.c (parse_partial_symbols): Update.
2604 (handle_psymbol_enumerators): Update.
2605 (new_symbol): Update.
2606 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2607 to use gdb::string_view instead of name+len.
2608 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2609 * psympriv.h (add_psymbol_to_list): Likewise.
2610 * psymtab.c (add_psymbol_to_bcache): Likewise.
2611 (add_psymbol_to_list): Likewise.
2612 * stabsread.c (define_symbol): Update.
2613 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2614 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2615 (symbol_set_names): Likewise.
2616 * xcoffread.c (scan_xcoff_symtab): Update.
2617
2618 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2619
2620 * symtab.h (symbol_set_names): Document that copy_name must be
2621 set to true for non-nullterminated strings.
2622 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2623 linkage_name if the entry was not found and we need to demangle.
2624
2625 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2626
2627 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2628 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2629 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2630 * gdbsupport/gdb_binary_search.h: New file.
2631
2632 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2633
2634 * NEWS: Mention new --with-system-gdbinit-dir option.
2635 * config.in: Regenerate.
2636 * configure: Regenerate.
2637 * configure.ac: Add new option --with-system-gdbinit-dir.
2638 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2639 for a ".gdb" suffix.
2640 * main.c (get_init_files): Change system_gdbinit argument to
2641 a vector and return the files in SYSTEM_GDBINIT_DIR in
2642 addition to SYSTEM_GDBINIT.
2643 (captured_main_1): Update.
2644 (print_gdb_help): Update.
2645 * top.c (print_gdb_configuration): Also print the value of
2646 SYSTEM_GDBINIT_DIR.
2647
2648 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2649
2650 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2651 that takes gdb::string_view arguments.
2652
2653 2019-10-26 Tom de Vries <tdevries@suse.de>
2654
2655 * aarch64-linux-tdep.c: Fix typos in comments.
2656 * aarch64-tdep.c: Same.
2657 * ada-lang.c: Same.
2658 * amd64-nat.c: Same.
2659 * arc-tdep.c: Same.
2660 * arch/aarch64-insn.c: Same.
2661 * block.c: Same.
2662 * breakpoint.h: Same.
2663 * btrace.h: Same.
2664 * c-varobj.c: Same.
2665 * cli/cli-decode.c: Same.
2666 * cli/cli-script.c: Same.
2667 * cli/cli-utils.h: Same.
2668 * coff-pe-read.c: Same.
2669 * coffread.c: Same.
2670 * compile/compile-cplus-symbols.c: Same.
2671 * compile/compile-object-run.c: Same.
2672 * completer.c: Same.
2673 * corelow.c: Same.
2674 * cp-support.c: Same.
2675 * demangle.c: Same.
2676 * dwarf-index-write.c: Same.
2677 * dwarf2-frame.c: Same.
2678 * dwarf2-frame.h: Same.
2679 * eval.c: Same.
2680 * frame-base.h: Same.
2681 * frame.h: Same.
2682 * gdbcmd.h: Same.
2683 * gdbtypes.h: Same.
2684 * gnu-nat.c: Same.
2685 * guile/scm-objfile.c: Same.
2686 * i386-tdep.c: Same.
2687 * i386-tdep.h: Same.
2688 * infcall.c: Same.
2689 * infcall.h: Same.
2690 * linux-nat.c: Same.
2691 * m68k-tdep.c: Same.
2692 * macroexp.c: Same.
2693 * memattr.c: Same.
2694 * mi/mi-cmd-disas.c: Same.
2695 * mi/mi-getopt.h: Same.
2696 * mi/mi-main.c: Same.
2697 * minsyms.c: Same.
2698 * nat/aarch64-sve-linux-sigcontext.h: Same.
2699 * objfiles.h: Same.
2700 * ppc-linux-nat.c: Same.
2701 * ppc-linux-tdep.c: Same.
2702 * ppc-tdep.h: Same.
2703 * progspace.h: Same.
2704 * prologue-value.h: Same.
2705 * python/py-evtregistry.c: Same.
2706 * python/py-instruction.h: Same.
2707 * record-btrace.c: Same.
2708 * record-full.c: Same.
2709 * remote.c: Same.
2710 * rs6000-tdep.c: Same.
2711 * ser-tcp.c: Same.
2712 * sol-thread.c: Same.
2713 * sparc-sol2-tdep.c: Same.
2714 * sparc64-tdep.c: Same.
2715 * stabsread.c: Same.
2716 * symfile.c: Same.
2717 * symtab.h: Same.
2718 * target.c: Same.
2719 * tracepoint.c: Same.
2720 * tui/tui-data.h: Same.
2721 * tui/tui-io.c: Same.
2722 * tui/tui-win.c: Same.
2723 * tui/tui.c: Same.
2724 * unittests/rsp-low-selftests.c: Same.
2725 * user-regs.h: Same.
2726 * utils.c: Same.
2727 * utils.h: Same.
2728 * valarith.c: Same.
2729 * valops.c: Same.
2730 * valprint.c: Same.
2731 * valprint.h: Same.
2732 * value.c: Same.
2733 * value.h: Same.
2734 * varobj.c: Same.
2735 * x86-nat.h: Same.
2736 * xtensa-tdep.c: Same.
2737
2738 2019-10-25 Ali Tamur <tamur@google.com>
2739
2740 * charset.c (find_charset_names): Reflect API change.
2741
2742 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2743
2744 * symtab.c (struct demangled_name_entry): Change demangled name
2745 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2746 part of the struct anymore.
2747 (symbol_set_names): No longer obstack allocate + copy the demangled
2748 name, just store the allocated name from bfd.
2749
2750 2019-10-25 Tom Tromey <tromey@adacore.com>
2751
2752 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2753 (bsearch_cie_cmp, add_cie): Remove.
2754 (find_cie): Reimplement.
2755 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2756 (dwarf2_build_frame_info): Update.
2757
2758 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2759
2760 PR gdb/25126
2761 * symfile.c (reread_symbols): Call forget_cached_source_info to
2762 clear the stale source cache.
2763
2764 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2765
2766 * configure: Regenerate.
2767 * configure.ac: Remove code that sets python_has_threads.
2768
2769 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2770
2771 * config.in: Regenerate.
2772 * configure: Regenerate.
2773 * configure.ac: Remove the code that uses sed to get the python
2774 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2775
2776 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2777
2778 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2779 error paths.
2780
2781 2019-10-23 Tom Tromey <tom@tromey.com>
2782
2783 * arc-tdep.c: Remove ".." from include.
2784 * frv-tdep.c: Remove ".." from include.
2785 * lm32-tdep.c: Remove ".." from include.
2786 * microblaze-tdep.c: Remove ".." from include.
2787 * or1k-tdep.h: Remove ".." from include.
2788 * s12z-tdep.c: Remove ".." from include.
2789 * Makefile.in (OPCODES_CFLAGS): Add comment.
2790 (TOP_CFLAGS): New variable.
2791 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2792
2793 2019-10-23 Tom Tromey <tom@tromey.com>
2794
2795 * Makefile.in (READLINE_DIR): Update.
2796
2797 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2798
2799 * infcall.c (call_function_by_hand_dummy): Fix the function
2800 comment. And extract out a code section into...
2801 (reserve_stack_space): ...this new function.
2802
2803 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2804
2805 * infcall.c (value_arg_coerce): Remove an unused parameter.
2806 (call_function_by_hand_dummy): Update the call to
2807 'value_arg_coerce'.
2808
2809 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2810
2811 * infcall.c (call_function_by_hand_dummy): Refactor.
2812
2813 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2814
2815 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2816
2817 2019-10-23 Tom Tromey <tom@tromey.com>
2818
2819 * configure: Rebuild.
2820 * configure.ac: Don't check for sigprocmask.
2821 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2822
2823 2019-10-23 Tom Tromey <tom@tromey.com>
2824
2825 * configure: Rebuild.
2826 * acinclude.m4: Use m4_include, not sinclude.
2827
2828 2019-10-23 Tom de Vries <tdevries@suse.de>
2829
2830 PR breakpoints/24687
2831 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2832
2833 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2834
2835 * symtab.c (struct demangled_name_entry) <language>: Change from
2836 bitfield to regular variable.
2837
2838 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2839
2840 * symtab.c (struct demangled_name_entry): Add a constructor.
2841 (free_demangled_name_entry): New function to call the destructor
2842 for demangled_name_entry.
2843 (create_demangled_names_hash): Pass free_demangled_name_entry to
2844 htab_create_alloc.
2845 (symbol_set_names): Call placement new for demangled_name_entry.
2846 * utils.c: No longer include xxhash.h here, now that fast_hash
2847 is inlined in the header.
2848 * utils.h: Instead, include it here.
2849
2850 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2851
2852 * Makefile.in: Link with libxxhash.
2853 * config.in: Regenerate.
2854 * configure: Regenerate.
2855 * configure.ac: Search for libxxhash.
2856 * utils.c (fast_hash): Use xxhash if present.
2857
2858 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2859
2860 * utils.h (fast_hash): New function.
2861 * symtab.c (hash_demangled_name_entry): Call new function
2862 fast_hash.
2863
2864 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2865
2866 * symtab.c (struct demangled_name_entry): Change type of mangled
2867 to gdb::string_view. Also adds a constructor that takes the
2868 mangled name.
2869 (hash_demangled_name_entry): Update.
2870 (eq_demangled_name_entry): Update.
2871 (free_demangled_name_entry): New function to call the destructor
2872 now that this is not a POD anymore.
2873 (create_demangled_names_hash): Pass free_demangled_name_entry to
2874 htab_create_alloc.
2875 (symbol_set_names): Update.
2876
2877 2019-10-21 Ali Tamur <tamu@google.com>
2878
2879 * dwarf2read.c (dir_index): Change type.
2880 (file_name_index): Likewise.
2881 (line_header::include_dir_at): Change comment and implementation on
2882 whether it is DWARF 5.
2883 (line_header::is_valid_file_index): New function.
2884 (line_header::file_name_at): Change comment and implementation on
2885 whether it is DWARF 5.
2886 (line_header::file_names): Change to private field renamed as
2887 m_file_names and introduce a new accessor method.
2888 (line_header::file_names_size): New method.
2889 (line_header::include_dirs): Change to private field and rename as
2890 m_include_dirs.
2891 (dw2_get_file_names_reader): Define local var at a smaller scope and
2892 reflect API change.
2893 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2894 (process_structure_scope): Likewise.
2895 (line_header::add_include_dir): Change message and reflect renaming.
2896 (line_header::add_file_name): Likewise.
2897 (read_formatted_entries): Handle DW_FORM_data16.
2898 (dwarf_decode_line_header): Fix line header length calculation.
2899 (psymtab_include_file_name): Change comment and API.
2900 (lnp_state_machine::m_file): Update comment and reflect type change.
2901 (lnp_state_machine::record_line): Reflect type change.
2902 (dwarf_decode_lines): Reflect API change.
2903 (file_file_name): Likewise.
2904 (file_full_name): Likewise.
2905
2906 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2907
2908 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2909
2910 2019-10-21 Tom Tromey <tom@tromey.com>
2911
2912 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2913
2914 2019-10-21 Tom Tromey <tom@tromey.com>
2915
2916 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2917 NM_H. Use AC_CONFIG_LINKS.
2918 * configure: Rebuild.
2919 * Makefile.in (NM_H): New variable.
2920 (generated_files): Add NM_H. Remove gcore.
2921 (nm.h, stamp-nmh): New targets.
2922
2923 2019-10-20 Tom Tromey <tom@tromey.com>
2924
2925 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2926 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2927 obsolete comment.
2928 (put_objfile_before): Now static.
2929
2930 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2931
2932 * gdbsupport/common-utils.h (startswith): Change return type to
2933 bool.
2934
2935 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2936
2937 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2938 * breakpoint.c (bp_locations_compare): Rename to...
2939 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2940 (update_global_location_list): Use std::sort instead of qsort.
2941 * buildsym.c (compare_line_numbers): Rename to...
2942 (lte_is_less_than): ...this, and change to std::sort semantics.
2943 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2944 instead of qsort.
2945 * disasm.c (compare_lines): Rename to...
2946 (line_is_less_than): ...this, and change to std::sort semantics.
2947 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2948 of qsort.
2949 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2950 (fde_is_less_than): ...this, and change to std::sort semantics.
2951 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2952 * mdebugread.c (compare_blocks):
2953 (block_is_less_than): ...this, and change to std::sort semantics.
2954 (sort_blocks): Call std::sort instead of qsort.
2955 * objfiles.c (qsort_cmp): Rename to...
2956 (sort_cmp): ...this, and change to std::sort semantics.
2957 (update_section_map): Call std::sort instead of qsort.
2958 * remote.c (compare_pnums): Remove.
2959 (map_regcache_remote_table): Call std::sort instead of qsort.
2960 * utils.c (compare_positive_ints): Remove.
2961 * utils.h (compare_positive_ints): Remove.
2962 * xcoffread.c (compare_lte): Remove.
2963 (arrange_linetable): Call std::sort instead of qsort.
2964
2965 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2966
2967 * symfile.c (init_entry_point_info): Fix typo.
2968 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2969
2970 2019-10-18 Tom de Vries <tdevries@suse.de>
2971
2972 * aarch64-tdep.c: Fix typos in comments.
2973 * ada-lang.c: Same.
2974 * ada-tasks.c: Same.
2975 * alpha-tdep.c: Same.
2976 * alpha-tdep.h: Same.
2977 * amd64-nat.c: Same.
2978 * amd64-windows-tdep.c: Same.
2979 * arc-tdep.c: Same.
2980 * arc-tdep.h: Same.
2981 * arch-utils.c: Same.
2982 * arm-nbsd-tdep.c: Same.
2983 * arm-tdep.c: Same.
2984 * ax-gdb.c: Same.
2985 * blockframe.c: Same.
2986 * btrace.c: Same.
2987 * c-varobj.c: Same.
2988 * coff-pe-read.c: Same.
2989 * coffread.c: Same.
2990 * cris-tdep.c: Same.
2991 * darwin-nat.c: Same.
2992 * dbxread.c: Same.
2993 * dcache.c: Same.
2994 * disasm.c: Same.
2995 * dtrace-probe.c: Same.
2996 * dwarf-index-write.c: Same.
2997 * dwarf2-frame-tailcall.c: Same.
2998 * dwarf2-frame.c: Same.
2999 * dwarf2read.c: Same.
3000 * eval.c: Same.
3001 * exceptions.c: Same.
3002 * fbsd-tdep.c: Same.
3003 * findvar.c: Same.
3004 * frame.c: Same.
3005 * frv-tdep.c: Same.
3006 * gnu-v3-abi.c: Same.
3007 * go32-nat.c: Same.
3008 * h8300-tdep.c: Same.
3009 * hppa-tdep.c: Same.
3010 * i386-linux-tdep.c: Same.
3011 * i386-tdep.c: Same.
3012 * ia64-libunwind-tdep.c: Same.
3013 * ia64-tdep.c: Same.
3014 * infcmd.c: Same.
3015 * infrun.c: Same.
3016 * linespec.c: Same.
3017 * linux-nat.c: Same.
3018 * linux-thread-db.c: Same.
3019 * machoread.c: Same.
3020 * mdebugread.c: Same.
3021 * mep-tdep.c: Same.
3022 * mn10300-tdep.c: Same.
3023 * namespace.c: Same.
3024 * objfiles.c: Same.
3025 * opencl-lang.c: Same.
3026 * or1k-tdep.c: Same.
3027 * osabi.c: Same.
3028 * ppc-linux-nat.c: Same.
3029 * ppc-linux-tdep.c: Same.
3030 * ppc-sysv-tdep.c: Same.
3031 * printcmd.c: Same.
3032 * procfs.c: Same.
3033 * record-btrace.c: Same.
3034 * record-full.c: Same.
3035 * remote-fileio.c: Same.
3036 * remote.c: Same.
3037 * rs6000-tdep.c: Same.
3038 * s12z-tdep.c: Same.
3039 * score-tdep.c: Same.
3040 * ser-base.c: Same.
3041 * ser-go32.c: Same.
3042 * skip.c: Same.
3043 * sol-thread.c: Same.
3044 * solib-svr4.c: Same.
3045 * solib.c: Same.
3046 * source.c: Same.
3047 * sparc-nat.c: Same.
3048 * sparc-sol2-tdep.c: Same.
3049 * sparc-tdep.c: Same.
3050 * sparc64-tdep.c: Same.
3051 * stabsread.c: Same.
3052 * stack.c: Same.
3053 * symfile.c: Same.
3054 * symtab.c: Same.
3055 * target-descriptions.c: Same.
3056 * target-float.c: Same.
3057 * thread.c: Same.
3058 * utils.c: Same.
3059 * valops.c: Same.
3060 * valprint.c: Same.
3061 * value.c: Same.
3062 * varobj.c: Same.
3063 * windows-nat.c: Same.
3064 * xcoffread.c: Same.
3065 * xstormy16-tdep.c: Same.
3066 * xtensa-tdep.c: Same.
3067
3068 2019-10-17 Tom Tromey <tromey@adacore.com>
3069
3070 * configure: Rebuild.
3071 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3072 in AC_CONFIG_FILES invocation.
3073 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3074 new-style config.status invocation.
3075
3076 2019-10-17 Tom de Vries <tdevries@suse.de>
3077
3078 * arm-nbsd-nat.c: Fix typos in comments.
3079 * arm-tdep.c: Same.
3080 * darwin-nat-info.c: Same.
3081 * dwarf2read.c: Same.
3082 * elfread.c: Same.
3083 * event-top.c: Same.
3084 * findvar.c: Same.
3085 * gdbtypes.c: Same.
3086 * hppa-tdep.c: Same.
3087 * i386-tdep.c: Same.
3088 * jit.c: Same.
3089 * main.c: Same.
3090 * mdebugread.c: Same.
3091 * moxie-tdep.c: Same.
3092 * nto-procfs.c: Same.
3093 * osabi.c: Same.
3094 * ppc-linux-tdep.c: Same.
3095 * remote.c: Same.
3096 * riscv-tdep.c: Same.
3097 * s390-tdep.c: Same.
3098 * sh-tdep.c: Same.
3099 * sparc-linux-tdep.c: Same.
3100 * sparc-nat.c: Same.
3101 * stack.c: Same.
3102 * target-descriptions.c: Same.
3103 * top.c: Same.
3104 * varobj.c: Same.
3105
3106 2019-10-16 Tom Tromey <tom@tromey.com>
3107
3108 * objfiles.h (struct objfile) <original_name>: Now const.
3109
3110 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3111
3112 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3113 pass on to sigsetjmp's second argument.
3114 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3115
3116 2019-10-16 Keith Seitz <keiths@redhat.com>
3117
3118 PR gdb/23567
3119 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3120 sections whose size is greater than the file size.
3121
3122 2019-10-16 Jim Wilson <jimw@sifive.com>
3123
3124 * riscv-tdep.c (riscv_gcc_target_options): New.
3125 (riscv_gnu_triplet_regexp): New.
3126 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3127 set_gdbarch_gnu_triplet_regexp.
3128
3129 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3130
3131 * Makefile.in: Add xml-builtin.h.
3132 * features/feature_to_c.sh: Add an include for xml-builtin.h
3133 to ensure that the compiler checks that the types match.
3134 * xml-builtin.h: New file.
3135 * xml-support.c (fetch_xml_builtin): Add missing const.
3136 * xml-support.h: Remove declaration of xml_builtins.
3137
3138 2019-10-16 Tom de Vries <tdevries@suse.de>
3139
3140 PR tdep/25096
3141 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3142 (amd64_classify_aggregate): ... here.
3143 (amd64_classify_aggregate_field): Handled fiels of nested structs
3144 recursively.
3145
3146 2019-10-16 Tom de Vries <tdevries@suse.de>
3147
3148 PR tdep/24104
3149 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3150 that handles 'theclass'.
3151
3152 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3153
3154 * linespec.c (decode_digits_ordinary): Update comment.
3155 * make-target-delegates: No longer need to handle VEC case.
3156 * memrange.c (normalize_mem_ranges): Update comment.
3157 * namespace.c (add_using_directive): Update comment.
3158 * objc-lang.c (uniquify_strings): Update comment.
3159 * ppc-linux-nat.c (struct thread_points): Update comment.
3160 * probe.h (find_probes_in_objfile): Update comment.
3161 * target.h (enum flash_preserve_mode): Update comment.
3162 * varobj.c (varobj_restrict_range): Update comment.
3163 * varobj.h (varobj_list_children): Update comment.
3164
3165 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3166
3167 * Makefile.in: Remove references to vec.h and vec.c.
3168 * aarch64-tdep.c: No longer include vec.h.
3169 * ada-lang.c: Likewise.
3170 * ada-lang.h: Likewise.
3171 * arm-tdep.c: Likewise.
3172 * ax.h: Likewise.
3173 * breakpoint.h: Likewise.
3174 * charset.c: Likewise.
3175 * cp-support.h: Likewise.
3176 * dtrace-probe.c: Likewise.
3177 * dwarf2read.c: Likewise.
3178 * extension.h: Likewise.
3179 * gdb_bfd.c: Likewise.
3180 * gdbsupport/gdb_vecs.h: Likewise.
3181 * gdbsupport/vec.c: Remove.
3182 * gdbsupport/vec.h: Remove.
3183 * gdbthread.h: Likewise.
3184 * guile/scm-type.c: Likewise.
3185 * inline-frame.c: Likewise.
3186 * machoread.c: Likewise.
3187 * memattr.c: Likewise.
3188 * memrange.h: Likewise.
3189 * namespace.h: Likewise.
3190 * nat/linux-btrace.h: Likewise.
3191 * osdata.c: Likewise.
3192 * parser-defs.h: Likewise.
3193 * progspace.h: Likewise.
3194 * python/py-type.c: Likewise.
3195 * record-btrace.c: Likewise.
3196 * rust-exp.y: Likewise.
3197 * solib-target.c: Likewise.
3198 * stap-probe.c: Likewise.
3199 * target-descriptions.c: Likewise.
3200 * target-memory.c: Likewise.
3201 * target.h: Likewise.
3202 * varobj.c: Likewise.
3203 * varobj.h: Likewise.
3204 * xml-support.h: Likewise.
3205
3206 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3207
3208 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3209 Update for new std::vector based implementation.
3210 (process_psymtab_comp_unit_reader): Likewise.
3211 (scan_partial_symbols): Likewise.
3212 (recursively_compute_inclusions): Likewise.
3213 (compute_compunit_symtab_includes): Likewise.
3214 (process_imported_unit_die): Likewise.
3215 (queue_and_load_dwo_tu): Likewise.
3216 (follow_die_sig_1): Likewise.
3217 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3218 (typedef dwarf2_per_cu_ptr): Remove.
3219 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3220 function.
3221 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3222 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3223 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3224 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3225 std::vector.
3226
3227 2019-10-15 Tom Tromey <tromey@adacore.com>
3228
3229 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3230 TID.
3231
3232 2019-10-15 Tom Tromey <tromey@adacore.com>
3233
3234 * windows-nat.c (windows_nat_target::fetch_registers)
3235 (windows_nat_target::store_registers): Rename "pid" to "tid".
3236
3237 2019-10-15 Tom Tromey <tromey@adacore.com>
3238
3239 * gdbarch.h, gdbarch.c: Rebuild.
3240 * gdbarch.sh (gcc_target_options): Change return type to
3241 std::string.
3242 * compile/compile.c (get_args): Update.
3243 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3244 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3245 std::string.
3246 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3247 std::string.
3248 * arch-utils.c (default_gcc_target_options): Return std::string.
3249 * arch-utils.h (default_gcc_target_options): Return std::string.
3250 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3251
3252 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3253
3254 * breakpoint.c (breakpoint_chain): Make static.
3255 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3256 of accessing breakpoint_chain.
3257
3258 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3259
3260 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3261 to a gdb::function_view and return value to bool.
3262 * breakpoint.h (iterate_over_breakpoints): Likewise.
3263 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3264 (pop_dummy_frame): Update.
3265 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3266 (gdbscm_breakpoints): Update.
3267 * python/py-breakpoint.c (build_bp_list): Update.
3268 (gdbpy_breakpoints): Update.
3269 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3270 Update.
3271 (bpfinishpy_handle_stop): Update.
3272 (bpfinishpy_handle_exit): Update.
3273 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3274 (svr4_update_solib_event_breakpoints): Update.
3275
3276 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3277
3278 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3279 when unwrapping single-field structs.
3280
3281 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3282
3283 * dwarf2read.c: Remove includes.
3284
3285 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3286
3287 * ui-out.c (ui_out::call_do_message): Silence
3288 -Wformat-nonliteral warning.
3289
3290 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3291
3292 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3293 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3294 include: readline/tilde.h.
3295
3296 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3297
3298 * remote.c (remote_target::get_trace_status): Remove declaration of
3299 trace_regblock_size.
3300
3301 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3302
3303 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3304 (show_user): Remove declaration of cmdlist.
3305 * cli/cli-cmds.h (max_user_call_depth): Declare.
3306 * cli/cli-script.c (execute_user_command): Remove declaration
3307 of max_user_call_depth.
3308
3309 2019-10-11 Jim Wilson <jimw@sifive.com>
3310
3311 * gdbsupport/print-utils.h (pulongest): Fix comment.
3312 (plongest): Likewise.
3313 (phex): Add missing comment, mention leading zeros.
3314 (phex_nz): Add mention of no leading zeros to comment.
3315
3316 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3317 plongest instead of unsigned long long cast.
3318
3319 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3320
3321 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3322 for external_editor_command and gdbtk_test.
3323
3324 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3325
3326 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3327 * varobj.c (varobjdebug): Move comment to...
3328 * varobj.h (varobjdebug): ...here, and declare.
3329
3330 2019-10-09 Tom Tromey <tom@tromey.com>
3331
3332 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3333 erase_data_content.
3334
3335 2019-10-09 Tom Tromey <tom@tromey.com>
3336
3337 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3338 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3339 * tui/tui-command.c (tui_cmd_window::resize)
3340 (tui_refresh_cmd_win): Update.
3341 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3342 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3343 * tui/tui-data.c (~tui_gen_win_info): Remove.
3344 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3345 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3346 (tui_redisplay_readline, tui_mld_flush)
3347 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3348 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3349 (tui_data_window::erase_data_content)
3350 (tui_data_item_window::rerender)
3351 (tui_data_item_window::refresh_window): Update.
3352 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3353 (box_win, tui_gen_win_info::make_window)
3354 (tui_gen_win_info::make_visible): Update.
3355 (tui_delete_win): Remove.
3356 * tui/tui-winsource.c
3357 (tui_source_window_base::do_erase_source_content): Update.
3358 (tui_show_source_line, tui_source_window_base::update_tab_width)
3359 (tui_source_window_base::update_exec_info): Update.
3360 * tui/tui-data.h (struct curses_deleter): New.
3361 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3362 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3363
3364 2019-10-09 Tom Tromey <tom@tromey.com>
3365
3366 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3367
3368 2019-10-09 Tom Tromey <tom@tromey.com>
3369
3370 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3371 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3372
3373 2019-10-09 Tom Tromey <tom@tromey.com>
3374
3375 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3376 window height directly.
3377 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3378 declare.
3379 * tui/tui-layout.c (tui_default_win_height): Remove.
3380 (tui_default_win_viewport_height): Remove.
3381
3382 2019-10-09 Tom Tromey <tom@tromey.com>
3383
3384 * tui/tui.h: Remove comments.
3385
3386 2019-10-09 Tom de Vries <tdevries@suse.de>
3387
3388 * python/lib/gdb/printer/bound_registers.py: Use
3389 '^builtin_type_bound128' as regexp argument for
3390 add_builtin_pretty_printer.
3391
3392 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3393
3394 * guile/guile.c (guile_extension_script_ops): Remove forward
3395 declaration and mark as static.
3396 (guile_script_ops): Likewise.
3397 (extension_language_guile): Move further down in the file so
3398 it can reference the definitions for guile_{extension_,}script_ops.
3399
3400 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3401
3402 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3403 except SORTL, DFLTCC, and KDSA.
3404
3405 2019-10-08 Tom Tromey <tromey@adacore.com>
3406
3407 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3408 (struct safe_symbol_file_add_args): Remove.
3409
3410 2019-10-08 Tom Tromey <tromey@adacore.com>
3411
3412 * windows-nat.c: Don't include buildsym-legacy.h.
3413
3414 2019-10-08 Tom Tromey <tromey@adacore.com>
3415
3416 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3417
3418 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3419
3420 * gdbtypes.c (overload_debug): Move comment to header.
3421 * gdbtypes.h (overload_debug): Declare.
3422 * valops.c: Remove declaration of overload_debug, instead
3423 include gdbtypes.h.
3424
3425 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3426
3427 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3428 through _().
3429 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3430 move comment...
3431 * language.h (lang_frame_mismatch_warn): ... here. Also add
3432 declaration.
3433 * top.c (lang_frame_mismatch_warn): Remove declaration.
3434 (check_frame_language_change): Pass lang_frame_mismatch_warn
3435 through _().
3436
3437 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3438
3439 * c-lang.h (vtbl_ptr_name): Declare.
3440 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3441 it from the header.
3442 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3443
3444 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3445
3446 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3447 gdb_static_assert.
3448
3449 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3450
3451 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3452 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3453 * ctfread.c: New file.
3454 * ctfread.h: New file.
3455 * elfread.c: Include ctfread.h.
3456 (struct elfinfo text_p): New member ctfsect.
3457 (elf_locate_sections): Mark CTF section.
3458 (elf_symfile_read): Call elfctf_build_psymtabs.
3459 * Makefile.in (LIBCTF): Add.
3460 (CLIBS): Use it.
3461 (CDEPS): Likewise.
3462 (DIST): Add ctfread.c.
3463
3464 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * ctfread.c (struct nextfield): Renamed to ...
3467 (struct ctf_nextfield): ... this.
3468 (struct field_info): Renamed to ...
3469 (strut ctf_field_info): ... this.
3470 (attach_fields_to_type): Update for renamed structures.
3471 (ctf_add_member_cb): Likewise.
3472 (ctf_add_enum_member_cb): Likewise.
3473 (process_struct_members): Likewise.
3474 (process_enum_type): Likewise.
3475
3476 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3477
3478 * tracectf.h: Rename, was ctf.h.
3479 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3480 * tracefile.c: Likewise.
3481 * tracepoint.c: Remove unused include ctf.h.
3482 * mi/mi-main.c: Likewise.
3483 * Makefile.in Replace ctf.c with tracectf.c.
3484
3485 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3486
3487 * version.in: Change version number to "9.0.50.DATE-git".
3488
3489 2019-10-03 Tom Tromey <tom@tromey.com>
3490
3491 PR rust/24976:
3492 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3493
3494 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3495
3496 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3497 cp_search_name_hash.
3498 * NEWS: Add entry about nested function support.
3499
3500 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3501 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3504 for nested static variables when searchin VAR_DOMAIN.
3505 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3506 global scope, update comment.
3507 (add_partial_subprogram): Call add_partial_subprogram recursively
3508 for nested subroutines when processinng Fortran.
3509 (load_partial_dies): Process the child entities of a subprogram
3510 when processing Fortran.
3511 (partial_die_parent_scope): Handle building scope
3512 for Fortran nested functions.
3513 (process_die): Record that nested functions have a scope.
3514 (new_symbol): Always record Fortran subprograms on the global
3515 symbol list.
3516 (determine_prefix): How to build the prefix for Fortran
3517 subprograms.
3518
3519 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3520
3521 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3522 have just sent the thread a SIGSTOP and are waiting for it to
3523 arrive.
3524
3525 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3526
3527 * btrace.c (btrace_add_pc): Remove whitespace before the template
3528 parameter in 'std::vector <...>'.
3529 (parse_xml_btrace_block): Likewise.
3530 (btrace_maint_decode_pt): Likewise.
3531 (btrace_maint_update_packets): Likewise.
3532 (btrace_maint_print_packets): Likewise.
3533 * btrace.h (struct btrace_maint_info): Likewise.
3534 * dwarf2read.c (struct type_unit_group): Likewise.
3535 (build_type_psymtabs_reader): Likewise.
3536 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3537 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3538 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3539
3540 2019-10-03 Tom de Vries <tdevries@suse.de>
3541
3542 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3543 the first line of the help text for set/show style metadata.
3544
3545 2019-10-02 Tom Tromey <tromey@adacore.com>
3546
3547 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3548 * gdbsupport/common-inferior.c: New file.
3549 * infcmd.c (startup_with_shell): Don't define.
3550 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3551 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3552 * inferior.h (startup_with_shell): Don't declare.
3553
3554 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3555
3556 * gdbsupport/gdb_assert.h: Include errors.h.
3557 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3558
3559 2019-10-02 Tom Tromey <tromey@adacore.com>
3560
3561 * NEWS: Add $_ada_exception entry.
3562 * ada-lang.c (struct ada_catchpoint): Add constructor.
3563 <m_kind>: New member.
3564 (allocate_location_exception, re_set_exception): Remove
3565 "ex" parameter.
3566 (should_stop_exception): Compute $_ada_exception.
3567 (check_status_exception, print_it_exception)
3568 (print_one_exception, print_mention_exception): Remove
3569 "ex" parameter.
3570 (allocate_location_catch_exception, re_set_catch_exception)
3571 (check_status_exception, print_it_catch_exception)
3572 (print_one_catch_exception, print_mention_catch_exception)
3573 (print_recreate_catch_exception)
3574 (allocate_location_catch_exception_unhandled)
3575 (re_set_catch_exception_unhandled)
3576 (check_status_exception, print_it_catch_exception_unhandled)
3577 (print_one_catch_exception_unhandled)
3578 (print_mention_catch_exception_unhandled)
3579 (print_recreate_catch_exception_unhandled)
3580 (allocate_location_catch_assert, re_set_catch_assert)
3581 (check_status_assert, print_it_catch_assert)
3582 (print_one_catch_assert, print_mention_catch_assert)
3583 (print_recreate_catch_assert)
3584 (allocate_location_catch_handlers, re_set_catch_handlers)
3585 (check_status_handlers, print_it_catch_handlers)
3586 (print_one_catch_handlers, print_mention_catch_handlers)
3587 (print_recreate_catch_handlers): Remove.
3588 (create_ada_exception_catchpoint): Update.
3589 (initialize_ada_catchpoint_ops): Update.
3590
3591 2019-10-02 Tom Tromey <tromey@adacore.com>
3592
3593 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3594 (create_excep_cond_exprs): Simplify exception string computation.
3595 (ada_exception_catchpoint_cond_string): Likewise.
3596
3597 2019-10-02 Tom Tromey <tromey@adacore.com>
3598
3599 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3600 * ada-lang.c (lesseq_defined_than): Handle
3601 LOC_STATIC.
3602 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3603 parameter.
3604 (dwarf2_has_info): Likewise.
3605 (new_symbol): Set maybe_copied on symbol when
3606 appropriate.
3607 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3608 parameter.
3609 <can_copy>: New member.
3610 * elfread.c (record_minimal_symbol): Set maybe_copied
3611 on symbol when appropriate.
3612 (elf_symfile_read): Update call to dwarf2_has_info.
3613 * minsyms.c (lookup_minimal_symbol_linkage): New
3614 function.
3615 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3616 * symtab.c (get_symbol_address, get_msymbol_address):
3617 New functions.
3618 * symtab.h (get_symbol_address, get_msymbol_address):
3619 Declare.
3620 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3621 maybe_copied.
3622 (struct symbol, struct minimal_symbol) <maybe_copied>:
3623 New member.
3624
3625 2019-10-02 Tom Tromey <tromey@adacore.com>
3626
3627 * source.c (struct current_source_location): New.
3628 (current_source_key): New global.
3629 (current_source_symtab, current_source_line)
3630 (current_source_pspace): Remove.
3631 (get_source_location): New function.
3632 (get_current_source_symtab_and_line)
3633 (set_default_source_symtab_and_line)
3634 (set_current_source_symtab_and_line)
3635 (clear_current_source_symtab_and_line, select_source_symtab)
3636 (info_source_command, print_source_lines_base)
3637 (info_line_command, search_command_helper, _initialize_source):
3638 Update.
3639
3640 2019-10-02 Tom Tromey <tromey@adacore.com>
3641
3642 * source.c (select_source_symtab): Don't call
3643 decode_line_with_current_source.
3644
3645 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3646
3647 * symtab.c (lookup_global_symbol): Search global block.
3648
3649 2019-10-02 Tom Tromey <tromey@adacore.com>
3650
3651 * coffread.c (process_coff_symbol): Update.
3652 * dwarf2read.c (var_decode_location, new_symbol): Update.
3653 * mdebugread.c (parse_symbol): Update.
3654 * objfiles.c (relocate_one_symbol): Update.
3655 * stabsread.c (define_symbol, fix_common_block)
3656 (scan_file_globals): Update.
3657 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3658 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3659 * xcoffread.c (process_xcoff_symbol): Update.
3660
3661 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3662
3663 * MAINTAINERS: Update my email address.
3664
3665 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3666
3667 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3668 std::vector.
3669 (build_type_psymtabs_reader): Update for std::vector.
3670 (build_type_psymtab_dependencies): Likewise.
3671 * dwarf2read.h: Remove use of DEF_VEC_P.
3672 (typedef sig_type_ptr): Delete.
3673
3674 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3675
3676 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3677 to std::vector.
3678 (btrace_maint_decode_pt): Likewise, and move allocation of the
3679 vector outside of the loop.
3680 (btrace_maint_update_packets): Update to handle change from VEC to
3681 std::vector.
3682 (btrace_maint_print_packets): Likewise.
3683 (maint_info_btrace_cmd): Likewise.
3684 * btrace.h: Remove use of DEF_VEC_O.
3685 (typedef btrace_pt_packet_s): Delete.
3686 (struct btrace_maint_info) <packets>: Change fromm VEC to
3687 std::vector.
3688 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3689
3690 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3691
3692 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3693 make accesses into the vector constant references.
3694 (btrace_add_pc): Update for std::vector.
3695 (btrace_stitch_bts): Likewise.
3696 (parse_xml_btrace_block): Likewise.
3697 (btrace_maint_update_packets): Likewise.
3698 (btrace_maint_print_packets): Likewise.
3699 (maint_info_btrace_cmd): Likewise.
3700 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3701 std::vector.
3702 (btrace_data::empty): Likewise.
3703 (btrace_data_append): Likewise.
3704 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3705 (typedef btrace_block_s): Delete.
3706 (struct btrace_block): Add constructor.
3707 (struct btrace_data_bts) <blocks>: Change to std::vector.
3708 * nat/linux-btrace.c (perf_event_read_bts): Update for
3709 std::vector.
3710 (linux_read_bts): Likewise.
3711
3712 2019-10-01 Tom Tromey <tom@tromey.com>
3713
3714 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3715
3716 2019-10-01 Tom Tromey <tom@tromey.com>
3717
3718 * stack.c (print_frame, info_frame_command_core): Use
3719 styled_string.
3720 * linux-thread-db.c (try_thread_db_load_1)
3721 (try_thread_db_load_from_pdir_1): Use styled_string.
3722 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3723 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3724 (maybe_print_unsupported_script_warning)
3725 (maybe_print_script_not_found_warning): Use styled_string.
3726 * ada-lang.c (user_select_syms): Use styled_string.
3727
3728 2019-10-01 Tom Tromey <tom@tromey.com>
3729
3730 * p-lang.c (pascal_printstr): Use metadata style.
3731 * value.c (show_convenience): Use metadata style.
3732 * valprint.c (valprint_check_validity, val_print_optimized_out)
3733 (val_print_not_saved, val_print_unavailable)
3734 (val_print_invalid_address, generic_val_print, val_print)
3735 (value_check_printable, val_print_array_elements): Use metadata
3736 style.
3737 * ui-out.h (class ui_out) <field_fmt>: New overload.
3738 <do_field_fmt>: Add style parameter.
3739 * ui-out.c (ui_out::field_fmt): New overload.
3740 * typeprint.c (type_print_unknown_return_type)
3741 (val_print_not_allocated, val_print_not_associated): Use metadata
3742 style.
3743 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3744 parameter.
3745 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3746 * tracepoint.c (tvariables_info_1): Use metadata style.
3747 * stack.c (print_frame_arg, print_frame_info, print_frame)
3748 (info_frame_command_core): Use metadata style.
3749 * skip.c (info_skip_command): Use metadata style.
3750 * rust-lang.c (rust_print_enum): Use metadata style.
3751 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3752 metadata style.
3753 * python/py-framefilter.c (py_print_single_arg): Use metadata
3754 style.
3755 * printcmd.c (do_one_display, print_variable_and_value): Use
3756 metadata style.
3757 * p-valprint.c (pascal_val_print)
3758 (pascal_object_print_value_fields): Use metadata style.
3759 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3760 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3761 parameter.
3762 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3763 * m2-valprint.c (m2_print_long_set): Use metadata style.
3764 * m2-typeprint.c (m2_print_type): Use metadata style.
3765 * infcmd.c (print_return_value_1): Use metadata style.
3766 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3767 * f-valprint.c (info_common_command_for_block): Use metadata
3768 style.
3769 * f-typeprint.c (f_type_print_base): Use metadata style.
3770 * expprint.c (print_subexp_standard): Use metadata style.
3771 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3772 * cli/cli-style.h (class cli_style_option): Add constructor.
3773 (metadata_style): Declare.
3774 * cli/cli-style.c (metadata_style): New global.
3775 (_initialize_cli_style): Register metadata style.
3776 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3777 parameter.
3778 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3779 * c-typeprint.c (c_type_print_base_struct_union)
3780 (c_type_print_base_1): Use metadata style.
3781 * breakpoint.c (watchpoint_value_print)
3782 (print_one_breakpoint_location): Use metadata style.
3783 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3784 style.
3785 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3786 style.
3787 * ada-valprint.c (val_print_packed_array_elements, printstr)
3788 (print_field_values, ada_val_print_ref, ada_val_print): Use
3789 metadata style.
3790 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3791 style.
3792 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3793 style.
3794 * ada-lang.c (user_select_syms): Use metadata style.
3795
3796 2019-10-01 Tom Tromey <tom@tromey.com>
3797
3798 * cli/cli-cmds.c (pwd_command): Style output.
3799
3800 2019-10-01 Pedro Alves <palves@redhat.com>
3801 Tom Tromey <tom@tromey.com>
3802
3803 * symtab.c (print_symbol_info): Use %ps.
3804 (print_msymbol_info): Use %ps.
3805 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3806 * printcmd.c (print_variable_and_value): Use %ps.
3807 * macrocmd.c (show_pp_source_pos): Use %ps.
3808 * infrun.c (print_exited_reason): Use ui_out::message.
3809 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3810 (describe_other_breakpoints): Use ui_out::message and new
3811 formats.
3812 (say_where): Use new formats.
3813 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3814 and new formats.
3815
3816 2019-10-01 Pedro Alves <palves@redhat.com>
3817 Tom Tromey <tom@tromey.com>
3818
3819 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3820 (test_gdb_formats): New function.
3821 (run_tests): Call it.
3822 (test_format_specifier): Update.
3823 * utils.h (fputs_filtered): Update comment.
3824 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3825 (fputs_styled_unfiltered): Declare.
3826 * utils.c (fputs_styled_unfiltered): New function.
3827 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3828 (vfprintf_filtered): Update.
3829 (vfprintf_unfiltered, vprintf_filtered): Update.
3830 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3831 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3832 disallow_ui_out_field>: New constants.
3833 (enum class field_kind): New.
3834 (struct base_field_s, struct signed_field_s): New.
3835 (signed_field): New function.
3836 (struct string_field_s): New.
3837 (string_field): New function.
3838 (struct styled_string_s): New.
3839 (styled_string): New function.
3840 (class ui_out) <message>: Add comment.
3841 <vmessage, call_do_message>: New methods.
3842 <do_message>: Add style parameter.
3843 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3844 methods.
3845 (ui_out::message): Rewrite.
3846 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3847 parameter.
3848 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3849 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3850 gdb_extensions parameter.
3851 (class format_piece): Add parameter to constructor.
3852 (n_int_args): New field.
3853 * gdbsupport/format.c (format_pieces::format_pieces): Add
3854 gdb_extensions parameter. Handle '*'.
3855 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3856 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3857 vfprintf_styled_no_gdbfmt.
3858 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3859 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3860 unfiltered output.
3861 * ui-style.h (struct ui_file_style) <ptr>: New method.
3862
3863 2019-10-01 Tom Tromey <tom@tromey.com>
3864
3865 * unittests/format_pieces-selftests.c: Update. Add final format.
3866 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3867 empty literal pieces.
3868
3869 2019-10-01 Tom Tromey <tom@tromey.com>
3870
3871 * ui-out.h (enum class ui_out_style_kind): Remove.
3872 (class ui_out) <field_string, field_stsream, do_field_string>:
3873 Change type of "style".
3874 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3875 (ui_out::field_string): Update.
3876 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3877 of "style".
3878 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3879 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3880 * stack.c (print_frame_arg, print_frame_info, print_frame):
3881 Update.
3882 * source.c (print_source_lines_base): Update.
3883 * solib.c (info_sharedlibrary_command): Update.
3884 * skip.c (info_skip_command): Update.
3885 * record-btrace.c (btrace_call_history_src_line)
3886 (btrace_call_history): Update.
3887 * python/py-framefilter.c (py_print_frame): Update.
3888 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3889 "style".
3890 * mi/mi-out.c (mi_ui_out::do_table_header)
3891 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3892 (mi_ui_out::do_field_string): Update.
3893 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3894 Update.
3895 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3896 "style".
3897 * cli-out.c (cli_ui_out::do_table_header)
3898 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3899 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3900 (cli_ui_out::do_field_fmt): Update.
3901 * breakpoint.c (print_breakpoint_location): Update.
3902 (update_static_tracepoint): Update.
3903
3904 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3905
3906 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3907 conversion of gdb_datadir.
3908 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3909 remove not needed c_str ().
3910
3911 2019-09-30 Ali Tamur <tamur@google.com>
3912
3913 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3914 (dwarf2_string_attr): Likewise.
3915
3916 2019-09-30 Ali Tamur <tamur@google.com>
3917
3918 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3919 (process_full_type_unit): Likewise.
3920 (dump_die_shallow): Likewise.
3921 (cu_debug_loc_section): Likewise.
3922
3923 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3924
3925 * minsyms.c (compare_minimal_symbols): Rename to...
3926 (minimal_symbol_is_less_than): ...this, and adjust to STL
3927 conventions (return bool, take arguments as references)
3928 (minimal_symbol_reader::install): Call std::sort instead
3929 of qsort.
3930
3931 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3932
3933 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3934 hash and why.
3935 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3936 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3937
3938 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3939
3940 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3941 * psympriv.h (add_psymbol_to_list): Move comment here and update
3942 it.
3943
3944 2019-09-29 Tom de Vries <tdevries@suse.de>
3945
3946 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3947 Use $tmpdir/$(basename "$output_file").dwz instead of
3948 "${output_file}.dwz".
3949
3950 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3951
3952 PR gdb/25045
3953 * hppa-linux-nat.c: Include gdbarch.h.
3954
3955 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3956
3957 * blockframe.c (find_pc_partial_function): Change return type to bool.
3958 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3959 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3960 (stub_gnu_ifunc_resolve_name): Likewise.
3961 * symtab.c (compare_filenames_for_search): Likewise.
3962 (compare_glob_filenames_for_search): Likewise.
3963 (matching_obj_sections): Likewise.
3964 (symbol_matches_domain): Likewise.
3965 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3966 (find_line_pc): Change return type to bool.
3967 (find_line_pc_range): Likewise.
3968 (producer_is_realview): Likewise.
3969 * symtab.h (symbol_matches_domain): Likewise.
3970 (find_pc_partial_function): Likewise.
3971 (find_pc_line_pc_range): Likewise.
3972 (in_gnu_ifunc_stub): Likewise.
3973 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3974 (find_line_pc): Likewise.
3975 (find_line_pc_range): Likewise.
3976 (matching_obj_sections): Likewise.
3977 (find_line_symtab): Change out parameter to bool.
3978 (producer_is_realview): Change return type to bool.
3979 (compare_filenames_for_search): Likewise.
3980 (compare_glob_filenames_for_search): Likewise.
3981
3982 2019-09-26 Tom Tromey <tom@tromey.com>
3983
3984 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3985 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3986 * gdb_usleep.h: Remove.
3987 * gdb_usleep.c: Remove.
3988 * utils.c: Don't include gdb_usleep.h.
3989
3990 2019-09-26 Tom Tromey <tromey@adacore.com>
3991
3992 * python/py-type.c (type_to_type_object): Call check_typedef
3993 for stub types.
3994
3995 2019-09-26 Tom Tromey <tom@tromey.com>
3996
3997 * utils.h (initialize_utils): Don't declare.
3998 * top.c (gdb_init): Don't call initialize_utils.
3999 * utils.c (initialize_utils): Remove. Move contents...
4000 (_initialize_utils): ... here.
4001
4002 2019-09-25 Tom Tromey <tom@tromey.com>
4003
4004 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4005 * utils.h (make_hex_string): Don't declare.
4006 * utils.c (make_hex_string): Remove.
4007
4008 2019-09-24 Tom de Vries <tdevries@suse.de>
4009
4010 PR gdb/23815
4011 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4012 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4013
4014 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4015
4016 * NEWS: Mention new simulator port for PRU.
4017
4018 2019-09-23 Christian Biesinger <cbiesinger@google.com>
4019
4020 * ada-exp.y (write_object_remaining): Update.
4021 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4022 and eliminate the static buffer.
4023 (ada_decode_symbol): Update.
4024 (ada_la_decode): Update.
4025 (ada_sniff_from_mangled_name): Update.
4026 (is_valid_name_for_wild_match): Update.
4027 (ada_lookup_name_info::matches): Update and simplify.
4028 (name_matches_regex): Update.
4029 (ada_add_global_exceptions): Update.
4030 * ada-lang.h (ada_decode): Update signature.
4031 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4032 * dwarf-index-write.c (debug_names::insert): Update.
4033
4034 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4035
4036 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4037 formatting.
4038
4039 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4040
4041 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4042 Change "nonzero" to "true" in documentation.
4043
4044 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4045
4046 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4047 (_initialize_darwin_solib): Don't set
4048 darwin_so_ops.lookup_lib_global_symbol.
4049 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4050 set_gdbarch_iterate_over_objfiles_in_search_order.
4051 (elf_lookup_lib_symbol): Rename to...
4052 (svr4_iterate_over_objfiles_in_search_order): this, and update
4053 to iterate semantics.
4054 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4055 * solib.c (solib_global_lookup): Remove.
4056 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4057 (solib_global_lookup): Remove.
4058 * symtab.c (lookup_global_or_static_symbol): Remove call to
4059 solib_global_lookup.
4060
4061 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4062
4063 * NEWS: Move entries about default MI version now being
4064 version 3, and about the GDB/MI fix for multi-location
4065 breakpoints to the "since GDB 8.3" section.
4066
4067 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4068
4069 GDB 8.3.1 released.
4070
4071 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4072
4073 * NEWS: Mention that Cell/B.E. debugging support was removed.
4074 * MAINTAINERS: Remove spu target.
4075
4076 * config/djgpp/fnchange.lst: Remove entries for removed files.
4077
4078 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4079 spu-multiarch.o, and spu-tdep.o.
4080 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4081 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4082 spu-multiarch.c, and spu-tdep.c.
4083 * spu-linux-nat.c: Remove file.
4084 * spu-multiarch.c: Remove file.
4085 * spu-tdep.c: Remove file.
4086 * spu-tdep.h: Remove file.
4087 * solib-spu.c: Remove file.
4088 * solib-spu.h: Remove file.
4089
4090 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4091 * configure.nat (spu-linux): Remove.
4092 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4093 solib-multiarch.o from gdb_target_obs.
4094 (spu*-*-*): Remove.
4095
4096 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4097 feature flag.
4098 (ppc_linux_no_features): Update.
4099 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4100 Cell/B.E. support.
4101 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4102 (tdesc_powerpc_cell64l): Likewise.
4103 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4104 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4105 Cell/B.E. support.
4106 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4107 Do not include "features/rs6000/powerpc-cell32l.c" or
4108 "features/rs6000/powerpc-cell64l.c".
4109 (ppc_linux_spu_section): Remove.
4110 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4111 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4112 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4113 (ppc_linux_spe_context_lookup): Remove.
4114 (ppc_linux_spe_context_inferior_created): Remove.
4115 (ppc_linux_spe_context_solib_loaded): Remove.
4116 (ppc_linux_spe_context_solib_unloaded): Remove.
4117 (ppc_linux_spe_context): Remove.
4118 (struct ppu2spu_cache): Remove.
4119 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4120 (struct ppu2spu_data): Remove.
4121 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4122 ppu2spu_unwind): Remove.
4123 (ppc_linux_init_abi): Remove Cell/B.E. support.
4124 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4125
4126 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4127 (rs6000/powerpc-cell64l-expedite): Likewise
4128 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4129 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4130 rs6000/powerpc-cell64l.xml.
4131 * features/rs6000/powerpc-cell32l.xml: Remove.
4132 * features/rs6000/powerpc-cell64l.xml: Likewise.
4133 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4134 * features/rs6000/powerpc-cell64l.c: Likewise.
4135 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4136 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4137 * regformats/reg-spu.dat: Remove.
4138
4139 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4140 * corelow.c (struct spuid_list): Remove.
4141 (add_to_spuid_list): Remove.
4142 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4143 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4144 (remote_protocol_features): Remove associated entries.
4145 (_initialize_remote): No longer initialize them.
4146 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4147 * linux-nat.c (SPUFS_MAGIC): Remove.
4148 (linux_proc_xfer_spu): Remove.
4149 (spu_enumerate_spu_ids): Remove.
4150 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4151 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4152 (linux_make_corefile_notes): No longer call it.
4153
4154 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4155 (cooked_write_test): Likewise.
4156
4157 2019-09-20 Tom Tromey <tom@tromey.com>
4158
4159 * NEWS: Mention case-sensitivity of TUI commands.
4160 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4161 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4162 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4163
4164 2019-09-20 Tom Tromey <tom@tromey.com>
4165
4166 * tui/tui-source.c (tui_source_window::set_contents): Use
4167 make_unique_xstrdup.
4168 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4169 make_unique_xstrdup.
4170
4171 2019-09-20 Tom Tromey <tom@tromey.com>
4172
4173 * tui/tui-data.c: Remove separator comments.
4174 * tui/tui-layout.c: Remove separator comments.
4175 * tui/tui-win.c: Remove separator comments.
4176 * tui/tui-wingeneral.c: Remove separator comments.
4177
4178 2019-09-20 Tom Tromey <tom@tromey.com>
4179
4180 * tui/tui.h (strcat_to_buf): Don't declare.
4181 * tui/tui.c (strcat_to_buf): Remove.
4182
4183 2019-09-20 Tom Tromey <tom@tromey.com>
4184
4185 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4186 from "fullname".
4187 * tui/tui-source.c (tui_source_window::set_contents)
4188 (tui_source_window::location_matches_p)
4189 (tui_source_window::maybe_update): Update.
4190
4191 2019-09-20 Tom Tromey <tom@tromey.com>
4192
4193 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4194 Update.
4195 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4196 prefix.
4197 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4198 (tui_data_window::line_from_reg_element_no)
4199 (tui_data_window::first_reg_element_no_inline)
4200 (tui_data_window::show_registers)
4201 (tui_data_window::show_register_group)
4202 (tui_data_window::display_registers_from)
4203 (tui_data_window::display_registers_from_line)
4204 (tui_data_window::first_data_item_displayed)
4205 (tui_data_window::delete_data_content_windows)
4206 (tui_data_window::erase_data_content)
4207 (tui_data_window::do_scroll_vertical)
4208 (tui_data_window::refresh_window)
4209 (tui_data_window::check_register_values): Update.
4210
4211 2019-09-20 Tom Tromey <tom@tromey.com>
4212
4213 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4214 (struct tui_locator_window) <full_name, proc_name>: Now
4215 std::string.
4216 * tui/tui-stack.c (tui_locator_window::make_status_line)
4217 (tui_locator_window::set_locator_fullname)
4218 (tui_locator_window::set_locator_info): Update.
4219 * tui/tui-source.c (tui_source_window::set_contents)
4220 (tui_source_window::showing_source_p): Update.
4221
4222 2019-09-20 Tom Tromey <tom@tromey.com>
4223
4224 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4225 Don't call tui_locator_win_info_ptr.
4226
4227 2019-09-20 Tom Tromey <tom@tromey.com>
4228
4229 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4230
4231 2019-09-20 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4234 height for locator.
4235 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4236 * tui/tui-layout.c (show_source_disasm_command, show_data)
4237 (show_source_or_disasm_and_command): Use 1 as height for locator.
4238
4239 2019-09-20 Tom Tromey <tom@tromey.com>
4240
4241 * tui/tui.c (tui_enable): Update.
4242 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4243 Update.
4244 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4245 Update.
4246 * tui/tui-data.c (win_resized): Now bool.
4247 (tui_win_resized): Return bool.
4248 (tui_set_win_resized_to): Accept a bool.
4249
4250 2019-09-20 Tom Tromey <tom@tromey.com>
4251
4252 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4253 Change type of "refresh_values_only".
4254 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4255 type of "refresh_values_only".
4256
4257 2019-09-20 Tom Tromey <tom@tromey.com>
4258
4259 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4260 std::string.
4261 (tui_disassemble): Add "pos" parameter.
4262 (tui_disasm_window::set_contents): Simplify.
4263
4264 2019-09-20 Tom Tromey <tom@tromey.com>
4265
4266 * tui/tui-winsource.h (struct tui_source_window_base)
4267 <show_source_content>: Now private.
4268 * tui/tui-winsource.c
4269 (tui_source_window_base::show_source_content): Don't handle empty
4270 content case.
4271
4272 2019-09-20 Tom Tromey <tom@tromey.com>
4273
4274 * tui/tui-layout.c (show_source_disasm_command)
4275 (show_source_or_disasm_and_command): Don't call
4276 show_source_content.
4277
4278 2019-09-20 Tom Tromey <tom@tromey.com>
4279
4280 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4281 Declare.
4282 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4283 from tui_make_status_line.
4284 (tui_locator_window::rerender): Update.
4285
4286 2019-09-20 Tom Tromey <tom@tromey.com>
4287
4288 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4289 (tui_locator_window::rerender): Update.
4290
4291 2019-09-20 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-winsource.h (struct tui_source_window_base)
4294 <~tui_source_window_base>: Don't declare.
4295 <fullname>: Remove.
4296 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4297 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4298 member.
4299 * tui/tui-source.c (tui_source_window::set_contents): Update.
4300 (tui_source_window::location_matches_p)
4301 (tui_source_window::maybe_update): Update.
4302
4303 2019-09-20 Tom Tromey <tom@tromey.com>
4304
4305 * tui/tui-winsource.h (~tui_source_element): Remove.
4306 (tui_source_element): Update.
4307 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4308 * tui/tui-winsource.c (tui_show_source_line): Update.
4309 * tui/tui-source.c (tui_source_window::set_contents): Update.
4310 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4311
4312 2019-09-20 Tom Tromey <tom@tromey.com>
4313
4314 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4315 declare.
4316 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4317 tui_clear_source_windows_detail.
4318 * tui/tui-winsource.h (struct tui_source_window_base)
4319 <clear_detail>: Don't declare.
4320 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4321 Remove.
4322 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4323
4324 2019-09-20 Tom Tromey <tromey@adacore.com>
4325
4326 PR ada/24919:
4327 * block.c (contained_in): Fix final return value.
4328
4329 2019-09-20 Alan Modra <amodra@gmail.com>
4330
4331 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4332 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4333 (read_indirect_string_from_dwz): Use bfd accessor.
4334 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4335 * machoread.c (macho_symfile_read_all_oso): Likewise.
4336 * solib.c (solib_bfd_open): Likewise.
4337
4338 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4339
4340 * eval.c: Move declaration of overload_resolution to...
4341 * value.h: ...here.
4342
4343 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4344
4345 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4346 * arm-linux-tdep.c: Likewise.
4347 * arm-nbsd-nat.c: Likewise.
4348 * arm-tdep.h: Declare arm_apcs_32.
4349 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4350
4351 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4352
4353 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4354 * dwarf2read.h: Declare dwarf_always_disassemble.
4355
4356 2019-09-19 Tom de Vries <tdevries@suse.de>
4357
4358 PR gdb/25009
4359 * source-cache.c (source_cache::ensure): Catch exception thrown during
4360 construction of the highlighter.
4361
4362 2019-09-18 Alan Modra <amodra@gmail.com>
4363
4364 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4365 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4366 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4367 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4368 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4369 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4370 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4371 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4372 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4373 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4374 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4375 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4376 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4377 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4378 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4379 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4380 * mi/mi-interp.c: Update throughout for bfd section macro and
4381 function changes.
4382 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4383 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4384
4385 2019-09-18 Tom Tromey <tom@tromey.com>
4386
4387 * NEWS: Add entry.
4388 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4389 call rl_initialize.
4390 (tui_enable): Do not call rl_initialize.
4391
4392 2019-09-18 Christian Groessler <chris@groessler.org>
4393
4394 * alpha-linux-nat.c: Include gdbarch.h.
4395
4396 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4397
4398 * ui-file.c: Include cli/cli-style.h.
4399 (term_cli_styling): Remove cli_styling declaration.
4400
4401 2019-09-18 Alan Modra <amodra@gmail.com>
4402
4403 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4404 to bfd_asymbol_section.
4405
4406 2019-09-18 Alan Modra <amodra@gmail.com>
4407
4408 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4409 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4410 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4411
4412 2019-09-18 Alan Modra <amodra@gmail.com>
4413
4414 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4415 * spu-linux-nat.c (spu_bfd_open): Likewise.
4416
4417 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4418
4419 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4420 to bool to match definition in dwarf2read.c.
4421
4422 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4423
4424 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4425 (print_signatures): Likewise.
4426 (trust_pad_over_xvs): Likewise.
4427 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4428 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4429 * arm-linux-nat.c (arm_apcs_32): Likewise.
4430 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4431 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4432 * arm-tdep.c (arm_debug): Likewise.
4433 (arm_apcs_32): Likewise.
4434 * auto-load.c (debug_auto_load): Likewise.
4435 (auto_load_gdb_scripts): Likewise.
4436 (global_auto_load): Likewise.
4437 (auto_load_local_gdbinit): Likewise.
4438 (auto_load_local_gdbinit_loaded): Likewise.
4439 * auto-load.h (global_auto_load): Likewise.
4440 (auto_load_local_gdbinit): Likewise.
4441 (auto_load_local_gdbinit_loaded): Likewise.
4442 * breakpoint.c (disconnected_dprintf): Likewise.
4443 (breakpoint_proceeded): Likewise.
4444 (automatic_hardware_breakpoints): Likewise.
4445 (always_inserted_mode): Likewise.
4446 (target_exact_watchpoints): Likewise.
4447 (_initialize_breakpoint): Update.
4448 * breakpoint.h (target_exact_watchpoints): Change to bool.
4449 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4450 * cli/cli-cmds.c (trace_commands): Likewise.
4451 * cli/cli-cmds.h (trace_commands): Likewise.
4452 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4453 to bool*.
4454 * cli/cli-logging.c (logging_overwrite): Change to bool.
4455 (logging_redirect): Likewise.
4456 (debug_redirect): Likewise.
4457 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4458 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4459 to bool.
4460 <boolean_option_def>: Update.
4461 (struct flag_option_def): Change default type of Context to bool
4462 from int.
4463 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4464 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4465 (get_setshow_command_value_string): Likewise.
4466 * cli/cli-style.c (cli_styling): Change to bool.
4467 (source_styling): Likewise.
4468 * cli/cli-style.h (source_styling): Likewise.
4469 (cli_styling): Likewise.
4470 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4471 to bool.
4472 * command.h (var_types): Update comment.
4473 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4474 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4475 bool.
4476 (debug_compile_cplus_scopes): Likewise.
4477 * compile/compile-internal.h (compile_debug): Likewise.
4478 * compile/compile.c (compile_debug): Likewise.
4479 (struct compile_options) <raw>: Likewise.
4480 * cp-support.c (catch_demangler_crashes): Likewise.
4481 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4482 (usr_cmd_cris_dwarf2_cfi): Likewise.
4483 * csky-tdep.c (csky_debug): Likewise.
4484 * darwin-nat.c (enable_mach_exceptions): Likewise.
4485 * dcache.c (dcache_enabled_p): Likewise.
4486 * defs.h (info_verbose): Likewise.
4487 * demangle.c (demangle): Likewise.
4488 (asm_demangle): Likewise.
4489 * dwarf-index-cache.c (debug_index_cache): Likewise.
4490 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4491 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4492 * dwarf2read.c (check_physname): Likewise.
4493 (use_deprecated_index_sections): Likewise.
4494 (dwarf_always_disassemble): Likewise.
4495 * eval.c (overload_resolution): Likewise.
4496 * event-top.c (set_editing_cmd_var): Likewise.
4497 (exec_done_display_p): Likewise.
4498 * event-top.h (set_editing_cmd_var): Likewise.
4499 (exec_done_display_p): Likewise.
4500 * exec.c (write_files): Likewise.
4501 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4502 (debug_fbsd_nat): Likewise.
4503 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4504 Likewise.
4505 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4506 <backtrace_past_entry> Likewise.
4507 * gdb-demangle.h (demangle): Likewise.
4508 (asm_demangle): Likewise.
4509 * gdb_bfd.c (bfd_sharing): Likewise.
4510 * gdbcore.h (write_files): Likewise.
4511 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4512 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4513 * gdbthread.h (print_thread_events): Likewise.
4514 * gdbtypes.c (opaque_type_resolution): Likewise.
4515 (strict_type_checking): Likewise.
4516 * gnu-nat.c (gnu_debug_flag): Likewise.
4517 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4518 * guile/scm-param.c (pascm_variable): Add boolval.
4519 (add_setshow_generic): Update.
4520 (pascm_param_value): Update.
4521 (pascm_set_param_value_x): Update.
4522 * hppa-tdep.c (hppa_debug): Change to bool..
4523 * infcall.c (may_call_functions_p): Likewise.
4524 (coerce_float_to_double_p): Likewise.
4525 (unwind_on_signal_p): Likewise.
4526 (unwind_on_terminating_exception_p): Likewise.
4527 * infcmd.c (startup_with_shell): Likewise.
4528 * inferior.c (print_inferior_events): Likewise.
4529 * inferior.h (startup_with_shell): Likewise.
4530 (print_inferior_events): Likewise.
4531 * infrun.c (step_stop_if_no_debug): Likewise.
4532 (detach_fork): Likewise.
4533 (debug_displaced): Likewise.
4534 (disable_randomization): Likewise.
4535 (non_stop): Likewise.
4536 (non_stop_1): Likewise.
4537 (observer_mode): Likewise.
4538 (observer_mode_1): Likewise.
4539 (set_observer_mode): Update.
4540 (sched_multi): Change to bool.
4541 * infrun.h (debug_displaced): Likewise.
4542 (sched_multi): Likewise.
4543 (step_stop_if_no_debug): Likewise.
4544 (non_stop): Likewise.
4545 (disable_randomization): Likewise.
4546 * linux-tdep.c (use_coredump_filter): Likewise.
4547 (dump_excluded_mappings): Likewise.
4548 * linux-thread-db.c (auto_load_thread_db): Likewise.
4549 (check_thread_db_on_load): Likewise.
4550 * main.c (captured_main_1): Update.
4551 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4552 xx2_opt, boolean_opt>: Change to bool.
4553 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4554 * maint.c (maintenance_profile_p): Likewise.
4555 (per_command_time): Likewise.
4556 (per_command_space): Likewise.
4557 (per_command_symtab): Likewise.
4558 * memattr.c (inaccessible_by_default): Likewise.
4559 * mi/mi-main.c (mi_async): Likewise.
4560 (mi_async_1): Likewise.
4561 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4562 * nat/fork-inferior.h (startup_with_shell): Likewise.
4563 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4564 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4565 * nios2-tdep.c (nios2_debug): Likewise.
4566 * or1k-tdep.c (or1k_debug): Likewise.
4567 * parse.c (parser_debug): Likewise.
4568 * parser-defs.h (parser_debug): Likewise.
4569 * printcmd.c (print_symbol_filename): Likewise.
4570 * proc-api.c (procfs_trace): Likewise.
4571 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4572 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4573 (set_parameter_value): Update.
4574 (add_setshow_generic): Update.
4575 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4576 to bool*.
4577 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4578 int*.
4579 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4580 * record-btrace.c (record_btrace_target::store_registers): Update.
4581 * record-full.c (record_full_memory_query): Change to bool.
4582 (record_full_stop_at_limit): Likewise.
4583 * record-full.h (record_full_memory_query): Likewise.
4584 * remote-notif.c (notif_debug): Likewise.
4585 * remote-notif.h (notif_debug): Likewise.
4586 * remote.c (use_range_stepping): Likewise.
4587 (interrupt_on_connect): Likewise.
4588 (remote_break): Likewise.
4589 * ser-tcp.c (tcp_auto_retry): Likewise.
4590 * ser-unix.c (serial_hwflow): Likewise.
4591 * skip.c (debug_skip): Likewise.
4592 * solib-aix.c (solib_aix_debug): Likewise.
4593 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4594 (spu_auto_flush_cache_p): Likewise.
4595 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4596 Likewise.
4597 (struct info_print_options) <quiet>: Likewise.
4598 * symfile-debug.c (debug_symfile): Likewise.
4599 * symfile.c (auto_solib_add): Likewise.
4600 (separate_debug_file_debug): Likewise.
4601 * symfile.h (auto_solib_add): Likewise.
4602 (separate_debug_file_debug): Likewise.
4603 * symtab.c (basenames_may_differ): Likewise.
4604 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4605 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4606 (struct info_types_options) <quiet>: Likewise.
4607 * symtab.h (demangle): Likewise.
4608 (basenames_may_differ): Likewise.
4609 * target-dcache.c (stack_cache_enabled_1): Likewise.
4610 (code_cache_enabled_1): Likewise.
4611 * target.c (trust_readonly): Likewise.
4612 (may_write_registers): Likewise.
4613 (may_write_memory): Likewise.
4614 (may_insert_breakpoints): Likewise.
4615 (may_insert_tracepoints): Likewise.
4616 (may_insert_fast_tracepoints): Likewise.
4617 (may_stop): Likewise.
4618 (auto_connect_native_target): Likewise.
4619 (target_stop_and_wait): Update.
4620 (target_async_permitted): Change to bool.
4621 (target_async_permitted_1): Likewise.
4622 (may_write_registers_1): Likewise.
4623 (may_write_memory_1): Likewise.
4624 (may_insert_breakpoints_1): Likewise.
4625 (may_insert_tracepoints_1): Likewise.
4626 (may_insert_fast_tracepoints_1): Likewise.
4627 (may_stop_1): Likewise.
4628 * target.h (target_async_permitted): Likewise.
4629 (may_write_registers): Likewise.
4630 (may_write_memory): Likewise.
4631 (may_insert_breakpoints): Likewise.
4632 (may_insert_tracepoints): Likewise.
4633 (may_insert_fast_tracepoints): Likewise.
4634 (may_stop): Likewise.
4635 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4636 (make_thread_apply_all_options_def_group): Change argument from int*
4637 to bool*.
4638 (thread_apply_all_command): Update.
4639 (print_thread_events): Change to bool.
4640 * top.c (confirm): Likewise.
4641 (command_editing_p): Likewise.
4642 (history_expansion_p): Likewise.
4643 (write_history_p): Likewise.
4644 (info_verbose): Likewise.
4645 * top.h (confirm): Likewise.
4646 (history_expansion_p): Likewise.
4647 * tracepoint.c (disconnected_tracing): Likewise.
4648 (circular_trace_buffer): Likewise.
4649 * typeprint.c (print_methods): Likewise.
4650 (print_typedefs): Likewise.
4651 * utils.c (debug_timestamp): Likewise.
4652 (sevenbit_strings): Likewise.
4653 (pagination_enabled): Likewise.
4654 * utils.h (sevenbit_strings): Likewise.
4655 (pagination_enabled): Likewise.
4656 * valops.c (overload_resolution): Likewise.
4657 * valprint.h (struct value_print_options) <prettyformat_arrays,
4658 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4659 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4660 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4661 Likewise.
4662 * windows-nat.c (new_console): Likewise.
4663 (cygwin_exceptions): Likewise.
4664 (new_group): Likewise.
4665 (debug_exec): Likewise.
4666 (debug_events): Likewise.
4667 (debug_memory): Likewise.
4668 (debug_exceptions): Likewise.
4669 (useshell): Likewise.
4670 * windows-tdep.c (maint_display_all_tib): Likewise.
4671 * xml-support.c (debug_xml): Likewise.
4672
4673 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4674
4675 * source.c (prepare_path_for_appending): New function.
4676 (openp): Make use of new function.
4677 (find_and_open_source): Search for the compilation directory and
4678 source file as a relative path beneath the directory search path.
4679
4680 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4681
4682 * source-cache.c (source_cache::get_line_charpos): Catch
4683 exceptions and return false, this matches the behaviour documented
4684 in the header file.
4685
4686 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4687
4688 * ada-tasks.c (info_task): Remove quoting of the task's name.
4689
4690 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4691
4692 * symfile.c (auto_solib_add): Replace comment with a reference
4693 to the header file.
4694
4695 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4696
4697 * NEWS: Mention that gdb can now be compiled with Python 3
4698 on Windows.
4699
4700 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4701
4702 * maint.c (maint_print_section_data::maint_print_section_data):
4703 Force use of 'float log10 (float)' by casting the argument to
4704 float.
4705
4706 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4707
4708 * maint.c: Add 'cmath' include.
4709 (struct maint_print_section_data): New structure.
4710 (print_section_index): New function.
4711 (print_bfd_section_info): Add header comment, small whitespace
4712 cleanup, and update to call new print_section_index function.
4713 (print_objfile_section_info): Likewise.
4714 (maint_obj_section_from_bfd_section): New function.
4715 (print_bfd_section_info_maybe_relocated): New function.
4716 (maintenance_info_sections): Add header comment, always use
4717 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4718
4719 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4720
4721 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4722 inner scope, add check that the objfile has psymtabs before
4723 checking psymtabs_addrmap.
4724 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4725
4726 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4727
4728 * NEWS: Announce that Ada task names are now shown at more places,
4729 and between quotes (except in info task output).
4730 * gdb/ada-tasks.c (task_to_str): New function.
4731 (display_current_task_id): Call task_to_str.
4732 (task_command_1): Likewise.
4733 (print_ada_task_info): In non-mi mode, Properly align headers and data
4734 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4735
4736 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4737
4738 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4739 prstatus.pr_lwp.pr_info instead of making it up.
4740
4741 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4742
4743 * auto-load.c (auto_load_expand_dir_vars): Update.
4744 * defs.h (gdb_datadir): Change to std::string.
4745 (python_libdir): Likewise.
4746 (relocate_gdb_directory): Change return type to std::string.
4747 * guile/guile.c (gdbscm_data_directory): Update.
4748 (initialize_scheme_side): Update.
4749 * jit.c (jit_reader_dir): Change to std::string.
4750 (jit_reader_load_command): Update.
4751 * main.c (gdb_datadir): Change to std::string.
4752 (python_libdir): Likewise.
4753 (set_gdb_data_directory): Update.
4754 (relocate_path): Change to return std::string.
4755 (relocate_gdb_directory): Change to return std::string.
4756 (relocate_gdbinit_path_maybe_in_datadir): Update.
4757 (captured_main_1): Update.
4758 * python/python.c (do_start_initialization): Update.
4759 * top.c (show_gdb_datadir): Update.
4760 * xml-syscall.c (xml_init_syscalls_info): Update.
4761 (init_syscalls_info): Update.
4762
4763 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4764
4765 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4766 out of get_init_files.
4767 (get_init_files): Update.
4768
4769 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4770
4771 * main.c (get_init_files): Change to use std::string.
4772 (captured_main_1): Update.
4773 (print_gdb_help): Update.
4774
4775 2019-09-11 Ali Tamur <tamur@google.com>
4776
4777 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4778 implementation.
4779
4780 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4781
4782 * dbxread.c (read_dbx_symtab): Update.
4783 * dwarf2read.c (load_partial_dies): Update.
4784 * mdebugread.c (parse_partial_symbols): Update.
4785 (handle_psymbol_enumerators): Update.
4786 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4787 * psymtab.c (add_psymbol_to_bcache): Likewise.
4788 (add_psymbol_to_list): Likewise.
4789 * symtab.c (symbol_set_names): Likewise.
4790 * symtab.h (symbol_set_names): Likewise.
4791 * xcoffread.c (scan_xcoff_symtab): Update.
4792
4793 2019-09-11 Tom Tromey <tom@tromey.com>
4794
4795 * symfile-mem.c (symbol_file_add_from_memory): Use
4796 bfd_set_filename.
4797 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4798 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4799
4800 2019-09-10 Tom Tromey <tromey@adacore.com>
4801
4802 * dwarf-index-write.c (write_psymbols): Extend error message.
4803 (debug_names::insert): Add Ada code.
4804 (debug_names::write_psymbols): Remove Ada check.
4805 (debug_names) <m_string_obstack>: New member.
4806 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4807 (gdb_index_symbol_name_matcher::matches): Remove.
4808 (mapped_index_base::find_name_components_bounds): Add "lang"
4809 parameter.
4810 (mapped_index_base::build_name_components): Also split names
4811 according to Ada syntax.
4812 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4813 type of "match_callback".
4814 (check_match, check_find_bounds_finds)
4815 (dw2_expand_symtabs_matching): Update.
4816 (dw2_debug_names_iterator): Add new constructor.
4817 (dw2_debug_names_map_matching_symbols): New function.
4818 (dw2_debug_names_expand_symtabs_matching): Update.
4819 (dwarf2_debug_names_functions): Use
4820 dw2_debug_names_map_matching_symbols.
4821
4822 2019-09-10 Tom Tromey <tromey@adacore.com>
4823
4824 * dwarf2read.c (dw2_get_file_names_reader): Add the
4825 CU's file name to the results.
4826
4827 2019-09-10 Tom Tromey <tromey@adacore.com>
4828
4829 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4830 map_matching_symbols. Update.
4831 * dwarf2read.c (dw2_map_matching_symbols): Update.
4832 * psymtab.c (match_partial_symbol): Change type; update.
4833 (psym_map_matching_symbols): Likewise.
4834 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4835 type; update.
4836 * symfile.h (struct quick_symbol_functions)
4837 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4838 Remove "match".
4839
4840 2019-09-10 Tom Tromey <tromey@adacore.com>
4841
4842 * psymtab.c (map_block): Remove.
4843 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4844 * symtab.c (iterate_over_symbols_terminated): New function.
4845 * symtab.c (iterate_over_symbols_terminated): Declare.
4846
4847 2019-09-10 Tom Tromey <tromey@adacore.com>
4848
4849 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4850 * language.h (struct language_defn) <la_iterate_over_symbols>:
4851 Return bool.
4852 * symtab.c (iterate_over_symbols): Return bool.
4853 * symtab.h (iterate_over_symbols): Return bool.
4854
4855 2019-09-10 Tom Tromey <tromey@adacore.com>
4856
4857 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4858 (add_nonlocal_symbols): Update.
4859 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4860 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4861 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4862 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4863 Change type of "callback". Remove "data".
4864
4865
4866 2019-09-09 Ali Tamur <tamur@google.com>
4867
4868 * dwarf2read.c (comp_unit_head): Update comment.
4869 (dwarf2_dwo_name): New function declaration.
4870 (dwarf_unit_type_name): New function declaration.
4871 (read_comp_unit_head): Add support for new compilation units,
4872 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4873 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4874 (currently named as "signature") in their header. Also clarify error
4875 messages.
4876 (lookup_dwo_id): New function. Returns the dwo id of the given
4877 compile unit.
4878 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4879 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4880 functions.
4881 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4882 (dwarf2_dwo_name): Get the dwo name if present.
4883 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4884 purposes.
4885
4886 2019-09-09 Tom Tromey <tom@tromey.com>
4887
4888 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4889
4890 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4891
4892 * python/python.c (do_start_initialization): Make progname_copy static,
4893 to avoid a leak report.
4894
4895 2019-09-08 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4898
4899 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4900
4901 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4902 Change type to gdb::optional<block_enum>.
4903 (dw2_symtab_iter_init): Change block_index parameter type
4904 to gdb::optional<block_enum>.
4905 (dw2_lookup_symbol): Change block_index parameter
4906 type to block_enum.c
4907 (dw2_debug_names_lookup_symbol): Likewise.
4908 * psymtab.c (psym_lookup_symbol): Likewise.
4909 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4910 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4911 Likewise.
4912
4913 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4914
4915 * defs.h (relocate_gdb_directory): Change int to bool in
4916 signature and rename flag to relocatable.
4917 * main.c (relocate_path): Likewise.
4918 (relocate_gdb_directory): Likewise.
4919
4920 2019-09-06 Alan Modra <amodra@gmail.com>
4921
4922 * coffread.c (coff_symfile_read): Constify filename variable.
4923 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4924 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4925 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4926 * solib.c (reload_shared_libraries_1): Likewise.
4927 * symfile.c (reread_symbols): Likewise.
4928 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4929 * solib-darwin.c (darwin_bfd_open): Likewise.
4930 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4931
4932 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4935 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4936
4937 2019-09-03 Tom Tromey <tromey@adacore.com>
4938
4939 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4940 types.
4941 (has_negatives): Unbias a range type bound.
4942 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4943 * gdbtypes.c (operator==): Handle new field.
4944 (create_range_type): Add "bias" parameter.
4945 (create_static_range_type, resolve_dynamic_range): Update.
4946 * gdbtypes.h (struct range_bounds) <bias>: New member.
4947 (create_range_type): Add bias parameter.
4948 * printcmd.c (print_scalar_formatted): Unbias range types.
4949 * value.c (unpack_long): Unbias range types.
4950 (pack_long): Bias range types.
4951
4952 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4953
4954 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4955 probe arguments.
4956
4957 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4958
4959 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4960 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4961 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4962 (compile_probe_arg): Likewise.
4963 * probe.h (get_argument_count): Likewise.
4964 * solib-svr4.c (solib_event_probe_action): Likewise.
4965 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4966
4967 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4968
4969 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4970 code to here...
4971 (svr4_create_solib_event_breakpoints): ...from here.
4972
4973 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4974
4975 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4976 suffix from warning message.
4977
4978 2019-08-30 Tom Tromey <tom@tromey.com>
4979
4980 * tui/tui-winsource.h (struct tui_source_window_base)
4981 <refresh_all>: Don't declare.
4982 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4983 Remove.
4984 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4985 tui_show_locator_content.
4986 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4987 declare.
4988 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4989 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4990 declare.
4991
4992 2019-08-30 Tom Tromey <tom@tromey.com>
4993
4994 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4995
4996 2019-08-30 Tom Tromey <tom@tromey.com>
4997
4998 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4999 Remove unnecessary forward declarations.
5000
5001 2019-08-30 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5004 rerender.
5005 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5006 tui_show_locator_content.
5007
5008 2019-08-30 Tom Tromey <tom@tromey.com>
5009
5010 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5011 (tui_locator_window::rerender): Rewrite using body of previous
5012 tui_show_locator_content.
5013
5014 2019-08-30 Tom Tromey <tom@tromey.com>
5015
5016 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5017 set_locator_fullname>: New methods.
5018 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5019 Rename from tui_set_locator_fullname.
5020 (tui_locator_window::set_locator_info): Rename from
5021 tui_set_locator_info. Return bool.
5022 (tui_update_locator_fullname, tui_show_frame_info): Update.
5023
5024 2019-08-30 Tom Tromey <tom@tromey.com>
5025
5026 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5027
5028 2019-08-30 Tom Tromey <tom@tromey.com>
5029
5030 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5031 call touchwin.
5032
5033 2019-08-30 Tom Tromey <tom@tromey.com>
5034
5035 * tui/tui-wingeneral.c (box_win): Assume win_info and
5036 win_info->handle cannot be NULL.
5037
5038 2019-08-30 Tom Tromey <tom@tromey.com>
5039
5040 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5041 refresh_window>: Declare.
5042 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5043 resize.
5044 (tui_data_item_window::rerender): Rename from
5045 tui_display_register.
5046 (tui_data_item_window::refresh_window): New method.
5047 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5048 no-op.
5049
5050 2019-08-30 Tom Tromey <tom@tromey.com>
5051
5052 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5053 regs_column_count, current_group>: Move later. Now private.
5054 <get_current_group>: New method.
5055 * tui/tui-regs.c (tui_reg_command): Update.
5056 * tui/tui-layout.c (tui_set_layout): Update.
5057
5058 2019-08-30 Tom Tromey <tom@tromey.com>
5059
5060 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5061 (tui_data_window::rerender): Don't call
5062 check_and_display_highlight_if_needed.
5063 (tui_data_window::refresh_all): Remove call to
5064 erase_data_content.
5065
5066 2019-08-30 Tom Tromey <tom@tromey.com>
5067
5068 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5069 (tui_data_window::display_registers_from)
5070 (tui_data_window::display_reg_element_at_line)
5071 (tui_data_window::display_registers_from_line): Remove checks of
5072 "empty".
5073
5074 2019-08-30 Tom Tromey <tom@tromey.com>
5075
5076 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5077 Don't declare.
5078 * tui/tui-regs.c (tui_data_window::show_registers): Call
5079 rerender.
5080 (tui_data_window::rerender): Rename from display_all_data.
5081 (tui_data_window::rerender): Remove old implementation.
5082
5083 2019-08-30 Tom Tromey <tom@tromey.com>
5084
5085 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5086 text.
5087 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5088
5089 2019-08-29 Bernhard Wodok <barto@gmx.net>
5090 Sergio Durigan Junior <sergiodj@redhat.com>
5091
5092 PR win32/24284
5093 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5094
5095 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5096
5097 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5098 when searching for types.
5099
5100 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * f-lang.c (f_language_defn): Use f_print_typedef.
5103 * f-lang.h (f_print_typedef): Declare.
5104 * f-typeprint.c (f_print_typedef): Define.
5105
5106 2019-08-27 Christian Biesinger <cbiesinger@google.com>
5107
5108 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5109
5110 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 * cli/cli-utils.c (info_print_options_defs): Delete.
5113 (make_info_print_options_def_group): Delete.
5114 (extract_info_print_options): Delete.
5115 (info_print_command_completer): Delete.
5116 (info_print_args_help): Add extra parameter, and optionally
5117 include text about -n flag.
5118 * cli/cli-utils.h (struct info_print_options): Delete.
5119 (extract_info_print_options): Delete declaration.
5120 (info_print_command_completer): Delete declaration.
5121 (info_print_args_help): Add extra parameter, extend header
5122 comment.
5123 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5124 search_symbols.
5125 * stack.c (struct info_print_options): New type.
5126 (info_print_options_defs): New file scoped variable.
5127 (make_info_print_options_def_group): New static function.
5128 (info_print_command_completer): New static function.
5129 (info_locals_command): Update to use new local functions.
5130 (info_args_command): Likewise.
5131 (_initialize_stack): Add extra parameter to calls to
5132 info_print_args_help.
5133 * symtab.c (search_symbols): Add extra parameter, use this to
5134 possibly excluse non-debug symbols.
5135 (symtab_symbol_info): Add extra parameter, which is passed on to
5136 search_symbols.
5137 (struct info_print_options): New type.
5138 (info_print_options_defs): New file scoped variable.
5139 (make_info_print_options_def_group): New static function.
5140 (info_print_command_completer): New static function.
5141 (info_variables_command): Update to use local functions, and pass
5142 extra parameter through to symtab_symbol_info.
5143 (info_functions_command): Likewise.
5144 (info_types_command): Pass additional argument through to
5145 symtab_symbol_info.
5146 (rbreak_command): Pass extra argument to search_symbols.
5147 (_initialize_symtab): Add extra arguments for calls to
5148 info_print_args_help, and update help text for 'info variables',
5149 'whereis', and 'info functions' commands.
5150 * symtab.h (search_symbols): Add extra argument to declaration.
5151 * NEWS: Mention new flags.
5152
5153 2019-08-26 Christian Biesinger <cbiesinger@google.com>
5154
5155 * symtab.c (lookup_static_symbol): Call the new function (and move
5156 it down to be next to lookup_global_symbol).
5157 (struct global_sym_lookup_data): Add block_enum member and rename to...
5158 (struct global_or_static_sym_lookup_data): ...this.
5159 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5160 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5161 (lookup_symbol_global_or_static_iterator_cb): ...this.
5162 (lookup_global_or_static_symbol): New function.
5163 (lookup_global_symbol): Call new function.
5164
5165 2019-08-26 Tom de Vries <tdevries@suse.de>
5166
5167 PR c++/24852
5168 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5169 when pc_probe.prob == NULL.
5170
5171 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5172
5173 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5174 variable symbol_linkage to symbol_linkage_.
5175
5176 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5177
5178 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5179 represent whether the symbol is static, dynamic, or we don't
5180 know.
5181
5182 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5183
5184 * gdb/rx-tdep.c (rx_register_names): New.
5185 (rx_register_name): Delete.
5186 (rx_psw_type): Delete.
5187 (rx_fpsw_type): Delete.
5188 (rx_register_type): Delete.
5189 (rx_gdbarch_init): Convert target-descriptions.
5190 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5191 * gdb/features/Makefile: Add rx.xml.
5192 * gdb/features/rx.xml: New.
5193 * gdb/features/rx.c: Generated.
5194 * gdb/NEWS: Mention target description support.
5195
5196 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5197
5198 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5199 *slot_ptr.
5200
5201 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5202
5203 * configure.ac: Don't check for 'dlfcn.h' (moved to
5204 gdbsupport/common.m4).
5205 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5206 'gdbsupport/'.
5207 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5208 * compile/compile-c-support.c: Include
5209 'gdbsupport/gdb-dlfcn.h'.
5210 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5211 * gdb-dlfcn.c: Move to...
5212 * gdbsupport/gdb-dlfcn.c: ... here.
5213 * gdb-dlfcn.h: Move to...
5214 * gdbsupport/gdb-dlfcn.h: ... here.
5215
5216 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5217
5218 * nios2-tdep.c (struct reg_value): Improve comments. Make
5219 the offset field signed.
5220
5221 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5222
5223 * python/lib/gdb/__init__.py (_execute_file): New function.
5224 * python/python.c (python_run_simple_file): Call gdb._execute_file
5225 on Windows.
5226
5227 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5228
5229 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5230 all uses as this was never set to anything but a zero value.
5231
5232 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5233
5234 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5235
5236 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5237
5238 * tui/tui-data.h (tui_gen_win_info): Add an =default
5239 move constructor, required by some GCC versions.
5240
5241 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5242
5243 * go32-nat.c (go32_sysinfo): Add hygon_p.
5244
5245 2019-08-20 Tom Tromey <tom@tromey.com>
5246
5247 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5248 line_from_reg_element_no, first_reg_element_no_inline,
5249 display_all_data, delete_data_content_windows,
5250 erase_data_content>: Now private.
5251
5252 2019-08-20 Tom Tromey <tom@tromey.com>
5253
5254 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5255 (tui_unhighlight_win, tui_highlight_win)
5256 (tui_win_info::make_window): Update.
5257 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5258
5259 2019-08-20 Tom Tromey <tom@tromey.com>
5260
5261 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5262 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5263 (MAX_PID_WIDTH): Move to tui-stack.c.
5264 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5265 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5266 (MAX_PID_WIDTH): Move from tui-data.h.
5267
5268 2019-08-20 Tom Tromey <tom@tromey.com>
5269
5270 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5271 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5272 (box_win): Update.
5273 (tui_gen_win_info::make_window): Rename from tui_make_window.
5274 (tui_win_info::make_window): New method.
5275 (tui_gen_win_info::make_visible): Update.
5276 * tui/tui-source.c (tui_source_window::set_contents): Update.
5277 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5278 (tui_data_window::display_registers_from): Update.
5279 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5280 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5281 Declare.
5282 <can_box>: Remove.
5283 <title>: Remove.
5284 (struct tui_win_info) <make_window>: Declare.
5285 <can_box>: Now virtual.
5286 <title>: New member.
5287 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5288 * tui/tui-command.c (tui_cmd_window::resize): Update.
5289
5290 2019-08-20 Tom Tromey <tom@tromey.com>
5291
5292 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5293 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5294 (tui_data_window::check_register_values): Update.
5295
5296 2019-08-20 Tom Tromey <tom@tromey.com>
5297
5298 * tui/tui-regs.h (struct tui_data_window): Use
5299 DISABLE_COPY_AND_ASSIGN.
5300 <regs_content>: Change type, removing unique_ptr.
5301 <tui_data_window>: Add move constructor.
5302 * tui/tui-regs.c (tui_data_window::show_registers)
5303 (tui_data_window::show_register_group)
5304 (tui_data_window::display_registers_from)
5305 (tui_data_window::display_registers_from)
5306 (tui_data_window::first_data_item_displayed)
5307 (tui_data_window::delete_data_content_windows)
5308 (tui_data_window::rerender, tui_data_window::refresh_window)
5309 (tui_data_window::check_register_values): Update.
5310
5311 2019-08-20 Tom Tromey <tom@tromey.com>
5312
5313 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5314 show_register_group>: Declare.
5315 (tui_show_register_group): Don't declare.
5316 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5317 tui_show_registers.
5318 (tui_data_window::show_register_group): Rename from
5319 tui_show_register_group.
5320 (tui_data_window::check_register_values, tui_reg_command):
5321 Update.
5322 * tui/tui-layout.c (tui_set_layout): Update.
5323
5324 2019-08-20 Tom Tromey <tom@tromey.com>
5325
5326 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5327 Declare.
5328 (tui_check_register_values): Don't declare.
5329 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5330 from tui_check_register_values.
5331 * tui/tui-hooks.c (tui_register_changed): Update.
5332
5333 2019-08-20 Tom Tromey <tom@tromey.com>
5334
5335 * tui/tui-regs.c (tui_reg_layout): Move later.
5336 (tui_show_registers): Don't enable TUI mode or change layout.
5337
5338 2019-08-20 Tom Tromey <tom@tromey.com>
5339
5340 * tui/tui-regs.h (struct tui_data_item_window)
5341 <~tui_data_item_window>: Remove.
5342 <content>: Now a unique_xmalloc_ptr.
5343 * tui/tui-regs.c (tui_register_format): Return a
5344 unique_xmalloc_ptr.
5345 (tui_get_register): Update.
5346 (~tui_data_item_window): Remove.
5347 (tui_data_window::display_registers_from, tui_display_register):
5348 Update.
5349 * tui/tui-io.h (tui_expand_tabs): Update.
5350 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5351 Remove "col" parameter.
5352
5353 2019-08-20 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5356 field.
5357 * tui/tui-regs.c (~tui_data_item_window): Update.
5358
5359 2019-08-20 Tom Tromey <tom@tromey.com>
5360
5361 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5362 earlier.
5363
5364 2019-08-20 Tom Tromey <tom@tromey.com>
5365
5366 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5367
5368 2019-08-20 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-source.h (struct tui_source_window): Update.
5371 * tui/tui-regs.c (tui_show_registers): Update.
5372 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5373 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5374 (NO_REGS_STRING): Remove defines.
5375
5376 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5377
5378 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5379 unnecessary thread walk if remote doesn't support the packet.
5380
5381 2019-08-19 Tom Tromey <tromey@adacore.com>
5382
5383 * python/py-value.c (value_has_field): Fix indentation.
5384
5385 2019-08-19 Tom Tromey <tromey@adacore.com>
5386
5387 * printcmd.c (do_one_display, info_display_command): Update.
5388 * block.h (contained_in): Return bool. Add allow_nested
5389 parameter.
5390 * block.c (contained_in): Return bool. Add allow_nested
5391 parameter.
5392
5393 2019-08-19 Tom Tromey <tom@tromey.com>
5394
5395 * configure: Rebuild.
5396 * configure.ac: Disallow the combination of -static-libstdc++ and
5397 source highlight.
5398 * source-cache.c (get_language_name): Handle rust.
5399 (source_cache::get_source_lines): Ignore highlighting exceptions.
5400
5401 2019-08-16 Tom Tromey <tom@tromey.com>
5402
5403 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5404 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5405 (struct tui_source_window_base) <make_visible, refresh_window,
5406 resize>: Remove methods.
5407 <execution_info>: Remove field.
5408 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5409 (tui_show_source_line, tui_source_window_base)
5410 (~tui_source_window_base): Update.
5411 (tui_source_window_base::resize)
5412 (tui_source_window_base::make_visible)
5413 (tui_source_window_base::refresh_window): Remove.
5414 (tui_source_window_base::update_exec_info): Update.
5415 * tui/tui-source.c (tui_source_window::set_contents): Update.
5416 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5417
5418 2019-08-16 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5421 deprecated_query_hook.
5422
5423 2019-08-16 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5426 (tui_update_source_windows_with_line): Update.
5427 * tui/tui-source.h (struct tui_source_window)
5428 <show_symtab_source>: Declare.
5429 (tui_show_symtab_source): Don't declare.
5430 * tui/tui-source.c (tui_show_symtab_source): Rename from
5431 tui_show_symtab_source.
5432
5433 2019-08-16 Tom Tromey <tom@tromey.com>
5434
5435 * tui/tui-winsource.h (struct tui_source_window_base)
5436 <set_contents>: Declare.
5437 * tui/tui-winsource.c
5438 (tui_source_window_base::update_source_window_as_is): Update.
5439 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5440 Declare.
5441 (tui_set_source_content): Don't declare.
5442 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5443 tui_set_source_content.
5444 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5445 Declare.
5446 (tui_set_disassem_content): Don't declare.
5447 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5448 tui_set_disassem_content.
5449
5450 2019-08-16 Tom Tromey <tom@tromey.com>
5451
5452 * tui/tui-winsource.h (struct tui_source_window_base)
5453 <update_breakpoint_info>: Declare.
5454 (tui_update_breakpoint_info): Don't declare.
5455 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5456 (tui_update_all_breakpoint_info): Update.
5457 (tui_source_window_base::update_breakpoint_info): Rename from
5458 tui_update_breakpoint_info.
5459 (tui_source_window_base::update_exec_info): Update.
5460
5461 2019-08-16 Tom Tromey <tom@tromey.com>
5462
5463 * tui/tui-winsource.h (struct tui_source_window_base)
5464 <update_source_window>: Declare.
5465 (tui_update_source_window): Don't declare.
5466 * tui/tui-winsource.c
5467 (tui_source_window_base::update_source_window): Rename from
5468 tui_update_source_window.
5469 (tui_source_window_base::rerender): Update.
5470 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5471 * tui/tui-disasm.c (tui_show_disassem)
5472 (tui_show_disassem_and_update_source)
5473 (tui_disasm_window::maybe_update): Update.
5474
5475 2019-08-16 Tom Tromey <tom@tromey.com>
5476
5477 * tui/tui-winsource.h (struct tui_source_window_base)
5478 <update_source_window_as_is>: Declare.
5479 (tui_update_source_window_as_is): Don't declare.
5480 * tui/tui-winsource.c (tui_update_source_window): Update
5481 (tui_source_window_base::update_source_window_as_is): Rename from
5482 tui_update_source_window_as_is.
5483 (tui_source_window_base::refill): Update.
5484 * tui/tui-source.c (tui_show_symtab_source): Update.
5485 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5486 Update.
5487
5488 2019-08-16 Tom Tromey <tom@tromey.com>
5489
5490 * tui/tui-winsource.h (tui_update_source_window)
5491 (tui_update_source_window_as_is): Remove "noerror" parameter.
5492 * tui/tui-winsource.c (tui_update_source_window)
5493 (tui_update_source_window_as_is): Remove "noerror" parameter.
5494 (tui_update_source_windows_with_addr)
5495 (tui_update_source_windows_with_line)
5496 (tui_source_window_base::rerender)
5497 (tui_source_window_base::refill): Update.
5498 * tui/tui-source.h (tui_set_source_content)
5499 (tui_show_symtab_source): Remove "noerror" parameter.
5500 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5501 parameter.
5502 (tui_show_symtab_source): Likewise.
5503 (tui_source_window::maybe_update): Update.
5504 * tui/tui-disasm.c (tui_show_disassem)
5505 (tui_show_disassem_and_update_source)
5506 (tui_disasm_window::do_scroll_vertical)
5507 (tui_disasm_window::maybe_update): Update.
5508
5509 2019-08-16 Tom Tromey <tom@tromey.com>
5510
5511 * tui/tui.c (tui_is_window_visible): Update.
5512 * tui/tui-wingeneral.c (tui_make_window)
5513 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5514 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5515 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5516 (tui_set_win_height_command, parse_scrolling_args): Update.
5517 * tui/tui-source.c (tui_source_window::style_changed): Update.
5518 * tui/tui-regs.c (tui_show_registers)
5519 (tui_data_window::first_data_item_displayed)
5520 (tui_data_window::delete_data_content_windows)
5521 (tui_check_register_values, tui_reg_command): Update.
5522 * tui/tui-disasm.c (tui_show_disassem): Update.
5523 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5524 method.
5525 <is_visible>: Remove field.
5526 * tui/tui-data.c (tui_next_win, tui_prev_win)
5527 (tui_delete_invisible_windows): Update.
5528
5529 2019-08-16 Tom Tromey <tom@tromey.com>
5530
5531 * tui/tui-winsource.h (struct tui_source_window_base)
5532 <m_has_locator>: Remove.
5533 * tui/tui-layout.c (show_source_disasm_command, show_data)
5534 (show_source_or_disasm_and_command): Update.
5535
5536 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5537
5538 * NEWS (Other MI changes): New subsection.
5539 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5540 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5541 * arch-utils.c (default_get_pc_address_flags): New function.
5542 * arch-utils.h (default_get_pc_address_flags): New declaration.
5543 * gdbarch.sh: Add get_pc_address_flags.
5544 * gdbarch.c: Regenerate.
5545 * gdbarch.h: Likewise.
5546 * stack.c (print_pc): New function.
5547 (print_frame_info) (print_frame): Call print_pc.
5548
5549 2019-08-16 Tom de Vries <tdevries@suse.de>
5550
5551 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5552 print_objfile_section_info.
5553
5554 2019-08-15 Tom Tromey <tom@tromey.com>
5555
5556 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5557 calling update_cmdwin_start_line.
5558 * tui/tui-winsource.h (struct tui_source_window_base)
5559 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5560 <rerender>: Declare.
5561 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5562 Call rerender.
5563 (tui_source_window_base::set_new_height): Remove.
5564 (tui_source_window_base::rerender): Rename from
5565 do_make_visible_with_new_height.
5566 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5567 resize method.
5568 (tui_win_info::make_invisible_and_set_new_height)
5569 (tui_win_info::make_visible_with_new_height): Remove.
5570 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5571 Declare.
5572 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5573 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5574 do_make_visible_with_new_height>: Don't declare.
5575 <rerender>: Declare.
5576 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5577 set_new_height.
5578 (tui_data_window::do_make_visible_with_new_height): Remove.
5579 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5580 call tui_show_locator_content.
5581 (tui_gen_win_info::resize): Call rerender.
5582 (show_source_or_disasm_and_command): Don't call
5583 tui_show_locator_content.
5584 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5585 method.
5586 (struct tui_win_info) <rerender>: Declare.
5587 <set_new_height, make_invisible_and_set_new_height,
5588 make_visible_with_new_height>: Don't declare.
5589 * tui/tui-data.c (tui_win_list::rerender): New method.
5590 * tui/tui-command.h (struct tui_cmd_window)
5591 <do_make_visible_with_new_height>: Don't declare.
5592 * tui/tui-command.c
5593 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5594
5595 2019-08-15 Tom Tromey <tromey@adacore.com>
5596
5597 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5598 * ada-lang.c (ada_enum_name): Likewise.
5599
5600 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5601
5602 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5603 leading underscore.
5604 (GdbOutputErrorFile): Likewise.
5605 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5606 accordingly.
5607 (execute_unwinders): Rename to have a leading underscore.
5608 (auto_load_packages): Likewise.
5609 (global scope): Adjust call to auto_load_packages accordingly.
5610 (GdbSetPythonDirectory): Likewise.
5611 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5612 instead of execute_unwinders.
5613
5614 2019-08-15 Tom Tromey <tom@tromey.com>
5615
5616 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5617 (show_data): Don't change window visibility.
5618 (tui_gen_win_info::resize): Remove special case for command
5619 window. Use wresize, when available.
5620 (show_source_or_disasm_and_command): Don't change window
5621 visibility.
5622 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5623 <make_visible>: New method.
5624 * tui/tui-command.c (tui_cmd_window::resize): New method.
5625
5626 2019-08-15 Tom Tromey <tom@tromey.com>
5627
5628 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5629 (struct tui_source_windows): New.
5630 * tui/tui-winsource.c (tui_display_main): Update.
5631 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5632 (new_height_ok, parse_scrolling_args): Update.
5633 * tui/tui-layout.c (show_layout, show_data): Update.
5634 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5635 (tui_add_to_source_windows): Don't declare.
5636 * tui/tui-data.c (source_windows, tui_source_windows)
5637 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5638
5639 2019-08-15 Tom Tromey <tom@tromey.com>
5640
5641 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5642 Rename from reset.
5643 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5644 * tui/tui-layout.c (show_source_disasm_command, show_data):
5645 Update.
5646 (tui_gen_win_info::resize): Rename.
5647 (show_source_or_disasm_and_command): Update.
5648 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5649 reset.
5650
5651 2019-08-15 Tom Tromey <tom@tromey.com>
5652
5653 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5654 * tui/tui-interp.c (tui_interp::init): Don't call
5655 tui_initialize_static_data.
5656 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5657
5658 2019-08-15 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5661 examine tui_win_list.
5662
5663 2019-08-15 Tom Tromey <tom@tromey.com>
5664
5665 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5666 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5667 tui_clear_source_content.
5668 (tui_clear_source_content): Remove.
5669 (tui_source_window_base::do_erase_source_content): Hoist call to
5670 content.clear().
5671 * tui/tui-stack.c (tui_show_frame_info): Don't call
5672 tui_clear_source_content.
5673
5674 2019-08-15 Tom Tromey <tom@tromey.com>
5675
5676 * tui/tui-winsource.h (struct tui_source_window_base)
5677 <do_erase_source_content>: New method.
5678 <erase_source_content>: New method.
5679 (tui_erase_source_content): Don't declare.
5680 * tui/tui-winsource.c (tui_clear_source_content): Update.
5681 (tui_source_window_base::do_erase_source_content): Rename from
5682 tui_erase_source_content.
5683 (tui_source_window_base::show_source_content): Update.
5684 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5685 * tui/tui-source.h (struct tui_source_window)
5686 <erase_source_content>: New method.
5687 * tui/tui-disasm.h (struct tui_disasm_window)
5688 <erase_source_content>: New method.
5689
5690 2019-08-15 Tom Tromey <tom@tromey.com>
5691
5692 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5693 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5694 constructor.
5695 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5696 * tui/tui-source.c (tui_set_source_content): Update.
5697 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5698
5699 2019-08-15 Tom Tromey <tom@tromey.com>
5700
5701 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5702 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5703 tui-source.c.
5704 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5705 Declare.
5706 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5707 method.
5708 (tui_source_window::maybe_update): Update.
5709
5710 2019-08-15 Tom Tromey <tom@tromey.com>
5711
5712 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5713 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5714 tui-disasm.c.
5715 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5716 Declare.
5717 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5718 method.
5719 (tui_disasm_window::maybe_update): Update.
5720
5721 2019-08-15 Tom Tromey <tom@tromey.com>
5722
5723 * tui/tui-winsource.h (struct tui_source_window_base)
5724 <maybe_update>: Declare.
5725 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5726 method.
5727 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5728 Declare.
5729 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5730 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5731 Declare.
5732 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5733
5734 2019-08-15 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5737
5738 2019-08-15 Tom Tromey <tom@tromey.com>
5739
5740 * tui/tui-wingeneral.c: Include tui-stack.h.
5741 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5742 (struct tui_locator_window): Move from tui-data.h.
5743 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5744 (tui_initialize_static_data): Move from tui-data.c.
5745 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5746 (struct tui_locator_window): Move to tui-stack.c.
5747 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5748 (tui_initialize_static_data): Move to tui-stack.c.
5749
5750 2019-08-15 Tom Tromey <tom@tromey.com>
5751
5752 * tui/tui-layout.c (show_source_disasm_command)
5753 (show_source_or_disasm_and_command): Use make_visible method, not
5754 tui_make_window.
5755 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5756 Remove.
5757
5758 2019-08-15 Tom Tromey <tom@tromey.com>
5759
5760 * tui/tui-wingeneral.h (tui_make_window): Update.
5761 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5762 parameter.
5763 (tui_gen_win_info::make_visible): Update.
5764 * tui/tui-regs.c (tui_data_window::display_registers_from):
5765 Update.
5766 * tui/tui-layout.c (show_source_disasm_command)
5767 (show_source_or_disasm_and_command): Update.
5768 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5769 (enum tui_box): Remove.
5770 (struct tui_win_info) <can_box>: New method.
5771 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5772 method.
5773
5774 2019-08-15 Tom de Vries <tdevries@suse.de>
5775
5776 * linux-nat-trad.c: Include gdbarch.h.
5777
5778 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5779
5780 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5781 register sizes.
5782
5783 2019-08-14 Tom Tromey <tromey@adacore.com>
5784
5785 * darwin-nat.c: Include gdbarch.h.
5786 * darwin-nat-info.c: Include gdbarch.h.
5787
5788 2019-08-13 Tom Tromey <tom@tromey.com>
5789
5790 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5791 Remove.
5792 * tui/tui-data.c (tui_initialize_static_data): Update.
5793
5794 2019-08-13 Tom Tromey <tom@tromey.com>
5795
5796 * tui/tui-winsource.h (struct tui_exec_info_window)
5797 <~tui_exec_info_window, maybe_allocate_content, get_content,
5798 m_content>: Remove.
5799 (struct tui_source_window_base) <set_exec_info_content,
5800 show_exec_info_content>: Don't declare.
5801 * tui/tui-winsource.c
5802 (tui_exec_info_window::maybe_allocate_content): Remove.
5803 (tui_source_window_base::update_exec_info): Rename from
5804 set_exec_info_content.
5805 (tui_source_window_base::show_exec_info_content)
5806 (tui_source_window_base::update_exec_info): Remove.
5807
5808 2019-08-13 Tom Tromey <tom@tromey.com>
5809
5810 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5811 declare.
5812 * tui/tui-winsource.c (tui_update_source_window_as_is)
5813 (tui_update_source_windows_with_addr, tui_erase_source_content):
5814 Update.
5815 (tui_clear_exec_info_content): Remove.
5816
5817 2019-08-13 Tom Tromey <tom@tromey.com>
5818
5819 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5820 declare.
5821 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5822 call tui_erase_exec_info_content.
5823 (tui_clear_exec_info_content): Rename from
5824 tui_erase_exec_info_content.
5825 (tui_clear_exec_info_content): Delete.
5826
5827 2019-08-13 Tom Tromey <tom@tromey.com>
5828
5829 * tui/tui-winsource.h (struct tui_source_window_base)
5830 <show_exec_info_content>: Declare.
5831 (tui_show_exec_info_content): Don't declare.
5832 * tui/tui-winsource.c
5833 (tui_source_window_base::show_exec_info_content): Rename from
5834 tui_show_exec_info_content.
5835 (tui_source_window_base::update_exec_info): Update.
5836
5837 2019-08-13 Tom Tromey <tom@tromey.com>
5838
5839 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5840 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5841 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5842 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5843 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5844 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5845 ... here.
5846
5847 2019-08-13 Tom Tromey <tom@tromey.com>
5848
5849 * tui/tui-winsource.h (struct tui_source_window_base)
5850 <update_exec_info>: Declare.
5851 (tui_update_exec_info): Don't declare.
5852 * tui/tui-winsource.c (tui_update_source_window_as_is)
5853 (tui_source_window_base::refresh_all)
5854 (tui_update_all_breakpoint_info): Update.
5855 (tui_source_window_base::update_exec_info): Rename from
5856 tui_update_exec_info.
5857 * tui/tui-stack.c (tui_show_frame_info): Update.
5858
5859 2019-08-13 Tom Tromey <tom@tromey.com>
5860
5861 * tui/tui-winsource.h (struct tui_source_window_base)
5862 <set_exec_info_content>: Declare.
5863 (tui_set_exec_info_content): Don't declare.
5864 * tui/tui-winsource.c
5865 (tui_source_window_base::set_exec_info_content): Rename from
5866 tui_set_exec_info_content.
5867 (tui_update_exec_info): Update.
5868
5869 2019-08-13 Tom Tromey <tom@tromey.com>
5870
5871 * tui/tui-winsource.h (struct tui_source_window_base)
5872 <show_source_content>: Declare.
5873 (tui_show_source_content): Don't declare.
5874 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5875 (tui_source_window_base::show_source_content): Rename from
5876 tui_show_source_content.
5877 (tui_source_window_base::refresh_all): Update.
5878 * tui/tui-layout.c (show_source_disasm_command)
5879 (show_source_or_disasm_and_command): Update.
5880
5881 2019-08-13 Tom Tromey <tom@tromey.com>
5882
5883 * tui/tui-winsource.c (tui_erase_source_content)
5884 (tui_show_source_content, tui_source_window_base::refresh_all):
5885 Update.
5886 * tui/tui-wingeneral.h
5887 (tui_check_and_display_highlight_if_needed): Don't declare.
5888 * tui/tui-wingeneral.c
5889 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5890 check_and_display_highlight_if_needed.
5891 * tui/tui-win.c (tui_rehighlight_all)
5892 (tui_win_info::make_visible_with_new_height): Update.
5893 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5894 (tui_data_window::erase_data_content)
5895 (tui_data_window::display_all_data): Update.
5896 * tui/tui-data.h (struct tui_win_info)
5897 <check_and_display_highlight_if_needed>: Declare.
5898
5899 2019-08-13 Tom Tromey <tom@tromey.com>
5900
5901 * tui/tui-win.c (tui_resize_all): Call
5902 tui_delete_invisible_windows.
5903 * tui/tui-layout.c (show_layout): Call
5904 tui_delete_invisible_windows.
5905 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5906 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5907
5908 2019-08-13 Tom Tromey <tom@tromey.com>
5909
5910 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5911 tui_add_win_to_layout.
5912
5913 2019-08-13 Tom Tromey <tom@tromey.com>
5914
5915 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5916 * tui/tui-layout.c (tui_default_win_height): Now static.
5917
5918 2019-08-13 Tom Tromey <tom@tromey.com>
5919
5920 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5921 single switch.
5922 (show_source_disasm_command, show_source_or_disasm_and_command):
5923 Don't check current layout.
5924
5925 2019-08-13 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui-wingeneral.c (make_all_visible): Remove.
5928 (tui_make_all_invisible): Simplify.
5929 * tui/tui-layout.c (tui_make_all_invisible): Move from
5930 tui-wingeneral.c; simplify.
5931 (show_layout): Hoist call to tui_make_all_invisible.
5932 (show_data): Don't call tui_make_all_invisible.
5933
5934 2019-08-13 Tom Tromey <tom@tromey.com>
5935
5936 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5937 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5938
5939 2019-08-13 Tom Tromey <tom@tromey.com>
5940
5941 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5942 tui-data.c.
5943 (show_source_disasm_command, show_data)
5944 (show_source_or_disasm_and_command): Don't use
5945 tui_set_current_layout_to.
5946 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5947 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5948 tui-layout.c.
5949 (tui_set_current_layout_to): Remove.
5950
5951 2019-08-13 Tom Tromey <tom@tromey.com>
5952
5953 * tui/tui-layout.c (tui_set_layout): Update.
5954 * tui/tui-data.h (struct tui_layout_def): Remove.
5955 (tui_layout_def): Don't declare.
5956 * tui/tui-data.c (layout_def): Remove.
5957 (tui_layout_def): Remove.
5958
5959 2019-08-13 Tom Tromey <tom@tromey.com>
5960
5961 * tui/tui-winsource.h (struct tui_source_window_base)
5962 <clear_detail>: No longer "override".
5963 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5964 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5965 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5966 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5967 Remove.
5968 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5969
5970 2019-08-13 Tom Tromey <tromey@adacore.com>
5971
5972 * tracepoint.c: Don't include readline.h or history.h.
5973
5974 2019-08-12 Tom Tromey <tom@tromey.com>
5975
5976 * configure: Rebuild.
5977 * configure.ac: Check for readline 7.
5978 * NEWS: Mention readline 7 requirement.
5979 * README: Update.
5980
5981 2019-08-12 Tom Tromey <tom@tromey.com>
5982
5983 * mingw-hdep.c (gdb_select): Remove readline hack.
5984
5985 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5986
5987 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5988 when the function fails.
5989
5990 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5991
5992 * s390-tdep.c (s390_type_align): New function.
5993 (s390_gdbarch_init): Set it as type_align gdbarch method.
5994
5995 2019-08-09 Tom de Vries <tdevries@suse.de>
5996
5997 PR gdb/24591
5998 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5999 pc_low with relocation offset.
6000
6001 2019-08-07 Tom Tromey <tromey@adacore.com>
6002
6003 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6004 (print_frame_args): Update.
6005 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6006 Update.
6007 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6008 * frame.h (struct frame_arg): Add initializers.
6009 <error>: Now a unique_xmalloc_ptr.
6010
6011 2019-08-07 Alan Hayward <alan.hayward@arm.com>
6012
6013 * NEWS: Expand the Pointer Authentication entry.
6014 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6015 (aarch64_frame_unmask_lr): ... to this.
6016 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6017 Call aarch64_frame_unmask_lr.
6018 * frame.c (struct frame_info): Add "masked" variable.
6019 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6020 (fprint_frame): Check for masked pc.
6021 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6022 declarations.
6023 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6024 * stack.c (print_frame): Check for masked pc.
6025
6026 2019-08-06 Tom Tromey <tom@tromey.com>
6027
6028 * stabsread.c (patch_block_stabs, read_one_struct_field)
6029 (read_enum_type): Use obstack_strndup.
6030 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6031 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6032 * dwarf2read.c (guess_full_die_structure_name)
6033 (anonymous_struct_prefix): Use obstack_strndup.
6034 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6035 * c-exp.y (yylex): Use obstack_strndup.
6036 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6037 (write_var_or_type): Use obstack_strndup.
6038
6039 2019-08-06 Tom Tromey <tom@tromey.com>
6040
6041 * symfile.c (reread_symbols): Use obstack_strdup.
6042 * stabsread.c (read_type): Use obstack_strdup.
6043 * gdb_obstack.h (obstack_strdup): New overload.
6044 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6045 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6046 (dwarf2_canonicalize_name): Use obstack_strdup.
6047 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6048 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6049 Use obstack_strdup.
6050
6051 2019-08-06 Tom Tromey <tom@tromey.com>
6052
6053 * gdb_obstack.h (obstack_strdup): Define.
6054 * gdb_obstack.c (obstack_strdup): Don't define.
6055
6056 2019-08-06 Tom Tromey <tom@tromey.com>
6057
6058 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6059 obstack_strdup.
6060 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6061 obstack_strdup.
6062 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6063 * stabsread.c (common_block_start): Use obstack_strdup.
6064 * objfiles.c (set_objfile_main_name, objfile): Use
6065 obstack_strdup.
6066 * namespace.c (add_using_directive): Use obstack_strdup.
6067 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6068 * jit.c (finalize_symtab): Use obstack_strdup.
6069 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6070 (guess_partial_die_structure_name, partial_die_info::fixup)
6071 (dwarf2_name): Use obstack_strdup.
6072 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6073 obstack_strdup.
6074 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6075 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6076 obstack_strdup.
6077 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6078
6079 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6080
6081 * unittests/help-doc-selftests.c: New file.
6082 * Makefile.in: Add the new file.
6083
6084 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6085
6086 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6087 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6088 the full first line, except when FOR_VALUE_PREFIX. In this case,
6089 the trailing '.' is not output, and the first character is uppercased.
6090 (print_help_for_command): Update call to print_doc_line.
6091 (print_doc_of_command): Likewise.
6092 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6093 * cli/cli-option.c (append_indented_doc): Do not append newline.
6094 (build_help_option): Append newline after first appended_indented_doc
6095 only if a second call is done.
6096 (build_help): Append 2 new lines before each option, except the first
6097 one.
6098 * compile/compile.c (_initialize_compile): Add new lines after
6099 %OPTIONS%, when not at the end of the help.
6100 Change help doc or code
6101 producing the help doc to respect the invariants.
6102 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6103 Also removed the new line after 'Options:', as all other commands
6104 do not put an empty line between 'Options:' and the first option.
6105 * printcmd.c (_initialize_printcmd): Likewise.
6106 * stack.c (_initialize_stack): Likewise.
6107 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6108 incorrectly telling COMMAND is optional.
6109 * ada-lang.c (_initialize_ada_language): Change help doc or code
6110 producing the help doc to respect the invariants.
6111 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6112 * breakpoint.c (_initialize_breakpoint): Likewise.
6113 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6114 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6115 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6116 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6117 _initialize_cli_style): Likewise.
6118 * corelow.c (core_target_info): Likewise.
6119 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6120 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6121 * filesystem.c (_initialize_filesystem): Likewise.
6122 * frame.c (_initialize_frame): Likewise.
6123 * gnu-nat.c (add_task_commands): Likewise.
6124 * infcall.c (_initialize_infcall): Likewise.
6125 * infcmd.c (_initialize_infcmd): Likewise.
6126 * interps.c (_initialize_interpreter): Likewise.
6127 * language.c (_initialize_language): Likewise.
6128 * linux-fork.c (_initialize_linux_fork): Likewise.
6129 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6130 * maint.c (_initialize_maint_cmds): Likewise.
6131 * memattr.c (_initialize_mem): Likewise.
6132 * printcmd.c (_initialize_printcmd): Likewise.
6133 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6134 _RegEx): Likewise.
6135 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6136 * record-btrace.c (_initialize_record_btrace): Likewise.
6137 * record-full.c (_initialize_record_full): Likewise.
6138 * record.c (_initialize_record): Likewise.
6139 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6140 * regcache.c (_initialize_regcache): Likewise.
6141 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6142 _initialize_remote): Likewise.
6143 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6144 * serial.c (_initialize_serial): Likewise.
6145 * skip.c (_initialize_step_skip): Likewise.
6146 * source.c (_initialize_source): Likewise.
6147 * stack.c (_initialize_stack): Likewise.
6148 * symfile.c (_initialize_symfile): Likewise.
6149 * symtab.c (_initialize_symtab): Likewise.
6150 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6151 * top.c (init_main): Likewise.
6152 * tracefile-tfile.c (tfile_target_info): Likewise.
6153 * tracepoint.c (_initialize_tracepoint): Likewise.
6154 * tui/tui-win.c (_initialize_tui_win): Likewise.
6155 * utils.c (add_internal_problem_command): Likewise.
6156 * valprint.c (value_print_option_defs): Likewise.
6157
6158 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
6159
6160 PR build/24886
6161 * configure.ac: Drop enable-libmcheck support.
6162 * configure, config.in: Rebuild.
6163 * libmcheck.m4: Remove.
6164 * acinclude.m4: Don't include it.
6165 * Makefile.in: Don't distribute it.
6166 * top.c (print_gdb_configuration): Don't mention it.
6167
6168 2019-08-06 Tom Tromey <tom@tromey.com>
6169
6170 * utils.c (set_output_style): Sometimes pass stream to
6171 emit_style_escape.
6172 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6173 * record-btrace.c (btrace_insn_history): Update.
6174 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6175 method.
6176 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6177 Update initializers.
6178 <m_uiout>: New field.
6179 <m_di>: Move lower.
6180 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6181 Remove "uiout" parameter.
6182 (dump_insns): Update.
6183 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6184 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6185
6186 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6187
6188 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6189 (error_in_psymtab_expansion): Likewise.
6190 (lookup_symbol_via_quick_fns): Likewise.
6191 (basic_lookup_transparent_type_quick): Likewise.
6192 (basic_lookup_transparent_type_1): Likewise.
6193
6194 2019-08-06 Tom Tromey <tromey@adacore.com>
6195
6196 * source.c (last_source_error): Now bool.
6197 (print_source_lines_base): Make "noprint" bool. Only open
6198 source file when last_source_visited changes.
6199
6200 2019-08-06 Tom Tromey <tromey@adacore.com>
6201
6202 * annotate.c (annotate_source_line): Use g_source_cache.
6203 * source-cache.c (source_cache::get_plain_source_lines): Change
6204 parameters. Populate m_offset_cache.
6205 (source_cache::ensure): New method.
6206 (source_cache::get_line_charpos): New method.
6207 (extract_lines): Move lower. Change parameters.
6208 (source_cache::get_source_lines): Move lower.
6209 * source-cache.h (class source_cache): Update comment.
6210 <get_line_charpos>: New method.
6211 <get_source_lines>: Update comment.
6212 <clear>: Clear m_offset_cache.
6213 <get_plain_source_lines>: Change parameters.
6214 <ensure>: New method
6215 <m_offset_cache>: New member.
6216 * source.c (forget_cached_source_info_for_objfile): Update.
6217 (info_source_command): Use g_source_cache.
6218 (find_source_lines, open_source_file_with_line_charpos): Remove.
6219 (print_source_lines_base, search_command_helper): Use g_source_cache.
6220 * source.h (open_source_file_with_line_charpos): Don't declare.
6221 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6222 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6223 Use g_source_cache.
6224
6225 2019-08-06 Tom Tromey <tromey@adacore.com>
6226
6227 * source-cache.c (source_cache::get_plain_source_lines):
6228 Remove "first_line" and "last_line" parameters.
6229 (source_cache::get_source_lines): Cache plain text.
6230 * source-cache.h (class source_cache)
6231 <get_plain_source_lines>: Update.
6232
6233 2019-08-06 Tom Tromey <tromey@adacore.com>
6234
6235 * source-cache.c (extract_lines): No longer a method.
6236 Changed type of parameter. Include final newline.
6237 (selftests::extract_lines_test): New function.
6238 (_initialize_source_cache): Likewise.
6239 * source-cache.h (class source_cache)
6240 <extract_lines>: Don't declare.
6241
6242 2019-08-06 Tom Tromey <tromey@adacore.com>
6243
6244 * breakpoint.c (init_breakpoint_sal): Update.
6245 (breakpoint): Update.
6246 * breakpoint.h (struct breakpoint) <filter>: Now a
6247 unique_xmalloc_ptr.
6248
6249 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6250
6251 * NEWS: Mention dictionary access on blocks.
6252 * python/py-block.c (blpy_getitem): New function.
6253 (block_object_as_mapping): New struct.
6254 (block_object_type): Use new struct for tp_as_mapping field.
6255
6256 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6257
6258 * objfiles.h (objfile): Add a comment describing partial symbols.
6259
6260 2019-08-05 Tom Tromey <tromey@adacore.com>
6261
6262 * compile/compile.c (_initialize_compile): Use _(), not N_().
6263 * thread.c (_initialize_thread): Use _(), not N_().
6264 * stack.c (_initialize_stack): Use _(), not N_().
6265 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6266
6267 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * dwarf2read.c (struct dw2_symtab_iterator):
6270 <want_specific_block>: Remove.
6271 <block_index>: Change type to gdb::optional.
6272 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6273 change type of BLOCK_INDEX parameter to gdb::optional.
6274 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6275 (dw2_lookup_symbol): Don't pass argument for
6276 WANT_SPECIFIC_BLOCK.
6277 (dw2_expand_symtabs_for_function): Don't pass argument for
6278 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6279 (class dw2_debug_names_iterator)
6280 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6281 parameter, change BLOCK_INDEX type to gdb::optional.
6282 <m_want_specific_block>: Remove.
6283 <m_block_index>: Change type to gdb::optional.
6284 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6285 gdb::optional. Re-write in function of gdb::optional.
6286 (dw2_debug_names_lookup_symbol): Don't pass argument for
6287 WANT_SPECIFIC_BLOCK.
6288 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6289 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6290 BLOCK_INDEX.
6291
6292 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6293
6294 * NEWS: Mention changes to "info sources" command.
6295
6296 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6297
6298 * symtab.c (filename_partial_match_opts): New struct type.
6299 (struct output_source_filename_data): New members
6300 regexp, c_regexp, partial_match.
6301 (output_source_filename): Use new members to decide to print file.
6302 (info_sources_option_defs): New variable.
6303 (make_info_sources_options_def_group, print_info_sources_header,
6304 info_sources_command_completer):
6305 New functions.
6306 (info_sources_command): Read new optional arguments.
6307 (_initialize_symtab): Update info sources help.
6308
6309 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6310
6311 * ada-lang.c (exception_support_info_v0): Renamed from...
6312 (default_exception_support_info): ... this. Create new
6313 definition for v1.
6314 (ada_has_this_exception_support): Look up catch_handlers_sym.
6315 (ada_exception_support_info_sniffer): Try v0 after default.
6316
6317 2019-08-01 Tom Tromey <tromey@adacore.com>
6318
6319 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6320 gdbarch.h.
6321
6322 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6323
6324 * s12z-tdep.c: Fix include path for s12z-opc.h.
6325
6326 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6327
6328 * NEWS: Require GNU make 3.82.
6329
6330 2019-07-16 Tom Tromey <tom@tromey.com>
6331
6332 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6333 declare.
6334
6335 2019-07-30 Tom Tromey <tromey@adacore.com>
6336
6337 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6338
6339 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6340
6341 * printcmd.c (print_address_symbolic): Print negative offsets.
6342 (build_address_symbolic): Force signed arithmetic when computing
6343 offset.
6344
6345 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6346
6347 PR/24474: Add a function to lookup static variables.
6348 * NEWS: Mention this new function.
6349 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6350 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6351 * python/python.c (python_GdbMethods): Add new function.
6352
6353 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6354
6355 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6356 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6357 (objfpy_lookup_static_symbol): New function.
6358 (objfile_object_methods): Add new functions.
6359
6360 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6361
6362 * NEWS: Mention 'set|show print frame-info'. Mention new
6363 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6364 backtrace argument. Mention that python frame filtering code
6365 is now consistent with what 'backtrace' command prints.
6366
6367 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6368
6369 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6370 comments.
6371 (print_frame_info_auto, print_frame_info_source_line,
6372 print_frame_info_location, print_frame_info_source_and_location,
6373 print_frame_info_location_and_address, print_frame_info_short_location):
6374 New declarations.
6375 (struct frame_print_options): New member print_frame_info.
6376 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6377 * stack.h (get_user_print_what_frame_info): New declaration.
6378 (frame_show_address): New declaration.
6379 * stack.c (print_frame_arguments_choices): New value 'presence'.
6380 (print_frame_info_auto, print_frame_info_source_line,
6381 print_frame_info_location, print_frame_info_source_and_location,
6382 print_frame_info_location_and_address, print_frame_info_short_location,
6383 print_frame_info_choices, print_frame_info_print_what): New definitions.
6384 (print_frame_args): Only print dots for args if print frame-arguments
6385 is 'presence'.
6386 (frame_print_option_defs): New element for "frame-info".
6387 (get_user_print_what_frame_info): New function.
6388 (frame_show_address): Make non static. Move comment to stack.h.
6389 (print_frame_info_to_print_what): New function.
6390 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6391 to decide what to print.
6392 (backtrace_command_1): Handle the new print_frame_arguments_presence
6393 value.
6394 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6395 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6396 (py_print_frame): In non-mi mode, use LOCATION as default for
6397 print_what, similarly to frame information printed directly by
6398 backtrace command. Handle frame-info user option in non MI mode.
6399
6400 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6401
6402 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6403 Add case for debugging 32-bit target on 64-bit host. Revise
6404 comment.
6405
6406 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6407
6408 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6409 instead of find_function_entry_range_from_pc.
6410
6411 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6412
6413 * stack.c (find_frame_funname): Remove code which preferred
6414 minsym over symtab sym in "certain pathological cases".
6415
6416 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6417 parameter. Change type of "do_demangle" to bool.
6418 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6419 Pass suitable "prefer_sym_over_minsym" flag to
6420 build_address_symbolic(). Don't output "+" for negative offsets.
6421 * printcmd.c (print_address_symbolic): Update invocation of
6422 build_address_symbolic to include a "prefer_sym_over_minsym"
6423 flag.
6424 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6425 Restrict cases in which use of minimal symbol is preferred to that
6426 of a found symbol. Update comments.
6427
6428 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6429 for entry pc when entry pc is out of range for that FDE.
6430
6431 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6432
6433 PR gdb/24839:
6434 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6435 type.
6436
6437 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6438
6439 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6440 this function's Python signature.
6441
6442
6443 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6444
6445 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6446 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6447 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6448 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6449 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6450
6451
6452 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6453
6454 * h8300-tdep.c (h8300_register_name_common): New.
6455 h8300_register_name): Use h8300_register_name_common.
6456 (h8300s_register_name): Likewise.
6457 (h8300sx_register_name): Likewise.
6458 (h8300h_register_nam): New.
6459 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6460
6461
6462 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6463
6464 * arm-tdep.c (arm_skip_cmse_entry): New function.
6465 (arm_is_sgstubs_section): New function.
6466 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6467
6468 2019-07-22 Tom Tromey <tom@tromey.com>
6469
6470 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6471 Don't self-assign.
6472
6473 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6474
6475 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6476 type_print.
6477
6478 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6479
6480 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6481 so that GDB doesn't match any msymbols when searching in the
6482 TYPES_DOMAIN.
6483 (print_symbol_info): Print using typedef_print or type_print based
6484 on the type of the symbol. Add updated FIXME comment moved from...
6485 (_initialize_symtab): ... move and update FIXME comment to above.
6486
6487 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6488
6489 * NEWS: Mention adding -q option to "info types".
6490 * symtab.c (struct info_types_options): New struct.
6491 (info_types_options_defs): New variable.
6492 (make_info_types_options_def_group): New function.
6493 (info_types_command): Use gdb::option framework to parse options.
6494 (info_types_command_completer): New function.
6495 (_initialize_symtab): Extend the help text on "info types" and
6496 register command completer.
6497
6498 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6499
6500 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6501 (lookup_symbol_in_objfile): Change int to block_enum and add a
6502 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6503
6504 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6505
6506 * MAINTAINERS (Write After Approval): Add self.
6507
6508 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6509
6510 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6511 instruction to the dummy code region.
6512
6513 2019-07-19 Tom Tromey <tromey@adacore.com>
6514
6515 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6516 (ARGSUSED, PARAMS, __func__): Remove rules.
6517
6518 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6519
6520 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6521 * features/arm/arm-with-iwmmxt.c: Remove.
6522 * features/arm/arm-with-iwmmxt.xml: Remove.
6523 * features/arm/arm-with-m-fpa-layout.c: Remove.
6524 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6525 * features/arm/arm-with-m-vfp-d16.c: Remove.
6526 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6527 * features/arm/arm-with-m.c: Remove.
6528 * features/arm/arm-with-m.xml: Remove.
6529 * features/arm/arm-with-neon.c: Remove.
6530 * features/arm/arm-with-neon.xml: Remove.
6531 * features/arm/arm-with-vfpv2.c: Remove.
6532 * features/arm/arm-with-vfpv2.xml: Remove.
6533 * features/arm/arm-with-vfpv3.c: Remove.
6534 * features/arm/arm-with-vfpv3.xml: Remove.
6535
6536 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6537
6538 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6539
6540 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6541
6542 * arch/aarch32.c (aarch32_create_target_description): Create
6543 target descriptions using features.
6544 * arch/arm.c (arm_create_target_description)
6545 (arm_create_mprofile_target_description): Likewise.
6546 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6547
6548 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6549
6550 * Makefile.in: Add new files.
6551 * aarch32-tdep.c: New file.
6552 * aarch32-tdep.h: New file.
6553 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6554 Call aarch32_read_description.
6555 * arch/aarch32.c: New file.
6556 * arch/aarch32.h: New file.
6557 * arch/arm.c (arm_create_target_description)
6558 (arm_create_mprofile_target_description): New function.
6559 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6560 (arm_create_target_description)
6561 (arm_create_mprofile_target_description): New declaration.
6562 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6563 read_description functions.
6564 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6565 Likewise.
6566 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6567 * arm-tdep.c (tdesc_arm_list): New variable.
6568 (arm_register_g_packet_guesses): Call create description functions.
6569 (arm_read_description) (arm_read_mprofile_description): New
6570 function.
6571 * arm-tdep.h (arm_read_description)
6572 (arm_read_mprofile_description): Add declaration.
6573 * configure.tgt: Add new files.
6574
6575 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6576
6577 * top.c (new_ui_command): Open specified terminal just once.
6578
6579 2019-07-18 Tom Tromey <tromey@adacore.com>
6580
6581 * symtab.c (main_name): Constify return type.
6582 * symfile.c (set_initial_language): Update.
6583 * symtab.h (main_name): Constify return type.
6584
6585 2019-07-17 Tom Tromey <tom@tromey.com>
6586
6587 * tui/tui-winsource.c (tui_update_source_window)
6588 (tui_update_source_window_as_is)
6589 (tui_update_source_windows_with_line): Remove return.
6590 * tui/tui-disasm.c (tui_show_disassem)
6591 (tui_show_disassem_and_update_source): Remove return.
6592 * tui/tui.c (tui_reset): Remove return.
6593 * tui/tui-wingeneral.c
6594 (tui_check_and_display_highlight_if_needed): Remove return.
6595
6596 2019-07-17 Tom Tromey <tom@tromey.com>
6597
6598 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6599
6600 2019-07-17 Tom Tromey <tom@tromey.com>
6601
6602 * tui/tui-winsource.h (struct tui_exec_info_window)
6603 (struct tui_source_window_base): Move from tui-data.h.
6604 * tui/tui-winsource.c: Move many method definitions from
6605 elsewhere. Remove "structuring" comments.
6606 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6607 (tui_source_window_base::refresh_window): Move to
6608 tui-winsource.c.
6609 * tui/tui-win.c (tui_source_window_base::refresh_all)
6610 (tui_source_window_base::update_tab_width)
6611 (tui_source_window_base::set_new_height)
6612 (tui_source_window_base::do_make_visible_with_new_height): Move to
6613 tui-winsource.c.
6614 * tui/tui-source.h: Update.
6615 * tui/tui-source.c (tui_source_window_base::reset): Move to
6616 tui-winsource.c.
6617 * tui/tui-disasm.h: Update.
6618 * tui/tui-data.h (struct tui_exec_info_window): Move to
6619 tui-winsource.h.
6620 (struct tui_source_window_base): Likewise.
6621 * tui/tui-data.c (tui_source_window_base::clear_detail)
6622 (tui_source_window_base, ~tui_source_window_base): Move to
6623 tui-winsource.c.
6624
6625 2019-07-17 Tom Tromey <tom@tromey.com>
6626
6627 * tui/tui-win.c (tui_resize_all)
6628 (tui_source_window_base::update_tab_width)
6629 (tui_adjust_win_heights): Update.
6630 (tui_win_info::make_invisible_and_set_new_height): Rename from
6631 make_invisible_and_set_new_height.
6632 * tui/tui-data.h (struct tui_win_info)
6633 <make_invisible_and_set_new_height>: New method.
6634
6635 2019-07-17 Tom Tromey <tom@tromey.com>
6636
6637 * tui/tui.c: Update.
6638 * tui/tui-source.h (struct tui_source_window): Move from
6639 tui-data.h.
6640 * tui/tui-layout.c: Update.
6641 * tui/tui-disasm.c: Update.
6642 * tui/tui-data.h (struct tui_source_window): Move to
6643 tui-source.h.
6644
6645 2019-07-17 Tom Tromey <tom@tromey.com>
6646
6647 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6648 tui-data.h.
6649 * tui/tui-data.h (struct tui_disasm_window): Move to
6650 tui-disasm.h.
6651
6652 2019-07-17 Tom Tromey <tom@tromey.com>
6653
6654 * tui/tui-regs.h (struct tui_data_item_window): Move from
6655 tui-data.h.
6656 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6657 * tui/tui-data.h (struct tui_data_item_window): Move to
6658 tui-regs.h.
6659 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6660
6661 2019-07-17 Tom Tromey <tom@tromey.com>
6662
6663 * tui/tui.c: Update.
6664 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6665 (tui_cmd_window::max_height): Move to tui-command.c.
6666 * tui/tui-layout.c: Update.
6667 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6668 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6669 tui-command.c.
6670 * tui/tui-command.h (struct tui_cmd_window): Move from
6671 tui-data.h.
6672 * tui/tui-command.c: Remove "structuring" comments.
6673 (tui_cmd_window::clear_detail)
6674 (tui_cmd_window::do_make_visible_with_new_height)
6675 (tui_cmd_window::max_height): Move from elsewhere.
6676
6677 2019-07-17 Tom Tromey <tom@tromey.com>
6678
6679 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6680 Now static.
6681 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6682 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6683
6684 2019-07-17 Tom Tromey <tom@tromey.com>
6685
6686 * tui/tui.c: Update.
6687 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6688 tui-regs.c.
6689 * tui/tui-windata.h: Remove file.
6690 * tui/tui-windata.c: Remove file.
6691 * tui/tui-win.c (tui_data_window::set_new_height)
6692 (tui_data_window::do_make_visible_with_new_height): Move to
6693 tui-regs.c.
6694 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6695 * tui/tui-regs.c: Remove "structuring" comments.
6696 (tui_data_window::first_data_item_displayed)
6697 (tui_data_window::delete_data_content_windows)
6698 (tui_data_window::erase_data_content)
6699 (tui_data_window::display_all_data)
6700 (tui_data_window::refresh_all)
6701 (tui_data_window::do_scroll_vertical)
6702 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6703 (tui_data_window::do_make_visible_with_new_height)
6704 (tui_data_window::refresh_window): Move from elsewhere.
6705 (_initialize_tui_regs): Move to end of file.
6706 * tui/tui-layout.c: Update.
6707 * tui/tui-hooks.c: Update.
6708 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6709 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6710 tui-regs.c.
6711 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6712
6713 2019-07-17 Tom Tromey <tom@tromey.com>
6714
6715 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6716 seen.
6717
6718 2019-07-17 Tom Tromey <tom@tromey.com>
6719
6720 * tui/tui-win.c (tui_source_window_base::set_new_height)
6721 (tui_source_window_base::do_make_visible_with_new_height): Use
6722 m_has_locator field directly.
6723 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6724 method.
6725 (struct tui_source_window_base) <has_locator>: Likewise.
6726
6727 2019-07-17 Tom Tromey <tom@tromey.com>
6728
6729 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6730 Don't declare.
6731 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6732 Remove.
6733 * tui/tui-win.c (tui_source_window_base::set_new_height)
6734 (tui_source_window_base::set_new_height)
6735 (make_invisible_and_set_new_height)
6736 (tui_source_window_base::do_make_visible_with_new_height)
6737 (tui_source_window_base::do_make_visible_with_new_height):
6738 Update.
6739 * tui/tui-layout.c (show_source_disasm_command, show_data)
6740 (show_source_or_disasm_and_command): Update.
6741 * tui/tui-layout.c (show_layout): Update.
6742
6743 2019-07-17 Tom Tromey <tom@tromey.com>
6744
6745 * tui/tui-layout.c (make_data_window): Remove.
6746 (show_data): Unify creation and re-initialization cases.
6747
6748 2019-07-17 Tom Tromey <tom@tromey.com>
6749
6750 * tui/tui-layout.c (make_source_window, make_disasm_window):
6751 Remove.
6752 (show_data): Unify creation and re-initialization cases.
6753
6754 2019-07-17 Tom Tromey <tom@tromey.com>
6755
6756 * tui/tui-layout.c (make_command_window): Remove.
6757 (show_source_disasm_command, show_source_or_disasm_and_command):
6758 Unify creation and re-initialization cases.
6759
6760 2019-07-17 Tom Tromey <tom@tromey.com>
6761
6762 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6763 creation and re-initialization cases.
6764
6765 2019-07-17 Tom Tromey <tom@tromey.com>
6766
6767 * tui/tui-regs.c (tui_get_register): Return void.
6768
6769 2019-07-17 Tom Tromey <tom@tromey.com>
6770
6771 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6772 Simplify.
6773
6774 2019-07-17 Tom Tromey <tom@tromey.com>
6775
6776 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6777 resetting.
6778
6779 2019-07-17 Tom Tromey <tom@tromey.com>
6780
6781 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6782 * tui/tui-regs.c (tui_reg_layout): New function.
6783 (tui_show_registers, tui_reg_command): Use it.
6784 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6785 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6786 parameters.
6787 (tui_layout_command): Remove.
6788
6789 2019-07-17 Tom Tromey <tom@tromey.com>
6790
6791 * tui/tui-layout.h (tui/tui-layout): Return void.
6792 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6793
6794 2019-07-17 Tom Tromey <tom@tromey.com>
6795
6796 * tui/tui-layout.c (show_source_disasm_command, show_data):
6797 Update.
6798 (reset_locator): Remove.
6799 (show_source_or_disasm_and_command): Update.
6800
6801 2019-07-17 Tom Tromey <tom@tromey.com>
6802
6803 * tui/tui-source.c (tui_source_window_base::reset): Remove
6804 win_type parameter.
6805 * tui/tui-layout.c (make_command_window, make_source_window)
6806 (make_disasm_window, make_data_window)
6807 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6808 (reset_locator, show_source_or_disasm_and_command): Update.
6809 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6810 win_type parameter.
6811 (struct tui_source_window_base) <reset>: Likewise.
6812
6813 2019-07-17 Tom Tromey <tom@tromey.com>
6814
6815 * tui/tui-layout.c (show_source_disasm_command): Use
6816 reset_locator.
6817 (reset_locator): New function.
6818 (init_and_make_win): Remove.
6819 (show_source_or_disasm_and_command): Use reset_locator.
6820
6821 2019-07-17 Tom Tromey <tom@tromey.com>
6822
6823 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6824 condition.
6825 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6826 Remove condition.
6827 * tui/tui-source.c (tui_source_window_base::reset): New method.
6828 * tui/tui-layout.c (make_command_window): Don't call
6829 init_and_make_win.
6830 (make_source_window, make_disasm_window): Don't call
6831 make_source_or_disasm_window.
6832 (make_data_window): Don't call init_and_make_win. Change calling
6833 convention.
6834 (show_source_disasm_command, show_data): Simplify.
6835 (make_source_or_disasm_window): Remove.
6836 (show_source_or_disasm_and_command): Simplify.
6837 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6838 (struct tui_source_window_base) <reset>: Likewise.
6839 <execution_info>: Remove initializer.
6840 * tui/tui-data.c (tui_source_window_base): Initialize
6841 execution_info.
6842
6843 2019-07-17 Tom Tromey <tom@tromey.com>
6844
6845 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6846 variable.
6847
6848 2019-07-17 Tom Tromey <tom@tromey.com>
6849
6850 * tui/tui.c (tui_rl_other_window): Update.
6851 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6852 superclass method first. Always iterate over regs_content.
6853 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6854 method.
6855 * tui/tui-win.c (tui_set_focus_command): Update.
6856
6857 2019-07-17 Tom Tromey <tom@tromey.com>
6858
6859 * tui/tui-win.c (tui_set_focus_command): Rename from
6860 tui_set_focus. Call tui_enable.
6861 (tui_set_focus_command): Remove.
6862
6863 2019-07-17 Tom Tromey <tom@tromey.com>
6864
6865 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6866 refresh_window.
6867 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6868 touchwin.
6869 (tui_data_window::refresh_window): Call refresh_window on data
6870 items. Always call superclass refresh_window.
6871 (tui_win_info::refresh): Remove.
6872 (tui_source_window_base::refresh_window): Update.
6873 (tui_refresh_all): Update.
6874 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6875 refresh_window.
6876 (show_source_or_disasm_and_command): Likewise.
6877 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6878 (struct tui_source_window_base) <refresh>: Likewise.
6879
6880 2019-07-17 Tom Tromey <tom@tromey.com>
6881
6882 * tui/tui-winsource.c (tui_clear_source_content)
6883 (tui_show_source_content): Update.
6884 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6885 whether content is empty.
6886 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6887 Remove.
6888
6889 2019-07-17 Tom Tromey <tom@tromey.com>
6890
6891 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6892 window's contents.
6893 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6894 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6895
6896 2019-07-17 Tom Tromey <tom@tromey.com>
6897
6898 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6899 (struct tui_data_item_window): Update.
6900
6901 2019-07-17 Tom Tromey <tom@tromey.com>
6902
6903 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6904 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6905 defines.
6906
6907 2019-07-17 Tom Tromey <tom@tromey.com>
6908
6909 * tui/tui-winsource.h (tui_erase_source_content)
6910 (tui_clear_source_content): Remove "display_prompt" parameter.
6911 * tui/tui-winsource.c (tui_update_source_window_as_is)
6912 (tui_update_source_windows_with_addr): Update.
6913 (tui_clear_source_content): Remove "display_prompt" parameter.
6914 (tui_erase_source_content): Likewise. Simplify.
6915 (tui_show_source_content): Update.
6916 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6917 * tui/tui-stack.c (tui_show_frame_info): Update.
6918 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6919 Remove defines.
6920
6921 2019-07-17 Tom Tromey <tom@tromey.com>
6922
6923 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6924 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6925 parameter.
6926 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6927 parameter.
6928
6929 2019-07-17 Tom Tromey <tom@tromey.com>
6930
6931 * tui/tui-winsource.c (tui_clear_source_content)
6932 (tui_show_source_content, tui_show_exec_info_content)
6933 (tui_clear_exec_info_content): Update.
6934 * tui/tui-stack.c (tui_show_locator_content): Update.
6935 (tui_show_frame_info): Update.
6936 * tui/tui-source.h (tui_source_window): Don't declare.
6937 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6938 from tui_source_is_displayed.
6939 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6940 Remove field.
6941 (struct tui_source_window_base) <content_in_use>: New field. Now
6942 bool.
6943 (struct tui_source_window) <showing_source_p>: New method.
6944 (TUI_SRC_WIN): Change cast.
6945 * tui/tui-data.c (tui_initialize_static_data): Update.
6946
6947 2019-07-17 Tom Tromey <tom@tromey.com>
6948
6949 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6950 location_matches_p.
6951 * tui/tui-source.c (tui_source_window::location_matches_p): New
6952 method.
6953 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6954 method.
6955 * tui/tui-data.h (struct tui_source_window_base)
6956 <location_matches_p>: New method.
6957 (struct tui_source_window, struct tui_disasm_window)
6958 <location_matches_p>: Likewise.
6959
6960 2019-07-17 Tom Tromey <tom@tromey.com>
6961
6962 * tui/tui-win.c (tui_set_win_height_command): Rename from
6963 tui_set_win_height.
6964 (tui_set_win_height_command): Remove.
6965
6966 2019-07-17 Tom Tromey <tom@tromey.com>
6967
6968 * tui/tui-source.c (tui_source_window): New constructor. Add
6969 observer.
6970 (~tui_source_window): New destructor.
6971 (tui_source_window::style_changed): New method.
6972 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6973 (tui_attach_detach_observers): Update.
6974 * tui/tui-data.h (struct tui_source_window): Make constructor not
6975 inline. Add destructor.
6976 (struct tui_source_window) <style_changed>: New method.
6977 <m_observable>: New member.
6978
6979 2019-07-17 Tom Tromey <tom@tromey.com>
6980
6981 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6982 * tui/tui-win.c (tui_resize_all): Fix typo.
6983
6984 2019-07-17 Tom Tromey <tom@tromey.com>
6985
6986 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6987 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6988 (tui_refresh_all): Remove "list" parameter. Use foreach.
6989 * tui/tui-win.c (window_name_completer): Use foreach.
6990 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6991 (update_tab_width): Likewise.
6992 * tui/tui-layout.c (show_layout): Update.
6993 * tui/tui-data.h (class tui_window_iterator): New.
6994 (struct all_tui_windows): New.
6995 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6996
6997 2019-07-17 Tom Tromey <tom@tromey.com>
6998
6999 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7000 parameter. Don't reference globals.
7001 (tui_reg_command): Update.
7002
7003 2019-07-17 Tom Tromey <tom@tromey.com>
7004
7005 * tui/tui-regs.c (tui_show_registers): Simplify.
7006
7007 2019-07-17 Tom Tromey <tom@tromey.com>
7008
7009 * tui/tui-regs.c (tui_show_registers): Update.
7010 (tui_show_register_group): Add win_info parameter.
7011
7012 2019-07-17 Tom Tromey <tom@tromey.com>
7013
7014 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7015 Rename from tui_display_reg_element_at_line.
7016 (tui_data_window::display_registers_from_line): Update.
7017 * tui/tui-data.h (struct tui_data_window)
7018 <display_reg_element_at_line>: New method.
7019
7020 2019-07-17 Tom Tromey <tom@tromey.com>
7021
7022 * tui/tui-regs.h (tui_display_registers_from)
7023 (tui_display_registers_from_line): Don't declare.
7024 * tui/tui-windata.c (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_data_window::display_registers_from): Rename
7028 from tui_display_registers_from.
7029 (tui_display_reg_element_at_line): Update.
7030 (tui_data_window::display_registers_from_line): Rename from
7031 tui_display_registers_from_line.
7032 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7033 display_registers_from_line>: New methods.
7034
7035 2019-07-17 Tom Tromey <tom@tromey.com>
7036
7037 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7038 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7039 from tui_erase_data_content.
7040 (tui_data_window::display_all_data)
7041 (tui_data_window::refresh_all)
7042 (tui_data_window::do_scroll_vertical): Update.
7043 * tui/tui-regs.c (tui_show_registers): Update.
7044 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7045 New method.
7046
7047 2019-07-17 Tom Tromey <tom@tromey.com>
7048
7049 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7050 declare.
7051 * tui/tui-windata.c
7052 (tui_data_window::delete_data_content_windows): Rename from
7053 tui_delete_data_content_windows.
7054 (tui_data_window::display_all_data)
7055 (tui_data_window::do_scroll_vertical): Update.
7056 * tui/tui-data.h (struct tui_data_window)
7057 <delete_data_content_windows>: New method.
7058
7059 2019-07-17 Tom Tromey <tom@tromey.com>
7060
7061 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7062 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7063
7064 2019-07-17 Tom Tromey <tom@tromey.com>
7065
7066 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7067 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7068 from tui_display_all_data.
7069 * tui/tui-win.c
7070 (tui_data_window::do_make_visible_with_new_height): Update.
7071 * tui/tui-regs.c (tui_show_registers): Update.
7072 * tui/tui-layout.c (tui_set_layout): Update.
7073 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7074 method.
7075
7076 2019-07-17 Tom Tromey <tom@tromey.com>
7077
7078 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7079 * tui/tui-windata.c (tui_display_data_from): Remove.
7080 (tui_data_window::refresh_all): Update.
7081
7082 2019-07-17 Tom Tromey <tom@tromey.com>
7083
7084 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7085 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7086 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7087 tui_display_registers_from_line.
7088 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7089 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7090 "force_display" parameter.
7091
7092 2019-07-17 Tom Tromey <tom@tromey.com>
7093
7094 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7095 declare.
7096 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7097 Rename from tui_first_reg_element_no_inline.
7098 (tui_display_reg_element_at_line)
7099 (tui_display_registers_from_line): Update.
7100 * tui/tui-data.h (struct tui_data_window)
7101 <first_reg_element_no_inline>: New method.
7102
7103 2019-07-17 Tom Tromey <tom@tromey.com>
7104
7105 * tui/tui-windata.c (tui_display_data_from)
7106 (tui_data_window::do_scroll_vertical): Update.
7107 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7108 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7109 Rename from tui_line_from_reg_element_no.
7110 (tui_display_registers_from_line): Update.
7111 * tui/tui-data.h (struct tui_data_window)
7112 <line_from_reg_element_no>: New method.
7113
7114 2019-07-17 Tom Tromey <tom@tromey.com>
7115
7116 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7117 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7118 tui_last_regs_line_no.
7119 (tui_display_reg_element_at_line)
7120 (tui_display_registers_from_line): Update.
7121 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7122 method.
7123
7124 2019-07-17 Tom Tromey <tom@tromey.com>
7125
7126 PR tui/24722:
7127 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7128 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7129 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7130 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7131 (tui_update_breakpoint_info): Likewise.
7132 * tui/tui-hooks.c (tui_event_create_breakpoint)
7133 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7134 Update.
7135
7136 2019-07-17 Tom Tromey <tom@tromey.com>
7137
7138 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7139
7140 2019-07-17 Tom Tromey <tom@tromey.com>
7141
7142 * tui/tui-winsource.c (tui_update_source_window_as_is)
7143 (tui_update_source_windows_with_addr): Update.
7144 * tui/tui-source.h (tui_set_source_content)
7145 (tui_show_symtab_source): Add "win_info" parameter.
7146 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7147 parameter.
7148 (tui_show_symtab_source): Likewise.
7149
7150 2019-07-17 Tom Tromey <tom@tromey.com>
7151
7152 * tui/tui-wingeneral.c
7153 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7154
7155 2019-07-17 Tom Tromey <tom@tromey.com>
7156
7157 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7158 (struct tui_cmd_window) <can_scroll>: New method.
7159 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7160 method.
7161
7162 2019-07-17 Tom Tromey <tromey@adacore.com>
7163
7164 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7165 do_field_signed>: Rename. Change type of "value".
7166 * ui-out.c (ui_out::field_signed): Rename from field_int.
7167 Change type of "value".
7168 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7169 type of "value".
7170 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7171 do_field_int. Change type of "value".
7172 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7173 do_field_int. Change type of "value".
7174 * tracepoint.c (trace_status_mi, tfind_1)
7175 (print_one_static_tracepoint_marker): Update.
7176 * thread.c (print_thread_info_1, print_selected_thread_frame):
7177 Update.
7178 * stack.c (print_frame, print_frame_info): Update.
7179 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7180 Update.
7181 * source.c (print_source_lines_base): Update.
7182 * skip.c (info_skip_command): Update.
7183 * record-btrace.c (btrace_ui_out_decode_error)
7184 (btrace_call_history_src_line): Update.
7185 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7186 Update.
7187 * progspace.c (print_program_space): Update.
7188 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7189 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7190 do_field_int. Change type of "value".
7191 * mi/mi-out.c (mi_ui_out::do_table_begin)
7192 (mi_ui_out::do_table_header): Update.
7193 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7194 type of "value".
7195 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7196 (mi_cmd_data_list_changed_registers, output_register)
7197 (mi_cmd_data_read_memory, mi_load_progress)
7198 (mi_cmd_trace_frame_collected): Update.
7199 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7200 Update.
7201 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7202 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7203 (mi_cmd_var_list_children, varobj_update_one): Update.
7204 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7205 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7206 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7207 * inferior.c (print_inferior): Update.
7208 * gdb_bfd.c (print_one_bfd): Update.
7209 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7210 Update.
7211 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7212 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7213 do_field_int. Change type of "value".
7214 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7215 do_field_int. Change type of "value".
7216 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7217 (print_one_breakpoint_location, print_it_catch_fork)
7218 (print_one_catch_fork, print_it_catch_vfork)
7219 (print_one_catch_vfork, print_it_catch_solib)
7220 (print_it_catch_exec, print_it_ranged_breakpoint)
7221 (print_mention_watchpoint, print_mention_masked_watchpoint)
7222 (bkpt_print_it, update_static_tracepoint): Update.
7223 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7224 * break-catch-syscall.c (print_it_catch_syscall): Update.
7225 * ada-tasks.c (print_ada_task_info): Update.
7226 * ada-lang.c (print_it_exception, print_mention_exception):
7227 Update.
7228
7229 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7230
7231 PR breakpoints/24541
7232 * gdbarch.c: Regenerate.
7233 * gdbarch.h: Regenerate.
7234 * gdbarch.sh: Adjust return type and parameter types for
7235 'stap_adjust_register'.
7236 (i386_stap_adjust_register): Adjust signature and return new
7237 register name.
7238 * stap-probe.c (stap_parse_register_operand): Adjust use of
7239 'gdbarch_stap_adjust_register'.
7240
7241 2019-07-17 Tom Tromey <tromey@adacore.com>
7242
7243 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7244 declare VEC.
7245 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7246 std::vector.
7247 (struct s390_process_info): Add initializers.
7248 (s390_add_process): Use new.
7249 (s390_linux_nat_target::low_forget_process): Use delete.
7250 (s390_linux_nat_target::low_new_fork)
7251 (s390_linux_nat_target::stopped_by_watchpoint)
7252 (s390_linux_nat_target::low_prepare_to_resume)
7253 (s390_linux_nat_target::insert_watchpoint)
7254 (s390_linux_nat_target::insert_hw_breakpoint)
7255 (s390_linux_nat_target::remove_watchpoint)
7256 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7257
7258 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7259
7260 * aarch64-fbsd-nat.c: Include regcache.h.
7261 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7262 argument.
7263 (aarch64_fbsd_nat_target::fetch_registers)
7264 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7265 variable.
7266 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7267
7268 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7269
7270 * fbsd-nat.c: Include gdbarch.h.
7271
7272 2019-07-15 Tom Tromey <tromey@adacore.com>
7273
7274 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7275
7276 2019-07-15 Tom Tromey <tromey@adacore.com>
7277
7278 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7279 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7280 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7281 * cli-out.c (cli_ui_out::do_field_int): New method.
7282 * ui-out.c (ui_out::field_unsigned): New method.
7283 * symfile.c (generic_load): Use field_unsigned.
7284 (print_transfer_performance): Likewise.
7285 * record-btrace.c (ui_out_field_uint): Remove.
7286 (btrace_call_history_insn_range, btrace_call_history): Use
7287 field_unsigned.
7288 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7289 field_unsigned.
7290 * ui-out.h (class ui_out) <field_unsigned>: New method.
7291 <do_field_unsigned>: Likewise.
7292
7293 2019-07-15 Tom Tromey <tromey@adacore.com>
7294
7295 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7296 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7297 * target.c (flash_erase_command): Use field_string.
7298 * infrun.c (print_signal_received_reason): Use field_string.
7299 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7300 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7301 field_string.
7302 * ada-tasks.c (print_ada_task_info): Use field_string.
7303
7304 2019-07-15 Tom Tromey <tromey@adacore.com>
7305
7306 * target.c (flash_erase_command): Use field_core_addr.
7307 * symfile.c (generic_load): Use field_core_addr.
7308 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7309 Use field_core_addr.
7310 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7311 field_core_addr.
7312
7313 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7314
7315 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7316 value if its desired type is smaller than a CORE_ADDR and signed.
7317
7318 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7319
7320 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7321 of changes to field names, and use new is_reference field to
7322 decide if a property is a reference or not.
7323 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7324 field.
7325 (struct dwarf2_property_baton): Update header comment, rename
7326 'referenced_type' to 'property_type' and update comments.
7327 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7328 default property type, store in property baton, update to take
7329 accound of renamed field.
7330 (read_func_scope): Update call to attr_to_dynamic_prop.
7331 (read_array_type): Likewise.
7332 (dwarf2_per_cu_addr_sized_int_type): New function.
7333 (read_subrange_index_type): Move type finding code to
7334 dwarf2_per_cu_addr_sized_int_type.
7335 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7336 (dwarf2_per_cu_addr_type): New function.
7337 (set_die_type): Update calls to attr_to_dynamic_prop.
7338
7339 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7340
7341 * dwarf2read.c (read_subrange_index_type): New function.
7342 (read_subrange_type): Move code into new function and call it.
7343 * gdbtypes.c (create_range_type): Add some asserts.
7344
7345 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7346
7347 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7348 update return statements.
7349 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7350 declaration, and update comment to match.
7351 * gdbtypes.c (resolve_dynamic_array): Update call to
7352 dwarf2_evaluate_property to match new return type.
7353
7354 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7355
7356 * valarith.c (value_subscripted_rvalue): Change lowerbound
7357 parameter type from int to LONGEST.
7358 * value.h (value_subscripted_rvalue): Likewise in declaration.
7359
7360 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * cli/cli-utils.c (info_print_command_completer): New function.
7363 * cli/cli-utils.h: Add 'completer.h' include, and forward
7364 declaration for 'struct cmd_list_element'.
7365 (info_print_command_completer): Declare.
7366 * stack.c (_initialize_stack): Add completer for 'info locals' and
7367 'info args'.
7368 * symtab.c (_initialize_symtab): Add completer for 'info
7369 variables' and 'info functions'.
7370 * NEWS: Mention completion for additional info commands.
7371
7372 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7373
7374 * cli/cli-utils.c (extract_info_print_args): Delete.
7375 (extract_arg_maybe_quoted): Delete.
7376 (info_print_options_defs): New variable.
7377 (make_info_print_options_def_group): New function.
7378 (extract_info_print_options): Define new function.
7379 * cli/cli-utils.h (extract_info_print_args): Delete.
7380 (struct info_print_options): New structure.
7381 (extract_info_print_options): Declare new function.
7382 * stack.c (info_locals_command): Update to use new
7383 extract_info_print_options, also add a header comment.
7384 (info_args_command): Likewise.
7385 * symtab.c (info_variables_command): Likewise.
7386 (info_functions_command): Likewise.
7387
7388 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7389
7390 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7391 to extract string arguments.
7392 * common/common-utils.c (extract_string_maybe_quoted): New function.
7393 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7394
7395 2019-07-11 Tom Tromey <tromey@adacore.com>
7396
7397 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7398 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7399 * top.h (gdbinit): Don't declare.
7400 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7401 into...
7402 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7403 * top.c (gdb_init): Don't call init_cli_cmds.
7404 (gdbinit): Remove.
7405 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7406
7407 2019-07-11 Tom Tromey <tromey@adacore.com>
7408
7409 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7410 after it has been moved.
7411
7412 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7413
7414 * valops.c (value_must_coerce_to_target): Change return type to
7415 bool.
7416 * value.h (value_must_coerce_to_target): Likewise.
7417
7418 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7419
7420 * breakpoint.c (is_hardware_watchpoint): Remove
7421 forward-declaration.
7422 (is_masked_watchpoint): Change return type to bool.
7423 (is_tracepoint): Likewise.
7424 (is_breakpoint): Likewise.
7425 (is_hardware_watchpoint): Likewise.
7426 (is_watchpoint): Likewise.
7427 (is_no_memory_software_watchpoint): Likewise.
7428 (is_catchpoint): Likewise.
7429 (breakpoint_1): Make FILTER parameter's return type bool.
7430 is_masked_watchpoint): Change return type to bool.
7431 (save_breakpoints): Make FILTER parameter's return type bool.
7432 * breakpoint.h (is_breakpoint): Change return type to bool.
7433 (is_watchpoint): Likewise.
7434 (is_catchpoint): Likewise.
7435 (is_tracepoint): Likewise.
7436
7437 2019-07-10 Tom Tromey <tom@tromey.com>
7438
7439 * defs.h: Don't include gdbarch.h.
7440 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7441 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7442 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7443 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7444 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7445 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7446 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7447 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7448 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7449 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7450 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7451 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7452 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7453 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7454 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7455 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7456 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7457 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7458 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7459 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7460 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7461 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7462 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7463 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7464 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7465 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7466 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7467
7468 2019-07-10 Tom Tromey <tromey@adacore.com>
7469
7470 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7471 * breakpoint.c (init_ada_exception_breakpoint): Register as
7472 bp_catchpoint.
7473 (print_one_breakpoint_location, print_one_breakpoint): Use
7474 is_ada_exception_catchpoint.
7475 * ada-lang.c (class ada_catchpoint_location): Pass
7476 bp_loc_software_breakpoint to bp_location constructor.
7477 (is_ada_exception_catchpoint): New function.
7478
7479 2019-07-10 Tom Tromey <tromey@adacore.com>
7480
7481 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7482 VEC.
7483 (struct arm_exidx_entry): New method operator<.
7484 (struct arm_exidx_data) <section_maps>: Change type.
7485 (arm_exidx_data_free): Remove.
7486 (arm_exidx_data_key): Change type. Move lower.
7487 (arm_exidx_new_objfile): Update.
7488 (arm_compare_exidx_entries): Remove.
7489 (arm_find_exidx_entry, _initialize_arm_tdep)
7490
7491 2019-07-10 Tom Tromey <tromey@adacore.com>
7492
7493 * solib-spu.c (ocl_program_data_key): Change type.
7494 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7495 Update.
7496
7497 2019-07-10 Tom Tromey <tromey@adacore.com>
7498
7499 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7500 (struct solib_aix_inferior_data) <library_list>: Change type.
7501 (solib_aix_inferior_data_handle): Change type.
7502 (get_solib_aix_inferior_data): Update.
7503 (solib_aix_free_library_list): Remove.
7504 (library_list_start_library): Update.
7505 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7506 return type.
7507 (solib_aix_get_library_list)
7508 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7509 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7510
7511 2019-07-10 Tom Tromey <tromey@adacore.com>
7512
7513 * solib-dsbt.c (struct dsbt_info): Add initializers.
7514 (solib_dsbt_pspace_data): Change type.
7515 (dsbt_pspace_data_cleanup): Remove.
7516 (get_dsbt_info, _initialize_dsbt_solib): Update.
7517
7518 2019-07-10 Tom Tromey <tromey@adacore.com>
7519
7520 * spu-tdep.c (spu_overlay_data): Change type.
7521 (spu_get_overlay_table, spu_overlay_new_objfile)
7522 (_initialize_spu_tdep): Update.
7523
7524 2019-07-10 Tom Tromey <tromey@adacore.com>
7525
7526 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7527 destructor.
7528 (dbx_objfile_data_key): Change type and declare later.
7529 (DBX_SYMFILE_INFO): Rewrite.
7530 * dbxread.c (dbx_objfile_data_key): Change type.
7531 (dbx_symfile_init): Update.
7532 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7533 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7534 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7535
7536 2019-07-10 Tom Tromey <tromey@adacore.com>
7537
7538 * jit.c (jit_program_space_key): Change type. Move lower.
7539 (get_jit_program_space_data): Update.
7540 (jit_program_space_data_cleanup): Remove.
7541 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7542 Update.
7543 (struct jit_program_space_data): Add initializers.
7544
7545 2019-07-10 Tom Tromey <tromey@adacore.com>
7546
7547 * solib-darwin.c (struct darwin_info): Add initializers.
7548 (solib_darwin_pspace_data): Change type.
7549 (darwin_pspace_data_cleanup): Remove.
7550 (get_darwin_info, _initialize_darwin_solib): Update.
7551
7552 2019-07-10 Tom Tromey <tromey@adacore.com>
7553
7554 * remote-sim.c (struct sim_inferior_data): Add initializers,
7555 constructor, and destructor.
7556 (sim_inferior_data_key): Change type. Move lower.
7557 (check_for_duplicate_sim_descriptor): Update.
7558 (get_sim_inferior_data): Use new. Update.
7559 (~sim_inferior_data_cleanup): Rename from
7560 sim_inferior_data_cleanup. Simplify.
7561 (gdbsim_close_inferior, simulator_command)
7562 (sim_command_completer, _initialize_remote_sim): Update.
7563 (next_pid, INITIAL_PID): Move earlier.
7564
7565 2019-07-10 Tom Tromey <tromey@adacore.com>
7566
7567 * python/python-internal.h (create_thread_object): Return
7568 gdbpy_ref.
7569 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7570 * python/py-inferior.c (struct threadlist_entry): Add
7571 constructor.
7572 <thread_obj>: Now a gdbpy_ref.
7573 (thread_to_thread_object): Update.
7574 (add_thread_object): Use new.
7575 (delete_thread_object): Use delete.
7576 (infpy_threads): Update.
7577 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7578 GIL.
7579
7580 2019-07-10 Tom Tromey <tromey@adacore.com>
7581
7582 * valops.c (value_cast): Specialize error message for Ada.
7583
7584 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7585
7586 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7587
7588 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7589
7590 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7591 bpstat_should_step): Return bool, adjust comments.
7592 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7593 bpstat_should_step): Likewise.
7594
7595 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7596
7597 * features/Makefile: Use feature target descriptions for Arm.
7598 * features/arm/arm-core.c: Generate new file.
7599 * features/arm/arm-fpa.c: Likewise.
7600 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7601 * features/arm/arm-m-profile.c: Likewise.
7602 * features/arm/arm-vfpv2.c: Likewise.
7603 * features/arm/arm-vfpv3.c: Likewise.
7604 * features/arm/xscale-iwmmxt.c: Likewise.
7605 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7606
7607 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7608
7609 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7610 ptrace earlier.
7611
7612 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7613
7614 * features/aarch64-pauth.c: Regenerate.
7615
7616 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7617
7618 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7619 bool.
7620 (bpstat_what): Use false instead of 0.
7621
7622 2019-07-09 Pedro Alves <palves@redhat.com>
7623
7624 * break-catch-throw.c (is_exception_catchpoint): New.
7625 * breakpoint.c (print_one_breakpoint_location): New parameter
7626 'raw_loc'. Handle it. Use
7627 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7628 looking at the breakpoint's type.
7629 (print_one_breakpoint): If handling "maint info breakpoints", also
7630 print locations of exception catchpoints.
7631 * breakpoint.h (is_exception_catchpoint): Declare.
7632
7633 2019-07-09 Pedro Alves <palves@redhat.com>
7634
7635 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7636 "addr" field.
7637 (allocate_location_exception_catchpoint): New.
7638 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7639 (initialize_throw_catchpoint_ops): Install
7640 allocate_location_exception_catchpoint as allocate_location
7641 method.
7642 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7643 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7644 bp_loc_other.
7645 (breakpoint_address_is_meaningful): Delete.
7646 (bl_address_is_meaningful): New.
7647 (breakpoint_locations_match): Adjust comment.
7648 (bp_location_from_bp_type): New, factored out of...
7649 (bp_location::bp_location(breakpoint *)): ... this.
7650 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7651 factored out of...
7652 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7653 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7654 breakpoint_address_is_meaningful.
7655 (bp_locations_compare): Adjust comment.
7656 (update_global_location_list): Use bl_address_is_meaningful
7657 instead of breakpoint_address_is_meaningful.
7658 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7659 explicit.
7660 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7661 * python/py-breakpoint.c (bppy_get_location): No longer check
7662 whether location is null.
7663
7664 2019-07-09 Pedro Alves <palves@redhat.com>
7665
7666 PR c++/15468
7667 * breakpoint.c (print_one_breakpoint_location): Remove
7668 single-location assert.
7669
7670 2019-07-09 Tom Tromey <tom@tromey.com>
7671
7672 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7673 * configure: Rebuild.
7674 * configure.ac: Change common to gdbsupport.
7675 * gdbsupport: Rename from common.
7676 * acinclude.m4: Change common to gdbsupport.
7677 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7678 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7679 gdbsupport.
7680 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7681 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7682 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7683 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7684 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7685 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7686 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7687 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7688 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7689 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7690 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7691 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7692 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7693 coff-pe-read.c, command.h, compile/compile-c-support.c,
7694 compile/compile-c.h, compile/compile-cplus-symbols.c,
7695 compile/compile-cplus-types.c, compile/compile-cplus.h,
7696 compile/compile-loc2c.c, compile/compile.c, completer.c,
7697 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7698 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7699 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7700 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7701 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7702 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7703 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7704 features/aarch64-core.c, features/aarch64-fpu.c,
7705 features/aarch64-pauth.c, features/aarch64-sve.c,
7706 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7707 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7708 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7709 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7710 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7711 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7712 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7713 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7714 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7715 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7716 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7717 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7718 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7719 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7720 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7721 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7722 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7723 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7724 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7725 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7726 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7727 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7728 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7729 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7730 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7731 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7732 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7733 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7734 minsyms.c, mips-linux-tdep.c, namespace.h,
7735 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7736 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7737 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7738 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7739 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7740 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7741 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7742 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7743 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7744 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7745 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7746 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7747 procfs.c, producer.c, progspace.h, psymtab.h,
7748 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7749 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7750 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7751 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7752 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7753 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7754 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7755 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7756 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7757 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7758 target-memory.c, target.c, target.h, target/waitstatus.c,
7759 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7760 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7761 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7762 unittests/array-view-selftests.c,
7763 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7764 unittests/common-utils-selftests.c,
7765 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7766 unittests/format_pieces-selftests.c,
7767 unittests/function-view-selftests.c,
7768 unittests/lookup_name_info-selftests.c,
7769 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7770 unittests/mkdir-recursive-selftests.c,
7771 unittests/observable-selftests.c,
7772 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7773 unittests/parse-connection-spec-selftests.c,
7774 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7775 unittests/scoped_fd-selftests.c,
7776 unittests/scoped_mmap-selftests.c,
7777 unittests/scoped_restore-selftests.c,
7778 unittests/string_view-selftests.c, unittests/style-selftests.c,
7779 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7780 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7781 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7782 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7783 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7784 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7785
7786 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7787
7788 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7789 bool value.
7790 (decode_digits_ordinary): Set explicit_line field in sal.
7791 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7792 symtab_and_line that was set on an explicit line number in
7793 assembler code. Do always update the recorded symtab and line if
7794 we do skip the prologue.
7795
7796 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7797
7798 * breakpoint.c (set_breakpoint_location_function): Remove
7799 explicit_loc parameter.
7800 (momentary_breakpoint_from_master): Update call to
7801 set_breakpoint_location_function.
7802 (add_location_to_breakpoint): Likewise.
7803
7804 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7805
7806 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7807 required features based on default bfd type when no specific bfd
7808 is present.
7809
7810 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7811
7812 * NEWS: Mention that GDB printf and eval commands can now print
7813 C-style and Ada-style convenience var strings without
7814 calling the inferior.
7815 * printcmd.c (printf_c_string): Locally print GDB internal var
7816 instead of transiting via the inferior.
7817 (printf_wide_c_string): Likewise.
7818
7819 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7820
7821 PR breakpoints/25011
7822 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7823
7824 2019-07-04 Tom Tromey <tom@tromey.com>
7825
7826 PR tui/24724:
7827 * tui/tui-winsource.c (tui_clear_source_content): Update.
7828 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7829 (tui_update_breakpoint_info): Update.
7830 (tui_set_exec_info_content): Update.
7831 * tui/tui-source.c (tui_set_source_content_nil): Update.
7832 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7833 has_break.
7834 * tui/tui-data.h (enum tui_bp_flag): New.
7835 (tui_bp_flags): New enum flags type.
7836 (struct tui_source_element) <break_mode>: Change type. Rename
7837 from has_break.
7838 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7839 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7840 constants.
7841 * tui/tui-winsource.h: Fix comment.
7842
7843 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7844
7845 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7846 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7847 (store_fpregs_to_thread)
7848 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7849 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7850 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7851 (IWMMXT_REGS_SIZE): Add define.
7852 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7853 (fetch_vfp_regs, store_vfp_regs)
7854 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7855 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7856
7857 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7858
7859 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7860 defines.
7861 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7862 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7863 (ARM_INT_REGISTER_SIZE): ...to this.
7864 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7865 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7866 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7867 (arm_linux_collect_gregset, supply_nwfpe_register)
7868 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7869 defines.
7870 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7871 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7872 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7873 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7874 (arm_return_in_memory, arm_store_return_value)
7875 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7876 (arm_record_ld_st_multiple): Likewise.
7877 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7878 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7879
7880 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7881
7882 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7883 AARCH64_DISPLACED_MODIFIED_INSNS.
7884 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7885 (aarch64_displaced_step_copy_insn): Likewise.
7886 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7887 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7888 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7889 ARM_DISPLACED_MODIFIED_INSNS.
7890 * arm-tdep.c (arm_gdbarch_init): Likewise.
7891 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7892 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7893 (struct arm_displaced_step_closure): Use
7894 ARM_DISPLACED_MODIFIED_INSNS.
7895
7896 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7897
7898 * features/Makefile: Remove unused xml files.
7899 * features/aarch64.xml: Remove.
7900 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7901 * features/i386/amd64-avx-avx512.xml: Remove.
7902 * features/i386/amd64-avx-linux.xml: Remove.
7903 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7904 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7905 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7906 * features/i386/amd64-avx-mpx.xml: Remove.
7907 * features/i386/amd64-avx.xml: Remove.
7908 * features/i386/amd64-linux.xml: Remove.
7909 * features/i386/amd64-mpx-linux.xml: Remove.
7910 * features/i386/amd64-mpx.xml: Remove.
7911 * features/i386/amd64.xml: Remove.
7912 * features/i386/i386-avx-avx512-linux.xml: Remove.
7913 * features/i386/i386-avx-avx512.xml: Remove.
7914 * features/i386/i386-avx-linux.xml: Remove.
7915 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7916 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7917 * features/i386/i386-avx-mpx-linux.xml: Remove.
7918 * features/i386/i386-avx-mpx.xml: Remove.
7919 * features/i386/i386-avx.xml: Remove.
7920 * features/i386/i386-linux.xml: Remove.
7921 * features/i386/i386-mmx-linux.xml: Remove.
7922 * features/i386/i386-mmx.xml: Remove.
7923 * features/i386/i386-mpx-linux.xml: Remove.
7924 * features/i386/i386-mpx.xml: Remove.
7925 * features/i386/i386.xml: Remove.
7926 * features/i386/x32-avx-avx512-linux.xml: Remove.
7927 * features/i386/x32-avx-linux.xml: Remove.
7928 * features/i386/x32-linux.xml: Remove.
7929
7930 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7931
7932 * regformats/aarch64.dat: Remove.
7933 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7934 * regformats/i386/amd64-avx-linux.dat: Remove.
7935 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7936 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7937 * regformats/i386/amd64-linux.dat: Remove.
7938 * regformats/i386/amd64-mpx-linux.dat: Remove.
7939 * regformats/i386/amd64.dat: Remove.
7940 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7941 * regformats/i386/i386-avx-linux.dat: Remove.
7942 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7943 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7944 * regformats/i386/i386-linux.dat: Remove.
7945 * regformats/i386/i386-mmx-linux.dat: Remove.
7946 * regformats/i386/i386-mpx-linux.dat: Remove.
7947 * regformats/i386/i386.dat: Remove.
7948 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7949 * regformats/i386/x32-avx-linux.dat: Remove.
7950 * regformats/i386/x32-linux.dat: Remove.
7951
7952 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7953
7954 * aarch64-tdep.c: Remove xml self tests.
7955 * amd64-linux-tdep.c: Likewise.
7956 * amd64-tdep.c: Likewise.
7957 * i386-linux-tdep.c: Likewise.
7958 * i386-tdep.c: Likewise.
7959
7960 2019-07-03 Pedro Alves <palves@redhat.com>
7961
7962 PR cli/24732
7963 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7964 (pipe_cmd_option_defs): New.
7965 (make_pipe_cmd_options_def_group): New.
7966 (pipe_command): Use gdb::option::process_options.
7967 (pipe_command_completer): New function.
7968 (_initialize_cli_cmds): Install completer for "pipe" command.
7969
7970 2019-07-03 Pedro Alves <palves@redhat.com>
7971
7972 * cli/cli-option.c (union option_value) <string>: New field.
7973 (struct option_def_and_value): Add ctor, move ctor, dtor and
7974 use DISABLE_COPY_AND_ASSIGN.
7975 (option_def_and_value::clear_value): New.
7976 (parse_option, save_option_value_in_ctx, get_val_type_str)
7977 (add_setshow_cmds_for_options): Handle var_string.
7978 * cli-option.h (union option_def::var_address) <string>: New
7979 field.
7980 (struct string_option_def): New.
7981 * maint-test-options.c (struct test_options_opts): Add default
7982 ctor and use DISABLE_COPY_AND_ASSIGN.
7983 <string_opt>: New field.
7984 (test_options_opts::~test_options_opts): New.
7985 (test_options_opts::dump): Also dump "-string".
7986 (test_options_option_defs): Install "string.
7987
7988 2019-07-03 Pedro Alves <palves@redhat.com>
7989
7990 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7991 option_value with a null enumeration.
7992 (complete_options): Save the option values in the context.
7993 (save_option_value_in_ctx): New, factored out from ...
7994 (process_options): ... here.
7995 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7996 of the function.
7997 * maint-test-options.c (test_options_opts::dump): New, factored
7998 out from ...
7999 (maintenance_test_options_command_mode): ... here.
8000 (maintenance_test_options_command_completion_result): Delete.
8001 (maintenance_test_options_command_completion_text): Update
8002 comment.
8003 (maintenance_show_test_options_completion_result): Change
8004 prototype. Just print
8005 maintenance_test_options_command_completion_text.
8006 (save_completion_result): New.
8007 (maintenance_test_options_completer_mode): Pass options context to
8008 complete_options, and then save a dump.
8009 (_initialize_maint_test_options): Use add_cmd to install "maint
8010 show test-options-completion-result".
8011
8012 2019-07-03 Pedro Alves <palves@redhat.com>
8013
8014 * NEWS (New commands): Mention "with" and "maint with".
8015 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8016 (with_command, with_command_completer): New.
8017 (pipe_command): Adjust to new repeat_previous
8018 interface.
8019 (_initialize_cli_cmds): Install the "with" command and its "w"
8020 alias.
8021 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8022 declarations.
8023 * cli/cli-setshow.c (parse_cli_var_uinteger)
8024 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8025 argument strings for all var_types.
8026 (get_setshow_command_value_string): New, factored out from ...
8027 (do_show_command): ... this.
8028 * cli/cli-setshow.h: Include <string>.
8029 (get_setshow_command_value_string): Declare.
8030 * command.h (repeat_previous): Now returns const char *. Adjust
8031 comment.
8032 * maint.c: Include "cli/cli-cmds.h".
8033 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8034 (_initialize_maint_cmds): Register the "maintenance with" command.
8035 * top.c (repeat_previous): Move bits from pipe_command here:
8036 Return the saved command line, if any; error out if there's no
8037 command to relaunch.
8038
8039 2019-07-03 Pedro Alves <palves@redhat.com>
8040
8041 * NEWS (New commands): Mention "maint set/show test-settings"
8042 instead of "maint test-settings".
8043 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8044 (maintenance_test_settings_set_list): Rename to ...
8045 (maintenance_set_test_settings_list): ... this.
8046 (maintenance_test_settings_show_list): Rename to ...
8047 (maintenance_show_test_settings_list): ... this.
8048 (maintenance_test_settings_cmd): Delete.
8049 (maintenance_test_settings_set_cmd): ...
8050 (maintenance_set_test_settings_cmd): ... this.
8051 (maintenance_test_settings_show_cmd): ...
8052 (maintenance_show_test_settings_cmd): ... this.
8053 (maintenance_test_settings_show_value_cmd):
8054 (maintenance_show_test_settings_value_cmd): ... this.
8055 (_initialize_maint_test_settings): No longer install the "maint
8056 test-settings" prefix command. Rename "maint test-settings set"
8057 to "maint set test-settings", and "maint test-settings show" to
8058 "maint show test-settings". Adjust all subcommands.
8059
8060 2019-07-03 Pedro Alves <palves@redhat.com>
8061
8062 * maint-test-settings.c: Fix file's intro comment. Replace all
8063 references to "test-options" with references to "test-settings",
8064 in comments.
8065
8066 2019-07-03 Pedro Alves <palves@redhat.com>
8067
8068 * maint-test-settings.c (maintenance_test_settings_xxx)
8069 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8070 New.
8071 (maintenance_test_settings_enums): Use them.
8072 (maintenance_test_settings_enum): Default to
8073 maintenance_test_settings_xxx.
8074 (_initialize_maint_test_settings): Initialize
8075 MAINTENANCE_TEST_SETTINGS_FILENAME.
8076
8077 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8078
8079 * breakpoint.h (remove_breakpoints_inf): Change return type to
8080 void, move function documentation here.
8081 * breakpoint.c (remove_breakpoints_inf): Change return type to
8082 void, move function documentation to header.
8083
8084 2019-07-02 Pedro Alves <palves@redhat.com>
8085
8086 * NEWS (Completion improvements): Mention "info threads".
8087 * thread.c (struct info_threads_opts, info_threads_option_defs)
8088 (make_info_threads_options_def_group): New.
8089 (info_threads_command): Use gdb::option::process_options.
8090 (info_threads_command_completer): New.
8091 (_initialize_thread): Use gdb::option::build_help to build the
8092 help text for "info threads".
8093
8094 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8095
8096 * defs.h (generic_load): Move from here...
8097 * symfile.h (generic_load): ... to here. Rename name parameter
8098 to args.
8099 * symfile.c (generic_load): Add comment.
8100
8101 2019-07-01 Tom Tromey <tromey@adacore.com>
8102
8103 * dwarf2read.c
8104 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8105 declaration of without_params. Fix formatting.
8106
8107 2019-07-01 Tom Tromey <tromey@adacore.com>
8108
8109 * ada-exp.y (find_primitive_type): Update.
8110 * ada-lang.h (ada_lookup_symbol): Update.
8111 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8112 parameter.
8113 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8114
8115 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8116
8117 PR breakpoints/24541
8118 * gdbarch.c: Regenerate.
8119 * gdbarch.h: Regenerate.
8120 * gdbarch.sh: Add 'stap_adjust_register'.
8121 * i386-tdep.c: Include '<unordered_set>'.
8122 (i386_stap_adjust_register): New function.
8123 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8124 * stap-probe.c (stap_parse_register_operand): Call
8125 'gdbarch_stap_adjust_register'.
8126
8127 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8128
8129 PR python/24742
8130 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8131 * python/python.c (do_start_initialization): Use 'xmalloc'
8132 instead of 'PyMem_Malloc'.
8133
8134 2019-06-28 Tom Tromey <tromey@adacore.com>
8135
8136 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8137 for Ada.
8138
8139 2019-06-27 Tom Tromey <tromey@adacore.com>
8140
8141 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8142 objfile_key.
8143 (arm_find_mapping_symbol, arm_record_special_symbol)
8144 (_initialize_arm_tdep): Update.
8145 (arm_objfile_data_free): Remove.
8146
8147 2019-06-27 Tom Tromey <tromey@adacore.com>
8148
8149 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8150 to cp_print_static_field.
8151
8152 2019-06-26 Tom Tromey <tromey@adacore.com>
8153
8154 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8155 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8156 declare.
8157
8158 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8159
8160 * features/aarch64-core.c (create_feature_aarch64_core):
8161 Regenerate.
8162 * features/aarch64-core.xml: Add cpsr flags.
8163
8164 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8165
8166 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8167 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8168
8169 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8170
8171 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8172 field.
8173 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8174 use.
8175 (arm_record_special_symbol): Don't insert new symbol in sorted
8176 position, push it at the end.
8177
8178 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8179
8180 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8181 (arm_mapping_symbol_s): Remove.
8182 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8183 (arm_mapping_symbol_vec): New typedef.
8184 (struct arm_per_objfile): Add constructor.
8185 <section_maps>: Change type to
8186 std::unique_ptr<arm_mapping_symbol_vec[]>.
8187 (arm_compare_mapping_symbols): Remove.
8188 (arm_find_mapping_symbol): Adjust to section_maps type change.
8189 (arm_objfile_data_free): Call delete on arm_per_objfile.
8190 (arm_record_special_symbol): Adjust to section_maps type change.
8191 Allocate arm_per_objfile with new.
8192
8193 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8194
8195 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8196 with the command prefix.
8197
8198 2019-06-25 Tom Tromey <tom@tromey.com>
8199
8200 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8201 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8202
8203 2019-06-25 Tom Tromey <tom@tromey.com>
8204
8205 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8206 type.
8207 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8208 protected.
8209
8210 2019-06-25 Tom Tromey <tom@tromey.com>
8211
8212 * tui/tui-winsource.c
8213 (tui_source_window_base::set_is_exec_point_at): Add check against
8214 LOA_ADDRESS.
8215
8216 2019-06-25 Tom Tromey <tom@tromey.com>
8217
8218 * tui/tui-source.c (tui_set_source_content): Don't check before
8219 xfree.
8220 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8221
8222 2019-06-25 Tom Tromey <tom@tromey.com>
8223
8224 * tui/tui-winsource.h (tui_update_source_window_as_is)
8225 (tui_alloc_source_buffer, tui_line_is_displayed)
8226 (tui_addr_is_displayed): Change type of win_info.
8227 * tui/tui-winsource.c (tui_update_source_window_as_is)
8228 (tui_clear_source_content, tui_show_source_line)
8229 (tui_show_source_content, tui_source_window_base::refill)
8230 (tui_source_window_base::set_is_exec_point_at)
8231 (tui_source_window_base::set_is_exec_point_at)
8232 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8233 (tui_alloc_source_buffer, tui_line_is_displayed)
8234 (tui_addr_is_displayed): Change type of win_info. Update.
8235 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8236 (tui_source_window_base::do_make_visible_with_new_height):
8237 Update.
8238 * tui/tui-source.c (tui_set_source_content)
8239 (tui_set_source_content_nil)
8240 (tui_source_window::do_scroll_vertical): Update.
8241 * tui/tui-layout.c (show_layout): Update.
8242 * tui/tui-disasm.c (tui_set_disassem_content)
8243 (tui_disasm_window::do_scroll_vertical): Update.
8244 * tui/tui-data.h (tui_win_content): Remove.
8245 (struct tui_gen_win_info) <content, content_size>: Remove.
8246 (struct tui_source_element): Add initializers and destructor.
8247 (union tui_which_element, struct tui_win_element): Remove.
8248 (struct tui_source_window_base) <content>: New field.
8249 (struct tui_data_window): Remove destructor.
8250 (tui_alloc_content, tui_free_win_content)
8251 (tui_free_all_source_wins_content): Don't declare.
8252 * tui/tui-data.c (tui_initialize_static_data): Update.
8253 (init_content_element, tui_alloc_content): Remove.
8254 (~tui_gen_win_info): Update.
8255 (~tui_data_window, tui_free_all_source_wins_content)
8256 (tui_free_win_content, free_content, free_content_elements):
8257 Remove.
8258
8259 2019-06-25 Tom Tromey <tom@tromey.com>
8260
8261 * tui/tui-winsource.h (tui_clear_source_content)
8262 (tui_erase_source_content, tui_show_source_content): Change type
8263 of win_info.
8264 * tui/tui-winsource.c (tui_clear_source_content)
8265 (tui_erase_source_content, tui_show_source_content): Change type
8266 of win_info.
8267 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8268 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8269 win_info.
8270 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8271 win_info.
8272 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8273
8274 2019-06-25 Tom Tromey <tom@tromey.com>
8275
8276 * tui/tui-winsource.c (tui_clear_source_content)
8277 (tui_source_window_base::set_is_exec_point_at): Update.
8278 * tui/tui-source.c (tui_set_source_content_nil): Update.
8279 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8280 a bool.
8281 * tui/tui-data.c (init_content_element): Update.
8282
8283 2019-06-25 Tom Tromey <tom@tromey.com>
8284
8285 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8286 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8287 * tui/tui-layout.c (init_and_make_win): Update.
8288 * tui/tui.h (enum tui_win_type): Update.
8289 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8290 tui_win_is_auxillary.
8291 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8292 tui_win_is_auxillary.
8293
8294 2019-06-25 Tom Tromey <tom@tromey.com>
8295
8296 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8297 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8298 (tui_delete_data_content_windows, tui_display_all_data)
8299 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8300 Update.
8301 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8302 * tui/tui-regs.c (tui_last_regs_line_no)
8303 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8304 (tui_show_registers): Update.
8305 (tui_show_register_group): Return void. Update.
8306 (tui_display_registers_from, tui_display_reg_element_at_line)
8307 (tui_display_registers_from_line, tui_check_register_values):
8308 Update.
8309 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8310 member.
8311 (struct tui_data_window) <regs_content>: Now a std::vector.
8312 <regs_content_count>: Remove.
8313 (tui_add_content_elements, tui_free_data_content): Don't declare.
8314 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8315 (init_content_element): Remove DATA_WIN case. Add assert.
8316 (tui_add_content_elements): Remove.
8317 (tui_data_window): Update.
8318 (tui_free_data_content): Remove.
8319 (free_content_elements): Remove DATA_WIN case.
8320
8321 2019-06-25 Tom Tromey <tom@tromey.com>
8322
8323 * tui/tui-data.c (tui_data_item_window): Update.
8324 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8325 * tui/tui-windata.c (tui_display_all_data)
8326 (tui_display_data_from_line): Update.
8327 (tui_check_data_values): Remove.
8328 * tui/tui-regs.c (tui_show_register_group)
8329 (tui_display_reg_element_at_line): Update.
8330 * tui/tui-hooks.c (tui_register_changed)
8331 (tui_refresh_frame_and_register_information): Call
8332 tui_check_register_values.
8333 * tui/tui-data.h (struct tui_data_window) <data_content,
8334 data_content_count, data_type>: Remove.
8335 (enum tui_data_type): Remove.
8336
8337 * tui/tui-data.c (tui_data_window::clear_detail)
8338 (~tui_data_window): Update.
8339
8340 2019-06-25 Tom Tromey <tom@tromey.com>
8341
8342 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8343 declare.
8344 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8345 Rename from tui_first_data_item_displayed. Update.
8346 (tui_data_window::refresh_all)
8347 (tui_data_window::do_scroll_vertical): Update.
8348 * tui/tui-data.h (struct tui_data_window)
8349 <first_data_item_displayed>: Declare new method.
8350
8351 2019-06-25 Tom Tromey <tom@tromey.com>
8352
8353 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8354 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8355 contents...
8356 (tui_initialize_static_data): ...here.
8357
8358 2019-06-25 Tom Tromey <tom@tromey.com>
8359
8360 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8361 (tui_display_registers_from, tui_check_register_values): Update.
8362 (tui_display_register): Remove win_info parameter; update.
8363 (tui_get_register): Change type of parameters.
8364 * tui/tui-data.h (struct tui_data_element): Remove.
8365 (union tui_which_element) <data>: Remove.
8366 <data_window>: Change type.
8367 (struct tui_data_item_window): New.
8368 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8369 case. Add assert.
8370 (~tui_data_item_window): New destructor.
8371 (free_content_elements): Remove DATA_ITEM_WIN case.
8372
8373 2019-06-25 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8376 Remove.
8377
8378 2019-06-25 Tom Tromey <tom@tromey.com>
8379
8380 * tui/tui-data.h (struct tui_command_element): Remove.
8381 (union tui_which_element) <command>: Remove.
8382 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8383 assert.
8384 (free_content_elements): Remove CMD_WIN case.
8385
8386 2019-06-25 Tom Tromey <tom@tromey.com>
8387
8388 * tui/tui-layout.c (tui_set_layout): Update.
8389 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8390 * tui/tui-data.c (layout_def): Update.
8391
8392 2019-06-25 Tom Tromey <tom@tromey.com>
8393
8394 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8395 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8396 (tui_source_window_base::set_new_height): Update.
8397 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8398 Update.
8399 (tui_set_locator_fullname, tui_set_locator_info)
8400 (tui_show_frame_info): Update.
8401 * tui/tui-source.c (tui_set_source_content)
8402 (tui_source_is_displayed): Update.
8403 * tui/tui-layout.c (show_source_disasm_command, show_data)
8404 (show_source_or_disasm_and_command): Update.
8405 * tui/tui-disasm.c (tui_set_disassem_content)
8406 (tui_get_begin_asm_address): Update.
8407 * tui/tui-data.h (struct tui_locator_element): Remove.
8408 (union tui_which_element) <locator>: Remove.
8409 (struct tui_locator_window): New.
8410 (tui_locator_win_info_ptr): Change return type.
8411 * tui/tui-data.c (_locator): Change type.
8412 (tui_locator_win_info_ptr): Change return type.
8413 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8414 (tui_alloc_content): Add assert.
8415
8416 2019-06-25 Tom Tromey <tom@tromey.com>
8417
8418 * tui/tui-winsource.c
8419 (tui_exec_info_window::maybe_allocate_content): New method.
8420 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8421 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8422 (make_source_or_disasm_window): Add cast.
8423 * tui/tui-data.h (union tui_which_element) <simple_string>:
8424 Remove.
8425 (struct tui_source_info): New.
8426 (struct tui_source_window_base) <execution_info>: Change type.
8427 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8428 case, and add assert.
8429 (tui_alloc_content): Add assert.
8430
8431 2019-06-25 Tom Tromey <tom@tromey.com>
8432
8433 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8434 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8435 * tui/tui-data.c (tui_alloc_win_info): Remove.
8436
8437 2019-06-25 Tom Tromey <tom@tromey.com>
8438
8439 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8440 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8441 can_highlight.
8442
8443 2019-06-25 Tom Tromey <tom@tromey.com>
8444
8445 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8446 make_visible_with_new_height method.
8447 (tui_win_info::make_visible_with_new_height): New method.
8448 (tui_source_window_base::do_make_visible_with_new_height)
8449 (tui_data_window::do_make_visible_with_new_height)
8450 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8451 (make_visible_with_new_height): Remove.
8452 (tui_resize_all, tui_adjust_win_heights): Use
8453 make_visible_with_new_height method.
8454 * tui/tui-data.h (struct tui_win_info)
8455 <do_make_visible_with_new_height, make_visible_with_new_height>:
8456 New methods.
8457 (struct tui_source_window_base, struct tui_data_window)
8458 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8459 methods.
8460
8461 2019-06-25 Tom Tromey <tom@tromey.com>
8462
8463 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8464 method.
8465 (update_tab_width): Call update_tab_width method.
8466 * tui/tui-data.h (struct tui_win_info)
8467 (struct tui_source_window_base) <update_tab_width>: New methods.
8468
8469 2019-06-25 Tom Tromey <tom@tromey.com>
8470
8471 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8472 parameter.
8473 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8474 parameter.
8475 (tui_gen_win_info::make_visible): Update.
8476 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8477 parameter.
8478 * tui/tui-data.h (enum tui_box): New enum.
8479 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8480
8481 2019-06-25 Tom Tromey <tom@tromey.com>
8482
8483 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8484 init_and_make_win for EXEC_INFO_WIN.
8485 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8486 longer inline.
8487 (struct tui_win_info) <~tui_win_info>: Inline.
8488 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8489 Don't declare.
8490 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8491 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8492 Remove.
8493 (tui_initialize_static_data): Update.
8494 (~tui_gen_win_info): Handle more cleanup here.
8495 (~tui_source_window_base): Delete "execution_info".
8496 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8497
8498 2019-06-25 Tom Tromey <tom@tromey.com>
8499
8500 * tui/tui-layout.c (make_command_window): Don't set
8501 can_highlight.
8502 (show_source_disasm_command): Call the reset method.
8503 (show_data): Don't set can_highlight. Call the reset method.
8504 (tui_gen_win_info::reset): Rename from init_gen_win_info
8505 (init_and_make_win): Simplify. Return tui_gen_win_info.
8506 (show_source_or_disasm_and_command): Call the reset method.
8507 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8508 (struct tui_cmd_window): Set can_highlight.
8509
8510 2019-06-25 Tom Tromey <tom@tromey.com>
8511
8512 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8513 from make_visible.
8514 (tui_make_visible, tui_make_invisible): Rewrite.
8515 (tui_win_info::make_visible): Remove.
8516 (tui_source_window_base::make_visible): Update.
8517 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8518 method. Moved from...
8519 (struct tui_win_info) <make_visible>: ...here.
8520
8521 2019-06-25 Tom Tromey <tom@tromey.com>
8522
8523 * tui/tui-winsource.c
8524 (tui_source_window_base::do_scroll_horizontal): Remove direction
8525 parameter.
8526 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8527 direction parameter.
8528 * tui/tui-win.c (tui_win_info::forward_scroll)
8529 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8530 (tui_win_info::right_scroll): Update.
8531 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8532 direction parameter.
8533 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8534 direction parameter.
8535 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8536 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8537 Remove direction parameter.
8538 (struct tui_source_window_base, struct tui_source_window)
8539 (struct tui_disasm_window, struct tui_data_window)
8540 (struct tui_cmd_window): Update.
8541
8542 2019-06-25 Tom Tromey <tom@tromey.com>
8543
8544 * tui/tui-winsource.h (tui_set_exec_info_content)
8545 (tui_show_exec_info_content, tui_erase_exec_info_content)
8546 (tui_clear_exec_info_content, tui_update_exec_info): Change
8547 argument to tui_source_window_base.
8548 * tui/tui-winsource.c (tui_set_exec_info_content)
8549 (tui_show_exec_info_content, tui_erase_exec_info_content)
8550 (tui_clear_exec_info_content, tui_update_exec_info): Change
8551 argument to tui_source_window_base.
8552
8553 2019-06-25 Tom Tromey <tom@tromey.com>
8554
8555 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8556 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8557
8558 2019-06-25 Tom Tromey <tom@tromey.com>
8559
8560 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8561 check.
8562
8563 2019-06-25 Tom Tromey <tom@tromey.com>
8564
8565 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8566 type to void.
8567 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8568 type to void.
8569 * tui/tui-source.c (tui_set_source_content): Update.
8570 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8571
8572 2019-06-25 Tom Tromey <tom@tromey.com>
8573
8574 * tui/tui-win.c (window_name_completer, tui_set_focus)
8575 (tui_all_windows_info): Use name method.
8576 * tui/tui-data.h (struct tui_gen_win_info)
8577 (struct tui_source_window, struct tui_disasm_window)
8578 (struct tui_data_window, struct tui_cmd_window) <name>: New
8579 method.
8580 (tui_win_name): Don't declare.
8581 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8582 (tui_win_name): Remove.
8583
8584 2019-06-25 Tom Tromey <tom@tromey.com>
8585
8586 * tui/tui-winsource.h (tui_update_source_window)
8587 (tui_update_source_window_as_is): Change parameter type.
8588 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8589 to be a tui_source_window_base.
8590 (tui_update_source_window_as_is): Likewise.
8591 * tui/tui-win.c (make_visible_with_new_height): Update.
8592
8593 2019-06-25 Tom Tromey <tom@tromey.com>
8594
8595 * tui/tui-winsource.c (tui_erase_source_content)
8596 (tui_show_source_content, tui_show_exec_info_content)
8597 (tui_erase_exec_info_content): Use refresh_window method.
8598 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8599 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8600 from tui_refresh_win.
8601 (tui_data_window::refresh_window): New method.
8602 (tui_win_info::refresh, tui_source_window_base::refresh)
8603 (tui_refresh_all): Use refresh_window method.
8604 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8605 method.
8606 * tui/tui-regs.c (tui_display_register): Call refresh_window
8607 method.
8608 * tui/tui-layout.c (show_source_disasm_command)
8609 (show_source_or_disasm_and_command): Call refresh_window method.
8610 * tui/tui-data.h (struct tui_gen_win_info)
8611 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8612 New method.
8613
8614 2019-06-25 Tom Tromey <tom@tromey.com>
8615
8616 * tui/tui.c (tui_rl_other_window, tui_enable)
8617 (tui_is_window_visible, tui_get_command_dimension): Update.
8618 * tui/tui-winsource.c (tui_update_source_window_as_is)
8619 (tui_clear_source_content, tui_erase_source_content)
8620 (tui_show_source_line, tui_source_window_base::refill)
8621 (tui_source_window_base::do_scroll_horizontal)
8622 (tui_source_window_base::set_is_exec_point_at)
8623 (tui_update_breakpoint_info, tui_set_exec_info_content)
8624 (tui_alloc_source_buffer, tui_line_is_displayed)
8625 (tui_addr_is_displayed): Update.
8626 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8627 (tui_check_and_display_highlight_if_needed)
8628 (tui_win_info::make_visible, tui_win_info::refresh)
8629 (tui_refresh_all): Update.
8630 * tui/tui-windata.c (tui_first_data_item_displayed)
8631 (tui_delete_data_content_windows, tui_erase_data_content)
8632 (tui_display_all_data, tui_data_window::refresh_all)
8633 (tui_check_data_values): Update.
8634 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8635 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8636 (tui_win_info::backward_scroll, tui_refresh_all_win)
8637 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8638 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8639 (tui_source_window_base::set_new_height)
8640 (tui_data_window::set_new_height)
8641 (make_invisible_and_set_new_height)
8642 (make_visible_with_new_height, new_height_ok)
8643 (parse_scrolling_args): Update.
8644 * tui/tui-stack.c (tui_show_frame_info): Update.
8645 * tui/tui-source.c (tui_set_source_content)
8646 (tui_set_source_content_nil, tui_source_is_displayed)
8647 (tui_source_window::do_scroll_vertical): Update.
8648 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8649 (tui_display_registers_from, tui_display_reg_element_at_line)
8650 (tui_check_register_values, tui_reg_command): Update.
8651 * tui/tui-layout.c (tui_default_win_height)
8652 (show_source_disasm_command, show_data, init_and_make_win)
8653 (show_source_or_disasm_and_command): Update.
8654 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8655 (tui_redisplay_readline, tui_mld_flush)
8656 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8657 (tui_getc): Update.
8658 * tui/tui-disasm.c (tui_set_disassem_content)
8659 (tui_disasm_window::do_scroll_vertical): Update.
8660 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8661 Now virtual.
8662 (struct tui_win_info): Derive from tui_gen_win_info.
8663 <~tui_win_info>: Mark as override.
8664 <generic>: Remove member.
8665 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8666 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8667 (~tui_data_window, ~tui_win_info)
8668 (tui_free_all_source_wins_content): Update.
8669 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8670
8671 2019-06-25 Tom Tromey <tom@tromey.com>
8672
8673 * tui/tui-layout.c (init_and_make_win): Use new.
8674 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8675 destructor, initializers.
8676 (tui_alloc_generic_win_info): Don't declare.
8677 * tui/tui-data.c (_locator): Add argument to constructor.
8678 (source_win, disasm_win): New globals.
8679 (exec_info): Remove.
8680 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8681 Update.
8682 (tui_alloc_generic_win_info): Remove.
8683 (init_content_element): Use new.
8684 (tui_win_info::tui_win_info): Update.
8685 (free_content_elements) <case DATA_WIN>: Use delete.
8686
8687 2019-06-25 Tom Tromey <tom@tromey.com>
8688
8689 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8690 * tui/tui-windata.c (tui_first_data_item_displayed)
8691 (tui_delete_data_content_windows): Update.
8692 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8693 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8694 (tui_display_registers_from, tui_check_register_values): Update.
8695 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8696 pointer.
8697 * tui/tui-data.c (init_content_element): Update. Allocate the new
8698 window.
8699 (tui_free_data_content): Update.
8700 (free_content_elements) <case DATA_WIN>: Free the window.
8701
8702 2019-06-25 Tom Tromey <tom@tromey.com>
8703
8704 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8705 Update.
8706 * tui/tui-layout.c (make_command_window)
8707 (show_source_disasm_command, show_data, init_and_make_win)
8708 (show_source_or_disasm_and_command): Update.
8709 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8710 method.
8711 <can_highight, is_highlighted>: Now bool.
8712 (tui_set_win_highlight): Don't declare.
8713 * tui/tui-data.c (tui_set_win_highlight): Remove.
8714
8715 2019-06-25 Tom Tromey <tom@tromey.com>
8716
8717 * tui/tui-wingeneral.c (make_visible): Remove check of window
8718 type.
8719
8720 2019-06-25 Tom Tromey <tom@tromey.com>
8721
8722 * tui/tui-win.c (tui_win_info::max_height)
8723 (tui_cmd_window::max_height): New methods.
8724 (new_height_ok): Call max_height.
8725 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8726 <max_height>: New method.
8727
8728 2019-06-25 Tom Tromey <tom@tromey.com>
8729
8730 * tui/tui-win.c (tui_source_window_base::set_new_height)
8731 (tui_data_window::set_new_height): New methods.
8732 (make_invisible_and_set_new_height): Call set_new_height method.
8733 * tui/tui-data.h (struct tui_win_info)
8734 (struct tui_source_window_base, struct tui_data_window)
8735 <set_new_height>: New method.
8736
8737 2019-06-25 Tom Tromey <tom@tromey.com>
8738
8739 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8740 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8741 tui_refresh_data_win.
8742 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8743 method.
8744 (tui_refresh_all_win): Call the refresh_all method.
8745 (tui_set_focus): Likewise.
8746 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8747 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8748 Likewise.
8749
8750 2019-06-25 Tom Tromey <tom@tromey.com>
8751
8752 * tui/tui-winsource.h (tui_refill_source_window)
8753 (tui_set_is_exec_point_at): Don't declare.
8754 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8755 (tui_source_window_base::refill): Rename from
8756 tui_refill_source_window.
8757 (tui_source_window_base::do_scroll_horizontal): Update.
8758 (tui_source_window_base::set_is_exec_point_at): Rename from
8759 tui_set_is_exec_point_at.
8760 (tui_update_all_breakpoint_info): Update.
8761 * tui/tui-stack.c (tui_show_frame_info): Update.
8762 * tui/tui-layout.c (show_data): Add cast.
8763 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8764 * tui/tui-data.h (struct tui_source_window_base) <refill,
8765 set_is_exec_point_at>: New methods.
8766 (tui_source_windows, tui_add_to_source_windows): Update types.
8767 (tui_add_to_source_windows): Remove redundant declaration.
8768 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8769 (tui_source_windows): Change return type.
8770 (tui_clear_source_windows_detail): Update.
8771 (tui_add_to_source_windows): Change type of parameter.
8772 (tui_free_all_source_wins_content): Update.
8773
8774 2019-06-25 Tom Tromey <tom@tromey.com>
8775
8776 * tui/tui-wingeneral.c (tui_win_info::refresh)
8777 (tui_source_window_base::refresh): New methods.
8778 (tui_refresh_all): Call the refresh method.
8779 * tui/tui-data.h (struct tui_win_info)
8780 (struct tui_source_window_base) <refresh>: New method.
8781
8782 2019-06-25 Tom Tromey <tom@tromey.com>
8783
8784 * tui/tui.h (tui_is_window_visible): Return bool.
8785 * tui/tui.c (tui_is_window_visible): Return bool.
8786 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8787 (tui_make_visible, tui_make_invisible)
8788 (tui_win_info::make_visible)
8789 (tui_source_window_base::make_visible, make_all_visible)
8790 (tui_make_all_visible, tui_make_all_invisible): Update.
8791 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8792 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8793 bool.
8794 (struct tui_win_info, struct tui_source_window_base)
8795 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8796 * tui/tui-data.c (tui_init_generic_part): Update.
8797
8798 2019-06-25 Tom Tromey <tom@tromey.com>
8799
8800 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8801 (tui_source_window_base::make_visible): New methods.
8802 (make_all_visible): Make method call.
8803 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8804 (struct tui_source_window_base, struct tui_cmd_window): Override
8805 make_visible.
8806 (tui_win_is_source_type): Don't declare.
8807 * tui/tui-data.c (tui_win_is_source_type): Remove.
8808
8809 2019-06-25 Tom Tromey <tom@tromey.com>
8810
8811 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8812 NULL check.
8813
8814 2019-06-25 Tom Tromey <tom@tromey.com>
8815
8816 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8817 Inline constructor. Add initializers for members.
8818 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8819 constructors; now inline in class.
8820
8821 2019-06-25 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-regs.c (tui_show_registers): Update.
8824 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8825 bool.
8826 * tui/tui-data.c (tui_data_window::clear_detail)
8827 (tui_data_window): Update.
8828
8829 2019-06-25 Tom Tromey <tom@tromey.com>
8830
8831 * tui/tui-windata.c (tui_display_all_data)
8832 (tui_display_data_from_line, tui_display_data_from)
8833 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8834 Update.
8835 * tui/tui-regs.c (tui_last_regs_line_no)
8836 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8837 (tui_show_registers, tui_show_register_group)
8838 (tui_display_registers_from, tui_display_reg_element_at_line)
8839 (tui_display_registers_from_line, tui_check_register_values)
8840 (tui_reg_next, tui_reg_prev): Update.
8841 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8842 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8843 tui_data_window.
8844 (struct tui_win_info) <detail>: Remove. Add new fields from
8845 tui_data_info.
8846 (TUI_DATA_WIN): Add cast.
8847 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8848 (~tui_data_window): Simplify.
8849
8850 2019-06-25 Tom Tromey <tom@tromey.com>
8851
8852 * tui/tui-layout.c (show_source_disasm_command)
8853 (show_source_or_disasm_and_command): Update.
8854 * tui/tui-io.c (update_cmdwin_start_line)
8855 (tui_redisplay_readline): Update.
8856 * tui/tui-data.h (struct tui_command_info): Remove.
8857 (struct tui_win_info) <detail>: Remove command_info member.
8858 (struct tui_data_window) <start_line>: New member, from
8859 tui_command_info.
8860 (TUI_CMD_WIN): Add casts.
8861
8862 2019-06-25 Tom Tromey <tom@tromey.com>
8863
8864 * tui/tui-winsource.c (tui_update_source_window)
8865 (tui_refill_source_window)
8866 (tui_source_window_base::do_scroll_horizontal)
8867 (tui_update_breakpoint_info, tui_set_exec_info_content)
8868 (tui_show_exec_info_content, tui_erase_exec_info_content)
8869 (tui_clear_exec_info_content): Update.
8870 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8871 Update.
8872 * tui/tui-win.c (make_invisible_and_set_new_height)
8873 (make_visible_with_new_height): Update.
8874 * tui/tui-source.c (tui_set_source_content)
8875 (tui_show_symtab_source): Update.
8876 * tui/tui-layout.c (extract_display_start_addr)
8877 (show_source_disasm_command, show_data)
8878 (make_source_or_disasm_window)
8879 (show_source_or_disasm_and_command): Update.
8880 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8881 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8882 "gdbarch".
8883 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8884 to tui_source_window_base.
8885 (struct tui_win_info) <detail>: Remove source_info member.
8886 (struct tui_source_window_base) <has_locator>: Inline.
8887 Move contents from tui_source_info; rename has_locator member to
8888 m_has_locator.
8889 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8890 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8891 header file.
8892 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8893 Simplify.
8894 (tui_free_all_source_wins_content): Cast to
8895 tui_source_window_base.
8896
8897 2019-06-25 Tom Tromey <tom@tromey.com>
8898
8899 * tui/tui-win.c (make_invisible_and_set_new_height)
8900 (make_visible_with_new_height): Call has_locator method.
8901 * tui/tui-layout.c (show_source_disasm_command, show_data)
8902 (show_source_or_disasm_and_command): Update for bool change.
8903 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8904 (tui_win_info) <has_locator>: New method.
8905 (struct tui_source_window_base) <has_locator>: New method.
8906 (tui_win_has_locator): Don't declare.
8907 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8908 from tui_win_has_locator.
8909 (tui_source_window_base): Use false, not FALSE.
8910
8911 2019-06-25 Tom Tromey <tom@tromey.com>
8912
8913 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8914 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8915 clear_detail method directly.
8916 (tui_clear_win_detail): Remove.
8917
8918 2019-06-25 Tom Tromey <tom@tromey.com>
8919
8920 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8921 "this", not TUI_DISASM_WIN.
8922
8923 2019-06-25 Tom Tromey <tom@tromey.com>
8924
8925 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8926 declare.
8927 * tui/tui-winsource.c
8928 (tui_source_window_base::do_scroll_horizontal): Rename from
8929 tui_horizontal_source_scroll.
8930 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8931 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8932 from tui_vertical_data_scroll.
8933 * tui/tui-win.h (tui_scroll): Don't declare.
8934 * tui/tui-win.c (tui_win_info::forward_scroll)
8935 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8936 (tui_win_info::right_scroll): Rename and update.
8937 (tui_scroll_forward_command, tui_scroll_backward_command)
8938 (tui_scroll_left_command, tui_scroll_right_command): Update.
8939 (tui_scroll): Remove.
8940 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8941 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8942 from tui_vertical_source_scroll.
8943 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8944 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8945 from tui_vertical_disassem_scroll.
8946 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8947 do_scroll_horizontal>: New methods.
8948 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8949 Likewise.
8950 (struct tui_source_window_base): Add do_scroll_horizontal.
8951 (struct tui_source_window, struct tui_disasm_window): Add
8952 do_scroll_vertical.
8953 (struct tui_data_window, struct tui_cmd_window): Add
8954 do_scroll_horizontal and do_scroll_vertical.
8955 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8956
8957 2019-06-25 Tom Tromey <tom@tromey.com>
8958
8959 * tui/tui-data.h (struct tui_source_window_base): New struct.
8960 (struct tui_source_window): Derive from tui_source_window_base.
8961 (struct tui_disasm_window): New struct.
8962 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8963 from tui_source_window::clear_detail.
8964 (tui_source_window_base): Rename from tui_source_window.
8965 (~tui_source_window_base): Rename from ~tui_source_window.
8966 (tui_alloc_win_info): Create a tui_disasm_window.
8967
8968 2019-06-25 Tom Tromey <tom@tromey.com>
8969
8970 * tui/tui-data.h (struct tui_source_window)
8971 (struct tui_data_window): Declare destructors.
8972 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8973 destructors.
8974 (tui_win_info): Simplify.
8975
8976 2019-06-25 Tom Tromey <tom@tromey.com>
8977
8978 * tui/tui-winsource.c (tui_display_main)
8979 (tui_update_source_windows_with_addr)
8980 (tui_update_all_breakpoint_info): Update.
8981 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8982 (new_height_ok, parse_scrolling_args): Update.
8983 * tui/tui-stack.c (tui_show_frame_info): Update.
8984 * tui/tui-data.h (struct tui_list): Remove.
8985 (tui_source_windows): Return a reference to a std::vector.
8986 * tui/tui-data.c (source_windows): Now a std::vector.
8987 (tui_source_windows): Change return type.
8988 (tui_clear_source_windows): Rewrite.
8989 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8990 (tui_free_all_source_wins_content): Rewrite.
8991
8992 2019-06-25 Tom Tromey <tom@tromey.com>
8993
8994 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8995 (struct tui_data_window, struct tui_cmd_window): Declare
8996 clear_detail method.
8997 * tui/tui-data.c (tui_source_window::clear_detail)
8998 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8999 methods.
9000 (tui_clear_win_detail): Simplify.
9001
9002 2019-06-25 Tom Tromey <tom@tromey.com>
9003
9004 * tui/tui-layout.c (make_source_window, make_disasm_window)
9005 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9006 Return the new window.
9007 (show_source_disasm_command, show_data)
9008 (show_source_or_disasm_and_command): Update.
9009
9010 2019-06-25 Tom Tromey <tom@tromey.com>
9011
9012 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9013 parameter. Return the new window.
9014 (show_source_disasm_command): Update and remove NULL check.
9015 (show_source_or_disasm_and_command): Update.
9016
9017 2019-06-25 Tom Tromey <tom@tromey.com>
9018
9019 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9020
9021 2019-06-25 Tom Tromey <tom@tromey.com>
9022
9023 * tui/tui-data.h (struct tui_win_info): Make constructor
9024 protected. Make destructor virtual. Add initializers.
9025 (tui_source_window, tui_data_window, tui_cmd_window): New
9026 classes.
9027 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9028 constructor. Add "type" parameter.
9029 (tui_source_window, tui_data_window, tui_cmd_window): New
9030 constructors.
9031 (tui_alloc_win_info): Instantiate the appropriate subclass.
9032
9033 2019-06-25 Tom Tromey <tom@tromey.com>
9034
9035 * tui/tui-win.c (tui_resize_all): Use delete.
9036 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9037 destructor.
9038 (tui_free_window): Don't declare.
9039 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9040 Update.
9041
9042 2019-06-25 Tom Tromey <tom@tromey.com>
9043
9044 * tui/tui-data.h (struct tui_win_info): Add constructor.
9045 * tui/tui-data.c (tui_alloc_win_info): Use new.
9046 (tui_free_window): Use delete.
9047
9048 2019-06-22 Tom Tromey <tom@tromey.com>
9049
9050 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9051 declare.
9052 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9053
9054 2019-06-22 Tom Tromey <tom@tromey.com>
9055
9056 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9057 declare.
9058 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9059
9060 2019-06-22 Tom de Vries <tdevries@suse.de>
9061
9062 * dwarf2read.c (create_addrmap_from_aranges)
9063 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9064 instead of '%zu'.
9065
9066 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * dwarf2read.h (dwarf2_section_info_def): Remove.
9069 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9070 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9071 std::vector<dwarf2_section_info>.
9072 (struct dwo_file) <~dwo_file>: Remove.
9073 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9074 types field.
9075 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9076 (dwarf2_read_debug_names): Likewise.
9077 (create_debug_types_hash_table): Change parameter type to
9078 array_view, adjust code accordingly.
9079 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9080 (partial_die_info::fixup): Likewise.
9081 (determine_prefix): Likewise.
9082 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9083
9084 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9085
9086 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9087 gdb_bfd_ref_ptr.
9088 <~dwo_file>: Remove call to gdb_bfd_unref.
9089 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9090 gdb_bfd_ref_ptr::get.
9091
9092 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9093
9094 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9095 type to htab_up.
9096 * dwarf2read.c (struct dwo_file): Initialize fields.
9097 <~dwo_file>: New.
9098 (free_dwo_file): Remove, move content to ~dwo_file.
9099 (struct dwo_file_deleter): Remove.
9100 (dwo_file_up>: Remove custom deleter.
9101 (free_dwo_files): Remove.
9102 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9103 dwo_files.
9104 (process_skeletonless_type_units): Call unique_ptr::get.
9105 (allocate_dwo_file_hash_table): Add deleter to created hash
9106 table. Change return type to htab_up.
9107 (lookup_dwo_file_slot): Don't memset dwo_file, call
9108 unique_ptr::get.
9109 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9110 (create_dwo_unit_in_dwp_v2): Likewise.
9111 (open_and_init_dwo_file): Likewise.
9112 (free_dwo_file_from_slot): Remove.
9113
9114 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9115
9116 * dwarf2read.h (struct dwarf2_section_info) <readin,
9117 is_virtual>: Change type to bool.
9118 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9119 true instead of 1.
9120
9121 2019-06-19 Tom Tromey <tom@tromey.com>
9122
9123 * tui/tui-data.h (tui_init_content_element): Don't declare.
9124
9125 2019-06-19 Tom Tromey <tom@tromey.com>
9126
9127 * tui/tui-data.h (tui_init_win_info): Don't declare.
9128
9129 2019-06-19 Tom de Vries <tdevries@suse.de>
9130
9131 * dwarf2read.h (abstract_to_concrete): Change type to
9132 std::unordered_map<sect_offset, std::vector<sect_offset>,
9133 gdb::hash_enum<sect_offset>>.
9134
9135 2019-06-19 Tom Tromey <tromey@adacore.com>
9136
9137 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9138 EVAL_AVOID_SIDE_EFFECTS specially.
9139
9140 2019-06-19 Tom Tromey <tromey@adacore.com>
9141
9142 * source-cache.c (highlighter): New global.
9143 (source_cache::get_source_lines): Create a highlighter on demand.
9144
9145 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9146
9147 * defs.h (deprecated_interactive_hook): Delete declaration.
9148 * interps.c (clear_interpreter_hooks): Remove use of
9149 deprecated_interactive_hook.
9150 * top.c (deprecated_interactive_hook): Delete definition.
9151 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9152
9153 2019-06-18 Tom de Vries <tdevries@suse.de>
9154
9155 PR gdb/24515
9156 * dwarf2read.h (abstract_to_concrete): Change type from
9157 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9158 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9159 * dwarf2read.c (read_variable): Update.
9160 (dwarf2_fetch_die_loc_sect_off): Update.
9161
9162 2019-06-17 Tom de Vries <tdevries@suse.de>
9163
9164 PR gdb/24617
9165 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9166 accessing parent[parent_len - 1].
9167
9168 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9169
9170 PR gdb/24364
9171 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9172 call dtrace_process_dof with NULL dof.
9173
9174 2019-06-16 Tom de Vries <tdevries@suse.de>
9175
9176 PR gdb/24445
9177 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9178
9179 2019-06-16 Tom Tromey <tom@tromey.com>
9180
9181 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9182 (make_all_visible): Use address of member.
9183
9184 2019-06-16 Tom Tromey <tom@tromey.com>
9185
9186 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9187 (tui_free_window, free_content, free_content_elements): Remove
9188 unnecessary cast.
9189 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9190 cast.
9191 * tui/tui-regs.c (tui_show_register_group)
9192 (tui_display_registers_from, tui_display_reg_element_at_line):
9193 Remove unnecessary cast.
9194
9195 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9196
9197 * linux-nat.c (normal_mask): Delete.
9198 (_initialize_linux_nat): Don't initialise normal_mask.
9199
9200 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9201
9202 PR gdb/24445
9203 * dwarf-index-write.h (write_psymtabs_to_index): Add
9204 dwz_basename parameter.
9205 * dwarf-index-write.c (write_gdbindex): Move file writing to
9206 write_gdbindex_1. Change return type void.
9207 (assert_file_size): Move up, remove filename parameter.
9208 (write_gdbindex_1): New function.
9209 (write_debug_names): Change return type to void, call
9210 assert_file_size.
9211 (struct index_wip_file): New struct.
9212 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9213 file logic to index_wip_file. Write index for dwz file if
9214 needed.
9215 (save_gdb_index_command): Pass basename of dwz file, if present.
9216 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9217 build-id of dwz file, if present.
9218 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9219 (dwarf2_get_dwz_file): Likewise.
9220 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9221 (dwarf2_get_dwz_file): Likewise.
9222
9223 2019-06-16 Tom Tromey <tom@tromey.com>
9224
9225 * coffread.c (process_coff_symbol): Use xstrdup.
9226 * value.c (create_internalvar): Use xstrdup.
9227
9228 2019-06-16 Tom Tromey <tom@tromey.com>
9229
9230 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9231 * breakpoint.c (stopin_command, stopat_command)
9232 (until_break_command, decode_location_default): Remove unnecessary
9233 cast.
9234 * utils.c (subset_compare): Remove unnecessary cast.
9235 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9236 cast.
9237 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9238 cast.
9239 * infcmd.c (path_command): Remove unnecessary cast.
9240 * coffread.c (decode_type): Remove unnecessary cast.
9241 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9242 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9243 * tui/tui-stack.c (tui_show_locator_content)
9244 (tui_show_frame_info): Remove unnecessary cast.
9245 * tui/tui-win.c (tui_scroll_forward_command)
9246 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9247 (parse_scrolling_args): Remove unnecessary cast.
9248 * tui/tui-data.c (init_win_info, tui_del_window)
9249 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9250 (free_content_elements): Remove unnecessary cast.
9251 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9252 unnecessary cast.
9253 * tui/tui-source.c (tui_set_source_content)
9254 (tui_vertical_source_scroll): Remove unnecessary cast.
9255 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9256 cast.
9257 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9258 * tui/tui-regs.c (tui_display_registers_from)
9259 (tui_display_register): Remove unnecessary cast.
9260 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9261 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9262 (make_visible): Remove unnecessary cast.
9263 * tui/tui-winsource.c (tui_erase_source_content)
9264 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9265 unnecessary cast.
9266 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9267 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9268 * stabsread.c (read_type, read_array_type, read_range_type):
9269 Remove unnecessary cast.
9270 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9271 (parse_symbol, parse_type, upgrade_type, parse_external)
9272 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9273 unnecessary cast.
9274 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9275
9276 2019-06-16 Tom Tromey <tom@tromey.com>
9277
9278 * tui/tui-data.c (tui_alloc_generic_win_info)
9279 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9280 checks.
9281
9282 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9283 Andrew Burgess <andrew.burgess@embecosm.com>
9284
9285 * f-typeprint.c (f_print_type): Don't return early for not
9286 associated or not allocated types.
9287 (f_type_print_varspec_suffix): Add print_rank parameter and print
9288 ranks of array types in case they dangling.
9289 (f_type_print_base): Add print_rank parameter.
9290
9291 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9292
9293 * NEWS: Mention new MI commands.
9294 * break-catch-throw.c (enum exception_event_kind): Move to
9295 breakpoint.h.
9296 (print_mention_exception_catchpoint): Output text as a single
9297 message.
9298 (catch_exception_command_1): Rename to...
9299 (catch_exception_event): ...this, make non-static, update header
9300 command, and change some parameter types.
9301 (catch_catch_command): Update for changes to
9302 catch_exception_command_1.
9303 (catch_throw_command): Likewise.
9304 (catch_rethrow_command): Likewise.
9305 * breakpoint.c (enum exception_event_kind): Delete.
9306 * breakpoint.h (enum exception_event_kind): Moved here from
9307 break-catch-throw.c.
9308 (catch_exception_event): Declare.
9309 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9310 (mi_cmd_catch_throw): New function.
9311 (mi_cmd_catch_rethrow): New function.
9312 (mi_cmd_catch_catch): New function.
9313 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9314 'catch-catch' entries.
9315 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9316 (mi_cmd_catch_rethrow): Declare.
9317 (mi_cmd_catch_catch): Declare.
9318
9319 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9320
9321 * annotate.c (annotate_source_line): Change return type to void,
9322 update implementation to match.
9323 * annotate.h (annotate_source_line): Change return type to void,
9324 update header comment.
9325 * stack.c (print_frame_info): Don't change what frame information
9326 is printed based on whether annotations are on or not.
9327
9328 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9329
9330 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9331 (annotate_source): Make static.
9332 (annotate_source_line): Moved from source.c and renamed from
9333 identify_source_line. Update the return type.
9334 * annotate.h (annotate_source): Delete declaration.
9335 (annotate_source_line): Declaration moved from source.h, and
9336 renamed from identify_source_line. Return type updated.
9337 * source.c (identify_source_line): Moved to annotate.c and renamed
9338 to annotate_source_line.
9339 (info_line_command): Remove check of annotation_level.
9340 * source.h (identify_source_line): Move declaration to annotate.h
9341 and rename to annotate_source_line.
9342 * stack.c: Add 'annotate.h' include.
9343 (print_frame_info): Remove check of annotation_level before
9344 calling annotate_source_line.
9345
9346 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9347
9348 * source-cache.c (source_cache::get_plain_source_lines): Use
9349 open_source_file_with_line_charpos instead of just
9350 open_source_file, remove call to find_source_lines.
9351 (source_cache::get_source_lines): Likewise.
9352 * source.c (find_source_lines): Make static.
9353 (get_filename_and_charpos): Renamed into...
9354 (open_source_file_with_line_charpos): ..this along with changes to
9355 return a scoped_fd, and some other minor clean ups.
9356 (identify_source_line): Use open_source_file_with_line_charpos.
9357 (search_command_helper): Use open_source_file_with_line_charpos
9358 instead of just open_source_file, remove call to
9359 find_source_lines.
9360 * source.h (open_source_file_with_line_charpos): Declare new
9361 function.
9362 (find_source_lines): Delete declaration.
9363
9364 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9365
9366 * source.c (get_filename_and_charpos): Remove fullname
9367 parameter.
9368 (identify_source_line): Update call to get_filename_and_charpos.
9369
9370 2019-06-14 Tom Tromey <tromey@adacore.com>
9371
9372 PR gdb/24502:
9373 * ui-style.h (skip_ansi_escape): Update comment.
9374 * ui-file.h (class no_terminal_escape_file): New class.
9375 * ui-file.c (no_terminal_escape_file::write)
9376 (no_terminal_escape_file::puts): New methods.
9377 * cli/cli-logging.c (handle_redirections): Use
9378 no_terminal_escape_file.
9379
9380 2019-06-14 Tom Tromey <tromey@adacore.com>
9381
9382 * NEWS: Move convenience variable news above Python news.
9383
9384 2019-06-14 Tom Tromey <tom@tromey.com>
9385
9386 * gnulib: Move directory to top-level.
9387 * configure.ac: Don't configure gnulib.
9388 * configure: Rebuild.
9389 * common/common-defs.h: Use new path to gnulib.
9390 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9391 (GNULIB_H): Remove.
9392 (INCGNU): Look in new gnulib location.
9393 (HFILES_NO_SRCDIR): Remove gnulib files.
9394 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9395 (generated_files): Remove GNULIB_H.
9396 ($(LIBGNU), all-lib): Remove targets.
9397 (distclean): Don't mention GNULIB_BUILDDIR.
9398 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9399
9400 2019-06-14 Tom Tromey <tromey@adacore.com>
9401
9402 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9403 Warn if symbol file does not provide any symbols.
9404
9405 2019-06-14 Tom Tromey <tromey@adacore.com>
9406
9407 * source.c (find_and_open_source): Respect basenames_may_differ.
9408
9409 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9410
9411 * annotate.c (annotate_breakpoints_invalid): Make use of
9412 scoped_restore_terminal_state.
9413 (annotate_frames_invalid): Likewise.
9414
9415 2019-06-14 Tom Tromey <tromey@adacore.com>
9416
9417 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9418 allow assignment to an internalvar.
9419
9420 2019-06-14 Tom Tromey <tromey@adacore.com>
9421
9422 * ada-lex.l: Allow "_" in attribute names.
9423
9424 2019-06-14 Tom Tromey <tromey@adacore.com>
9425
9426 PR gdb/24653:
9427 * regcache.c (registers_changed): Don't call alloca.
9428 * top.c (execute_command): Don't call alloca.
9429
9430 2019-06-13 Pedro Alves <palves@redhat.com>
9431
9432 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9433 'expression'. When parsing an expression, error out if there's
9434 junk after "unlimited".
9435 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9436 (do_set_command): Adjust calls to is_unlimited_literal.
9437
9438 2019-06-13 Pedro Alves <palves@redhat.com>
9439
9440 * compile/compile.c (make_compile_options_def_group): Add braces
9441 around array_view initializer.
9442 * thread.c (make_thread_apply_all_options_def_group)
9443 (make_thread_apply_all_options_def_group): Likewise.
9444
9445 2019-06-13 Pedro Alves <palves@redhat.com>
9446
9447 * NEWS (New commands): Mention "maint test-options
9448 require-delimiter", "maint test-options unknown-is-error", "maint
9449 test-options unknown-is-operand" and "maint show
9450 test-options-completion-result".
9451 (New command options, command completion): New section.
9452 (Completion improvements): New section.
9453 Mention that you can abbreviate "unlimited".
9454
9455 2019-06-13 Pedro Alves <palves@redhat.com>
9456
9457 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9458 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9459 * unittests/cli-utils-selftests.c (test_parse_flags)
9460 (test_parse_flags_qcs): Delete.
9461 (test_cli_utils): Don't call deleted functions.
9462
9463 2019-06-13 Pedro Alves <palves@redhat.com>
9464
9465 * thread.c: Include "cli/cli-option.h".
9466 (tp_array_compar_ascending): Global.
9467 (tp_array_compar): Delete function.
9468 (tp_array_compar_ascending, tp_array_compar_descending): New
9469 functions.
9470 (ascending_option_def, qcs_flag_option_def)
9471 (thr_qcs_flags_option_defs)
9472 (make_thread_apply_all_options_def_group)
9473 (make_thread_apply_options_def_group): New.
9474 (thread_apply_all_command): Use gdb::option::process_options.
9475 (thread_apply_command_completer)
9476 (thread_apply_all_command_completer): New.
9477 (thread_apply_command): Use gdb::option::process_options.
9478 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9479 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9480 to generate help text of "thread apply". Adjust "taas"'s help.
9481 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9482 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9483
9484 2019-06-13 Pedro Alves <palves@redhat.com>
9485
9486 * thread.c (thread_apply_command): Check for invalid TID with
9487 isdigit instead of !isalpha.
9488
9489 2019-06-13 Pedro Alves <palves@redhat.com>
9490
9491 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9492 (validate_flags_qcs): New.
9493 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9494 (validate_flags_qcs): Declare.
9495 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9496 (make_frame_apply_options_def_group): New.
9497 (frame_apply_command_count): Process options with
9498 gdb::option::process_options.
9499 (frame_apply_completer): New.
9500 (frame_apply_level_completer, frame_apply_all_completer)
9501 (frame_apply_completer): New.
9502 (_initialize_stack): Update help of "frame apply", "frame apply
9503 level", "frame apply all" and "faas" to mention supported options
9504 and install command completers.
9505 * stack.h (frame_apply_all_completer): Declare.
9506 * thread.c: Include "stack.h".
9507 (tfaas_command): Add "--".
9508 (_initialize_thread): Update help "tfaas" to mention supported
9509 options and install command completer.
9510
9511 2019-06-13 Pedro Alves <palves@redhat.com>
9512
9513 * completer.c (complete_nested_command_line): New.
9514 (gdb_completion_word_break_characters_throw): Add assertion.
9515 * completer.h (complete_nested_command_line): Declare.
9516
9517 2019-06-13 Pedro Alves <palves@redhat.com>
9518
9519 * stack.c (parse_backtrace_qualifiers): New.
9520 (backtrace_command): Use it.
9521 (backtrace_command_completer): Complete on qualifiers.
9522
9523 2019-06-13 Pedro Alves <palves@redhat.com>
9524
9525 * frame.c: Include "cli/cli-option.h.
9526 (user_set_backtrace_options): New.
9527 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9528 Delete.
9529 (get_prev_frame): Adjust.
9530 (boolean_option_def, uinteger_option_def)
9531 (set_backtrace_option_defs): New.
9532 (_initialize_frame): Adjust and use
9533 gdb::option::add_setshow_cmds_for_options to install "set
9534 backtrace past-main" and "set backtrace past-entry".
9535 * frame.h: Include "cli/cli-option.h".
9536 (struct frame_print_options): Forward declare.
9537 (print_frame_arguments_all, print_frame_arguments_scalars)
9538 (print_frame_arguments_none): Declare.
9539 (print_entry_values): Delete declaration.
9540 (struct frame_print_options, user_frame_print_options): New.
9541 (struct set_backtrace_options): New.
9542 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9543 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9544 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9545 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9546 (list_args_or_locals): Add frame_print_options parameter.
9547 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9548 * python/py-framefilter.c (enumerate_args): Pass down
9549 USER_FRAME_PRINT_OPTIONS.
9550 * stack.c: Include "cli/cli-option.h".
9551 (print_frame_arguments_all, print_frame_arguments_scalars)
9552 (print_frame_arguments_none): Declare.
9553 (print_raw_frame_arguments, print_entry_values): Delete.
9554 (user_frame_print_options): New.
9555 (boolean_option_def, enum_option_def, frame_print_option_defs):
9556 New.
9557 (struct backtrace_cmd_options): New.
9558 (bt_flag_option_def): New.
9559 (backtrace_command_option_defs): New.
9560 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9561 (print_frame_arg, read_frame_arg, print_frame_args)
9562 (print_frame_info, print_frame): Add frame_print_options parameter
9563 and use it.
9564 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9565 (backtrace_command_1): Add frame_print_options and
9566 backtrace_cmd_options parameters and use them.
9567 (make_backtrace_options_def_group): New.
9568 (backtrace_command): Process command options with
9569 gdb::option::process_options.
9570 (backtrace_command_completer): New.
9571 (_initialize_stack): Extend "backtrace"'s help to mention
9572 supported options. Install completer for "backtrace".
9573 Install some settings commands with add_setshow_cmds_for_options.
9574
9575 2019-06-13 Pedro Alves <palves@redhat.com>
9576
9577 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9578 and that "set/show print raw frame-arguments" are now deprecated.
9579
9580 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9581 command.
9582 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9583 * stack.c (_initialize_stack): Install "set/show print
9584 raw-frame-arguments", and deprecate "set/show print raw
9585 frame-arguments".
9586 * valprint.c (_initialize_valprint): Deprecate "set/show print
9587 raw".
9588
9589 2019-06-13 Pedro Alves <palves@redhat.com>
9590
9591 * compile/compile.c (struct compile_options): New.
9592 (compile_flag_option_def, compile_command_option_defs)
9593 (make_compile_options_def_group): New.
9594 (compile_file_command): Handle options with
9595 gdb::option::process_options.
9596 (compile_file_command_completer): New function.
9597 (compile_code_command): Handle options with
9598 gdb::option::process_options.
9599 (compile_code_command_completer): New function.
9600 (_initialize_compiler): Install completers for "compile code" and
9601 "compile file". Mention available options in "compile code" and
9602 "compile code"'s help.
9603 * completer.c (advance_to_completion_word): New, factored out from
9604 ...
9605 (advance_to_expression_complete_word_point): ... this.
9606 (advance_to_filename_complete_word_point): New.
9607 * completer.h (advance_to_filename_complete_word_point): New
9608 declaration.
9609
9610 2019-06-13 Pedro Alves <palves@redhat.com>
9611
9612 * compile/compile.c: Include "cli/cli-option.h".
9613 (compile_print_value): Scope data pointer is now a
9614 value_print_options pointer; adjust.
9615 (compile_print_command): Process options. Scope data pointer is
9616 now a value_print_options pointer; adjust.
9617 (_initialize_compile): Update "compile print"'s help to include
9618 supported options. Install a completer for "compile print".
9619 * cp-valprint.c (show_vtblprint, show_objectprint)
9620 (show_static_field_print): Delete.
9621 (_initialize_cp_valprint): Don't install "set print
9622 static-members", "set print vtbl", "set print object" here.
9623 * printcmd.c: Include "cli/cli-option.h" and
9624 "common/gdb_optional.h".
9625 (print_command_parse_format): Rework to fill in a
9626 value_print_options instead of a format_data.
9627 (print_value): Change parameter type from format_data pointer to
9628 value_print_options reference. Adjust.
9629 (print_command_1): Process options. Adjust to pass down a
9630 value_print_options.
9631 (print_command_completer): New.
9632 (_initialize_printcmd): Install print_command_completer as
9633 handle_brkchars completer for the "print" command. Update
9634 "print"'s help to include supported options.
9635 * valprint.c: Include "cli/cli-option.h".
9636 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9637 here from cp-valprint.c.
9638 (boolean_option_def, uinteger_option_def)
9639 (value_print_option_defs, make_value_print_options_def_group):
9640 New. Use gdb::option::add_setshow_cmds_for_options to install
9641 "set print elements", "set print null-stop", "set print repeats",
9642 "set print pretty", "set print union", "set print array", "set
9643 print address", "set print symbol", "set print array-indexes".
9644 * valprint.h: Include <string> and "cli/cli-option.h".
9645 (make_value_print_options_def_group): Declare.
9646 (print_value): Change parameter type from format_data pointer to
9647 value_print_options reference.
9648 (print_command_completer): Declare.
9649
9650 2019-06-13 Pedro Alves <palves@redhat.com>
9651
9652 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9653 (COMMON_SFILES): Add maint-test-settings.c.
9654 * cli/cli-decode.c (boolean_enums): New global, factored out from
9655 ...
9656 (add_setshow_boolean_cmd): ... here.
9657 * cli/cli-decode.h (boolean_enums): Declare.
9658 * cli/cli-option.c: New file.
9659 * cli/cli-option.h: New file.
9660 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9661 factored out from ...
9662 (parse_cli_boolean_value(const char *)): ... this.
9663 (is_unlimited_literal): Change parameter type to pointer to
9664 pointer. Adjust and advance ARG pointer.
9665 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9666 (parse_cli_var_enum): New, factored out from ...
9667 (do_set_command): ... this. Adjust.
9668 * cli/cli-setshow.h (parse_cli_boolean_value)
9669 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9670 (parse_cli_var_enum): Declare.
9671 * cli/cli-utils.c: Include "cli/cli-option.h".
9672 (get_ulongest): New.
9673 * cli/cli-utils.h (get_ulongest): Declare.
9674 (check_for_argument): New overloads.
9675 * maint-test-options.c: New file.
9676
9677 2019-06-13 Pedro Alves <palves@redhat.com>
9678
9679 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9680 parse a range if "-" is at the end of the string.
9681
9682 2019-06-13 Pedro Alves <palves@redhat.com>
9683
9684 * cli/cli-setshow.c (parse_auto_binary_operation)
9685 (parse_cli_boolean_value): Don't allow "o".
9686
9687 2019-06-13 Pedro Alves <palves@redhat.com>
9688
9689 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9690 * NEWS: Mention maint test-settings KIND.
9691 * maint-test-settings.c: New file.
9692
9693 2019-06-13 Pedro Alves <palves@redhat.com>
9694
9695 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9696 completer.
9697 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9698 "set" completers.
9699
9700 2019-06-13 Pedro Alves <palves@redhat.com>
9701
9702 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9703 after item.
9704
9705 2019-06-13 Pedro Alves <palves@redhat.com>
9706
9707 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9708
9709 2019-06-13 Pedro Alves <palves@redhat.com>
9710
9711 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9712 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9713 call.
9714 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9715 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9716 calls.
9717 (check_for_argument): Skip spaces after argument.
9718
9719 2019-06-13 Pedro Alves <palves@redhat.com>
9720
9721 * thread.c (thread_apply_command): Adjust TID parsing.
9722 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9723 detected before end of string.
9724 (tid_is_in_list): Error out if LIST is invalid.
9725
9726 2019-06-13 Pedro Alves <palves@redhat.com>
9727
9728 * completer.c (complete_line_internal_1): Rewind completion word
9729 point.
9730 (completion_tracker::advance_custom_word_point_by): Change
9731 parameter type to int.
9732 * completer.h (completion_tracker::advance_custom_word_point_by):
9733 Likewise.
9734
9735 2019-06-13 Pedro Alves <palves@redhat.com>
9736
9737 * completer.c (advance_to_completion_word): Handle delimiters.
9738
9739 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9740
9741 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9742
9743 2019-06-11 Tom Tromey <tom@tromey.com>
9744
9745 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9746 (xmalloc_failed): Move to alloc.c.
9747 * alloc.c: New file.
9748 * Makefile.in (COMMON_SFILES): Add alloc.c.
9749
9750 2019-06-11 Tom Tromey <tom@tromey.com>
9751
9752 * nat/linux-waitpid.c: Don't include server.h.
9753 (linux_debug): Remove.
9754 (my_waitpid): Update.
9755
9756 2019-06-11 Tom Tromey <tromey@adacore.com>
9757
9758 * infcall.c (_initialize_infcall): Remove trailing newline from
9759 help.
9760 * user-regs.c (_initialize_user_regs): Remove trailing newline
9761 from help.
9762 * typeprint.c (_initialize_typeprint): Remove trailing newline
9763 from help.
9764 * reverse.c (_initialize_reverse): Remove trailing newlines from
9765 help.
9766 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9767 from help.
9768 * language.c (add_set_language_command): Remove trailing newline
9769 from help.
9770 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9771 help.
9772 * disasm.c (_initialize_disasm): Remove trailing newline from
9773 help.
9774 * top.c (init_main): Remove trailing newline from help.
9775 * interps.c (_initialize_interpreter): Remove trailing newline
9776 from help.
9777 * btrace.c (_initialize_btrace): Remove trailing newlines from
9778 help.
9779 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9780 from help.
9781 * python/python.c (_initialize_python): Remove trailing newline
9782 from help.
9783 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9784 help.
9785 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9786 from help. Reformat some text.
9787 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9788 from help.
9789 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9790 newline from help.
9791
9792 2019-06-11 Tom Tromey <tromey@adacore.com>
9793
9794 * darwin-nat.c (darwin_decode_exception_message)
9795 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9796
9797 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9798
9799 * valops.c (value_slice): Check for not allocated or not
9800 associated values.
9801
9802 2019-06-10 Tom de Vries <tdevries@suse.de>
9803
9804 PR gdb/24618
9805 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9806 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9807 invalid.
9808
9809 2019-06-10 Tom de Vries <tdevries@suse.de>
9810
9811 PR gdb/24611
9812 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9813 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9814
9815 2019-06-10 Tom de Vries <tdevries@suse.de>
9816
9817 PR symtab/24545
9818 * symtab.c (struct demangled_name_entry): Add language field.
9819 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9820 static minimal symbol". Set and use language field.
9821
9822 2019-06-10 Tom Tromey <tromey@adacore.com>
9823
9824 * ada-lang.c (_initialize_ada_language): Update help text.
9825
9826 2019-06-10 Tom Tromey <tromey@adacore.com>
9827
9828 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9829 with a newline.
9830 * guile/guile.c (handle_boot_error): Don't end warning with a
9831 newline.
9832 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9833 warning with a newline.
9834 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9835 newline.
9836 (s12z_frame_cache): Likewise.
9837 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9838 a newline.
9839 * solib-svr4.c (disable_probes_interface): Don't end warning with
9840 a newline.
9841 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9842 newline.
9843 * python/python.c (do_finish_initialization): Don't end warning
9844 with a newline.
9845
9846 2019-06-10 Tom Tromey <tom@tromey.com>
9847
9848 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9849 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9850 gdbpy_enter.
9851
9852 2019-06-10 Tom Tromey <tromey@adacore.com>
9853
9854 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9855 data.
9856 (elf_new_init): Don't call stabsread_new_init.
9857 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9858 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9859 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9860
9861 2019-06-10 Tom de Vries <tdevries@suse.de>
9862
9863 PR symtab/16264
9864 PR symtab/24517
9865 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9866
9867 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9868
9869 * source.c (find_and_open_source): Also rewrite relative file
9870 names.
9871
9872 2019-04-26 Amos Bird <amosbird@gmail.com>
9873
9874 * annotate.c (annotate_thread_exited): Add "thread-exited"
9875 annotation.
9876
9877 2019-06-06 Tom Tromey <tromey@adacore.com>
9878
9879 * maint.h (class scoped_command_stats): Use
9880 DISABLE_COPY_AND_ASSIGN.
9881 <print_time>: New method.
9882 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9883 print_time.
9884 (scoped_command_stats::print_time): New method.
9885
9886 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9887
9888 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9889 instructions of lengths 6 or 8 bytes.
9890
9891 2019-06-04 Pedro Alves <palves@redhat.com>
9892
9893 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9894
9895 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9896 * breakpoint.c (condition_completer): Likewise.
9897 * cli/cli-dump.c (scan_expression): Likewise.
9898 * common/filestuff.c (mkdir_recursive): Likewise.
9899 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9900 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9901 (gdb_abspath): Likewise.
9902 * compile/compile-cplus-types.c
9903 (compile_cplus_instance::decl_name): Likewise.
9904 * completer.c (complete_explicit_location):
9905 (signal_completer, reg_or_group_completer_1): Likewise.
9906 * cp-support.c (cp_remove_params_if_any): Likewise.
9907 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9908 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9909 * infcmd.c (strip_bg_char): Likewise.
9910 * linespec.c (copy_token_string): Likewise.
9911 * mi/mi-main.c (output_cores): Likewise.
9912 * psymtab.c (psymtab_search_name):
9913 * symfile.c (test_set_ext_lang_command): Likewise.
9914 * target.c (target_fileio_read_stralloc): Likewise.
9915 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9916 * value.c (complete_internalvar): Likewise.
9917
9918 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9919
9920 Add objfile property to gdb.Type.
9921 * NEWS: Mention Python API addition.
9922 * python/py-type.c (typy_get_objfile): New method.
9923
9924 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9925
9926 * NEWS: Mention the new set|show style [title|highlight].
9927 Mention changes to "show style", "help" and "apropos".
9928
9929 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9930
9931 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9932 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9933 instead of print_help_for_command.
9934 (print_doc_of_command): New function.
9935 (help_list): Add 'apropos -v word' suggestion.
9936 (print_help_for_command): Style the command name using title style.
9937 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9938 (_initialize_cli_cmds): Describe -v in apropos_command help.
9939
9940 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9941
9942 * cli/cli-style.h (cli_style_option): Add name in constructor,
9943 add m_name class member, add constructor with intensity,
9944 add name class function.
9945 (cli_style_option::add_setshow_commands): Remove name argument.
9946 (highlight_style, title_style): New styles.
9947 * cli/cli-style.c (do_show): New function that shows a style
9948 characteristic styling the style name with itself.
9949 (set_style_name): New function.
9950 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9951 Update all callers according to the changes in cli/cli-style.h.
9952 * utils.h (fputs_highlighted): New function.
9953 * utils.c (fputs_highlighted): Likewise.
9954
9955 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9956
9957 * NEWS: Mention new pipe command and new convenience variables.
9958
9959 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9960
9961 * cli/cli-cmds.c (pipe_command): New function.
9962 (_initialize_cli_cmds): Call add_com for pipe_command.
9963 Define | as an alias for pipe.
9964 (exit_status_set_internal_vars): New function.
9965 (shell_escape): Call exit_status_set_internal_vars.
9966 cli/cli-decode.c (find_command_name_length): Recognize | as
9967 a single character command.
9968
9969 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9970
9971 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9972 top.c (execute_command_to_ui_file): New function, mostly a copy
9973 of execute_command_to_string.
9974 (execute_command_to_string): Implement by calling
9975 execute_command_to_ui_file.
9976
9977 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9978
9979 * top.h (saved_command_line): Remove declaration.
9980 * top.c (previous_saved_command_line, previous_repeat_arguments):
9981 New variables.
9982 (saved_command_line): Make static, define together with other
9983 'repeat variables'.
9984 (dont_repeat): Clear repeat_arguments.
9985 (repeat_previous, get_saved_command_line, save_command_line):
9986 New functions.
9987 (gdb_init): Initialize saved_command_line
9988 and previous_saved_command_line.
9989 * main.c (captured_main_1): Remove saved_command_line initialization.
9990 * event-top.c (handle_line_of_input): Update to use
9991 the new 'repeat' related functions instead of direct access to
9992 saved_command_line.
9993 * command.h (repeat_previous, get_saved_command_line,
9994 save_command_line): New declarations.
9995 (dont_repeat): Add comment.
9996
9997 2019-05-30 Tom Tromey <tromey@adacore.com>
9998
9999 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10000 Fix comment.
10001 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10002
10003 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10004
10005 PR cli/24587
10006 * completer.c (complete): Initialize variable word.
10007
10008 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10009
10010 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10011 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10012 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10013 'body' is NULL to the outter 'if', protecting the '!is_define'
10014 situation as well.
10015
10016 2019-05-29 Tom Tromey <tromey@adacore.com>
10017
10018 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10019 (dwarf_unknown): New function.
10020 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10021 (dwarf_type_encoding_name): Use dwarf_unknown.
10022
10023 2019-05-29 Tom Tromey <tromey@adacore.com>
10024
10025 PR c++/20020:
10026 * cp-valprint.c (cp_print_value_fields): Call
10027 cp_print_static_field inside "try".
10028
10029 2019-05-29 Tom Tromey <tromey@adacore.com>
10030
10031 * inflow.c (struct terminal_info): Add default operator=.
10032 * configure: Rebuild.
10033 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10034 -Wdeprecated-copy-dtor, -Wredundant-move.
10035
10036 2019-05-29 Tom Tromey <tromey@adacore.com>
10037
10038 * NEWS: Add entry.
10039 * infcmd.c (print_return_value_1): Handle finish_print
10040 option.
10041 (show_print_finish): New function.
10042 (_initialize_infcmd): Add "set/show print finish" commands.
10043 * valprint.c (user_print_options): Initialize new member.
10044 * valprint.h (struct value_print_options) <finish_print>: New
10045 member.
10046
10047 2019-05-28 Tom Tromey <tromey@adacore.com>
10048
10049 * ada-lang.c (ada_remove_Xbn_suffix)
10050 (find_old_style_renaming_symbol)
10051 (parse_old_style_renaming): Remove.
10052 (ada_find_renaming_symbol): Don't call
10053 find_old_style_renaming_symbol.
10054 (ada_is_renaming_symbol): Rename from
10055 ada_find_renaming_symbol. Remove "block" parameter. Return
10056 bool. Now static.
10057 (ada_read_var_value): Update and simplify.
10058 * ada-exp.y (write_var_or_type): Remove old code.
10059
10060 2019-05-28 Alan Hayward <alan.hayward@arm.com>
10061
10062 PR gdb/25010
10063 * event-top.c: Remove include comment.
10064 * inflow.c (class scoped_ignore_sigttou): Move from here...
10065 * inflow.h (class scoped_ignore_sigttou): ...to here.
10066 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10067 * top.c: Remove include comment.
10068
10069 2019-05-27 Tom Tromey <tom@tromey.com>
10070
10071 * NEWS: Fix typo.
10072
10073 2019-05-22 Tom Tromey <tromey@adacore.com>
10074
10075 * target.c (target_follow_exec): Constify parameter.
10076 * target-delegates.c: Rebuild.
10077 * remote.c (remote_target::follow_exec): Constify parameter.
10078 * infrun.c (follow_exec): Constify parameter.
10079 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10080 (target_follow_exec): Likewise.
10081
10082 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10083
10084 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10085 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10086
10087 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10088
10089 * NEWS: Add debugredirect and testsuite sections.
10090
10091 2019-05-22 Simon Cook <simon.cook@embecosm.com>
10092
10093 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10094 target descriptions using exclusively floating point register name
10095 aliases.
10096
10097 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10098
10099 PR gdb/18644:
10100 * f-lang.c (build_fortran_types): Handle the case where
10101 gdbarch_floatformat_for_type returns a nullptr.
10102
10103 2019-05-21 Tom de Vries <tdevries@suse.de>
10104
10105 PR cli/24587
10106 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10107
10108 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10109
10110 PR gdb/18644:
10111 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10112 16-byte floats.
10113 * i386-tdep.c (i386_floatformat_for_type): Use
10114 floatformats_ia64_quad for the 16-byte floating point component
10115 within a fortran 32-byte complex number.
10116
10117 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10118
10119 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10120 delete default constructor.
10121 (find_partial_die): Update to return const struct.
10122 (partial_die_parent_scope): Move variable declaration into scope
10123 of its use and change its type to auto.
10124 (guess_partial_die_structure_name): Likewise.
10125 (partial_die_info::fixup): Likewise.
10126
10127 2019-05-17 Tom Tromey <tromey@adacore.com>
10128
10129 * source.c (find_and_open_source): Remove cast.
10130
10131 2019-05-17 Tom Tromey <tromey@adacore.com>
10132
10133 * annotate.c (annotate_source): Make "filename" const.
10134 * annotate.h (annotate_source): Use const.
10135
10136 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10137
10138 * disasm.c (set_disassembler_options): Send errors to stderr.
10139
10140 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10141
10142 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10143 (cli_interp_base::set_logging): Check debug_redirect.
10144 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10145 * cli/cli-logging.c (debug_redirect): Add static variable.
10146 (pop_output_files): Add default param.
10147 (handle_redirections): Print debug setting.
10148 (show_logging_command): Likewise.
10149 (_initialize_cli_logging): Add debugredirect command.
10150 * interps.c (current_interp_set_logging): Add debug_redirect
10151 parameter.
10152 * interps.h (set_logging): Add debug_redirect parameter.
10153 (current_interp_set_logging): Likewise.
10154 * mi/mi-common.h: Likewise.
10155 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10156
10157 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10158 Tom Tromey <tromey@adacore.com>
10159
10160 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10161 directly.
10162 * cli/cli-interp.h (make_logging_output): Remove declaration.
10163 * cli/cli-logging.c (make_logging_output): Remove function.
10164 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10165 directly.
10166 * ui-file.c (tee_file::tee_file): Remove bools.
10167 (tee_file::~tee_file): Remove deletes.
10168 * ui-file.h (tee_file): Remove bools.
10169
10170 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10171
10172 * mi/mi-cmds.h (mi_cmd_complete): New function.
10173 * mi/mi-main.c (mi_cmd_complete): Likewise.
10174 * mi/mi-cmds.c: Define new MI command -complete.
10175 * NEWS: Mention new -complete command.
10176
10177 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10178
10179 * completer.h (complete): New function.
10180 * completer.c (complete): Likewise.
10181 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10182 function defined in completer.h.
10183
10184 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10185
10186 * MAINTAINERS (Write After Approval): Add myself.
10187
10188 2019-05-17 Tom de Vries <tdevries@suse.de>
10189
10190 PR gdb/24094
10191 * dwarf2read.c (struct cu_partial_die_info): New struct.
10192 (find_partial_die): Return cu_partial_die_info.
10193 (partial_die_parent_scope, guess_partial_die_structure_name)
10194 (partial_die_info::fixup): Handle new return type of find_partial_die.
10195
10196 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10197
10198 PR breakpoints/24541
10199 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10200 "std::string", simplifying the algorithm.
10201
10202 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10203
10204 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10205 (stap_static_probe_ops::get_probes): Likewise.
10206
10207 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10208
10209 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10210 '-')" and "else if".
10211 (stap_parse_single_operand): Join checks for
10212 "gdbarch_stap_parse_special_token_p" and
10213 "gdbarch_stap_parse_special_token" in the same "if" statement.
10214 Invert check when verifying for operation on register
10215 displacement.
10216
10217 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10218
10219 * stap-probe.c (stap_get_opcode): Update comment.
10220 (stap_get_expected_argument_type): Likewise.
10221 (handle_stap_probe): Likewise.
10222
10223 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10224
10225 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10226 return type to 'bool'. Adjust comment. Use 'bool' when
10227 appropriate.
10228 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10229 * stap-probe.c (stap_parse_argument_1): Likewise.
10230 (stap_is_operator): Likewise.
10231 (stap_is_generic_prefix): Likewise.
10232 (stap_is_register_prefix): Likewise.
10233 (stap_is_register_indirection_prefix): Likewise.
10234 (stap_is_integer_prefix): Likewise.
10235 (stap_generic_check_suffix): Likewise.
10236 (stap_check_integer_suffix): Likewise.
10237 (stap_check_register_suffix): Likewise.
10238 (stap_check_register_indirection_suffix): Likewise.
10239 (stap_parse_register_operand): Likewise.
10240 (stap_parse_single_operand): Likewise.
10241 (stap_parse_argument_1): Likewise.
10242 (stap_probe::get_argument_count): Likewise.
10243 (stap_is_operator): Likewise.
10244
10245 2019-05-16 Tom Tromey <tromey@adacore.com>
10246
10247 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10248 keyword to foreach.
10249
10250 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10251
10252 * linux-thread-db.c (try_thread_db_load_1): Change return type
10253 to bool.
10254 (try_thread_db_load): Likewise.
10255 (try_thread_db_load_from_pdir_1): Likewise.
10256 (try_thread_db_load_from_pdir): Likewise.
10257 (try_thread_db_load_from_sdir): Likewise.
10258 (try_thread_db_load_from_dir): Likewise.
10259 (thread_db_load_search): Likewise.
10260 (has_libpthread): Likewise.
10261 (thread_db_load): Likewise.
10262
10263 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10264
10265 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10266 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10267 NULL, and complain/return if that's the case.
10268
10269 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10270
10271 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10272 (advance, posn, abstract_read_memory): New functions.
10273 [struct mem_read_abstraction]: New struct.
10274 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10275
10276 2019-05-14 Tom Tromey <tromey@adacore.com>
10277
10278 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10279 value is not lval_memory.
10280
10281 2019-05-14 Tom Tromey <tromey@adacore.com>
10282
10283 * solib.c (info_sharedlibrary_command): Style the file name.
10284
10285 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10286
10287 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10288 (aarch64_vnv_type): Likewise.
10289 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10290 * common/tdesc.c: Likewise.
10291 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10292 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10293 * features/aarch64-fpu.xml: Add ieee half view.
10294 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10295 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10296 * gdbtypes.h (struct builtin_type): Likewise.
10297 (struct objfile_type): Likewise.
10298
10299 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10300
10301 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10302 typo.
10303 * location.h (string_to_event_location): Likewise.
10304
10305 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10306
10307 GDB 8.3 released.
10308
10309 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10310
10311 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10312 New variable declaration.
10313 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10314 New variable.
10315 (print_one_breakpoint): Use ui_out::test_flags and new global
10316 variable to compute use_fixed_output.
10317 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10318 Remove.
10319 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10320 (mi_multi_location_breakpoint_output_fixed): Remove.
10321 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10322 new variable.
10323 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10324 fix_multi_location_breakpoint_output flag if version >= 3.
10325 * ui-out.h (enum ui_out_flag)
10326 <fix_multi_location_breakpoint_output>: New enumerator.
10327
10328 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10329
10330 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10331
10332 2019-05-10 Tom Tromey <tromey@adacore.com>
10333
10334 * ada-lang.c (catch_ada_completer): New function.
10335 (_initialize_ada_language): Use it.
10336
10337 2019-05-10 Tom Tromey <tromey@adacore.com>
10338
10339 * thread.c (print_thread_info): Make "requested_threads" const.
10340 * gdbthread.h (print_thread_info): Make "requested_threads"
10341 const.
10342 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10343 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10344
10345 2019-05-08 Tom Tromey <tom@tromey.com>
10346
10347 * gdbtypes.c (objfile_type_data): Change type.
10348 (objfile_type, _initialize_gdbtypes): Update.
10349
10350 2019-05-08 Tom Tromey <tom@tromey.com>
10351
10352 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10353 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10354 (_initialize_dwarf2_frame): Update.
10355
10356 2019-05-08 Tom Tromey <tom@tromey.com>
10357
10358 * objc-lang.c (objc_objfile_data): Change type.
10359 (find_methods): Update.
10360 (_initialize_objc_lang): Remove.
10361
10362 2019-05-08 Tom Tromey <tom@tromey.com>
10363
10364 * stabsread.c (rs6000_builtin_type_data): Change type.
10365 (rs6000_builtin_type, _initialize_stabsread): Update.
10366
10367 2019-05-08 Tom Tromey <tom@tromey.com>
10368
10369 * mips-tdep.c (mips_pdr_data): Remove.
10370 (_initialize_mips_tdep): Update.
10371
10372 2019-05-08 Tom Tromey <tom@tromey.com>
10373
10374 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10375 (hppa_init_objfile_priv_data, read_unwind_info)
10376 (find_unwind_entry, _initialize_hppa_tdep): Update.
10377
10378 2019-05-08 Tom Tromey <tom@tromey.com>
10379
10380 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10381 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10382 on obstack.
10383 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10384
10385 2019-05-08 Tom Tromey <tom@tromey.com>
10386
10387 * mdebugread.c (basic_type_data): Change type.
10388 (basic_type, _initialize_mdebugread): Update.
10389
10390 2019-05-08 Tom Tromey <tom@tromey.com>
10391
10392 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10393
10394 2019-05-08 Tom Tromey <tom@tromey.com>
10395
10396 * nto-tdep.c (nto_inferior_data_reg): Change type.
10397 (nto_inferior_data): Update.
10398 (nto_inferior_data_cleanup, nto_new_inferior_data)
10399 (_initialize_nto_tdep): Remove.
10400 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10401
10402 2019-05-08 Tom Tromey <tom@tromey.com>
10403
10404 * ada-lang.c (struct ada_inferior_data): Add initializers.
10405 (ada_inferior_data): Change type.
10406 (ada_inferior_data_cleanup): Remove.
10407 (get_ada_inferior_data, ada_inferior_exit)
10408 (struct ada_pspace_data): Add initializers, destructor.
10409 (ada_pspace_data_handle): Change type.
10410 (get_ada_pspace_data): Update.
10411 (ada_pspace_data_cleanup): Remove.
10412
10413 2019-05-08 Tom Tromey <tom@tromey.com>
10414
10415 * coffread.c (struct coff_symfile_info): Add initializers.
10416 (coff_objfile_data_key): Move lower. Change type.
10417 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10418 Update.
10419 (coff_free_info): Remove.
10420
10421 2019-05-08 Tom Tromey <tom@tromey.com>
10422
10423 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10424 (fbsd_pspace_data_handle): Move lower. Change type.
10425 (get_fbsd_pspace_data): Update.
10426 (fbsd_pspace_data_cleanup): Remove.
10427 (_initialize_fbsd_tdep): Update.
10428
10429 2019-05-08 Tom Tromey <tom@tromey.com>
10430
10431 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10432 (get_ada_tasks_pspace_data): Update.
10433 (ada_tasks_pspace_data_cleanup): Remove.
10434 (_initialize_tasks): Update.
10435 (ada_tasks_inferior_data_handle): Change type.
10436 (get_ada_tasks_inferior_data): Update.
10437 (ada_tasks_inferior_data_cleanup): Remove.
10438 (struct ada_tasks_pspace_data): Add initializers.
10439
10440 2019-05-08 Tom Tromey <tom@tromey.com>
10441
10442 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10443 * symfile-debug.c (debug_sym_get_probes): Change type.
10444 * stap-probe.c (handle_stap_probe):
10445 (stap_static_probe_ops::get_probes): Change type.
10446 * probe.h (class static_probe_ops) <get_probes>: Change type.
10447 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10448 (parse_probes_in_pspace): Update.
10449 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10450 Update.
10451 (any_static_probe_ops::get_probes): Change type.
10452 * elfread.c (elfread_data): New typedef.
10453 (probe_key): Change type.
10454 (elf_get_probes): Likewise. Update.
10455 (probe_key_free): Remove.
10456 (_initialize_elfread): Update.
10457 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10458 Change type.
10459 (dtrace_process_dof_probe, dtrace_process_dof)
10460 (dtrace_static_probe_ops::get_probe): Change type.
10461
10462 2019-05-08 Tom Tromey <tom@tromey.com>
10463
10464 * xcoffread.c (struct xcoff_symfile_info): Rename from
10465 coff_symfile_info. Add initializers.
10466 (xcoff_objfile_data_key): Move lower. Change type.
10467 (XCOFF_DATA): Rewrite.
10468 (xcoff_free_info): Remove.
10469 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10470 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10471 (xcoff_initial_scan): Update.
10472
10473 2019-05-08 Tom Tromey <tom@tromey.com>
10474
10475 * solib-svr4.c (struct svr4_info): Add initializers and
10476 destructor.
10477 <probes_table>: Now an htab_up.
10478 (solib_svr4_pspace_data): Change type.
10479 (free_probes_table): Simplify.
10480 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10481 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10482 (probes_table_remove_objfile_probes, register_solib_event_probe)
10483 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10484 (_initialize_svr4_solib): Update.
10485
10486 2019-05-08 Tom Tromey <tom@tromey.com>
10487
10488 * remote.c (remote_pspace_data): Change type.
10489 (remote_pspace_data_cleanup): Remove.
10490 (get_remote_exec_file, set_pspace_remote_exec_file)
10491 (_initialize_remote): Update.
10492
10493 2019-05-08 Tom Tromey <tom@tromey.com>
10494
10495 * breakpoint.c (breakpoint_objfile_key): Change type.
10496 (get_breakpoint_objfile_data): Update.
10497 (free_breakpoint_objfile_data): Remove.
10498 (_initialize_breakpoint): Update.
10499
10500 2019-05-08 Tom Tromey <tom@tromey.com>
10501
10502 * linux-tdep.c (struct linux_info): Add initializers.
10503 (linux_inferior_data): Move. Change type.
10504 (invalidate_linux_cache_inf): Update.
10505 (linux_inferior_data_cleanup): Remove.
10506 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10507
10508 2019-05-08 Tom Tromey <tom@tromey.com>
10509
10510 * auxv.c (auxv_inferior_data): Move. Change type.
10511 (auxv_inferior_data_cleanup): Remove.
10512 (invalidate_auxv_cache_inf): Rewrite.
10513 (get_auxv_inferior_data, _initialize_auxv): Update.
10514
10515 2019-05-08 Tom Tromey <tom@tromey.com>
10516
10517 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10518 (symfile_debug_objfile_data_key): Change type.
10519 (symfile_debug_installed, debug_qf_has_symbols)
10520 (debug_qf_find_last_source_symtab)
10521 (debug_qf_forget_cached_source_info)
10522 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10523 (debug_qf_print_stats, debug_qf_dump)
10524 (debug_qf_expand_symtabs_for_function)
10525 (debug_qf_expand_all_symtabs)
10526 (debug_qf_expand_symtabs_with_fullname)
10527 (debug_qf_map_matching_symbols)
10528 (debug_qf_expand_symtabs_matching)
10529 (debug_qf_find_pc_sect_compunit_symtab)
10530 (debug_qf_map_symbol_filenames)
10531 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10532 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10533 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10534 (debug_sym_read_linetable, debug_sym_relocate): Update.
10535 (symfile_debug_free_objfile): Remove.
10536 (install_symfile_debug_logging, _initialize_symfile_debug):
10537 Update.
10538
10539 2019-05-08 Tom Tromey <tom@tromey.com>
10540
10541 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10542 allocate_on_obstack.
10543 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10544 (get_dwarf2_per_objfile): Update.
10545 (set_dwarf2_per_objfile): Remove.
10546 (dwarf2_has_info, dwarf2_get_section_info): Update.
10547 (dwarf2_free_objfile): Remove.
10548 (_initialize_dwarf2_read): Update.
10549
10550 2019-05-08 Tom Tromey <tom@tromey.com>
10551
10552 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10553 initializers.
10554 <unsupported_script_warning_printed,
10555 script_not_found_warning_printed>: Now bool.
10556 (auto_load_pspace_data): Change type.
10557 (~auto_load_pspace_info): Rename from
10558 auto_load_pspace_data_cleanup.
10559 (get_auto_load_pspace_data, init_loaded_scripts_info)
10560 (clear_section_scripts, maybe_print_unsupported_script_warning)
10561 (maybe_print_script_not_found_warning, _initialize_auto_load):
10562 Update.
10563
10564 2019-05-08 Tom Tromey <tom@tromey.com>
10565
10566 * objfiles.c (objfile_pspace_info): Add destructor and
10567 initializers.
10568 (objfiles_pspace_data): Change type.
10569 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10570 (get_objfile_pspace_data): Update.
10571 (objfiles_bfd_data): Change type.
10572 (get_objfile_bfd_data): Update.
10573 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10574
10575 2019-05-08 Tom Tromey <tom@tromey.com>
10576
10577 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10578 Change type.
10579 (get_catch_syscall_inferior_data): Update.
10580 (catch_syscall_inferior_data_cleanup): Remove.
10581 (_initialize_break_catch_syscall): Update.
10582
10583 2019-05-08 Tom Tromey <tom@tromey.com>
10584
10585 * inflow.c (struct terminal_info): Add destructor and
10586 initializers.
10587 (inflow_inferior_data): Change type.
10588 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10589 (get_inflow_inferior_data, inflow_inferior_exit)
10590 (swap_terminal_info, _initialize_inflow): Update.
10591
10592 2019-05-08 Tom Tromey <tom@tromey.com>
10593
10594 * target-dcache.c (target_dcache_cleanup): Remove.
10595 (target_dcache_aspace_key): Change type.
10596 (target_dcache_init_p, target_dcache_invalidate)
10597 (target_dcache_get, target_dcache_get_or_init)
10598 (_initialize_target_dcache): Update.
10599 * dcache.h (struct dcache_deleter): New.
10600
10601 2019-05-08 Tom Tromey <tom@tromey.com>
10602
10603 * symtab.c (struct symbol_cache): Add destructor and
10604 initializers.
10605 (symbol_cache_key): Move. Change type.
10606 (make_symbol_cache, free_symbol_cache): Remove.
10607 (get_symbol_cache): Update.
10608 (symbol_cache_cleanup): Remove.
10609 (ALL_PSPACES, symbol_cache_flush)
10610 (maintenance_print_symbol_cache)
10611 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10612 Update.
10613
10614 2019-05-08 Tom Tromey <tom@tromey.com>
10615
10616 * symtab.c (struct main_info): Add destructor and initializers.
10617 (main_progspace_key): Move. Change type.
10618 (get_main_info): Update.
10619 (main_info_cleanup): Remove.
10620 (_initialize_symtab): Update.
10621
10622 2019-05-08 Tom Tromey <tom@tromey.com>
10623
10624 * registry.h (DECLARE_REGISTRY): Define the _key class.
10625
10626 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10627
10628 * NEWS: Merge two 'New commands' sections.
10629
10630 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10631
10632 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10633 parameter and use Ada language definition instead.
10634 (ada_val_print_ptr): Remove unused language parameter.
10635 (ada_val_print_num): Remove language parameter and use Ada language
10636 definition instead.
10637 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10638 parameter.
10639 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10640 parameter and use Ada language definition instead.
10641 (ada_val_print_1): Update all ada_val_print_xxx calls.
10642 Remove language parameter.
10643 (ada_val_print): Update ada_val_print_1 call.
10644
10645 2019-05-08 Tom Tromey <tromey@adacore.com>
10646
10647 * remote.c (remote_hw_watchpoint_limit)
10648 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10649 Now static.
10650
10651 2019-05-08 Tom Tromey <tromey@adacore.com>
10652
10653 * maint.c (_initialize_maint_cmds): Move initialization code to
10654 remote.c.
10655 (watchdog, show_watchdog): Move to remote.c.
10656 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10657 "watchdog" static.
10658 (_initialize_remote): Move initialization code from maint.c.
10659 * defs.h (watchdog): Don't declare.
10660
10661 2019-05-08 Tom Tromey <tromey@adacore.com>
10662
10663 * tui/tui-interp.c: Include main.h.
10664 * interps.c: Include main.h.
10665 * main.h (interpreter_p): Declare.
10666 * defs.h (interpreter_p): Don't declare.
10667
10668 2019-05-08 Tom Tromey <tromey@adacore.com>
10669
10670 * dwarf2loc.c: Include dwarf2read.h.
10671 * defs.h (read_unsigned_leb128): Don't declare.
10672 * dwarf2read.h (read_unsigned_leb128): Declare.
10673
10674 2019-05-08 Tom Tromey <tromey@adacore.com>
10675
10676 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10677 method.
10678
10679 2019-05-08 Tom Tromey <tromey@adacore.com>
10680
10681 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10682 when no wrap column is set.
10683
10684 2019-05-08 Tom Tromey <tromey@adacore.com>
10685
10686 * c-lang.c (c_get_string): Handle non-C-style arrays.
10687
10688 2019-05-08 Tom Tromey <tromey@adacore.com>
10689
10690 * typeprint.c (print_offset_data::update): Print the bit offset,
10691 not the number of bits remaining.
10692
10693 2019-05-08 Tom Tromey <tromey@adacore.com>
10694
10695 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10696 padding at end of comment.
10697
10698 2019-05-08 Tom Tromey <tromey@adacore.com>
10699
10700 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10701 Compare main types.
10702
10703 2019-05-06 Tom Tromey <tom@tromey.com>
10704
10705 * common/scoped_mmap.c: Include common-defs.h.
10706 * common/scoped_mmap.h: Don't include config.h.
10707
10708 2019-05-04 Tom Tromey <tom@tromey.com>
10709
10710 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10711 (struct aarch64_call_info): Add initializers.
10712 <si>: Now a std::vector.
10713 (pass_on_stack, aarch64_push_dummy_call): Update.
10714
10715 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10716 Tom Tromey <tom@tromey.com>
10717
10718 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10719 (ppc_threads): Now a std::vector. Now static.
10720 (hwdebug_find_thread_points_by_tid)
10721 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10722 Update.
10723
10724 2019-05-04 Tom Tromey <tom@tromey.com>
10725
10726 * arc-tdep.c (arc_tdesc_init): Return bool.
10727
10728 2019-05-04 Tom Tromey <tom@tromey.com>
10729
10730 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10731 Use gdb_assert_not_reached.
10732
10733 2019-05-04 Tom Tromey <tom@tromey.com>
10734
10735 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10736 "false".
10737
10738 2019-05-04 Tom Tromey <tom@tromey.com>
10739
10740 * arc-tdep.c (arc_tdesc_init): Use bool.
10741
10742 2019-05-04 Tom Tromey <tom@tromey.com>
10743
10744 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10745
10746 2019-05-04 Tom Tromey <tom@tromey.com>
10747
10748 * cli/cli-cmds.c (valid_command_p): Return bool.
10749
10750 2019-05-04 Tom Tromey <tom@tromey.com>
10751
10752 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10753 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10754
10755 2019-05-04 Raul Tambre <raul@tambre.ee>
10756
10757 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10758 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10759 operator for comparison.
10760
10761 2019-05-04 Tom Tromey <tom@tromey.com>
10762
10763 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10764 (lookup_partial_symbol, print_partial_symbols)
10765 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10766 (psymbol_compare): Update.
10767 (add_psymbol_to_bcache): Clear the entire psymbol.
10768 (maintenance_check_psymtabs): Update.
10769 * psympriv.h (struct partial_symbol): Don't derive from
10770 general_symbol_info.
10771 <obj_section, unrelocated_address, address,
10772 set_unrelocated_address>: Update.
10773 <ginfo>: New member.
10774 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10775 (debug_names::write_psymbols): Update.
10776
10777 2019-05-04 Tom de Vries <tdevries@suse.de>
10778
10779 * contrib/cc-with-tweaks.sh: Support -n arg.
10780
10781 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10782
10783 * corelow.c (core_target::detach): Ensure frame cache and
10784 register caches are cleared.
10785 inferior.c (exit_inferior_1): Likewise.
10786
10787 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10788 Tom Tromey <tom@tromey.com>
10789
10790 * dictionary.c (collate_pending_symbols_by_language): Remove
10791 "struct" from foreach.
10792 * symtab.c (lookup_global_symbol_from_objfile)
10793 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10794 foreach.
10795 * ser-tcp.c (net_open): Remove "struct" from foreach.
10796 * objfiles.c (objfile_relocate, objfile_rebase)
10797 (objfile_has_symbols): Remove "struct" from foreach.
10798 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10799 from foreach.
10800 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10801 foreach.
10802 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10803 "struct" from foreach.
10804 * ada-lang.c (create_excep_cond_exprs)
10805 (ada_exception_catchpoint_cond_string): Remove "struct" from
10806 foreach.
10807
10808 2019-05-03 Tom Tromey <tromey@adacore.com>
10809
10810 * ada-exp.y (convert_char_literal): Check suffix of each
10811 enumerator.
10812
10813 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10814
10815 PR ada/21406:
10816 * ada-exp.y (yywrap): Don't define.
10817 * ada-lex.l (%option): Add noyywrap
10818 (yywrap): Remove.
10819
10820 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10821
10822 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10823 _WIN32_WINNT to the XP level, unless already defined to a higher
10824 level.
10825
10826 * unittests/parse-connection-spec-selftests.c:
10827 * ser-tcp.c:
10828 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10829 override.
10830
10831 * symfile.c (find_separate_debug_file): Remove colon from the
10832 drive spec of DOS/Windows file names of the target, so that the
10833 file name produced from DEBUGDIR and the target's directory will
10834 be valid on DOS/Windows systems.
10835
10836 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10837
10838 * rust-lang.c (val_print_struct): Handle printing structures
10839 containing strings.
10840
10841 2019-05-02 Tom Tromey <tromey@adacore.com>
10842
10843 * valarith.c (_initialize_valarith): Remove.
10844
10845 2019-05-01 Tom Tromey <tromey@adacore.com>
10846
10847 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10848 bitfields.
10849
10850 2019-05-01 Tom Tromey <tromey@adacore.com>
10851
10852 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10853 for big-endian copies.
10854
10855 2019-04-30 Ali Tamur <tamur@google.com>
10856 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10857 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10858 (read_3_bytes): New function.
10859
10860 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10861
10862 * windows-nat.c (main_thread_id): Delete.
10863 (handle_output_debug_string): Replace main_thread_id by
10864 current_event.dwThreadId.
10865 (fake_create_process): Likewise.
10866 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10867 Do not set main_thread_id.
10868 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10869 current_event.dwThreadId.
10870 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10871
10872 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10873
10874 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10875 Use current_event.dwThreadId instead of main_thread_id.
10876
10877 2019-04-30 Tom Tromey <tromey@adacore.com>
10878
10879 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10880 (create_excep_cond_exprs): Iterate over program spaces.
10881 (ada_exception_catchpoint_cond_string): Examine all minimal
10882 symbols for exception types.
10883
10884 2019-04-30 Tom Tromey <tromey@adacore.com>
10885
10886 PR c++/24470:
10887 * dwarf2read.c (process_structure_scope): Handle case where type
10888 has template parameters but no symbol was created.
10889
10890 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10891 Chris January <chris.january@arm.com>
10892
10893 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10894 qualifier.
10895 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10896
10897 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10898
10899 * f-typeprint.c (f_print_type): Update rules for printing
10900 whitespace.
10901 (f_type_print_varspec_suffix): Likewise.
10902
10903 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10904 Chris January <chris.january@arm.com>
10905
10906 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10907 function arguments.
10908
10909 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10910
10911 * f-lang.c (build_fortran_types): Change name of void type to
10912 lower case.
10913 * f-typeprint.c (f_type_print_base): Print the name of the void
10914 type, rather than a fixed string.
10915 * f-valprint.c (f_decorations): Use lower case void string.
10916
10917 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10918 Chris January <chris.january@arm.com>
10919
10920 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10921 types for Fortran.
10922
10923 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10924 Chris January <chris.january@arm.com>
10925 David Lecomber <david.lecomber@arm.com>
10926
10927 * f-exp.y (BINOP_INTRINSIC): New token.
10928 (exp): New parser rule handling BINOP_INTRINSIC.
10929 (f77_keywords): Add new builtin procedures.
10930 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10931 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10932 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10933 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10934 (print_unop_subexp_f): New function.
10935 (print_binop_subexp_f): New function.
10936 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10937 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10938 (dump_subexp_body_f): Likewise.
10939 (operator_check_f): Likewise.
10940 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10941 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10942
10943 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10944
10945 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10946 UNOP_KIND.
10947 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10948 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10949 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10950 (operator_length_f): New fuction.
10951 (print_subexp_f): New function.
10952 (op_name_f): New function.
10953 (dump_subexp_body_f): New function.
10954 (operator_check_f): New function.
10955 (exp_descriptor_f): Replace standard expression handling functions
10956 with new functions.
10957 * gdb/fortran-operator.def: New file.
10958 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10959 * gdb/std-operator.def: Remove UNOP_KIND.
10960
10961 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10962
10963 * std-operator.def: Remove unbalanced, stray double quote
10964 character.
10965
10966 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10967 Chris January <chris.january@arm.com>
10968 Daniel Everett <daniel.everett@arm.com>
10969 Nick Forrington <nick.forrington@arm.com>
10970 Richard Bunt <richard.bunt@arm.com>
10971
10972 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10973 of depth when printing anonymous structs or unions.
10974 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10975 Don't print either the top-level value, or the children if the
10976 max-depth is exceeded.
10977 (ppscm_print_children): When printing the key of a map, allow one
10978 extra level of depth.
10979 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10980 print either the top-level value, or the children if the max-depth
10981 is exceeded.
10982 (print_children): When printing the key of a map, allow one extra
10983 level of depth.
10984 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10985 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10986 (user_print_options): Initialise max_depth field.
10987 (val_print_scalar_or_string_type_p): New function.
10988 (val_print): Check to see if the max depth has been reached.
10989 (val_print_check_max_depth): Define new function.
10990 (show_print_max_depth): New function.
10991 (_initialize_valprint): Add 'print max-depth' option.
10992 * valprint.h (struct value_print_options) <max_depth>: New field.
10993 (val_print_check_max_depth): Declare new function.
10994 * NEWS: Document new feature.
10995
10996 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10997
10998 * ada-lang.c (ada_language_defn): Initialise new field.
10999 * c-lang.c (c_is_string_type_p): New function.
11000 (c_language_defn): Initialise new field.
11001 (cplus_language_defn): Initialise new field.
11002 (asm_language_defn): Initialise new field.
11003 (minimal_language_defn): Initialise new field.
11004 * c-lang.h (c_is_string_type_p): Declare new function.
11005 * d-lang.c (d_language_defn): Initialise new field.
11006 * f-lang.c (f_is_string_type_p): New function.
11007 (f_language_defn): Initialise new field.
11008 * go-lang.c (go_is_string_type_p): New function.
11009 (go_language_defn): Initialise new field.
11010 * language.c (default_is_string_type_p): New function.
11011 (unknown_language_defn): Initialise new field.
11012 (auto_language_defn): Initialise new field.
11013 * language.h (struct language_defn) <la_is_string_type_p>: New
11014 member variable.
11015 (default_is_string_type_p): Declare new function.
11016 * m2-lang.c (m2_language_defn): Initialise new field.
11017 * objc-lang.c (objc_language_defn): Initialise new field.
11018 * opencl-lang.c (opencl_language_defn): Initialise new field.
11019 * p-lang.c (pascal_is_string_type_p): New function.
11020 (pascal_language_defn): Initialise new field.
11021 * rust-lang.c (rust_is_string_type_p): New function.
11022 (rust_language_defn): Initialise new field.
11023
11024 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11025
11026 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11027 New field.
11028 * ada-lang.c (ada_language_defn): Initialise new field.
11029 * c-lang.c (c_language_defn): Likewise.
11030 (cplus_language_defn): Likewise.
11031 (asm_language_defn): Likewise.
11032 (minimal_language_defn): Likewise.
11033 * d-lang.c (d_language_defn): Likewise.
11034 * f-lang.c (f_language_defn): Likewise.
11035 * go-lang.c (go_language_defn): Likewise.
11036 * language.c (unknown_language_defn): Likewise.
11037 (auto_language_defn): Likewise.
11038 * m2-lang.c (m2_language_defn): Likewise.
11039 * objc-lang.c (objc_language_defn): Likewise.
11040 * opencl-lang.c (opencl_language_defn): Likewise.
11041 * p-lang.c (pascal_language_defn): Likewise.
11042 * rust-lang.c (rust_language_defn): Likewise.
11043
11044 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11045
11046 * ada-lang.c (ada_is_character_type): Change return type to bool.
11047 (ada_is_string_type): Likewise.
11048 * ada-lang.h (ada_is_character_type): Update declaration
11049 (ada_is_string_type): Likewise.
11050
11051 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11052
11053 Support style in 'frame|thread apply'
11054
11055 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11056 * record.c (record_start, record_stop): Update callers of
11057 execute_command_to_string with false.
11058 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11059 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11060 methods.
11061 (class string_file): New constructor with term_out parameter.
11062 Override methods term_out and can_emit_style_escape. New member
11063 term_out.
11064 (class stdio_file): Override can_emit_style_escape.
11065 (class tee_file): Override term_out and can_emit_style_escape.
11066 * utils.h (can_emit_style_escape): Remove.
11067 * utils.c (can_emit_style_escape): Likewise.
11068 Update all callers of can_emit_style_escape (SOMESTREAM) to
11069 SOMESTREAM->can_emit_style_escape.
11070 * source-cache.c (source_cache::get_source_lines): Likewise.
11071 * stack.c (frame_apply_command_count): Call execute_command_to_string
11072 passing the term_out characteristic of the current gdb_stdout.
11073 * thread.c (thr_try_catch_cmd): Likewise.
11074 * top.c (execute_command_to_string): pass term_out parameter
11075 to construct the string_file for the command output.
11076 * ui-file.c (term_cli_styling): New function (most code moved
11077 from utils.c can_emit_style_escape).
11078 (string_file::string_file, string_file::can_emit_style_escape,
11079 stdio_file::can_emit_style_escape, tee_file::term_out,
11080 tee_file::can_emit_style_escape): New functions.
11081
11082 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11083
11084 * NEWS: Mention the new set|show may-call-functions.
11085 * infcall.c (may_call_functions_p): New variable.
11086 (show_may_call_functions_p): New function.
11087 (call_function_by_hand_dummy): Throws an error if not
11088 may-call-functions.
11089 (_initialize_infcall): Call add_setshow_boolean_cmd for
11090 may-call-functions.
11091
11092 2019-04-25 Keith Seitz <keiths@redhat.com>
11093
11094 PR c++/24367
11095 * cp-support.c (inspect_type): Don't attempt substitutions
11096 of symbol with the same name.
11097
11098 2019-04-25 Tom Tromey <tromey@adacore.com>
11099
11100 PR gdb/24475:
11101 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11102 static.
11103
11104 2019-04-25 Tom Tromey <tromey@adacore.com>
11105
11106 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11107 rvalue reference.
11108 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11109 (gdb_xml_parser::parse): Use std::move.
11110 * python/python-internal.h (gdbpy_convert_exception): Take a const
11111 reference.
11112 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11113 std::move.
11114 * python/py-utils.c (gdbpy_convert_exception): Take a const
11115 reference.
11116 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11117 Use std::move.
11118 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11119 Use std::move.
11120 * mi/mi-main.c (mi_print_exception): Take a const reference.
11121 * main.c (handle_command_errors): Take a const reference.
11122 * linespec.c (parse_linespec): Use std::move.
11123 * infcall.c (run_inferior_call): Use std::move.
11124 (call_function_by_hand_dummy): Use std::move.
11125 * exec.c (try_open_exec_file): Use std::move.
11126 * exceptions.h (exception_print, exception_fprintf)
11127 (exception_print_same): Update.
11128 * exceptions.c (print_exception, exception_print)
11129 (exception_fprintf, exception_print_same): Change parameters to
11130 const reference.
11131 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11132 * common/new-op.c: Use std::move.
11133 * common/common-exceptions.h (struct gdb_exception): Add move
11134 constructor.
11135 (struct gdb_exception_error, struct gdb_exception_quit, struct
11136 gdb_quit_bad_alloc): Change constructor to move constructor.
11137 (throw_exception): Change parameter to rvalue reference.
11138 * common/common-exceptions.c (throw_exception): Take rvalue
11139 reference.
11140 * cli/cli-interp.c (safe_execute_command): Use std::move.
11141 * breakpoint.c (insert_bp_location, location_to_sals): Use
11142 std::move.
11143
11144 2019-04-25 Tom Tromey <tromey@adacore.com>
11145
11146 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11147 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11148 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11149 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11150 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11151 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11152 guile/scm-value.c: Use unpack.
11153 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11154 gdbscm_gdb_exception.
11155 (gdbscm_throw_gdb_exception): Likewise.
11156 (struct gdbscm_gdb_exception): New.
11157 (unpack): New function.
11158 (gdbscm_wrap): Use unpack.
11159
11160 2019-04-25 Tom Tromey <tromey@adacore.com>
11161
11162 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11163 (gdb_rl_callback_handler): Use std::move.
11164 * common/common-exceptions.h (struct gdb_exception): Add move
11165 assignment operator.
11166 (throw_exception_sjlj): Change "exception" to const reference.
11167 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11168 (throw_exception_sjlj): Change "exception" to const reference.
11169
11170 2019-04-25 Tom Tromey <tromey@adacore.com>
11171
11172 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11173 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11174 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11175 Update.
11176 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11177 Update.
11178 * mi/mi-interp.c (mi_interp::exec): Update.
11179 * linespec.c (parse_linespec): Update.
11180 * infcall.c (run_inferior_call): Update.
11181 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11182 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11183 (gdbscm_lookup_global_symbol): Update.
11184 * guile/scm-param.c (gdbscm_parameter_value): Update.
11185 * guile/scm-frame.c (gdbscm_frame_read_register)
11186 (gdbscm_frame_read_var): Update.
11187 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11188 * exec.c (try_open_exec_file): Update.
11189 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11190 (gdb_rl_callback_handler): Update.
11191 * common/common-exceptions.h (exception_none): Don't declare.
11192 * common/common-exceptions.c (exception_none): Don't define.
11193 (struct catcher) <exception>: Update.
11194 * cli/cli-interp.c (safe_execute_command): Update.
11195 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11196
11197 2019-04-25 Ali Tamur <tamur@google.com>
11198
11199 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11200 (read_attribute_value): Likewise.
11201 (dwarf2_read_addr_index): Update comment.
11202 (read_str_index): Add DW_FORM_strx.
11203 (dwarf2_string_attr): Likewise.
11204 (dwarf2_const_value_attr): Likewise.
11205 (dump_die_shallow): Likewise.
11206 (dwarf2_fetch_constant_bytes): Likewise.
11207 (skip_form_bytes): Likewise.
11208 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11209
11210 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11211
11212 PR corefiles/11608
11213 PR corefiles/18187
11214 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11215 OFFSET. Verify if current mapping contains an ELF header.
11216 (linux_find_memory_regions_full): Adjust call to
11217 dump_mapping_p.
11218
11219 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11220 Kang Li <kanglictf@gmail.com>
11221
11222 PR gdb/21600
11223
11224 * dwarf2-frame.c (read_initial_length): Be consistent about using
11225 unsigned representation of length.
11226 (decode_frame_entry_1): Likewise. Check for wraparound of
11227 end pointer as well as buffer overflow.
11228
11229 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11230
11231 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11232 "vq".
11233
11234 2019-04-24 Tom Tromey <tromey@adacore.com>
11235
11236 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11237
11238 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11239
11240 * s12z-tdep.c (s12z_unwind_pc): Delete.
11241 (s12z_unwind_sp): Delete.
11242 (s12z_gdbarch_init): Don't register deleted functions with
11243 gdbarch.
11244
11245 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11246
11247 * rl78-tdep.c (rl78_unwind_sp): Delete.
11248 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11249
11250 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11251
11252 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11253 (xstormy16_unwind_pc): Delete.
11254 (xstormy16_dummy_id): Delete.
11255 (xstormy16_gdbarch_init): Don't register deleted functions with
11256 gdbarch.
11257
11258 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11259
11260 * vax-tdep.c (vax_unwind_pc): Delete.
11261 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11262
11263 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11264
11265 * v850-tdep.c (v850_unwind_sp): Delete.
11266 (v850_unwind_pc): Delete.
11267 (v850_dummy_id): Delete.
11268 (v850_gdbarch_init): Don't register deleted functions with
11269 gdbarch.
11270
11271 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11272
11273 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11274 (tilegx_unwind_pc): Delete.
11275 (tilegx_unwind_dummy_id): Delete.
11276 (tilegx_gdbarch_init): Don't register deleted functions with
11277 gdbarch.
11278
11279 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11280
11281 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11282 (tic6x_dummy_id): Delete.
11283 (tic6x_gdbarch_init): Don't register deleted functions with
11284 gdbarch.
11285
11286 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11287
11288 * sparc-tdep.c (sparc_unwind_pc): Delete.
11289 (sparc32_gdbarch_init): Don't register deleted function with
11290 gdbarch.
11291
11292 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11293
11294 * sh-tdep.c (sh_unwind_sp): Delete.
11295 (sh_unwind_pc): Delete.
11296 (sh_dummy_id): Delete.
11297 (sh_gdbarch_init): Don't register deleted functions with
11298 gdbarch.
11299
11300 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11301
11302 * score-tdep.c (score_unwind_sp): Delete.
11303 (score_unwind_pc): Delete.
11304 (score_dummy_id): Delete.
11305 (score_gdbarch_init): Don't register deleted functions with
11306 gdbarch.
11307
11308 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11309
11310 * rx-tdep.c (rx_unwind_pc): Delete.
11311 (rx_unwind_sp): Delete.
11312 (rx_dummy_id): Delete.
11313 (rx_gdbarch_init): Don't register deleted functions with
11314 gdbarch. Update comment.
11315
11316 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11317
11318 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11319 (rs6000_dummy_id): Delete.
11320 (rs6000_gdbarch_init): Don't register deleted functions with
11321 gdbarch.
11322
11323 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11324
11325 * or1k-tdep.c (or1k_dummy_id): Delete.
11326 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11327
11328 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11329
11330 * nios2-tdep.c (nios2_dummy_id): Delete.
11331 (nios2_unwind_sp): Delete.
11332 (nios2_gdbarch_init): Don't register deleted functions with
11333 gdbarch.
11334
11335 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11336
11337 * nds32-tdep.c (nds32_dummy_id): Delete.
11338 (nds32_unwind_pc): Delete.
11339 (nds32_unwind_sp): Delete.
11340 (nds32_gdbarch_init): Don't register deleted functions with
11341 gdbarch.
11342
11343 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11344
11345 * msp430-tdep.c (msp430_unwind_pc): Delete.
11346 (msp430_unwind_sp): Delete.
11347 (msp430_dummy_id): Delete.
11348 (msp430_gdbarch_init): Don't register deleted functions with
11349 gdbarch.
11350
11351 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11352
11353 * moxie-tdep.c (moxie_unwind_sp): Delete.
11354 (moxie_unwind_pc): Delete.
11355 (moxie_dummy_id): Delete.
11356 (moxie_gdbarch_init): Don't register deleted functions with
11357 gdbarch.
11358
11359 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11360
11361 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11362 (mn10300_unwind_pc): Delete.
11363 (mn10300_unwind_sp): Delete.
11364 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11365 mn10300_unwind_sp.
11366 (mn10300_frame_unwind_init): Don't register deleted functions with
11367 gdbarch.
11368
11369 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11370
11371 * mep-tdep.c (mep_unwind_pc): Delete.
11372 (mep_unwind_sp): Delete.
11373 (mep_dummy_id): Delete.
11374 (mep_gdbarch_init): Don't register deleted functions with
11375 gdbarch.
11376
11377 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11378
11379 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11380 (m68hc11_unwind_sp): Delete.
11381 (m68hc11_gdbarch_init): Don't register deleted functions with
11382 gdbarch.
11383
11384 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11385
11386 * m32r-tdep.c (m32r_unwind_sp): Delete.
11387 (m32r_unwind_pc): Delete.
11388 (m32r_dummy_id): Delete.
11389 (m32r_gdbarch_init): Don't register deleted functions with
11390 gdbarch.
11391
11392 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11393
11394 * m32c-tdep.c (m32c_unwind_pc): Delete.
11395 (m32c_unwind_sp): Delete.
11396 (m32c_dummy_id): Delete.
11397 (m32c_gdbarch_init): Don't register deleted functions with
11398 gdbarch.
11399
11400 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11401
11402 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11403 (lm32_unwind_pc): Delete.
11404 (lm32_dummy_id): Delete.
11405 (lm32_gdbarch_init): Don't register deleted functions with
11406 gdbarch.
11407
11408 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11409
11410 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11411 (iq2000_unwind_pc): Delete.
11412 (iq2000_dummy_id): Delete.
11413 (iq2000_gdbarch_init): Don't register deleted functions with
11414 gdbarch.
11415
11416 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11417
11418 * nds32-tdep.c (nds32_type_align): Delete.
11419 (nds32_push_dummy_call): Use type_align instead.
11420
11421 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11422
11423 * arm-tdep.c (arm_type_align): Only handle vector override case.
11424 (arm_push_dummy_call): Use type_align.
11425 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11426
11427 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11428
11429 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11430 case.
11431 (pass_on_stack): Use type_align.
11432 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11433 function.
11434
11435 2019-04-23 Tom Tromey <tromey@adacore.com>
11436
11437 * dwarf2read.c (line_header::file_name_at): Remove unused
11438 overload.
11439
11440 2019-04-23 Tom de Vries <tdevries@suse.de>
11441
11442 PR gdb/24438
11443 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11444 invocation.
11445
11446
11447 2019-03-27 Ali Tamur <tamur@google.com>
11448
11449 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11450 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11451 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11452 (dwarf_expr_context::get_addr_index): Likewise
11453 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11454 (symbol_needs_eval_context::get_addr_index): Likewise
11455 (disassemble_dwarf_expression): Add DW_OP_addrx
11456 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11457 (read_cutu_die_from_dwo): Update comment
11458 (skip_one_die): Add DW_FORM_addrx
11459 (read_attribute_value): Likewise
11460 (var_decode_location): Add DW_OP_addrx
11461 (dwarf2_const_value_attr): Add DW_FORM_addrx
11462 (dump_die_shallow): Likewise
11463 (dwarf2_fetch_constant_bytes): Likewise
11464 (decode_locdesc): Add DW_OP_addrx
11465 (skip_form_bytes): Add DW_FORM_addrx
11466
11467 2019-04-22 Ali Tamur <tamur@google.com>
11468
11469 * MAINTAINERS (Write After Approval): Add self.
11470
11471 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11472
11473 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11474 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11475 (open_symbol_file_object): Likewise.
11476 (svr4_default_sos): Add info parameter.
11477 (svr4_read_so_list): Likewise.
11478 (svr4_current_sos_direct): Adjust functions calls to pass down
11479 info.
11480 (svr4_current_sos_1): Add info parameter.
11481 (svr4_current_sos): Call get_svr4_info, pass info down to
11482 svr4_current_sos_1.
11483 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11484 get_svr4_info.
11485 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11486 get_svr4_info.
11487 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11488 to get_svr4_info.
11489 (probes_table_remove_objfile_probes): Likewise.
11490 (register_solib_event_probe): Add info parameter.
11491 (solist_update_incremental): Pass info parameter down to
11492 svr4_read_so_list.
11493 (disable_probes_interface): Add info parameter.
11494 (svr4_handle_solib_event): Pass current_program_space to
11495 get_svr4_info. Adjust disable_probes_interface cleanup.
11496 (svr4_create_probe_breakpoints): Add info parameter, pass it
11497 down to register_solib_event_probe.
11498 (svr4_create_solib_event_breakpoints): Add info parameter,
11499 pass it down to svr4_create_probe_breakpoints.
11500 (enable_break): Pass info down to
11501 svr4_create_solib_event_breakpoints.
11502 (svr4_solib_create_inferior_hook): Pass current_program_space to
11503 get_svr4_info.
11504 (svr4_clear_solib): Likewise.
11505
11506 2019-04-22 Pedro Alves <palves@redhat.com>
11507
11508 * solib-svr4.c (svr4_free_objfile_observer): New.
11509 (probe_and_action::objfile): New field.
11510 (probes_table_htab_remove_objfile_probes)
11511 (probes_table_remove_objfile_probes): New functions.
11512 (register_solib_event_probe): Add 'objfile' parameter. Store it
11513 in the new probe_and_action. Don't store the probe in 'lookup'.
11514 (svr4_create_probe_breakpoints): Pass objfile to
11515 register_solib_event_probe.
11516 (_initialize_svr4_solib): Register a free_objfile observer.
11517
11518 2019-04-19 Tom Tromey <tom@tromey.com>
11519
11520 * common/queue.h: Remove.
11521
11522 2019-04-19 Tom Tromey <tom@tromey.com>
11523
11524 * event-loop.c: Don't include "common/queue.h".
11525
11526 2019-04-19 Tom Tromey <tom@tromey.com>
11527
11528 * remote.c (remote_target): Use delete.
11529 * remote-notif.h: Include <list>, not "common/queue.h".
11530 (notif_client_p): Remove typedef.
11531 (remote_notif_state): Add constructor, destructor, initializer.
11532 <notif_queue>: Now a std::list.
11533 (remote_notif_state_xfree): Don't declare.
11534 * remote-notif.c (remote_notif_process, handle_notification)
11535 (remote_notif_state_allocate): Update.
11536 (~remote_notif_state): Rename from remote_notif_state_xfree.
11537
11538 2019-04-19 Tom Tromey <tom@tromey.com>
11539
11540 * symfile.c (reread_symbols): Update.
11541 * objfiles.c (objfile_register_static_link)
11542 (objfile_lookup_static_link): Update
11543 (~objfile) Don't delete static_links.
11544 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11545
11546 2019-04-19 Tom Tromey <tom@tromey.com>
11547
11548 * type-stack.h (struct type_stack) <insert>: Constify string.
11549 * type-stack.c (type_stack::insert): Constify string.
11550 * gdbtypes.h (lookup_template_type): Update.
11551 (address_space_name_to_int): Update.
11552 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11553 const.
11554 (lookup_template_type): Make name const.
11555 * c-exp.y: Update rules.
11556 (lex_one_token, classify_name, classify_inner_name)
11557 (c_print_token): Update.
11558 * p-exp.y: Update rules.
11559 (yylex): Update.
11560 * f-exp.y: Update rules.
11561 (yylex): Update.
11562 * d-exp.y: Update rules.
11563 (lex_one_token, classify_name, classify_inner_name): Update.
11564 * parse.c (write_dollar_variable, copy_name): Return std::string.
11565 * parser-defs.h (copy_name): Change return type.
11566 * m2-exp.y: Update rules.
11567 (yylex): Update.
11568 * go-exp.y (lex_one_token): Update.
11569 Update rules.
11570 (classify_unsafe_function, classify_packaged_name)
11571 (classify_name, yylex): Update.
11572
11573 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11574
11575 * configure.ac: add --enable-source-highlight switch.
11576 * configure: Regenerate.
11577 * top.c (print_gdb_version): plumb --enable-source-highlight
11578 status to "show configuration".
11579
11580 2019-04-19 Tom Tromey <tromey@adacore.com>
11581
11582 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11583 Check ADA_TYPE_P.
11584 (empty_record, ada_template_to_fixed_record_type_1)
11585 (template_to_static_fixed_type)
11586 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11587 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11588 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11589 macros.
11590
11591 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11592
11593 PR symtab/24423:
11594 * source.c (print_source_lines_base): Advance "iter" when a
11595 control character is seen.
11596
11597 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11598
11599 * inferior.h (struct infcall_suspend_state_deleter):
11600 Catch exception in destructor to avoid crash.
11601
11602 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11603
11604 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11605 close to the add_com "shell".
11606
11607 2019-04-18 Tom Tromey <tromey@adacore.com>
11608
11609 * process-stratum-target.h (class process_stratum_target)
11610 <stratum>: Add "final".
11611
11612 2019-04-17 Tom Tromey <tromey@adacore.com>
11613
11614 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11615 against nullptr before use.
11616
11617 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11618
11619 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11620
11621 2019-04-17 Jim Wilson <jimw@sifive.com>
11622 Andrew Burgess <andrew.burgess@embecosm.com>
11623
11624 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11625 code read might fail, assume 4-byte breakpoint in that case.
11626
11627 2019-04-15 Leszek Swirski <leszeks@google.com>
11628
11629 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11630 rather than a hand-rolled POD check when checking for forced MEMORY
11631 classification.
11632
11633 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11634
11635 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11636 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11637 function.
11638 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11639 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11640 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11641 declaration.
11642
11643 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11644
11645 * aarch64-linux-nat.c
11646 (aarch64_linux_nat_target::thread_architecture): Add override.
11647 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11648 each VQ.
11649
11650 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11651
11652 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11653
11654 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11655
11656 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11657 target types of size 96-bits, add some additional comments, and
11658 check that the builtin type we found was the correct size.
11659
11660 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11661
11662 * utils.c (prompt_for_continue): Don't restore the styling at the
11663 end, as applied_style has the wrong value. This fixes styling in
11664 long lists of file names that are interrupted by the "Continue?"
11665 prompt.
11666
11667 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11668
11669 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11670 * c-lang.c (c_language_defn): Likewise.
11671 (cplus_language_defn): Likewise.
11672 (asm_language_defn): Likewise.
11673 (minimal_language_defn): Likewise.
11674 * d-lang.c (d_language_defn): Likewise.
11675 * f-lang.c (f_language_defn): Likewise.
11676 * go-lang.c (go_language_defn): Likewise.
11677 * language.c (unknown_language_defn): Likewise.
11678 (auto_language_defn): Likewise.
11679 * language.h (struct language_defn): Remove la_magic field.
11680 (LANG_MAGIC): Delete.
11681 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11682 * objc-lang.c (objc_language_defn): Likewise.
11683 * opencl-lang.c (opencl_language_defn): Likewise.
11684 * p-lang.c (pascal_language_defn): Likewise.
11685 * rust-lang.c (rust_language_defn): Likewise.
11686
11687 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11688
11689 * riscv-tdep.c (riscv_type_align): New function.
11690 (riscv_type_alignment): Delete.
11691 (riscv_arg_location): Use 'type_align'.
11692 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11693
11694 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11695
11696 * gdbtypes.c (type_align): A struct with no non-static fields also
11697 has alignment of 1.
11698
11699 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11700
11701 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11702 component to 0.
11703 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11704 member.
11705 (riscv_struct_info::analyse): New implementation using new
11706 analyse_inner member function.
11707 (riscv_struct_info::field_offset): New member function.
11708 (riscv_struct_info::m_offsets): New member variable.
11709 (riscv_struct_info::analyse_inner): New private member function,
11710 takes the old implementation of riscv_struct_info::analyse but
11711 extended to track field offsets.
11712 (riscv_call_arg_struct): Update the struct folding special cases
11713 to handle cases where empty C++ structs, which are non-zero
11714 length, are found.
11715 (riscv_arg_location): Initialise the length of each location, a
11716 non-zero length now indicates the location is in use.
11717 (riscv_push_dummy_call): Allow for the first location having a
11718 non-zero offset when setting up arguments.
11719 (riscv_return_value): Likewise, but for return values.
11720
11721 2019-04-11 Tom Tromey <tromey@adacore.com>
11722
11723 * utils.c (internal_vproblem): Make "msg" const.
11724
11725 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11726
11727 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11728 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11729 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11730 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11731
11732 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11733
11734 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11735 function.
11736 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11737 of amd64_collect_native_gregset.
11738 (amd64_linux_nat_target::store_registers): Likewise.
11739
11740 2019-04-10 Tom Tromey <tom@tromey.com>
11741
11742 * symtab.c (lookup_global_symbol_from_objfile)
11743 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11744 * objfiles.h (class separate_debug_iterator): New.
11745 (class separate_debug_range): New.
11746 (struct objfile) <separate_debug_objfiles>: New method.
11747 (objfile_separate_debug_iterate): Don't declare.
11748 * objfiles.c (separate_debug_iterator::operator++): Rename from
11749 objfile_separate_debug_iterate.
11750 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11751 iterator.
11752 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11753 iterator.
11754
11755 2019-04-10 Tom Tromey <tom@tromey.com>
11756
11757 * symfile.c (reread_symbols): Remove old comment.
11758 * objfiles.c (free_all_objfiles): Fix a typo.
11759
11760 2019-04-10 Tom Tromey <tom@tromey.com>
11761
11762 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11763 * minsyms.c (lookup_minimal_symbol): Use foreach.
11764 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11765 (lookup_minimal_symbol_solib_trampoline): Likewise.
11766 * symfile.c (reread_symbols): Use foreach.
11767
11768 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11769 Tom Tromey <tromey@adacore.com>
11770
11771 PR rust/24414:
11772 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11773 (rust_lex_int_test): Change "value" to be LONGEST.
11774 (rust_lex_tests): Add test for long integer literal.
11775
11776 2019-04-09 Tom Tromey <tromey@adacore.com>
11777
11778 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11779 to bool.
11780 (extended_remote_target::attach): Update.
11781 (remote_target::remote_notice_new_inferior): Update.
11782 (remote_target::add_current_inferior_and_thread): Update.
11783 * inferior.c (exit_inferior_1): Use "false".
11784 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11785
11786 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11787
11788 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11789 the "start" command.
11790
11791 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11792
11793 * python/py-inferior.c (infpy_thread_from_thread_handle):
11794 Adjust comments to reflect renaming of thread_from_thread_handle
11795 to thread_from_handle. Adjust keywords. Fix type error message.
11796 (inferior_object_methods): Add thread_from_handle. Retain
11797 thread_from_thread_handle, but mark it as deprecated.
11798
11799 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11800
11801 * gdbthread.h (find_thread_by_handle): Revise declaration.
11802 * thread.c (find_thread_by_handle): Likewise. Adjust
11803 implementation too.
11804 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11805 support for buffer objects as handles.
11806
11807 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11808
11809 * python/py-infthread.c (thpy_thread_handle): New function.
11810 (thread_object_methods): Register thpy_thread_handle.
11811
11812 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11813
11814 * gdbthread.h (thread_to_thread_handle): Declare.
11815 * thread.c (gdbtypes.h): Include.
11816 (thread_to_thread_handle): New function.
11817
11818 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11819 (target_thread_info_to_thread_handle): Declare.
11820 * target.c (target_thread_info_to_thread_handle): New function.
11821 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11822 * target-delegates.c: Regenerate.
11823
11824 * linux-thread-db.c (class thread_db_target): Add method
11825 thread_info_to_thread_handle.
11826 (thread_db_target::thread_info_to_thread_handle): Define.
11827 * remote.c (class remote_target): Add new method
11828 thread_info_to_thread_handle.
11829 (remote_target::thread_info_to_thread_handle): Define.
11830
11831 2019-04-08 Pedro Alves <palves@redhat.com>
11832
11833 * common/common-exceptions.c (throw_exception): Don't create
11834 named object to throw; throw directly.
11835 (throw_it): Likewise. Don't initialize gdb_exception::message
11836 here, with new; pass FMT and AP to the ctor instead.
11837 * common/common-exceptions.h: Include <string>.
11838 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11839 const char *, va_list)): New ctor. Use std::make_shared.
11840 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11841 errors)): Delete.
11842 (gdb_exception_error::gdb_exception_error(enum errors, const char
11843 *, va_list)): New.
11844 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11845 Add assertion.
11846 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11847 errors)): Delete.
11848 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11849 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11850 Add assertion.
11851
11852 2019-04-08 Tom Tromey <tom@tromey.com>
11853
11854 * valops.c (value_rtti_indirect_type): Replace throw_exception
11855 with throw.
11856 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11857 with throw.
11858 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11859 throw.
11860 * target.c (target_translate_tls_address): Replace throw_exception
11861 with throw.
11862 * stack.c (frame_apply_command_count): Replace throw_exception
11863 with throw.
11864 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11865 throw.
11866 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11867 with throw.
11868 * rs6000-tdep.c (rs6000_frame_cache)
11869 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11870 * remote.c: Replace throw_exception with throw.
11871 * record-full.c (record_full_message, record_full_wait_1)
11872 (record_full_restore): Replace throw_exception with throw.
11873 * record-btrace.c:
11874 (get_thread_current_frame_id, record_btrace_start_replaying)
11875 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11876 (cmd_record_btrace_start): Replace throw_exception with throw.
11877 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11878 throw.
11879 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11880 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11881 * linespec.c:
11882 (find_linespec_symbols): Replace throw_exception with throw.
11883 * infrun.c (displaced_step_prepare, resume): Replace
11884 throw_exception with throw.
11885 * infcmd.c (post_create_inferior): Replace throw_exception with
11886 throw.
11887 * inf-loop.c (inferior_event_handler): Replace throw_exception
11888 with throw.
11889 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11890 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11891 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11892 (get_prev_frame_always, get_frame_pc_if_available)
11893 (get_frame_address_in_block_if_available, get_frame_language):
11894 Replace throw_exception with throw.
11895 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11896 throw_exception with throw.
11897 * eval.c (fetch_subexp_value, evaluate_var_value)
11898 (evaluate_funcall, evaluate_subexp_standard): Replace
11899 throw_exception with throw.
11900 * dwarf2loc.c (call_site_find_chain)
11901 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11902 Replace throw_exception with throw.
11903 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11904 with throw.
11905 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11906 throw.
11907 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11908 * completer.c (complete_line_internal): Replace throw_exception
11909 with throw.
11910 * compile/compile-object-run.c (compile_object_run): Replace
11911 throw_exception with throw.
11912 * cli/cli-script.c (process_next_line): Replace throw_exception
11913 with throw.
11914 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11915 (btrace_enable, btrace_maint_update_pt_packets): Replace
11916 throw_exception with throw.
11917 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11918 throw_exception with throw.
11919 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11920 throw_exception with throw.
11921 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11922 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11923 * aarch64-tdep.c (aarch64_make_prologue_cache)
11924 (aarch64_make_stub_cache): Replace throw_exception with throw.
11925
11926 2019-04-08 Tom Tromey <tom@tromey.com>
11927
11928 * common/common-exceptions.c (throw_exception): Rename from
11929 throw_exception_cxx. Remove old copy. Make argument const.
11930 (throw_it): Create and throw exception objects directly.
11931 * common/common-exceptions.h (throw_exception): Make argument
11932 const.
11933 (struct gdb_exception_error): Add constructor.
11934 (struct gdb_exception_quit): Add constructor.
11935
11936 2019-04-08 Tom Tromey <tom@tromey.com>
11937
11938 * common/common-exceptions.h (exception_rethrow): Don't declare.
11939 (TRY_SJLJ): Update comment.
11940 (TRY, CATCH, END_CATCH): Remove.
11941 * common/common-exceptions.c (exception_rethrow): Remove.
11942
11943 2019-04-08 Tom Tromey <tom@tromey.com>
11944
11945 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11946 Remove.
11947 (gdb_exception_error): Rename from
11948 gdb_exception_RETURN_MASK_ERROR.
11949 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11950 (gdb_quit_bad_alloc): Update.
11951 * aarch64-tdep.c: Update.
11952 * ada-lang.c: Update.
11953 * ada-typeprint.c: Update.
11954 * ada-valprint.c: Update.
11955 * amd64-tdep.c: Update.
11956 * arch-utils.c: Update.
11957 * break-catch-throw.c: Update.
11958 * breakpoint.c: Update.
11959 * btrace.c: Update.
11960 * c-varobj.c: Update.
11961 * cli/cli-cmds.c: Update.
11962 * cli/cli-interp.c: Update.
11963 * cli/cli-script.c: Update.
11964 * common/common-exceptions.c: Update.
11965 * common/new-op.c: Update.
11966 * common/selftest.c: Update.
11967 * compile/compile-c-symbols.c: Update.
11968 * compile/compile-cplus-symbols.c: Update.
11969 * compile/compile-object-load.c: Update.
11970 * compile/compile-object-run.c: Update.
11971 * completer.c: Update.
11972 * corelow.c: Update.
11973 * cp-abi.c: Update.
11974 * cp-support.c: Update.
11975 * cp-valprint.c: Update.
11976 * darwin-nat.c: Update.
11977 * disasm-selftests.c: Update.
11978 * dtrace-probe.c: Update.
11979 * dwarf-index-cache.c: Update.
11980 * dwarf-index-write.c: Update.
11981 * dwarf2-frame-tailcall.c: Update.
11982 * dwarf2-frame.c: Update.
11983 * dwarf2loc.c: Update.
11984 * dwarf2read.c: Update.
11985 * eval.c: Update.
11986 * event-loop.c: Update.
11987 * event-top.c: Update.
11988 * exec.c: Update.
11989 * f-valprint.c: Update.
11990 * fbsd-tdep.c: Update.
11991 * frame-unwind.c: Update.
11992 * frame.c: Update.
11993 * gdbtypes.c: Update.
11994 * gnu-v3-abi.c: Update.
11995 * guile/guile-internal.h: Update.
11996 * guile/scm-block.c: Update.
11997 * guile/scm-breakpoint.c: Update.
11998 * guile/scm-cmd.c: Update.
11999 * guile/scm-disasm.c: Update.
12000 * guile/scm-frame.c: Update.
12001 * guile/scm-lazy-string.c: Update.
12002 * guile/scm-math.c: Update.
12003 * guile/scm-param.c: Update.
12004 * guile/scm-ports.c: Update.
12005 * guile/scm-pretty-print.c: Update.
12006 * guile/scm-symbol.c: Update.
12007 * guile/scm-symtab.c: Update.
12008 * guile/scm-type.c: Update.
12009 * guile/scm-value.c: Update.
12010 * i386-linux-tdep.c: Update.
12011 * i386-tdep.c: Update.
12012 * inf-loop.c: Update.
12013 * infcall.c: Update.
12014 * infcmd.c: Update.
12015 * infrun.c: Update.
12016 * jit.c: Update.
12017 * language.c: Update.
12018 * linespec.c: Update.
12019 * linux-fork.c: Update.
12020 * linux-nat.c: Update.
12021 * linux-tdep.c: Update.
12022 * linux-thread-db.c: Update.
12023 * main.c: Update.
12024 * mi/mi-cmd-break.c: Update.
12025 * mi/mi-cmd-stack.c: Update.
12026 * mi/mi-interp.c: Update.
12027 * mi/mi-main.c: Update.
12028 * objc-lang.c: Update.
12029 * p-valprint.c: Update.
12030 * parse.c: Update.
12031 * ppc-linux-tdep.c: Update.
12032 * printcmd.c: Update.
12033 * python/py-arch.c: Update.
12034 * python/py-breakpoint.c: Update.
12035 * python/py-cmd.c: Update.
12036 * python/py-finishbreakpoint.c: Update.
12037 * python/py-frame.c: Update.
12038 * python/py-framefilter.c: Update.
12039 * python/py-gdb-readline.c: Update.
12040 * python/py-inferior.c: Update.
12041 * python/py-infthread.c: Update.
12042 * python/py-lazy-string.c: Update.
12043 * python/py-linetable.c: Update.
12044 * python/py-objfile.c: Update.
12045 * python/py-param.c: Update.
12046 * python/py-prettyprint.c: Update.
12047 * python/py-progspace.c: Update.
12048 * python/py-record-btrace.c: Update.
12049 * python/py-record.c: Update.
12050 * python/py-symbol.c: Update.
12051 * python/py-type.c: Update.
12052 * python/py-unwind.c: Update.
12053 * python/py-utils.c: Update.
12054 * python/py-value.c: Update.
12055 * python/python.c: Update.
12056 * record-btrace.c: Update.
12057 * record-full.c: Update.
12058 * remote-fileio.c: Update.
12059 * remote.c: Update.
12060 * riscv-tdep.c: Update.
12061 * rs6000-aix-tdep.c: Update.
12062 * rs6000-tdep.c: Update.
12063 * rust-exp.y: Update.
12064 * rust-lang.c: Update.
12065 * s390-tdep.c: Update.
12066 * selftest-arch.c: Update.
12067 * solib-dsbt.c: Update.
12068 * solib-frv.c: Update.
12069 * solib-spu.c: Update.
12070 * solib-svr4.c: Update.
12071 * solib.c: Update.
12072 * sparc64-linux-tdep.c: Update.
12073 * stack.c: Update.
12074 * symfile-mem.c: Update.
12075 * symmisc.c: Update.
12076 * target.c: Update.
12077 * thread.c: Update.
12078 * top.c: Update.
12079 * tracefile-tfile.c: Update.
12080 * tui/tui.c: Update.
12081 * typeprint.c: Update.
12082 * unittests/cli-utils-selftests.c: Update.
12083 * unittests/parse-connection-spec-selftests.c: Update.
12084 * valops.c: Update.
12085 * valprint.c: Update.
12086 * value.c: Update.
12087 * varobj.c: Update.
12088 * windows-nat.c: Update.
12089 * x86-linux-nat.c: Update.
12090 * xml-support.c: Update.
12091
12092 2019-04-08 Tom Tromey <tom@tromey.com>
12093
12094 * xml-support.c: Use C++ exception handling.
12095 * x86-linux-nat.c: Use C++ exception handling.
12096 * windows-nat.c: Use C++ exception handling.
12097 * varobj.c: Use C++ exception handling.
12098 * value.c: Use C++ exception handling.
12099 * valprint.c: Use C++ exception handling.
12100 * valops.c: Use C++ exception handling.
12101 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12102 handling.
12103 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12104 * typeprint.c: Use C++ exception handling.
12105 * tui/tui.c: Use C++ exception handling.
12106 * tracefile-tfile.c: Use C++ exception handling.
12107 * top.c: Use C++ exception handling.
12108 * thread.c: Use C++ exception handling.
12109 * target.c: Use C++ exception handling.
12110 * symmisc.c: Use C++ exception handling.
12111 * symfile-mem.c: Use C++ exception handling.
12112 * stack.c: Use C++ exception handling.
12113 * sparc64-linux-tdep.c: Use C++ exception handling.
12114 * solib.c: Use C++ exception handling.
12115 * solib-svr4.c: Use C++ exception handling.
12116 * solib-spu.c: Use C++ exception handling.
12117 * solib-frv.c: Use C++ exception handling.
12118 * solib-dsbt.c: Use C++ exception handling.
12119 * selftest-arch.c: Use C++ exception handling.
12120 * s390-tdep.c: Use C++ exception handling.
12121 * rust-lang.c: Use C++ exception handling.
12122 * rust-exp.y: Use C++ exception handling.
12123 * rs6000-tdep.c: Use C++ exception handling.
12124 * rs6000-aix-tdep.c: Use C++ exception handling.
12125 * riscv-tdep.c: Use C++ exception handling.
12126 * remote.c: Use C++ exception handling.
12127 * remote-fileio.c: Use C++ exception handling.
12128 * record-full.c: Use C++ exception handling.
12129 * record-btrace.c: Use C++ exception handling.
12130 * python/python.c: Use C++ exception handling.
12131 * python/py-value.c: Use C++ exception handling.
12132 * python/py-utils.c: Use C++ exception handling.
12133 * python/py-unwind.c: Use C++ exception handling.
12134 * python/py-type.c: Use C++ exception handling.
12135 * python/py-symbol.c: Use C++ exception handling.
12136 * python/py-record.c: Use C++ exception handling.
12137 * python/py-record-btrace.c: Use C++ exception handling.
12138 * python/py-progspace.c: Use C++ exception handling.
12139 * python/py-prettyprint.c: Use C++ exception handling.
12140 * python/py-param.c: Use C++ exception handling.
12141 * python/py-objfile.c: Use C++ exception handling.
12142 * python/py-linetable.c: Use C++ exception handling.
12143 * python/py-lazy-string.c: Use C++ exception handling.
12144 * python/py-infthread.c: Use C++ exception handling.
12145 * python/py-inferior.c: Use C++ exception handling.
12146 * python/py-gdb-readline.c: Use C++ exception handling.
12147 * python/py-framefilter.c: Use C++ exception handling.
12148 * python/py-frame.c: Use C++ exception handling.
12149 * python/py-finishbreakpoint.c: Use C++ exception handling.
12150 * python/py-cmd.c: Use C++ exception handling.
12151 * python/py-breakpoint.c: Use C++ exception handling.
12152 * python/py-arch.c: Use C++ exception handling.
12153 * printcmd.c: Use C++ exception handling.
12154 * ppc-linux-tdep.c: Use C++ exception handling.
12155 * parse.c: Use C++ exception handling.
12156 * p-valprint.c: Use C++ exception handling.
12157 * objc-lang.c: Use C++ exception handling.
12158 * mi/mi-main.c: Use C++ exception handling.
12159 * mi/mi-interp.c: Use C++ exception handling.
12160 * mi/mi-cmd-stack.c: Use C++ exception handling.
12161 * mi/mi-cmd-break.c: Use C++ exception handling.
12162 * main.c: Use C++ exception handling.
12163 * linux-thread-db.c: Use C++ exception handling.
12164 * linux-tdep.c: Use C++ exception handling.
12165 * linux-nat.c: Use C++ exception handling.
12166 * linux-fork.c: Use C++ exception handling.
12167 * linespec.c: Use C++ exception handling.
12168 * language.c: Use C++ exception handling.
12169 * jit.c: Use C++ exception handling.
12170 * infrun.c: Use C++ exception handling.
12171 * infcmd.c: Use C++ exception handling.
12172 * infcall.c: Use C++ exception handling.
12173 * inf-loop.c: Use C++ exception handling.
12174 * i386-tdep.c: Use C++ exception handling.
12175 * i386-linux-tdep.c: Use C++ exception handling.
12176 * guile/scm-value.c: Use C++ exception handling.
12177 * guile/scm-type.c: Use C++ exception handling.
12178 * guile/scm-symtab.c: Use C++ exception handling.
12179 * guile/scm-symbol.c: Use C++ exception handling.
12180 * guile/scm-pretty-print.c: Use C++ exception handling.
12181 * guile/scm-ports.c: Use C++ exception handling.
12182 * guile/scm-param.c: Use C++ exception handling.
12183 * guile/scm-math.c: Use C++ exception handling.
12184 * guile/scm-lazy-string.c: Use C++ exception handling.
12185 * guile/scm-frame.c: Use C++ exception handling.
12186 * guile/scm-disasm.c: Use C++ exception handling.
12187 * guile/scm-cmd.c: Use C++ exception handling.
12188 * guile/scm-breakpoint.c: Use C++ exception handling.
12189 * guile/scm-block.c: Use C++ exception handling.
12190 * guile/guile-internal.h: Use C++ exception handling.
12191 * gnu-v3-abi.c: Use C++ exception handling.
12192 * gdbtypes.c: Use C++ exception handling.
12193 * frame.c: Use C++ exception handling.
12194 * frame-unwind.c: Use C++ exception handling.
12195 * fbsd-tdep.c: Use C++ exception handling.
12196 * f-valprint.c: Use C++ exception handling.
12197 * exec.c: Use C++ exception handling.
12198 * event-top.c: Use C++ exception handling.
12199 * event-loop.c: Use C++ exception handling.
12200 * eval.c: Use C++ exception handling.
12201 * dwarf2read.c: Use C++ exception handling.
12202 * dwarf2loc.c: Use C++ exception handling.
12203 * dwarf2-frame.c: Use C++ exception handling.
12204 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12205 * dwarf-index-write.c: Use C++ exception handling.
12206 * dwarf-index-cache.c: Use C++ exception handling.
12207 * dtrace-probe.c: Use C++ exception handling.
12208 * disasm-selftests.c: Use C++ exception handling.
12209 * darwin-nat.c: Use C++ exception handling.
12210 * cp-valprint.c: Use C++ exception handling.
12211 * cp-support.c: Use C++ exception handling.
12212 * cp-abi.c: Use C++ exception handling.
12213 * corelow.c: Use C++ exception handling.
12214 * completer.c: Use C++ exception handling.
12215 * compile/compile-object-run.c: Use C++ exception handling.
12216 * compile/compile-object-load.c: Use C++ exception handling.
12217 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12218 * compile/compile-c-symbols.c: Use C++ exception handling.
12219 * common/selftest.c: Use C++ exception handling.
12220 * common/new-op.c: Use C++ exception handling.
12221 * cli/cli-script.c: Use C++ exception handling.
12222 * cli/cli-interp.c: Use C++ exception handling.
12223 * cli/cli-cmds.c: Use C++ exception handling.
12224 * c-varobj.c: Use C++ exception handling.
12225 * btrace.c: Use C++ exception handling.
12226 * breakpoint.c: Use C++ exception handling.
12227 * break-catch-throw.c: Use C++ exception handling.
12228 * arch-utils.c: Use C++ exception handling.
12229 * amd64-tdep.c: Use C++ exception handling.
12230 * ada-valprint.c: Use C++ exception handling.
12231 * ada-typeprint.c: Use C++ exception handling.
12232 * ada-lang.c: Use C++ exception handling.
12233 * aarch64-tdep.c: Use C++ exception handling.
12234
12235 2019-04-08 Tom Tromey <tom@tromey.com>
12236
12237 * xml-support.c (gdb_xml_parser::parse): Update.
12238 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12239 * value.c (show_convenience): Update.
12240 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12241 (test_parse_flags_qcs): Update.
12242 * thread.c (thr_try_catch_cmd): Update.
12243 * target.c (target_translate_tls_address): Update.
12244 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12245 (info_frame_command_core, frame_apply_command_count): Update.
12246 * rust-exp.y (rust_lex_exception_test): Update.
12247 * riscv-tdep.c (riscv_print_one_register_info): Update.
12248 * remote.c (remote_target::enable_btrace): Update.
12249 * record-btrace.c (record_btrace_enable_warn): Update.
12250 * python/py-utils.c (gdbpy_convert_exception): Update.
12251 * printcmd.c (do_one_display, print_variable_and_value): Update.
12252 * mi/mi-main.c (mi_print_exception): Update.
12253 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12254 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12255 * linux-nat.c (linux_nat_target::attach): Update.
12256 * linux-fork.c (class scoped_switch_fork_info): Update.
12257 * infrun.c (displaced_step_prepare): Update.
12258 * infcall.c (call_function_by_hand_dummy): Update.
12259 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12260 * gnu-v3-abi.c (print_one_vtable): Update.
12261 * frame.c (get_prev_frame_always): Update.
12262 * f-valprint.c (info_common_command_for_block): Update.
12263 * exec.c (try_open_exec_file): Update.
12264 * exceptions.c (print_exception, exception_print)
12265 (exception_fprintf, exception_print_same): Update.
12266 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12267 * dwarf-index-cache.c (index_cache::store)
12268 (index_cache::lookup_gdb_index): Update.
12269 * darwin-nat.c (maybe_cache_shell): Update.
12270 * cp-valprint.c (cp_print_value_fields): Update.
12271 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12272 (gcc_cplus_symbol_address): Update.
12273 * compile/compile-c-symbols.c (gcc_convert_symbol)
12274 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12275 * common/selftest.c: Update.
12276 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12277 a std::string.
12278 (exception_try_scope_entry, exception_try_scope_exit): Don't
12279 declare.
12280 (struct exception_try_scope): Remove.
12281 (TRY): Don't use exception_try_scope.
12282 (struct gdb_exception): Add constructor, operator=.
12283 <what>: New method.
12284 (struct gdb_exception_RETURN_MASK_ALL)
12285 (struct gdb_exception_RETURN_MASK_ERROR)
12286 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12287 (struct gdb_quit_bad_alloc): Update.
12288 * common/common-exceptions.c (exception_none): Change
12289 initializer.
12290 (struct catcher) <state, exception>: Initialize inline.
12291 <prev>: Remove member.
12292 (current_catcher): Remove.
12293 (catchers): New global.
12294 (exceptions_state_mc_init): Simplify.
12295 (catcher_pop): Remove.
12296 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12297 (try_scope_depth, exception_try_scope_entry)
12298 (exception_try_scope_exit): Remove.
12299 (throw_exception_sjlj): Update.
12300 (exception_messages, exception_messages_size): Remove.
12301 (throw_it): Simplify.
12302 (gdb_exception_sliced_copy): Remove.
12303 (throw_exception_cxx): Update.
12304 * cli/cli-script.c (script_from_file): Update.
12305 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12306 Update.
12307 * ada-valprint.c (ada_val_print): Update.
12308 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12309 (create_excep_cond_exprs): Update.
12310
12311 2019-04-08 Tom Tromey <tom@tromey.com>
12312
12313 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12314 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12315 (TRY, CATCH, END_CATCH): Remove some definitions.
12316 * common/common-exceptions.c: Don't use GDB_XCPT.
12317 (catcher_list_size): Remove.
12318 (throw_exception, throw_it): Simplify.
12319
12320 2019-04-05 Tom Tromey <tom@tromey.com>
12321
12322 Revert the header-sorting patch.
12323 * ft32-tdep.c: Revert.
12324 * frv-tdep.c: Revert.
12325 * frv-linux-tdep.c: Revert.
12326 * frame.c: Revert.
12327 * frame-unwind.c: Revert.
12328 * frame-base.c: Revert.
12329 * fork-child.c: Revert.
12330 * findvar.c: Revert.
12331 * findcmd.c: Revert.
12332 * filesystem.c: Revert.
12333 * filename-seen-cache.h: Revert.
12334 * filename-seen-cache.c: Revert.
12335 * fbsd-tdep.c: Revert.
12336 * fbsd-nat.h: Revert.
12337 * fbsd-nat.c: Revert.
12338 * f-valprint.c: Revert.
12339 * f-typeprint.c: Revert.
12340 * f-lang.c: Revert.
12341 * extension.h: Revert.
12342 * extension.c: Revert.
12343 * extension-priv.h: Revert.
12344 * expprint.c: Revert.
12345 * exec.h: Revert.
12346 * exec.c: Revert.
12347 * exceptions.c: Revert.
12348 * event-top.c: Revert.
12349 * event-loop.c: Revert.
12350 * eval.c: Revert.
12351 * elfread.c: Revert.
12352 * dwarf2read.h: Revert.
12353 * dwarf2read.c: Revert.
12354 * dwarf2loc.c: Revert.
12355 * dwarf2expr.h: Revert.
12356 * dwarf2expr.c: Revert.
12357 * dwarf2-frame.c: Revert.
12358 * dwarf2-frame-tailcall.c: Revert.
12359 * dwarf-index-write.h: Revert.
12360 * dwarf-index-write.c: Revert.
12361 * dwarf-index-common.c: Revert.
12362 * dwarf-index-cache.h: Revert.
12363 * dwarf-index-cache.c: Revert.
12364 * dummy-frame.c: Revert.
12365 * dtrace-probe.c: Revert.
12366 * disasm.h: Revert.
12367 * disasm.c: Revert.
12368 * disasm-selftests.c: Revert.
12369 * dictionary.c: Revert.
12370 * dicos-tdep.c: Revert.
12371 * demangle.c: Revert.
12372 * dcache.h: Revert.
12373 * dcache.c: Revert.
12374 * darwin-nat.h: Revert.
12375 * darwin-nat.c: Revert.
12376 * darwin-nat-info.c: Revert.
12377 * d-valprint.c: Revert.
12378 * d-namespace.c: Revert.
12379 * d-lang.c: Revert.
12380 * ctf.c: Revert.
12381 * csky-tdep.c: Revert.
12382 * csky-linux-tdep.c: Revert.
12383 * cris-tdep.c: Revert.
12384 * cris-linux-tdep.c: Revert.
12385 * cp-valprint.c: Revert.
12386 * cp-support.c: Revert.
12387 * cp-namespace.c: Revert.
12388 * cp-abi.c: Revert.
12389 * corelow.c: Revert.
12390 * corefile.c: Revert.
12391 * continuations.c: Revert.
12392 * completer.h: Revert.
12393 * completer.c: Revert.
12394 * complaints.c: Revert.
12395 * coffread.c: Revert.
12396 * coff-pe-read.c: Revert.
12397 * cli-out.h: Revert.
12398 * cli-out.c: Revert.
12399 * charset.c: Revert.
12400 * c-varobj.c: Revert.
12401 * c-valprint.c: Revert.
12402 * c-typeprint.c: Revert.
12403 * c-lang.c: Revert.
12404 * buildsym.c: Revert.
12405 * buildsym-legacy.c: Revert.
12406 * build-id.h: Revert.
12407 * build-id.c: Revert.
12408 * btrace.c: Revert.
12409 * bsd-uthread.c: Revert.
12410 * breakpoint.h: Revert.
12411 * breakpoint.c: Revert.
12412 * break-catch-throw.c: Revert.
12413 * break-catch-syscall.c: Revert.
12414 * break-catch-sig.c: Revert.
12415 * blockframe.c: Revert.
12416 * block.c: Revert.
12417 * bfin-tdep.c: Revert.
12418 * bfin-linux-tdep.c: Revert.
12419 * bfd-target.c: Revert.
12420 * bcache.c: Revert.
12421 * ax-general.c: Revert.
12422 * ax-gdb.h: Revert.
12423 * ax-gdb.c: Revert.
12424 * avr-tdep.c: Revert.
12425 * auxv.c: Revert.
12426 * auto-load.c: Revert.
12427 * arm-wince-tdep.c: Revert.
12428 * arm-tdep.c: Revert.
12429 * arm-symbian-tdep.c: Revert.
12430 * arm-pikeos-tdep.c: Revert.
12431 * arm-obsd-tdep.c: Revert.
12432 * arm-nbsd-tdep.c: Revert.
12433 * arm-nbsd-nat.c: Revert.
12434 * arm-linux-tdep.c: Revert.
12435 * arm-linux-nat.c: Revert.
12436 * arm-fbsd-tdep.c: Revert.
12437 * arm-fbsd-nat.c: Revert.
12438 * arm-bsd-tdep.c: Revert.
12439 * arch-utils.c: Revert.
12440 * arc-tdep.c: Revert.
12441 * arc-newlib-tdep.c: Revert.
12442 * annotate.h: Revert.
12443 * annotate.c: Revert.
12444 * amd64-windows-tdep.c: Revert.
12445 * amd64-windows-nat.c: Revert.
12446 * amd64-tdep.c: Revert.
12447 * amd64-sol2-tdep.c: Revert.
12448 * amd64-obsd-tdep.c: Revert.
12449 * amd64-obsd-nat.c: Revert.
12450 * amd64-nbsd-tdep.c: Revert.
12451 * amd64-nbsd-nat.c: Revert.
12452 * amd64-nat.c: Revert.
12453 * amd64-linux-tdep.c: Revert.
12454 * amd64-linux-nat.c: Revert.
12455 * amd64-fbsd-tdep.c: Revert.
12456 * amd64-fbsd-nat.c: Revert.
12457 * amd64-dicos-tdep.c: Revert.
12458 * amd64-darwin-tdep.c: Revert.
12459 * amd64-bsd-nat.c: Revert.
12460 * alpha-tdep.c: Revert.
12461 * alpha-obsd-tdep.c: Revert.
12462 * alpha-nbsd-tdep.c: Revert.
12463 * alpha-mdebug-tdep.c: Revert.
12464 * alpha-linux-tdep.c: Revert.
12465 * alpha-linux-nat.c: Revert.
12466 * alpha-bsd-tdep.c: Revert.
12467 * alpha-bsd-nat.c: Revert.
12468 * aix-thread.c: Revert.
12469 * agent.c: Revert.
12470 * addrmap.c: Revert.
12471 * ada-varobj.c: Revert.
12472 * ada-valprint.c: Revert.
12473 * ada-typeprint.c: Revert.
12474 * ada-tasks.c: Revert.
12475 * ada-lang.c: Revert.
12476 * aarch64-tdep.c: Revert.
12477 * aarch64-ravenscar-thread.c: Revert.
12478 * aarch64-newlib-tdep.c: Revert.
12479 * aarch64-linux-tdep.c: Revert.
12480 * aarch64-linux-nat.c: Revert.
12481 * aarch64-fbsd-tdep.c: Revert.
12482 * aarch64-fbsd-nat.c: Revert.
12483 * aarch32-linux-nat.c: Revert.
12484
12485 2019-04-05 Tom Tromey <tom@tromey.com>
12486
12487 * ft32-tdep.c: Sort headers.
12488 * frv-tdep.c: Sort headers.
12489 * frv-linux-tdep.c: Sort headers.
12490 * frame.c: Sort headers.
12491 * frame-unwind.c: Sort headers.
12492 * frame-base.c: Sort headers.
12493 * fork-child.c: Sort headers.
12494 * findvar.c: Sort headers.
12495 * findcmd.c: Sort headers.
12496 * filesystem.c: Sort headers.
12497 * filename-seen-cache.h: Sort headers.
12498 * filename-seen-cache.c: Sort headers.
12499 * fbsd-tdep.c: Sort headers.
12500 * fbsd-nat.h: Sort headers.
12501 * fbsd-nat.c: Sort headers.
12502 * f-valprint.c: Sort headers.
12503 * f-typeprint.c: Sort headers.
12504 * f-lang.c: Sort headers.
12505 * extension.h: Sort headers.
12506 * extension.c: Sort headers.
12507 * extension-priv.h: Sort headers.
12508 * expprint.c: Sort headers.
12509 * exec.h: Sort headers.
12510 * exec.c: Sort headers.
12511 * exceptions.c: Sort headers.
12512 * event-top.c: Sort headers.
12513 * event-loop.c: Sort headers.
12514 * eval.c: Sort headers.
12515 * elfread.c: Sort headers.
12516 * dwarf2read.h: Sort headers.
12517 * dwarf2read.c: Sort headers.
12518 * dwarf2loc.c: Sort headers.
12519 * dwarf2expr.h: Sort headers.
12520 * dwarf2expr.c: Sort headers.
12521 * dwarf2-frame.c: Sort headers.
12522 * dwarf2-frame-tailcall.c: Sort headers.
12523 * dwarf-index-write.h: Sort headers.
12524 * dwarf-index-write.c: Sort headers.
12525 * dwarf-index-common.c: Sort headers.
12526 * dwarf-index-cache.h: Sort headers.
12527 * dwarf-index-cache.c: Sort headers.
12528 * dummy-frame.c: Sort headers.
12529 * dtrace-probe.c: Sort headers.
12530 * disasm.h: Sort headers.
12531 * disasm.c: Sort headers.
12532 * disasm-selftests.c: Sort headers.
12533 * dictionary.c: Sort headers.
12534 * dicos-tdep.c: Sort headers.
12535 * demangle.c: Sort headers.
12536 * dcache.h: Sort headers.
12537 * dcache.c: Sort headers.
12538 * darwin-nat.h: Sort headers.
12539 * darwin-nat.c: Sort headers.
12540 * darwin-nat-info.c: Sort headers.
12541 * d-valprint.c: Sort headers.
12542 * d-namespace.c: Sort headers.
12543 * d-lang.c: Sort headers.
12544 * ctf.c: Sort headers.
12545 * csky-tdep.c: Sort headers.
12546 * csky-linux-tdep.c: Sort headers.
12547 * cris-tdep.c: Sort headers.
12548 * cris-linux-tdep.c: Sort headers.
12549 * cp-valprint.c: Sort headers.
12550 * cp-support.c: Sort headers.
12551 * cp-namespace.c: Sort headers.
12552 * cp-abi.c: Sort headers.
12553 * corelow.c: Sort headers.
12554 * corefile.c: Sort headers.
12555 * continuations.c: Sort headers.
12556 * completer.h: Sort headers.
12557 * completer.c: Sort headers.
12558 * complaints.c: Sort headers.
12559 * coffread.c: Sort headers.
12560 * coff-pe-read.c: Sort headers.
12561 * cli-out.h: Sort headers.
12562 * cli-out.c: Sort headers.
12563 * charset.c: Sort headers.
12564 * c-varobj.c: Sort headers.
12565 * c-valprint.c: Sort headers.
12566 * c-typeprint.c: Sort headers.
12567 * c-lang.c: Sort headers.
12568 * buildsym.c: Sort headers.
12569 * buildsym-legacy.c: Sort headers.
12570 * build-id.h: Sort headers.
12571 * build-id.c: Sort headers.
12572 * btrace.c: Sort headers.
12573 * bsd-uthread.c: Sort headers.
12574 * breakpoint.h: Sort headers.
12575 * breakpoint.c: Sort headers.
12576 * break-catch-throw.c: Sort headers.
12577 * break-catch-syscall.c: Sort headers.
12578 * break-catch-sig.c: Sort headers.
12579 * blockframe.c: Sort headers.
12580 * block.c: Sort headers.
12581 * bfin-tdep.c: Sort headers.
12582 * bfin-linux-tdep.c: Sort headers.
12583 * bfd-target.c: Sort headers.
12584 * bcache.c: Sort headers.
12585 * ax-general.c: Sort headers.
12586 * ax-gdb.h: Sort headers.
12587 * ax-gdb.c: Sort headers.
12588 * avr-tdep.c: Sort headers.
12589 * auxv.c: Sort headers.
12590 * auto-load.c: Sort headers.
12591 * arm-wince-tdep.c: Sort headers.
12592 * arm-tdep.c: Sort headers.
12593 * arm-symbian-tdep.c: Sort headers.
12594 * arm-pikeos-tdep.c: Sort headers.
12595 * arm-obsd-tdep.c: Sort headers.
12596 * arm-nbsd-tdep.c: Sort headers.
12597 * arm-nbsd-nat.c: Sort headers.
12598 * arm-linux-tdep.c: Sort headers.
12599 * arm-linux-nat.c: Sort headers.
12600 * arm-fbsd-tdep.c: Sort headers.
12601 * arm-fbsd-nat.c: Sort headers.
12602 * arm-bsd-tdep.c: Sort headers.
12603 * arch-utils.c: Sort headers.
12604 * arc-tdep.c: Sort headers.
12605 * arc-newlib-tdep.c: Sort headers.
12606 * annotate.h: Sort headers.
12607 * annotate.c: Sort headers.
12608 * amd64-windows-tdep.c: Sort headers.
12609 * amd64-windows-nat.c: Sort headers.
12610 * amd64-tdep.c: Sort headers.
12611 * amd64-sol2-tdep.c: Sort headers.
12612 * amd64-obsd-tdep.c: Sort headers.
12613 * amd64-obsd-nat.c: Sort headers.
12614 * amd64-nbsd-tdep.c: Sort headers.
12615 * amd64-nbsd-nat.c: Sort headers.
12616 * amd64-nat.c: Sort headers.
12617 * amd64-linux-tdep.c: Sort headers.
12618 * amd64-linux-nat.c: Sort headers.
12619 * amd64-fbsd-tdep.c: Sort headers.
12620 * amd64-fbsd-nat.c: Sort headers.
12621 * amd64-dicos-tdep.c: Sort headers.
12622 * amd64-darwin-tdep.c: Sort headers.
12623 * amd64-bsd-nat.c: Sort headers.
12624 * alpha-tdep.c: Sort headers.
12625 * alpha-obsd-tdep.c: Sort headers.
12626 * alpha-nbsd-tdep.c: Sort headers.
12627 * alpha-mdebug-tdep.c: Sort headers.
12628 * alpha-linux-tdep.c: Sort headers.
12629 * alpha-linux-nat.c: Sort headers.
12630 * alpha-bsd-tdep.c: Sort headers.
12631 * alpha-bsd-nat.c: Sort headers.
12632 * aix-thread.c: Sort headers.
12633 * agent.c: Sort headers.
12634 * addrmap.c: Sort headers.
12635 * ada-varobj.c: Sort headers.
12636 * ada-valprint.c: Sort headers.
12637 * ada-typeprint.c: Sort headers.
12638 * ada-tasks.c: Sort headers.
12639 * ada-lang.c: Sort headers.
12640 * aarch64-tdep.c: Sort headers.
12641 * aarch64-ravenscar-thread.c: Sort headers.
12642 * aarch64-newlib-tdep.c: Sort headers.
12643 * aarch64-linux-tdep.c: Sort headers.
12644 * aarch64-linux-nat.c: Sort headers.
12645 * aarch64-fbsd-tdep.c: Sort headers.
12646 * aarch64-fbsd-nat.c: Sort headers.
12647 * aarch32-linux-nat.c: Sort headers.
12648
12649 2019-04-04 Tom Tromey <tom@tromey.com>
12650
12651 * varobj.c (varobj_create): Update.
12652 * rust-exp.y (struct rust_parser) <update_innermost_block,
12653 lookup_symbol>: New methods.
12654 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12655 Rename.
12656 (rust_parser::rust_lookup_type)
12657 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12658 * printcmd.c (display_command, do_one_display): Update.
12659 * parser-defs.h (struct parser_state) <parser_state>: Add
12660 "tracker" parameter.
12661 (block_tracker): New member.
12662 (class innermost_block_tracker) <innermost_block_tracker>: Add
12663 "types" parameter.
12664 <reset>: Remove method.
12665 (innermost_block): Don't declare.
12666 (null_post_parser): Update.
12667 * parse.c (innermost_block): Remove global.
12668 (write_dollar_variable): Update.
12669 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12670 Remove "tracker_types" parameter.
12671 (parse_expression): Add "tracker" parameter.
12672 (parse_expression_for_completion): Update.
12673 (null_post_parser): Add "tracker" parameter.
12674 * p-exp.y: Update rules.
12675 * m2-exp.y: Update rules.
12676 * language.h (struct language_defn) <la_post_parser>: Add
12677 "tracker" parameter.
12678 * go-exp.y: Update rules.
12679 * f-exp.y: Update rules.
12680 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12681 parameter.
12682 * d-exp.y: Update rules.
12683 * c-exp.y: Update rules.
12684 * breakpoint.c (set_breakpoint_condition): Create an
12685 innermost_block_tracker.
12686 (watch_command_1): Likewise.
12687 * ada-lang.c (resolve): Add "tracker" parameter.
12688 (resolve_subexp): Likewise.
12689 * ada-exp.y (write_var_from_sym): Update.
12690
12691 2019-04-04 Tom Tromey <tom@tromey.com>
12692
12693 * type-stack.h: New file.
12694 * type-stack.c: New file.
12695 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12696 type-stack.h.
12697 (insert_into_type_stack, insert_type, push_type, push_type_int)
12698 (insert_type_address_space, pop_type, pop_type_int)
12699 (pop_typelist, pop_type_stack, append_type_stack)
12700 (push_type_stack, get_type_stack, push_typelist)
12701 (follow_type_instance_flags, follow_types): Don't declare.
12702 * parse.c (type_stack): Remove global.
12703 (parse_exp_in_context): Update.
12704 (insert_into_type_stack, insert_type, push_type, push_type_int)
12705 (insert_type_address_space, pop_type, pop_type_int)
12706 (pop_typelist, pop_type_stack, append_type_stack)
12707 (push_type_stack, get_type_stack, push_typelist)
12708 (follow_type_instance_flags, follow_types): Remove (moved to
12709 type-stack.c).
12710 * f-exp.y (type_stack): New global.
12711 Update rules.
12712 (push_kind_type, f_parse): Update.
12713 * d-exp.y (type_stack): New global.
12714 Update rules.
12715 (d_parse): Update.
12716 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12717 Update rules.
12718 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12719 (HFILES_NO_SRCDIR): Add type-stack.h.
12720
12721 2019-04-04 Tom Tromey <tom@tromey.com>
12722
12723 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12724 (rust_parser::convert_ast_to_expression, rust_parse)
12725 (rust_lex_test_completion, rust_lex_tests): Update.
12726 * parser-defs.h (struct expr_completion_state): New.
12727 (struct parser_state) <parser_state>: Add completion parameter.
12728 <mark_struct_expression, mark_completion_tag>: New methods.
12729 <parse_completion, m_completion_state>: New members.
12730 (prefixify_expression, null_post_parser): Update.
12731 (mark_struct_expression, mark_completion_tag): Don't declare.
12732 * parse.c (parse_completion, expout_last_struct)
12733 (expout_tag_completion_type, expout_completion_name): Remove
12734 globals.
12735 (parser_state::mark_struct_expression)
12736 (parser_state::mark_completion_tag): Now methods.
12737 (prefixify_expression): Add last_struct parameter.
12738 (prefixify_subexp): Likewise.
12739 (parse_exp_1): Update.
12740 (parse_exp_in_context): Add cstate parameter. Update.
12741 (parse_expression_for_completion): Create an
12742 expr_completion_state.
12743 (null_post_parser): Add "completion" parameter.
12744 * p-exp.y: Update rules.
12745 (yylex): Update.
12746 * language.h (struct language_defn) <la_post_parser>: Add
12747 "completing" parameter.
12748 * go-exp.y: Update rules.
12749 (lex_one_token): Update.
12750 * expression.h (parse_completion): Don't declare.
12751 * d-exp.y: Update rules.
12752 (lex_one_token): Update rules.
12753 * c-exp.y: Update rules.
12754 (lex_one_token): Update.
12755 * ada-lang.c (resolve): Add "parse_completion" parameter.
12756 (resolve_subexp): Likewise.
12757 (ada_resolve_function): Likewise.
12758
12759 2019-04-04 Tom Tromey <tom@tromey.com>
12760
12761 * parser-defs.h (struct parser_state) <start_arglist,
12762 end_arglist>: New methods.
12763 <arglist_len, m_funcall_chain>: New members.
12764 (arglist_len, start_arglist, end_arglist): Don't declare.
12765 * parse.c (arglist_len, funcall_chain): Remove global.
12766 (start_arglist, end_arglist): Remove functions.
12767 (parse_exp_in_context): Update.
12768 * p-exp.y: Update rules.
12769 * m2-exp.y: Update rules.
12770 * go-exp.y: Update rules.
12771 * f-exp.y: Update rules.
12772 * d-exp.y: Update rules.
12773 * c-exp.y: Update rules.
12774
12775 2019-04-04 Tom Tromey <tom@tromey.com>
12776
12777 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12778 lex_operator, push_back>: New methods.
12779 Update all rules.
12780 (rust_parser::lex_hex, lex_escape): Rename and update.
12781 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12782 (rust_parser::lex_operator): Rename and update.
12783 (rust_parser::lex_number, rustyylex, rustyyerror)
12784 (rust_lex_test_init, rust_lex_test_sequence)
12785 (rust_lex_test_push_back, rust_lex_tests): Update.
12786 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12787 parameter.
12788 <lexptr, prev_lexptr>: New members.
12789 (lexptr, prev_lexptr): Don't declare.
12790 * parse.c (lexptr, prev_lexptr): Remove globals.
12791 (parse_exp_in_context): Update.
12792 * p-exp.y (yylex, yyerror): Update.
12793 * m2-exp.y (parse_number, yylex, yyerror): Update.
12794 * go-exp.y (lex_one_token, yyerror): Update.
12795 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12796 * d-exp.y (lex_one_token, yyerror): Update.
12797 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12798 (lex_one_token, yyerror): Update.
12799 * ada-lex.l (YY_INPUT): Update.
12800 (rewind_to_char): Update.
12801 * ada-exp.y (yyerror): Update.
12802
12803 2019-04-04 Tom Tromey <tom@tromey.com>
12804
12805 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12806 * parser-defs.h (struct parser_state) <parser_state>: Add new
12807 parameter.
12808 <comma_terminates>: New member.
12809 (comma_terminates): Don't declare global.
12810 * parse.c (comma_terminates): Remove global.
12811 (parse_exp_in_context): Update.
12812 * p-exp.y (yylex): Update.
12813 * m2-exp.y (yylex): Update.
12814 * go-exp.y (lex_one_token): Update.
12815 * f-exp.y (yylex): Update.
12816 * d-exp.y (lex_one_token): Update.
12817 * c-exp.y (lex_one_token): Update.
12818 * ada-lex.l: Update.
12819
12820 2019-04-04 Tom Tromey <tom@tromey.com>
12821
12822 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12823 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12824 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12825 * parser-defs.h (paren_depth): Don't declare.
12826 * parse.c (paren_depth): Remove global.
12827 (parse_exp_in_context): Update.
12828 * p-exp.y (paren_depth): New global.
12829 (pascal_parse): Initialize it.
12830 * m2-exp.y (paren_depth): New global.
12831 (m2_parse): Initialize it.
12832 * go-exp.y (paren_depth): New global.
12833 (go_parse): Initialize it.
12834 * f-exp.y (paren_depth): New global.
12835 (f_parse): Initialize it.
12836 * d-exp.y (paren_depth): New global.
12837 (d_parse): Initialize it.
12838 * c-exp.y (paren_depth): New global.
12839 (c_parse): Initialize it.
12840 * ada-lex.l (paren_depth): New global.
12841 (lexer_init): Initialize it.
12842
12843 2019-04-04 Tom Tromey <tom@tromey.com>
12844
12845 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12846 (rust_parser::convert_ast_to_type)
12847 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12848 * parser-defs.h (struct parser_state) <parser_state>: Add
12849 parameters. Initialize new members.
12850 <expression_context_block, expression_context_pc>: New members.
12851 * parse.c (expression_context_block, expression_context_pc):
12852 Remove globals.
12853 (parse_exp_in_context): Update.
12854 * p-exp.y: Update all rules.
12855 (yylex): Update.
12856 * m2-exp.y: Update all rules.
12857 (yylex): Update.
12858 * go-exp.y (yylex): Update.
12859 * f-exp.y (yylex): Update.
12860 * d-exp.y: Update all rules.
12861 (yylex): Update.
12862 * c-exp.y: Update all rules.
12863 (lex_one_token, classify_name, yylex, c_parse): Update.
12864 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12865
12866 2019-04-04 Tom Tromey <tom@tromey.com>
12867
12868 * gdbarch.h, gdbarch.c: Rebuild.
12869 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12870 * stap-probe.h:
12871 (struct stap_parse_info): Replace "parser_state" with
12872 "expr_builder".
12873 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12874 (parser_state): New class.
12875 * parse.c (expr_builder): Rename.
12876 (expr_builder::release): Rename.
12877 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12878 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12879 (write_exp_elt_longcst, write_exp_elt_floatcst)
12880 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12881 (write_exp_string_vector, write_exp_bitstring)
12882 (write_exp_msymbol, mark_struct_expression)
12883 (write_dollar_variable)
12884 (insert_type_address_space, increase_expout_size): Replace
12885 "parser_state" with "expr_builder".
12886 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12887 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12888 "parser_state" with "expr_builder".
12889
12890 2019-04-04 Tom Tromey <tom@tromey.com>
12891
12892 * rust-exp.y: Replace "parse_language" with method call.
12893 * p-exp.y:
12894 (yylex): Replace "parse_language" with method call.
12895 * m2-exp.y:
12896 (yylex): Replace "parse_language" with method call.
12897 * go-exp.y (classify_name): Replace "parse_language" with method
12898 call.
12899 * f-exp.y (yylex): Replace "parse_language" with method call.
12900 * d-exp.y (lex_one_token): Replace "parse_language" with method
12901 call.
12902 * c-exp.y:
12903 (lex_one_token, classify_name, yylex): Replace "parse_language"
12904 with method call.
12905 * ada-exp.y (find_primitive_type, type_char)
12906 (type_system_address): Replace "parse_language" with method call.
12907
12908 2019-04-04 Tom Tromey <tom@tromey.com>
12909
12910 * rust-exp.y: Replace "parse_gdbarch" with method call.
12911 * parse.c (write_dollar_variable, insert_type_address_space):
12912 Replace "parse_gdbarch" with method call.
12913 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12914 call.
12915 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12916 call.
12917 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12918 "parse_gdbarch" with method call.
12919 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12920 with method call.
12921 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12922 "parse_gdbarch" with method call.
12923 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12924 "parse_gdbarch" with method call.
12925 * c-exp.y (parse_type, parse_number, classify_name): Replace
12926 "parse_gdbarch" with method call.
12927 * ada-lex.l: Replace "parse_gdbarch" with method call.
12928 * ada-exp.y (parse_type, find_primitive_type, type_char)
12929 (type_system_address): Replace "parse_gdbarch" with method call.
12930
12931 2019-04-04 Tom Tromey <tom@tromey.com>
12932
12933 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12934 * stap-probe.c (stap_parse_argument): Update.
12935 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12936 initial_size parameter.
12937 * rust-exp.y (rust_lex_tests): Update.
12938 * parse.c (parser_state): Update.
12939 (parse_exp_in_context): Update.
12940 * parser-defs.h (struct parser_state) <parser_state>: Remove
12941 "initial_size" parameter.
12942
12943 2019-04-04 Tom Tromey <tom@tromey.com>
12944
12945 * parser-defs.h (increase_expout_size): Don't declare.
12946 * parse.c (increase_expout_size): Now static.
12947
12948 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12949
12950 * gnu-nat.c (gnu_nat_target::wait): Fix
12951 target_waitstatus_to_string call.
12952
12953 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12954
12955 * eval.c (evaluate_subexp_standard): Handle internal functions
12956 during Fortran function call handling.
12957
12958 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12959
12960 * NEWS: Mention new internal functions.
12961 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12962 (read_base_type): Use dwarf2_init_complex_target_type.
12963 * value.c (creal_internal_fn): New function.
12964 (cimag_internal_fn): New function.
12965 (_initialize_values): Register new internal functions.
12966
12967 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12968
12969 * infrun.c (stop_all_threads): If debug_infrun, always
12970 trace the wait status after wait_one, using
12971 target_waitstatus_to_string and target_pid_to_str.
12972 (handle_inferior_event): Replace various trace of
12973 wait status kind by a single trace.
12974 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12975 wait status kind image by target_waitstatus_to_string.
12976 * target/waitstatus.c (target_waitstatus_to_string): Fix
12977 obsolete comment.
12978
12979 2019-04-01 Tom Tromey <tromey@adacore.com>
12980
12981 PR symtab/23331:
12982 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12983
12984 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12985 Pedro Alves <palves@redhat.com>
12986
12987 * top.c (quit_force): Call 'finalize_values'.
12988 * value.c (finalize_values): New function.
12989 * value.h (finalize_values): Declare.
12990
12991 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12992
12993 * NEWS: Announce $_gdb_major and $_gdb_minor.
12994
12995 * top.c (init_gdb_version_vars): New function.
12996 (gdb_init): Call init_gdb_version_vars.
12997
12998 2019-03-29 Tom Tromey <tromey@adacore.com>
12999
13000 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13001 help text. Remove dead code.
13002
13003 2019-03-29 Keith Seitz <keiths@redhat.com>
13004
13005 From Siddhesh Poyarekar:
13006 * f-lang.h (f77_get_upperbound): Return LONGEST.
13007 (f77_get_lowerbound): Likewise.
13008 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13009 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13010 print them.
13011 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13012 plongest to format print it.
13013 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13014 (f77_get_upperbound): Likewise.
13015 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13016 LOWER_BOUND to LONGEST.
13017 (f77_create_arrayprint_offset_tbl): Likewise.
13018
13019 2019-03-29 Keith Seitz <keiths@redhat.com>
13020
13021 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13022 %s/pulongest for TYPE_LENGTH instead of %d in format
13023 strings.
13024 * ada-typerint.c (ada_print_type): Likewise.
13025 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13026 * compile/compile-c-support.c (generate_register_struct): Likewise.
13027 * gdbtypes.c (recursive_dump_type): Likewise.
13028 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13029 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13030 instead of %d in format strings.
13031 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13032 to std::min to ULONGEST.
13033 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13034 instead of %d in format strings.
13035 * tracepoint.c (info_scope_command): Likewise.
13036 * typeprint.c (print_offset_data::update)
13037 (print_offset_data::finish): Likewise.
13038 * xtensa-tdep.c (xtensa_store_return_value)
13039 (xtensa_push_dummy_call): Likewise.
13040
13041 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13042
13043 * windows-nat.c (display_selector): Fixed format specifications
13044 for 64-bit Cygwin.
13045
13046 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13047
13048 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13049
13050 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13051
13052 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13053 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13054 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13055 (nios2_linux_init_abi): Install it.
13056
13057 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13058
13059 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13060
13061 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13062
13063 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13064
13065 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13066 Tom Tromey <tromey@adacore.com>
13067
13068 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13069
13070 2019-03-26 Joel Brobecker <brobecker@adacore.com>
13071
13072 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13073 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13074 method to compute the bounds of range types. Also print "[evaluated]"
13075 if the bounds' values come from a dynamic evaluation.
13076
13077 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13078
13079 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13080 whitespace when pretty printing is on.
13081
13082 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13083
13084 * ppc-linux-nat.c: Add include.
13085
13086 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13087
13088 * NEWS: Mention AArch64 Pointer Authentication.
13089
13090 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13091
13092 * arm-linux-nat.c: Add include.
13093
13094 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13095
13096 * source-cache.c (source_cache::get_source_lines): Re-read
13097 fullname after calling open_source_file.
13098
13099 2019-03-25 John Baldwin <jhb@FreeBSD.org>
13100
13101 * NEWS: Mention TLS support for FreeBSD.
13102
13103 2019-03-25 Tom Tromey <tromey@adacore.com>
13104
13105 * minsyms.c (BUNCH_SIZE): Update comment.
13106 (~minimal_symbol_reader): Remove old comment.
13107 (compact_minimal_symbols): Update comment.
13108 (minimal_symbol_reader::install): Remove old comment. Update
13109 other comments.
13110
13111 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13112
13113 * s390-linux-nat.c: Add include.
13114
13115 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13116
13117 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13118 Call linux_get_hwcap.
13119 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13120 Likewise.
13121 (aarch64_linux_get_hwcap): Remove function.
13122 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13123 declaration.
13124 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13125 linux_get_hwcap.
13126 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13127 * linux-tdep.c (linux_get_hwcap): Add function.
13128 (linux_get_hwcap2): Likewise.
13129 * linux-tdep.h (linux_get_hwcap): Add declaration.
13130 (linux_get_hwcap2): Likewise.
13131 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13132 (ppc_linux_get_hwcap2): Likewise.
13133 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13134 linux_get_hwcap.
13135 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13136 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13137 (ppc_linux_nat_target::read_description): Likewise.
13138 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13139 * s390-linux-nat.c: Likewise.
13140 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13141
13142 2019-03-24 Tom Tromey <tom@tromey.com>
13143
13144 * ada-lang.c (standard_lookup): Simplify initialization.
13145 (ada_lookup_symbol_nonlocal): Simplify return.
13146 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13147 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13148 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13149 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13150 initialization.
13151 * solib.c (solib_global_lookup): Simplify.
13152 * symtab.c (null_block_symbol): Remove.
13153 (symbol_cache_lookup): Simplify returns.
13154 (lookup_language_this): Simplify returns.
13155 (lookup_symbol_aux): Simplify return.
13156 (lookup_local_symbol): Simplify returns.
13157 (lookup_global_symbol_from_objfile): Simplify return.
13158 (lookup_symbol_in_objfile_symtabs)
13159 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13160 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13161 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13162 * cp-namespace.c (cp_lookup_bare_symbol)
13163 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13164 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13165 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13166 (cp_lookup_symbol_via_imports): Simplify initialization.
13167 (find_symbol_in_baseclass): Likewise.
13168 * symtab.h (null_block_symbol): Remove.
13169 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13170 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13171 (d_lookup_symbol_module): Likewise.
13172 (find_symbol_in_baseclass): Simplify initialization.
13173
13174 2019-03-24 Tom Tromey <tom@tromey.com>
13175
13176 * expression.h: Don't include symtab.h.
13177 (struct block): Forward declare.
13178
13179 2019-03-24 Tom Tromey <tom@tromey.com>
13180
13181 * c-exp.y (typebase): Remove casts.
13182 * gdbtypes.c (lookup_unsigned_typename, )
13183 (lookup_signed_typename): Remove cast.
13184 * eval.c (parse_to_comma_and_eval): Remove cast.
13185 * parse.c (write_dollar_variable): Remove cast.
13186 * block.h (struct block) <superblock>: Now const.
13187 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13188 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13189 (map_block): Make "block" const.
13190 * symfile.h (struct quick_symbol_functions)
13191 <map_matching_symbols>: Constify block argument to "callback".
13192 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13193 const.
13194 (find_pc_sect_compunit_symtab): Make "b" const.
13195 (find_symbol_at_address): Likewise.
13196 (search_symbols): Likewise.
13197 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13198 (dw2_debug_names_lookup_symbol): Likewise.
13199 (dw2_map_matching_symbols): Update.
13200 * p-valprint.c (pascal_val_print): Remove "block".
13201 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13202 (aux_add_nonlocal_symbols): Make "block" const.
13203 (resolve_subexp): Remove cast.
13204 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13205 const.
13206 (iterate_over_file_blocks): Likewise.
13207 * f-exp.y (%union) <bval>: Remove.
13208 * coffread.c (patch_opaque_types): Make "b" const.
13209 * spu-tdep.c (spu_catch_start): Make "block" const.
13210 * c-valprint.c (print_unpacked_pointer): Remove "block".
13211 * symmisc.c (dump_symtab_1): Make "b" const.
13212 (block_depth): Make "block" const.
13213 * d-exp.y (%union) <bval>: Remove.
13214 * cp-support.h (cp_lookup_rtti_type): Update.
13215 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13216 * psymtab.c (psym_lookup_symbol): Make "block" const.
13217 (maintenance_check_psymtabs): Make "b" const.
13218 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13219 (enumerate_locals, enumerate_args): Update.
13220 * python/py-symtab.c (stpy_global_block): Make "block" const.
13221 (stpy_static_block): Likewise.
13222 * inline-frame.c (block_starting_point_at): Make "new_block"
13223 const.
13224 * block.c (find_block_in_blockvector): Make return type const.
13225 (blockvector_for_pc_sect): Make "b" const.
13226 (find_block_in_blockvector): Make "b" const.
13227
13228 2019-03-23 Tom Tromey <tom@tromey.com>
13229
13230 * varobj.c (varobj_create): Update.
13231 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13232 * printcmd.c (display_command, do_one_display): Don't reset
13233 innermost_block.
13234 * parser-defs.h (enum innermost_block_tracker_type): Move to
13235 expression.h.
13236 (innermost_block): Update comment.
13237 * parse.c (parse_exp_1): Add tracker_types parameter.
13238 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13239 tracker_types parameter. Reset innermost_block.
13240 (parse_exp_in_context): Remove.
13241 (parse_expression_for_completion): Update.
13242 * objfiles.c (~objfile): Don't reset expression_context_block or
13243 innermost_block.
13244 * expression.h (enum innermost_block_tracker_type): Move from
13245 parser-defs.h.
13246 (parse_exp_1): Add tracker_types parameter.
13247 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13248 reset innermost_block.
13249
13250 2019-03-23 Tom Tromey <tom@tromey.com>
13251
13252 * objfiles.h: Include bcache.h.
13253
13254 2019-03-23 Tom Tromey <tom@tromey.com>
13255
13256 * linespec.c (get_current_search_block): Use
13257 scoped_restore_current_language.
13258 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13259
13260 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13261 Jiong Wang <jiong.wang@arm.com>
13262
13263 * aarch64-linux-tdep.c
13264 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13265 section.
13266 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13267
13268 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13269 Jiong Wang <jiong.wang@arm.com>
13270
13271 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13272 instructions.
13273 (aarch64_analyze_prologue_test): Add PACIASP test.
13274 (aarch64_prologue_prev_register): Unmask PC value.
13275
13276 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13277 Jiong Wang <jiong.wang@arm.com>
13278
13279 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13280 (aarch64_dwarf2_prev_register): Unmask PC value.
13281 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13282 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13283 DW_CFA_AARCH64_negate_ra_state.
13284 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13285
13286 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13287 Jiong Wang <jiong.wang@arm.com>
13288
13289 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13290 registers.
13291 (aarch64_pseudo_register_name): Likewise.
13292 (aarch64_pseudo_register_type): Likewise.
13293 (aarch64_pseudo_register_reggroup_p): Likewise.
13294 (aarch64_gdbarch_init): Add pauth registers.
13295 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13296 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13297 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13298 (struct gdbarch_tdep): Add regnum for ra_state.
13299
13300 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13301 Jiong Wang <jiong.wang@arm.com>
13302
13303 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13304
13305 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13306 Jiong Wang <jiong.wang@arm.com>
13307
13308 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13309 function.
13310 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13311 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13312 (aarch64_gdbarch_init): Add puth registers.
13313 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13314 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13315 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13316
13317 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13318 Jiong Wang <jiong.wang@arm.com>
13319
13320 * aarch64-linux-nat.c
13321 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13322 * aarch64-linux-tdep.c
13323 (aarch64_linux_core_read_description): Likewise.
13324 (aarch64_linux_get_hwcap): New function.
13325 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13326 (aarch64_linux_get_hwcap): New declaration.
13327
13328 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13329 Jiong Wang <jiong.wang@arm.com>
13330
13331 * aarch64-linux-nat.c
13332 (aarch64_linux_nat_target::read_description): Add pauth param.
13333 * aarch64-linux-tdep.c
13334 (aarch64_linux_core_read_description): Likewise.
13335 * aarch64-tdep.c (struct target_desc): Add in pauth.
13336 (aarch64_read_description): Add pauth param.
13337 (aarch64_gdbarch_init): Likewise.
13338 * aarch64-tdep.h (aarch64_read_description): Likewise.
13339 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13340 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13341 * features/Makefile: Add new files.
13342 * features/aarch64-pauth.c: New file.
13343 * features/aarch64-pauth.xml: New file.
13344
13345 2019-03-20 Tom Tromey <tromey@adacore.com>
13346
13347 * infrun.c (handle_inferior_event): Rename from
13348 handle_inferior_event_1. Create a scoped_value_mark.
13349 (handle_inferior_event): Remove.
13350
13351 2019-03-19 Tom Tromey <tromey@adacore.com>
13352
13353 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13354 * infrun.h (print_stop_event): Add "displays" parameter.
13355 * infrun.c (print_stop_event): Add "displays" parameter.
13356
13357 2019-03-19 Pedro Alves <palves@redhat.com>
13358
13359 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13360 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13361 to -1. Fix TABs vs spaces.
13362 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13363 * tui/tui-out.h (tui_ui_out) Add intro comments.
13364 <m_line, m_start_of_line>: In-class initialize, and add describing
13365 comment.
13366
13367 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13368
13369 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13370 variable names.
13371 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13372
13373 2019-03-18 Pedro Alves <palves@redhat.com>
13374 Eli Zaretskii <eliz@gnu.org>
13375
13376 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13377 m_line and m_start_of_line.
13378
13379 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13380
13381 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13382 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13383 it returns a newline. This fixes a regression in TU mode, whereby
13384 the next line is output on the same screen line as the user input.
13385
13386 2019-03-18 Tom Tromey <tromey@adacore.com>
13387
13388 * minsyms.c (minimal_symbol_reader::install): Remove call to
13389 obstack_blank.
13390
13391 2019-03-18 Pedro Alves <palves@redhat.com>
13392
13393 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13394 New globals.
13395 (apply_style): New, factored out from ...
13396 (apply_ansi_escape): ... this. Handle reverse video mode.
13397 (tui_set_reverse_mode): New function.
13398 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13399 * tui/tui-winsource.c (tui_show_source_line): Use
13400 tui_set_reverse_mode instead of setting A_STANDOUT.
13401 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13402 New setter methods.
13403
13404 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13405
13406 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13407 Handle tabs.
13408
13409 2019-03-18 Tom Tromey <tromey@adacore.com>
13410
13411 * ada-lang.c (empty_array): Add "high" parameter.
13412 (ada_evaluate_subexp): Update.
13413
13414 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13415
13416 * unittests/string_view-selftests.c: Define
13417 _initialize_string_view_selftests unconditionally.
13418
13419 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13420
13421 PR gdb/24350
13422 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13423
13424 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13425
13426 PR gdb/24351
13427 * windows-nat.c (display_selector): Fix format specifiers.
13428
13429 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13430
13431 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13432 tui_refill_source_window instead of tui_refresh_win, to update the
13433 current execution line. This fixes redisplay of the current line
13434 when stepping through the code with "next" or "step".
13435
13436 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13437
13438 * source-cache.c (source_cache::get_source_lines): Call
13439 find_source_lines to initialize s->nlines. This fixes vertical
13440 scrolling of TUI source window when the DOWN arrow is pressed.
13441
13442 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13443
13444 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13445 linux-thread-db.c (_initialize_thread_db): Likewise.
13446
13447 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13448
13449 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13450 wclrtoeol in tui_show_source_line". This reverts changes made in
13451 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13452
13453 2019-03-15 Tom Tromey <tom@tromey.com>
13454
13455 * symtab.h (struct minimal_symbol): Derive from
13456 general_symbol_info.
13457 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13458 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13459 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13460 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13461 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13462 (MSYMBOL_SEARCH_NAME): Update.
13463 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13464 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13465 * minsyms.c (minimal_symbol_reader::record_full): Update.
13466
13467 2019-03-15 Tom Tromey <tom@tromey.com>
13468
13469 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13470
13471 2019-03-15 Tom Tromey <tom@tromey.com>
13472
13473 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13474 unique_xmalloc_ptr.
13475 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13476 Update.
13477 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13478 (build_minimal_symbol_hash_tables)
13479 (minimal_symbol_reader::install): Update.
13480
13481 2019-03-15 Tom Tromey <tom@tromey.com>
13482
13483 * symtab.c (create_demangled_names_hash): Update.
13484 (symbol_set_names): Update.
13485 * objfiles.h (struct objfile_per_bfd_storage)
13486 <demangled_names_hash>: Now an htab_up.
13487 * objfiles.c (objfile_per_bfd_storage): Simplify.
13488
13489 2019-03-15 Tom Tromey <tom@tromey.com>
13490
13491 * objfiles.h (struct objfile_per_bfd_storage): Declare
13492 destructor.
13493 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13494 New.
13495 (get_objfile_bfd_data): Use new. Don't initialize
13496 language_of_main.
13497 (free_objfile_per_bfd_storage): Remove.
13498 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13499
13500 2019-03-15 Tom Tromey <tom@tromey.com>
13501
13502 * symfile.c (reread_symbols): Update.
13503 * objfiles.c (objfile::objfile): Update.
13504 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13505 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13506 comment.
13507 (minimal_symbol_reader::install): Update.
13508 (terminate_minimal_symbol_table): Remove.
13509 * jit.c (jit_object_close_impl): Update.
13510
13511 2019-03-15 Tom Tromey <tom@tromey.com>
13512
13513 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13514 initializations.
13515
13516 2019-03-15 Tom Tromey <tom@tromey.com>
13517
13518 * objfiles.h (struct objfile_per_bfd_storage)
13519 <demangled_hash_languages>: Now a bitset.
13520 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13521 (lookup_minimal_symbol): Update.
13522
13523 2019-03-15 Tom Tromey <tom@tromey.com>
13524
13525 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13526 Don't return the symbol.
13527 * coffread.c (record_minimal_symbol): Use record_full.
13528
13529 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13530
13531 The MS-Windows port of ncurses fails to switch to a color pair if
13532 one or both of the colors are the implicit default colors. This
13533 change records the default colors when TUI is initialized, and
13534 then specifies them explicitly when a color pair uses the default
13535 colors. This allows color styling in TUI mode on MS-Windows.
13536
13537 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13538 ncurses_norm_attr.
13539 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13540 colors in ncurses_norm_attr.
13541 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13542 "none", replace it with the default color recorded in
13543 ncurses_norm_attr.
13544
13545 2019-03-14 Tom Tromey <tromey@adacore.com>
13546
13547 * source-cache.h (class source_cache) <get_source_lines>: Return
13548 std::string.
13549 * source-cache.c (source_cache::extract_lines): Handle case where
13550 first_pos==npos. Return std::string.
13551 (source_cache::get_source_lines): Update.
13552
13553 2019-03-14 Tom Tromey <tromey@adacore.com>
13554
13555 * NEWS: Add item for "style sources" commands.
13556 * source-cache.c (source_cache::get_source_lines): Check
13557 source_styling.
13558 * cli/cli-style.c (source_styling): New global.
13559 (_initialize_cli_style): Add "style sources" commands.
13560 (show_style_sources): New function.
13561 * cli/cli-style.h (source_styling): Declare.
13562
13563 2019-03-14 Pedro Alves <palves@redhat.com>
13564 Tom Tromey <tromey@adacore.com>
13565
13566 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13567 * tui/tui-winsource.c (tui_refill_source_window): New function,
13568 from...
13569 (tui_horizontal_source_scroll): ... here. Move some logic.
13570 * cli/cli-style.c (set_style_enabled): Notify new observable.
13571 * tui/tui-hooks.c (tui_redisplay_source): New function.
13572 (tui_attach_detach_observers): Attach or detach
13573 tui_redisplay_source.
13574 * observable.h (source_styling_changed): New observable.
13575 * observable.c: Define source_styling_changed observable.
13576
13577 2019-03-13 Tom Tromey <tromey@adacore.com>
13578
13579 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13580 (i386_gnu_nat_target::store_registers): Update.
13581 * target-debug.h (target_debug_print_std_string): New macro.
13582 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13583 * windows-tdep.c (display_one_tib): Update.
13584 * tui/tui-stack.c (tui_make_status_line): Update.
13585 * top.c (print_inferior_quit_action): Update.
13586 * thread.c (thr_try_catch_cmd): Update.
13587 (add_thread_with_info): Update.
13588 (thread_target_id_str): Update.
13589 (thr_try_catch_cmd): Update.
13590 (thread_command): Update.
13591 (thread_find_command): Update.
13592 * record-btrace.c (record_btrace_target::info_record)
13593 (record_btrace_resume_thread, record_btrace_target::resume)
13594 (record_btrace_cancel_resume, record_btrace_step_thread)
13595 (record_btrace_target::wait, record_btrace_target::wait)
13596 (record_btrace_target::wait, record_btrace_target::stop): Update.
13597 * progspace.c (print_program_space): Update.
13598 * process-stratum-target.c
13599 (process_stratum_target::thread_address_space): Update.
13600 * linux-fork.c (linux_fork_mourn_inferior)
13601 (detach_checkpoint_command, info_checkpoints_command)
13602 (linux_fork_context): Update.
13603 (linux_fork_detach): Update.
13604 (class scoped_switch_fork_info): Update.
13605 (delete_checkpoint_command): Update.
13606 * infrun.c (follow_fork_inferior): Update.
13607 (follow_fork_inferior): Update.
13608 (proceed_after_vfork_done): Update.
13609 (handle_vfork_child_exec_or_exit): Update.
13610 (follow_exec): Update.
13611 (displaced_step_prepare_throw): Update.
13612 (displaced_step_restore): Update.
13613 (start_step_over): Update.
13614 (resume_1): Update.
13615 (clear_proceed_status_thread): Update.
13616 (proceed): Update.
13617 (print_target_wait_results): Update.
13618 (do_target_wait): Update.
13619 (context_switch): Update.
13620 (stop_all_threads): Update.
13621 (restart_threads): Update.
13622 (finish_step_over): Update.
13623 (handle_signal_stop): Update.
13624 (switch_back_to_stepped_thread): Update.
13625 (keep_going_pass_signal): Update.
13626 (print_exited_reason): Update.
13627 (normal_stop): Update.
13628 * inferior.c (inferior_pid_to_str): Change return type.
13629 (print_selected_inferior): Update.
13630 (add_inferior): Update.
13631 (detach_inferior): Update.
13632 * dummy-frame.c (fprint_dummy_frames): Update.
13633 * dcache.c (dcache_info_1): Update.
13634 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13635 (btrace_fetch, btrace_clear): Update.
13636 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13637 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13638 type.
13639 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13640 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13641 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13642 * gdbarch.c, gdbarch.h: Rebuild.
13643 * gdbarch.sh (core_pid_to_str): Change return type.
13644 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13645 return type.
13646 (windows_nat_target::pid_to_str): Change return type.
13647 (windows_delete_thread): Update.
13648 (windows_nat_target::attach): Update.
13649 (windows_nat_target::files_info): Update.
13650 * target-delegates.c: Rebuild.
13651 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13652 return type.
13653 (sol_thread_target::pid_to_str): Change return type.
13654 * remote.c (class remote_target) <pid_to_str>: Change return
13655 type.
13656 (remote_target::pid_to_str): Change return type.
13657 (extended_remote_target::attach, remote_target::remote_stop_ns)
13658 (remote_target::remote_notif_remove_queued_reply)
13659 (remote_target::push_stop_reply, remote_target::disable_btrace):
13660 Update.
13661 (extended_remote_target::attach): Update.
13662 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13663 type.
13664 (gdbsim_target::pid_to_str): Change return type.
13665 * ravenscar-thread.c (struct ravenscar_thread_target)
13666 <pid_to_str>: Change return type.
13667 (ravenscar_thread_target::pid_to_str): Change return type.
13668 * procfs.c (class procfs_target) <pid_to_str>: Change return
13669 type.
13670 (procfs_target::pid_to_str): Change return type.
13671 (procfs_target::attach): Update.
13672 (procfs_target::detach): Update.
13673 (procfs_target::fetch_registers): Update.
13674 (procfs_target::store_registers): Update.
13675 (procfs_target::wait): Update.
13676 (procfs_target::files_info): Update.
13677 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13678 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13679 return type.
13680 (nto_procfs_target::pid_to_str): Change return type.
13681 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13682 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13683 return type.
13684 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13685 (exit_lwp): Update.
13686 (attach_proc_task_lwp_callback, get_detach_signal)
13687 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13688 (linux_nat_target::resume, wait_lwp, stop_callback)
13689 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13690 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13691 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13692 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13693 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13694 type.
13695 (inf_ptrace_target::attach): Update.
13696 (inf_ptrace_target::files_info): Update.
13697 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13698 type.
13699 (go32_nat_target::pid_to_str): Change return type.
13700 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13701 (gnu_nat_target::wait): Update.
13702 (gnu_nat_target::wait): Update.
13703 (gnu_nat_target::resume): Update.
13704 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13705 (fbsd_nat_target::wait): Update.
13706 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13707 type.
13708 (darwin_nat_target::attach): Update.
13709 * corelow.c (class core_target) <pid_to_str>: Change return type.
13710 (core_target::pid_to_str): Change return type.
13711 * target.c (normal_pid_to_str): Change return type.
13712 (default_pid_to_str): Likewise.
13713 (target_pid_to_str): Change return type.
13714 (target_translate_tls_address): Update.
13715 (target_announce_detach): Update.
13716 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13717 return type.
13718 (bsd_uthread_target::pid_to_str): Change return type.
13719 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13720 type.
13721 (bsd_kvm_target::pid_to_str): Change return type.
13722 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13723 return type.
13724 (aix_thread_target::pid_to_str): Change return type.
13725 * target.h (struct target_ops) <pid_to_str>: Change return type.
13726 (target_pid_to_str, normal_pid_to_str): Likewise.
13727 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13728 type.
13729 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13730 type.
13731 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13732 return type.
13733 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13734 type.
13735 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13736 type.
13737 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13738 return type.
13739
13740 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13741
13742 * NEWS: Mention that the new default MI version is 3. Mention
13743 changes to the output of commands and events that deal with
13744 multi-location breakpoints.
13745 * breakpoint.c: Include "mi/mi-out.h".
13746 (print_one_breakpoint): Change output syntax if using MI version
13747 >= 3.
13748 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13749 New.
13750 (mi_multi_location_breakpoint_output_fixed): New.
13751 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13752 (mi_cmd_fix_multi_location_breakpoint_output): New.
13753 (mi_multi_location_breakpoint_output_fixed): New.
13754 * mi/mi-cmds.c (mi_cmds): Register command
13755 -fix-multi-location-breakpoint-output.
13756 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13757 interpreter "mi".
13758
13759 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13760
13761 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13762 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13763 instantiate mi_ui_out based on interpreter name.
13764 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13765 * mi/mi-main.c (mi_load_progress): Likewise.
13766
13767 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13768
13769 * NEWS: Combine separate "New targets" sections for 8.3.
13770
13771 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13772
13773 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13774 (ppcfbsd_init_abi): Install gdbarch
13775 "fetch_tls_load_module_address" and "get_thread_local_address"
13776 methods.
13777
13778 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13779
13780 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13781 (riscv_fbsd_init_abi): Install gdbarch
13782 "fetch_tls_load_module_address" and "get_thread_local_address"
13783 methods.
13784
13785 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13786
13787 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13788 (i386fbsd_init_abi): Install gdbarch
13789 "fetch_tls_load_module_address" and "get_thread_local_address"
13790 methods.
13791
13792 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13793
13794 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13795 (amd64fbsd_init_abi): Install gdbarch
13796 "fetch_tls_load_module_address" and "get_thread_local_address"
13797 methods.
13798
13799 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13800
13801 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13802 (struct fbsd_pspace_data): New type.
13803 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13804 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13805 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13806 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13807 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13808
13809 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13810
13811 * gdbtypes.c (lookup_struct_elt): New function.
13812 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13813 * gdbtypes.h (struct struct_elt): New type.
13814 (lookup_struct_elt): New prototype.
13815
13816 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13817
13818 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13819 remove disabled code block.
13820
13821 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13822
13823 * gdbarch.sh (get_thread_local_address): New method.
13824 * gdbarch.h, gdbarch.c: Regenerate.
13825 * target.c (target_translate_tls_address): Use
13826 gdbarch_get_thread_local_address if present instead of
13827 target::get_thread_local_address.
13828
13829 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13830
13831 * target.h (target::get_thread_local_address): Update comment.
13832
13833 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13834
13835 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13836 objfile->separate_debug_objfile_backlink if not NULL.
13837
13838 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13839
13840 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13841 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13842 (amd64bsd_store_inferior_registers): Likewise.
13843 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13844 Enable segment base registers.
13845 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13846 PT_GETFSBASE and PT_GETGSBASE.
13847 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13848 PT_SETGSBASE.
13849 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13850 segment base registers.
13851 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13852
13853 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13854
13855 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13856 Update calls to i386_target_description to add 'segments'
13857 parameter.
13858 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13859 add segment base registers.
13860 * arch/i386.c (i386_create_target_description): Add 'segments'
13861 parameter to enable segment base registers.
13862 * arch/i386.h (i386_create_target_description): Likewise.
13863 * features/i386/32bit-segments.xml: New file.
13864 * features/i386/32bit-segments.c: Generate.
13865 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13866 call to i386_target_description to add 'segments' parameter.
13867 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13868 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13869 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13870 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13871 if feature is present.
13872 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13873 Add 'segments' parameter to call to i386_target_description.
13874 (i386_target_description): Add 'segments' parameter to enable
13875 segment base registers.
13876 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13877 to call to i386_target_description.
13878 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13879 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13880 Define I386_NUM_REGS.
13881 (i386_target_description): Add 'segments' parameter to enable
13882 segment base registers.
13883
13884 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13885
13886 PR/24325
13887 * source-cache.c: #undef open and close, to avoid unresolved
13888 externals during linking.
13889
13890 2019-03-12 Tom Tromey <tromey@adacore.com>
13891
13892 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13893 const. Add initializers.
13894 (_initialize_remote): Don't initialize ptid globals.
13895
13896 2019-03-12 Pedro Alves <palves@redhat.com>
13897
13898 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13899
13900 2019-03-12 Pedro Alves <palves@redhat.com>
13901
13902 * cp-name-parser.y (main): Remove unused 'len' variable.
13903
13904 2019-03-12 Tom Tromey <tromey@adacore.com>
13905
13906 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13907 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13908
13909 2019-03-12 Tom Tromey <tromey@adacore.com>
13910
13911 * linux-nat.c (iterate_over_lwps): Update.
13912 (stop_callback): Remove parameter.
13913 (stop_wait_callback, detach_callback, resume_set_callback)
13914 (select_singlestep_lwp_callback, set_ignore_sigint)
13915 (status_callback, resumed_callback, resume_clear_callback)
13916 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13917 data parameter.
13918 (linux_nat_target::detach, linux_nat_target::resume)
13919 (linux_stop_and_wait_all_lwps, select_event_lwp)
13920 (linux_nat_filter_event, linux_nat_wait_1)
13921 (linux_nat_target::kill, linux_nat_target::stop)
13922 (linux_nat_target::stop): Update.
13923 (linux_nat_resume_callback): Change type.
13924 (resume_stopped_resumed_lwps, count_events_callback)
13925 (select_event_lwp_callback): Likewise.
13926 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13927 * arm-linux-nat.c (struct update_registers_data): Remove.
13928 (update_registers_callback): Change type.
13929 (arm_linux_insert_hw_breakpoint1): Update.
13930 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13931 parameter.
13932 (x86_linux_dr_set_addr): Update.
13933 (x86_linux_dr_set_control): Update.
13934 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13935 (iterate_over_lwps): Use gdb::function_view.
13936 * nat/aarch64-linux-hw-point.c (struct
13937 aarch64_dr_update_callback_param): Remove.
13938 (debug_reg_change_callback): Change type.
13939 (aarch64_notify_debug_reg_change): Update.
13940 * s390-linux-nat.c (s390_refresh_per_info): Update.
13941
13942 2019-03-11 Tom Tromey <tromey@adacore.com>
13943
13944 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13945 redundant assignment to "this_cu".
13946
13947 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13948
13949 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13950
13951 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13952
13953 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13954 from...
13955 (rank_one_type): ... this.
13956
13957 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13958
13959 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13960 from...
13961 (rank_one_type): ... this.
13962
13963 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13964
13965 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13966 from...
13967 (rank_one_type): ... this.
13968
13969 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13970
13971 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13972 from...
13973 (rank_one_type): ... this.
13974
13975 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13976
13977 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13978 from...
13979 (rank_one_type): ... this.
13980
13981 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13982
13983 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13984 from...
13985 (rank_one_type): ... this.
13986
13987 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13988
13989 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13990 from...
13991 (rank_one_type): ... this.
13992
13993 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13994
13995 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13996 from...
13997 (rank_one_type): ... this.
13998
13999 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14000
14001 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14002 from...
14003 (rank_one_type): ... this.
14004
14005 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14006
14007 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14008 from...
14009 (rank_one_type): ... this.
14010
14011 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14012
14013 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14014 from...
14015 (rank_one_type): ... this.
14016
14017 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14018
14019 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14020 from...
14021 (rank_one_type): ... this.
14022
14023 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14024
14025 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14026 inferior-events' shows the example events.
14027
14028 2019-03-08 Eli Zaretskii <eliz@gnu.org>
14029
14030 Support styling on native MS-Windows console
14031
14032 PR/24315
14033 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14034 on MS-Windows if $TERM is not defined.
14035
14036 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14037
14038 * posix-hdep.c (gdb_console_fputs):
14039 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14040 functions.
14041 * ui-file.h (gdb_console_fputs): Add prototype.
14042
14043 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14044 back to fputs only if the former returns zero.
14045
14046 2019-03-07 Tom Tromey <tom@tromey.com>
14047
14048 * symmisc.c (print_symbol_bcache_statistics): Update.
14049 (print_objfile_statistics): Update.
14050 * symfile.c (allocate_symtab): Update.
14051 * stabsread.c: Don't include bcache.h.
14052 * psymtab.h (struct psymbol_bcache): Don't declare.
14053 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14054 (psymbol_bcache_init, psymbol_bcache_free)
14055 (psymbol_bcache_get_bcache): Don't declare.
14056 * psymtab.c (struct psymbol_bcache): Remove.
14057 (psymtab_storage::psymtab_storage): Update.
14058 (psymtab_storage::~psymtab_storage): Update.
14059 (psymbol_bcache_init, psymbol_bcache_free)
14060 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14061 (add_psymbol_to_bcache): Update.
14062 (allocate_psymtab): Update.
14063 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14064 macro_cache>: No longer pointers.
14065 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14066 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14067 * macrotab.c (macro_bcache): Update.
14068 * macroexp.c: Don't include bcache.h.
14069 * gdbtypes.c (check_types_worklist): Update.
14070 (types_deeply_equal): Remove TRY/CATCH. Update.
14071 * elfread.c (elf_symtab_read): Update.
14072 * dwarf2read.c: Don't include bcache.h.
14073 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14074 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14075 (print_bcache_statistics, bcache_memory_used): Don't declare.
14076 (struct bcache): Move from bcache.c. Add constructor, destructor,
14077 methods. Rename all data members.
14078 * bcache.c (struct bcache): Move to bcache.h.
14079 (bcache::expand_hash_table): Rename from expand_hash_table.
14080 (bcache): Remove.
14081 (bcache::insert): Rename from bcache_full.
14082 (bcache::compare): Rename from bcache_compare.
14083 (bcache_xmalloc): Remove.
14084 (bcache::~bcache): Rename from bcache_xfree.
14085 (bcache::print_statistics): Rename from print_bcache_statistics.
14086 (bcache::memory_used): Rename from bcache_memory_used.
14087
14088 2019-03-07 Pedro Alves <palves@redhat.com>
14089
14090 * infrun.c (normal_stop): Also check for
14091 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14092
14093 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14094
14095 * f-lang.c (value_from_host_double): Moved to...
14096 * value.c (value_from_host_double): ...here.
14097 * value.h (value_from_host_double): Declare.
14098 * guile/scm-math.c (vlscm_convert_typed_number): Use
14099 value_from_host_double.
14100 (vlscm_convert_number): Likewise.
14101 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14102 * python/py-value.c (convert_value_from_python): Likewise.
14103
14104 2019-03-06 Tom Tromey <tom@tromey.com>
14105
14106 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14107
14108 2019-03-06 Tom Tromey <tom@tromey.com>
14109
14110 * utils.h (free_current_contents): Don't declare.
14111 * utils.c (free_current_contents): Remove.
14112
14113 2019-03-06 Tom Tromey <tom@tromey.com>
14114
14115 * top.c (quit_force): Update.
14116 * main.c (captured_command_loop): Update.
14117 * common/new-op.c (operator new): Update.
14118 * common/common-exceptions.c (struct catcher)
14119 <save_cleanup_chain>: Remove member.
14120 (exceptions_state_mc_init): Update.
14121 (exception_try_scope_entry): Return nullptr.
14122 (exception_try_scope_exit, exception_rethrow)
14123 (throw_exception_sjlj, throw_exception_cxx): Update.
14124 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14125 (all_cleanups, do_cleanups, discard_cleanups)
14126 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14127 (restore_cleanups, restore_final_cleanups): Don't declare.
14128 (do_final_cleanups): Remove parameter.
14129 * common/cleanups.c (cleanup_chain, make_cleanup)
14130 (make_cleanup_dtor, all_cleanups, do_cleanups)
14131 (discard_my_cleanups, discard_cleanups)
14132 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14133 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14134 (null_cleanup): Remove.
14135 (do_final_cleanups): Remove parameter.
14136
14137 2019-03-06 Tom Tromey <tom@tromey.com>
14138
14139 * remote.c (remote_target::remote_parse_stop_reply): Use
14140 unique_xmalloc_ptr.
14141
14142 2019-03-06 Tom Tromey <tom@tromey.com>
14143
14144 * stabsread.c (struct stabs_field_info): Rename from field_info.
14145 <list, fnlist>: Add initializers.
14146 <obstack>: New member.
14147 (read_member_functions, read_struct_fields, read_baseclasses):
14148 Allocate on obstack. Don't use cleanups.
14149 (read_one_struct_field, read_member_functions, read_struct_fields)
14150 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14151 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14152 (read_struct_type): Update.
14153
14154 2019-03-06 Tom Tromey <tom@tromey.com>
14155
14156 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14157 * common/filestuff.h (make_cleanup_close): Don't declare.
14158 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14159 Remove.
14160
14161 2019-03-06 Tom Tromey <tom@tromey.com>
14162
14163 * solib-aix.c: Use make_scope_exit.
14164
14165 2019-03-06 Tom Tromey <tom@tromey.com>
14166
14167 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14168 Use make_scope_exit.
14169
14170 2019-03-06 Tom Tromey <tom@tromey.com>
14171
14172 * solib-svr4.c (disable_probes_interface): Remove parameter.
14173 (svr4_handle_solib_event): Use make_scope_exit.
14174
14175 2019-03-06 Tom Tromey <tom@tromey.com>
14176
14177 * remote.c (struct stop_reply_deleter): Remove.
14178 (stop_reply_up): Update.
14179 (struct stop_reply): Derive from notif_event. Don't typedef.
14180 <regcache>: Now a std::vector.
14181 (stop_reply_xfree): Remove.
14182 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14183 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14184 (remote_target::discard_pending_stop_replies): Use delete.
14185 (remote_target::remote_parse_stop_reply): Update.
14186 (remote_target::process_stop_reply): Update.
14187 * remote-notif.h (struct notif_event): Add virtual destructor.
14188 Remove "dtr" member.
14189 (struct notif_client) <alloc_event>: Return a unique_ptr.
14190 (notif_event_xfree): Don't declare.
14191 (notif_event_up): New typedef.
14192 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14193 (notif_event_xfree, do_notif_event_xfree): Remove.
14194 (remote_notif_state_xfree): Update.
14195
14196 2019-03-06 Tom Tromey <tom@tromey.com>
14197
14198 * infrun.c (displaced_step_clear_cleanup): Now a
14199 forward_scope_exit type.
14200 (displaced_step_prepare_throw): Update.
14201 (displaced_step_fixup): Update.
14202
14203 2019-03-06 Tom Tromey <tom@tromey.com>
14204
14205 * inferior.h (class inferior): Update comment.
14206 * gdbthread.h (class thread_info): Update comment.
14207
14208 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14209 Tom Tromey <tom@tromey.com>
14210
14211 * stabsread.h (struct stab_section_list): Remove.
14212 (coffstab_build_psymtabs): Update.
14213 * dbxread.c (symbuf_sections): Now a std::vector.
14214 (sect_idx): New global.
14215 (fill_symbuf): Update.
14216 (coffstab_build_psymtabs): Change type of stabsects parameter.
14217 Update.
14218 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14219 std::vector.
14220 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14221 (coff_locate_sections): Update.
14222 (coff_symfile_read): Remove cleanups. Update.
14223 (init_stringtab): Add storage parameter.
14224 (free_stringtab, free_stringtab_cleanup): Remove.
14225 (init_lineno): Add storage parameter.
14226 (free_linetab, free_linetab_cleanup): Remove.
14227
14228 2019-03-06 Pedro Alves <palves@redhat.com>
14229
14230 * linux-fork.c (fork_info::clobber_regs): Delete.
14231 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14232 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14233 comment. Adjust.
14234 (scoped_switch_fork_info::scoped_switch_fork_info)
14235 (checkpoint_command, linux_fork_context): Adjust
14236 fork_save_infrun_state calls.
14237
14238 2019-03-06 Pedro Alves <palves@redhat.com>
14239
14240 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14241 (inf_has_multiple_threads): Return 'bool' and rewrite using
14242 inferior_info::threads().
14243
14244 2019-03-06 Pedro Alves <palves@redhat.com>
14245
14246 * linux-fork.c: Include <list>.
14247 (fork_list): Now a std::list instance.
14248 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14249 (forks_exist_p, find_last_fork): Adjust.
14250 (new_fork): Delete.
14251 (one_fork_p): New.
14252 (add_fork): Adjust.
14253 (free_fork): Delete, folded into fork_info::~fork_info().
14254 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14255 Adjust.
14256 (init_fork_list): Delete.
14257 (linux_fork_killall, linux_fork_mourn_inferior)
14258 (linux_fork_detach, info_checkpoints_command): Adjust.
14259 (_initialize_linux_fork): No longer call init_fork_list.
14260
14261 2019-03-06 Pedro Alves <palves@redhat.com>
14262
14263 * linux-fork.c (new_fork): New, split out of ...
14264 (add_fork): ... this. Return void. Move "first fork" special
14265 case from here, to ...
14266 (checkpoint_command): ... here.
14267 * linux-linux.h (add_fork): Return void.
14268
14269 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14270
14271 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14272
14273 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14274 Chris January <chris.january@arm.com>
14275 David Lecomber <david.lecomber@arm.com>
14276
14277 * f-exp.y: New token, UNOP_INTRINSIC.
14278 (exp): New pattern using UNOP_INTRINSIC token.
14279 (f77_keywords): Add 'abs' keyword.
14280 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14281 (value_from_host_double): New function.
14282 (evaluate_subexp_f): Support UNOP_ABS.
14283
14284 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14285
14286 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14287 types.
14288
14289 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14290
14291 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14292 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14293 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14294
14295 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14296
14297 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14298
14299 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14300 Chris January <chris.january@arm.com>
14301
14302 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14303 * f-exp.y: Define 'KIND' token.
14304 (exp): New pattern for KIND expressions.
14305 (ptype): Handle types with a kind extension.
14306 (direct_abs_decl): Extend to spot kind extensions.
14307 (f77_keywords): Add 'kind' to the list.
14308 (push_kind_type): New function.
14309 (convert_to_kind_type): New function.
14310 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14311 * parse.c (operator_length_standard): Likewise.
14312 * parser-defs.h (enum type_pieces): Add tp_kind.
14313 * std-operator.def: Add UNOP_KIND.
14314
14315 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14316
14317 * f-exp.y (f_parse): Set yydebug.
14318
14319 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14320
14321 * f-lang.c (evaluate_subexp_f): New function.
14322 (exp_descriptor_f): New global.
14323 (f_language_defn): Use exp_descriptor_f instead of
14324 exp_descriptor_standard.
14325
14326 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14327
14328 * f-exp.y (struct token): Add comments.
14329 (dot_ops): Remove uppercase versions and the end marker.
14330 (f77_keywords): Likewise.
14331 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14332 entries in the dot_ops array are case insensitive, and use
14333 strncasecmp to compare strings. Also some whitespace cleanup in
14334 this area. Similar for the f77_keywords array, except entries in
14335 this list might be case sensitive.
14336
14337 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14338
14339 * f-exp.y (struct f77_boolean_val): Add comments.
14340 (boolean_values): Remove uppercase versions, and end marker.
14341 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14342 and use strncasecmp to achieve case insensitivity. Additionally,
14343 perform whitespace cleanup around this code.
14344
14345 2019-03-06 Tom Tromey <tromey@adacore.com>
14346
14347 * remote-sim.c (gdbsim_target_open): Use result of
14348 gdb_argv::release.
14349
14350 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14351 Dirk Schubert <dirk.schubert@arm.com>
14352 Chris January <chris.january@arm.com>
14353
14354 * eval.c (evaluate_subexp_standard): Call Fortran argument
14355 wrapping logic.
14356 * f-lang.c (struct value): A value which can be passed into a
14357 Fortran function call.
14358 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14359 where appropriate.
14360 (struct type): Value ready for a Fortran function call.
14361 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14362 is needed.
14363 * f-lang.h (fortran_argument_convert): Declaration.
14364 (fortran_preserve_arg_pointer): Declaration.
14365 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14366
14367 2019-03-05 Tom Tromey <tromey@adacore.com>
14368
14369 * python/py-prettyprint.c (print_string_repr): Remove #if.
14370 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14371
14372 2019-03-05 Tom Tromey <tromey@adacore.com>
14373
14374 * target.c (the_dummy_target): Move later. Change type to
14375 "dummy_target".
14376 (initialize_targets): Don't initialize the_dummy_target.
14377
14378 2019-03-05 Tom Tromey <tromey@adacore.com>
14379
14380 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14381 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14382
14383 2019-03-05 Tom Tromey <tromey@adacore.com>
14384
14385 * windows-nat.c (windows_nat_target::attach)
14386 (windows_nat_target::detach): Don't call gdb_flush.
14387 * valprint.c (generic_val_print, val_print, val_print_string):
14388 Don't call gdb_flush.
14389 * utils.c (defaulted_query): Don't call gdb_flush.
14390 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14391 * target.c (target_announce_detach): Don't call gdb_flush.
14392 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14393 * remote.c (extended_remote_target::attach): Don't call
14394 gdb_flush.
14395 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14396 * printcmd.c (do_examine): Don't call gdb_flush.
14397 (info_display_command): Don't call gdb_flush.
14398 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14399 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14400 * memattr.c (info_mem_command): Don't call gdb_flush.
14401 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14402 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14403 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14404 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14405 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14406 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14407 (gnu_nat_target::detach): Don't call gdb_flush.
14408 * f-valprint.c (f_val_print): Don't call gdb_flush.
14409 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14410 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14411 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14412 gdb_flush.
14413 * c-valprint.c (c_val_print): Don't call gdb_flush.
14414 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14415
14416 2019-03-05 Tom Tromey <tromey@adacore.com>
14417
14418 * varobj.c (update_dynamic_varobj_children): Update.
14419 (install_default_visualizer): Use reset, not release.
14420 * value.c (set_internalvar): Update.
14421 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14422 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14423 ATTRIBUTE_UNUSED_RESULT.
14424
14425 2019-03-05 Tom Tromey <tromey@adacore.com>
14426
14427 * remote.c (class scoped_remote_fd) <release>: Add
14428 ATTRIBUTE_UNUSED_RESULT.
14429
14430 2019-03-05 Tom Tromey <tromey@adacore.com>
14431
14432 * macroexp.c (struct macro_buffer) <release>: Add
14433 ATTRIBUTE_UNUSED_RESULT.
14434
14435 2019-03-05 Tom Tromey <tromey@adacore.com>
14436
14437 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14438 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14439 ATTRIBUTE_UNUSED_RESULT.
14440
14441 2019-03-05 Tom Tromey <tromey@adacore.com>
14442
14443 * common/scoped_fd.h (class scoped_fd) <release>: Add
14444 ATTRIBUTE_UNUSED_RESULT.
14445
14446 2019-03-05 Tom Tromey <tromey@adacore.com>
14447
14448 * parser-defs.h (struct parser_state) <release>: Add
14449 ATTRIBUTE_UNUSED_RESULT.
14450
14451 2019-03-05 Tom Tromey <tromey@adacore.com>
14452
14453 * utils.h (class gdb_argv) <release>: Add
14454 ATTRIBUTE_UNUSED_RESULT.
14455 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14456
14457 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14458
14459 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14460 for-loop range, to avoid compiler warnings.
14461
14462 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14463 avoid compiler warnings about unused variables.
14464
14465 * NEWS: Mention end of support for native debugging on MS-Windows
14466 before XP.
14467
14468 PR gdb/24292
14469 * common/netstuff.c:
14470 * gdbserver/gdbreplay.c
14471 * gdbserver/remote-utils.c:
14472 * ser-tcp.c:
14473 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14474 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14475 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14476 'getaddrinfo' and 'freeaddrinfo' were not available before
14477 Windows XP, and mingw.org's MinGW headers by default define
14478 _WIN32_WINNT to 0x500.
14479
14480 2019-03-01 Gary Benson <gbenson@redhat.com>
14481
14482 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14483
14484 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14485 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14486
14487 PR gdb/8527
14488 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14489 set_sigint_trap, clear_sigint_trap.
14490
14491 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14492
14493 * target.c (target_detach): Clear the regcache and the
14494 frame cache.
14495
14496 2019-02-27 Pedro Alves <palves@redhat.com>
14497
14498 * utils.c (set_screen_size): When we cap the height/width sizes,
14499 tweak the corresponding command variable to show "unlimited":
14500
14501 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14502 Pedro Alves <palves@redhat.com>
14503
14504 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14505 before calling rl_set_screen_size.
14506
14507 2019-02-27 Tom Tromey <tromey@adacore.com>
14508
14509 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14510 define.
14511 * python/py-value.c: Remove Python 2.4 workaround.
14512 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14513 workaround.
14514 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14515 Python 2.4 workaround.
14516 * python/python-internal.h: Remove Python 2.4 comment.
14517 (Py_ssize_t): Don't define.
14518 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14519 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14520 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14521 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14522 * python/python.c (do_start_initialization): Remove Python 2.4
14523 workaround.
14524 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14525 (print_children): Remove Python 2.4 workaround.
14526 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14527 workaround.
14528 (CHARBUFFERPROC_NAME): Remove.
14529 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14530 Python 2.4 workaround.
14531
14532 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14533
14534 * NEWS: Note minimum Python version.
14535
14536 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14537
14538 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14539 code from these functions. Remove corresponding ifdefs. Use
14540 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14541 Remove gotos and target of gotos.
14542 (infpy_search_memory): Likewise.
14543
14544 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14545
14546 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14547 (hppa_gdbarch_init): Don't register deleted functions with
14548 gdbarch.
14549
14550 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14551
14552 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14553 (h8300_unwind_sp): Delete.
14554 (h8300_dummy_id): Delete.
14555 (h8300_gdbarch_init): Don't register deleted functions with
14556 gdbarch.
14557
14558 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14559
14560 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14561 (ft32_unwind_pc): Delete.
14562 (ft32_unwind_sp): Delete.
14563 (ft32_gdbarch_init): Don't register deleted functions with
14564 gdbarch.
14565
14566 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14567
14568 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14569 (frv_unwind_pc): Delete.
14570 (frv_unwind_sp): Delete.
14571 (frv_gdbarch_init): Don't register deleted functions with
14572 gdbarch.
14573
14574 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14575
14576 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14577 (riscv_unwind_pc): Delete.
14578 (riscv_unwind_sp): Delete.
14579 (riscv_gdbarch_init): Don't register deleted functions with
14580 gdbarch.
14581
14582 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14583
14584 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14585 (csky_unwind_pc): Delete.
14586 (csky_unwind_sp): Delete.
14587 (csky_gdbarch_init): Don't register deleted functions with
14588 gdbarch.
14589
14590 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14591
14592 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14593 (cris_unwind_pc): Delete.
14594 (cris_unwind_sp): Delete.
14595 (cris_gdbarch_init): Don't register deleted functions with
14596 gdbarch.
14597
14598 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14599
14600 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14601 (bfin_unwind_pc): Delete.
14602 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14603
14604 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14605
14606 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14607 (arm_unwind_pc): Delete.
14608 (arm_unwind_sp): Delete.
14609 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14610
14611 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14612
14613 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14614 (arc_unwind_pc): Delete.
14615 (arc_unwind_sp): Delete.
14616 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14617
14618 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14619
14620 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14621 (alpha_unwind_pc): Delete.
14622 (alpha_gdbarch_init): Don't register deleted functions with
14623 gdbarch.
14624
14625 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14626
14627 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14628 (aarch64_unwind_pc): Delete.
14629 (aarch64_unwind_sp): Delete.
14630 (aarch64_gdbarch_init): Don't register deleted functions with
14631 gdbarch.
14632
14633 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14634
14635 * gdbtypes.c (type_align): Don't consider static members when
14636 computing structure alignment.
14637
14638 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14639
14640 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14641 return 0 for other types.
14642 * arch-utils.c (default_type_align): Always return 0.
14643 * gdbarch.h: Regenerate.
14644 * gdbarch.sh (type_align): Extend comment.
14645 * gdbtypes.c (type_align): Add additional comments, always call
14646 gdbarch_type_align before applying the default rules.
14647 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14648 generic code will then apply a suitable default.
14649 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14650 types, return 0 for other types.
14651
14652 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14653
14654 * NEWS: Create a new section for the next release branch.
14655 Rename the section of the current branch, now that it has
14656 been cut.
14657
14658 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14659
14660 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14661 * version.in: Bump version to 8.3.50.DATE-git.
14662
14663 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14664
14665 * aix-thread.c (ptid_cmp): Remove unused variable.
14666 (get_signaled_thread): Likewise.
14667 (store_regs_user_thread): Likewise.
14668 (store_regs_kernel_thread): Likewise.
14669 (fetch_regs_kernel_thread): Remove shadowed variable.
14670
14671 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14672
14673 * features/riscv/32bit-cpu.xml: Add register numbers.
14674 * features/riscv/32bit-fpu.c: Regenerate.
14675 * features/riscv/32bit-fpu.xml: Add register numbers.
14676 * features/riscv/64bit-cpu.xml: Add register numbers.
14677 * features/riscv/64bit-fpu.c: Regenerate.
14678 * features/riscv/64bit-fpu.xml: Add register numbers.
14679
14680 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14681
14682 * NEWS: Mention two argument form of gdb.Value constructor.
14683 * python/py-value.c (convert_buffer_and_type_to_value): New
14684 function.
14685 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14686 Add support for handling an optional second argument. Call
14687 convert_buffer_and_type_to_value as appropriate.
14688 * python/python-internal.h (Py_buffer_deleter): New struct.
14689 (Py_buffer_up): New typedef.
14690
14691 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14692
14693 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14694 instead of releasing ownership.
14695
14696 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14697
14698 * dwarf2read.c (open_and_init_dwp_file): Call
14699 elf_numsections instead of bfd_count_sections to initialize
14700 dwp_file->num_sections.
14701
14702 2019-02-25 Tom Tromey <tromey@adacore.com>
14703
14704 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14705
14706 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14707
14708 * gcore.in: Add '--readnever' option when invoking GDB.
14709
14710 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14711
14712 * MAINTAINERS: Update my email address.
14713
14714 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14715
14716 * build-id.c (build_id_to_debug_bfd_1): New function.
14717 (build_id_to_debug_bfd): Look for separate debug file in
14718 sysroot.
14719
14720 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14721
14722 * gdbarch.sh: Update the copyright year range that is placed into
14723 generated files.
14724
14725 2019-02-22 Keith Seitz <keiths@redhat.com>
14726
14727 PR symtab/23853
14728 * linespec.c (create_sals_line_offset): Search for the default
14729 symtab's filename instead of its fullname.
14730
14731 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14732
14733 * NEWS: Update style defaults.
14734
14735 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14736
14737 * main.c (captured_main_1): Disable styling in batch mode.
14738
14739 2019-02-20 Tom Tromey <tom@tromey.com>
14740
14741 * symtab.c (symtab_symbol_info): Fix typos.
14742
14743 2019-02-20 Tom Tromey <tromey@adacore.com>
14744
14745 * findcmd.c (_initialize_mem_search): Use upper case for
14746 metasyntactic variables.
14747
14748 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14749
14750 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14751 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14752
14753 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14754
14755 * top.h (source_file_name): Change to std::string.
14756 * top.c (source_file_name): Likewise.
14757 (command_line_input): Adjust.
14758 * cli/cli-script.c (script_from_file): Adjust.
14759
14760 2019-02-19 Tom Tromey <tromey@adacore.com>
14761
14762 * ravenscar-thread.c
14763 (ravenscar_thread_target::update_thread_list): Don't call
14764 ada_build_task_list.
14765 * ada-lang.h (ada_build_task_list): Don't declare.
14766 * ada-tasks.c (struct ada_tasks_inferior_data)
14767 <task_list_valid_p>: Now bool.
14768 (read_known_tasks, ada_task_list_changed)
14769 (ada_tasks_invalidate_inferior_data): Update.
14770 (read_known_tasks_array): Return bool.
14771 (read_known_tasks_list): Likewise.
14772 (read_known_tasks): Return void.
14773 (ada_build_task_list): Now static.
14774
14775 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14776
14777 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14778 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14779
14780 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14781
14782 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14783 variant for ada_tasks_pspace_data_handle and
14784 ada_tasks_inferior_data_handle.
14785 (ada_tasks_pspace_data_cleanup): New function.
14786 (ada_tasks_inferior_data_cleanup): New function.
14787
14788 2019-02-17 Tom Tromey <tom@tromey.com>
14789
14790 * macrotab.h (macro_source_fullname): Return a std::string.
14791 * macrotab.c (macro_include, check_for_redefinition)
14792 (macro_undef, macro_lookup_definition, foreach_macro)
14793 (foreach_macro_in_scope): Update.
14794 (macro_source_fullname): Return a std::string.
14795 * macrocmd.c (show_pp_source_pos): Update.
14796
14797 2019-02-17 Tom Tromey <tom@tromey.com>
14798
14799 * macrocmd.c (show_pp_source_pos): Style the file names.
14800
14801 2019-02-17 Tom Tromey <tom@tromey.com>
14802
14803 PR tui/24197:
14804 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14805
14806 2019-02-17 Tom Tromey <tom@tromey.com>
14807
14808 * ada-lang.c (user_select_syms): Use filtered printing.
14809 * utils.c (wrap_style): New global.
14810 (desired_style): Remove.
14811 (emit_style_escape): Add stream parameter.
14812 (set_output_style, reset_terminal_style, prompt_for_continue):
14813 Update.
14814 (flush_wrap_buffer): Only flush gdb_stdout.
14815 (wrap_here): Set wrap_style.
14816 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14817 treat escape sequences as a character. Change when wrap buffer is
14818 flushed.
14819 (fputs_styled): Do not set the output style when the default is
14820 requested.
14821 * ui-style.h (struct ui_file_style) <is_default>: New method.
14822 * source.c (print_source_lines_base): Emit escape sequences in one
14823 piece.
14824
14825 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14826
14827 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14828 integers and enumeration types.
14829
14830 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14831
14832 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14833 instead of lookup_symbol_in_language
14834 (do_exact_match): New function.
14835 (ada_get_symbol_name_matcher): Return do_exact_match when
14836 doing a verbatim match.
14837
14838 2019-02-15 Tom Tromey <tromey@adacore.com>
14839
14840 * ravenscar-thread.c (ravenscar_thread_target::resume)
14841 (ravenscar_thread_target::wait): Special case wildcard requests.
14842
14843 2019-02-15 Tom Tromey <tromey@adacore.com>
14844
14845 * ravenscar-thread.c (base_ptid): Remove.
14846 (struct ravenscar_thread_target) <close>: New method.
14847 <m_base_ptid>: New member.
14848 <update_inferior_ptid, active_task, task_is_currently_active,
14849 runtime_initialized>: Declare methods.
14850 <ravenscar_thread_target>: Add constructor.
14851 (ravenscar_thread_target::task_is_currently_active)
14852 (ravenscar_thread_target::update_inferior_ptid)
14853 (ravenscar_runtime_initialized): Rename. Now methods.
14854 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14855 (ravenscar_thread_target::update_thread_list): Update.
14856 (ravenscar_thread_target::active_task): Now method.
14857 (ravenscar_thread_target::store_registers)
14858 (ravenscar_thread_target::prepare_to_store)
14859 (ravenscar_thread_target::prepare_to_store)
14860 (ravenscar_thread_target::mourn_inferior): Update.
14861 (ravenscar_inferior_created): Use "new" to create target.
14862 (ravenscar_thread_target::get_ada_task_ptid): Update.
14863 (_initialize_ravenscar): Don't initialize base_ptid.
14864 (ravenscar_ops): Remove global.
14865
14866 2019-02-15 Tom Tromey <tromey@adacore.com>
14867
14868 * target.h (push_target): Declare new overload.
14869 * target.c (push_target): New overload, taking an rvalue reference.
14870 * remote.c (remote_target::open_1): Use push_target overload.
14871 * corelow.c (core_target_open): Use push_target overload.
14872
14873 2019-02-15 Tom Tromey <tromey@adacore.com>
14874
14875 * ravenscar-thread.c (is_ravenscar_task)
14876 (ravenscar_task_is_currently_active): Return bool.
14877 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14878 (_initialize_ravenscar): Remove "(void)".
14879 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14880 Return bool.
14881
14882 2019-02-15 Tom Tromey <tromey@adacore.com>
14883
14884 * ravenscar-thread.c (ravenscar_runtime_initializer)
14885 (has_ravenscar_runtime, get_running_thread_id)
14886 (ravenscar_thread_target::resume): Fix indentation.
14887
14888 2019-02-15 Tom Tromey <tromey@adacore.com>
14889
14890 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14891 from ravenscar_arch_ops.
14892 (sparc_ravenscar_ops::fetch_registers)
14893 (sparc_ravenscar_ops::store_registers): Now methods.
14894 (sparc_ravenscar_prepare_to_store): Remove.
14895 (sparc_ravenscar_ops): Redefine.
14896 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14897 methods and destructor. Remove members.
14898 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14899 (ravenscar_thread_target::store_registers)
14900 (ravenscar_thread_target::prepare_to_store): Update.
14901 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14902 Remove.
14903 (struct ppc_ravenscar_powerpc_ops): Derive from
14904 ravenscar_arch_ops.
14905 (ppc_ravenscar_powerpc_ops::fetch_registers)
14906 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14907 (ppc_ravenscar_powerpc_ops): Redefine.
14908 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14909 (ppc_ravenscar_e500_ops::fetch_registers)
14910 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14911 (ppc_ravenscar_e500_ops): Redefine.
14912 * aarch64-ravenscar-thread.c
14913 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14914 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14915 (aarch64_ravenscar_fetch_registers)
14916 (aarch64_ravenscar_store_registers): Now methods.
14917 (aarch64_ravenscar_ops): Redefine.
14918
14919 2019-02-15 Tom Tromey <tromey@adacore.com>
14920
14921 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14922 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14923 (ravenscar_thread_target::stopped_by_watchpoint)
14924 (ravenscar_thread_target::stopped_data_address)
14925 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14926
14927 2019-02-15 Tom Tromey <tromey@adacore.com>
14928
14929 * ravenscar-thread.c: Fix some typos.
14930
14931 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14932 Tom Tromey <tromey@adacore.com>
14933
14934 * ada-lang.c (ada_exception_sal): Change addr_string to a
14935 std::string.
14936 (create_ada_exception_catchpoint): Update.
14937
14938 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14939 Tom Tromey <tromey@adacore.com>
14940
14941 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14942 (bp_location_ops): Remove.
14943 (base_breakpoint_allocate_location): Update.
14944 (free_bp_location): Update.
14945 * ada-lang.c (class ada_catchpoint_location)
14946 <ada_catchpoint_location>: Remove ops parameter.
14947 (ada_catchpoint_location_dtor): Remove.
14948 (ada_catchpoint_location_ops): Remove.
14949 (allocate_location_exception): Update.
14950 * breakpoint.h (struct bp_location_ops): Remove.
14951 (class bp_location) <bp_location>: Remove bp_location_ops
14952 parameter.
14953 <~bp_location>: Add destructor.
14954 <ops>: Remove.
14955
14956 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14957 Pedro Alves <palves@redhat.com>
14958
14959 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14960 'PATH_MAX'.
14961
14962 2019-02-14 David Michael <fedora.dm0@gmail.com>
14963 Samuel Thibault <samuel.thibault@gnu.org>
14964 Thomas Schwinge <thomas@codesourcery.com>
14965
14966 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14967 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14968
14969 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14970
14971 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14972 (check_empty): Use "const char *".
14973
14974 * gnu-nat.c (gnu_nat_target::detach): Instead of
14975 'detach_inferior (pid)' call
14976 'detach_inferior (find_inferior_pid (pid))'.
14977
14978 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14979 'nat/fork-inferior.o'.
14980 * gnu-nat.c: #include "nat/fork-inferior.h".
14981
14982 * gnu-nat.c (gnu_nat_target::detach): Instead of
14983 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14984 * gnu-nat.h: #include "inf-child.h".
14985 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14986 'i386_gnu_nat_target::fetch_registers'.
14987 (gnu_store_registers): Rename/move to
14988 'i386_gnu_nat_target::store_registers'.
14989
14990 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14991 * gnu-nat.h (mach_thread_info): New function.
14992 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14993
14994 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14995
14996 2019-02-14 Frederic Konrad <konrad@adacore.com>
14997
14998 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14999
15000 2019-02-14 Joel Brobecker <brobecker@adacore.com>
15001
15002 * windows-nat.c (windows_add_thread): Add new parameter
15003 "main_thread_p" with default value set to false. Update
15004 function documentation as well as all callers.
15005 (windows_delete_thread): Likewise.
15006 (fake_create_process): Update call to windows_add_thread.
15007 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15008 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15009 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15010 call to windows_delete_thread.
15011
15012 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15013
15014 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15015
15016 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15017
15018 * symfile.c (find_separate_debug_file): Use canonical path of
15019 sysroot with child_path instead of gdb_sysroot if it is valid.
15020
15021 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15022
15023 * symfile.c (find_separate_debug_file): Use child_path to
15024 determine if an object file is under a sysroot.
15025
15026 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15027
15028 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15029 unittests/child-path-selftests.c.
15030 * common/pathstuff.c (child_path): New function.
15031 * common/pathstuff.h (child_path): New prototype.
15032 * unittests/child-path-selftests.c: New file.
15033
15034 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15035
15036 * symfile.c (find_separate_debug_file): Look for separate debug
15037 files in debug directories under the sysroot.
15038
15039 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15040
15041 * symtab.h (struct minimal_symbol data_p): New const method.
15042 (struct minimal_symbol text_p): Likewise.
15043 * symtab.c (output_source_filename): Use file name style
15044 to print file name.
15045 (print_symbol_info): Likewise.
15046 (print_msymbol_info): Use address style to print addresses.
15047 Use function name style to print executable text symbols.
15048 (expand_symtab_containing_pc): Use data_p.
15049 (find_pc_sect_compunit_symtab): Likewise.
15050
15051 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15052
15053 * breakpoint.c (describe_other_breakpoints): Use address style
15054 to print addresses.
15055 (say_where): Likewise.
15056
15057 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15058
15059 * ada-typeprint.c (print_func_type): Print function name
15060 style to print function name.
15061 * c-typeprint.c (c_print_type_1): Likewise.
15062
15063 2019-02-11 Alan Hayward <alan.hayward@arm.com>
15064
15065 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15066 for execve.
15067
15068 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15069
15070 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15071 type_stack.
15072
15073 2019-02-10 Joel Brobecker <brobecker@adacore.com>
15074
15075 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15076 TYPE_CODE_REF types.
15077
15078 2019-02-08 Jim Wilson <jimw@sifive.com>
15079
15080 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15081 (riscv_linux_fregset): New.
15082 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15083
15084 2019-02-07 Tom Tromey <tom@tromey.com>
15085
15086 * thread.c (thread_cancel_execution_command): Update.
15087 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15088 methods.
15089 (struct thread_fsm_ops): Remove.
15090 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15091 (thread_fsm_should_stop, thread_fsm_return_value)
15092 (thread_fsm_set_finished, thread_fsm_finished_p)
15093 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15094 Don't declare.
15095 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15096 * infrun.c (clear_proceed_status_thread)
15097 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15098 (print_stop_event): Update.
15099 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15100 Add constructor.
15101 (step_command_fsm_ops): Remove.
15102 (new_step_command_fsm): Remove.
15103 (step_1): Update.
15104 (step_command_fsm::should_stop): Rename from
15105 step_command_fsm_should_stop.
15106 (step_command_fsm::clean_up): Rename from
15107 step_command_fsm_clean_up.
15108 (step_command_fsm::do_async_reply_reason): Rename from
15109 step_command_fsm_async_reply_reason.
15110 (struct until_next_fsm): Inherit from thread_fsm. Add
15111 constructor.
15112 (until_next_fsm_ops): Remove.
15113 (new_until_next_fsm): Remove.
15114 (until_next_fsm::should_stop): Rename from
15115 until_next_fsm_should_stop.
15116 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15117 (until_next_fsm::do_async_reply_reason): Rename from
15118 until_next_fsm_async_reply_reason.
15119 (struct finish_command_fsm): Inherit from thread_fsm. Add
15120 constructor. Change type of breakpoint.
15121 (finish_command_fsm_ops): Remove.
15122 (new_finish_command_fsm): Remove.
15123 (finish_command_fsm::should_stop): Rename from
15124 finish_command_fsm_should_stop.
15125 (finish_command_fsm::clean_up): Rename from
15126 finish_command_fsm_clean_up.
15127 (finish_command_fsm::return_value): Rename from
15128 finish_command_fsm_return_value.
15129 (finish_command_fsm::do_async_reply_reason): Rename from
15130 finish_command_fsm_async_reply_reason.
15131 (finish_command): Update.
15132 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15133 Add constructor.
15134 (call_thread_fsm_ops): Remove.
15135 (call_thread_fsm::call_thread_fsm): Rename from
15136 new_call_thread_fsm.
15137 (call_thread_fsm::should_stop): Rename from
15138 call_thread_fsm_should_stop.
15139 (call_thread_fsm::should_notify_stop): Rename from
15140 call_thread_fsm_should_notify_stop.
15141 (run_inferior_call, call_function_by_hand_dummy): Update.
15142 * cli/cli-interp.c (should_print_stop_to_console): Update.
15143 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15144 Add constructor. Change type of location_breakpoint,
15145 caller_breakpoint.
15146 (until_break_fsm_ops): Remove.
15147 (new_until_break_fsm): Remove.
15148 (until_break_fsm::should_stop): Rename from
15149 until_break_fsm_should_stop.
15150 (until_break_fsm::clean_up): Rename from
15151 until_break_fsm_clean_up.
15152 (until_break_fsm::do_async_reply_reason): Rename from
15153 until_break_fsm_async_reply_reason.
15154 (until_break_command): Update.
15155 * thread-fsm.c: Remove.
15156 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15157
15158 2019-02-07 Tom Tromey <tom@tromey.com>
15159
15160 * yy-remap.h: Add include guard.
15161 * xtensa-tdep.h: Add include guard.
15162 * xcoffread.h: Rename include guard.
15163 * varobj-iter.h: Add include guard.
15164 * tui/tui.h: Rename include guard.
15165 * tui/tui-winsource.h: Rename include guard.
15166 * tui/tui-wingeneral.h: Rename include guard.
15167 * tui/tui-windata.h: Rename include guard.
15168 * tui/tui-win.h: Rename include guard.
15169 * tui/tui-stack.h: Rename include guard.
15170 * tui/tui-source.h: Rename include guard.
15171 * tui/tui-regs.h: Rename include guard.
15172 * tui/tui-out.h: Rename include guard.
15173 * tui/tui-layout.h: Rename include guard.
15174 * tui/tui-io.h: Rename include guard.
15175 * tui/tui-hooks.h: Rename include guard.
15176 * tui/tui-file.h: Rename include guard.
15177 * tui/tui-disasm.h: Rename include guard.
15178 * tui/tui-data.h: Rename include guard.
15179 * tui/tui-command.h: Rename include guard.
15180 * tic6x-tdep.h: Add include guard.
15181 * target/waitstatus.h: Rename include guard.
15182 * target/wait.h: Rename include guard.
15183 * target/target.h: Rename include guard.
15184 * target/resume.h: Rename include guard.
15185 * target-float.h: Rename include guard.
15186 * stabsread.h: Add include guard.
15187 * rs6000-tdep.h: Add include guard.
15188 * riscv-fbsd-tdep.h: Add include guard.
15189 * regformats/regdef.h: Rename include guard.
15190 * record.h: Rename include guard.
15191 * python/python.h: Rename include guard.
15192 * python/python-internal.h: Rename include guard.
15193 * python/py-stopevent.h: Rename include guard.
15194 * python/py-ref.h: Rename include guard.
15195 * python/py-record.h: Rename include guard.
15196 * python/py-record-full.h: Rename include guard.
15197 * python/py-record-btrace.h: Rename include guard.
15198 * python/py-instruction.h: Rename include guard.
15199 * python/py-events.h: Rename include guard.
15200 * python/py-event.h: Rename include guard.
15201 * procfs.h: Add include guard.
15202 * proc-utils.h: Add include guard.
15203 * p-lang.h: Add include guard.
15204 * or1k-tdep.h: Rename include guard.
15205 * observable.h: Rename include guard.
15206 * nto-tdep.h: Rename include guard.
15207 * nat/x86-linux.h: Rename include guard.
15208 * nat/x86-linux-dregs.h: Rename include guard.
15209 * nat/x86-gcc-cpuid.h: Add include guard.
15210 * nat/x86-dregs.h: Rename include guard.
15211 * nat/x86-cpuid.h: Rename include guard.
15212 * nat/ppc-linux.h: Rename include guard.
15213 * nat/mips-linux-watch.h: Rename include guard.
15214 * nat/linux-waitpid.h: Rename include guard.
15215 * nat/linux-ptrace.h: Rename include guard.
15216 * nat/linux-procfs.h: Rename include guard.
15217 * nat/linux-osdata.h: Rename include guard.
15218 * nat/linux-nat.h: Rename include guard.
15219 * nat/linux-namespaces.h: Rename include guard.
15220 * nat/linux-btrace.h: Rename include guard.
15221 * nat/glibc_thread_db.h: Rename include guard.
15222 * nat/gdb_thread_db.h: Rename include guard.
15223 * nat/gdb_ptrace.h: Rename include guard.
15224 * nat/fork-inferior.h: Rename include guard.
15225 * nat/amd64-linux-siginfo.h: Rename include guard.
15226 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15227 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15228 * nat/aarch64-linux.h: Rename include guard.
15229 * nat/aarch64-linux-hw-point.h: Rename include guard.
15230 * mn10300-tdep.h: Add include guard.
15231 * mips-linux-tdep.h: Add include guard.
15232 * mi/mi-parse.h: Rename include guard.
15233 * mi/mi-out.h: Rename include guard.
15234 * mi/mi-main.h: Rename include guard.
15235 * mi/mi-interp.h: Rename include guard.
15236 * mi/mi-getopt.h: Rename include guard.
15237 * mi/mi-console.h: Rename include guard.
15238 * mi/mi-common.h: Rename include guard.
15239 * mi/mi-cmds.h: Rename include guard.
15240 * mi/mi-cmd-break.h: Rename include guard.
15241 * m2-lang.h: Add include guard.
15242 * location.h: Rename include guard.
15243 * linux-record.h: Rename include guard.
15244 * linux-nat.h: Add include guard.
15245 * linux-fork.h: Add include guard.
15246 * i386-darwin-tdep.h: Rename include guard.
15247 * hppa-linux-offsets.h: Add include guard.
15248 * guile/guile.h: Rename include guard.
15249 * guile/guile-internal.h: Rename include guard.
15250 * gnu-nat.h: Rename include guard.
15251 * gdb-stabs.h: Rename include guard.
15252 * frv-tdep.h: Add include guard.
15253 * f-lang.h: Add include guard.
15254 * event-loop.h: Add include guard.
15255 * darwin-nat.h: Rename include guard.
15256 * cp-abi.h: Rename include guard.
15257 * config/sparc/nm-sol2.h: Rename include guard.
15258 * config/nm-nto.h: Rename include guard.
15259 * config/nm-linux.h: Add include guard.
15260 * config/i386/nm-i386gnu.h: Rename include guard.
15261 * config/djgpp/nl_types.h: Rename include guard.
15262 * config/djgpp/langinfo.h: Rename include guard.
15263 * compile/gcc-cp-plugin.h: Add include guard.
15264 * compile/gcc-c-plugin.h: Add include guard.
15265 * compile/compile.h: Rename include guard.
15266 * compile/compile-object-run.h: Rename include guard.
15267 * compile/compile-object-load.h: Rename include guard.
15268 * compile/compile-internal.h: Rename include guard.
15269 * compile/compile-cplus.h: Rename include guard.
15270 * compile/compile-c.h: Rename include guard.
15271 * common/xml-utils.h: Rename include guard.
15272 * common/x86-xstate.h: Rename include guard.
15273 * common/version.h: Rename include guard.
15274 * common/vec.h: Rename include guard.
15275 * common/tdesc.h: Rename include guard.
15276 * common/selftest.h: Rename include guard.
15277 * common/scoped_restore.h: Rename include guard.
15278 * common/scoped_mmap.h: Rename include guard.
15279 * common/scoped_fd.h: Rename include guard.
15280 * common/safe-iterator.h: Rename include guard.
15281 * common/run-time-clock.h: Rename include guard.
15282 * common/refcounted-object.h: Rename include guard.
15283 * common/queue.h: Rename include guard.
15284 * common/ptid.h: Rename include guard.
15285 * common/print-utils.h: Rename include guard.
15286 * common/preprocessor.h: Rename include guard.
15287 * common/pathstuff.h: Rename include guard.
15288 * common/observable.h: Rename include guard.
15289 * common/netstuff.h: Rename include guard.
15290 * common/job-control.h: Rename include guard.
15291 * common/host-defs.h: Rename include guard.
15292 * common/gdb_wait.h: Rename include guard.
15293 * common/gdb_vecs.h: Rename include guard.
15294 * common/gdb_unlinker.h: Rename include guard.
15295 * common/gdb_unique_ptr.h: Rename include guard.
15296 * common/gdb_tilde_expand.h: Rename include guard.
15297 * common/gdb_sys_time.h: Rename include guard.
15298 * common/gdb_string_view.h: Rename include guard.
15299 * common/gdb_splay_tree.h: Rename include guard.
15300 * common/gdb_setjmp.h: Rename include guard.
15301 * common/gdb_ref_ptr.h: Rename include guard.
15302 * common/gdb_optional.h: Rename include guard.
15303 * common/gdb_locale.h: Rename include guard.
15304 * common/gdb_assert.h: Rename include guard.
15305 * common/filtered-iterator.h: Rename include guard.
15306 * common/filestuff.h: Rename include guard.
15307 * common/fileio.h: Rename include guard.
15308 * common/environ.h: Rename include guard.
15309 * common/common-utils.h: Rename include guard.
15310 * common/common-types.h: Rename include guard.
15311 * common/common-regcache.h: Rename include guard.
15312 * common/common-inferior.h: Rename include guard.
15313 * common/common-gdbthread.h: Rename include guard.
15314 * common/common-exceptions.h: Rename include guard.
15315 * common/common-defs.h: Rename include guard.
15316 * common/common-debug.h: Rename include guard.
15317 * common/cleanups.h: Rename include guard.
15318 * common/buffer.h: Rename include guard.
15319 * common/btrace-common.h: Rename include guard.
15320 * common/break-common.h: Rename include guard.
15321 * cli/cli-utils.h: Rename include guard.
15322 * cli/cli-style.h: Rename include guard.
15323 * cli/cli-setshow.h: Rename include guard.
15324 * cli/cli-script.h: Rename include guard.
15325 * cli/cli-interp.h: Rename include guard.
15326 * cli/cli-decode.h: Rename include guard.
15327 * cli/cli-cmds.h: Rename include guard.
15328 * charset-list.h: Add include guard.
15329 * buildsym-legacy.h: Rename include guard.
15330 * bfin-tdep.h: Add include guard.
15331 * ax.h: Rename include guard.
15332 * arm-linux-tdep.h: Add include guard.
15333 * arm-fbsd-tdep.h: Add include guard.
15334 * arch/xtensa.h: Rename include guard.
15335 * arch/tic6x.h: Add include guard.
15336 * arch/i386.h: Add include guard.
15337 * arch/arm.h: Rename include guard.
15338 * arch/arm-linux.h: Rename include guard.
15339 * arch/arm-get-next-pcs.h: Rename include guard.
15340 * arch/amd64.h: Add include guard.
15341 * arch/aarch64-insn.h: Rename include guard.
15342 * arch-utils.h: Rename include guard.
15343 * annotate.h: Add include guard.
15344 * amd64-darwin-tdep.h: Rename include guard.
15345 * aarch64-linux-tdep.h: Add include guard.
15346 * aarch64-fbsd-tdep.h: Add include guard.
15347 * aarch32-linux-nat.h: Add include guard.
15348
15349 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15350
15351 * macrotab.c (macro_define_internal): New function that
15352 factorizes macro_define_object_internal and macro_define_function
15353 code.
15354 (macro_define_object_internal): Use macro_define_internal.
15355 (macro_define_function): Likewise.
15356
15357 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15358
15359 * macrocmd.c (extract_identifier): Return
15360 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15361 callers.
15362
15363 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15364
15365 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15366
15367 2019-02-05 Tom Tromey <tom@tromey.com>
15368
15369 * target.c (target_stack::unpush): Move assertion earlier.
15370
15371 2019-01-30 Tom Tromey <tom@tromey.com>
15372
15373 PR python/23615:
15374 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15375 (gdbpy_parse_and_eval): Likewise.
15376 * python/python-internal.h (gdbpy_allow_threads): New class.
15377
15378 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15379
15380 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15381 (aarch64_fbsd_fpregmap): Move earlier.
15382 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15383 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15384 instead of individual calls to trad_frame_set_reg_addr.
15385 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15386 earlier.
15387 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15388 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15389 instead of individual calls to trad_frame_set_reg_addr.
15390
15391 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15392
15393 * CONTRIBUTE: Replace contribution list with wiki link.
15394
15395 2019-01-25 Tom Tromey <tom@tromey.com>
15396
15397 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15398
15399 2019-01-25 Tom Tromey <tom@tromey.com>
15400
15401 * xtensa-linux-nat.c: Fix common/ includes.
15402 * xml-support.h: Fix common/ includes.
15403 * xml-support.c: Fix common/ includes.
15404 * x86-linux-nat.c: Fix common/ includes.
15405 * windows-nat.c: Fix common/ includes.
15406 * varobj.h: Fix common/ includes.
15407 * varobj.c: Fix common/ includes.
15408 * value.c: Fix common/ includes.
15409 * valops.c: Fix common/ includes.
15410 * utils.c: Fix common/ includes.
15411 * unittests/xml-utils-selftests.c: Fix common/ includes.
15412 * unittests/utils-selftests.c: Fix common/ includes.
15413 * unittests/unpack-selftests.c: Fix common/ includes.
15414 * unittests/tracepoint-selftests.c: Fix common/ includes.
15415 * unittests/style-selftests.c: Fix common/ includes.
15416 * unittests/string_view-selftests.c: Fix common/ includes.
15417 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15418 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15419 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15420 * unittests/rsp-low-selftests.c: Fix common/ includes.
15421 * unittests/parse-connection-spec-selftests.c: Fix common/
15422 includes.
15423 * unittests/optional-selftests.c: Fix common/ includes.
15424 * unittests/offset-type-selftests.c: Fix common/ includes.
15425 * unittests/observable-selftests.c: Fix common/ includes.
15426 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15427 * unittests/memrange-selftests.c: Fix common/ includes.
15428 * unittests/memory-map-selftests.c: Fix common/ includes.
15429 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15430 * unittests/function-view-selftests.c: Fix common/ includes.
15431 * unittests/environ-selftests.c: Fix common/ includes.
15432 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15433 * unittests/common-utils-selftests.c: Fix common/ includes.
15434 * unittests/cli-utils-selftests.c: Fix common/ includes.
15435 * unittests/array-view-selftests.c: Fix common/ includes.
15436 * ui-file.c: Fix common/ includes.
15437 * tui/tui-io.c: Fix common/ includes.
15438 * tracepoint.h: Fix common/ includes.
15439 * tracepoint.c: Fix common/ includes.
15440 * tracefile-tfile.c: Fix common/ includes.
15441 * top.h: Fix common/ includes.
15442 * top.c: Fix common/ includes.
15443 * thread.c: Fix common/ includes.
15444 * target/waitstatus.h: Fix common/ includes.
15445 * target/waitstatus.c: Fix common/ includes.
15446 * target.h: Fix common/ includes.
15447 * target.c: Fix common/ includes.
15448 * target-memory.c: Fix common/ includes.
15449 * target-descriptions.c: Fix common/ includes.
15450 * symtab.h: Fix common/ includes.
15451 * symfile.c: Fix common/ includes.
15452 * stap-probe.c: Fix common/ includes.
15453 * spu-linux-nat.c: Fix common/ includes.
15454 * sparc-nat.c: Fix common/ includes.
15455 * source.c: Fix common/ includes.
15456 * solib.c: Fix common/ includes.
15457 * solib-target.c: Fix common/ includes.
15458 * ser-unix.c: Fix common/ includes.
15459 * ser-tcp.c: Fix common/ includes.
15460 * ser-pipe.c: Fix common/ includes.
15461 * ser-base.c: Fix common/ includes.
15462 * selftest-arch.c: Fix common/ includes.
15463 * s12z-tdep.c: Fix common/ includes.
15464 * rust-exp.y: Fix common/ includes.
15465 * rs6000-aix-tdep.c: Fix common/ includes.
15466 * riscv-tdep.c: Fix common/ includes.
15467 * remote.c: Fix common/ includes.
15468 * remote-notif.h: Fix common/ includes.
15469 * remote-fileio.h: Fix common/ includes.
15470 * remote-fileio.c: Fix common/ includes.
15471 * regcache.h: Fix common/ includes.
15472 * regcache.c: Fix common/ includes.
15473 * record-btrace.c: Fix common/ includes.
15474 * python/python.c: Fix common/ includes.
15475 * python/py-type.c: Fix common/ includes.
15476 * python/py-inferior.c: Fix common/ includes.
15477 * progspace.h: Fix common/ includes.
15478 * producer.c: Fix common/ includes.
15479 * procfs.c: Fix common/ includes.
15480 * proc-api.c: Fix common/ includes.
15481 * printcmd.c: Fix common/ includes.
15482 * ppc-linux-nat.c: Fix common/ includes.
15483 * parser-defs.h: Fix common/ includes.
15484 * osdata.c: Fix common/ includes.
15485 * obsd-nat.c: Fix common/ includes.
15486 * nat/x86-linux.c: Fix common/ includes.
15487 * nat/x86-linux-dregs.c: Fix common/ includes.
15488 * nat/x86-dregs.h: Fix common/ includes.
15489 * nat/x86-dregs.c: Fix common/ includes.
15490 * nat/ppc-linux.c: Fix common/ includes.
15491 * nat/mips-linux-watch.h: Fix common/ includes.
15492 * nat/mips-linux-watch.c: Fix common/ includes.
15493 * nat/linux-waitpid.c: Fix common/ includes.
15494 * nat/linux-ptrace.h: Fix common/ includes.
15495 * nat/linux-ptrace.c: Fix common/ includes.
15496 * nat/linux-procfs.c: Fix common/ includes.
15497 * nat/linux-personality.c: Fix common/ includes.
15498 * nat/linux-osdata.c: Fix common/ includes.
15499 * nat/linux-namespaces.c: Fix common/ includes.
15500 * nat/linux-btrace.h: Fix common/ includes.
15501 * nat/linux-btrace.c: Fix common/ includes.
15502 * nat/fork-inferior.c: Fix common/ includes.
15503 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15504 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15505 * nat/aarch64-linux.c: Fix common/ includes.
15506 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15507 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15508 * namespace.h: Fix common/ includes.
15509 * mips-linux-tdep.c: Fix common/ includes.
15510 * minsyms.c: Fix common/ includes.
15511 * mi/mi-parse.h: Fix common/ includes.
15512 * mi/mi-main.c: Fix common/ includes.
15513 * mi/mi-cmd-env.c: Fix common/ includes.
15514 * memrange.h: Fix common/ includes.
15515 * memattr.c: Fix common/ includes.
15516 * maint.h: Fix common/ includes.
15517 * maint.c: Fix common/ includes.
15518 * main.c: Fix common/ includes.
15519 * machoread.c: Fix common/ includes.
15520 * location.c: Fix common/ includes.
15521 * linux-thread-db.c: Fix common/ includes.
15522 * linux-nat.c: Fix common/ includes.
15523 * linux-fork.c: Fix common/ includes.
15524 * inline-frame.c: Fix common/ includes.
15525 * infrun.c: Fix common/ includes.
15526 * inflow.c: Fix common/ includes.
15527 * inferior.h: Fix common/ includes.
15528 * inferior.c: Fix common/ includes.
15529 * infcmd.c: Fix common/ includes.
15530 * inf-ptrace.c: Fix common/ includes.
15531 * inf-child.c: Fix common/ includes.
15532 * ia64-linux-nat.c: Fix common/ includes.
15533 * i387-tdep.c: Fix common/ includes.
15534 * i386-tdep.c: Fix common/ includes.
15535 * i386-linux-tdep.c: Fix common/ includes.
15536 * i386-linux-nat.c: Fix common/ includes.
15537 * i386-go32-tdep.c: Fix common/ includes.
15538 * i386-fbsd-tdep.c: Fix common/ includes.
15539 * i386-fbsd-nat.c: Fix common/ includes.
15540 * guile/scm-type.c: Fix common/ includes.
15541 * guile/guile.c: Fix common/ includes.
15542 * go32-nat.c: Fix common/ includes.
15543 * gnu-nat.c: Fix common/ includes.
15544 * gdbthread.h: Fix common/ includes.
15545 * gdbarch-selftests.c: Fix common/ includes.
15546 * gdb_usleep.c: Fix common/ includes.
15547 * gdb_select.h: Fix common/ includes.
15548 * gdb_bfd.c: Fix common/ includes.
15549 * gcore.c: Fix common/ includes.
15550 * fork-child.c: Fix common/ includes.
15551 * findvar.c: Fix common/ includes.
15552 * fbsd-nat.c: Fix common/ includes.
15553 * event-top.c: Fix common/ includes.
15554 * event-loop.c: Fix common/ includes.
15555 * dwarf2read.c: Fix common/ includes.
15556 * dwarf2loc.c: Fix common/ includes.
15557 * dwarf2-frame.c: Fix common/ includes.
15558 * dwarf-index-cache.c: Fix common/ includes.
15559 * dtrace-probe.c: Fix common/ includes.
15560 * disasm-selftests.c: Fix common/ includes.
15561 * defs.h: Fix common/ includes.
15562 * csky-tdep.c: Fix common/ includes.
15563 * cp-valprint.c: Fix common/ includes.
15564 * cp-support.h: Fix common/ includes.
15565 * cp-support.c: Fix common/ includes.
15566 * corelow.c: Fix common/ includes.
15567 * completer.h: Fix common/ includes.
15568 * completer.c: Fix common/ includes.
15569 * compile/compile.c: Fix common/ includes.
15570 * compile/compile-loc2c.c: Fix common/ includes.
15571 * compile/compile-cplus-types.c: Fix common/ includes.
15572 * compile/compile-cplus-symbols.c: Fix common/ includes.
15573 * command.h: Fix common/ includes.
15574 * cli/cli-dump.c: Fix common/ includes.
15575 * cli/cli-cmds.c: Fix common/ includes.
15576 * charset.c: Fix common/ includes.
15577 * build-id.c: Fix common/ includes.
15578 * btrace.h: Fix common/ includes.
15579 * btrace.c: Fix common/ includes.
15580 * breakpoint.h: Fix common/ includes.
15581 * breakpoint.c: Fix common/ includes.
15582 * ax.h:
15583 (enum agent_op): Fix common/ includes.
15584 * ax-general.c (struct aop_map): Fix common/ includes.
15585 * ax-gdb.c: Fix common/ includes.
15586 * auxv.c: Fix common/ includes.
15587 * auto-load.c: Fix common/ includes.
15588 * arm-tdep.c: Fix common/ includes.
15589 * arch/riscv.c: Fix common/ includes.
15590 * arch/ppc-linux-common.c: Fix common/ includes.
15591 * arch/i386.c: Fix common/ includes.
15592 * arch/arm.c: Fix common/ includes.
15593 * arch/arm-linux.c: Fix common/ includes.
15594 * arch/arm-get-next-pcs.c: Fix common/ includes.
15595 * arch/amd64.c: Fix common/ includes.
15596 * arch/aarch64.c: Fix common/ includes.
15597 * arch/aarch64-insn.c: Fix common/ includes.
15598 * arch-utils.c: Fix common/ includes.
15599 * amd64-windows-tdep.c: Fix common/ includes.
15600 * amd64-tdep.c: Fix common/ includes.
15601 * amd64-sol2-tdep.c: Fix common/ includes.
15602 * amd64-obsd-tdep.c: Fix common/ includes.
15603 * amd64-nbsd-tdep.c: Fix common/ includes.
15604 * amd64-linux-tdep.c: Fix common/ includes.
15605 * amd64-linux-nat.c: Fix common/ includes.
15606 * amd64-fbsd-tdep.c: Fix common/ includes.
15607 * amd64-fbsd-nat.c: Fix common/ includes.
15608 * amd64-dicos-tdep.c: Fix common/ includes.
15609 * amd64-darwin-tdep.c: Fix common/ includes.
15610 * agent.c: Fix common/ includes.
15611 * ada-lang.h: Fix common/ includes.
15612 * ada-lang.c: Fix common/ includes.
15613 * aarch64-tdep.c: Fix common/ includes.
15614
15615 2019-01-25 Tom Tromey <tom@tromey.com>
15616
15617 * common/create-version.sh: Use common/version.h.
15618
15619 2019-01-24 Pedro Alves <palves@redhat.com>
15620
15621 * infrun.c (signal_stop, signal_print, signal_program)
15622 (signal_catch, signal_pass): Now arrays instead of pointers.
15623 (update_signals_program_target, do_target_resume)
15624 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15625 * linux-nat.c (linux_nat_target::pass_signals)
15626 (linux_nat_target::create_inferior, linux_nat_target::attach):
15627 Adjust.
15628 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15629 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15630 * procfs.c (procfs_target::pass_signals): Adjust.
15631 * record-full.c (record_full_target::resume): Adjust.
15632 * remote.c (remote_target::pass_signals)
15633 (remote_target::program_signals): Adjust.
15634 * target-debug.h (target_debug_print_signals): Now takes a
15635 gdb::array_view as parameter. Adjust.
15636 * target.h (target_ops) <pass_signals, program_signals>: Replace
15637 pointer and length parameters with gdb::array_view.
15638 (target_pass_signals, target_program_signals): Likewise.
15639 * target-delegates.c: Regenerate.
15640
15641 2019-01-24 Pedro Alves <palves@redhat.com>
15642
15643 * common/forward-scope-exit.h
15644 (forward_scope_exit::forward_scope_exit): Pass arguments to
15645 m_bind_function directly, instead of creating a std::bind and
15646 copying that.
15647
15648 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15649
15650 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15651 for static members.
15652 (pass_in_v_vfp_candidate): Likewise.
15653
15654 2019-01-23 Tom Tromey <tom@tromey.com>
15655 Pedro Alves <palves@redhat.com>
15656
15657 * regcache.c (class regcache_invalidator): Remove.
15658 (regcache::raw_write): Use make_scope_exit.
15659
15660 2019-01-23 Tom Tromey <tom@tromey.com>
15661
15662 * ui-out.h (class ui_out_emit_type): Update comment.
15663
15664 2019-01-23 Tom Tromey <tom@tromey.com>
15665
15666 * infrun.c (fetch_inferior_event): Update comment.
15667
15668 2019-01-23 Tom Tromey <tom@tromey.com>
15669 Pedro Alves <palves@redhat.com>
15670
15671 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15672 parameter.
15673 (fetch_inferior_event): Use SCOPE_EXIT.
15674
15675
15676 2019-01-23 Tom Tromey <tom@tromey.com>
15677 Pedro Alves <palves@redhat.com>
15678
15679 * infrun.c (disable_thread_events): Delete.
15680 (stop_all_threads): Use SCOPE_EXIT.
15681
15682 2019-01-23 Tom Tromey <tom@tromey.com>
15683 Pedro Alves <palves@redhat.com>
15684
15685 * symfile.c: Include forward-scope-exit.h.
15686 (clear_symtab_users_cleanup): Replace forward declaration with
15687 a FORWARD_SCOPE_EXIT.
15688 (syms_from_objfile_1): Use the forward_scope_exit and
15689 gdb::optional instead of cleanup_function.
15690 (reread_symbols): Use the forward_scope_exit instead of
15691 cleanup_function.
15692 (clear_symtab_users_cleanup): Remove function.
15693
15694 2019-01-23 Tom Tromey <tom@tromey.com>
15695 Pedro Alves <palves@redhat.com>
15696
15697 * linux-nat.c: Include scope-exit.h.
15698 (cleanup_target_stop): Remove.
15699 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15700 SCOPE_EXIT.
15701
15702 2019-01-23 Tom Tromey <tom@tromey.com>
15703 Pedro Alves <palves@redhat.com>
15704
15705 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15706 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15707
15708 2019-01-23 Tom Tromey <tom@tromey.com>
15709 Andrew Burgess <andrew.burgess@embecosm.com>
15710 Pedro Alves <palves@redhat.com>
15711
15712 * infrun.c (fetch_inferior_event): Use scope_exit.
15713 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15714 * top.c (execute_command): Use scope_exit.
15715 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15716 * utils.c (do_bpstat_clear_actions_cleanup)
15717 (make_bpstat_clear_actions_cleanup): Remove.
15718
15719 2019-01-23 Tom Tromey <tom@tromey.com>
15720 Pedro Alves <palves@redhat.com>
15721
15722 * infrun.c: Include "common/scope-exit.h"
15723 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15724 (wait_for_inferior): Use SCOPE_EXIT.
15725 (fetch_inferior_event): Use scope_exit.
15726
15727 2019-01-23 Tom Tromey <tom@tromey.com>
15728 Pedro Alves <palves@redhat.com>
15729
15730 * breakpoint.c (create_breakpoint): Remove cleanup.
15731
15732 2019-01-23 Tom Tromey <tom@tromey.com>
15733 Andrew Burgess <andrew.burgess@embecosm.com>
15734 Pedro Alves <palves@redhat.com>
15735
15736 2019-01-23 Pedro Alves <palves@redhat.com>
15737
15738 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15739
15740 2019-01-23 Pedro Alves <palves@redhat.com>
15741 Andrew Burgess <andrew.burgess@embecosm.com>
15742
15743 * gdbthread.h: Include "common/forward-scope-exit.h".
15744 (scoped_finish_thread_state): Redefine custom class in terms of
15745 forward_scope_exit.
15746
15747 2019-01-23 Pedro Alves <palves@redhat.com>
15748 Andrew Burgess <andrew.burgess@embecosm.com>
15749
15750 * common/forward-scope-exit.h: New file.
15751
15752 2019-01-23 Pedro Alves <palves@redhat.com>
15753 Andrew Burgess <andrew.burgess@embecosm.com>
15754 Tom Tromey <tom@tromey.com>
15755
15756 * common/scope-exit.h: New file.
15757
15758 2019-01-23 Pedro Alves <palves@redhat.com>
15759
15760 * common/preprocessor.h (ESC): Rename to ...
15761 (ESC_PARENS): ... this.
15762 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15763 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15764
15765 2019-01-23 Tom Tromey <tom@tromey.com>
15766
15767 * language.h (class scoped_switch_to_sym_language_if_auto):
15768 Initialize m_lang in both cases.
15769
15770 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15771
15772 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15773 with XCNEW.
15774
15775 2019-01-22 Tom Tromey <tom@tromey.com>
15776
15777 * corelow.c: Do not include sys/file.h.
15778
15779 2019-01-22 Tom Tromey <tom@tromey.com>
15780
15781 * tui/tui-wingeneral.h: Include gdb_curses.h.
15782
15783 2019-01-22 Tom Tromey <tom@tromey.com>
15784
15785 * source-cache.h (class source_cache) <get_source_lines,
15786 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15787
15788 2019-01-22 Tom Tromey <tom@tromey.com>
15789
15790 * remote-fileio.h (struct remote_target): Declare.
15791
15792 2019-01-22 Tom Tromey <tom@tromey.com>
15793
15794 * python/py-arch.c: Do not include py-ref.h.
15795 * python/py-bpevent.c: Do not include py-ref.h.
15796 * python/py-cmd.c: Do not include py-ref.h.
15797 * python/py-continueevent.c: Do not include py-ref.h.
15798 * python/py-event.h: Do not include py-ref.h.
15799 * python/py-evtregistry.c: Do not include py-ref.h.
15800 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15801 * python/py-frame.c: Do not include py-ref.h.
15802 * python/py-framefilter.c: Do not include py-ref.h.
15803 * python/py-function.c: Do not include py-ref.h.
15804 * python/py-infevents.c: Do not include py-ref.h.
15805 * python/py-linetable.c: Do not include py-ref.h.
15806 * python/py-objfile.c: Do not include py-ref.h.
15807 * python/py-param.c: Do not include py-ref.h.
15808 * python/py-prettyprint.c: Do not include py-ref.h.
15809 * python/py-progspace.c: Do not include py-ref.h.
15810 * python/py-symbol.c: Do not include py-ref.h.
15811 * python/py-symtab.c: Do not include py-ref.h.
15812 * python/py-type.c: Do not include py-ref.h.
15813 * python/py-unwind.c: Do not include py-ref.h.
15814 * python/py-utils.c: Do not include py-ref.h.
15815 * python/py-value.c: Do not include py-ref.h.
15816 * python/py-varobj.c: Do not include py-ref.h.
15817 * python/py-xmethods.c: Do not include py-ref.h.
15818 * python/python.c: Do not include py-ref.h.
15819 * varobj.c: Do not include py-ref.h.
15820
15821 2019-01-22 Tom Tromey <tom@tromey.com>
15822
15823 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15824 keyword for bcache.
15825
15826 2019-01-22 Tom Tromey <tom@tromey.com>
15827
15828 * compile/compile-cplus-types.c: Remove a comment by #include.
15829
15830 2019-01-22 Tom Tromey <tom@tromey.com>
15831
15832 * compile/gcc-c-plugin.h: Include compile-internal.h.
15833
15834 2019-01-22 Tom Tromey <tom@tromey.com>
15835
15836 * stabsread.c (EXTERN): Do not define.
15837 (symnum, next_symbol_text_func, processing_gcc_compilation)
15838 (within_function, global_sym_chain, global_stabs)
15839 (previous_stab_code, this_object_header_files)
15840 (n_this_object_header_files)
15841 (n_allocated_this_object_header_files): Define.
15842 * stabsread.h (EXTERN): Never define. Use "extern".
15843
15844 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15845
15846 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15847 history_value.
15848
15849 2019-01-21 Tom Tromey <tom@tromey.com>
15850
15851 * ui-out.c: Fix includes.
15852 * tui/tui-source.c: Fix includes.
15853 * target.c: Fix includes.
15854 * remote.c: Fix includes.
15855 * regcache.c: Fix includes.
15856 * python/py-block.c: Fix includes.
15857 * printcmd.c: Fix includes.
15858 * or1k-tdep.c: Fix includes.
15859 * mi/mi-main.c: Fix includes.
15860 * m32r-tdep.c: Fix includes.
15861 * csky-tdep.c: Fix includes.
15862 * compile/compile-cplus-types.c: Fix includes.
15863 * cli/cli-interp.c: Fix includes.
15864
15865 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15866
15867 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15868 for padding.
15869
15870 2019-01-16 Tom Tromey <tom@tromey.com>
15871
15872 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15873 earlier.
15874 (struct objfile) <msymbols_range>: Move from top level.
15875 <msymbols>: New method.
15876 (class objfile_msymbols): Remove.
15877 * symtab.c (default_collect_symbol_completion_matches_break_on):
15878 Update.
15879 * symmisc.c (dump_msymbols): Update.
15880 * stabsread.c (scan_file_globals): Update.
15881 * objc-lang.c (info_selectors_command, info_classes_command)
15882 (find_methods): Update.
15883 * minsyms.c (find_solib_trampoline_target): Update.
15884 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15885 * coffread.c (coff_symfile_read): Update.
15886 * ada-lang.c (ada_lookup_simple_minsym)
15887 (ada_collect_symbol_completion_matches): Update.
15888
15889 2019-01-16 Tom Tromey <tom@tromey.com>
15890
15891 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15892 type. Remove no-argument constructor.
15893 <iterator::operator++>: Simplify.
15894 <begin>: Update.
15895 <end>: Use minimal_symbol_count.
15896
15897 2019-01-16 Tom Tromey <tom@tromey.com>
15898
15899 * objfiles.h (struct objfile) <psymtabs>: New method.
15900 (class objfile_psymtabs): Remove.
15901 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15902 typedef.
15903 <range>: New method.
15904 (require_partial_symbols): Change return type.
15905 * psymtab.c (require_partial_symbols)
15906 (psym_expand_symtabs_matching): Update.
15907 * mdebugread.c (parse_partial_symbols): Update.
15908 * dbxread.c (dbx_end_psymtab): Update.
15909
15910 2019-01-15 Tom Tromey <tom@tromey.com>
15911
15912 * symtab.c (lookup_objfile_from_block)
15913 (lookup_symbol_in_objfile_symtabs)
15914 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15915 (find_line_symtab, info_sources_command)
15916 (default_collect_symbol_completion_matches_break_on)
15917 (make_source_files_completion_list): Update.
15918 * symmisc.c (print_objfile_statistics, dump_objfile)
15919 (maintenance_print_symbols, maintenance_info_symtabs)
15920 (maintenance_check_symtabs, maintenance_info_line_tables):
15921 Update.
15922 * source.c (select_source_symtab)
15923 (forget_cached_source_info_for_objfile): Update.
15924 * objfiles.h (class objfile_compunits): Remove.
15925 (struct objfile) <compunits_range>: New typedef.
15926 (compunits): New method.
15927 * objfiles.c (objfile_relocate1): Update.
15928 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15929 * maint.c (count_symtabs_and_blocks): Update.
15930 * linespec.c (iterate_over_all_matching_symtabs): Update.
15931 * cp-support.c (add_symbol_overload_list_qualified): Update.
15932 * coffread.c (coff_symtab_read): Update.
15933 * ada-lang.c (add_nonlocal_symbols)
15934 (ada_collect_symbol_completion_matches)
15935 (ada_add_global_exceptions): Update.
15936
15937 2019-01-15 Tom Tromey <tom@tromey.com>
15938
15939 * progspace.h (program_space) <objfiles_safe_range>: New
15940 typedef.
15941 <objfiles_safe>: New method.
15942 * objfiles.h (class all_objfiles_safe): Remove.
15943 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15944 * jit.c (jit_inferior_exit_hook): Update.
15945
15946 2019-01-17 Tom Tromey <tom@tromey.com>
15947
15948 * progspace.h (program_space) <objfiles_range>: New typedef.
15949 <objfiles>: New method.
15950 <objfiles_head>: Rename from objfiles.
15951 (object_files): Update.
15952 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15953 * guile/scm-pretty-print.c
15954 (ppscm_find_pretty_printer_from_objfiles): Update.
15955 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15956 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15957 Update.
15958 * python/py-progspace.c (pspy_get_objfiles): Update.
15959 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15960 Update.
15961 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15962 (objfpy_lookup_objfile_by_build_id): Update.
15963 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15964 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15965 Update.
15966 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15967 (expand_symtab_containing_pc, lookup_objfile_from_block)
15968 (lookup_static_symbol, basic_lookup_transparent_type)
15969 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15970 (find_line_symtab, info_sources_command)
15971 (default_collect_symbol_completion_matches_break_on)
15972 (make_source_files_completion_list, find_main_name): Update.
15973 * symmisc.c (print_symbol_bcache_statistics)
15974 (print_objfile_statistics, maintenance_print_symbols)
15975 (maintenance_print_msymbols, maintenance_print_objfiles)
15976 (maintenance_info_symtabs, maintenance_check_symtabs)
15977 (maintenance_expand_symtabs, maintenance_info_line_tables):
15978 Update.
15979 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15980 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15981 (map_overlay_command, unmap_overlay_command)
15982 (simple_overlay_update, expand_symtabs_matching)
15983 (map_symbol_filenames): Update.
15984 * symfile-debug.c (set_debug_symfile): Update.
15985 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15986 Update.
15987 * source.c (select_source_symtab, forget_cached_source_info):
15988 Update.
15989 * solib.c (solib_read_symbols): Update.
15990 * solib-spu.c (append_ocl_sos): Update.
15991 * psymtab.c (maintenance_print_psymbols)
15992 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15993 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15994 * printcmd.c (info_symbol_command): Update.
15995 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15996 Update.
15997 * objfiles.h (class all_objfiles): Remove.
15998 * objfiles.c (have_partial_symbols, have_full_symbols)
15999 (have_minimal_symbols, qsort_cmp, update_section_map)
16000 (shared_objfile_contains_address_p)
16001 (default_iterate_over_objfiles_in_search_order): Update.
16002 * objc-lang.c (info_selectors_command, info_classes_command)
16003 (find_methods): Update.
16004 * minsyms.c (find_solib_trampoline_target): Update.
16005 * maint.c (maintenance_info_sections)
16006 (maintenance_translate_address, count_symtabs_and_blocks):
16007 Update.
16008 * main.c (captured_main_1): Update.
16009 * linux-thread-db.c (try_thread_db_load_from_pdir)
16010 (has_libpthread): Update.
16011 * linespec.c (iterate_over_all_matching_symtabs)
16012 (search_minsyms_for_name): Update.
16013 * jit.c (jit_find_objf_with_entry_addr): Update.
16014 * hppa-tdep.c (find_unwind_entry)
16015 (hppa_lookup_stub_minimal_symbol): Update.
16016 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16017 Update.
16018 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16019 (elf_gnu_ifunc_resolve_by_got): Update.
16020 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16021 * dwarf-index-write.c (save_gdb_index_command): Update.
16022 * cp-support.c (add_symbol_overload_list_qualified): Update.
16023 * breakpoint.c (create_overlay_event_breakpoint)
16024 (create_longjmp_master_breakpoint)
16025 (create_std_terminate_master_breakpoint)
16026 (create_exception_master_breakpoint): Update.
16027 * blockframe.c (find_pc_partial_function): Update.
16028 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16029 (ada_collect_symbol_completion_matches)
16030 (ada_add_global_exceptions): Update.
16031
16032 2019-01-17 Tom Tromey <tom@tromey.com>
16033
16034 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16035 declare VEC.
16036 (solib_target_parse_libraries): Change return type.
16037 (library_list_start_segment, library_list_start_section)
16038 (library_list_end_library, library_list_start_library); Update.
16039 (solib_target_free_library_list): Remove.
16040 (solib_target_parse_libraries): Remove cleanup. Change return
16041 type.
16042 (solib_target_current_sos): Update.
16043
16044 2019-01-17 Tom Tromey <tromey@bapiya>
16045
16046 * valprint.c: Replace "the the" with "the".
16047 * symtab.c: Replace "the the" with "the".
16048 * solib.c: Replace "the the" with "the".
16049 * solib-dsbt.c: Replace "the the" with "the".
16050 * linespec.c: Replace "the the" with "the".
16051 * dwarf2loc.h: Replace "the the" with "the".
16052 * amd64-windows-tdep.c: Replace "the the" with "the".
16053 * aarch64-tdep.c: Replace "the the" with "the".
16054
16055 2019-01-16 Keith Seitz <keiths@redhat.com>
16056
16057 PR gdb/23773
16058 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16059 <builder>: Rename to ..
16060 <m_builder>: ... this and make private.
16061 (dwarf2_cu::get_builder): New method. Change all users of
16062 `builder' to use this method.
16063 (dwarf2_start_symtab): Move to ...
16064 (dwarf2_cu::start_symtab): ... here. Update all callers
16065 (setup_type_unit_groups): Move to ...
16066 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16067 callers.
16068 (dwarf2_cu::reset_builder): New method.
16069 (process_full_compunit, process_full_type_unit): Use
16070 dwarf2_cu::reset_builder.
16071 (follow_die_offset): Record the ancestor CU if it is different
16072 from the followed DIE's CU.
16073 (follow_die_sig_1): Likewise.
16074
16075 2019-01-15 Tom Tromey <tom@tromey.com>
16076
16077 * remote.c (class remote_state) <buf>: Now a char_vector.
16078 <buf_size>: Remove.
16079 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16080 parameter.
16081 (remote_target::getpkt_or_notif_sane_1)
16082 (remote_target::getpkt_sane)
16083 (remote_target::getpkt_or_notif_sane): Likewise.
16084 (class remote_target) <putpkt>: New overload.
16085 (remote_target::read_frame): Change type of "buf_p". Remove
16086 sizeof_p parameter.
16087 (packet_ok): New overload.
16088 (packet_check_result): New overload.
16089 Update all uses.
16090
16091 2019-01-14 Tom Tromey <tom@tromey.com>
16092
16093 * remote-notif.c (handle_notification, remote_notif_ack)
16094 (remote_notif_parse): Make "buf" const.
16095 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16096 const.
16097 (remote_notif_parse, remote_notif_ack, handle_notification):
16098 Likewise.
16099 * remote.c (remote_notif_stop_parse): Make "buf" const.
16100 (remote_target::remote_parse_stop_reply): Make "buf" const.
16101 (remote_notif_stop_ack): Make "buf" const.
16102
16103 2019-01-14 Tom Tromey <tom@tromey.com>
16104
16105 * remote.c (remote_console_output): Make parameter const.
16106
16107 2019-01-14 Tom Tromey <tom@tromey.com>
16108
16109 * target-debug.h (target_debug_print_signals): Constify.
16110 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16111 * procfs.c (procfs_target::pass_signals): Update.
16112 * linux-nat.c (linux_nat_target::pass_signals): Update.
16113 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16114 * target-delegates.c: Rebuild.
16115 * remote.c (remote_target::program_signals): Update.
16116 (remote_target::pass_signals): Update.
16117 * target.c (target_pass_signals): Constify argument.
16118 (target_program_signals): Likewise.
16119 * target.h (struct target_ops) <pass_signals, program_signals>:
16120 Constify argument.
16121 (target_pass_signals, target_program_signals): Constify argument.
16122
16123 2019-01-14 Tom Tromey <tom@tromey.com>
16124
16125 PR tui/28819:
16126 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16127
16128 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16129
16130 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16131 field.
16132 * rs6000-tdep.c: Include reggroups.h.
16133 (IS_V_ALIAS_PSEUDOREG): Define.
16134 (rs6000_register_name): Return names for the "vX" aliases.
16135 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16136 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16137 aliases. Call default_register_reggroup_p for all other
16138 pseudo-registers.
16139 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16140 New functions.
16141 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16142 Handle "vX" aliases.
16143 (v_alias_pseudo_register_collect): New function.
16144 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16145 (rs6000_gdbarch_init): Initialize "vX" aliases as
16146 pseudo-registers. Restore registration of
16147 rs6000_pseudo_register_reggroup_p with
16148 set_tdesc_pseudo_register_reggroup_p.
16149
16150 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16151
16152 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16153 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16154 set_gdbarch_num_pseudo_regs.
16155
16156 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16157
16158 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16159 Remove arg prefixname, add do_set and do_show.
16160 Add member functions set_list and show_list.
16161 * cli/cli-style.c (class cli_style_option): Update accordingly.
16162 (style_set_list): Move to file scope.
16163 (style_show_list): Likewise.
16164 (set_style): Call help_list.
16165 (show_style): Call cmd_show_list.
16166 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16167 Update to use the new macro.
16168
16169 2019-10-12 Joel Brobecker <brobecker@adacore.com>
16170
16171 * ada-lang.c (_initialize_ada_language): Expand the help text
16172 for the "catch exception" command.
16173
16174 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16175
16176 * symtab.c (matching_obj_sections): Initialize obj,
16177 declare it closer to its usage.
16178
16179 2019-01-10 Tom Tromey <tom@tromey.com>
16180
16181 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16182 (basic_inf_threads_range): Remove.
16183 (inf_threads_range, inf_non_exited_threads_range)
16184 (safe_inf_threads_range): Use next_adapter.
16185
16186 2019-01-10 Keith Seitz <keiths@redhat.com>
16187
16188 PR gdb/23712
16189 PR symtab/23010
16190 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16191 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16192
16193 2019-01-10 Keith Seitz <keiths@redhat.com>
16194
16195 PR gdb/23712
16196 PR symtab/23010
16197 * dictionary.c (pending_to_vector): Remove.
16198 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16199 Remove _1 suffix, replacing functions of the same name. Update
16200 all callers.
16201 (dict_create_hashed, dict_create_hashed_expandable)
16202 (dict_create_linear, dict_create_linear_expandable, dict_free)
16203 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16204 Make functions static.
16205
16206 2019-01-10 Keith Seitz <keiths@redhat.com>
16207
16208 PR gdb/23712
16209 PR symtab/23010
16210 * dictionary.h (struct dictionary): Replace declaration with
16211 multidictionary.
16212 (dict_create_hashed, dict_create_hashed_expandable)
16213 (dict_create_linear, dict_create_linear_expandable)
16214 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16215 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16216 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16217 taking multidictionary argument.
16218 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16219 * block.h (struct block) <dict>: Change to multidictionary
16220 and rename `multidict'.
16221 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16222 symmisc.c: Update all dictionary references to multidictionary.
16223
16224 2019-01-10 Keith Seitz <keiths@redhat.com>
16225
16226 PR gdb/23712
16227 PR symtab/23010
16228 * dictionary.c: Include unordered_map.
16229 (pending_to_vector): New function.
16230 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16231 Rewrite the non-"_1" functions to take vector instead
16232 of linked list.
16233 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16234 "new" _1 versions of the same name.
16235 (multidictionary): Define.
16236 (std::hash<enum language): New definition.
16237 (collate_pending_symbols_by_language, mdict_create_hashed)
16238 (mdict_create_hashed_expandable, mdict_create_linear)
16239 (mdict_create_linear_expandable, mdict_free)
16240 (find_language_dictionary, create_new_language_dictionary)
16241 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16242 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16243 (mdict_size, mdict_empty): New functions.
16244 * dictionary.h (mdict_iterator): Define.
16245
16246 2019-01-10 Pedro Alves <palves@redhat.com>
16247
16248 * breakpoint.c (read_uploaded_action)
16249 (create_tracepoint_from_upload): Adjust to use
16250 gdb::unique_xmalloc_ptr.
16251 * ctf.c (ctf_write_uploaded_tp):
16252 (SET_ARRAY_FIELD): Use emplace_back.
16253 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16254 * tracefile-tfile.c (tfile_write_uploaded_tp):
16255 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16256 gdb::unique_xmalloc_ptr.
16257 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16258 at_string, cond_string, cmd_strings>: Replace char pointers
16259 with gdb::unique_xmalloc_ptr.
16260
16261 2019-01-10 Pedro Alves <palves@redhat.com>
16262
16263 * solib-target.c (library_list_start_library): Don't xstrdup name.
16264
16265 2019-01-10 Pedro Alves <palves@redhat.com>
16266
16267 * mdebugread.c (parse_partial_symbols): Use
16268 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16269
16270 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16271
16272 * linux-fork.c (scoped_switch_fork_info)
16273 <~scoped_switch_fork_info>: Fix incorrect variable name.
16274
16275 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16276
16277 * linux-fork.c (scoped_switch_fork_info)
16278 <scoped_switch_fork_info>: Make explicit.
16279 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16280
16281 2019-01-10 Tom Tromey <tom@tromey.com>
16282
16283 * objfiles.h (objfile::reset_psymtabs): Update.
16284 * objfiles.c (objfile::objfile): Update.
16285 * psymtab.h (psymtab_storage::obstack): Update.
16286 (psymtab_storage::m_obstack): Use gdb::optional.
16287 (class psymtab_storage): Update comment. Remove objfile
16288 parameter.
16289 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16290
16291 2019-01-10 Tom Tromey <tom@tromey.com>
16292
16293 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16294 <free_psymtabs>: Now private.
16295 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16296 (allocate_psymtab): Use new method.
16297
16298 2019-01-10 Tom Tromey <tom@tromey.com>
16299
16300 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16301 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16302 * mdebugread.c (parse_partial_symbols): Use
16303 allocate_dependencies.
16304 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16305 allocate_dependencies.
16306 (process_psymtab_comp_unit_reader)
16307 (build_type_psymtab_dependencies): Likewise.
16308 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16309
16310 2019-01-10 Tom Tromey <tom@tromey.com>
16311
16312 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16313 PSYMBOL_SET_LANGUAGE.
16314 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16315
16316 2019-01-10 Tom Tromey <tom@tromey.com>
16317
16318 * psymtab.h (psymtab_storage::obstack): New method.
16319 <m_obstack>: Rename from obstack; now private.
16320 * psymtab.c (psymtab_storage): Update.
16321 * dwarf2read.c (create_addrmap_from_index)
16322 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16323 Update.
16324
16325 2019-01-10 Tom Tromey <tom@tromey.com>
16326
16327 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16328 * objfiles.h (objfile::reset_psymtabs): New method.
16329
16330 2019-01-10 Tom Tromey <tom@tromey.com>
16331
16332 * symmisc.c (print_symbol_bcache_statistics): Update.
16333 (print_objfile_statistics): Update.
16334 * symfile.c (reread_symbols): Update.
16335 * psymtab.h (class psymtab_storage): New.
16336 * psymtab.c (psymtab_storage): New constructor.
16337 (~psymtab_storage): New destructor.
16338 (require_partial_symbols): Update.
16339 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16340 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16341 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16342 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16343 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16344 (start_psymtab_common, end_psymtab_common)
16345 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16346 (allocate_psymtab): Update.
16347 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16348 Update.
16349 (dump_psymtab_addrmap, maintenance_print_psymbols)
16350 (maintenance_check_psymtabs): Update.
16351 (class objfile_psymtabs): Move to objfiles.h.
16352 * psympriv.h (discard_psymtab): Now inline.
16353 (psymtab_discarder::psymtab_discarder): Update.
16354 (psymtab_discarder::~psymtab_discarder): Update.
16355 (ALL_OBJFILE_PSYMTABS): Rewrite.
16356 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16357 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16358 Remove fields.
16359 <partial_symtabs>: New field.
16360 (class objfile_psymtabs): Move from psymtab.h. Update.
16361 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16362 psymbol_cache.
16363 (objfile::~objfile): Don't destroy psymbol_cache.
16364 * mdebugread.c (parse_partial_symbols): Update.
16365 * dwarf2read.c (create_addrmap_from_index)
16366 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16367 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16368 (add_partial_subprogram, dwarf2_ranges_read): Update.
16369 * dwarf-index-write.c (write_address_map)
16370 (write_one_signatured_type, recursively_write_psymbols)
16371 (class debug_names, class debug_names, write_psymtabs_to_index):
16372 Update.
16373
16374 2019-01-10 Tom Tromey <tom@tromey.com>
16375
16376 * symtab.h (SYMBOL_SET_NAMES): Update.
16377 (symbol_set_names): Update.
16378 (MSYMBOL_SET_NAMES): Update.
16379 * symtab.c (symbol_set_names): Change argument to be an
16380 objfile_per_bfd_storage.
16381 * psymtab.c (add_psymbol_to_bcache): Update.
16382 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16383
16384 2019-01-10 Tom Tromey <tom@tromey.com>
16385
16386 * symtab.c (create_demangled_names_hash): Change argument to be an
16387 objfile_per_bfd_storage.
16388 (symbol_set_names): Update.
16389
16390 2019-01-10 Tom Tromey <tom@tromey.com>
16391
16392 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16393 init_psymbol_list.
16394 * psymtab.c (init_psymbol_list): Do nothing if already called.
16395 * psympriv.h (init_psymbol_list): Add comment.
16396 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16397 init_psymbol_list.
16398 * dbxread.c (dbx_symfile_read): Unconditionally call
16399 init_psymbol_list.
16400
16401 2019-01-10 Tom Tromey <tom@tromey.com>
16402
16403 * xcoffread.c (scan_xcoff_symtab): Update.
16404 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16405 "where".
16406 * mdebugread.c (parse_partial_symbols)
16407 (handle_psymbol_enumerators): Update.
16408 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16409 * dbxread.c (read_dbx_symtab): Update.
16410 * psympriv.h (psymbol_placement): New enum.
16411 (add_psymbol_to_list): Update.
16412
16413 2019-01-10 Tom Tromey <tom@tromey.com>
16414
16415 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16416 static_psymbols parameters.
16417 (scan_xcoff_symtab): Update.
16418 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16419 static_psymbols parameters.
16420 * psympriv.h (start_psymtab_common): Update.
16421 * mdebugread.c (parse_partial_symbols): Update.
16422 * dwarf2read.c (create_partial_symtab): Update.
16423 * dbxread.c (read_dbx_symtab): Update.
16424 (start_psymtab): Remove global_psymbols and static_psymbols
16425 parameters.
16426
16427 2019-01-10 Tom Tromey <tom@tromey.com>
16428
16429 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16430 * psymtab.c (allocate_psymtab): Add comment.
16431 * psympriv.h (allocate_psymtab): Add comment.
16432 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16433 initializations.
16434 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16435
16436 2019-01-10 Tom Tromey <tom@tromey.com>
16437
16438 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16439 Don't declare.
16440 * mipsread.c: Include mdebugread.h.
16441 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16442 Declare.
16443 * elfread.c: Include mdebugread.h.
16444
16445 2019-01-09 Tom Tromey <tom@tromey.com>
16446
16447 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16448 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16449 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16450 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16451 (psym_lookup_symbol, psym_find_last_source_symtab)
16452 (psym_forget_cached_source_info, psym_print_stats)
16453 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16454 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16455 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16456 (psym_find_compunit_symtab_by_address)
16457 (maintenance_print_psymbols, maintenance_info_psymtabs)
16458 (maintenance_check_psymtabs): Use ranged for.
16459 * psymtab.h (class objfile_psymtabs): New.
16460 (require_partial_symbols): Return objfile_psymtabs.
16461 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16462
16463 2019-01-09 Tom Tromey <tom@tromey.com>
16464
16465 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16466 (find_pc_mapped_section, list_overlays_command)
16467 (map_overlay_command, unmap_overlay_command)
16468 (simple_overlay_update): Use all_objfiles.
16469 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16470 * printcmd.c (info_symbol_command): Use all_objfiles.
16471 * objfiles.h (ALL_OBJSECTIONS): Remove.
16472 * maint.c (maintenance_translate_address): Use all_objfiles.
16473 * gcore.c (gcore_create_callback): Use all_objfiles.
16474 (objfile_find_memory_regions): Likewise.
16475
16476 2019-01-09 Tom Tromey <tom@tromey.com>
16477
16478 * symtab.c (find_line_symtab, info_sources_command)
16479 (make_source_files_completion_list): Use objfile_compunits.
16480 * source.c (select_source_symtab): Use objfile_compunits.
16481 * objfiles.h (struct objfile): Update comment.
16482 (ALL_OBJFILES): Remove.
16483 (ALL_FILETABS): Remove.
16484 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16485 objfile_compunits.
16486
16487 2019-01-09 Tom Tromey <tom@tromey.com>
16488
16489 * symmisc.c (print_objfile_statistics, dump_objfile)
16490 (maintenance_print_symbols): Use compunit_filetabs.
16491 * source.c (forget_cached_source_info_for_objfile): Use
16492 compunit_filetabs.
16493 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16494 (ALL_FILETABS): Use compunit_filetabs.
16495 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16496 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16497
16498 2019-01-09 Tom Tromey <tom@tromey.com>
16499
16500 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16501 (compunit_filetabs): New.
16502 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16503 compunit_filetabs.
16504 (info_sources_command, make_source_files_completion_list): Remove
16505 declaration.
16506 * symmisc.c (print_objfile_statistics, dump_objfile)
16507 (maintenance_print_symbols): Remove declaration.
16508 (maintenance_info_symtabs): Use compunit_filetabs.
16509 (maintenance_info_line_tables): Likewise.
16510 * source.c (select_source_symtab): Change local variable name.
16511 (forget_cached_source_info_for_objfile): Remove declaration.
16512 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16513 * objfiles.c (objfile_relocate1): Remove declaration.
16514 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16515 declaration.
16516 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16517 * coffread.c (coff_symtab_read): Remove declaration.
16518 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16519 compunit_filetabs.
16520
16521 2019-01-09 Tom Tromey <tom@tromey.com>
16522
16523 * symtab.c (lookup_objfile_from_block)
16524 (find_pc_sect_compunit_symtab, search_symbols)
16525 (default_collect_symbol_completion_matches_break_on): Use
16526 objfile_compunits.
16527 * objfiles.h (ALL_COMPUNITS): Remove.
16528 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16529 * cp-support.c (add_symbol_overload_list_qualified): Use
16530 objfile_compunits.
16531 * ada-lang.c (ada_collect_symbol_completion_matches)
16532 (ada_add_global_exceptions): Use objfile_compunits.
16533
16534 2019-01-09 Tom Tromey <tom@tromey.com>
16535
16536 * source.c (select_source_symtab)
16537 (forget_cached_source_info_for_objfile): Remove declaration.
16538 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16539 declaration.
16540 * maint.c (count_symtabs_and_blocks): Remove declaration.
16541 * cp-support.c (add_symbol_overload_list_qualified): Remove
16542 declaration.
16543 * coffread.c (coff_symtab_read): Remove declaration.
16544 * symtab.c (lookup_symbol_in_objfile_symtabs)
16545 (basic_lookup_transparent_type_1): Use objfile_compunits.
16546 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16547 (info_sources_command, search_symbols)
16548 (default_collect_symbol_completion_matches_break_on)
16549 (make_source_files_completion_list): Remove declaration.
16550 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16551 (ada_collect_symbol_completion_matches)
16552 (ada_add_global_exceptions): Remove declaration.
16553 * linespec.c (iterate_over_all_matching_symtabs): Use
16554 objfile_compunits.
16555 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16556 (class objfile_compunits): New.
16557 (ALL_COMPUNITS): Use objfile_compunits.
16558 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16559 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16560 objfile_compunits.
16561 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16562
16563 2019-01-09 Tom Tromey <tom@tromey.com>
16564
16565 * symtab.c (search_symbols)
16566 (default_collect_symbol_completion_matches_break_on): Use
16567 objfile_msymbols.
16568 * ada-lang.c (ada_lookup_simple_minsym)
16569 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16570 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16571 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16572 objfile_msymbols.
16573 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16574 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16575 * objc-lang.c (find_methods): Use objfile_msymbols.
16576 (info_selectors_command, info_classes_command): Likewise.
16577 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16578 * objfiles.h (class objfile_msymbols): New.
16579 (ALL_OBJFILE_MSYMBOLS): Remove.
16580 (ALL_MSYMBOLS): Remove.
16581
16582 2019-01-09 Tom Tromey <tom@tromey.com>
16583
16584 * common/next-iterator.h (next_adapter): Add Iterator template
16585 parameter.
16586 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16587 (class all_objfiles_safe): New.
16588 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16589 * objfiles.c (put_objfile_before): Update comment.
16590 (add_separate_debug_objfile): Likewise.
16591 (free_all_objfiles): Use all_objfiles_safe.
16592 (objfile_purge_solibs): Likewise.
16593
16594 2019-01-09 Tom Tromey <tom@tromey.com>
16595
16596 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16597 (expand_symtab_containing_pc, lookup_static_symbol)
16598 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16599 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16600 all_objfiles.
16601 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16602 * breakpoint.c (create_overlay_event_breakpoint)
16603 (create_longjmp_master_breakpoint)
16604 (create_std_terminate_master_breakpoint)
16605 (create_exception_master_breakpoint): Use all_objfiles.
16606 * linux-thread-db.c (try_thread_db_load_from_pdir)
16607 (has_libpthread): Use all_objfiles.
16608 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16609 * linespec.c (iterate_over_all_matching_symtabs)
16610 (search_minsyms_for_name): Use all_objfiles.
16611 * maint.c (maintenance_info_sections): Use all_objfiles.
16612 * main.c (captured_main_1): Use all_objfiles.
16613 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16614 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16615 * guile/scm-pretty-print.c
16616 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16617 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16618 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16619 (maintenance_print_msymbols): Use all_objfiles.
16620 * source.c (select_source_symtab): Use all_objfiles.
16621 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16622 * symfile.c (remove_symbol_file_command)
16623 (expand_symtabs_matching, map_symbol_filenames): Use
16624 all_objfiles.
16625 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16626 all_objfiles.
16627 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16628 * objc-lang.c (find_methods): Use all_objfiles.
16629 * objfiles.c (have_partial_symbols, have_full_symbols)
16630 (have_minimal_symbols, qsort_cmp)
16631 (default_iterate_over_objfiles_in_search_order): Use
16632 all_objfiles.
16633 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16634 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16635 (maintenance_check_psymtabs): Use all_objfiles.
16636 (ALL_PSYMTABS): Remove.
16637 * compile/compile-object-run.c (do_module_cleanup): Use
16638 all_objfiles.
16639 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16640 * cp-support.c (add_symbol_overload_list_qualified): Use
16641 all_objfiles.
16642 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16643 Use all_objfiles.
16644 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16645 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16646 all_objfiles.
16647 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16648 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16649 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16650 Uses all_objfiles.
16651 * solib.c (solib_read_symbols): Use all_objfiles
16652
16653 2019-01-09 Tom Tromey <tom@tromey.com>
16654
16655 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16656 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16657 all_objfiles.
16658 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16659 * symmisc.c (print_symbol_bcache_statistics)
16660 (print_objfile_statistics, maintenance_print_objfiles)
16661 (maintenance_info_symtabs, maintenance_check_symtabs)
16662 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16663 all_objfiles.
16664 * source.c (forget_cached_source_info): Use all_objfiles.
16665 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16666 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16667 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16668 * objfiles.c (update_section_map): Use all_objfiles.
16669 (shared_objfile_contains_address_p): Likewise.
16670 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16671 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16672
16673 2019-01-09 Tom Tromey <tom@tromey.com>
16674
16675 * common/next-iterator.h: New file.
16676 * objfiles.h (class all_objfiles): New.
16677 (struct objfile_iterator): New.
16678
16679 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16680
16681 * NEWS: Move the description of the changed "frame", "select-frame",
16682 and "info frame" commands to the Changed commands section.
16683
16684 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16685
16686 * gdbtypes.c (check_stub_method_group): Remove handling of old
16687 mangling schemes.
16688 * linespec.c (find_methods): Likewise.
16689 * stabsread.c (read_member_functions): Likewise.
16690 * valops.c (search_struct_method): Likewise.
16691 (value_struct_elt_for_reference): Likewise.
16692 * NEWS: Mention this change.
16693
16694 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16695
16696 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16697 print_source_lines.
16698 * source.c (print_source_lines_base): Update line number check.
16699 (print_source_lines): New function.
16700 (source_lines_range::source_lines_range): New function.
16701 * source.h (class source_lines_range): New class.
16702 (print_source_lines): New declaration.
16703
16704 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16705
16706 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16707
16708 2019-01-08 Tom Tromey <tom@tromey.com>
16709 Simon Marchi <simon.marchi@ericsson.com>
16710
16711 PR gdb/24060
16712 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16713 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16714 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16715 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16716 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16717 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16718
16719 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16720
16721 * source.c (select_source_symtab): Move header comment to
16722 declaration in source.h.
16723 (forget_cached_source_info_for_objfile): Likewise.
16724 (forget_cached_source_info): Likewise.
16725 (identify_source_line): Likewise.
16726 * source.h (identify_source_line): Move declaration from symtab.h
16727 and add comment from source.c
16728 (print_source_lines): Likewise.
16729 (forget_cached_source_info_for_objfile): Likewise.
16730 (forget_cached_source_info): Likewise.
16731 (select_source_symtab): Likewise.
16732 (enum print_source_lines_flag): Move definition from symtab.h.
16733 * symtab.h (identify_source_line): Move declaration to source.h.
16734 (print_source_lines): Likewise.
16735 (forget_cached_source_info_for_objfile): Likewise.
16736 (forget_cached_source_info): Likewise.
16737 (select_source_symtab): Likewise.
16738 (enum print_source_lines_flag): Move definition to source.h.
16739 * tui/tui-hooks.c: Add 'source.h' include.
16740
16741 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16742
16743 * source.c (print_source_lines_base): Handle requests to print
16744 reverse line number sequences, and guard against empty lines
16745 string.
16746
16747 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16748
16749 * source.c (print_source_lines_base): Fix skip of '\r' if next
16750 character is '\n'.
16751
16752 2019-01-06 Tom Tromey <tom@tromey.com>
16753
16754 * c-exp.y (struct c_parse_state) <macro_original_text,
16755 expansion_obstack>: New member.
16756 (macro_original_text, expansion_obstack): Remove globals.
16757 (scan_macro_expansion, scanning_macro_expansion)
16758 (finished_macro_expansion): Update.
16759 (scan_macro_cleanup): Remove.
16760 (yylex, c_parse): Update.
16761
16762 2019-01-06 Tom Tromey <tom@tromey.com>
16763
16764 * c-exp.y (struct c_parse_state) <strings>: New member.
16765 (operator_stoken): Update.
16766
16767 2019-01-06 Tom Tromey <tom@tromey.com>
16768
16769 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16770 (union type_stack_elt) <typelist_val>: Now a pointer to
16771 std::vector.
16772 (type_stack_cleanup): Don't declare.
16773 (push_typelist): Update.
16774 * parse.c (pop_typelist): Return a std::vector.
16775 (push_typelist): Take a std::vector.
16776 (follow_types): Update. Do not free args.
16777 (type_stack_cleanup): Remove.
16778 * c-exp.y (struct c_parse_state): New.
16779 (cpstate): New global.
16780 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16781 (nonempty_typelist): Update.
16782 (func_mod): Create a new vector.
16783 (c_parse): Create a c_parse_state.
16784 (check_parameter_typelist): Do not delete params.
16785 (function_method): Update. Do not delete type_list.
16786
16787 2019-01-06 Tom Tromey <tom@tromey.com>
16788
16789 PR gdb/28155:
16790 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16791 check_typedef.
16792 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16793 (print_return_value): Likewise.
16794
16795 2019-01-05 Tom Tromey <tom@tromey.com>
16796
16797 * contrib/cleanup_check.py: Remove.
16798 * contrib/gcc-with-excheck: Remove.
16799 * contrib/exsummary.py: Remove.
16800 * contrib/excheck.py: Remove.
16801
16802 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16803
16804 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16805 NULL. Initialize tpprev to NULL instead of assigning it
16806 to NULL on the next statement.
16807 * windows-nat.c (windows_delete_thread): Remove check for
16808 main_thread_id before printing thread exit notifications.
16809 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16810 Remove thread ID check against main_thread_id.
16811 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16812 windows_delete_thread.
16813 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16814
16815 2019-01-04 Tom Tromey <tom@tromey.com>
16816
16817 * compile/compile.c (_initialize_compile): Use upper case for
16818 metasyntactic variables.
16819 * symmisc.c (_initialize_symmisc): Use upper case for
16820 metasyntactic variables.
16821 * psymtab.c (_initialize_psymtab): Use upper case for
16822 metasyntactic variables.
16823 * demangle.c (demangle_command): Use upper case for metasyntactic
16824 variables.
16825 (_initialize_demangler): Likewise.
16826 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16827 variables.
16828
16829 2019-01-03 Tom Tromey <tom@tromey.com>
16830
16831 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16832
16833 2019-01-03 Tom Tromey <tom@tromey.com>
16834
16835 * python/py-symtab.c (salpy_str): Update.
16836 (struct salpy_sal_object) <symtab>: Now a PyObject.
16837 (salpy_dealloc): Update.
16838 (del_objfile_sal): Use gdbpy_ref.
16839
16840 2019-01-03 Tom Tromey <tom@tromey.com>
16841
16842 * python/py-type.c (convert_field): Use new_reference. Return
16843 gdbpy_ref.
16844 (make_fielditem): Return gdbpy_ref.
16845 (typy_fields): Update.
16846 (typy_getitem): Update.
16847 (field_name): Return gdbpy_ref. Use new_reference.
16848 (typy_iterator_iternext): Update.
16849
16850 2019-01-03 Tom Tromey <tom@tromey.com>
16851
16852 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16853
16854 2019-01-03 Tom Tromey <tom@tromey.com>
16855
16856 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16857 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16858 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16859 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16860 (pspy_set_type_printers): Likewise.
16861 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16862 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16863 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16864 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16865 (objfpy_set_type_printers): Likewise.
16866
16867 2019-01-03 Tom Tromey <tom@tromey.com>
16868
16869 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16870 (gdbpy_print_stack): Use gdbpy_err_fetch.
16871 * python/python-internal.h (class gdbpy_err_fetch): New class.
16872 (class gdbpy_enter) <m_error_type, m_error_value,
16873 m_error_traceback>: Remove.
16874 <m_error>: New member.
16875 (gdbpy_exception_to_string): Don't declare.
16876 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16877 * python/py-value.c (convert_value_from_python): Use
16878 gdbpy_err_fetch.
16879 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16880 gdbpy_exception_to_string.
16881 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16882 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16883 gdbpy_err_fetch.
16884
16885 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16886
16887 * linux-nat.c (delete_lwp_cleanup): Delete.
16888 (struct lwp_deleter): New struct.
16889 (lwp_info_up): New typedef.
16890 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16891 lwp_info_up.
16892
16893 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16894
16895 * linux-fork.c (class scoped_switch_fork_info): New class.
16896 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16897
16898 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16899
16900 * valops.c (find_overload_match): Remove use of null_cleanup, and
16901 calls to do_cleanups.
16902
16903 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16904
16905 * compile/compile-cplus-types.c
16906 (compile_cplus_instance::decl_name): Handle changes to
16907 cp_func_name.
16908 * cp-support.c (cp_func_name): Update header comment, update
16909 return type.
16910 * cp-support.h (cp_func_name): Update return type in declaration.
16911 * valops.c (find_overload_match): Move temp_func local to top
16912 level of function and change its type. Use temp_func to hold and
16913 delete temporary string obtained from cp_func_name.
16914
16915 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16916
16917 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16918 gdb::char_vector, remove cleanup, and update uses of `msg`.
16919
16920 2019-01-03 Jim Wilson <jimw@sifive.com>
16921
16922 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16923
16924 2019-01-02 Tom Tromey <tom@tromey.com>
16925
16926 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16927 (tdesc_parse_xml): Remove cleanups.
16928 * target-descriptions.h (make_cleanup_free_target_description):
16929 Don't declare.
16930 (target_desc_deleter): New struct.
16931 (target_desc_up): New typedef.
16932 * target-descriptions.c (target_desc_deleter::operator()): Rename
16933 from free_target_description.
16934 (make_cleanup_free_target_description): Remove.
16935
16936 2019-01-02 Tom Tromey <tom@tromey.com>
16937
16938 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16939 constructor, destructor.
16940 (linespec_parser): Remove typedef.
16941 (~linespec_parser): Rename from linespec_parser_delete.
16942 (linespec_lex_to_end, linespec_complete_label)
16943 (linespec_complete): Update.
16944 (decode_line_full): Remove cleanups.
16945 (decode_line_1): Update.
16946
16947 2019-01-02 Tom Tromey <tom@tromey.com>
16948
16949 * python/python-internal.h (inferior_to_inferior_object): Change
16950 return type.
16951 * python/py-exitedevent.c (create_exited_event_object): Update.
16952 * python/py-inferior.c (inferior_to_inferior_object): Return
16953 gdbpy_ref.
16954 (python_new_inferior, python_inferior_deleted)
16955 (thread_to_thread_object, delete_thread_object)
16956 (build_inferior_list, gdbpy_selected_inferior): Update.
16957 * python/py-infthread.c (create_thread_object): Update. Also fail
16958 if inferior_to_inferior_object fails.
16959
16960 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16961
16962 * inferior.h (class inferior) <displaced_step_state>: New field.
16963 * infrun.h (struct displaced_step_state): Move here from
16964 infrun.c. Initialize fields, add constructor.
16965 <inf>: Remove field.
16966 <reset>: New method.
16967 * infrun.c (struct displaced_step_inferior_state): Move to
16968 infrun.h.
16969 (displaced_step_inferior_states): Remove.
16970 (get_displaced_stepping_state): Adust.
16971 (displaced_step_in_progress_any_inferior): Adjust.
16972 (displaced_step_in_progress_thread): Adjust.
16973 (displaced_step_in_progress): Adjust.
16974 (add_displaced_stepping_state): Remove.
16975 (get_displaced_step_closure_by_addr): Adjust.
16976 (remove_displaced_stepping_state): Remove.
16977 (infrun_inferior_exit): Call displaced_step_state.reset.
16978 (use_displaced_stepping): Don't check for NULL.
16979 (displaced_step_prepare_throw): Call
16980 get_displaced_stepping_state.
16981 (displaced_step_fixup): Don't check for NULL.
16982 (prepare_for_detach): Don't check for NULL.
16983
16984 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16985
16986 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16987 in case of call that did not complete.
16988
16989 2019-01-02 Andrey Utkin <autkin@undo.io>
16990
16991 * symfile.c (find_separate_debug_file): Fix search of debug files for
16992 remote debuggee.
16993
16994 2019-01-02 Tom Tromey <tom@tromey.com>
16995
16996 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16997 indentation.
16998 * python/py-frame.c (frapy_older): Remove cast.
16999 (frapy_newer): Likewise.
17000 * python/py-breakpoint.c (local_setattro): Remove cast.
17001 * python/py-arch.c (archpy_name): Remove local variable.
17002 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17003
17004 2019-01-02 Joel Brobecker <brobecker@adacore.com>
17005
17006 * unittests/basic_string_view/element_access/char/empty.cc:
17007 Fix year range in copyright header.
17008
17009 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17010
17011 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17012 Delete.
17013 <operator==>: Update with for removed field.
17014 <hash>: Likewise.
17015 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17016 <isa_features>: ...this.
17017 <abi_features>: New field.
17018 (riscv_isa_flen): Update comment.
17019 (riscv_abi_xlen): New declaration.
17020 (riscv_abi_flen): New declaration.
17021 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17022 isa_features.
17023 (riscv_abi_xlen): New function.
17024 (riscv_isa_flen): Update to get answer from isa_features.
17025 (riscv_abi_flen): New function.
17026 (riscv_has_fp_abi): Update to get answer from abi_features.
17027 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17028 xlen and flen.
17029 (riscv_call_info) <xlen, flen>: Update comment.
17030 (riscv_call_arg_struct): Remove invalid assertions
17031 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17032 is removed.
17033 (riscv_gdbarch_init): Gather isa features and abi features
17034 separately, ensure both match on the gdbarch when reusing an old
17035 gdbarch. Relax an error check to allow 32-bit abi float to run on
17036 a target with 64-bit float hardware.
17037
17038 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17039
17040 * source.c (search_command_helper): Stop reverse search
17041 when line 1 has been searched.
17042
17043 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17044
17045 * record-full.c (record_full_base_target::close): Rewrite
17046 record_full_core_buf_list free logic.
17047
17048 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17049
17050 * break-catch-syscall.c (print_one_catch_syscall): xfree
17051 the last text.
17052
17053 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17054
17055 * top.c (print_gdb_version): Update Copyright year in version
17056 message.
17057
17058 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17059
17060 Update copyright year range in all GDB files.
17061
17062 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
17063
17064 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
17065
17066 For older changes see ChangeLog-2018.
17067 \f
17068 Local Variables:
17069 mode: change-log
17070 left-margin: 8
17071 fill-column: 74
17072 version-control: never
17073 coding: utf-8
17074 End:
17075
This page took 0.403738 seconds and 4 git commands to generate.