Use a member function to set a symbol's language
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-15 Christian Biesinger <cbiesinger@google.com>
2
3 * ada-exp.y (write_ambiguous_var): Update.
4 * coffread.c (process_coff_symbol): Update.
5 * ctfread.c (ctf_add_enum_member_cb): Update.
6 (new_symbol): Update.
7 * dwarf2read.c (fixup_go_packaging): Update.
8 (new_symbol): Update.
9 * language.c (language_alloc_type_symbol): Update.
10 * mdebugread.c (new_symbol): Update.
11 * minsyms.c (minimal_symbol_reader::record_full): Update.
12 * psymtab.c (add_psymbol_to_bcache): Update.
13 * stabsread.c (define_symbol): Update.
14 (read_enum_type): Update.
15 * symtab.c (symbol_set_language): Make this a member function...
16 (general_symbol_info::set_language): ... here.
17 * symtab.h (struct general_symbol_info) <set_language>: New function.
18 (SYMBOL_SET_LANGUAGE): Remove.
19 (symbol_set_language): Remove.
20
21 2019-12-15 Christian Biesinger <cbiesinger@google.com>
22
23 * ada-lang.c (ada_add_block_symbols): Update.
24 (ada_collect_symbol_completion_matches): Update.
25 * ax-gdb.c (gen_expr): Update.
26 * block.c (block_lookup_symbol): Update.
27 (block_lookup_symbol_primary): Update.
28 (block_find_symbol): Update.
29 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
30 * dbxread.c (process_one_symbol): Update.
31 * dictionary.c (insert_symbol_hashed): Update.
32 (collate_pending_symbols_by_language): Update.
33 (mdict_add_symbol): Update.
34 * dwarf-index-write.c (write_psymbols): Update.
35 * dwarf2read.c (fixup_go_packaging): Update.
36 * findvar.c (read_var_value): Update.
37 * ft32-tdep.c (ft32_skip_prologue): Update.
38 * go-lang.c (go_symbol_package_name): Update.
39 * language.h (scoped_switch_to_sym_language_if_auto::
40 scoped_switch_to_sym_language_if_auto): Update.
41 * linespec.c (find_method): Update.
42 (find_label_symbols_in_block): Update.
43 * mdebugread.c (parse_symbol): Update.
44 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
45 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
46 (minimal_symbol_reader::install): Update.
47 * moxie-tdep.c (moxie_skip_prologue): Update.
48 * parse.c (parse_exp_in_context): Update.
49 * psymtab.c (psymbol_name_matches): Update.
50 (match_partial_symbol): Update.
51 (lookup_partial_symbol): Update.
52 (psymbol_hash): Update.
53 (psymbol_compare): Update.
54 * python/py-framefilter.c (extract_sym): Update.
55 (py_print_single_arg): Update.
56 * stabsread.c (define_symbol): Update.
57 * stack.c (print_frame_arg): Update.
58 (find_frame_funname): Update.
59 (info_frame_command_core): Update.
60 * symfile.c (set_initial_language): Update.
61 * symtab.c (symbol_set_demangled_name): Update.
62 (symbol_get_demangled_name): Update.
63 (symbol_set_language): Update.
64 (symbol_find_demangled_name): Update.
65 (symbol_set_names): Update.
66 (general_symbol_info::natural_name): Update.
67 (general_symbol_info::demangled_name): Update.
68 (general_symbol_info::search_name): Update.
69 (symbol_matches_search_name): Update.
70 (eq_symbol_entry): Update.
71 (iterate_over_symbols): Update.
72 (completion_list_add_symbol): Update.
73 (completion_list_add_msymbol): Update.
74 (completion_list_add_fields): Update.
75 * symtab.h (struct general_symbol_info) <language>: New function.
76 <language>: Rename to...
77 <m_language>: ...this.
78 (SYMBOL_LANGUAGE): Remove.
79 (MSYMBOL_LANGUAGE): Remove.
80 (struct symbol) <ctor>: Update.
81 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
82
83 2019-12-15 Christian Biesinger <cbiesinger@google.com>
84
85 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
86 set the language of sym.
87 * language.c (language_alloc_type_symbol): Likewise.
88
89 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
90
91 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
92 PR gdb/23613
93 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
94 * corelow.c: Include 'gdbsupport/pathstuff.h'.
95 (core_target_open): Use 'gdb_abspath'.
96 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
97 'current_directory == NULL' case.
98 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
99 explain what happens when 'current_directory' is NULL.
100 * go32-nat.c (go32_nat_target::wait): Check if
101 'current_directory' is NULL before call to 'chdir'.
102 * source.c (add_path): Use 'gdb_abspath'.
103 * top.c: Include 'gdbsupport/pathstuff.h'.
104 (init_history): Use 'gdb_abspath'.
105 (set_history_filename): Likewise.
106 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
107 (tfile_target_open): Use 'gdb_abspath'.
108
109 2019-12-13 Tom Tromey <tromey@adacore.com>
110
111 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
112 warning or error.
113
114 2019-12-13 Tom Tromey <tromey@adacore.com>
115
116 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
117
118 2019-12-13 Tom Tromey <tromey@adacore.com>
119
120 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
121
122 2019-12-13 Tom Tromey <tromey@adacore.com>
123
124 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
125
126 2019-12-13 Tom Tromey <tromey@adacore.com>
127
128 * gdbsupport/common-utils.c (string_printf, string_vprintf)
129 (string_vappendf): Add ARI comment.
130
131 2019-12-13 Tom Tromey <tromey@adacore.com>
132
133 * contrib/ari/gdb_ari.sh: Remove "fix" call for
134 floatformat_to_double.
135 * target-float.c (host_float_ops<T>::from_target): Add ARI
136 comment.
137
138 2019-12-13 Tom Tromey <tromey@adacore.com>
139
140 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
141 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
142 ARI marker to abort.
143 * event-top.c (handle_sigsegv): Add ARI marker to abort.
144
145 2019-12-13 Tom Tromey <tromey@adacore.com>
146
147 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
148
149 2019-12-13 Tom Tromey <tromey@adacore.com>
150
151 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
152
153 2019-12-13 Tom Tromey <tromey@adacore.com>
154
155 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
156 checks.
157
158 2019-12-13 Tom Tromey <tromey@adacore.com>
159
160 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
161 end>: No longer "const".
162
163 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * jit.c: Fix indentation, replace spaces with tabs where
166 applicable.
167
168 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
169
170 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
171
172 2019-12-12 Tom Tromey <tom@tromey.com>
173
174 * objfiles.h (struct objfile) <partial_symtabs>: Now a
175 unique_ptr.
176
177 2019-12-12 Tom Tromey <tom@tromey.com>
178
179 * progspace.h (objfile_list): New typedef.
180 (class unwrapping_objfile_iterator)
181 (struct unwrapping_objfile_range): Newl
182 (struct program_space) <objfiles_range>: Change type.
183 <objfiles>: Change return type.
184 <add_objfile>: Change type of "objfile" parameter.
185 <objfiles_list>: Now a list of shared_ptr.
186 * progspace.c (program_space::add_objfile): Change type of
187 "objfile". Update.
188 (program_space::remove_objfile): Update.
189 * objfiles.h (struct objfile) <~objfile>: Make public.
190 * objfiles.c (objfile::make): Update.
191 (objfile::unlink): Don't call delete.
192
193 2019-12-12 Tom Tromey <tom@tromey.com>
194
195 * symfile.c (symbol_file_clear): Update.
196 * progspace.h (struct program_space) <free_all_objfiles>: Declare
197 method.
198 * progspace.c (program_space::free_all_objfiles): New method.
199 * objfiles.h (free_all_objfiles): Don't declare.
200 * objfiles.c (free_all_objfiles): Move to program_space.
201
202 2019-12-12 Tom Tromey <tom@tromey.com>
203
204 * progspace.c (program_space::add_objfile)
205 (program_space::remove_objfile): Update.
206 (program_space::multi_objfile_p): Remove.
207 * objfiles.h (struct objfile) <next>: Remove.
208 * objfiles.c (objfile::objfile): Update.
209 (put_objfile_before): Update.
210 (unlink_objfile): Update.
211 * progspace.h (object_files): Remove.
212 (struct program_space) <objfiles_head>: Remove.
213 <objfiles_list>: New member.
214 <objfiles_range, objfiles_safe_range>: Change type.
215 (objfiles): Change return type.
216 (objfiles_safe): Update.
217 (multi_objfile_p): Rewrite and inline.
218 (object_files): Remove macro.
219
220 2019-12-12 Tom Tromey <tom@tromey.com>
221
222 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
223 second constructor.
224 (basic_safe_range): New class.
225
226 2019-12-12 Tom Tromey <tom@tromey.com>
227
228 * progspace.c (program_space::multi_objfile_p): New method.
229 * printcmd.c (info_symbol_command): Update.
230 * maint.c (maintenance_translate_address): Update.
231 * objfiles.h (MULTI_OBJFILE_P): Remove.
232 * progspace.h (struct program_space) <multi_objfile_p>: New
233 method.
234
235 2019-12-12 Tom Tromey <tom@tromey.com>
236
237 * progspace.h (struct program_space) <remove_objfile>: Declare.
238 * progspace.c (program_space::remove_objfile): New method.
239 * objfiles.c (unlink_objfile): Remove.
240 (objfile::unlink): Call remove_objfile.
241 (objfile): Don't call unlink_objfile.
242
243 2019-12-12 Tom Tromey <tom@tromey.com>
244
245 * progspace.h (struct program_space) <add_objfile>: Declare
246 method.
247 * progspace.c (program_space::add_objfile): New method.
248 * objfiles.c (~objfile): Don't unlink objfile.
249 (put_objfile_before): Remove.
250 (add_separate_debug_objfile): Don't call put_objfile_before.
251 (objfile::make): Call add_objfile. Set new_objfiles_available on
252 the per-program-space data.
253
254 2019-12-12 Tom Tromey <tom@tromey.com>
255
256 * symfile.c (syms_from_objfile_1): Use objfile_up.
257 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
258 method.
259 (reread_symbols): Use objfile_up.
260 * solib.c (update_solib_list, reload_shared_libraries_1): Call
261 unlink method.
262 * objfiles.h (struct objfile) <~objfile>: Now private.
263 <unlink>: New method.
264 (struct objfile_deleter): New.
265 (objfile_up): New typedef.
266 * objfiles.c (objfile::unlink): New method.
267 (free_objfile_separate_debug, free_all_objfiles)
268 (objfile_purge_solibs): Use it.
269 * jit.c (jit_unregister_code): Remove.
270 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
271 objfile.
272 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
273 objfile.
274 * compile/compile-object-load.c (compile_object_load): Use
275 objfile_up.
276
277 2019-12-12 Tom Tromey <tom@tromey.com>
278
279 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
280 objfile::make.
281 * objfiles.h (struct objjfile) <make>: No longer inline.
282 (add_separate_debug_objfile): Don't declare.
283 * objfiles.c (add_separate_debug_objfile): Now static.
284 (objfile::make): Move from objfiles.h. Call
285 add_separate_debug_objfile. Add "parent" parameter.
286
287 2019-12-12 Tom Tromey <tom@tromey.com>
288
289 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
290 * objfiles.h (struct objfile): Make constructor private.
291 <make>: New static method.
292 * jit.c (jit_object_close_impl): Update.
293
294 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
297 gdb::byte_vector.
298
299 2019-12-12 Tom Tromey <tromey@adacore.com>
300
301 * xml-support.c (xml_fetch_content_from_file): Don't call
302 malloc_failure.
303 * utils.h (class gdb_argv): Remove malloc_failure comment.
304 * utils.c (gdb_argv::reset): Don't call malloc_failure.
305
306 2019-12-12 Tom Tromey <tromey@adacore.com>
307
308 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
309 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
310 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
311 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
312 * riscv-ravenscar-thread.c: New file.
313 * riscv-ravenscar-thread.h: New file.
314 * riscv-tdep.c (riscv_gdbarch_init): Call
315 register_riscv_ravenscar_ops.
316
317 2019-12-12 Tom Tromey <tromey@adacore.com>
318
319 * gdbsupport/thread-pool.c (set_thread_name): Use
320 ATTRIBUTE_UNUSED.
321
322 2019-12-12 Luis Machado <luis.machado@linaro.org>
323
324 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
325 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
326 macros.
327
328 2019-12-11 Tom Tromey <tom@tromey.com>
329
330 * tui/tui-win.c (tui_set_win_height_command): Call
331 tui_adjust_window_height.
332 (tui_adjust_win_heights, new_height_ok): Remove.
333 * tui/tui-layout.h (tui_adjust_window_height): Declare.
334 * tui/tui-layout.c (tui_adjust_window_height): New function.
335
336 2019-12-11 Tom Tromey <tom@tromey.com>
337
338 * tui/tui-win.c (tui_resize_all): Remove code, call
339 tui_apply_current_layout.
340
341 2019-12-11 Tom Tromey <tom@tromey.com>
342
343 * tui/tui-layout.h (tui_apply_current_layout): Declare.
344 * tui/tui-layout.c (standard_layouts, applied_layout): New
345 globals.
346 (tui_apply_current_layout): New function.
347 (show_layout): Set applied_layout. Call
348 tui_apply_current_layout.
349 (show_source_command, show_disasm_command)
350 (show_source_disasm_command, show_data)
351 (show_source_or_disasm_and_command): Remove.
352 (initialize_layouts): New function.
353 (_initialize_tui_layout): Call initialize_layouts.
354
355 2019-12-11 Tom Tromey <tom@tromey.com>
356
357 * tui/tui-layout.h (class tui_layout_base)
358 (class tui_layout_window, class tui_layout_split): New.
359 * tui/tui-layout.c (tui_get_window_by_name)
360 (tui_layout_window::clone, tui_layout_window::apply)
361 (tui_layout_window::get_sizes, tui_layout_window::add_split)
362 (tui_layout_split::add_window, tui_layout_split::clone)
363 (tui_layout_split::get_sizes)
364 (tui_layout_split::set_weights_from_heights)
365 (tui_layout_split::adjust_size, tui_layout_split::apply): New
366 functions.
367 (tui_layout_split::add_split, tui_layout_split::add_split)
368 (tui_layout_split::set_weights_from_heights)
369 (tui_layout_split::set_weights_from_heights): New functions.
370
371 2019-12-11 Tom Tromey <tom@tromey.com>
372
373 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
374 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
375 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
376 * tui/tui-data.h (struct tui_point): Remove.
377 (struct tui_gen_win_info) <origin>: Remove.
378 <x, y>: New fields.
379 * tui/tui-command.c (tui_cmd_window::resize): Update.
380
381 2019-12-11 Tom Tromey <tom@tromey.com>
382
383 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
384 Implement.
385 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
386 Implement.
387 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
388 method.
389 (struct tui_win_info) <min_height>: Implement.
390
391 2019-12-11 Tom Tromey <tom@tromey.com>
392
393 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
394 (struct tui_win_info) <can_box>: Update.
395
396 2019-12-11 Tom Tromey <tom@tromey.com>
397
398 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
399 method.
400 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
401 method.
402 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
403 method.
404 (struct tui_win_info) <max_height>: Now override.
405
406 2019-12-11 Joel Brobecker <brobecker@adacore.com>
407
408 * NEWS: Create a new section for the next release branch.
409 Rename the section of the current branch, now that it has
410 been cut.
411
412 2019-12-11 Joel Brobecker <brobecker@adacore.com>
413
414 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
415 * version.in: Bump version to 10.0.50.DATE-git.
416
417 2019-12-11 Tom Tromey <tromey@adacore.com>
418
419 PR build/25268:
420 * gdbsupport/thread-pool.c (set_thread_name): New function.
421 (thread_pool::set_thread_count): Don't call pthread_setname_np.
422 (thread_pool::thread_function): Call set_thread_name.
423
424 2019-12-11 Tom Tromey <tromey@adacore.com>
425
426 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
427 bfd_get_signed_8.
428
429 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
430
431 * NEWS: Document -raw-values option and the related setting commands.
432 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
433 only set it on when /r is given.
434 * valprint.c (value_print_option_defs): New element raw-values.
435 * Makefile.in: Add the new file.
436
437 2019-12-10 Christian Biesinger <cbiesinger@google.com>
438
439 * gdbsupport/safe-strerror.c: Supress the unused function warning
440 for select_strerror_r.
441
442 2019-12-10 Christian Biesinger <cbiesinger@google.com>
443
444 * config.in: Regenerate.
445 * configure: Regenerate.
446 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
447 safe_strerror instead of strerror.
448 * gdbsupport/common.m4: Don't check for strerror.
449 * gdbsupport/safe-strerror.c: Support both the glibc version
450 of strerror_r and the XSI version.
451
452 2019-12-10 Tom Tromey <tromey@adacore.com>
453
454 * ada-typeprint.c (print_choices): Use a single "?".
455 (print_variant_part): Print "?" if the discriminant name
456 is not known.
457
458 2019-12-10 George Barrett <bob@bob131.so>
459
460 Fix scripted probe breakpoints.
461 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
462 declaration forward.
463 (breakpoint_ops_for_event_location_type)
464 (breakpoint_ops_for_event_location): Add function definitions.
465 (break_command_1, trace_command): Use
466 breakpoint_ops_for_event_location.
467 * breakpoint.h (breakpoint_ops_for_event_location): Add function
468 declarations.
469 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
470 breakpoint_ops_for_event_location.
471 * python/py-breakpoint.c (bppy_init): Use
472 breakpoint_ops_for_event_location.
473
474 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
475
476 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
477 when ranking an lvalue argument for an rvalue parameter.
478
479 2019-12-08 Wataru Ashihara <wataash@wataash.com>
480
481 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
482 template argument for scoped_restore_tmpl from bool to int.
483
484 2019-12-07 Keith Seitz <keiths@redhat.com>
485
486 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
487 (build_id_to_debug_bfd): Make static, rewriting to use
488 build_id_to_bfd_suffix.
489 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
490 adding `suffix' parameter. Append SUFFIX to file names
491 when searching for matching files.
492 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
493 (build_id_to_exec_bfd): Likewise.
494 * build-id.h (build_id_to_debug_bfd): Clarify that function
495 searches for BFD of debug info file.
496 (build_id_to_exec_bfd): Declare.
497 * corelow.c: Include build-id.h.
498 (locate_exec_from_corefile_build_id): New function.
499 (core_target_open): If no executable BFD is found,
500 search for a core file BFD using build-id.
501
502 2019-12-06 Christian Biesinger <cbiesinger@google.com>
503
504 * bcache.c: Put in namespace gdb.
505 * bcache.h: Likewise.
506 * gdbtypes.c (check_types_worklist): Update.
507 (types_deeply_equal): Update.
508 * macrotab.c (struct macro_table) <bcache>: Update.
509 (new_macro_table): Update.
510 * macrotab.h (struct bcache): Put this forward declaration
511 inside namespace gdb.
512 (new_macro_table): Update.
513 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
514 Update.
515 <macro_cache>: Update.
516 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
517
518 2019-12-06 Tom de Vries <tdevries@suse.de>
519
520 PR symtab/24971
521 * block.c (best_symbol, better_symbol): New function.
522 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
523 decl.
524
525 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
526
527 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
528 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
529 for ranking see-through reference cases.
530
531 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
532 * stack.c (faas_command): Check a command is provided.
533 * thread.c (taas_command, tfaas_command): Likewise.
534
535 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
536 * inferior.c (prune_inferiors): Only call delete_inferior,
537 Do not modify the inferior list.
538
539 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
540
541 * c-exp.y: Update calls to lookup_typename,
542 lookup_signed_typename and lookup_unsigned_typename.
543 * c-lang.c (evaluate_subexp_c): Likewise.
544 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
545 Likewise.
546 * eval.c (binop_promote): Likewise.
547 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
548 (lookup_unsigned_typename): Likewise.
549 (lookup_signed_typename): Likewise.
550 * gdbtypes.h (lookup_unsigned_typename): Likewise.
551 (lookup_signed_typename): Likewise.
552 (lookup_typename): Likewise.
553 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
554 lookup_typename, lookup_signed_typename,
555 lookup_unsigned_typename.
556 * m2-exp.y: Likewise.
557 * printcmd.c (printf_wide_c_string): Likewise.
558 (ui_printf): Likewise.
559 * python/py-type.c (typy_lookup_typename): Likewise.
560 * python/py-xmethods.c (python_xmethod_worker::invoke):
561 Likewise.
562 * rust-exp.y: Likewise.
563
564 2019-12-04 Christian Biesinger <cbiesinger@google.com>
565
566 * configure.nat (obsd64): Add missing files x86-nat.o and
567 nat/x86-dregs.o.
568
569 2019-12-04 Tom Tromey <tom@tromey.com>
570
571 * valprint.c (val_print_string): Use metadata_style.
572 * go-valprint.c (print_go_string): Use metadata style.
573 * p-valprint.c (pascal_object_print_static_field): Use metadata
574 style.
575 * cp-valprint.c (cp_print_static_field): Use metadata style.
576
577 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
578 Chris January <chris.january@arm.com>
579
580 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
581 tokens.
582 (typebase): New patterns for complex, single/double precision, and
583 single/double complex.
584 (f77_keywords): Change token for complex keyword, and add single,
585 double, and precision keywords.
586
587 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
588
589 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
590 "info io_registers".
591
592 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
593
594 * regcache.c (cooked_read_test): Initialize thread list of
595 mock_inferior.
596
597 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
598
599 * aarch64-linux-tdep.c: Remove includes.
600
601 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
602
603 * aarch64-tdep.c: Remove includes.
604
605 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
606
607 * filtered-iterator.h (filtered_iterator) <operator==,
608 operator!=>: Compare wrapped iterators, not wrapped pointers.
609 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
610 unittests/filtered_iterator-selftests.c.
611 * unittests/filtered_iterator-selftests.c: New file.
612
613 2019-12-04 Tom Tromey <tromey@adacore.com>
614
615 * gdbtypes.c (create_range_type): Inherit endianity
616 from base type.
617
618 2019-12-04 Tom Tromey <tromey@adacore.com>
619
620 * ada-lang.c (decode_constrained_packed_array)
621 (ada_value_assign, value_assign_to_component): Update.
622 * dwarf2loc.c (rw_pieced_value, access_memory)
623 (dwarf2_compile_expr_to_ax): Update.
624 * dwarf2read.c (dwarf2_add_field): Update.
625 * eval.c (evaluate_subexp_standard): Update.
626 * gdbarch.c, gdbarch.h: Rebuild.
627 * gdbarch.sh (bits_big_endian): Remove.
628 * gdbtypes.h (union field_location): Update comment.
629 * target-descriptions.c (make_gdb_type): Update.
630 * valarith.c (value_bit_index): Update.
631 * value.c (struct value) <bitpos>: Update comment.
632 (unpack_bits_as_long, modify_field): Update.
633 * value.h (value_bitpos): Update comment.
634
635 2019-12-04 Tom Tromey <tromey@adacore.com>
636
637 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
638 endian-ness.
639
640 2019-12-04 Tom Tromey <tromey@adacore.com>
641
642 * dwarf2read.c (dwarf2_init_float_type)
643 (dwarf2_init_complex_target_type): Add byte_order parameter.
644 (read_base_type): Compute byte order earlier.
645 * gdbtypes.c (init_float_type): Add byte_order parameter.
646 * gdbtypes.h (init_float_type): Add byte_order parameter.
647
648 2019-12-04 Tom Tromey <tromey@adacore.com>
649
650 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
651
652 2019-12-04 Tom Tromey <tromey@adacore.com>
653
654 * dwarf2read.c (process_structure_scope): Initialize
655 "discr_offset".
656
657 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
660 add it into the search spec.
661 (parse_max_results_option): New function.
662 (mi_info_functions_or_variables): Parse -max-results flag and pass
663 it to mi_symbol_info.
664 (mi_cmd_symbol_info_modules): Likewise.
665 (mi_cmd_symbol_info_types): Likewise.
666 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
667 return type to bool, change result container into a set, and don't
668 add new results if we have enough already.
669 (global_symbol_searcher::add_matching_msymbols): Change return
670 type to bool, and don't add new results if we have enough already.
671 (sort_search_symbols_remove_dups): Delete.
672 (global_symbol_searcher::search): Early exit from search loop when
673 we have enough results. Use a std::set to collect the results
674 from calling add_matching_symbols.
675 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
676 member function.
677 (global_symbol_searcher) <m_max_search_results>: New member
678 variable.
679 (global_symbol_searcher) <add_matching_symbols>: Update header
680 comment and change return type to bool.
681 (global_symbol_searcher) <add_matching_msymbols>: Update header
682 comment and change return type to bool.
683
684 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * symtab.c (symbol_search::compare_search_syms): Update header
687 comment.
688 (global_symbol_searcher::is_suitable_msymbol): New function.
689 (global_symbol_searcher::expand_symtabs): New function.
690 (global_symbol_searcher::add_matching_symbols): New function.
691 (global_symbol_searcher::add_matching_msymbols): New function.
692 (global_symbol_searcher::search): Move most of the content
693 into the new functions above, and call them as needed.
694 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
695 function.
696 (global_symbol_searcher) <add_matching_symbols>: New member
697 function.
698 (global_symbol_searcher) <add_matching_msymbols>: New member
699 function.
700 (global_symbol_searcher) <is_suitable_msymbol>: New member
701 function.
702
703 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
706 -symbol-info-module-variables entries.
707 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
708 (mi_cmd_symbol_info_module_variables): Declare.
709 * mi/mi-symbol-cmds.c
710 (module_symbol_search_iterator): New typedef.
711 (output_module_symbols_in_single_module_and_file): New function.
712 (output_module_symbols_in_single_module): New function.
713 (mi_info_module_functions_or_variables): New function.
714 (mi_cmd_symbol_info_module_functions): New function.
715 (mi_cmd_symbol_info_module_variables): New function.
716 * NEWS: Mention new MI command.
717
718 2019-12-03 Christian Biesinger <cbiesinger@google.com>
719
720 * bcache.c (hash): Remove.
721 (hash_continue): Remove.
722 * bcache.h (hash): Remove.
723 (hash_continue): Remove.
724 (struct bcache) <ctor>: Update.
725 * psymtab.c (psymbol_hash): Update.
726 * stabsread.c (hashname): Update.
727 * utils.h (fast_hash): Add an argument for a start value,
728 defaulting to zero.
729
730 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
731 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
732 (destroy_block_symbol_cache): New function.
733 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
734 (resize_symbol_cache): Likewise.
735
736 2019-12-02 Tom Tromey <tom@tromey.com>
737
738 * unittests/tui-selftests.c (run_tests): Make conditional.
739 (_initialize_tui_selftest): Make conditional.
740
741 2019-12-02 Christian Biesinger <cbiesinger@google.com>
742
743 * aix-thread.c (debug_aix_thread): Change type to bool.
744
745 2019-12-02 Luis Machado <luis.machado@linaro.org>
746
747 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
748
749 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 * dwarf2read.c (read_tag_string_type): Read the fields required to
752 make a dynamic string, and possibly create a dynamic range for the
753 string.
754 (attr_to_dynamic_prop): Setup is_reference based on the type of
755 attribute being processed.
756 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
757 (resolve_dynamic_array): Rename to...
758 (resolve_dynamic_array_or_string): ...this, update header comment,
759 and accept TYPE_CODE_STRING.
760 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
761
762 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
765 of its implementation from...
766 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
767 the new function.
768
769 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
772 create a range with stride where appropriate.
773 * f-valprint.c: Include 'gdbarch.h'.
774 (f77_print_array_1): Take the stride into account when walking the
775 array. Also convert the stride into addressable units.
776 * gdbtypes.c (create_range_type): Initialise the stride to
777 constant zero.
778 (create_range_type_with_stride): New function, initialise the
779 range as normal, and then setup the stride.
780 (has_static_range): Include the stride here. Also change the
781 return type to bool.
782 (create_array_type_with_stride): Consider the range stride if the
783 array isn't given its own stride.
784 (resolve_dynamic_range): Resolve the stride if needed.
785 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
786 (struct range_bounds) <flag_is_byte_stride>: New member variable.
787 (TYPE_BIT_STRIDE): Define.
788 (TYPE_ARRAY_BIT_STRIDE): Define.
789 (create_range_type_with_stride): Declare.
790 * valarith.c (value_subscripted_rvalue): Take range stride into
791 account when walking the array.
792
793 2019-12-01 Tom Tromey <tom@tromey.com>
794
795 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
796 specially.
797
798 2019-12-01 Tom Tromey <tom@tromey.com>
799
800 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
801 \0.
802 * unittests/tui-selftests.c: New file.
803 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
804
805 2019-12-01 Tom Tromey <tom@tromey.com>
806
807 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
808
809 2019-12-01 Tom Tromey <tom@tromey.com>
810
811 * NEWS: Document new settings.
812 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
813 * tui/tui-win.c (_initialize_tui_win): Add border style
814 observers.
815 * tui/tui-io.h (tui_apply_style): Declare.
816 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
817 longer static.
818 (apply_ansi_escape, tui_set_reverse_mode): Update.
819 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
820 Add "skip_intensity" parameter.
821 <changed>: New member.
822 <do_set_value>: Declare.
823 (tui_border_style, tui_active_border_style): Declare.
824 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
825 globals.
826 (cli_style_option): Initialize "changed".
827 (cli_style_option::do_set_value): New function.
828 (cli_style_option::add_setshow_commands): Add "skip_intensity"
829 parameter. Update.
830 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
831 (_initialize_cli_style): Update. Create TUI border style
832 commands.
833
834 2019-12-01 Tom Tromey <tom@tromey.com>
835
836 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
837 parameter.
838 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
839 parameter.
840 * tui/tui-win.h (compact_source): Declare.
841 * tui/tui-win.c (compact_source): New global.
842 (tui_set_compact_source, tui_show_compact_source): New functions.
843 (_initialize_tui_win): Add "compact-source" setting.
844 * tui/tui-source.c (tui_source_window::set_contents): Handle
845 compact_source setting.
846 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
847 * NEWS: Document new setting.
848
849 2019-11-30 Tom Tromey <tom@tromey.com>
850
851 * dwarf2read.c (dwarf2_add_field): Include field offset when
852 computing variant part length.
853
854 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
855 * NEWS: Mention define-prefix. Tell that command names can now
856 contain a . character.
857
858 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
859
860 * command.h (valid_cmd_char_p): Declare.
861 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
862 the check of valid command char.
863 (find_command_name_length, valid_user_defined_cmd_name_p): Use
864 valid_cmd_char_p.
865 * cli/cli-script.c (validate_comname): Likewise.
866 * completer.c (gdb_completer_command_word_break_characters):
867 Do not remove . from the word break char, update comments.
868 (complete_line_internal_1): Use valid_cmd_char_p.
869 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
870 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
871
872 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
873
874 * cli/cli-script.c (do_define_command): Ensure a redefined
875 prefix command is kept as a prefix command.
876 (define_prefix_command): New function.
877 (show_user_1): Report user defined prefixes.
878 (_initialize_cli_script): Create the new 'define-prefix' command.
879 Add completers for 'define' and 'document'.
880 * top.c (execute_command): If command is a user-defined prefix only
881 command, report the list of commands for this prefix command.
882
883 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
884
885 * valops.c (find_oload_champ): Improve debug output.
886
887 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
888
889 * valops.c (find_oload_champ): Print part of debug messages
890 before the badness vector is std::move'd.
891
892 2019-11-28 Tom Tromey <tom@tromey.com>
893
894 * value.c (creal_internal_fn): Fix comment.
895
896 2019-11-28 Tom Tromey <tom@tromey.com>
897
898 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
899 flag_bound_evaluated>: Now unsigned.
900
901 2019-11-28 Tom Tromey <tom@tromey.com>
902
903 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
904 declare.
905
906 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
907
908 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
909 debug output.
910 * jit.c (jit_unregister_code): Add debug print to match
911 `jit_register_code`.
912
913 2019-11-27 Christian Biesinger <cbiesinger@google.com>
914
915 * NEWS: Mention the new multithreaded symbol loading.
916
917 2019-11-27 Christian Biesinger <cbiesinger@google.com>
918
919 * maint.c (n_worker_threads): Default to 0.
920 (worker_threads_disabled): New function.
921 * maint.h (worker_threads_disabled): New function.
922 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
923 here if worker_threads_disabled () is true.
924 (minimal_symbol_reader::install): Skip all threading if
925 worker_threads_disabled () is true.
926
927 2019-11-27 Christian Biesinger <cbiesinger@google.com>
928
929 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
930 hash code if possible.
931 (add_minsym_to_demangled_hash_table): Likewise.
932 (minimal_symbol_reader::install): Compute the hash codes for msymbol
933 on the background thread.
934 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
935 Add these fields.
936
937 2019-11-27 Christian Biesinger <cbiesinger@google.com>
938
939 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
940 of the mangled name on the background thread.
941 * symtab.c (symbol_set_names): Allow passing in the hash of the
942 linkage_name.
943 * symtab.h (symbol_set_names): Likewise.
944
945 2019-11-27 Kevin Buettner <kevinb@redhat.com>
946
947 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
948 physnames are computed for inherited DIEs.
949
950 2019-11-27 Tom Tromey <tromey@adacore.com>
951
952 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
953 backslashes.
954 * cp-support.c: Remove unnecessary backslashes.
955
956 2019-11-27 Christian Biesinger <cbiesinger@google.com>
957
958 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
959 with sym->set_linkage_name.
960 * coffread.c (coff_read_enum_type): Likewise.
961 * mdebugread.c (parse_symbol): Likewise.
962 * stabsread.c (patch_block_stabs): Likewise.
963 (define_symbol): Likewise.
964 (read_enum_type): Likewise.
965 (common_block_end): Likewise.
966 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
967 function.
968 (SYMBOL_SET_LINKAGE_NAME): Remove.
969 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
970 with sym->set_linkage_name.
971
972 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
975 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
976 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
977 * NEWS: Mention new MI command.
978
979 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
982 '-symbol-info-types', and '-symbol-info-variables'.
983 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
984 (mi_cmd_symbol_info_types): Declare.
985 (mi_cmd_symbol_info_variables): Declare.
986 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
987 (output_debug_symbol): New function.
988 (output_nondebug_symbol): New function.
989 (mi_symbol_info): New function.
990 (mi_info_functions_or_variables): New function.
991 (mi_cmd_symbol_info_functions): New function.
992 (mi_cmd_symbol_info_types): New function.
993 (mi_cmd_symbol_info_variables): New function.
994 * NEWS: Mention new commands.
995
996 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
997
998 * symtab.c (symbol_to_info_string): New function, most content
999 moved from print_symbol_info, but updated to return a std::string.
1000 (print_symbol_info): Update to use symbol_to_info_string and print
1001 returned string.
1002 * symtab.h (symbol_to_info_string): Declare new function.
1003
1004 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * python/python.c (gdbpy_rbreak): Convert to using
1007 global_symbol_searcher.
1008 * symtab.c (file_matches): Convert return type to bool, change
1009 file list to std::vector, update header comment.
1010 (search_symbols): Rename to...
1011 (global_symbol_searcher::search): ...this and update now its
1012 a member function of global_symbol_searcher. Take account of the
1013 changes to file_matches.
1014 (symtab_symbol_info): Convert to using global_symbol_searcher.
1015 (rbreak_command): Likewise.
1016 (search_module_symbols): Likewise.
1017 * symtab.h (enum symbol_search): Update comment.
1018 (search_symbols): Remove declaration.
1019 (class global_symbol_searcher): New class.
1020
1021 2019-11-26 Tom Tromey <tromey@adacore.com>
1022
1023 * cp-support.c (_initialize_cp_support): Conditionally initialize
1024 gdb_demangle_attempt_core_dump.
1025
1026 2019-11-26 Tom Tromey <tom@tromey.com>
1027
1028 * python/py-function.c (fnpy_init): Update.
1029 * value.h (add_internal_function): Adjust declaration.
1030 * value.c (function_destroyer): Remove.
1031 (do_add_internal_function): Don't set destroyer or copy name.
1032 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1033 Set name_allocated.
1034 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1035 (cmdpy_init): Set name_allocated.
1036 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1037 member.
1038 (~cmd_list_element): Free "name" if needed.
1039
1040 2019-11-26 Tom Tromey <tom@tromey.com>
1041
1042 * value.h (add_internal_function): Add new overload. Move
1043 documentation from value.h.
1044 * value.c (do_add_internal_function): New function.
1045 (add_internal_function): Use it. Add new overload.
1046 (function_destroyer): Don't free doc.
1047 * python/py-function.c (fnpy_init): Update.
1048
1049 2019-11-26 Tom Tromey <tom@tromey.com>
1050
1051 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1052 (cmdpy_init): Set "doc_allocated".
1053
1054 2019-11-26 Tom Tromey <tom@tromey.com>
1055
1056 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1057 name of worker thread.
1058 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1059 pthread_setname_np.
1060 * configure, config.in: Rebuild.
1061
1062 2019-11-26 Tom Tromey <tom@tromey.com>
1063
1064 * python/python.c (class gdbpy_gil): New.
1065 (struct gdbpy_event): Add constructor, destructor, operator().
1066 (gdbpy_post_event): Use run_on_main_thread.
1067 (gdbpy_initialize_events): Remove.
1068 (do_start_initialization): Update.
1069
1070 2019-11-26 Tom Tromey <tom@tromey.com>
1071
1072 * NEWS: Add entry.
1073 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1074 commands. Call update_thread_pool_size.
1075 (update_thread_pool_size, maintenance_set_worker_threads): New
1076 functions.
1077 (n_worker_threads): New global.
1078
1079 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1080 Tom Tromey <tom@tromey.com>
1081
1082 * minsyms.c (minimal_symbol_reader::install): Use
1083 parallel_for_each.
1084 * gdbsupport/parallel-for.h: New file.
1085 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1086
1087 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1088 Tom Tromey <tom@tromey.com>
1089
1090 * gdbsupport/thread-pool.h: New file.
1091 * gdbsupport/thread-pool.c: New file.
1092 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1093 (HFILES_NO_SRCDIR): Add thread-pool.h.
1094
1095 2019-11-26 Tom Tromey <tom@tromey.com>
1096
1097 * event-top.h (thread_local_segv_handler): Declare.
1098 * event-top.c (thread_local_segv_handler): New global.
1099 (install_handle_sigsegv, handle_sigsegv): New functions.
1100 (async_init_signals): Install SIGSEGV handler.
1101 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1102 thread-local.
1103 (report_failed_demangle): New function.
1104 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1105 handler-setting code, instead use segv_handler. Run warning code
1106 on main thread.
1107
1108 2019-11-26 Tom Tromey <tom@tromey.com>
1109
1110 * run-on-main-thread.c: New file.
1111 * run-on-main-thread.h: New file.
1112 * unittests/main-thread-selftests.c: New file.
1113 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1114 main-thread-selftests.c.
1115 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1116 (COMMON_SFILES): Add run-on-main-thread.c.
1117
1118 2019-11-26 Tom Tromey <tom@tromey.com>
1119
1120 * main.c (setup_alternate_signal_stack): Remove.
1121 (captured_main_1): Use gdb::alternate_signal_stack.
1122 * gdbsupport/alt-stack.h: New file.
1123
1124 2019-11-26 Tom Tromey <tom@tromey.com>
1125
1126 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1127 Remove comment.
1128 (save_original_signals_state, restore_original_signals_state): Use
1129 gdb_sigmask.
1130 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1131 (_initialize_linux_nat): Use gdb_sigmask.
1132 * guile/guile.c (_initialize_guile): Use block_signals.
1133 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1134 * gdbsupport/gdb-sigmask.h: New file.
1135 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1136 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1137 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1138 pthread_sigmask.
1139 * configure, config.in: Rebuild.
1140 * gdbsupport/block-signals.h: New file.
1141
1142 2019-11-26 Tom Tromey <tom@tromey.com>
1143
1144 * acinclude.m4: Include ax_pthread.m4.
1145 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1146 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1147 (CLIBS): Use PTHREAD_LIBS.
1148 (aclocal_m4_deps): Add ax_pthread.m4.
1149 * config.in, configure: Rebuild.
1150 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1151
1152 2019-11-26 Tom Tromey <tom@tromey.com>
1153
1154 * symtab.h (struct minimal_symbol) <name_set>: New member.
1155 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1156 Don't call symbol_set_names.
1157 (minimal_symbol_reader::install): Call symbol_set_names.
1158
1159 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1160
1161 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1162 restore_active_ext_lang, as GIL is needed for (indirectly)
1163 called PyOS_InterruptOccurred.
1164
1165 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1166
1167 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1168 definition.
1169
1170 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1171
1172 * remote-sim.c (simulator_command): Make static, remove
1173 declaration.
1174
1175 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1176
1177 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1178 static.
1179 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1180 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1181 (main): Likewise.
1182 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1183 (main): Likewise.
1184 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1185 (main): Likewise.
1186 * unittests/basic_string_view/element_access/char/1.cc (test01):
1187 Likewise.
1188 (main): Likewise.
1189 * unittests/basic_string_view/element_access/char/empty.cc (main):
1190 Likewise.
1191 * unittests/basic_string_view/element_access/char/front_back.cc
1192 (test01): Likewise.
1193 (main): Likewise.
1194 * unittests/basic_string_view/inserters/char/2.cc (test05):
1195 Likewise.
1196 (main): Likewise.
1197 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1198 (test01): Likewise.
1199 (main): Likewise.
1200 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1201 (test01): Likewise.
1202 (main): Likewise.
1203 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1204 Likewise.
1205 * unittests/basic_string_view/operations/compare/char/1.cc
1206 (test01): Likewise.
1207 (main): Likewise.
1208 * unittests/basic_string_view/operations/compare/char/13650.cc
1209 (test01): Likewise.
1210 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1211 Likewise.
1212 (main): Likewise.
1213 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1214 Likewise.
1215 (main): Likewise.
1216 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1217 Likewise.
1218 (main): Likewise.
1219 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1220 Likewise.
1221 (main): Likewise.
1222 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1223 Likewise.
1224 (main): Likewise.
1225 * unittests/basic_string_view/operations/find/char/4.cc (main):
1226 Likewise.
1227 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1228 Likewise.
1229 (main): Likewise.
1230 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1231 Likewise.
1232 (main): Likewise.
1233 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1234 Likewise.
1235 (main): Likewise.
1236 * unittests/basic_string_view/operations/substr/char/1.cc
1237 (test01): Likewise.
1238 (main): Likewise.
1239 * unittests/basic_string_view/operators/char/2.cc (main):
1240 Likewise.
1241 * unittests/optional/assignment/1.cc (test): Likewise.
1242 * unittests/optional/assignment/2.cc (test): Likewise.
1243 * unittests/optional/assignment/3.cc (test): Likewise.
1244 * unittests/optional/assignment/4.cc (test): Likewise.
1245 * unittests/optional/assignment/5.cc (test): Likewise.
1246 * unittests/optional/assignment/6.cc (test): Likewise.
1247 * unittests/optional/assignment/7.cc (test): Likewise.
1248 * unittests/optional/cons/copy.cc (test): Likewise.
1249 * unittests/optional/cons/default.cc (test): Likewise.
1250 * unittests/optional/cons/move.cc (test): Likewise.
1251 * unittests/optional/cons/value.cc (test): Likewise.
1252 * unittests/optional/in_place.cc (test): Likewise.
1253 * unittests/optional/observers/1.cc (test): Likewise.
1254 * unittests/optional/observers/2.cc (test): Likewise.
1255
1256 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1257
1258 * tui-win.h (tui_set_var_cmd): Remove.
1259 * tui-win.c (tui_set_var_cmd): Make static.
1260
1261 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1262
1263 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1264 rbreak_command_wrapper): Remove.
1265 * symtab.c (rbreak_command_wrapper): Remove.
1266
1267 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1268
1269 * inferior.h (info_terminal_command): Remove declaration.
1270 * inflow.c (info_terminal_command): Make static.
1271
1272 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1273
1274 * inferior.c (exit_inferior_silent): Remove.
1275
1276 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1277
1278 * dictionary.c (dict_empty, mdict_empty): Remove.
1279 * dictionary.c (mdict_empty): Remove.
1280
1281 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1282
1283 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1284 (arc_insn_get_memory_offset): Likewise.
1285 (arc_insn_dump): Likewise.
1286 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1287 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1288 * dictionary.c (dict_iterator_next): Likewise.
1289 (dict_iter_match_first): Likewise.
1290 (dict_iter_match_next): Likewise.
1291 * f-lang.c (evaluate_subexp_f): Likewise.
1292 * hppa-tdep.c (hppa_read_pc): Likewise.
1293 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1294 * parse.c (write_exp_elt_msym): Likewise.
1295 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1296 * remote.c (remote_packet_size): Likewise.
1297 (remote_notif_stop_parse): Likewise.
1298 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1299 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1300 * source.c (prepare_path_for_appending): Likewise.
1301 * sparc64-linux-tdep.c
1302 (sparc64_linux_handle_segmentation_fault); Likewise.
1303 * stack.c (frame_selection_by_function_completer): Likewise.
1304
1305 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1306
1307 * completer.c (set_gdb_completion_word_break_characters):
1308 Remove.
1309
1310 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1311
1312 * dwarf-index-write.c: Include dwarf-index-write.h.
1313 * mi/mi-interp.c: Include mi/mi-interp.h.
1314
1315 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1316
1317 * aarch32-tdep.c: Include aarch32-tdep.h.
1318 * aarch32-tdep.h: Forward-declare struct target_desc.
1319
1320 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1321
1322 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1323 strerror.
1324 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1325 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1326
1327 2019-11-25 Tom de Vries <tdevries@suse.de>
1328
1329 * contrib/words.sh: Add -c option.
1330
1331 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1332
1333 * solib.c (solib_find_1): Change int to bool.
1334 (exec_file_find): Change int to bool.
1335 (solib_find): Change int to bool.
1336 (solib_read_symbols): Change int to bool.
1337 (solib_used): Change int to bool.
1338 (solib_add): Change int to bool.
1339 (info_sharedlibrary_command): Change int to bool.
1340 (solib_contains_address_p): Change int to bool.
1341 (solib_keep_data_in_core): Change int to bool.
1342 (in_solib_dynsym_resolve_code): Change int to bool.
1343 (reload_shared_libraries_1): Change int to bool.
1344 (gdb_sysroot_changed): Change int to bool.
1345 * solib.h (solib_read_symbols): Change int to bool.
1346 (solib_contains_address_p): Change int to bool.
1347 (solib_keep_data_in_core): Change int to bool.
1348 (in_solib_dynsym_resolve_code): Change int to bool.
1349 (libpthread_name_p): Change int to bool.
1350
1351 2019-11-25 Luis Machado <luis.machado@linaro.org>
1352
1353 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1354 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1355 (remote_packet_max_chars): New static global.
1356 (show_remote_packet_max_chars): New function.
1357 (remote_target::putpkt_binary): Adjust to use new
1358 remote_packet_max_chars option.
1359 (remote_target::getpkt_or_notif_sane_1): Likewise.
1360 (_initialize_remote): Register new remote-packet-max-chars option.
1361
1362 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1363
1364 * m68k-linux-nat.c: Include gdbarch.h.
1365
1366 2019-11-24 Tom Tromey <tom@tromey.com>
1367
1368 * symfile.c (read_symbols): Update.
1369 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1370 bool.
1371 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1372 (psym_lookup_symbol, psym_find_last_source_symtab)
1373 (psym_forget_cached_source_info, psym_print_stats)
1374 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1375 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1376 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1377 (psym_find_compunit_symtab_by_address)
1378 (maintenance_print_psymbols, maintenance_info_psymtabs)
1379 (maintenance_check_psymtabs): Update.
1380 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1381 bool.
1382
1383 2019-11-22 Tom Tromey <tom@tromey.com>
1384
1385 * observable.h: Update comments.
1386
1387 2019-11-22 Tom Tromey <tromey@adacore.com>
1388
1389 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1390 (print_ada_task_info): Don't try to fetch thread id if task is not
1391 alive.
1392
1393 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1394
1395 * ada-exp.y: Update.
1396 * ada-lang.c (sort_choices): Update.
1397 (ada_print_symbol_signature): Update.
1398 (resolve_subexp): Update.
1399 (ada_parse_renaming): Update.
1400 (ada_read_renaming_var_value): Update.
1401 (lesseq_defined_than): Update.
1402 (remove_extra_symbols): Update.
1403 (remove_irrelevant_renamings): Update.
1404 (ada_add_block_symbols): Update.
1405 (ada_collect_symbol_completion_matches): Update.
1406 (ada_is_renaming_symbol): Update.
1407 (aggregate_assign_from_choices): Update.
1408 (ada_evaluate_subexp): Update.
1409 (ada_has_this_exception_support): Update.
1410 (ada_is_non_standard_exception_sym): Update.
1411 (ada_add_exceptions_from_frame): Update.
1412 (ada_add_global_exceptions): Update.
1413 (ada_print_subexp): Update.
1414 * ax-gdb.c (gen_var_ref): Update.
1415 (gen_maybe_namespace_elt): Update.
1416 (gen_expr_for_cast): Update.
1417 (gen_expr): Update.
1418 * block.h: Update.
1419 * blockframe.c (find_pc_partial_function): Update.
1420 * breakpoint.c (print_breakpoint_location): Update.
1421 (update_static_tracepoint): Update.
1422 * btrace.c (ftrace_print_function_name): Update.
1423 (ftrace_function_switched): Update.
1424 * buildsym.c (find_symbol_in_list): Update.
1425 * c-exp.y: Update.
1426 * c-typeprint.c (c_print_typedef): Update.
1427 (c_type_print_template_args): Update.
1428 * cli/cli-cmds.c (edit_command): Update.
1429 (list_command): Update.
1430 (print_sal_location): Update.
1431 * coffread.c (patch_opaque_types): Update.
1432 (process_coff_symbol): Update.
1433 (coff_read_enum_type): Update.
1434 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1435 (convert_one_symbol): Update.
1436 (hash_symname): Update.
1437 (eq_symname): Update.
1438 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1439 * compile/compile-cplus-types.c (debug_print_scope): Update.
1440 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1441 * compile/compile-object-load.c (get_out_value_type): Update.
1442 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1443 (search_symbol_list): Update.
1444 (cp_lookup_symbol_imports_or_template): Update.
1445 * cp-support.c (overload_list_add_symbol): Update.
1446 * ctfread.c (psymtab_to_symtab): Update.
1447 * dbxread.c (cp_set_block_scope): Update.
1448 * dictionary.c (iter_match_first_hashed): Update.
1449 (iter_match_next_hashed): Update.
1450 (insert_symbol_hashed): Update.
1451 (iter_match_next_linear): Update.
1452 * dictionary.h: Update.
1453 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1454 (locexpr_describe_location_piece): Update.
1455 (locexpr_describe_location_1): Update.
1456 (locexpr_generate_c_location): Update.
1457 (loclist_describe_location): Update.
1458 (loclist_generate_c_location): Update.
1459 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1460 (read_func_scope): Update.
1461 (process_enumeration_scope): Update.
1462 (new_symbol): Update.
1463 (dwarf2_const_value): Update.
1464 (dwarf2_symbol_mark_computed): Update.
1465 * eval.c (evaluate_funcall): Update.
1466 (evaluate_subexp_standard): Update.
1467 * expprint.c (print_subexp_standard): Update.
1468 (dump_subexp_body_standard): Update.
1469 * f-valprint.c (info_common_command_for_block): Update.
1470 * findvar.c (get_hosting_frame): Update.
1471 (default_read_var_value): Update.
1472 * go-lang.c (go_symbol_package_name): Update.
1473 * guile/scm-block.c (bkscm_print_block_smob): Update.
1474 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1475 (gdbscm_symbol_name): Update.
1476 (gdbscm_symbol_linkage_name): Update.
1477 (gdbscm_symbol_print_name): Update.
1478 * infcall.c (get_function_name): Update.
1479 * infcmd.c (jump_command): Update.
1480 (finish_command): Update.
1481 * infrun.c (insert_exception_resume_breakpoint): Update.
1482 * linespec.c (canonicalize_linespec): Update.
1483 (create_sals_line_offset): Update.
1484 (convert_linespec_to_sals): Update.
1485 (complete_label): Update.
1486 (find_label_symbols_in_block): Update.
1487 * m2-typeprint.c (m2_print_typedef): Update.
1488 * mdebugread.c (mdebug_reg_to_regnum): Update.
1489 (parse_symbol): Update.
1490 (mylookup_symbol): Update.
1491 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1492 (list_args_or_locals): Update.
1493 * objc-lang.c (compare_selectors): Update.
1494 (info_selectors_command): Update.
1495 (compare_classes): Update.
1496 (info_classes_command): Update.
1497 (find_imps): Update.
1498 * p-typeprint.c (pascal_print_typedef): Update.
1499 * printcmd.c (build_address_symbolic): Update.
1500 (info_address_command): Update.
1501 (print_variable_and_value): Update.
1502 * python/py-framefilter.c (extract_sym): Update.
1503 (py_print_single_arg): Update.
1504 * python/py-symbol.c (sympy_str): Update.
1505 (sympy_get_name): Update.
1506 (sympy_get_linkage_name): Update.
1507 * python/python.c (gdbpy_rbreak): Update.
1508 * record-btrace.c (btrace_get_bfun_name): Update.
1509 (btrace_call_history): Update.
1510 * rust-lang.c (rust_print_typedef): Update.
1511 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1512 * stabsread.c (stab_reg_to_regnum): Update.
1513 (define_symbol): Update.
1514 (read_enum_type): Update.
1515 (common_block_end): Update.
1516 (cleanup_undefined_types_1): Update.
1517 (scan_file_globals): Update.
1518 * stack.c (print_frame_arg): Update.
1519 (print_frame_args): Update.
1520 (find_frame_funname): Update.
1521 (info_frame_command_core): Update.
1522 (iterate_over_block_locals): Update.
1523 (print_block_frame_labels): Update.
1524 (do_print_variable_and_value): Update.
1525 (iterate_over_block_arg_vars): Update.
1526 (return_command): Update.
1527 * symmisc.c (dump_symtab_1): Update.
1528 (print_symbol): Update.
1529 * symtab.c (eq_symbol_entry): Update.
1530 (symbol_cache_dump): Update.
1531 (lookup_language_this): Update.
1532 (find_pc_sect_line): Update.
1533 (skip_prologue_sal): Update.
1534 (symbol_search::compare_search_syms): Update.
1535 (treg_matches_sym_type_name): Update.
1536 (search_symbols): Update.
1537 (print_symbol_info): Update.
1538 (rbreak_command): Update.
1539 (completion_list_add_symbol): Update.
1540 (find_gnu_ifunc): Update.
1541 (get_symbol_address): Update.
1542 (search_module_symbols): Update.
1543 (info_module_subcommand): Update.
1544 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1545 (SYMBOL_LINKAGE_NAME): Remove.
1546 (SYMBOL_DEMANGLED_NAME): Remove.
1547 (SYMBOL_PRINT_NAME): Remove.
1548 (SYMBOL_SEARCH_NAME): Remove.
1549 * tracepoint.c (set_traceframe_context): Update.
1550 (validate_actionline): Update.
1551 (collection_list::collect_symbol): Update.
1552 (encode_actions_1): Update.
1553 (info_scope_command): Update.
1554 (print_one_static_tracepoint_marker): Update.
1555 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1556 * valops.c (address_of_variable): Update.
1557 (find_overload_match): Update.
1558 (find_oload_champ): Update.
1559
1560 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1561
1562 * ada-lang.c (ada_lookup_simple_minsym): Update.
1563 (ada_collect_symbol_completion_matches): Update.
1564 * ada-tasks.c (read_atcb): Update.
1565 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1566 (amd64_windows_skip_trampoline_code): Update.
1567 * arm-tdep.c (skip_prologue_function): Update.
1568 (arm_skip_stack_protector): Update.
1569 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1570 (arm_wince_skip_main_prologue): Update.
1571 * ax-gdb.c (gen_expr): Update.
1572 * block.c (call_site_for_pc): Update.
1573 * blockframe.c (find_pc_partial_function): Update.
1574 * breakpoint.c (set_breakpoint_location_function): Update.
1575 * btrace.c (ftrace_print_function_name): Update.
1576 (ftrace_function_switched): Update.
1577 * c-valprint.c (print_unpacked_pointer): Update.
1578 * coffread.c (coff_symfile_read): Update.
1579 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1580 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1581 * dwarf-index-write.c (write_psymbols): Update.
1582 * dwarf2loc.c (call_site_to_target_addr): Update.
1583 (func_verify_no_selftailcall): Update.
1584 (tailcall_dump): Update.
1585 (call_site_find_chain_1): Update.
1586 (dwarf_expr_reg_to_entry_parameter): Update.
1587 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1588 * eval.c (evaluate_funcall): Update.
1589 (evaluate_subexp_standard): Update.
1590 (evaluate_subexp_for_sizeof): Update.
1591 * expprint.c (print_subexp_standard): Update.
1592 (dump_subexp_body_standard): Update.
1593 * frame.c (get_prev_frame_always_1): Update.
1594 * frv-tdep.c (frv_skip_main_prologue): Update.
1595 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1596 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1597 (gnuv3_get_typename_from_type_info): Update.
1598 (gnuv3_skip_trampoline): Update.
1599 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1600 * i386-tdep.c (i386_skip_main_prologue): Update.
1601 (i386_pe_skip_trampoline_code): Update.
1602 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1603 * infcall.c (get_function_name): Update.
1604 * linespec.c (minsym_found): Update.
1605 * linux-fork.c (info_checkpoints_command): Update.
1606 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1607 (m32c_m16c_pointer_to_address): Update.
1608 * maint.c (maintenance_translate_address): Update.
1609 * minsyms.c (add_minsym_to_hash_table): Update.
1610 (add_minsym_to_demangled_hash_table): Update.
1611 (lookup_minimal_symbol_mangled): Update.
1612 (lookup_minimal_symbol_demangled): Update.
1613 (lookup_minimal_symbol_linkage): Update.
1614 (lookup_minimal_symbol_text): Update.
1615 (lookup_minimal_symbol_by_pc_name): Update.
1616 (minimal_symbol_is_less_than): Update.
1617 (compact_minimal_symbols): Update.
1618 (build_minimal_symbol_hash_tables): Update.
1619 (find_solib_trampoline_target): Update.
1620 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1621 (mips_skip_pic_trampoline_code): Update.
1622 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1623 * objc-lang.c (info_selectors_command): Update.
1624 (info_classes_command): Update.
1625 (find_methods): Update.
1626 (find_imps): Update.
1627 * p-valprint.c (pascal_val_print): Update.
1628 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1629 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1630 * printcmd.c (build_address_symbolic): Update.
1631 (info_symbol_command): Update.
1632 * psymtab.c (psymbol_name_matches): Update.
1633 (match_partial_symbol): Update.
1634 (lookup_partial_symbol): Update.
1635 (print_partial_symbols): Update.
1636 (sort_pst_symbols): Update.
1637 (maintenance_check_psymtabs): Update.
1638 * python/py-framefilter.c (py_print_frame): Update.
1639 * python/python.c (gdbpy_rbreak): Update.
1640 * record-btrace.c (btrace_get_bfun_name): Update.
1641 (btrace_call_history): Update.
1642 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1643 (rs6000_skip_trampoline_code): Update.
1644 * sol-thread.c (info_cb): Update.
1645 * stabsread.c (scan_file_globals): Update.
1646 * stack.c (find_frame_funname): Update.
1647 (info_frame_command_core): Update.
1648 * symmisc.c (dump_msymbols): Update.
1649 * symtab.c (symbol_natural_name): Rename to..,
1650 (general_symbol_info::natural_name): ...this.
1651 (symbol_demangled_name): Rename to...
1652 (general_symbol_info::demangled_name): ...this.
1653 (symbol_search_name): Rename to...
1654 (general_symbol_info::search_name): ...this.
1655 (symbol_matches_search_name): Update.
1656 (find_pc_sect_line): Update.
1657 (skip_prologue_sal): Update.
1658 (search_symbols): Update.
1659 (print_msymbol_info): Update.
1660 (rbreak_command): Update.
1661 (completion_list_add_msymbol): Update.
1662 (completion_list_objc_symbol): Update.
1663 (get_msymbol_address): Update.
1664 * symtab.h (struct general_symbol_info): Add member functions
1665 natural_name (), linkage_name (), print_name (), demangled_name (),
1666 and search_name ().
1667 (SYMBOL_NATURAL_NAME): Update.
1668 (symbol_natural_name): Move to a member function on general_symbol_info.
1669 (SYMBOL_DEMANGLED_NAME): Update.
1670 (symbol_demangled_name): Move to a member function on
1671 general_symbol_info.
1672 (SYMBOL_SEARCH_NAME): Update.
1673 (symbol_search_name): Move to a member function on general_symbol_info.
1674 (MSYMBOL_NATURAL_NAME): Remove.
1675 (MSYMBOL_LINKAGE_NAME): Remove.
1676 (MSYMBOL_PRINT_NAME): Remove.
1677 (MSYMBOL_DEMANGLED_NAME): Remove.
1678 (MSYMBOL_SEARCH_NAME): Remove.
1679 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1680
1681 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1682
1683 * symtab.c (create_demangled_names_hash): Use per_bfd->
1684 minimal_symbol_count for computing the initial size, if greater
1685 than our default size.
1686
1687 2019-11-22 Tom de Vries <tdevries@suse.de>
1688
1689 * contrib/words.sh: Improve words extraction.
1690
1691 2019-11-22 Tom de Vries <tdevries@suse.de>
1692
1693 * contrib/words.sh: Combine sed invocations.
1694
1695 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1696
1697 * Makefile.in: Update.
1698 * demangle.c: Rename to...
1699 * gdb-demangle.c: ..this.
1700 (is_cplus_marker): Change return type to bool.
1701 (_initialize_demangler): Rename to...
1702 (_initialize_gdb_demangle): ...this.
1703 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1704 * symtab.h (demangle): Remove declaration; instead include
1705 gdb-demangle.h.
1706
1707 2019-11-21 Tom Tromey <tromey@adacore.com>
1708
1709 * gdbsupport/format.c (format_pieces): Parse %I64d.
1710 * unittests/format_pieces-selftests.c (test_windows_formats): New
1711 function.
1712 (run_tests): Call it.
1713
1714 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1715
1716 Byte reverse display of variables with DW_END_big, DW_END_little
1717 (DW_AT_endianity) dwarf attributes if different than the native
1718 byte order.
1719 * ada-lang.c (ada_value_binop):
1720 Use type_byte_order instead of gdbarch_byte_order.
1721 * ada-valprint.c (printstr):
1722 (ada_val_print_string):
1723 * ada-lang.c (value_pointer):
1724 (ada_value_binop):
1725 Use type_byte_order instead of gdbarch_byte_order.
1726 * c-lang.c (c_get_string):
1727 Use type_byte_order instead of gdbarch_byte_order.
1728 * c-valprint.c (c_val_print_array):
1729 Use type_byte_order instead of gdbarch_byte_order.
1730 * cp-valprint.c (cp_print_class_member):
1731 Use type_byte_order instead of gdbarch_byte_order.
1732 * dwarf2loc.c (rw_pieced_value):
1733 Use type_byte_order instead of gdbarch_byte_order.
1734 * dwarf2read.c (read_base_type): Handle DW_END_big,
1735 DW_END_little
1736 * f-lang.c (f_get_encoding):
1737 Use type_byte_order instead of gdbarch_byte_order.
1738 * findvar.c (default_read_var_value):
1739 Use type_byte_order instead of gdbarch_byte_order.
1740 * gdbtypes.c (check_types_equal):
1741 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1742 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1743 and TYPE_ENDIANITY_LITTLE if set.
1744 (type_byte_order): new function.
1745 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1746 (struct main_type) <flag_endianity_not_default>:
1747 New field.
1748 (type_byte_order): New function.
1749 * infcmd.c (default_print_one_register_info):
1750 Use type_byte_order instead of gdbarch_byte_order.
1751 * p-lang.c (pascal_printstr):
1752 Use type_byte_order instead of gdbarch_byte_order.
1753 * p-valprint.c (pascal_val_print):
1754 Use type_byte_order instead of gdbarch_byte_order.
1755 * printcmd.c (print_scalar_formatted):
1756 Use type_byte_order instead of gdbarch_byte_order.
1757 * solib-darwin.c (darwin_current_sos):
1758 Use type_byte_order instead of gdbarch_byte_order.
1759 * solib-svr4.c (solib_svr4_r_ldsomap):
1760 Use type_byte_order instead of gdbarch_byte_order.
1761 * stap-probe.c (stap_modify_semaphore):
1762 Use type_byte_order instead of gdbarch_byte_order.
1763 * target-float.c (target_float_same_format_p):
1764 Use type_byte_order instead of gdbarch_byte_order.
1765 * valarith.c (scalar_binop):
1766 (value_bit_index):
1767 Use type_byte_order instead of gdbarch_byte_order.
1768 * valops.c (value_cast):
1769 Use type_byte_order instead of gdbarch_byte_order.
1770 * valprint.c (generic_emit_char):
1771 (generic_printstr):
1772 (val_print_string):
1773 Use type_byte_order instead of gdbarch_byte_order.
1774 * value.c (unpack_long):
1775 (unpack_bits_as_long):
1776 (unpack_value_bitfield):
1777 (modify_field):
1778 (pack_long):
1779 (pack_unsigned_long):
1780 Use type_byte_order instead of gdbarch_byte_order.
1781 * findvar.c (unsigned_pointer_to_address):
1782 (signed_pointer_to_address):
1783 (unsigned_address_to_pointer):
1784 (address_to_signed_pointer):
1785 (default_read_var_value):
1786 (default_value_from_register):
1787 Use type_byte_order instead of gdbarch_byte_order.
1788 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1789 Use type_byte_order instead of gdbarch_byte_order.
1790 * riscv-tdep.c (riscv_print_one_register_info):
1791 Use type_byte_order instead of gdbarch_byte_order.
1792
1793 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1794
1795 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1796 (current_ui_gdb_stdin_ptr): Likewise.
1797 (current_ui_gdb_stderr_ptr): Likewise.
1798 (current_ui_gdb_stdlog_ptr): Likewise.
1799 (current_ui_current_uiout_ptr): Likewise.
1800 (gen_ret_current_ui_field_ptr): Remove.
1801
1802 2019-11-21 Tom de Vries <tdevries@suse.de>
1803
1804 PR gdb/24956
1805 * cli/cli-script.c (execute_control_command): Only switch to
1806 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1807
1808 2019-11-19 Tom Tromey <tom@tromey.com>
1809
1810 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1811 Now static. Change type of "name".
1812 (tui_set_win_height_command): Don't copy "arg".
1813 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1814 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1815
1816 2019-11-19 Ali Tamur <tamur@google.com>
1817
1818 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1819 "if (attr != nullptr)".
1820 (dwarf2_find_base_address): Likewise.
1821 (dwarf2_build_include_psymtabs): Likewise.
1822 (read_cutu_die_from_dwo): Likewise.
1823 (read_func_scope): Likewise.
1824 (read_call_site_scope): Likewise.
1825 (dwarf2_get_pc_bounds): Likewise.
1826 (dwarf2_record_block_ranges): Likewise.
1827 (dwarf2_add_field): Likewise.
1828 (dwarf2_add_member_fn): Likewise.
1829 (read_structure_type): Likewise.
1830 (read_enumeration_type): Likewise.
1831 (read_array_type): Likewise.
1832 (read_array_order): Likewise.
1833 (read_set_type): Likewise.
1834 (read_common_block): Likewise.
1835 (read_tag_reference_type): Likewise.
1836 (read_tag_string_type): Likewise.
1837 (read_subroutine_type): Likewise.
1838 (read_base_type): Likewise.
1839 (read_subrange_type): Likewise.
1840 (new_symbol): Likewise.
1841 (prepare_one_comp_unit): Likewise.
1842
1843 2019-11-19 Tom Tromey <tromey@adacore.com>
1844
1845 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1846 result in error when DebugActiveProcess fails.
1847
1848 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1849 Pedro Alves <palves@redhat.com>
1850
1851 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1852 * target.c (target_stack::push): Call 'unpush' if there's a
1853 target on top of the stack.
1854
1855 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1856
1857 * python/py-block.c (blpy_dealloc): Call tp_free.
1858 (blpy_block_syms_dealloc): Likewise.
1859 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1860 * python/py-inferior.c (infpy_dealloc): Likewise.
1861 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1862 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1863 * python/py-symbol.c (sympy_dealloc): Likewise.
1864 * python/py-symtab.c (stpy_dealloc): Likewise.
1865 * python/py-type.c (typy_iterator_dealloc): Likewise.
1866
1867 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1868
1869 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1870 constructor instead of using a class initializer.
1871
1872 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1873
1874 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1875 * configure: Regenerate.
1876 * configure.ac: Don't source common.host.
1877 * gdbsupport/common.host: Remove.
1878 * gdbsupport/mingw-strerror.c: Remove.
1879 * gdbsupport/posix-strerror.c: Rename to...
1880 * gdbsupport/safe-strerror.c: ...this.
1881
1882 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1883
1884 * maint.c (scoped_command_stats::print_time): Use localtime_r
1885 instead of localtime (provided through gnulib if necessary).
1886 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1887 of ctime.
1888
1889 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1890
1891 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1892 avoid compile errors.
1893
1894 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1895
1896 * config.in: Regenerate.
1897 * configure: Regenerate.
1898 * gdbsupport/common.m4: No longer check for strerror_r.
1899 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1900 POSIX version of strerror_r, now that gnulib provides it if
1901 necessary.
1902
1903 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1904
1905 * README (`configure' options): Update.
1906
1907 2019-11-14 Tom Tromey <tromey@adacore.com>
1908
1909 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1910 expected type for the RHS if the LHS is a convenience variable.
1911
1912 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1915 Provide explicit default and copy constructor.
1916
1917 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1918
1919 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1920 only call Py_INCREF (newbp) in the bppy_pending_object case.
1921
1922 2019-11-13 Tom Tromey <tromey@adacore.com>
1923
1924 PR build/25182:
1925 * psympriv.h (partial_symbol): Remove static assert.
1926 * symtab.h (general_symbol_info, symbol): Remove static assert.
1927
1928 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * gdbsupport/format.c (format_pieces::format_pieces): Support
1931 printf 'z' size modifier.
1932 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1933 * printcmd.c (ui_printf): Handle size_t_arg.
1934 * ui-out.c (ui_out::vmessage): Likewise.
1935 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1936 function.
1937 (run_tests): Call test_format_int_sizes.
1938
1939 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1940
1941 * ada-exp.y (write_ambiguous_var): Update.
1942 * buildsym.c (add_symbol_to_list): Update.
1943 * dwarf2read.c (read_variable): Update.
1944 (new_symbol): Update.
1945 * jit.c (finalize_symtab): Update.
1946 * language.c (language_alloc_type_symbol): Update.
1947 * symtab.c (fixup_symbol_section): Update.
1948 (initialize_objfile_symbol_1): Move code to...
1949 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1950 (allocate_symbol): Update.
1951 (allocate_template_symbol): Update.
1952 (get_symbol_address): Update.
1953 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1954 of having as a field, and add a constructor.
1955 (SYMBOL_VALUE): Update.
1956 (SYMBOL_VALUE_ADDRESS): Update.
1957 (SET_SYMBOL_VALUE_ADDRESS): Update.
1958 (SYMBOL_VALUE_BYTES): Update.
1959 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1960 (SYMBOL_BLOCK_VALUE): Update.
1961 (SYMBOL_VALUE_CHAIN): Update.
1962 (SYMBOL_LANGUAGE): Update.
1963 (SYMBOL_SECTION): Update.
1964 (SYMBOL_OBJ_SECTION): Update.
1965 (SYMBOL_SET_LANGUAGE): Update.
1966 (SYMBOL_SET_LINKAGE_NAME): Update.
1967 (SYMBOL_SET_NAMES): Update.
1968 (SYMBOL_NATURAL_NAME): Update.
1969 (SYMBOL_LINKAGE_NAME): Update.
1970 (SYMBOL_DEMANGLED_NAME): Update.
1971 (SYMBOL_SEARCH_NAME): Update.
1972 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1973 (struct symbol): Update.
1974 (struct template_symbol): Update.
1975 (struct rust_vtable_symbol): Update.
1976 * xcoffread.c (SYMBOL_DUP): Update.
1977
1978 2019-11-12 Tom Tromey <tom@tromey.com>
1979
1980 * tui/tui-layout.c (show_layout): Set current_layout.
1981 (show_source_disasm_command, show_data)
1982 (show_source_or_disasm_and_command): Don't set current_layout.
1983
1984 2019-11-12 Tom Tromey <tom@tromey.com>
1985
1986 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1987
1988 2019-11-12 Tom Tromey <tom@tromey.com>
1989
1990 * tui/tui-win.c (resize_message): New global.
1991 (show_tui_resize_message): New function.
1992 (tui_async_resize_screen): Print message if requested.
1993 (_initialize_tui_win): Add tui-resize-message setting.
1994 * NEWS: Add entry for new commands.
1995
1996 2019-11-11 Tom Tromey <tom@tromey.com>
1997
1998 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1999 functions.
2000
2001 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2002
2003 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2004
2005 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2006
2007 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2008 function.
2009 * python/python-internal.h (gdbpy_lookup_static_symbols):
2010 Declare new function.
2011 * python/python.c (python_GdbMethods): Add
2012 gdb.lookup_static_symbols method.
2013 * NEWS: Mention gdb.lookup_static_symbols.
2014
2015 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2016
2017 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2018 static block of current object file first. Also fix typo in
2019 header comment.
2020
2021 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2022
2023 * stack.c (set_last_displayed_sal): Delete.
2024 (last_displayed_sal_valid): Delete.
2025 (last_displayed_pspace): Delete.
2026 (last_displayed_addr): Delete.
2027 (last_displayed_symtab): Delete.
2028 (last_displayed_line): Delete.
2029 (class last_displayed_symtab_info_type): New.
2030 (last_displayed_symtab_info): New static global variable.
2031 (print_frame_info): Call methods on last_displayed_symtab_info.
2032 (clear_last_displayed_sal): Update header comment, and make use of
2033 last_displayed_symtab_info.
2034 (last_displayed_sal_is_valid): Likewise.
2035 (get_last_displayed_pspace): Likewise.
2036 (get_last_displayed_addr): Likewise.
2037 (get_last_displayed_symtab): Likewise.
2038 (get_last_displayed_line): Likewise.
2039 (get_last_displayed_sal): Likewise.
2040 * stack.h (clear_last_displayed_sal): Update header comment.
2041 (last_displayed_sal_is_valid): Likewise.
2042 (get_last_displayed_pspace): Likewise.
2043 (get_last_displayed_addr): Likewise.
2044 (get_last_displayed_symtab): Likewise.
2045 (get_last_displayed_line): Likewise.
2046 (get_last_displayed_sal): Likewise.
2047
2048 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * stack.c (frame_show_address): Convert return type to bool.
2051 * stack.h (frame_show_address): Likewise, and update header
2052 comment.
2053
2054 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2055
2056 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2057 * unittests/vec-utils-selftests.c: New file.
2058 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2059
2060 2019-11-10 Tom Tromey <tom@tromey.com>
2061
2062 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2063 (tui_highlight_win): Likewise.
2064 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2065 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2066 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2067 Don't set can_highlight.
2068
2069 2019-11-10 Tom Tromey <tom@tromey.com>
2070
2071 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2072 Remove unused declaration.
2073
2074 2019-11-08 Tom Tromey <tromey@adacore.com>
2075
2076 * top.c (read_command_file): Update.
2077 (command_line_input): Make return type const.
2078 * python/py-gdb-readline.c: Update.
2079 * linespec.c (decode_line_2): Update.
2080 * defs.h (command_line_input): Make return type const.
2081 * cli/cli-script.c (read_next_line): Make return type const.
2082 * ada-lang.c (get_selections): Update.
2083
2084 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2085
2086 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2087 * mi/mi-main.c (output_cores): Likewise.
2088 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2089 (linux_xfer_osdata_modules): Likewise.
2090 * remote.c (register_remote_support_xml): Likewise.
2091 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2092 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2093
2094 2019-11-06 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui-interp.c: Don't include readline.h.
2097 * tui/tui-hooks.c: Don't include readline.h.
2098 * symmisc.c: Include tilde.h, not readline.h.
2099 * symfile.c: Include tilde.h, not readline.h.
2100 * source.c: Include tilde.h, not readline.h.
2101 * solib.c: Include tilde.h, not readline.h.
2102 * psymtab.c: Include tilde.h, not readline.h.
2103 * exec.c: Include tilde.h, not readline.h.
2104 * corelow.c: Include tilde.h, not readline.h.
2105 * cli/cli-dump.c: Include tilde.h, not readline.h.
2106 * cli/cli-cmds.c: Don't include readline.h.
2107
2108 2019-11-05 Tom Tromey <tom@tromey.com>
2109
2110 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2111 (tui_disassemble): Set addr_size.
2112 (tui_disasm_window::set_contents): Use addr_size.
2113
2114 2019-11-05 Tom Tromey <tom@tromey.com>
2115
2116 * rust-lang.c (rust_language_defn): Update.
2117 * python/py-value.c (valpy_string): Call c_get_string.
2118 * p-lang.c (pascal_language_defn): Update.
2119 * opencl-lang.c (opencl_language_defn): Update.
2120 * objc-lang.c (objc_language_defn): Update.
2121 * m2-lang.c (m2_language_defn): Update.
2122 * language.c (unknown_language_defn, auto_language_defn): Update.
2123 (default_get_string): Remove.
2124 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2125 * go-lang.c (go_language_defn): Update.
2126 * f-lang.c (f_language_defn): Update.
2127 * d-lang.c (d_language_defn): Update.
2128 * c-lang.c (c_language_defn, cplus_language_defn)
2129 (asm_language_defn, minimal_language_defn): Update.
2130 * ada-lang.c (ada_language_defn): Update.
2131 * language.h (struct language_defn) <la_get_string>: Remove.
2132 (LA_GET_STRING): Remove.
2133 (default_get_string): Don't declare.
2134
2135 2019-11-05 Tom Tromey <tom@tromey.com>
2136
2137 * tui/tui-source.h (struct tui_source_window): Inline
2138 constructor. Remove destructor.
2139 <style_changed, m_observable>: Move to superclass.
2140 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2141 (struct tui_source_window_base): Move private members to end.
2142 <style_changed, m_observable>: Move from tui_source_window.
2143 * tui/tui-winsource.c (tui_copy_source_line): Move from
2144 tui-source.c. Rename from copy_source_line. Add special handling
2145 for negative line number.
2146 (tui_source_window_base::style_changed): Move from
2147 tui_source_window.
2148 (tui_source_window_base): Register observer.
2149 (~tui_source_window_base): New.
2150 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2151 rename.
2152 (tui_source_window::set_contents): Use tui_copy_source_line.
2153 (tui_source_window::tui_source_window): Move to tui-source.h.
2154 (tui_source_window::~tui_source_window): Remove.
2155 (tui_source_window::style_changed): Move to superclass.
2156 * tui/tui-disasm.c (tui_disassemble): Create string file with
2157 styling, when possible. Add "addr_size" parameter.
2158 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2159 Don't compute maximum size.
2160 (len_without_escapes): New function
2161
2162 2019-11-05 Tom Tromey <tom@tromey.com>
2163
2164 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2165 std::string.
2166 * tui/tui-winsource.c (tui_show_source_line): Update.
2167 * tui/tui-source.c (tui_source_window::set_contents): Update.
2168 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2169
2170 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2171
2172 * symtab.h (gdb_static_assert): Put && operator at the beginning
2173 of the line instead of the end.
2174
2175 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2176
2177 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2178 and sizeof (symbol).
2179 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2180
2181 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2182
2183 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2184 * configure.host: Mark *-*-solaris2.10* obsolete.
2185 * configure.tgt: Mark Solaris < 11 obsolete.
2186 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2187 Update target triplet.
2188
2189 2019-11-01 Tom Tromey <tromey@adacore.com>
2190
2191 * utils.c (print_sys_errmsg): Simplify.
2192
2193 2019-11-01 Tom Tromey <tromey@adacore.com>
2194
2195 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2196
2197 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2198
2199 * configure: Regenerate.
2200 * configure.ac: Remove check for strerror_r.
2201 * gdbsupport/common.m4: Check for strerror_r.
2202
2203 2019-11-01 Luis Machado <luis.machado@linaro.org>
2204
2205 PR gdb/25124
2206
2207 * arm-tdep.c (arm_per_objfile): Rename to ...
2208 (arm_per_bfd): ... this.
2209 (arm_objfile_data_key): Rename to ...
2210 (arm_bfd_data_key): ... this.
2211 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2212 data.
2213 (arm_record_special_symbol): Likewise.
2214
2215 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2216
2217 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2218 end.
2219 * c-typeprint.c (c_print_typedef): Likewise.
2220 * f-typeprint.c (f_print_typedef): Likewise.
2221 * m2-typeprint.c (m2_print_typedef): Likewise.
2222 * p-typeprint.c (pascal_print_typedef): Likewise.
2223 * rust-lang.c (rust_print_typedef): Likewise.
2224 * symtab.c (print_symbol_info): Print a newline after calling
2225 typedef_print.
2226
2227 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2228
2229 * symtab.c (info_module_cmdlist): New variable.
2230 (info_module_command): New function.
2231 (search_module_symbols): New function.
2232 (info_module_subcommand): New function.
2233 (struct info_modules_var_func_options): New struct.
2234 (info_modules_var_func_options_defs): New variable.
2235 (make_info_modules_var_func_options_def_group): New function.
2236 (info_module_functions_command): New function.
2237 (info_module_variables_command): New function.
2238 (info_module_var_func_command_completer): New function.
2239 (_initialize_symtab): Register new 'info module functions' and
2240 'info module variables' commands.
2241 * symtab.h (typedef symbol_search_in_module): New typedef.
2242 (search_module_symbols): Declare new function.
2243 * NEWS: Mention new commands.
2244
2245 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2246
2247 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2248 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2249 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2250 MODULES_DOMAIN.
2251 (scan_partial_symbols): Only create partial module symbols for non
2252 declarations.
2253 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2254 and MODULES_DOMAIN.
2255 * symtab.c (search_domain_name): Likewise.
2256 (search_symbols): Likewise.
2257 (print_symbol_info): Likewise.
2258 (symtab_symbol_info): Likewise.
2259 (info_modules_command): New function.
2260 (_initialize_symtab): Register 'info modules' command.
2261 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2262 * NEWS: Mention new 'info modules' command.
2263
2264 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2265
2266 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2267 and $_gdb_maint_setting_str.
2268
2269 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2270
2271 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2272 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2273 (str_value_from_setting, gdb_setting_str_internal_fn)
2274 (gdb_maint_setting_str_internal_fn): New functions.
2275 (_initialize_cli_cmds): Define the new convenience functions.
2276 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2277 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2278
2279 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2280
2281 * agent.c (set_can_use_agent): When the setting is turned on,
2282 look up agent symbols if we don't have them yet.
2283 (agent_new_objfile): Don't look up agent symbols when the agent
2284 setting is off.
2285
2286 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2287
2288 * config.in: Regenerate.
2289
2290 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2291
2292 * configure: Regenerate.
2293 * configure.ac: Check for strerror_r.
2294 * gdbsupport/common-utils.h (safe_strerror): Change return value
2295 to const char * and document that this function is now threadsafe.
2296 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2297 thread_local and call strerror_r, if available.
2298 * utils.c (perror_string): Update.
2299 (print_sys_errmsg): Update.
2300
2301 2019-10-31 Luis Machado <luis.machado@linaro.org>
2302
2303 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2304 objfile_key.
2305 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2306 objfile to fetch per-bfd data.
2307 (arm_find_exidx_entry): Likewise.
2308
2309 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2310
2311 * gdbsupport/agent.c (debug_agent): Change type to bool.
2312 (use_agent): Likewise.
2313 (all_agent_symbols_look_up): Likewise.
2314 (agent_loaded_p): Change return value to bool.
2315 (agent_look_up_symbols): Update.
2316 (agent_capability_check): Change return value to bool.
2317 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2318 (debug_agent): Change type to bool.
2319 (use_agent): Likewise.
2320 (agent_capability_check): Change return value to bool.
2321
2322 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2323
2324 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2325 (build_minimal_symbol_hash_tables): Code to clear the table moved
2326 to clear_minimal_symbol_hash_tables.
2327 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2328 when needed.
2329
2330 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2331
2332 * infcmd.c: Remove includes.
2333 * infrun.c: Remove includes.
2334
2335 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2336
2337 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2338 (grow_vect): Remove declaration.
2339 (ada_type_of_array): Remove declaration.
2340 (ada_update_initial_language): Remove declaration.
2341 (ada_fold_name): Remove declaration.
2342 (ada_fill_in_ada_prototype): Remove declaration.
2343 (user_select_syms): Remove declaration.
2344 (get_selections): Remove declaration.
2345 (ada_tag_type): Remove declaration.
2346 (ada_value_tag): Remove declaration.
2347 (ada_is_others_clause): Remove declaration.
2348 (ada_in_variant): Remove declaration.
2349 (ada_value_struct_elt): Remove declaration.
2350 (ada_attribute_name): Remove declaration.
2351 (ada_system_address_type): Remove declaration.
2352 * ada-lang.c (ada_watch_location_expression): Make static.
2353 (GROW_VECT): Move here from ada-lang.h.
2354 (grow_vect): Make static.
2355 (ada_update_initial_language): Make static.
2356 (ada_fold_name): Make static.
2357 (ada_type_of_array): Make static.
2358 (encoded_ordered_before): Move up.
2359 (sort_choices): Move up.
2360 (print_signatures): Move up.
2361 (ada_print_symbol_signature): Move up.
2362 (get_selections): Move up and make static.
2363 (user_select_syms): Move up and make static.
2364 (ada_value_struct_elt): Move up and make static.
2365 (ada_tag_type): Make static.
2366 (ada_value_tag): Make static.
2367 (ada_is_others_clause): Make static.
2368 (ada_in_variant): Make static.
2369 (ada_attribute_name): Make static.
2370
2371 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2372
2373 * ada-lang.c: Remove includes.
2374 * ada-typeprint.c: Remove includes.
2375 * ada-valprint.c: Remove includes.
2376
2377 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2378
2379 * addrmap.c: Add static assertions of type size, moved from
2380 _initialize_addrmap.
2381 (_initialize_addrmap): Remove.
2382
2383 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2384
2385 * coffread.c (record_minimal_symbol): Update.
2386 (process_coff_symbol): Update.
2387 * dbxread.c (read_dbx_symtab): Update.
2388 * dwarf2read.c (add_partial_symbol): Update.
2389 (fixup_go_packaging): Update.
2390 (load_partial_dies): Update.
2391 (new_symbol): Update.
2392 * elfread.c (record_minimal_symbol): Change signature to use
2393 gdb::string_view instead of name+len.
2394 (elf_symtab_read): Update.
2395 (elf_rel_plt_read): Update.
2396 * mdebugread.c (parse_partial_symbols): Update.
2397 (handle_psymbol_enumerators): Update.
2398 (new_symbol): Update.
2399 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2400 to use gdb::string_view instead of name+len.
2401 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2402 * psympriv.h (add_psymbol_to_list): Likewise.
2403 * psymtab.c (add_psymbol_to_bcache): Likewise.
2404 (add_psymbol_to_list): Likewise.
2405 * stabsread.c (define_symbol): Update.
2406 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2407 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2408 (symbol_set_names): Likewise.
2409 * xcoffread.c (scan_xcoff_symtab): Update.
2410
2411 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2412
2413 * symtab.h (symbol_set_names): Document that copy_name must be
2414 set to true for non-nullterminated strings.
2415 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2416 linkage_name if the entry was not found and we need to demangle.
2417
2418 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2419
2420 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2421 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2422 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2423 * gdbsupport/gdb_binary_search.h: New file.
2424
2425 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2426
2427 * NEWS: Mention new --with-system-gdbinit-dir option.
2428 * config.in: Regenerate.
2429 * configure: Regenerate.
2430 * configure.ac: Add new option --with-system-gdbinit-dir.
2431 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2432 for a ".gdb" suffix.
2433 * main.c (get_init_files): Change system_gdbinit argument to
2434 a vector and return the files in SYSTEM_GDBINIT_DIR in
2435 addition to SYSTEM_GDBINIT.
2436 (captured_main_1): Update.
2437 (print_gdb_help): Update.
2438 * top.c (print_gdb_configuration): Also print the value of
2439 SYSTEM_GDBINIT_DIR.
2440
2441 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2442
2443 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2444 that takes gdb::string_view arguments.
2445
2446 2019-10-26 Tom de Vries <tdevries@suse.de>
2447
2448 * aarch64-linux-tdep.c: Fix typos in comments.
2449 * aarch64-tdep.c: Same.
2450 * ada-lang.c: Same.
2451 * amd64-nat.c: Same.
2452 * arc-tdep.c: Same.
2453 * arch/aarch64-insn.c: Same.
2454 * block.c: Same.
2455 * breakpoint.h: Same.
2456 * btrace.h: Same.
2457 * c-varobj.c: Same.
2458 * cli/cli-decode.c: Same.
2459 * cli/cli-script.c: Same.
2460 * cli/cli-utils.h: Same.
2461 * coff-pe-read.c: Same.
2462 * coffread.c: Same.
2463 * compile/compile-cplus-symbols.c: Same.
2464 * compile/compile-object-run.c: Same.
2465 * completer.c: Same.
2466 * corelow.c: Same.
2467 * cp-support.c: Same.
2468 * demangle.c: Same.
2469 * dwarf-index-write.c: Same.
2470 * dwarf2-frame.c: Same.
2471 * dwarf2-frame.h: Same.
2472 * eval.c: Same.
2473 * frame-base.h: Same.
2474 * frame.h: Same.
2475 * gdbcmd.h: Same.
2476 * gdbtypes.h: Same.
2477 * gnu-nat.c: Same.
2478 * guile/scm-objfile.c: Same.
2479 * i386-tdep.c: Same.
2480 * i386-tdep.h: Same.
2481 * infcall.c: Same.
2482 * infcall.h: Same.
2483 * linux-nat.c: Same.
2484 * m68k-tdep.c: Same.
2485 * macroexp.c: Same.
2486 * memattr.c: Same.
2487 * mi/mi-cmd-disas.c: Same.
2488 * mi/mi-getopt.h: Same.
2489 * mi/mi-main.c: Same.
2490 * minsyms.c: Same.
2491 * nat/aarch64-sve-linux-sigcontext.h: Same.
2492 * objfiles.h: Same.
2493 * ppc-linux-nat.c: Same.
2494 * ppc-linux-tdep.c: Same.
2495 * ppc-tdep.h: Same.
2496 * progspace.h: Same.
2497 * prologue-value.h: Same.
2498 * python/py-evtregistry.c: Same.
2499 * python/py-instruction.h: Same.
2500 * record-btrace.c: Same.
2501 * record-full.c: Same.
2502 * remote.c: Same.
2503 * rs6000-tdep.c: Same.
2504 * ser-tcp.c: Same.
2505 * sol-thread.c: Same.
2506 * sparc-sol2-tdep.c: Same.
2507 * sparc64-tdep.c: Same.
2508 * stabsread.c: Same.
2509 * symfile.c: Same.
2510 * symtab.h: Same.
2511 * target.c: Same.
2512 * tracepoint.c: Same.
2513 * tui/tui-data.h: Same.
2514 * tui/tui-io.c: Same.
2515 * tui/tui-win.c: Same.
2516 * tui/tui.c: Same.
2517 * unittests/rsp-low-selftests.c: Same.
2518 * user-regs.h: Same.
2519 * utils.c: Same.
2520 * utils.h: Same.
2521 * valarith.c: Same.
2522 * valops.c: Same.
2523 * valprint.c: Same.
2524 * valprint.h: Same.
2525 * value.c: Same.
2526 * value.h: Same.
2527 * varobj.c: Same.
2528 * x86-nat.h: Same.
2529 * xtensa-tdep.c: Same.
2530
2531 2019-10-25 Ali Tamur <tamur@google.com>
2532
2533 * charset.c (find_charset_names): Reflect API change.
2534
2535 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2536
2537 * symtab.c (struct demangled_name_entry): Change demangled name
2538 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2539 part of the struct anymore.
2540 (symbol_set_names): No longer obstack allocate + copy the demangled
2541 name, just store the allocated name from bfd.
2542
2543 2019-10-25 Tom Tromey <tromey@adacore.com>
2544
2545 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2546 (bsearch_cie_cmp, add_cie): Remove.
2547 (find_cie): Reimplement.
2548 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2549 (dwarf2_build_frame_info): Update.
2550
2551 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2552
2553 PR gdb/25126
2554 * symfile.c (reread_symbols): Call forget_cached_source_info to
2555 clear the stale source cache.
2556
2557 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2558
2559 * configure: Regenerate.
2560 * configure.ac: Remove code that sets python_has_threads.
2561
2562 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2563
2564 * config.in: Regenerate.
2565 * configure: Regenerate.
2566 * configure.ac: Remove the code that uses sed to get the python
2567 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2568
2569 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2570
2571 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2572 error paths.
2573
2574 2019-10-23 Tom Tromey <tom@tromey.com>
2575
2576 * arc-tdep.c: Remove ".." from include.
2577 * frv-tdep.c: Remove ".." from include.
2578 * lm32-tdep.c: Remove ".." from include.
2579 * microblaze-tdep.c: Remove ".." from include.
2580 * or1k-tdep.h: Remove ".." from include.
2581 * s12z-tdep.c: Remove ".." from include.
2582 * Makefile.in (OPCODES_CFLAGS): Add comment.
2583 (TOP_CFLAGS): New variable.
2584 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2585
2586 2019-10-23 Tom Tromey <tom@tromey.com>
2587
2588 * Makefile.in (READLINE_DIR): Update.
2589
2590 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2591
2592 * infcall.c (call_function_by_hand_dummy): Fix the function
2593 comment. And extract out a code section into...
2594 (reserve_stack_space): ...this new function.
2595
2596 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2597
2598 * infcall.c (value_arg_coerce): Remove an unused parameter.
2599 (call_function_by_hand_dummy): Update the call to
2600 'value_arg_coerce'.
2601
2602 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2603
2604 * infcall.c (call_function_by_hand_dummy): Refactor.
2605
2606 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2607
2608 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2609
2610 2019-10-23 Tom Tromey <tom@tromey.com>
2611
2612 * configure: Rebuild.
2613 * configure.ac: Don't check for sigprocmask.
2614 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2615
2616 2019-10-23 Tom Tromey <tom@tromey.com>
2617
2618 * configure: Rebuild.
2619 * acinclude.m4: Use m4_include, not sinclude.
2620
2621 2019-10-23 Tom de Vries <tdevries@suse.de>
2622
2623 PR breakpoints/24687
2624 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2625
2626 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2627
2628 * symtab.c (struct demangled_name_entry) <language>: Change from
2629 bitfield to regular variable.
2630
2631 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2632
2633 * symtab.c (struct demangled_name_entry): Add a constructor.
2634 (free_demangled_name_entry): New function to call the destructor
2635 for demangled_name_entry.
2636 (create_demangled_names_hash): Pass free_demangled_name_entry to
2637 htab_create_alloc.
2638 (symbol_set_names): Call placement new for demangled_name_entry.
2639 * utils.c: No longer include xxhash.h here, now that fast_hash
2640 is inlined in the header.
2641 * utils.h: Instead, include it here.
2642
2643 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2644
2645 * Makefile.in: Link with libxxhash.
2646 * config.in: Regenerate.
2647 * configure: Regenerate.
2648 * configure.ac: Search for libxxhash.
2649 * utils.c (fast_hash): Use xxhash if present.
2650
2651 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2652
2653 * utils.h (fast_hash): New function.
2654 * symtab.c (hash_demangled_name_entry): Call new function
2655 fast_hash.
2656
2657 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2658
2659 * symtab.c (struct demangled_name_entry): Change type of mangled
2660 to gdb::string_view. Also adds a constructor that takes the
2661 mangled name.
2662 (hash_demangled_name_entry): Update.
2663 (eq_demangled_name_entry): Update.
2664 (free_demangled_name_entry): New function to call the destructor
2665 now that this is not a POD anymore.
2666 (create_demangled_names_hash): Pass free_demangled_name_entry to
2667 htab_create_alloc.
2668 (symbol_set_names): Update.
2669
2670 2019-10-21 Ali Tamur <tamu@google.com>
2671
2672 * dwarf2read.c (dir_index): Change type.
2673 (file_name_index): Likewise.
2674 (line_header::include_dir_at): Change comment and implementation on
2675 whether it is DWARF 5.
2676 (line_header::is_valid_file_index): New function.
2677 (line_header::file_name_at): Change comment and implementation on
2678 whether it is DWARF 5.
2679 (line_header::file_names): Change to private field renamed as
2680 m_file_names and introduce a new accessor method.
2681 (line_header::file_names_size): New method.
2682 (line_header::include_dirs): Change to private field and rename as
2683 m_include_dirs.
2684 (dw2_get_file_names_reader): Define local var at a smaller scope and
2685 reflect API change.
2686 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2687 (process_structure_scope): Likewise.
2688 (line_header::add_include_dir): Change message and reflect renaming.
2689 (line_header::add_file_name): Likewise.
2690 (read_formatted_entries): Handle DW_FORM_data16.
2691 (dwarf_decode_line_header): Fix line header length calculation.
2692 (psymtab_include_file_name): Change comment and API.
2693 (lnp_state_machine::m_file): Update comment and reflect type change.
2694 (lnp_state_machine::record_line): Reflect type change.
2695 (dwarf_decode_lines): Reflect API change.
2696 (file_file_name): Likewise.
2697 (file_full_name): Likewise.
2698
2699 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2702
2703 2019-10-21 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2706
2707 2019-10-21 Tom Tromey <tom@tromey.com>
2708
2709 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2710 NM_H. Use AC_CONFIG_LINKS.
2711 * configure: Rebuild.
2712 * Makefile.in (NM_H): New variable.
2713 (generated_files): Add NM_H. Remove gcore.
2714 (nm.h, stamp-nmh): New targets.
2715
2716 2019-10-20 Tom Tromey <tom@tromey.com>
2717
2718 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2719 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2720 obsolete comment.
2721 (put_objfile_before): Now static.
2722
2723 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2724
2725 * gdbsupport/common-utils.h (startswith): Change return type to
2726 bool.
2727
2728 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2729
2730 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2731 * breakpoint.c (bp_locations_compare): Rename to...
2732 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2733 (update_global_location_list): Use std::sort instead of qsort.
2734 * buildsym.c (compare_line_numbers): Rename to...
2735 (lte_is_less_than): ...this, and change to std::sort semantics.
2736 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2737 instead of qsort.
2738 * disasm.c (compare_lines): Rename to...
2739 (line_is_less_than): ...this, and change to std::sort semantics.
2740 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2741 of qsort.
2742 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2743 (fde_is_less_than): ...this, and change to std::sort semantics.
2744 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2745 * mdebugread.c (compare_blocks):
2746 (block_is_less_than): ...this, and change to std::sort semantics.
2747 (sort_blocks): Call std::sort instead of qsort.
2748 * objfiles.c (qsort_cmp): Rename to...
2749 (sort_cmp): ...this, and change to std::sort semantics.
2750 (update_section_map): Call std::sort instead of qsort.
2751 * remote.c (compare_pnums): Remove.
2752 (map_regcache_remote_table): Call std::sort instead of qsort.
2753 * utils.c (compare_positive_ints): Remove.
2754 * utils.h (compare_positive_ints): Remove.
2755 * xcoffread.c (compare_lte): Remove.
2756 (arrange_linetable): Call std::sort instead of qsort.
2757
2758 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2759
2760 * symfile.c (init_entry_point_info): Fix typo.
2761 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2762
2763 2019-10-18 Tom de Vries <tdevries@suse.de>
2764
2765 * aarch64-tdep.c: Fix typos in comments.
2766 * ada-lang.c: Same.
2767 * ada-tasks.c: Same.
2768 * alpha-tdep.c: Same.
2769 * alpha-tdep.h: Same.
2770 * amd64-nat.c: Same.
2771 * amd64-windows-tdep.c: Same.
2772 * arc-tdep.c: Same.
2773 * arc-tdep.h: Same.
2774 * arch-utils.c: Same.
2775 * arm-nbsd-tdep.c: Same.
2776 * arm-tdep.c: Same.
2777 * ax-gdb.c: Same.
2778 * blockframe.c: Same.
2779 * btrace.c: Same.
2780 * c-varobj.c: Same.
2781 * coff-pe-read.c: Same.
2782 * coffread.c: Same.
2783 * cris-tdep.c: Same.
2784 * darwin-nat.c: Same.
2785 * dbxread.c: Same.
2786 * dcache.c: Same.
2787 * disasm.c: Same.
2788 * dtrace-probe.c: Same.
2789 * dwarf-index-write.c: Same.
2790 * dwarf2-frame-tailcall.c: Same.
2791 * dwarf2-frame.c: Same.
2792 * dwarf2read.c: Same.
2793 * eval.c: Same.
2794 * exceptions.c: Same.
2795 * fbsd-tdep.c: Same.
2796 * findvar.c: Same.
2797 * frame.c: Same.
2798 * frv-tdep.c: Same.
2799 * gnu-v3-abi.c: Same.
2800 * go32-nat.c: Same.
2801 * h8300-tdep.c: Same.
2802 * hppa-tdep.c: Same.
2803 * i386-linux-tdep.c: Same.
2804 * i386-tdep.c: Same.
2805 * ia64-libunwind-tdep.c: Same.
2806 * ia64-tdep.c: Same.
2807 * infcmd.c: Same.
2808 * infrun.c: Same.
2809 * linespec.c: Same.
2810 * linux-nat.c: Same.
2811 * linux-thread-db.c: Same.
2812 * machoread.c: Same.
2813 * mdebugread.c: Same.
2814 * mep-tdep.c: Same.
2815 * mn10300-tdep.c: Same.
2816 * namespace.c: Same.
2817 * objfiles.c: Same.
2818 * opencl-lang.c: Same.
2819 * or1k-tdep.c: Same.
2820 * osabi.c: Same.
2821 * ppc-linux-nat.c: Same.
2822 * ppc-linux-tdep.c: Same.
2823 * ppc-sysv-tdep.c: Same.
2824 * printcmd.c: Same.
2825 * procfs.c: Same.
2826 * record-btrace.c: Same.
2827 * record-full.c: Same.
2828 * remote-fileio.c: Same.
2829 * remote.c: Same.
2830 * rs6000-tdep.c: Same.
2831 * s12z-tdep.c: Same.
2832 * score-tdep.c: Same.
2833 * ser-base.c: Same.
2834 * ser-go32.c: Same.
2835 * skip.c: Same.
2836 * sol-thread.c: Same.
2837 * solib-svr4.c: Same.
2838 * solib.c: Same.
2839 * source.c: Same.
2840 * sparc-nat.c: Same.
2841 * sparc-sol2-tdep.c: Same.
2842 * sparc-tdep.c: Same.
2843 * sparc64-tdep.c: Same.
2844 * stabsread.c: Same.
2845 * stack.c: Same.
2846 * symfile.c: Same.
2847 * symtab.c: Same.
2848 * target-descriptions.c: Same.
2849 * target-float.c: Same.
2850 * thread.c: Same.
2851 * utils.c: Same.
2852 * valops.c: Same.
2853 * valprint.c: Same.
2854 * value.c: Same.
2855 * varobj.c: Same.
2856 * windows-nat.c: Same.
2857 * xcoffread.c: Same.
2858 * xstormy16-tdep.c: Same.
2859 * xtensa-tdep.c: Same.
2860
2861 2019-10-17 Tom Tromey <tromey@adacore.com>
2862
2863 * configure: Rebuild.
2864 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2865 in AC_CONFIG_FILES invocation.
2866 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2867 new-style config.status invocation.
2868
2869 2019-10-17 Tom de Vries <tdevries@suse.de>
2870
2871 * arm-nbsd-nat.c: Fix typos in comments.
2872 * arm-tdep.c: Same.
2873 * darwin-nat-info.c: Same.
2874 * dwarf2read.c: Same.
2875 * elfread.c: Same.
2876 * event-top.c: Same.
2877 * findvar.c: Same.
2878 * gdbtypes.c: Same.
2879 * hppa-tdep.c: Same.
2880 * i386-tdep.c: Same.
2881 * jit.c: Same.
2882 * main.c: Same.
2883 * mdebugread.c: Same.
2884 * moxie-tdep.c: Same.
2885 * nto-procfs.c: Same.
2886 * osabi.c: Same.
2887 * ppc-linux-tdep.c: Same.
2888 * remote.c: Same.
2889 * riscv-tdep.c: Same.
2890 * s390-tdep.c: Same.
2891 * sh-tdep.c: Same.
2892 * sparc-linux-tdep.c: Same.
2893 * sparc-nat.c: Same.
2894 * stack.c: Same.
2895 * target-descriptions.c: Same.
2896 * top.c: Same.
2897 * varobj.c: Same.
2898
2899 2019-10-16 Tom Tromey <tom@tromey.com>
2900
2901 * objfiles.h (struct objfile) <original_name>: Now const.
2902
2903 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2904
2905 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2906 pass on to sigsetjmp's second argument.
2907 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2908
2909 2019-10-16 Keith Seitz <keiths@redhat.com>
2910
2911 PR gdb/23567
2912 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2913 sections whose size is greater than the file size.
2914
2915 2019-10-16 Jim Wilson <jimw@sifive.com>
2916
2917 * riscv-tdep.c (riscv_gcc_target_options): New.
2918 (riscv_gnu_triplet_regexp): New.
2919 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2920 set_gdbarch_gnu_triplet_regexp.
2921
2922 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2923
2924 * Makefile.in: Add xml-builtin.h.
2925 * features/feature_to_c.sh: Add an include for xml-builtin.h
2926 to ensure that the compiler checks that the types match.
2927 * xml-builtin.h: New file.
2928 * xml-support.c (fetch_xml_builtin): Add missing const.
2929 * xml-support.h: Remove declaration of xml_builtins.
2930
2931 2019-10-16 Tom de Vries <tdevries@suse.de>
2932
2933 PR tdep/25096
2934 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2935 (amd64_classify_aggregate): ... here.
2936 (amd64_classify_aggregate_field): Handled fiels of nested structs
2937 recursively.
2938
2939 2019-10-16 Tom de Vries <tdevries@suse.de>
2940
2941 PR tdep/24104
2942 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2943 that handles 'theclass'.
2944
2945 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2946
2947 * linespec.c (decode_digits_ordinary): Update comment.
2948 * make-target-delegates: No longer need to handle VEC case.
2949 * memrange.c (normalize_mem_ranges): Update comment.
2950 * namespace.c (add_using_directive): Update comment.
2951 * objc-lang.c (uniquify_strings): Update comment.
2952 * ppc-linux-nat.c (struct thread_points): Update comment.
2953 * probe.h (find_probes_in_objfile): Update comment.
2954 * target.h (enum flash_preserve_mode): Update comment.
2955 * varobj.c (varobj_restrict_range): Update comment.
2956 * varobj.h (varobj_list_children): Update comment.
2957
2958 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2959
2960 * Makefile.in: Remove references to vec.h and vec.c.
2961 * aarch64-tdep.c: No longer include vec.h.
2962 * ada-lang.c: Likewise.
2963 * ada-lang.h: Likewise.
2964 * arm-tdep.c: Likewise.
2965 * ax.h: Likewise.
2966 * breakpoint.h: Likewise.
2967 * charset.c: Likewise.
2968 * cp-support.h: Likewise.
2969 * dtrace-probe.c: Likewise.
2970 * dwarf2read.c: Likewise.
2971 * extension.h: Likewise.
2972 * gdb_bfd.c: Likewise.
2973 * gdbsupport/gdb_vecs.h: Likewise.
2974 * gdbsupport/vec.c: Remove.
2975 * gdbsupport/vec.h: Remove.
2976 * gdbthread.h: Likewise.
2977 * guile/scm-type.c: Likewise.
2978 * inline-frame.c: Likewise.
2979 * machoread.c: Likewise.
2980 * memattr.c: Likewise.
2981 * memrange.h: Likewise.
2982 * namespace.h: Likewise.
2983 * nat/linux-btrace.h: Likewise.
2984 * osdata.c: Likewise.
2985 * parser-defs.h: Likewise.
2986 * progspace.h: Likewise.
2987 * python/py-type.c: Likewise.
2988 * record-btrace.c: Likewise.
2989 * rust-exp.y: Likewise.
2990 * solib-target.c: Likewise.
2991 * stap-probe.c: Likewise.
2992 * target-descriptions.c: Likewise.
2993 * target-memory.c: Likewise.
2994 * target.h: Likewise.
2995 * varobj.c: Likewise.
2996 * varobj.h: Likewise.
2997 * xml-support.h: Likewise.
2998
2999 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3002 Update for new std::vector based implementation.
3003 (process_psymtab_comp_unit_reader): Likewise.
3004 (scan_partial_symbols): Likewise.
3005 (recursively_compute_inclusions): Likewise.
3006 (compute_compunit_symtab_includes): Likewise.
3007 (process_imported_unit_die): Likewise.
3008 (queue_and_load_dwo_tu): Likewise.
3009 (follow_die_sig_1): Likewise.
3010 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3011 (typedef dwarf2_per_cu_ptr): Remove.
3012 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3013 function.
3014 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3015 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3016 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3017 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3018 std::vector.
3019
3020 2019-10-15 Tom Tromey <tromey@adacore.com>
3021
3022 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3023 TID.
3024
3025 2019-10-15 Tom Tromey <tromey@adacore.com>
3026
3027 * windows-nat.c (windows_nat_target::fetch_registers)
3028 (windows_nat_target::store_registers): Rename "pid" to "tid".
3029
3030 2019-10-15 Tom Tromey <tromey@adacore.com>
3031
3032 * gdbarch.h, gdbarch.c: Rebuild.
3033 * gdbarch.sh (gcc_target_options): Change return type to
3034 std::string.
3035 * compile/compile.c (get_args): Update.
3036 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3037 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3038 std::string.
3039 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3040 std::string.
3041 * arch-utils.c (default_gcc_target_options): Return std::string.
3042 * arch-utils.h (default_gcc_target_options): Return std::string.
3043 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3044
3045 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3046
3047 * breakpoint.c (breakpoint_chain): Make static.
3048 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3049 of accessing breakpoint_chain.
3050
3051 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3052
3053 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3054 to a gdb::function_view and return value to bool.
3055 * breakpoint.h (iterate_over_breakpoints): Likewise.
3056 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3057 (pop_dummy_frame): Update.
3058 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3059 (gdbscm_breakpoints): Update.
3060 * python/py-breakpoint.c (build_bp_list): Update.
3061 (gdbpy_breakpoints): Update.
3062 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3063 Update.
3064 (bpfinishpy_handle_stop): Update.
3065 (bpfinishpy_handle_exit): Update.
3066 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3067 (svr4_update_solib_event_breakpoints): Update.
3068
3069 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3070
3071 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3072 when unwrapping single-field structs.
3073
3074 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3075
3076 * dwarf2read.c: Remove includes.
3077
3078 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3079
3080 * ui-out.c (ui_out::call_do_message): Silence
3081 -Wformat-nonliteral warning.
3082
3083 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3084
3085 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3086 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3087 include: readline/tilde.h.
3088
3089 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3090
3091 * remote.c (remote_target::get_trace_status): Remove declaration of
3092 trace_regblock_size.
3093
3094 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3095
3096 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3097 (show_user): Remove declaration of cmdlist.
3098 * cli/cli-cmds.h (max_user_call_depth): Declare.
3099 * cli/cli-script.c (execute_user_command): Remove declaration
3100 of max_user_call_depth.
3101
3102 2019-10-11 Jim Wilson <jimw@sifive.com>
3103
3104 * gdbsupport/print-utils.h (pulongest): Fix comment.
3105 (plongest): Likewise.
3106 (phex): Add missing comment, mention leading zeros.
3107 (phex_nz): Add mention of no leading zeros to comment.
3108
3109 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3110 plongest instead of unsigned long long cast.
3111
3112 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3113
3114 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3115 for external_editor_command and gdbtk_test.
3116
3117 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3118
3119 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3120 * varobj.c (varobjdebug): Move comment to...
3121 * varobj.h (varobjdebug): ...here, and declare.
3122
3123 2019-10-09 Tom Tromey <tom@tromey.com>
3124
3125 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3126 erase_data_content.
3127
3128 2019-10-09 Tom Tromey <tom@tromey.com>
3129
3130 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3131 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3132 * tui/tui-command.c (tui_cmd_window::resize)
3133 (tui_refresh_cmd_win): Update.
3134 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3135 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3136 * tui/tui-data.c (~tui_gen_win_info): Remove.
3137 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3138 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3139 (tui_redisplay_readline, tui_mld_flush)
3140 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3141 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3142 (tui_data_window::erase_data_content)
3143 (tui_data_item_window::rerender)
3144 (tui_data_item_window::refresh_window): Update.
3145 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3146 (box_win, tui_gen_win_info::make_window)
3147 (tui_gen_win_info::make_visible): Update.
3148 (tui_delete_win): Remove.
3149 * tui/tui-winsource.c
3150 (tui_source_window_base::do_erase_source_content): Update.
3151 (tui_show_source_line, tui_source_window_base::update_tab_width)
3152 (tui_source_window_base::update_exec_info): Update.
3153 * tui/tui-data.h (struct curses_deleter): New.
3154 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3155 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3156
3157 2019-10-09 Tom Tromey <tom@tromey.com>
3158
3159 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3160
3161 2019-10-09 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3164 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3165
3166 2019-10-09 Tom Tromey <tom@tromey.com>
3167
3168 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3169 window height directly.
3170 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3171 declare.
3172 * tui/tui-layout.c (tui_default_win_height): Remove.
3173 (tui_default_win_viewport_height): Remove.
3174
3175 2019-10-09 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui.h: Remove comments.
3178
3179 2019-10-09 Tom de Vries <tdevries@suse.de>
3180
3181 * python/lib/gdb/printer/bound_registers.py: Use
3182 '^builtin_type_bound128' as regexp argument for
3183 add_builtin_pretty_printer.
3184
3185 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3186
3187 * guile/guile.c (guile_extension_script_ops): Remove forward
3188 declaration and mark as static.
3189 (guile_script_ops): Likewise.
3190 (extension_language_guile): Move further down in the file so
3191 it can reference the definitions for guile_{extension_,}script_ops.
3192
3193 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3194
3195 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3196 except SORTL, DFLTCC, and KDSA.
3197
3198 2019-10-08 Tom Tromey <tromey@adacore.com>
3199
3200 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3201 (struct safe_symbol_file_add_args): Remove.
3202
3203 2019-10-08 Tom Tromey <tromey@adacore.com>
3204
3205 * windows-nat.c: Don't include buildsym-legacy.h.
3206
3207 2019-10-08 Tom Tromey <tromey@adacore.com>
3208
3209 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3210
3211 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3212
3213 * gdbtypes.c (overload_debug): Move comment to header.
3214 * gdbtypes.h (overload_debug): Declare.
3215 * valops.c: Remove declaration of overload_debug, instead
3216 include gdbtypes.h.
3217
3218 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3219
3220 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3221 through _().
3222 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3223 move comment...
3224 * language.h (lang_frame_mismatch_warn): ... here. Also add
3225 declaration.
3226 * top.c (lang_frame_mismatch_warn): Remove declaration.
3227 (check_frame_language_change): Pass lang_frame_mismatch_warn
3228 through _().
3229
3230 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3231
3232 * c-lang.h (vtbl_ptr_name): Declare.
3233 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3234 it from the header.
3235 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3236
3237 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3238
3239 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3240 gdb_static_assert.
3241
3242 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3243
3244 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3245 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3246 * ctfread.c: New file.
3247 * ctfread.h: New file.
3248 * elfread.c: Include ctfread.h.
3249 (struct elfinfo text_p): New member ctfsect.
3250 (elf_locate_sections): Mark CTF section.
3251 (elf_symfile_read): Call elfctf_build_psymtabs.
3252 * Makefile.in (LIBCTF): Add.
3253 (CLIBS): Use it.
3254 (CDEPS): Likewise.
3255 (DIST): Add ctfread.c.
3256
3257 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3258
3259 * ctfread.c (struct nextfield): Renamed to ...
3260 (struct ctf_nextfield): ... this.
3261 (struct field_info): Renamed to ...
3262 (strut ctf_field_info): ... this.
3263 (attach_fields_to_type): Update for renamed structures.
3264 (ctf_add_member_cb): Likewise.
3265 (ctf_add_enum_member_cb): Likewise.
3266 (process_struct_members): Likewise.
3267 (process_enum_type): Likewise.
3268
3269 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3270
3271 * tracectf.h: Rename, was ctf.h.
3272 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3273 * tracefile.c: Likewise.
3274 * tracepoint.c: Remove unused include ctf.h.
3275 * mi/mi-main.c: Likewise.
3276 * Makefile.in Replace ctf.c with tracectf.c.
3277
3278 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3279
3280 * version.in: Change version number to "9.0.50.DATE-git".
3281
3282 2019-10-03 Tom Tromey <tom@tromey.com>
3283
3284 PR rust/24976:
3285 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3286
3287 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3290 cp_search_name_hash.
3291 * NEWS: Add entry about nested function support.
3292
3293 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3294 Andrew Burgess <andrew.burgess@embecosm.com>
3295
3296 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3297 for nested static variables when searchin VAR_DOMAIN.
3298 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3299 global scope, update comment.
3300 (add_partial_subprogram): Call add_partial_subprogram recursively
3301 for nested subroutines when processinng Fortran.
3302 (load_partial_dies): Process the child entities of a subprogram
3303 when processing Fortran.
3304 (partial_die_parent_scope): Handle building scope
3305 for Fortran nested functions.
3306 (process_die): Record that nested functions have a scope.
3307 (new_symbol): Always record Fortran subprograms on the global
3308 symbol list.
3309 (determine_prefix): How to build the prefix for Fortran
3310 subprograms.
3311
3312 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3315 have just sent the thread a SIGSTOP and are waiting for it to
3316 arrive.
3317
3318 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * btrace.c (btrace_add_pc): Remove whitespace before the template
3321 parameter in 'std::vector <...>'.
3322 (parse_xml_btrace_block): Likewise.
3323 (btrace_maint_decode_pt): Likewise.
3324 (btrace_maint_update_packets): Likewise.
3325 (btrace_maint_print_packets): Likewise.
3326 * btrace.h (struct btrace_maint_info): Likewise.
3327 * dwarf2read.c (struct type_unit_group): Likewise.
3328 (build_type_psymtabs_reader): Likewise.
3329 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3330 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3331 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3332
3333 2019-10-03 Tom de Vries <tdevries@suse.de>
3334
3335 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3336 the first line of the help text for set/show style metadata.
3337
3338 2019-10-02 Tom Tromey <tromey@adacore.com>
3339
3340 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3341 * gdbsupport/common-inferior.c: New file.
3342 * infcmd.c (startup_with_shell): Don't define.
3343 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3344 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3345 * inferior.h (startup_with_shell): Don't declare.
3346
3347 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3348
3349 * gdbsupport/gdb_assert.h: Include errors.h.
3350 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3351
3352 2019-10-02 Tom Tromey <tromey@adacore.com>
3353
3354 * NEWS: Add $_ada_exception entry.
3355 * ada-lang.c (struct ada_catchpoint): Add constructor.
3356 <m_kind>: New member.
3357 (allocate_location_exception, re_set_exception): Remove
3358 "ex" parameter.
3359 (should_stop_exception): Compute $_ada_exception.
3360 (check_status_exception, print_it_exception)
3361 (print_one_exception, print_mention_exception): Remove
3362 "ex" parameter.
3363 (allocate_location_catch_exception, re_set_catch_exception)
3364 (check_status_exception, print_it_catch_exception)
3365 (print_one_catch_exception, print_mention_catch_exception)
3366 (print_recreate_catch_exception)
3367 (allocate_location_catch_exception_unhandled)
3368 (re_set_catch_exception_unhandled)
3369 (check_status_exception, print_it_catch_exception_unhandled)
3370 (print_one_catch_exception_unhandled)
3371 (print_mention_catch_exception_unhandled)
3372 (print_recreate_catch_exception_unhandled)
3373 (allocate_location_catch_assert, re_set_catch_assert)
3374 (check_status_assert, print_it_catch_assert)
3375 (print_one_catch_assert, print_mention_catch_assert)
3376 (print_recreate_catch_assert)
3377 (allocate_location_catch_handlers, re_set_catch_handlers)
3378 (check_status_handlers, print_it_catch_handlers)
3379 (print_one_catch_handlers, print_mention_catch_handlers)
3380 (print_recreate_catch_handlers): Remove.
3381 (create_ada_exception_catchpoint): Update.
3382 (initialize_ada_catchpoint_ops): Update.
3383
3384 2019-10-02 Tom Tromey <tromey@adacore.com>
3385
3386 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3387 (create_excep_cond_exprs): Simplify exception string computation.
3388 (ada_exception_catchpoint_cond_string): Likewise.
3389
3390 2019-10-02 Tom Tromey <tromey@adacore.com>
3391
3392 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3393 * ada-lang.c (lesseq_defined_than): Handle
3394 LOC_STATIC.
3395 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3396 parameter.
3397 (dwarf2_has_info): Likewise.
3398 (new_symbol): Set maybe_copied on symbol when
3399 appropriate.
3400 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3401 parameter.
3402 <can_copy>: New member.
3403 * elfread.c (record_minimal_symbol): Set maybe_copied
3404 on symbol when appropriate.
3405 (elf_symfile_read): Update call to dwarf2_has_info.
3406 * minsyms.c (lookup_minimal_symbol_linkage): New
3407 function.
3408 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3409 * symtab.c (get_symbol_address, get_msymbol_address):
3410 New functions.
3411 * symtab.h (get_symbol_address, get_msymbol_address):
3412 Declare.
3413 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3414 maybe_copied.
3415 (struct symbol, struct minimal_symbol) <maybe_copied>:
3416 New member.
3417
3418 2019-10-02 Tom Tromey <tromey@adacore.com>
3419
3420 * source.c (struct current_source_location): New.
3421 (current_source_key): New global.
3422 (current_source_symtab, current_source_line)
3423 (current_source_pspace): Remove.
3424 (get_source_location): New function.
3425 (get_current_source_symtab_and_line)
3426 (set_default_source_symtab_and_line)
3427 (set_current_source_symtab_and_line)
3428 (clear_current_source_symtab_and_line, select_source_symtab)
3429 (info_source_command, print_source_lines_base)
3430 (info_line_command, search_command_helper, _initialize_source):
3431 Update.
3432
3433 2019-10-02 Tom Tromey <tromey@adacore.com>
3434
3435 * source.c (select_source_symtab): Don't call
3436 decode_line_with_current_source.
3437
3438 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3439
3440 * symtab.c (lookup_global_symbol): Search global block.
3441
3442 2019-10-02 Tom Tromey <tromey@adacore.com>
3443
3444 * coffread.c (process_coff_symbol): Update.
3445 * dwarf2read.c (var_decode_location, new_symbol): Update.
3446 * mdebugread.c (parse_symbol): Update.
3447 * objfiles.c (relocate_one_symbol): Update.
3448 * stabsread.c (define_symbol, fix_common_block)
3449 (scan_file_globals): Update.
3450 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3451 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3452 * xcoffread.c (process_xcoff_symbol): Update.
3453
3454 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3455
3456 * MAINTAINERS: Update my email address.
3457
3458 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3459
3460 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3461 std::vector.
3462 (build_type_psymtabs_reader): Update for std::vector.
3463 (build_type_psymtab_dependencies): Likewise.
3464 * dwarf2read.h: Remove use of DEF_VEC_P.
3465 (typedef sig_type_ptr): Delete.
3466
3467 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3468
3469 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3470 to std::vector.
3471 (btrace_maint_decode_pt): Likewise, and move allocation of the
3472 vector outside of the loop.
3473 (btrace_maint_update_packets): Update to handle change from VEC to
3474 std::vector.
3475 (btrace_maint_print_packets): Likewise.
3476 (maint_info_btrace_cmd): Likewise.
3477 * btrace.h: Remove use of DEF_VEC_O.
3478 (typedef btrace_pt_packet_s): Delete.
3479 (struct btrace_maint_info) <packets>: Change fromm VEC to
3480 std::vector.
3481 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3482
3483 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3484
3485 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3486 make accesses into the vector constant references.
3487 (btrace_add_pc): Update for std::vector.
3488 (btrace_stitch_bts): Likewise.
3489 (parse_xml_btrace_block): Likewise.
3490 (btrace_maint_update_packets): Likewise.
3491 (btrace_maint_print_packets): Likewise.
3492 (maint_info_btrace_cmd): Likewise.
3493 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3494 std::vector.
3495 (btrace_data::empty): Likewise.
3496 (btrace_data_append): Likewise.
3497 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3498 (typedef btrace_block_s): Delete.
3499 (struct btrace_block): Add constructor.
3500 (struct btrace_data_bts) <blocks>: Change to std::vector.
3501 * nat/linux-btrace.c (perf_event_read_bts): Update for
3502 std::vector.
3503 (linux_read_bts): Likewise.
3504
3505 2019-10-01 Tom Tromey <tom@tromey.com>
3506
3507 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3508
3509 2019-10-01 Tom Tromey <tom@tromey.com>
3510
3511 * stack.c (print_frame, info_frame_command_core): Use
3512 styled_string.
3513 * linux-thread-db.c (try_thread_db_load_1)
3514 (try_thread_db_load_from_pdir_1): Use styled_string.
3515 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3516 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3517 (maybe_print_unsupported_script_warning)
3518 (maybe_print_script_not_found_warning): Use styled_string.
3519 * ada-lang.c (user_select_syms): Use styled_string.
3520
3521 2019-10-01 Tom Tromey <tom@tromey.com>
3522
3523 * p-lang.c (pascal_printstr): Use metadata style.
3524 * value.c (show_convenience): Use metadata style.
3525 * valprint.c (valprint_check_validity, val_print_optimized_out)
3526 (val_print_not_saved, val_print_unavailable)
3527 (val_print_invalid_address, generic_val_print, val_print)
3528 (value_check_printable, val_print_array_elements): Use metadata
3529 style.
3530 * ui-out.h (class ui_out) <field_fmt>: New overload.
3531 <do_field_fmt>: Add style parameter.
3532 * ui-out.c (ui_out::field_fmt): New overload.
3533 * typeprint.c (type_print_unknown_return_type)
3534 (val_print_not_allocated, val_print_not_associated): Use metadata
3535 style.
3536 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3537 parameter.
3538 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3539 * tracepoint.c (tvariables_info_1): Use metadata style.
3540 * stack.c (print_frame_arg, print_frame_info, print_frame)
3541 (info_frame_command_core): Use metadata style.
3542 * skip.c (info_skip_command): Use metadata style.
3543 * rust-lang.c (rust_print_enum): Use metadata style.
3544 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3545 metadata style.
3546 * python/py-framefilter.c (py_print_single_arg): Use metadata
3547 style.
3548 * printcmd.c (do_one_display, print_variable_and_value): Use
3549 metadata style.
3550 * p-valprint.c (pascal_val_print)
3551 (pascal_object_print_value_fields): Use metadata style.
3552 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3553 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3554 parameter.
3555 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3556 * m2-valprint.c (m2_print_long_set): Use metadata style.
3557 * m2-typeprint.c (m2_print_type): Use metadata style.
3558 * infcmd.c (print_return_value_1): Use metadata style.
3559 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3560 * f-valprint.c (info_common_command_for_block): Use metadata
3561 style.
3562 * f-typeprint.c (f_type_print_base): Use metadata style.
3563 * expprint.c (print_subexp_standard): Use metadata style.
3564 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3565 * cli/cli-style.h (class cli_style_option): Add constructor.
3566 (metadata_style): Declare.
3567 * cli/cli-style.c (metadata_style): New global.
3568 (_initialize_cli_style): Register metadata style.
3569 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3570 parameter.
3571 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3572 * c-typeprint.c (c_type_print_base_struct_union)
3573 (c_type_print_base_1): Use metadata style.
3574 * breakpoint.c (watchpoint_value_print)
3575 (print_one_breakpoint_location): Use metadata style.
3576 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3577 style.
3578 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3579 style.
3580 * ada-valprint.c (val_print_packed_array_elements, printstr)
3581 (print_field_values, ada_val_print_ref, ada_val_print): Use
3582 metadata style.
3583 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3584 style.
3585 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3586 style.
3587 * ada-lang.c (user_select_syms): Use metadata style.
3588
3589 2019-10-01 Tom Tromey <tom@tromey.com>
3590
3591 * cli/cli-cmds.c (pwd_command): Style output.
3592
3593 2019-10-01 Pedro Alves <palves@redhat.com>
3594 Tom Tromey <tom@tromey.com>
3595
3596 * symtab.c (print_symbol_info): Use %ps.
3597 (print_msymbol_info): Use %ps.
3598 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3599 * printcmd.c (print_variable_and_value): Use %ps.
3600 * macrocmd.c (show_pp_source_pos): Use %ps.
3601 * infrun.c (print_exited_reason): Use ui_out::message.
3602 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3603 (describe_other_breakpoints): Use ui_out::message and new
3604 formats.
3605 (say_where): Use new formats.
3606 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3607 and new formats.
3608
3609 2019-10-01 Pedro Alves <palves@redhat.com>
3610 Tom Tromey <tom@tromey.com>
3611
3612 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3613 (test_gdb_formats): New function.
3614 (run_tests): Call it.
3615 (test_format_specifier): Update.
3616 * utils.h (fputs_filtered): Update comment.
3617 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3618 (fputs_styled_unfiltered): Declare.
3619 * utils.c (fputs_styled_unfiltered): New function.
3620 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3621 (vfprintf_filtered): Update.
3622 (vfprintf_unfiltered, vprintf_filtered): Update.
3623 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3624 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3625 disallow_ui_out_field>: New constants.
3626 (enum class field_kind): New.
3627 (struct base_field_s, struct signed_field_s): New.
3628 (signed_field): New function.
3629 (struct string_field_s): New.
3630 (string_field): New function.
3631 (struct styled_string_s): New.
3632 (styled_string): New function.
3633 (class ui_out) <message>: Add comment.
3634 <vmessage, call_do_message>: New methods.
3635 <do_message>: Add style parameter.
3636 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3637 methods.
3638 (ui_out::message): Rewrite.
3639 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3640 parameter.
3641 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3642 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3643 gdb_extensions parameter.
3644 (class format_piece): Add parameter to constructor.
3645 (n_int_args): New field.
3646 * gdbsupport/format.c (format_pieces::format_pieces): Add
3647 gdb_extensions parameter. Handle '*'.
3648 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3649 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3650 vfprintf_styled_no_gdbfmt.
3651 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3652 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3653 unfiltered output.
3654 * ui-style.h (struct ui_file_style) <ptr>: New method.
3655
3656 2019-10-01 Tom Tromey <tom@tromey.com>
3657
3658 * unittests/format_pieces-selftests.c: Update. Add final format.
3659 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3660 empty literal pieces.
3661
3662 2019-10-01 Tom Tromey <tom@tromey.com>
3663
3664 * ui-out.h (enum class ui_out_style_kind): Remove.
3665 (class ui_out) <field_string, field_stsream, do_field_string>:
3666 Change type of "style".
3667 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3668 (ui_out::field_string): Update.
3669 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3670 of "style".
3671 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3672 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3673 * stack.c (print_frame_arg, print_frame_info, print_frame):
3674 Update.
3675 * source.c (print_source_lines_base): Update.
3676 * solib.c (info_sharedlibrary_command): Update.
3677 * skip.c (info_skip_command): Update.
3678 * record-btrace.c (btrace_call_history_src_line)
3679 (btrace_call_history): Update.
3680 * python/py-framefilter.c (py_print_frame): Update.
3681 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3682 "style".
3683 * mi/mi-out.c (mi_ui_out::do_table_header)
3684 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3685 (mi_ui_out::do_field_string): Update.
3686 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3687 Update.
3688 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3689 "style".
3690 * cli-out.c (cli_ui_out::do_table_header)
3691 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3692 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3693 (cli_ui_out::do_field_fmt): Update.
3694 * breakpoint.c (print_breakpoint_location): Update.
3695 (update_static_tracepoint): Update.
3696
3697 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3698
3699 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3700 conversion of gdb_datadir.
3701 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3702 remove not needed c_str ().
3703
3704 2019-09-30 Ali Tamur <tamur@google.com>
3705
3706 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3707 (dwarf2_string_attr): Likewise.
3708
3709 2019-09-30 Ali Tamur <tamur@google.com>
3710
3711 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3712 (process_full_type_unit): Likewise.
3713 (dump_die_shallow): Likewise.
3714 (cu_debug_loc_section): Likewise.
3715
3716 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3717
3718 * minsyms.c (compare_minimal_symbols): Rename to...
3719 (minimal_symbol_is_less_than): ...this, and adjust to STL
3720 conventions (return bool, take arguments as references)
3721 (minimal_symbol_reader::install): Call std::sort instead
3722 of qsort.
3723
3724 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3725
3726 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3727 hash and why.
3728 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3729 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3730
3731 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3732
3733 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3734 * psympriv.h (add_psymbol_to_list): Move comment here and update
3735 it.
3736
3737 2019-09-29 Tom de Vries <tdevries@suse.de>
3738
3739 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3740 Use $tmpdir/$(basename "$output_file").dwz instead of
3741 "${output_file}.dwz".
3742
3743 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3744
3745 PR gdb/25045
3746 * hppa-linux-nat.c: Include gdbarch.h.
3747
3748 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3749
3750 * blockframe.c (find_pc_partial_function): Change return type to bool.
3751 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3752 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3753 (stub_gnu_ifunc_resolve_name): Likewise.
3754 * symtab.c (compare_filenames_for_search): Likewise.
3755 (compare_glob_filenames_for_search): Likewise.
3756 (matching_obj_sections): Likewise.
3757 (symbol_matches_domain): Likewise.
3758 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3759 (find_line_pc): Change return type to bool.
3760 (find_line_pc_range): Likewise.
3761 (producer_is_realview): Likewise.
3762 * symtab.h (symbol_matches_domain): Likewise.
3763 (find_pc_partial_function): Likewise.
3764 (find_pc_line_pc_range): Likewise.
3765 (in_gnu_ifunc_stub): Likewise.
3766 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3767 (find_line_pc): Likewise.
3768 (find_line_pc_range): Likewise.
3769 (matching_obj_sections): Likewise.
3770 (find_line_symtab): Change out parameter to bool.
3771 (producer_is_realview): Change return type to bool.
3772 (compare_filenames_for_search): Likewise.
3773 (compare_glob_filenames_for_search): Likewise.
3774
3775 2019-09-26 Tom Tromey <tom@tromey.com>
3776
3777 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3778 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3779 * gdb_usleep.h: Remove.
3780 * gdb_usleep.c: Remove.
3781 * utils.c: Don't include gdb_usleep.h.
3782
3783 2019-09-26 Tom Tromey <tromey@adacore.com>
3784
3785 * python/py-type.c (type_to_type_object): Call check_typedef
3786 for stub types.
3787
3788 2019-09-26 Tom Tromey <tom@tromey.com>
3789
3790 * utils.h (initialize_utils): Don't declare.
3791 * top.c (gdb_init): Don't call initialize_utils.
3792 * utils.c (initialize_utils): Remove. Move contents...
3793 (_initialize_utils): ... here.
3794
3795 2019-09-25 Tom Tromey <tom@tromey.com>
3796
3797 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3798 * utils.h (make_hex_string): Don't declare.
3799 * utils.c (make_hex_string): Remove.
3800
3801 2019-09-24 Tom de Vries <tdevries@suse.de>
3802
3803 PR gdb/23815
3804 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3805 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3806
3807 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3808
3809 * NEWS: Mention new simulator port for PRU.
3810
3811 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3812
3813 * ada-exp.y (write_object_remaining): Update.
3814 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3815 and eliminate the static buffer.
3816 (ada_decode_symbol): Update.
3817 (ada_la_decode): Update.
3818 (ada_sniff_from_mangled_name): Update.
3819 (is_valid_name_for_wild_match): Update.
3820 (ada_lookup_name_info::matches): Update and simplify.
3821 (name_matches_regex): Update.
3822 (ada_add_global_exceptions): Update.
3823 * ada-lang.h (ada_decode): Update signature.
3824 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3825 * dwarf-index-write.c (debug_names::insert): Update.
3826
3827 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3828
3829 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3830 formatting.
3831
3832 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3833
3834 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3835 Change "nonzero" to "true" in documentation.
3836
3837 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3838
3839 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3840 (_initialize_darwin_solib): Don't set
3841 darwin_so_ops.lookup_lib_global_symbol.
3842 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3843 set_gdbarch_iterate_over_objfiles_in_search_order.
3844 (elf_lookup_lib_symbol): Rename to...
3845 (svr4_iterate_over_objfiles_in_search_order): this, and update
3846 to iterate semantics.
3847 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3848 * solib.c (solib_global_lookup): Remove.
3849 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3850 (solib_global_lookup): Remove.
3851 * symtab.c (lookup_global_or_static_symbol): Remove call to
3852 solib_global_lookup.
3853
3854 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3855
3856 * NEWS: Move entries about default MI version now being
3857 version 3, and about the GDB/MI fix for multi-location
3858 breakpoints to the "since GDB 8.3" section.
3859
3860 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3861
3862 GDB 8.3.1 released.
3863
3864 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3865
3866 * NEWS: Mention that Cell/B.E. debugging support was removed.
3867 * MAINTAINERS: Remove spu target.
3868
3869 * config/djgpp/fnchange.lst: Remove entries for removed files.
3870
3871 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3872 spu-multiarch.o, and spu-tdep.o.
3873 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3874 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3875 spu-multiarch.c, and spu-tdep.c.
3876 * spu-linux-nat.c: Remove file.
3877 * spu-multiarch.c: Remove file.
3878 * spu-tdep.c: Remove file.
3879 * spu-tdep.h: Remove file.
3880 * solib-spu.c: Remove file.
3881 * solib-spu.h: Remove file.
3882
3883 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3884 * configure.nat (spu-linux): Remove.
3885 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3886 solib-multiarch.o from gdb_target_obs.
3887 (spu*-*-*): Remove.
3888
3889 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3890 feature flag.
3891 (ppc_linux_no_features): Update.
3892 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3893 Cell/B.E. support.
3894 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3895 (tdesc_powerpc_cell64l): Likewise.
3896 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3897 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3898 Cell/B.E. support.
3899 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3900 Do not include "features/rs6000/powerpc-cell32l.c" or
3901 "features/rs6000/powerpc-cell64l.c".
3902 (ppc_linux_spu_section): Remove.
3903 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3904 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3905 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3906 (ppc_linux_spe_context_lookup): Remove.
3907 (ppc_linux_spe_context_inferior_created): Remove.
3908 (ppc_linux_spe_context_solib_loaded): Remove.
3909 (ppc_linux_spe_context_solib_unloaded): Remove.
3910 (ppc_linux_spe_context): Remove.
3911 (struct ppu2spu_cache): Remove.
3912 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3913 (struct ppu2spu_data): Remove.
3914 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3915 ppu2spu_unwind): Remove.
3916 (ppc_linux_init_abi): Remove Cell/B.E. support.
3917 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3918
3919 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3920 (rs6000/powerpc-cell64l-expedite): Likewise
3921 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3922 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3923 rs6000/powerpc-cell64l.xml.
3924 * features/rs6000/powerpc-cell32l.xml: Remove.
3925 * features/rs6000/powerpc-cell64l.xml: Likewise.
3926 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3927 * features/rs6000/powerpc-cell64l.c: Likewise.
3928 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3929 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3930 * regformats/reg-spu.dat: Remove.
3931
3932 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3933 * corelow.c (struct spuid_list): Remove.
3934 (add_to_spuid_list): Remove.
3935 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3936 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3937 (remote_protocol_features): Remove associated entries.
3938 (_initialize_remote): No longer initialize them.
3939 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3940 * linux-nat.c (SPUFS_MAGIC): Remove.
3941 (linux_proc_xfer_spu): Remove.
3942 (spu_enumerate_spu_ids): Remove.
3943 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3944 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3945 (linux_make_corefile_notes): No longer call it.
3946
3947 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3948 (cooked_write_test): Likewise.
3949
3950 2019-09-20 Tom Tromey <tom@tromey.com>
3951
3952 * NEWS: Mention case-sensitivity of TUI commands.
3953 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3954 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3955 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3956
3957 2019-09-20 Tom Tromey <tom@tromey.com>
3958
3959 * tui/tui-source.c (tui_source_window::set_contents): Use
3960 make_unique_xstrdup.
3961 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3962 make_unique_xstrdup.
3963
3964 2019-09-20 Tom Tromey <tom@tromey.com>
3965
3966 * tui/tui-data.c: Remove separator comments.
3967 * tui/tui-layout.c: Remove separator comments.
3968 * tui/tui-win.c: Remove separator comments.
3969 * tui/tui-wingeneral.c: Remove separator comments.
3970
3971 2019-09-20 Tom Tromey <tom@tromey.com>
3972
3973 * tui/tui.h (strcat_to_buf): Don't declare.
3974 * tui/tui.c (strcat_to_buf): Remove.
3975
3976 2019-09-20 Tom Tromey <tom@tromey.com>
3977
3978 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3979 from "fullname".
3980 * tui/tui-source.c (tui_source_window::set_contents)
3981 (tui_source_window::location_matches_p)
3982 (tui_source_window::maybe_update): Update.
3983
3984 2019-09-20 Tom Tromey <tom@tromey.com>
3985
3986 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3987 Update.
3988 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3989 prefix.
3990 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3991 (tui_data_window::line_from_reg_element_no)
3992 (tui_data_window::first_reg_element_no_inline)
3993 (tui_data_window::show_registers)
3994 (tui_data_window::show_register_group)
3995 (tui_data_window::display_registers_from)
3996 (tui_data_window::display_registers_from_line)
3997 (tui_data_window::first_data_item_displayed)
3998 (tui_data_window::delete_data_content_windows)
3999 (tui_data_window::erase_data_content)
4000 (tui_data_window::do_scroll_vertical)
4001 (tui_data_window::refresh_window)
4002 (tui_data_window::check_register_values): Update.
4003
4004 2019-09-20 Tom Tromey <tom@tromey.com>
4005
4006 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4007 (struct tui_locator_window) <full_name, proc_name>: Now
4008 std::string.
4009 * tui/tui-stack.c (tui_locator_window::make_status_line)
4010 (tui_locator_window::set_locator_fullname)
4011 (tui_locator_window::set_locator_info): Update.
4012 * tui/tui-source.c (tui_source_window::set_contents)
4013 (tui_source_window::showing_source_p): Update.
4014
4015 2019-09-20 Tom Tromey <tom@tromey.com>
4016
4017 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4018 Don't call tui_locator_win_info_ptr.
4019
4020 2019-09-20 Tom Tromey <tom@tromey.com>
4021
4022 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4023
4024 2019-09-20 Tom Tromey <tom@tromey.com>
4025
4026 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4027 height for locator.
4028 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4029 * tui/tui-layout.c (show_source_disasm_command, show_data)
4030 (show_source_or_disasm_and_command): Use 1 as height for locator.
4031
4032 2019-09-20 Tom Tromey <tom@tromey.com>
4033
4034 * tui/tui.c (tui_enable): Update.
4035 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4036 Update.
4037 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4038 Update.
4039 * tui/tui-data.c (win_resized): Now bool.
4040 (tui_win_resized): Return bool.
4041 (tui_set_win_resized_to): Accept a bool.
4042
4043 2019-09-20 Tom Tromey <tom@tromey.com>
4044
4045 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4046 Change type of "refresh_values_only".
4047 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4048 type of "refresh_values_only".
4049
4050 2019-09-20 Tom Tromey <tom@tromey.com>
4051
4052 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4053 std::string.
4054 (tui_disassemble): Add "pos" parameter.
4055 (tui_disasm_window::set_contents): Simplify.
4056
4057 2019-09-20 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui-winsource.h (struct tui_source_window_base)
4060 <show_source_content>: Now private.
4061 * tui/tui-winsource.c
4062 (tui_source_window_base::show_source_content): Don't handle empty
4063 content case.
4064
4065 2019-09-20 Tom Tromey <tom@tromey.com>
4066
4067 * tui/tui-layout.c (show_source_disasm_command)
4068 (show_source_or_disasm_and_command): Don't call
4069 show_source_content.
4070
4071 2019-09-20 Tom Tromey <tom@tromey.com>
4072
4073 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4074 Declare.
4075 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4076 from tui_make_status_line.
4077 (tui_locator_window::rerender): Update.
4078
4079 2019-09-20 Tom Tromey <tom@tromey.com>
4080
4081 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4082 (tui_locator_window::rerender): Update.
4083
4084 2019-09-20 Tom Tromey <tom@tromey.com>
4085
4086 * tui/tui-winsource.h (struct tui_source_window_base)
4087 <~tui_source_window_base>: Don't declare.
4088 <fullname>: Remove.
4089 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4090 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4091 member.
4092 * tui/tui-source.c (tui_source_window::set_contents): Update.
4093 (tui_source_window::location_matches_p)
4094 (tui_source_window::maybe_update): Update.
4095
4096 2019-09-20 Tom Tromey <tom@tromey.com>
4097
4098 * tui/tui-winsource.h (~tui_source_element): Remove.
4099 (tui_source_element): Update.
4100 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4101 * tui/tui-winsource.c (tui_show_source_line): Update.
4102 * tui/tui-source.c (tui_source_window::set_contents): Update.
4103 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4104
4105 2019-09-20 Tom Tromey <tom@tromey.com>
4106
4107 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4108 declare.
4109 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4110 tui_clear_source_windows_detail.
4111 * tui/tui-winsource.h (struct tui_source_window_base)
4112 <clear_detail>: Don't declare.
4113 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4114 Remove.
4115 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4116
4117 2019-09-20 Tom Tromey <tromey@adacore.com>
4118
4119 PR ada/24919:
4120 * block.c (contained_in): Fix final return value.
4121
4122 2019-09-20 Alan Modra <amodra@gmail.com>
4123
4124 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4125 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4126 (read_indirect_string_from_dwz): Use bfd accessor.
4127 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4128 * machoread.c (macho_symfile_read_all_oso): Likewise.
4129 * solib.c (solib_bfd_open): Likewise.
4130
4131 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4132
4133 * eval.c: Move declaration of overload_resolution to...
4134 * value.h: ...here.
4135
4136 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4137
4138 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4139 * arm-linux-tdep.c: Likewise.
4140 * arm-nbsd-nat.c: Likewise.
4141 * arm-tdep.h: Declare arm_apcs_32.
4142 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4143
4144 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4145
4146 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4147 * dwarf2read.h: Declare dwarf_always_disassemble.
4148
4149 2019-09-19 Tom de Vries <tdevries@suse.de>
4150
4151 PR gdb/25009
4152 * source-cache.c (source_cache::ensure): Catch exception thrown during
4153 construction of the highlighter.
4154
4155 2019-09-18 Alan Modra <amodra@gmail.com>
4156
4157 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4158 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4159 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4160 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4161 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4162 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4163 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4164 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4165 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4166 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4167 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4168 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4169 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4170 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4171 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4172 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4173 * mi/mi-interp.c: Update throughout for bfd section macro and
4174 function changes.
4175 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4176 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4177
4178 2019-09-18 Tom Tromey <tom@tromey.com>
4179
4180 * NEWS: Add entry.
4181 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4182 call rl_initialize.
4183 (tui_enable): Do not call rl_initialize.
4184
4185 2019-09-18 Christian Groessler <chris@groessler.org>
4186
4187 * alpha-linux-nat.c: Include gdbarch.h.
4188
4189 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4190
4191 * ui-file.c: Include cli/cli-style.h.
4192 (term_cli_styling): Remove cli_styling declaration.
4193
4194 2019-09-18 Alan Modra <amodra@gmail.com>
4195
4196 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4197 to bfd_asymbol_section.
4198
4199 2019-09-18 Alan Modra <amodra@gmail.com>
4200
4201 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4202 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4203 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4204
4205 2019-09-18 Alan Modra <amodra@gmail.com>
4206
4207 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4208 * spu-linux-nat.c (spu_bfd_open): Likewise.
4209
4210 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4211
4212 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4213 to bool to match definition in dwarf2read.c.
4214
4215 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4216
4217 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4218 (print_signatures): Likewise.
4219 (trust_pad_over_xvs): Likewise.
4220 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4221 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4222 * arm-linux-nat.c (arm_apcs_32): Likewise.
4223 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4224 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4225 * arm-tdep.c (arm_debug): Likewise.
4226 (arm_apcs_32): Likewise.
4227 * auto-load.c (debug_auto_load): Likewise.
4228 (auto_load_gdb_scripts): Likewise.
4229 (global_auto_load): Likewise.
4230 (auto_load_local_gdbinit): Likewise.
4231 (auto_load_local_gdbinit_loaded): Likewise.
4232 * auto-load.h (global_auto_load): Likewise.
4233 (auto_load_local_gdbinit): Likewise.
4234 (auto_load_local_gdbinit_loaded): Likewise.
4235 * breakpoint.c (disconnected_dprintf): Likewise.
4236 (breakpoint_proceeded): Likewise.
4237 (automatic_hardware_breakpoints): Likewise.
4238 (always_inserted_mode): Likewise.
4239 (target_exact_watchpoints): Likewise.
4240 (_initialize_breakpoint): Update.
4241 * breakpoint.h (target_exact_watchpoints): Change to bool.
4242 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4243 * cli/cli-cmds.c (trace_commands): Likewise.
4244 * cli/cli-cmds.h (trace_commands): Likewise.
4245 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4246 to bool*.
4247 * cli/cli-logging.c (logging_overwrite): Change to bool.
4248 (logging_redirect): Likewise.
4249 (debug_redirect): Likewise.
4250 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4251 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4252 to bool.
4253 <boolean_option_def>: Update.
4254 (struct flag_option_def): Change default type of Context to bool
4255 from int.
4256 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4257 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4258 (get_setshow_command_value_string): Likewise.
4259 * cli/cli-style.c (cli_styling): Change to bool.
4260 (source_styling): Likewise.
4261 * cli/cli-style.h (source_styling): Likewise.
4262 (cli_styling): Likewise.
4263 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4264 to bool.
4265 * command.h (var_types): Update comment.
4266 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4267 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4268 bool.
4269 (debug_compile_cplus_scopes): Likewise.
4270 * compile/compile-internal.h (compile_debug): Likewise.
4271 * compile/compile.c (compile_debug): Likewise.
4272 (struct compile_options) <raw>: Likewise.
4273 * cp-support.c (catch_demangler_crashes): Likewise.
4274 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4275 (usr_cmd_cris_dwarf2_cfi): Likewise.
4276 * csky-tdep.c (csky_debug): Likewise.
4277 * darwin-nat.c (enable_mach_exceptions): Likewise.
4278 * dcache.c (dcache_enabled_p): Likewise.
4279 * defs.h (info_verbose): Likewise.
4280 * demangle.c (demangle): Likewise.
4281 (asm_demangle): Likewise.
4282 * dwarf-index-cache.c (debug_index_cache): Likewise.
4283 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4284 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4285 * dwarf2read.c (check_physname): Likewise.
4286 (use_deprecated_index_sections): Likewise.
4287 (dwarf_always_disassemble): Likewise.
4288 * eval.c (overload_resolution): Likewise.
4289 * event-top.c (set_editing_cmd_var): Likewise.
4290 (exec_done_display_p): Likewise.
4291 * event-top.h (set_editing_cmd_var): Likewise.
4292 (exec_done_display_p): Likewise.
4293 * exec.c (write_files): Likewise.
4294 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4295 (debug_fbsd_nat): Likewise.
4296 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4297 Likewise.
4298 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4299 <backtrace_past_entry> Likewise.
4300 * gdb-demangle.h (demangle): Likewise.
4301 (asm_demangle): Likewise.
4302 * gdb_bfd.c (bfd_sharing): Likewise.
4303 * gdbcore.h (write_files): Likewise.
4304 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4305 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4306 * gdbthread.h (print_thread_events): Likewise.
4307 * gdbtypes.c (opaque_type_resolution): Likewise.
4308 (strict_type_checking): Likewise.
4309 * gnu-nat.c (gnu_debug_flag): Likewise.
4310 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4311 * guile/scm-param.c (pascm_variable): Add boolval.
4312 (add_setshow_generic): Update.
4313 (pascm_param_value): Update.
4314 (pascm_set_param_value_x): Update.
4315 * hppa-tdep.c (hppa_debug): Change to bool..
4316 * infcall.c (may_call_functions_p): Likewise.
4317 (coerce_float_to_double_p): Likewise.
4318 (unwind_on_signal_p): Likewise.
4319 (unwind_on_terminating_exception_p): Likewise.
4320 * infcmd.c (startup_with_shell): Likewise.
4321 * inferior.c (print_inferior_events): Likewise.
4322 * inferior.h (startup_with_shell): Likewise.
4323 (print_inferior_events): Likewise.
4324 * infrun.c (step_stop_if_no_debug): Likewise.
4325 (detach_fork): Likewise.
4326 (debug_displaced): Likewise.
4327 (disable_randomization): Likewise.
4328 (non_stop): Likewise.
4329 (non_stop_1): Likewise.
4330 (observer_mode): Likewise.
4331 (observer_mode_1): Likewise.
4332 (set_observer_mode): Update.
4333 (sched_multi): Change to bool.
4334 * infrun.h (debug_displaced): Likewise.
4335 (sched_multi): Likewise.
4336 (step_stop_if_no_debug): Likewise.
4337 (non_stop): Likewise.
4338 (disable_randomization): Likewise.
4339 * linux-tdep.c (use_coredump_filter): Likewise.
4340 (dump_excluded_mappings): Likewise.
4341 * linux-thread-db.c (auto_load_thread_db): Likewise.
4342 (check_thread_db_on_load): Likewise.
4343 * main.c (captured_main_1): Update.
4344 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4345 xx2_opt, boolean_opt>: Change to bool.
4346 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4347 * maint.c (maintenance_profile_p): Likewise.
4348 (per_command_time): Likewise.
4349 (per_command_space): Likewise.
4350 (per_command_symtab): Likewise.
4351 * memattr.c (inaccessible_by_default): Likewise.
4352 * mi/mi-main.c (mi_async): Likewise.
4353 (mi_async_1): Likewise.
4354 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4355 * nat/fork-inferior.h (startup_with_shell): Likewise.
4356 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4357 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4358 * nios2-tdep.c (nios2_debug): Likewise.
4359 * or1k-tdep.c (or1k_debug): Likewise.
4360 * parse.c (parser_debug): Likewise.
4361 * parser-defs.h (parser_debug): Likewise.
4362 * printcmd.c (print_symbol_filename): Likewise.
4363 * proc-api.c (procfs_trace): Likewise.
4364 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4365 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4366 (set_parameter_value): Update.
4367 (add_setshow_generic): Update.
4368 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4369 to bool*.
4370 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4371 int*.
4372 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4373 * record-btrace.c (record_btrace_target::store_registers): Update.
4374 * record-full.c (record_full_memory_query): Change to bool.
4375 (record_full_stop_at_limit): Likewise.
4376 * record-full.h (record_full_memory_query): Likewise.
4377 * remote-notif.c (notif_debug): Likewise.
4378 * remote-notif.h (notif_debug): Likewise.
4379 * remote.c (use_range_stepping): Likewise.
4380 (interrupt_on_connect): Likewise.
4381 (remote_break): Likewise.
4382 * ser-tcp.c (tcp_auto_retry): Likewise.
4383 * ser-unix.c (serial_hwflow): Likewise.
4384 * skip.c (debug_skip): Likewise.
4385 * solib-aix.c (solib_aix_debug): Likewise.
4386 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4387 (spu_auto_flush_cache_p): Likewise.
4388 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4389 Likewise.
4390 (struct info_print_options) <quiet>: Likewise.
4391 * symfile-debug.c (debug_symfile): Likewise.
4392 * symfile.c (auto_solib_add): Likewise.
4393 (separate_debug_file_debug): Likewise.
4394 * symfile.h (auto_solib_add): Likewise.
4395 (separate_debug_file_debug): Likewise.
4396 * symtab.c (basenames_may_differ): Likewise.
4397 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4398 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4399 (struct info_types_options) <quiet>: Likewise.
4400 * symtab.h (demangle): Likewise.
4401 (basenames_may_differ): Likewise.
4402 * target-dcache.c (stack_cache_enabled_1): Likewise.
4403 (code_cache_enabled_1): Likewise.
4404 * target.c (trust_readonly): Likewise.
4405 (may_write_registers): Likewise.
4406 (may_write_memory): Likewise.
4407 (may_insert_breakpoints): Likewise.
4408 (may_insert_tracepoints): Likewise.
4409 (may_insert_fast_tracepoints): Likewise.
4410 (may_stop): Likewise.
4411 (auto_connect_native_target): Likewise.
4412 (target_stop_and_wait): Update.
4413 (target_async_permitted): Change to bool.
4414 (target_async_permitted_1): Likewise.
4415 (may_write_registers_1): Likewise.
4416 (may_write_memory_1): Likewise.
4417 (may_insert_breakpoints_1): Likewise.
4418 (may_insert_tracepoints_1): Likewise.
4419 (may_insert_fast_tracepoints_1): Likewise.
4420 (may_stop_1): Likewise.
4421 * target.h (target_async_permitted): Likewise.
4422 (may_write_registers): Likewise.
4423 (may_write_memory): Likewise.
4424 (may_insert_breakpoints): Likewise.
4425 (may_insert_tracepoints): Likewise.
4426 (may_insert_fast_tracepoints): Likewise.
4427 (may_stop): Likewise.
4428 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4429 (make_thread_apply_all_options_def_group): Change argument from int*
4430 to bool*.
4431 (thread_apply_all_command): Update.
4432 (print_thread_events): Change to bool.
4433 * top.c (confirm): Likewise.
4434 (command_editing_p): Likewise.
4435 (history_expansion_p): Likewise.
4436 (write_history_p): Likewise.
4437 (info_verbose): Likewise.
4438 * top.h (confirm): Likewise.
4439 (history_expansion_p): Likewise.
4440 * tracepoint.c (disconnected_tracing): Likewise.
4441 (circular_trace_buffer): Likewise.
4442 * typeprint.c (print_methods): Likewise.
4443 (print_typedefs): Likewise.
4444 * utils.c (debug_timestamp): Likewise.
4445 (sevenbit_strings): Likewise.
4446 (pagination_enabled): Likewise.
4447 * utils.h (sevenbit_strings): Likewise.
4448 (pagination_enabled): Likewise.
4449 * valops.c (overload_resolution): Likewise.
4450 * valprint.h (struct value_print_options) <prettyformat_arrays,
4451 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4452 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4453 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4454 Likewise.
4455 * windows-nat.c (new_console): Likewise.
4456 (cygwin_exceptions): Likewise.
4457 (new_group): Likewise.
4458 (debug_exec): Likewise.
4459 (debug_events): Likewise.
4460 (debug_memory): Likewise.
4461 (debug_exceptions): Likewise.
4462 (useshell): Likewise.
4463 * windows-tdep.c (maint_display_all_tib): Likewise.
4464 * xml-support.c (debug_xml): Likewise.
4465
4466 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4467
4468 * source.c (prepare_path_for_appending): New function.
4469 (openp): Make use of new function.
4470 (find_and_open_source): Search for the compilation directory and
4471 source file as a relative path beneath the directory search path.
4472
4473 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4474
4475 * source-cache.c (source_cache::get_line_charpos): Catch
4476 exceptions and return false, this matches the behaviour documented
4477 in the header file.
4478
4479 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4480
4481 * ada-tasks.c (info_task): Remove quoting of the task's name.
4482
4483 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4484
4485 * symfile.c (auto_solib_add): Replace comment with a reference
4486 to the header file.
4487
4488 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4489
4490 * NEWS: Mention that gdb can now be compiled with Python 3
4491 on Windows.
4492
4493 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4494
4495 * maint.c (maint_print_section_data::maint_print_section_data):
4496 Force use of 'float log10 (float)' by casting the argument to
4497 float.
4498
4499 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4500
4501 * maint.c: Add 'cmath' include.
4502 (struct maint_print_section_data): New structure.
4503 (print_section_index): New function.
4504 (print_bfd_section_info): Add header comment, small whitespace
4505 cleanup, and update to call new print_section_index function.
4506 (print_objfile_section_info): Likewise.
4507 (maint_obj_section_from_bfd_section): New function.
4508 (print_bfd_section_info_maybe_relocated): New function.
4509 (maintenance_info_sections): Add header comment, always use
4510 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4511
4512 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4513
4514 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4515 inner scope, add check that the objfile has psymtabs before
4516 checking psymtabs_addrmap.
4517 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4518
4519 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4520
4521 * NEWS: Announce that Ada task names are now shown at more places,
4522 and between quotes (except in info task output).
4523 * gdb/ada-tasks.c (task_to_str): New function.
4524 (display_current_task_id): Call task_to_str.
4525 (task_command_1): Likewise.
4526 (print_ada_task_info): In non-mi mode, Properly align headers and data
4527 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4528
4529 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4530
4531 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4532 prstatus.pr_lwp.pr_info instead of making it up.
4533
4534 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4535
4536 * auto-load.c (auto_load_expand_dir_vars): Update.
4537 * defs.h (gdb_datadir): Change to std::string.
4538 (python_libdir): Likewise.
4539 (relocate_gdb_directory): Change return type to std::string.
4540 * guile/guile.c (gdbscm_data_directory): Update.
4541 (initialize_scheme_side): Update.
4542 * jit.c (jit_reader_dir): Change to std::string.
4543 (jit_reader_load_command): Update.
4544 * main.c (gdb_datadir): Change to std::string.
4545 (python_libdir): Likewise.
4546 (set_gdb_data_directory): Update.
4547 (relocate_path): Change to return std::string.
4548 (relocate_gdb_directory): Change to return std::string.
4549 (relocate_gdbinit_path_maybe_in_datadir): Update.
4550 (captured_main_1): Update.
4551 * python/python.c (do_start_initialization): Update.
4552 * top.c (show_gdb_datadir): Update.
4553 * xml-syscall.c (xml_init_syscalls_info): Update.
4554 (init_syscalls_info): Update.
4555
4556 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4557
4558 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4559 out of get_init_files.
4560 (get_init_files): Update.
4561
4562 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4563
4564 * main.c (get_init_files): Change to use std::string.
4565 (captured_main_1): Update.
4566 (print_gdb_help): Update.
4567
4568 2019-09-11 Ali Tamur <tamur@google.com>
4569
4570 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4571 implementation.
4572
4573 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4574
4575 * dbxread.c (read_dbx_symtab): Update.
4576 * dwarf2read.c (load_partial_dies): Update.
4577 * mdebugread.c (parse_partial_symbols): Update.
4578 (handle_psymbol_enumerators): Update.
4579 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4580 * psymtab.c (add_psymbol_to_bcache): Likewise.
4581 (add_psymbol_to_list): Likewise.
4582 * symtab.c (symbol_set_names): Likewise.
4583 * symtab.h (symbol_set_names): Likewise.
4584 * xcoffread.c (scan_xcoff_symtab): Update.
4585
4586 2019-09-11 Tom Tromey <tom@tromey.com>
4587
4588 * symfile-mem.c (symbol_file_add_from_memory): Use
4589 bfd_set_filename.
4590 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4591 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4592
4593 2019-09-10 Tom Tromey <tromey@adacore.com>
4594
4595 * dwarf-index-write.c (write_psymbols): Extend error message.
4596 (debug_names::insert): Add Ada code.
4597 (debug_names::write_psymbols): Remove Ada check.
4598 (debug_names) <m_string_obstack>: New member.
4599 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4600 (gdb_index_symbol_name_matcher::matches): Remove.
4601 (mapped_index_base::find_name_components_bounds): Add "lang"
4602 parameter.
4603 (mapped_index_base::build_name_components): Also split names
4604 according to Ada syntax.
4605 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4606 type of "match_callback".
4607 (check_match, check_find_bounds_finds)
4608 (dw2_expand_symtabs_matching): Update.
4609 (dw2_debug_names_iterator): Add new constructor.
4610 (dw2_debug_names_map_matching_symbols): New function.
4611 (dw2_debug_names_expand_symtabs_matching): Update.
4612 (dwarf2_debug_names_functions): Use
4613 dw2_debug_names_map_matching_symbols.
4614
4615 2019-09-10 Tom Tromey <tromey@adacore.com>
4616
4617 * dwarf2read.c (dw2_get_file_names_reader): Add the
4618 CU's file name to the results.
4619
4620 2019-09-10 Tom Tromey <tromey@adacore.com>
4621
4622 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4623 map_matching_symbols. Update.
4624 * dwarf2read.c (dw2_map_matching_symbols): Update.
4625 * psymtab.c (match_partial_symbol): Change type; update.
4626 (psym_map_matching_symbols): Likewise.
4627 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4628 type; update.
4629 * symfile.h (struct quick_symbol_functions)
4630 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4631 Remove "match".
4632
4633 2019-09-10 Tom Tromey <tromey@adacore.com>
4634
4635 * psymtab.c (map_block): Remove.
4636 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4637 * symtab.c (iterate_over_symbols_terminated): New function.
4638 * symtab.c (iterate_over_symbols_terminated): Declare.
4639
4640 2019-09-10 Tom Tromey <tromey@adacore.com>
4641
4642 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4643 * language.h (struct language_defn) <la_iterate_over_symbols>:
4644 Return bool.
4645 * symtab.c (iterate_over_symbols): Return bool.
4646 * symtab.h (iterate_over_symbols): Return bool.
4647
4648 2019-09-10 Tom Tromey <tromey@adacore.com>
4649
4650 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4651 (add_nonlocal_symbols): Update.
4652 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4653 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4654 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4655 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4656 Change type of "callback". Remove "data".
4657
4658
4659 2019-09-09 Ali Tamur <tamur@google.com>
4660
4661 * dwarf2read.c (comp_unit_head): Update comment.
4662 (dwarf2_dwo_name): New function declaration.
4663 (dwarf_unit_type_name): New function declaration.
4664 (read_comp_unit_head): Add support for new compilation units,
4665 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4666 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4667 (currently named as "signature") in their header. Also clarify error
4668 messages.
4669 (lookup_dwo_id): New function. Returns the dwo id of the given
4670 compile unit.
4671 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4672 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4673 functions.
4674 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4675 (dwarf2_dwo_name): Get the dwo name if present.
4676 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4677 purposes.
4678
4679 2019-09-09 Tom Tromey <tom@tromey.com>
4680
4681 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4682
4683 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4684
4685 * python/python.c (do_start_initialization): Make progname_copy static,
4686 to avoid a leak report.
4687
4688 2019-09-08 Tom Tromey <tom@tromey.com>
4689
4690 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4691
4692 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4693
4694 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4695 Change type to gdb::optional<block_enum>.
4696 (dw2_symtab_iter_init): Change block_index parameter type
4697 to gdb::optional<block_enum>.
4698 (dw2_lookup_symbol): Change block_index parameter
4699 type to block_enum.c
4700 (dw2_debug_names_lookup_symbol): Likewise.
4701 * psymtab.c (psym_lookup_symbol): Likewise.
4702 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4703 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4704 Likewise.
4705
4706 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4707
4708 * defs.h (relocate_gdb_directory): Change int to bool in
4709 signature and rename flag to relocatable.
4710 * main.c (relocate_path): Likewise.
4711 (relocate_gdb_directory): Likewise.
4712
4713 2019-09-06 Alan Modra <amodra@gmail.com>
4714
4715 * coffread.c (coff_symfile_read): Constify filename variable.
4716 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4717 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4718 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4719 * solib.c (reload_shared_libraries_1): Likewise.
4720 * symfile.c (reread_symbols): Likewise.
4721 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4722 * solib-darwin.c (darwin_bfd_open): Likewise.
4723 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4724
4725 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4726
4727 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4728 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4729
4730 2019-09-03 Tom Tromey <tromey@adacore.com>
4731
4732 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4733 types.
4734 (has_negatives): Unbias a range type bound.
4735 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4736 * gdbtypes.c (operator==): Handle new field.
4737 (create_range_type): Add "bias" parameter.
4738 (create_static_range_type, resolve_dynamic_range): Update.
4739 * gdbtypes.h (struct range_bounds) <bias>: New member.
4740 (create_range_type): Add bias parameter.
4741 * printcmd.c (print_scalar_formatted): Unbias range types.
4742 * value.c (unpack_long): Unbias range types.
4743 (pack_long): Bias range types.
4744
4745 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4746
4747 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4748 probe arguments.
4749
4750 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4751
4752 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4753 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4754 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4755 (compile_probe_arg): Likewise.
4756 * probe.h (get_argument_count): Likewise.
4757 * solib-svr4.c (solib_event_probe_action): Likewise.
4758 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4759
4760 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4761
4762 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4763 code to here...
4764 (svr4_create_solib_event_breakpoints): ...from here.
4765
4766 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4767
4768 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4769 suffix from warning message.
4770
4771 2019-08-30 Tom Tromey <tom@tromey.com>
4772
4773 * tui/tui-winsource.h (struct tui_source_window_base)
4774 <refresh_all>: Don't declare.
4775 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4776 Remove.
4777 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4778 tui_show_locator_content.
4779 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4780 declare.
4781 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4782 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4783 declare.
4784
4785 2019-08-30 Tom Tromey <tom@tromey.com>
4786
4787 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4788
4789 2019-08-30 Tom Tromey <tom@tromey.com>
4790
4791 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4792 Remove unnecessary forward declarations.
4793
4794 2019-08-30 Tom Tromey <tom@tromey.com>
4795
4796 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4797 rerender.
4798 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4799 tui_show_locator_content.
4800
4801 2019-08-30 Tom Tromey <tom@tromey.com>
4802
4803 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4804 (tui_locator_window::rerender): Rewrite using body of previous
4805 tui_show_locator_content.
4806
4807 2019-08-30 Tom Tromey <tom@tromey.com>
4808
4809 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4810 set_locator_fullname>: New methods.
4811 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4812 Rename from tui_set_locator_fullname.
4813 (tui_locator_window::set_locator_info): Rename from
4814 tui_set_locator_info. Return bool.
4815 (tui_update_locator_fullname, tui_show_frame_info): Update.
4816
4817 2019-08-30 Tom Tromey <tom@tromey.com>
4818
4819 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4820
4821 2019-08-30 Tom Tromey <tom@tromey.com>
4822
4823 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4824 call touchwin.
4825
4826 2019-08-30 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-wingeneral.c (box_win): Assume win_info and
4829 win_info->handle cannot be NULL.
4830
4831 2019-08-30 Tom Tromey <tom@tromey.com>
4832
4833 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4834 refresh_window>: Declare.
4835 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4836 resize.
4837 (tui_data_item_window::rerender): Rename from
4838 tui_display_register.
4839 (tui_data_item_window::refresh_window): New method.
4840 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4841 no-op.
4842
4843 2019-08-30 Tom Tromey <tom@tromey.com>
4844
4845 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4846 regs_column_count, current_group>: Move later. Now private.
4847 <get_current_group>: New method.
4848 * tui/tui-regs.c (tui_reg_command): Update.
4849 * tui/tui-layout.c (tui_set_layout): Update.
4850
4851 2019-08-30 Tom Tromey <tom@tromey.com>
4852
4853 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4854 (tui_data_window::rerender): Don't call
4855 check_and_display_highlight_if_needed.
4856 (tui_data_window::refresh_all): Remove call to
4857 erase_data_content.
4858
4859 2019-08-30 Tom Tromey <tom@tromey.com>
4860
4861 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4862 (tui_data_window::display_registers_from)
4863 (tui_data_window::display_reg_element_at_line)
4864 (tui_data_window::display_registers_from_line): Remove checks of
4865 "empty".
4866
4867 2019-08-30 Tom Tromey <tom@tromey.com>
4868
4869 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4870 Don't declare.
4871 * tui/tui-regs.c (tui_data_window::show_registers): Call
4872 rerender.
4873 (tui_data_window::rerender): Rename from display_all_data.
4874 (tui_data_window::rerender): Remove old implementation.
4875
4876 2019-08-30 Tom Tromey <tom@tromey.com>
4877
4878 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4879 text.
4880 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4881
4882 2019-08-29 Bernhard Wodok <barto@gmx.net>
4883 Sergio Durigan Junior <sergiodj@redhat.com>
4884
4885 PR win32/24284
4886 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4887
4888 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4889
4890 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4891 when searching for types.
4892
4893 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4894
4895 * f-lang.c (f_language_defn): Use f_print_typedef.
4896 * f-lang.h (f_print_typedef): Declare.
4897 * f-typeprint.c (f_print_typedef): Define.
4898
4899 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4900
4901 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4902
4903 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4904
4905 * cli/cli-utils.c (info_print_options_defs): Delete.
4906 (make_info_print_options_def_group): Delete.
4907 (extract_info_print_options): Delete.
4908 (info_print_command_completer): Delete.
4909 (info_print_args_help): Add extra parameter, and optionally
4910 include text about -n flag.
4911 * cli/cli-utils.h (struct info_print_options): Delete.
4912 (extract_info_print_options): Delete declaration.
4913 (info_print_command_completer): Delete declaration.
4914 (info_print_args_help): Add extra parameter, extend header
4915 comment.
4916 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4917 search_symbols.
4918 * stack.c (struct info_print_options): New type.
4919 (info_print_options_defs): New file scoped variable.
4920 (make_info_print_options_def_group): New static function.
4921 (info_print_command_completer): New static function.
4922 (info_locals_command): Update to use new local functions.
4923 (info_args_command): Likewise.
4924 (_initialize_stack): Add extra parameter to calls to
4925 info_print_args_help.
4926 * symtab.c (search_symbols): Add extra parameter, use this to
4927 possibly excluse non-debug symbols.
4928 (symtab_symbol_info): Add extra parameter, which is passed on to
4929 search_symbols.
4930 (struct info_print_options): New type.
4931 (info_print_options_defs): New file scoped variable.
4932 (make_info_print_options_def_group): New static function.
4933 (info_print_command_completer): New static function.
4934 (info_variables_command): Update to use local functions, and pass
4935 extra parameter through to symtab_symbol_info.
4936 (info_functions_command): Likewise.
4937 (info_types_command): Pass additional argument through to
4938 symtab_symbol_info.
4939 (rbreak_command): Pass extra argument to search_symbols.
4940 (_initialize_symtab): Add extra arguments for calls to
4941 info_print_args_help, and update help text for 'info variables',
4942 'whereis', and 'info functions' commands.
4943 * symtab.h (search_symbols): Add extra argument to declaration.
4944 * NEWS: Mention new flags.
4945
4946 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4947
4948 * symtab.c (lookup_static_symbol): Call the new function (and move
4949 it down to be next to lookup_global_symbol).
4950 (struct global_sym_lookup_data): Add block_enum member and rename to...
4951 (struct global_or_static_sym_lookup_data): ...this.
4952 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4953 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4954 (lookup_symbol_global_or_static_iterator_cb): ...this.
4955 (lookup_global_or_static_symbol): New function.
4956 (lookup_global_symbol): Call new function.
4957
4958 2019-08-26 Tom de Vries <tdevries@suse.de>
4959
4960 PR c++/24852
4961 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4962 when pc_probe.prob == NULL.
4963
4964 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4965
4966 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4967 variable symbol_linkage to symbol_linkage_.
4968
4969 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4970
4971 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4972 represent whether the symbol is static, dynamic, or we don't
4973 know.
4974
4975 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4976
4977 * gdb/rx-tdep.c (rx_register_names): New.
4978 (rx_register_name): Delete.
4979 (rx_psw_type): Delete.
4980 (rx_fpsw_type): Delete.
4981 (rx_register_type): Delete.
4982 (rx_gdbarch_init): Convert target-descriptions.
4983 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4984 * gdb/features/Makefile: Add rx.xml.
4985 * gdb/features/rx.xml: New.
4986 * gdb/features/rx.c: Generated.
4987 * gdb/NEWS: Mention target description support.
4988
4989 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4990
4991 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4992 *slot_ptr.
4993
4994 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4995
4996 * configure.ac: Don't check for 'dlfcn.h' (moved to
4997 gdbsupport/common.m4).
4998 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4999 'gdbsupport/'.
5000 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5001 * compile/compile-c-support.c: Include
5002 'gdbsupport/gdb-dlfcn.h'.
5003 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5004 * gdb-dlfcn.c: Move to...
5005 * gdbsupport/gdb-dlfcn.c: ... here.
5006 * gdb-dlfcn.h: Move to...
5007 * gdbsupport/gdb-dlfcn.h: ... here.
5008
5009 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5010
5011 * nios2-tdep.c (struct reg_value): Improve comments. Make
5012 the offset field signed.
5013
5014 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5015
5016 * python/lib/gdb/__init__.py (_execute_file): New function.
5017 * python/python.c (python_run_simple_file): Call gdb._execute_file
5018 on Windows.
5019
5020 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5021
5022 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5023 all uses as this was never set to anything but a zero value.
5024
5025 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5026
5027 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5028
5029 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5030
5031 * tui/tui-data.h (tui_gen_win_info): Add an =default
5032 move constructor, required by some GCC versions.
5033
5034 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5035
5036 * go32-nat.c (go32_sysinfo): Add hygon_p.
5037
5038 2019-08-20 Tom Tromey <tom@tromey.com>
5039
5040 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5041 line_from_reg_element_no, first_reg_element_no_inline,
5042 display_all_data, delete_data_content_windows,
5043 erase_data_content>: Now private.
5044
5045 2019-08-20 Tom Tromey <tom@tromey.com>
5046
5047 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5048 (tui_unhighlight_win, tui_highlight_win)
5049 (tui_win_info::make_window): Update.
5050 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5051
5052 2019-08-20 Tom Tromey <tom@tromey.com>
5053
5054 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5055 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5056 (MAX_PID_WIDTH): Move to tui-stack.c.
5057 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5058 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5059 (MAX_PID_WIDTH): Move from tui-data.h.
5060
5061 2019-08-20 Tom Tromey <tom@tromey.com>
5062
5063 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5064 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5065 (box_win): Update.
5066 (tui_gen_win_info::make_window): Rename from tui_make_window.
5067 (tui_win_info::make_window): New method.
5068 (tui_gen_win_info::make_visible): Update.
5069 * tui/tui-source.c (tui_source_window::set_contents): Update.
5070 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5071 (tui_data_window::display_registers_from): Update.
5072 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5073 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5074 Declare.
5075 <can_box>: Remove.
5076 <title>: Remove.
5077 (struct tui_win_info) <make_window>: Declare.
5078 <can_box>: Now virtual.
5079 <title>: New member.
5080 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5081 * tui/tui-command.c (tui_cmd_window::resize): Update.
5082
5083 2019-08-20 Tom Tromey <tom@tromey.com>
5084
5085 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5086 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5087 (tui_data_window::check_register_values): Update.
5088
5089 2019-08-20 Tom Tromey <tom@tromey.com>
5090
5091 * tui/tui-regs.h (struct tui_data_window): Use
5092 DISABLE_COPY_AND_ASSIGN.
5093 <regs_content>: Change type, removing unique_ptr.
5094 <tui_data_window>: Add move constructor.
5095 * tui/tui-regs.c (tui_data_window::show_registers)
5096 (tui_data_window::show_register_group)
5097 (tui_data_window::display_registers_from)
5098 (tui_data_window::display_registers_from)
5099 (tui_data_window::first_data_item_displayed)
5100 (tui_data_window::delete_data_content_windows)
5101 (tui_data_window::rerender, tui_data_window::refresh_window)
5102 (tui_data_window::check_register_values): Update.
5103
5104 2019-08-20 Tom Tromey <tom@tromey.com>
5105
5106 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5107 show_register_group>: Declare.
5108 (tui_show_register_group): Don't declare.
5109 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5110 tui_show_registers.
5111 (tui_data_window::show_register_group): Rename from
5112 tui_show_register_group.
5113 (tui_data_window::check_register_values, tui_reg_command):
5114 Update.
5115 * tui/tui-layout.c (tui_set_layout): Update.
5116
5117 2019-08-20 Tom Tromey <tom@tromey.com>
5118
5119 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5120 Declare.
5121 (tui_check_register_values): Don't declare.
5122 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5123 from tui_check_register_values.
5124 * tui/tui-hooks.c (tui_register_changed): Update.
5125
5126 2019-08-20 Tom Tromey <tom@tromey.com>
5127
5128 * tui/tui-regs.c (tui_reg_layout): Move later.
5129 (tui_show_registers): Don't enable TUI mode or change layout.
5130
5131 2019-08-20 Tom Tromey <tom@tromey.com>
5132
5133 * tui/tui-regs.h (struct tui_data_item_window)
5134 <~tui_data_item_window>: Remove.
5135 <content>: Now a unique_xmalloc_ptr.
5136 * tui/tui-regs.c (tui_register_format): Return a
5137 unique_xmalloc_ptr.
5138 (tui_get_register): Update.
5139 (~tui_data_item_window): Remove.
5140 (tui_data_window::display_registers_from, tui_display_register):
5141 Update.
5142 * tui/tui-io.h (tui_expand_tabs): Update.
5143 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5144 Remove "col" parameter.
5145
5146 2019-08-20 Tom Tromey <tom@tromey.com>
5147
5148 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5149 field.
5150 * tui/tui-regs.c (~tui_data_item_window): Update.
5151
5152 2019-08-20 Tom Tromey <tom@tromey.com>
5153
5154 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5155 earlier.
5156
5157 2019-08-20 Tom Tromey <tom@tromey.com>
5158
5159 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5160
5161 2019-08-20 Tom Tromey <tom@tromey.com>
5162
5163 * tui/tui-source.h (struct tui_source_window): Update.
5164 * tui/tui-regs.c (tui_show_registers): Update.
5165 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5166 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5167 (NO_REGS_STRING): Remove defines.
5168
5169 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5170
5171 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5172 unnecessary thread walk if remote doesn't support the packet.
5173
5174 2019-08-19 Tom Tromey <tromey@adacore.com>
5175
5176 * python/py-value.c (value_has_field): Fix indentation.
5177
5178 2019-08-19 Tom Tromey <tromey@adacore.com>
5179
5180 * printcmd.c (do_one_display, info_display_command): Update.
5181 * block.h (contained_in): Return bool. Add allow_nested
5182 parameter.
5183 * block.c (contained_in): Return bool. Add allow_nested
5184 parameter.
5185
5186 2019-08-19 Tom Tromey <tom@tromey.com>
5187
5188 * configure: Rebuild.
5189 * configure.ac: Disallow the combination of -static-libstdc++ and
5190 source highlight.
5191 * source-cache.c (get_language_name): Handle rust.
5192 (source_cache::get_source_lines): Ignore highlighting exceptions.
5193
5194 2019-08-16 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5197 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5198 (struct tui_source_window_base) <make_visible, refresh_window,
5199 resize>: Remove methods.
5200 <execution_info>: Remove field.
5201 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5202 (tui_show_source_line, tui_source_window_base)
5203 (~tui_source_window_base): Update.
5204 (tui_source_window_base::resize)
5205 (tui_source_window_base::make_visible)
5206 (tui_source_window_base::refresh_window): Remove.
5207 (tui_source_window_base::update_exec_info): Update.
5208 * tui/tui-source.c (tui_source_window::set_contents): Update.
5209 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5210
5211 2019-08-16 Tom Tromey <tom@tromey.com>
5212
5213 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5214 deprecated_query_hook.
5215
5216 2019-08-16 Tom Tromey <tom@tromey.com>
5217
5218 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5219 (tui_update_source_windows_with_line): Update.
5220 * tui/tui-source.h (struct tui_source_window)
5221 <show_symtab_source>: Declare.
5222 (tui_show_symtab_source): Don't declare.
5223 * tui/tui-source.c (tui_show_symtab_source): Rename from
5224 tui_show_symtab_source.
5225
5226 2019-08-16 Tom Tromey <tom@tromey.com>
5227
5228 * tui/tui-winsource.h (struct tui_source_window_base)
5229 <set_contents>: Declare.
5230 * tui/tui-winsource.c
5231 (tui_source_window_base::update_source_window_as_is): Update.
5232 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5233 Declare.
5234 (tui_set_source_content): Don't declare.
5235 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5236 tui_set_source_content.
5237 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5238 Declare.
5239 (tui_set_disassem_content): Don't declare.
5240 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5241 tui_set_disassem_content.
5242
5243 2019-08-16 Tom Tromey <tom@tromey.com>
5244
5245 * tui/tui-winsource.h (struct tui_source_window_base)
5246 <update_breakpoint_info>: Declare.
5247 (tui_update_breakpoint_info): Don't declare.
5248 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5249 (tui_update_all_breakpoint_info): Update.
5250 (tui_source_window_base::update_breakpoint_info): Rename from
5251 tui_update_breakpoint_info.
5252 (tui_source_window_base::update_exec_info): Update.
5253
5254 2019-08-16 Tom Tromey <tom@tromey.com>
5255
5256 * tui/tui-winsource.h (struct tui_source_window_base)
5257 <update_source_window>: Declare.
5258 (tui_update_source_window): Don't declare.
5259 * tui/tui-winsource.c
5260 (tui_source_window_base::update_source_window): Rename from
5261 tui_update_source_window.
5262 (tui_source_window_base::rerender): Update.
5263 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5264 * tui/tui-disasm.c (tui_show_disassem)
5265 (tui_show_disassem_and_update_source)
5266 (tui_disasm_window::maybe_update): Update.
5267
5268 2019-08-16 Tom Tromey <tom@tromey.com>
5269
5270 * tui/tui-winsource.h (struct tui_source_window_base)
5271 <update_source_window_as_is>: Declare.
5272 (tui_update_source_window_as_is): Don't declare.
5273 * tui/tui-winsource.c (tui_update_source_window): Update
5274 (tui_source_window_base::update_source_window_as_is): Rename from
5275 tui_update_source_window_as_is.
5276 (tui_source_window_base::refill): Update.
5277 * tui/tui-source.c (tui_show_symtab_source): Update.
5278 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5279 Update.
5280
5281 2019-08-16 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-winsource.h (tui_update_source_window)
5284 (tui_update_source_window_as_is): Remove "noerror" parameter.
5285 * tui/tui-winsource.c (tui_update_source_window)
5286 (tui_update_source_window_as_is): Remove "noerror" parameter.
5287 (tui_update_source_windows_with_addr)
5288 (tui_update_source_windows_with_line)
5289 (tui_source_window_base::rerender)
5290 (tui_source_window_base::refill): Update.
5291 * tui/tui-source.h (tui_set_source_content)
5292 (tui_show_symtab_source): Remove "noerror" parameter.
5293 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5294 parameter.
5295 (tui_show_symtab_source): Likewise.
5296 (tui_source_window::maybe_update): Update.
5297 * tui/tui-disasm.c (tui_show_disassem)
5298 (tui_show_disassem_and_update_source)
5299 (tui_disasm_window::do_scroll_vertical)
5300 (tui_disasm_window::maybe_update): Update.
5301
5302 2019-08-16 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui.c (tui_is_window_visible): Update.
5305 * tui/tui-wingeneral.c (tui_make_window)
5306 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5307 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5308 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5309 (tui_set_win_height_command, parse_scrolling_args): Update.
5310 * tui/tui-source.c (tui_source_window::style_changed): Update.
5311 * tui/tui-regs.c (tui_show_registers)
5312 (tui_data_window::first_data_item_displayed)
5313 (tui_data_window::delete_data_content_windows)
5314 (tui_check_register_values, tui_reg_command): Update.
5315 * tui/tui-disasm.c (tui_show_disassem): Update.
5316 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5317 method.
5318 <is_visible>: Remove field.
5319 * tui/tui-data.c (tui_next_win, tui_prev_win)
5320 (tui_delete_invisible_windows): Update.
5321
5322 2019-08-16 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-winsource.h (struct tui_source_window_base)
5325 <m_has_locator>: Remove.
5326 * tui/tui-layout.c (show_source_disasm_command, show_data)
5327 (show_source_or_disasm_and_command): Update.
5328
5329 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5330
5331 * NEWS (Other MI changes): New subsection.
5332 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5333 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5334 * arch-utils.c (default_get_pc_address_flags): New function.
5335 * arch-utils.h (default_get_pc_address_flags): New declaration.
5336 * gdbarch.sh: Add get_pc_address_flags.
5337 * gdbarch.c: Regenerate.
5338 * gdbarch.h: Likewise.
5339 * stack.c (print_pc): New function.
5340 (print_frame_info) (print_frame): Call print_pc.
5341
5342 2019-08-16 Tom de Vries <tdevries@suse.de>
5343
5344 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5345 print_objfile_section_info.
5346
5347 2019-08-15 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5350 calling update_cmdwin_start_line.
5351 * tui/tui-winsource.h (struct tui_source_window_base)
5352 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5353 <rerender>: Declare.
5354 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5355 Call rerender.
5356 (tui_source_window_base::set_new_height): Remove.
5357 (tui_source_window_base::rerender): Rename from
5358 do_make_visible_with_new_height.
5359 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5360 resize method.
5361 (tui_win_info::make_invisible_and_set_new_height)
5362 (tui_win_info::make_visible_with_new_height): Remove.
5363 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5364 Declare.
5365 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5366 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5367 do_make_visible_with_new_height>: Don't declare.
5368 <rerender>: Declare.
5369 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5370 set_new_height.
5371 (tui_data_window::do_make_visible_with_new_height): Remove.
5372 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5373 call tui_show_locator_content.
5374 (tui_gen_win_info::resize): Call rerender.
5375 (show_source_or_disasm_and_command): Don't call
5376 tui_show_locator_content.
5377 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5378 method.
5379 (struct tui_win_info) <rerender>: Declare.
5380 <set_new_height, make_invisible_and_set_new_height,
5381 make_visible_with_new_height>: Don't declare.
5382 * tui/tui-data.c (tui_win_list::rerender): New method.
5383 * tui/tui-command.h (struct tui_cmd_window)
5384 <do_make_visible_with_new_height>: Don't declare.
5385 * tui/tui-command.c
5386 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5387
5388 2019-08-15 Tom Tromey <tromey@adacore.com>
5389
5390 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5391 * ada-lang.c (ada_enum_name): Likewise.
5392
5393 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5394
5395 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5396 leading underscore.
5397 (GdbOutputErrorFile): Likewise.
5398 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5399 accordingly.
5400 (execute_unwinders): Rename to have a leading underscore.
5401 (auto_load_packages): Likewise.
5402 (global scope): Adjust call to auto_load_packages accordingly.
5403 (GdbSetPythonDirectory): Likewise.
5404 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5405 instead of execute_unwinders.
5406
5407 2019-08-15 Tom Tromey <tom@tromey.com>
5408
5409 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5410 (show_data): Don't change window visibility.
5411 (tui_gen_win_info::resize): Remove special case for command
5412 window. Use wresize, when available.
5413 (show_source_or_disasm_and_command): Don't change window
5414 visibility.
5415 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5416 <make_visible>: New method.
5417 * tui/tui-command.c (tui_cmd_window::resize): New method.
5418
5419 2019-08-15 Tom Tromey <tom@tromey.com>
5420
5421 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5422 (struct tui_source_windows): New.
5423 * tui/tui-winsource.c (tui_display_main): Update.
5424 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5425 (new_height_ok, parse_scrolling_args): Update.
5426 * tui/tui-layout.c (show_layout, show_data): Update.
5427 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5428 (tui_add_to_source_windows): Don't declare.
5429 * tui/tui-data.c (source_windows, tui_source_windows)
5430 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5431
5432 2019-08-15 Tom Tromey <tom@tromey.com>
5433
5434 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5435 Rename from reset.
5436 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5437 * tui/tui-layout.c (show_source_disasm_command, show_data):
5438 Update.
5439 (tui_gen_win_info::resize): Rename.
5440 (show_source_or_disasm_and_command): Update.
5441 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5442 reset.
5443
5444 2019-08-15 Tom Tromey <tom@tromey.com>
5445
5446 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5447 * tui/tui-interp.c (tui_interp::init): Don't call
5448 tui_initialize_static_data.
5449 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5450
5451 2019-08-15 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5454 examine tui_win_list.
5455
5456 2019-08-15 Tom Tromey <tom@tromey.com>
5457
5458 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5459 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5460 tui_clear_source_content.
5461 (tui_clear_source_content): Remove.
5462 (tui_source_window_base::do_erase_source_content): Hoist call to
5463 content.clear().
5464 * tui/tui-stack.c (tui_show_frame_info): Don't call
5465 tui_clear_source_content.
5466
5467 2019-08-15 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-winsource.h (struct tui_source_window_base)
5470 <do_erase_source_content>: New method.
5471 <erase_source_content>: New method.
5472 (tui_erase_source_content): Don't declare.
5473 * tui/tui-winsource.c (tui_clear_source_content): Update.
5474 (tui_source_window_base::do_erase_source_content): Rename from
5475 tui_erase_source_content.
5476 (tui_source_window_base::show_source_content): Update.
5477 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5478 * tui/tui-source.h (struct tui_source_window)
5479 <erase_source_content>: New method.
5480 * tui/tui-disasm.h (struct tui_disasm_window)
5481 <erase_source_content>: New method.
5482
5483 2019-08-15 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5486 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5487 constructor.
5488 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5489 * tui/tui-source.c (tui_set_source_content): Update.
5490 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5491
5492 2019-08-15 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5495 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5496 tui-source.c.
5497 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5498 Declare.
5499 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5500 method.
5501 (tui_source_window::maybe_update): Update.
5502
5503 2019-08-15 Tom Tromey <tom@tromey.com>
5504
5505 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5506 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5507 tui-disasm.c.
5508 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5509 Declare.
5510 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5511 method.
5512 (tui_disasm_window::maybe_update): Update.
5513
5514 2019-08-15 Tom Tromey <tom@tromey.com>
5515
5516 * tui/tui-winsource.h (struct tui_source_window_base)
5517 <maybe_update>: Declare.
5518 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5519 method.
5520 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5521 Declare.
5522 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5523 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5524 Declare.
5525 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5526
5527 2019-08-15 Tom Tromey <tom@tromey.com>
5528
5529 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5530
5531 2019-08-15 Tom Tromey <tom@tromey.com>
5532
5533 * tui/tui-wingeneral.c: Include tui-stack.h.
5534 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5535 (struct tui_locator_window): Move from tui-data.h.
5536 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5537 (tui_initialize_static_data): Move from tui-data.c.
5538 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5539 (struct tui_locator_window): Move to tui-stack.c.
5540 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5541 (tui_initialize_static_data): Move to tui-stack.c.
5542
5543 2019-08-15 Tom Tromey <tom@tromey.com>
5544
5545 * tui/tui-layout.c (show_source_disasm_command)
5546 (show_source_or_disasm_and_command): Use make_visible method, not
5547 tui_make_window.
5548 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5549 Remove.
5550
5551 2019-08-15 Tom Tromey <tom@tromey.com>
5552
5553 * tui/tui-wingeneral.h (tui_make_window): Update.
5554 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5555 parameter.
5556 (tui_gen_win_info::make_visible): Update.
5557 * tui/tui-regs.c (tui_data_window::display_registers_from):
5558 Update.
5559 * tui/tui-layout.c (show_source_disasm_command)
5560 (show_source_or_disasm_and_command): Update.
5561 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5562 (enum tui_box): Remove.
5563 (struct tui_win_info) <can_box>: New method.
5564 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5565 method.
5566
5567 2019-08-15 Tom de Vries <tdevries@suse.de>
5568
5569 * linux-nat-trad.c: Include gdbarch.h.
5570
5571 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5572
5573 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5574 register sizes.
5575
5576 2019-08-14 Tom Tromey <tromey@adacore.com>
5577
5578 * darwin-nat.c: Include gdbarch.h.
5579 * darwin-nat-info.c: Include gdbarch.h.
5580
5581 2019-08-13 Tom Tromey <tom@tromey.com>
5582
5583 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5584 Remove.
5585 * tui/tui-data.c (tui_initialize_static_data): Update.
5586
5587 2019-08-13 Tom Tromey <tom@tromey.com>
5588
5589 * tui/tui-winsource.h (struct tui_exec_info_window)
5590 <~tui_exec_info_window, maybe_allocate_content, get_content,
5591 m_content>: Remove.
5592 (struct tui_source_window_base) <set_exec_info_content,
5593 show_exec_info_content>: Don't declare.
5594 * tui/tui-winsource.c
5595 (tui_exec_info_window::maybe_allocate_content): Remove.
5596 (tui_source_window_base::update_exec_info): Rename from
5597 set_exec_info_content.
5598 (tui_source_window_base::show_exec_info_content)
5599 (tui_source_window_base::update_exec_info): Remove.
5600
5601 2019-08-13 Tom Tromey <tom@tromey.com>
5602
5603 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5604 declare.
5605 * tui/tui-winsource.c (tui_update_source_window_as_is)
5606 (tui_update_source_windows_with_addr, tui_erase_source_content):
5607 Update.
5608 (tui_clear_exec_info_content): Remove.
5609
5610 2019-08-13 Tom Tromey <tom@tromey.com>
5611
5612 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5613 declare.
5614 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5615 call tui_erase_exec_info_content.
5616 (tui_clear_exec_info_content): Rename from
5617 tui_erase_exec_info_content.
5618 (tui_clear_exec_info_content): Delete.
5619
5620 2019-08-13 Tom Tromey <tom@tromey.com>
5621
5622 * tui/tui-winsource.h (struct tui_source_window_base)
5623 <show_exec_info_content>: Declare.
5624 (tui_show_exec_info_content): Don't declare.
5625 * tui/tui-winsource.c
5626 (tui_source_window_base::show_exec_info_content): Rename from
5627 tui_show_exec_info_content.
5628 (tui_source_window_base::update_exec_info): Update.
5629
5630 2019-08-13 Tom Tromey <tom@tromey.com>
5631
5632 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5633 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5634 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5635 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5636 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5637 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5638 ... here.
5639
5640 2019-08-13 Tom Tromey <tom@tromey.com>
5641
5642 * tui/tui-winsource.h (struct tui_source_window_base)
5643 <update_exec_info>: Declare.
5644 (tui_update_exec_info): Don't declare.
5645 * tui/tui-winsource.c (tui_update_source_window_as_is)
5646 (tui_source_window_base::refresh_all)
5647 (tui_update_all_breakpoint_info): Update.
5648 (tui_source_window_base::update_exec_info): Rename from
5649 tui_update_exec_info.
5650 * tui/tui-stack.c (tui_show_frame_info): Update.
5651
5652 2019-08-13 Tom Tromey <tom@tromey.com>
5653
5654 * tui/tui-winsource.h (struct tui_source_window_base)
5655 <set_exec_info_content>: Declare.
5656 (tui_set_exec_info_content): Don't declare.
5657 * tui/tui-winsource.c
5658 (tui_source_window_base::set_exec_info_content): Rename from
5659 tui_set_exec_info_content.
5660 (tui_update_exec_info): Update.
5661
5662 2019-08-13 Tom Tromey <tom@tromey.com>
5663
5664 * tui/tui-winsource.h (struct tui_source_window_base)
5665 <show_source_content>: Declare.
5666 (tui_show_source_content): Don't declare.
5667 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5668 (tui_source_window_base::show_source_content): Rename from
5669 tui_show_source_content.
5670 (tui_source_window_base::refresh_all): Update.
5671 * tui/tui-layout.c (show_source_disasm_command)
5672 (show_source_or_disasm_and_command): Update.
5673
5674 2019-08-13 Tom Tromey <tom@tromey.com>
5675
5676 * tui/tui-winsource.c (tui_erase_source_content)
5677 (tui_show_source_content, tui_source_window_base::refresh_all):
5678 Update.
5679 * tui/tui-wingeneral.h
5680 (tui_check_and_display_highlight_if_needed): Don't declare.
5681 * tui/tui-wingeneral.c
5682 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5683 check_and_display_highlight_if_needed.
5684 * tui/tui-win.c (tui_rehighlight_all)
5685 (tui_win_info::make_visible_with_new_height): Update.
5686 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5687 (tui_data_window::erase_data_content)
5688 (tui_data_window::display_all_data): Update.
5689 * tui/tui-data.h (struct tui_win_info)
5690 <check_and_display_highlight_if_needed>: Declare.
5691
5692 2019-08-13 Tom Tromey <tom@tromey.com>
5693
5694 * tui/tui-win.c (tui_resize_all): Call
5695 tui_delete_invisible_windows.
5696 * tui/tui-layout.c (show_layout): Call
5697 tui_delete_invisible_windows.
5698 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5699 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5700
5701 2019-08-13 Tom Tromey <tom@tromey.com>
5702
5703 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5704 tui_add_win_to_layout.
5705
5706 2019-08-13 Tom Tromey <tom@tromey.com>
5707
5708 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5709 * tui/tui-layout.c (tui_default_win_height): Now static.
5710
5711 2019-08-13 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5714 single switch.
5715 (show_source_disasm_command, show_source_or_disasm_and_command):
5716 Don't check current layout.
5717
5718 2019-08-13 Tom Tromey <tom@tromey.com>
5719
5720 * tui/tui-wingeneral.c (make_all_visible): Remove.
5721 (tui_make_all_invisible): Simplify.
5722 * tui/tui-layout.c (tui_make_all_invisible): Move from
5723 tui-wingeneral.c; simplify.
5724 (show_layout): Hoist call to tui_make_all_invisible.
5725 (show_data): Don't call tui_make_all_invisible.
5726
5727 2019-08-13 Tom Tromey <tom@tromey.com>
5728
5729 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5730 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5731
5732 2019-08-13 Tom Tromey <tom@tromey.com>
5733
5734 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5735 tui-data.c.
5736 (show_source_disasm_command, show_data)
5737 (show_source_or_disasm_and_command): Don't use
5738 tui_set_current_layout_to.
5739 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5740 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5741 tui-layout.c.
5742 (tui_set_current_layout_to): Remove.
5743
5744 2019-08-13 Tom Tromey <tom@tromey.com>
5745
5746 * tui/tui-layout.c (tui_set_layout): Update.
5747 * tui/tui-data.h (struct tui_layout_def): Remove.
5748 (tui_layout_def): Don't declare.
5749 * tui/tui-data.c (layout_def): Remove.
5750 (tui_layout_def): Remove.
5751
5752 2019-08-13 Tom Tromey <tom@tromey.com>
5753
5754 * tui/tui-winsource.h (struct tui_source_window_base)
5755 <clear_detail>: No longer "override".
5756 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5757 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5758 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5759 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5760 Remove.
5761 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5762
5763 2019-08-13 Tom Tromey <tromey@adacore.com>
5764
5765 * tracepoint.c: Don't include readline.h or history.h.
5766
5767 2019-08-12 Tom Tromey <tom@tromey.com>
5768
5769 * configure: Rebuild.
5770 * configure.ac: Check for readline 7.
5771 * NEWS: Mention readline 7 requirement.
5772 * README: Update.
5773
5774 2019-08-12 Tom Tromey <tom@tromey.com>
5775
5776 * mingw-hdep.c (gdb_select): Remove readline hack.
5777
5778 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5779
5780 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5781 when the function fails.
5782
5783 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5784
5785 * s390-tdep.c (s390_type_align): New function.
5786 (s390_gdbarch_init): Set it as type_align gdbarch method.
5787
5788 2019-08-09 Tom de Vries <tdevries@suse.de>
5789
5790 PR gdb/24591
5791 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5792 pc_low with relocation offset.
5793
5794 2019-08-07 Tom Tromey <tromey@adacore.com>
5795
5796 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5797 (print_frame_args): Update.
5798 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5799 Update.
5800 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5801 * frame.h (struct frame_arg): Add initializers.
5802 <error>: Now a unique_xmalloc_ptr.
5803
5804 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5805
5806 * NEWS: Expand the Pointer Authentication entry.
5807 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5808 (aarch64_frame_unmask_lr): ... to this.
5809 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5810 Call aarch64_frame_unmask_lr.
5811 * frame.c (struct frame_info): Add "masked" variable.
5812 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5813 (fprint_frame): Check for masked pc.
5814 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5815 declarations.
5816 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5817 * stack.c (print_frame): Check for masked pc.
5818
5819 2019-08-06 Tom Tromey <tom@tromey.com>
5820
5821 * stabsread.c (patch_block_stabs, read_one_struct_field)
5822 (read_enum_type): Use obstack_strndup.
5823 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5824 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5825 * dwarf2read.c (guess_full_die_structure_name)
5826 (anonymous_struct_prefix): Use obstack_strndup.
5827 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5828 * c-exp.y (yylex): Use obstack_strndup.
5829 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5830 (write_var_or_type): Use obstack_strndup.
5831
5832 2019-08-06 Tom Tromey <tom@tromey.com>
5833
5834 * symfile.c (reread_symbols): Use obstack_strdup.
5835 * stabsread.c (read_type): Use obstack_strdup.
5836 * gdb_obstack.h (obstack_strdup): New overload.
5837 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5838 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5839 (dwarf2_canonicalize_name): Use obstack_strdup.
5840 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5841 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5842 Use obstack_strdup.
5843
5844 2019-08-06 Tom Tromey <tom@tromey.com>
5845
5846 * gdb_obstack.h (obstack_strdup): Define.
5847 * gdb_obstack.c (obstack_strdup): Don't define.
5848
5849 2019-08-06 Tom Tromey <tom@tromey.com>
5850
5851 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5852 obstack_strdup.
5853 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5854 obstack_strdup.
5855 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5856 * stabsread.c (common_block_start): Use obstack_strdup.
5857 * objfiles.c (set_objfile_main_name, objfile): Use
5858 obstack_strdup.
5859 * namespace.c (add_using_directive): Use obstack_strdup.
5860 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5861 * jit.c (finalize_symtab): Use obstack_strdup.
5862 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5863 (guess_partial_die_structure_name, partial_die_info::fixup)
5864 (dwarf2_name): Use obstack_strdup.
5865 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5866 obstack_strdup.
5867 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5868 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5869 obstack_strdup.
5870 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5871
5872 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5873
5874 * unittests/help-doc-selftests.c: New file.
5875 * Makefile.in: Add the new file.
5876
5877 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5878
5879 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5880 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5881 the full first line, except when FOR_VALUE_PREFIX. In this case,
5882 the trailing '.' is not output, and the first character is uppercased.
5883 (print_help_for_command): Update call to print_doc_line.
5884 (print_doc_of_command): Likewise.
5885 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5886 * cli/cli-option.c (append_indented_doc): Do not append newline.
5887 (build_help_option): Append newline after first appended_indented_doc
5888 only if a second call is done.
5889 (build_help): Append 2 new lines before each option, except the first
5890 one.
5891 * compile/compile.c (_initialize_compile): Add new lines after
5892 %OPTIONS%, when not at the end of the help.
5893 Change help doc or code
5894 producing the help doc to respect the invariants.
5895 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5896 Also removed the new line after 'Options:', as all other commands
5897 do not put an empty line between 'Options:' and the first option.
5898 * printcmd.c (_initialize_printcmd): Likewise.
5899 * stack.c (_initialize_stack): Likewise.
5900 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5901 incorrectly telling COMMAND is optional.
5902 * ada-lang.c (_initialize_ada_language): Change help doc or code
5903 producing the help doc to respect the invariants.
5904 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5905 * breakpoint.c (_initialize_breakpoint): Likewise.
5906 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5907 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5908 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5909 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5910 _initialize_cli_style): Likewise.
5911 * corelow.c (core_target_info): Likewise.
5912 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5913 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5914 * filesystem.c (_initialize_filesystem): Likewise.
5915 * frame.c (_initialize_frame): Likewise.
5916 * gnu-nat.c (add_task_commands): Likewise.
5917 * infcall.c (_initialize_infcall): Likewise.
5918 * infcmd.c (_initialize_infcmd): Likewise.
5919 * interps.c (_initialize_interpreter): Likewise.
5920 * language.c (_initialize_language): Likewise.
5921 * linux-fork.c (_initialize_linux_fork): Likewise.
5922 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5923 * maint.c (_initialize_maint_cmds): Likewise.
5924 * memattr.c (_initialize_mem): Likewise.
5925 * printcmd.c (_initialize_printcmd): Likewise.
5926 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5927 _RegEx): Likewise.
5928 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5929 * record-btrace.c (_initialize_record_btrace): Likewise.
5930 * record-full.c (_initialize_record_full): Likewise.
5931 * record.c (_initialize_record): Likewise.
5932 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5933 * regcache.c (_initialize_regcache): Likewise.
5934 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5935 _initialize_remote): Likewise.
5936 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5937 * serial.c (_initialize_serial): Likewise.
5938 * skip.c (_initialize_step_skip): Likewise.
5939 * source.c (_initialize_source): Likewise.
5940 * stack.c (_initialize_stack): Likewise.
5941 * symfile.c (_initialize_symfile): Likewise.
5942 * symtab.c (_initialize_symtab): Likewise.
5943 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5944 * top.c (init_main): Likewise.
5945 * tracefile-tfile.c (tfile_target_info): Likewise.
5946 * tracepoint.c (_initialize_tracepoint): Likewise.
5947 * tui/tui-win.c (_initialize_tui_win): Likewise.
5948 * utils.c (add_internal_problem_command): Likewise.
5949 * valprint.c (value_print_option_defs): Likewise.
5950
5951 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5952
5953 PR build/24886
5954 * configure.ac: Drop enable-libmcheck support.
5955 * configure, config.in: Rebuild.
5956 * libmcheck.m4: Remove.
5957 * acinclude.m4: Don't include it.
5958 * Makefile.in: Don't distribute it.
5959 * top.c (print_gdb_configuration): Don't mention it.
5960
5961 2019-08-06 Tom Tromey <tom@tromey.com>
5962
5963 * utils.c (set_output_style): Sometimes pass stream to
5964 emit_style_escape.
5965 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5966 * record-btrace.c (btrace_insn_history): Update.
5967 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5968 method.
5969 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5970 Update initializers.
5971 <m_uiout>: New field.
5972 <m_di>: Move lower.
5973 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5974 Remove "uiout" parameter.
5975 (dump_insns): Update.
5976 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5977 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5978
5979 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5980
5981 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5982 (error_in_psymtab_expansion): Likewise.
5983 (lookup_symbol_via_quick_fns): Likewise.
5984 (basic_lookup_transparent_type_quick): Likewise.
5985 (basic_lookup_transparent_type_1): Likewise.
5986
5987 2019-08-06 Tom Tromey <tromey@adacore.com>
5988
5989 * source.c (last_source_error): Now bool.
5990 (print_source_lines_base): Make "noprint" bool. Only open
5991 source file when last_source_visited changes.
5992
5993 2019-08-06 Tom Tromey <tromey@adacore.com>
5994
5995 * annotate.c (annotate_source_line): Use g_source_cache.
5996 * source-cache.c (source_cache::get_plain_source_lines): Change
5997 parameters. Populate m_offset_cache.
5998 (source_cache::ensure): New method.
5999 (source_cache::get_line_charpos): New method.
6000 (extract_lines): Move lower. Change parameters.
6001 (source_cache::get_source_lines): Move lower.
6002 * source-cache.h (class source_cache): Update comment.
6003 <get_line_charpos>: New method.
6004 <get_source_lines>: Update comment.
6005 <clear>: Clear m_offset_cache.
6006 <get_plain_source_lines>: Change parameters.
6007 <ensure>: New method
6008 <m_offset_cache>: New member.
6009 * source.c (forget_cached_source_info_for_objfile): Update.
6010 (info_source_command): Use g_source_cache.
6011 (find_source_lines, open_source_file_with_line_charpos): Remove.
6012 (print_source_lines_base, search_command_helper): Use g_source_cache.
6013 * source.h (open_source_file_with_line_charpos): Don't declare.
6014 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6015 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6016 Use g_source_cache.
6017
6018 2019-08-06 Tom Tromey <tromey@adacore.com>
6019
6020 * source-cache.c (source_cache::get_plain_source_lines):
6021 Remove "first_line" and "last_line" parameters.
6022 (source_cache::get_source_lines): Cache plain text.
6023 * source-cache.h (class source_cache)
6024 <get_plain_source_lines>: Update.
6025
6026 2019-08-06 Tom Tromey <tromey@adacore.com>
6027
6028 * source-cache.c (extract_lines): No longer a method.
6029 Changed type of parameter. Include final newline.
6030 (selftests::extract_lines_test): New function.
6031 (_initialize_source_cache): Likewise.
6032 * source-cache.h (class source_cache)
6033 <extract_lines>: Don't declare.
6034
6035 2019-08-06 Tom Tromey <tromey@adacore.com>
6036
6037 * breakpoint.c (init_breakpoint_sal): Update.
6038 (breakpoint): Update.
6039 * breakpoint.h (struct breakpoint) <filter>: Now a
6040 unique_xmalloc_ptr.
6041
6042 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6043
6044 * NEWS: Mention dictionary access on blocks.
6045 * python/py-block.c (blpy_getitem): New function.
6046 (block_object_as_mapping): New struct.
6047 (block_object_type): Use new struct for tp_as_mapping field.
6048
6049 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6050
6051 * objfiles.h (objfile): Add a comment describing partial symbols.
6052
6053 2019-08-05 Tom Tromey <tromey@adacore.com>
6054
6055 * compile/compile.c (_initialize_compile): Use _(), not N_().
6056 * thread.c (_initialize_thread): Use _(), not N_().
6057 * stack.c (_initialize_stack): Use _(), not N_().
6058 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6059
6060 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6061
6062 * dwarf2read.c (struct dw2_symtab_iterator):
6063 <want_specific_block>: Remove.
6064 <block_index>: Change type to gdb::optional.
6065 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6066 change type of BLOCK_INDEX parameter to gdb::optional.
6067 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6068 (dw2_lookup_symbol): Don't pass argument for
6069 WANT_SPECIFIC_BLOCK.
6070 (dw2_expand_symtabs_for_function): Don't pass argument for
6071 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6072 (class dw2_debug_names_iterator)
6073 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6074 parameter, change BLOCK_INDEX type to gdb::optional.
6075 <m_want_specific_block>: Remove.
6076 <m_block_index>: Change type to gdb::optional.
6077 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6078 gdb::optional. Re-write in function of gdb::optional.
6079 (dw2_debug_names_lookup_symbol): Don't pass argument for
6080 WANT_SPECIFIC_BLOCK.
6081 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6082 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6083 BLOCK_INDEX.
6084
6085 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6086
6087 * NEWS: Mention changes to "info sources" command.
6088
6089 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6090
6091 * symtab.c (filename_partial_match_opts): New struct type.
6092 (struct output_source_filename_data): New members
6093 regexp, c_regexp, partial_match.
6094 (output_source_filename): Use new members to decide to print file.
6095 (info_sources_option_defs): New variable.
6096 (make_info_sources_options_def_group, print_info_sources_header,
6097 info_sources_command_completer):
6098 New functions.
6099 (info_sources_command): Read new optional arguments.
6100 (_initialize_symtab): Update info sources help.
6101
6102 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6103
6104 * ada-lang.c (exception_support_info_v0): Renamed from...
6105 (default_exception_support_info): ... this. Create new
6106 definition for v1.
6107 (ada_has_this_exception_support): Look up catch_handlers_sym.
6108 (ada_exception_support_info_sniffer): Try v0 after default.
6109
6110 2019-08-01 Tom Tromey <tromey@adacore.com>
6111
6112 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6113 gdbarch.h.
6114
6115 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6116
6117 * s12z-tdep.c: Fix include path for s12z-opc.h.
6118
6119 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6120
6121 * NEWS: Require GNU make 3.82.
6122
6123 2019-07-16 Tom Tromey <tom@tromey.com>
6124
6125 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6126 declare.
6127
6128 2019-07-30 Tom Tromey <tromey@adacore.com>
6129
6130 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6131
6132 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6133
6134 * printcmd.c (print_address_symbolic): Print negative offsets.
6135 (build_address_symbolic): Force signed arithmetic when computing
6136 offset.
6137
6138 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6139
6140 PR/24474: Add a function to lookup static variables.
6141 * NEWS: Mention this new function.
6142 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6143 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6144 * python/python.c (python_GdbMethods): Add new function.
6145
6146 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6147
6148 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6149 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6150 (objfpy_lookup_static_symbol): New function.
6151 (objfile_object_methods): Add new functions.
6152
6153 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6154
6155 * NEWS: Mention 'set|show print frame-info'. Mention new
6156 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6157 backtrace argument. Mention that python frame filtering code
6158 is now consistent with what 'backtrace' command prints.
6159
6160 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6161
6162 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6163 comments.
6164 (print_frame_info_auto, print_frame_info_source_line,
6165 print_frame_info_location, print_frame_info_source_and_location,
6166 print_frame_info_location_and_address, print_frame_info_short_location):
6167 New declarations.
6168 (struct frame_print_options): New member print_frame_info.
6169 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6170 * stack.h (get_user_print_what_frame_info): New declaration.
6171 (frame_show_address): New declaration.
6172 * stack.c (print_frame_arguments_choices): New value 'presence'.
6173 (print_frame_info_auto, print_frame_info_source_line,
6174 print_frame_info_location, print_frame_info_source_and_location,
6175 print_frame_info_location_and_address, print_frame_info_short_location,
6176 print_frame_info_choices, print_frame_info_print_what): New definitions.
6177 (print_frame_args): Only print dots for args if print frame-arguments
6178 is 'presence'.
6179 (frame_print_option_defs): New element for "frame-info".
6180 (get_user_print_what_frame_info): New function.
6181 (frame_show_address): Make non static. Move comment to stack.h.
6182 (print_frame_info_to_print_what): New function.
6183 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6184 to decide what to print.
6185 (backtrace_command_1): Handle the new print_frame_arguments_presence
6186 value.
6187 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6188 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6189 (py_print_frame): In non-mi mode, use LOCATION as default for
6190 print_what, similarly to frame information printed directly by
6191 backtrace command. Handle frame-info user option in non MI mode.
6192
6193 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6194
6195 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6196 Add case for debugging 32-bit target on 64-bit host. Revise
6197 comment.
6198
6199 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6200
6201 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6202 instead of find_function_entry_range_from_pc.
6203
6204 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6205
6206 * stack.c (find_frame_funname): Remove code which preferred
6207 minsym over symtab sym in "certain pathological cases".
6208
6209 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6210 parameter. Change type of "do_demangle" to bool.
6211 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6212 Pass suitable "prefer_sym_over_minsym" flag to
6213 build_address_symbolic(). Don't output "+" for negative offsets.
6214 * printcmd.c (print_address_symbolic): Update invocation of
6215 build_address_symbolic to include a "prefer_sym_over_minsym"
6216 flag.
6217 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6218 Restrict cases in which use of minimal symbol is preferred to that
6219 of a found symbol. Update comments.
6220
6221 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6222 for entry pc when entry pc is out of range for that FDE.
6223
6224 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6225
6226 PR gdb/24839:
6227 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6228 type.
6229
6230 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6231
6232 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6233 this function's Python signature.
6234
6235
6236 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6237
6238 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6239 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6240 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6241 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6242 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6243
6244
6245 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6246
6247 * h8300-tdep.c (h8300_register_name_common): New.
6248 h8300_register_name): Use h8300_register_name_common.
6249 (h8300s_register_name): Likewise.
6250 (h8300sx_register_name): Likewise.
6251 (h8300h_register_nam): New.
6252 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6253
6254
6255 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6256
6257 * arm-tdep.c (arm_skip_cmse_entry): New function.
6258 (arm_is_sgstubs_section): New function.
6259 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6260
6261 2019-07-22 Tom Tromey <tom@tromey.com>
6262
6263 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6264 Don't self-assign.
6265
6266 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6267
6268 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6269 type_print.
6270
6271 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6272
6273 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6274 so that GDB doesn't match any msymbols when searching in the
6275 TYPES_DOMAIN.
6276 (print_symbol_info): Print using typedef_print or type_print based
6277 on the type of the symbol. Add updated FIXME comment moved from...
6278 (_initialize_symtab): ... move and update FIXME comment to above.
6279
6280 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6281
6282 * NEWS: Mention adding -q option to "info types".
6283 * symtab.c (struct info_types_options): New struct.
6284 (info_types_options_defs): New variable.
6285 (make_info_types_options_def_group): New function.
6286 (info_types_command): Use gdb::option framework to parse options.
6287 (info_types_command_completer): New function.
6288 (_initialize_symtab): Extend the help text on "info types" and
6289 register command completer.
6290
6291 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6292
6293 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6294 (lookup_symbol_in_objfile): Change int to block_enum and add a
6295 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6296
6297 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6298
6299 * MAINTAINERS (Write After Approval): Add self.
6300
6301 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6302
6303 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6304 instruction to the dummy code region.
6305
6306 2019-07-19 Tom Tromey <tromey@adacore.com>
6307
6308 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6309 (ARGSUSED, PARAMS, __func__): Remove rules.
6310
6311 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6312
6313 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6314 * features/arm/arm-with-iwmmxt.c: Remove.
6315 * features/arm/arm-with-iwmmxt.xml: Remove.
6316 * features/arm/arm-with-m-fpa-layout.c: Remove.
6317 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6318 * features/arm/arm-with-m-vfp-d16.c: Remove.
6319 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6320 * features/arm/arm-with-m.c: Remove.
6321 * features/arm/arm-with-m.xml: Remove.
6322 * features/arm/arm-with-neon.c: Remove.
6323 * features/arm/arm-with-neon.xml: Remove.
6324 * features/arm/arm-with-vfpv2.c: Remove.
6325 * features/arm/arm-with-vfpv2.xml: Remove.
6326 * features/arm/arm-with-vfpv3.c: Remove.
6327 * features/arm/arm-with-vfpv3.xml: Remove.
6328
6329 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6330
6331 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6332
6333 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6334
6335 * arch/aarch32.c (aarch32_create_target_description): Create
6336 target descriptions using features.
6337 * arch/arm.c (arm_create_target_description)
6338 (arm_create_mprofile_target_description): Likewise.
6339 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6340
6341 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6342
6343 * Makefile.in: Add new files.
6344 * aarch32-tdep.c: New file.
6345 * aarch32-tdep.h: New file.
6346 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6347 Call aarch32_read_description.
6348 * arch/aarch32.c: New file.
6349 * arch/aarch32.h: New file.
6350 * arch/arm.c (arm_create_target_description)
6351 (arm_create_mprofile_target_description): New function.
6352 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6353 (arm_create_target_description)
6354 (arm_create_mprofile_target_description): New declaration.
6355 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6356 read_description functions.
6357 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6358 Likewise.
6359 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6360 * arm-tdep.c (tdesc_arm_list): New variable.
6361 (arm_register_g_packet_guesses): Call create description functions.
6362 (arm_read_description) (arm_read_mprofile_description): New
6363 function.
6364 * arm-tdep.h (arm_read_description)
6365 (arm_read_mprofile_description): Add declaration.
6366 * configure.tgt: Add new files.
6367
6368 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6369
6370 * top.c (new_ui_command): Open specified terminal just once.
6371
6372 2019-07-18 Tom Tromey <tromey@adacore.com>
6373
6374 * symtab.c (main_name): Constify return type.
6375 * symfile.c (set_initial_language): Update.
6376 * symtab.h (main_name): Constify return type.
6377
6378 2019-07-17 Tom Tromey <tom@tromey.com>
6379
6380 * tui/tui-winsource.c (tui_update_source_window)
6381 (tui_update_source_window_as_is)
6382 (tui_update_source_windows_with_line): Remove return.
6383 * tui/tui-disasm.c (tui_show_disassem)
6384 (tui_show_disassem_and_update_source): Remove return.
6385 * tui/tui.c (tui_reset): Remove return.
6386 * tui/tui-wingeneral.c
6387 (tui_check_and_display_highlight_if_needed): Remove return.
6388
6389 2019-07-17 Tom Tromey <tom@tromey.com>
6390
6391 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6392
6393 2019-07-17 Tom Tromey <tom@tromey.com>
6394
6395 * tui/tui-winsource.h (struct tui_exec_info_window)
6396 (struct tui_source_window_base): Move from tui-data.h.
6397 * tui/tui-winsource.c: Move many method definitions from
6398 elsewhere. Remove "structuring" comments.
6399 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6400 (tui_source_window_base::refresh_window): Move to
6401 tui-winsource.c.
6402 * tui/tui-win.c (tui_source_window_base::refresh_all)
6403 (tui_source_window_base::update_tab_width)
6404 (tui_source_window_base::set_new_height)
6405 (tui_source_window_base::do_make_visible_with_new_height): Move to
6406 tui-winsource.c.
6407 * tui/tui-source.h: Update.
6408 * tui/tui-source.c (tui_source_window_base::reset): Move to
6409 tui-winsource.c.
6410 * tui/tui-disasm.h: Update.
6411 * tui/tui-data.h (struct tui_exec_info_window): Move to
6412 tui-winsource.h.
6413 (struct tui_source_window_base): Likewise.
6414 * tui/tui-data.c (tui_source_window_base::clear_detail)
6415 (tui_source_window_base, ~tui_source_window_base): Move to
6416 tui-winsource.c.
6417
6418 2019-07-17 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-win.c (tui_resize_all)
6421 (tui_source_window_base::update_tab_width)
6422 (tui_adjust_win_heights): Update.
6423 (tui_win_info::make_invisible_and_set_new_height): Rename from
6424 make_invisible_and_set_new_height.
6425 * tui/tui-data.h (struct tui_win_info)
6426 <make_invisible_and_set_new_height>: New method.
6427
6428 2019-07-17 Tom Tromey <tom@tromey.com>
6429
6430 * tui/tui.c: Update.
6431 * tui/tui-source.h (struct tui_source_window): Move from
6432 tui-data.h.
6433 * tui/tui-layout.c: Update.
6434 * tui/tui-disasm.c: Update.
6435 * tui/tui-data.h (struct tui_source_window): Move to
6436 tui-source.h.
6437
6438 2019-07-17 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6441 tui-data.h.
6442 * tui/tui-data.h (struct tui_disasm_window): Move to
6443 tui-disasm.h.
6444
6445 2019-07-17 Tom Tromey <tom@tromey.com>
6446
6447 * tui/tui-regs.h (struct tui_data_item_window): Move from
6448 tui-data.h.
6449 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6450 * tui/tui-data.h (struct tui_data_item_window): Move to
6451 tui-regs.h.
6452 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6453
6454 2019-07-17 Tom Tromey <tom@tromey.com>
6455
6456 * tui/tui.c: Update.
6457 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6458 (tui_cmd_window::max_height): Move to tui-command.c.
6459 * tui/tui-layout.c: Update.
6460 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6461 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6462 tui-command.c.
6463 * tui/tui-command.h (struct tui_cmd_window): Move from
6464 tui-data.h.
6465 * tui/tui-command.c: Remove "structuring" comments.
6466 (tui_cmd_window::clear_detail)
6467 (tui_cmd_window::do_make_visible_with_new_height)
6468 (tui_cmd_window::max_height): Move from elsewhere.
6469
6470 2019-07-17 Tom Tromey <tom@tromey.com>
6471
6472 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6473 Now static.
6474 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6475 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6476
6477 2019-07-17 Tom Tromey <tom@tromey.com>
6478
6479 * tui/tui.c: Update.
6480 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6481 tui-regs.c.
6482 * tui/tui-windata.h: Remove file.
6483 * tui/tui-windata.c: Remove file.
6484 * tui/tui-win.c (tui_data_window::set_new_height)
6485 (tui_data_window::do_make_visible_with_new_height): Move to
6486 tui-regs.c.
6487 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6488 * tui/tui-regs.c: Remove "structuring" comments.
6489 (tui_data_window::first_data_item_displayed)
6490 (tui_data_window::delete_data_content_windows)
6491 (tui_data_window::erase_data_content)
6492 (tui_data_window::display_all_data)
6493 (tui_data_window::refresh_all)
6494 (tui_data_window::do_scroll_vertical)
6495 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6496 (tui_data_window::do_make_visible_with_new_height)
6497 (tui_data_window::refresh_window): Move from elsewhere.
6498 (_initialize_tui_regs): Move to end of file.
6499 * tui/tui-layout.c: Update.
6500 * tui/tui-hooks.c: Update.
6501 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6502 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6503 tui-regs.c.
6504 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6505
6506 2019-07-17 Tom Tromey <tom@tromey.com>
6507
6508 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6509 seen.
6510
6511 2019-07-17 Tom Tromey <tom@tromey.com>
6512
6513 * tui/tui-win.c (tui_source_window_base::set_new_height)
6514 (tui_source_window_base::do_make_visible_with_new_height): Use
6515 m_has_locator field directly.
6516 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6517 method.
6518 (struct tui_source_window_base) <has_locator>: Likewise.
6519
6520 2019-07-17 Tom Tromey <tom@tromey.com>
6521
6522 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6523 Don't declare.
6524 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6525 Remove.
6526 * tui/tui-win.c (tui_source_window_base::set_new_height)
6527 (tui_source_window_base::set_new_height)
6528 (make_invisible_and_set_new_height)
6529 (tui_source_window_base::do_make_visible_with_new_height)
6530 (tui_source_window_base::do_make_visible_with_new_height):
6531 Update.
6532 * tui/tui-layout.c (show_source_disasm_command, show_data)
6533 (show_source_or_disasm_and_command): Update.
6534 * tui/tui-layout.c (show_layout): Update.
6535
6536 2019-07-17 Tom Tromey <tom@tromey.com>
6537
6538 * tui/tui-layout.c (make_data_window): Remove.
6539 (show_data): Unify creation and re-initialization cases.
6540
6541 2019-07-17 Tom Tromey <tom@tromey.com>
6542
6543 * tui/tui-layout.c (make_source_window, make_disasm_window):
6544 Remove.
6545 (show_data): Unify creation and re-initialization cases.
6546
6547 2019-07-17 Tom Tromey <tom@tromey.com>
6548
6549 * tui/tui-layout.c (make_command_window): Remove.
6550 (show_source_disasm_command, show_source_or_disasm_and_command):
6551 Unify creation and re-initialization cases.
6552
6553 2019-07-17 Tom Tromey <tom@tromey.com>
6554
6555 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6556 creation and re-initialization cases.
6557
6558 2019-07-17 Tom Tromey <tom@tromey.com>
6559
6560 * tui/tui-regs.c (tui_get_register): Return void.
6561
6562 2019-07-17 Tom Tromey <tom@tromey.com>
6563
6564 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6565 Simplify.
6566
6567 2019-07-17 Tom Tromey <tom@tromey.com>
6568
6569 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6570 resetting.
6571
6572 2019-07-17 Tom Tromey <tom@tromey.com>
6573
6574 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6575 * tui/tui-regs.c (tui_reg_layout): New function.
6576 (tui_show_registers, tui_reg_command): Use it.
6577 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6578 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6579 parameters.
6580 (tui_layout_command): Remove.
6581
6582 2019-07-17 Tom Tromey <tom@tromey.com>
6583
6584 * tui/tui-layout.h (tui/tui-layout): Return void.
6585 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6586
6587 2019-07-17 Tom Tromey <tom@tromey.com>
6588
6589 * tui/tui-layout.c (show_source_disasm_command, show_data):
6590 Update.
6591 (reset_locator): Remove.
6592 (show_source_or_disasm_and_command): Update.
6593
6594 2019-07-17 Tom Tromey <tom@tromey.com>
6595
6596 * tui/tui-source.c (tui_source_window_base::reset): Remove
6597 win_type parameter.
6598 * tui/tui-layout.c (make_command_window, make_source_window)
6599 (make_disasm_window, make_data_window)
6600 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6601 (reset_locator, show_source_or_disasm_and_command): Update.
6602 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6603 win_type parameter.
6604 (struct tui_source_window_base) <reset>: Likewise.
6605
6606 2019-07-17 Tom Tromey <tom@tromey.com>
6607
6608 * tui/tui-layout.c (show_source_disasm_command): Use
6609 reset_locator.
6610 (reset_locator): New function.
6611 (init_and_make_win): Remove.
6612 (show_source_or_disasm_and_command): Use reset_locator.
6613
6614 2019-07-17 Tom Tromey <tom@tromey.com>
6615
6616 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6617 condition.
6618 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6619 Remove condition.
6620 * tui/tui-source.c (tui_source_window_base::reset): New method.
6621 * tui/tui-layout.c (make_command_window): Don't call
6622 init_and_make_win.
6623 (make_source_window, make_disasm_window): Don't call
6624 make_source_or_disasm_window.
6625 (make_data_window): Don't call init_and_make_win. Change calling
6626 convention.
6627 (show_source_disasm_command, show_data): Simplify.
6628 (make_source_or_disasm_window): Remove.
6629 (show_source_or_disasm_and_command): Simplify.
6630 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6631 (struct tui_source_window_base) <reset>: Likewise.
6632 <execution_info>: Remove initializer.
6633 * tui/tui-data.c (tui_source_window_base): Initialize
6634 execution_info.
6635
6636 2019-07-17 Tom Tromey <tom@tromey.com>
6637
6638 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6639 variable.
6640
6641 2019-07-17 Tom Tromey <tom@tromey.com>
6642
6643 * tui/tui.c (tui_rl_other_window): Update.
6644 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6645 superclass method first. Always iterate over regs_content.
6646 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6647 method.
6648 * tui/tui-win.c (tui_set_focus_command): Update.
6649
6650 2019-07-17 Tom Tromey <tom@tromey.com>
6651
6652 * tui/tui-win.c (tui_set_focus_command): Rename from
6653 tui_set_focus. Call tui_enable.
6654 (tui_set_focus_command): Remove.
6655
6656 2019-07-17 Tom Tromey <tom@tromey.com>
6657
6658 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6659 refresh_window.
6660 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6661 touchwin.
6662 (tui_data_window::refresh_window): Call refresh_window on data
6663 items. Always call superclass refresh_window.
6664 (tui_win_info::refresh): Remove.
6665 (tui_source_window_base::refresh_window): Update.
6666 (tui_refresh_all): Update.
6667 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6668 refresh_window.
6669 (show_source_or_disasm_and_command): Likewise.
6670 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6671 (struct tui_source_window_base) <refresh>: Likewise.
6672
6673 2019-07-17 Tom Tromey <tom@tromey.com>
6674
6675 * tui/tui-winsource.c (tui_clear_source_content)
6676 (tui_show_source_content): Update.
6677 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6678 whether content is empty.
6679 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6680 Remove.
6681
6682 2019-07-17 Tom Tromey <tom@tromey.com>
6683
6684 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6685 window's contents.
6686 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6687 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6688
6689 2019-07-17 Tom Tromey <tom@tromey.com>
6690
6691 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6692 (struct tui_data_item_window): Update.
6693
6694 2019-07-17 Tom Tromey <tom@tromey.com>
6695
6696 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6697 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6698 defines.
6699
6700 2019-07-17 Tom Tromey <tom@tromey.com>
6701
6702 * tui/tui-winsource.h (tui_erase_source_content)
6703 (tui_clear_source_content): Remove "display_prompt" parameter.
6704 * tui/tui-winsource.c (tui_update_source_window_as_is)
6705 (tui_update_source_windows_with_addr): Update.
6706 (tui_clear_source_content): Remove "display_prompt" parameter.
6707 (tui_erase_source_content): Likewise. Simplify.
6708 (tui_show_source_content): Update.
6709 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6710 * tui/tui-stack.c (tui_show_frame_info): Update.
6711 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6712 Remove defines.
6713
6714 2019-07-17 Tom Tromey <tom@tromey.com>
6715
6716 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6717 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6718 parameter.
6719 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6720 parameter.
6721
6722 2019-07-17 Tom Tromey <tom@tromey.com>
6723
6724 * tui/tui-winsource.c (tui_clear_source_content)
6725 (tui_show_source_content, tui_show_exec_info_content)
6726 (tui_clear_exec_info_content): Update.
6727 * tui/tui-stack.c (tui_show_locator_content): Update.
6728 (tui_show_frame_info): Update.
6729 * tui/tui-source.h (tui_source_window): Don't declare.
6730 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6731 from tui_source_is_displayed.
6732 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6733 Remove field.
6734 (struct tui_source_window_base) <content_in_use>: New field. Now
6735 bool.
6736 (struct tui_source_window) <showing_source_p>: New method.
6737 (TUI_SRC_WIN): Change cast.
6738 * tui/tui-data.c (tui_initialize_static_data): Update.
6739
6740 2019-07-17 Tom Tromey <tom@tromey.com>
6741
6742 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6743 location_matches_p.
6744 * tui/tui-source.c (tui_source_window::location_matches_p): New
6745 method.
6746 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6747 method.
6748 * tui/tui-data.h (struct tui_source_window_base)
6749 <location_matches_p>: New method.
6750 (struct tui_source_window, struct tui_disasm_window)
6751 <location_matches_p>: Likewise.
6752
6753 2019-07-17 Tom Tromey <tom@tromey.com>
6754
6755 * tui/tui-win.c (tui_set_win_height_command): Rename from
6756 tui_set_win_height.
6757 (tui_set_win_height_command): Remove.
6758
6759 2019-07-17 Tom Tromey <tom@tromey.com>
6760
6761 * tui/tui-source.c (tui_source_window): New constructor. Add
6762 observer.
6763 (~tui_source_window): New destructor.
6764 (tui_source_window::style_changed): New method.
6765 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6766 (tui_attach_detach_observers): Update.
6767 * tui/tui-data.h (struct tui_source_window): Make constructor not
6768 inline. Add destructor.
6769 (struct tui_source_window) <style_changed>: New method.
6770 <m_observable>: New member.
6771
6772 2019-07-17 Tom Tromey <tom@tromey.com>
6773
6774 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6775 * tui/tui-win.c (tui_resize_all): Fix typo.
6776
6777 2019-07-17 Tom Tromey <tom@tromey.com>
6778
6779 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6780 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6781 (tui_refresh_all): Remove "list" parameter. Use foreach.
6782 * tui/tui-win.c (window_name_completer): Use foreach.
6783 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6784 (update_tab_width): Likewise.
6785 * tui/tui-layout.c (show_layout): Update.
6786 * tui/tui-data.h (class tui_window_iterator): New.
6787 (struct all_tui_windows): New.
6788 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6789
6790 2019-07-17 Tom Tromey <tom@tromey.com>
6791
6792 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6793 parameter. Don't reference globals.
6794 (tui_reg_command): Update.
6795
6796 2019-07-17 Tom Tromey <tom@tromey.com>
6797
6798 * tui/tui-regs.c (tui_show_registers): Simplify.
6799
6800 2019-07-17 Tom Tromey <tom@tromey.com>
6801
6802 * tui/tui-regs.c (tui_show_registers): Update.
6803 (tui_show_register_group): Add win_info parameter.
6804
6805 2019-07-17 Tom Tromey <tom@tromey.com>
6806
6807 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6808 Rename from tui_display_reg_element_at_line.
6809 (tui_data_window::display_registers_from_line): Update.
6810 * tui/tui-data.h (struct tui_data_window)
6811 <display_reg_element_at_line>: New method.
6812
6813 2019-07-17 Tom Tromey <tom@tromey.com>
6814
6815 * tui/tui-regs.h (tui_display_registers_from)
6816 (tui_display_registers_from_line): Don't declare.
6817 * tui/tui-windata.c (tui_data_window::display_all_data)
6818 (tui_data_window::refresh_all)
6819 (tui_data_window::do_scroll_vertical): Update.
6820 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6821 from tui_display_registers_from.
6822 (tui_display_reg_element_at_line): Update.
6823 (tui_data_window::display_registers_from_line): Rename from
6824 tui_display_registers_from_line.
6825 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6826 display_registers_from_line>: New methods.
6827
6828 2019-07-17 Tom Tromey <tom@tromey.com>
6829
6830 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6831 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6832 from tui_erase_data_content.
6833 (tui_data_window::display_all_data)
6834 (tui_data_window::refresh_all)
6835 (tui_data_window::do_scroll_vertical): Update.
6836 * tui/tui-regs.c (tui_show_registers): Update.
6837 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6838 New method.
6839
6840 2019-07-17 Tom Tromey <tom@tromey.com>
6841
6842 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6843 declare.
6844 * tui/tui-windata.c
6845 (tui_data_window::delete_data_content_windows): Rename from
6846 tui_delete_data_content_windows.
6847 (tui_data_window::display_all_data)
6848 (tui_data_window::do_scroll_vertical): Update.
6849 * tui/tui-data.h (struct tui_data_window)
6850 <delete_data_content_windows>: New method.
6851
6852 2019-07-17 Tom Tromey <tom@tromey.com>
6853
6854 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6855 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6856
6857 2019-07-17 Tom Tromey <tom@tromey.com>
6858
6859 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6860 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6861 from tui_display_all_data.
6862 * tui/tui-win.c
6863 (tui_data_window::do_make_visible_with_new_height): Update.
6864 * tui/tui-regs.c (tui_show_registers): Update.
6865 * tui/tui-layout.c (tui_set_layout): Update.
6866 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6867 method.
6868
6869 2019-07-17 Tom Tromey <tom@tromey.com>
6870
6871 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6872 * tui/tui-windata.c (tui_display_data_from): Remove.
6873 (tui_data_window::refresh_all): Update.
6874
6875 2019-07-17 Tom Tromey <tom@tromey.com>
6876
6877 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6878 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6879 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6880 tui_display_registers_from_line.
6881 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6882 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6883 "force_display" parameter.
6884
6885 2019-07-17 Tom Tromey <tom@tromey.com>
6886
6887 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6888 declare.
6889 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6890 Rename from tui_first_reg_element_no_inline.
6891 (tui_display_reg_element_at_line)
6892 (tui_display_registers_from_line): Update.
6893 * tui/tui-data.h (struct tui_data_window)
6894 <first_reg_element_no_inline>: New method.
6895
6896 2019-07-17 Tom Tromey <tom@tromey.com>
6897
6898 * tui/tui-windata.c (tui_display_data_from)
6899 (tui_data_window::do_scroll_vertical): Update.
6900 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6901 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6902 Rename from tui_line_from_reg_element_no.
6903 (tui_display_registers_from_line): Update.
6904 * tui/tui-data.h (struct tui_data_window)
6905 <line_from_reg_element_no>: New method.
6906
6907 2019-07-17 Tom Tromey <tom@tromey.com>
6908
6909 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6910 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6911 tui_last_regs_line_no.
6912 (tui_display_reg_element_at_line)
6913 (tui_display_registers_from_line): Update.
6914 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6915 method.
6916
6917 2019-07-17 Tom Tromey <tom@tromey.com>
6918
6919 PR tui/24722:
6920 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6921 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6922 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6923 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6924 (tui_update_breakpoint_info): Likewise.
6925 * tui/tui-hooks.c (tui_event_create_breakpoint)
6926 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6927 Update.
6928
6929 2019-07-17 Tom Tromey <tom@tromey.com>
6930
6931 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6932
6933 2019-07-17 Tom Tromey <tom@tromey.com>
6934
6935 * tui/tui-winsource.c (tui_update_source_window_as_is)
6936 (tui_update_source_windows_with_addr): Update.
6937 * tui/tui-source.h (tui_set_source_content)
6938 (tui_show_symtab_source): Add "win_info" parameter.
6939 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6940 parameter.
6941 (tui_show_symtab_source): Likewise.
6942
6943 2019-07-17 Tom Tromey <tom@tromey.com>
6944
6945 * tui/tui-wingeneral.c
6946 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6947
6948 2019-07-17 Tom Tromey <tom@tromey.com>
6949
6950 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6951 (struct tui_cmd_window) <can_scroll>: New method.
6952 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6953 method.
6954
6955 2019-07-17 Tom Tromey <tromey@adacore.com>
6956
6957 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6958 do_field_signed>: Rename. Change type of "value".
6959 * ui-out.c (ui_out::field_signed): Rename from field_int.
6960 Change type of "value".
6961 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6962 type of "value".
6963 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6964 do_field_int. Change type of "value".
6965 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6966 do_field_int. Change type of "value".
6967 * tracepoint.c (trace_status_mi, tfind_1)
6968 (print_one_static_tracepoint_marker): Update.
6969 * thread.c (print_thread_info_1, print_selected_thread_frame):
6970 Update.
6971 * stack.c (print_frame, print_frame_info): Update.
6972 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6973 Update.
6974 * source.c (print_source_lines_base): Update.
6975 * skip.c (info_skip_command): Update.
6976 * record-btrace.c (btrace_ui_out_decode_error)
6977 (btrace_call_history_src_line): Update.
6978 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6979 Update.
6980 * progspace.c (print_program_space): Update.
6981 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6982 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6983 do_field_int. Change type of "value".
6984 * mi/mi-out.c (mi_ui_out::do_table_begin)
6985 (mi_ui_out::do_table_header): Update.
6986 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6987 type of "value".
6988 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6989 (mi_cmd_data_list_changed_registers, output_register)
6990 (mi_cmd_data_read_memory, mi_load_progress)
6991 (mi_cmd_trace_frame_collected): Update.
6992 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6993 Update.
6994 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6995 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6996 (mi_cmd_var_list_children, varobj_update_one): Update.
6997 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6998 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6999 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7000 * inferior.c (print_inferior): Update.
7001 * gdb_bfd.c (print_one_bfd): Update.
7002 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7003 Update.
7004 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7005 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7006 do_field_int. Change type of "value".
7007 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7008 do_field_int. Change type of "value".
7009 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7010 (print_one_breakpoint_location, print_it_catch_fork)
7011 (print_one_catch_fork, print_it_catch_vfork)
7012 (print_one_catch_vfork, print_it_catch_solib)
7013 (print_it_catch_exec, print_it_ranged_breakpoint)
7014 (print_mention_watchpoint, print_mention_masked_watchpoint)
7015 (bkpt_print_it, update_static_tracepoint): Update.
7016 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7017 * break-catch-syscall.c (print_it_catch_syscall): Update.
7018 * ada-tasks.c (print_ada_task_info): Update.
7019 * ada-lang.c (print_it_exception, print_mention_exception):
7020 Update.
7021
7022 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7023
7024 PR breakpoints/24541
7025 * gdbarch.c: Regenerate.
7026 * gdbarch.h: Regenerate.
7027 * gdbarch.sh: Adjust return type and parameter types for
7028 'stap_adjust_register'.
7029 (i386_stap_adjust_register): Adjust signature and return new
7030 register name.
7031 * stap-probe.c (stap_parse_register_operand): Adjust use of
7032 'gdbarch_stap_adjust_register'.
7033
7034 2019-07-17 Tom Tromey <tromey@adacore.com>
7035
7036 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7037 declare VEC.
7038 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7039 std::vector.
7040 (struct s390_process_info): Add initializers.
7041 (s390_add_process): Use new.
7042 (s390_linux_nat_target::low_forget_process): Use delete.
7043 (s390_linux_nat_target::low_new_fork)
7044 (s390_linux_nat_target::stopped_by_watchpoint)
7045 (s390_linux_nat_target::low_prepare_to_resume)
7046 (s390_linux_nat_target::insert_watchpoint)
7047 (s390_linux_nat_target::insert_hw_breakpoint)
7048 (s390_linux_nat_target::remove_watchpoint)
7049 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7050
7051 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7052
7053 * aarch64-fbsd-nat.c: Include regcache.h.
7054 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7055 argument.
7056 (aarch64_fbsd_nat_target::fetch_registers)
7057 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7058 variable.
7059 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7060
7061 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7062
7063 * fbsd-nat.c: Include gdbarch.h.
7064
7065 2019-07-15 Tom Tromey <tromey@adacore.com>
7066
7067 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7068
7069 2019-07-15 Tom Tromey <tromey@adacore.com>
7070
7071 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7072 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7073 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7074 * cli-out.c (cli_ui_out::do_field_int): New method.
7075 * ui-out.c (ui_out::field_unsigned): New method.
7076 * symfile.c (generic_load): Use field_unsigned.
7077 (print_transfer_performance): Likewise.
7078 * record-btrace.c (ui_out_field_uint): Remove.
7079 (btrace_call_history_insn_range, btrace_call_history): Use
7080 field_unsigned.
7081 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7082 field_unsigned.
7083 * ui-out.h (class ui_out) <field_unsigned>: New method.
7084 <do_field_unsigned>: Likewise.
7085
7086 2019-07-15 Tom Tromey <tromey@adacore.com>
7087
7088 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7089 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7090 * target.c (flash_erase_command): Use field_string.
7091 * infrun.c (print_signal_received_reason): Use field_string.
7092 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7093 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7094 field_string.
7095 * ada-tasks.c (print_ada_task_info): Use field_string.
7096
7097 2019-07-15 Tom Tromey <tromey@adacore.com>
7098
7099 * target.c (flash_erase_command): Use field_core_addr.
7100 * symfile.c (generic_load): Use field_core_addr.
7101 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7102 Use field_core_addr.
7103 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7104 field_core_addr.
7105
7106 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7107
7108 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7109 value if its desired type is smaller than a CORE_ADDR and signed.
7110
7111 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7112
7113 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7114 of changes to field names, and use new is_reference field to
7115 decide if a property is a reference or not.
7116 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7117 field.
7118 (struct dwarf2_property_baton): Update header comment, rename
7119 'referenced_type' to 'property_type' and update comments.
7120 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7121 default property type, store in property baton, update to take
7122 accound of renamed field.
7123 (read_func_scope): Update call to attr_to_dynamic_prop.
7124 (read_array_type): Likewise.
7125 (dwarf2_per_cu_addr_sized_int_type): New function.
7126 (read_subrange_index_type): Move type finding code to
7127 dwarf2_per_cu_addr_sized_int_type.
7128 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7129 (dwarf2_per_cu_addr_type): New function.
7130 (set_die_type): Update calls to attr_to_dynamic_prop.
7131
7132 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7133
7134 * dwarf2read.c (read_subrange_index_type): New function.
7135 (read_subrange_type): Move code into new function and call it.
7136 * gdbtypes.c (create_range_type): Add some asserts.
7137
7138 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7139
7140 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7141 update return statements.
7142 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7143 declaration, and update comment to match.
7144 * gdbtypes.c (resolve_dynamic_array): Update call to
7145 dwarf2_evaluate_property to match new return type.
7146
7147 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7148
7149 * valarith.c (value_subscripted_rvalue): Change lowerbound
7150 parameter type from int to LONGEST.
7151 * value.h (value_subscripted_rvalue): Likewise in declaration.
7152
7153 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7154
7155 * cli/cli-utils.c (info_print_command_completer): New function.
7156 * cli/cli-utils.h: Add 'completer.h' include, and forward
7157 declaration for 'struct cmd_list_element'.
7158 (info_print_command_completer): Declare.
7159 * stack.c (_initialize_stack): Add completer for 'info locals' and
7160 'info args'.
7161 * symtab.c (_initialize_symtab): Add completer for 'info
7162 variables' and 'info functions'.
7163 * NEWS: Mention completion for additional info commands.
7164
7165 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7166
7167 * cli/cli-utils.c (extract_info_print_args): Delete.
7168 (extract_arg_maybe_quoted): Delete.
7169 (info_print_options_defs): New variable.
7170 (make_info_print_options_def_group): New function.
7171 (extract_info_print_options): Define new function.
7172 * cli/cli-utils.h (extract_info_print_args): Delete.
7173 (struct info_print_options): New structure.
7174 (extract_info_print_options): Declare new function.
7175 * stack.c (info_locals_command): Update to use new
7176 extract_info_print_options, also add a header comment.
7177 (info_args_command): Likewise.
7178 * symtab.c (info_variables_command): Likewise.
7179 (info_functions_command): Likewise.
7180
7181 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7182
7183 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7184 to extract string arguments.
7185 * common/common-utils.c (extract_string_maybe_quoted): New function.
7186 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7187
7188 2019-07-11 Tom Tromey <tromey@adacore.com>
7189
7190 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7191 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7192 * top.h (gdbinit): Don't declare.
7193 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7194 into...
7195 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7196 * top.c (gdb_init): Don't call init_cli_cmds.
7197 (gdbinit): Remove.
7198 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7199
7200 2019-07-11 Tom Tromey <tromey@adacore.com>
7201
7202 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7203 after it has been moved.
7204
7205 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7206
7207 * valops.c (value_must_coerce_to_target): Change return type to
7208 bool.
7209 * value.h (value_must_coerce_to_target): Likewise.
7210
7211 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7212
7213 * breakpoint.c (is_hardware_watchpoint): Remove
7214 forward-declaration.
7215 (is_masked_watchpoint): Change return type to bool.
7216 (is_tracepoint): Likewise.
7217 (is_breakpoint): Likewise.
7218 (is_hardware_watchpoint): Likewise.
7219 (is_watchpoint): Likewise.
7220 (is_no_memory_software_watchpoint): Likewise.
7221 (is_catchpoint): Likewise.
7222 (breakpoint_1): Make FILTER parameter's return type bool.
7223 is_masked_watchpoint): Change return type to bool.
7224 (save_breakpoints): Make FILTER parameter's return type bool.
7225 * breakpoint.h (is_breakpoint): Change return type to bool.
7226 (is_watchpoint): Likewise.
7227 (is_catchpoint): Likewise.
7228 (is_tracepoint): Likewise.
7229
7230 2019-07-10 Tom Tromey <tom@tromey.com>
7231
7232 * defs.h: Don't include gdbarch.h.
7233 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7234 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7235 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7236 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7237 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7238 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7239 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7240 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7241 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7242 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7243 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7244 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7245 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7246 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7247 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7248 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7249 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7250 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7251 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7252 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7253 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7254 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7255 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7256 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7257 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7258 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7259 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7260
7261 2019-07-10 Tom Tromey <tromey@adacore.com>
7262
7263 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7264 * breakpoint.c (init_ada_exception_breakpoint): Register as
7265 bp_catchpoint.
7266 (print_one_breakpoint_location, print_one_breakpoint): Use
7267 is_ada_exception_catchpoint.
7268 * ada-lang.c (class ada_catchpoint_location): Pass
7269 bp_loc_software_breakpoint to bp_location constructor.
7270 (is_ada_exception_catchpoint): New function.
7271
7272 2019-07-10 Tom Tromey <tromey@adacore.com>
7273
7274 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7275 VEC.
7276 (struct arm_exidx_entry): New method operator<.
7277 (struct arm_exidx_data) <section_maps>: Change type.
7278 (arm_exidx_data_free): Remove.
7279 (arm_exidx_data_key): Change type. Move lower.
7280 (arm_exidx_new_objfile): Update.
7281 (arm_compare_exidx_entries): Remove.
7282 (arm_find_exidx_entry, _initialize_arm_tdep)
7283
7284 2019-07-10 Tom Tromey <tromey@adacore.com>
7285
7286 * solib-spu.c (ocl_program_data_key): Change type.
7287 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7288 Update.
7289
7290 2019-07-10 Tom Tromey <tromey@adacore.com>
7291
7292 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7293 (struct solib_aix_inferior_data) <library_list>: Change type.
7294 (solib_aix_inferior_data_handle): Change type.
7295 (get_solib_aix_inferior_data): Update.
7296 (solib_aix_free_library_list): Remove.
7297 (library_list_start_library): Update.
7298 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7299 return type.
7300 (solib_aix_get_library_list)
7301 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7302 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7303
7304 2019-07-10 Tom Tromey <tromey@adacore.com>
7305
7306 * solib-dsbt.c (struct dsbt_info): Add initializers.
7307 (solib_dsbt_pspace_data): Change type.
7308 (dsbt_pspace_data_cleanup): Remove.
7309 (get_dsbt_info, _initialize_dsbt_solib): Update.
7310
7311 2019-07-10 Tom Tromey <tromey@adacore.com>
7312
7313 * spu-tdep.c (spu_overlay_data): Change type.
7314 (spu_get_overlay_table, spu_overlay_new_objfile)
7315 (_initialize_spu_tdep): Update.
7316
7317 2019-07-10 Tom Tromey <tromey@adacore.com>
7318
7319 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7320 destructor.
7321 (dbx_objfile_data_key): Change type and declare later.
7322 (DBX_SYMFILE_INFO): Rewrite.
7323 * dbxread.c (dbx_objfile_data_key): Change type.
7324 (dbx_symfile_init): Update.
7325 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7326 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7327 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7328
7329 2019-07-10 Tom Tromey <tromey@adacore.com>
7330
7331 * jit.c (jit_program_space_key): Change type. Move lower.
7332 (get_jit_program_space_data): Update.
7333 (jit_program_space_data_cleanup): Remove.
7334 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7335 Update.
7336 (struct jit_program_space_data): Add initializers.
7337
7338 2019-07-10 Tom Tromey <tromey@adacore.com>
7339
7340 * solib-darwin.c (struct darwin_info): Add initializers.
7341 (solib_darwin_pspace_data): Change type.
7342 (darwin_pspace_data_cleanup): Remove.
7343 (get_darwin_info, _initialize_darwin_solib): Update.
7344
7345 2019-07-10 Tom Tromey <tromey@adacore.com>
7346
7347 * remote-sim.c (struct sim_inferior_data): Add initializers,
7348 constructor, and destructor.
7349 (sim_inferior_data_key): Change type. Move lower.
7350 (check_for_duplicate_sim_descriptor): Update.
7351 (get_sim_inferior_data): Use new. Update.
7352 (~sim_inferior_data_cleanup): Rename from
7353 sim_inferior_data_cleanup. Simplify.
7354 (gdbsim_close_inferior, simulator_command)
7355 (sim_command_completer, _initialize_remote_sim): Update.
7356 (next_pid, INITIAL_PID): Move earlier.
7357
7358 2019-07-10 Tom Tromey <tromey@adacore.com>
7359
7360 * python/python-internal.h (create_thread_object): Return
7361 gdbpy_ref.
7362 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7363 * python/py-inferior.c (struct threadlist_entry): Add
7364 constructor.
7365 <thread_obj>: Now a gdbpy_ref.
7366 (thread_to_thread_object): Update.
7367 (add_thread_object): Use new.
7368 (delete_thread_object): Use delete.
7369 (infpy_threads): Update.
7370 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7371 GIL.
7372
7373 2019-07-10 Tom Tromey <tromey@adacore.com>
7374
7375 * valops.c (value_cast): Specialize error message for Ada.
7376
7377 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7378
7379 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7380
7381 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7382
7383 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7384 bpstat_should_step): Return bool, adjust comments.
7385 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7386 bpstat_should_step): Likewise.
7387
7388 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7389
7390 * features/Makefile: Use feature target descriptions for Arm.
7391 * features/arm/arm-core.c: Generate new file.
7392 * features/arm/arm-fpa.c: Likewise.
7393 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7394 * features/arm/arm-m-profile.c: Likewise.
7395 * features/arm/arm-vfpv2.c: Likewise.
7396 * features/arm/arm-vfpv3.c: Likewise.
7397 * features/arm/xscale-iwmmxt.c: Likewise.
7398 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7399
7400 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7401
7402 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7403 ptrace earlier.
7404
7405 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7406
7407 * features/aarch64-pauth.c: Regenerate.
7408
7409 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7410
7411 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7412 bool.
7413 (bpstat_what): Use false instead of 0.
7414
7415 2019-07-09 Pedro Alves <palves@redhat.com>
7416
7417 * break-catch-throw.c (is_exception_catchpoint): New.
7418 * breakpoint.c (print_one_breakpoint_location): New parameter
7419 'raw_loc'. Handle it. Use
7420 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7421 looking at the breakpoint's type.
7422 (print_one_breakpoint): If handling "maint info breakpoints", also
7423 print locations of exception catchpoints.
7424 * breakpoint.h (is_exception_catchpoint): Declare.
7425
7426 2019-07-09 Pedro Alves <palves@redhat.com>
7427
7428 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7429 "addr" field.
7430 (allocate_location_exception_catchpoint): New.
7431 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7432 (initialize_throw_catchpoint_ops): Install
7433 allocate_location_exception_catchpoint as allocate_location
7434 method.
7435 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7436 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7437 bp_loc_other.
7438 (breakpoint_address_is_meaningful): Delete.
7439 (bl_address_is_meaningful): New.
7440 (breakpoint_locations_match): Adjust comment.
7441 (bp_location_from_bp_type): New, factored out of...
7442 (bp_location::bp_location(breakpoint *)): ... this.
7443 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7444 factored out of...
7445 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7446 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7447 breakpoint_address_is_meaningful.
7448 (bp_locations_compare): Adjust comment.
7449 (update_global_location_list): Use bl_address_is_meaningful
7450 instead of breakpoint_address_is_meaningful.
7451 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7452 explicit.
7453 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7454 * python/py-breakpoint.c (bppy_get_location): No longer check
7455 whether location is null.
7456
7457 2019-07-09 Pedro Alves <palves@redhat.com>
7458
7459 PR c++/15468
7460 * breakpoint.c (print_one_breakpoint_location): Remove
7461 single-location assert.
7462
7463 2019-07-09 Tom Tromey <tom@tromey.com>
7464
7465 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7466 * configure: Rebuild.
7467 * configure.ac: Change common to gdbsupport.
7468 * gdbsupport: Rename from common.
7469 * acinclude.m4: Change common to gdbsupport.
7470 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7471 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7472 gdbsupport.
7473 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7474 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7475 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7476 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7477 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7478 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7479 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7480 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7481 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7482 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7483 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7484 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7485 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7486 coff-pe-read.c, command.h, compile/compile-c-support.c,
7487 compile/compile-c.h, compile/compile-cplus-symbols.c,
7488 compile/compile-cplus-types.c, compile/compile-cplus.h,
7489 compile/compile-loc2c.c, compile/compile.c, completer.c,
7490 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7491 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7492 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7493 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7494 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7495 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7496 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7497 features/aarch64-core.c, features/aarch64-fpu.c,
7498 features/aarch64-pauth.c, features/aarch64-sve.c,
7499 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7500 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7501 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7502 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7503 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7504 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7505 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7506 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7507 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7508 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7509 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7510 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7511 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7512 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7513 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7514 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7515 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7516 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7517 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7518 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7519 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7520 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7521 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7522 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7523 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7524 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7525 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7526 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7527 minsyms.c, mips-linux-tdep.c, namespace.h,
7528 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7529 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7530 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7531 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7532 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7533 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7534 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7535 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7536 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7537 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7538 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7539 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7540 procfs.c, producer.c, progspace.h, psymtab.h,
7541 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7542 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7543 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7544 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7545 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7546 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7547 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7548 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7549 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7550 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7551 target-memory.c, target.c, target.h, target/waitstatus.c,
7552 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7553 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7554 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7555 unittests/array-view-selftests.c,
7556 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7557 unittests/common-utils-selftests.c,
7558 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7559 unittests/format_pieces-selftests.c,
7560 unittests/function-view-selftests.c,
7561 unittests/lookup_name_info-selftests.c,
7562 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7563 unittests/mkdir-recursive-selftests.c,
7564 unittests/observable-selftests.c,
7565 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7566 unittests/parse-connection-spec-selftests.c,
7567 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7568 unittests/scoped_fd-selftests.c,
7569 unittests/scoped_mmap-selftests.c,
7570 unittests/scoped_restore-selftests.c,
7571 unittests/string_view-selftests.c, unittests/style-selftests.c,
7572 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7573 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7574 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7575 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7576 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7577 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7578
7579 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7580
7581 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7582 bool value.
7583 (decode_digits_ordinary): Set explicit_line field in sal.
7584 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7585 symtab_and_line that was set on an explicit line number in
7586 assembler code. Do always update the recorded symtab and line if
7587 we do skip the prologue.
7588
7589 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7590
7591 * breakpoint.c (set_breakpoint_location_function): Remove
7592 explicit_loc parameter.
7593 (momentary_breakpoint_from_master): Update call to
7594 set_breakpoint_location_function.
7595 (add_location_to_breakpoint): Likewise.
7596
7597 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7598
7599 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7600 required features based on default bfd type when no specific bfd
7601 is present.
7602
7603 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7604
7605 * NEWS: Mention that GDB printf and eval commands can now print
7606 C-style and Ada-style convenience var strings without
7607 calling the inferior.
7608 * printcmd.c (printf_c_string): Locally print GDB internal var
7609 instead of transiting via the inferior.
7610 (printf_wide_c_string): Likewise.
7611
7612 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7613
7614 PR breakpoints/25011
7615 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7616
7617 2019-07-04 Tom Tromey <tom@tromey.com>
7618
7619 PR tui/24724:
7620 * tui/tui-winsource.c (tui_clear_source_content): Update.
7621 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7622 (tui_update_breakpoint_info): Update.
7623 (tui_set_exec_info_content): Update.
7624 * tui/tui-source.c (tui_set_source_content_nil): Update.
7625 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7626 has_break.
7627 * tui/tui-data.h (enum tui_bp_flag): New.
7628 (tui_bp_flags): New enum flags type.
7629 (struct tui_source_element) <break_mode>: Change type. Rename
7630 from has_break.
7631 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7632 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7633 constants.
7634 * tui/tui-winsource.h: Fix comment.
7635
7636 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7637
7638 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7639 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7640 (store_fpregs_to_thread)
7641 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7642 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7643 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7644 (IWMMXT_REGS_SIZE): Add define.
7645 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7646 (fetch_vfp_regs, store_vfp_regs)
7647 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7648 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7649
7650 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7651
7652 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7653 defines.
7654 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7655 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7656 (ARM_INT_REGISTER_SIZE): ...to this.
7657 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7658 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7659 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7660 (arm_linux_collect_gregset, supply_nwfpe_register)
7661 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7662 defines.
7663 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7664 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7665 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7666 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7667 (arm_return_in_memory, arm_store_return_value)
7668 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7669 (arm_record_ld_st_multiple): Likewise.
7670 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7671 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7672
7673 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7674
7675 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7676 AARCH64_DISPLACED_MODIFIED_INSNS.
7677 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7678 (aarch64_displaced_step_copy_insn): Likewise.
7679 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7680 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7681 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7682 ARM_DISPLACED_MODIFIED_INSNS.
7683 * arm-tdep.c (arm_gdbarch_init): Likewise.
7684 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7685 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7686 (struct arm_displaced_step_closure): Use
7687 ARM_DISPLACED_MODIFIED_INSNS.
7688
7689 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7690
7691 * features/Makefile: Remove unused xml files.
7692 * features/aarch64.xml: Remove.
7693 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7694 * features/i386/amd64-avx-avx512.xml: Remove.
7695 * features/i386/amd64-avx-linux.xml: Remove.
7696 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7697 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7698 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7699 * features/i386/amd64-avx-mpx.xml: Remove.
7700 * features/i386/amd64-avx.xml: Remove.
7701 * features/i386/amd64-linux.xml: Remove.
7702 * features/i386/amd64-mpx-linux.xml: Remove.
7703 * features/i386/amd64-mpx.xml: Remove.
7704 * features/i386/amd64.xml: Remove.
7705 * features/i386/i386-avx-avx512-linux.xml: Remove.
7706 * features/i386/i386-avx-avx512.xml: Remove.
7707 * features/i386/i386-avx-linux.xml: Remove.
7708 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7709 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7710 * features/i386/i386-avx-mpx-linux.xml: Remove.
7711 * features/i386/i386-avx-mpx.xml: Remove.
7712 * features/i386/i386-avx.xml: Remove.
7713 * features/i386/i386-linux.xml: Remove.
7714 * features/i386/i386-mmx-linux.xml: Remove.
7715 * features/i386/i386-mmx.xml: Remove.
7716 * features/i386/i386-mpx-linux.xml: Remove.
7717 * features/i386/i386-mpx.xml: Remove.
7718 * features/i386/i386.xml: Remove.
7719 * features/i386/x32-avx-avx512-linux.xml: Remove.
7720 * features/i386/x32-avx-linux.xml: Remove.
7721 * features/i386/x32-linux.xml: Remove.
7722
7723 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7724
7725 * regformats/aarch64.dat: Remove.
7726 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7727 * regformats/i386/amd64-avx-linux.dat: Remove.
7728 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7729 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7730 * regformats/i386/amd64-linux.dat: Remove.
7731 * regformats/i386/amd64-mpx-linux.dat: Remove.
7732 * regformats/i386/amd64.dat: Remove.
7733 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7734 * regformats/i386/i386-avx-linux.dat: Remove.
7735 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7736 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7737 * regformats/i386/i386-linux.dat: Remove.
7738 * regformats/i386/i386-mmx-linux.dat: Remove.
7739 * regformats/i386/i386-mpx-linux.dat: Remove.
7740 * regformats/i386/i386.dat: Remove.
7741 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7742 * regformats/i386/x32-avx-linux.dat: Remove.
7743 * regformats/i386/x32-linux.dat: Remove.
7744
7745 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7746
7747 * aarch64-tdep.c: Remove xml self tests.
7748 * amd64-linux-tdep.c: Likewise.
7749 * amd64-tdep.c: Likewise.
7750 * i386-linux-tdep.c: Likewise.
7751 * i386-tdep.c: Likewise.
7752
7753 2019-07-03 Pedro Alves <palves@redhat.com>
7754
7755 PR cli/24732
7756 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7757 (pipe_cmd_option_defs): New.
7758 (make_pipe_cmd_options_def_group): New.
7759 (pipe_command): Use gdb::option::process_options.
7760 (pipe_command_completer): New function.
7761 (_initialize_cli_cmds): Install completer for "pipe" command.
7762
7763 2019-07-03 Pedro Alves <palves@redhat.com>
7764
7765 * cli/cli-option.c (union option_value) <string>: New field.
7766 (struct option_def_and_value): Add ctor, move ctor, dtor and
7767 use DISABLE_COPY_AND_ASSIGN.
7768 (option_def_and_value::clear_value): New.
7769 (parse_option, save_option_value_in_ctx, get_val_type_str)
7770 (add_setshow_cmds_for_options): Handle var_string.
7771 * cli-option.h (union option_def::var_address) <string>: New
7772 field.
7773 (struct string_option_def): New.
7774 * maint-test-options.c (struct test_options_opts): Add default
7775 ctor and use DISABLE_COPY_AND_ASSIGN.
7776 <string_opt>: New field.
7777 (test_options_opts::~test_options_opts): New.
7778 (test_options_opts::dump): Also dump "-string".
7779 (test_options_option_defs): Install "string.
7780
7781 2019-07-03 Pedro Alves <palves@redhat.com>
7782
7783 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7784 option_value with a null enumeration.
7785 (complete_options): Save the option values in the context.
7786 (save_option_value_in_ctx): New, factored out from ...
7787 (process_options): ... here.
7788 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7789 of the function.
7790 * maint-test-options.c (test_options_opts::dump): New, factored
7791 out from ...
7792 (maintenance_test_options_command_mode): ... here.
7793 (maintenance_test_options_command_completion_result): Delete.
7794 (maintenance_test_options_command_completion_text): Update
7795 comment.
7796 (maintenance_show_test_options_completion_result): Change
7797 prototype. Just print
7798 maintenance_test_options_command_completion_text.
7799 (save_completion_result): New.
7800 (maintenance_test_options_completer_mode): Pass options context to
7801 complete_options, and then save a dump.
7802 (_initialize_maint_test_options): Use add_cmd to install "maint
7803 show test-options-completion-result".
7804
7805 2019-07-03 Pedro Alves <palves@redhat.com>
7806
7807 * NEWS (New commands): Mention "with" and "maint with".
7808 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7809 (with_command, with_command_completer): New.
7810 (pipe_command): Adjust to new repeat_previous
7811 interface.
7812 (_initialize_cli_cmds): Install the "with" command and its "w"
7813 alias.
7814 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7815 declarations.
7816 * cli/cli-setshow.c (parse_cli_var_uinteger)
7817 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7818 argument strings for all var_types.
7819 (get_setshow_command_value_string): New, factored out from ...
7820 (do_show_command): ... this.
7821 * cli/cli-setshow.h: Include <string>.
7822 (get_setshow_command_value_string): Declare.
7823 * command.h (repeat_previous): Now returns const char *. Adjust
7824 comment.
7825 * maint.c: Include "cli/cli-cmds.h".
7826 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7827 (_initialize_maint_cmds): Register the "maintenance with" command.
7828 * top.c (repeat_previous): Move bits from pipe_command here:
7829 Return the saved command line, if any; error out if there's no
7830 command to relaunch.
7831
7832 2019-07-03 Pedro Alves <palves@redhat.com>
7833
7834 * NEWS (New commands): Mention "maint set/show test-settings"
7835 instead of "maint test-settings".
7836 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7837 (maintenance_test_settings_set_list): Rename to ...
7838 (maintenance_set_test_settings_list): ... this.
7839 (maintenance_test_settings_show_list): Rename to ...
7840 (maintenance_show_test_settings_list): ... this.
7841 (maintenance_test_settings_cmd): Delete.
7842 (maintenance_test_settings_set_cmd): ...
7843 (maintenance_set_test_settings_cmd): ... this.
7844 (maintenance_test_settings_show_cmd): ...
7845 (maintenance_show_test_settings_cmd): ... this.
7846 (maintenance_test_settings_show_value_cmd):
7847 (maintenance_show_test_settings_value_cmd): ... this.
7848 (_initialize_maint_test_settings): No longer install the "maint
7849 test-settings" prefix command. Rename "maint test-settings set"
7850 to "maint set test-settings", and "maint test-settings show" to
7851 "maint show test-settings". Adjust all subcommands.
7852
7853 2019-07-03 Pedro Alves <palves@redhat.com>
7854
7855 * maint-test-settings.c: Fix file's intro comment. Replace all
7856 references to "test-options" with references to "test-settings",
7857 in comments.
7858
7859 2019-07-03 Pedro Alves <palves@redhat.com>
7860
7861 * maint-test-settings.c (maintenance_test_settings_xxx)
7862 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7863 New.
7864 (maintenance_test_settings_enums): Use them.
7865 (maintenance_test_settings_enum): Default to
7866 maintenance_test_settings_xxx.
7867 (_initialize_maint_test_settings): Initialize
7868 MAINTENANCE_TEST_SETTINGS_FILENAME.
7869
7870 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7871
7872 * breakpoint.h (remove_breakpoints_inf): Change return type to
7873 void, move function documentation here.
7874 * breakpoint.c (remove_breakpoints_inf): Change return type to
7875 void, move function documentation to header.
7876
7877 2019-07-02 Pedro Alves <palves@redhat.com>
7878
7879 * NEWS (Completion improvements): Mention "info threads".
7880 * thread.c (struct info_threads_opts, info_threads_option_defs)
7881 (make_info_threads_options_def_group): New.
7882 (info_threads_command): Use gdb::option::process_options.
7883 (info_threads_command_completer): New.
7884 (_initialize_thread): Use gdb::option::build_help to build the
7885 help text for "info threads".
7886
7887 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7888
7889 * defs.h (generic_load): Move from here...
7890 * symfile.h (generic_load): ... to here. Rename name parameter
7891 to args.
7892 * symfile.c (generic_load): Add comment.
7893
7894 2019-07-01 Tom Tromey <tromey@adacore.com>
7895
7896 * dwarf2read.c
7897 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7898 declaration of without_params. Fix formatting.
7899
7900 2019-07-01 Tom Tromey <tromey@adacore.com>
7901
7902 * ada-exp.y (find_primitive_type): Update.
7903 * ada-lang.h (ada_lookup_symbol): Update.
7904 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7905 parameter.
7906 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7907
7908 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7909
7910 PR breakpoints/24541
7911 * gdbarch.c: Regenerate.
7912 * gdbarch.h: Regenerate.
7913 * gdbarch.sh: Add 'stap_adjust_register'.
7914 * i386-tdep.c: Include '<unordered_set>'.
7915 (i386_stap_adjust_register): New function.
7916 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7917 * stap-probe.c (stap_parse_register_operand): Call
7918 'gdbarch_stap_adjust_register'.
7919
7920 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7921
7922 PR python/24742
7923 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7924 * python/python.c (do_start_initialization): Use 'xmalloc'
7925 instead of 'PyMem_Malloc'.
7926
7927 2019-06-28 Tom Tromey <tromey@adacore.com>
7928
7929 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7930 for Ada.
7931
7932 2019-06-27 Tom Tromey <tromey@adacore.com>
7933
7934 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7935 objfile_key.
7936 (arm_find_mapping_symbol, arm_record_special_symbol)
7937 (_initialize_arm_tdep): Update.
7938 (arm_objfile_data_free): Remove.
7939
7940 2019-06-27 Tom Tromey <tromey@adacore.com>
7941
7942 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7943 to cp_print_static_field.
7944
7945 2019-06-26 Tom Tromey <tromey@adacore.com>
7946
7947 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7948 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7949 declare.
7950
7951 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7952
7953 * features/aarch64-core.c (create_feature_aarch64_core):
7954 Regenerate.
7955 * features/aarch64-core.xml: Add cpsr flags.
7956
7957 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7958
7959 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7960 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7961
7962 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7963
7964 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7965 field.
7966 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7967 use.
7968 (arm_record_special_symbol): Don't insert new symbol in sorted
7969 position, push it at the end.
7970
7971 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7972
7973 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7974 (arm_mapping_symbol_s): Remove.
7975 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7976 (arm_mapping_symbol_vec): New typedef.
7977 (struct arm_per_objfile): Add constructor.
7978 <section_maps>: Change type to
7979 std::unique_ptr<arm_mapping_symbol_vec[]>.
7980 (arm_compare_mapping_symbols): Remove.
7981 (arm_find_mapping_symbol): Adjust to section_maps type change.
7982 (arm_objfile_data_free): Call delete on arm_per_objfile.
7983 (arm_record_special_symbol): Adjust to section_maps type change.
7984 Allocate arm_per_objfile with new.
7985
7986 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7987
7988 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7989 with the command prefix.
7990
7991 2019-06-25 Tom Tromey <tom@tromey.com>
7992
7993 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7994 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7995
7996 2019-06-25 Tom Tromey <tom@tromey.com>
7997
7998 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7999 type.
8000 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8001 protected.
8002
8003 2019-06-25 Tom Tromey <tom@tromey.com>
8004
8005 * tui/tui-winsource.c
8006 (tui_source_window_base::set_is_exec_point_at): Add check against
8007 LOA_ADDRESS.
8008
8009 2019-06-25 Tom Tromey <tom@tromey.com>
8010
8011 * tui/tui-source.c (tui_set_source_content): Don't check before
8012 xfree.
8013 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8014
8015 2019-06-25 Tom Tromey <tom@tromey.com>
8016
8017 * tui/tui-winsource.h (tui_update_source_window_as_is)
8018 (tui_alloc_source_buffer, tui_line_is_displayed)
8019 (tui_addr_is_displayed): Change type of win_info.
8020 * tui/tui-winsource.c (tui_update_source_window_as_is)
8021 (tui_clear_source_content, tui_show_source_line)
8022 (tui_show_source_content, tui_source_window_base::refill)
8023 (tui_source_window_base::set_is_exec_point_at)
8024 (tui_source_window_base::set_is_exec_point_at)
8025 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8026 (tui_alloc_source_buffer, tui_line_is_displayed)
8027 (tui_addr_is_displayed): Change type of win_info. Update.
8028 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8029 (tui_source_window_base::do_make_visible_with_new_height):
8030 Update.
8031 * tui/tui-source.c (tui_set_source_content)
8032 (tui_set_source_content_nil)
8033 (tui_source_window::do_scroll_vertical): Update.
8034 * tui/tui-layout.c (show_layout): Update.
8035 * tui/tui-disasm.c (tui_set_disassem_content)
8036 (tui_disasm_window::do_scroll_vertical): Update.
8037 * tui/tui-data.h (tui_win_content): Remove.
8038 (struct tui_gen_win_info) <content, content_size>: Remove.
8039 (struct tui_source_element): Add initializers and destructor.
8040 (union tui_which_element, struct tui_win_element): Remove.
8041 (struct tui_source_window_base) <content>: New field.
8042 (struct tui_data_window): Remove destructor.
8043 (tui_alloc_content, tui_free_win_content)
8044 (tui_free_all_source_wins_content): Don't declare.
8045 * tui/tui-data.c (tui_initialize_static_data): Update.
8046 (init_content_element, tui_alloc_content): Remove.
8047 (~tui_gen_win_info): Update.
8048 (~tui_data_window, tui_free_all_source_wins_content)
8049 (tui_free_win_content, free_content, free_content_elements):
8050 Remove.
8051
8052 2019-06-25 Tom Tromey <tom@tromey.com>
8053
8054 * tui/tui-winsource.h (tui_clear_source_content)
8055 (tui_erase_source_content, tui_show_source_content): Change type
8056 of win_info.
8057 * tui/tui-winsource.c (tui_clear_source_content)
8058 (tui_erase_source_content, tui_show_source_content): Change type
8059 of win_info.
8060 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8061 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8062 win_info.
8063 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8064 win_info.
8065 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8066
8067 2019-06-25 Tom Tromey <tom@tromey.com>
8068
8069 * tui/tui-winsource.c (tui_clear_source_content)
8070 (tui_source_window_base::set_is_exec_point_at): Update.
8071 * tui/tui-source.c (tui_set_source_content_nil): Update.
8072 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8073 a bool.
8074 * tui/tui-data.c (init_content_element): Update.
8075
8076 2019-06-25 Tom Tromey <tom@tromey.com>
8077
8078 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8079 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8080 * tui/tui-layout.c (init_and_make_win): Update.
8081 * tui/tui.h (enum tui_win_type): Update.
8082 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8083 tui_win_is_auxillary.
8084 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8085 tui_win_is_auxillary.
8086
8087 2019-06-25 Tom Tromey <tom@tromey.com>
8088
8089 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8090 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8091 (tui_delete_data_content_windows, tui_display_all_data)
8092 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8093 Update.
8094 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8095 * tui/tui-regs.c (tui_last_regs_line_no)
8096 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8097 (tui_show_registers): Update.
8098 (tui_show_register_group): Return void. Update.
8099 (tui_display_registers_from, tui_display_reg_element_at_line)
8100 (tui_display_registers_from_line, tui_check_register_values):
8101 Update.
8102 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8103 member.
8104 (struct tui_data_window) <regs_content>: Now a std::vector.
8105 <regs_content_count>: Remove.
8106 (tui_add_content_elements, tui_free_data_content): Don't declare.
8107 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8108 (init_content_element): Remove DATA_WIN case. Add assert.
8109 (tui_add_content_elements): Remove.
8110 (tui_data_window): Update.
8111 (tui_free_data_content): Remove.
8112 (free_content_elements): Remove DATA_WIN case.
8113
8114 2019-06-25 Tom Tromey <tom@tromey.com>
8115
8116 * tui/tui-data.c (tui_data_item_window): Update.
8117 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8118 * tui/tui-windata.c (tui_display_all_data)
8119 (tui_display_data_from_line): Update.
8120 (tui_check_data_values): Remove.
8121 * tui/tui-regs.c (tui_show_register_group)
8122 (tui_display_reg_element_at_line): Update.
8123 * tui/tui-hooks.c (tui_register_changed)
8124 (tui_refresh_frame_and_register_information): Call
8125 tui_check_register_values.
8126 * tui/tui-data.h (struct tui_data_window) <data_content,
8127 data_content_count, data_type>: Remove.
8128 (enum tui_data_type): Remove.
8129
8130 * tui/tui-data.c (tui_data_window::clear_detail)
8131 (~tui_data_window): Update.
8132
8133 2019-06-25 Tom Tromey <tom@tromey.com>
8134
8135 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8136 declare.
8137 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8138 Rename from tui_first_data_item_displayed. Update.
8139 (tui_data_window::refresh_all)
8140 (tui_data_window::do_scroll_vertical): Update.
8141 * tui/tui-data.h (struct tui_data_window)
8142 <first_data_item_displayed>: Declare new method.
8143
8144 2019-06-25 Tom Tromey <tom@tromey.com>
8145
8146 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8147 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8148 contents...
8149 (tui_initialize_static_data): ...here.
8150
8151 2019-06-25 Tom Tromey <tom@tromey.com>
8152
8153 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8154 (tui_display_registers_from, tui_check_register_values): Update.
8155 (tui_display_register): Remove win_info parameter; update.
8156 (tui_get_register): Change type of parameters.
8157 * tui/tui-data.h (struct tui_data_element): Remove.
8158 (union tui_which_element) <data>: Remove.
8159 <data_window>: Change type.
8160 (struct tui_data_item_window): New.
8161 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8162 case. Add assert.
8163 (~tui_data_item_window): New destructor.
8164 (free_content_elements): Remove DATA_ITEM_WIN case.
8165
8166 2019-06-25 Tom Tromey <tom@tromey.com>
8167
8168 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8169 Remove.
8170
8171 2019-06-25 Tom Tromey <tom@tromey.com>
8172
8173 * tui/tui-data.h (struct tui_command_element): Remove.
8174 (union tui_which_element) <command>: Remove.
8175 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8176 assert.
8177 (free_content_elements): Remove CMD_WIN case.
8178
8179 2019-06-25 Tom Tromey <tom@tromey.com>
8180
8181 * tui/tui-layout.c (tui_set_layout): Update.
8182 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8183 * tui/tui-data.c (layout_def): Update.
8184
8185 2019-06-25 Tom Tromey <tom@tromey.com>
8186
8187 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8188 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8189 (tui_source_window_base::set_new_height): Update.
8190 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8191 Update.
8192 (tui_set_locator_fullname, tui_set_locator_info)
8193 (tui_show_frame_info): Update.
8194 * tui/tui-source.c (tui_set_source_content)
8195 (tui_source_is_displayed): Update.
8196 * tui/tui-layout.c (show_source_disasm_command, show_data)
8197 (show_source_or_disasm_and_command): Update.
8198 * tui/tui-disasm.c (tui_set_disassem_content)
8199 (tui_get_begin_asm_address): Update.
8200 * tui/tui-data.h (struct tui_locator_element): Remove.
8201 (union tui_which_element) <locator>: Remove.
8202 (struct tui_locator_window): New.
8203 (tui_locator_win_info_ptr): Change return type.
8204 * tui/tui-data.c (_locator): Change type.
8205 (tui_locator_win_info_ptr): Change return type.
8206 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8207 (tui_alloc_content): Add assert.
8208
8209 2019-06-25 Tom Tromey <tom@tromey.com>
8210
8211 * tui/tui-winsource.c
8212 (tui_exec_info_window::maybe_allocate_content): New method.
8213 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8214 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8215 (make_source_or_disasm_window): Add cast.
8216 * tui/tui-data.h (union tui_which_element) <simple_string>:
8217 Remove.
8218 (struct tui_source_info): New.
8219 (struct tui_source_window_base) <execution_info>: Change type.
8220 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8221 case, and add assert.
8222 (tui_alloc_content): Add assert.
8223
8224 2019-06-25 Tom Tromey <tom@tromey.com>
8225
8226 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8227 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8228 * tui/tui-data.c (tui_alloc_win_info): Remove.
8229
8230 2019-06-25 Tom Tromey <tom@tromey.com>
8231
8232 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8233 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8234 can_highlight.
8235
8236 2019-06-25 Tom Tromey <tom@tromey.com>
8237
8238 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8239 make_visible_with_new_height method.
8240 (tui_win_info::make_visible_with_new_height): New method.
8241 (tui_source_window_base::do_make_visible_with_new_height)
8242 (tui_data_window::do_make_visible_with_new_height)
8243 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8244 (make_visible_with_new_height): Remove.
8245 (tui_resize_all, tui_adjust_win_heights): Use
8246 make_visible_with_new_height method.
8247 * tui/tui-data.h (struct tui_win_info)
8248 <do_make_visible_with_new_height, make_visible_with_new_height>:
8249 New methods.
8250 (struct tui_source_window_base, struct tui_data_window)
8251 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8252 methods.
8253
8254 2019-06-25 Tom Tromey <tom@tromey.com>
8255
8256 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8257 method.
8258 (update_tab_width): Call update_tab_width method.
8259 * tui/tui-data.h (struct tui_win_info)
8260 (struct tui_source_window_base) <update_tab_width>: New methods.
8261
8262 2019-06-25 Tom Tromey <tom@tromey.com>
8263
8264 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8265 parameter.
8266 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8267 parameter.
8268 (tui_gen_win_info::make_visible): Update.
8269 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8270 parameter.
8271 * tui/tui-data.h (enum tui_box): New enum.
8272 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8273
8274 2019-06-25 Tom Tromey <tom@tromey.com>
8275
8276 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8277 init_and_make_win for EXEC_INFO_WIN.
8278 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8279 longer inline.
8280 (struct tui_win_info) <~tui_win_info>: Inline.
8281 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8282 Don't declare.
8283 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8284 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8285 Remove.
8286 (tui_initialize_static_data): Update.
8287 (~tui_gen_win_info): Handle more cleanup here.
8288 (~tui_source_window_base): Delete "execution_info".
8289 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8290
8291 2019-06-25 Tom Tromey <tom@tromey.com>
8292
8293 * tui/tui-layout.c (make_command_window): Don't set
8294 can_highlight.
8295 (show_source_disasm_command): Call the reset method.
8296 (show_data): Don't set can_highlight. Call the reset method.
8297 (tui_gen_win_info::reset): Rename from init_gen_win_info
8298 (init_and_make_win): Simplify. Return tui_gen_win_info.
8299 (show_source_or_disasm_and_command): Call the reset method.
8300 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8301 (struct tui_cmd_window): Set can_highlight.
8302
8303 2019-06-25 Tom Tromey <tom@tromey.com>
8304
8305 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8306 from make_visible.
8307 (tui_make_visible, tui_make_invisible): Rewrite.
8308 (tui_win_info::make_visible): Remove.
8309 (tui_source_window_base::make_visible): Update.
8310 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8311 method. Moved from...
8312 (struct tui_win_info) <make_visible>: ...here.
8313
8314 2019-06-25 Tom Tromey <tom@tromey.com>
8315
8316 * tui/tui-winsource.c
8317 (tui_source_window_base::do_scroll_horizontal): Remove direction
8318 parameter.
8319 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8320 direction parameter.
8321 * tui/tui-win.c (tui_win_info::forward_scroll)
8322 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8323 (tui_win_info::right_scroll): Update.
8324 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8325 direction parameter.
8326 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8327 direction parameter.
8328 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8329 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8330 Remove direction parameter.
8331 (struct tui_source_window_base, struct tui_source_window)
8332 (struct tui_disasm_window, struct tui_data_window)
8333 (struct tui_cmd_window): Update.
8334
8335 2019-06-25 Tom Tromey <tom@tromey.com>
8336
8337 * tui/tui-winsource.h (tui_set_exec_info_content)
8338 (tui_show_exec_info_content, tui_erase_exec_info_content)
8339 (tui_clear_exec_info_content, tui_update_exec_info): Change
8340 argument to tui_source_window_base.
8341 * tui/tui-winsource.c (tui_set_exec_info_content)
8342 (tui_show_exec_info_content, tui_erase_exec_info_content)
8343 (tui_clear_exec_info_content, tui_update_exec_info): Change
8344 argument to tui_source_window_base.
8345
8346 2019-06-25 Tom Tromey <tom@tromey.com>
8347
8348 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8349 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8350
8351 2019-06-25 Tom Tromey <tom@tromey.com>
8352
8353 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8354 check.
8355
8356 2019-06-25 Tom Tromey <tom@tromey.com>
8357
8358 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8359 type to void.
8360 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8361 type to void.
8362 * tui/tui-source.c (tui_set_source_content): Update.
8363 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8364
8365 2019-06-25 Tom Tromey <tom@tromey.com>
8366
8367 * tui/tui-win.c (window_name_completer, tui_set_focus)
8368 (tui_all_windows_info): Use name method.
8369 * tui/tui-data.h (struct tui_gen_win_info)
8370 (struct tui_source_window, struct tui_disasm_window)
8371 (struct tui_data_window, struct tui_cmd_window) <name>: New
8372 method.
8373 (tui_win_name): Don't declare.
8374 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8375 (tui_win_name): Remove.
8376
8377 2019-06-25 Tom Tromey <tom@tromey.com>
8378
8379 * tui/tui-winsource.h (tui_update_source_window)
8380 (tui_update_source_window_as_is): Change parameter type.
8381 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8382 to be a tui_source_window_base.
8383 (tui_update_source_window_as_is): Likewise.
8384 * tui/tui-win.c (make_visible_with_new_height): Update.
8385
8386 2019-06-25 Tom Tromey <tom@tromey.com>
8387
8388 * tui/tui-winsource.c (tui_erase_source_content)
8389 (tui_show_source_content, tui_show_exec_info_content)
8390 (tui_erase_exec_info_content): Use refresh_window method.
8391 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8392 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8393 from tui_refresh_win.
8394 (tui_data_window::refresh_window): New method.
8395 (tui_win_info::refresh, tui_source_window_base::refresh)
8396 (tui_refresh_all): Use refresh_window method.
8397 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8398 method.
8399 * tui/tui-regs.c (tui_display_register): Call refresh_window
8400 method.
8401 * tui/tui-layout.c (show_source_disasm_command)
8402 (show_source_or_disasm_and_command): Call refresh_window method.
8403 * tui/tui-data.h (struct tui_gen_win_info)
8404 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8405 New method.
8406
8407 2019-06-25 Tom Tromey <tom@tromey.com>
8408
8409 * tui/tui.c (tui_rl_other_window, tui_enable)
8410 (tui_is_window_visible, tui_get_command_dimension): Update.
8411 * tui/tui-winsource.c (tui_update_source_window_as_is)
8412 (tui_clear_source_content, tui_erase_source_content)
8413 (tui_show_source_line, tui_source_window_base::refill)
8414 (tui_source_window_base::do_scroll_horizontal)
8415 (tui_source_window_base::set_is_exec_point_at)
8416 (tui_update_breakpoint_info, tui_set_exec_info_content)
8417 (tui_alloc_source_buffer, tui_line_is_displayed)
8418 (tui_addr_is_displayed): Update.
8419 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8420 (tui_check_and_display_highlight_if_needed)
8421 (tui_win_info::make_visible, tui_win_info::refresh)
8422 (tui_refresh_all): Update.
8423 * tui/tui-windata.c (tui_first_data_item_displayed)
8424 (tui_delete_data_content_windows, tui_erase_data_content)
8425 (tui_display_all_data, tui_data_window::refresh_all)
8426 (tui_check_data_values): Update.
8427 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8428 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8429 (tui_win_info::backward_scroll, tui_refresh_all_win)
8430 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8431 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8432 (tui_source_window_base::set_new_height)
8433 (tui_data_window::set_new_height)
8434 (make_invisible_and_set_new_height)
8435 (make_visible_with_new_height, new_height_ok)
8436 (parse_scrolling_args): Update.
8437 * tui/tui-stack.c (tui_show_frame_info): Update.
8438 * tui/tui-source.c (tui_set_source_content)
8439 (tui_set_source_content_nil, tui_source_is_displayed)
8440 (tui_source_window::do_scroll_vertical): Update.
8441 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8442 (tui_display_registers_from, tui_display_reg_element_at_line)
8443 (tui_check_register_values, tui_reg_command): Update.
8444 * tui/tui-layout.c (tui_default_win_height)
8445 (show_source_disasm_command, show_data, init_and_make_win)
8446 (show_source_or_disasm_and_command): Update.
8447 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8448 (tui_redisplay_readline, tui_mld_flush)
8449 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8450 (tui_getc): Update.
8451 * tui/tui-disasm.c (tui_set_disassem_content)
8452 (tui_disasm_window::do_scroll_vertical): Update.
8453 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8454 Now virtual.
8455 (struct tui_win_info): Derive from tui_gen_win_info.
8456 <~tui_win_info>: Mark as override.
8457 <generic>: Remove member.
8458 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8459 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8460 (~tui_data_window, ~tui_win_info)
8461 (tui_free_all_source_wins_content): Update.
8462 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8463
8464 2019-06-25 Tom Tromey <tom@tromey.com>
8465
8466 * tui/tui-layout.c (init_and_make_win): Use new.
8467 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8468 destructor, initializers.
8469 (tui_alloc_generic_win_info): Don't declare.
8470 * tui/tui-data.c (_locator): Add argument to constructor.
8471 (source_win, disasm_win): New globals.
8472 (exec_info): Remove.
8473 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8474 Update.
8475 (tui_alloc_generic_win_info): Remove.
8476 (init_content_element): Use new.
8477 (tui_win_info::tui_win_info): Update.
8478 (free_content_elements) <case DATA_WIN>: Use delete.
8479
8480 2019-06-25 Tom Tromey <tom@tromey.com>
8481
8482 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8483 * tui/tui-windata.c (tui_first_data_item_displayed)
8484 (tui_delete_data_content_windows): Update.
8485 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8486 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8487 (tui_display_registers_from, tui_check_register_values): Update.
8488 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8489 pointer.
8490 * tui/tui-data.c (init_content_element): Update. Allocate the new
8491 window.
8492 (tui_free_data_content): Update.
8493 (free_content_elements) <case DATA_WIN>: Free the window.
8494
8495 2019-06-25 Tom Tromey <tom@tromey.com>
8496
8497 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8498 Update.
8499 * tui/tui-layout.c (make_command_window)
8500 (show_source_disasm_command, show_data, init_and_make_win)
8501 (show_source_or_disasm_and_command): Update.
8502 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8503 method.
8504 <can_highight, is_highlighted>: Now bool.
8505 (tui_set_win_highlight): Don't declare.
8506 * tui/tui-data.c (tui_set_win_highlight): Remove.
8507
8508 2019-06-25 Tom Tromey <tom@tromey.com>
8509
8510 * tui/tui-wingeneral.c (make_visible): Remove check of window
8511 type.
8512
8513 2019-06-25 Tom Tromey <tom@tromey.com>
8514
8515 * tui/tui-win.c (tui_win_info::max_height)
8516 (tui_cmd_window::max_height): New methods.
8517 (new_height_ok): Call max_height.
8518 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8519 <max_height>: New method.
8520
8521 2019-06-25 Tom Tromey <tom@tromey.com>
8522
8523 * tui/tui-win.c (tui_source_window_base::set_new_height)
8524 (tui_data_window::set_new_height): New methods.
8525 (make_invisible_and_set_new_height): Call set_new_height method.
8526 * tui/tui-data.h (struct tui_win_info)
8527 (struct tui_source_window_base, struct tui_data_window)
8528 <set_new_height>: New method.
8529
8530 2019-06-25 Tom Tromey <tom@tromey.com>
8531
8532 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8533 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8534 tui_refresh_data_win.
8535 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8536 method.
8537 (tui_refresh_all_win): Call the refresh_all method.
8538 (tui_set_focus): Likewise.
8539 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8540 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8541 Likewise.
8542
8543 2019-06-25 Tom Tromey <tom@tromey.com>
8544
8545 * tui/tui-winsource.h (tui_refill_source_window)
8546 (tui_set_is_exec_point_at): Don't declare.
8547 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8548 (tui_source_window_base::refill): Rename from
8549 tui_refill_source_window.
8550 (tui_source_window_base::do_scroll_horizontal): Update.
8551 (tui_source_window_base::set_is_exec_point_at): Rename from
8552 tui_set_is_exec_point_at.
8553 (tui_update_all_breakpoint_info): Update.
8554 * tui/tui-stack.c (tui_show_frame_info): Update.
8555 * tui/tui-layout.c (show_data): Add cast.
8556 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8557 * tui/tui-data.h (struct tui_source_window_base) <refill,
8558 set_is_exec_point_at>: New methods.
8559 (tui_source_windows, tui_add_to_source_windows): Update types.
8560 (tui_add_to_source_windows): Remove redundant declaration.
8561 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8562 (tui_source_windows): Change return type.
8563 (tui_clear_source_windows_detail): Update.
8564 (tui_add_to_source_windows): Change type of parameter.
8565 (tui_free_all_source_wins_content): Update.
8566
8567 2019-06-25 Tom Tromey <tom@tromey.com>
8568
8569 * tui/tui-wingeneral.c (tui_win_info::refresh)
8570 (tui_source_window_base::refresh): New methods.
8571 (tui_refresh_all): Call the refresh method.
8572 * tui/tui-data.h (struct tui_win_info)
8573 (struct tui_source_window_base) <refresh>: New method.
8574
8575 2019-06-25 Tom Tromey <tom@tromey.com>
8576
8577 * tui/tui.h (tui_is_window_visible): Return bool.
8578 * tui/tui.c (tui_is_window_visible): Return bool.
8579 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8580 (tui_make_visible, tui_make_invisible)
8581 (tui_win_info::make_visible)
8582 (tui_source_window_base::make_visible, make_all_visible)
8583 (tui_make_all_visible, tui_make_all_invisible): Update.
8584 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8585 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8586 bool.
8587 (struct tui_win_info, struct tui_source_window_base)
8588 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8589 * tui/tui-data.c (tui_init_generic_part): Update.
8590
8591 2019-06-25 Tom Tromey <tom@tromey.com>
8592
8593 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8594 (tui_source_window_base::make_visible): New methods.
8595 (make_all_visible): Make method call.
8596 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8597 (struct tui_source_window_base, struct tui_cmd_window): Override
8598 make_visible.
8599 (tui_win_is_source_type): Don't declare.
8600 * tui/tui-data.c (tui_win_is_source_type): Remove.
8601
8602 2019-06-25 Tom Tromey <tom@tromey.com>
8603
8604 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8605 NULL check.
8606
8607 2019-06-25 Tom Tromey <tom@tromey.com>
8608
8609 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8610 Inline constructor. Add initializers for members.
8611 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8612 constructors; now inline in class.
8613
8614 2019-06-25 Tom Tromey <tom@tromey.com>
8615
8616 * tui/tui-regs.c (tui_show_registers): Update.
8617 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8618 bool.
8619 * tui/tui-data.c (tui_data_window::clear_detail)
8620 (tui_data_window): Update.
8621
8622 2019-06-25 Tom Tromey <tom@tromey.com>
8623
8624 * tui/tui-windata.c (tui_display_all_data)
8625 (tui_display_data_from_line, tui_display_data_from)
8626 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8627 Update.
8628 * tui/tui-regs.c (tui_last_regs_line_no)
8629 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8630 (tui_show_registers, tui_show_register_group)
8631 (tui_display_registers_from, tui_display_reg_element_at_line)
8632 (tui_display_registers_from_line, tui_check_register_values)
8633 (tui_reg_next, tui_reg_prev): Update.
8634 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8635 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8636 tui_data_window.
8637 (struct tui_win_info) <detail>: Remove. Add new fields from
8638 tui_data_info.
8639 (TUI_DATA_WIN): Add cast.
8640 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8641 (~tui_data_window): Simplify.
8642
8643 2019-06-25 Tom Tromey <tom@tromey.com>
8644
8645 * tui/tui-layout.c (show_source_disasm_command)
8646 (show_source_or_disasm_and_command): Update.
8647 * tui/tui-io.c (update_cmdwin_start_line)
8648 (tui_redisplay_readline): Update.
8649 * tui/tui-data.h (struct tui_command_info): Remove.
8650 (struct tui_win_info) <detail>: Remove command_info member.
8651 (struct tui_data_window) <start_line>: New member, from
8652 tui_command_info.
8653 (TUI_CMD_WIN): Add casts.
8654
8655 2019-06-25 Tom Tromey <tom@tromey.com>
8656
8657 * tui/tui-winsource.c (tui_update_source_window)
8658 (tui_refill_source_window)
8659 (tui_source_window_base::do_scroll_horizontal)
8660 (tui_update_breakpoint_info, tui_set_exec_info_content)
8661 (tui_show_exec_info_content, tui_erase_exec_info_content)
8662 (tui_clear_exec_info_content): Update.
8663 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8664 Update.
8665 * tui/tui-win.c (make_invisible_and_set_new_height)
8666 (make_visible_with_new_height): Update.
8667 * tui/tui-source.c (tui_set_source_content)
8668 (tui_show_symtab_source): Update.
8669 * tui/tui-layout.c (extract_display_start_addr)
8670 (show_source_disasm_command, show_data)
8671 (make_source_or_disasm_window)
8672 (show_source_or_disasm_and_command): Update.
8673 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8674 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8675 "gdbarch".
8676 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8677 to tui_source_window_base.
8678 (struct tui_win_info) <detail>: Remove source_info member.
8679 (struct tui_source_window_base) <has_locator>: Inline.
8680 Move contents from tui_source_info; rename has_locator member to
8681 m_has_locator.
8682 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8683 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8684 header file.
8685 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8686 Simplify.
8687 (tui_free_all_source_wins_content): Cast to
8688 tui_source_window_base.
8689
8690 2019-06-25 Tom Tromey <tom@tromey.com>
8691
8692 * tui/tui-win.c (make_invisible_and_set_new_height)
8693 (make_visible_with_new_height): Call has_locator method.
8694 * tui/tui-layout.c (show_source_disasm_command, show_data)
8695 (show_source_or_disasm_and_command): Update for bool change.
8696 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8697 (tui_win_info) <has_locator>: New method.
8698 (struct tui_source_window_base) <has_locator>: New method.
8699 (tui_win_has_locator): Don't declare.
8700 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8701 from tui_win_has_locator.
8702 (tui_source_window_base): Use false, not FALSE.
8703
8704 2019-06-25 Tom Tromey <tom@tromey.com>
8705
8706 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8707 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8708 clear_detail method directly.
8709 (tui_clear_win_detail): Remove.
8710
8711 2019-06-25 Tom Tromey <tom@tromey.com>
8712
8713 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8714 "this", not TUI_DISASM_WIN.
8715
8716 2019-06-25 Tom Tromey <tom@tromey.com>
8717
8718 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8719 declare.
8720 * tui/tui-winsource.c
8721 (tui_source_window_base::do_scroll_horizontal): Rename from
8722 tui_horizontal_source_scroll.
8723 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8724 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8725 from tui_vertical_data_scroll.
8726 * tui/tui-win.h (tui_scroll): Don't declare.
8727 * tui/tui-win.c (tui_win_info::forward_scroll)
8728 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8729 (tui_win_info::right_scroll): Rename and update.
8730 (tui_scroll_forward_command, tui_scroll_backward_command)
8731 (tui_scroll_left_command, tui_scroll_right_command): Update.
8732 (tui_scroll): Remove.
8733 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8734 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8735 from tui_vertical_source_scroll.
8736 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8737 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8738 from tui_vertical_disassem_scroll.
8739 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8740 do_scroll_horizontal>: New methods.
8741 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8742 Likewise.
8743 (struct tui_source_window_base): Add do_scroll_horizontal.
8744 (struct tui_source_window, struct tui_disasm_window): Add
8745 do_scroll_vertical.
8746 (struct tui_data_window, struct tui_cmd_window): Add
8747 do_scroll_horizontal and do_scroll_vertical.
8748 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8749
8750 2019-06-25 Tom Tromey <tom@tromey.com>
8751
8752 * tui/tui-data.h (struct tui_source_window_base): New struct.
8753 (struct tui_source_window): Derive from tui_source_window_base.
8754 (struct tui_disasm_window): New struct.
8755 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8756 from tui_source_window::clear_detail.
8757 (tui_source_window_base): Rename from tui_source_window.
8758 (~tui_source_window_base): Rename from ~tui_source_window.
8759 (tui_alloc_win_info): Create a tui_disasm_window.
8760
8761 2019-06-25 Tom Tromey <tom@tromey.com>
8762
8763 * tui/tui-data.h (struct tui_source_window)
8764 (struct tui_data_window): Declare destructors.
8765 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8766 destructors.
8767 (tui_win_info): Simplify.
8768
8769 2019-06-25 Tom Tromey <tom@tromey.com>
8770
8771 * tui/tui-winsource.c (tui_display_main)
8772 (tui_update_source_windows_with_addr)
8773 (tui_update_all_breakpoint_info): Update.
8774 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8775 (new_height_ok, parse_scrolling_args): Update.
8776 * tui/tui-stack.c (tui_show_frame_info): Update.
8777 * tui/tui-data.h (struct tui_list): Remove.
8778 (tui_source_windows): Return a reference to a std::vector.
8779 * tui/tui-data.c (source_windows): Now a std::vector.
8780 (tui_source_windows): Change return type.
8781 (tui_clear_source_windows): Rewrite.
8782 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8783 (tui_free_all_source_wins_content): Rewrite.
8784
8785 2019-06-25 Tom Tromey <tom@tromey.com>
8786
8787 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8788 (struct tui_data_window, struct tui_cmd_window): Declare
8789 clear_detail method.
8790 * tui/tui-data.c (tui_source_window::clear_detail)
8791 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8792 methods.
8793 (tui_clear_win_detail): Simplify.
8794
8795 2019-06-25 Tom Tromey <tom@tromey.com>
8796
8797 * tui/tui-layout.c (make_source_window, make_disasm_window)
8798 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8799 Return the new window.
8800 (show_source_disasm_command, show_data)
8801 (show_source_or_disasm_and_command): Update.
8802
8803 2019-06-25 Tom Tromey <tom@tromey.com>
8804
8805 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8806 parameter. Return the new window.
8807 (show_source_disasm_command): Update and remove NULL check.
8808 (show_source_or_disasm_and_command): Update.
8809
8810 2019-06-25 Tom Tromey <tom@tromey.com>
8811
8812 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8813
8814 2019-06-25 Tom Tromey <tom@tromey.com>
8815
8816 * tui/tui-data.h (struct tui_win_info): Make constructor
8817 protected. Make destructor virtual. Add initializers.
8818 (tui_source_window, tui_data_window, tui_cmd_window): New
8819 classes.
8820 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8821 constructor. Add "type" parameter.
8822 (tui_source_window, tui_data_window, tui_cmd_window): New
8823 constructors.
8824 (tui_alloc_win_info): Instantiate the appropriate subclass.
8825
8826 2019-06-25 Tom Tromey <tom@tromey.com>
8827
8828 * tui/tui-win.c (tui_resize_all): Use delete.
8829 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8830 destructor.
8831 (tui_free_window): Don't declare.
8832 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8833 Update.
8834
8835 2019-06-25 Tom Tromey <tom@tromey.com>
8836
8837 * tui/tui-data.h (struct tui_win_info): Add constructor.
8838 * tui/tui-data.c (tui_alloc_win_info): Use new.
8839 (tui_free_window): Use delete.
8840
8841 2019-06-22 Tom Tromey <tom@tromey.com>
8842
8843 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8844 declare.
8845 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8846
8847 2019-06-22 Tom Tromey <tom@tromey.com>
8848
8849 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8850 declare.
8851 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8852
8853 2019-06-22 Tom de Vries <tdevries@suse.de>
8854
8855 * dwarf2read.c (create_addrmap_from_aranges)
8856 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8857 instead of '%zu'.
8858
8859 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8860
8861 * dwarf2read.h (dwarf2_section_info_def): Remove.
8862 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8863 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8864 std::vector<dwarf2_section_info>.
8865 (struct dwo_file) <~dwo_file>: Remove.
8866 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8867 types field.
8868 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8869 (dwarf2_read_debug_names): Likewise.
8870 (create_debug_types_hash_table): Change parameter type to
8871 array_view, adjust code accordingly.
8872 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8873 (partial_die_info::fixup): Likewise.
8874 (determine_prefix): Likewise.
8875 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8876
8877 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8878
8879 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8880 gdb_bfd_ref_ptr.
8881 <~dwo_file>: Remove call to gdb_bfd_unref.
8882 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8883 gdb_bfd_ref_ptr::get.
8884
8885 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8886
8887 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8888 type to htab_up.
8889 * dwarf2read.c (struct dwo_file): Initialize fields.
8890 <~dwo_file>: New.
8891 (free_dwo_file): Remove, move content to ~dwo_file.
8892 (struct dwo_file_deleter): Remove.
8893 (dwo_file_up>: Remove custom deleter.
8894 (free_dwo_files): Remove.
8895 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8896 dwo_files.
8897 (process_skeletonless_type_units): Call unique_ptr::get.
8898 (allocate_dwo_file_hash_table): Add deleter to created hash
8899 table. Change return type to htab_up.
8900 (lookup_dwo_file_slot): Don't memset dwo_file, call
8901 unique_ptr::get.
8902 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8903 (create_dwo_unit_in_dwp_v2): Likewise.
8904 (open_and_init_dwo_file): Likewise.
8905 (free_dwo_file_from_slot): Remove.
8906
8907 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8908
8909 * dwarf2read.h (struct dwarf2_section_info) <readin,
8910 is_virtual>: Change type to bool.
8911 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8912 true instead of 1.
8913
8914 2019-06-19 Tom Tromey <tom@tromey.com>
8915
8916 * tui/tui-data.h (tui_init_content_element): Don't declare.
8917
8918 2019-06-19 Tom Tromey <tom@tromey.com>
8919
8920 * tui/tui-data.h (tui_init_win_info): Don't declare.
8921
8922 2019-06-19 Tom de Vries <tdevries@suse.de>
8923
8924 * dwarf2read.h (abstract_to_concrete): Change type to
8925 std::unordered_map<sect_offset, std::vector<sect_offset>,
8926 gdb::hash_enum<sect_offset>>.
8927
8928 2019-06-19 Tom Tromey <tromey@adacore.com>
8929
8930 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8931 EVAL_AVOID_SIDE_EFFECTS specially.
8932
8933 2019-06-19 Tom Tromey <tromey@adacore.com>
8934
8935 * source-cache.c (highlighter): New global.
8936 (source_cache::get_source_lines): Create a highlighter on demand.
8937
8938 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8939
8940 * defs.h (deprecated_interactive_hook): Delete declaration.
8941 * interps.c (clear_interpreter_hooks): Remove use of
8942 deprecated_interactive_hook.
8943 * top.c (deprecated_interactive_hook): Delete definition.
8944 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8945
8946 2019-06-18 Tom de Vries <tdevries@suse.de>
8947
8948 PR gdb/24515
8949 * dwarf2read.h (abstract_to_concrete): Change type from
8950 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8951 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8952 * dwarf2read.c (read_variable): Update.
8953 (dwarf2_fetch_die_loc_sect_off): Update.
8954
8955 2019-06-17 Tom de Vries <tdevries@suse.de>
8956
8957 PR gdb/24617
8958 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8959 accessing parent[parent_len - 1].
8960
8961 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8962
8963 PR gdb/24364
8964 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8965 call dtrace_process_dof with NULL dof.
8966
8967 2019-06-16 Tom de Vries <tdevries@suse.de>
8968
8969 PR gdb/24445
8970 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8971
8972 2019-06-16 Tom Tromey <tom@tromey.com>
8973
8974 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8975 (make_all_visible): Use address of member.
8976
8977 2019-06-16 Tom Tromey <tom@tromey.com>
8978
8979 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8980 (tui_free_window, free_content, free_content_elements): Remove
8981 unnecessary cast.
8982 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8983 cast.
8984 * tui/tui-regs.c (tui_show_register_group)
8985 (tui_display_registers_from, tui_display_reg_element_at_line):
8986 Remove unnecessary cast.
8987
8988 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8989
8990 * linux-nat.c (normal_mask): Delete.
8991 (_initialize_linux_nat): Don't initialise normal_mask.
8992
8993 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8994
8995 PR gdb/24445
8996 * dwarf-index-write.h (write_psymtabs_to_index): Add
8997 dwz_basename parameter.
8998 * dwarf-index-write.c (write_gdbindex): Move file writing to
8999 write_gdbindex_1. Change return type void.
9000 (assert_file_size): Move up, remove filename parameter.
9001 (write_gdbindex_1): New function.
9002 (write_debug_names): Change return type to void, call
9003 assert_file_size.
9004 (struct index_wip_file): New struct.
9005 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9006 file logic to index_wip_file. Write index for dwz file if
9007 needed.
9008 (save_gdb_index_command): Pass basename of dwz file, if present.
9009 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9010 build-id of dwz file, if present.
9011 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9012 (dwarf2_get_dwz_file): Likewise.
9013 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9014 (dwarf2_get_dwz_file): Likewise.
9015
9016 2019-06-16 Tom Tromey <tom@tromey.com>
9017
9018 * coffread.c (process_coff_symbol): Use xstrdup.
9019 * value.c (create_internalvar): Use xstrdup.
9020
9021 2019-06-16 Tom Tromey <tom@tromey.com>
9022
9023 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9024 * breakpoint.c (stopin_command, stopat_command)
9025 (until_break_command, decode_location_default): Remove unnecessary
9026 cast.
9027 * utils.c (subset_compare): Remove unnecessary cast.
9028 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9029 cast.
9030 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9031 cast.
9032 * infcmd.c (path_command): Remove unnecessary cast.
9033 * coffread.c (decode_type): Remove unnecessary cast.
9034 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9035 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9036 * tui/tui-stack.c (tui_show_locator_content)
9037 (tui_show_frame_info): Remove unnecessary cast.
9038 * tui/tui-win.c (tui_scroll_forward_command)
9039 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9040 (parse_scrolling_args): Remove unnecessary cast.
9041 * tui/tui-data.c (init_win_info, tui_del_window)
9042 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9043 (free_content_elements): Remove unnecessary cast.
9044 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9045 unnecessary cast.
9046 * tui/tui-source.c (tui_set_source_content)
9047 (tui_vertical_source_scroll): Remove unnecessary cast.
9048 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9049 cast.
9050 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9051 * tui/tui-regs.c (tui_display_registers_from)
9052 (tui_display_register): Remove unnecessary cast.
9053 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9054 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9055 (make_visible): Remove unnecessary cast.
9056 * tui/tui-winsource.c (tui_erase_source_content)
9057 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9058 unnecessary cast.
9059 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9060 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9061 * stabsread.c (read_type, read_array_type, read_range_type):
9062 Remove unnecessary cast.
9063 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9064 (parse_symbol, parse_type, upgrade_type, parse_external)
9065 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9066 unnecessary cast.
9067 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9068
9069 2019-06-16 Tom Tromey <tom@tromey.com>
9070
9071 * tui/tui-data.c (tui_alloc_generic_win_info)
9072 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9073 checks.
9074
9075 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9076 Andrew Burgess <andrew.burgess@embecosm.com>
9077
9078 * f-typeprint.c (f_print_type): Don't return early for not
9079 associated or not allocated types.
9080 (f_type_print_varspec_suffix): Add print_rank parameter and print
9081 ranks of array types in case they dangling.
9082 (f_type_print_base): Add print_rank parameter.
9083
9084 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9085
9086 * NEWS: Mention new MI commands.
9087 * break-catch-throw.c (enum exception_event_kind): Move to
9088 breakpoint.h.
9089 (print_mention_exception_catchpoint): Output text as a single
9090 message.
9091 (catch_exception_command_1): Rename to...
9092 (catch_exception_event): ...this, make non-static, update header
9093 command, and change some parameter types.
9094 (catch_catch_command): Update for changes to
9095 catch_exception_command_1.
9096 (catch_throw_command): Likewise.
9097 (catch_rethrow_command): Likewise.
9098 * breakpoint.c (enum exception_event_kind): Delete.
9099 * breakpoint.h (enum exception_event_kind): Moved here from
9100 break-catch-throw.c.
9101 (catch_exception_event): Declare.
9102 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9103 (mi_cmd_catch_throw): New function.
9104 (mi_cmd_catch_rethrow): New function.
9105 (mi_cmd_catch_catch): New function.
9106 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9107 'catch-catch' entries.
9108 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9109 (mi_cmd_catch_rethrow): Declare.
9110 (mi_cmd_catch_catch): Declare.
9111
9112 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9113
9114 * annotate.c (annotate_source_line): Change return type to void,
9115 update implementation to match.
9116 * annotate.h (annotate_source_line): Change return type to void,
9117 update header comment.
9118 * stack.c (print_frame_info): Don't change what frame information
9119 is printed based on whether annotations are on or not.
9120
9121 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9122
9123 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9124 (annotate_source): Make static.
9125 (annotate_source_line): Moved from source.c and renamed from
9126 identify_source_line. Update the return type.
9127 * annotate.h (annotate_source): Delete declaration.
9128 (annotate_source_line): Declaration moved from source.h, and
9129 renamed from identify_source_line. Return type updated.
9130 * source.c (identify_source_line): Moved to annotate.c and renamed
9131 to annotate_source_line.
9132 (info_line_command): Remove check of annotation_level.
9133 * source.h (identify_source_line): Move declaration to annotate.h
9134 and rename to annotate_source_line.
9135 * stack.c: Add 'annotate.h' include.
9136 (print_frame_info): Remove check of annotation_level before
9137 calling annotate_source_line.
9138
9139 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9140
9141 * source-cache.c (source_cache::get_plain_source_lines): Use
9142 open_source_file_with_line_charpos instead of just
9143 open_source_file, remove call to find_source_lines.
9144 (source_cache::get_source_lines): Likewise.
9145 * source.c (find_source_lines): Make static.
9146 (get_filename_and_charpos): Renamed into...
9147 (open_source_file_with_line_charpos): ..this along with changes to
9148 return a scoped_fd, and some other minor clean ups.
9149 (identify_source_line): Use open_source_file_with_line_charpos.
9150 (search_command_helper): Use open_source_file_with_line_charpos
9151 instead of just open_source_file, remove call to
9152 find_source_lines.
9153 * source.h (open_source_file_with_line_charpos): Declare new
9154 function.
9155 (find_source_lines): Delete declaration.
9156
9157 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9158
9159 * source.c (get_filename_and_charpos): Remove fullname
9160 parameter.
9161 (identify_source_line): Update call to get_filename_and_charpos.
9162
9163 2019-06-14 Tom Tromey <tromey@adacore.com>
9164
9165 PR gdb/24502:
9166 * ui-style.h (skip_ansi_escape): Update comment.
9167 * ui-file.h (class no_terminal_escape_file): New class.
9168 * ui-file.c (no_terminal_escape_file::write)
9169 (no_terminal_escape_file::puts): New methods.
9170 * cli/cli-logging.c (handle_redirections): Use
9171 no_terminal_escape_file.
9172
9173 2019-06-14 Tom Tromey <tromey@adacore.com>
9174
9175 * NEWS: Move convenience variable news above Python news.
9176
9177 2019-06-14 Tom Tromey <tom@tromey.com>
9178
9179 * gnulib: Move directory to top-level.
9180 * configure.ac: Don't configure gnulib.
9181 * configure: Rebuild.
9182 * common/common-defs.h: Use new path to gnulib.
9183 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9184 (GNULIB_H): Remove.
9185 (INCGNU): Look in new gnulib location.
9186 (HFILES_NO_SRCDIR): Remove gnulib files.
9187 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9188 (generated_files): Remove GNULIB_H.
9189 ($(LIBGNU), all-lib): Remove targets.
9190 (distclean): Don't mention GNULIB_BUILDDIR.
9191 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9192
9193 2019-06-14 Tom Tromey <tromey@adacore.com>
9194
9195 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9196 Warn if symbol file does not provide any symbols.
9197
9198 2019-06-14 Tom Tromey <tromey@adacore.com>
9199
9200 * source.c (find_and_open_source): Respect basenames_may_differ.
9201
9202 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9203
9204 * annotate.c (annotate_breakpoints_invalid): Make use of
9205 scoped_restore_terminal_state.
9206 (annotate_frames_invalid): Likewise.
9207
9208 2019-06-14 Tom Tromey <tromey@adacore.com>
9209
9210 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9211 allow assignment to an internalvar.
9212
9213 2019-06-14 Tom Tromey <tromey@adacore.com>
9214
9215 * ada-lex.l: Allow "_" in attribute names.
9216
9217 2019-06-14 Tom Tromey <tromey@adacore.com>
9218
9219 PR gdb/24653:
9220 * regcache.c (registers_changed): Don't call alloca.
9221 * top.c (execute_command): Don't call alloca.
9222
9223 2019-06-13 Pedro Alves <palves@redhat.com>
9224
9225 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9226 'expression'. When parsing an expression, error out if there's
9227 junk after "unlimited".
9228 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9229 (do_set_command): Adjust calls to is_unlimited_literal.
9230
9231 2019-06-13 Pedro Alves <palves@redhat.com>
9232
9233 * compile/compile.c (make_compile_options_def_group): Add braces
9234 around array_view initializer.
9235 * thread.c (make_thread_apply_all_options_def_group)
9236 (make_thread_apply_all_options_def_group): Likewise.
9237
9238 2019-06-13 Pedro Alves <palves@redhat.com>
9239
9240 * NEWS (New commands): Mention "maint test-options
9241 require-delimiter", "maint test-options unknown-is-error", "maint
9242 test-options unknown-is-operand" and "maint show
9243 test-options-completion-result".
9244 (New command options, command completion): New section.
9245 (Completion improvements): New section.
9246 Mention that you can abbreviate "unlimited".
9247
9248 2019-06-13 Pedro Alves <palves@redhat.com>
9249
9250 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9251 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9252 * unittests/cli-utils-selftests.c (test_parse_flags)
9253 (test_parse_flags_qcs): Delete.
9254 (test_cli_utils): Don't call deleted functions.
9255
9256 2019-06-13 Pedro Alves <palves@redhat.com>
9257
9258 * thread.c: Include "cli/cli-option.h".
9259 (tp_array_compar_ascending): Global.
9260 (tp_array_compar): Delete function.
9261 (tp_array_compar_ascending, tp_array_compar_descending): New
9262 functions.
9263 (ascending_option_def, qcs_flag_option_def)
9264 (thr_qcs_flags_option_defs)
9265 (make_thread_apply_all_options_def_group)
9266 (make_thread_apply_options_def_group): New.
9267 (thread_apply_all_command): Use gdb::option::process_options.
9268 (thread_apply_command_completer)
9269 (thread_apply_all_command_completer): New.
9270 (thread_apply_command): Use gdb::option::process_options.
9271 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9272 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9273 to generate help text of "thread apply". Adjust "taas"'s help.
9274 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9275 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9276
9277 2019-06-13 Pedro Alves <palves@redhat.com>
9278
9279 * thread.c (thread_apply_command): Check for invalid TID with
9280 isdigit instead of !isalpha.
9281
9282 2019-06-13 Pedro Alves <palves@redhat.com>
9283
9284 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9285 (validate_flags_qcs): New.
9286 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9287 (validate_flags_qcs): Declare.
9288 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9289 (make_frame_apply_options_def_group): New.
9290 (frame_apply_command_count): Process options with
9291 gdb::option::process_options.
9292 (frame_apply_completer): New.
9293 (frame_apply_level_completer, frame_apply_all_completer)
9294 (frame_apply_completer): New.
9295 (_initialize_stack): Update help of "frame apply", "frame apply
9296 level", "frame apply all" and "faas" to mention supported options
9297 and install command completers.
9298 * stack.h (frame_apply_all_completer): Declare.
9299 * thread.c: Include "stack.h".
9300 (tfaas_command): Add "--".
9301 (_initialize_thread): Update help "tfaas" to mention supported
9302 options and install command completer.
9303
9304 2019-06-13 Pedro Alves <palves@redhat.com>
9305
9306 * completer.c (complete_nested_command_line): New.
9307 (gdb_completion_word_break_characters_throw): Add assertion.
9308 * completer.h (complete_nested_command_line): Declare.
9309
9310 2019-06-13 Pedro Alves <palves@redhat.com>
9311
9312 * stack.c (parse_backtrace_qualifiers): New.
9313 (backtrace_command): Use it.
9314 (backtrace_command_completer): Complete on qualifiers.
9315
9316 2019-06-13 Pedro Alves <palves@redhat.com>
9317
9318 * frame.c: Include "cli/cli-option.h.
9319 (user_set_backtrace_options): New.
9320 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9321 Delete.
9322 (get_prev_frame): Adjust.
9323 (boolean_option_def, uinteger_option_def)
9324 (set_backtrace_option_defs): New.
9325 (_initialize_frame): Adjust and use
9326 gdb::option::add_setshow_cmds_for_options to install "set
9327 backtrace past-main" and "set backtrace past-entry".
9328 * frame.h: Include "cli/cli-option.h".
9329 (struct frame_print_options): Forward declare.
9330 (print_frame_arguments_all, print_frame_arguments_scalars)
9331 (print_frame_arguments_none): Declare.
9332 (print_entry_values): Delete declaration.
9333 (struct frame_print_options, user_frame_print_options): New.
9334 (struct set_backtrace_options): New.
9335 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9336 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9337 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9338 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9339 (list_args_or_locals): Add frame_print_options parameter.
9340 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9341 * python/py-framefilter.c (enumerate_args): Pass down
9342 USER_FRAME_PRINT_OPTIONS.
9343 * stack.c: Include "cli/cli-option.h".
9344 (print_frame_arguments_all, print_frame_arguments_scalars)
9345 (print_frame_arguments_none): Declare.
9346 (print_raw_frame_arguments, print_entry_values): Delete.
9347 (user_frame_print_options): New.
9348 (boolean_option_def, enum_option_def, frame_print_option_defs):
9349 New.
9350 (struct backtrace_cmd_options): New.
9351 (bt_flag_option_def): New.
9352 (backtrace_command_option_defs): New.
9353 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9354 (print_frame_arg, read_frame_arg, print_frame_args)
9355 (print_frame_info, print_frame): Add frame_print_options parameter
9356 and use it.
9357 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9358 (backtrace_command_1): Add frame_print_options and
9359 backtrace_cmd_options parameters and use them.
9360 (make_backtrace_options_def_group): New.
9361 (backtrace_command): Process command options with
9362 gdb::option::process_options.
9363 (backtrace_command_completer): New.
9364 (_initialize_stack): Extend "backtrace"'s help to mention
9365 supported options. Install completer for "backtrace".
9366 Install some settings commands with add_setshow_cmds_for_options.
9367
9368 2019-06-13 Pedro Alves <palves@redhat.com>
9369
9370 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9371 and that "set/show print raw frame-arguments" are now deprecated.
9372
9373 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9374 command.
9375 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9376 * stack.c (_initialize_stack): Install "set/show print
9377 raw-frame-arguments", and deprecate "set/show print raw
9378 frame-arguments".
9379 * valprint.c (_initialize_valprint): Deprecate "set/show print
9380 raw".
9381
9382 2019-06-13 Pedro Alves <palves@redhat.com>
9383
9384 * compile/compile.c (struct compile_options): New.
9385 (compile_flag_option_def, compile_command_option_defs)
9386 (make_compile_options_def_group): New.
9387 (compile_file_command): Handle options with
9388 gdb::option::process_options.
9389 (compile_file_command_completer): New function.
9390 (compile_code_command): Handle options with
9391 gdb::option::process_options.
9392 (compile_code_command_completer): New function.
9393 (_initialize_compiler): Install completers for "compile code" and
9394 "compile file". Mention available options in "compile code" and
9395 "compile code"'s help.
9396 * completer.c (advance_to_completion_word): New, factored out from
9397 ...
9398 (advance_to_expression_complete_word_point): ... this.
9399 (advance_to_filename_complete_word_point): New.
9400 * completer.h (advance_to_filename_complete_word_point): New
9401 declaration.
9402
9403 2019-06-13 Pedro Alves <palves@redhat.com>
9404
9405 * compile/compile.c: Include "cli/cli-option.h".
9406 (compile_print_value): Scope data pointer is now a
9407 value_print_options pointer; adjust.
9408 (compile_print_command): Process options. Scope data pointer is
9409 now a value_print_options pointer; adjust.
9410 (_initialize_compile): Update "compile print"'s help to include
9411 supported options. Install a completer for "compile print".
9412 * cp-valprint.c (show_vtblprint, show_objectprint)
9413 (show_static_field_print): Delete.
9414 (_initialize_cp_valprint): Don't install "set print
9415 static-members", "set print vtbl", "set print object" here.
9416 * printcmd.c: Include "cli/cli-option.h" and
9417 "common/gdb_optional.h".
9418 (print_command_parse_format): Rework to fill in a
9419 value_print_options instead of a format_data.
9420 (print_value): Change parameter type from format_data pointer to
9421 value_print_options reference. Adjust.
9422 (print_command_1): Process options. Adjust to pass down a
9423 value_print_options.
9424 (print_command_completer): New.
9425 (_initialize_printcmd): Install print_command_completer as
9426 handle_brkchars completer for the "print" command. Update
9427 "print"'s help to include supported options.
9428 * valprint.c: Include "cli/cli-option.h".
9429 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9430 here from cp-valprint.c.
9431 (boolean_option_def, uinteger_option_def)
9432 (value_print_option_defs, make_value_print_options_def_group):
9433 New. Use gdb::option::add_setshow_cmds_for_options to install
9434 "set print elements", "set print null-stop", "set print repeats",
9435 "set print pretty", "set print union", "set print array", "set
9436 print address", "set print symbol", "set print array-indexes".
9437 * valprint.h: Include <string> and "cli/cli-option.h".
9438 (make_value_print_options_def_group): Declare.
9439 (print_value): Change parameter type from format_data pointer to
9440 value_print_options reference.
9441 (print_command_completer): Declare.
9442
9443 2019-06-13 Pedro Alves <palves@redhat.com>
9444
9445 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9446 (COMMON_SFILES): Add maint-test-settings.c.
9447 * cli/cli-decode.c (boolean_enums): New global, factored out from
9448 ...
9449 (add_setshow_boolean_cmd): ... here.
9450 * cli/cli-decode.h (boolean_enums): Declare.
9451 * cli/cli-option.c: New file.
9452 * cli/cli-option.h: New file.
9453 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9454 factored out from ...
9455 (parse_cli_boolean_value(const char *)): ... this.
9456 (is_unlimited_literal): Change parameter type to pointer to
9457 pointer. Adjust and advance ARG pointer.
9458 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9459 (parse_cli_var_enum): New, factored out from ...
9460 (do_set_command): ... this. Adjust.
9461 * cli/cli-setshow.h (parse_cli_boolean_value)
9462 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9463 (parse_cli_var_enum): Declare.
9464 * cli/cli-utils.c: Include "cli/cli-option.h".
9465 (get_ulongest): New.
9466 * cli/cli-utils.h (get_ulongest): Declare.
9467 (check_for_argument): New overloads.
9468 * maint-test-options.c: New file.
9469
9470 2019-06-13 Pedro Alves <palves@redhat.com>
9471
9472 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9473 parse a range if "-" is at the end of the string.
9474
9475 2019-06-13 Pedro Alves <palves@redhat.com>
9476
9477 * cli/cli-setshow.c (parse_auto_binary_operation)
9478 (parse_cli_boolean_value): Don't allow "o".
9479
9480 2019-06-13 Pedro Alves <palves@redhat.com>
9481
9482 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9483 * NEWS: Mention maint test-settings KIND.
9484 * maint-test-settings.c: New file.
9485
9486 2019-06-13 Pedro Alves <palves@redhat.com>
9487
9488 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9489 completer.
9490 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9491 "set" completers.
9492
9493 2019-06-13 Pedro Alves <palves@redhat.com>
9494
9495 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9496 after item.
9497
9498 2019-06-13 Pedro Alves <palves@redhat.com>
9499
9500 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9501
9502 2019-06-13 Pedro Alves <palves@redhat.com>
9503
9504 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9505 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9506 call.
9507 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9508 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9509 calls.
9510 (check_for_argument): Skip spaces after argument.
9511
9512 2019-06-13 Pedro Alves <palves@redhat.com>
9513
9514 * thread.c (thread_apply_command): Adjust TID parsing.
9515 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9516 detected before end of string.
9517 (tid_is_in_list): Error out if LIST is invalid.
9518
9519 2019-06-13 Pedro Alves <palves@redhat.com>
9520
9521 * completer.c (complete_line_internal_1): Rewind completion word
9522 point.
9523 (completion_tracker::advance_custom_word_point_by): Change
9524 parameter type to int.
9525 * completer.h (completion_tracker::advance_custom_word_point_by):
9526 Likewise.
9527
9528 2019-06-13 Pedro Alves <palves@redhat.com>
9529
9530 * completer.c (advance_to_completion_word): Handle delimiters.
9531
9532 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9533
9534 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9535
9536 2019-06-11 Tom Tromey <tom@tromey.com>
9537
9538 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9539 (xmalloc_failed): Move to alloc.c.
9540 * alloc.c: New file.
9541 * Makefile.in (COMMON_SFILES): Add alloc.c.
9542
9543 2019-06-11 Tom Tromey <tom@tromey.com>
9544
9545 * nat/linux-waitpid.c: Don't include server.h.
9546 (linux_debug): Remove.
9547 (my_waitpid): Update.
9548
9549 2019-06-11 Tom Tromey <tromey@adacore.com>
9550
9551 * infcall.c (_initialize_infcall): Remove trailing newline from
9552 help.
9553 * user-regs.c (_initialize_user_regs): Remove trailing newline
9554 from help.
9555 * typeprint.c (_initialize_typeprint): Remove trailing newline
9556 from help.
9557 * reverse.c (_initialize_reverse): Remove trailing newlines from
9558 help.
9559 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9560 from help.
9561 * language.c (add_set_language_command): Remove trailing newline
9562 from help.
9563 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9564 help.
9565 * disasm.c (_initialize_disasm): Remove trailing newline from
9566 help.
9567 * top.c (init_main): Remove trailing newline from help.
9568 * interps.c (_initialize_interpreter): Remove trailing newline
9569 from help.
9570 * btrace.c (_initialize_btrace): Remove trailing newlines from
9571 help.
9572 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9573 from help.
9574 * python/python.c (_initialize_python): Remove trailing newline
9575 from help.
9576 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9577 help.
9578 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9579 from help. Reformat some text.
9580 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9581 from help.
9582 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9583 newline from help.
9584
9585 2019-06-11 Tom Tromey <tromey@adacore.com>
9586
9587 * darwin-nat.c (darwin_decode_exception_message)
9588 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9589
9590 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9591
9592 * valops.c (value_slice): Check for not allocated or not
9593 associated values.
9594
9595 2019-06-10 Tom de Vries <tdevries@suse.de>
9596
9597 PR gdb/24618
9598 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9599 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9600 invalid.
9601
9602 2019-06-10 Tom de Vries <tdevries@suse.de>
9603
9604 PR gdb/24611
9605 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9606 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9607
9608 2019-06-10 Tom de Vries <tdevries@suse.de>
9609
9610 PR symtab/24545
9611 * symtab.c (struct demangled_name_entry): Add language field.
9612 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9613 static minimal symbol". Set and use language field.
9614
9615 2019-06-10 Tom Tromey <tromey@adacore.com>
9616
9617 * ada-lang.c (_initialize_ada_language): Update help text.
9618
9619 2019-06-10 Tom Tromey <tromey@adacore.com>
9620
9621 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9622 with a newline.
9623 * guile/guile.c (handle_boot_error): Don't end warning with a
9624 newline.
9625 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9626 warning with a newline.
9627 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9628 newline.
9629 (s12z_frame_cache): Likewise.
9630 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9631 a newline.
9632 * solib-svr4.c (disable_probes_interface): Don't end warning with
9633 a newline.
9634 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9635 newline.
9636 * python/python.c (do_finish_initialization): Don't end warning
9637 with a newline.
9638
9639 2019-06-10 Tom Tromey <tom@tromey.com>
9640
9641 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9642 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9643 gdbpy_enter.
9644
9645 2019-06-10 Tom Tromey <tromey@adacore.com>
9646
9647 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9648 data.
9649 (elf_new_init): Don't call stabsread_new_init.
9650 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9651 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9652 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9653
9654 2019-06-10 Tom de Vries <tdevries@suse.de>
9655
9656 PR symtab/16264
9657 PR symtab/24517
9658 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9659
9660 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9661
9662 * source.c (find_and_open_source): Also rewrite relative file
9663 names.
9664
9665 2019-04-26 Amos Bird <amosbird@gmail.com>
9666
9667 * annotate.c (annotate_thread_exited): Add "thread-exited"
9668 annotation.
9669
9670 2019-06-06 Tom Tromey <tromey@adacore.com>
9671
9672 * maint.h (class scoped_command_stats): Use
9673 DISABLE_COPY_AND_ASSIGN.
9674 <print_time>: New method.
9675 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9676 print_time.
9677 (scoped_command_stats::print_time): New method.
9678
9679 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9680
9681 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9682 instructions of lengths 6 or 8 bytes.
9683
9684 2019-06-04 Pedro Alves <palves@redhat.com>
9685
9686 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9687
9688 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9689 * breakpoint.c (condition_completer): Likewise.
9690 * cli/cli-dump.c (scan_expression): Likewise.
9691 * common/filestuff.c (mkdir_recursive): Likewise.
9692 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9693 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9694 (gdb_abspath): Likewise.
9695 * compile/compile-cplus-types.c
9696 (compile_cplus_instance::decl_name): Likewise.
9697 * completer.c (complete_explicit_location):
9698 (signal_completer, reg_or_group_completer_1): Likewise.
9699 * cp-support.c (cp_remove_params_if_any): Likewise.
9700 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9701 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9702 * infcmd.c (strip_bg_char): Likewise.
9703 * linespec.c (copy_token_string): Likewise.
9704 * mi/mi-main.c (output_cores): Likewise.
9705 * psymtab.c (psymtab_search_name):
9706 * symfile.c (test_set_ext_lang_command): Likewise.
9707 * target.c (target_fileio_read_stralloc): Likewise.
9708 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9709 * value.c (complete_internalvar): Likewise.
9710
9711 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9712
9713 Add objfile property to gdb.Type.
9714 * NEWS: Mention Python API addition.
9715 * python/py-type.c (typy_get_objfile): New method.
9716
9717 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9718
9719 * NEWS: Mention the new set|show style [title|highlight].
9720 Mention changes to "show style", "help" and "apropos".
9721
9722 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9723
9724 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9725 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9726 instead of print_help_for_command.
9727 (print_doc_of_command): New function.
9728 (help_list): Add 'apropos -v word' suggestion.
9729 (print_help_for_command): Style the command name using title style.
9730 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9731 (_initialize_cli_cmds): Describe -v in apropos_command help.
9732
9733 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9734
9735 * cli/cli-style.h (cli_style_option): Add name in constructor,
9736 add m_name class member, add constructor with intensity,
9737 add name class function.
9738 (cli_style_option::add_setshow_commands): Remove name argument.
9739 (highlight_style, title_style): New styles.
9740 * cli/cli-style.c (do_show): New function that shows a style
9741 characteristic styling the style name with itself.
9742 (set_style_name): New function.
9743 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9744 Update all callers according to the changes in cli/cli-style.h.
9745 * utils.h (fputs_highlighted): New function.
9746 * utils.c (fputs_highlighted): Likewise.
9747
9748 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9749
9750 * NEWS: Mention new pipe command and new convenience variables.
9751
9752 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9753
9754 * cli/cli-cmds.c (pipe_command): New function.
9755 (_initialize_cli_cmds): Call add_com for pipe_command.
9756 Define | as an alias for pipe.
9757 (exit_status_set_internal_vars): New function.
9758 (shell_escape): Call exit_status_set_internal_vars.
9759 cli/cli-decode.c (find_command_name_length): Recognize | as
9760 a single character command.
9761
9762 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9763
9764 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9765 top.c (execute_command_to_ui_file): New function, mostly a copy
9766 of execute_command_to_string.
9767 (execute_command_to_string): Implement by calling
9768 execute_command_to_ui_file.
9769
9770 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9771
9772 * top.h (saved_command_line): Remove declaration.
9773 * top.c (previous_saved_command_line, previous_repeat_arguments):
9774 New variables.
9775 (saved_command_line): Make static, define together with other
9776 'repeat variables'.
9777 (dont_repeat): Clear repeat_arguments.
9778 (repeat_previous, get_saved_command_line, save_command_line):
9779 New functions.
9780 (gdb_init): Initialize saved_command_line
9781 and previous_saved_command_line.
9782 * main.c (captured_main_1): Remove saved_command_line initialization.
9783 * event-top.c (handle_line_of_input): Update to use
9784 the new 'repeat' related functions instead of direct access to
9785 saved_command_line.
9786 * command.h (repeat_previous, get_saved_command_line,
9787 save_command_line): New declarations.
9788 (dont_repeat): Add comment.
9789
9790 2019-05-30 Tom Tromey <tromey@adacore.com>
9791
9792 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9793 Fix comment.
9794 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9795
9796 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9797
9798 PR cli/24587
9799 * completer.c (complete): Initialize variable word.
9800
9801 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9802
9803 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9804 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9805 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9806 'body' is NULL to the outter 'if', protecting the '!is_define'
9807 situation as well.
9808
9809 2019-05-29 Tom Tromey <tromey@adacore.com>
9810
9811 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9812 (dwarf_unknown): New function.
9813 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9814 (dwarf_type_encoding_name): Use dwarf_unknown.
9815
9816 2019-05-29 Tom Tromey <tromey@adacore.com>
9817
9818 PR c++/20020:
9819 * cp-valprint.c (cp_print_value_fields): Call
9820 cp_print_static_field inside "try".
9821
9822 2019-05-29 Tom Tromey <tromey@adacore.com>
9823
9824 * inflow.c (struct terminal_info): Add default operator=.
9825 * configure: Rebuild.
9826 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9827 -Wdeprecated-copy-dtor, -Wredundant-move.
9828
9829 2019-05-29 Tom Tromey <tromey@adacore.com>
9830
9831 * NEWS: Add entry.
9832 * infcmd.c (print_return_value_1): Handle finish_print
9833 option.
9834 (show_print_finish): New function.
9835 (_initialize_infcmd): Add "set/show print finish" commands.
9836 * valprint.c (user_print_options): Initialize new member.
9837 * valprint.h (struct value_print_options) <finish_print>: New
9838 member.
9839
9840 2019-05-28 Tom Tromey <tromey@adacore.com>
9841
9842 * ada-lang.c (ada_remove_Xbn_suffix)
9843 (find_old_style_renaming_symbol)
9844 (parse_old_style_renaming): Remove.
9845 (ada_find_renaming_symbol): Don't call
9846 find_old_style_renaming_symbol.
9847 (ada_is_renaming_symbol): Rename from
9848 ada_find_renaming_symbol. Remove "block" parameter. Return
9849 bool. Now static.
9850 (ada_read_var_value): Update and simplify.
9851 * ada-exp.y (write_var_or_type): Remove old code.
9852
9853 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9854
9855 PR gdb/25010
9856 * event-top.c: Remove include comment.
9857 * inflow.c (class scoped_ignore_sigttou): Move from here...
9858 * inflow.h (class scoped_ignore_sigttou): ...to here.
9859 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9860 * top.c: Remove include comment.
9861
9862 2019-05-27 Tom Tromey <tom@tromey.com>
9863
9864 * NEWS: Fix typo.
9865
9866 2019-05-22 Tom Tromey <tromey@adacore.com>
9867
9868 * target.c (target_follow_exec): Constify parameter.
9869 * target-delegates.c: Rebuild.
9870 * remote.c (remote_target::follow_exec): Constify parameter.
9871 * infrun.c (follow_exec): Constify parameter.
9872 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9873 (target_follow_exec): Likewise.
9874
9875 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9876
9877 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9878 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9879
9880 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9881
9882 * NEWS: Add debugredirect and testsuite sections.
9883
9884 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9885
9886 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9887 target descriptions using exclusively floating point register name
9888 aliases.
9889
9890 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9891
9892 PR gdb/18644:
9893 * f-lang.c (build_fortran_types): Handle the case where
9894 gdbarch_floatformat_for_type returns a nullptr.
9895
9896 2019-05-21 Tom de Vries <tdevries@suse.de>
9897
9898 PR cli/24587
9899 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9900
9901 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9902
9903 PR gdb/18644:
9904 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9905 16-byte floats.
9906 * i386-tdep.c (i386_floatformat_for_type): Use
9907 floatformats_ia64_quad for the 16-byte floating point component
9908 within a fortran 32-byte complex number.
9909
9910 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9911
9912 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9913 delete default constructor.
9914 (find_partial_die): Update to return const struct.
9915 (partial_die_parent_scope): Move variable declaration into scope
9916 of its use and change its type to auto.
9917 (guess_partial_die_structure_name): Likewise.
9918 (partial_die_info::fixup): Likewise.
9919
9920 2019-05-17 Tom Tromey <tromey@adacore.com>
9921
9922 * source.c (find_and_open_source): Remove cast.
9923
9924 2019-05-17 Tom Tromey <tromey@adacore.com>
9925
9926 * annotate.c (annotate_source): Make "filename" const.
9927 * annotate.h (annotate_source): Use const.
9928
9929 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9930
9931 * disasm.c (set_disassembler_options): Send errors to stderr.
9932
9933 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9934
9935 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9936 (cli_interp_base::set_logging): Check debug_redirect.
9937 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9938 * cli/cli-logging.c (debug_redirect): Add static variable.
9939 (pop_output_files): Add default param.
9940 (handle_redirections): Print debug setting.
9941 (show_logging_command): Likewise.
9942 (_initialize_cli_logging): Add debugredirect command.
9943 * interps.c (current_interp_set_logging): Add debug_redirect
9944 parameter.
9945 * interps.h (set_logging): Add debug_redirect parameter.
9946 (current_interp_set_logging): Likewise.
9947 * mi/mi-common.h: Likewise.
9948 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9949
9950 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9951 Tom Tromey <tromey@adacore.com>
9952
9953 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9954 directly.
9955 * cli/cli-interp.h (make_logging_output): Remove declaration.
9956 * cli/cli-logging.c (make_logging_output): Remove function.
9957 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9958 directly.
9959 * ui-file.c (tee_file::tee_file): Remove bools.
9960 (tee_file::~tee_file): Remove deletes.
9961 * ui-file.h (tee_file): Remove bools.
9962
9963 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9964
9965 * mi/mi-cmds.h (mi_cmd_complete): New function.
9966 * mi/mi-main.c (mi_cmd_complete): Likewise.
9967 * mi/mi-cmds.c: Define new MI command -complete.
9968 * NEWS: Mention new -complete command.
9969
9970 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9971
9972 * completer.h (complete): New function.
9973 * completer.c (complete): Likewise.
9974 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9975 function defined in completer.h.
9976
9977 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9978
9979 * MAINTAINERS (Write After Approval): Add myself.
9980
9981 2019-05-17 Tom de Vries <tdevries@suse.de>
9982
9983 PR gdb/24094
9984 * dwarf2read.c (struct cu_partial_die_info): New struct.
9985 (find_partial_die): Return cu_partial_die_info.
9986 (partial_die_parent_scope, guess_partial_die_structure_name)
9987 (partial_die_info::fixup): Handle new return type of find_partial_die.
9988
9989 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9990
9991 PR breakpoints/24541
9992 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9993 "std::string", simplifying the algorithm.
9994
9995 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9996
9997 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9998 (stap_static_probe_ops::get_probes): Likewise.
9999
10000 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10001
10002 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10003 '-')" and "else if".
10004 (stap_parse_single_operand): Join checks for
10005 "gdbarch_stap_parse_special_token_p" and
10006 "gdbarch_stap_parse_special_token" in the same "if" statement.
10007 Invert check when verifying for operation on register
10008 displacement.
10009
10010 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10011
10012 * stap-probe.c (stap_get_opcode): Update comment.
10013 (stap_get_expected_argument_type): Likewise.
10014 (handle_stap_probe): Likewise.
10015
10016 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10017
10018 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10019 return type to 'bool'. Adjust comment. Use 'bool' when
10020 appropriate.
10021 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10022 * stap-probe.c (stap_parse_argument_1): Likewise.
10023 (stap_is_operator): Likewise.
10024 (stap_is_generic_prefix): Likewise.
10025 (stap_is_register_prefix): Likewise.
10026 (stap_is_register_indirection_prefix): Likewise.
10027 (stap_is_integer_prefix): Likewise.
10028 (stap_generic_check_suffix): Likewise.
10029 (stap_check_integer_suffix): Likewise.
10030 (stap_check_register_suffix): Likewise.
10031 (stap_check_register_indirection_suffix): Likewise.
10032 (stap_parse_register_operand): Likewise.
10033 (stap_parse_single_operand): Likewise.
10034 (stap_parse_argument_1): Likewise.
10035 (stap_probe::get_argument_count): Likewise.
10036 (stap_is_operator): Likewise.
10037
10038 2019-05-16 Tom Tromey <tromey@adacore.com>
10039
10040 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10041 keyword to foreach.
10042
10043 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10044
10045 * linux-thread-db.c (try_thread_db_load_1): Change return type
10046 to bool.
10047 (try_thread_db_load): Likewise.
10048 (try_thread_db_load_from_pdir_1): Likewise.
10049 (try_thread_db_load_from_pdir): Likewise.
10050 (try_thread_db_load_from_sdir): Likewise.
10051 (try_thread_db_load_from_dir): Likewise.
10052 (thread_db_load_search): Likewise.
10053 (has_libpthread): Likewise.
10054 (thread_db_load): Likewise.
10055
10056 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10057
10058 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10059 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10060 NULL, and complain/return if that's the case.
10061
10062 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10063
10064 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10065 (advance, posn, abstract_read_memory): New functions.
10066 [struct mem_read_abstraction]: New struct.
10067 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10068
10069 2019-05-14 Tom Tromey <tromey@adacore.com>
10070
10071 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10072 value is not lval_memory.
10073
10074 2019-05-14 Tom Tromey <tromey@adacore.com>
10075
10076 * solib.c (info_sharedlibrary_command): Style the file name.
10077
10078 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10079
10080 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10081 (aarch64_vnv_type): Likewise.
10082 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10083 * common/tdesc.c: Likewise.
10084 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10085 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10086 * features/aarch64-fpu.xml: Add ieee half view.
10087 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10088 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10089 * gdbtypes.h (struct builtin_type): Likewise.
10090 (struct objfile_type): Likewise.
10091
10092 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10093
10094 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10095 typo.
10096 * location.h (string_to_event_location): Likewise.
10097
10098 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10099
10100 GDB 8.3 released.
10101
10102 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10103
10104 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10105 New variable declaration.
10106 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10107 New variable.
10108 (print_one_breakpoint): Use ui_out::test_flags and new global
10109 variable to compute use_fixed_output.
10110 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10111 Remove.
10112 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10113 (mi_multi_location_breakpoint_output_fixed): Remove.
10114 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10115 new variable.
10116 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10117 fix_multi_location_breakpoint_output flag if version >= 3.
10118 * ui-out.h (enum ui_out_flag)
10119 <fix_multi_location_breakpoint_output>: New enumerator.
10120
10121 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10122
10123 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10124
10125 2019-05-10 Tom Tromey <tromey@adacore.com>
10126
10127 * ada-lang.c (catch_ada_completer): New function.
10128 (_initialize_ada_language): Use it.
10129
10130 2019-05-10 Tom Tromey <tromey@adacore.com>
10131
10132 * thread.c (print_thread_info): Make "requested_threads" const.
10133 * gdbthread.h (print_thread_info): Make "requested_threads"
10134 const.
10135 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10136 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10137
10138 2019-05-08 Tom Tromey <tom@tromey.com>
10139
10140 * gdbtypes.c (objfile_type_data): Change type.
10141 (objfile_type, _initialize_gdbtypes): Update.
10142
10143 2019-05-08 Tom Tromey <tom@tromey.com>
10144
10145 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10146 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10147 (_initialize_dwarf2_frame): Update.
10148
10149 2019-05-08 Tom Tromey <tom@tromey.com>
10150
10151 * objc-lang.c (objc_objfile_data): Change type.
10152 (find_methods): Update.
10153 (_initialize_objc_lang): Remove.
10154
10155 2019-05-08 Tom Tromey <tom@tromey.com>
10156
10157 * stabsread.c (rs6000_builtin_type_data): Change type.
10158 (rs6000_builtin_type, _initialize_stabsread): Update.
10159
10160 2019-05-08 Tom Tromey <tom@tromey.com>
10161
10162 * mips-tdep.c (mips_pdr_data): Remove.
10163 (_initialize_mips_tdep): Update.
10164
10165 2019-05-08 Tom Tromey <tom@tromey.com>
10166
10167 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10168 (hppa_init_objfile_priv_data, read_unwind_info)
10169 (find_unwind_entry, _initialize_hppa_tdep): Update.
10170
10171 2019-05-08 Tom Tromey <tom@tromey.com>
10172
10173 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10174 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10175 on obstack.
10176 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10177
10178 2019-05-08 Tom Tromey <tom@tromey.com>
10179
10180 * mdebugread.c (basic_type_data): Change type.
10181 (basic_type, _initialize_mdebugread): Update.
10182
10183 2019-05-08 Tom Tromey <tom@tromey.com>
10184
10185 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10186
10187 2019-05-08 Tom Tromey <tom@tromey.com>
10188
10189 * nto-tdep.c (nto_inferior_data_reg): Change type.
10190 (nto_inferior_data): Update.
10191 (nto_inferior_data_cleanup, nto_new_inferior_data)
10192 (_initialize_nto_tdep): Remove.
10193 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10194
10195 2019-05-08 Tom Tromey <tom@tromey.com>
10196
10197 * ada-lang.c (struct ada_inferior_data): Add initializers.
10198 (ada_inferior_data): Change type.
10199 (ada_inferior_data_cleanup): Remove.
10200 (get_ada_inferior_data, ada_inferior_exit)
10201 (struct ada_pspace_data): Add initializers, destructor.
10202 (ada_pspace_data_handle): Change type.
10203 (get_ada_pspace_data): Update.
10204 (ada_pspace_data_cleanup): Remove.
10205
10206 2019-05-08 Tom Tromey <tom@tromey.com>
10207
10208 * coffread.c (struct coff_symfile_info): Add initializers.
10209 (coff_objfile_data_key): Move lower. Change type.
10210 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10211 Update.
10212 (coff_free_info): Remove.
10213
10214 2019-05-08 Tom Tromey <tom@tromey.com>
10215
10216 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10217 (fbsd_pspace_data_handle): Move lower. Change type.
10218 (get_fbsd_pspace_data): Update.
10219 (fbsd_pspace_data_cleanup): Remove.
10220 (_initialize_fbsd_tdep): Update.
10221
10222 2019-05-08 Tom Tromey <tom@tromey.com>
10223
10224 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10225 (get_ada_tasks_pspace_data): Update.
10226 (ada_tasks_pspace_data_cleanup): Remove.
10227 (_initialize_tasks): Update.
10228 (ada_tasks_inferior_data_handle): Change type.
10229 (get_ada_tasks_inferior_data): Update.
10230 (ada_tasks_inferior_data_cleanup): Remove.
10231 (struct ada_tasks_pspace_data): Add initializers.
10232
10233 2019-05-08 Tom Tromey <tom@tromey.com>
10234
10235 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10236 * symfile-debug.c (debug_sym_get_probes): Change type.
10237 * stap-probe.c (handle_stap_probe):
10238 (stap_static_probe_ops::get_probes): Change type.
10239 * probe.h (class static_probe_ops) <get_probes>: Change type.
10240 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10241 (parse_probes_in_pspace): Update.
10242 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10243 Update.
10244 (any_static_probe_ops::get_probes): Change type.
10245 * elfread.c (elfread_data): New typedef.
10246 (probe_key): Change type.
10247 (elf_get_probes): Likewise. Update.
10248 (probe_key_free): Remove.
10249 (_initialize_elfread): Update.
10250 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10251 Change type.
10252 (dtrace_process_dof_probe, dtrace_process_dof)
10253 (dtrace_static_probe_ops::get_probe): Change type.
10254
10255 2019-05-08 Tom Tromey <tom@tromey.com>
10256
10257 * xcoffread.c (struct xcoff_symfile_info): Rename from
10258 coff_symfile_info. Add initializers.
10259 (xcoff_objfile_data_key): Move lower. Change type.
10260 (XCOFF_DATA): Rewrite.
10261 (xcoff_free_info): Remove.
10262 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10263 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10264 (xcoff_initial_scan): Update.
10265
10266 2019-05-08 Tom Tromey <tom@tromey.com>
10267
10268 * solib-svr4.c (struct svr4_info): Add initializers and
10269 destructor.
10270 <probes_table>: Now an htab_up.
10271 (solib_svr4_pspace_data): Change type.
10272 (free_probes_table): Simplify.
10273 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10274 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10275 (probes_table_remove_objfile_probes, register_solib_event_probe)
10276 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10277 (_initialize_svr4_solib): Update.
10278
10279 2019-05-08 Tom Tromey <tom@tromey.com>
10280
10281 * remote.c (remote_pspace_data): Change type.
10282 (remote_pspace_data_cleanup): Remove.
10283 (get_remote_exec_file, set_pspace_remote_exec_file)
10284 (_initialize_remote): Update.
10285
10286 2019-05-08 Tom Tromey <tom@tromey.com>
10287
10288 * breakpoint.c (breakpoint_objfile_key): Change type.
10289 (get_breakpoint_objfile_data): Update.
10290 (free_breakpoint_objfile_data): Remove.
10291 (_initialize_breakpoint): Update.
10292
10293 2019-05-08 Tom Tromey <tom@tromey.com>
10294
10295 * linux-tdep.c (struct linux_info): Add initializers.
10296 (linux_inferior_data): Move. Change type.
10297 (invalidate_linux_cache_inf): Update.
10298 (linux_inferior_data_cleanup): Remove.
10299 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10300
10301 2019-05-08 Tom Tromey <tom@tromey.com>
10302
10303 * auxv.c (auxv_inferior_data): Move. Change type.
10304 (auxv_inferior_data_cleanup): Remove.
10305 (invalidate_auxv_cache_inf): Rewrite.
10306 (get_auxv_inferior_data, _initialize_auxv): Update.
10307
10308 2019-05-08 Tom Tromey <tom@tromey.com>
10309
10310 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10311 (symfile_debug_objfile_data_key): Change type.
10312 (symfile_debug_installed, debug_qf_has_symbols)
10313 (debug_qf_find_last_source_symtab)
10314 (debug_qf_forget_cached_source_info)
10315 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10316 (debug_qf_print_stats, debug_qf_dump)
10317 (debug_qf_expand_symtabs_for_function)
10318 (debug_qf_expand_all_symtabs)
10319 (debug_qf_expand_symtabs_with_fullname)
10320 (debug_qf_map_matching_symbols)
10321 (debug_qf_expand_symtabs_matching)
10322 (debug_qf_find_pc_sect_compunit_symtab)
10323 (debug_qf_map_symbol_filenames)
10324 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10325 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10326 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10327 (debug_sym_read_linetable, debug_sym_relocate): Update.
10328 (symfile_debug_free_objfile): Remove.
10329 (install_symfile_debug_logging, _initialize_symfile_debug):
10330 Update.
10331
10332 2019-05-08 Tom Tromey <tom@tromey.com>
10333
10334 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10335 allocate_on_obstack.
10336 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10337 (get_dwarf2_per_objfile): Update.
10338 (set_dwarf2_per_objfile): Remove.
10339 (dwarf2_has_info, dwarf2_get_section_info): Update.
10340 (dwarf2_free_objfile): Remove.
10341 (_initialize_dwarf2_read): Update.
10342
10343 2019-05-08 Tom Tromey <tom@tromey.com>
10344
10345 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10346 initializers.
10347 <unsupported_script_warning_printed,
10348 script_not_found_warning_printed>: Now bool.
10349 (auto_load_pspace_data): Change type.
10350 (~auto_load_pspace_info): Rename from
10351 auto_load_pspace_data_cleanup.
10352 (get_auto_load_pspace_data, init_loaded_scripts_info)
10353 (clear_section_scripts, maybe_print_unsupported_script_warning)
10354 (maybe_print_script_not_found_warning, _initialize_auto_load):
10355 Update.
10356
10357 2019-05-08 Tom Tromey <tom@tromey.com>
10358
10359 * objfiles.c (objfile_pspace_info): Add destructor and
10360 initializers.
10361 (objfiles_pspace_data): Change type.
10362 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10363 (get_objfile_pspace_data): Update.
10364 (objfiles_bfd_data): Change type.
10365 (get_objfile_bfd_data): Update.
10366 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10367
10368 2019-05-08 Tom Tromey <tom@tromey.com>
10369
10370 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10371 Change type.
10372 (get_catch_syscall_inferior_data): Update.
10373 (catch_syscall_inferior_data_cleanup): Remove.
10374 (_initialize_break_catch_syscall): Update.
10375
10376 2019-05-08 Tom Tromey <tom@tromey.com>
10377
10378 * inflow.c (struct terminal_info): Add destructor and
10379 initializers.
10380 (inflow_inferior_data): Change type.
10381 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10382 (get_inflow_inferior_data, inflow_inferior_exit)
10383 (swap_terminal_info, _initialize_inflow): Update.
10384
10385 2019-05-08 Tom Tromey <tom@tromey.com>
10386
10387 * target-dcache.c (target_dcache_cleanup): Remove.
10388 (target_dcache_aspace_key): Change type.
10389 (target_dcache_init_p, target_dcache_invalidate)
10390 (target_dcache_get, target_dcache_get_or_init)
10391 (_initialize_target_dcache): Update.
10392 * dcache.h (struct dcache_deleter): New.
10393
10394 2019-05-08 Tom Tromey <tom@tromey.com>
10395
10396 * symtab.c (struct symbol_cache): Add destructor and
10397 initializers.
10398 (symbol_cache_key): Move. Change type.
10399 (make_symbol_cache, free_symbol_cache): Remove.
10400 (get_symbol_cache): Update.
10401 (symbol_cache_cleanup): Remove.
10402 (ALL_PSPACES, symbol_cache_flush)
10403 (maintenance_print_symbol_cache)
10404 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10405 Update.
10406
10407 2019-05-08 Tom Tromey <tom@tromey.com>
10408
10409 * symtab.c (struct main_info): Add destructor and initializers.
10410 (main_progspace_key): Move. Change type.
10411 (get_main_info): Update.
10412 (main_info_cleanup): Remove.
10413 (_initialize_symtab): Update.
10414
10415 2019-05-08 Tom Tromey <tom@tromey.com>
10416
10417 * registry.h (DECLARE_REGISTRY): Define the _key class.
10418
10419 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10420
10421 * NEWS: Merge two 'New commands' sections.
10422
10423 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10424
10425 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10426 parameter and use Ada language definition instead.
10427 (ada_val_print_ptr): Remove unused language parameter.
10428 (ada_val_print_num): Remove language parameter and use Ada language
10429 definition instead.
10430 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10431 parameter.
10432 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10433 parameter and use Ada language definition instead.
10434 (ada_val_print_1): Update all ada_val_print_xxx calls.
10435 Remove language parameter.
10436 (ada_val_print): Update ada_val_print_1 call.
10437
10438 2019-05-08 Tom Tromey <tromey@adacore.com>
10439
10440 * remote.c (remote_hw_watchpoint_limit)
10441 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10442 Now static.
10443
10444 2019-05-08 Tom Tromey <tromey@adacore.com>
10445
10446 * maint.c (_initialize_maint_cmds): Move initialization code to
10447 remote.c.
10448 (watchdog, show_watchdog): Move to remote.c.
10449 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10450 "watchdog" static.
10451 (_initialize_remote): Move initialization code from maint.c.
10452 * defs.h (watchdog): Don't declare.
10453
10454 2019-05-08 Tom Tromey <tromey@adacore.com>
10455
10456 * tui/tui-interp.c: Include main.h.
10457 * interps.c: Include main.h.
10458 * main.h (interpreter_p): Declare.
10459 * defs.h (interpreter_p): Don't declare.
10460
10461 2019-05-08 Tom Tromey <tromey@adacore.com>
10462
10463 * dwarf2loc.c: Include dwarf2read.h.
10464 * defs.h (read_unsigned_leb128): Don't declare.
10465 * dwarf2read.h (read_unsigned_leb128): Declare.
10466
10467 2019-05-08 Tom Tromey <tromey@adacore.com>
10468
10469 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10470 method.
10471
10472 2019-05-08 Tom Tromey <tromey@adacore.com>
10473
10474 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10475 when no wrap column is set.
10476
10477 2019-05-08 Tom Tromey <tromey@adacore.com>
10478
10479 * c-lang.c (c_get_string): Handle non-C-style arrays.
10480
10481 2019-05-08 Tom Tromey <tromey@adacore.com>
10482
10483 * typeprint.c (print_offset_data::update): Print the bit offset,
10484 not the number of bits remaining.
10485
10486 2019-05-08 Tom Tromey <tromey@adacore.com>
10487
10488 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10489 padding at end of comment.
10490
10491 2019-05-08 Tom Tromey <tromey@adacore.com>
10492
10493 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10494 Compare main types.
10495
10496 2019-05-06 Tom Tromey <tom@tromey.com>
10497
10498 * common/scoped_mmap.c: Include common-defs.h.
10499 * common/scoped_mmap.h: Don't include config.h.
10500
10501 2019-05-04 Tom Tromey <tom@tromey.com>
10502
10503 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10504 (struct aarch64_call_info): Add initializers.
10505 <si>: Now a std::vector.
10506 (pass_on_stack, aarch64_push_dummy_call): Update.
10507
10508 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10509 Tom Tromey <tom@tromey.com>
10510
10511 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10512 (ppc_threads): Now a std::vector. Now static.
10513 (hwdebug_find_thread_points_by_tid)
10514 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10515 Update.
10516
10517 2019-05-04 Tom Tromey <tom@tromey.com>
10518
10519 * arc-tdep.c (arc_tdesc_init): Return bool.
10520
10521 2019-05-04 Tom Tromey <tom@tromey.com>
10522
10523 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10524 Use gdb_assert_not_reached.
10525
10526 2019-05-04 Tom Tromey <tom@tromey.com>
10527
10528 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10529 "false".
10530
10531 2019-05-04 Tom Tromey <tom@tromey.com>
10532
10533 * arc-tdep.c (arc_tdesc_init): Use bool.
10534
10535 2019-05-04 Tom Tromey <tom@tromey.com>
10536
10537 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10538
10539 2019-05-04 Tom Tromey <tom@tromey.com>
10540
10541 * cli/cli-cmds.c (valid_command_p): Return bool.
10542
10543 2019-05-04 Tom Tromey <tom@tromey.com>
10544
10545 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10546 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10547
10548 2019-05-04 Raul Tambre <raul@tambre.ee>
10549
10550 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10551 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10552 operator for comparison.
10553
10554 2019-05-04 Tom Tromey <tom@tromey.com>
10555
10556 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10557 (lookup_partial_symbol, print_partial_symbols)
10558 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10559 (psymbol_compare): Update.
10560 (add_psymbol_to_bcache): Clear the entire psymbol.
10561 (maintenance_check_psymtabs): Update.
10562 * psympriv.h (struct partial_symbol): Don't derive from
10563 general_symbol_info.
10564 <obj_section, unrelocated_address, address,
10565 set_unrelocated_address>: Update.
10566 <ginfo>: New member.
10567 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10568 (debug_names::write_psymbols): Update.
10569
10570 2019-05-04 Tom de Vries <tdevries@suse.de>
10571
10572 * contrib/cc-with-tweaks.sh: Support -n arg.
10573
10574 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10575
10576 * corelow.c (core_target::detach): Ensure frame cache and
10577 register caches are cleared.
10578 inferior.c (exit_inferior_1): Likewise.
10579
10580 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10581 Tom Tromey <tom@tromey.com>
10582
10583 * dictionary.c (collate_pending_symbols_by_language): Remove
10584 "struct" from foreach.
10585 * symtab.c (lookup_global_symbol_from_objfile)
10586 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10587 foreach.
10588 * ser-tcp.c (net_open): Remove "struct" from foreach.
10589 * objfiles.c (objfile_relocate, objfile_rebase)
10590 (objfile_has_symbols): Remove "struct" from foreach.
10591 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10592 from foreach.
10593 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10594 foreach.
10595 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10596 "struct" from foreach.
10597 * ada-lang.c (create_excep_cond_exprs)
10598 (ada_exception_catchpoint_cond_string): Remove "struct" from
10599 foreach.
10600
10601 2019-05-03 Tom Tromey <tromey@adacore.com>
10602
10603 * ada-exp.y (convert_char_literal): Check suffix of each
10604 enumerator.
10605
10606 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10607
10608 PR ada/21406:
10609 * ada-exp.y (yywrap): Don't define.
10610 * ada-lex.l (%option): Add noyywrap
10611 (yywrap): Remove.
10612
10613 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10614
10615 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10616 _WIN32_WINNT to the XP level, unless already defined to a higher
10617 level.
10618
10619 * unittests/parse-connection-spec-selftests.c:
10620 * ser-tcp.c:
10621 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10622 override.
10623
10624 * symfile.c (find_separate_debug_file): Remove colon from the
10625 drive spec of DOS/Windows file names of the target, so that the
10626 file name produced from DEBUGDIR and the target's directory will
10627 be valid on DOS/Windows systems.
10628
10629 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10630
10631 * rust-lang.c (val_print_struct): Handle printing structures
10632 containing strings.
10633
10634 2019-05-02 Tom Tromey <tromey@adacore.com>
10635
10636 * valarith.c (_initialize_valarith): Remove.
10637
10638 2019-05-01 Tom Tromey <tromey@adacore.com>
10639
10640 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10641 bitfields.
10642
10643 2019-05-01 Tom Tromey <tromey@adacore.com>
10644
10645 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10646 for big-endian copies.
10647
10648 2019-04-30 Ali Tamur <tamur@google.com>
10649 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10650 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10651 (read_3_bytes): New function.
10652
10653 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10654
10655 * windows-nat.c (main_thread_id): Delete.
10656 (handle_output_debug_string): Replace main_thread_id by
10657 current_event.dwThreadId.
10658 (fake_create_process): Likewise.
10659 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10660 Do not set main_thread_id.
10661 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10662 current_event.dwThreadId.
10663 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10664
10665 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10666
10667 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10668 Use current_event.dwThreadId instead of main_thread_id.
10669
10670 2019-04-30 Tom Tromey <tromey@adacore.com>
10671
10672 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10673 (create_excep_cond_exprs): Iterate over program spaces.
10674 (ada_exception_catchpoint_cond_string): Examine all minimal
10675 symbols for exception types.
10676
10677 2019-04-30 Tom Tromey <tromey@adacore.com>
10678
10679 PR c++/24470:
10680 * dwarf2read.c (process_structure_scope): Handle case where type
10681 has template parameters but no symbol was created.
10682
10683 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10684 Chris January <chris.january@arm.com>
10685
10686 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10687 qualifier.
10688 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10689
10690 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10691
10692 * f-typeprint.c (f_print_type): Update rules for printing
10693 whitespace.
10694 (f_type_print_varspec_suffix): Likewise.
10695
10696 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10697 Chris January <chris.january@arm.com>
10698
10699 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10700 function arguments.
10701
10702 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10703
10704 * f-lang.c (build_fortran_types): Change name of void type to
10705 lower case.
10706 * f-typeprint.c (f_type_print_base): Print the name of the void
10707 type, rather than a fixed string.
10708 * f-valprint.c (f_decorations): Use lower case void string.
10709
10710 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10711 Chris January <chris.january@arm.com>
10712
10713 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10714 types for Fortran.
10715
10716 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10717 Chris January <chris.january@arm.com>
10718 David Lecomber <david.lecomber@arm.com>
10719
10720 * f-exp.y (BINOP_INTRINSIC): New token.
10721 (exp): New parser rule handling BINOP_INTRINSIC.
10722 (f77_keywords): Add new builtin procedures.
10723 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10724 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10725 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10726 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10727 (print_unop_subexp_f): New function.
10728 (print_binop_subexp_f): New function.
10729 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10730 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10731 (dump_subexp_body_f): Likewise.
10732 (operator_check_f): Likewise.
10733 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10734 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10735
10736 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10737
10738 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10739 UNOP_KIND.
10740 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10741 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10742 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10743 (operator_length_f): New fuction.
10744 (print_subexp_f): New function.
10745 (op_name_f): New function.
10746 (dump_subexp_body_f): New function.
10747 (operator_check_f): New function.
10748 (exp_descriptor_f): Replace standard expression handling functions
10749 with new functions.
10750 * gdb/fortran-operator.def: New file.
10751 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10752 * gdb/std-operator.def: Remove UNOP_KIND.
10753
10754 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10755
10756 * std-operator.def: Remove unbalanced, stray double quote
10757 character.
10758
10759 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10760 Chris January <chris.january@arm.com>
10761 Daniel Everett <daniel.everett@arm.com>
10762 Nick Forrington <nick.forrington@arm.com>
10763 Richard Bunt <richard.bunt@arm.com>
10764
10765 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10766 of depth when printing anonymous structs or unions.
10767 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10768 Don't print either the top-level value, or the children if the
10769 max-depth is exceeded.
10770 (ppscm_print_children): When printing the key of a map, allow one
10771 extra level of depth.
10772 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10773 print either the top-level value, or the children if the max-depth
10774 is exceeded.
10775 (print_children): When printing the key of a map, allow one extra
10776 level of depth.
10777 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10778 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10779 (user_print_options): Initialise max_depth field.
10780 (val_print_scalar_or_string_type_p): New function.
10781 (val_print): Check to see if the max depth has been reached.
10782 (val_print_check_max_depth): Define new function.
10783 (show_print_max_depth): New function.
10784 (_initialize_valprint): Add 'print max-depth' option.
10785 * valprint.h (struct value_print_options) <max_depth>: New field.
10786 (val_print_check_max_depth): Declare new function.
10787 * NEWS: Document new feature.
10788
10789 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10790
10791 * ada-lang.c (ada_language_defn): Initialise new field.
10792 * c-lang.c (c_is_string_type_p): New function.
10793 (c_language_defn): Initialise new field.
10794 (cplus_language_defn): Initialise new field.
10795 (asm_language_defn): Initialise new field.
10796 (minimal_language_defn): Initialise new field.
10797 * c-lang.h (c_is_string_type_p): Declare new function.
10798 * d-lang.c (d_language_defn): Initialise new field.
10799 * f-lang.c (f_is_string_type_p): New function.
10800 (f_language_defn): Initialise new field.
10801 * go-lang.c (go_is_string_type_p): New function.
10802 (go_language_defn): Initialise new field.
10803 * language.c (default_is_string_type_p): New function.
10804 (unknown_language_defn): Initialise new field.
10805 (auto_language_defn): Initialise new field.
10806 * language.h (struct language_defn) <la_is_string_type_p>: New
10807 member variable.
10808 (default_is_string_type_p): Declare new function.
10809 * m2-lang.c (m2_language_defn): Initialise new field.
10810 * objc-lang.c (objc_language_defn): Initialise new field.
10811 * opencl-lang.c (opencl_language_defn): Initialise new field.
10812 * p-lang.c (pascal_is_string_type_p): New function.
10813 (pascal_language_defn): Initialise new field.
10814 * rust-lang.c (rust_is_string_type_p): New function.
10815 (rust_language_defn): Initialise new field.
10816
10817 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10820 New field.
10821 * ada-lang.c (ada_language_defn): Initialise new field.
10822 * c-lang.c (c_language_defn): Likewise.
10823 (cplus_language_defn): Likewise.
10824 (asm_language_defn): Likewise.
10825 (minimal_language_defn): Likewise.
10826 * d-lang.c (d_language_defn): Likewise.
10827 * f-lang.c (f_language_defn): Likewise.
10828 * go-lang.c (go_language_defn): Likewise.
10829 * language.c (unknown_language_defn): Likewise.
10830 (auto_language_defn): Likewise.
10831 * m2-lang.c (m2_language_defn): Likewise.
10832 * objc-lang.c (objc_language_defn): Likewise.
10833 * opencl-lang.c (opencl_language_defn): Likewise.
10834 * p-lang.c (pascal_language_defn): Likewise.
10835 * rust-lang.c (rust_language_defn): Likewise.
10836
10837 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10838
10839 * ada-lang.c (ada_is_character_type): Change return type to bool.
10840 (ada_is_string_type): Likewise.
10841 * ada-lang.h (ada_is_character_type): Update declaration
10842 (ada_is_string_type): Likewise.
10843
10844 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10845
10846 Support style in 'frame|thread apply'
10847
10848 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10849 * record.c (record_start, record_stop): Update callers of
10850 execute_command_to_string with false.
10851 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10852 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10853 methods.
10854 (class string_file): New constructor with term_out parameter.
10855 Override methods term_out and can_emit_style_escape. New member
10856 term_out.
10857 (class stdio_file): Override can_emit_style_escape.
10858 (class tee_file): Override term_out and can_emit_style_escape.
10859 * utils.h (can_emit_style_escape): Remove.
10860 * utils.c (can_emit_style_escape): Likewise.
10861 Update all callers of can_emit_style_escape (SOMESTREAM) to
10862 SOMESTREAM->can_emit_style_escape.
10863 * source-cache.c (source_cache::get_source_lines): Likewise.
10864 * stack.c (frame_apply_command_count): Call execute_command_to_string
10865 passing the term_out characteristic of the current gdb_stdout.
10866 * thread.c (thr_try_catch_cmd): Likewise.
10867 * top.c (execute_command_to_string): pass term_out parameter
10868 to construct the string_file for the command output.
10869 * ui-file.c (term_cli_styling): New function (most code moved
10870 from utils.c can_emit_style_escape).
10871 (string_file::string_file, string_file::can_emit_style_escape,
10872 stdio_file::can_emit_style_escape, tee_file::term_out,
10873 tee_file::can_emit_style_escape): New functions.
10874
10875 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10876
10877 * NEWS: Mention the new set|show may-call-functions.
10878 * infcall.c (may_call_functions_p): New variable.
10879 (show_may_call_functions_p): New function.
10880 (call_function_by_hand_dummy): Throws an error if not
10881 may-call-functions.
10882 (_initialize_infcall): Call add_setshow_boolean_cmd for
10883 may-call-functions.
10884
10885 2019-04-25 Keith Seitz <keiths@redhat.com>
10886
10887 PR c++/24367
10888 * cp-support.c (inspect_type): Don't attempt substitutions
10889 of symbol with the same name.
10890
10891 2019-04-25 Tom Tromey <tromey@adacore.com>
10892
10893 PR gdb/24475:
10894 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10895 static.
10896
10897 2019-04-25 Tom Tromey <tromey@adacore.com>
10898
10899 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10900 rvalue reference.
10901 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10902 (gdb_xml_parser::parse): Use std::move.
10903 * python/python-internal.h (gdbpy_convert_exception): Take a const
10904 reference.
10905 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10906 std::move.
10907 * python/py-utils.c (gdbpy_convert_exception): Take a const
10908 reference.
10909 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10910 Use std::move.
10911 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10912 Use std::move.
10913 * mi/mi-main.c (mi_print_exception): Take a const reference.
10914 * main.c (handle_command_errors): Take a const reference.
10915 * linespec.c (parse_linespec): Use std::move.
10916 * infcall.c (run_inferior_call): Use std::move.
10917 (call_function_by_hand_dummy): Use std::move.
10918 * exec.c (try_open_exec_file): Use std::move.
10919 * exceptions.h (exception_print, exception_fprintf)
10920 (exception_print_same): Update.
10921 * exceptions.c (print_exception, exception_print)
10922 (exception_fprintf, exception_print_same): Change parameters to
10923 const reference.
10924 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10925 * common/new-op.c: Use std::move.
10926 * common/common-exceptions.h (struct gdb_exception): Add move
10927 constructor.
10928 (struct gdb_exception_error, struct gdb_exception_quit, struct
10929 gdb_quit_bad_alloc): Change constructor to move constructor.
10930 (throw_exception): Change parameter to rvalue reference.
10931 * common/common-exceptions.c (throw_exception): Take rvalue
10932 reference.
10933 * cli/cli-interp.c (safe_execute_command): Use std::move.
10934 * breakpoint.c (insert_bp_location, location_to_sals): Use
10935 std::move.
10936
10937 2019-04-25 Tom Tromey <tromey@adacore.com>
10938
10939 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10940 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10941 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10942 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10943 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10944 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10945 guile/scm-value.c: Use unpack.
10946 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10947 gdbscm_gdb_exception.
10948 (gdbscm_throw_gdb_exception): Likewise.
10949 (struct gdbscm_gdb_exception): New.
10950 (unpack): New function.
10951 (gdbscm_wrap): Use unpack.
10952
10953 2019-04-25 Tom Tromey <tromey@adacore.com>
10954
10955 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10956 (gdb_rl_callback_handler): Use std::move.
10957 * common/common-exceptions.h (struct gdb_exception): Add move
10958 assignment operator.
10959 (throw_exception_sjlj): Change "exception" to const reference.
10960 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10961 (throw_exception_sjlj): Change "exception" to const reference.
10962
10963 2019-04-25 Tom Tromey <tromey@adacore.com>
10964
10965 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10966 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10967 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10968 Update.
10969 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10970 Update.
10971 * mi/mi-interp.c (mi_interp::exec): Update.
10972 * linespec.c (parse_linespec): Update.
10973 * infcall.c (run_inferior_call): Update.
10974 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10975 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10976 (gdbscm_lookup_global_symbol): Update.
10977 * guile/scm-param.c (gdbscm_parameter_value): Update.
10978 * guile/scm-frame.c (gdbscm_frame_read_register)
10979 (gdbscm_frame_read_var): Update.
10980 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10981 * exec.c (try_open_exec_file): Update.
10982 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10983 (gdb_rl_callback_handler): Update.
10984 * common/common-exceptions.h (exception_none): Don't declare.
10985 * common/common-exceptions.c (exception_none): Don't define.
10986 (struct catcher) <exception>: Update.
10987 * cli/cli-interp.c (safe_execute_command): Update.
10988 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10989
10990 2019-04-25 Ali Tamur <tamur@google.com>
10991
10992 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10993 (read_attribute_value): Likewise.
10994 (dwarf2_read_addr_index): Update comment.
10995 (read_str_index): Add DW_FORM_strx.
10996 (dwarf2_string_attr): Likewise.
10997 (dwarf2_const_value_attr): Likewise.
10998 (dump_die_shallow): Likewise.
10999 (dwarf2_fetch_constant_bytes): Likewise.
11000 (skip_form_bytes): Likewise.
11001 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11002
11003 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11004
11005 PR corefiles/11608
11006 PR corefiles/18187
11007 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11008 OFFSET. Verify if current mapping contains an ELF header.
11009 (linux_find_memory_regions_full): Adjust call to
11010 dump_mapping_p.
11011
11012 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11013 Kang Li <kanglictf@gmail.com>
11014
11015 PR gdb/21600
11016
11017 * dwarf2-frame.c (read_initial_length): Be consistent about using
11018 unsigned representation of length.
11019 (decode_frame_entry_1): Likewise. Check for wraparound of
11020 end pointer as well as buffer overflow.
11021
11022 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11023
11024 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11025 "vq".
11026
11027 2019-04-24 Tom Tromey <tromey@adacore.com>
11028
11029 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11030
11031 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11032
11033 * s12z-tdep.c (s12z_unwind_pc): Delete.
11034 (s12z_unwind_sp): Delete.
11035 (s12z_gdbarch_init): Don't register deleted functions with
11036 gdbarch.
11037
11038 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11039
11040 * rl78-tdep.c (rl78_unwind_sp): Delete.
11041 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11042
11043 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11044
11045 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11046 (xstormy16_unwind_pc): Delete.
11047 (xstormy16_dummy_id): Delete.
11048 (xstormy16_gdbarch_init): Don't register deleted functions with
11049 gdbarch.
11050
11051 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11052
11053 * vax-tdep.c (vax_unwind_pc): Delete.
11054 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11055
11056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11057
11058 * v850-tdep.c (v850_unwind_sp): Delete.
11059 (v850_unwind_pc): Delete.
11060 (v850_dummy_id): Delete.
11061 (v850_gdbarch_init): Don't register deleted functions with
11062 gdbarch.
11063
11064 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11065
11066 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11067 (tilegx_unwind_pc): Delete.
11068 (tilegx_unwind_dummy_id): Delete.
11069 (tilegx_gdbarch_init): Don't register deleted functions with
11070 gdbarch.
11071
11072 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11073
11074 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11075 (tic6x_dummy_id): Delete.
11076 (tic6x_gdbarch_init): Don't register deleted functions with
11077 gdbarch.
11078
11079 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11080
11081 * sparc-tdep.c (sparc_unwind_pc): Delete.
11082 (sparc32_gdbarch_init): Don't register deleted function with
11083 gdbarch.
11084
11085 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11086
11087 * sh-tdep.c (sh_unwind_sp): Delete.
11088 (sh_unwind_pc): Delete.
11089 (sh_dummy_id): Delete.
11090 (sh_gdbarch_init): Don't register deleted functions with
11091 gdbarch.
11092
11093 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11094
11095 * score-tdep.c (score_unwind_sp): Delete.
11096 (score_unwind_pc): Delete.
11097 (score_dummy_id): Delete.
11098 (score_gdbarch_init): Don't register deleted functions with
11099 gdbarch.
11100
11101 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11102
11103 * rx-tdep.c (rx_unwind_pc): Delete.
11104 (rx_unwind_sp): Delete.
11105 (rx_dummy_id): Delete.
11106 (rx_gdbarch_init): Don't register deleted functions with
11107 gdbarch. Update comment.
11108
11109 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11110
11111 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11112 (rs6000_dummy_id): Delete.
11113 (rs6000_gdbarch_init): Don't register deleted functions with
11114 gdbarch.
11115
11116 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11117
11118 * or1k-tdep.c (or1k_dummy_id): Delete.
11119 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11120
11121 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11122
11123 * nios2-tdep.c (nios2_dummy_id): Delete.
11124 (nios2_unwind_sp): Delete.
11125 (nios2_gdbarch_init): Don't register deleted functions with
11126 gdbarch.
11127
11128 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11129
11130 * nds32-tdep.c (nds32_dummy_id): Delete.
11131 (nds32_unwind_pc): Delete.
11132 (nds32_unwind_sp): Delete.
11133 (nds32_gdbarch_init): Don't register deleted functions with
11134 gdbarch.
11135
11136 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11137
11138 * msp430-tdep.c (msp430_unwind_pc): Delete.
11139 (msp430_unwind_sp): Delete.
11140 (msp430_dummy_id): Delete.
11141 (msp430_gdbarch_init): Don't register deleted functions with
11142 gdbarch.
11143
11144 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11145
11146 * moxie-tdep.c (moxie_unwind_sp): Delete.
11147 (moxie_unwind_pc): Delete.
11148 (moxie_dummy_id): Delete.
11149 (moxie_gdbarch_init): Don't register deleted functions with
11150 gdbarch.
11151
11152 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11153
11154 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11155 (mn10300_unwind_pc): Delete.
11156 (mn10300_unwind_sp): Delete.
11157 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11158 mn10300_unwind_sp.
11159 (mn10300_frame_unwind_init): Don't register deleted functions with
11160 gdbarch.
11161
11162 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11163
11164 * mep-tdep.c (mep_unwind_pc): Delete.
11165 (mep_unwind_sp): Delete.
11166 (mep_dummy_id): Delete.
11167 (mep_gdbarch_init): Don't register deleted functions with
11168 gdbarch.
11169
11170 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11171
11172 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11173 (m68hc11_unwind_sp): Delete.
11174 (m68hc11_gdbarch_init): Don't register deleted functions with
11175 gdbarch.
11176
11177 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11178
11179 * m32r-tdep.c (m32r_unwind_sp): Delete.
11180 (m32r_unwind_pc): Delete.
11181 (m32r_dummy_id): Delete.
11182 (m32r_gdbarch_init): Don't register deleted functions with
11183 gdbarch.
11184
11185 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11186
11187 * m32c-tdep.c (m32c_unwind_pc): Delete.
11188 (m32c_unwind_sp): Delete.
11189 (m32c_dummy_id): Delete.
11190 (m32c_gdbarch_init): Don't register deleted functions with
11191 gdbarch.
11192
11193 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11194
11195 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11196 (lm32_unwind_pc): Delete.
11197 (lm32_dummy_id): Delete.
11198 (lm32_gdbarch_init): Don't register deleted functions with
11199 gdbarch.
11200
11201 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11202
11203 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11204 (iq2000_unwind_pc): Delete.
11205 (iq2000_dummy_id): Delete.
11206 (iq2000_gdbarch_init): Don't register deleted functions with
11207 gdbarch.
11208
11209 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11210
11211 * nds32-tdep.c (nds32_type_align): Delete.
11212 (nds32_push_dummy_call): Use type_align instead.
11213
11214 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11215
11216 * arm-tdep.c (arm_type_align): Only handle vector override case.
11217 (arm_push_dummy_call): Use type_align.
11218 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11219
11220 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11221
11222 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11223 case.
11224 (pass_on_stack): Use type_align.
11225 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11226 function.
11227
11228 2019-04-23 Tom Tromey <tromey@adacore.com>
11229
11230 * dwarf2read.c (line_header::file_name_at): Remove unused
11231 overload.
11232
11233 2019-04-23 Tom de Vries <tdevries@suse.de>
11234
11235 PR gdb/24438
11236 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11237 invocation.
11238
11239
11240 2019-03-27 Ali Tamur <tamur@google.com>
11241
11242 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11243 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11244 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11245 (dwarf_expr_context::get_addr_index): Likewise
11246 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11247 (symbol_needs_eval_context::get_addr_index): Likewise
11248 (disassemble_dwarf_expression): Add DW_OP_addrx
11249 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11250 (read_cutu_die_from_dwo): Update comment
11251 (skip_one_die): Add DW_FORM_addrx
11252 (read_attribute_value): Likewise
11253 (var_decode_location): Add DW_OP_addrx
11254 (dwarf2_const_value_attr): Add DW_FORM_addrx
11255 (dump_die_shallow): Likewise
11256 (dwarf2_fetch_constant_bytes): Likewise
11257 (decode_locdesc): Add DW_OP_addrx
11258 (skip_form_bytes): Add DW_FORM_addrx
11259
11260 2019-04-22 Ali Tamur <tamur@google.com>
11261
11262 * MAINTAINERS (Write After Approval): Add self.
11263
11264 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11265
11266 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11267 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11268 (open_symbol_file_object): Likewise.
11269 (svr4_default_sos): Add info parameter.
11270 (svr4_read_so_list): Likewise.
11271 (svr4_current_sos_direct): Adjust functions calls to pass down
11272 info.
11273 (svr4_current_sos_1): Add info parameter.
11274 (svr4_current_sos): Call get_svr4_info, pass info down to
11275 svr4_current_sos_1.
11276 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11277 get_svr4_info.
11278 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11279 get_svr4_info.
11280 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11281 to get_svr4_info.
11282 (probes_table_remove_objfile_probes): Likewise.
11283 (register_solib_event_probe): Add info parameter.
11284 (solist_update_incremental): Pass info parameter down to
11285 svr4_read_so_list.
11286 (disable_probes_interface): Add info parameter.
11287 (svr4_handle_solib_event): Pass current_program_space to
11288 get_svr4_info. Adjust disable_probes_interface cleanup.
11289 (svr4_create_probe_breakpoints): Add info parameter, pass it
11290 down to register_solib_event_probe.
11291 (svr4_create_solib_event_breakpoints): Add info parameter,
11292 pass it down to svr4_create_probe_breakpoints.
11293 (enable_break): Pass info down to
11294 svr4_create_solib_event_breakpoints.
11295 (svr4_solib_create_inferior_hook): Pass current_program_space to
11296 get_svr4_info.
11297 (svr4_clear_solib): Likewise.
11298
11299 2019-04-22 Pedro Alves <palves@redhat.com>
11300
11301 * solib-svr4.c (svr4_free_objfile_observer): New.
11302 (probe_and_action::objfile): New field.
11303 (probes_table_htab_remove_objfile_probes)
11304 (probes_table_remove_objfile_probes): New functions.
11305 (register_solib_event_probe): Add 'objfile' parameter. Store it
11306 in the new probe_and_action. Don't store the probe in 'lookup'.
11307 (svr4_create_probe_breakpoints): Pass objfile to
11308 register_solib_event_probe.
11309 (_initialize_svr4_solib): Register a free_objfile observer.
11310
11311 2019-04-19 Tom Tromey <tom@tromey.com>
11312
11313 * common/queue.h: Remove.
11314
11315 2019-04-19 Tom Tromey <tom@tromey.com>
11316
11317 * event-loop.c: Don't include "common/queue.h".
11318
11319 2019-04-19 Tom Tromey <tom@tromey.com>
11320
11321 * remote.c (remote_target): Use delete.
11322 * remote-notif.h: Include <list>, not "common/queue.h".
11323 (notif_client_p): Remove typedef.
11324 (remote_notif_state): Add constructor, destructor, initializer.
11325 <notif_queue>: Now a std::list.
11326 (remote_notif_state_xfree): Don't declare.
11327 * remote-notif.c (remote_notif_process, handle_notification)
11328 (remote_notif_state_allocate): Update.
11329 (~remote_notif_state): Rename from remote_notif_state_xfree.
11330
11331 2019-04-19 Tom Tromey <tom@tromey.com>
11332
11333 * symfile.c (reread_symbols): Update.
11334 * objfiles.c (objfile_register_static_link)
11335 (objfile_lookup_static_link): Update
11336 (~objfile) Don't delete static_links.
11337 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11338
11339 2019-04-19 Tom Tromey <tom@tromey.com>
11340
11341 * type-stack.h (struct type_stack) <insert>: Constify string.
11342 * type-stack.c (type_stack::insert): Constify string.
11343 * gdbtypes.h (lookup_template_type): Update.
11344 (address_space_name_to_int): Update.
11345 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11346 const.
11347 (lookup_template_type): Make name const.
11348 * c-exp.y: Update rules.
11349 (lex_one_token, classify_name, classify_inner_name)
11350 (c_print_token): Update.
11351 * p-exp.y: Update rules.
11352 (yylex): Update.
11353 * f-exp.y: Update rules.
11354 (yylex): Update.
11355 * d-exp.y: Update rules.
11356 (lex_one_token, classify_name, classify_inner_name): Update.
11357 * parse.c (write_dollar_variable, copy_name): Return std::string.
11358 * parser-defs.h (copy_name): Change return type.
11359 * m2-exp.y: Update rules.
11360 (yylex): Update.
11361 * go-exp.y (lex_one_token): Update.
11362 Update rules.
11363 (classify_unsafe_function, classify_packaged_name)
11364 (classify_name, yylex): Update.
11365
11366 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11367
11368 * configure.ac: add --enable-source-highlight switch.
11369 * configure: Regenerate.
11370 * top.c (print_gdb_version): plumb --enable-source-highlight
11371 status to "show configuration".
11372
11373 2019-04-19 Tom Tromey <tromey@adacore.com>
11374
11375 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11376 Check ADA_TYPE_P.
11377 (empty_record, ada_template_to_fixed_record_type_1)
11378 (template_to_static_fixed_type)
11379 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11380 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11381 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11382 macros.
11383
11384 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11385
11386 PR symtab/24423:
11387 * source.c (print_source_lines_base): Advance "iter" when a
11388 control character is seen.
11389
11390 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11391
11392 * inferior.h (struct infcall_suspend_state_deleter):
11393 Catch exception in destructor to avoid crash.
11394
11395 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11396
11397 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11398 close to the add_com "shell".
11399
11400 2019-04-18 Tom Tromey <tromey@adacore.com>
11401
11402 * process-stratum-target.h (class process_stratum_target)
11403 <stratum>: Add "final".
11404
11405 2019-04-17 Tom Tromey <tromey@adacore.com>
11406
11407 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11408 against nullptr before use.
11409
11410 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11411
11412 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11413
11414 2019-04-17 Jim Wilson <jimw@sifive.com>
11415 Andrew Burgess <andrew.burgess@embecosm.com>
11416
11417 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11418 code read might fail, assume 4-byte breakpoint in that case.
11419
11420 2019-04-15 Leszek Swirski <leszeks@google.com>
11421
11422 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11423 rather than a hand-rolled POD check when checking for forced MEMORY
11424 classification.
11425
11426 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11427
11428 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11429 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11430 function.
11431 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11432 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11433 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11434 declaration.
11435
11436 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11437
11438 * aarch64-linux-nat.c
11439 (aarch64_linux_nat_target::thread_architecture): Add override.
11440 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11441 each VQ.
11442
11443 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11444
11445 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11446
11447 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11448
11449 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11450 target types of size 96-bits, add some additional comments, and
11451 check that the builtin type we found was the correct size.
11452
11453 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11454
11455 * utils.c (prompt_for_continue): Don't restore the styling at the
11456 end, as applied_style has the wrong value. This fixes styling in
11457 long lists of file names that are interrupted by the "Continue?"
11458 prompt.
11459
11460 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11461
11462 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11463 * c-lang.c (c_language_defn): Likewise.
11464 (cplus_language_defn): Likewise.
11465 (asm_language_defn): Likewise.
11466 (minimal_language_defn): Likewise.
11467 * d-lang.c (d_language_defn): Likewise.
11468 * f-lang.c (f_language_defn): Likewise.
11469 * go-lang.c (go_language_defn): Likewise.
11470 * language.c (unknown_language_defn): Likewise.
11471 (auto_language_defn): Likewise.
11472 * language.h (struct language_defn): Remove la_magic field.
11473 (LANG_MAGIC): Delete.
11474 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11475 * objc-lang.c (objc_language_defn): Likewise.
11476 * opencl-lang.c (opencl_language_defn): Likewise.
11477 * p-lang.c (pascal_language_defn): Likewise.
11478 * rust-lang.c (rust_language_defn): Likewise.
11479
11480 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11481
11482 * riscv-tdep.c (riscv_type_align): New function.
11483 (riscv_type_alignment): Delete.
11484 (riscv_arg_location): Use 'type_align'.
11485 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11486
11487 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11488
11489 * gdbtypes.c (type_align): A struct with no non-static fields also
11490 has alignment of 1.
11491
11492 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11493
11494 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11495 component to 0.
11496 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11497 member.
11498 (riscv_struct_info::analyse): New implementation using new
11499 analyse_inner member function.
11500 (riscv_struct_info::field_offset): New member function.
11501 (riscv_struct_info::m_offsets): New member variable.
11502 (riscv_struct_info::analyse_inner): New private member function,
11503 takes the old implementation of riscv_struct_info::analyse but
11504 extended to track field offsets.
11505 (riscv_call_arg_struct): Update the struct folding special cases
11506 to handle cases where empty C++ structs, which are non-zero
11507 length, are found.
11508 (riscv_arg_location): Initialise the length of each location, a
11509 non-zero length now indicates the location is in use.
11510 (riscv_push_dummy_call): Allow for the first location having a
11511 non-zero offset when setting up arguments.
11512 (riscv_return_value): Likewise, but for return values.
11513
11514 2019-04-11 Tom Tromey <tromey@adacore.com>
11515
11516 * utils.c (internal_vproblem): Make "msg" const.
11517
11518 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11519
11520 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11521 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11522 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11523 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11524
11525 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11526
11527 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11528 function.
11529 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11530 of amd64_collect_native_gregset.
11531 (amd64_linux_nat_target::store_registers): Likewise.
11532
11533 2019-04-10 Tom Tromey <tom@tromey.com>
11534
11535 * symtab.c (lookup_global_symbol_from_objfile)
11536 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11537 * objfiles.h (class separate_debug_iterator): New.
11538 (class separate_debug_range): New.
11539 (struct objfile) <separate_debug_objfiles>: New method.
11540 (objfile_separate_debug_iterate): Don't declare.
11541 * objfiles.c (separate_debug_iterator::operator++): Rename from
11542 objfile_separate_debug_iterate.
11543 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11544 iterator.
11545 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11546 iterator.
11547
11548 2019-04-10 Tom Tromey <tom@tromey.com>
11549
11550 * symfile.c (reread_symbols): Remove old comment.
11551 * objfiles.c (free_all_objfiles): Fix a typo.
11552
11553 2019-04-10 Tom Tromey <tom@tromey.com>
11554
11555 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11556 * minsyms.c (lookup_minimal_symbol): Use foreach.
11557 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11558 (lookup_minimal_symbol_solib_trampoline): Likewise.
11559 * symfile.c (reread_symbols): Use foreach.
11560
11561 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11562 Tom Tromey <tromey@adacore.com>
11563
11564 PR rust/24414:
11565 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11566 (rust_lex_int_test): Change "value" to be LONGEST.
11567 (rust_lex_tests): Add test for long integer literal.
11568
11569 2019-04-09 Tom Tromey <tromey@adacore.com>
11570
11571 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11572 to bool.
11573 (extended_remote_target::attach): Update.
11574 (remote_target::remote_notice_new_inferior): Update.
11575 (remote_target::add_current_inferior_and_thread): Update.
11576 * inferior.c (exit_inferior_1): Use "false".
11577 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11578
11579 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11580
11581 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11582 the "start" command.
11583
11584 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11585
11586 * python/py-inferior.c (infpy_thread_from_thread_handle):
11587 Adjust comments to reflect renaming of thread_from_thread_handle
11588 to thread_from_handle. Adjust keywords. Fix type error message.
11589 (inferior_object_methods): Add thread_from_handle. Retain
11590 thread_from_thread_handle, but mark it as deprecated.
11591
11592 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11593
11594 * gdbthread.h (find_thread_by_handle): Revise declaration.
11595 * thread.c (find_thread_by_handle): Likewise. Adjust
11596 implementation too.
11597 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11598 support for buffer objects as handles.
11599
11600 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11601
11602 * python/py-infthread.c (thpy_thread_handle): New function.
11603 (thread_object_methods): Register thpy_thread_handle.
11604
11605 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11606
11607 * gdbthread.h (thread_to_thread_handle): Declare.
11608 * thread.c (gdbtypes.h): Include.
11609 (thread_to_thread_handle): New function.
11610
11611 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11612 (target_thread_info_to_thread_handle): Declare.
11613 * target.c (target_thread_info_to_thread_handle): New function.
11614 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11615 * target-delegates.c: Regenerate.
11616
11617 * linux-thread-db.c (class thread_db_target): Add method
11618 thread_info_to_thread_handle.
11619 (thread_db_target::thread_info_to_thread_handle): Define.
11620 * remote.c (class remote_target): Add new method
11621 thread_info_to_thread_handle.
11622 (remote_target::thread_info_to_thread_handle): Define.
11623
11624 2019-04-08 Pedro Alves <palves@redhat.com>
11625
11626 * common/common-exceptions.c (throw_exception): Don't create
11627 named object to throw; throw directly.
11628 (throw_it): Likewise. Don't initialize gdb_exception::message
11629 here, with new; pass FMT and AP to the ctor instead.
11630 * common/common-exceptions.h: Include <string>.
11631 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11632 const char *, va_list)): New ctor. Use std::make_shared.
11633 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11634 errors)): Delete.
11635 (gdb_exception_error::gdb_exception_error(enum errors, const char
11636 *, va_list)): New.
11637 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11638 Add assertion.
11639 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11640 errors)): Delete.
11641 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11642 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11643 Add assertion.
11644
11645 2019-04-08 Tom Tromey <tom@tromey.com>
11646
11647 * valops.c (value_rtti_indirect_type): Replace throw_exception
11648 with throw.
11649 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11650 with throw.
11651 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11652 throw.
11653 * target.c (target_translate_tls_address): Replace throw_exception
11654 with throw.
11655 * stack.c (frame_apply_command_count): Replace throw_exception
11656 with throw.
11657 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11658 throw.
11659 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11660 with throw.
11661 * rs6000-tdep.c (rs6000_frame_cache)
11662 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11663 * remote.c: Replace throw_exception with throw.
11664 * record-full.c (record_full_message, record_full_wait_1)
11665 (record_full_restore): Replace throw_exception with throw.
11666 * record-btrace.c:
11667 (get_thread_current_frame_id, record_btrace_start_replaying)
11668 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11669 (cmd_record_btrace_start): Replace throw_exception with throw.
11670 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11671 throw.
11672 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11673 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11674 * linespec.c:
11675 (find_linespec_symbols): Replace throw_exception with throw.
11676 * infrun.c (displaced_step_prepare, resume): Replace
11677 throw_exception with throw.
11678 * infcmd.c (post_create_inferior): Replace throw_exception with
11679 throw.
11680 * inf-loop.c (inferior_event_handler): Replace throw_exception
11681 with throw.
11682 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11683 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11684 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11685 (get_prev_frame_always, get_frame_pc_if_available)
11686 (get_frame_address_in_block_if_available, get_frame_language):
11687 Replace throw_exception with throw.
11688 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11689 throw_exception with throw.
11690 * eval.c (fetch_subexp_value, evaluate_var_value)
11691 (evaluate_funcall, evaluate_subexp_standard): Replace
11692 throw_exception with throw.
11693 * dwarf2loc.c (call_site_find_chain)
11694 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11695 Replace throw_exception with throw.
11696 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11697 with throw.
11698 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11699 throw.
11700 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11701 * completer.c (complete_line_internal): Replace throw_exception
11702 with throw.
11703 * compile/compile-object-run.c (compile_object_run): Replace
11704 throw_exception with throw.
11705 * cli/cli-script.c (process_next_line): Replace throw_exception
11706 with throw.
11707 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11708 (btrace_enable, btrace_maint_update_pt_packets): Replace
11709 throw_exception with throw.
11710 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11711 throw_exception with throw.
11712 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11713 throw_exception with throw.
11714 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11715 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11716 * aarch64-tdep.c (aarch64_make_prologue_cache)
11717 (aarch64_make_stub_cache): Replace throw_exception with throw.
11718
11719 2019-04-08 Tom Tromey <tom@tromey.com>
11720
11721 * common/common-exceptions.c (throw_exception): Rename from
11722 throw_exception_cxx. Remove old copy. Make argument const.
11723 (throw_it): Create and throw exception objects directly.
11724 * common/common-exceptions.h (throw_exception): Make argument
11725 const.
11726 (struct gdb_exception_error): Add constructor.
11727 (struct gdb_exception_quit): Add constructor.
11728
11729 2019-04-08 Tom Tromey <tom@tromey.com>
11730
11731 * common/common-exceptions.h (exception_rethrow): Don't declare.
11732 (TRY_SJLJ): Update comment.
11733 (TRY, CATCH, END_CATCH): Remove.
11734 * common/common-exceptions.c (exception_rethrow): Remove.
11735
11736 2019-04-08 Tom Tromey <tom@tromey.com>
11737
11738 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11739 Remove.
11740 (gdb_exception_error): Rename from
11741 gdb_exception_RETURN_MASK_ERROR.
11742 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11743 (gdb_quit_bad_alloc): Update.
11744 * aarch64-tdep.c: Update.
11745 * ada-lang.c: Update.
11746 * ada-typeprint.c: Update.
11747 * ada-valprint.c: Update.
11748 * amd64-tdep.c: Update.
11749 * arch-utils.c: Update.
11750 * break-catch-throw.c: Update.
11751 * breakpoint.c: Update.
11752 * btrace.c: Update.
11753 * c-varobj.c: Update.
11754 * cli/cli-cmds.c: Update.
11755 * cli/cli-interp.c: Update.
11756 * cli/cli-script.c: Update.
11757 * common/common-exceptions.c: Update.
11758 * common/new-op.c: Update.
11759 * common/selftest.c: Update.
11760 * compile/compile-c-symbols.c: Update.
11761 * compile/compile-cplus-symbols.c: Update.
11762 * compile/compile-object-load.c: Update.
11763 * compile/compile-object-run.c: Update.
11764 * completer.c: Update.
11765 * corelow.c: Update.
11766 * cp-abi.c: Update.
11767 * cp-support.c: Update.
11768 * cp-valprint.c: Update.
11769 * darwin-nat.c: Update.
11770 * disasm-selftests.c: Update.
11771 * dtrace-probe.c: Update.
11772 * dwarf-index-cache.c: Update.
11773 * dwarf-index-write.c: Update.
11774 * dwarf2-frame-tailcall.c: Update.
11775 * dwarf2-frame.c: Update.
11776 * dwarf2loc.c: Update.
11777 * dwarf2read.c: Update.
11778 * eval.c: Update.
11779 * event-loop.c: Update.
11780 * event-top.c: Update.
11781 * exec.c: Update.
11782 * f-valprint.c: Update.
11783 * fbsd-tdep.c: Update.
11784 * frame-unwind.c: Update.
11785 * frame.c: Update.
11786 * gdbtypes.c: Update.
11787 * gnu-v3-abi.c: Update.
11788 * guile/guile-internal.h: Update.
11789 * guile/scm-block.c: Update.
11790 * guile/scm-breakpoint.c: Update.
11791 * guile/scm-cmd.c: Update.
11792 * guile/scm-disasm.c: Update.
11793 * guile/scm-frame.c: Update.
11794 * guile/scm-lazy-string.c: Update.
11795 * guile/scm-math.c: Update.
11796 * guile/scm-param.c: Update.
11797 * guile/scm-ports.c: Update.
11798 * guile/scm-pretty-print.c: Update.
11799 * guile/scm-symbol.c: Update.
11800 * guile/scm-symtab.c: Update.
11801 * guile/scm-type.c: Update.
11802 * guile/scm-value.c: Update.
11803 * i386-linux-tdep.c: Update.
11804 * i386-tdep.c: Update.
11805 * inf-loop.c: Update.
11806 * infcall.c: Update.
11807 * infcmd.c: Update.
11808 * infrun.c: Update.
11809 * jit.c: Update.
11810 * language.c: Update.
11811 * linespec.c: Update.
11812 * linux-fork.c: Update.
11813 * linux-nat.c: Update.
11814 * linux-tdep.c: Update.
11815 * linux-thread-db.c: Update.
11816 * main.c: Update.
11817 * mi/mi-cmd-break.c: Update.
11818 * mi/mi-cmd-stack.c: Update.
11819 * mi/mi-interp.c: Update.
11820 * mi/mi-main.c: Update.
11821 * objc-lang.c: Update.
11822 * p-valprint.c: Update.
11823 * parse.c: Update.
11824 * ppc-linux-tdep.c: Update.
11825 * printcmd.c: Update.
11826 * python/py-arch.c: Update.
11827 * python/py-breakpoint.c: Update.
11828 * python/py-cmd.c: Update.
11829 * python/py-finishbreakpoint.c: Update.
11830 * python/py-frame.c: Update.
11831 * python/py-framefilter.c: Update.
11832 * python/py-gdb-readline.c: Update.
11833 * python/py-inferior.c: Update.
11834 * python/py-infthread.c: Update.
11835 * python/py-lazy-string.c: Update.
11836 * python/py-linetable.c: Update.
11837 * python/py-objfile.c: Update.
11838 * python/py-param.c: Update.
11839 * python/py-prettyprint.c: Update.
11840 * python/py-progspace.c: Update.
11841 * python/py-record-btrace.c: Update.
11842 * python/py-record.c: Update.
11843 * python/py-symbol.c: Update.
11844 * python/py-type.c: Update.
11845 * python/py-unwind.c: Update.
11846 * python/py-utils.c: Update.
11847 * python/py-value.c: Update.
11848 * python/python.c: Update.
11849 * record-btrace.c: Update.
11850 * record-full.c: Update.
11851 * remote-fileio.c: Update.
11852 * remote.c: Update.
11853 * riscv-tdep.c: Update.
11854 * rs6000-aix-tdep.c: Update.
11855 * rs6000-tdep.c: Update.
11856 * rust-exp.y: Update.
11857 * rust-lang.c: Update.
11858 * s390-tdep.c: Update.
11859 * selftest-arch.c: Update.
11860 * solib-dsbt.c: Update.
11861 * solib-frv.c: Update.
11862 * solib-spu.c: Update.
11863 * solib-svr4.c: Update.
11864 * solib.c: Update.
11865 * sparc64-linux-tdep.c: Update.
11866 * stack.c: Update.
11867 * symfile-mem.c: Update.
11868 * symmisc.c: Update.
11869 * target.c: Update.
11870 * thread.c: Update.
11871 * top.c: Update.
11872 * tracefile-tfile.c: Update.
11873 * tui/tui.c: Update.
11874 * typeprint.c: Update.
11875 * unittests/cli-utils-selftests.c: Update.
11876 * unittests/parse-connection-spec-selftests.c: Update.
11877 * valops.c: Update.
11878 * valprint.c: Update.
11879 * value.c: Update.
11880 * varobj.c: Update.
11881 * windows-nat.c: Update.
11882 * x86-linux-nat.c: Update.
11883 * xml-support.c: Update.
11884
11885 2019-04-08 Tom Tromey <tom@tromey.com>
11886
11887 * xml-support.c: Use C++ exception handling.
11888 * x86-linux-nat.c: Use C++ exception handling.
11889 * windows-nat.c: Use C++ exception handling.
11890 * varobj.c: Use C++ exception handling.
11891 * value.c: Use C++ exception handling.
11892 * valprint.c: Use C++ exception handling.
11893 * valops.c: Use C++ exception handling.
11894 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11895 handling.
11896 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11897 * typeprint.c: Use C++ exception handling.
11898 * tui/tui.c: Use C++ exception handling.
11899 * tracefile-tfile.c: Use C++ exception handling.
11900 * top.c: Use C++ exception handling.
11901 * thread.c: Use C++ exception handling.
11902 * target.c: Use C++ exception handling.
11903 * symmisc.c: Use C++ exception handling.
11904 * symfile-mem.c: Use C++ exception handling.
11905 * stack.c: Use C++ exception handling.
11906 * sparc64-linux-tdep.c: Use C++ exception handling.
11907 * solib.c: Use C++ exception handling.
11908 * solib-svr4.c: Use C++ exception handling.
11909 * solib-spu.c: Use C++ exception handling.
11910 * solib-frv.c: Use C++ exception handling.
11911 * solib-dsbt.c: Use C++ exception handling.
11912 * selftest-arch.c: Use C++ exception handling.
11913 * s390-tdep.c: Use C++ exception handling.
11914 * rust-lang.c: Use C++ exception handling.
11915 * rust-exp.y: Use C++ exception handling.
11916 * rs6000-tdep.c: Use C++ exception handling.
11917 * rs6000-aix-tdep.c: Use C++ exception handling.
11918 * riscv-tdep.c: Use C++ exception handling.
11919 * remote.c: Use C++ exception handling.
11920 * remote-fileio.c: Use C++ exception handling.
11921 * record-full.c: Use C++ exception handling.
11922 * record-btrace.c: Use C++ exception handling.
11923 * python/python.c: Use C++ exception handling.
11924 * python/py-value.c: Use C++ exception handling.
11925 * python/py-utils.c: Use C++ exception handling.
11926 * python/py-unwind.c: Use C++ exception handling.
11927 * python/py-type.c: Use C++ exception handling.
11928 * python/py-symbol.c: Use C++ exception handling.
11929 * python/py-record.c: Use C++ exception handling.
11930 * python/py-record-btrace.c: Use C++ exception handling.
11931 * python/py-progspace.c: Use C++ exception handling.
11932 * python/py-prettyprint.c: Use C++ exception handling.
11933 * python/py-param.c: Use C++ exception handling.
11934 * python/py-objfile.c: Use C++ exception handling.
11935 * python/py-linetable.c: Use C++ exception handling.
11936 * python/py-lazy-string.c: Use C++ exception handling.
11937 * python/py-infthread.c: Use C++ exception handling.
11938 * python/py-inferior.c: Use C++ exception handling.
11939 * python/py-gdb-readline.c: Use C++ exception handling.
11940 * python/py-framefilter.c: Use C++ exception handling.
11941 * python/py-frame.c: Use C++ exception handling.
11942 * python/py-finishbreakpoint.c: Use C++ exception handling.
11943 * python/py-cmd.c: Use C++ exception handling.
11944 * python/py-breakpoint.c: Use C++ exception handling.
11945 * python/py-arch.c: Use C++ exception handling.
11946 * printcmd.c: Use C++ exception handling.
11947 * ppc-linux-tdep.c: Use C++ exception handling.
11948 * parse.c: Use C++ exception handling.
11949 * p-valprint.c: Use C++ exception handling.
11950 * objc-lang.c: Use C++ exception handling.
11951 * mi/mi-main.c: Use C++ exception handling.
11952 * mi/mi-interp.c: Use C++ exception handling.
11953 * mi/mi-cmd-stack.c: Use C++ exception handling.
11954 * mi/mi-cmd-break.c: Use C++ exception handling.
11955 * main.c: Use C++ exception handling.
11956 * linux-thread-db.c: Use C++ exception handling.
11957 * linux-tdep.c: Use C++ exception handling.
11958 * linux-nat.c: Use C++ exception handling.
11959 * linux-fork.c: Use C++ exception handling.
11960 * linespec.c: Use C++ exception handling.
11961 * language.c: Use C++ exception handling.
11962 * jit.c: Use C++ exception handling.
11963 * infrun.c: Use C++ exception handling.
11964 * infcmd.c: Use C++ exception handling.
11965 * infcall.c: Use C++ exception handling.
11966 * inf-loop.c: Use C++ exception handling.
11967 * i386-tdep.c: Use C++ exception handling.
11968 * i386-linux-tdep.c: Use C++ exception handling.
11969 * guile/scm-value.c: Use C++ exception handling.
11970 * guile/scm-type.c: Use C++ exception handling.
11971 * guile/scm-symtab.c: Use C++ exception handling.
11972 * guile/scm-symbol.c: Use C++ exception handling.
11973 * guile/scm-pretty-print.c: Use C++ exception handling.
11974 * guile/scm-ports.c: Use C++ exception handling.
11975 * guile/scm-param.c: Use C++ exception handling.
11976 * guile/scm-math.c: Use C++ exception handling.
11977 * guile/scm-lazy-string.c: Use C++ exception handling.
11978 * guile/scm-frame.c: Use C++ exception handling.
11979 * guile/scm-disasm.c: Use C++ exception handling.
11980 * guile/scm-cmd.c: Use C++ exception handling.
11981 * guile/scm-breakpoint.c: Use C++ exception handling.
11982 * guile/scm-block.c: Use C++ exception handling.
11983 * guile/guile-internal.h: Use C++ exception handling.
11984 * gnu-v3-abi.c: Use C++ exception handling.
11985 * gdbtypes.c: Use C++ exception handling.
11986 * frame.c: Use C++ exception handling.
11987 * frame-unwind.c: Use C++ exception handling.
11988 * fbsd-tdep.c: Use C++ exception handling.
11989 * f-valprint.c: Use C++ exception handling.
11990 * exec.c: Use C++ exception handling.
11991 * event-top.c: Use C++ exception handling.
11992 * event-loop.c: Use C++ exception handling.
11993 * eval.c: Use C++ exception handling.
11994 * dwarf2read.c: Use C++ exception handling.
11995 * dwarf2loc.c: Use C++ exception handling.
11996 * dwarf2-frame.c: Use C++ exception handling.
11997 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11998 * dwarf-index-write.c: Use C++ exception handling.
11999 * dwarf-index-cache.c: Use C++ exception handling.
12000 * dtrace-probe.c: Use C++ exception handling.
12001 * disasm-selftests.c: Use C++ exception handling.
12002 * darwin-nat.c: Use C++ exception handling.
12003 * cp-valprint.c: Use C++ exception handling.
12004 * cp-support.c: Use C++ exception handling.
12005 * cp-abi.c: Use C++ exception handling.
12006 * corelow.c: Use C++ exception handling.
12007 * completer.c: Use C++ exception handling.
12008 * compile/compile-object-run.c: Use C++ exception handling.
12009 * compile/compile-object-load.c: Use C++ exception handling.
12010 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12011 * compile/compile-c-symbols.c: Use C++ exception handling.
12012 * common/selftest.c: Use C++ exception handling.
12013 * common/new-op.c: Use C++ exception handling.
12014 * cli/cli-script.c: Use C++ exception handling.
12015 * cli/cli-interp.c: Use C++ exception handling.
12016 * cli/cli-cmds.c: Use C++ exception handling.
12017 * c-varobj.c: Use C++ exception handling.
12018 * btrace.c: Use C++ exception handling.
12019 * breakpoint.c: Use C++ exception handling.
12020 * break-catch-throw.c: Use C++ exception handling.
12021 * arch-utils.c: Use C++ exception handling.
12022 * amd64-tdep.c: Use C++ exception handling.
12023 * ada-valprint.c: Use C++ exception handling.
12024 * ada-typeprint.c: Use C++ exception handling.
12025 * ada-lang.c: Use C++ exception handling.
12026 * aarch64-tdep.c: Use C++ exception handling.
12027
12028 2019-04-08 Tom Tromey <tom@tromey.com>
12029
12030 * xml-support.c (gdb_xml_parser::parse): Update.
12031 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12032 * value.c (show_convenience): Update.
12033 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12034 (test_parse_flags_qcs): Update.
12035 * thread.c (thr_try_catch_cmd): Update.
12036 * target.c (target_translate_tls_address): Update.
12037 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12038 (info_frame_command_core, frame_apply_command_count): Update.
12039 * rust-exp.y (rust_lex_exception_test): Update.
12040 * riscv-tdep.c (riscv_print_one_register_info): Update.
12041 * remote.c (remote_target::enable_btrace): Update.
12042 * record-btrace.c (record_btrace_enable_warn): Update.
12043 * python/py-utils.c (gdbpy_convert_exception): Update.
12044 * printcmd.c (do_one_display, print_variable_and_value): Update.
12045 * mi/mi-main.c (mi_print_exception): Update.
12046 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12047 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12048 * linux-nat.c (linux_nat_target::attach): Update.
12049 * linux-fork.c (class scoped_switch_fork_info): Update.
12050 * infrun.c (displaced_step_prepare): Update.
12051 * infcall.c (call_function_by_hand_dummy): Update.
12052 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12053 * gnu-v3-abi.c (print_one_vtable): Update.
12054 * frame.c (get_prev_frame_always): Update.
12055 * f-valprint.c (info_common_command_for_block): Update.
12056 * exec.c (try_open_exec_file): Update.
12057 * exceptions.c (print_exception, exception_print)
12058 (exception_fprintf, exception_print_same): Update.
12059 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12060 * dwarf-index-cache.c (index_cache::store)
12061 (index_cache::lookup_gdb_index): Update.
12062 * darwin-nat.c (maybe_cache_shell): Update.
12063 * cp-valprint.c (cp_print_value_fields): Update.
12064 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12065 (gcc_cplus_symbol_address): Update.
12066 * compile/compile-c-symbols.c (gcc_convert_symbol)
12067 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12068 * common/selftest.c: Update.
12069 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12070 a std::string.
12071 (exception_try_scope_entry, exception_try_scope_exit): Don't
12072 declare.
12073 (struct exception_try_scope): Remove.
12074 (TRY): Don't use exception_try_scope.
12075 (struct gdb_exception): Add constructor, operator=.
12076 <what>: New method.
12077 (struct gdb_exception_RETURN_MASK_ALL)
12078 (struct gdb_exception_RETURN_MASK_ERROR)
12079 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12080 (struct gdb_quit_bad_alloc): Update.
12081 * common/common-exceptions.c (exception_none): Change
12082 initializer.
12083 (struct catcher) <state, exception>: Initialize inline.
12084 <prev>: Remove member.
12085 (current_catcher): Remove.
12086 (catchers): New global.
12087 (exceptions_state_mc_init): Simplify.
12088 (catcher_pop): Remove.
12089 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12090 (try_scope_depth, exception_try_scope_entry)
12091 (exception_try_scope_exit): Remove.
12092 (throw_exception_sjlj): Update.
12093 (exception_messages, exception_messages_size): Remove.
12094 (throw_it): Simplify.
12095 (gdb_exception_sliced_copy): Remove.
12096 (throw_exception_cxx): Update.
12097 * cli/cli-script.c (script_from_file): Update.
12098 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12099 Update.
12100 * ada-valprint.c (ada_val_print): Update.
12101 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12102 (create_excep_cond_exprs): Update.
12103
12104 2019-04-08 Tom Tromey <tom@tromey.com>
12105
12106 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12107 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12108 (TRY, CATCH, END_CATCH): Remove some definitions.
12109 * common/common-exceptions.c: Don't use GDB_XCPT.
12110 (catcher_list_size): Remove.
12111 (throw_exception, throw_it): Simplify.
12112
12113 2019-04-05 Tom Tromey <tom@tromey.com>
12114
12115 Revert the header-sorting patch.
12116 * ft32-tdep.c: Revert.
12117 * frv-tdep.c: Revert.
12118 * frv-linux-tdep.c: Revert.
12119 * frame.c: Revert.
12120 * frame-unwind.c: Revert.
12121 * frame-base.c: Revert.
12122 * fork-child.c: Revert.
12123 * findvar.c: Revert.
12124 * findcmd.c: Revert.
12125 * filesystem.c: Revert.
12126 * filename-seen-cache.h: Revert.
12127 * filename-seen-cache.c: Revert.
12128 * fbsd-tdep.c: Revert.
12129 * fbsd-nat.h: Revert.
12130 * fbsd-nat.c: Revert.
12131 * f-valprint.c: Revert.
12132 * f-typeprint.c: Revert.
12133 * f-lang.c: Revert.
12134 * extension.h: Revert.
12135 * extension.c: Revert.
12136 * extension-priv.h: Revert.
12137 * expprint.c: Revert.
12138 * exec.h: Revert.
12139 * exec.c: Revert.
12140 * exceptions.c: Revert.
12141 * event-top.c: Revert.
12142 * event-loop.c: Revert.
12143 * eval.c: Revert.
12144 * elfread.c: Revert.
12145 * dwarf2read.h: Revert.
12146 * dwarf2read.c: Revert.
12147 * dwarf2loc.c: Revert.
12148 * dwarf2expr.h: Revert.
12149 * dwarf2expr.c: Revert.
12150 * dwarf2-frame.c: Revert.
12151 * dwarf2-frame-tailcall.c: Revert.
12152 * dwarf-index-write.h: Revert.
12153 * dwarf-index-write.c: Revert.
12154 * dwarf-index-common.c: Revert.
12155 * dwarf-index-cache.h: Revert.
12156 * dwarf-index-cache.c: Revert.
12157 * dummy-frame.c: Revert.
12158 * dtrace-probe.c: Revert.
12159 * disasm.h: Revert.
12160 * disasm.c: Revert.
12161 * disasm-selftests.c: Revert.
12162 * dictionary.c: Revert.
12163 * dicos-tdep.c: Revert.
12164 * demangle.c: Revert.
12165 * dcache.h: Revert.
12166 * dcache.c: Revert.
12167 * darwin-nat.h: Revert.
12168 * darwin-nat.c: Revert.
12169 * darwin-nat-info.c: Revert.
12170 * d-valprint.c: Revert.
12171 * d-namespace.c: Revert.
12172 * d-lang.c: Revert.
12173 * ctf.c: Revert.
12174 * csky-tdep.c: Revert.
12175 * csky-linux-tdep.c: Revert.
12176 * cris-tdep.c: Revert.
12177 * cris-linux-tdep.c: Revert.
12178 * cp-valprint.c: Revert.
12179 * cp-support.c: Revert.
12180 * cp-namespace.c: Revert.
12181 * cp-abi.c: Revert.
12182 * corelow.c: Revert.
12183 * corefile.c: Revert.
12184 * continuations.c: Revert.
12185 * completer.h: Revert.
12186 * completer.c: Revert.
12187 * complaints.c: Revert.
12188 * coffread.c: Revert.
12189 * coff-pe-read.c: Revert.
12190 * cli-out.h: Revert.
12191 * cli-out.c: Revert.
12192 * charset.c: Revert.
12193 * c-varobj.c: Revert.
12194 * c-valprint.c: Revert.
12195 * c-typeprint.c: Revert.
12196 * c-lang.c: Revert.
12197 * buildsym.c: Revert.
12198 * buildsym-legacy.c: Revert.
12199 * build-id.h: Revert.
12200 * build-id.c: Revert.
12201 * btrace.c: Revert.
12202 * bsd-uthread.c: Revert.
12203 * breakpoint.h: Revert.
12204 * breakpoint.c: Revert.
12205 * break-catch-throw.c: Revert.
12206 * break-catch-syscall.c: Revert.
12207 * break-catch-sig.c: Revert.
12208 * blockframe.c: Revert.
12209 * block.c: Revert.
12210 * bfin-tdep.c: Revert.
12211 * bfin-linux-tdep.c: Revert.
12212 * bfd-target.c: Revert.
12213 * bcache.c: Revert.
12214 * ax-general.c: Revert.
12215 * ax-gdb.h: Revert.
12216 * ax-gdb.c: Revert.
12217 * avr-tdep.c: Revert.
12218 * auxv.c: Revert.
12219 * auto-load.c: Revert.
12220 * arm-wince-tdep.c: Revert.
12221 * arm-tdep.c: Revert.
12222 * arm-symbian-tdep.c: Revert.
12223 * arm-pikeos-tdep.c: Revert.
12224 * arm-obsd-tdep.c: Revert.
12225 * arm-nbsd-tdep.c: Revert.
12226 * arm-nbsd-nat.c: Revert.
12227 * arm-linux-tdep.c: Revert.
12228 * arm-linux-nat.c: Revert.
12229 * arm-fbsd-tdep.c: Revert.
12230 * arm-fbsd-nat.c: Revert.
12231 * arm-bsd-tdep.c: Revert.
12232 * arch-utils.c: Revert.
12233 * arc-tdep.c: Revert.
12234 * arc-newlib-tdep.c: Revert.
12235 * annotate.h: Revert.
12236 * annotate.c: Revert.
12237 * amd64-windows-tdep.c: Revert.
12238 * amd64-windows-nat.c: Revert.
12239 * amd64-tdep.c: Revert.
12240 * amd64-sol2-tdep.c: Revert.
12241 * amd64-obsd-tdep.c: Revert.
12242 * amd64-obsd-nat.c: Revert.
12243 * amd64-nbsd-tdep.c: Revert.
12244 * amd64-nbsd-nat.c: Revert.
12245 * amd64-nat.c: Revert.
12246 * amd64-linux-tdep.c: Revert.
12247 * amd64-linux-nat.c: Revert.
12248 * amd64-fbsd-tdep.c: Revert.
12249 * amd64-fbsd-nat.c: Revert.
12250 * amd64-dicos-tdep.c: Revert.
12251 * amd64-darwin-tdep.c: Revert.
12252 * amd64-bsd-nat.c: Revert.
12253 * alpha-tdep.c: Revert.
12254 * alpha-obsd-tdep.c: Revert.
12255 * alpha-nbsd-tdep.c: Revert.
12256 * alpha-mdebug-tdep.c: Revert.
12257 * alpha-linux-tdep.c: Revert.
12258 * alpha-linux-nat.c: Revert.
12259 * alpha-bsd-tdep.c: Revert.
12260 * alpha-bsd-nat.c: Revert.
12261 * aix-thread.c: Revert.
12262 * agent.c: Revert.
12263 * addrmap.c: Revert.
12264 * ada-varobj.c: Revert.
12265 * ada-valprint.c: Revert.
12266 * ada-typeprint.c: Revert.
12267 * ada-tasks.c: Revert.
12268 * ada-lang.c: Revert.
12269 * aarch64-tdep.c: Revert.
12270 * aarch64-ravenscar-thread.c: Revert.
12271 * aarch64-newlib-tdep.c: Revert.
12272 * aarch64-linux-tdep.c: Revert.
12273 * aarch64-linux-nat.c: Revert.
12274 * aarch64-fbsd-tdep.c: Revert.
12275 * aarch64-fbsd-nat.c: Revert.
12276 * aarch32-linux-nat.c: Revert.
12277
12278 2019-04-05 Tom Tromey <tom@tromey.com>
12279
12280 * ft32-tdep.c: Sort headers.
12281 * frv-tdep.c: Sort headers.
12282 * frv-linux-tdep.c: Sort headers.
12283 * frame.c: Sort headers.
12284 * frame-unwind.c: Sort headers.
12285 * frame-base.c: Sort headers.
12286 * fork-child.c: Sort headers.
12287 * findvar.c: Sort headers.
12288 * findcmd.c: Sort headers.
12289 * filesystem.c: Sort headers.
12290 * filename-seen-cache.h: Sort headers.
12291 * filename-seen-cache.c: Sort headers.
12292 * fbsd-tdep.c: Sort headers.
12293 * fbsd-nat.h: Sort headers.
12294 * fbsd-nat.c: Sort headers.
12295 * f-valprint.c: Sort headers.
12296 * f-typeprint.c: Sort headers.
12297 * f-lang.c: Sort headers.
12298 * extension.h: Sort headers.
12299 * extension.c: Sort headers.
12300 * extension-priv.h: Sort headers.
12301 * expprint.c: Sort headers.
12302 * exec.h: Sort headers.
12303 * exec.c: Sort headers.
12304 * exceptions.c: Sort headers.
12305 * event-top.c: Sort headers.
12306 * event-loop.c: Sort headers.
12307 * eval.c: Sort headers.
12308 * elfread.c: Sort headers.
12309 * dwarf2read.h: Sort headers.
12310 * dwarf2read.c: Sort headers.
12311 * dwarf2loc.c: Sort headers.
12312 * dwarf2expr.h: Sort headers.
12313 * dwarf2expr.c: Sort headers.
12314 * dwarf2-frame.c: Sort headers.
12315 * dwarf2-frame-tailcall.c: Sort headers.
12316 * dwarf-index-write.h: Sort headers.
12317 * dwarf-index-write.c: Sort headers.
12318 * dwarf-index-common.c: Sort headers.
12319 * dwarf-index-cache.h: Sort headers.
12320 * dwarf-index-cache.c: Sort headers.
12321 * dummy-frame.c: Sort headers.
12322 * dtrace-probe.c: Sort headers.
12323 * disasm.h: Sort headers.
12324 * disasm.c: Sort headers.
12325 * disasm-selftests.c: Sort headers.
12326 * dictionary.c: Sort headers.
12327 * dicos-tdep.c: Sort headers.
12328 * demangle.c: Sort headers.
12329 * dcache.h: Sort headers.
12330 * dcache.c: Sort headers.
12331 * darwin-nat.h: Sort headers.
12332 * darwin-nat.c: Sort headers.
12333 * darwin-nat-info.c: Sort headers.
12334 * d-valprint.c: Sort headers.
12335 * d-namespace.c: Sort headers.
12336 * d-lang.c: Sort headers.
12337 * ctf.c: Sort headers.
12338 * csky-tdep.c: Sort headers.
12339 * csky-linux-tdep.c: Sort headers.
12340 * cris-tdep.c: Sort headers.
12341 * cris-linux-tdep.c: Sort headers.
12342 * cp-valprint.c: Sort headers.
12343 * cp-support.c: Sort headers.
12344 * cp-namespace.c: Sort headers.
12345 * cp-abi.c: Sort headers.
12346 * corelow.c: Sort headers.
12347 * corefile.c: Sort headers.
12348 * continuations.c: Sort headers.
12349 * completer.h: Sort headers.
12350 * completer.c: Sort headers.
12351 * complaints.c: Sort headers.
12352 * coffread.c: Sort headers.
12353 * coff-pe-read.c: Sort headers.
12354 * cli-out.h: Sort headers.
12355 * cli-out.c: Sort headers.
12356 * charset.c: Sort headers.
12357 * c-varobj.c: Sort headers.
12358 * c-valprint.c: Sort headers.
12359 * c-typeprint.c: Sort headers.
12360 * c-lang.c: Sort headers.
12361 * buildsym.c: Sort headers.
12362 * buildsym-legacy.c: Sort headers.
12363 * build-id.h: Sort headers.
12364 * build-id.c: Sort headers.
12365 * btrace.c: Sort headers.
12366 * bsd-uthread.c: Sort headers.
12367 * breakpoint.h: Sort headers.
12368 * breakpoint.c: Sort headers.
12369 * break-catch-throw.c: Sort headers.
12370 * break-catch-syscall.c: Sort headers.
12371 * break-catch-sig.c: Sort headers.
12372 * blockframe.c: Sort headers.
12373 * block.c: Sort headers.
12374 * bfin-tdep.c: Sort headers.
12375 * bfin-linux-tdep.c: Sort headers.
12376 * bfd-target.c: Sort headers.
12377 * bcache.c: Sort headers.
12378 * ax-general.c: Sort headers.
12379 * ax-gdb.h: Sort headers.
12380 * ax-gdb.c: Sort headers.
12381 * avr-tdep.c: Sort headers.
12382 * auxv.c: Sort headers.
12383 * auto-load.c: Sort headers.
12384 * arm-wince-tdep.c: Sort headers.
12385 * arm-tdep.c: Sort headers.
12386 * arm-symbian-tdep.c: Sort headers.
12387 * arm-pikeos-tdep.c: Sort headers.
12388 * arm-obsd-tdep.c: Sort headers.
12389 * arm-nbsd-tdep.c: Sort headers.
12390 * arm-nbsd-nat.c: Sort headers.
12391 * arm-linux-tdep.c: Sort headers.
12392 * arm-linux-nat.c: Sort headers.
12393 * arm-fbsd-tdep.c: Sort headers.
12394 * arm-fbsd-nat.c: Sort headers.
12395 * arm-bsd-tdep.c: Sort headers.
12396 * arch-utils.c: Sort headers.
12397 * arc-tdep.c: Sort headers.
12398 * arc-newlib-tdep.c: Sort headers.
12399 * annotate.h: Sort headers.
12400 * annotate.c: Sort headers.
12401 * amd64-windows-tdep.c: Sort headers.
12402 * amd64-windows-nat.c: Sort headers.
12403 * amd64-tdep.c: Sort headers.
12404 * amd64-sol2-tdep.c: Sort headers.
12405 * amd64-obsd-tdep.c: Sort headers.
12406 * amd64-obsd-nat.c: Sort headers.
12407 * amd64-nbsd-tdep.c: Sort headers.
12408 * amd64-nbsd-nat.c: Sort headers.
12409 * amd64-nat.c: Sort headers.
12410 * amd64-linux-tdep.c: Sort headers.
12411 * amd64-linux-nat.c: Sort headers.
12412 * amd64-fbsd-tdep.c: Sort headers.
12413 * amd64-fbsd-nat.c: Sort headers.
12414 * amd64-dicos-tdep.c: Sort headers.
12415 * amd64-darwin-tdep.c: Sort headers.
12416 * amd64-bsd-nat.c: Sort headers.
12417 * alpha-tdep.c: Sort headers.
12418 * alpha-obsd-tdep.c: Sort headers.
12419 * alpha-nbsd-tdep.c: Sort headers.
12420 * alpha-mdebug-tdep.c: Sort headers.
12421 * alpha-linux-tdep.c: Sort headers.
12422 * alpha-linux-nat.c: Sort headers.
12423 * alpha-bsd-tdep.c: Sort headers.
12424 * alpha-bsd-nat.c: Sort headers.
12425 * aix-thread.c: Sort headers.
12426 * agent.c: Sort headers.
12427 * addrmap.c: Sort headers.
12428 * ada-varobj.c: Sort headers.
12429 * ada-valprint.c: Sort headers.
12430 * ada-typeprint.c: Sort headers.
12431 * ada-tasks.c: Sort headers.
12432 * ada-lang.c: Sort headers.
12433 * aarch64-tdep.c: Sort headers.
12434 * aarch64-ravenscar-thread.c: Sort headers.
12435 * aarch64-newlib-tdep.c: Sort headers.
12436 * aarch64-linux-tdep.c: Sort headers.
12437 * aarch64-linux-nat.c: Sort headers.
12438 * aarch64-fbsd-tdep.c: Sort headers.
12439 * aarch64-fbsd-nat.c: Sort headers.
12440 * aarch32-linux-nat.c: Sort headers.
12441
12442 2019-04-04 Tom Tromey <tom@tromey.com>
12443
12444 * varobj.c (varobj_create): Update.
12445 * rust-exp.y (struct rust_parser) <update_innermost_block,
12446 lookup_symbol>: New methods.
12447 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12448 Rename.
12449 (rust_parser::rust_lookup_type)
12450 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12451 * printcmd.c (display_command, do_one_display): Update.
12452 * parser-defs.h (struct parser_state) <parser_state>: Add
12453 "tracker" parameter.
12454 (block_tracker): New member.
12455 (class innermost_block_tracker) <innermost_block_tracker>: Add
12456 "types" parameter.
12457 <reset>: Remove method.
12458 (innermost_block): Don't declare.
12459 (null_post_parser): Update.
12460 * parse.c (innermost_block): Remove global.
12461 (write_dollar_variable): Update.
12462 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12463 Remove "tracker_types" parameter.
12464 (parse_expression): Add "tracker" parameter.
12465 (parse_expression_for_completion): Update.
12466 (null_post_parser): Add "tracker" parameter.
12467 * p-exp.y: Update rules.
12468 * m2-exp.y: Update rules.
12469 * language.h (struct language_defn) <la_post_parser>: Add
12470 "tracker" parameter.
12471 * go-exp.y: Update rules.
12472 * f-exp.y: Update rules.
12473 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12474 parameter.
12475 * d-exp.y: Update rules.
12476 * c-exp.y: Update rules.
12477 * breakpoint.c (set_breakpoint_condition): Create an
12478 innermost_block_tracker.
12479 (watch_command_1): Likewise.
12480 * ada-lang.c (resolve): Add "tracker" parameter.
12481 (resolve_subexp): Likewise.
12482 * ada-exp.y (write_var_from_sym): Update.
12483
12484 2019-04-04 Tom Tromey <tom@tromey.com>
12485
12486 * type-stack.h: New file.
12487 * type-stack.c: New file.
12488 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12489 type-stack.h.
12490 (insert_into_type_stack, insert_type, push_type, push_type_int)
12491 (insert_type_address_space, pop_type, pop_type_int)
12492 (pop_typelist, pop_type_stack, append_type_stack)
12493 (push_type_stack, get_type_stack, push_typelist)
12494 (follow_type_instance_flags, follow_types): Don't declare.
12495 * parse.c (type_stack): Remove global.
12496 (parse_exp_in_context): Update.
12497 (insert_into_type_stack, insert_type, push_type, push_type_int)
12498 (insert_type_address_space, pop_type, pop_type_int)
12499 (pop_typelist, pop_type_stack, append_type_stack)
12500 (push_type_stack, get_type_stack, push_typelist)
12501 (follow_type_instance_flags, follow_types): Remove (moved to
12502 type-stack.c).
12503 * f-exp.y (type_stack): New global.
12504 Update rules.
12505 (push_kind_type, f_parse): Update.
12506 * d-exp.y (type_stack): New global.
12507 Update rules.
12508 (d_parse): Update.
12509 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12510 Update rules.
12511 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12512 (HFILES_NO_SRCDIR): Add type-stack.h.
12513
12514 2019-04-04 Tom Tromey <tom@tromey.com>
12515
12516 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12517 (rust_parser::convert_ast_to_expression, rust_parse)
12518 (rust_lex_test_completion, rust_lex_tests): Update.
12519 * parser-defs.h (struct expr_completion_state): New.
12520 (struct parser_state) <parser_state>: Add completion parameter.
12521 <mark_struct_expression, mark_completion_tag>: New methods.
12522 <parse_completion, m_completion_state>: New members.
12523 (prefixify_expression, null_post_parser): Update.
12524 (mark_struct_expression, mark_completion_tag): Don't declare.
12525 * parse.c (parse_completion, expout_last_struct)
12526 (expout_tag_completion_type, expout_completion_name): Remove
12527 globals.
12528 (parser_state::mark_struct_expression)
12529 (parser_state::mark_completion_tag): Now methods.
12530 (prefixify_expression): Add last_struct parameter.
12531 (prefixify_subexp): Likewise.
12532 (parse_exp_1): Update.
12533 (parse_exp_in_context): Add cstate parameter. Update.
12534 (parse_expression_for_completion): Create an
12535 expr_completion_state.
12536 (null_post_parser): Add "completion" parameter.
12537 * p-exp.y: Update rules.
12538 (yylex): Update.
12539 * language.h (struct language_defn) <la_post_parser>: Add
12540 "completing" parameter.
12541 * go-exp.y: Update rules.
12542 (lex_one_token): Update.
12543 * expression.h (parse_completion): Don't declare.
12544 * d-exp.y: Update rules.
12545 (lex_one_token): Update rules.
12546 * c-exp.y: Update rules.
12547 (lex_one_token): Update.
12548 * ada-lang.c (resolve): Add "parse_completion" parameter.
12549 (resolve_subexp): Likewise.
12550 (ada_resolve_function): Likewise.
12551
12552 2019-04-04 Tom Tromey <tom@tromey.com>
12553
12554 * parser-defs.h (struct parser_state) <start_arglist,
12555 end_arglist>: New methods.
12556 <arglist_len, m_funcall_chain>: New members.
12557 (arglist_len, start_arglist, end_arglist): Don't declare.
12558 * parse.c (arglist_len, funcall_chain): Remove global.
12559 (start_arglist, end_arglist): Remove functions.
12560 (parse_exp_in_context): Update.
12561 * p-exp.y: Update rules.
12562 * m2-exp.y: Update rules.
12563 * go-exp.y: Update rules.
12564 * f-exp.y: Update rules.
12565 * d-exp.y: Update rules.
12566 * c-exp.y: Update rules.
12567
12568 2019-04-04 Tom Tromey <tom@tromey.com>
12569
12570 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12571 lex_operator, push_back>: New methods.
12572 Update all rules.
12573 (rust_parser::lex_hex, lex_escape): Rename and update.
12574 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12575 (rust_parser::lex_operator): Rename and update.
12576 (rust_parser::lex_number, rustyylex, rustyyerror)
12577 (rust_lex_test_init, rust_lex_test_sequence)
12578 (rust_lex_test_push_back, rust_lex_tests): Update.
12579 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12580 parameter.
12581 <lexptr, prev_lexptr>: New members.
12582 (lexptr, prev_lexptr): Don't declare.
12583 * parse.c (lexptr, prev_lexptr): Remove globals.
12584 (parse_exp_in_context): Update.
12585 * p-exp.y (yylex, yyerror): Update.
12586 * m2-exp.y (parse_number, yylex, yyerror): Update.
12587 * go-exp.y (lex_one_token, yyerror): Update.
12588 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12589 * d-exp.y (lex_one_token, yyerror): Update.
12590 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12591 (lex_one_token, yyerror): Update.
12592 * ada-lex.l (YY_INPUT): Update.
12593 (rewind_to_char): Update.
12594 * ada-exp.y (yyerror): Update.
12595
12596 2019-04-04 Tom Tromey <tom@tromey.com>
12597
12598 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12599 * parser-defs.h (struct parser_state) <parser_state>: Add new
12600 parameter.
12601 <comma_terminates>: New member.
12602 (comma_terminates): Don't declare global.
12603 * parse.c (comma_terminates): Remove global.
12604 (parse_exp_in_context): Update.
12605 * p-exp.y (yylex): Update.
12606 * m2-exp.y (yylex): Update.
12607 * go-exp.y (lex_one_token): Update.
12608 * f-exp.y (yylex): Update.
12609 * d-exp.y (lex_one_token): Update.
12610 * c-exp.y (lex_one_token): Update.
12611 * ada-lex.l: Update.
12612
12613 2019-04-04 Tom Tromey <tom@tromey.com>
12614
12615 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12616 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12617 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12618 * parser-defs.h (paren_depth): Don't declare.
12619 * parse.c (paren_depth): Remove global.
12620 (parse_exp_in_context): Update.
12621 * p-exp.y (paren_depth): New global.
12622 (pascal_parse): Initialize it.
12623 * m2-exp.y (paren_depth): New global.
12624 (m2_parse): Initialize it.
12625 * go-exp.y (paren_depth): New global.
12626 (go_parse): Initialize it.
12627 * f-exp.y (paren_depth): New global.
12628 (f_parse): Initialize it.
12629 * d-exp.y (paren_depth): New global.
12630 (d_parse): Initialize it.
12631 * c-exp.y (paren_depth): New global.
12632 (c_parse): Initialize it.
12633 * ada-lex.l (paren_depth): New global.
12634 (lexer_init): Initialize it.
12635
12636 2019-04-04 Tom Tromey <tom@tromey.com>
12637
12638 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12639 (rust_parser::convert_ast_to_type)
12640 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12641 * parser-defs.h (struct parser_state) <parser_state>: Add
12642 parameters. Initialize new members.
12643 <expression_context_block, expression_context_pc>: New members.
12644 * parse.c (expression_context_block, expression_context_pc):
12645 Remove globals.
12646 (parse_exp_in_context): Update.
12647 * p-exp.y: Update all rules.
12648 (yylex): Update.
12649 * m2-exp.y: Update all rules.
12650 (yylex): Update.
12651 * go-exp.y (yylex): Update.
12652 * f-exp.y (yylex): Update.
12653 * d-exp.y: Update all rules.
12654 (yylex): Update.
12655 * c-exp.y: Update all rules.
12656 (lex_one_token, classify_name, yylex, c_parse): Update.
12657 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12658
12659 2019-04-04 Tom Tromey <tom@tromey.com>
12660
12661 * gdbarch.h, gdbarch.c: Rebuild.
12662 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12663 * stap-probe.h:
12664 (struct stap_parse_info): Replace "parser_state" with
12665 "expr_builder".
12666 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12667 (parser_state): New class.
12668 * parse.c (expr_builder): Rename.
12669 (expr_builder::release): Rename.
12670 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12671 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12672 (write_exp_elt_longcst, write_exp_elt_floatcst)
12673 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12674 (write_exp_string_vector, write_exp_bitstring)
12675 (write_exp_msymbol, mark_struct_expression)
12676 (write_dollar_variable)
12677 (insert_type_address_space, increase_expout_size): Replace
12678 "parser_state" with "expr_builder".
12679 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12680 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12681 "parser_state" with "expr_builder".
12682
12683 2019-04-04 Tom Tromey <tom@tromey.com>
12684
12685 * rust-exp.y: Replace "parse_language" with method call.
12686 * p-exp.y:
12687 (yylex): Replace "parse_language" with method call.
12688 * m2-exp.y:
12689 (yylex): Replace "parse_language" with method call.
12690 * go-exp.y (classify_name): Replace "parse_language" with method
12691 call.
12692 * f-exp.y (yylex): Replace "parse_language" with method call.
12693 * d-exp.y (lex_one_token): Replace "parse_language" with method
12694 call.
12695 * c-exp.y:
12696 (lex_one_token, classify_name, yylex): Replace "parse_language"
12697 with method call.
12698 * ada-exp.y (find_primitive_type, type_char)
12699 (type_system_address): Replace "parse_language" with method call.
12700
12701 2019-04-04 Tom Tromey <tom@tromey.com>
12702
12703 * rust-exp.y: Replace "parse_gdbarch" with method call.
12704 * parse.c (write_dollar_variable, insert_type_address_space):
12705 Replace "parse_gdbarch" with method call.
12706 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12707 call.
12708 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12709 call.
12710 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12711 "parse_gdbarch" with method call.
12712 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12713 with method call.
12714 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12715 "parse_gdbarch" with method call.
12716 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12717 "parse_gdbarch" with method call.
12718 * c-exp.y (parse_type, parse_number, classify_name): Replace
12719 "parse_gdbarch" with method call.
12720 * ada-lex.l: Replace "parse_gdbarch" with method call.
12721 * ada-exp.y (parse_type, find_primitive_type, type_char)
12722 (type_system_address): Replace "parse_gdbarch" with method call.
12723
12724 2019-04-04 Tom Tromey <tom@tromey.com>
12725
12726 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12727 * stap-probe.c (stap_parse_argument): Update.
12728 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12729 initial_size parameter.
12730 * rust-exp.y (rust_lex_tests): Update.
12731 * parse.c (parser_state): Update.
12732 (parse_exp_in_context): Update.
12733 * parser-defs.h (struct parser_state) <parser_state>: Remove
12734 "initial_size" parameter.
12735
12736 2019-04-04 Tom Tromey <tom@tromey.com>
12737
12738 * parser-defs.h (increase_expout_size): Don't declare.
12739 * parse.c (increase_expout_size): Now static.
12740
12741 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12742
12743 * gnu-nat.c (gnu_nat_target::wait): Fix
12744 target_waitstatus_to_string call.
12745
12746 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12747
12748 * eval.c (evaluate_subexp_standard): Handle internal functions
12749 during Fortran function call handling.
12750
12751 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12752
12753 * NEWS: Mention new internal functions.
12754 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12755 (read_base_type): Use dwarf2_init_complex_target_type.
12756 * value.c (creal_internal_fn): New function.
12757 (cimag_internal_fn): New function.
12758 (_initialize_values): Register new internal functions.
12759
12760 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12761
12762 * infrun.c (stop_all_threads): If debug_infrun, always
12763 trace the wait status after wait_one, using
12764 target_waitstatus_to_string and target_pid_to_str.
12765 (handle_inferior_event): Replace various trace of
12766 wait status kind by a single trace.
12767 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12768 wait status kind image by target_waitstatus_to_string.
12769 * target/waitstatus.c (target_waitstatus_to_string): Fix
12770 obsolete comment.
12771
12772 2019-04-01 Tom Tromey <tromey@adacore.com>
12773
12774 PR symtab/23331:
12775 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12776
12777 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12778 Pedro Alves <palves@redhat.com>
12779
12780 * top.c (quit_force): Call 'finalize_values'.
12781 * value.c (finalize_values): New function.
12782 * value.h (finalize_values): Declare.
12783
12784 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12785
12786 * NEWS: Announce $_gdb_major and $_gdb_minor.
12787
12788 * top.c (init_gdb_version_vars): New function.
12789 (gdb_init): Call init_gdb_version_vars.
12790
12791 2019-03-29 Tom Tromey <tromey@adacore.com>
12792
12793 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12794 help text. Remove dead code.
12795
12796 2019-03-29 Keith Seitz <keiths@redhat.com>
12797
12798 From Siddhesh Poyarekar:
12799 * f-lang.h (f77_get_upperbound): Return LONGEST.
12800 (f77_get_lowerbound): Likewise.
12801 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12802 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12803 print them.
12804 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12805 plongest to format print it.
12806 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12807 (f77_get_upperbound): Likewise.
12808 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12809 LOWER_BOUND to LONGEST.
12810 (f77_create_arrayprint_offset_tbl): Likewise.
12811
12812 2019-03-29 Keith Seitz <keiths@redhat.com>
12813
12814 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12815 %s/pulongest for TYPE_LENGTH instead of %d in format
12816 strings.
12817 * ada-typerint.c (ada_print_type): Likewise.
12818 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12819 * compile/compile-c-support.c (generate_register_struct): Likewise.
12820 * gdbtypes.c (recursive_dump_type): Likewise.
12821 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12822 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12823 instead of %d in format strings.
12824 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12825 to std::min to ULONGEST.
12826 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12827 instead of %d in format strings.
12828 * tracepoint.c (info_scope_command): Likewise.
12829 * typeprint.c (print_offset_data::update)
12830 (print_offset_data::finish): Likewise.
12831 * xtensa-tdep.c (xtensa_store_return_value)
12832 (xtensa_push_dummy_call): Likewise.
12833
12834 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12835
12836 * windows-nat.c (display_selector): Fixed format specifications
12837 for 64-bit Cygwin.
12838
12839 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12840
12841 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12842
12843 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12844
12845 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12846 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12847 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12848 (nios2_linux_init_abi): Install it.
12849
12850 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12851
12852 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12853
12854 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12855
12856 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12857
12858 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12859 Tom Tromey <tromey@adacore.com>
12860
12861 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12862
12863 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12864
12865 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12866 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12867 method to compute the bounds of range types. Also print "[evaluated]"
12868 if the bounds' values come from a dynamic evaluation.
12869
12870 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12871
12872 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12873 whitespace when pretty printing is on.
12874
12875 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12876
12877 * ppc-linux-nat.c: Add include.
12878
12879 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12880
12881 * NEWS: Mention AArch64 Pointer Authentication.
12882
12883 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12884
12885 * arm-linux-nat.c: Add include.
12886
12887 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12888
12889 * source-cache.c (source_cache::get_source_lines): Re-read
12890 fullname after calling open_source_file.
12891
12892 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12893
12894 * NEWS: Mention TLS support for FreeBSD.
12895
12896 2019-03-25 Tom Tromey <tromey@adacore.com>
12897
12898 * minsyms.c (BUNCH_SIZE): Update comment.
12899 (~minimal_symbol_reader): Remove old comment.
12900 (compact_minimal_symbols): Update comment.
12901 (minimal_symbol_reader::install): Remove old comment. Update
12902 other comments.
12903
12904 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12905
12906 * s390-linux-nat.c: Add include.
12907
12908 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12909
12910 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12911 Call linux_get_hwcap.
12912 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12913 Likewise.
12914 (aarch64_linux_get_hwcap): Remove function.
12915 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12916 declaration.
12917 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12918 linux_get_hwcap.
12919 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12920 * linux-tdep.c (linux_get_hwcap): Add function.
12921 (linux_get_hwcap2): Likewise.
12922 * linux-tdep.h (linux_get_hwcap): Add declaration.
12923 (linux_get_hwcap2): Likewise.
12924 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12925 (ppc_linux_get_hwcap2): Likewise.
12926 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12927 linux_get_hwcap.
12928 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12929 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12930 (ppc_linux_nat_target::read_description): Likewise.
12931 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12932 * s390-linux-nat.c: Likewise.
12933 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12934
12935 2019-03-24 Tom Tromey <tom@tromey.com>
12936
12937 * ada-lang.c (standard_lookup): Simplify initialization.
12938 (ada_lookup_symbol_nonlocal): Simplify return.
12939 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12940 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12941 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12942 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12943 initialization.
12944 * solib.c (solib_global_lookup): Simplify.
12945 * symtab.c (null_block_symbol): Remove.
12946 (symbol_cache_lookup): Simplify returns.
12947 (lookup_language_this): Simplify returns.
12948 (lookup_symbol_aux): Simplify return.
12949 (lookup_local_symbol): Simplify returns.
12950 (lookup_global_symbol_from_objfile): Simplify return.
12951 (lookup_symbol_in_objfile_symtabs)
12952 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12953 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12954 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12955 * cp-namespace.c (cp_lookup_bare_symbol)
12956 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12957 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12958 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12959 (cp_lookup_symbol_via_imports): Simplify initialization.
12960 (find_symbol_in_baseclass): Likewise.
12961 * symtab.h (null_block_symbol): Remove.
12962 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12963 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12964 (d_lookup_symbol_module): Likewise.
12965 (find_symbol_in_baseclass): Simplify initialization.
12966
12967 2019-03-24 Tom Tromey <tom@tromey.com>
12968
12969 * expression.h: Don't include symtab.h.
12970 (struct block): Forward declare.
12971
12972 2019-03-24 Tom Tromey <tom@tromey.com>
12973
12974 * c-exp.y (typebase): Remove casts.
12975 * gdbtypes.c (lookup_unsigned_typename, )
12976 (lookup_signed_typename): Remove cast.
12977 * eval.c (parse_to_comma_and_eval): Remove cast.
12978 * parse.c (write_dollar_variable): Remove cast.
12979 * block.h (struct block) <superblock>: Now const.
12980 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12981 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12982 (map_block): Make "block" const.
12983 * symfile.h (struct quick_symbol_functions)
12984 <map_matching_symbols>: Constify block argument to "callback".
12985 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12986 const.
12987 (find_pc_sect_compunit_symtab): Make "b" const.
12988 (find_symbol_at_address): Likewise.
12989 (search_symbols): Likewise.
12990 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12991 (dw2_debug_names_lookup_symbol): Likewise.
12992 (dw2_map_matching_symbols): Update.
12993 * p-valprint.c (pascal_val_print): Remove "block".
12994 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12995 (aux_add_nonlocal_symbols): Make "block" const.
12996 (resolve_subexp): Remove cast.
12997 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12998 const.
12999 (iterate_over_file_blocks): Likewise.
13000 * f-exp.y (%union) <bval>: Remove.
13001 * coffread.c (patch_opaque_types): Make "b" const.
13002 * spu-tdep.c (spu_catch_start): Make "block" const.
13003 * c-valprint.c (print_unpacked_pointer): Remove "block".
13004 * symmisc.c (dump_symtab_1): Make "b" const.
13005 (block_depth): Make "block" const.
13006 * d-exp.y (%union) <bval>: Remove.
13007 * cp-support.h (cp_lookup_rtti_type): Update.
13008 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13009 * psymtab.c (psym_lookup_symbol): Make "block" const.
13010 (maintenance_check_psymtabs): Make "b" const.
13011 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13012 (enumerate_locals, enumerate_args): Update.
13013 * python/py-symtab.c (stpy_global_block): Make "block" const.
13014 (stpy_static_block): Likewise.
13015 * inline-frame.c (block_starting_point_at): Make "new_block"
13016 const.
13017 * block.c (find_block_in_blockvector): Make return type const.
13018 (blockvector_for_pc_sect): Make "b" const.
13019 (find_block_in_blockvector): Make "b" const.
13020
13021 2019-03-23 Tom Tromey <tom@tromey.com>
13022
13023 * varobj.c (varobj_create): Update.
13024 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13025 * printcmd.c (display_command, do_one_display): Don't reset
13026 innermost_block.
13027 * parser-defs.h (enum innermost_block_tracker_type): Move to
13028 expression.h.
13029 (innermost_block): Update comment.
13030 * parse.c (parse_exp_1): Add tracker_types parameter.
13031 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13032 tracker_types parameter. Reset innermost_block.
13033 (parse_exp_in_context): Remove.
13034 (parse_expression_for_completion): Update.
13035 * objfiles.c (~objfile): Don't reset expression_context_block or
13036 innermost_block.
13037 * expression.h (enum innermost_block_tracker_type): Move from
13038 parser-defs.h.
13039 (parse_exp_1): Add tracker_types parameter.
13040 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13041 reset innermost_block.
13042
13043 2019-03-23 Tom Tromey <tom@tromey.com>
13044
13045 * objfiles.h: Include bcache.h.
13046
13047 2019-03-23 Tom Tromey <tom@tromey.com>
13048
13049 * linespec.c (get_current_search_block): Use
13050 scoped_restore_current_language.
13051 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13052
13053 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13054 Jiong Wang <jiong.wang@arm.com>
13055
13056 * aarch64-linux-tdep.c
13057 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13058 section.
13059 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13060
13061 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13062 Jiong Wang <jiong.wang@arm.com>
13063
13064 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13065 instructions.
13066 (aarch64_analyze_prologue_test): Add PACIASP test.
13067 (aarch64_prologue_prev_register): Unmask PC value.
13068
13069 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13070 Jiong Wang <jiong.wang@arm.com>
13071
13072 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13073 (aarch64_dwarf2_prev_register): Unmask PC value.
13074 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13075 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13076 DW_CFA_AARCH64_negate_ra_state.
13077 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13078
13079 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13080 Jiong Wang <jiong.wang@arm.com>
13081
13082 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13083 registers.
13084 (aarch64_pseudo_register_name): Likewise.
13085 (aarch64_pseudo_register_type): Likewise.
13086 (aarch64_pseudo_register_reggroup_p): Likewise.
13087 (aarch64_gdbarch_init): Add pauth registers.
13088 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13089 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13090 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13091 (struct gdbarch_tdep): Add regnum for ra_state.
13092
13093 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13094 Jiong Wang <jiong.wang@arm.com>
13095
13096 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13097
13098 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13099 Jiong Wang <jiong.wang@arm.com>
13100
13101 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13102 function.
13103 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13104 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13105 (aarch64_gdbarch_init): Add puth registers.
13106 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13107 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13108 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13109
13110 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13111 Jiong Wang <jiong.wang@arm.com>
13112
13113 * aarch64-linux-nat.c
13114 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13115 * aarch64-linux-tdep.c
13116 (aarch64_linux_core_read_description): Likewise.
13117 (aarch64_linux_get_hwcap): New function.
13118 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13119 (aarch64_linux_get_hwcap): New declaration.
13120
13121 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13122 Jiong Wang <jiong.wang@arm.com>
13123
13124 * aarch64-linux-nat.c
13125 (aarch64_linux_nat_target::read_description): Add pauth param.
13126 * aarch64-linux-tdep.c
13127 (aarch64_linux_core_read_description): Likewise.
13128 * aarch64-tdep.c (struct target_desc): Add in pauth.
13129 (aarch64_read_description): Add pauth param.
13130 (aarch64_gdbarch_init): Likewise.
13131 * aarch64-tdep.h (aarch64_read_description): Likewise.
13132 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13133 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13134 * features/Makefile: Add new files.
13135 * features/aarch64-pauth.c: New file.
13136 * features/aarch64-pauth.xml: New file.
13137
13138 2019-03-20 Tom Tromey <tromey@adacore.com>
13139
13140 * infrun.c (handle_inferior_event): Rename from
13141 handle_inferior_event_1. Create a scoped_value_mark.
13142 (handle_inferior_event): Remove.
13143
13144 2019-03-19 Tom Tromey <tromey@adacore.com>
13145
13146 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13147 * infrun.h (print_stop_event): Add "displays" parameter.
13148 * infrun.c (print_stop_event): Add "displays" parameter.
13149
13150 2019-03-19 Pedro Alves <palves@redhat.com>
13151
13152 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13153 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13154 to -1. Fix TABs vs spaces.
13155 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13156 * tui/tui-out.h (tui_ui_out) Add intro comments.
13157 <m_line, m_start_of_line>: In-class initialize, and add describing
13158 comment.
13159
13160 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13161
13162 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13163 variable names.
13164 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13165
13166 2019-03-18 Pedro Alves <palves@redhat.com>
13167 Eli Zaretskii <eliz@gnu.org>
13168
13169 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13170 m_line and m_start_of_line.
13171
13172 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13173
13174 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13175 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13176 it returns a newline. This fixes a regression in TU mode, whereby
13177 the next line is output on the same screen line as the user input.
13178
13179 2019-03-18 Tom Tromey <tromey@adacore.com>
13180
13181 * minsyms.c (minimal_symbol_reader::install): Remove call to
13182 obstack_blank.
13183
13184 2019-03-18 Pedro Alves <palves@redhat.com>
13185
13186 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13187 New globals.
13188 (apply_style): New, factored out from ...
13189 (apply_ansi_escape): ... this. Handle reverse video mode.
13190 (tui_set_reverse_mode): New function.
13191 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13192 * tui/tui-winsource.c (tui_show_source_line): Use
13193 tui_set_reverse_mode instead of setting A_STANDOUT.
13194 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13195 New setter methods.
13196
13197 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13198
13199 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13200 Handle tabs.
13201
13202 2019-03-18 Tom Tromey <tromey@adacore.com>
13203
13204 * ada-lang.c (empty_array): Add "high" parameter.
13205 (ada_evaluate_subexp): Update.
13206
13207 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13208
13209 * unittests/string_view-selftests.c: Define
13210 _initialize_string_view_selftests unconditionally.
13211
13212 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13213
13214 PR gdb/24350
13215 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13216
13217 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13218
13219 PR gdb/24351
13220 * windows-nat.c (display_selector): Fix format specifiers.
13221
13222 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13223
13224 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13225 tui_refill_source_window instead of tui_refresh_win, to update the
13226 current execution line. This fixes redisplay of the current line
13227 when stepping through the code with "next" or "step".
13228
13229 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13230
13231 * source-cache.c (source_cache::get_source_lines): Call
13232 find_source_lines to initialize s->nlines. This fixes vertical
13233 scrolling of TUI source window when the DOWN arrow is pressed.
13234
13235 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13236
13237 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13238 linux-thread-db.c (_initialize_thread_db): Likewise.
13239
13240 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13241
13242 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13243 wclrtoeol in tui_show_source_line". This reverts changes made in
13244 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13245
13246 2019-03-15 Tom Tromey <tom@tromey.com>
13247
13248 * symtab.h (struct minimal_symbol): Derive from
13249 general_symbol_info.
13250 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13251 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13252 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13253 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13254 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13255 (MSYMBOL_SEARCH_NAME): Update.
13256 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13257 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13258 * minsyms.c (minimal_symbol_reader::record_full): Update.
13259
13260 2019-03-15 Tom Tromey <tom@tromey.com>
13261
13262 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13263
13264 2019-03-15 Tom Tromey <tom@tromey.com>
13265
13266 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13267 unique_xmalloc_ptr.
13268 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13269 Update.
13270 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13271 (build_minimal_symbol_hash_tables)
13272 (minimal_symbol_reader::install): Update.
13273
13274 2019-03-15 Tom Tromey <tom@tromey.com>
13275
13276 * symtab.c (create_demangled_names_hash): Update.
13277 (symbol_set_names): Update.
13278 * objfiles.h (struct objfile_per_bfd_storage)
13279 <demangled_names_hash>: Now an htab_up.
13280 * objfiles.c (objfile_per_bfd_storage): Simplify.
13281
13282 2019-03-15 Tom Tromey <tom@tromey.com>
13283
13284 * objfiles.h (struct objfile_per_bfd_storage): Declare
13285 destructor.
13286 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13287 New.
13288 (get_objfile_bfd_data): Use new. Don't initialize
13289 language_of_main.
13290 (free_objfile_per_bfd_storage): Remove.
13291 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13292
13293 2019-03-15 Tom Tromey <tom@tromey.com>
13294
13295 * symfile.c (reread_symbols): Update.
13296 * objfiles.c (objfile::objfile): Update.
13297 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13298 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13299 comment.
13300 (minimal_symbol_reader::install): Update.
13301 (terminate_minimal_symbol_table): Remove.
13302 * jit.c (jit_object_close_impl): Update.
13303
13304 2019-03-15 Tom Tromey <tom@tromey.com>
13305
13306 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13307 initializations.
13308
13309 2019-03-15 Tom Tromey <tom@tromey.com>
13310
13311 * objfiles.h (struct objfile_per_bfd_storage)
13312 <demangled_hash_languages>: Now a bitset.
13313 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13314 (lookup_minimal_symbol): Update.
13315
13316 2019-03-15 Tom Tromey <tom@tromey.com>
13317
13318 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13319 Don't return the symbol.
13320 * coffread.c (record_minimal_symbol): Use record_full.
13321
13322 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13323
13324 The MS-Windows port of ncurses fails to switch to a color pair if
13325 one or both of the colors are the implicit default colors. This
13326 change records the default colors when TUI is initialized, and
13327 then specifies them explicitly when a color pair uses the default
13328 colors. This allows color styling in TUI mode on MS-Windows.
13329
13330 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13331 ncurses_norm_attr.
13332 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13333 colors in ncurses_norm_attr.
13334 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13335 "none", replace it with the default color recorded in
13336 ncurses_norm_attr.
13337
13338 2019-03-14 Tom Tromey <tromey@adacore.com>
13339
13340 * source-cache.h (class source_cache) <get_source_lines>: Return
13341 std::string.
13342 * source-cache.c (source_cache::extract_lines): Handle case where
13343 first_pos==npos. Return std::string.
13344 (source_cache::get_source_lines): Update.
13345
13346 2019-03-14 Tom Tromey <tromey@adacore.com>
13347
13348 * NEWS: Add item for "style sources" commands.
13349 * source-cache.c (source_cache::get_source_lines): Check
13350 source_styling.
13351 * cli/cli-style.c (source_styling): New global.
13352 (_initialize_cli_style): Add "style sources" commands.
13353 (show_style_sources): New function.
13354 * cli/cli-style.h (source_styling): Declare.
13355
13356 2019-03-14 Pedro Alves <palves@redhat.com>
13357 Tom Tromey <tromey@adacore.com>
13358
13359 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13360 * tui/tui-winsource.c (tui_refill_source_window): New function,
13361 from...
13362 (tui_horizontal_source_scroll): ... here. Move some logic.
13363 * cli/cli-style.c (set_style_enabled): Notify new observable.
13364 * tui/tui-hooks.c (tui_redisplay_source): New function.
13365 (tui_attach_detach_observers): Attach or detach
13366 tui_redisplay_source.
13367 * observable.h (source_styling_changed): New observable.
13368 * observable.c: Define source_styling_changed observable.
13369
13370 2019-03-13 Tom Tromey <tromey@adacore.com>
13371
13372 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13373 (i386_gnu_nat_target::store_registers): Update.
13374 * target-debug.h (target_debug_print_std_string): New macro.
13375 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13376 * windows-tdep.c (display_one_tib): Update.
13377 * tui/tui-stack.c (tui_make_status_line): Update.
13378 * top.c (print_inferior_quit_action): Update.
13379 * thread.c (thr_try_catch_cmd): Update.
13380 (add_thread_with_info): Update.
13381 (thread_target_id_str): Update.
13382 (thr_try_catch_cmd): Update.
13383 (thread_command): Update.
13384 (thread_find_command): Update.
13385 * record-btrace.c (record_btrace_target::info_record)
13386 (record_btrace_resume_thread, record_btrace_target::resume)
13387 (record_btrace_cancel_resume, record_btrace_step_thread)
13388 (record_btrace_target::wait, record_btrace_target::wait)
13389 (record_btrace_target::wait, record_btrace_target::stop): Update.
13390 * progspace.c (print_program_space): Update.
13391 * process-stratum-target.c
13392 (process_stratum_target::thread_address_space): Update.
13393 * linux-fork.c (linux_fork_mourn_inferior)
13394 (detach_checkpoint_command, info_checkpoints_command)
13395 (linux_fork_context): Update.
13396 (linux_fork_detach): Update.
13397 (class scoped_switch_fork_info): Update.
13398 (delete_checkpoint_command): Update.
13399 * infrun.c (follow_fork_inferior): Update.
13400 (follow_fork_inferior): Update.
13401 (proceed_after_vfork_done): Update.
13402 (handle_vfork_child_exec_or_exit): Update.
13403 (follow_exec): Update.
13404 (displaced_step_prepare_throw): Update.
13405 (displaced_step_restore): Update.
13406 (start_step_over): Update.
13407 (resume_1): Update.
13408 (clear_proceed_status_thread): Update.
13409 (proceed): Update.
13410 (print_target_wait_results): Update.
13411 (do_target_wait): Update.
13412 (context_switch): Update.
13413 (stop_all_threads): Update.
13414 (restart_threads): Update.
13415 (finish_step_over): Update.
13416 (handle_signal_stop): Update.
13417 (switch_back_to_stepped_thread): Update.
13418 (keep_going_pass_signal): Update.
13419 (print_exited_reason): Update.
13420 (normal_stop): Update.
13421 * inferior.c (inferior_pid_to_str): Change return type.
13422 (print_selected_inferior): Update.
13423 (add_inferior): Update.
13424 (detach_inferior): Update.
13425 * dummy-frame.c (fprint_dummy_frames): Update.
13426 * dcache.c (dcache_info_1): Update.
13427 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13428 (btrace_fetch, btrace_clear): Update.
13429 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13430 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13431 type.
13432 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13433 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13434 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13435 * gdbarch.c, gdbarch.h: Rebuild.
13436 * gdbarch.sh (core_pid_to_str): Change return type.
13437 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13438 return type.
13439 (windows_nat_target::pid_to_str): Change return type.
13440 (windows_delete_thread): Update.
13441 (windows_nat_target::attach): Update.
13442 (windows_nat_target::files_info): Update.
13443 * target-delegates.c: Rebuild.
13444 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13445 return type.
13446 (sol_thread_target::pid_to_str): Change return type.
13447 * remote.c (class remote_target) <pid_to_str>: Change return
13448 type.
13449 (remote_target::pid_to_str): Change return type.
13450 (extended_remote_target::attach, remote_target::remote_stop_ns)
13451 (remote_target::remote_notif_remove_queued_reply)
13452 (remote_target::push_stop_reply, remote_target::disable_btrace):
13453 Update.
13454 (extended_remote_target::attach): Update.
13455 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13456 type.
13457 (gdbsim_target::pid_to_str): Change return type.
13458 * ravenscar-thread.c (struct ravenscar_thread_target)
13459 <pid_to_str>: Change return type.
13460 (ravenscar_thread_target::pid_to_str): Change return type.
13461 * procfs.c (class procfs_target) <pid_to_str>: Change return
13462 type.
13463 (procfs_target::pid_to_str): Change return type.
13464 (procfs_target::attach): Update.
13465 (procfs_target::detach): Update.
13466 (procfs_target::fetch_registers): Update.
13467 (procfs_target::store_registers): Update.
13468 (procfs_target::wait): Update.
13469 (procfs_target::files_info): Update.
13470 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13471 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13472 return type.
13473 (nto_procfs_target::pid_to_str): Change return type.
13474 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13475 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13476 return type.
13477 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13478 (exit_lwp): Update.
13479 (attach_proc_task_lwp_callback, get_detach_signal)
13480 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13481 (linux_nat_target::resume, wait_lwp, stop_callback)
13482 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13483 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13484 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13485 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13486 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13487 type.
13488 (inf_ptrace_target::attach): Update.
13489 (inf_ptrace_target::files_info): Update.
13490 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13491 type.
13492 (go32_nat_target::pid_to_str): Change return type.
13493 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13494 (gnu_nat_target::wait): Update.
13495 (gnu_nat_target::wait): Update.
13496 (gnu_nat_target::resume): Update.
13497 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13498 (fbsd_nat_target::wait): Update.
13499 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13500 type.
13501 (darwin_nat_target::attach): Update.
13502 * corelow.c (class core_target) <pid_to_str>: Change return type.
13503 (core_target::pid_to_str): Change return type.
13504 * target.c (normal_pid_to_str): Change return type.
13505 (default_pid_to_str): Likewise.
13506 (target_pid_to_str): Change return type.
13507 (target_translate_tls_address): Update.
13508 (target_announce_detach): Update.
13509 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13510 return type.
13511 (bsd_uthread_target::pid_to_str): Change return type.
13512 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13513 type.
13514 (bsd_kvm_target::pid_to_str): Change return type.
13515 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13516 return type.
13517 (aix_thread_target::pid_to_str): Change return type.
13518 * target.h (struct target_ops) <pid_to_str>: Change return type.
13519 (target_pid_to_str, normal_pid_to_str): Likewise.
13520 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13521 type.
13522 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13523 type.
13524 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13525 return type.
13526 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13527 type.
13528 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13529 type.
13530 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13531 return type.
13532
13533 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13534
13535 * NEWS: Mention that the new default MI version is 3. Mention
13536 changes to the output of commands and events that deal with
13537 multi-location breakpoints.
13538 * breakpoint.c: Include "mi/mi-out.h".
13539 (print_one_breakpoint): Change output syntax if using MI version
13540 >= 3.
13541 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13542 New.
13543 (mi_multi_location_breakpoint_output_fixed): New.
13544 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13545 (mi_cmd_fix_multi_location_breakpoint_output): New.
13546 (mi_multi_location_breakpoint_output_fixed): New.
13547 * mi/mi-cmds.c (mi_cmds): Register command
13548 -fix-multi-location-breakpoint-output.
13549 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13550 interpreter "mi".
13551
13552 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13553
13554 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13555 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13556 instantiate mi_ui_out based on interpreter name.
13557 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13558 * mi/mi-main.c (mi_load_progress): Likewise.
13559
13560 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13561
13562 * NEWS: Combine separate "New targets" sections for 8.3.
13563
13564 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13565
13566 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13567 (ppcfbsd_init_abi): Install gdbarch
13568 "fetch_tls_load_module_address" and "get_thread_local_address"
13569 methods.
13570
13571 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13572
13573 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13574 (riscv_fbsd_init_abi): Install gdbarch
13575 "fetch_tls_load_module_address" and "get_thread_local_address"
13576 methods.
13577
13578 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13579
13580 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13581 (i386fbsd_init_abi): Install gdbarch
13582 "fetch_tls_load_module_address" and "get_thread_local_address"
13583 methods.
13584
13585 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13586
13587 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13588 (amd64fbsd_init_abi): Install gdbarch
13589 "fetch_tls_load_module_address" and "get_thread_local_address"
13590 methods.
13591
13592 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13593
13594 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13595 (struct fbsd_pspace_data): New type.
13596 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13597 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13598 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13599 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13600 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13601
13602 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13603
13604 * gdbtypes.c (lookup_struct_elt): New function.
13605 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13606 * gdbtypes.h (struct struct_elt): New type.
13607 (lookup_struct_elt): New prototype.
13608
13609 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13610
13611 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13612 remove disabled code block.
13613
13614 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13615
13616 * gdbarch.sh (get_thread_local_address): New method.
13617 * gdbarch.h, gdbarch.c: Regenerate.
13618 * target.c (target_translate_tls_address): Use
13619 gdbarch_get_thread_local_address if present instead of
13620 target::get_thread_local_address.
13621
13622 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13623
13624 * target.h (target::get_thread_local_address): Update comment.
13625
13626 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13627
13628 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13629 objfile->separate_debug_objfile_backlink if not NULL.
13630
13631 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13632
13633 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13634 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13635 (amd64bsd_store_inferior_registers): Likewise.
13636 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13637 Enable segment base registers.
13638 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13639 PT_GETFSBASE and PT_GETGSBASE.
13640 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13641 PT_SETGSBASE.
13642 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13643 segment base registers.
13644 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13645
13646 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13647
13648 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13649 Update calls to i386_target_description to add 'segments'
13650 parameter.
13651 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13652 add segment base registers.
13653 * arch/i386.c (i386_create_target_description): Add 'segments'
13654 parameter to enable segment base registers.
13655 * arch/i386.h (i386_create_target_description): Likewise.
13656 * features/i386/32bit-segments.xml: New file.
13657 * features/i386/32bit-segments.c: Generate.
13658 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13659 call to i386_target_description to add 'segments' parameter.
13660 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13661 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13662 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13663 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13664 if feature is present.
13665 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13666 Add 'segments' parameter to call to i386_target_description.
13667 (i386_target_description): Add 'segments' parameter to enable
13668 segment base registers.
13669 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13670 to call to i386_target_description.
13671 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13672 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13673 Define I386_NUM_REGS.
13674 (i386_target_description): Add 'segments' parameter to enable
13675 segment base registers.
13676
13677 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13678
13679 PR/24325
13680 * source-cache.c: #undef open and close, to avoid unresolved
13681 externals during linking.
13682
13683 2019-03-12 Tom Tromey <tromey@adacore.com>
13684
13685 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13686 const. Add initializers.
13687 (_initialize_remote): Don't initialize ptid globals.
13688
13689 2019-03-12 Pedro Alves <palves@redhat.com>
13690
13691 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13692
13693 2019-03-12 Pedro Alves <palves@redhat.com>
13694
13695 * cp-name-parser.y (main): Remove unused 'len' variable.
13696
13697 2019-03-12 Tom Tromey <tromey@adacore.com>
13698
13699 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13700 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13701
13702 2019-03-12 Tom Tromey <tromey@adacore.com>
13703
13704 * linux-nat.c (iterate_over_lwps): Update.
13705 (stop_callback): Remove parameter.
13706 (stop_wait_callback, detach_callback, resume_set_callback)
13707 (select_singlestep_lwp_callback, set_ignore_sigint)
13708 (status_callback, resumed_callback, resume_clear_callback)
13709 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13710 data parameter.
13711 (linux_nat_target::detach, linux_nat_target::resume)
13712 (linux_stop_and_wait_all_lwps, select_event_lwp)
13713 (linux_nat_filter_event, linux_nat_wait_1)
13714 (linux_nat_target::kill, linux_nat_target::stop)
13715 (linux_nat_target::stop): Update.
13716 (linux_nat_resume_callback): Change type.
13717 (resume_stopped_resumed_lwps, count_events_callback)
13718 (select_event_lwp_callback): Likewise.
13719 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13720 * arm-linux-nat.c (struct update_registers_data): Remove.
13721 (update_registers_callback): Change type.
13722 (arm_linux_insert_hw_breakpoint1): Update.
13723 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13724 parameter.
13725 (x86_linux_dr_set_addr): Update.
13726 (x86_linux_dr_set_control): Update.
13727 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13728 (iterate_over_lwps): Use gdb::function_view.
13729 * nat/aarch64-linux-hw-point.c (struct
13730 aarch64_dr_update_callback_param): Remove.
13731 (debug_reg_change_callback): Change type.
13732 (aarch64_notify_debug_reg_change): Update.
13733 * s390-linux-nat.c (s390_refresh_per_info): Update.
13734
13735 2019-03-11 Tom Tromey <tromey@adacore.com>
13736
13737 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13738 redundant assignment to "this_cu".
13739
13740 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13741
13742 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13743
13744 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13745
13746 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13747 from...
13748 (rank_one_type): ... this.
13749
13750 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13751
13752 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13753 from...
13754 (rank_one_type): ... this.
13755
13756 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13757
13758 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13759 from...
13760 (rank_one_type): ... this.
13761
13762 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13763
13764 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13765 from...
13766 (rank_one_type): ... this.
13767
13768 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13769
13770 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13771 from...
13772 (rank_one_type): ... this.
13773
13774 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13775
13776 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13777 from...
13778 (rank_one_type): ... this.
13779
13780 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13781
13782 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13783 from...
13784 (rank_one_type): ... this.
13785
13786 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13787
13788 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13789 from...
13790 (rank_one_type): ... this.
13791
13792 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13793
13794 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13795 from...
13796 (rank_one_type): ... this.
13797
13798 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13799
13800 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13801 from...
13802 (rank_one_type): ... this.
13803
13804 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13805
13806 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13807 from...
13808 (rank_one_type): ... this.
13809
13810 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13811
13812 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13813 from...
13814 (rank_one_type): ... this.
13815
13816 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13817
13818 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13819 inferior-events' shows the example events.
13820
13821 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13822
13823 Support styling on native MS-Windows console
13824
13825 PR/24315
13826 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13827 on MS-Windows if $TERM is not defined.
13828
13829 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13830
13831 * posix-hdep.c (gdb_console_fputs):
13832 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13833 functions.
13834 * ui-file.h (gdb_console_fputs): Add prototype.
13835
13836 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13837 back to fputs only if the former returns zero.
13838
13839 2019-03-07 Tom Tromey <tom@tromey.com>
13840
13841 * symmisc.c (print_symbol_bcache_statistics): Update.
13842 (print_objfile_statistics): Update.
13843 * symfile.c (allocate_symtab): Update.
13844 * stabsread.c: Don't include bcache.h.
13845 * psymtab.h (struct psymbol_bcache): Don't declare.
13846 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13847 (psymbol_bcache_init, psymbol_bcache_free)
13848 (psymbol_bcache_get_bcache): Don't declare.
13849 * psymtab.c (struct psymbol_bcache): Remove.
13850 (psymtab_storage::psymtab_storage): Update.
13851 (psymtab_storage::~psymtab_storage): Update.
13852 (psymbol_bcache_init, psymbol_bcache_free)
13853 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13854 (add_psymbol_to_bcache): Update.
13855 (allocate_psymtab): Update.
13856 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13857 macro_cache>: No longer pointers.
13858 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13859 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13860 * macrotab.c (macro_bcache): Update.
13861 * macroexp.c: Don't include bcache.h.
13862 * gdbtypes.c (check_types_worklist): Update.
13863 (types_deeply_equal): Remove TRY/CATCH. Update.
13864 * elfread.c (elf_symtab_read): Update.
13865 * dwarf2read.c: Don't include bcache.h.
13866 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13867 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13868 (print_bcache_statistics, bcache_memory_used): Don't declare.
13869 (struct bcache): Move from bcache.c. Add constructor, destructor,
13870 methods. Rename all data members.
13871 * bcache.c (struct bcache): Move to bcache.h.
13872 (bcache::expand_hash_table): Rename from expand_hash_table.
13873 (bcache): Remove.
13874 (bcache::insert): Rename from bcache_full.
13875 (bcache::compare): Rename from bcache_compare.
13876 (bcache_xmalloc): Remove.
13877 (bcache::~bcache): Rename from bcache_xfree.
13878 (bcache::print_statistics): Rename from print_bcache_statistics.
13879 (bcache::memory_used): Rename from bcache_memory_used.
13880
13881 2019-03-07 Pedro Alves <palves@redhat.com>
13882
13883 * infrun.c (normal_stop): Also check for
13884 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13885
13886 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13887
13888 * f-lang.c (value_from_host_double): Moved to...
13889 * value.c (value_from_host_double): ...here.
13890 * value.h (value_from_host_double): Declare.
13891 * guile/scm-math.c (vlscm_convert_typed_number): Use
13892 value_from_host_double.
13893 (vlscm_convert_number): Likewise.
13894 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13895 * python/py-value.c (convert_value_from_python): Likewise.
13896
13897 2019-03-06 Tom Tromey <tom@tromey.com>
13898
13899 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13900
13901 2019-03-06 Tom Tromey <tom@tromey.com>
13902
13903 * utils.h (free_current_contents): Don't declare.
13904 * utils.c (free_current_contents): Remove.
13905
13906 2019-03-06 Tom Tromey <tom@tromey.com>
13907
13908 * top.c (quit_force): Update.
13909 * main.c (captured_command_loop): Update.
13910 * common/new-op.c (operator new): Update.
13911 * common/common-exceptions.c (struct catcher)
13912 <save_cleanup_chain>: Remove member.
13913 (exceptions_state_mc_init): Update.
13914 (exception_try_scope_entry): Return nullptr.
13915 (exception_try_scope_exit, exception_rethrow)
13916 (throw_exception_sjlj, throw_exception_cxx): Update.
13917 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13918 (all_cleanups, do_cleanups, discard_cleanups)
13919 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13920 (restore_cleanups, restore_final_cleanups): Don't declare.
13921 (do_final_cleanups): Remove parameter.
13922 * common/cleanups.c (cleanup_chain, make_cleanup)
13923 (make_cleanup_dtor, all_cleanups, do_cleanups)
13924 (discard_my_cleanups, discard_cleanups)
13925 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13926 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13927 (null_cleanup): Remove.
13928 (do_final_cleanups): Remove parameter.
13929
13930 2019-03-06 Tom Tromey <tom@tromey.com>
13931
13932 * remote.c (remote_target::remote_parse_stop_reply): Use
13933 unique_xmalloc_ptr.
13934
13935 2019-03-06 Tom Tromey <tom@tromey.com>
13936
13937 * stabsread.c (struct stabs_field_info): Rename from field_info.
13938 <list, fnlist>: Add initializers.
13939 <obstack>: New member.
13940 (read_member_functions, read_struct_fields, read_baseclasses):
13941 Allocate on obstack. Don't use cleanups.
13942 (read_one_struct_field, read_member_functions, read_struct_fields)
13943 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13944 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13945 (read_struct_type): Update.
13946
13947 2019-03-06 Tom Tromey <tom@tromey.com>
13948
13949 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13950 * common/filestuff.h (make_cleanup_close): Don't declare.
13951 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13952 Remove.
13953
13954 2019-03-06 Tom Tromey <tom@tromey.com>
13955
13956 * solib-aix.c: Use make_scope_exit.
13957
13958 2019-03-06 Tom Tromey <tom@tromey.com>
13959
13960 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13961 Use make_scope_exit.
13962
13963 2019-03-06 Tom Tromey <tom@tromey.com>
13964
13965 * solib-svr4.c (disable_probes_interface): Remove parameter.
13966 (svr4_handle_solib_event): Use make_scope_exit.
13967
13968 2019-03-06 Tom Tromey <tom@tromey.com>
13969
13970 * remote.c (struct stop_reply_deleter): Remove.
13971 (stop_reply_up): Update.
13972 (struct stop_reply): Derive from notif_event. Don't typedef.
13973 <regcache>: Now a std::vector.
13974 (stop_reply_xfree): Remove.
13975 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13976 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13977 (remote_target::discard_pending_stop_replies): Use delete.
13978 (remote_target::remote_parse_stop_reply): Update.
13979 (remote_target::process_stop_reply): Update.
13980 * remote-notif.h (struct notif_event): Add virtual destructor.
13981 Remove "dtr" member.
13982 (struct notif_client) <alloc_event>: Return a unique_ptr.
13983 (notif_event_xfree): Don't declare.
13984 (notif_event_up): New typedef.
13985 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13986 (notif_event_xfree, do_notif_event_xfree): Remove.
13987 (remote_notif_state_xfree): Update.
13988
13989 2019-03-06 Tom Tromey <tom@tromey.com>
13990
13991 * infrun.c (displaced_step_clear_cleanup): Now a
13992 forward_scope_exit type.
13993 (displaced_step_prepare_throw): Update.
13994 (displaced_step_fixup): Update.
13995
13996 2019-03-06 Tom Tromey <tom@tromey.com>
13997
13998 * inferior.h (class inferior): Update comment.
13999 * gdbthread.h (class thread_info): Update comment.
14000
14001 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14002 Tom Tromey <tom@tromey.com>
14003
14004 * stabsread.h (struct stab_section_list): Remove.
14005 (coffstab_build_psymtabs): Update.
14006 * dbxread.c (symbuf_sections): Now a std::vector.
14007 (sect_idx): New global.
14008 (fill_symbuf): Update.
14009 (coffstab_build_psymtabs): Change type of stabsects parameter.
14010 Update.
14011 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14012 std::vector.
14013 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14014 (coff_locate_sections): Update.
14015 (coff_symfile_read): Remove cleanups. Update.
14016 (init_stringtab): Add storage parameter.
14017 (free_stringtab, free_stringtab_cleanup): Remove.
14018 (init_lineno): Add storage parameter.
14019 (free_linetab, free_linetab_cleanup): Remove.
14020
14021 2019-03-06 Pedro Alves <palves@redhat.com>
14022
14023 * linux-fork.c (fork_info::clobber_regs): Delete.
14024 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14025 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14026 comment. Adjust.
14027 (scoped_switch_fork_info::scoped_switch_fork_info)
14028 (checkpoint_command, linux_fork_context): Adjust
14029 fork_save_infrun_state calls.
14030
14031 2019-03-06 Pedro Alves <palves@redhat.com>
14032
14033 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14034 (inf_has_multiple_threads): Return 'bool' and rewrite using
14035 inferior_info::threads().
14036
14037 2019-03-06 Pedro Alves <palves@redhat.com>
14038
14039 * linux-fork.c: Include <list>.
14040 (fork_list): Now a std::list instance.
14041 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14042 (forks_exist_p, find_last_fork): Adjust.
14043 (new_fork): Delete.
14044 (one_fork_p): New.
14045 (add_fork): Adjust.
14046 (free_fork): Delete, folded into fork_info::~fork_info().
14047 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14048 Adjust.
14049 (init_fork_list): Delete.
14050 (linux_fork_killall, linux_fork_mourn_inferior)
14051 (linux_fork_detach, info_checkpoints_command): Adjust.
14052 (_initialize_linux_fork): No longer call init_fork_list.
14053
14054 2019-03-06 Pedro Alves <palves@redhat.com>
14055
14056 * linux-fork.c (new_fork): New, split out of ...
14057 (add_fork): ... this. Return void. Move "first fork" special
14058 case from here, to ...
14059 (checkpoint_command): ... here.
14060 * linux-linux.h (add_fork): Return void.
14061
14062 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14063
14064 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14065
14066 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14067 Chris January <chris.january@arm.com>
14068 David Lecomber <david.lecomber@arm.com>
14069
14070 * f-exp.y: New token, UNOP_INTRINSIC.
14071 (exp): New pattern using UNOP_INTRINSIC token.
14072 (f77_keywords): Add 'abs' keyword.
14073 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14074 (value_from_host_double): New function.
14075 (evaluate_subexp_f): Support UNOP_ABS.
14076
14077 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14078
14079 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14080 types.
14081
14082 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14083
14084 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14085 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14086 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14087
14088 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14089
14090 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14091
14092 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14093 Chris January <chris.january@arm.com>
14094
14095 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14096 * f-exp.y: Define 'KIND' token.
14097 (exp): New pattern for KIND expressions.
14098 (ptype): Handle types with a kind extension.
14099 (direct_abs_decl): Extend to spot kind extensions.
14100 (f77_keywords): Add 'kind' to the list.
14101 (push_kind_type): New function.
14102 (convert_to_kind_type): New function.
14103 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14104 * parse.c (operator_length_standard): Likewise.
14105 * parser-defs.h (enum type_pieces): Add tp_kind.
14106 * std-operator.def: Add UNOP_KIND.
14107
14108 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14109
14110 * f-exp.y (f_parse): Set yydebug.
14111
14112 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14113
14114 * f-lang.c (evaluate_subexp_f): New function.
14115 (exp_descriptor_f): New global.
14116 (f_language_defn): Use exp_descriptor_f instead of
14117 exp_descriptor_standard.
14118
14119 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14120
14121 * f-exp.y (struct token): Add comments.
14122 (dot_ops): Remove uppercase versions and the end marker.
14123 (f77_keywords): Likewise.
14124 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14125 entries in the dot_ops array are case insensitive, and use
14126 strncasecmp to compare strings. Also some whitespace cleanup in
14127 this area. Similar for the f77_keywords array, except entries in
14128 this list might be case sensitive.
14129
14130 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14131
14132 * f-exp.y (struct f77_boolean_val): Add comments.
14133 (boolean_values): Remove uppercase versions, and end marker.
14134 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14135 and use strncasecmp to achieve case insensitivity. Additionally,
14136 perform whitespace cleanup around this code.
14137
14138 2019-03-06 Tom Tromey <tromey@adacore.com>
14139
14140 * remote-sim.c (gdbsim_target_open): Use result of
14141 gdb_argv::release.
14142
14143 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14144 Dirk Schubert <dirk.schubert@arm.com>
14145 Chris January <chris.january@arm.com>
14146
14147 * eval.c (evaluate_subexp_standard): Call Fortran argument
14148 wrapping logic.
14149 * f-lang.c (struct value): A value which can be passed into a
14150 Fortran function call.
14151 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14152 where appropriate.
14153 (struct type): Value ready for a Fortran function call.
14154 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14155 is needed.
14156 * f-lang.h (fortran_argument_convert): Declaration.
14157 (fortran_preserve_arg_pointer): Declaration.
14158 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14159
14160 2019-03-05 Tom Tromey <tromey@adacore.com>
14161
14162 * python/py-prettyprint.c (print_string_repr): Remove #if.
14163 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14164
14165 2019-03-05 Tom Tromey <tromey@adacore.com>
14166
14167 * target.c (the_dummy_target): Move later. Change type to
14168 "dummy_target".
14169 (initialize_targets): Don't initialize the_dummy_target.
14170
14171 2019-03-05 Tom Tromey <tromey@adacore.com>
14172
14173 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14174 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14175
14176 2019-03-05 Tom Tromey <tromey@adacore.com>
14177
14178 * windows-nat.c (windows_nat_target::attach)
14179 (windows_nat_target::detach): Don't call gdb_flush.
14180 * valprint.c (generic_val_print, val_print, val_print_string):
14181 Don't call gdb_flush.
14182 * utils.c (defaulted_query): Don't call gdb_flush.
14183 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14184 * target.c (target_announce_detach): Don't call gdb_flush.
14185 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14186 * remote.c (extended_remote_target::attach): Don't call
14187 gdb_flush.
14188 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14189 * printcmd.c (do_examine): Don't call gdb_flush.
14190 (info_display_command): Don't call gdb_flush.
14191 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14192 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14193 * memattr.c (info_mem_command): Don't call gdb_flush.
14194 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14195 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14196 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14197 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14198 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14199 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14200 (gnu_nat_target::detach): Don't call gdb_flush.
14201 * f-valprint.c (f_val_print): Don't call gdb_flush.
14202 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14203 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14204 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14205 gdb_flush.
14206 * c-valprint.c (c_val_print): Don't call gdb_flush.
14207 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14208
14209 2019-03-05 Tom Tromey <tromey@adacore.com>
14210
14211 * varobj.c (update_dynamic_varobj_children): Update.
14212 (install_default_visualizer): Use reset, not release.
14213 * value.c (set_internalvar): Update.
14214 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14215 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14216 ATTRIBUTE_UNUSED_RESULT.
14217
14218 2019-03-05 Tom Tromey <tromey@adacore.com>
14219
14220 * remote.c (class scoped_remote_fd) <release>: Add
14221 ATTRIBUTE_UNUSED_RESULT.
14222
14223 2019-03-05 Tom Tromey <tromey@adacore.com>
14224
14225 * macroexp.c (struct macro_buffer) <release>: Add
14226 ATTRIBUTE_UNUSED_RESULT.
14227
14228 2019-03-05 Tom Tromey <tromey@adacore.com>
14229
14230 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14231 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14232 ATTRIBUTE_UNUSED_RESULT.
14233
14234 2019-03-05 Tom Tromey <tromey@adacore.com>
14235
14236 * common/scoped_fd.h (class scoped_fd) <release>: Add
14237 ATTRIBUTE_UNUSED_RESULT.
14238
14239 2019-03-05 Tom Tromey <tromey@adacore.com>
14240
14241 * parser-defs.h (struct parser_state) <release>: Add
14242 ATTRIBUTE_UNUSED_RESULT.
14243
14244 2019-03-05 Tom Tromey <tromey@adacore.com>
14245
14246 * utils.h (class gdb_argv) <release>: Add
14247 ATTRIBUTE_UNUSED_RESULT.
14248 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14249
14250 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14251
14252 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14253 for-loop range, to avoid compiler warnings.
14254
14255 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14256 avoid compiler warnings about unused variables.
14257
14258 * NEWS: Mention end of support for native debugging on MS-Windows
14259 before XP.
14260
14261 PR gdb/24292
14262 * common/netstuff.c:
14263 * gdbserver/gdbreplay.c
14264 * gdbserver/remote-utils.c:
14265 * ser-tcp.c:
14266 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14267 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14268 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14269 'getaddrinfo' and 'freeaddrinfo' were not available before
14270 Windows XP, and mingw.org's MinGW headers by default define
14271 _WIN32_WINNT to 0x500.
14272
14273 2019-03-01 Gary Benson <gbenson@redhat.com>
14274
14275 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14276
14277 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14278 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14279
14280 PR gdb/8527
14281 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14282 set_sigint_trap, clear_sigint_trap.
14283
14284 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14285
14286 * target.c (target_detach): Clear the regcache and the
14287 frame cache.
14288
14289 2019-02-27 Pedro Alves <palves@redhat.com>
14290
14291 * utils.c (set_screen_size): When we cap the height/width sizes,
14292 tweak the corresponding command variable to show "unlimited":
14293
14294 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14295 Pedro Alves <palves@redhat.com>
14296
14297 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14298 before calling rl_set_screen_size.
14299
14300 2019-02-27 Tom Tromey <tromey@adacore.com>
14301
14302 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14303 define.
14304 * python/py-value.c: Remove Python 2.4 workaround.
14305 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14306 workaround.
14307 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14308 Python 2.4 workaround.
14309 * python/python-internal.h: Remove Python 2.4 comment.
14310 (Py_ssize_t): Don't define.
14311 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14312 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14313 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14314 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14315 * python/python.c (do_start_initialization): Remove Python 2.4
14316 workaround.
14317 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14318 (print_children): Remove Python 2.4 workaround.
14319 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14320 workaround.
14321 (CHARBUFFERPROC_NAME): Remove.
14322 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14323 Python 2.4 workaround.
14324
14325 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14326
14327 * NEWS: Note minimum Python version.
14328
14329 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14330
14331 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14332 code from these functions. Remove corresponding ifdefs. Use
14333 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14334 Remove gotos and target of gotos.
14335 (infpy_search_memory): Likewise.
14336
14337 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14338
14339 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14340 (hppa_gdbarch_init): Don't register deleted functions with
14341 gdbarch.
14342
14343 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14344
14345 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14346 (h8300_unwind_sp): Delete.
14347 (h8300_dummy_id): Delete.
14348 (h8300_gdbarch_init): Don't register deleted functions with
14349 gdbarch.
14350
14351 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14352
14353 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14354 (ft32_unwind_pc): Delete.
14355 (ft32_unwind_sp): Delete.
14356 (ft32_gdbarch_init): Don't register deleted functions with
14357 gdbarch.
14358
14359 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14360
14361 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14362 (frv_unwind_pc): Delete.
14363 (frv_unwind_sp): Delete.
14364 (frv_gdbarch_init): Don't register deleted functions with
14365 gdbarch.
14366
14367 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14368
14369 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14370 (riscv_unwind_pc): Delete.
14371 (riscv_unwind_sp): Delete.
14372 (riscv_gdbarch_init): Don't register deleted functions with
14373 gdbarch.
14374
14375 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14376
14377 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14378 (csky_unwind_pc): Delete.
14379 (csky_unwind_sp): Delete.
14380 (csky_gdbarch_init): Don't register deleted functions with
14381 gdbarch.
14382
14383 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14384
14385 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14386 (cris_unwind_pc): Delete.
14387 (cris_unwind_sp): Delete.
14388 (cris_gdbarch_init): Don't register deleted functions with
14389 gdbarch.
14390
14391 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14392
14393 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14394 (bfin_unwind_pc): Delete.
14395 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14396
14397 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14398
14399 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14400 (arm_unwind_pc): Delete.
14401 (arm_unwind_sp): Delete.
14402 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14403
14404 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14405
14406 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14407 (arc_unwind_pc): Delete.
14408 (arc_unwind_sp): Delete.
14409 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14410
14411 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14412
14413 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14414 (alpha_unwind_pc): Delete.
14415 (alpha_gdbarch_init): Don't register deleted functions with
14416 gdbarch.
14417
14418 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14419
14420 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14421 (aarch64_unwind_pc): Delete.
14422 (aarch64_unwind_sp): Delete.
14423 (aarch64_gdbarch_init): Don't register deleted functions with
14424 gdbarch.
14425
14426 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14427
14428 * gdbtypes.c (type_align): Don't consider static members when
14429 computing structure alignment.
14430
14431 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14432
14433 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14434 return 0 for other types.
14435 * arch-utils.c (default_type_align): Always return 0.
14436 * gdbarch.h: Regenerate.
14437 * gdbarch.sh (type_align): Extend comment.
14438 * gdbtypes.c (type_align): Add additional comments, always call
14439 gdbarch_type_align before applying the default rules.
14440 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14441 generic code will then apply a suitable default.
14442 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14443 types, return 0 for other types.
14444
14445 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14446
14447 * NEWS: Create a new section for the next release branch.
14448 Rename the section of the current branch, now that it has
14449 been cut.
14450
14451 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14452
14453 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14454 * version.in: Bump version to 8.3.50.DATE-git.
14455
14456 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14457
14458 * aix-thread.c (ptid_cmp): Remove unused variable.
14459 (get_signaled_thread): Likewise.
14460 (store_regs_user_thread): Likewise.
14461 (store_regs_kernel_thread): Likewise.
14462 (fetch_regs_kernel_thread): Remove shadowed variable.
14463
14464 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14465
14466 * features/riscv/32bit-cpu.xml: Add register numbers.
14467 * features/riscv/32bit-fpu.c: Regenerate.
14468 * features/riscv/32bit-fpu.xml: Add register numbers.
14469 * features/riscv/64bit-cpu.xml: Add register numbers.
14470 * features/riscv/64bit-fpu.c: Regenerate.
14471 * features/riscv/64bit-fpu.xml: Add register numbers.
14472
14473 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14474
14475 * NEWS: Mention two argument form of gdb.Value constructor.
14476 * python/py-value.c (convert_buffer_and_type_to_value): New
14477 function.
14478 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14479 Add support for handling an optional second argument. Call
14480 convert_buffer_and_type_to_value as appropriate.
14481 * python/python-internal.h (Py_buffer_deleter): New struct.
14482 (Py_buffer_up): New typedef.
14483
14484 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14485
14486 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14487 instead of releasing ownership.
14488
14489 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14490
14491 * dwarf2read.c (open_and_init_dwp_file): Call
14492 elf_numsections instead of bfd_count_sections to initialize
14493 dwp_file->num_sections.
14494
14495 2019-02-25 Tom Tromey <tromey@adacore.com>
14496
14497 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14498
14499 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14500
14501 * gcore.in: Add '--readnever' option when invoking GDB.
14502
14503 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14504
14505 * MAINTAINERS: Update my email address.
14506
14507 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14508
14509 * build-id.c (build_id_to_debug_bfd_1): New function.
14510 (build_id_to_debug_bfd): Look for separate debug file in
14511 sysroot.
14512
14513 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14514
14515 * gdbarch.sh: Update the copyright year range that is placed into
14516 generated files.
14517
14518 2019-02-22 Keith Seitz <keiths@redhat.com>
14519
14520 PR symtab/23853
14521 * linespec.c (create_sals_line_offset): Search for the default
14522 symtab's filename instead of its fullname.
14523
14524 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14525
14526 * NEWS: Update style defaults.
14527
14528 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14529
14530 * main.c (captured_main_1): Disable styling in batch mode.
14531
14532 2019-02-20 Tom Tromey <tom@tromey.com>
14533
14534 * symtab.c (symtab_symbol_info): Fix typos.
14535
14536 2019-02-20 Tom Tromey <tromey@adacore.com>
14537
14538 * findcmd.c (_initialize_mem_search): Use upper case for
14539 metasyntactic variables.
14540
14541 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14542
14543 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14544 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14545
14546 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14547
14548 * top.h (source_file_name): Change to std::string.
14549 * top.c (source_file_name): Likewise.
14550 (command_line_input): Adjust.
14551 * cli/cli-script.c (script_from_file): Adjust.
14552
14553 2019-02-19 Tom Tromey <tromey@adacore.com>
14554
14555 * ravenscar-thread.c
14556 (ravenscar_thread_target::update_thread_list): Don't call
14557 ada_build_task_list.
14558 * ada-lang.h (ada_build_task_list): Don't declare.
14559 * ada-tasks.c (struct ada_tasks_inferior_data)
14560 <task_list_valid_p>: Now bool.
14561 (read_known_tasks, ada_task_list_changed)
14562 (ada_tasks_invalidate_inferior_data): Update.
14563 (read_known_tasks_array): Return bool.
14564 (read_known_tasks_list): Likewise.
14565 (read_known_tasks): Return void.
14566 (ada_build_task_list): Now static.
14567
14568 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14569
14570 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14571 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14572
14573 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14574
14575 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14576 variant for ada_tasks_pspace_data_handle and
14577 ada_tasks_inferior_data_handle.
14578 (ada_tasks_pspace_data_cleanup): New function.
14579 (ada_tasks_inferior_data_cleanup): New function.
14580
14581 2019-02-17 Tom Tromey <tom@tromey.com>
14582
14583 * macrotab.h (macro_source_fullname): Return a std::string.
14584 * macrotab.c (macro_include, check_for_redefinition)
14585 (macro_undef, macro_lookup_definition, foreach_macro)
14586 (foreach_macro_in_scope): Update.
14587 (macro_source_fullname): Return a std::string.
14588 * macrocmd.c (show_pp_source_pos): Update.
14589
14590 2019-02-17 Tom Tromey <tom@tromey.com>
14591
14592 * macrocmd.c (show_pp_source_pos): Style the file names.
14593
14594 2019-02-17 Tom Tromey <tom@tromey.com>
14595
14596 PR tui/24197:
14597 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14598
14599 2019-02-17 Tom Tromey <tom@tromey.com>
14600
14601 * ada-lang.c (user_select_syms): Use filtered printing.
14602 * utils.c (wrap_style): New global.
14603 (desired_style): Remove.
14604 (emit_style_escape): Add stream parameter.
14605 (set_output_style, reset_terminal_style, prompt_for_continue):
14606 Update.
14607 (flush_wrap_buffer): Only flush gdb_stdout.
14608 (wrap_here): Set wrap_style.
14609 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14610 treat escape sequences as a character. Change when wrap buffer is
14611 flushed.
14612 (fputs_styled): Do not set the output style when the default is
14613 requested.
14614 * ui-style.h (struct ui_file_style) <is_default>: New method.
14615 * source.c (print_source_lines_base): Emit escape sequences in one
14616 piece.
14617
14618 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14619
14620 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14621 integers and enumeration types.
14622
14623 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14624
14625 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14626 instead of lookup_symbol_in_language
14627 (do_exact_match): New function.
14628 (ada_get_symbol_name_matcher): Return do_exact_match when
14629 doing a verbatim match.
14630
14631 2019-02-15 Tom Tromey <tromey@adacore.com>
14632
14633 * ravenscar-thread.c (ravenscar_thread_target::resume)
14634 (ravenscar_thread_target::wait): Special case wildcard requests.
14635
14636 2019-02-15 Tom Tromey <tromey@adacore.com>
14637
14638 * ravenscar-thread.c (base_ptid): Remove.
14639 (struct ravenscar_thread_target) <close>: New method.
14640 <m_base_ptid>: New member.
14641 <update_inferior_ptid, active_task, task_is_currently_active,
14642 runtime_initialized>: Declare methods.
14643 <ravenscar_thread_target>: Add constructor.
14644 (ravenscar_thread_target::task_is_currently_active)
14645 (ravenscar_thread_target::update_inferior_ptid)
14646 (ravenscar_runtime_initialized): Rename. Now methods.
14647 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14648 (ravenscar_thread_target::update_thread_list): Update.
14649 (ravenscar_thread_target::active_task): Now method.
14650 (ravenscar_thread_target::store_registers)
14651 (ravenscar_thread_target::prepare_to_store)
14652 (ravenscar_thread_target::prepare_to_store)
14653 (ravenscar_thread_target::mourn_inferior): Update.
14654 (ravenscar_inferior_created): Use "new" to create target.
14655 (ravenscar_thread_target::get_ada_task_ptid): Update.
14656 (_initialize_ravenscar): Don't initialize base_ptid.
14657 (ravenscar_ops): Remove global.
14658
14659 2019-02-15 Tom Tromey <tromey@adacore.com>
14660
14661 * target.h (push_target): Declare new overload.
14662 * target.c (push_target): New overload, taking an rvalue reference.
14663 * remote.c (remote_target::open_1): Use push_target overload.
14664 * corelow.c (core_target_open): Use push_target overload.
14665
14666 2019-02-15 Tom Tromey <tromey@adacore.com>
14667
14668 * ravenscar-thread.c (is_ravenscar_task)
14669 (ravenscar_task_is_currently_active): Return bool.
14670 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14671 (_initialize_ravenscar): Remove "(void)".
14672 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14673 Return bool.
14674
14675 2019-02-15 Tom Tromey <tromey@adacore.com>
14676
14677 * ravenscar-thread.c (ravenscar_runtime_initializer)
14678 (has_ravenscar_runtime, get_running_thread_id)
14679 (ravenscar_thread_target::resume): Fix indentation.
14680
14681 2019-02-15 Tom Tromey <tromey@adacore.com>
14682
14683 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14684 from ravenscar_arch_ops.
14685 (sparc_ravenscar_ops::fetch_registers)
14686 (sparc_ravenscar_ops::store_registers): Now methods.
14687 (sparc_ravenscar_prepare_to_store): Remove.
14688 (sparc_ravenscar_ops): Redefine.
14689 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14690 methods and destructor. Remove members.
14691 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14692 (ravenscar_thread_target::store_registers)
14693 (ravenscar_thread_target::prepare_to_store): Update.
14694 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14695 Remove.
14696 (struct ppc_ravenscar_powerpc_ops): Derive from
14697 ravenscar_arch_ops.
14698 (ppc_ravenscar_powerpc_ops::fetch_registers)
14699 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14700 (ppc_ravenscar_powerpc_ops): Redefine.
14701 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14702 (ppc_ravenscar_e500_ops::fetch_registers)
14703 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14704 (ppc_ravenscar_e500_ops): Redefine.
14705 * aarch64-ravenscar-thread.c
14706 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14707 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14708 (aarch64_ravenscar_fetch_registers)
14709 (aarch64_ravenscar_store_registers): Now methods.
14710 (aarch64_ravenscar_ops): Redefine.
14711
14712 2019-02-15 Tom Tromey <tromey@adacore.com>
14713
14714 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14715 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14716 (ravenscar_thread_target::stopped_by_watchpoint)
14717 (ravenscar_thread_target::stopped_data_address)
14718 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14719
14720 2019-02-15 Tom Tromey <tromey@adacore.com>
14721
14722 * ravenscar-thread.c: Fix some typos.
14723
14724 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14725 Tom Tromey <tromey@adacore.com>
14726
14727 * ada-lang.c (ada_exception_sal): Change addr_string to a
14728 std::string.
14729 (create_ada_exception_catchpoint): Update.
14730
14731 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14732 Tom Tromey <tromey@adacore.com>
14733
14734 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14735 (bp_location_ops): Remove.
14736 (base_breakpoint_allocate_location): Update.
14737 (free_bp_location): Update.
14738 * ada-lang.c (class ada_catchpoint_location)
14739 <ada_catchpoint_location>: Remove ops parameter.
14740 (ada_catchpoint_location_dtor): Remove.
14741 (ada_catchpoint_location_ops): Remove.
14742 (allocate_location_exception): Update.
14743 * breakpoint.h (struct bp_location_ops): Remove.
14744 (class bp_location) <bp_location>: Remove bp_location_ops
14745 parameter.
14746 <~bp_location>: Add destructor.
14747 <ops>: Remove.
14748
14749 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14750 Pedro Alves <palves@redhat.com>
14751
14752 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14753 'PATH_MAX'.
14754
14755 2019-02-14 David Michael <fedora.dm0@gmail.com>
14756 Samuel Thibault <samuel.thibault@gnu.org>
14757 Thomas Schwinge <thomas@codesourcery.com>
14758
14759 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14760 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14761
14762 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14763
14764 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14765 (check_empty): Use "const char *".
14766
14767 * gnu-nat.c (gnu_nat_target::detach): Instead of
14768 'detach_inferior (pid)' call
14769 'detach_inferior (find_inferior_pid (pid))'.
14770
14771 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14772 'nat/fork-inferior.o'.
14773 * gnu-nat.c: #include "nat/fork-inferior.h".
14774
14775 * gnu-nat.c (gnu_nat_target::detach): Instead of
14776 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14777 * gnu-nat.h: #include "inf-child.h".
14778 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14779 'i386_gnu_nat_target::fetch_registers'.
14780 (gnu_store_registers): Rename/move to
14781 'i386_gnu_nat_target::store_registers'.
14782
14783 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14784 * gnu-nat.h (mach_thread_info): New function.
14785 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14786
14787 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14788
14789 2019-02-14 Frederic Konrad <konrad@adacore.com>
14790
14791 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14792
14793 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14794
14795 * windows-nat.c (windows_add_thread): Add new parameter
14796 "main_thread_p" with default value set to false. Update
14797 function documentation as well as all callers.
14798 (windows_delete_thread): Likewise.
14799 (fake_create_process): Update call to windows_add_thread.
14800 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14801 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14802 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14803 call to windows_delete_thread.
14804
14805 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14806
14807 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14808
14809 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14810
14811 * symfile.c (find_separate_debug_file): Use canonical path of
14812 sysroot with child_path instead of gdb_sysroot if it is valid.
14813
14814 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14815
14816 * symfile.c (find_separate_debug_file): Use child_path to
14817 determine if an object file is under a sysroot.
14818
14819 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14820
14821 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14822 unittests/child-path-selftests.c.
14823 * common/pathstuff.c (child_path): New function.
14824 * common/pathstuff.h (child_path): New prototype.
14825 * unittests/child-path-selftests.c: New file.
14826
14827 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14828
14829 * symfile.c (find_separate_debug_file): Look for separate debug
14830 files in debug directories under the sysroot.
14831
14832 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14833
14834 * symtab.h (struct minimal_symbol data_p): New const method.
14835 (struct minimal_symbol text_p): Likewise.
14836 * symtab.c (output_source_filename): Use file name style
14837 to print file name.
14838 (print_symbol_info): Likewise.
14839 (print_msymbol_info): Use address style to print addresses.
14840 Use function name style to print executable text symbols.
14841 (expand_symtab_containing_pc): Use data_p.
14842 (find_pc_sect_compunit_symtab): Likewise.
14843
14844 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14845
14846 * breakpoint.c (describe_other_breakpoints): Use address style
14847 to print addresses.
14848 (say_where): Likewise.
14849
14850 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14851
14852 * ada-typeprint.c (print_func_type): Print function name
14853 style to print function name.
14854 * c-typeprint.c (c_print_type_1): Likewise.
14855
14856 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14857
14858 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14859 for execve.
14860
14861 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14862
14863 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14864 type_stack.
14865
14866 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14867
14868 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14869 TYPE_CODE_REF types.
14870
14871 2019-02-08 Jim Wilson <jimw@sifive.com>
14872
14873 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14874 (riscv_linux_fregset): New.
14875 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14876
14877 2019-02-07 Tom Tromey <tom@tromey.com>
14878
14879 * thread.c (thread_cancel_execution_command): Update.
14880 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14881 methods.
14882 (struct thread_fsm_ops): Remove.
14883 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14884 (thread_fsm_should_stop, thread_fsm_return_value)
14885 (thread_fsm_set_finished, thread_fsm_finished_p)
14886 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14887 Don't declare.
14888 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14889 * infrun.c (clear_proceed_status_thread)
14890 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14891 (print_stop_event): Update.
14892 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14893 Add constructor.
14894 (step_command_fsm_ops): Remove.
14895 (new_step_command_fsm): Remove.
14896 (step_1): Update.
14897 (step_command_fsm::should_stop): Rename from
14898 step_command_fsm_should_stop.
14899 (step_command_fsm::clean_up): Rename from
14900 step_command_fsm_clean_up.
14901 (step_command_fsm::do_async_reply_reason): Rename from
14902 step_command_fsm_async_reply_reason.
14903 (struct until_next_fsm): Inherit from thread_fsm. Add
14904 constructor.
14905 (until_next_fsm_ops): Remove.
14906 (new_until_next_fsm): Remove.
14907 (until_next_fsm::should_stop): Rename from
14908 until_next_fsm_should_stop.
14909 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14910 (until_next_fsm::do_async_reply_reason): Rename from
14911 until_next_fsm_async_reply_reason.
14912 (struct finish_command_fsm): Inherit from thread_fsm. Add
14913 constructor. Change type of breakpoint.
14914 (finish_command_fsm_ops): Remove.
14915 (new_finish_command_fsm): Remove.
14916 (finish_command_fsm::should_stop): Rename from
14917 finish_command_fsm_should_stop.
14918 (finish_command_fsm::clean_up): Rename from
14919 finish_command_fsm_clean_up.
14920 (finish_command_fsm::return_value): Rename from
14921 finish_command_fsm_return_value.
14922 (finish_command_fsm::do_async_reply_reason): Rename from
14923 finish_command_fsm_async_reply_reason.
14924 (finish_command): Update.
14925 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14926 Add constructor.
14927 (call_thread_fsm_ops): Remove.
14928 (call_thread_fsm::call_thread_fsm): Rename from
14929 new_call_thread_fsm.
14930 (call_thread_fsm::should_stop): Rename from
14931 call_thread_fsm_should_stop.
14932 (call_thread_fsm::should_notify_stop): Rename from
14933 call_thread_fsm_should_notify_stop.
14934 (run_inferior_call, call_function_by_hand_dummy): Update.
14935 * cli/cli-interp.c (should_print_stop_to_console): Update.
14936 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14937 Add constructor. Change type of location_breakpoint,
14938 caller_breakpoint.
14939 (until_break_fsm_ops): Remove.
14940 (new_until_break_fsm): Remove.
14941 (until_break_fsm::should_stop): Rename from
14942 until_break_fsm_should_stop.
14943 (until_break_fsm::clean_up): Rename from
14944 until_break_fsm_clean_up.
14945 (until_break_fsm::do_async_reply_reason): Rename from
14946 until_break_fsm_async_reply_reason.
14947 (until_break_command): Update.
14948 * thread-fsm.c: Remove.
14949 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14950
14951 2019-02-07 Tom Tromey <tom@tromey.com>
14952
14953 * yy-remap.h: Add include guard.
14954 * xtensa-tdep.h: Add include guard.
14955 * xcoffread.h: Rename include guard.
14956 * varobj-iter.h: Add include guard.
14957 * tui/tui.h: Rename include guard.
14958 * tui/tui-winsource.h: Rename include guard.
14959 * tui/tui-wingeneral.h: Rename include guard.
14960 * tui/tui-windata.h: Rename include guard.
14961 * tui/tui-win.h: Rename include guard.
14962 * tui/tui-stack.h: Rename include guard.
14963 * tui/tui-source.h: Rename include guard.
14964 * tui/tui-regs.h: Rename include guard.
14965 * tui/tui-out.h: Rename include guard.
14966 * tui/tui-layout.h: Rename include guard.
14967 * tui/tui-io.h: Rename include guard.
14968 * tui/tui-hooks.h: Rename include guard.
14969 * tui/tui-file.h: Rename include guard.
14970 * tui/tui-disasm.h: Rename include guard.
14971 * tui/tui-data.h: Rename include guard.
14972 * tui/tui-command.h: Rename include guard.
14973 * tic6x-tdep.h: Add include guard.
14974 * target/waitstatus.h: Rename include guard.
14975 * target/wait.h: Rename include guard.
14976 * target/target.h: Rename include guard.
14977 * target/resume.h: Rename include guard.
14978 * target-float.h: Rename include guard.
14979 * stabsread.h: Add include guard.
14980 * rs6000-tdep.h: Add include guard.
14981 * riscv-fbsd-tdep.h: Add include guard.
14982 * regformats/regdef.h: Rename include guard.
14983 * record.h: Rename include guard.
14984 * python/python.h: Rename include guard.
14985 * python/python-internal.h: Rename include guard.
14986 * python/py-stopevent.h: Rename include guard.
14987 * python/py-ref.h: Rename include guard.
14988 * python/py-record.h: Rename include guard.
14989 * python/py-record-full.h: Rename include guard.
14990 * python/py-record-btrace.h: Rename include guard.
14991 * python/py-instruction.h: Rename include guard.
14992 * python/py-events.h: Rename include guard.
14993 * python/py-event.h: Rename include guard.
14994 * procfs.h: Add include guard.
14995 * proc-utils.h: Add include guard.
14996 * p-lang.h: Add include guard.
14997 * or1k-tdep.h: Rename include guard.
14998 * observable.h: Rename include guard.
14999 * nto-tdep.h: Rename include guard.
15000 * nat/x86-linux.h: Rename include guard.
15001 * nat/x86-linux-dregs.h: Rename include guard.
15002 * nat/x86-gcc-cpuid.h: Add include guard.
15003 * nat/x86-dregs.h: Rename include guard.
15004 * nat/x86-cpuid.h: Rename include guard.
15005 * nat/ppc-linux.h: Rename include guard.
15006 * nat/mips-linux-watch.h: Rename include guard.
15007 * nat/linux-waitpid.h: Rename include guard.
15008 * nat/linux-ptrace.h: Rename include guard.
15009 * nat/linux-procfs.h: Rename include guard.
15010 * nat/linux-osdata.h: Rename include guard.
15011 * nat/linux-nat.h: Rename include guard.
15012 * nat/linux-namespaces.h: Rename include guard.
15013 * nat/linux-btrace.h: Rename include guard.
15014 * nat/glibc_thread_db.h: Rename include guard.
15015 * nat/gdb_thread_db.h: Rename include guard.
15016 * nat/gdb_ptrace.h: Rename include guard.
15017 * nat/fork-inferior.h: Rename include guard.
15018 * nat/amd64-linux-siginfo.h: Rename include guard.
15019 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15020 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15021 * nat/aarch64-linux.h: Rename include guard.
15022 * nat/aarch64-linux-hw-point.h: Rename include guard.
15023 * mn10300-tdep.h: Add include guard.
15024 * mips-linux-tdep.h: Add include guard.
15025 * mi/mi-parse.h: Rename include guard.
15026 * mi/mi-out.h: Rename include guard.
15027 * mi/mi-main.h: Rename include guard.
15028 * mi/mi-interp.h: Rename include guard.
15029 * mi/mi-getopt.h: Rename include guard.
15030 * mi/mi-console.h: Rename include guard.
15031 * mi/mi-common.h: Rename include guard.
15032 * mi/mi-cmds.h: Rename include guard.
15033 * mi/mi-cmd-break.h: Rename include guard.
15034 * m2-lang.h: Add include guard.
15035 * location.h: Rename include guard.
15036 * linux-record.h: Rename include guard.
15037 * linux-nat.h: Add include guard.
15038 * linux-fork.h: Add include guard.
15039 * i386-darwin-tdep.h: Rename include guard.
15040 * hppa-linux-offsets.h: Add include guard.
15041 * guile/guile.h: Rename include guard.
15042 * guile/guile-internal.h: Rename include guard.
15043 * gnu-nat.h: Rename include guard.
15044 * gdb-stabs.h: Rename include guard.
15045 * frv-tdep.h: Add include guard.
15046 * f-lang.h: Add include guard.
15047 * event-loop.h: Add include guard.
15048 * darwin-nat.h: Rename include guard.
15049 * cp-abi.h: Rename include guard.
15050 * config/sparc/nm-sol2.h: Rename include guard.
15051 * config/nm-nto.h: Rename include guard.
15052 * config/nm-linux.h: Add include guard.
15053 * config/i386/nm-i386gnu.h: Rename include guard.
15054 * config/djgpp/nl_types.h: Rename include guard.
15055 * config/djgpp/langinfo.h: Rename include guard.
15056 * compile/gcc-cp-plugin.h: Add include guard.
15057 * compile/gcc-c-plugin.h: Add include guard.
15058 * compile/compile.h: Rename include guard.
15059 * compile/compile-object-run.h: Rename include guard.
15060 * compile/compile-object-load.h: Rename include guard.
15061 * compile/compile-internal.h: Rename include guard.
15062 * compile/compile-cplus.h: Rename include guard.
15063 * compile/compile-c.h: Rename include guard.
15064 * common/xml-utils.h: Rename include guard.
15065 * common/x86-xstate.h: Rename include guard.
15066 * common/version.h: Rename include guard.
15067 * common/vec.h: Rename include guard.
15068 * common/tdesc.h: Rename include guard.
15069 * common/selftest.h: Rename include guard.
15070 * common/scoped_restore.h: Rename include guard.
15071 * common/scoped_mmap.h: Rename include guard.
15072 * common/scoped_fd.h: Rename include guard.
15073 * common/safe-iterator.h: Rename include guard.
15074 * common/run-time-clock.h: Rename include guard.
15075 * common/refcounted-object.h: Rename include guard.
15076 * common/queue.h: Rename include guard.
15077 * common/ptid.h: Rename include guard.
15078 * common/print-utils.h: Rename include guard.
15079 * common/preprocessor.h: Rename include guard.
15080 * common/pathstuff.h: Rename include guard.
15081 * common/observable.h: Rename include guard.
15082 * common/netstuff.h: Rename include guard.
15083 * common/job-control.h: Rename include guard.
15084 * common/host-defs.h: Rename include guard.
15085 * common/gdb_wait.h: Rename include guard.
15086 * common/gdb_vecs.h: Rename include guard.
15087 * common/gdb_unlinker.h: Rename include guard.
15088 * common/gdb_unique_ptr.h: Rename include guard.
15089 * common/gdb_tilde_expand.h: Rename include guard.
15090 * common/gdb_sys_time.h: Rename include guard.
15091 * common/gdb_string_view.h: Rename include guard.
15092 * common/gdb_splay_tree.h: Rename include guard.
15093 * common/gdb_setjmp.h: Rename include guard.
15094 * common/gdb_ref_ptr.h: Rename include guard.
15095 * common/gdb_optional.h: Rename include guard.
15096 * common/gdb_locale.h: Rename include guard.
15097 * common/gdb_assert.h: Rename include guard.
15098 * common/filtered-iterator.h: Rename include guard.
15099 * common/filestuff.h: Rename include guard.
15100 * common/fileio.h: Rename include guard.
15101 * common/environ.h: Rename include guard.
15102 * common/common-utils.h: Rename include guard.
15103 * common/common-types.h: Rename include guard.
15104 * common/common-regcache.h: Rename include guard.
15105 * common/common-inferior.h: Rename include guard.
15106 * common/common-gdbthread.h: Rename include guard.
15107 * common/common-exceptions.h: Rename include guard.
15108 * common/common-defs.h: Rename include guard.
15109 * common/common-debug.h: Rename include guard.
15110 * common/cleanups.h: Rename include guard.
15111 * common/buffer.h: Rename include guard.
15112 * common/btrace-common.h: Rename include guard.
15113 * common/break-common.h: Rename include guard.
15114 * cli/cli-utils.h: Rename include guard.
15115 * cli/cli-style.h: Rename include guard.
15116 * cli/cli-setshow.h: Rename include guard.
15117 * cli/cli-script.h: Rename include guard.
15118 * cli/cli-interp.h: Rename include guard.
15119 * cli/cli-decode.h: Rename include guard.
15120 * cli/cli-cmds.h: Rename include guard.
15121 * charset-list.h: Add include guard.
15122 * buildsym-legacy.h: Rename include guard.
15123 * bfin-tdep.h: Add include guard.
15124 * ax.h: Rename include guard.
15125 * arm-linux-tdep.h: Add include guard.
15126 * arm-fbsd-tdep.h: Add include guard.
15127 * arch/xtensa.h: Rename include guard.
15128 * arch/tic6x.h: Add include guard.
15129 * arch/i386.h: Add include guard.
15130 * arch/arm.h: Rename include guard.
15131 * arch/arm-linux.h: Rename include guard.
15132 * arch/arm-get-next-pcs.h: Rename include guard.
15133 * arch/amd64.h: Add include guard.
15134 * arch/aarch64-insn.h: Rename include guard.
15135 * arch-utils.h: Rename include guard.
15136 * annotate.h: Add include guard.
15137 * amd64-darwin-tdep.h: Rename include guard.
15138 * aarch64-linux-tdep.h: Add include guard.
15139 * aarch64-fbsd-tdep.h: Add include guard.
15140 * aarch32-linux-nat.h: Add include guard.
15141
15142 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15143
15144 * macrotab.c (macro_define_internal): New function that
15145 factorizes macro_define_object_internal and macro_define_function
15146 code.
15147 (macro_define_object_internal): Use macro_define_internal.
15148 (macro_define_function): Likewise.
15149
15150 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15151
15152 * macrocmd.c (extract_identifier): Return
15153 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15154 callers.
15155
15156 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15157
15158 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15159
15160 2019-02-05 Tom Tromey <tom@tromey.com>
15161
15162 * target.c (target_stack::unpush): Move assertion earlier.
15163
15164 2019-01-30 Tom Tromey <tom@tromey.com>
15165
15166 PR python/23615:
15167 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15168 (gdbpy_parse_and_eval): Likewise.
15169 * python/python-internal.h (gdbpy_allow_threads): New class.
15170
15171 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15172
15173 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15174 (aarch64_fbsd_fpregmap): Move earlier.
15175 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15176 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15177 instead of individual calls to trad_frame_set_reg_addr.
15178 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15179 earlier.
15180 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15181 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15182 instead of individual calls to trad_frame_set_reg_addr.
15183
15184 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15185
15186 * CONTRIBUTE: Replace contribution list with wiki link.
15187
15188 2019-01-25 Tom Tromey <tom@tromey.com>
15189
15190 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15191
15192 2019-01-25 Tom Tromey <tom@tromey.com>
15193
15194 * xtensa-linux-nat.c: Fix common/ includes.
15195 * xml-support.h: Fix common/ includes.
15196 * xml-support.c: Fix common/ includes.
15197 * x86-linux-nat.c: Fix common/ includes.
15198 * windows-nat.c: Fix common/ includes.
15199 * varobj.h: Fix common/ includes.
15200 * varobj.c: Fix common/ includes.
15201 * value.c: Fix common/ includes.
15202 * valops.c: Fix common/ includes.
15203 * utils.c: Fix common/ includes.
15204 * unittests/xml-utils-selftests.c: Fix common/ includes.
15205 * unittests/utils-selftests.c: Fix common/ includes.
15206 * unittests/unpack-selftests.c: Fix common/ includes.
15207 * unittests/tracepoint-selftests.c: Fix common/ includes.
15208 * unittests/style-selftests.c: Fix common/ includes.
15209 * unittests/string_view-selftests.c: Fix common/ includes.
15210 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15211 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15212 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15213 * unittests/rsp-low-selftests.c: Fix common/ includes.
15214 * unittests/parse-connection-spec-selftests.c: Fix common/
15215 includes.
15216 * unittests/optional-selftests.c: Fix common/ includes.
15217 * unittests/offset-type-selftests.c: Fix common/ includes.
15218 * unittests/observable-selftests.c: Fix common/ includes.
15219 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15220 * unittests/memrange-selftests.c: Fix common/ includes.
15221 * unittests/memory-map-selftests.c: Fix common/ includes.
15222 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15223 * unittests/function-view-selftests.c: Fix common/ includes.
15224 * unittests/environ-selftests.c: Fix common/ includes.
15225 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15226 * unittests/common-utils-selftests.c: Fix common/ includes.
15227 * unittests/cli-utils-selftests.c: Fix common/ includes.
15228 * unittests/array-view-selftests.c: Fix common/ includes.
15229 * ui-file.c: Fix common/ includes.
15230 * tui/tui-io.c: Fix common/ includes.
15231 * tracepoint.h: Fix common/ includes.
15232 * tracepoint.c: Fix common/ includes.
15233 * tracefile-tfile.c: Fix common/ includes.
15234 * top.h: Fix common/ includes.
15235 * top.c: Fix common/ includes.
15236 * thread.c: Fix common/ includes.
15237 * target/waitstatus.h: Fix common/ includes.
15238 * target/waitstatus.c: Fix common/ includes.
15239 * target.h: Fix common/ includes.
15240 * target.c: Fix common/ includes.
15241 * target-memory.c: Fix common/ includes.
15242 * target-descriptions.c: Fix common/ includes.
15243 * symtab.h: Fix common/ includes.
15244 * symfile.c: Fix common/ includes.
15245 * stap-probe.c: Fix common/ includes.
15246 * spu-linux-nat.c: Fix common/ includes.
15247 * sparc-nat.c: Fix common/ includes.
15248 * source.c: Fix common/ includes.
15249 * solib.c: Fix common/ includes.
15250 * solib-target.c: Fix common/ includes.
15251 * ser-unix.c: Fix common/ includes.
15252 * ser-tcp.c: Fix common/ includes.
15253 * ser-pipe.c: Fix common/ includes.
15254 * ser-base.c: Fix common/ includes.
15255 * selftest-arch.c: Fix common/ includes.
15256 * s12z-tdep.c: Fix common/ includes.
15257 * rust-exp.y: Fix common/ includes.
15258 * rs6000-aix-tdep.c: Fix common/ includes.
15259 * riscv-tdep.c: Fix common/ includes.
15260 * remote.c: Fix common/ includes.
15261 * remote-notif.h: Fix common/ includes.
15262 * remote-fileio.h: Fix common/ includes.
15263 * remote-fileio.c: Fix common/ includes.
15264 * regcache.h: Fix common/ includes.
15265 * regcache.c: Fix common/ includes.
15266 * record-btrace.c: Fix common/ includes.
15267 * python/python.c: Fix common/ includes.
15268 * python/py-type.c: Fix common/ includes.
15269 * python/py-inferior.c: Fix common/ includes.
15270 * progspace.h: Fix common/ includes.
15271 * producer.c: Fix common/ includes.
15272 * procfs.c: Fix common/ includes.
15273 * proc-api.c: Fix common/ includes.
15274 * printcmd.c: Fix common/ includes.
15275 * ppc-linux-nat.c: Fix common/ includes.
15276 * parser-defs.h: Fix common/ includes.
15277 * osdata.c: Fix common/ includes.
15278 * obsd-nat.c: Fix common/ includes.
15279 * nat/x86-linux.c: Fix common/ includes.
15280 * nat/x86-linux-dregs.c: Fix common/ includes.
15281 * nat/x86-dregs.h: Fix common/ includes.
15282 * nat/x86-dregs.c: Fix common/ includes.
15283 * nat/ppc-linux.c: Fix common/ includes.
15284 * nat/mips-linux-watch.h: Fix common/ includes.
15285 * nat/mips-linux-watch.c: Fix common/ includes.
15286 * nat/linux-waitpid.c: Fix common/ includes.
15287 * nat/linux-ptrace.h: Fix common/ includes.
15288 * nat/linux-ptrace.c: Fix common/ includes.
15289 * nat/linux-procfs.c: Fix common/ includes.
15290 * nat/linux-personality.c: Fix common/ includes.
15291 * nat/linux-osdata.c: Fix common/ includes.
15292 * nat/linux-namespaces.c: Fix common/ includes.
15293 * nat/linux-btrace.h: Fix common/ includes.
15294 * nat/linux-btrace.c: Fix common/ includes.
15295 * nat/fork-inferior.c: Fix common/ includes.
15296 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15297 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15298 * nat/aarch64-linux.c: Fix common/ includes.
15299 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15300 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15301 * namespace.h: Fix common/ includes.
15302 * mips-linux-tdep.c: Fix common/ includes.
15303 * minsyms.c: Fix common/ includes.
15304 * mi/mi-parse.h: Fix common/ includes.
15305 * mi/mi-main.c: Fix common/ includes.
15306 * mi/mi-cmd-env.c: Fix common/ includes.
15307 * memrange.h: Fix common/ includes.
15308 * memattr.c: Fix common/ includes.
15309 * maint.h: Fix common/ includes.
15310 * maint.c: Fix common/ includes.
15311 * main.c: Fix common/ includes.
15312 * machoread.c: Fix common/ includes.
15313 * location.c: Fix common/ includes.
15314 * linux-thread-db.c: Fix common/ includes.
15315 * linux-nat.c: Fix common/ includes.
15316 * linux-fork.c: Fix common/ includes.
15317 * inline-frame.c: Fix common/ includes.
15318 * infrun.c: Fix common/ includes.
15319 * inflow.c: Fix common/ includes.
15320 * inferior.h: Fix common/ includes.
15321 * inferior.c: Fix common/ includes.
15322 * infcmd.c: Fix common/ includes.
15323 * inf-ptrace.c: Fix common/ includes.
15324 * inf-child.c: Fix common/ includes.
15325 * ia64-linux-nat.c: Fix common/ includes.
15326 * i387-tdep.c: Fix common/ includes.
15327 * i386-tdep.c: Fix common/ includes.
15328 * i386-linux-tdep.c: Fix common/ includes.
15329 * i386-linux-nat.c: Fix common/ includes.
15330 * i386-go32-tdep.c: Fix common/ includes.
15331 * i386-fbsd-tdep.c: Fix common/ includes.
15332 * i386-fbsd-nat.c: Fix common/ includes.
15333 * guile/scm-type.c: Fix common/ includes.
15334 * guile/guile.c: Fix common/ includes.
15335 * go32-nat.c: Fix common/ includes.
15336 * gnu-nat.c: Fix common/ includes.
15337 * gdbthread.h: Fix common/ includes.
15338 * gdbarch-selftests.c: Fix common/ includes.
15339 * gdb_usleep.c: Fix common/ includes.
15340 * gdb_select.h: Fix common/ includes.
15341 * gdb_bfd.c: Fix common/ includes.
15342 * gcore.c: Fix common/ includes.
15343 * fork-child.c: Fix common/ includes.
15344 * findvar.c: Fix common/ includes.
15345 * fbsd-nat.c: Fix common/ includes.
15346 * event-top.c: Fix common/ includes.
15347 * event-loop.c: Fix common/ includes.
15348 * dwarf2read.c: Fix common/ includes.
15349 * dwarf2loc.c: Fix common/ includes.
15350 * dwarf2-frame.c: Fix common/ includes.
15351 * dwarf-index-cache.c: Fix common/ includes.
15352 * dtrace-probe.c: Fix common/ includes.
15353 * disasm-selftests.c: Fix common/ includes.
15354 * defs.h: Fix common/ includes.
15355 * csky-tdep.c: Fix common/ includes.
15356 * cp-valprint.c: Fix common/ includes.
15357 * cp-support.h: Fix common/ includes.
15358 * cp-support.c: Fix common/ includes.
15359 * corelow.c: Fix common/ includes.
15360 * completer.h: Fix common/ includes.
15361 * completer.c: Fix common/ includes.
15362 * compile/compile.c: Fix common/ includes.
15363 * compile/compile-loc2c.c: Fix common/ includes.
15364 * compile/compile-cplus-types.c: Fix common/ includes.
15365 * compile/compile-cplus-symbols.c: Fix common/ includes.
15366 * command.h: Fix common/ includes.
15367 * cli/cli-dump.c: Fix common/ includes.
15368 * cli/cli-cmds.c: Fix common/ includes.
15369 * charset.c: Fix common/ includes.
15370 * build-id.c: Fix common/ includes.
15371 * btrace.h: Fix common/ includes.
15372 * btrace.c: Fix common/ includes.
15373 * breakpoint.h: Fix common/ includes.
15374 * breakpoint.c: Fix common/ includes.
15375 * ax.h:
15376 (enum agent_op): Fix common/ includes.
15377 * ax-general.c (struct aop_map): Fix common/ includes.
15378 * ax-gdb.c: Fix common/ includes.
15379 * auxv.c: Fix common/ includes.
15380 * auto-load.c: Fix common/ includes.
15381 * arm-tdep.c: Fix common/ includes.
15382 * arch/riscv.c: Fix common/ includes.
15383 * arch/ppc-linux-common.c: Fix common/ includes.
15384 * arch/i386.c: Fix common/ includes.
15385 * arch/arm.c: Fix common/ includes.
15386 * arch/arm-linux.c: Fix common/ includes.
15387 * arch/arm-get-next-pcs.c: Fix common/ includes.
15388 * arch/amd64.c: Fix common/ includes.
15389 * arch/aarch64.c: Fix common/ includes.
15390 * arch/aarch64-insn.c: Fix common/ includes.
15391 * arch-utils.c: Fix common/ includes.
15392 * amd64-windows-tdep.c: Fix common/ includes.
15393 * amd64-tdep.c: Fix common/ includes.
15394 * amd64-sol2-tdep.c: Fix common/ includes.
15395 * amd64-obsd-tdep.c: Fix common/ includes.
15396 * amd64-nbsd-tdep.c: Fix common/ includes.
15397 * amd64-linux-tdep.c: Fix common/ includes.
15398 * amd64-linux-nat.c: Fix common/ includes.
15399 * amd64-fbsd-tdep.c: Fix common/ includes.
15400 * amd64-fbsd-nat.c: Fix common/ includes.
15401 * amd64-dicos-tdep.c: Fix common/ includes.
15402 * amd64-darwin-tdep.c: Fix common/ includes.
15403 * agent.c: Fix common/ includes.
15404 * ada-lang.h: Fix common/ includes.
15405 * ada-lang.c: Fix common/ includes.
15406 * aarch64-tdep.c: Fix common/ includes.
15407
15408 2019-01-25 Tom Tromey <tom@tromey.com>
15409
15410 * common/create-version.sh: Use common/version.h.
15411
15412 2019-01-24 Pedro Alves <palves@redhat.com>
15413
15414 * infrun.c (signal_stop, signal_print, signal_program)
15415 (signal_catch, signal_pass): Now arrays instead of pointers.
15416 (update_signals_program_target, do_target_resume)
15417 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15418 * linux-nat.c (linux_nat_target::pass_signals)
15419 (linux_nat_target::create_inferior, linux_nat_target::attach):
15420 Adjust.
15421 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15422 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15423 * procfs.c (procfs_target::pass_signals): Adjust.
15424 * record-full.c (record_full_target::resume): Adjust.
15425 * remote.c (remote_target::pass_signals)
15426 (remote_target::program_signals): Adjust.
15427 * target-debug.h (target_debug_print_signals): Now takes a
15428 gdb::array_view as parameter. Adjust.
15429 * target.h (target_ops) <pass_signals, program_signals>: Replace
15430 pointer and length parameters with gdb::array_view.
15431 (target_pass_signals, target_program_signals): Likewise.
15432 * target-delegates.c: Regenerate.
15433
15434 2019-01-24 Pedro Alves <palves@redhat.com>
15435
15436 * common/forward-scope-exit.h
15437 (forward_scope_exit::forward_scope_exit): Pass arguments to
15438 m_bind_function directly, instead of creating a std::bind and
15439 copying that.
15440
15441 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15442
15443 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15444 for static members.
15445 (pass_in_v_vfp_candidate): Likewise.
15446
15447 2019-01-23 Tom Tromey <tom@tromey.com>
15448 Pedro Alves <palves@redhat.com>
15449
15450 * regcache.c (class regcache_invalidator): Remove.
15451 (regcache::raw_write): Use make_scope_exit.
15452
15453 2019-01-23 Tom Tromey <tom@tromey.com>
15454
15455 * ui-out.h (class ui_out_emit_type): Update comment.
15456
15457 2019-01-23 Tom Tromey <tom@tromey.com>
15458
15459 * infrun.c (fetch_inferior_event): Update comment.
15460
15461 2019-01-23 Tom Tromey <tom@tromey.com>
15462 Pedro Alves <palves@redhat.com>
15463
15464 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15465 parameter.
15466 (fetch_inferior_event): Use SCOPE_EXIT.
15467
15468
15469 2019-01-23 Tom Tromey <tom@tromey.com>
15470 Pedro Alves <palves@redhat.com>
15471
15472 * infrun.c (disable_thread_events): Delete.
15473 (stop_all_threads): Use SCOPE_EXIT.
15474
15475 2019-01-23 Tom Tromey <tom@tromey.com>
15476 Pedro Alves <palves@redhat.com>
15477
15478 * symfile.c: Include forward-scope-exit.h.
15479 (clear_symtab_users_cleanup): Replace forward declaration with
15480 a FORWARD_SCOPE_EXIT.
15481 (syms_from_objfile_1): Use the forward_scope_exit and
15482 gdb::optional instead of cleanup_function.
15483 (reread_symbols): Use the forward_scope_exit instead of
15484 cleanup_function.
15485 (clear_symtab_users_cleanup): Remove function.
15486
15487 2019-01-23 Tom Tromey <tom@tromey.com>
15488 Pedro Alves <palves@redhat.com>
15489
15490 * linux-nat.c: Include scope-exit.h.
15491 (cleanup_target_stop): Remove.
15492 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15493 SCOPE_EXIT.
15494
15495 2019-01-23 Tom Tromey <tom@tromey.com>
15496 Pedro Alves <palves@redhat.com>
15497
15498 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15499 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15500
15501 2019-01-23 Tom Tromey <tom@tromey.com>
15502 Andrew Burgess <andrew.burgess@embecosm.com>
15503 Pedro Alves <palves@redhat.com>
15504
15505 * infrun.c (fetch_inferior_event): Use scope_exit.
15506 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15507 * top.c (execute_command): Use scope_exit.
15508 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15509 * utils.c (do_bpstat_clear_actions_cleanup)
15510 (make_bpstat_clear_actions_cleanup): Remove.
15511
15512 2019-01-23 Tom Tromey <tom@tromey.com>
15513 Pedro Alves <palves@redhat.com>
15514
15515 * infrun.c: Include "common/scope-exit.h"
15516 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15517 (wait_for_inferior): Use SCOPE_EXIT.
15518 (fetch_inferior_event): Use scope_exit.
15519
15520 2019-01-23 Tom Tromey <tom@tromey.com>
15521 Pedro Alves <palves@redhat.com>
15522
15523 * breakpoint.c (create_breakpoint): Remove cleanup.
15524
15525 2019-01-23 Tom Tromey <tom@tromey.com>
15526 Andrew Burgess <andrew.burgess@embecosm.com>
15527 Pedro Alves <palves@redhat.com>
15528
15529 2019-01-23 Pedro Alves <palves@redhat.com>
15530
15531 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15532
15533 2019-01-23 Pedro Alves <palves@redhat.com>
15534 Andrew Burgess <andrew.burgess@embecosm.com>
15535
15536 * gdbthread.h: Include "common/forward-scope-exit.h".
15537 (scoped_finish_thread_state): Redefine custom class in terms of
15538 forward_scope_exit.
15539
15540 2019-01-23 Pedro Alves <palves@redhat.com>
15541 Andrew Burgess <andrew.burgess@embecosm.com>
15542
15543 * common/forward-scope-exit.h: New file.
15544
15545 2019-01-23 Pedro Alves <palves@redhat.com>
15546 Andrew Burgess <andrew.burgess@embecosm.com>
15547 Tom Tromey <tom@tromey.com>
15548
15549 * common/scope-exit.h: New file.
15550
15551 2019-01-23 Pedro Alves <palves@redhat.com>
15552
15553 * common/preprocessor.h (ESC): Rename to ...
15554 (ESC_PARENS): ... this.
15555 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15556 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15557
15558 2019-01-23 Tom Tromey <tom@tromey.com>
15559
15560 * language.h (class scoped_switch_to_sym_language_if_auto):
15561 Initialize m_lang in both cases.
15562
15563 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15564
15565 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15566 with XCNEW.
15567
15568 2019-01-22 Tom Tromey <tom@tromey.com>
15569
15570 * corelow.c: Do not include sys/file.h.
15571
15572 2019-01-22 Tom Tromey <tom@tromey.com>
15573
15574 * tui/tui-wingeneral.h: Include gdb_curses.h.
15575
15576 2019-01-22 Tom Tromey <tom@tromey.com>
15577
15578 * source-cache.h (class source_cache) <get_source_lines,
15579 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15580
15581 2019-01-22 Tom Tromey <tom@tromey.com>
15582
15583 * remote-fileio.h (struct remote_target): Declare.
15584
15585 2019-01-22 Tom Tromey <tom@tromey.com>
15586
15587 * python/py-arch.c: Do not include py-ref.h.
15588 * python/py-bpevent.c: Do not include py-ref.h.
15589 * python/py-cmd.c: Do not include py-ref.h.
15590 * python/py-continueevent.c: Do not include py-ref.h.
15591 * python/py-event.h: Do not include py-ref.h.
15592 * python/py-evtregistry.c: Do not include py-ref.h.
15593 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15594 * python/py-frame.c: Do not include py-ref.h.
15595 * python/py-framefilter.c: Do not include py-ref.h.
15596 * python/py-function.c: Do not include py-ref.h.
15597 * python/py-infevents.c: Do not include py-ref.h.
15598 * python/py-linetable.c: Do not include py-ref.h.
15599 * python/py-objfile.c: Do not include py-ref.h.
15600 * python/py-param.c: Do not include py-ref.h.
15601 * python/py-prettyprint.c: Do not include py-ref.h.
15602 * python/py-progspace.c: Do not include py-ref.h.
15603 * python/py-symbol.c: Do not include py-ref.h.
15604 * python/py-symtab.c: Do not include py-ref.h.
15605 * python/py-type.c: Do not include py-ref.h.
15606 * python/py-unwind.c: Do not include py-ref.h.
15607 * python/py-utils.c: Do not include py-ref.h.
15608 * python/py-value.c: Do not include py-ref.h.
15609 * python/py-varobj.c: Do not include py-ref.h.
15610 * python/py-xmethods.c: Do not include py-ref.h.
15611 * python/python.c: Do not include py-ref.h.
15612 * varobj.c: Do not include py-ref.h.
15613
15614 2019-01-22 Tom Tromey <tom@tromey.com>
15615
15616 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15617 keyword for bcache.
15618
15619 2019-01-22 Tom Tromey <tom@tromey.com>
15620
15621 * compile/compile-cplus-types.c: Remove a comment by #include.
15622
15623 2019-01-22 Tom Tromey <tom@tromey.com>
15624
15625 * compile/gcc-c-plugin.h: Include compile-internal.h.
15626
15627 2019-01-22 Tom Tromey <tom@tromey.com>
15628
15629 * stabsread.c (EXTERN): Do not define.
15630 (symnum, next_symbol_text_func, processing_gcc_compilation)
15631 (within_function, global_sym_chain, global_stabs)
15632 (previous_stab_code, this_object_header_files)
15633 (n_this_object_header_files)
15634 (n_allocated_this_object_header_files): Define.
15635 * stabsread.h (EXTERN): Never define. Use "extern".
15636
15637 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15638
15639 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15640 history_value.
15641
15642 2019-01-21 Tom Tromey <tom@tromey.com>
15643
15644 * ui-out.c: Fix includes.
15645 * tui/tui-source.c: Fix includes.
15646 * target.c: Fix includes.
15647 * remote.c: Fix includes.
15648 * regcache.c: Fix includes.
15649 * python/py-block.c: Fix includes.
15650 * printcmd.c: Fix includes.
15651 * or1k-tdep.c: Fix includes.
15652 * mi/mi-main.c: Fix includes.
15653 * m32r-tdep.c: Fix includes.
15654 * csky-tdep.c: Fix includes.
15655 * compile/compile-cplus-types.c: Fix includes.
15656 * cli/cli-interp.c: Fix includes.
15657
15658 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15659
15660 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15661 for padding.
15662
15663 2019-01-16 Tom Tromey <tom@tromey.com>
15664
15665 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15666 earlier.
15667 (struct objfile) <msymbols_range>: Move from top level.
15668 <msymbols>: New method.
15669 (class objfile_msymbols): Remove.
15670 * symtab.c (default_collect_symbol_completion_matches_break_on):
15671 Update.
15672 * symmisc.c (dump_msymbols): Update.
15673 * stabsread.c (scan_file_globals): Update.
15674 * objc-lang.c (info_selectors_command, info_classes_command)
15675 (find_methods): Update.
15676 * minsyms.c (find_solib_trampoline_target): Update.
15677 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15678 * coffread.c (coff_symfile_read): Update.
15679 * ada-lang.c (ada_lookup_simple_minsym)
15680 (ada_collect_symbol_completion_matches): Update.
15681
15682 2019-01-16 Tom Tromey <tom@tromey.com>
15683
15684 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15685 type. Remove no-argument constructor.
15686 <iterator::operator++>: Simplify.
15687 <begin>: Update.
15688 <end>: Use minimal_symbol_count.
15689
15690 2019-01-16 Tom Tromey <tom@tromey.com>
15691
15692 * objfiles.h (struct objfile) <psymtabs>: New method.
15693 (class objfile_psymtabs): Remove.
15694 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15695 typedef.
15696 <range>: New method.
15697 (require_partial_symbols): Change return type.
15698 * psymtab.c (require_partial_symbols)
15699 (psym_expand_symtabs_matching): Update.
15700 * mdebugread.c (parse_partial_symbols): Update.
15701 * dbxread.c (dbx_end_psymtab): Update.
15702
15703 2019-01-15 Tom Tromey <tom@tromey.com>
15704
15705 * symtab.c (lookup_objfile_from_block)
15706 (lookup_symbol_in_objfile_symtabs)
15707 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15708 (find_line_symtab, info_sources_command)
15709 (default_collect_symbol_completion_matches_break_on)
15710 (make_source_files_completion_list): Update.
15711 * symmisc.c (print_objfile_statistics, dump_objfile)
15712 (maintenance_print_symbols, maintenance_info_symtabs)
15713 (maintenance_check_symtabs, maintenance_info_line_tables):
15714 Update.
15715 * source.c (select_source_symtab)
15716 (forget_cached_source_info_for_objfile): Update.
15717 * objfiles.h (class objfile_compunits): Remove.
15718 (struct objfile) <compunits_range>: New typedef.
15719 (compunits): New method.
15720 * objfiles.c (objfile_relocate1): Update.
15721 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15722 * maint.c (count_symtabs_and_blocks): Update.
15723 * linespec.c (iterate_over_all_matching_symtabs): Update.
15724 * cp-support.c (add_symbol_overload_list_qualified): Update.
15725 * coffread.c (coff_symtab_read): Update.
15726 * ada-lang.c (add_nonlocal_symbols)
15727 (ada_collect_symbol_completion_matches)
15728 (ada_add_global_exceptions): Update.
15729
15730 2019-01-15 Tom Tromey <tom@tromey.com>
15731
15732 * progspace.h (program_space) <objfiles_safe_range>: New
15733 typedef.
15734 <objfiles_safe>: New method.
15735 * objfiles.h (class all_objfiles_safe): Remove.
15736 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15737 * jit.c (jit_inferior_exit_hook): Update.
15738
15739 2019-01-17 Tom Tromey <tom@tromey.com>
15740
15741 * progspace.h (program_space) <objfiles_range>: New typedef.
15742 <objfiles>: New method.
15743 <objfiles_head>: Rename from objfiles.
15744 (object_files): Update.
15745 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15746 * guile/scm-pretty-print.c
15747 (ppscm_find_pretty_printer_from_objfiles): Update.
15748 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15749 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15750 Update.
15751 * python/py-progspace.c (pspy_get_objfiles): Update.
15752 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15753 Update.
15754 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15755 (objfpy_lookup_objfile_by_build_id): Update.
15756 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15757 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15758 Update.
15759 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15760 (expand_symtab_containing_pc, lookup_objfile_from_block)
15761 (lookup_static_symbol, basic_lookup_transparent_type)
15762 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15763 (find_line_symtab, info_sources_command)
15764 (default_collect_symbol_completion_matches_break_on)
15765 (make_source_files_completion_list, find_main_name): Update.
15766 * symmisc.c (print_symbol_bcache_statistics)
15767 (print_objfile_statistics, maintenance_print_symbols)
15768 (maintenance_print_msymbols, maintenance_print_objfiles)
15769 (maintenance_info_symtabs, maintenance_check_symtabs)
15770 (maintenance_expand_symtabs, maintenance_info_line_tables):
15771 Update.
15772 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15773 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15774 (map_overlay_command, unmap_overlay_command)
15775 (simple_overlay_update, expand_symtabs_matching)
15776 (map_symbol_filenames): Update.
15777 * symfile-debug.c (set_debug_symfile): Update.
15778 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15779 Update.
15780 * source.c (select_source_symtab, forget_cached_source_info):
15781 Update.
15782 * solib.c (solib_read_symbols): Update.
15783 * solib-spu.c (append_ocl_sos): Update.
15784 * psymtab.c (maintenance_print_psymbols)
15785 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15786 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15787 * printcmd.c (info_symbol_command): Update.
15788 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15789 Update.
15790 * objfiles.h (class all_objfiles): Remove.
15791 * objfiles.c (have_partial_symbols, have_full_symbols)
15792 (have_minimal_symbols, qsort_cmp, update_section_map)
15793 (shared_objfile_contains_address_p)
15794 (default_iterate_over_objfiles_in_search_order): Update.
15795 * objc-lang.c (info_selectors_command, info_classes_command)
15796 (find_methods): Update.
15797 * minsyms.c (find_solib_trampoline_target): Update.
15798 * maint.c (maintenance_info_sections)
15799 (maintenance_translate_address, count_symtabs_and_blocks):
15800 Update.
15801 * main.c (captured_main_1): Update.
15802 * linux-thread-db.c (try_thread_db_load_from_pdir)
15803 (has_libpthread): Update.
15804 * linespec.c (iterate_over_all_matching_symtabs)
15805 (search_minsyms_for_name): Update.
15806 * jit.c (jit_find_objf_with_entry_addr): Update.
15807 * hppa-tdep.c (find_unwind_entry)
15808 (hppa_lookup_stub_minimal_symbol): Update.
15809 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15810 Update.
15811 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15812 (elf_gnu_ifunc_resolve_by_got): Update.
15813 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15814 * dwarf-index-write.c (save_gdb_index_command): Update.
15815 * cp-support.c (add_symbol_overload_list_qualified): Update.
15816 * breakpoint.c (create_overlay_event_breakpoint)
15817 (create_longjmp_master_breakpoint)
15818 (create_std_terminate_master_breakpoint)
15819 (create_exception_master_breakpoint): Update.
15820 * blockframe.c (find_pc_partial_function): Update.
15821 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15822 (ada_collect_symbol_completion_matches)
15823 (ada_add_global_exceptions): Update.
15824
15825 2019-01-17 Tom Tromey <tom@tromey.com>
15826
15827 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15828 declare VEC.
15829 (solib_target_parse_libraries): Change return type.
15830 (library_list_start_segment, library_list_start_section)
15831 (library_list_end_library, library_list_start_library); Update.
15832 (solib_target_free_library_list): Remove.
15833 (solib_target_parse_libraries): Remove cleanup. Change return
15834 type.
15835 (solib_target_current_sos): Update.
15836
15837 2019-01-17 Tom Tromey <tromey@bapiya>
15838
15839 * valprint.c: Replace "the the" with "the".
15840 * symtab.c: Replace "the the" with "the".
15841 * solib.c: Replace "the the" with "the".
15842 * solib-dsbt.c: Replace "the the" with "the".
15843 * linespec.c: Replace "the the" with "the".
15844 * dwarf2loc.h: Replace "the the" with "the".
15845 * amd64-windows-tdep.c: Replace "the the" with "the".
15846 * aarch64-tdep.c: Replace "the the" with "the".
15847
15848 2019-01-16 Keith Seitz <keiths@redhat.com>
15849
15850 PR gdb/23773
15851 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15852 <builder>: Rename to ..
15853 <m_builder>: ... this and make private.
15854 (dwarf2_cu::get_builder): New method. Change all users of
15855 `builder' to use this method.
15856 (dwarf2_start_symtab): Move to ...
15857 (dwarf2_cu::start_symtab): ... here. Update all callers
15858 (setup_type_unit_groups): Move to ...
15859 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15860 callers.
15861 (dwarf2_cu::reset_builder): New method.
15862 (process_full_compunit, process_full_type_unit): Use
15863 dwarf2_cu::reset_builder.
15864 (follow_die_offset): Record the ancestor CU if it is different
15865 from the followed DIE's CU.
15866 (follow_die_sig_1): Likewise.
15867
15868 2019-01-15 Tom Tromey <tom@tromey.com>
15869
15870 * remote.c (class remote_state) <buf>: Now a char_vector.
15871 <buf_size>: Remove.
15872 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15873 parameter.
15874 (remote_target::getpkt_or_notif_sane_1)
15875 (remote_target::getpkt_sane)
15876 (remote_target::getpkt_or_notif_sane): Likewise.
15877 (class remote_target) <putpkt>: New overload.
15878 (remote_target::read_frame): Change type of "buf_p". Remove
15879 sizeof_p parameter.
15880 (packet_ok): New overload.
15881 (packet_check_result): New overload.
15882 Update all uses.
15883
15884 2019-01-14 Tom Tromey <tom@tromey.com>
15885
15886 * remote-notif.c (handle_notification, remote_notif_ack)
15887 (remote_notif_parse): Make "buf" const.
15888 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15889 const.
15890 (remote_notif_parse, remote_notif_ack, handle_notification):
15891 Likewise.
15892 * remote.c (remote_notif_stop_parse): Make "buf" const.
15893 (remote_target::remote_parse_stop_reply): Make "buf" const.
15894 (remote_notif_stop_ack): Make "buf" const.
15895
15896 2019-01-14 Tom Tromey <tom@tromey.com>
15897
15898 * remote.c (remote_console_output): Make parameter const.
15899
15900 2019-01-14 Tom Tromey <tom@tromey.com>
15901
15902 * target-debug.h (target_debug_print_signals): Constify.
15903 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15904 * procfs.c (procfs_target::pass_signals): Update.
15905 * linux-nat.c (linux_nat_target::pass_signals): Update.
15906 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15907 * target-delegates.c: Rebuild.
15908 * remote.c (remote_target::program_signals): Update.
15909 (remote_target::pass_signals): Update.
15910 * target.c (target_pass_signals): Constify argument.
15911 (target_program_signals): Likewise.
15912 * target.h (struct target_ops) <pass_signals, program_signals>:
15913 Constify argument.
15914 (target_pass_signals, target_program_signals): Constify argument.
15915
15916 2019-01-14 Tom Tromey <tom@tromey.com>
15917
15918 PR tui/28819:
15919 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15920
15921 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15922
15923 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15924 field.
15925 * rs6000-tdep.c: Include reggroups.h.
15926 (IS_V_ALIAS_PSEUDOREG): Define.
15927 (rs6000_register_name): Return names for the "vX" aliases.
15928 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15929 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15930 aliases. Call default_register_reggroup_p for all other
15931 pseudo-registers.
15932 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15933 New functions.
15934 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15935 Handle "vX" aliases.
15936 (v_alias_pseudo_register_collect): New function.
15937 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15938 (rs6000_gdbarch_init): Initialize "vX" aliases as
15939 pseudo-registers. Restore registration of
15940 rs6000_pseudo_register_reggroup_p with
15941 set_tdesc_pseudo_register_reggroup_p.
15942
15943 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15944
15945 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15946 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15947 set_gdbarch_num_pseudo_regs.
15948
15949 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15950
15951 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15952 Remove arg prefixname, add do_set and do_show.
15953 Add member functions set_list and show_list.
15954 * cli/cli-style.c (class cli_style_option): Update accordingly.
15955 (style_set_list): Move to file scope.
15956 (style_show_list): Likewise.
15957 (set_style): Call help_list.
15958 (show_style): Call cmd_show_list.
15959 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15960 Update to use the new macro.
15961
15962 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15963
15964 * ada-lang.c (_initialize_ada_language): Expand the help text
15965 for the "catch exception" command.
15966
15967 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15968
15969 * symtab.c (matching_obj_sections): Initialize obj,
15970 declare it closer to its usage.
15971
15972 2019-01-10 Tom Tromey <tom@tromey.com>
15973
15974 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15975 (basic_inf_threads_range): Remove.
15976 (inf_threads_range, inf_non_exited_threads_range)
15977 (safe_inf_threads_range): Use next_adapter.
15978
15979 2019-01-10 Keith Seitz <keiths@redhat.com>
15980
15981 PR gdb/23712
15982 PR symtab/23010
15983 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15984 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15985
15986 2019-01-10 Keith Seitz <keiths@redhat.com>
15987
15988 PR gdb/23712
15989 PR symtab/23010
15990 * dictionary.c (pending_to_vector): Remove.
15991 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15992 Remove _1 suffix, replacing functions of the same name. Update
15993 all callers.
15994 (dict_create_hashed, dict_create_hashed_expandable)
15995 (dict_create_linear, dict_create_linear_expandable, dict_free)
15996 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15997 Make functions static.
15998
15999 2019-01-10 Keith Seitz <keiths@redhat.com>
16000
16001 PR gdb/23712
16002 PR symtab/23010
16003 * dictionary.h (struct dictionary): Replace declaration with
16004 multidictionary.
16005 (dict_create_hashed, dict_create_hashed_expandable)
16006 (dict_create_linear, dict_create_linear_expandable)
16007 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16008 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16009 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16010 taking multidictionary argument.
16011 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16012 * block.h (struct block) <dict>: Change to multidictionary
16013 and rename `multidict'.
16014 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16015 symmisc.c: Update all dictionary references to multidictionary.
16016
16017 2019-01-10 Keith Seitz <keiths@redhat.com>
16018
16019 PR gdb/23712
16020 PR symtab/23010
16021 * dictionary.c: Include unordered_map.
16022 (pending_to_vector): New function.
16023 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16024 Rewrite the non-"_1" functions to take vector instead
16025 of linked list.
16026 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16027 "new" _1 versions of the same name.
16028 (multidictionary): Define.
16029 (std::hash<enum language): New definition.
16030 (collate_pending_symbols_by_language, mdict_create_hashed)
16031 (mdict_create_hashed_expandable, mdict_create_linear)
16032 (mdict_create_linear_expandable, mdict_free)
16033 (find_language_dictionary, create_new_language_dictionary)
16034 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16035 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16036 (mdict_size, mdict_empty): New functions.
16037 * dictionary.h (mdict_iterator): Define.
16038
16039 2019-01-10 Pedro Alves <palves@redhat.com>
16040
16041 * breakpoint.c (read_uploaded_action)
16042 (create_tracepoint_from_upload): Adjust to use
16043 gdb::unique_xmalloc_ptr.
16044 * ctf.c (ctf_write_uploaded_tp):
16045 (SET_ARRAY_FIELD): Use emplace_back.
16046 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16047 * tracefile-tfile.c (tfile_write_uploaded_tp):
16048 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16049 gdb::unique_xmalloc_ptr.
16050 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16051 at_string, cond_string, cmd_strings>: Replace char pointers
16052 with gdb::unique_xmalloc_ptr.
16053
16054 2019-01-10 Pedro Alves <palves@redhat.com>
16055
16056 * solib-target.c (library_list_start_library): Don't xstrdup name.
16057
16058 2019-01-10 Pedro Alves <palves@redhat.com>
16059
16060 * mdebugread.c (parse_partial_symbols): Use
16061 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16062
16063 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16064
16065 * linux-fork.c (scoped_switch_fork_info)
16066 <~scoped_switch_fork_info>: Fix incorrect variable name.
16067
16068 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16069
16070 * linux-fork.c (scoped_switch_fork_info)
16071 <scoped_switch_fork_info>: Make explicit.
16072 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16073
16074 2019-01-10 Tom Tromey <tom@tromey.com>
16075
16076 * objfiles.h (objfile::reset_psymtabs): Update.
16077 * objfiles.c (objfile::objfile): Update.
16078 * psymtab.h (psymtab_storage::obstack): Update.
16079 (psymtab_storage::m_obstack): Use gdb::optional.
16080 (class psymtab_storage): Update comment. Remove objfile
16081 parameter.
16082 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16083
16084 2019-01-10 Tom Tromey <tom@tromey.com>
16085
16086 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16087 <free_psymtabs>: Now private.
16088 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16089 (allocate_psymtab): Use new method.
16090
16091 2019-01-10 Tom Tromey <tom@tromey.com>
16092
16093 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16094 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16095 * mdebugread.c (parse_partial_symbols): Use
16096 allocate_dependencies.
16097 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16098 allocate_dependencies.
16099 (process_psymtab_comp_unit_reader)
16100 (build_type_psymtab_dependencies): Likewise.
16101 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16102
16103 2019-01-10 Tom Tromey <tom@tromey.com>
16104
16105 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16106 PSYMBOL_SET_LANGUAGE.
16107 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16108
16109 2019-01-10 Tom Tromey <tom@tromey.com>
16110
16111 * psymtab.h (psymtab_storage::obstack): New method.
16112 <m_obstack>: Rename from obstack; now private.
16113 * psymtab.c (psymtab_storage): Update.
16114 * dwarf2read.c (create_addrmap_from_index)
16115 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16116 Update.
16117
16118 2019-01-10 Tom Tromey <tom@tromey.com>
16119
16120 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16121 * objfiles.h (objfile::reset_psymtabs): New method.
16122
16123 2019-01-10 Tom Tromey <tom@tromey.com>
16124
16125 * symmisc.c (print_symbol_bcache_statistics): Update.
16126 (print_objfile_statistics): Update.
16127 * symfile.c (reread_symbols): Update.
16128 * psymtab.h (class psymtab_storage): New.
16129 * psymtab.c (psymtab_storage): New constructor.
16130 (~psymtab_storage): New destructor.
16131 (require_partial_symbols): Update.
16132 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16133 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16134 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16135 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16136 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16137 (start_psymtab_common, end_psymtab_common)
16138 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16139 (allocate_psymtab): Update.
16140 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16141 Update.
16142 (dump_psymtab_addrmap, maintenance_print_psymbols)
16143 (maintenance_check_psymtabs): Update.
16144 (class objfile_psymtabs): Move to objfiles.h.
16145 * psympriv.h (discard_psymtab): Now inline.
16146 (psymtab_discarder::psymtab_discarder): Update.
16147 (psymtab_discarder::~psymtab_discarder): Update.
16148 (ALL_OBJFILE_PSYMTABS): Rewrite.
16149 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16150 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16151 Remove fields.
16152 <partial_symtabs>: New field.
16153 (class objfile_psymtabs): Move from psymtab.h. Update.
16154 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16155 psymbol_cache.
16156 (objfile::~objfile): Don't destroy psymbol_cache.
16157 * mdebugread.c (parse_partial_symbols): Update.
16158 * dwarf2read.c (create_addrmap_from_index)
16159 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16160 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16161 (add_partial_subprogram, dwarf2_ranges_read): Update.
16162 * dwarf-index-write.c (write_address_map)
16163 (write_one_signatured_type, recursively_write_psymbols)
16164 (class debug_names, class debug_names, write_psymtabs_to_index):
16165 Update.
16166
16167 2019-01-10 Tom Tromey <tom@tromey.com>
16168
16169 * symtab.h (SYMBOL_SET_NAMES): Update.
16170 (symbol_set_names): Update.
16171 (MSYMBOL_SET_NAMES): Update.
16172 * symtab.c (symbol_set_names): Change argument to be an
16173 objfile_per_bfd_storage.
16174 * psymtab.c (add_psymbol_to_bcache): Update.
16175 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16176
16177 2019-01-10 Tom Tromey <tom@tromey.com>
16178
16179 * symtab.c (create_demangled_names_hash): Change argument to be an
16180 objfile_per_bfd_storage.
16181 (symbol_set_names): Update.
16182
16183 2019-01-10 Tom Tromey <tom@tromey.com>
16184
16185 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16186 init_psymbol_list.
16187 * psymtab.c (init_psymbol_list): Do nothing if already called.
16188 * psympriv.h (init_psymbol_list): Add comment.
16189 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16190 init_psymbol_list.
16191 * dbxread.c (dbx_symfile_read): Unconditionally call
16192 init_psymbol_list.
16193
16194 2019-01-10 Tom Tromey <tom@tromey.com>
16195
16196 * xcoffread.c (scan_xcoff_symtab): Update.
16197 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16198 "where".
16199 * mdebugread.c (parse_partial_symbols)
16200 (handle_psymbol_enumerators): Update.
16201 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16202 * dbxread.c (read_dbx_symtab): Update.
16203 * psympriv.h (psymbol_placement): New enum.
16204 (add_psymbol_to_list): Update.
16205
16206 2019-01-10 Tom Tromey <tom@tromey.com>
16207
16208 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16209 static_psymbols parameters.
16210 (scan_xcoff_symtab): Update.
16211 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16212 static_psymbols parameters.
16213 * psympriv.h (start_psymtab_common): Update.
16214 * mdebugread.c (parse_partial_symbols): Update.
16215 * dwarf2read.c (create_partial_symtab): Update.
16216 * dbxread.c (read_dbx_symtab): Update.
16217 (start_psymtab): Remove global_psymbols and static_psymbols
16218 parameters.
16219
16220 2019-01-10 Tom Tromey <tom@tromey.com>
16221
16222 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16223 * psymtab.c (allocate_psymtab): Add comment.
16224 * psympriv.h (allocate_psymtab): Add comment.
16225 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16226 initializations.
16227 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16228
16229 2019-01-10 Tom Tromey <tom@tromey.com>
16230
16231 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16232 Don't declare.
16233 * mipsread.c: Include mdebugread.h.
16234 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16235 Declare.
16236 * elfread.c: Include mdebugread.h.
16237
16238 2019-01-09 Tom Tromey <tom@tromey.com>
16239
16240 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16241 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16242 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16243 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16244 (psym_lookup_symbol, psym_find_last_source_symtab)
16245 (psym_forget_cached_source_info, psym_print_stats)
16246 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16247 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16248 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16249 (psym_find_compunit_symtab_by_address)
16250 (maintenance_print_psymbols, maintenance_info_psymtabs)
16251 (maintenance_check_psymtabs): Use ranged for.
16252 * psymtab.h (class objfile_psymtabs): New.
16253 (require_partial_symbols): Return objfile_psymtabs.
16254 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16255
16256 2019-01-09 Tom Tromey <tom@tromey.com>
16257
16258 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16259 (find_pc_mapped_section, list_overlays_command)
16260 (map_overlay_command, unmap_overlay_command)
16261 (simple_overlay_update): Use all_objfiles.
16262 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16263 * printcmd.c (info_symbol_command): Use all_objfiles.
16264 * objfiles.h (ALL_OBJSECTIONS): Remove.
16265 * maint.c (maintenance_translate_address): Use all_objfiles.
16266 * gcore.c (gcore_create_callback): Use all_objfiles.
16267 (objfile_find_memory_regions): Likewise.
16268
16269 2019-01-09 Tom Tromey <tom@tromey.com>
16270
16271 * symtab.c (find_line_symtab, info_sources_command)
16272 (make_source_files_completion_list): Use objfile_compunits.
16273 * source.c (select_source_symtab): Use objfile_compunits.
16274 * objfiles.h (struct objfile): Update comment.
16275 (ALL_OBJFILES): Remove.
16276 (ALL_FILETABS): Remove.
16277 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16278 objfile_compunits.
16279
16280 2019-01-09 Tom Tromey <tom@tromey.com>
16281
16282 * symmisc.c (print_objfile_statistics, dump_objfile)
16283 (maintenance_print_symbols): Use compunit_filetabs.
16284 * source.c (forget_cached_source_info_for_objfile): Use
16285 compunit_filetabs.
16286 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16287 (ALL_FILETABS): Use compunit_filetabs.
16288 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16289 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16290
16291 2019-01-09 Tom Tromey <tom@tromey.com>
16292
16293 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16294 (compunit_filetabs): New.
16295 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16296 compunit_filetabs.
16297 (info_sources_command, make_source_files_completion_list): Remove
16298 declaration.
16299 * symmisc.c (print_objfile_statistics, dump_objfile)
16300 (maintenance_print_symbols): Remove declaration.
16301 (maintenance_info_symtabs): Use compunit_filetabs.
16302 (maintenance_info_line_tables): Likewise.
16303 * source.c (select_source_symtab): Change local variable name.
16304 (forget_cached_source_info_for_objfile): Remove declaration.
16305 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16306 * objfiles.c (objfile_relocate1): Remove declaration.
16307 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16308 declaration.
16309 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16310 * coffread.c (coff_symtab_read): Remove declaration.
16311 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16312 compunit_filetabs.
16313
16314 2019-01-09 Tom Tromey <tom@tromey.com>
16315
16316 * symtab.c (lookup_objfile_from_block)
16317 (find_pc_sect_compunit_symtab, search_symbols)
16318 (default_collect_symbol_completion_matches_break_on): Use
16319 objfile_compunits.
16320 * objfiles.h (ALL_COMPUNITS): Remove.
16321 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16322 * cp-support.c (add_symbol_overload_list_qualified): Use
16323 objfile_compunits.
16324 * ada-lang.c (ada_collect_symbol_completion_matches)
16325 (ada_add_global_exceptions): Use objfile_compunits.
16326
16327 2019-01-09 Tom Tromey <tom@tromey.com>
16328
16329 * source.c (select_source_symtab)
16330 (forget_cached_source_info_for_objfile): Remove declaration.
16331 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16332 declaration.
16333 * maint.c (count_symtabs_and_blocks): Remove declaration.
16334 * cp-support.c (add_symbol_overload_list_qualified): Remove
16335 declaration.
16336 * coffread.c (coff_symtab_read): Remove declaration.
16337 * symtab.c (lookup_symbol_in_objfile_symtabs)
16338 (basic_lookup_transparent_type_1): Use objfile_compunits.
16339 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16340 (info_sources_command, search_symbols)
16341 (default_collect_symbol_completion_matches_break_on)
16342 (make_source_files_completion_list): Remove declaration.
16343 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16344 (ada_collect_symbol_completion_matches)
16345 (ada_add_global_exceptions): Remove declaration.
16346 * linespec.c (iterate_over_all_matching_symtabs): Use
16347 objfile_compunits.
16348 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16349 (class objfile_compunits): New.
16350 (ALL_COMPUNITS): Use objfile_compunits.
16351 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16352 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16353 objfile_compunits.
16354 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16355
16356 2019-01-09 Tom Tromey <tom@tromey.com>
16357
16358 * symtab.c (search_symbols)
16359 (default_collect_symbol_completion_matches_break_on): Use
16360 objfile_msymbols.
16361 * ada-lang.c (ada_lookup_simple_minsym)
16362 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16363 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16364 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16365 objfile_msymbols.
16366 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16367 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16368 * objc-lang.c (find_methods): Use objfile_msymbols.
16369 (info_selectors_command, info_classes_command): Likewise.
16370 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16371 * objfiles.h (class objfile_msymbols): New.
16372 (ALL_OBJFILE_MSYMBOLS): Remove.
16373 (ALL_MSYMBOLS): Remove.
16374
16375 2019-01-09 Tom Tromey <tom@tromey.com>
16376
16377 * common/next-iterator.h (next_adapter): Add Iterator template
16378 parameter.
16379 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16380 (class all_objfiles_safe): New.
16381 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16382 * objfiles.c (put_objfile_before): Update comment.
16383 (add_separate_debug_objfile): Likewise.
16384 (free_all_objfiles): Use all_objfiles_safe.
16385 (objfile_purge_solibs): Likewise.
16386
16387 2019-01-09 Tom Tromey <tom@tromey.com>
16388
16389 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16390 (expand_symtab_containing_pc, lookup_static_symbol)
16391 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16392 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16393 all_objfiles.
16394 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16395 * breakpoint.c (create_overlay_event_breakpoint)
16396 (create_longjmp_master_breakpoint)
16397 (create_std_terminate_master_breakpoint)
16398 (create_exception_master_breakpoint): Use all_objfiles.
16399 * linux-thread-db.c (try_thread_db_load_from_pdir)
16400 (has_libpthread): Use all_objfiles.
16401 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16402 * linespec.c (iterate_over_all_matching_symtabs)
16403 (search_minsyms_for_name): Use all_objfiles.
16404 * maint.c (maintenance_info_sections): Use all_objfiles.
16405 * main.c (captured_main_1): Use all_objfiles.
16406 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16407 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16408 * guile/scm-pretty-print.c
16409 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16410 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16411 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16412 (maintenance_print_msymbols): Use all_objfiles.
16413 * source.c (select_source_symtab): Use all_objfiles.
16414 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16415 * symfile.c (remove_symbol_file_command)
16416 (expand_symtabs_matching, map_symbol_filenames): Use
16417 all_objfiles.
16418 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16419 all_objfiles.
16420 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16421 * objc-lang.c (find_methods): Use all_objfiles.
16422 * objfiles.c (have_partial_symbols, have_full_symbols)
16423 (have_minimal_symbols, qsort_cmp)
16424 (default_iterate_over_objfiles_in_search_order): Use
16425 all_objfiles.
16426 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16427 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16428 (maintenance_check_psymtabs): Use all_objfiles.
16429 (ALL_PSYMTABS): Remove.
16430 * compile/compile-object-run.c (do_module_cleanup): Use
16431 all_objfiles.
16432 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16433 * cp-support.c (add_symbol_overload_list_qualified): Use
16434 all_objfiles.
16435 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16436 Use all_objfiles.
16437 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16438 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16439 all_objfiles.
16440 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16441 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16442 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16443 Uses all_objfiles.
16444 * solib.c (solib_read_symbols): Use all_objfiles
16445
16446 2019-01-09 Tom Tromey <tom@tromey.com>
16447
16448 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16449 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16450 all_objfiles.
16451 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16452 * symmisc.c (print_symbol_bcache_statistics)
16453 (print_objfile_statistics, maintenance_print_objfiles)
16454 (maintenance_info_symtabs, maintenance_check_symtabs)
16455 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16456 all_objfiles.
16457 * source.c (forget_cached_source_info): Use all_objfiles.
16458 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16459 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16460 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16461 * objfiles.c (update_section_map): Use all_objfiles.
16462 (shared_objfile_contains_address_p): Likewise.
16463 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16464 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16465
16466 2019-01-09 Tom Tromey <tom@tromey.com>
16467
16468 * common/next-iterator.h: New file.
16469 * objfiles.h (class all_objfiles): New.
16470 (struct objfile_iterator): New.
16471
16472 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16473
16474 * NEWS: Move the description of the changed "frame", "select-frame",
16475 and "info frame" commands to the Changed commands section.
16476
16477 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16478
16479 * gdbtypes.c (check_stub_method_group): Remove handling of old
16480 mangling schemes.
16481 * linespec.c (find_methods): Likewise.
16482 * stabsread.c (read_member_functions): Likewise.
16483 * valops.c (search_struct_method): Likewise.
16484 (value_struct_elt_for_reference): Likewise.
16485 * NEWS: Mention this change.
16486
16487 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16488
16489 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16490 print_source_lines.
16491 * source.c (print_source_lines_base): Update line number check.
16492 (print_source_lines): New function.
16493 (source_lines_range::source_lines_range): New function.
16494 * source.h (class source_lines_range): New class.
16495 (print_source_lines): New declaration.
16496
16497 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16498
16499 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16500
16501 2019-01-08 Tom Tromey <tom@tromey.com>
16502 Simon Marchi <simon.marchi@ericsson.com>
16503
16504 PR gdb/24060
16505 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16506 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16507 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16508 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16509 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16510 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16511
16512 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16513
16514 * source.c (select_source_symtab): Move header comment to
16515 declaration in source.h.
16516 (forget_cached_source_info_for_objfile): Likewise.
16517 (forget_cached_source_info): Likewise.
16518 (identify_source_line): Likewise.
16519 * source.h (identify_source_line): Move declaration from symtab.h
16520 and add comment from source.c
16521 (print_source_lines): Likewise.
16522 (forget_cached_source_info_for_objfile): Likewise.
16523 (forget_cached_source_info): Likewise.
16524 (select_source_symtab): Likewise.
16525 (enum print_source_lines_flag): Move definition from symtab.h.
16526 * symtab.h (identify_source_line): Move declaration to source.h.
16527 (print_source_lines): Likewise.
16528 (forget_cached_source_info_for_objfile): Likewise.
16529 (forget_cached_source_info): Likewise.
16530 (select_source_symtab): Likewise.
16531 (enum print_source_lines_flag): Move definition to source.h.
16532 * tui/tui-hooks.c: Add 'source.h' include.
16533
16534 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16535
16536 * source.c (print_source_lines_base): Handle requests to print
16537 reverse line number sequences, and guard against empty lines
16538 string.
16539
16540 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16541
16542 * source.c (print_source_lines_base): Fix skip of '\r' if next
16543 character is '\n'.
16544
16545 2019-01-06 Tom Tromey <tom@tromey.com>
16546
16547 * c-exp.y (struct c_parse_state) <macro_original_text,
16548 expansion_obstack>: New member.
16549 (macro_original_text, expansion_obstack): Remove globals.
16550 (scan_macro_expansion, scanning_macro_expansion)
16551 (finished_macro_expansion): Update.
16552 (scan_macro_cleanup): Remove.
16553 (yylex, c_parse): Update.
16554
16555 2019-01-06 Tom Tromey <tom@tromey.com>
16556
16557 * c-exp.y (struct c_parse_state) <strings>: New member.
16558 (operator_stoken): Update.
16559
16560 2019-01-06 Tom Tromey <tom@tromey.com>
16561
16562 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16563 (union type_stack_elt) <typelist_val>: Now a pointer to
16564 std::vector.
16565 (type_stack_cleanup): Don't declare.
16566 (push_typelist): Update.
16567 * parse.c (pop_typelist): Return a std::vector.
16568 (push_typelist): Take a std::vector.
16569 (follow_types): Update. Do not free args.
16570 (type_stack_cleanup): Remove.
16571 * c-exp.y (struct c_parse_state): New.
16572 (cpstate): New global.
16573 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16574 (nonempty_typelist): Update.
16575 (func_mod): Create a new vector.
16576 (c_parse): Create a c_parse_state.
16577 (check_parameter_typelist): Do not delete params.
16578 (function_method): Update. Do not delete type_list.
16579
16580 2019-01-06 Tom Tromey <tom@tromey.com>
16581
16582 PR gdb/28155:
16583 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16584 check_typedef.
16585 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16586 (print_return_value): Likewise.
16587
16588 2019-01-05 Tom Tromey <tom@tromey.com>
16589
16590 * contrib/cleanup_check.py: Remove.
16591 * contrib/gcc-with-excheck: Remove.
16592 * contrib/exsummary.py: Remove.
16593 * contrib/excheck.py: Remove.
16594
16595 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16596
16597 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16598 NULL. Initialize tpprev to NULL instead of assigning it
16599 to NULL on the next statement.
16600 * windows-nat.c (windows_delete_thread): Remove check for
16601 main_thread_id before printing thread exit notifications.
16602 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16603 Remove thread ID check against main_thread_id.
16604 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16605 windows_delete_thread.
16606 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16607
16608 2019-01-04 Tom Tromey <tom@tromey.com>
16609
16610 * compile/compile.c (_initialize_compile): Use upper case for
16611 metasyntactic variables.
16612 * symmisc.c (_initialize_symmisc): Use upper case for
16613 metasyntactic variables.
16614 * psymtab.c (_initialize_psymtab): Use upper case for
16615 metasyntactic variables.
16616 * demangle.c (demangle_command): Use upper case for metasyntactic
16617 variables.
16618 (_initialize_demangler): Likewise.
16619 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16620 variables.
16621
16622 2019-01-03 Tom Tromey <tom@tromey.com>
16623
16624 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16625
16626 2019-01-03 Tom Tromey <tom@tromey.com>
16627
16628 * python/py-symtab.c (salpy_str): Update.
16629 (struct salpy_sal_object) <symtab>: Now a PyObject.
16630 (salpy_dealloc): Update.
16631 (del_objfile_sal): Use gdbpy_ref.
16632
16633 2019-01-03 Tom Tromey <tom@tromey.com>
16634
16635 * python/py-type.c (convert_field): Use new_reference. Return
16636 gdbpy_ref.
16637 (make_fielditem): Return gdbpy_ref.
16638 (typy_fields): Update.
16639 (typy_getitem): Update.
16640 (field_name): Return gdbpy_ref. Use new_reference.
16641 (typy_iterator_iternext): Update.
16642
16643 2019-01-03 Tom Tromey <tom@tromey.com>
16644
16645 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16646
16647 2019-01-03 Tom Tromey <tom@tromey.com>
16648
16649 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16650 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16651 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16652 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16653 (pspy_set_type_printers): Likewise.
16654 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16655 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16656 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16657 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16658 (objfpy_set_type_printers): Likewise.
16659
16660 2019-01-03 Tom Tromey <tom@tromey.com>
16661
16662 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16663 (gdbpy_print_stack): Use gdbpy_err_fetch.
16664 * python/python-internal.h (class gdbpy_err_fetch): New class.
16665 (class gdbpy_enter) <m_error_type, m_error_value,
16666 m_error_traceback>: Remove.
16667 <m_error>: New member.
16668 (gdbpy_exception_to_string): Don't declare.
16669 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16670 * python/py-value.c (convert_value_from_python): Use
16671 gdbpy_err_fetch.
16672 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16673 gdbpy_exception_to_string.
16674 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16675 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16676 gdbpy_err_fetch.
16677
16678 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16679
16680 * linux-nat.c (delete_lwp_cleanup): Delete.
16681 (struct lwp_deleter): New struct.
16682 (lwp_info_up): New typedef.
16683 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16684 lwp_info_up.
16685
16686 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16687
16688 * linux-fork.c (class scoped_switch_fork_info): New class.
16689 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16690
16691 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16692
16693 * valops.c (find_overload_match): Remove use of null_cleanup, and
16694 calls to do_cleanups.
16695
16696 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16697
16698 * compile/compile-cplus-types.c
16699 (compile_cplus_instance::decl_name): Handle changes to
16700 cp_func_name.
16701 * cp-support.c (cp_func_name): Update header comment, update
16702 return type.
16703 * cp-support.h (cp_func_name): Update return type in declaration.
16704 * valops.c (find_overload_match): Move temp_func local to top
16705 level of function and change its type. Use temp_func to hold and
16706 delete temporary string obtained from cp_func_name.
16707
16708 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16709
16710 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16711 gdb::char_vector, remove cleanup, and update uses of `msg`.
16712
16713 2019-01-03 Jim Wilson <jimw@sifive.com>
16714
16715 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16716
16717 2019-01-02 Tom Tromey <tom@tromey.com>
16718
16719 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16720 (tdesc_parse_xml): Remove cleanups.
16721 * target-descriptions.h (make_cleanup_free_target_description):
16722 Don't declare.
16723 (target_desc_deleter): New struct.
16724 (target_desc_up): New typedef.
16725 * target-descriptions.c (target_desc_deleter::operator()): Rename
16726 from free_target_description.
16727 (make_cleanup_free_target_description): Remove.
16728
16729 2019-01-02 Tom Tromey <tom@tromey.com>
16730
16731 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16732 constructor, destructor.
16733 (linespec_parser): Remove typedef.
16734 (~linespec_parser): Rename from linespec_parser_delete.
16735 (linespec_lex_to_end, linespec_complete_label)
16736 (linespec_complete): Update.
16737 (decode_line_full): Remove cleanups.
16738 (decode_line_1): Update.
16739
16740 2019-01-02 Tom Tromey <tom@tromey.com>
16741
16742 * python/python-internal.h (inferior_to_inferior_object): Change
16743 return type.
16744 * python/py-exitedevent.c (create_exited_event_object): Update.
16745 * python/py-inferior.c (inferior_to_inferior_object): Return
16746 gdbpy_ref.
16747 (python_new_inferior, python_inferior_deleted)
16748 (thread_to_thread_object, delete_thread_object)
16749 (build_inferior_list, gdbpy_selected_inferior): Update.
16750 * python/py-infthread.c (create_thread_object): Update. Also fail
16751 if inferior_to_inferior_object fails.
16752
16753 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16754
16755 * inferior.h (class inferior) <displaced_step_state>: New field.
16756 * infrun.h (struct displaced_step_state): Move here from
16757 infrun.c. Initialize fields, add constructor.
16758 <inf>: Remove field.
16759 <reset>: New method.
16760 * infrun.c (struct displaced_step_inferior_state): Move to
16761 infrun.h.
16762 (displaced_step_inferior_states): Remove.
16763 (get_displaced_stepping_state): Adust.
16764 (displaced_step_in_progress_any_inferior): Adjust.
16765 (displaced_step_in_progress_thread): Adjust.
16766 (displaced_step_in_progress): Adjust.
16767 (add_displaced_stepping_state): Remove.
16768 (get_displaced_step_closure_by_addr): Adjust.
16769 (remove_displaced_stepping_state): Remove.
16770 (infrun_inferior_exit): Call displaced_step_state.reset.
16771 (use_displaced_stepping): Don't check for NULL.
16772 (displaced_step_prepare_throw): Call
16773 get_displaced_stepping_state.
16774 (displaced_step_fixup): Don't check for NULL.
16775 (prepare_for_detach): Don't check for NULL.
16776
16777 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16778
16779 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16780 in case of call that did not complete.
16781
16782 2019-01-02 Andrey Utkin <autkin@undo.io>
16783
16784 * symfile.c (find_separate_debug_file): Fix search of debug files for
16785 remote debuggee.
16786
16787 2019-01-02 Tom Tromey <tom@tromey.com>
16788
16789 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16790 indentation.
16791 * python/py-frame.c (frapy_older): Remove cast.
16792 (frapy_newer): Likewise.
16793 * python/py-breakpoint.c (local_setattro): Remove cast.
16794 * python/py-arch.c (archpy_name): Remove local variable.
16795 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16796
16797 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16798
16799 * unittests/basic_string_view/element_access/char/empty.cc:
16800 Fix year range in copyright header.
16801
16802 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16803
16804 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16805 Delete.
16806 <operator==>: Update with for removed field.
16807 <hash>: Likewise.
16808 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16809 <isa_features>: ...this.
16810 <abi_features>: New field.
16811 (riscv_isa_flen): Update comment.
16812 (riscv_abi_xlen): New declaration.
16813 (riscv_abi_flen): New declaration.
16814 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16815 isa_features.
16816 (riscv_abi_xlen): New function.
16817 (riscv_isa_flen): Update to get answer from isa_features.
16818 (riscv_abi_flen): New function.
16819 (riscv_has_fp_abi): Update to get answer from abi_features.
16820 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16821 xlen and flen.
16822 (riscv_call_info) <xlen, flen>: Update comment.
16823 (riscv_call_arg_struct): Remove invalid assertions
16824 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16825 is removed.
16826 (riscv_gdbarch_init): Gather isa features and abi features
16827 separately, ensure both match on the gdbarch when reusing an old
16828 gdbarch. Relax an error check to allow 32-bit abi float to run on
16829 a target with 64-bit float hardware.
16830
16831 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16832
16833 * source.c (search_command_helper): Stop reverse search
16834 when line 1 has been searched.
16835
16836 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16837
16838 * record-full.c (record_full_base_target::close): Rewrite
16839 record_full_core_buf_list free logic.
16840
16841 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16842
16843 * break-catch-syscall.c (print_one_catch_syscall): xfree
16844 the last text.
16845
16846 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16847
16848 * top.c (print_gdb_version): Update Copyright year in version
16849 message.
16850
16851 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16852
16853 Update copyright year range in all GDB files.
16854
16855 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16856
16857 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16858
16859 For older changes see ChangeLog-2018.
16860 \f
16861 Local Variables:
16862 mode: change-log
16863 left-margin: 8
16864 fill-column: 74
16865 version-control: never
16866 coding: utf-8
16867 End:
16868
This page took 0.446557 seconds and 4 git commands to generate.