Fix double-free when creating more than one block in JIT debug info reader
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
4
5 2019-12-16 Tom Tromey <tromey@adacore.com>
6
7 * windows-nat.c (windows_nat_target::attach): Update.
8 * remote.c (extended_remote_target::attach): Update.
9 * procfs.c (procfs_target::attach): Update.
10 * nto-procfs.c (nto_procfs_target::attach): Update.
11 (nto_procfs_target::create_inferior): Update.
12 * inf-ptrace.c (inf_ptrace_target::attach): Update.
13 * gnu-nat.c (gnu_nat_target::attach): Update.
14 (gnu_nat_target::detach): Update.
15 * darwin-nat.c (darwin_nat_target::attach): Update.
16 * corefile.c (get_exec_file): Constify result. Remove extraneous
17 return.
18 * bsd-kvm.c (bsd_kvm_target_open): Update.
19 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
20
21 2019-12-16 Christian Biesinger <cbiesinger@google.com>
22
23 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
24 (we no longer need to include time.h before pathmax.h)
25
26 2019-12-15 Christian Biesinger <cbiesinger@google.com>
27
28 * ada-exp.y (write_ambiguous_var): Update.
29 * coffread.c (process_coff_symbol): Update.
30 * ctfread.c (ctf_add_enum_member_cb): Update.
31 (new_symbol): Update.
32 * dwarf2read.c (fixup_go_packaging): Update.
33 (new_symbol): Update.
34 * language.c (language_alloc_type_symbol): Update.
35 * mdebugread.c (new_symbol): Update.
36 * minsyms.c (minimal_symbol_reader::record_full): Update.
37 * psymtab.c (add_psymbol_to_bcache): Update.
38 * stabsread.c (define_symbol): Update.
39 (read_enum_type): Update.
40 * symtab.c (symbol_set_language): Make this a member function...
41 (general_symbol_info::set_language): ... here.
42 * symtab.h (struct general_symbol_info) <set_language>: New function.
43 (SYMBOL_SET_LANGUAGE): Remove.
44 (symbol_set_language): Remove.
45
46 2019-12-15 Christian Biesinger <cbiesinger@google.com>
47
48 * ada-lang.c (ada_add_block_symbols): Update.
49 (ada_collect_symbol_completion_matches): Update.
50 * ax-gdb.c (gen_expr): Update.
51 * block.c (block_lookup_symbol): Update.
52 (block_lookup_symbol_primary): Update.
53 (block_find_symbol): Update.
54 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
55 * dbxread.c (process_one_symbol): Update.
56 * dictionary.c (insert_symbol_hashed): Update.
57 (collate_pending_symbols_by_language): Update.
58 (mdict_add_symbol): Update.
59 * dwarf-index-write.c (write_psymbols): Update.
60 * dwarf2read.c (fixup_go_packaging): Update.
61 * findvar.c (read_var_value): Update.
62 * ft32-tdep.c (ft32_skip_prologue): Update.
63 * go-lang.c (go_symbol_package_name): Update.
64 * language.h (scoped_switch_to_sym_language_if_auto::
65 scoped_switch_to_sym_language_if_auto): Update.
66 * linespec.c (find_method): Update.
67 (find_label_symbols_in_block): Update.
68 * mdebugread.c (parse_symbol): Update.
69 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
70 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
71 (minimal_symbol_reader::install): Update.
72 * moxie-tdep.c (moxie_skip_prologue): Update.
73 * parse.c (parse_exp_in_context): Update.
74 * psymtab.c (psymbol_name_matches): Update.
75 (match_partial_symbol): Update.
76 (lookup_partial_symbol): Update.
77 (psymbol_hash): Update.
78 (psymbol_compare): Update.
79 * python/py-framefilter.c (extract_sym): Update.
80 (py_print_single_arg): Update.
81 * stabsread.c (define_symbol): Update.
82 * stack.c (print_frame_arg): Update.
83 (find_frame_funname): Update.
84 (info_frame_command_core): Update.
85 * symfile.c (set_initial_language): Update.
86 * symtab.c (symbol_set_demangled_name): Update.
87 (symbol_get_demangled_name): Update.
88 (symbol_set_language): Update.
89 (symbol_find_demangled_name): Update.
90 (symbol_set_names): Update.
91 (general_symbol_info::natural_name): Update.
92 (general_symbol_info::demangled_name): Update.
93 (general_symbol_info::search_name): Update.
94 (symbol_matches_search_name): Update.
95 (eq_symbol_entry): Update.
96 (iterate_over_symbols): Update.
97 (completion_list_add_symbol): Update.
98 (completion_list_add_msymbol): Update.
99 (completion_list_add_fields): Update.
100 * symtab.h (struct general_symbol_info) <language>: New function.
101 <language>: Rename to...
102 <m_language>: ...this.
103 (SYMBOL_LANGUAGE): Remove.
104 (MSYMBOL_LANGUAGE): Remove.
105 (struct symbol) <ctor>: Update.
106 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
107
108 2019-12-15 Christian Biesinger <cbiesinger@google.com>
109
110 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
111 set the language of sym.
112 * language.c (language_alloc_type_symbol): Likewise.
113
114 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
115
116 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
117 PR gdb/23613
118 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
119 * corelow.c: Include 'gdbsupport/pathstuff.h'.
120 (core_target_open): Use 'gdb_abspath'.
121 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
122 'current_directory == NULL' case.
123 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
124 explain what happens when 'current_directory' is NULL.
125 * go32-nat.c (go32_nat_target::wait): Check if
126 'current_directory' is NULL before call to 'chdir'.
127 * source.c (add_path): Use 'gdb_abspath'.
128 * top.c: Include 'gdbsupport/pathstuff.h'.
129 (init_history): Use 'gdb_abspath'.
130 (set_history_filename): Likewise.
131 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
132 (tfile_target_open): Use 'gdb_abspath'.
133
134 2019-12-13 Tom Tromey <tromey@adacore.com>
135
136 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
137 warning or error.
138
139 2019-12-13 Tom Tromey <tromey@adacore.com>
140
141 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
142
143 2019-12-13 Tom Tromey <tromey@adacore.com>
144
145 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
146
147 2019-12-13 Tom Tromey <tromey@adacore.com>
148
149 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
150
151 2019-12-13 Tom Tromey <tromey@adacore.com>
152
153 * gdbsupport/common-utils.c (string_printf, string_vprintf)
154 (string_vappendf): Add ARI comment.
155
156 2019-12-13 Tom Tromey <tromey@adacore.com>
157
158 * contrib/ari/gdb_ari.sh: Remove "fix" call for
159 floatformat_to_double.
160 * target-float.c (host_float_ops<T>::from_target): Add ARI
161 comment.
162
163 2019-12-13 Tom Tromey <tromey@adacore.com>
164
165 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
166 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
167 ARI marker to abort.
168 * event-top.c (handle_sigsegv): Add ARI marker to abort.
169
170 2019-12-13 Tom Tromey <tromey@adacore.com>
171
172 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
173
174 2019-12-13 Tom Tromey <tromey@adacore.com>
175
176 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
177
178 2019-12-13 Tom Tromey <tromey@adacore.com>
179
180 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
181 checks.
182
183 2019-12-13 Tom Tromey <tromey@adacore.com>
184
185 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
186 end>: No longer "const".
187
188 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
189
190 * jit.c: Fix indentation, replace spaces with tabs where
191 applicable.
192
193 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
194
195 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
196
197 2019-12-12 Tom Tromey <tom@tromey.com>
198
199 * objfiles.h (struct objfile) <partial_symtabs>: Now a
200 unique_ptr.
201
202 2019-12-12 Tom Tromey <tom@tromey.com>
203
204 * progspace.h (objfile_list): New typedef.
205 (class unwrapping_objfile_iterator)
206 (struct unwrapping_objfile_range): Newl
207 (struct program_space) <objfiles_range>: Change type.
208 <objfiles>: Change return type.
209 <add_objfile>: Change type of "objfile" parameter.
210 <objfiles_list>: Now a list of shared_ptr.
211 * progspace.c (program_space::add_objfile): Change type of
212 "objfile". Update.
213 (program_space::remove_objfile): Update.
214 * objfiles.h (struct objfile) <~objfile>: Make public.
215 * objfiles.c (objfile::make): Update.
216 (objfile::unlink): Don't call delete.
217
218 2019-12-12 Tom Tromey <tom@tromey.com>
219
220 * symfile.c (symbol_file_clear): Update.
221 * progspace.h (struct program_space) <free_all_objfiles>: Declare
222 method.
223 * progspace.c (program_space::free_all_objfiles): New method.
224 * objfiles.h (free_all_objfiles): Don't declare.
225 * objfiles.c (free_all_objfiles): Move to program_space.
226
227 2019-12-12 Tom Tromey <tom@tromey.com>
228
229 * progspace.c (program_space::add_objfile)
230 (program_space::remove_objfile): Update.
231 (program_space::multi_objfile_p): Remove.
232 * objfiles.h (struct objfile) <next>: Remove.
233 * objfiles.c (objfile::objfile): Update.
234 (put_objfile_before): Update.
235 (unlink_objfile): Update.
236 * progspace.h (object_files): Remove.
237 (struct program_space) <objfiles_head>: Remove.
238 <objfiles_list>: New member.
239 <objfiles_range, objfiles_safe_range>: Change type.
240 (objfiles): Change return type.
241 (objfiles_safe): Update.
242 (multi_objfile_p): Rewrite and inline.
243 (object_files): Remove macro.
244
245 2019-12-12 Tom Tromey <tom@tromey.com>
246
247 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
248 second constructor.
249 (basic_safe_range): New class.
250
251 2019-12-12 Tom Tromey <tom@tromey.com>
252
253 * progspace.c (program_space::multi_objfile_p): New method.
254 * printcmd.c (info_symbol_command): Update.
255 * maint.c (maintenance_translate_address): Update.
256 * objfiles.h (MULTI_OBJFILE_P): Remove.
257 * progspace.h (struct program_space) <multi_objfile_p>: New
258 method.
259
260 2019-12-12 Tom Tromey <tom@tromey.com>
261
262 * progspace.h (struct program_space) <remove_objfile>: Declare.
263 * progspace.c (program_space::remove_objfile): New method.
264 * objfiles.c (unlink_objfile): Remove.
265 (objfile::unlink): Call remove_objfile.
266 (objfile): Don't call unlink_objfile.
267
268 2019-12-12 Tom Tromey <tom@tromey.com>
269
270 * progspace.h (struct program_space) <add_objfile>: Declare
271 method.
272 * progspace.c (program_space::add_objfile): New method.
273 * objfiles.c (~objfile): Don't unlink objfile.
274 (put_objfile_before): Remove.
275 (add_separate_debug_objfile): Don't call put_objfile_before.
276 (objfile::make): Call add_objfile. Set new_objfiles_available on
277 the per-program-space data.
278
279 2019-12-12 Tom Tromey <tom@tromey.com>
280
281 * symfile.c (syms_from_objfile_1): Use objfile_up.
282 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
283 method.
284 (reread_symbols): Use objfile_up.
285 * solib.c (update_solib_list, reload_shared_libraries_1): Call
286 unlink method.
287 * objfiles.h (struct objfile) <~objfile>: Now private.
288 <unlink>: New method.
289 (struct objfile_deleter): New.
290 (objfile_up): New typedef.
291 * objfiles.c (objfile::unlink): New method.
292 (free_objfile_separate_debug, free_all_objfiles)
293 (objfile_purge_solibs): Use it.
294 * jit.c (jit_unregister_code): Remove.
295 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
296 objfile.
297 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
298 objfile.
299 * compile/compile-object-load.c (compile_object_load): Use
300 objfile_up.
301
302 2019-12-12 Tom Tromey <tom@tromey.com>
303
304 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
305 objfile::make.
306 * objfiles.h (struct objjfile) <make>: No longer inline.
307 (add_separate_debug_objfile): Don't declare.
308 * objfiles.c (add_separate_debug_objfile): Now static.
309 (objfile::make): Move from objfiles.h. Call
310 add_separate_debug_objfile. Add "parent" parameter.
311
312 2019-12-12 Tom Tromey <tom@tromey.com>
313
314 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
315 * objfiles.h (struct objfile): Make constructor private.
316 <make>: New static method.
317 * jit.c (jit_object_close_impl): Update.
318
319 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
322 gdb::byte_vector.
323
324 2019-12-12 Tom Tromey <tromey@adacore.com>
325
326 * xml-support.c (xml_fetch_content_from_file): Don't call
327 malloc_failure.
328 * utils.h (class gdb_argv): Remove malloc_failure comment.
329 * utils.c (gdb_argv::reset): Don't call malloc_failure.
330
331 2019-12-12 Tom Tromey <tromey@adacore.com>
332
333 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
334 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
335 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
336 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
337 * riscv-ravenscar-thread.c: New file.
338 * riscv-ravenscar-thread.h: New file.
339 * riscv-tdep.c (riscv_gdbarch_init): Call
340 register_riscv_ravenscar_ops.
341
342 2019-12-12 Tom Tromey <tromey@adacore.com>
343
344 * gdbsupport/thread-pool.c (set_thread_name): Use
345 ATTRIBUTE_UNUSED.
346
347 2019-12-12 Luis Machado <luis.machado@linaro.org>
348
349 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
350 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
351 macros.
352
353 2019-12-11 Tom Tromey <tom@tromey.com>
354
355 * tui/tui-win.c (tui_set_win_height_command): Call
356 tui_adjust_window_height.
357 (tui_adjust_win_heights, new_height_ok): Remove.
358 * tui/tui-layout.h (tui_adjust_window_height): Declare.
359 * tui/tui-layout.c (tui_adjust_window_height): New function.
360
361 2019-12-11 Tom Tromey <tom@tromey.com>
362
363 * tui/tui-win.c (tui_resize_all): Remove code, call
364 tui_apply_current_layout.
365
366 2019-12-11 Tom Tromey <tom@tromey.com>
367
368 * tui/tui-layout.h (tui_apply_current_layout): Declare.
369 * tui/tui-layout.c (standard_layouts, applied_layout): New
370 globals.
371 (tui_apply_current_layout): New function.
372 (show_layout): Set applied_layout. Call
373 tui_apply_current_layout.
374 (show_source_command, show_disasm_command)
375 (show_source_disasm_command, show_data)
376 (show_source_or_disasm_and_command): Remove.
377 (initialize_layouts): New function.
378 (_initialize_tui_layout): Call initialize_layouts.
379
380 2019-12-11 Tom Tromey <tom@tromey.com>
381
382 * tui/tui-layout.h (class tui_layout_base)
383 (class tui_layout_window, class tui_layout_split): New.
384 * tui/tui-layout.c (tui_get_window_by_name)
385 (tui_layout_window::clone, tui_layout_window::apply)
386 (tui_layout_window::get_sizes, tui_layout_window::add_split)
387 (tui_layout_split::add_window, tui_layout_split::clone)
388 (tui_layout_split::get_sizes)
389 (tui_layout_split::set_weights_from_heights)
390 (tui_layout_split::adjust_size, tui_layout_split::apply): New
391 functions.
392 (tui_layout_split::add_split, tui_layout_split::add_split)
393 (tui_layout_split::set_weights_from_heights)
394 (tui_layout_split::set_weights_from_heights): New functions.
395
396 2019-12-11 Tom Tromey <tom@tromey.com>
397
398 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
399 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
400 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
401 * tui/tui-data.h (struct tui_point): Remove.
402 (struct tui_gen_win_info) <origin>: Remove.
403 <x, y>: New fields.
404 * tui/tui-command.c (tui_cmd_window::resize): Update.
405
406 2019-12-11 Tom Tromey <tom@tromey.com>
407
408 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
409 Implement.
410 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
411 Implement.
412 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
413 method.
414 (struct tui_win_info) <min_height>: Implement.
415
416 2019-12-11 Tom Tromey <tom@tromey.com>
417
418 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
419 (struct tui_win_info) <can_box>: Update.
420
421 2019-12-11 Tom Tromey <tom@tromey.com>
422
423 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
424 method.
425 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
426 method.
427 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
428 method.
429 (struct tui_win_info) <max_height>: Now override.
430
431 2019-12-11 Joel Brobecker <brobecker@adacore.com>
432
433 * NEWS: Create a new section for the next release branch.
434 Rename the section of the current branch, now that it has
435 been cut.
436
437 2019-12-11 Joel Brobecker <brobecker@adacore.com>
438
439 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
440 * version.in: Bump version to 10.0.50.DATE-git.
441
442 2019-12-11 Tom Tromey <tromey@adacore.com>
443
444 PR build/25268:
445 * gdbsupport/thread-pool.c (set_thread_name): New function.
446 (thread_pool::set_thread_count): Don't call pthread_setname_np.
447 (thread_pool::thread_function): Call set_thread_name.
448
449 2019-12-11 Tom Tromey <tromey@adacore.com>
450
451 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
452 bfd_get_signed_8.
453
454 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
455
456 * NEWS: Document -raw-values option and the related setting commands.
457 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
458 only set it on when /r is given.
459 * valprint.c (value_print_option_defs): New element raw-values.
460 * Makefile.in: Add the new file.
461
462 2019-12-10 Christian Biesinger <cbiesinger@google.com>
463
464 * gdbsupport/safe-strerror.c: Supress the unused function warning
465 for select_strerror_r.
466
467 2019-12-10 Christian Biesinger <cbiesinger@google.com>
468
469 * config.in: Regenerate.
470 * configure: Regenerate.
471 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
472 safe_strerror instead of strerror.
473 * gdbsupport/common.m4: Don't check for strerror.
474 * gdbsupport/safe-strerror.c: Support both the glibc version
475 of strerror_r and the XSI version.
476
477 2019-12-10 Tom Tromey <tromey@adacore.com>
478
479 * ada-typeprint.c (print_choices): Use a single "?".
480 (print_variant_part): Print "?" if the discriminant name
481 is not known.
482
483 2019-12-10 George Barrett <bob@bob131.so>
484
485 Fix scripted probe breakpoints.
486 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
487 declaration forward.
488 (breakpoint_ops_for_event_location_type)
489 (breakpoint_ops_for_event_location): Add function definitions.
490 (break_command_1, trace_command): Use
491 breakpoint_ops_for_event_location.
492 * breakpoint.h (breakpoint_ops_for_event_location): Add function
493 declarations.
494 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
495 breakpoint_ops_for_event_location.
496 * python/py-breakpoint.c (bppy_init): Use
497 breakpoint_ops_for_event_location.
498
499 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
500
501 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
502 when ranking an lvalue argument for an rvalue parameter.
503
504 2019-12-08 Wataru Ashihara <wataash@wataash.com>
505
506 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
507 template argument for scoped_restore_tmpl from bool to int.
508
509 2019-12-07 Keith Seitz <keiths@redhat.com>
510
511 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
512 (build_id_to_debug_bfd): Make static, rewriting to use
513 build_id_to_bfd_suffix.
514 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
515 adding `suffix' parameter. Append SUFFIX to file names
516 when searching for matching files.
517 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
518 (build_id_to_exec_bfd): Likewise.
519 * build-id.h (build_id_to_debug_bfd): Clarify that function
520 searches for BFD of debug info file.
521 (build_id_to_exec_bfd): Declare.
522 * corelow.c: Include build-id.h.
523 (locate_exec_from_corefile_build_id): New function.
524 (core_target_open): If no executable BFD is found,
525 search for a core file BFD using build-id.
526
527 2019-12-06 Christian Biesinger <cbiesinger@google.com>
528
529 * bcache.c: Put in namespace gdb.
530 * bcache.h: Likewise.
531 * gdbtypes.c (check_types_worklist): Update.
532 (types_deeply_equal): Update.
533 * macrotab.c (struct macro_table) <bcache>: Update.
534 (new_macro_table): Update.
535 * macrotab.h (struct bcache): Put this forward declaration
536 inside namespace gdb.
537 (new_macro_table): Update.
538 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
539 Update.
540 <macro_cache>: Update.
541 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
542
543 2019-12-06 Tom de Vries <tdevries@suse.de>
544
545 PR symtab/24971
546 * block.c (best_symbol, better_symbol): New function.
547 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
548 decl.
549
550 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
551
552 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
553 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
554 for ranking see-through reference cases.
555
556 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
557 * stack.c (faas_command): Check a command is provided.
558 * thread.c (taas_command, tfaas_command): Likewise.
559
560 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
561 * inferior.c (prune_inferiors): Only call delete_inferior,
562 Do not modify the inferior list.
563
564 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
565
566 * c-exp.y: Update calls to lookup_typename,
567 lookup_signed_typename and lookup_unsigned_typename.
568 * c-lang.c (evaluate_subexp_c): Likewise.
569 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
570 Likewise.
571 * eval.c (binop_promote): Likewise.
572 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
573 (lookup_unsigned_typename): Likewise.
574 (lookup_signed_typename): Likewise.
575 * gdbtypes.h (lookup_unsigned_typename): Likewise.
576 (lookup_signed_typename): Likewise.
577 (lookup_typename): Likewise.
578 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
579 lookup_typename, lookup_signed_typename,
580 lookup_unsigned_typename.
581 * m2-exp.y: Likewise.
582 * printcmd.c (printf_wide_c_string): Likewise.
583 (ui_printf): Likewise.
584 * python/py-type.c (typy_lookup_typename): Likewise.
585 * python/py-xmethods.c (python_xmethod_worker::invoke):
586 Likewise.
587 * rust-exp.y: Likewise.
588
589 2019-12-04 Christian Biesinger <cbiesinger@google.com>
590
591 * configure.nat (obsd64): Add missing files x86-nat.o and
592 nat/x86-dregs.o.
593
594 2019-12-04 Tom Tromey <tom@tromey.com>
595
596 * valprint.c (val_print_string): Use metadata_style.
597 * go-valprint.c (print_go_string): Use metadata style.
598 * p-valprint.c (pascal_object_print_static_field): Use metadata
599 style.
600 * cp-valprint.c (cp_print_static_field): Use metadata style.
601
602 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
603 Chris January <chris.january@arm.com>
604
605 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
606 tokens.
607 (typebase): New patterns for complex, single/double precision, and
608 single/double complex.
609 (f77_keywords): Change token for complex keyword, and add single,
610 double, and precision keywords.
611
612 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
613
614 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
615 "info io_registers".
616
617 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * regcache.c (cooked_read_test): Initialize thread list of
620 mock_inferior.
621
622 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * aarch64-linux-tdep.c: Remove includes.
625
626 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
627
628 * aarch64-tdep.c: Remove includes.
629
630 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
631
632 * filtered-iterator.h (filtered_iterator) <operator==,
633 operator!=>: Compare wrapped iterators, not wrapped pointers.
634 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
635 unittests/filtered_iterator-selftests.c.
636 * unittests/filtered_iterator-selftests.c: New file.
637
638 2019-12-04 Tom Tromey <tromey@adacore.com>
639
640 * gdbtypes.c (create_range_type): Inherit endianity
641 from base type.
642
643 2019-12-04 Tom Tromey <tromey@adacore.com>
644
645 * ada-lang.c (decode_constrained_packed_array)
646 (ada_value_assign, value_assign_to_component): Update.
647 * dwarf2loc.c (rw_pieced_value, access_memory)
648 (dwarf2_compile_expr_to_ax): Update.
649 * dwarf2read.c (dwarf2_add_field): Update.
650 * eval.c (evaluate_subexp_standard): Update.
651 * gdbarch.c, gdbarch.h: Rebuild.
652 * gdbarch.sh (bits_big_endian): Remove.
653 * gdbtypes.h (union field_location): Update comment.
654 * target-descriptions.c (make_gdb_type): Update.
655 * valarith.c (value_bit_index): Update.
656 * value.c (struct value) <bitpos>: Update comment.
657 (unpack_bits_as_long, modify_field): Update.
658 * value.h (value_bitpos): Update comment.
659
660 2019-12-04 Tom Tromey <tromey@adacore.com>
661
662 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
663 endian-ness.
664
665 2019-12-04 Tom Tromey <tromey@adacore.com>
666
667 * dwarf2read.c (dwarf2_init_float_type)
668 (dwarf2_init_complex_target_type): Add byte_order parameter.
669 (read_base_type): Compute byte order earlier.
670 * gdbtypes.c (init_float_type): Add byte_order parameter.
671 * gdbtypes.h (init_float_type): Add byte_order parameter.
672
673 2019-12-04 Tom Tromey <tromey@adacore.com>
674
675 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
676
677 2019-12-04 Tom Tromey <tromey@adacore.com>
678
679 * dwarf2read.c (process_structure_scope): Initialize
680 "discr_offset".
681
682 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
683
684 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
685 add it into the search spec.
686 (parse_max_results_option): New function.
687 (mi_info_functions_or_variables): Parse -max-results flag and pass
688 it to mi_symbol_info.
689 (mi_cmd_symbol_info_modules): Likewise.
690 (mi_cmd_symbol_info_types): Likewise.
691 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
692 return type to bool, change result container into a set, and don't
693 add new results if we have enough already.
694 (global_symbol_searcher::add_matching_msymbols): Change return
695 type to bool, and don't add new results if we have enough already.
696 (sort_search_symbols_remove_dups): Delete.
697 (global_symbol_searcher::search): Early exit from search loop when
698 we have enough results. Use a std::set to collect the results
699 from calling add_matching_symbols.
700 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
701 member function.
702 (global_symbol_searcher) <m_max_search_results>: New member
703 variable.
704 (global_symbol_searcher) <add_matching_symbols>: Update header
705 comment and change return type to bool.
706 (global_symbol_searcher) <add_matching_msymbols>: Update header
707 comment and change return type to bool.
708
709 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
710
711 * symtab.c (symbol_search::compare_search_syms): Update header
712 comment.
713 (global_symbol_searcher::is_suitable_msymbol): New function.
714 (global_symbol_searcher::expand_symtabs): New function.
715 (global_symbol_searcher::add_matching_symbols): New function.
716 (global_symbol_searcher::add_matching_msymbols): New function.
717 (global_symbol_searcher::search): Move most of the content
718 into the new functions above, and call them as needed.
719 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
720 function.
721 (global_symbol_searcher) <add_matching_symbols>: New member
722 function.
723 (global_symbol_searcher) <add_matching_msymbols>: New member
724 function.
725 (global_symbol_searcher) <is_suitable_msymbol>: New member
726 function.
727
728 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
729
730 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
731 -symbol-info-module-variables entries.
732 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
733 (mi_cmd_symbol_info_module_variables): Declare.
734 * mi/mi-symbol-cmds.c
735 (module_symbol_search_iterator): New typedef.
736 (output_module_symbols_in_single_module_and_file): New function.
737 (output_module_symbols_in_single_module): New function.
738 (mi_info_module_functions_or_variables): New function.
739 (mi_cmd_symbol_info_module_functions): New function.
740 (mi_cmd_symbol_info_module_variables): New function.
741 * NEWS: Mention new MI command.
742
743 2019-12-03 Christian Biesinger <cbiesinger@google.com>
744
745 * bcache.c (hash): Remove.
746 (hash_continue): Remove.
747 * bcache.h (hash): Remove.
748 (hash_continue): Remove.
749 (struct bcache) <ctor>: Update.
750 * psymtab.c (psymbol_hash): Update.
751 * stabsread.c (hashname): Update.
752 * utils.h (fast_hash): Add an argument for a start value,
753 defaulting to zero.
754
755 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
756 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
757 (destroy_block_symbol_cache): New function.
758 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
759 (resize_symbol_cache): Likewise.
760
761 2019-12-02 Tom Tromey <tom@tromey.com>
762
763 * unittests/tui-selftests.c (run_tests): Make conditional.
764 (_initialize_tui_selftest): Make conditional.
765
766 2019-12-02 Christian Biesinger <cbiesinger@google.com>
767
768 * aix-thread.c (debug_aix_thread): Change type to bool.
769
770 2019-12-02 Luis Machado <luis.machado@linaro.org>
771
772 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
773
774 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 * dwarf2read.c (read_tag_string_type): Read the fields required to
777 make a dynamic string, and possibly create a dynamic range for the
778 string.
779 (attr_to_dynamic_prop): Setup is_reference based on the type of
780 attribute being processed.
781 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
782 (resolve_dynamic_array): Rename to...
783 (resolve_dynamic_array_or_string): ...this, update header comment,
784 and accept TYPE_CODE_STRING.
785 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
786
787 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
788
789 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
790 of its implementation from...
791 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
792 the new function.
793
794 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
797 create a range with stride where appropriate.
798 * f-valprint.c: Include 'gdbarch.h'.
799 (f77_print_array_1): Take the stride into account when walking the
800 array. Also convert the stride into addressable units.
801 * gdbtypes.c (create_range_type): Initialise the stride to
802 constant zero.
803 (create_range_type_with_stride): New function, initialise the
804 range as normal, and then setup the stride.
805 (has_static_range): Include the stride here. Also change the
806 return type to bool.
807 (create_array_type_with_stride): Consider the range stride if the
808 array isn't given its own stride.
809 (resolve_dynamic_range): Resolve the stride if needed.
810 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
811 (struct range_bounds) <flag_is_byte_stride>: New member variable.
812 (TYPE_BIT_STRIDE): Define.
813 (TYPE_ARRAY_BIT_STRIDE): Define.
814 (create_range_type_with_stride): Declare.
815 * valarith.c (value_subscripted_rvalue): Take range stride into
816 account when walking the array.
817
818 2019-12-01 Tom Tromey <tom@tromey.com>
819
820 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
821 specially.
822
823 2019-12-01 Tom Tromey <tom@tromey.com>
824
825 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
826 \0.
827 * unittests/tui-selftests.c: New file.
828 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
829
830 2019-12-01 Tom Tromey <tom@tromey.com>
831
832 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
833
834 2019-12-01 Tom Tromey <tom@tromey.com>
835
836 * NEWS: Document new settings.
837 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
838 * tui/tui-win.c (_initialize_tui_win): Add border style
839 observers.
840 * tui/tui-io.h (tui_apply_style): Declare.
841 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
842 longer static.
843 (apply_ansi_escape, tui_set_reverse_mode): Update.
844 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
845 Add "skip_intensity" parameter.
846 <changed>: New member.
847 <do_set_value>: Declare.
848 (tui_border_style, tui_active_border_style): Declare.
849 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
850 globals.
851 (cli_style_option): Initialize "changed".
852 (cli_style_option::do_set_value): New function.
853 (cli_style_option::add_setshow_commands): Add "skip_intensity"
854 parameter. Update.
855 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
856 (_initialize_cli_style): Update. Create TUI border style
857 commands.
858
859 2019-12-01 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
862 parameter.
863 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
864 parameter.
865 * tui/tui-win.h (compact_source): Declare.
866 * tui/tui-win.c (compact_source): New global.
867 (tui_set_compact_source, tui_show_compact_source): New functions.
868 (_initialize_tui_win): Add "compact-source" setting.
869 * tui/tui-source.c (tui_source_window::set_contents): Handle
870 compact_source setting.
871 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
872 * NEWS: Document new setting.
873
874 2019-11-30 Tom Tromey <tom@tromey.com>
875
876 * dwarf2read.c (dwarf2_add_field): Include field offset when
877 computing variant part length.
878
879 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
880 * NEWS: Mention define-prefix. Tell that command names can now
881 contain a . character.
882
883 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
884
885 * command.h (valid_cmd_char_p): Declare.
886 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
887 the check of valid command char.
888 (find_command_name_length, valid_user_defined_cmd_name_p): Use
889 valid_cmd_char_p.
890 * cli/cli-script.c (validate_comname): Likewise.
891 * completer.c (gdb_completer_command_word_break_characters):
892 Do not remove . from the word break char, update comments.
893 (complete_line_internal_1): Use valid_cmd_char_p.
894 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
895 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
896
897 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
898
899 * cli/cli-script.c (do_define_command): Ensure a redefined
900 prefix command is kept as a prefix command.
901 (define_prefix_command): New function.
902 (show_user_1): Report user defined prefixes.
903 (_initialize_cli_script): Create the new 'define-prefix' command.
904 Add completers for 'define' and 'document'.
905 * top.c (execute_command): If command is a user-defined prefix only
906 command, report the list of commands for this prefix command.
907
908 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
909
910 * valops.c (find_oload_champ): Improve debug output.
911
912 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
913
914 * valops.c (find_oload_champ): Print part of debug messages
915 before the badness vector is std::move'd.
916
917 2019-11-28 Tom Tromey <tom@tromey.com>
918
919 * value.c (creal_internal_fn): Fix comment.
920
921 2019-11-28 Tom Tromey <tom@tromey.com>
922
923 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
924 flag_bound_evaluated>: Now unsigned.
925
926 2019-11-28 Tom Tromey <tom@tromey.com>
927
928 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
929 declare.
930
931 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
932
933 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
934 debug output.
935 * jit.c (jit_unregister_code): Add debug print to match
936 `jit_register_code`.
937
938 2019-11-27 Christian Biesinger <cbiesinger@google.com>
939
940 * NEWS: Mention the new multithreaded symbol loading.
941
942 2019-11-27 Christian Biesinger <cbiesinger@google.com>
943
944 * maint.c (n_worker_threads): Default to 0.
945 (worker_threads_disabled): New function.
946 * maint.h (worker_threads_disabled): New function.
947 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
948 here if worker_threads_disabled () is true.
949 (minimal_symbol_reader::install): Skip all threading if
950 worker_threads_disabled () is true.
951
952 2019-11-27 Christian Biesinger <cbiesinger@google.com>
953
954 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
955 hash code if possible.
956 (add_minsym_to_demangled_hash_table): Likewise.
957 (minimal_symbol_reader::install): Compute the hash codes for msymbol
958 on the background thread.
959 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
960 Add these fields.
961
962 2019-11-27 Christian Biesinger <cbiesinger@google.com>
963
964 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
965 of the mangled name on the background thread.
966 * symtab.c (symbol_set_names): Allow passing in the hash of the
967 linkage_name.
968 * symtab.h (symbol_set_names): Likewise.
969
970 2019-11-27 Kevin Buettner <kevinb@redhat.com>
971
972 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
973 physnames are computed for inherited DIEs.
974
975 2019-11-27 Tom Tromey <tromey@adacore.com>
976
977 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
978 backslashes.
979 * cp-support.c: Remove unnecessary backslashes.
980
981 2019-11-27 Christian Biesinger <cbiesinger@google.com>
982
983 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
984 with sym->set_linkage_name.
985 * coffread.c (coff_read_enum_type): Likewise.
986 * mdebugread.c (parse_symbol): Likewise.
987 * stabsread.c (patch_block_stabs): Likewise.
988 (define_symbol): Likewise.
989 (read_enum_type): Likewise.
990 (common_block_end): Likewise.
991 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
992 function.
993 (SYMBOL_SET_LINKAGE_NAME): Remove.
994 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
995 with sym->set_linkage_name.
996
997 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
998
999 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1000 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1001 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1002 * NEWS: Mention new MI command.
1003
1004 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1007 '-symbol-info-types', and '-symbol-info-variables'.
1008 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1009 (mi_cmd_symbol_info_types): Declare.
1010 (mi_cmd_symbol_info_variables): Declare.
1011 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1012 (output_debug_symbol): New function.
1013 (output_nondebug_symbol): New function.
1014 (mi_symbol_info): New function.
1015 (mi_info_functions_or_variables): New function.
1016 (mi_cmd_symbol_info_functions): New function.
1017 (mi_cmd_symbol_info_types): New function.
1018 (mi_cmd_symbol_info_variables): New function.
1019 * NEWS: Mention new commands.
1020
1021 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1022
1023 * symtab.c (symbol_to_info_string): New function, most content
1024 moved from print_symbol_info, but updated to return a std::string.
1025 (print_symbol_info): Update to use symbol_to_info_string and print
1026 returned string.
1027 * symtab.h (symbol_to_info_string): Declare new function.
1028
1029 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 * python/python.c (gdbpy_rbreak): Convert to using
1032 global_symbol_searcher.
1033 * symtab.c (file_matches): Convert return type to bool, change
1034 file list to std::vector, update header comment.
1035 (search_symbols): Rename to...
1036 (global_symbol_searcher::search): ...this and update now its
1037 a member function of global_symbol_searcher. Take account of the
1038 changes to file_matches.
1039 (symtab_symbol_info): Convert to using global_symbol_searcher.
1040 (rbreak_command): Likewise.
1041 (search_module_symbols): Likewise.
1042 * symtab.h (enum symbol_search): Update comment.
1043 (search_symbols): Remove declaration.
1044 (class global_symbol_searcher): New class.
1045
1046 2019-11-26 Tom Tromey <tromey@adacore.com>
1047
1048 * cp-support.c (_initialize_cp_support): Conditionally initialize
1049 gdb_demangle_attempt_core_dump.
1050
1051 2019-11-26 Tom Tromey <tom@tromey.com>
1052
1053 * python/py-function.c (fnpy_init): Update.
1054 * value.h (add_internal_function): Adjust declaration.
1055 * value.c (function_destroyer): Remove.
1056 (do_add_internal_function): Don't set destroyer or copy name.
1057 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1058 Set name_allocated.
1059 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1060 (cmdpy_init): Set name_allocated.
1061 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1062 member.
1063 (~cmd_list_element): Free "name" if needed.
1064
1065 2019-11-26 Tom Tromey <tom@tromey.com>
1066
1067 * value.h (add_internal_function): Add new overload. Move
1068 documentation from value.h.
1069 * value.c (do_add_internal_function): New function.
1070 (add_internal_function): Use it. Add new overload.
1071 (function_destroyer): Don't free doc.
1072 * python/py-function.c (fnpy_init): Update.
1073
1074 2019-11-26 Tom Tromey <tom@tromey.com>
1075
1076 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1077 (cmdpy_init): Set "doc_allocated".
1078
1079 2019-11-26 Tom Tromey <tom@tromey.com>
1080
1081 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1082 name of worker thread.
1083 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1084 pthread_setname_np.
1085 * configure, config.in: Rebuild.
1086
1087 2019-11-26 Tom Tromey <tom@tromey.com>
1088
1089 * python/python.c (class gdbpy_gil): New.
1090 (struct gdbpy_event): Add constructor, destructor, operator().
1091 (gdbpy_post_event): Use run_on_main_thread.
1092 (gdbpy_initialize_events): Remove.
1093 (do_start_initialization): Update.
1094
1095 2019-11-26 Tom Tromey <tom@tromey.com>
1096
1097 * NEWS: Add entry.
1098 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1099 commands. Call update_thread_pool_size.
1100 (update_thread_pool_size, maintenance_set_worker_threads): New
1101 functions.
1102 (n_worker_threads): New global.
1103
1104 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1105 Tom Tromey <tom@tromey.com>
1106
1107 * minsyms.c (minimal_symbol_reader::install): Use
1108 parallel_for_each.
1109 * gdbsupport/parallel-for.h: New file.
1110 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1111
1112 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1113 Tom Tromey <tom@tromey.com>
1114
1115 * gdbsupport/thread-pool.h: New file.
1116 * gdbsupport/thread-pool.c: New file.
1117 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1118 (HFILES_NO_SRCDIR): Add thread-pool.h.
1119
1120 2019-11-26 Tom Tromey <tom@tromey.com>
1121
1122 * event-top.h (thread_local_segv_handler): Declare.
1123 * event-top.c (thread_local_segv_handler): New global.
1124 (install_handle_sigsegv, handle_sigsegv): New functions.
1125 (async_init_signals): Install SIGSEGV handler.
1126 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1127 thread-local.
1128 (report_failed_demangle): New function.
1129 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1130 handler-setting code, instead use segv_handler. Run warning code
1131 on main thread.
1132
1133 2019-11-26 Tom Tromey <tom@tromey.com>
1134
1135 * run-on-main-thread.c: New file.
1136 * run-on-main-thread.h: New file.
1137 * unittests/main-thread-selftests.c: New file.
1138 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1139 main-thread-selftests.c.
1140 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1141 (COMMON_SFILES): Add run-on-main-thread.c.
1142
1143 2019-11-26 Tom Tromey <tom@tromey.com>
1144
1145 * main.c (setup_alternate_signal_stack): Remove.
1146 (captured_main_1): Use gdb::alternate_signal_stack.
1147 * gdbsupport/alt-stack.h: New file.
1148
1149 2019-11-26 Tom Tromey <tom@tromey.com>
1150
1151 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1152 Remove comment.
1153 (save_original_signals_state, restore_original_signals_state): Use
1154 gdb_sigmask.
1155 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1156 (_initialize_linux_nat): Use gdb_sigmask.
1157 * guile/guile.c (_initialize_guile): Use block_signals.
1158 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1159 * gdbsupport/gdb-sigmask.h: New file.
1160 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1161 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1162 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1163 pthread_sigmask.
1164 * configure, config.in: Rebuild.
1165 * gdbsupport/block-signals.h: New file.
1166
1167 2019-11-26 Tom Tromey <tom@tromey.com>
1168
1169 * acinclude.m4: Include ax_pthread.m4.
1170 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1171 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1172 (CLIBS): Use PTHREAD_LIBS.
1173 (aclocal_m4_deps): Add ax_pthread.m4.
1174 * config.in, configure: Rebuild.
1175 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1176
1177 2019-11-26 Tom Tromey <tom@tromey.com>
1178
1179 * symtab.h (struct minimal_symbol) <name_set>: New member.
1180 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1181 Don't call symbol_set_names.
1182 (minimal_symbol_reader::install): Call symbol_set_names.
1183
1184 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1185
1186 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1187 restore_active_ext_lang, as GIL is needed for (indirectly)
1188 called PyOS_InterruptOccurred.
1189
1190 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1191
1192 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1193 definition.
1194
1195 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * remote-sim.c (simulator_command): Make static, remove
1198 declaration.
1199
1200 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1201
1202 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1203 static.
1204 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1205 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1206 (main): Likewise.
1207 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1208 (main): Likewise.
1209 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1210 (main): Likewise.
1211 * unittests/basic_string_view/element_access/char/1.cc (test01):
1212 Likewise.
1213 (main): Likewise.
1214 * unittests/basic_string_view/element_access/char/empty.cc (main):
1215 Likewise.
1216 * unittests/basic_string_view/element_access/char/front_back.cc
1217 (test01): Likewise.
1218 (main): Likewise.
1219 * unittests/basic_string_view/inserters/char/2.cc (test05):
1220 Likewise.
1221 (main): Likewise.
1222 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1223 (test01): Likewise.
1224 (main): Likewise.
1225 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1226 (test01): Likewise.
1227 (main): Likewise.
1228 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1229 Likewise.
1230 * unittests/basic_string_view/operations/compare/char/1.cc
1231 (test01): Likewise.
1232 (main): Likewise.
1233 * unittests/basic_string_view/operations/compare/char/13650.cc
1234 (test01): Likewise.
1235 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1236 Likewise.
1237 (main): Likewise.
1238 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1239 Likewise.
1240 (main): Likewise.
1241 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1242 Likewise.
1243 (main): Likewise.
1244 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1245 Likewise.
1246 (main): Likewise.
1247 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1248 Likewise.
1249 (main): Likewise.
1250 * unittests/basic_string_view/operations/find/char/4.cc (main):
1251 Likewise.
1252 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1253 Likewise.
1254 (main): Likewise.
1255 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1256 Likewise.
1257 (main): Likewise.
1258 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1259 Likewise.
1260 (main): Likewise.
1261 * unittests/basic_string_view/operations/substr/char/1.cc
1262 (test01): Likewise.
1263 (main): Likewise.
1264 * unittests/basic_string_view/operators/char/2.cc (main):
1265 Likewise.
1266 * unittests/optional/assignment/1.cc (test): Likewise.
1267 * unittests/optional/assignment/2.cc (test): Likewise.
1268 * unittests/optional/assignment/3.cc (test): Likewise.
1269 * unittests/optional/assignment/4.cc (test): Likewise.
1270 * unittests/optional/assignment/5.cc (test): Likewise.
1271 * unittests/optional/assignment/6.cc (test): Likewise.
1272 * unittests/optional/assignment/7.cc (test): Likewise.
1273 * unittests/optional/cons/copy.cc (test): Likewise.
1274 * unittests/optional/cons/default.cc (test): Likewise.
1275 * unittests/optional/cons/move.cc (test): Likewise.
1276 * unittests/optional/cons/value.cc (test): Likewise.
1277 * unittests/optional/in_place.cc (test): Likewise.
1278 * unittests/optional/observers/1.cc (test): Likewise.
1279 * unittests/optional/observers/2.cc (test): Likewise.
1280
1281 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1282
1283 * tui-win.h (tui_set_var_cmd): Remove.
1284 * tui-win.c (tui_set_var_cmd): Make static.
1285
1286 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1287
1288 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1289 rbreak_command_wrapper): Remove.
1290 * symtab.c (rbreak_command_wrapper): Remove.
1291
1292 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1293
1294 * inferior.h (info_terminal_command): Remove declaration.
1295 * inflow.c (info_terminal_command): Make static.
1296
1297 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1298
1299 * inferior.c (exit_inferior_silent): Remove.
1300
1301 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1302
1303 * dictionary.c (dict_empty, mdict_empty): Remove.
1304 * dictionary.c (mdict_empty): Remove.
1305
1306 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1307
1308 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1309 (arc_insn_get_memory_offset): Likewise.
1310 (arc_insn_dump): Likewise.
1311 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1312 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1313 * dictionary.c (dict_iterator_next): Likewise.
1314 (dict_iter_match_first): Likewise.
1315 (dict_iter_match_next): Likewise.
1316 * f-lang.c (evaluate_subexp_f): Likewise.
1317 * hppa-tdep.c (hppa_read_pc): Likewise.
1318 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1319 * parse.c (write_exp_elt_msym): Likewise.
1320 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1321 * remote.c (remote_packet_size): Likewise.
1322 (remote_notif_stop_parse): Likewise.
1323 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1324 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1325 * source.c (prepare_path_for_appending): Likewise.
1326 * sparc64-linux-tdep.c
1327 (sparc64_linux_handle_segmentation_fault); Likewise.
1328 * stack.c (frame_selection_by_function_completer): Likewise.
1329
1330 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1331
1332 * completer.c (set_gdb_completion_word_break_characters):
1333 Remove.
1334
1335 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1336
1337 * dwarf-index-write.c: Include dwarf-index-write.h.
1338 * mi/mi-interp.c: Include mi/mi-interp.h.
1339
1340 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1341
1342 * aarch32-tdep.c: Include aarch32-tdep.h.
1343 * aarch32-tdep.h: Forward-declare struct target_desc.
1344
1345 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1346
1347 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1348 strerror.
1349 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1350 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1351
1352 2019-11-25 Tom de Vries <tdevries@suse.de>
1353
1354 * contrib/words.sh: Add -c option.
1355
1356 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1357
1358 * solib.c (solib_find_1): Change int to bool.
1359 (exec_file_find): Change int to bool.
1360 (solib_find): Change int to bool.
1361 (solib_read_symbols): Change int to bool.
1362 (solib_used): Change int to bool.
1363 (solib_add): Change int to bool.
1364 (info_sharedlibrary_command): Change int to bool.
1365 (solib_contains_address_p): Change int to bool.
1366 (solib_keep_data_in_core): Change int to bool.
1367 (in_solib_dynsym_resolve_code): Change int to bool.
1368 (reload_shared_libraries_1): Change int to bool.
1369 (gdb_sysroot_changed): Change int to bool.
1370 * solib.h (solib_read_symbols): Change int to bool.
1371 (solib_contains_address_p): Change int to bool.
1372 (solib_keep_data_in_core): Change int to bool.
1373 (in_solib_dynsym_resolve_code): Change int to bool.
1374 (libpthread_name_p): Change int to bool.
1375
1376 2019-11-25 Luis Machado <luis.machado@linaro.org>
1377
1378 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1379 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1380 (remote_packet_max_chars): New static global.
1381 (show_remote_packet_max_chars): New function.
1382 (remote_target::putpkt_binary): Adjust to use new
1383 remote_packet_max_chars option.
1384 (remote_target::getpkt_or_notif_sane_1): Likewise.
1385 (_initialize_remote): Register new remote-packet-max-chars option.
1386
1387 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1388
1389 * m68k-linux-nat.c: Include gdbarch.h.
1390
1391 2019-11-24 Tom Tromey <tom@tromey.com>
1392
1393 * symfile.c (read_symbols): Update.
1394 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1395 bool.
1396 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1397 (psym_lookup_symbol, psym_find_last_source_symtab)
1398 (psym_forget_cached_source_info, psym_print_stats)
1399 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1400 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1401 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1402 (psym_find_compunit_symtab_by_address)
1403 (maintenance_print_psymbols, maintenance_info_psymtabs)
1404 (maintenance_check_psymtabs): Update.
1405 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1406 bool.
1407
1408 2019-11-22 Tom Tromey <tom@tromey.com>
1409
1410 * observable.h: Update comments.
1411
1412 2019-11-22 Tom Tromey <tromey@adacore.com>
1413
1414 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1415 (print_ada_task_info): Don't try to fetch thread id if task is not
1416 alive.
1417
1418 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1419
1420 * ada-exp.y: Update.
1421 * ada-lang.c (sort_choices): Update.
1422 (ada_print_symbol_signature): Update.
1423 (resolve_subexp): Update.
1424 (ada_parse_renaming): Update.
1425 (ada_read_renaming_var_value): Update.
1426 (lesseq_defined_than): Update.
1427 (remove_extra_symbols): Update.
1428 (remove_irrelevant_renamings): Update.
1429 (ada_add_block_symbols): Update.
1430 (ada_collect_symbol_completion_matches): Update.
1431 (ada_is_renaming_symbol): Update.
1432 (aggregate_assign_from_choices): Update.
1433 (ada_evaluate_subexp): Update.
1434 (ada_has_this_exception_support): Update.
1435 (ada_is_non_standard_exception_sym): Update.
1436 (ada_add_exceptions_from_frame): Update.
1437 (ada_add_global_exceptions): Update.
1438 (ada_print_subexp): Update.
1439 * ax-gdb.c (gen_var_ref): Update.
1440 (gen_maybe_namespace_elt): Update.
1441 (gen_expr_for_cast): Update.
1442 (gen_expr): Update.
1443 * block.h: Update.
1444 * blockframe.c (find_pc_partial_function): Update.
1445 * breakpoint.c (print_breakpoint_location): Update.
1446 (update_static_tracepoint): Update.
1447 * btrace.c (ftrace_print_function_name): Update.
1448 (ftrace_function_switched): Update.
1449 * buildsym.c (find_symbol_in_list): Update.
1450 * c-exp.y: Update.
1451 * c-typeprint.c (c_print_typedef): Update.
1452 (c_type_print_template_args): Update.
1453 * cli/cli-cmds.c (edit_command): Update.
1454 (list_command): Update.
1455 (print_sal_location): Update.
1456 * coffread.c (patch_opaque_types): Update.
1457 (process_coff_symbol): Update.
1458 (coff_read_enum_type): Update.
1459 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1460 (convert_one_symbol): Update.
1461 (hash_symname): Update.
1462 (eq_symname): Update.
1463 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1464 * compile/compile-cplus-types.c (debug_print_scope): Update.
1465 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1466 * compile/compile-object-load.c (get_out_value_type): Update.
1467 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1468 (search_symbol_list): Update.
1469 (cp_lookup_symbol_imports_or_template): Update.
1470 * cp-support.c (overload_list_add_symbol): Update.
1471 * ctfread.c (psymtab_to_symtab): Update.
1472 * dbxread.c (cp_set_block_scope): Update.
1473 * dictionary.c (iter_match_first_hashed): Update.
1474 (iter_match_next_hashed): Update.
1475 (insert_symbol_hashed): Update.
1476 (iter_match_next_linear): Update.
1477 * dictionary.h: Update.
1478 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1479 (locexpr_describe_location_piece): Update.
1480 (locexpr_describe_location_1): Update.
1481 (locexpr_generate_c_location): Update.
1482 (loclist_describe_location): Update.
1483 (loclist_generate_c_location): Update.
1484 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1485 (read_func_scope): Update.
1486 (process_enumeration_scope): Update.
1487 (new_symbol): Update.
1488 (dwarf2_const_value): Update.
1489 (dwarf2_symbol_mark_computed): Update.
1490 * eval.c (evaluate_funcall): Update.
1491 (evaluate_subexp_standard): Update.
1492 * expprint.c (print_subexp_standard): Update.
1493 (dump_subexp_body_standard): Update.
1494 * f-valprint.c (info_common_command_for_block): Update.
1495 * findvar.c (get_hosting_frame): Update.
1496 (default_read_var_value): Update.
1497 * go-lang.c (go_symbol_package_name): Update.
1498 * guile/scm-block.c (bkscm_print_block_smob): Update.
1499 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1500 (gdbscm_symbol_name): Update.
1501 (gdbscm_symbol_linkage_name): Update.
1502 (gdbscm_symbol_print_name): Update.
1503 * infcall.c (get_function_name): Update.
1504 * infcmd.c (jump_command): Update.
1505 (finish_command): Update.
1506 * infrun.c (insert_exception_resume_breakpoint): Update.
1507 * linespec.c (canonicalize_linespec): Update.
1508 (create_sals_line_offset): Update.
1509 (convert_linespec_to_sals): Update.
1510 (complete_label): Update.
1511 (find_label_symbols_in_block): Update.
1512 * m2-typeprint.c (m2_print_typedef): Update.
1513 * mdebugread.c (mdebug_reg_to_regnum): Update.
1514 (parse_symbol): Update.
1515 (mylookup_symbol): Update.
1516 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1517 (list_args_or_locals): Update.
1518 * objc-lang.c (compare_selectors): Update.
1519 (info_selectors_command): Update.
1520 (compare_classes): Update.
1521 (info_classes_command): Update.
1522 (find_imps): Update.
1523 * p-typeprint.c (pascal_print_typedef): Update.
1524 * printcmd.c (build_address_symbolic): Update.
1525 (info_address_command): Update.
1526 (print_variable_and_value): Update.
1527 * python/py-framefilter.c (extract_sym): Update.
1528 (py_print_single_arg): Update.
1529 * python/py-symbol.c (sympy_str): Update.
1530 (sympy_get_name): Update.
1531 (sympy_get_linkage_name): Update.
1532 * python/python.c (gdbpy_rbreak): Update.
1533 * record-btrace.c (btrace_get_bfun_name): Update.
1534 (btrace_call_history): Update.
1535 * rust-lang.c (rust_print_typedef): Update.
1536 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1537 * stabsread.c (stab_reg_to_regnum): Update.
1538 (define_symbol): Update.
1539 (read_enum_type): Update.
1540 (common_block_end): Update.
1541 (cleanup_undefined_types_1): Update.
1542 (scan_file_globals): Update.
1543 * stack.c (print_frame_arg): Update.
1544 (print_frame_args): Update.
1545 (find_frame_funname): Update.
1546 (info_frame_command_core): Update.
1547 (iterate_over_block_locals): Update.
1548 (print_block_frame_labels): Update.
1549 (do_print_variable_and_value): Update.
1550 (iterate_over_block_arg_vars): Update.
1551 (return_command): Update.
1552 * symmisc.c (dump_symtab_1): Update.
1553 (print_symbol): Update.
1554 * symtab.c (eq_symbol_entry): Update.
1555 (symbol_cache_dump): Update.
1556 (lookup_language_this): Update.
1557 (find_pc_sect_line): Update.
1558 (skip_prologue_sal): Update.
1559 (symbol_search::compare_search_syms): Update.
1560 (treg_matches_sym_type_name): Update.
1561 (search_symbols): Update.
1562 (print_symbol_info): Update.
1563 (rbreak_command): Update.
1564 (completion_list_add_symbol): Update.
1565 (find_gnu_ifunc): Update.
1566 (get_symbol_address): Update.
1567 (search_module_symbols): Update.
1568 (info_module_subcommand): Update.
1569 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1570 (SYMBOL_LINKAGE_NAME): Remove.
1571 (SYMBOL_DEMANGLED_NAME): Remove.
1572 (SYMBOL_PRINT_NAME): Remove.
1573 (SYMBOL_SEARCH_NAME): Remove.
1574 * tracepoint.c (set_traceframe_context): Update.
1575 (validate_actionline): Update.
1576 (collection_list::collect_symbol): Update.
1577 (encode_actions_1): Update.
1578 (info_scope_command): Update.
1579 (print_one_static_tracepoint_marker): Update.
1580 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1581 * valops.c (address_of_variable): Update.
1582 (find_overload_match): Update.
1583 (find_oload_champ): Update.
1584
1585 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1586
1587 * ada-lang.c (ada_lookup_simple_minsym): Update.
1588 (ada_collect_symbol_completion_matches): Update.
1589 * ada-tasks.c (read_atcb): Update.
1590 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1591 (amd64_windows_skip_trampoline_code): Update.
1592 * arm-tdep.c (skip_prologue_function): Update.
1593 (arm_skip_stack_protector): Update.
1594 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1595 (arm_wince_skip_main_prologue): Update.
1596 * ax-gdb.c (gen_expr): Update.
1597 * block.c (call_site_for_pc): Update.
1598 * blockframe.c (find_pc_partial_function): Update.
1599 * breakpoint.c (set_breakpoint_location_function): Update.
1600 * btrace.c (ftrace_print_function_name): Update.
1601 (ftrace_function_switched): Update.
1602 * c-valprint.c (print_unpacked_pointer): Update.
1603 * coffread.c (coff_symfile_read): Update.
1604 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1605 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1606 * dwarf-index-write.c (write_psymbols): Update.
1607 * dwarf2loc.c (call_site_to_target_addr): Update.
1608 (func_verify_no_selftailcall): Update.
1609 (tailcall_dump): Update.
1610 (call_site_find_chain_1): Update.
1611 (dwarf_expr_reg_to_entry_parameter): Update.
1612 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1613 * eval.c (evaluate_funcall): Update.
1614 (evaluate_subexp_standard): Update.
1615 (evaluate_subexp_for_sizeof): Update.
1616 * expprint.c (print_subexp_standard): Update.
1617 (dump_subexp_body_standard): Update.
1618 * frame.c (get_prev_frame_always_1): Update.
1619 * frv-tdep.c (frv_skip_main_prologue): Update.
1620 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1621 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1622 (gnuv3_get_typename_from_type_info): Update.
1623 (gnuv3_skip_trampoline): Update.
1624 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1625 * i386-tdep.c (i386_skip_main_prologue): Update.
1626 (i386_pe_skip_trampoline_code): Update.
1627 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1628 * infcall.c (get_function_name): Update.
1629 * linespec.c (minsym_found): Update.
1630 * linux-fork.c (info_checkpoints_command): Update.
1631 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1632 (m32c_m16c_pointer_to_address): Update.
1633 * maint.c (maintenance_translate_address): Update.
1634 * minsyms.c (add_minsym_to_hash_table): Update.
1635 (add_minsym_to_demangled_hash_table): Update.
1636 (lookup_minimal_symbol_mangled): Update.
1637 (lookup_minimal_symbol_demangled): Update.
1638 (lookup_minimal_symbol_linkage): Update.
1639 (lookup_minimal_symbol_text): Update.
1640 (lookup_minimal_symbol_by_pc_name): Update.
1641 (minimal_symbol_is_less_than): Update.
1642 (compact_minimal_symbols): Update.
1643 (build_minimal_symbol_hash_tables): Update.
1644 (find_solib_trampoline_target): Update.
1645 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1646 (mips_skip_pic_trampoline_code): Update.
1647 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1648 * objc-lang.c (info_selectors_command): Update.
1649 (info_classes_command): Update.
1650 (find_methods): Update.
1651 (find_imps): Update.
1652 * p-valprint.c (pascal_val_print): Update.
1653 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1654 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1655 * printcmd.c (build_address_symbolic): Update.
1656 (info_symbol_command): Update.
1657 * psymtab.c (psymbol_name_matches): Update.
1658 (match_partial_symbol): Update.
1659 (lookup_partial_symbol): Update.
1660 (print_partial_symbols): Update.
1661 (sort_pst_symbols): Update.
1662 (maintenance_check_psymtabs): Update.
1663 * python/py-framefilter.c (py_print_frame): Update.
1664 * python/python.c (gdbpy_rbreak): Update.
1665 * record-btrace.c (btrace_get_bfun_name): Update.
1666 (btrace_call_history): Update.
1667 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1668 (rs6000_skip_trampoline_code): Update.
1669 * sol-thread.c (info_cb): Update.
1670 * stabsread.c (scan_file_globals): Update.
1671 * stack.c (find_frame_funname): Update.
1672 (info_frame_command_core): Update.
1673 * symmisc.c (dump_msymbols): Update.
1674 * symtab.c (symbol_natural_name): Rename to..,
1675 (general_symbol_info::natural_name): ...this.
1676 (symbol_demangled_name): Rename to...
1677 (general_symbol_info::demangled_name): ...this.
1678 (symbol_search_name): Rename to...
1679 (general_symbol_info::search_name): ...this.
1680 (symbol_matches_search_name): Update.
1681 (find_pc_sect_line): Update.
1682 (skip_prologue_sal): Update.
1683 (search_symbols): Update.
1684 (print_msymbol_info): Update.
1685 (rbreak_command): Update.
1686 (completion_list_add_msymbol): Update.
1687 (completion_list_objc_symbol): Update.
1688 (get_msymbol_address): Update.
1689 * symtab.h (struct general_symbol_info): Add member functions
1690 natural_name (), linkage_name (), print_name (), demangled_name (),
1691 and search_name ().
1692 (SYMBOL_NATURAL_NAME): Update.
1693 (symbol_natural_name): Move to a member function on general_symbol_info.
1694 (SYMBOL_DEMANGLED_NAME): Update.
1695 (symbol_demangled_name): Move to a member function on
1696 general_symbol_info.
1697 (SYMBOL_SEARCH_NAME): Update.
1698 (symbol_search_name): Move to a member function on general_symbol_info.
1699 (MSYMBOL_NATURAL_NAME): Remove.
1700 (MSYMBOL_LINKAGE_NAME): Remove.
1701 (MSYMBOL_PRINT_NAME): Remove.
1702 (MSYMBOL_DEMANGLED_NAME): Remove.
1703 (MSYMBOL_SEARCH_NAME): Remove.
1704 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1705
1706 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1707
1708 * symtab.c (create_demangled_names_hash): Use per_bfd->
1709 minimal_symbol_count for computing the initial size, if greater
1710 than our default size.
1711
1712 2019-11-22 Tom de Vries <tdevries@suse.de>
1713
1714 * contrib/words.sh: Improve words extraction.
1715
1716 2019-11-22 Tom de Vries <tdevries@suse.de>
1717
1718 * contrib/words.sh: Combine sed invocations.
1719
1720 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1721
1722 * Makefile.in: Update.
1723 * demangle.c: Rename to...
1724 * gdb-demangle.c: ..this.
1725 (is_cplus_marker): Change return type to bool.
1726 (_initialize_demangler): Rename to...
1727 (_initialize_gdb_demangle): ...this.
1728 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1729 * symtab.h (demangle): Remove declaration; instead include
1730 gdb-demangle.h.
1731
1732 2019-11-21 Tom Tromey <tromey@adacore.com>
1733
1734 * gdbsupport/format.c (format_pieces): Parse %I64d.
1735 * unittests/format_pieces-selftests.c (test_windows_formats): New
1736 function.
1737 (run_tests): Call it.
1738
1739 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1740
1741 Byte reverse display of variables with DW_END_big, DW_END_little
1742 (DW_AT_endianity) dwarf attributes if different than the native
1743 byte order.
1744 * ada-lang.c (ada_value_binop):
1745 Use type_byte_order instead of gdbarch_byte_order.
1746 * ada-valprint.c (printstr):
1747 (ada_val_print_string):
1748 * ada-lang.c (value_pointer):
1749 (ada_value_binop):
1750 Use type_byte_order instead of gdbarch_byte_order.
1751 * c-lang.c (c_get_string):
1752 Use type_byte_order instead of gdbarch_byte_order.
1753 * c-valprint.c (c_val_print_array):
1754 Use type_byte_order instead of gdbarch_byte_order.
1755 * cp-valprint.c (cp_print_class_member):
1756 Use type_byte_order instead of gdbarch_byte_order.
1757 * dwarf2loc.c (rw_pieced_value):
1758 Use type_byte_order instead of gdbarch_byte_order.
1759 * dwarf2read.c (read_base_type): Handle DW_END_big,
1760 DW_END_little
1761 * f-lang.c (f_get_encoding):
1762 Use type_byte_order instead of gdbarch_byte_order.
1763 * findvar.c (default_read_var_value):
1764 Use type_byte_order instead of gdbarch_byte_order.
1765 * gdbtypes.c (check_types_equal):
1766 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1767 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1768 and TYPE_ENDIANITY_LITTLE if set.
1769 (type_byte_order): new function.
1770 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1771 (struct main_type) <flag_endianity_not_default>:
1772 New field.
1773 (type_byte_order): New function.
1774 * infcmd.c (default_print_one_register_info):
1775 Use type_byte_order instead of gdbarch_byte_order.
1776 * p-lang.c (pascal_printstr):
1777 Use type_byte_order instead of gdbarch_byte_order.
1778 * p-valprint.c (pascal_val_print):
1779 Use type_byte_order instead of gdbarch_byte_order.
1780 * printcmd.c (print_scalar_formatted):
1781 Use type_byte_order instead of gdbarch_byte_order.
1782 * solib-darwin.c (darwin_current_sos):
1783 Use type_byte_order instead of gdbarch_byte_order.
1784 * solib-svr4.c (solib_svr4_r_ldsomap):
1785 Use type_byte_order instead of gdbarch_byte_order.
1786 * stap-probe.c (stap_modify_semaphore):
1787 Use type_byte_order instead of gdbarch_byte_order.
1788 * target-float.c (target_float_same_format_p):
1789 Use type_byte_order instead of gdbarch_byte_order.
1790 * valarith.c (scalar_binop):
1791 (value_bit_index):
1792 Use type_byte_order instead of gdbarch_byte_order.
1793 * valops.c (value_cast):
1794 Use type_byte_order instead of gdbarch_byte_order.
1795 * valprint.c (generic_emit_char):
1796 (generic_printstr):
1797 (val_print_string):
1798 Use type_byte_order instead of gdbarch_byte_order.
1799 * value.c (unpack_long):
1800 (unpack_bits_as_long):
1801 (unpack_value_bitfield):
1802 (modify_field):
1803 (pack_long):
1804 (pack_unsigned_long):
1805 Use type_byte_order instead of gdbarch_byte_order.
1806 * findvar.c (unsigned_pointer_to_address):
1807 (signed_pointer_to_address):
1808 (unsigned_address_to_pointer):
1809 (address_to_signed_pointer):
1810 (default_read_var_value):
1811 (default_value_from_register):
1812 Use type_byte_order instead of gdbarch_byte_order.
1813 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1814 Use type_byte_order instead of gdbarch_byte_order.
1815 * riscv-tdep.c (riscv_print_one_register_info):
1816 Use type_byte_order instead of gdbarch_byte_order.
1817
1818 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1821 (current_ui_gdb_stdin_ptr): Likewise.
1822 (current_ui_gdb_stderr_ptr): Likewise.
1823 (current_ui_gdb_stdlog_ptr): Likewise.
1824 (current_ui_current_uiout_ptr): Likewise.
1825 (gen_ret_current_ui_field_ptr): Remove.
1826
1827 2019-11-21 Tom de Vries <tdevries@suse.de>
1828
1829 PR gdb/24956
1830 * cli/cli-script.c (execute_control_command): Only switch to
1831 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1832
1833 2019-11-19 Tom Tromey <tom@tromey.com>
1834
1835 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1836 Now static. Change type of "name".
1837 (tui_set_win_height_command): Don't copy "arg".
1838 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1839 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1840
1841 2019-11-19 Ali Tamur <tamur@google.com>
1842
1843 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1844 "if (attr != nullptr)".
1845 (dwarf2_find_base_address): Likewise.
1846 (dwarf2_build_include_psymtabs): Likewise.
1847 (read_cutu_die_from_dwo): Likewise.
1848 (read_func_scope): Likewise.
1849 (read_call_site_scope): Likewise.
1850 (dwarf2_get_pc_bounds): Likewise.
1851 (dwarf2_record_block_ranges): Likewise.
1852 (dwarf2_add_field): Likewise.
1853 (dwarf2_add_member_fn): Likewise.
1854 (read_structure_type): Likewise.
1855 (read_enumeration_type): Likewise.
1856 (read_array_type): Likewise.
1857 (read_array_order): Likewise.
1858 (read_set_type): Likewise.
1859 (read_common_block): Likewise.
1860 (read_tag_reference_type): Likewise.
1861 (read_tag_string_type): Likewise.
1862 (read_subroutine_type): Likewise.
1863 (read_base_type): Likewise.
1864 (read_subrange_type): Likewise.
1865 (new_symbol): Likewise.
1866 (prepare_one_comp_unit): Likewise.
1867
1868 2019-11-19 Tom Tromey <tromey@adacore.com>
1869
1870 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1871 result in error when DebugActiveProcess fails.
1872
1873 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1874 Pedro Alves <palves@redhat.com>
1875
1876 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1877 * target.c (target_stack::push): Call 'unpush' if there's a
1878 target on top of the stack.
1879
1880 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1881
1882 * python/py-block.c (blpy_dealloc): Call tp_free.
1883 (blpy_block_syms_dealloc): Likewise.
1884 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1885 * python/py-inferior.c (infpy_dealloc): Likewise.
1886 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1887 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1888 * python/py-symbol.c (sympy_dealloc): Likewise.
1889 * python/py-symtab.c (stpy_dealloc): Likewise.
1890 * python/py-type.c (typy_iterator_dealloc): Likewise.
1891
1892 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1893
1894 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1895 constructor instead of using a class initializer.
1896
1897 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1898
1899 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1900 * configure: Regenerate.
1901 * configure.ac: Don't source common.host.
1902 * gdbsupport/common.host: Remove.
1903 * gdbsupport/mingw-strerror.c: Remove.
1904 * gdbsupport/posix-strerror.c: Rename to...
1905 * gdbsupport/safe-strerror.c: ...this.
1906
1907 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1908
1909 * maint.c (scoped_command_stats::print_time): Use localtime_r
1910 instead of localtime (provided through gnulib if necessary).
1911 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1912 of ctime.
1913
1914 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1915
1916 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1917 avoid compile errors.
1918
1919 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1920
1921 * config.in: Regenerate.
1922 * configure: Regenerate.
1923 * gdbsupport/common.m4: No longer check for strerror_r.
1924 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1925 POSIX version of strerror_r, now that gnulib provides it if
1926 necessary.
1927
1928 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1929
1930 * README (`configure' options): Update.
1931
1932 2019-11-14 Tom Tromey <tromey@adacore.com>
1933
1934 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1935 expected type for the RHS if the LHS is a convenience variable.
1936
1937 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1938
1939 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1940 Provide explicit default and copy constructor.
1941
1942 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1943
1944 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1945 only call Py_INCREF (newbp) in the bppy_pending_object case.
1946
1947 2019-11-13 Tom Tromey <tromey@adacore.com>
1948
1949 PR build/25182:
1950 * psympriv.h (partial_symbol): Remove static assert.
1951 * symtab.h (general_symbol_info, symbol): Remove static assert.
1952
1953 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * gdbsupport/format.c (format_pieces::format_pieces): Support
1956 printf 'z' size modifier.
1957 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1958 * printcmd.c (ui_printf): Handle size_t_arg.
1959 * ui-out.c (ui_out::vmessage): Likewise.
1960 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1961 function.
1962 (run_tests): Call test_format_int_sizes.
1963
1964 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1965
1966 * ada-exp.y (write_ambiguous_var): Update.
1967 * buildsym.c (add_symbol_to_list): Update.
1968 * dwarf2read.c (read_variable): Update.
1969 (new_symbol): Update.
1970 * jit.c (finalize_symtab): Update.
1971 * language.c (language_alloc_type_symbol): Update.
1972 * symtab.c (fixup_symbol_section): Update.
1973 (initialize_objfile_symbol_1): Move code to...
1974 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1975 (allocate_symbol): Update.
1976 (allocate_template_symbol): Update.
1977 (get_symbol_address): Update.
1978 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1979 of having as a field, and add a constructor.
1980 (SYMBOL_VALUE): Update.
1981 (SYMBOL_VALUE_ADDRESS): Update.
1982 (SET_SYMBOL_VALUE_ADDRESS): Update.
1983 (SYMBOL_VALUE_BYTES): Update.
1984 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1985 (SYMBOL_BLOCK_VALUE): Update.
1986 (SYMBOL_VALUE_CHAIN): Update.
1987 (SYMBOL_LANGUAGE): Update.
1988 (SYMBOL_SECTION): Update.
1989 (SYMBOL_OBJ_SECTION): Update.
1990 (SYMBOL_SET_LANGUAGE): Update.
1991 (SYMBOL_SET_LINKAGE_NAME): Update.
1992 (SYMBOL_SET_NAMES): Update.
1993 (SYMBOL_NATURAL_NAME): Update.
1994 (SYMBOL_LINKAGE_NAME): Update.
1995 (SYMBOL_DEMANGLED_NAME): Update.
1996 (SYMBOL_SEARCH_NAME): Update.
1997 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1998 (struct symbol): Update.
1999 (struct template_symbol): Update.
2000 (struct rust_vtable_symbol): Update.
2001 * xcoffread.c (SYMBOL_DUP): Update.
2002
2003 2019-11-12 Tom Tromey <tom@tromey.com>
2004
2005 * tui/tui-layout.c (show_layout): Set current_layout.
2006 (show_source_disasm_command, show_data)
2007 (show_source_or_disasm_and_command): Don't set current_layout.
2008
2009 2019-11-12 Tom Tromey <tom@tromey.com>
2010
2011 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2012
2013 2019-11-12 Tom Tromey <tom@tromey.com>
2014
2015 * tui/tui-win.c (resize_message): New global.
2016 (show_tui_resize_message): New function.
2017 (tui_async_resize_screen): Print message if requested.
2018 (_initialize_tui_win): Add tui-resize-message setting.
2019 * NEWS: Add entry for new commands.
2020
2021 2019-11-11 Tom Tromey <tom@tromey.com>
2022
2023 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2024 functions.
2025
2026 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2027
2028 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2029
2030 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2033 function.
2034 * python/python-internal.h (gdbpy_lookup_static_symbols):
2035 Declare new function.
2036 * python/python.c (python_GdbMethods): Add
2037 gdb.lookup_static_symbols method.
2038 * NEWS: Mention gdb.lookup_static_symbols.
2039
2040 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2041
2042 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2043 static block of current object file first. Also fix typo in
2044 header comment.
2045
2046 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2047
2048 * stack.c (set_last_displayed_sal): Delete.
2049 (last_displayed_sal_valid): Delete.
2050 (last_displayed_pspace): Delete.
2051 (last_displayed_addr): Delete.
2052 (last_displayed_symtab): Delete.
2053 (last_displayed_line): Delete.
2054 (class last_displayed_symtab_info_type): New.
2055 (last_displayed_symtab_info): New static global variable.
2056 (print_frame_info): Call methods on last_displayed_symtab_info.
2057 (clear_last_displayed_sal): Update header comment, and make use of
2058 last_displayed_symtab_info.
2059 (last_displayed_sal_is_valid): Likewise.
2060 (get_last_displayed_pspace): Likewise.
2061 (get_last_displayed_addr): Likewise.
2062 (get_last_displayed_symtab): Likewise.
2063 (get_last_displayed_line): Likewise.
2064 (get_last_displayed_sal): Likewise.
2065 * stack.h (clear_last_displayed_sal): Update header comment.
2066 (last_displayed_sal_is_valid): Likewise.
2067 (get_last_displayed_pspace): Likewise.
2068 (get_last_displayed_addr): Likewise.
2069 (get_last_displayed_symtab): Likewise.
2070 (get_last_displayed_line): Likewise.
2071 (get_last_displayed_sal): Likewise.
2072
2073 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2074
2075 * stack.c (frame_show_address): Convert return type to bool.
2076 * stack.h (frame_show_address): Likewise, and update header
2077 comment.
2078
2079 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2080
2081 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2082 * unittests/vec-utils-selftests.c: New file.
2083 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2084
2085 2019-11-10 Tom Tromey <tom@tromey.com>
2086
2087 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2088 (tui_highlight_win): Likewise.
2089 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2090 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2091 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2092 Don't set can_highlight.
2093
2094 2019-11-10 Tom Tromey <tom@tromey.com>
2095
2096 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2097 Remove unused declaration.
2098
2099 2019-11-08 Tom Tromey <tromey@adacore.com>
2100
2101 * top.c (read_command_file): Update.
2102 (command_line_input): Make return type const.
2103 * python/py-gdb-readline.c: Update.
2104 * linespec.c (decode_line_2): Update.
2105 * defs.h (command_line_input): Make return type const.
2106 * cli/cli-script.c (read_next_line): Make return type const.
2107 * ada-lang.c (get_selections): Update.
2108
2109 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2110
2111 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2112 * mi/mi-main.c (output_cores): Likewise.
2113 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2114 (linux_xfer_osdata_modules): Likewise.
2115 * remote.c (register_remote_support_xml): Likewise.
2116 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2117 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2118
2119 2019-11-06 Tom Tromey <tom@tromey.com>
2120
2121 * tui/tui-interp.c: Don't include readline.h.
2122 * tui/tui-hooks.c: Don't include readline.h.
2123 * symmisc.c: Include tilde.h, not readline.h.
2124 * symfile.c: Include tilde.h, not readline.h.
2125 * source.c: Include tilde.h, not readline.h.
2126 * solib.c: Include tilde.h, not readline.h.
2127 * psymtab.c: Include tilde.h, not readline.h.
2128 * exec.c: Include tilde.h, not readline.h.
2129 * corelow.c: Include tilde.h, not readline.h.
2130 * cli/cli-dump.c: Include tilde.h, not readline.h.
2131 * cli/cli-cmds.c: Don't include readline.h.
2132
2133 2019-11-05 Tom Tromey <tom@tromey.com>
2134
2135 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2136 (tui_disassemble): Set addr_size.
2137 (tui_disasm_window::set_contents): Use addr_size.
2138
2139 2019-11-05 Tom Tromey <tom@tromey.com>
2140
2141 * rust-lang.c (rust_language_defn): Update.
2142 * python/py-value.c (valpy_string): Call c_get_string.
2143 * p-lang.c (pascal_language_defn): Update.
2144 * opencl-lang.c (opencl_language_defn): Update.
2145 * objc-lang.c (objc_language_defn): Update.
2146 * m2-lang.c (m2_language_defn): Update.
2147 * language.c (unknown_language_defn, auto_language_defn): Update.
2148 (default_get_string): Remove.
2149 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2150 * go-lang.c (go_language_defn): Update.
2151 * f-lang.c (f_language_defn): Update.
2152 * d-lang.c (d_language_defn): Update.
2153 * c-lang.c (c_language_defn, cplus_language_defn)
2154 (asm_language_defn, minimal_language_defn): Update.
2155 * ada-lang.c (ada_language_defn): Update.
2156 * language.h (struct language_defn) <la_get_string>: Remove.
2157 (LA_GET_STRING): Remove.
2158 (default_get_string): Don't declare.
2159
2160 2019-11-05 Tom Tromey <tom@tromey.com>
2161
2162 * tui/tui-source.h (struct tui_source_window): Inline
2163 constructor. Remove destructor.
2164 <style_changed, m_observable>: Move to superclass.
2165 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2166 (struct tui_source_window_base): Move private members to end.
2167 <style_changed, m_observable>: Move from tui_source_window.
2168 * tui/tui-winsource.c (tui_copy_source_line): Move from
2169 tui-source.c. Rename from copy_source_line. Add special handling
2170 for negative line number.
2171 (tui_source_window_base::style_changed): Move from
2172 tui_source_window.
2173 (tui_source_window_base): Register observer.
2174 (~tui_source_window_base): New.
2175 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2176 rename.
2177 (tui_source_window::set_contents): Use tui_copy_source_line.
2178 (tui_source_window::tui_source_window): Move to tui-source.h.
2179 (tui_source_window::~tui_source_window): Remove.
2180 (tui_source_window::style_changed): Move to superclass.
2181 * tui/tui-disasm.c (tui_disassemble): Create string file with
2182 styling, when possible. Add "addr_size" parameter.
2183 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2184 Don't compute maximum size.
2185 (len_without_escapes): New function
2186
2187 2019-11-05 Tom Tromey <tom@tromey.com>
2188
2189 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2190 std::string.
2191 * tui/tui-winsource.c (tui_show_source_line): Update.
2192 * tui/tui-source.c (tui_source_window::set_contents): Update.
2193 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2194
2195 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2196
2197 * symtab.h (gdb_static_assert): Put && operator at the beginning
2198 of the line instead of the end.
2199
2200 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2201
2202 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2203 and sizeof (symbol).
2204 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2205
2206 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2207
2208 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2209 * configure.host: Mark *-*-solaris2.10* obsolete.
2210 * configure.tgt: Mark Solaris < 11 obsolete.
2211 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2212 Update target triplet.
2213
2214 2019-11-01 Tom Tromey <tromey@adacore.com>
2215
2216 * utils.c (print_sys_errmsg): Simplify.
2217
2218 2019-11-01 Tom Tromey <tromey@adacore.com>
2219
2220 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2221
2222 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2223
2224 * configure: Regenerate.
2225 * configure.ac: Remove check for strerror_r.
2226 * gdbsupport/common.m4: Check for strerror_r.
2227
2228 2019-11-01 Luis Machado <luis.machado@linaro.org>
2229
2230 PR gdb/25124
2231
2232 * arm-tdep.c (arm_per_objfile): Rename to ...
2233 (arm_per_bfd): ... this.
2234 (arm_objfile_data_key): Rename to ...
2235 (arm_bfd_data_key): ... this.
2236 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2237 data.
2238 (arm_record_special_symbol): Likewise.
2239
2240 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2243 end.
2244 * c-typeprint.c (c_print_typedef): Likewise.
2245 * f-typeprint.c (f_print_typedef): Likewise.
2246 * m2-typeprint.c (m2_print_typedef): Likewise.
2247 * p-typeprint.c (pascal_print_typedef): Likewise.
2248 * rust-lang.c (rust_print_typedef): Likewise.
2249 * symtab.c (print_symbol_info): Print a newline after calling
2250 typedef_print.
2251
2252 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * symtab.c (info_module_cmdlist): New variable.
2255 (info_module_command): New function.
2256 (search_module_symbols): New function.
2257 (info_module_subcommand): New function.
2258 (struct info_modules_var_func_options): New struct.
2259 (info_modules_var_func_options_defs): New variable.
2260 (make_info_modules_var_func_options_def_group): New function.
2261 (info_module_functions_command): New function.
2262 (info_module_variables_command): New function.
2263 (info_module_var_func_command_completer): New function.
2264 (_initialize_symtab): Register new 'info module functions' and
2265 'info module variables' commands.
2266 * symtab.h (typedef symbol_search_in_module): New typedef.
2267 (search_module_symbols): Declare new function.
2268 * NEWS: Mention new commands.
2269
2270 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2273 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2274 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2275 MODULES_DOMAIN.
2276 (scan_partial_symbols): Only create partial module symbols for non
2277 declarations.
2278 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2279 and MODULES_DOMAIN.
2280 * symtab.c (search_domain_name): Likewise.
2281 (search_symbols): Likewise.
2282 (print_symbol_info): Likewise.
2283 (symtab_symbol_info): Likewise.
2284 (info_modules_command): New function.
2285 (_initialize_symtab): Register 'info modules' command.
2286 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2287 * NEWS: Mention new 'info modules' command.
2288
2289 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2290
2291 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2292 and $_gdb_maint_setting_str.
2293
2294 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2295
2296 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2297 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2298 (str_value_from_setting, gdb_setting_str_internal_fn)
2299 (gdb_maint_setting_str_internal_fn): New functions.
2300 (_initialize_cli_cmds): Define the new convenience functions.
2301 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2302 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2303
2304 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2305
2306 * agent.c (set_can_use_agent): When the setting is turned on,
2307 look up agent symbols if we don't have them yet.
2308 (agent_new_objfile): Don't look up agent symbols when the agent
2309 setting is off.
2310
2311 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2312
2313 * config.in: Regenerate.
2314
2315 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2316
2317 * configure: Regenerate.
2318 * configure.ac: Check for strerror_r.
2319 * gdbsupport/common-utils.h (safe_strerror): Change return value
2320 to const char * and document that this function is now threadsafe.
2321 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2322 thread_local and call strerror_r, if available.
2323 * utils.c (perror_string): Update.
2324 (print_sys_errmsg): Update.
2325
2326 2019-10-31 Luis Machado <luis.machado@linaro.org>
2327
2328 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2329 objfile_key.
2330 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2331 objfile to fetch per-bfd data.
2332 (arm_find_exidx_entry): Likewise.
2333
2334 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2335
2336 * gdbsupport/agent.c (debug_agent): Change type to bool.
2337 (use_agent): Likewise.
2338 (all_agent_symbols_look_up): Likewise.
2339 (agent_loaded_p): Change return value to bool.
2340 (agent_look_up_symbols): Update.
2341 (agent_capability_check): Change return value to bool.
2342 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2343 (debug_agent): Change type to bool.
2344 (use_agent): Likewise.
2345 (agent_capability_check): Change return value to bool.
2346
2347 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2348
2349 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2350 (build_minimal_symbol_hash_tables): Code to clear the table moved
2351 to clear_minimal_symbol_hash_tables.
2352 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2353 when needed.
2354
2355 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * infcmd.c: Remove includes.
2358 * infrun.c: Remove includes.
2359
2360 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2361
2362 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2363 (grow_vect): Remove declaration.
2364 (ada_type_of_array): Remove declaration.
2365 (ada_update_initial_language): Remove declaration.
2366 (ada_fold_name): Remove declaration.
2367 (ada_fill_in_ada_prototype): Remove declaration.
2368 (user_select_syms): Remove declaration.
2369 (get_selections): Remove declaration.
2370 (ada_tag_type): Remove declaration.
2371 (ada_value_tag): Remove declaration.
2372 (ada_is_others_clause): Remove declaration.
2373 (ada_in_variant): Remove declaration.
2374 (ada_value_struct_elt): Remove declaration.
2375 (ada_attribute_name): Remove declaration.
2376 (ada_system_address_type): Remove declaration.
2377 * ada-lang.c (ada_watch_location_expression): Make static.
2378 (GROW_VECT): Move here from ada-lang.h.
2379 (grow_vect): Make static.
2380 (ada_update_initial_language): Make static.
2381 (ada_fold_name): Make static.
2382 (ada_type_of_array): Make static.
2383 (encoded_ordered_before): Move up.
2384 (sort_choices): Move up.
2385 (print_signatures): Move up.
2386 (ada_print_symbol_signature): Move up.
2387 (get_selections): Move up and make static.
2388 (user_select_syms): Move up and make static.
2389 (ada_value_struct_elt): Move up and make static.
2390 (ada_tag_type): Make static.
2391 (ada_value_tag): Make static.
2392 (ada_is_others_clause): Make static.
2393 (ada_in_variant): Make static.
2394 (ada_attribute_name): Make static.
2395
2396 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2397
2398 * ada-lang.c: Remove includes.
2399 * ada-typeprint.c: Remove includes.
2400 * ada-valprint.c: Remove includes.
2401
2402 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2403
2404 * addrmap.c: Add static assertions of type size, moved from
2405 _initialize_addrmap.
2406 (_initialize_addrmap): Remove.
2407
2408 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2409
2410 * coffread.c (record_minimal_symbol): Update.
2411 (process_coff_symbol): Update.
2412 * dbxread.c (read_dbx_symtab): Update.
2413 * dwarf2read.c (add_partial_symbol): Update.
2414 (fixup_go_packaging): Update.
2415 (load_partial_dies): Update.
2416 (new_symbol): Update.
2417 * elfread.c (record_minimal_symbol): Change signature to use
2418 gdb::string_view instead of name+len.
2419 (elf_symtab_read): Update.
2420 (elf_rel_plt_read): Update.
2421 * mdebugread.c (parse_partial_symbols): Update.
2422 (handle_psymbol_enumerators): Update.
2423 (new_symbol): Update.
2424 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2425 to use gdb::string_view instead of name+len.
2426 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2427 * psympriv.h (add_psymbol_to_list): Likewise.
2428 * psymtab.c (add_psymbol_to_bcache): Likewise.
2429 (add_psymbol_to_list): Likewise.
2430 * stabsread.c (define_symbol): Update.
2431 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2432 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2433 (symbol_set_names): Likewise.
2434 * xcoffread.c (scan_xcoff_symtab): Update.
2435
2436 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2437
2438 * symtab.h (symbol_set_names): Document that copy_name must be
2439 set to true for non-nullterminated strings.
2440 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2441 linkage_name if the entry was not found and we need to demangle.
2442
2443 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2444
2445 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2446 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2447 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2448 * gdbsupport/gdb_binary_search.h: New file.
2449
2450 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2451
2452 * NEWS: Mention new --with-system-gdbinit-dir option.
2453 * config.in: Regenerate.
2454 * configure: Regenerate.
2455 * configure.ac: Add new option --with-system-gdbinit-dir.
2456 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2457 for a ".gdb" suffix.
2458 * main.c (get_init_files): Change system_gdbinit argument to
2459 a vector and return the files in SYSTEM_GDBINIT_DIR in
2460 addition to SYSTEM_GDBINIT.
2461 (captured_main_1): Update.
2462 (print_gdb_help): Update.
2463 * top.c (print_gdb_configuration): Also print the value of
2464 SYSTEM_GDBINIT_DIR.
2465
2466 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2467
2468 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2469 that takes gdb::string_view arguments.
2470
2471 2019-10-26 Tom de Vries <tdevries@suse.de>
2472
2473 * aarch64-linux-tdep.c: Fix typos in comments.
2474 * aarch64-tdep.c: Same.
2475 * ada-lang.c: Same.
2476 * amd64-nat.c: Same.
2477 * arc-tdep.c: Same.
2478 * arch/aarch64-insn.c: Same.
2479 * block.c: Same.
2480 * breakpoint.h: Same.
2481 * btrace.h: Same.
2482 * c-varobj.c: Same.
2483 * cli/cli-decode.c: Same.
2484 * cli/cli-script.c: Same.
2485 * cli/cli-utils.h: Same.
2486 * coff-pe-read.c: Same.
2487 * coffread.c: Same.
2488 * compile/compile-cplus-symbols.c: Same.
2489 * compile/compile-object-run.c: Same.
2490 * completer.c: Same.
2491 * corelow.c: Same.
2492 * cp-support.c: Same.
2493 * demangle.c: Same.
2494 * dwarf-index-write.c: Same.
2495 * dwarf2-frame.c: Same.
2496 * dwarf2-frame.h: Same.
2497 * eval.c: Same.
2498 * frame-base.h: Same.
2499 * frame.h: Same.
2500 * gdbcmd.h: Same.
2501 * gdbtypes.h: Same.
2502 * gnu-nat.c: Same.
2503 * guile/scm-objfile.c: Same.
2504 * i386-tdep.c: Same.
2505 * i386-tdep.h: Same.
2506 * infcall.c: Same.
2507 * infcall.h: Same.
2508 * linux-nat.c: Same.
2509 * m68k-tdep.c: Same.
2510 * macroexp.c: Same.
2511 * memattr.c: Same.
2512 * mi/mi-cmd-disas.c: Same.
2513 * mi/mi-getopt.h: Same.
2514 * mi/mi-main.c: Same.
2515 * minsyms.c: Same.
2516 * nat/aarch64-sve-linux-sigcontext.h: Same.
2517 * objfiles.h: Same.
2518 * ppc-linux-nat.c: Same.
2519 * ppc-linux-tdep.c: Same.
2520 * ppc-tdep.h: Same.
2521 * progspace.h: Same.
2522 * prologue-value.h: Same.
2523 * python/py-evtregistry.c: Same.
2524 * python/py-instruction.h: Same.
2525 * record-btrace.c: Same.
2526 * record-full.c: Same.
2527 * remote.c: Same.
2528 * rs6000-tdep.c: Same.
2529 * ser-tcp.c: Same.
2530 * sol-thread.c: Same.
2531 * sparc-sol2-tdep.c: Same.
2532 * sparc64-tdep.c: Same.
2533 * stabsread.c: Same.
2534 * symfile.c: Same.
2535 * symtab.h: Same.
2536 * target.c: Same.
2537 * tracepoint.c: Same.
2538 * tui/tui-data.h: Same.
2539 * tui/tui-io.c: Same.
2540 * tui/tui-win.c: Same.
2541 * tui/tui.c: Same.
2542 * unittests/rsp-low-selftests.c: Same.
2543 * user-regs.h: Same.
2544 * utils.c: Same.
2545 * utils.h: Same.
2546 * valarith.c: Same.
2547 * valops.c: Same.
2548 * valprint.c: Same.
2549 * valprint.h: Same.
2550 * value.c: Same.
2551 * value.h: Same.
2552 * varobj.c: Same.
2553 * x86-nat.h: Same.
2554 * xtensa-tdep.c: Same.
2555
2556 2019-10-25 Ali Tamur <tamur@google.com>
2557
2558 * charset.c (find_charset_names): Reflect API change.
2559
2560 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2561
2562 * symtab.c (struct demangled_name_entry): Change demangled name
2563 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2564 part of the struct anymore.
2565 (symbol_set_names): No longer obstack allocate + copy the demangled
2566 name, just store the allocated name from bfd.
2567
2568 2019-10-25 Tom Tromey <tromey@adacore.com>
2569
2570 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2571 (bsearch_cie_cmp, add_cie): Remove.
2572 (find_cie): Reimplement.
2573 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2574 (dwarf2_build_frame_info): Update.
2575
2576 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2577
2578 PR gdb/25126
2579 * symfile.c (reread_symbols): Call forget_cached_source_info to
2580 clear the stale source cache.
2581
2582 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2583
2584 * configure: Regenerate.
2585 * configure.ac: Remove code that sets python_has_threads.
2586
2587 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2588
2589 * config.in: Regenerate.
2590 * configure: Regenerate.
2591 * configure.ac: Remove the code that uses sed to get the python
2592 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2593
2594 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2595
2596 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2597 error paths.
2598
2599 2019-10-23 Tom Tromey <tom@tromey.com>
2600
2601 * arc-tdep.c: Remove ".." from include.
2602 * frv-tdep.c: Remove ".." from include.
2603 * lm32-tdep.c: Remove ".." from include.
2604 * microblaze-tdep.c: Remove ".." from include.
2605 * or1k-tdep.h: Remove ".." from include.
2606 * s12z-tdep.c: Remove ".." from include.
2607 * Makefile.in (OPCODES_CFLAGS): Add comment.
2608 (TOP_CFLAGS): New variable.
2609 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2610
2611 2019-10-23 Tom Tromey <tom@tromey.com>
2612
2613 * Makefile.in (READLINE_DIR): Update.
2614
2615 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2616
2617 * infcall.c (call_function_by_hand_dummy): Fix the function
2618 comment. And extract out a code section into...
2619 (reserve_stack_space): ...this new function.
2620
2621 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2622
2623 * infcall.c (value_arg_coerce): Remove an unused parameter.
2624 (call_function_by_hand_dummy): Update the call to
2625 'value_arg_coerce'.
2626
2627 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2628
2629 * infcall.c (call_function_by_hand_dummy): Refactor.
2630
2631 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2632
2633 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2634
2635 2019-10-23 Tom Tromey <tom@tromey.com>
2636
2637 * configure: Rebuild.
2638 * configure.ac: Don't check for sigprocmask.
2639 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2640
2641 2019-10-23 Tom Tromey <tom@tromey.com>
2642
2643 * configure: Rebuild.
2644 * acinclude.m4: Use m4_include, not sinclude.
2645
2646 2019-10-23 Tom de Vries <tdevries@suse.de>
2647
2648 PR breakpoints/24687
2649 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2650
2651 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2652
2653 * symtab.c (struct demangled_name_entry) <language>: Change from
2654 bitfield to regular variable.
2655
2656 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2657
2658 * symtab.c (struct demangled_name_entry): Add a constructor.
2659 (free_demangled_name_entry): New function to call the destructor
2660 for demangled_name_entry.
2661 (create_demangled_names_hash): Pass free_demangled_name_entry to
2662 htab_create_alloc.
2663 (symbol_set_names): Call placement new for demangled_name_entry.
2664 * utils.c: No longer include xxhash.h here, now that fast_hash
2665 is inlined in the header.
2666 * utils.h: Instead, include it here.
2667
2668 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2669
2670 * Makefile.in: Link with libxxhash.
2671 * config.in: Regenerate.
2672 * configure: Regenerate.
2673 * configure.ac: Search for libxxhash.
2674 * utils.c (fast_hash): Use xxhash if present.
2675
2676 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2677
2678 * utils.h (fast_hash): New function.
2679 * symtab.c (hash_demangled_name_entry): Call new function
2680 fast_hash.
2681
2682 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2683
2684 * symtab.c (struct demangled_name_entry): Change type of mangled
2685 to gdb::string_view. Also adds a constructor that takes the
2686 mangled name.
2687 (hash_demangled_name_entry): Update.
2688 (eq_demangled_name_entry): Update.
2689 (free_demangled_name_entry): New function to call the destructor
2690 now that this is not a POD anymore.
2691 (create_demangled_names_hash): Pass free_demangled_name_entry to
2692 htab_create_alloc.
2693 (symbol_set_names): Update.
2694
2695 2019-10-21 Ali Tamur <tamu@google.com>
2696
2697 * dwarf2read.c (dir_index): Change type.
2698 (file_name_index): Likewise.
2699 (line_header::include_dir_at): Change comment and implementation on
2700 whether it is DWARF 5.
2701 (line_header::is_valid_file_index): New function.
2702 (line_header::file_name_at): Change comment and implementation on
2703 whether it is DWARF 5.
2704 (line_header::file_names): Change to private field renamed as
2705 m_file_names and introduce a new accessor method.
2706 (line_header::file_names_size): New method.
2707 (line_header::include_dirs): Change to private field and rename as
2708 m_include_dirs.
2709 (dw2_get_file_names_reader): Define local var at a smaller scope and
2710 reflect API change.
2711 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2712 (process_structure_scope): Likewise.
2713 (line_header::add_include_dir): Change message and reflect renaming.
2714 (line_header::add_file_name): Likewise.
2715 (read_formatted_entries): Handle DW_FORM_data16.
2716 (dwarf_decode_line_header): Fix line header length calculation.
2717 (psymtab_include_file_name): Change comment and API.
2718 (lnp_state_machine::m_file): Update comment and reflect type change.
2719 (lnp_state_machine::record_line): Reflect type change.
2720 (dwarf_decode_lines): Reflect API change.
2721 (file_file_name): Likewise.
2722 (file_full_name): Likewise.
2723
2724 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2725
2726 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2727
2728 2019-10-21 Tom Tromey <tom@tromey.com>
2729
2730 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2731
2732 2019-10-21 Tom Tromey <tom@tromey.com>
2733
2734 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2735 NM_H. Use AC_CONFIG_LINKS.
2736 * configure: Rebuild.
2737 * Makefile.in (NM_H): New variable.
2738 (generated_files): Add NM_H. Remove gcore.
2739 (nm.h, stamp-nmh): New targets.
2740
2741 2019-10-20 Tom Tromey <tom@tromey.com>
2742
2743 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2744 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2745 obsolete comment.
2746 (put_objfile_before): Now static.
2747
2748 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2749
2750 * gdbsupport/common-utils.h (startswith): Change return type to
2751 bool.
2752
2753 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2754
2755 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2756 * breakpoint.c (bp_locations_compare): Rename to...
2757 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2758 (update_global_location_list): Use std::sort instead of qsort.
2759 * buildsym.c (compare_line_numbers): Rename to...
2760 (lte_is_less_than): ...this, and change to std::sort semantics.
2761 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2762 instead of qsort.
2763 * disasm.c (compare_lines): Rename to...
2764 (line_is_less_than): ...this, and change to std::sort semantics.
2765 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2766 of qsort.
2767 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2768 (fde_is_less_than): ...this, and change to std::sort semantics.
2769 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2770 * mdebugread.c (compare_blocks):
2771 (block_is_less_than): ...this, and change to std::sort semantics.
2772 (sort_blocks): Call std::sort instead of qsort.
2773 * objfiles.c (qsort_cmp): Rename to...
2774 (sort_cmp): ...this, and change to std::sort semantics.
2775 (update_section_map): Call std::sort instead of qsort.
2776 * remote.c (compare_pnums): Remove.
2777 (map_regcache_remote_table): Call std::sort instead of qsort.
2778 * utils.c (compare_positive_ints): Remove.
2779 * utils.h (compare_positive_ints): Remove.
2780 * xcoffread.c (compare_lte): Remove.
2781 (arrange_linetable): Call std::sort instead of qsort.
2782
2783 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2784
2785 * symfile.c (init_entry_point_info): Fix typo.
2786 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2787
2788 2019-10-18 Tom de Vries <tdevries@suse.de>
2789
2790 * aarch64-tdep.c: Fix typos in comments.
2791 * ada-lang.c: Same.
2792 * ada-tasks.c: Same.
2793 * alpha-tdep.c: Same.
2794 * alpha-tdep.h: Same.
2795 * amd64-nat.c: Same.
2796 * amd64-windows-tdep.c: Same.
2797 * arc-tdep.c: Same.
2798 * arc-tdep.h: Same.
2799 * arch-utils.c: Same.
2800 * arm-nbsd-tdep.c: Same.
2801 * arm-tdep.c: Same.
2802 * ax-gdb.c: Same.
2803 * blockframe.c: Same.
2804 * btrace.c: Same.
2805 * c-varobj.c: Same.
2806 * coff-pe-read.c: Same.
2807 * coffread.c: Same.
2808 * cris-tdep.c: Same.
2809 * darwin-nat.c: Same.
2810 * dbxread.c: Same.
2811 * dcache.c: Same.
2812 * disasm.c: Same.
2813 * dtrace-probe.c: Same.
2814 * dwarf-index-write.c: Same.
2815 * dwarf2-frame-tailcall.c: Same.
2816 * dwarf2-frame.c: Same.
2817 * dwarf2read.c: Same.
2818 * eval.c: Same.
2819 * exceptions.c: Same.
2820 * fbsd-tdep.c: Same.
2821 * findvar.c: Same.
2822 * frame.c: Same.
2823 * frv-tdep.c: Same.
2824 * gnu-v3-abi.c: Same.
2825 * go32-nat.c: Same.
2826 * h8300-tdep.c: Same.
2827 * hppa-tdep.c: Same.
2828 * i386-linux-tdep.c: Same.
2829 * i386-tdep.c: Same.
2830 * ia64-libunwind-tdep.c: Same.
2831 * ia64-tdep.c: Same.
2832 * infcmd.c: Same.
2833 * infrun.c: Same.
2834 * linespec.c: Same.
2835 * linux-nat.c: Same.
2836 * linux-thread-db.c: Same.
2837 * machoread.c: Same.
2838 * mdebugread.c: Same.
2839 * mep-tdep.c: Same.
2840 * mn10300-tdep.c: Same.
2841 * namespace.c: Same.
2842 * objfiles.c: Same.
2843 * opencl-lang.c: Same.
2844 * or1k-tdep.c: Same.
2845 * osabi.c: Same.
2846 * ppc-linux-nat.c: Same.
2847 * ppc-linux-tdep.c: Same.
2848 * ppc-sysv-tdep.c: Same.
2849 * printcmd.c: Same.
2850 * procfs.c: Same.
2851 * record-btrace.c: Same.
2852 * record-full.c: Same.
2853 * remote-fileio.c: Same.
2854 * remote.c: Same.
2855 * rs6000-tdep.c: Same.
2856 * s12z-tdep.c: Same.
2857 * score-tdep.c: Same.
2858 * ser-base.c: Same.
2859 * ser-go32.c: Same.
2860 * skip.c: Same.
2861 * sol-thread.c: Same.
2862 * solib-svr4.c: Same.
2863 * solib.c: Same.
2864 * source.c: Same.
2865 * sparc-nat.c: Same.
2866 * sparc-sol2-tdep.c: Same.
2867 * sparc-tdep.c: Same.
2868 * sparc64-tdep.c: Same.
2869 * stabsread.c: Same.
2870 * stack.c: Same.
2871 * symfile.c: Same.
2872 * symtab.c: Same.
2873 * target-descriptions.c: Same.
2874 * target-float.c: Same.
2875 * thread.c: Same.
2876 * utils.c: Same.
2877 * valops.c: Same.
2878 * valprint.c: Same.
2879 * value.c: Same.
2880 * varobj.c: Same.
2881 * windows-nat.c: Same.
2882 * xcoffread.c: Same.
2883 * xstormy16-tdep.c: Same.
2884 * xtensa-tdep.c: Same.
2885
2886 2019-10-17 Tom Tromey <tromey@adacore.com>
2887
2888 * configure: Rebuild.
2889 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2890 in AC_CONFIG_FILES invocation.
2891 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2892 new-style config.status invocation.
2893
2894 2019-10-17 Tom de Vries <tdevries@suse.de>
2895
2896 * arm-nbsd-nat.c: Fix typos in comments.
2897 * arm-tdep.c: Same.
2898 * darwin-nat-info.c: Same.
2899 * dwarf2read.c: Same.
2900 * elfread.c: Same.
2901 * event-top.c: Same.
2902 * findvar.c: Same.
2903 * gdbtypes.c: Same.
2904 * hppa-tdep.c: Same.
2905 * i386-tdep.c: Same.
2906 * jit.c: Same.
2907 * main.c: Same.
2908 * mdebugread.c: Same.
2909 * moxie-tdep.c: Same.
2910 * nto-procfs.c: Same.
2911 * osabi.c: Same.
2912 * ppc-linux-tdep.c: Same.
2913 * remote.c: Same.
2914 * riscv-tdep.c: Same.
2915 * s390-tdep.c: Same.
2916 * sh-tdep.c: Same.
2917 * sparc-linux-tdep.c: Same.
2918 * sparc-nat.c: Same.
2919 * stack.c: Same.
2920 * target-descriptions.c: Same.
2921 * top.c: Same.
2922 * varobj.c: Same.
2923
2924 2019-10-16 Tom Tromey <tom@tromey.com>
2925
2926 * objfiles.h (struct objfile) <original_name>: Now const.
2927
2928 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2929
2930 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2931 pass on to sigsetjmp's second argument.
2932 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2933
2934 2019-10-16 Keith Seitz <keiths@redhat.com>
2935
2936 PR gdb/23567
2937 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2938 sections whose size is greater than the file size.
2939
2940 2019-10-16 Jim Wilson <jimw@sifive.com>
2941
2942 * riscv-tdep.c (riscv_gcc_target_options): New.
2943 (riscv_gnu_triplet_regexp): New.
2944 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2945 set_gdbarch_gnu_triplet_regexp.
2946
2947 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2948
2949 * Makefile.in: Add xml-builtin.h.
2950 * features/feature_to_c.sh: Add an include for xml-builtin.h
2951 to ensure that the compiler checks that the types match.
2952 * xml-builtin.h: New file.
2953 * xml-support.c (fetch_xml_builtin): Add missing const.
2954 * xml-support.h: Remove declaration of xml_builtins.
2955
2956 2019-10-16 Tom de Vries <tdevries@suse.de>
2957
2958 PR tdep/25096
2959 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2960 (amd64_classify_aggregate): ... here.
2961 (amd64_classify_aggregate_field): Handled fiels of nested structs
2962 recursively.
2963
2964 2019-10-16 Tom de Vries <tdevries@suse.de>
2965
2966 PR tdep/24104
2967 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2968 that handles 'theclass'.
2969
2970 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2971
2972 * linespec.c (decode_digits_ordinary): Update comment.
2973 * make-target-delegates: No longer need to handle VEC case.
2974 * memrange.c (normalize_mem_ranges): Update comment.
2975 * namespace.c (add_using_directive): Update comment.
2976 * objc-lang.c (uniquify_strings): Update comment.
2977 * ppc-linux-nat.c (struct thread_points): Update comment.
2978 * probe.h (find_probes_in_objfile): Update comment.
2979 * target.h (enum flash_preserve_mode): Update comment.
2980 * varobj.c (varobj_restrict_range): Update comment.
2981 * varobj.h (varobj_list_children): Update comment.
2982
2983 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2984
2985 * Makefile.in: Remove references to vec.h and vec.c.
2986 * aarch64-tdep.c: No longer include vec.h.
2987 * ada-lang.c: Likewise.
2988 * ada-lang.h: Likewise.
2989 * arm-tdep.c: Likewise.
2990 * ax.h: Likewise.
2991 * breakpoint.h: Likewise.
2992 * charset.c: Likewise.
2993 * cp-support.h: Likewise.
2994 * dtrace-probe.c: Likewise.
2995 * dwarf2read.c: Likewise.
2996 * extension.h: Likewise.
2997 * gdb_bfd.c: Likewise.
2998 * gdbsupport/gdb_vecs.h: Likewise.
2999 * gdbsupport/vec.c: Remove.
3000 * gdbsupport/vec.h: Remove.
3001 * gdbthread.h: Likewise.
3002 * guile/scm-type.c: Likewise.
3003 * inline-frame.c: Likewise.
3004 * machoread.c: Likewise.
3005 * memattr.c: Likewise.
3006 * memrange.h: Likewise.
3007 * namespace.h: Likewise.
3008 * nat/linux-btrace.h: Likewise.
3009 * osdata.c: Likewise.
3010 * parser-defs.h: Likewise.
3011 * progspace.h: Likewise.
3012 * python/py-type.c: Likewise.
3013 * record-btrace.c: Likewise.
3014 * rust-exp.y: Likewise.
3015 * solib-target.c: Likewise.
3016 * stap-probe.c: Likewise.
3017 * target-descriptions.c: Likewise.
3018 * target-memory.c: Likewise.
3019 * target.h: Likewise.
3020 * varobj.c: Likewise.
3021 * varobj.h: Likewise.
3022 * xml-support.h: Likewise.
3023
3024 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3025
3026 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3027 Update for new std::vector based implementation.
3028 (process_psymtab_comp_unit_reader): Likewise.
3029 (scan_partial_symbols): Likewise.
3030 (recursively_compute_inclusions): Likewise.
3031 (compute_compunit_symtab_includes): Likewise.
3032 (process_imported_unit_die): Likewise.
3033 (queue_and_load_dwo_tu): Likewise.
3034 (follow_die_sig_1): Likewise.
3035 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3036 (typedef dwarf2_per_cu_ptr): Remove.
3037 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3038 function.
3039 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3040 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3041 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3042 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3043 std::vector.
3044
3045 2019-10-15 Tom Tromey <tromey@adacore.com>
3046
3047 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3048 TID.
3049
3050 2019-10-15 Tom Tromey <tromey@adacore.com>
3051
3052 * windows-nat.c (windows_nat_target::fetch_registers)
3053 (windows_nat_target::store_registers): Rename "pid" to "tid".
3054
3055 2019-10-15 Tom Tromey <tromey@adacore.com>
3056
3057 * gdbarch.h, gdbarch.c: Rebuild.
3058 * gdbarch.sh (gcc_target_options): Change return type to
3059 std::string.
3060 * compile/compile.c (get_args): Update.
3061 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3062 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3063 std::string.
3064 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3065 std::string.
3066 * arch-utils.c (default_gcc_target_options): Return std::string.
3067 * arch-utils.h (default_gcc_target_options): Return std::string.
3068 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3069
3070 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3071
3072 * breakpoint.c (breakpoint_chain): Make static.
3073 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3074 of accessing breakpoint_chain.
3075
3076 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3077
3078 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3079 to a gdb::function_view and return value to bool.
3080 * breakpoint.h (iterate_over_breakpoints): Likewise.
3081 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3082 (pop_dummy_frame): Update.
3083 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3084 (gdbscm_breakpoints): Update.
3085 * python/py-breakpoint.c (build_bp_list): Update.
3086 (gdbpy_breakpoints): Update.
3087 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3088 Update.
3089 (bpfinishpy_handle_stop): Update.
3090 (bpfinishpy_handle_exit): Update.
3091 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3092 (svr4_update_solib_event_breakpoints): Update.
3093
3094 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3095
3096 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3097 when unwrapping single-field structs.
3098
3099 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3100
3101 * dwarf2read.c: Remove includes.
3102
3103 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3104
3105 * ui-out.c (ui_out::call_do_message): Silence
3106 -Wformat-nonliteral warning.
3107
3108 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3109
3110 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3111 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3112 include: readline/tilde.h.
3113
3114 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3115
3116 * remote.c (remote_target::get_trace_status): Remove declaration of
3117 trace_regblock_size.
3118
3119 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3120
3121 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3122 (show_user): Remove declaration of cmdlist.
3123 * cli/cli-cmds.h (max_user_call_depth): Declare.
3124 * cli/cli-script.c (execute_user_command): Remove declaration
3125 of max_user_call_depth.
3126
3127 2019-10-11 Jim Wilson <jimw@sifive.com>
3128
3129 * gdbsupport/print-utils.h (pulongest): Fix comment.
3130 (plongest): Likewise.
3131 (phex): Add missing comment, mention leading zeros.
3132 (phex_nz): Add mention of no leading zeros to comment.
3133
3134 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3135 plongest instead of unsigned long long cast.
3136
3137 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3138
3139 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3140 for external_editor_command and gdbtk_test.
3141
3142 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3143
3144 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3145 * varobj.c (varobjdebug): Move comment to...
3146 * varobj.h (varobjdebug): ...here, and declare.
3147
3148 2019-10-09 Tom Tromey <tom@tromey.com>
3149
3150 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3151 erase_data_content.
3152
3153 2019-10-09 Tom Tromey <tom@tromey.com>
3154
3155 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3156 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3157 * tui/tui-command.c (tui_cmd_window::resize)
3158 (tui_refresh_cmd_win): Update.
3159 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3160 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3161 * tui/tui-data.c (~tui_gen_win_info): Remove.
3162 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3163 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3164 (tui_redisplay_readline, tui_mld_flush)
3165 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3166 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3167 (tui_data_window::erase_data_content)
3168 (tui_data_item_window::rerender)
3169 (tui_data_item_window::refresh_window): Update.
3170 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3171 (box_win, tui_gen_win_info::make_window)
3172 (tui_gen_win_info::make_visible): Update.
3173 (tui_delete_win): Remove.
3174 * tui/tui-winsource.c
3175 (tui_source_window_base::do_erase_source_content): Update.
3176 (tui_show_source_line, tui_source_window_base::update_tab_width)
3177 (tui_source_window_base::update_exec_info): Update.
3178 * tui/tui-data.h (struct curses_deleter): New.
3179 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3180 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3181
3182 2019-10-09 Tom Tromey <tom@tromey.com>
3183
3184 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3185
3186 2019-10-09 Tom Tromey <tom@tromey.com>
3187
3188 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3189 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3190
3191 2019-10-09 Tom Tromey <tom@tromey.com>
3192
3193 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3194 window height directly.
3195 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3196 declare.
3197 * tui/tui-layout.c (tui_default_win_height): Remove.
3198 (tui_default_win_viewport_height): Remove.
3199
3200 2019-10-09 Tom Tromey <tom@tromey.com>
3201
3202 * tui/tui.h: Remove comments.
3203
3204 2019-10-09 Tom de Vries <tdevries@suse.de>
3205
3206 * python/lib/gdb/printer/bound_registers.py: Use
3207 '^builtin_type_bound128' as regexp argument for
3208 add_builtin_pretty_printer.
3209
3210 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3211
3212 * guile/guile.c (guile_extension_script_ops): Remove forward
3213 declaration and mark as static.
3214 (guile_script_ops): Likewise.
3215 (extension_language_guile): Move further down in the file so
3216 it can reference the definitions for guile_{extension_,}script_ops.
3217
3218 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3219
3220 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3221 except SORTL, DFLTCC, and KDSA.
3222
3223 2019-10-08 Tom Tromey <tromey@adacore.com>
3224
3225 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3226 (struct safe_symbol_file_add_args): Remove.
3227
3228 2019-10-08 Tom Tromey <tromey@adacore.com>
3229
3230 * windows-nat.c: Don't include buildsym-legacy.h.
3231
3232 2019-10-08 Tom Tromey <tromey@adacore.com>
3233
3234 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3235
3236 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3237
3238 * gdbtypes.c (overload_debug): Move comment to header.
3239 * gdbtypes.h (overload_debug): Declare.
3240 * valops.c: Remove declaration of overload_debug, instead
3241 include gdbtypes.h.
3242
3243 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3244
3245 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3246 through _().
3247 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3248 move comment...
3249 * language.h (lang_frame_mismatch_warn): ... here. Also add
3250 declaration.
3251 * top.c (lang_frame_mismatch_warn): Remove declaration.
3252 (check_frame_language_change): Pass lang_frame_mismatch_warn
3253 through _().
3254
3255 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3256
3257 * c-lang.h (vtbl_ptr_name): Declare.
3258 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3259 it from the header.
3260 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3261
3262 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3263
3264 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3265 gdb_static_assert.
3266
3267 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3268
3269 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3270 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3271 * ctfread.c: New file.
3272 * ctfread.h: New file.
3273 * elfread.c: Include ctfread.h.
3274 (struct elfinfo text_p): New member ctfsect.
3275 (elf_locate_sections): Mark CTF section.
3276 (elf_symfile_read): Call elfctf_build_psymtabs.
3277 * Makefile.in (LIBCTF): Add.
3278 (CLIBS): Use it.
3279 (CDEPS): Likewise.
3280 (DIST): Add ctfread.c.
3281
3282 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3283
3284 * ctfread.c (struct nextfield): Renamed to ...
3285 (struct ctf_nextfield): ... this.
3286 (struct field_info): Renamed to ...
3287 (strut ctf_field_info): ... this.
3288 (attach_fields_to_type): Update for renamed structures.
3289 (ctf_add_member_cb): Likewise.
3290 (ctf_add_enum_member_cb): Likewise.
3291 (process_struct_members): Likewise.
3292 (process_enum_type): Likewise.
3293
3294 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3295
3296 * tracectf.h: Rename, was ctf.h.
3297 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3298 * tracefile.c: Likewise.
3299 * tracepoint.c: Remove unused include ctf.h.
3300 * mi/mi-main.c: Likewise.
3301 * Makefile.in Replace ctf.c with tracectf.c.
3302
3303 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3304
3305 * version.in: Change version number to "9.0.50.DATE-git".
3306
3307 2019-10-03 Tom Tromey <tom@tromey.com>
3308
3309 PR rust/24976:
3310 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3311
3312 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3315 cp_search_name_hash.
3316 * NEWS: Add entry about nested function support.
3317
3318 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3319 Andrew Burgess <andrew.burgess@embecosm.com>
3320
3321 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3322 for nested static variables when searchin VAR_DOMAIN.
3323 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3324 global scope, update comment.
3325 (add_partial_subprogram): Call add_partial_subprogram recursively
3326 for nested subroutines when processinng Fortran.
3327 (load_partial_dies): Process the child entities of a subprogram
3328 when processing Fortran.
3329 (partial_die_parent_scope): Handle building scope
3330 for Fortran nested functions.
3331 (process_die): Record that nested functions have a scope.
3332 (new_symbol): Always record Fortran subprograms on the global
3333 symbol list.
3334 (determine_prefix): How to build the prefix for Fortran
3335 subprograms.
3336
3337 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3340 have just sent the thread a SIGSTOP and are waiting for it to
3341 arrive.
3342
3343 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3344
3345 * btrace.c (btrace_add_pc): Remove whitespace before the template
3346 parameter in 'std::vector <...>'.
3347 (parse_xml_btrace_block): Likewise.
3348 (btrace_maint_decode_pt): Likewise.
3349 (btrace_maint_update_packets): Likewise.
3350 (btrace_maint_print_packets): Likewise.
3351 * btrace.h (struct btrace_maint_info): Likewise.
3352 * dwarf2read.c (struct type_unit_group): Likewise.
3353 (build_type_psymtabs_reader): Likewise.
3354 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3355 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3356 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3357
3358 2019-10-03 Tom de Vries <tdevries@suse.de>
3359
3360 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3361 the first line of the help text for set/show style metadata.
3362
3363 2019-10-02 Tom Tromey <tromey@adacore.com>
3364
3365 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3366 * gdbsupport/common-inferior.c: New file.
3367 * infcmd.c (startup_with_shell): Don't define.
3368 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3369 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3370 * inferior.h (startup_with_shell): Don't declare.
3371
3372 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3373
3374 * gdbsupport/gdb_assert.h: Include errors.h.
3375 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3376
3377 2019-10-02 Tom Tromey <tromey@adacore.com>
3378
3379 * NEWS: Add $_ada_exception entry.
3380 * ada-lang.c (struct ada_catchpoint): Add constructor.
3381 <m_kind>: New member.
3382 (allocate_location_exception, re_set_exception): Remove
3383 "ex" parameter.
3384 (should_stop_exception): Compute $_ada_exception.
3385 (check_status_exception, print_it_exception)
3386 (print_one_exception, print_mention_exception): Remove
3387 "ex" parameter.
3388 (allocate_location_catch_exception, re_set_catch_exception)
3389 (check_status_exception, print_it_catch_exception)
3390 (print_one_catch_exception, print_mention_catch_exception)
3391 (print_recreate_catch_exception)
3392 (allocate_location_catch_exception_unhandled)
3393 (re_set_catch_exception_unhandled)
3394 (check_status_exception, print_it_catch_exception_unhandled)
3395 (print_one_catch_exception_unhandled)
3396 (print_mention_catch_exception_unhandled)
3397 (print_recreate_catch_exception_unhandled)
3398 (allocate_location_catch_assert, re_set_catch_assert)
3399 (check_status_assert, print_it_catch_assert)
3400 (print_one_catch_assert, print_mention_catch_assert)
3401 (print_recreate_catch_assert)
3402 (allocate_location_catch_handlers, re_set_catch_handlers)
3403 (check_status_handlers, print_it_catch_handlers)
3404 (print_one_catch_handlers, print_mention_catch_handlers)
3405 (print_recreate_catch_handlers): Remove.
3406 (create_ada_exception_catchpoint): Update.
3407 (initialize_ada_catchpoint_ops): Update.
3408
3409 2019-10-02 Tom Tromey <tromey@adacore.com>
3410
3411 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3412 (create_excep_cond_exprs): Simplify exception string computation.
3413 (ada_exception_catchpoint_cond_string): Likewise.
3414
3415 2019-10-02 Tom Tromey <tromey@adacore.com>
3416
3417 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3418 * ada-lang.c (lesseq_defined_than): Handle
3419 LOC_STATIC.
3420 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3421 parameter.
3422 (dwarf2_has_info): Likewise.
3423 (new_symbol): Set maybe_copied on symbol when
3424 appropriate.
3425 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3426 parameter.
3427 <can_copy>: New member.
3428 * elfread.c (record_minimal_symbol): Set maybe_copied
3429 on symbol when appropriate.
3430 (elf_symfile_read): Update call to dwarf2_has_info.
3431 * minsyms.c (lookup_minimal_symbol_linkage): New
3432 function.
3433 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3434 * symtab.c (get_symbol_address, get_msymbol_address):
3435 New functions.
3436 * symtab.h (get_symbol_address, get_msymbol_address):
3437 Declare.
3438 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3439 maybe_copied.
3440 (struct symbol, struct minimal_symbol) <maybe_copied>:
3441 New member.
3442
3443 2019-10-02 Tom Tromey <tromey@adacore.com>
3444
3445 * source.c (struct current_source_location): New.
3446 (current_source_key): New global.
3447 (current_source_symtab, current_source_line)
3448 (current_source_pspace): Remove.
3449 (get_source_location): New function.
3450 (get_current_source_symtab_and_line)
3451 (set_default_source_symtab_and_line)
3452 (set_current_source_symtab_and_line)
3453 (clear_current_source_symtab_and_line, select_source_symtab)
3454 (info_source_command, print_source_lines_base)
3455 (info_line_command, search_command_helper, _initialize_source):
3456 Update.
3457
3458 2019-10-02 Tom Tromey <tromey@adacore.com>
3459
3460 * source.c (select_source_symtab): Don't call
3461 decode_line_with_current_source.
3462
3463 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3464
3465 * symtab.c (lookup_global_symbol): Search global block.
3466
3467 2019-10-02 Tom Tromey <tromey@adacore.com>
3468
3469 * coffread.c (process_coff_symbol): Update.
3470 * dwarf2read.c (var_decode_location, new_symbol): Update.
3471 * mdebugread.c (parse_symbol): Update.
3472 * objfiles.c (relocate_one_symbol): Update.
3473 * stabsread.c (define_symbol, fix_common_block)
3474 (scan_file_globals): Update.
3475 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3476 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3477 * xcoffread.c (process_xcoff_symbol): Update.
3478
3479 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3480
3481 * MAINTAINERS: Update my email address.
3482
3483 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3484
3485 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3486 std::vector.
3487 (build_type_psymtabs_reader): Update for std::vector.
3488 (build_type_psymtab_dependencies): Likewise.
3489 * dwarf2read.h: Remove use of DEF_VEC_P.
3490 (typedef sig_type_ptr): Delete.
3491
3492 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3493
3494 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3495 to std::vector.
3496 (btrace_maint_decode_pt): Likewise, and move allocation of the
3497 vector outside of the loop.
3498 (btrace_maint_update_packets): Update to handle change from VEC to
3499 std::vector.
3500 (btrace_maint_print_packets): Likewise.
3501 (maint_info_btrace_cmd): Likewise.
3502 * btrace.h: Remove use of DEF_VEC_O.
3503 (typedef btrace_pt_packet_s): Delete.
3504 (struct btrace_maint_info) <packets>: Change fromm VEC to
3505 std::vector.
3506 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3507
3508 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3509
3510 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3511 make accesses into the vector constant references.
3512 (btrace_add_pc): Update for std::vector.
3513 (btrace_stitch_bts): Likewise.
3514 (parse_xml_btrace_block): Likewise.
3515 (btrace_maint_update_packets): Likewise.
3516 (btrace_maint_print_packets): Likewise.
3517 (maint_info_btrace_cmd): Likewise.
3518 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3519 std::vector.
3520 (btrace_data::empty): Likewise.
3521 (btrace_data_append): Likewise.
3522 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3523 (typedef btrace_block_s): Delete.
3524 (struct btrace_block): Add constructor.
3525 (struct btrace_data_bts) <blocks>: Change to std::vector.
3526 * nat/linux-btrace.c (perf_event_read_bts): Update for
3527 std::vector.
3528 (linux_read_bts): Likewise.
3529
3530 2019-10-01 Tom Tromey <tom@tromey.com>
3531
3532 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3533
3534 2019-10-01 Tom Tromey <tom@tromey.com>
3535
3536 * stack.c (print_frame, info_frame_command_core): Use
3537 styled_string.
3538 * linux-thread-db.c (try_thread_db_load_1)
3539 (try_thread_db_load_from_pdir_1): Use styled_string.
3540 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3541 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3542 (maybe_print_unsupported_script_warning)
3543 (maybe_print_script_not_found_warning): Use styled_string.
3544 * ada-lang.c (user_select_syms): Use styled_string.
3545
3546 2019-10-01 Tom Tromey <tom@tromey.com>
3547
3548 * p-lang.c (pascal_printstr): Use metadata style.
3549 * value.c (show_convenience): Use metadata style.
3550 * valprint.c (valprint_check_validity, val_print_optimized_out)
3551 (val_print_not_saved, val_print_unavailable)
3552 (val_print_invalid_address, generic_val_print, val_print)
3553 (value_check_printable, val_print_array_elements): Use metadata
3554 style.
3555 * ui-out.h (class ui_out) <field_fmt>: New overload.
3556 <do_field_fmt>: Add style parameter.
3557 * ui-out.c (ui_out::field_fmt): New overload.
3558 * typeprint.c (type_print_unknown_return_type)
3559 (val_print_not_allocated, val_print_not_associated): Use metadata
3560 style.
3561 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3562 parameter.
3563 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3564 * tracepoint.c (tvariables_info_1): Use metadata style.
3565 * stack.c (print_frame_arg, print_frame_info, print_frame)
3566 (info_frame_command_core): Use metadata style.
3567 * skip.c (info_skip_command): Use metadata style.
3568 * rust-lang.c (rust_print_enum): Use metadata style.
3569 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3570 metadata style.
3571 * python/py-framefilter.c (py_print_single_arg): Use metadata
3572 style.
3573 * printcmd.c (do_one_display, print_variable_and_value): Use
3574 metadata style.
3575 * p-valprint.c (pascal_val_print)
3576 (pascal_object_print_value_fields): Use metadata style.
3577 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3578 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3579 parameter.
3580 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3581 * m2-valprint.c (m2_print_long_set): Use metadata style.
3582 * m2-typeprint.c (m2_print_type): Use metadata style.
3583 * infcmd.c (print_return_value_1): Use metadata style.
3584 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3585 * f-valprint.c (info_common_command_for_block): Use metadata
3586 style.
3587 * f-typeprint.c (f_type_print_base): Use metadata style.
3588 * expprint.c (print_subexp_standard): Use metadata style.
3589 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3590 * cli/cli-style.h (class cli_style_option): Add constructor.
3591 (metadata_style): Declare.
3592 * cli/cli-style.c (metadata_style): New global.
3593 (_initialize_cli_style): Register metadata style.
3594 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3595 parameter.
3596 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3597 * c-typeprint.c (c_type_print_base_struct_union)
3598 (c_type_print_base_1): Use metadata style.
3599 * breakpoint.c (watchpoint_value_print)
3600 (print_one_breakpoint_location): Use metadata style.
3601 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3602 style.
3603 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3604 style.
3605 * ada-valprint.c (val_print_packed_array_elements, printstr)
3606 (print_field_values, ada_val_print_ref, ada_val_print): Use
3607 metadata style.
3608 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3609 style.
3610 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3611 style.
3612 * ada-lang.c (user_select_syms): Use metadata style.
3613
3614 2019-10-01 Tom Tromey <tom@tromey.com>
3615
3616 * cli/cli-cmds.c (pwd_command): Style output.
3617
3618 2019-10-01 Pedro Alves <palves@redhat.com>
3619 Tom Tromey <tom@tromey.com>
3620
3621 * symtab.c (print_symbol_info): Use %ps.
3622 (print_msymbol_info): Use %ps.
3623 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3624 * printcmd.c (print_variable_and_value): Use %ps.
3625 * macrocmd.c (show_pp_source_pos): Use %ps.
3626 * infrun.c (print_exited_reason): Use ui_out::message.
3627 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3628 (describe_other_breakpoints): Use ui_out::message and new
3629 formats.
3630 (say_where): Use new formats.
3631 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3632 and new formats.
3633
3634 2019-10-01 Pedro Alves <palves@redhat.com>
3635 Tom Tromey <tom@tromey.com>
3636
3637 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3638 (test_gdb_formats): New function.
3639 (run_tests): Call it.
3640 (test_format_specifier): Update.
3641 * utils.h (fputs_filtered): Update comment.
3642 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3643 (fputs_styled_unfiltered): Declare.
3644 * utils.c (fputs_styled_unfiltered): New function.
3645 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3646 (vfprintf_filtered): Update.
3647 (vfprintf_unfiltered, vprintf_filtered): Update.
3648 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3649 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3650 disallow_ui_out_field>: New constants.
3651 (enum class field_kind): New.
3652 (struct base_field_s, struct signed_field_s): New.
3653 (signed_field): New function.
3654 (struct string_field_s): New.
3655 (string_field): New function.
3656 (struct styled_string_s): New.
3657 (styled_string): New function.
3658 (class ui_out) <message>: Add comment.
3659 <vmessage, call_do_message>: New methods.
3660 <do_message>: Add style parameter.
3661 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3662 methods.
3663 (ui_out::message): Rewrite.
3664 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3665 parameter.
3666 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3667 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3668 gdb_extensions parameter.
3669 (class format_piece): Add parameter to constructor.
3670 (n_int_args): New field.
3671 * gdbsupport/format.c (format_pieces::format_pieces): Add
3672 gdb_extensions parameter. Handle '*'.
3673 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3674 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3675 vfprintf_styled_no_gdbfmt.
3676 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3677 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3678 unfiltered output.
3679 * ui-style.h (struct ui_file_style) <ptr>: New method.
3680
3681 2019-10-01 Tom Tromey <tom@tromey.com>
3682
3683 * unittests/format_pieces-selftests.c: Update. Add final format.
3684 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3685 empty literal pieces.
3686
3687 2019-10-01 Tom Tromey <tom@tromey.com>
3688
3689 * ui-out.h (enum class ui_out_style_kind): Remove.
3690 (class ui_out) <field_string, field_stsream, do_field_string>:
3691 Change type of "style".
3692 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3693 (ui_out::field_string): Update.
3694 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3695 of "style".
3696 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3697 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3698 * stack.c (print_frame_arg, print_frame_info, print_frame):
3699 Update.
3700 * source.c (print_source_lines_base): Update.
3701 * solib.c (info_sharedlibrary_command): Update.
3702 * skip.c (info_skip_command): Update.
3703 * record-btrace.c (btrace_call_history_src_line)
3704 (btrace_call_history): Update.
3705 * python/py-framefilter.c (py_print_frame): Update.
3706 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3707 "style".
3708 * mi/mi-out.c (mi_ui_out::do_table_header)
3709 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3710 (mi_ui_out::do_field_string): Update.
3711 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3712 Update.
3713 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3714 "style".
3715 * cli-out.c (cli_ui_out::do_table_header)
3716 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3717 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3718 (cli_ui_out::do_field_fmt): Update.
3719 * breakpoint.c (print_breakpoint_location): Update.
3720 (update_static_tracepoint): Update.
3721
3722 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3723
3724 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3725 conversion of gdb_datadir.
3726 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3727 remove not needed c_str ().
3728
3729 2019-09-30 Ali Tamur <tamur@google.com>
3730
3731 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3732 (dwarf2_string_attr): Likewise.
3733
3734 2019-09-30 Ali Tamur <tamur@google.com>
3735
3736 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3737 (process_full_type_unit): Likewise.
3738 (dump_die_shallow): Likewise.
3739 (cu_debug_loc_section): Likewise.
3740
3741 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3742
3743 * minsyms.c (compare_minimal_symbols): Rename to...
3744 (minimal_symbol_is_less_than): ...this, and adjust to STL
3745 conventions (return bool, take arguments as references)
3746 (minimal_symbol_reader::install): Call std::sort instead
3747 of qsort.
3748
3749 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3750
3751 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3752 hash and why.
3753 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3754 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3755
3756 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3757
3758 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3759 * psympriv.h (add_psymbol_to_list): Move comment here and update
3760 it.
3761
3762 2019-09-29 Tom de Vries <tdevries@suse.de>
3763
3764 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3765 Use $tmpdir/$(basename "$output_file").dwz instead of
3766 "${output_file}.dwz".
3767
3768 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3769
3770 PR gdb/25045
3771 * hppa-linux-nat.c: Include gdbarch.h.
3772
3773 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3774
3775 * blockframe.c (find_pc_partial_function): Change return type to bool.
3776 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3777 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3778 (stub_gnu_ifunc_resolve_name): Likewise.
3779 * symtab.c (compare_filenames_for_search): Likewise.
3780 (compare_glob_filenames_for_search): Likewise.
3781 (matching_obj_sections): Likewise.
3782 (symbol_matches_domain): Likewise.
3783 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3784 (find_line_pc): Change return type to bool.
3785 (find_line_pc_range): Likewise.
3786 (producer_is_realview): Likewise.
3787 * symtab.h (symbol_matches_domain): Likewise.
3788 (find_pc_partial_function): Likewise.
3789 (find_pc_line_pc_range): Likewise.
3790 (in_gnu_ifunc_stub): Likewise.
3791 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3792 (find_line_pc): Likewise.
3793 (find_line_pc_range): Likewise.
3794 (matching_obj_sections): Likewise.
3795 (find_line_symtab): Change out parameter to bool.
3796 (producer_is_realview): Change return type to bool.
3797 (compare_filenames_for_search): Likewise.
3798 (compare_glob_filenames_for_search): Likewise.
3799
3800 2019-09-26 Tom Tromey <tom@tromey.com>
3801
3802 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3803 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3804 * gdb_usleep.h: Remove.
3805 * gdb_usleep.c: Remove.
3806 * utils.c: Don't include gdb_usleep.h.
3807
3808 2019-09-26 Tom Tromey <tromey@adacore.com>
3809
3810 * python/py-type.c (type_to_type_object): Call check_typedef
3811 for stub types.
3812
3813 2019-09-26 Tom Tromey <tom@tromey.com>
3814
3815 * utils.h (initialize_utils): Don't declare.
3816 * top.c (gdb_init): Don't call initialize_utils.
3817 * utils.c (initialize_utils): Remove. Move contents...
3818 (_initialize_utils): ... here.
3819
3820 2019-09-25 Tom Tromey <tom@tromey.com>
3821
3822 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3823 * utils.h (make_hex_string): Don't declare.
3824 * utils.c (make_hex_string): Remove.
3825
3826 2019-09-24 Tom de Vries <tdevries@suse.de>
3827
3828 PR gdb/23815
3829 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3830 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3831
3832 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3833
3834 * NEWS: Mention new simulator port for PRU.
3835
3836 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3837
3838 * ada-exp.y (write_object_remaining): Update.
3839 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3840 and eliminate the static buffer.
3841 (ada_decode_symbol): Update.
3842 (ada_la_decode): Update.
3843 (ada_sniff_from_mangled_name): Update.
3844 (is_valid_name_for_wild_match): Update.
3845 (ada_lookup_name_info::matches): Update and simplify.
3846 (name_matches_regex): Update.
3847 (ada_add_global_exceptions): Update.
3848 * ada-lang.h (ada_decode): Update signature.
3849 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3850 * dwarf-index-write.c (debug_names::insert): Update.
3851
3852 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3853
3854 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3855 formatting.
3856
3857 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3858
3859 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3860 Change "nonzero" to "true" in documentation.
3861
3862 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3863
3864 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3865 (_initialize_darwin_solib): Don't set
3866 darwin_so_ops.lookup_lib_global_symbol.
3867 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3868 set_gdbarch_iterate_over_objfiles_in_search_order.
3869 (elf_lookup_lib_symbol): Rename to...
3870 (svr4_iterate_over_objfiles_in_search_order): this, and update
3871 to iterate semantics.
3872 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3873 * solib.c (solib_global_lookup): Remove.
3874 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3875 (solib_global_lookup): Remove.
3876 * symtab.c (lookup_global_or_static_symbol): Remove call to
3877 solib_global_lookup.
3878
3879 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3880
3881 * NEWS: Move entries about default MI version now being
3882 version 3, and about the GDB/MI fix for multi-location
3883 breakpoints to the "since GDB 8.3" section.
3884
3885 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3886
3887 GDB 8.3.1 released.
3888
3889 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3890
3891 * NEWS: Mention that Cell/B.E. debugging support was removed.
3892 * MAINTAINERS: Remove spu target.
3893
3894 * config/djgpp/fnchange.lst: Remove entries for removed files.
3895
3896 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3897 spu-multiarch.o, and spu-tdep.o.
3898 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3899 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3900 spu-multiarch.c, and spu-tdep.c.
3901 * spu-linux-nat.c: Remove file.
3902 * spu-multiarch.c: Remove file.
3903 * spu-tdep.c: Remove file.
3904 * spu-tdep.h: Remove file.
3905 * solib-spu.c: Remove file.
3906 * solib-spu.h: Remove file.
3907
3908 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3909 * configure.nat (spu-linux): Remove.
3910 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3911 solib-multiarch.o from gdb_target_obs.
3912 (spu*-*-*): Remove.
3913
3914 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3915 feature flag.
3916 (ppc_linux_no_features): Update.
3917 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3918 Cell/B.E. support.
3919 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3920 (tdesc_powerpc_cell64l): Likewise.
3921 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3922 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3923 Cell/B.E. support.
3924 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3925 Do not include "features/rs6000/powerpc-cell32l.c" or
3926 "features/rs6000/powerpc-cell64l.c".
3927 (ppc_linux_spu_section): Remove.
3928 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3929 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3930 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3931 (ppc_linux_spe_context_lookup): Remove.
3932 (ppc_linux_spe_context_inferior_created): Remove.
3933 (ppc_linux_spe_context_solib_loaded): Remove.
3934 (ppc_linux_spe_context_solib_unloaded): Remove.
3935 (ppc_linux_spe_context): Remove.
3936 (struct ppu2spu_cache): Remove.
3937 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3938 (struct ppu2spu_data): Remove.
3939 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3940 ppu2spu_unwind): Remove.
3941 (ppc_linux_init_abi): Remove Cell/B.E. support.
3942 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3943
3944 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3945 (rs6000/powerpc-cell64l-expedite): Likewise
3946 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3947 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3948 rs6000/powerpc-cell64l.xml.
3949 * features/rs6000/powerpc-cell32l.xml: Remove.
3950 * features/rs6000/powerpc-cell64l.xml: Likewise.
3951 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3952 * features/rs6000/powerpc-cell64l.c: Likewise.
3953 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3954 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3955 * regformats/reg-spu.dat: Remove.
3956
3957 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3958 * corelow.c (struct spuid_list): Remove.
3959 (add_to_spuid_list): Remove.
3960 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3961 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3962 (remote_protocol_features): Remove associated entries.
3963 (_initialize_remote): No longer initialize them.
3964 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3965 * linux-nat.c (SPUFS_MAGIC): Remove.
3966 (linux_proc_xfer_spu): Remove.
3967 (spu_enumerate_spu_ids): Remove.
3968 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3969 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3970 (linux_make_corefile_notes): No longer call it.
3971
3972 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3973 (cooked_write_test): Likewise.
3974
3975 2019-09-20 Tom Tromey <tom@tromey.com>
3976
3977 * NEWS: Mention case-sensitivity of TUI commands.
3978 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3979 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3980 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3981
3982 2019-09-20 Tom Tromey <tom@tromey.com>
3983
3984 * tui/tui-source.c (tui_source_window::set_contents): Use
3985 make_unique_xstrdup.
3986 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3987 make_unique_xstrdup.
3988
3989 2019-09-20 Tom Tromey <tom@tromey.com>
3990
3991 * tui/tui-data.c: Remove separator comments.
3992 * tui/tui-layout.c: Remove separator comments.
3993 * tui/tui-win.c: Remove separator comments.
3994 * tui/tui-wingeneral.c: Remove separator comments.
3995
3996 2019-09-20 Tom Tromey <tom@tromey.com>
3997
3998 * tui/tui.h (strcat_to_buf): Don't declare.
3999 * tui/tui.c (strcat_to_buf): Remove.
4000
4001 2019-09-20 Tom Tromey <tom@tromey.com>
4002
4003 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4004 from "fullname".
4005 * tui/tui-source.c (tui_source_window::set_contents)
4006 (tui_source_window::location_matches_p)
4007 (tui_source_window::maybe_update): Update.
4008
4009 2019-09-20 Tom Tromey <tom@tromey.com>
4010
4011 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4012 Update.
4013 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4014 prefix.
4015 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4016 (tui_data_window::line_from_reg_element_no)
4017 (tui_data_window::first_reg_element_no_inline)
4018 (tui_data_window::show_registers)
4019 (tui_data_window::show_register_group)
4020 (tui_data_window::display_registers_from)
4021 (tui_data_window::display_registers_from_line)
4022 (tui_data_window::first_data_item_displayed)
4023 (tui_data_window::delete_data_content_windows)
4024 (tui_data_window::erase_data_content)
4025 (tui_data_window::do_scroll_vertical)
4026 (tui_data_window::refresh_window)
4027 (tui_data_window::check_register_values): Update.
4028
4029 2019-09-20 Tom Tromey <tom@tromey.com>
4030
4031 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4032 (struct tui_locator_window) <full_name, proc_name>: Now
4033 std::string.
4034 * tui/tui-stack.c (tui_locator_window::make_status_line)
4035 (tui_locator_window::set_locator_fullname)
4036 (tui_locator_window::set_locator_info): Update.
4037 * tui/tui-source.c (tui_source_window::set_contents)
4038 (tui_source_window::showing_source_p): Update.
4039
4040 2019-09-20 Tom Tromey <tom@tromey.com>
4041
4042 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4043 Don't call tui_locator_win_info_ptr.
4044
4045 2019-09-20 Tom Tromey <tom@tromey.com>
4046
4047 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4048
4049 2019-09-20 Tom Tromey <tom@tromey.com>
4050
4051 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4052 height for locator.
4053 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4054 * tui/tui-layout.c (show_source_disasm_command, show_data)
4055 (show_source_or_disasm_and_command): Use 1 as height for locator.
4056
4057 2019-09-20 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui.c (tui_enable): Update.
4060 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4061 Update.
4062 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4063 Update.
4064 * tui/tui-data.c (win_resized): Now bool.
4065 (tui_win_resized): Return bool.
4066 (tui_set_win_resized_to): Accept a bool.
4067
4068 2019-09-20 Tom Tromey <tom@tromey.com>
4069
4070 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4071 Change type of "refresh_values_only".
4072 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4073 type of "refresh_values_only".
4074
4075 2019-09-20 Tom Tromey <tom@tromey.com>
4076
4077 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4078 std::string.
4079 (tui_disassemble): Add "pos" parameter.
4080 (tui_disasm_window::set_contents): Simplify.
4081
4082 2019-09-20 Tom Tromey <tom@tromey.com>
4083
4084 * tui/tui-winsource.h (struct tui_source_window_base)
4085 <show_source_content>: Now private.
4086 * tui/tui-winsource.c
4087 (tui_source_window_base::show_source_content): Don't handle empty
4088 content case.
4089
4090 2019-09-20 Tom Tromey <tom@tromey.com>
4091
4092 * tui/tui-layout.c (show_source_disasm_command)
4093 (show_source_or_disasm_and_command): Don't call
4094 show_source_content.
4095
4096 2019-09-20 Tom Tromey <tom@tromey.com>
4097
4098 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4099 Declare.
4100 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4101 from tui_make_status_line.
4102 (tui_locator_window::rerender): Update.
4103
4104 2019-09-20 Tom Tromey <tom@tromey.com>
4105
4106 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4107 (tui_locator_window::rerender): Update.
4108
4109 2019-09-20 Tom Tromey <tom@tromey.com>
4110
4111 * tui/tui-winsource.h (struct tui_source_window_base)
4112 <~tui_source_window_base>: Don't declare.
4113 <fullname>: Remove.
4114 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4115 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4116 member.
4117 * tui/tui-source.c (tui_source_window::set_contents): Update.
4118 (tui_source_window::location_matches_p)
4119 (tui_source_window::maybe_update): Update.
4120
4121 2019-09-20 Tom Tromey <tom@tromey.com>
4122
4123 * tui/tui-winsource.h (~tui_source_element): Remove.
4124 (tui_source_element): Update.
4125 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4126 * tui/tui-winsource.c (tui_show_source_line): Update.
4127 * tui/tui-source.c (tui_source_window::set_contents): Update.
4128 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4129
4130 2019-09-20 Tom Tromey <tom@tromey.com>
4131
4132 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4133 declare.
4134 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4135 tui_clear_source_windows_detail.
4136 * tui/tui-winsource.h (struct tui_source_window_base)
4137 <clear_detail>: Don't declare.
4138 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4139 Remove.
4140 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4141
4142 2019-09-20 Tom Tromey <tromey@adacore.com>
4143
4144 PR ada/24919:
4145 * block.c (contained_in): Fix final return value.
4146
4147 2019-09-20 Alan Modra <amodra@gmail.com>
4148
4149 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4150 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4151 (read_indirect_string_from_dwz): Use bfd accessor.
4152 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4153 * machoread.c (macho_symfile_read_all_oso): Likewise.
4154 * solib.c (solib_bfd_open): Likewise.
4155
4156 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4157
4158 * eval.c: Move declaration of overload_resolution to...
4159 * value.h: ...here.
4160
4161 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4162
4163 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4164 * arm-linux-tdep.c: Likewise.
4165 * arm-nbsd-nat.c: Likewise.
4166 * arm-tdep.h: Declare arm_apcs_32.
4167 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4168
4169 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4170
4171 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4172 * dwarf2read.h: Declare dwarf_always_disassemble.
4173
4174 2019-09-19 Tom de Vries <tdevries@suse.de>
4175
4176 PR gdb/25009
4177 * source-cache.c (source_cache::ensure): Catch exception thrown during
4178 construction of the highlighter.
4179
4180 2019-09-18 Alan Modra <amodra@gmail.com>
4181
4182 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4183 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4184 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4185 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4186 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4187 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4188 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4189 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4190 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4191 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4192 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4193 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4194 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4195 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4196 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4197 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4198 * mi/mi-interp.c: Update throughout for bfd section macro and
4199 function changes.
4200 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4201 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4202
4203 2019-09-18 Tom Tromey <tom@tromey.com>
4204
4205 * NEWS: Add entry.
4206 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4207 call rl_initialize.
4208 (tui_enable): Do not call rl_initialize.
4209
4210 2019-09-18 Christian Groessler <chris@groessler.org>
4211
4212 * alpha-linux-nat.c: Include gdbarch.h.
4213
4214 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4215
4216 * ui-file.c: Include cli/cli-style.h.
4217 (term_cli_styling): Remove cli_styling declaration.
4218
4219 2019-09-18 Alan Modra <amodra@gmail.com>
4220
4221 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4222 to bfd_asymbol_section.
4223
4224 2019-09-18 Alan Modra <amodra@gmail.com>
4225
4226 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4227 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4228 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4229
4230 2019-09-18 Alan Modra <amodra@gmail.com>
4231
4232 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4233 * spu-linux-nat.c (spu_bfd_open): Likewise.
4234
4235 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4236
4237 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4238 to bool to match definition in dwarf2read.c.
4239
4240 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4241
4242 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4243 (print_signatures): Likewise.
4244 (trust_pad_over_xvs): Likewise.
4245 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4246 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4247 * arm-linux-nat.c (arm_apcs_32): Likewise.
4248 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4249 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4250 * arm-tdep.c (arm_debug): Likewise.
4251 (arm_apcs_32): Likewise.
4252 * auto-load.c (debug_auto_load): Likewise.
4253 (auto_load_gdb_scripts): Likewise.
4254 (global_auto_load): Likewise.
4255 (auto_load_local_gdbinit): Likewise.
4256 (auto_load_local_gdbinit_loaded): Likewise.
4257 * auto-load.h (global_auto_load): Likewise.
4258 (auto_load_local_gdbinit): Likewise.
4259 (auto_load_local_gdbinit_loaded): Likewise.
4260 * breakpoint.c (disconnected_dprintf): Likewise.
4261 (breakpoint_proceeded): Likewise.
4262 (automatic_hardware_breakpoints): Likewise.
4263 (always_inserted_mode): Likewise.
4264 (target_exact_watchpoints): Likewise.
4265 (_initialize_breakpoint): Update.
4266 * breakpoint.h (target_exact_watchpoints): Change to bool.
4267 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4268 * cli/cli-cmds.c (trace_commands): Likewise.
4269 * cli/cli-cmds.h (trace_commands): Likewise.
4270 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4271 to bool*.
4272 * cli/cli-logging.c (logging_overwrite): Change to bool.
4273 (logging_redirect): Likewise.
4274 (debug_redirect): Likewise.
4275 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4276 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4277 to bool.
4278 <boolean_option_def>: Update.
4279 (struct flag_option_def): Change default type of Context to bool
4280 from int.
4281 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4282 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4283 (get_setshow_command_value_string): Likewise.
4284 * cli/cli-style.c (cli_styling): Change to bool.
4285 (source_styling): Likewise.
4286 * cli/cli-style.h (source_styling): Likewise.
4287 (cli_styling): Likewise.
4288 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4289 to bool.
4290 * command.h (var_types): Update comment.
4291 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4292 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4293 bool.
4294 (debug_compile_cplus_scopes): Likewise.
4295 * compile/compile-internal.h (compile_debug): Likewise.
4296 * compile/compile.c (compile_debug): Likewise.
4297 (struct compile_options) <raw>: Likewise.
4298 * cp-support.c (catch_demangler_crashes): Likewise.
4299 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4300 (usr_cmd_cris_dwarf2_cfi): Likewise.
4301 * csky-tdep.c (csky_debug): Likewise.
4302 * darwin-nat.c (enable_mach_exceptions): Likewise.
4303 * dcache.c (dcache_enabled_p): Likewise.
4304 * defs.h (info_verbose): Likewise.
4305 * demangle.c (demangle): Likewise.
4306 (asm_demangle): Likewise.
4307 * dwarf-index-cache.c (debug_index_cache): Likewise.
4308 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4309 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4310 * dwarf2read.c (check_physname): Likewise.
4311 (use_deprecated_index_sections): Likewise.
4312 (dwarf_always_disassemble): Likewise.
4313 * eval.c (overload_resolution): Likewise.
4314 * event-top.c (set_editing_cmd_var): Likewise.
4315 (exec_done_display_p): Likewise.
4316 * event-top.h (set_editing_cmd_var): Likewise.
4317 (exec_done_display_p): Likewise.
4318 * exec.c (write_files): Likewise.
4319 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4320 (debug_fbsd_nat): Likewise.
4321 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4322 Likewise.
4323 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4324 <backtrace_past_entry> Likewise.
4325 * gdb-demangle.h (demangle): Likewise.
4326 (asm_demangle): Likewise.
4327 * gdb_bfd.c (bfd_sharing): Likewise.
4328 * gdbcore.h (write_files): Likewise.
4329 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4330 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4331 * gdbthread.h (print_thread_events): Likewise.
4332 * gdbtypes.c (opaque_type_resolution): Likewise.
4333 (strict_type_checking): Likewise.
4334 * gnu-nat.c (gnu_debug_flag): Likewise.
4335 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4336 * guile/scm-param.c (pascm_variable): Add boolval.
4337 (add_setshow_generic): Update.
4338 (pascm_param_value): Update.
4339 (pascm_set_param_value_x): Update.
4340 * hppa-tdep.c (hppa_debug): Change to bool..
4341 * infcall.c (may_call_functions_p): Likewise.
4342 (coerce_float_to_double_p): Likewise.
4343 (unwind_on_signal_p): Likewise.
4344 (unwind_on_terminating_exception_p): Likewise.
4345 * infcmd.c (startup_with_shell): Likewise.
4346 * inferior.c (print_inferior_events): Likewise.
4347 * inferior.h (startup_with_shell): Likewise.
4348 (print_inferior_events): Likewise.
4349 * infrun.c (step_stop_if_no_debug): Likewise.
4350 (detach_fork): Likewise.
4351 (debug_displaced): Likewise.
4352 (disable_randomization): Likewise.
4353 (non_stop): Likewise.
4354 (non_stop_1): Likewise.
4355 (observer_mode): Likewise.
4356 (observer_mode_1): Likewise.
4357 (set_observer_mode): Update.
4358 (sched_multi): Change to bool.
4359 * infrun.h (debug_displaced): Likewise.
4360 (sched_multi): Likewise.
4361 (step_stop_if_no_debug): Likewise.
4362 (non_stop): Likewise.
4363 (disable_randomization): Likewise.
4364 * linux-tdep.c (use_coredump_filter): Likewise.
4365 (dump_excluded_mappings): Likewise.
4366 * linux-thread-db.c (auto_load_thread_db): Likewise.
4367 (check_thread_db_on_load): Likewise.
4368 * main.c (captured_main_1): Update.
4369 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4370 xx2_opt, boolean_opt>: Change to bool.
4371 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4372 * maint.c (maintenance_profile_p): Likewise.
4373 (per_command_time): Likewise.
4374 (per_command_space): Likewise.
4375 (per_command_symtab): Likewise.
4376 * memattr.c (inaccessible_by_default): Likewise.
4377 * mi/mi-main.c (mi_async): Likewise.
4378 (mi_async_1): Likewise.
4379 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4380 * nat/fork-inferior.h (startup_with_shell): Likewise.
4381 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4382 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4383 * nios2-tdep.c (nios2_debug): Likewise.
4384 * or1k-tdep.c (or1k_debug): Likewise.
4385 * parse.c (parser_debug): Likewise.
4386 * parser-defs.h (parser_debug): Likewise.
4387 * printcmd.c (print_symbol_filename): Likewise.
4388 * proc-api.c (procfs_trace): Likewise.
4389 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4390 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4391 (set_parameter_value): Update.
4392 (add_setshow_generic): Update.
4393 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4394 to bool*.
4395 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4396 int*.
4397 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4398 * record-btrace.c (record_btrace_target::store_registers): Update.
4399 * record-full.c (record_full_memory_query): Change to bool.
4400 (record_full_stop_at_limit): Likewise.
4401 * record-full.h (record_full_memory_query): Likewise.
4402 * remote-notif.c (notif_debug): Likewise.
4403 * remote-notif.h (notif_debug): Likewise.
4404 * remote.c (use_range_stepping): Likewise.
4405 (interrupt_on_connect): Likewise.
4406 (remote_break): Likewise.
4407 * ser-tcp.c (tcp_auto_retry): Likewise.
4408 * ser-unix.c (serial_hwflow): Likewise.
4409 * skip.c (debug_skip): Likewise.
4410 * solib-aix.c (solib_aix_debug): Likewise.
4411 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4412 (spu_auto_flush_cache_p): Likewise.
4413 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4414 Likewise.
4415 (struct info_print_options) <quiet>: Likewise.
4416 * symfile-debug.c (debug_symfile): Likewise.
4417 * symfile.c (auto_solib_add): Likewise.
4418 (separate_debug_file_debug): Likewise.
4419 * symfile.h (auto_solib_add): Likewise.
4420 (separate_debug_file_debug): Likewise.
4421 * symtab.c (basenames_may_differ): Likewise.
4422 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4423 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4424 (struct info_types_options) <quiet>: Likewise.
4425 * symtab.h (demangle): Likewise.
4426 (basenames_may_differ): Likewise.
4427 * target-dcache.c (stack_cache_enabled_1): Likewise.
4428 (code_cache_enabled_1): Likewise.
4429 * target.c (trust_readonly): Likewise.
4430 (may_write_registers): Likewise.
4431 (may_write_memory): Likewise.
4432 (may_insert_breakpoints): Likewise.
4433 (may_insert_tracepoints): Likewise.
4434 (may_insert_fast_tracepoints): Likewise.
4435 (may_stop): Likewise.
4436 (auto_connect_native_target): Likewise.
4437 (target_stop_and_wait): Update.
4438 (target_async_permitted): Change to bool.
4439 (target_async_permitted_1): Likewise.
4440 (may_write_registers_1): Likewise.
4441 (may_write_memory_1): Likewise.
4442 (may_insert_breakpoints_1): Likewise.
4443 (may_insert_tracepoints_1): Likewise.
4444 (may_insert_fast_tracepoints_1): Likewise.
4445 (may_stop_1): Likewise.
4446 * target.h (target_async_permitted): Likewise.
4447 (may_write_registers): Likewise.
4448 (may_write_memory): Likewise.
4449 (may_insert_breakpoints): Likewise.
4450 (may_insert_tracepoints): Likewise.
4451 (may_insert_fast_tracepoints): Likewise.
4452 (may_stop): Likewise.
4453 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4454 (make_thread_apply_all_options_def_group): Change argument from int*
4455 to bool*.
4456 (thread_apply_all_command): Update.
4457 (print_thread_events): Change to bool.
4458 * top.c (confirm): Likewise.
4459 (command_editing_p): Likewise.
4460 (history_expansion_p): Likewise.
4461 (write_history_p): Likewise.
4462 (info_verbose): Likewise.
4463 * top.h (confirm): Likewise.
4464 (history_expansion_p): Likewise.
4465 * tracepoint.c (disconnected_tracing): Likewise.
4466 (circular_trace_buffer): Likewise.
4467 * typeprint.c (print_methods): Likewise.
4468 (print_typedefs): Likewise.
4469 * utils.c (debug_timestamp): Likewise.
4470 (sevenbit_strings): Likewise.
4471 (pagination_enabled): Likewise.
4472 * utils.h (sevenbit_strings): Likewise.
4473 (pagination_enabled): Likewise.
4474 * valops.c (overload_resolution): Likewise.
4475 * valprint.h (struct value_print_options) <prettyformat_arrays,
4476 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4477 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4478 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4479 Likewise.
4480 * windows-nat.c (new_console): Likewise.
4481 (cygwin_exceptions): Likewise.
4482 (new_group): Likewise.
4483 (debug_exec): Likewise.
4484 (debug_events): Likewise.
4485 (debug_memory): Likewise.
4486 (debug_exceptions): Likewise.
4487 (useshell): Likewise.
4488 * windows-tdep.c (maint_display_all_tib): Likewise.
4489 * xml-support.c (debug_xml): Likewise.
4490
4491 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4492
4493 * source.c (prepare_path_for_appending): New function.
4494 (openp): Make use of new function.
4495 (find_and_open_source): Search for the compilation directory and
4496 source file as a relative path beneath the directory search path.
4497
4498 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4499
4500 * source-cache.c (source_cache::get_line_charpos): Catch
4501 exceptions and return false, this matches the behaviour documented
4502 in the header file.
4503
4504 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4505
4506 * ada-tasks.c (info_task): Remove quoting of the task's name.
4507
4508 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4509
4510 * symfile.c (auto_solib_add): Replace comment with a reference
4511 to the header file.
4512
4513 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4514
4515 * NEWS: Mention that gdb can now be compiled with Python 3
4516 on Windows.
4517
4518 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4519
4520 * maint.c (maint_print_section_data::maint_print_section_data):
4521 Force use of 'float log10 (float)' by casting the argument to
4522 float.
4523
4524 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4525
4526 * maint.c: Add 'cmath' include.
4527 (struct maint_print_section_data): New structure.
4528 (print_section_index): New function.
4529 (print_bfd_section_info): Add header comment, small whitespace
4530 cleanup, and update to call new print_section_index function.
4531 (print_objfile_section_info): Likewise.
4532 (maint_obj_section_from_bfd_section): New function.
4533 (print_bfd_section_info_maybe_relocated): New function.
4534 (maintenance_info_sections): Add header comment, always use
4535 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4536
4537 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4540 inner scope, add check that the objfile has psymtabs before
4541 checking psymtabs_addrmap.
4542 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4543
4544 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4545
4546 * NEWS: Announce that Ada task names are now shown at more places,
4547 and between quotes (except in info task output).
4548 * gdb/ada-tasks.c (task_to_str): New function.
4549 (display_current_task_id): Call task_to_str.
4550 (task_command_1): Likewise.
4551 (print_ada_task_info): In non-mi mode, Properly align headers and data
4552 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4553
4554 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4555
4556 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4557 prstatus.pr_lwp.pr_info instead of making it up.
4558
4559 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4560
4561 * auto-load.c (auto_load_expand_dir_vars): Update.
4562 * defs.h (gdb_datadir): Change to std::string.
4563 (python_libdir): Likewise.
4564 (relocate_gdb_directory): Change return type to std::string.
4565 * guile/guile.c (gdbscm_data_directory): Update.
4566 (initialize_scheme_side): Update.
4567 * jit.c (jit_reader_dir): Change to std::string.
4568 (jit_reader_load_command): Update.
4569 * main.c (gdb_datadir): Change to std::string.
4570 (python_libdir): Likewise.
4571 (set_gdb_data_directory): Update.
4572 (relocate_path): Change to return std::string.
4573 (relocate_gdb_directory): Change to return std::string.
4574 (relocate_gdbinit_path_maybe_in_datadir): Update.
4575 (captured_main_1): Update.
4576 * python/python.c (do_start_initialization): Update.
4577 * top.c (show_gdb_datadir): Update.
4578 * xml-syscall.c (xml_init_syscalls_info): Update.
4579 (init_syscalls_info): Update.
4580
4581 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4582
4583 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4584 out of get_init_files.
4585 (get_init_files): Update.
4586
4587 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4588
4589 * main.c (get_init_files): Change to use std::string.
4590 (captured_main_1): Update.
4591 (print_gdb_help): Update.
4592
4593 2019-09-11 Ali Tamur <tamur@google.com>
4594
4595 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4596 implementation.
4597
4598 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4599
4600 * dbxread.c (read_dbx_symtab): Update.
4601 * dwarf2read.c (load_partial_dies): Update.
4602 * mdebugread.c (parse_partial_symbols): Update.
4603 (handle_psymbol_enumerators): Update.
4604 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4605 * psymtab.c (add_psymbol_to_bcache): Likewise.
4606 (add_psymbol_to_list): Likewise.
4607 * symtab.c (symbol_set_names): Likewise.
4608 * symtab.h (symbol_set_names): Likewise.
4609 * xcoffread.c (scan_xcoff_symtab): Update.
4610
4611 2019-09-11 Tom Tromey <tom@tromey.com>
4612
4613 * symfile-mem.c (symbol_file_add_from_memory): Use
4614 bfd_set_filename.
4615 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4616 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4617
4618 2019-09-10 Tom Tromey <tromey@adacore.com>
4619
4620 * dwarf-index-write.c (write_psymbols): Extend error message.
4621 (debug_names::insert): Add Ada code.
4622 (debug_names::write_psymbols): Remove Ada check.
4623 (debug_names) <m_string_obstack>: New member.
4624 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4625 (gdb_index_symbol_name_matcher::matches): Remove.
4626 (mapped_index_base::find_name_components_bounds): Add "lang"
4627 parameter.
4628 (mapped_index_base::build_name_components): Also split names
4629 according to Ada syntax.
4630 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4631 type of "match_callback".
4632 (check_match, check_find_bounds_finds)
4633 (dw2_expand_symtabs_matching): Update.
4634 (dw2_debug_names_iterator): Add new constructor.
4635 (dw2_debug_names_map_matching_symbols): New function.
4636 (dw2_debug_names_expand_symtabs_matching): Update.
4637 (dwarf2_debug_names_functions): Use
4638 dw2_debug_names_map_matching_symbols.
4639
4640 2019-09-10 Tom Tromey <tromey@adacore.com>
4641
4642 * dwarf2read.c (dw2_get_file_names_reader): Add the
4643 CU's file name to the results.
4644
4645 2019-09-10 Tom Tromey <tromey@adacore.com>
4646
4647 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4648 map_matching_symbols. Update.
4649 * dwarf2read.c (dw2_map_matching_symbols): Update.
4650 * psymtab.c (match_partial_symbol): Change type; update.
4651 (psym_map_matching_symbols): Likewise.
4652 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4653 type; update.
4654 * symfile.h (struct quick_symbol_functions)
4655 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4656 Remove "match".
4657
4658 2019-09-10 Tom Tromey <tromey@adacore.com>
4659
4660 * psymtab.c (map_block): Remove.
4661 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4662 * symtab.c (iterate_over_symbols_terminated): New function.
4663 * symtab.c (iterate_over_symbols_terminated): Declare.
4664
4665 2019-09-10 Tom Tromey <tromey@adacore.com>
4666
4667 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4668 * language.h (struct language_defn) <la_iterate_over_symbols>:
4669 Return bool.
4670 * symtab.c (iterate_over_symbols): Return bool.
4671 * symtab.h (iterate_over_symbols): Return bool.
4672
4673 2019-09-10 Tom Tromey <tromey@adacore.com>
4674
4675 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4676 (add_nonlocal_symbols): Update.
4677 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4678 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4679 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4680 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4681 Change type of "callback". Remove "data".
4682
4683
4684 2019-09-09 Ali Tamur <tamur@google.com>
4685
4686 * dwarf2read.c (comp_unit_head): Update comment.
4687 (dwarf2_dwo_name): New function declaration.
4688 (dwarf_unit_type_name): New function declaration.
4689 (read_comp_unit_head): Add support for new compilation units,
4690 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4691 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4692 (currently named as "signature") in their header. Also clarify error
4693 messages.
4694 (lookup_dwo_id): New function. Returns the dwo id of the given
4695 compile unit.
4696 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4697 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4698 functions.
4699 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4700 (dwarf2_dwo_name): Get the dwo name if present.
4701 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4702 purposes.
4703
4704 2019-09-09 Tom Tromey <tom@tromey.com>
4705
4706 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4707
4708 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4709
4710 * python/python.c (do_start_initialization): Make progname_copy static,
4711 to avoid a leak report.
4712
4713 2019-09-08 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4716
4717 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4718
4719 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4720 Change type to gdb::optional<block_enum>.
4721 (dw2_symtab_iter_init): Change block_index parameter type
4722 to gdb::optional<block_enum>.
4723 (dw2_lookup_symbol): Change block_index parameter
4724 type to block_enum.c
4725 (dw2_debug_names_lookup_symbol): Likewise.
4726 * psymtab.c (psym_lookup_symbol): Likewise.
4727 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4728 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4729 Likewise.
4730
4731 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4732
4733 * defs.h (relocate_gdb_directory): Change int to bool in
4734 signature and rename flag to relocatable.
4735 * main.c (relocate_path): Likewise.
4736 (relocate_gdb_directory): Likewise.
4737
4738 2019-09-06 Alan Modra <amodra@gmail.com>
4739
4740 * coffread.c (coff_symfile_read): Constify filename variable.
4741 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4742 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4743 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4744 * solib.c (reload_shared_libraries_1): Likewise.
4745 * symfile.c (reread_symbols): Likewise.
4746 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4747 * solib-darwin.c (darwin_bfd_open): Likewise.
4748 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4749
4750 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4751
4752 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4753 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4754
4755 2019-09-03 Tom Tromey <tromey@adacore.com>
4756
4757 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4758 types.
4759 (has_negatives): Unbias a range type bound.
4760 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4761 * gdbtypes.c (operator==): Handle new field.
4762 (create_range_type): Add "bias" parameter.
4763 (create_static_range_type, resolve_dynamic_range): Update.
4764 * gdbtypes.h (struct range_bounds) <bias>: New member.
4765 (create_range_type): Add bias parameter.
4766 * printcmd.c (print_scalar_formatted): Unbias range types.
4767 * value.c (unpack_long): Unbias range types.
4768 (pack_long): Bias range types.
4769
4770 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4771
4772 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4773 probe arguments.
4774
4775 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4776
4777 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4778 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4779 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4780 (compile_probe_arg): Likewise.
4781 * probe.h (get_argument_count): Likewise.
4782 * solib-svr4.c (solib_event_probe_action): Likewise.
4783 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4784
4785 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4786
4787 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4788 code to here...
4789 (svr4_create_solib_event_breakpoints): ...from here.
4790
4791 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4792
4793 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4794 suffix from warning message.
4795
4796 2019-08-30 Tom Tromey <tom@tromey.com>
4797
4798 * tui/tui-winsource.h (struct tui_source_window_base)
4799 <refresh_all>: Don't declare.
4800 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4801 Remove.
4802 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4803 tui_show_locator_content.
4804 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4805 declare.
4806 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4807 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4808 declare.
4809
4810 2019-08-30 Tom Tromey <tom@tromey.com>
4811
4812 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4813
4814 2019-08-30 Tom Tromey <tom@tromey.com>
4815
4816 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4817 Remove unnecessary forward declarations.
4818
4819 2019-08-30 Tom Tromey <tom@tromey.com>
4820
4821 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4822 rerender.
4823 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4824 tui_show_locator_content.
4825
4826 2019-08-30 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4829 (tui_locator_window::rerender): Rewrite using body of previous
4830 tui_show_locator_content.
4831
4832 2019-08-30 Tom Tromey <tom@tromey.com>
4833
4834 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4835 set_locator_fullname>: New methods.
4836 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4837 Rename from tui_set_locator_fullname.
4838 (tui_locator_window::set_locator_info): Rename from
4839 tui_set_locator_info. Return bool.
4840 (tui_update_locator_fullname, tui_show_frame_info): Update.
4841
4842 2019-08-30 Tom Tromey <tom@tromey.com>
4843
4844 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4845
4846 2019-08-30 Tom Tromey <tom@tromey.com>
4847
4848 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4849 call touchwin.
4850
4851 2019-08-30 Tom Tromey <tom@tromey.com>
4852
4853 * tui/tui-wingeneral.c (box_win): Assume win_info and
4854 win_info->handle cannot be NULL.
4855
4856 2019-08-30 Tom Tromey <tom@tromey.com>
4857
4858 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4859 refresh_window>: Declare.
4860 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4861 resize.
4862 (tui_data_item_window::rerender): Rename from
4863 tui_display_register.
4864 (tui_data_item_window::refresh_window): New method.
4865 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4866 no-op.
4867
4868 2019-08-30 Tom Tromey <tom@tromey.com>
4869
4870 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4871 regs_column_count, current_group>: Move later. Now private.
4872 <get_current_group>: New method.
4873 * tui/tui-regs.c (tui_reg_command): Update.
4874 * tui/tui-layout.c (tui_set_layout): Update.
4875
4876 2019-08-30 Tom Tromey <tom@tromey.com>
4877
4878 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4879 (tui_data_window::rerender): Don't call
4880 check_and_display_highlight_if_needed.
4881 (tui_data_window::refresh_all): Remove call to
4882 erase_data_content.
4883
4884 2019-08-30 Tom Tromey <tom@tromey.com>
4885
4886 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4887 (tui_data_window::display_registers_from)
4888 (tui_data_window::display_reg_element_at_line)
4889 (tui_data_window::display_registers_from_line): Remove checks of
4890 "empty".
4891
4892 2019-08-30 Tom Tromey <tom@tromey.com>
4893
4894 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4895 Don't declare.
4896 * tui/tui-regs.c (tui_data_window::show_registers): Call
4897 rerender.
4898 (tui_data_window::rerender): Rename from display_all_data.
4899 (tui_data_window::rerender): Remove old implementation.
4900
4901 2019-08-30 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4904 text.
4905 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4906
4907 2019-08-29 Bernhard Wodok <barto@gmx.net>
4908 Sergio Durigan Junior <sergiodj@redhat.com>
4909
4910 PR win32/24284
4911 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4912
4913 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4914
4915 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4916 when searching for types.
4917
4918 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4919
4920 * f-lang.c (f_language_defn): Use f_print_typedef.
4921 * f-lang.h (f_print_typedef): Declare.
4922 * f-typeprint.c (f_print_typedef): Define.
4923
4924 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4925
4926 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4927
4928 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4929
4930 * cli/cli-utils.c (info_print_options_defs): Delete.
4931 (make_info_print_options_def_group): Delete.
4932 (extract_info_print_options): Delete.
4933 (info_print_command_completer): Delete.
4934 (info_print_args_help): Add extra parameter, and optionally
4935 include text about -n flag.
4936 * cli/cli-utils.h (struct info_print_options): Delete.
4937 (extract_info_print_options): Delete declaration.
4938 (info_print_command_completer): Delete declaration.
4939 (info_print_args_help): Add extra parameter, extend header
4940 comment.
4941 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4942 search_symbols.
4943 * stack.c (struct info_print_options): New type.
4944 (info_print_options_defs): New file scoped variable.
4945 (make_info_print_options_def_group): New static function.
4946 (info_print_command_completer): New static function.
4947 (info_locals_command): Update to use new local functions.
4948 (info_args_command): Likewise.
4949 (_initialize_stack): Add extra parameter to calls to
4950 info_print_args_help.
4951 * symtab.c (search_symbols): Add extra parameter, use this to
4952 possibly excluse non-debug symbols.
4953 (symtab_symbol_info): Add extra parameter, which is passed on to
4954 search_symbols.
4955 (struct info_print_options): New type.
4956 (info_print_options_defs): New file scoped variable.
4957 (make_info_print_options_def_group): New static function.
4958 (info_print_command_completer): New static function.
4959 (info_variables_command): Update to use local functions, and pass
4960 extra parameter through to symtab_symbol_info.
4961 (info_functions_command): Likewise.
4962 (info_types_command): Pass additional argument through to
4963 symtab_symbol_info.
4964 (rbreak_command): Pass extra argument to search_symbols.
4965 (_initialize_symtab): Add extra arguments for calls to
4966 info_print_args_help, and update help text for 'info variables',
4967 'whereis', and 'info functions' commands.
4968 * symtab.h (search_symbols): Add extra argument to declaration.
4969 * NEWS: Mention new flags.
4970
4971 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4972
4973 * symtab.c (lookup_static_symbol): Call the new function (and move
4974 it down to be next to lookup_global_symbol).
4975 (struct global_sym_lookup_data): Add block_enum member and rename to...
4976 (struct global_or_static_sym_lookup_data): ...this.
4977 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4978 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4979 (lookup_symbol_global_or_static_iterator_cb): ...this.
4980 (lookup_global_or_static_symbol): New function.
4981 (lookup_global_symbol): Call new function.
4982
4983 2019-08-26 Tom de Vries <tdevries@suse.de>
4984
4985 PR c++/24852
4986 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4987 when pc_probe.prob == NULL.
4988
4989 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4990
4991 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4992 variable symbol_linkage to symbol_linkage_.
4993
4994 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4995
4996 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4997 represent whether the symbol is static, dynamic, or we don't
4998 know.
4999
5000 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5001
5002 * gdb/rx-tdep.c (rx_register_names): New.
5003 (rx_register_name): Delete.
5004 (rx_psw_type): Delete.
5005 (rx_fpsw_type): Delete.
5006 (rx_register_type): Delete.
5007 (rx_gdbarch_init): Convert target-descriptions.
5008 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5009 * gdb/features/Makefile: Add rx.xml.
5010 * gdb/features/rx.xml: New.
5011 * gdb/features/rx.c: Generated.
5012 * gdb/NEWS: Mention target description support.
5013
5014 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5015
5016 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5017 *slot_ptr.
5018
5019 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5020
5021 * configure.ac: Don't check for 'dlfcn.h' (moved to
5022 gdbsupport/common.m4).
5023 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5024 'gdbsupport/'.
5025 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5026 * compile/compile-c-support.c: Include
5027 'gdbsupport/gdb-dlfcn.h'.
5028 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5029 * gdb-dlfcn.c: Move to...
5030 * gdbsupport/gdb-dlfcn.c: ... here.
5031 * gdb-dlfcn.h: Move to...
5032 * gdbsupport/gdb-dlfcn.h: ... here.
5033
5034 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5035
5036 * nios2-tdep.c (struct reg_value): Improve comments. Make
5037 the offset field signed.
5038
5039 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5040
5041 * python/lib/gdb/__init__.py (_execute_file): New function.
5042 * python/python.c (python_run_simple_file): Call gdb._execute_file
5043 on Windows.
5044
5045 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5046
5047 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5048 all uses as this was never set to anything but a zero value.
5049
5050 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5051
5052 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5053
5054 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5055
5056 * tui/tui-data.h (tui_gen_win_info): Add an =default
5057 move constructor, required by some GCC versions.
5058
5059 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5060
5061 * go32-nat.c (go32_sysinfo): Add hygon_p.
5062
5063 2019-08-20 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5066 line_from_reg_element_no, first_reg_element_no_inline,
5067 display_all_data, delete_data_content_windows,
5068 erase_data_content>: Now private.
5069
5070 2019-08-20 Tom Tromey <tom@tromey.com>
5071
5072 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5073 (tui_unhighlight_win, tui_highlight_win)
5074 (tui_win_info::make_window): Update.
5075 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5076
5077 2019-08-20 Tom Tromey <tom@tromey.com>
5078
5079 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5080 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5081 (MAX_PID_WIDTH): Move to tui-stack.c.
5082 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5083 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5084 (MAX_PID_WIDTH): Move from tui-data.h.
5085
5086 2019-08-20 Tom Tromey <tom@tromey.com>
5087
5088 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5089 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5090 (box_win): Update.
5091 (tui_gen_win_info::make_window): Rename from tui_make_window.
5092 (tui_win_info::make_window): New method.
5093 (tui_gen_win_info::make_visible): Update.
5094 * tui/tui-source.c (tui_source_window::set_contents): Update.
5095 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5096 (tui_data_window::display_registers_from): Update.
5097 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5098 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5099 Declare.
5100 <can_box>: Remove.
5101 <title>: Remove.
5102 (struct tui_win_info) <make_window>: Declare.
5103 <can_box>: Now virtual.
5104 <title>: New member.
5105 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5106 * tui/tui-command.c (tui_cmd_window::resize): Update.
5107
5108 2019-08-20 Tom Tromey <tom@tromey.com>
5109
5110 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5111 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5112 (tui_data_window::check_register_values): Update.
5113
5114 2019-08-20 Tom Tromey <tom@tromey.com>
5115
5116 * tui/tui-regs.h (struct tui_data_window): Use
5117 DISABLE_COPY_AND_ASSIGN.
5118 <regs_content>: Change type, removing unique_ptr.
5119 <tui_data_window>: Add move constructor.
5120 * tui/tui-regs.c (tui_data_window::show_registers)
5121 (tui_data_window::show_register_group)
5122 (tui_data_window::display_registers_from)
5123 (tui_data_window::display_registers_from)
5124 (tui_data_window::first_data_item_displayed)
5125 (tui_data_window::delete_data_content_windows)
5126 (tui_data_window::rerender, tui_data_window::refresh_window)
5127 (tui_data_window::check_register_values): Update.
5128
5129 2019-08-20 Tom Tromey <tom@tromey.com>
5130
5131 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5132 show_register_group>: Declare.
5133 (tui_show_register_group): Don't declare.
5134 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5135 tui_show_registers.
5136 (tui_data_window::show_register_group): Rename from
5137 tui_show_register_group.
5138 (tui_data_window::check_register_values, tui_reg_command):
5139 Update.
5140 * tui/tui-layout.c (tui_set_layout): Update.
5141
5142 2019-08-20 Tom Tromey <tom@tromey.com>
5143
5144 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5145 Declare.
5146 (tui_check_register_values): Don't declare.
5147 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5148 from tui_check_register_values.
5149 * tui/tui-hooks.c (tui_register_changed): Update.
5150
5151 2019-08-20 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui-regs.c (tui_reg_layout): Move later.
5154 (tui_show_registers): Don't enable TUI mode or change layout.
5155
5156 2019-08-20 Tom Tromey <tom@tromey.com>
5157
5158 * tui/tui-regs.h (struct tui_data_item_window)
5159 <~tui_data_item_window>: Remove.
5160 <content>: Now a unique_xmalloc_ptr.
5161 * tui/tui-regs.c (tui_register_format): Return a
5162 unique_xmalloc_ptr.
5163 (tui_get_register): Update.
5164 (~tui_data_item_window): Remove.
5165 (tui_data_window::display_registers_from, tui_display_register):
5166 Update.
5167 * tui/tui-io.h (tui_expand_tabs): Update.
5168 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5169 Remove "col" parameter.
5170
5171 2019-08-20 Tom Tromey <tom@tromey.com>
5172
5173 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5174 field.
5175 * tui/tui-regs.c (~tui_data_item_window): Update.
5176
5177 2019-08-20 Tom Tromey <tom@tromey.com>
5178
5179 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5180 earlier.
5181
5182 2019-08-20 Tom Tromey <tom@tromey.com>
5183
5184 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5185
5186 2019-08-20 Tom Tromey <tom@tromey.com>
5187
5188 * tui/tui-source.h (struct tui_source_window): Update.
5189 * tui/tui-regs.c (tui_show_registers): Update.
5190 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5191 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5192 (NO_REGS_STRING): Remove defines.
5193
5194 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5195
5196 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5197 unnecessary thread walk if remote doesn't support the packet.
5198
5199 2019-08-19 Tom Tromey <tromey@adacore.com>
5200
5201 * python/py-value.c (value_has_field): Fix indentation.
5202
5203 2019-08-19 Tom Tromey <tromey@adacore.com>
5204
5205 * printcmd.c (do_one_display, info_display_command): Update.
5206 * block.h (contained_in): Return bool. Add allow_nested
5207 parameter.
5208 * block.c (contained_in): Return bool. Add allow_nested
5209 parameter.
5210
5211 2019-08-19 Tom Tromey <tom@tromey.com>
5212
5213 * configure: Rebuild.
5214 * configure.ac: Disallow the combination of -static-libstdc++ and
5215 source highlight.
5216 * source-cache.c (get_language_name): Handle rust.
5217 (source_cache::get_source_lines): Ignore highlighting exceptions.
5218
5219 2019-08-16 Tom Tromey <tom@tromey.com>
5220
5221 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5222 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5223 (struct tui_source_window_base) <make_visible, refresh_window,
5224 resize>: Remove methods.
5225 <execution_info>: Remove field.
5226 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5227 (tui_show_source_line, tui_source_window_base)
5228 (~tui_source_window_base): Update.
5229 (tui_source_window_base::resize)
5230 (tui_source_window_base::make_visible)
5231 (tui_source_window_base::refresh_window): Remove.
5232 (tui_source_window_base::update_exec_info): Update.
5233 * tui/tui-source.c (tui_source_window::set_contents): Update.
5234 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5235
5236 2019-08-16 Tom Tromey <tom@tromey.com>
5237
5238 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5239 deprecated_query_hook.
5240
5241 2019-08-16 Tom Tromey <tom@tromey.com>
5242
5243 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5244 (tui_update_source_windows_with_line): Update.
5245 * tui/tui-source.h (struct tui_source_window)
5246 <show_symtab_source>: Declare.
5247 (tui_show_symtab_source): Don't declare.
5248 * tui/tui-source.c (tui_show_symtab_source): Rename from
5249 tui_show_symtab_source.
5250
5251 2019-08-16 Tom Tromey <tom@tromey.com>
5252
5253 * tui/tui-winsource.h (struct tui_source_window_base)
5254 <set_contents>: Declare.
5255 * tui/tui-winsource.c
5256 (tui_source_window_base::update_source_window_as_is): Update.
5257 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5258 Declare.
5259 (tui_set_source_content): Don't declare.
5260 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5261 tui_set_source_content.
5262 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5263 Declare.
5264 (tui_set_disassem_content): Don't declare.
5265 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5266 tui_set_disassem_content.
5267
5268 2019-08-16 Tom Tromey <tom@tromey.com>
5269
5270 * tui/tui-winsource.h (struct tui_source_window_base)
5271 <update_breakpoint_info>: Declare.
5272 (tui_update_breakpoint_info): Don't declare.
5273 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5274 (tui_update_all_breakpoint_info): Update.
5275 (tui_source_window_base::update_breakpoint_info): Rename from
5276 tui_update_breakpoint_info.
5277 (tui_source_window_base::update_exec_info): Update.
5278
5279 2019-08-16 Tom Tromey <tom@tromey.com>
5280
5281 * tui/tui-winsource.h (struct tui_source_window_base)
5282 <update_source_window>: Declare.
5283 (tui_update_source_window): Don't declare.
5284 * tui/tui-winsource.c
5285 (tui_source_window_base::update_source_window): Rename from
5286 tui_update_source_window.
5287 (tui_source_window_base::rerender): Update.
5288 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5289 * tui/tui-disasm.c (tui_show_disassem)
5290 (tui_show_disassem_and_update_source)
5291 (tui_disasm_window::maybe_update): Update.
5292
5293 2019-08-16 Tom Tromey <tom@tromey.com>
5294
5295 * tui/tui-winsource.h (struct tui_source_window_base)
5296 <update_source_window_as_is>: Declare.
5297 (tui_update_source_window_as_is): Don't declare.
5298 * tui/tui-winsource.c (tui_update_source_window): Update
5299 (tui_source_window_base::update_source_window_as_is): Rename from
5300 tui_update_source_window_as_is.
5301 (tui_source_window_base::refill): Update.
5302 * tui/tui-source.c (tui_show_symtab_source): Update.
5303 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5304 Update.
5305
5306 2019-08-16 Tom Tromey <tom@tromey.com>
5307
5308 * tui/tui-winsource.h (tui_update_source_window)
5309 (tui_update_source_window_as_is): Remove "noerror" parameter.
5310 * tui/tui-winsource.c (tui_update_source_window)
5311 (tui_update_source_window_as_is): Remove "noerror" parameter.
5312 (tui_update_source_windows_with_addr)
5313 (tui_update_source_windows_with_line)
5314 (tui_source_window_base::rerender)
5315 (tui_source_window_base::refill): Update.
5316 * tui/tui-source.h (tui_set_source_content)
5317 (tui_show_symtab_source): Remove "noerror" parameter.
5318 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5319 parameter.
5320 (tui_show_symtab_source): Likewise.
5321 (tui_source_window::maybe_update): Update.
5322 * tui/tui-disasm.c (tui_show_disassem)
5323 (tui_show_disassem_and_update_source)
5324 (tui_disasm_window::do_scroll_vertical)
5325 (tui_disasm_window::maybe_update): Update.
5326
5327 2019-08-16 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui.c (tui_is_window_visible): Update.
5330 * tui/tui-wingeneral.c (tui_make_window)
5331 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5332 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5333 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5334 (tui_set_win_height_command, parse_scrolling_args): Update.
5335 * tui/tui-source.c (tui_source_window::style_changed): Update.
5336 * tui/tui-regs.c (tui_show_registers)
5337 (tui_data_window::first_data_item_displayed)
5338 (tui_data_window::delete_data_content_windows)
5339 (tui_check_register_values, tui_reg_command): Update.
5340 * tui/tui-disasm.c (tui_show_disassem): Update.
5341 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5342 method.
5343 <is_visible>: Remove field.
5344 * tui/tui-data.c (tui_next_win, tui_prev_win)
5345 (tui_delete_invisible_windows): Update.
5346
5347 2019-08-16 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-winsource.h (struct tui_source_window_base)
5350 <m_has_locator>: Remove.
5351 * tui/tui-layout.c (show_source_disasm_command, show_data)
5352 (show_source_or_disasm_and_command): Update.
5353
5354 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5355
5356 * NEWS (Other MI changes): New subsection.
5357 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5358 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5359 * arch-utils.c (default_get_pc_address_flags): New function.
5360 * arch-utils.h (default_get_pc_address_flags): New declaration.
5361 * gdbarch.sh: Add get_pc_address_flags.
5362 * gdbarch.c: Regenerate.
5363 * gdbarch.h: Likewise.
5364 * stack.c (print_pc): New function.
5365 (print_frame_info) (print_frame): Call print_pc.
5366
5367 2019-08-16 Tom de Vries <tdevries@suse.de>
5368
5369 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5370 print_objfile_section_info.
5371
5372 2019-08-15 Tom Tromey <tom@tromey.com>
5373
5374 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5375 calling update_cmdwin_start_line.
5376 * tui/tui-winsource.h (struct tui_source_window_base)
5377 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5378 <rerender>: Declare.
5379 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5380 Call rerender.
5381 (tui_source_window_base::set_new_height): Remove.
5382 (tui_source_window_base::rerender): Rename from
5383 do_make_visible_with_new_height.
5384 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5385 resize method.
5386 (tui_win_info::make_invisible_and_set_new_height)
5387 (tui_win_info::make_visible_with_new_height): Remove.
5388 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5389 Declare.
5390 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5391 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5392 do_make_visible_with_new_height>: Don't declare.
5393 <rerender>: Declare.
5394 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5395 set_new_height.
5396 (tui_data_window::do_make_visible_with_new_height): Remove.
5397 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5398 call tui_show_locator_content.
5399 (tui_gen_win_info::resize): Call rerender.
5400 (show_source_or_disasm_and_command): Don't call
5401 tui_show_locator_content.
5402 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5403 method.
5404 (struct tui_win_info) <rerender>: Declare.
5405 <set_new_height, make_invisible_and_set_new_height,
5406 make_visible_with_new_height>: Don't declare.
5407 * tui/tui-data.c (tui_win_list::rerender): New method.
5408 * tui/tui-command.h (struct tui_cmd_window)
5409 <do_make_visible_with_new_height>: Don't declare.
5410 * tui/tui-command.c
5411 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5412
5413 2019-08-15 Tom Tromey <tromey@adacore.com>
5414
5415 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5416 * ada-lang.c (ada_enum_name): Likewise.
5417
5418 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5419
5420 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5421 leading underscore.
5422 (GdbOutputErrorFile): Likewise.
5423 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5424 accordingly.
5425 (execute_unwinders): Rename to have a leading underscore.
5426 (auto_load_packages): Likewise.
5427 (global scope): Adjust call to auto_load_packages accordingly.
5428 (GdbSetPythonDirectory): Likewise.
5429 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5430 instead of execute_unwinders.
5431
5432 2019-08-15 Tom Tromey <tom@tromey.com>
5433
5434 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5435 (show_data): Don't change window visibility.
5436 (tui_gen_win_info::resize): Remove special case for command
5437 window. Use wresize, when available.
5438 (show_source_or_disasm_and_command): Don't change window
5439 visibility.
5440 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5441 <make_visible>: New method.
5442 * tui/tui-command.c (tui_cmd_window::resize): New method.
5443
5444 2019-08-15 Tom Tromey <tom@tromey.com>
5445
5446 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5447 (struct tui_source_windows): New.
5448 * tui/tui-winsource.c (tui_display_main): Update.
5449 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5450 (new_height_ok, parse_scrolling_args): Update.
5451 * tui/tui-layout.c (show_layout, show_data): Update.
5452 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5453 (tui_add_to_source_windows): Don't declare.
5454 * tui/tui-data.c (source_windows, tui_source_windows)
5455 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5456
5457 2019-08-15 Tom Tromey <tom@tromey.com>
5458
5459 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5460 Rename from reset.
5461 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5462 * tui/tui-layout.c (show_source_disasm_command, show_data):
5463 Update.
5464 (tui_gen_win_info::resize): Rename.
5465 (show_source_or_disasm_and_command): Update.
5466 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5467 reset.
5468
5469 2019-08-15 Tom Tromey <tom@tromey.com>
5470
5471 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5472 * tui/tui-interp.c (tui_interp::init): Don't call
5473 tui_initialize_static_data.
5474 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5475
5476 2019-08-15 Tom Tromey <tom@tromey.com>
5477
5478 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5479 examine tui_win_list.
5480
5481 2019-08-15 Tom Tromey <tom@tromey.com>
5482
5483 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5484 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5485 tui_clear_source_content.
5486 (tui_clear_source_content): Remove.
5487 (tui_source_window_base::do_erase_source_content): Hoist call to
5488 content.clear().
5489 * tui/tui-stack.c (tui_show_frame_info): Don't call
5490 tui_clear_source_content.
5491
5492 2019-08-15 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-winsource.h (struct tui_source_window_base)
5495 <do_erase_source_content>: New method.
5496 <erase_source_content>: New method.
5497 (tui_erase_source_content): Don't declare.
5498 * tui/tui-winsource.c (tui_clear_source_content): Update.
5499 (tui_source_window_base::do_erase_source_content): Rename from
5500 tui_erase_source_content.
5501 (tui_source_window_base::show_source_content): Update.
5502 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5503 * tui/tui-source.h (struct tui_source_window)
5504 <erase_source_content>: New method.
5505 * tui/tui-disasm.h (struct tui_disasm_window)
5506 <erase_source_content>: New method.
5507
5508 2019-08-15 Tom Tromey <tom@tromey.com>
5509
5510 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5511 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5512 constructor.
5513 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5514 * tui/tui-source.c (tui_set_source_content): Update.
5515 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5516
5517 2019-08-15 Tom Tromey <tom@tromey.com>
5518
5519 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5520 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5521 tui-source.c.
5522 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5523 Declare.
5524 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5525 method.
5526 (tui_source_window::maybe_update): Update.
5527
5528 2019-08-15 Tom Tromey <tom@tromey.com>
5529
5530 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5531 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5532 tui-disasm.c.
5533 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5534 Declare.
5535 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5536 method.
5537 (tui_disasm_window::maybe_update): Update.
5538
5539 2019-08-15 Tom Tromey <tom@tromey.com>
5540
5541 * tui/tui-winsource.h (struct tui_source_window_base)
5542 <maybe_update>: Declare.
5543 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5544 method.
5545 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5546 Declare.
5547 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5548 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5549 Declare.
5550 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5551
5552 2019-08-15 Tom Tromey <tom@tromey.com>
5553
5554 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5555
5556 2019-08-15 Tom Tromey <tom@tromey.com>
5557
5558 * tui/tui-wingeneral.c: Include tui-stack.h.
5559 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5560 (struct tui_locator_window): Move from tui-data.h.
5561 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5562 (tui_initialize_static_data): Move from tui-data.c.
5563 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5564 (struct tui_locator_window): Move to tui-stack.c.
5565 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5566 (tui_initialize_static_data): Move to tui-stack.c.
5567
5568 2019-08-15 Tom Tromey <tom@tromey.com>
5569
5570 * tui/tui-layout.c (show_source_disasm_command)
5571 (show_source_or_disasm_and_command): Use make_visible method, not
5572 tui_make_window.
5573 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5574 Remove.
5575
5576 2019-08-15 Tom Tromey <tom@tromey.com>
5577
5578 * tui/tui-wingeneral.h (tui_make_window): Update.
5579 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5580 parameter.
5581 (tui_gen_win_info::make_visible): Update.
5582 * tui/tui-regs.c (tui_data_window::display_registers_from):
5583 Update.
5584 * tui/tui-layout.c (show_source_disasm_command)
5585 (show_source_or_disasm_and_command): Update.
5586 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5587 (enum tui_box): Remove.
5588 (struct tui_win_info) <can_box>: New method.
5589 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5590 method.
5591
5592 2019-08-15 Tom de Vries <tdevries@suse.de>
5593
5594 * linux-nat-trad.c: Include gdbarch.h.
5595
5596 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5597
5598 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5599 register sizes.
5600
5601 2019-08-14 Tom Tromey <tromey@adacore.com>
5602
5603 * darwin-nat.c: Include gdbarch.h.
5604 * darwin-nat-info.c: Include gdbarch.h.
5605
5606 2019-08-13 Tom Tromey <tom@tromey.com>
5607
5608 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5609 Remove.
5610 * tui/tui-data.c (tui_initialize_static_data): Update.
5611
5612 2019-08-13 Tom Tromey <tom@tromey.com>
5613
5614 * tui/tui-winsource.h (struct tui_exec_info_window)
5615 <~tui_exec_info_window, maybe_allocate_content, get_content,
5616 m_content>: Remove.
5617 (struct tui_source_window_base) <set_exec_info_content,
5618 show_exec_info_content>: Don't declare.
5619 * tui/tui-winsource.c
5620 (tui_exec_info_window::maybe_allocate_content): Remove.
5621 (tui_source_window_base::update_exec_info): Rename from
5622 set_exec_info_content.
5623 (tui_source_window_base::show_exec_info_content)
5624 (tui_source_window_base::update_exec_info): Remove.
5625
5626 2019-08-13 Tom Tromey <tom@tromey.com>
5627
5628 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5629 declare.
5630 * tui/tui-winsource.c (tui_update_source_window_as_is)
5631 (tui_update_source_windows_with_addr, tui_erase_source_content):
5632 Update.
5633 (tui_clear_exec_info_content): Remove.
5634
5635 2019-08-13 Tom Tromey <tom@tromey.com>
5636
5637 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5638 declare.
5639 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5640 call tui_erase_exec_info_content.
5641 (tui_clear_exec_info_content): Rename from
5642 tui_erase_exec_info_content.
5643 (tui_clear_exec_info_content): Delete.
5644
5645 2019-08-13 Tom Tromey <tom@tromey.com>
5646
5647 * tui/tui-winsource.h (struct tui_source_window_base)
5648 <show_exec_info_content>: Declare.
5649 (tui_show_exec_info_content): Don't declare.
5650 * tui/tui-winsource.c
5651 (tui_source_window_base::show_exec_info_content): Rename from
5652 tui_show_exec_info_content.
5653 (tui_source_window_base::update_exec_info): Update.
5654
5655 2019-08-13 Tom Tromey <tom@tromey.com>
5656
5657 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5658 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5659 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5660 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5661 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5662 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5663 ... here.
5664
5665 2019-08-13 Tom Tromey <tom@tromey.com>
5666
5667 * tui/tui-winsource.h (struct tui_source_window_base)
5668 <update_exec_info>: Declare.
5669 (tui_update_exec_info): Don't declare.
5670 * tui/tui-winsource.c (tui_update_source_window_as_is)
5671 (tui_source_window_base::refresh_all)
5672 (tui_update_all_breakpoint_info): Update.
5673 (tui_source_window_base::update_exec_info): Rename from
5674 tui_update_exec_info.
5675 * tui/tui-stack.c (tui_show_frame_info): Update.
5676
5677 2019-08-13 Tom Tromey <tom@tromey.com>
5678
5679 * tui/tui-winsource.h (struct tui_source_window_base)
5680 <set_exec_info_content>: Declare.
5681 (tui_set_exec_info_content): Don't declare.
5682 * tui/tui-winsource.c
5683 (tui_source_window_base::set_exec_info_content): Rename from
5684 tui_set_exec_info_content.
5685 (tui_update_exec_info): Update.
5686
5687 2019-08-13 Tom Tromey <tom@tromey.com>
5688
5689 * tui/tui-winsource.h (struct tui_source_window_base)
5690 <show_source_content>: Declare.
5691 (tui_show_source_content): Don't declare.
5692 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5693 (tui_source_window_base::show_source_content): Rename from
5694 tui_show_source_content.
5695 (tui_source_window_base::refresh_all): Update.
5696 * tui/tui-layout.c (show_source_disasm_command)
5697 (show_source_or_disasm_and_command): Update.
5698
5699 2019-08-13 Tom Tromey <tom@tromey.com>
5700
5701 * tui/tui-winsource.c (tui_erase_source_content)
5702 (tui_show_source_content, tui_source_window_base::refresh_all):
5703 Update.
5704 * tui/tui-wingeneral.h
5705 (tui_check_and_display_highlight_if_needed): Don't declare.
5706 * tui/tui-wingeneral.c
5707 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5708 check_and_display_highlight_if_needed.
5709 * tui/tui-win.c (tui_rehighlight_all)
5710 (tui_win_info::make_visible_with_new_height): Update.
5711 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5712 (tui_data_window::erase_data_content)
5713 (tui_data_window::display_all_data): Update.
5714 * tui/tui-data.h (struct tui_win_info)
5715 <check_and_display_highlight_if_needed>: Declare.
5716
5717 2019-08-13 Tom Tromey <tom@tromey.com>
5718
5719 * tui/tui-win.c (tui_resize_all): Call
5720 tui_delete_invisible_windows.
5721 * tui/tui-layout.c (show_layout): Call
5722 tui_delete_invisible_windows.
5723 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5724 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5725
5726 2019-08-13 Tom Tromey <tom@tromey.com>
5727
5728 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5729 tui_add_win_to_layout.
5730
5731 2019-08-13 Tom Tromey <tom@tromey.com>
5732
5733 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5734 * tui/tui-layout.c (tui_default_win_height): Now static.
5735
5736 2019-08-13 Tom Tromey <tom@tromey.com>
5737
5738 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5739 single switch.
5740 (show_source_disasm_command, show_source_or_disasm_and_command):
5741 Don't check current layout.
5742
5743 2019-08-13 Tom Tromey <tom@tromey.com>
5744
5745 * tui/tui-wingeneral.c (make_all_visible): Remove.
5746 (tui_make_all_invisible): Simplify.
5747 * tui/tui-layout.c (tui_make_all_invisible): Move from
5748 tui-wingeneral.c; simplify.
5749 (show_layout): Hoist call to tui_make_all_invisible.
5750 (show_data): Don't call tui_make_all_invisible.
5751
5752 2019-08-13 Tom Tromey <tom@tromey.com>
5753
5754 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5755 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5756
5757 2019-08-13 Tom Tromey <tom@tromey.com>
5758
5759 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5760 tui-data.c.
5761 (show_source_disasm_command, show_data)
5762 (show_source_or_disasm_and_command): Don't use
5763 tui_set_current_layout_to.
5764 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5765 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5766 tui-layout.c.
5767 (tui_set_current_layout_to): Remove.
5768
5769 2019-08-13 Tom Tromey <tom@tromey.com>
5770
5771 * tui/tui-layout.c (tui_set_layout): Update.
5772 * tui/tui-data.h (struct tui_layout_def): Remove.
5773 (tui_layout_def): Don't declare.
5774 * tui/tui-data.c (layout_def): Remove.
5775 (tui_layout_def): Remove.
5776
5777 2019-08-13 Tom Tromey <tom@tromey.com>
5778
5779 * tui/tui-winsource.h (struct tui_source_window_base)
5780 <clear_detail>: No longer "override".
5781 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5782 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5783 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5784 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5785 Remove.
5786 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5787
5788 2019-08-13 Tom Tromey <tromey@adacore.com>
5789
5790 * tracepoint.c: Don't include readline.h or history.h.
5791
5792 2019-08-12 Tom Tromey <tom@tromey.com>
5793
5794 * configure: Rebuild.
5795 * configure.ac: Check for readline 7.
5796 * NEWS: Mention readline 7 requirement.
5797 * README: Update.
5798
5799 2019-08-12 Tom Tromey <tom@tromey.com>
5800
5801 * mingw-hdep.c (gdb_select): Remove readline hack.
5802
5803 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5804
5805 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5806 when the function fails.
5807
5808 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5809
5810 * s390-tdep.c (s390_type_align): New function.
5811 (s390_gdbarch_init): Set it as type_align gdbarch method.
5812
5813 2019-08-09 Tom de Vries <tdevries@suse.de>
5814
5815 PR gdb/24591
5816 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5817 pc_low with relocation offset.
5818
5819 2019-08-07 Tom Tromey <tromey@adacore.com>
5820
5821 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5822 (print_frame_args): Update.
5823 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5824 Update.
5825 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5826 * frame.h (struct frame_arg): Add initializers.
5827 <error>: Now a unique_xmalloc_ptr.
5828
5829 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5830
5831 * NEWS: Expand the Pointer Authentication entry.
5832 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5833 (aarch64_frame_unmask_lr): ... to this.
5834 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5835 Call aarch64_frame_unmask_lr.
5836 * frame.c (struct frame_info): Add "masked" variable.
5837 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5838 (fprint_frame): Check for masked pc.
5839 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5840 declarations.
5841 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5842 * stack.c (print_frame): Check for masked pc.
5843
5844 2019-08-06 Tom Tromey <tom@tromey.com>
5845
5846 * stabsread.c (patch_block_stabs, read_one_struct_field)
5847 (read_enum_type): Use obstack_strndup.
5848 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5849 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5850 * dwarf2read.c (guess_full_die_structure_name)
5851 (anonymous_struct_prefix): Use obstack_strndup.
5852 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5853 * c-exp.y (yylex): Use obstack_strndup.
5854 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5855 (write_var_or_type): Use obstack_strndup.
5856
5857 2019-08-06 Tom Tromey <tom@tromey.com>
5858
5859 * symfile.c (reread_symbols): Use obstack_strdup.
5860 * stabsread.c (read_type): Use obstack_strdup.
5861 * gdb_obstack.h (obstack_strdup): New overload.
5862 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5863 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5864 (dwarf2_canonicalize_name): Use obstack_strdup.
5865 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5866 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5867 Use obstack_strdup.
5868
5869 2019-08-06 Tom Tromey <tom@tromey.com>
5870
5871 * gdb_obstack.h (obstack_strdup): Define.
5872 * gdb_obstack.c (obstack_strdup): Don't define.
5873
5874 2019-08-06 Tom Tromey <tom@tromey.com>
5875
5876 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5877 obstack_strdup.
5878 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5879 obstack_strdup.
5880 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5881 * stabsread.c (common_block_start): Use obstack_strdup.
5882 * objfiles.c (set_objfile_main_name, objfile): Use
5883 obstack_strdup.
5884 * namespace.c (add_using_directive): Use obstack_strdup.
5885 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5886 * jit.c (finalize_symtab): Use obstack_strdup.
5887 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5888 (guess_partial_die_structure_name, partial_die_info::fixup)
5889 (dwarf2_name): Use obstack_strdup.
5890 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5891 obstack_strdup.
5892 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5893 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5894 obstack_strdup.
5895 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5896
5897 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5898
5899 * unittests/help-doc-selftests.c: New file.
5900 * Makefile.in: Add the new file.
5901
5902 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5903
5904 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5905 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5906 the full first line, except when FOR_VALUE_PREFIX. In this case,
5907 the trailing '.' is not output, and the first character is uppercased.
5908 (print_help_for_command): Update call to print_doc_line.
5909 (print_doc_of_command): Likewise.
5910 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5911 * cli/cli-option.c (append_indented_doc): Do not append newline.
5912 (build_help_option): Append newline after first appended_indented_doc
5913 only if a second call is done.
5914 (build_help): Append 2 new lines before each option, except the first
5915 one.
5916 * compile/compile.c (_initialize_compile): Add new lines after
5917 %OPTIONS%, when not at the end of the help.
5918 Change help doc or code
5919 producing the help doc to respect the invariants.
5920 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5921 Also removed the new line after 'Options:', as all other commands
5922 do not put an empty line between 'Options:' and the first option.
5923 * printcmd.c (_initialize_printcmd): Likewise.
5924 * stack.c (_initialize_stack): Likewise.
5925 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5926 incorrectly telling COMMAND is optional.
5927 * ada-lang.c (_initialize_ada_language): Change help doc or code
5928 producing the help doc to respect the invariants.
5929 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5930 * breakpoint.c (_initialize_breakpoint): Likewise.
5931 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5932 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5933 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5934 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5935 _initialize_cli_style): Likewise.
5936 * corelow.c (core_target_info): Likewise.
5937 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5938 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5939 * filesystem.c (_initialize_filesystem): Likewise.
5940 * frame.c (_initialize_frame): Likewise.
5941 * gnu-nat.c (add_task_commands): Likewise.
5942 * infcall.c (_initialize_infcall): Likewise.
5943 * infcmd.c (_initialize_infcmd): Likewise.
5944 * interps.c (_initialize_interpreter): Likewise.
5945 * language.c (_initialize_language): Likewise.
5946 * linux-fork.c (_initialize_linux_fork): Likewise.
5947 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5948 * maint.c (_initialize_maint_cmds): Likewise.
5949 * memattr.c (_initialize_mem): Likewise.
5950 * printcmd.c (_initialize_printcmd): Likewise.
5951 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5952 _RegEx): Likewise.
5953 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5954 * record-btrace.c (_initialize_record_btrace): Likewise.
5955 * record-full.c (_initialize_record_full): Likewise.
5956 * record.c (_initialize_record): Likewise.
5957 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5958 * regcache.c (_initialize_regcache): Likewise.
5959 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5960 _initialize_remote): Likewise.
5961 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5962 * serial.c (_initialize_serial): Likewise.
5963 * skip.c (_initialize_step_skip): Likewise.
5964 * source.c (_initialize_source): Likewise.
5965 * stack.c (_initialize_stack): Likewise.
5966 * symfile.c (_initialize_symfile): Likewise.
5967 * symtab.c (_initialize_symtab): Likewise.
5968 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5969 * top.c (init_main): Likewise.
5970 * tracefile-tfile.c (tfile_target_info): Likewise.
5971 * tracepoint.c (_initialize_tracepoint): Likewise.
5972 * tui/tui-win.c (_initialize_tui_win): Likewise.
5973 * utils.c (add_internal_problem_command): Likewise.
5974 * valprint.c (value_print_option_defs): Likewise.
5975
5976 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5977
5978 PR build/24886
5979 * configure.ac: Drop enable-libmcheck support.
5980 * configure, config.in: Rebuild.
5981 * libmcheck.m4: Remove.
5982 * acinclude.m4: Don't include it.
5983 * Makefile.in: Don't distribute it.
5984 * top.c (print_gdb_configuration): Don't mention it.
5985
5986 2019-08-06 Tom Tromey <tom@tromey.com>
5987
5988 * utils.c (set_output_style): Sometimes pass stream to
5989 emit_style_escape.
5990 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5991 * record-btrace.c (btrace_insn_history): Update.
5992 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5993 method.
5994 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5995 Update initializers.
5996 <m_uiout>: New field.
5997 <m_di>: Move lower.
5998 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5999 Remove "uiout" parameter.
6000 (dump_insns): Update.
6001 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6002 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6003
6004 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6005
6006 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6007 (error_in_psymtab_expansion): Likewise.
6008 (lookup_symbol_via_quick_fns): Likewise.
6009 (basic_lookup_transparent_type_quick): Likewise.
6010 (basic_lookup_transparent_type_1): Likewise.
6011
6012 2019-08-06 Tom Tromey <tromey@adacore.com>
6013
6014 * source.c (last_source_error): Now bool.
6015 (print_source_lines_base): Make "noprint" bool. Only open
6016 source file when last_source_visited changes.
6017
6018 2019-08-06 Tom Tromey <tromey@adacore.com>
6019
6020 * annotate.c (annotate_source_line): Use g_source_cache.
6021 * source-cache.c (source_cache::get_plain_source_lines): Change
6022 parameters. Populate m_offset_cache.
6023 (source_cache::ensure): New method.
6024 (source_cache::get_line_charpos): New method.
6025 (extract_lines): Move lower. Change parameters.
6026 (source_cache::get_source_lines): Move lower.
6027 * source-cache.h (class source_cache): Update comment.
6028 <get_line_charpos>: New method.
6029 <get_source_lines>: Update comment.
6030 <clear>: Clear m_offset_cache.
6031 <get_plain_source_lines>: Change parameters.
6032 <ensure>: New method
6033 <m_offset_cache>: New member.
6034 * source.c (forget_cached_source_info_for_objfile): Update.
6035 (info_source_command): Use g_source_cache.
6036 (find_source_lines, open_source_file_with_line_charpos): Remove.
6037 (print_source_lines_base, search_command_helper): Use g_source_cache.
6038 * source.h (open_source_file_with_line_charpos): Don't declare.
6039 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6040 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6041 Use g_source_cache.
6042
6043 2019-08-06 Tom Tromey <tromey@adacore.com>
6044
6045 * source-cache.c (source_cache::get_plain_source_lines):
6046 Remove "first_line" and "last_line" parameters.
6047 (source_cache::get_source_lines): Cache plain text.
6048 * source-cache.h (class source_cache)
6049 <get_plain_source_lines>: Update.
6050
6051 2019-08-06 Tom Tromey <tromey@adacore.com>
6052
6053 * source-cache.c (extract_lines): No longer a method.
6054 Changed type of parameter. Include final newline.
6055 (selftests::extract_lines_test): New function.
6056 (_initialize_source_cache): Likewise.
6057 * source-cache.h (class source_cache)
6058 <extract_lines>: Don't declare.
6059
6060 2019-08-06 Tom Tromey <tromey@adacore.com>
6061
6062 * breakpoint.c (init_breakpoint_sal): Update.
6063 (breakpoint): Update.
6064 * breakpoint.h (struct breakpoint) <filter>: Now a
6065 unique_xmalloc_ptr.
6066
6067 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6068
6069 * NEWS: Mention dictionary access on blocks.
6070 * python/py-block.c (blpy_getitem): New function.
6071 (block_object_as_mapping): New struct.
6072 (block_object_type): Use new struct for tp_as_mapping field.
6073
6074 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6075
6076 * objfiles.h (objfile): Add a comment describing partial symbols.
6077
6078 2019-08-05 Tom Tromey <tromey@adacore.com>
6079
6080 * compile/compile.c (_initialize_compile): Use _(), not N_().
6081 * thread.c (_initialize_thread): Use _(), not N_().
6082 * stack.c (_initialize_stack): Use _(), not N_().
6083 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6084
6085 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6086
6087 * dwarf2read.c (struct dw2_symtab_iterator):
6088 <want_specific_block>: Remove.
6089 <block_index>: Change type to gdb::optional.
6090 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6091 change type of BLOCK_INDEX parameter to gdb::optional.
6092 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6093 (dw2_lookup_symbol): Don't pass argument for
6094 WANT_SPECIFIC_BLOCK.
6095 (dw2_expand_symtabs_for_function): Don't pass argument for
6096 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6097 (class dw2_debug_names_iterator)
6098 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6099 parameter, change BLOCK_INDEX type to gdb::optional.
6100 <m_want_specific_block>: Remove.
6101 <m_block_index>: Change type to gdb::optional.
6102 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6103 gdb::optional. Re-write in function of gdb::optional.
6104 (dw2_debug_names_lookup_symbol): Don't pass argument for
6105 WANT_SPECIFIC_BLOCK.
6106 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6107 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6108 BLOCK_INDEX.
6109
6110 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6111
6112 * NEWS: Mention changes to "info sources" command.
6113
6114 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6115
6116 * symtab.c (filename_partial_match_opts): New struct type.
6117 (struct output_source_filename_data): New members
6118 regexp, c_regexp, partial_match.
6119 (output_source_filename): Use new members to decide to print file.
6120 (info_sources_option_defs): New variable.
6121 (make_info_sources_options_def_group, print_info_sources_header,
6122 info_sources_command_completer):
6123 New functions.
6124 (info_sources_command): Read new optional arguments.
6125 (_initialize_symtab): Update info sources help.
6126
6127 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6128
6129 * ada-lang.c (exception_support_info_v0): Renamed from...
6130 (default_exception_support_info): ... this. Create new
6131 definition for v1.
6132 (ada_has_this_exception_support): Look up catch_handlers_sym.
6133 (ada_exception_support_info_sniffer): Try v0 after default.
6134
6135 2019-08-01 Tom Tromey <tromey@adacore.com>
6136
6137 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6138 gdbarch.h.
6139
6140 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6141
6142 * s12z-tdep.c: Fix include path for s12z-opc.h.
6143
6144 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6145
6146 * NEWS: Require GNU make 3.82.
6147
6148 2019-07-16 Tom Tromey <tom@tromey.com>
6149
6150 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6151 declare.
6152
6153 2019-07-30 Tom Tromey <tromey@adacore.com>
6154
6155 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6156
6157 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6158
6159 * printcmd.c (print_address_symbolic): Print negative offsets.
6160 (build_address_symbolic): Force signed arithmetic when computing
6161 offset.
6162
6163 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6164
6165 PR/24474: Add a function to lookup static variables.
6166 * NEWS: Mention this new function.
6167 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6168 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6169 * python/python.c (python_GdbMethods): Add new function.
6170
6171 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6172
6173 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6174 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6175 (objfpy_lookup_static_symbol): New function.
6176 (objfile_object_methods): Add new functions.
6177
6178 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6179
6180 * NEWS: Mention 'set|show print frame-info'. Mention new
6181 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6182 backtrace argument. Mention that python frame filtering code
6183 is now consistent with what 'backtrace' command prints.
6184
6185 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6186
6187 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6188 comments.
6189 (print_frame_info_auto, print_frame_info_source_line,
6190 print_frame_info_location, print_frame_info_source_and_location,
6191 print_frame_info_location_and_address, print_frame_info_short_location):
6192 New declarations.
6193 (struct frame_print_options): New member print_frame_info.
6194 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6195 * stack.h (get_user_print_what_frame_info): New declaration.
6196 (frame_show_address): New declaration.
6197 * stack.c (print_frame_arguments_choices): New value 'presence'.
6198 (print_frame_info_auto, print_frame_info_source_line,
6199 print_frame_info_location, print_frame_info_source_and_location,
6200 print_frame_info_location_and_address, print_frame_info_short_location,
6201 print_frame_info_choices, print_frame_info_print_what): New definitions.
6202 (print_frame_args): Only print dots for args if print frame-arguments
6203 is 'presence'.
6204 (frame_print_option_defs): New element for "frame-info".
6205 (get_user_print_what_frame_info): New function.
6206 (frame_show_address): Make non static. Move comment to stack.h.
6207 (print_frame_info_to_print_what): New function.
6208 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6209 to decide what to print.
6210 (backtrace_command_1): Handle the new print_frame_arguments_presence
6211 value.
6212 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6213 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6214 (py_print_frame): In non-mi mode, use LOCATION as default for
6215 print_what, similarly to frame information printed directly by
6216 backtrace command. Handle frame-info user option in non MI mode.
6217
6218 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6219
6220 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6221 Add case for debugging 32-bit target on 64-bit host. Revise
6222 comment.
6223
6224 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6225
6226 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6227 instead of find_function_entry_range_from_pc.
6228
6229 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6230
6231 * stack.c (find_frame_funname): Remove code which preferred
6232 minsym over symtab sym in "certain pathological cases".
6233
6234 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6235 parameter. Change type of "do_demangle" to bool.
6236 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6237 Pass suitable "prefer_sym_over_minsym" flag to
6238 build_address_symbolic(). Don't output "+" for negative offsets.
6239 * printcmd.c (print_address_symbolic): Update invocation of
6240 build_address_symbolic to include a "prefer_sym_over_minsym"
6241 flag.
6242 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6243 Restrict cases in which use of minimal symbol is preferred to that
6244 of a found symbol. Update comments.
6245
6246 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6247 for entry pc when entry pc is out of range for that FDE.
6248
6249 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6250
6251 PR gdb/24839:
6252 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6253 type.
6254
6255 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6256
6257 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6258 this function's Python signature.
6259
6260
6261 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6262
6263 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6264 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6265 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6266 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6267 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6268
6269
6270 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6271
6272 * h8300-tdep.c (h8300_register_name_common): New.
6273 h8300_register_name): Use h8300_register_name_common.
6274 (h8300s_register_name): Likewise.
6275 (h8300sx_register_name): Likewise.
6276 (h8300h_register_nam): New.
6277 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6278
6279
6280 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6281
6282 * arm-tdep.c (arm_skip_cmse_entry): New function.
6283 (arm_is_sgstubs_section): New function.
6284 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6285
6286 2019-07-22 Tom Tromey <tom@tromey.com>
6287
6288 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6289 Don't self-assign.
6290
6291 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6292
6293 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6294 type_print.
6295
6296 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6297
6298 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6299 so that GDB doesn't match any msymbols when searching in the
6300 TYPES_DOMAIN.
6301 (print_symbol_info): Print using typedef_print or type_print based
6302 on the type of the symbol. Add updated FIXME comment moved from...
6303 (_initialize_symtab): ... move and update FIXME comment to above.
6304
6305 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6306
6307 * NEWS: Mention adding -q option to "info types".
6308 * symtab.c (struct info_types_options): New struct.
6309 (info_types_options_defs): New variable.
6310 (make_info_types_options_def_group): New function.
6311 (info_types_command): Use gdb::option framework to parse options.
6312 (info_types_command_completer): New function.
6313 (_initialize_symtab): Extend the help text on "info types" and
6314 register command completer.
6315
6316 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6317
6318 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6319 (lookup_symbol_in_objfile): Change int to block_enum and add a
6320 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6321
6322 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6323
6324 * MAINTAINERS (Write After Approval): Add self.
6325
6326 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6327
6328 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6329 instruction to the dummy code region.
6330
6331 2019-07-19 Tom Tromey <tromey@adacore.com>
6332
6333 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6334 (ARGSUSED, PARAMS, __func__): Remove rules.
6335
6336 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6337
6338 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6339 * features/arm/arm-with-iwmmxt.c: Remove.
6340 * features/arm/arm-with-iwmmxt.xml: Remove.
6341 * features/arm/arm-with-m-fpa-layout.c: Remove.
6342 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6343 * features/arm/arm-with-m-vfp-d16.c: Remove.
6344 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6345 * features/arm/arm-with-m.c: Remove.
6346 * features/arm/arm-with-m.xml: Remove.
6347 * features/arm/arm-with-neon.c: Remove.
6348 * features/arm/arm-with-neon.xml: Remove.
6349 * features/arm/arm-with-vfpv2.c: Remove.
6350 * features/arm/arm-with-vfpv2.xml: Remove.
6351 * features/arm/arm-with-vfpv3.c: Remove.
6352 * features/arm/arm-with-vfpv3.xml: Remove.
6353
6354 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6355
6356 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6357
6358 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6359
6360 * arch/aarch32.c (aarch32_create_target_description): Create
6361 target descriptions using features.
6362 * arch/arm.c (arm_create_target_description)
6363 (arm_create_mprofile_target_description): Likewise.
6364 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6365
6366 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6367
6368 * Makefile.in: Add new files.
6369 * aarch32-tdep.c: New file.
6370 * aarch32-tdep.h: New file.
6371 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6372 Call aarch32_read_description.
6373 * arch/aarch32.c: New file.
6374 * arch/aarch32.h: New file.
6375 * arch/arm.c (arm_create_target_description)
6376 (arm_create_mprofile_target_description): New function.
6377 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6378 (arm_create_target_description)
6379 (arm_create_mprofile_target_description): New declaration.
6380 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6381 read_description functions.
6382 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6383 Likewise.
6384 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6385 * arm-tdep.c (tdesc_arm_list): New variable.
6386 (arm_register_g_packet_guesses): Call create description functions.
6387 (arm_read_description) (arm_read_mprofile_description): New
6388 function.
6389 * arm-tdep.h (arm_read_description)
6390 (arm_read_mprofile_description): Add declaration.
6391 * configure.tgt: Add new files.
6392
6393 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6394
6395 * top.c (new_ui_command): Open specified terminal just once.
6396
6397 2019-07-18 Tom Tromey <tromey@adacore.com>
6398
6399 * symtab.c (main_name): Constify return type.
6400 * symfile.c (set_initial_language): Update.
6401 * symtab.h (main_name): Constify return type.
6402
6403 2019-07-17 Tom Tromey <tom@tromey.com>
6404
6405 * tui/tui-winsource.c (tui_update_source_window)
6406 (tui_update_source_window_as_is)
6407 (tui_update_source_windows_with_line): Remove return.
6408 * tui/tui-disasm.c (tui_show_disassem)
6409 (tui_show_disassem_and_update_source): Remove return.
6410 * tui/tui.c (tui_reset): Remove return.
6411 * tui/tui-wingeneral.c
6412 (tui_check_and_display_highlight_if_needed): Remove return.
6413
6414 2019-07-17 Tom Tromey <tom@tromey.com>
6415
6416 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6417
6418 2019-07-17 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-winsource.h (struct tui_exec_info_window)
6421 (struct tui_source_window_base): Move from tui-data.h.
6422 * tui/tui-winsource.c: Move many method definitions from
6423 elsewhere. Remove "structuring" comments.
6424 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6425 (tui_source_window_base::refresh_window): Move to
6426 tui-winsource.c.
6427 * tui/tui-win.c (tui_source_window_base::refresh_all)
6428 (tui_source_window_base::update_tab_width)
6429 (tui_source_window_base::set_new_height)
6430 (tui_source_window_base::do_make_visible_with_new_height): Move to
6431 tui-winsource.c.
6432 * tui/tui-source.h: Update.
6433 * tui/tui-source.c (tui_source_window_base::reset): Move to
6434 tui-winsource.c.
6435 * tui/tui-disasm.h: Update.
6436 * tui/tui-data.h (struct tui_exec_info_window): Move to
6437 tui-winsource.h.
6438 (struct tui_source_window_base): Likewise.
6439 * tui/tui-data.c (tui_source_window_base::clear_detail)
6440 (tui_source_window_base, ~tui_source_window_base): Move to
6441 tui-winsource.c.
6442
6443 2019-07-17 Tom Tromey <tom@tromey.com>
6444
6445 * tui/tui-win.c (tui_resize_all)
6446 (tui_source_window_base::update_tab_width)
6447 (tui_adjust_win_heights): Update.
6448 (tui_win_info::make_invisible_and_set_new_height): Rename from
6449 make_invisible_and_set_new_height.
6450 * tui/tui-data.h (struct tui_win_info)
6451 <make_invisible_and_set_new_height>: New method.
6452
6453 2019-07-17 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui.c: Update.
6456 * tui/tui-source.h (struct tui_source_window): Move from
6457 tui-data.h.
6458 * tui/tui-layout.c: Update.
6459 * tui/tui-disasm.c: Update.
6460 * tui/tui-data.h (struct tui_source_window): Move to
6461 tui-source.h.
6462
6463 2019-07-17 Tom Tromey <tom@tromey.com>
6464
6465 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6466 tui-data.h.
6467 * tui/tui-data.h (struct tui_disasm_window): Move to
6468 tui-disasm.h.
6469
6470 2019-07-17 Tom Tromey <tom@tromey.com>
6471
6472 * tui/tui-regs.h (struct tui_data_item_window): Move from
6473 tui-data.h.
6474 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6475 * tui/tui-data.h (struct tui_data_item_window): Move to
6476 tui-regs.h.
6477 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6478
6479 2019-07-17 Tom Tromey <tom@tromey.com>
6480
6481 * tui/tui.c: Update.
6482 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6483 (tui_cmd_window::max_height): Move to tui-command.c.
6484 * tui/tui-layout.c: Update.
6485 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6486 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6487 tui-command.c.
6488 * tui/tui-command.h (struct tui_cmd_window): Move from
6489 tui-data.h.
6490 * tui/tui-command.c: Remove "structuring" comments.
6491 (tui_cmd_window::clear_detail)
6492 (tui_cmd_window::do_make_visible_with_new_height)
6493 (tui_cmd_window::max_height): Move from elsewhere.
6494
6495 2019-07-17 Tom Tromey <tom@tromey.com>
6496
6497 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6498 Now static.
6499 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6500 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6501
6502 2019-07-17 Tom Tromey <tom@tromey.com>
6503
6504 * tui/tui.c: Update.
6505 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6506 tui-regs.c.
6507 * tui/tui-windata.h: Remove file.
6508 * tui/tui-windata.c: Remove file.
6509 * tui/tui-win.c (tui_data_window::set_new_height)
6510 (tui_data_window::do_make_visible_with_new_height): Move to
6511 tui-regs.c.
6512 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6513 * tui/tui-regs.c: Remove "structuring" comments.
6514 (tui_data_window::first_data_item_displayed)
6515 (tui_data_window::delete_data_content_windows)
6516 (tui_data_window::erase_data_content)
6517 (tui_data_window::display_all_data)
6518 (tui_data_window::refresh_all)
6519 (tui_data_window::do_scroll_vertical)
6520 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6521 (tui_data_window::do_make_visible_with_new_height)
6522 (tui_data_window::refresh_window): Move from elsewhere.
6523 (_initialize_tui_regs): Move to end of file.
6524 * tui/tui-layout.c: Update.
6525 * tui/tui-hooks.c: Update.
6526 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6527 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6528 tui-regs.c.
6529 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6530
6531 2019-07-17 Tom Tromey <tom@tromey.com>
6532
6533 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6534 seen.
6535
6536 2019-07-17 Tom Tromey <tom@tromey.com>
6537
6538 * tui/tui-win.c (tui_source_window_base::set_new_height)
6539 (tui_source_window_base::do_make_visible_with_new_height): Use
6540 m_has_locator field directly.
6541 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6542 method.
6543 (struct tui_source_window_base) <has_locator>: Likewise.
6544
6545 2019-07-17 Tom Tromey <tom@tromey.com>
6546
6547 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6548 Don't declare.
6549 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6550 Remove.
6551 * tui/tui-win.c (tui_source_window_base::set_new_height)
6552 (tui_source_window_base::set_new_height)
6553 (make_invisible_and_set_new_height)
6554 (tui_source_window_base::do_make_visible_with_new_height)
6555 (tui_source_window_base::do_make_visible_with_new_height):
6556 Update.
6557 * tui/tui-layout.c (show_source_disasm_command, show_data)
6558 (show_source_or_disasm_and_command): Update.
6559 * tui/tui-layout.c (show_layout): Update.
6560
6561 2019-07-17 Tom Tromey <tom@tromey.com>
6562
6563 * tui/tui-layout.c (make_data_window): Remove.
6564 (show_data): Unify creation and re-initialization cases.
6565
6566 2019-07-17 Tom Tromey <tom@tromey.com>
6567
6568 * tui/tui-layout.c (make_source_window, make_disasm_window):
6569 Remove.
6570 (show_data): Unify creation and re-initialization cases.
6571
6572 2019-07-17 Tom Tromey <tom@tromey.com>
6573
6574 * tui/tui-layout.c (make_command_window): Remove.
6575 (show_source_disasm_command, show_source_or_disasm_and_command):
6576 Unify creation and re-initialization cases.
6577
6578 2019-07-17 Tom Tromey <tom@tromey.com>
6579
6580 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6581 creation and re-initialization cases.
6582
6583 2019-07-17 Tom Tromey <tom@tromey.com>
6584
6585 * tui/tui-regs.c (tui_get_register): Return void.
6586
6587 2019-07-17 Tom Tromey <tom@tromey.com>
6588
6589 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6590 Simplify.
6591
6592 2019-07-17 Tom Tromey <tom@tromey.com>
6593
6594 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6595 resetting.
6596
6597 2019-07-17 Tom Tromey <tom@tromey.com>
6598
6599 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6600 * tui/tui-regs.c (tui_reg_layout): New function.
6601 (tui_show_registers, tui_reg_command): Use it.
6602 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6603 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6604 parameters.
6605 (tui_layout_command): Remove.
6606
6607 2019-07-17 Tom Tromey <tom@tromey.com>
6608
6609 * tui/tui-layout.h (tui/tui-layout): Return void.
6610 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6611
6612 2019-07-17 Tom Tromey <tom@tromey.com>
6613
6614 * tui/tui-layout.c (show_source_disasm_command, show_data):
6615 Update.
6616 (reset_locator): Remove.
6617 (show_source_or_disasm_and_command): Update.
6618
6619 2019-07-17 Tom Tromey <tom@tromey.com>
6620
6621 * tui/tui-source.c (tui_source_window_base::reset): Remove
6622 win_type parameter.
6623 * tui/tui-layout.c (make_command_window, make_source_window)
6624 (make_disasm_window, make_data_window)
6625 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6626 (reset_locator, show_source_or_disasm_and_command): Update.
6627 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6628 win_type parameter.
6629 (struct tui_source_window_base) <reset>: Likewise.
6630
6631 2019-07-17 Tom Tromey <tom@tromey.com>
6632
6633 * tui/tui-layout.c (show_source_disasm_command): Use
6634 reset_locator.
6635 (reset_locator): New function.
6636 (init_and_make_win): Remove.
6637 (show_source_or_disasm_and_command): Use reset_locator.
6638
6639 2019-07-17 Tom Tromey <tom@tromey.com>
6640
6641 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6642 condition.
6643 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6644 Remove condition.
6645 * tui/tui-source.c (tui_source_window_base::reset): New method.
6646 * tui/tui-layout.c (make_command_window): Don't call
6647 init_and_make_win.
6648 (make_source_window, make_disasm_window): Don't call
6649 make_source_or_disasm_window.
6650 (make_data_window): Don't call init_and_make_win. Change calling
6651 convention.
6652 (show_source_disasm_command, show_data): Simplify.
6653 (make_source_or_disasm_window): Remove.
6654 (show_source_or_disasm_and_command): Simplify.
6655 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6656 (struct tui_source_window_base) <reset>: Likewise.
6657 <execution_info>: Remove initializer.
6658 * tui/tui-data.c (tui_source_window_base): Initialize
6659 execution_info.
6660
6661 2019-07-17 Tom Tromey <tom@tromey.com>
6662
6663 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6664 variable.
6665
6666 2019-07-17 Tom Tromey <tom@tromey.com>
6667
6668 * tui/tui.c (tui_rl_other_window): Update.
6669 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6670 superclass method first. Always iterate over regs_content.
6671 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6672 method.
6673 * tui/tui-win.c (tui_set_focus_command): Update.
6674
6675 2019-07-17 Tom Tromey <tom@tromey.com>
6676
6677 * tui/tui-win.c (tui_set_focus_command): Rename from
6678 tui_set_focus. Call tui_enable.
6679 (tui_set_focus_command): Remove.
6680
6681 2019-07-17 Tom Tromey <tom@tromey.com>
6682
6683 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6684 refresh_window.
6685 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6686 touchwin.
6687 (tui_data_window::refresh_window): Call refresh_window on data
6688 items. Always call superclass refresh_window.
6689 (tui_win_info::refresh): Remove.
6690 (tui_source_window_base::refresh_window): Update.
6691 (tui_refresh_all): Update.
6692 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6693 refresh_window.
6694 (show_source_or_disasm_and_command): Likewise.
6695 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6696 (struct tui_source_window_base) <refresh>: Likewise.
6697
6698 2019-07-17 Tom Tromey <tom@tromey.com>
6699
6700 * tui/tui-winsource.c (tui_clear_source_content)
6701 (tui_show_source_content): Update.
6702 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6703 whether content is empty.
6704 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6705 Remove.
6706
6707 2019-07-17 Tom Tromey <tom@tromey.com>
6708
6709 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6710 window's contents.
6711 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6712 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6713
6714 2019-07-17 Tom Tromey <tom@tromey.com>
6715
6716 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6717 (struct tui_data_item_window): Update.
6718
6719 2019-07-17 Tom Tromey <tom@tromey.com>
6720
6721 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6722 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6723 defines.
6724
6725 2019-07-17 Tom Tromey <tom@tromey.com>
6726
6727 * tui/tui-winsource.h (tui_erase_source_content)
6728 (tui_clear_source_content): Remove "display_prompt" parameter.
6729 * tui/tui-winsource.c (tui_update_source_window_as_is)
6730 (tui_update_source_windows_with_addr): Update.
6731 (tui_clear_source_content): Remove "display_prompt" parameter.
6732 (tui_erase_source_content): Likewise. Simplify.
6733 (tui_show_source_content): Update.
6734 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6735 * tui/tui-stack.c (tui_show_frame_info): Update.
6736 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6737 Remove defines.
6738
6739 2019-07-17 Tom Tromey <tom@tromey.com>
6740
6741 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6742 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6743 parameter.
6744 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6745 parameter.
6746
6747 2019-07-17 Tom Tromey <tom@tromey.com>
6748
6749 * tui/tui-winsource.c (tui_clear_source_content)
6750 (tui_show_source_content, tui_show_exec_info_content)
6751 (tui_clear_exec_info_content): Update.
6752 * tui/tui-stack.c (tui_show_locator_content): Update.
6753 (tui_show_frame_info): Update.
6754 * tui/tui-source.h (tui_source_window): Don't declare.
6755 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6756 from tui_source_is_displayed.
6757 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6758 Remove field.
6759 (struct tui_source_window_base) <content_in_use>: New field. Now
6760 bool.
6761 (struct tui_source_window) <showing_source_p>: New method.
6762 (TUI_SRC_WIN): Change cast.
6763 * tui/tui-data.c (tui_initialize_static_data): Update.
6764
6765 2019-07-17 Tom Tromey <tom@tromey.com>
6766
6767 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6768 location_matches_p.
6769 * tui/tui-source.c (tui_source_window::location_matches_p): New
6770 method.
6771 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6772 method.
6773 * tui/tui-data.h (struct tui_source_window_base)
6774 <location_matches_p>: New method.
6775 (struct tui_source_window, struct tui_disasm_window)
6776 <location_matches_p>: Likewise.
6777
6778 2019-07-17 Tom Tromey <tom@tromey.com>
6779
6780 * tui/tui-win.c (tui_set_win_height_command): Rename from
6781 tui_set_win_height.
6782 (tui_set_win_height_command): Remove.
6783
6784 2019-07-17 Tom Tromey <tom@tromey.com>
6785
6786 * tui/tui-source.c (tui_source_window): New constructor. Add
6787 observer.
6788 (~tui_source_window): New destructor.
6789 (tui_source_window::style_changed): New method.
6790 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6791 (tui_attach_detach_observers): Update.
6792 * tui/tui-data.h (struct tui_source_window): Make constructor not
6793 inline. Add destructor.
6794 (struct tui_source_window) <style_changed>: New method.
6795 <m_observable>: New member.
6796
6797 2019-07-17 Tom Tromey <tom@tromey.com>
6798
6799 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6800 * tui/tui-win.c (tui_resize_all): Fix typo.
6801
6802 2019-07-17 Tom Tromey <tom@tromey.com>
6803
6804 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6805 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6806 (tui_refresh_all): Remove "list" parameter. Use foreach.
6807 * tui/tui-win.c (window_name_completer): Use foreach.
6808 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6809 (update_tab_width): Likewise.
6810 * tui/tui-layout.c (show_layout): Update.
6811 * tui/tui-data.h (class tui_window_iterator): New.
6812 (struct all_tui_windows): New.
6813 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6814
6815 2019-07-17 Tom Tromey <tom@tromey.com>
6816
6817 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6818 parameter. Don't reference globals.
6819 (tui_reg_command): Update.
6820
6821 2019-07-17 Tom Tromey <tom@tromey.com>
6822
6823 * tui/tui-regs.c (tui_show_registers): Simplify.
6824
6825 2019-07-17 Tom Tromey <tom@tromey.com>
6826
6827 * tui/tui-regs.c (tui_show_registers): Update.
6828 (tui_show_register_group): Add win_info parameter.
6829
6830 2019-07-17 Tom Tromey <tom@tromey.com>
6831
6832 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6833 Rename from tui_display_reg_element_at_line.
6834 (tui_data_window::display_registers_from_line): Update.
6835 * tui/tui-data.h (struct tui_data_window)
6836 <display_reg_element_at_line>: New method.
6837
6838 2019-07-17 Tom Tromey <tom@tromey.com>
6839
6840 * tui/tui-regs.h (tui_display_registers_from)
6841 (tui_display_registers_from_line): Don't declare.
6842 * tui/tui-windata.c (tui_data_window::display_all_data)
6843 (tui_data_window::refresh_all)
6844 (tui_data_window::do_scroll_vertical): Update.
6845 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6846 from tui_display_registers_from.
6847 (tui_display_reg_element_at_line): Update.
6848 (tui_data_window::display_registers_from_line): Rename from
6849 tui_display_registers_from_line.
6850 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6851 display_registers_from_line>: New methods.
6852
6853 2019-07-17 Tom Tromey <tom@tromey.com>
6854
6855 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6856 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6857 from tui_erase_data_content.
6858 (tui_data_window::display_all_data)
6859 (tui_data_window::refresh_all)
6860 (tui_data_window::do_scroll_vertical): Update.
6861 * tui/tui-regs.c (tui_show_registers): Update.
6862 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6863 New method.
6864
6865 2019-07-17 Tom Tromey <tom@tromey.com>
6866
6867 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6868 declare.
6869 * tui/tui-windata.c
6870 (tui_data_window::delete_data_content_windows): Rename from
6871 tui_delete_data_content_windows.
6872 (tui_data_window::display_all_data)
6873 (tui_data_window::do_scroll_vertical): Update.
6874 * tui/tui-data.h (struct tui_data_window)
6875 <delete_data_content_windows>: New method.
6876
6877 2019-07-17 Tom Tromey <tom@tromey.com>
6878
6879 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6880 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6881
6882 2019-07-17 Tom Tromey <tom@tromey.com>
6883
6884 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6885 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6886 from tui_display_all_data.
6887 * tui/tui-win.c
6888 (tui_data_window::do_make_visible_with_new_height): Update.
6889 * tui/tui-regs.c (tui_show_registers): Update.
6890 * tui/tui-layout.c (tui_set_layout): Update.
6891 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6892 method.
6893
6894 2019-07-17 Tom Tromey <tom@tromey.com>
6895
6896 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6897 * tui/tui-windata.c (tui_display_data_from): Remove.
6898 (tui_data_window::refresh_all): Update.
6899
6900 2019-07-17 Tom Tromey <tom@tromey.com>
6901
6902 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6903 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6904 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6905 tui_display_registers_from_line.
6906 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6907 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6908 "force_display" parameter.
6909
6910 2019-07-17 Tom Tromey <tom@tromey.com>
6911
6912 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6913 declare.
6914 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6915 Rename from tui_first_reg_element_no_inline.
6916 (tui_display_reg_element_at_line)
6917 (tui_display_registers_from_line): Update.
6918 * tui/tui-data.h (struct tui_data_window)
6919 <first_reg_element_no_inline>: New method.
6920
6921 2019-07-17 Tom Tromey <tom@tromey.com>
6922
6923 * tui/tui-windata.c (tui_display_data_from)
6924 (tui_data_window::do_scroll_vertical): Update.
6925 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6926 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6927 Rename from tui_line_from_reg_element_no.
6928 (tui_display_registers_from_line): Update.
6929 * tui/tui-data.h (struct tui_data_window)
6930 <line_from_reg_element_no>: New method.
6931
6932 2019-07-17 Tom Tromey <tom@tromey.com>
6933
6934 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6935 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6936 tui_last_regs_line_no.
6937 (tui_display_reg_element_at_line)
6938 (tui_display_registers_from_line): Update.
6939 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6940 method.
6941
6942 2019-07-17 Tom Tromey <tom@tromey.com>
6943
6944 PR tui/24722:
6945 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6946 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6947 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6948 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6949 (tui_update_breakpoint_info): Likewise.
6950 * tui/tui-hooks.c (tui_event_create_breakpoint)
6951 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6952 Update.
6953
6954 2019-07-17 Tom Tromey <tom@tromey.com>
6955
6956 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6957
6958 2019-07-17 Tom Tromey <tom@tromey.com>
6959
6960 * tui/tui-winsource.c (tui_update_source_window_as_is)
6961 (tui_update_source_windows_with_addr): Update.
6962 * tui/tui-source.h (tui_set_source_content)
6963 (tui_show_symtab_source): Add "win_info" parameter.
6964 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6965 parameter.
6966 (tui_show_symtab_source): Likewise.
6967
6968 2019-07-17 Tom Tromey <tom@tromey.com>
6969
6970 * tui/tui-wingeneral.c
6971 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6972
6973 2019-07-17 Tom Tromey <tom@tromey.com>
6974
6975 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6976 (struct tui_cmd_window) <can_scroll>: New method.
6977 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6978 method.
6979
6980 2019-07-17 Tom Tromey <tromey@adacore.com>
6981
6982 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6983 do_field_signed>: Rename. Change type of "value".
6984 * ui-out.c (ui_out::field_signed): Rename from field_int.
6985 Change type of "value".
6986 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6987 type of "value".
6988 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6989 do_field_int. Change type of "value".
6990 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6991 do_field_int. Change type of "value".
6992 * tracepoint.c (trace_status_mi, tfind_1)
6993 (print_one_static_tracepoint_marker): Update.
6994 * thread.c (print_thread_info_1, print_selected_thread_frame):
6995 Update.
6996 * stack.c (print_frame, print_frame_info): Update.
6997 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6998 Update.
6999 * source.c (print_source_lines_base): Update.
7000 * skip.c (info_skip_command): Update.
7001 * record-btrace.c (btrace_ui_out_decode_error)
7002 (btrace_call_history_src_line): Update.
7003 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7004 Update.
7005 * progspace.c (print_program_space): Update.
7006 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7007 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7008 do_field_int. Change type of "value".
7009 * mi/mi-out.c (mi_ui_out::do_table_begin)
7010 (mi_ui_out::do_table_header): Update.
7011 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7012 type of "value".
7013 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7014 (mi_cmd_data_list_changed_registers, output_register)
7015 (mi_cmd_data_read_memory, mi_load_progress)
7016 (mi_cmd_trace_frame_collected): Update.
7017 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7018 Update.
7019 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7020 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7021 (mi_cmd_var_list_children, varobj_update_one): Update.
7022 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7023 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7024 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7025 * inferior.c (print_inferior): Update.
7026 * gdb_bfd.c (print_one_bfd): Update.
7027 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7028 Update.
7029 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7030 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7031 do_field_int. Change type of "value".
7032 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7033 do_field_int. Change type of "value".
7034 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7035 (print_one_breakpoint_location, print_it_catch_fork)
7036 (print_one_catch_fork, print_it_catch_vfork)
7037 (print_one_catch_vfork, print_it_catch_solib)
7038 (print_it_catch_exec, print_it_ranged_breakpoint)
7039 (print_mention_watchpoint, print_mention_masked_watchpoint)
7040 (bkpt_print_it, update_static_tracepoint): Update.
7041 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7042 * break-catch-syscall.c (print_it_catch_syscall): Update.
7043 * ada-tasks.c (print_ada_task_info): Update.
7044 * ada-lang.c (print_it_exception, print_mention_exception):
7045 Update.
7046
7047 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7048
7049 PR breakpoints/24541
7050 * gdbarch.c: Regenerate.
7051 * gdbarch.h: Regenerate.
7052 * gdbarch.sh: Adjust return type and parameter types for
7053 'stap_adjust_register'.
7054 (i386_stap_adjust_register): Adjust signature and return new
7055 register name.
7056 * stap-probe.c (stap_parse_register_operand): Adjust use of
7057 'gdbarch_stap_adjust_register'.
7058
7059 2019-07-17 Tom Tromey <tromey@adacore.com>
7060
7061 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7062 declare VEC.
7063 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7064 std::vector.
7065 (struct s390_process_info): Add initializers.
7066 (s390_add_process): Use new.
7067 (s390_linux_nat_target::low_forget_process): Use delete.
7068 (s390_linux_nat_target::low_new_fork)
7069 (s390_linux_nat_target::stopped_by_watchpoint)
7070 (s390_linux_nat_target::low_prepare_to_resume)
7071 (s390_linux_nat_target::insert_watchpoint)
7072 (s390_linux_nat_target::insert_hw_breakpoint)
7073 (s390_linux_nat_target::remove_watchpoint)
7074 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7075
7076 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7077
7078 * aarch64-fbsd-nat.c: Include regcache.h.
7079 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7080 argument.
7081 (aarch64_fbsd_nat_target::fetch_registers)
7082 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7083 variable.
7084 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7085
7086 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7087
7088 * fbsd-nat.c: Include gdbarch.h.
7089
7090 2019-07-15 Tom Tromey <tromey@adacore.com>
7091
7092 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7093
7094 2019-07-15 Tom Tromey <tromey@adacore.com>
7095
7096 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7097 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7098 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7099 * cli-out.c (cli_ui_out::do_field_int): New method.
7100 * ui-out.c (ui_out::field_unsigned): New method.
7101 * symfile.c (generic_load): Use field_unsigned.
7102 (print_transfer_performance): Likewise.
7103 * record-btrace.c (ui_out_field_uint): Remove.
7104 (btrace_call_history_insn_range, btrace_call_history): Use
7105 field_unsigned.
7106 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7107 field_unsigned.
7108 * ui-out.h (class ui_out) <field_unsigned>: New method.
7109 <do_field_unsigned>: Likewise.
7110
7111 2019-07-15 Tom Tromey <tromey@adacore.com>
7112
7113 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7114 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7115 * target.c (flash_erase_command): Use field_string.
7116 * infrun.c (print_signal_received_reason): Use field_string.
7117 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7118 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7119 field_string.
7120 * ada-tasks.c (print_ada_task_info): Use field_string.
7121
7122 2019-07-15 Tom Tromey <tromey@adacore.com>
7123
7124 * target.c (flash_erase_command): Use field_core_addr.
7125 * symfile.c (generic_load): Use field_core_addr.
7126 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7127 Use field_core_addr.
7128 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7129 field_core_addr.
7130
7131 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7132
7133 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7134 value if its desired type is smaller than a CORE_ADDR and signed.
7135
7136 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7137
7138 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7139 of changes to field names, and use new is_reference field to
7140 decide if a property is a reference or not.
7141 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7142 field.
7143 (struct dwarf2_property_baton): Update header comment, rename
7144 'referenced_type' to 'property_type' and update comments.
7145 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7146 default property type, store in property baton, update to take
7147 accound of renamed field.
7148 (read_func_scope): Update call to attr_to_dynamic_prop.
7149 (read_array_type): Likewise.
7150 (dwarf2_per_cu_addr_sized_int_type): New function.
7151 (read_subrange_index_type): Move type finding code to
7152 dwarf2_per_cu_addr_sized_int_type.
7153 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7154 (dwarf2_per_cu_addr_type): New function.
7155 (set_die_type): Update calls to attr_to_dynamic_prop.
7156
7157 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7158
7159 * dwarf2read.c (read_subrange_index_type): New function.
7160 (read_subrange_type): Move code into new function and call it.
7161 * gdbtypes.c (create_range_type): Add some asserts.
7162
7163 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7164
7165 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7166 update return statements.
7167 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7168 declaration, and update comment to match.
7169 * gdbtypes.c (resolve_dynamic_array): Update call to
7170 dwarf2_evaluate_property to match new return type.
7171
7172 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7173
7174 * valarith.c (value_subscripted_rvalue): Change lowerbound
7175 parameter type from int to LONGEST.
7176 * value.h (value_subscripted_rvalue): Likewise in declaration.
7177
7178 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7179
7180 * cli/cli-utils.c (info_print_command_completer): New function.
7181 * cli/cli-utils.h: Add 'completer.h' include, and forward
7182 declaration for 'struct cmd_list_element'.
7183 (info_print_command_completer): Declare.
7184 * stack.c (_initialize_stack): Add completer for 'info locals' and
7185 'info args'.
7186 * symtab.c (_initialize_symtab): Add completer for 'info
7187 variables' and 'info functions'.
7188 * NEWS: Mention completion for additional info commands.
7189
7190 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7191
7192 * cli/cli-utils.c (extract_info_print_args): Delete.
7193 (extract_arg_maybe_quoted): Delete.
7194 (info_print_options_defs): New variable.
7195 (make_info_print_options_def_group): New function.
7196 (extract_info_print_options): Define new function.
7197 * cli/cli-utils.h (extract_info_print_args): Delete.
7198 (struct info_print_options): New structure.
7199 (extract_info_print_options): Declare new function.
7200 * stack.c (info_locals_command): Update to use new
7201 extract_info_print_options, also add a header comment.
7202 (info_args_command): Likewise.
7203 * symtab.c (info_variables_command): Likewise.
7204 (info_functions_command): Likewise.
7205
7206 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7207
7208 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7209 to extract string arguments.
7210 * common/common-utils.c (extract_string_maybe_quoted): New function.
7211 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7212
7213 2019-07-11 Tom Tromey <tromey@adacore.com>
7214
7215 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7216 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7217 * top.h (gdbinit): Don't declare.
7218 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7219 into...
7220 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7221 * top.c (gdb_init): Don't call init_cli_cmds.
7222 (gdbinit): Remove.
7223 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7224
7225 2019-07-11 Tom Tromey <tromey@adacore.com>
7226
7227 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7228 after it has been moved.
7229
7230 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7231
7232 * valops.c (value_must_coerce_to_target): Change return type to
7233 bool.
7234 * value.h (value_must_coerce_to_target): Likewise.
7235
7236 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7237
7238 * breakpoint.c (is_hardware_watchpoint): Remove
7239 forward-declaration.
7240 (is_masked_watchpoint): Change return type to bool.
7241 (is_tracepoint): Likewise.
7242 (is_breakpoint): Likewise.
7243 (is_hardware_watchpoint): Likewise.
7244 (is_watchpoint): Likewise.
7245 (is_no_memory_software_watchpoint): Likewise.
7246 (is_catchpoint): Likewise.
7247 (breakpoint_1): Make FILTER parameter's return type bool.
7248 is_masked_watchpoint): Change return type to bool.
7249 (save_breakpoints): Make FILTER parameter's return type bool.
7250 * breakpoint.h (is_breakpoint): Change return type to bool.
7251 (is_watchpoint): Likewise.
7252 (is_catchpoint): Likewise.
7253 (is_tracepoint): Likewise.
7254
7255 2019-07-10 Tom Tromey <tom@tromey.com>
7256
7257 * defs.h: Don't include gdbarch.h.
7258 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7259 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7260 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7261 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7262 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7263 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7264 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7265 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7266 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7267 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7268 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7269 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7270 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7271 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7272 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7273 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7274 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7275 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7276 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7277 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7278 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7279 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7280 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7281 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7282 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7283 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7284 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7285
7286 2019-07-10 Tom Tromey <tromey@adacore.com>
7287
7288 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7289 * breakpoint.c (init_ada_exception_breakpoint): Register as
7290 bp_catchpoint.
7291 (print_one_breakpoint_location, print_one_breakpoint): Use
7292 is_ada_exception_catchpoint.
7293 * ada-lang.c (class ada_catchpoint_location): Pass
7294 bp_loc_software_breakpoint to bp_location constructor.
7295 (is_ada_exception_catchpoint): New function.
7296
7297 2019-07-10 Tom Tromey <tromey@adacore.com>
7298
7299 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7300 VEC.
7301 (struct arm_exidx_entry): New method operator<.
7302 (struct arm_exidx_data) <section_maps>: Change type.
7303 (arm_exidx_data_free): Remove.
7304 (arm_exidx_data_key): Change type. Move lower.
7305 (arm_exidx_new_objfile): Update.
7306 (arm_compare_exidx_entries): Remove.
7307 (arm_find_exidx_entry, _initialize_arm_tdep)
7308
7309 2019-07-10 Tom Tromey <tromey@adacore.com>
7310
7311 * solib-spu.c (ocl_program_data_key): Change type.
7312 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7313 Update.
7314
7315 2019-07-10 Tom Tromey <tromey@adacore.com>
7316
7317 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7318 (struct solib_aix_inferior_data) <library_list>: Change type.
7319 (solib_aix_inferior_data_handle): Change type.
7320 (get_solib_aix_inferior_data): Update.
7321 (solib_aix_free_library_list): Remove.
7322 (library_list_start_library): Update.
7323 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7324 return type.
7325 (solib_aix_get_library_list)
7326 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7327 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7328
7329 2019-07-10 Tom Tromey <tromey@adacore.com>
7330
7331 * solib-dsbt.c (struct dsbt_info): Add initializers.
7332 (solib_dsbt_pspace_data): Change type.
7333 (dsbt_pspace_data_cleanup): Remove.
7334 (get_dsbt_info, _initialize_dsbt_solib): Update.
7335
7336 2019-07-10 Tom Tromey <tromey@adacore.com>
7337
7338 * spu-tdep.c (spu_overlay_data): Change type.
7339 (spu_get_overlay_table, spu_overlay_new_objfile)
7340 (_initialize_spu_tdep): Update.
7341
7342 2019-07-10 Tom Tromey <tromey@adacore.com>
7343
7344 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7345 destructor.
7346 (dbx_objfile_data_key): Change type and declare later.
7347 (DBX_SYMFILE_INFO): Rewrite.
7348 * dbxread.c (dbx_objfile_data_key): Change type.
7349 (dbx_symfile_init): Update.
7350 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7351 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7352 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7353
7354 2019-07-10 Tom Tromey <tromey@adacore.com>
7355
7356 * jit.c (jit_program_space_key): Change type. Move lower.
7357 (get_jit_program_space_data): Update.
7358 (jit_program_space_data_cleanup): Remove.
7359 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7360 Update.
7361 (struct jit_program_space_data): Add initializers.
7362
7363 2019-07-10 Tom Tromey <tromey@adacore.com>
7364
7365 * solib-darwin.c (struct darwin_info): Add initializers.
7366 (solib_darwin_pspace_data): Change type.
7367 (darwin_pspace_data_cleanup): Remove.
7368 (get_darwin_info, _initialize_darwin_solib): Update.
7369
7370 2019-07-10 Tom Tromey <tromey@adacore.com>
7371
7372 * remote-sim.c (struct sim_inferior_data): Add initializers,
7373 constructor, and destructor.
7374 (sim_inferior_data_key): Change type. Move lower.
7375 (check_for_duplicate_sim_descriptor): Update.
7376 (get_sim_inferior_data): Use new. Update.
7377 (~sim_inferior_data_cleanup): Rename from
7378 sim_inferior_data_cleanup. Simplify.
7379 (gdbsim_close_inferior, simulator_command)
7380 (sim_command_completer, _initialize_remote_sim): Update.
7381 (next_pid, INITIAL_PID): Move earlier.
7382
7383 2019-07-10 Tom Tromey <tromey@adacore.com>
7384
7385 * python/python-internal.h (create_thread_object): Return
7386 gdbpy_ref.
7387 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7388 * python/py-inferior.c (struct threadlist_entry): Add
7389 constructor.
7390 <thread_obj>: Now a gdbpy_ref.
7391 (thread_to_thread_object): Update.
7392 (add_thread_object): Use new.
7393 (delete_thread_object): Use delete.
7394 (infpy_threads): Update.
7395 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7396 GIL.
7397
7398 2019-07-10 Tom Tromey <tromey@adacore.com>
7399
7400 * valops.c (value_cast): Specialize error message for Ada.
7401
7402 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7403
7404 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7405
7406 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7407
7408 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7409 bpstat_should_step): Return bool, adjust comments.
7410 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7411 bpstat_should_step): Likewise.
7412
7413 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7414
7415 * features/Makefile: Use feature target descriptions for Arm.
7416 * features/arm/arm-core.c: Generate new file.
7417 * features/arm/arm-fpa.c: Likewise.
7418 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7419 * features/arm/arm-m-profile.c: Likewise.
7420 * features/arm/arm-vfpv2.c: Likewise.
7421 * features/arm/arm-vfpv3.c: Likewise.
7422 * features/arm/xscale-iwmmxt.c: Likewise.
7423 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7424
7425 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7426
7427 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7428 ptrace earlier.
7429
7430 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7431
7432 * features/aarch64-pauth.c: Regenerate.
7433
7434 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7435
7436 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7437 bool.
7438 (bpstat_what): Use false instead of 0.
7439
7440 2019-07-09 Pedro Alves <palves@redhat.com>
7441
7442 * break-catch-throw.c (is_exception_catchpoint): New.
7443 * breakpoint.c (print_one_breakpoint_location): New parameter
7444 'raw_loc'. Handle it. Use
7445 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7446 looking at the breakpoint's type.
7447 (print_one_breakpoint): If handling "maint info breakpoints", also
7448 print locations of exception catchpoints.
7449 * breakpoint.h (is_exception_catchpoint): Declare.
7450
7451 2019-07-09 Pedro Alves <palves@redhat.com>
7452
7453 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7454 "addr" field.
7455 (allocate_location_exception_catchpoint): New.
7456 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7457 (initialize_throw_catchpoint_ops): Install
7458 allocate_location_exception_catchpoint as allocate_location
7459 method.
7460 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7461 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7462 bp_loc_other.
7463 (breakpoint_address_is_meaningful): Delete.
7464 (bl_address_is_meaningful): New.
7465 (breakpoint_locations_match): Adjust comment.
7466 (bp_location_from_bp_type): New, factored out of...
7467 (bp_location::bp_location(breakpoint *)): ... this.
7468 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7469 factored out of...
7470 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7471 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7472 breakpoint_address_is_meaningful.
7473 (bp_locations_compare): Adjust comment.
7474 (update_global_location_list): Use bl_address_is_meaningful
7475 instead of breakpoint_address_is_meaningful.
7476 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7477 explicit.
7478 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7479 * python/py-breakpoint.c (bppy_get_location): No longer check
7480 whether location is null.
7481
7482 2019-07-09 Pedro Alves <palves@redhat.com>
7483
7484 PR c++/15468
7485 * breakpoint.c (print_one_breakpoint_location): Remove
7486 single-location assert.
7487
7488 2019-07-09 Tom Tromey <tom@tromey.com>
7489
7490 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7491 * configure: Rebuild.
7492 * configure.ac: Change common to gdbsupport.
7493 * gdbsupport: Rename from common.
7494 * acinclude.m4: Change common to gdbsupport.
7495 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7496 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7497 gdbsupport.
7498 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7499 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7500 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7501 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7502 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7503 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7504 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7505 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7506 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7507 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7508 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7509 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7510 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7511 coff-pe-read.c, command.h, compile/compile-c-support.c,
7512 compile/compile-c.h, compile/compile-cplus-symbols.c,
7513 compile/compile-cplus-types.c, compile/compile-cplus.h,
7514 compile/compile-loc2c.c, compile/compile.c, completer.c,
7515 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7516 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7517 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7518 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7519 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7520 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7521 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7522 features/aarch64-core.c, features/aarch64-fpu.c,
7523 features/aarch64-pauth.c, features/aarch64-sve.c,
7524 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7525 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7526 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7527 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7528 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7529 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7530 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7531 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7532 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7533 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7534 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7535 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7536 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7537 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7538 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7539 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7540 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7541 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7542 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7543 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7544 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7545 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7546 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7547 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7548 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7549 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7550 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7551 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7552 minsyms.c, mips-linux-tdep.c, namespace.h,
7553 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7554 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7555 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7556 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7557 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7558 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7559 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7560 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7561 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7562 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7563 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7564 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7565 procfs.c, producer.c, progspace.h, psymtab.h,
7566 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7567 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7568 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7569 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7570 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7571 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7572 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7573 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7574 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7575 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7576 target-memory.c, target.c, target.h, target/waitstatus.c,
7577 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7578 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7579 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7580 unittests/array-view-selftests.c,
7581 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7582 unittests/common-utils-selftests.c,
7583 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7584 unittests/format_pieces-selftests.c,
7585 unittests/function-view-selftests.c,
7586 unittests/lookup_name_info-selftests.c,
7587 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7588 unittests/mkdir-recursive-selftests.c,
7589 unittests/observable-selftests.c,
7590 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7591 unittests/parse-connection-spec-selftests.c,
7592 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7593 unittests/scoped_fd-selftests.c,
7594 unittests/scoped_mmap-selftests.c,
7595 unittests/scoped_restore-selftests.c,
7596 unittests/string_view-selftests.c, unittests/style-selftests.c,
7597 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7598 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7599 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7600 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7601 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7602 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7603
7604 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7605
7606 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7607 bool value.
7608 (decode_digits_ordinary): Set explicit_line field in sal.
7609 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7610 symtab_and_line that was set on an explicit line number in
7611 assembler code. Do always update the recorded symtab and line if
7612 we do skip the prologue.
7613
7614 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7615
7616 * breakpoint.c (set_breakpoint_location_function): Remove
7617 explicit_loc parameter.
7618 (momentary_breakpoint_from_master): Update call to
7619 set_breakpoint_location_function.
7620 (add_location_to_breakpoint): Likewise.
7621
7622 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7623
7624 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7625 required features based on default bfd type when no specific bfd
7626 is present.
7627
7628 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7629
7630 * NEWS: Mention that GDB printf and eval commands can now print
7631 C-style and Ada-style convenience var strings without
7632 calling the inferior.
7633 * printcmd.c (printf_c_string): Locally print GDB internal var
7634 instead of transiting via the inferior.
7635 (printf_wide_c_string): Likewise.
7636
7637 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7638
7639 PR breakpoints/25011
7640 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7641
7642 2019-07-04 Tom Tromey <tom@tromey.com>
7643
7644 PR tui/24724:
7645 * tui/tui-winsource.c (tui_clear_source_content): Update.
7646 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7647 (tui_update_breakpoint_info): Update.
7648 (tui_set_exec_info_content): Update.
7649 * tui/tui-source.c (tui_set_source_content_nil): Update.
7650 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7651 has_break.
7652 * tui/tui-data.h (enum tui_bp_flag): New.
7653 (tui_bp_flags): New enum flags type.
7654 (struct tui_source_element) <break_mode>: Change type. Rename
7655 from has_break.
7656 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7657 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7658 constants.
7659 * tui/tui-winsource.h: Fix comment.
7660
7661 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7662
7663 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7664 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7665 (store_fpregs_to_thread)
7666 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7667 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7668 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7669 (IWMMXT_REGS_SIZE): Add define.
7670 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7671 (fetch_vfp_regs, store_vfp_regs)
7672 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7673 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7674
7675 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7676
7677 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7678 defines.
7679 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7680 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7681 (ARM_INT_REGISTER_SIZE): ...to this.
7682 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7683 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7684 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7685 (arm_linux_collect_gregset, supply_nwfpe_register)
7686 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7687 defines.
7688 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7689 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7690 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7691 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7692 (arm_return_in_memory, arm_store_return_value)
7693 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7694 (arm_record_ld_st_multiple): Likewise.
7695 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7696 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7697
7698 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7699
7700 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7701 AARCH64_DISPLACED_MODIFIED_INSNS.
7702 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7703 (aarch64_displaced_step_copy_insn): Likewise.
7704 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7705 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7706 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7707 ARM_DISPLACED_MODIFIED_INSNS.
7708 * arm-tdep.c (arm_gdbarch_init): Likewise.
7709 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7710 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7711 (struct arm_displaced_step_closure): Use
7712 ARM_DISPLACED_MODIFIED_INSNS.
7713
7714 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7715
7716 * features/Makefile: Remove unused xml files.
7717 * features/aarch64.xml: Remove.
7718 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7719 * features/i386/amd64-avx-avx512.xml: Remove.
7720 * features/i386/amd64-avx-linux.xml: Remove.
7721 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7722 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7723 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7724 * features/i386/amd64-avx-mpx.xml: Remove.
7725 * features/i386/amd64-avx.xml: Remove.
7726 * features/i386/amd64-linux.xml: Remove.
7727 * features/i386/amd64-mpx-linux.xml: Remove.
7728 * features/i386/amd64-mpx.xml: Remove.
7729 * features/i386/amd64.xml: Remove.
7730 * features/i386/i386-avx-avx512-linux.xml: Remove.
7731 * features/i386/i386-avx-avx512.xml: Remove.
7732 * features/i386/i386-avx-linux.xml: Remove.
7733 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7734 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7735 * features/i386/i386-avx-mpx-linux.xml: Remove.
7736 * features/i386/i386-avx-mpx.xml: Remove.
7737 * features/i386/i386-avx.xml: Remove.
7738 * features/i386/i386-linux.xml: Remove.
7739 * features/i386/i386-mmx-linux.xml: Remove.
7740 * features/i386/i386-mmx.xml: Remove.
7741 * features/i386/i386-mpx-linux.xml: Remove.
7742 * features/i386/i386-mpx.xml: Remove.
7743 * features/i386/i386.xml: Remove.
7744 * features/i386/x32-avx-avx512-linux.xml: Remove.
7745 * features/i386/x32-avx-linux.xml: Remove.
7746 * features/i386/x32-linux.xml: Remove.
7747
7748 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7749
7750 * regformats/aarch64.dat: Remove.
7751 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7752 * regformats/i386/amd64-avx-linux.dat: Remove.
7753 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7754 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7755 * regformats/i386/amd64-linux.dat: Remove.
7756 * regformats/i386/amd64-mpx-linux.dat: Remove.
7757 * regformats/i386/amd64.dat: Remove.
7758 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7759 * regformats/i386/i386-avx-linux.dat: Remove.
7760 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7761 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7762 * regformats/i386/i386-linux.dat: Remove.
7763 * regformats/i386/i386-mmx-linux.dat: Remove.
7764 * regformats/i386/i386-mpx-linux.dat: Remove.
7765 * regformats/i386/i386.dat: Remove.
7766 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7767 * regformats/i386/x32-avx-linux.dat: Remove.
7768 * regformats/i386/x32-linux.dat: Remove.
7769
7770 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7771
7772 * aarch64-tdep.c: Remove xml self tests.
7773 * amd64-linux-tdep.c: Likewise.
7774 * amd64-tdep.c: Likewise.
7775 * i386-linux-tdep.c: Likewise.
7776 * i386-tdep.c: Likewise.
7777
7778 2019-07-03 Pedro Alves <palves@redhat.com>
7779
7780 PR cli/24732
7781 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7782 (pipe_cmd_option_defs): New.
7783 (make_pipe_cmd_options_def_group): New.
7784 (pipe_command): Use gdb::option::process_options.
7785 (pipe_command_completer): New function.
7786 (_initialize_cli_cmds): Install completer for "pipe" command.
7787
7788 2019-07-03 Pedro Alves <palves@redhat.com>
7789
7790 * cli/cli-option.c (union option_value) <string>: New field.
7791 (struct option_def_and_value): Add ctor, move ctor, dtor and
7792 use DISABLE_COPY_AND_ASSIGN.
7793 (option_def_and_value::clear_value): New.
7794 (parse_option, save_option_value_in_ctx, get_val_type_str)
7795 (add_setshow_cmds_for_options): Handle var_string.
7796 * cli-option.h (union option_def::var_address) <string>: New
7797 field.
7798 (struct string_option_def): New.
7799 * maint-test-options.c (struct test_options_opts): Add default
7800 ctor and use DISABLE_COPY_AND_ASSIGN.
7801 <string_opt>: New field.
7802 (test_options_opts::~test_options_opts): New.
7803 (test_options_opts::dump): Also dump "-string".
7804 (test_options_option_defs): Install "string.
7805
7806 2019-07-03 Pedro Alves <palves@redhat.com>
7807
7808 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7809 option_value with a null enumeration.
7810 (complete_options): Save the option values in the context.
7811 (save_option_value_in_ctx): New, factored out from ...
7812 (process_options): ... here.
7813 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7814 of the function.
7815 * maint-test-options.c (test_options_opts::dump): New, factored
7816 out from ...
7817 (maintenance_test_options_command_mode): ... here.
7818 (maintenance_test_options_command_completion_result): Delete.
7819 (maintenance_test_options_command_completion_text): Update
7820 comment.
7821 (maintenance_show_test_options_completion_result): Change
7822 prototype. Just print
7823 maintenance_test_options_command_completion_text.
7824 (save_completion_result): New.
7825 (maintenance_test_options_completer_mode): Pass options context to
7826 complete_options, and then save a dump.
7827 (_initialize_maint_test_options): Use add_cmd to install "maint
7828 show test-options-completion-result".
7829
7830 2019-07-03 Pedro Alves <palves@redhat.com>
7831
7832 * NEWS (New commands): Mention "with" and "maint with".
7833 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7834 (with_command, with_command_completer): New.
7835 (pipe_command): Adjust to new repeat_previous
7836 interface.
7837 (_initialize_cli_cmds): Install the "with" command and its "w"
7838 alias.
7839 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7840 declarations.
7841 * cli/cli-setshow.c (parse_cli_var_uinteger)
7842 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7843 argument strings for all var_types.
7844 (get_setshow_command_value_string): New, factored out from ...
7845 (do_show_command): ... this.
7846 * cli/cli-setshow.h: Include <string>.
7847 (get_setshow_command_value_string): Declare.
7848 * command.h (repeat_previous): Now returns const char *. Adjust
7849 comment.
7850 * maint.c: Include "cli/cli-cmds.h".
7851 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7852 (_initialize_maint_cmds): Register the "maintenance with" command.
7853 * top.c (repeat_previous): Move bits from pipe_command here:
7854 Return the saved command line, if any; error out if there's no
7855 command to relaunch.
7856
7857 2019-07-03 Pedro Alves <palves@redhat.com>
7858
7859 * NEWS (New commands): Mention "maint set/show test-settings"
7860 instead of "maint test-settings".
7861 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7862 (maintenance_test_settings_set_list): Rename to ...
7863 (maintenance_set_test_settings_list): ... this.
7864 (maintenance_test_settings_show_list): Rename to ...
7865 (maintenance_show_test_settings_list): ... this.
7866 (maintenance_test_settings_cmd): Delete.
7867 (maintenance_test_settings_set_cmd): ...
7868 (maintenance_set_test_settings_cmd): ... this.
7869 (maintenance_test_settings_show_cmd): ...
7870 (maintenance_show_test_settings_cmd): ... this.
7871 (maintenance_test_settings_show_value_cmd):
7872 (maintenance_show_test_settings_value_cmd): ... this.
7873 (_initialize_maint_test_settings): No longer install the "maint
7874 test-settings" prefix command. Rename "maint test-settings set"
7875 to "maint set test-settings", and "maint test-settings show" to
7876 "maint show test-settings". Adjust all subcommands.
7877
7878 2019-07-03 Pedro Alves <palves@redhat.com>
7879
7880 * maint-test-settings.c: Fix file's intro comment. Replace all
7881 references to "test-options" with references to "test-settings",
7882 in comments.
7883
7884 2019-07-03 Pedro Alves <palves@redhat.com>
7885
7886 * maint-test-settings.c (maintenance_test_settings_xxx)
7887 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7888 New.
7889 (maintenance_test_settings_enums): Use them.
7890 (maintenance_test_settings_enum): Default to
7891 maintenance_test_settings_xxx.
7892 (_initialize_maint_test_settings): Initialize
7893 MAINTENANCE_TEST_SETTINGS_FILENAME.
7894
7895 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7896
7897 * breakpoint.h (remove_breakpoints_inf): Change return type to
7898 void, move function documentation here.
7899 * breakpoint.c (remove_breakpoints_inf): Change return type to
7900 void, move function documentation to header.
7901
7902 2019-07-02 Pedro Alves <palves@redhat.com>
7903
7904 * NEWS (Completion improvements): Mention "info threads".
7905 * thread.c (struct info_threads_opts, info_threads_option_defs)
7906 (make_info_threads_options_def_group): New.
7907 (info_threads_command): Use gdb::option::process_options.
7908 (info_threads_command_completer): New.
7909 (_initialize_thread): Use gdb::option::build_help to build the
7910 help text for "info threads".
7911
7912 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7913
7914 * defs.h (generic_load): Move from here...
7915 * symfile.h (generic_load): ... to here. Rename name parameter
7916 to args.
7917 * symfile.c (generic_load): Add comment.
7918
7919 2019-07-01 Tom Tromey <tromey@adacore.com>
7920
7921 * dwarf2read.c
7922 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7923 declaration of without_params. Fix formatting.
7924
7925 2019-07-01 Tom Tromey <tromey@adacore.com>
7926
7927 * ada-exp.y (find_primitive_type): Update.
7928 * ada-lang.h (ada_lookup_symbol): Update.
7929 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7930 parameter.
7931 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7932
7933 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7934
7935 PR breakpoints/24541
7936 * gdbarch.c: Regenerate.
7937 * gdbarch.h: Regenerate.
7938 * gdbarch.sh: Add 'stap_adjust_register'.
7939 * i386-tdep.c: Include '<unordered_set>'.
7940 (i386_stap_adjust_register): New function.
7941 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7942 * stap-probe.c (stap_parse_register_operand): Call
7943 'gdbarch_stap_adjust_register'.
7944
7945 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7946
7947 PR python/24742
7948 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7949 * python/python.c (do_start_initialization): Use 'xmalloc'
7950 instead of 'PyMem_Malloc'.
7951
7952 2019-06-28 Tom Tromey <tromey@adacore.com>
7953
7954 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7955 for Ada.
7956
7957 2019-06-27 Tom Tromey <tromey@adacore.com>
7958
7959 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7960 objfile_key.
7961 (arm_find_mapping_symbol, arm_record_special_symbol)
7962 (_initialize_arm_tdep): Update.
7963 (arm_objfile_data_free): Remove.
7964
7965 2019-06-27 Tom Tromey <tromey@adacore.com>
7966
7967 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7968 to cp_print_static_field.
7969
7970 2019-06-26 Tom Tromey <tromey@adacore.com>
7971
7972 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7973 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7974 declare.
7975
7976 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7977
7978 * features/aarch64-core.c (create_feature_aarch64_core):
7979 Regenerate.
7980 * features/aarch64-core.xml: Add cpsr flags.
7981
7982 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7983
7984 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7985 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7986
7987 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7988
7989 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7990 field.
7991 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7992 use.
7993 (arm_record_special_symbol): Don't insert new symbol in sorted
7994 position, push it at the end.
7995
7996 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7997
7998 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7999 (arm_mapping_symbol_s): Remove.
8000 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8001 (arm_mapping_symbol_vec): New typedef.
8002 (struct arm_per_objfile): Add constructor.
8003 <section_maps>: Change type to
8004 std::unique_ptr<arm_mapping_symbol_vec[]>.
8005 (arm_compare_mapping_symbols): Remove.
8006 (arm_find_mapping_symbol): Adjust to section_maps type change.
8007 (arm_objfile_data_free): Call delete on arm_per_objfile.
8008 (arm_record_special_symbol): Adjust to section_maps type change.
8009 Allocate arm_per_objfile with new.
8010
8011 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8012
8013 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8014 with the command prefix.
8015
8016 2019-06-25 Tom Tromey <tom@tromey.com>
8017
8018 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8019 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8020
8021 2019-06-25 Tom Tromey <tom@tromey.com>
8022
8023 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8024 type.
8025 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8026 protected.
8027
8028 2019-06-25 Tom Tromey <tom@tromey.com>
8029
8030 * tui/tui-winsource.c
8031 (tui_source_window_base::set_is_exec_point_at): Add check against
8032 LOA_ADDRESS.
8033
8034 2019-06-25 Tom Tromey <tom@tromey.com>
8035
8036 * tui/tui-source.c (tui_set_source_content): Don't check before
8037 xfree.
8038 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8039
8040 2019-06-25 Tom Tromey <tom@tromey.com>
8041
8042 * tui/tui-winsource.h (tui_update_source_window_as_is)
8043 (tui_alloc_source_buffer, tui_line_is_displayed)
8044 (tui_addr_is_displayed): Change type of win_info.
8045 * tui/tui-winsource.c (tui_update_source_window_as_is)
8046 (tui_clear_source_content, tui_show_source_line)
8047 (tui_show_source_content, tui_source_window_base::refill)
8048 (tui_source_window_base::set_is_exec_point_at)
8049 (tui_source_window_base::set_is_exec_point_at)
8050 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8051 (tui_alloc_source_buffer, tui_line_is_displayed)
8052 (tui_addr_is_displayed): Change type of win_info. Update.
8053 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8054 (tui_source_window_base::do_make_visible_with_new_height):
8055 Update.
8056 * tui/tui-source.c (tui_set_source_content)
8057 (tui_set_source_content_nil)
8058 (tui_source_window::do_scroll_vertical): Update.
8059 * tui/tui-layout.c (show_layout): Update.
8060 * tui/tui-disasm.c (tui_set_disassem_content)
8061 (tui_disasm_window::do_scroll_vertical): Update.
8062 * tui/tui-data.h (tui_win_content): Remove.
8063 (struct tui_gen_win_info) <content, content_size>: Remove.
8064 (struct tui_source_element): Add initializers and destructor.
8065 (union tui_which_element, struct tui_win_element): Remove.
8066 (struct tui_source_window_base) <content>: New field.
8067 (struct tui_data_window): Remove destructor.
8068 (tui_alloc_content, tui_free_win_content)
8069 (tui_free_all_source_wins_content): Don't declare.
8070 * tui/tui-data.c (tui_initialize_static_data): Update.
8071 (init_content_element, tui_alloc_content): Remove.
8072 (~tui_gen_win_info): Update.
8073 (~tui_data_window, tui_free_all_source_wins_content)
8074 (tui_free_win_content, free_content, free_content_elements):
8075 Remove.
8076
8077 2019-06-25 Tom Tromey <tom@tromey.com>
8078
8079 * tui/tui-winsource.h (tui_clear_source_content)
8080 (tui_erase_source_content, tui_show_source_content): Change type
8081 of win_info.
8082 * tui/tui-winsource.c (tui_clear_source_content)
8083 (tui_erase_source_content, tui_show_source_content): Change type
8084 of win_info.
8085 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8086 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8087 win_info.
8088 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8089 win_info.
8090 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8091
8092 2019-06-25 Tom Tromey <tom@tromey.com>
8093
8094 * tui/tui-winsource.c (tui_clear_source_content)
8095 (tui_source_window_base::set_is_exec_point_at): Update.
8096 * tui/tui-source.c (tui_set_source_content_nil): Update.
8097 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8098 a bool.
8099 * tui/tui-data.c (init_content_element): Update.
8100
8101 2019-06-25 Tom Tromey <tom@tromey.com>
8102
8103 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8104 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8105 * tui/tui-layout.c (init_and_make_win): Update.
8106 * tui/tui.h (enum tui_win_type): Update.
8107 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8108 tui_win_is_auxillary.
8109 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8110 tui_win_is_auxillary.
8111
8112 2019-06-25 Tom Tromey <tom@tromey.com>
8113
8114 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8115 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8116 (tui_delete_data_content_windows, tui_display_all_data)
8117 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8118 Update.
8119 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8120 * tui/tui-regs.c (tui_last_regs_line_no)
8121 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8122 (tui_show_registers): Update.
8123 (tui_show_register_group): Return void. Update.
8124 (tui_display_registers_from, tui_display_reg_element_at_line)
8125 (tui_display_registers_from_line, tui_check_register_values):
8126 Update.
8127 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8128 member.
8129 (struct tui_data_window) <regs_content>: Now a std::vector.
8130 <regs_content_count>: Remove.
8131 (tui_add_content_elements, tui_free_data_content): Don't declare.
8132 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8133 (init_content_element): Remove DATA_WIN case. Add assert.
8134 (tui_add_content_elements): Remove.
8135 (tui_data_window): Update.
8136 (tui_free_data_content): Remove.
8137 (free_content_elements): Remove DATA_WIN case.
8138
8139 2019-06-25 Tom Tromey <tom@tromey.com>
8140
8141 * tui/tui-data.c (tui_data_item_window): Update.
8142 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8143 * tui/tui-windata.c (tui_display_all_data)
8144 (tui_display_data_from_line): Update.
8145 (tui_check_data_values): Remove.
8146 * tui/tui-regs.c (tui_show_register_group)
8147 (tui_display_reg_element_at_line): Update.
8148 * tui/tui-hooks.c (tui_register_changed)
8149 (tui_refresh_frame_and_register_information): Call
8150 tui_check_register_values.
8151 * tui/tui-data.h (struct tui_data_window) <data_content,
8152 data_content_count, data_type>: Remove.
8153 (enum tui_data_type): Remove.
8154
8155 * tui/tui-data.c (tui_data_window::clear_detail)
8156 (~tui_data_window): Update.
8157
8158 2019-06-25 Tom Tromey <tom@tromey.com>
8159
8160 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8161 declare.
8162 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8163 Rename from tui_first_data_item_displayed. Update.
8164 (tui_data_window::refresh_all)
8165 (tui_data_window::do_scroll_vertical): Update.
8166 * tui/tui-data.h (struct tui_data_window)
8167 <first_data_item_displayed>: Declare new method.
8168
8169 2019-06-25 Tom Tromey <tom@tromey.com>
8170
8171 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8172 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8173 contents...
8174 (tui_initialize_static_data): ...here.
8175
8176 2019-06-25 Tom Tromey <tom@tromey.com>
8177
8178 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8179 (tui_display_registers_from, tui_check_register_values): Update.
8180 (tui_display_register): Remove win_info parameter; update.
8181 (tui_get_register): Change type of parameters.
8182 * tui/tui-data.h (struct tui_data_element): Remove.
8183 (union tui_which_element) <data>: Remove.
8184 <data_window>: Change type.
8185 (struct tui_data_item_window): New.
8186 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8187 case. Add assert.
8188 (~tui_data_item_window): New destructor.
8189 (free_content_elements): Remove DATA_ITEM_WIN case.
8190
8191 2019-06-25 Tom Tromey <tom@tromey.com>
8192
8193 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8194 Remove.
8195
8196 2019-06-25 Tom Tromey <tom@tromey.com>
8197
8198 * tui/tui-data.h (struct tui_command_element): Remove.
8199 (union tui_which_element) <command>: Remove.
8200 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8201 assert.
8202 (free_content_elements): Remove CMD_WIN case.
8203
8204 2019-06-25 Tom Tromey <tom@tromey.com>
8205
8206 * tui/tui-layout.c (tui_set_layout): Update.
8207 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8208 * tui/tui-data.c (layout_def): Update.
8209
8210 2019-06-25 Tom Tromey <tom@tromey.com>
8211
8212 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8213 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8214 (tui_source_window_base::set_new_height): Update.
8215 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8216 Update.
8217 (tui_set_locator_fullname, tui_set_locator_info)
8218 (tui_show_frame_info): Update.
8219 * tui/tui-source.c (tui_set_source_content)
8220 (tui_source_is_displayed): Update.
8221 * tui/tui-layout.c (show_source_disasm_command, show_data)
8222 (show_source_or_disasm_and_command): Update.
8223 * tui/tui-disasm.c (tui_set_disassem_content)
8224 (tui_get_begin_asm_address): Update.
8225 * tui/tui-data.h (struct tui_locator_element): Remove.
8226 (union tui_which_element) <locator>: Remove.
8227 (struct tui_locator_window): New.
8228 (tui_locator_win_info_ptr): Change return type.
8229 * tui/tui-data.c (_locator): Change type.
8230 (tui_locator_win_info_ptr): Change return type.
8231 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8232 (tui_alloc_content): Add assert.
8233
8234 2019-06-25 Tom Tromey <tom@tromey.com>
8235
8236 * tui/tui-winsource.c
8237 (tui_exec_info_window::maybe_allocate_content): New method.
8238 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8239 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8240 (make_source_or_disasm_window): Add cast.
8241 * tui/tui-data.h (union tui_which_element) <simple_string>:
8242 Remove.
8243 (struct tui_source_info): New.
8244 (struct tui_source_window_base) <execution_info>: Change type.
8245 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8246 case, and add assert.
8247 (tui_alloc_content): Add assert.
8248
8249 2019-06-25 Tom Tromey <tom@tromey.com>
8250
8251 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8252 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8253 * tui/tui-data.c (tui_alloc_win_info): Remove.
8254
8255 2019-06-25 Tom Tromey <tom@tromey.com>
8256
8257 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8258 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8259 can_highlight.
8260
8261 2019-06-25 Tom Tromey <tom@tromey.com>
8262
8263 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8264 make_visible_with_new_height method.
8265 (tui_win_info::make_visible_with_new_height): New method.
8266 (tui_source_window_base::do_make_visible_with_new_height)
8267 (tui_data_window::do_make_visible_with_new_height)
8268 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8269 (make_visible_with_new_height): Remove.
8270 (tui_resize_all, tui_adjust_win_heights): Use
8271 make_visible_with_new_height method.
8272 * tui/tui-data.h (struct tui_win_info)
8273 <do_make_visible_with_new_height, make_visible_with_new_height>:
8274 New methods.
8275 (struct tui_source_window_base, struct tui_data_window)
8276 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8277 methods.
8278
8279 2019-06-25 Tom Tromey <tom@tromey.com>
8280
8281 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8282 method.
8283 (update_tab_width): Call update_tab_width method.
8284 * tui/tui-data.h (struct tui_win_info)
8285 (struct tui_source_window_base) <update_tab_width>: New methods.
8286
8287 2019-06-25 Tom Tromey <tom@tromey.com>
8288
8289 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8290 parameter.
8291 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8292 parameter.
8293 (tui_gen_win_info::make_visible): Update.
8294 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8295 parameter.
8296 * tui/tui-data.h (enum tui_box): New enum.
8297 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8298
8299 2019-06-25 Tom Tromey <tom@tromey.com>
8300
8301 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8302 init_and_make_win for EXEC_INFO_WIN.
8303 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8304 longer inline.
8305 (struct tui_win_info) <~tui_win_info>: Inline.
8306 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8307 Don't declare.
8308 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8309 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8310 Remove.
8311 (tui_initialize_static_data): Update.
8312 (~tui_gen_win_info): Handle more cleanup here.
8313 (~tui_source_window_base): Delete "execution_info".
8314 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8315
8316 2019-06-25 Tom Tromey <tom@tromey.com>
8317
8318 * tui/tui-layout.c (make_command_window): Don't set
8319 can_highlight.
8320 (show_source_disasm_command): Call the reset method.
8321 (show_data): Don't set can_highlight. Call the reset method.
8322 (tui_gen_win_info::reset): Rename from init_gen_win_info
8323 (init_and_make_win): Simplify. Return tui_gen_win_info.
8324 (show_source_or_disasm_and_command): Call the reset method.
8325 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8326 (struct tui_cmd_window): Set can_highlight.
8327
8328 2019-06-25 Tom Tromey <tom@tromey.com>
8329
8330 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8331 from make_visible.
8332 (tui_make_visible, tui_make_invisible): Rewrite.
8333 (tui_win_info::make_visible): Remove.
8334 (tui_source_window_base::make_visible): Update.
8335 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8336 method. Moved from...
8337 (struct tui_win_info) <make_visible>: ...here.
8338
8339 2019-06-25 Tom Tromey <tom@tromey.com>
8340
8341 * tui/tui-winsource.c
8342 (tui_source_window_base::do_scroll_horizontal): Remove direction
8343 parameter.
8344 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8345 direction parameter.
8346 * tui/tui-win.c (tui_win_info::forward_scroll)
8347 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8348 (tui_win_info::right_scroll): Update.
8349 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8350 direction parameter.
8351 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8352 direction parameter.
8353 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8354 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8355 Remove direction parameter.
8356 (struct tui_source_window_base, struct tui_source_window)
8357 (struct tui_disasm_window, struct tui_data_window)
8358 (struct tui_cmd_window): Update.
8359
8360 2019-06-25 Tom Tromey <tom@tromey.com>
8361
8362 * tui/tui-winsource.h (tui_set_exec_info_content)
8363 (tui_show_exec_info_content, tui_erase_exec_info_content)
8364 (tui_clear_exec_info_content, tui_update_exec_info): Change
8365 argument to tui_source_window_base.
8366 * tui/tui-winsource.c (tui_set_exec_info_content)
8367 (tui_show_exec_info_content, tui_erase_exec_info_content)
8368 (tui_clear_exec_info_content, tui_update_exec_info): Change
8369 argument to tui_source_window_base.
8370
8371 2019-06-25 Tom Tromey <tom@tromey.com>
8372
8373 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8374 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8375
8376 2019-06-25 Tom Tromey <tom@tromey.com>
8377
8378 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8379 check.
8380
8381 2019-06-25 Tom Tromey <tom@tromey.com>
8382
8383 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8384 type to void.
8385 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8386 type to void.
8387 * tui/tui-source.c (tui_set_source_content): Update.
8388 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8389
8390 2019-06-25 Tom Tromey <tom@tromey.com>
8391
8392 * tui/tui-win.c (window_name_completer, tui_set_focus)
8393 (tui_all_windows_info): Use name method.
8394 * tui/tui-data.h (struct tui_gen_win_info)
8395 (struct tui_source_window, struct tui_disasm_window)
8396 (struct tui_data_window, struct tui_cmd_window) <name>: New
8397 method.
8398 (tui_win_name): Don't declare.
8399 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8400 (tui_win_name): Remove.
8401
8402 2019-06-25 Tom Tromey <tom@tromey.com>
8403
8404 * tui/tui-winsource.h (tui_update_source_window)
8405 (tui_update_source_window_as_is): Change parameter type.
8406 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8407 to be a tui_source_window_base.
8408 (tui_update_source_window_as_is): Likewise.
8409 * tui/tui-win.c (make_visible_with_new_height): Update.
8410
8411 2019-06-25 Tom Tromey <tom@tromey.com>
8412
8413 * tui/tui-winsource.c (tui_erase_source_content)
8414 (tui_show_source_content, tui_show_exec_info_content)
8415 (tui_erase_exec_info_content): Use refresh_window method.
8416 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8417 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8418 from tui_refresh_win.
8419 (tui_data_window::refresh_window): New method.
8420 (tui_win_info::refresh, tui_source_window_base::refresh)
8421 (tui_refresh_all): Use refresh_window method.
8422 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8423 method.
8424 * tui/tui-regs.c (tui_display_register): Call refresh_window
8425 method.
8426 * tui/tui-layout.c (show_source_disasm_command)
8427 (show_source_or_disasm_and_command): Call refresh_window method.
8428 * tui/tui-data.h (struct tui_gen_win_info)
8429 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8430 New method.
8431
8432 2019-06-25 Tom Tromey <tom@tromey.com>
8433
8434 * tui/tui.c (tui_rl_other_window, tui_enable)
8435 (tui_is_window_visible, tui_get_command_dimension): Update.
8436 * tui/tui-winsource.c (tui_update_source_window_as_is)
8437 (tui_clear_source_content, tui_erase_source_content)
8438 (tui_show_source_line, tui_source_window_base::refill)
8439 (tui_source_window_base::do_scroll_horizontal)
8440 (tui_source_window_base::set_is_exec_point_at)
8441 (tui_update_breakpoint_info, tui_set_exec_info_content)
8442 (tui_alloc_source_buffer, tui_line_is_displayed)
8443 (tui_addr_is_displayed): Update.
8444 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8445 (tui_check_and_display_highlight_if_needed)
8446 (tui_win_info::make_visible, tui_win_info::refresh)
8447 (tui_refresh_all): Update.
8448 * tui/tui-windata.c (tui_first_data_item_displayed)
8449 (tui_delete_data_content_windows, tui_erase_data_content)
8450 (tui_display_all_data, tui_data_window::refresh_all)
8451 (tui_check_data_values): Update.
8452 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8453 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8454 (tui_win_info::backward_scroll, tui_refresh_all_win)
8455 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8456 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8457 (tui_source_window_base::set_new_height)
8458 (tui_data_window::set_new_height)
8459 (make_invisible_and_set_new_height)
8460 (make_visible_with_new_height, new_height_ok)
8461 (parse_scrolling_args): Update.
8462 * tui/tui-stack.c (tui_show_frame_info): Update.
8463 * tui/tui-source.c (tui_set_source_content)
8464 (tui_set_source_content_nil, tui_source_is_displayed)
8465 (tui_source_window::do_scroll_vertical): Update.
8466 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8467 (tui_display_registers_from, tui_display_reg_element_at_line)
8468 (tui_check_register_values, tui_reg_command): Update.
8469 * tui/tui-layout.c (tui_default_win_height)
8470 (show_source_disasm_command, show_data, init_and_make_win)
8471 (show_source_or_disasm_and_command): Update.
8472 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8473 (tui_redisplay_readline, tui_mld_flush)
8474 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8475 (tui_getc): Update.
8476 * tui/tui-disasm.c (tui_set_disassem_content)
8477 (tui_disasm_window::do_scroll_vertical): Update.
8478 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8479 Now virtual.
8480 (struct tui_win_info): Derive from tui_gen_win_info.
8481 <~tui_win_info>: Mark as override.
8482 <generic>: Remove member.
8483 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8484 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8485 (~tui_data_window, ~tui_win_info)
8486 (tui_free_all_source_wins_content): Update.
8487 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8488
8489 2019-06-25 Tom Tromey <tom@tromey.com>
8490
8491 * tui/tui-layout.c (init_and_make_win): Use new.
8492 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8493 destructor, initializers.
8494 (tui_alloc_generic_win_info): Don't declare.
8495 * tui/tui-data.c (_locator): Add argument to constructor.
8496 (source_win, disasm_win): New globals.
8497 (exec_info): Remove.
8498 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8499 Update.
8500 (tui_alloc_generic_win_info): Remove.
8501 (init_content_element): Use new.
8502 (tui_win_info::tui_win_info): Update.
8503 (free_content_elements) <case DATA_WIN>: Use delete.
8504
8505 2019-06-25 Tom Tromey <tom@tromey.com>
8506
8507 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8508 * tui/tui-windata.c (tui_first_data_item_displayed)
8509 (tui_delete_data_content_windows): Update.
8510 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8511 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8512 (tui_display_registers_from, tui_check_register_values): Update.
8513 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8514 pointer.
8515 * tui/tui-data.c (init_content_element): Update. Allocate the new
8516 window.
8517 (tui_free_data_content): Update.
8518 (free_content_elements) <case DATA_WIN>: Free the window.
8519
8520 2019-06-25 Tom Tromey <tom@tromey.com>
8521
8522 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8523 Update.
8524 * tui/tui-layout.c (make_command_window)
8525 (show_source_disasm_command, show_data, init_and_make_win)
8526 (show_source_or_disasm_and_command): Update.
8527 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8528 method.
8529 <can_highight, is_highlighted>: Now bool.
8530 (tui_set_win_highlight): Don't declare.
8531 * tui/tui-data.c (tui_set_win_highlight): Remove.
8532
8533 2019-06-25 Tom Tromey <tom@tromey.com>
8534
8535 * tui/tui-wingeneral.c (make_visible): Remove check of window
8536 type.
8537
8538 2019-06-25 Tom Tromey <tom@tromey.com>
8539
8540 * tui/tui-win.c (tui_win_info::max_height)
8541 (tui_cmd_window::max_height): New methods.
8542 (new_height_ok): Call max_height.
8543 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8544 <max_height>: New method.
8545
8546 2019-06-25 Tom Tromey <tom@tromey.com>
8547
8548 * tui/tui-win.c (tui_source_window_base::set_new_height)
8549 (tui_data_window::set_new_height): New methods.
8550 (make_invisible_and_set_new_height): Call set_new_height method.
8551 * tui/tui-data.h (struct tui_win_info)
8552 (struct tui_source_window_base, struct tui_data_window)
8553 <set_new_height>: New method.
8554
8555 2019-06-25 Tom Tromey <tom@tromey.com>
8556
8557 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8558 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8559 tui_refresh_data_win.
8560 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8561 method.
8562 (tui_refresh_all_win): Call the refresh_all method.
8563 (tui_set_focus): Likewise.
8564 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8565 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8566 Likewise.
8567
8568 2019-06-25 Tom Tromey <tom@tromey.com>
8569
8570 * tui/tui-winsource.h (tui_refill_source_window)
8571 (tui_set_is_exec_point_at): Don't declare.
8572 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8573 (tui_source_window_base::refill): Rename from
8574 tui_refill_source_window.
8575 (tui_source_window_base::do_scroll_horizontal): Update.
8576 (tui_source_window_base::set_is_exec_point_at): Rename from
8577 tui_set_is_exec_point_at.
8578 (tui_update_all_breakpoint_info): Update.
8579 * tui/tui-stack.c (tui_show_frame_info): Update.
8580 * tui/tui-layout.c (show_data): Add cast.
8581 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8582 * tui/tui-data.h (struct tui_source_window_base) <refill,
8583 set_is_exec_point_at>: New methods.
8584 (tui_source_windows, tui_add_to_source_windows): Update types.
8585 (tui_add_to_source_windows): Remove redundant declaration.
8586 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8587 (tui_source_windows): Change return type.
8588 (tui_clear_source_windows_detail): Update.
8589 (tui_add_to_source_windows): Change type of parameter.
8590 (tui_free_all_source_wins_content): Update.
8591
8592 2019-06-25 Tom Tromey <tom@tromey.com>
8593
8594 * tui/tui-wingeneral.c (tui_win_info::refresh)
8595 (tui_source_window_base::refresh): New methods.
8596 (tui_refresh_all): Call the refresh method.
8597 * tui/tui-data.h (struct tui_win_info)
8598 (struct tui_source_window_base) <refresh>: New method.
8599
8600 2019-06-25 Tom Tromey <tom@tromey.com>
8601
8602 * tui/tui.h (tui_is_window_visible): Return bool.
8603 * tui/tui.c (tui_is_window_visible): Return bool.
8604 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8605 (tui_make_visible, tui_make_invisible)
8606 (tui_win_info::make_visible)
8607 (tui_source_window_base::make_visible, make_all_visible)
8608 (tui_make_all_visible, tui_make_all_invisible): Update.
8609 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8610 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8611 bool.
8612 (struct tui_win_info, struct tui_source_window_base)
8613 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8614 * tui/tui-data.c (tui_init_generic_part): Update.
8615
8616 2019-06-25 Tom Tromey <tom@tromey.com>
8617
8618 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8619 (tui_source_window_base::make_visible): New methods.
8620 (make_all_visible): Make method call.
8621 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8622 (struct tui_source_window_base, struct tui_cmd_window): Override
8623 make_visible.
8624 (tui_win_is_source_type): Don't declare.
8625 * tui/tui-data.c (tui_win_is_source_type): Remove.
8626
8627 2019-06-25 Tom Tromey <tom@tromey.com>
8628
8629 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8630 NULL check.
8631
8632 2019-06-25 Tom Tromey <tom@tromey.com>
8633
8634 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8635 Inline constructor. Add initializers for members.
8636 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8637 constructors; now inline in class.
8638
8639 2019-06-25 Tom Tromey <tom@tromey.com>
8640
8641 * tui/tui-regs.c (tui_show_registers): Update.
8642 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8643 bool.
8644 * tui/tui-data.c (tui_data_window::clear_detail)
8645 (tui_data_window): Update.
8646
8647 2019-06-25 Tom Tromey <tom@tromey.com>
8648
8649 * tui/tui-windata.c (tui_display_all_data)
8650 (tui_display_data_from_line, tui_display_data_from)
8651 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8652 Update.
8653 * tui/tui-regs.c (tui_last_regs_line_no)
8654 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8655 (tui_show_registers, tui_show_register_group)
8656 (tui_display_registers_from, tui_display_reg_element_at_line)
8657 (tui_display_registers_from_line, tui_check_register_values)
8658 (tui_reg_next, tui_reg_prev): Update.
8659 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8660 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8661 tui_data_window.
8662 (struct tui_win_info) <detail>: Remove. Add new fields from
8663 tui_data_info.
8664 (TUI_DATA_WIN): Add cast.
8665 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8666 (~tui_data_window): Simplify.
8667
8668 2019-06-25 Tom Tromey <tom@tromey.com>
8669
8670 * tui/tui-layout.c (show_source_disasm_command)
8671 (show_source_or_disasm_and_command): Update.
8672 * tui/tui-io.c (update_cmdwin_start_line)
8673 (tui_redisplay_readline): Update.
8674 * tui/tui-data.h (struct tui_command_info): Remove.
8675 (struct tui_win_info) <detail>: Remove command_info member.
8676 (struct tui_data_window) <start_line>: New member, from
8677 tui_command_info.
8678 (TUI_CMD_WIN): Add casts.
8679
8680 2019-06-25 Tom Tromey <tom@tromey.com>
8681
8682 * tui/tui-winsource.c (tui_update_source_window)
8683 (tui_refill_source_window)
8684 (tui_source_window_base::do_scroll_horizontal)
8685 (tui_update_breakpoint_info, tui_set_exec_info_content)
8686 (tui_show_exec_info_content, tui_erase_exec_info_content)
8687 (tui_clear_exec_info_content): Update.
8688 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8689 Update.
8690 * tui/tui-win.c (make_invisible_and_set_new_height)
8691 (make_visible_with_new_height): Update.
8692 * tui/tui-source.c (tui_set_source_content)
8693 (tui_show_symtab_source): Update.
8694 * tui/tui-layout.c (extract_display_start_addr)
8695 (show_source_disasm_command, show_data)
8696 (make_source_or_disasm_window)
8697 (show_source_or_disasm_and_command): Update.
8698 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8699 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8700 "gdbarch".
8701 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8702 to tui_source_window_base.
8703 (struct tui_win_info) <detail>: Remove source_info member.
8704 (struct tui_source_window_base) <has_locator>: Inline.
8705 Move contents from tui_source_info; rename has_locator member to
8706 m_has_locator.
8707 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8708 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8709 header file.
8710 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8711 Simplify.
8712 (tui_free_all_source_wins_content): Cast to
8713 tui_source_window_base.
8714
8715 2019-06-25 Tom Tromey <tom@tromey.com>
8716
8717 * tui/tui-win.c (make_invisible_and_set_new_height)
8718 (make_visible_with_new_height): Call has_locator method.
8719 * tui/tui-layout.c (show_source_disasm_command, show_data)
8720 (show_source_or_disasm_and_command): Update for bool change.
8721 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8722 (tui_win_info) <has_locator>: New method.
8723 (struct tui_source_window_base) <has_locator>: New method.
8724 (tui_win_has_locator): Don't declare.
8725 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8726 from tui_win_has_locator.
8727 (tui_source_window_base): Use false, not FALSE.
8728
8729 2019-06-25 Tom Tromey <tom@tromey.com>
8730
8731 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8732 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8733 clear_detail method directly.
8734 (tui_clear_win_detail): Remove.
8735
8736 2019-06-25 Tom Tromey <tom@tromey.com>
8737
8738 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8739 "this", not TUI_DISASM_WIN.
8740
8741 2019-06-25 Tom Tromey <tom@tromey.com>
8742
8743 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8744 declare.
8745 * tui/tui-winsource.c
8746 (tui_source_window_base::do_scroll_horizontal): Rename from
8747 tui_horizontal_source_scroll.
8748 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8749 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8750 from tui_vertical_data_scroll.
8751 * tui/tui-win.h (tui_scroll): Don't declare.
8752 * tui/tui-win.c (tui_win_info::forward_scroll)
8753 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8754 (tui_win_info::right_scroll): Rename and update.
8755 (tui_scroll_forward_command, tui_scroll_backward_command)
8756 (tui_scroll_left_command, tui_scroll_right_command): Update.
8757 (tui_scroll): Remove.
8758 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8759 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8760 from tui_vertical_source_scroll.
8761 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8762 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8763 from tui_vertical_disassem_scroll.
8764 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8765 do_scroll_horizontal>: New methods.
8766 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8767 Likewise.
8768 (struct tui_source_window_base): Add do_scroll_horizontal.
8769 (struct tui_source_window, struct tui_disasm_window): Add
8770 do_scroll_vertical.
8771 (struct tui_data_window, struct tui_cmd_window): Add
8772 do_scroll_horizontal and do_scroll_vertical.
8773 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8774
8775 2019-06-25 Tom Tromey <tom@tromey.com>
8776
8777 * tui/tui-data.h (struct tui_source_window_base): New struct.
8778 (struct tui_source_window): Derive from tui_source_window_base.
8779 (struct tui_disasm_window): New struct.
8780 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8781 from tui_source_window::clear_detail.
8782 (tui_source_window_base): Rename from tui_source_window.
8783 (~tui_source_window_base): Rename from ~tui_source_window.
8784 (tui_alloc_win_info): Create a tui_disasm_window.
8785
8786 2019-06-25 Tom Tromey <tom@tromey.com>
8787
8788 * tui/tui-data.h (struct tui_source_window)
8789 (struct tui_data_window): Declare destructors.
8790 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8791 destructors.
8792 (tui_win_info): Simplify.
8793
8794 2019-06-25 Tom Tromey <tom@tromey.com>
8795
8796 * tui/tui-winsource.c (tui_display_main)
8797 (tui_update_source_windows_with_addr)
8798 (tui_update_all_breakpoint_info): Update.
8799 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8800 (new_height_ok, parse_scrolling_args): Update.
8801 * tui/tui-stack.c (tui_show_frame_info): Update.
8802 * tui/tui-data.h (struct tui_list): Remove.
8803 (tui_source_windows): Return a reference to a std::vector.
8804 * tui/tui-data.c (source_windows): Now a std::vector.
8805 (tui_source_windows): Change return type.
8806 (tui_clear_source_windows): Rewrite.
8807 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8808 (tui_free_all_source_wins_content): Rewrite.
8809
8810 2019-06-25 Tom Tromey <tom@tromey.com>
8811
8812 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8813 (struct tui_data_window, struct tui_cmd_window): Declare
8814 clear_detail method.
8815 * tui/tui-data.c (tui_source_window::clear_detail)
8816 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8817 methods.
8818 (tui_clear_win_detail): Simplify.
8819
8820 2019-06-25 Tom Tromey <tom@tromey.com>
8821
8822 * tui/tui-layout.c (make_source_window, make_disasm_window)
8823 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8824 Return the new window.
8825 (show_source_disasm_command, show_data)
8826 (show_source_or_disasm_and_command): Update.
8827
8828 2019-06-25 Tom Tromey <tom@tromey.com>
8829
8830 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8831 parameter. Return the new window.
8832 (show_source_disasm_command): Update and remove NULL check.
8833 (show_source_or_disasm_and_command): Update.
8834
8835 2019-06-25 Tom Tromey <tom@tromey.com>
8836
8837 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8838
8839 2019-06-25 Tom Tromey <tom@tromey.com>
8840
8841 * tui/tui-data.h (struct tui_win_info): Make constructor
8842 protected. Make destructor virtual. Add initializers.
8843 (tui_source_window, tui_data_window, tui_cmd_window): New
8844 classes.
8845 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8846 constructor. Add "type" parameter.
8847 (tui_source_window, tui_data_window, tui_cmd_window): New
8848 constructors.
8849 (tui_alloc_win_info): Instantiate the appropriate subclass.
8850
8851 2019-06-25 Tom Tromey <tom@tromey.com>
8852
8853 * tui/tui-win.c (tui_resize_all): Use delete.
8854 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8855 destructor.
8856 (tui_free_window): Don't declare.
8857 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8858 Update.
8859
8860 2019-06-25 Tom Tromey <tom@tromey.com>
8861
8862 * tui/tui-data.h (struct tui_win_info): Add constructor.
8863 * tui/tui-data.c (tui_alloc_win_info): Use new.
8864 (tui_free_window): Use delete.
8865
8866 2019-06-22 Tom Tromey <tom@tromey.com>
8867
8868 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8869 declare.
8870 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8871
8872 2019-06-22 Tom Tromey <tom@tromey.com>
8873
8874 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8875 declare.
8876 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8877
8878 2019-06-22 Tom de Vries <tdevries@suse.de>
8879
8880 * dwarf2read.c (create_addrmap_from_aranges)
8881 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8882 instead of '%zu'.
8883
8884 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8885
8886 * dwarf2read.h (dwarf2_section_info_def): Remove.
8887 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8888 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8889 std::vector<dwarf2_section_info>.
8890 (struct dwo_file) <~dwo_file>: Remove.
8891 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8892 types field.
8893 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8894 (dwarf2_read_debug_names): Likewise.
8895 (create_debug_types_hash_table): Change parameter type to
8896 array_view, adjust code accordingly.
8897 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8898 (partial_die_info::fixup): Likewise.
8899 (determine_prefix): Likewise.
8900 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8901
8902 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8903
8904 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8905 gdb_bfd_ref_ptr.
8906 <~dwo_file>: Remove call to gdb_bfd_unref.
8907 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8908 gdb_bfd_ref_ptr::get.
8909
8910 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8911
8912 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8913 type to htab_up.
8914 * dwarf2read.c (struct dwo_file): Initialize fields.
8915 <~dwo_file>: New.
8916 (free_dwo_file): Remove, move content to ~dwo_file.
8917 (struct dwo_file_deleter): Remove.
8918 (dwo_file_up>: Remove custom deleter.
8919 (free_dwo_files): Remove.
8920 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8921 dwo_files.
8922 (process_skeletonless_type_units): Call unique_ptr::get.
8923 (allocate_dwo_file_hash_table): Add deleter to created hash
8924 table. Change return type to htab_up.
8925 (lookup_dwo_file_slot): Don't memset dwo_file, call
8926 unique_ptr::get.
8927 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8928 (create_dwo_unit_in_dwp_v2): Likewise.
8929 (open_and_init_dwo_file): Likewise.
8930 (free_dwo_file_from_slot): Remove.
8931
8932 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8933
8934 * dwarf2read.h (struct dwarf2_section_info) <readin,
8935 is_virtual>: Change type to bool.
8936 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8937 true instead of 1.
8938
8939 2019-06-19 Tom Tromey <tom@tromey.com>
8940
8941 * tui/tui-data.h (tui_init_content_element): Don't declare.
8942
8943 2019-06-19 Tom Tromey <tom@tromey.com>
8944
8945 * tui/tui-data.h (tui_init_win_info): Don't declare.
8946
8947 2019-06-19 Tom de Vries <tdevries@suse.de>
8948
8949 * dwarf2read.h (abstract_to_concrete): Change type to
8950 std::unordered_map<sect_offset, std::vector<sect_offset>,
8951 gdb::hash_enum<sect_offset>>.
8952
8953 2019-06-19 Tom Tromey <tromey@adacore.com>
8954
8955 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8956 EVAL_AVOID_SIDE_EFFECTS specially.
8957
8958 2019-06-19 Tom Tromey <tromey@adacore.com>
8959
8960 * source-cache.c (highlighter): New global.
8961 (source_cache::get_source_lines): Create a highlighter on demand.
8962
8963 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8964
8965 * defs.h (deprecated_interactive_hook): Delete declaration.
8966 * interps.c (clear_interpreter_hooks): Remove use of
8967 deprecated_interactive_hook.
8968 * top.c (deprecated_interactive_hook): Delete definition.
8969 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8970
8971 2019-06-18 Tom de Vries <tdevries@suse.de>
8972
8973 PR gdb/24515
8974 * dwarf2read.h (abstract_to_concrete): Change type from
8975 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8976 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8977 * dwarf2read.c (read_variable): Update.
8978 (dwarf2_fetch_die_loc_sect_off): Update.
8979
8980 2019-06-17 Tom de Vries <tdevries@suse.de>
8981
8982 PR gdb/24617
8983 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8984 accessing parent[parent_len - 1].
8985
8986 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8987
8988 PR gdb/24364
8989 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8990 call dtrace_process_dof with NULL dof.
8991
8992 2019-06-16 Tom de Vries <tdevries@suse.de>
8993
8994 PR gdb/24445
8995 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8996
8997 2019-06-16 Tom Tromey <tom@tromey.com>
8998
8999 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9000 (make_all_visible): Use address of member.
9001
9002 2019-06-16 Tom Tromey <tom@tromey.com>
9003
9004 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9005 (tui_free_window, free_content, free_content_elements): Remove
9006 unnecessary cast.
9007 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9008 cast.
9009 * tui/tui-regs.c (tui_show_register_group)
9010 (tui_display_registers_from, tui_display_reg_element_at_line):
9011 Remove unnecessary cast.
9012
9013 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9014
9015 * linux-nat.c (normal_mask): Delete.
9016 (_initialize_linux_nat): Don't initialise normal_mask.
9017
9018 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9019
9020 PR gdb/24445
9021 * dwarf-index-write.h (write_psymtabs_to_index): Add
9022 dwz_basename parameter.
9023 * dwarf-index-write.c (write_gdbindex): Move file writing to
9024 write_gdbindex_1. Change return type void.
9025 (assert_file_size): Move up, remove filename parameter.
9026 (write_gdbindex_1): New function.
9027 (write_debug_names): Change return type to void, call
9028 assert_file_size.
9029 (struct index_wip_file): New struct.
9030 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9031 file logic to index_wip_file. Write index for dwz file if
9032 needed.
9033 (save_gdb_index_command): Pass basename of dwz file, if present.
9034 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9035 build-id of dwz file, if present.
9036 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9037 (dwarf2_get_dwz_file): Likewise.
9038 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9039 (dwarf2_get_dwz_file): Likewise.
9040
9041 2019-06-16 Tom Tromey <tom@tromey.com>
9042
9043 * coffread.c (process_coff_symbol): Use xstrdup.
9044 * value.c (create_internalvar): Use xstrdup.
9045
9046 2019-06-16 Tom Tromey <tom@tromey.com>
9047
9048 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9049 * breakpoint.c (stopin_command, stopat_command)
9050 (until_break_command, decode_location_default): Remove unnecessary
9051 cast.
9052 * utils.c (subset_compare): Remove unnecessary cast.
9053 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9054 cast.
9055 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9056 cast.
9057 * infcmd.c (path_command): Remove unnecessary cast.
9058 * coffread.c (decode_type): Remove unnecessary cast.
9059 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9060 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9061 * tui/tui-stack.c (tui_show_locator_content)
9062 (tui_show_frame_info): Remove unnecessary cast.
9063 * tui/tui-win.c (tui_scroll_forward_command)
9064 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9065 (parse_scrolling_args): Remove unnecessary cast.
9066 * tui/tui-data.c (init_win_info, tui_del_window)
9067 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9068 (free_content_elements): Remove unnecessary cast.
9069 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9070 unnecessary cast.
9071 * tui/tui-source.c (tui_set_source_content)
9072 (tui_vertical_source_scroll): Remove unnecessary cast.
9073 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9074 cast.
9075 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9076 * tui/tui-regs.c (tui_display_registers_from)
9077 (tui_display_register): Remove unnecessary cast.
9078 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9079 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9080 (make_visible): Remove unnecessary cast.
9081 * tui/tui-winsource.c (tui_erase_source_content)
9082 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9083 unnecessary cast.
9084 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9085 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9086 * stabsread.c (read_type, read_array_type, read_range_type):
9087 Remove unnecessary cast.
9088 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9089 (parse_symbol, parse_type, upgrade_type, parse_external)
9090 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9091 unnecessary cast.
9092 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9093
9094 2019-06-16 Tom Tromey <tom@tromey.com>
9095
9096 * tui/tui-data.c (tui_alloc_generic_win_info)
9097 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9098 checks.
9099
9100 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9101 Andrew Burgess <andrew.burgess@embecosm.com>
9102
9103 * f-typeprint.c (f_print_type): Don't return early for not
9104 associated or not allocated types.
9105 (f_type_print_varspec_suffix): Add print_rank parameter and print
9106 ranks of array types in case they dangling.
9107 (f_type_print_base): Add print_rank parameter.
9108
9109 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9110
9111 * NEWS: Mention new MI commands.
9112 * break-catch-throw.c (enum exception_event_kind): Move to
9113 breakpoint.h.
9114 (print_mention_exception_catchpoint): Output text as a single
9115 message.
9116 (catch_exception_command_1): Rename to...
9117 (catch_exception_event): ...this, make non-static, update header
9118 command, and change some parameter types.
9119 (catch_catch_command): Update for changes to
9120 catch_exception_command_1.
9121 (catch_throw_command): Likewise.
9122 (catch_rethrow_command): Likewise.
9123 * breakpoint.c (enum exception_event_kind): Delete.
9124 * breakpoint.h (enum exception_event_kind): Moved here from
9125 break-catch-throw.c.
9126 (catch_exception_event): Declare.
9127 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9128 (mi_cmd_catch_throw): New function.
9129 (mi_cmd_catch_rethrow): New function.
9130 (mi_cmd_catch_catch): New function.
9131 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9132 'catch-catch' entries.
9133 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9134 (mi_cmd_catch_rethrow): Declare.
9135 (mi_cmd_catch_catch): Declare.
9136
9137 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9138
9139 * annotate.c (annotate_source_line): Change return type to void,
9140 update implementation to match.
9141 * annotate.h (annotate_source_line): Change return type to void,
9142 update header comment.
9143 * stack.c (print_frame_info): Don't change what frame information
9144 is printed based on whether annotations are on or not.
9145
9146 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9147
9148 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9149 (annotate_source): Make static.
9150 (annotate_source_line): Moved from source.c and renamed from
9151 identify_source_line. Update the return type.
9152 * annotate.h (annotate_source): Delete declaration.
9153 (annotate_source_line): Declaration moved from source.h, and
9154 renamed from identify_source_line. Return type updated.
9155 * source.c (identify_source_line): Moved to annotate.c and renamed
9156 to annotate_source_line.
9157 (info_line_command): Remove check of annotation_level.
9158 * source.h (identify_source_line): Move declaration to annotate.h
9159 and rename to annotate_source_line.
9160 * stack.c: Add 'annotate.h' include.
9161 (print_frame_info): Remove check of annotation_level before
9162 calling annotate_source_line.
9163
9164 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9165
9166 * source-cache.c (source_cache::get_plain_source_lines): Use
9167 open_source_file_with_line_charpos instead of just
9168 open_source_file, remove call to find_source_lines.
9169 (source_cache::get_source_lines): Likewise.
9170 * source.c (find_source_lines): Make static.
9171 (get_filename_and_charpos): Renamed into...
9172 (open_source_file_with_line_charpos): ..this along with changes to
9173 return a scoped_fd, and some other minor clean ups.
9174 (identify_source_line): Use open_source_file_with_line_charpos.
9175 (search_command_helper): Use open_source_file_with_line_charpos
9176 instead of just open_source_file, remove call to
9177 find_source_lines.
9178 * source.h (open_source_file_with_line_charpos): Declare new
9179 function.
9180 (find_source_lines): Delete declaration.
9181
9182 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9183
9184 * source.c (get_filename_and_charpos): Remove fullname
9185 parameter.
9186 (identify_source_line): Update call to get_filename_and_charpos.
9187
9188 2019-06-14 Tom Tromey <tromey@adacore.com>
9189
9190 PR gdb/24502:
9191 * ui-style.h (skip_ansi_escape): Update comment.
9192 * ui-file.h (class no_terminal_escape_file): New class.
9193 * ui-file.c (no_terminal_escape_file::write)
9194 (no_terminal_escape_file::puts): New methods.
9195 * cli/cli-logging.c (handle_redirections): Use
9196 no_terminal_escape_file.
9197
9198 2019-06-14 Tom Tromey <tromey@adacore.com>
9199
9200 * NEWS: Move convenience variable news above Python news.
9201
9202 2019-06-14 Tom Tromey <tom@tromey.com>
9203
9204 * gnulib: Move directory to top-level.
9205 * configure.ac: Don't configure gnulib.
9206 * configure: Rebuild.
9207 * common/common-defs.h: Use new path to gnulib.
9208 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9209 (GNULIB_H): Remove.
9210 (INCGNU): Look in new gnulib location.
9211 (HFILES_NO_SRCDIR): Remove gnulib files.
9212 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9213 (generated_files): Remove GNULIB_H.
9214 ($(LIBGNU), all-lib): Remove targets.
9215 (distclean): Don't mention GNULIB_BUILDDIR.
9216 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9217
9218 2019-06-14 Tom Tromey <tromey@adacore.com>
9219
9220 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9221 Warn if symbol file does not provide any symbols.
9222
9223 2019-06-14 Tom Tromey <tromey@adacore.com>
9224
9225 * source.c (find_and_open_source): Respect basenames_may_differ.
9226
9227 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9228
9229 * annotate.c (annotate_breakpoints_invalid): Make use of
9230 scoped_restore_terminal_state.
9231 (annotate_frames_invalid): Likewise.
9232
9233 2019-06-14 Tom Tromey <tromey@adacore.com>
9234
9235 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9236 allow assignment to an internalvar.
9237
9238 2019-06-14 Tom Tromey <tromey@adacore.com>
9239
9240 * ada-lex.l: Allow "_" in attribute names.
9241
9242 2019-06-14 Tom Tromey <tromey@adacore.com>
9243
9244 PR gdb/24653:
9245 * regcache.c (registers_changed): Don't call alloca.
9246 * top.c (execute_command): Don't call alloca.
9247
9248 2019-06-13 Pedro Alves <palves@redhat.com>
9249
9250 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9251 'expression'. When parsing an expression, error out if there's
9252 junk after "unlimited".
9253 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9254 (do_set_command): Adjust calls to is_unlimited_literal.
9255
9256 2019-06-13 Pedro Alves <palves@redhat.com>
9257
9258 * compile/compile.c (make_compile_options_def_group): Add braces
9259 around array_view initializer.
9260 * thread.c (make_thread_apply_all_options_def_group)
9261 (make_thread_apply_all_options_def_group): Likewise.
9262
9263 2019-06-13 Pedro Alves <palves@redhat.com>
9264
9265 * NEWS (New commands): Mention "maint test-options
9266 require-delimiter", "maint test-options unknown-is-error", "maint
9267 test-options unknown-is-operand" and "maint show
9268 test-options-completion-result".
9269 (New command options, command completion): New section.
9270 (Completion improvements): New section.
9271 Mention that you can abbreviate "unlimited".
9272
9273 2019-06-13 Pedro Alves <palves@redhat.com>
9274
9275 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9276 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9277 * unittests/cli-utils-selftests.c (test_parse_flags)
9278 (test_parse_flags_qcs): Delete.
9279 (test_cli_utils): Don't call deleted functions.
9280
9281 2019-06-13 Pedro Alves <palves@redhat.com>
9282
9283 * thread.c: Include "cli/cli-option.h".
9284 (tp_array_compar_ascending): Global.
9285 (tp_array_compar): Delete function.
9286 (tp_array_compar_ascending, tp_array_compar_descending): New
9287 functions.
9288 (ascending_option_def, qcs_flag_option_def)
9289 (thr_qcs_flags_option_defs)
9290 (make_thread_apply_all_options_def_group)
9291 (make_thread_apply_options_def_group): New.
9292 (thread_apply_all_command): Use gdb::option::process_options.
9293 (thread_apply_command_completer)
9294 (thread_apply_all_command_completer): New.
9295 (thread_apply_command): Use gdb::option::process_options.
9296 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9297 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9298 to generate help text of "thread apply". Adjust "taas"'s help.
9299 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9300 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9301
9302 2019-06-13 Pedro Alves <palves@redhat.com>
9303
9304 * thread.c (thread_apply_command): Check for invalid TID with
9305 isdigit instead of !isalpha.
9306
9307 2019-06-13 Pedro Alves <palves@redhat.com>
9308
9309 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9310 (validate_flags_qcs): New.
9311 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9312 (validate_flags_qcs): Declare.
9313 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9314 (make_frame_apply_options_def_group): New.
9315 (frame_apply_command_count): Process options with
9316 gdb::option::process_options.
9317 (frame_apply_completer): New.
9318 (frame_apply_level_completer, frame_apply_all_completer)
9319 (frame_apply_completer): New.
9320 (_initialize_stack): Update help of "frame apply", "frame apply
9321 level", "frame apply all" and "faas" to mention supported options
9322 and install command completers.
9323 * stack.h (frame_apply_all_completer): Declare.
9324 * thread.c: Include "stack.h".
9325 (tfaas_command): Add "--".
9326 (_initialize_thread): Update help "tfaas" to mention supported
9327 options and install command completer.
9328
9329 2019-06-13 Pedro Alves <palves@redhat.com>
9330
9331 * completer.c (complete_nested_command_line): New.
9332 (gdb_completion_word_break_characters_throw): Add assertion.
9333 * completer.h (complete_nested_command_line): Declare.
9334
9335 2019-06-13 Pedro Alves <palves@redhat.com>
9336
9337 * stack.c (parse_backtrace_qualifiers): New.
9338 (backtrace_command): Use it.
9339 (backtrace_command_completer): Complete on qualifiers.
9340
9341 2019-06-13 Pedro Alves <palves@redhat.com>
9342
9343 * frame.c: Include "cli/cli-option.h.
9344 (user_set_backtrace_options): New.
9345 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9346 Delete.
9347 (get_prev_frame): Adjust.
9348 (boolean_option_def, uinteger_option_def)
9349 (set_backtrace_option_defs): New.
9350 (_initialize_frame): Adjust and use
9351 gdb::option::add_setshow_cmds_for_options to install "set
9352 backtrace past-main" and "set backtrace past-entry".
9353 * frame.h: Include "cli/cli-option.h".
9354 (struct frame_print_options): Forward declare.
9355 (print_frame_arguments_all, print_frame_arguments_scalars)
9356 (print_frame_arguments_none): Declare.
9357 (print_entry_values): Delete declaration.
9358 (struct frame_print_options, user_frame_print_options): New.
9359 (struct set_backtrace_options): New.
9360 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9361 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9362 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9363 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9364 (list_args_or_locals): Add frame_print_options parameter.
9365 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9366 * python/py-framefilter.c (enumerate_args): Pass down
9367 USER_FRAME_PRINT_OPTIONS.
9368 * stack.c: Include "cli/cli-option.h".
9369 (print_frame_arguments_all, print_frame_arguments_scalars)
9370 (print_frame_arguments_none): Declare.
9371 (print_raw_frame_arguments, print_entry_values): Delete.
9372 (user_frame_print_options): New.
9373 (boolean_option_def, enum_option_def, frame_print_option_defs):
9374 New.
9375 (struct backtrace_cmd_options): New.
9376 (bt_flag_option_def): New.
9377 (backtrace_command_option_defs): New.
9378 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9379 (print_frame_arg, read_frame_arg, print_frame_args)
9380 (print_frame_info, print_frame): Add frame_print_options parameter
9381 and use it.
9382 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9383 (backtrace_command_1): Add frame_print_options and
9384 backtrace_cmd_options parameters and use them.
9385 (make_backtrace_options_def_group): New.
9386 (backtrace_command): Process command options with
9387 gdb::option::process_options.
9388 (backtrace_command_completer): New.
9389 (_initialize_stack): Extend "backtrace"'s help to mention
9390 supported options. Install completer for "backtrace".
9391 Install some settings commands with add_setshow_cmds_for_options.
9392
9393 2019-06-13 Pedro Alves <palves@redhat.com>
9394
9395 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9396 and that "set/show print raw frame-arguments" are now deprecated.
9397
9398 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9399 command.
9400 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9401 * stack.c (_initialize_stack): Install "set/show print
9402 raw-frame-arguments", and deprecate "set/show print raw
9403 frame-arguments".
9404 * valprint.c (_initialize_valprint): Deprecate "set/show print
9405 raw".
9406
9407 2019-06-13 Pedro Alves <palves@redhat.com>
9408
9409 * compile/compile.c (struct compile_options): New.
9410 (compile_flag_option_def, compile_command_option_defs)
9411 (make_compile_options_def_group): New.
9412 (compile_file_command): Handle options with
9413 gdb::option::process_options.
9414 (compile_file_command_completer): New function.
9415 (compile_code_command): Handle options with
9416 gdb::option::process_options.
9417 (compile_code_command_completer): New function.
9418 (_initialize_compiler): Install completers for "compile code" and
9419 "compile file". Mention available options in "compile code" and
9420 "compile code"'s help.
9421 * completer.c (advance_to_completion_word): New, factored out from
9422 ...
9423 (advance_to_expression_complete_word_point): ... this.
9424 (advance_to_filename_complete_word_point): New.
9425 * completer.h (advance_to_filename_complete_word_point): New
9426 declaration.
9427
9428 2019-06-13 Pedro Alves <palves@redhat.com>
9429
9430 * compile/compile.c: Include "cli/cli-option.h".
9431 (compile_print_value): Scope data pointer is now a
9432 value_print_options pointer; adjust.
9433 (compile_print_command): Process options. Scope data pointer is
9434 now a value_print_options pointer; adjust.
9435 (_initialize_compile): Update "compile print"'s help to include
9436 supported options. Install a completer for "compile print".
9437 * cp-valprint.c (show_vtblprint, show_objectprint)
9438 (show_static_field_print): Delete.
9439 (_initialize_cp_valprint): Don't install "set print
9440 static-members", "set print vtbl", "set print object" here.
9441 * printcmd.c: Include "cli/cli-option.h" and
9442 "common/gdb_optional.h".
9443 (print_command_parse_format): Rework to fill in a
9444 value_print_options instead of a format_data.
9445 (print_value): Change parameter type from format_data pointer to
9446 value_print_options reference. Adjust.
9447 (print_command_1): Process options. Adjust to pass down a
9448 value_print_options.
9449 (print_command_completer): New.
9450 (_initialize_printcmd): Install print_command_completer as
9451 handle_brkchars completer for the "print" command. Update
9452 "print"'s help to include supported options.
9453 * valprint.c: Include "cli/cli-option.h".
9454 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9455 here from cp-valprint.c.
9456 (boolean_option_def, uinteger_option_def)
9457 (value_print_option_defs, make_value_print_options_def_group):
9458 New. Use gdb::option::add_setshow_cmds_for_options to install
9459 "set print elements", "set print null-stop", "set print repeats",
9460 "set print pretty", "set print union", "set print array", "set
9461 print address", "set print symbol", "set print array-indexes".
9462 * valprint.h: Include <string> and "cli/cli-option.h".
9463 (make_value_print_options_def_group): Declare.
9464 (print_value): Change parameter type from format_data pointer to
9465 value_print_options reference.
9466 (print_command_completer): Declare.
9467
9468 2019-06-13 Pedro Alves <palves@redhat.com>
9469
9470 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9471 (COMMON_SFILES): Add maint-test-settings.c.
9472 * cli/cli-decode.c (boolean_enums): New global, factored out from
9473 ...
9474 (add_setshow_boolean_cmd): ... here.
9475 * cli/cli-decode.h (boolean_enums): Declare.
9476 * cli/cli-option.c: New file.
9477 * cli/cli-option.h: New file.
9478 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9479 factored out from ...
9480 (parse_cli_boolean_value(const char *)): ... this.
9481 (is_unlimited_literal): Change parameter type to pointer to
9482 pointer. Adjust and advance ARG pointer.
9483 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9484 (parse_cli_var_enum): New, factored out from ...
9485 (do_set_command): ... this. Adjust.
9486 * cli/cli-setshow.h (parse_cli_boolean_value)
9487 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9488 (parse_cli_var_enum): Declare.
9489 * cli/cli-utils.c: Include "cli/cli-option.h".
9490 (get_ulongest): New.
9491 * cli/cli-utils.h (get_ulongest): Declare.
9492 (check_for_argument): New overloads.
9493 * maint-test-options.c: New file.
9494
9495 2019-06-13 Pedro Alves <palves@redhat.com>
9496
9497 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9498 parse a range if "-" is at the end of the string.
9499
9500 2019-06-13 Pedro Alves <palves@redhat.com>
9501
9502 * cli/cli-setshow.c (parse_auto_binary_operation)
9503 (parse_cli_boolean_value): Don't allow "o".
9504
9505 2019-06-13 Pedro Alves <palves@redhat.com>
9506
9507 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9508 * NEWS: Mention maint test-settings KIND.
9509 * maint-test-settings.c: New file.
9510
9511 2019-06-13 Pedro Alves <palves@redhat.com>
9512
9513 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9514 completer.
9515 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9516 "set" completers.
9517
9518 2019-06-13 Pedro Alves <palves@redhat.com>
9519
9520 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9521 after item.
9522
9523 2019-06-13 Pedro Alves <palves@redhat.com>
9524
9525 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9526
9527 2019-06-13 Pedro Alves <palves@redhat.com>
9528
9529 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9530 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9531 call.
9532 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9533 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9534 calls.
9535 (check_for_argument): Skip spaces after argument.
9536
9537 2019-06-13 Pedro Alves <palves@redhat.com>
9538
9539 * thread.c (thread_apply_command): Adjust TID parsing.
9540 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9541 detected before end of string.
9542 (tid_is_in_list): Error out if LIST is invalid.
9543
9544 2019-06-13 Pedro Alves <palves@redhat.com>
9545
9546 * completer.c (complete_line_internal_1): Rewind completion word
9547 point.
9548 (completion_tracker::advance_custom_word_point_by): Change
9549 parameter type to int.
9550 * completer.h (completion_tracker::advance_custom_word_point_by):
9551 Likewise.
9552
9553 2019-06-13 Pedro Alves <palves@redhat.com>
9554
9555 * completer.c (advance_to_completion_word): Handle delimiters.
9556
9557 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9558
9559 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9560
9561 2019-06-11 Tom Tromey <tom@tromey.com>
9562
9563 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9564 (xmalloc_failed): Move to alloc.c.
9565 * alloc.c: New file.
9566 * Makefile.in (COMMON_SFILES): Add alloc.c.
9567
9568 2019-06-11 Tom Tromey <tom@tromey.com>
9569
9570 * nat/linux-waitpid.c: Don't include server.h.
9571 (linux_debug): Remove.
9572 (my_waitpid): Update.
9573
9574 2019-06-11 Tom Tromey <tromey@adacore.com>
9575
9576 * infcall.c (_initialize_infcall): Remove trailing newline from
9577 help.
9578 * user-regs.c (_initialize_user_regs): Remove trailing newline
9579 from help.
9580 * typeprint.c (_initialize_typeprint): Remove trailing newline
9581 from help.
9582 * reverse.c (_initialize_reverse): Remove trailing newlines from
9583 help.
9584 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9585 from help.
9586 * language.c (add_set_language_command): Remove trailing newline
9587 from help.
9588 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9589 help.
9590 * disasm.c (_initialize_disasm): Remove trailing newline from
9591 help.
9592 * top.c (init_main): Remove trailing newline from help.
9593 * interps.c (_initialize_interpreter): Remove trailing newline
9594 from help.
9595 * btrace.c (_initialize_btrace): Remove trailing newlines from
9596 help.
9597 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9598 from help.
9599 * python/python.c (_initialize_python): Remove trailing newline
9600 from help.
9601 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9602 help.
9603 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9604 from help. Reformat some text.
9605 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9606 from help.
9607 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9608 newline from help.
9609
9610 2019-06-11 Tom Tromey <tromey@adacore.com>
9611
9612 * darwin-nat.c (darwin_decode_exception_message)
9613 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9614
9615 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9616
9617 * valops.c (value_slice): Check for not allocated or not
9618 associated values.
9619
9620 2019-06-10 Tom de Vries <tdevries@suse.de>
9621
9622 PR gdb/24618
9623 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9624 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9625 invalid.
9626
9627 2019-06-10 Tom de Vries <tdevries@suse.de>
9628
9629 PR gdb/24611
9630 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9631 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9632
9633 2019-06-10 Tom de Vries <tdevries@suse.de>
9634
9635 PR symtab/24545
9636 * symtab.c (struct demangled_name_entry): Add language field.
9637 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9638 static minimal symbol". Set and use language field.
9639
9640 2019-06-10 Tom Tromey <tromey@adacore.com>
9641
9642 * ada-lang.c (_initialize_ada_language): Update help text.
9643
9644 2019-06-10 Tom Tromey <tromey@adacore.com>
9645
9646 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9647 with a newline.
9648 * guile/guile.c (handle_boot_error): Don't end warning with a
9649 newline.
9650 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9651 warning with a newline.
9652 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9653 newline.
9654 (s12z_frame_cache): Likewise.
9655 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9656 a newline.
9657 * solib-svr4.c (disable_probes_interface): Don't end warning with
9658 a newline.
9659 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9660 newline.
9661 * python/python.c (do_finish_initialization): Don't end warning
9662 with a newline.
9663
9664 2019-06-10 Tom Tromey <tom@tromey.com>
9665
9666 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9667 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9668 gdbpy_enter.
9669
9670 2019-06-10 Tom Tromey <tromey@adacore.com>
9671
9672 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9673 data.
9674 (elf_new_init): Don't call stabsread_new_init.
9675 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9676 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9677 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9678
9679 2019-06-10 Tom de Vries <tdevries@suse.de>
9680
9681 PR symtab/16264
9682 PR symtab/24517
9683 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9684
9685 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9686
9687 * source.c (find_and_open_source): Also rewrite relative file
9688 names.
9689
9690 2019-04-26 Amos Bird <amosbird@gmail.com>
9691
9692 * annotate.c (annotate_thread_exited): Add "thread-exited"
9693 annotation.
9694
9695 2019-06-06 Tom Tromey <tromey@adacore.com>
9696
9697 * maint.h (class scoped_command_stats): Use
9698 DISABLE_COPY_AND_ASSIGN.
9699 <print_time>: New method.
9700 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9701 print_time.
9702 (scoped_command_stats::print_time): New method.
9703
9704 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9705
9706 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9707 instructions of lengths 6 or 8 bytes.
9708
9709 2019-06-04 Pedro Alves <palves@redhat.com>
9710
9711 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9712
9713 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9714 * breakpoint.c (condition_completer): Likewise.
9715 * cli/cli-dump.c (scan_expression): Likewise.
9716 * common/filestuff.c (mkdir_recursive): Likewise.
9717 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9718 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9719 (gdb_abspath): Likewise.
9720 * compile/compile-cplus-types.c
9721 (compile_cplus_instance::decl_name): Likewise.
9722 * completer.c (complete_explicit_location):
9723 (signal_completer, reg_or_group_completer_1): Likewise.
9724 * cp-support.c (cp_remove_params_if_any): Likewise.
9725 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9726 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9727 * infcmd.c (strip_bg_char): Likewise.
9728 * linespec.c (copy_token_string): Likewise.
9729 * mi/mi-main.c (output_cores): Likewise.
9730 * psymtab.c (psymtab_search_name):
9731 * symfile.c (test_set_ext_lang_command): Likewise.
9732 * target.c (target_fileio_read_stralloc): Likewise.
9733 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9734 * value.c (complete_internalvar): Likewise.
9735
9736 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9737
9738 Add objfile property to gdb.Type.
9739 * NEWS: Mention Python API addition.
9740 * python/py-type.c (typy_get_objfile): New method.
9741
9742 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9743
9744 * NEWS: Mention the new set|show style [title|highlight].
9745 Mention changes to "show style", "help" and "apropos".
9746
9747 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9748
9749 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9750 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9751 instead of print_help_for_command.
9752 (print_doc_of_command): New function.
9753 (help_list): Add 'apropos -v word' suggestion.
9754 (print_help_for_command): Style the command name using title style.
9755 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9756 (_initialize_cli_cmds): Describe -v in apropos_command help.
9757
9758 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9759
9760 * cli/cli-style.h (cli_style_option): Add name in constructor,
9761 add m_name class member, add constructor with intensity,
9762 add name class function.
9763 (cli_style_option::add_setshow_commands): Remove name argument.
9764 (highlight_style, title_style): New styles.
9765 * cli/cli-style.c (do_show): New function that shows a style
9766 characteristic styling the style name with itself.
9767 (set_style_name): New function.
9768 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9769 Update all callers according to the changes in cli/cli-style.h.
9770 * utils.h (fputs_highlighted): New function.
9771 * utils.c (fputs_highlighted): Likewise.
9772
9773 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9774
9775 * NEWS: Mention new pipe command and new convenience variables.
9776
9777 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9778
9779 * cli/cli-cmds.c (pipe_command): New function.
9780 (_initialize_cli_cmds): Call add_com for pipe_command.
9781 Define | as an alias for pipe.
9782 (exit_status_set_internal_vars): New function.
9783 (shell_escape): Call exit_status_set_internal_vars.
9784 cli/cli-decode.c (find_command_name_length): Recognize | as
9785 a single character command.
9786
9787 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9788
9789 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9790 top.c (execute_command_to_ui_file): New function, mostly a copy
9791 of execute_command_to_string.
9792 (execute_command_to_string): Implement by calling
9793 execute_command_to_ui_file.
9794
9795 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9796
9797 * top.h (saved_command_line): Remove declaration.
9798 * top.c (previous_saved_command_line, previous_repeat_arguments):
9799 New variables.
9800 (saved_command_line): Make static, define together with other
9801 'repeat variables'.
9802 (dont_repeat): Clear repeat_arguments.
9803 (repeat_previous, get_saved_command_line, save_command_line):
9804 New functions.
9805 (gdb_init): Initialize saved_command_line
9806 and previous_saved_command_line.
9807 * main.c (captured_main_1): Remove saved_command_line initialization.
9808 * event-top.c (handle_line_of_input): Update to use
9809 the new 'repeat' related functions instead of direct access to
9810 saved_command_line.
9811 * command.h (repeat_previous, get_saved_command_line,
9812 save_command_line): New declarations.
9813 (dont_repeat): Add comment.
9814
9815 2019-05-30 Tom Tromey <tromey@adacore.com>
9816
9817 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9818 Fix comment.
9819 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9820
9821 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9822
9823 PR cli/24587
9824 * completer.c (complete): Initialize variable word.
9825
9826 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9827
9828 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9829 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9830 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9831 'body' is NULL to the outter 'if', protecting the '!is_define'
9832 situation as well.
9833
9834 2019-05-29 Tom Tromey <tromey@adacore.com>
9835
9836 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9837 (dwarf_unknown): New function.
9838 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9839 (dwarf_type_encoding_name): Use dwarf_unknown.
9840
9841 2019-05-29 Tom Tromey <tromey@adacore.com>
9842
9843 PR c++/20020:
9844 * cp-valprint.c (cp_print_value_fields): Call
9845 cp_print_static_field inside "try".
9846
9847 2019-05-29 Tom Tromey <tromey@adacore.com>
9848
9849 * inflow.c (struct terminal_info): Add default operator=.
9850 * configure: Rebuild.
9851 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9852 -Wdeprecated-copy-dtor, -Wredundant-move.
9853
9854 2019-05-29 Tom Tromey <tromey@adacore.com>
9855
9856 * NEWS: Add entry.
9857 * infcmd.c (print_return_value_1): Handle finish_print
9858 option.
9859 (show_print_finish): New function.
9860 (_initialize_infcmd): Add "set/show print finish" commands.
9861 * valprint.c (user_print_options): Initialize new member.
9862 * valprint.h (struct value_print_options) <finish_print>: New
9863 member.
9864
9865 2019-05-28 Tom Tromey <tromey@adacore.com>
9866
9867 * ada-lang.c (ada_remove_Xbn_suffix)
9868 (find_old_style_renaming_symbol)
9869 (parse_old_style_renaming): Remove.
9870 (ada_find_renaming_symbol): Don't call
9871 find_old_style_renaming_symbol.
9872 (ada_is_renaming_symbol): Rename from
9873 ada_find_renaming_symbol. Remove "block" parameter. Return
9874 bool. Now static.
9875 (ada_read_var_value): Update and simplify.
9876 * ada-exp.y (write_var_or_type): Remove old code.
9877
9878 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9879
9880 PR gdb/25010
9881 * event-top.c: Remove include comment.
9882 * inflow.c (class scoped_ignore_sigttou): Move from here...
9883 * inflow.h (class scoped_ignore_sigttou): ...to here.
9884 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9885 * top.c: Remove include comment.
9886
9887 2019-05-27 Tom Tromey <tom@tromey.com>
9888
9889 * NEWS: Fix typo.
9890
9891 2019-05-22 Tom Tromey <tromey@adacore.com>
9892
9893 * target.c (target_follow_exec): Constify parameter.
9894 * target-delegates.c: Rebuild.
9895 * remote.c (remote_target::follow_exec): Constify parameter.
9896 * infrun.c (follow_exec): Constify parameter.
9897 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9898 (target_follow_exec): Likewise.
9899
9900 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9901
9902 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9903 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9904
9905 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9906
9907 * NEWS: Add debugredirect and testsuite sections.
9908
9909 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9910
9911 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9912 target descriptions using exclusively floating point register name
9913 aliases.
9914
9915 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9916
9917 PR gdb/18644:
9918 * f-lang.c (build_fortran_types): Handle the case where
9919 gdbarch_floatformat_for_type returns a nullptr.
9920
9921 2019-05-21 Tom de Vries <tdevries@suse.de>
9922
9923 PR cli/24587
9924 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9925
9926 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9927
9928 PR gdb/18644:
9929 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9930 16-byte floats.
9931 * i386-tdep.c (i386_floatformat_for_type): Use
9932 floatformats_ia64_quad for the 16-byte floating point component
9933 within a fortran 32-byte complex number.
9934
9935 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9936
9937 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9938 delete default constructor.
9939 (find_partial_die): Update to return const struct.
9940 (partial_die_parent_scope): Move variable declaration into scope
9941 of its use and change its type to auto.
9942 (guess_partial_die_structure_name): Likewise.
9943 (partial_die_info::fixup): Likewise.
9944
9945 2019-05-17 Tom Tromey <tromey@adacore.com>
9946
9947 * source.c (find_and_open_source): Remove cast.
9948
9949 2019-05-17 Tom Tromey <tromey@adacore.com>
9950
9951 * annotate.c (annotate_source): Make "filename" const.
9952 * annotate.h (annotate_source): Use const.
9953
9954 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9955
9956 * disasm.c (set_disassembler_options): Send errors to stderr.
9957
9958 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9959
9960 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9961 (cli_interp_base::set_logging): Check debug_redirect.
9962 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9963 * cli/cli-logging.c (debug_redirect): Add static variable.
9964 (pop_output_files): Add default param.
9965 (handle_redirections): Print debug setting.
9966 (show_logging_command): Likewise.
9967 (_initialize_cli_logging): Add debugredirect command.
9968 * interps.c (current_interp_set_logging): Add debug_redirect
9969 parameter.
9970 * interps.h (set_logging): Add debug_redirect parameter.
9971 (current_interp_set_logging): Likewise.
9972 * mi/mi-common.h: Likewise.
9973 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9974
9975 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9976 Tom Tromey <tromey@adacore.com>
9977
9978 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9979 directly.
9980 * cli/cli-interp.h (make_logging_output): Remove declaration.
9981 * cli/cli-logging.c (make_logging_output): Remove function.
9982 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9983 directly.
9984 * ui-file.c (tee_file::tee_file): Remove bools.
9985 (tee_file::~tee_file): Remove deletes.
9986 * ui-file.h (tee_file): Remove bools.
9987
9988 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9989
9990 * mi/mi-cmds.h (mi_cmd_complete): New function.
9991 * mi/mi-main.c (mi_cmd_complete): Likewise.
9992 * mi/mi-cmds.c: Define new MI command -complete.
9993 * NEWS: Mention new -complete command.
9994
9995 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9996
9997 * completer.h (complete): New function.
9998 * completer.c (complete): Likewise.
9999 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10000 function defined in completer.h.
10001
10002 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10003
10004 * MAINTAINERS (Write After Approval): Add myself.
10005
10006 2019-05-17 Tom de Vries <tdevries@suse.de>
10007
10008 PR gdb/24094
10009 * dwarf2read.c (struct cu_partial_die_info): New struct.
10010 (find_partial_die): Return cu_partial_die_info.
10011 (partial_die_parent_scope, guess_partial_die_structure_name)
10012 (partial_die_info::fixup): Handle new return type of find_partial_die.
10013
10014 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10015
10016 PR breakpoints/24541
10017 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10018 "std::string", simplifying the algorithm.
10019
10020 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10021
10022 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10023 (stap_static_probe_ops::get_probes): Likewise.
10024
10025 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10026
10027 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10028 '-')" and "else if".
10029 (stap_parse_single_operand): Join checks for
10030 "gdbarch_stap_parse_special_token_p" and
10031 "gdbarch_stap_parse_special_token" in the same "if" statement.
10032 Invert check when verifying for operation on register
10033 displacement.
10034
10035 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10036
10037 * stap-probe.c (stap_get_opcode): Update comment.
10038 (stap_get_expected_argument_type): Likewise.
10039 (handle_stap_probe): Likewise.
10040
10041 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10042
10043 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10044 return type to 'bool'. Adjust comment. Use 'bool' when
10045 appropriate.
10046 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10047 * stap-probe.c (stap_parse_argument_1): Likewise.
10048 (stap_is_operator): Likewise.
10049 (stap_is_generic_prefix): Likewise.
10050 (stap_is_register_prefix): Likewise.
10051 (stap_is_register_indirection_prefix): Likewise.
10052 (stap_is_integer_prefix): Likewise.
10053 (stap_generic_check_suffix): Likewise.
10054 (stap_check_integer_suffix): Likewise.
10055 (stap_check_register_suffix): Likewise.
10056 (stap_check_register_indirection_suffix): Likewise.
10057 (stap_parse_register_operand): Likewise.
10058 (stap_parse_single_operand): Likewise.
10059 (stap_parse_argument_1): Likewise.
10060 (stap_probe::get_argument_count): Likewise.
10061 (stap_is_operator): Likewise.
10062
10063 2019-05-16 Tom Tromey <tromey@adacore.com>
10064
10065 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10066 keyword to foreach.
10067
10068 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10069
10070 * linux-thread-db.c (try_thread_db_load_1): Change return type
10071 to bool.
10072 (try_thread_db_load): Likewise.
10073 (try_thread_db_load_from_pdir_1): Likewise.
10074 (try_thread_db_load_from_pdir): Likewise.
10075 (try_thread_db_load_from_sdir): Likewise.
10076 (try_thread_db_load_from_dir): Likewise.
10077 (thread_db_load_search): Likewise.
10078 (has_libpthread): Likewise.
10079 (thread_db_load): Likewise.
10080
10081 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10082
10083 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10084 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10085 NULL, and complain/return if that's the case.
10086
10087 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10088
10089 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10090 (advance, posn, abstract_read_memory): New functions.
10091 [struct mem_read_abstraction]: New struct.
10092 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10093
10094 2019-05-14 Tom Tromey <tromey@adacore.com>
10095
10096 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10097 value is not lval_memory.
10098
10099 2019-05-14 Tom Tromey <tromey@adacore.com>
10100
10101 * solib.c (info_sharedlibrary_command): Style the file name.
10102
10103 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10104
10105 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10106 (aarch64_vnv_type): Likewise.
10107 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10108 * common/tdesc.c: Likewise.
10109 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10110 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10111 * features/aarch64-fpu.xml: Add ieee half view.
10112 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10113 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10114 * gdbtypes.h (struct builtin_type): Likewise.
10115 (struct objfile_type): Likewise.
10116
10117 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10118
10119 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10120 typo.
10121 * location.h (string_to_event_location): Likewise.
10122
10123 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10124
10125 GDB 8.3 released.
10126
10127 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10128
10129 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10130 New variable declaration.
10131 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10132 New variable.
10133 (print_one_breakpoint): Use ui_out::test_flags and new global
10134 variable to compute use_fixed_output.
10135 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10136 Remove.
10137 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10138 (mi_multi_location_breakpoint_output_fixed): Remove.
10139 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10140 new variable.
10141 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10142 fix_multi_location_breakpoint_output flag if version >= 3.
10143 * ui-out.h (enum ui_out_flag)
10144 <fix_multi_location_breakpoint_output>: New enumerator.
10145
10146 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10147
10148 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10149
10150 2019-05-10 Tom Tromey <tromey@adacore.com>
10151
10152 * ada-lang.c (catch_ada_completer): New function.
10153 (_initialize_ada_language): Use it.
10154
10155 2019-05-10 Tom Tromey <tromey@adacore.com>
10156
10157 * thread.c (print_thread_info): Make "requested_threads" const.
10158 * gdbthread.h (print_thread_info): Make "requested_threads"
10159 const.
10160 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10161 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10162
10163 2019-05-08 Tom Tromey <tom@tromey.com>
10164
10165 * gdbtypes.c (objfile_type_data): Change type.
10166 (objfile_type, _initialize_gdbtypes): Update.
10167
10168 2019-05-08 Tom Tromey <tom@tromey.com>
10169
10170 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10171 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10172 (_initialize_dwarf2_frame): Update.
10173
10174 2019-05-08 Tom Tromey <tom@tromey.com>
10175
10176 * objc-lang.c (objc_objfile_data): Change type.
10177 (find_methods): Update.
10178 (_initialize_objc_lang): Remove.
10179
10180 2019-05-08 Tom Tromey <tom@tromey.com>
10181
10182 * stabsread.c (rs6000_builtin_type_data): Change type.
10183 (rs6000_builtin_type, _initialize_stabsread): Update.
10184
10185 2019-05-08 Tom Tromey <tom@tromey.com>
10186
10187 * mips-tdep.c (mips_pdr_data): Remove.
10188 (_initialize_mips_tdep): Update.
10189
10190 2019-05-08 Tom Tromey <tom@tromey.com>
10191
10192 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10193 (hppa_init_objfile_priv_data, read_unwind_info)
10194 (find_unwind_entry, _initialize_hppa_tdep): Update.
10195
10196 2019-05-08 Tom Tromey <tom@tromey.com>
10197
10198 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10199 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10200 on obstack.
10201 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10202
10203 2019-05-08 Tom Tromey <tom@tromey.com>
10204
10205 * mdebugread.c (basic_type_data): Change type.
10206 (basic_type, _initialize_mdebugread): Update.
10207
10208 2019-05-08 Tom Tromey <tom@tromey.com>
10209
10210 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10211
10212 2019-05-08 Tom Tromey <tom@tromey.com>
10213
10214 * nto-tdep.c (nto_inferior_data_reg): Change type.
10215 (nto_inferior_data): Update.
10216 (nto_inferior_data_cleanup, nto_new_inferior_data)
10217 (_initialize_nto_tdep): Remove.
10218 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10219
10220 2019-05-08 Tom Tromey <tom@tromey.com>
10221
10222 * ada-lang.c (struct ada_inferior_data): Add initializers.
10223 (ada_inferior_data): Change type.
10224 (ada_inferior_data_cleanup): Remove.
10225 (get_ada_inferior_data, ada_inferior_exit)
10226 (struct ada_pspace_data): Add initializers, destructor.
10227 (ada_pspace_data_handle): Change type.
10228 (get_ada_pspace_data): Update.
10229 (ada_pspace_data_cleanup): Remove.
10230
10231 2019-05-08 Tom Tromey <tom@tromey.com>
10232
10233 * coffread.c (struct coff_symfile_info): Add initializers.
10234 (coff_objfile_data_key): Move lower. Change type.
10235 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10236 Update.
10237 (coff_free_info): Remove.
10238
10239 2019-05-08 Tom Tromey <tom@tromey.com>
10240
10241 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10242 (fbsd_pspace_data_handle): Move lower. Change type.
10243 (get_fbsd_pspace_data): Update.
10244 (fbsd_pspace_data_cleanup): Remove.
10245 (_initialize_fbsd_tdep): Update.
10246
10247 2019-05-08 Tom Tromey <tom@tromey.com>
10248
10249 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10250 (get_ada_tasks_pspace_data): Update.
10251 (ada_tasks_pspace_data_cleanup): Remove.
10252 (_initialize_tasks): Update.
10253 (ada_tasks_inferior_data_handle): Change type.
10254 (get_ada_tasks_inferior_data): Update.
10255 (ada_tasks_inferior_data_cleanup): Remove.
10256 (struct ada_tasks_pspace_data): Add initializers.
10257
10258 2019-05-08 Tom Tromey <tom@tromey.com>
10259
10260 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10261 * symfile-debug.c (debug_sym_get_probes): Change type.
10262 * stap-probe.c (handle_stap_probe):
10263 (stap_static_probe_ops::get_probes): Change type.
10264 * probe.h (class static_probe_ops) <get_probes>: Change type.
10265 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10266 (parse_probes_in_pspace): Update.
10267 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10268 Update.
10269 (any_static_probe_ops::get_probes): Change type.
10270 * elfread.c (elfread_data): New typedef.
10271 (probe_key): Change type.
10272 (elf_get_probes): Likewise. Update.
10273 (probe_key_free): Remove.
10274 (_initialize_elfread): Update.
10275 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10276 Change type.
10277 (dtrace_process_dof_probe, dtrace_process_dof)
10278 (dtrace_static_probe_ops::get_probe): Change type.
10279
10280 2019-05-08 Tom Tromey <tom@tromey.com>
10281
10282 * xcoffread.c (struct xcoff_symfile_info): Rename from
10283 coff_symfile_info. Add initializers.
10284 (xcoff_objfile_data_key): Move lower. Change type.
10285 (XCOFF_DATA): Rewrite.
10286 (xcoff_free_info): Remove.
10287 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10288 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10289 (xcoff_initial_scan): Update.
10290
10291 2019-05-08 Tom Tromey <tom@tromey.com>
10292
10293 * solib-svr4.c (struct svr4_info): Add initializers and
10294 destructor.
10295 <probes_table>: Now an htab_up.
10296 (solib_svr4_pspace_data): Change type.
10297 (free_probes_table): Simplify.
10298 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10299 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10300 (probes_table_remove_objfile_probes, register_solib_event_probe)
10301 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10302 (_initialize_svr4_solib): Update.
10303
10304 2019-05-08 Tom Tromey <tom@tromey.com>
10305
10306 * remote.c (remote_pspace_data): Change type.
10307 (remote_pspace_data_cleanup): Remove.
10308 (get_remote_exec_file, set_pspace_remote_exec_file)
10309 (_initialize_remote): Update.
10310
10311 2019-05-08 Tom Tromey <tom@tromey.com>
10312
10313 * breakpoint.c (breakpoint_objfile_key): Change type.
10314 (get_breakpoint_objfile_data): Update.
10315 (free_breakpoint_objfile_data): Remove.
10316 (_initialize_breakpoint): Update.
10317
10318 2019-05-08 Tom Tromey <tom@tromey.com>
10319
10320 * linux-tdep.c (struct linux_info): Add initializers.
10321 (linux_inferior_data): Move. Change type.
10322 (invalidate_linux_cache_inf): Update.
10323 (linux_inferior_data_cleanup): Remove.
10324 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10325
10326 2019-05-08 Tom Tromey <tom@tromey.com>
10327
10328 * auxv.c (auxv_inferior_data): Move. Change type.
10329 (auxv_inferior_data_cleanup): Remove.
10330 (invalidate_auxv_cache_inf): Rewrite.
10331 (get_auxv_inferior_data, _initialize_auxv): Update.
10332
10333 2019-05-08 Tom Tromey <tom@tromey.com>
10334
10335 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10336 (symfile_debug_objfile_data_key): Change type.
10337 (symfile_debug_installed, debug_qf_has_symbols)
10338 (debug_qf_find_last_source_symtab)
10339 (debug_qf_forget_cached_source_info)
10340 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10341 (debug_qf_print_stats, debug_qf_dump)
10342 (debug_qf_expand_symtabs_for_function)
10343 (debug_qf_expand_all_symtabs)
10344 (debug_qf_expand_symtabs_with_fullname)
10345 (debug_qf_map_matching_symbols)
10346 (debug_qf_expand_symtabs_matching)
10347 (debug_qf_find_pc_sect_compunit_symtab)
10348 (debug_qf_map_symbol_filenames)
10349 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10350 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10351 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10352 (debug_sym_read_linetable, debug_sym_relocate): Update.
10353 (symfile_debug_free_objfile): Remove.
10354 (install_symfile_debug_logging, _initialize_symfile_debug):
10355 Update.
10356
10357 2019-05-08 Tom Tromey <tom@tromey.com>
10358
10359 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10360 allocate_on_obstack.
10361 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10362 (get_dwarf2_per_objfile): Update.
10363 (set_dwarf2_per_objfile): Remove.
10364 (dwarf2_has_info, dwarf2_get_section_info): Update.
10365 (dwarf2_free_objfile): Remove.
10366 (_initialize_dwarf2_read): Update.
10367
10368 2019-05-08 Tom Tromey <tom@tromey.com>
10369
10370 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10371 initializers.
10372 <unsupported_script_warning_printed,
10373 script_not_found_warning_printed>: Now bool.
10374 (auto_load_pspace_data): Change type.
10375 (~auto_load_pspace_info): Rename from
10376 auto_load_pspace_data_cleanup.
10377 (get_auto_load_pspace_data, init_loaded_scripts_info)
10378 (clear_section_scripts, maybe_print_unsupported_script_warning)
10379 (maybe_print_script_not_found_warning, _initialize_auto_load):
10380 Update.
10381
10382 2019-05-08 Tom Tromey <tom@tromey.com>
10383
10384 * objfiles.c (objfile_pspace_info): Add destructor and
10385 initializers.
10386 (objfiles_pspace_data): Change type.
10387 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10388 (get_objfile_pspace_data): Update.
10389 (objfiles_bfd_data): Change type.
10390 (get_objfile_bfd_data): Update.
10391 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10392
10393 2019-05-08 Tom Tromey <tom@tromey.com>
10394
10395 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10396 Change type.
10397 (get_catch_syscall_inferior_data): Update.
10398 (catch_syscall_inferior_data_cleanup): Remove.
10399 (_initialize_break_catch_syscall): Update.
10400
10401 2019-05-08 Tom Tromey <tom@tromey.com>
10402
10403 * inflow.c (struct terminal_info): Add destructor and
10404 initializers.
10405 (inflow_inferior_data): Change type.
10406 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10407 (get_inflow_inferior_data, inflow_inferior_exit)
10408 (swap_terminal_info, _initialize_inflow): Update.
10409
10410 2019-05-08 Tom Tromey <tom@tromey.com>
10411
10412 * target-dcache.c (target_dcache_cleanup): Remove.
10413 (target_dcache_aspace_key): Change type.
10414 (target_dcache_init_p, target_dcache_invalidate)
10415 (target_dcache_get, target_dcache_get_or_init)
10416 (_initialize_target_dcache): Update.
10417 * dcache.h (struct dcache_deleter): New.
10418
10419 2019-05-08 Tom Tromey <tom@tromey.com>
10420
10421 * symtab.c (struct symbol_cache): Add destructor and
10422 initializers.
10423 (symbol_cache_key): Move. Change type.
10424 (make_symbol_cache, free_symbol_cache): Remove.
10425 (get_symbol_cache): Update.
10426 (symbol_cache_cleanup): Remove.
10427 (ALL_PSPACES, symbol_cache_flush)
10428 (maintenance_print_symbol_cache)
10429 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10430 Update.
10431
10432 2019-05-08 Tom Tromey <tom@tromey.com>
10433
10434 * symtab.c (struct main_info): Add destructor and initializers.
10435 (main_progspace_key): Move. Change type.
10436 (get_main_info): Update.
10437 (main_info_cleanup): Remove.
10438 (_initialize_symtab): Update.
10439
10440 2019-05-08 Tom Tromey <tom@tromey.com>
10441
10442 * registry.h (DECLARE_REGISTRY): Define the _key class.
10443
10444 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10445
10446 * NEWS: Merge two 'New commands' sections.
10447
10448 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10449
10450 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10451 parameter and use Ada language definition instead.
10452 (ada_val_print_ptr): Remove unused language parameter.
10453 (ada_val_print_num): Remove language parameter and use Ada language
10454 definition instead.
10455 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10456 parameter.
10457 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10458 parameter and use Ada language definition instead.
10459 (ada_val_print_1): Update all ada_val_print_xxx calls.
10460 Remove language parameter.
10461 (ada_val_print): Update ada_val_print_1 call.
10462
10463 2019-05-08 Tom Tromey <tromey@adacore.com>
10464
10465 * remote.c (remote_hw_watchpoint_limit)
10466 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10467 Now static.
10468
10469 2019-05-08 Tom Tromey <tromey@adacore.com>
10470
10471 * maint.c (_initialize_maint_cmds): Move initialization code to
10472 remote.c.
10473 (watchdog, show_watchdog): Move to remote.c.
10474 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10475 "watchdog" static.
10476 (_initialize_remote): Move initialization code from maint.c.
10477 * defs.h (watchdog): Don't declare.
10478
10479 2019-05-08 Tom Tromey <tromey@adacore.com>
10480
10481 * tui/tui-interp.c: Include main.h.
10482 * interps.c: Include main.h.
10483 * main.h (interpreter_p): Declare.
10484 * defs.h (interpreter_p): Don't declare.
10485
10486 2019-05-08 Tom Tromey <tromey@adacore.com>
10487
10488 * dwarf2loc.c: Include dwarf2read.h.
10489 * defs.h (read_unsigned_leb128): Don't declare.
10490 * dwarf2read.h (read_unsigned_leb128): Declare.
10491
10492 2019-05-08 Tom Tromey <tromey@adacore.com>
10493
10494 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10495 method.
10496
10497 2019-05-08 Tom Tromey <tromey@adacore.com>
10498
10499 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10500 when no wrap column is set.
10501
10502 2019-05-08 Tom Tromey <tromey@adacore.com>
10503
10504 * c-lang.c (c_get_string): Handle non-C-style arrays.
10505
10506 2019-05-08 Tom Tromey <tromey@adacore.com>
10507
10508 * typeprint.c (print_offset_data::update): Print the bit offset,
10509 not the number of bits remaining.
10510
10511 2019-05-08 Tom Tromey <tromey@adacore.com>
10512
10513 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10514 padding at end of comment.
10515
10516 2019-05-08 Tom Tromey <tromey@adacore.com>
10517
10518 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10519 Compare main types.
10520
10521 2019-05-06 Tom Tromey <tom@tromey.com>
10522
10523 * common/scoped_mmap.c: Include common-defs.h.
10524 * common/scoped_mmap.h: Don't include config.h.
10525
10526 2019-05-04 Tom Tromey <tom@tromey.com>
10527
10528 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10529 (struct aarch64_call_info): Add initializers.
10530 <si>: Now a std::vector.
10531 (pass_on_stack, aarch64_push_dummy_call): Update.
10532
10533 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10534 Tom Tromey <tom@tromey.com>
10535
10536 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10537 (ppc_threads): Now a std::vector. Now static.
10538 (hwdebug_find_thread_points_by_tid)
10539 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10540 Update.
10541
10542 2019-05-04 Tom Tromey <tom@tromey.com>
10543
10544 * arc-tdep.c (arc_tdesc_init): Return bool.
10545
10546 2019-05-04 Tom Tromey <tom@tromey.com>
10547
10548 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10549 Use gdb_assert_not_reached.
10550
10551 2019-05-04 Tom Tromey <tom@tromey.com>
10552
10553 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10554 "false".
10555
10556 2019-05-04 Tom Tromey <tom@tromey.com>
10557
10558 * arc-tdep.c (arc_tdesc_init): Use bool.
10559
10560 2019-05-04 Tom Tromey <tom@tromey.com>
10561
10562 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10563
10564 2019-05-04 Tom Tromey <tom@tromey.com>
10565
10566 * cli/cli-cmds.c (valid_command_p): Return bool.
10567
10568 2019-05-04 Tom Tromey <tom@tromey.com>
10569
10570 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10571 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10572
10573 2019-05-04 Raul Tambre <raul@tambre.ee>
10574
10575 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10576 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10577 operator for comparison.
10578
10579 2019-05-04 Tom Tromey <tom@tromey.com>
10580
10581 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10582 (lookup_partial_symbol, print_partial_symbols)
10583 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10584 (psymbol_compare): Update.
10585 (add_psymbol_to_bcache): Clear the entire psymbol.
10586 (maintenance_check_psymtabs): Update.
10587 * psympriv.h (struct partial_symbol): Don't derive from
10588 general_symbol_info.
10589 <obj_section, unrelocated_address, address,
10590 set_unrelocated_address>: Update.
10591 <ginfo>: New member.
10592 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10593 (debug_names::write_psymbols): Update.
10594
10595 2019-05-04 Tom de Vries <tdevries@suse.de>
10596
10597 * contrib/cc-with-tweaks.sh: Support -n arg.
10598
10599 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10600
10601 * corelow.c (core_target::detach): Ensure frame cache and
10602 register caches are cleared.
10603 inferior.c (exit_inferior_1): Likewise.
10604
10605 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10606 Tom Tromey <tom@tromey.com>
10607
10608 * dictionary.c (collate_pending_symbols_by_language): Remove
10609 "struct" from foreach.
10610 * symtab.c (lookup_global_symbol_from_objfile)
10611 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10612 foreach.
10613 * ser-tcp.c (net_open): Remove "struct" from foreach.
10614 * objfiles.c (objfile_relocate, objfile_rebase)
10615 (objfile_has_symbols): Remove "struct" from foreach.
10616 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10617 from foreach.
10618 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10619 foreach.
10620 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10621 "struct" from foreach.
10622 * ada-lang.c (create_excep_cond_exprs)
10623 (ada_exception_catchpoint_cond_string): Remove "struct" from
10624 foreach.
10625
10626 2019-05-03 Tom Tromey <tromey@adacore.com>
10627
10628 * ada-exp.y (convert_char_literal): Check suffix of each
10629 enumerator.
10630
10631 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10632
10633 PR ada/21406:
10634 * ada-exp.y (yywrap): Don't define.
10635 * ada-lex.l (%option): Add noyywrap
10636 (yywrap): Remove.
10637
10638 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10639
10640 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10641 _WIN32_WINNT to the XP level, unless already defined to a higher
10642 level.
10643
10644 * unittests/parse-connection-spec-selftests.c:
10645 * ser-tcp.c:
10646 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10647 override.
10648
10649 * symfile.c (find_separate_debug_file): Remove colon from the
10650 drive spec of DOS/Windows file names of the target, so that the
10651 file name produced from DEBUGDIR and the target's directory will
10652 be valid on DOS/Windows systems.
10653
10654 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10655
10656 * rust-lang.c (val_print_struct): Handle printing structures
10657 containing strings.
10658
10659 2019-05-02 Tom Tromey <tromey@adacore.com>
10660
10661 * valarith.c (_initialize_valarith): Remove.
10662
10663 2019-05-01 Tom Tromey <tromey@adacore.com>
10664
10665 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10666 bitfields.
10667
10668 2019-05-01 Tom Tromey <tromey@adacore.com>
10669
10670 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10671 for big-endian copies.
10672
10673 2019-04-30 Ali Tamur <tamur@google.com>
10674 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10675 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10676 (read_3_bytes): New function.
10677
10678 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10679
10680 * windows-nat.c (main_thread_id): Delete.
10681 (handle_output_debug_string): Replace main_thread_id by
10682 current_event.dwThreadId.
10683 (fake_create_process): Likewise.
10684 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10685 Do not set main_thread_id.
10686 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10687 current_event.dwThreadId.
10688 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10689
10690 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10691
10692 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10693 Use current_event.dwThreadId instead of main_thread_id.
10694
10695 2019-04-30 Tom Tromey <tromey@adacore.com>
10696
10697 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10698 (create_excep_cond_exprs): Iterate over program spaces.
10699 (ada_exception_catchpoint_cond_string): Examine all minimal
10700 symbols for exception types.
10701
10702 2019-04-30 Tom Tromey <tromey@adacore.com>
10703
10704 PR c++/24470:
10705 * dwarf2read.c (process_structure_scope): Handle case where type
10706 has template parameters but no symbol was created.
10707
10708 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10709 Chris January <chris.january@arm.com>
10710
10711 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10712 qualifier.
10713 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10714
10715 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10716
10717 * f-typeprint.c (f_print_type): Update rules for printing
10718 whitespace.
10719 (f_type_print_varspec_suffix): Likewise.
10720
10721 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10722 Chris January <chris.january@arm.com>
10723
10724 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10725 function arguments.
10726
10727 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10728
10729 * f-lang.c (build_fortran_types): Change name of void type to
10730 lower case.
10731 * f-typeprint.c (f_type_print_base): Print the name of the void
10732 type, rather than a fixed string.
10733 * f-valprint.c (f_decorations): Use lower case void string.
10734
10735 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10736 Chris January <chris.january@arm.com>
10737
10738 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10739 types for Fortran.
10740
10741 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10742 Chris January <chris.january@arm.com>
10743 David Lecomber <david.lecomber@arm.com>
10744
10745 * f-exp.y (BINOP_INTRINSIC): New token.
10746 (exp): New parser rule handling BINOP_INTRINSIC.
10747 (f77_keywords): Add new builtin procedures.
10748 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10749 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10750 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10751 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10752 (print_unop_subexp_f): New function.
10753 (print_binop_subexp_f): New function.
10754 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10755 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10756 (dump_subexp_body_f): Likewise.
10757 (operator_check_f): Likewise.
10758 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10759 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10760
10761 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10762
10763 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10764 UNOP_KIND.
10765 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10766 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10767 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10768 (operator_length_f): New fuction.
10769 (print_subexp_f): New function.
10770 (op_name_f): New function.
10771 (dump_subexp_body_f): New function.
10772 (operator_check_f): New function.
10773 (exp_descriptor_f): Replace standard expression handling functions
10774 with new functions.
10775 * gdb/fortran-operator.def: New file.
10776 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10777 * gdb/std-operator.def: Remove UNOP_KIND.
10778
10779 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10780
10781 * std-operator.def: Remove unbalanced, stray double quote
10782 character.
10783
10784 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10785 Chris January <chris.january@arm.com>
10786 Daniel Everett <daniel.everett@arm.com>
10787 Nick Forrington <nick.forrington@arm.com>
10788 Richard Bunt <richard.bunt@arm.com>
10789
10790 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10791 of depth when printing anonymous structs or unions.
10792 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10793 Don't print either the top-level value, or the children if the
10794 max-depth is exceeded.
10795 (ppscm_print_children): When printing the key of a map, allow one
10796 extra level of depth.
10797 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10798 print either the top-level value, or the children if the max-depth
10799 is exceeded.
10800 (print_children): When printing the key of a map, allow one extra
10801 level of depth.
10802 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10803 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10804 (user_print_options): Initialise max_depth field.
10805 (val_print_scalar_or_string_type_p): New function.
10806 (val_print): Check to see if the max depth has been reached.
10807 (val_print_check_max_depth): Define new function.
10808 (show_print_max_depth): New function.
10809 (_initialize_valprint): Add 'print max-depth' option.
10810 * valprint.h (struct value_print_options) <max_depth>: New field.
10811 (val_print_check_max_depth): Declare new function.
10812 * NEWS: Document new feature.
10813
10814 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10815
10816 * ada-lang.c (ada_language_defn): Initialise new field.
10817 * c-lang.c (c_is_string_type_p): New function.
10818 (c_language_defn): Initialise new field.
10819 (cplus_language_defn): Initialise new field.
10820 (asm_language_defn): Initialise new field.
10821 (minimal_language_defn): Initialise new field.
10822 * c-lang.h (c_is_string_type_p): Declare new function.
10823 * d-lang.c (d_language_defn): Initialise new field.
10824 * f-lang.c (f_is_string_type_p): New function.
10825 (f_language_defn): Initialise new field.
10826 * go-lang.c (go_is_string_type_p): New function.
10827 (go_language_defn): Initialise new field.
10828 * language.c (default_is_string_type_p): New function.
10829 (unknown_language_defn): Initialise new field.
10830 (auto_language_defn): Initialise new field.
10831 * language.h (struct language_defn) <la_is_string_type_p>: New
10832 member variable.
10833 (default_is_string_type_p): Declare new function.
10834 * m2-lang.c (m2_language_defn): Initialise new field.
10835 * objc-lang.c (objc_language_defn): Initialise new field.
10836 * opencl-lang.c (opencl_language_defn): Initialise new field.
10837 * p-lang.c (pascal_is_string_type_p): New function.
10838 (pascal_language_defn): Initialise new field.
10839 * rust-lang.c (rust_is_string_type_p): New function.
10840 (rust_language_defn): Initialise new field.
10841
10842 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10843
10844 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10845 New field.
10846 * ada-lang.c (ada_language_defn): Initialise new field.
10847 * c-lang.c (c_language_defn): Likewise.
10848 (cplus_language_defn): Likewise.
10849 (asm_language_defn): Likewise.
10850 (minimal_language_defn): Likewise.
10851 * d-lang.c (d_language_defn): Likewise.
10852 * f-lang.c (f_language_defn): Likewise.
10853 * go-lang.c (go_language_defn): Likewise.
10854 * language.c (unknown_language_defn): Likewise.
10855 (auto_language_defn): Likewise.
10856 * m2-lang.c (m2_language_defn): Likewise.
10857 * objc-lang.c (objc_language_defn): Likewise.
10858 * opencl-lang.c (opencl_language_defn): Likewise.
10859 * p-lang.c (pascal_language_defn): Likewise.
10860 * rust-lang.c (rust_language_defn): Likewise.
10861
10862 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10863
10864 * ada-lang.c (ada_is_character_type): Change return type to bool.
10865 (ada_is_string_type): Likewise.
10866 * ada-lang.h (ada_is_character_type): Update declaration
10867 (ada_is_string_type): Likewise.
10868
10869 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10870
10871 Support style in 'frame|thread apply'
10872
10873 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10874 * record.c (record_start, record_stop): Update callers of
10875 execute_command_to_string with false.
10876 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10877 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10878 methods.
10879 (class string_file): New constructor with term_out parameter.
10880 Override methods term_out and can_emit_style_escape. New member
10881 term_out.
10882 (class stdio_file): Override can_emit_style_escape.
10883 (class tee_file): Override term_out and can_emit_style_escape.
10884 * utils.h (can_emit_style_escape): Remove.
10885 * utils.c (can_emit_style_escape): Likewise.
10886 Update all callers of can_emit_style_escape (SOMESTREAM) to
10887 SOMESTREAM->can_emit_style_escape.
10888 * source-cache.c (source_cache::get_source_lines): Likewise.
10889 * stack.c (frame_apply_command_count): Call execute_command_to_string
10890 passing the term_out characteristic of the current gdb_stdout.
10891 * thread.c (thr_try_catch_cmd): Likewise.
10892 * top.c (execute_command_to_string): pass term_out parameter
10893 to construct the string_file for the command output.
10894 * ui-file.c (term_cli_styling): New function (most code moved
10895 from utils.c can_emit_style_escape).
10896 (string_file::string_file, string_file::can_emit_style_escape,
10897 stdio_file::can_emit_style_escape, tee_file::term_out,
10898 tee_file::can_emit_style_escape): New functions.
10899
10900 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10901
10902 * NEWS: Mention the new set|show may-call-functions.
10903 * infcall.c (may_call_functions_p): New variable.
10904 (show_may_call_functions_p): New function.
10905 (call_function_by_hand_dummy): Throws an error if not
10906 may-call-functions.
10907 (_initialize_infcall): Call add_setshow_boolean_cmd for
10908 may-call-functions.
10909
10910 2019-04-25 Keith Seitz <keiths@redhat.com>
10911
10912 PR c++/24367
10913 * cp-support.c (inspect_type): Don't attempt substitutions
10914 of symbol with the same name.
10915
10916 2019-04-25 Tom Tromey <tromey@adacore.com>
10917
10918 PR gdb/24475:
10919 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10920 static.
10921
10922 2019-04-25 Tom Tromey <tromey@adacore.com>
10923
10924 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10925 rvalue reference.
10926 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10927 (gdb_xml_parser::parse): Use std::move.
10928 * python/python-internal.h (gdbpy_convert_exception): Take a const
10929 reference.
10930 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10931 std::move.
10932 * python/py-utils.c (gdbpy_convert_exception): Take a const
10933 reference.
10934 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10935 Use std::move.
10936 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10937 Use std::move.
10938 * mi/mi-main.c (mi_print_exception): Take a const reference.
10939 * main.c (handle_command_errors): Take a const reference.
10940 * linespec.c (parse_linespec): Use std::move.
10941 * infcall.c (run_inferior_call): Use std::move.
10942 (call_function_by_hand_dummy): Use std::move.
10943 * exec.c (try_open_exec_file): Use std::move.
10944 * exceptions.h (exception_print, exception_fprintf)
10945 (exception_print_same): Update.
10946 * exceptions.c (print_exception, exception_print)
10947 (exception_fprintf, exception_print_same): Change parameters to
10948 const reference.
10949 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10950 * common/new-op.c: Use std::move.
10951 * common/common-exceptions.h (struct gdb_exception): Add move
10952 constructor.
10953 (struct gdb_exception_error, struct gdb_exception_quit, struct
10954 gdb_quit_bad_alloc): Change constructor to move constructor.
10955 (throw_exception): Change parameter to rvalue reference.
10956 * common/common-exceptions.c (throw_exception): Take rvalue
10957 reference.
10958 * cli/cli-interp.c (safe_execute_command): Use std::move.
10959 * breakpoint.c (insert_bp_location, location_to_sals): Use
10960 std::move.
10961
10962 2019-04-25 Tom Tromey <tromey@adacore.com>
10963
10964 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10965 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10966 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10967 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10968 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10969 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10970 guile/scm-value.c: Use unpack.
10971 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10972 gdbscm_gdb_exception.
10973 (gdbscm_throw_gdb_exception): Likewise.
10974 (struct gdbscm_gdb_exception): New.
10975 (unpack): New function.
10976 (gdbscm_wrap): Use unpack.
10977
10978 2019-04-25 Tom Tromey <tromey@adacore.com>
10979
10980 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10981 (gdb_rl_callback_handler): Use std::move.
10982 * common/common-exceptions.h (struct gdb_exception): Add move
10983 assignment operator.
10984 (throw_exception_sjlj): Change "exception" to const reference.
10985 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10986 (throw_exception_sjlj): Change "exception" to const reference.
10987
10988 2019-04-25 Tom Tromey <tromey@adacore.com>
10989
10990 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10991 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10992 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10993 Update.
10994 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10995 Update.
10996 * mi/mi-interp.c (mi_interp::exec): Update.
10997 * linespec.c (parse_linespec): Update.
10998 * infcall.c (run_inferior_call): Update.
10999 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11000 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11001 (gdbscm_lookup_global_symbol): Update.
11002 * guile/scm-param.c (gdbscm_parameter_value): Update.
11003 * guile/scm-frame.c (gdbscm_frame_read_register)
11004 (gdbscm_frame_read_var): Update.
11005 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11006 * exec.c (try_open_exec_file): Update.
11007 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11008 (gdb_rl_callback_handler): Update.
11009 * common/common-exceptions.h (exception_none): Don't declare.
11010 * common/common-exceptions.c (exception_none): Don't define.
11011 (struct catcher) <exception>: Update.
11012 * cli/cli-interp.c (safe_execute_command): Update.
11013 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11014
11015 2019-04-25 Ali Tamur <tamur@google.com>
11016
11017 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11018 (read_attribute_value): Likewise.
11019 (dwarf2_read_addr_index): Update comment.
11020 (read_str_index): Add DW_FORM_strx.
11021 (dwarf2_string_attr): Likewise.
11022 (dwarf2_const_value_attr): Likewise.
11023 (dump_die_shallow): Likewise.
11024 (dwarf2_fetch_constant_bytes): Likewise.
11025 (skip_form_bytes): Likewise.
11026 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11027
11028 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11029
11030 PR corefiles/11608
11031 PR corefiles/18187
11032 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11033 OFFSET. Verify if current mapping contains an ELF header.
11034 (linux_find_memory_regions_full): Adjust call to
11035 dump_mapping_p.
11036
11037 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11038 Kang Li <kanglictf@gmail.com>
11039
11040 PR gdb/21600
11041
11042 * dwarf2-frame.c (read_initial_length): Be consistent about using
11043 unsigned representation of length.
11044 (decode_frame_entry_1): Likewise. Check for wraparound of
11045 end pointer as well as buffer overflow.
11046
11047 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11048
11049 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11050 "vq".
11051
11052 2019-04-24 Tom Tromey <tromey@adacore.com>
11053
11054 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11055
11056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11057
11058 * s12z-tdep.c (s12z_unwind_pc): Delete.
11059 (s12z_unwind_sp): Delete.
11060 (s12z_gdbarch_init): Don't register deleted functions with
11061 gdbarch.
11062
11063 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11064
11065 * rl78-tdep.c (rl78_unwind_sp): Delete.
11066 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11067
11068 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11069
11070 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11071 (xstormy16_unwind_pc): Delete.
11072 (xstormy16_dummy_id): Delete.
11073 (xstormy16_gdbarch_init): Don't register deleted functions with
11074 gdbarch.
11075
11076 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11077
11078 * vax-tdep.c (vax_unwind_pc): Delete.
11079 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11080
11081 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11082
11083 * v850-tdep.c (v850_unwind_sp): Delete.
11084 (v850_unwind_pc): Delete.
11085 (v850_dummy_id): Delete.
11086 (v850_gdbarch_init): Don't register deleted functions with
11087 gdbarch.
11088
11089 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11090
11091 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11092 (tilegx_unwind_pc): Delete.
11093 (tilegx_unwind_dummy_id): Delete.
11094 (tilegx_gdbarch_init): Don't register deleted functions with
11095 gdbarch.
11096
11097 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11098
11099 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11100 (tic6x_dummy_id): Delete.
11101 (tic6x_gdbarch_init): Don't register deleted functions with
11102 gdbarch.
11103
11104 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11105
11106 * sparc-tdep.c (sparc_unwind_pc): Delete.
11107 (sparc32_gdbarch_init): Don't register deleted function with
11108 gdbarch.
11109
11110 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11111
11112 * sh-tdep.c (sh_unwind_sp): Delete.
11113 (sh_unwind_pc): Delete.
11114 (sh_dummy_id): Delete.
11115 (sh_gdbarch_init): Don't register deleted functions with
11116 gdbarch.
11117
11118 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11119
11120 * score-tdep.c (score_unwind_sp): Delete.
11121 (score_unwind_pc): Delete.
11122 (score_dummy_id): Delete.
11123 (score_gdbarch_init): Don't register deleted functions with
11124 gdbarch.
11125
11126 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11127
11128 * rx-tdep.c (rx_unwind_pc): Delete.
11129 (rx_unwind_sp): Delete.
11130 (rx_dummy_id): Delete.
11131 (rx_gdbarch_init): Don't register deleted functions with
11132 gdbarch. Update comment.
11133
11134 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11135
11136 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11137 (rs6000_dummy_id): Delete.
11138 (rs6000_gdbarch_init): Don't register deleted functions with
11139 gdbarch.
11140
11141 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11142
11143 * or1k-tdep.c (or1k_dummy_id): Delete.
11144 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11145
11146 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11147
11148 * nios2-tdep.c (nios2_dummy_id): Delete.
11149 (nios2_unwind_sp): Delete.
11150 (nios2_gdbarch_init): Don't register deleted functions with
11151 gdbarch.
11152
11153 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11154
11155 * nds32-tdep.c (nds32_dummy_id): Delete.
11156 (nds32_unwind_pc): Delete.
11157 (nds32_unwind_sp): Delete.
11158 (nds32_gdbarch_init): Don't register deleted functions with
11159 gdbarch.
11160
11161 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11162
11163 * msp430-tdep.c (msp430_unwind_pc): Delete.
11164 (msp430_unwind_sp): Delete.
11165 (msp430_dummy_id): Delete.
11166 (msp430_gdbarch_init): Don't register deleted functions with
11167 gdbarch.
11168
11169 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11170
11171 * moxie-tdep.c (moxie_unwind_sp): Delete.
11172 (moxie_unwind_pc): Delete.
11173 (moxie_dummy_id): Delete.
11174 (moxie_gdbarch_init): Don't register deleted functions with
11175 gdbarch.
11176
11177 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11178
11179 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11180 (mn10300_unwind_pc): Delete.
11181 (mn10300_unwind_sp): Delete.
11182 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11183 mn10300_unwind_sp.
11184 (mn10300_frame_unwind_init): Don't register deleted functions with
11185 gdbarch.
11186
11187 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11188
11189 * mep-tdep.c (mep_unwind_pc): Delete.
11190 (mep_unwind_sp): Delete.
11191 (mep_dummy_id): Delete.
11192 (mep_gdbarch_init): Don't register deleted functions with
11193 gdbarch.
11194
11195 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11196
11197 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11198 (m68hc11_unwind_sp): Delete.
11199 (m68hc11_gdbarch_init): Don't register deleted functions with
11200 gdbarch.
11201
11202 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11203
11204 * m32r-tdep.c (m32r_unwind_sp): Delete.
11205 (m32r_unwind_pc): Delete.
11206 (m32r_dummy_id): Delete.
11207 (m32r_gdbarch_init): Don't register deleted functions with
11208 gdbarch.
11209
11210 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11211
11212 * m32c-tdep.c (m32c_unwind_pc): Delete.
11213 (m32c_unwind_sp): Delete.
11214 (m32c_dummy_id): Delete.
11215 (m32c_gdbarch_init): Don't register deleted functions with
11216 gdbarch.
11217
11218 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11219
11220 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11221 (lm32_unwind_pc): Delete.
11222 (lm32_dummy_id): Delete.
11223 (lm32_gdbarch_init): Don't register deleted functions with
11224 gdbarch.
11225
11226 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11227
11228 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11229 (iq2000_unwind_pc): Delete.
11230 (iq2000_dummy_id): Delete.
11231 (iq2000_gdbarch_init): Don't register deleted functions with
11232 gdbarch.
11233
11234 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11235
11236 * nds32-tdep.c (nds32_type_align): Delete.
11237 (nds32_push_dummy_call): Use type_align instead.
11238
11239 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11240
11241 * arm-tdep.c (arm_type_align): Only handle vector override case.
11242 (arm_push_dummy_call): Use type_align.
11243 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11244
11245 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11246
11247 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11248 case.
11249 (pass_on_stack): Use type_align.
11250 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11251 function.
11252
11253 2019-04-23 Tom Tromey <tromey@adacore.com>
11254
11255 * dwarf2read.c (line_header::file_name_at): Remove unused
11256 overload.
11257
11258 2019-04-23 Tom de Vries <tdevries@suse.de>
11259
11260 PR gdb/24438
11261 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11262 invocation.
11263
11264
11265 2019-03-27 Ali Tamur <tamur@google.com>
11266
11267 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11268 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11269 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11270 (dwarf_expr_context::get_addr_index): Likewise
11271 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11272 (symbol_needs_eval_context::get_addr_index): Likewise
11273 (disassemble_dwarf_expression): Add DW_OP_addrx
11274 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11275 (read_cutu_die_from_dwo): Update comment
11276 (skip_one_die): Add DW_FORM_addrx
11277 (read_attribute_value): Likewise
11278 (var_decode_location): Add DW_OP_addrx
11279 (dwarf2_const_value_attr): Add DW_FORM_addrx
11280 (dump_die_shallow): Likewise
11281 (dwarf2_fetch_constant_bytes): Likewise
11282 (decode_locdesc): Add DW_OP_addrx
11283 (skip_form_bytes): Add DW_FORM_addrx
11284
11285 2019-04-22 Ali Tamur <tamur@google.com>
11286
11287 * MAINTAINERS (Write After Approval): Add self.
11288
11289 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11290
11291 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11292 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11293 (open_symbol_file_object): Likewise.
11294 (svr4_default_sos): Add info parameter.
11295 (svr4_read_so_list): Likewise.
11296 (svr4_current_sos_direct): Adjust functions calls to pass down
11297 info.
11298 (svr4_current_sos_1): Add info parameter.
11299 (svr4_current_sos): Call get_svr4_info, pass info down to
11300 svr4_current_sos_1.
11301 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11302 get_svr4_info.
11303 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11304 get_svr4_info.
11305 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11306 to get_svr4_info.
11307 (probes_table_remove_objfile_probes): Likewise.
11308 (register_solib_event_probe): Add info parameter.
11309 (solist_update_incremental): Pass info parameter down to
11310 svr4_read_so_list.
11311 (disable_probes_interface): Add info parameter.
11312 (svr4_handle_solib_event): Pass current_program_space to
11313 get_svr4_info. Adjust disable_probes_interface cleanup.
11314 (svr4_create_probe_breakpoints): Add info parameter, pass it
11315 down to register_solib_event_probe.
11316 (svr4_create_solib_event_breakpoints): Add info parameter,
11317 pass it down to svr4_create_probe_breakpoints.
11318 (enable_break): Pass info down to
11319 svr4_create_solib_event_breakpoints.
11320 (svr4_solib_create_inferior_hook): Pass current_program_space to
11321 get_svr4_info.
11322 (svr4_clear_solib): Likewise.
11323
11324 2019-04-22 Pedro Alves <palves@redhat.com>
11325
11326 * solib-svr4.c (svr4_free_objfile_observer): New.
11327 (probe_and_action::objfile): New field.
11328 (probes_table_htab_remove_objfile_probes)
11329 (probes_table_remove_objfile_probes): New functions.
11330 (register_solib_event_probe): Add 'objfile' parameter. Store it
11331 in the new probe_and_action. Don't store the probe in 'lookup'.
11332 (svr4_create_probe_breakpoints): Pass objfile to
11333 register_solib_event_probe.
11334 (_initialize_svr4_solib): Register a free_objfile observer.
11335
11336 2019-04-19 Tom Tromey <tom@tromey.com>
11337
11338 * common/queue.h: Remove.
11339
11340 2019-04-19 Tom Tromey <tom@tromey.com>
11341
11342 * event-loop.c: Don't include "common/queue.h".
11343
11344 2019-04-19 Tom Tromey <tom@tromey.com>
11345
11346 * remote.c (remote_target): Use delete.
11347 * remote-notif.h: Include <list>, not "common/queue.h".
11348 (notif_client_p): Remove typedef.
11349 (remote_notif_state): Add constructor, destructor, initializer.
11350 <notif_queue>: Now a std::list.
11351 (remote_notif_state_xfree): Don't declare.
11352 * remote-notif.c (remote_notif_process, handle_notification)
11353 (remote_notif_state_allocate): Update.
11354 (~remote_notif_state): Rename from remote_notif_state_xfree.
11355
11356 2019-04-19 Tom Tromey <tom@tromey.com>
11357
11358 * symfile.c (reread_symbols): Update.
11359 * objfiles.c (objfile_register_static_link)
11360 (objfile_lookup_static_link): Update
11361 (~objfile) Don't delete static_links.
11362 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11363
11364 2019-04-19 Tom Tromey <tom@tromey.com>
11365
11366 * type-stack.h (struct type_stack) <insert>: Constify string.
11367 * type-stack.c (type_stack::insert): Constify string.
11368 * gdbtypes.h (lookup_template_type): Update.
11369 (address_space_name_to_int): Update.
11370 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11371 const.
11372 (lookup_template_type): Make name const.
11373 * c-exp.y: Update rules.
11374 (lex_one_token, classify_name, classify_inner_name)
11375 (c_print_token): Update.
11376 * p-exp.y: Update rules.
11377 (yylex): Update.
11378 * f-exp.y: Update rules.
11379 (yylex): Update.
11380 * d-exp.y: Update rules.
11381 (lex_one_token, classify_name, classify_inner_name): Update.
11382 * parse.c (write_dollar_variable, copy_name): Return std::string.
11383 * parser-defs.h (copy_name): Change return type.
11384 * m2-exp.y: Update rules.
11385 (yylex): Update.
11386 * go-exp.y (lex_one_token): Update.
11387 Update rules.
11388 (classify_unsafe_function, classify_packaged_name)
11389 (classify_name, yylex): Update.
11390
11391 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11392
11393 * configure.ac: add --enable-source-highlight switch.
11394 * configure: Regenerate.
11395 * top.c (print_gdb_version): plumb --enable-source-highlight
11396 status to "show configuration".
11397
11398 2019-04-19 Tom Tromey <tromey@adacore.com>
11399
11400 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11401 Check ADA_TYPE_P.
11402 (empty_record, ada_template_to_fixed_record_type_1)
11403 (template_to_static_fixed_type)
11404 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11405 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11406 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11407 macros.
11408
11409 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11410
11411 PR symtab/24423:
11412 * source.c (print_source_lines_base): Advance "iter" when a
11413 control character is seen.
11414
11415 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11416
11417 * inferior.h (struct infcall_suspend_state_deleter):
11418 Catch exception in destructor to avoid crash.
11419
11420 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11421
11422 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11423 close to the add_com "shell".
11424
11425 2019-04-18 Tom Tromey <tromey@adacore.com>
11426
11427 * process-stratum-target.h (class process_stratum_target)
11428 <stratum>: Add "final".
11429
11430 2019-04-17 Tom Tromey <tromey@adacore.com>
11431
11432 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11433 against nullptr before use.
11434
11435 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11436
11437 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11438
11439 2019-04-17 Jim Wilson <jimw@sifive.com>
11440 Andrew Burgess <andrew.burgess@embecosm.com>
11441
11442 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11443 code read might fail, assume 4-byte breakpoint in that case.
11444
11445 2019-04-15 Leszek Swirski <leszeks@google.com>
11446
11447 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11448 rather than a hand-rolled POD check when checking for forced MEMORY
11449 classification.
11450
11451 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11452
11453 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11454 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11455 function.
11456 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11457 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11458 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11459 declaration.
11460
11461 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11462
11463 * aarch64-linux-nat.c
11464 (aarch64_linux_nat_target::thread_architecture): Add override.
11465 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11466 each VQ.
11467
11468 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11469
11470 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11471
11472 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11473
11474 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11475 target types of size 96-bits, add some additional comments, and
11476 check that the builtin type we found was the correct size.
11477
11478 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11479
11480 * utils.c (prompt_for_continue): Don't restore the styling at the
11481 end, as applied_style has the wrong value. This fixes styling in
11482 long lists of file names that are interrupted by the "Continue?"
11483 prompt.
11484
11485 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11486
11487 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11488 * c-lang.c (c_language_defn): Likewise.
11489 (cplus_language_defn): Likewise.
11490 (asm_language_defn): Likewise.
11491 (minimal_language_defn): Likewise.
11492 * d-lang.c (d_language_defn): Likewise.
11493 * f-lang.c (f_language_defn): Likewise.
11494 * go-lang.c (go_language_defn): Likewise.
11495 * language.c (unknown_language_defn): Likewise.
11496 (auto_language_defn): Likewise.
11497 * language.h (struct language_defn): Remove la_magic field.
11498 (LANG_MAGIC): Delete.
11499 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11500 * objc-lang.c (objc_language_defn): Likewise.
11501 * opencl-lang.c (opencl_language_defn): Likewise.
11502 * p-lang.c (pascal_language_defn): Likewise.
11503 * rust-lang.c (rust_language_defn): Likewise.
11504
11505 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11506
11507 * riscv-tdep.c (riscv_type_align): New function.
11508 (riscv_type_alignment): Delete.
11509 (riscv_arg_location): Use 'type_align'.
11510 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11511
11512 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11513
11514 * gdbtypes.c (type_align): A struct with no non-static fields also
11515 has alignment of 1.
11516
11517 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11518
11519 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11520 component to 0.
11521 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11522 member.
11523 (riscv_struct_info::analyse): New implementation using new
11524 analyse_inner member function.
11525 (riscv_struct_info::field_offset): New member function.
11526 (riscv_struct_info::m_offsets): New member variable.
11527 (riscv_struct_info::analyse_inner): New private member function,
11528 takes the old implementation of riscv_struct_info::analyse but
11529 extended to track field offsets.
11530 (riscv_call_arg_struct): Update the struct folding special cases
11531 to handle cases where empty C++ structs, which are non-zero
11532 length, are found.
11533 (riscv_arg_location): Initialise the length of each location, a
11534 non-zero length now indicates the location is in use.
11535 (riscv_push_dummy_call): Allow for the first location having a
11536 non-zero offset when setting up arguments.
11537 (riscv_return_value): Likewise, but for return values.
11538
11539 2019-04-11 Tom Tromey <tromey@adacore.com>
11540
11541 * utils.c (internal_vproblem): Make "msg" const.
11542
11543 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11544
11545 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11546 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11547 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11548 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11549
11550 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11551
11552 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11553 function.
11554 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11555 of amd64_collect_native_gregset.
11556 (amd64_linux_nat_target::store_registers): Likewise.
11557
11558 2019-04-10 Tom Tromey <tom@tromey.com>
11559
11560 * symtab.c (lookup_global_symbol_from_objfile)
11561 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11562 * objfiles.h (class separate_debug_iterator): New.
11563 (class separate_debug_range): New.
11564 (struct objfile) <separate_debug_objfiles>: New method.
11565 (objfile_separate_debug_iterate): Don't declare.
11566 * objfiles.c (separate_debug_iterator::operator++): Rename from
11567 objfile_separate_debug_iterate.
11568 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11569 iterator.
11570 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11571 iterator.
11572
11573 2019-04-10 Tom Tromey <tom@tromey.com>
11574
11575 * symfile.c (reread_symbols): Remove old comment.
11576 * objfiles.c (free_all_objfiles): Fix a typo.
11577
11578 2019-04-10 Tom Tromey <tom@tromey.com>
11579
11580 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11581 * minsyms.c (lookup_minimal_symbol): Use foreach.
11582 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11583 (lookup_minimal_symbol_solib_trampoline): Likewise.
11584 * symfile.c (reread_symbols): Use foreach.
11585
11586 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11587 Tom Tromey <tromey@adacore.com>
11588
11589 PR rust/24414:
11590 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11591 (rust_lex_int_test): Change "value" to be LONGEST.
11592 (rust_lex_tests): Add test for long integer literal.
11593
11594 2019-04-09 Tom Tromey <tromey@adacore.com>
11595
11596 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11597 to bool.
11598 (extended_remote_target::attach): Update.
11599 (remote_target::remote_notice_new_inferior): Update.
11600 (remote_target::add_current_inferior_and_thread): Update.
11601 * inferior.c (exit_inferior_1): Use "false".
11602 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11603
11604 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11605
11606 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11607 the "start" command.
11608
11609 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11610
11611 * python/py-inferior.c (infpy_thread_from_thread_handle):
11612 Adjust comments to reflect renaming of thread_from_thread_handle
11613 to thread_from_handle. Adjust keywords. Fix type error message.
11614 (inferior_object_methods): Add thread_from_handle. Retain
11615 thread_from_thread_handle, but mark it as deprecated.
11616
11617 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11618
11619 * gdbthread.h (find_thread_by_handle): Revise declaration.
11620 * thread.c (find_thread_by_handle): Likewise. Adjust
11621 implementation too.
11622 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11623 support for buffer objects as handles.
11624
11625 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11626
11627 * python/py-infthread.c (thpy_thread_handle): New function.
11628 (thread_object_methods): Register thpy_thread_handle.
11629
11630 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11631
11632 * gdbthread.h (thread_to_thread_handle): Declare.
11633 * thread.c (gdbtypes.h): Include.
11634 (thread_to_thread_handle): New function.
11635
11636 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11637 (target_thread_info_to_thread_handle): Declare.
11638 * target.c (target_thread_info_to_thread_handle): New function.
11639 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11640 * target-delegates.c: Regenerate.
11641
11642 * linux-thread-db.c (class thread_db_target): Add method
11643 thread_info_to_thread_handle.
11644 (thread_db_target::thread_info_to_thread_handle): Define.
11645 * remote.c (class remote_target): Add new method
11646 thread_info_to_thread_handle.
11647 (remote_target::thread_info_to_thread_handle): Define.
11648
11649 2019-04-08 Pedro Alves <palves@redhat.com>
11650
11651 * common/common-exceptions.c (throw_exception): Don't create
11652 named object to throw; throw directly.
11653 (throw_it): Likewise. Don't initialize gdb_exception::message
11654 here, with new; pass FMT and AP to the ctor instead.
11655 * common/common-exceptions.h: Include <string>.
11656 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11657 const char *, va_list)): New ctor. Use std::make_shared.
11658 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11659 errors)): Delete.
11660 (gdb_exception_error::gdb_exception_error(enum errors, const char
11661 *, va_list)): New.
11662 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11663 Add assertion.
11664 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11665 errors)): Delete.
11666 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11667 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11668 Add assertion.
11669
11670 2019-04-08 Tom Tromey <tom@tromey.com>
11671
11672 * valops.c (value_rtti_indirect_type): Replace throw_exception
11673 with throw.
11674 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11675 with throw.
11676 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11677 throw.
11678 * target.c (target_translate_tls_address): Replace throw_exception
11679 with throw.
11680 * stack.c (frame_apply_command_count): Replace throw_exception
11681 with throw.
11682 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11683 throw.
11684 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11685 with throw.
11686 * rs6000-tdep.c (rs6000_frame_cache)
11687 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11688 * remote.c: Replace throw_exception with throw.
11689 * record-full.c (record_full_message, record_full_wait_1)
11690 (record_full_restore): Replace throw_exception with throw.
11691 * record-btrace.c:
11692 (get_thread_current_frame_id, record_btrace_start_replaying)
11693 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11694 (cmd_record_btrace_start): Replace throw_exception with throw.
11695 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11696 throw.
11697 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11698 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11699 * linespec.c:
11700 (find_linespec_symbols): Replace throw_exception with throw.
11701 * infrun.c (displaced_step_prepare, resume): Replace
11702 throw_exception with throw.
11703 * infcmd.c (post_create_inferior): Replace throw_exception with
11704 throw.
11705 * inf-loop.c (inferior_event_handler): Replace throw_exception
11706 with throw.
11707 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11708 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11709 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11710 (get_prev_frame_always, get_frame_pc_if_available)
11711 (get_frame_address_in_block_if_available, get_frame_language):
11712 Replace throw_exception with throw.
11713 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11714 throw_exception with throw.
11715 * eval.c (fetch_subexp_value, evaluate_var_value)
11716 (evaluate_funcall, evaluate_subexp_standard): Replace
11717 throw_exception with throw.
11718 * dwarf2loc.c (call_site_find_chain)
11719 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11720 Replace throw_exception with throw.
11721 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11722 with throw.
11723 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11724 throw.
11725 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11726 * completer.c (complete_line_internal): Replace throw_exception
11727 with throw.
11728 * compile/compile-object-run.c (compile_object_run): Replace
11729 throw_exception with throw.
11730 * cli/cli-script.c (process_next_line): Replace throw_exception
11731 with throw.
11732 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11733 (btrace_enable, btrace_maint_update_pt_packets): Replace
11734 throw_exception with throw.
11735 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11736 throw_exception with throw.
11737 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11738 throw_exception with throw.
11739 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11740 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11741 * aarch64-tdep.c (aarch64_make_prologue_cache)
11742 (aarch64_make_stub_cache): Replace throw_exception with throw.
11743
11744 2019-04-08 Tom Tromey <tom@tromey.com>
11745
11746 * common/common-exceptions.c (throw_exception): Rename from
11747 throw_exception_cxx. Remove old copy. Make argument const.
11748 (throw_it): Create and throw exception objects directly.
11749 * common/common-exceptions.h (throw_exception): Make argument
11750 const.
11751 (struct gdb_exception_error): Add constructor.
11752 (struct gdb_exception_quit): Add constructor.
11753
11754 2019-04-08 Tom Tromey <tom@tromey.com>
11755
11756 * common/common-exceptions.h (exception_rethrow): Don't declare.
11757 (TRY_SJLJ): Update comment.
11758 (TRY, CATCH, END_CATCH): Remove.
11759 * common/common-exceptions.c (exception_rethrow): Remove.
11760
11761 2019-04-08 Tom Tromey <tom@tromey.com>
11762
11763 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11764 Remove.
11765 (gdb_exception_error): Rename from
11766 gdb_exception_RETURN_MASK_ERROR.
11767 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11768 (gdb_quit_bad_alloc): Update.
11769 * aarch64-tdep.c: Update.
11770 * ada-lang.c: Update.
11771 * ada-typeprint.c: Update.
11772 * ada-valprint.c: Update.
11773 * amd64-tdep.c: Update.
11774 * arch-utils.c: Update.
11775 * break-catch-throw.c: Update.
11776 * breakpoint.c: Update.
11777 * btrace.c: Update.
11778 * c-varobj.c: Update.
11779 * cli/cli-cmds.c: Update.
11780 * cli/cli-interp.c: Update.
11781 * cli/cli-script.c: Update.
11782 * common/common-exceptions.c: Update.
11783 * common/new-op.c: Update.
11784 * common/selftest.c: Update.
11785 * compile/compile-c-symbols.c: Update.
11786 * compile/compile-cplus-symbols.c: Update.
11787 * compile/compile-object-load.c: Update.
11788 * compile/compile-object-run.c: Update.
11789 * completer.c: Update.
11790 * corelow.c: Update.
11791 * cp-abi.c: Update.
11792 * cp-support.c: Update.
11793 * cp-valprint.c: Update.
11794 * darwin-nat.c: Update.
11795 * disasm-selftests.c: Update.
11796 * dtrace-probe.c: Update.
11797 * dwarf-index-cache.c: Update.
11798 * dwarf-index-write.c: Update.
11799 * dwarf2-frame-tailcall.c: Update.
11800 * dwarf2-frame.c: Update.
11801 * dwarf2loc.c: Update.
11802 * dwarf2read.c: Update.
11803 * eval.c: Update.
11804 * event-loop.c: Update.
11805 * event-top.c: Update.
11806 * exec.c: Update.
11807 * f-valprint.c: Update.
11808 * fbsd-tdep.c: Update.
11809 * frame-unwind.c: Update.
11810 * frame.c: Update.
11811 * gdbtypes.c: Update.
11812 * gnu-v3-abi.c: Update.
11813 * guile/guile-internal.h: Update.
11814 * guile/scm-block.c: Update.
11815 * guile/scm-breakpoint.c: Update.
11816 * guile/scm-cmd.c: Update.
11817 * guile/scm-disasm.c: Update.
11818 * guile/scm-frame.c: Update.
11819 * guile/scm-lazy-string.c: Update.
11820 * guile/scm-math.c: Update.
11821 * guile/scm-param.c: Update.
11822 * guile/scm-ports.c: Update.
11823 * guile/scm-pretty-print.c: Update.
11824 * guile/scm-symbol.c: Update.
11825 * guile/scm-symtab.c: Update.
11826 * guile/scm-type.c: Update.
11827 * guile/scm-value.c: Update.
11828 * i386-linux-tdep.c: Update.
11829 * i386-tdep.c: Update.
11830 * inf-loop.c: Update.
11831 * infcall.c: Update.
11832 * infcmd.c: Update.
11833 * infrun.c: Update.
11834 * jit.c: Update.
11835 * language.c: Update.
11836 * linespec.c: Update.
11837 * linux-fork.c: Update.
11838 * linux-nat.c: Update.
11839 * linux-tdep.c: Update.
11840 * linux-thread-db.c: Update.
11841 * main.c: Update.
11842 * mi/mi-cmd-break.c: Update.
11843 * mi/mi-cmd-stack.c: Update.
11844 * mi/mi-interp.c: Update.
11845 * mi/mi-main.c: Update.
11846 * objc-lang.c: Update.
11847 * p-valprint.c: Update.
11848 * parse.c: Update.
11849 * ppc-linux-tdep.c: Update.
11850 * printcmd.c: Update.
11851 * python/py-arch.c: Update.
11852 * python/py-breakpoint.c: Update.
11853 * python/py-cmd.c: Update.
11854 * python/py-finishbreakpoint.c: Update.
11855 * python/py-frame.c: Update.
11856 * python/py-framefilter.c: Update.
11857 * python/py-gdb-readline.c: Update.
11858 * python/py-inferior.c: Update.
11859 * python/py-infthread.c: Update.
11860 * python/py-lazy-string.c: Update.
11861 * python/py-linetable.c: Update.
11862 * python/py-objfile.c: Update.
11863 * python/py-param.c: Update.
11864 * python/py-prettyprint.c: Update.
11865 * python/py-progspace.c: Update.
11866 * python/py-record-btrace.c: Update.
11867 * python/py-record.c: Update.
11868 * python/py-symbol.c: Update.
11869 * python/py-type.c: Update.
11870 * python/py-unwind.c: Update.
11871 * python/py-utils.c: Update.
11872 * python/py-value.c: Update.
11873 * python/python.c: Update.
11874 * record-btrace.c: Update.
11875 * record-full.c: Update.
11876 * remote-fileio.c: Update.
11877 * remote.c: Update.
11878 * riscv-tdep.c: Update.
11879 * rs6000-aix-tdep.c: Update.
11880 * rs6000-tdep.c: Update.
11881 * rust-exp.y: Update.
11882 * rust-lang.c: Update.
11883 * s390-tdep.c: Update.
11884 * selftest-arch.c: Update.
11885 * solib-dsbt.c: Update.
11886 * solib-frv.c: Update.
11887 * solib-spu.c: Update.
11888 * solib-svr4.c: Update.
11889 * solib.c: Update.
11890 * sparc64-linux-tdep.c: Update.
11891 * stack.c: Update.
11892 * symfile-mem.c: Update.
11893 * symmisc.c: Update.
11894 * target.c: Update.
11895 * thread.c: Update.
11896 * top.c: Update.
11897 * tracefile-tfile.c: Update.
11898 * tui/tui.c: Update.
11899 * typeprint.c: Update.
11900 * unittests/cli-utils-selftests.c: Update.
11901 * unittests/parse-connection-spec-selftests.c: Update.
11902 * valops.c: Update.
11903 * valprint.c: Update.
11904 * value.c: Update.
11905 * varobj.c: Update.
11906 * windows-nat.c: Update.
11907 * x86-linux-nat.c: Update.
11908 * xml-support.c: Update.
11909
11910 2019-04-08 Tom Tromey <tom@tromey.com>
11911
11912 * xml-support.c: Use C++ exception handling.
11913 * x86-linux-nat.c: Use C++ exception handling.
11914 * windows-nat.c: Use C++ exception handling.
11915 * varobj.c: Use C++ exception handling.
11916 * value.c: Use C++ exception handling.
11917 * valprint.c: Use C++ exception handling.
11918 * valops.c: Use C++ exception handling.
11919 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11920 handling.
11921 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11922 * typeprint.c: Use C++ exception handling.
11923 * tui/tui.c: Use C++ exception handling.
11924 * tracefile-tfile.c: Use C++ exception handling.
11925 * top.c: Use C++ exception handling.
11926 * thread.c: Use C++ exception handling.
11927 * target.c: Use C++ exception handling.
11928 * symmisc.c: Use C++ exception handling.
11929 * symfile-mem.c: Use C++ exception handling.
11930 * stack.c: Use C++ exception handling.
11931 * sparc64-linux-tdep.c: Use C++ exception handling.
11932 * solib.c: Use C++ exception handling.
11933 * solib-svr4.c: Use C++ exception handling.
11934 * solib-spu.c: Use C++ exception handling.
11935 * solib-frv.c: Use C++ exception handling.
11936 * solib-dsbt.c: Use C++ exception handling.
11937 * selftest-arch.c: Use C++ exception handling.
11938 * s390-tdep.c: Use C++ exception handling.
11939 * rust-lang.c: Use C++ exception handling.
11940 * rust-exp.y: Use C++ exception handling.
11941 * rs6000-tdep.c: Use C++ exception handling.
11942 * rs6000-aix-tdep.c: Use C++ exception handling.
11943 * riscv-tdep.c: Use C++ exception handling.
11944 * remote.c: Use C++ exception handling.
11945 * remote-fileio.c: Use C++ exception handling.
11946 * record-full.c: Use C++ exception handling.
11947 * record-btrace.c: Use C++ exception handling.
11948 * python/python.c: Use C++ exception handling.
11949 * python/py-value.c: Use C++ exception handling.
11950 * python/py-utils.c: Use C++ exception handling.
11951 * python/py-unwind.c: Use C++ exception handling.
11952 * python/py-type.c: Use C++ exception handling.
11953 * python/py-symbol.c: Use C++ exception handling.
11954 * python/py-record.c: Use C++ exception handling.
11955 * python/py-record-btrace.c: Use C++ exception handling.
11956 * python/py-progspace.c: Use C++ exception handling.
11957 * python/py-prettyprint.c: Use C++ exception handling.
11958 * python/py-param.c: Use C++ exception handling.
11959 * python/py-objfile.c: Use C++ exception handling.
11960 * python/py-linetable.c: Use C++ exception handling.
11961 * python/py-lazy-string.c: Use C++ exception handling.
11962 * python/py-infthread.c: Use C++ exception handling.
11963 * python/py-inferior.c: Use C++ exception handling.
11964 * python/py-gdb-readline.c: Use C++ exception handling.
11965 * python/py-framefilter.c: Use C++ exception handling.
11966 * python/py-frame.c: Use C++ exception handling.
11967 * python/py-finishbreakpoint.c: Use C++ exception handling.
11968 * python/py-cmd.c: Use C++ exception handling.
11969 * python/py-breakpoint.c: Use C++ exception handling.
11970 * python/py-arch.c: Use C++ exception handling.
11971 * printcmd.c: Use C++ exception handling.
11972 * ppc-linux-tdep.c: Use C++ exception handling.
11973 * parse.c: Use C++ exception handling.
11974 * p-valprint.c: Use C++ exception handling.
11975 * objc-lang.c: Use C++ exception handling.
11976 * mi/mi-main.c: Use C++ exception handling.
11977 * mi/mi-interp.c: Use C++ exception handling.
11978 * mi/mi-cmd-stack.c: Use C++ exception handling.
11979 * mi/mi-cmd-break.c: Use C++ exception handling.
11980 * main.c: Use C++ exception handling.
11981 * linux-thread-db.c: Use C++ exception handling.
11982 * linux-tdep.c: Use C++ exception handling.
11983 * linux-nat.c: Use C++ exception handling.
11984 * linux-fork.c: Use C++ exception handling.
11985 * linespec.c: Use C++ exception handling.
11986 * language.c: Use C++ exception handling.
11987 * jit.c: Use C++ exception handling.
11988 * infrun.c: Use C++ exception handling.
11989 * infcmd.c: Use C++ exception handling.
11990 * infcall.c: Use C++ exception handling.
11991 * inf-loop.c: Use C++ exception handling.
11992 * i386-tdep.c: Use C++ exception handling.
11993 * i386-linux-tdep.c: Use C++ exception handling.
11994 * guile/scm-value.c: Use C++ exception handling.
11995 * guile/scm-type.c: Use C++ exception handling.
11996 * guile/scm-symtab.c: Use C++ exception handling.
11997 * guile/scm-symbol.c: Use C++ exception handling.
11998 * guile/scm-pretty-print.c: Use C++ exception handling.
11999 * guile/scm-ports.c: Use C++ exception handling.
12000 * guile/scm-param.c: Use C++ exception handling.
12001 * guile/scm-math.c: Use C++ exception handling.
12002 * guile/scm-lazy-string.c: Use C++ exception handling.
12003 * guile/scm-frame.c: Use C++ exception handling.
12004 * guile/scm-disasm.c: Use C++ exception handling.
12005 * guile/scm-cmd.c: Use C++ exception handling.
12006 * guile/scm-breakpoint.c: Use C++ exception handling.
12007 * guile/scm-block.c: Use C++ exception handling.
12008 * guile/guile-internal.h: Use C++ exception handling.
12009 * gnu-v3-abi.c: Use C++ exception handling.
12010 * gdbtypes.c: Use C++ exception handling.
12011 * frame.c: Use C++ exception handling.
12012 * frame-unwind.c: Use C++ exception handling.
12013 * fbsd-tdep.c: Use C++ exception handling.
12014 * f-valprint.c: Use C++ exception handling.
12015 * exec.c: Use C++ exception handling.
12016 * event-top.c: Use C++ exception handling.
12017 * event-loop.c: Use C++ exception handling.
12018 * eval.c: Use C++ exception handling.
12019 * dwarf2read.c: Use C++ exception handling.
12020 * dwarf2loc.c: Use C++ exception handling.
12021 * dwarf2-frame.c: Use C++ exception handling.
12022 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12023 * dwarf-index-write.c: Use C++ exception handling.
12024 * dwarf-index-cache.c: Use C++ exception handling.
12025 * dtrace-probe.c: Use C++ exception handling.
12026 * disasm-selftests.c: Use C++ exception handling.
12027 * darwin-nat.c: Use C++ exception handling.
12028 * cp-valprint.c: Use C++ exception handling.
12029 * cp-support.c: Use C++ exception handling.
12030 * cp-abi.c: Use C++ exception handling.
12031 * corelow.c: Use C++ exception handling.
12032 * completer.c: Use C++ exception handling.
12033 * compile/compile-object-run.c: Use C++ exception handling.
12034 * compile/compile-object-load.c: Use C++ exception handling.
12035 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12036 * compile/compile-c-symbols.c: Use C++ exception handling.
12037 * common/selftest.c: Use C++ exception handling.
12038 * common/new-op.c: Use C++ exception handling.
12039 * cli/cli-script.c: Use C++ exception handling.
12040 * cli/cli-interp.c: Use C++ exception handling.
12041 * cli/cli-cmds.c: Use C++ exception handling.
12042 * c-varobj.c: Use C++ exception handling.
12043 * btrace.c: Use C++ exception handling.
12044 * breakpoint.c: Use C++ exception handling.
12045 * break-catch-throw.c: Use C++ exception handling.
12046 * arch-utils.c: Use C++ exception handling.
12047 * amd64-tdep.c: Use C++ exception handling.
12048 * ada-valprint.c: Use C++ exception handling.
12049 * ada-typeprint.c: Use C++ exception handling.
12050 * ada-lang.c: Use C++ exception handling.
12051 * aarch64-tdep.c: Use C++ exception handling.
12052
12053 2019-04-08 Tom Tromey <tom@tromey.com>
12054
12055 * xml-support.c (gdb_xml_parser::parse): Update.
12056 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12057 * value.c (show_convenience): Update.
12058 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12059 (test_parse_flags_qcs): Update.
12060 * thread.c (thr_try_catch_cmd): Update.
12061 * target.c (target_translate_tls_address): Update.
12062 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12063 (info_frame_command_core, frame_apply_command_count): Update.
12064 * rust-exp.y (rust_lex_exception_test): Update.
12065 * riscv-tdep.c (riscv_print_one_register_info): Update.
12066 * remote.c (remote_target::enable_btrace): Update.
12067 * record-btrace.c (record_btrace_enable_warn): Update.
12068 * python/py-utils.c (gdbpy_convert_exception): Update.
12069 * printcmd.c (do_one_display, print_variable_and_value): Update.
12070 * mi/mi-main.c (mi_print_exception): Update.
12071 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12072 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12073 * linux-nat.c (linux_nat_target::attach): Update.
12074 * linux-fork.c (class scoped_switch_fork_info): Update.
12075 * infrun.c (displaced_step_prepare): Update.
12076 * infcall.c (call_function_by_hand_dummy): Update.
12077 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12078 * gnu-v3-abi.c (print_one_vtable): Update.
12079 * frame.c (get_prev_frame_always): Update.
12080 * f-valprint.c (info_common_command_for_block): Update.
12081 * exec.c (try_open_exec_file): Update.
12082 * exceptions.c (print_exception, exception_print)
12083 (exception_fprintf, exception_print_same): Update.
12084 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12085 * dwarf-index-cache.c (index_cache::store)
12086 (index_cache::lookup_gdb_index): Update.
12087 * darwin-nat.c (maybe_cache_shell): Update.
12088 * cp-valprint.c (cp_print_value_fields): Update.
12089 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12090 (gcc_cplus_symbol_address): Update.
12091 * compile/compile-c-symbols.c (gcc_convert_symbol)
12092 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12093 * common/selftest.c: Update.
12094 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12095 a std::string.
12096 (exception_try_scope_entry, exception_try_scope_exit): Don't
12097 declare.
12098 (struct exception_try_scope): Remove.
12099 (TRY): Don't use exception_try_scope.
12100 (struct gdb_exception): Add constructor, operator=.
12101 <what>: New method.
12102 (struct gdb_exception_RETURN_MASK_ALL)
12103 (struct gdb_exception_RETURN_MASK_ERROR)
12104 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12105 (struct gdb_quit_bad_alloc): Update.
12106 * common/common-exceptions.c (exception_none): Change
12107 initializer.
12108 (struct catcher) <state, exception>: Initialize inline.
12109 <prev>: Remove member.
12110 (current_catcher): Remove.
12111 (catchers): New global.
12112 (exceptions_state_mc_init): Simplify.
12113 (catcher_pop): Remove.
12114 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12115 (try_scope_depth, exception_try_scope_entry)
12116 (exception_try_scope_exit): Remove.
12117 (throw_exception_sjlj): Update.
12118 (exception_messages, exception_messages_size): Remove.
12119 (throw_it): Simplify.
12120 (gdb_exception_sliced_copy): Remove.
12121 (throw_exception_cxx): Update.
12122 * cli/cli-script.c (script_from_file): Update.
12123 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12124 Update.
12125 * ada-valprint.c (ada_val_print): Update.
12126 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12127 (create_excep_cond_exprs): Update.
12128
12129 2019-04-08 Tom Tromey <tom@tromey.com>
12130
12131 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12132 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12133 (TRY, CATCH, END_CATCH): Remove some definitions.
12134 * common/common-exceptions.c: Don't use GDB_XCPT.
12135 (catcher_list_size): Remove.
12136 (throw_exception, throw_it): Simplify.
12137
12138 2019-04-05 Tom Tromey <tom@tromey.com>
12139
12140 Revert the header-sorting patch.
12141 * ft32-tdep.c: Revert.
12142 * frv-tdep.c: Revert.
12143 * frv-linux-tdep.c: Revert.
12144 * frame.c: Revert.
12145 * frame-unwind.c: Revert.
12146 * frame-base.c: Revert.
12147 * fork-child.c: Revert.
12148 * findvar.c: Revert.
12149 * findcmd.c: Revert.
12150 * filesystem.c: Revert.
12151 * filename-seen-cache.h: Revert.
12152 * filename-seen-cache.c: Revert.
12153 * fbsd-tdep.c: Revert.
12154 * fbsd-nat.h: Revert.
12155 * fbsd-nat.c: Revert.
12156 * f-valprint.c: Revert.
12157 * f-typeprint.c: Revert.
12158 * f-lang.c: Revert.
12159 * extension.h: Revert.
12160 * extension.c: Revert.
12161 * extension-priv.h: Revert.
12162 * expprint.c: Revert.
12163 * exec.h: Revert.
12164 * exec.c: Revert.
12165 * exceptions.c: Revert.
12166 * event-top.c: Revert.
12167 * event-loop.c: Revert.
12168 * eval.c: Revert.
12169 * elfread.c: Revert.
12170 * dwarf2read.h: Revert.
12171 * dwarf2read.c: Revert.
12172 * dwarf2loc.c: Revert.
12173 * dwarf2expr.h: Revert.
12174 * dwarf2expr.c: Revert.
12175 * dwarf2-frame.c: Revert.
12176 * dwarf2-frame-tailcall.c: Revert.
12177 * dwarf-index-write.h: Revert.
12178 * dwarf-index-write.c: Revert.
12179 * dwarf-index-common.c: Revert.
12180 * dwarf-index-cache.h: Revert.
12181 * dwarf-index-cache.c: Revert.
12182 * dummy-frame.c: Revert.
12183 * dtrace-probe.c: Revert.
12184 * disasm.h: Revert.
12185 * disasm.c: Revert.
12186 * disasm-selftests.c: Revert.
12187 * dictionary.c: Revert.
12188 * dicos-tdep.c: Revert.
12189 * demangle.c: Revert.
12190 * dcache.h: Revert.
12191 * dcache.c: Revert.
12192 * darwin-nat.h: Revert.
12193 * darwin-nat.c: Revert.
12194 * darwin-nat-info.c: Revert.
12195 * d-valprint.c: Revert.
12196 * d-namespace.c: Revert.
12197 * d-lang.c: Revert.
12198 * ctf.c: Revert.
12199 * csky-tdep.c: Revert.
12200 * csky-linux-tdep.c: Revert.
12201 * cris-tdep.c: Revert.
12202 * cris-linux-tdep.c: Revert.
12203 * cp-valprint.c: Revert.
12204 * cp-support.c: Revert.
12205 * cp-namespace.c: Revert.
12206 * cp-abi.c: Revert.
12207 * corelow.c: Revert.
12208 * corefile.c: Revert.
12209 * continuations.c: Revert.
12210 * completer.h: Revert.
12211 * completer.c: Revert.
12212 * complaints.c: Revert.
12213 * coffread.c: Revert.
12214 * coff-pe-read.c: Revert.
12215 * cli-out.h: Revert.
12216 * cli-out.c: Revert.
12217 * charset.c: Revert.
12218 * c-varobj.c: Revert.
12219 * c-valprint.c: Revert.
12220 * c-typeprint.c: Revert.
12221 * c-lang.c: Revert.
12222 * buildsym.c: Revert.
12223 * buildsym-legacy.c: Revert.
12224 * build-id.h: Revert.
12225 * build-id.c: Revert.
12226 * btrace.c: Revert.
12227 * bsd-uthread.c: Revert.
12228 * breakpoint.h: Revert.
12229 * breakpoint.c: Revert.
12230 * break-catch-throw.c: Revert.
12231 * break-catch-syscall.c: Revert.
12232 * break-catch-sig.c: Revert.
12233 * blockframe.c: Revert.
12234 * block.c: Revert.
12235 * bfin-tdep.c: Revert.
12236 * bfin-linux-tdep.c: Revert.
12237 * bfd-target.c: Revert.
12238 * bcache.c: Revert.
12239 * ax-general.c: Revert.
12240 * ax-gdb.h: Revert.
12241 * ax-gdb.c: Revert.
12242 * avr-tdep.c: Revert.
12243 * auxv.c: Revert.
12244 * auto-load.c: Revert.
12245 * arm-wince-tdep.c: Revert.
12246 * arm-tdep.c: Revert.
12247 * arm-symbian-tdep.c: Revert.
12248 * arm-pikeos-tdep.c: Revert.
12249 * arm-obsd-tdep.c: Revert.
12250 * arm-nbsd-tdep.c: Revert.
12251 * arm-nbsd-nat.c: Revert.
12252 * arm-linux-tdep.c: Revert.
12253 * arm-linux-nat.c: Revert.
12254 * arm-fbsd-tdep.c: Revert.
12255 * arm-fbsd-nat.c: Revert.
12256 * arm-bsd-tdep.c: Revert.
12257 * arch-utils.c: Revert.
12258 * arc-tdep.c: Revert.
12259 * arc-newlib-tdep.c: Revert.
12260 * annotate.h: Revert.
12261 * annotate.c: Revert.
12262 * amd64-windows-tdep.c: Revert.
12263 * amd64-windows-nat.c: Revert.
12264 * amd64-tdep.c: Revert.
12265 * amd64-sol2-tdep.c: Revert.
12266 * amd64-obsd-tdep.c: Revert.
12267 * amd64-obsd-nat.c: Revert.
12268 * amd64-nbsd-tdep.c: Revert.
12269 * amd64-nbsd-nat.c: Revert.
12270 * amd64-nat.c: Revert.
12271 * amd64-linux-tdep.c: Revert.
12272 * amd64-linux-nat.c: Revert.
12273 * amd64-fbsd-tdep.c: Revert.
12274 * amd64-fbsd-nat.c: Revert.
12275 * amd64-dicos-tdep.c: Revert.
12276 * amd64-darwin-tdep.c: Revert.
12277 * amd64-bsd-nat.c: Revert.
12278 * alpha-tdep.c: Revert.
12279 * alpha-obsd-tdep.c: Revert.
12280 * alpha-nbsd-tdep.c: Revert.
12281 * alpha-mdebug-tdep.c: Revert.
12282 * alpha-linux-tdep.c: Revert.
12283 * alpha-linux-nat.c: Revert.
12284 * alpha-bsd-tdep.c: Revert.
12285 * alpha-bsd-nat.c: Revert.
12286 * aix-thread.c: Revert.
12287 * agent.c: Revert.
12288 * addrmap.c: Revert.
12289 * ada-varobj.c: Revert.
12290 * ada-valprint.c: Revert.
12291 * ada-typeprint.c: Revert.
12292 * ada-tasks.c: Revert.
12293 * ada-lang.c: Revert.
12294 * aarch64-tdep.c: Revert.
12295 * aarch64-ravenscar-thread.c: Revert.
12296 * aarch64-newlib-tdep.c: Revert.
12297 * aarch64-linux-tdep.c: Revert.
12298 * aarch64-linux-nat.c: Revert.
12299 * aarch64-fbsd-tdep.c: Revert.
12300 * aarch64-fbsd-nat.c: Revert.
12301 * aarch32-linux-nat.c: Revert.
12302
12303 2019-04-05 Tom Tromey <tom@tromey.com>
12304
12305 * ft32-tdep.c: Sort headers.
12306 * frv-tdep.c: Sort headers.
12307 * frv-linux-tdep.c: Sort headers.
12308 * frame.c: Sort headers.
12309 * frame-unwind.c: Sort headers.
12310 * frame-base.c: Sort headers.
12311 * fork-child.c: Sort headers.
12312 * findvar.c: Sort headers.
12313 * findcmd.c: Sort headers.
12314 * filesystem.c: Sort headers.
12315 * filename-seen-cache.h: Sort headers.
12316 * filename-seen-cache.c: Sort headers.
12317 * fbsd-tdep.c: Sort headers.
12318 * fbsd-nat.h: Sort headers.
12319 * fbsd-nat.c: Sort headers.
12320 * f-valprint.c: Sort headers.
12321 * f-typeprint.c: Sort headers.
12322 * f-lang.c: Sort headers.
12323 * extension.h: Sort headers.
12324 * extension.c: Sort headers.
12325 * extension-priv.h: Sort headers.
12326 * expprint.c: Sort headers.
12327 * exec.h: Sort headers.
12328 * exec.c: Sort headers.
12329 * exceptions.c: Sort headers.
12330 * event-top.c: Sort headers.
12331 * event-loop.c: Sort headers.
12332 * eval.c: Sort headers.
12333 * elfread.c: Sort headers.
12334 * dwarf2read.h: Sort headers.
12335 * dwarf2read.c: Sort headers.
12336 * dwarf2loc.c: Sort headers.
12337 * dwarf2expr.h: Sort headers.
12338 * dwarf2expr.c: Sort headers.
12339 * dwarf2-frame.c: Sort headers.
12340 * dwarf2-frame-tailcall.c: Sort headers.
12341 * dwarf-index-write.h: Sort headers.
12342 * dwarf-index-write.c: Sort headers.
12343 * dwarf-index-common.c: Sort headers.
12344 * dwarf-index-cache.h: Sort headers.
12345 * dwarf-index-cache.c: Sort headers.
12346 * dummy-frame.c: Sort headers.
12347 * dtrace-probe.c: Sort headers.
12348 * disasm.h: Sort headers.
12349 * disasm.c: Sort headers.
12350 * disasm-selftests.c: Sort headers.
12351 * dictionary.c: Sort headers.
12352 * dicos-tdep.c: Sort headers.
12353 * demangle.c: Sort headers.
12354 * dcache.h: Sort headers.
12355 * dcache.c: Sort headers.
12356 * darwin-nat.h: Sort headers.
12357 * darwin-nat.c: Sort headers.
12358 * darwin-nat-info.c: Sort headers.
12359 * d-valprint.c: Sort headers.
12360 * d-namespace.c: Sort headers.
12361 * d-lang.c: Sort headers.
12362 * ctf.c: Sort headers.
12363 * csky-tdep.c: Sort headers.
12364 * csky-linux-tdep.c: Sort headers.
12365 * cris-tdep.c: Sort headers.
12366 * cris-linux-tdep.c: Sort headers.
12367 * cp-valprint.c: Sort headers.
12368 * cp-support.c: Sort headers.
12369 * cp-namespace.c: Sort headers.
12370 * cp-abi.c: Sort headers.
12371 * corelow.c: Sort headers.
12372 * corefile.c: Sort headers.
12373 * continuations.c: Sort headers.
12374 * completer.h: Sort headers.
12375 * completer.c: Sort headers.
12376 * complaints.c: Sort headers.
12377 * coffread.c: Sort headers.
12378 * coff-pe-read.c: Sort headers.
12379 * cli-out.h: Sort headers.
12380 * cli-out.c: Sort headers.
12381 * charset.c: Sort headers.
12382 * c-varobj.c: Sort headers.
12383 * c-valprint.c: Sort headers.
12384 * c-typeprint.c: Sort headers.
12385 * c-lang.c: Sort headers.
12386 * buildsym.c: Sort headers.
12387 * buildsym-legacy.c: Sort headers.
12388 * build-id.h: Sort headers.
12389 * build-id.c: Sort headers.
12390 * btrace.c: Sort headers.
12391 * bsd-uthread.c: Sort headers.
12392 * breakpoint.h: Sort headers.
12393 * breakpoint.c: Sort headers.
12394 * break-catch-throw.c: Sort headers.
12395 * break-catch-syscall.c: Sort headers.
12396 * break-catch-sig.c: Sort headers.
12397 * blockframe.c: Sort headers.
12398 * block.c: Sort headers.
12399 * bfin-tdep.c: Sort headers.
12400 * bfin-linux-tdep.c: Sort headers.
12401 * bfd-target.c: Sort headers.
12402 * bcache.c: Sort headers.
12403 * ax-general.c: Sort headers.
12404 * ax-gdb.h: Sort headers.
12405 * ax-gdb.c: Sort headers.
12406 * avr-tdep.c: Sort headers.
12407 * auxv.c: Sort headers.
12408 * auto-load.c: Sort headers.
12409 * arm-wince-tdep.c: Sort headers.
12410 * arm-tdep.c: Sort headers.
12411 * arm-symbian-tdep.c: Sort headers.
12412 * arm-pikeos-tdep.c: Sort headers.
12413 * arm-obsd-tdep.c: Sort headers.
12414 * arm-nbsd-tdep.c: Sort headers.
12415 * arm-nbsd-nat.c: Sort headers.
12416 * arm-linux-tdep.c: Sort headers.
12417 * arm-linux-nat.c: Sort headers.
12418 * arm-fbsd-tdep.c: Sort headers.
12419 * arm-fbsd-nat.c: Sort headers.
12420 * arm-bsd-tdep.c: Sort headers.
12421 * arch-utils.c: Sort headers.
12422 * arc-tdep.c: Sort headers.
12423 * arc-newlib-tdep.c: Sort headers.
12424 * annotate.h: Sort headers.
12425 * annotate.c: Sort headers.
12426 * amd64-windows-tdep.c: Sort headers.
12427 * amd64-windows-nat.c: Sort headers.
12428 * amd64-tdep.c: Sort headers.
12429 * amd64-sol2-tdep.c: Sort headers.
12430 * amd64-obsd-tdep.c: Sort headers.
12431 * amd64-obsd-nat.c: Sort headers.
12432 * amd64-nbsd-tdep.c: Sort headers.
12433 * amd64-nbsd-nat.c: Sort headers.
12434 * amd64-nat.c: Sort headers.
12435 * amd64-linux-tdep.c: Sort headers.
12436 * amd64-linux-nat.c: Sort headers.
12437 * amd64-fbsd-tdep.c: Sort headers.
12438 * amd64-fbsd-nat.c: Sort headers.
12439 * amd64-dicos-tdep.c: Sort headers.
12440 * amd64-darwin-tdep.c: Sort headers.
12441 * amd64-bsd-nat.c: Sort headers.
12442 * alpha-tdep.c: Sort headers.
12443 * alpha-obsd-tdep.c: Sort headers.
12444 * alpha-nbsd-tdep.c: Sort headers.
12445 * alpha-mdebug-tdep.c: Sort headers.
12446 * alpha-linux-tdep.c: Sort headers.
12447 * alpha-linux-nat.c: Sort headers.
12448 * alpha-bsd-tdep.c: Sort headers.
12449 * alpha-bsd-nat.c: Sort headers.
12450 * aix-thread.c: Sort headers.
12451 * agent.c: Sort headers.
12452 * addrmap.c: Sort headers.
12453 * ada-varobj.c: Sort headers.
12454 * ada-valprint.c: Sort headers.
12455 * ada-typeprint.c: Sort headers.
12456 * ada-tasks.c: Sort headers.
12457 * ada-lang.c: Sort headers.
12458 * aarch64-tdep.c: Sort headers.
12459 * aarch64-ravenscar-thread.c: Sort headers.
12460 * aarch64-newlib-tdep.c: Sort headers.
12461 * aarch64-linux-tdep.c: Sort headers.
12462 * aarch64-linux-nat.c: Sort headers.
12463 * aarch64-fbsd-tdep.c: Sort headers.
12464 * aarch64-fbsd-nat.c: Sort headers.
12465 * aarch32-linux-nat.c: Sort headers.
12466
12467 2019-04-04 Tom Tromey <tom@tromey.com>
12468
12469 * varobj.c (varobj_create): Update.
12470 * rust-exp.y (struct rust_parser) <update_innermost_block,
12471 lookup_symbol>: New methods.
12472 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12473 Rename.
12474 (rust_parser::rust_lookup_type)
12475 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12476 * printcmd.c (display_command, do_one_display): Update.
12477 * parser-defs.h (struct parser_state) <parser_state>: Add
12478 "tracker" parameter.
12479 (block_tracker): New member.
12480 (class innermost_block_tracker) <innermost_block_tracker>: Add
12481 "types" parameter.
12482 <reset>: Remove method.
12483 (innermost_block): Don't declare.
12484 (null_post_parser): Update.
12485 * parse.c (innermost_block): Remove global.
12486 (write_dollar_variable): Update.
12487 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12488 Remove "tracker_types" parameter.
12489 (parse_expression): Add "tracker" parameter.
12490 (parse_expression_for_completion): Update.
12491 (null_post_parser): Add "tracker" parameter.
12492 * p-exp.y: Update rules.
12493 * m2-exp.y: Update rules.
12494 * language.h (struct language_defn) <la_post_parser>: Add
12495 "tracker" parameter.
12496 * go-exp.y: Update rules.
12497 * f-exp.y: Update rules.
12498 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12499 parameter.
12500 * d-exp.y: Update rules.
12501 * c-exp.y: Update rules.
12502 * breakpoint.c (set_breakpoint_condition): Create an
12503 innermost_block_tracker.
12504 (watch_command_1): Likewise.
12505 * ada-lang.c (resolve): Add "tracker" parameter.
12506 (resolve_subexp): Likewise.
12507 * ada-exp.y (write_var_from_sym): Update.
12508
12509 2019-04-04 Tom Tromey <tom@tromey.com>
12510
12511 * type-stack.h: New file.
12512 * type-stack.c: New file.
12513 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12514 type-stack.h.
12515 (insert_into_type_stack, insert_type, push_type, push_type_int)
12516 (insert_type_address_space, pop_type, pop_type_int)
12517 (pop_typelist, pop_type_stack, append_type_stack)
12518 (push_type_stack, get_type_stack, push_typelist)
12519 (follow_type_instance_flags, follow_types): Don't declare.
12520 * parse.c (type_stack): Remove global.
12521 (parse_exp_in_context): Update.
12522 (insert_into_type_stack, insert_type, push_type, push_type_int)
12523 (insert_type_address_space, pop_type, pop_type_int)
12524 (pop_typelist, pop_type_stack, append_type_stack)
12525 (push_type_stack, get_type_stack, push_typelist)
12526 (follow_type_instance_flags, follow_types): Remove (moved to
12527 type-stack.c).
12528 * f-exp.y (type_stack): New global.
12529 Update rules.
12530 (push_kind_type, f_parse): Update.
12531 * d-exp.y (type_stack): New global.
12532 Update rules.
12533 (d_parse): Update.
12534 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12535 Update rules.
12536 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12537 (HFILES_NO_SRCDIR): Add type-stack.h.
12538
12539 2019-04-04 Tom Tromey <tom@tromey.com>
12540
12541 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12542 (rust_parser::convert_ast_to_expression, rust_parse)
12543 (rust_lex_test_completion, rust_lex_tests): Update.
12544 * parser-defs.h (struct expr_completion_state): New.
12545 (struct parser_state) <parser_state>: Add completion parameter.
12546 <mark_struct_expression, mark_completion_tag>: New methods.
12547 <parse_completion, m_completion_state>: New members.
12548 (prefixify_expression, null_post_parser): Update.
12549 (mark_struct_expression, mark_completion_tag): Don't declare.
12550 * parse.c (parse_completion, expout_last_struct)
12551 (expout_tag_completion_type, expout_completion_name): Remove
12552 globals.
12553 (parser_state::mark_struct_expression)
12554 (parser_state::mark_completion_tag): Now methods.
12555 (prefixify_expression): Add last_struct parameter.
12556 (prefixify_subexp): Likewise.
12557 (parse_exp_1): Update.
12558 (parse_exp_in_context): Add cstate parameter. Update.
12559 (parse_expression_for_completion): Create an
12560 expr_completion_state.
12561 (null_post_parser): Add "completion" parameter.
12562 * p-exp.y: Update rules.
12563 (yylex): Update.
12564 * language.h (struct language_defn) <la_post_parser>: Add
12565 "completing" parameter.
12566 * go-exp.y: Update rules.
12567 (lex_one_token): Update.
12568 * expression.h (parse_completion): Don't declare.
12569 * d-exp.y: Update rules.
12570 (lex_one_token): Update rules.
12571 * c-exp.y: Update rules.
12572 (lex_one_token): Update.
12573 * ada-lang.c (resolve): Add "parse_completion" parameter.
12574 (resolve_subexp): Likewise.
12575 (ada_resolve_function): Likewise.
12576
12577 2019-04-04 Tom Tromey <tom@tromey.com>
12578
12579 * parser-defs.h (struct parser_state) <start_arglist,
12580 end_arglist>: New methods.
12581 <arglist_len, m_funcall_chain>: New members.
12582 (arglist_len, start_arglist, end_arglist): Don't declare.
12583 * parse.c (arglist_len, funcall_chain): Remove global.
12584 (start_arglist, end_arglist): Remove functions.
12585 (parse_exp_in_context): Update.
12586 * p-exp.y: Update rules.
12587 * m2-exp.y: Update rules.
12588 * go-exp.y: Update rules.
12589 * f-exp.y: Update rules.
12590 * d-exp.y: Update rules.
12591 * c-exp.y: Update rules.
12592
12593 2019-04-04 Tom Tromey <tom@tromey.com>
12594
12595 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12596 lex_operator, push_back>: New methods.
12597 Update all rules.
12598 (rust_parser::lex_hex, lex_escape): Rename and update.
12599 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12600 (rust_parser::lex_operator): Rename and update.
12601 (rust_parser::lex_number, rustyylex, rustyyerror)
12602 (rust_lex_test_init, rust_lex_test_sequence)
12603 (rust_lex_test_push_back, rust_lex_tests): Update.
12604 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12605 parameter.
12606 <lexptr, prev_lexptr>: New members.
12607 (lexptr, prev_lexptr): Don't declare.
12608 * parse.c (lexptr, prev_lexptr): Remove globals.
12609 (parse_exp_in_context): Update.
12610 * p-exp.y (yylex, yyerror): Update.
12611 * m2-exp.y (parse_number, yylex, yyerror): Update.
12612 * go-exp.y (lex_one_token, yyerror): Update.
12613 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12614 * d-exp.y (lex_one_token, yyerror): Update.
12615 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12616 (lex_one_token, yyerror): Update.
12617 * ada-lex.l (YY_INPUT): Update.
12618 (rewind_to_char): Update.
12619 * ada-exp.y (yyerror): Update.
12620
12621 2019-04-04 Tom Tromey <tom@tromey.com>
12622
12623 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12624 * parser-defs.h (struct parser_state) <parser_state>: Add new
12625 parameter.
12626 <comma_terminates>: New member.
12627 (comma_terminates): Don't declare global.
12628 * parse.c (comma_terminates): Remove global.
12629 (parse_exp_in_context): Update.
12630 * p-exp.y (yylex): Update.
12631 * m2-exp.y (yylex): Update.
12632 * go-exp.y (lex_one_token): Update.
12633 * f-exp.y (yylex): Update.
12634 * d-exp.y (lex_one_token): Update.
12635 * c-exp.y (lex_one_token): Update.
12636 * ada-lex.l: Update.
12637
12638 2019-04-04 Tom Tromey <tom@tromey.com>
12639
12640 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12641 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12642 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12643 * parser-defs.h (paren_depth): Don't declare.
12644 * parse.c (paren_depth): Remove global.
12645 (parse_exp_in_context): Update.
12646 * p-exp.y (paren_depth): New global.
12647 (pascal_parse): Initialize it.
12648 * m2-exp.y (paren_depth): New global.
12649 (m2_parse): Initialize it.
12650 * go-exp.y (paren_depth): New global.
12651 (go_parse): Initialize it.
12652 * f-exp.y (paren_depth): New global.
12653 (f_parse): Initialize it.
12654 * d-exp.y (paren_depth): New global.
12655 (d_parse): Initialize it.
12656 * c-exp.y (paren_depth): New global.
12657 (c_parse): Initialize it.
12658 * ada-lex.l (paren_depth): New global.
12659 (lexer_init): Initialize it.
12660
12661 2019-04-04 Tom Tromey <tom@tromey.com>
12662
12663 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12664 (rust_parser::convert_ast_to_type)
12665 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12666 * parser-defs.h (struct parser_state) <parser_state>: Add
12667 parameters. Initialize new members.
12668 <expression_context_block, expression_context_pc>: New members.
12669 * parse.c (expression_context_block, expression_context_pc):
12670 Remove globals.
12671 (parse_exp_in_context): Update.
12672 * p-exp.y: Update all rules.
12673 (yylex): Update.
12674 * m2-exp.y: Update all rules.
12675 (yylex): Update.
12676 * go-exp.y (yylex): Update.
12677 * f-exp.y (yylex): Update.
12678 * d-exp.y: Update all rules.
12679 (yylex): Update.
12680 * c-exp.y: Update all rules.
12681 (lex_one_token, classify_name, yylex, c_parse): Update.
12682 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12683
12684 2019-04-04 Tom Tromey <tom@tromey.com>
12685
12686 * gdbarch.h, gdbarch.c: Rebuild.
12687 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12688 * stap-probe.h:
12689 (struct stap_parse_info): Replace "parser_state" with
12690 "expr_builder".
12691 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12692 (parser_state): New class.
12693 * parse.c (expr_builder): Rename.
12694 (expr_builder::release): Rename.
12695 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12696 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12697 (write_exp_elt_longcst, write_exp_elt_floatcst)
12698 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12699 (write_exp_string_vector, write_exp_bitstring)
12700 (write_exp_msymbol, mark_struct_expression)
12701 (write_dollar_variable)
12702 (insert_type_address_space, increase_expout_size): Replace
12703 "parser_state" with "expr_builder".
12704 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12705 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12706 "parser_state" with "expr_builder".
12707
12708 2019-04-04 Tom Tromey <tom@tromey.com>
12709
12710 * rust-exp.y: Replace "parse_language" with method call.
12711 * p-exp.y:
12712 (yylex): Replace "parse_language" with method call.
12713 * m2-exp.y:
12714 (yylex): Replace "parse_language" with method call.
12715 * go-exp.y (classify_name): Replace "parse_language" with method
12716 call.
12717 * f-exp.y (yylex): Replace "parse_language" with method call.
12718 * d-exp.y (lex_one_token): Replace "parse_language" with method
12719 call.
12720 * c-exp.y:
12721 (lex_one_token, classify_name, yylex): Replace "parse_language"
12722 with method call.
12723 * ada-exp.y (find_primitive_type, type_char)
12724 (type_system_address): Replace "parse_language" with method call.
12725
12726 2019-04-04 Tom Tromey <tom@tromey.com>
12727
12728 * rust-exp.y: Replace "parse_gdbarch" with method call.
12729 * parse.c (write_dollar_variable, insert_type_address_space):
12730 Replace "parse_gdbarch" with method call.
12731 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12732 call.
12733 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12734 call.
12735 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12736 "parse_gdbarch" with method call.
12737 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12738 with method call.
12739 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12740 "parse_gdbarch" with method call.
12741 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12742 "parse_gdbarch" with method call.
12743 * c-exp.y (parse_type, parse_number, classify_name): Replace
12744 "parse_gdbarch" with method call.
12745 * ada-lex.l: Replace "parse_gdbarch" with method call.
12746 * ada-exp.y (parse_type, find_primitive_type, type_char)
12747 (type_system_address): Replace "parse_gdbarch" with method call.
12748
12749 2019-04-04 Tom Tromey <tom@tromey.com>
12750
12751 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12752 * stap-probe.c (stap_parse_argument): Update.
12753 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12754 initial_size parameter.
12755 * rust-exp.y (rust_lex_tests): Update.
12756 * parse.c (parser_state): Update.
12757 (parse_exp_in_context): Update.
12758 * parser-defs.h (struct parser_state) <parser_state>: Remove
12759 "initial_size" parameter.
12760
12761 2019-04-04 Tom Tromey <tom@tromey.com>
12762
12763 * parser-defs.h (increase_expout_size): Don't declare.
12764 * parse.c (increase_expout_size): Now static.
12765
12766 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12767
12768 * gnu-nat.c (gnu_nat_target::wait): Fix
12769 target_waitstatus_to_string call.
12770
12771 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12772
12773 * eval.c (evaluate_subexp_standard): Handle internal functions
12774 during Fortran function call handling.
12775
12776 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12777
12778 * NEWS: Mention new internal functions.
12779 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12780 (read_base_type): Use dwarf2_init_complex_target_type.
12781 * value.c (creal_internal_fn): New function.
12782 (cimag_internal_fn): New function.
12783 (_initialize_values): Register new internal functions.
12784
12785 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12786
12787 * infrun.c (stop_all_threads): If debug_infrun, always
12788 trace the wait status after wait_one, using
12789 target_waitstatus_to_string and target_pid_to_str.
12790 (handle_inferior_event): Replace various trace of
12791 wait status kind by a single trace.
12792 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12793 wait status kind image by target_waitstatus_to_string.
12794 * target/waitstatus.c (target_waitstatus_to_string): Fix
12795 obsolete comment.
12796
12797 2019-04-01 Tom Tromey <tromey@adacore.com>
12798
12799 PR symtab/23331:
12800 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12801
12802 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12803 Pedro Alves <palves@redhat.com>
12804
12805 * top.c (quit_force): Call 'finalize_values'.
12806 * value.c (finalize_values): New function.
12807 * value.h (finalize_values): Declare.
12808
12809 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12810
12811 * NEWS: Announce $_gdb_major and $_gdb_minor.
12812
12813 * top.c (init_gdb_version_vars): New function.
12814 (gdb_init): Call init_gdb_version_vars.
12815
12816 2019-03-29 Tom Tromey <tromey@adacore.com>
12817
12818 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12819 help text. Remove dead code.
12820
12821 2019-03-29 Keith Seitz <keiths@redhat.com>
12822
12823 From Siddhesh Poyarekar:
12824 * f-lang.h (f77_get_upperbound): Return LONGEST.
12825 (f77_get_lowerbound): Likewise.
12826 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12827 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12828 print them.
12829 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12830 plongest to format print it.
12831 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12832 (f77_get_upperbound): Likewise.
12833 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12834 LOWER_BOUND to LONGEST.
12835 (f77_create_arrayprint_offset_tbl): Likewise.
12836
12837 2019-03-29 Keith Seitz <keiths@redhat.com>
12838
12839 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12840 %s/pulongest for TYPE_LENGTH instead of %d in format
12841 strings.
12842 * ada-typerint.c (ada_print_type): Likewise.
12843 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12844 * compile/compile-c-support.c (generate_register_struct): Likewise.
12845 * gdbtypes.c (recursive_dump_type): Likewise.
12846 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12847 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12848 instead of %d in format strings.
12849 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12850 to std::min to ULONGEST.
12851 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12852 instead of %d in format strings.
12853 * tracepoint.c (info_scope_command): Likewise.
12854 * typeprint.c (print_offset_data::update)
12855 (print_offset_data::finish): Likewise.
12856 * xtensa-tdep.c (xtensa_store_return_value)
12857 (xtensa_push_dummy_call): Likewise.
12858
12859 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12860
12861 * windows-nat.c (display_selector): Fixed format specifications
12862 for 64-bit Cygwin.
12863
12864 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12865
12866 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12867
12868 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12869
12870 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12871 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12872 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12873 (nios2_linux_init_abi): Install it.
12874
12875 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12876
12877 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12878
12879 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12880
12881 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12882
12883 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12884 Tom Tromey <tromey@adacore.com>
12885
12886 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12887
12888 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12889
12890 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12891 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12892 method to compute the bounds of range types. Also print "[evaluated]"
12893 if the bounds' values come from a dynamic evaluation.
12894
12895 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12896
12897 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12898 whitespace when pretty printing is on.
12899
12900 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12901
12902 * ppc-linux-nat.c: Add include.
12903
12904 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12905
12906 * NEWS: Mention AArch64 Pointer Authentication.
12907
12908 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12909
12910 * arm-linux-nat.c: Add include.
12911
12912 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12913
12914 * source-cache.c (source_cache::get_source_lines): Re-read
12915 fullname after calling open_source_file.
12916
12917 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12918
12919 * NEWS: Mention TLS support for FreeBSD.
12920
12921 2019-03-25 Tom Tromey <tromey@adacore.com>
12922
12923 * minsyms.c (BUNCH_SIZE): Update comment.
12924 (~minimal_symbol_reader): Remove old comment.
12925 (compact_minimal_symbols): Update comment.
12926 (minimal_symbol_reader::install): Remove old comment. Update
12927 other comments.
12928
12929 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12930
12931 * s390-linux-nat.c: Add include.
12932
12933 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12934
12935 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12936 Call linux_get_hwcap.
12937 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12938 Likewise.
12939 (aarch64_linux_get_hwcap): Remove function.
12940 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12941 declaration.
12942 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12943 linux_get_hwcap.
12944 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12945 * linux-tdep.c (linux_get_hwcap): Add function.
12946 (linux_get_hwcap2): Likewise.
12947 * linux-tdep.h (linux_get_hwcap): Add declaration.
12948 (linux_get_hwcap2): Likewise.
12949 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12950 (ppc_linux_get_hwcap2): Likewise.
12951 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12952 linux_get_hwcap.
12953 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12954 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12955 (ppc_linux_nat_target::read_description): Likewise.
12956 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12957 * s390-linux-nat.c: Likewise.
12958 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12959
12960 2019-03-24 Tom Tromey <tom@tromey.com>
12961
12962 * ada-lang.c (standard_lookup): Simplify initialization.
12963 (ada_lookup_symbol_nonlocal): Simplify return.
12964 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12965 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12966 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12967 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12968 initialization.
12969 * solib.c (solib_global_lookup): Simplify.
12970 * symtab.c (null_block_symbol): Remove.
12971 (symbol_cache_lookup): Simplify returns.
12972 (lookup_language_this): Simplify returns.
12973 (lookup_symbol_aux): Simplify return.
12974 (lookup_local_symbol): Simplify returns.
12975 (lookup_global_symbol_from_objfile): Simplify return.
12976 (lookup_symbol_in_objfile_symtabs)
12977 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12978 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12979 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12980 * cp-namespace.c (cp_lookup_bare_symbol)
12981 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12982 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12983 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12984 (cp_lookup_symbol_via_imports): Simplify initialization.
12985 (find_symbol_in_baseclass): Likewise.
12986 * symtab.h (null_block_symbol): Remove.
12987 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12988 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12989 (d_lookup_symbol_module): Likewise.
12990 (find_symbol_in_baseclass): Simplify initialization.
12991
12992 2019-03-24 Tom Tromey <tom@tromey.com>
12993
12994 * expression.h: Don't include symtab.h.
12995 (struct block): Forward declare.
12996
12997 2019-03-24 Tom Tromey <tom@tromey.com>
12998
12999 * c-exp.y (typebase): Remove casts.
13000 * gdbtypes.c (lookup_unsigned_typename, )
13001 (lookup_signed_typename): Remove cast.
13002 * eval.c (parse_to_comma_and_eval): Remove cast.
13003 * parse.c (write_dollar_variable): Remove cast.
13004 * block.h (struct block) <superblock>: Now const.
13005 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13006 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13007 (map_block): Make "block" const.
13008 * symfile.h (struct quick_symbol_functions)
13009 <map_matching_symbols>: Constify block argument to "callback".
13010 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13011 const.
13012 (find_pc_sect_compunit_symtab): Make "b" const.
13013 (find_symbol_at_address): Likewise.
13014 (search_symbols): Likewise.
13015 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13016 (dw2_debug_names_lookup_symbol): Likewise.
13017 (dw2_map_matching_symbols): Update.
13018 * p-valprint.c (pascal_val_print): Remove "block".
13019 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13020 (aux_add_nonlocal_symbols): Make "block" const.
13021 (resolve_subexp): Remove cast.
13022 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13023 const.
13024 (iterate_over_file_blocks): Likewise.
13025 * f-exp.y (%union) <bval>: Remove.
13026 * coffread.c (patch_opaque_types): Make "b" const.
13027 * spu-tdep.c (spu_catch_start): Make "block" const.
13028 * c-valprint.c (print_unpacked_pointer): Remove "block".
13029 * symmisc.c (dump_symtab_1): Make "b" const.
13030 (block_depth): Make "block" const.
13031 * d-exp.y (%union) <bval>: Remove.
13032 * cp-support.h (cp_lookup_rtti_type): Update.
13033 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13034 * psymtab.c (psym_lookup_symbol): Make "block" const.
13035 (maintenance_check_psymtabs): Make "b" const.
13036 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13037 (enumerate_locals, enumerate_args): Update.
13038 * python/py-symtab.c (stpy_global_block): Make "block" const.
13039 (stpy_static_block): Likewise.
13040 * inline-frame.c (block_starting_point_at): Make "new_block"
13041 const.
13042 * block.c (find_block_in_blockvector): Make return type const.
13043 (blockvector_for_pc_sect): Make "b" const.
13044 (find_block_in_blockvector): Make "b" const.
13045
13046 2019-03-23 Tom Tromey <tom@tromey.com>
13047
13048 * varobj.c (varobj_create): Update.
13049 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13050 * printcmd.c (display_command, do_one_display): Don't reset
13051 innermost_block.
13052 * parser-defs.h (enum innermost_block_tracker_type): Move to
13053 expression.h.
13054 (innermost_block): Update comment.
13055 * parse.c (parse_exp_1): Add tracker_types parameter.
13056 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13057 tracker_types parameter. Reset innermost_block.
13058 (parse_exp_in_context): Remove.
13059 (parse_expression_for_completion): Update.
13060 * objfiles.c (~objfile): Don't reset expression_context_block or
13061 innermost_block.
13062 * expression.h (enum innermost_block_tracker_type): Move from
13063 parser-defs.h.
13064 (parse_exp_1): Add tracker_types parameter.
13065 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13066 reset innermost_block.
13067
13068 2019-03-23 Tom Tromey <tom@tromey.com>
13069
13070 * objfiles.h: Include bcache.h.
13071
13072 2019-03-23 Tom Tromey <tom@tromey.com>
13073
13074 * linespec.c (get_current_search_block): Use
13075 scoped_restore_current_language.
13076 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13077
13078 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13079 Jiong Wang <jiong.wang@arm.com>
13080
13081 * aarch64-linux-tdep.c
13082 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13083 section.
13084 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13085
13086 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13087 Jiong Wang <jiong.wang@arm.com>
13088
13089 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13090 instructions.
13091 (aarch64_analyze_prologue_test): Add PACIASP test.
13092 (aarch64_prologue_prev_register): Unmask PC value.
13093
13094 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13095 Jiong Wang <jiong.wang@arm.com>
13096
13097 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13098 (aarch64_dwarf2_prev_register): Unmask PC value.
13099 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13100 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13101 DW_CFA_AARCH64_negate_ra_state.
13102 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13103
13104 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13105 Jiong Wang <jiong.wang@arm.com>
13106
13107 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13108 registers.
13109 (aarch64_pseudo_register_name): Likewise.
13110 (aarch64_pseudo_register_type): Likewise.
13111 (aarch64_pseudo_register_reggroup_p): Likewise.
13112 (aarch64_gdbarch_init): Add pauth registers.
13113 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13114 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13115 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13116 (struct gdbarch_tdep): Add regnum for ra_state.
13117
13118 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13119 Jiong Wang <jiong.wang@arm.com>
13120
13121 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13122
13123 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13124 Jiong Wang <jiong.wang@arm.com>
13125
13126 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13127 function.
13128 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13129 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13130 (aarch64_gdbarch_init): Add puth registers.
13131 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13132 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13133 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13134
13135 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13136 Jiong Wang <jiong.wang@arm.com>
13137
13138 * aarch64-linux-nat.c
13139 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13140 * aarch64-linux-tdep.c
13141 (aarch64_linux_core_read_description): Likewise.
13142 (aarch64_linux_get_hwcap): New function.
13143 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13144 (aarch64_linux_get_hwcap): New declaration.
13145
13146 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13147 Jiong Wang <jiong.wang@arm.com>
13148
13149 * aarch64-linux-nat.c
13150 (aarch64_linux_nat_target::read_description): Add pauth param.
13151 * aarch64-linux-tdep.c
13152 (aarch64_linux_core_read_description): Likewise.
13153 * aarch64-tdep.c (struct target_desc): Add in pauth.
13154 (aarch64_read_description): Add pauth param.
13155 (aarch64_gdbarch_init): Likewise.
13156 * aarch64-tdep.h (aarch64_read_description): Likewise.
13157 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13158 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13159 * features/Makefile: Add new files.
13160 * features/aarch64-pauth.c: New file.
13161 * features/aarch64-pauth.xml: New file.
13162
13163 2019-03-20 Tom Tromey <tromey@adacore.com>
13164
13165 * infrun.c (handle_inferior_event): Rename from
13166 handle_inferior_event_1. Create a scoped_value_mark.
13167 (handle_inferior_event): Remove.
13168
13169 2019-03-19 Tom Tromey <tromey@adacore.com>
13170
13171 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13172 * infrun.h (print_stop_event): Add "displays" parameter.
13173 * infrun.c (print_stop_event): Add "displays" parameter.
13174
13175 2019-03-19 Pedro Alves <palves@redhat.com>
13176
13177 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13178 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13179 to -1. Fix TABs vs spaces.
13180 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13181 * tui/tui-out.h (tui_ui_out) Add intro comments.
13182 <m_line, m_start_of_line>: In-class initialize, and add describing
13183 comment.
13184
13185 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13186
13187 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13188 variable names.
13189 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13190
13191 2019-03-18 Pedro Alves <palves@redhat.com>
13192 Eli Zaretskii <eliz@gnu.org>
13193
13194 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13195 m_line and m_start_of_line.
13196
13197 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13198
13199 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13200 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13201 it returns a newline. This fixes a regression in TU mode, whereby
13202 the next line is output on the same screen line as the user input.
13203
13204 2019-03-18 Tom Tromey <tromey@adacore.com>
13205
13206 * minsyms.c (minimal_symbol_reader::install): Remove call to
13207 obstack_blank.
13208
13209 2019-03-18 Pedro Alves <palves@redhat.com>
13210
13211 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13212 New globals.
13213 (apply_style): New, factored out from ...
13214 (apply_ansi_escape): ... this. Handle reverse video mode.
13215 (tui_set_reverse_mode): New function.
13216 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13217 * tui/tui-winsource.c (tui_show_source_line): Use
13218 tui_set_reverse_mode instead of setting A_STANDOUT.
13219 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13220 New setter methods.
13221
13222 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13223
13224 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13225 Handle tabs.
13226
13227 2019-03-18 Tom Tromey <tromey@adacore.com>
13228
13229 * ada-lang.c (empty_array): Add "high" parameter.
13230 (ada_evaluate_subexp): Update.
13231
13232 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13233
13234 * unittests/string_view-selftests.c: Define
13235 _initialize_string_view_selftests unconditionally.
13236
13237 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13238
13239 PR gdb/24350
13240 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13241
13242 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13243
13244 PR gdb/24351
13245 * windows-nat.c (display_selector): Fix format specifiers.
13246
13247 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13248
13249 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13250 tui_refill_source_window instead of tui_refresh_win, to update the
13251 current execution line. This fixes redisplay of the current line
13252 when stepping through the code with "next" or "step".
13253
13254 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13255
13256 * source-cache.c (source_cache::get_source_lines): Call
13257 find_source_lines to initialize s->nlines. This fixes vertical
13258 scrolling of TUI source window when the DOWN arrow is pressed.
13259
13260 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13261
13262 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13263 linux-thread-db.c (_initialize_thread_db): Likewise.
13264
13265 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13266
13267 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13268 wclrtoeol in tui_show_source_line". This reverts changes made in
13269 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13270
13271 2019-03-15 Tom Tromey <tom@tromey.com>
13272
13273 * symtab.h (struct minimal_symbol): Derive from
13274 general_symbol_info.
13275 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13276 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13277 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13278 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13279 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13280 (MSYMBOL_SEARCH_NAME): Update.
13281 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13282 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13283 * minsyms.c (minimal_symbol_reader::record_full): Update.
13284
13285 2019-03-15 Tom Tromey <tom@tromey.com>
13286
13287 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13288
13289 2019-03-15 Tom Tromey <tom@tromey.com>
13290
13291 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13292 unique_xmalloc_ptr.
13293 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13294 Update.
13295 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13296 (build_minimal_symbol_hash_tables)
13297 (minimal_symbol_reader::install): Update.
13298
13299 2019-03-15 Tom Tromey <tom@tromey.com>
13300
13301 * symtab.c (create_demangled_names_hash): Update.
13302 (symbol_set_names): Update.
13303 * objfiles.h (struct objfile_per_bfd_storage)
13304 <demangled_names_hash>: Now an htab_up.
13305 * objfiles.c (objfile_per_bfd_storage): Simplify.
13306
13307 2019-03-15 Tom Tromey <tom@tromey.com>
13308
13309 * objfiles.h (struct objfile_per_bfd_storage): Declare
13310 destructor.
13311 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13312 New.
13313 (get_objfile_bfd_data): Use new. Don't initialize
13314 language_of_main.
13315 (free_objfile_per_bfd_storage): Remove.
13316 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13317
13318 2019-03-15 Tom Tromey <tom@tromey.com>
13319
13320 * symfile.c (reread_symbols): Update.
13321 * objfiles.c (objfile::objfile): Update.
13322 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13323 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13324 comment.
13325 (minimal_symbol_reader::install): Update.
13326 (terminate_minimal_symbol_table): Remove.
13327 * jit.c (jit_object_close_impl): Update.
13328
13329 2019-03-15 Tom Tromey <tom@tromey.com>
13330
13331 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13332 initializations.
13333
13334 2019-03-15 Tom Tromey <tom@tromey.com>
13335
13336 * objfiles.h (struct objfile_per_bfd_storage)
13337 <demangled_hash_languages>: Now a bitset.
13338 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13339 (lookup_minimal_symbol): Update.
13340
13341 2019-03-15 Tom Tromey <tom@tromey.com>
13342
13343 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13344 Don't return the symbol.
13345 * coffread.c (record_minimal_symbol): Use record_full.
13346
13347 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13348
13349 The MS-Windows port of ncurses fails to switch to a color pair if
13350 one or both of the colors are the implicit default colors. This
13351 change records the default colors when TUI is initialized, and
13352 then specifies them explicitly when a color pair uses the default
13353 colors. This allows color styling in TUI mode on MS-Windows.
13354
13355 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13356 ncurses_norm_attr.
13357 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13358 colors in ncurses_norm_attr.
13359 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13360 "none", replace it with the default color recorded in
13361 ncurses_norm_attr.
13362
13363 2019-03-14 Tom Tromey <tromey@adacore.com>
13364
13365 * source-cache.h (class source_cache) <get_source_lines>: Return
13366 std::string.
13367 * source-cache.c (source_cache::extract_lines): Handle case where
13368 first_pos==npos. Return std::string.
13369 (source_cache::get_source_lines): Update.
13370
13371 2019-03-14 Tom Tromey <tromey@adacore.com>
13372
13373 * NEWS: Add item for "style sources" commands.
13374 * source-cache.c (source_cache::get_source_lines): Check
13375 source_styling.
13376 * cli/cli-style.c (source_styling): New global.
13377 (_initialize_cli_style): Add "style sources" commands.
13378 (show_style_sources): New function.
13379 * cli/cli-style.h (source_styling): Declare.
13380
13381 2019-03-14 Pedro Alves <palves@redhat.com>
13382 Tom Tromey <tromey@adacore.com>
13383
13384 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13385 * tui/tui-winsource.c (tui_refill_source_window): New function,
13386 from...
13387 (tui_horizontal_source_scroll): ... here. Move some logic.
13388 * cli/cli-style.c (set_style_enabled): Notify new observable.
13389 * tui/tui-hooks.c (tui_redisplay_source): New function.
13390 (tui_attach_detach_observers): Attach or detach
13391 tui_redisplay_source.
13392 * observable.h (source_styling_changed): New observable.
13393 * observable.c: Define source_styling_changed observable.
13394
13395 2019-03-13 Tom Tromey <tromey@adacore.com>
13396
13397 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13398 (i386_gnu_nat_target::store_registers): Update.
13399 * target-debug.h (target_debug_print_std_string): New macro.
13400 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13401 * windows-tdep.c (display_one_tib): Update.
13402 * tui/tui-stack.c (tui_make_status_line): Update.
13403 * top.c (print_inferior_quit_action): Update.
13404 * thread.c (thr_try_catch_cmd): Update.
13405 (add_thread_with_info): Update.
13406 (thread_target_id_str): Update.
13407 (thr_try_catch_cmd): Update.
13408 (thread_command): Update.
13409 (thread_find_command): Update.
13410 * record-btrace.c (record_btrace_target::info_record)
13411 (record_btrace_resume_thread, record_btrace_target::resume)
13412 (record_btrace_cancel_resume, record_btrace_step_thread)
13413 (record_btrace_target::wait, record_btrace_target::wait)
13414 (record_btrace_target::wait, record_btrace_target::stop): Update.
13415 * progspace.c (print_program_space): Update.
13416 * process-stratum-target.c
13417 (process_stratum_target::thread_address_space): Update.
13418 * linux-fork.c (linux_fork_mourn_inferior)
13419 (detach_checkpoint_command, info_checkpoints_command)
13420 (linux_fork_context): Update.
13421 (linux_fork_detach): Update.
13422 (class scoped_switch_fork_info): Update.
13423 (delete_checkpoint_command): Update.
13424 * infrun.c (follow_fork_inferior): Update.
13425 (follow_fork_inferior): Update.
13426 (proceed_after_vfork_done): Update.
13427 (handle_vfork_child_exec_or_exit): Update.
13428 (follow_exec): Update.
13429 (displaced_step_prepare_throw): Update.
13430 (displaced_step_restore): Update.
13431 (start_step_over): Update.
13432 (resume_1): Update.
13433 (clear_proceed_status_thread): Update.
13434 (proceed): Update.
13435 (print_target_wait_results): Update.
13436 (do_target_wait): Update.
13437 (context_switch): Update.
13438 (stop_all_threads): Update.
13439 (restart_threads): Update.
13440 (finish_step_over): Update.
13441 (handle_signal_stop): Update.
13442 (switch_back_to_stepped_thread): Update.
13443 (keep_going_pass_signal): Update.
13444 (print_exited_reason): Update.
13445 (normal_stop): Update.
13446 * inferior.c (inferior_pid_to_str): Change return type.
13447 (print_selected_inferior): Update.
13448 (add_inferior): Update.
13449 (detach_inferior): Update.
13450 * dummy-frame.c (fprint_dummy_frames): Update.
13451 * dcache.c (dcache_info_1): Update.
13452 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13453 (btrace_fetch, btrace_clear): Update.
13454 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13455 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13456 type.
13457 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13458 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13459 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13460 * gdbarch.c, gdbarch.h: Rebuild.
13461 * gdbarch.sh (core_pid_to_str): Change return type.
13462 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13463 return type.
13464 (windows_nat_target::pid_to_str): Change return type.
13465 (windows_delete_thread): Update.
13466 (windows_nat_target::attach): Update.
13467 (windows_nat_target::files_info): Update.
13468 * target-delegates.c: Rebuild.
13469 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13470 return type.
13471 (sol_thread_target::pid_to_str): Change return type.
13472 * remote.c (class remote_target) <pid_to_str>: Change return
13473 type.
13474 (remote_target::pid_to_str): Change return type.
13475 (extended_remote_target::attach, remote_target::remote_stop_ns)
13476 (remote_target::remote_notif_remove_queued_reply)
13477 (remote_target::push_stop_reply, remote_target::disable_btrace):
13478 Update.
13479 (extended_remote_target::attach): Update.
13480 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13481 type.
13482 (gdbsim_target::pid_to_str): Change return type.
13483 * ravenscar-thread.c (struct ravenscar_thread_target)
13484 <pid_to_str>: Change return type.
13485 (ravenscar_thread_target::pid_to_str): Change return type.
13486 * procfs.c (class procfs_target) <pid_to_str>: Change return
13487 type.
13488 (procfs_target::pid_to_str): Change return type.
13489 (procfs_target::attach): Update.
13490 (procfs_target::detach): Update.
13491 (procfs_target::fetch_registers): Update.
13492 (procfs_target::store_registers): Update.
13493 (procfs_target::wait): Update.
13494 (procfs_target::files_info): Update.
13495 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13496 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13497 return type.
13498 (nto_procfs_target::pid_to_str): Change return type.
13499 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13500 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13501 return type.
13502 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13503 (exit_lwp): Update.
13504 (attach_proc_task_lwp_callback, get_detach_signal)
13505 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13506 (linux_nat_target::resume, wait_lwp, stop_callback)
13507 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13508 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13509 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13510 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13511 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13512 type.
13513 (inf_ptrace_target::attach): Update.
13514 (inf_ptrace_target::files_info): Update.
13515 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13516 type.
13517 (go32_nat_target::pid_to_str): Change return type.
13518 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13519 (gnu_nat_target::wait): Update.
13520 (gnu_nat_target::wait): Update.
13521 (gnu_nat_target::resume): Update.
13522 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13523 (fbsd_nat_target::wait): Update.
13524 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13525 type.
13526 (darwin_nat_target::attach): Update.
13527 * corelow.c (class core_target) <pid_to_str>: Change return type.
13528 (core_target::pid_to_str): Change return type.
13529 * target.c (normal_pid_to_str): Change return type.
13530 (default_pid_to_str): Likewise.
13531 (target_pid_to_str): Change return type.
13532 (target_translate_tls_address): Update.
13533 (target_announce_detach): Update.
13534 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13535 return type.
13536 (bsd_uthread_target::pid_to_str): Change return type.
13537 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13538 type.
13539 (bsd_kvm_target::pid_to_str): Change return type.
13540 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13541 return type.
13542 (aix_thread_target::pid_to_str): Change return type.
13543 * target.h (struct target_ops) <pid_to_str>: Change return type.
13544 (target_pid_to_str, normal_pid_to_str): Likewise.
13545 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13546 type.
13547 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13548 type.
13549 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13550 return type.
13551 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13552 type.
13553 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13554 type.
13555 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13556 return type.
13557
13558 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13559
13560 * NEWS: Mention that the new default MI version is 3. Mention
13561 changes to the output of commands and events that deal with
13562 multi-location breakpoints.
13563 * breakpoint.c: Include "mi/mi-out.h".
13564 (print_one_breakpoint): Change output syntax if using MI version
13565 >= 3.
13566 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13567 New.
13568 (mi_multi_location_breakpoint_output_fixed): New.
13569 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13570 (mi_cmd_fix_multi_location_breakpoint_output): New.
13571 (mi_multi_location_breakpoint_output_fixed): New.
13572 * mi/mi-cmds.c (mi_cmds): Register command
13573 -fix-multi-location-breakpoint-output.
13574 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13575 interpreter "mi".
13576
13577 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13578
13579 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13580 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13581 instantiate mi_ui_out based on interpreter name.
13582 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13583 * mi/mi-main.c (mi_load_progress): Likewise.
13584
13585 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13586
13587 * NEWS: Combine separate "New targets" sections for 8.3.
13588
13589 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13590
13591 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13592 (ppcfbsd_init_abi): Install gdbarch
13593 "fetch_tls_load_module_address" and "get_thread_local_address"
13594 methods.
13595
13596 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13597
13598 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13599 (riscv_fbsd_init_abi): Install gdbarch
13600 "fetch_tls_load_module_address" and "get_thread_local_address"
13601 methods.
13602
13603 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13604
13605 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13606 (i386fbsd_init_abi): Install gdbarch
13607 "fetch_tls_load_module_address" and "get_thread_local_address"
13608 methods.
13609
13610 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13611
13612 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13613 (amd64fbsd_init_abi): Install gdbarch
13614 "fetch_tls_load_module_address" and "get_thread_local_address"
13615 methods.
13616
13617 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13618
13619 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13620 (struct fbsd_pspace_data): New type.
13621 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13622 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13623 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13624 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13625 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13626
13627 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13628
13629 * gdbtypes.c (lookup_struct_elt): New function.
13630 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13631 * gdbtypes.h (struct struct_elt): New type.
13632 (lookup_struct_elt): New prototype.
13633
13634 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13635
13636 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13637 remove disabled code block.
13638
13639 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13640
13641 * gdbarch.sh (get_thread_local_address): New method.
13642 * gdbarch.h, gdbarch.c: Regenerate.
13643 * target.c (target_translate_tls_address): Use
13644 gdbarch_get_thread_local_address if present instead of
13645 target::get_thread_local_address.
13646
13647 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13648
13649 * target.h (target::get_thread_local_address): Update comment.
13650
13651 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13652
13653 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13654 objfile->separate_debug_objfile_backlink if not NULL.
13655
13656 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13657
13658 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13659 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13660 (amd64bsd_store_inferior_registers): Likewise.
13661 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13662 Enable segment base registers.
13663 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13664 PT_GETFSBASE and PT_GETGSBASE.
13665 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13666 PT_SETGSBASE.
13667 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13668 segment base registers.
13669 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13670
13671 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13672
13673 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13674 Update calls to i386_target_description to add 'segments'
13675 parameter.
13676 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13677 add segment base registers.
13678 * arch/i386.c (i386_create_target_description): Add 'segments'
13679 parameter to enable segment base registers.
13680 * arch/i386.h (i386_create_target_description): Likewise.
13681 * features/i386/32bit-segments.xml: New file.
13682 * features/i386/32bit-segments.c: Generate.
13683 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13684 call to i386_target_description to add 'segments' parameter.
13685 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13686 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13687 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13688 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13689 if feature is present.
13690 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13691 Add 'segments' parameter to call to i386_target_description.
13692 (i386_target_description): Add 'segments' parameter to enable
13693 segment base registers.
13694 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13695 to call to i386_target_description.
13696 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13697 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13698 Define I386_NUM_REGS.
13699 (i386_target_description): Add 'segments' parameter to enable
13700 segment base registers.
13701
13702 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13703
13704 PR/24325
13705 * source-cache.c: #undef open and close, to avoid unresolved
13706 externals during linking.
13707
13708 2019-03-12 Tom Tromey <tromey@adacore.com>
13709
13710 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13711 const. Add initializers.
13712 (_initialize_remote): Don't initialize ptid globals.
13713
13714 2019-03-12 Pedro Alves <palves@redhat.com>
13715
13716 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13717
13718 2019-03-12 Pedro Alves <palves@redhat.com>
13719
13720 * cp-name-parser.y (main): Remove unused 'len' variable.
13721
13722 2019-03-12 Tom Tromey <tromey@adacore.com>
13723
13724 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13725 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13726
13727 2019-03-12 Tom Tromey <tromey@adacore.com>
13728
13729 * linux-nat.c (iterate_over_lwps): Update.
13730 (stop_callback): Remove parameter.
13731 (stop_wait_callback, detach_callback, resume_set_callback)
13732 (select_singlestep_lwp_callback, set_ignore_sigint)
13733 (status_callback, resumed_callback, resume_clear_callback)
13734 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13735 data parameter.
13736 (linux_nat_target::detach, linux_nat_target::resume)
13737 (linux_stop_and_wait_all_lwps, select_event_lwp)
13738 (linux_nat_filter_event, linux_nat_wait_1)
13739 (linux_nat_target::kill, linux_nat_target::stop)
13740 (linux_nat_target::stop): Update.
13741 (linux_nat_resume_callback): Change type.
13742 (resume_stopped_resumed_lwps, count_events_callback)
13743 (select_event_lwp_callback): Likewise.
13744 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13745 * arm-linux-nat.c (struct update_registers_data): Remove.
13746 (update_registers_callback): Change type.
13747 (arm_linux_insert_hw_breakpoint1): Update.
13748 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13749 parameter.
13750 (x86_linux_dr_set_addr): Update.
13751 (x86_linux_dr_set_control): Update.
13752 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13753 (iterate_over_lwps): Use gdb::function_view.
13754 * nat/aarch64-linux-hw-point.c (struct
13755 aarch64_dr_update_callback_param): Remove.
13756 (debug_reg_change_callback): Change type.
13757 (aarch64_notify_debug_reg_change): Update.
13758 * s390-linux-nat.c (s390_refresh_per_info): Update.
13759
13760 2019-03-11 Tom Tromey <tromey@adacore.com>
13761
13762 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13763 redundant assignment to "this_cu".
13764
13765 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13766
13767 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13768
13769 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13770
13771 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13772 from...
13773 (rank_one_type): ... this.
13774
13775 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13776
13777 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13778 from...
13779 (rank_one_type): ... this.
13780
13781 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13782
13783 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13784 from...
13785 (rank_one_type): ... this.
13786
13787 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13788
13789 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13790 from...
13791 (rank_one_type): ... this.
13792
13793 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13794
13795 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13796 from...
13797 (rank_one_type): ... this.
13798
13799 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13800
13801 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13802 from...
13803 (rank_one_type): ... this.
13804
13805 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13806
13807 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13808 from...
13809 (rank_one_type): ... this.
13810
13811 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13812
13813 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13814 from...
13815 (rank_one_type): ... this.
13816
13817 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13818
13819 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13820 from...
13821 (rank_one_type): ... this.
13822
13823 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13824
13825 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13826 from...
13827 (rank_one_type): ... this.
13828
13829 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13830
13831 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13832 from...
13833 (rank_one_type): ... this.
13834
13835 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13836
13837 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13838 from...
13839 (rank_one_type): ... this.
13840
13841 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13842
13843 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13844 inferior-events' shows the example events.
13845
13846 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13847
13848 Support styling on native MS-Windows console
13849
13850 PR/24315
13851 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13852 on MS-Windows if $TERM is not defined.
13853
13854 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13855
13856 * posix-hdep.c (gdb_console_fputs):
13857 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13858 functions.
13859 * ui-file.h (gdb_console_fputs): Add prototype.
13860
13861 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13862 back to fputs only if the former returns zero.
13863
13864 2019-03-07 Tom Tromey <tom@tromey.com>
13865
13866 * symmisc.c (print_symbol_bcache_statistics): Update.
13867 (print_objfile_statistics): Update.
13868 * symfile.c (allocate_symtab): Update.
13869 * stabsread.c: Don't include bcache.h.
13870 * psymtab.h (struct psymbol_bcache): Don't declare.
13871 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13872 (psymbol_bcache_init, psymbol_bcache_free)
13873 (psymbol_bcache_get_bcache): Don't declare.
13874 * psymtab.c (struct psymbol_bcache): Remove.
13875 (psymtab_storage::psymtab_storage): Update.
13876 (psymtab_storage::~psymtab_storage): Update.
13877 (psymbol_bcache_init, psymbol_bcache_free)
13878 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13879 (add_psymbol_to_bcache): Update.
13880 (allocate_psymtab): Update.
13881 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13882 macro_cache>: No longer pointers.
13883 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13884 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13885 * macrotab.c (macro_bcache): Update.
13886 * macroexp.c: Don't include bcache.h.
13887 * gdbtypes.c (check_types_worklist): Update.
13888 (types_deeply_equal): Remove TRY/CATCH. Update.
13889 * elfread.c (elf_symtab_read): Update.
13890 * dwarf2read.c: Don't include bcache.h.
13891 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13892 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13893 (print_bcache_statistics, bcache_memory_used): Don't declare.
13894 (struct bcache): Move from bcache.c. Add constructor, destructor,
13895 methods. Rename all data members.
13896 * bcache.c (struct bcache): Move to bcache.h.
13897 (bcache::expand_hash_table): Rename from expand_hash_table.
13898 (bcache): Remove.
13899 (bcache::insert): Rename from bcache_full.
13900 (bcache::compare): Rename from bcache_compare.
13901 (bcache_xmalloc): Remove.
13902 (bcache::~bcache): Rename from bcache_xfree.
13903 (bcache::print_statistics): Rename from print_bcache_statistics.
13904 (bcache::memory_used): Rename from bcache_memory_used.
13905
13906 2019-03-07 Pedro Alves <palves@redhat.com>
13907
13908 * infrun.c (normal_stop): Also check for
13909 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13910
13911 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13912
13913 * f-lang.c (value_from_host_double): Moved to...
13914 * value.c (value_from_host_double): ...here.
13915 * value.h (value_from_host_double): Declare.
13916 * guile/scm-math.c (vlscm_convert_typed_number): Use
13917 value_from_host_double.
13918 (vlscm_convert_number): Likewise.
13919 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13920 * python/py-value.c (convert_value_from_python): Likewise.
13921
13922 2019-03-06 Tom Tromey <tom@tromey.com>
13923
13924 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13925
13926 2019-03-06 Tom Tromey <tom@tromey.com>
13927
13928 * utils.h (free_current_contents): Don't declare.
13929 * utils.c (free_current_contents): Remove.
13930
13931 2019-03-06 Tom Tromey <tom@tromey.com>
13932
13933 * top.c (quit_force): Update.
13934 * main.c (captured_command_loop): Update.
13935 * common/new-op.c (operator new): Update.
13936 * common/common-exceptions.c (struct catcher)
13937 <save_cleanup_chain>: Remove member.
13938 (exceptions_state_mc_init): Update.
13939 (exception_try_scope_entry): Return nullptr.
13940 (exception_try_scope_exit, exception_rethrow)
13941 (throw_exception_sjlj, throw_exception_cxx): Update.
13942 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13943 (all_cleanups, do_cleanups, discard_cleanups)
13944 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13945 (restore_cleanups, restore_final_cleanups): Don't declare.
13946 (do_final_cleanups): Remove parameter.
13947 * common/cleanups.c (cleanup_chain, make_cleanup)
13948 (make_cleanup_dtor, all_cleanups, do_cleanups)
13949 (discard_my_cleanups, discard_cleanups)
13950 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13951 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13952 (null_cleanup): Remove.
13953 (do_final_cleanups): Remove parameter.
13954
13955 2019-03-06 Tom Tromey <tom@tromey.com>
13956
13957 * remote.c (remote_target::remote_parse_stop_reply): Use
13958 unique_xmalloc_ptr.
13959
13960 2019-03-06 Tom Tromey <tom@tromey.com>
13961
13962 * stabsread.c (struct stabs_field_info): Rename from field_info.
13963 <list, fnlist>: Add initializers.
13964 <obstack>: New member.
13965 (read_member_functions, read_struct_fields, read_baseclasses):
13966 Allocate on obstack. Don't use cleanups.
13967 (read_one_struct_field, read_member_functions, read_struct_fields)
13968 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13969 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13970 (read_struct_type): Update.
13971
13972 2019-03-06 Tom Tromey <tom@tromey.com>
13973
13974 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13975 * common/filestuff.h (make_cleanup_close): Don't declare.
13976 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13977 Remove.
13978
13979 2019-03-06 Tom Tromey <tom@tromey.com>
13980
13981 * solib-aix.c: Use make_scope_exit.
13982
13983 2019-03-06 Tom Tromey <tom@tromey.com>
13984
13985 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13986 Use make_scope_exit.
13987
13988 2019-03-06 Tom Tromey <tom@tromey.com>
13989
13990 * solib-svr4.c (disable_probes_interface): Remove parameter.
13991 (svr4_handle_solib_event): Use make_scope_exit.
13992
13993 2019-03-06 Tom Tromey <tom@tromey.com>
13994
13995 * remote.c (struct stop_reply_deleter): Remove.
13996 (stop_reply_up): Update.
13997 (struct stop_reply): Derive from notif_event. Don't typedef.
13998 <regcache>: Now a std::vector.
13999 (stop_reply_xfree): Remove.
14000 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14001 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14002 (remote_target::discard_pending_stop_replies): Use delete.
14003 (remote_target::remote_parse_stop_reply): Update.
14004 (remote_target::process_stop_reply): Update.
14005 * remote-notif.h (struct notif_event): Add virtual destructor.
14006 Remove "dtr" member.
14007 (struct notif_client) <alloc_event>: Return a unique_ptr.
14008 (notif_event_xfree): Don't declare.
14009 (notif_event_up): New typedef.
14010 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14011 (notif_event_xfree, do_notif_event_xfree): Remove.
14012 (remote_notif_state_xfree): Update.
14013
14014 2019-03-06 Tom Tromey <tom@tromey.com>
14015
14016 * infrun.c (displaced_step_clear_cleanup): Now a
14017 forward_scope_exit type.
14018 (displaced_step_prepare_throw): Update.
14019 (displaced_step_fixup): Update.
14020
14021 2019-03-06 Tom Tromey <tom@tromey.com>
14022
14023 * inferior.h (class inferior): Update comment.
14024 * gdbthread.h (class thread_info): Update comment.
14025
14026 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14027 Tom Tromey <tom@tromey.com>
14028
14029 * stabsread.h (struct stab_section_list): Remove.
14030 (coffstab_build_psymtabs): Update.
14031 * dbxread.c (symbuf_sections): Now a std::vector.
14032 (sect_idx): New global.
14033 (fill_symbuf): Update.
14034 (coffstab_build_psymtabs): Change type of stabsects parameter.
14035 Update.
14036 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14037 std::vector.
14038 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14039 (coff_locate_sections): Update.
14040 (coff_symfile_read): Remove cleanups. Update.
14041 (init_stringtab): Add storage parameter.
14042 (free_stringtab, free_stringtab_cleanup): Remove.
14043 (init_lineno): Add storage parameter.
14044 (free_linetab, free_linetab_cleanup): Remove.
14045
14046 2019-03-06 Pedro Alves <palves@redhat.com>
14047
14048 * linux-fork.c (fork_info::clobber_regs): Delete.
14049 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14050 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14051 comment. Adjust.
14052 (scoped_switch_fork_info::scoped_switch_fork_info)
14053 (checkpoint_command, linux_fork_context): Adjust
14054 fork_save_infrun_state calls.
14055
14056 2019-03-06 Pedro Alves <palves@redhat.com>
14057
14058 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14059 (inf_has_multiple_threads): Return 'bool' and rewrite using
14060 inferior_info::threads().
14061
14062 2019-03-06 Pedro Alves <palves@redhat.com>
14063
14064 * linux-fork.c: Include <list>.
14065 (fork_list): Now a std::list instance.
14066 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14067 (forks_exist_p, find_last_fork): Adjust.
14068 (new_fork): Delete.
14069 (one_fork_p): New.
14070 (add_fork): Adjust.
14071 (free_fork): Delete, folded into fork_info::~fork_info().
14072 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14073 Adjust.
14074 (init_fork_list): Delete.
14075 (linux_fork_killall, linux_fork_mourn_inferior)
14076 (linux_fork_detach, info_checkpoints_command): Adjust.
14077 (_initialize_linux_fork): No longer call init_fork_list.
14078
14079 2019-03-06 Pedro Alves <palves@redhat.com>
14080
14081 * linux-fork.c (new_fork): New, split out of ...
14082 (add_fork): ... this. Return void. Move "first fork" special
14083 case from here, to ...
14084 (checkpoint_command): ... here.
14085 * linux-linux.h (add_fork): Return void.
14086
14087 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14088
14089 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14090
14091 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14092 Chris January <chris.january@arm.com>
14093 David Lecomber <david.lecomber@arm.com>
14094
14095 * f-exp.y: New token, UNOP_INTRINSIC.
14096 (exp): New pattern using UNOP_INTRINSIC token.
14097 (f77_keywords): Add 'abs' keyword.
14098 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14099 (value_from_host_double): New function.
14100 (evaluate_subexp_f): Support UNOP_ABS.
14101
14102 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14103
14104 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14105 types.
14106
14107 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14108
14109 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14110 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14111 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14112
14113 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14114
14115 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14116
14117 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14118 Chris January <chris.january@arm.com>
14119
14120 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14121 * f-exp.y: Define 'KIND' token.
14122 (exp): New pattern for KIND expressions.
14123 (ptype): Handle types with a kind extension.
14124 (direct_abs_decl): Extend to spot kind extensions.
14125 (f77_keywords): Add 'kind' to the list.
14126 (push_kind_type): New function.
14127 (convert_to_kind_type): New function.
14128 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14129 * parse.c (operator_length_standard): Likewise.
14130 * parser-defs.h (enum type_pieces): Add tp_kind.
14131 * std-operator.def: Add UNOP_KIND.
14132
14133 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14134
14135 * f-exp.y (f_parse): Set yydebug.
14136
14137 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14138
14139 * f-lang.c (evaluate_subexp_f): New function.
14140 (exp_descriptor_f): New global.
14141 (f_language_defn): Use exp_descriptor_f instead of
14142 exp_descriptor_standard.
14143
14144 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14145
14146 * f-exp.y (struct token): Add comments.
14147 (dot_ops): Remove uppercase versions and the end marker.
14148 (f77_keywords): Likewise.
14149 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14150 entries in the dot_ops array are case insensitive, and use
14151 strncasecmp to compare strings. Also some whitespace cleanup in
14152 this area. Similar for the f77_keywords array, except entries in
14153 this list might be case sensitive.
14154
14155 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14156
14157 * f-exp.y (struct f77_boolean_val): Add comments.
14158 (boolean_values): Remove uppercase versions, and end marker.
14159 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14160 and use strncasecmp to achieve case insensitivity. Additionally,
14161 perform whitespace cleanup around this code.
14162
14163 2019-03-06 Tom Tromey <tromey@adacore.com>
14164
14165 * remote-sim.c (gdbsim_target_open): Use result of
14166 gdb_argv::release.
14167
14168 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14169 Dirk Schubert <dirk.schubert@arm.com>
14170 Chris January <chris.january@arm.com>
14171
14172 * eval.c (evaluate_subexp_standard): Call Fortran argument
14173 wrapping logic.
14174 * f-lang.c (struct value): A value which can be passed into a
14175 Fortran function call.
14176 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14177 where appropriate.
14178 (struct type): Value ready for a Fortran function call.
14179 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14180 is needed.
14181 * f-lang.h (fortran_argument_convert): Declaration.
14182 (fortran_preserve_arg_pointer): Declaration.
14183 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14184
14185 2019-03-05 Tom Tromey <tromey@adacore.com>
14186
14187 * python/py-prettyprint.c (print_string_repr): Remove #if.
14188 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14189
14190 2019-03-05 Tom Tromey <tromey@adacore.com>
14191
14192 * target.c (the_dummy_target): Move later. Change type to
14193 "dummy_target".
14194 (initialize_targets): Don't initialize the_dummy_target.
14195
14196 2019-03-05 Tom Tromey <tromey@adacore.com>
14197
14198 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14199 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14200
14201 2019-03-05 Tom Tromey <tromey@adacore.com>
14202
14203 * windows-nat.c (windows_nat_target::attach)
14204 (windows_nat_target::detach): Don't call gdb_flush.
14205 * valprint.c (generic_val_print, val_print, val_print_string):
14206 Don't call gdb_flush.
14207 * utils.c (defaulted_query): Don't call gdb_flush.
14208 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14209 * target.c (target_announce_detach): Don't call gdb_flush.
14210 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14211 * remote.c (extended_remote_target::attach): Don't call
14212 gdb_flush.
14213 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14214 * printcmd.c (do_examine): Don't call gdb_flush.
14215 (info_display_command): Don't call gdb_flush.
14216 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14217 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14218 * memattr.c (info_mem_command): Don't call gdb_flush.
14219 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14220 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14221 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14222 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14223 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14224 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14225 (gnu_nat_target::detach): Don't call gdb_flush.
14226 * f-valprint.c (f_val_print): Don't call gdb_flush.
14227 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14228 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14229 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14230 gdb_flush.
14231 * c-valprint.c (c_val_print): Don't call gdb_flush.
14232 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14233
14234 2019-03-05 Tom Tromey <tromey@adacore.com>
14235
14236 * varobj.c (update_dynamic_varobj_children): Update.
14237 (install_default_visualizer): Use reset, not release.
14238 * value.c (set_internalvar): Update.
14239 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14240 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14241 ATTRIBUTE_UNUSED_RESULT.
14242
14243 2019-03-05 Tom Tromey <tromey@adacore.com>
14244
14245 * remote.c (class scoped_remote_fd) <release>: Add
14246 ATTRIBUTE_UNUSED_RESULT.
14247
14248 2019-03-05 Tom Tromey <tromey@adacore.com>
14249
14250 * macroexp.c (struct macro_buffer) <release>: Add
14251 ATTRIBUTE_UNUSED_RESULT.
14252
14253 2019-03-05 Tom Tromey <tromey@adacore.com>
14254
14255 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14256 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14257 ATTRIBUTE_UNUSED_RESULT.
14258
14259 2019-03-05 Tom Tromey <tromey@adacore.com>
14260
14261 * common/scoped_fd.h (class scoped_fd) <release>: Add
14262 ATTRIBUTE_UNUSED_RESULT.
14263
14264 2019-03-05 Tom Tromey <tromey@adacore.com>
14265
14266 * parser-defs.h (struct parser_state) <release>: Add
14267 ATTRIBUTE_UNUSED_RESULT.
14268
14269 2019-03-05 Tom Tromey <tromey@adacore.com>
14270
14271 * utils.h (class gdb_argv) <release>: Add
14272 ATTRIBUTE_UNUSED_RESULT.
14273 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14274
14275 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14276
14277 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14278 for-loop range, to avoid compiler warnings.
14279
14280 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14281 avoid compiler warnings about unused variables.
14282
14283 * NEWS: Mention end of support for native debugging on MS-Windows
14284 before XP.
14285
14286 PR gdb/24292
14287 * common/netstuff.c:
14288 * gdbserver/gdbreplay.c
14289 * gdbserver/remote-utils.c:
14290 * ser-tcp.c:
14291 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14292 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14293 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14294 'getaddrinfo' and 'freeaddrinfo' were not available before
14295 Windows XP, and mingw.org's MinGW headers by default define
14296 _WIN32_WINNT to 0x500.
14297
14298 2019-03-01 Gary Benson <gbenson@redhat.com>
14299
14300 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14301
14302 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14303 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14304
14305 PR gdb/8527
14306 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14307 set_sigint_trap, clear_sigint_trap.
14308
14309 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14310
14311 * target.c (target_detach): Clear the regcache and the
14312 frame cache.
14313
14314 2019-02-27 Pedro Alves <palves@redhat.com>
14315
14316 * utils.c (set_screen_size): When we cap the height/width sizes,
14317 tweak the corresponding command variable to show "unlimited":
14318
14319 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14320 Pedro Alves <palves@redhat.com>
14321
14322 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14323 before calling rl_set_screen_size.
14324
14325 2019-02-27 Tom Tromey <tromey@adacore.com>
14326
14327 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14328 define.
14329 * python/py-value.c: Remove Python 2.4 workaround.
14330 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14331 workaround.
14332 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14333 Python 2.4 workaround.
14334 * python/python-internal.h: Remove Python 2.4 comment.
14335 (Py_ssize_t): Don't define.
14336 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14337 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14338 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14339 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14340 * python/python.c (do_start_initialization): Remove Python 2.4
14341 workaround.
14342 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14343 (print_children): Remove Python 2.4 workaround.
14344 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14345 workaround.
14346 (CHARBUFFERPROC_NAME): Remove.
14347 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14348 Python 2.4 workaround.
14349
14350 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14351
14352 * NEWS: Note minimum Python version.
14353
14354 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14355
14356 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14357 code from these functions. Remove corresponding ifdefs. Use
14358 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14359 Remove gotos and target of gotos.
14360 (infpy_search_memory): Likewise.
14361
14362 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14363
14364 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14365 (hppa_gdbarch_init): Don't register deleted functions with
14366 gdbarch.
14367
14368 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14369
14370 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14371 (h8300_unwind_sp): Delete.
14372 (h8300_dummy_id): Delete.
14373 (h8300_gdbarch_init): Don't register deleted functions with
14374 gdbarch.
14375
14376 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14377
14378 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14379 (ft32_unwind_pc): Delete.
14380 (ft32_unwind_sp): Delete.
14381 (ft32_gdbarch_init): Don't register deleted functions with
14382 gdbarch.
14383
14384 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14385
14386 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14387 (frv_unwind_pc): Delete.
14388 (frv_unwind_sp): Delete.
14389 (frv_gdbarch_init): Don't register deleted functions with
14390 gdbarch.
14391
14392 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14393
14394 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14395 (riscv_unwind_pc): Delete.
14396 (riscv_unwind_sp): Delete.
14397 (riscv_gdbarch_init): Don't register deleted functions with
14398 gdbarch.
14399
14400 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14401
14402 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14403 (csky_unwind_pc): Delete.
14404 (csky_unwind_sp): Delete.
14405 (csky_gdbarch_init): Don't register deleted functions with
14406 gdbarch.
14407
14408 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14409
14410 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14411 (cris_unwind_pc): Delete.
14412 (cris_unwind_sp): Delete.
14413 (cris_gdbarch_init): Don't register deleted functions with
14414 gdbarch.
14415
14416 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14417
14418 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14419 (bfin_unwind_pc): Delete.
14420 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14421
14422 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14423
14424 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14425 (arm_unwind_pc): Delete.
14426 (arm_unwind_sp): Delete.
14427 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14428
14429 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14430
14431 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14432 (arc_unwind_pc): Delete.
14433 (arc_unwind_sp): Delete.
14434 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14435
14436 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14437
14438 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14439 (alpha_unwind_pc): Delete.
14440 (alpha_gdbarch_init): Don't register deleted functions with
14441 gdbarch.
14442
14443 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14444
14445 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14446 (aarch64_unwind_pc): Delete.
14447 (aarch64_unwind_sp): Delete.
14448 (aarch64_gdbarch_init): Don't register deleted functions with
14449 gdbarch.
14450
14451 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14452
14453 * gdbtypes.c (type_align): Don't consider static members when
14454 computing structure alignment.
14455
14456 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14457
14458 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14459 return 0 for other types.
14460 * arch-utils.c (default_type_align): Always return 0.
14461 * gdbarch.h: Regenerate.
14462 * gdbarch.sh (type_align): Extend comment.
14463 * gdbtypes.c (type_align): Add additional comments, always call
14464 gdbarch_type_align before applying the default rules.
14465 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14466 generic code will then apply a suitable default.
14467 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14468 types, return 0 for other types.
14469
14470 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14471
14472 * NEWS: Create a new section for the next release branch.
14473 Rename the section of the current branch, now that it has
14474 been cut.
14475
14476 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14477
14478 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14479 * version.in: Bump version to 8.3.50.DATE-git.
14480
14481 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14482
14483 * aix-thread.c (ptid_cmp): Remove unused variable.
14484 (get_signaled_thread): Likewise.
14485 (store_regs_user_thread): Likewise.
14486 (store_regs_kernel_thread): Likewise.
14487 (fetch_regs_kernel_thread): Remove shadowed variable.
14488
14489 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14490
14491 * features/riscv/32bit-cpu.xml: Add register numbers.
14492 * features/riscv/32bit-fpu.c: Regenerate.
14493 * features/riscv/32bit-fpu.xml: Add register numbers.
14494 * features/riscv/64bit-cpu.xml: Add register numbers.
14495 * features/riscv/64bit-fpu.c: Regenerate.
14496 * features/riscv/64bit-fpu.xml: Add register numbers.
14497
14498 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14499
14500 * NEWS: Mention two argument form of gdb.Value constructor.
14501 * python/py-value.c (convert_buffer_and_type_to_value): New
14502 function.
14503 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14504 Add support for handling an optional second argument. Call
14505 convert_buffer_and_type_to_value as appropriate.
14506 * python/python-internal.h (Py_buffer_deleter): New struct.
14507 (Py_buffer_up): New typedef.
14508
14509 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14510
14511 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14512 instead of releasing ownership.
14513
14514 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14515
14516 * dwarf2read.c (open_and_init_dwp_file): Call
14517 elf_numsections instead of bfd_count_sections to initialize
14518 dwp_file->num_sections.
14519
14520 2019-02-25 Tom Tromey <tromey@adacore.com>
14521
14522 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14523
14524 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14525
14526 * gcore.in: Add '--readnever' option when invoking GDB.
14527
14528 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14529
14530 * MAINTAINERS: Update my email address.
14531
14532 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14533
14534 * build-id.c (build_id_to_debug_bfd_1): New function.
14535 (build_id_to_debug_bfd): Look for separate debug file in
14536 sysroot.
14537
14538 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14539
14540 * gdbarch.sh: Update the copyright year range that is placed into
14541 generated files.
14542
14543 2019-02-22 Keith Seitz <keiths@redhat.com>
14544
14545 PR symtab/23853
14546 * linespec.c (create_sals_line_offset): Search for the default
14547 symtab's filename instead of its fullname.
14548
14549 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14550
14551 * NEWS: Update style defaults.
14552
14553 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14554
14555 * main.c (captured_main_1): Disable styling in batch mode.
14556
14557 2019-02-20 Tom Tromey <tom@tromey.com>
14558
14559 * symtab.c (symtab_symbol_info): Fix typos.
14560
14561 2019-02-20 Tom Tromey <tromey@adacore.com>
14562
14563 * findcmd.c (_initialize_mem_search): Use upper case for
14564 metasyntactic variables.
14565
14566 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14567
14568 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14569 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14570
14571 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14572
14573 * top.h (source_file_name): Change to std::string.
14574 * top.c (source_file_name): Likewise.
14575 (command_line_input): Adjust.
14576 * cli/cli-script.c (script_from_file): Adjust.
14577
14578 2019-02-19 Tom Tromey <tromey@adacore.com>
14579
14580 * ravenscar-thread.c
14581 (ravenscar_thread_target::update_thread_list): Don't call
14582 ada_build_task_list.
14583 * ada-lang.h (ada_build_task_list): Don't declare.
14584 * ada-tasks.c (struct ada_tasks_inferior_data)
14585 <task_list_valid_p>: Now bool.
14586 (read_known_tasks, ada_task_list_changed)
14587 (ada_tasks_invalidate_inferior_data): Update.
14588 (read_known_tasks_array): Return bool.
14589 (read_known_tasks_list): Likewise.
14590 (read_known_tasks): Return void.
14591 (ada_build_task_list): Now static.
14592
14593 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14594
14595 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14596 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14597
14598 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14599
14600 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14601 variant for ada_tasks_pspace_data_handle and
14602 ada_tasks_inferior_data_handle.
14603 (ada_tasks_pspace_data_cleanup): New function.
14604 (ada_tasks_inferior_data_cleanup): New function.
14605
14606 2019-02-17 Tom Tromey <tom@tromey.com>
14607
14608 * macrotab.h (macro_source_fullname): Return a std::string.
14609 * macrotab.c (macro_include, check_for_redefinition)
14610 (macro_undef, macro_lookup_definition, foreach_macro)
14611 (foreach_macro_in_scope): Update.
14612 (macro_source_fullname): Return a std::string.
14613 * macrocmd.c (show_pp_source_pos): Update.
14614
14615 2019-02-17 Tom Tromey <tom@tromey.com>
14616
14617 * macrocmd.c (show_pp_source_pos): Style the file names.
14618
14619 2019-02-17 Tom Tromey <tom@tromey.com>
14620
14621 PR tui/24197:
14622 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14623
14624 2019-02-17 Tom Tromey <tom@tromey.com>
14625
14626 * ada-lang.c (user_select_syms): Use filtered printing.
14627 * utils.c (wrap_style): New global.
14628 (desired_style): Remove.
14629 (emit_style_escape): Add stream parameter.
14630 (set_output_style, reset_terminal_style, prompt_for_continue):
14631 Update.
14632 (flush_wrap_buffer): Only flush gdb_stdout.
14633 (wrap_here): Set wrap_style.
14634 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14635 treat escape sequences as a character. Change when wrap buffer is
14636 flushed.
14637 (fputs_styled): Do not set the output style when the default is
14638 requested.
14639 * ui-style.h (struct ui_file_style) <is_default>: New method.
14640 * source.c (print_source_lines_base): Emit escape sequences in one
14641 piece.
14642
14643 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14644
14645 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14646 integers and enumeration types.
14647
14648 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14649
14650 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14651 instead of lookup_symbol_in_language
14652 (do_exact_match): New function.
14653 (ada_get_symbol_name_matcher): Return do_exact_match when
14654 doing a verbatim match.
14655
14656 2019-02-15 Tom Tromey <tromey@adacore.com>
14657
14658 * ravenscar-thread.c (ravenscar_thread_target::resume)
14659 (ravenscar_thread_target::wait): Special case wildcard requests.
14660
14661 2019-02-15 Tom Tromey <tromey@adacore.com>
14662
14663 * ravenscar-thread.c (base_ptid): Remove.
14664 (struct ravenscar_thread_target) <close>: New method.
14665 <m_base_ptid>: New member.
14666 <update_inferior_ptid, active_task, task_is_currently_active,
14667 runtime_initialized>: Declare methods.
14668 <ravenscar_thread_target>: Add constructor.
14669 (ravenscar_thread_target::task_is_currently_active)
14670 (ravenscar_thread_target::update_inferior_ptid)
14671 (ravenscar_runtime_initialized): Rename. Now methods.
14672 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14673 (ravenscar_thread_target::update_thread_list): Update.
14674 (ravenscar_thread_target::active_task): Now method.
14675 (ravenscar_thread_target::store_registers)
14676 (ravenscar_thread_target::prepare_to_store)
14677 (ravenscar_thread_target::prepare_to_store)
14678 (ravenscar_thread_target::mourn_inferior): Update.
14679 (ravenscar_inferior_created): Use "new" to create target.
14680 (ravenscar_thread_target::get_ada_task_ptid): Update.
14681 (_initialize_ravenscar): Don't initialize base_ptid.
14682 (ravenscar_ops): Remove global.
14683
14684 2019-02-15 Tom Tromey <tromey@adacore.com>
14685
14686 * target.h (push_target): Declare new overload.
14687 * target.c (push_target): New overload, taking an rvalue reference.
14688 * remote.c (remote_target::open_1): Use push_target overload.
14689 * corelow.c (core_target_open): Use push_target overload.
14690
14691 2019-02-15 Tom Tromey <tromey@adacore.com>
14692
14693 * ravenscar-thread.c (is_ravenscar_task)
14694 (ravenscar_task_is_currently_active): Return bool.
14695 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14696 (_initialize_ravenscar): Remove "(void)".
14697 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14698 Return bool.
14699
14700 2019-02-15 Tom Tromey <tromey@adacore.com>
14701
14702 * ravenscar-thread.c (ravenscar_runtime_initializer)
14703 (has_ravenscar_runtime, get_running_thread_id)
14704 (ravenscar_thread_target::resume): Fix indentation.
14705
14706 2019-02-15 Tom Tromey <tromey@adacore.com>
14707
14708 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14709 from ravenscar_arch_ops.
14710 (sparc_ravenscar_ops::fetch_registers)
14711 (sparc_ravenscar_ops::store_registers): Now methods.
14712 (sparc_ravenscar_prepare_to_store): Remove.
14713 (sparc_ravenscar_ops): Redefine.
14714 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14715 methods and destructor. Remove members.
14716 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14717 (ravenscar_thread_target::store_registers)
14718 (ravenscar_thread_target::prepare_to_store): Update.
14719 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14720 Remove.
14721 (struct ppc_ravenscar_powerpc_ops): Derive from
14722 ravenscar_arch_ops.
14723 (ppc_ravenscar_powerpc_ops::fetch_registers)
14724 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14725 (ppc_ravenscar_powerpc_ops): Redefine.
14726 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14727 (ppc_ravenscar_e500_ops::fetch_registers)
14728 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14729 (ppc_ravenscar_e500_ops): Redefine.
14730 * aarch64-ravenscar-thread.c
14731 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14732 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14733 (aarch64_ravenscar_fetch_registers)
14734 (aarch64_ravenscar_store_registers): Now methods.
14735 (aarch64_ravenscar_ops): Redefine.
14736
14737 2019-02-15 Tom Tromey <tromey@adacore.com>
14738
14739 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14740 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14741 (ravenscar_thread_target::stopped_by_watchpoint)
14742 (ravenscar_thread_target::stopped_data_address)
14743 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14744
14745 2019-02-15 Tom Tromey <tromey@adacore.com>
14746
14747 * ravenscar-thread.c: Fix some typos.
14748
14749 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14750 Tom Tromey <tromey@adacore.com>
14751
14752 * ada-lang.c (ada_exception_sal): Change addr_string to a
14753 std::string.
14754 (create_ada_exception_catchpoint): Update.
14755
14756 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14757 Tom Tromey <tromey@adacore.com>
14758
14759 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14760 (bp_location_ops): Remove.
14761 (base_breakpoint_allocate_location): Update.
14762 (free_bp_location): Update.
14763 * ada-lang.c (class ada_catchpoint_location)
14764 <ada_catchpoint_location>: Remove ops parameter.
14765 (ada_catchpoint_location_dtor): Remove.
14766 (ada_catchpoint_location_ops): Remove.
14767 (allocate_location_exception): Update.
14768 * breakpoint.h (struct bp_location_ops): Remove.
14769 (class bp_location) <bp_location>: Remove bp_location_ops
14770 parameter.
14771 <~bp_location>: Add destructor.
14772 <ops>: Remove.
14773
14774 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14775 Pedro Alves <palves@redhat.com>
14776
14777 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14778 'PATH_MAX'.
14779
14780 2019-02-14 David Michael <fedora.dm0@gmail.com>
14781 Samuel Thibault <samuel.thibault@gnu.org>
14782 Thomas Schwinge <thomas@codesourcery.com>
14783
14784 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14785 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14786
14787 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14788
14789 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14790 (check_empty): Use "const char *".
14791
14792 * gnu-nat.c (gnu_nat_target::detach): Instead of
14793 'detach_inferior (pid)' call
14794 'detach_inferior (find_inferior_pid (pid))'.
14795
14796 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14797 'nat/fork-inferior.o'.
14798 * gnu-nat.c: #include "nat/fork-inferior.h".
14799
14800 * gnu-nat.c (gnu_nat_target::detach): Instead of
14801 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14802 * gnu-nat.h: #include "inf-child.h".
14803 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14804 'i386_gnu_nat_target::fetch_registers'.
14805 (gnu_store_registers): Rename/move to
14806 'i386_gnu_nat_target::store_registers'.
14807
14808 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14809 * gnu-nat.h (mach_thread_info): New function.
14810 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14811
14812 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14813
14814 2019-02-14 Frederic Konrad <konrad@adacore.com>
14815
14816 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14817
14818 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14819
14820 * windows-nat.c (windows_add_thread): Add new parameter
14821 "main_thread_p" with default value set to false. Update
14822 function documentation as well as all callers.
14823 (windows_delete_thread): Likewise.
14824 (fake_create_process): Update call to windows_add_thread.
14825 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14826 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14827 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14828 call to windows_delete_thread.
14829
14830 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14831
14832 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14833
14834 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14835
14836 * symfile.c (find_separate_debug_file): Use canonical path of
14837 sysroot with child_path instead of gdb_sysroot if it is valid.
14838
14839 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14840
14841 * symfile.c (find_separate_debug_file): Use child_path to
14842 determine if an object file is under a sysroot.
14843
14844 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14845
14846 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14847 unittests/child-path-selftests.c.
14848 * common/pathstuff.c (child_path): New function.
14849 * common/pathstuff.h (child_path): New prototype.
14850 * unittests/child-path-selftests.c: New file.
14851
14852 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14853
14854 * symfile.c (find_separate_debug_file): Look for separate debug
14855 files in debug directories under the sysroot.
14856
14857 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14858
14859 * symtab.h (struct minimal_symbol data_p): New const method.
14860 (struct minimal_symbol text_p): Likewise.
14861 * symtab.c (output_source_filename): Use file name style
14862 to print file name.
14863 (print_symbol_info): Likewise.
14864 (print_msymbol_info): Use address style to print addresses.
14865 Use function name style to print executable text symbols.
14866 (expand_symtab_containing_pc): Use data_p.
14867 (find_pc_sect_compunit_symtab): Likewise.
14868
14869 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14870
14871 * breakpoint.c (describe_other_breakpoints): Use address style
14872 to print addresses.
14873 (say_where): Likewise.
14874
14875 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14876
14877 * ada-typeprint.c (print_func_type): Print function name
14878 style to print function name.
14879 * c-typeprint.c (c_print_type_1): Likewise.
14880
14881 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14882
14883 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14884 for execve.
14885
14886 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14887
14888 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14889 type_stack.
14890
14891 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14892
14893 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14894 TYPE_CODE_REF types.
14895
14896 2019-02-08 Jim Wilson <jimw@sifive.com>
14897
14898 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14899 (riscv_linux_fregset): New.
14900 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14901
14902 2019-02-07 Tom Tromey <tom@tromey.com>
14903
14904 * thread.c (thread_cancel_execution_command): Update.
14905 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14906 methods.
14907 (struct thread_fsm_ops): Remove.
14908 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14909 (thread_fsm_should_stop, thread_fsm_return_value)
14910 (thread_fsm_set_finished, thread_fsm_finished_p)
14911 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14912 Don't declare.
14913 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14914 * infrun.c (clear_proceed_status_thread)
14915 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14916 (print_stop_event): Update.
14917 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14918 Add constructor.
14919 (step_command_fsm_ops): Remove.
14920 (new_step_command_fsm): Remove.
14921 (step_1): Update.
14922 (step_command_fsm::should_stop): Rename from
14923 step_command_fsm_should_stop.
14924 (step_command_fsm::clean_up): Rename from
14925 step_command_fsm_clean_up.
14926 (step_command_fsm::do_async_reply_reason): Rename from
14927 step_command_fsm_async_reply_reason.
14928 (struct until_next_fsm): Inherit from thread_fsm. Add
14929 constructor.
14930 (until_next_fsm_ops): Remove.
14931 (new_until_next_fsm): Remove.
14932 (until_next_fsm::should_stop): Rename from
14933 until_next_fsm_should_stop.
14934 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14935 (until_next_fsm::do_async_reply_reason): Rename from
14936 until_next_fsm_async_reply_reason.
14937 (struct finish_command_fsm): Inherit from thread_fsm. Add
14938 constructor. Change type of breakpoint.
14939 (finish_command_fsm_ops): Remove.
14940 (new_finish_command_fsm): Remove.
14941 (finish_command_fsm::should_stop): Rename from
14942 finish_command_fsm_should_stop.
14943 (finish_command_fsm::clean_up): Rename from
14944 finish_command_fsm_clean_up.
14945 (finish_command_fsm::return_value): Rename from
14946 finish_command_fsm_return_value.
14947 (finish_command_fsm::do_async_reply_reason): Rename from
14948 finish_command_fsm_async_reply_reason.
14949 (finish_command): Update.
14950 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14951 Add constructor.
14952 (call_thread_fsm_ops): Remove.
14953 (call_thread_fsm::call_thread_fsm): Rename from
14954 new_call_thread_fsm.
14955 (call_thread_fsm::should_stop): Rename from
14956 call_thread_fsm_should_stop.
14957 (call_thread_fsm::should_notify_stop): Rename from
14958 call_thread_fsm_should_notify_stop.
14959 (run_inferior_call, call_function_by_hand_dummy): Update.
14960 * cli/cli-interp.c (should_print_stop_to_console): Update.
14961 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14962 Add constructor. Change type of location_breakpoint,
14963 caller_breakpoint.
14964 (until_break_fsm_ops): Remove.
14965 (new_until_break_fsm): Remove.
14966 (until_break_fsm::should_stop): Rename from
14967 until_break_fsm_should_stop.
14968 (until_break_fsm::clean_up): Rename from
14969 until_break_fsm_clean_up.
14970 (until_break_fsm::do_async_reply_reason): Rename from
14971 until_break_fsm_async_reply_reason.
14972 (until_break_command): Update.
14973 * thread-fsm.c: Remove.
14974 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14975
14976 2019-02-07 Tom Tromey <tom@tromey.com>
14977
14978 * yy-remap.h: Add include guard.
14979 * xtensa-tdep.h: Add include guard.
14980 * xcoffread.h: Rename include guard.
14981 * varobj-iter.h: Add include guard.
14982 * tui/tui.h: Rename include guard.
14983 * tui/tui-winsource.h: Rename include guard.
14984 * tui/tui-wingeneral.h: Rename include guard.
14985 * tui/tui-windata.h: Rename include guard.
14986 * tui/tui-win.h: Rename include guard.
14987 * tui/tui-stack.h: Rename include guard.
14988 * tui/tui-source.h: Rename include guard.
14989 * tui/tui-regs.h: Rename include guard.
14990 * tui/tui-out.h: Rename include guard.
14991 * tui/tui-layout.h: Rename include guard.
14992 * tui/tui-io.h: Rename include guard.
14993 * tui/tui-hooks.h: Rename include guard.
14994 * tui/tui-file.h: Rename include guard.
14995 * tui/tui-disasm.h: Rename include guard.
14996 * tui/tui-data.h: Rename include guard.
14997 * tui/tui-command.h: Rename include guard.
14998 * tic6x-tdep.h: Add include guard.
14999 * target/waitstatus.h: Rename include guard.
15000 * target/wait.h: Rename include guard.
15001 * target/target.h: Rename include guard.
15002 * target/resume.h: Rename include guard.
15003 * target-float.h: Rename include guard.
15004 * stabsread.h: Add include guard.
15005 * rs6000-tdep.h: Add include guard.
15006 * riscv-fbsd-tdep.h: Add include guard.
15007 * regformats/regdef.h: Rename include guard.
15008 * record.h: Rename include guard.
15009 * python/python.h: Rename include guard.
15010 * python/python-internal.h: Rename include guard.
15011 * python/py-stopevent.h: Rename include guard.
15012 * python/py-ref.h: Rename include guard.
15013 * python/py-record.h: Rename include guard.
15014 * python/py-record-full.h: Rename include guard.
15015 * python/py-record-btrace.h: Rename include guard.
15016 * python/py-instruction.h: Rename include guard.
15017 * python/py-events.h: Rename include guard.
15018 * python/py-event.h: Rename include guard.
15019 * procfs.h: Add include guard.
15020 * proc-utils.h: Add include guard.
15021 * p-lang.h: Add include guard.
15022 * or1k-tdep.h: Rename include guard.
15023 * observable.h: Rename include guard.
15024 * nto-tdep.h: Rename include guard.
15025 * nat/x86-linux.h: Rename include guard.
15026 * nat/x86-linux-dregs.h: Rename include guard.
15027 * nat/x86-gcc-cpuid.h: Add include guard.
15028 * nat/x86-dregs.h: Rename include guard.
15029 * nat/x86-cpuid.h: Rename include guard.
15030 * nat/ppc-linux.h: Rename include guard.
15031 * nat/mips-linux-watch.h: Rename include guard.
15032 * nat/linux-waitpid.h: Rename include guard.
15033 * nat/linux-ptrace.h: Rename include guard.
15034 * nat/linux-procfs.h: Rename include guard.
15035 * nat/linux-osdata.h: Rename include guard.
15036 * nat/linux-nat.h: Rename include guard.
15037 * nat/linux-namespaces.h: Rename include guard.
15038 * nat/linux-btrace.h: Rename include guard.
15039 * nat/glibc_thread_db.h: Rename include guard.
15040 * nat/gdb_thread_db.h: Rename include guard.
15041 * nat/gdb_ptrace.h: Rename include guard.
15042 * nat/fork-inferior.h: Rename include guard.
15043 * nat/amd64-linux-siginfo.h: Rename include guard.
15044 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15045 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15046 * nat/aarch64-linux.h: Rename include guard.
15047 * nat/aarch64-linux-hw-point.h: Rename include guard.
15048 * mn10300-tdep.h: Add include guard.
15049 * mips-linux-tdep.h: Add include guard.
15050 * mi/mi-parse.h: Rename include guard.
15051 * mi/mi-out.h: Rename include guard.
15052 * mi/mi-main.h: Rename include guard.
15053 * mi/mi-interp.h: Rename include guard.
15054 * mi/mi-getopt.h: Rename include guard.
15055 * mi/mi-console.h: Rename include guard.
15056 * mi/mi-common.h: Rename include guard.
15057 * mi/mi-cmds.h: Rename include guard.
15058 * mi/mi-cmd-break.h: Rename include guard.
15059 * m2-lang.h: Add include guard.
15060 * location.h: Rename include guard.
15061 * linux-record.h: Rename include guard.
15062 * linux-nat.h: Add include guard.
15063 * linux-fork.h: Add include guard.
15064 * i386-darwin-tdep.h: Rename include guard.
15065 * hppa-linux-offsets.h: Add include guard.
15066 * guile/guile.h: Rename include guard.
15067 * guile/guile-internal.h: Rename include guard.
15068 * gnu-nat.h: Rename include guard.
15069 * gdb-stabs.h: Rename include guard.
15070 * frv-tdep.h: Add include guard.
15071 * f-lang.h: Add include guard.
15072 * event-loop.h: Add include guard.
15073 * darwin-nat.h: Rename include guard.
15074 * cp-abi.h: Rename include guard.
15075 * config/sparc/nm-sol2.h: Rename include guard.
15076 * config/nm-nto.h: Rename include guard.
15077 * config/nm-linux.h: Add include guard.
15078 * config/i386/nm-i386gnu.h: Rename include guard.
15079 * config/djgpp/nl_types.h: Rename include guard.
15080 * config/djgpp/langinfo.h: Rename include guard.
15081 * compile/gcc-cp-plugin.h: Add include guard.
15082 * compile/gcc-c-plugin.h: Add include guard.
15083 * compile/compile.h: Rename include guard.
15084 * compile/compile-object-run.h: Rename include guard.
15085 * compile/compile-object-load.h: Rename include guard.
15086 * compile/compile-internal.h: Rename include guard.
15087 * compile/compile-cplus.h: Rename include guard.
15088 * compile/compile-c.h: Rename include guard.
15089 * common/xml-utils.h: Rename include guard.
15090 * common/x86-xstate.h: Rename include guard.
15091 * common/version.h: Rename include guard.
15092 * common/vec.h: Rename include guard.
15093 * common/tdesc.h: Rename include guard.
15094 * common/selftest.h: Rename include guard.
15095 * common/scoped_restore.h: Rename include guard.
15096 * common/scoped_mmap.h: Rename include guard.
15097 * common/scoped_fd.h: Rename include guard.
15098 * common/safe-iterator.h: Rename include guard.
15099 * common/run-time-clock.h: Rename include guard.
15100 * common/refcounted-object.h: Rename include guard.
15101 * common/queue.h: Rename include guard.
15102 * common/ptid.h: Rename include guard.
15103 * common/print-utils.h: Rename include guard.
15104 * common/preprocessor.h: Rename include guard.
15105 * common/pathstuff.h: Rename include guard.
15106 * common/observable.h: Rename include guard.
15107 * common/netstuff.h: Rename include guard.
15108 * common/job-control.h: Rename include guard.
15109 * common/host-defs.h: Rename include guard.
15110 * common/gdb_wait.h: Rename include guard.
15111 * common/gdb_vecs.h: Rename include guard.
15112 * common/gdb_unlinker.h: Rename include guard.
15113 * common/gdb_unique_ptr.h: Rename include guard.
15114 * common/gdb_tilde_expand.h: Rename include guard.
15115 * common/gdb_sys_time.h: Rename include guard.
15116 * common/gdb_string_view.h: Rename include guard.
15117 * common/gdb_splay_tree.h: Rename include guard.
15118 * common/gdb_setjmp.h: Rename include guard.
15119 * common/gdb_ref_ptr.h: Rename include guard.
15120 * common/gdb_optional.h: Rename include guard.
15121 * common/gdb_locale.h: Rename include guard.
15122 * common/gdb_assert.h: Rename include guard.
15123 * common/filtered-iterator.h: Rename include guard.
15124 * common/filestuff.h: Rename include guard.
15125 * common/fileio.h: Rename include guard.
15126 * common/environ.h: Rename include guard.
15127 * common/common-utils.h: Rename include guard.
15128 * common/common-types.h: Rename include guard.
15129 * common/common-regcache.h: Rename include guard.
15130 * common/common-inferior.h: Rename include guard.
15131 * common/common-gdbthread.h: Rename include guard.
15132 * common/common-exceptions.h: Rename include guard.
15133 * common/common-defs.h: Rename include guard.
15134 * common/common-debug.h: Rename include guard.
15135 * common/cleanups.h: Rename include guard.
15136 * common/buffer.h: Rename include guard.
15137 * common/btrace-common.h: Rename include guard.
15138 * common/break-common.h: Rename include guard.
15139 * cli/cli-utils.h: Rename include guard.
15140 * cli/cli-style.h: Rename include guard.
15141 * cli/cli-setshow.h: Rename include guard.
15142 * cli/cli-script.h: Rename include guard.
15143 * cli/cli-interp.h: Rename include guard.
15144 * cli/cli-decode.h: Rename include guard.
15145 * cli/cli-cmds.h: Rename include guard.
15146 * charset-list.h: Add include guard.
15147 * buildsym-legacy.h: Rename include guard.
15148 * bfin-tdep.h: Add include guard.
15149 * ax.h: Rename include guard.
15150 * arm-linux-tdep.h: Add include guard.
15151 * arm-fbsd-tdep.h: Add include guard.
15152 * arch/xtensa.h: Rename include guard.
15153 * arch/tic6x.h: Add include guard.
15154 * arch/i386.h: Add include guard.
15155 * arch/arm.h: Rename include guard.
15156 * arch/arm-linux.h: Rename include guard.
15157 * arch/arm-get-next-pcs.h: Rename include guard.
15158 * arch/amd64.h: Add include guard.
15159 * arch/aarch64-insn.h: Rename include guard.
15160 * arch-utils.h: Rename include guard.
15161 * annotate.h: Add include guard.
15162 * amd64-darwin-tdep.h: Rename include guard.
15163 * aarch64-linux-tdep.h: Add include guard.
15164 * aarch64-fbsd-tdep.h: Add include guard.
15165 * aarch32-linux-nat.h: Add include guard.
15166
15167 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15168
15169 * macrotab.c (macro_define_internal): New function that
15170 factorizes macro_define_object_internal and macro_define_function
15171 code.
15172 (macro_define_object_internal): Use macro_define_internal.
15173 (macro_define_function): Likewise.
15174
15175 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15176
15177 * macrocmd.c (extract_identifier): Return
15178 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15179 callers.
15180
15181 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15182
15183 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15184
15185 2019-02-05 Tom Tromey <tom@tromey.com>
15186
15187 * target.c (target_stack::unpush): Move assertion earlier.
15188
15189 2019-01-30 Tom Tromey <tom@tromey.com>
15190
15191 PR python/23615:
15192 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15193 (gdbpy_parse_and_eval): Likewise.
15194 * python/python-internal.h (gdbpy_allow_threads): New class.
15195
15196 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15197
15198 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15199 (aarch64_fbsd_fpregmap): Move earlier.
15200 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15201 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15202 instead of individual calls to trad_frame_set_reg_addr.
15203 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15204 earlier.
15205 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15206 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15207 instead of individual calls to trad_frame_set_reg_addr.
15208
15209 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15210
15211 * CONTRIBUTE: Replace contribution list with wiki link.
15212
15213 2019-01-25 Tom Tromey <tom@tromey.com>
15214
15215 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15216
15217 2019-01-25 Tom Tromey <tom@tromey.com>
15218
15219 * xtensa-linux-nat.c: Fix common/ includes.
15220 * xml-support.h: Fix common/ includes.
15221 * xml-support.c: Fix common/ includes.
15222 * x86-linux-nat.c: Fix common/ includes.
15223 * windows-nat.c: Fix common/ includes.
15224 * varobj.h: Fix common/ includes.
15225 * varobj.c: Fix common/ includes.
15226 * value.c: Fix common/ includes.
15227 * valops.c: Fix common/ includes.
15228 * utils.c: Fix common/ includes.
15229 * unittests/xml-utils-selftests.c: Fix common/ includes.
15230 * unittests/utils-selftests.c: Fix common/ includes.
15231 * unittests/unpack-selftests.c: Fix common/ includes.
15232 * unittests/tracepoint-selftests.c: Fix common/ includes.
15233 * unittests/style-selftests.c: Fix common/ includes.
15234 * unittests/string_view-selftests.c: Fix common/ includes.
15235 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15236 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15237 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15238 * unittests/rsp-low-selftests.c: Fix common/ includes.
15239 * unittests/parse-connection-spec-selftests.c: Fix common/
15240 includes.
15241 * unittests/optional-selftests.c: Fix common/ includes.
15242 * unittests/offset-type-selftests.c: Fix common/ includes.
15243 * unittests/observable-selftests.c: Fix common/ includes.
15244 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15245 * unittests/memrange-selftests.c: Fix common/ includes.
15246 * unittests/memory-map-selftests.c: Fix common/ includes.
15247 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15248 * unittests/function-view-selftests.c: Fix common/ includes.
15249 * unittests/environ-selftests.c: Fix common/ includes.
15250 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15251 * unittests/common-utils-selftests.c: Fix common/ includes.
15252 * unittests/cli-utils-selftests.c: Fix common/ includes.
15253 * unittests/array-view-selftests.c: Fix common/ includes.
15254 * ui-file.c: Fix common/ includes.
15255 * tui/tui-io.c: Fix common/ includes.
15256 * tracepoint.h: Fix common/ includes.
15257 * tracepoint.c: Fix common/ includes.
15258 * tracefile-tfile.c: Fix common/ includes.
15259 * top.h: Fix common/ includes.
15260 * top.c: Fix common/ includes.
15261 * thread.c: Fix common/ includes.
15262 * target/waitstatus.h: Fix common/ includes.
15263 * target/waitstatus.c: Fix common/ includes.
15264 * target.h: Fix common/ includes.
15265 * target.c: Fix common/ includes.
15266 * target-memory.c: Fix common/ includes.
15267 * target-descriptions.c: Fix common/ includes.
15268 * symtab.h: Fix common/ includes.
15269 * symfile.c: Fix common/ includes.
15270 * stap-probe.c: Fix common/ includes.
15271 * spu-linux-nat.c: Fix common/ includes.
15272 * sparc-nat.c: Fix common/ includes.
15273 * source.c: Fix common/ includes.
15274 * solib.c: Fix common/ includes.
15275 * solib-target.c: Fix common/ includes.
15276 * ser-unix.c: Fix common/ includes.
15277 * ser-tcp.c: Fix common/ includes.
15278 * ser-pipe.c: Fix common/ includes.
15279 * ser-base.c: Fix common/ includes.
15280 * selftest-arch.c: Fix common/ includes.
15281 * s12z-tdep.c: Fix common/ includes.
15282 * rust-exp.y: Fix common/ includes.
15283 * rs6000-aix-tdep.c: Fix common/ includes.
15284 * riscv-tdep.c: Fix common/ includes.
15285 * remote.c: Fix common/ includes.
15286 * remote-notif.h: Fix common/ includes.
15287 * remote-fileio.h: Fix common/ includes.
15288 * remote-fileio.c: Fix common/ includes.
15289 * regcache.h: Fix common/ includes.
15290 * regcache.c: Fix common/ includes.
15291 * record-btrace.c: Fix common/ includes.
15292 * python/python.c: Fix common/ includes.
15293 * python/py-type.c: Fix common/ includes.
15294 * python/py-inferior.c: Fix common/ includes.
15295 * progspace.h: Fix common/ includes.
15296 * producer.c: Fix common/ includes.
15297 * procfs.c: Fix common/ includes.
15298 * proc-api.c: Fix common/ includes.
15299 * printcmd.c: Fix common/ includes.
15300 * ppc-linux-nat.c: Fix common/ includes.
15301 * parser-defs.h: Fix common/ includes.
15302 * osdata.c: Fix common/ includes.
15303 * obsd-nat.c: Fix common/ includes.
15304 * nat/x86-linux.c: Fix common/ includes.
15305 * nat/x86-linux-dregs.c: Fix common/ includes.
15306 * nat/x86-dregs.h: Fix common/ includes.
15307 * nat/x86-dregs.c: Fix common/ includes.
15308 * nat/ppc-linux.c: Fix common/ includes.
15309 * nat/mips-linux-watch.h: Fix common/ includes.
15310 * nat/mips-linux-watch.c: Fix common/ includes.
15311 * nat/linux-waitpid.c: Fix common/ includes.
15312 * nat/linux-ptrace.h: Fix common/ includes.
15313 * nat/linux-ptrace.c: Fix common/ includes.
15314 * nat/linux-procfs.c: Fix common/ includes.
15315 * nat/linux-personality.c: Fix common/ includes.
15316 * nat/linux-osdata.c: Fix common/ includes.
15317 * nat/linux-namespaces.c: Fix common/ includes.
15318 * nat/linux-btrace.h: Fix common/ includes.
15319 * nat/linux-btrace.c: Fix common/ includes.
15320 * nat/fork-inferior.c: Fix common/ includes.
15321 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15322 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15323 * nat/aarch64-linux.c: Fix common/ includes.
15324 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15325 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15326 * namespace.h: Fix common/ includes.
15327 * mips-linux-tdep.c: Fix common/ includes.
15328 * minsyms.c: Fix common/ includes.
15329 * mi/mi-parse.h: Fix common/ includes.
15330 * mi/mi-main.c: Fix common/ includes.
15331 * mi/mi-cmd-env.c: Fix common/ includes.
15332 * memrange.h: Fix common/ includes.
15333 * memattr.c: Fix common/ includes.
15334 * maint.h: Fix common/ includes.
15335 * maint.c: Fix common/ includes.
15336 * main.c: Fix common/ includes.
15337 * machoread.c: Fix common/ includes.
15338 * location.c: Fix common/ includes.
15339 * linux-thread-db.c: Fix common/ includes.
15340 * linux-nat.c: Fix common/ includes.
15341 * linux-fork.c: Fix common/ includes.
15342 * inline-frame.c: Fix common/ includes.
15343 * infrun.c: Fix common/ includes.
15344 * inflow.c: Fix common/ includes.
15345 * inferior.h: Fix common/ includes.
15346 * inferior.c: Fix common/ includes.
15347 * infcmd.c: Fix common/ includes.
15348 * inf-ptrace.c: Fix common/ includes.
15349 * inf-child.c: Fix common/ includes.
15350 * ia64-linux-nat.c: Fix common/ includes.
15351 * i387-tdep.c: Fix common/ includes.
15352 * i386-tdep.c: Fix common/ includes.
15353 * i386-linux-tdep.c: Fix common/ includes.
15354 * i386-linux-nat.c: Fix common/ includes.
15355 * i386-go32-tdep.c: Fix common/ includes.
15356 * i386-fbsd-tdep.c: Fix common/ includes.
15357 * i386-fbsd-nat.c: Fix common/ includes.
15358 * guile/scm-type.c: Fix common/ includes.
15359 * guile/guile.c: Fix common/ includes.
15360 * go32-nat.c: Fix common/ includes.
15361 * gnu-nat.c: Fix common/ includes.
15362 * gdbthread.h: Fix common/ includes.
15363 * gdbarch-selftests.c: Fix common/ includes.
15364 * gdb_usleep.c: Fix common/ includes.
15365 * gdb_select.h: Fix common/ includes.
15366 * gdb_bfd.c: Fix common/ includes.
15367 * gcore.c: Fix common/ includes.
15368 * fork-child.c: Fix common/ includes.
15369 * findvar.c: Fix common/ includes.
15370 * fbsd-nat.c: Fix common/ includes.
15371 * event-top.c: Fix common/ includes.
15372 * event-loop.c: Fix common/ includes.
15373 * dwarf2read.c: Fix common/ includes.
15374 * dwarf2loc.c: Fix common/ includes.
15375 * dwarf2-frame.c: Fix common/ includes.
15376 * dwarf-index-cache.c: Fix common/ includes.
15377 * dtrace-probe.c: Fix common/ includes.
15378 * disasm-selftests.c: Fix common/ includes.
15379 * defs.h: Fix common/ includes.
15380 * csky-tdep.c: Fix common/ includes.
15381 * cp-valprint.c: Fix common/ includes.
15382 * cp-support.h: Fix common/ includes.
15383 * cp-support.c: Fix common/ includes.
15384 * corelow.c: Fix common/ includes.
15385 * completer.h: Fix common/ includes.
15386 * completer.c: Fix common/ includes.
15387 * compile/compile.c: Fix common/ includes.
15388 * compile/compile-loc2c.c: Fix common/ includes.
15389 * compile/compile-cplus-types.c: Fix common/ includes.
15390 * compile/compile-cplus-symbols.c: Fix common/ includes.
15391 * command.h: Fix common/ includes.
15392 * cli/cli-dump.c: Fix common/ includes.
15393 * cli/cli-cmds.c: Fix common/ includes.
15394 * charset.c: Fix common/ includes.
15395 * build-id.c: Fix common/ includes.
15396 * btrace.h: Fix common/ includes.
15397 * btrace.c: Fix common/ includes.
15398 * breakpoint.h: Fix common/ includes.
15399 * breakpoint.c: Fix common/ includes.
15400 * ax.h:
15401 (enum agent_op): Fix common/ includes.
15402 * ax-general.c (struct aop_map): Fix common/ includes.
15403 * ax-gdb.c: Fix common/ includes.
15404 * auxv.c: Fix common/ includes.
15405 * auto-load.c: Fix common/ includes.
15406 * arm-tdep.c: Fix common/ includes.
15407 * arch/riscv.c: Fix common/ includes.
15408 * arch/ppc-linux-common.c: Fix common/ includes.
15409 * arch/i386.c: Fix common/ includes.
15410 * arch/arm.c: Fix common/ includes.
15411 * arch/arm-linux.c: Fix common/ includes.
15412 * arch/arm-get-next-pcs.c: Fix common/ includes.
15413 * arch/amd64.c: Fix common/ includes.
15414 * arch/aarch64.c: Fix common/ includes.
15415 * arch/aarch64-insn.c: Fix common/ includes.
15416 * arch-utils.c: Fix common/ includes.
15417 * amd64-windows-tdep.c: Fix common/ includes.
15418 * amd64-tdep.c: Fix common/ includes.
15419 * amd64-sol2-tdep.c: Fix common/ includes.
15420 * amd64-obsd-tdep.c: Fix common/ includes.
15421 * amd64-nbsd-tdep.c: Fix common/ includes.
15422 * amd64-linux-tdep.c: Fix common/ includes.
15423 * amd64-linux-nat.c: Fix common/ includes.
15424 * amd64-fbsd-tdep.c: Fix common/ includes.
15425 * amd64-fbsd-nat.c: Fix common/ includes.
15426 * amd64-dicos-tdep.c: Fix common/ includes.
15427 * amd64-darwin-tdep.c: Fix common/ includes.
15428 * agent.c: Fix common/ includes.
15429 * ada-lang.h: Fix common/ includes.
15430 * ada-lang.c: Fix common/ includes.
15431 * aarch64-tdep.c: Fix common/ includes.
15432
15433 2019-01-25 Tom Tromey <tom@tromey.com>
15434
15435 * common/create-version.sh: Use common/version.h.
15436
15437 2019-01-24 Pedro Alves <palves@redhat.com>
15438
15439 * infrun.c (signal_stop, signal_print, signal_program)
15440 (signal_catch, signal_pass): Now arrays instead of pointers.
15441 (update_signals_program_target, do_target_resume)
15442 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15443 * linux-nat.c (linux_nat_target::pass_signals)
15444 (linux_nat_target::create_inferior, linux_nat_target::attach):
15445 Adjust.
15446 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15447 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15448 * procfs.c (procfs_target::pass_signals): Adjust.
15449 * record-full.c (record_full_target::resume): Adjust.
15450 * remote.c (remote_target::pass_signals)
15451 (remote_target::program_signals): Adjust.
15452 * target-debug.h (target_debug_print_signals): Now takes a
15453 gdb::array_view as parameter. Adjust.
15454 * target.h (target_ops) <pass_signals, program_signals>: Replace
15455 pointer and length parameters with gdb::array_view.
15456 (target_pass_signals, target_program_signals): Likewise.
15457 * target-delegates.c: Regenerate.
15458
15459 2019-01-24 Pedro Alves <palves@redhat.com>
15460
15461 * common/forward-scope-exit.h
15462 (forward_scope_exit::forward_scope_exit): Pass arguments to
15463 m_bind_function directly, instead of creating a std::bind and
15464 copying that.
15465
15466 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15467
15468 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15469 for static members.
15470 (pass_in_v_vfp_candidate): Likewise.
15471
15472 2019-01-23 Tom Tromey <tom@tromey.com>
15473 Pedro Alves <palves@redhat.com>
15474
15475 * regcache.c (class regcache_invalidator): Remove.
15476 (regcache::raw_write): Use make_scope_exit.
15477
15478 2019-01-23 Tom Tromey <tom@tromey.com>
15479
15480 * ui-out.h (class ui_out_emit_type): Update comment.
15481
15482 2019-01-23 Tom Tromey <tom@tromey.com>
15483
15484 * infrun.c (fetch_inferior_event): Update comment.
15485
15486 2019-01-23 Tom Tromey <tom@tromey.com>
15487 Pedro Alves <palves@redhat.com>
15488
15489 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15490 parameter.
15491 (fetch_inferior_event): Use SCOPE_EXIT.
15492
15493
15494 2019-01-23 Tom Tromey <tom@tromey.com>
15495 Pedro Alves <palves@redhat.com>
15496
15497 * infrun.c (disable_thread_events): Delete.
15498 (stop_all_threads): Use SCOPE_EXIT.
15499
15500 2019-01-23 Tom Tromey <tom@tromey.com>
15501 Pedro Alves <palves@redhat.com>
15502
15503 * symfile.c: Include forward-scope-exit.h.
15504 (clear_symtab_users_cleanup): Replace forward declaration with
15505 a FORWARD_SCOPE_EXIT.
15506 (syms_from_objfile_1): Use the forward_scope_exit and
15507 gdb::optional instead of cleanup_function.
15508 (reread_symbols): Use the forward_scope_exit instead of
15509 cleanup_function.
15510 (clear_symtab_users_cleanup): Remove function.
15511
15512 2019-01-23 Tom Tromey <tom@tromey.com>
15513 Pedro Alves <palves@redhat.com>
15514
15515 * linux-nat.c: Include scope-exit.h.
15516 (cleanup_target_stop): Remove.
15517 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15518 SCOPE_EXIT.
15519
15520 2019-01-23 Tom Tromey <tom@tromey.com>
15521 Pedro Alves <palves@redhat.com>
15522
15523 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15524 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15525
15526 2019-01-23 Tom Tromey <tom@tromey.com>
15527 Andrew Burgess <andrew.burgess@embecosm.com>
15528 Pedro Alves <palves@redhat.com>
15529
15530 * infrun.c (fetch_inferior_event): Use scope_exit.
15531 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15532 * top.c (execute_command): Use scope_exit.
15533 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15534 * utils.c (do_bpstat_clear_actions_cleanup)
15535 (make_bpstat_clear_actions_cleanup): Remove.
15536
15537 2019-01-23 Tom Tromey <tom@tromey.com>
15538 Pedro Alves <palves@redhat.com>
15539
15540 * infrun.c: Include "common/scope-exit.h"
15541 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15542 (wait_for_inferior): Use SCOPE_EXIT.
15543 (fetch_inferior_event): Use scope_exit.
15544
15545 2019-01-23 Tom Tromey <tom@tromey.com>
15546 Pedro Alves <palves@redhat.com>
15547
15548 * breakpoint.c (create_breakpoint): Remove cleanup.
15549
15550 2019-01-23 Tom Tromey <tom@tromey.com>
15551 Andrew Burgess <andrew.burgess@embecosm.com>
15552 Pedro Alves <palves@redhat.com>
15553
15554 2019-01-23 Pedro Alves <palves@redhat.com>
15555
15556 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15557
15558 2019-01-23 Pedro Alves <palves@redhat.com>
15559 Andrew Burgess <andrew.burgess@embecosm.com>
15560
15561 * gdbthread.h: Include "common/forward-scope-exit.h".
15562 (scoped_finish_thread_state): Redefine custom class in terms of
15563 forward_scope_exit.
15564
15565 2019-01-23 Pedro Alves <palves@redhat.com>
15566 Andrew Burgess <andrew.burgess@embecosm.com>
15567
15568 * common/forward-scope-exit.h: New file.
15569
15570 2019-01-23 Pedro Alves <palves@redhat.com>
15571 Andrew Burgess <andrew.burgess@embecosm.com>
15572 Tom Tromey <tom@tromey.com>
15573
15574 * common/scope-exit.h: New file.
15575
15576 2019-01-23 Pedro Alves <palves@redhat.com>
15577
15578 * common/preprocessor.h (ESC): Rename to ...
15579 (ESC_PARENS): ... this.
15580 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15581 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15582
15583 2019-01-23 Tom Tromey <tom@tromey.com>
15584
15585 * language.h (class scoped_switch_to_sym_language_if_auto):
15586 Initialize m_lang in both cases.
15587
15588 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15589
15590 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15591 with XCNEW.
15592
15593 2019-01-22 Tom Tromey <tom@tromey.com>
15594
15595 * corelow.c: Do not include sys/file.h.
15596
15597 2019-01-22 Tom Tromey <tom@tromey.com>
15598
15599 * tui/tui-wingeneral.h: Include gdb_curses.h.
15600
15601 2019-01-22 Tom Tromey <tom@tromey.com>
15602
15603 * source-cache.h (class source_cache) <get_source_lines,
15604 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15605
15606 2019-01-22 Tom Tromey <tom@tromey.com>
15607
15608 * remote-fileio.h (struct remote_target): Declare.
15609
15610 2019-01-22 Tom Tromey <tom@tromey.com>
15611
15612 * python/py-arch.c: Do not include py-ref.h.
15613 * python/py-bpevent.c: Do not include py-ref.h.
15614 * python/py-cmd.c: Do not include py-ref.h.
15615 * python/py-continueevent.c: Do not include py-ref.h.
15616 * python/py-event.h: Do not include py-ref.h.
15617 * python/py-evtregistry.c: Do not include py-ref.h.
15618 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15619 * python/py-frame.c: Do not include py-ref.h.
15620 * python/py-framefilter.c: Do not include py-ref.h.
15621 * python/py-function.c: Do not include py-ref.h.
15622 * python/py-infevents.c: Do not include py-ref.h.
15623 * python/py-linetable.c: Do not include py-ref.h.
15624 * python/py-objfile.c: Do not include py-ref.h.
15625 * python/py-param.c: Do not include py-ref.h.
15626 * python/py-prettyprint.c: Do not include py-ref.h.
15627 * python/py-progspace.c: Do not include py-ref.h.
15628 * python/py-symbol.c: Do not include py-ref.h.
15629 * python/py-symtab.c: Do not include py-ref.h.
15630 * python/py-type.c: Do not include py-ref.h.
15631 * python/py-unwind.c: Do not include py-ref.h.
15632 * python/py-utils.c: Do not include py-ref.h.
15633 * python/py-value.c: Do not include py-ref.h.
15634 * python/py-varobj.c: Do not include py-ref.h.
15635 * python/py-xmethods.c: Do not include py-ref.h.
15636 * python/python.c: Do not include py-ref.h.
15637 * varobj.c: Do not include py-ref.h.
15638
15639 2019-01-22 Tom Tromey <tom@tromey.com>
15640
15641 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15642 keyword for bcache.
15643
15644 2019-01-22 Tom Tromey <tom@tromey.com>
15645
15646 * compile/compile-cplus-types.c: Remove a comment by #include.
15647
15648 2019-01-22 Tom Tromey <tom@tromey.com>
15649
15650 * compile/gcc-c-plugin.h: Include compile-internal.h.
15651
15652 2019-01-22 Tom Tromey <tom@tromey.com>
15653
15654 * stabsread.c (EXTERN): Do not define.
15655 (symnum, next_symbol_text_func, processing_gcc_compilation)
15656 (within_function, global_sym_chain, global_stabs)
15657 (previous_stab_code, this_object_header_files)
15658 (n_this_object_header_files)
15659 (n_allocated_this_object_header_files): Define.
15660 * stabsread.h (EXTERN): Never define. Use "extern".
15661
15662 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15663
15664 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15665 history_value.
15666
15667 2019-01-21 Tom Tromey <tom@tromey.com>
15668
15669 * ui-out.c: Fix includes.
15670 * tui/tui-source.c: Fix includes.
15671 * target.c: Fix includes.
15672 * remote.c: Fix includes.
15673 * regcache.c: Fix includes.
15674 * python/py-block.c: Fix includes.
15675 * printcmd.c: Fix includes.
15676 * or1k-tdep.c: Fix includes.
15677 * mi/mi-main.c: Fix includes.
15678 * m32r-tdep.c: Fix includes.
15679 * csky-tdep.c: Fix includes.
15680 * compile/compile-cplus-types.c: Fix includes.
15681 * cli/cli-interp.c: Fix includes.
15682
15683 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15684
15685 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15686 for padding.
15687
15688 2019-01-16 Tom Tromey <tom@tromey.com>
15689
15690 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15691 earlier.
15692 (struct objfile) <msymbols_range>: Move from top level.
15693 <msymbols>: New method.
15694 (class objfile_msymbols): Remove.
15695 * symtab.c (default_collect_symbol_completion_matches_break_on):
15696 Update.
15697 * symmisc.c (dump_msymbols): Update.
15698 * stabsread.c (scan_file_globals): Update.
15699 * objc-lang.c (info_selectors_command, info_classes_command)
15700 (find_methods): Update.
15701 * minsyms.c (find_solib_trampoline_target): Update.
15702 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15703 * coffread.c (coff_symfile_read): Update.
15704 * ada-lang.c (ada_lookup_simple_minsym)
15705 (ada_collect_symbol_completion_matches): Update.
15706
15707 2019-01-16 Tom Tromey <tom@tromey.com>
15708
15709 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15710 type. Remove no-argument constructor.
15711 <iterator::operator++>: Simplify.
15712 <begin>: Update.
15713 <end>: Use minimal_symbol_count.
15714
15715 2019-01-16 Tom Tromey <tom@tromey.com>
15716
15717 * objfiles.h (struct objfile) <psymtabs>: New method.
15718 (class objfile_psymtabs): Remove.
15719 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15720 typedef.
15721 <range>: New method.
15722 (require_partial_symbols): Change return type.
15723 * psymtab.c (require_partial_symbols)
15724 (psym_expand_symtabs_matching): Update.
15725 * mdebugread.c (parse_partial_symbols): Update.
15726 * dbxread.c (dbx_end_psymtab): Update.
15727
15728 2019-01-15 Tom Tromey <tom@tromey.com>
15729
15730 * symtab.c (lookup_objfile_from_block)
15731 (lookup_symbol_in_objfile_symtabs)
15732 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15733 (find_line_symtab, info_sources_command)
15734 (default_collect_symbol_completion_matches_break_on)
15735 (make_source_files_completion_list): Update.
15736 * symmisc.c (print_objfile_statistics, dump_objfile)
15737 (maintenance_print_symbols, maintenance_info_symtabs)
15738 (maintenance_check_symtabs, maintenance_info_line_tables):
15739 Update.
15740 * source.c (select_source_symtab)
15741 (forget_cached_source_info_for_objfile): Update.
15742 * objfiles.h (class objfile_compunits): Remove.
15743 (struct objfile) <compunits_range>: New typedef.
15744 (compunits): New method.
15745 * objfiles.c (objfile_relocate1): Update.
15746 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15747 * maint.c (count_symtabs_and_blocks): Update.
15748 * linespec.c (iterate_over_all_matching_symtabs): Update.
15749 * cp-support.c (add_symbol_overload_list_qualified): Update.
15750 * coffread.c (coff_symtab_read): Update.
15751 * ada-lang.c (add_nonlocal_symbols)
15752 (ada_collect_symbol_completion_matches)
15753 (ada_add_global_exceptions): Update.
15754
15755 2019-01-15 Tom Tromey <tom@tromey.com>
15756
15757 * progspace.h (program_space) <objfiles_safe_range>: New
15758 typedef.
15759 <objfiles_safe>: New method.
15760 * objfiles.h (class all_objfiles_safe): Remove.
15761 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15762 * jit.c (jit_inferior_exit_hook): Update.
15763
15764 2019-01-17 Tom Tromey <tom@tromey.com>
15765
15766 * progspace.h (program_space) <objfiles_range>: New typedef.
15767 <objfiles>: New method.
15768 <objfiles_head>: Rename from objfiles.
15769 (object_files): Update.
15770 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15771 * guile/scm-pretty-print.c
15772 (ppscm_find_pretty_printer_from_objfiles): Update.
15773 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15774 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15775 Update.
15776 * python/py-progspace.c (pspy_get_objfiles): Update.
15777 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15778 Update.
15779 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15780 (objfpy_lookup_objfile_by_build_id): Update.
15781 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15782 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15783 Update.
15784 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15785 (expand_symtab_containing_pc, lookup_objfile_from_block)
15786 (lookup_static_symbol, basic_lookup_transparent_type)
15787 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15788 (find_line_symtab, info_sources_command)
15789 (default_collect_symbol_completion_matches_break_on)
15790 (make_source_files_completion_list, find_main_name): Update.
15791 * symmisc.c (print_symbol_bcache_statistics)
15792 (print_objfile_statistics, maintenance_print_symbols)
15793 (maintenance_print_msymbols, maintenance_print_objfiles)
15794 (maintenance_info_symtabs, maintenance_check_symtabs)
15795 (maintenance_expand_symtabs, maintenance_info_line_tables):
15796 Update.
15797 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15798 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15799 (map_overlay_command, unmap_overlay_command)
15800 (simple_overlay_update, expand_symtabs_matching)
15801 (map_symbol_filenames): Update.
15802 * symfile-debug.c (set_debug_symfile): Update.
15803 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15804 Update.
15805 * source.c (select_source_symtab, forget_cached_source_info):
15806 Update.
15807 * solib.c (solib_read_symbols): Update.
15808 * solib-spu.c (append_ocl_sos): Update.
15809 * psymtab.c (maintenance_print_psymbols)
15810 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15811 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15812 * printcmd.c (info_symbol_command): Update.
15813 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15814 Update.
15815 * objfiles.h (class all_objfiles): Remove.
15816 * objfiles.c (have_partial_symbols, have_full_symbols)
15817 (have_minimal_symbols, qsort_cmp, update_section_map)
15818 (shared_objfile_contains_address_p)
15819 (default_iterate_over_objfiles_in_search_order): Update.
15820 * objc-lang.c (info_selectors_command, info_classes_command)
15821 (find_methods): Update.
15822 * minsyms.c (find_solib_trampoline_target): Update.
15823 * maint.c (maintenance_info_sections)
15824 (maintenance_translate_address, count_symtabs_and_blocks):
15825 Update.
15826 * main.c (captured_main_1): Update.
15827 * linux-thread-db.c (try_thread_db_load_from_pdir)
15828 (has_libpthread): Update.
15829 * linespec.c (iterate_over_all_matching_symtabs)
15830 (search_minsyms_for_name): Update.
15831 * jit.c (jit_find_objf_with_entry_addr): Update.
15832 * hppa-tdep.c (find_unwind_entry)
15833 (hppa_lookup_stub_minimal_symbol): Update.
15834 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15835 Update.
15836 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15837 (elf_gnu_ifunc_resolve_by_got): Update.
15838 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15839 * dwarf-index-write.c (save_gdb_index_command): Update.
15840 * cp-support.c (add_symbol_overload_list_qualified): Update.
15841 * breakpoint.c (create_overlay_event_breakpoint)
15842 (create_longjmp_master_breakpoint)
15843 (create_std_terminate_master_breakpoint)
15844 (create_exception_master_breakpoint): Update.
15845 * blockframe.c (find_pc_partial_function): Update.
15846 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15847 (ada_collect_symbol_completion_matches)
15848 (ada_add_global_exceptions): Update.
15849
15850 2019-01-17 Tom Tromey <tom@tromey.com>
15851
15852 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15853 declare VEC.
15854 (solib_target_parse_libraries): Change return type.
15855 (library_list_start_segment, library_list_start_section)
15856 (library_list_end_library, library_list_start_library); Update.
15857 (solib_target_free_library_list): Remove.
15858 (solib_target_parse_libraries): Remove cleanup. Change return
15859 type.
15860 (solib_target_current_sos): Update.
15861
15862 2019-01-17 Tom Tromey <tromey@bapiya>
15863
15864 * valprint.c: Replace "the the" with "the".
15865 * symtab.c: Replace "the the" with "the".
15866 * solib.c: Replace "the the" with "the".
15867 * solib-dsbt.c: Replace "the the" with "the".
15868 * linespec.c: Replace "the the" with "the".
15869 * dwarf2loc.h: Replace "the the" with "the".
15870 * amd64-windows-tdep.c: Replace "the the" with "the".
15871 * aarch64-tdep.c: Replace "the the" with "the".
15872
15873 2019-01-16 Keith Seitz <keiths@redhat.com>
15874
15875 PR gdb/23773
15876 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15877 <builder>: Rename to ..
15878 <m_builder>: ... this and make private.
15879 (dwarf2_cu::get_builder): New method. Change all users of
15880 `builder' to use this method.
15881 (dwarf2_start_symtab): Move to ...
15882 (dwarf2_cu::start_symtab): ... here. Update all callers
15883 (setup_type_unit_groups): Move to ...
15884 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15885 callers.
15886 (dwarf2_cu::reset_builder): New method.
15887 (process_full_compunit, process_full_type_unit): Use
15888 dwarf2_cu::reset_builder.
15889 (follow_die_offset): Record the ancestor CU if it is different
15890 from the followed DIE's CU.
15891 (follow_die_sig_1): Likewise.
15892
15893 2019-01-15 Tom Tromey <tom@tromey.com>
15894
15895 * remote.c (class remote_state) <buf>: Now a char_vector.
15896 <buf_size>: Remove.
15897 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15898 parameter.
15899 (remote_target::getpkt_or_notif_sane_1)
15900 (remote_target::getpkt_sane)
15901 (remote_target::getpkt_or_notif_sane): Likewise.
15902 (class remote_target) <putpkt>: New overload.
15903 (remote_target::read_frame): Change type of "buf_p". Remove
15904 sizeof_p parameter.
15905 (packet_ok): New overload.
15906 (packet_check_result): New overload.
15907 Update all uses.
15908
15909 2019-01-14 Tom Tromey <tom@tromey.com>
15910
15911 * remote-notif.c (handle_notification, remote_notif_ack)
15912 (remote_notif_parse): Make "buf" const.
15913 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15914 const.
15915 (remote_notif_parse, remote_notif_ack, handle_notification):
15916 Likewise.
15917 * remote.c (remote_notif_stop_parse): Make "buf" const.
15918 (remote_target::remote_parse_stop_reply): Make "buf" const.
15919 (remote_notif_stop_ack): Make "buf" const.
15920
15921 2019-01-14 Tom Tromey <tom@tromey.com>
15922
15923 * remote.c (remote_console_output): Make parameter const.
15924
15925 2019-01-14 Tom Tromey <tom@tromey.com>
15926
15927 * target-debug.h (target_debug_print_signals): Constify.
15928 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15929 * procfs.c (procfs_target::pass_signals): Update.
15930 * linux-nat.c (linux_nat_target::pass_signals): Update.
15931 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15932 * target-delegates.c: Rebuild.
15933 * remote.c (remote_target::program_signals): Update.
15934 (remote_target::pass_signals): Update.
15935 * target.c (target_pass_signals): Constify argument.
15936 (target_program_signals): Likewise.
15937 * target.h (struct target_ops) <pass_signals, program_signals>:
15938 Constify argument.
15939 (target_pass_signals, target_program_signals): Constify argument.
15940
15941 2019-01-14 Tom Tromey <tom@tromey.com>
15942
15943 PR tui/28819:
15944 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15945
15946 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15947
15948 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15949 field.
15950 * rs6000-tdep.c: Include reggroups.h.
15951 (IS_V_ALIAS_PSEUDOREG): Define.
15952 (rs6000_register_name): Return names for the "vX" aliases.
15953 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15954 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15955 aliases. Call default_register_reggroup_p for all other
15956 pseudo-registers.
15957 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15958 New functions.
15959 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15960 Handle "vX" aliases.
15961 (v_alias_pseudo_register_collect): New function.
15962 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15963 (rs6000_gdbarch_init): Initialize "vX" aliases as
15964 pseudo-registers. Restore registration of
15965 rs6000_pseudo_register_reggroup_p with
15966 set_tdesc_pseudo_register_reggroup_p.
15967
15968 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15969
15970 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15971 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15972 set_gdbarch_num_pseudo_regs.
15973
15974 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15975
15976 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15977 Remove arg prefixname, add do_set and do_show.
15978 Add member functions set_list and show_list.
15979 * cli/cli-style.c (class cli_style_option): Update accordingly.
15980 (style_set_list): Move to file scope.
15981 (style_show_list): Likewise.
15982 (set_style): Call help_list.
15983 (show_style): Call cmd_show_list.
15984 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15985 Update to use the new macro.
15986
15987 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15988
15989 * ada-lang.c (_initialize_ada_language): Expand the help text
15990 for the "catch exception" command.
15991
15992 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15993
15994 * symtab.c (matching_obj_sections): Initialize obj,
15995 declare it closer to its usage.
15996
15997 2019-01-10 Tom Tromey <tom@tromey.com>
15998
15999 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16000 (basic_inf_threads_range): Remove.
16001 (inf_threads_range, inf_non_exited_threads_range)
16002 (safe_inf_threads_range): Use next_adapter.
16003
16004 2019-01-10 Keith Seitz <keiths@redhat.com>
16005
16006 PR gdb/23712
16007 PR symtab/23010
16008 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16009 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16010
16011 2019-01-10 Keith Seitz <keiths@redhat.com>
16012
16013 PR gdb/23712
16014 PR symtab/23010
16015 * dictionary.c (pending_to_vector): Remove.
16016 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16017 Remove _1 suffix, replacing functions of the same name. Update
16018 all callers.
16019 (dict_create_hashed, dict_create_hashed_expandable)
16020 (dict_create_linear, dict_create_linear_expandable, dict_free)
16021 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16022 Make functions static.
16023
16024 2019-01-10 Keith Seitz <keiths@redhat.com>
16025
16026 PR gdb/23712
16027 PR symtab/23010
16028 * dictionary.h (struct dictionary): Replace declaration with
16029 multidictionary.
16030 (dict_create_hashed, dict_create_hashed_expandable)
16031 (dict_create_linear, dict_create_linear_expandable)
16032 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16033 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16034 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16035 taking multidictionary argument.
16036 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16037 * block.h (struct block) <dict>: Change to multidictionary
16038 and rename `multidict'.
16039 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16040 symmisc.c: Update all dictionary references to multidictionary.
16041
16042 2019-01-10 Keith Seitz <keiths@redhat.com>
16043
16044 PR gdb/23712
16045 PR symtab/23010
16046 * dictionary.c: Include unordered_map.
16047 (pending_to_vector): New function.
16048 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16049 Rewrite the non-"_1" functions to take vector instead
16050 of linked list.
16051 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16052 "new" _1 versions of the same name.
16053 (multidictionary): Define.
16054 (std::hash<enum language): New definition.
16055 (collate_pending_symbols_by_language, mdict_create_hashed)
16056 (mdict_create_hashed_expandable, mdict_create_linear)
16057 (mdict_create_linear_expandable, mdict_free)
16058 (find_language_dictionary, create_new_language_dictionary)
16059 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16060 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16061 (mdict_size, mdict_empty): New functions.
16062 * dictionary.h (mdict_iterator): Define.
16063
16064 2019-01-10 Pedro Alves <palves@redhat.com>
16065
16066 * breakpoint.c (read_uploaded_action)
16067 (create_tracepoint_from_upload): Adjust to use
16068 gdb::unique_xmalloc_ptr.
16069 * ctf.c (ctf_write_uploaded_tp):
16070 (SET_ARRAY_FIELD): Use emplace_back.
16071 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16072 * tracefile-tfile.c (tfile_write_uploaded_tp):
16073 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16074 gdb::unique_xmalloc_ptr.
16075 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16076 at_string, cond_string, cmd_strings>: Replace char pointers
16077 with gdb::unique_xmalloc_ptr.
16078
16079 2019-01-10 Pedro Alves <palves@redhat.com>
16080
16081 * solib-target.c (library_list_start_library): Don't xstrdup name.
16082
16083 2019-01-10 Pedro Alves <palves@redhat.com>
16084
16085 * mdebugread.c (parse_partial_symbols): Use
16086 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16087
16088 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16089
16090 * linux-fork.c (scoped_switch_fork_info)
16091 <~scoped_switch_fork_info>: Fix incorrect variable name.
16092
16093 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16094
16095 * linux-fork.c (scoped_switch_fork_info)
16096 <scoped_switch_fork_info>: Make explicit.
16097 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16098
16099 2019-01-10 Tom Tromey <tom@tromey.com>
16100
16101 * objfiles.h (objfile::reset_psymtabs): Update.
16102 * objfiles.c (objfile::objfile): Update.
16103 * psymtab.h (psymtab_storage::obstack): Update.
16104 (psymtab_storage::m_obstack): Use gdb::optional.
16105 (class psymtab_storage): Update comment. Remove objfile
16106 parameter.
16107 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16108
16109 2019-01-10 Tom Tromey <tom@tromey.com>
16110
16111 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16112 <free_psymtabs>: Now private.
16113 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16114 (allocate_psymtab): Use new method.
16115
16116 2019-01-10 Tom Tromey <tom@tromey.com>
16117
16118 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16119 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16120 * mdebugread.c (parse_partial_symbols): Use
16121 allocate_dependencies.
16122 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16123 allocate_dependencies.
16124 (process_psymtab_comp_unit_reader)
16125 (build_type_psymtab_dependencies): Likewise.
16126 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16127
16128 2019-01-10 Tom Tromey <tom@tromey.com>
16129
16130 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16131 PSYMBOL_SET_LANGUAGE.
16132 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16133
16134 2019-01-10 Tom Tromey <tom@tromey.com>
16135
16136 * psymtab.h (psymtab_storage::obstack): New method.
16137 <m_obstack>: Rename from obstack; now private.
16138 * psymtab.c (psymtab_storage): Update.
16139 * dwarf2read.c (create_addrmap_from_index)
16140 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16141 Update.
16142
16143 2019-01-10 Tom Tromey <tom@tromey.com>
16144
16145 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16146 * objfiles.h (objfile::reset_psymtabs): New method.
16147
16148 2019-01-10 Tom Tromey <tom@tromey.com>
16149
16150 * symmisc.c (print_symbol_bcache_statistics): Update.
16151 (print_objfile_statistics): Update.
16152 * symfile.c (reread_symbols): Update.
16153 * psymtab.h (class psymtab_storage): New.
16154 * psymtab.c (psymtab_storage): New constructor.
16155 (~psymtab_storage): New destructor.
16156 (require_partial_symbols): Update.
16157 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16158 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16159 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16160 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16161 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16162 (start_psymtab_common, end_psymtab_common)
16163 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16164 (allocate_psymtab): Update.
16165 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16166 Update.
16167 (dump_psymtab_addrmap, maintenance_print_psymbols)
16168 (maintenance_check_psymtabs): Update.
16169 (class objfile_psymtabs): Move to objfiles.h.
16170 * psympriv.h (discard_psymtab): Now inline.
16171 (psymtab_discarder::psymtab_discarder): Update.
16172 (psymtab_discarder::~psymtab_discarder): Update.
16173 (ALL_OBJFILE_PSYMTABS): Rewrite.
16174 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16175 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16176 Remove fields.
16177 <partial_symtabs>: New field.
16178 (class objfile_psymtabs): Move from psymtab.h. Update.
16179 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16180 psymbol_cache.
16181 (objfile::~objfile): Don't destroy psymbol_cache.
16182 * mdebugread.c (parse_partial_symbols): Update.
16183 * dwarf2read.c (create_addrmap_from_index)
16184 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16185 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16186 (add_partial_subprogram, dwarf2_ranges_read): Update.
16187 * dwarf-index-write.c (write_address_map)
16188 (write_one_signatured_type, recursively_write_psymbols)
16189 (class debug_names, class debug_names, write_psymtabs_to_index):
16190 Update.
16191
16192 2019-01-10 Tom Tromey <tom@tromey.com>
16193
16194 * symtab.h (SYMBOL_SET_NAMES): Update.
16195 (symbol_set_names): Update.
16196 (MSYMBOL_SET_NAMES): Update.
16197 * symtab.c (symbol_set_names): Change argument to be an
16198 objfile_per_bfd_storage.
16199 * psymtab.c (add_psymbol_to_bcache): Update.
16200 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16201
16202 2019-01-10 Tom Tromey <tom@tromey.com>
16203
16204 * symtab.c (create_demangled_names_hash): Change argument to be an
16205 objfile_per_bfd_storage.
16206 (symbol_set_names): Update.
16207
16208 2019-01-10 Tom Tromey <tom@tromey.com>
16209
16210 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16211 init_psymbol_list.
16212 * psymtab.c (init_psymbol_list): Do nothing if already called.
16213 * psympriv.h (init_psymbol_list): Add comment.
16214 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16215 init_psymbol_list.
16216 * dbxread.c (dbx_symfile_read): Unconditionally call
16217 init_psymbol_list.
16218
16219 2019-01-10 Tom Tromey <tom@tromey.com>
16220
16221 * xcoffread.c (scan_xcoff_symtab): Update.
16222 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16223 "where".
16224 * mdebugread.c (parse_partial_symbols)
16225 (handle_psymbol_enumerators): Update.
16226 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16227 * dbxread.c (read_dbx_symtab): Update.
16228 * psympriv.h (psymbol_placement): New enum.
16229 (add_psymbol_to_list): Update.
16230
16231 2019-01-10 Tom Tromey <tom@tromey.com>
16232
16233 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16234 static_psymbols parameters.
16235 (scan_xcoff_symtab): Update.
16236 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16237 static_psymbols parameters.
16238 * psympriv.h (start_psymtab_common): Update.
16239 * mdebugread.c (parse_partial_symbols): Update.
16240 * dwarf2read.c (create_partial_symtab): Update.
16241 * dbxread.c (read_dbx_symtab): Update.
16242 (start_psymtab): Remove global_psymbols and static_psymbols
16243 parameters.
16244
16245 2019-01-10 Tom Tromey <tom@tromey.com>
16246
16247 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16248 * psymtab.c (allocate_psymtab): Add comment.
16249 * psympriv.h (allocate_psymtab): Add comment.
16250 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16251 initializations.
16252 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16253
16254 2019-01-10 Tom Tromey <tom@tromey.com>
16255
16256 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16257 Don't declare.
16258 * mipsread.c: Include mdebugread.h.
16259 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16260 Declare.
16261 * elfread.c: Include mdebugread.h.
16262
16263 2019-01-09 Tom Tromey <tom@tromey.com>
16264
16265 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16266 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16267 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16268 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16269 (psym_lookup_symbol, psym_find_last_source_symtab)
16270 (psym_forget_cached_source_info, psym_print_stats)
16271 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16272 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16273 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16274 (psym_find_compunit_symtab_by_address)
16275 (maintenance_print_psymbols, maintenance_info_psymtabs)
16276 (maintenance_check_psymtabs): Use ranged for.
16277 * psymtab.h (class objfile_psymtabs): New.
16278 (require_partial_symbols): Return objfile_psymtabs.
16279 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16280
16281 2019-01-09 Tom Tromey <tom@tromey.com>
16282
16283 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16284 (find_pc_mapped_section, list_overlays_command)
16285 (map_overlay_command, unmap_overlay_command)
16286 (simple_overlay_update): Use all_objfiles.
16287 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16288 * printcmd.c (info_symbol_command): Use all_objfiles.
16289 * objfiles.h (ALL_OBJSECTIONS): Remove.
16290 * maint.c (maintenance_translate_address): Use all_objfiles.
16291 * gcore.c (gcore_create_callback): Use all_objfiles.
16292 (objfile_find_memory_regions): Likewise.
16293
16294 2019-01-09 Tom Tromey <tom@tromey.com>
16295
16296 * symtab.c (find_line_symtab, info_sources_command)
16297 (make_source_files_completion_list): Use objfile_compunits.
16298 * source.c (select_source_symtab): Use objfile_compunits.
16299 * objfiles.h (struct objfile): Update comment.
16300 (ALL_OBJFILES): Remove.
16301 (ALL_FILETABS): Remove.
16302 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16303 objfile_compunits.
16304
16305 2019-01-09 Tom Tromey <tom@tromey.com>
16306
16307 * symmisc.c (print_objfile_statistics, dump_objfile)
16308 (maintenance_print_symbols): Use compunit_filetabs.
16309 * source.c (forget_cached_source_info_for_objfile): Use
16310 compunit_filetabs.
16311 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16312 (ALL_FILETABS): Use compunit_filetabs.
16313 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16314 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16315
16316 2019-01-09 Tom Tromey <tom@tromey.com>
16317
16318 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16319 (compunit_filetabs): New.
16320 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16321 compunit_filetabs.
16322 (info_sources_command, make_source_files_completion_list): Remove
16323 declaration.
16324 * symmisc.c (print_objfile_statistics, dump_objfile)
16325 (maintenance_print_symbols): Remove declaration.
16326 (maintenance_info_symtabs): Use compunit_filetabs.
16327 (maintenance_info_line_tables): Likewise.
16328 * source.c (select_source_symtab): Change local variable name.
16329 (forget_cached_source_info_for_objfile): Remove declaration.
16330 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16331 * objfiles.c (objfile_relocate1): Remove declaration.
16332 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16333 declaration.
16334 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16335 * coffread.c (coff_symtab_read): Remove declaration.
16336 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16337 compunit_filetabs.
16338
16339 2019-01-09 Tom Tromey <tom@tromey.com>
16340
16341 * symtab.c (lookup_objfile_from_block)
16342 (find_pc_sect_compunit_symtab, search_symbols)
16343 (default_collect_symbol_completion_matches_break_on): Use
16344 objfile_compunits.
16345 * objfiles.h (ALL_COMPUNITS): Remove.
16346 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16347 * cp-support.c (add_symbol_overload_list_qualified): Use
16348 objfile_compunits.
16349 * ada-lang.c (ada_collect_symbol_completion_matches)
16350 (ada_add_global_exceptions): Use objfile_compunits.
16351
16352 2019-01-09 Tom Tromey <tom@tromey.com>
16353
16354 * source.c (select_source_symtab)
16355 (forget_cached_source_info_for_objfile): Remove declaration.
16356 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16357 declaration.
16358 * maint.c (count_symtabs_and_blocks): Remove declaration.
16359 * cp-support.c (add_symbol_overload_list_qualified): Remove
16360 declaration.
16361 * coffread.c (coff_symtab_read): Remove declaration.
16362 * symtab.c (lookup_symbol_in_objfile_symtabs)
16363 (basic_lookup_transparent_type_1): Use objfile_compunits.
16364 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16365 (info_sources_command, search_symbols)
16366 (default_collect_symbol_completion_matches_break_on)
16367 (make_source_files_completion_list): Remove declaration.
16368 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16369 (ada_collect_symbol_completion_matches)
16370 (ada_add_global_exceptions): Remove declaration.
16371 * linespec.c (iterate_over_all_matching_symtabs): Use
16372 objfile_compunits.
16373 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16374 (class objfile_compunits): New.
16375 (ALL_COMPUNITS): Use objfile_compunits.
16376 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16377 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16378 objfile_compunits.
16379 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16380
16381 2019-01-09 Tom Tromey <tom@tromey.com>
16382
16383 * symtab.c (search_symbols)
16384 (default_collect_symbol_completion_matches_break_on): Use
16385 objfile_msymbols.
16386 * ada-lang.c (ada_lookup_simple_minsym)
16387 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16388 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16389 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16390 objfile_msymbols.
16391 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16392 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16393 * objc-lang.c (find_methods): Use objfile_msymbols.
16394 (info_selectors_command, info_classes_command): Likewise.
16395 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16396 * objfiles.h (class objfile_msymbols): New.
16397 (ALL_OBJFILE_MSYMBOLS): Remove.
16398 (ALL_MSYMBOLS): Remove.
16399
16400 2019-01-09 Tom Tromey <tom@tromey.com>
16401
16402 * common/next-iterator.h (next_adapter): Add Iterator template
16403 parameter.
16404 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16405 (class all_objfiles_safe): New.
16406 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16407 * objfiles.c (put_objfile_before): Update comment.
16408 (add_separate_debug_objfile): Likewise.
16409 (free_all_objfiles): Use all_objfiles_safe.
16410 (objfile_purge_solibs): Likewise.
16411
16412 2019-01-09 Tom Tromey <tom@tromey.com>
16413
16414 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16415 (expand_symtab_containing_pc, lookup_static_symbol)
16416 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16417 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16418 all_objfiles.
16419 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16420 * breakpoint.c (create_overlay_event_breakpoint)
16421 (create_longjmp_master_breakpoint)
16422 (create_std_terminate_master_breakpoint)
16423 (create_exception_master_breakpoint): Use all_objfiles.
16424 * linux-thread-db.c (try_thread_db_load_from_pdir)
16425 (has_libpthread): Use all_objfiles.
16426 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16427 * linespec.c (iterate_over_all_matching_symtabs)
16428 (search_minsyms_for_name): Use all_objfiles.
16429 * maint.c (maintenance_info_sections): Use all_objfiles.
16430 * main.c (captured_main_1): Use all_objfiles.
16431 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16432 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16433 * guile/scm-pretty-print.c
16434 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16435 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16436 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16437 (maintenance_print_msymbols): Use all_objfiles.
16438 * source.c (select_source_symtab): Use all_objfiles.
16439 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16440 * symfile.c (remove_symbol_file_command)
16441 (expand_symtabs_matching, map_symbol_filenames): Use
16442 all_objfiles.
16443 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16444 all_objfiles.
16445 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16446 * objc-lang.c (find_methods): Use all_objfiles.
16447 * objfiles.c (have_partial_symbols, have_full_symbols)
16448 (have_minimal_symbols, qsort_cmp)
16449 (default_iterate_over_objfiles_in_search_order): Use
16450 all_objfiles.
16451 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16452 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16453 (maintenance_check_psymtabs): Use all_objfiles.
16454 (ALL_PSYMTABS): Remove.
16455 * compile/compile-object-run.c (do_module_cleanup): Use
16456 all_objfiles.
16457 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16458 * cp-support.c (add_symbol_overload_list_qualified): Use
16459 all_objfiles.
16460 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16461 Use all_objfiles.
16462 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16463 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16464 all_objfiles.
16465 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16466 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16467 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16468 Uses all_objfiles.
16469 * solib.c (solib_read_symbols): Use all_objfiles
16470
16471 2019-01-09 Tom Tromey <tom@tromey.com>
16472
16473 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16474 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16475 all_objfiles.
16476 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16477 * symmisc.c (print_symbol_bcache_statistics)
16478 (print_objfile_statistics, maintenance_print_objfiles)
16479 (maintenance_info_symtabs, maintenance_check_symtabs)
16480 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16481 all_objfiles.
16482 * source.c (forget_cached_source_info): Use all_objfiles.
16483 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16484 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16485 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16486 * objfiles.c (update_section_map): Use all_objfiles.
16487 (shared_objfile_contains_address_p): Likewise.
16488 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16489 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16490
16491 2019-01-09 Tom Tromey <tom@tromey.com>
16492
16493 * common/next-iterator.h: New file.
16494 * objfiles.h (class all_objfiles): New.
16495 (struct objfile_iterator): New.
16496
16497 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16498
16499 * NEWS: Move the description of the changed "frame", "select-frame",
16500 and "info frame" commands to the Changed commands section.
16501
16502 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16503
16504 * gdbtypes.c (check_stub_method_group): Remove handling of old
16505 mangling schemes.
16506 * linespec.c (find_methods): Likewise.
16507 * stabsread.c (read_member_functions): Likewise.
16508 * valops.c (search_struct_method): Likewise.
16509 (value_struct_elt_for_reference): Likewise.
16510 * NEWS: Mention this change.
16511
16512 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16513
16514 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16515 print_source_lines.
16516 * source.c (print_source_lines_base): Update line number check.
16517 (print_source_lines): New function.
16518 (source_lines_range::source_lines_range): New function.
16519 * source.h (class source_lines_range): New class.
16520 (print_source_lines): New declaration.
16521
16522 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16523
16524 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16525
16526 2019-01-08 Tom Tromey <tom@tromey.com>
16527 Simon Marchi <simon.marchi@ericsson.com>
16528
16529 PR gdb/24060
16530 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16531 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16532 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16533 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16534 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16535 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16536
16537 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16538
16539 * source.c (select_source_symtab): Move header comment to
16540 declaration in source.h.
16541 (forget_cached_source_info_for_objfile): Likewise.
16542 (forget_cached_source_info): Likewise.
16543 (identify_source_line): Likewise.
16544 * source.h (identify_source_line): Move declaration from symtab.h
16545 and add comment from source.c
16546 (print_source_lines): Likewise.
16547 (forget_cached_source_info_for_objfile): Likewise.
16548 (forget_cached_source_info): Likewise.
16549 (select_source_symtab): Likewise.
16550 (enum print_source_lines_flag): Move definition from symtab.h.
16551 * symtab.h (identify_source_line): Move declaration to source.h.
16552 (print_source_lines): Likewise.
16553 (forget_cached_source_info_for_objfile): Likewise.
16554 (forget_cached_source_info): Likewise.
16555 (select_source_symtab): Likewise.
16556 (enum print_source_lines_flag): Move definition to source.h.
16557 * tui/tui-hooks.c: Add 'source.h' include.
16558
16559 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16560
16561 * source.c (print_source_lines_base): Handle requests to print
16562 reverse line number sequences, and guard against empty lines
16563 string.
16564
16565 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16566
16567 * source.c (print_source_lines_base): Fix skip of '\r' if next
16568 character is '\n'.
16569
16570 2019-01-06 Tom Tromey <tom@tromey.com>
16571
16572 * c-exp.y (struct c_parse_state) <macro_original_text,
16573 expansion_obstack>: New member.
16574 (macro_original_text, expansion_obstack): Remove globals.
16575 (scan_macro_expansion, scanning_macro_expansion)
16576 (finished_macro_expansion): Update.
16577 (scan_macro_cleanup): Remove.
16578 (yylex, c_parse): Update.
16579
16580 2019-01-06 Tom Tromey <tom@tromey.com>
16581
16582 * c-exp.y (struct c_parse_state) <strings>: New member.
16583 (operator_stoken): Update.
16584
16585 2019-01-06 Tom Tromey <tom@tromey.com>
16586
16587 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16588 (union type_stack_elt) <typelist_val>: Now a pointer to
16589 std::vector.
16590 (type_stack_cleanup): Don't declare.
16591 (push_typelist): Update.
16592 * parse.c (pop_typelist): Return a std::vector.
16593 (push_typelist): Take a std::vector.
16594 (follow_types): Update. Do not free args.
16595 (type_stack_cleanup): Remove.
16596 * c-exp.y (struct c_parse_state): New.
16597 (cpstate): New global.
16598 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16599 (nonempty_typelist): Update.
16600 (func_mod): Create a new vector.
16601 (c_parse): Create a c_parse_state.
16602 (check_parameter_typelist): Do not delete params.
16603 (function_method): Update. Do not delete type_list.
16604
16605 2019-01-06 Tom Tromey <tom@tromey.com>
16606
16607 PR gdb/28155:
16608 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16609 check_typedef.
16610 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16611 (print_return_value): Likewise.
16612
16613 2019-01-05 Tom Tromey <tom@tromey.com>
16614
16615 * contrib/cleanup_check.py: Remove.
16616 * contrib/gcc-with-excheck: Remove.
16617 * contrib/exsummary.py: Remove.
16618 * contrib/excheck.py: Remove.
16619
16620 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16621
16622 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16623 NULL. Initialize tpprev to NULL instead of assigning it
16624 to NULL on the next statement.
16625 * windows-nat.c (windows_delete_thread): Remove check for
16626 main_thread_id before printing thread exit notifications.
16627 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16628 Remove thread ID check against main_thread_id.
16629 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16630 windows_delete_thread.
16631 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16632
16633 2019-01-04 Tom Tromey <tom@tromey.com>
16634
16635 * compile/compile.c (_initialize_compile): Use upper case for
16636 metasyntactic variables.
16637 * symmisc.c (_initialize_symmisc): Use upper case for
16638 metasyntactic variables.
16639 * psymtab.c (_initialize_psymtab): Use upper case for
16640 metasyntactic variables.
16641 * demangle.c (demangle_command): Use upper case for metasyntactic
16642 variables.
16643 (_initialize_demangler): Likewise.
16644 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16645 variables.
16646
16647 2019-01-03 Tom Tromey <tom@tromey.com>
16648
16649 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16650
16651 2019-01-03 Tom Tromey <tom@tromey.com>
16652
16653 * python/py-symtab.c (salpy_str): Update.
16654 (struct salpy_sal_object) <symtab>: Now a PyObject.
16655 (salpy_dealloc): Update.
16656 (del_objfile_sal): Use gdbpy_ref.
16657
16658 2019-01-03 Tom Tromey <tom@tromey.com>
16659
16660 * python/py-type.c (convert_field): Use new_reference. Return
16661 gdbpy_ref.
16662 (make_fielditem): Return gdbpy_ref.
16663 (typy_fields): Update.
16664 (typy_getitem): Update.
16665 (field_name): Return gdbpy_ref. Use new_reference.
16666 (typy_iterator_iternext): Update.
16667
16668 2019-01-03 Tom Tromey <tom@tromey.com>
16669
16670 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16671
16672 2019-01-03 Tom Tromey <tom@tromey.com>
16673
16674 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16675 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16676 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16677 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16678 (pspy_set_type_printers): Likewise.
16679 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16680 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16681 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16682 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16683 (objfpy_set_type_printers): Likewise.
16684
16685 2019-01-03 Tom Tromey <tom@tromey.com>
16686
16687 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16688 (gdbpy_print_stack): Use gdbpy_err_fetch.
16689 * python/python-internal.h (class gdbpy_err_fetch): New class.
16690 (class gdbpy_enter) <m_error_type, m_error_value,
16691 m_error_traceback>: Remove.
16692 <m_error>: New member.
16693 (gdbpy_exception_to_string): Don't declare.
16694 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16695 * python/py-value.c (convert_value_from_python): Use
16696 gdbpy_err_fetch.
16697 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16698 gdbpy_exception_to_string.
16699 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16700 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16701 gdbpy_err_fetch.
16702
16703 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16704
16705 * linux-nat.c (delete_lwp_cleanup): Delete.
16706 (struct lwp_deleter): New struct.
16707 (lwp_info_up): New typedef.
16708 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16709 lwp_info_up.
16710
16711 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16712
16713 * linux-fork.c (class scoped_switch_fork_info): New class.
16714 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16715
16716 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16717
16718 * valops.c (find_overload_match): Remove use of null_cleanup, and
16719 calls to do_cleanups.
16720
16721 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16722
16723 * compile/compile-cplus-types.c
16724 (compile_cplus_instance::decl_name): Handle changes to
16725 cp_func_name.
16726 * cp-support.c (cp_func_name): Update header comment, update
16727 return type.
16728 * cp-support.h (cp_func_name): Update return type in declaration.
16729 * valops.c (find_overload_match): Move temp_func local to top
16730 level of function and change its type. Use temp_func to hold and
16731 delete temporary string obtained from cp_func_name.
16732
16733 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16734
16735 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16736 gdb::char_vector, remove cleanup, and update uses of `msg`.
16737
16738 2019-01-03 Jim Wilson <jimw@sifive.com>
16739
16740 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16741
16742 2019-01-02 Tom Tromey <tom@tromey.com>
16743
16744 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16745 (tdesc_parse_xml): Remove cleanups.
16746 * target-descriptions.h (make_cleanup_free_target_description):
16747 Don't declare.
16748 (target_desc_deleter): New struct.
16749 (target_desc_up): New typedef.
16750 * target-descriptions.c (target_desc_deleter::operator()): Rename
16751 from free_target_description.
16752 (make_cleanup_free_target_description): Remove.
16753
16754 2019-01-02 Tom Tromey <tom@tromey.com>
16755
16756 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16757 constructor, destructor.
16758 (linespec_parser): Remove typedef.
16759 (~linespec_parser): Rename from linespec_parser_delete.
16760 (linespec_lex_to_end, linespec_complete_label)
16761 (linespec_complete): Update.
16762 (decode_line_full): Remove cleanups.
16763 (decode_line_1): Update.
16764
16765 2019-01-02 Tom Tromey <tom@tromey.com>
16766
16767 * python/python-internal.h (inferior_to_inferior_object): Change
16768 return type.
16769 * python/py-exitedevent.c (create_exited_event_object): Update.
16770 * python/py-inferior.c (inferior_to_inferior_object): Return
16771 gdbpy_ref.
16772 (python_new_inferior, python_inferior_deleted)
16773 (thread_to_thread_object, delete_thread_object)
16774 (build_inferior_list, gdbpy_selected_inferior): Update.
16775 * python/py-infthread.c (create_thread_object): Update. Also fail
16776 if inferior_to_inferior_object fails.
16777
16778 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16779
16780 * inferior.h (class inferior) <displaced_step_state>: New field.
16781 * infrun.h (struct displaced_step_state): Move here from
16782 infrun.c. Initialize fields, add constructor.
16783 <inf>: Remove field.
16784 <reset>: New method.
16785 * infrun.c (struct displaced_step_inferior_state): Move to
16786 infrun.h.
16787 (displaced_step_inferior_states): Remove.
16788 (get_displaced_stepping_state): Adust.
16789 (displaced_step_in_progress_any_inferior): Adjust.
16790 (displaced_step_in_progress_thread): Adjust.
16791 (displaced_step_in_progress): Adjust.
16792 (add_displaced_stepping_state): Remove.
16793 (get_displaced_step_closure_by_addr): Adjust.
16794 (remove_displaced_stepping_state): Remove.
16795 (infrun_inferior_exit): Call displaced_step_state.reset.
16796 (use_displaced_stepping): Don't check for NULL.
16797 (displaced_step_prepare_throw): Call
16798 get_displaced_stepping_state.
16799 (displaced_step_fixup): Don't check for NULL.
16800 (prepare_for_detach): Don't check for NULL.
16801
16802 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16803
16804 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16805 in case of call that did not complete.
16806
16807 2019-01-02 Andrey Utkin <autkin@undo.io>
16808
16809 * symfile.c (find_separate_debug_file): Fix search of debug files for
16810 remote debuggee.
16811
16812 2019-01-02 Tom Tromey <tom@tromey.com>
16813
16814 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16815 indentation.
16816 * python/py-frame.c (frapy_older): Remove cast.
16817 (frapy_newer): Likewise.
16818 * python/py-breakpoint.c (local_setattro): Remove cast.
16819 * python/py-arch.c (archpy_name): Remove local variable.
16820 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16821
16822 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16823
16824 * unittests/basic_string_view/element_access/char/empty.cc:
16825 Fix year range in copyright header.
16826
16827 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16828
16829 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16830 Delete.
16831 <operator==>: Update with for removed field.
16832 <hash>: Likewise.
16833 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16834 <isa_features>: ...this.
16835 <abi_features>: New field.
16836 (riscv_isa_flen): Update comment.
16837 (riscv_abi_xlen): New declaration.
16838 (riscv_abi_flen): New declaration.
16839 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16840 isa_features.
16841 (riscv_abi_xlen): New function.
16842 (riscv_isa_flen): Update to get answer from isa_features.
16843 (riscv_abi_flen): New function.
16844 (riscv_has_fp_abi): Update to get answer from abi_features.
16845 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16846 xlen and flen.
16847 (riscv_call_info) <xlen, flen>: Update comment.
16848 (riscv_call_arg_struct): Remove invalid assertions
16849 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16850 is removed.
16851 (riscv_gdbarch_init): Gather isa features and abi features
16852 separately, ensure both match on the gdbarch when reusing an old
16853 gdbarch. Relax an error check to allow 32-bit abi float to run on
16854 a target with 64-bit float hardware.
16855
16856 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16857
16858 * source.c (search_command_helper): Stop reverse search
16859 when line 1 has been searched.
16860
16861 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16862
16863 * record-full.c (record_full_base_target::close): Rewrite
16864 record_full_core_buf_list free logic.
16865
16866 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16867
16868 * break-catch-syscall.c (print_one_catch_syscall): xfree
16869 the last text.
16870
16871 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16872
16873 * top.c (print_gdb_version): Update Copyright year in version
16874 message.
16875
16876 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16877
16878 Update copyright year range in all GDB files.
16879
16880 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16881
16882 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16883
16884 For older changes see ChangeLog-2018.
16885 \f
16886 Local Variables:
16887 mode: change-log
16888 left-margin: 8
16889 fill-column: 74
16890 version-control: never
16891 coding: utf-8
16892 End:
16893
This page took 0.472305 seconds and 4 git commands to generate.