Guard against 'current_directory == NULL' on gdb_abspath (PR gdb/23613)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
4 PR gdb/23613
5 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
6 * corelow.c: Include 'gdbsupport/pathstuff.h'.
7 (core_target_open): Use 'gdb_abspath'.
8 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
9 'current_directory == NULL' case.
10 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
11 explain what happens when 'current_directory' is NULL.
12 * go32-nat.c (go32_nat_target::wait): Check if
13 'current_directory' is NULL before call to 'chdir'.
14 * source.c (add_path): Use 'gdb_abspath'.
15 * top.c: Include 'gdbsupport/pathstuff.h'.
16 (init_history): Use 'gdb_abspath'.
17 (set_history_filename): Likewise.
18 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
19 (tfile_target_open): Use 'gdb_abspath'.
20
21 2019-12-13 Tom Tromey <tromey@adacore.com>
22
23 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
24 warning or error.
25
26 2019-12-13 Tom Tromey <tromey@adacore.com>
27
28 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
29
30 2019-12-13 Tom Tromey <tromey@adacore.com>
31
32 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
33
34 2019-12-13 Tom Tromey <tromey@adacore.com>
35
36 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
37
38 2019-12-13 Tom Tromey <tromey@adacore.com>
39
40 * gdbsupport/common-utils.c (string_printf, string_vprintf)
41 (string_vappendf): Add ARI comment.
42
43 2019-12-13 Tom Tromey <tromey@adacore.com>
44
45 * contrib/ari/gdb_ari.sh: Remove "fix" call for
46 floatformat_to_double.
47 * target-float.c (host_float_ops<T>::from_target): Add ARI
48 comment.
49
50 2019-12-13 Tom Tromey <tromey@adacore.com>
51
52 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
53 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
54 ARI marker to abort.
55 * event-top.c (handle_sigsegv): Add ARI marker to abort.
56
57 2019-12-13 Tom Tromey <tromey@adacore.com>
58
59 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
60
61 2019-12-13 Tom Tromey <tromey@adacore.com>
62
63 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
64
65 2019-12-13 Tom Tromey <tromey@adacore.com>
66
67 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
68 checks.
69
70 2019-12-13 Tom Tromey <tromey@adacore.com>
71
72 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
73 end>: No longer "const".
74
75 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * jit.c: Fix indentation, replace spaces with tabs where
78 applicable.
79
80 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
81
82 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
83
84 2019-12-12 Tom Tromey <tom@tromey.com>
85
86 * objfiles.h (struct objfile) <partial_symtabs>: Now a
87 unique_ptr.
88
89 2019-12-12 Tom Tromey <tom@tromey.com>
90
91 * progspace.h (objfile_list): New typedef.
92 (class unwrapping_objfile_iterator)
93 (struct unwrapping_objfile_range): Newl
94 (struct program_space) <objfiles_range>: Change type.
95 <objfiles>: Change return type.
96 <add_objfile>: Change type of "objfile" parameter.
97 <objfiles_list>: Now a list of shared_ptr.
98 * progspace.c (program_space::add_objfile): Change type of
99 "objfile". Update.
100 (program_space::remove_objfile): Update.
101 * objfiles.h (struct objfile) <~objfile>: Make public.
102 * objfiles.c (objfile::make): Update.
103 (objfile::unlink): Don't call delete.
104
105 2019-12-12 Tom Tromey <tom@tromey.com>
106
107 * symfile.c (symbol_file_clear): Update.
108 * progspace.h (struct program_space) <free_all_objfiles>: Declare
109 method.
110 * progspace.c (program_space::free_all_objfiles): New method.
111 * objfiles.h (free_all_objfiles): Don't declare.
112 * objfiles.c (free_all_objfiles): Move to program_space.
113
114 2019-12-12 Tom Tromey <tom@tromey.com>
115
116 * progspace.c (program_space::add_objfile)
117 (program_space::remove_objfile): Update.
118 (program_space::multi_objfile_p): Remove.
119 * objfiles.h (struct objfile) <next>: Remove.
120 * objfiles.c (objfile::objfile): Update.
121 (put_objfile_before): Update.
122 (unlink_objfile): Update.
123 * progspace.h (object_files): Remove.
124 (struct program_space) <objfiles_head>: Remove.
125 <objfiles_list>: New member.
126 <objfiles_range, objfiles_safe_range>: Change type.
127 (objfiles): Change return type.
128 (objfiles_safe): Update.
129 (multi_objfile_p): Rewrite and inline.
130 (object_files): Remove macro.
131
132 2019-12-12 Tom Tromey <tom@tromey.com>
133
134 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
135 second constructor.
136 (basic_safe_range): New class.
137
138 2019-12-12 Tom Tromey <tom@tromey.com>
139
140 * progspace.c (program_space::multi_objfile_p): New method.
141 * printcmd.c (info_symbol_command): Update.
142 * maint.c (maintenance_translate_address): Update.
143 * objfiles.h (MULTI_OBJFILE_P): Remove.
144 * progspace.h (struct program_space) <multi_objfile_p>: New
145 method.
146
147 2019-12-12 Tom Tromey <tom@tromey.com>
148
149 * progspace.h (struct program_space) <remove_objfile>: Declare.
150 * progspace.c (program_space::remove_objfile): New method.
151 * objfiles.c (unlink_objfile): Remove.
152 (objfile::unlink): Call remove_objfile.
153 (objfile): Don't call unlink_objfile.
154
155 2019-12-12 Tom Tromey <tom@tromey.com>
156
157 * progspace.h (struct program_space) <add_objfile>: Declare
158 method.
159 * progspace.c (program_space::add_objfile): New method.
160 * objfiles.c (~objfile): Don't unlink objfile.
161 (put_objfile_before): Remove.
162 (add_separate_debug_objfile): Don't call put_objfile_before.
163 (objfile::make): Call add_objfile. Set new_objfiles_available on
164 the per-program-space data.
165
166 2019-12-12 Tom Tromey <tom@tromey.com>
167
168 * symfile.c (syms_from_objfile_1): Use objfile_up.
169 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
170 method.
171 (reread_symbols): Use objfile_up.
172 * solib.c (update_solib_list, reload_shared_libraries_1): Call
173 unlink method.
174 * objfiles.h (struct objfile) <~objfile>: Now private.
175 <unlink>: New method.
176 (struct objfile_deleter): New.
177 (objfile_up): New typedef.
178 * objfiles.c (objfile::unlink): New method.
179 (free_objfile_separate_debug, free_all_objfiles)
180 (objfile_purge_solibs): Use it.
181 * jit.c (jit_unregister_code): Remove.
182 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
183 objfile.
184 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
185 objfile.
186 * compile/compile-object-load.c (compile_object_load): Use
187 objfile_up.
188
189 2019-12-12 Tom Tromey <tom@tromey.com>
190
191 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
192 objfile::make.
193 * objfiles.h (struct objjfile) <make>: No longer inline.
194 (add_separate_debug_objfile): Don't declare.
195 * objfiles.c (add_separate_debug_objfile): Now static.
196 (objfile::make): Move from objfiles.h. Call
197 add_separate_debug_objfile. Add "parent" parameter.
198
199 2019-12-12 Tom Tromey <tom@tromey.com>
200
201 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
202 * objfiles.h (struct objfile): Make constructor private.
203 <make>: New static method.
204 * jit.c (jit_object_close_impl): Update.
205
206 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
207
208 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
209 gdb::byte_vector.
210
211 2019-12-12 Tom Tromey <tromey@adacore.com>
212
213 * xml-support.c (xml_fetch_content_from_file): Don't call
214 malloc_failure.
215 * utils.h (class gdb_argv): Remove malloc_failure comment.
216 * utils.c (gdb_argv::reset): Don't call malloc_failure.
217
218 2019-12-12 Tom Tromey <tromey@adacore.com>
219
220 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
221 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
222 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
223 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
224 * riscv-ravenscar-thread.c: New file.
225 * riscv-ravenscar-thread.h: New file.
226 * riscv-tdep.c (riscv_gdbarch_init): Call
227 register_riscv_ravenscar_ops.
228
229 2019-12-12 Tom Tromey <tromey@adacore.com>
230
231 * gdbsupport/thread-pool.c (set_thread_name): Use
232 ATTRIBUTE_UNUSED.
233
234 2019-12-12 Luis Machado <luis.machado@linaro.org>
235
236 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
237 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
238 macros.
239
240 2019-12-11 Tom Tromey <tom@tromey.com>
241
242 * tui/tui-win.c (tui_set_win_height_command): Call
243 tui_adjust_window_height.
244 (tui_adjust_win_heights, new_height_ok): Remove.
245 * tui/tui-layout.h (tui_adjust_window_height): Declare.
246 * tui/tui-layout.c (tui_adjust_window_height): New function.
247
248 2019-12-11 Tom Tromey <tom@tromey.com>
249
250 * tui/tui-win.c (tui_resize_all): Remove code, call
251 tui_apply_current_layout.
252
253 2019-12-11 Tom Tromey <tom@tromey.com>
254
255 * tui/tui-layout.h (tui_apply_current_layout): Declare.
256 * tui/tui-layout.c (standard_layouts, applied_layout): New
257 globals.
258 (tui_apply_current_layout): New function.
259 (show_layout): Set applied_layout. Call
260 tui_apply_current_layout.
261 (show_source_command, show_disasm_command)
262 (show_source_disasm_command, show_data)
263 (show_source_or_disasm_and_command): Remove.
264 (initialize_layouts): New function.
265 (_initialize_tui_layout): Call initialize_layouts.
266
267 2019-12-11 Tom Tromey <tom@tromey.com>
268
269 * tui/tui-layout.h (class tui_layout_base)
270 (class tui_layout_window, class tui_layout_split): New.
271 * tui/tui-layout.c (tui_get_window_by_name)
272 (tui_layout_window::clone, tui_layout_window::apply)
273 (tui_layout_window::get_sizes, tui_layout_window::add_split)
274 (tui_layout_split::add_window, tui_layout_split::clone)
275 (tui_layout_split::get_sizes)
276 (tui_layout_split::set_weights_from_heights)
277 (tui_layout_split::adjust_size, tui_layout_split::apply): New
278 functions.
279 (tui_layout_split::add_split, tui_layout_split::add_split)
280 (tui_layout_split::set_weights_from_heights)
281 (tui_layout_split::set_weights_from_heights): New functions.
282
283 2019-12-11 Tom Tromey <tom@tromey.com>
284
285 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
286 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
287 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
288 * tui/tui-data.h (struct tui_point): Remove.
289 (struct tui_gen_win_info) <origin>: Remove.
290 <x, y>: New fields.
291 * tui/tui-command.c (tui_cmd_window::resize): Update.
292
293 2019-12-11 Tom Tromey <tom@tromey.com>
294
295 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
296 Implement.
297 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
298 Implement.
299 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
300 method.
301 (struct tui_win_info) <min_height>: Implement.
302
303 2019-12-11 Tom Tromey <tom@tromey.com>
304
305 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
306 (struct tui_win_info) <can_box>: Update.
307
308 2019-12-11 Tom Tromey <tom@tromey.com>
309
310 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
311 method.
312 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
313 method.
314 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
315 method.
316 (struct tui_win_info) <max_height>: Now override.
317
318 2019-12-11 Joel Brobecker <brobecker@adacore.com>
319
320 * NEWS: Create a new section for the next release branch.
321 Rename the section of the current branch, now that it has
322 been cut.
323
324 2019-12-11 Joel Brobecker <brobecker@adacore.com>
325
326 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
327 * version.in: Bump version to 10.0.50.DATE-git.
328
329 2019-12-11 Tom Tromey <tromey@adacore.com>
330
331 PR build/25268:
332 * gdbsupport/thread-pool.c (set_thread_name): New function.
333 (thread_pool::set_thread_count): Don't call pthread_setname_np.
334 (thread_pool::thread_function): Call set_thread_name.
335
336 2019-12-11 Tom Tromey <tromey@adacore.com>
337
338 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
339 bfd_get_signed_8.
340
341 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
342
343 * NEWS: Document -raw-values option and the related setting commands.
344 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
345 only set it on when /r is given.
346 * valprint.c (value_print_option_defs): New element raw-values.
347 * Makefile.in: Add the new file.
348
349 2019-12-10 Christian Biesinger <cbiesinger@google.com>
350
351 * gdbsupport/safe-strerror.c: Supress the unused function warning
352 for select_strerror_r.
353
354 2019-12-10 Christian Biesinger <cbiesinger@google.com>
355
356 * config.in: Regenerate.
357 * configure: Regenerate.
358 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
359 safe_strerror instead of strerror.
360 * gdbsupport/common.m4: Don't check for strerror.
361 * gdbsupport/safe-strerror.c: Support both the glibc version
362 of strerror_r and the XSI version.
363
364 2019-12-10 Tom Tromey <tromey@adacore.com>
365
366 * ada-typeprint.c (print_choices): Use a single "?".
367 (print_variant_part): Print "?" if the discriminant name
368 is not known.
369
370 2019-12-10 George Barrett <bob@bob131.so>
371
372 Fix scripted probe breakpoints.
373 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
374 declaration forward.
375 (breakpoint_ops_for_event_location_type)
376 (breakpoint_ops_for_event_location): Add function definitions.
377 (break_command_1, trace_command): Use
378 breakpoint_ops_for_event_location.
379 * breakpoint.h (breakpoint_ops_for_event_location): Add function
380 declarations.
381 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
382 breakpoint_ops_for_event_location.
383 * python/py-breakpoint.c (bppy_init): Use
384 breakpoint_ops_for_event_location.
385
386 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
387
388 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
389 when ranking an lvalue argument for an rvalue parameter.
390
391 2019-12-08 Wataru Ashihara <wataash@wataash.com>
392
393 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
394 template argument for scoped_restore_tmpl from bool to int.
395
396 2019-12-07 Keith Seitz <keiths@redhat.com>
397
398 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
399 (build_id_to_debug_bfd): Make static, rewriting to use
400 build_id_to_bfd_suffix.
401 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
402 adding `suffix' parameter. Append SUFFIX to file names
403 when searching for matching files.
404 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
405 (build_id_to_exec_bfd): Likewise.
406 * build-id.h (build_id_to_debug_bfd): Clarify that function
407 searches for BFD of debug info file.
408 (build_id_to_exec_bfd): Declare.
409 * corelow.c: Include build-id.h.
410 (locate_exec_from_corefile_build_id): New function.
411 (core_target_open): If no executable BFD is found,
412 search for a core file BFD using build-id.
413
414 2019-12-06 Christian Biesinger <cbiesinger@google.com>
415
416 * bcache.c: Put in namespace gdb.
417 * bcache.h: Likewise.
418 * gdbtypes.c (check_types_worklist): Update.
419 (types_deeply_equal): Update.
420 * macrotab.c (struct macro_table) <bcache>: Update.
421 (new_macro_table): Update.
422 * macrotab.h (struct bcache): Put this forward declaration
423 inside namespace gdb.
424 (new_macro_table): Update.
425 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
426 Update.
427 <macro_cache>: Update.
428 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
429
430 2019-12-06 Tom de Vries <tdevries@suse.de>
431
432 PR symtab/24971
433 * block.c (best_symbol, better_symbol): New function.
434 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
435 decl.
436
437 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
438
439 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
440 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
441 for ranking see-through reference cases.
442
443 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
444 * stack.c (faas_command): Check a command is provided.
445 * thread.c (taas_command, tfaas_command): Likewise.
446
447 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
448 * inferior.c (prune_inferiors): Only call delete_inferior,
449 Do not modify the inferior list.
450
451 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
452
453 * c-exp.y: Update calls to lookup_typename,
454 lookup_signed_typename and lookup_unsigned_typename.
455 * c-lang.c (evaluate_subexp_c): Likewise.
456 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
457 Likewise.
458 * eval.c (binop_promote): Likewise.
459 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
460 (lookup_unsigned_typename): Likewise.
461 (lookup_signed_typename): Likewise.
462 * gdbtypes.h (lookup_unsigned_typename): Likewise.
463 (lookup_signed_typename): Likewise.
464 (lookup_typename): Likewise.
465 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
466 lookup_typename, lookup_signed_typename,
467 lookup_unsigned_typename.
468 * m2-exp.y: Likewise.
469 * printcmd.c (printf_wide_c_string): Likewise.
470 (ui_printf): Likewise.
471 * python/py-type.c (typy_lookup_typename): Likewise.
472 * python/py-xmethods.c (python_xmethod_worker::invoke):
473 Likewise.
474 * rust-exp.y: Likewise.
475
476 2019-12-04 Christian Biesinger <cbiesinger@google.com>
477
478 * configure.nat (obsd64): Add missing files x86-nat.o and
479 nat/x86-dregs.o.
480
481 2019-12-04 Tom Tromey <tom@tromey.com>
482
483 * valprint.c (val_print_string): Use metadata_style.
484 * go-valprint.c (print_go_string): Use metadata style.
485 * p-valprint.c (pascal_object_print_static_field): Use metadata
486 style.
487 * cp-valprint.c (cp_print_static_field): Use metadata style.
488
489 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
490 Chris January <chris.january@arm.com>
491
492 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
493 tokens.
494 (typebase): New patterns for complex, single/double precision, and
495 single/double complex.
496 (f77_keywords): Change token for complex keyword, and add single,
497 double, and precision keywords.
498
499 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
500
501 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
502 "info io_registers".
503
504 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
505
506 * regcache.c (cooked_read_test): Initialize thread list of
507 mock_inferior.
508
509 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
510
511 * aarch64-linux-tdep.c: Remove includes.
512
513 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
514
515 * aarch64-tdep.c: Remove includes.
516
517 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
518
519 * filtered-iterator.h (filtered_iterator) <operator==,
520 operator!=>: Compare wrapped iterators, not wrapped pointers.
521 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
522 unittests/filtered_iterator-selftests.c.
523 * unittests/filtered_iterator-selftests.c: New file.
524
525 2019-12-04 Tom Tromey <tromey@adacore.com>
526
527 * gdbtypes.c (create_range_type): Inherit endianity
528 from base type.
529
530 2019-12-04 Tom Tromey <tromey@adacore.com>
531
532 * ada-lang.c (decode_constrained_packed_array)
533 (ada_value_assign, value_assign_to_component): Update.
534 * dwarf2loc.c (rw_pieced_value, access_memory)
535 (dwarf2_compile_expr_to_ax): Update.
536 * dwarf2read.c (dwarf2_add_field): Update.
537 * eval.c (evaluate_subexp_standard): Update.
538 * gdbarch.c, gdbarch.h: Rebuild.
539 * gdbarch.sh (bits_big_endian): Remove.
540 * gdbtypes.h (union field_location): Update comment.
541 * target-descriptions.c (make_gdb_type): Update.
542 * valarith.c (value_bit_index): Update.
543 * value.c (struct value) <bitpos>: Update comment.
544 (unpack_bits_as_long, modify_field): Update.
545 * value.h (value_bitpos): Update comment.
546
547 2019-12-04 Tom Tromey <tromey@adacore.com>
548
549 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
550 endian-ness.
551
552 2019-12-04 Tom Tromey <tromey@adacore.com>
553
554 * dwarf2read.c (dwarf2_init_float_type)
555 (dwarf2_init_complex_target_type): Add byte_order parameter.
556 (read_base_type): Compute byte order earlier.
557 * gdbtypes.c (init_float_type): Add byte_order parameter.
558 * gdbtypes.h (init_float_type): Add byte_order parameter.
559
560 2019-12-04 Tom Tromey <tromey@adacore.com>
561
562 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
563
564 2019-12-04 Tom Tromey <tromey@adacore.com>
565
566 * dwarf2read.c (process_structure_scope): Initialize
567 "discr_offset".
568
569 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
572 add it into the search spec.
573 (parse_max_results_option): New function.
574 (mi_info_functions_or_variables): Parse -max-results flag and pass
575 it to mi_symbol_info.
576 (mi_cmd_symbol_info_modules): Likewise.
577 (mi_cmd_symbol_info_types): Likewise.
578 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
579 return type to bool, change result container into a set, and don't
580 add new results if we have enough already.
581 (global_symbol_searcher::add_matching_msymbols): Change return
582 type to bool, and don't add new results if we have enough already.
583 (sort_search_symbols_remove_dups): Delete.
584 (global_symbol_searcher::search): Early exit from search loop when
585 we have enough results. Use a std::set to collect the results
586 from calling add_matching_symbols.
587 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
588 member function.
589 (global_symbol_searcher) <m_max_search_results>: New member
590 variable.
591 (global_symbol_searcher) <add_matching_symbols>: Update header
592 comment and change return type to bool.
593 (global_symbol_searcher) <add_matching_msymbols>: Update header
594 comment and change return type to bool.
595
596 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
597
598 * symtab.c (symbol_search::compare_search_syms): Update header
599 comment.
600 (global_symbol_searcher::is_suitable_msymbol): New function.
601 (global_symbol_searcher::expand_symtabs): New function.
602 (global_symbol_searcher::add_matching_symbols): New function.
603 (global_symbol_searcher::add_matching_msymbols): New function.
604 (global_symbol_searcher::search): Move most of the content
605 into the new functions above, and call them as needed.
606 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
607 function.
608 (global_symbol_searcher) <add_matching_symbols>: New member
609 function.
610 (global_symbol_searcher) <add_matching_msymbols>: New member
611 function.
612 (global_symbol_searcher) <is_suitable_msymbol>: New member
613 function.
614
615 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
616
617 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
618 -symbol-info-module-variables entries.
619 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
620 (mi_cmd_symbol_info_module_variables): Declare.
621 * mi/mi-symbol-cmds.c
622 (module_symbol_search_iterator): New typedef.
623 (output_module_symbols_in_single_module_and_file): New function.
624 (output_module_symbols_in_single_module): New function.
625 (mi_info_module_functions_or_variables): New function.
626 (mi_cmd_symbol_info_module_functions): New function.
627 (mi_cmd_symbol_info_module_variables): New function.
628 * NEWS: Mention new MI command.
629
630 2019-12-03 Christian Biesinger <cbiesinger@google.com>
631
632 * bcache.c (hash): Remove.
633 (hash_continue): Remove.
634 * bcache.h (hash): Remove.
635 (hash_continue): Remove.
636 (struct bcache) <ctor>: Update.
637 * psymtab.c (psymbol_hash): Update.
638 * stabsread.c (hashname): Update.
639 * utils.h (fast_hash): Add an argument for a start value,
640 defaulting to zero.
641
642 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
643 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
644 (destroy_block_symbol_cache): New function.
645 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
646 (resize_symbol_cache): Likewise.
647
648 2019-12-02 Tom Tromey <tom@tromey.com>
649
650 * unittests/tui-selftests.c (run_tests): Make conditional.
651 (_initialize_tui_selftest): Make conditional.
652
653 2019-12-02 Christian Biesinger <cbiesinger@google.com>
654
655 * aix-thread.c (debug_aix_thread): Change type to bool.
656
657 2019-12-02 Luis Machado <luis.machado@linaro.org>
658
659 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
660
661 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
662
663 * dwarf2read.c (read_tag_string_type): Read the fields required to
664 make a dynamic string, and possibly create a dynamic range for the
665 string.
666 (attr_to_dynamic_prop): Setup is_reference based on the type of
667 attribute being processed.
668 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
669 (resolve_dynamic_array): Rename to...
670 (resolve_dynamic_array_or_string): ...this, update header comment,
671 and accept TYPE_CODE_STRING.
672 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
673
674 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
675
676 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
677 of its implementation from...
678 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
679 the new function.
680
681 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
682
683 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
684 create a range with stride where appropriate.
685 * f-valprint.c: Include 'gdbarch.h'.
686 (f77_print_array_1): Take the stride into account when walking the
687 array. Also convert the stride into addressable units.
688 * gdbtypes.c (create_range_type): Initialise the stride to
689 constant zero.
690 (create_range_type_with_stride): New function, initialise the
691 range as normal, and then setup the stride.
692 (has_static_range): Include the stride here. Also change the
693 return type to bool.
694 (create_array_type_with_stride): Consider the range stride if the
695 array isn't given its own stride.
696 (resolve_dynamic_range): Resolve the stride if needed.
697 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
698 (struct range_bounds) <flag_is_byte_stride>: New member variable.
699 (TYPE_BIT_STRIDE): Define.
700 (TYPE_ARRAY_BIT_STRIDE): Define.
701 (create_range_type_with_stride): Declare.
702 * valarith.c (value_subscripted_rvalue): Take range stride into
703 account when walking the array.
704
705 2019-12-01 Tom Tromey <tom@tromey.com>
706
707 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
708 specially.
709
710 2019-12-01 Tom Tromey <tom@tromey.com>
711
712 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
713 \0.
714 * unittests/tui-selftests.c: New file.
715 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
716
717 2019-12-01 Tom Tromey <tom@tromey.com>
718
719 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
720
721 2019-12-01 Tom Tromey <tom@tromey.com>
722
723 * NEWS: Document new settings.
724 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
725 * tui/tui-win.c (_initialize_tui_win): Add border style
726 observers.
727 * tui/tui-io.h (tui_apply_style): Declare.
728 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
729 longer static.
730 (apply_ansi_escape, tui_set_reverse_mode): Update.
731 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
732 Add "skip_intensity" parameter.
733 <changed>: New member.
734 <do_set_value>: Declare.
735 (tui_border_style, tui_active_border_style): Declare.
736 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
737 globals.
738 (cli_style_option): Initialize "changed".
739 (cli_style_option::do_set_value): New function.
740 (cli_style_option::add_setshow_commands): Add "skip_intensity"
741 parameter. Update.
742 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
743 (_initialize_cli_style): Update. Create TUI border style
744 commands.
745
746 2019-12-01 Tom Tromey <tom@tromey.com>
747
748 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
749 parameter.
750 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
751 parameter.
752 * tui/tui-win.h (compact_source): Declare.
753 * tui/tui-win.c (compact_source): New global.
754 (tui_set_compact_source, tui_show_compact_source): New functions.
755 (_initialize_tui_win): Add "compact-source" setting.
756 * tui/tui-source.c (tui_source_window::set_contents): Handle
757 compact_source setting.
758 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
759 * NEWS: Document new setting.
760
761 2019-11-30 Tom Tromey <tom@tromey.com>
762
763 * dwarf2read.c (dwarf2_add_field): Include field offset when
764 computing variant part length.
765
766 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
767 * NEWS: Mention define-prefix. Tell that command names can now
768 contain a . character.
769
770 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
771
772 * command.h (valid_cmd_char_p): Declare.
773 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
774 the check of valid command char.
775 (find_command_name_length, valid_user_defined_cmd_name_p): Use
776 valid_cmd_char_p.
777 * cli/cli-script.c (validate_comname): Likewise.
778 * completer.c (gdb_completer_command_word_break_characters):
779 Do not remove . from the word break char, update comments.
780 (complete_line_internal_1): Use valid_cmd_char_p.
781 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
782 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
783
784 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
785
786 * cli/cli-script.c (do_define_command): Ensure a redefined
787 prefix command is kept as a prefix command.
788 (define_prefix_command): New function.
789 (show_user_1): Report user defined prefixes.
790 (_initialize_cli_script): Create the new 'define-prefix' command.
791 Add completers for 'define' and 'document'.
792 * top.c (execute_command): If command is a user-defined prefix only
793 command, report the list of commands for this prefix command.
794
795 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
796
797 * valops.c (find_oload_champ): Improve debug output.
798
799 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
800
801 * valops.c (find_oload_champ): Print part of debug messages
802 before the badness vector is std::move'd.
803
804 2019-11-28 Tom Tromey <tom@tromey.com>
805
806 * value.c (creal_internal_fn): Fix comment.
807
808 2019-11-28 Tom Tromey <tom@tromey.com>
809
810 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
811 flag_bound_evaluated>: Now unsigned.
812
813 2019-11-28 Tom Tromey <tom@tromey.com>
814
815 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
816 declare.
817
818 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
819
820 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
821 debug output.
822 * jit.c (jit_unregister_code): Add debug print to match
823 `jit_register_code`.
824
825 2019-11-27 Christian Biesinger <cbiesinger@google.com>
826
827 * NEWS: Mention the new multithreaded symbol loading.
828
829 2019-11-27 Christian Biesinger <cbiesinger@google.com>
830
831 * maint.c (n_worker_threads): Default to 0.
832 (worker_threads_disabled): New function.
833 * maint.h (worker_threads_disabled): New function.
834 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
835 here if worker_threads_disabled () is true.
836 (minimal_symbol_reader::install): Skip all threading if
837 worker_threads_disabled () is true.
838
839 2019-11-27 Christian Biesinger <cbiesinger@google.com>
840
841 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
842 hash code if possible.
843 (add_minsym_to_demangled_hash_table): Likewise.
844 (minimal_symbol_reader::install): Compute the hash codes for msymbol
845 on the background thread.
846 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
847 Add these fields.
848
849 2019-11-27 Christian Biesinger <cbiesinger@google.com>
850
851 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
852 of the mangled name on the background thread.
853 * symtab.c (symbol_set_names): Allow passing in the hash of the
854 linkage_name.
855 * symtab.h (symbol_set_names): Likewise.
856
857 2019-11-27 Kevin Buettner <kevinb@redhat.com>
858
859 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
860 physnames are computed for inherited DIEs.
861
862 2019-11-27 Tom Tromey <tromey@adacore.com>
863
864 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
865 backslashes.
866 * cp-support.c: Remove unnecessary backslashes.
867
868 2019-11-27 Christian Biesinger <cbiesinger@google.com>
869
870 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
871 with sym->set_linkage_name.
872 * coffread.c (coff_read_enum_type): Likewise.
873 * mdebugread.c (parse_symbol): Likewise.
874 * stabsread.c (patch_block_stabs): Likewise.
875 (define_symbol): Likewise.
876 (read_enum_type): Likewise.
877 (common_block_end): Likewise.
878 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
879 function.
880 (SYMBOL_SET_LINKAGE_NAME): Remove.
881 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
882 with sym->set_linkage_name.
883
884 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
885
886 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
887 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
888 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
889 * NEWS: Mention new MI command.
890
891 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
892
893 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
894 '-symbol-info-types', and '-symbol-info-variables'.
895 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
896 (mi_cmd_symbol_info_types): Declare.
897 (mi_cmd_symbol_info_variables): Declare.
898 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
899 (output_debug_symbol): New function.
900 (output_nondebug_symbol): New function.
901 (mi_symbol_info): New function.
902 (mi_info_functions_or_variables): New function.
903 (mi_cmd_symbol_info_functions): New function.
904 (mi_cmd_symbol_info_types): New function.
905 (mi_cmd_symbol_info_variables): New function.
906 * NEWS: Mention new commands.
907
908 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
909
910 * symtab.c (symbol_to_info_string): New function, most content
911 moved from print_symbol_info, but updated to return a std::string.
912 (print_symbol_info): Update to use symbol_to_info_string and print
913 returned string.
914 * symtab.h (symbol_to_info_string): Declare new function.
915
916 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
917
918 * python/python.c (gdbpy_rbreak): Convert to using
919 global_symbol_searcher.
920 * symtab.c (file_matches): Convert return type to bool, change
921 file list to std::vector, update header comment.
922 (search_symbols): Rename to...
923 (global_symbol_searcher::search): ...this and update now its
924 a member function of global_symbol_searcher. Take account of the
925 changes to file_matches.
926 (symtab_symbol_info): Convert to using global_symbol_searcher.
927 (rbreak_command): Likewise.
928 (search_module_symbols): Likewise.
929 * symtab.h (enum symbol_search): Update comment.
930 (search_symbols): Remove declaration.
931 (class global_symbol_searcher): New class.
932
933 2019-11-26 Tom Tromey <tromey@adacore.com>
934
935 * cp-support.c (_initialize_cp_support): Conditionally initialize
936 gdb_demangle_attempt_core_dump.
937
938 2019-11-26 Tom Tromey <tom@tromey.com>
939
940 * python/py-function.c (fnpy_init): Update.
941 * value.h (add_internal_function): Adjust declaration.
942 * value.c (function_destroyer): Remove.
943 (do_add_internal_function): Don't set destroyer or copy name.
944 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
945 Set name_allocated.
946 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
947 (cmdpy_init): Set name_allocated.
948 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
949 member.
950 (~cmd_list_element): Free "name" if needed.
951
952 2019-11-26 Tom Tromey <tom@tromey.com>
953
954 * value.h (add_internal_function): Add new overload. Move
955 documentation from value.h.
956 * value.c (do_add_internal_function): New function.
957 (add_internal_function): Use it. Add new overload.
958 (function_destroyer): Don't free doc.
959 * python/py-function.c (fnpy_init): Update.
960
961 2019-11-26 Tom Tromey <tom@tromey.com>
962
963 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
964 (cmdpy_init): Set "doc_allocated".
965
966 2019-11-26 Tom Tromey <tom@tromey.com>
967
968 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
969 name of worker thread.
970 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
971 pthread_setname_np.
972 * configure, config.in: Rebuild.
973
974 2019-11-26 Tom Tromey <tom@tromey.com>
975
976 * python/python.c (class gdbpy_gil): New.
977 (struct gdbpy_event): Add constructor, destructor, operator().
978 (gdbpy_post_event): Use run_on_main_thread.
979 (gdbpy_initialize_events): Remove.
980 (do_start_initialization): Update.
981
982 2019-11-26 Tom Tromey <tom@tromey.com>
983
984 * NEWS: Add entry.
985 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
986 commands. Call update_thread_pool_size.
987 (update_thread_pool_size, maintenance_set_worker_threads): New
988 functions.
989 (n_worker_threads): New global.
990
991 2019-11-26 Christian Biesinger <cbiesinger@google.com>
992 Tom Tromey <tom@tromey.com>
993
994 * minsyms.c (minimal_symbol_reader::install): Use
995 parallel_for_each.
996 * gdbsupport/parallel-for.h: New file.
997 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
998
999 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1000 Tom Tromey <tom@tromey.com>
1001
1002 * gdbsupport/thread-pool.h: New file.
1003 * gdbsupport/thread-pool.c: New file.
1004 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1005 (HFILES_NO_SRCDIR): Add thread-pool.h.
1006
1007 2019-11-26 Tom Tromey <tom@tromey.com>
1008
1009 * event-top.h (thread_local_segv_handler): Declare.
1010 * event-top.c (thread_local_segv_handler): New global.
1011 (install_handle_sigsegv, handle_sigsegv): New functions.
1012 (async_init_signals): Install SIGSEGV handler.
1013 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1014 thread-local.
1015 (report_failed_demangle): New function.
1016 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1017 handler-setting code, instead use segv_handler. Run warning code
1018 on main thread.
1019
1020 2019-11-26 Tom Tromey <tom@tromey.com>
1021
1022 * run-on-main-thread.c: New file.
1023 * run-on-main-thread.h: New file.
1024 * unittests/main-thread-selftests.c: New file.
1025 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1026 main-thread-selftests.c.
1027 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1028 (COMMON_SFILES): Add run-on-main-thread.c.
1029
1030 2019-11-26 Tom Tromey <tom@tromey.com>
1031
1032 * main.c (setup_alternate_signal_stack): Remove.
1033 (captured_main_1): Use gdb::alternate_signal_stack.
1034 * gdbsupport/alt-stack.h: New file.
1035
1036 2019-11-26 Tom Tromey <tom@tromey.com>
1037
1038 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1039 Remove comment.
1040 (save_original_signals_state, restore_original_signals_state): Use
1041 gdb_sigmask.
1042 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1043 (_initialize_linux_nat): Use gdb_sigmask.
1044 * guile/guile.c (_initialize_guile): Use block_signals.
1045 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1046 * gdbsupport/gdb-sigmask.h: New file.
1047 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1048 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1049 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1050 pthread_sigmask.
1051 * configure, config.in: Rebuild.
1052 * gdbsupport/block-signals.h: New file.
1053
1054 2019-11-26 Tom Tromey <tom@tromey.com>
1055
1056 * acinclude.m4: Include ax_pthread.m4.
1057 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1058 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1059 (CLIBS): Use PTHREAD_LIBS.
1060 (aclocal_m4_deps): Add ax_pthread.m4.
1061 * config.in, configure: Rebuild.
1062 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1063
1064 2019-11-26 Tom Tromey <tom@tromey.com>
1065
1066 * symtab.h (struct minimal_symbol) <name_set>: New member.
1067 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1068 Don't call symbol_set_names.
1069 (minimal_symbol_reader::install): Call symbol_set_names.
1070
1071 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1072
1073 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1074 restore_active_ext_lang, as GIL is needed for (indirectly)
1075 called PyOS_InterruptOccurred.
1076
1077 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1078
1079 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1080 definition.
1081
1082 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1083
1084 * remote-sim.c (simulator_command): Make static, remove
1085 declaration.
1086
1087 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1088
1089 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1090 static.
1091 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1092 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1093 (main): Likewise.
1094 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1095 (main): Likewise.
1096 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1097 (main): Likewise.
1098 * unittests/basic_string_view/element_access/char/1.cc (test01):
1099 Likewise.
1100 (main): Likewise.
1101 * unittests/basic_string_view/element_access/char/empty.cc (main):
1102 Likewise.
1103 * unittests/basic_string_view/element_access/char/front_back.cc
1104 (test01): Likewise.
1105 (main): Likewise.
1106 * unittests/basic_string_view/inserters/char/2.cc (test05):
1107 Likewise.
1108 (main): Likewise.
1109 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1110 (test01): Likewise.
1111 (main): Likewise.
1112 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1113 (test01): Likewise.
1114 (main): Likewise.
1115 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1116 Likewise.
1117 * unittests/basic_string_view/operations/compare/char/1.cc
1118 (test01): Likewise.
1119 (main): Likewise.
1120 * unittests/basic_string_view/operations/compare/char/13650.cc
1121 (test01): Likewise.
1122 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1123 Likewise.
1124 (main): Likewise.
1125 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1126 Likewise.
1127 (main): Likewise.
1128 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1129 Likewise.
1130 (main): Likewise.
1131 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1132 Likewise.
1133 (main): Likewise.
1134 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1135 Likewise.
1136 (main): Likewise.
1137 * unittests/basic_string_view/operations/find/char/4.cc (main):
1138 Likewise.
1139 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1140 Likewise.
1141 (main): Likewise.
1142 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1143 Likewise.
1144 (main): Likewise.
1145 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1146 Likewise.
1147 (main): Likewise.
1148 * unittests/basic_string_view/operations/substr/char/1.cc
1149 (test01): Likewise.
1150 (main): Likewise.
1151 * unittests/basic_string_view/operators/char/2.cc (main):
1152 Likewise.
1153 * unittests/optional/assignment/1.cc (test): Likewise.
1154 * unittests/optional/assignment/2.cc (test): Likewise.
1155 * unittests/optional/assignment/3.cc (test): Likewise.
1156 * unittests/optional/assignment/4.cc (test): Likewise.
1157 * unittests/optional/assignment/5.cc (test): Likewise.
1158 * unittests/optional/assignment/6.cc (test): Likewise.
1159 * unittests/optional/assignment/7.cc (test): Likewise.
1160 * unittests/optional/cons/copy.cc (test): Likewise.
1161 * unittests/optional/cons/default.cc (test): Likewise.
1162 * unittests/optional/cons/move.cc (test): Likewise.
1163 * unittests/optional/cons/value.cc (test): Likewise.
1164 * unittests/optional/in_place.cc (test): Likewise.
1165 * unittests/optional/observers/1.cc (test): Likewise.
1166 * unittests/optional/observers/2.cc (test): Likewise.
1167
1168 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1169
1170 * tui-win.h (tui_set_var_cmd): Remove.
1171 * tui-win.c (tui_set_var_cmd): Make static.
1172
1173 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1174
1175 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1176 rbreak_command_wrapper): Remove.
1177 * symtab.c (rbreak_command_wrapper): Remove.
1178
1179 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1180
1181 * inferior.h (info_terminal_command): Remove declaration.
1182 * inflow.c (info_terminal_command): Make static.
1183
1184 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1185
1186 * inferior.c (exit_inferior_silent): Remove.
1187
1188 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1189
1190 * dictionary.c (dict_empty, mdict_empty): Remove.
1191 * dictionary.c (mdict_empty): Remove.
1192
1193 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1194
1195 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1196 (arc_insn_get_memory_offset): Likewise.
1197 (arc_insn_dump): Likewise.
1198 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1199 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1200 * dictionary.c (dict_iterator_next): Likewise.
1201 (dict_iter_match_first): Likewise.
1202 (dict_iter_match_next): Likewise.
1203 * f-lang.c (evaluate_subexp_f): Likewise.
1204 * hppa-tdep.c (hppa_read_pc): Likewise.
1205 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1206 * parse.c (write_exp_elt_msym): Likewise.
1207 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1208 * remote.c (remote_packet_size): Likewise.
1209 (remote_notif_stop_parse): Likewise.
1210 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1211 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1212 * source.c (prepare_path_for_appending): Likewise.
1213 * sparc64-linux-tdep.c
1214 (sparc64_linux_handle_segmentation_fault); Likewise.
1215 * stack.c (frame_selection_by_function_completer): Likewise.
1216
1217 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1218
1219 * completer.c (set_gdb_completion_word_break_characters):
1220 Remove.
1221
1222 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * dwarf-index-write.c: Include dwarf-index-write.h.
1225 * mi/mi-interp.c: Include mi/mi-interp.h.
1226
1227 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * aarch32-tdep.c: Include aarch32-tdep.h.
1230 * aarch32-tdep.h: Forward-declare struct target_desc.
1231
1232 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1233
1234 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1235 strerror.
1236 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1237 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1238
1239 2019-11-25 Tom de Vries <tdevries@suse.de>
1240
1241 * contrib/words.sh: Add -c option.
1242
1243 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1244
1245 * solib.c (solib_find_1): Change int to bool.
1246 (exec_file_find): Change int to bool.
1247 (solib_find): Change int to bool.
1248 (solib_read_symbols): Change int to bool.
1249 (solib_used): Change int to bool.
1250 (solib_add): Change int to bool.
1251 (info_sharedlibrary_command): Change int to bool.
1252 (solib_contains_address_p): Change int to bool.
1253 (solib_keep_data_in_core): Change int to bool.
1254 (in_solib_dynsym_resolve_code): Change int to bool.
1255 (reload_shared_libraries_1): Change int to bool.
1256 (gdb_sysroot_changed): Change int to bool.
1257 * solib.h (solib_read_symbols): Change int to bool.
1258 (solib_contains_address_p): Change int to bool.
1259 (solib_keep_data_in_core): Change int to bool.
1260 (in_solib_dynsym_resolve_code): Change int to bool.
1261 (libpthread_name_p): Change int to bool.
1262
1263 2019-11-25 Luis Machado <luis.machado@linaro.org>
1264
1265 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1266 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1267 (remote_packet_max_chars): New static global.
1268 (show_remote_packet_max_chars): New function.
1269 (remote_target::putpkt_binary): Adjust to use new
1270 remote_packet_max_chars option.
1271 (remote_target::getpkt_or_notif_sane_1): Likewise.
1272 (_initialize_remote): Register new remote-packet-max-chars option.
1273
1274 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1275
1276 * m68k-linux-nat.c: Include gdbarch.h.
1277
1278 2019-11-24 Tom Tromey <tom@tromey.com>
1279
1280 * symfile.c (read_symbols): Update.
1281 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1282 bool.
1283 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1284 (psym_lookup_symbol, psym_find_last_source_symtab)
1285 (psym_forget_cached_source_info, psym_print_stats)
1286 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1287 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1288 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1289 (psym_find_compunit_symtab_by_address)
1290 (maintenance_print_psymbols, maintenance_info_psymtabs)
1291 (maintenance_check_psymtabs): Update.
1292 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1293 bool.
1294
1295 2019-11-22 Tom Tromey <tom@tromey.com>
1296
1297 * observable.h: Update comments.
1298
1299 2019-11-22 Tom Tromey <tromey@adacore.com>
1300
1301 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1302 (print_ada_task_info): Don't try to fetch thread id if task is not
1303 alive.
1304
1305 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1306
1307 * ada-exp.y: Update.
1308 * ada-lang.c (sort_choices): Update.
1309 (ada_print_symbol_signature): Update.
1310 (resolve_subexp): Update.
1311 (ada_parse_renaming): Update.
1312 (ada_read_renaming_var_value): Update.
1313 (lesseq_defined_than): Update.
1314 (remove_extra_symbols): Update.
1315 (remove_irrelevant_renamings): Update.
1316 (ada_add_block_symbols): Update.
1317 (ada_collect_symbol_completion_matches): Update.
1318 (ada_is_renaming_symbol): Update.
1319 (aggregate_assign_from_choices): Update.
1320 (ada_evaluate_subexp): Update.
1321 (ada_has_this_exception_support): Update.
1322 (ada_is_non_standard_exception_sym): Update.
1323 (ada_add_exceptions_from_frame): Update.
1324 (ada_add_global_exceptions): Update.
1325 (ada_print_subexp): Update.
1326 * ax-gdb.c (gen_var_ref): Update.
1327 (gen_maybe_namespace_elt): Update.
1328 (gen_expr_for_cast): Update.
1329 (gen_expr): Update.
1330 * block.h: Update.
1331 * blockframe.c (find_pc_partial_function): Update.
1332 * breakpoint.c (print_breakpoint_location): Update.
1333 (update_static_tracepoint): Update.
1334 * btrace.c (ftrace_print_function_name): Update.
1335 (ftrace_function_switched): Update.
1336 * buildsym.c (find_symbol_in_list): Update.
1337 * c-exp.y: Update.
1338 * c-typeprint.c (c_print_typedef): Update.
1339 (c_type_print_template_args): Update.
1340 * cli/cli-cmds.c (edit_command): Update.
1341 (list_command): Update.
1342 (print_sal_location): Update.
1343 * coffread.c (patch_opaque_types): Update.
1344 (process_coff_symbol): Update.
1345 (coff_read_enum_type): Update.
1346 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1347 (convert_one_symbol): Update.
1348 (hash_symname): Update.
1349 (eq_symname): Update.
1350 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1351 * compile/compile-cplus-types.c (debug_print_scope): Update.
1352 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1353 * compile/compile-object-load.c (get_out_value_type): Update.
1354 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1355 (search_symbol_list): Update.
1356 (cp_lookup_symbol_imports_or_template): Update.
1357 * cp-support.c (overload_list_add_symbol): Update.
1358 * ctfread.c (psymtab_to_symtab): Update.
1359 * dbxread.c (cp_set_block_scope): Update.
1360 * dictionary.c (iter_match_first_hashed): Update.
1361 (iter_match_next_hashed): Update.
1362 (insert_symbol_hashed): Update.
1363 (iter_match_next_linear): Update.
1364 * dictionary.h: Update.
1365 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1366 (locexpr_describe_location_piece): Update.
1367 (locexpr_describe_location_1): Update.
1368 (locexpr_generate_c_location): Update.
1369 (loclist_describe_location): Update.
1370 (loclist_generate_c_location): Update.
1371 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1372 (read_func_scope): Update.
1373 (process_enumeration_scope): Update.
1374 (new_symbol): Update.
1375 (dwarf2_const_value): Update.
1376 (dwarf2_symbol_mark_computed): Update.
1377 * eval.c (evaluate_funcall): Update.
1378 (evaluate_subexp_standard): Update.
1379 * expprint.c (print_subexp_standard): Update.
1380 (dump_subexp_body_standard): Update.
1381 * f-valprint.c (info_common_command_for_block): Update.
1382 * findvar.c (get_hosting_frame): Update.
1383 (default_read_var_value): Update.
1384 * go-lang.c (go_symbol_package_name): Update.
1385 * guile/scm-block.c (bkscm_print_block_smob): Update.
1386 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1387 (gdbscm_symbol_name): Update.
1388 (gdbscm_symbol_linkage_name): Update.
1389 (gdbscm_symbol_print_name): Update.
1390 * infcall.c (get_function_name): Update.
1391 * infcmd.c (jump_command): Update.
1392 (finish_command): Update.
1393 * infrun.c (insert_exception_resume_breakpoint): Update.
1394 * linespec.c (canonicalize_linespec): Update.
1395 (create_sals_line_offset): Update.
1396 (convert_linespec_to_sals): Update.
1397 (complete_label): Update.
1398 (find_label_symbols_in_block): Update.
1399 * m2-typeprint.c (m2_print_typedef): Update.
1400 * mdebugread.c (mdebug_reg_to_regnum): Update.
1401 (parse_symbol): Update.
1402 (mylookup_symbol): Update.
1403 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1404 (list_args_or_locals): Update.
1405 * objc-lang.c (compare_selectors): Update.
1406 (info_selectors_command): Update.
1407 (compare_classes): Update.
1408 (info_classes_command): Update.
1409 (find_imps): Update.
1410 * p-typeprint.c (pascal_print_typedef): Update.
1411 * printcmd.c (build_address_symbolic): Update.
1412 (info_address_command): Update.
1413 (print_variable_and_value): Update.
1414 * python/py-framefilter.c (extract_sym): Update.
1415 (py_print_single_arg): Update.
1416 * python/py-symbol.c (sympy_str): Update.
1417 (sympy_get_name): Update.
1418 (sympy_get_linkage_name): Update.
1419 * python/python.c (gdbpy_rbreak): Update.
1420 * record-btrace.c (btrace_get_bfun_name): Update.
1421 (btrace_call_history): Update.
1422 * rust-lang.c (rust_print_typedef): Update.
1423 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1424 * stabsread.c (stab_reg_to_regnum): Update.
1425 (define_symbol): Update.
1426 (read_enum_type): Update.
1427 (common_block_end): Update.
1428 (cleanup_undefined_types_1): Update.
1429 (scan_file_globals): Update.
1430 * stack.c (print_frame_arg): Update.
1431 (print_frame_args): Update.
1432 (find_frame_funname): Update.
1433 (info_frame_command_core): Update.
1434 (iterate_over_block_locals): Update.
1435 (print_block_frame_labels): Update.
1436 (do_print_variable_and_value): Update.
1437 (iterate_over_block_arg_vars): Update.
1438 (return_command): Update.
1439 * symmisc.c (dump_symtab_1): Update.
1440 (print_symbol): Update.
1441 * symtab.c (eq_symbol_entry): Update.
1442 (symbol_cache_dump): Update.
1443 (lookup_language_this): Update.
1444 (find_pc_sect_line): Update.
1445 (skip_prologue_sal): Update.
1446 (symbol_search::compare_search_syms): Update.
1447 (treg_matches_sym_type_name): Update.
1448 (search_symbols): Update.
1449 (print_symbol_info): Update.
1450 (rbreak_command): Update.
1451 (completion_list_add_symbol): Update.
1452 (find_gnu_ifunc): Update.
1453 (get_symbol_address): Update.
1454 (search_module_symbols): Update.
1455 (info_module_subcommand): Update.
1456 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1457 (SYMBOL_LINKAGE_NAME): Remove.
1458 (SYMBOL_DEMANGLED_NAME): Remove.
1459 (SYMBOL_PRINT_NAME): Remove.
1460 (SYMBOL_SEARCH_NAME): Remove.
1461 * tracepoint.c (set_traceframe_context): Update.
1462 (validate_actionline): Update.
1463 (collection_list::collect_symbol): Update.
1464 (encode_actions_1): Update.
1465 (info_scope_command): Update.
1466 (print_one_static_tracepoint_marker): Update.
1467 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1468 * valops.c (address_of_variable): Update.
1469 (find_overload_match): Update.
1470 (find_oload_champ): Update.
1471
1472 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1473
1474 * ada-lang.c (ada_lookup_simple_minsym): Update.
1475 (ada_collect_symbol_completion_matches): Update.
1476 * ada-tasks.c (read_atcb): Update.
1477 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1478 (amd64_windows_skip_trampoline_code): Update.
1479 * arm-tdep.c (skip_prologue_function): Update.
1480 (arm_skip_stack_protector): Update.
1481 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1482 (arm_wince_skip_main_prologue): Update.
1483 * ax-gdb.c (gen_expr): Update.
1484 * block.c (call_site_for_pc): Update.
1485 * blockframe.c (find_pc_partial_function): Update.
1486 * breakpoint.c (set_breakpoint_location_function): Update.
1487 * btrace.c (ftrace_print_function_name): Update.
1488 (ftrace_function_switched): Update.
1489 * c-valprint.c (print_unpacked_pointer): Update.
1490 * coffread.c (coff_symfile_read): Update.
1491 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1492 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1493 * dwarf-index-write.c (write_psymbols): Update.
1494 * dwarf2loc.c (call_site_to_target_addr): Update.
1495 (func_verify_no_selftailcall): Update.
1496 (tailcall_dump): Update.
1497 (call_site_find_chain_1): Update.
1498 (dwarf_expr_reg_to_entry_parameter): Update.
1499 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1500 * eval.c (evaluate_funcall): Update.
1501 (evaluate_subexp_standard): Update.
1502 (evaluate_subexp_for_sizeof): Update.
1503 * expprint.c (print_subexp_standard): Update.
1504 (dump_subexp_body_standard): Update.
1505 * frame.c (get_prev_frame_always_1): Update.
1506 * frv-tdep.c (frv_skip_main_prologue): Update.
1507 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1508 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1509 (gnuv3_get_typename_from_type_info): Update.
1510 (gnuv3_skip_trampoline): Update.
1511 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1512 * i386-tdep.c (i386_skip_main_prologue): Update.
1513 (i386_pe_skip_trampoline_code): Update.
1514 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1515 * infcall.c (get_function_name): Update.
1516 * linespec.c (minsym_found): Update.
1517 * linux-fork.c (info_checkpoints_command): Update.
1518 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1519 (m32c_m16c_pointer_to_address): Update.
1520 * maint.c (maintenance_translate_address): Update.
1521 * minsyms.c (add_minsym_to_hash_table): Update.
1522 (add_minsym_to_demangled_hash_table): Update.
1523 (lookup_minimal_symbol_mangled): Update.
1524 (lookup_minimal_symbol_demangled): Update.
1525 (lookup_minimal_symbol_linkage): Update.
1526 (lookup_minimal_symbol_text): Update.
1527 (lookup_minimal_symbol_by_pc_name): Update.
1528 (minimal_symbol_is_less_than): Update.
1529 (compact_minimal_symbols): Update.
1530 (build_minimal_symbol_hash_tables): Update.
1531 (find_solib_trampoline_target): Update.
1532 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1533 (mips_skip_pic_trampoline_code): Update.
1534 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1535 * objc-lang.c (info_selectors_command): Update.
1536 (info_classes_command): Update.
1537 (find_methods): Update.
1538 (find_imps): Update.
1539 * p-valprint.c (pascal_val_print): Update.
1540 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1541 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1542 * printcmd.c (build_address_symbolic): Update.
1543 (info_symbol_command): Update.
1544 * psymtab.c (psymbol_name_matches): Update.
1545 (match_partial_symbol): Update.
1546 (lookup_partial_symbol): Update.
1547 (print_partial_symbols): Update.
1548 (sort_pst_symbols): Update.
1549 (maintenance_check_psymtabs): Update.
1550 * python/py-framefilter.c (py_print_frame): Update.
1551 * python/python.c (gdbpy_rbreak): Update.
1552 * record-btrace.c (btrace_get_bfun_name): Update.
1553 (btrace_call_history): Update.
1554 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1555 (rs6000_skip_trampoline_code): Update.
1556 * sol-thread.c (info_cb): Update.
1557 * stabsread.c (scan_file_globals): Update.
1558 * stack.c (find_frame_funname): Update.
1559 (info_frame_command_core): Update.
1560 * symmisc.c (dump_msymbols): Update.
1561 * symtab.c (symbol_natural_name): Rename to..,
1562 (general_symbol_info::natural_name): ...this.
1563 (symbol_demangled_name): Rename to...
1564 (general_symbol_info::demangled_name): ...this.
1565 (symbol_search_name): Rename to...
1566 (general_symbol_info::search_name): ...this.
1567 (symbol_matches_search_name): Update.
1568 (find_pc_sect_line): Update.
1569 (skip_prologue_sal): Update.
1570 (search_symbols): Update.
1571 (print_msymbol_info): Update.
1572 (rbreak_command): Update.
1573 (completion_list_add_msymbol): Update.
1574 (completion_list_objc_symbol): Update.
1575 (get_msymbol_address): Update.
1576 * symtab.h (struct general_symbol_info): Add member functions
1577 natural_name (), linkage_name (), print_name (), demangled_name (),
1578 and search_name ().
1579 (SYMBOL_NATURAL_NAME): Update.
1580 (symbol_natural_name): Move to a member function on general_symbol_info.
1581 (SYMBOL_DEMANGLED_NAME): Update.
1582 (symbol_demangled_name): Move to a member function on
1583 general_symbol_info.
1584 (SYMBOL_SEARCH_NAME): Update.
1585 (symbol_search_name): Move to a member function on general_symbol_info.
1586 (MSYMBOL_NATURAL_NAME): Remove.
1587 (MSYMBOL_LINKAGE_NAME): Remove.
1588 (MSYMBOL_PRINT_NAME): Remove.
1589 (MSYMBOL_DEMANGLED_NAME): Remove.
1590 (MSYMBOL_SEARCH_NAME): Remove.
1591 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1592
1593 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1594
1595 * symtab.c (create_demangled_names_hash): Use per_bfd->
1596 minimal_symbol_count for computing the initial size, if greater
1597 than our default size.
1598
1599 2019-11-22 Tom de Vries <tdevries@suse.de>
1600
1601 * contrib/words.sh: Improve words extraction.
1602
1603 2019-11-22 Tom de Vries <tdevries@suse.de>
1604
1605 * contrib/words.sh: Combine sed invocations.
1606
1607 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1608
1609 * Makefile.in: Update.
1610 * demangle.c: Rename to...
1611 * gdb-demangle.c: ..this.
1612 (is_cplus_marker): Change return type to bool.
1613 (_initialize_demangler): Rename to...
1614 (_initialize_gdb_demangle): ...this.
1615 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1616 * symtab.h (demangle): Remove declaration; instead include
1617 gdb-demangle.h.
1618
1619 2019-11-21 Tom Tromey <tromey@adacore.com>
1620
1621 * gdbsupport/format.c (format_pieces): Parse %I64d.
1622 * unittests/format_pieces-selftests.c (test_windows_formats): New
1623 function.
1624 (run_tests): Call it.
1625
1626 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1627
1628 Byte reverse display of variables with DW_END_big, DW_END_little
1629 (DW_AT_endianity) dwarf attributes if different than the native
1630 byte order.
1631 * ada-lang.c (ada_value_binop):
1632 Use type_byte_order instead of gdbarch_byte_order.
1633 * ada-valprint.c (printstr):
1634 (ada_val_print_string):
1635 * ada-lang.c (value_pointer):
1636 (ada_value_binop):
1637 Use type_byte_order instead of gdbarch_byte_order.
1638 * c-lang.c (c_get_string):
1639 Use type_byte_order instead of gdbarch_byte_order.
1640 * c-valprint.c (c_val_print_array):
1641 Use type_byte_order instead of gdbarch_byte_order.
1642 * cp-valprint.c (cp_print_class_member):
1643 Use type_byte_order instead of gdbarch_byte_order.
1644 * dwarf2loc.c (rw_pieced_value):
1645 Use type_byte_order instead of gdbarch_byte_order.
1646 * dwarf2read.c (read_base_type): Handle DW_END_big,
1647 DW_END_little
1648 * f-lang.c (f_get_encoding):
1649 Use type_byte_order instead of gdbarch_byte_order.
1650 * findvar.c (default_read_var_value):
1651 Use type_byte_order instead of gdbarch_byte_order.
1652 * gdbtypes.c (check_types_equal):
1653 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1654 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1655 and TYPE_ENDIANITY_LITTLE if set.
1656 (type_byte_order): new function.
1657 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1658 (struct main_type) <flag_endianity_not_default>:
1659 New field.
1660 (type_byte_order): New function.
1661 * infcmd.c (default_print_one_register_info):
1662 Use type_byte_order instead of gdbarch_byte_order.
1663 * p-lang.c (pascal_printstr):
1664 Use type_byte_order instead of gdbarch_byte_order.
1665 * p-valprint.c (pascal_val_print):
1666 Use type_byte_order instead of gdbarch_byte_order.
1667 * printcmd.c (print_scalar_formatted):
1668 Use type_byte_order instead of gdbarch_byte_order.
1669 * solib-darwin.c (darwin_current_sos):
1670 Use type_byte_order instead of gdbarch_byte_order.
1671 * solib-svr4.c (solib_svr4_r_ldsomap):
1672 Use type_byte_order instead of gdbarch_byte_order.
1673 * stap-probe.c (stap_modify_semaphore):
1674 Use type_byte_order instead of gdbarch_byte_order.
1675 * target-float.c (target_float_same_format_p):
1676 Use type_byte_order instead of gdbarch_byte_order.
1677 * valarith.c (scalar_binop):
1678 (value_bit_index):
1679 Use type_byte_order instead of gdbarch_byte_order.
1680 * valops.c (value_cast):
1681 Use type_byte_order instead of gdbarch_byte_order.
1682 * valprint.c (generic_emit_char):
1683 (generic_printstr):
1684 (val_print_string):
1685 Use type_byte_order instead of gdbarch_byte_order.
1686 * value.c (unpack_long):
1687 (unpack_bits_as_long):
1688 (unpack_value_bitfield):
1689 (modify_field):
1690 (pack_long):
1691 (pack_unsigned_long):
1692 Use type_byte_order instead of gdbarch_byte_order.
1693 * findvar.c (unsigned_pointer_to_address):
1694 (signed_pointer_to_address):
1695 (unsigned_address_to_pointer):
1696 (address_to_signed_pointer):
1697 (default_read_var_value):
1698 (default_value_from_register):
1699 Use type_byte_order instead of gdbarch_byte_order.
1700 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1701 Use type_byte_order instead of gdbarch_byte_order.
1702 * riscv-tdep.c (riscv_print_one_register_info):
1703 Use type_byte_order instead of gdbarch_byte_order.
1704
1705 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1706
1707 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1708 (current_ui_gdb_stdin_ptr): Likewise.
1709 (current_ui_gdb_stderr_ptr): Likewise.
1710 (current_ui_gdb_stdlog_ptr): Likewise.
1711 (current_ui_current_uiout_ptr): Likewise.
1712 (gen_ret_current_ui_field_ptr): Remove.
1713
1714 2019-11-21 Tom de Vries <tdevries@suse.de>
1715
1716 PR gdb/24956
1717 * cli/cli-script.c (execute_control_command): Only switch to
1718 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1719
1720 2019-11-19 Tom Tromey <tom@tromey.com>
1721
1722 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1723 Now static. Change type of "name".
1724 (tui_set_win_height_command): Don't copy "arg".
1725 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1726 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1727
1728 2019-11-19 Ali Tamur <tamur@google.com>
1729
1730 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1731 "if (attr != nullptr)".
1732 (dwarf2_find_base_address): Likewise.
1733 (dwarf2_build_include_psymtabs): Likewise.
1734 (read_cutu_die_from_dwo): Likewise.
1735 (read_func_scope): Likewise.
1736 (read_call_site_scope): Likewise.
1737 (dwarf2_get_pc_bounds): Likewise.
1738 (dwarf2_record_block_ranges): Likewise.
1739 (dwarf2_add_field): Likewise.
1740 (dwarf2_add_member_fn): Likewise.
1741 (read_structure_type): Likewise.
1742 (read_enumeration_type): Likewise.
1743 (read_array_type): Likewise.
1744 (read_array_order): Likewise.
1745 (read_set_type): Likewise.
1746 (read_common_block): Likewise.
1747 (read_tag_reference_type): Likewise.
1748 (read_tag_string_type): Likewise.
1749 (read_subroutine_type): Likewise.
1750 (read_base_type): Likewise.
1751 (read_subrange_type): Likewise.
1752 (new_symbol): Likewise.
1753 (prepare_one_comp_unit): Likewise.
1754
1755 2019-11-19 Tom Tromey <tromey@adacore.com>
1756
1757 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1758 result in error when DebugActiveProcess fails.
1759
1760 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1761 Pedro Alves <palves@redhat.com>
1762
1763 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1764 * target.c (target_stack::push): Call 'unpush' if there's a
1765 target on top of the stack.
1766
1767 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1768
1769 * python/py-block.c (blpy_dealloc): Call tp_free.
1770 (blpy_block_syms_dealloc): Likewise.
1771 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1772 * python/py-inferior.c (infpy_dealloc): Likewise.
1773 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1774 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1775 * python/py-symbol.c (sympy_dealloc): Likewise.
1776 * python/py-symtab.c (stpy_dealloc): Likewise.
1777 * python/py-type.c (typy_iterator_dealloc): Likewise.
1778
1779 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1780
1781 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1782 constructor instead of using a class initializer.
1783
1784 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1785
1786 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1787 * configure: Regenerate.
1788 * configure.ac: Don't source common.host.
1789 * gdbsupport/common.host: Remove.
1790 * gdbsupport/mingw-strerror.c: Remove.
1791 * gdbsupport/posix-strerror.c: Rename to...
1792 * gdbsupport/safe-strerror.c: ...this.
1793
1794 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1795
1796 * maint.c (scoped_command_stats::print_time): Use localtime_r
1797 instead of localtime (provided through gnulib if necessary).
1798 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1799 of ctime.
1800
1801 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1802
1803 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1804 avoid compile errors.
1805
1806 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1807
1808 * config.in: Regenerate.
1809 * configure: Regenerate.
1810 * gdbsupport/common.m4: No longer check for strerror_r.
1811 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1812 POSIX version of strerror_r, now that gnulib provides it if
1813 necessary.
1814
1815 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1816
1817 * README (`configure' options): Update.
1818
1819 2019-11-14 Tom Tromey <tromey@adacore.com>
1820
1821 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1822 expected type for the RHS if the LHS is a convenience variable.
1823
1824 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1825
1826 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1827 Provide explicit default and copy constructor.
1828
1829 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1830
1831 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1832 only call Py_INCREF (newbp) in the bppy_pending_object case.
1833
1834 2019-11-13 Tom Tromey <tromey@adacore.com>
1835
1836 PR build/25182:
1837 * psympriv.h (partial_symbol): Remove static assert.
1838 * symtab.h (general_symbol_info, symbol): Remove static assert.
1839
1840 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * gdbsupport/format.c (format_pieces::format_pieces): Support
1843 printf 'z' size modifier.
1844 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1845 * printcmd.c (ui_printf): Handle size_t_arg.
1846 * ui-out.c (ui_out::vmessage): Likewise.
1847 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1848 function.
1849 (run_tests): Call test_format_int_sizes.
1850
1851 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1852
1853 * ada-exp.y (write_ambiguous_var): Update.
1854 * buildsym.c (add_symbol_to_list): Update.
1855 * dwarf2read.c (read_variable): Update.
1856 (new_symbol): Update.
1857 * jit.c (finalize_symtab): Update.
1858 * language.c (language_alloc_type_symbol): Update.
1859 * symtab.c (fixup_symbol_section): Update.
1860 (initialize_objfile_symbol_1): Move code to...
1861 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1862 (allocate_symbol): Update.
1863 (allocate_template_symbol): Update.
1864 (get_symbol_address): Update.
1865 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1866 of having as a field, and add a constructor.
1867 (SYMBOL_VALUE): Update.
1868 (SYMBOL_VALUE_ADDRESS): Update.
1869 (SET_SYMBOL_VALUE_ADDRESS): Update.
1870 (SYMBOL_VALUE_BYTES): Update.
1871 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1872 (SYMBOL_BLOCK_VALUE): Update.
1873 (SYMBOL_VALUE_CHAIN): Update.
1874 (SYMBOL_LANGUAGE): Update.
1875 (SYMBOL_SECTION): Update.
1876 (SYMBOL_OBJ_SECTION): Update.
1877 (SYMBOL_SET_LANGUAGE): Update.
1878 (SYMBOL_SET_LINKAGE_NAME): Update.
1879 (SYMBOL_SET_NAMES): Update.
1880 (SYMBOL_NATURAL_NAME): Update.
1881 (SYMBOL_LINKAGE_NAME): Update.
1882 (SYMBOL_DEMANGLED_NAME): Update.
1883 (SYMBOL_SEARCH_NAME): Update.
1884 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1885 (struct symbol): Update.
1886 (struct template_symbol): Update.
1887 (struct rust_vtable_symbol): Update.
1888 * xcoffread.c (SYMBOL_DUP): Update.
1889
1890 2019-11-12 Tom Tromey <tom@tromey.com>
1891
1892 * tui/tui-layout.c (show_layout): Set current_layout.
1893 (show_source_disasm_command, show_data)
1894 (show_source_or_disasm_and_command): Don't set current_layout.
1895
1896 2019-11-12 Tom Tromey <tom@tromey.com>
1897
1898 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1899
1900 2019-11-12 Tom Tromey <tom@tromey.com>
1901
1902 * tui/tui-win.c (resize_message): New global.
1903 (show_tui_resize_message): New function.
1904 (tui_async_resize_screen): Print message if requested.
1905 (_initialize_tui_win): Add tui-resize-message setting.
1906 * NEWS: Add entry for new commands.
1907
1908 2019-11-11 Tom Tromey <tom@tromey.com>
1909
1910 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1911 functions.
1912
1913 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1914
1915 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1916
1917 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1918
1919 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1920 function.
1921 * python/python-internal.h (gdbpy_lookup_static_symbols):
1922 Declare new function.
1923 * python/python.c (python_GdbMethods): Add
1924 gdb.lookup_static_symbols method.
1925 * NEWS: Mention gdb.lookup_static_symbols.
1926
1927 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1930 static block of current object file first. Also fix typo in
1931 header comment.
1932
1933 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1934
1935 * stack.c (set_last_displayed_sal): Delete.
1936 (last_displayed_sal_valid): Delete.
1937 (last_displayed_pspace): Delete.
1938 (last_displayed_addr): Delete.
1939 (last_displayed_symtab): Delete.
1940 (last_displayed_line): Delete.
1941 (class last_displayed_symtab_info_type): New.
1942 (last_displayed_symtab_info): New static global variable.
1943 (print_frame_info): Call methods on last_displayed_symtab_info.
1944 (clear_last_displayed_sal): Update header comment, and make use of
1945 last_displayed_symtab_info.
1946 (last_displayed_sal_is_valid): Likewise.
1947 (get_last_displayed_pspace): Likewise.
1948 (get_last_displayed_addr): Likewise.
1949 (get_last_displayed_symtab): Likewise.
1950 (get_last_displayed_line): Likewise.
1951 (get_last_displayed_sal): Likewise.
1952 * stack.h (clear_last_displayed_sal): Update header comment.
1953 (last_displayed_sal_is_valid): Likewise.
1954 (get_last_displayed_pspace): Likewise.
1955 (get_last_displayed_addr): Likewise.
1956 (get_last_displayed_symtab): Likewise.
1957 (get_last_displayed_line): Likewise.
1958 (get_last_displayed_sal): Likewise.
1959
1960 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1961
1962 * stack.c (frame_show_address): Convert return type to bool.
1963 * stack.h (frame_show_address): Likewise, and update header
1964 comment.
1965
1966 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1967
1968 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1969 * unittests/vec-utils-selftests.c: New file.
1970 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1971
1972 2019-11-10 Tom Tromey <tom@tromey.com>
1973
1974 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1975 (tui_highlight_win): Likewise.
1976 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1977 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1978 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1979 Don't set can_highlight.
1980
1981 2019-11-10 Tom Tromey <tom@tromey.com>
1982
1983 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1984 Remove unused declaration.
1985
1986 2019-11-08 Tom Tromey <tromey@adacore.com>
1987
1988 * top.c (read_command_file): Update.
1989 (command_line_input): Make return type const.
1990 * python/py-gdb-readline.c: Update.
1991 * linespec.c (decode_line_2): Update.
1992 * defs.h (command_line_input): Make return type const.
1993 * cli/cli-script.c (read_next_line): Make return type const.
1994 * ada-lang.c (get_selections): Update.
1995
1996 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1997
1998 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1999 * mi/mi-main.c (output_cores): Likewise.
2000 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2001 (linux_xfer_osdata_modules): Likewise.
2002 * remote.c (register_remote_support_xml): Likewise.
2003 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2004 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2005
2006 2019-11-06 Tom Tromey <tom@tromey.com>
2007
2008 * tui/tui-interp.c: Don't include readline.h.
2009 * tui/tui-hooks.c: Don't include readline.h.
2010 * symmisc.c: Include tilde.h, not readline.h.
2011 * symfile.c: Include tilde.h, not readline.h.
2012 * source.c: Include tilde.h, not readline.h.
2013 * solib.c: Include tilde.h, not readline.h.
2014 * psymtab.c: Include tilde.h, not readline.h.
2015 * exec.c: Include tilde.h, not readline.h.
2016 * corelow.c: Include tilde.h, not readline.h.
2017 * cli/cli-dump.c: Include tilde.h, not readline.h.
2018 * cli/cli-cmds.c: Don't include readline.h.
2019
2020 2019-11-05 Tom Tromey <tom@tromey.com>
2021
2022 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2023 (tui_disassemble): Set addr_size.
2024 (tui_disasm_window::set_contents): Use addr_size.
2025
2026 2019-11-05 Tom Tromey <tom@tromey.com>
2027
2028 * rust-lang.c (rust_language_defn): Update.
2029 * python/py-value.c (valpy_string): Call c_get_string.
2030 * p-lang.c (pascal_language_defn): Update.
2031 * opencl-lang.c (opencl_language_defn): Update.
2032 * objc-lang.c (objc_language_defn): Update.
2033 * m2-lang.c (m2_language_defn): Update.
2034 * language.c (unknown_language_defn, auto_language_defn): Update.
2035 (default_get_string): Remove.
2036 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2037 * go-lang.c (go_language_defn): Update.
2038 * f-lang.c (f_language_defn): Update.
2039 * d-lang.c (d_language_defn): Update.
2040 * c-lang.c (c_language_defn, cplus_language_defn)
2041 (asm_language_defn, minimal_language_defn): Update.
2042 * ada-lang.c (ada_language_defn): Update.
2043 * language.h (struct language_defn) <la_get_string>: Remove.
2044 (LA_GET_STRING): Remove.
2045 (default_get_string): Don't declare.
2046
2047 2019-11-05 Tom Tromey <tom@tromey.com>
2048
2049 * tui/tui-source.h (struct tui_source_window): Inline
2050 constructor. Remove destructor.
2051 <style_changed, m_observable>: Move to superclass.
2052 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2053 (struct tui_source_window_base): Move private members to end.
2054 <style_changed, m_observable>: Move from tui_source_window.
2055 * tui/tui-winsource.c (tui_copy_source_line): Move from
2056 tui-source.c. Rename from copy_source_line. Add special handling
2057 for negative line number.
2058 (tui_source_window_base::style_changed): Move from
2059 tui_source_window.
2060 (tui_source_window_base): Register observer.
2061 (~tui_source_window_base): New.
2062 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2063 rename.
2064 (tui_source_window::set_contents): Use tui_copy_source_line.
2065 (tui_source_window::tui_source_window): Move to tui-source.h.
2066 (tui_source_window::~tui_source_window): Remove.
2067 (tui_source_window::style_changed): Move to superclass.
2068 * tui/tui-disasm.c (tui_disassemble): Create string file with
2069 styling, when possible. Add "addr_size" parameter.
2070 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2071 Don't compute maximum size.
2072 (len_without_escapes): New function
2073
2074 2019-11-05 Tom Tromey <tom@tromey.com>
2075
2076 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2077 std::string.
2078 * tui/tui-winsource.c (tui_show_source_line): Update.
2079 * tui/tui-source.c (tui_source_window::set_contents): Update.
2080 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2081
2082 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2083
2084 * symtab.h (gdb_static_assert): Put && operator at the beginning
2085 of the line instead of the end.
2086
2087 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2088
2089 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2090 and sizeof (symbol).
2091 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2092
2093 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2094
2095 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2096 * configure.host: Mark *-*-solaris2.10* obsolete.
2097 * configure.tgt: Mark Solaris < 11 obsolete.
2098 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2099 Update target triplet.
2100
2101 2019-11-01 Tom Tromey <tromey@adacore.com>
2102
2103 * utils.c (print_sys_errmsg): Simplify.
2104
2105 2019-11-01 Tom Tromey <tromey@adacore.com>
2106
2107 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2108
2109 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2110
2111 * configure: Regenerate.
2112 * configure.ac: Remove check for strerror_r.
2113 * gdbsupport/common.m4: Check for strerror_r.
2114
2115 2019-11-01 Luis Machado <luis.machado@linaro.org>
2116
2117 PR gdb/25124
2118
2119 * arm-tdep.c (arm_per_objfile): Rename to ...
2120 (arm_per_bfd): ... this.
2121 (arm_objfile_data_key): Rename to ...
2122 (arm_bfd_data_key): ... this.
2123 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2124 data.
2125 (arm_record_special_symbol): Likewise.
2126
2127 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2128
2129 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2130 end.
2131 * c-typeprint.c (c_print_typedef): Likewise.
2132 * f-typeprint.c (f_print_typedef): Likewise.
2133 * m2-typeprint.c (m2_print_typedef): Likewise.
2134 * p-typeprint.c (pascal_print_typedef): Likewise.
2135 * rust-lang.c (rust_print_typedef): Likewise.
2136 * symtab.c (print_symbol_info): Print a newline after calling
2137 typedef_print.
2138
2139 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2140
2141 * symtab.c (info_module_cmdlist): New variable.
2142 (info_module_command): New function.
2143 (search_module_symbols): New function.
2144 (info_module_subcommand): New function.
2145 (struct info_modules_var_func_options): New struct.
2146 (info_modules_var_func_options_defs): New variable.
2147 (make_info_modules_var_func_options_def_group): New function.
2148 (info_module_functions_command): New function.
2149 (info_module_variables_command): New function.
2150 (info_module_var_func_command_completer): New function.
2151 (_initialize_symtab): Register new 'info module functions' and
2152 'info module variables' commands.
2153 * symtab.h (typedef symbol_search_in_module): New typedef.
2154 (search_module_symbols): Declare new function.
2155 * NEWS: Mention new commands.
2156
2157 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2160 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2161 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2162 MODULES_DOMAIN.
2163 (scan_partial_symbols): Only create partial module symbols for non
2164 declarations.
2165 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2166 and MODULES_DOMAIN.
2167 * symtab.c (search_domain_name): Likewise.
2168 (search_symbols): Likewise.
2169 (print_symbol_info): Likewise.
2170 (symtab_symbol_info): Likewise.
2171 (info_modules_command): New function.
2172 (_initialize_symtab): Register 'info modules' command.
2173 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2174 * NEWS: Mention new 'info modules' command.
2175
2176 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2177
2178 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2179 and $_gdb_maint_setting_str.
2180
2181 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2182
2183 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2184 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2185 (str_value_from_setting, gdb_setting_str_internal_fn)
2186 (gdb_maint_setting_str_internal_fn): New functions.
2187 (_initialize_cli_cmds): Define the new convenience functions.
2188 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2189 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2190
2191 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2192
2193 * agent.c (set_can_use_agent): When the setting is turned on,
2194 look up agent symbols if we don't have them yet.
2195 (agent_new_objfile): Don't look up agent symbols when the agent
2196 setting is off.
2197
2198 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2199
2200 * config.in: Regenerate.
2201
2202 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2203
2204 * configure: Regenerate.
2205 * configure.ac: Check for strerror_r.
2206 * gdbsupport/common-utils.h (safe_strerror): Change return value
2207 to const char * and document that this function is now threadsafe.
2208 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2209 thread_local and call strerror_r, if available.
2210 * utils.c (perror_string): Update.
2211 (print_sys_errmsg): Update.
2212
2213 2019-10-31 Luis Machado <luis.machado@linaro.org>
2214
2215 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2216 objfile_key.
2217 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2218 objfile to fetch per-bfd data.
2219 (arm_find_exidx_entry): Likewise.
2220
2221 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2222
2223 * gdbsupport/agent.c (debug_agent): Change type to bool.
2224 (use_agent): Likewise.
2225 (all_agent_symbols_look_up): Likewise.
2226 (agent_loaded_p): Change return value to bool.
2227 (agent_look_up_symbols): Update.
2228 (agent_capability_check): Change return value to bool.
2229 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2230 (debug_agent): Change type to bool.
2231 (use_agent): Likewise.
2232 (agent_capability_check): Change return value to bool.
2233
2234 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2235
2236 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2237 (build_minimal_symbol_hash_tables): Code to clear the table moved
2238 to clear_minimal_symbol_hash_tables.
2239 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2240 when needed.
2241
2242 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2243
2244 * infcmd.c: Remove includes.
2245 * infrun.c: Remove includes.
2246
2247 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2248
2249 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2250 (grow_vect): Remove declaration.
2251 (ada_type_of_array): Remove declaration.
2252 (ada_update_initial_language): Remove declaration.
2253 (ada_fold_name): Remove declaration.
2254 (ada_fill_in_ada_prototype): Remove declaration.
2255 (user_select_syms): Remove declaration.
2256 (get_selections): Remove declaration.
2257 (ada_tag_type): Remove declaration.
2258 (ada_value_tag): Remove declaration.
2259 (ada_is_others_clause): Remove declaration.
2260 (ada_in_variant): Remove declaration.
2261 (ada_value_struct_elt): Remove declaration.
2262 (ada_attribute_name): Remove declaration.
2263 (ada_system_address_type): Remove declaration.
2264 * ada-lang.c (ada_watch_location_expression): Make static.
2265 (GROW_VECT): Move here from ada-lang.h.
2266 (grow_vect): Make static.
2267 (ada_update_initial_language): Make static.
2268 (ada_fold_name): Make static.
2269 (ada_type_of_array): Make static.
2270 (encoded_ordered_before): Move up.
2271 (sort_choices): Move up.
2272 (print_signatures): Move up.
2273 (ada_print_symbol_signature): Move up.
2274 (get_selections): Move up and make static.
2275 (user_select_syms): Move up and make static.
2276 (ada_value_struct_elt): Move up and make static.
2277 (ada_tag_type): Make static.
2278 (ada_value_tag): Make static.
2279 (ada_is_others_clause): Make static.
2280 (ada_in_variant): Make static.
2281 (ada_attribute_name): Make static.
2282
2283 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2284
2285 * ada-lang.c: Remove includes.
2286 * ada-typeprint.c: Remove includes.
2287 * ada-valprint.c: Remove includes.
2288
2289 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2290
2291 * addrmap.c: Add static assertions of type size, moved from
2292 _initialize_addrmap.
2293 (_initialize_addrmap): Remove.
2294
2295 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2296
2297 * coffread.c (record_minimal_symbol): Update.
2298 (process_coff_symbol): Update.
2299 * dbxread.c (read_dbx_symtab): Update.
2300 * dwarf2read.c (add_partial_symbol): Update.
2301 (fixup_go_packaging): Update.
2302 (load_partial_dies): Update.
2303 (new_symbol): Update.
2304 * elfread.c (record_minimal_symbol): Change signature to use
2305 gdb::string_view instead of name+len.
2306 (elf_symtab_read): Update.
2307 (elf_rel_plt_read): Update.
2308 * mdebugread.c (parse_partial_symbols): Update.
2309 (handle_psymbol_enumerators): Update.
2310 (new_symbol): Update.
2311 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2312 to use gdb::string_view instead of name+len.
2313 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2314 * psympriv.h (add_psymbol_to_list): Likewise.
2315 * psymtab.c (add_psymbol_to_bcache): Likewise.
2316 (add_psymbol_to_list): Likewise.
2317 * stabsread.c (define_symbol): Update.
2318 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2319 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2320 (symbol_set_names): Likewise.
2321 * xcoffread.c (scan_xcoff_symtab): Update.
2322
2323 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2324
2325 * symtab.h (symbol_set_names): Document that copy_name must be
2326 set to true for non-nullterminated strings.
2327 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2328 linkage_name if the entry was not found and we need to demangle.
2329
2330 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2331
2332 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2333 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2334 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2335 * gdbsupport/gdb_binary_search.h: New file.
2336
2337 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2338
2339 * NEWS: Mention new --with-system-gdbinit-dir option.
2340 * config.in: Regenerate.
2341 * configure: Regenerate.
2342 * configure.ac: Add new option --with-system-gdbinit-dir.
2343 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2344 for a ".gdb" suffix.
2345 * main.c (get_init_files): Change system_gdbinit argument to
2346 a vector and return the files in SYSTEM_GDBINIT_DIR in
2347 addition to SYSTEM_GDBINIT.
2348 (captured_main_1): Update.
2349 (print_gdb_help): Update.
2350 * top.c (print_gdb_configuration): Also print the value of
2351 SYSTEM_GDBINIT_DIR.
2352
2353 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2354
2355 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2356 that takes gdb::string_view arguments.
2357
2358 2019-10-26 Tom de Vries <tdevries@suse.de>
2359
2360 * aarch64-linux-tdep.c: Fix typos in comments.
2361 * aarch64-tdep.c: Same.
2362 * ada-lang.c: Same.
2363 * amd64-nat.c: Same.
2364 * arc-tdep.c: Same.
2365 * arch/aarch64-insn.c: Same.
2366 * block.c: Same.
2367 * breakpoint.h: Same.
2368 * btrace.h: Same.
2369 * c-varobj.c: Same.
2370 * cli/cli-decode.c: Same.
2371 * cli/cli-script.c: Same.
2372 * cli/cli-utils.h: Same.
2373 * coff-pe-read.c: Same.
2374 * coffread.c: Same.
2375 * compile/compile-cplus-symbols.c: Same.
2376 * compile/compile-object-run.c: Same.
2377 * completer.c: Same.
2378 * corelow.c: Same.
2379 * cp-support.c: Same.
2380 * demangle.c: Same.
2381 * dwarf-index-write.c: Same.
2382 * dwarf2-frame.c: Same.
2383 * dwarf2-frame.h: Same.
2384 * eval.c: Same.
2385 * frame-base.h: Same.
2386 * frame.h: Same.
2387 * gdbcmd.h: Same.
2388 * gdbtypes.h: Same.
2389 * gnu-nat.c: Same.
2390 * guile/scm-objfile.c: Same.
2391 * i386-tdep.c: Same.
2392 * i386-tdep.h: Same.
2393 * infcall.c: Same.
2394 * infcall.h: Same.
2395 * linux-nat.c: Same.
2396 * m68k-tdep.c: Same.
2397 * macroexp.c: Same.
2398 * memattr.c: Same.
2399 * mi/mi-cmd-disas.c: Same.
2400 * mi/mi-getopt.h: Same.
2401 * mi/mi-main.c: Same.
2402 * minsyms.c: Same.
2403 * nat/aarch64-sve-linux-sigcontext.h: Same.
2404 * objfiles.h: Same.
2405 * ppc-linux-nat.c: Same.
2406 * ppc-linux-tdep.c: Same.
2407 * ppc-tdep.h: Same.
2408 * progspace.h: Same.
2409 * prologue-value.h: Same.
2410 * python/py-evtregistry.c: Same.
2411 * python/py-instruction.h: Same.
2412 * record-btrace.c: Same.
2413 * record-full.c: Same.
2414 * remote.c: Same.
2415 * rs6000-tdep.c: Same.
2416 * ser-tcp.c: Same.
2417 * sol-thread.c: Same.
2418 * sparc-sol2-tdep.c: Same.
2419 * sparc64-tdep.c: Same.
2420 * stabsread.c: Same.
2421 * symfile.c: Same.
2422 * symtab.h: Same.
2423 * target.c: Same.
2424 * tracepoint.c: Same.
2425 * tui/tui-data.h: Same.
2426 * tui/tui-io.c: Same.
2427 * tui/tui-win.c: Same.
2428 * tui/tui.c: Same.
2429 * unittests/rsp-low-selftests.c: Same.
2430 * user-regs.h: Same.
2431 * utils.c: Same.
2432 * utils.h: Same.
2433 * valarith.c: Same.
2434 * valops.c: Same.
2435 * valprint.c: Same.
2436 * valprint.h: Same.
2437 * value.c: Same.
2438 * value.h: Same.
2439 * varobj.c: Same.
2440 * x86-nat.h: Same.
2441 * xtensa-tdep.c: Same.
2442
2443 2019-10-25 Ali Tamur <tamur@google.com>
2444
2445 * charset.c (find_charset_names): Reflect API change.
2446
2447 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2448
2449 * symtab.c (struct demangled_name_entry): Change demangled name
2450 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2451 part of the struct anymore.
2452 (symbol_set_names): No longer obstack allocate + copy the demangled
2453 name, just store the allocated name from bfd.
2454
2455 2019-10-25 Tom Tromey <tromey@adacore.com>
2456
2457 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2458 (bsearch_cie_cmp, add_cie): Remove.
2459 (find_cie): Reimplement.
2460 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2461 (dwarf2_build_frame_info): Update.
2462
2463 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2464
2465 PR gdb/25126
2466 * symfile.c (reread_symbols): Call forget_cached_source_info to
2467 clear the stale source cache.
2468
2469 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2470
2471 * configure: Regenerate.
2472 * configure.ac: Remove code that sets python_has_threads.
2473
2474 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2475
2476 * config.in: Regenerate.
2477 * configure: Regenerate.
2478 * configure.ac: Remove the code that uses sed to get the python
2479 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2480
2481 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2482
2483 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2484 error paths.
2485
2486 2019-10-23 Tom Tromey <tom@tromey.com>
2487
2488 * arc-tdep.c: Remove ".." from include.
2489 * frv-tdep.c: Remove ".." from include.
2490 * lm32-tdep.c: Remove ".." from include.
2491 * microblaze-tdep.c: Remove ".." from include.
2492 * or1k-tdep.h: Remove ".." from include.
2493 * s12z-tdep.c: Remove ".." from include.
2494 * Makefile.in (OPCODES_CFLAGS): Add comment.
2495 (TOP_CFLAGS): New variable.
2496 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2497
2498 2019-10-23 Tom Tromey <tom@tromey.com>
2499
2500 * Makefile.in (READLINE_DIR): Update.
2501
2502 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2503
2504 * infcall.c (call_function_by_hand_dummy): Fix the function
2505 comment. And extract out a code section into...
2506 (reserve_stack_space): ...this new function.
2507
2508 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2509
2510 * infcall.c (value_arg_coerce): Remove an unused parameter.
2511 (call_function_by_hand_dummy): Update the call to
2512 'value_arg_coerce'.
2513
2514 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2515
2516 * infcall.c (call_function_by_hand_dummy): Refactor.
2517
2518 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2519
2520 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2521
2522 2019-10-23 Tom Tromey <tom@tromey.com>
2523
2524 * configure: Rebuild.
2525 * configure.ac: Don't check for sigprocmask.
2526 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2527
2528 2019-10-23 Tom Tromey <tom@tromey.com>
2529
2530 * configure: Rebuild.
2531 * acinclude.m4: Use m4_include, not sinclude.
2532
2533 2019-10-23 Tom de Vries <tdevries@suse.de>
2534
2535 PR breakpoints/24687
2536 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2537
2538 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2539
2540 * symtab.c (struct demangled_name_entry) <language>: Change from
2541 bitfield to regular variable.
2542
2543 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2544
2545 * symtab.c (struct demangled_name_entry): Add a constructor.
2546 (free_demangled_name_entry): New function to call the destructor
2547 for demangled_name_entry.
2548 (create_demangled_names_hash): Pass free_demangled_name_entry to
2549 htab_create_alloc.
2550 (symbol_set_names): Call placement new for demangled_name_entry.
2551 * utils.c: No longer include xxhash.h here, now that fast_hash
2552 is inlined in the header.
2553 * utils.h: Instead, include it here.
2554
2555 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2556
2557 * Makefile.in: Link with libxxhash.
2558 * config.in: Regenerate.
2559 * configure: Regenerate.
2560 * configure.ac: Search for libxxhash.
2561 * utils.c (fast_hash): Use xxhash if present.
2562
2563 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2564
2565 * utils.h (fast_hash): New function.
2566 * symtab.c (hash_demangled_name_entry): Call new function
2567 fast_hash.
2568
2569 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2570
2571 * symtab.c (struct demangled_name_entry): Change type of mangled
2572 to gdb::string_view. Also adds a constructor that takes the
2573 mangled name.
2574 (hash_demangled_name_entry): Update.
2575 (eq_demangled_name_entry): Update.
2576 (free_demangled_name_entry): New function to call the destructor
2577 now that this is not a POD anymore.
2578 (create_demangled_names_hash): Pass free_demangled_name_entry to
2579 htab_create_alloc.
2580 (symbol_set_names): Update.
2581
2582 2019-10-21 Ali Tamur <tamu@google.com>
2583
2584 * dwarf2read.c (dir_index): Change type.
2585 (file_name_index): Likewise.
2586 (line_header::include_dir_at): Change comment and implementation on
2587 whether it is DWARF 5.
2588 (line_header::is_valid_file_index): New function.
2589 (line_header::file_name_at): Change comment and implementation on
2590 whether it is DWARF 5.
2591 (line_header::file_names): Change to private field renamed as
2592 m_file_names and introduce a new accessor method.
2593 (line_header::file_names_size): New method.
2594 (line_header::include_dirs): Change to private field and rename as
2595 m_include_dirs.
2596 (dw2_get_file_names_reader): Define local var at a smaller scope and
2597 reflect API change.
2598 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2599 (process_structure_scope): Likewise.
2600 (line_header::add_include_dir): Change message and reflect renaming.
2601 (line_header::add_file_name): Likewise.
2602 (read_formatted_entries): Handle DW_FORM_data16.
2603 (dwarf_decode_line_header): Fix line header length calculation.
2604 (psymtab_include_file_name): Change comment and API.
2605 (lnp_state_machine::m_file): Update comment and reflect type change.
2606 (lnp_state_machine::record_line): Reflect type change.
2607 (dwarf_decode_lines): Reflect API change.
2608 (file_file_name): Likewise.
2609 (file_full_name): Likewise.
2610
2611 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2612
2613 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2614
2615 2019-10-21 Tom Tromey <tom@tromey.com>
2616
2617 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2618
2619 2019-10-21 Tom Tromey <tom@tromey.com>
2620
2621 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2622 NM_H. Use AC_CONFIG_LINKS.
2623 * configure: Rebuild.
2624 * Makefile.in (NM_H): New variable.
2625 (generated_files): Add NM_H. Remove gcore.
2626 (nm.h, stamp-nmh): New targets.
2627
2628 2019-10-20 Tom Tromey <tom@tromey.com>
2629
2630 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2631 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2632 obsolete comment.
2633 (put_objfile_before): Now static.
2634
2635 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2636
2637 * gdbsupport/common-utils.h (startswith): Change return type to
2638 bool.
2639
2640 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2641
2642 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2643 * breakpoint.c (bp_locations_compare): Rename to...
2644 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2645 (update_global_location_list): Use std::sort instead of qsort.
2646 * buildsym.c (compare_line_numbers): Rename to...
2647 (lte_is_less_than): ...this, and change to std::sort semantics.
2648 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2649 instead of qsort.
2650 * disasm.c (compare_lines): Rename to...
2651 (line_is_less_than): ...this, and change to std::sort semantics.
2652 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2653 of qsort.
2654 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2655 (fde_is_less_than): ...this, and change to std::sort semantics.
2656 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2657 * mdebugread.c (compare_blocks):
2658 (block_is_less_than): ...this, and change to std::sort semantics.
2659 (sort_blocks): Call std::sort instead of qsort.
2660 * objfiles.c (qsort_cmp): Rename to...
2661 (sort_cmp): ...this, and change to std::sort semantics.
2662 (update_section_map): Call std::sort instead of qsort.
2663 * remote.c (compare_pnums): Remove.
2664 (map_regcache_remote_table): Call std::sort instead of qsort.
2665 * utils.c (compare_positive_ints): Remove.
2666 * utils.h (compare_positive_ints): Remove.
2667 * xcoffread.c (compare_lte): Remove.
2668 (arrange_linetable): Call std::sort instead of qsort.
2669
2670 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2671
2672 * symfile.c (init_entry_point_info): Fix typo.
2673 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2674
2675 2019-10-18 Tom de Vries <tdevries@suse.de>
2676
2677 * aarch64-tdep.c: Fix typos in comments.
2678 * ada-lang.c: Same.
2679 * ada-tasks.c: Same.
2680 * alpha-tdep.c: Same.
2681 * alpha-tdep.h: Same.
2682 * amd64-nat.c: Same.
2683 * amd64-windows-tdep.c: Same.
2684 * arc-tdep.c: Same.
2685 * arc-tdep.h: Same.
2686 * arch-utils.c: Same.
2687 * arm-nbsd-tdep.c: Same.
2688 * arm-tdep.c: Same.
2689 * ax-gdb.c: Same.
2690 * blockframe.c: Same.
2691 * btrace.c: Same.
2692 * c-varobj.c: Same.
2693 * coff-pe-read.c: Same.
2694 * coffread.c: Same.
2695 * cris-tdep.c: Same.
2696 * darwin-nat.c: Same.
2697 * dbxread.c: Same.
2698 * dcache.c: Same.
2699 * disasm.c: Same.
2700 * dtrace-probe.c: Same.
2701 * dwarf-index-write.c: Same.
2702 * dwarf2-frame-tailcall.c: Same.
2703 * dwarf2-frame.c: Same.
2704 * dwarf2read.c: Same.
2705 * eval.c: Same.
2706 * exceptions.c: Same.
2707 * fbsd-tdep.c: Same.
2708 * findvar.c: Same.
2709 * frame.c: Same.
2710 * frv-tdep.c: Same.
2711 * gnu-v3-abi.c: Same.
2712 * go32-nat.c: Same.
2713 * h8300-tdep.c: Same.
2714 * hppa-tdep.c: Same.
2715 * i386-linux-tdep.c: Same.
2716 * i386-tdep.c: Same.
2717 * ia64-libunwind-tdep.c: Same.
2718 * ia64-tdep.c: Same.
2719 * infcmd.c: Same.
2720 * infrun.c: Same.
2721 * linespec.c: Same.
2722 * linux-nat.c: Same.
2723 * linux-thread-db.c: Same.
2724 * machoread.c: Same.
2725 * mdebugread.c: Same.
2726 * mep-tdep.c: Same.
2727 * mn10300-tdep.c: Same.
2728 * namespace.c: Same.
2729 * objfiles.c: Same.
2730 * opencl-lang.c: Same.
2731 * or1k-tdep.c: Same.
2732 * osabi.c: Same.
2733 * ppc-linux-nat.c: Same.
2734 * ppc-linux-tdep.c: Same.
2735 * ppc-sysv-tdep.c: Same.
2736 * printcmd.c: Same.
2737 * procfs.c: Same.
2738 * record-btrace.c: Same.
2739 * record-full.c: Same.
2740 * remote-fileio.c: Same.
2741 * remote.c: Same.
2742 * rs6000-tdep.c: Same.
2743 * s12z-tdep.c: Same.
2744 * score-tdep.c: Same.
2745 * ser-base.c: Same.
2746 * ser-go32.c: Same.
2747 * skip.c: Same.
2748 * sol-thread.c: Same.
2749 * solib-svr4.c: Same.
2750 * solib.c: Same.
2751 * source.c: Same.
2752 * sparc-nat.c: Same.
2753 * sparc-sol2-tdep.c: Same.
2754 * sparc-tdep.c: Same.
2755 * sparc64-tdep.c: Same.
2756 * stabsread.c: Same.
2757 * stack.c: Same.
2758 * symfile.c: Same.
2759 * symtab.c: Same.
2760 * target-descriptions.c: Same.
2761 * target-float.c: Same.
2762 * thread.c: Same.
2763 * utils.c: Same.
2764 * valops.c: Same.
2765 * valprint.c: Same.
2766 * value.c: Same.
2767 * varobj.c: Same.
2768 * windows-nat.c: Same.
2769 * xcoffread.c: Same.
2770 * xstormy16-tdep.c: Same.
2771 * xtensa-tdep.c: Same.
2772
2773 2019-10-17 Tom Tromey <tromey@adacore.com>
2774
2775 * configure: Rebuild.
2776 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2777 in AC_CONFIG_FILES invocation.
2778 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2779 new-style config.status invocation.
2780
2781 2019-10-17 Tom de Vries <tdevries@suse.de>
2782
2783 * arm-nbsd-nat.c: Fix typos in comments.
2784 * arm-tdep.c: Same.
2785 * darwin-nat-info.c: Same.
2786 * dwarf2read.c: Same.
2787 * elfread.c: Same.
2788 * event-top.c: Same.
2789 * findvar.c: Same.
2790 * gdbtypes.c: Same.
2791 * hppa-tdep.c: Same.
2792 * i386-tdep.c: Same.
2793 * jit.c: Same.
2794 * main.c: Same.
2795 * mdebugread.c: Same.
2796 * moxie-tdep.c: Same.
2797 * nto-procfs.c: Same.
2798 * osabi.c: Same.
2799 * ppc-linux-tdep.c: Same.
2800 * remote.c: Same.
2801 * riscv-tdep.c: Same.
2802 * s390-tdep.c: Same.
2803 * sh-tdep.c: Same.
2804 * sparc-linux-tdep.c: Same.
2805 * sparc-nat.c: Same.
2806 * stack.c: Same.
2807 * target-descriptions.c: Same.
2808 * top.c: Same.
2809 * varobj.c: Same.
2810
2811 2019-10-16 Tom Tromey <tom@tromey.com>
2812
2813 * objfiles.h (struct objfile) <original_name>: Now const.
2814
2815 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2816
2817 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2818 pass on to sigsetjmp's second argument.
2819 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2820
2821 2019-10-16 Keith Seitz <keiths@redhat.com>
2822
2823 PR gdb/23567
2824 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2825 sections whose size is greater than the file size.
2826
2827 2019-10-16 Jim Wilson <jimw@sifive.com>
2828
2829 * riscv-tdep.c (riscv_gcc_target_options): New.
2830 (riscv_gnu_triplet_regexp): New.
2831 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2832 set_gdbarch_gnu_triplet_regexp.
2833
2834 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2835
2836 * Makefile.in: Add xml-builtin.h.
2837 * features/feature_to_c.sh: Add an include for xml-builtin.h
2838 to ensure that the compiler checks that the types match.
2839 * xml-builtin.h: New file.
2840 * xml-support.c (fetch_xml_builtin): Add missing const.
2841 * xml-support.h: Remove declaration of xml_builtins.
2842
2843 2019-10-16 Tom de Vries <tdevries@suse.de>
2844
2845 PR tdep/25096
2846 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2847 (amd64_classify_aggregate): ... here.
2848 (amd64_classify_aggregate_field): Handled fiels of nested structs
2849 recursively.
2850
2851 2019-10-16 Tom de Vries <tdevries@suse.de>
2852
2853 PR tdep/24104
2854 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2855 that handles 'theclass'.
2856
2857 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2858
2859 * linespec.c (decode_digits_ordinary): Update comment.
2860 * make-target-delegates: No longer need to handle VEC case.
2861 * memrange.c (normalize_mem_ranges): Update comment.
2862 * namespace.c (add_using_directive): Update comment.
2863 * objc-lang.c (uniquify_strings): Update comment.
2864 * ppc-linux-nat.c (struct thread_points): Update comment.
2865 * probe.h (find_probes_in_objfile): Update comment.
2866 * target.h (enum flash_preserve_mode): Update comment.
2867 * varobj.c (varobj_restrict_range): Update comment.
2868 * varobj.h (varobj_list_children): Update comment.
2869
2870 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2871
2872 * Makefile.in: Remove references to vec.h and vec.c.
2873 * aarch64-tdep.c: No longer include vec.h.
2874 * ada-lang.c: Likewise.
2875 * ada-lang.h: Likewise.
2876 * arm-tdep.c: Likewise.
2877 * ax.h: Likewise.
2878 * breakpoint.h: Likewise.
2879 * charset.c: Likewise.
2880 * cp-support.h: Likewise.
2881 * dtrace-probe.c: Likewise.
2882 * dwarf2read.c: Likewise.
2883 * extension.h: Likewise.
2884 * gdb_bfd.c: Likewise.
2885 * gdbsupport/gdb_vecs.h: Likewise.
2886 * gdbsupport/vec.c: Remove.
2887 * gdbsupport/vec.h: Remove.
2888 * gdbthread.h: Likewise.
2889 * guile/scm-type.c: Likewise.
2890 * inline-frame.c: Likewise.
2891 * machoread.c: Likewise.
2892 * memattr.c: Likewise.
2893 * memrange.h: Likewise.
2894 * namespace.h: Likewise.
2895 * nat/linux-btrace.h: Likewise.
2896 * osdata.c: Likewise.
2897 * parser-defs.h: Likewise.
2898 * progspace.h: Likewise.
2899 * python/py-type.c: Likewise.
2900 * record-btrace.c: Likewise.
2901 * rust-exp.y: Likewise.
2902 * solib-target.c: Likewise.
2903 * stap-probe.c: Likewise.
2904 * target-descriptions.c: Likewise.
2905 * target-memory.c: Likewise.
2906 * target.h: Likewise.
2907 * varobj.c: Likewise.
2908 * varobj.h: Likewise.
2909 * xml-support.h: Likewise.
2910
2911 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2912
2913 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2914 Update for new std::vector based implementation.
2915 (process_psymtab_comp_unit_reader): Likewise.
2916 (scan_partial_symbols): Likewise.
2917 (recursively_compute_inclusions): Likewise.
2918 (compute_compunit_symtab_includes): Likewise.
2919 (process_imported_unit_die): Likewise.
2920 (queue_and_load_dwo_tu): Likewise.
2921 (follow_die_sig_1): Likewise.
2922 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2923 (typedef dwarf2_per_cu_ptr): Remove.
2924 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2925 function.
2926 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2927 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2928 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2929 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2930 std::vector.
2931
2932 2019-10-15 Tom Tromey <tromey@adacore.com>
2933
2934 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2935 TID.
2936
2937 2019-10-15 Tom Tromey <tromey@adacore.com>
2938
2939 * windows-nat.c (windows_nat_target::fetch_registers)
2940 (windows_nat_target::store_registers): Rename "pid" to "tid".
2941
2942 2019-10-15 Tom Tromey <tromey@adacore.com>
2943
2944 * gdbarch.h, gdbarch.c: Rebuild.
2945 * gdbarch.sh (gcc_target_options): Change return type to
2946 std::string.
2947 * compile/compile.c (get_args): Update.
2948 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2949 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2950 std::string.
2951 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2952 std::string.
2953 * arch-utils.c (default_gcc_target_options): Return std::string.
2954 * arch-utils.h (default_gcc_target_options): Return std::string.
2955 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2956
2957 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2958
2959 * breakpoint.c (breakpoint_chain): Make static.
2960 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2961 of accessing breakpoint_chain.
2962
2963 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2964
2965 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2966 to a gdb::function_view and return value to bool.
2967 * breakpoint.h (iterate_over_breakpoints): Likewise.
2968 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2969 (pop_dummy_frame): Update.
2970 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2971 (gdbscm_breakpoints): Update.
2972 * python/py-breakpoint.c (build_bp_list): Update.
2973 (gdbpy_breakpoints): Update.
2974 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2975 Update.
2976 (bpfinishpy_handle_stop): Update.
2977 (bpfinishpy_handle_exit): Update.
2978 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2979 (svr4_update_solib_event_breakpoints): Update.
2980
2981 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2982
2983 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2984 when unwrapping single-field structs.
2985
2986 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2987
2988 * dwarf2read.c: Remove includes.
2989
2990 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2991
2992 * ui-out.c (ui_out::call_do_message): Silence
2993 -Wformat-nonliteral warning.
2994
2995 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2996
2997 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2998 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2999 include: readline/tilde.h.
3000
3001 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3002
3003 * remote.c (remote_target::get_trace_status): Remove declaration of
3004 trace_regblock_size.
3005
3006 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3007
3008 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3009 (show_user): Remove declaration of cmdlist.
3010 * cli/cli-cmds.h (max_user_call_depth): Declare.
3011 * cli/cli-script.c (execute_user_command): Remove declaration
3012 of max_user_call_depth.
3013
3014 2019-10-11 Jim Wilson <jimw@sifive.com>
3015
3016 * gdbsupport/print-utils.h (pulongest): Fix comment.
3017 (plongest): Likewise.
3018 (phex): Add missing comment, mention leading zeros.
3019 (phex_nz): Add mention of no leading zeros to comment.
3020
3021 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3022 plongest instead of unsigned long long cast.
3023
3024 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3025
3026 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3027 for external_editor_command and gdbtk_test.
3028
3029 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3030
3031 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3032 * varobj.c (varobjdebug): Move comment to...
3033 * varobj.h (varobjdebug): ...here, and declare.
3034
3035 2019-10-09 Tom Tromey <tom@tromey.com>
3036
3037 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3038 erase_data_content.
3039
3040 2019-10-09 Tom Tromey <tom@tromey.com>
3041
3042 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3043 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3044 * tui/tui-command.c (tui_cmd_window::resize)
3045 (tui_refresh_cmd_win): Update.
3046 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3047 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3048 * tui/tui-data.c (~tui_gen_win_info): Remove.
3049 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3050 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3051 (tui_redisplay_readline, tui_mld_flush)
3052 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3053 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3054 (tui_data_window::erase_data_content)
3055 (tui_data_item_window::rerender)
3056 (tui_data_item_window::refresh_window): Update.
3057 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3058 (box_win, tui_gen_win_info::make_window)
3059 (tui_gen_win_info::make_visible): Update.
3060 (tui_delete_win): Remove.
3061 * tui/tui-winsource.c
3062 (tui_source_window_base::do_erase_source_content): Update.
3063 (tui_show_source_line, tui_source_window_base::update_tab_width)
3064 (tui_source_window_base::update_exec_info): Update.
3065 * tui/tui-data.h (struct curses_deleter): New.
3066 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3067 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3068
3069 2019-10-09 Tom Tromey <tom@tromey.com>
3070
3071 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3072
3073 2019-10-09 Tom Tromey <tom@tromey.com>
3074
3075 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3076 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3077
3078 2019-10-09 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3081 window height directly.
3082 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3083 declare.
3084 * tui/tui-layout.c (tui_default_win_height): Remove.
3085 (tui_default_win_viewport_height): Remove.
3086
3087 2019-10-09 Tom Tromey <tom@tromey.com>
3088
3089 * tui/tui.h: Remove comments.
3090
3091 2019-10-09 Tom de Vries <tdevries@suse.de>
3092
3093 * python/lib/gdb/printer/bound_registers.py: Use
3094 '^builtin_type_bound128' as regexp argument for
3095 add_builtin_pretty_printer.
3096
3097 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3098
3099 * guile/guile.c (guile_extension_script_ops): Remove forward
3100 declaration and mark as static.
3101 (guile_script_ops): Likewise.
3102 (extension_language_guile): Move further down in the file so
3103 it can reference the definitions for guile_{extension_,}script_ops.
3104
3105 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3106
3107 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3108 except SORTL, DFLTCC, and KDSA.
3109
3110 2019-10-08 Tom Tromey <tromey@adacore.com>
3111
3112 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3113 (struct safe_symbol_file_add_args): Remove.
3114
3115 2019-10-08 Tom Tromey <tromey@adacore.com>
3116
3117 * windows-nat.c: Don't include buildsym-legacy.h.
3118
3119 2019-10-08 Tom Tromey <tromey@adacore.com>
3120
3121 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3122
3123 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3124
3125 * gdbtypes.c (overload_debug): Move comment to header.
3126 * gdbtypes.h (overload_debug): Declare.
3127 * valops.c: Remove declaration of overload_debug, instead
3128 include gdbtypes.h.
3129
3130 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3131
3132 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3133 through _().
3134 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3135 move comment...
3136 * language.h (lang_frame_mismatch_warn): ... here. Also add
3137 declaration.
3138 * top.c (lang_frame_mismatch_warn): Remove declaration.
3139 (check_frame_language_change): Pass lang_frame_mismatch_warn
3140 through _().
3141
3142 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3143
3144 * c-lang.h (vtbl_ptr_name): Declare.
3145 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3146 it from the header.
3147 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3148
3149 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3150
3151 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3152 gdb_static_assert.
3153
3154 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3155
3156 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3157 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3158 * ctfread.c: New file.
3159 * ctfread.h: New file.
3160 * elfread.c: Include ctfread.h.
3161 (struct elfinfo text_p): New member ctfsect.
3162 (elf_locate_sections): Mark CTF section.
3163 (elf_symfile_read): Call elfctf_build_psymtabs.
3164 * Makefile.in (LIBCTF): Add.
3165 (CLIBS): Use it.
3166 (CDEPS): Likewise.
3167 (DIST): Add ctfread.c.
3168
3169 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3170
3171 * ctfread.c (struct nextfield): Renamed to ...
3172 (struct ctf_nextfield): ... this.
3173 (struct field_info): Renamed to ...
3174 (strut ctf_field_info): ... this.
3175 (attach_fields_to_type): Update for renamed structures.
3176 (ctf_add_member_cb): Likewise.
3177 (ctf_add_enum_member_cb): Likewise.
3178 (process_struct_members): Likewise.
3179 (process_enum_type): Likewise.
3180
3181 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3182
3183 * tracectf.h: Rename, was ctf.h.
3184 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3185 * tracefile.c: Likewise.
3186 * tracepoint.c: Remove unused include ctf.h.
3187 * mi/mi-main.c: Likewise.
3188 * Makefile.in Replace ctf.c with tracectf.c.
3189
3190 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3191
3192 * version.in: Change version number to "9.0.50.DATE-git".
3193
3194 2019-10-03 Tom Tromey <tom@tromey.com>
3195
3196 PR rust/24976:
3197 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3198
3199 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3200
3201 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3202 cp_search_name_hash.
3203 * NEWS: Add entry about nested function support.
3204
3205 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3206 Andrew Burgess <andrew.burgess@embecosm.com>
3207
3208 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3209 for nested static variables when searchin VAR_DOMAIN.
3210 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3211 global scope, update comment.
3212 (add_partial_subprogram): Call add_partial_subprogram recursively
3213 for nested subroutines when processinng Fortran.
3214 (load_partial_dies): Process the child entities of a subprogram
3215 when processing Fortran.
3216 (partial_die_parent_scope): Handle building scope
3217 for Fortran nested functions.
3218 (process_die): Record that nested functions have a scope.
3219 (new_symbol): Always record Fortran subprograms on the global
3220 symbol list.
3221 (determine_prefix): How to build the prefix for Fortran
3222 subprograms.
3223
3224 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3227 have just sent the thread a SIGSTOP and are waiting for it to
3228 arrive.
3229
3230 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3231
3232 * btrace.c (btrace_add_pc): Remove whitespace before the template
3233 parameter in 'std::vector <...>'.
3234 (parse_xml_btrace_block): Likewise.
3235 (btrace_maint_decode_pt): Likewise.
3236 (btrace_maint_update_packets): Likewise.
3237 (btrace_maint_print_packets): Likewise.
3238 * btrace.h (struct btrace_maint_info): Likewise.
3239 * dwarf2read.c (struct type_unit_group): Likewise.
3240 (build_type_psymtabs_reader): Likewise.
3241 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3242 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3243 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3244
3245 2019-10-03 Tom de Vries <tdevries@suse.de>
3246
3247 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3248 the first line of the help text for set/show style metadata.
3249
3250 2019-10-02 Tom Tromey <tromey@adacore.com>
3251
3252 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3253 * gdbsupport/common-inferior.c: New file.
3254 * infcmd.c (startup_with_shell): Don't define.
3255 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3256 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3257 * inferior.h (startup_with_shell): Don't declare.
3258
3259 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3260
3261 * gdbsupport/gdb_assert.h: Include errors.h.
3262 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3263
3264 2019-10-02 Tom Tromey <tromey@adacore.com>
3265
3266 * NEWS: Add $_ada_exception entry.
3267 * ada-lang.c (struct ada_catchpoint): Add constructor.
3268 <m_kind>: New member.
3269 (allocate_location_exception, re_set_exception): Remove
3270 "ex" parameter.
3271 (should_stop_exception): Compute $_ada_exception.
3272 (check_status_exception, print_it_exception)
3273 (print_one_exception, print_mention_exception): Remove
3274 "ex" parameter.
3275 (allocate_location_catch_exception, re_set_catch_exception)
3276 (check_status_exception, print_it_catch_exception)
3277 (print_one_catch_exception, print_mention_catch_exception)
3278 (print_recreate_catch_exception)
3279 (allocate_location_catch_exception_unhandled)
3280 (re_set_catch_exception_unhandled)
3281 (check_status_exception, print_it_catch_exception_unhandled)
3282 (print_one_catch_exception_unhandled)
3283 (print_mention_catch_exception_unhandled)
3284 (print_recreate_catch_exception_unhandled)
3285 (allocate_location_catch_assert, re_set_catch_assert)
3286 (check_status_assert, print_it_catch_assert)
3287 (print_one_catch_assert, print_mention_catch_assert)
3288 (print_recreate_catch_assert)
3289 (allocate_location_catch_handlers, re_set_catch_handlers)
3290 (check_status_handlers, print_it_catch_handlers)
3291 (print_one_catch_handlers, print_mention_catch_handlers)
3292 (print_recreate_catch_handlers): Remove.
3293 (create_ada_exception_catchpoint): Update.
3294 (initialize_ada_catchpoint_ops): Update.
3295
3296 2019-10-02 Tom Tromey <tromey@adacore.com>
3297
3298 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3299 (create_excep_cond_exprs): Simplify exception string computation.
3300 (ada_exception_catchpoint_cond_string): Likewise.
3301
3302 2019-10-02 Tom Tromey <tromey@adacore.com>
3303
3304 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3305 * ada-lang.c (lesseq_defined_than): Handle
3306 LOC_STATIC.
3307 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3308 parameter.
3309 (dwarf2_has_info): Likewise.
3310 (new_symbol): Set maybe_copied on symbol when
3311 appropriate.
3312 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3313 parameter.
3314 <can_copy>: New member.
3315 * elfread.c (record_minimal_symbol): Set maybe_copied
3316 on symbol when appropriate.
3317 (elf_symfile_read): Update call to dwarf2_has_info.
3318 * minsyms.c (lookup_minimal_symbol_linkage): New
3319 function.
3320 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3321 * symtab.c (get_symbol_address, get_msymbol_address):
3322 New functions.
3323 * symtab.h (get_symbol_address, get_msymbol_address):
3324 Declare.
3325 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3326 maybe_copied.
3327 (struct symbol, struct minimal_symbol) <maybe_copied>:
3328 New member.
3329
3330 2019-10-02 Tom Tromey <tromey@adacore.com>
3331
3332 * source.c (struct current_source_location): New.
3333 (current_source_key): New global.
3334 (current_source_symtab, current_source_line)
3335 (current_source_pspace): Remove.
3336 (get_source_location): New function.
3337 (get_current_source_symtab_and_line)
3338 (set_default_source_symtab_and_line)
3339 (set_current_source_symtab_and_line)
3340 (clear_current_source_symtab_and_line, select_source_symtab)
3341 (info_source_command, print_source_lines_base)
3342 (info_line_command, search_command_helper, _initialize_source):
3343 Update.
3344
3345 2019-10-02 Tom Tromey <tromey@adacore.com>
3346
3347 * source.c (select_source_symtab): Don't call
3348 decode_line_with_current_source.
3349
3350 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * symtab.c (lookup_global_symbol): Search global block.
3353
3354 2019-10-02 Tom Tromey <tromey@adacore.com>
3355
3356 * coffread.c (process_coff_symbol): Update.
3357 * dwarf2read.c (var_decode_location, new_symbol): Update.
3358 * mdebugread.c (parse_symbol): Update.
3359 * objfiles.c (relocate_one_symbol): Update.
3360 * stabsread.c (define_symbol, fix_common_block)
3361 (scan_file_globals): Update.
3362 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3363 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3364 * xcoffread.c (process_xcoff_symbol): Update.
3365
3366 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3367
3368 * MAINTAINERS: Update my email address.
3369
3370 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3371
3372 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3373 std::vector.
3374 (build_type_psymtabs_reader): Update for std::vector.
3375 (build_type_psymtab_dependencies): Likewise.
3376 * dwarf2read.h: Remove use of DEF_VEC_P.
3377 (typedef sig_type_ptr): Delete.
3378
3379 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3380
3381 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3382 to std::vector.
3383 (btrace_maint_decode_pt): Likewise, and move allocation of the
3384 vector outside of the loop.
3385 (btrace_maint_update_packets): Update to handle change from VEC to
3386 std::vector.
3387 (btrace_maint_print_packets): Likewise.
3388 (maint_info_btrace_cmd): Likewise.
3389 * btrace.h: Remove use of DEF_VEC_O.
3390 (typedef btrace_pt_packet_s): Delete.
3391 (struct btrace_maint_info) <packets>: Change fromm VEC to
3392 std::vector.
3393 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3394
3395 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3398 make accesses into the vector constant references.
3399 (btrace_add_pc): Update for std::vector.
3400 (btrace_stitch_bts): Likewise.
3401 (parse_xml_btrace_block): Likewise.
3402 (btrace_maint_update_packets): Likewise.
3403 (btrace_maint_print_packets): Likewise.
3404 (maint_info_btrace_cmd): Likewise.
3405 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3406 std::vector.
3407 (btrace_data::empty): Likewise.
3408 (btrace_data_append): Likewise.
3409 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3410 (typedef btrace_block_s): Delete.
3411 (struct btrace_block): Add constructor.
3412 (struct btrace_data_bts) <blocks>: Change to std::vector.
3413 * nat/linux-btrace.c (perf_event_read_bts): Update for
3414 std::vector.
3415 (linux_read_bts): Likewise.
3416
3417 2019-10-01 Tom Tromey <tom@tromey.com>
3418
3419 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3420
3421 2019-10-01 Tom Tromey <tom@tromey.com>
3422
3423 * stack.c (print_frame, info_frame_command_core): Use
3424 styled_string.
3425 * linux-thread-db.c (try_thread_db_load_1)
3426 (try_thread_db_load_from_pdir_1): Use styled_string.
3427 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3428 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3429 (maybe_print_unsupported_script_warning)
3430 (maybe_print_script_not_found_warning): Use styled_string.
3431 * ada-lang.c (user_select_syms): Use styled_string.
3432
3433 2019-10-01 Tom Tromey <tom@tromey.com>
3434
3435 * p-lang.c (pascal_printstr): Use metadata style.
3436 * value.c (show_convenience): Use metadata style.
3437 * valprint.c (valprint_check_validity, val_print_optimized_out)
3438 (val_print_not_saved, val_print_unavailable)
3439 (val_print_invalid_address, generic_val_print, val_print)
3440 (value_check_printable, val_print_array_elements): Use metadata
3441 style.
3442 * ui-out.h (class ui_out) <field_fmt>: New overload.
3443 <do_field_fmt>: Add style parameter.
3444 * ui-out.c (ui_out::field_fmt): New overload.
3445 * typeprint.c (type_print_unknown_return_type)
3446 (val_print_not_allocated, val_print_not_associated): Use metadata
3447 style.
3448 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3449 parameter.
3450 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3451 * tracepoint.c (tvariables_info_1): Use metadata style.
3452 * stack.c (print_frame_arg, print_frame_info, print_frame)
3453 (info_frame_command_core): Use metadata style.
3454 * skip.c (info_skip_command): Use metadata style.
3455 * rust-lang.c (rust_print_enum): Use metadata style.
3456 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3457 metadata style.
3458 * python/py-framefilter.c (py_print_single_arg): Use metadata
3459 style.
3460 * printcmd.c (do_one_display, print_variable_and_value): Use
3461 metadata style.
3462 * p-valprint.c (pascal_val_print)
3463 (pascal_object_print_value_fields): Use metadata style.
3464 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3465 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3466 parameter.
3467 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3468 * m2-valprint.c (m2_print_long_set): Use metadata style.
3469 * m2-typeprint.c (m2_print_type): Use metadata style.
3470 * infcmd.c (print_return_value_1): Use metadata style.
3471 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3472 * f-valprint.c (info_common_command_for_block): Use metadata
3473 style.
3474 * f-typeprint.c (f_type_print_base): Use metadata style.
3475 * expprint.c (print_subexp_standard): Use metadata style.
3476 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3477 * cli/cli-style.h (class cli_style_option): Add constructor.
3478 (metadata_style): Declare.
3479 * cli/cli-style.c (metadata_style): New global.
3480 (_initialize_cli_style): Register metadata style.
3481 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3482 parameter.
3483 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3484 * c-typeprint.c (c_type_print_base_struct_union)
3485 (c_type_print_base_1): Use metadata style.
3486 * breakpoint.c (watchpoint_value_print)
3487 (print_one_breakpoint_location): Use metadata style.
3488 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3489 style.
3490 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3491 style.
3492 * ada-valprint.c (val_print_packed_array_elements, printstr)
3493 (print_field_values, ada_val_print_ref, ada_val_print): Use
3494 metadata style.
3495 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3496 style.
3497 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3498 style.
3499 * ada-lang.c (user_select_syms): Use metadata style.
3500
3501 2019-10-01 Tom Tromey <tom@tromey.com>
3502
3503 * cli/cli-cmds.c (pwd_command): Style output.
3504
3505 2019-10-01 Pedro Alves <palves@redhat.com>
3506 Tom Tromey <tom@tromey.com>
3507
3508 * symtab.c (print_symbol_info): Use %ps.
3509 (print_msymbol_info): Use %ps.
3510 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3511 * printcmd.c (print_variable_and_value): Use %ps.
3512 * macrocmd.c (show_pp_source_pos): Use %ps.
3513 * infrun.c (print_exited_reason): Use ui_out::message.
3514 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3515 (describe_other_breakpoints): Use ui_out::message and new
3516 formats.
3517 (say_where): Use new formats.
3518 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3519 and new formats.
3520
3521 2019-10-01 Pedro Alves <palves@redhat.com>
3522 Tom Tromey <tom@tromey.com>
3523
3524 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3525 (test_gdb_formats): New function.
3526 (run_tests): Call it.
3527 (test_format_specifier): Update.
3528 * utils.h (fputs_filtered): Update comment.
3529 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3530 (fputs_styled_unfiltered): Declare.
3531 * utils.c (fputs_styled_unfiltered): New function.
3532 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3533 (vfprintf_filtered): Update.
3534 (vfprintf_unfiltered, vprintf_filtered): Update.
3535 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3536 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3537 disallow_ui_out_field>: New constants.
3538 (enum class field_kind): New.
3539 (struct base_field_s, struct signed_field_s): New.
3540 (signed_field): New function.
3541 (struct string_field_s): New.
3542 (string_field): New function.
3543 (struct styled_string_s): New.
3544 (styled_string): New function.
3545 (class ui_out) <message>: Add comment.
3546 <vmessage, call_do_message>: New methods.
3547 <do_message>: Add style parameter.
3548 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3549 methods.
3550 (ui_out::message): Rewrite.
3551 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3552 parameter.
3553 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3554 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3555 gdb_extensions parameter.
3556 (class format_piece): Add parameter to constructor.
3557 (n_int_args): New field.
3558 * gdbsupport/format.c (format_pieces::format_pieces): Add
3559 gdb_extensions parameter. Handle '*'.
3560 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3561 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3562 vfprintf_styled_no_gdbfmt.
3563 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3564 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3565 unfiltered output.
3566 * ui-style.h (struct ui_file_style) <ptr>: New method.
3567
3568 2019-10-01 Tom Tromey <tom@tromey.com>
3569
3570 * unittests/format_pieces-selftests.c: Update. Add final format.
3571 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3572 empty literal pieces.
3573
3574 2019-10-01 Tom Tromey <tom@tromey.com>
3575
3576 * ui-out.h (enum class ui_out_style_kind): Remove.
3577 (class ui_out) <field_string, field_stsream, do_field_string>:
3578 Change type of "style".
3579 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3580 (ui_out::field_string): Update.
3581 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3582 of "style".
3583 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3584 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3585 * stack.c (print_frame_arg, print_frame_info, print_frame):
3586 Update.
3587 * source.c (print_source_lines_base): Update.
3588 * solib.c (info_sharedlibrary_command): Update.
3589 * skip.c (info_skip_command): Update.
3590 * record-btrace.c (btrace_call_history_src_line)
3591 (btrace_call_history): Update.
3592 * python/py-framefilter.c (py_print_frame): Update.
3593 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3594 "style".
3595 * mi/mi-out.c (mi_ui_out::do_table_header)
3596 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3597 (mi_ui_out::do_field_string): Update.
3598 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3599 Update.
3600 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3601 "style".
3602 * cli-out.c (cli_ui_out::do_table_header)
3603 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3604 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3605 (cli_ui_out::do_field_fmt): Update.
3606 * breakpoint.c (print_breakpoint_location): Update.
3607 (update_static_tracepoint): Update.
3608
3609 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3610
3611 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3612 conversion of gdb_datadir.
3613 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3614 remove not needed c_str ().
3615
3616 2019-09-30 Ali Tamur <tamur@google.com>
3617
3618 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3619 (dwarf2_string_attr): Likewise.
3620
3621 2019-09-30 Ali Tamur <tamur@google.com>
3622
3623 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3624 (process_full_type_unit): Likewise.
3625 (dump_die_shallow): Likewise.
3626 (cu_debug_loc_section): Likewise.
3627
3628 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3629
3630 * minsyms.c (compare_minimal_symbols): Rename to...
3631 (minimal_symbol_is_less_than): ...this, and adjust to STL
3632 conventions (return bool, take arguments as references)
3633 (minimal_symbol_reader::install): Call std::sort instead
3634 of qsort.
3635
3636 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3637
3638 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3639 hash and why.
3640 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3641 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3642
3643 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3644
3645 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3646 * psympriv.h (add_psymbol_to_list): Move comment here and update
3647 it.
3648
3649 2019-09-29 Tom de Vries <tdevries@suse.de>
3650
3651 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3652 Use $tmpdir/$(basename "$output_file").dwz instead of
3653 "${output_file}.dwz".
3654
3655 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3656
3657 PR gdb/25045
3658 * hppa-linux-nat.c: Include gdbarch.h.
3659
3660 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3661
3662 * blockframe.c (find_pc_partial_function): Change return type to bool.
3663 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3664 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3665 (stub_gnu_ifunc_resolve_name): Likewise.
3666 * symtab.c (compare_filenames_for_search): Likewise.
3667 (compare_glob_filenames_for_search): Likewise.
3668 (matching_obj_sections): Likewise.
3669 (symbol_matches_domain): Likewise.
3670 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3671 (find_line_pc): Change return type to bool.
3672 (find_line_pc_range): Likewise.
3673 (producer_is_realview): Likewise.
3674 * symtab.h (symbol_matches_domain): Likewise.
3675 (find_pc_partial_function): Likewise.
3676 (find_pc_line_pc_range): Likewise.
3677 (in_gnu_ifunc_stub): Likewise.
3678 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3679 (find_line_pc): Likewise.
3680 (find_line_pc_range): Likewise.
3681 (matching_obj_sections): Likewise.
3682 (find_line_symtab): Change out parameter to bool.
3683 (producer_is_realview): Change return type to bool.
3684 (compare_filenames_for_search): Likewise.
3685 (compare_glob_filenames_for_search): Likewise.
3686
3687 2019-09-26 Tom Tromey <tom@tromey.com>
3688
3689 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3690 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3691 * gdb_usleep.h: Remove.
3692 * gdb_usleep.c: Remove.
3693 * utils.c: Don't include gdb_usleep.h.
3694
3695 2019-09-26 Tom Tromey <tromey@adacore.com>
3696
3697 * python/py-type.c (type_to_type_object): Call check_typedef
3698 for stub types.
3699
3700 2019-09-26 Tom Tromey <tom@tromey.com>
3701
3702 * utils.h (initialize_utils): Don't declare.
3703 * top.c (gdb_init): Don't call initialize_utils.
3704 * utils.c (initialize_utils): Remove. Move contents...
3705 (_initialize_utils): ... here.
3706
3707 2019-09-25 Tom Tromey <tom@tromey.com>
3708
3709 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3710 * utils.h (make_hex_string): Don't declare.
3711 * utils.c (make_hex_string): Remove.
3712
3713 2019-09-24 Tom de Vries <tdevries@suse.de>
3714
3715 PR gdb/23815
3716 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3717 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3718
3719 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3720
3721 * NEWS: Mention new simulator port for PRU.
3722
3723 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3724
3725 * ada-exp.y (write_object_remaining): Update.
3726 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3727 and eliminate the static buffer.
3728 (ada_decode_symbol): Update.
3729 (ada_la_decode): Update.
3730 (ada_sniff_from_mangled_name): Update.
3731 (is_valid_name_for_wild_match): Update.
3732 (ada_lookup_name_info::matches): Update and simplify.
3733 (name_matches_regex): Update.
3734 (ada_add_global_exceptions): Update.
3735 * ada-lang.h (ada_decode): Update signature.
3736 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3737 * dwarf-index-write.c (debug_names::insert): Update.
3738
3739 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3740
3741 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3742 formatting.
3743
3744 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3745
3746 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3747 Change "nonzero" to "true" in documentation.
3748
3749 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3750
3751 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3752 (_initialize_darwin_solib): Don't set
3753 darwin_so_ops.lookup_lib_global_symbol.
3754 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3755 set_gdbarch_iterate_over_objfiles_in_search_order.
3756 (elf_lookup_lib_symbol): Rename to...
3757 (svr4_iterate_over_objfiles_in_search_order): this, and update
3758 to iterate semantics.
3759 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3760 * solib.c (solib_global_lookup): Remove.
3761 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3762 (solib_global_lookup): Remove.
3763 * symtab.c (lookup_global_or_static_symbol): Remove call to
3764 solib_global_lookup.
3765
3766 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3767
3768 * NEWS: Move entries about default MI version now being
3769 version 3, and about the GDB/MI fix for multi-location
3770 breakpoints to the "since GDB 8.3" section.
3771
3772 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3773
3774 GDB 8.3.1 released.
3775
3776 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3777
3778 * NEWS: Mention that Cell/B.E. debugging support was removed.
3779 * MAINTAINERS: Remove spu target.
3780
3781 * config/djgpp/fnchange.lst: Remove entries for removed files.
3782
3783 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3784 spu-multiarch.o, and spu-tdep.o.
3785 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3786 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3787 spu-multiarch.c, and spu-tdep.c.
3788 * spu-linux-nat.c: Remove file.
3789 * spu-multiarch.c: Remove file.
3790 * spu-tdep.c: Remove file.
3791 * spu-tdep.h: Remove file.
3792 * solib-spu.c: Remove file.
3793 * solib-spu.h: Remove file.
3794
3795 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3796 * configure.nat (spu-linux): Remove.
3797 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3798 solib-multiarch.o from gdb_target_obs.
3799 (spu*-*-*): Remove.
3800
3801 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3802 feature flag.
3803 (ppc_linux_no_features): Update.
3804 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3805 Cell/B.E. support.
3806 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3807 (tdesc_powerpc_cell64l): Likewise.
3808 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3809 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3810 Cell/B.E. support.
3811 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3812 Do not include "features/rs6000/powerpc-cell32l.c" or
3813 "features/rs6000/powerpc-cell64l.c".
3814 (ppc_linux_spu_section): Remove.
3815 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3816 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3817 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3818 (ppc_linux_spe_context_lookup): Remove.
3819 (ppc_linux_spe_context_inferior_created): Remove.
3820 (ppc_linux_spe_context_solib_loaded): Remove.
3821 (ppc_linux_spe_context_solib_unloaded): Remove.
3822 (ppc_linux_spe_context): Remove.
3823 (struct ppu2spu_cache): Remove.
3824 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3825 (struct ppu2spu_data): Remove.
3826 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3827 ppu2spu_unwind): Remove.
3828 (ppc_linux_init_abi): Remove Cell/B.E. support.
3829 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3830
3831 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3832 (rs6000/powerpc-cell64l-expedite): Likewise
3833 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3834 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3835 rs6000/powerpc-cell64l.xml.
3836 * features/rs6000/powerpc-cell32l.xml: Remove.
3837 * features/rs6000/powerpc-cell64l.xml: Likewise.
3838 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3839 * features/rs6000/powerpc-cell64l.c: Likewise.
3840 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3841 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3842 * regformats/reg-spu.dat: Remove.
3843
3844 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3845 * corelow.c (struct spuid_list): Remove.
3846 (add_to_spuid_list): Remove.
3847 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3848 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3849 (remote_protocol_features): Remove associated entries.
3850 (_initialize_remote): No longer initialize them.
3851 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3852 * linux-nat.c (SPUFS_MAGIC): Remove.
3853 (linux_proc_xfer_spu): Remove.
3854 (spu_enumerate_spu_ids): Remove.
3855 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3856 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3857 (linux_make_corefile_notes): No longer call it.
3858
3859 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3860 (cooked_write_test): Likewise.
3861
3862 2019-09-20 Tom Tromey <tom@tromey.com>
3863
3864 * NEWS: Mention case-sensitivity of TUI commands.
3865 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3866 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3867 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3868
3869 2019-09-20 Tom Tromey <tom@tromey.com>
3870
3871 * tui/tui-source.c (tui_source_window::set_contents): Use
3872 make_unique_xstrdup.
3873 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3874 make_unique_xstrdup.
3875
3876 2019-09-20 Tom Tromey <tom@tromey.com>
3877
3878 * tui/tui-data.c: Remove separator comments.
3879 * tui/tui-layout.c: Remove separator comments.
3880 * tui/tui-win.c: Remove separator comments.
3881 * tui/tui-wingeneral.c: Remove separator comments.
3882
3883 2019-09-20 Tom Tromey <tom@tromey.com>
3884
3885 * tui/tui.h (strcat_to_buf): Don't declare.
3886 * tui/tui.c (strcat_to_buf): Remove.
3887
3888 2019-09-20 Tom Tromey <tom@tromey.com>
3889
3890 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3891 from "fullname".
3892 * tui/tui-source.c (tui_source_window::set_contents)
3893 (tui_source_window::location_matches_p)
3894 (tui_source_window::maybe_update): Update.
3895
3896 2019-09-20 Tom Tromey <tom@tromey.com>
3897
3898 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3899 Update.
3900 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3901 prefix.
3902 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3903 (tui_data_window::line_from_reg_element_no)
3904 (tui_data_window::first_reg_element_no_inline)
3905 (tui_data_window::show_registers)
3906 (tui_data_window::show_register_group)
3907 (tui_data_window::display_registers_from)
3908 (tui_data_window::display_registers_from_line)
3909 (tui_data_window::first_data_item_displayed)
3910 (tui_data_window::delete_data_content_windows)
3911 (tui_data_window::erase_data_content)
3912 (tui_data_window::do_scroll_vertical)
3913 (tui_data_window::refresh_window)
3914 (tui_data_window::check_register_values): Update.
3915
3916 2019-09-20 Tom Tromey <tom@tromey.com>
3917
3918 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3919 (struct tui_locator_window) <full_name, proc_name>: Now
3920 std::string.
3921 * tui/tui-stack.c (tui_locator_window::make_status_line)
3922 (tui_locator_window::set_locator_fullname)
3923 (tui_locator_window::set_locator_info): Update.
3924 * tui/tui-source.c (tui_source_window::set_contents)
3925 (tui_source_window::showing_source_p): Update.
3926
3927 2019-09-20 Tom Tromey <tom@tromey.com>
3928
3929 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3930 Don't call tui_locator_win_info_ptr.
3931
3932 2019-09-20 Tom Tromey <tom@tromey.com>
3933
3934 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3935
3936 2019-09-20 Tom Tromey <tom@tromey.com>
3937
3938 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3939 height for locator.
3940 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3941 * tui/tui-layout.c (show_source_disasm_command, show_data)
3942 (show_source_or_disasm_and_command): Use 1 as height for locator.
3943
3944 2019-09-20 Tom Tromey <tom@tromey.com>
3945
3946 * tui/tui.c (tui_enable): Update.
3947 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3948 Update.
3949 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3950 Update.
3951 * tui/tui-data.c (win_resized): Now bool.
3952 (tui_win_resized): Return bool.
3953 (tui_set_win_resized_to): Accept a bool.
3954
3955 2019-09-20 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3958 Change type of "refresh_values_only".
3959 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3960 type of "refresh_values_only".
3961
3962 2019-09-20 Tom Tromey <tom@tromey.com>
3963
3964 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3965 std::string.
3966 (tui_disassemble): Add "pos" parameter.
3967 (tui_disasm_window::set_contents): Simplify.
3968
3969 2019-09-20 Tom Tromey <tom@tromey.com>
3970
3971 * tui/tui-winsource.h (struct tui_source_window_base)
3972 <show_source_content>: Now private.
3973 * tui/tui-winsource.c
3974 (tui_source_window_base::show_source_content): Don't handle empty
3975 content case.
3976
3977 2019-09-20 Tom Tromey <tom@tromey.com>
3978
3979 * tui/tui-layout.c (show_source_disasm_command)
3980 (show_source_or_disasm_and_command): Don't call
3981 show_source_content.
3982
3983 2019-09-20 Tom Tromey <tom@tromey.com>
3984
3985 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3986 Declare.
3987 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3988 from tui_make_status_line.
3989 (tui_locator_window::rerender): Update.
3990
3991 2019-09-20 Tom Tromey <tom@tromey.com>
3992
3993 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3994 (tui_locator_window::rerender): Update.
3995
3996 2019-09-20 Tom Tromey <tom@tromey.com>
3997
3998 * tui/tui-winsource.h (struct tui_source_window_base)
3999 <~tui_source_window_base>: Don't declare.
4000 <fullname>: Remove.
4001 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4002 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4003 member.
4004 * tui/tui-source.c (tui_source_window::set_contents): Update.
4005 (tui_source_window::location_matches_p)
4006 (tui_source_window::maybe_update): Update.
4007
4008 2019-09-20 Tom Tromey <tom@tromey.com>
4009
4010 * tui/tui-winsource.h (~tui_source_element): Remove.
4011 (tui_source_element): Update.
4012 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4013 * tui/tui-winsource.c (tui_show_source_line): Update.
4014 * tui/tui-source.c (tui_source_window::set_contents): Update.
4015 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4016
4017 2019-09-20 Tom Tromey <tom@tromey.com>
4018
4019 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4020 declare.
4021 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4022 tui_clear_source_windows_detail.
4023 * tui/tui-winsource.h (struct tui_source_window_base)
4024 <clear_detail>: Don't declare.
4025 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4026 Remove.
4027 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4028
4029 2019-09-20 Tom Tromey <tromey@adacore.com>
4030
4031 PR ada/24919:
4032 * block.c (contained_in): Fix final return value.
4033
4034 2019-09-20 Alan Modra <amodra@gmail.com>
4035
4036 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4037 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4038 (read_indirect_string_from_dwz): Use bfd accessor.
4039 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4040 * machoread.c (macho_symfile_read_all_oso): Likewise.
4041 * solib.c (solib_bfd_open): Likewise.
4042
4043 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4044
4045 * eval.c: Move declaration of overload_resolution to...
4046 * value.h: ...here.
4047
4048 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4049
4050 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4051 * arm-linux-tdep.c: Likewise.
4052 * arm-nbsd-nat.c: Likewise.
4053 * arm-tdep.h: Declare arm_apcs_32.
4054 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4055
4056 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4057
4058 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4059 * dwarf2read.h: Declare dwarf_always_disassemble.
4060
4061 2019-09-19 Tom de Vries <tdevries@suse.de>
4062
4063 PR gdb/25009
4064 * source-cache.c (source_cache::ensure): Catch exception thrown during
4065 construction of the highlighter.
4066
4067 2019-09-18 Alan Modra <amodra@gmail.com>
4068
4069 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4070 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4071 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4072 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4073 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4074 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4075 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4076 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4077 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4078 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4079 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4080 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4081 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4082 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4083 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4084 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4085 * mi/mi-interp.c: Update throughout for bfd section macro and
4086 function changes.
4087 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4088 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4089
4090 2019-09-18 Tom Tromey <tom@tromey.com>
4091
4092 * NEWS: Add entry.
4093 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4094 call rl_initialize.
4095 (tui_enable): Do not call rl_initialize.
4096
4097 2019-09-18 Christian Groessler <chris@groessler.org>
4098
4099 * alpha-linux-nat.c: Include gdbarch.h.
4100
4101 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4102
4103 * ui-file.c: Include cli/cli-style.h.
4104 (term_cli_styling): Remove cli_styling declaration.
4105
4106 2019-09-18 Alan Modra <amodra@gmail.com>
4107
4108 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4109 to bfd_asymbol_section.
4110
4111 2019-09-18 Alan Modra <amodra@gmail.com>
4112
4113 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4114 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4115 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4116
4117 2019-09-18 Alan Modra <amodra@gmail.com>
4118
4119 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4120 * spu-linux-nat.c (spu_bfd_open): Likewise.
4121
4122 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4123
4124 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4125 to bool to match definition in dwarf2read.c.
4126
4127 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4128
4129 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4130 (print_signatures): Likewise.
4131 (trust_pad_over_xvs): Likewise.
4132 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4133 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4134 * arm-linux-nat.c (arm_apcs_32): Likewise.
4135 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4136 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4137 * arm-tdep.c (arm_debug): Likewise.
4138 (arm_apcs_32): Likewise.
4139 * auto-load.c (debug_auto_load): Likewise.
4140 (auto_load_gdb_scripts): Likewise.
4141 (global_auto_load): Likewise.
4142 (auto_load_local_gdbinit): Likewise.
4143 (auto_load_local_gdbinit_loaded): Likewise.
4144 * auto-load.h (global_auto_load): Likewise.
4145 (auto_load_local_gdbinit): Likewise.
4146 (auto_load_local_gdbinit_loaded): Likewise.
4147 * breakpoint.c (disconnected_dprintf): Likewise.
4148 (breakpoint_proceeded): Likewise.
4149 (automatic_hardware_breakpoints): Likewise.
4150 (always_inserted_mode): Likewise.
4151 (target_exact_watchpoints): Likewise.
4152 (_initialize_breakpoint): Update.
4153 * breakpoint.h (target_exact_watchpoints): Change to bool.
4154 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4155 * cli/cli-cmds.c (trace_commands): Likewise.
4156 * cli/cli-cmds.h (trace_commands): Likewise.
4157 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4158 to bool*.
4159 * cli/cli-logging.c (logging_overwrite): Change to bool.
4160 (logging_redirect): Likewise.
4161 (debug_redirect): Likewise.
4162 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4163 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4164 to bool.
4165 <boolean_option_def>: Update.
4166 (struct flag_option_def): Change default type of Context to bool
4167 from int.
4168 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4169 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4170 (get_setshow_command_value_string): Likewise.
4171 * cli/cli-style.c (cli_styling): Change to bool.
4172 (source_styling): Likewise.
4173 * cli/cli-style.h (source_styling): Likewise.
4174 (cli_styling): Likewise.
4175 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4176 to bool.
4177 * command.h (var_types): Update comment.
4178 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4179 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4180 bool.
4181 (debug_compile_cplus_scopes): Likewise.
4182 * compile/compile-internal.h (compile_debug): Likewise.
4183 * compile/compile.c (compile_debug): Likewise.
4184 (struct compile_options) <raw>: Likewise.
4185 * cp-support.c (catch_demangler_crashes): Likewise.
4186 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4187 (usr_cmd_cris_dwarf2_cfi): Likewise.
4188 * csky-tdep.c (csky_debug): Likewise.
4189 * darwin-nat.c (enable_mach_exceptions): Likewise.
4190 * dcache.c (dcache_enabled_p): Likewise.
4191 * defs.h (info_verbose): Likewise.
4192 * demangle.c (demangle): Likewise.
4193 (asm_demangle): Likewise.
4194 * dwarf-index-cache.c (debug_index_cache): Likewise.
4195 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4196 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4197 * dwarf2read.c (check_physname): Likewise.
4198 (use_deprecated_index_sections): Likewise.
4199 (dwarf_always_disassemble): Likewise.
4200 * eval.c (overload_resolution): Likewise.
4201 * event-top.c (set_editing_cmd_var): Likewise.
4202 (exec_done_display_p): Likewise.
4203 * event-top.h (set_editing_cmd_var): Likewise.
4204 (exec_done_display_p): Likewise.
4205 * exec.c (write_files): Likewise.
4206 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4207 (debug_fbsd_nat): Likewise.
4208 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4209 Likewise.
4210 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4211 <backtrace_past_entry> Likewise.
4212 * gdb-demangle.h (demangle): Likewise.
4213 (asm_demangle): Likewise.
4214 * gdb_bfd.c (bfd_sharing): Likewise.
4215 * gdbcore.h (write_files): Likewise.
4216 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4217 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4218 * gdbthread.h (print_thread_events): Likewise.
4219 * gdbtypes.c (opaque_type_resolution): Likewise.
4220 (strict_type_checking): Likewise.
4221 * gnu-nat.c (gnu_debug_flag): Likewise.
4222 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4223 * guile/scm-param.c (pascm_variable): Add boolval.
4224 (add_setshow_generic): Update.
4225 (pascm_param_value): Update.
4226 (pascm_set_param_value_x): Update.
4227 * hppa-tdep.c (hppa_debug): Change to bool..
4228 * infcall.c (may_call_functions_p): Likewise.
4229 (coerce_float_to_double_p): Likewise.
4230 (unwind_on_signal_p): Likewise.
4231 (unwind_on_terminating_exception_p): Likewise.
4232 * infcmd.c (startup_with_shell): Likewise.
4233 * inferior.c (print_inferior_events): Likewise.
4234 * inferior.h (startup_with_shell): Likewise.
4235 (print_inferior_events): Likewise.
4236 * infrun.c (step_stop_if_no_debug): Likewise.
4237 (detach_fork): Likewise.
4238 (debug_displaced): Likewise.
4239 (disable_randomization): Likewise.
4240 (non_stop): Likewise.
4241 (non_stop_1): Likewise.
4242 (observer_mode): Likewise.
4243 (observer_mode_1): Likewise.
4244 (set_observer_mode): Update.
4245 (sched_multi): Change to bool.
4246 * infrun.h (debug_displaced): Likewise.
4247 (sched_multi): Likewise.
4248 (step_stop_if_no_debug): Likewise.
4249 (non_stop): Likewise.
4250 (disable_randomization): Likewise.
4251 * linux-tdep.c (use_coredump_filter): Likewise.
4252 (dump_excluded_mappings): Likewise.
4253 * linux-thread-db.c (auto_load_thread_db): Likewise.
4254 (check_thread_db_on_load): Likewise.
4255 * main.c (captured_main_1): Update.
4256 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4257 xx2_opt, boolean_opt>: Change to bool.
4258 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4259 * maint.c (maintenance_profile_p): Likewise.
4260 (per_command_time): Likewise.
4261 (per_command_space): Likewise.
4262 (per_command_symtab): Likewise.
4263 * memattr.c (inaccessible_by_default): Likewise.
4264 * mi/mi-main.c (mi_async): Likewise.
4265 (mi_async_1): Likewise.
4266 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4267 * nat/fork-inferior.h (startup_with_shell): Likewise.
4268 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4269 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4270 * nios2-tdep.c (nios2_debug): Likewise.
4271 * or1k-tdep.c (or1k_debug): Likewise.
4272 * parse.c (parser_debug): Likewise.
4273 * parser-defs.h (parser_debug): Likewise.
4274 * printcmd.c (print_symbol_filename): Likewise.
4275 * proc-api.c (procfs_trace): Likewise.
4276 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4277 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4278 (set_parameter_value): Update.
4279 (add_setshow_generic): Update.
4280 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4281 to bool*.
4282 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4283 int*.
4284 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4285 * record-btrace.c (record_btrace_target::store_registers): Update.
4286 * record-full.c (record_full_memory_query): Change to bool.
4287 (record_full_stop_at_limit): Likewise.
4288 * record-full.h (record_full_memory_query): Likewise.
4289 * remote-notif.c (notif_debug): Likewise.
4290 * remote-notif.h (notif_debug): Likewise.
4291 * remote.c (use_range_stepping): Likewise.
4292 (interrupt_on_connect): Likewise.
4293 (remote_break): Likewise.
4294 * ser-tcp.c (tcp_auto_retry): Likewise.
4295 * ser-unix.c (serial_hwflow): Likewise.
4296 * skip.c (debug_skip): Likewise.
4297 * solib-aix.c (solib_aix_debug): Likewise.
4298 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4299 (spu_auto_flush_cache_p): Likewise.
4300 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4301 Likewise.
4302 (struct info_print_options) <quiet>: Likewise.
4303 * symfile-debug.c (debug_symfile): Likewise.
4304 * symfile.c (auto_solib_add): Likewise.
4305 (separate_debug_file_debug): Likewise.
4306 * symfile.h (auto_solib_add): Likewise.
4307 (separate_debug_file_debug): Likewise.
4308 * symtab.c (basenames_may_differ): Likewise.
4309 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4310 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4311 (struct info_types_options) <quiet>: Likewise.
4312 * symtab.h (demangle): Likewise.
4313 (basenames_may_differ): Likewise.
4314 * target-dcache.c (stack_cache_enabled_1): Likewise.
4315 (code_cache_enabled_1): Likewise.
4316 * target.c (trust_readonly): Likewise.
4317 (may_write_registers): Likewise.
4318 (may_write_memory): Likewise.
4319 (may_insert_breakpoints): Likewise.
4320 (may_insert_tracepoints): Likewise.
4321 (may_insert_fast_tracepoints): Likewise.
4322 (may_stop): Likewise.
4323 (auto_connect_native_target): Likewise.
4324 (target_stop_and_wait): Update.
4325 (target_async_permitted): Change to bool.
4326 (target_async_permitted_1): Likewise.
4327 (may_write_registers_1): Likewise.
4328 (may_write_memory_1): Likewise.
4329 (may_insert_breakpoints_1): Likewise.
4330 (may_insert_tracepoints_1): Likewise.
4331 (may_insert_fast_tracepoints_1): Likewise.
4332 (may_stop_1): Likewise.
4333 * target.h (target_async_permitted): Likewise.
4334 (may_write_registers): Likewise.
4335 (may_write_memory): Likewise.
4336 (may_insert_breakpoints): Likewise.
4337 (may_insert_tracepoints): Likewise.
4338 (may_insert_fast_tracepoints): Likewise.
4339 (may_stop): Likewise.
4340 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4341 (make_thread_apply_all_options_def_group): Change argument from int*
4342 to bool*.
4343 (thread_apply_all_command): Update.
4344 (print_thread_events): Change to bool.
4345 * top.c (confirm): Likewise.
4346 (command_editing_p): Likewise.
4347 (history_expansion_p): Likewise.
4348 (write_history_p): Likewise.
4349 (info_verbose): Likewise.
4350 * top.h (confirm): Likewise.
4351 (history_expansion_p): Likewise.
4352 * tracepoint.c (disconnected_tracing): Likewise.
4353 (circular_trace_buffer): Likewise.
4354 * typeprint.c (print_methods): Likewise.
4355 (print_typedefs): Likewise.
4356 * utils.c (debug_timestamp): Likewise.
4357 (sevenbit_strings): Likewise.
4358 (pagination_enabled): Likewise.
4359 * utils.h (sevenbit_strings): Likewise.
4360 (pagination_enabled): Likewise.
4361 * valops.c (overload_resolution): Likewise.
4362 * valprint.h (struct value_print_options) <prettyformat_arrays,
4363 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4364 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4365 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4366 Likewise.
4367 * windows-nat.c (new_console): Likewise.
4368 (cygwin_exceptions): Likewise.
4369 (new_group): Likewise.
4370 (debug_exec): Likewise.
4371 (debug_events): Likewise.
4372 (debug_memory): Likewise.
4373 (debug_exceptions): Likewise.
4374 (useshell): Likewise.
4375 * windows-tdep.c (maint_display_all_tib): Likewise.
4376 * xml-support.c (debug_xml): Likewise.
4377
4378 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4379
4380 * source.c (prepare_path_for_appending): New function.
4381 (openp): Make use of new function.
4382 (find_and_open_source): Search for the compilation directory and
4383 source file as a relative path beneath the directory search path.
4384
4385 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4386
4387 * source-cache.c (source_cache::get_line_charpos): Catch
4388 exceptions and return false, this matches the behaviour documented
4389 in the header file.
4390
4391 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4392
4393 * ada-tasks.c (info_task): Remove quoting of the task's name.
4394
4395 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4396
4397 * symfile.c (auto_solib_add): Replace comment with a reference
4398 to the header file.
4399
4400 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4401
4402 * NEWS: Mention that gdb can now be compiled with Python 3
4403 on Windows.
4404
4405 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4406
4407 * maint.c (maint_print_section_data::maint_print_section_data):
4408 Force use of 'float log10 (float)' by casting the argument to
4409 float.
4410
4411 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4412
4413 * maint.c: Add 'cmath' include.
4414 (struct maint_print_section_data): New structure.
4415 (print_section_index): New function.
4416 (print_bfd_section_info): Add header comment, small whitespace
4417 cleanup, and update to call new print_section_index function.
4418 (print_objfile_section_info): Likewise.
4419 (maint_obj_section_from_bfd_section): New function.
4420 (print_bfd_section_info_maybe_relocated): New function.
4421 (maintenance_info_sections): Add header comment, always use
4422 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4423
4424 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4425
4426 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4427 inner scope, add check that the objfile has psymtabs before
4428 checking psymtabs_addrmap.
4429 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4430
4431 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4432
4433 * NEWS: Announce that Ada task names are now shown at more places,
4434 and between quotes (except in info task output).
4435 * gdb/ada-tasks.c (task_to_str): New function.
4436 (display_current_task_id): Call task_to_str.
4437 (task_command_1): Likewise.
4438 (print_ada_task_info): In non-mi mode, Properly align headers and data
4439 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4440
4441 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4442
4443 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4444 prstatus.pr_lwp.pr_info instead of making it up.
4445
4446 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4447
4448 * auto-load.c (auto_load_expand_dir_vars): Update.
4449 * defs.h (gdb_datadir): Change to std::string.
4450 (python_libdir): Likewise.
4451 (relocate_gdb_directory): Change return type to std::string.
4452 * guile/guile.c (gdbscm_data_directory): Update.
4453 (initialize_scheme_side): Update.
4454 * jit.c (jit_reader_dir): Change to std::string.
4455 (jit_reader_load_command): Update.
4456 * main.c (gdb_datadir): Change to std::string.
4457 (python_libdir): Likewise.
4458 (set_gdb_data_directory): Update.
4459 (relocate_path): Change to return std::string.
4460 (relocate_gdb_directory): Change to return std::string.
4461 (relocate_gdbinit_path_maybe_in_datadir): Update.
4462 (captured_main_1): Update.
4463 * python/python.c (do_start_initialization): Update.
4464 * top.c (show_gdb_datadir): Update.
4465 * xml-syscall.c (xml_init_syscalls_info): Update.
4466 (init_syscalls_info): Update.
4467
4468 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4469
4470 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4471 out of get_init_files.
4472 (get_init_files): Update.
4473
4474 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4475
4476 * main.c (get_init_files): Change to use std::string.
4477 (captured_main_1): Update.
4478 (print_gdb_help): Update.
4479
4480 2019-09-11 Ali Tamur <tamur@google.com>
4481
4482 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4483 implementation.
4484
4485 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4486
4487 * dbxread.c (read_dbx_symtab): Update.
4488 * dwarf2read.c (load_partial_dies): Update.
4489 * mdebugread.c (parse_partial_symbols): Update.
4490 (handle_psymbol_enumerators): Update.
4491 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4492 * psymtab.c (add_psymbol_to_bcache): Likewise.
4493 (add_psymbol_to_list): Likewise.
4494 * symtab.c (symbol_set_names): Likewise.
4495 * symtab.h (symbol_set_names): Likewise.
4496 * xcoffread.c (scan_xcoff_symtab): Update.
4497
4498 2019-09-11 Tom Tromey <tom@tromey.com>
4499
4500 * symfile-mem.c (symbol_file_add_from_memory): Use
4501 bfd_set_filename.
4502 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4503 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4504
4505 2019-09-10 Tom Tromey <tromey@adacore.com>
4506
4507 * dwarf-index-write.c (write_psymbols): Extend error message.
4508 (debug_names::insert): Add Ada code.
4509 (debug_names::write_psymbols): Remove Ada check.
4510 (debug_names) <m_string_obstack>: New member.
4511 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4512 (gdb_index_symbol_name_matcher::matches): Remove.
4513 (mapped_index_base::find_name_components_bounds): Add "lang"
4514 parameter.
4515 (mapped_index_base::build_name_components): Also split names
4516 according to Ada syntax.
4517 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4518 type of "match_callback".
4519 (check_match, check_find_bounds_finds)
4520 (dw2_expand_symtabs_matching): Update.
4521 (dw2_debug_names_iterator): Add new constructor.
4522 (dw2_debug_names_map_matching_symbols): New function.
4523 (dw2_debug_names_expand_symtabs_matching): Update.
4524 (dwarf2_debug_names_functions): Use
4525 dw2_debug_names_map_matching_symbols.
4526
4527 2019-09-10 Tom Tromey <tromey@adacore.com>
4528
4529 * dwarf2read.c (dw2_get_file_names_reader): Add the
4530 CU's file name to the results.
4531
4532 2019-09-10 Tom Tromey <tromey@adacore.com>
4533
4534 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4535 map_matching_symbols. Update.
4536 * dwarf2read.c (dw2_map_matching_symbols): Update.
4537 * psymtab.c (match_partial_symbol): Change type; update.
4538 (psym_map_matching_symbols): Likewise.
4539 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4540 type; update.
4541 * symfile.h (struct quick_symbol_functions)
4542 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4543 Remove "match".
4544
4545 2019-09-10 Tom Tromey <tromey@adacore.com>
4546
4547 * psymtab.c (map_block): Remove.
4548 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4549 * symtab.c (iterate_over_symbols_terminated): New function.
4550 * symtab.c (iterate_over_symbols_terminated): Declare.
4551
4552 2019-09-10 Tom Tromey <tromey@adacore.com>
4553
4554 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4555 * language.h (struct language_defn) <la_iterate_over_symbols>:
4556 Return bool.
4557 * symtab.c (iterate_over_symbols): Return bool.
4558 * symtab.h (iterate_over_symbols): Return bool.
4559
4560 2019-09-10 Tom Tromey <tromey@adacore.com>
4561
4562 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4563 (add_nonlocal_symbols): Update.
4564 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4565 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4566 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4567 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4568 Change type of "callback". Remove "data".
4569
4570
4571 2019-09-09 Ali Tamur <tamur@google.com>
4572
4573 * dwarf2read.c (comp_unit_head): Update comment.
4574 (dwarf2_dwo_name): New function declaration.
4575 (dwarf_unit_type_name): New function declaration.
4576 (read_comp_unit_head): Add support for new compilation units,
4577 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4578 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4579 (currently named as "signature") in their header. Also clarify error
4580 messages.
4581 (lookup_dwo_id): New function. Returns the dwo id of the given
4582 compile unit.
4583 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4584 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4585 functions.
4586 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4587 (dwarf2_dwo_name): Get the dwo name if present.
4588 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4589 purposes.
4590
4591 2019-09-09 Tom Tromey <tom@tromey.com>
4592
4593 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4594
4595 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4596
4597 * python/python.c (do_start_initialization): Make progname_copy static,
4598 to avoid a leak report.
4599
4600 2019-09-08 Tom Tromey <tom@tromey.com>
4601
4602 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4603
4604 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4605
4606 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4607 Change type to gdb::optional<block_enum>.
4608 (dw2_symtab_iter_init): Change block_index parameter type
4609 to gdb::optional<block_enum>.
4610 (dw2_lookup_symbol): Change block_index parameter
4611 type to block_enum.c
4612 (dw2_debug_names_lookup_symbol): Likewise.
4613 * psymtab.c (psym_lookup_symbol): Likewise.
4614 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4615 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4616 Likewise.
4617
4618 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4619
4620 * defs.h (relocate_gdb_directory): Change int to bool in
4621 signature and rename flag to relocatable.
4622 * main.c (relocate_path): Likewise.
4623 (relocate_gdb_directory): Likewise.
4624
4625 2019-09-06 Alan Modra <amodra@gmail.com>
4626
4627 * coffread.c (coff_symfile_read): Constify filename variable.
4628 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4629 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4630 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4631 * solib.c (reload_shared_libraries_1): Likewise.
4632 * symfile.c (reread_symbols): Likewise.
4633 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4634 * solib-darwin.c (darwin_bfd_open): Likewise.
4635 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4636
4637 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4638
4639 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4640 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4641
4642 2019-09-03 Tom Tromey <tromey@adacore.com>
4643
4644 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4645 types.
4646 (has_negatives): Unbias a range type bound.
4647 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4648 * gdbtypes.c (operator==): Handle new field.
4649 (create_range_type): Add "bias" parameter.
4650 (create_static_range_type, resolve_dynamic_range): Update.
4651 * gdbtypes.h (struct range_bounds) <bias>: New member.
4652 (create_range_type): Add bias parameter.
4653 * printcmd.c (print_scalar_formatted): Unbias range types.
4654 * value.c (unpack_long): Unbias range types.
4655 (pack_long): Bias range types.
4656
4657 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4658
4659 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4660 probe arguments.
4661
4662 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4663
4664 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4665 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4666 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4667 (compile_probe_arg): Likewise.
4668 * probe.h (get_argument_count): Likewise.
4669 * solib-svr4.c (solib_event_probe_action): Likewise.
4670 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4671
4672 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4673
4674 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4675 code to here...
4676 (svr4_create_solib_event_breakpoints): ...from here.
4677
4678 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4679
4680 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4681 suffix from warning message.
4682
4683 2019-08-30 Tom Tromey <tom@tromey.com>
4684
4685 * tui/tui-winsource.h (struct tui_source_window_base)
4686 <refresh_all>: Don't declare.
4687 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4688 Remove.
4689 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4690 tui_show_locator_content.
4691 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4692 declare.
4693 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4694 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4695 declare.
4696
4697 2019-08-30 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4700
4701 2019-08-30 Tom Tromey <tom@tromey.com>
4702
4703 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4704 Remove unnecessary forward declarations.
4705
4706 2019-08-30 Tom Tromey <tom@tromey.com>
4707
4708 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4709 rerender.
4710 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4711 tui_show_locator_content.
4712
4713 2019-08-30 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4716 (tui_locator_window::rerender): Rewrite using body of previous
4717 tui_show_locator_content.
4718
4719 2019-08-30 Tom Tromey <tom@tromey.com>
4720
4721 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4722 set_locator_fullname>: New methods.
4723 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4724 Rename from tui_set_locator_fullname.
4725 (tui_locator_window::set_locator_info): Rename from
4726 tui_set_locator_info. Return bool.
4727 (tui_update_locator_fullname, tui_show_frame_info): Update.
4728
4729 2019-08-30 Tom Tromey <tom@tromey.com>
4730
4731 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4732
4733 2019-08-30 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4736 call touchwin.
4737
4738 2019-08-30 Tom Tromey <tom@tromey.com>
4739
4740 * tui/tui-wingeneral.c (box_win): Assume win_info and
4741 win_info->handle cannot be NULL.
4742
4743 2019-08-30 Tom Tromey <tom@tromey.com>
4744
4745 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4746 refresh_window>: Declare.
4747 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4748 resize.
4749 (tui_data_item_window::rerender): Rename from
4750 tui_display_register.
4751 (tui_data_item_window::refresh_window): New method.
4752 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4753 no-op.
4754
4755 2019-08-30 Tom Tromey <tom@tromey.com>
4756
4757 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4758 regs_column_count, current_group>: Move later. Now private.
4759 <get_current_group>: New method.
4760 * tui/tui-regs.c (tui_reg_command): Update.
4761 * tui/tui-layout.c (tui_set_layout): Update.
4762
4763 2019-08-30 Tom Tromey <tom@tromey.com>
4764
4765 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4766 (tui_data_window::rerender): Don't call
4767 check_and_display_highlight_if_needed.
4768 (tui_data_window::refresh_all): Remove call to
4769 erase_data_content.
4770
4771 2019-08-30 Tom Tromey <tom@tromey.com>
4772
4773 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4774 (tui_data_window::display_registers_from)
4775 (tui_data_window::display_reg_element_at_line)
4776 (tui_data_window::display_registers_from_line): Remove checks of
4777 "empty".
4778
4779 2019-08-30 Tom Tromey <tom@tromey.com>
4780
4781 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4782 Don't declare.
4783 * tui/tui-regs.c (tui_data_window::show_registers): Call
4784 rerender.
4785 (tui_data_window::rerender): Rename from display_all_data.
4786 (tui_data_window::rerender): Remove old implementation.
4787
4788 2019-08-30 Tom Tromey <tom@tromey.com>
4789
4790 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4791 text.
4792 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4793
4794 2019-08-29 Bernhard Wodok <barto@gmx.net>
4795 Sergio Durigan Junior <sergiodj@redhat.com>
4796
4797 PR win32/24284
4798 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4799
4800 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4801
4802 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4803 when searching for types.
4804
4805 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4806
4807 * f-lang.c (f_language_defn): Use f_print_typedef.
4808 * f-lang.h (f_print_typedef): Declare.
4809 * f-typeprint.c (f_print_typedef): Define.
4810
4811 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4812
4813 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4814
4815 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4816
4817 * cli/cli-utils.c (info_print_options_defs): Delete.
4818 (make_info_print_options_def_group): Delete.
4819 (extract_info_print_options): Delete.
4820 (info_print_command_completer): Delete.
4821 (info_print_args_help): Add extra parameter, and optionally
4822 include text about -n flag.
4823 * cli/cli-utils.h (struct info_print_options): Delete.
4824 (extract_info_print_options): Delete declaration.
4825 (info_print_command_completer): Delete declaration.
4826 (info_print_args_help): Add extra parameter, extend header
4827 comment.
4828 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4829 search_symbols.
4830 * stack.c (struct info_print_options): New type.
4831 (info_print_options_defs): New file scoped variable.
4832 (make_info_print_options_def_group): New static function.
4833 (info_print_command_completer): New static function.
4834 (info_locals_command): Update to use new local functions.
4835 (info_args_command): Likewise.
4836 (_initialize_stack): Add extra parameter to calls to
4837 info_print_args_help.
4838 * symtab.c (search_symbols): Add extra parameter, use this to
4839 possibly excluse non-debug symbols.
4840 (symtab_symbol_info): Add extra parameter, which is passed on to
4841 search_symbols.
4842 (struct info_print_options): New type.
4843 (info_print_options_defs): New file scoped variable.
4844 (make_info_print_options_def_group): New static function.
4845 (info_print_command_completer): New static function.
4846 (info_variables_command): Update to use local functions, and pass
4847 extra parameter through to symtab_symbol_info.
4848 (info_functions_command): Likewise.
4849 (info_types_command): Pass additional argument through to
4850 symtab_symbol_info.
4851 (rbreak_command): Pass extra argument to search_symbols.
4852 (_initialize_symtab): Add extra arguments for calls to
4853 info_print_args_help, and update help text for 'info variables',
4854 'whereis', and 'info functions' commands.
4855 * symtab.h (search_symbols): Add extra argument to declaration.
4856 * NEWS: Mention new flags.
4857
4858 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4859
4860 * symtab.c (lookup_static_symbol): Call the new function (and move
4861 it down to be next to lookup_global_symbol).
4862 (struct global_sym_lookup_data): Add block_enum member and rename to...
4863 (struct global_or_static_sym_lookup_data): ...this.
4864 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4865 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4866 (lookup_symbol_global_or_static_iterator_cb): ...this.
4867 (lookup_global_or_static_symbol): New function.
4868 (lookup_global_symbol): Call new function.
4869
4870 2019-08-26 Tom de Vries <tdevries@suse.de>
4871
4872 PR c++/24852
4873 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4874 when pc_probe.prob == NULL.
4875
4876 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4877
4878 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4879 variable symbol_linkage to symbol_linkage_.
4880
4881 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4884 represent whether the symbol is static, dynamic, or we don't
4885 know.
4886
4887 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4888
4889 * gdb/rx-tdep.c (rx_register_names): New.
4890 (rx_register_name): Delete.
4891 (rx_psw_type): Delete.
4892 (rx_fpsw_type): Delete.
4893 (rx_register_type): Delete.
4894 (rx_gdbarch_init): Convert target-descriptions.
4895 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4896 * gdb/features/Makefile: Add rx.xml.
4897 * gdb/features/rx.xml: New.
4898 * gdb/features/rx.c: Generated.
4899 * gdb/NEWS: Mention target description support.
4900
4901 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4902
4903 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4904 *slot_ptr.
4905
4906 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4907
4908 * configure.ac: Don't check for 'dlfcn.h' (moved to
4909 gdbsupport/common.m4).
4910 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4911 'gdbsupport/'.
4912 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4913 * compile/compile-c-support.c: Include
4914 'gdbsupport/gdb-dlfcn.h'.
4915 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4916 * gdb-dlfcn.c: Move to...
4917 * gdbsupport/gdb-dlfcn.c: ... here.
4918 * gdb-dlfcn.h: Move to...
4919 * gdbsupport/gdb-dlfcn.h: ... here.
4920
4921 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4922
4923 * nios2-tdep.c (struct reg_value): Improve comments. Make
4924 the offset field signed.
4925
4926 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4927
4928 * python/lib/gdb/__init__.py (_execute_file): New function.
4929 * python/python.c (python_run_simple_file): Call gdb._execute_file
4930 on Windows.
4931
4932 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4935 all uses as this was never set to anything but a zero value.
4936
4937 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4938
4939 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4940
4941 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4942
4943 * tui/tui-data.h (tui_gen_win_info): Add an =default
4944 move constructor, required by some GCC versions.
4945
4946 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4947
4948 * go32-nat.c (go32_sysinfo): Add hygon_p.
4949
4950 2019-08-20 Tom Tromey <tom@tromey.com>
4951
4952 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4953 line_from_reg_element_no, first_reg_element_no_inline,
4954 display_all_data, delete_data_content_windows,
4955 erase_data_content>: Now private.
4956
4957 2019-08-20 Tom Tromey <tom@tromey.com>
4958
4959 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4960 (tui_unhighlight_win, tui_highlight_win)
4961 (tui_win_info::make_window): Update.
4962 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4963
4964 2019-08-20 Tom Tromey <tom@tromey.com>
4965
4966 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4967 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4968 (MAX_PID_WIDTH): Move to tui-stack.c.
4969 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4970 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4971 (MAX_PID_WIDTH): Move from tui-data.h.
4972
4973 2019-08-20 Tom Tromey <tom@tromey.com>
4974
4975 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4976 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4977 (box_win): Update.
4978 (tui_gen_win_info::make_window): Rename from tui_make_window.
4979 (tui_win_info::make_window): New method.
4980 (tui_gen_win_info::make_visible): Update.
4981 * tui/tui-source.c (tui_source_window::set_contents): Update.
4982 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4983 (tui_data_window::display_registers_from): Update.
4984 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4985 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4986 Declare.
4987 <can_box>: Remove.
4988 <title>: Remove.
4989 (struct tui_win_info) <make_window>: Declare.
4990 <can_box>: Now virtual.
4991 <title>: New member.
4992 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4993 * tui/tui-command.c (tui_cmd_window::resize): Update.
4994
4995 2019-08-20 Tom Tromey <tom@tromey.com>
4996
4997 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4998 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4999 (tui_data_window::check_register_values): Update.
5000
5001 2019-08-20 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-regs.h (struct tui_data_window): Use
5004 DISABLE_COPY_AND_ASSIGN.
5005 <regs_content>: Change type, removing unique_ptr.
5006 <tui_data_window>: Add move constructor.
5007 * tui/tui-regs.c (tui_data_window::show_registers)
5008 (tui_data_window::show_register_group)
5009 (tui_data_window::display_registers_from)
5010 (tui_data_window::display_registers_from)
5011 (tui_data_window::first_data_item_displayed)
5012 (tui_data_window::delete_data_content_windows)
5013 (tui_data_window::rerender, tui_data_window::refresh_window)
5014 (tui_data_window::check_register_values): Update.
5015
5016 2019-08-20 Tom Tromey <tom@tromey.com>
5017
5018 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5019 show_register_group>: Declare.
5020 (tui_show_register_group): Don't declare.
5021 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5022 tui_show_registers.
5023 (tui_data_window::show_register_group): Rename from
5024 tui_show_register_group.
5025 (tui_data_window::check_register_values, tui_reg_command):
5026 Update.
5027 * tui/tui-layout.c (tui_set_layout): Update.
5028
5029 2019-08-20 Tom Tromey <tom@tromey.com>
5030
5031 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5032 Declare.
5033 (tui_check_register_values): Don't declare.
5034 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5035 from tui_check_register_values.
5036 * tui/tui-hooks.c (tui_register_changed): Update.
5037
5038 2019-08-20 Tom Tromey <tom@tromey.com>
5039
5040 * tui/tui-regs.c (tui_reg_layout): Move later.
5041 (tui_show_registers): Don't enable TUI mode or change layout.
5042
5043 2019-08-20 Tom Tromey <tom@tromey.com>
5044
5045 * tui/tui-regs.h (struct tui_data_item_window)
5046 <~tui_data_item_window>: Remove.
5047 <content>: Now a unique_xmalloc_ptr.
5048 * tui/tui-regs.c (tui_register_format): Return a
5049 unique_xmalloc_ptr.
5050 (tui_get_register): Update.
5051 (~tui_data_item_window): Remove.
5052 (tui_data_window::display_registers_from, tui_display_register):
5053 Update.
5054 * tui/tui-io.h (tui_expand_tabs): Update.
5055 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5056 Remove "col" parameter.
5057
5058 2019-08-20 Tom Tromey <tom@tromey.com>
5059
5060 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5061 field.
5062 * tui/tui-regs.c (~tui_data_item_window): Update.
5063
5064 2019-08-20 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5067 earlier.
5068
5069 2019-08-20 Tom Tromey <tom@tromey.com>
5070
5071 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5072
5073 2019-08-20 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-source.h (struct tui_source_window): Update.
5076 * tui/tui-regs.c (tui_show_registers): Update.
5077 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5078 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5079 (NO_REGS_STRING): Remove defines.
5080
5081 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5082
5083 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5084 unnecessary thread walk if remote doesn't support the packet.
5085
5086 2019-08-19 Tom Tromey <tromey@adacore.com>
5087
5088 * python/py-value.c (value_has_field): Fix indentation.
5089
5090 2019-08-19 Tom Tromey <tromey@adacore.com>
5091
5092 * printcmd.c (do_one_display, info_display_command): Update.
5093 * block.h (contained_in): Return bool. Add allow_nested
5094 parameter.
5095 * block.c (contained_in): Return bool. Add allow_nested
5096 parameter.
5097
5098 2019-08-19 Tom Tromey <tom@tromey.com>
5099
5100 * configure: Rebuild.
5101 * configure.ac: Disallow the combination of -static-libstdc++ and
5102 source highlight.
5103 * source-cache.c (get_language_name): Handle rust.
5104 (source_cache::get_source_lines): Ignore highlighting exceptions.
5105
5106 2019-08-16 Tom Tromey <tom@tromey.com>
5107
5108 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5109 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5110 (struct tui_source_window_base) <make_visible, refresh_window,
5111 resize>: Remove methods.
5112 <execution_info>: Remove field.
5113 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5114 (tui_show_source_line, tui_source_window_base)
5115 (~tui_source_window_base): Update.
5116 (tui_source_window_base::resize)
5117 (tui_source_window_base::make_visible)
5118 (tui_source_window_base::refresh_window): Remove.
5119 (tui_source_window_base::update_exec_info): Update.
5120 * tui/tui-source.c (tui_source_window::set_contents): Update.
5121 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5122
5123 2019-08-16 Tom Tromey <tom@tromey.com>
5124
5125 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5126 deprecated_query_hook.
5127
5128 2019-08-16 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5131 (tui_update_source_windows_with_line): Update.
5132 * tui/tui-source.h (struct tui_source_window)
5133 <show_symtab_source>: Declare.
5134 (tui_show_symtab_source): Don't declare.
5135 * tui/tui-source.c (tui_show_symtab_source): Rename from
5136 tui_show_symtab_source.
5137
5138 2019-08-16 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-winsource.h (struct tui_source_window_base)
5141 <set_contents>: Declare.
5142 * tui/tui-winsource.c
5143 (tui_source_window_base::update_source_window_as_is): Update.
5144 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5145 Declare.
5146 (tui_set_source_content): Don't declare.
5147 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5148 tui_set_source_content.
5149 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5150 Declare.
5151 (tui_set_disassem_content): Don't declare.
5152 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5153 tui_set_disassem_content.
5154
5155 2019-08-16 Tom Tromey <tom@tromey.com>
5156
5157 * tui/tui-winsource.h (struct tui_source_window_base)
5158 <update_breakpoint_info>: Declare.
5159 (tui_update_breakpoint_info): Don't declare.
5160 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5161 (tui_update_all_breakpoint_info): Update.
5162 (tui_source_window_base::update_breakpoint_info): Rename from
5163 tui_update_breakpoint_info.
5164 (tui_source_window_base::update_exec_info): Update.
5165
5166 2019-08-16 Tom Tromey <tom@tromey.com>
5167
5168 * tui/tui-winsource.h (struct tui_source_window_base)
5169 <update_source_window>: Declare.
5170 (tui_update_source_window): Don't declare.
5171 * tui/tui-winsource.c
5172 (tui_source_window_base::update_source_window): Rename from
5173 tui_update_source_window.
5174 (tui_source_window_base::rerender): Update.
5175 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5176 * tui/tui-disasm.c (tui_show_disassem)
5177 (tui_show_disassem_and_update_source)
5178 (tui_disasm_window::maybe_update): Update.
5179
5180 2019-08-16 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-winsource.h (struct tui_source_window_base)
5183 <update_source_window_as_is>: Declare.
5184 (tui_update_source_window_as_is): Don't declare.
5185 * tui/tui-winsource.c (tui_update_source_window): Update
5186 (tui_source_window_base::update_source_window_as_is): Rename from
5187 tui_update_source_window_as_is.
5188 (tui_source_window_base::refill): Update.
5189 * tui/tui-source.c (tui_show_symtab_source): Update.
5190 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5191 Update.
5192
5193 2019-08-16 Tom Tromey <tom@tromey.com>
5194
5195 * tui/tui-winsource.h (tui_update_source_window)
5196 (tui_update_source_window_as_is): Remove "noerror" parameter.
5197 * tui/tui-winsource.c (tui_update_source_window)
5198 (tui_update_source_window_as_is): Remove "noerror" parameter.
5199 (tui_update_source_windows_with_addr)
5200 (tui_update_source_windows_with_line)
5201 (tui_source_window_base::rerender)
5202 (tui_source_window_base::refill): Update.
5203 * tui/tui-source.h (tui_set_source_content)
5204 (tui_show_symtab_source): Remove "noerror" parameter.
5205 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5206 parameter.
5207 (tui_show_symtab_source): Likewise.
5208 (tui_source_window::maybe_update): Update.
5209 * tui/tui-disasm.c (tui_show_disassem)
5210 (tui_show_disassem_and_update_source)
5211 (tui_disasm_window::do_scroll_vertical)
5212 (tui_disasm_window::maybe_update): Update.
5213
5214 2019-08-16 Tom Tromey <tom@tromey.com>
5215
5216 * tui/tui.c (tui_is_window_visible): Update.
5217 * tui/tui-wingeneral.c (tui_make_window)
5218 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5219 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5220 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5221 (tui_set_win_height_command, parse_scrolling_args): Update.
5222 * tui/tui-source.c (tui_source_window::style_changed): Update.
5223 * tui/tui-regs.c (tui_show_registers)
5224 (tui_data_window::first_data_item_displayed)
5225 (tui_data_window::delete_data_content_windows)
5226 (tui_check_register_values, tui_reg_command): Update.
5227 * tui/tui-disasm.c (tui_show_disassem): Update.
5228 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5229 method.
5230 <is_visible>: Remove field.
5231 * tui/tui-data.c (tui_next_win, tui_prev_win)
5232 (tui_delete_invisible_windows): Update.
5233
5234 2019-08-16 Tom Tromey <tom@tromey.com>
5235
5236 * tui/tui-winsource.h (struct tui_source_window_base)
5237 <m_has_locator>: Remove.
5238 * tui/tui-layout.c (show_source_disasm_command, show_data)
5239 (show_source_or_disasm_and_command): Update.
5240
5241 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5242
5243 * NEWS (Other MI changes): New subsection.
5244 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5245 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5246 * arch-utils.c (default_get_pc_address_flags): New function.
5247 * arch-utils.h (default_get_pc_address_flags): New declaration.
5248 * gdbarch.sh: Add get_pc_address_flags.
5249 * gdbarch.c: Regenerate.
5250 * gdbarch.h: Likewise.
5251 * stack.c (print_pc): New function.
5252 (print_frame_info) (print_frame): Call print_pc.
5253
5254 2019-08-16 Tom de Vries <tdevries@suse.de>
5255
5256 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5257 print_objfile_section_info.
5258
5259 2019-08-15 Tom Tromey <tom@tromey.com>
5260
5261 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5262 calling update_cmdwin_start_line.
5263 * tui/tui-winsource.h (struct tui_source_window_base)
5264 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5265 <rerender>: Declare.
5266 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5267 Call rerender.
5268 (tui_source_window_base::set_new_height): Remove.
5269 (tui_source_window_base::rerender): Rename from
5270 do_make_visible_with_new_height.
5271 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5272 resize method.
5273 (tui_win_info::make_invisible_and_set_new_height)
5274 (tui_win_info::make_visible_with_new_height): Remove.
5275 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5276 Declare.
5277 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5278 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5279 do_make_visible_with_new_height>: Don't declare.
5280 <rerender>: Declare.
5281 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5282 set_new_height.
5283 (tui_data_window::do_make_visible_with_new_height): Remove.
5284 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5285 call tui_show_locator_content.
5286 (tui_gen_win_info::resize): Call rerender.
5287 (show_source_or_disasm_and_command): Don't call
5288 tui_show_locator_content.
5289 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5290 method.
5291 (struct tui_win_info) <rerender>: Declare.
5292 <set_new_height, make_invisible_and_set_new_height,
5293 make_visible_with_new_height>: Don't declare.
5294 * tui/tui-data.c (tui_win_list::rerender): New method.
5295 * tui/tui-command.h (struct tui_cmd_window)
5296 <do_make_visible_with_new_height>: Don't declare.
5297 * tui/tui-command.c
5298 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5299
5300 2019-08-15 Tom Tromey <tromey@adacore.com>
5301
5302 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5303 * ada-lang.c (ada_enum_name): Likewise.
5304
5305 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5306
5307 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5308 leading underscore.
5309 (GdbOutputErrorFile): Likewise.
5310 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5311 accordingly.
5312 (execute_unwinders): Rename to have a leading underscore.
5313 (auto_load_packages): Likewise.
5314 (global scope): Adjust call to auto_load_packages accordingly.
5315 (GdbSetPythonDirectory): Likewise.
5316 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5317 instead of execute_unwinders.
5318
5319 2019-08-15 Tom Tromey <tom@tromey.com>
5320
5321 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5322 (show_data): Don't change window visibility.
5323 (tui_gen_win_info::resize): Remove special case for command
5324 window. Use wresize, when available.
5325 (show_source_or_disasm_and_command): Don't change window
5326 visibility.
5327 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5328 <make_visible>: New method.
5329 * tui/tui-command.c (tui_cmd_window::resize): New method.
5330
5331 2019-08-15 Tom Tromey <tom@tromey.com>
5332
5333 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5334 (struct tui_source_windows): New.
5335 * tui/tui-winsource.c (tui_display_main): Update.
5336 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5337 (new_height_ok, parse_scrolling_args): Update.
5338 * tui/tui-layout.c (show_layout, show_data): Update.
5339 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5340 (tui_add_to_source_windows): Don't declare.
5341 * tui/tui-data.c (source_windows, tui_source_windows)
5342 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5343
5344 2019-08-15 Tom Tromey <tom@tromey.com>
5345
5346 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5347 Rename from reset.
5348 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5349 * tui/tui-layout.c (show_source_disasm_command, show_data):
5350 Update.
5351 (tui_gen_win_info::resize): Rename.
5352 (show_source_or_disasm_and_command): Update.
5353 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5354 reset.
5355
5356 2019-08-15 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5359 * tui/tui-interp.c (tui_interp::init): Don't call
5360 tui_initialize_static_data.
5361 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5362
5363 2019-08-15 Tom Tromey <tom@tromey.com>
5364
5365 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5366 examine tui_win_list.
5367
5368 2019-08-15 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5371 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5372 tui_clear_source_content.
5373 (tui_clear_source_content): Remove.
5374 (tui_source_window_base::do_erase_source_content): Hoist call to
5375 content.clear().
5376 * tui/tui-stack.c (tui_show_frame_info): Don't call
5377 tui_clear_source_content.
5378
5379 2019-08-15 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-winsource.h (struct tui_source_window_base)
5382 <do_erase_source_content>: New method.
5383 <erase_source_content>: New method.
5384 (tui_erase_source_content): Don't declare.
5385 * tui/tui-winsource.c (tui_clear_source_content): Update.
5386 (tui_source_window_base::do_erase_source_content): Rename from
5387 tui_erase_source_content.
5388 (tui_source_window_base::show_source_content): Update.
5389 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5390 * tui/tui-source.h (struct tui_source_window)
5391 <erase_source_content>: New method.
5392 * tui/tui-disasm.h (struct tui_disasm_window)
5393 <erase_source_content>: New method.
5394
5395 2019-08-15 Tom Tromey <tom@tromey.com>
5396
5397 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5398 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5399 constructor.
5400 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5401 * tui/tui-source.c (tui_set_source_content): Update.
5402 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5403
5404 2019-08-15 Tom Tromey <tom@tromey.com>
5405
5406 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5407 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5408 tui-source.c.
5409 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5410 Declare.
5411 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5412 method.
5413 (tui_source_window::maybe_update): Update.
5414
5415 2019-08-15 Tom Tromey <tom@tromey.com>
5416
5417 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5418 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5419 tui-disasm.c.
5420 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5421 Declare.
5422 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5423 method.
5424 (tui_disasm_window::maybe_update): Update.
5425
5426 2019-08-15 Tom Tromey <tom@tromey.com>
5427
5428 * tui/tui-winsource.h (struct tui_source_window_base)
5429 <maybe_update>: Declare.
5430 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5431 method.
5432 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5433 Declare.
5434 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5435 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5436 Declare.
5437 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5438
5439 2019-08-15 Tom Tromey <tom@tromey.com>
5440
5441 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5442
5443 2019-08-15 Tom Tromey <tom@tromey.com>
5444
5445 * tui/tui-wingeneral.c: Include tui-stack.h.
5446 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5447 (struct tui_locator_window): Move from tui-data.h.
5448 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5449 (tui_initialize_static_data): Move from tui-data.c.
5450 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5451 (struct tui_locator_window): Move to tui-stack.c.
5452 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5453 (tui_initialize_static_data): Move to tui-stack.c.
5454
5455 2019-08-15 Tom Tromey <tom@tromey.com>
5456
5457 * tui/tui-layout.c (show_source_disasm_command)
5458 (show_source_or_disasm_and_command): Use make_visible method, not
5459 tui_make_window.
5460 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5461 Remove.
5462
5463 2019-08-15 Tom Tromey <tom@tromey.com>
5464
5465 * tui/tui-wingeneral.h (tui_make_window): Update.
5466 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5467 parameter.
5468 (tui_gen_win_info::make_visible): Update.
5469 * tui/tui-regs.c (tui_data_window::display_registers_from):
5470 Update.
5471 * tui/tui-layout.c (show_source_disasm_command)
5472 (show_source_or_disasm_and_command): Update.
5473 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5474 (enum tui_box): Remove.
5475 (struct tui_win_info) <can_box>: New method.
5476 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5477 method.
5478
5479 2019-08-15 Tom de Vries <tdevries@suse.de>
5480
5481 * linux-nat-trad.c: Include gdbarch.h.
5482
5483 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5484
5485 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5486 register sizes.
5487
5488 2019-08-14 Tom Tromey <tromey@adacore.com>
5489
5490 * darwin-nat.c: Include gdbarch.h.
5491 * darwin-nat-info.c: Include gdbarch.h.
5492
5493 2019-08-13 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5496 Remove.
5497 * tui/tui-data.c (tui_initialize_static_data): Update.
5498
5499 2019-08-13 Tom Tromey <tom@tromey.com>
5500
5501 * tui/tui-winsource.h (struct tui_exec_info_window)
5502 <~tui_exec_info_window, maybe_allocate_content, get_content,
5503 m_content>: Remove.
5504 (struct tui_source_window_base) <set_exec_info_content,
5505 show_exec_info_content>: Don't declare.
5506 * tui/tui-winsource.c
5507 (tui_exec_info_window::maybe_allocate_content): Remove.
5508 (tui_source_window_base::update_exec_info): Rename from
5509 set_exec_info_content.
5510 (tui_source_window_base::show_exec_info_content)
5511 (tui_source_window_base::update_exec_info): Remove.
5512
5513 2019-08-13 Tom Tromey <tom@tromey.com>
5514
5515 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5516 declare.
5517 * tui/tui-winsource.c (tui_update_source_window_as_is)
5518 (tui_update_source_windows_with_addr, tui_erase_source_content):
5519 Update.
5520 (tui_clear_exec_info_content): Remove.
5521
5522 2019-08-13 Tom Tromey <tom@tromey.com>
5523
5524 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5525 declare.
5526 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5527 call tui_erase_exec_info_content.
5528 (tui_clear_exec_info_content): Rename from
5529 tui_erase_exec_info_content.
5530 (tui_clear_exec_info_content): Delete.
5531
5532 2019-08-13 Tom Tromey <tom@tromey.com>
5533
5534 * tui/tui-winsource.h (struct tui_source_window_base)
5535 <show_exec_info_content>: Declare.
5536 (tui_show_exec_info_content): Don't declare.
5537 * tui/tui-winsource.c
5538 (tui_source_window_base::show_exec_info_content): Rename from
5539 tui_show_exec_info_content.
5540 (tui_source_window_base::update_exec_info): Update.
5541
5542 2019-08-13 Tom Tromey <tom@tromey.com>
5543
5544 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5545 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5546 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5547 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5548 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5549 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5550 ... here.
5551
5552 2019-08-13 Tom Tromey <tom@tromey.com>
5553
5554 * tui/tui-winsource.h (struct tui_source_window_base)
5555 <update_exec_info>: Declare.
5556 (tui_update_exec_info): Don't declare.
5557 * tui/tui-winsource.c (tui_update_source_window_as_is)
5558 (tui_source_window_base::refresh_all)
5559 (tui_update_all_breakpoint_info): Update.
5560 (tui_source_window_base::update_exec_info): Rename from
5561 tui_update_exec_info.
5562 * tui/tui-stack.c (tui_show_frame_info): Update.
5563
5564 2019-08-13 Tom Tromey <tom@tromey.com>
5565
5566 * tui/tui-winsource.h (struct tui_source_window_base)
5567 <set_exec_info_content>: Declare.
5568 (tui_set_exec_info_content): Don't declare.
5569 * tui/tui-winsource.c
5570 (tui_source_window_base::set_exec_info_content): Rename from
5571 tui_set_exec_info_content.
5572 (tui_update_exec_info): Update.
5573
5574 2019-08-13 Tom Tromey <tom@tromey.com>
5575
5576 * tui/tui-winsource.h (struct tui_source_window_base)
5577 <show_source_content>: Declare.
5578 (tui_show_source_content): Don't declare.
5579 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5580 (tui_source_window_base::show_source_content): Rename from
5581 tui_show_source_content.
5582 (tui_source_window_base::refresh_all): Update.
5583 * tui/tui-layout.c (show_source_disasm_command)
5584 (show_source_or_disasm_and_command): Update.
5585
5586 2019-08-13 Tom Tromey <tom@tromey.com>
5587
5588 * tui/tui-winsource.c (tui_erase_source_content)
5589 (tui_show_source_content, tui_source_window_base::refresh_all):
5590 Update.
5591 * tui/tui-wingeneral.h
5592 (tui_check_and_display_highlight_if_needed): Don't declare.
5593 * tui/tui-wingeneral.c
5594 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5595 check_and_display_highlight_if_needed.
5596 * tui/tui-win.c (tui_rehighlight_all)
5597 (tui_win_info::make_visible_with_new_height): Update.
5598 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5599 (tui_data_window::erase_data_content)
5600 (tui_data_window::display_all_data): Update.
5601 * tui/tui-data.h (struct tui_win_info)
5602 <check_and_display_highlight_if_needed>: Declare.
5603
5604 2019-08-13 Tom Tromey <tom@tromey.com>
5605
5606 * tui/tui-win.c (tui_resize_all): Call
5607 tui_delete_invisible_windows.
5608 * tui/tui-layout.c (show_layout): Call
5609 tui_delete_invisible_windows.
5610 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5611 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5612
5613 2019-08-13 Tom Tromey <tom@tromey.com>
5614
5615 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5616 tui_add_win_to_layout.
5617
5618 2019-08-13 Tom Tromey <tom@tromey.com>
5619
5620 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5621 * tui/tui-layout.c (tui_default_win_height): Now static.
5622
5623 2019-08-13 Tom Tromey <tom@tromey.com>
5624
5625 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5626 single switch.
5627 (show_source_disasm_command, show_source_or_disasm_and_command):
5628 Don't check current layout.
5629
5630 2019-08-13 Tom Tromey <tom@tromey.com>
5631
5632 * tui/tui-wingeneral.c (make_all_visible): Remove.
5633 (tui_make_all_invisible): Simplify.
5634 * tui/tui-layout.c (tui_make_all_invisible): Move from
5635 tui-wingeneral.c; simplify.
5636 (show_layout): Hoist call to tui_make_all_invisible.
5637 (show_data): Don't call tui_make_all_invisible.
5638
5639 2019-08-13 Tom Tromey <tom@tromey.com>
5640
5641 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5642 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5643
5644 2019-08-13 Tom Tromey <tom@tromey.com>
5645
5646 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5647 tui-data.c.
5648 (show_source_disasm_command, show_data)
5649 (show_source_or_disasm_and_command): Don't use
5650 tui_set_current_layout_to.
5651 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5652 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5653 tui-layout.c.
5654 (tui_set_current_layout_to): Remove.
5655
5656 2019-08-13 Tom Tromey <tom@tromey.com>
5657
5658 * tui/tui-layout.c (tui_set_layout): Update.
5659 * tui/tui-data.h (struct tui_layout_def): Remove.
5660 (tui_layout_def): Don't declare.
5661 * tui/tui-data.c (layout_def): Remove.
5662 (tui_layout_def): Remove.
5663
5664 2019-08-13 Tom Tromey <tom@tromey.com>
5665
5666 * tui/tui-winsource.h (struct tui_source_window_base)
5667 <clear_detail>: No longer "override".
5668 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5669 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5670 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5671 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5672 Remove.
5673 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5674
5675 2019-08-13 Tom Tromey <tromey@adacore.com>
5676
5677 * tracepoint.c: Don't include readline.h or history.h.
5678
5679 2019-08-12 Tom Tromey <tom@tromey.com>
5680
5681 * configure: Rebuild.
5682 * configure.ac: Check for readline 7.
5683 * NEWS: Mention readline 7 requirement.
5684 * README: Update.
5685
5686 2019-08-12 Tom Tromey <tom@tromey.com>
5687
5688 * mingw-hdep.c (gdb_select): Remove readline hack.
5689
5690 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5691
5692 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5693 when the function fails.
5694
5695 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5696
5697 * s390-tdep.c (s390_type_align): New function.
5698 (s390_gdbarch_init): Set it as type_align gdbarch method.
5699
5700 2019-08-09 Tom de Vries <tdevries@suse.de>
5701
5702 PR gdb/24591
5703 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5704 pc_low with relocation offset.
5705
5706 2019-08-07 Tom Tromey <tromey@adacore.com>
5707
5708 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5709 (print_frame_args): Update.
5710 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5711 Update.
5712 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5713 * frame.h (struct frame_arg): Add initializers.
5714 <error>: Now a unique_xmalloc_ptr.
5715
5716 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5717
5718 * NEWS: Expand the Pointer Authentication entry.
5719 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5720 (aarch64_frame_unmask_lr): ... to this.
5721 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5722 Call aarch64_frame_unmask_lr.
5723 * frame.c (struct frame_info): Add "masked" variable.
5724 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5725 (fprint_frame): Check for masked pc.
5726 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5727 declarations.
5728 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5729 * stack.c (print_frame): Check for masked pc.
5730
5731 2019-08-06 Tom Tromey <tom@tromey.com>
5732
5733 * stabsread.c (patch_block_stabs, read_one_struct_field)
5734 (read_enum_type): Use obstack_strndup.
5735 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5736 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5737 * dwarf2read.c (guess_full_die_structure_name)
5738 (anonymous_struct_prefix): Use obstack_strndup.
5739 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5740 * c-exp.y (yylex): Use obstack_strndup.
5741 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5742 (write_var_or_type): Use obstack_strndup.
5743
5744 2019-08-06 Tom Tromey <tom@tromey.com>
5745
5746 * symfile.c (reread_symbols): Use obstack_strdup.
5747 * stabsread.c (read_type): Use obstack_strdup.
5748 * gdb_obstack.h (obstack_strdup): New overload.
5749 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5750 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5751 (dwarf2_canonicalize_name): Use obstack_strdup.
5752 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5753 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5754 Use obstack_strdup.
5755
5756 2019-08-06 Tom Tromey <tom@tromey.com>
5757
5758 * gdb_obstack.h (obstack_strdup): Define.
5759 * gdb_obstack.c (obstack_strdup): Don't define.
5760
5761 2019-08-06 Tom Tromey <tom@tromey.com>
5762
5763 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5764 obstack_strdup.
5765 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5766 obstack_strdup.
5767 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5768 * stabsread.c (common_block_start): Use obstack_strdup.
5769 * objfiles.c (set_objfile_main_name, objfile): Use
5770 obstack_strdup.
5771 * namespace.c (add_using_directive): Use obstack_strdup.
5772 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5773 * jit.c (finalize_symtab): Use obstack_strdup.
5774 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5775 (guess_partial_die_structure_name, partial_die_info::fixup)
5776 (dwarf2_name): Use obstack_strdup.
5777 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5778 obstack_strdup.
5779 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5780 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5781 obstack_strdup.
5782 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5783
5784 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5785
5786 * unittests/help-doc-selftests.c: New file.
5787 * Makefile.in: Add the new file.
5788
5789 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5790
5791 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5792 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5793 the full first line, except when FOR_VALUE_PREFIX. In this case,
5794 the trailing '.' is not output, and the first character is uppercased.
5795 (print_help_for_command): Update call to print_doc_line.
5796 (print_doc_of_command): Likewise.
5797 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5798 * cli/cli-option.c (append_indented_doc): Do not append newline.
5799 (build_help_option): Append newline after first appended_indented_doc
5800 only if a second call is done.
5801 (build_help): Append 2 new lines before each option, except the first
5802 one.
5803 * compile/compile.c (_initialize_compile): Add new lines after
5804 %OPTIONS%, when not at the end of the help.
5805 Change help doc or code
5806 producing the help doc to respect the invariants.
5807 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5808 Also removed the new line after 'Options:', as all other commands
5809 do not put an empty line between 'Options:' and the first option.
5810 * printcmd.c (_initialize_printcmd): Likewise.
5811 * stack.c (_initialize_stack): Likewise.
5812 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5813 incorrectly telling COMMAND is optional.
5814 * ada-lang.c (_initialize_ada_language): Change help doc or code
5815 producing the help doc to respect the invariants.
5816 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5817 * breakpoint.c (_initialize_breakpoint): Likewise.
5818 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5819 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5820 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5821 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5822 _initialize_cli_style): Likewise.
5823 * corelow.c (core_target_info): Likewise.
5824 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5825 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5826 * filesystem.c (_initialize_filesystem): Likewise.
5827 * frame.c (_initialize_frame): Likewise.
5828 * gnu-nat.c (add_task_commands): Likewise.
5829 * infcall.c (_initialize_infcall): Likewise.
5830 * infcmd.c (_initialize_infcmd): Likewise.
5831 * interps.c (_initialize_interpreter): Likewise.
5832 * language.c (_initialize_language): Likewise.
5833 * linux-fork.c (_initialize_linux_fork): Likewise.
5834 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5835 * maint.c (_initialize_maint_cmds): Likewise.
5836 * memattr.c (_initialize_mem): Likewise.
5837 * printcmd.c (_initialize_printcmd): Likewise.
5838 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5839 _RegEx): Likewise.
5840 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5841 * record-btrace.c (_initialize_record_btrace): Likewise.
5842 * record-full.c (_initialize_record_full): Likewise.
5843 * record.c (_initialize_record): Likewise.
5844 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5845 * regcache.c (_initialize_regcache): Likewise.
5846 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5847 _initialize_remote): Likewise.
5848 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5849 * serial.c (_initialize_serial): Likewise.
5850 * skip.c (_initialize_step_skip): Likewise.
5851 * source.c (_initialize_source): Likewise.
5852 * stack.c (_initialize_stack): Likewise.
5853 * symfile.c (_initialize_symfile): Likewise.
5854 * symtab.c (_initialize_symtab): Likewise.
5855 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5856 * top.c (init_main): Likewise.
5857 * tracefile-tfile.c (tfile_target_info): Likewise.
5858 * tracepoint.c (_initialize_tracepoint): Likewise.
5859 * tui/tui-win.c (_initialize_tui_win): Likewise.
5860 * utils.c (add_internal_problem_command): Likewise.
5861 * valprint.c (value_print_option_defs): Likewise.
5862
5863 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5864
5865 PR build/24886
5866 * configure.ac: Drop enable-libmcheck support.
5867 * configure, config.in: Rebuild.
5868 * libmcheck.m4: Remove.
5869 * acinclude.m4: Don't include it.
5870 * Makefile.in: Don't distribute it.
5871 * top.c (print_gdb_configuration): Don't mention it.
5872
5873 2019-08-06 Tom Tromey <tom@tromey.com>
5874
5875 * utils.c (set_output_style): Sometimes pass stream to
5876 emit_style_escape.
5877 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5878 * record-btrace.c (btrace_insn_history): Update.
5879 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5880 method.
5881 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5882 Update initializers.
5883 <m_uiout>: New field.
5884 <m_di>: Move lower.
5885 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5886 Remove "uiout" parameter.
5887 (dump_insns): Update.
5888 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5889 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5890
5891 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5892
5893 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5894 (error_in_psymtab_expansion): Likewise.
5895 (lookup_symbol_via_quick_fns): Likewise.
5896 (basic_lookup_transparent_type_quick): Likewise.
5897 (basic_lookup_transparent_type_1): Likewise.
5898
5899 2019-08-06 Tom Tromey <tromey@adacore.com>
5900
5901 * source.c (last_source_error): Now bool.
5902 (print_source_lines_base): Make "noprint" bool. Only open
5903 source file when last_source_visited changes.
5904
5905 2019-08-06 Tom Tromey <tromey@adacore.com>
5906
5907 * annotate.c (annotate_source_line): Use g_source_cache.
5908 * source-cache.c (source_cache::get_plain_source_lines): Change
5909 parameters. Populate m_offset_cache.
5910 (source_cache::ensure): New method.
5911 (source_cache::get_line_charpos): New method.
5912 (extract_lines): Move lower. Change parameters.
5913 (source_cache::get_source_lines): Move lower.
5914 * source-cache.h (class source_cache): Update comment.
5915 <get_line_charpos>: New method.
5916 <get_source_lines>: Update comment.
5917 <clear>: Clear m_offset_cache.
5918 <get_plain_source_lines>: Change parameters.
5919 <ensure>: New method
5920 <m_offset_cache>: New member.
5921 * source.c (forget_cached_source_info_for_objfile): Update.
5922 (info_source_command): Use g_source_cache.
5923 (find_source_lines, open_source_file_with_line_charpos): Remove.
5924 (print_source_lines_base, search_command_helper): Use g_source_cache.
5925 * source.h (open_source_file_with_line_charpos): Don't declare.
5926 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5927 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5928 Use g_source_cache.
5929
5930 2019-08-06 Tom Tromey <tromey@adacore.com>
5931
5932 * source-cache.c (source_cache::get_plain_source_lines):
5933 Remove "first_line" and "last_line" parameters.
5934 (source_cache::get_source_lines): Cache plain text.
5935 * source-cache.h (class source_cache)
5936 <get_plain_source_lines>: Update.
5937
5938 2019-08-06 Tom Tromey <tromey@adacore.com>
5939
5940 * source-cache.c (extract_lines): No longer a method.
5941 Changed type of parameter. Include final newline.
5942 (selftests::extract_lines_test): New function.
5943 (_initialize_source_cache): Likewise.
5944 * source-cache.h (class source_cache)
5945 <extract_lines>: Don't declare.
5946
5947 2019-08-06 Tom Tromey <tromey@adacore.com>
5948
5949 * breakpoint.c (init_breakpoint_sal): Update.
5950 (breakpoint): Update.
5951 * breakpoint.h (struct breakpoint) <filter>: Now a
5952 unique_xmalloc_ptr.
5953
5954 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5955
5956 * NEWS: Mention dictionary access on blocks.
5957 * python/py-block.c (blpy_getitem): New function.
5958 (block_object_as_mapping): New struct.
5959 (block_object_type): Use new struct for tp_as_mapping field.
5960
5961 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5962
5963 * objfiles.h (objfile): Add a comment describing partial symbols.
5964
5965 2019-08-05 Tom Tromey <tromey@adacore.com>
5966
5967 * compile/compile.c (_initialize_compile): Use _(), not N_().
5968 * thread.c (_initialize_thread): Use _(), not N_().
5969 * stack.c (_initialize_stack): Use _(), not N_().
5970 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5971
5972 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * dwarf2read.c (struct dw2_symtab_iterator):
5975 <want_specific_block>: Remove.
5976 <block_index>: Change type to gdb::optional.
5977 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5978 change type of BLOCK_INDEX parameter to gdb::optional.
5979 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5980 (dw2_lookup_symbol): Don't pass argument for
5981 WANT_SPECIFIC_BLOCK.
5982 (dw2_expand_symtabs_for_function): Don't pass argument for
5983 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5984 (class dw2_debug_names_iterator)
5985 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5986 parameter, change BLOCK_INDEX type to gdb::optional.
5987 <m_want_specific_block>: Remove.
5988 <m_block_index>: Change type to gdb::optional.
5989 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5990 gdb::optional. Re-write in function of gdb::optional.
5991 (dw2_debug_names_lookup_symbol): Don't pass argument for
5992 WANT_SPECIFIC_BLOCK.
5993 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5994 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5995 BLOCK_INDEX.
5996
5997 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5998
5999 * NEWS: Mention changes to "info sources" command.
6000
6001 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6002
6003 * symtab.c (filename_partial_match_opts): New struct type.
6004 (struct output_source_filename_data): New members
6005 regexp, c_regexp, partial_match.
6006 (output_source_filename): Use new members to decide to print file.
6007 (info_sources_option_defs): New variable.
6008 (make_info_sources_options_def_group, print_info_sources_header,
6009 info_sources_command_completer):
6010 New functions.
6011 (info_sources_command): Read new optional arguments.
6012 (_initialize_symtab): Update info sources help.
6013
6014 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6015
6016 * ada-lang.c (exception_support_info_v0): Renamed from...
6017 (default_exception_support_info): ... this. Create new
6018 definition for v1.
6019 (ada_has_this_exception_support): Look up catch_handlers_sym.
6020 (ada_exception_support_info_sniffer): Try v0 after default.
6021
6022 2019-08-01 Tom Tromey <tromey@adacore.com>
6023
6024 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6025 gdbarch.h.
6026
6027 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6028
6029 * s12z-tdep.c: Fix include path for s12z-opc.h.
6030
6031 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6032
6033 * NEWS: Require GNU make 3.82.
6034
6035 2019-07-16 Tom Tromey <tom@tromey.com>
6036
6037 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6038 declare.
6039
6040 2019-07-30 Tom Tromey <tromey@adacore.com>
6041
6042 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6043
6044 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6045
6046 * printcmd.c (print_address_symbolic): Print negative offsets.
6047 (build_address_symbolic): Force signed arithmetic when computing
6048 offset.
6049
6050 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6051
6052 PR/24474: Add a function to lookup static variables.
6053 * NEWS: Mention this new function.
6054 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6055 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6056 * python/python.c (python_GdbMethods): Add new function.
6057
6058 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6059
6060 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6061 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6062 (objfpy_lookup_static_symbol): New function.
6063 (objfile_object_methods): Add new functions.
6064
6065 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6066
6067 * NEWS: Mention 'set|show print frame-info'. Mention new
6068 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6069 backtrace argument. Mention that python frame filtering code
6070 is now consistent with what 'backtrace' command prints.
6071
6072 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6073
6074 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6075 comments.
6076 (print_frame_info_auto, print_frame_info_source_line,
6077 print_frame_info_location, print_frame_info_source_and_location,
6078 print_frame_info_location_and_address, print_frame_info_short_location):
6079 New declarations.
6080 (struct frame_print_options): New member print_frame_info.
6081 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6082 * stack.h (get_user_print_what_frame_info): New declaration.
6083 (frame_show_address): New declaration.
6084 * stack.c (print_frame_arguments_choices): New value 'presence'.
6085 (print_frame_info_auto, print_frame_info_source_line,
6086 print_frame_info_location, print_frame_info_source_and_location,
6087 print_frame_info_location_and_address, print_frame_info_short_location,
6088 print_frame_info_choices, print_frame_info_print_what): New definitions.
6089 (print_frame_args): Only print dots for args if print frame-arguments
6090 is 'presence'.
6091 (frame_print_option_defs): New element for "frame-info".
6092 (get_user_print_what_frame_info): New function.
6093 (frame_show_address): Make non static. Move comment to stack.h.
6094 (print_frame_info_to_print_what): New function.
6095 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6096 to decide what to print.
6097 (backtrace_command_1): Handle the new print_frame_arguments_presence
6098 value.
6099 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6100 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6101 (py_print_frame): In non-mi mode, use LOCATION as default for
6102 print_what, similarly to frame information printed directly by
6103 backtrace command. Handle frame-info user option in non MI mode.
6104
6105 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6106
6107 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6108 Add case for debugging 32-bit target on 64-bit host. Revise
6109 comment.
6110
6111 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6112
6113 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6114 instead of find_function_entry_range_from_pc.
6115
6116 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6117
6118 * stack.c (find_frame_funname): Remove code which preferred
6119 minsym over symtab sym in "certain pathological cases".
6120
6121 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6122 parameter. Change type of "do_demangle" to bool.
6123 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6124 Pass suitable "prefer_sym_over_minsym" flag to
6125 build_address_symbolic(). Don't output "+" for negative offsets.
6126 * printcmd.c (print_address_symbolic): Update invocation of
6127 build_address_symbolic to include a "prefer_sym_over_minsym"
6128 flag.
6129 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6130 Restrict cases in which use of minimal symbol is preferred to that
6131 of a found symbol. Update comments.
6132
6133 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6134 for entry pc when entry pc is out of range for that FDE.
6135
6136 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6137
6138 PR gdb/24839:
6139 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6140 type.
6141
6142 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6143
6144 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6145 this function's Python signature.
6146
6147
6148 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6149
6150 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6151 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6152 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6153 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6154 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6155
6156
6157 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6158
6159 * h8300-tdep.c (h8300_register_name_common): New.
6160 h8300_register_name): Use h8300_register_name_common.
6161 (h8300s_register_name): Likewise.
6162 (h8300sx_register_name): Likewise.
6163 (h8300h_register_nam): New.
6164 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6165
6166
6167 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6168
6169 * arm-tdep.c (arm_skip_cmse_entry): New function.
6170 (arm_is_sgstubs_section): New function.
6171 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6172
6173 2019-07-22 Tom Tromey <tom@tromey.com>
6174
6175 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6176 Don't self-assign.
6177
6178 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6179
6180 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6181 type_print.
6182
6183 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6184
6185 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6186 so that GDB doesn't match any msymbols when searching in the
6187 TYPES_DOMAIN.
6188 (print_symbol_info): Print using typedef_print or type_print based
6189 on the type of the symbol. Add updated FIXME comment moved from...
6190 (_initialize_symtab): ... move and update FIXME comment to above.
6191
6192 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * NEWS: Mention adding -q option to "info types".
6195 * symtab.c (struct info_types_options): New struct.
6196 (info_types_options_defs): New variable.
6197 (make_info_types_options_def_group): New function.
6198 (info_types_command): Use gdb::option framework to parse options.
6199 (info_types_command_completer): New function.
6200 (_initialize_symtab): Extend the help text on "info types" and
6201 register command completer.
6202
6203 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6204
6205 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6206 (lookup_symbol_in_objfile): Change int to block_enum and add a
6207 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6208
6209 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6210
6211 * MAINTAINERS (Write After Approval): Add self.
6212
6213 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6214
6215 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6216 instruction to the dummy code region.
6217
6218 2019-07-19 Tom Tromey <tromey@adacore.com>
6219
6220 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6221 (ARGSUSED, PARAMS, __func__): Remove rules.
6222
6223 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6224
6225 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6226 * features/arm/arm-with-iwmmxt.c: Remove.
6227 * features/arm/arm-with-iwmmxt.xml: Remove.
6228 * features/arm/arm-with-m-fpa-layout.c: Remove.
6229 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6230 * features/arm/arm-with-m-vfp-d16.c: Remove.
6231 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6232 * features/arm/arm-with-m.c: Remove.
6233 * features/arm/arm-with-m.xml: Remove.
6234 * features/arm/arm-with-neon.c: Remove.
6235 * features/arm/arm-with-neon.xml: Remove.
6236 * features/arm/arm-with-vfpv2.c: Remove.
6237 * features/arm/arm-with-vfpv2.xml: Remove.
6238 * features/arm/arm-with-vfpv3.c: Remove.
6239 * features/arm/arm-with-vfpv3.xml: Remove.
6240
6241 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6242
6243 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6244
6245 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6246
6247 * arch/aarch32.c (aarch32_create_target_description): Create
6248 target descriptions using features.
6249 * arch/arm.c (arm_create_target_description)
6250 (arm_create_mprofile_target_description): Likewise.
6251 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6252
6253 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6254
6255 * Makefile.in: Add new files.
6256 * aarch32-tdep.c: New file.
6257 * aarch32-tdep.h: New file.
6258 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6259 Call aarch32_read_description.
6260 * arch/aarch32.c: New file.
6261 * arch/aarch32.h: New file.
6262 * arch/arm.c (arm_create_target_description)
6263 (arm_create_mprofile_target_description): New function.
6264 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6265 (arm_create_target_description)
6266 (arm_create_mprofile_target_description): New declaration.
6267 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6268 read_description functions.
6269 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6270 Likewise.
6271 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6272 * arm-tdep.c (tdesc_arm_list): New variable.
6273 (arm_register_g_packet_guesses): Call create description functions.
6274 (arm_read_description) (arm_read_mprofile_description): New
6275 function.
6276 * arm-tdep.h (arm_read_description)
6277 (arm_read_mprofile_description): Add declaration.
6278 * configure.tgt: Add new files.
6279
6280 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6281
6282 * top.c (new_ui_command): Open specified terminal just once.
6283
6284 2019-07-18 Tom Tromey <tromey@adacore.com>
6285
6286 * symtab.c (main_name): Constify return type.
6287 * symfile.c (set_initial_language): Update.
6288 * symtab.h (main_name): Constify return type.
6289
6290 2019-07-17 Tom Tromey <tom@tromey.com>
6291
6292 * tui/tui-winsource.c (tui_update_source_window)
6293 (tui_update_source_window_as_is)
6294 (tui_update_source_windows_with_line): Remove return.
6295 * tui/tui-disasm.c (tui_show_disassem)
6296 (tui_show_disassem_and_update_source): Remove return.
6297 * tui/tui.c (tui_reset): Remove return.
6298 * tui/tui-wingeneral.c
6299 (tui_check_and_display_highlight_if_needed): Remove return.
6300
6301 2019-07-17 Tom Tromey <tom@tromey.com>
6302
6303 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6304
6305 2019-07-17 Tom Tromey <tom@tromey.com>
6306
6307 * tui/tui-winsource.h (struct tui_exec_info_window)
6308 (struct tui_source_window_base): Move from tui-data.h.
6309 * tui/tui-winsource.c: Move many method definitions from
6310 elsewhere. Remove "structuring" comments.
6311 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6312 (tui_source_window_base::refresh_window): Move to
6313 tui-winsource.c.
6314 * tui/tui-win.c (tui_source_window_base::refresh_all)
6315 (tui_source_window_base::update_tab_width)
6316 (tui_source_window_base::set_new_height)
6317 (tui_source_window_base::do_make_visible_with_new_height): Move to
6318 tui-winsource.c.
6319 * tui/tui-source.h: Update.
6320 * tui/tui-source.c (tui_source_window_base::reset): Move to
6321 tui-winsource.c.
6322 * tui/tui-disasm.h: Update.
6323 * tui/tui-data.h (struct tui_exec_info_window): Move to
6324 tui-winsource.h.
6325 (struct tui_source_window_base): Likewise.
6326 * tui/tui-data.c (tui_source_window_base::clear_detail)
6327 (tui_source_window_base, ~tui_source_window_base): Move to
6328 tui-winsource.c.
6329
6330 2019-07-17 Tom Tromey <tom@tromey.com>
6331
6332 * tui/tui-win.c (tui_resize_all)
6333 (tui_source_window_base::update_tab_width)
6334 (tui_adjust_win_heights): Update.
6335 (tui_win_info::make_invisible_and_set_new_height): Rename from
6336 make_invisible_and_set_new_height.
6337 * tui/tui-data.h (struct tui_win_info)
6338 <make_invisible_and_set_new_height>: New method.
6339
6340 2019-07-17 Tom Tromey <tom@tromey.com>
6341
6342 * tui/tui.c: Update.
6343 * tui/tui-source.h (struct tui_source_window): Move from
6344 tui-data.h.
6345 * tui/tui-layout.c: Update.
6346 * tui/tui-disasm.c: Update.
6347 * tui/tui-data.h (struct tui_source_window): Move to
6348 tui-source.h.
6349
6350 2019-07-17 Tom Tromey <tom@tromey.com>
6351
6352 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6353 tui-data.h.
6354 * tui/tui-data.h (struct tui_disasm_window): Move to
6355 tui-disasm.h.
6356
6357 2019-07-17 Tom Tromey <tom@tromey.com>
6358
6359 * tui/tui-regs.h (struct tui_data_item_window): Move from
6360 tui-data.h.
6361 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6362 * tui/tui-data.h (struct tui_data_item_window): Move to
6363 tui-regs.h.
6364 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6365
6366 2019-07-17 Tom Tromey <tom@tromey.com>
6367
6368 * tui/tui.c: Update.
6369 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6370 (tui_cmd_window::max_height): Move to tui-command.c.
6371 * tui/tui-layout.c: Update.
6372 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6373 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6374 tui-command.c.
6375 * tui/tui-command.h (struct tui_cmd_window): Move from
6376 tui-data.h.
6377 * tui/tui-command.c: Remove "structuring" comments.
6378 (tui_cmd_window::clear_detail)
6379 (tui_cmd_window::do_make_visible_with_new_height)
6380 (tui_cmd_window::max_height): Move from elsewhere.
6381
6382 2019-07-17 Tom Tromey <tom@tromey.com>
6383
6384 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6385 Now static.
6386 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6387 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6388
6389 2019-07-17 Tom Tromey <tom@tromey.com>
6390
6391 * tui/tui.c: Update.
6392 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6393 tui-regs.c.
6394 * tui/tui-windata.h: Remove file.
6395 * tui/tui-windata.c: Remove file.
6396 * tui/tui-win.c (tui_data_window::set_new_height)
6397 (tui_data_window::do_make_visible_with_new_height): Move to
6398 tui-regs.c.
6399 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6400 * tui/tui-regs.c: Remove "structuring" comments.
6401 (tui_data_window::first_data_item_displayed)
6402 (tui_data_window::delete_data_content_windows)
6403 (tui_data_window::erase_data_content)
6404 (tui_data_window::display_all_data)
6405 (tui_data_window::refresh_all)
6406 (tui_data_window::do_scroll_vertical)
6407 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6408 (tui_data_window::do_make_visible_with_new_height)
6409 (tui_data_window::refresh_window): Move from elsewhere.
6410 (_initialize_tui_regs): Move to end of file.
6411 * tui/tui-layout.c: Update.
6412 * tui/tui-hooks.c: Update.
6413 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6414 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6415 tui-regs.c.
6416 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6417
6418 2019-07-17 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6421 seen.
6422
6423 2019-07-17 Tom Tromey <tom@tromey.com>
6424
6425 * tui/tui-win.c (tui_source_window_base::set_new_height)
6426 (tui_source_window_base::do_make_visible_with_new_height): Use
6427 m_has_locator field directly.
6428 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6429 method.
6430 (struct tui_source_window_base) <has_locator>: Likewise.
6431
6432 2019-07-17 Tom Tromey <tom@tromey.com>
6433
6434 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6435 Don't declare.
6436 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6437 Remove.
6438 * tui/tui-win.c (tui_source_window_base::set_new_height)
6439 (tui_source_window_base::set_new_height)
6440 (make_invisible_and_set_new_height)
6441 (tui_source_window_base::do_make_visible_with_new_height)
6442 (tui_source_window_base::do_make_visible_with_new_height):
6443 Update.
6444 * tui/tui-layout.c (show_source_disasm_command, show_data)
6445 (show_source_or_disasm_and_command): Update.
6446 * tui/tui-layout.c (show_layout): Update.
6447
6448 2019-07-17 Tom Tromey <tom@tromey.com>
6449
6450 * tui/tui-layout.c (make_data_window): Remove.
6451 (show_data): Unify creation and re-initialization cases.
6452
6453 2019-07-17 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui-layout.c (make_source_window, make_disasm_window):
6456 Remove.
6457 (show_data): Unify creation and re-initialization cases.
6458
6459 2019-07-17 Tom Tromey <tom@tromey.com>
6460
6461 * tui/tui-layout.c (make_command_window): Remove.
6462 (show_source_disasm_command, show_source_or_disasm_and_command):
6463 Unify creation and re-initialization cases.
6464
6465 2019-07-17 Tom Tromey <tom@tromey.com>
6466
6467 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6468 creation and re-initialization cases.
6469
6470 2019-07-17 Tom Tromey <tom@tromey.com>
6471
6472 * tui/tui-regs.c (tui_get_register): Return void.
6473
6474 2019-07-17 Tom Tromey <tom@tromey.com>
6475
6476 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6477 Simplify.
6478
6479 2019-07-17 Tom Tromey <tom@tromey.com>
6480
6481 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6482 resetting.
6483
6484 2019-07-17 Tom Tromey <tom@tromey.com>
6485
6486 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6487 * tui/tui-regs.c (tui_reg_layout): New function.
6488 (tui_show_registers, tui_reg_command): Use it.
6489 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6490 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6491 parameters.
6492 (tui_layout_command): Remove.
6493
6494 2019-07-17 Tom Tromey <tom@tromey.com>
6495
6496 * tui/tui-layout.h (tui/tui-layout): Return void.
6497 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6498
6499 2019-07-17 Tom Tromey <tom@tromey.com>
6500
6501 * tui/tui-layout.c (show_source_disasm_command, show_data):
6502 Update.
6503 (reset_locator): Remove.
6504 (show_source_or_disasm_and_command): Update.
6505
6506 2019-07-17 Tom Tromey <tom@tromey.com>
6507
6508 * tui/tui-source.c (tui_source_window_base::reset): Remove
6509 win_type parameter.
6510 * tui/tui-layout.c (make_command_window, make_source_window)
6511 (make_disasm_window, make_data_window)
6512 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6513 (reset_locator, show_source_or_disasm_and_command): Update.
6514 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6515 win_type parameter.
6516 (struct tui_source_window_base) <reset>: Likewise.
6517
6518 2019-07-17 Tom Tromey <tom@tromey.com>
6519
6520 * tui/tui-layout.c (show_source_disasm_command): Use
6521 reset_locator.
6522 (reset_locator): New function.
6523 (init_and_make_win): Remove.
6524 (show_source_or_disasm_and_command): Use reset_locator.
6525
6526 2019-07-17 Tom Tromey <tom@tromey.com>
6527
6528 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6529 condition.
6530 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6531 Remove condition.
6532 * tui/tui-source.c (tui_source_window_base::reset): New method.
6533 * tui/tui-layout.c (make_command_window): Don't call
6534 init_and_make_win.
6535 (make_source_window, make_disasm_window): Don't call
6536 make_source_or_disasm_window.
6537 (make_data_window): Don't call init_and_make_win. Change calling
6538 convention.
6539 (show_source_disasm_command, show_data): Simplify.
6540 (make_source_or_disasm_window): Remove.
6541 (show_source_or_disasm_and_command): Simplify.
6542 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6543 (struct tui_source_window_base) <reset>: Likewise.
6544 <execution_info>: Remove initializer.
6545 * tui/tui-data.c (tui_source_window_base): Initialize
6546 execution_info.
6547
6548 2019-07-17 Tom Tromey <tom@tromey.com>
6549
6550 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6551 variable.
6552
6553 2019-07-17 Tom Tromey <tom@tromey.com>
6554
6555 * tui/tui.c (tui_rl_other_window): Update.
6556 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6557 superclass method first. Always iterate over regs_content.
6558 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6559 method.
6560 * tui/tui-win.c (tui_set_focus_command): Update.
6561
6562 2019-07-17 Tom Tromey <tom@tromey.com>
6563
6564 * tui/tui-win.c (tui_set_focus_command): Rename from
6565 tui_set_focus. Call tui_enable.
6566 (tui_set_focus_command): Remove.
6567
6568 2019-07-17 Tom Tromey <tom@tromey.com>
6569
6570 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6571 refresh_window.
6572 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6573 touchwin.
6574 (tui_data_window::refresh_window): Call refresh_window on data
6575 items. Always call superclass refresh_window.
6576 (tui_win_info::refresh): Remove.
6577 (tui_source_window_base::refresh_window): Update.
6578 (tui_refresh_all): Update.
6579 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6580 refresh_window.
6581 (show_source_or_disasm_and_command): Likewise.
6582 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6583 (struct tui_source_window_base) <refresh>: Likewise.
6584
6585 2019-07-17 Tom Tromey <tom@tromey.com>
6586
6587 * tui/tui-winsource.c (tui_clear_source_content)
6588 (tui_show_source_content): Update.
6589 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6590 whether content is empty.
6591 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6592 Remove.
6593
6594 2019-07-17 Tom Tromey <tom@tromey.com>
6595
6596 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6597 window's contents.
6598 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6599 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6600
6601 2019-07-17 Tom Tromey <tom@tromey.com>
6602
6603 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6604 (struct tui_data_item_window): Update.
6605
6606 2019-07-17 Tom Tromey <tom@tromey.com>
6607
6608 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6609 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6610 defines.
6611
6612 2019-07-17 Tom Tromey <tom@tromey.com>
6613
6614 * tui/tui-winsource.h (tui_erase_source_content)
6615 (tui_clear_source_content): Remove "display_prompt" parameter.
6616 * tui/tui-winsource.c (tui_update_source_window_as_is)
6617 (tui_update_source_windows_with_addr): Update.
6618 (tui_clear_source_content): Remove "display_prompt" parameter.
6619 (tui_erase_source_content): Likewise. Simplify.
6620 (tui_show_source_content): Update.
6621 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6622 * tui/tui-stack.c (tui_show_frame_info): Update.
6623 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6624 Remove defines.
6625
6626 2019-07-17 Tom Tromey <tom@tromey.com>
6627
6628 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6629 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6630 parameter.
6631 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6632 parameter.
6633
6634 2019-07-17 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-winsource.c (tui_clear_source_content)
6637 (tui_show_source_content, tui_show_exec_info_content)
6638 (tui_clear_exec_info_content): Update.
6639 * tui/tui-stack.c (tui_show_locator_content): Update.
6640 (tui_show_frame_info): Update.
6641 * tui/tui-source.h (tui_source_window): Don't declare.
6642 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6643 from tui_source_is_displayed.
6644 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6645 Remove field.
6646 (struct tui_source_window_base) <content_in_use>: New field. Now
6647 bool.
6648 (struct tui_source_window) <showing_source_p>: New method.
6649 (TUI_SRC_WIN): Change cast.
6650 * tui/tui-data.c (tui_initialize_static_data): Update.
6651
6652 2019-07-17 Tom Tromey <tom@tromey.com>
6653
6654 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6655 location_matches_p.
6656 * tui/tui-source.c (tui_source_window::location_matches_p): New
6657 method.
6658 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6659 method.
6660 * tui/tui-data.h (struct tui_source_window_base)
6661 <location_matches_p>: New method.
6662 (struct tui_source_window, struct tui_disasm_window)
6663 <location_matches_p>: Likewise.
6664
6665 2019-07-17 Tom Tromey <tom@tromey.com>
6666
6667 * tui/tui-win.c (tui_set_win_height_command): Rename from
6668 tui_set_win_height.
6669 (tui_set_win_height_command): Remove.
6670
6671 2019-07-17 Tom Tromey <tom@tromey.com>
6672
6673 * tui/tui-source.c (tui_source_window): New constructor. Add
6674 observer.
6675 (~tui_source_window): New destructor.
6676 (tui_source_window::style_changed): New method.
6677 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6678 (tui_attach_detach_observers): Update.
6679 * tui/tui-data.h (struct tui_source_window): Make constructor not
6680 inline. Add destructor.
6681 (struct tui_source_window) <style_changed>: New method.
6682 <m_observable>: New member.
6683
6684 2019-07-17 Tom Tromey <tom@tromey.com>
6685
6686 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6687 * tui/tui-win.c (tui_resize_all): Fix typo.
6688
6689 2019-07-17 Tom Tromey <tom@tromey.com>
6690
6691 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6692 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6693 (tui_refresh_all): Remove "list" parameter. Use foreach.
6694 * tui/tui-win.c (window_name_completer): Use foreach.
6695 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6696 (update_tab_width): Likewise.
6697 * tui/tui-layout.c (show_layout): Update.
6698 * tui/tui-data.h (class tui_window_iterator): New.
6699 (struct all_tui_windows): New.
6700 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6701
6702 2019-07-17 Tom Tromey <tom@tromey.com>
6703
6704 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6705 parameter. Don't reference globals.
6706 (tui_reg_command): Update.
6707
6708 2019-07-17 Tom Tromey <tom@tromey.com>
6709
6710 * tui/tui-regs.c (tui_show_registers): Simplify.
6711
6712 2019-07-17 Tom Tromey <tom@tromey.com>
6713
6714 * tui/tui-regs.c (tui_show_registers): Update.
6715 (tui_show_register_group): Add win_info parameter.
6716
6717 2019-07-17 Tom Tromey <tom@tromey.com>
6718
6719 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6720 Rename from tui_display_reg_element_at_line.
6721 (tui_data_window::display_registers_from_line): Update.
6722 * tui/tui-data.h (struct tui_data_window)
6723 <display_reg_element_at_line>: New method.
6724
6725 2019-07-17 Tom Tromey <tom@tromey.com>
6726
6727 * tui/tui-regs.h (tui_display_registers_from)
6728 (tui_display_registers_from_line): Don't declare.
6729 * tui/tui-windata.c (tui_data_window::display_all_data)
6730 (tui_data_window::refresh_all)
6731 (tui_data_window::do_scroll_vertical): Update.
6732 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6733 from tui_display_registers_from.
6734 (tui_display_reg_element_at_line): Update.
6735 (tui_data_window::display_registers_from_line): Rename from
6736 tui_display_registers_from_line.
6737 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6738 display_registers_from_line>: New methods.
6739
6740 2019-07-17 Tom Tromey <tom@tromey.com>
6741
6742 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6743 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6744 from tui_erase_data_content.
6745 (tui_data_window::display_all_data)
6746 (tui_data_window::refresh_all)
6747 (tui_data_window::do_scroll_vertical): Update.
6748 * tui/tui-regs.c (tui_show_registers): Update.
6749 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6750 New method.
6751
6752 2019-07-17 Tom Tromey <tom@tromey.com>
6753
6754 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6755 declare.
6756 * tui/tui-windata.c
6757 (tui_data_window::delete_data_content_windows): Rename from
6758 tui_delete_data_content_windows.
6759 (tui_data_window::display_all_data)
6760 (tui_data_window::do_scroll_vertical): Update.
6761 * tui/tui-data.h (struct tui_data_window)
6762 <delete_data_content_windows>: New method.
6763
6764 2019-07-17 Tom Tromey <tom@tromey.com>
6765
6766 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6767 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6768
6769 2019-07-17 Tom Tromey <tom@tromey.com>
6770
6771 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6772 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6773 from tui_display_all_data.
6774 * tui/tui-win.c
6775 (tui_data_window::do_make_visible_with_new_height): Update.
6776 * tui/tui-regs.c (tui_show_registers): Update.
6777 * tui/tui-layout.c (tui_set_layout): Update.
6778 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6779 method.
6780
6781 2019-07-17 Tom Tromey <tom@tromey.com>
6782
6783 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6784 * tui/tui-windata.c (tui_display_data_from): Remove.
6785 (tui_data_window::refresh_all): Update.
6786
6787 2019-07-17 Tom Tromey <tom@tromey.com>
6788
6789 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6790 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6791 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6792 tui_display_registers_from_line.
6793 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6794 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6795 "force_display" parameter.
6796
6797 2019-07-17 Tom Tromey <tom@tromey.com>
6798
6799 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6800 declare.
6801 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6802 Rename from tui_first_reg_element_no_inline.
6803 (tui_display_reg_element_at_line)
6804 (tui_display_registers_from_line): Update.
6805 * tui/tui-data.h (struct tui_data_window)
6806 <first_reg_element_no_inline>: New method.
6807
6808 2019-07-17 Tom Tromey <tom@tromey.com>
6809
6810 * tui/tui-windata.c (tui_display_data_from)
6811 (tui_data_window::do_scroll_vertical): Update.
6812 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6813 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6814 Rename from tui_line_from_reg_element_no.
6815 (tui_display_registers_from_line): Update.
6816 * tui/tui-data.h (struct tui_data_window)
6817 <line_from_reg_element_no>: New method.
6818
6819 2019-07-17 Tom Tromey <tom@tromey.com>
6820
6821 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6822 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6823 tui_last_regs_line_no.
6824 (tui_display_reg_element_at_line)
6825 (tui_display_registers_from_line): Update.
6826 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6827 method.
6828
6829 2019-07-17 Tom Tromey <tom@tromey.com>
6830
6831 PR tui/24722:
6832 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6833 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6834 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6835 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6836 (tui_update_breakpoint_info): Likewise.
6837 * tui/tui-hooks.c (tui_event_create_breakpoint)
6838 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6839 Update.
6840
6841 2019-07-17 Tom Tromey <tom@tromey.com>
6842
6843 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6844
6845 2019-07-17 Tom Tromey <tom@tromey.com>
6846
6847 * tui/tui-winsource.c (tui_update_source_window_as_is)
6848 (tui_update_source_windows_with_addr): Update.
6849 * tui/tui-source.h (tui_set_source_content)
6850 (tui_show_symtab_source): Add "win_info" parameter.
6851 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6852 parameter.
6853 (tui_show_symtab_source): Likewise.
6854
6855 2019-07-17 Tom Tromey <tom@tromey.com>
6856
6857 * tui/tui-wingeneral.c
6858 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6859
6860 2019-07-17 Tom Tromey <tom@tromey.com>
6861
6862 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6863 (struct tui_cmd_window) <can_scroll>: New method.
6864 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6865 method.
6866
6867 2019-07-17 Tom Tromey <tromey@adacore.com>
6868
6869 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6870 do_field_signed>: Rename. Change type of "value".
6871 * ui-out.c (ui_out::field_signed): Rename from field_int.
6872 Change type of "value".
6873 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6874 type of "value".
6875 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6876 do_field_int. Change type of "value".
6877 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6878 do_field_int. Change type of "value".
6879 * tracepoint.c (trace_status_mi, tfind_1)
6880 (print_one_static_tracepoint_marker): Update.
6881 * thread.c (print_thread_info_1, print_selected_thread_frame):
6882 Update.
6883 * stack.c (print_frame, print_frame_info): Update.
6884 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6885 Update.
6886 * source.c (print_source_lines_base): Update.
6887 * skip.c (info_skip_command): Update.
6888 * record-btrace.c (btrace_ui_out_decode_error)
6889 (btrace_call_history_src_line): Update.
6890 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6891 Update.
6892 * progspace.c (print_program_space): Update.
6893 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6894 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6895 do_field_int. Change type of "value".
6896 * mi/mi-out.c (mi_ui_out::do_table_begin)
6897 (mi_ui_out::do_table_header): Update.
6898 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6899 type of "value".
6900 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6901 (mi_cmd_data_list_changed_registers, output_register)
6902 (mi_cmd_data_read_memory, mi_load_progress)
6903 (mi_cmd_trace_frame_collected): Update.
6904 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6905 Update.
6906 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6907 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6908 (mi_cmd_var_list_children, varobj_update_one): Update.
6909 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6910 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6911 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6912 * inferior.c (print_inferior): Update.
6913 * gdb_bfd.c (print_one_bfd): Update.
6914 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6915 Update.
6916 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6917 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6918 do_field_int. Change type of "value".
6919 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6920 do_field_int. Change type of "value".
6921 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6922 (print_one_breakpoint_location, print_it_catch_fork)
6923 (print_one_catch_fork, print_it_catch_vfork)
6924 (print_one_catch_vfork, print_it_catch_solib)
6925 (print_it_catch_exec, print_it_ranged_breakpoint)
6926 (print_mention_watchpoint, print_mention_masked_watchpoint)
6927 (bkpt_print_it, update_static_tracepoint): Update.
6928 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6929 * break-catch-syscall.c (print_it_catch_syscall): Update.
6930 * ada-tasks.c (print_ada_task_info): Update.
6931 * ada-lang.c (print_it_exception, print_mention_exception):
6932 Update.
6933
6934 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6935
6936 PR breakpoints/24541
6937 * gdbarch.c: Regenerate.
6938 * gdbarch.h: Regenerate.
6939 * gdbarch.sh: Adjust return type and parameter types for
6940 'stap_adjust_register'.
6941 (i386_stap_adjust_register): Adjust signature and return new
6942 register name.
6943 * stap-probe.c (stap_parse_register_operand): Adjust use of
6944 'gdbarch_stap_adjust_register'.
6945
6946 2019-07-17 Tom Tromey <tromey@adacore.com>
6947
6948 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6949 declare VEC.
6950 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6951 std::vector.
6952 (struct s390_process_info): Add initializers.
6953 (s390_add_process): Use new.
6954 (s390_linux_nat_target::low_forget_process): Use delete.
6955 (s390_linux_nat_target::low_new_fork)
6956 (s390_linux_nat_target::stopped_by_watchpoint)
6957 (s390_linux_nat_target::low_prepare_to_resume)
6958 (s390_linux_nat_target::insert_watchpoint)
6959 (s390_linux_nat_target::insert_hw_breakpoint)
6960 (s390_linux_nat_target::remove_watchpoint)
6961 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6962
6963 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6964
6965 * aarch64-fbsd-nat.c: Include regcache.h.
6966 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6967 argument.
6968 (aarch64_fbsd_nat_target::fetch_registers)
6969 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6970 variable.
6971 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6972
6973 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6974
6975 * fbsd-nat.c: Include gdbarch.h.
6976
6977 2019-07-15 Tom Tromey <tromey@adacore.com>
6978
6979 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6980
6981 2019-07-15 Tom Tromey <tromey@adacore.com>
6982
6983 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6984 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6985 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6986 * cli-out.c (cli_ui_out::do_field_int): New method.
6987 * ui-out.c (ui_out::field_unsigned): New method.
6988 * symfile.c (generic_load): Use field_unsigned.
6989 (print_transfer_performance): Likewise.
6990 * record-btrace.c (ui_out_field_uint): Remove.
6991 (btrace_call_history_insn_range, btrace_call_history): Use
6992 field_unsigned.
6993 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6994 field_unsigned.
6995 * ui-out.h (class ui_out) <field_unsigned>: New method.
6996 <do_field_unsigned>: Likewise.
6997
6998 2019-07-15 Tom Tromey <tromey@adacore.com>
6999
7000 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7001 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7002 * target.c (flash_erase_command): Use field_string.
7003 * infrun.c (print_signal_received_reason): Use field_string.
7004 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7005 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7006 field_string.
7007 * ada-tasks.c (print_ada_task_info): Use field_string.
7008
7009 2019-07-15 Tom Tromey <tromey@adacore.com>
7010
7011 * target.c (flash_erase_command): Use field_core_addr.
7012 * symfile.c (generic_load): Use field_core_addr.
7013 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7014 Use field_core_addr.
7015 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7016 field_core_addr.
7017
7018 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7019
7020 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7021 value if its desired type is smaller than a CORE_ADDR and signed.
7022
7023 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7024
7025 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7026 of changes to field names, and use new is_reference field to
7027 decide if a property is a reference or not.
7028 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7029 field.
7030 (struct dwarf2_property_baton): Update header comment, rename
7031 'referenced_type' to 'property_type' and update comments.
7032 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7033 default property type, store in property baton, update to take
7034 accound of renamed field.
7035 (read_func_scope): Update call to attr_to_dynamic_prop.
7036 (read_array_type): Likewise.
7037 (dwarf2_per_cu_addr_sized_int_type): New function.
7038 (read_subrange_index_type): Move type finding code to
7039 dwarf2_per_cu_addr_sized_int_type.
7040 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7041 (dwarf2_per_cu_addr_type): New function.
7042 (set_die_type): Update calls to attr_to_dynamic_prop.
7043
7044 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * dwarf2read.c (read_subrange_index_type): New function.
7047 (read_subrange_type): Move code into new function and call it.
7048 * gdbtypes.c (create_range_type): Add some asserts.
7049
7050 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7051
7052 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7053 update return statements.
7054 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7055 declaration, and update comment to match.
7056 * gdbtypes.c (resolve_dynamic_array): Update call to
7057 dwarf2_evaluate_property to match new return type.
7058
7059 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7060
7061 * valarith.c (value_subscripted_rvalue): Change lowerbound
7062 parameter type from int to LONGEST.
7063 * value.h (value_subscripted_rvalue): Likewise in declaration.
7064
7065 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * cli/cli-utils.c (info_print_command_completer): New function.
7068 * cli/cli-utils.h: Add 'completer.h' include, and forward
7069 declaration for 'struct cmd_list_element'.
7070 (info_print_command_completer): Declare.
7071 * stack.c (_initialize_stack): Add completer for 'info locals' and
7072 'info args'.
7073 * symtab.c (_initialize_symtab): Add completer for 'info
7074 variables' and 'info functions'.
7075 * NEWS: Mention completion for additional info commands.
7076
7077 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7078
7079 * cli/cli-utils.c (extract_info_print_args): Delete.
7080 (extract_arg_maybe_quoted): Delete.
7081 (info_print_options_defs): New variable.
7082 (make_info_print_options_def_group): New function.
7083 (extract_info_print_options): Define new function.
7084 * cli/cli-utils.h (extract_info_print_args): Delete.
7085 (struct info_print_options): New structure.
7086 (extract_info_print_options): Declare new function.
7087 * stack.c (info_locals_command): Update to use new
7088 extract_info_print_options, also add a header comment.
7089 (info_args_command): Likewise.
7090 * symtab.c (info_variables_command): Likewise.
7091 (info_functions_command): Likewise.
7092
7093 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7094
7095 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7096 to extract string arguments.
7097 * common/common-utils.c (extract_string_maybe_quoted): New function.
7098 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7099
7100 2019-07-11 Tom Tromey <tromey@adacore.com>
7101
7102 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7103 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7104 * top.h (gdbinit): Don't declare.
7105 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7106 into...
7107 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7108 * top.c (gdb_init): Don't call init_cli_cmds.
7109 (gdbinit): Remove.
7110 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7111
7112 2019-07-11 Tom Tromey <tromey@adacore.com>
7113
7114 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7115 after it has been moved.
7116
7117 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7118
7119 * valops.c (value_must_coerce_to_target): Change return type to
7120 bool.
7121 * value.h (value_must_coerce_to_target): Likewise.
7122
7123 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7124
7125 * breakpoint.c (is_hardware_watchpoint): Remove
7126 forward-declaration.
7127 (is_masked_watchpoint): Change return type to bool.
7128 (is_tracepoint): Likewise.
7129 (is_breakpoint): Likewise.
7130 (is_hardware_watchpoint): Likewise.
7131 (is_watchpoint): Likewise.
7132 (is_no_memory_software_watchpoint): Likewise.
7133 (is_catchpoint): Likewise.
7134 (breakpoint_1): Make FILTER parameter's return type bool.
7135 is_masked_watchpoint): Change return type to bool.
7136 (save_breakpoints): Make FILTER parameter's return type bool.
7137 * breakpoint.h (is_breakpoint): Change return type to bool.
7138 (is_watchpoint): Likewise.
7139 (is_catchpoint): Likewise.
7140 (is_tracepoint): Likewise.
7141
7142 2019-07-10 Tom Tromey <tom@tromey.com>
7143
7144 * defs.h: Don't include gdbarch.h.
7145 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7146 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7147 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7148 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7149 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7150 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7151 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7152 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7153 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7154 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7155 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7156 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7157 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7158 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7159 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7160 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7161 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7162 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7163 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7164 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7165 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7166 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7167 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7168 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7169 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7170 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7171 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7172
7173 2019-07-10 Tom Tromey <tromey@adacore.com>
7174
7175 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7176 * breakpoint.c (init_ada_exception_breakpoint): Register as
7177 bp_catchpoint.
7178 (print_one_breakpoint_location, print_one_breakpoint): Use
7179 is_ada_exception_catchpoint.
7180 * ada-lang.c (class ada_catchpoint_location): Pass
7181 bp_loc_software_breakpoint to bp_location constructor.
7182 (is_ada_exception_catchpoint): New function.
7183
7184 2019-07-10 Tom Tromey <tromey@adacore.com>
7185
7186 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7187 VEC.
7188 (struct arm_exidx_entry): New method operator<.
7189 (struct arm_exidx_data) <section_maps>: Change type.
7190 (arm_exidx_data_free): Remove.
7191 (arm_exidx_data_key): Change type. Move lower.
7192 (arm_exidx_new_objfile): Update.
7193 (arm_compare_exidx_entries): Remove.
7194 (arm_find_exidx_entry, _initialize_arm_tdep)
7195
7196 2019-07-10 Tom Tromey <tromey@adacore.com>
7197
7198 * solib-spu.c (ocl_program_data_key): Change type.
7199 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7200 Update.
7201
7202 2019-07-10 Tom Tromey <tromey@adacore.com>
7203
7204 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7205 (struct solib_aix_inferior_data) <library_list>: Change type.
7206 (solib_aix_inferior_data_handle): Change type.
7207 (get_solib_aix_inferior_data): Update.
7208 (solib_aix_free_library_list): Remove.
7209 (library_list_start_library): Update.
7210 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7211 return type.
7212 (solib_aix_get_library_list)
7213 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7214 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7215
7216 2019-07-10 Tom Tromey <tromey@adacore.com>
7217
7218 * solib-dsbt.c (struct dsbt_info): Add initializers.
7219 (solib_dsbt_pspace_data): Change type.
7220 (dsbt_pspace_data_cleanup): Remove.
7221 (get_dsbt_info, _initialize_dsbt_solib): Update.
7222
7223 2019-07-10 Tom Tromey <tromey@adacore.com>
7224
7225 * spu-tdep.c (spu_overlay_data): Change type.
7226 (spu_get_overlay_table, spu_overlay_new_objfile)
7227 (_initialize_spu_tdep): Update.
7228
7229 2019-07-10 Tom Tromey <tromey@adacore.com>
7230
7231 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7232 destructor.
7233 (dbx_objfile_data_key): Change type and declare later.
7234 (DBX_SYMFILE_INFO): Rewrite.
7235 * dbxread.c (dbx_objfile_data_key): Change type.
7236 (dbx_symfile_init): Update.
7237 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7238 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7239 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7240
7241 2019-07-10 Tom Tromey <tromey@adacore.com>
7242
7243 * jit.c (jit_program_space_key): Change type. Move lower.
7244 (get_jit_program_space_data): Update.
7245 (jit_program_space_data_cleanup): Remove.
7246 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7247 Update.
7248 (struct jit_program_space_data): Add initializers.
7249
7250 2019-07-10 Tom Tromey <tromey@adacore.com>
7251
7252 * solib-darwin.c (struct darwin_info): Add initializers.
7253 (solib_darwin_pspace_data): Change type.
7254 (darwin_pspace_data_cleanup): Remove.
7255 (get_darwin_info, _initialize_darwin_solib): Update.
7256
7257 2019-07-10 Tom Tromey <tromey@adacore.com>
7258
7259 * remote-sim.c (struct sim_inferior_data): Add initializers,
7260 constructor, and destructor.
7261 (sim_inferior_data_key): Change type. Move lower.
7262 (check_for_duplicate_sim_descriptor): Update.
7263 (get_sim_inferior_data): Use new. Update.
7264 (~sim_inferior_data_cleanup): Rename from
7265 sim_inferior_data_cleanup. Simplify.
7266 (gdbsim_close_inferior, simulator_command)
7267 (sim_command_completer, _initialize_remote_sim): Update.
7268 (next_pid, INITIAL_PID): Move earlier.
7269
7270 2019-07-10 Tom Tromey <tromey@adacore.com>
7271
7272 * python/python-internal.h (create_thread_object): Return
7273 gdbpy_ref.
7274 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7275 * python/py-inferior.c (struct threadlist_entry): Add
7276 constructor.
7277 <thread_obj>: Now a gdbpy_ref.
7278 (thread_to_thread_object): Update.
7279 (add_thread_object): Use new.
7280 (delete_thread_object): Use delete.
7281 (infpy_threads): Update.
7282 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7283 GIL.
7284
7285 2019-07-10 Tom Tromey <tromey@adacore.com>
7286
7287 * valops.c (value_cast): Specialize error message for Ada.
7288
7289 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7290
7291 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7292
7293 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7294
7295 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7296 bpstat_should_step): Return bool, adjust comments.
7297 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7298 bpstat_should_step): Likewise.
7299
7300 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7301
7302 * features/Makefile: Use feature target descriptions for Arm.
7303 * features/arm/arm-core.c: Generate new file.
7304 * features/arm/arm-fpa.c: Likewise.
7305 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7306 * features/arm/arm-m-profile.c: Likewise.
7307 * features/arm/arm-vfpv2.c: Likewise.
7308 * features/arm/arm-vfpv3.c: Likewise.
7309 * features/arm/xscale-iwmmxt.c: Likewise.
7310 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7311
7312 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7313
7314 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7315 ptrace earlier.
7316
7317 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7318
7319 * features/aarch64-pauth.c: Regenerate.
7320
7321 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7322
7323 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7324 bool.
7325 (bpstat_what): Use false instead of 0.
7326
7327 2019-07-09 Pedro Alves <palves@redhat.com>
7328
7329 * break-catch-throw.c (is_exception_catchpoint): New.
7330 * breakpoint.c (print_one_breakpoint_location): New parameter
7331 'raw_loc'. Handle it. Use
7332 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7333 looking at the breakpoint's type.
7334 (print_one_breakpoint): If handling "maint info breakpoints", also
7335 print locations of exception catchpoints.
7336 * breakpoint.h (is_exception_catchpoint): Declare.
7337
7338 2019-07-09 Pedro Alves <palves@redhat.com>
7339
7340 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7341 "addr" field.
7342 (allocate_location_exception_catchpoint): New.
7343 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7344 (initialize_throw_catchpoint_ops): Install
7345 allocate_location_exception_catchpoint as allocate_location
7346 method.
7347 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7348 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7349 bp_loc_other.
7350 (breakpoint_address_is_meaningful): Delete.
7351 (bl_address_is_meaningful): New.
7352 (breakpoint_locations_match): Adjust comment.
7353 (bp_location_from_bp_type): New, factored out of...
7354 (bp_location::bp_location(breakpoint *)): ... this.
7355 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7356 factored out of...
7357 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7358 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7359 breakpoint_address_is_meaningful.
7360 (bp_locations_compare): Adjust comment.
7361 (update_global_location_list): Use bl_address_is_meaningful
7362 instead of breakpoint_address_is_meaningful.
7363 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7364 explicit.
7365 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7366 * python/py-breakpoint.c (bppy_get_location): No longer check
7367 whether location is null.
7368
7369 2019-07-09 Pedro Alves <palves@redhat.com>
7370
7371 PR c++/15468
7372 * breakpoint.c (print_one_breakpoint_location): Remove
7373 single-location assert.
7374
7375 2019-07-09 Tom Tromey <tom@tromey.com>
7376
7377 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7378 * configure: Rebuild.
7379 * configure.ac: Change common to gdbsupport.
7380 * gdbsupport: Rename from common.
7381 * acinclude.m4: Change common to gdbsupport.
7382 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7383 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7384 gdbsupport.
7385 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7386 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7387 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7388 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7389 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7390 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7391 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7392 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7393 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7394 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7395 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7396 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7397 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7398 coff-pe-read.c, command.h, compile/compile-c-support.c,
7399 compile/compile-c.h, compile/compile-cplus-symbols.c,
7400 compile/compile-cplus-types.c, compile/compile-cplus.h,
7401 compile/compile-loc2c.c, compile/compile.c, completer.c,
7402 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7403 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7404 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7405 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7406 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7407 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7408 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7409 features/aarch64-core.c, features/aarch64-fpu.c,
7410 features/aarch64-pauth.c, features/aarch64-sve.c,
7411 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7412 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7413 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7414 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7415 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7416 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7417 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7418 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7419 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7420 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7421 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7422 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7423 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7424 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7425 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7426 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7427 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7428 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7429 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7430 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7431 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7432 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7433 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7434 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7435 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7436 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7437 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7438 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7439 minsyms.c, mips-linux-tdep.c, namespace.h,
7440 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7441 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7442 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7443 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7444 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7445 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7446 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7447 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7448 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7449 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7450 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7451 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7452 procfs.c, producer.c, progspace.h, psymtab.h,
7453 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7454 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7455 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7456 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7457 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7458 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7459 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7460 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7461 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7462 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7463 target-memory.c, target.c, target.h, target/waitstatus.c,
7464 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7465 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7466 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7467 unittests/array-view-selftests.c,
7468 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7469 unittests/common-utils-selftests.c,
7470 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7471 unittests/format_pieces-selftests.c,
7472 unittests/function-view-selftests.c,
7473 unittests/lookup_name_info-selftests.c,
7474 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7475 unittests/mkdir-recursive-selftests.c,
7476 unittests/observable-selftests.c,
7477 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7478 unittests/parse-connection-spec-selftests.c,
7479 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7480 unittests/scoped_fd-selftests.c,
7481 unittests/scoped_mmap-selftests.c,
7482 unittests/scoped_restore-selftests.c,
7483 unittests/string_view-selftests.c, unittests/style-selftests.c,
7484 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7485 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7486 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7487 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7488 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7489 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7490
7491 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7492
7493 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7494 bool value.
7495 (decode_digits_ordinary): Set explicit_line field in sal.
7496 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7497 symtab_and_line that was set on an explicit line number in
7498 assembler code. Do always update the recorded symtab and line if
7499 we do skip the prologue.
7500
7501 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7502
7503 * breakpoint.c (set_breakpoint_location_function): Remove
7504 explicit_loc parameter.
7505 (momentary_breakpoint_from_master): Update call to
7506 set_breakpoint_location_function.
7507 (add_location_to_breakpoint): Likewise.
7508
7509 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7510
7511 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7512 required features based on default bfd type when no specific bfd
7513 is present.
7514
7515 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7516
7517 * NEWS: Mention that GDB printf and eval commands can now print
7518 C-style and Ada-style convenience var strings without
7519 calling the inferior.
7520 * printcmd.c (printf_c_string): Locally print GDB internal var
7521 instead of transiting via the inferior.
7522 (printf_wide_c_string): Likewise.
7523
7524 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7525
7526 PR breakpoints/25011
7527 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7528
7529 2019-07-04 Tom Tromey <tom@tromey.com>
7530
7531 PR tui/24724:
7532 * tui/tui-winsource.c (tui_clear_source_content): Update.
7533 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7534 (tui_update_breakpoint_info): Update.
7535 (tui_set_exec_info_content): Update.
7536 * tui/tui-source.c (tui_set_source_content_nil): Update.
7537 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7538 has_break.
7539 * tui/tui-data.h (enum tui_bp_flag): New.
7540 (tui_bp_flags): New enum flags type.
7541 (struct tui_source_element) <break_mode>: Change type. Rename
7542 from has_break.
7543 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7544 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7545 constants.
7546 * tui/tui-winsource.h: Fix comment.
7547
7548 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7549
7550 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7551 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7552 (store_fpregs_to_thread)
7553 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7554 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7555 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7556 (IWMMXT_REGS_SIZE): Add define.
7557 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7558 (fetch_vfp_regs, store_vfp_regs)
7559 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7560 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7561
7562 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7563
7564 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7565 defines.
7566 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7567 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7568 (ARM_INT_REGISTER_SIZE): ...to this.
7569 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7570 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7571 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7572 (arm_linux_collect_gregset, supply_nwfpe_register)
7573 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7574 defines.
7575 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7576 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7577 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7578 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7579 (arm_return_in_memory, arm_store_return_value)
7580 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7581 (arm_record_ld_st_multiple): Likewise.
7582 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7583 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7584
7585 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7586
7587 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7588 AARCH64_DISPLACED_MODIFIED_INSNS.
7589 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7590 (aarch64_displaced_step_copy_insn): Likewise.
7591 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7592 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7593 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7594 ARM_DISPLACED_MODIFIED_INSNS.
7595 * arm-tdep.c (arm_gdbarch_init): Likewise.
7596 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7597 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7598 (struct arm_displaced_step_closure): Use
7599 ARM_DISPLACED_MODIFIED_INSNS.
7600
7601 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7602
7603 * features/Makefile: Remove unused xml files.
7604 * features/aarch64.xml: Remove.
7605 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7606 * features/i386/amd64-avx-avx512.xml: Remove.
7607 * features/i386/amd64-avx-linux.xml: Remove.
7608 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7609 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7610 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7611 * features/i386/amd64-avx-mpx.xml: Remove.
7612 * features/i386/amd64-avx.xml: Remove.
7613 * features/i386/amd64-linux.xml: Remove.
7614 * features/i386/amd64-mpx-linux.xml: Remove.
7615 * features/i386/amd64-mpx.xml: Remove.
7616 * features/i386/amd64.xml: Remove.
7617 * features/i386/i386-avx-avx512-linux.xml: Remove.
7618 * features/i386/i386-avx-avx512.xml: Remove.
7619 * features/i386/i386-avx-linux.xml: Remove.
7620 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7621 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7622 * features/i386/i386-avx-mpx-linux.xml: Remove.
7623 * features/i386/i386-avx-mpx.xml: Remove.
7624 * features/i386/i386-avx.xml: Remove.
7625 * features/i386/i386-linux.xml: Remove.
7626 * features/i386/i386-mmx-linux.xml: Remove.
7627 * features/i386/i386-mmx.xml: Remove.
7628 * features/i386/i386-mpx-linux.xml: Remove.
7629 * features/i386/i386-mpx.xml: Remove.
7630 * features/i386/i386.xml: Remove.
7631 * features/i386/x32-avx-avx512-linux.xml: Remove.
7632 * features/i386/x32-avx-linux.xml: Remove.
7633 * features/i386/x32-linux.xml: Remove.
7634
7635 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7636
7637 * regformats/aarch64.dat: Remove.
7638 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7639 * regformats/i386/amd64-avx-linux.dat: Remove.
7640 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7641 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7642 * regformats/i386/amd64-linux.dat: Remove.
7643 * regformats/i386/amd64-mpx-linux.dat: Remove.
7644 * regformats/i386/amd64.dat: Remove.
7645 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7646 * regformats/i386/i386-avx-linux.dat: Remove.
7647 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7648 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7649 * regformats/i386/i386-linux.dat: Remove.
7650 * regformats/i386/i386-mmx-linux.dat: Remove.
7651 * regformats/i386/i386-mpx-linux.dat: Remove.
7652 * regformats/i386/i386.dat: Remove.
7653 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7654 * regformats/i386/x32-avx-linux.dat: Remove.
7655 * regformats/i386/x32-linux.dat: Remove.
7656
7657 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7658
7659 * aarch64-tdep.c: Remove xml self tests.
7660 * amd64-linux-tdep.c: Likewise.
7661 * amd64-tdep.c: Likewise.
7662 * i386-linux-tdep.c: Likewise.
7663 * i386-tdep.c: Likewise.
7664
7665 2019-07-03 Pedro Alves <palves@redhat.com>
7666
7667 PR cli/24732
7668 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7669 (pipe_cmd_option_defs): New.
7670 (make_pipe_cmd_options_def_group): New.
7671 (pipe_command): Use gdb::option::process_options.
7672 (pipe_command_completer): New function.
7673 (_initialize_cli_cmds): Install completer for "pipe" command.
7674
7675 2019-07-03 Pedro Alves <palves@redhat.com>
7676
7677 * cli/cli-option.c (union option_value) <string>: New field.
7678 (struct option_def_and_value): Add ctor, move ctor, dtor and
7679 use DISABLE_COPY_AND_ASSIGN.
7680 (option_def_and_value::clear_value): New.
7681 (parse_option, save_option_value_in_ctx, get_val_type_str)
7682 (add_setshow_cmds_for_options): Handle var_string.
7683 * cli-option.h (union option_def::var_address) <string>: New
7684 field.
7685 (struct string_option_def): New.
7686 * maint-test-options.c (struct test_options_opts): Add default
7687 ctor and use DISABLE_COPY_AND_ASSIGN.
7688 <string_opt>: New field.
7689 (test_options_opts::~test_options_opts): New.
7690 (test_options_opts::dump): Also dump "-string".
7691 (test_options_option_defs): Install "string.
7692
7693 2019-07-03 Pedro Alves <palves@redhat.com>
7694
7695 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7696 option_value with a null enumeration.
7697 (complete_options): Save the option values in the context.
7698 (save_option_value_in_ctx): New, factored out from ...
7699 (process_options): ... here.
7700 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7701 of the function.
7702 * maint-test-options.c (test_options_opts::dump): New, factored
7703 out from ...
7704 (maintenance_test_options_command_mode): ... here.
7705 (maintenance_test_options_command_completion_result): Delete.
7706 (maintenance_test_options_command_completion_text): Update
7707 comment.
7708 (maintenance_show_test_options_completion_result): Change
7709 prototype. Just print
7710 maintenance_test_options_command_completion_text.
7711 (save_completion_result): New.
7712 (maintenance_test_options_completer_mode): Pass options context to
7713 complete_options, and then save a dump.
7714 (_initialize_maint_test_options): Use add_cmd to install "maint
7715 show test-options-completion-result".
7716
7717 2019-07-03 Pedro Alves <palves@redhat.com>
7718
7719 * NEWS (New commands): Mention "with" and "maint with".
7720 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7721 (with_command, with_command_completer): New.
7722 (pipe_command): Adjust to new repeat_previous
7723 interface.
7724 (_initialize_cli_cmds): Install the "with" command and its "w"
7725 alias.
7726 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7727 declarations.
7728 * cli/cli-setshow.c (parse_cli_var_uinteger)
7729 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7730 argument strings for all var_types.
7731 (get_setshow_command_value_string): New, factored out from ...
7732 (do_show_command): ... this.
7733 * cli/cli-setshow.h: Include <string>.
7734 (get_setshow_command_value_string): Declare.
7735 * command.h (repeat_previous): Now returns const char *. Adjust
7736 comment.
7737 * maint.c: Include "cli/cli-cmds.h".
7738 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7739 (_initialize_maint_cmds): Register the "maintenance with" command.
7740 * top.c (repeat_previous): Move bits from pipe_command here:
7741 Return the saved command line, if any; error out if there's no
7742 command to relaunch.
7743
7744 2019-07-03 Pedro Alves <palves@redhat.com>
7745
7746 * NEWS (New commands): Mention "maint set/show test-settings"
7747 instead of "maint test-settings".
7748 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7749 (maintenance_test_settings_set_list): Rename to ...
7750 (maintenance_set_test_settings_list): ... this.
7751 (maintenance_test_settings_show_list): Rename to ...
7752 (maintenance_show_test_settings_list): ... this.
7753 (maintenance_test_settings_cmd): Delete.
7754 (maintenance_test_settings_set_cmd): ...
7755 (maintenance_set_test_settings_cmd): ... this.
7756 (maintenance_test_settings_show_cmd): ...
7757 (maintenance_show_test_settings_cmd): ... this.
7758 (maintenance_test_settings_show_value_cmd):
7759 (maintenance_show_test_settings_value_cmd): ... this.
7760 (_initialize_maint_test_settings): No longer install the "maint
7761 test-settings" prefix command. Rename "maint test-settings set"
7762 to "maint set test-settings", and "maint test-settings show" to
7763 "maint show test-settings". Adjust all subcommands.
7764
7765 2019-07-03 Pedro Alves <palves@redhat.com>
7766
7767 * maint-test-settings.c: Fix file's intro comment. Replace all
7768 references to "test-options" with references to "test-settings",
7769 in comments.
7770
7771 2019-07-03 Pedro Alves <palves@redhat.com>
7772
7773 * maint-test-settings.c (maintenance_test_settings_xxx)
7774 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7775 New.
7776 (maintenance_test_settings_enums): Use them.
7777 (maintenance_test_settings_enum): Default to
7778 maintenance_test_settings_xxx.
7779 (_initialize_maint_test_settings): Initialize
7780 MAINTENANCE_TEST_SETTINGS_FILENAME.
7781
7782 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7783
7784 * breakpoint.h (remove_breakpoints_inf): Change return type to
7785 void, move function documentation here.
7786 * breakpoint.c (remove_breakpoints_inf): Change return type to
7787 void, move function documentation to header.
7788
7789 2019-07-02 Pedro Alves <palves@redhat.com>
7790
7791 * NEWS (Completion improvements): Mention "info threads".
7792 * thread.c (struct info_threads_opts, info_threads_option_defs)
7793 (make_info_threads_options_def_group): New.
7794 (info_threads_command): Use gdb::option::process_options.
7795 (info_threads_command_completer): New.
7796 (_initialize_thread): Use gdb::option::build_help to build the
7797 help text for "info threads".
7798
7799 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7800
7801 * defs.h (generic_load): Move from here...
7802 * symfile.h (generic_load): ... to here. Rename name parameter
7803 to args.
7804 * symfile.c (generic_load): Add comment.
7805
7806 2019-07-01 Tom Tromey <tromey@adacore.com>
7807
7808 * dwarf2read.c
7809 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7810 declaration of without_params. Fix formatting.
7811
7812 2019-07-01 Tom Tromey <tromey@adacore.com>
7813
7814 * ada-exp.y (find_primitive_type): Update.
7815 * ada-lang.h (ada_lookup_symbol): Update.
7816 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7817 parameter.
7818 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7819
7820 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7821
7822 PR breakpoints/24541
7823 * gdbarch.c: Regenerate.
7824 * gdbarch.h: Regenerate.
7825 * gdbarch.sh: Add 'stap_adjust_register'.
7826 * i386-tdep.c: Include '<unordered_set>'.
7827 (i386_stap_adjust_register): New function.
7828 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7829 * stap-probe.c (stap_parse_register_operand): Call
7830 'gdbarch_stap_adjust_register'.
7831
7832 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7833
7834 PR python/24742
7835 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7836 * python/python.c (do_start_initialization): Use 'xmalloc'
7837 instead of 'PyMem_Malloc'.
7838
7839 2019-06-28 Tom Tromey <tromey@adacore.com>
7840
7841 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7842 for Ada.
7843
7844 2019-06-27 Tom Tromey <tromey@adacore.com>
7845
7846 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7847 objfile_key.
7848 (arm_find_mapping_symbol, arm_record_special_symbol)
7849 (_initialize_arm_tdep): Update.
7850 (arm_objfile_data_free): Remove.
7851
7852 2019-06-27 Tom Tromey <tromey@adacore.com>
7853
7854 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7855 to cp_print_static_field.
7856
7857 2019-06-26 Tom Tromey <tromey@adacore.com>
7858
7859 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7860 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7861 declare.
7862
7863 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7864
7865 * features/aarch64-core.c (create_feature_aarch64_core):
7866 Regenerate.
7867 * features/aarch64-core.xml: Add cpsr flags.
7868
7869 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7870
7871 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7872 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7873
7874 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7875
7876 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7877 field.
7878 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7879 use.
7880 (arm_record_special_symbol): Don't insert new symbol in sorted
7881 position, push it at the end.
7882
7883 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7884
7885 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7886 (arm_mapping_symbol_s): Remove.
7887 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7888 (arm_mapping_symbol_vec): New typedef.
7889 (struct arm_per_objfile): Add constructor.
7890 <section_maps>: Change type to
7891 std::unique_ptr<arm_mapping_symbol_vec[]>.
7892 (arm_compare_mapping_symbols): Remove.
7893 (arm_find_mapping_symbol): Adjust to section_maps type change.
7894 (arm_objfile_data_free): Call delete on arm_per_objfile.
7895 (arm_record_special_symbol): Adjust to section_maps type change.
7896 Allocate arm_per_objfile with new.
7897
7898 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7899
7900 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7901 with the command prefix.
7902
7903 2019-06-25 Tom Tromey <tom@tromey.com>
7904
7905 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7906 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7907
7908 2019-06-25 Tom Tromey <tom@tromey.com>
7909
7910 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7911 type.
7912 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7913 protected.
7914
7915 2019-06-25 Tom Tromey <tom@tromey.com>
7916
7917 * tui/tui-winsource.c
7918 (tui_source_window_base::set_is_exec_point_at): Add check against
7919 LOA_ADDRESS.
7920
7921 2019-06-25 Tom Tromey <tom@tromey.com>
7922
7923 * tui/tui-source.c (tui_set_source_content): Don't check before
7924 xfree.
7925 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7926
7927 2019-06-25 Tom Tromey <tom@tromey.com>
7928
7929 * tui/tui-winsource.h (tui_update_source_window_as_is)
7930 (tui_alloc_source_buffer, tui_line_is_displayed)
7931 (tui_addr_is_displayed): Change type of win_info.
7932 * tui/tui-winsource.c (tui_update_source_window_as_is)
7933 (tui_clear_source_content, tui_show_source_line)
7934 (tui_show_source_content, tui_source_window_base::refill)
7935 (tui_source_window_base::set_is_exec_point_at)
7936 (tui_source_window_base::set_is_exec_point_at)
7937 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7938 (tui_alloc_source_buffer, tui_line_is_displayed)
7939 (tui_addr_is_displayed): Change type of win_info. Update.
7940 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7941 (tui_source_window_base::do_make_visible_with_new_height):
7942 Update.
7943 * tui/tui-source.c (tui_set_source_content)
7944 (tui_set_source_content_nil)
7945 (tui_source_window::do_scroll_vertical): Update.
7946 * tui/tui-layout.c (show_layout): Update.
7947 * tui/tui-disasm.c (tui_set_disassem_content)
7948 (tui_disasm_window::do_scroll_vertical): Update.
7949 * tui/tui-data.h (tui_win_content): Remove.
7950 (struct tui_gen_win_info) <content, content_size>: Remove.
7951 (struct tui_source_element): Add initializers and destructor.
7952 (union tui_which_element, struct tui_win_element): Remove.
7953 (struct tui_source_window_base) <content>: New field.
7954 (struct tui_data_window): Remove destructor.
7955 (tui_alloc_content, tui_free_win_content)
7956 (tui_free_all_source_wins_content): Don't declare.
7957 * tui/tui-data.c (tui_initialize_static_data): Update.
7958 (init_content_element, tui_alloc_content): Remove.
7959 (~tui_gen_win_info): Update.
7960 (~tui_data_window, tui_free_all_source_wins_content)
7961 (tui_free_win_content, free_content, free_content_elements):
7962 Remove.
7963
7964 2019-06-25 Tom Tromey <tom@tromey.com>
7965
7966 * tui/tui-winsource.h (tui_clear_source_content)
7967 (tui_erase_source_content, tui_show_source_content): Change type
7968 of win_info.
7969 * tui/tui-winsource.c (tui_clear_source_content)
7970 (tui_erase_source_content, tui_show_source_content): Change type
7971 of win_info.
7972 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7973 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7974 win_info.
7975 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7976 win_info.
7977 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7978
7979 2019-06-25 Tom Tromey <tom@tromey.com>
7980
7981 * tui/tui-winsource.c (tui_clear_source_content)
7982 (tui_source_window_base::set_is_exec_point_at): Update.
7983 * tui/tui-source.c (tui_set_source_content_nil): Update.
7984 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7985 a bool.
7986 * tui/tui-data.c (init_content_element): Update.
7987
7988 2019-06-25 Tom Tromey <tom@tromey.com>
7989
7990 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7991 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7992 * tui/tui-layout.c (init_and_make_win): Update.
7993 * tui/tui.h (enum tui_win_type): Update.
7994 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7995 tui_win_is_auxillary.
7996 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7997 tui_win_is_auxillary.
7998
7999 2019-06-25 Tom Tromey <tom@tromey.com>
8000
8001 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8002 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8003 (tui_delete_data_content_windows, tui_display_all_data)
8004 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8005 Update.
8006 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8007 * tui/tui-regs.c (tui_last_regs_line_no)
8008 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8009 (tui_show_registers): Update.
8010 (tui_show_register_group): Return void. Update.
8011 (tui_display_registers_from, tui_display_reg_element_at_line)
8012 (tui_display_registers_from_line, tui_check_register_values):
8013 Update.
8014 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8015 member.
8016 (struct tui_data_window) <regs_content>: Now a std::vector.
8017 <regs_content_count>: Remove.
8018 (tui_add_content_elements, tui_free_data_content): Don't declare.
8019 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8020 (init_content_element): Remove DATA_WIN case. Add assert.
8021 (tui_add_content_elements): Remove.
8022 (tui_data_window): Update.
8023 (tui_free_data_content): Remove.
8024 (free_content_elements): Remove DATA_WIN case.
8025
8026 2019-06-25 Tom Tromey <tom@tromey.com>
8027
8028 * tui/tui-data.c (tui_data_item_window): Update.
8029 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8030 * tui/tui-windata.c (tui_display_all_data)
8031 (tui_display_data_from_line): Update.
8032 (tui_check_data_values): Remove.
8033 * tui/tui-regs.c (tui_show_register_group)
8034 (tui_display_reg_element_at_line): Update.
8035 * tui/tui-hooks.c (tui_register_changed)
8036 (tui_refresh_frame_and_register_information): Call
8037 tui_check_register_values.
8038 * tui/tui-data.h (struct tui_data_window) <data_content,
8039 data_content_count, data_type>: Remove.
8040 (enum tui_data_type): Remove.
8041
8042 * tui/tui-data.c (tui_data_window::clear_detail)
8043 (~tui_data_window): Update.
8044
8045 2019-06-25 Tom Tromey <tom@tromey.com>
8046
8047 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8048 declare.
8049 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8050 Rename from tui_first_data_item_displayed. Update.
8051 (tui_data_window::refresh_all)
8052 (tui_data_window::do_scroll_vertical): Update.
8053 * tui/tui-data.h (struct tui_data_window)
8054 <first_data_item_displayed>: Declare new method.
8055
8056 2019-06-25 Tom Tromey <tom@tromey.com>
8057
8058 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8059 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8060 contents...
8061 (tui_initialize_static_data): ...here.
8062
8063 2019-06-25 Tom Tromey <tom@tromey.com>
8064
8065 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8066 (tui_display_registers_from, tui_check_register_values): Update.
8067 (tui_display_register): Remove win_info parameter; update.
8068 (tui_get_register): Change type of parameters.
8069 * tui/tui-data.h (struct tui_data_element): Remove.
8070 (union tui_which_element) <data>: Remove.
8071 <data_window>: Change type.
8072 (struct tui_data_item_window): New.
8073 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8074 case. Add assert.
8075 (~tui_data_item_window): New destructor.
8076 (free_content_elements): Remove DATA_ITEM_WIN case.
8077
8078 2019-06-25 Tom Tromey <tom@tromey.com>
8079
8080 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8081 Remove.
8082
8083 2019-06-25 Tom Tromey <tom@tromey.com>
8084
8085 * tui/tui-data.h (struct tui_command_element): Remove.
8086 (union tui_which_element) <command>: Remove.
8087 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8088 assert.
8089 (free_content_elements): Remove CMD_WIN case.
8090
8091 2019-06-25 Tom Tromey <tom@tromey.com>
8092
8093 * tui/tui-layout.c (tui_set_layout): Update.
8094 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8095 * tui/tui-data.c (layout_def): Update.
8096
8097 2019-06-25 Tom Tromey <tom@tromey.com>
8098
8099 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8100 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8101 (tui_source_window_base::set_new_height): Update.
8102 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8103 Update.
8104 (tui_set_locator_fullname, tui_set_locator_info)
8105 (tui_show_frame_info): Update.
8106 * tui/tui-source.c (tui_set_source_content)
8107 (tui_source_is_displayed): Update.
8108 * tui/tui-layout.c (show_source_disasm_command, show_data)
8109 (show_source_or_disasm_and_command): Update.
8110 * tui/tui-disasm.c (tui_set_disassem_content)
8111 (tui_get_begin_asm_address): Update.
8112 * tui/tui-data.h (struct tui_locator_element): Remove.
8113 (union tui_which_element) <locator>: Remove.
8114 (struct tui_locator_window): New.
8115 (tui_locator_win_info_ptr): Change return type.
8116 * tui/tui-data.c (_locator): Change type.
8117 (tui_locator_win_info_ptr): Change return type.
8118 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8119 (tui_alloc_content): Add assert.
8120
8121 2019-06-25 Tom Tromey <tom@tromey.com>
8122
8123 * tui/tui-winsource.c
8124 (tui_exec_info_window::maybe_allocate_content): New method.
8125 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8126 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8127 (make_source_or_disasm_window): Add cast.
8128 * tui/tui-data.h (union tui_which_element) <simple_string>:
8129 Remove.
8130 (struct tui_source_info): New.
8131 (struct tui_source_window_base) <execution_info>: Change type.
8132 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8133 case, and add assert.
8134 (tui_alloc_content): Add assert.
8135
8136 2019-06-25 Tom Tromey <tom@tromey.com>
8137
8138 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8139 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8140 * tui/tui-data.c (tui_alloc_win_info): Remove.
8141
8142 2019-06-25 Tom Tromey <tom@tromey.com>
8143
8144 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8145 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8146 can_highlight.
8147
8148 2019-06-25 Tom Tromey <tom@tromey.com>
8149
8150 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8151 make_visible_with_new_height method.
8152 (tui_win_info::make_visible_with_new_height): New method.
8153 (tui_source_window_base::do_make_visible_with_new_height)
8154 (tui_data_window::do_make_visible_with_new_height)
8155 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8156 (make_visible_with_new_height): Remove.
8157 (tui_resize_all, tui_adjust_win_heights): Use
8158 make_visible_with_new_height method.
8159 * tui/tui-data.h (struct tui_win_info)
8160 <do_make_visible_with_new_height, make_visible_with_new_height>:
8161 New methods.
8162 (struct tui_source_window_base, struct tui_data_window)
8163 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8164 methods.
8165
8166 2019-06-25 Tom Tromey <tom@tromey.com>
8167
8168 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8169 method.
8170 (update_tab_width): Call update_tab_width method.
8171 * tui/tui-data.h (struct tui_win_info)
8172 (struct tui_source_window_base) <update_tab_width>: New methods.
8173
8174 2019-06-25 Tom Tromey <tom@tromey.com>
8175
8176 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8177 parameter.
8178 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8179 parameter.
8180 (tui_gen_win_info::make_visible): Update.
8181 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8182 parameter.
8183 * tui/tui-data.h (enum tui_box): New enum.
8184 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8185
8186 2019-06-25 Tom Tromey <tom@tromey.com>
8187
8188 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8189 init_and_make_win for EXEC_INFO_WIN.
8190 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8191 longer inline.
8192 (struct tui_win_info) <~tui_win_info>: Inline.
8193 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8194 Don't declare.
8195 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8196 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8197 Remove.
8198 (tui_initialize_static_data): Update.
8199 (~tui_gen_win_info): Handle more cleanup here.
8200 (~tui_source_window_base): Delete "execution_info".
8201 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8202
8203 2019-06-25 Tom Tromey <tom@tromey.com>
8204
8205 * tui/tui-layout.c (make_command_window): Don't set
8206 can_highlight.
8207 (show_source_disasm_command): Call the reset method.
8208 (show_data): Don't set can_highlight. Call the reset method.
8209 (tui_gen_win_info::reset): Rename from init_gen_win_info
8210 (init_and_make_win): Simplify. Return tui_gen_win_info.
8211 (show_source_or_disasm_and_command): Call the reset method.
8212 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8213 (struct tui_cmd_window): Set can_highlight.
8214
8215 2019-06-25 Tom Tromey <tom@tromey.com>
8216
8217 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8218 from make_visible.
8219 (tui_make_visible, tui_make_invisible): Rewrite.
8220 (tui_win_info::make_visible): Remove.
8221 (tui_source_window_base::make_visible): Update.
8222 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8223 method. Moved from...
8224 (struct tui_win_info) <make_visible>: ...here.
8225
8226 2019-06-25 Tom Tromey <tom@tromey.com>
8227
8228 * tui/tui-winsource.c
8229 (tui_source_window_base::do_scroll_horizontal): Remove direction
8230 parameter.
8231 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8232 direction parameter.
8233 * tui/tui-win.c (tui_win_info::forward_scroll)
8234 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8235 (tui_win_info::right_scroll): Update.
8236 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8237 direction parameter.
8238 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8239 direction parameter.
8240 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8241 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8242 Remove direction parameter.
8243 (struct tui_source_window_base, struct tui_source_window)
8244 (struct tui_disasm_window, struct tui_data_window)
8245 (struct tui_cmd_window): Update.
8246
8247 2019-06-25 Tom Tromey <tom@tromey.com>
8248
8249 * tui/tui-winsource.h (tui_set_exec_info_content)
8250 (tui_show_exec_info_content, tui_erase_exec_info_content)
8251 (tui_clear_exec_info_content, tui_update_exec_info): Change
8252 argument to tui_source_window_base.
8253 * tui/tui-winsource.c (tui_set_exec_info_content)
8254 (tui_show_exec_info_content, tui_erase_exec_info_content)
8255 (tui_clear_exec_info_content, tui_update_exec_info): Change
8256 argument to tui_source_window_base.
8257
8258 2019-06-25 Tom Tromey <tom@tromey.com>
8259
8260 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8261 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8262
8263 2019-06-25 Tom Tromey <tom@tromey.com>
8264
8265 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8266 check.
8267
8268 2019-06-25 Tom Tromey <tom@tromey.com>
8269
8270 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8271 type to void.
8272 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8273 type to void.
8274 * tui/tui-source.c (tui_set_source_content): Update.
8275 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8276
8277 2019-06-25 Tom Tromey <tom@tromey.com>
8278
8279 * tui/tui-win.c (window_name_completer, tui_set_focus)
8280 (tui_all_windows_info): Use name method.
8281 * tui/tui-data.h (struct tui_gen_win_info)
8282 (struct tui_source_window, struct tui_disasm_window)
8283 (struct tui_data_window, struct tui_cmd_window) <name>: New
8284 method.
8285 (tui_win_name): Don't declare.
8286 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8287 (tui_win_name): Remove.
8288
8289 2019-06-25 Tom Tromey <tom@tromey.com>
8290
8291 * tui/tui-winsource.h (tui_update_source_window)
8292 (tui_update_source_window_as_is): Change parameter type.
8293 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8294 to be a tui_source_window_base.
8295 (tui_update_source_window_as_is): Likewise.
8296 * tui/tui-win.c (make_visible_with_new_height): Update.
8297
8298 2019-06-25 Tom Tromey <tom@tromey.com>
8299
8300 * tui/tui-winsource.c (tui_erase_source_content)
8301 (tui_show_source_content, tui_show_exec_info_content)
8302 (tui_erase_exec_info_content): Use refresh_window method.
8303 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8304 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8305 from tui_refresh_win.
8306 (tui_data_window::refresh_window): New method.
8307 (tui_win_info::refresh, tui_source_window_base::refresh)
8308 (tui_refresh_all): Use refresh_window method.
8309 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8310 method.
8311 * tui/tui-regs.c (tui_display_register): Call refresh_window
8312 method.
8313 * tui/tui-layout.c (show_source_disasm_command)
8314 (show_source_or_disasm_and_command): Call refresh_window method.
8315 * tui/tui-data.h (struct tui_gen_win_info)
8316 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8317 New method.
8318
8319 2019-06-25 Tom Tromey <tom@tromey.com>
8320
8321 * tui/tui.c (tui_rl_other_window, tui_enable)
8322 (tui_is_window_visible, tui_get_command_dimension): Update.
8323 * tui/tui-winsource.c (tui_update_source_window_as_is)
8324 (tui_clear_source_content, tui_erase_source_content)
8325 (tui_show_source_line, tui_source_window_base::refill)
8326 (tui_source_window_base::do_scroll_horizontal)
8327 (tui_source_window_base::set_is_exec_point_at)
8328 (tui_update_breakpoint_info, tui_set_exec_info_content)
8329 (tui_alloc_source_buffer, tui_line_is_displayed)
8330 (tui_addr_is_displayed): Update.
8331 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8332 (tui_check_and_display_highlight_if_needed)
8333 (tui_win_info::make_visible, tui_win_info::refresh)
8334 (tui_refresh_all): Update.
8335 * tui/tui-windata.c (tui_first_data_item_displayed)
8336 (tui_delete_data_content_windows, tui_erase_data_content)
8337 (tui_display_all_data, tui_data_window::refresh_all)
8338 (tui_check_data_values): Update.
8339 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8340 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8341 (tui_win_info::backward_scroll, tui_refresh_all_win)
8342 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8343 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8344 (tui_source_window_base::set_new_height)
8345 (tui_data_window::set_new_height)
8346 (make_invisible_and_set_new_height)
8347 (make_visible_with_new_height, new_height_ok)
8348 (parse_scrolling_args): Update.
8349 * tui/tui-stack.c (tui_show_frame_info): Update.
8350 * tui/tui-source.c (tui_set_source_content)
8351 (tui_set_source_content_nil, tui_source_is_displayed)
8352 (tui_source_window::do_scroll_vertical): Update.
8353 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8354 (tui_display_registers_from, tui_display_reg_element_at_line)
8355 (tui_check_register_values, tui_reg_command): Update.
8356 * tui/tui-layout.c (tui_default_win_height)
8357 (show_source_disasm_command, show_data, init_and_make_win)
8358 (show_source_or_disasm_and_command): Update.
8359 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8360 (tui_redisplay_readline, tui_mld_flush)
8361 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8362 (tui_getc): Update.
8363 * tui/tui-disasm.c (tui_set_disassem_content)
8364 (tui_disasm_window::do_scroll_vertical): Update.
8365 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8366 Now virtual.
8367 (struct tui_win_info): Derive from tui_gen_win_info.
8368 <~tui_win_info>: Mark as override.
8369 <generic>: Remove member.
8370 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8371 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8372 (~tui_data_window, ~tui_win_info)
8373 (tui_free_all_source_wins_content): Update.
8374 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8375
8376 2019-06-25 Tom Tromey <tom@tromey.com>
8377
8378 * tui/tui-layout.c (init_and_make_win): Use new.
8379 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8380 destructor, initializers.
8381 (tui_alloc_generic_win_info): Don't declare.
8382 * tui/tui-data.c (_locator): Add argument to constructor.
8383 (source_win, disasm_win): New globals.
8384 (exec_info): Remove.
8385 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8386 Update.
8387 (tui_alloc_generic_win_info): Remove.
8388 (init_content_element): Use new.
8389 (tui_win_info::tui_win_info): Update.
8390 (free_content_elements) <case DATA_WIN>: Use delete.
8391
8392 2019-06-25 Tom Tromey <tom@tromey.com>
8393
8394 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8395 * tui/tui-windata.c (tui_first_data_item_displayed)
8396 (tui_delete_data_content_windows): Update.
8397 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8398 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8399 (tui_display_registers_from, tui_check_register_values): Update.
8400 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8401 pointer.
8402 * tui/tui-data.c (init_content_element): Update. Allocate the new
8403 window.
8404 (tui_free_data_content): Update.
8405 (free_content_elements) <case DATA_WIN>: Free the window.
8406
8407 2019-06-25 Tom Tromey <tom@tromey.com>
8408
8409 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8410 Update.
8411 * tui/tui-layout.c (make_command_window)
8412 (show_source_disasm_command, show_data, init_and_make_win)
8413 (show_source_or_disasm_and_command): Update.
8414 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8415 method.
8416 <can_highight, is_highlighted>: Now bool.
8417 (tui_set_win_highlight): Don't declare.
8418 * tui/tui-data.c (tui_set_win_highlight): Remove.
8419
8420 2019-06-25 Tom Tromey <tom@tromey.com>
8421
8422 * tui/tui-wingeneral.c (make_visible): Remove check of window
8423 type.
8424
8425 2019-06-25 Tom Tromey <tom@tromey.com>
8426
8427 * tui/tui-win.c (tui_win_info::max_height)
8428 (tui_cmd_window::max_height): New methods.
8429 (new_height_ok): Call max_height.
8430 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8431 <max_height>: New method.
8432
8433 2019-06-25 Tom Tromey <tom@tromey.com>
8434
8435 * tui/tui-win.c (tui_source_window_base::set_new_height)
8436 (tui_data_window::set_new_height): New methods.
8437 (make_invisible_and_set_new_height): Call set_new_height method.
8438 * tui/tui-data.h (struct tui_win_info)
8439 (struct tui_source_window_base, struct tui_data_window)
8440 <set_new_height>: New method.
8441
8442 2019-06-25 Tom Tromey <tom@tromey.com>
8443
8444 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8445 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8446 tui_refresh_data_win.
8447 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8448 method.
8449 (tui_refresh_all_win): Call the refresh_all method.
8450 (tui_set_focus): Likewise.
8451 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8452 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8453 Likewise.
8454
8455 2019-06-25 Tom Tromey <tom@tromey.com>
8456
8457 * tui/tui-winsource.h (tui_refill_source_window)
8458 (tui_set_is_exec_point_at): Don't declare.
8459 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8460 (tui_source_window_base::refill): Rename from
8461 tui_refill_source_window.
8462 (tui_source_window_base::do_scroll_horizontal): Update.
8463 (tui_source_window_base::set_is_exec_point_at): Rename from
8464 tui_set_is_exec_point_at.
8465 (tui_update_all_breakpoint_info): Update.
8466 * tui/tui-stack.c (tui_show_frame_info): Update.
8467 * tui/tui-layout.c (show_data): Add cast.
8468 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8469 * tui/tui-data.h (struct tui_source_window_base) <refill,
8470 set_is_exec_point_at>: New methods.
8471 (tui_source_windows, tui_add_to_source_windows): Update types.
8472 (tui_add_to_source_windows): Remove redundant declaration.
8473 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8474 (tui_source_windows): Change return type.
8475 (tui_clear_source_windows_detail): Update.
8476 (tui_add_to_source_windows): Change type of parameter.
8477 (tui_free_all_source_wins_content): Update.
8478
8479 2019-06-25 Tom Tromey <tom@tromey.com>
8480
8481 * tui/tui-wingeneral.c (tui_win_info::refresh)
8482 (tui_source_window_base::refresh): New methods.
8483 (tui_refresh_all): Call the refresh method.
8484 * tui/tui-data.h (struct tui_win_info)
8485 (struct tui_source_window_base) <refresh>: New method.
8486
8487 2019-06-25 Tom Tromey <tom@tromey.com>
8488
8489 * tui/tui.h (tui_is_window_visible): Return bool.
8490 * tui/tui.c (tui_is_window_visible): Return bool.
8491 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8492 (tui_make_visible, tui_make_invisible)
8493 (tui_win_info::make_visible)
8494 (tui_source_window_base::make_visible, make_all_visible)
8495 (tui_make_all_visible, tui_make_all_invisible): Update.
8496 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8497 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8498 bool.
8499 (struct tui_win_info, struct tui_source_window_base)
8500 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8501 * tui/tui-data.c (tui_init_generic_part): Update.
8502
8503 2019-06-25 Tom Tromey <tom@tromey.com>
8504
8505 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8506 (tui_source_window_base::make_visible): New methods.
8507 (make_all_visible): Make method call.
8508 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8509 (struct tui_source_window_base, struct tui_cmd_window): Override
8510 make_visible.
8511 (tui_win_is_source_type): Don't declare.
8512 * tui/tui-data.c (tui_win_is_source_type): Remove.
8513
8514 2019-06-25 Tom Tromey <tom@tromey.com>
8515
8516 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8517 NULL check.
8518
8519 2019-06-25 Tom Tromey <tom@tromey.com>
8520
8521 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8522 Inline constructor. Add initializers for members.
8523 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8524 constructors; now inline in class.
8525
8526 2019-06-25 Tom Tromey <tom@tromey.com>
8527
8528 * tui/tui-regs.c (tui_show_registers): Update.
8529 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8530 bool.
8531 * tui/tui-data.c (tui_data_window::clear_detail)
8532 (tui_data_window): Update.
8533
8534 2019-06-25 Tom Tromey <tom@tromey.com>
8535
8536 * tui/tui-windata.c (tui_display_all_data)
8537 (tui_display_data_from_line, tui_display_data_from)
8538 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8539 Update.
8540 * tui/tui-regs.c (tui_last_regs_line_no)
8541 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8542 (tui_show_registers, tui_show_register_group)
8543 (tui_display_registers_from, tui_display_reg_element_at_line)
8544 (tui_display_registers_from_line, tui_check_register_values)
8545 (tui_reg_next, tui_reg_prev): Update.
8546 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8547 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8548 tui_data_window.
8549 (struct tui_win_info) <detail>: Remove. Add new fields from
8550 tui_data_info.
8551 (TUI_DATA_WIN): Add cast.
8552 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8553 (~tui_data_window): Simplify.
8554
8555 2019-06-25 Tom Tromey <tom@tromey.com>
8556
8557 * tui/tui-layout.c (show_source_disasm_command)
8558 (show_source_or_disasm_and_command): Update.
8559 * tui/tui-io.c (update_cmdwin_start_line)
8560 (tui_redisplay_readline): Update.
8561 * tui/tui-data.h (struct tui_command_info): Remove.
8562 (struct tui_win_info) <detail>: Remove command_info member.
8563 (struct tui_data_window) <start_line>: New member, from
8564 tui_command_info.
8565 (TUI_CMD_WIN): Add casts.
8566
8567 2019-06-25 Tom Tromey <tom@tromey.com>
8568
8569 * tui/tui-winsource.c (tui_update_source_window)
8570 (tui_refill_source_window)
8571 (tui_source_window_base::do_scroll_horizontal)
8572 (tui_update_breakpoint_info, tui_set_exec_info_content)
8573 (tui_show_exec_info_content, tui_erase_exec_info_content)
8574 (tui_clear_exec_info_content): Update.
8575 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8576 Update.
8577 * tui/tui-win.c (make_invisible_and_set_new_height)
8578 (make_visible_with_new_height): Update.
8579 * tui/tui-source.c (tui_set_source_content)
8580 (tui_show_symtab_source): Update.
8581 * tui/tui-layout.c (extract_display_start_addr)
8582 (show_source_disasm_command, show_data)
8583 (make_source_or_disasm_window)
8584 (show_source_or_disasm_and_command): Update.
8585 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8586 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8587 "gdbarch".
8588 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8589 to tui_source_window_base.
8590 (struct tui_win_info) <detail>: Remove source_info member.
8591 (struct tui_source_window_base) <has_locator>: Inline.
8592 Move contents from tui_source_info; rename has_locator member to
8593 m_has_locator.
8594 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8595 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8596 header file.
8597 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8598 Simplify.
8599 (tui_free_all_source_wins_content): Cast to
8600 tui_source_window_base.
8601
8602 2019-06-25 Tom Tromey <tom@tromey.com>
8603
8604 * tui/tui-win.c (make_invisible_and_set_new_height)
8605 (make_visible_with_new_height): Call has_locator method.
8606 * tui/tui-layout.c (show_source_disasm_command, show_data)
8607 (show_source_or_disasm_and_command): Update for bool change.
8608 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8609 (tui_win_info) <has_locator>: New method.
8610 (struct tui_source_window_base) <has_locator>: New method.
8611 (tui_win_has_locator): Don't declare.
8612 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8613 from tui_win_has_locator.
8614 (tui_source_window_base): Use false, not FALSE.
8615
8616 2019-06-25 Tom Tromey <tom@tromey.com>
8617
8618 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8619 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8620 clear_detail method directly.
8621 (tui_clear_win_detail): Remove.
8622
8623 2019-06-25 Tom Tromey <tom@tromey.com>
8624
8625 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8626 "this", not TUI_DISASM_WIN.
8627
8628 2019-06-25 Tom Tromey <tom@tromey.com>
8629
8630 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8631 declare.
8632 * tui/tui-winsource.c
8633 (tui_source_window_base::do_scroll_horizontal): Rename from
8634 tui_horizontal_source_scroll.
8635 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8636 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8637 from tui_vertical_data_scroll.
8638 * tui/tui-win.h (tui_scroll): Don't declare.
8639 * tui/tui-win.c (tui_win_info::forward_scroll)
8640 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8641 (tui_win_info::right_scroll): Rename and update.
8642 (tui_scroll_forward_command, tui_scroll_backward_command)
8643 (tui_scroll_left_command, tui_scroll_right_command): Update.
8644 (tui_scroll): Remove.
8645 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8646 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8647 from tui_vertical_source_scroll.
8648 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8649 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8650 from tui_vertical_disassem_scroll.
8651 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8652 do_scroll_horizontal>: New methods.
8653 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8654 Likewise.
8655 (struct tui_source_window_base): Add do_scroll_horizontal.
8656 (struct tui_source_window, struct tui_disasm_window): Add
8657 do_scroll_vertical.
8658 (struct tui_data_window, struct tui_cmd_window): Add
8659 do_scroll_horizontal and do_scroll_vertical.
8660 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8661
8662 2019-06-25 Tom Tromey <tom@tromey.com>
8663
8664 * tui/tui-data.h (struct tui_source_window_base): New struct.
8665 (struct tui_source_window): Derive from tui_source_window_base.
8666 (struct tui_disasm_window): New struct.
8667 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8668 from tui_source_window::clear_detail.
8669 (tui_source_window_base): Rename from tui_source_window.
8670 (~tui_source_window_base): Rename from ~tui_source_window.
8671 (tui_alloc_win_info): Create a tui_disasm_window.
8672
8673 2019-06-25 Tom Tromey <tom@tromey.com>
8674
8675 * tui/tui-data.h (struct tui_source_window)
8676 (struct tui_data_window): Declare destructors.
8677 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8678 destructors.
8679 (tui_win_info): Simplify.
8680
8681 2019-06-25 Tom Tromey <tom@tromey.com>
8682
8683 * tui/tui-winsource.c (tui_display_main)
8684 (tui_update_source_windows_with_addr)
8685 (tui_update_all_breakpoint_info): Update.
8686 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8687 (new_height_ok, parse_scrolling_args): Update.
8688 * tui/tui-stack.c (tui_show_frame_info): Update.
8689 * tui/tui-data.h (struct tui_list): Remove.
8690 (tui_source_windows): Return a reference to a std::vector.
8691 * tui/tui-data.c (source_windows): Now a std::vector.
8692 (tui_source_windows): Change return type.
8693 (tui_clear_source_windows): Rewrite.
8694 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8695 (tui_free_all_source_wins_content): Rewrite.
8696
8697 2019-06-25 Tom Tromey <tom@tromey.com>
8698
8699 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8700 (struct tui_data_window, struct tui_cmd_window): Declare
8701 clear_detail method.
8702 * tui/tui-data.c (tui_source_window::clear_detail)
8703 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8704 methods.
8705 (tui_clear_win_detail): Simplify.
8706
8707 2019-06-25 Tom Tromey <tom@tromey.com>
8708
8709 * tui/tui-layout.c (make_source_window, make_disasm_window)
8710 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8711 Return the new window.
8712 (show_source_disasm_command, show_data)
8713 (show_source_or_disasm_and_command): Update.
8714
8715 2019-06-25 Tom Tromey <tom@tromey.com>
8716
8717 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8718 parameter. Return the new window.
8719 (show_source_disasm_command): Update and remove NULL check.
8720 (show_source_or_disasm_and_command): Update.
8721
8722 2019-06-25 Tom Tromey <tom@tromey.com>
8723
8724 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8725
8726 2019-06-25 Tom Tromey <tom@tromey.com>
8727
8728 * tui/tui-data.h (struct tui_win_info): Make constructor
8729 protected. Make destructor virtual. Add initializers.
8730 (tui_source_window, tui_data_window, tui_cmd_window): New
8731 classes.
8732 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8733 constructor. Add "type" parameter.
8734 (tui_source_window, tui_data_window, tui_cmd_window): New
8735 constructors.
8736 (tui_alloc_win_info): Instantiate the appropriate subclass.
8737
8738 2019-06-25 Tom Tromey <tom@tromey.com>
8739
8740 * tui/tui-win.c (tui_resize_all): Use delete.
8741 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8742 destructor.
8743 (tui_free_window): Don't declare.
8744 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8745 Update.
8746
8747 2019-06-25 Tom Tromey <tom@tromey.com>
8748
8749 * tui/tui-data.h (struct tui_win_info): Add constructor.
8750 * tui/tui-data.c (tui_alloc_win_info): Use new.
8751 (tui_free_window): Use delete.
8752
8753 2019-06-22 Tom Tromey <tom@tromey.com>
8754
8755 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8756 declare.
8757 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8758
8759 2019-06-22 Tom Tromey <tom@tromey.com>
8760
8761 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8762 declare.
8763 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8764
8765 2019-06-22 Tom de Vries <tdevries@suse.de>
8766
8767 * dwarf2read.c (create_addrmap_from_aranges)
8768 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8769 instead of '%zu'.
8770
8771 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8772
8773 * dwarf2read.h (dwarf2_section_info_def): Remove.
8774 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8775 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8776 std::vector<dwarf2_section_info>.
8777 (struct dwo_file) <~dwo_file>: Remove.
8778 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8779 types field.
8780 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8781 (dwarf2_read_debug_names): Likewise.
8782 (create_debug_types_hash_table): Change parameter type to
8783 array_view, adjust code accordingly.
8784 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8785 (partial_die_info::fixup): Likewise.
8786 (determine_prefix): Likewise.
8787 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8788
8789 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8790
8791 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8792 gdb_bfd_ref_ptr.
8793 <~dwo_file>: Remove call to gdb_bfd_unref.
8794 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8795 gdb_bfd_ref_ptr::get.
8796
8797 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8798
8799 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8800 type to htab_up.
8801 * dwarf2read.c (struct dwo_file): Initialize fields.
8802 <~dwo_file>: New.
8803 (free_dwo_file): Remove, move content to ~dwo_file.
8804 (struct dwo_file_deleter): Remove.
8805 (dwo_file_up>: Remove custom deleter.
8806 (free_dwo_files): Remove.
8807 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8808 dwo_files.
8809 (process_skeletonless_type_units): Call unique_ptr::get.
8810 (allocate_dwo_file_hash_table): Add deleter to created hash
8811 table. Change return type to htab_up.
8812 (lookup_dwo_file_slot): Don't memset dwo_file, call
8813 unique_ptr::get.
8814 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8815 (create_dwo_unit_in_dwp_v2): Likewise.
8816 (open_and_init_dwo_file): Likewise.
8817 (free_dwo_file_from_slot): Remove.
8818
8819 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8820
8821 * dwarf2read.h (struct dwarf2_section_info) <readin,
8822 is_virtual>: Change type to bool.
8823 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8824 true instead of 1.
8825
8826 2019-06-19 Tom Tromey <tom@tromey.com>
8827
8828 * tui/tui-data.h (tui_init_content_element): Don't declare.
8829
8830 2019-06-19 Tom Tromey <tom@tromey.com>
8831
8832 * tui/tui-data.h (tui_init_win_info): Don't declare.
8833
8834 2019-06-19 Tom de Vries <tdevries@suse.de>
8835
8836 * dwarf2read.h (abstract_to_concrete): Change type to
8837 std::unordered_map<sect_offset, std::vector<sect_offset>,
8838 gdb::hash_enum<sect_offset>>.
8839
8840 2019-06-19 Tom Tromey <tromey@adacore.com>
8841
8842 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8843 EVAL_AVOID_SIDE_EFFECTS specially.
8844
8845 2019-06-19 Tom Tromey <tromey@adacore.com>
8846
8847 * source-cache.c (highlighter): New global.
8848 (source_cache::get_source_lines): Create a highlighter on demand.
8849
8850 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 * defs.h (deprecated_interactive_hook): Delete declaration.
8853 * interps.c (clear_interpreter_hooks): Remove use of
8854 deprecated_interactive_hook.
8855 * top.c (deprecated_interactive_hook): Delete definition.
8856 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8857
8858 2019-06-18 Tom de Vries <tdevries@suse.de>
8859
8860 PR gdb/24515
8861 * dwarf2read.h (abstract_to_concrete): Change type from
8862 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8863 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8864 * dwarf2read.c (read_variable): Update.
8865 (dwarf2_fetch_die_loc_sect_off): Update.
8866
8867 2019-06-17 Tom de Vries <tdevries@suse.de>
8868
8869 PR gdb/24617
8870 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8871 accessing parent[parent_len - 1].
8872
8873 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8874
8875 PR gdb/24364
8876 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8877 call dtrace_process_dof with NULL dof.
8878
8879 2019-06-16 Tom de Vries <tdevries@suse.de>
8880
8881 PR gdb/24445
8882 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8883
8884 2019-06-16 Tom Tromey <tom@tromey.com>
8885
8886 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8887 (make_all_visible): Use address of member.
8888
8889 2019-06-16 Tom Tromey <tom@tromey.com>
8890
8891 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8892 (tui_free_window, free_content, free_content_elements): Remove
8893 unnecessary cast.
8894 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8895 cast.
8896 * tui/tui-regs.c (tui_show_register_group)
8897 (tui_display_registers_from, tui_display_reg_element_at_line):
8898 Remove unnecessary cast.
8899
8900 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8901
8902 * linux-nat.c (normal_mask): Delete.
8903 (_initialize_linux_nat): Don't initialise normal_mask.
8904
8905 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8906
8907 PR gdb/24445
8908 * dwarf-index-write.h (write_psymtabs_to_index): Add
8909 dwz_basename parameter.
8910 * dwarf-index-write.c (write_gdbindex): Move file writing to
8911 write_gdbindex_1. Change return type void.
8912 (assert_file_size): Move up, remove filename parameter.
8913 (write_gdbindex_1): New function.
8914 (write_debug_names): Change return type to void, call
8915 assert_file_size.
8916 (struct index_wip_file): New struct.
8917 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8918 file logic to index_wip_file. Write index for dwz file if
8919 needed.
8920 (save_gdb_index_command): Pass basename of dwz file, if present.
8921 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8922 build-id of dwz file, if present.
8923 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8924 (dwarf2_get_dwz_file): Likewise.
8925 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8926 (dwarf2_get_dwz_file): Likewise.
8927
8928 2019-06-16 Tom Tromey <tom@tromey.com>
8929
8930 * coffread.c (process_coff_symbol): Use xstrdup.
8931 * value.c (create_internalvar): Use xstrdup.
8932
8933 2019-06-16 Tom Tromey <tom@tromey.com>
8934
8935 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8936 * breakpoint.c (stopin_command, stopat_command)
8937 (until_break_command, decode_location_default): Remove unnecessary
8938 cast.
8939 * utils.c (subset_compare): Remove unnecessary cast.
8940 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8941 cast.
8942 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8943 cast.
8944 * infcmd.c (path_command): Remove unnecessary cast.
8945 * coffread.c (decode_type): Remove unnecessary cast.
8946 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8947 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8948 * tui/tui-stack.c (tui_show_locator_content)
8949 (tui_show_frame_info): Remove unnecessary cast.
8950 * tui/tui-win.c (tui_scroll_forward_command)
8951 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8952 (parse_scrolling_args): Remove unnecessary cast.
8953 * tui/tui-data.c (init_win_info, tui_del_window)
8954 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8955 (free_content_elements): Remove unnecessary cast.
8956 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8957 unnecessary cast.
8958 * tui/tui-source.c (tui_set_source_content)
8959 (tui_vertical_source_scroll): Remove unnecessary cast.
8960 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8961 cast.
8962 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8963 * tui/tui-regs.c (tui_display_registers_from)
8964 (tui_display_register): Remove unnecessary cast.
8965 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8966 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8967 (make_visible): Remove unnecessary cast.
8968 * tui/tui-winsource.c (tui_erase_source_content)
8969 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8970 unnecessary cast.
8971 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8972 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8973 * stabsread.c (read_type, read_array_type, read_range_type):
8974 Remove unnecessary cast.
8975 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8976 (parse_symbol, parse_type, upgrade_type, parse_external)
8977 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8978 unnecessary cast.
8979 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8980
8981 2019-06-16 Tom Tromey <tom@tromey.com>
8982
8983 * tui/tui-data.c (tui_alloc_generic_win_info)
8984 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8985 checks.
8986
8987 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8988 Andrew Burgess <andrew.burgess@embecosm.com>
8989
8990 * f-typeprint.c (f_print_type): Don't return early for not
8991 associated or not allocated types.
8992 (f_type_print_varspec_suffix): Add print_rank parameter and print
8993 ranks of array types in case they dangling.
8994 (f_type_print_base): Add print_rank parameter.
8995
8996 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * NEWS: Mention new MI commands.
8999 * break-catch-throw.c (enum exception_event_kind): Move to
9000 breakpoint.h.
9001 (print_mention_exception_catchpoint): Output text as a single
9002 message.
9003 (catch_exception_command_1): Rename to...
9004 (catch_exception_event): ...this, make non-static, update header
9005 command, and change some parameter types.
9006 (catch_catch_command): Update for changes to
9007 catch_exception_command_1.
9008 (catch_throw_command): Likewise.
9009 (catch_rethrow_command): Likewise.
9010 * breakpoint.c (enum exception_event_kind): Delete.
9011 * breakpoint.h (enum exception_event_kind): Moved here from
9012 break-catch-throw.c.
9013 (catch_exception_event): Declare.
9014 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9015 (mi_cmd_catch_throw): New function.
9016 (mi_cmd_catch_rethrow): New function.
9017 (mi_cmd_catch_catch): New function.
9018 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9019 'catch-catch' entries.
9020 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9021 (mi_cmd_catch_rethrow): Declare.
9022 (mi_cmd_catch_catch): Declare.
9023
9024 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9025
9026 * annotate.c (annotate_source_line): Change return type to void,
9027 update implementation to match.
9028 * annotate.h (annotate_source_line): Change return type to void,
9029 update header comment.
9030 * stack.c (print_frame_info): Don't change what frame information
9031 is printed based on whether annotations are on or not.
9032
9033 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9034
9035 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9036 (annotate_source): Make static.
9037 (annotate_source_line): Moved from source.c and renamed from
9038 identify_source_line. Update the return type.
9039 * annotate.h (annotate_source): Delete declaration.
9040 (annotate_source_line): Declaration moved from source.h, and
9041 renamed from identify_source_line. Return type updated.
9042 * source.c (identify_source_line): Moved to annotate.c and renamed
9043 to annotate_source_line.
9044 (info_line_command): Remove check of annotation_level.
9045 * source.h (identify_source_line): Move declaration to annotate.h
9046 and rename to annotate_source_line.
9047 * stack.c: Add 'annotate.h' include.
9048 (print_frame_info): Remove check of annotation_level before
9049 calling annotate_source_line.
9050
9051 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9052
9053 * source-cache.c (source_cache::get_plain_source_lines): Use
9054 open_source_file_with_line_charpos instead of just
9055 open_source_file, remove call to find_source_lines.
9056 (source_cache::get_source_lines): Likewise.
9057 * source.c (find_source_lines): Make static.
9058 (get_filename_and_charpos): Renamed into...
9059 (open_source_file_with_line_charpos): ..this along with changes to
9060 return a scoped_fd, and some other minor clean ups.
9061 (identify_source_line): Use open_source_file_with_line_charpos.
9062 (search_command_helper): Use open_source_file_with_line_charpos
9063 instead of just open_source_file, remove call to
9064 find_source_lines.
9065 * source.h (open_source_file_with_line_charpos): Declare new
9066 function.
9067 (find_source_lines): Delete declaration.
9068
9069 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * source.c (get_filename_and_charpos): Remove fullname
9072 parameter.
9073 (identify_source_line): Update call to get_filename_and_charpos.
9074
9075 2019-06-14 Tom Tromey <tromey@adacore.com>
9076
9077 PR gdb/24502:
9078 * ui-style.h (skip_ansi_escape): Update comment.
9079 * ui-file.h (class no_terminal_escape_file): New class.
9080 * ui-file.c (no_terminal_escape_file::write)
9081 (no_terminal_escape_file::puts): New methods.
9082 * cli/cli-logging.c (handle_redirections): Use
9083 no_terminal_escape_file.
9084
9085 2019-06-14 Tom Tromey <tromey@adacore.com>
9086
9087 * NEWS: Move convenience variable news above Python news.
9088
9089 2019-06-14 Tom Tromey <tom@tromey.com>
9090
9091 * gnulib: Move directory to top-level.
9092 * configure.ac: Don't configure gnulib.
9093 * configure: Rebuild.
9094 * common/common-defs.h: Use new path to gnulib.
9095 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9096 (GNULIB_H): Remove.
9097 (INCGNU): Look in new gnulib location.
9098 (HFILES_NO_SRCDIR): Remove gnulib files.
9099 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9100 (generated_files): Remove GNULIB_H.
9101 ($(LIBGNU), all-lib): Remove targets.
9102 (distclean): Don't mention GNULIB_BUILDDIR.
9103 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9104
9105 2019-06-14 Tom Tromey <tromey@adacore.com>
9106
9107 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9108 Warn if symbol file does not provide any symbols.
9109
9110 2019-06-14 Tom Tromey <tromey@adacore.com>
9111
9112 * source.c (find_and_open_source): Respect basenames_may_differ.
9113
9114 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 * annotate.c (annotate_breakpoints_invalid): Make use of
9117 scoped_restore_terminal_state.
9118 (annotate_frames_invalid): Likewise.
9119
9120 2019-06-14 Tom Tromey <tromey@adacore.com>
9121
9122 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9123 allow assignment to an internalvar.
9124
9125 2019-06-14 Tom Tromey <tromey@adacore.com>
9126
9127 * ada-lex.l: Allow "_" in attribute names.
9128
9129 2019-06-14 Tom Tromey <tromey@adacore.com>
9130
9131 PR gdb/24653:
9132 * regcache.c (registers_changed): Don't call alloca.
9133 * top.c (execute_command): Don't call alloca.
9134
9135 2019-06-13 Pedro Alves <palves@redhat.com>
9136
9137 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9138 'expression'. When parsing an expression, error out if there's
9139 junk after "unlimited".
9140 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9141 (do_set_command): Adjust calls to is_unlimited_literal.
9142
9143 2019-06-13 Pedro Alves <palves@redhat.com>
9144
9145 * compile/compile.c (make_compile_options_def_group): Add braces
9146 around array_view initializer.
9147 * thread.c (make_thread_apply_all_options_def_group)
9148 (make_thread_apply_all_options_def_group): Likewise.
9149
9150 2019-06-13 Pedro Alves <palves@redhat.com>
9151
9152 * NEWS (New commands): Mention "maint test-options
9153 require-delimiter", "maint test-options unknown-is-error", "maint
9154 test-options unknown-is-operand" and "maint show
9155 test-options-completion-result".
9156 (New command options, command completion): New section.
9157 (Completion improvements): New section.
9158 Mention that you can abbreviate "unlimited".
9159
9160 2019-06-13 Pedro Alves <palves@redhat.com>
9161
9162 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9163 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9164 * unittests/cli-utils-selftests.c (test_parse_flags)
9165 (test_parse_flags_qcs): Delete.
9166 (test_cli_utils): Don't call deleted functions.
9167
9168 2019-06-13 Pedro Alves <palves@redhat.com>
9169
9170 * thread.c: Include "cli/cli-option.h".
9171 (tp_array_compar_ascending): Global.
9172 (tp_array_compar): Delete function.
9173 (tp_array_compar_ascending, tp_array_compar_descending): New
9174 functions.
9175 (ascending_option_def, qcs_flag_option_def)
9176 (thr_qcs_flags_option_defs)
9177 (make_thread_apply_all_options_def_group)
9178 (make_thread_apply_options_def_group): New.
9179 (thread_apply_all_command): Use gdb::option::process_options.
9180 (thread_apply_command_completer)
9181 (thread_apply_all_command_completer): New.
9182 (thread_apply_command): Use gdb::option::process_options.
9183 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9184 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9185 to generate help text of "thread apply". Adjust "taas"'s help.
9186 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9187 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9188
9189 2019-06-13 Pedro Alves <palves@redhat.com>
9190
9191 * thread.c (thread_apply_command): Check for invalid TID with
9192 isdigit instead of !isalpha.
9193
9194 2019-06-13 Pedro Alves <palves@redhat.com>
9195
9196 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9197 (validate_flags_qcs): New.
9198 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9199 (validate_flags_qcs): Declare.
9200 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9201 (make_frame_apply_options_def_group): New.
9202 (frame_apply_command_count): Process options with
9203 gdb::option::process_options.
9204 (frame_apply_completer): New.
9205 (frame_apply_level_completer, frame_apply_all_completer)
9206 (frame_apply_completer): New.
9207 (_initialize_stack): Update help of "frame apply", "frame apply
9208 level", "frame apply all" and "faas" to mention supported options
9209 and install command completers.
9210 * stack.h (frame_apply_all_completer): Declare.
9211 * thread.c: Include "stack.h".
9212 (tfaas_command): Add "--".
9213 (_initialize_thread): Update help "tfaas" to mention supported
9214 options and install command completer.
9215
9216 2019-06-13 Pedro Alves <palves@redhat.com>
9217
9218 * completer.c (complete_nested_command_line): New.
9219 (gdb_completion_word_break_characters_throw): Add assertion.
9220 * completer.h (complete_nested_command_line): Declare.
9221
9222 2019-06-13 Pedro Alves <palves@redhat.com>
9223
9224 * stack.c (parse_backtrace_qualifiers): New.
9225 (backtrace_command): Use it.
9226 (backtrace_command_completer): Complete on qualifiers.
9227
9228 2019-06-13 Pedro Alves <palves@redhat.com>
9229
9230 * frame.c: Include "cli/cli-option.h.
9231 (user_set_backtrace_options): New.
9232 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9233 Delete.
9234 (get_prev_frame): Adjust.
9235 (boolean_option_def, uinteger_option_def)
9236 (set_backtrace_option_defs): New.
9237 (_initialize_frame): Adjust and use
9238 gdb::option::add_setshow_cmds_for_options to install "set
9239 backtrace past-main" and "set backtrace past-entry".
9240 * frame.h: Include "cli/cli-option.h".
9241 (struct frame_print_options): Forward declare.
9242 (print_frame_arguments_all, print_frame_arguments_scalars)
9243 (print_frame_arguments_none): Declare.
9244 (print_entry_values): Delete declaration.
9245 (struct frame_print_options, user_frame_print_options): New.
9246 (struct set_backtrace_options): New.
9247 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9248 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9249 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9250 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9251 (list_args_or_locals): Add frame_print_options parameter.
9252 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9253 * python/py-framefilter.c (enumerate_args): Pass down
9254 USER_FRAME_PRINT_OPTIONS.
9255 * stack.c: Include "cli/cli-option.h".
9256 (print_frame_arguments_all, print_frame_arguments_scalars)
9257 (print_frame_arguments_none): Declare.
9258 (print_raw_frame_arguments, print_entry_values): Delete.
9259 (user_frame_print_options): New.
9260 (boolean_option_def, enum_option_def, frame_print_option_defs):
9261 New.
9262 (struct backtrace_cmd_options): New.
9263 (bt_flag_option_def): New.
9264 (backtrace_command_option_defs): New.
9265 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9266 (print_frame_arg, read_frame_arg, print_frame_args)
9267 (print_frame_info, print_frame): Add frame_print_options parameter
9268 and use it.
9269 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9270 (backtrace_command_1): Add frame_print_options and
9271 backtrace_cmd_options parameters and use them.
9272 (make_backtrace_options_def_group): New.
9273 (backtrace_command): Process command options with
9274 gdb::option::process_options.
9275 (backtrace_command_completer): New.
9276 (_initialize_stack): Extend "backtrace"'s help to mention
9277 supported options. Install completer for "backtrace".
9278 Install some settings commands with add_setshow_cmds_for_options.
9279
9280 2019-06-13 Pedro Alves <palves@redhat.com>
9281
9282 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9283 and that "set/show print raw frame-arguments" are now deprecated.
9284
9285 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9286 command.
9287 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9288 * stack.c (_initialize_stack): Install "set/show print
9289 raw-frame-arguments", and deprecate "set/show print raw
9290 frame-arguments".
9291 * valprint.c (_initialize_valprint): Deprecate "set/show print
9292 raw".
9293
9294 2019-06-13 Pedro Alves <palves@redhat.com>
9295
9296 * compile/compile.c (struct compile_options): New.
9297 (compile_flag_option_def, compile_command_option_defs)
9298 (make_compile_options_def_group): New.
9299 (compile_file_command): Handle options with
9300 gdb::option::process_options.
9301 (compile_file_command_completer): New function.
9302 (compile_code_command): Handle options with
9303 gdb::option::process_options.
9304 (compile_code_command_completer): New function.
9305 (_initialize_compiler): Install completers for "compile code" and
9306 "compile file". Mention available options in "compile code" and
9307 "compile code"'s help.
9308 * completer.c (advance_to_completion_word): New, factored out from
9309 ...
9310 (advance_to_expression_complete_word_point): ... this.
9311 (advance_to_filename_complete_word_point): New.
9312 * completer.h (advance_to_filename_complete_word_point): New
9313 declaration.
9314
9315 2019-06-13 Pedro Alves <palves@redhat.com>
9316
9317 * compile/compile.c: Include "cli/cli-option.h".
9318 (compile_print_value): Scope data pointer is now a
9319 value_print_options pointer; adjust.
9320 (compile_print_command): Process options. Scope data pointer is
9321 now a value_print_options pointer; adjust.
9322 (_initialize_compile): Update "compile print"'s help to include
9323 supported options. Install a completer for "compile print".
9324 * cp-valprint.c (show_vtblprint, show_objectprint)
9325 (show_static_field_print): Delete.
9326 (_initialize_cp_valprint): Don't install "set print
9327 static-members", "set print vtbl", "set print object" here.
9328 * printcmd.c: Include "cli/cli-option.h" and
9329 "common/gdb_optional.h".
9330 (print_command_parse_format): Rework to fill in a
9331 value_print_options instead of a format_data.
9332 (print_value): Change parameter type from format_data pointer to
9333 value_print_options reference. Adjust.
9334 (print_command_1): Process options. Adjust to pass down a
9335 value_print_options.
9336 (print_command_completer): New.
9337 (_initialize_printcmd): Install print_command_completer as
9338 handle_brkchars completer for the "print" command. Update
9339 "print"'s help to include supported options.
9340 * valprint.c: Include "cli/cli-option.h".
9341 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9342 here from cp-valprint.c.
9343 (boolean_option_def, uinteger_option_def)
9344 (value_print_option_defs, make_value_print_options_def_group):
9345 New. Use gdb::option::add_setshow_cmds_for_options to install
9346 "set print elements", "set print null-stop", "set print repeats",
9347 "set print pretty", "set print union", "set print array", "set
9348 print address", "set print symbol", "set print array-indexes".
9349 * valprint.h: Include <string> and "cli/cli-option.h".
9350 (make_value_print_options_def_group): Declare.
9351 (print_value): Change parameter type from format_data pointer to
9352 value_print_options reference.
9353 (print_command_completer): Declare.
9354
9355 2019-06-13 Pedro Alves <palves@redhat.com>
9356
9357 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9358 (COMMON_SFILES): Add maint-test-settings.c.
9359 * cli/cli-decode.c (boolean_enums): New global, factored out from
9360 ...
9361 (add_setshow_boolean_cmd): ... here.
9362 * cli/cli-decode.h (boolean_enums): Declare.
9363 * cli/cli-option.c: New file.
9364 * cli/cli-option.h: New file.
9365 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9366 factored out from ...
9367 (parse_cli_boolean_value(const char *)): ... this.
9368 (is_unlimited_literal): Change parameter type to pointer to
9369 pointer. Adjust and advance ARG pointer.
9370 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9371 (parse_cli_var_enum): New, factored out from ...
9372 (do_set_command): ... this. Adjust.
9373 * cli/cli-setshow.h (parse_cli_boolean_value)
9374 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9375 (parse_cli_var_enum): Declare.
9376 * cli/cli-utils.c: Include "cli/cli-option.h".
9377 (get_ulongest): New.
9378 * cli/cli-utils.h (get_ulongest): Declare.
9379 (check_for_argument): New overloads.
9380 * maint-test-options.c: New file.
9381
9382 2019-06-13 Pedro Alves <palves@redhat.com>
9383
9384 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9385 parse a range if "-" is at the end of the string.
9386
9387 2019-06-13 Pedro Alves <palves@redhat.com>
9388
9389 * cli/cli-setshow.c (parse_auto_binary_operation)
9390 (parse_cli_boolean_value): Don't allow "o".
9391
9392 2019-06-13 Pedro Alves <palves@redhat.com>
9393
9394 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9395 * NEWS: Mention maint test-settings KIND.
9396 * maint-test-settings.c: New file.
9397
9398 2019-06-13 Pedro Alves <palves@redhat.com>
9399
9400 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9401 completer.
9402 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9403 "set" completers.
9404
9405 2019-06-13 Pedro Alves <palves@redhat.com>
9406
9407 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9408 after item.
9409
9410 2019-06-13 Pedro Alves <palves@redhat.com>
9411
9412 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9413
9414 2019-06-13 Pedro Alves <palves@redhat.com>
9415
9416 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9417 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9418 call.
9419 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9420 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9421 calls.
9422 (check_for_argument): Skip spaces after argument.
9423
9424 2019-06-13 Pedro Alves <palves@redhat.com>
9425
9426 * thread.c (thread_apply_command): Adjust TID parsing.
9427 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9428 detected before end of string.
9429 (tid_is_in_list): Error out if LIST is invalid.
9430
9431 2019-06-13 Pedro Alves <palves@redhat.com>
9432
9433 * completer.c (complete_line_internal_1): Rewind completion word
9434 point.
9435 (completion_tracker::advance_custom_word_point_by): Change
9436 parameter type to int.
9437 * completer.h (completion_tracker::advance_custom_word_point_by):
9438 Likewise.
9439
9440 2019-06-13 Pedro Alves <palves@redhat.com>
9441
9442 * completer.c (advance_to_completion_word): Handle delimiters.
9443
9444 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9445
9446 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9447
9448 2019-06-11 Tom Tromey <tom@tromey.com>
9449
9450 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9451 (xmalloc_failed): Move to alloc.c.
9452 * alloc.c: New file.
9453 * Makefile.in (COMMON_SFILES): Add alloc.c.
9454
9455 2019-06-11 Tom Tromey <tom@tromey.com>
9456
9457 * nat/linux-waitpid.c: Don't include server.h.
9458 (linux_debug): Remove.
9459 (my_waitpid): Update.
9460
9461 2019-06-11 Tom Tromey <tromey@adacore.com>
9462
9463 * infcall.c (_initialize_infcall): Remove trailing newline from
9464 help.
9465 * user-regs.c (_initialize_user_regs): Remove trailing newline
9466 from help.
9467 * typeprint.c (_initialize_typeprint): Remove trailing newline
9468 from help.
9469 * reverse.c (_initialize_reverse): Remove trailing newlines from
9470 help.
9471 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9472 from help.
9473 * language.c (add_set_language_command): Remove trailing newline
9474 from help.
9475 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9476 help.
9477 * disasm.c (_initialize_disasm): Remove trailing newline from
9478 help.
9479 * top.c (init_main): Remove trailing newline from help.
9480 * interps.c (_initialize_interpreter): Remove trailing newline
9481 from help.
9482 * btrace.c (_initialize_btrace): Remove trailing newlines from
9483 help.
9484 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9485 from help.
9486 * python/python.c (_initialize_python): Remove trailing newline
9487 from help.
9488 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9489 help.
9490 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9491 from help. Reformat some text.
9492 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9493 from help.
9494 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9495 newline from help.
9496
9497 2019-06-11 Tom Tromey <tromey@adacore.com>
9498
9499 * darwin-nat.c (darwin_decode_exception_message)
9500 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9501
9502 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9503
9504 * valops.c (value_slice): Check for not allocated or not
9505 associated values.
9506
9507 2019-06-10 Tom de Vries <tdevries@suse.de>
9508
9509 PR gdb/24618
9510 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9511 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9512 invalid.
9513
9514 2019-06-10 Tom de Vries <tdevries@suse.de>
9515
9516 PR gdb/24611
9517 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9518 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9519
9520 2019-06-10 Tom de Vries <tdevries@suse.de>
9521
9522 PR symtab/24545
9523 * symtab.c (struct demangled_name_entry): Add language field.
9524 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9525 static minimal symbol". Set and use language field.
9526
9527 2019-06-10 Tom Tromey <tromey@adacore.com>
9528
9529 * ada-lang.c (_initialize_ada_language): Update help text.
9530
9531 2019-06-10 Tom Tromey <tromey@adacore.com>
9532
9533 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9534 with a newline.
9535 * guile/guile.c (handle_boot_error): Don't end warning with a
9536 newline.
9537 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9538 warning with a newline.
9539 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9540 newline.
9541 (s12z_frame_cache): Likewise.
9542 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9543 a newline.
9544 * solib-svr4.c (disable_probes_interface): Don't end warning with
9545 a newline.
9546 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9547 newline.
9548 * python/python.c (do_finish_initialization): Don't end warning
9549 with a newline.
9550
9551 2019-06-10 Tom Tromey <tom@tromey.com>
9552
9553 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9554 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9555 gdbpy_enter.
9556
9557 2019-06-10 Tom Tromey <tromey@adacore.com>
9558
9559 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9560 data.
9561 (elf_new_init): Don't call stabsread_new_init.
9562 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9563 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9564 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9565
9566 2019-06-10 Tom de Vries <tdevries@suse.de>
9567
9568 PR symtab/16264
9569 PR symtab/24517
9570 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9571
9572 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9573
9574 * source.c (find_and_open_source): Also rewrite relative file
9575 names.
9576
9577 2019-04-26 Amos Bird <amosbird@gmail.com>
9578
9579 * annotate.c (annotate_thread_exited): Add "thread-exited"
9580 annotation.
9581
9582 2019-06-06 Tom Tromey <tromey@adacore.com>
9583
9584 * maint.h (class scoped_command_stats): Use
9585 DISABLE_COPY_AND_ASSIGN.
9586 <print_time>: New method.
9587 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9588 print_time.
9589 (scoped_command_stats::print_time): New method.
9590
9591 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9592
9593 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9594 instructions of lengths 6 or 8 bytes.
9595
9596 2019-06-04 Pedro Alves <palves@redhat.com>
9597
9598 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9599
9600 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9601 * breakpoint.c (condition_completer): Likewise.
9602 * cli/cli-dump.c (scan_expression): Likewise.
9603 * common/filestuff.c (mkdir_recursive): Likewise.
9604 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9605 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9606 (gdb_abspath): Likewise.
9607 * compile/compile-cplus-types.c
9608 (compile_cplus_instance::decl_name): Likewise.
9609 * completer.c (complete_explicit_location):
9610 (signal_completer, reg_or_group_completer_1): Likewise.
9611 * cp-support.c (cp_remove_params_if_any): Likewise.
9612 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9613 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9614 * infcmd.c (strip_bg_char): Likewise.
9615 * linespec.c (copy_token_string): Likewise.
9616 * mi/mi-main.c (output_cores): Likewise.
9617 * psymtab.c (psymtab_search_name):
9618 * symfile.c (test_set_ext_lang_command): Likewise.
9619 * target.c (target_fileio_read_stralloc): Likewise.
9620 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9621 * value.c (complete_internalvar): Likewise.
9622
9623 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9624
9625 Add objfile property to gdb.Type.
9626 * NEWS: Mention Python API addition.
9627 * python/py-type.c (typy_get_objfile): New method.
9628
9629 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9630
9631 * NEWS: Mention the new set|show style [title|highlight].
9632 Mention changes to "show style", "help" and "apropos".
9633
9634 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9635
9636 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9637 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9638 instead of print_help_for_command.
9639 (print_doc_of_command): New function.
9640 (help_list): Add 'apropos -v word' suggestion.
9641 (print_help_for_command): Style the command name using title style.
9642 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9643 (_initialize_cli_cmds): Describe -v in apropos_command help.
9644
9645 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9646
9647 * cli/cli-style.h (cli_style_option): Add name in constructor,
9648 add m_name class member, add constructor with intensity,
9649 add name class function.
9650 (cli_style_option::add_setshow_commands): Remove name argument.
9651 (highlight_style, title_style): New styles.
9652 * cli/cli-style.c (do_show): New function that shows a style
9653 characteristic styling the style name with itself.
9654 (set_style_name): New function.
9655 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9656 Update all callers according to the changes in cli/cli-style.h.
9657 * utils.h (fputs_highlighted): New function.
9658 * utils.c (fputs_highlighted): Likewise.
9659
9660 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9661
9662 * NEWS: Mention new pipe command and new convenience variables.
9663
9664 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9665
9666 * cli/cli-cmds.c (pipe_command): New function.
9667 (_initialize_cli_cmds): Call add_com for pipe_command.
9668 Define | as an alias for pipe.
9669 (exit_status_set_internal_vars): New function.
9670 (shell_escape): Call exit_status_set_internal_vars.
9671 cli/cli-decode.c (find_command_name_length): Recognize | as
9672 a single character command.
9673
9674 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9675
9676 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9677 top.c (execute_command_to_ui_file): New function, mostly a copy
9678 of execute_command_to_string.
9679 (execute_command_to_string): Implement by calling
9680 execute_command_to_ui_file.
9681
9682 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9683
9684 * top.h (saved_command_line): Remove declaration.
9685 * top.c (previous_saved_command_line, previous_repeat_arguments):
9686 New variables.
9687 (saved_command_line): Make static, define together with other
9688 'repeat variables'.
9689 (dont_repeat): Clear repeat_arguments.
9690 (repeat_previous, get_saved_command_line, save_command_line):
9691 New functions.
9692 (gdb_init): Initialize saved_command_line
9693 and previous_saved_command_line.
9694 * main.c (captured_main_1): Remove saved_command_line initialization.
9695 * event-top.c (handle_line_of_input): Update to use
9696 the new 'repeat' related functions instead of direct access to
9697 saved_command_line.
9698 * command.h (repeat_previous, get_saved_command_line,
9699 save_command_line): New declarations.
9700 (dont_repeat): Add comment.
9701
9702 2019-05-30 Tom Tromey <tromey@adacore.com>
9703
9704 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9705 Fix comment.
9706 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9707
9708 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9709
9710 PR cli/24587
9711 * completer.c (complete): Initialize variable word.
9712
9713 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9714
9715 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9716 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9717 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9718 'body' is NULL to the outter 'if', protecting the '!is_define'
9719 situation as well.
9720
9721 2019-05-29 Tom Tromey <tromey@adacore.com>
9722
9723 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9724 (dwarf_unknown): New function.
9725 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9726 (dwarf_type_encoding_name): Use dwarf_unknown.
9727
9728 2019-05-29 Tom Tromey <tromey@adacore.com>
9729
9730 PR c++/20020:
9731 * cp-valprint.c (cp_print_value_fields): Call
9732 cp_print_static_field inside "try".
9733
9734 2019-05-29 Tom Tromey <tromey@adacore.com>
9735
9736 * inflow.c (struct terminal_info): Add default operator=.
9737 * configure: Rebuild.
9738 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9739 -Wdeprecated-copy-dtor, -Wredundant-move.
9740
9741 2019-05-29 Tom Tromey <tromey@adacore.com>
9742
9743 * NEWS: Add entry.
9744 * infcmd.c (print_return_value_1): Handle finish_print
9745 option.
9746 (show_print_finish): New function.
9747 (_initialize_infcmd): Add "set/show print finish" commands.
9748 * valprint.c (user_print_options): Initialize new member.
9749 * valprint.h (struct value_print_options) <finish_print>: New
9750 member.
9751
9752 2019-05-28 Tom Tromey <tromey@adacore.com>
9753
9754 * ada-lang.c (ada_remove_Xbn_suffix)
9755 (find_old_style_renaming_symbol)
9756 (parse_old_style_renaming): Remove.
9757 (ada_find_renaming_symbol): Don't call
9758 find_old_style_renaming_symbol.
9759 (ada_is_renaming_symbol): Rename from
9760 ada_find_renaming_symbol. Remove "block" parameter. Return
9761 bool. Now static.
9762 (ada_read_var_value): Update and simplify.
9763 * ada-exp.y (write_var_or_type): Remove old code.
9764
9765 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9766
9767 PR gdb/25010
9768 * event-top.c: Remove include comment.
9769 * inflow.c (class scoped_ignore_sigttou): Move from here...
9770 * inflow.h (class scoped_ignore_sigttou): ...to here.
9771 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9772 * top.c: Remove include comment.
9773
9774 2019-05-27 Tom Tromey <tom@tromey.com>
9775
9776 * NEWS: Fix typo.
9777
9778 2019-05-22 Tom Tromey <tromey@adacore.com>
9779
9780 * target.c (target_follow_exec): Constify parameter.
9781 * target-delegates.c: Rebuild.
9782 * remote.c (remote_target::follow_exec): Constify parameter.
9783 * infrun.c (follow_exec): Constify parameter.
9784 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9785 (target_follow_exec): Likewise.
9786
9787 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9788
9789 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9790 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9791
9792 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9793
9794 * NEWS: Add debugredirect and testsuite sections.
9795
9796 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9797
9798 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9799 target descriptions using exclusively floating point register name
9800 aliases.
9801
9802 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9803
9804 PR gdb/18644:
9805 * f-lang.c (build_fortran_types): Handle the case where
9806 gdbarch_floatformat_for_type returns a nullptr.
9807
9808 2019-05-21 Tom de Vries <tdevries@suse.de>
9809
9810 PR cli/24587
9811 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9812
9813 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9814
9815 PR gdb/18644:
9816 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9817 16-byte floats.
9818 * i386-tdep.c (i386_floatformat_for_type): Use
9819 floatformats_ia64_quad for the 16-byte floating point component
9820 within a fortran 32-byte complex number.
9821
9822 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9823
9824 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9825 delete default constructor.
9826 (find_partial_die): Update to return const struct.
9827 (partial_die_parent_scope): Move variable declaration into scope
9828 of its use and change its type to auto.
9829 (guess_partial_die_structure_name): Likewise.
9830 (partial_die_info::fixup): Likewise.
9831
9832 2019-05-17 Tom Tromey <tromey@adacore.com>
9833
9834 * source.c (find_and_open_source): Remove cast.
9835
9836 2019-05-17 Tom Tromey <tromey@adacore.com>
9837
9838 * annotate.c (annotate_source): Make "filename" const.
9839 * annotate.h (annotate_source): Use const.
9840
9841 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9842
9843 * disasm.c (set_disassembler_options): Send errors to stderr.
9844
9845 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9846
9847 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9848 (cli_interp_base::set_logging): Check debug_redirect.
9849 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9850 * cli/cli-logging.c (debug_redirect): Add static variable.
9851 (pop_output_files): Add default param.
9852 (handle_redirections): Print debug setting.
9853 (show_logging_command): Likewise.
9854 (_initialize_cli_logging): Add debugredirect command.
9855 * interps.c (current_interp_set_logging): Add debug_redirect
9856 parameter.
9857 * interps.h (set_logging): Add debug_redirect parameter.
9858 (current_interp_set_logging): Likewise.
9859 * mi/mi-common.h: Likewise.
9860 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9861
9862 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9863 Tom Tromey <tromey@adacore.com>
9864
9865 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9866 directly.
9867 * cli/cli-interp.h (make_logging_output): Remove declaration.
9868 * cli/cli-logging.c (make_logging_output): Remove function.
9869 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9870 directly.
9871 * ui-file.c (tee_file::tee_file): Remove bools.
9872 (tee_file::~tee_file): Remove deletes.
9873 * ui-file.h (tee_file): Remove bools.
9874
9875 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9876
9877 * mi/mi-cmds.h (mi_cmd_complete): New function.
9878 * mi/mi-main.c (mi_cmd_complete): Likewise.
9879 * mi/mi-cmds.c: Define new MI command -complete.
9880 * NEWS: Mention new -complete command.
9881
9882 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9883
9884 * completer.h (complete): New function.
9885 * completer.c (complete): Likewise.
9886 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9887 function defined in completer.h.
9888
9889 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9890
9891 * MAINTAINERS (Write After Approval): Add myself.
9892
9893 2019-05-17 Tom de Vries <tdevries@suse.de>
9894
9895 PR gdb/24094
9896 * dwarf2read.c (struct cu_partial_die_info): New struct.
9897 (find_partial_die): Return cu_partial_die_info.
9898 (partial_die_parent_scope, guess_partial_die_structure_name)
9899 (partial_die_info::fixup): Handle new return type of find_partial_die.
9900
9901 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9902
9903 PR breakpoints/24541
9904 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9905 "std::string", simplifying the algorithm.
9906
9907 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9908
9909 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9910 (stap_static_probe_ops::get_probes): Likewise.
9911
9912 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9913
9914 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9915 '-')" and "else if".
9916 (stap_parse_single_operand): Join checks for
9917 "gdbarch_stap_parse_special_token_p" and
9918 "gdbarch_stap_parse_special_token" in the same "if" statement.
9919 Invert check when verifying for operation on register
9920 displacement.
9921
9922 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9923
9924 * stap-probe.c (stap_get_opcode): Update comment.
9925 (stap_get_expected_argument_type): Likewise.
9926 (handle_stap_probe): Likewise.
9927
9928 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9929
9930 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9931 return type to 'bool'. Adjust comment. Use 'bool' when
9932 appropriate.
9933 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9934 * stap-probe.c (stap_parse_argument_1): Likewise.
9935 (stap_is_operator): Likewise.
9936 (stap_is_generic_prefix): Likewise.
9937 (stap_is_register_prefix): Likewise.
9938 (stap_is_register_indirection_prefix): Likewise.
9939 (stap_is_integer_prefix): Likewise.
9940 (stap_generic_check_suffix): Likewise.
9941 (stap_check_integer_suffix): Likewise.
9942 (stap_check_register_suffix): Likewise.
9943 (stap_check_register_indirection_suffix): Likewise.
9944 (stap_parse_register_operand): Likewise.
9945 (stap_parse_single_operand): Likewise.
9946 (stap_parse_argument_1): Likewise.
9947 (stap_probe::get_argument_count): Likewise.
9948 (stap_is_operator): Likewise.
9949
9950 2019-05-16 Tom Tromey <tromey@adacore.com>
9951
9952 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9953 keyword to foreach.
9954
9955 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9956
9957 * linux-thread-db.c (try_thread_db_load_1): Change return type
9958 to bool.
9959 (try_thread_db_load): Likewise.
9960 (try_thread_db_load_from_pdir_1): Likewise.
9961 (try_thread_db_load_from_pdir): Likewise.
9962 (try_thread_db_load_from_sdir): Likewise.
9963 (try_thread_db_load_from_dir): Likewise.
9964 (thread_db_load_search): Likewise.
9965 (has_libpthread): Likewise.
9966 (thread_db_load): Likewise.
9967
9968 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9969
9970 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9971 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9972 NULL, and complain/return if that's the case.
9973
9974 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9975
9976 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9977 (advance, posn, abstract_read_memory): New functions.
9978 [struct mem_read_abstraction]: New struct.
9979 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9980
9981 2019-05-14 Tom Tromey <tromey@adacore.com>
9982
9983 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9984 value is not lval_memory.
9985
9986 2019-05-14 Tom Tromey <tromey@adacore.com>
9987
9988 * solib.c (info_sharedlibrary_command): Style the file name.
9989
9990 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9991
9992 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9993 (aarch64_vnv_type): Likewise.
9994 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9995 * common/tdesc.c: Likewise.
9996 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9997 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9998 * features/aarch64-fpu.xml: Add ieee half view.
9999 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10000 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10001 * gdbtypes.h (struct builtin_type): Likewise.
10002 (struct objfile_type): Likewise.
10003
10004 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10005
10006 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10007 typo.
10008 * location.h (string_to_event_location): Likewise.
10009
10010 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10011
10012 GDB 8.3 released.
10013
10014 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10015
10016 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10017 New variable declaration.
10018 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10019 New variable.
10020 (print_one_breakpoint): Use ui_out::test_flags and new global
10021 variable to compute use_fixed_output.
10022 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10023 Remove.
10024 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10025 (mi_multi_location_breakpoint_output_fixed): Remove.
10026 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10027 new variable.
10028 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10029 fix_multi_location_breakpoint_output flag if version >= 3.
10030 * ui-out.h (enum ui_out_flag)
10031 <fix_multi_location_breakpoint_output>: New enumerator.
10032
10033 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10034
10035 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10036
10037 2019-05-10 Tom Tromey <tromey@adacore.com>
10038
10039 * ada-lang.c (catch_ada_completer): New function.
10040 (_initialize_ada_language): Use it.
10041
10042 2019-05-10 Tom Tromey <tromey@adacore.com>
10043
10044 * thread.c (print_thread_info): Make "requested_threads" const.
10045 * gdbthread.h (print_thread_info): Make "requested_threads"
10046 const.
10047 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10048 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10049
10050 2019-05-08 Tom Tromey <tom@tromey.com>
10051
10052 * gdbtypes.c (objfile_type_data): Change type.
10053 (objfile_type, _initialize_gdbtypes): Update.
10054
10055 2019-05-08 Tom Tromey <tom@tromey.com>
10056
10057 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10058 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10059 (_initialize_dwarf2_frame): Update.
10060
10061 2019-05-08 Tom Tromey <tom@tromey.com>
10062
10063 * objc-lang.c (objc_objfile_data): Change type.
10064 (find_methods): Update.
10065 (_initialize_objc_lang): Remove.
10066
10067 2019-05-08 Tom Tromey <tom@tromey.com>
10068
10069 * stabsread.c (rs6000_builtin_type_data): Change type.
10070 (rs6000_builtin_type, _initialize_stabsread): Update.
10071
10072 2019-05-08 Tom Tromey <tom@tromey.com>
10073
10074 * mips-tdep.c (mips_pdr_data): Remove.
10075 (_initialize_mips_tdep): Update.
10076
10077 2019-05-08 Tom Tromey <tom@tromey.com>
10078
10079 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10080 (hppa_init_objfile_priv_data, read_unwind_info)
10081 (find_unwind_entry, _initialize_hppa_tdep): Update.
10082
10083 2019-05-08 Tom Tromey <tom@tromey.com>
10084
10085 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10086 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10087 on obstack.
10088 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10089
10090 2019-05-08 Tom Tromey <tom@tromey.com>
10091
10092 * mdebugread.c (basic_type_data): Change type.
10093 (basic_type, _initialize_mdebugread): Update.
10094
10095 2019-05-08 Tom Tromey <tom@tromey.com>
10096
10097 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10098
10099 2019-05-08 Tom Tromey <tom@tromey.com>
10100
10101 * nto-tdep.c (nto_inferior_data_reg): Change type.
10102 (nto_inferior_data): Update.
10103 (nto_inferior_data_cleanup, nto_new_inferior_data)
10104 (_initialize_nto_tdep): Remove.
10105 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10106
10107 2019-05-08 Tom Tromey <tom@tromey.com>
10108
10109 * ada-lang.c (struct ada_inferior_data): Add initializers.
10110 (ada_inferior_data): Change type.
10111 (ada_inferior_data_cleanup): Remove.
10112 (get_ada_inferior_data, ada_inferior_exit)
10113 (struct ada_pspace_data): Add initializers, destructor.
10114 (ada_pspace_data_handle): Change type.
10115 (get_ada_pspace_data): Update.
10116 (ada_pspace_data_cleanup): Remove.
10117
10118 2019-05-08 Tom Tromey <tom@tromey.com>
10119
10120 * coffread.c (struct coff_symfile_info): Add initializers.
10121 (coff_objfile_data_key): Move lower. Change type.
10122 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10123 Update.
10124 (coff_free_info): Remove.
10125
10126 2019-05-08 Tom Tromey <tom@tromey.com>
10127
10128 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10129 (fbsd_pspace_data_handle): Move lower. Change type.
10130 (get_fbsd_pspace_data): Update.
10131 (fbsd_pspace_data_cleanup): Remove.
10132 (_initialize_fbsd_tdep): Update.
10133
10134 2019-05-08 Tom Tromey <tom@tromey.com>
10135
10136 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10137 (get_ada_tasks_pspace_data): Update.
10138 (ada_tasks_pspace_data_cleanup): Remove.
10139 (_initialize_tasks): Update.
10140 (ada_tasks_inferior_data_handle): Change type.
10141 (get_ada_tasks_inferior_data): Update.
10142 (ada_tasks_inferior_data_cleanup): Remove.
10143 (struct ada_tasks_pspace_data): Add initializers.
10144
10145 2019-05-08 Tom Tromey <tom@tromey.com>
10146
10147 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10148 * symfile-debug.c (debug_sym_get_probes): Change type.
10149 * stap-probe.c (handle_stap_probe):
10150 (stap_static_probe_ops::get_probes): Change type.
10151 * probe.h (class static_probe_ops) <get_probes>: Change type.
10152 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10153 (parse_probes_in_pspace): Update.
10154 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10155 Update.
10156 (any_static_probe_ops::get_probes): Change type.
10157 * elfread.c (elfread_data): New typedef.
10158 (probe_key): Change type.
10159 (elf_get_probes): Likewise. Update.
10160 (probe_key_free): Remove.
10161 (_initialize_elfread): Update.
10162 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10163 Change type.
10164 (dtrace_process_dof_probe, dtrace_process_dof)
10165 (dtrace_static_probe_ops::get_probe): Change type.
10166
10167 2019-05-08 Tom Tromey <tom@tromey.com>
10168
10169 * xcoffread.c (struct xcoff_symfile_info): Rename from
10170 coff_symfile_info. Add initializers.
10171 (xcoff_objfile_data_key): Move lower. Change type.
10172 (XCOFF_DATA): Rewrite.
10173 (xcoff_free_info): Remove.
10174 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10175 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10176 (xcoff_initial_scan): Update.
10177
10178 2019-05-08 Tom Tromey <tom@tromey.com>
10179
10180 * solib-svr4.c (struct svr4_info): Add initializers and
10181 destructor.
10182 <probes_table>: Now an htab_up.
10183 (solib_svr4_pspace_data): Change type.
10184 (free_probes_table): Simplify.
10185 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10186 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10187 (probes_table_remove_objfile_probes, register_solib_event_probe)
10188 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10189 (_initialize_svr4_solib): Update.
10190
10191 2019-05-08 Tom Tromey <tom@tromey.com>
10192
10193 * remote.c (remote_pspace_data): Change type.
10194 (remote_pspace_data_cleanup): Remove.
10195 (get_remote_exec_file, set_pspace_remote_exec_file)
10196 (_initialize_remote): Update.
10197
10198 2019-05-08 Tom Tromey <tom@tromey.com>
10199
10200 * breakpoint.c (breakpoint_objfile_key): Change type.
10201 (get_breakpoint_objfile_data): Update.
10202 (free_breakpoint_objfile_data): Remove.
10203 (_initialize_breakpoint): Update.
10204
10205 2019-05-08 Tom Tromey <tom@tromey.com>
10206
10207 * linux-tdep.c (struct linux_info): Add initializers.
10208 (linux_inferior_data): Move. Change type.
10209 (invalidate_linux_cache_inf): Update.
10210 (linux_inferior_data_cleanup): Remove.
10211 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10212
10213 2019-05-08 Tom Tromey <tom@tromey.com>
10214
10215 * auxv.c (auxv_inferior_data): Move. Change type.
10216 (auxv_inferior_data_cleanup): Remove.
10217 (invalidate_auxv_cache_inf): Rewrite.
10218 (get_auxv_inferior_data, _initialize_auxv): Update.
10219
10220 2019-05-08 Tom Tromey <tom@tromey.com>
10221
10222 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10223 (symfile_debug_objfile_data_key): Change type.
10224 (symfile_debug_installed, debug_qf_has_symbols)
10225 (debug_qf_find_last_source_symtab)
10226 (debug_qf_forget_cached_source_info)
10227 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10228 (debug_qf_print_stats, debug_qf_dump)
10229 (debug_qf_expand_symtabs_for_function)
10230 (debug_qf_expand_all_symtabs)
10231 (debug_qf_expand_symtabs_with_fullname)
10232 (debug_qf_map_matching_symbols)
10233 (debug_qf_expand_symtabs_matching)
10234 (debug_qf_find_pc_sect_compunit_symtab)
10235 (debug_qf_map_symbol_filenames)
10236 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10237 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10238 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10239 (debug_sym_read_linetable, debug_sym_relocate): Update.
10240 (symfile_debug_free_objfile): Remove.
10241 (install_symfile_debug_logging, _initialize_symfile_debug):
10242 Update.
10243
10244 2019-05-08 Tom Tromey <tom@tromey.com>
10245
10246 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10247 allocate_on_obstack.
10248 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10249 (get_dwarf2_per_objfile): Update.
10250 (set_dwarf2_per_objfile): Remove.
10251 (dwarf2_has_info, dwarf2_get_section_info): Update.
10252 (dwarf2_free_objfile): Remove.
10253 (_initialize_dwarf2_read): Update.
10254
10255 2019-05-08 Tom Tromey <tom@tromey.com>
10256
10257 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10258 initializers.
10259 <unsupported_script_warning_printed,
10260 script_not_found_warning_printed>: Now bool.
10261 (auto_load_pspace_data): Change type.
10262 (~auto_load_pspace_info): Rename from
10263 auto_load_pspace_data_cleanup.
10264 (get_auto_load_pspace_data, init_loaded_scripts_info)
10265 (clear_section_scripts, maybe_print_unsupported_script_warning)
10266 (maybe_print_script_not_found_warning, _initialize_auto_load):
10267 Update.
10268
10269 2019-05-08 Tom Tromey <tom@tromey.com>
10270
10271 * objfiles.c (objfile_pspace_info): Add destructor and
10272 initializers.
10273 (objfiles_pspace_data): Change type.
10274 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10275 (get_objfile_pspace_data): Update.
10276 (objfiles_bfd_data): Change type.
10277 (get_objfile_bfd_data): Update.
10278 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10279
10280 2019-05-08 Tom Tromey <tom@tromey.com>
10281
10282 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10283 Change type.
10284 (get_catch_syscall_inferior_data): Update.
10285 (catch_syscall_inferior_data_cleanup): Remove.
10286 (_initialize_break_catch_syscall): Update.
10287
10288 2019-05-08 Tom Tromey <tom@tromey.com>
10289
10290 * inflow.c (struct terminal_info): Add destructor and
10291 initializers.
10292 (inflow_inferior_data): Change type.
10293 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10294 (get_inflow_inferior_data, inflow_inferior_exit)
10295 (swap_terminal_info, _initialize_inflow): Update.
10296
10297 2019-05-08 Tom Tromey <tom@tromey.com>
10298
10299 * target-dcache.c (target_dcache_cleanup): Remove.
10300 (target_dcache_aspace_key): Change type.
10301 (target_dcache_init_p, target_dcache_invalidate)
10302 (target_dcache_get, target_dcache_get_or_init)
10303 (_initialize_target_dcache): Update.
10304 * dcache.h (struct dcache_deleter): New.
10305
10306 2019-05-08 Tom Tromey <tom@tromey.com>
10307
10308 * symtab.c (struct symbol_cache): Add destructor and
10309 initializers.
10310 (symbol_cache_key): Move. Change type.
10311 (make_symbol_cache, free_symbol_cache): Remove.
10312 (get_symbol_cache): Update.
10313 (symbol_cache_cleanup): Remove.
10314 (ALL_PSPACES, symbol_cache_flush)
10315 (maintenance_print_symbol_cache)
10316 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10317 Update.
10318
10319 2019-05-08 Tom Tromey <tom@tromey.com>
10320
10321 * symtab.c (struct main_info): Add destructor and initializers.
10322 (main_progspace_key): Move. Change type.
10323 (get_main_info): Update.
10324 (main_info_cleanup): Remove.
10325 (_initialize_symtab): Update.
10326
10327 2019-05-08 Tom Tromey <tom@tromey.com>
10328
10329 * registry.h (DECLARE_REGISTRY): Define the _key class.
10330
10331 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10332
10333 * NEWS: Merge two 'New commands' sections.
10334
10335 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10336
10337 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10338 parameter and use Ada language definition instead.
10339 (ada_val_print_ptr): Remove unused language parameter.
10340 (ada_val_print_num): Remove language parameter and use Ada language
10341 definition instead.
10342 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10343 parameter.
10344 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10345 parameter and use Ada language definition instead.
10346 (ada_val_print_1): Update all ada_val_print_xxx calls.
10347 Remove language parameter.
10348 (ada_val_print): Update ada_val_print_1 call.
10349
10350 2019-05-08 Tom Tromey <tromey@adacore.com>
10351
10352 * remote.c (remote_hw_watchpoint_limit)
10353 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10354 Now static.
10355
10356 2019-05-08 Tom Tromey <tromey@adacore.com>
10357
10358 * maint.c (_initialize_maint_cmds): Move initialization code to
10359 remote.c.
10360 (watchdog, show_watchdog): Move to remote.c.
10361 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10362 "watchdog" static.
10363 (_initialize_remote): Move initialization code from maint.c.
10364 * defs.h (watchdog): Don't declare.
10365
10366 2019-05-08 Tom Tromey <tromey@adacore.com>
10367
10368 * tui/tui-interp.c: Include main.h.
10369 * interps.c: Include main.h.
10370 * main.h (interpreter_p): Declare.
10371 * defs.h (interpreter_p): Don't declare.
10372
10373 2019-05-08 Tom Tromey <tromey@adacore.com>
10374
10375 * dwarf2loc.c: Include dwarf2read.h.
10376 * defs.h (read_unsigned_leb128): Don't declare.
10377 * dwarf2read.h (read_unsigned_leb128): Declare.
10378
10379 2019-05-08 Tom Tromey <tromey@adacore.com>
10380
10381 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10382 method.
10383
10384 2019-05-08 Tom Tromey <tromey@adacore.com>
10385
10386 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10387 when no wrap column is set.
10388
10389 2019-05-08 Tom Tromey <tromey@adacore.com>
10390
10391 * c-lang.c (c_get_string): Handle non-C-style arrays.
10392
10393 2019-05-08 Tom Tromey <tromey@adacore.com>
10394
10395 * typeprint.c (print_offset_data::update): Print the bit offset,
10396 not the number of bits remaining.
10397
10398 2019-05-08 Tom Tromey <tromey@adacore.com>
10399
10400 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10401 padding at end of comment.
10402
10403 2019-05-08 Tom Tromey <tromey@adacore.com>
10404
10405 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10406 Compare main types.
10407
10408 2019-05-06 Tom Tromey <tom@tromey.com>
10409
10410 * common/scoped_mmap.c: Include common-defs.h.
10411 * common/scoped_mmap.h: Don't include config.h.
10412
10413 2019-05-04 Tom Tromey <tom@tromey.com>
10414
10415 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10416 (struct aarch64_call_info): Add initializers.
10417 <si>: Now a std::vector.
10418 (pass_on_stack, aarch64_push_dummy_call): Update.
10419
10420 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10421 Tom Tromey <tom@tromey.com>
10422
10423 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10424 (ppc_threads): Now a std::vector. Now static.
10425 (hwdebug_find_thread_points_by_tid)
10426 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10427 Update.
10428
10429 2019-05-04 Tom Tromey <tom@tromey.com>
10430
10431 * arc-tdep.c (arc_tdesc_init): Return bool.
10432
10433 2019-05-04 Tom Tromey <tom@tromey.com>
10434
10435 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10436 Use gdb_assert_not_reached.
10437
10438 2019-05-04 Tom Tromey <tom@tromey.com>
10439
10440 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10441 "false".
10442
10443 2019-05-04 Tom Tromey <tom@tromey.com>
10444
10445 * arc-tdep.c (arc_tdesc_init): Use bool.
10446
10447 2019-05-04 Tom Tromey <tom@tromey.com>
10448
10449 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10450
10451 2019-05-04 Tom Tromey <tom@tromey.com>
10452
10453 * cli/cli-cmds.c (valid_command_p): Return bool.
10454
10455 2019-05-04 Tom Tromey <tom@tromey.com>
10456
10457 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10458 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10459
10460 2019-05-04 Raul Tambre <raul@tambre.ee>
10461
10462 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10463 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10464 operator for comparison.
10465
10466 2019-05-04 Tom Tromey <tom@tromey.com>
10467
10468 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10469 (lookup_partial_symbol, print_partial_symbols)
10470 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10471 (psymbol_compare): Update.
10472 (add_psymbol_to_bcache): Clear the entire psymbol.
10473 (maintenance_check_psymtabs): Update.
10474 * psympriv.h (struct partial_symbol): Don't derive from
10475 general_symbol_info.
10476 <obj_section, unrelocated_address, address,
10477 set_unrelocated_address>: Update.
10478 <ginfo>: New member.
10479 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10480 (debug_names::write_psymbols): Update.
10481
10482 2019-05-04 Tom de Vries <tdevries@suse.de>
10483
10484 * contrib/cc-with-tweaks.sh: Support -n arg.
10485
10486 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10487
10488 * corelow.c (core_target::detach): Ensure frame cache and
10489 register caches are cleared.
10490 inferior.c (exit_inferior_1): Likewise.
10491
10492 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10493 Tom Tromey <tom@tromey.com>
10494
10495 * dictionary.c (collate_pending_symbols_by_language): Remove
10496 "struct" from foreach.
10497 * symtab.c (lookup_global_symbol_from_objfile)
10498 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10499 foreach.
10500 * ser-tcp.c (net_open): Remove "struct" from foreach.
10501 * objfiles.c (objfile_relocate, objfile_rebase)
10502 (objfile_has_symbols): Remove "struct" from foreach.
10503 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10504 from foreach.
10505 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10506 foreach.
10507 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10508 "struct" from foreach.
10509 * ada-lang.c (create_excep_cond_exprs)
10510 (ada_exception_catchpoint_cond_string): Remove "struct" from
10511 foreach.
10512
10513 2019-05-03 Tom Tromey <tromey@adacore.com>
10514
10515 * ada-exp.y (convert_char_literal): Check suffix of each
10516 enumerator.
10517
10518 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10519
10520 PR ada/21406:
10521 * ada-exp.y (yywrap): Don't define.
10522 * ada-lex.l (%option): Add noyywrap
10523 (yywrap): Remove.
10524
10525 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10526
10527 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10528 _WIN32_WINNT to the XP level, unless already defined to a higher
10529 level.
10530
10531 * unittests/parse-connection-spec-selftests.c:
10532 * ser-tcp.c:
10533 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10534 override.
10535
10536 * symfile.c (find_separate_debug_file): Remove colon from the
10537 drive spec of DOS/Windows file names of the target, so that the
10538 file name produced from DEBUGDIR and the target's directory will
10539 be valid on DOS/Windows systems.
10540
10541 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10542
10543 * rust-lang.c (val_print_struct): Handle printing structures
10544 containing strings.
10545
10546 2019-05-02 Tom Tromey <tromey@adacore.com>
10547
10548 * valarith.c (_initialize_valarith): Remove.
10549
10550 2019-05-01 Tom Tromey <tromey@adacore.com>
10551
10552 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10553 bitfields.
10554
10555 2019-05-01 Tom Tromey <tromey@adacore.com>
10556
10557 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10558 for big-endian copies.
10559
10560 2019-04-30 Ali Tamur <tamur@google.com>
10561 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10562 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10563 (read_3_bytes): New function.
10564
10565 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10566
10567 * windows-nat.c (main_thread_id): Delete.
10568 (handle_output_debug_string): Replace main_thread_id by
10569 current_event.dwThreadId.
10570 (fake_create_process): Likewise.
10571 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10572 Do not set main_thread_id.
10573 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10574 current_event.dwThreadId.
10575 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10576
10577 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10578
10579 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10580 Use current_event.dwThreadId instead of main_thread_id.
10581
10582 2019-04-30 Tom Tromey <tromey@adacore.com>
10583
10584 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10585 (create_excep_cond_exprs): Iterate over program spaces.
10586 (ada_exception_catchpoint_cond_string): Examine all minimal
10587 symbols for exception types.
10588
10589 2019-04-30 Tom Tromey <tromey@adacore.com>
10590
10591 PR c++/24470:
10592 * dwarf2read.c (process_structure_scope): Handle case where type
10593 has template parameters but no symbol was created.
10594
10595 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10596 Chris January <chris.january@arm.com>
10597
10598 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10599 qualifier.
10600 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10601
10602 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10603
10604 * f-typeprint.c (f_print_type): Update rules for printing
10605 whitespace.
10606 (f_type_print_varspec_suffix): Likewise.
10607
10608 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10609 Chris January <chris.january@arm.com>
10610
10611 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10612 function arguments.
10613
10614 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10615
10616 * f-lang.c (build_fortran_types): Change name of void type to
10617 lower case.
10618 * f-typeprint.c (f_type_print_base): Print the name of the void
10619 type, rather than a fixed string.
10620 * f-valprint.c (f_decorations): Use lower case void string.
10621
10622 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10623 Chris January <chris.january@arm.com>
10624
10625 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10626 types for Fortran.
10627
10628 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10629 Chris January <chris.january@arm.com>
10630 David Lecomber <david.lecomber@arm.com>
10631
10632 * f-exp.y (BINOP_INTRINSIC): New token.
10633 (exp): New parser rule handling BINOP_INTRINSIC.
10634 (f77_keywords): Add new builtin procedures.
10635 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10636 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10637 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10638 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10639 (print_unop_subexp_f): New function.
10640 (print_binop_subexp_f): New function.
10641 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10642 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10643 (dump_subexp_body_f): Likewise.
10644 (operator_check_f): Likewise.
10645 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10646 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10647
10648 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10649
10650 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10651 UNOP_KIND.
10652 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10653 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10654 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10655 (operator_length_f): New fuction.
10656 (print_subexp_f): New function.
10657 (op_name_f): New function.
10658 (dump_subexp_body_f): New function.
10659 (operator_check_f): New function.
10660 (exp_descriptor_f): Replace standard expression handling functions
10661 with new functions.
10662 * gdb/fortran-operator.def: New file.
10663 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10664 * gdb/std-operator.def: Remove UNOP_KIND.
10665
10666 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10667
10668 * std-operator.def: Remove unbalanced, stray double quote
10669 character.
10670
10671 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10672 Chris January <chris.january@arm.com>
10673 Daniel Everett <daniel.everett@arm.com>
10674 Nick Forrington <nick.forrington@arm.com>
10675 Richard Bunt <richard.bunt@arm.com>
10676
10677 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10678 of depth when printing anonymous structs or unions.
10679 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10680 Don't print either the top-level value, or the children if the
10681 max-depth is exceeded.
10682 (ppscm_print_children): When printing the key of a map, allow one
10683 extra level of depth.
10684 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10685 print either the top-level value, or the children if the max-depth
10686 is exceeded.
10687 (print_children): When printing the key of a map, allow one extra
10688 level of depth.
10689 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10690 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10691 (user_print_options): Initialise max_depth field.
10692 (val_print_scalar_or_string_type_p): New function.
10693 (val_print): Check to see if the max depth has been reached.
10694 (val_print_check_max_depth): Define new function.
10695 (show_print_max_depth): New function.
10696 (_initialize_valprint): Add 'print max-depth' option.
10697 * valprint.h (struct value_print_options) <max_depth>: New field.
10698 (val_print_check_max_depth): Declare new function.
10699 * NEWS: Document new feature.
10700
10701 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10702
10703 * ada-lang.c (ada_language_defn): Initialise new field.
10704 * c-lang.c (c_is_string_type_p): New function.
10705 (c_language_defn): Initialise new field.
10706 (cplus_language_defn): Initialise new field.
10707 (asm_language_defn): Initialise new field.
10708 (minimal_language_defn): Initialise new field.
10709 * c-lang.h (c_is_string_type_p): Declare new function.
10710 * d-lang.c (d_language_defn): Initialise new field.
10711 * f-lang.c (f_is_string_type_p): New function.
10712 (f_language_defn): Initialise new field.
10713 * go-lang.c (go_is_string_type_p): New function.
10714 (go_language_defn): Initialise new field.
10715 * language.c (default_is_string_type_p): New function.
10716 (unknown_language_defn): Initialise new field.
10717 (auto_language_defn): Initialise new field.
10718 * language.h (struct language_defn) <la_is_string_type_p>: New
10719 member variable.
10720 (default_is_string_type_p): Declare new function.
10721 * m2-lang.c (m2_language_defn): Initialise new field.
10722 * objc-lang.c (objc_language_defn): Initialise new field.
10723 * opencl-lang.c (opencl_language_defn): Initialise new field.
10724 * p-lang.c (pascal_is_string_type_p): New function.
10725 (pascal_language_defn): Initialise new field.
10726 * rust-lang.c (rust_is_string_type_p): New function.
10727 (rust_language_defn): Initialise new field.
10728
10729 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10730
10731 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10732 New field.
10733 * ada-lang.c (ada_language_defn): Initialise new field.
10734 * c-lang.c (c_language_defn): Likewise.
10735 (cplus_language_defn): Likewise.
10736 (asm_language_defn): Likewise.
10737 (minimal_language_defn): Likewise.
10738 * d-lang.c (d_language_defn): Likewise.
10739 * f-lang.c (f_language_defn): Likewise.
10740 * go-lang.c (go_language_defn): Likewise.
10741 * language.c (unknown_language_defn): Likewise.
10742 (auto_language_defn): Likewise.
10743 * m2-lang.c (m2_language_defn): Likewise.
10744 * objc-lang.c (objc_language_defn): Likewise.
10745 * opencl-lang.c (opencl_language_defn): Likewise.
10746 * p-lang.c (pascal_language_defn): Likewise.
10747 * rust-lang.c (rust_language_defn): Likewise.
10748
10749 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10750
10751 * ada-lang.c (ada_is_character_type): Change return type to bool.
10752 (ada_is_string_type): Likewise.
10753 * ada-lang.h (ada_is_character_type): Update declaration
10754 (ada_is_string_type): Likewise.
10755
10756 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10757
10758 Support style in 'frame|thread apply'
10759
10760 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10761 * record.c (record_start, record_stop): Update callers of
10762 execute_command_to_string with false.
10763 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10764 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10765 methods.
10766 (class string_file): New constructor with term_out parameter.
10767 Override methods term_out and can_emit_style_escape. New member
10768 term_out.
10769 (class stdio_file): Override can_emit_style_escape.
10770 (class tee_file): Override term_out and can_emit_style_escape.
10771 * utils.h (can_emit_style_escape): Remove.
10772 * utils.c (can_emit_style_escape): Likewise.
10773 Update all callers of can_emit_style_escape (SOMESTREAM) to
10774 SOMESTREAM->can_emit_style_escape.
10775 * source-cache.c (source_cache::get_source_lines): Likewise.
10776 * stack.c (frame_apply_command_count): Call execute_command_to_string
10777 passing the term_out characteristic of the current gdb_stdout.
10778 * thread.c (thr_try_catch_cmd): Likewise.
10779 * top.c (execute_command_to_string): pass term_out parameter
10780 to construct the string_file for the command output.
10781 * ui-file.c (term_cli_styling): New function (most code moved
10782 from utils.c can_emit_style_escape).
10783 (string_file::string_file, string_file::can_emit_style_escape,
10784 stdio_file::can_emit_style_escape, tee_file::term_out,
10785 tee_file::can_emit_style_escape): New functions.
10786
10787 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10788
10789 * NEWS: Mention the new set|show may-call-functions.
10790 * infcall.c (may_call_functions_p): New variable.
10791 (show_may_call_functions_p): New function.
10792 (call_function_by_hand_dummy): Throws an error if not
10793 may-call-functions.
10794 (_initialize_infcall): Call add_setshow_boolean_cmd for
10795 may-call-functions.
10796
10797 2019-04-25 Keith Seitz <keiths@redhat.com>
10798
10799 PR c++/24367
10800 * cp-support.c (inspect_type): Don't attempt substitutions
10801 of symbol with the same name.
10802
10803 2019-04-25 Tom Tromey <tromey@adacore.com>
10804
10805 PR gdb/24475:
10806 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10807 static.
10808
10809 2019-04-25 Tom Tromey <tromey@adacore.com>
10810
10811 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10812 rvalue reference.
10813 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10814 (gdb_xml_parser::parse): Use std::move.
10815 * python/python-internal.h (gdbpy_convert_exception): Take a const
10816 reference.
10817 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10818 std::move.
10819 * python/py-utils.c (gdbpy_convert_exception): Take a const
10820 reference.
10821 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10822 Use std::move.
10823 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10824 Use std::move.
10825 * mi/mi-main.c (mi_print_exception): Take a const reference.
10826 * main.c (handle_command_errors): Take a const reference.
10827 * linespec.c (parse_linespec): Use std::move.
10828 * infcall.c (run_inferior_call): Use std::move.
10829 (call_function_by_hand_dummy): Use std::move.
10830 * exec.c (try_open_exec_file): Use std::move.
10831 * exceptions.h (exception_print, exception_fprintf)
10832 (exception_print_same): Update.
10833 * exceptions.c (print_exception, exception_print)
10834 (exception_fprintf, exception_print_same): Change parameters to
10835 const reference.
10836 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10837 * common/new-op.c: Use std::move.
10838 * common/common-exceptions.h (struct gdb_exception): Add move
10839 constructor.
10840 (struct gdb_exception_error, struct gdb_exception_quit, struct
10841 gdb_quit_bad_alloc): Change constructor to move constructor.
10842 (throw_exception): Change parameter to rvalue reference.
10843 * common/common-exceptions.c (throw_exception): Take rvalue
10844 reference.
10845 * cli/cli-interp.c (safe_execute_command): Use std::move.
10846 * breakpoint.c (insert_bp_location, location_to_sals): Use
10847 std::move.
10848
10849 2019-04-25 Tom Tromey <tromey@adacore.com>
10850
10851 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10852 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10853 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10854 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10855 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10856 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10857 guile/scm-value.c: Use unpack.
10858 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10859 gdbscm_gdb_exception.
10860 (gdbscm_throw_gdb_exception): Likewise.
10861 (struct gdbscm_gdb_exception): New.
10862 (unpack): New function.
10863 (gdbscm_wrap): Use unpack.
10864
10865 2019-04-25 Tom Tromey <tromey@adacore.com>
10866
10867 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10868 (gdb_rl_callback_handler): Use std::move.
10869 * common/common-exceptions.h (struct gdb_exception): Add move
10870 assignment operator.
10871 (throw_exception_sjlj): Change "exception" to const reference.
10872 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10873 (throw_exception_sjlj): Change "exception" to const reference.
10874
10875 2019-04-25 Tom Tromey <tromey@adacore.com>
10876
10877 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10878 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10879 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10880 Update.
10881 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10882 Update.
10883 * mi/mi-interp.c (mi_interp::exec): Update.
10884 * linespec.c (parse_linespec): Update.
10885 * infcall.c (run_inferior_call): Update.
10886 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10887 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10888 (gdbscm_lookup_global_symbol): Update.
10889 * guile/scm-param.c (gdbscm_parameter_value): Update.
10890 * guile/scm-frame.c (gdbscm_frame_read_register)
10891 (gdbscm_frame_read_var): Update.
10892 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10893 * exec.c (try_open_exec_file): Update.
10894 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10895 (gdb_rl_callback_handler): Update.
10896 * common/common-exceptions.h (exception_none): Don't declare.
10897 * common/common-exceptions.c (exception_none): Don't define.
10898 (struct catcher) <exception>: Update.
10899 * cli/cli-interp.c (safe_execute_command): Update.
10900 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10901
10902 2019-04-25 Ali Tamur <tamur@google.com>
10903
10904 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10905 (read_attribute_value): Likewise.
10906 (dwarf2_read_addr_index): Update comment.
10907 (read_str_index): Add DW_FORM_strx.
10908 (dwarf2_string_attr): Likewise.
10909 (dwarf2_const_value_attr): Likewise.
10910 (dump_die_shallow): Likewise.
10911 (dwarf2_fetch_constant_bytes): Likewise.
10912 (skip_form_bytes): Likewise.
10913 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10914
10915 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10916
10917 PR corefiles/11608
10918 PR corefiles/18187
10919 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10920 OFFSET. Verify if current mapping contains an ELF header.
10921 (linux_find_memory_regions_full): Adjust call to
10922 dump_mapping_p.
10923
10924 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10925 Kang Li <kanglictf@gmail.com>
10926
10927 PR gdb/21600
10928
10929 * dwarf2-frame.c (read_initial_length): Be consistent about using
10930 unsigned representation of length.
10931 (decode_frame_entry_1): Likewise. Check for wraparound of
10932 end pointer as well as buffer overflow.
10933
10934 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10935
10936 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10937 "vq".
10938
10939 2019-04-24 Tom Tromey <tromey@adacore.com>
10940
10941 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10942
10943 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10944
10945 * s12z-tdep.c (s12z_unwind_pc): Delete.
10946 (s12z_unwind_sp): Delete.
10947 (s12z_gdbarch_init): Don't register deleted functions with
10948 gdbarch.
10949
10950 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10951
10952 * rl78-tdep.c (rl78_unwind_sp): Delete.
10953 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10954
10955 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10956
10957 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10958 (xstormy16_unwind_pc): Delete.
10959 (xstormy16_dummy_id): Delete.
10960 (xstormy16_gdbarch_init): Don't register deleted functions with
10961 gdbarch.
10962
10963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10964
10965 * vax-tdep.c (vax_unwind_pc): Delete.
10966 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10967
10968 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10969
10970 * v850-tdep.c (v850_unwind_sp): Delete.
10971 (v850_unwind_pc): Delete.
10972 (v850_dummy_id): Delete.
10973 (v850_gdbarch_init): Don't register deleted functions with
10974 gdbarch.
10975
10976 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10977
10978 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10979 (tilegx_unwind_pc): Delete.
10980 (tilegx_unwind_dummy_id): Delete.
10981 (tilegx_gdbarch_init): Don't register deleted functions with
10982 gdbarch.
10983
10984 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10985
10986 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10987 (tic6x_dummy_id): Delete.
10988 (tic6x_gdbarch_init): Don't register deleted functions with
10989 gdbarch.
10990
10991 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10992
10993 * sparc-tdep.c (sparc_unwind_pc): Delete.
10994 (sparc32_gdbarch_init): Don't register deleted function with
10995 gdbarch.
10996
10997 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10998
10999 * sh-tdep.c (sh_unwind_sp): Delete.
11000 (sh_unwind_pc): Delete.
11001 (sh_dummy_id): Delete.
11002 (sh_gdbarch_init): Don't register deleted functions with
11003 gdbarch.
11004
11005 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11006
11007 * score-tdep.c (score_unwind_sp): Delete.
11008 (score_unwind_pc): Delete.
11009 (score_dummy_id): Delete.
11010 (score_gdbarch_init): Don't register deleted functions with
11011 gdbarch.
11012
11013 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11014
11015 * rx-tdep.c (rx_unwind_pc): Delete.
11016 (rx_unwind_sp): Delete.
11017 (rx_dummy_id): Delete.
11018 (rx_gdbarch_init): Don't register deleted functions with
11019 gdbarch. Update comment.
11020
11021 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11022
11023 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11024 (rs6000_dummy_id): Delete.
11025 (rs6000_gdbarch_init): Don't register deleted functions with
11026 gdbarch.
11027
11028 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11029
11030 * or1k-tdep.c (or1k_dummy_id): Delete.
11031 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11032
11033 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11034
11035 * nios2-tdep.c (nios2_dummy_id): Delete.
11036 (nios2_unwind_sp): Delete.
11037 (nios2_gdbarch_init): Don't register deleted functions with
11038 gdbarch.
11039
11040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11041
11042 * nds32-tdep.c (nds32_dummy_id): Delete.
11043 (nds32_unwind_pc): Delete.
11044 (nds32_unwind_sp): Delete.
11045 (nds32_gdbarch_init): Don't register deleted functions with
11046 gdbarch.
11047
11048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11049
11050 * msp430-tdep.c (msp430_unwind_pc): Delete.
11051 (msp430_unwind_sp): Delete.
11052 (msp430_dummy_id): Delete.
11053 (msp430_gdbarch_init): Don't register deleted functions with
11054 gdbarch.
11055
11056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11057
11058 * moxie-tdep.c (moxie_unwind_sp): Delete.
11059 (moxie_unwind_pc): Delete.
11060 (moxie_dummy_id): Delete.
11061 (moxie_gdbarch_init): Don't register deleted functions with
11062 gdbarch.
11063
11064 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11065
11066 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11067 (mn10300_unwind_pc): Delete.
11068 (mn10300_unwind_sp): Delete.
11069 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11070 mn10300_unwind_sp.
11071 (mn10300_frame_unwind_init): Don't register deleted functions with
11072 gdbarch.
11073
11074 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11075
11076 * mep-tdep.c (mep_unwind_pc): Delete.
11077 (mep_unwind_sp): Delete.
11078 (mep_dummy_id): Delete.
11079 (mep_gdbarch_init): Don't register deleted functions with
11080 gdbarch.
11081
11082 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11083
11084 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11085 (m68hc11_unwind_sp): Delete.
11086 (m68hc11_gdbarch_init): Don't register deleted functions with
11087 gdbarch.
11088
11089 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11090
11091 * m32r-tdep.c (m32r_unwind_sp): Delete.
11092 (m32r_unwind_pc): Delete.
11093 (m32r_dummy_id): Delete.
11094 (m32r_gdbarch_init): Don't register deleted functions with
11095 gdbarch.
11096
11097 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11098
11099 * m32c-tdep.c (m32c_unwind_pc): Delete.
11100 (m32c_unwind_sp): Delete.
11101 (m32c_dummy_id): Delete.
11102 (m32c_gdbarch_init): Don't register deleted functions with
11103 gdbarch.
11104
11105 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11106
11107 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11108 (lm32_unwind_pc): Delete.
11109 (lm32_dummy_id): Delete.
11110 (lm32_gdbarch_init): Don't register deleted functions with
11111 gdbarch.
11112
11113 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11114
11115 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11116 (iq2000_unwind_pc): Delete.
11117 (iq2000_dummy_id): Delete.
11118 (iq2000_gdbarch_init): Don't register deleted functions with
11119 gdbarch.
11120
11121 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11122
11123 * nds32-tdep.c (nds32_type_align): Delete.
11124 (nds32_push_dummy_call): Use type_align instead.
11125
11126 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11127
11128 * arm-tdep.c (arm_type_align): Only handle vector override case.
11129 (arm_push_dummy_call): Use type_align.
11130 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11131
11132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11133
11134 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11135 case.
11136 (pass_on_stack): Use type_align.
11137 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11138 function.
11139
11140 2019-04-23 Tom Tromey <tromey@adacore.com>
11141
11142 * dwarf2read.c (line_header::file_name_at): Remove unused
11143 overload.
11144
11145 2019-04-23 Tom de Vries <tdevries@suse.de>
11146
11147 PR gdb/24438
11148 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11149 invocation.
11150
11151
11152 2019-03-27 Ali Tamur <tamur@google.com>
11153
11154 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11155 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11156 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11157 (dwarf_expr_context::get_addr_index): Likewise
11158 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11159 (symbol_needs_eval_context::get_addr_index): Likewise
11160 (disassemble_dwarf_expression): Add DW_OP_addrx
11161 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11162 (read_cutu_die_from_dwo): Update comment
11163 (skip_one_die): Add DW_FORM_addrx
11164 (read_attribute_value): Likewise
11165 (var_decode_location): Add DW_OP_addrx
11166 (dwarf2_const_value_attr): Add DW_FORM_addrx
11167 (dump_die_shallow): Likewise
11168 (dwarf2_fetch_constant_bytes): Likewise
11169 (decode_locdesc): Add DW_OP_addrx
11170 (skip_form_bytes): Add DW_FORM_addrx
11171
11172 2019-04-22 Ali Tamur <tamur@google.com>
11173
11174 * MAINTAINERS (Write After Approval): Add self.
11175
11176 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11177
11178 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11179 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11180 (open_symbol_file_object): Likewise.
11181 (svr4_default_sos): Add info parameter.
11182 (svr4_read_so_list): Likewise.
11183 (svr4_current_sos_direct): Adjust functions calls to pass down
11184 info.
11185 (svr4_current_sos_1): Add info parameter.
11186 (svr4_current_sos): Call get_svr4_info, pass info down to
11187 svr4_current_sos_1.
11188 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11189 get_svr4_info.
11190 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11191 get_svr4_info.
11192 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11193 to get_svr4_info.
11194 (probes_table_remove_objfile_probes): Likewise.
11195 (register_solib_event_probe): Add info parameter.
11196 (solist_update_incremental): Pass info parameter down to
11197 svr4_read_so_list.
11198 (disable_probes_interface): Add info parameter.
11199 (svr4_handle_solib_event): Pass current_program_space to
11200 get_svr4_info. Adjust disable_probes_interface cleanup.
11201 (svr4_create_probe_breakpoints): Add info parameter, pass it
11202 down to register_solib_event_probe.
11203 (svr4_create_solib_event_breakpoints): Add info parameter,
11204 pass it down to svr4_create_probe_breakpoints.
11205 (enable_break): Pass info down to
11206 svr4_create_solib_event_breakpoints.
11207 (svr4_solib_create_inferior_hook): Pass current_program_space to
11208 get_svr4_info.
11209 (svr4_clear_solib): Likewise.
11210
11211 2019-04-22 Pedro Alves <palves@redhat.com>
11212
11213 * solib-svr4.c (svr4_free_objfile_observer): New.
11214 (probe_and_action::objfile): New field.
11215 (probes_table_htab_remove_objfile_probes)
11216 (probes_table_remove_objfile_probes): New functions.
11217 (register_solib_event_probe): Add 'objfile' parameter. Store it
11218 in the new probe_and_action. Don't store the probe in 'lookup'.
11219 (svr4_create_probe_breakpoints): Pass objfile to
11220 register_solib_event_probe.
11221 (_initialize_svr4_solib): Register a free_objfile observer.
11222
11223 2019-04-19 Tom Tromey <tom@tromey.com>
11224
11225 * common/queue.h: Remove.
11226
11227 2019-04-19 Tom Tromey <tom@tromey.com>
11228
11229 * event-loop.c: Don't include "common/queue.h".
11230
11231 2019-04-19 Tom Tromey <tom@tromey.com>
11232
11233 * remote.c (remote_target): Use delete.
11234 * remote-notif.h: Include <list>, not "common/queue.h".
11235 (notif_client_p): Remove typedef.
11236 (remote_notif_state): Add constructor, destructor, initializer.
11237 <notif_queue>: Now a std::list.
11238 (remote_notif_state_xfree): Don't declare.
11239 * remote-notif.c (remote_notif_process, handle_notification)
11240 (remote_notif_state_allocate): Update.
11241 (~remote_notif_state): Rename from remote_notif_state_xfree.
11242
11243 2019-04-19 Tom Tromey <tom@tromey.com>
11244
11245 * symfile.c (reread_symbols): Update.
11246 * objfiles.c (objfile_register_static_link)
11247 (objfile_lookup_static_link): Update
11248 (~objfile) Don't delete static_links.
11249 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11250
11251 2019-04-19 Tom Tromey <tom@tromey.com>
11252
11253 * type-stack.h (struct type_stack) <insert>: Constify string.
11254 * type-stack.c (type_stack::insert): Constify string.
11255 * gdbtypes.h (lookup_template_type): Update.
11256 (address_space_name_to_int): Update.
11257 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11258 const.
11259 (lookup_template_type): Make name const.
11260 * c-exp.y: Update rules.
11261 (lex_one_token, classify_name, classify_inner_name)
11262 (c_print_token): Update.
11263 * p-exp.y: Update rules.
11264 (yylex): Update.
11265 * f-exp.y: Update rules.
11266 (yylex): Update.
11267 * d-exp.y: Update rules.
11268 (lex_one_token, classify_name, classify_inner_name): Update.
11269 * parse.c (write_dollar_variable, copy_name): Return std::string.
11270 * parser-defs.h (copy_name): Change return type.
11271 * m2-exp.y: Update rules.
11272 (yylex): Update.
11273 * go-exp.y (lex_one_token): Update.
11274 Update rules.
11275 (classify_unsafe_function, classify_packaged_name)
11276 (classify_name, yylex): Update.
11277
11278 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11279
11280 * configure.ac: add --enable-source-highlight switch.
11281 * configure: Regenerate.
11282 * top.c (print_gdb_version): plumb --enable-source-highlight
11283 status to "show configuration".
11284
11285 2019-04-19 Tom Tromey <tromey@adacore.com>
11286
11287 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11288 Check ADA_TYPE_P.
11289 (empty_record, ada_template_to_fixed_record_type_1)
11290 (template_to_static_fixed_type)
11291 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11292 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11293 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11294 macros.
11295
11296 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11297
11298 PR symtab/24423:
11299 * source.c (print_source_lines_base): Advance "iter" when a
11300 control character is seen.
11301
11302 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11303
11304 * inferior.h (struct infcall_suspend_state_deleter):
11305 Catch exception in destructor to avoid crash.
11306
11307 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11308
11309 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11310 close to the add_com "shell".
11311
11312 2019-04-18 Tom Tromey <tromey@adacore.com>
11313
11314 * process-stratum-target.h (class process_stratum_target)
11315 <stratum>: Add "final".
11316
11317 2019-04-17 Tom Tromey <tromey@adacore.com>
11318
11319 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11320 against nullptr before use.
11321
11322 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11323
11324 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11325
11326 2019-04-17 Jim Wilson <jimw@sifive.com>
11327 Andrew Burgess <andrew.burgess@embecosm.com>
11328
11329 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11330 code read might fail, assume 4-byte breakpoint in that case.
11331
11332 2019-04-15 Leszek Swirski <leszeks@google.com>
11333
11334 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11335 rather than a hand-rolled POD check when checking for forced MEMORY
11336 classification.
11337
11338 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11339
11340 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11341 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11342 function.
11343 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11344 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11345 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11346 declaration.
11347
11348 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11349
11350 * aarch64-linux-nat.c
11351 (aarch64_linux_nat_target::thread_architecture): Add override.
11352 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11353 each VQ.
11354
11355 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11356
11357 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11358
11359 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11360
11361 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11362 target types of size 96-bits, add some additional comments, and
11363 check that the builtin type we found was the correct size.
11364
11365 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11366
11367 * utils.c (prompt_for_continue): Don't restore the styling at the
11368 end, as applied_style has the wrong value. This fixes styling in
11369 long lists of file names that are interrupted by the "Continue?"
11370 prompt.
11371
11372 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11373
11374 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11375 * c-lang.c (c_language_defn): Likewise.
11376 (cplus_language_defn): Likewise.
11377 (asm_language_defn): Likewise.
11378 (minimal_language_defn): Likewise.
11379 * d-lang.c (d_language_defn): Likewise.
11380 * f-lang.c (f_language_defn): Likewise.
11381 * go-lang.c (go_language_defn): Likewise.
11382 * language.c (unknown_language_defn): Likewise.
11383 (auto_language_defn): Likewise.
11384 * language.h (struct language_defn): Remove la_magic field.
11385 (LANG_MAGIC): Delete.
11386 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11387 * objc-lang.c (objc_language_defn): Likewise.
11388 * opencl-lang.c (opencl_language_defn): Likewise.
11389 * p-lang.c (pascal_language_defn): Likewise.
11390 * rust-lang.c (rust_language_defn): Likewise.
11391
11392 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11393
11394 * riscv-tdep.c (riscv_type_align): New function.
11395 (riscv_type_alignment): Delete.
11396 (riscv_arg_location): Use 'type_align'.
11397 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11398
11399 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11400
11401 * gdbtypes.c (type_align): A struct with no non-static fields also
11402 has alignment of 1.
11403
11404 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11405
11406 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11407 component to 0.
11408 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11409 member.
11410 (riscv_struct_info::analyse): New implementation using new
11411 analyse_inner member function.
11412 (riscv_struct_info::field_offset): New member function.
11413 (riscv_struct_info::m_offsets): New member variable.
11414 (riscv_struct_info::analyse_inner): New private member function,
11415 takes the old implementation of riscv_struct_info::analyse but
11416 extended to track field offsets.
11417 (riscv_call_arg_struct): Update the struct folding special cases
11418 to handle cases where empty C++ structs, which are non-zero
11419 length, are found.
11420 (riscv_arg_location): Initialise the length of each location, a
11421 non-zero length now indicates the location is in use.
11422 (riscv_push_dummy_call): Allow for the first location having a
11423 non-zero offset when setting up arguments.
11424 (riscv_return_value): Likewise, but for return values.
11425
11426 2019-04-11 Tom Tromey <tromey@adacore.com>
11427
11428 * utils.c (internal_vproblem): Make "msg" const.
11429
11430 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11431
11432 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11433 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11434 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11435 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11436
11437 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11438
11439 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11440 function.
11441 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11442 of amd64_collect_native_gregset.
11443 (amd64_linux_nat_target::store_registers): Likewise.
11444
11445 2019-04-10 Tom Tromey <tom@tromey.com>
11446
11447 * symtab.c (lookup_global_symbol_from_objfile)
11448 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11449 * objfiles.h (class separate_debug_iterator): New.
11450 (class separate_debug_range): New.
11451 (struct objfile) <separate_debug_objfiles>: New method.
11452 (objfile_separate_debug_iterate): Don't declare.
11453 * objfiles.c (separate_debug_iterator::operator++): Rename from
11454 objfile_separate_debug_iterate.
11455 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11456 iterator.
11457 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11458 iterator.
11459
11460 2019-04-10 Tom Tromey <tom@tromey.com>
11461
11462 * symfile.c (reread_symbols): Remove old comment.
11463 * objfiles.c (free_all_objfiles): Fix a typo.
11464
11465 2019-04-10 Tom Tromey <tom@tromey.com>
11466
11467 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11468 * minsyms.c (lookup_minimal_symbol): Use foreach.
11469 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11470 (lookup_minimal_symbol_solib_trampoline): Likewise.
11471 * symfile.c (reread_symbols): Use foreach.
11472
11473 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11474 Tom Tromey <tromey@adacore.com>
11475
11476 PR rust/24414:
11477 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11478 (rust_lex_int_test): Change "value" to be LONGEST.
11479 (rust_lex_tests): Add test for long integer literal.
11480
11481 2019-04-09 Tom Tromey <tromey@adacore.com>
11482
11483 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11484 to bool.
11485 (extended_remote_target::attach): Update.
11486 (remote_target::remote_notice_new_inferior): Update.
11487 (remote_target::add_current_inferior_and_thread): Update.
11488 * inferior.c (exit_inferior_1): Use "false".
11489 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11490
11491 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11492
11493 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11494 the "start" command.
11495
11496 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11497
11498 * python/py-inferior.c (infpy_thread_from_thread_handle):
11499 Adjust comments to reflect renaming of thread_from_thread_handle
11500 to thread_from_handle. Adjust keywords. Fix type error message.
11501 (inferior_object_methods): Add thread_from_handle. Retain
11502 thread_from_thread_handle, but mark it as deprecated.
11503
11504 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11505
11506 * gdbthread.h (find_thread_by_handle): Revise declaration.
11507 * thread.c (find_thread_by_handle): Likewise. Adjust
11508 implementation too.
11509 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11510 support for buffer objects as handles.
11511
11512 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11513
11514 * python/py-infthread.c (thpy_thread_handle): New function.
11515 (thread_object_methods): Register thpy_thread_handle.
11516
11517 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11518
11519 * gdbthread.h (thread_to_thread_handle): Declare.
11520 * thread.c (gdbtypes.h): Include.
11521 (thread_to_thread_handle): New function.
11522
11523 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11524 (target_thread_info_to_thread_handle): Declare.
11525 * target.c (target_thread_info_to_thread_handle): New function.
11526 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11527 * target-delegates.c: Regenerate.
11528
11529 * linux-thread-db.c (class thread_db_target): Add method
11530 thread_info_to_thread_handle.
11531 (thread_db_target::thread_info_to_thread_handle): Define.
11532 * remote.c (class remote_target): Add new method
11533 thread_info_to_thread_handle.
11534 (remote_target::thread_info_to_thread_handle): Define.
11535
11536 2019-04-08 Pedro Alves <palves@redhat.com>
11537
11538 * common/common-exceptions.c (throw_exception): Don't create
11539 named object to throw; throw directly.
11540 (throw_it): Likewise. Don't initialize gdb_exception::message
11541 here, with new; pass FMT and AP to the ctor instead.
11542 * common/common-exceptions.h: Include <string>.
11543 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11544 const char *, va_list)): New ctor. Use std::make_shared.
11545 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11546 errors)): Delete.
11547 (gdb_exception_error::gdb_exception_error(enum errors, const char
11548 *, va_list)): New.
11549 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11550 Add assertion.
11551 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11552 errors)): Delete.
11553 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11554 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11555 Add assertion.
11556
11557 2019-04-08 Tom Tromey <tom@tromey.com>
11558
11559 * valops.c (value_rtti_indirect_type): Replace throw_exception
11560 with throw.
11561 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11562 with throw.
11563 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11564 throw.
11565 * target.c (target_translate_tls_address): Replace throw_exception
11566 with throw.
11567 * stack.c (frame_apply_command_count): Replace throw_exception
11568 with throw.
11569 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11570 throw.
11571 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11572 with throw.
11573 * rs6000-tdep.c (rs6000_frame_cache)
11574 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11575 * remote.c: Replace throw_exception with throw.
11576 * record-full.c (record_full_message, record_full_wait_1)
11577 (record_full_restore): Replace throw_exception with throw.
11578 * record-btrace.c:
11579 (get_thread_current_frame_id, record_btrace_start_replaying)
11580 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11581 (cmd_record_btrace_start): Replace throw_exception with throw.
11582 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11583 throw.
11584 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11585 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11586 * linespec.c:
11587 (find_linespec_symbols): Replace throw_exception with throw.
11588 * infrun.c (displaced_step_prepare, resume): Replace
11589 throw_exception with throw.
11590 * infcmd.c (post_create_inferior): Replace throw_exception with
11591 throw.
11592 * inf-loop.c (inferior_event_handler): Replace throw_exception
11593 with throw.
11594 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11595 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11596 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11597 (get_prev_frame_always, get_frame_pc_if_available)
11598 (get_frame_address_in_block_if_available, get_frame_language):
11599 Replace throw_exception with throw.
11600 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11601 throw_exception with throw.
11602 * eval.c (fetch_subexp_value, evaluate_var_value)
11603 (evaluate_funcall, evaluate_subexp_standard): Replace
11604 throw_exception with throw.
11605 * dwarf2loc.c (call_site_find_chain)
11606 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11607 Replace throw_exception with throw.
11608 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11609 with throw.
11610 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11611 throw.
11612 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11613 * completer.c (complete_line_internal): Replace throw_exception
11614 with throw.
11615 * compile/compile-object-run.c (compile_object_run): Replace
11616 throw_exception with throw.
11617 * cli/cli-script.c (process_next_line): Replace throw_exception
11618 with throw.
11619 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11620 (btrace_enable, btrace_maint_update_pt_packets): Replace
11621 throw_exception with throw.
11622 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11623 throw_exception with throw.
11624 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11625 throw_exception with throw.
11626 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11627 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11628 * aarch64-tdep.c (aarch64_make_prologue_cache)
11629 (aarch64_make_stub_cache): Replace throw_exception with throw.
11630
11631 2019-04-08 Tom Tromey <tom@tromey.com>
11632
11633 * common/common-exceptions.c (throw_exception): Rename from
11634 throw_exception_cxx. Remove old copy. Make argument const.
11635 (throw_it): Create and throw exception objects directly.
11636 * common/common-exceptions.h (throw_exception): Make argument
11637 const.
11638 (struct gdb_exception_error): Add constructor.
11639 (struct gdb_exception_quit): Add constructor.
11640
11641 2019-04-08 Tom Tromey <tom@tromey.com>
11642
11643 * common/common-exceptions.h (exception_rethrow): Don't declare.
11644 (TRY_SJLJ): Update comment.
11645 (TRY, CATCH, END_CATCH): Remove.
11646 * common/common-exceptions.c (exception_rethrow): Remove.
11647
11648 2019-04-08 Tom Tromey <tom@tromey.com>
11649
11650 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11651 Remove.
11652 (gdb_exception_error): Rename from
11653 gdb_exception_RETURN_MASK_ERROR.
11654 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11655 (gdb_quit_bad_alloc): Update.
11656 * aarch64-tdep.c: Update.
11657 * ada-lang.c: Update.
11658 * ada-typeprint.c: Update.
11659 * ada-valprint.c: Update.
11660 * amd64-tdep.c: Update.
11661 * arch-utils.c: Update.
11662 * break-catch-throw.c: Update.
11663 * breakpoint.c: Update.
11664 * btrace.c: Update.
11665 * c-varobj.c: Update.
11666 * cli/cli-cmds.c: Update.
11667 * cli/cli-interp.c: Update.
11668 * cli/cli-script.c: Update.
11669 * common/common-exceptions.c: Update.
11670 * common/new-op.c: Update.
11671 * common/selftest.c: Update.
11672 * compile/compile-c-symbols.c: Update.
11673 * compile/compile-cplus-symbols.c: Update.
11674 * compile/compile-object-load.c: Update.
11675 * compile/compile-object-run.c: Update.
11676 * completer.c: Update.
11677 * corelow.c: Update.
11678 * cp-abi.c: Update.
11679 * cp-support.c: Update.
11680 * cp-valprint.c: Update.
11681 * darwin-nat.c: Update.
11682 * disasm-selftests.c: Update.
11683 * dtrace-probe.c: Update.
11684 * dwarf-index-cache.c: Update.
11685 * dwarf-index-write.c: Update.
11686 * dwarf2-frame-tailcall.c: Update.
11687 * dwarf2-frame.c: Update.
11688 * dwarf2loc.c: Update.
11689 * dwarf2read.c: Update.
11690 * eval.c: Update.
11691 * event-loop.c: Update.
11692 * event-top.c: Update.
11693 * exec.c: Update.
11694 * f-valprint.c: Update.
11695 * fbsd-tdep.c: Update.
11696 * frame-unwind.c: Update.
11697 * frame.c: Update.
11698 * gdbtypes.c: Update.
11699 * gnu-v3-abi.c: Update.
11700 * guile/guile-internal.h: Update.
11701 * guile/scm-block.c: Update.
11702 * guile/scm-breakpoint.c: Update.
11703 * guile/scm-cmd.c: Update.
11704 * guile/scm-disasm.c: Update.
11705 * guile/scm-frame.c: Update.
11706 * guile/scm-lazy-string.c: Update.
11707 * guile/scm-math.c: Update.
11708 * guile/scm-param.c: Update.
11709 * guile/scm-ports.c: Update.
11710 * guile/scm-pretty-print.c: Update.
11711 * guile/scm-symbol.c: Update.
11712 * guile/scm-symtab.c: Update.
11713 * guile/scm-type.c: Update.
11714 * guile/scm-value.c: Update.
11715 * i386-linux-tdep.c: Update.
11716 * i386-tdep.c: Update.
11717 * inf-loop.c: Update.
11718 * infcall.c: Update.
11719 * infcmd.c: Update.
11720 * infrun.c: Update.
11721 * jit.c: Update.
11722 * language.c: Update.
11723 * linespec.c: Update.
11724 * linux-fork.c: Update.
11725 * linux-nat.c: Update.
11726 * linux-tdep.c: Update.
11727 * linux-thread-db.c: Update.
11728 * main.c: Update.
11729 * mi/mi-cmd-break.c: Update.
11730 * mi/mi-cmd-stack.c: Update.
11731 * mi/mi-interp.c: Update.
11732 * mi/mi-main.c: Update.
11733 * objc-lang.c: Update.
11734 * p-valprint.c: Update.
11735 * parse.c: Update.
11736 * ppc-linux-tdep.c: Update.
11737 * printcmd.c: Update.
11738 * python/py-arch.c: Update.
11739 * python/py-breakpoint.c: Update.
11740 * python/py-cmd.c: Update.
11741 * python/py-finishbreakpoint.c: Update.
11742 * python/py-frame.c: Update.
11743 * python/py-framefilter.c: Update.
11744 * python/py-gdb-readline.c: Update.
11745 * python/py-inferior.c: Update.
11746 * python/py-infthread.c: Update.
11747 * python/py-lazy-string.c: Update.
11748 * python/py-linetable.c: Update.
11749 * python/py-objfile.c: Update.
11750 * python/py-param.c: Update.
11751 * python/py-prettyprint.c: Update.
11752 * python/py-progspace.c: Update.
11753 * python/py-record-btrace.c: Update.
11754 * python/py-record.c: Update.
11755 * python/py-symbol.c: Update.
11756 * python/py-type.c: Update.
11757 * python/py-unwind.c: Update.
11758 * python/py-utils.c: Update.
11759 * python/py-value.c: Update.
11760 * python/python.c: Update.
11761 * record-btrace.c: Update.
11762 * record-full.c: Update.
11763 * remote-fileio.c: Update.
11764 * remote.c: Update.
11765 * riscv-tdep.c: Update.
11766 * rs6000-aix-tdep.c: Update.
11767 * rs6000-tdep.c: Update.
11768 * rust-exp.y: Update.
11769 * rust-lang.c: Update.
11770 * s390-tdep.c: Update.
11771 * selftest-arch.c: Update.
11772 * solib-dsbt.c: Update.
11773 * solib-frv.c: Update.
11774 * solib-spu.c: Update.
11775 * solib-svr4.c: Update.
11776 * solib.c: Update.
11777 * sparc64-linux-tdep.c: Update.
11778 * stack.c: Update.
11779 * symfile-mem.c: Update.
11780 * symmisc.c: Update.
11781 * target.c: Update.
11782 * thread.c: Update.
11783 * top.c: Update.
11784 * tracefile-tfile.c: Update.
11785 * tui/tui.c: Update.
11786 * typeprint.c: Update.
11787 * unittests/cli-utils-selftests.c: Update.
11788 * unittests/parse-connection-spec-selftests.c: Update.
11789 * valops.c: Update.
11790 * valprint.c: Update.
11791 * value.c: Update.
11792 * varobj.c: Update.
11793 * windows-nat.c: Update.
11794 * x86-linux-nat.c: Update.
11795 * xml-support.c: Update.
11796
11797 2019-04-08 Tom Tromey <tom@tromey.com>
11798
11799 * xml-support.c: Use C++ exception handling.
11800 * x86-linux-nat.c: Use C++ exception handling.
11801 * windows-nat.c: Use C++ exception handling.
11802 * varobj.c: Use C++ exception handling.
11803 * value.c: Use C++ exception handling.
11804 * valprint.c: Use C++ exception handling.
11805 * valops.c: Use C++ exception handling.
11806 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11807 handling.
11808 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11809 * typeprint.c: Use C++ exception handling.
11810 * tui/tui.c: Use C++ exception handling.
11811 * tracefile-tfile.c: Use C++ exception handling.
11812 * top.c: Use C++ exception handling.
11813 * thread.c: Use C++ exception handling.
11814 * target.c: Use C++ exception handling.
11815 * symmisc.c: Use C++ exception handling.
11816 * symfile-mem.c: Use C++ exception handling.
11817 * stack.c: Use C++ exception handling.
11818 * sparc64-linux-tdep.c: Use C++ exception handling.
11819 * solib.c: Use C++ exception handling.
11820 * solib-svr4.c: Use C++ exception handling.
11821 * solib-spu.c: Use C++ exception handling.
11822 * solib-frv.c: Use C++ exception handling.
11823 * solib-dsbt.c: Use C++ exception handling.
11824 * selftest-arch.c: Use C++ exception handling.
11825 * s390-tdep.c: Use C++ exception handling.
11826 * rust-lang.c: Use C++ exception handling.
11827 * rust-exp.y: Use C++ exception handling.
11828 * rs6000-tdep.c: Use C++ exception handling.
11829 * rs6000-aix-tdep.c: Use C++ exception handling.
11830 * riscv-tdep.c: Use C++ exception handling.
11831 * remote.c: Use C++ exception handling.
11832 * remote-fileio.c: Use C++ exception handling.
11833 * record-full.c: Use C++ exception handling.
11834 * record-btrace.c: Use C++ exception handling.
11835 * python/python.c: Use C++ exception handling.
11836 * python/py-value.c: Use C++ exception handling.
11837 * python/py-utils.c: Use C++ exception handling.
11838 * python/py-unwind.c: Use C++ exception handling.
11839 * python/py-type.c: Use C++ exception handling.
11840 * python/py-symbol.c: Use C++ exception handling.
11841 * python/py-record.c: Use C++ exception handling.
11842 * python/py-record-btrace.c: Use C++ exception handling.
11843 * python/py-progspace.c: Use C++ exception handling.
11844 * python/py-prettyprint.c: Use C++ exception handling.
11845 * python/py-param.c: Use C++ exception handling.
11846 * python/py-objfile.c: Use C++ exception handling.
11847 * python/py-linetable.c: Use C++ exception handling.
11848 * python/py-lazy-string.c: Use C++ exception handling.
11849 * python/py-infthread.c: Use C++ exception handling.
11850 * python/py-inferior.c: Use C++ exception handling.
11851 * python/py-gdb-readline.c: Use C++ exception handling.
11852 * python/py-framefilter.c: Use C++ exception handling.
11853 * python/py-frame.c: Use C++ exception handling.
11854 * python/py-finishbreakpoint.c: Use C++ exception handling.
11855 * python/py-cmd.c: Use C++ exception handling.
11856 * python/py-breakpoint.c: Use C++ exception handling.
11857 * python/py-arch.c: Use C++ exception handling.
11858 * printcmd.c: Use C++ exception handling.
11859 * ppc-linux-tdep.c: Use C++ exception handling.
11860 * parse.c: Use C++ exception handling.
11861 * p-valprint.c: Use C++ exception handling.
11862 * objc-lang.c: Use C++ exception handling.
11863 * mi/mi-main.c: Use C++ exception handling.
11864 * mi/mi-interp.c: Use C++ exception handling.
11865 * mi/mi-cmd-stack.c: Use C++ exception handling.
11866 * mi/mi-cmd-break.c: Use C++ exception handling.
11867 * main.c: Use C++ exception handling.
11868 * linux-thread-db.c: Use C++ exception handling.
11869 * linux-tdep.c: Use C++ exception handling.
11870 * linux-nat.c: Use C++ exception handling.
11871 * linux-fork.c: Use C++ exception handling.
11872 * linespec.c: Use C++ exception handling.
11873 * language.c: Use C++ exception handling.
11874 * jit.c: Use C++ exception handling.
11875 * infrun.c: Use C++ exception handling.
11876 * infcmd.c: Use C++ exception handling.
11877 * infcall.c: Use C++ exception handling.
11878 * inf-loop.c: Use C++ exception handling.
11879 * i386-tdep.c: Use C++ exception handling.
11880 * i386-linux-tdep.c: Use C++ exception handling.
11881 * guile/scm-value.c: Use C++ exception handling.
11882 * guile/scm-type.c: Use C++ exception handling.
11883 * guile/scm-symtab.c: Use C++ exception handling.
11884 * guile/scm-symbol.c: Use C++ exception handling.
11885 * guile/scm-pretty-print.c: Use C++ exception handling.
11886 * guile/scm-ports.c: Use C++ exception handling.
11887 * guile/scm-param.c: Use C++ exception handling.
11888 * guile/scm-math.c: Use C++ exception handling.
11889 * guile/scm-lazy-string.c: Use C++ exception handling.
11890 * guile/scm-frame.c: Use C++ exception handling.
11891 * guile/scm-disasm.c: Use C++ exception handling.
11892 * guile/scm-cmd.c: Use C++ exception handling.
11893 * guile/scm-breakpoint.c: Use C++ exception handling.
11894 * guile/scm-block.c: Use C++ exception handling.
11895 * guile/guile-internal.h: Use C++ exception handling.
11896 * gnu-v3-abi.c: Use C++ exception handling.
11897 * gdbtypes.c: Use C++ exception handling.
11898 * frame.c: Use C++ exception handling.
11899 * frame-unwind.c: Use C++ exception handling.
11900 * fbsd-tdep.c: Use C++ exception handling.
11901 * f-valprint.c: Use C++ exception handling.
11902 * exec.c: Use C++ exception handling.
11903 * event-top.c: Use C++ exception handling.
11904 * event-loop.c: Use C++ exception handling.
11905 * eval.c: Use C++ exception handling.
11906 * dwarf2read.c: Use C++ exception handling.
11907 * dwarf2loc.c: Use C++ exception handling.
11908 * dwarf2-frame.c: Use C++ exception handling.
11909 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11910 * dwarf-index-write.c: Use C++ exception handling.
11911 * dwarf-index-cache.c: Use C++ exception handling.
11912 * dtrace-probe.c: Use C++ exception handling.
11913 * disasm-selftests.c: Use C++ exception handling.
11914 * darwin-nat.c: Use C++ exception handling.
11915 * cp-valprint.c: Use C++ exception handling.
11916 * cp-support.c: Use C++ exception handling.
11917 * cp-abi.c: Use C++ exception handling.
11918 * corelow.c: Use C++ exception handling.
11919 * completer.c: Use C++ exception handling.
11920 * compile/compile-object-run.c: Use C++ exception handling.
11921 * compile/compile-object-load.c: Use C++ exception handling.
11922 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11923 * compile/compile-c-symbols.c: Use C++ exception handling.
11924 * common/selftest.c: Use C++ exception handling.
11925 * common/new-op.c: Use C++ exception handling.
11926 * cli/cli-script.c: Use C++ exception handling.
11927 * cli/cli-interp.c: Use C++ exception handling.
11928 * cli/cli-cmds.c: Use C++ exception handling.
11929 * c-varobj.c: Use C++ exception handling.
11930 * btrace.c: Use C++ exception handling.
11931 * breakpoint.c: Use C++ exception handling.
11932 * break-catch-throw.c: Use C++ exception handling.
11933 * arch-utils.c: Use C++ exception handling.
11934 * amd64-tdep.c: Use C++ exception handling.
11935 * ada-valprint.c: Use C++ exception handling.
11936 * ada-typeprint.c: Use C++ exception handling.
11937 * ada-lang.c: Use C++ exception handling.
11938 * aarch64-tdep.c: Use C++ exception handling.
11939
11940 2019-04-08 Tom Tromey <tom@tromey.com>
11941
11942 * xml-support.c (gdb_xml_parser::parse): Update.
11943 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11944 * value.c (show_convenience): Update.
11945 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11946 (test_parse_flags_qcs): Update.
11947 * thread.c (thr_try_catch_cmd): Update.
11948 * target.c (target_translate_tls_address): Update.
11949 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11950 (info_frame_command_core, frame_apply_command_count): Update.
11951 * rust-exp.y (rust_lex_exception_test): Update.
11952 * riscv-tdep.c (riscv_print_one_register_info): Update.
11953 * remote.c (remote_target::enable_btrace): Update.
11954 * record-btrace.c (record_btrace_enable_warn): Update.
11955 * python/py-utils.c (gdbpy_convert_exception): Update.
11956 * printcmd.c (do_one_display, print_variable_and_value): Update.
11957 * mi/mi-main.c (mi_print_exception): Update.
11958 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11959 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11960 * linux-nat.c (linux_nat_target::attach): Update.
11961 * linux-fork.c (class scoped_switch_fork_info): Update.
11962 * infrun.c (displaced_step_prepare): Update.
11963 * infcall.c (call_function_by_hand_dummy): Update.
11964 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11965 * gnu-v3-abi.c (print_one_vtable): Update.
11966 * frame.c (get_prev_frame_always): Update.
11967 * f-valprint.c (info_common_command_for_block): Update.
11968 * exec.c (try_open_exec_file): Update.
11969 * exceptions.c (print_exception, exception_print)
11970 (exception_fprintf, exception_print_same): Update.
11971 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11972 * dwarf-index-cache.c (index_cache::store)
11973 (index_cache::lookup_gdb_index): Update.
11974 * darwin-nat.c (maybe_cache_shell): Update.
11975 * cp-valprint.c (cp_print_value_fields): Update.
11976 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11977 (gcc_cplus_symbol_address): Update.
11978 * compile/compile-c-symbols.c (gcc_convert_symbol)
11979 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11980 * common/selftest.c: Update.
11981 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11982 a std::string.
11983 (exception_try_scope_entry, exception_try_scope_exit): Don't
11984 declare.
11985 (struct exception_try_scope): Remove.
11986 (TRY): Don't use exception_try_scope.
11987 (struct gdb_exception): Add constructor, operator=.
11988 <what>: New method.
11989 (struct gdb_exception_RETURN_MASK_ALL)
11990 (struct gdb_exception_RETURN_MASK_ERROR)
11991 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11992 (struct gdb_quit_bad_alloc): Update.
11993 * common/common-exceptions.c (exception_none): Change
11994 initializer.
11995 (struct catcher) <state, exception>: Initialize inline.
11996 <prev>: Remove member.
11997 (current_catcher): Remove.
11998 (catchers): New global.
11999 (exceptions_state_mc_init): Simplify.
12000 (catcher_pop): Remove.
12001 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12002 (try_scope_depth, exception_try_scope_entry)
12003 (exception_try_scope_exit): Remove.
12004 (throw_exception_sjlj): Update.
12005 (exception_messages, exception_messages_size): Remove.
12006 (throw_it): Simplify.
12007 (gdb_exception_sliced_copy): Remove.
12008 (throw_exception_cxx): Update.
12009 * cli/cli-script.c (script_from_file): Update.
12010 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12011 Update.
12012 * ada-valprint.c (ada_val_print): Update.
12013 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12014 (create_excep_cond_exprs): Update.
12015
12016 2019-04-08 Tom Tromey <tom@tromey.com>
12017
12018 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12019 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12020 (TRY, CATCH, END_CATCH): Remove some definitions.
12021 * common/common-exceptions.c: Don't use GDB_XCPT.
12022 (catcher_list_size): Remove.
12023 (throw_exception, throw_it): Simplify.
12024
12025 2019-04-05 Tom Tromey <tom@tromey.com>
12026
12027 Revert the header-sorting patch.
12028 * ft32-tdep.c: Revert.
12029 * frv-tdep.c: Revert.
12030 * frv-linux-tdep.c: Revert.
12031 * frame.c: Revert.
12032 * frame-unwind.c: Revert.
12033 * frame-base.c: Revert.
12034 * fork-child.c: Revert.
12035 * findvar.c: Revert.
12036 * findcmd.c: Revert.
12037 * filesystem.c: Revert.
12038 * filename-seen-cache.h: Revert.
12039 * filename-seen-cache.c: Revert.
12040 * fbsd-tdep.c: Revert.
12041 * fbsd-nat.h: Revert.
12042 * fbsd-nat.c: Revert.
12043 * f-valprint.c: Revert.
12044 * f-typeprint.c: Revert.
12045 * f-lang.c: Revert.
12046 * extension.h: Revert.
12047 * extension.c: Revert.
12048 * extension-priv.h: Revert.
12049 * expprint.c: Revert.
12050 * exec.h: Revert.
12051 * exec.c: Revert.
12052 * exceptions.c: Revert.
12053 * event-top.c: Revert.
12054 * event-loop.c: Revert.
12055 * eval.c: Revert.
12056 * elfread.c: Revert.
12057 * dwarf2read.h: Revert.
12058 * dwarf2read.c: Revert.
12059 * dwarf2loc.c: Revert.
12060 * dwarf2expr.h: Revert.
12061 * dwarf2expr.c: Revert.
12062 * dwarf2-frame.c: Revert.
12063 * dwarf2-frame-tailcall.c: Revert.
12064 * dwarf-index-write.h: Revert.
12065 * dwarf-index-write.c: Revert.
12066 * dwarf-index-common.c: Revert.
12067 * dwarf-index-cache.h: Revert.
12068 * dwarf-index-cache.c: Revert.
12069 * dummy-frame.c: Revert.
12070 * dtrace-probe.c: Revert.
12071 * disasm.h: Revert.
12072 * disasm.c: Revert.
12073 * disasm-selftests.c: Revert.
12074 * dictionary.c: Revert.
12075 * dicos-tdep.c: Revert.
12076 * demangle.c: Revert.
12077 * dcache.h: Revert.
12078 * dcache.c: Revert.
12079 * darwin-nat.h: Revert.
12080 * darwin-nat.c: Revert.
12081 * darwin-nat-info.c: Revert.
12082 * d-valprint.c: Revert.
12083 * d-namespace.c: Revert.
12084 * d-lang.c: Revert.
12085 * ctf.c: Revert.
12086 * csky-tdep.c: Revert.
12087 * csky-linux-tdep.c: Revert.
12088 * cris-tdep.c: Revert.
12089 * cris-linux-tdep.c: Revert.
12090 * cp-valprint.c: Revert.
12091 * cp-support.c: Revert.
12092 * cp-namespace.c: Revert.
12093 * cp-abi.c: Revert.
12094 * corelow.c: Revert.
12095 * corefile.c: Revert.
12096 * continuations.c: Revert.
12097 * completer.h: Revert.
12098 * completer.c: Revert.
12099 * complaints.c: Revert.
12100 * coffread.c: Revert.
12101 * coff-pe-read.c: Revert.
12102 * cli-out.h: Revert.
12103 * cli-out.c: Revert.
12104 * charset.c: Revert.
12105 * c-varobj.c: Revert.
12106 * c-valprint.c: Revert.
12107 * c-typeprint.c: Revert.
12108 * c-lang.c: Revert.
12109 * buildsym.c: Revert.
12110 * buildsym-legacy.c: Revert.
12111 * build-id.h: Revert.
12112 * build-id.c: Revert.
12113 * btrace.c: Revert.
12114 * bsd-uthread.c: Revert.
12115 * breakpoint.h: Revert.
12116 * breakpoint.c: Revert.
12117 * break-catch-throw.c: Revert.
12118 * break-catch-syscall.c: Revert.
12119 * break-catch-sig.c: Revert.
12120 * blockframe.c: Revert.
12121 * block.c: Revert.
12122 * bfin-tdep.c: Revert.
12123 * bfin-linux-tdep.c: Revert.
12124 * bfd-target.c: Revert.
12125 * bcache.c: Revert.
12126 * ax-general.c: Revert.
12127 * ax-gdb.h: Revert.
12128 * ax-gdb.c: Revert.
12129 * avr-tdep.c: Revert.
12130 * auxv.c: Revert.
12131 * auto-load.c: Revert.
12132 * arm-wince-tdep.c: Revert.
12133 * arm-tdep.c: Revert.
12134 * arm-symbian-tdep.c: Revert.
12135 * arm-pikeos-tdep.c: Revert.
12136 * arm-obsd-tdep.c: Revert.
12137 * arm-nbsd-tdep.c: Revert.
12138 * arm-nbsd-nat.c: Revert.
12139 * arm-linux-tdep.c: Revert.
12140 * arm-linux-nat.c: Revert.
12141 * arm-fbsd-tdep.c: Revert.
12142 * arm-fbsd-nat.c: Revert.
12143 * arm-bsd-tdep.c: Revert.
12144 * arch-utils.c: Revert.
12145 * arc-tdep.c: Revert.
12146 * arc-newlib-tdep.c: Revert.
12147 * annotate.h: Revert.
12148 * annotate.c: Revert.
12149 * amd64-windows-tdep.c: Revert.
12150 * amd64-windows-nat.c: Revert.
12151 * amd64-tdep.c: Revert.
12152 * amd64-sol2-tdep.c: Revert.
12153 * amd64-obsd-tdep.c: Revert.
12154 * amd64-obsd-nat.c: Revert.
12155 * amd64-nbsd-tdep.c: Revert.
12156 * amd64-nbsd-nat.c: Revert.
12157 * amd64-nat.c: Revert.
12158 * amd64-linux-tdep.c: Revert.
12159 * amd64-linux-nat.c: Revert.
12160 * amd64-fbsd-tdep.c: Revert.
12161 * amd64-fbsd-nat.c: Revert.
12162 * amd64-dicos-tdep.c: Revert.
12163 * amd64-darwin-tdep.c: Revert.
12164 * amd64-bsd-nat.c: Revert.
12165 * alpha-tdep.c: Revert.
12166 * alpha-obsd-tdep.c: Revert.
12167 * alpha-nbsd-tdep.c: Revert.
12168 * alpha-mdebug-tdep.c: Revert.
12169 * alpha-linux-tdep.c: Revert.
12170 * alpha-linux-nat.c: Revert.
12171 * alpha-bsd-tdep.c: Revert.
12172 * alpha-bsd-nat.c: Revert.
12173 * aix-thread.c: Revert.
12174 * agent.c: Revert.
12175 * addrmap.c: Revert.
12176 * ada-varobj.c: Revert.
12177 * ada-valprint.c: Revert.
12178 * ada-typeprint.c: Revert.
12179 * ada-tasks.c: Revert.
12180 * ada-lang.c: Revert.
12181 * aarch64-tdep.c: Revert.
12182 * aarch64-ravenscar-thread.c: Revert.
12183 * aarch64-newlib-tdep.c: Revert.
12184 * aarch64-linux-tdep.c: Revert.
12185 * aarch64-linux-nat.c: Revert.
12186 * aarch64-fbsd-tdep.c: Revert.
12187 * aarch64-fbsd-nat.c: Revert.
12188 * aarch32-linux-nat.c: Revert.
12189
12190 2019-04-05 Tom Tromey <tom@tromey.com>
12191
12192 * ft32-tdep.c: Sort headers.
12193 * frv-tdep.c: Sort headers.
12194 * frv-linux-tdep.c: Sort headers.
12195 * frame.c: Sort headers.
12196 * frame-unwind.c: Sort headers.
12197 * frame-base.c: Sort headers.
12198 * fork-child.c: Sort headers.
12199 * findvar.c: Sort headers.
12200 * findcmd.c: Sort headers.
12201 * filesystem.c: Sort headers.
12202 * filename-seen-cache.h: Sort headers.
12203 * filename-seen-cache.c: Sort headers.
12204 * fbsd-tdep.c: Sort headers.
12205 * fbsd-nat.h: Sort headers.
12206 * fbsd-nat.c: Sort headers.
12207 * f-valprint.c: Sort headers.
12208 * f-typeprint.c: Sort headers.
12209 * f-lang.c: Sort headers.
12210 * extension.h: Sort headers.
12211 * extension.c: Sort headers.
12212 * extension-priv.h: Sort headers.
12213 * expprint.c: Sort headers.
12214 * exec.h: Sort headers.
12215 * exec.c: Sort headers.
12216 * exceptions.c: Sort headers.
12217 * event-top.c: Sort headers.
12218 * event-loop.c: Sort headers.
12219 * eval.c: Sort headers.
12220 * elfread.c: Sort headers.
12221 * dwarf2read.h: Sort headers.
12222 * dwarf2read.c: Sort headers.
12223 * dwarf2loc.c: Sort headers.
12224 * dwarf2expr.h: Sort headers.
12225 * dwarf2expr.c: Sort headers.
12226 * dwarf2-frame.c: Sort headers.
12227 * dwarf2-frame-tailcall.c: Sort headers.
12228 * dwarf-index-write.h: Sort headers.
12229 * dwarf-index-write.c: Sort headers.
12230 * dwarf-index-common.c: Sort headers.
12231 * dwarf-index-cache.h: Sort headers.
12232 * dwarf-index-cache.c: Sort headers.
12233 * dummy-frame.c: Sort headers.
12234 * dtrace-probe.c: Sort headers.
12235 * disasm.h: Sort headers.
12236 * disasm.c: Sort headers.
12237 * disasm-selftests.c: Sort headers.
12238 * dictionary.c: Sort headers.
12239 * dicos-tdep.c: Sort headers.
12240 * demangle.c: Sort headers.
12241 * dcache.h: Sort headers.
12242 * dcache.c: Sort headers.
12243 * darwin-nat.h: Sort headers.
12244 * darwin-nat.c: Sort headers.
12245 * darwin-nat-info.c: Sort headers.
12246 * d-valprint.c: Sort headers.
12247 * d-namespace.c: Sort headers.
12248 * d-lang.c: Sort headers.
12249 * ctf.c: Sort headers.
12250 * csky-tdep.c: Sort headers.
12251 * csky-linux-tdep.c: Sort headers.
12252 * cris-tdep.c: Sort headers.
12253 * cris-linux-tdep.c: Sort headers.
12254 * cp-valprint.c: Sort headers.
12255 * cp-support.c: Sort headers.
12256 * cp-namespace.c: Sort headers.
12257 * cp-abi.c: Sort headers.
12258 * corelow.c: Sort headers.
12259 * corefile.c: Sort headers.
12260 * continuations.c: Sort headers.
12261 * completer.h: Sort headers.
12262 * completer.c: Sort headers.
12263 * complaints.c: Sort headers.
12264 * coffread.c: Sort headers.
12265 * coff-pe-read.c: Sort headers.
12266 * cli-out.h: Sort headers.
12267 * cli-out.c: Sort headers.
12268 * charset.c: Sort headers.
12269 * c-varobj.c: Sort headers.
12270 * c-valprint.c: Sort headers.
12271 * c-typeprint.c: Sort headers.
12272 * c-lang.c: Sort headers.
12273 * buildsym.c: Sort headers.
12274 * buildsym-legacy.c: Sort headers.
12275 * build-id.h: Sort headers.
12276 * build-id.c: Sort headers.
12277 * btrace.c: Sort headers.
12278 * bsd-uthread.c: Sort headers.
12279 * breakpoint.h: Sort headers.
12280 * breakpoint.c: Sort headers.
12281 * break-catch-throw.c: Sort headers.
12282 * break-catch-syscall.c: Sort headers.
12283 * break-catch-sig.c: Sort headers.
12284 * blockframe.c: Sort headers.
12285 * block.c: Sort headers.
12286 * bfin-tdep.c: Sort headers.
12287 * bfin-linux-tdep.c: Sort headers.
12288 * bfd-target.c: Sort headers.
12289 * bcache.c: Sort headers.
12290 * ax-general.c: Sort headers.
12291 * ax-gdb.h: Sort headers.
12292 * ax-gdb.c: Sort headers.
12293 * avr-tdep.c: Sort headers.
12294 * auxv.c: Sort headers.
12295 * auto-load.c: Sort headers.
12296 * arm-wince-tdep.c: Sort headers.
12297 * arm-tdep.c: Sort headers.
12298 * arm-symbian-tdep.c: Sort headers.
12299 * arm-pikeos-tdep.c: Sort headers.
12300 * arm-obsd-tdep.c: Sort headers.
12301 * arm-nbsd-tdep.c: Sort headers.
12302 * arm-nbsd-nat.c: Sort headers.
12303 * arm-linux-tdep.c: Sort headers.
12304 * arm-linux-nat.c: Sort headers.
12305 * arm-fbsd-tdep.c: Sort headers.
12306 * arm-fbsd-nat.c: Sort headers.
12307 * arm-bsd-tdep.c: Sort headers.
12308 * arch-utils.c: Sort headers.
12309 * arc-tdep.c: Sort headers.
12310 * arc-newlib-tdep.c: Sort headers.
12311 * annotate.h: Sort headers.
12312 * annotate.c: Sort headers.
12313 * amd64-windows-tdep.c: Sort headers.
12314 * amd64-windows-nat.c: Sort headers.
12315 * amd64-tdep.c: Sort headers.
12316 * amd64-sol2-tdep.c: Sort headers.
12317 * amd64-obsd-tdep.c: Sort headers.
12318 * amd64-obsd-nat.c: Sort headers.
12319 * amd64-nbsd-tdep.c: Sort headers.
12320 * amd64-nbsd-nat.c: Sort headers.
12321 * amd64-nat.c: Sort headers.
12322 * amd64-linux-tdep.c: Sort headers.
12323 * amd64-linux-nat.c: Sort headers.
12324 * amd64-fbsd-tdep.c: Sort headers.
12325 * amd64-fbsd-nat.c: Sort headers.
12326 * amd64-dicos-tdep.c: Sort headers.
12327 * amd64-darwin-tdep.c: Sort headers.
12328 * amd64-bsd-nat.c: Sort headers.
12329 * alpha-tdep.c: Sort headers.
12330 * alpha-obsd-tdep.c: Sort headers.
12331 * alpha-nbsd-tdep.c: Sort headers.
12332 * alpha-mdebug-tdep.c: Sort headers.
12333 * alpha-linux-tdep.c: Sort headers.
12334 * alpha-linux-nat.c: Sort headers.
12335 * alpha-bsd-tdep.c: Sort headers.
12336 * alpha-bsd-nat.c: Sort headers.
12337 * aix-thread.c: Sort headers.
12338 * agent.c: Sort headers.
12339 * addrmap.c: Sort headers.
12340 * ada-varobj.c: Sort headers.
12341 * ada-valprint.c: Sort headers.
12342 * ada-typeprint.c: Sort headers.
12343 * ada-tasks.c: Sort headers.
12344 * ada-lang.c: Sort headers.
12345 * aarch64-tdep.c: Sort headers.
12346 * aarch64-ravenscar-thread.c: Sort headers.
12347 * aarch64-newlib-tdep.c: Sort headers.
12348 * aarch64-linux-tdep.c: Sort headers.
12349 * aarch64-linux-nat.c: Sort headers.
12350 * aarch64-fbsd-tdep.c: Sort headers.
12351 * aarch64-fbsd-nat.c: Sort headers.
12352 * aarch32-linux-nat.c: Sort headers.
12353
12354 2019-04-04 Tom Tromey <tom@tromey.com>
12355
12356 * varobj.c (varobj_create): Update.
12357 * rust-exp.y (struct rust_parser) <update_innermost_block,
12358 lookup_symbol>: New methods.
12359 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12360 Rename.
12361 (rust_parser::rust_lookup_type)
12362 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12363 * printcmd.c (display_command, do_one_display): Update.
12364 * parser-defs.h (struct parser_state) <parser_state>: Add
12365 "tracker" parameter.
12366 (block_tracker): New member.
12367 (class innermost_block_tracker) <innermost_block_tracker>: Add
12368 "types" parameter.
12369 <reset>: Remove method.
12370 (innermost_block): Don't declare.
12371 (null_post_parser): Update.
12372 * parse.c (innermost_block): Remove global.
12373 (write_dollar_variable): Update.
12374 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12375 Remove "tracker_types" parameter.
12376 (parse_expression): Add "tracker" parameter.
12377 (parse_expression_for_completion): Update.
12378 (null_post_parser): Add "tracker" parameter.
12379 * p-exp.y: Update rules.
12380 * m2-exp.y: Update rules.
12381 * language.h (struct language_defn) <la_post_parser>: Add
12382 "tracker" parameter.
12383 * go-exp.y: Update rules.
12384 * f-exp.y: Update rules.
12385 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12386 parameter.
12387 * d-exp.y: Update rules.
12388 * c-exp.y: Update rules.
12389 * breakpoint.c (set_breakpoint_condition): Create an
12390 innermost_block_tracker.
12391 (watch_command_1): Likewise.
12392 * ada-lang.c (resolve): Add "tracker" parameter.
12393 (resolve_subexp): Likewise.
12394 * ada-exp.y (write_var_from_sym): Update.
12395
12396 2019-04-04 Tom Tromey <tom@tromey.com>
12397
12398 * type-stack.h: New file.
12399 * type-stack.c: New file.
12400 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12401 type-stack.h.
12402 (insert_into_type_stack, insert_type, push_type, push_type_int)
12403 (insert_type_address_space, pop_type, pop_type_int)
12404 (pop_typelist, pop_type_stack, append_type_stack)
12405 (push_type_stack, get_type_stack, push_typelist)
12406 (follow_type_instance_flags, follow_types): Don't declare.
12407 * parse.c (type_stack): Remove global.
12408 (parse_exp_in_context): Update.
12409 (insert_into_type_stack, insert_type, push_type, push_type_int)
12410 (insert_type_address_space, pop_type, pop_type_int)
12411 (pop_typelist, pop_type_stack, append_type_stack)
12412 (push_type_stack, get_type_stack, push_typelist)
12413 (follow_type_instance_flags, follow_types): Remove (moved to
12414 type-stack.c).
12415 * f-exp.y (type_stack): New global.
12416 Update rules.
12417 (push_kind_type, f_parse): Update.
12418 * d-exp.y (type_stack): New global.
12419 Update rules.
12420 (d_parse): Update.
12421 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12422 Update rules.
12423 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12424 (HFILES_NO_SRCDIR): Add type-stack.h.
12425
12426 2019-04-04 Tom Tromey <tom@tromey.com>
12427
12428 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12429 (rust_parser::convert_ast_to_expression, rust_parse)
12430 (rust_lex_test_completion, rust_lex_tests): Update.
12431 * parser-defs.h (struct expr_completion_state): New.
12432 (struct parser_state) <parser_state>: Add completion parameter.
12433 <mark_struct_expression, mark_completion_tag>: New methods.
12434 <parse_completion, m_completion_state>: New members.
12435 (prefixify_expression, null_post_parser): Update.
12436 (mark_struct_expression, mark_completion_tag): Don't declare.
12437 * parse.c (parse_completion, expout_last_struct)
12438 (expout_tag_completion_type, expout_completion_name): Remove
12439 globals.
12440 (parser_state::mark_struct_expression)
12441 (parser_state::mark_completion_tag): Now methods.
12442 (prefixify_expression): Add last_struct parameter.
12443 (prefixify_subexp): Likewise.
12444 (parse_exp_1): Update.
12445 (parse_exp_in_context): Add cstate parameter. Update.
12446 (parse_expression_for_completion): Create an
12447 expr_completion_state.
12448 (null_post_parser): Add "completion" parameter.
12449 * p-exp.y: Update rules.
12450 (yylex): Update.
12451 * language.h (struct language_defn) <la_post_parser>: Add
12452 "completing" parameter.
12453 * go-exp.y: Update rules.
12454 (lex_one_token): Update.
12455 * expression.h (parse_completion): Don't declare.
12456 * d-exp.y: Update rules.
12457 (lex_one_token): Update rules.
12458 * c-exp.y: Update rules.
12459 (lex_one_token): Update.
12460 * ada-lang.c (resolve): Add "parse_completion" parameter.
12461 (resolve_subexp): Likewise.
12462 (ada_resolve_function): Likewise.
12463
12464 2019-04-04 Tom Tromey <tom@tromey.com>
12465
12466 * parser-defs.h (struct parser_state) <start_arglist,
12467 end_arglist>: New methods.
12468 <arglist_len, m_funcall_chain>: New members.
12469 (arglist_len, start_arglist, end_arglist): Don't declare.
12470 * parse.c (arglist_len, funcall_chain): Remove global.
12471 (start_arglist, end_arglist): Remove functions.
12472 (parse_exp_in_context): Update.
12473 * p-exp.y: Update rules.
12474 * m2-exp.y: Update rules.
12475 * go-exp.y: Update rules.
12476 * f-exp.y: Update rules.
12477 * d-exp.y: Update rules.
12478 * c-exp.y: Update rules.
12479
12480 2019-04-04 Tom Tromey <tom@tromey.com>
12481
12482 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12483 lex_operator, push_back>: New methods.
12484 Update all rules.
12485 (rust_parser::lex_hex, lex_escape): Rename and update.
12486 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12487 (rust_parser::lex_operator): Rename and update.
12488 (rust_parser::lex_number, rustyylex, rustyyerror)
12489 (rust_lex_test_init, rust_lex_test_sequence)
12490 (rust_lex_test_push_back, rust_lex_tests): Update.
12491 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12492 parameter.
12493 <lexptr, prev_lexptr>: New members.
12494 (lexptr, prev_lexptr): Don't declare.
12495 * parse.c (lexptr, prev_lexptr): Remove globals.
12496 (parse_exp_in_context): Update.
12497 * p-exp.y (yylex, yyerror): Update.
12498 * m2-exp.y (parse_number, yylex, yyerror): Update.
12499 * go-exp.y (lex_one_token, yyerror): Update.
12500 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12501 * d-exp.y (lex_one_token, yyerror): Update.
12502 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12503 (lex_one_token, yyerror): Update.
12504 * ada-lex.l (YY_INPUT): Update.
12505 (rewind_to_char): Update.
12506 * ada-exp.y (yyerror): Update.
12507
12508 2019-04-04 Tom Tromey <tom@tromey.com>
12509
12510 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12511 * parser-defs.h (struct parser_state) <parser_state>: Add new
12512 parameter.
12513 <comma_terminates>: New member.
12514 (comma_terminates): Don't declare global.
12515 * parse.c (comma_terminates): Remove global.
12516 (parse_exp_in_context): Update.
12517 * p-exp.y (yylex): Update.
12518 * m2-exp.y (yylex): Update.
12519 * go-exp.y (lex_one_token): Update.
12520 * f-exp.y (yylex): Update.
12521 * d-exp.y (lex_one_token): Update.
12522 * c-exp.y (lex_one_token): Update.
12523 * ada-lex.l: Update.
12524
12525 2019-04-04 Tom Tromey <tom@tromey.com>
12526
12527 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12528 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12529 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12530 * parser-defs.h (paren_depth): Don't declare.
12531 * parse.c (paren_depth): Remove global.
12532 (parse_exp_in_context): Update.
12533 * p-exp.y (paren_depth): New global.
12534 (pascal_parse): Initialize it.
12535 * m2-exp.y (paren_depth): New global.
12536 (m2_parse): Initialize it.
12537 * go-exp.y (paren_depth): New global.
12538 (go_parse): Initialize it.
12539 * f-exp.y (paren_depth): New global.
12540 (f_parse): Initialize it.
12541 * d-exp.y (paren_depth): New global.
12542 (d_parse): Initialize it.
12543 * c-exp.y (paren_depth): New global.
12544 (c_parse): Initialize it.
12545 * ada-lex.l (paren_depth): New global.
12546 (lexer_init): Initialize it.
12547
12548 2019-04-04 Tom Tromey <tom@tromey.com>
12549
12550 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12551 (rust_parser::convert_ast_to_type)
12552 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12553 * parser-defs.h (struct parser_state) <parser_state>: Add
12554 parameters. Initialize new members.
12555 <expression_context_block, expression_context_pc>: New members.
12556 * parse.c (expression_context_block, expression_context_pc):
12557 Remove globals.
12558 (parse_exp_in_context): Update.
12559 * p-exp.y: Update all rules.
12560 (yylex): Update.
12561 * m2-exp.y: Update all rules.
12562 (yylex): Update.
12563 * go-exp.y (yylex): Update.
12564 * f-exp.y (yylex): Update.
12565 * d-exp.y: Update all rules.
12566 (yylex): Update.
12567 * c-exp.y: Update all rules.
12568 (lex_one_token, classify_name, yylex, c_parse): Update.
12569 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12570
12571 2019-04-04 Tom Tromey <tom@tromey.com>
12572
12573 * gdbarch.h, gdbarch.c: Rebuild.
12574 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12575 * stap-probe.h:
12576 (struct stap_parse_info): Replace "parser_state" with
12577 "expr_builder".
12578 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12579 (parser_state): New class.
12580 * parse.c (expr_builder): Rename.
12581 (expr_builder::release): Rename.
12582 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12583 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12584 (write_exp_elt_longcst, write_exp_elt_floatcst)
12585 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12586 (write_exp_string_vector, write_exp_bitstring)
12587 (write_exp_msymbol, mark_struct_expression)
12588 (write_dollar_variable)
12589 (insert_type_address_space, increase_expout_size): Replace
12590 "parser_state" with "expr_builder".
12591 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12592 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12593 "parser_state" with "expr_builder".
12594
12595 2019-04-04 Tom Tromey <tom@tromey.com>
12596
12597 * rust-exp.y: Replace "parse_language" with method call.
12598 * p-exp.y:
12599 (yylex): Replace "parse_language" with method call.
12600 * m2-exp.y:
12601 (yylex): Replace "parse_language" with method call.
12602 * go-exp.y (classify_name): Replace "parse_language" with method
12603 call.
12604 * f-exp.y (yylex): Replace "parse_language" with method call.
12605 * d-exp.y (lex_one_token): Replace "parse_language" with method
12606 call.
12607 * c-exp.y:
12608 (lex_one_token, classify_name, yylex): Replace "parse_language"
12609 with method call.
12610 * ada-exp.y (find_primitive_type, type_char)
12611 (type_system_address): Replace "parse_language" with method call.
12612
12613 2019-04-04 Tom Tromey <tom@tromey.com>
12614
12615 * rust-exp.y: Replace "parse_gdbarch" with method call.
12616 * parse.c (write_dollar_variable, insert_type_address_space):
12617 Replace "parse_gdbarch" with method call.
12618 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12619 call.
12620 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12621 call.
12622 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12623 "parse_gdbarch" with method call.
12624 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12625 with method call.
12626 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12627 "parse_gdbarch" with method call.
12628 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12629 "parse_gdbarch" with method call.
12630 * c-exp.y (parse_type, parse_number, classify_name): Replace
12631 "parse_gdbarch" with method call.
12632 * ada-lex.l: Replace "parse_gdbarch" with method call.
12633 * ada-exp.y (parse_type, find_primitive_type, type_char)
12634 (type_system_address): Replace "parse_gdbarch" with method call.
12635
12636 2019-04-04 Tom Tromey <tom@tromey.com>
12637
12638 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12639 * stap-probe.c (stap_parse_argument): Update.
12640 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12641 initial_size parameter.
12642 * rust-exp.y (rust_lex_tests): Update.
12643 * parse.c (parser_state): Update.
12644 (parse_exp_in_context): Update.
12645 * parser-defs.h (struct parser_state) <parser_state>: Remove
12646 "initial_size" parameter.
12647
12648 2019-04-04 Tom Tromey <tom@tromey.com>
12649
12650 * parser-defs.h (increase_expout_size): Don't declare.
12651 * parse.c (increase_expout_size): Now static.
12652
12653 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12654
12655 * gnu-nat.c (gnu_nat_target::wait): Fix
12656 target_waitstatus_to_string call.
12657
12658 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12659
12660 * eval.c (evaluate_subexp_standard): Handle internal functions
12661 during Fortran function call handling.
12662
12663 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12664
12665 * NEWS: Mention new internal functions.
12666 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12667 (read_base_type): Use dwarf2_init_complex_target_type.
12668 * value.c (creal_internal_fn): New function.
12669 (cimag_internal_fn): New function.
12670 (_initialize_values): Register new internal functions.
12671
12672 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12673
12674 * infrun.c (stop_all_threads): If debug_infrun, always
12675 trace the wait status after wait_one, using
12676 target_waitstatus_to_string and target_pid_to_str.
12677 (handle_inferior_event): Replace various trace of
12678 wait status kind by a single trace.
12679 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12680 wait status kind image by target_waitstatus_to_string.
12681 * target/waitstatus.c (target_waitstatus_to_string): Fix
12682 obsolete comment.
12683
12684 2019-04-01 Tom Tromey <tromey@adacore.com>
12685
12686 PR symtab/23331:
12687 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12688
12689 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12690 Pedro Alves <palves@redhat.com>
12691
12692 * top.c (quit_force): Call 'finalize_values'.
12693 * value.c (finalize_values): New function.
12694 * value.h (finalize_values): Declare.
12695
12696 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12697
12698 * NEWS: Announce $_gdb_major and $_gdb_minor.
12699
12700 * top.c (init_gdb_version_vars): New function.
12701 (gdb_init): Call init_gdb_version_vars.
12702
12703 2019-03-29 Tom Tromey <tromey@adacore.com>
12704
12705 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12706 help text. Remove dead code.
12707
12708 2019-03-29 Keith Seitz <keiths@redhat.com>
12709
12710 From Siddhesh Poyarekar:
12711 * f-lang.h (f77_get_upperbound): Return LONGEST.
12712 (f77_get_lowerbound): Likewise.
12713 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12714 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12715 print them.
12716 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12717 plongest to format print it.
12718 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12719 (f77_get_upperbound): Likewise.
12720 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12721 LOWER_BOUND to LONGEST.
12722 (f77_create_arrayprint_offset_tbl): Likewise.
12723
12724 2019-03-29 Keith Seitz <keiths@redhat.com>
12725
12726 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12727 %s/pulongest for TYPE_LENGTH instead of %d in format
12728 strings.
12729 * ada-typerint.c (ada_print_type): Likewise.
12730 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12731 * compile/compile-c-support.c (generate_register_struct): Likewise.
12732 * gdbtypes.c (recursive_dump_type): Likewise.
12733 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12734 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12735 instead of %d in format strings.
12736 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12737 to std::min to ULONGEST.
12738 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12739 instead of %d in format strings.
12740 * tracepoint.c (info_scope_command): Likewise.
12741 * typeprint.c (print_offset_data::update)
12742 (print_offset_data::finish): Likewise.
12743 * xtensa-tdep.c (xtensa_store_return_value)
12744 (xtensa_push_dummy_call): Likewise.
12745
12746 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12747
12748 * windows-nat.c (display_selector): Fixed format specifications
12749 for 64-bit Cygwin.
12750
12751 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12752
12753 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12754
12755 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12756
12757 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12758 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12759 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12760 (nios2_linux_init_abi): Install it.
12761
12762 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12763
12764 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12765
12766 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12767
12768 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12769
12770 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12771 Tom Tromey <tromey@adacore.com>
12772
12773 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12774
12775 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12776
12777 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12778 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12779 method to compute the bounds of range types. Also print "[evaluated]"
12780 if the bounds' values come from a dynamic evaluation.
12781
12782 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12783
12784 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12785 whitespace when pretty printing is on.
12786
12787 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12788
12789 * ppc-linux-nat.c: Add include.
12790
12791 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12792
12793 * NEWS: Mention AArch64 Pointer Authentication.
12794
12795 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12796
12797 * arm-linux-nat.c: Add include.
12798
12799 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12800
12801 * source-cache.c (source_cache::get_source_lines): Re-read
12802 fullname after calling open_source_file.
12803
12804 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12805
12806 * NEWS: Mention TLS support for FreeBSD.
12807
12808 2019-03-25 Tom Tromey <tromey@adacore.com>
12809
12810 * minsyms.c (BUNCH_SIZE): Update comment.
12811 (~minimal_symbol_reader): Remove old comment.
12812 (compact_minimal_symbols): Update comment.
12813 (minimal_symbol_reader::install): Remove old comment. Update
12814 other comments.
12815
12816 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12817
12818 * s390-linux-nat.c: Add include.
12819
12820 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12821
12822 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12823 Call linux_get_hwcap.
12824 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12825 Likewise.
12826 (aarch64_linux_get_hwcap): Remove function.
12827 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12828 declaration.
12829 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12830 linux_get_hwcap.
12831 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12832 * linux-tdep.c (linux_get_hwcap): Add function.
12833 (linux_get_hwcap2): Likewise.
12834 * linux-tdep.h (linux_get_hwcap): Add declaration.
12835 (linux_get_hwcap2): Likewise.
12836 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12837 (ppc_linux_get_hwcap2): Likewise.
12838 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12839 linux_get_hwcap.
12840 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12841 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12842 (ppc_linux_nat_target::read_description): Likewise.
12843 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12844 * s390-linux-nat.c: Likewise.
12845 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12846
12847 2019-03-24 Tom Tromey <tom@tromey.com>
12848
12849 * ada-lang.c (standard_lookup): Simplify initialization.
12850 (ada_lookup_symbol_nonlocal): Simplify return.
12851 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12852 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12853 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12854 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12855 initialization.
12856 * solib.c (solib_global_lookup): Simplify.
12857 * symtab.c (null_block_symbol): Remove.
12858 (symbol_cache_lookup): Simplify returns.
12859 (lookup_language_this): Simplify returns.
12860 (lookup_symbol_aux): Simplify return.
12861 (lookup_local_symbol): Simplify returns.
12862 (lookup_global_symbol_from_objfile): Simplify return.
12863 (lookup_symbol_in_objfile_symtabs)
12864 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12865 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12866 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12867 * cp-namespace.c (cp_lookup_bare_symbol)
12868 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12869 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12870 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12871 (cp_lookup_symbol_via_imports): Simplify initialization.
12872 (find_symbol_in_baseclass): Likewise.
12873 * symtab.h (null_block_symbol): Remove.
12874 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12875 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12876 (d_lookup_symbol_module): Likewise.
12877 (find_symbol_in_baseclass): Simplify initialization.
12878
12879 2019-03-24 Tom Tromey <tom@tromey.com>
12880
12881 * expression.h: Don't include symtab.h.
12882 (struct block): Forward declare.
12883
12884 2019-03-24 Tom Tromey <tom@tromey.com>
12885
12886 * c-exp.y (typebase): Remove casts.
12887 * gdbtypes.c (lookup_unsigned_typename, )
12888 (lookup_signed_typename): Remove cast.
12889 * eval.c (parse_to_comma_and_eval): Remove cast.
12890 * parse.c (write_dollar_variable): Remove cast.
12891 * block.h (struct block) <superblock>: Now const.
12892 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12893 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12894 (map_block): Make "block" const.
12895 * symfile.h (struct quick_symbol_functions)
12896 <map_matching_symbols>: Constify block argument to "callback".
12897 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12898 const.
12899 (find_pc_sect_compunit_symtab): Make "b" const.
12900 (find_symbol_at_address): Likewise.
12901 (search_symbols): Likewise.
12902 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12903 (dw2_debug_names_lookup_symbol): Likewise.
12904 (dw2_map_matching_symbols): Update.
12905 * p-valprint.c (pascal_val_print): Remove "block".
12906 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12907 (aux_add_nonlocal_symbols): Make "block" const.
12908 (resolve_subexp): Remove cast.
12909 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12910 const.
12911 (iterate_over_file_blocks): Likewise.
12912 * f-exp.y (%union) <bval>: Remove.
12913 * coffread.c (patch_opaque_types): Make "b" const.
12914 * spu-tdep.c (spu_catch_start): Make "block" const.
12915 * c-valprint.c (print_unpacked_pointer): Remove "block".
12916 * symmisc.c (dump_symtab_1): Make "b" const.
12917 (block_depth): Make "block" const.
12918 * d-exp.y (%union) <bval>: Remove.
12919 * cp-support.h (cp_lookup_rtti_type): Update.
12920 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12921 * psymtab.c (psym_lookup_symbol): Make "block" const.
12922 (maintenance_check_psymtabs): Make "b" const.
12923 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12924 (enumerate_locals, enumerate_args): Update.
12925 * python/py-symtab.c (stpy_global_block): Make "block" const.
12926 (stpy_static_block): Likewise.
12927 * inline-frame.c (block_starting_point_at): Make "new_block"
12928 const.
12929 * block.c (find_block_in_blockvector): Make return type const.
12930 (blockvector_for_pc_sect): Make "b" const.
12931 (find_block_in_blockvector): Make "b" const.
12932
12933 2019-03-23 Tom Tromey <tom@tromey.com>
12934
12935 * varobj.c (varobj_create): Update.
12936 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12937 * printcmd.c (display_command, do_one_display): Don't reset
12938 innermost_block.
12939 * parser-defs.h (enum innermost_block_tracker_type): Move to
12940 expression.h.
12941 (innermost_block): Update comment.
12942 * parse.c (parse_exp_1): Add tracker_types parameter.
12943 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12944 tracker_types parameter. Reset innermost_block.
12945 (parse_exp_in_context): Remove.
12946 (parse_expression_for_completion): Update.
12947 * objfiles.c (~objfile): Don't reset expression_context_block or
12948 innermost_block.
12949 * expression.h (enum innermost_block_tracker_type): Move from
12950 parser-defs.h.
12951 (parse_exp_1): Add tracker_types parameter.
12952 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12953 reset innermost_block.
12954
12955 2019-03-23 Tom Tromey <tom@tromey.com>
12956
12957 * objfiles.h: Include bcache.h.
12958
12959 2019-03-23 Tom Tromey <tom@tromey.com>
12960
12961 * linespec.c (get_current_search_block): Use
12962 scoped_restore_current_language.
12963 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12964
12965 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12966 Jiong Wang <jiong.wang@arm.com>
12967
12968 * aarch64-linux-tdep.c
12969 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12970 section.
12971 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12972
12973 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12974 Jiong Wang <jiong.wang@arm.com>
12975
12976 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12977 instructions.
12978 (aarch64_analyze_prologue_test): Add PACIASP test.
12979 (aarch64_prologue_prev_register): Unmask PC value.
12980
12981 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12982 Jiong Wang <jiong.wang@arm.com>
12983
12984 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12985 (aarch64_dwarf2_prev_register): Unmask PC value.
12986 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12987 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12988 DW_CFA_AARCH64_negate_ra_state.
12989 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12990
12991 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12992 Jiong Wang <jiong.wang@arm.com>
12993
12994 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12995 registers.
12996 (aarch64_pseudo_register_name): Likewise.
12997 (aarch64_pseudo_register_type): Likewise.
12998 (aarch64_pseudo_register_reggroup_p): Likewise.
12999 (aarch64_gdbarch_init): Add pauth registers.
13000 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13001 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13002 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13003 (struct gdbarch_tdep): Add regnum for ra_state.
13004
13005 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13006 Jiong Wang <jiong.wang@arm.com>
13007
13008 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13009
13010 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13011 Jiong Wang <jiong.wang@arm.com>
13012
13013 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13014 function.
13015 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13016 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13017 (aarch64_gdbarch_init): Add puth registers.
13018 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13019 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13020 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13021
13022 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13023 Jiong Wang <jiong.wang@arm.com>
13024
13025 * aarch64-linux-nat.c
13026 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13027 * aarch64-linux-tdep.c
13028 (aarch64_linux_core_read_description): Likewise.
13029 (aarch64_linux_get_hwcap): New function.
13030 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13031 (aarch64_linux_get_hwcap): New declaration.
13032
13033 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13034 Jiong Wang <jiong.wang@arm.com>
13035
13036 * aarch64-linux-nat.c
13037 (aarch64_linux_nat_target::read_description): Add pauth param.
13038 * aarch64-linux-tdep.c
13039 (aarch64_linux_core_read_description): Likewise.
13040 * aarch64-tdep.c (struct target_desc): Add in pauth.
13041 (aarch64_read_description): Add pauth param.
13042 (aarch64_gdbarch_init): Likewise.
13043 * aarch64-tdep.h (aarch64_read_description): Likewise.
13044 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13045 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13046 * features/Makefile: Add new files.
13047 * features/aarch64-pauth.c: New file.
13048 * features/aarch64-pauth.xml: New file.
13049
13050 2019-03-20 Tom Tromey <tromey@adacore.com>
13051
13052 * infrun.c (handle_inferior_event): Rename from
13053 handle_inferior_event_1. Create a scoped_value_mark.
13054 (handle_inferior_event): Remove.
13055
13056 2019-03-19 Tom Tromey <tromey@adacore.com>
13057
13058 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13059 * infrun.h (print_stop_event): Add "displays" parameter.
13060 * infrun.c (print_stop_event): Add "displays" parameter.
13061
13062 2019-03-19 Pedro Alves <palves@redhat.com>
13063
13064 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13065 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13066 to -1. Fix TABs vs spaces.
13067 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13068 * tui/tui-out.h (tui_ui_out) Add intro comments.
13069 <m_line, m_start_of_line>: In-class initialize, and add describing
13070 comment.
13071
13072 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13073
13074 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13075 variable names.
13076 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13077
13078 2019-03-18 Pedro Alves <palves@redhat.com>
13079 Eli Zaretskii <eliz@gnu.org>
13080
13081 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13082 m_line and m_start_of_line.
13083
13084 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13085
13086 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13087 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13088 it returns a newline. This fixes a regression in TU mode, whereby
13089 the next line is output on the same screen line as the user input.
13090
13091 2019-03-18 Tom Tromey <tromey@adacore.com>
13092
13093 * minsyms.c (minimal_symbol_reader::install): Remove call to
13094 obstack_blank.
13095
13096 2019-03-18 Pedro Alves <palves@redhat.com>
13097
13098 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13099 New globals.
13100 (apply_style): New, factored out from ...
13101 (apply_ansi_escape): ... this. Handle reverse video mode.
13102 (tui_set_reverse_mode): New function.
13103 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13104 * tui/tui-winsource.c (tui_show_source_line): Use
13105 tui_set_reverse_mode instead of setting A_STANDOUT.
13106 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13107 New setter methods.
13108
13109 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13110
13111 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13112 Handle tabs.
13113
13114 2019-03-18 Tom Tromey <tromey@adacore.com>
13115
13116 * ada-lang.c (empty_array): Add "high" parameter.
13117 (ada_evaluate_subexp): Update.
13118
13119 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13120
13121 * unittests/string_view-selftests.c: Define
13122 _initialize_string_view_selftests unconditionally.
13123
13124 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13125
13126 PR gdb/24350
13127 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13128
13129 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13130
13131 PR gdb/24351
13132 * windows-nat.c (display_selector): Fix format specifiers.
13133
13134 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13135
13136 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13137 tui_refill_source_window instead of tui_refresh_win, to update the
13138 current execution line. This fixes redisplay of the current line
13139 when stepping through the code with "next" or "step".
13140
13141 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13142
13143 * source-cache.c (source_cache::get_source_lines): Call
13144 find_source_lines to initialize s->nlines. This fixes vertical
13145 scrolling of TUI source window when the DOWN arrow is pressed.
13146
13147 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13148
13149 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13150 linux-thread-db.c (_initialize_thread_db): Likewise.
13151
13152 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13153
13154 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13155 wclrtoeol in tui_show_source_line". This reverts changes made in
13156 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13157
13158 2019-03-15 Tom Tromey <tom@tromey.com>
13159
13160 * symtab.h (struct minimal_symbol): Derive from
13161 general_symbol_info.
13162 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13163 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13164 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13165 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13166 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13167 (MSYMBOL_SEARCH_NAME): Update.
13168 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13169 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13170 * minsyms.c (minimal_symbol_reader::record_full): Update.
13171
13172 2019-03-15 Tom Tromey <tom@tromey.com>
13173
13174 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13175
13176 2019-03-15 Tom Tromey <tom@tromey.com>
13177
13178 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13179 unique_xmalloc_ptr.
13180 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13181 Update.
13182 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13183 (build_minimal_symbol_hash_tables)
13184 (minimal_symbol_reader::install): Update.
13185
13186 2019-03-15 Tom Tromey <tom@tromey.com>
13187
13188 * symtab.c (create_demangled_names_hash): Update.
13189 (symbol_set_names): Update.
13190 * objfiles.h (struct objfile_per_bfd_storage)
13191 <demangled_names_hash>: Now an htab_up.
13192 * objfiles.c (objfile_per_bfd_storage): Simplify.
13193
13194 2019-03-15 Tom Tromey <tom@tromey.com>
13195
13196 * objfiles.h (struct objfile_per_bfd_storage): Declare
13197 destructor.
13198 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13199 New.
13200 (get_objfile_bfd_data): Use new. Don't initialize
13201 language_of_main.
13202 (free_objfile_per_bfd_storage): Remove.
13203 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13204
13205 2019-03-15 Tom Tromey <tom@tromey.com>
13206
13207 * symfile.c (reread_symbols): Update.
13208 * objfiles.c (objfile::objfile): Update.
13209 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13210 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13211 comment.
13212 (minimal_symbol_reader::install): Update.
13213 (terminate_minimal_symbol_table): Remove.
13214 * jit.c (jit_object_close_impl): Update.
13215
13216 2019-03-15 Tom Tromey <tom@tromey.com>
13217
13218 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13219 initializations.
13220
13221 2019-03-15 Tom Tromey <tom@tromey.com>
13222
13223 * objfiles.h (struct objfile_per_bfd_storage)
13224 <demangled_hash_languages>: Now a bitset.
13225 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13226 (lookup_minimal_symbol): Update.
13227
13228 2019-03-15 Tom Tromey <tom@tromey.com>
13229
13230 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13231 Don't return the symbol.
13232 * coffread.c (record_minimal_symbol): Use record_full.
13233
13234 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13235
13236 The MS-Windows port of ncurses fails to switch to a color pair if
13237 one or both of the colors are the implicit default colors. This
13238 change records the default colors when TUI is initialized, and
13239 then specifies them explicitly when a color pair uses the default
13240 colors. This allows color styling in TUI mode on MS-Windows.
13241
13242 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13243 ncurses_norm_attr.
13244 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13245 colors in ncurses_norm_attr.
13246 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13247 "none", replace it with the default color recorded in
13248 ncurses_norm_attr.
13249
13250 2019-03-14 Tom Tromey <tromey@adacore.com>
13251
13252 * source-cache.h (class source_cache) <get_source_lines>: Return
13253 std::string.
13254 * source-cache.c (source_cache::extract_lines): Handle case where
13255 first_pos==npos. Return std::string.
13256 (source_cache::get_source_lines): Update.
13257
13258 2019-03-14 Tom Tromey <tromey@adacore.com>
13259
13260 * NEWS: Add item for "style sources" commands.
13261 * source-cache.c (source_cache::get_source_lines): Check
13262 source_styling.
13263 * cli/cli-style.c (source_styling): New global.
13264 (_initialize_cli_style): Add "style sources" commands.
13265 (show_style_sources): New function.
13266 * cli/cli-style.h (source_styling): Declare.
13267
13268 2019-03-14 Pedro Alves <palves@redhat.com>
13269 Tom Tromey <tromey@adacore.com>
13270
13271 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13272 * tui/tui-winsource.c (tui_refill_source_window): New function,
13273 from...
13274 (tui_horizontal_source_scroll): ... here. Move some logic.
13275 * cli/cli-style.c (set_style_enabled): Notify new observable.
13276 * tui/tui-hooks.c (tui_redisplay_source): New function.
13277 (tui_attach_detach_observers): Attach or detach
13278 tui_redisplay_source.
13279 * observable.h (source_styling_changed): New observable.
13280 * observable.c: Define source_styling_changed observable.
13281
13282 2019-03-13 Tom Tromey <tromey@adacore.com>
13283
13284 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13285 (i386_gnu_nat_target::store_registers): Update.
13286 * target-debug.h (target_debug_print_std_string): New macro.
13287 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13288 * windows-tdep.c (display_one_tib): Update.
13289 * tui/tui-stack.c (tui_make_status_line): Update.
13290 * top.c (print_inferior_quit_action): Update.
13291 * thread.c (thr_try_catch_cmd): Update.
13292 (add_thread_with_info): Update.
13293 (thread_target_id_str): Update.
13294 (thr_try_catch_cmd): Update.
13295 (thread_command): Update.
13296 (thread_find_command): Update.
13297 * record-btrace.c (record_btrace_target::info_record)
13298 (record_btrace_resume_thread, record_btrace_target::resume)
13299 (record_btrace_cancel_resume, record_btrace_step_thread)
13300 (record_btrace_target::wait, record_btrace_target::wait)
13301 (record_btrace_target::wait, record_btrace_target::stop): Update.
13302 * progspace.c (print_program_space): Update.
13303 * process-stratum-target.c
13304 (process_stratum_target::thread_address_space): Update.
13305 * linux-fork.c (linux_fork_mourn_inferior)
13306 (detach_checkpoint_command, info_checkpoints_command)
13307 (linux_fork_context): Update.
13308 (linux_fork_detach): Update.
13309 (class scoped_switch_fork_info): Update.
13310 (delete_checkpoint_command): Update.
13311 * infrun.c (follow_fork_inferior): Update.
13312 (follow_fork_inferior): Update.
13313 (proceed_after_vfork_done): Update.
13314 (handle_vfork_child_exec_or_exit): Update.
13315 (follow_exec): Update.
13316 (displaced_step_prepare_throw): Update.
13317 (displaced_step_restore): Update.
13318 (start_step_over): Update.
13319 (resume_1): Update.
13320 (clear_proceed_status_thread): Update.
13321 (proceed): Update.
13322 (print_target_wait_results): Update.
13323 (do_target_wait): Update.
13324 (context_switch): Update.
13325 (stop_all_threads): Update.
13326 (restart_threads): Update.
13327 (finish_step_over): Update.
13328 (handle_signal_stop): Update.
13329 (switch_back_to_stepped_thread): Update.
13330 (keep_going_pass_signal): Update.
13331 (print_exited_reason): Update.
13332 (normal_stop): Update.
13333 * inferior.c (inferior_pid_to_str): Change return type.
13334 (print_selected_inferior): Update.
13335 (add_inferior): Update.
13336 (detach_inferior): Update.
13337 * dummy-frame.c (fprint_dummy_frames): Update.
13338 * dcache.c (dcache_info_1): Update.
13339 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13340 (btrace_fetch, btrace_clear): Update.
13341 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13342 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13343 type.
13344 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13345 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13346 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13347 * gdbarch.c, gdbarch.h: Rebuild.
13348 * gdbarch.sh (core_pid_to_str): Change return type.
13349 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13350 return type.
13351 (windows_nat_target::pid_to_str): Change return type.
13352 (windows_delete_thread): Update.
13353 (windows_nat_target::attach): Update.
13354 (windows_nat_target::files_info): Update.
13355 * target-delegates.c: Rebuild.
13356 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13357 return type.
13358 (sol_thread_target::pid_to_str): Change return type.
13359 * remote.c (class remote_target) <pid_to_str>: Change return
13360 type.
13361 (remote_target::pid_to_str): Change return type.
13362 (extended_remote_target::attach, remote_target::remote_stop_ns)
13363 (remote_target::remote_notif_remove_queued_reply)
13364 (remote_target::push_stop_reply, remote_target::disable_btrace):
13365 Update.
13366 (extended_remote_target::attach): Update.
13367 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13368 type.
13369 (gdbsim_target::pid_to_str): Change return type.
13370 * ravenscar-thread.c (struct ravenscar_thread_target)
13371 <pid_to_str>: Change return type.
13372 (ravenscar_thread_target::pid_to_str): Change return type.
13373 * procfs.c (class procfs_target) <pid_to_str>: Change return
13374 type.
13375 (procfs_target::pid_to_str): Change return type.
13376 (procfs_target::attach): Update.
13377 (procfs_target::detach): Update.
13378 (procfs_target::fetch_registers): Update.
13379 (procfs_target::store_registers): Update.
13380 (procfs_target::wait): Update.
13381 (procfs_target::files_info): Update.
13382 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13383 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13384 return type.
13385 (nto_procfs_target::pid_to_str): Change return type.
13386 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13387 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13388 return type.
13389 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13390 (exit_lwp): Update.
13391 (attach_proc_task_lwp_callback, get_detach_signal)
13392 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13393 (linux_nat_target::resume, wait_lwp, stop_callback)
13394 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13395 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13396 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13397 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13398 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13399 type.
13400 (inf_ptrace_target::attach): Update.
13401 (inf_ptrace_target::files_info): Update.
13402 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13403 type.
13404 (go32_nat_target::pid_to_str): Change return type.
13405 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13406 (gnu_nat_target::wait): Update.
13407 (gnu_nat_target::wait): Update.
13408 (gnu_nat_target::resume): Update.
13409 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13410 (fbsd_nat_target::wait): Update.
13411 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13412 type.
13413 (darwin_nat_target::attach): Update.
13414 * corelow.c (class core_target) <pid_to_str>: Change return type.
13415 (core_target::pid_to_str): Change return type.
13416 * target.c (normal_pid_to_str): Change return type.
13417 (default_pid_to_str): Likewise.
13418 (target_pid_to_str): Change return type.
13419 (target_translate_tls_address): Update.
13420 (target_announce_detach): Update.
13421 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13422 return type.
13423 (bsd_uthread_target::pid_to_str): Change return type.
13424 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13425 type.
13426 (bsd_kvm_target::pid_to_str): Change return type.
13427 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13428 return type.
13429 (aix_thread_target::pid_to_str): Change return type.
13430 * target.h (struct target_ops) <pid_to_str>: Change return type.
13431 (target_pid_to_str, normal_pid_to_str): Likewise.
13432 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13433 type.
13434 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13435 type.
13436 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13437 return type.
13438 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13439 type.
13440 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13441 type.
13442 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13443 return type.
13444
13445 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13446
13447 * NEWS: Mention that the new default MI version is 3. Mention
13448 changes to the output of commands and events that deal with
13449 multi-location breakpoints.
13450 * breakpoint.c: Include "mi/mi-out.h".
13451 (print_one_breakpoint): Change output syntax if using MI version
13452 >= 3.
13453 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13454 New.
13455 (mi_multi_location_breakpoint_output_fixed): New.
13456 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13457 (mi_cmd_fix_multi_location_breakpoint_output): New.
13458 (mi_multi_location_breakpoint_output_fixed): New.
13459 * mi/mi-cmds.c (mi_cmds): Register command
13460 -fix-multi-location-breakpoint-output.
13461 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13462 interpreter "mi".
13463
13464 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13465
13466 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13467 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13468 instantiate mi_ui_out based on interpreter name.
13469 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13470 * mi/mi-main.c (mi_load_progress): Likewise.
13471
13472 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13473
13474 * NEWS: Combine separate "New targets" sections for 8.3.
13475
13476 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13477
13478 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13479 (ppcfbsd_init_abi): Install gdbarch
13480 "fetch_tls_load_module_address" and "get_thread_local_address"
13481 methods.
13482
13483 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13484
13485 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13486 (riscv_fbsd_init_abi): Install gdbarch
13487 "fetch_tls_load_module_address" and "get_thread_local_address"
13488 methods.
13489
13490 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13491
13492 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13493 (i386fbsd_init_abi): Install gdbarch
13494 "fetch_tls_load_module_address" and "get_thread_local_address"
13495 methods.
13496
13497 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13498
13499 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13500 (amd64fbsd_init_abi): Install gdbarch
13501 "fetch_tls_load_module_address" and "get_thread_local_address"
13502 methods.
13503
13504 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13505
13506 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13507 (struct fbsd_pspace_data): New type.
13508 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13509 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13510 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13511 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13512 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13513
13514 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13515
13516 * gdbtypes.c (lookup_struct_elt): New function.
13517 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13518 * gdbtypes.h (struct struct_elt): New type.
13519 (lookup_struct_elt): New prototype.
13520
13521 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13522
13523 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13524 remove disabled code block.
13525
13526 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13527
13528 * gdbarch.sh (get_thread_local_address): New method.
13529 * gdbarch.h, gdbarch.c: Regenerate.
13530 * target.c (target_translate_tls_address): Use
13531 gdbarch_get_thread_local_address if present instead of
13532 target::get_thread_local_address.
13533
13534 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13535
13536 * target.h (target::get_thread_local_address): Update comment.
13537
13538 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13539
13540 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13541 objfile->separate_debug_objfile_backlink if not NULL.
13542
13543 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13544
13545 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13546 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13547 (amd64bsd_store_inferior_registers): Likewise.
13548 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13549 Enable segment base registers.
13550 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13551 PT_GETFSBASE and PT_GETGSBASE.
13552 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13553 PT_SETGSBASE.
13554 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13555 segment base registers.
13556 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13557
13558 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13559
13560 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13561 Update calls to i386_target_description to add 'segments'
13562 parameter.
13563 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13564 add segment base registers.
13565 * arch/i386.c (i386_create_target_description): Add 'segments'
13566 parameter to enable segment base registers.
13567 * arch/i386.h (i386_create_target_description): Likewise.
13568 * features/i386/32bit-segments.xml: New file.
13569 * features/i386/32bit-segments.c: Generate.
13570 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13571 call to i386_target_description to add 'segments' parameter.
13572 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13573 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13574 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13575 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13576 if feature is present.
13577 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13578 Add 'segments' parameter to call to i386_target_description.
13579 (i386_target_description): Add 'segments' parameter to enable
13580 segment base registers.
13581 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13582 to call to i386_target_description.
13583 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13584 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13585 Define I386_NUM_REGS.
13586 (i386_target_description): Add 'segments' parameter to enable
13587 segment base registers.
13588
13589 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13590
13591 PR/24325
13592 * source-cache.c: #undef open and close, to avoid unresolved
13593 externals during linking.
13594
13595 2019-03-12 Tom Tromey <tromey@adacore.com>
13596
13597 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13598 const. Add initializers.
13599 (_initialize_remote): Don't initialize ptid globals.
13600
13601 2019-03-12 Pedro Alves <palves@redhat.com>
13602
13603 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13604
13605 2019-03-12 Pedro Alves <palves@redhat.com>
13606
13607 * cp-name-parser.y (main): Remove unused 'len' variable.
13608
13609 2019-03-12 Tom Tromey <tromey@adacore.com>
13610
13611 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13612 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13613
13614 2019-03-12 Tom Tromey <tromey@adacore.com>
13615
13616 * linux-nat.c (iterate_over_lwps): Update.
13617 (stop_callback): Remove parameter.
13618 (stop_wait_callback, detach_callback, resume_set_callback)
13619 (select_singlestep_lwp_callback, set_ignore_sigint)
13620 (status_callback, resumed_callback, resume_clear_callback)
13621 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13622 data parameter.
13623 (linux_nat_target::detach, linux_nat_target::resume)
13624 (linux_stop_and_wait_all_lwps, select_event_lwp)
13625 (linux_nat_filter_event, linux_nat_wait_1)
13626 (linux_nat_target::kill, linux_nat_target::stop)
13627 (linux_nat_target::stop): Update.
13628 (linux_nat_resume_callback): Change type.
13629 (resume_stopped_resumed_lwps, count_events_callback)
13630 (select_event_lwp_callback): Likewise.
13631 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13632 * arm-linux-nat.c (struct update_registers_data): Remove.
13633 (update_registers_callback): Change type.
13634 (arm_linux_insert_hw_breakpoint1): Update.
13635 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13636 parameter.
13637 (x86_linux_dr_set_addr): Update.
13638 (x86_linux_dr_set_control): Update.
13639 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13640 (iterate_over_lwps): Use gdb::function_view.
13641 * nat/aarch64-linux-hw-point.c (struct
13642 aarch64_dr_update_callback_param): Remove.
13643 (debug_reg_change_callback): Change type.
13644 (aarch64_notify_debug_reg_change): Update.
13645 * s390-linux-nat.c (s390_refresh_per_info): Update.
13646
13647 2019-03-11 Tom Tromey <tromey@adacore.com>
13648
13649 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13650 redundant assignment to "this_cu".
13651
13652 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13653
13654 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13655
13656 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13657
13658 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13659 from...
13660 (rank_one_type): ... this.
13661
13662 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13663
13664 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13665 from...
13666 (rank_one_type): ... this.
13667
13668 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13669
13670 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13671 from...
13672 (rank_one_type): ... this.
13673
13674 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13675
13676 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13677 from...
13678 (rank_one_type): ... this.
13679
13680 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13681
13682 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13683 from...
13684 (rank_one_type): ... this.
13685
13686 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13687
13688 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13689 from...
13690 (rank_one_type): ... this.
13691
13692 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13693
13694 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13695 from...
13696 (rank_one_type): ... this.
13697
13698 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13699
13700 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13701 from...
13702 (rank_one_type): ... this.
13703
13704 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13705
13706 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13707 from...
13708 (rank_one_type): ... this.
13709
13710 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13711
13712 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13713 from...
13714 (rank_one_type): ... this.
13715
13716 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13717
13718 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13719 from...
13720 (rank_one_type): ... this.
13721
13722 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13723
13724 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13725 from...
13726 (rank_one_type): ... this.
13727
13728 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13729
13730 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13731 inferior-events' shows the example events.
13732
13733 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13734
13735 Support styling on native MS-Windows console
13736
13737 PR/24315
13738 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13739 on MS-Windows if $TERM is not defined.
13740
13741 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13742
13743 * posix-hdep.c (gdb_console_fputs):
13744 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13745 functions.
13746 * ui-file.h (gdb_console_fputs): Add prototype.
13747
13748 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13749 back to fputs only if the former returns zero.
13750
13751 2019-03-07 Tom Tromey <tom@tromey.com>
13752
13753 * symmisc.c (print_symbol_bcache_statistics): Update.
13754 (print_objfile_statistics): Update.
13755 * symfile.c (allocate_symtab): Update.
13756 * stabsread.c: Don't include bcache.h.
13757 * psymtab.h (struct psymbol_bcache): Don't declare.
13758 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13759 (psymbol_bcache_init, psymbol_bcache_free)
13760 (psymbol_bcache_get_bcache): Don't declare.
13761 * psymtab.c (struct psymbol_bcache): Remove.
13762 (psymtab_storage::psymtab_storage): Update.
13763 (psymtab_storage::~psymtab_storage): Update.
13764 (psymbol_bcache_init, psymbol_bcache_free)
13765 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13766 (add_psymbol_to_bcache): Update.
13767 (allocate_psymtab): Update.
13768 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13769 macro_cache>: No longer pointers.
13770 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13771 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13772 * macrotab.c (macro_bcache): Update.
13773 * macroexp.c: Don't include bcache.h.
13774 * gdbtypes.c (check_types_worklist): Update.
13775 (types_deeply_equal): Remove TRY/CATCH. Update.
13776 * elfread.c (elf_symtab_read): Update.
13777 * dwarf2read.c: Don't include bcache.h.
13778 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13779 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13780 (print_bcache_statistics, bcache_memory_used): Don't declare.
13781 (struct bcache): Move from bcache.c. Add constructor, destructor,
13782 methods. Rename all data members.
13783 * bcache.c (struct bcache): Move to bcache.h.
13784 (bcache::expand_hash_table): Rename from expand_hash_table.
13785 (bcache): Remove.
13786 (bcache::insert): Rename from bcache_full.
13787 (bcache::compare): Rename from bcache_compare.
13788 (bcache_xmalloc): Remove.
13789 (bcache::~bcache): Rename from bcache_xfree.
13790 (bcache::print_statistics): Rename from print_bcache_statistics.
13791 (bcache::memory_used): Rename from bcache_memory_used.
13792
13793 2019-03-07 Pedro Alves <palves@redhat.com>
13794
13795 * infrun.c (normal_stop): Also check for
13796 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13797
13798 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13799
13800 * f-lang.c (value_from_host_double): Moved to...
13801 * value.c (value_from_host_double): ...here.
13802 * value.h (value_from_host_double): Declare.
13803 * guile/scm-math.c (vlscm_convert_typed_number): Use
13804 value_from_host_double.
13805 (vlscm_convert_number): Likewise.
13806 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13807 * python/py-value.c (convert_value_from_python): Likewise.
13808
13809 2019-03-06 Tom Tromey <tom@tromey.com>
13810
13811 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13812
13813 2019-03-06 Tom Tromey <tom@tromey.com>
13814
13815 * utils.h (free_current_contents): Don't declare.
13816 * utils.c (free_current_contents): Remove.
13817
13818 2019-03-06 Tom Tromey <tom@tromey.com>
13819
13820 * top.c (quit_force): Update.
13821 * main.c (captured_command_loop): Update.
13822 * common/new-op.c (operator new): Update.
13823 * common/common-exceptions.c (struct catcher)
13824 <save_cleanup_chain>: Remove member.
13825 (exceptions_state_mc_init): Update.
13826 (exception_try_scope_entry): Return nullptr.
13827 (exception_try_scope_exit, exception_rethrow)
13828 (throw_exception_sjlj, throw_exception_cxx): Update.
13829 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13830 (all_cleanups, do_cleanups, discard_cleanups)
13831 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13832 (restore_cleanups, restore_final_cleanups): Don't declare.
13833 (do_final_cleanups): Remove parameter.
13834 * common/cleanups.c (cleanup_chain, make_cleanup)
13835 (make_cleanup_dtor, all_cleanups, do_cleanups)
13836 (discard_my_cleanups, discard_cleanups)
13837 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13838 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13839 (null_cleanup): Remove.
13840 (do_final_cleanups): Remove parameter.
13841
13842 2019-03-06 Tom Tromey <tom@tromey.com>
13843
13844 * remote.c (remote_target::remote_parse_stop_reply): Use
13845 unique_xmalloc_ptr.
13846
13847 2019-03-06 Tom Tromey <tom@tromey.com>
13848
13849 * stabsread.c (struct stabs_field_info): Rename from field_info.
13850 <list, fnlist>: Add initializers.
13851 <obstack>: New member.
13852 (read_member_functions, read_struct_fields, read_baseclasses):
13853 Allocate on obstack. Don't use cleanups.
13854 (read_one_struct_field, read_member_functions, read_struct_fields)
13855 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13856 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13857 (read_struct_type): Update.
13858
13859 2019-03-06 Tom Tromey <tom@tromey.com>
13860
13861 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13862 * common/filestuff.h (make_cleanup_close): Don't declare.
13863 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13864 Remove.
13865
13866 2019-03-06 Tom Tromey <tom@tromey.com>
13867
13868 * solib-aix.c: Use make_scope_exit.
13869
13870 2019-03-06 Tom Tromey <tom@tromey.com>
13871
13872 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13873 Use make_scope_exit.
13874
13875 2019-03-06 Tom Tromey <tom@tromey.com>
13876
13877 * solib-svr4.c (disable_probes_interface): Remove parameter.
13878 (svr4_handle_solib_event): Use make_scope_exit.
13879
13880 2019-03-06 Tom Tromey <tom@tromey.com>
13881
13882 * remote.c (struct stop_reply_deleter): Remove.
13883 (stop_reply_up): Update.
13884 (struct stop_reply): Derive from notif_event. Don't typedef.
13885 <regcache>: Now a std::vector.
13886 (stop_reply_xfree): Remove.
13887 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13888 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13889 (remote_target::discard_pending_stop_replies): Use delete.
13890 (remote_target::remote_parse_stop_reply): Update.
13891 (remote_target::process_stop_reply): Update.
13892 * remote-notif.h (struct notif_event): Add virtual destructor.
13893 Remove "dtr" member.
13894 (struct notif_client) <alloc_event>: Return a unique_ptr.
13895 (notif_event_xfree): Don't declare.
13896 (notif_event_up): New typedef.
13897 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13898 (notif_event_xfree, do_notif_event_xfree): Remove.
13899 (remote_notif_state_xfree): Update.
13900
13901 2019-03-06 Tom Tromey <tom@tromey.com>
13902
13903 * infrun.c (displaced_step_clear_cleanup): Now a
13904 forward_scope_exit type.
13905 (displaced_step_prepare_throw): Update.
13906 (displaced_step_fixup): Update.
13907
13908 2019-03-06 Tom Tromey <tom@tromey.com>
13909
13910 * inferior.h (class inferior): Update comment.
13911 * gdbthread.h (class thread_info): Update comment.
13912
13913 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13914 Tom Tromey <tom@tromey.com>
13915
13916 * stabsread.h (struct stab_section_list): Remove.
13917 (coffstab_build_psymtabs): Update.
13918 * dbxread.c (symbuf_sections): Now a std::vector.
13919 (sect_idx): New global.
13920 (fill_symbuf): Update.
13921 (coffstab_build_psymtabs): Change type of stabsects parameter.
13922 Update.
13923 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13924 std::vector.
13925 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13926 (coff_locate_sections): Update.
13927 (coff_symfile_read): Remove cleanups. Update.
13928 (init_stringtab): Add storage parameter.
13929 (free_stringtab, free_stringtab_cleanup): Remove.
13930 (init_lineno): Add storage parameter.
13931 (free_linetab, free_linetab_cleanup): Remove.
13932
13933 2019-03-06 Pedro Alves <palves@redhat.com>
13934
13935 * linux-fork.c (fork_info::clobber_regs): Delete.
13936 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13937 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13938 comment. Adjust.
13939 (scoped_switch_fork_info::scoped_switch_fork_info)
13940 (checkpoint_command, linux_fork_context): Adjust
13941 fork_save_infrun_state calls.
13942
13943 2019-03-06 Pedro Alves <palves@redhat.com>
13944
13945 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13946 (inf_has_multiple_threads): Return 'bool' and rewrite using
13947 inferior_info::threads().
13948
13949 2019-03-06 Pedro Alves <palves@redhat.com>
13950
13951 * linux-fork.c: Include <list>.
13952 (fork_list): Now a std::list instance.
13953 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13954 (forks_exist_p, find_last_fork): Adjust.
13955 (new_fork): Delete.
13956 (one_fork_p): New.
13957 (add_fork): Adjust.
13958 (free_fork): Delete, folded into fork_info::~fork_info().
13959 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13960 Adjust.
13961 (init_fork_list): Delete.
13962 (linux_fork_killall, linux_fork_mourn_inferior)
13963 (linux_fork_detach, info_checkpoints_command): Adjust.
13964 (_initialize_linux_fork): No longer call init_fork_list.
13965
13966 2019-03-06 Pedro Alves <palves@redhat.com>
13967
13968 * linux-fork.c (new_fork): New, split out of ...
13969 (add_fork): ... this. Return void. Move "first fork" special
13970 case from here, to ...
13971 (checkpoint_command): ... here.
13972 * linux-linux.h (add_fork): Return void.
13973
13974 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13975
13976 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13977
13978 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13979 Chris January <chris.january@arm.com>
13980 David Lecomber <david.lecomber@arm.com>
13981
13982 * f-exp.y: New token, UNOP_INTRINSIC.
13983 (exp): New pattern using UNOP_INTRINSIC token.
13984 (f77_keywords): Add 'abs' keyword.
13985 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13986 (value_from_host_double): New function.
13987 (evaluate_subexp_f): Support UNOP_ABS.
13988
13989 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13990
13991 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13992 types.
13993
13994 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13995
13996 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13997 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13998 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13999
14000 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14001
14002 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14003
14004 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14005 Chris January <chris.january@arm.com>
14006
14007 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14008 * f-exp.y: Define 'KIND' token.
14009 (exp): New pattern for KIND expressions.
14010 (ptype): Handle types with a kind extension.
14011 (direct_abs_decl): Extend to spot kind extensions.
14012 (f77_keywords): Add 'kind' to the list.
14013 (push_kind_type): New function.
14014 (convert_to_kind_type): New function.
14015 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14016 * parse.c (operator_length_standard): Likewise.
14017 * parser-defs.h (enum type_pieces): Add tp_kind.
14018 * std-operator.def: Add UNOP_KIND.
14019
14020 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14021
14022 * f-exp.y (f_parse): Set yydebug.
14023
14024 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14025
14026 * f-lang.c (evaluate_subexp_f): New function.
14027 (exp_descriptor_f): New global.
14028 (f_language_defn): Use exp_descriptor_f instead of
14029 exp_descriptor_standard.
14030
14031 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14032
14033 * f-exp.y (struct token): Add comments.
14034 (dot_ops): Remove uppercase versions and the end marker.
14035 (f77_keywords): Likewise.
14036 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14037 entries in the dot_ops array are case insensitive, and use
14038 strncasecmp to compare strings. Also some whitespace cleanup in
14039 this area. Similar for the f77_keywords array, except entries in
14040 this list might be case sensitive.
14041
14042 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14043
14044 * f-exp.y (struct f77_boolean_val): Add comments.
14045 (boolean_values): Remove uppercase versions, and end marker.
14046 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14047 and use strncasecmp to achieve case insensitivity. Additionally,
14048 perform whitespace cleanup around this code.
14049
14050 2019-03-06 Tom Tromey <tromey@adacore.com>
14051
14052 * remote-sim.c (gdbsim_target_open): Use result of
14053 gdb_argv::release.
14054
14055 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14056 Dirk Schubert <dirk.schubert@arm.com>
14057 Chris January <chris.january@arm.com>
14058
14059 * eval.c (evaluate_subexp_standard): Call Fortran argument
14060 wrapping logic.
14061 * f-lang.c (struct value): A value which can be passed into a
14062 Fortran function call.
14063 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14064 where appropriate.
14065 (struct type): Value ready for a Fortran function call.
14066 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14067 is needed.
14068 * f-lang.h (fortran_argument_convert): Declaration.
14069 (fortran_preserve_arg_pointer): Declaration.
14070 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14071
14072 2019-03-05 Tom Tromey <tromey@adacore.com>
14073
14074 * python/py-prettyprint.c (print_string_repr): Remove #if.
14075 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14076
14077 2019-03-05 Tom Tromey <tromey@adacore.com>
14078
14079 * target.c (the_dummy_target): Move later. Change type to
14080 "dummy_target".
14081 (initialize_targets): Don't initialize the_dummy_target.
14082
14083 2019-03-05 Tom Tromey <tromey@adacore.com>
14084
14085 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14086 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14087
14088 2019-03-05 Tom Tromey <tromey@adacore.com>
14089
14090 * windows-nat.c (windows_nat_target::attach)
14091 (windows_nat_target::detach): Don't call gdb_flush.
14092 * valprint.c (generic_val_print, val_print, val_print_string):
14093 Don't call gdb_flush.
14094 * utils.c (defaulted_query): Don't call gdb_flush.
14095 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14096 * target.c (target_announce_detach): Don't call gdb_flush.
14097 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14098 * remote.c (extended_remote_target::attach): Don't call
14099 gdb_flush.
14100 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14101 * printcmd.c (do_examine): Don't call gdb_flush.
14102 (info_display_command): Don't call gdb_flush.
14103 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14104 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14105 * memattr.c (info_mem_command): Don't call gdb_flush.
14106 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14107 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14108 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14109 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14110 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14111 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14112 (gnu_nat_target::detach): Don't call gdb_flush.
14113 * f-valprint.c (f_val_print): Don't call gdb_flush.
14114 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14115 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14116 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14117 gdb_flush.
14118 * c-valprint.c (c_val_print): Don't call gdb_flush.
14119 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14120
14121 2019-03-05 Tom Tromey <tromey@adacore.com>
14122
14123 * varobj.c (update_dynamic_varobj_children): Update.
14124 (install_default_visualizer): Use reset, not release.
14125 * value.c (set_internalvar): Update.
14126 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14127 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14128 ATTRIBUTE_UNUSED_RESULT.
14129
14130 2019-03-05 Tom Tromey <tromey@adacore.com>
14131
14132 * remote.c (class scoped_remote_fd) <release>: Add
14133 ATTRIBUTE_UNUSED_RESULT.
14134
14135 2019-03-05 Tom Tromey <tromey@adacore.com>
14136
14137 * macroexp.c (struct macro_buffer) <release>: Add
14138 ATTRIBUTE_UNUSED_RESULT.
14139
14140 2019-03-05 Tom Tromey <tromey@adacore.com>
14141
14142 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14143 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14144 ATTRIBUTE_UNUSED_RESULT.
14145
14146 2019-03-05 Tom Tromey <tromey@adacore.com>
14147
14148 * common/scoped_fd.h (class scoped_fd) <release>: Add
14149 ATTRIBUTE_UNUSED_RESULT.
14150
14151 2019-03-05 Tom Tromey <tromey@adacore.com>
14152
14153 * parser-defs.h (struct parser_state) <release>: Add
14154 ATTRIBUTE_UNUSED_RESULT.
14155
14156 2019-03-05 Tom Tromey <tromey@adacore.com>
14157
14158 * utils.h (class gdb_argv) <release>: Add
14159 ATTRIBUTE_UNUSED_RESULT.
14160 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14161
14162 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14163
14164 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14165 for-loop range, to avoid compiler warnings.
14166
14167 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14168 avoid compiler warnings about unused variables.
14169
14170 * NEWS: Mention end of support for native debugging on MS-Windows
14171 before XP.
14172
14173 PR gdb/24292
14174 * common/netstuff.c:
14175 * gdbserver/gdbreplay.c
14176 * gdbserver/remote-utils.c:
14177 * ser-tcp.c:
14178 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14179 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14180 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14181 'getaddrinfo' and 'freeaddrinfo' were not available before
14182 Windows XP, and mingw.org's MinGW headers by default define
14183 _WIN32_WINNT to 0x500.
14184
14185 2019-03-01 Gary Benson <gbenson@redhat.com>
14186
14187 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14188
14189 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14190 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14191
14192 PR gdb/8527
14193 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14194 set_sigint_trap, clear_sigint_trap.
14195
14196 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14197
14198 * target.c (target_detach): Clear the regcache and the
14199 frame cache.
14200
14201 2019-02-27 Pedro Alves <palves@redhat.com>
14202
14203 * utils.c (set_screen_size): When we cap the height/width sizes,
14204 tweak the corresponding command variable to show "unlimited":
14205
14206 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14207 Pedro Alves <palves@redhat.com>
14208
14209 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14210 before calling rl_set_screen_size.
14211
14212 2019-02-27 Tom Tromey <tromey@adacore.com>
14213
14214 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14215 define.
14216 * python/py-value.c: Remove Python 2.4 workaround.
14217 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14218 workaround.
14219 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14220 Python 2.4 workaround.
14221 * python/python-internal.h: Remove Python 2.4 comment.
14222 (Py_ssize_t): Don't define.
14223 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14224 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14225 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14226 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14227 * python/python.c (do_start_initialization): Remove Python 2.4
14228 workaround.
14229 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14230 (print_children): Remove Python 2.4 workaround.
14231 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14232 workaround.
14233 (CHARBUFFERPROC_NAME): Remove.
14234 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14235 Python 2.4 workaround.
14236
14237 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14238
14239 * NEWS: Note minimum Python version.
14240
14241 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14242
14243 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14244 code from these functions. Remove corresponding ifdefs. Use
14245 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14246 Remove gotos and target of gotos.
14247 (infpy_search_memory): Likewise.
14248
14249 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14250
14251 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14252 (hppa_gdbarch_init): Don't register deleted functions with
14253 gdbarch.
14254
14255 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14256
14257 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14258 (h8300_unwind_sp): Delete.
14259 (h8300_dummy_id): Delete.
14260 (h8300_gdbarch_init): Don't register deleted functions with
14261 gdbarch.
14262
14263 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14264
14265 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14266 (ft32_unwind_pc): Delete.
14267 (ft32_unwind_sp): Delete.
14268 (ft32_gdbarch_init): Don't register deleted functions with
14269 gdbarch.
14270
14271 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14272
14273 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14274 (frv_unwind_pc): Delete.
14275 (frv_unwind_sp): Delete.
14276 (frv_gdbarch_init): Don't register deleted functions with
14277 gdbarch.
14278
14279 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14280
14281 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14282 (riscv_unwind_pc): Delete.
14283 (riscv_unwind_sp): Delete.
14284 (riscv_gdbarch_init): Don't register deleted functions with
14285 gdbarch.
14286
14287 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14288
14289 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14290 (csky_unwind_pc): Delete.
14291 (csky_unwind_sp): Delete.
14292 (csky_gdbarch_init): Don't register deleted functions with
14293 gdbarch.
14294
14295 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14296
14297 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14298 (cris_unwind_pc): Delete.
14299 (cris_unwind_sp): Delete.
14300 (cris_gdbarch_init): Don't register deleted functions with
14301 gdbarch.
14302
14303 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14304
14305 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14306 (bfin_unwind_pc): Delete.
14307 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14308
14309 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14310
14311 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14312 (arm_unwind_pc): Delete.
14313 (arm_unwind_sp): Delete.
14314 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14315
14316 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14317
14318 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14319 (arc_unwind_pc): Delete.
14320 (arc_unwind_sp): Delete.
14321 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14322
14323 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14324
14325 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14326 (alpha_unwind_pc): Delete.
14327 (alpha_gdbarch_init): Don't register deleted functions with
14328 gdbarch.
14329
14330 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14331
14332 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14333 (aarch64_unwind_pc): Delete.
14334 (aarch64_unwind_sp): Delete.
14335 (aarch64_gdbarch_init): Don't register deleted functions with
14336 gdbarch.
14337
14338 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14339
14340 * gdbtypes.c (type_align): Don't consider static members when
14341 computing structure alignment.
14342
14343 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14344
14345 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14346 return 0 for other types.
14347 * arch-utils.c (default_type_align): Always return 0.
14348 * gdbarch.h: Regenerate.
14349 * gdbarch.sh (type_align): Extend comment.
14350 * gdbtypes.c (type_align): Add additional comments, always call
14351 gdbarch_type_align before applying the default rules.
14352 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14353 generic code will then apply a suitable default.
14354 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14355 types, return 0 for other types.
14356
14357 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14358
14359 * NEWS: Create a new section for the next release branch.
14360 Rename the section of the current branch, now that it has
14361 been cut.
14362
14363 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14364
14365 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14366 * version.in: Bump version to 8.3.50.DATE-git.
14367
14368 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14369
14370 * aix-thread.c (ptid_cmp): Remove unused variable.
14371 (get_signaled_thread): Likewise.
14372 (store_regs_user_thread): Likewise.
14373 (store_regs_kernel_thread): Likewise.
14374 (fetch_regs_kernel_thread): Remove shadowed variable.
14375
14376 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14377
14378 * features/riscv/32bit-cpu.xml: Add register numbers.
14379 * features/riscv/32bit-fpu.c: Regenerate.
14380 * features/riscv/32bit-fpu.xml: Add register numbers.
14381 * features/riscv/64bit-cpu.xml: Add register numbers.
14382 * features/riscv/64bit-fpu.c: Regenerate.
14383 * features/riscv/64bit-fpu.xml: Add register numbers.
14384
14385 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14386
14387 * NEWS: Mention two argument form of gdb.Value constructor.
14388 * python/py-value.c (convert_buffer_and_type_to_value): New
14389 function.
14390 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14391 Add support for handling an optional second argument. Call
14392 convert_buffer_and_type_to_value as appropriate.
14393 * python/python-internal.h (Py_buffer_deleter): New struct.
14394 (Py_buffer_up): New typedef.
14395
14396 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14397
14398 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14399 instead of releasing ownership.
14400
14401 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14402
14403 * dwarf2read.c (open_and_init_dwp_file): Call
14404 elf_numsections instead of bfd_count_sections to initialize
14405 dwp_file->num_sections.
14406
14407 2019-02-25 Tom Tromey <tromey@adacore.com>
14408
14409 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14410
14411 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14412
14413 * gcore.in: Add '--readnever' option when invoking GDB.
14414
14415 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14416
14417 * MAINTAINERS: Update my email address.
14418
14419 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14420
14421 * build-id.c (build_id_to_debug_bfd_1): New function.
14422 (build_id_to_debug_bfd): Look for separate debug file in
14423 sysroot.
14424
14425 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14426
14427 * gdbarch.sh: Update the copyright year range that is placed into
14428 generated files.
14429
14430 2019-02-22 Keith Seitz <keiths@redhat.com>
14431
14432 PR symtab/23853
14433 * linespec.c (create_sals_line_offset): Search for the default
14434 symtab's filename instead of its fullname.
14435
14436 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14437
14438 * NEWS: Update style defaults.
14439
14440 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14441
14442 * main.c (captured_main_1): Disable styling in batch mode.
14443
14444 2019-02-20 Tom Tromey <tom@tromey.com>
14445
14446 * symtab.c (symtab_symbol_info): Fix typos.
14447
14448 2019-02-20 Tom Tromey <tromey@adacore.com>
14449
14450 * findcmd.c (_initialize_mem_search): Use upper case for
14451 metasyntactic variables.
14452
14453 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14454
14455 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14456 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14457
14458 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14459
14460 * top.h (source_file_name): Change to std::string.
14461 * top.c (source_file_name): Likewise.
14462 (command_line_input): Adjust.
14463 * cli/cli-script.c (script_from_file): Adjust.
14464
14465 2019-02-19 Tom Tromey <tromey@adacore.com>
14466
14467 * ravenscar-thread.c
14468 (ravenscar_thread_target::update_thread_list): Don't call
14469 ada_build_task_list.
14470 * ada-lang.h (ada_build_task_list): Don't declare.
14471 * ada-tasks.c (struct ada_tasks_inferior_data)
14472 <task_list_valid_p>: Now bool.
14473 (read_known_tasks, ada_task_list_changed)
14474 (ada_tasks_invalidate_inferior_data): Update.
14475 (read_known_tasks_array): Return bool.
14476 (read_known_tasks_list): Likewise.
14477 (read_known_tasks): Return void.
14478 (ada_build_task_list): Now static.
14479
14480 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14481
14482 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14483 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14484
14485 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14486
14487 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14488 variant for ada_tasks_pspace_data_handle and
14489 ada_tasks_inferior_data_handle.
14490 (ada_tasks_pspace_data_cleanup): New function.
14491 (ada_tasks_inferior_data_cleanup): New function.
14492
14493 2019-02-17 Tom Tromey <tom@tromey.com>
14494
14495 * macrotab.h (macro_source_fullname): Return a std::string.
14496 * macrotab.c (macro_include, check_for_redefinition)
14497 (macro_undef, macro_lookup_definition, foreach_macro)
14498 (foreach_macro_in_scope): Update.
14499 (macro_source_fullname): Return a std::string.
14500 * macrocmd.c (show_pp_source_pos): Update.
14501
14502 2019-02-17 Tom Tromey <tom@tromey.com>
14503
14504 * macrocmd.c (show_pp_source_pos): Style the file names.
14505
14506 2019-02-17 Tom Tromey <tom@tromey.com>
14507
14508 PR tui/24197:
14509 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14510
14511 2019-02-17 Tom Tromey <tom@tromey.com>
14512
14513 * ada-lang.c (user_select_syms): Use filtered printing.
14514 * utils.c (wrap_style): New global.
14515 (desired_style): Remove.
14516 (emit_style_escape): Add stream parameter.
14517 (set_output_style, reset_terminal_style, prompt_for_continue):
14518 Update.
14519 (flush_wrap_buffer): Only flush gdb_stdout.
14520 (wrap_here): Set wrap_style.
14521 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14522 treat escape sequences as a character. Change when wrap buffer is
14523 flushed.
14524 (fputs_styled): Do not set the output style when the default is
14525 requested.
14526 * ui-style.h (struct ui_file_style) <is_default>: New method.
14527 * source.c (print_source_lines_base): Emit escape sequences in one
14528 piece.
14529
14530 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14531
14532 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14533 integers and enumeration types.
14534
14535 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14536
14537 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14538 instead of lookup_symbol_in_language
14539 (do_exact_match): New function.
14540 (ada_get_symbol_name_matcher): Return do_exact_match when
14541 doing a verbatim match.
14542
14543 2019-02-15 Tom Tromey <tromey@adacore.com>
14544
14545 * ravenscar-thread.c (ravenscar_thread_target::resume)
14546 (ravenscar_thread_target::wait): Special case wildcard requests.
14547
14548 2019-02-15 Tom Tromey <tromey@adacore.com>
14549
14550 * ravenscar-thread.c (base_ptid): Remove.
14551 (struct ravenscar_thread_target) <close>: New method.
14552 <m_base_ptid>: New member.
14553 <update_inferior_ptid, active_task, task_is_currently_active,
14554 runtime_initialized>: Declare methods.
14555 <ravenscar_thread_target>: Add constructor.
14556 (ravenscar_thread_target::task_is_currently_active)
14557 (ravenscar_thread_target::update_inferior_ptid)
14558 (ravenscar_runtime_initialized): Rename. Now methods.
14559 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14560 (ravenscar_thread_target::update_thread_list): Update.
14561 (ravenscar_thread_target::active_task): Now method.
14562 (ravenscar_thread_target::store_registers)
14563 (ravenscar_thread_target::prepare_to_store)
14564 (ravenscar_thread_target::prepare_to_store)
14565 (ravenscar_thread_target::mourn_inferior): Update.
14566 (ravenscar_inferior_created): Use "new" to create target.
14567 (ravenscar_thread_target::get_ada_task_ptid): Update.
14568 (_initialize_ravenscar): Don't initialize base_ptid.
14569 (ravenscar_ops): Remove global.
14570
14571 2019-02-15 Tom Tromey <tromey@adacore.com>
14572
14573 * target.h (push_target): Declare new overload.
14574 * target.c (push_target): New overload, taking an rvalue reference.
14575 * remote.c (remote_target::open_1): Use push_target overload.
14576 * corelow.c (core_target_open): Use push_target overload.
14577
14578 2019-02-15 Tom Tromey <tromey@adacore.com>
14579
14580 * ravenscar-thread.c (is_ravenscar_task)
14581 (ravenscar_task_is_currently_active): Return bool.
14582 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14583 (_initialize_ravenscar): Remove "(void)".
14584 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14585 Return bool.
14586
14587 2019-02-15 Tom Tromey <tromey@adacore.com>
14588
14589 * ravenscar-thread.c (ravenscar_runtime_initializer)
14590 (has_ravenscar_runtime, get_running_thread_id)
14591 (ravenscar_thread_target::resume): Fix indentation.
14592
14593 2019-02-15 Tom Tromey <tromey@adacore.com>
14594
14595 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14596 from ravenscar_arch_ops.
14597 (sparc_ravenscar_ops::fetch_registers)
14598 (sparc_ravenscar_ops::store_registers): Now methods.
14599 (sparc_ravenscar_prepare_to_store): Remove.
14600 (sparc_ravenscar_ops): Redefine.
14601 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14602 methods and destructor. Remove members.
14603 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14604 (ravenscar_thread_target::store_registers)
14605 (ravenscar_thread_target::prepare_to_store): Update.
14606 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14607 Remove.
14608 (struct ppc_ravenscar_powerpc_ops): Derive from
14609 ravenscar_arch_ops.
14610 (ppc_ravenscar_powerpc_ops::fetch_registers)
14611 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14612 (ppc_ravenscar_powerpc_ops): Redefine.
14613 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14614 (ppc_ravenscar_e500_ops::fetch_registers)
14615 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14616 (ppc_ravenscar_e500_ops): Redefine.
14617 * aarch64-ravenscar-thread.c
14618 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14619 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14620 (aarch64_ravenscar_fetch_registers)
14621 (aarch64_ravenscar_store_registers): Now methods.
14622 (aarch64_ravenscar_ops): Redefine.
14623
14624 2019-02-15 Tom Tromey <tromey@adacore.com>
14625
14626 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14627 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14628 (ravenscar_thread_target::stopped_by_watchpoint)
14629 (ravenscar_thread_target::stopped_data_address)
14630 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14631
14632 2019-02-15 Tom Tromey <tromey@adacore.com>
14633
14634 * ravenscar-thread.c: Fix some typos.
14635
14636 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14637 Tom Tromey <tromey@adacore.com>
14638
14639 * ada-lang.c (ada_exception_sal): Change addr_string to a
14640 std::string.
14641 (create_ada_exception_catchpoint): Update.
14642
14643 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14644 Tom Tromey <tromey@adacore.com>
14645
14646 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14647 (bp_location_ops): Remove.
14648 (base_breakpoint_allocate_location): Update.
14649 (free_bp_location): Update.
14650 * ada-lang.c (class ada_catchpoint_location)
14651 <ada_catchpoint_location>: Remove ops parameter.
14652 (ada_catchpoint_location_dtor): Remove.
14653 (ada_catchpoint_location_ops): Remove.
14654 (allocate_location_exception): Update.
14655 * breakpoint.h (struct bp_location_ops): Remove.
14656 (class bp_location) <bp_location>: Remove bp_location_ops
14657 parameter.
14658 <~bp_location>: Add destructor.
14659 <ops>: Remove.
14660
14661 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14662 Pedro Alves <palves@redhat.com>
14663
14664 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14665 'PATH_MAX'.
14666
14667 2019-02-14 David Michael <fedora.dm0@gmail.com>
14668 Samuel Thibault <samuel.thibault@gnu.org>
14669 Thomas Schwinge <thomas@codesourcery.com>
14670
14671 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14672 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14673
14674 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14675
14676 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14677 (check_empty): Use "const char *".
14678
14679 * gnu-nat.c (gnu_nat_target::detach): Instead of
14680 'detach_inferior (pid)' call
14681 'detach_inferior (find_inferior_pid (pid))'.
14682
14683 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14684 'nat/fork-inferior.o'.
14685 * gnu-nat.c: #include "nat/fork-inferior.h".
14686
14687 * gnu-nat.c (gnu_nat_target::detach): Instead of
14688 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14689 * gnu-nat.h: #include "inf-child.h".
14690 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14691 'i386_gnu_nat_target::fetch_registers'.
14692 (gnu_store_registers): Rename/move to
14693 'i386_gnu_nat_target::store_registers'.
14694
14695 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14696 * gnu-nat.h (mach_thread_info): New function.
14697 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14698
14699 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14700
14701 2019-02-14 Frederic Konrad <konrad@adacore.com>
14702
14703 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14704
14705 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14706
14707 * windows-nat.c (windows_add_thread): Add new parameter
14708 "main_thread_p" with default value set to false. Update
14709 function documentation as well as all callers.
14710 (windows_delete_thread): Likewise.
14711 (fake_create_process): Update call to windows_add_thread.
14712 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14713 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14714 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14715 call to windows_delete_thread.
14716
14717 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14718
14719 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14720
14721 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14722
14723 * symfile.c (find_separate_debug_file): Use canonical path of
14724 sysroot with child_path instead of gdb_sysroot if it is valid.
14725
14726 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14727
14728 * symfile.c (find_separate_debug_file): Use child_path to
14729 determine if an object file is under a sysroot.
14730
14731 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14732
14733 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14734 unittests/child-path-selftests.c.
14735 * common/pathstuff.c (child_path): New function.
14736 * common/pathstuff.h (child_path): New prototype.
14737 * unittests/child-path-selftests.c: New file.
14738
14739 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14740
14741 * symfile.c (find_separate_debug_file): Look for separate debug
14742 files in debug directories under the sysroot.
14743
14744 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14745
14746 * symtab.h (struct minimal_symbol data_p): New const method.
14747 (struct minimal_symbol text_p): Likewise.
14748 * symtab.c (output_source_filename): Use file name style
14749 to print file name.
14750 (print_symbol_info): Likewise.
14751 (print_msymbol_info): Use address style to print addresses.
14752 Use function name style to print executable text symbols.
14753 (expand_symtab_containing_pc): Use data_p.
14754 (find_pc_sect_compunit_symtab): Likewise.
14755
14756 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14757
14758 * breakpoint.c (describe_other_breakpoints): Use address style
14759 to print addresses.
14760 (say_where): Likewise.
14761
14762 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14763
14764 * ada-typeprint.c (print_func_type): Print function name
14765 style to print function name.
14766 * c-typeprint.c (c_print_type_1): Likewise.
14767
14768 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14769
14770 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14771 for execve.
14772
14773 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14774
14775 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14776 type_stack.
14777
14778 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14779
14780 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14781 TYPE_CODE_REF types.
14782
14783 2019-02-08 Jim Wilson <jimw@sifive.com>
14784
14785 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14786 (riscv_linux_fregset): New.
14787 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14788
14789 2019-02-07 Tom Tromey <tom@tromey.com>
14790
14791 * thread.c (thread_cancel_execution_command): Update.
14792 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14793 methods.
14794 (struct thread_fsm_ops): Remove.
14795 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14796 (thread_fsm_should_stop, thread_fsm_return_value)
14797 (thread_fsm_set_finished, thread_fsm_finished_p)
14798 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14799 Don't declare.
14800 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14801 * infrun.c (clear_proceed_status_thread)
14802 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14803 (print_stop_event): Update.
14804 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14805 Add constructor.
14806 (step_command_fsm_ops): Remove.
14807 (new_step_command_fsm): Remove.
14808 (step_1): Update.
14809 (step_command_fsm::should_stop): Rename from
14810 step_command_fsm_should_stop.
14811 (step_command_fsm::clean_up): Rename from
14812 step_command_fsm_clean_up.
14813 (step_command_fsm::do_async_reply_reason): Rename from
14814 step_command_fsm_async_reply_reason.
14815 (struct until_next_fsm): Inherit from thread_fsm. Add
14816 constructor.
14817 (until_next_fsm_ops): Remove.
14818 (new_until_next_fsm): Remove.
14819 (until_next_fsm::should_stop): Rename from
14820 until_next_fsm_should_stop.
14821 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14822 (until_next_fsm::do_async_reply_reason): Rename from
14823 until_next_fsm_async_reply_reason.
14824 (struct finish_command_fsm): Inherit from thread_fsm. Add
14825 constructor. Change type of breakpoint.
14826 (finish_command_fsm_ops): Remove.
14827 (new_finish_command_fsm): Remove.
14828 (finish_command_fsm::should_stop): Rename from
14829 finish_command_fsm_should_stop.
14830 (finish_command_fsm::clean_up): Rename from
14831 finish_command_fsm_clean_up.
14832 (finish_command_fsm::return_value): Rename from
14833 finish_command_fsm_return_value.
14834 (finish_command_fsm::do_async_reply_reason): Rename from
14835 finish_command_fsm_async_reply_reason.
14836 (finish_command): Update.
14837 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14838 Add constructor.
14839 (call_thread_fsm_ops): Remove.
14840 (call_thread_fsm::call_thread_fsm): Rename from
14841 new_call_thread_fsm.
14842 (call_thread_fsm::should_stop): Rename from
14843 call_thread_fsm_should_stop.
14844 (call_thread_fsm::should_notify_stop): Rename from
14845 call_thread_fsm_should_notify_stop.
14846 (run_inferior_call, call_function_by_hand_dummy): Update.
14847 * cli/cli-interp.c (should_print_stop_to_console): Update.
14848 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14849 Add constructor. Change type of location_breakpoint,
14850 caller_breakpoint.
14851 (until_break_fsm_ops): Remove.
14852 (new_until_break_fsm): Remove.
14853 (until_break_fsm::should_stop): Rename from
14854 until_break_fsm_should_stop.
14855 (until_break_fsm::clean_up): Rename from
14856 until_break_fsm_clean_up.
14857 (until_break_fsm::do_async_reply_reason): Rename from
14858 until_break_fsm_async_reply_reason.
14859 (until_break_command): Update.
14860 * thread-fsm.c: Remove.
14861 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14862
14863 2019-02-07 Tom Tromey <tom@tromey.com>
14864
14865 * yy-remap.h: Add include guard.
14866 * xtensa-tdep.h: Add include guard.
14867 * xcoffread.h: Rename include guard.
14868 * varobj-iter.h: Add include guard.
14869 * tui/tui.h: Rename include guard.
14870 * tui/tui-winsource.h: Rename include guard.
14871 * tui/tui-wingeneral.h: Rename include guard.
14872 * tui/tui-windata.h: Rename include guard.
14873 * tui/tui-win.h: Rename include guard.
14874 * tui/tui-stack.h: Rename include guard.
14875 * tui/tui-source.h: Rename include guard.
14876 * tui/tui-regs.h: Rename include guard.
14877 * tui/tui-out.h: Rename include guard.
14878 * tui/tui-layout.h: Rename include guard.
14879 * tui/tui-io.h: Rename include guard.
14880 * tui/tui-hooks.h: Rename include guard.
14881 * tui/tui-file.h: Rename include guard.
14882 * tui/tui-disasm.h: Rename include guard.
14883 * tui/tui-data.h: Rename include guard.
14884 * tui/tui-command.h: Rename include guard.
14885 * tic6x-tdep.h: Add include guard.
14886 * target/waitstatus.h: Rename include guard.
14887 * target/wait.h: Rename include guard.
14888 * target/target.h: Rename include guard.
14889 * target/resume.h: Rename include guard.
14890 * target-float.h: Rename include guard.
14891 * stabsread.h: Add include guard.
14892 * rs6000-tdep.h: Add include guard.
14893 * riscv-fbsd-tdep.h: Add include guard.
14894 * regformats/regdef.h: Rename include guard.
14895 * record.h: Rename include guard.
14896 * python/python.h: Rename include guard.
14897 * python/python-internal.h: Rename include guard.
14898 * python/py-stopevent.h: Rename include guard.
14899 * python/py-ref.h: Rename include guard.
14900 * python/py-record.h: Rename include guard.
14901 * python/py-record-full.h: Rename include guard.
14902 * python/py-record-btrace.h: Rename include guard.
14903 * python/py-instruction.h: Rename include guard.
14904 * python/py-events.h: Rename include guard.
14905 * python/py-event.h: Rename include guard.
14906 * procfs.h: Add include guard.
14907 * proc-utils.h: Add include guard.
14908 * p-lang.h: Add include guard.
14909 * or1k-tdep.h: Rename include guard.
14910 * observable.h: Rename include guard.
14911 * nto-tdep.h: Rename include guard.
14912 * nat/x86-linux.h: Rename include guard.
14913 * nat/x86-linux-dregs.h: Rename include guard.
14914 * nat/x86-gcc-cpuid.h: Add include guard.
14915 * nat/x86-dregs.h: Rename include guard.
14916 * nat/x86-cpuid.h: Rename include guard.
14917 * nat/ppc-linux.h: Rename include guard.
14918 * nat/mips-linux-watch.h: Rename include guard.
14919 * nat/linux-waitpid.h: Rename include guard.
14920 * nat/linux-ptrace.h: Rename include guard.
14921 * nat/linux-procfs.h: Rename include guard.
14922 * nat/linux-osdata.h: Rename include guard.
14923 * nat/linux-nat.h: Rename include guard.
14924 * nat/linux-namespaces.h: Rename include guard.
14925 * nat/linux-btrace.h: Rename include guard.
14926 * nat/glibc_thread_db.h: Rename include guard.
14927 * nat/gdb_thread_db.h: Rename include guard.
14928 * nat/gdb_ptrace.h: Rename include guard.
14929 * nat/fork-inferior.h: Rename include guard.
14930 * nat/amd64-linux-siginfo.h: Rename include guard.
14931 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14932 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14933 * nat/aarch64-linux.h: Rename include guard.
14934 * nat/aarch64-linux-hw-point.h: Rename include guard.
14935 * mn10300-tdep.h: Add include guard.
14936 * mips-linux-tdep.h: Add include guard.
14937 * mi/mi-parse.h: Rename include guard.
14938 * mi/mi-out.h: Rename include guard.
14939 * mi/mi-main.h: Rename include guard.
14940 * mi/mi-interp.h: Rename include guard.
14941 * mi/mi-getopt.h: Rename include guard.
14942 * mi/mi-console.h: Rename include guard.
14943 * mi/mi-common.h: Rename include guard.
14944 * mi/mi-cmds.h: Rename include guard.
14945 * mi/mi-cmd-break.h: Rename include guard.
14946 * m2-lang.h: Add include guard.
14947 * location.h: Rename include guard.
14948 * linux-record.h: Rename include guard.
14949 * linux-nat.h: Add include guard.
14950 * linux-fork.h: Add include guard.
14951 * i386-darwin-tdep.h: Rename include guard.
14952 * hppa-linux-offsets.h: Add include guard.
14953 * guile/guile.h: Rename include guard.
14954 * guile/guile-internal.h: Rename include guard.
14955 * gnu-nat.h: Rename include guard.
14956 * gdb-stabs.h: Rename include guard.
14957 * frv-tdep.h: Add include guard.
14958 * f-lang.h: Add include guard.
14959 * event-loop.h: Add include guard.
14960 * darwin-nat.h: Rename include guard.
14961 * cp-abi.h: Rename include guard.
14962 * config/sparc/nm-sol2.h: Rename include guard.
14963 * config/nm-nto.h: Rename include guard.
14964 * config/nm-linux.h: Add include guard.
14965 * config/i386/nm-i386gnu.h: Rename include guard.
14966 * config/djgpp/nl_types.h: Rename include guard.
14967 * config/djgpp/langinfo.h: Rename include guard.
14968 * compile/gcc-cp-plugin.h: Add include guard.
14969 * compile/gcc-c-plugin.h: Add include guard.
14970 * compile/compile.h: Rename include guard.
14971 * compile/compile-object-run.h: Rename include guard.
14972 * compile/compile-object-load.h: Rename include guard.
14973 * compile/compile-internal.h: Rename include guard.
14974 * compile/compile-cplus.h: Rename include guard.
14975 * compile/compile-c.h: Rename include guard.
14976 * common/xml-utils.h: Rename include guard.
14977 * common/x86-xstate.h: Rename include guard.
14978 * common/version.h: Rename include guard.
14979 * common/vec.h: Rename include guard.
14980 * common/tdesc.h: Rename include guard.
14981 * common/selftest.h: Rename include guard.
14982 * common/scoped_restore.h: Rename include guard.
14983 * common/scoped_mmap.h: Rename include guard.
14984 * common/scoped_fd.h: Rename include guard.
14985 * common/safe-iterator.h: Rename include guard.
14986 * common/run-time-clock.h: Rename include guard.
14987 * common/refcounted-object.h: Rename include guard.
14988 * common/queue.h: Rename include guard.
14989 * common/ptid.h: Rename include guard.
14990 * common/print-utils.h: Rename include guard.
14991 * common/preprocessor.h: Rename include guard.
14992 * common/pathstuff.h: Rename include guard.
14993 * common/observable.h: Rename include guard.
14994 * common/netstuff.h: Rename include guard.
14995 * common/job-control.h: Rename include guard.
14996 * common/host-defs.h: Rename include guard.
14997 * common/gdb_wait.h: Rename include guard.
14998 * common/gdb_vecs.h: Rename include guard.
14999 * common/gdb_unlinker.h: Rename include guard.
15000 * common/gdb_unique_ptr.h: Rename include guard.
15001 * common/gdb_tilde_expand.h: Rename include guard.
15002 * common/gdb_sys_time.h: Rename include guard.
15003 * common/gdb_string_view.h: Rename include guard.
15004 * common/gdb_splay_tree.h: Rename include guard.
15005 * common/gdb_setjmp.h: Rename include guard.
15006 * common/gdb_ref_ptr.h: Rename include guard.
15007 * common/gdb_optional.h: Rename include guard.
15008 * common/gdb_locale.h: Rename include guard.
15009 * common/gdb_assert.h: Rename include guard.
15010 * common/filtered-iterator.h: Rename include guard.
15011 * common/filestuff.h: Rename include guard.
15012 * common/fileio.h: Rename include guard.
15013 * common/environ.h: Rename include guard.
15014 * common/common-utils.h: Rename include guard.
15015 * common/common-types.h: Rename include guard.
15016 * common/common-regcache.h: Rename include guard.
15017 * common/common-inferior.h: Rename include guard.
15018 * common/common-gdbthread.h: Rename include guard.
15019 * common/common-exceptions.h: Rename include guard.
15020 * common/common-defs.h: Rename include guard.
15021 * common/common-debug.h: Rename include guard.
15022 * common/cleanups.h: Rename include guard.
15023 * common/buffer.h: Rename include guard.
15024 * common/btrace-common.h: Rename include guard.
15025 * common/break-common.h: Rename include guard.
15026 * cli/cli-utils.h: Rename include guard.
15027 * cli/cli-style.h: Rename include guard.
15028 * cli/cli-setshow.h: Rename include guard.
15029 * cli/cli-script.h: Rename include guard.
15030 * cli/cli-interp.h: Rename include guard.
15031 * cli/cli-decode.h: Rename include guard.
15032 * cli/cli-cmds.h: Rename include guard.
15033 * charset-list.h: Add include guard.
15034 * buildsym-legacy.h: Rename include guard.
15035 * bfin-tdep.h: Add include guard.
15036 * ax.h: Rename include guard.
15037 * arm-linux-tdep.h: Add include guard.
15038 * arm-fbsd-tdep.h: Add include guard.
15039 * arch/xtensa.h: Rename include guard.
15040 * arch/tic6x.h: Add include guard.
15041 * arch/i386.h: Add include guard.
15042 * arch/arm.h: Rename include guard.
15043 * arch/arm-linux.h: Rename include guard.
15044 * arch/arm-get-next-pcs.h: Rename include guard.
15045 * arch/amd64.h: Add include guard.
15046 * arch/aarch64-insn.h: Rename include guard.
15047 * arch-utils.h: Rename include guard.
15048 * annotate.h: Add include guard.
15049 * amd64-darwin-tdep.h: Rename include guard.
15050 * aarch64-linux-tdep.h: Add include guard.
15051 * aarch64-fbsd-tdep.h: Add include guard.
15052 * aarch32-linux-nat.h: Add include guard.
15053
15054 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15055
15056 * macrotab.c (macro_define_internal): New function that
15057 factorizes macro_define_object_internal and macro_define_function
15058 code.
15059 (macro_define_object_internal): Use macro_define_internal.
15060 (macro_define_function): Likewise.
15061
15062 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15063
15064 * macrocmd.c (extract_identifier): Return
15065 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15066 callers.
15067
15068 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15069
15070 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15071
15072 2019-02-05 Tom Tromey <tom@tromey.com>
15073
15074 * target.c (target_stack::unpush): Move assertion earlier.
15075
15076 2019-01-30 Tom Tromey <tom@tromey.com>
15077
15078 PR python/23615:
15079 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15080 (gdbpy_parse_and_eval): Likewise.
15081 * python/python-internal.h (gdbpy_allow_threads): New class.
15082
15083 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15084
15085 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15086 (aarch64_fbsd_fpregmap): Move earlier.
15087 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15088 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15089 instead of individual calls to trad_frame_set_reg_addr.
15090 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15091 earlier.
15092 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15093 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15094 instead of individual calls to trad_frame_set_reg_addr.
15095
15096 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15097
15098 * CONTRIBUTE: Replace contribution list with wiki link.
15099
15100 2019-01-25 Tom Tromey <tom@tromey.com>
15101
15102 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15103
15104 2019-01-25 Tom Tromey <tom@tromey.com>
15105
15106 * xtensa-linux-nat.c: Fix common/ includes.
15107 * xml-support.h: Fix common/ includes.
15108 * xml-support.c: Fix common/ includes.
15109 * x86-linux-nat.c: Fix common/ includes.
15110 * windows-nat.c: Fix common/ includes.
15111 * varobj.h: Fix common/ includes.
15112 * varobj.c: Fix common/ includes.
15113 * value.c: Fix common/ includes.
15114 * valops.c: Fix common/ includes.
15115 * utils.c: Fix common/ includes.
15116 * unittests/xml-utils-selftests.c: Fix common/ includes.
15117 * unittests/utils-selftests.c: Fix common/ includes.
15118 * unittests/unpack-selftests.c: Fix common/ includes.
15119 * unittests/tracepoint-selftests.c: Fix common/ includes.
15120 * unittests/style-selftests.c: Fix common/ includes.
15121 * unittests/string_view-selftests.c: Fix common/ includes.
15122 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15123 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15124 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15125 * unittests/rsp-low-selftests.c: Fix common/ includes.
15126 * unittests/parse-connection-spec-selftests.c: Fix common/
15127 includes.
15128 * unittests/optional-selftests.c: Fix common/ includes.
15129 * unittests/offset-type-selftests.c: Fix common/ includes.
15130 * unittests/observable-selftests.c: Fix common/ includes.
15131 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15132 * unittests/memrange-selftests.c: Fix common/ includes.
15133 * unittests/memory-map-selftests.c: Fix common/ includes.
15134 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15135 * unittests/function-view-selftests.c: Fix common/ includes.
15136 * unittests/environ-selftests.c: Fix common/ includes.
15137 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15138 * unittests/common-utils-selftests.c: Fix common/ includes.
15139 * unittests/cli-utils-selftests.c: Fix common/ includes.
15140 * unittests/array-view-selftests.c: Fix common/ includes.
15141 * ui-file.c: Fix common/ includes.
15142 * tui/tui-io.c: Fix common/ includes.
15143 * tracepoint.h: Fix common/ includes.
15144 * tracepoint.c: Fix common/ includes.
15145 * tracefile-tfile.c: Fix common/ includes.
15146 * top.h: Fix common/ includes.
15147 * top.c: Fix common/ includes.
15148 * thread.c: Fix common/ includes.
15149 * target/waitstatus.h: Fix common/ includes.
15150 * target/waitstatus.c: Fix common/ includes.
15151 * target.h: Fix common/ includes.
15152 * target.c: Fix common/ includes.
15153 * target-memory.c: Fix common/ includes.
15154 * target-descriptions.c: Fix common/ includes.
15155 * symtab.h: Fix common/ includes.
15156 * symfile.c: Fix common/ includes.
15157 * stap-probe.c: Fix common/ includes.
15158 * spu-linux-nat.c: Fix common/ includes.
15159 * sparc-nat.c: Fix common/ includes.
15160 * source.c: Fix common/ includes.
15161 * solib.c: Fix common/ includes.
15162 * solib-target.c: Fix common/ includes.
15163 * ser-unix.c: Fix common/ includes.
15164 * ser-tcp.c: Fix common/ includes.
15165 * ser-pipe.c: Fix common/ includes.
15166 * ser-base.c: Fix common/ includes.
15167 * selftest-arch.c: Fix common/ includes.
15168 * s12z-tdep.c: Fix common/ includes.
15169 * rust-exp.y: Fix common/ includes.
15170 * rs6000-aix-tdep.c: Fix common/ includes.
15171 * riscv-tdep.c: Fix common/ includes.
15172 * remote.c: Fix common/ includes.
15173 * remote-notif.h: Fix common/ includes.
15174 * remote-fileio.h: Fix common/ includes.
15175 * remote-fileio.c: Fix common/ includes.
15176 * regcache.h: Fix common/ includes.
15177 * regcache.c: Fix common/ includes.
15178 * record-btrace.c: Fix common/ includes.
15179 * python/python.c: Fix common/ includes.
15180 * python/py-type.c: Fix common/ includes.
15181 * python/py-inferior.c: Fix common/ includes.
15182 * progspace.h: Fix common/ includes.
15183 * producer.c: Fix common/ includes.
15184 * procfs.c: Fix common/ includes.
15185 * proc-api.c: Fix common/ includes.
15186 * printcmd.c: Fix common/ includes.
15187 * ppc-linux-nat.c: Fix common/ includes.
15188 * parser-defs.h: Fix common/ includes.
15189 * osdata.c: Fix common/ includes.
15190 * obsd-nat.c: Fix common/ includes.
15191 * nat/x86-linux.c: Fix common/ includes.
15192 * nat/x86-linux-dregs.c: Fix common/ includes.
15193 * nat/x86-dregs.h: Fix common/ includes.
15194 * nat/x86-dregs.c: Fix common/ includes.
15195 * nat/ppc-linux.c: Fix common/ includes.
15196 * nat/mips-linux-watch.h: Fix common/ includes.
15197 * nat/mips-linux-watch.c: Fix common/ includes.
15198 * nat/linux-waitpid.c: Fix common/ includes.
15199 * nat/linux-ptrace.h: Fix common/ includes.
15200 * nat/linux-ptrace.c: Fix common/ includes.
15201 * nat/linux-procfs.c: Fix common/ includes.
15202 * nat/linux-personality.c: Fix common/ includes.
15203 * nat/linux-osdata.c: Fix common/ includes.
15204 * nat/linux-namespaces.c: Fix common/ includes.
15205 * nat/linux-btrace.h: Fix common/ includes.
15206 * nat/linux-btrace.c: Fix common/ includes.
15207 * nat/fork-inferior.c: Fix common/ includes.
15208 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15209 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15210 * nat/aarch64-linux.c: Fix common/ includes.
15211 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15212 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15213 * namespace.h: Fix common/ includes.
15214 * mips-linux-tdep.c: Fix common/ includes.
15215 * minsyms.c: Fix common/ includes.
15216 * mi/mi-parse.h: Fix common/ includes.
15217 * mi/mi-main.c: Fix common/ includes.
15218 * mi/mi-cmd-env.c: Fix common/ includes.
15219 * memrange.h: Fix common/ includes.
15220 * memattr.c: Fix common/ includes.
15221 * maint.h: Fix common/ includes.
15222 * maint.c: Fix common/ includes.
15223 * main.c: Fix common/ includes.
15224 * machoread.c: Fix common/ includes.
15225 * location.c: Fix common/ includes.
15226 * linux-thread-db.c: Fix common/ includes.
15227 * linux-nat.c: Fix common/ includes.
15228 * linux-fork.c: Fix common/ includes.
15229 * inline-frame.c: Fix common/ includes.
15230 * infrun.c: Fix common/ includes.
15231 * inflow.c: Fix common/ includes.
15232 * inferior.h: Fix common/ includes.
15233 * inferior.c: Fix common/ includes.
15234 * infcmd.c: Fix common/ includes.
15235 * inf-ptrace.c: Fix common/ includes.
15236 * inf-child.c: Fix common/ includes.
15237 * ia64-linux-nat.c: Fix common/ includes.
15238 * i387-tdep.c: Fix common/ includes.
15239 * i386-tdep.c: Fix common/ includes.
15240 * i386-linux-tdep.c: Fix common/ includes.
15241 * i386-linux-nat.c: Fix common/ includes.
15242 * i386-go32-tdep.c: Fix common/ includes.
15243 * i386-fbsd-tdep.c: Fix common/ includes.
15244 * i386-fbsd-nat.c: Fix common/ includes.
15245 * guile/scm-type.c: Fix common/ includes.
15246 * guile/guile.c: Fix common/ includes.
15247 * go32-nat.c: Fix common/ includes.
15248 * gnu-nat.c: Fix common/ includes.
15249 * gdbthread.h: Fix common/ includes.
15250 * gdbarch-selftests.c: Fix common/ includes.
15251 * gdb_usleep.c: Fix common/ includes.
15252 * gdb_select.h: Fix common/ includes.
15253 * gdb_bfd.c: Fix common/ includes.
15254 * gcore.c: Fix common/ includes.
15255 * fork-child.c: Fix common/ includes.
15256 * findvar.c: Fix common/ includes.
15257 * fbsd-nat.c: Fix common/ includes.
15258 * event-top.c: Fix common/ includes.
15259 * event-loop.c: Fix common/ includes.
15260 * dwarf2read.c: Fix common/ includes.
15261 * dwarf2loc.c: Fix common/ includes.
15262 * dwarf2-frame.c: Fix common/ includes.
15263 * dwarf-index-cache.c: Fix common/ includes.
15264 * dtrace-probe.c: Fix common/ includes.
15265 * disasm-selftests.c: Fix common/ includes.
15266 * defs.h: Fix common/ includes.
15267 * csky-tdep.c: Fix common/ includes.
15268 * cp-valprint.c: Fix common/ includes.
15269 * cp-support.h: Fix common/ includes.
15270 * cp-support.c: Fix common/ includes.
15271 * corelow.c: Fix common/ includes.
15272 * completer.h: Fix common/ includes.
15273 * completer.c: Fix common/ includes.
15274 * compile/compile.c: Fix common/ includes.
15275 * compile/compile-loc2c.c: Fix common/ includes.
15276 * compile/compile-cplus-types.c: Fix common/ includes.
15277 * compile/compile-cplus-symbols.c: Fix common/ includes.
15278 * command.h: Fix common/ includes.
15279 * cli/cli-dump.c: Fix common/ includes.
15280 * cli/cli-cmds.c: Fix common/ includes.
15281 * charset.c: Fix common/ includes.
15282 * build-id.c: Fix common/ includes.
15283 * btrace.h: Fix common/ includes.
15284 * btrace.c: Fix common/ includes.
15285 * breakpoint.h: Fix common/ includes.
15286 * breakpoint.c: Fix common/ includes.
15287 * ax.h:
15288 (enum agent_op): Fix common/ includes.
15289 * ax-general.c (struct aop_map): Fix common/ includes.
15290 * ax-gdb.c: Fix common/ includes.
15291 * auxv.c: Fix common/ includes.
15292 * auto-load.c: Fix common/ includes.
15293 * arm-tdep.c: Fix common/ includes.
15294 * arch/riscv.c: Fix common/ includes.
15295 * arch/ppc-linux-common.c: Fix common/ includes.
15296 * arch/i386.c: Fix common/ includes.
15297 * arch/arm.c: Fix common/ includes.
15298 * arch/arm-linux.c: Fix common/ includes.
15299 * arch/arm-get-next-pcs.c: Fix common/ includes.
15300 * arch/amd64.c: Fix common/ includes.
15301 * arch/aarch64.c: Fix common/ includes.
15302 * arch/aarch64-insn.c: Fix common/ includes.
15303 * arch-utils.c: Fix common/ includes.
15304 * amd64-windows-tdep.c: Fix common/ includes.
15305 * amd64-tdep.c: Fix common/ includes.
15306 * amd64-sol2-tdep.c: Fix common/ includes.
15307 * amd64-obsd-tdep.c: Fix common/ includes.
15308 * amd64-nbsd-tdep.c: Fix common/ includes.
15309 * amd64-linux-tdep.c: Fix common/ includes.
15310 * amd64-linux-nat.c: Fix common/ includes.
15311 * amd64-fbsd-tdep.c: Fix common/ includes.
15312 * amd64-fbsd-nat.c: Fix common/ includes.
15313 * amd64-dicos-tdep.c: Fix common/ includes.
15314 * amd64-darwin-tdep.c: Fix common/ includes.
15315 * agent.c: Fix common/ includes.
15316 * ada-lang.h: Fix common/ includes.
15317 * ada-lang.c: Fix common/ includes.
15318 * aarch64-tdep.c: Fix common/ includes.
15319
15320 2019-01-25 Tom Tromey <tom@tromey.com>
15321
15322 * common/create-version.sh: Use common/version.h.
15323
15324 2019-01-24 Pedro Alves <palves@redhat.com>
15325
15326 * infrun.c (signal_stop, signal_print, signal_program)
15327 (signal_catch, signal_pass): Now arrays instead of pointers.
15328 (update_signals_program_target, do_target_resume)
15329 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15330 * linux-nat.c (linux_nat_target::pass_signals)
15331 (linux_nat_target::create_inferior, linux_nat_target::attach):
15332 Adjust.
15333 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15334 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15335 * procfs.c (procfs_target::pass_signals): Adjust.
15336 * record-full.c (record_full_target::resume): Adjust.
15337 * remote.c (remote_target::pass_signals)
15338 (remote_target::program_signals): Adjust.
15339 * target-debug.h (target_debug_print_signals): Now takes a
15340 gdb::array_view as parameter. Adjust.
15341 * target.h (target_ops) <pass_signals, program_signals>: Replace
15342 pointer and length parameters with gdb::array_view.
15343 (target_pass_signals, target_program_signals): Likewise.
15344 * target-delegates.c: Regenerate.
15345
15346 2019-01-24 Pedro Alves <palves@redhat.com>
15347
15348 * common/forward-scope-exit.h
15349 (forward_scope_exit::forward_scope_exit): Pass arguments to
15350 m_bind_function directly, instead of creating a std::bind and
15351 copying that.
15352
15353 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15354
15355 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15356 for static members.
15357 (pass_in_v_vfp_candidate): Likewise.
15358
15359 2019-01-23 Tom Tromey <tom@tromey.com>
15360 Pedro Alves <palves@redhat.com>
15361
15362 * regcache.c (class regcache_invalidator): Remove.
15363 (regcache::raw_write): Use make_scope_exit.
15364
15365 2019-01-23 Tom Tromey <tom@tromey.com>
15366
15367 * ui-out.h (class ui_out_emit_type): Update comment.
15368
15369 2019-01-23 Tom Tromey <tom@tromey.com>
15370
15371 * infrun.c (fetch_inferior_event): Update comment.
15372
15373 2019-01-23 Tom Tromey <tom@tromey.com>
15374 Pedro Alves <palves@redhat.com>
15375
15376 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15377 parameter.
15378 (fetch_inferior_event): Use SCOPE_EXIT.
15379
15380
15381 2019-01-23 Tom Tromey <tom@tromey.com>
15382 Pedro Alves <palves@redhat.com>
15383
15384 * infrun.c (disable_thread_events): Delete.
15385 (stop_all_threads): Use SCOPE_EXIT.
15386
15387 2019-01-23 Tom Tromey <tom@tromey.com>
15388 Pedro Alves <palves@redhat.com>
15389
15390 * symfile.c: Include forward-scope-exit.h.
15391 (clear_symtab_users_cleanup): Replace forward declaration with
15392 a FORWARD_SCOPE_EXIT.
15393 (syms_from_objfile_1): Use the forward_scope_exit and
15394 gdb::optional instead of cleanup_function.
15395 (reread_symbols): Use the forward_scope_exit instead of
15396 cleanup_function.
15397 (clear_symtab_users_cleanup): Remove function.
15398
15399 2019-01-23 Tom Tromey <tom@tromey.com>
15400 Pedro Alves <palves@redhat.com>
15401
15402 * linux-nat.c: Include scope-exit.h.
15403 (cleanup_target_stop): Remove.
15404 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15405 SCOPE_EXIT.
15406
15407 2019-01-23 Tom Tromey <tom@tromey.com>
15408 Pedro Alves <palves@redhat.com>
15409
15410 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15411 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15412
15413 2019-01-23 Tom Tromey <tom@tromey.com>
15414 Andrew Burgess <andrew.burgess@embecosm.com>
15415 Pedro Alves <palves@redhat.com>
15416
15417 * infrun.c (fetch_inferior_event): Use scope_exit.
15418 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15419 * top.c (execute_command): Use scope_exit.
15420 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15421 * utils.c (do_bpstat_clear_actions_cleanup)
15422 (make_bpstat_clear_actions_cleanup): Remove.
15423
15424 2019-01-23 Tom Tromey <tom@tromey.com>
15425 Pedro Alves <palves@redhat.com>
15426
15427 * infrun.c: Include "common/scope-exit.h"
15428 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15429 (wait_for_inferior): Use SCOPE_EXIT.
15430 (fetch_inferior_event): Use scope_exit.
15431
15432 2019-01-23 Tom Tromey <tom@tromey.com>
15433 Pedro Alves <palves@redhat.com>
15434
15435 * breakpoint.c (create_breakpoint): Remove cleanup.
15436
15437 2019-01-23 Tom Tromey <tom@tromey.com>
15438 Andrew Burgess <andrew.burgess@embecosm.com>
15439 Pedro Alves <palves@redhat.com>
15440
15441 2019-01-23 Pedro Alves <palves@redhat.com>
15442
15443 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15444
15445 2019-01-23 Pedro Alves <palves@redhat.com>
15446 Andrew Burgess <andrew.burgess@embecosm.com>
15447
15448 * gdbthread.h: Include "common/forward-scope-exit.h".
15449 (scoped_finish_thread_state): Redefine custom class in terms of
15450 forward_scope_exit.
15451
15452 2019-01-23 Pedro Alves <palves@redhat.com>
15453 Andrew Burgess <andrew.burgess@embecosm.com>
15454
15455 * common/forward-scope-exit.h: New file.
15456
15457 2019-01-23 Pedro Alves <palves@redhat.com>
15458 Andrew Burgess <andrew.burgess@embecosm.com>
15459 Tom Tromey <tom@tromey.com>
15460
15461 * common/scope-exit.h: New file.
15462
15463 2019-01-23 Pedro Alves <palves@redhat.com>
15464
15465 * common/preprocessor.h (ESC): Rename to ...
15466 (ESC_PARENS): ... this.
15467 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15468 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15469
15470 2019-01-23 Tom Tromey <tom@tromey.com>
15471
15472 * language.h (class scoped_switch_to_sym_language_if_auto):
15473 Initialize m_lang in both cases.
15474
15475 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15476
15477 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15478 with XCNEW.
15479
15480 2019-01-22 Tom Tromey <tom@tromey.com>
15481
15482 * corelow.c: Do not include sys/file.h.
15483
15484 2019-01-22 Tom Tromey <tom@tromey.com>
15485
15486 * tui/tui-wingeneral.h: Include gdb_curses.h.
15487
15488 2019-01-22 Tom Tromey <tom@tromey.com>
15489
15490 * source-cache.h (class source_cache) <get_source_lines,
15491 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15492
15493 2019-01-22 Tom Tromey <tom@tromey.com>
15494
15495 * remote-fileio.h (struct remote_target): Declare.
15496
15497 2019-01-22 Tom Tromey <tom@tromey.com>
15498
15499 * python/py-arch.c: Do not include py-ref.h.
15500 * python/py-bpevent.c: Do not include py-ref.h.
15501 * python/py-cmd.c: Do not include py-ref.h.
15502 * python/py-continueevent.c: Do not include py-ref.h.
15503 * python/py-event.h: Do not include py-ref.h.
15504 * python/py-evtregistry.c: Do not include py-ref.h.
15505 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15506 * python/py-frame.c: Do not include py-ref.h.
15507 * python/py-framefilter.c: Do not include py-ref.h.
15508 * python/py-function.c: Do not include py-ref.h.
15509 * python/py-infevents.c: Do not include py-ref.h.
15510 * python/py-linetable.c: Do not include py-ref.h.
15511 * python/py-objfile.c: Do not include py-ref.h.
15512 * python/py-param.c: Do not include py-ref.h.
15513 * python/py-prettyprint.c: Do not include py-ref.h.
15514 * python/py-progspace.c: Do not include py-ref.h.
15515 * python/py-symbol.c: Do not include py-ref.h.
15516 * python/py-symtab.c: Do not include py-ref.h.
15517 * python/py-type.c: Do not include py-ref.h.
15518 * python/py-unwind.c: Do not include py-ref.h.
15519 * python/py-utils.c: Do not include py-ref.h.
15520 * python/py-value.c: Do not include py-ref.h.
15521 * python/py-varobj.c: Do not include py-ref.h.
15522 * python/py-xmethods.c: Do not include py-ref.h.
15523 * python/python.c: Do not include py-ref.h.
15524 * varobj.c: Do not include py-ref.h.
15525
15526 2019-01-22 Tom Tromey <tom@tromey.com>
15527
15528 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15529 keyword for bcache.
15530
15531 2019-01-22 Tom Tromey <tom@tromey.com>
15532
15533 * compile/compile-cplus-types.c: Remove a comment by #include.
15534
15535 2019-01-22 Tom Tromey <tom@tromey.com>
15536
15537 * compile/gcc-c-plugin.h: Include compile-internal.h.
15538
15539 2019-01-22 Tom Tromey <tom@tromey.com>
15540
15541 * stabsread.c (EXTERN): Do not define.
15542 (symnum, next_symbol_text_func, processing_gcc_compilation)
15543 (within_function, global_sym_chain, global_stabs)
15544 (previous_stab_code, this_object_header_files)
15545 (n_this_object_header_files)
15546 (n_allocated_this_object_header_files): Define.
15547 * stabsread.h (EXTERN): Never define. Use "extern".
15548
15549 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15550
15551 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15552 history_value.
15553
15554 2019-01-21 Tom Tromey <tom@tromey.com>
15555
15556 * ui-out.c: Fix includes.
15557 * tui/tui-source.c: Fix includes.
15558 * target.c: Fix includes.
15559 * remote.c: Fix includes.
15560 * regcache.c: Fix includes.
15561 * python/py-block.c: Fix includes.
15562 * printcmd.c: Fix includes.
15563 * or1k-tdep.c: Fix includes.
15564 * mi/mi-main.c: Fix includes.
15565 * m32r-tdep.c: Fix includes.
15566 * csky-tdep.c: Fix includes.
15567 * compile/compile-cplus-types.c: Fix includes.
15568 * cli/cli-interp.c: Fix includes.
15569
15570 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15571
15572 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15573 for padding.
15574
15575 2019-01-16 Tom Tromey <tom@tromey.com>
15576
15577 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15578 earlier.
15579 (struct objfile) <msymbols_range>: Move from top level.
15580 <msymbols>: New method.
15581 (class objfile_msymbols): Remove.
15582 * symtab.c (default_collect_symbol_completion_matches_break_on):
15583 Update.
15584 * symmisc.c (dump_msymbols): Update.
15585 * stabsread.c (scan_file_globals): Update.
15586 * objc-lang.c (info_selectors_command, info_classes_command)
15587 (find_methods): Update.
15588 * minsyms.c (find_solib_trampoline_target): Update.
15589 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15590 * coffread.c (coff_symfile_read): Update.
15591 * ada-lang.c (ada_lookup_simple_minsym)
15592 (ada_collect_symbol_completion_matches): Update.
15593
15594 2019-01-16 Tom Tromey <tom@tromey.com>
15595
15596 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15597 type. Remove no-argument constructor.
15598 <iterator::operator++>: Simplify.
15599 <begin>: Update.
15600 <end>: Use minimal_symbol_count.
15601
15602 2019-01-16 Tom Tromey <tom@tromey.com>
15603
15604 * objfiles.h (struct objfile) <psymtabs>: New method.
15605 (class objfile_psymtabs): Remove.
15606 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15607 typedef.
15608 <range>: New method.
15609 (require_partial_symbols): Change return type.
15610 * psymtab.c (require_partial_symbols)
15611 (psym_expand_symtabs_matching): Update.
15612 * mdebugread.c (parse_partial_symbols): Update.
15613 * dbxread.c (dbx_end_psymtab): Update.
15614
15615 2019-01-15 Tom Tromey <tom@tromey.com>
15616
15617 * symtab.c (lookup_objfile_from_block)
15618 (lookup_symbol_in_objfile_symtabs)
15619 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15620 (find_line_symtab, info_sources_command)
15621 (default_collect_symbol_completion_matches_break_on)
15622 (make_source_files_completion_list): Update.
15623 * symmisc.c (print_objfile_statistics, dump_objfile)
15624 (maintenance_print_symbols, maintenance_info_symtabs)
15625 (maintenance_check_symtabs, maintenance_info_line_tables):
15626 Update.
15627 * source.c (select_source_symtab)
15628 (forget_cached_source_info_for_objfile): Update.
15629 * objfiles.h (class objfile_compunits): Remove.
15630 (struct objfile) <compunits_range>: New typedef.
15631 (compunits): New method.
15632 * objfiles.c (objfile_relocate1): Update.
15633 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15634 * maint.c (count_symtabs_and_blocks): Update.
15635 * linespec.c (iterate_over_all_matching_symtabs): Update.
15636 * cp-support.c (add_symbol_overload_list_qualified): Update.
15637 * coffread.c (coff_symtab_read): Update.
15638 * ada-lang.c (add_nonlocal_symbols)
15639 (ada_collect_symbol_completion_matches)
15640 (ada_add_global_exceptions): Update.
15641
15642 2019-01-15 Tom Tromey <tom@tromey.com>
15643
15644 * progspace.h (program_space) <objfiles_safe_range>: New
15645 typedef.
15646 <objfiles_safe>: New method.
15647 * objfiles.h (class all_objfiles_safe): Remove.
15648 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15649 * jit.c (jit_inferior_exit_hook): Update.
15650
15651 2019-01-17 Tom Tromey <tom@tromey.com>
15652
15653 * progspace.h (program_space) <objfiles_range>: New typedef.
15654 <objfiles>: New method.
15655 <objfiles_head>: Rename from objfiles.
15656 (object_files): Update.
15657 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15658 * guile/scm-pretty-print.c
15659 (ppscm_find_pretty_printer_from_objfiles): Update.
15660 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15661 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15662 Update.
15663 * python/py-progspace.c (pspy_get_objfiles): Update.
15664 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15665 Update.
15666 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15667 (objfpy_lookup_objfile_by_build_id): Update.
15668 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15669 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15670 Update.
15671 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15672 (expand_symtab_containing_pc, lookup_objfile_from_block)
15673 (lookup_static_symbol, basic_lookup_transparent_type)
15674 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15675 (find_line_symtab, info_sources_command)
15676 (default_collect_symbol_completion_matches_break_on)
15677 (make_source_files_completion_list, find_main_name): Update.
15678 * symmisc.c (print_symbol_bcache_statistics)
15679 (print_objfile_statistics, maintenance_print_symbols)
15680 (maintenance_print_msymbols, maintenance_print_objfiles)
15681 (maintenance_info_symtabs, maintenance_check_symtabs)
15682 (maintenance_expand_symtabs, maintenance_info_line_tables):
15683 Update.
15684 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15685 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15686 (map_overlay_command, unmap_overlay_command)
15687 (simple_overlay_update, expand_symtabs_matching)
15688 (map_symbol_filenames): Update.
15689 * symfile-debug.c (set_debug_symfile): Update.
15690 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15691 Update.
15692 * source.c (select_source_symtab, forget_cached_source_info):
15693 Update.
15694 * solib.c (solib_read_symbols): Update.
15695 * solib-spu.c (append_ocl_sos): Update.
15696 * psymtab.c (maintenance_print_psymbols)
15697 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15698 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15699 * printcmd.c (info_symbol_command): Update.
15700 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15701 Update.
15702 * objfiles.h (class all_objfiles): Remove.
15703 * objfiles.c (have_partial_symbols, have_full_symbols)
15704 (have_minimal_symbols, qsort_cmp, update_section_map)
15705 (shared_objfile_contains_address_p)
15706 (default_iterate_over_objfiles_in_search_order): Update.
15707 * objc-lang.c (info_selectors_command, info_classes_command)
15708 (find_methods): Update.
15709 * minsyms.c (find_solib_trampoline_target): Update.
15710 * maint.c (maintenance_info_sections)
15711 (maintenance_translate_address, count_symtabs_and_blocks):
15712 Update.
15713 * main.c (captured_main_1): Update.
15714 * linux-thread-db.c (try_thread_db_load_from_pdir)
15715 (has_libpthread): Update.
15716 * linespec.c (iterate_over_all_matching_symtabs)
15717 (search_minsyms_for_name): Update.
15718 * jit.c (jit_find_objf_with_entry_addr): Update.
15719 * hppa-tdep.c (find_unwind_entry)
15720 (hppa_lookup_stub_minimal_symbol): Update.
15721 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15722 Update.
15723 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15724 (elf_gnu_ifunc_resolve_by_got): Update.
15725 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15726 * dwarf-index-write.c (save_gdb_index_command): Update.
15727 * cp-support.c (add_symbol_overload_list_qualified): Update.
15728 * breakpoint.c (create_overlay_event_breakpoint)
15729 (create_longjmp_master_breakpoint)
15730 (create_std_terminate_master_breakpoint)
15731 (create_exception_master_breakpoint): Update.
15732 * blockframe.c (find_pc_partial_function): Update.
15733 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15734 (ada_collect_symbol_completion_matches)
15735 (ada_add_global_exceptions): Update.
15736
15737 2019-01-17 Tom Tromey <tom@tromey.com>
15738
15739 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15740 declare VEC.
15741 (solib_target_parse_libraries): Change return type.
15742 (library_list_start_segment, library_list_start_section)
15743 (library_list_end_library, library_list_start_library); Update.
15744 (solib_target_free_library_list): Remove.
15745 (solib_target_parse_libraries): Remove cleanup. Change return
15746 type.
15747 (solib_target_current_sos): Update.
15748
15749 2019-01-17 Tom Tromey <tromey@bapiya>
15750
15751 * valprint.c: Replace "the the" with "the".
15752 * symtab.c: Replace "the the" with "the".
15753 * solib.c: Replace "the the" with "the".
15754 * solib-dsbt.c: Replace "the the" with "the".
15755 * linespec.c: Replace "the the" with "the".
15756 * dwarf2loc.h: Replace "the the" with "the".
15757 * amd64-windows-tdep.c: Replace "the the" with "the".
15758 * aarch64-tdep.c: Replace "the the" with "the".
15759
15760 2019-01-16 Keith Seitz <keiths@redhat.com>
15761
15762 PR gdb/23773
15763 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15764 <builder>: Rename to ..
15765 <m_builder>: ... this and make private.
15766 (dwarf2_cu::get_builder): New method. Change all users of
15767 `builder' to use this method.
15768 (dwarf2_start_symtab): Move to ...
15769 (dwarf2_cu::start_symtab): ... here. Update all callers
15770 (setup_type_unit_groups): Move to ...
15771 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15772 callers.
15773 (dwarf2_cu::reset_builder): New method.
15774 (process_full_compunit, process_full_type_unit): Use
15775 dwarf2_cu::reset_builder.
15776 (follow_die_offset): Record the ancestor CU if it is different
15777 from the followed DIE's CU.
15778 (follow_die_sig_1): Likewise.
15779
15780 2019-01-15 Tom Tromey <tom@tromey.com>
15781
15782 * remote.c (class remote_state) <buf>: Now a char_vector.
15783 <buf_size>: Remove.
15784 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15785 parameter.
15786 (remote_target::getpkt_or_notif_sane_1)
15787 (remote_target::getpkt_sane)
15788 (remote_target::getpkt_or_notif_sane): Likewise.
15789 (class remote_target) <putpkt>: New overload.
15790 (remote_target::read_frame): Change type of "buf_p". Remove
15791 sizeof_p parameter.
15792 (packet_ok): New overload.
15793 (packet_check_result): New overload.
15794 Update all uses.
15795
15796 2019-01-14 Tom Tromey <tom@tromey.com>
15797
15798 * remote-notif.c (handle_notification, remote_notif_ack)
15799 (remote_notif_parse): Make "buf" const.
15800 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15801 const.
15802 (remote_notif_parse, remote_notif_ack, handle_notification):
15803 Likewise.
15804 * remote.c (remote_notif_stop_parse): Make "buf" const.
15805 (remote_target::remote_parse_stop_reply): Make "buf" const.
15806 (remote_notif_stop_ack): Make "buf" const.
15807
15808 2019-01-14 Tom Tromey <tom@tromey.com>
15809
15810 * remote.c (remote_console_output): Make parameter const.
15811
15812 2019-01-14 Tom Tromey <tom@tromey.com>
15813
15814 * target-debug.h (target_debug_print_signals): Constify.
15815 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15816 * procfs.c (procfs_target::pass_signals): Update.
15817 * linux-nat.c (linux_nat_target::pass_signals): Update.
15818 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15819 * target-delegates.c: Rebuild.
15820 * remote.c (remote_target::program_signals): Update.
15821 (remote_target::pass_signals): Update.
15822 * target.c (target_pass_signals): Constify argument.
15823 (target_program_signals): Likewise.
15824 * target.h (struct target_ops) <pass_signals, program_signals>:
15825 Constify argument.
15826 (target_pass_signals, target_program_signals): Constify argument.
15827
15828 2019-01-14 Tom Tromey <tom@tromey.com>
15829
15830 PR tui/28819:
15831 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15832
15833 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15834
15835 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15836 field.
15837 * rs6000-tdep.c: Include reggroups.h.
15838 (IS_V_ALIAS_PSEUDOREG): Define.
15839 (rs6000_register_name): Return names for the "vX" aliases.
15840 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15841 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15842 aliases. Call default_register_reggroup_p for all other
15843 pseudo-registers.
15844 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15845 New functions.
15846 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15847 Handle "vX" aliases.
15848 (v_alias_pseudo_register_collect): New function.
15849 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15850 (rs6000_gdbarch_init): Initialize "vX" aliases as
15851 pseudo-registers. Restore registration of
15852 rs6000_pseudo_register_reggroup_p with
15853 set_tdesc_pseudo_register_reggroup_p.
15854
15855 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15856
15857 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15858 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15859 set_gdbarch_num_pseudo_regs.
15860
15861 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15862
15863 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15864 Remove arg prefixname, add do_set and do_show.
15865 Add member functions set_list and show_list.
15866 * cli/cli-style.c (class cli_style_option): Update accordingly.
15867 (style_set_list): Move to file scope.
15868 (style_show_list): Likewise.
15869 (set_style): Call help_list.
15870 (show_style): Call cmd_show_list.
15871 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15872 Update to use the new macro.
15873
15874 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15875
15876 * ada-lang.c (_initialize_ada_language): Expand the help text
15877 for the "catch exception" command.
15878
15879 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15880
15881 * symtab.c (matching_obj_sections): Initialize obj,
15882 declare it closer to its usage.
15883
15884 2019-01-10 Tom Tromey <tom@tromey.com>
15885
15886 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15887 (basic_inf_threads_range): Remove.
15888 (inf_threads_range, inf_non_exited_threads_range)
15889 (safe_inf_threads_range): Use next_adapter.
15890
15891 2019-01-10 Keith Seitz <keiths@redhat.com>
15892
15893 PR gdb/23712
15894 PR symtab/23010
15895 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15896 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15897
15898 2019-01-10 Keith Seitz <keiths@redhat.com>
15899
15900 PR gdb/23712
15901 PR symtab/23010
15902 * dictionary.c (pending_to_vector): Remove.
15903 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15904 Remove _1 suffix, replacing functions of the same name. Update
15905 all callers.
15906 (dict_create_hashed, dict_create_hashed_expandable)
15907 (dict_create_linear, dict_create_linear_expandable, dict_free)
15908 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15909 Make functions static.
15910
15911 2019-01-10 Keith Seitz <keiths@redhat.com>
15912
15913 PR gdb/23712
15914 PR symtab/23010
15915 * dictionary.h (struct dictionary): Replace declaration with
15916 multidictionary.
15917 (dict_create_hashed, dict_create_hashed_expandable)
15918 (dict_create_linear, dict_create_linear_expandable)
15919 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15920 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15921 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15922 taking multidictionary argument.
15923 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15924 * block.h (struct block) <dict>: Change to multidictionary
15925 and rename `multidict'.
15926 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15927 symmisc.c: Update all dictionary references to multidictionary.
15928
15929 2019-01-10 Keith Seitz <keiths@redhat.com>
15930
15931 PR gdb/23712
15932 PR symtab/23010
15933 * dictionary.c: Include unordered_map.
15934 (pending_to_vector): New function.
15935 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15936 Rewrite the non-"_1" functions to take vector instead
15937 of linked list.
15938 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15939 "new" _1 versions of the same name.
15940 (multidictionary): Define.
15941 (std::hash<enum language): New definition.
15942 (collate_pending_symbols_by_language, mdict_create_hashed)
15943 (mdict_create_hashed_expandable, mdict_create_linear)
15944 (mdict_create_linear_expandable, mdict_free)
15945 (find_language_dictionary, create_new_language_dictionary)
15946 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15947 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15948 (mdict_size, mdict_empty): New functions.
15949 * dictionary.h (mdict_iterator): Define.
15950
15951 2019-01-10 Pedro Alves <palves@redhat.com>
15952
15953 * breakpoint.c (read_uploaded_action)
15954 (create_tracepoint_from_upload): Adjust to use
15955 gdb::unique_xmalloc_ptr.
15956 * ctf.c (ctf_write_uploaded_tp):
15957 (SET_ARRAY_FIELD): Use emplace_back.
15958 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15959 * tracefile-tfile.c (tfile_write_uploaded_tp):
15960 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15961 gdb::unique_xmalloc_ptr.
15962 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15963 at_string, cond_string, cmd_strings>: Replace char pointers
15964 with gdb::unique_xmalloc_ptr.
15965
15966 2019-01-10 Pedro Alves <palves@redhat.com>
15967
15968 * solib-target.c (library_list_start_library): Don't xstrdup name.
15969
15970 2019-01-10 Pedro Alves <palves@redhat.com>
15971
15972 * mdebugread.c (parse_partial_symbols): Use
15973 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15974
15975 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15976
15977 * linux-fork.c (scoped_switch_fork_info)
15978 <~scoped_switch_fork_info>: Fix incorrect variable name.
15979
15980 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15981
15982 * linux-fork.c (scoped_switch_fork_info)
15983 <scoped_switch_fork_info>: Make explicit.
15984 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15985
15986 2019-01-10 Tom Tromey <tom@tromey.com>
15987
15988 * objfiles.h (objfile::reset_psymtabs): Update.
15989 * objfiles.c (objfile::objfile): Update.
15990 * psymtab.h (psymtab_storage::obstack): Update.
15991 (psymtab_storage::m_obstack): Use gdb::optional.
15992 (class psymtab_storage): Update comment. Remove objfile
15993 parameter.
15994 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15995
15996 2019-01-10 Tom Tromey <tom@tromey.com>
15997
15998 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15999 <free_psymtabs>: Now private.
16000 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16001 (allocate_psymtab): Use new method.
16002
16003 2019-01-10 Tom Tromey <tom@tromey.com>
16004
16005 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16006 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16007 * mdebugread.c (parse_partial_symbols): Use
16008 allocate_dependencies.
16009 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16010 allocate_dependencies.
16011 (process_psymtab_comp_unit_reader)
16012 (build_type_psymtab_dependencies): Likewise.
16013 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16014
16015 2019-01-10 Tom Tromey <tom@tromey.com>
16016
16017 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16018 PSYMBOL_SET_LANGUAGE.
16019 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16020
16021 2019-01-10 Tom Tromey <tom@tromey.com>
16022
16023 * psymtab.h (psymtab_storage::obstack): New method.
16024 <m_obstack>: Rename from obstack; now private.
16025 * psymtab.c (psymtab_storage): Update.
16026 * dwarf2read.c (create_addrmap_from_index)
16027 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16028 Update.
16029
16030 2019-01-10 Tom Tromey <tom@tromey.com>
16031
16032 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16033 * objfiles.h (objfile::reset_psymtabs): New method.
16034
16035 2019-01-10 Tom Tromey <tom@tromey.com>
16036
16037 * symmisc.c (print_symbol_bcache_statistics): Update.
16038 (print_objfile_statistics): Update.
16039 * symfile.c (reread_symbols): Update.
16040 * psymtab.h (class psymtab_storage): New.
16041 * psymtab.c (psymtab_storage): New constructor.
16042 (~psymtab_storage): New destructor.
16043 (require_partial_symbols): Update.
16044 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16045 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16046 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16047 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16048 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16049 (start_psymtab_common, end_psymtab_common)
16050 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16051 (allocate_psymtab): Update.
16052 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16053 Update.
16054 (dump_psymtab_addrmap, maintenance_print_psymbols)
16055 (maintenance_check_psymtabs): Update.
16056 (class objfile_psymtabs): Move to objfiles.h.
16057 * psympriv.h (discard_psymtab): Now inline.
16058 (psymtab_discarder::psymtab_discarder): Update.
16059 (psymtab_discarder::~psymtab_discarder): Update.
16060 (ALL_OBJFILE_PSYMTABS): Rewrite.
16061 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16062 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16063 Remove fields.
16064 <partial_symtabs>: New field.
16065 (class objfile_psymtabs): Move from psymtab.h. Update.
16066 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16067 psymbol_cache.
16068 (objfile::~objfile): Don't destroy psymbol_cache.
16069 * mdebugread.c (parse_partial_symbols): Update.
16070 * dwarf2read.c (create_addrmap_from_index)
16071 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16072 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16073 (add_partial_subprogram, dwarf2_ranges_read): Update.
16074 * dwarf-index-write.c (write_address_map)
16075 (write_one_signatured_type, recursively_write_psymbols)
16076 (class debug_names, class debug_names, write_psymtabs_to_index):
16077 Update.
16078
16079 2019-01-10 Tom Tromey <tom@tromey.com>
16080
16081 * symtab.h (SYMBOL_SET_NAMES): Update.
16082 (symbol_set_names): Update.
16083 (MSYMBOL_SET_NAMES): Update.
16084 * symtab.c (symbol_set_names): Change argument to be an
16085 objfile_per_bfd_storage.
16086 * psymtab.c (add_psymbol_to_bcache): Update.
16087 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16088
16089 2019-01-10 Tom Tromey <tom@tromey.com>
16090
16091 * symtab.c (create_demangled_names_hash): Change argument to be an
16092 objfile_per_bfd_storage.
16093 (symbol_set_names): Update.
16094
16095 2019-01-10 Tom Tromey <tom@tromey.com>
16096
16097 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16098 init_psymbol_list.
16099 * psymtab.c (init_psymbol_list): Do nothing if already called.
16100 * psympriv.h (init_psymbol_list): Add comment.
16101 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16102 init_psymbol_list.
16103 * dbxread.c (dbx_symfile_read): Unconditionally call
16104 init_psymbol_list.
16105
16106 2019-01-10 Tom Tromey <tom@tromey.com>
16107
16108 * xcoffread.c (scan_xcoff_symtab): Update.
16109 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16110 "where".
16111 * mdebugread.c (parse_partial_symbols)
16112 (handle_psymbol_enumerators): Update.
16113 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16114 * dbxread.c (read_dbx_symtab): Update.
16115 * psympriv.h (psymbol_placement): New enum.
16116 (add_psymbol_to_list): Update.
16117
16118 2019-01-10 Tom Tromey <tom@tromey.com>
16119
16120 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16121 static_psymbols parameters.
16122 (scan_xcoff_symtab): Update.
16123 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16124 static_psymbols parameters.
16125 * psympriv.h (start_psymtab_common): Update.
16126 * mdebugread.c (parse_partial_symbols): Update.
16127 * dwarf2read.c (create_partial_symtab): Update.
16128 * dbxread.c (read_dbx_symtab): Update.
16129 (start_psymtab): Remove global_psymbols and static_psymbols
16130 parameters.
16131
16132 2019-01-10 Tom Tromey <tom@tromey.com>
16133
16134 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16135 * psymtab.c (allocate_psymtab): Add comment.
16136 * psympriv.h (allocate_psymtab): Add comment.
16137 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16138 initializations.
16139 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16140
16141 2019-01-10 Tom Tromey <tom@tromey.com>
16142
16143 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16144 Don't declare.
16145 * mipsread.c: Include mdebugread.h.
16146 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16147 Declare.
16148 * elfread.c: Include mdebugread.h.
16149
16150 2019-01-09 Tom Tromey <tom@tromey.com>
16151
16152 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16153 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16154 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16155 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16156 (psym_lookup_symbol, psym_find_last_source_symtab)
16157 (psym_forget_cached_source_info, psym_print_stats)
16158 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16159 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16160 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16161 (psym_find_compunit_symtab_by_address)
16162 (maintenance_print_psymbols, maintenance_info_psymtabs)
16163 (maintenance_check_psymtabs): Use ranged for.
16164 * psymtab.h (class objfile_psymtabs): New.
16165 (require_partial_symbols): Return objfile_psymtabs.
16166 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16167
16168 2019-01-09 Tom Tromey <tom@tromey.com>
16169
16170 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16171 (find_pc_mapped_section, list_overlays_command)
16172 (map_overlay_command, unmap_overlay_command)
16173 (simple_overlay_update): Use all_objfiles.
16174 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16175 * printcmd.c (info_symbol_command): Use all_objfiles.
16176 * objfiles.h (ALL_OBJSECTIONS): Remove.
16177 * maint.c (maintenance_translate_address): Use all_objfiles.
16178 * gcore.c (gcore_create_callback): Use all_objfiles.
16179 (objfile_find_memory_regions): Likewise.
16180
16181 2019-01-09 Tom Tromey <tom@tromey.com>
16182
16183 * symtab.c (find_line_symtab, info_sources_command)
16184 (make_source_files_completion_list): Use objfile_compunits.
16185 * source.c (select_source_symtab): Use objfile_compunits.
16186 * objfiles.h (struct objfile): Update comment.
16187 (ALL_OBJFILES): Remove.
16188 (ALL_FILETABS): Remove.
16189 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16190 objfile_compunits.
16191
16192 2019-01-09 Tom Tromey <tom@tromey.com>
16193
16194 * symmisc.c (print_objfile_statistics, dump_objfile)
16195 (maintenance_print_symbols): Use compunit_filetabs.
16196 * source.c (forget_cached_source_info_for_objfile): Use
16197 compunit_filetabs.
16198 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16199 (ALL_FILETABS): Use compunit_filetabs.
16200 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16201 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16202
16203 2019-01-09 Tom Tromey <tom@tromey.com>
16204
16205 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16206 (compunit_filetabs): New.
16207 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16208 compunit_filetabs.
16209 (info_sources_command, make_source_files_completion_list): Remove
16210 declaration.
16211 * symmisc.c (print_objfile_statistics, dump_objfile)
16212 (maintenance_print_symbols): Remove declaration.
16213 (maintenance_info_symtabs): Use compunit_filetabs.
16214 (maintenance_info_line_tables): Likewise.
16215 * source.c (select_source_symtab): Change local variable name.
16216 (forget_cached_source_info_for_objfile): Remove declaration.
16217 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16218 * objfiles.c (objfile_relocate1): Remove declaration.
16219 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16220 declaration.
16221 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16222 * coffread.c (coff_symtab_read): Remove declaration.
16223 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16224 compunit_filetabs.
16225
16226 2019-01-09 Tom Tromey <tom@tromey.com>
16227
16228 * symtab.c (lookup_objfile_from_block)
16229 (find_pc_sect_compunit_symtab, search_symbols)
16230 (default_collect_symbol_completion_matches_break_on): Use
16231 objfile_compunits.
16232 * objfiles.h (ALL_COMPUNITS): Remove.
16233 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16234 * cp-support.c (add_symbol_overload_list_qualified): Use
16235 objfile_compunits.
16236 * ada-lang.c (ada_collect_symbol_completion_matches)
16237 (ada_add_global_exceptions): Use objfile_compunits.
16238
16239 2019-01-09 Tom Tromey <tom@tromey.com>
16240
16241 * source.c (select_source_symtab)
16242 (forget_cached_source_info_for_objfile): Remove declaration.
16243 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16244 declaration.
16245 * maint.c (count_symtabs_and_blocks): Remove declaration.
16246 * cp-support.c (add_symbol_overload_list_qualified): Remove
16247 declaration.
16248 * coffread.c (coff_symtab_read): Remove declaration.
16249 * symtab.c (lookup_symbol_in_objfile_symtabs)
16250 (basic_lookup_transparent_type_1): Use objfile_compunits.
16251 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16252 (info_sources_command, search_symbols)
16253 (default_collect_symbol_completion_matches_break_on)
16254 (make_source_files_completion_list): Remove declaration.
16255 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16256 (ada_collect_symbol_completion_matches)
16257 (ada_add_global_exceptions): Remove declaration.
16258 * linespec.c (iterate_over_all_matching_symtabs): Use
16259 objfile_compunits.
16260 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16261 (class objfile_compunits): New.
16262 (ALL_COMPUNITS): Use objfile_compunits.
16263 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16264 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16265 objfile_compunits.
16266 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16267
16268 2019-01-09 Tom Tromey <tom@tromey.com>
16269
16270 * symtab.c (search_symbols)
16271 (default_collect_symbol_completion_matches_break_on): Use
16272 objfile_msymbols.
16273 * ada-lang.c (ada_lookup_simple_minsym)
16274 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16275 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16276 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16277 objfile_msymbols.
16278 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16279 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16280 * objc-lang.c (find_methods): Use objfile_msymbols.
16281 (info_selectors_command, info_classes_command): Likewise.
16282 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16283 * objfiles.h (class objfile_msymbols): New.
16284 (ALL_OBJFILE_MSYMBOLS): Remove.
16285 (ALL_MSYMBOLS): Remove.
16286
16287 2019-01-09 Tom Tromey <tom@tromey.com>
16288
16289 * common/next-iterator.h (next_adapter): Add Iterator template
16290 parameter.
16291 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16292 (class all_objfiles_safe): New.
16293 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16294 * objfiles.c (put_objfile_before): Update comment.
16295 (add_separate_debug_objfile): Likewise.
16296 (free_all_objfiles): Use all_objfiles_safe.
16297 (objfile_purge_solibs): Likewise.
16298
16299 2019-01-09 Tom Tromey <tom@tromey.com>
16300
16301 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16302 (expand_symtab_containing_pc, lookup_static_symbol)
16303 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16304 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16305 all_objfiles.
16306 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16307 * breakpoint.c (create_overlay_event_breakpoint)
16308 (create_longjmp_master_breakpoint)
16309 (create_std_terminate_master_breakpoint)
16310 (create_exception_master_breakpoint): Use all_objfiles.
16311 * linux-thread-db.c (try_thread_db_load_from_pdir)
16312 (has_libpthread): Use all_objfiles.
16313 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16314 * linespec.c (iterate_over_all_matching_symtabs)
16315 (search_minsyms_for_name): Use all_objfiles.
16316 * maint.c (maintenance_info_sections): Use all_objfiles.
16317 * main.c (captured_main_1): Use all_objfiles.
16318 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16319 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16320 * guile/scm-pretty-print.c
16321 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16322 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16323 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16324 (maintenance_print_msymbols): Use all_objfiles.
16325 * source.c (select_source_symtab): Use all_objfiles.
16326 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16327 * symfile.c (remove_symbol_file_command)
16328 (expand_symtabs_matching, map_symbol_filenames): Use
16329 all_objfiles.
16330 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16331 all_objfiles.
16332 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16333 * objc-lang.c (find_methods): Use all_objfiles.
16334 * objfiles.c (have_partial_symbols, have_full_symbols)
16335 (have_minimal_symbols, qsort_cmp)
16336 (default_iterate_over_objfiles_in_search_order): Use
16337 all_objfiles.
16338 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16339 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16340 (maintenance_check_psymtabs): Use all_objfiles.
16341 (ALL_PSYMTABS): Remove.
16342 * compile/compile-object-run.c (do_module_cleanup): Use
16343 all_objfiles.
16344 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16345 * cp-support.c (add_symbol_overload_list_qualified): Use
16346 all_objfiles.
16347 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16348 Use all_objfiles.
16349 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16350 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16351 all_objfiles.
16352 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16353 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16354 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16355 Uses all_objfiles.
16356 * solib.c (solib_read_symbols): Use all_objfiles
16357
16358 2019-01-09 Tom Tromey <tom@tromey.com>
16359
16360 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16361 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16362 all_objfiles.
16363 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16364 * symmisc.c (print_symbol_bcache_statistics)
16365 (print_objfile_statistics, maintenance_print_objfiles)
16366 (maintenance_info_symtabs, maintenance_check_symtabs)
16367 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16368 all_objfiles.
16369 * source.c (forget_cached_source_info): Use all_objfiles.
16370 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16371 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16372 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16373 * objfiles.c (update_section_map): Use all_objfiles.
16374 (shared_objfile_contains_address_p): Likewise.
16375 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16376 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16377
16378 2019-01-09 Tom Tromey <tom@tromey.com>
16379
16380 * common/next-iterator.h: New file.
16381 * objfiles.h (class all_objfiles): New.
16382 (struct objfile_iterator): New.
16383
16384 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16385
16386 * NEWS: Move the description of the changed "frame", "select-frame",
16387 and "info frame" commands to the Changed commands section.
16388
16389 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16390
16391 * gdbtypes.c (check_stub_method_group): Remove handling of old
16392 mangling schemes.
16393 * linespec.c (find_methods): Likewise.
16394 * stabsread.c (read_member_functions): Likewise.
16395 * valops.c (search_struct_method): Likewise.
16396 (value_struct_elt_for_reference): Likewise.
16397 * NEWS: Mention this change.
16398
16399 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16400
16401 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16402 print_source_lines.
16403 * source.c (print_source_lines_base): Update line number check.
16404 (print_source_lines): New function.
16405 (source_lines_range::source_lines_range): New function.
16406 * source.h (class source_lines_range): New class.
16407 (print_source_lines): New declaration.
16408
16409 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16410
16411 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16412
16413 2019-01-08 Tom Tromey <tom@tromey.com>
16414 Simon Marchi <simon.marchi@ericsson.com>
16415
16416 PR gdb/24060
16417 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16418 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16419 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16420 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16421 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16422 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16423
16424 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16425
16426 * source.c (select_source_symtab): Move header comment to
16427 declaration in source.h.
16428 (forget_cached_source_info_for_objfile): Likewise.
16429 (forget_cached_source_info): Likewise.
16430 (identify_source_line): Likewise.
16431 * source.h (identify_source_line): Move declaration from symtab.h
16432 and add comment from source.c
16433 (print_source_lines): Likewise.
16434 (forget_cached_source_info_for_objfile): Likewise.
16435 (forget_cached_source_info): Likewise.
16436 (select_source_symtab): Likewise.
16437 (enum print_source_lines_flag): Move definition from symtab.h.
16438 * symtab.h (identify_source_line): Move declaration to source.h.
16439 (print_source_lines): Likewise.
16440 (forget_cached_source_info_for_objfile): Likewise.
16441 (forget_cached_source_info): Likewise.
16442 (select_source_symtab): Likewise.
16443 (enum print_source_lines_flag): Move definition to source.h.
16444 * tui/tui-hooks.c: Add 'source.h' include.
16445
16446 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16447
16448 * source.c (print_source_lines_base): Handle requests to print
16449 reverse line number sequences, and guard against empty lines
16450 string.
16451
16452 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16453
16454 * source.c (print_source_lines_base): Fix skip of '\r' if next
16455 character is '\n'.
16456
16457 2019-01-06 Tom Tromey <tom@tromey.com>
16458
16459 * c-exp.y (struct c_parse_state) <macro_original_text,
16460 expansion_obstack>: New member.
16461 (macro_original_text, expansion_obstack): Remove globals.
16462 (scan_macro_expansion, scanning_macro_expansion)
16463 (finished_macro_expansion): Update.
16464 (scan_macro_cleanup): Remove.
16465 (yylex, c_parse): Update.
16466
16467 2019-01-06 Tom Tromey <tom@tromey.com>
16468
16469 * c-exp.y (struct c_parse_state) <strings>: New member.
16470 (operator_stoken): Update.
16471
16472 2019-01-06 Tom Tromey <tom@tromey.com>
16473
16474 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16475 (union type_stack_elt) <typelist_val>: Now a pointer to
16476 std::vector.
16477 (type_stack_cleanup): Don't declare.
16478 (push_typelist): Update.
16479 * parse.c (pop_typelist): Return a std::vector.
16480 (push_typelist): Take a std::vector.
16481 (follow_types): Update. Do not free args.
16482 (type_stack_cleanup): Remove.
16483 * c-exp.y (struct c_parse_state): New.
16484 (cpstate): New global.
16485 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16486 (nonempty_typelist): Update.
16487 (func_mod): Create a new vector.
16488 (c_parse): Create a c_parse_state.
16489 (check_parameter_typelist): Do not delete params.
16490 (function_method): Update. Do not delete type_list.
16491
16492 2019-01-06 Tom Tromey <tom@tromey.com>
16493
16494 PR gdb/28155:
16495 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16496 check_typedef.
16497 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16498 (print_return_value): Likewise.
16499
16500 2019-01-05 Tom Tromey <tom@tromey.com>
16501
16502 * contrib/cleanup_check.py: Remove.
16503 * contrib/gcc-with-excheck: Remove.
16504 * contrib/exsummary.py: Remove.
16505 * contrib/excheck.py: Remove.
16506
16507 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16508
16509 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16510 NULL. Initialize tpprev to NULL instead of assigning it
16511 to NULL on the next statement.
16512 * windows-nat.c (windows_delete_thread): Remove check for
16513 main_thread_id before printing thread exit notifications.
16514 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16515 Remove thread ID check against main_thread_id.
16516 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16517 windows_delete_thread.
16518 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16519
16520 2019-01-04 Tom Tromey <tom@tromey.com>
16521
16522 * compile/compile.c (_initialize_compile): Use upper case for
16523 metasyntactic variables.
16524 * symmisc.c (_initialize_symmisc): Use upper case for
16525 metasyntactic variables.
16526 * psymtab.c (_initialize_psymtab): Use upper case for
16527 metasyntactic variables.
16528 * demangle.c (demangle_command): Use upper case for metasyntactic
16529 variables.
16530 (_initialize_demangler): Likewise.
16531 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16532 variables.
16533
16534 2019-01-03 Tom Tromey <tom@tromey.com>
16535
16536 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16537
16538 2019-01-03 Tom Tromey <tom@tromey.com>
16539
16540 * python/py-symtab.c (salpy_str): Update.
16541 (struct salpy_sal_object) <symtab>: Now a PyObject.
16542 (salpy_dealloc): Update.
16543 (del_objfile_sal): Use gdbpy_ref.
16544
16545 2019-01-03 Tom Tromey <tom@tromey.com>
16546
16547 * python/py-type.c (convert_field): Use new_reference. Return
16548 gdbpy_ref.
16549 (make_fielditem): Return gdbpy_ref.
16550 (typy_fields): Update.
16551 (typy_getitem): Update.
16552 (field_name): Return gdbpy_ref. Use new_reference.
16553 (typy_iterator_iternext): Update.
16554
16555 2019-01-03 Tom Tromey <tom@tromey.com>
16556
16557 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16558
16559 2019-01-03 Tom Tromey <tom@tromey.com>
16560
16561 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16562 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16563 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16564 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16565 (pspy_set_type_printers): Likewise.
16566 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16567 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16568 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16569 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16570 (objfpy_set_type_printers): Likewise.
16571
16572 2019-01-03 Tom Tromey <tom@tromey.com>
16573
16574 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16575 (gdbpy_print_stack): Use gdbpy_err_fetch.
16576 * python/python-internal.h (class gdbpy_err_fetch): New class.
16577 (class gdbpy_enter) <m_error_type, m_error_value,
16578 m_error_traceback>: Remove.
16579 <m_error>: New member.
16580 (gdbpy_exception_to_string): Don't declare.
16581 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16582 * python/py-value.c (convert_value_from_python): Use
16583 gdbpy_err_fetch.
16584 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16585 gdbpy_exception_to_string.
16586 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16587 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16588 gdbpy_err_fetch.
16589
16590 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16591
16592 * linux-nat.c (delete_lwp_cleanup): Delete.
16593 (struct lwp_deleter): New struct.
16594 (lwp_info_up): New typedef.
16595 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16596 lwp_info_up.
16597
16598 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16599
16600 * linux-fork.c (class scoped_switch_fork_info): New class.
16601 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16602
16603 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16604
16605 * valops.c (find_overload_match): Remove use of null_cleanup, and
16606 calls to do_cleanups.
16607
16608 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16609
16610 * compile/compile-cplus-types.c
16611 (compile_cplus_instance::decl_name): Handle changes to
16612 cp_func_name.
16613 * cp-support.c (cp_func_name): Update header comment, update
16614 return type.
16615 * cp-support.h (cp_func_name): Update return type in declaration.
16616 * valops.c (find_overload_match): Move temp_func local to top
16617 level of function and change its type. Use temp_func to hold and
16618 delete temporary string obtained from cp_func_name.
16619
16620 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16621
16622 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16623 gdb::char_vector, remove cleanup, and update uses of `msg`.
16624
16625 2019-01-03 Jim Wilson <jimw@sifive.com>
16626
16627 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16628
16629 2019-01-02 Tom Tromey <tom@tromey.com>
16630
16631 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16632 (tdesc_parse_xml): Remove cleanups.
16633 * target-descriptions.h (make_cleanup_free_target_description):
16634 Don't declare.
16635 (target_desc_deleter): New struct.
16636 (target_desc_up): New typedef.
16637 * target-descriptions.c (target_desc_deleter::operator()): Rename
16638 from free_target_description.
16639 (make_cleanup_free_target_description): Remove.
16640
16641 2019-01-02 Tom Tromey <tom@tromey.com>
16642
16643 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16644 constructor, destructor.
16645 (linespec_parser): Remove typedef.
16646 (~linespec_parser): Rename from linespec_parser_delete.
16647 (linespec_lex_to_end, linespec_complete_label)
16648 (linespec_complete): Update.
16649 (decode_line_full): Remove cleanups.
16650 (decode_line_1): Update.
16651
16652 2019-01-02 Tom Tromey <tom@tromey.com>
16653
16654 * python/python-internal.h (inferior_to_inferior_object): Change
16655 return type.
16656 * python/py-exitedevent.c (create_exited_event_object): Update.
16657 * python/py-inferior.c (inferior_to_inferior_object): Return
16658 gdbpy_ref.
16659 (python_new_inferior, python_inferior_deleted)
16660 (thread_to_thread_object, delete_thread_object)
16661 (build_inferior_list, gdbpy_selected_inferior): Update.
16662 * python/py-infthread.c (create_thread_object): Update. Also fail
16663 if inferior_to_inferior_object fails.
16664
16665 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16666
16667 * inferior.h (class inferior) <displaced_step_state>: New field.
16668 * infrun.h (struct displaced_step_state): Move here from
16669 infrun.c. Initialize fields, add constructor.
16670 <inf>: Remove field.
16671 <reset>: New method.
16672 * infrun.c (struct displaced_step_inferior_state): Move to
16673 infrun.h.
16674 (displaced_step_inferior_states): Remove.
16675 (get_displaced_stepping_state): Adust.
16676 (displaced_step_in_progress_any_inferior): Adjust.
16677 (displaced_step_in_progress_thread): Adjust.
16678 (displaced_step_in_progress): Adjust.
16679 (add_displaced_stepping_state): Remove.
16680 (get_displaced_step_closure_by_addr): Adjust.
16681 (remove_displaced_stepping_state): Remove.
16682 (infrun_inferior_exit): Call displaced_step_state.reset.
16683 (use_displaced_stepping): Don't check for NULL.
16684 (displaced_step_prepare_throw): Call
16685 get_displaced_stepping_state.
16686 (displaced_step_fixup): Don't check for NULL.
16687 (prepare_for_detach): Don't check for NULL.
16688
16689 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16690
16691 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16692 in case of call that did not complete.
16693
16694 2019-01-02 Andrey Utkin <autkin@undo.io>
16695
16696 * symfile.c (find_separate_debug_file): Fix search of debug files for
16697 remote debuggee.
16698
16699 2019-01-02 Tom Tromey <tom@tromey.com>
16700
16701 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16702 indentation.
16703 * python/py-frame.c (frapy_older): Remove cast.
16704 (frapy_newer): Likewise.
16705 * python/py-breakpoint.c (local_setattro): Remove cast.
16706 * python/py-arch.c (archpy_name): Remove local variable.
16707 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16708
16709 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16710
16711 * unittests/basic_string_view/element_access/char/empty.cc:
16712 Fix year range in copyright header.
16713
16714 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16715
16716 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16717 Delete.
16718 <operator==>: Update with for removed field.
16719 <hash>: Likewise.
16720 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16721 <isa_features>: ...this.
16722 <abi_features>: New field.
16723 (riscv_isa_flen): Update comment.
16724 (riscv_abi_xlen): New declaration.
16725 (riscv_abi_flen): New declaration.
16726 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16727 isa_features.
16728 (riscv_abi_xlen): New function.
16729 (riscv_isa_flen): Update to get answer from isa_features.
16730 (riscv_abi_flen): New function.
16731 (riscv_has_fp_abi): Update to get answer from abi_features.
16732 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16733 xlen and flen.
16734 (riscv_call_info) <xlen, flen>: Update comment.
16735 (riscv_call_arg_struct): Remove invalid assertions
16736 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16737 is removed.
16738 (riscv_gdbarch_init): Gather isa features and abi features
16739 separately, ensure both match on the gdbarch when reusing an old
16740 gdbarch. Relax an error check to allow 32-bit abi float to run on
16741 a target with 64-bit float hardware.
16742
16743 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16744
16745 * source.c (search_command_helper): Stop reverse search
16746 when line 1 has been searched.
16747
16748 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16749
16750 * record-full.c (record_full_base_target::close): Rewrite
16751 record_full_core_buf_list free logic.
16752
16753 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16754
16755 * break-catch-syscall.c (print_one_catch_syscall): xfree
16756 the last text.
16757
16758 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16759
16760 * top.c (print_gdb_version): Update Copyright year in version
16761 message.
16762
16763 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16764
16765 Update copyright year range in all GDB files.
16766
16767 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16768
16769 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16770
16771 For older changes see ChangeLog-2018.
16772 \f
16773 Local Variables:
16774 mode: change-log
16775 left-margin: 8
16776 fill-column: 74
16777 version-control: never
16778 coding: utf-8
16779 End:
16780
This page took 0.41472 seconds and 4 git commands to generate.