Fix indentation in jit.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3a90f266
SM
12019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * jit.c: Fix indentation, replace spaces with tabs where
4 applicable.
5
b3f4b80f
JL
62019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7
8 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
9
e671856c
TT
102019-12-12 Tom Tromey <tom@tromey.com>
11
12 * objfiles.h (struct objfile) <partial_symtabs>: Now a
13 unique_ptr.
14
7d7167ce
TT
152019-12-12 Tom Tromey <tom@tromey.com>
16
17 * progspace.h (objfile_list): New typedef.
18 (class unwrapping_objfile_iterator)
19 (struct unwrapping_objfile_range): Newl
20 (struct program_space) <objfiles_range>: Change type.
21 <objfiles>: Change return type.
22 <add_objfile>: Change type of "objfile" parameter.
23 <objfiles_list>: Now a list of shared_ptr.
24 * progspace.c (program_space::add_objfile): Change type of
25 "objfile". Update.
26 (program_space::remove_objfile): Update.
27 * objfiles.h (struct objfile) <~objfile>: Make public.
28 * objfiles.c (objfile::make): Update.
29 (objfile::unlink): Don't call delete.
30
343cc952
TT
312019-12-12 Tom Tromey <tom@tromey.com>
32
33 * symfile.c (symbol_file_clear): Update.
34 * progspace.h (struct program_space) <free_all_objfiles>: Declare
35 method.
36 * progspace.c (program_space::free_all_objfiles): New method.
37 * objfiles.h (free_all_objfiles): Don't declare.
38 * objfiles.c (free_all_objfiles): Move to program_space.
39
d0801dd8
TT
402019-12-12 Tom Tromey <tom@tromey.com>
41
42 * progspace.c (program_space::add_objfile)
43 (program_space::remove_objfile): Update.
44 (program_space::multi_objfile_p): Remove.
45 * objfiles.h (struct objfile) <next>: Remove.
46 * objfiles.c (objfile::objfile): Update.
47 (put_objfile_before): Update.
48 (unlink_objfile): Update.
49 * progspace.h (object_files): Remove.
50 (struct program_space) <objfiles_head>: Remove.
51 <objfiles_list>: New member.
52 <objfiles_range, objfiles_safe_range>: Change type.
53 (objfiles): Change return type.
54 (objfiles_safe): Update.
55 (multi_objfile_p): Rewrite and inline.
56 (object_files): Remove macro.
57
13bff726
TT
582019-12-12 Tom Tromey <tom@tromey.com>
59
60 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
61 second constructor.
62 (basic_safe_range): New class.
63
deeafabb
TT
642019-12-12 Tom Tromey <tom@tromey.com>
65
66 * progspace.c (program_space::multi_objfile_p): New method.
67 * printcmd.c (info_symbol_command): Update.
68 * maint.c (maintenance_translate_address): Update.
69 * objfiles.h (MULTI_OBJFILE_P): Remove.
70 * progspace.h (struct program_space) <multi_objfile_p>: New
71 method.
72
23452926
TT
732019-12-12 Tom Tromey <tom@tromey.com>
74
75 * progspace.h (struct program_space) <remove_objfile>: Declare.
76 * progspace.c (program_space::remove_objfile): New method.
77 * objfiles.c (unlink_objfile): Remove.
78 (objfile::unlink): Call remove_objfile.
79 (objfile): Don't call unlink_objfile.
80
7cac64af
TT
812019-12-12 Tom Tromey <tom@tromey.com>
82
83 * progspace.h (struct program_space) <add_objfile>: Declare
84 method.
85 * progspace.c (program_space::add_objfile): New method.
86 * objfiles.c (~objfile): Don't unlink objfile.
87 (put_objfile_before): Remove.
88 (add_separate_debug_objfile): Don't call put_objfile_before.
89 (objfile::make): Call add_objfile. Set new_objfiles_available on
90 the per-program-space data.
91
268e4f09
TT
922019-12-12 Tom Tromey <tom@tromey.com>
93
94 * symfile.c (syms_from_objfile_1): Use objfile_up.
95 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
96 method.
97 (reread_symbols): Use objfile_up.
98 * solib.c (update_solib_list, reload_shared_libraries_1): Call
99 unlink method.
100 * objfiles.h (struct objfile) <~objfile>: Now private.
101 <unlink>: New method.
102 (struct objfile_deleter): New.
103 (objfile_up): New typedef.
104 * objfiles.c (objfile::unlink): New method.
105 (free_objfile_separate_debug, free_all_objfiles)
106 (objfile_purge_solibs): Use it.
107 * jit.c (jit_unregister_code): Remove.
108 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
109 objfile.
110 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
111 objfile.
112 * compile/compile-object-load.c (compile_object_load): Use
113 objfile_up.
114
f65fe570
TT
1152019-12-12 Tom Tromey <tom@tromey.com>
116
117 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
118 objfile::make.
119 * objfiles.h (struct objjfile) <make>: No longer inline.
120 (add_separate_debug_objfile): Don't declare.
121 * objfiles.c (add_separate_debug_objfile): Now static.
122 (objfile::make): Move from objfiles.h. Call
123 add_separate_debug_objfile. Add "parent" parameter.
124
bda13cdc
TT
1252019-12-12 Tom Tromey <tom@tromey.com>
126
127 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
128 * objfiles.h (struct objfile): Make constructor private.
129 <make>: New static method.
130 * jit.c (jit_object_close_impl): Update.
131
7190276c
SM
1322019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
135 gdb::byte_vector.
136
d61df897
TT
1372019-12-12 Tom Tromey <tromey@adacore.com>
138
139 * xml-support.c (xml_fetch_content_from_file): Don't call
140 malloc_failure.
141 * utils.h (class gdb_argv): Remove malloc_failure comment.
142 * utils.c (gdb_argv::reset): Don't call malloc_failure.
143
db3ad2f0
TT
1442019-12-12 Tom Tromey <tromey@adacore.com>
145
146 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
147 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
148 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
149 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
150 * riscv-ravenscar-thread.c: New file.
151 * riscv-ravenscar-thread.h: New file.
152 * riscv-tdep.c (riscv_gdbarch_init): Call
153 register_riscv_ravenscar_ops.
154
2ffe5b9c
TT
1552019-12-12 Tom Tromey <tromey@adacore.com>
156
157 * gdbsupport/thread-pool.c (set_thread_name): Use
158 ATTRIBUTE_UNUSED.
159
39f34d7b
LM
1602019-12-12 Luis Machado <luis.machado@linaro.org>
161
162 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
163 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
164 macros.
165
d4eeccfe
TT
1662019-12-11 Tom Tromey <tom@tromey.com>
167
168 * tui/tui-win.c (tui_set_win_height_command): Call
169 tui_adjust_window_height.
170 (tui_adjust_win_heights, new_height_ok): Remove.
171 * tui/tui-layout.h (tui_adjust_window_height): Declare.
172 * tui/tui-layout.c (tui_adjust_window_height): New function.
173
3d979945
TT
1742019-12-11 Tom Tromey <tom@tromey.com>
175
176 * tui/tui-win.c (tui_resize_all): Remove code, call
177 tui_apply_current_layout.
178
2192a9d3
TT
1792019-12-11 Tom Tromey <tom@tromey.com>
180
181 * tui/tui-layout.h (tui_apply_current_layout): Declare.
182 * tui/tui-layout.c (standard_layouts, applied_layout): New
183 globals.
184 (tui_apply_current_layout): New function.
185 (show_layout): Set applied_layout. Call
186 tui_apply_current_layout.
187 (show_source_command, show_disasm_command)
188 (show_source_disasm_command, show_data)
189 (show_source_or_disasm_and_command): Remove.
190 (initialize_layouts): New function.
191 (_initialize_tui_layout): Call initialize_layouts.
192
389e7ddb
TT
1932019-12-11 Tom Tromey <tom@tromey.com>
194
195 * tui/tui-layout.h (class tui_layout_base)
196 (class tui_layout_window, class tui_layout_split): New.
197 * tui/tui-layout.c (tui_get_window_by_name)
198 (tui_layout_window::clone, tui_layout_window::apply)
199 (tui_layout_window::get_sizes, tui_layout_window::add_split)
200 (tui_layout_split::add_window, tui_layout_split::clone)
201 (tui_layout_split::get_sizes)
202 (tui_layout_split::set_weights_from_heights)
203 (tui_layout_split::adjust_size, tui_layout_split::apply): New
204 functions.
205 (tui_layout_split::add_split, tui_layout_split::add_split)
206 (tui_layout_split::set_weights_from_heights)
207 (tui_layout_split::set_weights_from_heights): New functions.
208
fb3184d8
TT
2092019-12-11 Tom Tromey <tom@tromey.com>
210
211 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
212 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
213 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
214 * tui/tui-data.h (struct tui_point): Remove.
215 (struct tui_gen_win_info) <origin>: Remove.
216 <x, y>: New fields.
217 * tui/tui-command.c (tui_cmd_window::resize): Update.
218
dc7ff8a6
TT
2192019-12-11 Tom Tromey <tom@tromey.com>
220
221 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
222 Implement.
223 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
224 Implement.
225 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
226 method.
227 (struct tui_win_info) <min_height>: Implement.
228
1431937b
TT
2292019-12-11 Tom Tromey <tom@tromey.com>
230
231 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
232 (struct tui_win_info) <can_box>: Update.
233
c8ec2f43
TT
2342019-12-11 Tom Tromey <tom@tromey.com>
235
236 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
237 method.
238 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
239 method.
240 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
241 method.
242 (struct tui_win_info) <max_height>: Now override.
243
4decd62b
JB
2442019-12-11 Joel Brobecker <brobecker@adacore.com>
245
246 * NEWS: Create a new section for the next release branch.
247 Rename the section of the current branch, now that it has
248 been cut.
249
d746744e
JB
2502019-12-11 Joel Brobecker <brobecker@adacore.com>
251
252 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
253 * version.in: Bump version to 10.0.50.DATE-git.
254
2e744276
TT
2552019-12-11 Tom Tromey <tromey@adacore.com>
256
257 PR build/25268:
258 * gdbsupport/thread-pool.c (set_thread_name): New function.
259 (thread_pool::set_thread_count): Don't call pthread_setname_np.
260 (thread_pool::thread_function): Call set_thread_name.
261
aac4760f
TT
2622019-12-11 Tom Tromey <tromey@adacore.com>
263
264 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
265 bfd_get_signed_8.
266
d8edc8b7
PW
2672019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
268
269 * NEWS: Document -raw-values option and the related setting commands.
270 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
271 only set it on when /r is given.
272 * valprint.c (value_print_option_defs): New element raw-values.
273 * Makefile.in: Add the new file.
274
cb511130
CB
2752019-12-10 Christian Biesinger <cbiesinger@google.com>
276
277 * gdbsupport/safe-strerror.c: Supress the unused function warning
278 for select_strerror_r.
279
ab7d13f0
CB
2802019-12-10 Christian Biesinger <cbiesinger@google.com>
281
282 * config.in: Regenerate.
283 * configure: Regenerate.
284 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
285 safe_strerror instead of strerror.
286 * gdbsupport/common.m4: Don't check for strerror.
287 * gdbsupport/safe-strerror.c: Support both the glibc version
288 of strerror_r and the XSI version.
289
6c71eb7d
TT
2902019-12-10 Tom Tromey <tromey@adacore.com>
291
292 * ada-typeprint.c (print_choices): Use a single "?".
293 (print_variant_part): Print "?" if the discriminant name
294 is not known.
295
bac7c5cf
GB
2962019-12-10 George Barrett <bob@bob131.so>
297
298 Fix scripted probe breakpoints.
299 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
300 declaration forward.
301 (breakpoint_ops_for_event_location_type)
302 (breakpoint_ops_for_event_location): Add function definitions.
303 (break_command_1, trace_command): Use
304 breakpoint_ops_for_event_location.
305 * breakpoint.h (breakpoint_ops_for_event_location): Add function
306 declarations.
307 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
308 breakpoint_ops_for_event_location.
309 * python/py-breakpoint.c (bppy_init): Use
310 breakpoint_ops_for_event_location.
311
330f1d38
TBA
3122019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
313
314 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
315 when ranking an lvalue argument for an rvalue parameter.
316
b1f0c0b9
WA
3172019-12-08 Wataru Ashihara <wataash@wataash.com>
318
319 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
320 template argument for scoped_restore_tmpl from bool to int.
321
aa2d5a42
KS
3222019-12-07 Keith Seitz <keiths@redhat.com>
323
324 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
325 (build_id_to_debug_bfd): Make static, rewriting to use
326 build_id_to_bfd_suffix.
327 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
328 adding `suffix' parameter. Append SUFFIX to file names
329 when searching for matching files.
330 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
331 (build_id_to_exec_bfd): Likewise.
332 * build-id.h (build_id_to_debug_bfd): Clarify that function
333 searches for BFD of debug info file.
334 (build_id_to_exec_bfd): Declare.
335 * corelow.c: Include build-id.h.
336 (locate_exec_from_corefile_build_id): New function.
337 (core_target_open): If no executable BFD is found,
338 search for a core file BFD using build-id.
339
dfb65191
CB
3402019-12-06 Christian Biesinger <cbiesinger@google.com>
341
342 * bcache.c: Put in namespace gdb.
343 * bcache.h: Likewise.
344 * gdbtypes.c (check_types_worklist): Update.
345 (types_deeply_equal): Update.
346 * macrotab.c (struct macro_table) <bcache>: Update.
347 (new_macro_table): Update.
348 * macrotab.h (struct bcache): Put this forward declaration
349 inside namespace gdb.
350 (new_macro_table): Update.
351 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
352 Update.
353 <macro_cache>: Update.
354 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
355
93e55f0a
TV
3562019-12-06 Tom de Vries <tdevries@suse.de>
357
358 PR symtab/24971
359 * block.c (best_symbol, better_symbol): New function.
360 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
361 decl.
362
06acc08f
TBA
3632019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
364
365 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
366 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
367 for ranking see-through reference cases.
368
e0fad1ea
PW
3692019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
370 * stack.c (faas_command): Check a command is provided.
371 * thread.c (taas_command, tfaas_command): Likewise.
372
908641f5
PW
3732019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
374 * inferior.c (prune_inferiors): Only call delete_inferior,
375 Do not modify the inferior list.
376
b858499d
SM
3772019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
378
379 * c-exp.y: Update calls to lookup_typename,
380 lookup_signed_typename and lookup_unsigned_typename.
381 * c-lang.c (evaluate_subexp_c): Likewise.
382 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
383 Likewise.
384 * eval.c (binop_promote): Likewise.
385 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
386 (lookup_unsigned_typename): Likewise.
387 (lookup_signed_typename): Likewise.
388 * gdbtypes.h (lookup_unsigned_typename): Likewise.
389 (lookup_signed_typename): Likewise.
390 (lookup_typename): Likewise.
391 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
392 lookup_typename, lookup_signed_typename,
393 lookup_unsigned_typename.
394 * m2-exp.y: Likewise.
395 * printcmd.c (printf_wide_c_string): Likewise.
396 (ui_printf): Likewise.
397 * python/py-type.c (typy_lookup_typename): Likewise.
398 * python/py-xmethods.c (python_xmethod_worker::invoke):
399 Likewise.
400 * rust-exp.y: Likewise.
401
3a8fa228
CB
4022019-12-04 Christian Biesinger <cbiesinger@google.com>
403
404 * configure.nat (obsd64): Add missing files x86-nat.o and
405 nat/x86-dregs.o.
406
2dbc041e
TT
4072019-12-04 Tom Tromey <tom@tromey.com>
408
409 * valprint.c (val_print_string): Use metadata_style.
410 * go-valprint.c (print_go_string): Use metadata style.
411 * p-valprint.c (pascal_object_print_static_field): Use metadata
412 style.
413 * cp-valprint.c (cp_print_static_field): Use metadata style.
414
36c8fb93
AB
4152019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
416 Chris January <chris.january@arm.com>
417
418 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
419 tokens.
420 (typebase): New patterns for complex, single/double precision, and
421 single/double complex.
422 (f77_keywords): Change token for complex keyword, and add single,
423 double, and precision keywords.
424
c6170c2c
SM
4252019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
426
427 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
428 "info io_registers".
429
894ecaf4
SM
4302019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
431
432 * regcache.c (cooked_read_test): Initialize thread list of
433 mock_inferior.
434
be155ebb
SM
4352019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
436
437 * aarch64-linux-tdep.c: Remove includes.
438
c577cdd7
SM
4392019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * aarch64-tdep.c: Remove includes.
442
610cfd61
SM
4432019-12-04 Simon Marchi <simon.marchi@efficios.com>
444
445 * filtered-iterator.h (filtered_iterator) <operator==,
446 operator!=>: Compare wrapped iterators, not wrapped pointers.
447 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
448 unittests/filtered_iterator-selftests.c.
449 * unittests/filtered_iterator-selftests.c: New file.
450
a05cf17a
TT
4512019-12-04 Tom Tromey <tromey@adacore.com>
452
453 * gdbtypes.c (create_range_type): Inherit endianity
454 from base type.
455
d5a22e77
TT
4562019-12-04 Tom Tromey <tromey@adacore.com>
457
458 * ada-lang.c (decode_constrained_packed_array)
459 (ada_value_assign, value_assign_to_component): Update.
460 * dwarf2loc.c (rw_pieced_value, access_memory)
461 (dwarf2_compile_expr_to_ax): Update.
462 * dwarf2read.c (dwarf2_add_field): Update.
463 * eval.c (evaluate_subexp_standard): Update.
464 * gdbarch.c, gdbarch.h: Rebuild.
465 * gdbarch.sh (bits_big_endian): Remove.
466 * gdbtypes.h (union field_location): Update comment.
467 * target-descriptions.c (make_gdb_type): Update.
468 * valarith.c (value_bit_index): Update.
469 * value.c (struct value) <bitpos>: Update comment.
470 (unpack_bits_as_long, modify_field): Update.
471 * value.h (value_bitpos): Update comment.
472
7ab4a236
TT
4732019-12-04 Tom Tromey <tromey@adacore.com>
474
475 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
476 endian-ness.
477
103a685e
TT
4782019-12-04 Tom Tromey <tromey@adacore.com>
479
480 * dwarf2read.c (dwarf2_init_float_type)
481 (dwarf2_init_complex_target_type): Add byte_order parameter.
482 (read_base_type): Compute byte order earlier.
483 * gdbtypes.c (init_float_type): Add byte_order parameter.
484 * gdbtypes.h (init_float_type): Add byte_order parameter.
485
7a9e9f9f
TT
4862019-12-04 Tom Tromey <tromey@adacore.com>
487
488 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
489
feee869b
TT
4902019-12-04 Tom Tromey <tromey@adacore.com>
491
492 * dwarf2read.c (process_structure_scope): Initialize
493 "discr_offset".
494
c2512106
AB
4952019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
498 add it into the search spec.
499 (parse_max_results_option): New function.
500 (mi_info_functions_or_variables): Parse -max-results flag and pass
501 it to mi_symbol_info.
502 (mi_cmd_symbol_info_modules): Likewise.
503 (mi_cmd_symbol_info_types): Likewise.
504 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
505 return type to bool, change result container into a set, and don't
506 add new results if we have enough already.
507 (global_symbol_searcher::add_matching_msymbols): Change return
508 type to bool, and don't add new results if we have enough already.
509 (sort_search_symbols_remove_dups): Delete.
510 (global_symbol_searcher::search): Early exit from search loop when
511 we have enough results. Use a std::set to collect the results
512 from calling add_matching_symbols.
513 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
514 member function.
515 (global_symbol_searcher) <m_max_search_results>: New member
516 variable.
517 (global_symbol_searcher) <add_matching_symbols>: Update header
518 comment and change return type to bool.
519 (global_symbol_searcher) <add_matching_msymbols>: Update header
520 comment and change return type to bool.
521
f97a63c5
AB
5222019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
523
524 * symtab.c (symbol_search::compare_search_syms): Update header
525 comment.
526 (global_symbol_searcher::is_suitable_msymbol): New function.
527 (global_symbol_searcher::expand_symtabs): New function.
528 (global_symbol_searcher::add_matching_symbols): New function.
529 (global_symbol_searcher::add_matching_msymbols): New function.
530 (global_symbol_searcher::search): Move most of the content
531 into the new functions above, and call them as needed.
532 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
533 function.
534 (global_symbol_searcher) <add_matching_symbols>: New member
535 function.
536 (global_symbol_searcher) <add_matching_msymbols>: New member
537 function.
538 (global_symbol_searcher) <is_suitable_msymbol>: New member
539 function.
540
293b38d6
AB
5412019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
544 -symbol-info-module-variables entries.
545 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
546 (mi_cmd_symbol_info_module_variables): Declare.
547 * mi/mi-symbol-cmds.c
548 (module_symbol_search_iterator): New typedef.
549 (output_module_symbols_in_single_module_and_file): New function.
550 (output_module_symbols_in_single_module): New function.
551 (mi_info_module_functions_or_variables): New function.
552 (mi_cmd_symbol_info_module_functions): New function.
553 (mi_cmd_symbol_info_module_variables): New function.
554 * NEWS: Mention new MI command.
555
4cbd39b2
CB
5562019-12-03 Christian Biesinger <cbiesinger@google.com>
557
558 * bcache.c (hash): Remove.
559 (hash_continue): Remove.
560 * bcache.h (hash): Remove.
561 (hash_continue): Remove.
562 (struct bcache) <ctor>: Update.
563 * psymtab.c (psymbol_hash): Update.
564 * stabsread.c (hashname): Update.
565 * utils.h (fast_hash): Add an argument for a start value,
566 defaulting to zero.
567
82f910ea
PW
5682019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
569 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
570 (destroy_block_symbol_cache): New function.
571 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
572 (resize_symbol_cache): Likewise.
573
de2396d0
TT
5742019-12-02 Tom Tromey <tom@tromey.com>
575
576 * unittests/tui-selftests.c (run_tests): Make conditional.
577 (_initialize_tui_selftest): Make conditional.
578
638d85bc
CB
5792019-12-02 Christian Biesinger <cbiesinger@google.com>
580
581 * aix-thread.c (debug_aix_thread): Change type to bool.
582
7532a164
LM
5832019-12-02 Luis Machado <luis.machado@linaro.org>
584
585 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
586
216a7e6b
AB
5872019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
588
589 * dwarf2read.c (read_tag_string_type): Read the fields required to
590 make a dynamic string, and possibly create a dynamic range for the
591 string.
592 (attr_to_dynamic_prop): Setup is_reference based on the type of
593 attribute being processed.
594 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
595 (resolve_dynamic_array): Rename to...
596 (resolve_dynamic_array_or_string): ...this, update header comment,
597 and accept TYPE_CODE_STRING.
598 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
599
11a8b164
AB
6002019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
601
602 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
603 of its implementation from...
604 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
605 the new function.
606
5bbd8269
AB
6072019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
610 create a range with stride where appropriate.
611 * f-valprint.c: Include 'gdbarch.h'.
612 (f77_print_array_1): Take the stride into account when walking the
613 array. Also convert the stride into addressable units.
614 * gdbtypes.c (create_range_type): Initialise the stride to
615 constant zero.
616 (create_range_type_with_stride): New function, initialise the
617 range as normal, and then setup the stride.
618 (has_static_range): Include the stride here. Also change the
619 return type to bool.
620 (create_array_type_with_stride): Consider the range stride if the
621 array isn't given its own stride.
622 (resolve_dynamic_range): Resolve the stride if needed.
623 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
624 (struct range_bounds) <flag_is_byte_stride>: New member variable.
625 (TYPE_BIT_STRIDE): Define.
626 (TYPE_ARRAY_BIT_STRIDE): Define.
627 (create_range_type_with_stride): Declare.
628 * valarith.c (value_subscripted_rvalue): Take range stride into
629 account when walking the array.
630
82e3b564
TT
6312019-12-01 Tom Tromey <tom@tromey.com>
632
633 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
634 specially.
635
517d261d
TT
6362019-12-01 Tom Tromey <tom@tromey.com>
637
638 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
639 \0.
640 * unittests/tui-selftests.c: New file.
641 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
642
484c9b64
TT
6432019-12-01 Tom Tromey <tom@tromey.com>
644
645 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
646
a2a7af0c
TT
6472019-12-01 Tom Tromey <tom@tromey.com>
648
649 * NEWS: Document new settings.
650 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
651 * tui/tui-win.c (_initialize_tui_win): Add border style
652 observers.
653 * tui/tui-io.h (tui_apply_style): Declare.
654 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
655 longer static.
656 (apply_ansi_escape, tui_set_reverse_mode): Update.
657 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
658 Add "skip_intensity" parameter.
659 <changed>: New member.
660 <do_set_value>: Declare.
661 (tui_border_style, tui_active_border_style): Declare.
662 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
663 globals.
664 (cli_style_option): Initialize "changed".
665 (cli_style_option::do_set_value): New function.
666 (cli_style_option::add_setshow_commands): Add "skip_intensity"
667 parameter. Update.
668 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
669 (_initialize_cli_style): Update. Create TUI border style
670 commands.
671
d1da6b01
TT
6722019-12-01 Tom Tromey <tom@tromey.com>
673
674 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
675 parameter.
676 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
677 parameter.
678 * tui/tui-win.h (compact_source): Declare.
679 * tui/tui-win.c (compact_source): New global.
680 (tui_set_compact_source, tui_show_compact_source): New functions.
681 (_initialize_tui_win): Add "compact-source" setting.
682 * tui/tui-source.c (tui_source_window::set_contents): Handle
683 compact_source setting.
684 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
685 * NEWS: Document new setting.
686
489dbda6
TT
6872019-11-30 Tom Tromey <tom@tromey.com>
688
689 * dwarf2read.c (dwarf2_add_field): Include field offset when
690 computing variant part length.
691
bf498525
PW
6922019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
693 * NEWS: Mention define-prefix. Tell that command names can now
694 contain a . character.
695
be09caf1
PW
6962019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
697
698 * command.h (valid_cmd_char_p): Declare.
699 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
700 the check of valid command char.
701 (find_command_name_length, valid_user_defined_cmd_name_p): Use
702 valid_cmd_char_p.
703 * cli/cli-script.c (validate_comname): Likewise.
704 * completer.c (gdb_completer_command_word_break_characters):
705 Do not remove . from the word break char, update comments.
706 (complete_line_internal_1): Use valid_cmd_char_p.
707 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
708 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
709
c6ac7fc9
PW
7102019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
711
712 * cli/cli-script.c (do_define_command): Ensure a redefined
713 prefix command is kept as a prefix command.
714 (define_prefix_command): New function.
715 (show_user_1): Report user defined prefixes.
716 (_initialize_cli_script): Create the new 'define-prefix' command.
717 Add completers for 'define' and 'document'.
718 * top.c (execute_command): If command is a user-defined prefix only
719 command, report the list of commands for this prefix command.
720
a992a3b0
TBA
7212019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
722
723 * valops.c (find_oload_champ): Improve debug output.
724
e9194a1a
TBA
7252019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
726
727 * valops.c (find_oload_champ): Print part of debug messages
728 before the badness vector is std::move'd.
729
53a008a6
TT
7302019-11-28 Tom Tromey <tom@tromey.com>
731
732 * value.c (creal_internal_fn): Fix comment.
733
bab05c83
TT
7342019-11-28 Tom Tromey <tom@tromey.com>
735
736 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
737 flag_bound_evaluated>: Now unsigned.
738
2522f049
TT
7392019-11-28 Tom Tromey <tom@tromey.com>
740
741 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
742 declare.
743
38b49e22
MS
7442019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
745
746 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
747 debug output.
748 * jit.c (jit_unregister_code): Add debug print to match
749 `jit_register_code`.
750
35125921
CB
7512019-11-27 Christian Biesinger <cbiesinger@google.com>
752
753 * NEWS: Mention the new multithreaded symbol loading.
754
62e77f56
CB
7552019-11-27 Christian Biesinger <cbiesinger@google.com>
756
757 * maint.c (n_worker_threads): Default to 0.
758 (worker_threads_disabled): New function.
759 * maint.h (worker_threads_disabled): New function.
760 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
761 here if worker_threads_disabled () is true.
762 (minimal_symbol_reader::install): Skip all threading if
763 worker_threads_disabled () is true.
764
f29d7f6b
CB
7652019-11-27 Christian Biesinger <cbiesinger@google.com>
766
767 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
768 hash code if possible.
769 (add_minsym_to_demangled_hash_table): Likewise.
770 (minimal_symbol_reader::install): Compute the hash codes for msymbol
771 on the background thread.
772 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
773 Add these fields.
774
e76b2246
CB
7752019-11-27 Christian Biesinger <cbiesinger@google.com>
776
777 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
778 of the mangled name on the background thread.
779 * symtab.c (symbol_set_names): Allow passing in the hash of the
780 linkage_name.
781 * symtab.h (symbol_set_names): Likewise.
782
8d9a2568
KB
7832019-11-27 Kevin Buettner <kevinb@redhat.com>
784
785 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
786 physnames are computed for inherited DIEs.
787
fad03f6e
TT
7882019-11-27 Tom Tromey <tromey@adacore.com>
789
790 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
791 backslashes.
792 * cp-support.c: Remove unnecessary backslashes.
793
43678b0a
CB
7942019-11-27 Christian Biesinger <cbiesinger@google.com>
795
796 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
797 with sym->set_linkage_name.
798 * coffread.c (coff_read_enum_type): Likewise.
799 * mdebugread.c (parse_symbol): Likewise.
800 * stabsread.c (patch_block_stabs): Likewise.
801 (define_symbol): Likewise.
802 (read_enum_type): Likewise.
803 (common_block_end): Likewise.
804 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
805 function.
806 (SYMBOL_SET_LINKAGE_NAME): Remove.
807 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
808 with sym->set_linkage_name.
809
db5960b4
AB
8102019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
811
812 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
813 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
814 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
815 * NEWS: Mention new MI command.
816
7dc42066
AB
8172019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
820 '-symbol-info-types', and '-symbol-info-variables'.
821 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
822 (mi_cmd_symbol_info_types): Declare.
823 (mi_cmd_symbol_info_variables): Declare.
824 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
825 (output_debug_symbol): New function.
826 (output_nondebug_symbol): New function.
827 (mi_symbol_info): New function.
828 (mi_info_functions_or_variables): New function.
829 (mi_cmd_symbol_info_functions): New function.
830 (mi_cmd_symbol_info_types): New function.
831 (mi_cmd_symbol_info_variables): New function.
832 * NEWS: Mention new commands.
833
5f512a7d
AB
8342019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
835
836 * symtab.c (symbol_to_info_string): New function, most content
837 moved from print_symbol_info, but updated to return a std::string.
838 (print_symbol_info): Update to use symbol_to_info_string and print
839 returned string.
840 * symtab.h (symbol_to_info_string): Declare new function.
841
470c0b1c
AB
8422019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
843
844 * python/python.c (gdbpy_rbreak): Convert to using
845 global_symbol_searcher.
846 * symtab.c (file_matches): Convert return type to bool, change
847 file list to std::vector, update header comment.
848 (search_symbols): Rename to...
849 (global_symbol_searcher::search): ...this and update now its
850 a member function of global_symbol_searcher. Take account of the
851 changes to file_matches.
852 (symtab_symbol_info): Convert to using global_symbol_searcher.
853 (rbreak_command): Likewise.
854 (search_module_symbols): Likewise.
855 * symtab.h (enum symbol_search): Update comment.
856 (search_symbols): Remove declaration.
857 (class global_symbol_searcher): New class.
858
57357d9d
TT
8592019-11-26 Tom Tromey <tromey@adacore.com>
860
861 * cp-support.c (_initialize_cp_support): Conditionally initialize
862 gdb_demangle_attempt_core_dump.
863
3ea16160
TT
8642019-11-26 Tom Tromey <tom@tromey.com>
865
866 * python/py-function.c (fnpy_init): Update.
867 * value.h (add_internal_function): Adjust declaration.
868 * value.c (function_destroyer): Remove.
869 (do_add_internal_function): Don't set destroyer or copy name.
870 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
871 Set name_allocated.
872 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
873 (cmdpy_init): Set name_allocated.
874 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
875 member.
876 (~cmd_list_element): Free "name" if needed.
877
1a6d41c6
TT
8782019-11-26 Tom Tromey <tom@tromey.com>
879
880 * value.h (add_internal_function): Add new overload. Move
881 documentation from value.h.
882 * value.c (do_add_internal_function): New function.
883 (add_internal_function): Use it. Add new overload.
884 (function_destroyer): Don't free doc.
885 * python/py-function.c (fnpy_init): Update.
886
8318f3c3
TT
8872019-11-26 Tom Tromey <tom@tromey.com>
888
889 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
890 (cmdpy_init): Set "doc_allocated".
891
4da8c3a8
TT
8922019-11-26 Tom Tromey <tom@tromey.com>
893
894 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
895 name of worker thread.
896 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
897 pthread_setname_np.
898 * configure, config.in: Rebuild.
899
971db5e2
TT
9002019-11-26 Tom Tromey <tom@tromey.com>
901
902 * python/python.c (class gdbpy_gil): New.
903 (struct gdbpy_event): Add constructor, destructor, operator().
904 (gdbpy_post_event): Use run_on_main_thread.
905 (gdbpy_initialize_events): Remove.
906 (do_start_initialization): Update.
907
22138db6
TT
9082019-11-26 Tom Tromey <tom@tromey.com>
909
910 * NEWS: Add entry.
911 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
912 commands. Call update_thread_pool_size.
913 (update_thread_pool_size, maintenance_set_worker_threads): New
914 functions.
915 (n_worker_threads): New global.
916
d55c9a68
TT
9172019-11-26 Christian Biesinger <cbiesinger@google.com>
918 Tom Tromey <tom@tromey.com>
919
920 * minsyms.c (minimal_symbol_reader::install): Use
921 parallel_for_each.
922 * gdbsupport/parallel-for.h: New file.
923 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
924
a0b57563
CB
9252019-11-26 Christian Biesinger <cbiesinger@google.com>
926 Tom Tromey <tom@tromey.com>
927
928 * gdbsupport/thread-pool.h: New file.
929 * gdbsupport/thread-pool.c: New file.
930 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
931 (HFILES_NO_SRCDIR): Add thread-pool.h.
932
3b3978bc
TT
9332019-11-26 Tom Tromey <tom@tromey.com>
934
935 * event-top.h (thread_local_segv_handler): Declare.
936 * event-top.c (thread_local_segv_handler): New global.
937 (install_handle_sigsegv, handle_sigsegv): New functions.
938 (async_init_signals): Install SIGSEGV handler.
939 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
940 thread-local.
941 (report_failed_demangle): New function.
942 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
943 handler-setting code, instead use segv_handler. Run warning code
944 on main thread.
945
9411c49e
TT
9462019-11-26 Tom Tromey <tom@tromey.com>
947
948 * run-on-main-thread.c: New file.
949 * run-on-main-thread.h: New file.
950 * unittests/main-thread-selftests.c: New file.
951 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
952 main-thread-selftests.c.
953 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
954 (COMMON_SFILES): Add run-on-main-thread.c.
955
c3efb965
TT
9562019-11-26 Tom Tromey <tom@tromey.com>
957
958 * main.c (setup_alternate_signal_stack): Remove.
959 (captured_main_1): Use gdb::alternate_signal_stack.
960 * gdbsupport/alt-stack.h: New file.
961
21987b9c
TT
9622019-11-26 Tom Tromey <tom@tromey.com>
963
964 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
965 Remove comment.
966 (save_original_signals_state, restore_original_signals_state): Use
967 gdb_sigmask.
968 * linux-nat.c (block_child_signals, restore_child_signals_mask)
969 (_initialize_linux_nat): Use gdb_sigmask.
970 * guile/guile.c (_initialize_guile): Use block_signals.
971 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
972 * gdbsupport/gdb-sigmask.h: New file.
973 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
974 * cp-support.c (gdb_demangle): Use gdb_sigmask.
975 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
976 pthread_sigmask.
977 * configure, config.in: Rebuild.
978 * gdbsupport/block-signals.h: New file.
979
5e030278
TT
9802019-11-26 Tom Tromey <tom@tromey.com>
981
982 * acinclude.m4: Include ax_pthread.m4.
983 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
984 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
985 (CLIBS): Use PTHREAD_LIBS.
986 (aclocal_m4_deps): Add ax_pthread.m4.
987 * config.in, configure: Rebuild.
988 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
989
5a79c107
TT
9902019-11-26 Tom Tromey <tom@tromey.com>
991
992 * symtab.h (struct minimal_symbol) <name_set>: New member.
993 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
994 Don't call symbol_set_names.
995 (minimal_symbol_reader::install): Call symbol_set_names.
996
aa369509
PW
9972019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
998
999 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1000 restore_active_ext_lang, as GIL is needed for (indirectly)
1001 called PyOS_InterruptOccurred.
1002
cadc9cb8
SM
10032019-11-26 Simon Marchi <simon.marchi@efficios.com>
1004
1005 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1006 definition.
1007
d04afd58
SM
10082019-11-26 Simon Marchi <simon.marchi@efficios.com>
1009
1010 * remote-sim.c (simulator_command): Make static, remove
1011 declaration.
1012
dd694d77
SM
10132019-11-26 Simon Marchi <simon.marchi@efficios.com>
1014
1015 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1016 static.
1017 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1018 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1019 (main): Likewise.
1020 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1021 (main): Likewise.
1022 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1023 (main): Likewise.
1024 * unittests/basic_string_view/element_access/char/1.cc (test01):
1025 Likewise.
1026 (main): Likewise.
1027 * unittests/basic_string_view/element_access/char/empty.cc (main):
1028 Likewise.
1029 * unittests/basic_string_view/element_access/char/front_back.cc
1030 (test01): Likewise.
1031 (main): Likewise.
1032 * unittests/basic_string_view/inserters/char/2.cc (test05):
1033 Likewise.
1034 (main): Likewise.
1035 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1036 (test01): Likewise.
1037 (main): Likewise.
1038 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1039 (test01): Likewise.
1040 (main): Likewise.
1041 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1042 Likewise.
1043 * unittests/basic_string_view/operations/compare/char/1.cc
1044 (test01): Likewise.
1045 (main): Likewise.
1046 * unittests/basic_string_view/operations/compare/char/13650.cc
1047 (test01): Likewise.
1048 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1049 Likewise.
1050 (main): Likewise.
1051 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1052 Likewise.
1053 (main): Likewise.
1054 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1055 Likewise.
1056 (main): Likewise.
1057 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1058 Likewise.
1059 (main): Likewise.
1060 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1061 Likewise.
1062 (main): Likewise.
1063 * unittests/basic_string_view/operations/find/char/4.cc (main):
1064 Likewise.
1065 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1066 Likewise.
1067 (main): Likewise.
1068 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1069 Likewise.
1070 (main): Likewise.
1071 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1072 Likewise.
1073 (main): Likewise.
1074 * unittests/basic_string_view/operations/substr/char/1.cc
1075 (test01): Likewise.
1076 (main): Likewise.
1077 * unittests/basic_string_view/operators/char/2.cc (main):
1078 Likewise.
1079 * unittests/optional/assignment/1.cc (test): Likewise.
1080 * unittests/optional/assignment/2.cc (test): Likewise.
1081 * unittests/optional/assignment/3.cc (test): Likewise.
1082 * unittests/optional/assignment/4.cc (test): Likewise.
1083 * unittests/optional/assignment/5.cc (test): Likewise.
1084 * unittests/optional/assignment/6.cc (test): Likewise.
1085 * unittests/optional/assignment/7.cc (test): Likewise.
1086 * unittests/optional/cons/copy.cc (test): Likewise.
1087 * unittests/optional/cons/default.cc (test): Likewise.
1088 * unittests/optional/cons/move.cc (test): Likewise.
1089 * unittests/optional/cons/value.cc (test): Likewise.
1090 * unittests/optional/in_place.cc (test): Likewise.
1091 * unittests/optional/observers/1.cc (test): Likewise.
1092 * unittests/optional/observers/2.cc (test): Likewise.
1093
3b5c1d49
SM
10942019-11-26 Simon Marchi <simon.marchi@efficios.com>
1095
1096 * tui-win.h (tui_set_var_cmd): Remove.
1097 * tui-win.c (tui_set_var_cmd): Make static.
1098
adce99fe
SM
10992019-11-26 Simon Marchi <simon.marchi@efficios.com>
1100
1101 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1102 rbreak_command_wrapper): Remove.
1103 * symtab.c (rbreak_command_wrapper): Remove.
1104
fe3adccf
SM
11052019-11-26 Simon Marchi <simon.marchi@efficios.com>
1106
1107 * inferior.h (info_terminal_command): Remove declaration.
1108 * inflow.c (info_terminal_command): Make static.
1109
b926335f
SM
11102019-11-26 Simon Marchi <simon.marchi@efficios.com>
1111
1112 * inferior.c (exit_inferior_silent): Remove.
1113
b62f6f54
SM
11142019-11-26 Simon Marchi <simon.marchi@efficios.com>
1115
1116 * dictionary.c (dict_empty, mdict_empty): Remove.
1117 * dictionary.c (mdict_empty): Remove.
1118
cb8c24b6
SM
11192019-11-26 Simon Marchi <simon.marchi@efficios.com>
1120
1121 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1122 (arc_insn_get_memory_offset): Likewise.
1123 (arc_insn_dump): Likewise.
1124 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1125 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1126 * dictionary.c (dict_iterator_next): Likewise.
1127 (dict_iter_match_first): Likewise.
1128 (dict_iter_match_next): Likewise.
1129 * f-lang.c (evaluate_subexp_f): Likewise.
1130 * hppa-tdep.c (hppa_read_pc): Likewise.
1131 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1132 * parse.c (write_exp_elt_msym): Likewise.
1133 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1134 * remote.c (remote_packet_size): Likewise.
1135 (remote_notif_stop_parse): Likewise.
1136 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1137 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1138 * source.c (prepare_path_for_appending): Likewise.
1139 * sparc64-linux-tdep.c
1140 (sparc64_linux_handle_segmentation_fault); Likewise.
1141 * stack.c (frame_selection_by_function_completer): Likewise.
1142
781597ff
SM
11432019-11-26 Simon Marchi <simon.marchi@efficios.com>
1144
1145 * completer.c (set_gdb_completion_word_break_characters):
1146 Remove.
1147
23baa4cc
SM
11482019-11-26 Simon Marchi <simon.marchi@efficios.com>
1149
1150 * dwarf-index-write.c: Include dwarf-index-write.h.
1151 * mi/mi-interp.c: Include mi/mi-interp.h.
1152
23767560
SM
11532019-11-26 Simon Marchi <simon.marchi@efficios.com>
1154
1155 * aarch32-tdep.c: Include aarch32-tdep.h.
1156 * aarch32-tdep.h: Forward-declare struct target_desc.
1157
6d91ce9a
CB
11582019-11-26 Christian Biesinger <cbiesinger@google.com>
1159
1160 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1161 strerror.
1162 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1163 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1164
3cf2f237
TV
11652019-11-25 Tom de Vries <tdevries@suse.de>
1166
1167 * contrib/words.sh: Add -c option.
1168
5b89c67a
CB
11692019-11-25 Christian Biesinger <cbiesinger@google.com>
1170
1171 * solib.c (solib_find_1): Change int to bool.
1172 (exec_file_find): Change int to bool.
1173 (solib_find): Change int to bool.
1174 (solib_read_symbols): Change int to bool.
1175 (solib_used): Change int to bool.
1176 (solib_add): Change int to bool.
1177 (info_sharedlibrary_command): Change int to bool.
1178 (solib_contains_address_p): Change int to bool.
1179 (solib_keep_data_in_core): Change int to bool.
1180 (in_solib_dynsym_resolve_code): Change int to bool.
1181 (reload_shared_libraries_1): Change int to bool.
1182 (gdb_sysroot_changed): Change int to bool.
1183 * solib.h (solib_read_symbols): Change int to bool.
1184 (solib_contains_address_p): Change int to bool.
1185 (solib_keep_data_in_core): Change int to bool.
1186 (in_solib_dynsym_resolve_code): Change int to bool.
1187 (libpthread_name_p): Change int to bool.
1188
6cc8564b
LM
11892019-11-25 Luis Machado <luis.machado@linaro.org>
1190
1191 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1192 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1193 (remote_packet_max_chars): New static global.
1194 (show_remote_packet_max_chars): New function.
1195 (remote_target::putpkt_binary): Adjust to use new
1196 remote_packet_max_chars option.
1197 (remote_target::getpkt_or_notif_sane_1): Likewise.
1198 (_initialize_remote): Register new remote-packet-max-chars option.
1199
a7cdaa91
SM
12002019-11-24 Simon Marchi <simon.marchi@efficios.com>
1201
1202 * m68k-linux-nat.c: Include gdbarch.h.
1203
26abc753
TT
12042019-11-24 Tom Tromey <tom@tromey.com>
1205
1206 * symfile.c (read_symbols): Update.
1207 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1208 bool.
1209 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1210 (psym_lookup_symbol, psym_find_last_source_symtab)
1211 (psym_forget_cached_source_info, psym_print_stats)
1212 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1213 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1214 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1215 (psym_find_compunit_symtab_by_address)
1216 (maintenance_print_psymbols, maintenance_info_psymtabs)
1217 (maintenance_check_psymtabs): Update.
1218 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1219 bool.
1220
012fc909
TT
12212019-11-22 Tom Tromey <tom@tromey.com>
1222
1223 * observable.h: Update comments.
1224
c83d8d32
TT
12252019-11-22 Tom Tromey <tromey@adacore.com>
1226
1227 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1228 (print_ada_task_info): Don't try to fetch thread id if task is not
1229 alive.
1230
987012b8
CB
12312019-11-22 Christian Biesinger <cbiesinger@google.com>
1232
1233 * ada-exp.y: Update.
1234 * ada-lang.c (sort_choices): Update.
1235 (ada_print_symbol_signature): Update.
1236 (resolve_subexp): Update.
1237 (ada_parse_renaming): Update.
1238 (ada_read_renaming_var_value): Update.
1239 (lesseq_defined_than): Update.
1240 (remove_extra_symbols): Update.
1241 (remove_irrelevant_renamings): Update.
1242 (ada_add_block_symbols): Update.
1243 (ada_collect_symbol_completion_matches): Update.
1244 (ada_is_renaming_symbol): Update.
1245 (aggregate_assign_from_choices): Update.
1246 (ada_evaluate_subexp): Update.
1247 (ada_has_this_exception_support): Update.
1248 (ada_is_non_standard_exception_sym): Update.
1249 (ada_add_exceptions_from_frame): Update.
1250 (ada_add_global_exceptions): Update.
1251 (ada_print_subexp): Update.
1252 * ax-gdb.c (gen_var_ref): Update.
1253 (gen_maybe_namespace_elt): Update.
1254 (gen_expr_for_cast): Update.
1255 (gen_expr): Update.
1256 * block.h: Update.
1257 * blockframe.c (find_pc_partial_function): Update.
1258 * breakpoint.c (print_breakpoint_location): Update.
1259 (update_static_tracepoint): Update.
1260 * btrace.c (ftrace_print_function_name): Update.
1261 (ftrace_function_switched): Update.
1262 * buildsym.c (find_symbol_in_list): Update.
1263 * c-exp.y: Update.
1264 * c-typeprint.c (c_print_typedef): Update.
1265 (c_type_print_template_args): Update.
1266 * cli/cli-cmds.c (edit_command): Update.
1267 (list_command): Update.
1268 (print_sal_location): Update.
1269 * coffread.c (patch_opaque_types): Update.
1270 (process_coff_symbol): Update.
1271 (coff_read_enum_type): Update.
1272 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1273 (convert_one_symbol): Update.
1274 (hash_symname): Update.
1275 (eq_symname): Update.
1276 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1277 * compile/compile-cplus-types.c (debug_print_scope): Update.
1278 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1279 * compile/compile-object-load.c (get_out_value_type): Update.
1280 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1281 (search_symbol_list): Update.
1282 (cp_lookup_symbol_imports_or_template): Update.
1283 * cp-support.c (overload_list_add_symbol): Update.
1284 * ctfread.c (psymtab_to_symtab): Update.
1285 * dbxread.c (cp_set_block_scope): Update.
1286 * dictionary.c (iter_match_first_hashed): Update.
1287 (iter_match_next_hashed): Update.
1288 (insert_symbol_hashed): Update.
1289 (iter_match_next_linear): Update.
1290 * dictionary.h: Update.
1291 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1292 (locexpr_describe_location_piece): Update.
1293 (locexpr_describe_location_1): Update.
1294 (locexpr_generate_c_location): Update.
1295 (loclist_describe_location): Update.
1296 (loclist_generate_c_location): Update.
1297 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1298 (read_func_scope): Update.
1299 (process_enumeration_scope): Update.
1300 (new_symbol): Update.
1301 (dwarf2_const_value): Update.
1302 (dwarf2_symbol_mark_computed): Update.
1303 * eval.c (evaluate_funcall): Update.
1304 (evaluate_subexp_standard): Update.
1305 * expprint.c (print_subexp_standard): Update.
1306 (dump_subexp_body_standard): Update.
1307 * f-valprint.c (info_common_command_for_block): Update.
1308 * findvar.c (get_hosting_frame): Update.
1309 (default_read_var_value): Update.
1310 * go-lang.c (go_symbol_package_name): Update.
1311 * guile/scm-block.c (bkscm_print_block_smob): Update.
1312 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1313 (gdbscm_symbol_name): Update.
1314 (gdbscm_symbol_linkage_name): Update.
1315 (gdbscm_symbol_print_name): Update.
1316 * infcall.c (get_function_name): Update.
1317 * infcmd.c (jump_command): Update.
1318 (finish_command): Update.
1319 * infrun.c (insert_exception_resume_breakpoint): Update.
1320 * linespec.c (canonicalize_linespec): Update.
1321 (create_sals_line_offset): Update.
1322 (convert_linespec_to_sals): Update.
1323 (complete_label): Update.
1324 (find_label_symbols_in_block): Update.
1325 * m2-typeprint.c (m2_print_typedef): Update.
1326 * mdebugread.c (mdebug_reg_to_regnum): Update.
1327 (parse_symbol): Update.
1328 (mylookup_symbol): Update.
1329 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1330 (list_args_or_locals): Update.
1331 * objc-lang.c (compare_selectors): Update.
1332 (info_selectors_command): Update.
1333 (compare_classes): Update.
1334 (info_classes_command): Update.
1335 (find_imps): Update.
1336 * p-typeprint.c (pascal_print_typedef): Update.
1337 * printcmd.c (build_address_symbolic): Update.
1338 (info_address_command): Update.
1339 (print_variable_and_value): Update.
1340 * python/py-framefilter.c (extract_sym): Update.
1341 (py_print_single_arg): Update.
1342 * python/py-symbol.c (sympy_str): Update.
1343 (sympy_get_name): Update.
1344 (sympy_get_linkage_name): Update.
1345 * python/python.c (gdbpy_rbreak): Update.
1346 * record-btrace.c (btrace_get_bfun_name): Update.
1347 (btrace_call_history): Update.
1348 * rust-lang.c (rust_print_typedef): Update.
1349 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1350 * stabsread.c (stab_reg_to_regnum): Update.
1351 (define_symbol): Update.
1352 (read_enum_type): Update.
1353 (common_block_end): Update.
1354 (cleanup_undefined_types_1): Update.
1355 (scan_file_globals): Update.
1356 * stack.c (print_frame_arg): Update.
1357 (print_frame_args): Update.
1358 (find_frame_funname): Update.
1359 (info_frame_command_core): Update.
1360 (iterate_over_block_locals): Update.
1361 (print_block_frame_labels): Update.
1362 (do_print_variable_and_value): Update.
1363 (iterate_over_block_arg_vars): Update.
1364 (return_command): Update.
1365 * symmisc.c (dump_symtab_1): Update.
1366 (print_symbol): Update.
1367 * symtab.c (eq_symbol_entry): Update.
1368 (symbol_cache_dump): Update.
1369 (lookup_language_this): Update.
1370 (find_pc_sect_line): Update.
1371 (skip_prologue_sal): Update.
1372 (symbol_search::compare_search_syms): Update.
1373 (treg_matches_sym_type_name): Update.
1374 (search_symbols): Update.
1375 (print_symbol_info): Update.
1376 (rbreak_command): Update.
1377 (completion_list_add_symbol): Update.
1378 (find_gnu_ifunc): Update.
1379 (get_symbol_address): Update.
1380 (search_module_symbols): Update.
1381 (info_module_subcommand): Update.
1382 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1383 (SYMBOL_LINKAGE_NAME): Remove.
1384 (SYMBOL_DEMANGLED_NAME): Remove.
1385 (SYMBOL_PRINT_NAME): Remove.
1386 (SYMBOL_SEARCH_NAME): Remove.
1387 * tracepoint.c (set_traceframe_context): Update.
1388 (validate_actionline): Update.
1389 (collection_list::collect_symbol): Update.
1390 (encode_actions_1): Update.
1391 (info_scope_command): Update.
1392 (print_one_static_tracepoint_marker): Update.
1393 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1394 * valops.c (address_of_variable): Update.
1395 (find_overload_match): Update.
1396 (find_oload_champ): Update.
1397
c9d95fa3
CB
13982019-11-22 Christian Biesinger <cbiesinger@google.com>
1399
1400 * ada-lang.c (ada_lookup_simple_minsym): Update.
1401 (ada_collect_symbol_completion_matches): Update.
1402 * ada-tasks.c (read_atcb): Update.
1403 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1404 (amd64_windows_skip_trampoline_code): Update.
1405 * arm-tdep.c (skip_prologue_function): Update.
1406 (arm_skip_stack_protector): Update.
1407 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1408 (arm_wince_skip_main_prologue): Update.
1409 * ax-gdb.c (gen_expr): Update.
1410 * block.c (call_site_for_pc): Update.
1411 * blockframe.c (find_pc_partial_function): Update.
1412 * breakpoint.c (set_breakpoint_location_function): Update.
1413 * btrace.c (ftrace_print_function_name): Update.
1414 (ftrace_function_switched): Update.
1415 * c-valprint.c (print_unpacked_pointer): Update.
1416 * coffread.c (coff_symfile_read): Update.
1417 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1418 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1419 * dwarf-index-write.c (write_psymbols): Update.
1420 * dwarf2loc.c (call_site_to_target_addr): Update.
1421 (func_verify_no_selftailcall): Update.
1422 (tailcall_dump): Update.
1423 (call_site_find_chain_1): Update.
1424 (dwarf_expr_reg_to_entry_parameter): Update.
1425 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1426 * eval.c (evaluate_funcall): Update.
1427 (evaluate_subexp_standard): Update.
1428 (evaluate_subexp_for_sizeof): Update.
1429 * expprint.c (print_subexp_standard): Update.
1430 (dump_subexp_body_standard): Update.
1431 * frame.c (get_prev_frame_always_1): Update.
1432 * frv-tdep.c (frv_skip_main_prologue): Update.
1433 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1434 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1435 (gnuv3_get_typename_from_type_info): Update.
1436 (gnuv3_skip_trampoline): Update.
1437 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1438 * i386-tdep.c (i386_skip_main_prologue): Update.
1439 (i386_pe_skip_trampoline_code): Update.
1440 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1441 * infcall.c (get_function_name): Update.
1442 * linespec.c (minsym_found): Update.
1443 * linux-fork.c (info_checkpoints_command): Update.
1444 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1445 (m32c_m16c_pointer_to_address): Update.
1446 * maint.c (maintenance_translate_address): Update.
1447 * minsyms.c (add_minsym_to_hash_table): Update.
1448 (add_minsym_to_demangled_hash_table): Update.
1449 (lookup_minimal_symbol_mangled): Update.
1450 (lookup_minimal_symbol_demangled): Update.
1451 (lookup_minimal_symbol_linkage): Update.
1452 (lookup_minimal_symbol_text): Update.
1453 (lookup_minimal_symbol_by_pc_name): Update.
1454 (minimal_symbol_is_less_than): Update.
1455 (compact_minimal_symbols): Update.
1456 (build_minimal_symbol_hash_tables): Update.
1457 (find_solib_trampoline_target): Update.
1458 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1459 (mips_skip_pic_trampoline_code): Update.
1460 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1461 * objc-lang.c (info_selectors_command): Update.
1462 (info_classes_command): Update.
1463 (find_methods): Update.
1464 (find_imps): Update.
1465 * p-valprint.c (pascal_val_print): Update.
1466 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1467 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1468 * printcmd.c (build_address_symbolic): Update.
1469 (info_symbol_command): Update.
1470 * psymtab.c (psymbol_name_matches): Update.
1471 (match_partial_symbol): Update.
1472 (lookup_partial_symbol): Update.
1473 (print_partial_symbols): Update.
1474 (sort_pst_symbols): Update.
1475 (maintenance_check_psymtabs): Update.
1476 * python/py-framefilter.c (py_print_frame): Update.
1477 * python/python.c (gdbpy_rbreak): Update.
1478 * record-btrace.c (btrace_get_bfun_name): Update.
1479 (btrace_call_history): Update.
1480 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1481 (rs6000_skip_trampoline_code): Update.
1482 * sol-thread.c (info_cb): Update.
1483 * stabsread.c (scan_file_globals): Update.
1484 * stack.c (find_frame_funname): Update.
1485 (info_frame_command_core): Update.
1486 * symmisc.c (dump_msymbols): Update.
1487 * symtab.c (symbol_natural_name): Rename to..,
1488 (general_symbol_info::natural_name): ...this.
1489 (symbol_demangled_name): Rename to...
1490 (general_symbol_info::demangled_name): ...this.
1491 (symbol_search_name): Rename to...
1492 (general_symbol_info::search_name): ...this.
1493 (symbol_matches_search_name): Update.
1494 (find_pc_sect_line): Update.
1495 (skip_prologue_sal): Update.
1496 (search_symbols): Update.
1497 (print_msymbol_info): Update.
1498 (rbreak_command): Update.
1499 (completion_list_add_msymbol): Update.
1500 (completion_list_objc_symbol): Update.
1501 (get_msymbol_address): Update.
1502 * symtab.h (struct general_symbol_info): Add member functions
1503 natural_name (), linkage_name (), print_name (), demangled_name (),
1504 and search_name ().
1505 (SYMBOL_NATURAL_NAME): Update.
1506 (symbol_natural_name): Move to a member function on general_symbol_info.
1507 (SYMBOL_DEMANGLED_NAME): Update.
1508 (symbol_demangled_name): Move to a member function on
1509 general_symbol_info.
1510 (SYMBOL_SEARCH_NAME): Update.
1511 (symbol_search_name): Move to a member function on general_symbol_info.
1512 (MSYMBOL_NATURAL_NAME): Remove.
1513 (MSYMBOL_LINKAGE_NAME): Remove.
1514 (MSYMBOL_PRINT_NAME): Remove.
1515 (MSYMBOL_DEMANGLED_NAME): Remove.
1516 (MSYMBOL_SEARCH_NAME): Remove.
1517 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1518
f8bab2d6
CB
15192019-11-22 Christian Biesinger <cbiesinger@google.com>
1520
1521 * symtab.c (create_demangled_names_hash): Use per_bfd->
1522 minimal_symbol_count for computing the initial size, if greater
1523 than our default size.
1524
85e7588d
TV
15252019-11-22 Tom de Vries <tdevries@suse.de>
1526
1527 * contrib/words.sh: Improve words extraction.
1528
f6180073
TV
15292019-11-22 Tom de Vries <tdevries@suse.de>
1530
1531 * contrib/words.sh: Combine sed invocations.
1532
f10ffa41
CB
15332019-11-21 Christian Biesinger <cbiesinger@google.com>
1534
1535 * Makefile.in: Update.
1536 * demangle.c: Rename to...
1537 * gdb-demangle.c: ..this.
1538 (is_cplus_marker): Change return type to bool.
1539 (_initialize_demangler): Rename to...
1540 (_initialize_gdb_demangle): ...this.
1541 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1542 * symtab.h (demangle): Remove declaration; instead include
1543 gdb-demangle.h.
1544
6ba18521
TT
15452019-11-21 Tom Tromey <tromey@adacore.com>
1546
1547 * gdbsupport/format.c (format_pieces): Parse %I64d.
1548 * unittests/format_pieces-selftests.c (test_windows_formats): New
1549 function.
1550 (run_tests): Call it.
1551
34877895
PJ
15522019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1553
1554 Byte reverse display of variables with DW_END_big, DW_END_little
1555 (DW_AT_endianity) dwarf attributes if different than the native
1556 byte order.
1557 * ada-lang.c (ada_value_binop):
1558 Use type_byte_order instead of gdbarch_byte_order.
1559 * ada-valprint.c (printstr):
1560 (ada_val_print_string):
1561 * ada-lang.c (value_pointer):
1562 (ada_value_binop):
1563 Use type_byte_order instead of gdbarch_byte_order.
1564 * c-lang.c (c_get_string):
1565 Use type_byte_order instead of gdbarch_byte_order.
1566 * c-valprint.c (c_val_print_array):
1567 Use type_byte_order instead of gdbarch_byte_order.
1568 * cp-valprint.c (cp_print_class_member):
1569 Use type_byte_order instead of gdbarch_byte_order.
1570 * dwarf2loc.c (rw_pieced_value):
1571 Use type_byte_order instead of gdbarch_byte_order.
1572 * dwarf2read.c (read_base_type): Handle DW_END_big,
1573 DW_END_little
1574 * f-lang.c (f_get_encoding):
1575 Use type_byte_order instead of gdbarch_byte_order.
1576 * findvar.c (default_read_var_value):
1577 Use type_byte_order instead of gdbarch_byte_order.
1578 * gdbtypes.c (check_types_equal):
1579 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1580 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1581 and TYPE_ENDIANITY_LITTLE if set.
1582 (type_byte_order): new function.
1583 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1584 (struct main_type) <flag_endianity_not_default>:
1585 New field.
1586 (type_byte_order): New function.
1587 * infcmd.c (default_print_one_register_info):
1588 Use type_byte_order instead of gdbarch_byte_order.
1589 * p-lang.c (pascal_printstr):
1590 Use type_byte_order instead of gdbarch_byte_order.
1591 * p-valprint.c (pascal_val_print):
1592 Use type_byte_order instead of gdbarch_byte_order.
1593 * printcmd.c (print_scalar_formatted):
1594 Use type_byte_order instead of gdbarch_byte_order.
1595 * solib-darwin.c (darwin_current_sos):
1596 Use type_byte_order instead of gdbarch_byte_order.
1597 * solib-svr4.c (solib_svr4_r_ldsomap):
1598 Use type_byte_order instead of gdbarch_byte_order.
1599 * stap-probe.c (stap_modify_semaphore):
1600 Use type_byte_order instead of gdbarch_byte_order.
1601 * target-float.c (target_float_same_format_p):
1602 Use type_byte_order instead of gdbarch_byte_order.
1603 * valarith.c (scalar_binop):
1604 (value_bit_index):
1605 Use type_byte_order instead of gdbarch_byte_order.
1606 * valops.c (value_cast):
1607 Use type_byte_order instead of gdbarch_byte_order.
1608 * valprint.c (generic_emit_char):
1609 (generic_printstr):
1610 (val_print_string):
1611 Use type_byte_order instead of gdbarch_byte_order.
1612 * value.c (unpack_long):
1613 (unpack_bits_as_long):
1614 (unpack_value_bitfield):
1615 (modify_field):
1616 (pack_long):
1617 (pack_unsigned_long):
1618 Use type_byte_order instead of gdbarch_byte_order.
1619 * findvar.c (unsigned_pointer_to_address):
1620 (signed_pointer_to_address):
1621 (unsigned_address_to_pointer):
1622 (address_to_signed_pointer):
1623 (default_read_var_value):
1624 (default_value_from_register):
1625 Use type_byte_order instead of gdbarch_byte_order.
1626 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1627 Use type_byte_order instead of gdbarch_byte_order.
1628 * riscv-tdep.c (riscv_print_one_register_info):
1629 Use type_byte_order instead of gdbarch_byte_order.
1630
87fb00ea
SM
16312019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1632
1633 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1634 (current_ui_gdb_stdin_ptr): Likewise.
1635 (current_ui_gdb_stderr_ptr): Likewise.
1636 (current_ui_gdb_stdlog_ptr): Likewise.
1637 (current_ui_current_uiout_ptr): Likewise.
1638 (gen_ret_current_ui_field_ptr): Remove.
1639
65d1cd5f
TV
16402019-11-21 Tom de Vries <tdevries@suse.de>
1641
1642 PR gdb/24956
1643 * cli/cli-script.c (execute_control_command): Only switch to
1644 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1645
9f6ad286
TT
16462019-11-19 Tom Tromey <tom@tromey.com>
1647
1648 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1649 Now static. Change type of "name".
1650 (tui_set_win_height_command): Don't copy "arg".
1651 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1652 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1653
435d3d88
AT
16542019-11-19 Ali Tamur <tamur@google.com>
1655
1656 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1657 "if (attr != nullptr)".
1658 (dwarf2_find_base_address): Likewise.
1659 (dwarf2_build_include_psymtabs): Likewise.
1660 (read_cutu_die_from_dwo): Likewise.
1661 (read_func_scope): Likewise.
1662 (read_call_site_scope): Likewise.
1663 (dwarf2_get_pc_bounds): Likewise.
1664 (dwarf2_record_block_ranges): Likewise.
1665 (dwarf2_add_field): Likewise.
1666 (dwarf2_add_member_fn): Likewise.
1667 (read_structure_type): Likewise.
1668 (read_enumeration_type): Likewise.
1669 (read_array_type): Likewise.
1670 (read_array_order): Likewise.
1671 (read_set_type): Likewise.
1672 (read_common_block): Likewise.
1673 (read_tag_reference_type): Likewise.
1674 (read_tag_string_type): Likewise.
1675 (read_subroutine_type): Likewise.
1676 (read_base_type): Likewise.
1677 (read_subrange_type): Likewise.
1678 (new_symbol): Likewise.
1679 (prepare_one_comp_unit): Likewise.
1680
c9739b6a
TT
16812019-11-19 Tom Tromey <tromey@adacore.com>
1682
1683 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1684 result in error when DebugActiveProcess fails.
1685
494409bb
SDJ
16862019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1687 Pedro Alves <palves@redhat.com>
1688
1689 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1690 * target.c (target_stack::push): Call 'unpush' if there's a
1691 target on top of the stack.
1692
2e953aca
PW
16932019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1694
1695 * python/py-block.c (blpy_dealloc): Call tp_free.
1696 (blpy_block_syms_dealloc): Likewise.
1697 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1698 * python/py-inferior.c (infpy_dealloc): Likewise.
1699 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1700 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1701 * python/py-symbol.c (sympy_dealloc): Likewise.
1702 * python/py-symtab.c (stpy_dealloc): Likewise.
1703 * python/py-type.c (typy_iterator_dealloc): Likewise.
1704
6edc43ec
CB
17052019-11-18 Christian Biesinger <cbiesinger@google.com>
1706
1707 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1708 constructor instead of using a class initializer.
1709
cd850b40
CB
17102019-11-15 Christian Biesinger <cbiesinger@google.com>
1711
1712 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1713 * configure: Regenerate.
1714 * configure.ac: Don't source common.host.
1715 * gdbsupport/common.host: Remove.
1716 * gdbsupport/mingw-strerror.c: Remove.
1717 * gdbsupport/posix-strerror.c: Rename to...
1718 * gdbsupport/safe-strerror.c: ...this.
1719
53fea9c7
CB
17202019-11-15 Christian Biesinger <cbiesinger@google.com>
1721
1722 * maint.c (scoped_command_stats::print_time): Use localtime_r
1723 instead of localtime (provided through gnulib if necessary).
1724 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1725 of ctime.
1726
f8e27d88
CB
17272019-11-15 Christian Biesinger <cbiesinger@google.com>
1728
1729 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1730 avoid compile errors.
1731
5abebf3c
CB
17322019-11-15 Christian Biesinger <cbiesinger@google.com>
1733
1734 * config.in: Regenerate.
1735 * configure: Regenerate.
1736 * gdbsupport/common.m4: No longer check for strerror_r.
1737 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1738 POSIX version of strerror_r, now that gnulib provides it if
1739 necessary.
1740
9a351667
CB
17412019-11-14 Christian Biesinger <cbiesinger@google.com>
1742
1743 * README (`configure' options): Update.
1744
55708e99
TT
17452019-11-14 Tom Tromey <tromey@adacore.com>
1746
1747 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1748 expected type for the RHS if the LHS is a convenience variable.
1749
4b09bb2e
SM
17502019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1751
1752 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1753 Provide explicit default and copy constructor.
1754
bd454f8b
PW
17552019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1756
1757 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1758 only call Py_INCREF (newbp) in the bppy_pending_object case.
1759
d1aa3cf0
TT
17602019-11-13 Tom Tromey <tromey@adacore.com>
1761
1762 PR build/25182:
1763 * psympriv.h (partial_symbol): Remove static assert.
1764 * symtab.h (general_symbol_info, symbol): Remove static assert.
1765
e06f3d6e
AB
17662019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * gdbsupport/format.c (format_pieces::format_pieces): Support
1769 printf 'z' size modifier.
1770 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1771 * printcmd.c (ui_printf): Handle size_t_arg.
1772 * ui-out.c (ui_out::vmessage): Likewise.
1773 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1774 function.
1775 (run_tests): Call test_format_int_sizes.
1776
468c0cbb
CB
17772019-11-12 Christian Biesinger <cbiesinger@google.com>
1778
1779 * ada-exp.y (write_ambiguous_var): Update.
1780 * buildsym.c (add_symbol_to_list): Update.
1781 * dwarf2read.c (read_variable): Update.
1782 (new_symbol): Update.
1783 * jit.c (finalize_symtab): Update.
1784 * language.c (language_alloc_type_symbol): Update.
1785 * symtab.c (fixup_symbol_section): Update.
1786 (initialize_objfile_symbol_1): Move code to...
1787 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1788 (allocate_symbol): Update.
1789 (allocate_template_symbol): Update.
1790 (get_symbol_address): Update.
1791 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1792 of having as a field, and add a constructor.
1793 (SYMBOL_VALUE): Update.
1794 (SYMBOL_VALUE_ADDRESS): Update.
1795 (SET_SYMBOL_VALUE_ADDRESS): Update.
1796 (SYMBOL_VALUE_BYTES): Update.
1797 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1798 (SYMBOL_BLOCK_VALUE): Update.
1799 (SYMBOL_VALUE_CHAIN): Update.
1800 (SYMBOL_LANGUAGE): Update.
1801 (SYMBOL_SECTION): Update.
1802 (SYMBOL_OBJ_SECTION): Update.
1803 (SYMBOL_SET_LANGUAGE): Update.
1804 (SYMBOL_SET_LINKAGE_NAME): Update.
1805 (SYMBOL_SET_NAMES): Update.
1806 (SYMBOL_NATURAL_NAME): Update.
1807 (SYMBOL_LINKAGE_NAME): Update.
1808 (SYMBOL_DEMANGLED_NAME): Update.
1809 (SYMBOL_SEARCH_NAME): Update.
1810 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1811 (struct symbol): Update.
1812 (struct template_symbol): Update.
1813 (struct rust_vtable_symbol): Update.
1814 * xcoffread.c (SYMBOL_DUP): Update.
1815
ed2c82c3
TT
18162019-11-12 Tom Tromey <tom@tromey.com>
1817
1818 * tui/tui-layout.c (show_layout): Set current_layout.
1819 (show_source_disasm_command, show_data)
1820 (show_source_or_disasm_and_command): Don't set current_layout.
1821
d9fcefd5
TT
18222019-11-12 Tom Tromey <tom@tromey.com>
1823
1824 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1825
45e42163
TT
18262019-11-12 Tom Tromey <tom@tromey.com>
1827
1828 * tui/tui-win.c (resize_message): New global.
1829 (show_tui_resize_message): New function.
1830 (tui_async_resize_screen): Print message if requested.
1831 (_initialize_tui_win): Add tui-resize-message setting.
1832 * NEWS: Add entry for new commands.
1833
c86d74cc
TT
18342019-11-11 Tom Tromey <tom@tromey.com>
1835
1836 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1837 functions.
1838
7b7b9424
CB
18392019-11-11 Christian Biesinger <cbiesinger@google.com>
1840
1841 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1842
086baaf1
AB
18432019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1844
1845 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1846 function.
1847 * python/python-internal.h (gdbpy_lookup_static_symbols):
1848 Declare new function.
1849 * python/python.c (python_GdbMethods): Add
1850 gdb.lookup_static_symbols method.
1851 * NEWS: Mention gdb.lookup_static_symbols.
1852
09ff83af
AB
18532019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1854
1855 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1856 static block of current object file first. Also fix typo in
1857 header comment.
1858
eb2dd8df
AB
18592019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * stack.c (set_last_displayed_sal): Delete.
1862 (last_displayed_sal_valid): Delete.
1863 (last_displayed_pspace): Delete.
1864 (last_displayed_addr): Delete.
1865 (last_displayed_symtab): Delete.
1866 (last_displayed_line): Delete.
1867 (class last_displayed_symtab_info_type): New.
1868 (last_displayed_symtab_info): New static global variable.
1869 (print_frame_info): Call methods on last_displayed_symtab_info.
1870 (clear_last_displayed_sal): Update header comment, and make use of
1871 last_displayed_symtab_info.
1872 (last_displayed_sal_is_valid): Likewise.
1873 (get_last_displayed_pspace): Likewise.
1874 (get_last_displayed_addr): Likewise.
1875 (get_last_displayed_symtab): Likewise.
1876 (get_last_displayed_line): Likewise.
1877 (get_last_displayed_sal): Likewise.
1878 * stack.h (clear_last_displayed_sal): Update header comment.
1879 (last_displayed_sal_is_valid): Likewise.
1880 (get_last_displayed_pspace): Likewise.
1881 (get_last_displayed_addr): Likewise.
1882 (get_last_displayed_symtab): Likewise.
1883 (get_last_displayed_line): Likewise.
1884 (get_last_displayed_sal): Likewise.
1885
62137775
AB
18862019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1887
1888 * stack.c (frame_show_address): Convert return type to bool.
1889 * stack.h (frame_show_address): Likewise, and update header
1890 comment.
1891
cf57ad6d
AB
18922019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1893
1894 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1895 * unittests/vec-utils-selftests.c: New file.
1896 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1897
0b026263
TT
18982019-11-10 Tom Tromey <tom@tromey.com>
1899
1900 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1901 (tui_highlight_win): Likewise.
1902 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1903 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1904 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1905 Don't set can_highlight.
1906
b049ce2d
TT
19072019-11-10 Tom Tromey <tom@tromey.com>
1908
1909 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1910 Remove unused declaration.
1911
992a7040
TT
19122019-11-08 Tom Tromey <tromey@adacore.com>
1913
1914 * top.c (read_command_file): Update.
1915 (command_line_input): Make return type const.
1916 * python/py-gdb-readline.c: Update.
1917 * linespec.c (decode_line_2): Update.
1918 * defs.h (command_line_input): Make return type const.
1919 * cli/cli-script.c (read_next_line): Make return type const.
1920 * ada-lang.c (get_selections): Update.
1921
ca3a04f6
CB
19222019-11-06 Christian Biesinger <cbiesinger@google.com>
1923
1924 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1925 * mi/mi-main.c (output_cores): Likewise.
1926 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1927 (linux_xfer_osdata_modules): Likewise.
1928 * remote.c (register_remote_support_xml): Likewise.
1929 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1930 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1931
e0eac551
TT
19322019-11-06 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-interp.c: Don't include readline.h.
1935 * tui/tui-hooks.c: Don't include readline.h.
1936 * symmisc.c: Include tilde.h, not readline.h.
1937 * symfile.c: Include tilde.h, not readline.h.
1938 * source.c: Include tilde.h, not readline.h.
1939 * solib.c: Include tilde.h, not readline.h.
1940 * psymtab.c: Include tilde.h, not readline.h.
1941 * exec.c: Include tilde.h, not readline.h.
1942 * corelow.c: Include tilde.h, not readline.h.
1943 * cli/cli-dump.c: Include tilde.h, not readline.h.
1944 * cli/cli-cmds.c: Don't include readline.h.
1945
825165c5
TT
19462019-11-05 Tom Tromey <tom@tromey.com>
1947
1948 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1949 (tui_disassemble): Set addr_size.
1950 (tui_disasm_window::set_contents): Use addr_size.
1951
91ae903f
TT
19522019-11-05 Tom Tromey <tom@tromey.com>
1953
1954 * rust-lang.c (rust_language_defn): Update.
1955 * python/py-value.c (valpy_string): Call c_get_string.
1956 * p-lang.c (pascal_language_defn): Update.
1957 * opencl-lang.c (opencl_language_defn): Update.
1958 * objc-lang.c (objc_language_defn): Update.
1959 * m2-lang.c (m2_language_defn): Update.
1960 * language.c (unknown_language_defn, auto_language_defn): Update.
1961 (default_get_string): Remove.
1962 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1963 * go-lang.c (go_language_defn): Update.
1964 * f-lang.c (f_language_defn): Update.
1965 * d-lang.c (d_language_defn): Update.
1966 * c-lang.c (c_language_defn, cplus_language_defn)
1967 (asm_language_defn, minimal_language_defn): Update.
1968 * ada-lang.c (ada_language_defn): Update.
1969 * language.h (struct language_defn) <la_get_string>: Remove.
1970 (LA_GET_STRING): Remove.
1971 (default_get_string): Don't declare.
1972
1df2f9ef
TT
19732019-11-05 Tom Tromey <tom@tromey.com>
1974
1975 * tui/tui-source.h (struct tui_source_window): Inline
1976 constructor. Remove destructor.
1977 <style_changed, m_observable>: Move to superclass.
1978 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1979 (struct tui_source_window_base): Move private members to end.
1980 <style_changed, m_observable>: Move from tui_source_window.
1981 * tui/tui-winsource.c (tui_copy_source_line): Move from
1982 tui-source.c. Rename from copy_source_line. Add special handling
1983 for negative line number.
1984 (tui_source_window_base::style_changed): Move from
1985 tui_source_window.
1986 (tui_source_window_base): Register observer.
1987 (~tui_source_window_base): New.
1988 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1989 rename.
1990 (tui_source_window::set_contents): Use tui_copy_source_line.
1991 (tui_source_window::tui_source_window): Move to tui-source.h.
1992 (tui_source_window::~tui_source_window): Remove.
1993 (tui_source_window::style_changed): Move to superclass.
1994 * tui/tui-disasm.c (tui_disassemble): Create string file with
1995 styling, when possible. Add "addr_size" parameter.
1996 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1997 Don't compute maximum size.
1998 (len_without_escapes): New function
1999
5d051055
TT
20002019-11-05 Tom Tromey <tom@tromey.com>
2001
2002 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2003 std::string.
2004 * tui/tui-winsource.c (tui_show_source_line): Update.
2005 * tui/tui-source.c (tui_source_window::set_contents): Update.
2006 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2007
ade7beea
CB
20082019-11-05 Christian Biesinger <cbiesinger@google.com>
2009
2010 * symtab.h (gdb_static_assert): Put && operator at the beginning
2011 of the line instead of the end.
2012
3573abe1
CB
20132019-11-04 Christian Biesinger <cbiesinger@google.com>
2014
2015 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2016 and sizeof (symbol).
2017 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2018
dae8b3eb
RO
20192019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2020
2021 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2022 * configure.host: Mark *-*-solaris2.10* obsolete.
2023 * configure.tgt: Mark Solaris < 11 obsolete.
2024 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2025 Update target triplet.
2026
5df96a4e
TT
20272019-11-01 Tom Tromey <tromey@adacore.com>
2028
2029 * utils.c (print_sys_errmsg): Simplify.
2030
b7481649
TT
20312019-11-01 Tom Tromey <tromey@adacore.com>
2032
2033 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2034
e48f6033
CB
20352019-11-01 Christian Biesinger <cbiesinger@google.com>
2036
2037 * configure: Regenerate.
2038 * configure.ac: Remove check for strerror_r.
2039 * gdbsupport/common.m4: Check for strerror_r.
2040
bd5766ec
LM
20412019-11-01 Luis Machado <luis.machado@linaro.org>
2042
2043 PR gdb/25124
2044
2045 * arm-tdep.c (arm_per_objfile): Rename to ...
2046 (arm_per_bfd): ... this.
2047 (arm_objfile_data_key): Rename to ...
2048 (arm_bfd_data_key): ... this.
2049 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2050 data.
2051 (arm_record_special_symbol): Likewise.
2052
e1709896
AB
20532019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2056 end.
2057 * c-typeprint.c (c_print_typedef): Likewise.
2058 * f-typeprint.c (f_print_typedef): Likewise.
2059 * m2-typeprint.c (m2_print_typedef): Likewise.
2060 * p-typeprint.c (pascal_print_typedef): Likewise.
2061 * rust-lang.c (rust_print_typedef): Likewise.
2062 * symtab.c (print_symbol_info): Print a newline after calling
2063 typedef_print.
2064
165f8965
AB
20652019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2066
2067 * symtab.c (info_module_cmdlist): New variable.
2068 (info_module_command): New function.
2069 (search_module_symbols): New function.
2070 (info_module_subcommand): New function.
2071 (struct info_modules_var_func_options): New struct.
2072 (info_modules_var_func_options_defs): New variable.
2073 (make_info_modules_var_func_options_def_group): New function.
2074 (info_module_functions_command): New function.
2075 (info_module_variables_command): New function.
2076 (info_module_var_func_command_completer): New function.
2077 (_initialize_symtab): Register new 'info module functions' and
2078 'info module variables' commands.
2079 * symtab.h (typedef symbol_search_in_module): New typedef.
2080 (search_module_symbols): Declare new function.
2081 * NEWS: Mention new commands.
2082
59c35742
AB
20832019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2086 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2087 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2088 MODULES_DOMAIN.
2089 (scan_partial_symbols): Only create partial module symbols for non
2090 declarations.
2091 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2092 and MODULES_DOMAIN.
2093 * symtab.c (search_domain_name): Likewise.
2094 (search_symbols): Likewise.
2095 (print_symbol_info): Likewise.
2096 (symtab_symbol_info): Likewise.
2097 (info_modules_command): New function.
2098 (_initialize_symtab): Register 'info modules' command.
2099 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2100 * NEWS: Mention new 'info modules' command.
2101
aed61d02
PW
21022019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2103
2104 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2105 and $_gdb_maint_setting_str.
2106
9ad9b77d
PW
21072019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2108
2109 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2110 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2111 (str_value_from_setting, gdb_setting_str_internal_fn)
2112 (gdb_maint_setting_str_internal_fn): New functions.
2113 (_initialize_cli_cmds): Define the new convenience functions.
2114 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2115 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2116
8d6efaa2
CB
21172019-10-31 Christian Biesinger <cbiesinger@google.com>
2118
2119 * agent.c (set_can_use_agent): When the setting is turned on,
2120 look up agent symbols if we don't have them yet.
2121 (agent_new_objfile): Don't look up agent symbols when the agent
2122 setting is off.
2123
33cb1647
CB
21242019-10-31 Christian Biesinger <cbiesinger@google.com>
2125
2126 * config.in: Regenerate.
2127
b231e86a
CB
21282019-10-31 Christian Biesinger <cbiesinger@google.com>
2129
2130 * configure: Regenerate.
2131 * configure.ac: Check for strerror_r.
2132 * gdbsupport/common-utils.h (safe_strerror): Change return value
2133 to const char * and document that this function is now threadsafe.
2134 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2135 thread_local and call strerror_r, if available.
2136 * utils.c (perror_string): Update.
2137 (print_sys_errmsg): Update.
2138
a2726d4f
LM
21392019-10-31 Luis Machado <luis.machado@linaro.org>
2140
2141 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2142 objfile_key.
2143 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2144 objfile to fetch per-bfd data.
2145 (arm_find_exidx_entry): Likewise.
2146
75cafaa6
CB
21472019-10-31 Christian Biesinger <cbiesinger@google.com>
2148
2149 * gdbsupport/agent.c (debug_agent): Change type to bool.
2150 (use_agent): Likewise.
2151 (all_agent_symbols_look_up): Likewise.
2152 (agent_loaded_p): Change return value to bool.
2153 (agent_look_up_symbols): Update.
2154 (agent_capability_check): Change return value to bool.
2155 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2156 (debug_agent): Change type to bool.
2157 (use_agent): Likewise.
2158 (agent_capability_check): Change return value to bool.
2159
808590ec
CB
21602019-10-30 Christian Biesinger <cbiesinger@google.com>
2161
2162 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2163 (build_minimal_symbol_hash_tables): Code to clear the table moved
2164 to clear_minimal_symbol_hash_tables.
2165 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2166 when needed.
2167
f18ad8a1
SM
21682019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2169
2170 * infcmd.c: Remove includes.
2171 * infrun.c: Remove includes.
2172
de93309a
SM
21732019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2174
2175 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2176 (grow_vect): Remove declaration.
2177 (ada_type_of_array): Remove declaration.
2178 (ada_update_initial_language): Remove declaration.
2179 (ada_fold_name): Remove declaration.
2180 (ada_fill_in_ada_prototype): Remove declaration.
2181 (user_select_syms): Remove declaration.
2182 (get_selections): Remove declaration.
2183 (ada_tag_type): Remove declaration.
2184 (ada_value_tag): Remove declaration.
2185 (ada_is_others_clause): Remove declaration.
2186 (ada_in_variant): Remove declaration.
2187 (ada_value_struct_elt): Remove declaration.
2188 (ada_attribute_name): Remove declaration.
2189 (ada_system_address_type): Remove declaration.
2190 * ada-lang.c (ada_watch_location_expression): Make static.
2191 (GROW_VECT): Move here from ada-lang.h.
2192 (grow_vect): Make static.
2193 (ada_update_initial_language): Make static.
2194 (ada_fold_name): Make static.
2195 (ada_type_of_array): Make static.
2196 (encoded_ordered_before): Move up.
2197 (sort_choices): Move up.
2198 (print_signatures): Move up.
2199 (ada_print_symbol_signature): Move up.
2200 (get_selections): Move up and make static.
2201 (user_select_syms): Move up and make static.
2202 (ada_value_struct_elt): Move up and make static.
2203 (ada_tag_type): Make static.
2204 (ada_value_tag): Make static.
2205 (ada_is_others_clause): Make static.
2206 (ada_in_variant): Make static.
2207 (ada_attribute_name): Make static.
2208
cdc46a9f
SM
22092019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2210
2211 * ada-lang.c: Remove includes.
2212 * ada-typeprint.c: Remove includes.
2213 * ada-valprint.c: Remove includes.
2214
90421c56
SM
22152019-10-29 Simon Marchi <simon.marchi@efficios.com>
2216
2217 * addrmap.c: Add static assertions of type size, moved from
2218 _initialize_addrmap.
2219 (_initialize_addrmap): Remove.
2220
31edb802
CB
22212019-10-29 Christian Biesinger <cbiesinger@google.com>
2222
2223 * coffread.c (record_minimal_symbol): Update.
2224 (process_coff_symbol): Update.
2225 * dbxread.c (read_dbx_symtab): Update.
2226 * dwarf2read.c (add_partial_symbol): Update.
2227 (fixup_go_packaging): Update.
2228 (load_partial_dies): Update.
2229 (new_symbol): Update.
2230 * elfread.c (record_minimal_symbol): Change signature to use
2231 gdb::string_view instead of name+len.
2232 (elf_symtab_read): Update.
2233 (elf_rel_plt_read): Update.
2234 * mdebugread.c (parse_partial_symbols): Update.
2235 (handle_psymbol_enumerators): Update.
2236 (new_symbol): Update.
2237 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2238 to use gdb::string_view instead of name+len.
2239 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2240 * psympriv.h (add_psymbol_to_list): Likewise.
2241 * psymtab.c (add_psymbol_to_bcache): Likewise.
2242 (add_psymbol_to_list): Likewise.
2243 * stabsread.c (define_symbol): Update.
2244 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2245 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2246 (symbol_set_names): Likewise.
2247 * xcoffread.c (scan_xcoff_symtab): Update.
2248
0c921b21
CB
22492019-10-29 Christian Biesinger <cbiesinger@google.com>
2250
2251 * symtab.h (symbol_set_names): Document that copy_name must be
2252 set to true for non-nullterminated strings.
2253 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2254 linkage_name if the entry was not found and we need to demangle.
2255
35e65c49
CB
22562019-10-29 Christian Biesinger <cbiesinger@google.com>
2257
2258 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2259 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2260 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2261 * gdbsupport/gdb_binary_search.h: New file.
2262
ed2a2229
CB
22632019-10-29 Christian Biesinger <cbiesinger@google.com>
2264
2265 * NEWS: Mention new --with-system-gdbinit-dir option.
2266 * config.in: Regenerate.
2267 * configure: Regenerate.
2268 * configure.ac: Add new option --with-system-gdbinit-dir.
2269 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2270 for a ".gdb" suffix.
2271 * main.c (get_init_files): Change system_gdbinit argument to
2272 a vector and return the files in SYSTEM_GDBINIT_DIR in
2273 addition to SYSTEM_GDBINIT.
2274 (captured_main_1): Update.
2275 (print_gdb_help): Update.
2276 * top.c (print_gdb_configuration): Also print the value of
2277 SYSTEM_GDBINIT_DIR.
2278
87f34879
CB
22792019-10-28 Christian Biesinger <cbiesinger@google.com>
2280
2281 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2282 that takes gdb::string_view arguments.
2283
30baf67b
TV
22842019-10-26 Tom de Vries <tdevries@suse.de>
2285
2286 * aarch64-linux-tdep.c: Fix typos in comments.
2287 * aarch64-tdep.c: Same.
2288 * ada-lang.c: Same.
2289 * amd64-nat.c: Same.
2290 * arc-tdep.c: Same.
2291 * arch/aarch64-insn.c: Same.
2292 * block.c: Same.
2293 * breakpoint.h: Same.
2294 * btrace.h: Same.
2295 * c-varobj.c: Same.
2296 * cli/cli-decode.c: Same.
2297 * cli/cli-script.c: Same.
2298 * cli/cli-utils.h: Same.
2299 * coff-pe-read.c: Same.
2300 * coffread.c: Same.
2301 * compile/compile-cplus-symbols.c: Same.
2302 * compile/compile-object-run.c: Same.
2303 * completer.c: Same.
2304 * corelow.c: Same.
2305 * cp-support.c: Same.
2306 * demangle.c: Same.
2307 * dwarf-index-write.c: Same.
2308 * dwarf2-frame.c: Same.
2309 * dwarf2-frame.h: Same.
2310 * eval.c: Same.
2311 * frame-base.h: Same.
2312 * frame.h: Same.
2313 * gdbcmd.h: Same.
2314 * gdbtypes.h: Same.
2315 * gnu-nat.c: Same.
2316 * guile/scm-objfile.c: Same.
2317 * i386-tdep.c: Same.
2318 * i386-tdep.h: Same.
2319 * infcall.c: Same.
2320 * infcall.h: Same.
2321 * linux-nat.c: Same.
2322 * m68k-tdep.c: Same.
2323 * macroexp.c: Same.
2324 * memattr.c: Same.
2325 * mi/mi-cmd-disas.c: Same.
2326 * mi/mi-getopt.h: Same.
2327 * mi/mi-main.c: Same.
2328 * minsyms.c: Same.
2329 * nat/aarch64-sve-linux-sigcontext.h: Same.
2330 * objfiles.h: Same.
2331 * ppc-linux-nat.c: Same.
2332 * ppc-linux-tdep.c: Same.
2333 * ppc-tdep.h: Same.
2334 * progspace.h: Same.
2335 * prologue-value.h: Same.
2336 * python/py-evtregistry.c: Same.
2337 * python/py-instruction.h: Same.
2338 * record-btrace.c: Same.
2339 * record-full.c: Same.
2340 * remote.c: Same.
2341 * rs6000-tdep.c: Same.
2342 * ser-tcp.c: Same.
2343 * sol-thread.c: Same.
2344 * sparc-sol2-tdep.c: Same.
2345 * sparc64-tdep.c: Same.
2346 * stabsread.c: Same.
2347 * symfile.c: Same.
2348 * symtab.h: Same.
2349 * target.c: Same.
2350 * tracepoint.c: Same.
2351 * tui/tui-data.h: Same.
2352 * tui/tui-io.c: Same.
2353 * tui/tui-win.c: Same.
2354 * tui/tui.c: Same.
2355 * unittests/rsp-low-selftests.c: Same.
2356 * user-regs.h: Same.
2357 * utils.c: Same.
2358 * utils.h: Same.
2359 * valarith.c: Same.
2360 * valops.c: Same.
2361 * valprint.c: Same.
2362 * valprint.h: Same.
2363 * value.c: Same.
2364 * value.h: Same.
2365 * varobj.c: Same.
2366 * x86-nat.h: Same.
2367 * xtensa-tdep.c: Same.
2368
1834d45f
AT
23692019-10-25 Ali Tamur <tamur@google.com>
2370
2371 * charset.c (find_charset_names): Reflect API change.
2372
5396ae17
CB
23732019-10-25 Christian Biesinger <cbiesinger@google.com>
2374
2375 * symtab.c (struct demangled_name_entry): Change demangled name
2376 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2377 part of the struct anymore.
2378 (symbol_set_names): No longer obstack allocate + copy the demangled
2379 name, just store the allocated name from bfd.
2380
93878f47
TT
23812019-10-25 Tom Tromey <tromey@adacore.com>
2382
2383 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2384 (bsearch_cie_cmp, add_cie): Remove.
2385 (find_cie): Reimplement.
2386 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2387 (dwarf2_build_frame_info): Update.
2388
7b71fc97
L
23892019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2390
2391 PR gdb/25126
2392 * symfile.c (reread_symbols): Call forget_cached_source_info to
2393 clear the stale source cache.
2394
cbb5a2ea
CB
23952019-10-24 Christian Biesinger <cbiesinger@google.com>
2396
2397 * configure: Regenerate.
2398 * configure.ac: Remove code that sets python_has_threads.
2399
71737c43
CB
24002019-10-24 Christian Biesinger <cbiesinger@google.com>
2401
2402 * config.in: Regenerate.
2403 * configure: Regenerate.
2404 * configure.ac: Remove the code that uses sed to get the python
2405 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2406
33d569b7
AB
24072019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2408
2409 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2410 error paths.
2411
f16f7b7c
TT
24122019-10-23 Tom Tromey <tom@tromey.com>
2413
2414 * arc-tdep.c: Remove ".." from include.
2415 * frv-tdep.c: Remove ".." from include.
2416 * lm32-tdep.c: Remove ".." from include.
2417 * microblaze-tdep.c: Remove ".." from include.
2418 * or1k-tdep.h: Remove ".." from include.
2419 * s12z-tdep.c: Remove ".." from include.
2420 * Makefile.in (OPCODES_CFLAGS): Add comment.
2421 (TOP_CFLAGS): New variable.
2422 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2423
6999161a
TT
24242019-10-23 Tom Tromey <tom@tromey.com>
2425
2426 * Makefile.in (READLINE_DIR): Update.
2427
12e7c35e
TBA
24282019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2429
2430 * infcall.c (call_function_by_hand_dummy): Fix the function
2431 comment. And extract out a code section into...
2432 (reserve_stack_space): ...this new function.
2433
37055cad
TBA
24342019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2435
2436 * infcall.c (value_arg_coerce): Remove an unused parameter.
2437 (call_function_by_hand_dummy): Update the call to
2438 'value_arg_coerce'.
2439
39bcc47c
TBA
24402019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2441
2442 * infcall.c (call_function_by_hand_dummy): Refactor.
2443
bd888c0f
TBA
24442019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2445
2446 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2447
c12d372d
TT
24482019-10-23 Tom Tromey <tom@tromey.com>
2449
2450 * configure: Rebuild.
2451 * configure.ac: Don't check for sigprocmask.
2452 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2453
4d0b984b
TT
24542019-10-23 Tom Tromey <tom@tromey.com>
2455
2456 * configure: Rebuild.
2457 * acinclude.m4: Use m4_include, not sinclude.
2458
7e785608
TV
24592019-10-23 Tom de Vries <tdevries@suse.de>
2460
2461 PR breakpoints/24687
2462 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2463
403772ef
CB
24642019-10-22 Christian Biesinger <cbiesinger@google.com>
2465
2466 * symtab.c (struct demangled_name_entry) <language>: Change from
2467 bitfield to regular variable.
2468
3a494279
CB
24692019-10-22 Christian Biesinger <cbiesinger@google.com>
2470
2471 * symtab.c (struct demangled_name_entry): Add a constructor.
2472 (free_demangled_name_entry): New function to call the destructor
2473 for demangled_name_entry.
2474 (create_demangled_names_hash): Pass free_demangled_name_entry to
2475 htab_create_alloc.
2476 (symbol_set_names): Call placement new for demangled_name_entry.
2477 * utils.c: No longer include xxhash.h here, now that fast_hash
2478 is inlined in the header.
2479 * utils.h: Instead, include it here.
2480
ccb1ba62
CB
24812019-10-22 Christian Biesinger <cbiesinger@google.com>
2482
2483 * Makefile.in: Link with libxxhash.
2484 * config.in: Regenerate.
2485 * configure: Regenerate.
2486 * configure.ac: Search for libxxhash.
2487 * utils.c (fast_hash): Use xxhash if present.
2488
1a6ff1a9
CB
24892019-10-22 Christian Biesinger <cbiesinger@google.com>
2490
2491 * utils.h (fast_hash): New function.
2492 * symtab.c (hash_demangled_name_entry): Call new function
2493 fast_hash.
2494
7bb43059
CB
24952019-10-22 Christian Biesinger <cbiesinger@google.com>
2496
2497 * symtab.c (struct demangled_name_entry): Change type of mangled
2498 to gdb::string_view. Also adds a constructor that takes the
2499 mangled name.
2500 (hash_demangled_name_entry): Update.
2501 (eq_demangled_name_entry): Update.
2502 (free_demangled_name_entry): New function to call the destructor
2503 now that this is not a POD anymore.
2504 (create_demangled_names_hash): Pass free_demangled_name_entry to
2505 htab_create_alloc.
2506 (symbol_set_names): Update.
2507
7ba99d21
AT
25082019-10-21 Ali Tamur <tamu@google.com>
2509
2510 * dwarf2read.c (dir_index): Change type.
2511 (file_name_index): Likewise.
2512 (line_header::include_dir_at): Change comment and implementation on
2513 whether it is DWARF 5.
2514 (line_header::is_valid_file_index): New function.
2515 (line_header::file_name_at): Change comment and implementation on
2516 whether it is DWARF 5.
2517 (line_header::file_names): Change to private field renamed as
2518 m_file_names and introduce a new accessor method.
2519 (line_header::file_names_size): New method.
2520 (line_header::include_dirs): Change to private field and rename as
2521 m_include_dirs.
2522 (dw2_get_file_names_reader): Define local var at a smaller scope and
2523 reflect API change.
2524 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2525 (process_structure_scope): Likewise.
2526 (line_header::add_include_dir): Change message and reflect renaming.
2527 (line_header::add_file_name): Likewise.
2528 (read_formatted_entries): Handle DW_FORM_data16.
2529 (dwarf_decode_line_header): Fix line header length calculation.
2530 (psymtab_include_file_name): Change comment and API.
2531 (lnp_state_machine::m_file): Update comment and reflect type change.
2532 (lnp_state_machine::record_line): Reflect type change.
2533 (dwarf_decode_lines): Reflect API change.
2534 (file_file_name): Likewise.
2535 (file_full_name): Likewise.
2536
45f47c3a
AB
25372019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2538
2539 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2540
e5f3c0e3
TT
25412019-10-21 Tom Tromey <tom@tromey.com>
2542
2543 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2544
a0a461e5
TT
25452019-10-21 Tom Tromey <tom@tromey.com>
2546
2547 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2548 NM_H. Use AC_CONFIG_LINKS.
2549 * configure: Rebuild.
2550 * Makefile.in (NM_H): New variable.
2551 (generated_files): Add NM_H. Remove gcore.
2552 (nm.h, stamp-nmh): New targets.
2553
54d83b8d
TT
25542019-10-20 Tom Tromey <tom@tromey.com>
2555
2556 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2557 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2558 obsolete comment.
2559 (put_objfile_before): Now static.
2560
23771117
SM
25612019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 * gdbsupport/common-utils.h (startswith): Change return type to
2564 bool.
2565
39ef2f62
CB
25662019-10-19 Christian Biesinger <cbiesinger@google.com>
2567
2568 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2569 * breakpoint.c (bp_locations_compare): Rename to...
2570 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2571 (update_global_location_list): Use std::sort instead of qsort.
2572 * buildsym.c (compare_line_numbers): Rename to...
2573 (lte_is_less_than): ...this, and change to std::sort semantics.
2574 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2575 instead of qsort.
2576 * disasm.c (compare_lines): Rename to...
2577 (line_is_less_than): ...this, and change to std::sort semantics.
2578 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2579 of qsort.
2580 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2581 (fde_is_less_than): ...this, and change to std::sort semantics.
2582 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2583 * mdebugread.c (compare_blocks):
2584 (block_is_less_than): ...this, and change to std::sort semantics.
2585 (sort_blocks): Call std::sort instead of qsort.
2586 * objfiles.c (qsort_cmp): Rename to...
2587 (sort_cmp): ...this, and change to std::sort semantics.
2588 (update_section_map): Call std::sort instead of qsort.
2589 * remote.c (compare_pnums): Remove.
2590 (map_regcache_remote_table): Call std::sort instead of qsort.
2591 * utils.c (compare_positive_ints): Remove.
2592 * utils.h (compare_positive_ints): Remove.
2593 * xcoffread.c (compare_lte): Remove.
2594 (arrange_linetable): Call std::sort instead of qsort.
2595
f71433ee
SDJ
25962019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2597
2598 * symfile.c (init_entry_point_info): Fix typo.
2599 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2600
85102364
TV
26012019-10-18 Tom de Vries <tdevries@suse.de>
2602
2603 * aarch64-tdep.c: Fix typos in comments.
2604 * ada-lang.c: Same.
2605 * ada-tasks.c: Same.
2606 * alpha-tdep.c: Same.
2607 * alpha-tdep.h: Same.
2608 * amd64-nat.c: Same.
2609 * amd64-windows-tdep.c: Same.
2610 * arc-tdep.c: Same.
2611 * arc-tdep.h: Same.
2612 * arch-utils.c: Same.
2613 * arm-nbsd-tdep.c: Same.
2614 * arm-tdep.c: Same.
2615 * ax-gdb.c: Same.
2616 * blockframe.c: Same.
2617 * btrace.c: Same.
2618 * c-varobj.c: Same.
2619 * coff-pe-read.c: Same.
2620 * coffread.c: Same.
2621 * cris-tdep.c: Same.
2622 * darwin-nat.c: Same.
2623 * dbxread.c: Same.
2624 * dcache.c: Same.
2625 * disasm.c: Same.
2626 * dtrace-probe.c: Same.
2627 * dwarf-index-write.c: Same.
2628 * dwarf2-frame-tailcall.c: Same.
2629 * dwarf2-frame.c: Same.
2630 * dwarf2read.c: Same.
2631 * eval.c: Same.
2632 * exceptions.c: Same.
2633 * fbsd-tdep.c: Same.
2634 * findvar.c: Same.
2635 * frame.c: Same.
2636 * frv-tdep.c: Same.
2637 * gnu-v3-abi.c: Same.
2638 * go32-nat.c: Same.
2639 * h8300-tdep.c: Same.
2640 * hppa-tdep.c: Same.
2641 * i386-linux-tdep.c: Same.
2642 * i386-tdep.c: Same.
2643 * ia64-libunwind-tdep.c: Same.
2644 * ia64-tdep.c: Same.
2645 * infcmd.c: Same.
2646 * infrun.c: Same.
2647 * linespec.c: Same.
2648 * linux-nat.c: Same.
2649 * linux-thread-db.c: Same.
2650 * machoread.c: Same.
2651 * mdebugread.c: Same.
2652 * mep-tdep.c: Same.
2653 * mn10300-tdep.c: Same.
2654 * namespace.c: Same.
2655 * objfiles.c: Same.
2656 * opencl-lang.c: Same.
2657 * or1k-tdep.c: Same.
2658 * osabi.c: Same.
2659 * ppc-linux-nat.c: Same.
2660 * ppc-linux-tdep.c: Same.
2661 * ppc-sysv-tdep.c: Same.
2662 * printcmd.c: Same.
2663 * procfs.c: Same.
2664 * record-btrace.c: Same.
2665 * record-full.c: Same.
2666 * remote-fileio.c: Same.
2667 * remote.c: Same.
2668 * rs6000-tdep.c: Same.
2669 * s12z-tdep.c: Same.
2670 * score-tdep.c: Same.
2671 * ser-base.c: Same.
2672 * ser-go32.c: Same.
2673 * skip.c: Same.
2674 * sol-thread.c: Same.
2675 * solib-svr4.c: Same.
2676 * solib.c: Same.
2677 * source.c: Same.
2678 * sparc-nat.c: Same.
2679 * sparc-sol2-tdep.c: Same.
2680 * sparc-tdep.c: Same.
2681 * sparc64-tdep.c: Same.
2682 * stabsread.c: Same.
2683 * stack.c: Same.
2684 * symfile.c: Same.
2685 * symtab.c: Same.
2686 * target-descriptions.c: Same.
2687 * target-float.c: Same.
2688 * thread.c: Same.
2689 * utils.c: Same.
2690 * valops.c: Same.
2691 * valprint.c: Same.
2692 * value.c: Same.
2693 * varobj.c: Same.
2694 * windows-nat.c: Same.
2695 * xcoffread.c: Same.
2696 * xstormy16-tdep.c: Same.
2697 * xtensa-tdep.c: Same.
2698
c5adaa19
TT
26992019-10-17 Tom Tromey <tromey@adacore.com>
2700
2701 * configure: Rebuild.
2702 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2703 in AC_CONFIG_FILES invocation.
2704 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2705 new-style config.status invocation.
2706
405feb71
TV
27072019-10-17 Tom de Vries <tdevries@suse.de>
2708
2709 * arm-nbsd-nat.c: Fix typos in comments.
2710 * arm-tdep.c: Same.
2711 * darwin-nat-info.c: Same.
2712 * dwarf2read.c: Same.
2713 * elfread.c: Same.
2714 * event-top.c: Same.
2715 * findvar.c: Same.
2716 * gdbtypes.c: Same.
2717 * hppa-tdep.c: Same.
2718 * i386-tdep.c: Same.
2719 * jit.c: Same.
2720 * main.c: Same.
2721 * mdebugread.c: Same.
2722 * moxie-tdep.c: Same.
2723 * nto-procfs.c: Same.
2724 * osabi.c: Same.
2725 * ppc-linux-tdep.c: Same.
2726 * remote.c: Same.
2727 * riscv-tdep.c: Same.
2728 * s390-tdep.c: Same.
2729 * sh-tdep.c: Same.
2730 * sparc-linux-tdep.c: Same.
2731 * sparc-nat.c: Same.
2732 * stack.c: Same.
2733 * target-descriptions.c: Same.
2734 * top.c: Same.
2735 * varobj.c: Same.
2736
befcd486
TT
27372019-10-16 Tom Tromey <tom@tromey.com>
2738
2739 * objfiles.h (struct objfile) <original_name>: Now const.
2740
17bfe554
CB
27412019-10-16 Christian Biesinger <cbiesinger@google.com>
2742
2743 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2744 pass on to sigsetjmp's second argument.
2745 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2746
950b7495
KS
27472019-10-16 Keith Seitz <keiths@redhat.com>
2748
2749 PR gdb/23567
2750 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2751 sections whose size is greater than the file size.
2752
ff371ec9
JW
27532019-10-16 Jim Wilson <jimw@sifive.com>
2754
2755 * riscv-tdep.c (riscv_gcc_target_options): New.
2756 (riscv_gnu_triplet_regexp): New.
2757 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2758 set_gdbarch_gnu_triplet_regexp.
2759
fec4e896
CB
27602019-10-16 Christian Biesinger <cbiesinger@google.com>
2761
2762 * Makefile.in: Add xml-builtin.h.
2763 * features/feature_to_c.sh: Add an include for xml-builtin.h
2764 to ensure that the compiler checks that the types match.
2765 * xml-builtin.h: New file.
2766 * xml-support.c (fetch_xml_builtin): Add missing const.
2767 * xml-support.h: Remove declaration of xml_builtins.
2768
d10eccaa
TV
27692019-10-16 Tom de Vries <tdevries@suse.de>
2770
2771 PR tdep/25096
2772 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2773 (amd64_classify_aggregate): ... here.
2774 (amd64_classify_aggregate_field): Handled fiels of nested structs
2775 recursively.
2776
745ff14e
TV
27772019-10-16 Tom de Vries <tdevries@suse.de>
2778
2779 PR tdep/24104
2780 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2781 that handles 'theclass'.
2782
791b7405
AB
27832019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2784
2785 * linespec.c (decode_digits_ordinary): Update comment.
2786 * make-target-delegates: No longer need to handle VEC case.
2787 * memrange.c (normalize_mem_ranges): Update comment.
2788 * namespace.c (add_using_directive): Update comment.
2789 * objc-lang.c (uniquify_strings): Update comment.
2790 * ppc-linux-nat.c (struct thread_points): Update comment.
2791 * probe.h (find_probes_in_objfile): Update comment.
2792 * target.h (enum flash_preserve_mode): Update comment.
2793 * varobj.c (varobj_restrict_range): Update comment.
2794 * varobj.h (varobj_list_children): Update comment.
2795
0dc32745
AB
27962019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2797
2798 * Makefile.in: Remove references to vec.h and vec.c.
2799 * aarch64-tdep.c: No longer include vec.h.
2800 * ada-lang.c: Likewise.
2801 * ada-lang.h: Likewise.
2802 * arm-tdep.c: Likewise.
2803 * ax.h: Likewise.
2804 * breakpoint.h: Likewise.
2805 * charset.c: Likewise.
2806 * cp-support.h: Likewise.
2807 * dtrace-probe.c: Likewise.
2808 * dwarf2read.c: Likewise.
2809 * extension.h: Likewise.
2810 * gdb_bfd.c: Likewise.
2811 * gdbsupport/gdb_vecs.h: Likewise.
2812 * gdbsupport/vec.c: Remove.
2813 * gdbsupport/vec.h: Remove.
2814 * gdbthread.h: Likewise.
2815 * guile/scm-type.c: Likewise.
2816 * inline-frame.c: Likewise.
2817 * machoread.c: Likewise.
2818 * memattr.c: Likewise.
2819 * memrange.h: Likewise.
2820 * namespace.h: Likewise.
2821 * nat/linux-btrace.h: Likewise.
2822 * osdata.c: Likewise.
2823 * parser-defs.h: Likewise.
2824 * progspace.h: Likewise.
2825 * python/py-type.c: Likewise.
2826 * record-btrace.c: Likewise.
2827 * rust-exp.y: Likewise.
2828 * solib-target.c: Likewise.
2829 * stap-probe.c: Likewise.
2830 * target-descriptions.c: Likewise.
2831 * target-memory.c: Likewise.
2832 * target.h: Likewise.
2833 * varobj.c: Likewise.
2834 * varobj.h: Likewise.
2835 * xml-support.h: Likewise.
2836
ae640021
AB
28372019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2840 Update for new std::vector based implementation.
2841 (process_psymtab_comp_unit_reader): Likewise.
2842 (scan_partial_symbols): Likewise.
2843 (recursively_compute_inclusions): Likewise.
2844 (compute_compunit_symtab_includes): Likewise.
2845 (process_imported_unit_die): Likewise.
2846 (queue_and_load_dwo_tu): Likewise.
2847 (follow_die_sig_1): Likewise.
2848 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2849 (typedef dwarf2_per_cu_ptr): Remove.
2850 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2851 function.
2852 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2853 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2854 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2855 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2856 std::vector.
2857
55dfc88f
TT
28582019-10-15 Tom Tromey <tromey@adacore.com>
2859
2860 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2861 TID.
2862
96b49c5e
TT
28632019-10-15 Tom Tromey <tromey@adacore.com>
2864
2865 * windows-nat.c (windows_nat_target::fetch_registers)
2866 (windows_nat_target::store_registers): Rename "pid" to "tid".
2867
953cff56
TT
28682019-10-15 Tom Tromey <tromey@adacore.com>
2869
2870 * gdbarch.h, gdbarch.c: Rebuild.
2871 * gdbarch.sh (gcc_target_options): Change return type to
2872 std::string.
2873 * compile/compile.c (get_args): Update.
2874 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2875 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2876 std::string.
2877 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2878 std::string.
2879 * arch-utils.c (default_gcc_target_options): Return std::string.
2880 * arch-utils.h (default_gcc_target_options): Return std::string.
2881 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2882
81e6b8eb
CB
28832019-10-15 Christian Biesinger <cbiesinger@google.com>
2884
2885 * breakpoint.c (breakpoint_chain): Make static.
2886 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2887 of accessing breakpoint_chain.
2888
95da600f
CB
28892019-10-15 Christian Biesinger <cbiesinger@google.com>
2890
2891 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2892 to a gdb::function_view and return value to bool.
2893 * breakpoint.h (iterate_over_breakpoints): Likewise.
2894 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2895 (pop_dummy_frame): Update.
2896 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2897 (gdbscm_breakpoints): Update.
2898 * python/py-breakpoint.c (build_bp_list): Update.
2899 (gdbpy_breakpoints): Update.
2900 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2901 Update.
2902 (bpfinishpy_handle_stop): Update.
2903 (bpfinishpy_handle_exit): Update.
2904 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2905 (svr4_update_solib_event_breakpoints): Update.
2906
ba18312d
AA
29072019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2908
2909 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2910 when unwrapping single-field structs.
2911
6acc1a0b
SM
29122019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2913
2914 * dwarf2read.c: Remove includes.
2915
284782de
SM
29162019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2917
2918 * ui-out.c (ui_out::call_do_message): Silence
2919 -Wformat-nonliteral warning.
2920
073bbbb0
SM
29212019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2922
2923 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2924 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2925 include: readline/tilde.h.
2926
7b9a15e1
CB
29272019-10-12 Christian Biesinger <cbiesinger@google.com>
2928
2929 * remote.c (remote_target::get_trace_status): Remove declaration of
2930 trace_regblock_size.
2931
cc8dee1f
CB
29322019-10-12 Christian Biesinger <cbiesinger@google.com>
2933
2934 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2935 (show_user): Remove declaration of cmdlist.
2936 * cli/cli-cmds.h (max_user_call_depth): Declare.
2937 * cli/cli-script.c (execute_user_command): Remove declaration
2938 of max_user_call_depth.
2939
a83d4ef6
JW
29402019-10-11 Jim Wilson <jimw@sifive.com>
2941
5f93c5a6
JW
2942 * gdbsupport/print-utils.h (pulongest): Fix comment.
2943 (plongest): Likewise.
2944 (phex): Add missing comment, mention leading zeros.
2945 (phex_nz): Add mention of no leading zeros to comment.
2946
a83d4ef6
JW
2947 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2948 plongest instead of unsigned long long cast.
2949
26344e0c
CB
29502019-10-10 Christian Biesinger <cbiesinger@google.com>
2951
2952 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2953 for external_editor_command and gdbtk_test.
2954
c2c440a9
CB
29552019-10-10 Christian Biesinger <cbiesinger@google.com>
2956
2957 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2958 * varobj.c (varobjdebug): Move comment to...
2959 * varobj.h (varobjdebug): ...here, and declare.
2960
a31bff9d
TT
29612019-10-09 Tom Tromey <tom@tromey.com>
2962
2963 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2964 erase_data_content.
2965
7523da63
TT
29662019-10-09 Tom Tromey <tom@tromey.com>
2967
2968 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2969 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2970 * tui/tui-command.c (tui_cmd_window::resize)
2971 (tui_refresh_cmd_win): Update.
2972 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2973 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2974 * tui/tui-data.c (~tui_gen_win_info): Remove.
2975 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2976 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2977 (tui_redisplay_readline, tui_mld_flush)
2978 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2979 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2980 (tui_data_window::erase_data_content)
2981 (tui_data_item_window::rerender)
2982 (tui_data_item_window::refresh_window): Update.
2983 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2984 (box_win, tui_gen_win_info::make_window)
2985 (tui_gen_win_info::make_visible): Update.
2986 (tui_delete_win): Remove.
2987 * tui/tui-winsource.c
2988 (tui_source_window_base::do_erase_source_content): Update.
2989 (tui_show_source_line, tui_source_window_base::update_tab_width)
2990 (tui_source_window_base::update_exec_info): Update.
2991 * tui/tui-data.h (struct curses_deleter): New.
2992 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2993 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2994
a7798e7f
TT
29952019-10-09 Tom Tromey <tom@tromey.com>
2996
2997 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2998
5c45899e
TT
29992019-10-09 Tom Tromey <tom@tromey.com>
3000
3001 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3002 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3003
6d7fd9aa
TT
30042019-10-09 Tom Tromey <tom@tromey.com>
3005
3006 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3007 window height directly.
3008 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3009 declare.
3010 * tui/tui-layout.c (tui_default_win_height): Remove.
3011 (tui_default_win_viewport_height): Remove.
3012
d2dd1084
TT
30132019-10-09 Tom Tromey <tom@tromey.com>
3014
3015 * tui/tui.h: Remove comments.
3016
cff32449
TV
30172019-10-09 Tom de Vries <tdevries@suse.de>
3018
3019 * python/lib/gdb/printer/bound_registers.py: Use
3020 '^builtin_type_bound128' as regexp argument for
3021 add_builtin_pretty_printer.
3022
6a25e8a2
CB
30232019-10-09 Christian Biesinger <cbiesinger@google.com>
3024
3025 * guile/guile.c (guile_extension_script_ops): Remove forward
3026 declaration and mark as static.
3027 (guile_script_ops): Likewise.
3028 (extension_language_guile): Move further down in the file so
3029 it can reference the definitions for guile_{extension_,}script_ops.
3030
6d9d6da4
AA
30312019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3032
3033 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3034 except SORTL, DFLTCC, and KDSA.
3035
3abea05d
TT
30362019-10-08 Tom Tromey <tromey@adacore.com>
3037
3038 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3039 (struct safe_symbol_file_add_args): Remove.
3040
dde996e2
TT
30412019-10-08 Tom Tromey <tromey@adacore.com>
3042
3043 * windows-nat.c: Don't include buildsym-legacy.h.
3044
cd6fdaa1
TT
30452019-10-08 Tom Tromey <tromey@adacore.com>
3046
3047 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3048
79bb1944
CB
30492019-10-08 Christian Biesinger <cbiesinger@google.com>
3050
3051 * gdbtypes.c (overload_debug): Move comment to header.
3052 * gdbtypes.h (overload_debug): Declare.
3053 * valops.c: Remove declaration of overload_debug, instead
3054 include gdbtypes.h.
3055
34916edc
CB
30562019-10-08 Christian Biesinger <cbiesinger@google.com>
3057
3058 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3059 through _().
3060 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3061 move comment...
3062 * language.h (lang_frame_mismatch_warn): ... here. Also add
3063 declaration.
3064 * top.c (lang_frame_mismatch_warn): Remove declaration.
3065 (check_frame_language_change): Pass lang_frame_mismatch_warn
3066 through _().
3067
bad5c026
CB
30682019-10-07 Christian Biesinger <cbiesinger@google.com>
3069
3070 * c-lang.h (vtbl_ptr_name): Declare.
3071 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3072 it from the header.
3073 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3074
51f1fdc3
CB
30752019-10-07 Christian Biesinger <cbiesinger@google.com>
3076
3077 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3078 gdb_static_assert.
3079
30d1f018
WP
30802019-10-07 Weimin Pan <weimin.pan@oracle.com>
3081
606813d5
WP
3082 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3083 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3084 * ctfread.c: New file.
3085 * ctfread.h: New file.
3086 * elfread.c: Include ctfread.h.
3087 (struct elfinfo text_p): New member ctfsect.
3088 (elf_locate_sections): Mark CTF section.
3089 (elf_symfile_read): Call elfctf_build_psymtabs.
3090 * Makefile.in (LIBCTF): Add.
3091 (CLIBS): Use it.
3092 (CDEPS): Likewise.
3093 (DIST): Add ctfread.c.
606813d5
WP
3094
30952019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * ctfread.c (struct nextfield): Renamed to ...
3098 (struct ctf_nextfield): ... this.
3099 (struct field_info): Renamed to ...
3100 (strut ctf_field_info): ... this.
3101 (attach_fields_to_type): Update for renamed structures.
3102 (ctf_add_member_cb): Likewise.
3103 (ctf_add_enum_member_cb): Likewise.
3104 (process_struct_members): Likewise.
3105 (process_enum_type): Likewise.
30d1f018 3106
518fe38c
WP
31072019-10-07 Weimin Pan <weimin.pan@oracle.com>
3108
3109 * tracectf.h: Rename, was ctf.h.
3110 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3111 * tracefile.c: Likewise.
3112 * tracepoint.c: Remove unused include ctf.h.
3113 * mi/mi-main.c: Likewise.
3114 * Makefile.in Replace ctf.c with tracectf.c.
3115
225f296a
JB
31162019-10-06 Joel Brobecker <brobecker@adacore.com>
3117
3118 * version.in: Change version number to "9.0.50.DATE-git".
3119
77c2dba3
TT
31202019-10-03 Tom Tromey <tom@tromey.com>
3121
3122 PR rust/24976:
3123 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3124
179aed7f
AB
31252019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3128 cp_search_name_hash.
3129 * NEWS: Add entry about nested function support.
3130
0a4b0913
AB
31312019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3132 Andrew Burgess <andrew.burgess@embecosm.com>
3133
3134 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3135 for nested static variables when searchin VAR_DOMAIN.
3136 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3137 global scope, update comment.
3138 (add_partial_subprogram): Call add_partial_subprogram recursively
3139 for nested subroutines when processinng Fortran.
3140 (load_partial_dies): Process the child entities of a subprogram
3141 when processing Fortran.
3142 (partial_die_parent_scope): Handle building scope
3143 for Fortran nested functions.
3144 (process_die): Record that nested functions have a scope.
3145 (new_symbol): Always record Fortran subprograms on the global
3146 symbol list.
3147 (determine_prefix): How to build the prefix for Fortran
3148 subprograms.
3149
d8c06f22
AB
31502019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3151
3152 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3153 have just sent the thread a SIGSTOP and are waiting for it to
3154 arrive.
3155
a8b3b8e9
AB
31562019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3157
3158 * btrace.c (btrace_add_pc): Remove whitespace before the template
3159 parameter in 'std::vector <...>'.
3160 (parse_xml_btrace_block): Likewise.
3161 (btrace_maint_decode_pt): Likewise.
3162 (btrace_maint_update_packets): Likewise.
3163 (btrace_maint_print_packets): Likewise.
3164 * btrace.h (struct btrace_maint_info): Likewise.
3165 * dwarf2read.c (struct type_unit_group): Likewise.
3166 (build_type_psymtabs_reader): Likewise.
3167 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3168 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3169 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3170
4d825eab
TV
31712019-10-03 Tom de Vries <tdevries@suse.de>
3172
3173 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3174 the first line of the help text for set/show style metadata.
3175
80fd2826
TT
31762019-10-02 Tom Tromey <tromey@adacore.com>
3177
3178 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3179 * gdbsupport/common-inferior.c: New file.
3180 * infcmd.c (startup_with_shell): Don't define.
3181 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3182 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3183 * inferior.h (startup_with_shell): Don't declare.
3184
70054538
CB
31852019-10-02 Christian Biesinger <cbiesinger@google.com>
3186
3187 * gdbsupport/gdb_assert.h: Include errors.h.
3188 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3189
37f6a7f4
TT
31902019-10-02 Tom Tromey <tromey@adacore.com>
3191
3192 * NEWS: Add $_ada_exception entry.
3193 * ada-lang.c (struct ada_catchpoint): Add constructor.
3194 <m_kind>: New member.
3195 (allocate_location_exception, re_set_exception): Remove
3196 "ex" parameter.
3197 (should_stop_exception): Compute $_ada_exception.
3198 (check_status_exception, print_it_exception)
3199 (print_one_exception, print_mention_exception): Remove
3200 "ex" parameter.
3201 (allocate_location_catch_exception, re_set_catch_exception)
3202 (check_status_exception, print_it_catch_exception)
3203 (print_one_catch_exception, print_mention_catch_exception)
3204 (print_recreate_catch_exception)
3205 (allocate_location_catch_exception_unhandled)
3206 (re_set_catch_exception_unhandled)
3207 (check_status_exception, print_it_catch_exception_unhandled)
3208 (print_one_catch_exception_unhandled)
3209 (print_mention_catch_exception_unhandled)
3210 (print_recreate_catch_exception_unhandled)
3211 (allocate_location_catch_assert, re_set_catch_assert)
3212 (check_status_assert, print_it_catch_assert)
3213 (print_one_catch_assert, print_mention_catch_assert)
3214 (print_recreate_catch_assert)
3215 (allocate_location_catch_handlers, re_set_catch_handlers)
3216 (check_status_handlers, print_it_catch_handlers)
3217 (print_one_catch_handlers, print_mention_catch_handlers)
3218 (print_recreate_catch_handlers): Remove.
3219 (create_ada_exception_catchpoint): Update.
3220 (initialize_ada_catchpoint_ops): Update.
3221
fccf9de1
TT
32222019-10-02 Tom Tromey <tromey@adacore.com>
3223
3224 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3225 (create_excep_cond_exprs): Simplify exception string computation.
3226 (ada_exception_catchpoint_cond_string): Likewise.
3227
4b610737
TT
32282019-10-02 Tom Tromey <tromey@adacore.com>
3229
3230 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3231 * ada-lang.c (lesseq_defined_than): Handle
3232 LOC_STATIC.
3233 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3234 parameter.
3235 (dwarf2_has_info): Likewise.
3236 (new_symbol): Set maybe_copied on symbol when
3237 appropriate.
3238 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3239 parameter.
3240 <can_copy>: New member.
3241 * elfread.c (record_minimal_symbol): Set maybe_copied
3242 on symbol when appropriate.
3243 (elf_symfile_read): Update call to dwarf2_has_info.
3244 * minsyms.c (lookup_minimal_symbol_linkage): New
3245 function.
3246 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3247 * symtab.c (get_symbol_address, get_msymbol_address):
3248 New functions.
3249 * symtab.h (get_symbol_address, get_msymbol_address):
3250 Declare.
3251 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3252 maybe_copied.
3253 (struct symbol, struct minimal_symbol) <maybe_copied>:
3254 New member.
3255
1dd58850
TT
32562019-10-02 Tom Tromey <tromey@adacore.com>
3257
3258 * source.c (struct current_source_location): New.
3259 (current_source_key): New global.
3260 (current_source_symtab, current_source_line)
3261 (current_source_pspace): Remove.
3262 (get_source_location): New function.
3263 (get_current_source_symtab_and_line)
3264 (set_default_source_symtab_and_line)
3265 (set_current_source_symtab_and_line)
3266 (clear_current_source_symtab_and_line, select_source_symtab)
3267 (info_source_command, print_source_lines_base)
3268 (info_line_command, search_command_helper, _initialize_source):
3269 Update.
3270
5c281dbb
TT
32712019-10-02 Tom Tromey <tromey@adacore.com>
3272
3273 * source.c (select_source_symtab): Don't call
3274 decode_line_with_current_source.
3275
d3d32391
AB
32762019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3277
3278 * symtab.c (lookup_global_symbol): Search global block.
3279
38583298
TT
32802019-10-02 Tom Tromey <tromey@adacore.com>
3281
3282 * coffread.c (process_coff_symbol): Update.
3283 * dwarf2read.c (var_decode_location, new_symbol): Update.
3284 * mdebugread.c (parse_symbol): Update.
3285 * objfiles.c (relocate_one_symbol): Update.
3286 * stabsread.c (define_symbol, fix_common_block)
3287 (scan_file_globals): Update.
3288 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3289 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3290 * xcoffread.c (process_xcoff_symbol): Update.
3291
9344c18f
AA
32922019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3293
3294 * MAINTAINERS: Update my email address.
3295
df07e2c7
AB
32962019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3299 std::vector.
3300 (build_type_psymtabs_reader): Update for std::vector.
3301 (build_type_psymtab_dependencies): Likewise.
3302 * dwarf2read.h: Remove use of DEF_VEC_P.
3303 (typedef sig_type_ptr): Delete.
3304
554ac434
AB
33052019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3306
3307 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3308 to std::vector.
3309 (btrace_maint_decode_pt): Likewise, and move allocation of the
3310 vector outside of the loop.
3311 (btrace_maint_update_packets): Update to handle change from VEC to
3312 std::vector.
3313 (btrace_maint_print_packets): Likewise.
3314 (maint_info_btrace_cmd): Likewise.
3315 * btrace.h: Remove use of DEF_VEC_O.
3316 (typedef btrace_pt_packet_s): Delete.
3317 (struct btrace_maint_info) <packets>: Change fromm VEC to
3318 std::vector.
3319 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3320
46f29a9a
AB
33212019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3322
3323 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3324 make accesses into the vector constant references.
3325 (btrace_add_pc): Update for std::vector.
3326 (btrace_stitch_bts): Likewise.
3327 (parse_xml_btrace_block): Likewise.
3328 (btrace_maint_update_packets): Likewise.
3329 (btrace_maint_print_packets): Likewise.
3330 (maint_info_btrace_cmd): Likewise.
3331 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3332 std::vector.
3333 (btrace_data::empty): Likewise.
3334 (btrace_data_append): Likewise.
3335 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3336 (typedef btrace_block_s): Delete.
3337 (struct btrace_block): Add constructor.
3338 (struct btrace_data_bts) <blocks>: Change to std::vector.
3339 * nat/linux-btrace.c (perf_event_read_bts): Update for
3340 std::vector.
3341 (linux_read_bts): Likewise.
3342
d770d56f
TT
33432019-10-01 Tom Tromey <tom@tromey.com>
3344
3345 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3346
9d636d67
TT
33472019-10-01 Tom Tromey <tom@tromey.com>
3348
3349 * stack.c (print_frame, info_frame_command_core): Use
3350 styled_string.
3351 * linux-thread-db.c (try_thread_db_load_1)
3352 (try_thread_db_load_from_pdir_1): Use styled_string.
3353 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3354 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3355 (maybe_print_unsupported_script_warning)
3356 (maybe_print_script_not_found_warning): Use styled_string.
3357 * ada-lang.c (user_select_syms): Use styled_string.
3358
7f6aba03
TT
33592019-10-01 Tom Tromey <tom@tromey.com>
3360
3361 * p-lang.c (pascal_printstr): Use metadata style.
3362 * value.c (show_convenience): Use metadata style.
3363 * valprint.c (valprint_check_validity, val_print_optimized_out)
3364 (val_print_not_saved, val_print_unavailable)
3365 (val_print_invalid_address, generic_val_print, val_print)
3366 (value_check_printable, val_print_array_elements): Use metadata
3367 style.
3368 * ui-out.h (class ui_out) <field_fmt>: New overload.
3369 <do_field_fmt>: Add style parameter.
3370 * ui-out.c (ui_out::field_fmt): New overload.
3371 * typeprint.c (type_print_unknown_return_type)
3372 (val_print_not_allocated, val_print_not_associated): Use metadata
3373 style.
3374 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3375 parameter.
3376 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3377 * tracepoint.c (tvariables_info_1): Use metadata style.
3378 * stack.c (print_frame_arg, print_frame_info, print_frame)
3379 (info_frame_command_core): Use metadata style.
3380 * skip.c (info_skip_command): Use metadata style.
3381 * rust-lang.c (rust_print_enum): Use metadata style.
3382 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3383 metadata style.
3384 * python/py-framefilter.c (py_print_single_arg): Use metadata
3385 style.
3386 * printcmd.c (do_one_display, print_variable_and_value): Use
3387 metadata style.
3388 * p-valprint.c (pascal_val_print)
3389 (pascal_object_print_value_fields): Use metadata style.
3390 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3391 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3392 parameter.
3393 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3394 * m2-valprint.c (m2_print_long_set): Use metadata style.
3395 * m2-typeprint.c (m2_print_type): Use metadata style.
3396 * infcmd.c (print_return_value_1): Use metadata style.
3397 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3398 * f-valprint.c (info_common_command_for_block): Use metadata
3399 style.
3400 * f-typeprint.c (f_type_print_base): Use metadata style.
3401 * expprint.c (print_subexp_standard): Use metadata style.
3402 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3403 * cli/cli-style.h (class cli_style_option): Add constructor.
3404 (metadata_style): Declare.
3405 * cli/cli-style.c (metadata_style): New global.
3406 (_initialize_cli_style): Register metadata style.
3407 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3408 parameter.
3409 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3410 * c-typeprint.c (c_type_print_base_struct_union)
3411 (c_type_print_base_1): Use metadata style.
3412 * breakpoint.c (watchpoint_value_print)
3413 (print_one_breakpoint_location): Use metadata style.
3414 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3415 style.
3416 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3417 style.
3418 * ada-valprint.c (val_print_packed_array_elements, printstr)
3419 (print_field_values, ada_val_print_ref, ada_val_print): Use
3420 metadata style.
3421 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3422 style.
3423 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3424 style.
3425 * ada-lang.c (user_select_syms): Use metadata style.
3426
14309bb6
TT
34272019-10-01 Tom Tromey <tom@tromey.com>
3428
3429 * cli/cli-cmds.c (pwd_command): Style output.
3430
6a831f06
PA
34312019-10-01 Pedro Alves <palves@redhat.com>
3432 Tom Tromey <tom@tromey.com>
3433
3434 * symtab.c (print_symbol_info): Use %ps.
3435 (print_msymbol_info): Use %ps.
3436 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3437 * printcmd.c (print_variable_and_value): Use %ps.
3438 * macrocmd.c (show_pp_source_pos): Use %ps.
3439 * infrun.c (print_exited_reason): Use ui_out::message.
3440 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3441 (describe_other_breakpoints): Use ui_out::message and new
3442 formats.
3443 (say_where): Use new formats.
3444 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3445 and new formats.
3446
2a3c1174
PA
34472019-10-01 Pedro Alves <palves@redhat.com>
3448 Tom Tromey <tom@tromey.com>
3449
3450 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3451 (test_gdb_formats): New function.
3452 (run_tests): Call it.
3453 (test_format_specifier): Update.
3454 * utils.h (fputs_filtered): Update comment.
3455 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3456 (fputs_styled_unfiltered): Declare.
3457 * utils.c (fputs_styled_unfiltered): New function.
3458 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3459 (vfprintf_filtered): Update.
3460 (vfprintf_unfiltered, vprintf_filtered): Update.
3461 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3462 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3463 disallow_ui_out_field>: New constants.
3464 (enum class field_kind): New.
3465 (struct base_field_s, struct signed_field_s): New.
3466 (signed_field): New function.
3467 (struct string_field_s): New.
3468 (string_field): New function.
3469 (struct styled_string_s): New.
3470 (styled_string): New function.
3471 (class ui_out) <message>: Add comment.
3472 <vmessage, call_do_message>: New methods.
3473 <do_message>: Add style parameter.
3474 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3475 methods.
3476 (ui_out::message): Rewrite.
3477 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3478 parameter.
3479 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3480 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3481 gdb_extensions parameter.
3482 (class format_piece): Add parameter to constructor.
3483 (n_int_args): New field.
3484 * gdbsupport/format.c (format_pieces::format_pieces): Add
3485 gdb_extensions parameter. Handle '*'.
3486 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3487 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3488 vfprintf_styled_no_gdbfmt.
3489 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3490 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3491 unfiltered output.
3492 * ui-style.h (struct ui_file_style) <ptr>: New method.
3493
0dfe5bfb
TT
34942019-10-01 Tom Tromey <tom@tromey.com>
3495
3496 * unittests/format_pieces-selftests.c: Update. Add final format.
3497 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3498 empty literal pieces.
3499
e43b10e1
TT
35002019-10-01 Tom Tromey <tom@tromey.com>
3501
3502 * ui-out.h (enum class ui_out_style_kind): Remove.
3503 (class ui_out) <field_string, field_stsream, do_field_string>:
3504 Change type of "style".
3505 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3506 (ui_out::field_string): Update.
3507 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3508 of "style".
3509 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3510 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3511 * stack.c (print_frame_arg, print_frame_info, print_frame):
3512 Update.
3513 * source.c (print_source_lines_base): Update.
3514 * solib.c (info_sharedlibrary_command): Update.
3515 * skip.c (info_skip_command): Update.
3516 * record-btrace.c (btrace_call_history_src_line)
3517 (btrace_call_history): Update.
3518 * python/py-framefilter.c (py_print_frame): Update.
3519 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3520 "style".
3521 * mi/mi-out.c (mi_ui_out::do_table_header)
3522 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3523 (mi_ui_out::do_field_string): Update.
3524 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3525 Update.
3526 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3527 "style".
3528 * cli-out.c (cli_ui_out::do_table_header)
3529 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3530 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3531 (cli_ui_out::do_field_fmt): Update.
3532 * breakpoint.c (print_breakpoint_location): Update.
3533 (update_static_tracepoint): Update.
3534
cd7c32c3
PW
35352019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3536
3537 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3538 conversion of gdb_datadir.
3539 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3540 remove not needed c_str ().
3541
8fe0f950
AT
35422019-09-30 Ali Tamur <tamur@google.com>
3543
3544 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3545 (dwarf2_string_attr): Likewise.
3546
5f48f8f3
AT
35472019-09-30 Ali Tamur <tamur@google.com>
3548
3549 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3550 (process_full_type_unit): Likewise.
3551 (dump_die_shallow): Likewise.
3552 (cu_debug_loc_section): Likewise.
3553
6fb08628
CB
35542019-09-28 Christian Biesinger <cbiesinger@google.com>
3555
3556 * minsyms.c (compare_minimal_symbols): Rename to...
3557 (minimal_symbol_is_less_than): ...this, and adjust to STL
3558 conventions (return bool, take arguments as references)
3559 (minimal_symbol_reader::install): Call std::sort instead
3560 of qsort.
3561
c7ee338a
CB
35622019-09-29 Christian Biesinger <cbiesinger@google.com>
3563
3564 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3565 hash and why.
3566 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3567 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3568
703a86c2
SM
35692019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3570
3571 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3572 * psympriv.h (add_psymbol_to_list): Move comment here and update
3573 it.
3574
0df0352a
TV
35752019-09-29 Tom de Vries <tdevries@suse.de>
3576
3577 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3578 Use $tmpdir/$(basename "$output_file").dwz instead of
3579 "${output_file}.dwz".
3580
ad75efa6
SM
35812019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3582
3583 PR gdb/25045
3584 * hppa-linux-nat.c: Include gdbarch.h.
3585
ececd218
CB
35862019-09-26 Christian Biesinger <cbiesinger@google.com>
3587
3588 * blockframe.c (find_pc_partial_function): Change return type to bool.
3589 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3590 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3591 (stub_gnu_ifunc_resolve_name): Likewise.
3592 * symtab.c (compare_filenames_for_search): Likewise.
3593 (compare_glob_filenames_for_search): Likewise.
3594 (matching_obj_sections): Likewise.
3595 (symbol_matches_domain): Likewise.
3596 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3597 (find_line_pc): Change return type to bool.
3598 (find_line_pc_range): Likewise.
3599 (producer_is_realview): Likewise.
3600 * symtab.h (symbol_matches_domain): Likewise.
3601 (find_pc_partial_function): Likewise.
3602 (find_pc_line_pc_range): Likewise.
3603 (in_gnu_ifunc_stub): Likewise.
3604 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3605 (find_line_pc): Likewise.
3606 (find_line_pc_range): Likewise.
3607 (matching_obj_sections): Likewise.
3608 (find_line_symtab): Change out parameter to bool.
3609 (producer_is_realview): Change return type to bool.
3610 (compare_filenames_for_search): Likewise.
3611 (compare_glob_filenames_for_search): Likewise.
3612
27a900b8
TT
36132019-09-26 Tom Tromey <tom@tromey.com>
3614
3615 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3616 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3617 * gdb_usleep.h: Remove.
3618 * gdb_usleep.c: Remove.
3619 * utils.c: Don't include gdb_usleep.h.
3620
5d63b30a
TT
36212019-09-26 Tom Tromey <tromey@adacore.com>
3622
3623 * python/py-type.c (type_to_type_object): Call check_typedef
3624 for stub types.
3625
12904d37
TT
36262019-09-26 Tom Tromey <tom@tromey.com>
3627
3628 * utils.h (initialize_utils): Don't declare.
3629 * top.c (gdb_init): Don't call initialize_utils.
3630 * utils.c (initialize_utils): Remove. Move contents...
3631 (_initialize_utils): ... here.
3632
858f25f0
TT
36332019-09-25 Tom Tromey <tom@tromey.com>
3634
3635 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3636 * utils.h (make_hex_string): Don't declare.
3637 * utils.c (make_hex_string): Remove.
3638
3d435220
TV
36392019-09-24 Tom de Vries <tdevries@suse.de>
3640
3641 PR gdb/23815
3642 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3643 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3644
ddd44b70
DD
36452019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3646
3647 * NEWS: Mention new simulator port for PRU.
3648
f945dedf
CB
36492019-09-23 Christian Biesinger <cbiesinger@google.com>
3650
3651 * ada-exp.y (write_object_remaining): Update.
3652 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3653 and eliminate the static buffer.
3654 (ada_decode_symbol): Update.
3655 (ada_la_decode): Update.
3656 (ada_sniff_from_mangled_name): Update.
3657 (is_valid_name_for_wild_match): Update.
3658 (ada_lookup_name_info::matches): Update and simplify.
3659 (name_matches_regex): Update.
3660 (ada_add_global_exceptions): Update.
3661 * ada-lang.h (ada_decode): Update signature.
3662 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3663 * dwarf-index-write.c (debug_names::insert): Update.
3664
7ab78ccb
SM
36652019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3666
3667 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3668 formatting.
3669
9252448b
SM
36702019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3671
3672 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3673 Change "nonzero" to "true" in documentation.
3674
626ca2c0
CB
36752019-09-20 Christian Biesinger <cbiesinger@google.com>
3676
3677 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3678 (_initialize_darwin_solib): Don't set
3679 darwin_so_ops.lookup_lib_global_symbol.
3680 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3681 set_gdbarch_iterate_over_objfiles_in_search_order.
3682 (elf_lookup_lib_symbol): Rename to...
3683 (svr4_iterate_over_objfiles_in_search_order): this, and update
3684 to iterate semantics.
3685 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3686 * solib.c (solib_global_lookup): Remove.
3687 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3688 (solib_global_lookup): Remove.
3689 * symtab.c (lookup_global_or_static_symbol): Remove call to
3690 solib_global_lookup.
3691
5a3a0d63
JB
36922019-09-20 Joel Brobecker <brobecker@adacore.com>
3693
3694 * NEWS: Move entries about default MI version now being
3695 version 3, and about the GDB/MI fix for multi-location
3696 breakpoints to the "since GDB 8.3" section.
3697
ffea1427
JB
36982019-09-20 Joel Brobecker <brobecker@adacore.com>
3699
3700 GDB 8.3.1 released.
3701
abf516c6
UW
37022019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3703
3704 * NEWS: Mention that Cell/B.E. debugging support was removed.
3705 * MAINTAINERS: Remove spu target.
3706
3707 * config/djgpp/fnchange.lst: Remove entries for removed files.
3708
3709 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3710 spu-multiarch.o, and spu-tdep.o.
3711 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3712 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3713 spu-multiarch.c, and spu-tdep.c.
3714 * spu-linux-nat.c: Remove file.
3715 * spu-multiarch.c: Remove file.
3716 * spu-tdep.c: Remove file.
3717 * spu-tdep.h: Remove file.
3718 * solib-spu.c: Remove file.
3719 * solib-spu.h: Remove file.
3720
3721 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3722 * configure.nat (spu-linux): Remove.
3723 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3724 solib-multiarch.o from gdb_target_obs.
3725 (spu*-*-*): Remove.
3726
3727 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3728 feature flag.
3729 (ppc_linux_no_features): Update.
3730 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3731 Cell/B.E. support.
3732 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3733 (tdesc_powerpc_cell64l): Likewise.
3734 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3735 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3736 Cell/B.E. support.
3737 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3738 Do not include "features/rs6000/powerpc-cell32l.c" or
3739 "features/rs6000/powerpc-cell64l.c".
3740 (ppc_linux_spu_section): Remove.
3741 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3742 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3743 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3744 (ppc_linux_spe_context_lookup): Remove.
3745 (ppc_linux_spe_context_inferior_created): Remove.
3746 (ppc_linux_spe_context_solib_loaded): Remove.
3747 (ppc_linux_spe_context_solib_unloaded): Remove.
3748 (ppc_linux_spe_context): Remove.
3749 (struct ppu2spu_cache): Remove.
3750 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3751 (struct ppu2spu_data): Remove.
3752 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3753 ppu2spu_unwind): Remove.
3754 (ppc_linux_init_abi): Remove Cell/B.E. support.
3755 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3756
3757 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3758 (rs6000/powerpc-cell64l-expedite): Likewise
3759 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3760 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3761 rs6000/powerpc-cell64l.xml.
3762 * features/rs6000/powerpc-cell32l.xml: Remove.
3763 * features/rs6000/powerpc-cell64l.xml: Likewise.
3764 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3765 * features/rs6000/powerpc-cell64l.c: Likewise.
3766 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3767 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3768 * regformats/reg-spu.dat: Remove.
3769
3770 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3771 * corelow.c (struct spuid_list): Remove.
3772 (add_to_spuid_list): Remove.
3773 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3774 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3775 (remote_protocol_features): Remove associated entries.
3776 (_initialize_remote): No longer initialize them.
3777 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3778 * linux-nat.c (SPUFS_MAGIC): Remove.
3779 (linux_proc_xfer_spu): Remove.
3780 (spu_enumerate_spu_ids): Remove.
3781 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3782 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3783 (linux_make_corefile_notes): No longer call it.
3784
3785 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3786 (cooked_write_test): Likewise.
3787
78e8cb91
TT
37882019-09-20 Tom Tromey <tom@tromey.com>
3789
3790 * NEWS: Mention case-sensitivity of TUI commands.
3791 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3792 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3793 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3794
f074b67e
TT
37952019-09-20 Tom Tromey <tom@tromey.com>
3796
3797 * tui/tui-source.c (tui_source_window::set_contents): Use
3798 make_unique_xstrdup.
3799 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3800 make_unique_xstrdup.
3801
63c4bf19
TT
38022019-09-20 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui-data.c: Remove separator comments.
3805 * tui/tui-layout.c: Remove separator comments.
3806 * tui/tui-win.c: Remove separator comments.
3807 * tui/tui-wingeneral.c: Remove separator comments.
3808
43df9b2f
TT
38092019-09-20 Tom Tromey <tom@tromey.com>
3810
3811 * tui/tui.h (strcat_to_buf): Don't declare.
3812 * tui/tui.c (strcat_to_buf): Remove.
3813
7226433c
TT
38142019-09-20 Tom Tromey <tom@tromey.com>
3815
3816 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3817 from "fullname".
3818 * tui/tui-source.c (tui_source_window::set_contents)
3819 (tui_source_window::location_matches_p)
3820 (tui_source_window::maybe_update): Update.
3821
80df3337
TT
38222019-09-20 Tom Tromey <tom@tromey.com>
3823
3824 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3825 Update.
3826 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3827 prefix.
3828 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3829 (tui_data_window::line_from_reg_element_no)
3830 (tui_data_window::first_reg_element_no_inline)
3831 (tui_data_window::show_registers)
3832 (tui_data_window::show_register_group)
3833 (tui_data_window::display_registers_from)
3834 (tui_data_window::display_registers_from_line)
3835 (tui_data_window::first_data_item_displayed)
3836 (tui_data_window::delete_data_content_windows)
3837 (tui_data_window::erase_data_content)
3838 (tui_data_window::do_scroll_vertical)
3839 (tui_data_window::refresh_window)
3840 (tui_data_window::check_register_values): Update.
3841
9923f347
TT
38422019-09-20 Tom Tromey <tom@tromey.com>
3843
3844 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3845 (struct tui_locator_window) <full_name, proc_name>: Now
3846 std::string.
3847 * tui/tui-stack.c (tui_locator_window::make_status_line)
3848 (tui_locator_window::set_locator_fullname)
3849 (tui_locator_window::set_locator_info): Update.
3850 * tui/tui-source.c (tui_source_window::set_contents)
3851 (tui_source_window::showing_source_p): Update.
3852
b76251ab
TT
38532019-09-20 Tom Tromey <tom@tromey.com>
3854
3855 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3856 Don't call tui_locator_win_info_ptr.
3857
0891be08
TT
38582019-09-20 Tom Tromey <tom@tromey.com>
3859
3860 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3861
1b935acf
TT
38622019-09-20 Tom Tromey <tom@tromey.com>
3863
3864 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3865 height for locator.
3866 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3867 * tui/tui-layout.c (show_source_disasm_command, show_data)
3868 (show_source_or_disasm_and_command): Use 1 as height for locator.
3869
9abd8a65
TT
38702019-09-20 Tom Tromey <tom@tromey.com>
3871
3872 * tui/tui.c (tui_enable): Update.
3873 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3874 Update.
3875 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3876 Update.
3877 * tui/tui-data.c (win_resized): Now bool.
3878 (tui_win_resized): Return bool.
3879 (tui_set_win_resized_to): Accept a bool.
3880
b5457826
TT
38812019-09-20 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3884 Change type of "refresh_values_only".
3885 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3886 type of "refresh_values_only".
3887
6b915f7d
TT
38882019-09-20 Tom Tromey <tom@tromey.com>
3889
3890 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3891 std::string.
3892 (tui_disassemble): Add "pos" parameter.
3893 (tui_disasm_window::set_contents): Simplify.
3894
2ad52f6f
TT
38952019-09-20 Tom Tromey <tom@tromey.com>
3896
3897 * tui/tui-winsource.h (struct tui_source_window_base)
3898 <show_source_content>: Now private.
3899 * tui/tui-winsource.c
3900 (tui_source_window_base::show_source_content): Don't handle empty
3901 content case.
3902
b3b1bde6
TT
39032019-09-20 Tom Tromey <tom@tromey.com>
3904
3905 * tui/tui-layout.c (show_source_disasm_command)
3906 (show_source_or_disasm_and_command): Don't call
3907 show_source_content.
3908
71a25ed2
TT
39092019-09-20 Tom Tromey <tom@tromey.com>
3910
3911 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3912 Declare.
3913 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3914 from tui_make_status_line.
3915 (tui_locator_window::rerender): Update.
3916
f8532154
TT
39172019-09-20 Tom Tromey <tom@tromey.com>
3918
3919 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3920 (tui_locator_window::rerender): Update.
3921
2d81b349
TT
39222019-09-20 Tom Tromey <tom@tromey.com>
3923
3924 * tui/tui-winsource.h (struct tui_source_window_base)
3925 <~tui_source_window_base>: Don't declare.
3926 <fullname>: Remove.
3927 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3928 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3929 member.
3930 * tui/tui-source.c (tui_source_window::set_contents): Update.
3931 (tui_source_window::location_matches_p)
3932 (tui_source_window::maybe_update): Update.
3933
f14bec58
TT
39342019-09-20 Tom Tromey <tom@tromey.com>
3935
3936 * tui/tui-winsource.h (~tui_source_element): Remove.
3937 (tui_source_element): Update.
3938 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3939 * tui/tui-winsource.c (tui_show_source_line): Update.
3940 * tui/tui-source.c (tui_source_window::set_contents): Update.
3941 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3942
78d5933a
TT
39432019-09-20 Tom Tromey <tom@tromey.com>
3944
3945 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3946 declare.
3947 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3948 tui_clear_source_windows_detail.
3949 * tui/tui-winsource.h (struct tui_source_window_base)
3950 <clear_detail>: Don't declare.
3951 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3952 Remove.
3953 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3954
d4207696
TT
39552019-09-20 Tom Tromey <tromey@adacore.com>
3956
3957 PR ada/24919:
3958 * block.c (contained_in): Fix final return value.
3959
00f93c44
AM
39602019-09-20 Alan Modra <amodra@gmail.com>
3961
3962 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3963 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3964 (read_indirect_string_from_dwz): Use bfd accessor.
3965 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3966 * machoread.c (macho_symfile_read_all_oso): Likewise.
3967 * solib.c (solib_bfd_open): Likewise.
3968
e4153ae6
CB
39692019-09-19 Christian Biesinger <cbiesinger@google.com>
3970
3971 * eval.c: Move declaration of overload_resolution to...
3972 * value.h: ...here.
3973
c7ae7675
CB
39742019-09-19 Christian Biesinger <cbiesinger@google.com>
3975
3976 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3977 * arm-linux-tdep.c: Likewise.
3978 * arm-nbsd-nat.c: Likewise.
3979 * arm-tdep.h: Declare arm_apcs_32.
3980 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3981
e86f08d2
CB
39822019-09-19 Christian Biesinger <cbiesinger@google.com>
3983
3984 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3985 * dwarf2read.h: Declare dwarf_always_disassemble.
3986
f64e2f40
TV
39872019-09-19 Tom de Vries <tdevries@suse.de>
3988
3989 PR gdb/25009
3990 * source-cache.c (source_cache::ensure): Catch exception thrown during
3991 construction of the highlighter.
3992
fd361982
AM
39932019-09-18 Alan Modra <amodra@gmail.com>
3994
3995 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3996 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3997 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3998 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3999 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4000 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4001 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4002 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4003 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4004 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4005 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4006 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4007 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4008 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4009 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4010 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4011 * mi/mi-interp.c: Update throughout for bfd section macro and
4012 function changes.
4013 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4014 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4015
11061048
TT
40162019-09-18 Tom Tromey <tom@tromey.com>
4017
4018 * NEWS: Add entry.
4019 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4020 call rl_initialize.
4021 (tui_enable): Do not call rl_initialize.
4022
7a27b85f
CG
40232019-09-18 Christian Groessler <chris@groessler.org>
4024
4025 * alpha-linux-nat.c: Include gdbarch.h.
4026
f64eea3a
SM
40272019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4028
4029 * ui-file.c: Include cli/cli-style.h.
4030 (term_cli_styling): Remove cli_styling declaration.
4031
e6f7f6d1
AM
40322019-09-18 Alan Modra <amodra@gmail.com>
4033
4034 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4035 to bfd_asymbol_section.
4036
1d38e9d1
AM
40372019-09-18 Alan Modra <amodra@gmail.com>
4038
4039 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4040 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4041 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4042
90d92a63
AM
40432019-09-18 Alan Modra <amodra@gmail.com>
4044
4045 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4046 * spu-linux-nat.c (spu_bfd_open): Likewise.
4047
a3d181d2
CB
40482019-09-18 Christian Biesinger <cbiesinger@google.com>
4049
4050 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4051 to bool to match definition in dwarf2read.c.
4052
491144b5
CB
40532019-09-17 Christian Biesinger <cbiesinger@google.com>
4054
4055 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4056 (print_signatures): Likewise.
4057 (trust_pad_over_xvs): Likewise.
4058 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4059 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4060 * arm-linux-nat.c (arm_apcs_32): Likewise.
4061 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4062 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4063 * arm-tdep.c (arm_debug): Likewise.
4064 (arm_apcs_32): Likewise.
4065 * auto-load.c (debug_auto_load): Likewise.
4066 (auto_load_gdb_scripts): Likewise.
4067 (global_auto_load): Likewise.
4068 (auto_load_local_gdbinit): Likewise.
4069 (auto_load_local_gdbinit_loaded): Likewise.
4070 * auto-load.h (global_auto_load): Likewise.
4071 (auto_load_local_gdbinit): Likewise.
4072 (auto_load_local_gdbinit_loaded): Likewise.
4073 * breakpoint.c (disconnected_dprintf): Likewise.
4074 (breakpoint_proceeded): Likewise.
4075 (automatic_hardware_breakpoints): Likewise.
4076 (always_inserted_mode): Likewise.
4077 (target_exact_watchpoints): Likewise.
4078 (_initialize_breakpoint): Update.
4079 * breakpoint.h (target_exact_watchpoints): Change to bool.
4080 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4081 * cli/cli-cmds.c (trace_commands): Likewise.
4082 * cli/cli-cmds.h (trace_commands): Likewise.
4083 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4084 to bool*.
4085 * cli/cli-logging.c (logging_overwrite): Change to bool.
4086 (logging_redirect): Likewise.
4087 (debug_redirect): Likewise.
4088 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4089 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4090 to bool.
4091 <boolean_option_def>: Update.
4092 (struct flag_option_def): Change default type of Context to bool
4093 from int.
4094 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4095 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4096 (get_setshow_command_value_string): Likewise.
4097 * cli/cli-style.c (cli_styling): Change to bool.
4098 (source_styling): Likewise.
4099 * cli/cli-style.h (source_styling): Likewise.
4100 (cli_styling): Likewise.
4101 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4102 to bool.
4103 * command.h (var_types): Update comment.
4104 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4105 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4106 bool.
4107 (debug_compile_cplus_scopes): Likewise.
4108 * compile/compile-internal.h (compile_debug): Likewise.
4109 * compile/compile.c (compile_debug): Likewise.
4110 (struct compile_options) <raw>: Likewise.
4111 * cp-support.c (catch_demangler_crashes): Likewise.
4112 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4113 (usr_cmd_cris_dwarf2_cfi): Likewise.
4114 * csky-tdep.c (csky_debug): Likewise.
4115 * darwin-nat.c (enable_mach_exceptions): Likewise.
4116 * dcache.c (dcache_enabled_p): Likewise.
4117 * defs.h (info_verbose): Likewise.
4118 * demangle.c (demangle): Likewise.
4119 (asm_demangle): Likewise.
4120 * dwarf-index-cache.c (debug_index_cache): Likewise.
4121 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4122 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4123 * dwarf2read.c (check_physname): Likewise.
4124 (use_deprecated_index_sections): Likewise.
4125 (dwarf_always_disassemble): Likewise.
4126 * eval.c (overload_resolution): Likewise.
4127 * event-top.c (set_editing_cmd_var): Likewise.
4128 (exec_done_display_p): Likewise.
4129 * event-top.h (set_editing_cmd_var): Likewise.
4130 (exec_done_display_p): Likewise.
4131 * exec.c (write_files): Likewise.
4132 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4133 (debug_fbsd_nat): Likewise.
4134 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4135 Likewise.
4136 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4137 <backtrace_past_entry> Likewise.
4138 * gdb-demangle.h (demangle): Likewise.
4139 (asm_demangle): Likewise.
4140 * gdb_bfd.c (bfd_sharing): Likewise.
4141 * gdbcore.h (write_files): Likewise.
4142 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4143 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4144 * gdbthread.h (print_thread_events): Likewise.
4145 * gdbtypes.c (opaque_type_resolution): Likewise.
4146 (strict_type_checking): Likewise.
4147 * gnu-nat.c (gnu_debug_flag): Likewise.
4148 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4149 * guile/scm-param.c (pascm_variable): Add boolval.
4150 (add_setshow_generic): Update.
4151 (pascm_param_value): Update.
4152 (pascm_set_param_value_x): Update.
4153 * hppa-tdep.c (hppa_debug): Change to bool..
4154 * infcall.c (may_call_functions_p): Likewise.
4155 (coerce_float_to_double_p): Likewise.
4156 (unwind_on_signal_p): Likewise.
4157 (unwind_on_terminating_exception_p): Likewise.
4158 * infcmd.c (startup_with_shell): Likewise.
4159 * inferior.c (print_inferior_events): Likewise.
4160 * inferior.h (startup_with_shell): Likewise.
4161 (print_inferior_events): Likewise.
4162 * infrun.c (step_stop_if_no_debug): Likewise.
4163 (detach_fork): Likewise.
4164 (debug_displaced): Likewise.
4165 (disable_randomization): Likewise.
4166 (non_stop): Likewise.
4167 (non_stop_1): Likewise.
4168 (observer_mode): Likewise.
4169 (observer_mode_1): Likewise.
4170 (set_observer_mode): Update.
4171 (sched_multi): Change to bool.
4172 * infrun.h (debug_displaced): Likewise.
4173 (sched_multi): Likewise.
4174 (step_stop_if_no_debug): Likewise.
4175 (non_stop): Likewise.
4176 (disable_randomization): Likewise.
4177 * linux-tdep.c (use_coredump_filter): Likewise.
4178 (dump_excluded_mappings): Likewise.
4179 * linux-thread-db.c (auto_load_thread_db): Likewise.
4180 (check_thread_db_on_load): Likewise.
4181 * main.c (captured_main_1): Update.
4182 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4183 xx2_opt, boolean_opt>: Change to bool.
4184 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4185 * maint.c (maintenance_profile_p): Likewise.
4186 (per_command_time): Likewise.
4187 (per_command_space): Likewise.
4188 (per_command_symtab): Likewise.
4189 * memattr.c (inaccessible_by_default): Likewise.
4190 * mi/mi-main.c (mi_async): Likewise.
4191 (mi_async_1): Likewise.
4192 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4193 * nat/fork-inferior.h (startup_with_shell): Likewise.
4194 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4195 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4196 * nios2-tdep.c (nios2_debug): Likewise.
4197 * or1k-tdep.c (or1k_debug): Likewise.
4198 * parse.c (parser_debug): Likewise.
4199 * parser-defs.h (parser_debug): Likewise.
4200 * printcmd.c (print_symbol_filename): Likewise.
4201 * proc-api.c (procfs_trace): Likewise.
4202 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4203 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4204 (set_parameter_value): Update.
4205 (add_setshow_generic): Update.
4206 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4207 to bool*.
4208 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4209 int*.
4210 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4211 * record-btrace.c (record_btrace_target::store_registers): Update.
4212 * record-full.c (record_full_memory_query): Change to bool.
4213 (record_full_stop_at_limit): Likewise.
4214 * record-full.h (record_full_memory_query): Likewise.
4215 * remote-notif.c (notif_debug): Likewise.
4216 * remote-notif.h (notif_debug): Likewise.
4217 * remote.c (use_range_stepping): Likewise.
4218 (interrupt_on_connect): Likewise.
4219 (remote_break): Likewise.
4220 * ser-tcp.c (tcp_auto_retry): Likewise.
4221 * ser-unix.c (serial_hwflow): Likewise.
4222 * skip.c (debug_skip): Likewise.
4223 * solib-aix.c (solib_aix_debug): Likewise.
4224 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4225 (spu_auto_flush_cache_p): Likewise.
4226 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4227 Likewise.
4228 (struct info_print_options) <quiet>: Likewise.
4229 * symfile-debug.c (debug_symfile): Likewise.
4230 * symfile.c (auto_solib_add): Likewise.
4231 (separate_debug_file_debug): Likewise.
4232 * symfile.h (auto_solib_add): Likewise.
4233 (separate_debug_file_debug): Likewise.
4234 * symtab.c (basenames_may_differ): Likewise.
4235 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4236 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4237 (struct info_types_options) <quiet>: Likewise.
4238 * symtab.h (demangle): Likewise.
4239 (basenames_may_differ): Likewise.
4240 * target-dcache.c (stack_cache_enabled_1): Likewise.
4241 (code_cache_enabled_1): Likewise.
4242 * target.c (trust_readonly): Likewise.
4243 (may_write_registers): Likewise.
4244 (may_write_memory): Likewise.
4245 (may_insert_breakpoints): Likewise.
4246 (may_insert_tracepoints): Likewise.
4247 (may_insert_fast_tracepoints): Likewise.
4248 (may_stop): Likewise.
4249 (auto_connect_native_target): Likewise.
4250 (target_stop_and_wait): Update.
4251 (target_async_permitted): Change to bool.
4252 (target_async_permitted_1): Likewise.
4253 (may_write_registers_1): Likewise.
4254 (may_write_memory_1): Likewise.
4255 (may_insert_breakpoints_1): Likewise.
4256 (may_insert_tracepoints_1): Likewise.
4257 (may_insert_fast_tracepoints_1): Likewise.
4258 (may_stop_1): Likewise.
4259 * target.h (target_async_permitted): Likewise.
4260 (may_write_registers): Likewise.
4261 (may_write_memory): Likewise.
4262 (may_insert_breakpoints): Likewise.
4263 (may_insert_tracepoints): Likewise.
4264 (may_insert_fast_tracepoints): Likewise.
4265 (may_stop): Likewise.
4266 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4267 (make_thread_apply_all_options_def_group): Change argument from int*
4268 to bool*.
4269 (thread_apply_all_command): Update.
4270 (print_thread_events): Change to bool.
4271 * top.c (confirm): Likewise.
4272 (command_editing_p): Likewise.
4273 (history_expansion_p): Likewise.
4274 (write_history_p): Likewise.
4275 (info_verbose): Likewise.
4276 * top.h (confirm): Likewise.
4277 (history_expansion_p): Likewise.
4278 * tracepoint.c (disconnected_tracing): Likewise.
4279 (circular_trace_buffer): Likewise.
4280 * typeprint.c (print_methods): Likewise.
4281 (print_typedefs): Likewise.
4282 * utils.c (debug_timestamp): Likewise.
4283 (sevenbit_strings): Likewise.
4284 (pagination_enabled): Likewise.
4285 * utils.h (sevenbit_strings): Likewise.
4286 (pagination_enabled): Likewise.
4287 * valops.c (overload_resolution): Likewise.
4288 * valprint.h (struct value_print_options) <prettyformat_arrays,
4289 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4290 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4291 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4292 Likewise.
4293 * windows-nat.c (new_console): Likewise.
4294 (cygwin_exceptions): Likewise.
4295 (new_group): Likewise.
4296 (debug_exec): Likewise.
4297 (debug_events): Likewise.
4298 (debug_memory): Likewise.
4299 (debug_exceptions): Likewise.
4300 (useshell): Likewise.
4301 * windows-tdep.c (maint_display_all_tib): Likewise.
4302 * xml-support.c (debug_xml): Likewise.
4303
f1b620e9
MG
43042019-09-17 Mike Gulick <mgulick@mathworks.com>
4305
4306 * source.c (prepare_path_for_appending): New function.
4307 (openp): Make use of new function.
4308 (find_and_open_source): Search for the compilation directory and
4309 source file as a relative path beneath the directory search path.
4310
67f3ed6a
AB
43112019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4312
4313 * source-cache.c (source_cache::get_line_charpos): Catch
4314 exceptions and return false, this matches the behaviour documented
4315 in the header file.
4316
74332189
JB
43172019-09-17 Joel Brobecker <brobecker@adacore.com>
4318
4319 * ada-tasks.c (info_task): Remove quoting of the task's name.
4320
f2f24aa9
CB
43212019-09-16 Christian Biesinger <cbiesinger@google.com>
4322
4323 * symfile.c (auto_solib_add): Replace comment with a reference
4324 to the header file.
4325
6a062a93
CB
43262019-09-14 Christian Biesinger <cbiesinger@google.com>
4327
4328 * NEWS: Mention that gdb can now be compiled with Python 3
4329 on Windows.
4330
ec6c8338
AB
43312019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4332
4333 * maint.c (maint_print_section_data::maint_print_section_data):
4334 Force use of 'float log10 (float)' by casting the argument to
4335 float.
4336
aa17805f
AB
43372019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4338
4339 * maint.c: Add 'cmath' include.
4340 (struct maint_print_section_data): New structure.
4341 (print_section_index): New function.
4342 (print_bfd_section_info): Add header comment, small whitespace
4343 cleanup, and update to call new print_section_index function.
4344 (print_objfile_section_info): Likewise.
4345 (maint_obj_section_from_bfd_section): New function.
4346 (print_bfd_section_info_maybe_relocated): New function.
4347 (maintenance_info_sections): Add header comment, always use
4348 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4349
3dd9bb46
AB
43502019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4351
4352 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4353 inner scope, add check that the objfile has psymtabs before
4354 checking psymtabs_addrmap.
4355 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4356
4993045d
PW
43572019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4358
4359 * NEWS: Announce that Ada task names are now shown at more places,
4360 and between quotes (except in info task output).
4361 * gdb/ada-tasks.c (task_to_str): New function.
4362 (display_current_task_id): Call task_to_str.
4363 (task_command_1): Likewise.
4364 (print_ada_task_info): In non-mi mode, Properly align headers and data
4365 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4366
7a289707
RO
43672019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4368
4369 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4370 prstatus.pr_lwp.pr_info instead of making it up.
4371
f2aec7f6
CB
43722019-09-11 Christian Biesinger <cbiesinger@google.com>
4373
4374 * auto-load.c (auto_load_expand_dir_vars): Update.
4375 * defs.h (gdb_datadir): Change to std::string.
4376 (python_libdir): Likewise.
4377 (relocate_gdb_directory): Change return type to std::string.
4378 * guile/guile.c (gdbscm_data_directory): Update.
4379 (initialize_scheme_side): Update.
4380 * jit.c (jit_reader_dir): Change to std::string.
4381 (jit_reader_load_command): Update.
4382 * main.c (gdb_datadir): Change to std::string.
4383 (python_libdir): Likewise.
4384 (set_gdb_data_directory): Update.
4385 (relocate_path): Change to return std::string.
4386 (relocate_gdb_directory): Change to return std::string.
4387 (relocate_gdbinit_path_maybe_in_datadir): Update.
4388 (captured_main_1): Update.
4389 * python/python.c (do_start_initialization): Update.
4390 * top.c (show_gdb_datadir): Update.
4391 * xml-syscall.c (xml_init_syscalls_info): Update.
4392 (init_syscalls_info): Update.
4393
9224a013
CB
43942019-09-11 Christian Biesinger <cbiesinger@google.com>
4395
4396 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4397 out of get_init_files.
4398 (get_init_files): Update.
4399
f48cd836
CB
44002019-09-11 Christian Biesinger <cbiesinger@google.com>
4401
4402 * main.c (get_init_files): Change to use std::string.
4403 (captured_main_1): Update.
4404 (print_gdb_help): Update.
4405
9cab7ecd
AT
44062019-09-11 Ali Tamur <tamur@google.com>
4407
4408 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4409 implementation.
4410
67547d89
CB
44112019-09-11 Christian Biesinger <cbiesinger@google.com>
4412
4413 * dbxread.c (read_dbx_symtab): Update.
4414 * dwarf2read.c (load_partial_dies): Update.
4415 * mdebugread.c (parse_partial_symbols): Update.
4416 (handle_psymbol_enumerators): Update.
4417 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4418 * psymtab.c (add_psymbol_to_bcache): Likewise.
4419 (add_psymbol_to_list): Likewise.
4420 * symtab.c (symbol_set_names): Likewise.
4421 * symtab.h (symbol_set_names): Likewise.
4422 * xcoffread.c (scan_xcoff_symtab): Update.
4423
64b2d4a0
TT
44242019-09-11 Tom Tromey <tom@tromey.com>
4425
4426 * symfile-mem.c (symbol_file_add_from_memory): Use
4427 bfd_set_filename.
4428 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4429 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4430
3b00ef10
TT
44312019-09-10 Tom Tromey <tromey@adacore.com>
4432
4433 * dwarf-index-write.c (write_psymbols): Extend error message.
4434 (debug_names::insert): Add Ada code.
4435 (debug_names::write_psymbols): Remove Ada check.
4436 (debug_names) <m_string_obstack>: New member.
4437 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4438 (gdb_index_symbol_name_matcher::matches): Remove.
4439 (mapped_index_base::find_name_components_bounds): Add "lang"
4440 parameter.
4441 (mapped_index_base::build_name_components): Also split names
4442 according to Ada syntax.
4443 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4444 type of "match_callback".
4445 (check_match, check_find_bounds_finds)
4446 (dw2_expand_symtabs_matching): Update.
4447 (dw2_debug_names_iterator): Add new constructor.
4448 (dw2_debug_names_map_matching_symbols): New function.
4449 (dw2_debug_names_expand_symtabs_matching): Update.
4450 (dwarf2_debug_names_functions): Use
4451 dw2_debug_names_map_matching_symbols.
4452
aa391654
TT
44532019-09-10 Tom Tromey <tromey@adacore.com>
4454
4455 * dwarf2read.c (dw2_get_file_names_reader): Add the
4456 CU's file name to the results.
4457
b054970d
TT
44582019-09-10 Tom Tromey <tromey@adacore.com>
4459
4460 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4461 map_matching_symbols. Update.
4462 * dwarf2read.c (dw2_map_matching_symbols): Update.
4463 * psymtab.c (match_partial_symbol): Change type; update.
4464 (psym_map_matching_symbols): Likewise.
4465 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4466 type; update.
4467 * symfile.h (struct quick_symbol_functions)
4468 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4469 Remove "match".
4470
6a3dbf1b
TT
44712019-09-10 Tom Tromey <tromey@adacore.com>
4472
4473 * psymtab.c (map_block): Remove.
4474 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4475 * symtab.c (iterate_over_symbols_terminated): New function.
4476 * symtab.c (iterate_over_symbols_terminated): Declare.
4477
6969f124
TT
44782019-09-10 Tom Tromey <tromey@adacore.com>
4479
4480 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4481 * language.h (struct language_defn) <la_iterate_over_symbols>:
4482 Return bool.
4483 * symtab.c (iterate_over_symbols): Return bool.
4484 * symtab.h (iterate_over_symbols): Return bool.
4485
199b4314
TT
44862019-09-10 Tom Tromey <tromey@adacore.com>
4487
4488 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4489 (add_nonlocal_symbols): Update.
4490 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4491 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4492 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4493 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4494 Change type of "callback". Remove "data".
4495
a084a2a6
AT
4496
44972019-09-09 Ali Tamur <tamur@google.com>
4498
4499 * dwarf2read.c (comp_unit_head): Update comment.
4500 (dwarf2_dwo_name): New function declaration.
4501 (dwarf_unit_type_name): New function declaration.
4502 (read_comp_unit_head): Add support for new compilation units,
4503 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4504 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4505 (currently named as "signature") in their header. Also clarify error
4506 messages.
4507 (lookup_dwo_id): New function. Returns the dwo id of the given
4508 compile unit.
4509 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4510 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4511 functions.
4512 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4513 (dwarf2_dwo_name): Get the dwo name if present.
4514 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4515 purposes.
4516
25a2915e
TT
45172019-09-09 Tom Tromey <tom@tromey.com>
4518
4519 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4520
e4df0874
PW
45212019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4522
4523 * python/python.c (do_start_initialization): Make progname_copy static,
4524 to avoid a leak report.
4525
8634b462
TT
45262019-09-08 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4529
c7f839cb
SM
45302019-09-07 Simon Marchi <simon.marchi@efficios.com>
4531
4532 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4533 Change type to gdb::optional<block_enum>.
4534 (dw2_symtab_iter_init): Change block_index parameter type
4535 to gdb::optional<block_enum>.
4536 (dw2_lookup_symbol): Change block_index parameter
4537 type to block_enum.c
4538 (dw2_debug_names_lookup_symbol): Likewise.
4539 * psymtab.c (psym_lookup_symbol): Likewise.
4540 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4541 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4542 Likewise.
4543
ead0e69a
CB
45442019-09-06 Christian Biesinger <cbiesinger@google.com>
4545
4546 * defs.h (relocate_gdb_directory): Change int to bool in
4547 signature and rename flag to relocatable.
4548 * main.c (relocate_path): Likewise.
4549 (relocate_gdb_directory): Likewise.
4550
b16c44de
AM
45512019-09-06 Alan Modra <amodra@gmail.com>
4552
4553 * coffread.c (coff_symfile_read): Constify filename variable.
4554 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4555 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4556 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4557 * solib.c (reload_shared_libraries_1): Likewise.
4558 * symfile.c (reread_symbols): Likewise.
4559 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4560 * solib-darwin.c (darwin_bfd_open): Likewise.
4561 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4562
06ff036e
AB
45632019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4566 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4567
4e962e74
TT
45682019-09-03 Tom Tromey <tromey@adacore.com>
4569
4570 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4571 types.
4572 (has_negatives): Unbias a range type bound.
4573 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4574 * gdbtypes.c (operator==): Handle new field.
4575 (create_range_type): Add "bias" parameter.
4576 (create_static_range_type, resolve_dynamic_range): Update.
4577 * gdbtypes.h (struct range_bounds) <bias>: New member.
4578 (create_range_type): Add bias parameter.
4579 * printcmd.c (print_scalar_formatted): Unbias range types.
4580 * value.c (unpack_long): Unbias range types.
4581 (pack_long): Bias range types.
4582
d90b8f26
AH
45832019-09-02 Alan Hayward <alan.hayward@arm.com>
4584
4585 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4586 probe arguments.
4587
fe01123e
AH
45882019-09-02 Alan Hayward <alan.hayward@arm.com>
4589
4590 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4591 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4592 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4593 (compile_probe_arg): Likewise.
4594 * probe.h (get_argument_count): Likewise.
4595 * solib-svr4.c (solib_event_probe_action): Likewise.
4596 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4597
e661ef01
AH
45982019-09-02 Alan Hayward <alan.hayward@arm.com>
4599
4600 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4601 code to here...
4602 (svr4_create_solib_event_breakpoints): ...from here.
4603
47a536d9
SDJ
46042019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4605
4606 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4607 suffix from warning message.
4608
d6a00eba
TT
46092019-08-30 Tom Tromey <tom@tromey.com>
4610
4611 * tui/tui-winsource.h (struct tui_source_window_base)
4612 <refresh_all>: Don't declare.
4613 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4614 Remove.
4615 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4616 tui_show_locator_content.
4617 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4618 declare.
4619 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4620 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4621 declare.
4622
55b2657b
TT
46232019-08-30 Tom Tromey <tom@tromey.com>
4624
4625 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4626
12a8555a
TT
46272019-08-30 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4630 Remove unnecessary forward declarations.
4631
900ac242
TT
46322019-08-30 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4635 rerender.
4636 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4637 tui_show_locator_content.
4638
99ab33fb
TT
46392019-08-30 Tom Tromey <tom@tromey.com>
4640
4641 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4642 (tui_locator_window::rerender): Rewrite using body of previous
4643 tui_show_locator_content.
4644
e594a5d1
TT
46452019-08-30 Tom Tromey <tom@tromey.com>
4646
4647 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4648 set_locator_fullname>: New methods.
4649 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4650 Rename from tui_set_locator_fullname.
4651 (tui_locator_window::set_locator_info): Rename from
4652 tui_set_locator_info. Return bool.
4653 (tui_update_locator_fullname, tui_show_frame_info): Update.
4654
715bb467
TT
46552019-08-30 Tom Tromey <tom@tromey.com>
4656
4657 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4658
772f3f03
TT
46592019-08-30 Tom Tromey <tom@tromey.com>
4660
4661 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4662 call touchwin.
4663
108e13ab
TT
46642019-08-30 Tom Tromey <tom@tromey.com>
4665
4666 * tui/tui-wingeneral.c (box_win): Assume win_info and
4667 win_info->handle cannot be NULL.
4668
cdaa6eb4
TT
46692019-08-30 Tom Tromey <tom@tromey.com>
4670
4671 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4672 refresh_window>: Declare.
4673 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4674 resize.
4675 (tui_data_item_window::rerender): Rename from
4676 tui_display_register.
4677 (tui_data_item_window::refresh_window): New method.
4678 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4679 no-op.
4680
89df7f90
TT
46812019-08-30 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4684 regs_column_count, current_group>: Move later. Now private.
4685 <get_current_group>: New method.
4686 * tui/tui-regs.c (tui_reg_command): Update.
4687 * tui/tui-layout.c (tui_set_layout): Update.
4688
1bf2866a
TT
46892019-08-30 Tom Tromey <tom@tromey.com>
4690
4691 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4692 (tui_data_window::rerender): Don't call
4693 check_and_display_highlight_if_needed.
4694 (tui_data_window::refresh_all): Remove call to
4695 erase_data_content.
4696
0670413d
TT
46972019-08-30 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4700 (tui_data_window::display_registers_from)
4701 (tui_data_window::display_reg_element_at_line)
4702 (tui_data_window::display_registers_from_line): Remove checks of
4703 "empty".
4704
18bb55c7
TT
47052019-08-30 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4708 Don't declare.
4709 * tui/tui-regs.c (tui_data_window::show_registers): Call
4710 rerender.
4711 (tui_data_window::rerender): Rename from display_all_data.
4712 (tui_data_window::rerender): Remove old implementation.
4713
1f6d2f10
TT
47142019-08-30 Tom Tromey <tom@tromey.com>
4715
4716 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4717 text.
4718 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4719
16d01f9c
BW
47202019-08-29 Bernhard Wodok <barto@gmx.net>
4721 Sergio Durigan Junior <sergiodj@redhat.com>
4722
4723 PR win32/24284
4724 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4725
d8f27c60
AB
47262019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4727
4728 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4729 when searching for types.
4730
1f20c35e
AB
47312019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4732
4733 * f-lang.c (f_language_defn): Use f_print_typedef.
4734 * f-lang.h (f_print_typedef): Declare.
4735 * f-typeprint.c (f_print_typedef): Define.
4736
550105b7
CB
47372019-08-27 Christian Biesinger <cbiesinger@google.com>
4738
4739 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4740
4acfdd20
AB
47412019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4742
4743 * cli/cli-utils.c (info_print_options_defs): Delete.
4744 (make_info_print_options_def_group): Delete.
4745 (extract_info_print_options): Delete.
4746 (info_print_command_completer): Delete.
4747 (info_print_args_help): Add extra parameter, and optionally
4748 include text about -n flag.
4749 * cli/cli-utils.h (struct info_print_options): Delete.
4750 (extract_info_print_options): Delete declaration.
4751 (info_print_command_completer): Delete declaration.
4752 (info_print_args_help): Add extra parameter, extend header
4753 comment.
4754 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4755 search_symbols.
4756 * stack.c (struct info_print_options): New type.
4757 (info_print_options_defs): New file scoped variable.
4758 (make_info_print_options_def_group): New static function.
4759 (info_print_command_completer): New static function.
4760 (info_locals_command): Update to use new local functions.
4761 (info_args_command): Likewise.
4762 (_initialize_stack): Add extra parameter to calls to
4763 info_print_args_help.
4764 * symtab.c (search_symbols): Add extra parameter, use this to
4765 possibly excluse non-debug symbols.
4766 (symtab_symbol_info): Add extra parameter, which is passed on to
4767 search_symbols.
4768 (struct info_print_options): New type.
4769 (info_print_options_defs): New file scoped variable.
4770 (make_info_print_options_def_group): New static function.
4771 (info_print_command_completer): New static function.
4772 (info_variables_command): Update to use local functions, and pass
4773 extra parameter through to symtab_symbol_info.
4774 (info_functions_command): Likewise.
4775 (info_types_command): Pass additional argument through to
4776 symtab_symbol_info.
4777 (rbreak_command): Pass extra argument to search_symbols.
4778 (_initialize_symtab): Add extra arguments for calls to
4779 info_print_args_help, and update help text for 'info variables',
4780 'whereis', and 'info functions' commands.
4781 * symtab.h (search_symbols): Add extra argument to declaration.
4782 * NEWS: Mention new flags.
4783
9aa55206
CB
47842019-08-26 Christian Biesinger <cbiesinger@google.com>
4785
4786 * symtab.c (lookup_static_symbol): Call the new function (and move
4787 it down to be next to lookup_global_symbol).
4788 (struct global_sym_lookup_data): Add block_enum member and rename to...
4789 (struct global_or_static_sym_lookup_data): ...this.
4790 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4791 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4792 (lookup_symbol_global_or_static_iterator_cb): ...this.
4793 (lookup_global_or_static_symbol): New function.
4794 (lookup_global_symbol): Call new function.
4795
5c31b358
TV
47962019-08-26 Tom de Vries <tdevries@suse.de>
4797
4798 PR c++/24852
4799 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4800 when pc_probe.prob == NULL.
4801
23c13d42
SM
48022019-08-25 Simon Marchi <simon.marchi@efficios.com>
4803
4804 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4805 variable symbol_linkage to symbol_linkage_.
4806
beadd3e8
SM
48072019-08-25 Simon Marchi <simon.marchi@efficios.com>
4808
4809 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4810 represent whether the symbol is static, dynamic, or we don't
4811 know.
4812
e3ec872f
YS
48132019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4814
4815 * gdb/rx-tdep.c (rx_register_names): New.
4816 (rx_register_name): Delete.
4817 (rx_psw_type): Delete.
4818 (rx_fpsw_type): Delete.
4819 (rx_register_type): Delete.
4820 (rx_gdbarch_init): Convert target-descriptions.
4821 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4822 * gdb/features/Makefile: Add rx.xml.
4823 * gdb/features/rx.xml: New.
4824 * gdb/features/rx.c: Generated.
4825 * gdb/NEWS: Mention target description support.
4826
d0509ba4
CB
48272019-08-22 Christian Biesinger <cbiesinger@google.com>
4828
4829 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4830 *slot_ptr.
4831
2d41fa11
SDJ
48322019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4833
4834 * configure.ac: Don't check for 'dlfcn.h' (moved to
4835 gdbsupport/common.m4).
4836 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4837 'gdbsupport/'.
4838 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4839 * compile/compile-c-support.c: Include
4840 'gdbsupport/gdb-dlfcn.h'.
4841 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4842 * gdb-dlfcn.c: Move to...
4843 * gdbsupport/gdb-dlfcn.c: ... here.
4844 * gdb-dlfcn.h: Move to...
4845 * gdbsupport/gdb-dlfcn.h: ... here.
4846
de8af808
SL
48472019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4848
4849 * nios2-tdep.c (struct reg_value): Improve comments. Make
4850 the offset field signed.
4851
27204489
CB
48522019-08-22 Christian Biesinger <cbiesinger@google.com>
4853
4854 * python/lib/gdb/__init__.py (_execute_file): New function.
4855 * python/python.c (python_run_simple_file): Call gdb._execute_file
4856 on Windows.
4857
43771869
AB
48582019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4859
4860 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4861 all uses as this was never set to anything but a zero value.
4862
26c957f1
PA
48632019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4864
4865 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4866
c07aae6e
CB
48672019-08-21 Christian Biesinger <cbiesinger@google.com>
4868
4869 * tui/tui-data.h (tui_gen_win_info): Add an =default
4870 move constructor, required by some GCC versions.
4871
3960cb7a
JF
48722019-08-21 Jinke Fan <fanjinke51@yeah.net>
4873
4874 * go32-nat.c (go32_sysinfo): Add hygon_p.
4875
04c72a68
TT
48762019-08-20 Tom Tromey <tom@tromey.com>
4877
4878 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4879 line_from_reg_element_no, first_reg_element_no_inline,
4880 display_all_data, delete_data_content_windows,
4881 erase_data_content>: Now private.
4882
072272ce
TT
48832019-08-20 Tom Tromey <tom@tromey.com>
4884
4885 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4886 (tui_unhighlight_win, tui_highlight_win)
4887 (tui_win_info::make_window): Update.
4888 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4889
973961bd
TT
48902019-08-20 Tom Tromey <tom@tromey.com>
4891
4892 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4893 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4894 (MAX_PID_WIDTH): Move to tui-stack.c.
4895 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4896 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4897 (MAX_PID_WIDTH): Move from tui-data.h.
4898
ab0e1f1a
TT
48992019-08-20 Tom Tromey <tom@tromey.com>
4900
4901 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4902 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4903 (box_win): Update.
4904 (tui_gen_win_info::make_window): Rename from tui_make_window.
4905 (tui_win_info::make_window): New method.
4906 (tui_gen_win_info::make_visible): Update.
4907 * tui/tui-source.c (tui_source_window::set_contents): Update.
4908 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4909 (tui_data_window::display_registers_from): Update.
4910 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4911 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4912 Declare.
4913 <can_box>: Remove.
4914 <title>: Remove.
4915 (struct tui_win_info) <make_window>: Declare.
4916 <can_box>: Now virtual.
4917 <title>: New member.
4918 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4919 * tui/tui-command.c (tui_cmd_window::resize): Update.
4920
100c2bf3
TT
49212019-08-20 Tom Tromey <tom@tromey.com>
4922
4923 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4924 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4925 (tui_data_window::check_register_values): Update.
4926
fa4dc567
TT
49272019-08-20 Tom Tromey <tom@tromey.com>
4928
4929 * tui/tui-regs.h (struct tui_data_window): Use
4930 DISABLE_COPY_AND_ASSIGN.
4931 <regs_content>: Change type, removing unique_ptr.
4932 <tui_data_window>: Add move constructor.
4933 * tui/tui-regs.c (tui_data_window::show_registers)
4934 (tui_data_window::show_register_group)
4935 (tui_data_window::display_registers_from)
4936 (tui_data_window::display_registers_from)
4937 (tui_data_window::first_data_item_displayed)
4938 (tui_data_window::delete_data_content_windows)
4939 (tui_data_window::rerender, tui_data_window::refresh_window)
4940 (tui_data_window::check_register_values): Update.
4941
ca02d7c8
TT
49422019-08-20 Tom Tromey <tom@tromey.com>
4943
4944 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4945 show_register_group>: Declare.
4946 (tui_show_register_group): Don't declare.
4947 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4948 tui_show_registers.
4949 (tui_data_window::show_register_group): Rename from
4950 tui_show_register_group.
4951 (tui_data_window::check_register_values, tui_reg_command):
4952 Update.
4953 * tui/tui-layout.c (tui_set_layout): Update.
4954
63356bfd
TT
49552019-08-20 Tom Tromey <tom@tromey.com>
4956
4957 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4958 Declare.
4959 (tui_check_register_values): Don't declare.
4960 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4961 from tui_check_register_values.
4962 * tui/tui-hooks.c (tui_register_changed): Update.
4963
42cc14a7
TT
49642019-08-20 Tom Tromey <tom@tromey.com>
4965
4966 * tui/tui-regs.c (tui_reg_layout): Move later.
4967 (tui_show_registers): Don't enable TUI mode or change layout.
4968
b9ad3686
TT
49692019-08-20 Tom Tromey <tom@tromey.com>
4970
4971 * tui/tui-regs.h (struct tui_data_item_window)
4972 <~tui_data_item_window>: Remove.
4973 <content>: Now a unique_xmalloc_ptr.
4974 * tui/tui-regs.c (tui_register_format): Return a
4975 unique_xmalloc_ptr.
4976 (tui_get_register): Update.
4977 (~tui_data_item_window): Remove.
4978 (tui_data_window::display_registers_from, tui_display_register):
4979 Update.
4980 * tui/tui-io.h (tui_expand_tabs): Update.
4981 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4982 Remove "col" parameter.
4983
8e114aab
TT
49842019-08-20 Tom Tromey <tom@tromey.com>
4985
4986 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4987 field.
4988 * tui/tui-regs.c (~tui_data_item_window): Update.
4989
1a4f81dd
TT
49902019-08-20 Tom Tromey <tom@tromey.com>
4991
4992 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4993 earlier.
4994
0f8d8876
TT
49952019-08-20 Tom Tromey <tom@tromey.com>
4996
4997 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4998
605dc2c2
TT
49992019-08-20 Tom Tromey <tom@tromey.com>
5000
5001 * tui/tui-source.h (struct tui_source_window): Update.
5002 * tui/tui-regs.c (tui_show_registers): Update.
5003 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5004 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5005 (NO_REGS_STRING): Remove defines.
5006
aedbe3bb
CM
50072019-08-20 Conrad Meyer <cem@FreeBSD.org>
5008
5009 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5010 unnecessary thread walk if remote doesn't support the packet.
5011
7ce8f214
TT
50122019-08-19 Tom Tromey <tromey@adacore.com>
5013
5014 * python/py-value.c (value_has_field): Fix indentation.
5015
f21c2bd7
TT
50162019-08-19 Tom Tromey <tromey@adacore.com>
5017
5018 * printcmd.c (do_one_display, info_display_command): Update.
5019 * block.h (contained_in): Return bool. Add allow_nested
5020 parameter.
5021 * block.c (contained_in): Return bool. Add allow_nested
5022 parameter.
5023
d806ea2d
TT
50242019-08-19 Tom Tromey <tom@tromey.com>
5025
5026 * configure: Rebuild.
5027 * configure.ac: Disallow the combination of -static-libstdc++ and
5028 source highlight.
5029 * source-cache.c (get_language_name): Handle rust.
5030 (source_cache::get_source_lines): Ignore highlighting exceptions.
5031
398fdd60
TT
50322019-08-16 Tom Tromey <tom@tromey.com>
5033
5034 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5035 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5036 (struct tui_source_window_base) <make_visible, refresh_window,
5037 resize>: Remove methods.
5038 <execution_info>: Remove field.
5039 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5040 (tui_show_source_line, tui_source_window_base)
5041 (~tui_source_window_base): Update.
5042 (tui_source_window_base::resize)
5043 (tui_source_window_base::make_visible)
5044 (tui_source_window_base::refresh_window): Remove.
5045 (tui_source_window_base::update_exec_info): Update.
5046 * tui/tui-source.c (tui_source_window::set_contents): Update.
5047 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5048
e699d331
TT
50492019-08-16 Tom Tromey <tom@tromey.com>
5050
5051 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5052 deprecated_query_hook.
5053
bb01dbfc
TT
50542019-08-16 Tom Tromey <tom@tromey.com>
5055
5056 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5057 (tui_update_source_windows_with_line): Update.
5058 * tui/tui-source.h (struct tui_source_window)
5059 <show_symtab_source>: Declare.
5060 (tui_show_symtab_source): Don't declare.
5061 * tui/tui-source.c (tui_show_symtab_source): Rename from
5062 tui_show_symtab_source.
5063
81c82c4b
TT
50642019-08-16 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-winsource.h (struct tui_source_window_base)
5067 <set_contents>: Declare.
5068 * tui/tui-winsource.c
5069 (tui_source_window_base::update_source_window_as_is): Update.
5070 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5071 Declare.
5072 (tui_set_source_content): Don't declare.
5073 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5074 tui_set_source_content.
5075 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5076 Declare.
5077 (tui_set_disassem_content): Don't declare.
5078 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5079 tui_set_disassem_content.
5080
2ddaf614
TT
50812019-08-16 Tom Tromey <tom@tromey.com>
5082
5083 * tui/tui-winsource.h (struct tui_source_window_base)
5084 <update_breakpoint_info>: Declare.
5085 (tui_update_breakpoint_info): Don't declare.
5086 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5087 (tui_update_all_breakpoint_info): Update.
5088 (tui_source_window_base::update_breakpoint_info): Rename from
5089 tui_update_breakpoint_info.
5090 (tui_source_window_base::update_exec_info): Update.
5091
017f9828
TT
50922019-08-16 Tom Tromey <tom@tromey.com>
5093
5094 * tui/tui-winsource.h (struct tui_source_window_base)
5095 <update_source_window>: Declare.
5096 (tui_update_source_window): Don't declare.
5097 * tui/tui-winsource.c
5098 (tui_source_window_base::update_source_window): Rename from
5099 tui_update_source_window.
5100 (tui_source_window_base::rerender): Update.
5101 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5102 * tui/tui-disasm.c (tui_show_disassem)
5103 (tui_show_disassem_and_update_source)
5104 (tui_disasm_window::maybe_update): Update.
5105
ed8358e9
TT
51062019-08-16 Tom Tromey <tom@tromey.com>
5107
5108 * tui/tui-winsource.h (struct tui_source_window_base)
5109 <update_source_window_as_is>: Declare.
5110 (tui_update_source_window_as_is): Don't declare.
5111 * tui/tui-winsource.c (tui_update_source_window): Update
5112 (tui_source_window_base::update_source_window_as_is): Rename from
5113 tui_update_source_window_as_is.
5114 (tui_source_window_base::refill): Update.
5115 * tui/tui-source.c (tui_show_symtab_source): Update.
5116 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5117 Update.
5118
20149b6b
TT
51192019-08-16 Tom Tromey <tom@tromey.com>
5120
5121 * tui/tui-winsource.h (tui_update_source_window)
5122 (tui_update_source_window_as_is): Remove "noerror" parameter.
5123 * tui/tui-winsource.c (tui_update_source_window)
5124 (tui_update_source_window_as_is): Remove "noerror" parameter.
5125 (tui_update_source_windows_with_addr)
5126 (tui_update_source_windows_with_line)
5127 (tui_source_window_base::rerender)
5128 (tui_source_window_base::refill): Update.
5129 * tui/tui-source.h (tui_set_source_content)
5130 (tui_show_symtab_source): Remove "noerror" parameter.
5131 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5132 parameter.
5133 (tui_show_symtab_source): Likewise.
5134 (tui_source_window::maybe_update): Update.
5135 * tui/tui-disasm.c (tui_show_disassem)
5136 (tui_show_disassem_and_update_source)
5137 (tui_disasm_window::do_scroll_vertical)
5138 (tui_disasm_window::maybe_update): Update.
5139
2d83e710
TT
51402019-08-16 Tom Tromey <tom@tromey.com>
5141
5142 * tui/tui.c (tui_is_window_visible): Update.
5143 * tui/tui-wingeneral.c (tui_make_window)
5144 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5145 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5146 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5147 (tui_set_win_height_command, parse_scrolling_args): Update.
5148 * tui/tui-source.c (tui_source_window::style_changed): Update.
5149 * tui/tui-regs.c (tui_show_registers)
5150 (tui_data_window::first_data_item_displayed)
5151 (tui_data_window::delete_data_content_windows)
5152 (tui_check_register_values, tui_reg_command): Update.
5153 * tui/tui-disasm.c (tui_show_disassem): Update.
5154 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5155 method.
5156 <is_visible>: Remove field.
5157 * tui/tui-data.c (tui_next_win, tui_prev_win)
5158 (tui_delete_invisible_windows): Update.
5159
d4ab829a
TT
51602019-08-16 Tom Tromey <tom@tromey.com>
5161
5162 * tui/tui-winsource.h (struct tui_source_window_base)
5163 <m_has_locator>: Remove.
5164 * tui/tui-layout.c (show_source_disasm_command, show_data)
5165 (show_source_or_disasm_and_command): Update.
5166
aa7ca1bb
AH
51672019-08-16 Alan Hayward <alan.hayward@arm.com>
5168
5169 * NEWS (Other MI changes): New subsection.
5170 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5171 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5172 * arch-utils.c (default_get_pc_address_flags): New function.
5173 * arch-utils.h (default_get_pc_address_flags): New declaration.
5174 * gdbarch.sh: Add get_pc_address_flags.
5175 * gdbarch.c: Regenerate.
5176 * gdbarch.h: Likewise.
5177 * stack.c (print_pc): New function.
5178 (print_frame_info) (print_frame): Call print_pc.
5179
6eac171f
TV
51802019-08-16 Tom de Vries <tdevries@suse.de>
5181
5182 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5183 print_objfile_section_info.
5184
3df505f6
TT
51852019-08-15 Tom Tromey <tom@tromey.com>
5186
5187 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5188 calling update_cmdwin_start_line.
5189 * tui/tui-winsource.h (struct tui_source_window_base)
5190 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5191 <rerender>: Declare.
5192 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5193 Call rerender.
5194 (tui_source_window_base::set_new_height): Remove.
5195 (tui_source_window_base::rerender): Rename from
5196 do_make_visible_with_new_height.
5197 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5198 resize method.
5199 (tui_win_info::make_invisible_and_set_new_height)
5200 (tui_win_info::make_visible_with_new_height): Remove.
5201 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5202 Declare.
5203 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5204 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5205 do_make_visible_with_new_height>: Don't declare.
5206 <rerender>: Declare.
5207 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5208 set_new_height.
5209 (tui_data_window::do_make_visible_with_new_height): Remove.
5210 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5211 call tui_show_locator_content.
5212 (tui_gen_win_info::resize): Call rerender.
5213 (show_source_or_disasm_and_command): Don't call
5214 tui_show_locator_content.
5215 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5216 method.
5217 (struct tui_win_info) <rerender>: Declare.
5218 <set_new_height, make_invisible_and_set_new_height,
5219 make_visible_with_new_height>: Don't declare.
5220 * tui/tui-data.c (tui_win_list::rerender): New method.
5221 * tui/tui-command.h (struct tui_cmd_window)
5222 <do_make_visible_with_new_height>: Don't declare.
5223 * tui/tui-command.c
5224 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5225
272560b5
TT
52262019-08-15 Tom Tromey <tromey@adacore.com>
5227
5228 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5229 * ada-lang.c (ada_enum_name): Likewise.
5230
08235187
CB
52312019-08-15 Christian Biesinger <cbiesinger@google.com>
5232
5233 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5234 leading underscore.
5235 (GdbOutputErrorFile): Likewise.
5236 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5237 accordingly.
5238 (execute_unwinders): Rename to have a leading underscore.
5239 (auto_load_packages): Likewise.
5240 (global scope): Adjust call to auto_load_packages accordingly.
5241 (GdbSetPythonDirectory): Likewise.
5242 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5243 instead of execute_unwinders.
5244
db502012
TT
52452019-08-15 Tom Tromey <tom@tromey.com>
5246
5247 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5248 (show_data): Don't change window visibility.
5249 (tui_gen_win_info::resize): Remove special case for command
5250 window. Use wresize, when available.
5251 (show_source_or_disasm_and_command): Don't change window
5252 visibility.
5253 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5254 <make_visible>: New method.
5255 * tui/tui-command.c (tui_cmd_window::resize): New method.
5256
3891b65e
TT
52572019-08-15 Tom Tromey <tom@tromey.com>
5258
5259 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5260 (struct tui_source_windows): New.
5261 * tui/tui-winsource.c (tui_display_main): Update.
5262 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5263 (new_height_ok, parse_scrolling_args): Update.
5264 * tui/tui-layout.c (show_layout, show_data): Update.
5265 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5266 (tui_add_to_source_windows): Don't declare.
5267 * tui/tui-data.c (source_windows, tui_source_windows)
5268 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5269
ee556432
TT
52702019-08-15 Tom Tromey <tom@tromey.com>
5271
5272 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5273 Rename from reset.
5274 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5275 * tui/tui-layout.c (show_source_disasm_command, show_data):
5276 Update.
5277 (tui_gen_win_info::resize): Rename.
5278 (show_source_or_disasm_and_command): Update.
5279 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5280 reset.
5281
46f438e3
TT
52822019-08-15 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5285 * tui/tui-interp.c (tui_interp::init): Don't call
5286 tui_initialize_static_data.
5287 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5288
f4ce562c
TT
52892019-08-15 Tom Tromey <tom@tromey.com>
5290
5291 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5292 examine tui_win_list.
5293
c398c3d0
TT
52942019-08-15 Tom Tromey <tom@tromey.com>
5295
5296 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5297 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5298 tui_clear_source_content.
5299 (tui_clear_source_content): Remove.
5300 (tui_source_window_base::do_erase_source_content): Hoist call to
5301 content.clear().
5302 * tui/tui-stack.c (tui_show_frame_info): Don't call
5303 tui_clear_source_content.
5304
e25d2004
TT
53052019-08-15 Tom Tromey <tom@tromey.com>
5306
5307 * tui/tui-winsource.h (struct tui_source_window_base)
5308 <do_erase_source_content>: New method.
5309 <erase_source_content>: New method.
5310 (tui_erase_source_content): Don't declare.
5311 * tui/tui-winsource.c (tui_clear_source_content): Update.
5312 (tui_source_window_base::do_erase_source_content): Rename from
5313 tui_erase_source_content.
5314 (tui_source_window_base::show_source_content): Update.
5315 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5316 * tui/tui-source.h (struct tui_source_window)
5317 <erase_source_content>: New method.
5318 * tui/tui-disasm.h (struct tui_disasm_window)
5319 <erase_source_content>: New method.
5320
002f15c2
TT
53212019-08-15 Tom Tromey <tom@tromey.com>
5322
5323 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5324 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5325 constructor.
5326 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5327 * tui/tui-source.c (tui_set_source_content): Update.
5328 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5329
c9033fe8
TT
53302019-08-15 Tom Tromey <tom@tromey.com>
5331
5332 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5333 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5334 tui-source.c.
5335 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5336 Declare.
5337 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5338 method.
5339 (tui_source_window::maybe_update): Update.
5340
088f37dd
TT
53412019-08-15 Tom Tromey <tom@tromey.com>
5342
5343 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5344 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5345 tui-disasm.c.
5346 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5347 Declare.
5348 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5349 method.
5350 (tui_disasm_window::maybe_update): Update.
5351
a54700c6
TT
53522019-08-15 Tom Tromey <tom@tromey.com>
5353
5354 * tui/tui-winsource.h (struct tui_source_window_base)
5355 <maybe_update>: Declare.
5356 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5357 method.
5358 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5359 Declare.
5360 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5361 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5362 Declare.
5363 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5364
e2a678a5
TT
53652019-08-15 Tom Tromey <tom@tromey.com>
5366
5367 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5368
f2dda477
TT
53692019-08-15 Tom Tromey <tom@tromey.com>
5370
5371 * tui/tui-wingeneral.c: Include tui-stack.h.
5372 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5373 (struct tui_locator_window): Move from tui-data.h.
5374 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5375 (tui_initialize_static_data): Move from tui-data.c.
5376 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5377 (struct tui_locator_window): Move to tui-stack.c.
5378 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5379 (tui_initialize_static_data): Move to tui-stack.c.
5380
ed4a1084
TT
53812019-08-15 Tom Tromey <tom@tromey.com>
5382
5383 * tui/tui-layout.c (show_source_disasm_command)
5384 (show_source_or_disasm_and_command): Use make_visible method, not
5385 tui_make_window.
5386 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5387 Remove.
5388
65962b20
TT
53892019-08-15 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui-wingeneral.h (tui_make_window): Update.
5392 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5393 parameter.
5394 (tui_gen_win_info::make_visible): Update.
5395 * tui/tui-regs.c (tui_data_window::display_registers_from):
5396 Update.
5397 * tui/tui-layout.c (show_source_disasm_command)
5398 (show_source_or_disasm_and_command): Update.
5399 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5400 (enum tui_box): Remove.
5401 (struct tui_win_info) <can_box>: New method.
5402 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5403 method.
5404
2208ee91
TV
54052019-08-15 Tom de Vries <tdevries@suse.de>
5406
5407 * linux-nat-trad.c: Include gdbarch.h.
5408
75faf5c4
AH
54092019-08-14 Alan Hayward <alan.hayward@arm.com>
5410
5411 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5412 register sizes.
5413
b1c896b3
TT
54142019-08-14 Tom Tromey <tromey@adacore.com>
5415
5416 * darwin-nat.c: Include gdbarch.h.
5417 * darwin-nat-info.c: Include gdbarch.h.
5418
6405cd73
TT
54192019-08-13 Tom Tromey <tom@tromey.com>
5420
5421 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5422 Remove.
5423 * tui/tui-data.c (tui_initialize_static_data): Update.
5424
5216580d
TT
54252019-08-13 Tom Tromey <tom@tromey.com>
5426
5427 * tui/tui-winsource.h (struct tui_exec_info_window)
5428 <~tui_exec_info_window, maybe_allocate_content, get_content,
5429 m_content>: Remove.
5430 (struct tui_source_window_base) <set_exec_info_content,
5431 show_exec_info_content>: Don't declare.
5432 * tui/tui-winsource.c
5433 (tui_exec_info_window::maybe_allocate_content): Remove.
5434 (tui_source_window_base::update_exec_info): Rename from
5435 set_exec_info_content.
5436 (tui_source_window_base::show_exec_info_content)
5437 (tui_source_window_base::update_exec_info): Remove.
5438
93858ad3
TT
54392019-08-13 Tom Tromey <tom@tromey.com>
5440
5441 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5442 declare.
5443 * tui/tui-winsource.c (tui_update_source_window_as_is)
5444 (tui_update_source_windows_with_addr, tui_erase_source_content):
5445 Update.
5446 (tui_clear_exec_info_content): Remove.
5447
e321e7ce
TT
54482019-08-13 Tom Tromey <tom@tromey.com>
5449
5450 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5451 declare.
5452 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5453 call tui_erase_exec_info_content.
5454 (tui_clear_exec_info_content): Rename from
5455 tui_erase_exec_info_content.
5456 (tui_clear_exec_info_content): Delete.
5457
8270ac62
TT
54582019-08-13 Tom Tromey <tom@tromey.com>
5459
5460 * tui/tui-winsource.h (struct tui_source_window_base)
5461 <show_exec_info_content>: Declare.
5462 (tui_show_exec_info_content): Don't declare.
5463 * tui/tui-winsource.c
5464 (tui_source_window_base::show_exec_info_content): Rename from
5465 tui_show_exec_info_content.
5466 (tui_source_window_base::update_exec_info): Update.
5467
7b56485d
TT
54682019-08-13 Tom Tromey <tom@tromey.com>
5469
5470 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5471 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5472 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5473 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5474 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5475 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5476 ... here.
5477
7ba913dc
TT
54782019-08-13 Tom Tromey <tom@tromey.com>
5479
5480 * tui/tui-winsource.h (struct tui_source_window_base)
5481 <update_exec_info>: Declare.
5482 (tui_update_exec_info): Don't declare.
5483 * tui/tui-winsource.c (tui_update_source_window_as_is)
5484 (tui_source_window_base::refresh_all)
5485 (tui_update_all_breakpoint_info): Update.
5486 (tui_source_window_base::update_exec_info): Rename from
5487 tui_update_exec_info.
5488 * tui/tui-stack.c (tui_show_frame_info): Update.
5489
37a4a131
TT
54902019-08-13 Tom Tromey <tom@tromey.com>
5491
5492 * tui/tui-winsource.h (struct tui_source_window_base)
5493 <set_exec_info_content>: Declare.
5494 (tui_set_exec_info_content): Don't declare.
5495 * tui/tui-winsource.c
5496 (tui_source_window_base::set_exec_info_content): Rename from
5497 tui_set_exec_info_content.
5498 (tui_update_exec_info): Update.
5499
0bd27e07
TT
55002019-08-13 Tom Tromey <tom@tromey.com>
5501
5502 * tui/tui-winsource.h (struct tui_source_window_base)
5503 <show_source_content>: Declare.
5504 (tui_show_source_content): Don't declare.
5505 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5506 (tui_source_window_base::show_source_content): Rename from
5507 tui_show_source_content.
5508 (tui_source_window_base::refresh_all): Update.
5509 * tui/tui-layout.c (show_source_disasm_command)
5510 (show_source_or_disasm_and_command): Update.
5511
b4ef5aeb
TT
55122019-08-13 Tom Tromey <tom@tromey.com>
5513
5514 * tui/tui-winsource.c (tui_erase_source_content)
5515 (tui_show_source_content, tui_source_window_base::refresh_all):
5516 Update.
5517 * tui/tui-wingeneral.h
5518 (tui_check_and_display_highlight_if_needed): Don't declare.
5519 * tui/tui-wingeneral.c
5520 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5521 check_and_display_highlight_if_needed.
5522 * tui/tui-win.c (tui_rehighlight_all)
5523 (tui_win_info::make_visible_with_new_height): Update.
5524 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5525 (tui_data_window::erase_data_content)
5526 (tui_data_window::display_all_data): Update.
5527 * tui/tui-data.h (struct tui_win_info)
5528 <check_and_display_highlight_if_needed>: Declare.
5529
fede5273
TT
55302019-08-13 Tom Tromey <tom@tromey.com>
5531
5532 * tui/tui-win.c (tui_resize_all): Call
5533 tui_delete_invisible_windows.
5534 * tui/tui-layout.c (show_layout): Call
5535 tui_delete_invisible_windows.
5536 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5537 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5538
22c3f490
TT
55392019-08-13 Tom Tromey <tom@tromey.com>
5540
5541 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5542 tui_add_win_to_layout.
5543
16cb7910
TT
55442019-08-13 Tom Tromey <tom@tromey.com>
5545
5546 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5547 * tui/tui-layout.c (tui_default_win_height): Now static.
5548
cc0c3ffb
TT
55492019-08-13 Tom Tromey <tom@tromey.com>
5550
5551 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5552 single switch.
5553 (show_source_disasm_command, show_source_or_disasm_and_command):
5554 Don't check current layout.
5555
3f3ffe54
TT
55562019-08-13 Tom Tromey <tom@tromey.com>
5557
5558 * tui/tui-wingeneral.c (make_all_visible): Remove.
5559 (tui_make_all_invisible): Simplify.
5560 * tui/tui-layout.c (tui_make_all_invisible): Move from
5561 tui-wingeneral.c; simplify.
5562 (show_layout): Hoist call to tui_make_all_invisible.
5563 (show_data): Don't call tui_make_all_invisible.
5564
69258091
TT
55652019-08-13 Tom Tromey <tom@tromey.com>
5566
5567 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5568 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5569
62cf57fe
TT
55702019-08-13 Tom Tromey <tom@tromey.com>
5571
5572 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5573 tui-data.c.
5574 (show_source_disasm_command, show_data)
5575 (show_source_or_disasm_and_command): Don't use
5576 tui_set_current_layout_to.
5577 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5578 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5579 tui-layout.c.
5580 (tui_set_current_layout_to): Remove.
5581
2afade5d
TT
55822019-08-13 Tom Tromey <tom@tromey.com>
5583
5584 * tui/tui-layout.c (tui_set_layout): Update.
5585 * tui/tui-data.h (struct tui_layout_def): Remove.
5586 (tui_layout_def): Don't declare.
5587 * tui/tui-data.c (layout_def): Remove.
5588 (tui_layout_def): Remove.
5589
a3504e96
TT
55902019-08-13 Tom Tromey <tom@tromey.com>
5591
5592 * tui/tui-winsource.h (struct tui_source_window_base)
5593 <clear_detail>: No longer "override".
5594 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5595 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5596 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5597 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5598 Remove.
5599 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5600
29c92911
TT
56012019-08-13 Tom Tromey <tromey@adacore.com>
5602
5603 * tracepoint.c: Don't include readline.h or history.h.
5604
86c6b807
TT
56052019-08-12 Tom Tromey <tom@tromey.com>
5606
5607 * configure: Rebuild.
5608 * configure.ac: Check for readline 7.
5609 * NEWS: Mention readline 7 requirement.
5610 * README: Update.
5611
5db2718c
TT
56122019-08-12 Tom Tromey <tom@tromey.com>
5613
5614 * mingw-hdep.c (gdb_select): Remove readline hack.
5615
dac36daf
PFC
56162019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5617
5618 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5619 when the function fails.
5620
1022c627
AA
56212019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5622
5623 * s390-tdep.c (s390_type_align): New function.
5624 (s390_gdbarch_init): Set it as type_align gdbarch method.
5625
eba4caf2
TV
56262019-08-09 Tom de Vries <tdevries@suse.de>
5627
5628 PR gdb/24591
5629 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5630 pc_low with relocation offset.
5631
123cd851
TT
56322019-08-07 Tom Tromey <tromey@adacore.com>
5633
5634 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5635 (print_frame_args): Update.
5636 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5637 Update.
5638 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5639 * frame.h (struct frame_arg): Add initializers.
5640 <error>: Now a unique_xmalloc_ptr.
5641
3d31bc39
AH
56422019-08-07 Alan Hayward <alan.hayward@arm.com>
5643
5644 * NEWS: Expand the Pointer Authentication entry.
5645 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5646 (aarch64_frame_unmask_lr): ... to this.
5647 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5648 Call aarch64_frame_unmask_lr.
5649 * frame.c (struct frame_info): Add "masked" variable.
5650 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5651 (fprint_frame): Check for masked pc.
5652 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5653 declarations.
5654 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5655 * stack.c (print_frame): Check for masked pc.
5656
0cf9feb9
TT
56572019-08-06 Tom Tromey <tom@tromey.com>
5658
5659 * stabsread.c (patch_block_stabs, read_one_struct_field)
5660 (read_enum_type): Use obstack_strndup.
5661 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5662 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5663 * dwarf2read.c (guess_full_die_structure_name)
5664 (anonymous_struct_prefix): Use obstack_strndup.
5665 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5666 * c-exp.y (yylex): Use obstack_strndup.
5667 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5668 (write_var_or_type): Use obstack_strndup.
5669
efba19b0
TT
56702019-08-06 Tom Tromey <tom@tromey.com>
5671
5672 * symfile.c (reread_symbols): Use obstack_strdup.
5673 * stabsread.c (read_type): Use obstack_strdup.
5674 * gdb_obstack.h (obstack_strdup): New overload.
5675 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5676 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5677 (dwarf2_canonicalize_name): Use obstack_strdup.
5678 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5679 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5680 Use obstack_strdup.
5681
f25102f7
TT
56822019-08-06 Tom Tromey <tom@tromey.com>
5683
5684 * gdb_obstack.h (obstack_strdup): Define.
5685 * gdb_obstack.c (obstack_strdup): Don't define.
5686
021887d8
TT
56872019-08-06 Tom Tromey <tom@tromey.com>
5688
5689 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5690 obstack_strdup.
5691 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5692 obstack_strdup.
5693 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5694 * stabsread.c (common_block_start): Use obstack_strdup.
5695 * objfiles.c (set_objfile_main_name, objfile): Use
5696 obstack_strdup.
5697 * namespace.c (add_using_directive): Use obstack_strdup.
5698 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5699 * jit.c (finalize_symtab): Use obstack_strdup.
5700 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5701 (guess_partial_die_structure_name, partial_die_info::fixup)
5702 (dwarf2_name): Use obstack_strdup.
5703 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5704 obstack_strdup.
5705 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5706 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5707 obstack_strdup.
5708 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5709
d2834edc
PW
57102019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5711
5712 * unittests/help-doc-selftests.c: New file.
5713 * Makefile.in: Add the new file.
5714
590042fc
PW
57152019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5716
5717 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5718 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5719 the full first line, except when FOR_VALUE_PREFIX. In this case,
5720 the trailing '.' is not output, and the first character is uppercased.
5721 (print_help_for_command): Update call to print_doc_line.
5722 (print_doc_of_command): Likewise.
5723 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5724 * cli/cli-option.c (append_indented_doc): Do not append newline.
5725 (build_help_option): Append newline after first appended_indented_doc
5726 only if a second call is done.
5727 (build_help): Append 2 new lines before each option, except the first
5728 one.
5729 * compile/compile.c (_initialize_compile): Add new lines after
5730 %OPTIONS%, when not at the end of the help.
5731 Change help doc or code
5732 producing the help doc to respect the invariants.
5733 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5734 Also removed the new line after 'Options:', as all other commands
5735 do not put an empty line between 'Options:' and the first option.
5736 * printcmd.c (_initialize_printcmd): Likewise.
5737 * stack.c (_initialize_stack): Likewise.
5738 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5739 incorrectly telling COMMAND is optional.
5740 * ada-lang.c (_initialize_ada_language): Change help doc or code
5741 producing the help doc to respect the invariants.
5742 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5743 * breakpoint.c (_initialize_breakpoint): Likewise.
5744 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5745 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5746 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5747 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5748 _initialize_cli_style): Likewise.
5749 * corelow.c (core_target_info): Likewise.
5750 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5751 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5752 * filesystem.c (_initialize_filesystem): Likewise.
5753 * frame.c (_initialize_frame): Likewise.
5754 * gnu-nat.c (add_task_commands): Likewise.
5755 * infcall.c (_initialize_infcall): Likewise.
5756 * infcmd.c (_initialize_infcmd): Likewise.
5757 * interps.c (_initialize_interpreter): Likewise.
5758 * language.c (_initialize_language): Likewise.
5759 * linux-fork.c (_initialize_linux_fork): Likewise.
5760 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5761 * maint.c (_initialize_maint_cmds): Likewise.
5762 * memattr.c (_initialize_mem): Likewise.
5763 * printcmd.c (_initialize_printcmd): Likewise.
5764 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5765 _RegEx): Likewise.
5766 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5767 * record-btrace.c (_initialize_record_btrace): Likewise.
5768 * record-full.c (_initialize_record_full): Likewise.
5769 * record.c (_initialize_record): Likewise.
5770 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5771 * regcache.c (_initialize_regcache): Likewise.
5772 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5773 _initialize_remote): Likewise.
5774 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5775 * serial.c (_initialize_serial): Likewise.
5776 * skip.c (_initialize_step_skip): Likewise.
5777 * source.c (_initialize_source): Likewise.
5778 * stack.c (_initialize_stack): Likewise.
5779 * symfile.c (_initialize_symfile): Likewise.
5780 * symtab.c (_initialize_symtab): Likewise.
5781 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5782 * top.c (init_main): Likewise.
5783 * tracefile-tfile.c (tfile_target_info): Likewise.
5784 * tracepoint.c (_initialize_tracepoint): Likewise.
5785 * tui/tui-win.c (_initialize_tui_win): Likewise.
5786 * utils.c (add_internal_problem_command): Likewise.
5787 * valprint.c (value_print_option_defs): Likewise.
5788
404f2902
FCE
57892019-08-06 Frank Ch. Eigler <fche@redhat.com>
5790
5791 PR build/24886
5792 * configure.ac: Drop enable-libmcheck support.
5793 * configure, config.in: Rebuild.
5794 * libmcheck.m4: Remove.
5795 * acinclude.m4: Don't include it.
5796 * Makefile.in: Don't distribute it.
5797 * top.c (print_gdb_configuration): Don't mention it.
5798
046bebe1
TT
57992019-08-06 Tom Tromey <tom@tromey.com>
5800
5801 * utils.c (set_output_style): Sometimes pass stream to
5802 emit_style_escape.
5803 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5804 * record-btrace.c (btrace_insn_history): Update.
5805 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5806 method.
5807 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5808 Update initializers.
5809 <m_uiout>: New field.
5810 <m_di>: Move lower.
5811 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5812 Remove "uiout" parameter.
5813 (dump_insns): Update.
5814 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5815 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5816
ddbcedf5
CB
58172019-08-06 Christian Biesinger <cbiesinger@google.com>
5818
5819 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5820 (error_in_psymtab_expansion): Likewise.
5821 (lookup_symbol_via_quick_fns): Likewise.
5822 (basic_lookup_transparent_type_quick): Likewise.
5823 (basic_lookup_transparent_type_1): Likewise.
5824
b08b16c8
TT
58252019-08-06 Tom Tromey <tromey@adacore.com>
5826
5827 * source.c (last_source_error): Now bool.
5828 (print_source_lines_base): Make "noprint" bool. Only open
5829 source file when last_source_visited changes.
5830
cb44333d
TT
58312019-08-06 Tom Tromey <tromey@adacore.com>
5832
5833 * annotate.c (annotate_source_line): Use g_source_cache.
5834 * source-cache.c (source_cache::get_plain_source_lines): Change
5835 parameters. Populate m_offset_cache.
5836 (source_cache::ensure): New method.
5837 (source_cache::get_line_charpos): New method.
5838 (extract_lines): Move lower. Change parameters.
5839 (source_cache::get_source_lines): Move lower.
5840 * source-cache.h (class source_cache): Update comment.
5841 <get_line_charpos>: New method.
5842 <get_source_lines>: Update comment.
5843 <clear>: Clear m_offset_cache.
5844 <get_plain_source_lines>: Change parameters.
5845 <ensure>: New method
5846 <m_offset_cache>: New member.
5847 * source.c (forget_cached_source_info_for_objfile): Update.
5848 (info_source_command): Use g_source_cache.
5849 (find_source_lines, open_source_file_with_line_charpos): Remove.
5850 (print_source_lines_base, search_command_helper): Use g_source_cache.
5851 * source.h (open_source_file_with_line_charpos): Don't declare.
5852 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5853 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5854 Use g_source_cache.
5855
872dceaa
TT
58562019-08-06 Tom Tromey <tromey@adacore.com>
5857
5858 * source-cache.c (source_cache::get_plain_source_lines):
5859 Remove "first_line" and "last_line" parameters.
5860 (source_cache::get_source_lines): Cache plain text.
5861 * source-cache.h (class source_cache)
5862 <get_plain_source_lines>: Update.
5863
269249d9
TT
58642019-08-06 Tom Tromey <tromey@adacore.com>
5865
5866 * source-cache.c (extract_lines): No longer a method.
5867 Changed type of parameter. Include final newline.
5868 (selftests::extract_lines_test): New function.
5869 (_initialize_source_cache): Likewise.
5870 * source-cache.h (class source_cache)
5871 <extract_lines>: Don't declare.
5872
c0e8dcd8
TT
58732019-08-06 Tom Tromey <tromey@adacore.com>
5874
5875 * breakpoint.c (init_breakpoint_sal): Update.
5876 (breakpoint): Update.
5877 * breakpoint.h (struct breakpoint) <filter>: Now a
5878 unique_xmalloc_ptr.
5879
0b27c27d
CB
58802019-08-05 Christian Biesinger <cbiesinger@google.com>
5881
5882 * NEWS: Mention dictionary access on blocks.
5883 * python/py-block.c (blpy_getitem): New function.
5884 (block_object_as_mapping): New struct.
5885 (block_object_type): Use new struct for tp_as_mapping field.
5886
4ee94178
CB
58872019-08-05 Christian Biesinger <cbiesinger@google.com>
5888
5889 * objfiles.h (objfile): Add a comment describing partial symbols.
5890
8abfcabc
TT
58912019-08-05 Tom Tromey <tromey@adacore.com>
5892
5893 * compile/compile.c (_initialize_compile): Use _(), not N_().
5894 * thread.c (_initialize_thread): Use _(), not N_().
5895 * stack.c (_initialize_stack): Use _(), not N_().
5896 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5897
2b79f376
SM
58982019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5899
5900 * dwarf2read.c (struct dw2_symtab_iterator):
5901 <want_specific_block>: Remove.
5902 <block_index>: Change type to gdb::optional.
5903 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5904 change type of BLOCK_INDEX parameter to gdb::optional.
5905 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5906 (dw2_lookup_symbol): Don't pass argument for
5907 WANT_SPECIFIC_BLOCK.
5908 (dw2_expand_symtabs_for_function): Don't pass argument for
5909 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5910 (class dw2_debug_names_iterator)
5911 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5912 parameter, change BLOCK_INDEX type to gdb::optional.
5913 <m_want_specific_block>: Remove.
5914 <m_block_index>: Change type to gdb::optional.
5915 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5916 gdb::optional. Re-write in function of gdb::optional.
5917 (dw2_debug_names_lookup_symbol): Don't pass argument for
5918 WANT_SPECIFIC_BLOCK.
5919 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5920 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5921 BLOCK_INDEX.
5922
ae60f04e
PW
59232019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5924
5925 * NEWS: Mention changes to "info sources" command.
5926
28cd9371
PW
59272019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5928
5929 * symtab.c (filename_partial_match_opts): New struct type.
5930 (struct output_source_filename_data): New members
5931 regexp, c_regexp, partial_match.
5932 (output_source_filename): Use new members to decide to print file.
5933 (info_sources_option_defs): New variable.
5934 (make_info_sources_options_def_group, print_info_sources_header,
5935 info_sources_command_completer):
5936 New functions.
5937 (info_sources_command): Read new optional arguments.
5938 (_initialize_symtab): Update info sources help.
5939
ca683e3a
AO
59402019-08-02 Alexandre Oliva <oliva@adacore.com>
5941
5942 * ada-lang.c (exception_support_info_v0): Renamed from...
5943 (default_exception_support_info): ... this. Create new
5944 definition for v1.
5945 (ada_has_this_exception_support): Look up catch_handlers_sym.
5946 (ada_exception_support_info_sniffer): Try v0 after default.
5947
f1264162
TT
59482019-08-01 Tom Tromey <tromey@adacore.com>
5949
5950 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5951 gdbarch.h.
5952
0a7b2485
CB
59532019-08-01 Christian Biesinger <cbiesinger@google.com>
5954
5955 * s12z-tdep.c: Fix include path for s12z-opc.h.
5956
c6bdbeb7
AH
59572019-08-01 Alan Hayward <alan.hayward@arm.com>
5958
5959 * NEWS: Require GNU make 3.82.
5960
a2bd7b82
TT
59612019-07-16 Tom Tromey <tom@tromey.com>
5962
5963 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5964 declare.
5965
aa3b6533
TT
59662019-07-30 Tom Tromey <tromey@adacore.com>
5967
5968 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5969
a1530dc7
KB
59702019-07-30 Kevin Buettner <kevinb@redhat.com>
5971
5972 * printcmd.c (print_address_symbolic): Print negative offsets.
5973 (build_address_symbolic): Force signed arithmetic when computing
5974 offset.
5975
2906593f
CB
59762019-07-30 Christian Biesinger <cbiesinger@google.com>
5977
5978 PR/24474: Add a function to lookup static variables.
5979 * NEWS: Mention this new function.
5980 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5981 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5982 * python/python.c (python_GdbMethods): Add new function.
5983
c620ed88
CB
59842019-07-29 Christian Biesinger <cbiesinger@google.com>
5985
5986 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5987 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5988 (objfpy_lookup_static_symbol): New function.
5989 (objfile_object_methods): Add new functions.
5990
bc4268a5
PW
59912019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5992
5993 * NEWS: Mention 'set|show print frame-info'. Mention new
5994 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5995 backtrace argument. Mention that python frame filtering code
5996 is now consistent with what 'backtrace' command prints.
5997
4b5e8d19
PW
59982019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5999
6000 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6001 comments.
6002 (print_frame_info_auto, print_frame_info_source_line,
6003 print_frame_info_location, print_frame_info_source_and_location,
6004 print_frame_info_location_and_address, print_frame_info_short_location):
6005 New declarations.
6006 (struct frame_print_options): New member print_frame_info.
6007 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6008 * stack.h (get_user_print_what_frame_info): New declaration.
6009 (frame_show_address): New declaration.
6010 * stack.c (print_frame_arguments_choices): New value 'presence'.
6011 (print_frame_info_auto, print_frame_info_source_line,
6012 print_frame_info_location, print_frame_info_source_and_location,
6013 print_frame_info_location_and_address, print_frame_info_short_location,
6014 print_frame_info_choices, print_frame_info_print_what): New definitions.
6015 (print_frame_args): Only print dots for args if print frame-arguments
6016 is 'presence'.
6017 (frame_print_option_defs): New element for "frame-info".
6018 (get_user_print_what_frame_info): New function.
6019 (frame_show_address): Make non static. Move comment to stack.h.
6020 (print_frame_info_to_print_what): New function.
6021 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6022 to decide what to print.
6023 (backtrace_command_1): Handle the new print_frame_arguments_presence
6024 value.
6025 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6026 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6027 (py_print_frame): In non-mi mode, use LOCATION as default for
6028 print_what, similarly to frame information printed directly by
6029 backtrace command. Handle frame-info user option in non MI mode.
6030
6bdfee81
KB
60312019-07-27 Kevin Buettner <kevinb@redhat.com>
6032
6033 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6034 Add case for debugging 32-bit target on 64-bit host. Revise
6035 comment.
6036
98a617f8
KB
60372019-07-27 Kevin Buettner <kevinb@redhat.com>
6038
6039 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6040 instead of find_function_entry_range_from_pc.
6041
567238c9
KB
60422019-07-27 Kevin Buettner <kevinb@redhat.com>
6043
6044 * stack.c (find_frame_funname): Remove code which preferred
6045 minsym over symtab sym in "certain pathological cases".
6046
2dc80cf8
KB
6047 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6048 parameter. Change type of "do_demangle" to bool.
6049 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6050 Pass suitable "prefer_sym_over_minsym" flag to
6051 build_address_symbolic(). Don't output "+" for negative offsets.
6052 * printcmd.c (print_address_symbolic): Update invocation of
6053 build_address_symbolic to include a "prefer_sym_over_minsym"
6054 flag.
6055 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6056 Restrict cases in which use of minimal symbol is preferred to that
6057 of a found symbol. Update comments.
6058
1aff7173
KB
6059 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6060 for entry pc when entry pc is out of range for that FDE.
6061
89b085ac
BC
60622019-07-26 Brian Callahan <bcallah@openbsd.org>
6063
6064 PR gdb/24839:
6065 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6066 type.
6067
f32feb4a
CB
60682019-07-25 Christian Biesinger <cbiesinger@google.com>
6069
6070 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6071 this function's Python signature.
6072
6073
60742019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6075
6076 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6077 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6078 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6079 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6080 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6081
6082
c54e4253
YS
60832019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6084
6085 * h8300-tdep.c (h8300_register_name_common): New.
6086 h8300_register_name): Use h8300_register_name_common.
6087 (h8300s_register_name): Likewise.
6088 (h8300sx_register_name): Likewise.
6089 (h8300h_register_nam): New.
6090 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6091
6092
40eadf04
SP
60932019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6094
6095 * arm-tdep.c (arm_skip_cmse_entry): New function.
6096 (arm_is_sgstubs_section): New function.
6097 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6098
bfa2a36d
TT
60992019-07-22 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6102 Don't self-assign.
6103
a8e9d247
AB
61042019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6105
6106 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6107 type_print.
6108
eb86c5e2
AB
61092019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6110
6111 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6112 so that GDB doesn't match any msymbols when searching in the
6113 TYPES_DOMAIN.
6114 (print_symbol_info): Print using typedef_print or type_print based
6115 on the type of the symbol. Add updated FIXME comment moved from...
6116 (_initialize_symtab): ... move and update FIXME comment to above.
6117
a8eab7c6
AB
61182019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6119
6120 * NEWS: Mention adding -q option to "info types".
6121 * symtab.c (struct info_types_options): New struct.
6122 (info_types_options_defs): New variable.
6123 (make_info_types_options_def_group): New function.
6124 (info_types_command): Use gdb::option framework to parse options.
6125 (info_types_command_completer): New function.
6126 (_initialize_symtab): Extend the help text on "info types" and
6127 register command completer.
6128
b4603c34
CB
61292019-07-21 Christian Biesinger <cbiesinger@google.com>
6130
6131 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6132 (lookup_symbol_in_objfile): Change int to block_enum and add a
6133 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6134
c8cdc1e0
CB
61352019-07-20 Christian Biesinger <cbiesinger@google.com>
6136
6137 * MAINTAINERS (Write After Approval): Add self.
6138
01e175fe
AB
61392019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6140
6141 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6142 instruction to the dummy code region.
6143
56f79b63
TT
61442019-07-19 Tom Tromey <tromey@adacore.com>
6145
6146 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6147 (ARGSUSED, PARAMS, __func__): Remove rules.
6148
4c5aa8e0
AH
61492019-07-19 Alan Hayward <alan.hayward@arm.com>
6150
6151 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6152 * features/arm/arm-with-iwmmxt.c: Remove.
6153 * features/arm/arm-with-iwmmxt.xml: Remove.
6154 * features/arm/arm-with-m-fpa-layout.c: Remove.
6155 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6156 * features/arm/arm-with-m-vfp-d16.c: Remove.
6157 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6158 * features/arm/arm-with-m.c: Remove.
6159 * features/arm/arm-with-m.xml: Remove.
6160 * features/arm/arm-with-neon.c: Remove.
6161 * features/arm/arm-with-neon.xml: Remove.
6162 * features/arm/arm-with-vfpv2.c: Remove.
6163 * features/arm/arm-with-vfpv2.xml: Remove.
6164 * features/arm/arm-with-vfpv3.c: Remove.
6165 * features/arm/arm-with-vfpv3.xml: Remove.
6166
f42b2617
AH
61672019-07-19 Alan Hayward <alan.hayward@arm.com>
6168
6169 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6170
f29ec966
AH
61712019-07-19 Alan Hayward <alan.hayward@arm.com>
6172
6173 * arch/aarch32.c (aarch32_create_target_description): Create
6174 target descriptions using features.
6175 * arch/arm.c (arm_create_target_description)
6176 (arm_create_mprofile_target_description): Likewise.
6177 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6178
d105cce5
AH
61792019-07-19 Alan Hayward <alan.hayward@arm.com>
6180
6181 * Makefile.in: Add new files.
6182 * aarch32-tdep.c: New file.
6183 * aarch32-tdep.h: New file.
6184 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6185 Call aarch32_read_description.
6186 * arch/aarch32.c: New file.
6187 * arch/aarch32.h: New file.
6188 * arch/arm.c (arm_create_target_description)
6189 (arm_create_mprofile_target_description): New function.
6190 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6191 (arm_create_target_description)
6192 (arm_create_mprofile_target_description): New declaration.
6193 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6194 read_description functions.
6195 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6196 Likewise.
6197 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6198 * arm-tdep.c (tdesc_arm_list): New variable.
6199 (arm_register_g_packet_guesses): Call create description functions.
6200 (arm_read_description) (arm_read_mprofile_description): New
6201 function.
6202 * arm-tdep.h (arm_read_description)
6203 (arm_read_mprofile_description): Add declaration.
6204 * configure.tgt: Add new files.
6205
afe09f0b
GL
62062019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6207
6208 * top.c (new_ui_command): Open specified terminal just once.
6209
cd215b2e
TT
62102019-07-18 Tom Tromey <tromey@adacore.com>
6211
6212 * symtab.c (main_name): Constify return type.
6213 * symfile.c (set_initial_language): Update.
6214 * symtab.h (main_name): Constify return type.
6215
d8f68fcb
TT
62162019-07-17 Tom Tromey <tom@tromey.com>
6217
6218 * tui/tui-winsource.c (tui_update_source_window)
6219 (tui_update_source_window_as_is)
6220 (tui_update_source_windows_with_line): Remove return.
6221 * tui/tui-disasm.c (tui_show_disassem)
6222 (tui_show_disassem_and_update_source): Remove return.
6223 * tui/tui.c (tui_reset): Remove return.
6224 * tui/tui-wingeneral.c
6225 (tui_check_and_display_highlight_if_needed): Remove return.
6226
ca5af91e
TT
62272019-07-17 Tom Tromey <tom@tromey.com>
6228
6229 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6230
5104fe36
TT
62312019-07-17 Tom Tromey <tom@tromey.com>
6232
6233 * tui/tui-winsource.h (struct tui_exec_info_window)
6234 (struct tui_source_window_base): Move from tui-data.h.
6235 * tui/tui-winsource.c: Move many method definitions from
6236 elsewhere. Remove "structuring" comments.
6237 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6238 (tui_source_window_base::refresh_window): Move to
6239 tui-winsource.c.
6240 * tui/tui-win.c (tui_source_window_base::refresh_all)
6241 (tui_source_window_base::update_tab_width)
6242 (tui_source_window_base::set_new_height)
6243 (tui_source_window_base::do_make_visible_with_new_height): Move to
6244 tui-winsource.c.
6245 * tui/tui-source.h: Update.
6246 * tui/tui-source.c (tui_source_window_base::reset): Move to
6247 tui-winsource.c.
6248 * tui/tui-disasm.h: Update.
6249 * tui/tui-data.h (struct tui_exec_info_window): Move to
6250 tui-winsource.h.
6251 (struct tui_source_window_base): Likewise.
6252 * tui/tui-data.c (tui_source_window_base::clear_detail)
6253 (tui_source_window_base, ~tui_source_window_base): Move to
6254 tui-winsource.c.
6255
daa15dde
TT
62562019-07-17 Tom Tromey <tom@tromey.com>
6257
6258 * tui/tui-win.c (tui_resize_all)
6259 (tui_source_window_base::update_tab_width)
6260 (tui_adjust_win_heights): Update.
6261 (tui_win_info::make_invisible_and_set_new_height): Rename from
6262 make_invisible_and_set_new_height.
6263 * tui/tui-data.h (struct tui_win_info)
6264 <make_invisible_and_set_new_height>: New method.
6265
bfad4537
TT
62662019-07-17 Tom Tromey <tom@tromey.com>
6267
6268 * tui/tui.c: Update.
6269 * tui/tui-source.h (struct tui_source_window): Move from
6270 tui-data.h.
6271 * tui/tui-layout.c: Update.
6272 * tui/tui-disasm.c: Update.
6273 * tui/tui-data.h (struct tui_source_window): Move to
6274 tui-source.h.
6275
88f7e873
TT
62762019-07-17 Tom Tromey <tom@tromey.com>
6277
6278 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6279 tui-data.h.
6280 * tui/tui-data.h (struct tui_disasm_window): Move to
6281 tui-disasm.h.
6282
96bd6233
TT
62832019-07-17 Tom Tromey <tom@tromey.com>
6284
6285 * tui/tui-regs.h (struct tui_data_item_window): Move from
6286 tui-data.h.
6287 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6288 * tui/tui-data.h (struct tui_data_item_window): Move to
6289 tui-regs.h.
6290 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6291
ce38393b
TT
62922019-07-17 Tom Tromey <tom@tromey.com>
6293
6294 * tui/tui.c: Update.
6295 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6296 (tui_cmd_window::max_height): Move to tui-command.c.
6297 * tui/tui-layout.c: Update.
6298 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6299 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6300 tui-command.c.
6301 * tui/tui-command.h (struct tui_cmd_window): Move from
6302 tui-data.h.
6303 * tui/tui-command.c: Remove "structuring" comments.
6304 (tui_cmd_window::clear_detail)
6305 (tui_cmd_window::do_make_visible_with_new_height)
6306 (tui_cmd_window::max_height): Move from elsewhere.
6307
2d8b51cb
TT
63082019-07-17 Tom Tromey <tom@tromey.com>
6309
6310 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6311 Now static.
6312 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6313 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6314
18ab23af
TT
63152019-07-17 Tom Tromey <tom@tromey.com>
6316
6317 * tui/tui.c: Update.
6318 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6319 tui-regs.c.
6320 * tui/tui-windata.h: Remove file.
6321 * tui/tui-windata.c: Remove file.
6322 * tui/tui-win.c (tui_data_window::set_new_height)
6323 (tui_data_window::do_make_visible_with_new_height): Move to
6324 tui-regs.c.
6325 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6326 * tui/tui-regs.c: Remove "structuring" comments.
6327 (tui_data_window::first_data_item_displayed)
6328 (tui_data_window::delete_data_content_windows)
6329 (tui_data_window::erase_data_content)
6330 (tui_data_window::display_all_data)
6331 (tui_data_window::refresh_all)
6332 (tui_data_window::do_scroll_vertical)
6333 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6334 (tui_data_window::do_make_visible_with_new_height)
6335 (tui_data_window::refresh_window): Move from elsewhere.
6336 (_initialize_tui_regs): Move to end of file.
6337 * tui/tui-layout.c: Update.
6338 * tui/tui-hooks.c: Update.
6339 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6340 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6341 tui-regs.c.
6342 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6343
88b7e7cc
TT
63442019-07-17 Tom Tromey <tom@tromey.com>
6345
6346 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6347 seen.
6348
0fcd3711
TT
63492019-07-17 Tom Tromey <tom@tromey.com>
6350
6351 * tui/tui-win.c (tui_source_window_base::set_new_height)
6352 (tui_source_window_base::do_make_visible_with_new_height): Use
6353 m_has_locator field directly.
6354 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6355 method.
6356 (struct tui_source_window_base) <has_locator>: Likewise.
6357
4a38112d
TT
63582019-07-17 Tom Tromey <tom@tromey.com>
6359
6360 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6361 Don't declare.
6362 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6363 Remove.
6364 * tui/tui-win.c (tui_source_window_base::set_new_height)
6365 (tui_source_window_base::set_new_height)
6366 (make_invisible_and_set_new_height)
6367 (tui_source_window_base::do_make_visible_with_new_height)
6368 (tui_source_window_base::do_make_visible_with_new_height):
6369 Update.
6370 * tui/tui-layout.c (show_source_disasm_command, show_data)
6371 (show_source_or_disasm_and_command): Update.
6372 * tui/tui-layout.c (show_layout): Update.
6373
09129226
TT
63742019-07-17 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-layout.c (make_data_window): Remove.
6377 (show_data): Unify creation and re-initialization cases.
6378
4a8a5e84
TT
63792019-07-17 Tom Tromey <tom@tromey.com>
6380
6381 * tui/tui-layout.c (make_source_window, make_disasm_window):
6382 Remove.
6383 (show_data): Unify creation and re-initialization cases.
6384
76d2be8e
TT
63852019-07-17 Tom Tromey <tom@tromey.com>
6386
6387 * tui/tui-layout.c (make_command_window): Remove.
6388 (show_source_disasm_command, show_source_or_disasm_and_command):
6389 Unify creation and re-initialization cases.
6390
890b8bde
TT
63912019-07-17 Tom Tromey <tom@tromey.com>
6392
6393 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6394 creation and re-initialization cases.
6395
2cdfa113
TT
63962019-07-17 Tom Tromey <tom@tromey.com>
6397
6398 * tui/tui-regs.c (tui_get_register): Return void.
6399
8e3cfd09
TT
64002019-07-17 Tom Tromey <tom@tromey.com>
6401
6402 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6403 Simplify.
6404
f4e04977
TT
64052019-07-17 Tom Tromey <tom@tromey.com>
6406
6407 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6408 resetting.
6409
0379b883
TT
64102019-07-17 Tom Tromey <tom@tromey.com>
6411
6412 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6413 * tui/tui-regs.c (tui_reg_layout): New function.
6414 (tui_show_registers, tui_reg_command): Use it.
6415 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6416 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6417 parameters.
6418 (tui_layout_command): Remove.
6419
b7fbad91
TT
64202019-07-17 Tom Tromey <tom@tromey.com>
6421
6422 * tui/tui-layout.h (tui/tui-layout): Return void.
6423 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6424
4e1e56b9
TT
64252019-07-17 Tom Tromey <tom@tromey.com>
6426
6427 * tui/tui-layout.c (show_source_disasm_command, show_data):
6428 Update.
6429 (reset_locator): Remove.
6430 (show_source_or_disasm_and_command): Update.
6431
1e0c09ba
TT
64322019-07-17 Tom Tromey <tom@tromey.com>
6433
6434 * tui/tui-source.c (tui_source_window_base::reset): Remove
6435 win_type parameter.
6436 * tui/tui-layout.c (make_command_window, make_source_window)
6437 (make_disasm_window, make_data_window)
6438 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6439 (reset_locator, show_source_or_disasm_and_command): Update.
6440 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6441 win_type parameter.
6442 (struct tui_source_window_base) <reset>: Likewise.
6443
1bf605de
TT
64442019-07-17 Tom Tromey <tom@tromey.com>
6445
6446 * tui/tui-layout.c (show_source_disasm_command): Use
6447 reset_locator.
6448 (reset_locator): New function.
6449 (init_and_make_win): Remove.
6450 (show_source_or_disasm_and_command): Use reset_locator.
6451
098f9ed4
TT
64522019-07-17 Tom Tromey <tom@tromey.com>
6453
6454 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6455 condition.
6456 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6457 Remove condition.
6458 * tui/tui-source.c (tui_source_window_base::reset): New method.
6459 * tui/tui-layout.c (make_command_window): Don't call
6460 init_and_make_win.
6461 (make_source_window, make_disasm_window): Don't call
6462 make_source_or_disasm_window.
6463 (make_data_window): Don't call init_and_make_win. Change calling
6464 convention.
6465 (show_source_disasm_command, show_data): Simplify.
6466 (make_source_or_disasm_window): Remove.
6467 (show_source_or_disasm_and_command): Simplify.
6468 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6469 (struct tui_source_window_base) <reset>: Likewise.
6470 <execution_info>: Remove initializer.
6471 * tui/tui-data.c (tui_source_window_base): Initialize
6472 execution_info.
6473
80110957
TT
64742019-07-17 Tom Tromey <tom@tromey.com>
6475
6476 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6477 variable.
6478
cf82af05
TT
64792019-07-17 Tom Tromey <tom@tromey.com>
6480
6481 * tui/tui.c (tui_rl_other_window): Update.
6482 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6483 superclass method first. Always iterate over regs_content.
6484 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6485 method.
6486 * tui/tui-win.c (tui_set_focus_command): Update.
6487
01aeb396
TT
64882019-07-17 Tom Tromey <tom@tromey.com>
6489
6490 * tui/tui-win.c (tui_set_focus_command): Rename from
6491 tui_set_focus. Call tui_enable.
6492 (tui_set_focus_command): Remove.
6493
fd6c75ee
TT
64942019-07-17 Tom Tromey <tom@tromey.com>
6495
6496 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6497 refresh_window.
6498 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6499 touchwin.
6500 (tui_data_window::refresh_window): Call refresh_window on data
6501 items. Always call superclass refresh_window.
6502 (tui_win_info::refresh): Remove.
6503 (tui_source_window_base::refresh_window): Update.
6504 (tui_refresh_all): Update.
6505 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6506 refresh_window.
6507 (show_source_or_disasm_and_command): Likewise.
6508 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6509 (struct tui_source_window_base) <refresh>: Likewise.
6510
f6cc34a9
TT
65112019-07-17 Tom Tromey <tom@tromey.com>
6512
6513 * tui/tui-winsource.c (tui_clear_source_content)
6514 (tui_show_source_content): Update.
6515 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6516 whether content is empty.
6517 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6518 Remove.
6519
f31ec9af
TT
65202019-07-17 Tom Tromey <tom@tromey.com>
6521
6522 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6523 window's contents.
6524 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6525 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6526
d1b6f1e5
TT
65272019-07-17 Tom Tromey <tom@tromey.com>
6528
6529 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6530 (struct tui_data_item_window): Update.
6531
d9743a13
TT
65322019-07-17 Tom Tromey <tom@tromey.com>
6533
6534 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6535 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6536 defines.
6537
caf0bc4e
TT
65382019-07-17 Tom Tromey <tom@tromey.com>
6539
6540 * tui/tui-winsource.h (tui_erase_source_content)
6541 (tui_clear_source_content): Remove "display_prompt" parameter.
6542 * tui/tui-winsource.c (tui_update_source_window_as_is)
6543 (tui_update_source_windows_with_addr): Update.
6544 (tui_clear_source_content): Remove "display_prompt" parameter.
6545 (tui_erase_source_content): Likewise. Simplify.
6546 (tui_show_source_content): Update.
6547 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6548 * tui/tui-stack.c (tui_show_frame_info): Update.
6549 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6550 Remove defines.
6551
9d391078
TT
65522019-07-17 Tom Tromey <tom@tromey.com>
6553
6554 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6555 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6556 parameter.
6557 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6558 parameter.
6559
a38da35d
TT
65602019-07-17 Tom Tromey <tom@tromey.com>
6561
6562 * tui/tui-winsource.c (tui_clear_source_content)
6563 (tui_show_source_content, tui_show_exec_info_content)
6564 (tui_clear_exec_info_content): Update.
6565 * tui/tui-stack.c (tui_show_locator_content): Update.
6566 (tui_show_frame_info): Update.
6567 * tui/tui-source.h (tui_source_window): Don't declare.
6568 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6569 from tui_source_is_displayed.
6570 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6571 Remove field.
6572 (struct tui_source_window_base) <content_in_use>: New field. Now
6573 bool.
6574 (struct tui_source_window) <showing_source_p>: New method.
6575 (TUI_SRC_WIN): Change cast.
6576 * tui/tui-data.c (tui_initialize_static_data): Update.
6577
c2cd8994
TT
65782019-07-17 Tom Tromey <tom@tromey.com>
6579
6580 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6581 location_matches_p.
6582 * tui/tui-source.c (tui_source_window::location_matches_p): New
6583 method.
6584 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6585 method.
6586 * tui/tui-data.h (struct tui_source_window_base)
6587 <location_matches_p>: New method.
6588 (struct tui_source_window, struct tui_disasm_window)
6589 <location_matches_p>: Likewise.
6590
4dde7b34
TT
65912019-07-17 Tom Tromey <tom@tromey.com>
6592
6593 * tui/tui-win.c (tui_set_win_height_command): Rename from
6594 tui_set_win_height.
6595 (tui_set_win_height_command): Remove.
6596
b73dd877
TT
65972019-07-17 Tom Tromey <tom@tromey.com>
6598
6599 * tui/tui-source.c (tui_source_window): New constructor. Add
6600 observer.
6601 (~tui_source_window): New destructor.
6602 (tui_source_window::style_changed): New method.
6603 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6604 (tui_attach_detach_observers): Update.
6605 * tui/tui-data.h (struct tui_source_window): Make constructor not
6606 inline. Add destructor.
6607 (struct tui_source_window) <style_changed>: New method.
6608 <m_observable>: New member.
6609
ae2b5380
TT
66102019-07-17 Tom Tromey <tom@tromey.com>
6611
6612 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6613 * tui/tui-win.c (tui_resize_all): Fix typo.
6614
1ce3e844
TT
66152019-07-17 Tom Tromey <tom@tromey.com>
6616
6617 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6618 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6619 (tui_refresh_all): Remove "list" parameter. Use foreach.
6620 * tui/tui-win.c (window_name_completer): Use foreach.
6621 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6622 (update_tab_width): Likewise.
6623 * tui/tui-layout.c (show_layout): Update.
6624 * tui/tui-data.h (class tui_window_iterator): New.
6625 (struct all_tui_windows): New.
6626 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6627
fe3eaf1c
TT
66282019-07-17 Tom Tromey <tom@tromey.com>
6629
6630 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6631 parameter. Don't reference globals.
6632 (tui_reg_command): Update.
6633
368c1354
TT
66342019-07-17 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-regs.c (tui_show_registers): Simplify.
6637
e80cd204
TT
66382019-07-17 Tom Tromey <tom@tromey.com>
6639
6640 * tui/tui-regs.c (tui_show_registers): Update.
6641 (tui_show_register_group): Add win_info parameter.
6642
aca2dd16
TT
66432019-07-17 Tom Tromey <tom@tromey.com>
6644
6645 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6646 Rename from tui_display_reg_element_at_line.
6647 (tui_data_window::display_registers_from_line): Update.
6648 * tui/tui-data.h (struct tui_data_window)
6649 <display_reg_element_at_line>: New method.
6650
517e9505
TT
66512019-07-17 Tom Tromey <tom@tromey.com>
6652
6653 * tui/tui-regs.h (tui_display_registers_from)
6654 (tui_display_registers_from_line): Don't declare.
6655 * tui/tui-windata.c (tui_data_window::display_all_data)
6656 (tui_data_window::refresh_all)
6657 (tui_data_window::do_scroll_vertical): Update.
6658 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6659 from tui_display_registers_from.
6660 (tui_display_reg_element_at_line): Update.
6661 (tui_data_window::display_registers_from_line): Rename from
6662 tui_display_registers_from_line.
6663 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6664 display_registers_from_line>: New methods.
6665
f76d8b19
TT
66662019-07-17 Tom Tromey <tom@tromey.com>
6667
6668 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6669 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6670 from tui_erase_data_content.
6671 (tui_data_window::display_all_data)
6672 (tui_data_window::refresh_all)
6673 (tui_data_window::do_scroll_vertical): Update.
6674 * tui/tui-regs.c (tui_show_registers): Update.
6675 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6676 New method.
6677
b4094625
TT
66782019-07-17 Tom Tromey <tom@tromey.com>
6679
6680 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6681 declare.
6682 * tui/tui-windata.c
6683 (tui_data_window::delete_data_content_windows): Rename from
6684 tui_delete_data_content_windows.
6685 (tui_data_window::display_all_data)
6686 (tui_data_window::do_scroll_vertical): Update.
6687 * tui/tui-data.h (struct tui_data_window)
6688 <delete_data_content_windows>: New method.
6689
c223a729
TT
66902019-07-17 Tom Tromey <tom@tromey.com>
6691
6692 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6693 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6694
50daf268
TT
66952019-07-17 Tom Tromey <tom@tromey.com>
6696
6697 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6698 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6699 from tui_display_all_data.
6700 * tui/tui-win.c
6701 (tui_data_window::do_make_visible_with_new_height): Update.
6702 * tui/tui-regs.c (tui_show_registers): Update.
6703 * tui/tui-layout.c (tui_set_layout): Update.
6704 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6705 method.
6706
df5f8cab
TT
67072019-07-17 Tom Tromey <tom@tromey.com>
6708
6709 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6710 * tui/tui-windata.c (tui_display_data_from): Remove.
6711 (tui_data_window::refresh_all): Update.
6712
80cb6c27
TT
67132019-07-17 Tom Tromey <tom@tromey.com>
6714
6715 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6716 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6717 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6718 tui_display_registers_from_line.
6719 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6720 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6721 "force_display" parameter.
6722
baff0c28
TT
67232019-07-17 Tom Tromey <tom@tromey.com>
6724
6725 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6726 declare.
6727 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6728 Rename from tui_first_reg_element_no_inline.
6729 (tui_display_reg_element_at_line)
6730 (tui_display_registers_from_line): Update.
6731 * tui/tui-data.h (struct tui_data_window)
6732 <first_reg_element_no_inline>: New method.
6733
3b23c5f2
TT
67342019-07-17 Tom Tromey <tom@tromey.com>
6735
6736 * tui/tui-windata.c (tui_display_data_from)
6737 (tui_data_window::do_scroll_vertical): Update.
6738 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6739 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6740 Rename from tui_line_from_reg_element_no.
6741 (tui_display_registers_from_line): Update.
6742 * tui/tui-data.h (struct tui_data_window)
6743 <line_from_reg_element_no>: New method.
6744
0b5ec218
TT
67452019-07-17 Tom Tromey <tom@tromey.com>
6746
6747 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6748 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6749 tui_last_regs_line_no.
6750 (tui_display_reg_element_at_line)
6751 (tui_display_registers_from_line): Update.
6752 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6753 method.
6754
0807ab7b
TT
67552019-07-17 Tom Tromey <tom@tromey.com>
6756
6757 PR tui/24722:
6758 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6759 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6760 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6761 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6762 (tui_update_breakpoint_info): Likewise.
6763 * tui/tui-hooks.c (tui_event_create_breakpoint)
6764 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6765 Update.
6766
9ad7fdef
TT
67672019-07-17 Tom Tromey <tom@tromey.com>
6768
6769 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6770
5813316f
TT
67712019-07-17 Tom Tromey <tom@tromey.com>
6772
6773 * tui/tui-winsource.c (tui_update_source_window_as_is)
6774 (tui_update_source_windows_with_addr): Update.
6775 * tui/tui-source.h (tui_set_source_content)
6776 (tui_show_symtab_source): Add "win_info" parameter.
6777 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6778 parameter.
6779 (tui_show_symtab_source): Likewise.
6780
00e264e7
TT
67812019-07-17 Tom Tromey <tom@tromey.com>
6782
6783 * tui/tui-wingeneral.c
6784 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6785
06210ce4
TT
67862019-07-17 Tom Tromey <tom@tromey.com>
6787
6788 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6789 (struct tui_cmd_window) <can_scroll>: New method.
6790 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6791 method.
6792
381befee
TT
67932019-07-17 Tom Tromey <tromey@adacore.com>
6794
6795 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6796 do_field_signed>: Rename. Change type of "value".
6797 * ui-out.c (ui_out::field_signed): Rename from field_int.
6798 Change type of "value".
6799 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6800 type of "value".
6801 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6802 do_field_int. Change type of "value".
6803 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6804 do_field_int. Change type of "value".
6805 * tracepoint.c (trace_status_mi, tfind_1)
6806 (print_one_static_tracepoint_marker): Update.
6807 * thread.c (print_thread_info_1, print_selected_thread_frame):
6808 Update.
6809 * stack.c (print_frame, print_frame_info): Update.
6810 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6811 Update.
6812 * source.c (print_source_lines_base): Update.
6813 * skip.c (info_skip_command): Update.
6814 * record-btrace.c (btrace_ui_out_decode_error)
6815 (btrace_call_history_src_line): Update.
6816 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6817 Update.
6818 * progspace.c (print_program_space): Update.
6819 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6820 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6821 do_field_int. Change type of "value".
6822 * mi/mi-out.c (mi_ui_out::do_table_begin)
6823 (mi_ui_out::do_table_header): Update.
6824 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6825 type of "value".
6826 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6827 (mi_cmd_data_list_changed_registers, output_register)
6828 (mi_cmd_data_read_memory, mi_load_progress)
6829 (mi_cmd_trace_frame_collected): Update.
6830 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6831 Update.
6832 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6833 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6834 (mi_cmd_var_list_children, varobj_update_one): Update.
6835 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6836 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6837 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6838 * inferior.c (print_inferior): Update.
6839 * gdb_bfd.c (print_one_bfd): Update.
6840 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6841 Update.
6842 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6843 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6844 do_field_int. Change type of "value".
6845 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6846 do_field_int. Change type of "value".
6847 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6848 (print_one_breakpoint_location, print_it_catch_fork)
6849 (print_one_catch_fork, print_it_catch_vfork)
6850 (print_one_catch_vfork, print_it_catch_solib)
6851 (print_it_catch_exec, print_it_ranged_breakpoint)
6852 (print_mention_watchpoint, print_mention_masked_watchpoint)
6853 (bkpt_print_it, update_static_tracepoint): Update.
6854 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6855 * break-catch-syscall.c (print_it_catch_syscall): Update.
6856 * ada-tasks.c (print_ada_task_info): Update.
6857 * ada-lang.c (print_it_exception, print_mention_exception):
6858 Update.
6859
6b78c3f8
AB
68602019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6861
6862 PR breakpoints/24541
6863 * gdbarch.c: Regenerate.
6864 * gdbarch.h: Regenerate.
6865 * gdbarch.sh: Adjust return type and parameter types for
6866 'stap_adjust_register'.
6867 (i386_stap_adjust_register): Adjust signature and return new
6868 register name.
6869 * stap-probe.c (stap_parse_register_operand): Adjust use of
6870 'gdbarch_stap_adjust_register'.
6871
d72a9b85
TT
68722019-07-17 Tom Tromey <tromey@adacore.com>
6873
6874 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6875 declare VEC.
6876 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6877 std::vector.
6878 (struct s390_process_info): Add initializers.
6879 (s390_add_process): Use new.
6880 (s390_linux_nat_target::low_forget_process): Use delete.
6881 (s390_linux_nat_target::low_new_fork)
6882 (s390_linux_nat_target::stopped_by_watchpoint)
6883 (s390_linux_nat_target::low_prepare_to_resume)
6884 (s390_linux_nat_target::insert_watchpoint)
6885 (s390_linux_nat_target::insert_hw_breakpoint)
6886 (s390_linux_nat_target::remove_watchpoint)
6887 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6888
206e6c58
JB
68892019-07-16 John Baldwin <jhb@FreeBSD.org>
6890
6891 * aarch64-fbsd-nat.c: Include regcache.h.
6892 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6893 argument.
6894 (aarch64_fbsd_nat_target::fetch_registers)
6895 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6896 variable.
6897 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6898
cbde90f2
JB
68992019-07-16 John Baldwin <jhb@FreeBSD.org>
6900
6901 * fbsd-nat.c: Include gdbarch.h.
6902
07128006
TT
69032019-07-15 Tom Tromey <tromey@adacore.com>
6904
6905 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6906
1f77b012
TT
69072019-07-15 Tom Tromey <tromey@adacore.com>
6908
6909 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6910 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6911 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6912 * cli-out.c (cli_ui_out::do_field_int): New method.
6913 * ui-out.c (ui_out::field_unsigned): New method.
6914 * symfile.c (generic_load): Use field_unsigned.
6915 (print_transfer_performance): Likewise.
6916 * record-btrace.c (ui_out_field_uint): Remove.
6917 (btrace_call_history_insn_range, btrace_call_history): Use
6918 field_unsigned.
6919 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6920 field_unsigned.
6921 * ui-out.h (class ui_out) <field_unsigned>: New method.
6922 <do_field_unsigned>: Likewise.
6923
33eca680
TT
69242019-07-15 Tom Tromey <tromey@adacore.com>
6925
6926 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6927 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6928 * target.c (flash_erase_command): Use field_string.
6929 * infrun.c (print_signal_received_reason): Use field_string.
6930 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6931 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6932 field_string.
6933 * ada-tasks.c (print_ada_task_info): Use field_string.
6934
ca8d69be
TT
69352019-07-15 Tom Tromey <tromey@adacore.com>
6936
6937 * target.c (flash_erase_command): Use field_core_addr.
6938 * symfile.c (generic_load): Use field_core_addr.
6939 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6940 Use field_core_addr.
6941 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6942 field_core_addr.
6943
0d4e84ed
AB
69442019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6945
6946 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6947 value if its desired type is smaller than a CORE_ADDR and signed.
6948
9a49df9d
AB
69492019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6950
6951 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6952 of changes to field names, and use new is_reference field to
6953 decide if a property is a reference or not.
6954 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6955 field.
6956 (struct dwarf2_property_baton): Update header comment, rename
6957 'referenced_type' to 'property_type' and update comments.
6958 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6959 default property type, store in property baton, update to take
6960 accound of renamed field.
6961 (read_func_scope): Update call to attr_to_dynamic_prop.
6962 (read_array_type): Likewise.
6963 (dwarf2_per_cu_addr_sized_int_type): New function.
6964 (read_subrange_index_type): Move type finding code to
6965 dwarf2_per_cu_addr_sized_int_type.
6966 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6967 (dwarf2_per_cu_addr_type): New function.
6968 (set_die_type): Update calls to attr_to_dynamic_prop.
6969
b86352cf
AB
69702019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * dwarf2read.c (read_subrange_index_type): New function.
6973 (read_subrange_type): Move code into new function and call it.
6974 * gdbtypes.c (create_range_type): Add some asserts.
6975
603490bf
AB
69762019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6977
6978 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6979 update return statements.
6980 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6981 declaration, and update comment to match.
6982 * gdbtypes.c (resolve_dynamic_array): Update call to
6983 dwarf2_evaluate_property to match new return type.
6984
592f9d27
AB
69852019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6986
6987 * valarith.c (value_subscripted_rvalue): Change lowerbound
6988 parameter type from int to LONGEST.
6989 * value.h (value_subscripted_rvalue): Likewise in declaration.
6990
60cfcb20
AB
69912019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6992
6993 * cli/cli-utils.c (info_print_command_completer): New function.
6994 * cli/cli-utils.h: Add 'completer.h' include, and forward
6995 declaration for 'struct cmd_list_element'.
6996 (info_print_command_completer): Declare.
6997 * stack.c (_initialize_stack): Add completer for 'info locals' and
6998 'info args'.
6999 * symtab.c (_initialize_symtab): Add completer for 'info
7000 variables' and 'info functions'.
7001 * NEWS: Mention completion for additional info commands.
7002
b16507e0
AB
70032019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7004
7005 * cli/cli-utils.c (extract_info_print_args): Delete.
7006 (extract_arg_maybe_quoted): Delete.
7007 (info_print_options_defs): New variable.
7008 (make_info_print_options_def_group): New function.
7009 (extract_info_print_options): Define new function.
7010 * cli/cli-utils.h (extract_info_print_args): Delete.
7011 (struct info_print_options): New structure.
7012 (extract_info_print_options): Declare new function.
7013 * stack.c (info_locals_command): Update to use new
7014 extract_info_print_options, also add a header comment.
7015 (info_args_command): Likewise.
7016 * symtab.c (info_variables_command): Likewise.
7017 (info_functions_command): Likewise.
7018
021d8588
AB
70192019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7020
7021 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7022 to extract string arguments.
7023 * common/common-utils.c (extract_string_maybe_quoted): New function.
7024 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7025
b777eb6d
TT
70262019-07-11 Tom Tromey <tromey@adacore.com>
7027
7028 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7029 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7030 * top.h (gdbinit): Don't declare.
7031 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7032 into...
7033 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7034 * top.c (gdb_init): Don't call init_cli_cmds.
7035 (gdbinit): Remove.
7036 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7037
72ee03ff
TT
70382019-07-11 Tom Tromey <tromey@adacore.com>
7039
7040 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7041 after it has been moved.
7042
00db9531
SM
70432019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7044
7045 * valops.c (value_must_coerce_to_target): Change return type to
7046 bool.
7047 * value.h (value_must_coerce_to_target): Likewise.
7048
f2478a7e
SM
70492019-07-10 Simon Marchi <simon.marchi@efficios.com>
7050
7051 * breakpoint.c (is_hardware_watchpoint): Remove
7052 forward-declaration.
7053 (is_masked_watchpoint): Change return type to bool.
7054 (is_tracepoint): Likewise.
7055 (is_breakpoint): Likewise.
7056 (is_hardware_watchpoint): Likewise.
7057 (is_watchpoint): Likewise.
7058 (is_no_memory_software_watchpoint): Likewise.
7059 (is_catchpoint): Likewise.
7060 (breakpoint_1): Make FILTER parameter's return type bool.
7061 is_masked_watchpoint): Change return type to bool.
7062 (save_breakpoints): Make FILTER parameter's return type bool.
7063 * breakpoint.h (is_breakpoint): Change return type to bool.
7064 (is_watchpoint): Likewise.
7065 (is_catchpoint): Likewise.
7066 (is_tracepoint): Likewise.
7067
0d12e84c
TT
70682019-07-10 Tom Tromey <tom@tromey.com>
7069
7070 * defs.h: Don't include gdbarch.h.
7071 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7072 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7073 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7074 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7075 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7076 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7077 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7078 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7079 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7080 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7081 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7082 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7083 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7084 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7085 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7086 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7087 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7088 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7089 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7090 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7091 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7092 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7093 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7094 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7095 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7096 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7097 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7098
f06f1252
TT
70992019-07-10 Tom Tromey <tromey@adacore.com>
7100
7101 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7102 * breakpoint.c (init_ada_exception_breakpoint): Register as
7103 bp_catchpoint.
7104 (print_one_breakpoint_location, print_one_breakpoint): Use
7105 is_ada_exception_catchpoint.
7106 * ada-lang.c (class ada_catchpoint_location): Pass
7107 bp_loc_software_breakpoint to bp_location constructor.
7108 (is_ada_exception_catchpoint): New function.
7109
7a5d944b
TT
71102019-07-10 Tom Tromey <tromey@adacore.com>
7111
7112 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7113 VEC.
7114 (struct arm_exidx_entry): New method operator<.
7115 (struct arm_exidx_data) <section_maps>: Change type.
7116 (arm_exidx_data_free): Remove.
7117 (arm_exidx_data_key): Change type. Move lower.
7118 (arm_exidx_new_objfile): Update.
7119 (arm_compare_exidx_entries): Remove.
7120 (arm_find_exidx_entry, _initialize_arm_tdep)
7121
48c66e1d
TT
71222019-07-10 Tom Tromey <tromey@adacore.com>
7123
7124 * solib-spu.c (ocl_program_data_key): Change type.
7125 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7126 Update.
7127
a269fbf1
TT
71282019-07-10 Tom Tromey <tromey@adacore.com>
7129
7130 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7131 (struct solib_aix_inferior_data) <library_list>: Change type.
7132 (solib_aix_inferior_data_handle): Change type.
7133 (get_solib_aix_inferior_data): Update.
7134 (solib_aix_free_library_list): Remove.
7135 (library_list_start_library): Update.
7136 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7137 return type.
7138 (solib_aix_get_library_list)
7139 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7140 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7141
c294730c
TT
71422019-07-10 Tom Tromey <tromey@adacore.com>
7143
7144 * solib-dsbt.c (struct dsbt_info): Add initializers.
7145 (solib_dsbt_pspace_data): Change type.
7146 (dsbt_pspace_data_cleanup): Remove.
7147 (get_dsbt_info, _initialize_dsbt_solib): Update.
7148
9d52077d
TT
71492019-07-10 Tom Tromey <tromey@adacore.com>
7150
7151 * spu-tdep.c (spu_overlay_data): Change type.
7152 (spu_get_overlay_table, spu_overlay_new_objfile)
7153 (_initialize_spu_tdep): Update.
7154
22a20dca
TT
71552019-07-10 Tom Tromey <tromey@adacore.com>
7156
7157 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7158 destructor.
7159 (dbx_objfile_data_key): Change type and declare later.
7160 (DBX_SYMFILE_INFO): Rewrite.
7161 * dbxread.c (dbx_objfile_data_key): Change type.
7162 (dbx_symfile_init): Update.
7163 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7164 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7165 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7166
cb60f420
TT
71672019-07-10 Tom Tromey <tromey@adacore.com>
7168
7169 * jit.c (jit_program_space_key): Change type. Move lower.
7170 (get_jit_program_space_data): Update.
7171 (jit_program_space_data_cleanup): Remove.
7172 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7173 Update.
7174 (struct jit_program_space_data): Add initializers.
7175
51df2ae3
TT
71762019-07-10 Tom Tromey <tromey@adacore.com>
7177
7178 * solib-darwin.c (struct darwin_info): Add initializers.
7179 (solib_darwin_pspace_data): Change type.
7180 (darwin_pspace_data_cleanup): Remove.
7181 (get_darwin_info, _initialize_darwin_solib): Update.
7182
18101a35
TT
71832019-07-10 Tom Tromey <tromey@adacore.com>
7184
7185 * remote-sim.c (struct sim_inferior_data): Add initializers,
7186 constructor, and destructor.
7187 (sim_inferior_data_key): Change type. Move lower.
7188 (check_for_duplicate_sim_descriptor): Update.
7189 (get_sim_inferior_data): Use new. Update.
7190 (~sim_inferior_data_cleanup): Rename from
7191 sim_inferior_data_cleanup. Simplify.
7192 (gdbsim_close_inferior, simulator_command)
7193 (sim_command_completer, _initialize_remote_sim): Update.
7194 (next_pid, INITIAL_PID): Move earlier.
7195
05b08ac1
TT
71962019-07-10 Tom Tromey <tromey@adacore.com>
7197
7198 * python/python-internal.h (create_thread_object): Return
7199 gdbpy_ref.
7200 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7201 * python/py-inferior.c (struct threadlist_entry): Add
7202 constructor.
7203 <thread_obj>: Now a gdbpy_ref.
7204 (thread_to_thread_object): Update.
7205 (add_thread_object): Use new.
7206 (delete_thread_object): Use delete.
7207 (infpy_threads): Update.
7208 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7209 GIL.
7210
32372d80
TT
72112019-07-10 Tom Tromey <tromey@adacore.com>
7212
7213 * valops.c (value_cast): Specialize error message for Ada.
7214
5c458ae8
SM
72152019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7216
7217 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7218
4c462cb0
SM
72192019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7220
7221 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7222 bpstat_should_step): Return bool, adjust comments.
7223 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7224 bpstat_should_step): Likewise.
7225
89abbcc2
AH
72262019-07-10 Alan Hayward <alan.hayward@arm.com>
7227
7228 * features/Makefile: Use feature target descriptions for Arm.
7229 * features/arm/arm-core.c: Generate new file.
7230 * features/arm/arm-fpa.c: Likewise.
7231 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7232 * features/arm/arm-m-profile.c: Likewise.
7233 * features/arm/arm-vfpv2.c: Likewise.
7234 * features/arm/arm-vfpv3.c: Likewise.
7235 * features/arm/xscale-iwmmxt.c: Likewise.
7236 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7237
166a82be
AH
72382019-07-10 Alan Hayward <alan.hayward@arm.com>
7239
7240 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7241 ptrace earlier.
7242
9fb4c7e9
AH
72432019-07-10 Alan Hayward <alan.hayward@arm.com>
7244
7245 * features/aarch64-pauth.c: Regenerate.
7246
e2d0f980
SM
72472019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7248
7249 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7250 bool.
7251 (bpstat_what): Use false instead of 0.
7252
a38118e5
PA
72532019-07-09 Pedro Alves <palves@redhat.com>
7254
7255 * break-catch-throw.c (is_exception_catchpoint): New.
7256 * breakpoint.c (print_one_breakpoint_location): New parameter
7257 'raw_loc'. Handle it. Use
7258 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7259 looking at the breakpoint's type.
7260 (print_one_breakpoint): If handling "maint info breakpoints", also
7261 print locations of exception catchpoints.
7262 * breakpoint.h (is_exception_catchpoint): Declare.
7263
cb1e4e32
PA
72642019-07-09 Pedro Alves <palves@redhat.com>
7265
7266 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7267 "addr" field.
7268 (allocate_location_exception_catchpoint): New.
7269 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7270 (initialize_throw_catchpoint_ops): Install
7271 allocate_location_exception_catchpoint as allocate_location
7272 method.
7273 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7274 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7275 bp_loc_other.
7276 (breakpoint_address_is_meaningful): Delete.
7277 (bl_address_is_meaningful): New.
7278 (breakpoint_locations_match): Adjust comment.
7279 (bp_location_from_bp_type): New, factored out of...
7280 (bp_location::bp_location(breakpoint *)): ... this.
7281 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7282 factored out of...
7283 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7284 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7285 breakpoint_address_is_meaningful.
7286 (bp_locations_compare): Adjust comment.
7287 (update_global_location_list): Use bl_address_is_meaningful
7288 instead of breakpoint_address_is_meaningful.
7289 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7290 explicit.
7291 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7292 * python/py-breakpoint.c (bppy_get_location): No longer check
7293 whether location is null.
7294
b58a68fe
PA
72952019-07-09 Pedro Alves <palves@redhat.com>
7296
7297 PR c++/15468
7298 * breakpoint.c (print_one_breakpoint_location): Remove
7299 single-location assert.
7300
268a13a5
TT
73012019-07-09 Tom Tromey <tom@tromey.com>
7302
7303 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7304 * configure: Rebuild.
7305 * configure.ac: Change common to gdbsupport.
7306 * gdbsupport: Rename from common.
7307 * acinclude.m4: Change common to gdbsupport.
7308 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7309 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7310 gdbsupport.
7311 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7312 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7313 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7314 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7315 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7316 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7317 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7318 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7319 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7320 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7321 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7322 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7323 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7324 coff-pe-read.c, command.h, compile/compile-c-support.c,
7325 compile/compile-c.h, compile/compile-cplus-symbols.c,
7326 compile/compile-cplus-types.c, compile/compile-cplus.h,
7327 compile/compile-loc2c.c, compile/compile.c, completer.c,
7328 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7329 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7330 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7331 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7332 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7333 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7334 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7335 features/aarch64-core.c, features/aarch64-fpu.c,
7336 features/aarch64-pauth.c, features/aarch64-sve.c,
7337 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7338 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7339 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7340 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7341 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7342 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7343 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7344 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7345 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7346 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7347 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7348 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7349 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7350 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7351 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7352 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7353 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7354 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7355 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7356 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7357 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7358 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7359 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7360 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7361 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7362 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7363 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7364 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7365 minsyms.c, mips-linux-tdep.c, namespace.h,
7366 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7367 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7368 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7369 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7370 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7371 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7372 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7373 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7374 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7375 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7376 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7377 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7378 procfs.c, producer.c, progspace.h, psymtab.h,
7379 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7380 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7381 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7382 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7383 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7384 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7385 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7386 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7387 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7388 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7389 target-memory.c, target.c, target.h, target/waitstatus.c,
7390 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7391 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7392 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7393 unittests/array-view-selftests.c,
7394 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7395 unittests/common-utils-selftests.c,
7396 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7397 unittests/format_pieces-selftests.c,
7398 unittests/function-view-selftests.c,
7399 unittests/lookup_name_info-selftests.c,
7400 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7401 unittests/mkdir-recursive-selftests.c,
7402 unittests/observable-selftests.c,
7403 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7404 unittests/parse-connection-spec-selftests.c,
7405 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7406 unittests/scoped_fd-selftests.c,
7407 unittests/scoped_mmap-selftests.c,
7408 unittests/scoped_restore-selftests.c,
7409 unittests/string_view-selftests.c, unittests/style-selftests.c,
7410 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7411 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7412 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7413 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7414 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7415 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7416
5b0e2db4
AB
74172019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7418
7419 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7420 bool value.
7421 (decode_digits_ordinary): Set explicit_line field in sal.
7422 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7423 symtab_and_line that was set on an explicit line number in
7424 assembler code. Do always update the recorded symtab and line if
7425 we do skip the prologue.
7426
0ba852ab
AB
74272019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7428
7429 * breakpoint.c (set_breakpoint_location_function): Remove
7430 explicit_loc parameter.
7431 (momentary_breakpoint_from_master): Update call to
7432 set_breakpoint_location_function.
7433 (add_location_to_breakpoint): Likewise.
7434
b3a7d171
AB
74352019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7436
7437 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7438 required features based on default bfd type when no specific bfd
7439 is present.
7440
1f6f6e21
PW
74412019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7442
7443 * NEWS: Mention that GDB printf and eval commands can now print
7444 C-style and Ada-style convenience var strings without
7445 calling the inferior.
7446 * printcmd.c (printf_c_string): Locally print GDB internal var
7447 instead of transiting via the inferior.
7448 (printf_wide_c_string): Likewise.
7449
74502019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7451
5862c886 7452 PR breakpoints/25011
ea142fbf
AH
7453 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7454
0598af48
TT
74552019-07-04 Tom Tromey <tom@tromey.com>
7456
7457 PR tui/24724:
7458 * tui/tui-winsource.c (tui_clear_source_content): Update.
7459 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7460 (tui_update_breakpoint_info): Update.
7461 (tui_set_exec_info_content): Update.
7462 * tui/tui-source.c (tui_set_source_content_nil): Update.
7463 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7464 has_break.
7465 * tui/tui-data.h (enum tui_bp_flag): New.
7466 (tui_bp_flags): New enum flags type.
7467 (struct tui_source_element) <break_mode>: Change type. Rename
7468 from has_break.
7469 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7470 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7471 constants.
7472 * tui/tui-winsource.h: Fix comment.
7473
350fab54
AH
74742019-07-04 Alan Hayward <alan.hayward@arm.com>
7475
7476 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7477 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7478 (store_fpregs_to_thread)
7479 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7480 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7481 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7482 (IWMMXT_REGS_SIZE): Add define.
7483 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7484 (fetch_vfp_regs, store_vfp_regs)
7485 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7486 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7487
f0452268
AH
74882019-07-04 Alan Hayward <alan.hayward@arm.com>
7489
7490 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7491 defines.
7492 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7493 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7494 (ARM_INT_REGISTER_SIZE): ...to this.
7495 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7496 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7497 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7498 (arm_linux_collect_gregset, supply_nwfpe_register)
7499 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7500 defines.
7501 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7502 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7503 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7504 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7505 (arm_return_in_memory, arm_store_return_value)
7506 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7507 (arm_record_ld_st_multiple): Likewise.
7508 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7509 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7510
e935475c
AH
75112019-07-04 Alan Hayward <alan.hayward@arm.com>
7512
7513 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7514 AARCH64_DISPLACED_MODIFIED_INSNS.
7515 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7516 (aarch64_displaced_step_copy_insn): Likewise.
7517 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7518 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7519 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7520 ARM_DISPLACED_MODIFIED_INSNS.
7521 * arm-tdep.c (arm_gdbarch_init): Likewise.
7522 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7523 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7524 (struct arm_displaced_step_closure): Use
7525 ARM_DISPLACED_MODIFIED_INSNS.
7526
df0bb381
AH
75272019-07-04 Alan Hayward <alan.hayward@arm.com>
7528
7529 * features/Makefile: Remove unused xml files.
7530 * features/aarch64.xml: Remove.
7531 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7532 * features/i386/amd64-avx-avx512.xml: Remove.
7533 * features/i386/amd64-avx-linux.xml: Remove.
7534 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7535 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7536 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7537 * features/i386/amd64-avx-mpx.xml: Remove.
7538 * features/i386/amd64-avx.xml: Remove.
7539 * features/i386/amd64-linux.xml: Remove.
7540 * features/i386/amd64-mpx-linux.xml: Remove.
7541 * features/i386/amd64-mpx.xml: Remove.
7542 * features/i386/amd64.xml: Remove.
7543 * features/i386/i386-avx-avx512-linux.xml: Remove.
7544 * features/i386/i386-avx-avx512.xml: Remove.
7545 * features/i386/i386-avx-linux.xml: Remove.
7546 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7547 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7548 * features/i386/i386-avx-mpx-linux.xml: Remove.
7549 * features/i386/i386-avx-mpx.xml: Remove.
7550 * features/i386/i386-avx.xml: Remove.
7551 * features/i386/i386-linux.xml: Remove.
7552 * features/i386/i386-mmx-linux.xml: Remove.
7553 * features/i386/i386-mmx.xml: Remove.
7554 * features/i386/i386-mpx-linux.xml: Remove.
7555 * features/i386/i386-mpx.xml: Remove.
7556 * features/i386/i386.xml: Remove.
7557 * features/i386/x32-avx-avx512-linux.xml: Remove.
7558 * features/i386/x32-avx-linux.xml: Remove.
7559 * features/i386/x32-linux.xml: Remove.
7560
edd6266a
AH
75612019-07-04 Alan Hayward <alan.hayward@arm.com>
7562
7563 * regformats/aarch64.dat: Remove.
7564 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7565 * regformats/i386/amd64-avx-linux.dat: Remove.
7566 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7567 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7568 * regformats/i386/amd64-linux.dat: Remove.
7569 * regformats/i386/amd64-mpx-linux.dat: Remove.
7570 * regformats/i386/amd64.dat: Remove.
7571 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7572 * regformats/i386/i386-avx-linux.dat: Remove.
7573 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7574 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7575 * regformats/i386/i386-linux.dat: Remove.
7576 * regformats/i386/i386-mmx-linux.dat: Remove.
7577 * regformats/i386/i386-mpx-linux.dat: Remove.
7578 * regformats/i386/i386.dat: Remove.
7579 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7580 * regformats/i386/x32-avx-linux.dat: Remove.
7581 * regformats/i386/x32-linux.dat: Remove.
7582
2b40fda7
AH
75832019-07-04 Alan Hayward <alan.hayward@arm.com>
7584
7585 * aarch64-tdep.c: Remove xml self tests.
7586 * amd64-linux-tdep.c: Likewise.
7587 * amd64-tdep.c: Likewise.
7588 * i386-linux-tdep.c: Likewise.
7589 * i386-tdep.c: Likewise.
7590
5f4ba3e7
PA
75912019-07-03 Pedro Alves <palves@redhat.com>
7592
7593 PR cli/24732
7594 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7595 (pipe_cmd_option_defs): New.
7596 (make_pipe_cmd_options_def_group): New.
7597 (pipe_command): Use gdb::option::process_options.
7598 (pipe_command_completer): New function.
7599 (_initialize_cli_cmds): Install completer for "pipe" command.
7600
3d9be6f5
PA
76012019-07-03 Pedro Alves <palves@redhat.com>
7602
7603 * cli/cli-option.c (union option_value) <string>: New field.
7604 (struct option_def_and_value): Add ctor, move ctor, dtor and
7605 use DISABLE_COPY_AND_ASSIGN.
7606 (option_def_and_value::clear_value): New.
7607 (parse_option, save_option_value_in_ctx, get_val_type_str)
7608 (add_setshow_cmds_for_options): Handle var_string.
7609 * cli-option.h (union option_def::var_address) <string>: New
7610 field.
7611 (struct string_option_def): New.
7612 * maint-test-options.c (struct test_options_opts): Add default
7613 ctor and use DISABLE_COPY_AND_ASSIGN.
7614 <string_opt>: New field.
7615 (test_options_opts::~test_options_opts): New.
7616 (test_options_opts::dump): Also dump "-string".
7617 (test_options_option_defs): Install "string.
7618
41fc454c
PA
76192019-07-03 Pedro Alves <palves@redhat.com>
7620
7621 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7622 option_value with a null enumeration.
7623 (complete_options): Save the option values in the context.
7624 (save_option_value_in_ctx): New, factored out from ...
7625 (process_options): ... here.
7626 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7627 of the function.
7628 * maint-test-options.c (test_options_opts::dump): New, factored
7629 out from ...
7630 (maintenance_test_options_command_mode): ... here.
7631 (maintenance_test_options_command_completion_result): Delete.
7632 (maintenance_test_options_command_completion_text): Update
7633 comment.
7634 (maintenance_show_test_options_completion_result): Change
7635 prototype. Just print
7636 maintenance_test_options_command_completion_text.
7637 (save_completion_result): New.
7638 (maintenance_test_options_completer_mode): Pass options context to
7639 complete_options, and then save a dump.
7640 (_initialize_maint_test_options): Use add_cmd to install "maint
7641 show test-options-completion-result".
7642
fdbc9870
PA
76432019-07-03 Pedro Alves <palves@redhat.com>
7644
7645 * NEWS (New commands): Mention "with" and "maint with".
7646 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7647 (with_command, with_command_completer): New.
7648 (pipe_command): Adjust to new repeat_previous
7649 interface.
7650 (_initialize_cli_cmds): Install the "with" command and its "w"
7651 alias.
7652 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7653 declarations.
7654 * cli/cli-setshow.c (parse_cli_var_uinteger)
7655 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7656 argument strings for all var_types.
7657 (get_setshow_command_value_string): New, factored out from ...
7658 (do_show_command): ... this.
7659 * cli/cli-setshow.h: Include <string>.
7660 (get_setshow_command_value_string): Declare.
7661 * command.h (repeat_previous): Now returns const char *. Adjust
7662 comment.
7663 * maint.c: Include "cli/cli-cmds.h".
7664 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7665 (_initialize_maint_cmds): Register the "maintenance with" command.
7666 * top.c (repeat_previous): Move bits from pipe_command here:
7667 Return the saved command line, if any; error out if there's no
7668 command to relaunch.
7669
c6ac8931
PA
76702019-07-03 Pedro Alves <palves@redhat.com>
7671
7672 * NEWS (New commands): Mention "maint set/show test-settings"
7673 instead of "maint test-settings".
7674 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7675 (maintenance_test_settings_set_list): Rename to ...
7676 (maintenance_set_test_settings_list): ... this.
7677 (maintenance_test_settings_show_list): Rename to ...
7678 (maintenance_show_test_settings_list): ... this.
7679 (maintenance_test_settings_cmd): Delete.
7680 (maintenance_test_settings_set_cmd): ...
7681 (maintenance_set_test_settings_cmd): ... this.
7682 (maintenance_test_settings_show_cmd): ...
7683 (maintenance_show_test_settings_cmd): ... this.
7684 (maintenance_test_settings_show_value_cmd):
7685 (maintenance_show_test_settings_value_cmd): ... this.
7686 (_initialize_maint_test_settings): No longer install the "maint
7687 test-settings" prefix command. Rename "maint test-settings set"
7688 to "maint set test-settings", and "maint test-settings show" to
7689 "maint show test-settings". Adjust all subcommands.
7690
d1fcf2fd
PA
76912019-07-03 Pedro Alves <palves@redhat.com>
7692
7693 * maint-test-settings.c: Fix file's intro comment. Replace all
7694 references to "test-options" with references to "test-settings",
7695 in comments.
7696
970f9d09
PA
76972019-07-03 Pedro Alves <palves@redhat.com>
7698
7699 * maint-test-settings.c (maintenance_test_settings_xxx)
7700 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7701 New.
7702 (maintenance_test_settings_enums): Use them.
7703 (maintenance_test_settings_enum): Default to
7704 maintenance_test_settings_xxx.
7705 (_initialize_maint_test_settings): Initialize
7706 MAINTENANCE_TEST_SETTINGS_FILENAME.
7707
f3869b1a
SM
77082019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7709
7710 * breakpoint.h (remove_breakpoints_inf): Change return type to
7711 void, move function documentation here.
7712 * breakpoint.c (remove_breakpoints_inf): Change return type to
7713 void, move function documentation to header.
7714
54d66006
PA
77152019-07-02 Pedro Alves <palves@redhat.com>
7716
7717 * NEWS (Completion improvements): Mention "info threads".
7718 * thread.c (struct info_threads_opts, info_threads_option_defs)
7719 (make_info_threads_options_def_group): New.
7720 (info_threads_command): Use gdb::option::process_options.
7721 (info_threads_command_completer): New.
7722 (_initialize_thread): Use gdb::option::build_help to build the
7723 help text for "info threads".
7724
854f6088
SM
77252019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7726
7727 * defs.h (generic_load): Move from here...
7728 * symfile.h (generic_load): ... to here. Rename name parameter
7729 to args.
7730 * symfile.c (generic_load): Add comment.
7731
54ee4252
TT
77322019-07-01 Tom Tromey <tromey@adacore.com>
7733
7734 * dwarf2read.c
7735 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7736 declaration of without_params. Fix formatting.
7737
65392b3e
TT
77382019-07-01 Tom Tromey <tromey@adacore.com>
7739
7740 * ada-exp.y (find_primitive_type): Update.
7741 * ada-lang.h (ada_lookup_symbol): Update.
7742 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7743 parameter.
7744 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7745
7d7571f0
SDJ
77462019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7747
7748 PR breakpoints/24541
7749 * gdbarch.c: Regenerate.
7750 * gdbarch.h: Regenerate.
7751 * gdbarch.sh: Add 'stap_adjust_register'.
7752 * i386-tdep.c: Include '<unordered_set>'.
7753 (i386_stap_adjust_register): New function.
7754 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7755 * stap-probe.c (stap_parse_register_operand): Call
7756 'gdbarch_stap_adjust_register'.
7757
5af5392a
SDJ
77582019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7759
7760 PR python/24742
7761 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7762 * python/python.c (do_start_initialization): Use 'xmalloc'
7763 instead of 'PyMem_Malloc'.
7764
10d06d82
TT
77652019-06-28 Tom Tromey <tromey@adacore.com>
7766
7767 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7768 for Ada.
7769
1b7f24cd
TT
77702019-06-27 Tom Tromey <tromey@adacore.com>
7771
7772 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7773 objfile_key.
7774 (arm_find_mapping_symbol, arm_record_special_symbol)
7775 (_initialize_arm_tdep): Update.
7776 (arm_objfile_data_free): Remove.
7777
3d507ff2
TT
77782019-06-27 Tom Tromey <tromey@adacore.com>
7779
7780 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7781 to cp_print_static_field.
7782
762c164d
TT
77832019-06-26 Tom Tromey <tromey@adacore.com>
7784
7785 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7786 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7787 declare.
7788
aa2f9bcf
AH
77892019-06-26 Alan Hayward <alan.hayward@arm.com>
7790
7791 * features/aarch64-core.c (create_feature_aarch64_core):
7792 Regenerate.
7793 * features/aarch64-core.xml: Add cpsr flags.
7794
3426ae57
AH
77952019-06-26 Alan Hayward <alan.hayward@arm.com>
7796
7797 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7798 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7799
4838e44c
SM
78002019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7801
7802 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7803 field.
7804 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7805 use.
7806 (arm_record_special_symbol): Don't insert new symbol in sorted
7807 position, push it at the end.
7808
54cc7474
SM
78092019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7810
7811 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7812 (arm_mapping_symbol_s): Remove.
7813 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7814 (arm_mapping_symbol_vec): New typedef.
7815 (struct arm_per_objfile): Add constructor.
7816 <section_maps>: Change type to
7817 std::unique_ptr<arm_mapping_symbol_vec[]>.
7818 (arm_compare_mapping_symbols): Remove.
7819 (arm_find_mapping_symbol): Adjust to section_maps type change.
7820 (arm_objfile_data_free): Call delete on arm_per_objfile.
7821 (arm_record_special_symbol): Adjust to section_maps type change.
7822 Allocate arm_per_objfile with new.
7823
b65b566c
PW
78242019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7825
7826 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7827 with the command prefix.
7828
c2fc64f5
TT
78292019-06-25 Tom Tromey <tom@tromey.com>
7830
7831 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7832 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7833
fb54fa76
TT
78342019-06-25 Tom Tromey <tom@tromey.com>
7835
7836 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7837 type.
7838 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7839 protected.
7840
f7952c57
TT
78412019-06-25 Tom Tromey <tom@tromey.com>
7842
7843 * tui/tui-winsource.c
7844 (tui_source_window_base::set_is_exec_point_at): Add check against
7845 LOA_ADDRESS.
7846
17568d78
TT
78472019-06-25 Tom Tromey <tom@tromey.com>
7848
7849 * tui/tui-source.c (tui_set_source_content): Don't check before
7850 xfree.
7851 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7852
53e7cdba
TT
78532019-06-25 Tom Tromey <tom@tromey.com>
7854
7855 * tui/tui-winsource.h (tui_update_source_window_as_is)
7856 (tui_alloc_source_buffer, tui_line_is_displayed)
7857 (tui_addr_is_displayed): Change type of win_info.
7858 * tui/tui-winsource.c (tui_update_source_window_as_is)
7859 (tui_clear_source_content, tui_show_source_line)
7860 (tui_show_source_content, tui_source_window_base::refill)
7861 (tui_source_window_base::set_is_exec_point_at)
7862 (tui_source_window_base::set_is_exec_point_at)
7863 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7864 (tui_alloc_source_buffer, tui_line_is_displayed)
7865 (tui_addr_is_displayed): Change type of win_info. Update.
7866 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7867 (tui_source_window_base::do_make_visible_with_new_height):
7868 Update.
7869 * tui/tui-source.c (tui_set_source_content)
7870 (tui_set_source_content_nil)
7871 (tui_source_window::do_scroll_vertical): Update.
7872 * tui/tui-layout.c (show_layout): Update.
7873 * tui/tui-disasm.c (tui_set_disassem_content)
7874 (tui_disasm_window::do_scroll_vertical): Update.
7875 * tui/tui-data.h (tui_win_content): Remove.
7876 (struct tui_gen_win_info) <content, content_size>: Remove.
7877 (struct tui_source_element): Add initializers and destructor.
7878 (union tui_which_element, struct tui_win_element): Remove.
7879 (struct tui_source_window_base) <content>: New field.
7880 (struct tui_data_window): Remove destructor.
7881 (tui_alloc_content, tui_free_win_content)
7882 (tui_free_all_source_wins_content): Don't declare.
7883 * tui/tui-data.c (tui_initialize_static_data): Update.
7884 (init_content_element, tui_alloc_content): Remove.
7885 (~tui_gen_win_info): Update.
7886 (~tui_data_window, tui_free_all_source_wins_content)
7887 (tui_free_win_content, free_content, free_content_elements):
7888 Remove.
7889
7908abbf
TT
78902019-06-25 Tom Tromey <tom@tromey.com>
7891
7892 * tui/tui-winsource.h (tui_clear_source_content)
7893 (tui_erase_source_content, tui_show_source_content): Change type
7894 of win_info.
7895 * tui/tui-winsource.c (tui_clear_source_content)
7896 (tui_erase_source_content, tui_show_source_content): Change type
7897 of win_info.
7898 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7899 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7900 win_info.
7901 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7902 win_info.
7903 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7904
02c28df0
TT
79052019-06-25 Tom Tromey <tom@tromey.com>
7906
7907 * tui/tui-winsource.c (tui_clear_source_content)
7908 (tui_source_window_base::set_is_exec_point_at): Update.
7909 * tui/tui-source.c (tui_set_source_content_nil): Update.
7910 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7911 a bool.
7912 * tui/tui-data.c (init_content_element): Update.
7913
6658b1bf
TT
79142019-06-25 Tom Tromey <tom@tromey.com>
7915
7916 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7917 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7918 * tui/tui-layout.c (init_and_make_win): Update.
7919 * tui/tui.h (enum tui_win_type): Update.
7920 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7921 tui_win_is_auxillary.
7922 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7923 tui_win_is_auxillary.
7924
21e1c91e
TT
79252019-06-25 Tom Tromey <tom@tromey.com>
7926
7927 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7928 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7929 (tui_delete_data_content_windows, tui_display_all_data)
7930 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7931 Update.
7932 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7933 * tui/tui-regs.c (tui_last_regs_line_no)
7934 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7935 (tui_show_registers): Update.
7936 (tui_show_register_group): Return void. Update.
7937 (tui_display_registers_from, tui_display_reg_element_at_line)
7938 (tui_display_registers_from_line, tui_check_register_values):
7939 Update.
7940 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7941 member.
7942 (struct tui_data_window) <regs_content>: Now a std::vector.
7943 <regs_content_count>: Remove.
7944 (tui_add_content_elements, tui_free_data_content): Don't declare.
7945 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7946 (init_content_element): Remove DATA_WIN case. Add assert.
7947 (tui_add_content_elements): Remove.
7948 (tui_data_window): Update.
7949 (tui_free_data_content): Remove.
7950 (free_content_elements): Remove DATA_WIN case.
7951
115ac53b
TT
79522019-06-25 Tom Tromey <tom@tromey.com>
7953
7954 * tui/tui-data.c (tui_data_item_window): Update.
7955 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7956 * tui/tui-windata.c (tui_display_all_data)
7957 (tui_display_data_from_line): Update.
7958 (tui_check_data_values): Remove.
7959 * tui/tui-regs.c (tui_show_register_group)
7960 (tui_display_reg_element_at_line): Update.
7961 * tui/tui-hooks.c (tui_register_changed)
7962 (tui_refresh_frame_and_register_information): Call
7963 tui_check_register_values.
7964 * tui/tui-data.h (struct tui_data_window) <data_content,
7965 data_content_count, data_type>: Remove.
7966 (enum tui_data_type): Remove.
7967
7968 * tui/tui-data.c (tui_data_window::clear_detail)
7969 (~tui_data_window): Update.
7970
eaf9738b
TT
79712019-06-25 Tom Tromey <tom@tromey.com>
7972
7973 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7974 declare.
7975 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7976 Rename from tui_first_data_item_displayed. Update.
7977 (tui_data_window::refresh_all)
7978 (tui_data_window::do_scroll_vertical): Update.
7979 * tui/tui-data.h (struct tui_data_window)
7980 <first_data_item_displayed>: Declare new method.
7981
31ca4723
TT
79822019-06-25 Tom Tromey <tom@tromey.com>
7983
7984 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7985 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7986 contents...
7987 (tui_initialize_static_data): ...here.
7988
41bcff7f
TT
79892019-06-25 Tom Tromey <tom@tromey.com>
7990
7991 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7992 (tui_display_registers_from, tui_check_register_values): Update.
7993 (tui_display_register): Remove win_info parameter; update.
7994 (tui_get_register): Change type of parameters.
7995 * tui/tui-data.h (struct tui_data_element): Remove.
7996 (union tui_which_element) <data>: Remove.
7997 <data_window>: Change type.
7998 (struct tui_data_item_window): New.
7999 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8000 case. Add assert.
8001 (~tui_data_item_window): New destructor.
8002 (free_content_elements): Remove DATA_ITEM_WIN case.
8003
d2802c33
TT
80042019-06-25 Tom Tromey <tom@tromey.com>
8005
8006 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8007 Remove.
8008
dd835f8b
TT
80092019-06-25 Tom Tromey <tom@tromey.com>
8010
8011 * tui/tui-data.h (struct tui_command_element): Remove.
8012 (union tui_which_element) <command>: Remove.
8013 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8014 assert.
8015 (free_content_elements): Remove CMD_WIN case.
8016
bd7db367
TT
80172019-06-25 Tom Tromey <tom@tromey.com>
8018
8019 * tui/tui-layout.c (tui_set_layout): Update.
8020 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8021 * tui/tui-data.c (layout_def): Update.
8022
3add462f
TT
80232019-06-25 Tom Tromey <tom@tromey.com>
8024
8025 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8026 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8027 (tui_source_window_base::set_new_height): Update.
8028 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8029 Update.
8030 (tui_set_locator_fullname, tui_set_locator_info)
8031 (tui_show_frame_info): Update.
8032 * tui/tui-source.c (tui_set_source_content)
8033 (tui_source_is_displayed): Update.
8034 * tui/tui-layout.c (show_source_disasm_command, show_data)
8035 (show_source_or_disasm_and_command): Update.
8036 * tui/tui-disasm.c (tui_set_disassem_content)
8037 (tui_get_begin_asm_address): Update.
8038 * tui/tui-data.h (struct tui_locator_element): Remove.
8039 (union tui_which_element) <locator>: Remove.
8040 (struct tui_locator_window): New.
8041 (tui_locator_win_info_ptr): Change return type.
8042 * tui/tui-data.c (_locator): Change type.
8043 (tui_locator_win_info_ptr): Change return type.
8044 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8045 (tui_alloc_content): Add assert.
8046
489e9d8b
TT
80472019-06-25 Tom Tromey <tom@tromey.com>
8048
8049 * tui/tui-winsource.c
8050 (tui_exec_info_window::maybe_allocate_content): New method.
8051 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8052 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8053 (make_source_or_disasm_window): Add cast.
8054 * tui/tui-data.h (union tui_which_element) <simple_string>:
8055 Remove.
8056 (struct tui_source_info): New.
8057 (struct tui_source_window_base) <execution_info>: Change type.
8058 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8059 case, and add assert.
8060 (tui_alloc_content): Add assert.
8061
c3fabb7d
TT
80622019-06-25 Tom Tromey <tom@tromey.com>
8063
8064 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8065 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8066 * tui/tui-data.c (tui_alloc_win_info): Remove.
8067
bbc228ee
TT
80682019-06-25 Tom Tromey <tom@tromey.com>
8069
8070 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8071 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8072 can_highlight.
8073
5fcee43a
TT
80742019-06-25 Tom Tromey <tom@tromey.com>
8075
8076 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8077 make_visible_with_new_height method.
8078 (tui_win_info::make_visible_with_new_height): New method.
8079 (tui_source_window_base::do_make_visible_with_new_height)
8080 (tui_data_window::do_make_visible_with_new_height)
8081 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8082 (make_visible_with_new_height): Remove.
8083 (tui_resize_all, tui_adjust_win_heights): Use
8084 make_visible_with_new_height method.
8085 * tui/tui-data.h (struct tui_win_info)
8086 <do_make_visible_with_new_height, make_visible_with_new_height>:
8087 New methods.
8088 (struct tui_source_window_base, struct tui_data_window)
8089 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8090 methods.
8091
d83f1fe6
TT
80922019-06-25 Tom Tromey <tom@tromey.com>
8093
8094 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8095 method.
8096 (update_tab_width): Call update_tab_width method.
8097 * tui/tui-data.h (struct tui_win_info)
8098 (struct tui_source_window_base) <update_tab_width>: New methods.
8099
17374de4
TT
81002019-06-25 Tom Tromey <tom@tromey.com>
8101
8102 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8103 parameter.
8104 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8105 parameter.
8106 (tui_gen_win_info::make_visible): Update.
8107 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8108 parameter.
8109 * tui/tui-data.h (enum tui_box): New enum.
8110 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8111
f936bca2
TT
81122019-06-25 Tom Tromey <tom@tromey.com>
8113
8114 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8115 init_and_make_win for EXEC_INFO_WIN.
8116 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8117 longer inline.
8118 (struct tui_win_info) <~tui_win_info>: Inline.
8119 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8120 Don't declare.
8121 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8122 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8123 Remove.
8124 (tui_initialize_static_data): Update.
8125 (~tui_gen_win_info): Handle more cleanup here.
8126 (~tui_source_window_base): Delete "execution_info".
8127 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8128
d6ba6a11
TT
81292019-06-25 Tom Tromey <tom@tromey.com>
8130
8131 * tui/tui-layout.c (make_command_window): Don't set
8132 can_highlight.
8133 (show_source_disasm_command): Call the reset method.
8134 (show_data): Don't set can_highlight. Call the reset method.
8135 (tui_gen_win_info::reset): Rename from init_gen_win_info
8136 (init_and_make_win): Simplify. Return tui_gen_win_info.
8137 (show_source_or_disasm_and_command): Call the reset method.
8138 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8139 (struct tui_cmd_window): Set can_highlight.
8140
48a3bd16
TT
81412019-06-25 Tom Tromey <tom@tromey.com>
8142
8143 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8144 from make_visible.
8145 (tui_make_visible, tui_make_invisible): Rewrite.
8146 (tui_win_info::make_visible): Remove.
8147 (tui_source_window_base::make_visible): Update.
8148 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8149 method. Moved from...
8150 (struct tui_win_info) <make_visible>: ...here.
8151
c3bd716f
TT
81522019-06-25 Tom Tromey <tom@tromey.com>
8153
8154 * tui/tui-winsource.c
8155 (tui_source_window_base::do_scroll_horizontal): Remove direction
8156 parameter.
8157 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8158 direction parameter.
8159 * tui/tui-win.c (tui_win_info::forward_scroll)
8160 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8161 (tui_win_info::right_scroll): Update.
8162 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8163 direction parameter.
8164 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8165 direction parameter.
8166 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8167 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8168 Remove direction parameter.
8169 (struct tui_source_window_base, struct tui_source_window)
8170 (struct tui_disasm_window, struct tui_data_window)
8171 (struct tui_cmd_window): Update.
8172
21c32dca
TT
81732019-06-25 Tom Tromey <tom@tromey.com>
8174
8175 * tui/tui-winsource.h (tui_set_exec_info_content)
8176 (tui_show_exec_info_content, tui_erase_exec_info_content)
8177 (tui_clear_exec_info_content, tui_update_exec_info): Change
8178 argument to tui_source_window_base.
8179 * tui/tui-winsource.c (tui_set_exec_info_content)
8180 (tui_show_exec_info_content, tui_erase_exec_info_content)
8181 (tui_clear_exec_info_content, tui_update_exec_info): Change
8182 argument to tui_source_window_base.
8183
73fbdc65
TT
81842019-06-25 Tom Tromey <tom@tromey.com>
8185
8186 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8187 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8188
33325343
TT
81892019-06-25 Tom Tromey <tom@tromey.com>
8190
8191 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8192 check.
8193
29d2c474
TT
81942019-06-25 Tom Tromey <tom@tromey.com>
8195
8196 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8197 type to void.
8198 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8199 type to void.
8200 * tui/tui-source.c (tui_set_source_content): Update.
8201 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8202
152f3f4b
TT
82032019-06-25 Tom Tromey <tom@tromey.com>
8204
8205 * tui/tui-win.c (window_name_completer, tui_set_focus)
8206 (tui_all_windows_info): Use name method.
8207 * tui/tui-data.h (struct tui_gen_win_info)
8208 (struct tui_source_window, struct tui_disasm_window)
8209 (struct tui_data_window, struct tui_cmd_window) <name>: New
8210 method.
8211 (tui_win_name): Don't declare.
8212 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8213 (tui_win_name): Remove.
8214
be4da588
TT
82152019-06-25 Tom Tromey <tom@tromey.com>
8216
8217 * tui/tui-winsource.h (tui_update_source_window)
8218 (tui_update_source_window_as_is): Change parameter type.
8219 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8220 to be a tui_source_window_base.
8221 (tui_update_source_window_as_is): Likewise.
8222 * tui/tui-win.c (make_visible_with_new_height): Update.
8223
5b81daba
TT
82242019-06-25 Tom Tromey <tom@tromey.com>
8225
8226 * tui/tui-winsource.c (tui_erase_source_content)
8227 (tui_show_source_content, tui_show_exec_info_content)
8228 (tui_erase_exec_info_content): Use refresh_window method.
8229 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8230 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8231 from tui_refresh_win.
8232 (tui_data_window::refresh_window): New method.
8233 (tui_win_info::refresh, tui_source_window_base::refresh)
8234 (tui_refresh_all): Use refresh_window method.
8235 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8236 method.
8237 * tui/tui-regs.c (tui_display_register): Call refresh_window
8238 method.
8239 * tui/tui-layout.c (show_source_disasm_command)
8240 (show_source_or_disasm_and_command): Call refresh_window method.
8241 * tui/tui-data.h (struct tui_gen_win_info)
8242 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8243 New method.
8244
cb2ce893
TT
82452019-06-25 Tom Tromey <tom@tromey.com>
8246
8247 * tui/tui.c (tui_rl_other_window, tui_enable)
8248 (tui_is_window_visible, tui_get_command_dimension): Update.
8249 * tui/tui-winsource.c (tui_update_source_window_as_is)
8250 (tui_clear_source_content, tui_erase_source_content)
8251 (tui_show_source_line, tui_source_window_base::refill)
8252 (tui_source_window_base::do_scroll_horizontal)
8253 (tui_source_window_base::set_is_exec_point_at)
8254 (tui_update_breakpoint_info, tui_set_exec_info_content)
8255 (tui_alloc_source_buffer, tui_line_is_displayed)
8256 (tui_addr_is_displayed): Update.
8257 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8258 (tui_check_and_display_highlight_if_needed)
8259 (tui_win_info::make_visible, tui_win_info::refresh)
8260 (tui_refresh_all): Update.
8261 * tui/tui-windata.c (tui_first_data_item_displayed)
8262 (tui_delete_data_content_windows, tui_erase_data_content)
8263 (tui_display_all_data, tui_data_window::refresh_all)
8264 (tui_check_data_values): Update.
8265 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8266 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8267 (tui_win_info::backward_scroll, tui_refresh_all_win)
8268 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8269 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8270 (tui_source_window_base::set_new_height)
8271 (tui_data_window::set_new_height)
8272 (make_invisible_and_set_new_height)
8273 (make_visible_with_new_height, new_height_ok)
8274 (parse_scrolling_args): Update.
8275 * tui/tui-stack.c (tui_show_frame_info): Update.
8276 * tui/tui-source.c (tui_set_source_content)
8277 (tui_set_source_content_nil, tui_source_is_displayed)
8278 (tui_source_window::do_scroll_vertical): Update.
8279 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8280 (tui_display_registers_from, tui_display_reg_element_at_line)
8281 (tui_check_register_values, tui_reg_command): Update.
8282 * tui/tui-layout.c (tui_default_win_height)
8283 (show_source_disasm_command, show_data, init_and_make_win)
8284 (show_source_or_disasm_and_command): Update.
8285 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8286 (tui_redisplay_readline, tui_mld_flush)
8287 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8288 (tui_getc): Update.
8289 * tui/tui-disasm.c (tui_set_disassem_content)
8290 (tui_disasm_window::do_scroll_vertical): Update.
8291 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8292 Now virtual.
8293 (struct tui_win_info): Derive from tui_gen_win_info.
8294 <~tui_win_info>: Mark as override.
8295 <generic>: Remove member.
8296 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8297 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8298 (~tui_data_window, ~tui_win_info)
8299 (tui_free_all_source_wins_content): Update.
8300 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8301
ab313b35
TT
83022019-06-25 Tom Tromey <tom@tromey.com>
8303
8304 * tui/tui-layout.c (init_and_make_win): Use new.
8305 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8306 destructor, initializers.
8307 (tui_alloc_generic_win_info): Don't declare.
8308 * tui/tui-data.c (_locator): Add argument to constructor.
8309 (source_win, disasm_win): New globals.
8310 (exec_info): Remove.
8311 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8312 Update.
8313 (tui_alloc_generic_win_info): Remove.
8314 (init_content_element): Use new.
8315 (tui_win_info::tui_win_info): Update.
8316 (free_content_elements) <case DATA_WIN>: Use delete.
8317
dc2c33e4
TT
83182019-06-25 Tom Tromey <tom@tromey.com>
8319
8320 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8321 * tui/tui-windata.c (tui_first_data_item_displayed)
8322 (tui_delete_data_content_windows): Update.
8323 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8324 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8325 (tui_display_registers_from, tui_check_register_values): Update.
8326 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8327 pointer.
8328 * tui/tui-data.c (init_content_element): Update. Allocate the new
8329 window.
8330 (tui_free_data_content): Update.
8331 (free_content_elements) <case DATA_WIN>: Free the window.
8332
214a5cbe
TT
83332019-06-25 Tom Tromey <tom@tromey.com>
8334
8335 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8336 Update.
8337 * tui/tui-layout.c (make_command_window)
8338 (show_source_disasm_command, show_data, init_and_make_win)
8339 (show_source_or_disasm_and_command): Update.
8340 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8341 method.
8342 <can_highight, is_highlighted>: Now bool.
8343 (tui_set_win_highlight): Don't declare.
8344 * tui/tui-data.c (tui_set_win_highlight): Remove.
8345
8e2daf15
TT
83462019-06-25 Tom Tromey <tom@tromey.com>
8347
8348 * tui/tui-wingeneral.c (make_visible): Remove check of window
8349 type.
8350
8903bd8a
TT
83512019-06-25 Tom Tromey <tom@tromey.com>
8352
8353 * tui/tui-win.c (tui_win_info::max_height)
8354 (tui_cmd_window::max_height): New methods.
8355 (new_height_ok): Call max_height.
8356 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8357 <max_height>: New method.
8358
3f02ce1e
TT
83592019-06-25 Tom Tromey <tom@tromey.com>
8360
8361 * tui/tui-win.c (tui_source_window_base::set_new_height)
8362 (tui_data_window::set_new_height): New methods.
8363 (make_invisible_and_set_new_height): Call set_new_height method.
8364 * tui/tui-data.h (struct tui_win_info)
8365 (struct tui_source_window_base, struct tui_data_window)
8366 <set_new_height>: New method.
8367
1825f487
TT
83682019-06-25 Tom Tromey <tom@tromey.com>
8369
8370 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8371 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8372 tui_refresh_data_win.
8373 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8374 method.
8375 (tui_refresh_all_win): Call the refresh_all method.
8376 (tui_set_focus): Likewise.
8377 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8378 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8379 Likewise.
8380
ad54d15b
TT
83812019-06-25 Tom Tromey <tom@tromey.com>
8382
8383 * tui/tui-winsource.h (tui_refill_source_window)
8384 (tui_set_is_exec_point_at): Don't declare.
8385 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8386 (tui_source_window_base::refill): Rename from
8387 tui_refill_source_window.
8388 (tui_source_window_base::do_scroll_horizontal): Update.
8389 (tui_source_window_base::set_is_exec_point_at): Rename from
8390 tui_set_is_exec_point_at.
8391 (tui_update_all_breakpoint_info): Update.
8392 * tui/tui-stack.c (tui_show_frame_info): Update.
8393 * tui/tui-layout.c (show_data): Add cast.
8394 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8395 * tui/tui-data.h (struct tui_source_window_base) <refill,
8396 set_is_exec_point_at>: New methods.
8397 (tui_source_windows, tui_add_to_source_windows): Update types.
8398 (tui_add_to_source_windows): Remove redundant declaration.
8399 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8400 (tui_source_windows): Change return type.
8401 (tui_clear_source_windows_detail): Update.
8402 (tui_add_to_source_windows): Change type of parameter.
8403 (tui_free_all_source_wins_content): Update.
8404
2042b506
TT
84052019-06-25 Tom Tromey <tom@tromey.com>
8406
8407 * tui/tui-wingeneral.c (tui_win_info::refresh)
8408 (tui_source_window_base::refresh): New methods.
8409 (tui_refresh_all): Call the refresh method.
8410 * tui/tui-data.h (struct tui_win_info)
8411 (struct tui_source_window_base) <refresh>: New method.
8412
56122977
TT
84132019-06-25 Tom Tromey <tom@tromey.com>
8414
8415 * tui/tui.h (tui_is_window_visible): Return bool.
8416 * tui/tui.c (tui_is_window_visible): Return bool.
8417 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8418 (tui_make_visible, tui_make_invisible)
8419 (tui_win_info::make_visible)
8420 (tui_source_window_base::make_visible, make_all_visible)
8421 (tui_make_all_visible, tui_make_all_invisible): Update.
8422 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8423 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8424 bool.
8425 (struct tui_win_info, struct tui_source_window_base)
8426 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8427 * tui/tui-data.c (tui_init_generic_part): Update.
8428
cda37efb
TT
84292019-06-25 Tom Tromey <tom@tromey.com>
8430
8431 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8432 (tui_source_window_base::make_visible): New methods.
8433 (make_all_visible): Make method call.
8434 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8435 (struct tui_source_window_base, struct tui_cmd_window): Override
8436 make_visible.
8437 (tui_win_is_source_type): Don't declare.
8438 * tui/tui-data.c (tui_win_is_source_type): Remove.
8439
6a0ee02c
TT
84402019-06-25 Tom Tromey <tom@tromey.com>
8441
8442 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8443 NULL check.
8444
63901aec
TT
84452019-06-25 Tom Tromey <tom@tromey.com>
8446
8447 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8448 Inline constructor. Add initializers for members.
8449 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8450 constructors; now inline in class.
8451
ceb13a13
TT
84522019-06-25 Tom Tromey <tom@tromey.com>
8453
8454 * tui/tui-regs.c (tui_show_registers): Update.
8455 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8456 bool.
8457 * tui/tui-data.c (tui_data_window::clear_detail)
8458 (tui_data_window): Update.
8459
238eb706
TT
84602019-06-25 Tom Tromey <tom@tromey.com>
8461
8462 * tui/tui-windata.c (tui_display_all_data)
8463 (tui_display_data_from_line, tui_display_data_from)
8464 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8465 Update.
8466 * tui/tui-regs.c (tui_last_regs_line_no)
8467 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8468 (tui_show_registers, tui_show_register_group)
8469 (tui_display_registers_from, tui_display_reg_element_at_line)
8470 (tui_display_registers_from_line, tui_check_register_values)
8471 (tui_reg_next, tui_reg_prev): Update.
8472 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8473 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8474 tui_data_window.
8475 (struct tui_win_info) <detail>: Remove. Add new fields from
8476 tui_data_info.
8477 (TUI_DATA_WIN): Add cast.
8478 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8479 (~tui_data_window): Simplify.
8480
81491aa0
TT
84812019-06-25 Tom Tromey <tom@tromey.com>
8482
8483 * tui/tui-layout.c (show_source_disasm_command)
8484 (show_source_or_disasm_and_command): Update.
8485 * tui/tui-io.c (update_cmdwin_start_line)
8486 (tui_redisplay_readline): Update.
8487 * tui/tui-data.h (struct tui_command_info): Remove.
8488 (struct tui_win_info) <detail>: Remove command_info member.
8489 (struct tui_data_window) <start_line>: New member, from
8490 tui_command_info.
8491 (TUI_CMD_WIN): Add casts.
8492
e6e41501
TT
84932019-06-25 Tom Tromey <tom@tromey.com>
8494
8495 * tui/tui-winsource.c (tui_update_source_window)
8496 (tui_refill_source_window)
8497 (tui_source_window_base::do_scroll_horizontal)
8498 (tui_update_breakpoint_info, tui_set_exec_info_content)
8499 (tui_show_exec_info_content, tui_erase_exec_info_content)
8500 (tui_clear_exec_info_content): Update.
8501 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8502 Update.
8503 * tui/tui-win.c (make_invisible_and_set_new_height)
8504 (make_visible_with_new_height): Update.
8505 * tui/tui-source.c (tui_set_source_content)
8506 (tui_show_symtab_source): Update.
8507 * tui/tui-layout.c (extract_display_start_addr)
8508 (show_source_disasm_command, show_data)
8509 (make_source_or_disasm_window)
8510 (show_source_or_disasm_and_command): Update.
8511 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8512 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8513 "gdbarch".
8514 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8515 to tui_source_window_base.
8516 (struct tui_win_info) <detail>: Remove source_info member.
8517 (struct tui_source_window_base) <has_locator>: Inline.
8518 Move contents from tui_source_info; rename has_locator member to
8519 m_has_locator.
8520 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8521 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8522 header file.
8523 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8524 Simplify.
8525 (tui_free_all_source_wins_content): Cast to
8526 tui_source_window_base.
8527
44f0e208
TT
85282019-06-25 Tom Tromey <tom@tromey.com>
8529
8530 * tui/tui-win.c (make_invisible_and_set_new_height)
8531 (make_visible_with_new_height): Call has_locator method.
8532 * tui/tui-layout.c (show_source_disasm_command, show_data)
8533 (show_source_or_disasm_and_command): Update for bool change.
8534 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8535 (tui_win_info) <has_locator>: New method.
8536 (struct tui_source_window_base) <has_locator>: New method.
8537 (tui_win_has_locator): Don't declare.
8538 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8539 from tui_win_has_locator.
8540 (tui_source_window_base): Use false, not FALSE.
8541
7778b912
TT
85422019-06-25 Tom Tromey <tom@tromey.com>
8543
8544 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8545 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8546 clear_detail method directly.
8547 (tui_clear_win_detail): Remove.
8548
f83d391c
TT
85492019-06-25 Tom Tromey <tom@tromey.com>
8550
8551 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8552 "this", not TUI_DISASM_WIN.
8553
13446e05
TT
85542019-06-25 Tom Tromey <tom@tromey.com>
8555
8556 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8557 declare.
8558 * tui/tui-winsource.c
8559 (tui_source_window_base::do_scroll_horizontal): Rename from
8560 tui_horizontal_source_scroll.
8561 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8562 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8563 from tui_vertical_data_scroll.
8564 * tui/tui-win.h (tui_scroll): Don't declare.
8565 * tui/tui-win.c (tui_win_info::forward_scroll)
8566 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8567 (tui_win_info::right_scroll): Rename and update.
8568 (tui_scroll_forward_command, tui_scroll_backward_command)
8569 (tui_scroll_left_command, tui_scroll_right_command): Update.
8570 (tui_scroll): Remove.
8571 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8572 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8573 from tui_vertical_source_scroll.
8574 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8575 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8576 from tui_vertical_disassem_scroll.
8577 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8578 do_scroll_horizontal>: New methods.
8579 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8580 Likewise.
8581 (struct tui_source_window_base): Add do_scroll_horizontal.
8582 (struct tui_source_window, struct tui_disasm_window): Add
8583 do_scroll_vertical.
8584 (struct tui_data_window, struct tui_cmd_window): Add
8585 do_scroll_horizontal and do_scroll_vertical.
8586 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8587
5cf82909
TT
85882019-06-25 Tom Tromey <tom@tromey.com>
8589
8590 * tui/tui-data.h (struct tui_source_window_base): New struct.
8591 (struct tui_source_window): Derive from tui_source_window_base.
8592 (struct tui_disasm_window): New struct.
8593 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8594 from tui_source_window::clear_detail.
8595 (tui_source_window_base): Rename from tui_source_window.
8596 (~tui_source_window_base): Rename from ~tui_source_window.
8597 (tui_alloc_win_info): Create a tui_disasm_window.
8598
ee1d42d6
TT
85992019-06-25 Tom Tromey <tom@tromey.com>
8600
8601 * tui/tui-data.h (struct tui_source_window)
8602 (struct tui_data_window): Declare destructors.
8603 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8604 destructors.
8605 (tui_win_info): Simplify.
8606
b4eb2452
TT
86072019-06-25 Tom Tromey <tom@tromey.com>
8608
8609 * tui/tui-winsource.c (tui_display_main)
8610 (tui_update_source_windows_with_addr)
8611 (tui_update_all_breakpoint_info): Update.
8612 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8613 (new_height_ok, parse_scrolling_args): Update.
8614 * tui/tui-stack.c (tui_show_frame_info): Update.
8615 * tui/tui-data.h (struct tui_list): Remove.
8616 (tui_source_windows): Return a reference to a std::vector.
8617 * tui/tui-data.c (source_windows): Now a std::vector.
8618 (tui_source_windows): Change return type.
8619 (tui_clear_source_windows): Rewrite.
8620 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8621 (tui_free_all_source_wins_content): Rewrite.
8622
8761a91b
TT
86232019-06-25 Tom Tromey <tom@tromey.com>
8624
8625 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8626 (struct tui_data_window, struct tui_cmd_window): Declare
8627 clear_detail method.
8628 * tui/tui-data.c (tui_source_window::clear_detail)
8629 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8630 methods.
8631 (tui_clear_win_detail): Simplify.
8632
0ed69eda
TT
86332019-06-25 Tom Tromey <tom@tromey.com>
8634
8635 * tui/tui-layout.c (make_source_window, make_disasm_window)
8636 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8637 Return the new window.
8638 (show_source_disasm_command, show_data)
8639 (show_source_or_disasm_and_command): Update.
8640
82432e10
TT
86412019-06-25 Tom Tromey <tom@tromey.com>
8642
8643 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8644 parameter. Return the new window.
8645 (show_source_disasm_command): Update and remove NULL check.
8646 (show_source_or_disasm_and_command): Update.
8647
ec328aa5
TT
86482019-06-25 Tom Tromey <tom@tromey.com>
8649
8650 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8651
33b906ab
TT
86522019-06-25 Tom Tromey <tom@tromey.com>
8653
8654 * tui/tui-data.h (struct tui_win_info): Make constructor
8655 protected. Make destructor virtual. Add initializers.
8656 (tui_source_window, tui_data_window, tui_cmd_window): New
8657 classes.
8658 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8659 constructor. Add "type" parameter.
8660 (tui_source_window, tui_data_window, tui_cmd_window): New
8661 constructors.
8662 (tui_alloc_win_info): Instantiate the appropriate subclass.
8663
e7e11af4
TT
86642019-06-25 Tom Tromey <tom@tromey.com>
8665
8666 * tui/tui-win.c (tui_resize_all): Use delete.
8667 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8668 destructor.
8669 (tui_free_window): Don't declare.
8670 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8671 Update.
8672
6792b55e
TT
86732019-06-25 Tom Tromey <tom@tromey.com>
8674
8675 * tui/tui-data.h (struct tui_win_info): Add constructor.
8676 * tui/tui-data.c (tui_alloc_win_info): Use new.
8677 (tui_free_window): Use delete.
8678
f95675e1
TT
86792019-06-22 Tom Tromey <tom@tromey.com>
8680
8681 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8682 declare.
8683 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8684
5bff081c
TT
86852019-06-22 Tom Tromey <tom@tromey.com>
8686
8687 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8688 declare.
8689 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8690
47e3f474
TV
86912019-06-22 Tom de Vries <tdevries@suse.de>
8692
8693 * dwarf2read.c (create_addrmap_from_aranges)
8694 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8695 instead of '%zu'.
8696
fd5866f6
SM
86972019-06-21 Simon Marchi <simon.marchi@efficios.com>
8698
8699 * dwarf2read.h (dwarf2_section_info_def): Remove.
8700 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8701 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8702 std::vector<dwarf2_section_info>.
8703 (struct dwo_file) <~dwo_file>: Remove.
8704 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8705 types field.
8706 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8707 (dwarf2_read_debug_names): Likewise.
8708 (create_debug_types_hash_table): Change parameter type to
8709 array_view, adjust code accordingly.
8710 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8711 (partial_die_info::fixup): Likewise.
8712 (determine_prefix): Likewise.
8713 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8714
fb1eb2f9
SM
87152019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8716
8717 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8718 gdb_bfd_ref_ptr.
8719 <~dwo_file>: Remove call to gdb_bfd_unref.
8720 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8721 gdb_bfd_ref_ptr::get.
8722
51ac9db5
SM
87232019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8724
8725 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8726 type to htab_up.
8727 * dwarf2read.c (struct dwo_file): Initialize fields.
8728 <~dwo_file>: New.
8729 (free_dwo_file): Remove, move content to ~dwo_file.
8730 (struct dwo_file_deleter): Remove.
8731 (dwo_file_up>: Remove custom deleter.
8732 (free_dwo_files): Remove.
8733 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8734 dwo_files.
8735 (process_skeletonless_type_units): Call unique_ptr::get.
8736 (allocate_dwo_file_hash_table): Add deleter to created hash
8737 table. Change return type to htab_up.
8738 (lookup_dwo_file_slot): Don't memset dwo_file, call
8739 unique_ptr::get.
8740 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8741 (create_dwo_unit_in_dwp_v2): Likewise.
8742 (open_and_init_dwo_file): Likewise.
8743 (free_dwo_file_from_slot): Remove.
8744
dc4ccb6f
SM
87452019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8746
8747 * dwarf2read.h (struct dwarf2_section_info) <readin,
8748 is_virtual>: Change type to bool.
8749 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8750 true instead of 1.
8751
e6a1c5cb
TT
87522019-06-19 Tom Tromey <tom@tromey.com>
8753
8754 * tui/tui-data.h (tui_init_content_element): Don't declare.
8755
6f6ffbeb
TT
87562019-06-19 Tom Tromey <tom@tromey.com>
8757
8758 * tui/tui-data.h (tui_init_win_info): Don't declare.
8759
f23f598e
TV
87602019-06-19 Tom de Vries <tdevries@suse.de>
8761
8762 * dwarf2read.h (abstract_to_concrete): Change type to
8763 std::unordered_map<sect_offset, std::vector<sect_offset>,
8764 gdb::hash_enum<sect_offset>>.
8765
680e1bee
TT
87662019-06-19 Tom Tromey <tromey@adacore.com>
8767
8768 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8769 EVAL_AVOID_SIDE_EFFECTS specially.
8770
dcf37923
TT
87712019-06-19 Tom Tromey <tromey@adacore.com>
8772
8773 * source-cache.c (highlighter): New global.
8774 (source_cache::get_source_lines): Create a highlighter on demand.
8775
494986d5
AB
87762019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * defs.h (deprecated_interactive_hook): Delete declaration.
8779 * interps.c (clear_interpreter_hooks): Remove use of
8780 deprecated_interactive_hook.
8781 * top.c (deprecated_interactive_hook): Delete definition.
8782 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8783
3360b6e7
TV
87842019-06-18 Tom de Vries <tdevries@suse.de>
8785
8786 PR gdb/24515
8787 * dwarf2read.h (abstract_to_concrete): Change type from
8788 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8789 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8790 * dwarf2read.c (read_variable): Update.
8791 (dwarf2_fetch_die_loc_sect_off): Update.
8792
310b3441
TV
87932019-06-17 Tom de Vries <tdevries@suse.de>
8794
8795 PR gdb/24617
8796 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8797 accessing parent[parent_len - 1].
8798
ba9777be
PP
87992019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8800
8801 PR gdb/24364
8802 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8803 call dtrace_process_dof with NULL dof.
8804
2b9f6e89
TV
88052019-06-16 Tom de Vries <tdevries@suse.de>
8806
8807 PR gdb/24445
8808 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8809
431b3ead
TT
88102019-06-16 Tom Tromey <tom@tromey.com>
8811
8812 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8813 (make_all_visible): Use address of member.
8814
d04b44a1
TT
88152019-06-16 Tom Tromey <tom@tromey.com>
8816
8817 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8818 (tui_free_window, free_content, free_content_elements): Remove
8819 unnecessary cast.
8820 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8821 cast.
8822 * tui/tui-regs.c (tui_show_register_group)
8823 (tui_display_registers_from, tui_display_reg_element_at_line):
8824 Remove unnecessary cast.
8825
bf5142e7
AB
88262019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8827
8828 * linux-nat.c (normal_mask): Delete.
8829 (_initialize_linux_nat): Don't initialise normal_mask.
8830
c4973306
SM
88312019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8832
8833 PR gdb/24445
8834 * dwarf-index-write.h (write_psymtabs_to_index): Add
8835 dwz_basename parameter.
8836 * dwarf-index-write.c (write_gdbindex): Move file writing to
8837 write_gdbindex_1. Change return type void.
8838 (assert_file_size): Move up, remove filename parameter.
8839 (write_gdbindex_1): New function.
8840 (write_debug_names): Change return type to void, call
8841 assert_file_size.
8842 (struct index_wip_file): New struct.
8843 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8844 file logic to index_wip_file. Write index for dwz file if
8845 needed.
8846 (save_gdb_index_command): Pass basename of dwz file, if present.
8847 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8848 build-id of dwz file, if present.
8849 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8850 (dwarf2_get_dwz_file): Likewise.
8851 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8852 (dwarf2_get_dwz_file): Likewise.
8853
395f9c91
TT
88542019-06-16 Tom Tromey <tom@tromey.com>
8855
8856 * coffread.c (process_coff_symbol): Use xstrdup.
8857 * value.c (create_internalvar): Use xstrdup.
8858
cafb3438
TT
88592019-06-16 Tom Tromey <tom@tromey.com>
8860
8861 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8862 * breakpoint.c (stopin_command, stopat_command)
8863 (until_break_command, decode_location_default): Remove unnecessary
8864 cast.
8865 * utils.c (subset_compare): Remove unnecessary cast.
8866 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8867 cast.
8868 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8869 cast.
8870 * infcmd.c (path_command): Remove unnecessary cast.
8871 * coffread.c (decode_type): Remove unnecessary cast.
8872 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8873 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8874 * tui/tui-stack.c (tui_show_locator_content)
8875 (tui_show_frame_info): Remove unnecessary cast.
8876 * tui/tui-win.c (tui_scroll_forward_command)
8877 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8878 (parse_scrolling_args): Remove unnecessary cast.
8879 * tui/tui-data.c (init_win_info, tui_del_window)
8880 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8881 (free_content_elements): Remove unnecessary cast.
8882 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8883 unnecessary cast.
8884 * tui/tui-source.c (tui_set_source_content)
8885 (tui_vertical_source_scroll): Remove unnecessary cast.
8886 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8887 cast.
8888 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8889 * tui/tui-regs.c (tui_display_registers_from)
8890 (tui_display_register): Remove unnecessary cast.
8891 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8892 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8893 (make_visible): Remove unnecessary cast.
8894 * tui/tui-winsource.c (tui_erase_source_content)
8895 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8896 unnecessary cast.
8897 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8898 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8899 * stabsread.c (read_type, read_array_type, read_range_type):
8900 Remove unnecessary cast.
8901 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8902 (parse_symbol, parse_type, upgrade_type, parse_external)
8903 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8904 unnecessary cast.
8905 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8906
730ead81
TT
89072019-06-16 Tom Tromey <tom@tromey.com>
8908
8909 * tui/tui-data.c (tui_alloc_generic_win_info)
8910 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8911 checks.
8912
584a927c
AB
89132019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8914 Andrew Burgess <andrew.burgess@embecosm.com>
8915
8916 * f-typeprint.c (f_print_type): Don't return early for not
8917 associated or not allocated types.
8918 (f_type_print_varspec_suffix): Add print_rank parameter and print
8919 ranks of array types in case they dangling.
8920 (f_type_print_base): Add print_rank parameter.
8921
30056ea0
AB
89222019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8923
8924 * NEWS: Mention new MI commands.
8925 * break-catch-throw.c (enum exception_event_kind): Move to
8926 breakpoint.h.
8927 (print_mention_exception_catchpoint): Output text as a single
8928 message.
8929 (catch_exception_command_1): Rename to...
8930 (catch_exception_event): ...this, make non-static, update header
8931 command, and change some parameter types.
8932 (catch_catch_command): Update for changes to
8933 catch_exception_command_1.
8934 (catch_throw_command): Likewise.
8935 (catch_rethrow_command): Likewise.
8936 * breakpoint.c (enum exception_event_kind): Delete.
8937 * breakpoint.h (enum exception_event_kind): Moved here from
8938 break-catch-throw.c.
8939 (catch_exception_event): Declare.
8940 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8941 (mi_cmd_catch_throw): New function.
8942 (mi_cmd_catch_rethrow): New function.
8943 (mi_cmd_catch_catch): New function.
8944 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8945 'catch-catch' entries.
8946 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8947 (mi_cmd_catch_rethrow): Declare.
8948 (mi_cmd_catch_catch): Declare.
8949
ec8e2b6d
AB
89502019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8951
8952 * annotate.c (annotate_source_line): Change return type to void,
8953 update implementation to match.
8954 * annotate.h (annotate_source_line): Change return type to void,
8955 update header comment.
8956 * stack.c (print_frame_info): Don't change what frame information
8957 is printed based on whether annotations are on or not.
8958
0d3abd8c
AB
89592019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8960
8961 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8962 (annotate_source): Make static.
8963 (annotate_source_line): Moved from source.c and renamed from
8964 identify_source_line. Update the return type.
8965 * annotate.h (annotate_source): Delete declaration.
8966 (annotate_source_line): Declaration moved from source.h, and
8967 renamed from identify_source_line. Return type updated.
8968 * source.c (identify_source_line): Moved to annotate.c and renamed
8969 to annotate_source_line.
8970 (info_line_command): Remove check of annotation_level.
8971 * source.h (identify_source_line): Move declaration to annotate.h
8972 and rename to annotate_source_line.
8973 * stack.c: Add 'annotate.h' include.
8974 (print_frame_info): Remove check of annotation_level before
8975 calling annotate_source_line.
8976
00df30ae
AB
89772019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8978
8979 * source-cache.c (source_cache::get_plain_source_lines): Use
8980 open_source_file_with_line_charpos instead of just
8981 open_source_file, remove call to find_source_lines.
8982 (source_cache::get_source_lines): Likewise.
8983 * source.c (find_source_lines): Make static.
8984 (get_filename_and_charpos): Renamed into...
8985 (open_source_file_with_line_charpos): ..this along with changes to
8986 return a scoped_fd, and some other minor clean ups.
8987 (identify_source_line): Use open_source_file_with_line_charpos.
8988 (search_command_helper): Use open_source_file_with_line_charpos
8989 instead of just open_source_file, remove call to
8990 find_source_lines.
8991 * source.h (open_source_file_with_line_charpos): Declare new
8992 function.
8993 (find_source_lines): Delete declaration.
8994
afda45a2
AB
89952019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8996
8997 * source.c (get_filename_and_charpos): Remove fullname
8998 parameter.
8999 (identify_source_line): Update call to get_filename_and_charpos.
9000
0735b091
TT
90012019-06-14 Tom Tromey <tromey@adacore.com>
9002
9003 PR gdb/24502:
9004 * ui-style.h (skip_ansi_escape): Update comment.
9005 * ui-file.h (class no_terminal_escape_file): New class.
9006 * ui-file.c (no_terminal_escape_file::write)
9007 (no_terminal_escape_file::puts): New methods.
9008 * cli/cli-logging.c (handle_redirections): Use
9009 no_terminal_escape_file.
9010
52ce35e2
TT
90112019-06-14 Tom Tromey <tromey@adacore.com>
9012
9013 * NEWS: Move convenience variable news above Python news.
9014
73cc7272
TT
90152019-06-14 Tom Tromey <tom@tromey.com>
9016
9017 * gnulib: Move directory to top-level.
9018 * configure.ac: Don't configure gnulib.
9019 * configure: Rebuild.
9020 * common/common-defs.h: Use new path to gnulib.
9021 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9022 (GNULIB_H): Remove.
9023 (INCGNU): Look in new gnulib location.
9024 (HFILES_NO_SRCDIR): Remove gnulib files.
9025 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9026 (generated_files): Remove GNULIB_H.
9027 ($(LIBGNU), all-lib): Remove targets.
9028 (distclean): Don't mention GNULIB_BUILDDIR.
9029 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9030
f5686554
TT
90312019-06-14 Tom Tromey <tromey@adacore.com>
9032
9033 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9034 Warn if symbol file does not provide any symbols.
9035
a0c1ffed
TT
90362019-06-14 Tom Tromey <tromey@adacore.com>
9037
9038 * source.c (find_and_open_source): Respect basenames_may_differ.
9039
7c39e397
AB
90402019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9041
9042 * annotate.c (annotate_breakpoints_invalid): Make use of
9043 scoped_restore_terminal_state.
9044 (annotate_frames_invalid): Likewise.
9045
f411722c
TT
90462019-06-14 Tom Tromey <tromey@adacore.com>
9047
9048 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9049 allow assignment to an internalvar.
9050
4268ec18
TT
90512019-06-14 Tom Tromey <tromey@adacore.com>
9052
9053 * ada-lex.l: Allow "_" in attribute names.
9054
abdb711e
TT
90552019-06-14 Tom Tromey <tromey@adacore.com>
9056
9057 PR gdb/24653:
9058 * regcache.c (registers_changed): Don't call alloca.
9059 * top.c (execute_command): Don't call alloca.
9060
4c048731
PA
90612019-06-13 Pedro Alves <palves@redhat.com>
9062
9063 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9064 'expression'. When parsing an expression, error out if there's
9065 junk after "unlimited".
9066 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9067 (do_set_command): Adjust calls to is_unlimited_literal.
9068
66eb1ed3
PA
90692019-06-13 Pedro Alves <palves@redhat.com>
9070
9071 * compile/compile.c (make_compile_options_def_group): Add braces
9072 around array_view initializer.
9073 * thread.c (make_thread_apply_all_options_def_group)
9074 (make_thread_apply_all_options_def_group): Likewise.
9075
3345721a
PA
90762019-06-13 Pedro Alves <palves@redhat.com>
9077
9078 * NEWS (New commands): Mention "maint test-options
9079 require-delimiter", "maint test-options unknown-is-error", "maint
9080 test-options unknown-is-operand" and "maint show
9081 test-options-completion-result".
9082 (New command options, command completion): New section.
9083 (Completion improvements): New section.
9084 Mention that you can abbreviate "unlimited".
9085
6206060d
PA
90862019-06-13 Pedro Alves <palves@redhat.com>
9087
9088 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9089 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9090 * unittests/cli-utils-selftests.c (test_parse_flags)
9091 (test_parse_flags_qcs): Delete.
9092 (test_cli_utils): Don't call deleted functions.
9093
6665660a
PA
90942019-06-13 Pedro Alves <palves@redhat.com>
9095
9096 * thread.c: Include "cli/cli-option.h".
9097 (tp_array_compar_ascending): Global.
9098 (tp_array_compar): Delete function.
9099 (tp_array_compar_ascending, tp_array_compar_descending): New
9100 functions.
9101 (ascending_option_def, qcs_flag_option_def)
9102 (thr_qcs_flags_option_defs)
9103 (make_thread_apply_all_options_def_group)
9104 (make_thread_apply_options_def_group): New.
9105 (thread_apply_all_command): Use gdb::option::process_options.
9106 (thread_apply_command_completer)
9107 (thread_apply_all_command_completer): New.
9108 (thread_apply_command): Use gdb::option::process_options.
9109 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9110 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9111 to generate help text of "thread apply". Adjust "taas"'s help.
9112 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9113 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9114
f7e13587
PA
91152019-06-13 Pedro Alves <palves@redhat.com>
9116
9117 * thread.c (thread_apply_command): Check for invalid TID with
9118 isdigit instead of !isalpha.
9119
5d707134
PA
91202019-06-13 Pedro Alves <palves@redhat.com>
9121
9122 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9123 (validate_flags_qcs): New.
9124 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9125 (validate_flags_qcs): Declare.
9126 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9127 (make_frame_apply_options_def_group): New.
9128 (frame_apply_command_count): Process options with
9129 gdb::option::process_options.
9130 (frame_apply_completer): New.
9131 (frame_apply_level_completer, frame_apply_all_completer)
9132 (frame_apply_completer): New.
9133 (_initialize_stack): Update help of "frame apply", "frame apply
9134 level", "frame apply all" and "faas" to mention supported options
9135 and install command completers.
9136 * stack.h (frame_apply_all_completer): Declare.
9137 * thread.c: Include "stack.h".
9138 (tfaas_command): Add "--".
9139 (_initialize_thread): Update help "tfaas" to mention supported
9140 options and install command completer.
9141
272d4594
PA
91422019-06-13 Pedro Alves <palves@redhat.com>
9143
9144 * completer.c (complete_nested_command_line): New.
9145 (gdb_completion_word_break_characters_throw): Add assertion.
9146 * completer.h (complete_nested_command_line): Declare.
9147
90a1ef87
PA
91482019-06-13 Pedro Alves <palves@redhat.com>
9149
9150 * stack.c (parse_backtrace_qualifiers): New.
9151 (backtrace_command): Use it.
9152 (backtrace_command_completer): Complete on qualifiers.
9153
d4c16835
PA
91542019-06-13 Pedro Alves <palves@redhat.com>
9155
9156 * frame.c: Include "cli/cli-option.h.
9157 (user_set_backtrace_options): New.
9158 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9159 Delete.
9160 (get_prev_frame): Adjust.
9161 (boolean_option_def, uinteger_option_def)
9162 (set_backtrace_option_defs): New.
9163 (_initialize_frame): Adjust and use
9164 gdb::option::add_setshow_cmds_for_options to install "set
9165 backtrace past-main" and "set backtrace past-entry".
9166 * frame.h: Include "cli/cli-option.h".
9167 (struct frame_print_options): Forward declare.
9168 (print_frame_arguments_all, print_frame_arguments_scalars)
9169 (print_frame_arguments_none): Declare.
9170 (print_entry_values): Delete declaration.
9171 (struct frame_print_options, user_frame_print_options): New.
9172 (struct set_backtrace_options): New.
9173 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9174 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9175 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9176 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9177 (list_args_or_locals): Add frame_print_options parameter.
9178 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9179 * python/py-framefilter.c (enumerate_args): Pass down
9180 USER_FRAME_PRINT_OPTIONS.
9181 * stack.c: Include "cli/cli-option.h".
9182 (print_frame_arguments_all, print_frame_arguments_scalars)
9183 (print_frame_arguments_none): Declare.
9184 (print_raw_frame_arguments, print_entry_values): Delete.
9185 (user_frame_print_options): New.
9186 (boolean_option_def, enum_option_def, frame_print_option_defs):
9187 New.
9188 (struct backtrace_cmd_options): New.
9189 (bt_flag_option_def): New.
9190 (backtrace_command_option_defs): New.
9191 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9192 (print_frame_arg, read_frame_arg, print_frame_args)
9193 (print_frame_info, print_frame): Add frame_print_options parameter
9194 and use it.
9195 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9196 (backtrace_command_1): Add frame_print_options and
9197 backtrace_cmd_options parameters and use them.
9198 (make_backtrace_options_def_group): New.
9199 (backtrace_command): Process command options with
9200 gdb::option::process_options.
9201 (backtrace_command_completer): New.
9202 (_initialize_stack): Extend "backtrace"'s help to mention
9203 supported options. Install completer for "backtrace".
9204 Install some settings commands with add_setshow_cmds_for_options.
9205
2daf894e
PA
92062019-06-13 Pedro Alves <palves@redhat.com>
9207
9208 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9209 and that "set/show print raw frame-arguments" are now deprecated.
9210
9211 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9212 command.
9213 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9214 * stack.c (_initialize_stack): Install "set/show print
9215 raw-frame-arguments", and deprecate "set/show print raw
9216 frame-arguments".
9217 * valprint.c (_initialize_valprint): Deprecate "set/show print
9218 raw".
9219
e6ed716c
PA
92202019-06-13 Pedro Alves <palves@redhat.com>
9221
9222 * compile/compile.c (struct compile_options): New.
9223 (compile_flag_option_def, compile_command_option_defs)
9224 (make_compile_options_def_group): New.
9225 (compile_file_command): Handle options with
9226 gdb::option::process_options.
9227 (compile_file_command_completer): New function.
9228 (compile_code_command): Handle options with
9229 gdb::option::process_options.
9230 (compile_code_command_completer): New function.
9231 (_initialize_compiler): Install completers for "compile code" and
9232 "compile file". Mention available options in "compile code" and
9233 "compile code"'s help.
9234 * completer.c (advance_to_completion_word): New, factored out from
9235 ...
9236 (advance_to_expression_complete_word_point): ... this.
9237 (advance_to_filename_complete_word_point): New.
9238 * completer.h (advance_to_filename_complete_word_point): New
9239 declaration.
9240
7d8062de
PA
92412019-06-13 Pedro Alves <palves@redhat.com>
9242
9243 * compile/compile.c: Include "cli/cli-option.h".
9244 (compile_print_value): Scope data pointer is now a
9245 value_print_options pointer; adjust.
9246 (compile_print_command): Process options. Scope data pointer is
9247 now a value_print_options pointer; adjust.
9248 (_initialize_compile): Update "compile print"'s help to include
9249 supported options. Install a completer for "compile print".
9250 * cp-valprint.c (show_vtblprint, show_objectprint)
9251 (show_static_field_print): Delete.
9252 (_initialize_cp_valprint): Don't install "set print
9253 static-members", "set print vtbl", "set print object" here.
9254 * printcmd.c: Include "cli/cli-option.h" and
9255 "common/gdb_optional.h".
9256 (print_command_parse_format): Rework to fill in a
9257 value_print_options instead of a format_data.
9258 (print_value): Change parameter type from format_data pointer to
9259 value_print_options reference. Adjust.
9260 (print_command_1): Process options. Adjust to pass down a
9261 value_print_options.
9262 (print_command_completer): New.
9263 (_initialize_printcmd): Install print_command_completer as
9264 handle_brkchars completer for the "print" command. Update
9265 "print"'s help to include supported options.
9266 * valprint.c: Include "cli/cli-option.h".
9267 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9268 here from cp-valprint.c.
9269 (boolean_option_def, uinteger_option_def)
9270 (value_print_option_defs, make_value_print_options_def_group):
9271 New. Use gdb::option::add_setshow_cmds_for_options to install
9272 "set print elements", "set print null-stop", "set print repeats",
9273 "set print pretty", "set print union", "set print array", "set
9274 print address", "set print symbol", "set print array-indexes".
9275 * valprint.h: Include <string> and "cli/cli-option.h".
9276 (make_value_print_options_def_group): Declare.
9277 (print_value): Change parameter type from format_data pointer to
9278 value_print_options reference.
9279 (print_command_completer): Declare.
9280
9d0faba9
PA
92812019-06-13 Pedro Alves <palves@redhat.com>
9282
9283 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9284 (COMMON_SFILES): Add maint-test-settings.c.
9285 * cli/cli-decode.c (boolean_enums): New global, factored out from
9286 ...
9287 (add_setshow_boolean_cmd): ... here.
9288 * cli/cli-decode.h (boolean_enums): Declare.
9289 * cli/cli-option.c: New file.
9290 * cli/cli-option.h: New file.
9291 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9292 factored out from ...
9293 (parse_cli_boolean_value(const char *)): ... this.
9294 (is_unlimited_literal): Change parameter type to pointer to
9295 pointer. Adjust and advance ARG pointer.
9296 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9297 (parse_cli_var_enum): New, factored out from ...
9298 (do_set_command): ... this. Adjust.
9299 * cli/cli-setshow.h (parse_cli_boolean_value)
9300 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9301 (parse_cli_var_enum): Declare.
9302 * cli/cli-utils.c: Include "cli/cli-option.h".
9303 (get_ulongest): New.
9304 * cli/cli-utils.h (get_ulongest): Declare.
9305 (check_for_argument): New overloads.
9306 * maint-test-options.c: New file.
9307
2c722807
PA
93082019-06-13 Pedro Alves <palves@redhat.com>
9309
9310 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9311 parse a range if "-" is at the end of the string.
9312
dee7b4c8
PA
93132019-06-13 Pedro Alves <palves@redhat.com>
9314
9315 * cli/cli-setshow.c (parse_auto_binary_operation)
9316 (parse_cli_boolean_value): Don't allow "o".
9317
dca0f6c0
PA
93182019-06-13 Pedro Alves <palves@redhat.com>
9319
9320 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9321 * NEWS: Mention maint test-settings KIND.
9322 * maint-test-settings.c: New file.
9323
597bf39d
PA
93242019-06-13 Pedro Alves <palves@redhat.com>
9325
9326 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9327 completer.
9328 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9329 "set" completers.
9330
48c410fb
PA
93312019-06-13 Pedro Alves <palves@redhat.com>
9332
9333 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9334 after item.
9335
93bcb043
PA
93362019-06-13 Pedro Alves <palves@redhat.com>
9337
9338 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9339
cbba3ecd
PA
93402019-06-13 Pedro Alves <palves@redhat.com>
9341
9342 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9343 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9344 call.
9345 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9346 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9347 calls.
9348 (check_for_argument): Skip spaces after argument.
9349
b9a3f842
PA
93502019-06-13 Pedro Alves <palves@redhat.com>
9351
9352 * thread.c (thread_apply_command): Adjust TID parsing.
9353 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9354 detected before end of string.
9355 (tid_is_in_list): Error out if LIST is invalid.
9356
3844e605
PA
93572019-06-13 Pedro Alves <palves@redhat.com>
9358
9359 * completer.c (complete_line_internal_1): Rewind completion word
9360 point.
9361 (completion_tracker::advance_custom_word_point_by): Change
9362 parameter type to int.
9363 * completer.h (completion_tracker::advance_custom_word_point_by):
9364 Likewise.
9365
00b56dbe
PA
93662019-06-13 Pedro Alves <palves@redhat.com>
9367
9368 * completer.c (advance_to_completion_word): Handle delimiters.
9369
d106773e
PA
93702019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9371
9372 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9373
08f10e02
TT
93742019-06-11 Tom Tromey <tom@tromey.com>
9375
9376 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9377 (xmalloc_failed): Move to alloc.c.
9378 * alloc.c: New file.
9379 * Makefile.in (COMMON_SFILES): Add alloc.c.
9380
1c7fe951
TT
93812019-06-11 Tom Tromey <tom@tromey.com>
9382
9383 * nat/linux-waitpid.c: Don't include server.h.
9384 (linux_debug): Remove.
9385 (my_waitpid): Update.
9386
89549d7f
TT
93872019-06-11 Tom Tromey <tromey@adacore.com>
9388
9389 * infcall.c (_initialize_infcall): Remove trailing newline from
9390 help.
9391 * user-regs.c (_initialize_user_regs): Remove trailing newline
9392 from help.
9393 * typeprint.c (_initialize_typeprint): Remove trailing newline
9394 from help.
9395 * reverse.c (_initialize_reverse): Remove trailing newlines from
9396 help.
9397 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9398 from help.
9399 * language.c (add_set_language_command): Remove trailing newline
9400 from help.
9401 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9402 help.
9403 * disasm.c (_initialize_disasm): Remove trailing newline from
9404 help.
9405 * top.c (init_main): Remove trailing newline from help.
9406 * interps.c (_initialize_interpreter): Remove trailing newline
9407 from help.
9408 * btrace.c (_initialize_btrace): Remove trailing newlines from
9409 help.
9410 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9411 from help.
9412 * python/python.c (_initialize_python): Remove trailing newline
9413 from help.
9414 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9415 help.
9416 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9417 from help. Reformat some text.
9418 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9419 from help.
9420 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9421 newline from help.
9422
86108c13
TT
94232019-06-11 Tom Tromey <tromey@adacore.com>
9424
9425 * darwin-nat.c (darwin_decode_exception_message)
9426 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9427
a7067863
AB
94282019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9429
9430 * valops.c (value_slice): Check for not allocated or not
9431 associated values.
9432
9ab08412
TV
94332019-06-10 Tom de Vries <tdevries@suse.de>
9434
9435 PR gdb/24618
9436 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9437 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9438 invalid.
9439
f19e22e9
TV
94402019-06-10 Tom de Vries <tdevries@suse.de>
9441
9442 PR gdb/24611
9443 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9444 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9445
e99f9db0
TV
94462019-06-10 Tom de Vries <tdevries@suse.de>
9447
9448 PR symtab/24545
9449 * symtab.c (struct demangled_name_entry): Add language field.
9450 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9451 static minimal symbol". Set and use language field.
9452
9bf7038b
TT
94532019-06-10 Tom Tromey <tromey@adacore.com>
9454
9455 * ada-lang.c (_initialize_ada_language): Update help text.
9456
422186a9
TT
94572019-06-10 Tom Tromey <tromey@adacore.com>
9458
9459 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9460 with a newline.
9461 * guile/guile.c (handle_boot_error): Don't end warning with a
9462 newline.
9463 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9464 warning with a newline.
9465 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9466 newline.
9467 (s12z_frame_cache): Likewise.
9468 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9469 a newline.
9470 * solib-svr4.c (disable_probes_interface): Don't end warning with
9471 a newline.
9472 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9473 newline.
9474 * python/python.c (do_finish_initialization): Don't end warning
9475 with a newline.
9476
25ce02ee
TT
94772019-06-10 Tom Tromey <tom@tromey.com>
9478
9479 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9480 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9481 gdbpy_enter.
9482
caa429d8
TT
94832019-06-10 Tom Tromey <tromey@adacore.com>
9484
9485 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9486 data.
9487 (elf_new_init): Don't call stabsread_new_init.
9488 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9489 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9490 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9491
81873cc8
TV
94922019-06-10 Tom de Vries <tdevries@suse.de>
9493
9494 PR symtab/16264
9495 PR symtab/24517
9496 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9497
4fa0265e
РИ
94982019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9499
9500 * source.c (find_and_open_source): Also rewrite relative file
9501 names.
9502
1a3da2cd
AB
95032019-04-26 Amos Bird <amosbird@gmail.com>
9504
9505 * annotate.c (annotate_thread_exited): Add "thread-exited"
9506 annotation.
9507
3847a7bf
TT
95082019-06-06 Tom Tromey <tromey@adacore.com>
9509
9510 * maint.h (class scoped_command_stats): Use
9511 DISABLE_COPY_AND_ASSIGN.
9512 <print_time>: New method.
9513 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9514 print_time.
9515 (scoped_command_stats::print_time): New method.
9516
312617a3
AB
95172019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9518
9519 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9520 instructions of lengths 6 or 8 bytes.
9521
b02f78f9
PA
95222019-06-04 Pedro Alves <palves@redhat.com>
9523
9524 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9525
9526 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9527 * breakpoint.c (condition_completer): Likewise.
9528 * cli/cli-dump.c (scan_expression): Likewise.
9529 * common/filestuff.c (mkdir_recursive): Likewise.
9530 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9531 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9532 (gdb_abspath): Likewise.
9533 * compile/compile-cplus-types.c
9534 (compile_cplus_instance::decl_name): Likewise.
9535 * completer.c (complete_explicit_location):
9536 (signal_completer, reg_or_group_completer_1): Likewise.
9537 * cp-support.c (cp_remove_params_if_any): Likewise.
9538 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9539 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9540 * infcmd.c (strip_bg_char): Likewise.
9541 * linespec.c (copy_token_string): Likewise.
9542 * mi/mi-main.c (output_cores): Likewise.
9543 * psymtab.c (psymtab_search_name):
9544 * symfile.c (test_set_ext_lang_command): Likewise.
9545 * target.c (target_fileio_read_stralloc): Likewise.
9546 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9547 * value.c (complete_internalvar): Likewise.
9548
e1f2e1a2
CB
95492019-06-04 Christian Biesinger <cbiesinger@google.com>
9550
9551 Add objfile property to gdb.Type.
d3238f7d
PA
9552 * NEWS: Mention Python API addition.
9553 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9554
e664d728
PW
95552019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9556
9557 * NEWS: Mention the new set|show style [title|highlight].
9558 Mention changes to "show style", "help" and "apropos".
9559
66d8c862
PW
95602019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9561
9562 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9563 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9564 instead of print_help_for_command.
9565 (print_doc_of_command): New function.
9566 (help_list): Add 'apropos -v word' suggestion.
9567 (print_help_for_command): Style the command name using title style.
9568 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9569 (_initialize_cli_cmds): Describe -v in apropos_command help.
9570
9303eb2f
PW
95712019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9572
9573 * cli/cli-style.h (cli_style_option): Add name in constructor,
9574 add m_name class member, add constructor with intensity,
9575 add name class function.
9576 (cli_style_option::add_setshow_commands): Remove name argument.
9577 (highlight_style, title_style): New styles.
9578 * cli/cli-style.c (do_show): New function that shows a style
9579 characteristic styling the style name with itself.
9580 (set_style_name): New function.
9581 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9582 Update all callers according to the changes in cli/cli-style.h.
9583 * utils.h (fputs_highlighted): New function.
9584 * utils.c (fputs_highlighted): Likewise.
9585
e2c52041
PW
95862019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9587
9588 * NEWS: Mention new pipe command and new convenience variables.
9589
947d3946
PW
95902019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9591
9592 * cli/cli-cmds.c (pipe_command): New function.
9593 (_initialize_cli_cmds): Call add_com for pipe_command.
9594 Define | as an alias for pipe.
9595 (exit_status_set_internal_vars): New function.
9596 (shell_escape): Call exit_status_set_internal_vars.
9597 cli/cli-decode.c (find_command_name_length): Recognize | as
9598 a single character command.
9599
b8fd0918
PW
96002019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9601
9602 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9603 top.c (execute_command_to_ui_file): New function, mostly a copy
9604 of execute_command_to_string.
9605 (execute_command_to_string): Implement by calling
9606 execute_command_to_ui_file.
9607
68bb5386
PW
96082019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9609
9610 * top.h (saved_command_line): Remove declaration.
9611 * top.c (previous_saved_command_line, previous_repeat_arguments):
9612 New variables.
9613 (saved_command_line): Make static, define together with other
9614 'repeat variables'.
9615 (dont_repeat): Clear repeat_arguments.
9616 (repeat_previous, get_saved_command_line, save_command_line):
9617 New functions.
9618 (gdb_init): Initialize saved_command_line
9619 and previous_saved_command_line.
9620 * main.c (captured_main_1): Remove saved_command_line initialization.
9621 * event-top.c (handle_line_of_input): Update to use
9622 the new 'repeat' related functions instead of direct access to
9623 saved_command_line.
9624 * command.h (repeat_previous, get_saved_command_line,
9625 save_command_line): New declarations.
9626 (dont_repeat): Add comment.
9627
bfcdb852
TT
96282019-05-30 Tom Tromey <tromey@adacore.com>
9629
9630 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9631 Fix comment.
9632 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9633
0ef209f2
JV
96342019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9635
9636 PR cli/24587
9637 * completer.c (complete): Initialize variable word.
9638
955b06fa
SDJ
96392019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9640
9641 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9642 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9643 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9644 'body' is NULL to the outter 'if', protecting the '!is_define'
9645 situation as well.
9646
fa9c3fa0
TT
96472019-05-29 Tom Tromey <tromey@adacore.com>
9648
9649 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9650 (dwarf_unknown): New function.
9651 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9652 (dwarf_type_encoding_name): Use dwarf_unknown.
9653
4330d61d
TT
96542019-05-29 Tom Tromey <tromey@adacore.com>
9655
9656 PR c++/20020:
9657 * cp-valprint.c (cp_print_value_fields): Call
9658 cp_print_static_field inside "try".
9659
33a6bc35
TT
96602019-05-29 Tom Tromey <tromey@adacore.com>
9661
9662 * inflow.c (struct terminal_info): Add default operator=.
9663 * configure: Rebuild.
9664 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9665 -Wdeprecated-copy-dtor, -Wredundant-move.
9666
000439d5
TT
96672019-05-29 Tom Tromey <tromey@adacore.com>
9668
9669 * NEWS: Add entry.
9670 * infcmd.c (print_return_value_1): Handle finish_print
9671 option.
9672 (show_print_finish): New function.
9673 (_initialize_infcmd): Add "set/show print finish" commands.
9674 * valprint.c (user_print_options): Initialize new member.
9675 * valprint.h (struct value_print_options) <finish_print>: New
9676 member.
9677
c0e70c62
TT
96782019-05-28 Tom Tromey <tromey@adacore.com>
9679
9680 * ada-lang.c (ada_remove_Xbn_suffix)
9681 (find_old_style_renaming_symbol)
9682 (parse_old_style_renaming): Remove.
9683 (ada_find_renaming_symbol): Don't call
9684 find_old_style_renaming_symbol.
9685 (ada_is_renaming_symbol): Rename from
9686 ada_find_renaming_symbol. Remove "block" parameter. Return
9687 bool. Now static.
9688 (ada_read_var_value): Update and simplify.
9689 * ada-exp.y (write_var_or_type): Remove old code.
9690
766f8836
AH
96912019-05-28 Alan Hayward <alan.hayward@arm.com>
9692
68255adc 9693 PR gdb/25010
766f8836
AH
9694 * event-top.c: Remove include comment.
9695 * inflow.c (class scoped_ignore_sigttou): Move from here...
9696 * inflow.h (class scoped_ignore_sigttou): ...to here.
9697 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9698 * top.c: Remove include comment.
9699
eb41253a
TT
97002019-05-27 Tom Tromey <tom@tromey.com>
9701
9702 * NEWS: Fix typo.
9703
4ca51187
TT
97042019-05-22 Tom Tromey <tromey@adacore.com>
9705
9706 * target.c (target_follow_exec): Constify parameter.
9707 * target-delegates.c: Rebuild.
9708 * remote.c (remote_target::follow_exec): Constify parameter.
9709 * infrun.c (follow_exec): Constify parameter.
9710 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9711 (target_follow_exec): Likewise.
9712
8fca4da0
AH
97132019-05-22 Alan Hayward <alan.hayward@arm.com>
9714
9715 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9716 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9717
b7060614
AH
97182019-05-22 Alan Hayward <alan.hayward@arm.com>
9719
9720 * NEWS: Add debugredirect and testsuite sections.
9721
0a5954bd
SC
97222019-05-22 Simon Cook <simon.cook@embecosm.com>
9723
9724 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9725 target descriptions using exclusively floating point register name
9726 aliases.
9727
dc42e902
AB
97282019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9729
9730 PR gdb/18644:
9731 * f-lang.c (build_fortran_types): Handle the case where
9732 gdbarch_floatformat_for_type returns a nullptr.
9733
fb7806c7
TV
97342019-05-21 Tom de Vries <tdevries@suse.de>
9735
9736 PR cli/24587
9737 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9738
34d11c68
AB
97392019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9740
9741 PR gdb/18644:
9742 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9743 16-byte floats.
9744 * i386-tdep.c (i386_floatformat_for_type): Use
9745 floatformats_ia64_quad for the 16-byte floating point component
9746 within a fortran 32-byte complex number.
9747
122cf0f2
AB
97482019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9749
9750 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9751 delete default constructor.
9752 (find_partial_die): Update to return const struct.
9753 (partial_die_parent_scope): Move variable declaration into scope
9754 of its use and change its type to auto.
9755 (guess_partial_die_structure_name): Likewise.
9756 (partial_die_info::fixup): Likewise.
9757
33d0e35a
TT
97582019-05-17 Tom Tromey <tromey@adacore.com>
9759
9760 * source.c (find_and_open_source): Remove cast.
9761
a45575b0
TT
97622019-05-17 Tom Tromey <tromey@adacore.com>
9763
9764 * annotate.c (annotate_source): Make "filename" const.
9765 * annotate.h (annotate_source): Use const.
9766
81f47ac2
AH
97672019-05-17 Alan Hayward <alan.hayward@arm.com>
9768
9769 * disasm.c (set_disassembler_options): Send errors to stderr.
9770
ca1285d1
AH
97712019-05-17 Alan Hayward <alan.hayward@arm.com>
9772
9773 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9774 (cli_interp_base::set_logging): Check debug_redirect.
9775 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9776 * cli/cli-logging.c (debug_redirect): Add static variable.
9777 (pop_output_files): Add default param.
9778 (handle_redirections): Print debug setting.
9779 (show_logging_command): Likewise.
9780 (_initialize_cli_logging): Add debugredirect command.
9781 * interps.c (current_interp_set_logging): Add debug_redirect
9782 parameter.
9783 * interps.h (set_logging): Add debug_redirect parameter.
9784 (current_interp_set_logging): Likewise.
9785 * mi/mi-common.h: Likewise.
9786 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9787
97882019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9789 Tom Tromey <tromey@adacore.com>
9790
9791 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9792 directly.
9793 * cli/cli-interp.h (make_logging_output): Remove declaration.
9794 * cli/cli-logging.c (make_logging_output): Remove function.
9795 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9796 directly.
9797 * ui-file.c (tee_file::tee_file): Remove bools.
9798 (tee_file::~tee_file): Remove deletes.
9799 * ui-file.h (tee_file): Remove bools.
9800
26648588
JV
98012019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9802
9803 * mi/mi-cmds.h (mi_cmd_complete): New function.
9804 * mi/mi-main.c (mi_cmd_complete): Likewise.
9805 * mi/mi-cmds.c: Define new MI command -complete.
9806 * NEWS: Mention new -complete command.
9807
6e035501
JV
98082019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9809
9810 * completer.h (complete): New function.
9811 * completer.c (complete): Likewise.
9812 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9813 function defined in completer.h.
9814
7d0e2ece
JV
98152019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9816
e79be6e5 9817 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9818
fb816e8b
TV
98192019-05-17 Tom de Vries <tdevries@suse.de>
9820
9821 PR gdb/24094
9822 * dwarf2read.c (struct cu_partial_die_info): New struct.
9823 (find_partial_die): Return cu_partial_die_info.
9824 (partial_die_parent_scope, guess_partial_die_structure_name)
9825 (partial_die_info::fixup): Handle new return type of find_partial_die.
9826
677052f2
SDJ
98272019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9828
a1726c38 9829 PR breakpoints/24541
677052f2
SDJ
9830 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9831 "std::string", simplifying the algorithm.
9832
f3da9116
SDJ
98332019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9834
9835 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9836 (stap_static_probe_ops::get_probes): Likewise.
9837
f1bb75ab
SDJ
98382019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9839
9840 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9841 '-')" and "else if".
9842 (stap_parse_single_operand): Join checks for
9843 "gdbarch_stap_parse_special_token_p" and
9844 "gdbarch_stap_parse_special_token" in the same "if" statement.
9845 Invert check when verifying for operation on register
9846 displacement.
9847
3ca58cde
SDJ
98482019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9849
9850 * stap-probe.c (stap_get_opcode): Update comment.
9851 (stap_get_expected_argument_type): Likewise.
9852 (handle_stap_probe): Likewise.
9853
af2d9bee
SDJ
98542019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9855
9856 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9857 return type to 'bool'. Adjust comment. Use 'bool' when
9858 appropriate.
9859 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9860 * stap-probe.c (stap_parse_argument_1): Likewise.
9861 (stap_is_operator): Likewise.
9862 (stap_is_generic_prefix): Likewise.
9863 (stap_is_register_prefix): Likewise.
9864 (stap_is_register_indirection_prefix): Likewise.
9865 (stap_is_integer_prefix): Likewise.
9866 (stap_generic_check_suffix): Likewise.
9867 (stap_check_integer_suffix): Likewise.
9868 (stap_check_register_suffix): Likewise.
9869 (stap_check_register_indirection_suffix): Likewise.
9870 (stap_parse_register_operand): Likewise.
9871 (stap_parse_single_operand): Likewise.
9872 (stap_parse_argument_1): Likewise.
9873 (stap_probe::get_argument_count): Likewise.
9874 (stap_is_operator): Likewise.
9875
61c9c421
TT
98762019-05-16 Tom Tromey <tromey@adacore.com>
9877
9878 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9879 keyword to foreach.
9880
9ddc1af1
SM
98812019-05-15 Simon Marchi <simon.marchi@efficios.com>
9882
9883 * linux-thread-db.c (try_thread_db_load_1): Change return type
9884 to bool.
9885 (try_thread_db_load): Likewise.
9886 (try_thread_db_load_from_pdir_1): Likewise.
9887 (try_thread_db_load_from_pdir): Likewise.
9888 (try_thread_db_load_from_sdir): Likewise.
9889 (try_thread_db_load_from_dir): Likewise.
9890 (thread_db_load_search): Likewise.
9891 (has_libpthread): Likewise.
9892 (thread_db_load): Likewise.
9893
7bede828
SDJ
98942019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9895
9896 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9897 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9898 NULL, and complain/return if that's the case.
9899
c5358db4
JD
99002019-05-15 John Darrington <john@darrington.wattle.id.au>
9901
9902 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9903 (advance, posn, abstract_read_memory): New functions.
9904 [struct mem_read_abstraction]: New struct.
9905 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9906
c408a94f
TT
99072019-05-14 Tom Tromey <tromey@adacore.com>
9908
9909 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9910 value is not lval_memory.
9911
e7bd7fba
TT
99122019-05-14 Tom Tromey <tromey@adacore.com>
9913
9914 * solib.c (info_sharedlibrary_command): Style the file name.
9915
a6d0f249
AH
99162019-05-14 Alan Hayward <alan.hayward@arm.com>
9917
9918 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9919 (aarch64_vnv_type): Likewise.
9920 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9921 * common/tdesc.c: Likewise.
9922 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9923 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9924 * features/aarch64-fpu.xml: Add ieee half view.
9925 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9926 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9927 * gdbtypes.h (struct builtin_type): Likewise.
9928 (struct objfile_type): Likewise.
9929
66b8bb74
SM
99302019-05-12 Paul Naert <paul.naert@polymtl.ca>
9931
9932 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9933 typo.
9934 * location.h (string_to_event_location): Likewise.
9935
21c219fd
JB
99362019-05-11 Joel Brobecker <brobecker@adacore.com>
9937
9938 GDB 8.3 released.
9939
13674803
SM
99402019-05-10 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9943 New variable declaration.
9944 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9945 New variable.
9946 (print_one_breakpoint): Use ui_out::test_flags and new global
9947 variable to compute use_fixed_output.
9948 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9949 Remove.
9950 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9951 (mi_multi_location_breakpoint_output_fixed): Remove.
9952 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9953 new variable.
9954 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9955 fix_multi_location_breakpoint_output flag if version >= 3.
9956 * ui-out.h (enum ui_out_flag)
9957 <fix_multi_location_breakpoint_output>: New enumerator.
9958
a9eac7f9
SM
99592019-05-10 Simon Marchi <simon.marchi@efficios.com>
9960
9961 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9962
71bed2db
TT
99632019-05-10 Tom Tromey <tromey@adacore.com>
9964
9965 * ada-lang.c (catch_ada_completer): New function.
9966 (_initialize_ada_language): Use it.
9967
24c54127
TT
99682019-05-10 Tom Tromey <tromey@adacore.com>
9969
9970 * thread.c (print_thread_info): Make "requested_threads" const.
9971 * gdbthread.h (print_thread_info): Make "requested_threads"
9972 const.
9973 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9974 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9975
7a102139
TT
99762019-05-08 Tom Tromey <tom@tromey.com>
9977
9978 * gdbtypes.c (objfile_type_data): Change type.
9979 (objfile_type, _initialize_gdbtypes): Update.
9980
924d79e2
TT
99812019-05-08 Tom Tromey <tom@tromey.com>
9982
9983 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9984 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9985 (_initialize_dwarf2_frame): Update.
9986
4c58e337
TT
99872019-05-08 Tom Tromey <tom@tromey.com>
9988
9989 * objc-lang.c (objc_objfile_data): Change type.
9990 (find_methods): Update.
9991 (_initialize_objc_lang): Remove.
9992
d772d2ab
TT
99932019-05-08 Tom Tromey <tom@tromey.com>
9994
9995 * stabsread.c (rs6000_builtin_type_data): Change type.
9996 (rs6000_builtin_type, _initialize_stabsread): Update.
9997
d11d83f4
TT
99982019-05-08 Tom Tromey <tom@tromey.com>
9999
10000 * mips-tdep.c (mips_pdr_data): Remove.
10001 (_initialize_mips_tdep): Update.
10002
9a73f0ad
TT
100032019-05-08 Tom Tromey <tom@tromey.com>
10004
10005 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10006 (hppa_init_objfile_priv_data, read_unwind_info)
10007 (find_unwind_entry, _initialize_hppa_tdep): Update.
10008
8127a2fa
TT
100092019-05-08 Tom Tromey <tom@tromey.com>
10010
10011 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10012 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10013 on obstack.
10014 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10015
91d3055d
TT
100162019-05-08 Tom Tromey <tom@tromey.com>
10017
10018 * mdebugread.c (basic_type_data): Change type.
10019 (basic_type, _initialize_mdebugread): Update.
10020
31930bd3
TT
100212019-05-08 Tom Tromey <tom@tromey.com>
10022
10023 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10024
bdb3ed9e
TT
100252019-05-08 Tom Tromey <tom@tromey.com>
10026
10027 * nto-tdep.c (nto_inferior_data_reg): Change type.
10028 (nto_inferior_data): Update.
10029 (nto_inferior_data_cleanup, nto_new_inferior_data)
10030 (_initialize_nto_tdep): Remove.
10031 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10032
f37b313d
TT
100332019-05-08 Tom Tromey <tom@tromey.com>
10034
10035 * ada-lang.c (struct ada_inferior_data): Add initializers.
10036 (ada_inferior_data): Change type.
10037 (ada_inferior_data_cleanup): Remove.
10038 (get_ada_inferior_data, ada_inferior_exit)
10039 (struct ada_pspace_data): Add initializers, destructor.
10040 (ada_pspace_data_handle): Change type.
10041 (get_ada_pspace_data): Update.
10042 (ada_pspace_data_cleanup): Remove.
10043
24699405
TT
100442019-05-08 Tom Tromey <tom@tromey.com>
10045
10046 * coffread.c (struct coff_symfile_info): Add initializers.
10047 (coff_objfile_data_key): Move lower. Change type.
10048 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10049 Update.
10050 (coff_free_info): Remove.
10051
d4e05d2f
TT
100522019-05-08 Tom Tromey <tom@tromey.com>
10053
10054 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10055 (fbsd_pspace_data_handle): Move lower. Change type.
10056 (get_fbsd_pspace_data): Update.
10057 (fbsd_pspace_data_cleanup): Remove.
10058 (_initialize_fbsd_tdep): Update.
10059
14ef6690
TT
100602019-05-08 Tom Tromey <tom@tromey.com>
10061
10062 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10063 (get_ada_tasks_pspace_data): Update.
10064 (ada_tasks_pspace_data_cleanup): Remove.
10065 (_initialize_tasks): Update.
10066 (ada_tasks_inferior_data_handle): Change type.
10067 (get_ada_tasks_inferior_data): Update.
10068 (ada_tasks_inferior_data_cleanup): Remove.
10069 (struct ada_tasks_pspace_data): Add initializers.
10070
814cf43a
TT
100712019-05-08 Tom Tromey <tom@tromey.com>
10072
10073 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10074 * symfile-debug.c (debug_sym_get_probes): Change type.
10075 * stap-probe.c (handle_stap_probe):
10076 (stap_static_probe_ops::get_probes): Change type.
10077 * probe.h (class static_probe_ops) <get_probes>: Change type.
10078 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10079 (parse_probes_in_pspace): Update.
10080 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10081 Update.
10082 (any_static_probe_ops::get_probes): Change type.
10083 * elfread.c (elfread_data): New typedef.
10084 (probe_key): Change type.
10085 (elf_get_probes): Likewise. Update.
10086 (probe_key_free): Remove.
10087 (_initialize_elfread): Update.
10088 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10089 Change type.
10090 (dtrace_process_dof_probe, dtrace_process_dof)
10091 (dtrace_static_probe_ops::get_probe): Change type.
10092
02dc647e
TT
100932019-05-08 Tom Tromey <tom@tromey.com>
10094
10095 * xcoffread.c (struct xcoff_symfile_info): Rename from
10096 coff_symfile_info. Add initializers.
10097 (xcoff_objfile_data_key): Move lower. Change type.
10098 (XCOFF_DATA): Rewrite.
10099 (xcoff_free_info): Remove.
10100 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10101 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10102 (xcoff_initial_scan): Update.
10103
09232438
TT
101042019-05-08 Tom Tromey <tom@tromey.com>
10105
10106 * solib-svr4.c (struct svr4_info): Add initializers and
10107 destructor.
10108 <probes_table>: Now an htab_up.
10109 (solib_svr4_pspace_data): Change type.
10110 (free_probes_table): Simplify.
10111 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10112 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10113 (probes_table_remove_objfile_probes, register_solib_event_probe)
10114 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10115 (_initialize_svr4_solib): Update.
10116
7b4a314f
TT
101172019-05-08 Tom Tromey <tom@tromey.com>
10118
10119 * remote.c (remote_pspace_data): Change type.
10120 (remote_pspace_data_cleanup): Remove.
10121 (get_remote_exec_file, set_pspace_remote_exec_file)
10122 (_initialize_remote): Update.
10123
51d3063a
TT
101242019-05-08 Tom Tromey <tom@tromey.com>
10125
10126 * breakpoint.c (breakpoint_objfile_key): Change type.
10127 (get_breakpoint_objfile_data): Update.
10128 (free_breakpoint_objfile_data): Remove.
10129 (_initialize_breakpoint): Update.
10130
89fb8848
TT
101312019-05-08 Tom Tromey <tom@tromey.com>
10132
10133 * linux-tdep.c (struct linux_info): Add initializers.
10134 (linux_inferior_data): Move. Change type.
10135 (invalidate_linux_cache_inf): Update.
10136 (linux_inferior_data_cleanup): Remove.
10137 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10138
e9b89e2d
TT
101392019-05-08 Tom Tromey <tom@tromey.com>
10140
10141 * auxv.c (auxv_inferior_data): Move. Change type.
10142 (auxv_inferior_data_cleanup): Remove.
10143 (invalidate_auxv_cache_inf): Rewrite.
10144 (get_auxv_inferior_data, _initialize_auxv): Update.
10145
8c42777c
TT
101462019-05-08 Tom Tromey <tom@tromey.com>
10147
10148 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10149 (symfile_debug_objfile_data_key): Change type.
10150 (symfile_debug_installed, debug_qf_has_symbols)
10151 (debug_qf_find_last_source_symtab)
10152 (debug_qf_forget_cached_source_info)
10153 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10154 (debug_qf_print_stats, debug_qf_dump)
10155 (debug_qf_expand_symtabs_for_function)
10156 (debug_qf_expand_all_symtabs)
10157 (debug_qf_expand_symtabs_with_fullname)
10158 (debug_qf_map_matching_symbols)
10159 (debug_qf_expand_symtabs_matching)
10160 (debug_qf_find_pc_sect_compunit_symtab)
10161 (debug_qf_map_symbol_filenames)
10162 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10163 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10164 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10165 (debug_sym_read_linetable, debug_sym_relocate): Update.
10166 (symfile_debug_free_objfile): Remove.
10167 (install_symfile_debug_logging, _initialize_symfile_debug):
10168 Update.
10169
5bfd760d
TT
101702019-05-08 Tom Tromey <tom@tromey.com>
10171
10172 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10173 allocate_on_obstack.
10174 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10175 (get_dwarf2_per_objfile): Update.
10176 (set_dwarf2_per_objfile): Remove.
10177 (dwarf2_has_info, dwarf2_get_section_info): Update.
10178 (dwarf2_free_objfile): Remove.
10179 (_initialize_dwarf2_read): Update.
10180
e85e19b4
TT
101812019-05-08 Tom Tromey <tom@tromey.com>
10182
10183 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10184 initializers.
10185 <unsupported_script_warning_printed,
10186 script_not_found_warning_printed>: Now bool.
10187 (auto_load_pspace_data): Change type.
10188 (~auto_load_pspace_info): Rename from
10189 auto_load_pspace_data_cleanup.
10190 (get_auto_load_pspace_data, init_loaded_scripts_info)
10191 (clear_section_scripts, maybe_print_unsupported_script_warning)
10192 (maybe_print_script_not_found_warning, _initialize_auto_load):
10193 Update.
10194
f6aa7436
TT
101952019-05-08 Tom Tromey <tom@tromey.com>
10196
10197 * objfiles.c (objfile_pspace_info): Add destructor and
10198 initializers.
10199 (objfiles_pspace_data): Change type.
10200 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10201 (get_objfile_pspace_data): Update.
10202 (objfiles_bfd_data): Change type.
10203 (get_objfile_bfd_data): Update.
10204 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10205
6ae614f6
TT
102062019-05-08 Tom Tromey <tom@tromey.com>
10207
10208 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10209 Change type.
10210 (get_catch_syscall_inferior_data): Update.
10211 (catch_syscall_inferior_data_cleanup): Remove.
10212 (_initialize_break_catch_syscall): Update.
10213
6509b8eb
TT
102142019-05-08 Tom Tromey <tom@tromey.com>
10215
10216 * inflow.c (struct terminal_info): Add destructor and
10217 initializers.
10218 (inflow_inferior_data): Change type.
10219 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10220 (get_inflow_inferior_data, inflow_inferior_exit)
10221 (swap_terminal_info, _initialize_inflow): Update.
10222
35632941
TT
102232019-05-08 Tom Tromey <tom@tromey.com>
10224
10225 * target-dcache.c (target_dcache_cleanup): Remove.
10226 (target_dcache_aspace_key): Change type.
10227 (target_dcache_init_p, target_dcache_invalidate)
10228 (target_dcache_get, target_dcache_get_or_init)
10229 (_initialize_target_dcache): Update.
10230 * dcache.h (struct dcache_deleter): New.
10231
3017b94d
TT
102322019-05-08 Tom Tromey <tom@tromey.com>
10233
10234 * symtab.c (struct symbol_cache): Add destructor and
10235 initializers.
10236 (symbol_cache_key): Move. Change type.
10237 (make_symbol_cache, free_symbol_cache): Remove.
10238 (get_symbol_cache): Update.
10239 (symbol_cache_cleanup): Remove.
10240 (ALL_PSPACES, symbol_cache_flush)
10241 (maintenance_print_symbol_cache)
10242 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10243 Update.
10244
a32ad8c5
TT
102452019-05-08 Tom Tromey <tom@tromey.com>
10246
10247 * symtab.c (struct main_info): Add destructor and initializers.
10248 (main_progspace_key): Move. Change type.
10249 (get_main_info): Update.
10250 (main_info_cleanup): Remove.
10251 (_initialize_symtab): Update.
10252
5f6e90a0
TT
102532019-05-08 Tom Tromey <tom@tromey.com>
10254
10255 * registry.h (DECLARE_REGISTRY): Define the _key class.
10256
1bd0c6e4
AB
102572019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10258
10259 * NEWS: Merge two 'New commands' sections.
10260
2228ef77
XR
102612019-05-08 Joel Brobecker <brobecker@adacore.com>
10262
10263 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10264 parameter and use Ada language definition instead.
10265 (ada_val_print_ptr): Remove unused language parameter.
10266 (ada_val_print_num): Remove language parameter and use Ada language
10267 definition instead.
10268 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10269 parameter.
10270 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10271 parameter and use Ada language definition instead.
10272 (ada_val_print_1): Update all ada_val_print_xxx calls.
10273 Remove language parameter.
10274 (ada_val_print): Update ada_val_print_1 call.
10275
60fcc1c3
TT
102762019-05-08 Tom Tromey <tromey@adacore.com>
10277
10278 * remote.c (remote_hw_watchpoint_limit)
10279 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10280 Now static.
10281
ed2b7c17
TT
102822019-05-08 Tom Tromey <tromey@adacore.com>
10283
10284 * maint.c (_initialize_maint_cmds): Move initialization code to
10285 remote.c.
10286 (watchdog, show_watchdog): Move to remote.c.
10287 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10288 "watchdog" static.
10289 (_initialize_remote): Move initialization code from maint.c.
10290 * defs.h (watchdog): Don't declare.
10291
b0be6c91
TT
102922019-05-08 Tom Tromey <tromey@adacore.com>
10293
10294 * tui/tui-interp.c: Include main.h.
10295 * interps.c: Include main.h.
10296 * main.h (interpreter_p): Declare.
10297 * defs.h (interpreter_p): Don't declare.
10298
587ee17b
TT
102992019-05-08 Tom Tromey <tromey@adacore.com>
10300
10301 * dwarf2loc.c: Include dwarf2read.h.
10302 * defs.h (read_unsigned_leb128): Don't declare.
10303 * dwarf2read.h (read_unsigned_leb128): Declare.
10304
ca1df239
TT
103052019-05-08 Tom Tromey <tromey@adacore.com>
10306
10307 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10308 method.
10309
99f20f08
TT
103102019-05-08 Tom Tromey <tromey@adacore.com>
10311
10312 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10313 when no wrap column is set.
10314
80e55b13
TT
103152019-05-08 Tom Tromey <tromey@adacore.com>
10316
10317 * c-lang.c (c_get_string): Handle non-C-style arrays.
10318
9d3421af
TT
103192019-05-08 Tom Tromey <tromey@adacore.com>
10320
10321 * typeprint.c (print_offset_data::update): Print the bit offset,
10322 not the number of bits remaining.
10323
844333e2
TT
103242019-05-08 Tom Tromey <tromey@adacore.com>
10325
10326 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10327 padding at end of comment.
10328
988915ee
TT
103292019-05-08 Tom Tromey <tromey@adacore.com>
10330
10331 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10332 Compare main types.
10333
26bfd823
TT
103342019-05-06 Tom Tromey <tom@tromey.com>
10335
10336 * common/scoped_mmap.c: Include common-defs.h.
10337 * common/scoped_mmap.h: Don't include config.h.
10338
89055eaa
TT
103392019-05-04 Tom Tromey <tom@tromey.com>
10340
10341 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10342 (struct aarch64_call_info): Add initializers.
10343 <si>: Now a std::vector.
10344 (pass_on_stack, aarch64_push_dummy_call): Update.
10345
5da01df5
TT
103462019-05-04 Simon Marchi <simon.marchi@efficios.com>
10347 Tom Tromey <tom@tromey.com>
10348
10349 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10350 (ppc_threads): Now a std::vector. Now static.
10351 (hwdebug_find_thread_points_by_tid)
10352 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10353 Update.
10354
fbdf05a1
TT
103552019-05-04 Tom Tromey <tom@tromey.com>
10356
10357 * arc-tdep.c (arc_tdesc_init): Return bool.
10358
06d16ec9
TT
103592019-05-04 Tom Tromey <tom@tromey.com>
10360
10361 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10362 Use gdb_assert_not_reached.
10363
9c056022
TT
103642019-05-04 Tom Tromey <tom@tromey.com>
10365
10366 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10367 "false".
10368
fa9c2a59
TT
103692019-05-04 Tom Tromey <tom@tromey.com>
10370
10371 * arc-tdep.c (arc_tdesc_init): Use bool.
10372
e2eb806a
TT
103732019-05-04 Tom Tromey <tom@tromey.com>
10374
10375 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10376
6fe87677
TT
103772019-05-04 Tom Tromey <tom@tromey.com>
10378
10379 * cli/cli-cmds.c (valid_command_p): Return bool.
10380
7f008c9e
TT
103812019-05-04 Tom Tromey <tom@tromey.com>
10382
10383 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10384 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10385
b6484282
RT
103862019-05-04 Raul Tambre <raul@tambre.ee>
10387
10388 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10389 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10390 operator for comparison.
10391
af97b416
TT
103922019-05-04 Tom Tromey <tom@tromey.com>
10393
10394 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10395 (lookup_partial_symbol, print_partial_symbols)
10396 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10397 (psymbol_compare): Update.
10398 (add_psymbol_to_bcache): Clear the entire psymbol.
10399 (maintenance_check_psymtabs): Update.
10400 * psympriv.h (struct partial_symbol): Don't derive from
10401 general_symbol_info.
10402 <obj_section, unrelocated_address, address,
10403 set_unrelocated_address>: Update.
10404 <ginfo>: New member.
10405 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10406 (debug_names::write_psymbols): Update.
10407
9d6d4be8
TV
104082019-05-04 Tom de Vries <tdevries@suse.de>
10409
10410 * contrib/cc-with-tweaks.sh: Support -n arg.
10411
66452beb
PW
104122019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10413
10414 * corelow.c (core_target::detach): Ensure frame cache and
10415 register caches are cleared.
10416 inferior.c (exit_inferior_1): Likewise.
10417
bde09ab7
TT
104182019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10419 Tom Tromey <tom@tromey.com>
10420
10421 * dictionary.c (collate_pending_symbols_by_language): Remove
10422 "struct" from foreach.
10423 * symtab.c (lookup_global_symbol_from_objfile)
10424 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10425 foreach.
10426 * ser-tcp.c (net_open): Remove "struct" from foreach.
10427 * objfiles.c (objfile_relocate, objfile_rebase)
10428 (objfile_has_symbols): Remove "struct" from foreach.
10429 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10430 from foreach.
10431 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10432 foreach.
10433 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10434 "struct" from foreach.
10435 * ada-lang.c (create_excep_cond_exprs)
10436 (ada_exception_catchpoint_cond_string): Remove "struct" from
10437 foreach.
10438
222a8d25
TT
104392019-05-03 Tom Tromey <tromey@adacore.com>
10440
10441 * ada-exp.y (convert_char_literal): Check suffix of each
10442 enumerator.
10443
fcd60b84
DP
104442019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10445
10446 PR ada/21406:
10447 * ada-exp.y (yywrap): Don't define.
10448 * ada-lex.l (%option): Add noyywrap
10449 (yywrap): Remove.
10450
5f2459c2
EZ
104512019-05-03 Eli Zaretskii <eliz@gnu.org>
10452
353ea2d1
EZ
10453 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10454 _WIN32_WINNT to the XP level, unless already defined to a higher
10455 level.
10456
10457 * unittests/parse-connection-spec-selftests.c:
10458 * ser-tcp.c:
10459 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10460 override.
10461
5f2459c2
EZ
10462 * symfile.c (find_separate_debug_file): Remove colon from the
10463 drive spec of DOS/Windows file names of the target, so that the
10464 file name produced from DEBUGDIR and the target's directory will
10465 be valid on DOS/Windows systems.
10466
80062eb9
AB
104672019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10468
10469 * rust-lang.c (val_print_struct): Handle printing structures
10470 containing strings.
10471
b8c05e85
TT
104722019-05-02 Tom Tromey <tromey@adacore.com>
10473
10474 * valarith.c (_initialize_valarith): Remove.
10475
4504bbde
TT
104762019-05-01 Tom Tromey <tromey@adacore.com>
10477
10478 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10479 bitfields.
10480
d48e62f4
TT
104812019-05-01 Tom Tromey <tromey@adacore.com>
10482
10483 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10484 for big-endian copies.
10485
15f18d14
AT
104862019-04-30 Ali Tamur <tamur@google.com>
10487 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10488 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10489 (read_3_bytes): New function.
10490
ab4ee614
JB
104912019-04-30 Joel Brobecker <brobecker@adacore.com>
10492
10493 * windows-nat.c (main_thread_id): Delete.
10494 (handle_output_debug_string): Replace main_thread_id by
10495 current_event.dwThreadId.
10496 (fake_create_process): Likewise.
10497 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10498 Do not set main_thread_id.
10499 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10500 current_event.dwThreadId.
10501 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10502
8ed5b76e
JB
105032019-04-30 Joel Brobecker <brobecker@adacore.com>
10504
10505 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10506 Use current_event.dwThreadId instead of main_thread_id.
10507
2ff0a947
TT
105082019-04-30 Tom Tromey <tromey@adacore.com>
10509
10510 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10511 (create_excep_cond_exprs): Iterate over program spaces.
10512 (ada_exception_catchpoint_cond_string): Examine all minimal
10513 symbols for exception types.
10514
a776957c
TT
105152019-04-30 Tom Tromey <tromey@adacore.com>
10516
10517 PR c++/24470:
10518 * dwarf2read.c (process_structure_scope): Handle case where type
10519 has template parameters but no symbol was created.
10520
bc68014d
AB
105212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10522 Chris January <chris.january@arm.com>
10523
10524 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10525 qualifier.
10526 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10527
f1fdc960
AB
105282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10529
10530 * f-typeprint.c (f_print_type): Update rules for printing
10531 whitespace.
10532 (f_type_print_varspec_suffix): Likewise.
10533
bf7a4de1
AB
105342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10535 Chris January <chris.january@arm.com>
10536
10537 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10538 function arguments.
10539
bbe75b9d
AB
105402019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10541
10542 * f-lang.c (build_fortran_types): Change name of void type to
10543 lower case.
10544 * f-typeprint.c (f_type_print_base): Print the name of the void
10545 type, rather than a fixed string.
10546 * f-valprint.c (f_decorations): Use lower case void string.
10547
1db455a7
AB
105482019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10549 Chris January <chris.january@arm.com>
10550
10551 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10552 types for Fortran.
10553
b6d03bb2
AB
105542019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10555 Chris January <chris.january@arm.com>
10556 David Lecomber <david.lecomber@arm.com>
10557
10558 * f-exp.y (BINOP_INTRINSIC): New token.
10559 (exp): New parser rule handling BINOP_INTRINSIC.
10560 (f77_keywords): Add new builtin procedures.
10561 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10562 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10563 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10564 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10565 (print_unop_subexp_f): New function.
10566 (print_binop_subexp_f): New function.
10567 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10568 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10569 (dump_subexp_body_f): Likewise.
10570 (operator_check_f): Likewise.
10571 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10572 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10573
83228e93
AB
105742019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10575
10576 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10577 UNOP_KIND.
10578 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10579 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10580 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10581 (operator_length_f): New fuction.
10582 (print_subexp_f): New function.
10583 (op_name_f): New function.
10584 (dump_subexp_body_f): New function.
10585 (operator_check_f): New function.
10586 (exp_descriptor_f): Replace standard expression handling functions
10587 with new functions.
10588 * gdb/fortran-operator.def: New file.
10589 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10590 * gdb/std-operator.def: Remove UNOP_KIND.
10591
6fdcd7cc
AB
105922019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10593
10594 * std-operator.def: Remove unbalanced, stray double quote
10595 character.
10596
2e62ab40
AB
105972019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10598 Chris January <chris.january@arm.com>
10599 Daniel Everett <daniel.everett@arm.com>
10600 Nick Forrington <nick.forrington@arm.com>
10601 Richard Bunt <richard.bunt@arm.com>
10602
10603 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10604 of depth when printing anonymous structs or unions.
10605 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10606 Don't print either the top-level value, or the children if the
10607 max-depth is exceeded.
10608 (ppscm_print_children): When printing the key of a map, allow one
10609 extra level of depth.
10610 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10611 print either the top-level value, or the children if the max-depth
10612 is exceeded.
10613 (print_children): When printing the key of a map, allow one extra
10614 level of depth.
10615 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10616 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10617 (user_print_options): Initialise max_depth field.
10618 (val_print_scalar_or_string_type_p): New function.
10619 (val_print): Check to see if the max depth has been reached.
10620 (val_print_check_max_depth): Define new function.
10621 (show_print_max_depth): New function.
10622 (_initialize_valprint): Add 'print max-depth' option.
10623 * valprint.h (struct value_print_options) <max_depth>: New field.
10624 (val_print_check_max_depth): Declare new function.
10625 * NEWS: Document new feature.
10626
4be290b2
AB
106272019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10628
10629 * ada-lang.c (ada_language_defn): Initialise new field.
10630 * c-lang.c (c_is_string_type_p): New function.
10631 (c_language_defn): Initialise new field.
10632 (cplus_language_defn): Initialise new field.
10633 (asm_language_defn): Initialise new field.
10634 (minimal_language_defn): Initialise new field.
10635 * c-lang.h (c_is_string_type_p): Declare new function.
10636 * d-lang.c (d_language_defn): Initialise new field.
10637 * f-lang.c (f_is_string_type_p): New function.
10638 (f_language_defn): Initialise new field.
10639 * go-lang.c (go_is_string_type_p): New function.
10640 (go_language_defn): Initialise new field.
10641 * language.c (default_is_string_type_p): New function.
10642 (unknown_language_defn): Initialise new field.
10643 (auto_language_defn): Initialise new field.
10644 * language.h (struct language_defn) <la_is_string_type_p>: New
10645 member variable.
10646 (default_is_string_type_p): Declare new function.
10647 * m2-lang.c (m2_language_defn): Initialise new field.
10648 * objc-lang.c (objc_language_defn): Initialise new field.
10649 * opencl-lang.c (opencl_language_defn): Initialise new field.
10650 * p-lang.c (pascal_is_string_type_p): New function.
10651 (pascal_language_defn): Initialise new field.
10652 * rust-lang.c (rust_is_string_type_p): New function.
10653 (rust_language_defn): Initialise new field.
10654
721b08c6
AB
106552019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10656
10657 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10658 New field.
10659 * ada-lang.c (ada_language_defn): Initialise new field.
10660 * c-lang.c (c_language_defn): Likewise.
10661 (cplus_language_defn): Likewise.
10662 (asm_language_defn): Likewise.
10663 (minimal_language_defn): Likewise.
10664 * d-lang.c (d_language_defn): Likewise.
10665 * f-lang.c (f_language_defn): Likewise.
10666 * go-lang.c (go_language_defn): Likewise.
10667 * language.c (unknown_language_defn): Likewise.
10668 (auto_language_defn): Likewise.
10669 * m2-lang.c (m2_language_defn): Likewise.
10670 * objc-lang.c (objc_language_defn): Likewise.
10671 * opencl-lang.c (opencl_language_defn): Likewise.
10672 * p-lang.c (pascal_language_defn): Likewise.
10673 * rust-lang.c (rust_language_defn): Likewise.
10674
fc913e53
AB
106752019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10676
10677 * ada-lang.c (ada_is_character_type): Change return type to bool.
10678 (ada_is_string_type): Likewise.
10679 * ada-lang.h (ada_is_character_type): Update declaration
10680 (ada_is_string_type): Likewise.
10681
fa731fa0
PW
106822019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10683
10684 Support style in 'frame|thread apply'
10685
10686 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10687 * record.c (record_start, record_stop): Update callers of
10688 execute_command_to_string with false.
10689 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10690 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10691 methods.
10692 (class string_file): New constructor with term_out parameter.
10693 Override methods term_out and can_emit_style_escape. New member
10694 term_out.
10695 (class stdio_file): Override can_emit_style_escape.
10696 (class tee_file): Override term_out and can_emit_style_escape.
10697 * utils.h (can_emit_style_escape): Remove.
10698 * utils.c (can_emit_style_escape): Likewise.
10699 Update all callers of can_emit_style_escape (SOMESTREAM) to
10700 SOMESTREAM->can_emit_style_escape.
10701 * source-cache.c (source_cache::get_source_lines): Likewise.
10702 * stack.c (frame_apply_command_count): Call execute_command_to_string
10703 passing the term_out characteristic of the current gdb_stdout.
10704 * thread.c (thr_try_catch_cmd): Likewise.
10705 * top.c (execute_command_to_string): pass term_out parameter
10706 to construct the string_file for the command output.
10707 * ui-file.c (term_cli_styling): New function (most code moved
10708 from utils.c can_emit_style_escape).
10709 (string_file::string_file, string_file::can_emit_style_escape,
10710 stdio_file::can_emit_style_escape, tee_file::term_out,
10711 tee_file::can_emit_style_escape): New functions.
10712
136afab8
PW
107132019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10714
10715 * NEWS: Mention the new set|show may-call-functions.
10716 * infcall.c (may_call_functions_p): New variable.
10717 (show_may_call_functions_p): New function.
10718 (call_function_by_hand_dummy): Throws an error if not
10719 may-call-functions.
10720 (_initialize_infcall): Call add_setshow_boolean_cmd for
10721 may-call-functions.
10722
725cbb63
KS
107232019-04-25 Keith Seitz <keiths@redhat.com>
10724
10725 PR c++/24367
10726 * cp-support.c (inspect_type): Don't attempt substitutions
10727 of symbol with the same name.
10728
3d1cbb78
TT
107292019-04-25 Tom Tromey <tromey@adacore.com>
10730
10731 PR gdb/24475:
10732 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10733 static.
10734
94aeb44b
TT
107352019-04-25 Tom Tromey <tromey@adacore.com>
10736
10737 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10738 rvalue reference.
10739 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10740 (gdb_xml_parser::parse): Use std::move.
10741 * python/python-internal.h (gdbpy_convert_exception): Take a const
10742 reference.
10743 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10744 std::move.
10745 * python/py-utils.c (gdbpy_convert_exception): Take a const
10746 reference.
10747 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10748 Use std::move.
10749 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10750 Use std::move.
10751 * mi/mi-main.c (mi_print_exception): Take a const reference.
10752 * main.c (handle_command_errors): Take a const reference.
10753 * linespec.c (parse_linespec): Use std::move.
10754 * infcall.c (run_inferior_call): Use std::move.
10755 (call_function_by_hand_dummy): Use std::move.
10756 * exec.c (try_open_exec_file): Use std::move.
10757 * exceptions.h (exception_print, exception_fprintf)
10758 (exception_print_same): Update.
10759 * exceptions.c (print_exception, exception_print)
10760 (exception_fprintf, exception_print_same): Change parameters to
10761 const reference.
10762 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10763 * common/new-op.c: Use std::move.
10764 * common/common-exceptions.h (struct gdb_exception): Add move
10765 constructor.
10766 (struct gdb_exception_error, struct gdb_exception_quit, struct
10767 gdb_quit_bad_alloc): Change constructor to move constructor.
10768 (throw_exception): Change parameter to rvalue reference.
10769 * common/common-exceptions.c (throw_exception): Take rvalue
10770 reference.
10771 * cli/cli-interp.c (safe_execute_command): Use std::move.
10772 * breakpoint.c (insert_bp_location, location_to_sals): Use
10773 std::move.
10774
680d7fd5
TT
107752019-04-25 Tom Tromey <tromey@adacore.com>
10776
10777 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10778 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10779 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10780 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10781 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10782 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10783 guile/scm-value.c: Use unpack.
10784 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10785 gdbscm_gdb_exception.
10786 (gdbscm_throw_gdb_exception): Likewise.
10787 (struct gdbscm_gdb_exception): New.
10788 (unpack): New function.
10789 (gdbscm_wrap): Use unpack.
10790
c6fdd8b2
TT
107912019-04-25 Tom Tromey <tromey@adacore.com>
10792
10793 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10794 (gdb_rl_callback_handler): Use std::move.
10795 * common/common-exceptions.h (struct gdb_exception): Add move
10796 assignment operator.
10797 (throw_exception_sjlj): Change "exception" to const reference.
10798 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10799 (throw_exception_sjlj): Change "exception" to const reference.
10800
cc06b668
TT
108012019-04-25 Tom Tromey <tromey@adacore.com>
10802
10803 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10804 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10805 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10806 Update.
10807 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10808 Update.
10809 * mi/mi-interp.c (mi_interp::exec): Update.
10810 * linespec.c (parse_linespec): Update.
10811 * infcall.c (run_inferior_call): Update.
10812 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10813 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10814 (gdbscm_lookup_global_symbol): Update.
10815 * guile/scm-param.c (gdbscm_parameter_value): Update.
10816 * guile/scm-frame.c (gdbscm_frame_read_register)
10817 (gdbscm_frame_read_var): Update.
10818 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10819 * exec.c (try_open_exec_file): Update.
10820 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10821 (gdb_rl_callback_handler): Update.
10822 * common/common-exceptions.h (exception_none): Don't declare.
10823 * common/common-exceptions.c (exception_none): Don't define.
10824 (struct catcher) <exception>: Update.
10825 * cli/cli-interp.c (safe_execute_command): Update.
10826 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10827
cf532bd1
AT
108282019-04-25 Ali Tamur <tamur@google.com>
10829
10830 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10831 (read_attribute_value): Likewise.
10832 (dwarf2_read_addr_index): Update comment.
10833 (read_str_index): Add DW_FORM_strx.
10834 (dwarf2_string_attr): Likewise.
10835 (dwarf2_const_value_attr): Likewise.
10836 (dump_die_shallow): Likewise.
10837 (dwarf2_fetch_constant_bytes): Likewise.
10838 (skip_form_bytes): Likewise.
10839 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10840
82433e3e
SDJ
108412019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10842
10843 PR corefiles/11608
10844 PR corefiles/18187
10845 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10846 OFFSET. Verify if current mapping contains an ELF header.
10847 (linux_find_memory_regions_full): Adjust call to
10848 dump_mapping_p.
10849
723adb65
SL
108502019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10851 Kang Li <kanglictf@gmail.com>
10852
10853 PR gdb/21600
10854
10855 * dwarf2-frame.c (read_initial_length): Be consistent about using
10856 unsigned representation of length.
10857 (decode_frame_entry_1): Likewise. Check for wraparound of
10858 end pointer as well as buffer overflow.
10859
596179f7
SDJ
108602019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10861
10862 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10863 "vq".
10864
a59240a4
TT
108652019-04-24 Tom Tromey <tromey@adacore.com>
10866
10867 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10868
f872fdbb
AB
108692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10870
10871 * s12z-tdep.c (s12z_unwind_pc): Delete.
10872 (s12z_unwind_sp): Delete.
10873 (s12z_gdbarch_init): Don't register deleted functions with
10874 gdbarch.
10875
b614e6f3
AB
108762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10877
10878 * rl78-tdep.c (rl78_unwind_sp): Delete.
10879 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10880
14faed38
AB
108812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10882
10883 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10884 (xstormy16_unwind_pc): Delete.
10885 (xstormy16_dummy_id): Delete.
10886 (xstormy16_gdbarch_init): Don't register deleted functions with
10887 gdbarch.
10888
541aad8a
AB
108892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10890
10891 * vax-tdep.c (vax_unwind_pc): Delete.
10892 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10893
29222070
AB
108942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10895
10896 * v850-tdep.c (v850_unwind_sp): Delete.
10897 (v850_unwind_pc): Delete.
10898 (v850_dummy_id): Delete.
10899 (v850_gdbarch_init): Don't register deleted functions with
10900 gdbarch.
10901
0f534d76
AB
109022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10903
10904 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10905 (tilegx_unwind_pc): Delete.
10906 (tilegx_unwind_dummy_id): Delete.
10907 (tilegx_gdbarch_init): Don't register deleted functions with
10908 gdbarch.
10909
1ba7b7f9
AB
109102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10911
10912 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10913 (tic6x_dummy_id): Delete.
10914 (tic6x_gdbarch_init): Don't register deleted functions with
10915 gdbarch.
10916
d31f262c
AB
109172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10918
10919 * sparc-tdep.c (sparc_unwind_pc): Delete.
10920 (sparc32_gdbarch_init): Don't register deleted function with
10921 gdbarch.
10922
6d14d64d
AB
109232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10924
10925 * sh-tdep.c (sh_unwind_sp): Delete.
10926 (sh_unwind_pc): Delete.
10927 (sh_dummy_id): Delete.
10928 (sh_gdbarch_init): Don't register deleted functions with
10929 gdbarch.
10930
a40dde9d
AB
109312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10932
10933 * score-tdep.c (score_unwind_sp): Delete.
10934 (score_unwind_pc): Delete.
10935 (score_dummy_id): Delete.
10936 (score_gdbarch_init): Don't register deleted functions with
10937 gdbarch.
10938
47c47d69
AB
109392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10940
10941 * rx-tdep.c (rx_unwind_pc): Delete.
10942 (rx_unwind_sp): Delete.
10943 (rx_dummy_id): Delete.
10944 (rx_gdbarch_init): Don't register deleted functions with
10945 gdbarch. Update comment.
10946
833a4480
AB
109472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10948
10949 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10950 (rs6000_dummy_id): Delete.
10951 (rs6000_gdbarch_init): Don't register deleted functions with
10952 gdbarch.
10953
3f2cef49
AB
109542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10955
10956 * or1k-tdep.c (or1k_dummy_id): Delete.
10957 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10958
96acf884
AB
109592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10960
10961 * nios2-tdep.c (nios2_dummy_id): Delete.
10962 (nios2_unwind_sp): Delete.
10963 (nios2_gdbarch_init): Don't register deleted functions with
10964 gdbarch.
10965
ca0ab0aa
AB
109662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10967
10968 * nds32-tdep.c (nds32_dummy_id): Delete.
10969 (nds32_unwind_pc): Delete.
10970 (nds32_unwind_sp): Delete.
10971 (nds32_gdbarch_init): Don't register deleted functions with
10972 gdbarch.
10973
c8259044
AB
109742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10975
10976 * msp430-tdep.c (msp430_unwind_pc): Delete.
10977 (msp430_unwind_sp): Delete.
10978 (msp430_dummy_id): Delete.
10979 (msp430_gdbarch_init): Don't register deleted functions with
10980 gdbarch.
10981
27f113c8
AB
109822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10983
10984 * moxie-tdep.c (moxie_unwind_sp): Delete.
10985 (moxie_unwind_pc): Delete.
10986 (moxie_dummy_id): Delete.
10987 (moxie_gdbarch_init): Don't register deleted functions with
10988 gdbarch.
10989
aee6c3cd
AB
109902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10991
10992 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10993 (mn10300_unwind_pc): Delete.
10994 (mn10300_unwind_sp): Delete.
10995 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10996 mn10300_unwind_sp.
10997 (mn10300_frame_unwind_init): Don't register deleted functions with
10998 gdbarch.
10999
8e2b5aea
AB
110002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11001
11002 * mep-tdep.c (mep_unwind_pc): Delete.
11003 (mep_unwind_sp): Delete.
11004 (mep_dummy_id): Delete.
11005 (mep_gdbarch_init): Don't register deleted functions with
11006 gdbarch.
11007
43cf3ede
AB
110082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11009
11010 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11011 (m68hc11_unwind_sp): Delete.
11012 (m68hc11_gdbarch_init): Don't register deleted functions with
11013 gdbarch.
11014
5e79b7bb
AB
110152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11016
11017 * m32r-tdep.c (m32r_unwind_sp): Delete.
11018 (m32r_unwind_pc): Delete.
11019 (m32r_dummy_id): Delete.
11020 (m32r_gdbarch_init): Don't register deleted functions with
11021 gdbarch.
11022
89b268d8
AB
110232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11024
11025 * m32c-tdep.c (m32c_unwind_pc): Delete.
11026 (m32c_unwind_sp): Delete.
11027 (m32c_dummy_id): Delete.
11028 (m32c_gdbarch_init): Don't register deleted functions with
11029 gdbarch.
11030
946c28d2
AB
110312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11032
11033 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11034 (lm32_unwind_pc): Delete.
11035 (lm32_dummy_id): Delete.
11036 (lm32_gdbarch_init): Don't register deleted functions with
11037 gdbarch.
11038
bf12844a
AB
110392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11040
11041 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11042 (iq2000_unwind_pc): Delete.
11043 (iq2000_dummy_id): Delete.
11044 (iq2000_gdbarch_init): Don't register deleted functions with
11045 gdbarch.
11046
ecbc06d2
AB
110472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11048
11049 * nds32-tdep.c (nds32_type_align): Delete.
11050 (nds32_push_dummy_call): Use type_align instead.
11051
030197b4
AB
110522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11053
11054 * arm-tdep.c (arm_type_align): Only handle vector override case.
11055 (arm_push_dummy_call): Use type_align.
11056 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11057
b907456c
AB
110582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11059
11060 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11061 case.
11062 (pass_on_stack): Use type_align.
11063 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11064 function.
11065
9e97ba43
TT
110662019-04-23 Tom Tromey <tromey@adacore.com>
11067
11068 * dwarf2read.c (line_header::file_name_at): Remove unused
11069 overload.
11070
6892f601
TV
110712019-04-23 Tom de Vries <tdevries@suse.de>
11072
11073 PR gdb/24438
11074 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11075 invocation.
11076
336d760d
AT
11077
110782019-03-27 Ali Tamur <tamur@google.com>
11079
11080 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11081 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11082 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11083 (dwarf_expr_context::get_addr_index): Likewise
11084 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11085 (symbol_needs_eval_context::get_addr_index): Likewise
11086 (disassemble_dwarf_expression): Add DW_OP_addrx
11087 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11088 (read_cutu_die_from_dwo): Update comment
11089 (skip_one_die): Add DW_FORM_addrx
11090 (read_attribute_value): Likewise
11091 (var_decode_location): Add DW_OP_addrx
11092 (dwarf2_const_value_attr): Add DW_FORM_addrx
11093 (dump_die_shallow): Likewise
11094 (dwarf2_fetch_constant_bytes): Likewise
11095 (decode_locdesc): Add DW_OP_addrx
11096 (skip_form_bytes): Add DW_FORM_addrx
11097
ad9d13f8
AT
110982019-04-22 Ali Tamur <tamur@google.com>
11099
11100 * MAINTAINERS (Write After Approval): Add self.
11101
d70cc3ba
SM
111022019-04-22 Simon Marchi <simon.marchi@efficios.com>
11103
11104 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11105 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11106 (open_symbol_file_object): Likewise.
11107 (svr4_default_sos): Add info parameter.
11108 (svr4_read_so_list): Likewise.
11109 (svr4_current_sos_direct): Adjust functions calls to pass down
11110 info.
11111 (svr4_current_sos_1): Add info parameter.
11112 (svr4_current_sos): Call get_svr4_info, pass info down to
11113 svr4_current_sos_1.
11114 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11115 get_svr4_info.
11116 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11117 get_svr4_info.
11118 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11119 to get_svr4_info.
11120 (probes_table_remove_objfile_probes): Likewise.
11121 (register_solib_event_probe): Add info parameter.
11122 (solist_update_incremental): Pass info parameter down to
11123 svr4_read_so_list.
11124 (disable_probes_interface): Add info parameter.
11125 (svr4_handle_solib_event): Pass current_program_space to
11126 get_svr4_info. Adjust disable_probes_interface cleanup.
11127 (svr4_create_probe_breakpoints): Add info parameter, pass it
11128 down to register_solib_event_probe.
11129 (svr4_create_solib_event_breakpoints): Add info parameter,
11130 pass it down to svr4_create_probe_breakpoints.
11131 (enable_break): Pass info down to
11132 svr4_create_solib_event_breakpoints.
11133 (svr4_solib_create_inferior_hook): Pass current_program_space to
11134 get_svr4_info.
11135 (svr4_clear_solib): Likewise.
11136
7905fc35
PA
111372019-04-22 Pedro Alves <palves@redhat.com>
11138
11139 * solib-svr4.c (svr4_free_objfile_observer): New.
11140 (probe_and_action::objfile): New field.
11141 (probes_table_htab_remove_objfile_probes)
11142 (probes_table_remove_objfile_probes): New functions.
11143 (register_solib_event_probe): Add 'objfile' parameter. Store it
11144 in the new probe_and_action. Don't store the probe in 'lookup'.
11145 (svr4_create_probe_breakpoints): Pass objfile to
11146 register_solib_event_probe.
11147 (_initialize_svr4_solib): Register a free_objfile observer.
11148
fb881986
TT
111492019-04-19 Tom Tromey <tom@tromey.com>
11150
11151 * common/queue.h: Remove.
11152
8732db6c
TT
111532019-04-19 Tom Tromey <tom@tromey.com>
11154
11155 * event-loop.c: Don't include "common/queue.h".
11156
97dfbadd
TT
111572019-04-19 Tom Tromey <tom@tromey.com>
11158
11159 * remote.c (remote_target): Use delete.
11160 * remote-notif.h: Include <list>, not "common/queue.h".
11161 (notif_client_p): Remove typedef.
11162 (remote_notif_state): Add constructor, destructor, initializer.
11163 <notif_queue>: Now a std::list.
11164 (remote_notif_state_xfree): Don't declare.
11165 * remote-notif.c (remote_notif_process, handle_notification)
11166 (remote_notif_state_allocate): Update.
11167 (~remote_notif_state): Rename from remote_notif_state_xfree.
11168
cf250e36
TT
111692019-04-19 Tom Tromey <tom@tromey.com>
11170
11171 * symfile.c (reread_symbols): Update.
11172 * objfiles.c (objfile_register_static_link)
11173 (objfile_lookup_static_link): Update
11174 (~objfile) Don't delete static_links.
11175 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11176
61f4b350
TT
111772019-04-19 Tom Tromey <tom@tromey.com>
11178
11179 * type-stack.h (struct type_stack) <insert>: Constify string.
11180 * type-stack.c (type_stack::insert): Constify string.
11181 * gdbtypes.h (lookup_template_type): Update.
11182 (address_space_name_to_int): Update.
11183 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11184 const.
11185 (lookup_template_type): Make name const.
11186 * c-exp.y: Update rules.
11187 (lex_one_token, classify_name, classify_inner_name)
11188 (c_print_token): Update.
11189 * p-exp.y: Update rules.
11190 (yylex): Update.
11191 * f-exp.y: Update rules.
11192 (yylex): Update.
11193 * d-exp.y: Update rules.
11194 (lex_one_token, classify_name, classify_inner_name): Update.
11195 * parse.c (write_dollar_variable, copy_name): Return std::string.
11196 * parser-defs.h (copy_name): Change return type.
11197 * m2-exp.y: Update rules.
11198 (yylex): Update.
11199 * go-exp.y (lex_one_token): Update.
11200 Update rules.
11201 (classify_unsafe_function, classify_packaged_name)
11202 (classify_name, yylex): Update.
11203
189b8c2e
ST
112042019-04-19 Sergei Trofimovich <siarheit@google.com>
11205
11206 * configure.ac: add --enable-source-highlight switch.
11207 * configure: Regenerate.
11208 * top.c (print_gdb_version): plumb --enable-source-highlight
11209 status to "show configuration".
11210
8ecb59f8
TT
112112019-04-19 Tom Tromey <tromey@adacore.com>
11212
11213 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11214 Check ADA_TYPE_P.
11215 (empty_record, ada_template_to_fixed_record_type_1)
11216 (template_to_static_fixed_type)
11217 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11218 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11219 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11220 macros.
11221
62160ec9
TT
112222019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11223
11224 PR symtab/24423:
11225 * source.c (print_source_lines_base): Advance "iter" when a
11226 control character is seen.
11227
f2ae8bc8
PW
112282019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11229
11230 * inferior.h (struct infcall_suspend_state_deleter):
11231 Catch exception in destructor to avoid crash.
11232
d563b953
PW
112332019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11234
11235 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11236 close to the add_com "shell".
11237
dc34c897
TT
112382019-04-18 Tom Tromey <tromey@adacore.com>
11239
11240 * process-stratum-target.h (class process_stratum_target)
11241 <stratum>: Add "final".
11242
a12e5744
TT
112432019-04-17 Tom Tromey <tromey@adacore.com>
11244
11245 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11246 against nullptr before use.
11247
a7e559cc
AH
112482019-04-17 Alan Hayward <alan.hayward@arm.com>
11249
11250 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11251
c01660c6
AB
112522019-04-17 Jim Wilson <jimw@sifive.com>
11253 Andrew Burgess <andrew.burgess@embecosm.com>
11254
11255 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11256 code read might fail, assume 4-byte breakpoint in that case.
11257
4aa866af
LS
112582019-04-15 Leszek Swirski <leszeks@google.com>
11259
11260 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11261 rather than a hand-rolled POD check when checking for forced MEMORY
11262 classification.
11263
48574d91
AH
112642019-04-15 Alan Hayward <alan.hayward@arm.com>
11265
11266 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11267 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11268 function.
11269 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11270 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11271 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11272 declaration.
11273
4da037ef
AH
112742019-04-15 Alan Hayward <alan.hayward@arm.com>
11275
11276 * aarch64-linux-nat.c
11277 (aarch64_linux_nat_target::thread_architecture): Add override.
11278 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11279 each VQ.
11280
ccb8d7e8
AH
112812019-04-15 Alan Hayward <alan.hayward@arm.com>
11282
11283 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11284
35add35e
AB
112852019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11286
11287 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11288 target types of size 96-bits, add some additional comments, and
11289 check that the builtin type we found was the correct size.
11290
51196bbc
EZ
112912019-04-12 Eli Zaretskii <eliz@gnu.org>
11292
11293 * utils.c (prompt_for_continue): Don't restore the styling at the
11294 end, as applied_style has the wrong value. This fixes styling in
11295 long lists of file names that are interrupted by the "Continue?"
11296 prompt.
11297
62253a61
AB
112982019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11299
11300 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11301 * c-lang.c (c_language_defn): Likewise.
11302 (cplus_language_defn): Likewise.
11303 (asm_language_defn): Likewise.
11304 (minimal_language_defn): Likewise.
11305 * d-lang.c (d_language_defn): Likewise.
11306 * f-lang.c (f_language_defn): Likewise.
11307 * go-lang.c (go_language_defn): Likewise.
11308 * language.c (unknown_language_defn): Likewise.
11309 (auto_language_defn): Likewise.
11310 * language.h (struct language_defn): Remove la_magic field.
11311 (LANG_MAGIC): Delete.
11312 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11313 * objc-lang.c (objc_language_defn): Likewise.
11314 * opencl-lang.c (opencl_language_defn): Likewise.
11315 * p-lang.c (pascal_language_defn): Likewise.
11316 * rust-lang.c (rust_language_defn): Likewise.
11317
a9158a86
AB
113182019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11319
11320 * riscv-tdep.c (riscv_type_align): New function.
11321 (riscv_type_alignment): Delete.
11322 (riscv_arg_location): Use 'type_align'.
11323 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11324
41077b66
AB
113252019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11326
11327 * gdbtypes.c (type_align): A struct with no non-static fields also
11328 has alignment of 1.
11329
9f0272f8
AB
113302019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11331
11332 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11333 component to 0.
11334 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11335 member.
11336 (riscv_struct_info::analyse): New implementation using new
11337 analyse_inner member function.
11338 (riscv_struct_info::field_offset): New member function.
11339 (riscv_struct_info::m_offsets): New member variable.
11340 (riscv_struct_info::analyse_inner): New private member function,
11341 takes the old implementation of riscv_struct_info::analyse but
11342 extended to track field offsets.
11343 (riscv_call_arg_struct): Update the struct folding special cases
11344 to handle cases where empty C++ structs, which are non-zero
11345 length, are found.
11346 (riscv_arg_location): Initialise the length of each location, a
11347 non-zero length now indicates the location is in use.
11348 (riscv_push_dummy_call): Allow for the first location having a
11349 non-zero offset when setting up arguments.
11350 (riscv_return_value): Likewise, but for return values.
11351
02cf60c7
TT
113522019-04-11 Tom Tromey <tromey@adacore.com>
11353
11354 * utils.c (internal_vproblem): Make "msg" const.
11355
68811f8f
AH
113562019-04-11 Alan Hayward <alan.hayward@arm.com>
11357
11358 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11359 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11360 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11361 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11362
3f52fdbc
KB
113632019-04-10 Kevin Buettner <kevinb@redhat.com>
11364
11365 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11366 function.
11367 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11368 of amd64_collect_native_gregset.
11369 (amd64_linux_nat_target::store_registers): Likewise.
11370
e9ad22ee
TT
113712019-04-10 Tom Tromey <tom@tromey.com>
11372
11373 * symtab.c (lookup_global_symbol_from_objfile)
11374 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11375 * objfiles.h (class separate_debug_iterator): New.
11376 (class separate_debug_range): New.
11377 (struct objfile) <separate_debug_objfiles>: New method.
11378 (objfile_separate_debug_iterate): Don't declare.
11379 * objfiles.c (separate_debug_iterator::operator++): Rename from
11380 objfile_separate_debug_iterate.
11381 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11382 iterator.
11383 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11384 iterator.
11385
ee371134
TT
113862019-04-10 Tom Tromey <tom@tromey.com>
11387
11388 * symfile.c (reread_symbols): Remove old comment.
11389 * objfiles.c (free_all_objfiles): Fix a typo.
11390
bf227d61
TT
113912019-04-10 Tom Tromey <tom@tromey.com>
11392
11393 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11394 * minsyms.c (lookup_minimal_symbol): Use foreach.
11395 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11396 (lookup_minimal_symbol_solib_trampoline): Likewise.
11397 * symfile.c (reread_symbols): Use foreach.
11398
8dc433a0
TT
113992019-04-09 Ivan Begert <ivanbegert@gmail.com>
11400 Tom Tromey <tromey@adacore.com>
11401
11402 PR rust/24414:
11403 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11404 (rust_lex_int_test): Change "value" to be LONGEST.
11405 (rust_lex_tests): Add test for long integer literal.
11406
9ab8741a
TT
114072019-04-09 Tom Tromey <tromey@adacore.com>
11408
11409 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11410 to bool.
11411 (extended_remote_target::attach): Update.
11412 (remote_target::remote_notice_new_inferior): Update.
11413 (remote_target::add_current_inferior_and_thread): Update.
11414 * inferior.c (exit_inferior_1): Use "false".
11415 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11416
e242fd12
SM
114172019-04-09 Simon Marchi <simon.marchi@efficios.com>
11418
9ca1957f 11419 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11420 the "start" command.
11421
2b0c8b01
KB
114222019-04-08 Kevin Buettner <kevinb@redhat.com>
11423
11424 * python/py-inferior.c (infpy_thread_from_thread_handle):
11425 Adjust comments to reflect renaming of thread_from_thread_handle
11426 to thread_from_handle. Adjust keywords. Fix type error message.
11427 (inferior_object_methods): Add thread_from_handle. Retain
11428 thread_from_thread_handle, but mark it as deprecated.
11429
50a82723
KB
114302019-04-08 Kevin Buettner <kevinb@redhat.com>
11431
11432 * gdbthread.h (find_thread_by_handle): Revise declaration.
11433 * thread.c (find_thread_by_handle): Likewise. Adjust
11434 implementation too.
11435 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11436 support for buffer objects as handles.
11437
cf63b016
KB
114382019-04-08 Kevin Buettner <kevinb@redhat.com>
11439
11440 * python/py-infthread.c (thpy_thread_handle): New function.
11441 (thread_object_methods): Register thpy_thread_handle.
11442
3d6c6204
KB
114432019-04-08 Kevin Buettner <kevinb@redhat.com>
11444
11445 * gdbthread.h (thread_to_thread_handle): Declare.
11446 * thread.c (gdbtypes.h): Include.
11447 (thread_to_thread_handle): New function.
11448
11449 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11450 (target_thread_info_to_thread_handle): Declare.
11451 * target.c (target_thread_info_to_thread_handle): New function.
11452 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11453 * target-delegates.c: Regenerate.
11454
11455 * linux-thread-db.c (class thread_db_target): Add method
11456 thread_info_to_thread_handle.
11457 (thread_db_target::thread_info_to_thread_handle): Define.
11458 * remote.c (class remote_target): Add new method
11459 thread_info_to_thread_handle.
11460 (remote_target::thread_info_to_thread_handle): Define.
11461
56be6ea8
PA
114622019-04-08 Pedro Alves <palves@redhat.com>
11463
11464 * common/common-exceptions.c (throw_exception): Don't create
11465 named object to throw; throw directly.
11466 (throw_it): Likewise. Don't initialize gdb_exception::message
11467 here, with new; pass FMT and AP to the ctor instead.
11468 * common/common-exceptions.h: Include <string>.
11469 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11470 const char *, va_list)): New ctor. Use std::make_shared.
11471 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11472 errors)): Delete.
11473 (gdb_exception_error::gdb_exception_error(enum errors, const char
11474 *, va_list)): New.
11475 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11476 Add assertion.
11477 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11478 errors)): Delete.
11479 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11480 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11481 Add assertion.
11482
eedc3f4f
TT
114832019-04-08 Tom Tromey <tom@tromey.com>
11484
11485 * valops.c (value_rtti_indirect_type): Replace throw_exception
11486 with throw.
11487 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11488 with throw.
11489 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11490 throw.
11491 * target.c (target_translate_tls_address): Replace throw_exception
11492 with throw.
11493 * stack.c (frame_apply_command_count): Replace throw_exception
11494 with throw.
11495 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11496 throw.
11497 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11498 with throw.
11499 * rs6000-tdep.c (rs6000_frame_cache)
11500 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11501 * remote.c: Replace throw_exception with throw.
11502 * record-full.c (record_full_message, record_full_wait_1)
11503 (record_full_restore): Replace throw_exception with throw.
11504 * record-btrace.c:
11505 (get_thread_current_frame_id, record_btrace_start_replaying)
11506 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11507 (cmd_record_btrace_start): Replace throw_exception with throw.
11508 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11509 throw.
11510 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11511 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11512 * linespec.c:
11513 (find_linespec_symbols): Replace throw_exception with throw.
11514 * infrun.c (displaced_step_prepare, resume): Replace
11515 throw_exception with throw.
11516 * infcmd.c (post_create_inferior): Replace throw_exception with
11517 throw.
11518 * inf-loop.c (inferior_event_handler): Replace throw_exception
11519 with throw.
11520 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11521 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11522 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11523 (get_prev_frame_always, get_frame_pc_if_available)
11524 (get_frame_address_in_block_if_available, get_frame_language):
11525 Replace throw_exception with throw.
11526 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11527 throw_exception with throw.
11528 * eval.c (fetch_subexp_value, evaluate_var_value)
11529 (evaluate_funcall, evaluate_subexp_standard): Replace
11530 throw_exception with throw.
11531 * dwarf2loc.c (call_site_find_chain)
11532 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11533 Replace throw_exception with throw.
11534 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11535 with throw.
11536 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11537 throw.
11538 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11539 * completer.c (complete_line_internal): Replace throw_exception
11540 with throw.
11541 * compile/compile-object-run.c (compile_object_run): Replace
11542 throw_exception with throw.
11543 * cli/cli-script.c (process_next_line): Replace throw_exception
11544 with throw.
11545 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11546 (btrace_enable, btrace_maint_update_pt_packets): Replace
11547 throw_exception with throw.
11548 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11549 throw_exception with throw.
11550 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11551 throw_exception with throw.
11552 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11553 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11554 * aarch64-tdep.c (aarch64_make_prologue_cache)
11555 (aarch64_make_stub_cache): Replace throw_exception with throw.
11556
26003a20
TT
115572019-04-08 Tom Tromey <tom@tromey.com>
11558
11559 * common/common-exceptions.c (throw_exception): Rename from
11560 throw_exception_cxx. Remove old copy. Make argument const.
11561 (throw_it): Create and throw exception objects directly.
11562 * common/common-exceptions.h (throw_exception): Make argument
11563 const.
11564 (struct gdb_exception_error): Add constructor.
11565 (struct gdb_exception_quit): Add constructor.
11566
d272eb37
TT
115672019-04-08 Tom Tromey <tom@tromey.com>
11568
11569 * common/common-exceptions.h (exception_rethrow): Don't declare.
11570 (TRY_SJLJ): Update comment.
11571 (TRY, CATCH, END_CATCH): Remove.
11572 * common/common-exceptions.c (exception_rethrow): Remove.
11573
230d2906
TT
115742019-04-08 Tom Tromey <tom@tromey.com>
11575
11576 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11577 Remove.
11578 (gdb_exception_error): Rename from
11579 gdb_exception_RETURN_MASK_ERROR.
11580 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11581 (gdb_quit_bad_alloc): Update.
11582 * aarch64-tdep.c: Update.
11583 * ada-lang.c: Update.
11584 * ada-typeprint.c: Update.
11585 * ada-valprint.c: Update.
11586 * amd64-tdep.c: Update.
11587 * arch-utils.c: Update.
11588 * break-catch-throw.c: Update.
11589 * breakpoint.c: Update.
11590 * btrace.c: Update.
11591 * c-varobj.c: Update.
11592 * cli/cli-cmds.c: Update.
11593 * cli/cli-interp.c: Update.
11594 * cli/cli-script.c: Update.
11595 * common/common-exceptions.c: Update.
11596 * common/new-op.c: Update.
11597 * common/selftest.c: Update.
11598 * compile/compile-c-symbols.c: Update.
11599 * compile/compile-cplus-symbols.c: Update.
11600 * compile/compile-object-load.c: Update.
11601 * compile/compile-object-run.c: Update.
11602 * completer.c: Update.
11603 * corelow.c: Update.
11604 * cp-abi.c: Update.
11605 * cp-support.c: Update.
11606 * cp-valprint.c: Update.
11607 * darwin-nat.c: Update.
11608 * disasm-selftests.c: Update.
11609 * dtrace-probe.c: Update.
11610 * dwarf-index-cache.c: Update.
11611 * dwarf-index-write.c: Update.
11612 * dwarf2-frame-tailcall.c: Update.
11613 * dwarf2-frame.c: Update.
11614 * dwarf2loc.c: Update.
11615 * dwarf2read.c: Update.
11616 * eval.c: Update.
11617 * event-loop.c: Update.
11618 * event-top.c: Update.
11619 * exec.c: Update.
11620 * f-valprint.c: Update.
11621 * fbsd-tdep.c: Update.
11622 * frame-unwind.c: Update.
11623 * frame.c: Update.
11624 * gdbtypes.c: Update.
11625 * gnu-v3-abi.c: Update.
11626 * guile/guile-internal.h: Update.
11627 * guile/scm-block.c: Update.
11628 * guile/scm-breakpoint.c: Update.
11629 * guile/scm-cmd.c: Update.
11630 * guile/scm-disasm.c: Update.
11631 * guile/scm-frame.c: Update.
11632 * guile/scm-lazy-string.c: Update.
11633 * guile/scm-math.c: Update.
11634 * guile/scm-param.c: Update.
11635 * guile/scm-ports.c: Update.
11636 * guile/scm-pretty-print.c: Update.
11637 * guile/scm-symbol.c: Update.
11638 * guile/scm-symtab.c: Update.
11639 * guile/scm-type.c: Update.
11640 * guile/scm-value.c: Update.
11641 * i386-linux-tdep.c: Update.
11642 * i386-tdep.c: Update.
11643 * inf-loop.c: Update.
11644 * infcall.c: Update.
11645 * infcmd.c: Update.
11646 * infrun.c: Update.
11647 * jit.c: Update.
11648 * language.c: Update.
11649 * linespec.c: Update.
11650 * linux-fork.c: Update.
11651 * linux-nat.c: Update.
11652 * linux-tdep.c: Update.
11653 * linux-thread-db.c: Update.
11654 * main.c: Update.
11655 * mi/mi-cmd-break.c: Update.
11656 * mi/mi-cmd-stack.c: Update.
11657 * mi/mi-interp.c: Update.
11658 * mi/mi-main.c: Update.
11659 * objc-lang.c: Update.
11660 * p-valprint.c: Update.
11661 * parse.c: Update.
11662 * ppc-linux-tdep.c: Update.
11663 * printcmd.c: Update.
11664 * python/py-arch.c: Update.
11665 * python/py-breakpoint.c: Update.
11666 * python/py-cmd.c: Update.
11667 * python/py-finishbreakpoint.c: Update.
11668 * python/py-frame.c: Update.
11669 * python/py-framefilter.c: Update.
11670 * python/py-gdb-readline.c: Update.
11671 * python/py-inferior.c: Update.
11672 * python/py-infthread.c: Update.
11673 * python/py-lazy-string.c: Update.
11674 * python/py-linetable.c: Update.
11675 * python/py-objfile.c: Update.
11676 * python/py-param.c: Update.
11677 * python/py-prettyprint.c: Update.
11678 * python/py-progspace.c: Update.
11679 * python/py-record-btrace.c: Update.
11680 * python/py-record.c: Update.
11681 * python/py-symbol.c: Update.
11682 * python/py-type.c: Update.
11683 * python/py-unwind.c: Update.
11684 * python/py-utils.c: Update.
11685 * python/py-value.c: Update.
11686 * python/python.c: Update.
11687 * record-btrace.c: Update.
11688 * record-full.c: Update.
11689 * remote-fileio.c: Update.
11690 * remote.c: Update.
11691 * riscv-tdep.c: Update.
11692 * rs6000-aix-tdep.c: Update.
11693 * rs6000-tdep.c: Update.
11694 * rust-exp.y: Update.
11695 * rust-lang.c: Update.
11696 * s390-tdep.c: Update.
11697 * selftest-arch.c: Update.
11698 * solib-dsbt.c: Update.
11699 * solib-frv.c: Update.
11700 * solib-spu.c: Update.
11701 * solib-svr4.c: Update.
11702 * solib.c: Update.
11703 * sparc64-linux-tdep.c: Update.
11704 * stack.c: Update.
11705 * symfile-mem.c: Update.
11706 * symmisc.c: Update.
11707 * target.c: Update.
11708 * thread.c: Update.
11709 * top.c: Update.
11710 * tracefile-tfile.c: Update.
11711 * tui/tui.c: Update.
11712 * typeprint.c: Update.
11713 * unittests/cli-utils-selftests.c: Update.
11714 * unittests/parse-connection-spec-selftests.c: Update.
11715 * valops.c: Update.
11716 * valprint.c: Update.
11717 * value.c: Update.
11718 * varobj.c: Update.
11719 * windows-nat.c: Update.
11720 * x86-linux-nat.c: Update.
11721 * xml-support.c: Update.
11722
a70b8144
TT
117232019-04-08 Tom Tromey <tom@tromey.com>
11724
11725 * xml-support.c: Use C++ exception handling.
11726 * x86-linux-nat.c: Use C++ exception handling.
11727 * windows-nat.c: Use C++ exception handling.
11728 * varobj.c: Use C++ exception handling.
11729 * value.c: Use C++ exception handling.
11730 * valprint.c: Use C++ exception handling.
11731 * valops.c: Use C++ exception handling.
11732 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11733 handling.
11734 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11735 * typeprint.c: Use C++ exception handling.
11736 * tui/tui.c: Use C++ exception handling.
11737 * tracefile-tfile.c: Use C++ exception handling.
11738 * top.c: Use C++ exception handling.
11739 * thread.c: Use C++ exception handling.
11740 * target.c: Use C++ exception handling.
11741 * symmisc.c: Use C++ exception handling.
11742 * symfile-mem.c: Use C++ exception handling.
11743 * stack.c: Use C++ exception handling.
11744 * sparc64-linux-tdep.c: Use C++ exception handling.
11745 * solib.c: Use C++ exception handling.
11746 * solib-svr4.c: Use C++ exception handling.
11747 * solib-spu.c: Use C++ exception handling.
11748 * solib-frv.c: Use C++ exception handling.
11749 * solib-dsbt.c: Use C++ exception handling.
11750 * selftest-arch.c: Use C++ exception handling.
11751 * s390-tdep.c: Use C++ exception handling.
11752 * rust-lang.c: Use C++ exception handling.
11753 * rust-exp.y: Use C++ exception handling.
11754 * rs6000-tdep.c: Use C++ exception handling.
11755 * rs6000-aix-tdep.c: Use C++ exception handling.
11756 * riscv-tdep.c: Use C++ exception handling.
11757 * remote.c: Use C++ exception handling.
11758 * remote-fileio.c: Use C++ exception handling.
11759 * record-full.c: Use C++ exception handling.
11760 * record-btrace.c: Use C++ exception handling.
11761 * python/python.c: Use C++ exception handling.
11762 * python/py-value.c: Use C++ exception handling.
11763 * python/py-utils.c: Use C++ exception handling.
11764 * python/py-unwind.c: Use C++ exception handling.
11765 * python/py-type.c: Use C++ exception handling.
11766 * python/py-symbol.c: Use C++ exception handling.
11767 * python/py-record.c: Use C++ exception handling.
11768 * python/py-record-btrace.c: Use C++ exception handling.
11769 * python/py-progspace.c: Use C++ exception handling.
11770 * python/py-prettyprint.c: Use C++ exception handling.
11771 * python/py-param.c: Use C++ exception handling.
11772 * python/py-objfile.c: Use C++ exception handling.
11773 * python/py-linetable.c: Use C++ exception handling.
11774 * python/py-lazy-string.c: Use C++ exception handling.
11775 * python/py-infthread.c: Use C++ exception handling.
11776 * python/py-inferior.c: Use C++ exception handling.
11777 * python/py-gdb-readline.c: Use C++ exception handling.
11778 * python/py-framefilter.c: Use C++ exception handling.
11779 * python/py-frame.c: Use C++ exception handling.
11780 * python/py-finishbreakpoint.c: Use C++ exception handling.
11781 * python/py-cmd.c: Use C++ exception handling.
11782 * python/py-breakpoint.c: Use C++ exception handling.
11783 * python/py-arch.c: Use C++ exception handling.
11784 * printcmd.c: Use C++ exception handling.
11785 * ppc-linux-tdep.c: Use C++ exception handling.
11786 * parse.c: Use C++ exception handling.
11787 * p-valprint.c: Use C++ exception handling.
11788 * objc-lang.c: Use C++ exception handling.
11789 * mi/mi-main.c: Use C++ exception handling.
11790 * mi/mi-interp.c: Use C++ exception handling.
11791 * mi/mi-cmd-stack.c: Use C++ exception handling.
11792 * mi/mi-cmd-break.c: Use C++ exception handling.
11793 * main.c: Use C++ exception handling.
11794 * linux-thread-db.c: Use C++ exception handling.
11795 * linux-tdep.c: Use C++ exception handling.
11796 * linux-nat.c: Use C++ exception handling.
11797 * linux-fork.c: Use C++ exception handling.
11798 * linespec.c: Use C++ exception handling.
11799 * language.c: Use C++ exception handling.
11800 * jit.c: Use C++ exception handling.
11801 * infrun.c: Use C++ exception handling.
11802 * infcmd.c: Use C++ exception handling.
11803 * infcall.c: Use C++ exception handling.
11804 * inf-loop.c: Use C++ exception handling.
11805 * i386-tdep.c: Use C++ exception handling.
11806 * i386-linux-tdep.c: Use C++ exception handling.
11807 * guile/scm-value.c: Use C++ exception handling.
11808 * guile/scm-type.c: Use C++ exception handling.
11809 * guile/scm-symtab.c: Use C++ exception handling.
11810 * guile/scm-symbol.c: Use C++ exception handling.
11811 * guile/scm-pretty-print.c: Use C++ exception handling.
11812 * guile/scm-ports.c: Use C++ exception handling.
11813 * guile/scm-param.c: Use C++ exception handling.
11814 * guile/scm-math.c: Use C++ exception handling.
11815 * guile/scm-lazy-string.c: Use C++ exception handling.
11816 * guile/scm-frame.c: Use C++ exception handling.
11817 * guile/scm-disasm.c: Use C++ exception handling.
11818 * guile/scm-cmd.c: Use C++ exception handling.
11819 * guile/scm-breakpoint.c: Use C++ exception handling.
11820 * guile/scm-block.c: Use C++ exception handling.
11821 * guile/guile-internal.h: Use C++ exception handling.
11822 * gnu-v3-abi.c: Use C++ exception handling.
11823 * gdbtypes.c: Use C++ exception handling.
11824 * frame.c: Use C++ exception handling.
11825 * frame-unwind.c: Use C++ exception handling.
11826 * fbsd-tdep.c: Use C++ exception handling.
11827 * f-valprint.c: Use C++ exception handling.
11828 * exec.c: Use C++ exception handling.
11829 * event-top.c: Use C++ exception handling.
11830 * event-loop.c: Use C++ exception handling.
11831 * eval.c: Use C++ exception handling.
11832 * dwarf2read.c: Use C++ exception handling.
11833 * dwarf2loc.c: Use C++ exception handling.
11834 * dwarf2-frame.c: Use C++ exception handling.
11835 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11836 * dwarf-index-write.c: Use C++ exception handling.
11837 * dwarf-index-cache.c: Use C++ exception handling.
11838 * dtrace-probe.c: Use C++ exception handling.
11839 * disasm-selftests.c: Use C++ exception handling.
11840 * darwin-nat.c: Use C++ exception handling.
11841 * cp-valprint.c: Use C++ exception handling.
11842 * cp-support.c: Use C++ exception handling.
11843 * cp-abi.c: Use C++ exception handling.
11844 * corelow.c: Use C++ exception handling.
11845 * completer.c: Use C++ exception handling.
11846 * compile/compile-object-run.c: Use C++ exception handling.
11847 * compile/compile-object-load.c: Use C++ exception handling.
11848 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11849 * compile/compile-c-symbols.c: Use C++ exception handling.
11850 * common/selftest.c: Use C++ exception handling.
11851 * common/new-op.c: Use C++ exception handling.
11852 * cli/cli-script.c: Use C++ exception handling.
11853 * cli/cli-interp.c: Use C++ exception handling.
11854 * cli/cli-cmds.c: Use C++ exception handling.
11855 * c-varobj.c: Use C++ exception handling.
11856 * btrace.c: Use C++ exception handling.
11857 * breakpoint.c: Use C++ exception handling.
11858 * break-catch-throw.c: Use C++ exception handling.
11859 * arch-utils.c: Use C++ exception handling.
11860 * amd64-tdep.c: Use C++ exception handling.
11861 * ada-valprint.c: Use C++ exception handling.
11862 * ada-typeprint.c: Use C++ exception handling.
11863 * ada-lang.c: Use C++ exception handling.
11864 * aarch64-tdep.c: Use C++ exception handling.
11865
3d6e9d23
TT
118662019-04-08 Tom Tromey <tom@tromey.com>
11867
11868 * xml-support.c (gdb_xml_parser::parse): Update.
11869 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11870 * value.c (show_convenience): Update.
11871 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11872 (test_parse_flags_qcs): Update.
11873 * thread.c (thr_try_catch_cmd): Update.
11874 * target.c (target_translate_tls_address): Update.
11875 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11876 (info_frame_command_core, frame_apply_command_count): Update.
11877 * rust-exp.y (rust_lex_exception_test): Update.
11878 * riscv-tdep.c (riscv_print_one_register_info): Update.
11879 * remote.c (remote_target::enable_btrace): Update.
11880 * record-btrace.c (record_btrace_enable_warn): Update.
11881 * python/py-utils.c (gdbpy_convert_exception): Update.
11882 * printcmd.c (do_one_display, print_variable_and_value): Update.
11883 * mi/mi-main.c (mi_print_exception): Update.
11884 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11885 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11886 * linux-nat.c (linux_nat_target::attach): Update.
11887 * linux-fork.c (class scoped_switch_fork_info): Update.
11888 * infrun.c (displaced_step_prepare): Update.
11889 * infcall.c (call_function_by_hand_dummy): Update.
11890 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11891 * gnu-v3-abi.c (print_one_vtable): Update.
11892 * frame.c (get_prev_frame_always): Update.
11893 * f-valprint.c (info_common_command_for_block): Update.
11894 * exec.c (try_open_exec_file): Update.
11895 * exceptions.c (print_exception, exception_print)
11896 (exception_fprintf, exception_print_same): Update.
11897 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11898 * dwarf-index-cache.c (index_cache::store)
11899 (index_cache::lookup_gdb_index): Update.
11900 * darwin-nat.c (maybe_cache_shell): Update.
11901 * cp-valprint.c (cp_print_value_fields): Update.
11902 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11903 (gcc_cplus_symbol_address): Update.
11904 * compile/compile-c-symbols.c (gcc_convert_symbol)
11905 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11906 * common/selftest.c: Update.
11907 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11908 a std::string.
11909 (exception_try_scope_entry, exception_try_scope_exit): Don't
11910 declare.
11911 (struct exception_try_scope): Remove.
11912 (TRY): Don't use exception_try_scope.
11913 (struct gdb_exception): Add constructor, operator=.
11914 <what>: New method.
11915 (struct gdb_exception_RETURN_MASK_ALL)
11916 (struct gdb_exception_RETURN_MASK_ERROR)
11917 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11918 (struct gdb_quit_bad_alloc): Update.
11919 * common/common-exceptions.c (exception_none): Change
11920 initializer.
11921 (struct catcher) <state, exception>: Initialize inline.
11922 <prev>: Remove member.
11923 (current_catcher): Remove.
11924 (catchers): New global.
11925 (exceptions_state_mc_init): Simplify.
11926 (catcher_pop): Remove.
11927 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11928 (try_scope_depth, exception_try_scope_entry)
11929 (exception_try_scope_exit): Remove.
11930 (throw_exception_sjlj): Update.
11931 (exception_messages, exception_messages_size): Remove.
11932 (throw_it): Simplify.
11933 (gdb_exception_sliced_copy): Remove.
11934 (throw_exception_cxx): Update.
11935 * cli/cli-script.c (script_from_file): Update.
11936 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11937 Update.
11938 * ada-valprint.c (ada_val_print): Update.
11939 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11940 (create_excep_cond_exprs): Update.
11941
c5c10118
TT
119422019-04-08 Tom Tromey <tom@tromey.com>
11943
11944 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11945 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11946 (TRY, CATCH, END_CATCH): Remove some definitions.
11947 * common/common-exceptions.c: Don't use GDB_XCPT.
11948 (catcher_list_size): Remove.
11949 (throw_exception, throw_it): Simplify.
11950
4de283e4
TT
119512019-04-05 Tom Tromey <tom@tromey.com>
11952
11953 Revert the header-sorting patch.
11954 * ft32-tdep.c: Revert.
11955 * frv-tdep.c: Revert.
11956 * frv-linux-tdep.c: Revert.
11957 * frame.c: Revert.
11958 * frame-unwind.c: Revert.
11959 * frame-base.c: Revert.
11960 * fork-child.c: Revert.
11961 * findvar.c: Revert.
11962 * findcmd.c: Revert.
11963 * filesystem.c: Revert.
11964 * filename-seen-cache.h: Revert.
11965 * filename-seen-cache.c: Revert.
11966 * fbsd-tdep.c: Revert.
11967 * fbsd-nat.h: Revert.
11968 * fbsd-nat.c: Revert.
11969 * f-valprint.c: Revert.
11970 * f-typeprint.c: Revert.
11971 * f-lang.c: Revert.
11972 * extension.h: Revert.
11973 * extension.c: Revert.
11974 * extension-priv.h: Revert.
11975 * expprint.c: Revert.
11976 * exec.h: Revert.
11977 * exec.c: Revert.
11978 * exceptions.c: Revert.
11979 * event-top.c: Revert.
11980 * event-loop.c: Revert.
11981 * eval.c: Revert.
11982 * elfread.c: Revert.
11983 * dwarf2read.h: Revert.
11984 * dwarf2read.c: Revert.
11985 * dwarf2loc.c: Revert.
11986 * dwarf2expr.h: Revert.
11987 * dwarf2expr.c: Revert.
11988 * dwarf2-frame.c: Revert.
11989 * dwarf2-frame-tailcall.c: Revert.
11990 * dwarf-index-write.h: Revert.
11991 * dwarf-index-write.c: Revert.
11992 * dwarf-index-common.c: Revert.
11993 * dwarf-index-cache.h: Revert.
11994 * dwarf-index-cache.c: Revert.
11995 * dummy-frame.c: Revert.
11996 * dtrace-probe.c: Revert.
11997 * disasm.h: Revert.
11998 * disasm.c: Revert.
11999 * disasm-selftests.c: Revert.
12000 * dictionary.c: Revert.
12001 * dicos-tdep.c: Revert.
12002 * demangle.c: Revert.
12003 * dcache.h: Revert.
12004 * dcache.c: Revert.
12005 * darwin-nat.h: Revert.
12006 * darwin-nat.c: Revert.
12007 * darwin-nat-info.c: Revert.
12008 * d-valprint.c: Revert.
12009 * d-namespace.c: Revert.
12010 * d-lang.c: Revert.
12011 * ctf.c: Revert.
12012 * csky-tdep.c: Revert.
12013 * csky-linux-tdep.c: Revert.
12014 * cris-tdep.c: Revert.
12015 * cris-linux-tdep.c: Revert.
12016 * cp-valprint.c: Revert.
12017 * cp-support.c: Revert.
12018 * cp-namespace.c: Revert.
12019 * cp-abi.c: Revert.
12020 * corelow.c: Revert.
12021 * corefile.c: Revert.
12022 * continuations.c: Revert.
12023 * completer.h: Revert.
12024 * completer.c: Revert.
12025 * complaints.c: Revert.
12026 * coffread.c: Revert.
12027 * coff-pe-read.c: Revert.
12028 * cli-out.h: Revert.
12029 * cli-out.c: Revert.
12030 * charset.c: Revert.
12031 * c-varobj.c: Revert.
12032 * c-valprint.c: Revert.
12033 * c-typeprint.c: Revert.
12034 * c-lang.c: Revert.
12035 * buildsym.c: Revert.
12036 * buildsym-legacy.c: Revert.
12037 * build-id.h: Revert.
12038 * build-id.c: Revert.
12039 * btrace.c: Revert.
12040 * bsd-uthread.c: Revert.
12041 * breakpoint.h: Revert.
12042 * breakpoint.c: Revert.
12043 * break-catch-throw.c: Revert.
12044 * break-catch-syscall.c: Revert.
12045 * break-catch-sig.c: Revert.
12046 * blockframe.c: Revert.
12047 * block.c: Revert.
12048 * bfin-tdep.c: Revert.
12049 * bfin-linux-tdep.c: Revert.
12050 * bfd-target.c: Revert.
12051 * bcache.c: Revert.
12052 * ax-general.c: Revert.
12053 * ax-gdb.h: Revert.
12054 * ax-gdb.c: Revert.
12055 * avr-tdep.c: Revert.
12056 * auxv.c: Revert.
12057 * auto-load.c: Revert.
12058 * arm-wince-tdep.c: Revert.
12059 * arm-tdep.c: Revert.
12060 * arm-symbian-tdep.c: Revert.
12061 * arm-pikeos-tdep.c: Revert.
12062 * arm-obsd-tdep.c: Revert.
12063 * arm-nbsd-tdep.c: Revert.
12064 * arm-nbsd-nat.c: Revert.
12065 * arm-linux-tdep.c: Revert.
12066 * arm-linux-nat.c: Revert.
12067 * arm-fbsd-tdep.c: Revert.
12068 * arm-fbsd-nat.c: Revert.
12069 * arm-bsd-tdep.c: Revert.
12070 * arch-utils.c: Revert.
12071 * arc-tdep.c: Revert.
12072 * arc-newlib-tdep.c: Revert.
12073 * annotate.h: Revert.
12074 * annotate.c: Revert.
12075 * amd64-windows-tdep.c: Revert.
12076 * amd64-windows-nat.c: Revert.
12077 * amd64-tdep.c: Revert.
12078 * amd64-sol2-tdep.c: Revert.
12079 * amd64-obsd-tdep.c: Revert.
12080 * amd64-obsd-nat.c: Revert.
12081 * amd64-nbsd-tdep.c: Revert.
12082 * amd64-nbsd-nat.c: Revert.
12083 * amd64-nat.c: Revert.
12084 * amd64-linux-tdep.c: Revert.
12085 * amd64-linux-nat.c: Revert.
12086 * amd64-fbsd-tdep.c: Revert.
12087 * amd64-fbsd-nat.c: Revert.
12088 * amd64-dicos-tdep.c: Revert.
12089 * amd64-darwin-tdep.c: Revert.
12090 * amd64-bsd-nat.c: Revert.
12091 * alpha-tdep.c: Revert.
12092 * alpha-obsd-tdep.c: Revert.
12093 * alpha-nbsd-tdep.c: Revert.
12094 * alpha-mdebug-tdep.c: Revert.
12095 * alpha-linux-tdep.c: Revert.
12096 * alpha-linux-nat.c: Revert.
12097 * alpha-bsd-tdep.c: Revert.
12098 * alpha-bsd-nat.c: Revert.
12099 * aix-thread.c: Revert.
12100 * agent.c: Revert.
12101 * addrmap.c: Revert.
12102 * ada-varobj.c: Revert.
12103 * ada-valprint.c: Revert.
12104 * ada-typeprint.c: Revert.
12105 * ada-tasks.c: Revert.
12106 * ada-lang.c: Revert.
12107 * aarch64-tdep.c: Revert.
12108 * aarch64-ravenscar-thread.c: Revert.
12109 * aarch64-newlib-tdep.c: Revert.
12110 * aarch64-linux-tdep.c: Revert.
12111 * aarch64-linux-nat.c: Revert.
12112 * aarch64-fbsd-tdep.c: Revert.
12113 * aarch64-fbsd-nat.c: Revert.
12114 * aarch32-linux-nat.c: Revert.
12115
d55e5aa6
TT
121162019-04-05 Tom Tromey <tom@tromey.com>
12117
12118 * ft32-tdep.c: Sort headers.
12119 * frv-tdep.c: Sort headers.
12120 * frv-linux-tdep.c: Sort headers.
12121 * frame.c: Sort headers.
12122 * frame-unwind.c: Sort headers.
12123 * frame-base.c: Sort headers.
12124 * fork-child.c: Sort headers.
12125 * findvar.c: Sort headers.
12126 * findcmd.c: Sort headers.
12127 * filesystem.c: Sort headers.
12128 * filename-seen-cache.h: Sort headers.
12129 * filename-seen-cache.c: Sort headers.
12130 * fbsd-tdep.c: Sort headers.
12131 * fbsd-nat.h: Sort headers.
12132 * fbsd-nat.c: Sort headers.
12133 * f-valprint.c: Sort headers.
12134 * f-typeprint.c: Sort headers.
12135 * f-lang.c: Sort headers.
12136 * extension.h: Sort headers.
12137 * extension.c: Sort headers.
12138 * extension-priv.h: Sort headers.
12139 * expprint.c: Sort headers.
12140 * exec.h: Sort headers.
12141 * exec.c: Sort headers.
12142 * exceptions.c: Sort headers.
12143 * event-top.c: Sort headers.
12144 * event-loop.c: Sort headers.
12145 * eval.c: Sort headers.
12146 * elfread.c: Sort headers.
12147 * dwarf2read.h: Sort headers.
12148 * dwarf2read.c: Sort headers.
12149 * dwarf2loc.c: Sort headers.
12150 * dwarf2expr.h: Sort headers.
12151 * dwarf2expr.c: Sort headers.
12152 * dwarf2-frame.c: Sort headers.
12153 * dwarf2-frame-tailcall.c: Sort headers.
12154 * dwarf-index-write.h: Sort headers.
12155 * dwarf-index-write.c: Sort headers.
12156 * dwarf-index-common.c: Sort headers.
12157 * dwarf-index-cache.h: Sort headers.
12158 * dwarf-index-cache.c: Sort headers.
12159 * dummy-frame.c: Sort headers.
12160 * dtrace-probe.c: Sort headers.
12161 * disasm.h: Sort headers.
12162 * disasm.c: Sort headers.
12163 * disasm-selftests.c: Sort headers.
12164 * dictionary.c: Sort headers.
12165 * dicos-tdep.c: Sort headers.
12166 * demangle.c: Sort headers.
12167 * dcache.h: Sort headers.
12168 * dcache.c: Sort headers.
12169 * darwin-nat.h: Sort headers.
12170 * darwin-nat.c: Sort headers.
12171 * darwin-nat-info.c: Sort headers.
12172 * d-valprint.c: Sort headers.
12173 * d-namespace.c: Sort headers.
12174 * d-lang.c: Sort headers.
12175 * ctf.c: Sort headers.
12176 * csky-tdep.c: Sort headers.
12177 * csky-linux-tdep.c: Sort headers.
12178 * cris-tdep.c: Sort headers.
12179 * cris-linux-tdep.c: Sort headers.
12180 * cp-valprint.c: Sort headers.
12181 * cp-support.c: Sort headers.
12182 * cp-namespace.c: Sort headers.
12183 * cp-abi.c: Sort headers.
12184 * corelow.c: Sort headers.
12185 * corefile.c: Sort headers.
12186 * continuations.c: Sort headers.
12187 * completer.h: Sort headers.
12188 * completer.c: Sort headers.
12189 * complaints.c: Sort headers.
12190 * coffread.c: Sort headers.
12191 * coff-pe-read.c: Sort headers.
12192 * cli-out.h: Sort headers.
12193 * cli-out.c: Sort headers.
12194 * charset.c: Sort headers.
12195 * c-varobj.c: Sort headers.
12196 * c-valprint.c: Sort headers.
12197 * c-typeprint.c: Sort headers.
12198 * c-lang.c: Sort headers.
12199 * buildsym.c: Sort headers.
12200 * buildsym-legacy.c: Sort headers.
12201 * build-id.h: Sort headers.
12202 * build-id.c: Sort headers.
12203 * btrace.c: Sort headers.
12204 * bsd-uthread.c: Sort headers.
12205 * breakpoint.h: Sort headers.
12206 * breakpoint.c: Sort headers.
12207 * break-catch-throw.c: Sort headers.
12208 * break-catch-syscall.c: Sort headers.
12209 * break-catch-sig.c: Sort headers.
12210 * blockframe.c: Sort headers.
12211 * block.c: Sort headers.
12212 * bfin-tdep.c: Sort headers.
12213 * bfin-linux-tdep.c: Sort headers.
12214 * bfd-target.c: Sort headers.
12215 * bcache.c: Sort headers.
12216 * ax-general.c: Sort headers.
12217 * ax-gdb.h: Sort headers.
12218 * ax-gdb.c: Sort headers.
12219 * avr-tdep.c: Sort headers.
12220 * auxv.c: Sort headers.
12221 * auto-load.c: Sort headers.
12222 * arm-wince-tdep.c: Sort headers.
12223 * arm-tdep.c: Sort headers.
12224 * arm-symbian-tdep.c: Sort headers.
12225 * arm-pikeos-tdep.c: Sort headers.
12226 * arm-obsd-tdep.c: Sort headers.
12227 * arm-nbsd-tdep.c: Sort headers.
12228 * arm-nbsd-nat.c: Sort headers.
12229 * arm-linux-tdep.c: Sort headers.
12230 * arm-linux-nat.c: Sort headers.
12231 * arm-fbsd-tdep.c: Sort headers.
12232 * arm-fbsd-nat.c: Sort headers.
12233 * arm-bsd-tdep.c: Sort headers.
12234 * arch-utils.c: Sort headers.
12235 * arc-tdep.c: Sort headers.
12236 * arc-newlib-tdep.c: Sort headers.
12237 * annotate.h: Sort headers.
12238 * annotate.c: Sort headers.
12239 * amd64-windows-tdep.c: Sort headers.
12240 * amd64-windows-nat.c: Sort headers.
12241 * amd64-tdep.c: Sort headers.
12242 * amd64-sol2-tdep.c: Sort headers.
12243 * amd64-obsd-tdep.c: Sort headers.
12244 * amd64-obsd-nat.c: Sort headers.
12245 * amd64-nbsd-tdep.c: Sort headers.
12246 * amd64-nbsd-nat.c: Sort headers.
12247 * amd64-nat.c: Sort headers.
12248 * amd64-linux-tdep.c: Sort headers.
12249 * amd64-linux-nat.c: Sort headers.
12250 * amd64-fbsd-tdep.c: Sort headers.
12251 * amd64-fbsd-nat.c: Sort headers.
12252 * amd64-dicos-tdep.c: Sort headers.
12253 * amd64-darwin-tdep.c: Sort headers.
12254 * amd64-bsd-nat.c: Sort headers.
12255 * alpha-tdep.c: Sort headers.
12256 * alpha-obsd-tdep.c: Sort headers.
12257 * alpha-nbsd-tdep.c: Sort headers.
12258 * alpha-mdebug-tdep.c: Sort headers.
12259 * alpha-linux-tdep.c: Sort headers.
12260 * alpha-linux-nat.c: Sort headers.
12261 * alpha-bsd-tdep.c: Sort headers.
12262 * alpha-bsd-nat.c: Sort headers.
12263 * aix-thread.c: Sort headers.
12264 * agent.c: Sort headers.
12265 * addrmap.c: Sort headers.
12266 * ada-varobj.c: Sort headers.
12267 * ada-valprint.c: Sort headers.
12268 * ada-typeprint.c: Sort headers.
12269 * ada-tasks.c: Sort headers.
12270 * ada-lang.c: Sort headers.
12271 * aarch64-tdep.c: Sort headers.
12272 * aarch64-ravenscar-thread.c: Sort headers.
12273 * aarch64-newlib-tdep.c: Sort headers.
12274 * aarch64-linux-tdep.c: Sort headers.
12275 * aarch64-linux-nat.c: Sort headers.
12276 * aarch64-fbsd-tdep.c: Sort headers.
12277 * aarch64-fbsd-nat.c: Sort headers.
12278 * aarch32-linux-nat.c: Sort headers.
12279
699bd4cf
TT
122802019-04-04 Tom Tromey <tom@tromey.com>
12281
12282 * varobj.c (varobj_create): Update.
12283 * rust-exp.y (struct rust_parser) <update_innermost_block,
12284 lookup_symbol>: New methods.
12285 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12286 Rename.
12287 (rust_parser::rust_lookup_type)
12288 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12289 * printcmd.c (display_command, do_one_display): Update.
12290 * parser-defs.h (struct parser_state) <parser_state>: Add
12291 "tracker" parameter.
12292 (block_tracker): New member.
12293 (class innermost_block_tracker) <innermost_block_tracker>: Add
12294 "types" parameter.
12295 <reset>: Remove method.
12296 (innermost_block): Don't declare.
12297 (null_post_parser): Update.
12298 * parse.c (innermost_block): Remove global.
12299 (write_dollar_variable): Update.
12300 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12301 Remove "tracker_types" parameter.
12302 (parse_expression): Add "tracker" parameter.
12303 (parse_expression_for_completion): Update.
12304 (null_post_parser): Add "tracker" parameter.
12305 * p-exp.y: Update rules.
12306 * m2-exp.y: Update rules.
12307 * language.h (struct language_defn) <la_post_parser>: Add
12308 "tracker" parameter.
12309 * go-exp.y: Update rules.
12310 * f-exp.y: Update rules.
12311 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12312 parameter.
12313 * d-exp.y: Update rules.
12314 * c-exp.y: Update rules.
12315 * breakpoint.c (set_breakpoint_condition): Create an
12316 innermost_block_tracker.
12317 (watch_command_1): Likewise.
12318 * ada-lang.c (resolve): Add "tracker" parameter.
12319 (resolve_subexp): Likewise.
12320 * ada-exp.y (write_var_from_sym): Update.
12321
dac43e32
TT
123222019-04-04 Tom Tromey <tom@tromey.com>
12323
12324 * type-stack.h: New file.
12325 * type-stack.c: New file.
12326 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12327 type-stack.h.
12328 (insert_into_type_stack, insert_type, push_type, push_type_int)
12329 (insert_type_address_space, pop_type, pop_type_int)
12330 (pop_typelist, pop_type_stack, append_type_stack)
12331 (push_type_stack, get_type_stack, push_typelist)
12332 (follow_type_instance_flags, follow_types): Don't declare.
12333 * parse.c (type_stack): Remove global.
12334 (parse_exp_in_context): Update.
12335 (insert_into_type_stack, insert_type, push_type, push_type_int)
12336 (insert_type_address_space, pop_type, pop_type_int)
12337 (pop_typelist, pop_type_stack, append_type_stack)
12338 (push_type_stack, get_type_stack, push_typelist)
12339 (follow_type_instance_flags, follow_types): Remove (moved to
12340 type-stack.c).
12341 * f-exp.y (type_stack): New global.
12342 Update rules.
12343 (push_kind_type, f_parse): Update.
12344 * d-exp.y (type_stack): New global.
12345 Update rules.
12346 (d_parse): Update.
12347 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12348 Update rules.
12349 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12350 (HFILES_NO_SRCDIR): Add type-stack.h.
12351
2a612529
TT
123522019-04-04 Tom Tromey <tom@tromey.com>
12353
12354 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12355 (rust_parser::convert_ast_to_expression, rust_parse)
12356 (rust_lex_test_completion, rust_lex_tests): Update.
12357 * parser-defs.h (struct expr_completion_state): New.
12358 (struct parser_state) <parser_state>: Add completion parameter.
12359 <mark_struct_expression, mark_completion_tag>: New methods.
12360 <parse_completion, m_completion_state>: New members.
12361 (prefixify_expression, null_post_parser): Update.
12362 (mark_struct_expression, mark_completion_tag): Don't declare.
12363 * parse.c (parse_completion, expout_last_struct)
12364 (expout_tag_completion_type, expout_completion_name): Remove
12365 globals.
12366 (parser_state::mark_struct_expression)
12367 (parser_state::mark_completion_tag): Now methods.
12368 (prefixify_expression): Add last_struct parameter.
12369 (prefixify_subexp): Likewise.
12370 (parse_exp_1): Update.
12371 (parse_exp_in_context): Add cstate parameter. Update.
12372 (parse_expression_for_completion): Create an
12373 expr_completion_state.
12374 (null_post_parser): Add "completion" parameter.
12375 * p-exp.y: Update rules.
12376 (yylex): Update.
12377 * language.h (struct language_defn) <la_post_parser>: Add
12378 "completing" parameter.
12379 * go-exp.y: Update rules.
12380 (lex_one_token): Update.
12381 * expression.h (parse_completion): Don't declare.
12382 * d-exp.y: Update rules.
12383 (lex_one_token): Update rules.
12384 * c-exp.y: Update rules.
12385 (lex_one_token): Update.
12386 * ada-lang.c (resolve): Add "parse_completion" parameter.
12387 (resolve_subexp): Likewise.
12388 (ada_resolve_function): Likewise.
12389
43476f0b
TT
123902019-04-04 Tom Tromey <tom@tromey.com>
12391
12392 * parser-defs.h (struct parser_state) <start_arglist,
12393 end_arglist>: New methods.
12394 <arglist_len, m_funcall_chain>: New members.
12395 (arglist_len, start_arglist, end_arglist): Don't declare.
12396 * parse.c (arglist_len, funcall_chain): Remove global.
12397 (start_arglist, end_arglist): Remove functions.
12398 (parse_exp_in_context): Update.
12399 * p-exp.y: Update rules.
12400 * m2-exp.y: Update rules.
12401 * go-exp.y: Update rules.
12402 * f-exp.y: Update rules.
12403 * d-exp.y: Update rules.
12404 * c-exp.y: Update rules.
12405
5776fca3
TT
124062019-04-04 Tom Tromey <tom@tromey.com>
12407
12408 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12409 lex_operator, push_back>: New methods.
12410 Update all rules.
12411 (rust_parser::lex_hex, lex_escape): Rename and update.
12412 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12413 (rust_parser::lex_operator): Rename and update.
12414 (rust_parser::lex_number, rustyylex, rustyyerror)
12415 (rust_lex_test_init, rust_lex_test_sequence)
12416 (rust_lex_test_push_back, rust_lex_tests): Update.
12417 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12418 parameter.
12419 <lexptr, prev_lexptr>: New members.
12420 (lexptr, prev_lexptr): Don't declare.
12421 * parse.c (lexptr, prev_lexptr): Remove globals.
12422 (parse_exp_in_context): Update.
12423 * p-exp.y (yylex, yyerror): Update.
12424 * m2-exp.y (parse_number, yylex, yyerror): Update.
12425 * go-exp.y (lex_one_token, yyerror): Update.
12426 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12427 * d-exp.y (lex_one_token, yyerror): Update.
12428 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12429 (lex_one_token, yyerror): Update.
12430 * ada-lex.l (YY_INPUT): Update.
12431 (rewind_to_char): Update.
12432 * ada-exp.y (yyerror): Update.
12433
8621b685
TT
124342019-04-04 Tom Tromey <tom@tromey.com>
12435
12436 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12437 * parser-defs.h (struct parser_state) <parser_state>: Add new
12438 parameter.
12439 <comma_terminates>: New member.
12440 (comma_terminates): Don't declare global.
12441 * parse.c (comma_terminates): Remove global.
12442 (parse_exp_in_context): Update.
12443 * p-exp.y (yylex): Update.
12444 * m2-exp.y (yylex): Update.
12445 * go-exp.y (lex_one_token): Update.
12446 * f-exp.y (yylex): Update.
12447 * d-exp.y (lex_one_token): Update.
12448 * c-exp.y (lex_one_token): Update.
12449 * ada-lex.l: Update.
12450
28aaf3fd
TT
124512019-04-04 Tom Tromey <tom@tromey.com>
12452
12453 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12454 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12455 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12456 * parser-defs.h (paren_depth): Don't declare.
12457 * parse.c (paren_depth): Remove global.
12458 (parse_exp_in_context): Update.
12459 * p-exp.y (paren_depth): New global.
12460 (pascal_parse): Initialize it.
12461 * m2-exp.y (paren_depth): New global.
12462 (m2_parse): Initialize it.
12463 * go-exp.y (paren_depth): New global.
12464 (go_parse): Initialize it.
12465 * f-exp.y (paren_depth): New global.
12466 (f_parse): Initialize it.
12467 * d-exp.y (paren_depth): New global.
12468 (d_parse): Initialize it.
12469 * c-exp.y (paren_depth): New global.
12470 (c_parse): Initialize it.
12471 * ada-lex.l (paren_depth): New global.
12472 (lexer_init): Initialize it.
12473
1e58a4a4
TT
124742019-04-04 Tom Tromey <tom@tromey.com>
12475
12476 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12477 (rust_parser::convert_ast_to_type)
12478 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12479 * parser-defs.h (struct parser_state) <parser_state>: Add
12480 parameters. Initialize new members.
12481 <expression_context_block, expression_context_pc>: New members.
12482 * parse.c (expression_context_block, expression_context_pc):
12483 Remove globals.
12484 (parse_exp_in_context): Update.
12485 * p-exp.y: Update all rules.
12486 (yylex): Update.
12487 * m2-exp.y: Update all rules.
12488 (yylex): Update.
12489 * go-exp.y (yylex): Update.
12490 * f-exp.y (yylex): Update.
12491 * d-exp.y: Update all rules.
12492 (yylex): Update.
12493 * c-exp.y: Update all rules.
12494 (lex_one_token, classify_name, yylex, c_parse): Update.
12495 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12496
37eedb39
TT
124972019-04-04 Tom Tromey <tom@tromey.com>
12498
12499 * gdbarch.h, gdbarch.c: Rebuild.
12500 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12501 * stap-probe.h:
12502 (struct stap_parse_info): Replace "parser_state" with
12503 "expr_builder".
12504 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12505 (parser_state): New class.
12506 * parse.c (expr_builder): Rename.
12507 (expr_builder::release): Rename.
12508 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12509 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12510 (write_exp_elt_longcst, write_exp_elt_floatcst)
12511 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12512 (write_exp_string_vector, write_exp_bitstring)
12513 (write_exp_msymbol, mark_struct_expression)
12514 (write_dollar_variable)
12515 (insert_type_address_space, increase_expout_size): Replace
12516 "parser_state" with "expr_builder".
12517 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12518 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12519 "parser_state" with "expr_builder".
12520
73923d7e
TT
125212019-04-04 Tom Tromey <tom@tromey.com>
12522
12523 * rust-exp.y: Replace "parse_language" with method call.
12524 * p-exp.y:
12525 (yylex): Replace "parse_language" with method call.
12526 * m2-exp.y:
12527 (yylex): Replace "parse_language" with method call.
12528 * go-exp.y (classify_name): Replace "parse_language" with method
12529 call.
12530 * f-exp.y (yylex): Replace "parse_language" with method call.
12531 * d-exp.y (lex_one_token): Replace "parse_language" with method
12532 call.
12533 * c-exp.y:
12534 (lex_one_token, classify_name, yylex): Replace "parse_language"
12535 with method call.
12536 * ada-exp.y (find_primitive_type, type_char)
12537 (type_system_address): Replace "parse_language" with method call.
12538
fa9f5be6
TT
125392019-04-04 Tom Tromey <tom@tromey.com>
12540
12541 * rust-exp.y: Replace "parse_gdbarch" with method call.
12542 * parse.c (write_dollar_variable, insert_type_address_space):
12543 Replace "parse_gdbarch" with method call.
12544 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12545 call.
12546 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12547 call.
12548 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12549 "parse_gdbarch" with method call.
12550 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12551 with method call.
12552 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12553 "parse_gdbarch" with method call.
12554 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12555 "parse_gdbarch" with method call.
12556 * c-exp.y (parse_type, parse_number, classify_name): Replace
12557 "parse_gdbarch" with method call.
12558 * ada-lex.l: Replace "parse_gdbarch" with method call.
12559 * ada-exp.y (parse_type, find_primitive_type, type_char)
12560 (type_system_address): Replace "parse_gdbarch" with method call.
12561
1201a264
TT
125622019-04-04 Tom Tromey <tom@tromey.com>
12563
12564 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12565 * stap-probe.c (stap_parse_argument): Update.
12566 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12567 initial_size parameter.
12568 * rust-exp.y (rust_lex_tests): Update.
12569 * parse.c (parser_state): Update.
12570 (parse_exp_in_context): Update.
12571 * parser-defs.h (struct parser_state) <parser_state>: Remove
12572 "initial_size" parameter.
12573
e3980ce2
TT
125742019-04-04 Tom Tromey <tom@tromey.com>
12575
12576 * parser-defs.h (increase_expout_size): Don't declare.
12577 * parse.c (increase_expout_size): Now static.
12578
e9f8e3f1
TS
125792019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12580
12581 * gnu-nat.c (gnu_nat_target::wait): Fix
12582 target_waitstatus_to_string call.
12583
d7df6549
AB
125842019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12585
12586 * eval.c (evaluate_subexp_standard): Handle internal functions
12587 during Fortran function call handling.
12588
8bdc1658
AB
125892019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12590
12591 * NEWS: Mention new internal functions.
12592 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12593 (read_base_type): Use dwarf2_init_complex_target_type.
12594 * value.c (creal_internal_fn): New function.
12595 (cimag_internal_fn): New function.
12596 (_initialize_values): Register new internal functions.
12597
c29705b7
PW
125982019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12599
12600 * infrun.c (stop_all_threads): If debug_infrun, always
12601 trace the wait status after wait_one, using
12602 target_waitstatus_to_string and target_pid_to_str.
12603 (handle_inferior_event): Replace various trace of
12604 wait status kind by a single trace.
12605 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12606 wait status kind image by target_waitstatus_to_string.
12607 * target/waitstatus.c (target_waitstatus_to_string): Fix
12608 obsolete comment.
12609
05caa1d2
TT
126102019-04-01 Tom Tromey <tromey@adacore.com>
12611
12612 PR symtab/23331:
12613 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12614
9d1447e0
SDJ
126152019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12616 Pedro Alves <palves@redhat.com>
12617
12618 * top.c (quit_force): Call 'finalize_values'.
12619 * value.c (finalize_values): New function.
12620 * value.h (finalize_values): Declare.
12621
7734102d
EZ
126222019-03-30 Eli Zaretskii <eliz@gnu.org>
12623
12624 * NEWS: Announce $_gdb_major and $_gdb_minor.
12625
12626 * top.c (init_gdb_version_vars): New function.
12627 (gdb_init): Call init_gdb_version_vars.
12628
188e1fa9
TT
126292019-03-29 Tom Tromey <tromey@adacore.com>
12630
12631 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12632 help text. Remove dead code.
12633
2880242d
KS
126342019-03-29 Keith Seitz <keiths@redhat.com>
12635
12636 From Siddhesh Poyarekar:
12637 * f-lang.h (f77_get_upperbound): Return LONGEST.
12638 (f77_get_lowerbound): Likewise.
12639 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12640 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12641 print them.
12642 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12643 plongest to format print it.
12644 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12645 (f77_get_upperbound): Likewise.
12646 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12647 LOWER_BOUND to LONGEST.
12648 (f77_create_arrayprint_offset_tbl): Likewise.
12649
cc1defb1
KS
126502019-03-29 Keith Seitz <keiths@redhat.com>
12651
12652 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12653 %s/pulongest for TYPE_LENGTH instead of %d in format
12654 strings.
12655 * ada-typerint.c (ada_print_type): Likewise.
12656 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12657 * compile/compile-c-support.c (generate_register_struct): Likewise.
12658 * gdbtypes.c (recursive_dump_type): Likewise.
12659 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12660 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12661 instead of %d in format strings.
12662 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12663 to std::min to ULONGEST.
12664 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12665 instead of %d in format strings.
12666 * tracepoint.c (info_scope_command): Likewise.
12667 * typeprint.c (print_offset_data::update)
12668 (print_offset_data::finish): Likewise.
12669 * xtensa-tdep.c (xtensa_store_return_value)
12670 (xtensa_push_dummy_call): Likewise.
12671
e432ccf1
JT
126722019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12673
12674 * windows-nat.c (display_selector): Fixed format specifications
12675 for 64-bit Cygwin.
12676
65d2b333
PW
126772019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12678
12679 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12680
f489207e
SL
126812019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12682
12683 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12684 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12685 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12686 (nios2_linux_init_abi): Install it.
12687
bffa1015
AH
126882019-03-28 Alan Hayward <alan.hayward@arm.com>
12689
12690 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12691
fc96163a
AH
126922019-03-28 Alan Hayward <alan.hayward@arm.com>
12693
12694 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12695
20dc7e9b
PW
126962019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12697 Tom Tromey <tromey@adacore.com>
12698
12699 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12700
7f5331a8
JB
127012019-03-26 Joel Brobecker <brobecker@adacore.com>
12702
12703 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12704 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12705 method to compute the bounds of range types. Also print "[evaluated]"
12706 if the bounds' values come from a dynamic evaluation.
12707
18c77628
AB
127082019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12709
12710 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12711 whitespace when pretty printing is on.
12712
53c973f2
AH
127132019-03-26 Alan Hayward <alan.hayward@arm.com>
12714
e79be6e5 12715 * ppc-linux-nat.c: Add include.
53c973f2 12716
d851aa71
AH
127172019-03-26 Alan Hayward <alan.hayward@arm.com>
12718
e79be6e5 12719 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12720
2fe7bab7
AH
127212019-03-26 Alan Hayward <alan.hayward@arm.com>
12722
e79be6e5 12723 * arm-linux-nat.c: Add include.
2fe7bab7 12724
068ef30e
SM
127252019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12726
12727 * source-cache.c (source_cache::get_source_lines): Re-read
12728 fullname after calling open_source_file.
12729
81a24d04
JB
127302019-03-25 John Baldwin <jhb@FreeBSD.org>
12731
12732 * NEWS: Mention TLS support for FreeBSD.
12733
79e7ae11
TT
127342019-03-25 Tom Tromey <tromey@adacore.com>
12735
12736 * minsyms.c (BUNCH_SIZE): Update comment.
12737 (~minimal_symbol_reader): Remove old comment.
12738 (compact_minimal_symbols): Update comment.
12739 (minimal_symbol_reader::install): Remove old comment. Update
12740 other comments.
12741
d45963c2
AH
127422019-03-25 Alan Hayward <alan.hayward@arm.com>
12743
12744 * s390-linux-nat.c: Add include.
12745
0f83012e
AH
127462019-03-25 Alan Hayward <alan.hayward@arm.com>
12747
12748 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12749 Call linux_get_hwcap.
12750 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12751 Likewise.
12752 (aarch64_linux_get_hwcap): Remove function.
12753 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12754 declaration.
12755 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12756 linux_get_hwcap.
12757 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12758 * linux-tdep.c (linux_get_hwcap): Add function.
12759 (linux_get_hwcap2): Likewise.
12760 * linux-tdep.h (linux_get_hwcap): Add declaration.
12761 (linux_get_hwcap2): Likewise.
12762 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12763 (ppc_linux_get_hwcap2): Likewise.
12764 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12765 linux_get_hwcap.
12766 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12767 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12768 (ppc_linux_nat_target::read_description): Likewise.
12769 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12770 * s390-linux-nat.c: Likewise.
12771 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12772
6640a367
TT
127732019-03-24 Tom Tromey <tom@tromey.com>
12774
12775 * ada-lang.c (standard_lookup): Simplify initialization.
12776 (ada_lookup_symbol_nonlocal): Simplify return.
12777 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12778 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12779 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12780 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12781 initialization.
12782 * solib.c (solib_global_lookup): Simplify.
12783 * symtab.c (null_block_symbol): Remove.
12784 (symbol_cache_lookup): Simplify returns.
12785 (lookup_language_this): Simplify returns.
12786 (lookup_symbol_aux): Simplify return.
12787 (lookup_local_symbol): Simplify returns.
12788 (lookup_global_symbol_from_objfile): Simplify return.
12789 (lookup_symbol_in_objfile_symtabs)
12790 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12791 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12792 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12793 * cp-namespace.c (cp_lookup_bare_symbol)
12794 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12795 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12796 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12797 (cp_lookup_symbol_via_imports): Simplify initialization.
12798 (find_symbol_in_baseclass): Likewise.
12799 * symtab.h (null_block_symbol): Remove.
12800 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12801 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12802 (d_lookup_symbol_module): Likewise.
12803 (find_symbol_in_baseclass): Simplify initialization.
12804
a930ebcd
TT
128052019-03-24 Tom Tromey <tom@tromey.com>
12806
12807 * expression.h: Don't include symtab.h.
12808 (struct block): Forward declare.
12809
582942f4
TT
128102019-03-24 Tom Tromey <tom@tromey.com>
12811
12812 * c-exp.y (typebase): Remove casts.
12813 * gdbtypes.c (lookup_unsigned_typename, )
12814 (lookup_signed_typename): Remove cast.
12815 * eval.c (parse_to_comma_and_eval): Remove cast.
12816 * parse.c (write_dollar_variable): Remove cast.
12817 * block.h (struct block) <superblock>: Now const.
12818 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12819 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12820 (map_block): Make "block" const.
12821 * symfile.h (struct quick_symbol_functions)
12822 <map_matching_symbols>: Constify block argument to "callback".
12823 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12824 const.
12825 (find_pc_sect_compunit_symtab): Make "b" const.
12826 (find_symbol_at_address): Likewise.
12827 (search_symbols): Likewise.
12828 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12829 (dw2_debug_names_lookup_symbol): Likewise.
12830 (dw2_map_matching_symbols): Update.
12831 * p-valprint.c (pascal_val_print): Remove "block".
12832 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12833 (aux_add_nonlocal_symbols): Make "block" const.
12834 (resolve_subexp): Remove cast.
12835 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12836 const.
12837 (iterate_over_file_blocks): Likewise.
12838 * f-exp.y (%union) <bval>: Remove.
12839 * coffread.c (patch_opaque_types): Make "b" const.
12840 * spu-tdep.c (spu_catch_start): Make "block" const.
12841 * c-valprint.c (print_unpacked_pointer): Remove "block".
12842 * symmisc.c (dump_symtab_1): Make "b" const.
12843 (block_depth): Make "block" const.
12844 * d-exp.y (%union) <bval>: Remove.
12845 * cp-support.h (cp_lookup_rtti_type): Update.
12846 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12847 * psymtab.c (psym_lookup_symbol): Make "block" const.
12848 (maintenance_check_psymtabs): Make "b" const.
12849 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12850 (enumerate_locals, enumerate_args): Update.
12851 * python/py-symtab.c (stpy_global_block): Make "block" const.
12852 (stpy_static_block): Likewise.
12853 * inline-frame.c (block_starting_point_at): Make "new_block"
12854 const.
12855 * block.c (find_block_in_blockvector): Make return type const.
12856 (blockvector_for_pc_sect): Make "b" const.
12857 (find_block_in_blockvector): Make "b" const.
12858
7ad417dd
TT
128592019-03-23 Tom Tromey <tom@tromey.com>
12860
12861 * varobj.c (varobj_create): Update.
12862 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12863 * printcmd.c (display_command, do_one_display): Don't reset
12864 innermost_block.
12865 * parser-defs.h (enum innermost_block_tracker_type): Move to
12866 expression.h.
12867 (innermost_block): Update comment.
12868 * parse.c (parse_exp_1): Add tracker_types parameter.
12869 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12870 tracker_types parameter. Reset innermost_block.
12871 (parse_exp_in_context): Remove.
12872 (parse_expression_for_completion): Update.
12873 * objfiles.c (~objfile): Don't reset expression_context_block or
12874 innermost_block.
12875 * expression.h (enum innermost_block_tracker_type): Move from
12876 parser-defs.h.
12877 (parse_exp_1): Add tracker_types parameter.
12878 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12879 reset innermost_block.
12880
b366c208
TT
128812019-03-23 Tom Tromey <tom@tromey.com>
12882
12883 * objfiles.h: Include bcache.h.
12884
9bb9b2f9
TT
128852019-03-23 Tom Tromey <tom@tromey.com>
12886
12887 * linespec.c (get_current_search_block): Use
12888 scoped_restore_current_language.
12889 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12890
59c28372
AH
128912019-03-22 Alan Hayward <alan.hayward@arm.com>
12892 Jiong Wang <jiong.wang@arm.com>
12893
12894 * aarch64-linux-tdep.c
12895 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12896 section.
12897 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12898
17e116a7
AH
128992019-03-22 Alan Hayward <alan.hayward@arm.com>
12900 Jiong Wang <jiong.wang@arm.com>
12901
12902 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12903 instructions.
12904 (aarch64_analyze_prologue_test): Add PACIASP test.
12905 (aarch64_prologue_prev_register): Unmask PC value.
12906
11e1b75f
AH
129072019-03-22 Alan Hayward <alan.hayward@arm.com>
12908 Jiong Wang <jiong.wang@arm.com>
12909
12910 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12911 (aarch64_dwarf2_prev_register): Unmask PC value.
12912 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12913 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12914 DW_CFA_AARCH64_negate_ra_state.
12915 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12916
34dcc7cf
AH
129172019-03-22 Alan Hayward <alan.hayward@arm.com>
12918 Jiong Wang <jiong.wang@arm.com>
12919
12920 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12921 registers.
12922 (aarch64_pseudo_register_name): Likewise.
12923 (aarch64_pseudo_register_type): Likewise.
12924 (aarch64_pseudo_register_reggroup_p): Likewise.
12925 (aarch64_gdbarch_init): Add pauth registers.
12926 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12927 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12928 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12929 (struct gdbarch_tdep): Add regnum for ra_state.
12930
1ef53e6b
AH
129312019-03-22 Alan Hayward <alan.hayward@arm.com>
12932 Jiong Wang <jiong.wang@arm.com>
12933
12934 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12935
76bed0fd
AH
129362019-03-22 Alan Hayward <alan.hayward@arm.com>
12937 Jiong Wang <jiong.wang@arm.com>
12938
12939 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12940 function.
12941 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12942 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12943 (aarch64_gdbarch_init): Add puth registers.
12944 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12945 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12946 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12947
ee4fbcfa
AH
129482019-03-22 Alan Hayward <alan.hayward@arm.com>
12949 Jiong Wang <jiong.wang@arm.com>
12950
12951 * aarch64-linux-nat.c
12952 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12953 * aarch64-linux-tdep.c
12954 (aarch64_linux_core_read_description): Likewise.
12955 (aarch64_linux_get_hwcap): New function.
12956 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12957 (aarch64_linux_get_hwcap): New declaration.
12958
6dc0ebde
AH
129592019-03-22 Alan Hayward <alan.hayward@arm.com>
12960 Jiong Wang <jiong.wang@arm.com>
12961
12962 * aarch64-linux-nat.c
12963 (aarch64_linux_nat_target::read_description): Add pauth param.
12964 * aarch64-linux-tdep.c
12965 (aarch64_linux_core_read_description): Likewise.
12966 * aarch64-tdep.c (struct target_desc): Add in pauth.
12967 (aarch64_read_description): Add pauth param.
12968 (aarch64_gdbarch_init): Likewise.
12969 * aarch64-tdep.h (aarch64_read_description): Likewise.
12970 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12971 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12972 * features/Makefile: Add new files.
12973 * features/aarch64-pauth.c: New file.
12974 * features/aarch64-pauth.xml: New file.
12975
595915c1
TT
129762019-03-20 Tom Tromey <tromey@adacore.com>
12977
12978 * infrun.c (handle_inferior_event): Rename from
12979 handle_inferior_event_1. Create a scoped_value_mark.
12980 (handle_inferior_event): Remove.
12981
4c7d57e7
TT
129822019-03-19 Tom Tromey <tromey@adacore.com>
12983
12984 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12985 * infrun.h (print_stop_event): Add "displays" parameter.
12986 * infrun.c (print_stop_event): Add "displays" parameter.
12987
cb246234
PA
129882019-03-19 Pedro Alves <palves@redhat.com>
12989
12990 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12991 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12992 to -1. Fix TABs vs spaces.
12993 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12994 * tui/tui-out.h (tui_ui_out) Add intro comments.
12995 <m_line, m_start_of_line>: In-class initialize, and add describing
12996 comment.
12997
3a0e45b2
AH
129982019-03-18 Alan Hayward <alan.hayward@arm.com>
12999
13000 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13001 variable names.
13002 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13003
5371b850
PA
130042019-03-18 Pedro Alves <palves@redhat.com>
13005 Eli Zaretskii <eliz@gnu.org>
13006
13007 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13008 m_line and m_start_of_line.
13009
b17c4cd0
EZ
130102019-03-18 Eli Zaretskii <eliz@gnu.org>
13011
13012 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13013 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13014 it returns a newline. This fixes a regression in TU mode, whereby
13015 the next line is output on the same screen line as the user input.
13016
4bd56d18
TT
130172019-03-18 Tom Tromey <tromey@adacore.com>
13018
13019 * minsyms.c (minimal_symbol_reader::install): Remove call to
13020 obstack_blank.
13021
55c10aca
PA
130222019-03-18 Pedro Alves <palves@redhat.com>
13023
13024 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13025 New globals.
13026 (apply_style): New, factored out from ...
13027 (apply_ansi_escape): ... this. Handle reverse video mode.
13028 (tui_set_reverse_mode): New function.
13029 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13030 * tui/tui-winsource.c (tui_show_source_line): Use
13031 tui_set_reverse_mode instead of setting A_STANDOUT.
13032 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13033 New setter methods.
13034
647bb750
HD
130352019-03-18 Hannes Domani <ssbssa@yahoo.de>
13036
13037 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13038 Handle tabs.
13039
bff8c71f
TT
130402019-03-18 Tom Tromey <tromey@adacore.com>
13041
13042 * ada-lang.c (empty_array): Add "high" parameter.
13043 (ada_evaluate_subexp): Update.
13044
58785d98
ST
130452019-03-17 Sergei Trofimovich <siarheit@google.com>
13046
13047 * unittests/string_view-selftests.c: Define
13048 _initialize_string_view_selftests unconditionally.
13049
d4cbef22
ВМ
130502019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13051
13052 PR gdb/24350
13053 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13054
fce4c071
ВМ
130552019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13056
13057 PR gdb/24351
13058 * windows-nat.c (display_selector): Fix format specifiers.
13059
f7f0a123
EZ
130602019-03-17 Eli Zaretskii <eliz@gnu.org>
13061
13062 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13063 tui_refill_source_window instead of tui_refresh_win, to update the
13064 current execution line. This fixes redisplay of the current line
13065 when stepping through the code with "next" or "step".
13066
ab42892f
EZ
130672019-03-16 Eli Zaretskii <eliz@gnu.org>
13068
13069 * source-cache.c (source_cache::get_source_lines): Call
13070 find_source_lines to initialize s->nlines. This fixes vertical
13071 scrolling of TUI source window when the DOWN arrow is pressed.
13072
8d8c087f
PW
130732019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13074
13075 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13076 linux-thread-db.c (_initialize_thread_db): Likewise.
13077
798e1c30
EZ
130782019-03-16 Eli Zaretskii <eliz@gnu.org>
13079
13080 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13081 wclrtoeol in tui_show_source_line". This reverts changes made in
13082 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13083
eefba3da
TT
130842019-03-15 Tom Tromey <tom@tromey.com>
13085
13086 * symtab.h (struct minimal_symbol): Derive from
13087 general_symbol_info.
13088 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13089 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13090 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13091 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13092 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13093 (MSYMBOL_SEARCH_NAME): Update.
13094 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13095 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13096 * minsyms.c (minimal_symbol_reader::record_full): Update.
13097
0de2420c
TT
130982019-03-15 Tom Tromey <tom@tromey.com>
13099
13100 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13101
042d75e4
TT
131022019-03-15 Tom Tromey <tom@tromey.com>
13103
13104 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13105 unique_xmalloc_ptr.
13106 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13107 Update.
13108 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13109 (build_minimal_symbol_hash_tables)
13110 (minimal_symbol_reader::install): Update.
13111
db92718b
TT
131122019-03-15 Tom Tromey <tom@tromey.com>
13113
13114 * symtab.c (create_demangled_names_hash): Update.
13115 (symbol_set_names): Update.
13116 * objfiles.h (struct objfile_per_bfd_storage)
13117 <demangled_names_hash>: Now an htab_up.
13118 * objfiles.c (objfile_per_bfd_storage): Simplify.
13119
d6797f46
TT
131202019-03-15 Tom Tromey <tom@tromey.com>
13121
13122 * objfiles.h (struct objfile_per_bfd_storage): Declare
13123 destructor.
13124 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13125 New.
13126 (get_objfile_bfd_data): Use new. Don't initialize
13127 language_of_main.
13128 (free_objfile_per_bfd_storage): Remove.
13129 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13130
741d7538
TT
131312019-03-15 Tom Tromey <tom@tromey.com>
13132
13133 * symfile.c (reread_symbols): Update.
13134 * objfiles.c (objfile::objfile): Update.
13135 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13136 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13137 comment.
13138 (minimal_symbol_reader::install): Update.
13139 (terminate_minimal_symbol_table): Remove.
13140 * jit.c (jit_object_close_impl): Update.
13141
788c80d1
TT
131422019-03-15 Tom Tromey <tom@tromey.com>
13143
13144 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13145 initializations.
13146
1b7a07cb
TT
131472019-03-15 Tom Tromey <tom@tromey.com>
13148
13149 * objfiles.h (struct objfile_per_bfd_storage)
13150 <demangled_hash_languages>: Now a bitset.
13151 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13152 (lookup_minimal_symbol): Update.
13153
3db066bc
TT
131542019-03-15 Tom Tromey <tom@tromey.com>
13155
13156 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13157 Don't return the symbol.
13158 * coffread.c (record_minimal_symbol): Use record_full.
13159
3fff2c37
EZ
131602019-03-14 Eli Zaretskii <eliz@gnu.org>
13161
13162 The MS-Windows port of ncurses fails to switch to a color pair if
13163 one or both of the colors are the implicit default colors. This
13164 change records the default colors when TUI is initialized, and
13165 then specifies them explicitly when a color pair uses the default
13166 colors. This allows color styling in TUI mode on MS-Windows.
13167
13168 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13169 ncurses_norm_attr.
13170 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13171 colors in ncurses_norm_attr.
13172 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13173 "none", replace it with the default color recorded in
13174 ncurses_norm_attr.
13175
3b336828
TT
131762019-03-14 Tom Tromey <tromey@adacore.com>
13177
13178 * source-cache.h (class source_cache) <get_source_lines>: Return
13179 std::string.
13180 * source-cache.c (source_cache::extract_lines): Handle case where
13181 first_pos==npos. Return std::string.
13182 (source_cache::get_source_lines): Update.
13183
d085f989
TT
131842019-03-14 Tom Tromey <tromey@adacore.com>
13185
13186 * NEWS: Add item for "style sources" commands.
13187 * source-cache.c (source_cache::get_source_lines): Check
13188 source_styling.
13189 * cli/cli-style.c (source_styling): New global.
13190 (_initialize_cli_style): Add "style sources" commands.
13191 (show_style_sources): New function.
13192 * cli/cli-style.h (source_styling): Declare.
13193
6f11e682
TT
131942019-03-14 Pedro Alves <palves@redhat.com>
13195 Tom Tromey <tromey@adacore.com>
13196
13197 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13198 * tui/tui-winsource.c (tui_refill_source_window): New function,
13199 from...
13200 (tui_horizontal_source_scroll): ... here. Move some logic.
13201 * cli/cli-style.c (set_style_enabled): Notify new observable.
13202 * tui/tui-hooks.c (tui_redisplay_source): New function.
13203 (tui_attach_detach_observers): Attach or detach
13204 tui_redisplay_source.
13205 * observable.h (source_styling_changed): New observable.
13206 * observable.c: Define source_styling_changed observable.
13207
a068643d
TT
132082019-03-13 Tom Tromey <tromey@adacore.com>
13209
13210 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13211 (i386_gnu_nat_target::store_registers): Update.
13212 * target-debug.h (target_debug_print_std_string): New macro.
13213 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13214 * windows-tdep.c (display_one_tib): Update.
13215 * tui/tui-stack.c (tui_make_status_line): Update.
13216 * top.c (print_inferior_quit_action): Update.
13217 * thread.c (thr_try_catch_cmd): Update.
13218 (add_thread_with_info): Update.
13219 (thread_target_id_str): Update.
13220 (thr_try_catch_cmd): Update.
13221 (thread_command): Update.
13222 (thread_find_command): Update.
13223 * record-btrace.c (record_btrace_target::info_record)
13224 (record_btrace_resume_thread, record_btrace_target::resume)
13225 (record_btrace_cancel_resume, record_btrace_step_thread)
13226 (record_btrace_target::wait, record_btrace_target::wait)
13227 (record_btrace_target::wait, record_btrace_target::stop): Update.
13228 * progspace.c (print_program_space): Update.
13229 * process-stratum-target.c
13230 (process_stratum_target::thread_address_space): Update.
13231 * linux-fork.c (linux_fork_mourn_inferior)
13232 (detach_checkpoint_command, info_checkpoints_command)
13233 (linux_fork_context): Update.
13234 (linux_fork_detach): Update.
13235 (class scoped_switch_fork_info): Update.
13236 (delete_checkpoint_command): Update.
13237 * infrun.c (follow_fork_inferior): Update.
13238 (follow_fork_inferior): Update.
13239 (proceed_after_vfork_done): Update.
13240 (handle_vfork_child_exec_or_exit): Update.
13241 (follow_exec): Update.
13242 (displaced_step_prepare_throw): Update.
13243 (displaced_step_restore): Update.
13244 (start_step_over): Update.
13245 (resume_1): Update.
13246 (clear_proceed_status_thread): Update.
13247 (proceed): Update.
13248 (print_target_wait_results): Update.
13249 (do_target_wait): Update.
13250 (context_switch): Update.
13251 (stop_all_threads): Update.
13252 (restart_threads): Update.
13253 (finish_step_over): Update.
13254 (handle_signal_stop): Update.
13255 (switch_back_to_stepped_thread): Update.
13256 (keep_going_pass_signal): Update.
13257 (print_exited_reason): Update.
13258 (normal_stop): Update.
13259 * inferior.c (inferior_pid_to_str): Change return type.
13260 (print_selected_inferior): Update.
13261 (add_inferior): Update.
13262 (detach_inferior): Update.
13263 * dummy-frame.c (fprint_dummy_frames): Update.
13264 * dcache.c (dcache_info_1): Update.
13265 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13266 (btrace_fetch, btrace_clear): Update.
13267 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13268 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13269 type.
13270 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13271 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13272 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13273 * gdbarch.c, gdbarch.h: Rebuild.
13274 * gdbarch.sh (core_pid_to_str): Change return type.
13275 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13276 return type.
13277 (windows_nat_target::pid_to_str): Change return type.
13278 (windows_delete_thread): Update.
13279 (windows_nat_target::attach): Update.
13280 (windows_nat_target::files_info): Update.
13281 * target-delegates.c: Rebuild.
13282 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13283 return type.
13284 (sol_thread_target::pid_to_str): Change return type.
13285 * remote.c (class remote_target) <pid_to_str>: Change return
13286 type.
13287 (remote_target::pid_to_str): Change return type.
13288 (extended_remote_target::attach, remote_target::remote_stop_ns)
13289 (remote_target::remote_notif_remove_queued_reply)
13290 (remote_target::push_stop_reply, remote_target::disable_btrace):
13291 Update.
13292 (extended_remote_target::attach): Update.
13293 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13294 type.
13295 (gdbsim_target::pid_to_str): Change return type.
13296 * ravenscar-thread.c (struct ravenscar_thread_target)
13297 <pid_to_str>: Change return type.
13298 (ravenscar_thread_target::pid_to_str): Change return type.
13299 * procfs.c (class procfs_target) <pid_to_str>: Change return
13300 type.
13301 (procfs_target::pid_to_str): Change return type.
13302 (procfs_target::attach): Update.
13303 (procfs_target::detach): Update.
13304 (procfs_target::fetch_registers): Update.
13305 (procfs_target::store_registers): Update.
13306 (procfs_target::wait): Update.
13307 (procfs_target::files_info): Update.
13308 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13309 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13310 return type.
13311 (nto_procfs_target::pid_to_str): Change return type.
13312 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13313 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13314 return type.
13315 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13316 (exit_lwp): Update.
13317 (attach_proc_task_lwp_callback, get_detach_signal)
13318 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13319 (linux_nat_target::resume, wait_lwp, stop_callback)
13320 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13321 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13322 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13323 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13324 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13325 type.
13326 (inf_ptrace_target::attach): Update.
13327 (inf_ptrace_target::files_info): Update.
13328 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13329 type.
13330 (go32_nat_target::pid_to_str): Change return type.
13331 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13332 (gnu_nat_target::wait): Update.
13333 (gnu_nat_target::wait): Update.
13334 (gnu_nat_target::resume): Update.
13335 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13336 (fbsd_nat_target::wait): Update.
13337 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13338 type.
13339 (darwin_nat_target::attach): Update.
13340 * corelow.c (class core_target) <pid_to_str>: Change return type.
13341 (core_target::pid_to_str): Change return type.
13342 * target.c (normal_pid_to_str): Change return type.
13343 (default_pid_to_str): Likewise.
13344 (target_pid_to_str): Change return type.
13345 (target_translate_tls_address): Update.
13346 (target_announce_detach): Update.
13347 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13348 return type.
13349 (bsd_uthread_target::pid_to_str): Change return type.
13350 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13351 type.
13352 (bsd_kvm_target::pid_to_str): Change return type.
13353 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13354 return type.
13355 (aix_thread_target::pid_to_str): Change return type.
13356 * target.h (struct target_ops) <pid_to_str>: Change return type.
13357 (target_pid_to_str, normal_pid_to_str): Likewise.
13358 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13359 type.
13360 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13361 type.
13362 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13363 return type.
13364 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13365 type.
13366 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13367 type.
13368 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13369 return type.
13370
b4be1b06
SM
133712019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13372
13373 * NEWS: Mention that the new default MI version is 3. Mention
13374 changes to the output of commands and events that deal with
13375 multi-location breakpoints.
13376 * breakpoint.c: Include "mi/mi-out.h".
13377 (print_one_breakpoint): Change output syntax if using MI version
13378 >= 3.
13379 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13380 New.
13381 (mi_multi_location_breakpoint_output_fixed): New.
13382 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13383 (mi_cmd_fix_multi_location_breakpoint_output): New.
13384 (mi_multi_location_breakpoint_output_fixed): New.
13385 * mi/mi-cmds.c (mi_cmds): Register command
13386 -fix-multi-location-breakpoint-output.
13387 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13388 interpreter "mi".
13389
8e5e5494
SM
133902019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13391
13392 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13393 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13394 instantiate mi_ui_out based on interpreter name.
13395 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13396 * mi/mi-main.c (mi_load_progress): Likewise.
13397
197df35e
JB
133982019-03-12 John Baldwin <jhb@FreeBSD.org>
13399
13400 * NEWS: Combine separate "New targets" sections for 8.3.
13401
8399425f
JB
134022019-03-12 John Baldwin <jhb@FreeBSD.org>
13403
13404 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13405 (ppcfbsd_init_abi): Install gdbarch
13406 "fetch_tls_load_module_address" and "get_thread_local_address"
13407 methods.
13408
b0f87ed0
JB
134092019-03-12 John Baldwin <jhb@FreeBSD.org>
13410
13411 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13412 (riscv_fbsd_init_abi): Install gdbarch
13413 "fetch_tls_load_module_address" and "get_thread_local_address"
13414 methods.
13415
ce25aa57
JB
134162019-03-12 John Baldwin <jhb@FreeBSD.org>
13417
13418 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13419 (i386fbsd_init_abi): Install gdbarch
13420 "fetch_tls_load_module_address" and "get_thread_local_address"
13421 methods.
13422
f5424cfa
JB
134232019-03-12 John Baldwin <jhb@FreeBSD.org>
13424
13425 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13426 (amd64fbsd_init_abi): Install gdbarch
13427 "fetch_tls_load_module_address" and "get_thread_local_address"
13428 methods.
13429
945f3901
JB
134302019-03-12 John Baldwin <jhb@FreeBSD.org>
13431
13432 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13433 (struct fbsd_pspace_data): New type.
13434 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13435 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13436 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13437 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13438 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13439
ef0bd204
JB
134402019-03-12 John Baldwin <jhb@FreeBSD.org>
13441
13442 * gdbtypes.c (lookup_struct_elt): New function.
13443 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13444 * gdbtypes.h (struct struct_elt): New type.
13445 (lookup_struct_elt): New prototype.
13446
36c53a02
JB
134472019-03-12 John Baldwin <jhb@FreeBSD.org>
13448
13449 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13450 remove disabled code block.
13451
6e056c81
JB
134522019-03-12 John Baldwin <jhb@FreeBSD.org>
13453
13454 * gdbarch.sh (get_thread_local_address): New method.
13455 * gdbarch.h, gdbarch.c: Regenerate.
13456 * target.c (target_translate_tls_address): Use
13457 gdbarch_get_thread_local_address if present instead of
13458 target::get_thread_local_address.
13459
cd250a18
JB
134602019-03-12 John Baldwin <jhb@FreeBSD.org>
13461
13462 * target.h (target::get_thread_local_address): Update comment.
13463
df22c1e5
JB
134642019-03-12 John Baldwin <jhb@FreeBSD.org>
13465
13466 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13467 objfile->separate_debug_objfile_backlink if not NULL.
13468
dd6876c9
JB
134692019-03-12 John Baldwin <jhb@FreeBSD.org>
13470
13471 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13472 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13473 (amd64bsd_store_inferior_registers): Likewise.
13474 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13475 Enable segment base registers.
13476 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13477 PT_GETFSBASE and PT_GETGSBASE.
13478 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13479 PT_SETGSBASE.
13480 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13481 segment base registers.
13482 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13483
1163a4b7
JB
134842019-03-12 John Baldwin <jhb@FreeBSD.org>
13485
13486 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13487 Update calls to i386_target_description to add 'segments'
13488 parameter.
13489 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13490 add segment base registers.
13491 * arch/i386.c (i386_create_target_description): Add 'segments'
13492 parameter to enable segment base registers.
13493 * arch/i386.h (i386_create_target_description): Likewise.
13494 * features/i386/32bit-segments.xml: New file.
13495 * features/i386/32bit-segments.c: Generate.
13496 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13497 call to i386_target_description to add 'segments' parameter.
13498 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13499 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13500 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13501 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13502 if feature is present.
13503 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13504 Add 'segments' parameter to call to i386_target_description.
13505 (i386_target_description): Add 'segments' parameter to enable
13506 segment base registers.
13507 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13508 to call to i386_target_description.
13509 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13510 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13511 Define I386_NUM_REGS.
13512 (i386_target_description): Add 'segments' parameter to enable
13513 segment base registers.
13514
3a350822
EZ
135152019-03-12 Eli Zaretskii <eliz@gnu.org>
13516
13517 PR/24325
13518 * source-cache.c: #undef open and close, to avoid unresolved
13519 externals during linking.
13520
ffdd69cf
TT
135212019-03-12 Tom Tromey <tromey@adacore.com>
13522
13523 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13524 const. Add initializers.
13525 (_initialize_remote): Don't initialize ptid globals.
13526
ec148c57
PA
135272019-03-12 Pedro Alves <palves@redhat.com>
13528
13529 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13530
32764270
PA
135312019-03-12 Pedro Alves <palves@redhat.com>
13532
13533 * cp-name-parser.y (main): Remove unused 'len' variable.
13534
17547186
TT
135352019-03-12 Tom Tromey <tromey@adacore.com>
13536
13537 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13538 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13539
d3a70e03
TT
135402019-03-12 Tom Tromey <tromey@adacore.com>
13541
13542 * linux-nat.c (iterate_over_lwps): Update.
13543 (stop_callback): Remove parameter.
13544 (stop_wait_callback, detach_callback, resume_set_callback)
13545 (select_singlestep_lwp_callback, set_ignore_sigint)
13546 (status_callback, resumed_callback, resume_clear_callback)
13547 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13548 data parameter.
13549 (linux_nat_target::detach, linux_nat_target::resume)
13550 (linux_stop_and_wait_all_lwps, select_event_lwp)
13551 (linux_nat_filter_event, linux_nat_wait_1)
13552 (linux_nat_target::kill, linux_nat_target::stop)
13553 (linux_nat_target::stop): Update.
13554 (linux_nat_resume_callback): Change type.
13555 (resume_stopped_resumed_lwps, count_events_callback)
13556 (select_event_lwp_callback): Likewise.
13557 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13558 * arm-linux-nat.c (struct update_registers_data): Remove.
13559 (update_registers_callback): Change type.
13560 (arm_linux_insert_hw_breakpoint1): Update.
13561 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13562 parameter.
13563 (x86_linux_dr_set_addr): Update.
13564 (x86_linux_dr_set_control): Update.
13565 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13566 (iterate_over_lwps): Use gdb::function_view.
13567 * nat/aarch64-linux-hw-point.c (struct
13568 aarch64_dr_update_callback_param): Remove.
13569 (debug_reg_change_callback): Change type.
13570 (aarch64_notify_debug_reg_change): Update.
13571 * s390-linux-nat.c (s390_refresh_per_info): Update.
13572
82cb27ff
TT
135732019-03-11 Tom Tromey <tromey@adacore.com>
13574
13575 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13576 redundant assignment to "this_cu".
13577
568c0683
SM
135782019-03-08 Simon Marchi <simon.marchi@efficios.com>
13579
13580 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13581
f09ce22d
SM
135822019-03-08 Simon Marchi <simon.marchi@efficios.com>
13583
13584 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13585 from...
13586 (rank_one_type): ... this.
13587
595f96a9
SM
135882019-03-08 Simon Marchi <simon.marchi@efficios.com>
13589
13590 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13591 from...
13592 (rank_one_type): ... this.
13593
2598a94b
SM
135942019-03-08 Simon Marchi <simon.marchi@efficios.com>
13595
13596 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13597 from...
13598 (rank_one_type): ... this.
13599
7f17b20d
SM
136002019-03-08 Simon Marchi <simon.marchi@efficios.com>
13601
13602 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13603 from...
13604 (rank_one_type): ... this.
13605
2c509035
SM
136062019-03-08 Simon Marchi <simon.marchi@efficios.com>
13607
13608 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13609 from...
13610 (rank_one_type): ... this.
13611
0dd322dc
SM
136122019-03-08 Simon Marchi <simon.marchi@efficios.com>
13613
13614 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13615 from...
13616 (rank_one_type): ... this.
13617
41ea4728
SM
136182019-03-08 Simon Marchi <simon.marchi@efficios.com>
13619
13620 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13621 from...
13622 (rank_one_type): ... this.
13623
793cd1d2
SM
136242019-03-08 Simon Marchi <simon.marchi@efficios.com>
13625
13626 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13627 from...
13628 (rank_one_type): ... this.
13629
34910087
SM
136302019-03-08 Simon Marchi <simon.marchi@efficios.com>
13631
13632 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13633 from...
13634 (rank_one_type): ... this.
13635
f1f832d6
SM
136362019-03-08 Simon Marchi <simon.marchi@efficios.com>
13637
13638 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13639 from...
13640 (rank_one_type): ... this.
13641
b9f4512f
SM
136422019-03-08 Simon Marchi <simon.marchi@efficios.com>
13643
13644 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13645 from...
13646 (rank_one_type): ... this.
13647
9293fc63
SM
136482019-03-08 Simon Marchi <simon.marchi@efficios.com>
13649
13650 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13651 from...
13652 (rank_one_type): ... this.
13653
e3abbe7e
PW
136542019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13655
13656 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13657 inferior-events' shows the example events.
13658
e4adb939
EZ
136592019-03-08 Eli Zaretskii <eliz@gnu.org>
13660
13661 Support styling on native MS-Windows console
13662
13663 PR/24315
13664 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13665 on MS-Windows if $TERM is not defined.
13666
13667 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13668
13669 * posix-hdep.c (gdb_console_fputs):
13670 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13671 functions.
13672 * ui-file.h (gdb_console_fputs): Add prototype.
13673
13674 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13675 back to fputs only if the former returns zero.
13676
25629dfd
TT
136772019-03-07 Tom Tromey <tom@tromey.com>
13678
13679 * symmisc.c (print_symbol_bcache_statistics): Update.
13680 (print_objfile_statistics): Update.
13681 * symfile.c (allocate_symtab): Update.
13682 * stabsread.c: Don't include bcache.h.
13683 * psymtab.h (struct psymbol_bcache): Don't declare.
13684 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13685 (psymbol_bcache_init, psymbol_bcache_free)
13686 (psymbol_bcache_get_bcache): Don't declare.
13687 * psymtab.c (struct psymbol_bcache): Remove.
13688 (psymtab_storage::psymtab_storage): Update.
13689 (psymtab_storage::~psymtab_storage): Update.
13690 (psymbol_bcache_init, psymbol_bcache_free)
13691 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13692 (add_psymbol_to_bcache): Update.
13693 (allocate_psymtab): Update.
13694 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13695 macro_cache>: No longer pointers.
13696 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13697 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13698 * macrotab.c (macro_bcache): Update.
13699 * macroexp.c: Don't include bcache.h.
13700 * gdbtypes.c (check_types_worklist): Update.
13701 (types_deeply_equal): Remove TRY/CATCH. Update.
13702 * elfread.c (elf_symtab_read): Update.
13703 * dwarf2read.c: Don't include bcache.h.
13704 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13705 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13706 (print_bcache_statistics, bcache_memory_used): Don't declare.
13707 (struct bcache): Move from bcache.c. Add constructor, destructor,
13708 methods. Rename all data members.
13709 * bcache.c (struct bcache): Move to bcache.h.
13710 (bcache::expand_hash_table): Rename from expand_hash_table.
13711 (bcache): Remove.
13712 (bcache::insert): Rename from bcache_full.
13713 (bcache::compare): Rename from bcache_compare.
13714 (bcache_xmalloc): Remove.
13715 (bcache::~bcache): Rename from bcache_xfree.
13716 (bcache::print_statistics): Rename from print_bcache_statistics.
13717 (bcache::memory_used): Rename from bcache_memory_used.
13718
fe726667
PA
137192019-03-07 Pedro Alves <palves@redhat.com>
13720
13721 * infrun.c (normal_stop): Also check for
13722 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13723
7584bb30
AB
137242019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13725
13726 * f-lang.c (value_from_host_double): Moved to...
13727 * value.c (value_from_host_double): ...here.
13728 * value.h (value_from_host_double): Declare.
13729 * guile/scm-math.c (vlscm_convert_typed_number): Use
13730 value_from_host_double.
13731 (vlscm_convert_number): Likewise.
13732 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13733 * python/py-value.c (convert_value_from_python): Likewise.
13734
a7b1986e
TT
137352019-03-06 Tom Tromey <tom@tromey.com>
13736
13737 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13738
0ccf4211
TT
137392019-03-06 Tom Tromey <tom@tromey.com>
13740
13741 * utils.h (free_current_contents): Don't declare.
13742 * utils.c (free_current_contents): Remove.
13743
fe7b42e5
TT
137442019-03-06 Tom Tromey <tom@tromey.com>
13745
13746 * top.c (quit_force): Update.
13747 * main.c (captured_command_loop): Update.
13748 * common/new-op.c (operator new): Update.
13749 * common/common-exceptions.c (struct catcher)
13750 <save_cleanup_chain>: Remove member.
13751 (exceptions_state_mc_init): Update.
13752 (exception_try_scope_entry): Return nullptr.
13753 (exception_try_scope_exit, exception_rethrow)
13754 (throw_exception_sjlj, throw_exception_cxx): Update.
13755 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13756 (all_cleanups, do_cleanups, discard_cleanups)
13757 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13758 (restore_cleanups, restore_final_cleanups): Don't declare.
13759 (do_final_cleanups): Remove parameter.
13760 * common/cleanups.c (cleanup_chain, make_cleanup)
13761 (make_cleanup_dtor, all_cleanups, do_cleanups)
13762 (discard_my_cleanups, discard_cleanups)
13763 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13764 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13765 (null_cleanup): Remove.
13766 (do_final_cleanups): Remove parameter.
13767
c6321f19
TT
137682019-03-06 Tom Tromey <tom@tromey.com>
13769
13770 * remote.c (remote_target::remote_parse_stop_reply): Use
13771 unique_xmalloc_ptr.
13772
61b30099
TT
137732019-03-06 Tom Tromey <tom@tromey.com>
13774
13775 * stabsread.c (struct stabs_field_info): Rename from field_info.
13776 <list, fnlist>: Add initializers.
13777 <obstack>: New member.
13778 (read_member_functions, read_struct_fields, read_baseclasses):
13779 Allocate on obstack. Don't use cleanups.
13780 (read_one_struct_field, read_member_functions, read_struct_fields)
13781 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13782 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13783 (read_struct_type): Update.
13784
6cceac94
TT
137852019-03-06 Tom Tromey <tom@tromey.com>
13786
13787 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13788 * common/filestuff.h (make_cleanup_close): Don't declare.
13789 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13790 Remove.
13791
72412762
TT
137922019-03-06 Tom Tromey <tom@tromey.com>
13793
13794 * solib-aix.c: Use make_scope_exit.
13795
2b6ff1c0
TT
137962019-03-06 Tom Tromey <tom@tromey.com>
13797
13798 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13799 Use make_scope_exit.
13800
d01c5877
TT
138012019-03-06 Tom Tromey <tom@tromey.com>
13802
13803 * solib-svr4.c (disable_probes_interface): Remove parameter.
13804 (svr4_handle_solib_event): Use make_scope_exit.
13805
32603266
TT
138062019-03-06 Tom Tromey <tom@tromey.com>
13807
13808 * remote.c (struct stop_reply_deleter): Remove.
13809 (stop_reply_up): Update.
13810 (struct stop_reply): Derive from notif_event. Don't typedef.
13811 <regcache>: Now a std::vector.
13812 (stop_reply_xfree): Remove.
13813 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13814 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13815 (remote_target::discard_pending_stop_replies): Use delete.
13816 (remote_target::remote_parse_stop_reply): Update.
13817 (remote_target::process_stop_reply): Update.
13818 * remote-notif.h (struct notif_event): Add virtual destructor.
13819 Remove "dtr" member.
13820 (struct notif_client) <alloc_event>: Return a unique_ptr.
13821 (notif_event_xfree): Don't declare.
13822 (notif_event_up): New typedef.
13823 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13824 (notif_event_xfree, do_notif_event_xfree): Remove.
13825 (remote_notif_state_xfree): Update.
13826
9799571e
TT
138272019-03-06 Tom Tromey <tom@tromey.com>
13828
13829 * infrun.c (displaced_step_clear_cleanup): Now a
13830 forward_scope_exit type.
13831 (displaced_step_prepare_throw): Update.
13832 (displaced_step_fixup): Update.
13833
09e3c4ca
TT
138342019-03-06 Tom Tromey <tom@tromey.com>
13835
13836 * inferior.h (class inferior): Update comment.
13837 * gdbthread.h (class thread_info): Update comment.
13838
e2a03548
TT
138392019-03-06 Joel Brobecker <brobecker@adacore.com>
13840 Tom Tromey <tom@tromey.com>
13841
13842 * stabsread.h (struct stab_section_list): Remove.
13843 (coffstab_build_psymtabs): Update.
13844 * dbxread.c (symbuf_sections): Now a std::vector.
13845 (sect_idx): New global.
13846 (fill_symbuf): Update.
13847 (coffstab_build_psymtabs): Change type of stabsects parameter.
13848 Update.
13849 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13850 std::vector.
13851 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13852 (coff_locate_sections): Update.
13853 (coff_symfile_read): Remove cleanups. Update.
13854 (init_stringtab): Add storage parameter.
13855 (free_stringtab, free_stringtab_cleanup): Remove.
13856 (init_lineno): Add storage parameter.
13857 (free_linetab, free_linetab_cleanup): Remove.
13858
b7e60d85
PA
138592019-03-06 Pedro Alves <palves@redhat.com>
13860
13861 * linux-fork.c (fork_info::clobber_regs): Delete.
13862 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13863 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13864 comment. Adjust.
13865 (scoped_switch_fork_info::scoped_switch_fork_info)
13866 (checkpoint_command, linux_fork_context): Adjust
13867 fork_save_infrun_state calls.
13868
e52c971f
PA
138692019-03-06 Pedro Alves <palves@redhat.com>
13870
13871 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13872 (inf_has_multiple_threads): Return 'bool' and rewrite using
13873 inferior_info::threads().
13874
06974e6c
PA
138752019-03-06 Pedro Alves <palves@redhat.com>
13876
13877 * linux-fork.c: Include <list>.
13878 (fork_list): Now a std::list instance.
13879 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13880 (forks_exist_p, find_last_fork): Adjust.
13881 (new_fork): Delete.
13882 (one_fork_p): New.
13883 (add_fork): Adjust.
13884 (free_fork): Delete, folded into fork_info::~fork_info().
13885 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13886 Adjust.
13887 (init_fork_list): Delete.
13888 (linux_fork_killall, linux_fork_mourn_inferior)
13889 (linux_fork_detach, info_checkpoints_command): Adjust.
13890 (_initialize_linux_fork): No longer call init_fork_list.
13891
72f31aea
PA
138922019-03-06 Pedro Alves <palves@redhat.com>
13893
13894 * linux-fork.c (new_fork): New, split out of ...
13895 (add_fork): ... this. Return void. Move "first fork" special
13896 case from here, to ...
13897 (checkpoint_command): ... here.
13898 * linux-linux.h (add_fork): Return void.
13899
efbecbc1
AB
139002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13901
13902 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13903
0841c79a
AB
139042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13905 Chris January <chris.january@arm.com>
13906 David Lecomber <david.lecomber@arm.com>
13907
13908 * f-exp.y: New token, UNOP_INTRINSIC.
13909 (exp): New pattern using UNOP_INTRINSIC token.
13910 (f77_keywords): Add 'abs' keyword.
13911 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13912 (value_from_host_double): New function.
13913 (evaluate_subexp_f): Support UNOP_ABS.
13914
4a270568
AB
139152019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13916
13917 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13918 types.
13919
067630bd
AB
139202019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13921
13922 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13923 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13924 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13925
3be47f7a
AB
139262019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13927
13928 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13929
4d00f5d8
AB
139302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13931 Chris January <chris.january@arm.com>
13932
13933 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13934 * f-exp.y: Define 'KIND' token.
13935 (exp): New pattern for KIND expressions.
13936 (ptype): Handle types with a kind extension.
13937 (direct_abs_decl): Extend to spot kind extensions.
13938 (f77_keywords): Add 'kind' to the list.
13939 (push_kind_type): New function.
13940 (convert_to_kind_type): New function.
13941 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13942 * parse.c (operator_length_standard): Likewise.
13943 * parser-defs.h (enum type_pieces): Add tp_kind.
13944 * std-operator.def: Add UNOP_KIND.
13945
e454224f
AB
139462019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13947
13948 * f-exp.y (f_parse): Set yydebug.
13949
9dad4a58
AB
139502019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13951
13952 * f-lang.c (evaluate_subexp_f): New function.
13953 (exp_descriptor_f): New global.
13954 (f_language_defn): Use exp_descriptor_f instead of
13955 exp_descriptor_standard.
13956
c8f91604
AB
139572019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13958
13959 * f-exp.y (struct token): Add comments.
13960 (dot_ops): Remove uppercase versions and the end marker.
13961 (f77_keywords): Likewise.
13962 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13963 entries in the dot_ops array are case insensitive, and use
13964 strncasecmp to compare strings. Also some whitespace cleanup in
13965 this area. Similar for the f77_keywords array, except entries in
13966 this list might be case sensitive.
13967
dd9f2c76
AB
139682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13969
13970 * f-exp.y (struct f77_boolean_val): Add comments.
13971 (boolean_values): Remove uppercase versions, and end marker.
13972 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13973 and use strncasecmp to achieve case insensitivity. Additionally,
13974 perform whitespace cleanup around this code.
13975
67a3048c
TT
139762019-03-06 Tom Tromey <tromey@adacore.com>
13977
13978 * remote-sim.c (gdbsim_target_open): Use result of
13979 gdb_argv::release.
13980
aa3cfbda
RB
139812019-03-06 Richard Bunt <richard.bunt@arm.com>
13982 Dirk Schubert <dirk.schubert@arm.com>
13983 Chris January <chris.january@arm.com>
13984
13985 * eval.c (evaluate_subexp_standard): Call Fortran argument
13986 wrapping logic.
13987 * f-lang.c (struct value): A value which can be passed into a
13988 Fortran function call.
13989 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13990 where appropriate.
13991 (struct type): Value ready for a Fortran function call.
13992 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13993 is needed.
13994 * f-lang.h (fortran_argument_convert): Declaration.
13995 (fortran_preserve_arg_pointer): Declaration.
13996 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13997
ea38e5df
TT
139982019-03-05 Tom Tromey <tromey@adacore.com>
13999
14000 * python/py-prettyprint.c (print_string_repr): Remove #if.
14001 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14002
06b5b831
TT
140032019-03-05 Tom Tromey <tromey@adacore.com>
14004
14005 * target.c (the_dummy_target): Move later. Change type to
14006 "dummy_target".
14007 (initialize_targets): Don't initialize the_dummy_target.
14008
edbd9e45
TT
140092019-03-05 Tom Tromey <tromey@adacore.com>
14010
14011 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14012 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14013
c119e040
TT
140142019-03-05 Tom Tromey <tromey@adacore.com>
14015
14016 * windows-nat.c (windows_nat_target::attach)
14017 (windows_nat_target::detach): Don't call gdb_flush.
14018 * valprint.c (generic_val_print, val_print, val_print_string):
14019 Don't call gdb_flush.
14020 * utils.c (defaulted_query): Don't call gdb_flush.
14021 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14022 * target.c (target_announce_detach): Don't call gdb_flush.
14023 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14024 * remote.c (extended_remote_target::attach): Don't call
14025 gdb_flush.
14026 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14027 * printcmd.c (do_examine): Don't call gdb_flush.
14028 (info_display_command): Don't call gdb_flush.
14029 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14030 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14031 * memattr.c (info_mem_command): Don't call gdb_flush.
14032 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14033 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14034 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14035 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14036 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14037 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14038 (gnu_nat_target::detach): Don't call gdb_flush.
14039 * f-valprint.c (f_val_print): Don't call gdb_flush.
14040 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14041 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14042 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14043 gdb_flush.
14044 * c-valprint.c (c_val_print): Don't call gdb_flush.
14045 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14046
895dafa6
TT
140472019-03-05 Tom Tromey <tromey@adacore.com>
14048
14049 * varobj.c (update_dynamic_varobj_children): Update.
14050 (install_default_visualizer): Use reset, not release.
14051 * value.c (set_internalvar): Update.
14052 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14053 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14054 ATTRIBUTE_UNUSED_RESULT.
14055
88a774b9
TT
140562019-03-05 Tom Tromey <tromey@adacore.com>
14057
14058 * remote.c (class scoped_remote_fd) <release>: Add
14059 ATTRIBUTE_UNUSED_RESULT.
14060
4e4a8b93
TT
140612019-03-05 Tom Tromey <tromey@adacore.com>
14062
14063 * macroexp.c (struct macro_buffer) <release>: Add
14064 ATTRIBUTE_UNUSED_RESULT.
14065
083eef1f
TT
140662019-03-05 Tom Tromey <tromey@adacore.com>
14067
14068 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14069 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14070 ATTRIBUTE_UNUSED_RESULT.
14071
3cabd438
TT
140722019-03-05 Tom Tromey <tromey@adacore.com>
14073
14074 * common/scoped_fd.h (class scoped_fd) <release>: Add
14075 ATTRIBUTE_UNUSED_RESULT.
14076
41e3300a
TT
140772019-03-05 Tom Tromey <tromey@adacore.com>
14078
14079 * parser-defs.h (struct parser_state) <release>: Add
14080 ATTRIBUTE_UNUSED_RESULT.
14081
18cb7c9f
TT
140822019-03-05 Tom Tromey <tromey@adacore.com>
14083
14084 * utils.h (class gdb_argv) <release>: Add
14085 ATTRIBUTE_UNUSED_RESULT.
14086 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14087
41fa577f
EZ
140882019-03-02 Eli Zaretskii <eliz@gnu.org>
14089
a6a4b2c6
EZ
14090 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14091 for-loop range, to avoid compiler warnings.
14092
14093 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14094 avoid compiler warnings about unused variables.
14095
742a7df5
EZ
14096 * NEWS: Mention end of support for native debugging on MS-Windows
14097 before XP.
14098
41fa577f
EZ
14099 PR gdb/24292
14100 * common/netstuff.c:
14101 * gdbserver/gdbreplay.c
14102 * gdbserver/remote-utils.c:
14103 * ser-tcp.c:
14104 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14105 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14106 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14107 'getaddrinfo' and 'freeaddrinfo' were not available before
14108 Windows XP, and mingw.org's MinGW headers by default define
14109 _WIN32_WINNT to 0x500.
14110
827f438f
GB
141112019-03-01 Gary Benson <gbenson@redhat.com>
14112
14113 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14114
92137da0
RO
141152019-02-28 Brian Vandenberg <phantall@gmail.com>
14116 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14117
14118 PR gdb/8527
14119 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14120 set_sigint_trap, clear_sigint_trap.
14121
799efbe8
PW
141222019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14123
14124 * target.c (target_detach): Clear the regcache and the
14125 frame cache.
14126
8ed25214
PA
141272019-02-27 Pedro Alves <palves@redhat.com>
14128
14129 * utils.c (set_screen_size): When we cap the height/width sizes,
14130 tweak the corresponding command variable to show "unlimited":
14131
23031e31
SJ
141322019-02-27 Saagar Jha <saagar@saagarjha.com>
14133 Pedro Alves <palves@redhat.com>
14134
14135 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14136 before calling rl_set_screen_size.
14137
6c28e44a
TT
141382019-02-27 Tom Tromey <tromey@adacore.com>
14139
14140 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14141 define.
14142 * python/py-value.c: Remove Python 2.4 workaround.
14143 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14144 workaround.
14145 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14146 Python 2.4 workaround.
14147 * python/python-internal.h: Remove Python 2.4 comment.
14148 (Py_ssize_t): Don't define.
14149 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14150 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14151 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14152 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14153 * python/python.c (do_start_initialization): Remove Python 2.4
14154 workaround.
14155 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14156 (print_children): Remove Python 2.4 workaround.
14157 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14158 workaround.
14159 (CHARBUFFERPROC_NAME): Remove.
14160 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14161 Python 2.4 workaround.
14162
2c3fc25d 141632019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14164
2c3fc25d
KB
14165 * NEWS: Note minimum Python version.
14166
6ca62222
KB
141672019-02-27 Kevin Buettner <kevinb@redhat.com>
14168
14169 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14170 code from these functions. Remove corresponding ifdefs. Use
14171 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14172 Remove gotos and target of gotos.
14173 (infpy_search_memory): Likewise.
14174
f4bc7d2c
AB
141752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14176
14177 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14178 (hppa_gdbarch_init): Don't register deleted functions with
14179 gdbarch.
14180
9734a586
AB
141812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14182
14183 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14184 (h8300_unwind_sp): Delete.
14185 (h8300_dummy_id): Delete.
14186 (h8300_gdbarch_init): Don't register deleted functions with
14187 gdbarch.
14188
68b867f3
AB
141892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14190
14191 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14192 (ft32_unwind_pc): Delete.
14193 (ft32_unwind_sp): Delete.
14194 (ft32_gdbarch_init): Don't register deleted functions with
14195 gdbarch.
14196
2fbe7ad0
AB
141972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14198
14199 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14200 (frv_unwind_pc): Delete.
14201 (frv_unwind_sp): Delete.
14202 (frv_gdbarch_init): Don't register deleted functions with
14203 gdbarch.
14204
76055cbe
AB
142052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14206
14207 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14208 (riscv_unwind_pc): Delete.
14209 (riscv_unwind_sp): Delete.
14210 (riscv_gdbarch_init): Don't register deleted functions with
14211 gdbarch.
14212
4133e5a1
AB
142132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14214
14215 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14216 (csky_unwind_pc): Delete.
14217 (csky_unwind_sp): Delete.
14218 (csky_gdbarch_init): Don't register deleted functions with
14219 gdbarch.
14220
8010f576
AB
142212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14222
14223 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14224 (cris_unwind_pc): Delete.
14225 (cris_unwind_sp): Delete.
14226 (cris_gdbarch_init): Don't register deleted functions with
14227 gdbarch.
14228
b56bf084
AB
142292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14230
14231 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14232 (bfin_unwind_pc): Delete.
14233 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14234
a19a650f
AB
142352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14236
14237 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14238 (arm_unwind_pc): Delete.
14239 (arm_unwind_sp): Delete.
14240 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14241
f8278c3c
AB
142422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14243
14244 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14245 (arc_unwind_pc): Delete.
14246 (arc_unwind_sp): Delete.
14247 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14248
480e46cf
AB
142492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14250
14251 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14252 (alpha_unwind_pc): Delete.
14253 (alpha_gdbarch_init): Don't register deleted functions with
14254 gdbarch.
14255
7a995095
AB
142562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14257
14258 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14259 (aarch64_unwind_pc): Delete.
14260 (aarch64_unwind_sp): Delete.
14261 (aarch64_gdbarch_init): Don't register deleted functions with
14262 gdbarch.
14263
bf9a735e
AB
142642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14265
14266 * gdbtypes.c (type_align): Don't consider static members when
14267 computing structure alignment.
14268
5561fc30
AB
142692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14270
14271 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14272 return 0 for other types.
14273 * arch-utils.c (default_type_align): Always return 0.
14274 * gdbarch.h: Regenerate.
14275 * gdbarch.sh (type_align): Extend comment.
14276 * gdbtypes.c (type_align): Add additional comments, always call
14277 gdbarch_type_align before applying the default rules.
14278 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14279 generic code will then apply a suitable default.
14280 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14281 types, return 0 for other types.
14282
9335e75a
JB
142832019-02-27 Joel Brobecker <brobecker@adacore.com>
14284
14285 * NEWS: Create a new section for the next release branch.
14286 Rename the section of the current branch, now that it has
14287 been cut.
14288
3d34d8de
JB
142892019-02-27 Joel Brobecker <brobecker@adacore.com>
14290
14291 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14292 * version.in: Bump version to 8.3.50.DATE-git.
14293
143420fb
SM
142942019-02-26 Simon Marchi <simon.marchi@efficios.com>
14295
14296 * aix-thread.c (ptid_cmp): Remove unused variable.
14297 (get_signaled_thread): Likewise.
14298 (store_regs_user_thread): Likewise.
14299 (store_regs_kernel_thread): Likewise.
14300 (fetch_regs_kernel_thread): Remove shadowed variable.
14301
172fb711
AB
143022019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14303
14304 * features/riscv/32bit-cpu.xml: Add register numbers.
14305 * features/riscv/32bit-fpu.c: Regenerate.
14306 * features/riscv/32bit-fpu.xml: Add register numbers.
14307 * features/riscv/64bit-cpu.xml: Add register numbers.
14308 * features/riscv/64bit-fpu.c: Regenerate.
14309 * features/riscv/64bit-fpu.xml: Add register numbers.
14310
26c89782
KB
143112019-02-26 Kevin Buettner <kevinb@redhat.com>
14312
af54ade9 14313 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14314 * python/py-value.c (convert_buffer_and_type_to_value): New
14315 function.
14316 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14317 Add support for handling an optional second argument. Call
14318 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14319 * python/python-internal.h (Py_buffer_deleter): New struct.
14320 (Py_buffer_up): New typedef.
14321
0f58c9e8
JB
143222019-02-25 John Baldwin <jhb@FreeBSD.org>
14323
14324 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14325 instead of releasing ownership.
14326
0a0f4c01
JR
143272019-02-25 Jordan Rupprecht <rupprecht@google.com>
14328
14329 * dwarf2read.c (open_and_init_dwp_file): Call
14330 elf_numsections instead of bfd_count_sections to initialize
14331 dwp_file->num_sections.
14332
cd5a152c
TT
143332019-02-25 Tom Tromey <tromey@adacore.com>
14334
14335 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14336
8a6a8513
SDJ
143372019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14338
14339 * gcore.in: Add '--readnever' option when invoking GDB.
14340
04dcda9c
SM
143412019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14342
14343 * MAINTAINERS: Update my email address.
14344
07bc701d
SM
143452019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14346
14347 * build-id.c (build_id_to_debug_bfd_1): New function.
14348 (build_id_to_debug_bfd): Look for separate debug file in
14349 sysroot.
14350
c6f4a5d0
AB
143512019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14352
14353 * gdbarch.sh: Update the copyright year range that is placed into
14354 generated files.
14355
9600246d
KS
143562019-02-22 Keith Seitz <keiths@redhat.com>
14357
14358 PR symtab/23853
14359 * linespec.c (create_sals_line_offset): Search for the default
14360 symtab's filename instead of its fullname.
14361
7557a514
AH
143622019-02-21 Alan Hayward <alan.hayward@arm.com>
14363
14364 * NEWS: Update style defaults.
14365
ee2bcb0c
AH
143662019-02-21 Alan Hayward <alan.hayward@arm.com>
14367
14368 * main.c (captured_main_1): Disable styling in batch mode.
14369
0c95f9ed
TT
143702019-02-20 Tom Tromey <tom@tromey.com>
14371
14372 * symtab.c (symtab_symbol_info): Fix typos.
14373
c763b894
TT
143742019-02-20 Tom Tromey <tromey@adacore.com>
14375
14376 * findcmd.c (_initialize_mem_search): Use upper case for
14377 metasyntactic variables.
14378
0ef8a082
AH
143792019-02-20 Alan Hayward <alan.hayward@arm.com>
14380
14381 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14382 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14383
6caa91b6
SM
143842019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14385
14386 * top.h (source_file_name): Change to std::string.
14387 * top.c (source_file_name): Likewise.
14388 (command_line_input): Adjust.
14389 * cli/cli-script.c (script_from_file): Adjust.
14390
98814c6c
TT
143912019-02-19 Tom Tromey <tromey@adacore.com>
14392
14393 * ravenscar-thread.c
14394 (ravenscar_thread_target::update_thread_list): Don't call
14395 ada_build_task_list.
14396 * ada-lang.h (ada_build_task_list): Don't declare.
14397 * ada-tasks.c (struct ada_tasks_inferior_data)
14398 <task_list_valid_p>: Now bool.
14399 (read_known_tasks, ada_task_list_changed)
14400 (ada_tasks_invalidate_inferior_data): Update.
14401 (read_known_tasks_array): Return bool.
14402 (read_known_tasks_list): Likewise.
14403 (read_known_tasks): Return void.
14404 (ada_build_task_list): Now static.
14405
70cd633e
AB
144062019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14407
14408 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14409 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14410
040b3e95
PW
144112019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14412
14413 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14414 variant for ada_tasks_pspace_data_handle and
14415 ada_tasks_inferior_data_handle.
14416 (ada_tasks_pspace_data_cleanup): New function.
14417 (ada_tasks_inferior_data_cleanup): New function.
14418
9409233b
TT
144192019-02-17 Tom Tromey <tom@tromey.com>
14420
14421 * macrotab.h (macro_source_fullname): Return a std::string.
14422 * macrotab.c (macro_include, check_for_redefinition)
14423 (macro_undef, macro_lookup_definition, foreach_macro)
14424 (foreach_macro_in_scope): Update.
14425 (macro_source_fullname): Return a std::string.
14426 * macrocmd.c (show_pp_source_pos): Update.
14427
6506371f
TT
144282019-02-17 Tom Tromey <tom@tromey.com>
14429
14430 * macrocmd.c (show_pp_source_pos): Style the file names.
14431
0c820d67
TT
144322019-02-17 Tom Tromey <tom@tromey.com>
14433
14434 PR tui/24197:
14435 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14436
a0087920
TT
144372019-02-17 Tom Tromey <tom@tromey.com>
14438
14439 * ada-lang.c (user_select_syms): Use filtered printing.
14440 * utils.c (wrap_style): New global.
14441 (desired_style): Remove.
14442 (emit_style_escape): Add stream parameter.
14443 (set_output_style, reset_terminal_style, prompt_for_continue):
14444 Update.
14445 (flush_wrap_buffer): Only flush gdb_stdout.
14446 (wrap_here): Set wrap_style.
14447 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14448 treat escape sequences as a character. Change when wrap buffer is
14449 flushed.
14450 (fputs_styled): Do not set the output style when the default is
14451 requested.
14452 * ui-style.h (struct ui_file_style) <is_default>: New method.
14453 * source.c (print_source_lines_base): Emit escape sequences in one
14454 piece.
14455
75ba10dc
JB
144562019-02-17 Joel Brobecker <brobecker@adacore.com>
14457
14458 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14459 integers and enumeration types.
14460
a2cd4f14
JB
144612019-02-17 Joel Brobecker <brobecker@adacore.com>
14462
14463 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14464 instead of lookup_symbol_in_language
14465 (do_exact_match): New function.
14466 (ada_get_symbol_name_matcher): Return do_exact_match when
14467 doing a verbatim match.
14468
485b851b
TT
144692019-02-15 Tom Tromey <tromey@adacore.com>
14470
14471 * ravenscar-thread.c (ravenscar_thread_target::resume)
14472 (ravenscar_thread_target::wait): Special case wildcard requests.
14473
0b790b1e
TT
144742019-02-15 Tom Tromey <tromey@adacore.com>
14475
14476 * ravenscar-thread.c (base_ptid): Remove.
14477 (struct ravenscar_thread_target) <close>: New method.
14478 <m_base_ptid>: New member.
14479 <update_inferior_ptid, active_task, task_is_currently_active,
14480 runtime_initialized>: Declare methods.
14481 <ravenscar_thread_target>: Add constructor.
14482 (ravenscar_thread_target::task_is_currently_active)
14483 (ravenscar_thread_target::update_inferior_ptid)
14484 (ravenscar_runtime_initialized): Rename. Now methods.
14485 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14486 (ravenscar_thread_target::update_thread_list): Update.
14487 (ravenscar_thread_target::active_task): Now method.
14488 (ravenscar_thread_target::store_registers)
14489 (ravenscar_thread_target::prepare_to_store)
14490 (ravenscar_thread_target::prepare_to_store)
14491 (ravenscar_thread_target::mourn_inferior): Update.
14492 (ravenscar_inferior_created): Use "new" to create target.
14493 (ravenscar_thread_target::get_ada_task_ptid): Update.
14494 (_initialize_ravenscar): Don't initialize base_ptid.
14495 (ravenscar_ops): Remove global.
14496
dea57a62
TT
144972019-02-15 Tom Tromey <tromey@adacore.com>
14498
14499 * target.h (push_target): Declare new overload.
14500 * target.c (push_target): New overload, taking an rvalue reference.
14501 * remote.c (remote_target::open_1): Use push_target overload.
14502 * corelow.c (core_target_open): Use push_target overload.
14503
989f3c58
TT
145042019-02-15 Tom Tromey <tromey@adacore.com>
14505
14506 * ravenscar-thread.c (is_ravenscar_task)
14507 (ravenscar_task_is_currently_active): Return bool.
14508 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14509 (_initialize_ravenscar): Remove "(void)".
14510 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14511 Return bool.
14512
6cbcc006
TT
145132019-02-15 Tom Tromey <tromey@adacore.com>
14514
14515 * ravenscar-thread.c (ravenscar_runtime_initializer)
14516 (has_ravenscar_runtime, get_running_thread_id)
14517 (ravenscar_thread_target::resume): Fix indentation.
14518
7657f14d
TT
145192019-02-15 Tom Tromey <tromey@adacore.com>
14520
14521 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14522 from ravenscar_arch_ops.
14523 (sparc_ravenscar_ops::fetch_registers)
14524 (sparc_ravenscar_ops::store_registers): Now methods.
14525 (sparc_ravenscar_prepare_to_store): Remove.
14526 (sparc_ravenscar_ops): Redefine.
14527 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14528 methods and destructor. Remove members.
14529 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14530 (ravenscar_thread_target::store_registers)
14531 (ravenscar_thread_target::prepare_to_store): Update.
14532 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14533 Remove.
14534 (struct ppc_ravenscar_powerpc_ops): Derive from
14535 ravenscar_arch_ops.
14536 (ppc_ravenscar_powerpc_ops::fetch_registers)
14537 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14538 (ppc_ravenscar_powerpc_ops): Redefine.
14539 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14540 (ppc_ravenscar_e500_ops::fetch_registers)
14541 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14542 (ppc_ravenscar_e500_ops): Redefine.
14543 * aarch64-ravenscar-thread.c
14544 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14545 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14546 (aarch64_ravenscar_fetch_registers)
14547 (aarch64_ravenscar_store_registers): Now methods.
14548 (aarch64_ravenscar_ops): Redefine.
14549
5b6ea500
TT
145502019-02-15 Tom Tromey <tromey@adacore.com>
14551
14552 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14553 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14554 (ravenscar_thread_target::stopped_by_watchpoint)
14555 (ravenscar_thread_target::stopped_data_address)
14556 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14557
e397fd39
TT
145582019-02-15 Tom Tromey <tromey@adacore.com>
14559
14560 * ravenscar-thread.c: Fix some typos.
14561
cc12f4a8
TT
145622019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14563 Tom Tromey <tromey@adacore.com>
14564
14565 * ada-lang.c (ada_exception_sal): Change addr_string to a
14566 std::string.
14567 (create_ada_exception_catchpoint): Update.
14568
5f486660
TT
145692019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14570 Tom Tromey <tromey@adacore.com>
14571
14572 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14573 (bp_location_ops): Remove.
14574 (base_breakpoint_allocate_location): Update.
14575 (free_bp_location): Update.
14576 * ada-lang.c (class ada_catchpoint_location)
14577 <ada_catchpoint_location>: Remove ops parameter.
14578 (ada_catchpoint_location_dtor): Remove.
14579 (ada_catchpoint_location_ops): Remove.
14580 (allocate_location_exception): Update.
14581 * breakpoint.h (struct bp_location_ops): Remove.
14582 (class bp_location) <bp_location>: Remove bp_location_ops
14583 parameter.
14584 <~bp_location>: Add destructor.
14585 <ops>: Remove.
14586
b671c7fb
TS
145872019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14588 Pedro Alves <palves@redhat.com>
14589
14590 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14591 'PATH_MAX'.
14592
8071c5ce
DM
145932019-02-14 David Michael <fedora.dm0@gmail.com>
14594 Samuel Thibault <samuel.thibault@gnu.org>
14595 Thomas Schwinge <thomas@codesourcery.com>
14596
14597 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14598 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14599
b1041ae0
TS
146002019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14601
924514e1
TS
14602 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14603 (check_empty): Use "const char *".
14604
c29ee8d4
TS
14605 * gnu-nat.c (gnu_nat_target::detach): Instead of
14606 'detach_inferior (pid)' call
14607 'detach_inferior (find_inferior_pid (pid))'.
14608
6c6ef69f
TS
14609 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14610 'nat/fork-inferior.o'.
14611 * gnu-nat.c: #include "nat/fork-inferior.h".
14612
2d0a338c
TS
14613 * gnu-nat.c (gnu_nat_target::detach): Instead of
14614 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14615 * gnu-nat.h: #include "inf-child.h".
14616 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14617 'i386_gnu_nat_target::fetch_registers'.
14618 (gnu_store_registers): Rename/move to
14619 'i386_gnu_nat_target::store_registers'.
14620
cabb5f06
TS
14621 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14622 * gnu-nat.h (mach_thread_info): New function.
14623 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14624
b1041ae0
TS
14625 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14626
2988d01e
KF
146272019-02-14 Frederic Konrad <konrad@adacore.com>
14628
14629 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14630
c559d709
JB
146312019-02-14 Joel Brobecker <brobecker@adacore.com>
14632
14633 * windows-nat.c (windows_add_thread): Add new parameter
14634 "main_thread_p" with default value set to false. Update
14635 function documentation as well as all callers.
14636 (windows_delete_thread): Likewise.
14637 (fake_create_process): Update call to windows_add_thread.
14638 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14639 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14640 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14641 call to windows_delete_thread.
14642
007024cc
SM
146432019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14644
14645 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14646
f62318e9
JB
146472019-02-12 John Baldwin <jhb@FreeBSD.org>
14648
14649 * symfile.c (find_separate_debug_file): Use canonical path of
14650 sysroot with child_path instead of gdb_sysroot if it is valid.
14651
cd4b7848
JB
146522019-02-12 John Baldwin <jhb@FreeBSD.org>
14653
14654 * symfile.c (find_separate_debug_file): Use child_path to
14655 determine if an object file is under a sysroot.
14656
efac4bfe
JB
146572019-02-12 John Baldwin <jhb@FreeBSD.org>
14658
14659 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14660 unittests/child-path-selftests.c.
14661 * common/pathstuff.c (child_path): New function.
14662 * common/pathstuff.h (child_path): New prototype.
14663 * unittests/child-path-selftests.c: New file.
14664
402d2bfe
JB
146652019-02-12 John Baldwin <jhb@FreeBSD.org>
14666
14667 * symfile.c (find_separate_debug_file): Look for separate debug
14668 files in debug directories under the sysroot.
14669
1ed9f74e
PW
146702019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14671
14672 * symtab.h (struct minimal_symbol data_p): New const method.
14673 (struct minimal_symbol text_p): Likewise.
14674 * symtab.c (output_source_filename): Use file name style
14675 to print file name.
14676 (print_symbol_info): Likewise.
14677 (print_msymbol_info): Use address style to print addresses.
14678 Use function name style to print executable text symbols.
14679 (expand_symtab_containing_pc): Use data_p.
14680 (find_pc_sect_compunit_symtab): Likewise.
14681
2636d81d
PW
146822019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14683
14684 * breakpoint.c (describe_other_breakpoints): Use address style
14685 to print addresses.
14686 (say_where): Likewise.
14687
ac8c53cc
PW
146882019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14689
14690 * ada-typeprint.c (print_func_type): Print function name
14691 style to print function name.
14692 * c-typeprint.c (c_print_type_1): Likewise.
14693
ea638c43
AH
146942019-02-11 Alan Hayward <alan.hayward@arm.com>
14695
14696 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14697 for execve.
14698
ab759ca8
PW
146992019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14700
14701 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14702 type_stack.
14703
aff29d1c
JB
147042019-02-10 Joel Brobecker <brobecker@adacore.com>
14705
14706 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14707 TYPE_CODE_REF types.
14708
617126bc
JW
147092019-02-08 Jim Wilson <jimw@sifive.com>
14710
14711 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14712 (riscv_linux_fregset): New.
14713 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14714
46e3ed7f
TT
147152019-02-07 Tom Tromey <tom@tromey.com>
14716
14717 * thread.c (thread_cancel_execution_command): Update.
14718 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14719 methods.
14720 (struct thread_fsm_ops): Remove.
14721 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14722 (thread_fsm_should_stop, thread_fsm_return_value)
14723 (thread_fsm_set_finished, thread_fsm_finished_p)
14724 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14725 Don't declare.
14726 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14727 * infrun.c (clear_proceed_status_thread)
14728 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14729 (print_stop_event): Update.
14730 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14731 Add constructor.
14732 (step_command_fsm_ops): Remove.
14733 (new_step_command_fsm): Remove.
14734 (step_1): Update.
14735 (step_command_fsm::should_stop): Rename from
14736 step_command_fsm_should_stop.
14737 (step_command_fsm::clean_up): Rename from
14738 step_command_fsm_clean_up.
14739 (step_command_fsm::do_async_reply_reason): Rename from
14740 step_command_fsm_async_reply_reason.
14741 (struct until_next_fsm): Inherit from thread_fsm. Add
14742 constructor.
14743 (until_next_fsm_ops): Remove.
14744 (new_until_next_fsm): Remove.
14745 (until_next_fsm::should_stop): Rename from
14746 until_next_fsm_should_stop.
14747 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14748 (until_next_fsm::do_async_reply_reason): Rename from
14749 until_next_fsm_async_reply_reason.
14750 (struct finish_command_fsm): Inherit from thread_fsm. Add
14751 constructor. Change type of breakpoint.
14752 (finish_command_fsm_ops): Remove.
14753 (new_finish_command_fsm): Remove.
14754 (finish_command_fsm::should_stop): Rename from
14755 finish_command_fsm_should_stop.
14756 (finish_command_fsm::clean_up): Rename from
14757 finish_command_fsm_clean_up.
14758 (finish_command_fsm::return_value): Rename from
14759 finish_command_fsm_return_value.
14760 (finish_command_fsm::do_async_reply_reason): Rename from
14761 finish_command_fsm_async_reply_reason.
14762 (finish_command): Update.
14763 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14764 Add constructor.
14765 (call_thread_fsm_ops): Remove.
14766 (call_thread_fsm::call_thread_fsm): Rename from
14767 new_call_thread_fsm.
14768 (call_thread_fsm::should_stop): Rename from
14769 call_thread_fsm_should_stop.
14770 (call_thread_fsm::should_notify_stop): Rename from
14771 call_thread_fsm_should_notify_stop.
14772 (run_inferior_call, call_function_by_hand_dummy): Update.
14773 * cli/cli-interp.c (should_print_stop_to_console): Update.
14774 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14775 Add constructor. Change type of location_breakpoint,
14776 caller_breakpoint.
14777 (until_break_fsm_ops): Remove.
14778 (new_until_break_fsm): Remove.
14779 (until_break_fsm::should_stop): Rename from
14780 until_break_fsm_should_stop.
14781 (until_break_fsm::clean_up): Rename from
14782 until_break_fsm_clean_up.
14783 (until_break_fsm::do_async_reply_reason): Rename from
14784 until_break_fsm_async_reply_reason.
14785 (until_break_command): Update.
14786 * thread-fsm.c: Remove.
14787 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14788
1a5c2598
TT
147892019-02-07 Tom Tromey <tom@tromey.com>
14790
14791 * yy-remap.h: Add include guard.
14792 * xtensa-tdep.h: Add include guard.
14793 * xcoffread.h: Rename include guard.
14794 * varobj-iter.h: Add include guard.
14795 * tui/tui.h: Rename include guard.
14796 * tui/tui-winsource.h: Rename include guard.
14797 * tui/tui-wingeneral.h: Rename include guard.
14798 * tui/tui-windata.h: Rename include guard.
14799 * tui/tui-win.h: Rename include guard.
14800 * tui/tui-stack.h: Rename include guard.
14801 * tui/tui-source.h: Rename include guard.
14802 * tui/tui-regs.h: Rename include guard.
14803 * tui/tui-out.h: Rename include guard.
14804 * tui/tui-layout.h: Rename include guard.
14805 * tui/tui-io.h: Rename include guard.
14806 * tui/tui-hooks.h: Rename include guard.
14807 * tui/tui-file.h: Rename include guard.
14808 * tui/tui-disasm.h: Rename include guard.
14809 * tui/tui-data.h: Rename include guard.
14810 * tui/tui-command.h: Rename include guard.
14811 * tic6x-tdep.h: Add include guard.
14812 * target/waitstatus.h: Rename include guard.
14813 * target/wait.h: Rename include guard.
14814 * target/target.h: Rename include guard.
14815 * target/resume.h: Rename include guard.
14816 * target-float.h: Rename include guard.
14817 * stabsread.h: Add include guard.
14818 * rs6000-tdep.h: Add include guard.
14819 * riscv-fbsd-tdep.h: Add include guard.
14820 * regformats/regdef.h: Rename include guard.
14821 * record.h: Rename include guard.
14822 * python/python.h: Rename include guard.
14823 * python/python-internal.h: Rename include guard.
14824 * python/py-stopevent.h: Rename include guard.
14825 * python/py-ref.h: Rename include guard.
14826 * python/py-record.h: Rename include guard.
14827 * python/py-record-full.h: Rename include guard.
14828 * python/py-record-btrace.h: Rename include guard.
14829 * python/py-instruction.h: Rename include guard.
14830 * python/py-events.h: Rename include guard.
14831 * python/py-event.h: Rename include guard.
14832 * procfs.h: Add include guard.
14833 * proc-utils.h: Add include guard.
14834 * p-lang.h: Add include guard.
14835 * or1k-tdep.h: Rename include guard.
14836 * observable.h: Rename include guard.
14837 * nto-tdep.h: Rename include guard.
14838 * nat/x86-linux.h: Rename include guard.
14839 * nat/x86-linux-dregs.h: Rename include guard.
14840 * nat/x86-gcc-cpuid.h: Add include guard.
14841 * nat/x86-dregs.h: Rename include guard.
14842 * nat/x86-cpuid.h: Rename include guard.
14843 * nat/ppc-linux.h: Rename include guard.
14844 * nat/mips-linux-watch.h: Rename include guard.
14845 * nat/linux-waitpid.h: Rename include guard.
14846 * nat/linux-ptrace.h: Rename include guard.
14847 * nat/linux-procfs.h: Rename include guard.
14848 * nat/linux-osdata.h: Rename include guard.
14849 * nat/linux-nat.h: Rename include guard.
14850 * nat/linux-namespaces.h: Rename include guard.
14851 * nat/linux-btrace.h: Rename include guard.
14852 * nat/glibc_thread_db.h: Rename include guard.
14853 * nat/gdb_thread_db.h: Rename include guard.
14854 * nat/gdb_ptrace.h: Rename include guard.
14855 * nat/fork-inferior.h: Rename include guard.
14856 * nat/amd64-linux-siginfo.h: Rename include guard.
14857 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14858 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14859 * nat/aarch64-linux.h: Rename include guard.
14860 * nat/aarch64-linux-hw-point.h: Rename include guard.
14861 * mn10300-tdep.h: Add include guard.
14862 * mips-linux-tdep.h: Add include guard.
14863 * mi/mi-parse.h: Rename include guard.
14864 * mi/mi-out.h: Rename include guard.
14865 * mi/mi-main.h: Rename include guard.
14866 * mi/mi-interp.h: Rename include guard.
14867 * mi/mi-getopt.h: Rename include guard.
14868 * mi/mi-console.h: Rename include guard.
14869 * mi/mi-common.h: Rename include guard.
14870 * mi/mi-cmds.h: Rename include guard.
14871 * mi/mi-cmd-break.h: Rename include guard.
14872 * m2-lang.h: Add include guard.
14873 * location.h: Rename include guard.
14874 * linux-record.h: Rename include guard.
14875 * linux-nat.h: Add include guard.
14876 * linux-fork.h: Add include guard.
14877 * i386-darwin-tdep.h: Rename include guard.
14878 * hppa-linux-offsets.h: Add include guard.
14879 * guile/guile.h: Rename include guard.
14880 * guile/guile-internal.h: Rename include guard.
14881 * gnu-nat.h: Rename include guard.
14882 * gdb-stabs.h: Rename include guard.
14883 * frv-tdep.h: Add include guard.
14884 * f-lang.h: Add include guard.
14885 * event-loop.h: Add include guard.
14886 * darwin-nat.h: Rename include guard.
14887 * cp-abi.h: Rename include guard.
14888 * config/sparc/nm-sol2.h: Rename include guard.
14889 * config/nm-nto.h: Rename include guard.
14890 * config/nm-linux.h: Add include guard.
14891 * config/i386/nm-i386gnu.h: Rename include guard.
14892 * config/djgpp/nl_types.h: Rename include guard.
14893 * config/djgpp/langinfo.h: Rename include guard.
14894 * compile/gcc-cp-plugin.h: Add include guard.
14895 * compile/gcc-c-plugin.h: Add include guard.
14896 * compile/compile.h: Rename include guard.
14897 * compile/compile-object-run.h: Rename include guard.
14898 * compile/compile-object-load.h: Rename include guard.
14899 * compile/compile-internal.h: Rename include guard.
14900 * compile/compile-cplus.h: Rename include guard.
14901 * compile/compile-c.h: Rename include guard.
14902 * common/xml-utils.h: Rename include guard.
14903 * common/x86-xstate.h: Rename include guard.
14904 * common/version.h: Rename include guard.
14905 * common/vec.h: Rename include guard.
14906 * common/tdesc.h: Rename include guard.
14907 * common/selftest.h: Rename include guard.
14908 * common/scoped_restore.h: Rename include guard.
14909 * common/scoped_mmap.h: Rename include guard.
14910 * common/scoped_fd.h: Rename include guard.
14911 * common/safe-iterator.h: Rename include guard.
14912 * common/run-time-clock.h: Rename include guard.
14913 * common/refcounted-object.h: Rename include guard.
14914 * common/queue.h: Rename include guard.
14915 * common/ptid.h: Rename include guard.
14916 * common/print-utils.h: Rename include guard.
14917 * common/preprocessor.h: Rename include guard.
14918 * common/pathstuff.h: Rename include guard.
14919 * common/observable.h: Rename include guard.
14920 * common/netstuff.h: Rename include guard.
14921 * common/job-control.h: Rename include guard.
14922 * common/host-defs.h: Rename include guard.
14923 * common/gdb_wait.h: Rename include guard.
14924 * common/gdb_vecs.h: Rename include guard.
14925 * common/gdb_unlinker.h: Rename include guard.
14926 * common/gdb_unique_ptr.h: Rename include guard.
14927 * common/gdb_tilde_expand.h: Rename include guard.
14928 * common/gdb_sys_time.h: Rename include guard.
14929 * common/gdb_string_view.h: Rename include guard.
14930 * common/gdb_splay_tree.h: Rename include guard.
14931 * common/gdb_setjmp.h: Rename include guard.
14932 * common/gdb_ref_ptr.h: Rename include guard.
14933 * common/gdb_optional.h: Rename include guard.
14934 * common/gdb_locale.h: Rename include guard.
14935 * common/gdb_assert.h: Rename include guard.
14936 * common/filtered-iterator.h: Rename include guard.
14937 * common/filestuff.h: Rename include guard.
14938 * common/fileio.h: Rename include guard.
14939 * common/environ.h: Rename include guard.
14940 * common/common-utils.h: Rename include guard.
14941 * common/common-types.h: Rename include guard.
14942 * common/common-regcache.h: Rename include guard.
14943 * common/common-inferior.h: Rename include guard.
14944 * common/common-gdbthread.h: Rename include guard.
14945 * common/common-exceptions.h: Rename include guard.
14946 * common/common-defs.h: Rename include guard.
14947 * common/common-debug.h: Rename include guard.
14948 * common/cleanups.h: Rename include guard.
14949 * common/buffer.h: Rename include guard.
14950 * common/btrace-common.h: Rename include guard.
14951 * common/break-common.h: Rename include guard.
14952 * cli/cli-utils.h: Rename include guard.
14953 * cli/cli-style.h: Rename include guard.
14954 * cli/cli-setshow.h: Rename include guard.
14955 * cli/cli-script.h: Rename include guard.
14956 * cli/cli-interp.h: Rename include guard.
14957 * cli/cli-decode.h: Rename include guard.
14958 * cli/cli-cmds.h: Rename include guard.
14959 * charset-list.h: Add include guard.
14960 * buildsym-legacy.h: Rename include guard.
14961 * bfin-tdep.h: Add include guard.
14962 * ax.h: Rename include guard.
14963 * arm-linux-tdep.h: Add include guard.
14964 * arm-fbsd-tdep.h: Add include guard.
14965 * arch/xtensa.h: Rename include guard.
14966 * arch/tic6x.h: Add include guard.
14967 * arch/i386.h: Add include guard.
14968 * arch/arm.h: Rename include guard.
14969 * arch/arm-linux.h: Rename include guard.
14970 * arch/arm-get-next-pcs.h: Rename include guard.
14971 * arch/amd64.h: Add include guard.
14972 * arch/aarch64-insn.h: Rename include guard.
14973 * arch-utils.h: Rename include guard.
14974 * annotate.h: Add include guard.
14975 * amd64-darwin-tdep.h: Rename include guard.
14976 * aarch64-linux-tdep.h: Add include guard.
14977 * aarch64-fbsd-tdep.h: Add include guard.
14978 * aarch32-linux-nat.h: Add include guard.
14979
ab9268d2
PW
149802019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14981
14982 * macrotab.c (macro_define_internal): New function that
14983 factorizes macro_define_object_internal and macro_define_function
14984 code.
14985 (macro_define_object_internal): Use macro_define_internal.
14986 (macro_define_function): Likewise.
14987
bb0da2b4
PW
149882019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14989
14990 * macrocmd.c (extract_identifier): Return
14991 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14992 callers.
14993
424eb552
JB
149942019-02-06 John Baldwin <jhb@FreeBSD.org>
14995
14996 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14997
1688cb29
TT
149982019-02-05 Tom Tromey <tom@tromey.com>
14999
15000 * target.c (target_stack::unpush): Move assertion earlier.
15001
b5eba2d8
TT
150022019-01-30 Tom Tromey <tom@tromey.com>
15003
15004 PR python/23615:
15005 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15006 (gdbpy_parse_and_eval): Likewise.
15007 * python/python-internal.h (gdbpy_allow_threads): New class.
15008
7054e2ff
JB
150092019-01-28 John Baldwin <jhb@FreeBSD.org>
15010
15011 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15012 (aarch64_fbsd_fpregmap): Move earlier.
15013 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15014 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15015 instead of individual calls to trad_frame_set_reg_addr.
15016 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15017 earlier.
15018 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15019 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15020 instead of individual calls to trad_frame_set_reg_addr.
15021
36c25ffa
AH
150222019-01-28 Alan Hayward <alan.hayward@arm.com>
15023
15024 * CONTRIBUTE: Replace contribution list with wiki link.
15025
a0707f3c
TT
150262019-01-25 Tom Tromey <tom@tromey.com>
15027
15028 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15029
0747795c
TT
150302019-01-25 Tom Tromey <tom@tromey.com>
15031
15032 * xtensa-linux-nat.c: Fix common/ includes.
15033 * xml-support.h: Fix common/ includes.
15034 * xml-support.c: Fix common/ includes.
15035 * x86-linux-nat.c: Fix common/ includes.
15036 * windows-nat.c: Fix common/ includes.
15037 * varobj.h: Fix common/ includes.
15038 * varobj.c: Fix common/ includes.
15039 * value.c: Fix common/ includes.
15040 * valops.c: Fix common/ includes.
15041 * utils.c: Fix common/ includes.
15042 * unittests/xml-utils-selftests.c: Fix common/ includes.
15043 * unittests/utils-selftests.c: Fix common/ includes.
15044 * unittests/unpack-selftests.c: Fix common/ includes.
15045 * unittests/tracepoint-selftests.c: Fix common/ includes.
15046 * unittests/style-selftests.c: Fix common/ includes.
15047 * unittests/string_view-selftests.c: Fix common/ includes.
15048 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15049 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15050 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15051 * unittests/rsp-low-selftests.c: Fix common/ includes.
15052 * unittests/parse-connection-spec-selftests.c: Fix common/
15053 includes.
15054 * unittests/optional-selftests.c: Fix common/ includes.
15055 * unittests/offset-type-selftests.c: Fix common/ includes.
15056 * unittests/observable-selftests.c: Fix common/ includes.
15057 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15058 * unittests/memrange-selftests.c: Fix common/ includes.
15059 * unittests/memory-map-selftests.c: Fix common/ includes.
15060 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15061 * unittests/function-view-selftests.c: Fix common/ includes.
15062 * unittests/environ-selftests.c: Fix common/ includes.
15063 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15064 * unittests/common-utils-selftests.c: Fix common/ includes.
15065 * unittests/cli-utils-selftests.c: Fix common/ includes.
15066 * unittests/array-view-selftests.c: Fix common/ includes.
15067 * ui-file.c: Fix common/ includes.
15068 * tui/tui-io.c: Fix common/ includes.
15069 * tracepoint.h: Fix common/ includes.
15070 * tracepoint.c: Fix common/ includes.
15071 * tracefile-tfile.c: Fix common/ includes.
15072 * top.h: Fix common/ includes.
15073 * top.c: Fix common/ includes.
15074 * thread.c: Fix common/ includes.
15075 * target/waitstatus.h: Fix common/ includes.
15076 * target/waitstatus.c: Fix common/ includes.
15077 * target.h: Fix common/ includes.
15078 * target.c: Fix common/ includes.
15079 * target-memory.c: Fix common/ includes.
15080 * target-descriptions.c: Fix common/ includes.
15081 * symtab.h: Fix common/ includes.
15082 * symfile.c: Fix common/ includes.
15083 * stap-probe.c: Fix common/ includes.
15084 * spu-linux-nat.c: Fix common/ includes.
15085 * sparc-nat.c: Fix common/ includes.
15086 * source.c: Fix common/ includes.
15087 * solib.c: Fix common/ includes.
15088 * solib-target.c: Fix common/ includes.
15089 * ser-unix.c: Fix common/ includes.
15090 * ser-tcp.c: Fix common/ includes.
15091 * ser-pipe.c: Fix common/ includes.
15092 * ser-base.c: Fix common/ includes.
15093 * selftest-arch.c: Fix common/ includes.
15094 * s12z-tdep.c: Fix common/ includes.
15095 * rust-exp.y: Fix common/ includes.
15096 * rs6000-aix-tdep.c: Fix common/ includes.
15097 * riscv-tdep.c: Fix common/ includes.
15098 * remote.c: Fix common/ includes.
15099 * remote-notif.h: Fix common/ includes.
15100 * remote-fileio.h: Fix common/ includes.
15101 * remote-fileio.c: Fix common/ includes.
15102 * regcache.h: Fix common/ includes.
15103 * regcache.c: Fix common/ includes.
15104 * record-btrace.c: Fix common/ includes.
15105 * python/python.c: Fix common/ includes.
15106 * python/py-type.c: Fix common/ includes.
15107 * python/py-inferior.c: Fix common/ includes.
15108 * progspace.h: Fix common/ includes.
15109 * producer.c: Fix common/ includes.
15110 * procfs.c: Fix common/ includes.
15111 * proc-api.c: Fix common/ includes.
15112 * printcmd.c: Fix common/ includes.
15113 * ppc-linux-nat.c: Fix common/ includes.
15114 * parser-defs.h: Fix common/ includes.
15115 * osdata.c: Fix common/ includes.
15116 * obsd-nat.c: Fix common/ includes.
15117 * nat/x86-linux.c: Fix common/ includes.
15118 * nat/x86-linux-dregs.c: Fix common/ includes.
15119 * nat/x86-dregs.h: Fix common/ includes.
15120 * nat/x86-dregs.c: Fix common/ includes.
15121 * nat/ppc-linux.c: Fix common/ includes.
15122 * nat/mips-linux-watch.h: Fix common/ includes.
15123 * nat/mips-linux-watch.c: Fix common/ includes.
15124 * nat/linux-waitpid.c: Fix common/ includes.
15125 * nat/linux-ptrace.h: Fix common/ includes.
15126 * nat/linux-ptrace.c: Fix common/ includes.
15127 * nat/linux-procfs.c: Fix common/ includes.
15128 * nat/linux-personality.c: Fix common/ includes.
15129 * nat/linux-osdata.c: Fix common/ includes.
15130 * nat/linux-namespaces.c: Fix common/ includes.
15131 * nat/linux-btrace.h: Fix common/ includes.
15132 * nat/linux-btrace.c: Fix common/ includes.
15133 * nat/fork-inferior.c: Fix common/ includes.
15134 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15135 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15136 * nat/aarch64-linux.c: Fix common/ includes.
15137 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15138 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15139 * namespace.h: Fix common/ includes.
15140 * mips-linux-tdep.c: Fix common/ includes.
15141 * minsyms.c: Fix common/ includes.
15142 * mi/mi-parse.h: Fix common/ includes.
15143 * mi/mi-main.c: Fix common/ includes.
15144 * mi/mi-cmd-env.c: Fix common/ includes.
15145 * memrange.h: Fix common/ includes.
15146 * memattr.c: Fix common/ includes.
15147 * maint.h: Fix common/ includes.
15148 * maint.c: Fix common/ includes.
15149 * main.c: Fix common/ includes.
15150 * machoread.c: Fix common/ includes.
15151 * location.c: Fix common/ includes.
15152 * linux-thread-db.c: Fix common/ includes.
15153 * linux-nat.c: Fix common/ includes.
15154 * linux-fork.c: Fix common/ includes.
15155 * inline-frame.c: Fix common/ includes.
15156 * infrun.c: Fix common/ includes.
15157 * inflow.c: Fix common/ includes.
15158 * inferior.h: Fix common/ includes.
15159 * inferior.c: Fix common/ includes.
15160 * infcmd.c: Fix common/ includes.
15161 * inf-ptrace.c: Fix common/ includes.
15162 * inf-child.c: Fix common/ includes.
15163 * ia64-linux-nat.c: Fix common/ includes.
15164 * i387-tdep.c: Fix common/ includes.
15165 * i386-tdep.c: Fix common/ includes.
15166 * i386-linux-tdep.c: Fix common/ includes.
15167 * i386-linux-nat.c: Fix common/ includes.
15168 * i386-go32-tdep.c: Fix common/ includes.
15169 * i386-fbsd-tdep.c: Fix common/ includes.
15170 * i386-fbsd-nat.c: Fix common/ includes.
15171 * guile/scm-type.c: Fix common/ includes.
15172 * guile/guile.c: Fix common/ includes.
15173 * go32-nat.c: Fix common/ includes.
15174 * gnu-nat.c: Fix common/ includes.
15175 * gdbthread.h: Fix common/ includes.
15176 * gdbarch-selftests.c: Fix common/ includes.
15177 * gdb_usleep.c: Fix common/ includes.
15178 * gdb_select.h: Fix common/ includes.
15179 * gdb_bfd.c: Fix common/ includes.
15180 * gcore.c: Fix common/ includes.
15181 * fork-child.c: Fix common/ includes.
15182 * findvar.c: Fix common/ includes.
15183 * fbsd-nat.c: Fix common/ includes.
15184 * event-top.c: Fix common/ includes.
15185 * event-loop.c: Fix common/ includes.
15186 * dwarf2read.c: Fix common/ includes.
15187 * dwarf2loc.c: Fix common/ includes.
15188 * dwarf2-frame.c: Fix common/ includes.
15189 * dwarf-index-cache.c: Fix common/ includes.
15190 * dtrace-probe.c: Fix common/ includes.
15191 * disasm-selftests.c: Fix common/ includes.
15192 * defs.h: Fix common/ includes.
15193 * csky-tdep.c: Fix common/ includes.
15194 * cp-valprint.c: Fix common/ includes.
15195 * cp-support.h: Fix common/ includes.
15196 * cp-support.c: Fix common/ includes.
15197 * corelow.c: Fix common/ includes.
15198 * completer.h: Fix common/ includes.
15199 * completer.c: Fix common/ includes.
15200 * compile/compile.c: Fix common/ includes.
15201 * compile/compile-loc2c.c: Fix common/ includes.
15202 * compile/compile-cplus-types.c: Fix common/ includes.
15203 * compile/compile-cplus-symbols.c: Fix common/ includes.
15204 * command.h: Fix common/ includes.
15205 * cli/cli-dump.c: Fix common/ includes.
15206 * cli/cli-cmds.c: Fix common/ includes.
15207 * charset.c: Fix common/ includes.
15208 * build-id.c: Fix common/ includes.
15209 * btrace.h: Fix common/ includes.
15210 * btrace.c: Fix common/ includes.
15211 * breakpoint.h: Fix common/ includes.
15212 * breakpoint.c: Fix common/ includes.
15213 * ax.h:
15214 (enum agent_op): Fix common/ includes.
15215 * ax-general.c (struct aop_map): Fix common/ includes.
15216 * ax-gdb.c: Fix common/ includes.
15217 * auxv.c: Fix common/ includes.
15218 * auto-load.c: Fix common/ includes.
15219 * arm-tdep.c: Fix common/ includes.
15220 * arch/riscv.c: Fix common/ includes.
15221 * arch/ppc-linux-common.c: Fix common/ includes.
15222 * arch/i386.c: Fix common/ includes.
15223 * arch/arm.c: Fix common/ includes.
15224 * arch/arm-linux.c: Fix common/ includes.
15225 * arch/arm-get-next-pcs.c: Fix common/ includes.
15226 * arch/amd64.c: Fix common/ includes.
15227 * arch/aarch64.c: Fix common/ includes.
15228 * arch/aarch64-insn.c: Fix common/ includes.
15229 * arch-utils.c: Fix common/ includes.
15230 * amd64-windows-tdep.c: Fix common/ includes.
15231 * amd64-tdep.c: Fix common/ includes.
15232 * amd64-sol2-tdep.c: Fix common/ includes.
15233 * amd64-obsd-tdep.c: Fix common/ includes.
15234 * amd64-nbsd-tdep.c: Fix common/ includes.
15235 * amd64-linux-tdep.c: Fix common/ includes.
15236 * amd64-linux-nat.c: Fix common/ includes.
15237 * amd64-fbsd-tdep.c: Fix common/ includes.
15238 * amd64-fbsd-nat.c: Fix common/ includes.
15239 * amd64-dicos-tdep.c: Fix common/ includes.
15240 * amd64-darwin-tdep.c: Fix common/ includes.
15241 * agent.c: Fix common/ includes.
15242 * ada-lang.h: Fix common/ includes.
15243 * ada-lang.c: Fix common/ includes.
15244 * aarch64-tdep.c: Fix common/ includes.
15245
2f5c153e
TT
152462019-01-25 Tom Tromey <tom@tromey.com>
15247
15248 * common/create-version.sh: Use common/version.h.
15249
adc6a863
PA
152502019-01-24 Pedro Alves <palves@redhat.com>
15251
15252 * infrun.c (signal_stop, signal_print, signal_program)
15253 (signal_catch, signal_pass): Now arrays instead of pointers.
15254 (update_signals_program_target, do_target_resume)
15255 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15256 * linux-nat.c (linux_nat_target::pass_signals)
15257 (linux_nat_target::create_inferior, linux_nat_target::attach):
15258 Adjust.
15259 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15260 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15261 * procfs.c (procfs_target::pass_signals): Adjust.
15262 * record-full.c (record_full_target::resume): Adjust.
15263 * remote.c (remote_target::pass_signals)
15264 (remote_target::program_signals): Adjust.
15265 * target-debug.h (target_debug_print_signals): Now takes a
15266 gdb::array_view as parameter. Adjust.
15267 * target.h (target_ops) <pass_signals, program_signals>: Replace
15268 pointer and length parameters with gdb::array_view.
15269 (target_pass_signals, target_program_signals): Likewise.
15270 * target-delegates.c: Regenerate.
15271
3046d67a
PA
152722019-01-24 Pedro Alves <palves@redhat.com>
15273
15274 * common/forward-scope-exit.h
15275 (forward_scope_exit::forward_scope_exit): Pass arguments to
15276 m_bind_function directly, instead of creating a std::bind and
15277 copying that.
15278
353229bf
AH
152792019-01-24 Alan Hayward <alan.hayward@arm.com>
15280
15281 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15282 for static members.
15283 (pass_in_v_vfp_candidate): Likewise.
15284
311dc83a
TT
152852019-01-23 Tom Tromey <tom@tromey.com>
15286 Pedro Alves <palves@redhat.com>
15287
15288 * regcache.c (class regcache_invalidator): Remove.
15289 (regcache::raw_write): Use make_scope_exit.
15290
296bd123
TT
152912019-01-23 Tom Tromey <tom@tromey.com>
15292
15293 * ui-out.h (class ui_out_emit_type): Update comment.
15294
979a0d13
TT
152952019-01-23 Tom Tromey <tom@tromey.com>
15296
15297 * infrun.c (fetch_inferior_event): Update comment.
15298
d238133d
TT
152992019-01-23 Tom Tromey <tom@tromey.com>
15300 Pedro Alves <palves@redhat.com>
15301
15302 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15303 parameter.
15304 (fetch_inferior_event): Use SCOPE_EXIT.
15305
15306
9885e6bb
TT
153072019-01-23 Tom Tromey <tom@tromey.com>
15308 Pedro Alves <palves@redhat.com>
15309
15310 * infrun.c (disable_thread_events): Delete.
15311 (stop_all_threads): Use SCOPE_EXIT.
15312
286526c1
TT
153132019-01-23 Tom Tromey <tom@tromey.com>
15314 Pedro Alves <palves@redhat.com>
15315
15316 * symfile.c: Include forward-scope-exit.h.
15317 (clear_symtab_users_cleanup): Replace forward declaration with
15318 a FORWARD_SCOPE_EXIT.
15319 (syms_from_objfile_1): Use the forward_scope_exit and
15320 gdb::optional instead of cleanup_function.
15321 (reread_symbols): Use the forward_scope_exit instead of
15322 cleanup_function.
15323 (clear_symtab_users_cleanup): Remove function.
15324
1db93f14
TT
153252019-01-23 Tom Tromey <tom@tromey.com>
15326 Pedro Alves <palves@redhat.com>
15327
15328 * linux-nat.c: Include scope-exit.h.
15329 (cleanup_target_stop): Remove.
15330 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15331 SCOPE_EXIT.
15332
2cc83d1e
TT
153332019-01-23 Tom Tromey <tom@tromey.com>
15334 Pedro Alves <palves@redhat.com>
15335
15336 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15337 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15338
694c6bf5
TT
153392019-01-23 Tom Tromey <tom@tromey.com>
15340 Andrew Burgess <andrew.burgess@embecosm.com>
15341 Pedro Alves <palves@redhat.com>
15342
15343 * infrun.c (fetch_inferior_event): Use scope_exit.
15344 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15345 * top.c (execute_command): Use scope_exit.
15346 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15347 * utils.c (do_bpstat_clear_actions_cleanup)
15348 (make_bpstat_clear_actions_cleanup): Remove.
15349
4c41382a
TT
153502019-01-23 Tom Tromey <tom@tromey.com>
15351 Pedro Alves <palves@redhat.com>
15352
15353 * infrun.c: Include "common/scope-exit.h"
15354 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15355 (wait_for_inferior): Use SCOPE_EXIT.
15356 (fetch_inferior_event): Use scope_exit.
15357
89f8fb50
TT
153582019-01-23 Tom Tromey <tom@tromey.com>
15359 Pedro Alves <palves@redhat.com>
15360
15361 * breakpoint.c (create_breakpoint): Remove cleanup.
15362
5419bdae
TT
153632019-01-23 Tom Tromey <tom@tromey.com>
15364 Andrew Burgess <andrew.burgess@embecosm.com>
15365 Pedro Alves <palves@redhat.com>
15366
e587ef42
PA
153672019-01-23 Pedro Alves <palves@redhat.com>
15368
15369 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15370
77f0e74c
PA
153712019-01-23 Pedro Alves <palves@redhat.com>
15372 Andrew Burgess <andrew.burgess@embecosm.com>
15373
15374 * gdbthread.h: Include "common/forward-scope-exit.h".
15375 (scoped_finish_thread_state): Redefine custom class in terms of
15376 forward_scope_exit.
15377
5b9b3e53
PA
153782019-01-23 Pedro Alves <palves@redhat.com>
15379 Andrew Burgess <andrew.burgess@embecosm.com>
15380
15381 * common/forward-scope-exit.h: New file.
15382
54b65c9b
PA
153832019-01-23 Pedro Alves <palves@redhat.com>
15384 Andrew Burgess <andrew.burgess@embecosm.com>
15385 Tom Tromey <tom@tromey.com>
15386
15387 * common/scope-exit.h: New file.
15388
cf08fb29
PA
153892019-01-23 Pedro Alves <palves@redhat.com>
15390
15391 * common/preprocessor.h (ESC): Rename to ...
15392 (ESC_PARENS): ... this.
15393 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15394 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15395
ae73e2e2
TT
153962019-01-23 Tom Tromey <tom@tromey.com>
15397
15398 * language.h (class scoped_switch_to_sym_language_if_auto):
15399 Initialize m_lang in both cases.
15400
6594e122
AH
154012019-01-23 Alan Hayward <alan.hayward@arm.com>
15402
15403 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15404 with XCNEW.
15405
a7c9855d
TT
154062019-01-22 Tom Tromey <tom@tromey.com>
15407
15408 * corelow.c: Do not include sys/file.h.
15409
93cc1d53
TT
154102019-01-22 Tom Tromey <tom@tromey.com>
15411
15412 * tui/tui-wingeneral.h: Include gdb_curses.h.
15413
38561778
TT
154142019-01-22 Tom Tromey <tom@tromey.com>
15415
15416 * source-cache.h (class source_cache) <get_source_lines,
15417 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15418
37b3ab5b
TT
154192019-01-22 Tom Tromey <tom@tromey.com>
15420
15421 * remote-fileio.h (struct remote_target): Declare.
15422
3fabc016
TT
154232019-01-22 Tom Tromey <tom@tromey.com>
15424
15425 * python/py-arch.c: Do not include py-ref.h.
15426 * python/py-bpevent.c: Do not include py-ref.h.
15427 * python/py-cmd.c: Do not include py-ref.h.
15428 * python/py-continueevent.c: Do not include py-ref.h.
15429 * python/py-event.h: Do not include py-ref.h.
15430 * python/py-evtregistry.c: Do not include py-ref.h.
15431 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15432 * python/py-frame.c: Do not include py-ref.h.
15433 * python/py-framefilter.c: Do not include py-ref.h.
15434 * python/py-function.c: Do not include py-ref.h.
15435 * python/py-infevents.c: Do not include py-ref.h.
15436 * python/py-linetable.c: Do not include py-ref.h.
15437 * python/py-objfile.c: Do not include py-ref.h.
15438 * python/py-param.c: Do not include py-ref.h.
15439 * python/py-prettyprint.c: Do not include py-ref.h.
15440 * python/py-progspace.c: Do not include py-ref.h.
15441 * python/py-symbol.c: Do not include py-ref.h.
15442 * python/py-symtab.c: Do not include py-ref.h.
15443 * python/py-type.c: Do not include py-ref.h.
15444 * python/py-unwind.c: Do not include py-ref.h.
15445 * python/py-utils.c: Do not include py-ref.h.
15446 * python/py-value.c: Do not include py-ref.h.
15447 * python/py-varobj.c: Do not include py-ref.h.
15448 * python/py-xmethods.c: Do not include py-ref.h.
15449 * python/python.c: Do not include py-ref.h.
15450 * varobj.c: Do not include py-ref.h.
15451
6b4d7774
TT
154522019-01-22 Tom Tromey <tom@tromey.com>
15453
15454 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15455 keyword for bcache.
15456
7af7e9b5
TT
154572019-01-22 Tom Tromey <tom@tromey.com>
15458
15459 * compile/compile-cplus-types.c: Remove a comment by #include.
15460
951d1049
TT
154612019-01-22 Tom Tromey <tom@tromey.com>
15462
15463 * compile/gcc-c-plugin.h: Include compile-internal.h.
15464
d65d5705
TT
154652019-01-22 Tom Tromey <tom@tromey.com>
15466
15467 * stabsread.c (EXTERN): Do not define.
15468 (symnum, next_symbol_text_func, processing_gcc_compilation)
15469 (within_function, global_sym_chain, global_stabs)
15470 (previous_stab_code, this_object_header_files)
15471 (n_this_object_header_files)
15472 (n_allocated_this_object_header_files): Define.
15473 * stabsread.h (EXTERN): Never define. Use "extern".
15474
b6fb1ee5
PW
154752019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15476
15477 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15478 history_value.
15479
be6d4f74
TT
154802019-01-21 Tom Tromey <tom@tromey.com>
15481
15482 * ui-out.c: Fix includes.
15483 * tui/tui-source.c: Fix includes.
15484 * target.c: Fix includes.
15485 * remote.c: Fix includes.
15486 * regcache.c: Fix includes.
15487 * python/py-block.c: Fix includes.
15488 * printcmd.c: Fix includes.
15489 * or1k-tdep.c: Fix includes.
15490 * mi/mi-main.c: Fix includes.
15491 * m32r-tdep.c: Fix includes.
15492 * csky-tdep.c: Fix includes.
15493 * compile/compile-cplus-types.c: Fix includes.
15494 * cli/cli-interp.c: Fix includes.
15495
73021deb
AH
154962019-01-21 Alan Hayward <alan.hayward@arm.com>
15497
15498 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15499 for padding.
15500
7932255d
TT
155012019-01-16 Tom Tromey <tom@tromey.com>
15502
15503 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15504 earlier.
15505 (struct objfile) <msymbols_range>: Move from top level.
15506 <msymbols>: New method.
15507 (class objfile_msymbols): Remove.
15508 * symtab.c (default_collect_symbol_completion_matches_break_on):
15509 Update.
15510 * symmisc.c (dump_msymbols): Update.
15511 * stabsread.c (scan_file_globals): Update.
15512 * objc-lang.c (info_selectors_command, info_classes_command)
15513 (find_methods): Update.
15514 * minsyms.c (find_solib_trampoline_target): Update.
15515 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15516 * coffread.c (coff_symfile_read): Update.
15517 * ada-lang.c (ada_lookup_simple_minsym)
15518 (ada_collect_symbol_completion_matches): Update.
15519
604b1bfb
TT
155202019-01-16 Tom Tromey <tom@tromey.com>
15521
15522 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15523 type. Remove no-argument constructor.
15524 <iterator::operator++>: Simplify.
15525 <begin>: Update.
15526 <end>: Use minimal_symbol_count.
15527
f252c6d5
TT
155282019-01-16 Tom Tromey <tom@tromey.com>
15529
15530 * objfiles.h (struct objfile) <psymtabs>: New method.
15531 (class objfile_psymtabs): Remove.
15532 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15533 typedef.
15534 <range>: New method.
15535 (require_partial_symbols): Change return type.
15536 * psymtab.c (require_partial_symbols)
15537 (psym_expand_symtabs_matching): Update.
15538 * mdebugread.c (parse_partial_symbols): Update.
15539 * dbxread.c (dbx_end_psymtab): Update.
15540
b669c953
TT
155412019-01-15 Tom Tromey <tom@tromey.com>
15542
15543 * symtab.c (lookup_objfile_from_block)
15544 (lookup_symbol_in_objfile_symtabs)
15545 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15546 (find_line_symtab, info_sources_command)
15547 (default_collect_symbol_completion_matches_break_on)
15548 (make_source_files_completion_list): Update.
15549 * symmisc.c (print_objfile_statistics, dump_objfile)
15550 (maintenance_print_symbols, maintenance_info_symtabs)
15551 (maintenance_check_symtabs, maintenance_info_line_tables):
15552 Update.
15553 * source.c (select_source_symtab)
15554 (forget_cached_source_info_for_objfile): Update.
15555 * objfiles.h (class objfile_compunits): Remove.
15556 (struct objfile) <compunits_range>: New typedef.
15557 (compunits): New method.
15558 * objfiles.c (objfile_relocate1): Update.
15559 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15560 * maint.c (count_symtabs_and_blocks): Update.
15561 * linespec.c (iterate_over_all_matching_symtabs): Update.
15562 * cp-support.c (add_symbol_overload_list_qualified): Update.
15563 * coffread.c (coff_symtab_read): Update.
15564 * ada-lang.c (add_nonlocal_symbols)
15565 (ada_collect_symbol_completion_matches)
15566 (ada_add_global_exceptions): Update.
15567
7e955d83
TT
155682019-01-15 Tom Tromey <tom@tromey.com>
15569
15570 * progspace.h (program_space) <objfiles_safe_range>: New
15571 typedef.
15572 <objfiles_safe>: New method.
15573 * objfiles.h (class all_objfiles_safe): Remove.
15574 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15575 * jit.c (jit_inferior_exit_hook): Update.
15576
2030c079
TT
155772019-01-17 Tom Tromey <tom@tromey.com>
15578
15579 * progspace.h (program_space) <objfiles_range>: New typedef.
15580 <objfiles>: New method.
15581 <objfiles_head>: Rename from objfiles.
15582 (object_files): Update.
15583 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15584 * guile/scm-pretty-print.c
15585 (ppscm_find_pretty_printer_from_objfiles): Update.
15586 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15587 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15588 Update.
15589 * python/py-progspace.c (pspy_get_objfiles): Update.
15590 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15591 Update.
15592 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15593 (objfpy_lookup_objfile_by_build_id): Update.
15594 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15595 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15596 Update.
15597 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15598 (expand_symtab_containing_pc, lookup_objfile_from_block)
15599 (lookup_static_symbol, basic_lookup_transparent_type)
15600 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15601 (find_line_symtab, info_sources_command)
15602 (default_collect_symbol_completion_matches_break_on)
15603 (make_source_files_completion_list, find_main_name): Update.
15604 * symmisc.c (print_symbol_bcache_statistics)
15605 (print_objfile_statistics, maintenance_print_symbols)
15606 (maintenance_print_msymbols, maintenance_print_objfiles)
15607 (maintenance_info_symtabs, maintenance_check_symtabs)
15608 (maintenance_expand_symtabs, maintenance_info_line_tables):
15609 Update.
15610 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15611 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15612 (map_overlay_command, unmap_overlay_command)
15613 (simple_overlay_update, expand_symtabs_matching)
15614 (map_symbol_filenames): Update.
15615 * symfile-debug.c (set_debug_symfile): Update.
15616 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15617 Update.
15618 * source.c (select_source_symtab, forget_cached_source_info):
15619 Update.
15620 * solib.c (solib_read_symbols): Update.
15621 * solib-spu.c (append_ocl_sos): Update.
15622 * psymtab.c (maintenance_print_psymbols)
15623 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15624 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15625 * printcmd.c (info_symbol_command): Update.
15626 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15627 Update.
15628 * objfiles.h (class all_objfiles): Remove.
15629 * objfiles.c (have_partial_symbols, have_full_symbols)
15630 (have_minimal_symbols, qsort_cmp, update_section_map)
15631 (shared_objfile_contains_address_p)
15632 (default_iterate_over_objfiles_in_search_order): Update.
15633 * objc-lang.c (info_selectors_command, info_classes_command)
15634 (find_methods): Update.
15635 * minsyms.c (find_solib_trampoline_target): Update.
15636 * maint.c (maintenance_info_sections)
15637 (maintenance_translate_address, count_symtabs_and_blocks):
15638 Update.
15639 * main.c (captured_main_1): Update.
15640 * linux-thread-db.c (try_thread_db_load_from_pdir)
15641 (has_libpthread): Update.
15642 * linespec.c (iterate_over_all_matching_symtabs)
15643 (search_minsyms_for_name): Update.
15644 * jit.c (jit_find_objf_with_entry_addr): Update.
15645 * hppa-tdep.c (find_unwind_entry)
15646 (hppa_lookup_stub_minimal_symbol): Update.
15647 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15648 Update.
15649 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15650 (elf_gnu_ifunc_resolve_by_got): Update.
15651 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15652 * dwarf-index-write.c (save_gdb_index_command): Update.
15653 * cp-support.c (add_symbol_overload_list_qualified): Update.
15654 * breakpoint.c (create_overlay_event_breakpoint)
15655 (create_longjmp_master_breakpoint)
15656 (create_std_terminate_master_breakpoint)
15657 (create_exception_master_breakpoint): Update.
15658 * blockframe.c (find_pc_partial_function): Update.
15659 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15660 (ada_collect_symbol_completion_matches)
15661 (ada_add_global_exceptions): Update.
15662
776489e0
TT
156632019-01-17 Tom Tromey <tom@tromey.com>
15664
15665 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15666 declare VEC.
15667 (solib_target_parse_libraries): Change return type.
15668 (library_list_start_segment, library_list_start_section)
15669 (library_list_end_library, library_list_start_library); Update.
15670 (solib_target_free_library_list): Remove.
15671 (solib_target_parse_libraries): Remove cleanup. Change return
15672 type.
15673 (solib_target_current_sos): Update.
15674
6471e7d2
TT
156752019-01-17 Tom Tromey <tromey@bapiya>
15676
15677 * valprint.c: Replace "the the" with "the".
15678 * symtab.c: Replace "the the" with "the".
15679 * solib.c: Replace "the the" with "the".
15680 * solib-dsbt.c: Replace "the the" with "the".
15681 * linespec.c: Replace "the the" with "the".
15682 * dwarf2loc.h: Replace "the the" with "the".
15683 * amd64-windows-tdep.c: Replace "the the" with "the".
15684 * aarch64-tdep.c: Replace "the the" with "the".
15685
c24bdb02
KS
156862019-01-16 Keith Seitz <keiths@redhat.com>
15687
15688 PR gdb/23773
15689 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15690 <builder>: Rename to ..
15691 <m_builder>: ... this and make private.
15692 (dwarf2_cu::get_builder): New method. Change all users of
15693 `builder' to use this method.
15694 (dwarf2_start_symtab): Move to ...
15695 (dwarf2_cu::start_symtab): ... here. Update all callers
15696 (setup_type_unit_groups): Move to ...
15697 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15698 callers.
15699 (dwarf2_cu::reset_builder): New method.
15700 (process_full_compunit, process_full_type_unit): Use
15701 dwarf2_cu::reset_builder.
15702 (follow_die_offset): Record the ancestor CU if it is different
15703 from the followed DIE's CU.
15704 (follow_die_sig_1): Likewise.
15705
8d64371b
TT
157062019-01-15 Tom Tromey <tom@tromey.com>
15707
15708 * remote.c (class remote_state) <buf>: Now a char_vector.
15709 <buf_size>: Remove.
15710 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15711 parameter.
15712 (remote_target::getpkt_or_notif_sane_1)
15713 (remote_target::getpkt_sane)
15714 (remote_target::getpkt_or_notif_sane): Likewise.
15715 (class remote_target) <putpkt>: New overload.
15716 (remote_target::read_frame): Change type of "buf_p". Remove
15717 sizeof_p parameter.
15718 (packet_ok): New overload.
15719 (packet_check_result): New overload.
15720 Update all uses.
15721
bb277751
TT
157222019-01-14 Tom Tromey <tom@tromey.com>
15723
15724 * remote-notif.c (handle_notification, remote_notif_ack)
15725 (remote_notif_parse): Make "buf" const.
15726 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15727 const.
15728 (remote_notif_parse, remote_notif_ack, handle_notification):
15729 Likewise.
15730 * remote.c (remote_notif_stop_parse): Make "buf" const.
15731 (remote_target::remote_parse_stop_reply): Make "buf" const.
15732 (remote_notif_stop_ack): Make "buf" const.
15733
05be00a8
TT
157342019-01-14 Tom Tromey <tom@tromey.com>
15735
15736 * remote.c (remote_console_output): Make parameter const.
15737
491adeca
TT
157382019-01-14 Tom Tromey <tom@tromey.com>
15739
15740 * target-debug.h (target_debug_print_signals): Constify.
15741 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15742 * procfs.c (procfs_target::pass_signals): Update.
15743 * linux-nat.c (linux_nat_target::pass_signals): Update.
15744 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15745 * target-delegates.c: Rebuild.
15746 * remote.c (remote_target::program_signals): Update.
15747 (remote_target::pass_signals): Update.
15748 * target.c (target_pass_signals): Constify argument.
15749 (target_program_signals): Likewise.
15750 * target.h (struct target_ops) <pass_signals, program_signals>:
15751 Constify argument.
15752 (target_pass_signals, target_program_signals): Constify argument.
15753
bbd94648
TT
157542019-01-14 Tom Tromey <tom@tromey.com>
15755
15756 PR tui/28819:
15757 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15758
6f072a10
PFC
157592019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15760
15761 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15762 field.
15763 * rs6000-tdep.c: Include reggroups.h.
15764 (IS_V_ALIAS_PSEUDOREG): Define.
15765 (rs6000_register_name): Return names for the "vX" aliases.
15766 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15767 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15768 aliases. Call default_register_reggroup_p for all other
15769 pseudo-registers.
15770 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15771 New functions.
15772 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15773 Handle "vX" aliases.
15774 (v_alias_pseudo_register_collect): New function.
15775 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15776 (rs6000_gdbarch_init): Initialize "vX" aliases as
15777 pseudo-registers. Restore registration of
15778 rs6000_pseudo_register_reggroup_p with
15779 set_tdesc_pseudo_register_reggroup_p.
15780
1a782351
MF
157812019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15782
15783 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15784 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15785 set_gdbarch_num_pseudo_regs.
15786
d73cff18
PW
157872019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15788
15789 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15790 Remove arg prefixname, add do_set and do_show.
15791 Add member functions set_list and show_list.
15792 * cli/cli-style.c (class cli_style_option): Update accordingly.
15793 (style_set_list): Move to file scope.
15794 (style_show_list): Likewise.
15795 (set_style): Call help_list.
15796 (show_style): Call cmd_show_list.
15797 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15798 Update to use the new macro.
15799
60a90376
JB
158002019-10-12 Joel Brobecker <brobecker@adacore.com>
15801
15802 * ada-lang.c (_initialize_ada_language): Expand the help text
15803 for the "catch exception" command.
15804
9d7c67bf
PW
158052019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15806
15807 * symtab.c (matching_obj_sections): Initialize obj,
15808 declare it closer to its usage.
15809
7cf47dc4
TT
158102019-01-10 Tom Tromey <tom@tromey.com>
15811
15812 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15813 (basic_inf_threads_range): Remove.
15814 (inf_threads_range, inf_non_exited_threads_range)
15815 (safe_inf_threads_range): Use next_adapter.
15816
d3cb6808
KS
158172019-01-10 Keith Seitz <keiths@redhat.com>
15818
15819 PR gdb/23712
15820 PR symtab/23010
15821 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15822 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15823
63a20375
KS
158242019-01-10 Keith Seitz <keiths@redhat.com>
15825
15826 PR gdb/23712
15827 PR symtab/23010
15828 * dictionary.c (pending_to_vector): Remove.
15829 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15830 Remove _1 suffix, replacing functions of the same name. Update
15831 all callers.
15832 (dict_create_hashed, dict_create_hashed_expandable)
15833 (dict_create_linear, dict_create_linear_expandable, dict_free)
15834 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15835 Make functions static.
15836
b026f593
KS
158372019-01-10 Keith Seitz <keiths@redhat.com>
15838
15839 PR gdb/23712
15840 PR symtab/23010
15841 * dictionary.h (struct dictionary): Replace declaration with
15842 multidictionary.
15843 (dict_create_hashed, dict_create_hashed_expandable)
15844 (dict_create_linear, dict_create_linear_expandable)
15845 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15846 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15847 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15848 taking multidictionary argument.
15849 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15850 * block.h (struct block) <dict>: Change to multidictionary
15851 and rename `multidict'.
15852 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15853 symmisc.c: Update all dictionary references to multidictionary.
15854
c7748ee9
KS
158552019-01-10 Keith Seitz <keiths@redhat.com>
15856
15857 PR gdb/23712
15858 PR symtab/23010
15859 * dictionary.c: Include unordered_map.
15860 (pending_to_vector): New function.
15861 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15862 Rewrite the non-"_1" functions to take vector instead
15863 of linked list.
15864 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15865 "new" _1 versions of the same name.
15866 (multidictionary): Define.
15867 (std::hash<enum language): New definition.
15868 (collate_pending_symbols_by_language, mdict_create_hashed)
15869 (mdict_create_hashed_expandable, mdict_create_linear)
15870 (mdict_create_linear_expandable, mdict_free)
15871 (find_language_dictionary, create_new_language_dictionary)
15872 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15873 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15874 (mdict_size, mdict_empty): New functions.
15875 * dictionary.h (mdict_iterator): Define.
15876
67aa1f3c
PA
158772019-01-10 Pedro Alves <palves@redhat.com>
15878
15879 * breakpoint.c (read_uploaded_action)
15880 (create_tracepoint_from_upload): Adjust to use
15881 gdb::unique_xmalloc_ptr.
15882 * ctf.c (ctf_write_uploaded_tp):
15883 (SET_ARRAY_FIELD): Use emplace_back.
15884 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15885 * tracefile-tfile.c (tfile_write_uploaded_tp):
15886 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15887 gdb::unique_xmalloc_ptr.
15888 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15889 at_string, cond_string, cmd_strings>: Replace char pointers
15890 with gdb::unique_xmalloc_ptr.
15891
2f667667
PA
158922019-01-10 Pedro Alves <palves@redhat.com>
15893
15894 * solib-target.c (library_list_start_library): Don't xstrdup name.
15895
36cb7237
PA
158962019-01-10 Pedro Alves <palves@redhat.com>
15897
15898 * mdebugread.c (parse_partial_symbols): Use
15899 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15900
da584958
AB
159012019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15902
15903 * linux-fork.c (scoped_switch_fork_info)
15904 <~scoped_switch_fork_info>: Fix incorrect variable name.
15905
1ef8573c
AB
159062019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15907
15908 * linux-fork.c (scoped_switch_fork_info)
15909 <scoped_switch_fork_info>: Make explicit.
15910 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15911
8d7bcccb
TT
159122019-01-10 Tom Tromey <tom@tromey.com>
15913
15914 * objfiles.h (objfile::reset_psymtabs): Update.
15915 * objfiles.c (objfile::objfile): Update.
15916 * psymtab.h (psymtab_storage::obstack): Update.
15917 (psymtab_storage::m_obstack): Use gdb::optional.
15918 (class psymtab_storage): Update comment. Remove objfile
15919 parameter.
15920 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15921
b596a3c7
TT
159222019-01-10 Tom Tromey <tom@tromey.com>
15923
15924 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15925 <free_psymtabs>: Now private.
15926 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15927 (allocate_psymtab): Use new method.
15928
a9342b62
TT
159292019-01-10 Tom Tromey <tom@tromey.com>
15930
15931 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15932 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15933 * mdebugread.c (parse_partial_symbols): Use
15934 allocate_dependencies.
15935 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15936 allocate_dependencies.
15937 (process_psymtab_comp_unit_reader)
15938 (build_type_psymtab_dependencies): Likewise.
15939 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15940
5af70966
TT
159412019-01-10 Tom Tromey <tom@tromey.com>
15942
15943 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15944 PSYMBOL_SET_LANGUAGE.
15945 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15946
5923a04c
TT
159472019-01-10 Tom Tromey <tom@tromey.com>
15948
15949 * psymtab.h (psymtab_storage::obstack): New method.
15950 <m_obstack>: Rename from obstack; now private.
15951 * psymtab.c (psymtab_storage): Update.
15952 * dwarf2read.c (create_addrmap_from_index)
15953 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15954 Update.
15955
6d6a12bf
TT
159562019-01-10 Tom Tromey <tom@tromey.com>
15957
15958 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15959 * objfiles.h (objfile::reset_psymtabs): New method.
15960
d320c2b5
TT
159612019-01-10 Tom Tromey <tom@tromey.com>
15962
15963 * symmisc.c (print_symbol_bcache_statistics): Update.
15964 (print_objfile_statistics): Update.
15965 * symfile.c (reread_symbols): Update.
15966 * psymtab.h (class psymtab_storage): New.
15967 * psymtab.c (psymtab_storage): New constructor.
15968 (~psymtab_storage): New destructor.
15969 (require_partial_symbols): Update.
15970 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15971 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15972 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15973 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15974 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15975 (start_psymtab_common, end_psymtab_common)
15976 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15977 (allocate_psymtab): Update.
15978 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15979 Update.
15980 (dump_psymtab_addrmap, maintenance_print_psymbols)
15981 (maintenance_check_psymtabs): Update.
15982 (class objfile_psymtabs): Move to objfiles.h.
15983 * psympriv.h (discard_psymtab): Now inline.
15984 (psymtab_discarder::psymtab_discarder): Update.
15985 (psymtab_discarder::~psymtab_discarder): Update.
15986 (ALL_OBJFILE_PSYMTABS): Rewrite.
15987 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15988 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15989 Remove fields.
15990 <partial_symtabs>: New field.
15991 (class objfile_psymtabs): Move from psymtab.h. Update.
15992 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15993 psymbol_cache.
15994 (objfile::~objfile): Don't destroy psymbol_cache.
15995 * mdebugread.c (parse_partial_symbols): Update.
15996 * dwarf2read.c (create_addrmap_from_index)
15997 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15998 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15999 (add_partial_subprogram, dwarf2_ranges_read): Update.
16000 * dwarf-index-write.c (write_address_map)
16001 (write_one_signatured_type, recursively_write_psymbols)
16002 (class debug_names, class debug_names, write_psymtabs_to_index):
16003 Update.
16004
1d94a5a3
TT
160052019-01-10 Tom Tromey <tom@tromey.com>
16006
16007 * symtab.h (SYMBOL_SET_NAMES): Update.
16008 (symbol_set_names): Update.
16009 (MSYMBOL_SET_NAMES): Update.
16010 * symtab.c (symbol_set_names): Change argument to be an
16011 objfile_per_bfd_storage.
16012 * psymtab.c (add_psymbol_to_bcache): Update.
16013 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16014
0f14768a
TT
160152019-01-10 Tom Tromey <tom@tromey.com>
16016
16017 * symtab.c (create_demangled_names_hash): Change argument to be an
16018 objfile_per_bfd_storage.
16019 (symbol_set_names): Update.
16020
6eee24ce
TT
160212019-01-10 Tom Tromey <tom@tromey.com>
16022
16023 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16024 init_psymbol_list.
16025 * psymtab.c (init_psymbol_list): Do nothing if already called.
16026 * psympriv.h (init_psymbol_list): Add comment.
16027 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16028 init_psymbol_list.
16029 * dbxread.c (dbx_symfile_read): Unconditionally call
16030 init_psymbol_list.
16031
75aedd27
TT
160322019-01-10 Tom Tromey <tom@tromey.com>
16033
16034 * xcoffread.c (scan_xcoff_symtab): Update.
16035 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16036 "where".
16037 * mdebugread.c (parse_partial_symbols)
16038 (handle_psymbol_enumerators): Update.
16039 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16040 * dbxread.c (read_dbx_symtab): Update.
16041 * psympriv.h (psymbol_placement): New enum.
16042 (add_psymbol_to_list): Update.
16043
939652a5
TT
160442019-01-10 Tom Tromey <tom@tromey.com>
16045
16046 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16047 static_psymbols parameters.
16048 (scan_xcoff_symtab): Update.
16049 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16050 static_psymbols parameters.
16051 * psympriv.h (start_psymtab_common): Update.
16052 * mdebugread.c (parse_partial_symbols): Update.
16053 * dwarf2read.c (create_partial_symtab): Update.
16054 * dbxread.c (read_dbx_symtab): Update.
16055 (start_psymtab): Remove global_psymbols and static_psymbols
16056 parameters.
16057
baa62830
TT
160582019-01-10 Tom Tromey <tom@tromey.com>
16059
16060 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16061 * psymtab.c (allocate_psymtab): Add comment.
16062 * psympriv.h (allocate_psymtab): Add comment.
16063 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16064 initializations.
16065 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16066
0e8f53ba
TT
160672019-01-10 Tom Tromey <tom@tromey.com>
16068
16069 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16070 Don't declare.
16071 * mipsread.c: Include mdebugread.h.
16072 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16073 Declare.
16074 * elfread.c: Include mdebugread.h.
16075
b22a7c6a
TT
160762019-01-09 Tom Tromey <tom@tromey.com>
16077
16078 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16079 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16080 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16081 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16082 (psym_lookup_symbol, psym_find_last_source_symtab)
16083 (psym_forget_cached_source_info, psym_print_stats)
16084 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16085 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16086 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16087 (psym_find_compunit_symtab_by_address)
16088 (maintenance_print_psymbols, maintenance_info_psymtabs)
16089 (maintenance_check_psymtabs): Use ranged for.
16090 * psymtab.h (class objfile_psymtabs): New.
16091 (require_partial_symbols): Return objfile_psymtabs.
16092 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16093
3b9d3ac2
TT
160942019-01-09 Tom Tromey <tom@tromey.com>
16095
16096 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16097 (find_pc_mapped_section, list_overlays_command)
16098 (map_overlay_command, unmap_overlay_command)
16099 (simple_overlay_update): Use all_objfiles.
16100 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16101 * printcmd.c (info_symbol_command): Use all_objfiles.
16102 * objfiles.h (ALL_OBJSECTIONS): Remove.
16103 * maint.c (maintenance_translate_address): Use all_objfiles.
16104 * gcore.c (gcore_create_callback): Use all_objfiles.
16105 (objfile_find_memory_regions): Likewise.
16106
8b31193a
TT
161072019-01-09 Tom Tromey <tom@tromey.com>
16108
16109 * symtab.c (find_line_symtab, info_sources_command)
16110 (make_source_files_completion_list): Use objfile_compunits.
16111 * source.c (select_source_symtab): Use objfile_compunits.
16112 * objfiles.h (struct objfile): Update comment.
16113 (ALL_OBJFILES): Remove.
16114 (ALL_FILETABS): Remove.
16115 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16116 objfile_compunits.
16117
d5da8b3c
TT
161182019-01-09 Tom Tromey <tom@tromey.com>
16119
16120 * symmisc.c (print_objfile_statistics, dump_objfile)
16121 (maintenance_print_symbols): Use compunit_filetabs.
16122 * source.c (forget_cached_source_info_for_objfile): Use
16123 compunit_filetabs.
16124 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16125 (ALL_FILETABS): Use compunit_filetabs.
16126 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16127 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16128
5accd1a0
TT
161292019-01-09 Tom Tromey <tom@tromey.com>
16130
16131 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16132 (compunit_filetabs): New.
16133 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16134 compunit_filetabs.
16135 (info_sources_command, make_source_files_completion_list): Remove
16136 declaration.
16137 * symmisc.c (print_objfile_statistics, dump_objfile)
16138 (maintenance_print_symbols): Remove declaration.
16139 (maintenance_info_symtabs): Use compunit_filetabs.
16140 (maintenance_info_line_tables): Likewise.
16141 * source.c (select_source_symtab): Change local variable name.
16142 (forget_cached_source_info_for_objfile): Remove declaration.
16143 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16144 * objfiles.c (objfile_relocate1): Remove declaration.
16145 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16146 declaration.
16147 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16148 * coffread.c (coff_symtab_read): Remove declaration.
16149 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16150 compunit_filetabs.
16151
d8aeb77f
TT
161522019-01-09 Tom Tromey <tom@tromey.com>
16153
16154 * symtab.c (lookup_objfile_from_block)
16155 (find_pc_sect_compunit_symtab, search_symbols)
16156 (default_collect_symbol_completion_matches_break_on): Use
16157 objfile_compunits.
16158 * objfiles.h (ALL_COMPUNITS): Remove.
16159 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16160 * cp-support.c (add_symbol_overload_list_qualified): Use
16161 objfile_compunits.
16162 * ada-lang.c (ada_collect_symbol_completion_matches)
16163 (ada_add_global_exceptions): Use objfile_compunits.
16164
592553c4
TT
161652019-01-09 Tom Tromey <tom@tromey.com>
16166
16167 * source.c (select_source_symtab)
16168 (forget_cached_source_info_for_objfile): Remove declaration.
16169 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16170 declaration.
16171 * maint.c (count_symtabs_and_blocks): Remove declaration.
16172 * cp-support.c (add_symbol_overload_list_qualified): Remove
16173 declaration.
16174 * coffread.c (coff_symtab_read): Remove declaration.
16175 * symtab.c (lookup_symbol_in_objfile_symtabs)
16176 (basic_lookup_transparent_type_1): Use objfile_compunits.
16177 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16178 (info_sources_command, search_symbols)
16179 (default_collect_symbol_completion_matches_break_on)
16180 (make_source_files_completion_list): Remove declaration.
16181 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16182 (ada_collect_symbol_completion_matches)
16183 (ada_add_global_exceptions): Remove declaration.
16184 * linespec.c (iterate_over_all_matching_symtabs): Use
16185 objfile_compunits.
16186 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16187 (class objfile_compunits): New.
16188 (ALL_COMPUNITS): Use objfile_compunits.
16189 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16190 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16191 objfile_compunits.
16192 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16193
5325b9bf
TT
161942019-01-09 Tom Tromey <tom@tromey.com>
16195
16196 * symtab.c (search_symbols)
16197 (default_collect_symbol_completion_matches_break_on): Use
16198 objfile_msymbols.
16199 * ada-lang.c (ada_lookup_simple_minsym)
16200 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16201 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16202 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16203 objfile_msymbols.
16204 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16205 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16206 * objc-lang.c (find_methods): Use objfile_msymbols.
16207 (info_selectors_command, info_classes_command): Likewise.
16208 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16209 * objfiles.h (class objfile_msymbols): New.
16210 (ALL_OBJFILE_MSYMBOLS): Remove.
16211 (ALL_MSYMBOLS): Remove.
16212
cac85af2
TT
162132019-01-09 Tom Tromey <tom@tromey.com>
16214
16215 * common/next-iterator.h (next_adapter): Add Iterator template
16216 parameter.
16217 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16218 (class all_objfiles_safe): New.
16219 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16220 * objfiles.c (put_objfile_before): Update comment.
16221 (add_separate_debug_objfile): Likewise.
16222 (free_all_objfiles): Use all_objfiles_safe.
16223 (objfile_purge_solibs): Likewise.
16224
aed57c53
TT
162252019-01-09 Tom Tromey <tom@tromey.com>
16226
16227 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16228 (expand_symtab_containing_pc, lookup_static_symbol)
16229 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16230 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16231 all_objfiles.
16232 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16233 * breakpoint.c (create_overlay_event_breakpoint)
16234 (create_longjmp_master_breakpoint)
16235 (create_std_terminate_master_breakpoint)
16236 (create_exception_master_breakpoint): Use all_objfiles.
16237 * linux-thread-db.c (try_thread_db_load_from_pdir)
16238 (has_libpthread): Use all_objfiles.
16239 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16240 * linespec.c (iterate_over_all_matching_symtabs)
16241 (search_minsyms_for_name): Use all_objfiles.
16242 * maint.c (maintenance_info_sections): Use all_objfiles.
16243 * main.c (captured_main_1): Use all_objfiles.
16244 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16245 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16246 * guile/scm-pretty-print.c
16247 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16248 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16249 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16250 (maintenance_print_msymbols): Use all_objfiles.
16251 * source.c (select_source_symtab): Use all_objfiles.
16252 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16253 * symfile.c (remove_symbol_file_command)
16254 (expand_symtabs_matching, map_symbol_filenames): Use
16255 all_objfiles.
16256 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16257 all_objfiles.
16258 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16259 * objc-lang.c (find_methods): Use all_objfiles.
16260 * objfiles.c (have_partial_symbols, have_full_symbols)
16261 (have_minimal_symbols, qsort_cmp)
16262 (default_iterate_over_objfiles_in_search_order): Use
16263 all_objfiles.
16264 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16265 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16266 (maintenance_check_psymtabs): Use all_objfiles.
16267 (ALL_PSYMTABS): Remove.
16268 * compile/compile-object-run.c (do_module_cleanup): Use
16269 all_objfiles.
16270 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16271 * cp-support.c (add_symbol_overload_list_qualified): Use
16272 all_objfiles.
16273 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16274 Use all_objfiles.
16275 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16276 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16277 all_objfiles.
16278 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16279 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16280 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16281 Uses all_objfiles.
16282 * solib.c (solib_read_symbols): Use all_objfiles
16283
99d89cde
TT
162842019-01-09 Tom Tromey <tom@tromey.com>
16285
16286 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16287 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16288 all_objfiles.
16289 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16290 * symmisc.c (print_symbol_bcache_statistics)
16291 (print_objfile_statistics, maintenance_print_objfiles)
16292 (maintenance_info_symtabs, maintenance_check_symtabs)
16293 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16294 all_objfiles.
16295 * source.c (forget_cached_source_info): Use all_objfiles.
16296 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16297 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16298 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16299 * objfiles.c (update_section_map): Use all_objfiles.
16300 (shared_objfile_contains_address_p): Likewise.
16301 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16302 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16303
21708325
TT
163042019-01-09 Tom Tromey <tom@tromey.com>
16305
16306 * common/next-iterator.h: New file.
16307 * objfiles.h (class all_objfiles): New.
16308 (struct objfile_iterator): New.
16309
669e09f6
PW
163102019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16311
16312 * NEWS: Move the description of the changed "frame", "select-frame",
16313 and "info frame" commands to the Changed commands section.
16314
041be526
SM
163152019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16316
16317 * gdbtypes.c (check_stub_method_group): Remove handling of old
16318 mangling schemes.
16319 * linespec.c (find_methods): Likewise.
16320 * stabsread.c (read_member_functions): Likewise.
16321 * valops.c (search_struct_method): Likewise.
16322 (value_struct_elt_for_reference): Likewise.
16323 * NEWS: Mention this change.
16324
0e2a2133
AB
163252019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16326
16327 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16328 print_source_lines.
16329 * source.c (print_source_lines_base): Update line number check.
16330 (print_source_lines): New function.
16331 (source_lines_range::source_lines_range): New function.
16332 * source.h (class source_lines_range): New class.
16333 (print_source_lines): New declaration.
16334
1055a3b4
PW
163352019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16336
16337 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16338
cfeadda5
TT
163392019-01-08 Tom Tromey <tom@tromey.com>
16340 Simon Marchi <simon.marchi@ericsson.com>
16341
16342 PR gdb/24060
16343 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16344 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16345 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16346 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16347 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16348 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16349
583068ca
AB
163502019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16351
16352 * source.c (select_source_symtab): Move header comment to
16353 declaration in source.h.
16354 (forget_cached_source_info_for_objfile): Likewise.
16355 (forget_cached_source_info): Likewise.
16356 (identify_source_line): Likewise.
16357 * source.h (identify_source_line): Move declaration from symtab.h
16358 and add comment from source.c
16359 (print_source_lines): Likewise.
16360 (forget_cached_source_info_for_objfile): Likewise.
16361 (forget_cached_source_info): Likewise.
16362 (select_source_symtab): Likewise.
16363 (enum print_source_lines_flag): Move definition from symtab.h.
16364 * symtab.h (identify_source_line): Move declaration to source.h.
16365 (print_source_lines): Likewise.
16366 (forget_cached_source_info_for_objfile): Likewise.
16367 (forget_cached_source_info): Likewise.
16368 (select_source_symtab): Likewise.
16369 (enum print_source_lines_flag): Move definition to source.h.
16370 * tui/tui-hooks.c: Add 'source.h' include.
16371
ec98a4ad
AB
163722019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16373
16374 * source.c (print_source_lines_base): Handle requests to print
16375 reverse line number sequences, and guard against empty lines
16376 string.
16377
62ea19c1
AB
163782019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16379
16380 * source.c (print_source_lines_base): Fix skip of '\r' if next
16381 character is '\n'.
16382
9d30e1fd
TT
163832019-01-06 Tom Tromey <tom@tromey.com>
16384
16385 * c-exp.y (struct c_parse_state) <macro_original_text,
16386 expansion_obstack>: New member.
16387 (macro_original_text, expansion_obstack): Remove globals.
16388 (scan_macro_expansion, scanning_macro_expansion)
16389 (finished_macro_expansion): Update.
16390 (scan_macro_cleanup): Remove.
16391 (yylex, c_parse): Update.
16392
c65bac38
TT
163932019-01-06 Tom Tromey <tom@tromey.com>
16394
16395 * c-exp.y (struct c_parse_state) <strings>: New member.
16396 (operator_stoken): Update.
16397
02e12e38
TT
163982019-01-06 Tom Tromey <tom@tromey.com>
16399
16400 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16401 (union type_stack_elt) <typelist_val>: Now a pointer to
16402 std::vector.
16403 (type_stack_cleanup): Don't declare.
16404 (push_typelist): Update.
16405 * parse.c (pop_typelist): Return a std::vector.
16406 (push_typelist): Take a std::vector.
16407 (follow_types): Update. Do not free args.
16408 (type_stack_cleanup): Remove.
16409 * c-exp.y (struct c_parse_state): New.
16410 (cpstate): New global.
16411 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16412 (nonempty_typelist): Update.
16413 (func_mod): Create a new vector.
16414 (c_parse): Create a c_parse_state.
16415 (check_parameter_typelist): Do not delete params.
16416 (function_method): Update. Do not delete type_list.
16417
f097f5ad
TT
164182019-01-06 Tom Tromey <tom@tromey.com>
16419
16420 PR gdb/28155:
16421 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16422 check_typedef.
16423 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16424 (print_return_value): Likewise.
16425
d2adf9f1
TT
164262019-01-05 Tom Tromey <tom@tromey.com>
16427
16428 * contrib/cleanup_check.py: Remove.
16429 * contrib/gcc-with-excheck: Remove.
16430 * contrib/exsummary.py: Remove.
16431 * contrib/excheck.py: Remove.
16432
2eab46b1
JB
164332019-01-05 Joel Brobecker <brobecker@adacore.com>
16434
16435 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16436 NULL. Initialize tpprev to NULL instead of assigning it
16437 to NULL on the next statement.
16438 * windows-nat.c (windows_delete_thread): Remove check for
16439 main_thread_id before printing thread exit notifications.
16440 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16441 Remove thread ID check against main_thread_id.
16442 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16443 windows_delete_thread.
16444 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16445
48c5e7e2
TT
164462019-01-04 Tom Tromey <tom@tromey.com>
16447
16448 * compile/compile.c (_initialize_compile): Use upper case for
16449 metasyntactic variables.
16450 * symmisc.c (_initialize_symmisc): Use upper case for
16451 metasyntactic variables.
16452 * psymtab.c (_initialize_psymtab): Use upper case for
16453 metasyntactic variables.
16454 * demangle.c (demangle_command): Use upper case for metasyntactic
16455 variables.
16456 (_initialize_demangler): Likewise.
16457 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16458 variables.
16459
986041cd
TT
164602019-01-03 Tom Tromey <tom@tromey.com>
16461
16462 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16463
7c711119
TT
164642019-01-03 Tom Tromey <tom@tromey.com>
16465
16466 * python/py-symtab.c (salpy_str): Update.
16467 (struct salpy_sal_object) <symtab>: Now a PyObject.
16468 (salpy_dealloc): Update.
16469 (del_objfile_sal): Use gdbpy_ref.
16470
1b20edf0
TT
164712019-01-03 Tom Tromey <tom@tromey.com>
16472
16473 * python/py-type.c (convert_field): Use new_reference. Return
16474 gdbpy_ref.
16475 (make_fielditem): Return gdbpy_ref.
16476 (typy_fields): Update.
16477 (typy_getitem): Update.
16478 (field_name): Return gdbpy_ref. Use new_reference.
16479 (typy_iterator_iternext): Update.
16480
ea41325b
TT
164812019-01-03 Tom Tromey <tom@tromey.com>
16482
16483 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16484
2a3c71d6
TT
164852019-01-03 Tom Tromey <tom@tromey.com>
16486
16487 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16488 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16489 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16490 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16491 (pspy_set_type_printers): Likewise.
16492 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16493 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16494 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16495 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16496 (objfpy_set_type_printers): Likewise.
16497
5c329e6a
TT
164982019-01-03 Tom Tromey <tom@tromey.com>
16499
16500 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16501 (gdbpy_print_stack): Use gdbpy_err_fetch.
16502 * python/python-internal.h (class gdbpy_err_fetch): New class.
16503 (class gdbpy_enter) <m_error_type, m_error_value,
16504 m_error_traceback>: Remove.
16505 <m_error>: New member.
16506 (gdbpy_exception_to_string): Don't declare.
16507 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16508 * python/py-value.c (convert_value_from_python): Use
16509 gdbpy_err_fetch.
16510 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16511 gdbpy_exception_to_string.
16512 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16513 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16514 gdbpy_err_fetch.
16515
169bb27b
AB
165162019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16517
16518 * linux-nat.c (delete_lwp_cleanup): Delete.
16519 (struct lwp_deleter): New struct.
16520 (lwp_info_up): New typedef.
16521 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16522 lwp_info_up.
16523
a07c8880
AB
165242019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16525
16526 * linux-fork.c (class scoped_switch_fork_info): New class.
16527 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16528
26089c49
AB
165292019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16530
16531 * valops.c (find_overload_match): Remove use of null_cleanup, and
16532 calls to do_cleanups.
16533
06d3e5b0
AB
165342019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16535
16536 * compile/compile-cplus-types.c
16537 (compile_cplus_instance::decl_name): Handle changes to
16538 cp_func_name.
16539 * cp-support.c (cp_func_name): Update header comment, update
16540 return type.
16541 * cp-support.h (cp_func_name): Update return type in declaration.
16542 * valops.c (find_overload_match): Move temp_func local to top
16543 level of function and change its type. Use temp_func to hold and
16544 delete temporary string obtained from cp_func_name.
16545
66644cd3
AB
165462019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16547
16548 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16549 gdb::char_vector, remove cleanup, and update uses of `msg`.
16550
592d8c0a
JW
165512019-01-03 Jim Wilson <jimw@sifive.com>
16552
16553 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16554
c55d06ec
TT
165552019-01-02 Tom Tromey <tom@tromey.com>
16556
16557 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16558 (tdesc_parse_xml): Remove cleanups.
16559 * target-descriptions.h (make_cleanup_free_target_description):
16560 Don't declare.
16561 (target_desc_deleter): New struct.
16562 (target_desc_up): New typedef.
16563 * target-descriptions.c (target_desc_deleter::operator()): Rename
16564 from free_target_description.
16565 (make_cleanup_free_target_description): Remove.
16566
3a6ae42d
TT
165672019-01-02 Tom Tromey <tom@tromey.com>
16568
16569 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16570 constructor, destructor.
16571 (linespec_parser): Remove typedef.
16572 (~linespec_parser): Rename from linespec_parser_delete.
16573 (linespec_lex_to_end, linespec_complete_label)
16574 (linespec_complete): Update.
16575 (decode_line_full): Remove cleanups.
16576 (decode_line_1): Update.
16577
61fd3e73
TT
165782019-01-02 Tom Tromey <tom@tromey.com>
16579
16580 * python/python-internal.h (inferior_to_inferior_object): Change
16581 return type.
16582 * python/py-exitedevent.c (create_exited_event_object): Update.
16583 * python/py-inferior.c (inferior_to_inferior_object): Return
16584 gdbpy_ref.
16585 (python_new_inferior, python_inferior_deleted)
16586 (thread_to_thread_object, delete_thread_object)
16587 (build_inferior_list, gdbpy_selected_inferior): Update.
16588 * python/py-infthread.c (create_thread_object): Update. Also fail
16589 if inferior_to_inferior_object fails.
16590
d20172fc
SM
165912019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16592
16593 * inferior.h (class inferior) <displaced_step_state>: New field.
16594 * infrun.h (struct displaced_step_state): Move here from
16595 infrun.c. Initialize fields, add constructor.
16596 <inf>: Remove field.
16597 <reset>: New method.
16598 * infrun.c (struct displaced_step_inferior_state): Move to
16599 infrun.h.
16600 (displaced_step_inferior_states): Remove.
16601 (get_displaced_stepping_state): Adust.
16602 (displaced_step_in_progress_any_inferior): Adjust.
16603 (displaced_step_in_progress_thread): Adjust.
16604 (displaced_step_in_progress): Adjust.
16605 (add_displaced_stepping_state): Remove.
16606 (get_displaced_step_closure_by_addr): Adjust.
16607 (remove_displaced_stepping_state): Remove.
16608 (infrun_inferior_exit): Call displaced_step_state.reset.
16609 (use_displaced_stepping): Don't check for NULL.
16610 (displaced_step_prepare_throw): Call
16611 get_displaced_stepping_state.
16612 (displaced_step_fixup): Don't check for NULL.
16613 (prepare_for_detach): Don't check for NULL.
16614
e3319240
PW
166152019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16616
16617 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16618 in case of call that did not complete.
16619
5d36dfb9
AU
166202019-01-02 Andrey Utkin <autkin@undo.io>
16621
16622 * symfile.c (find_separate_debug_file): Fix search of debug files for
16623 remote debuggee.
16624
8833fbf0
TT
166252019-01-02 Tom Tromey <tom@tromey.com>
16626
16627 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16628 indentation.
16629 * python/py-frame.c (frapy_older): Remove cast.
16630 (frapy_newer): Likewise.
16631 * python/py-breakpoint.c (local_setattro): Remove cast.
16632 * python/py-arch.c (archpy_name): Remove local variable.
16633 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16634
4ada3dfd
JB
166352019-01-02 Joel Brobecker <brobecker@adacore.com>
16636
16637 * unittests/basic_string_view/element_access/char/empty.cc:
16638 Fix year range in copyright header.
16639
113b7b81
AB
166402019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16641
16642 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16643 Delete.
16644 <operator==>: Update with for removed field.
16645 <hash>: Likewise.
16646 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16647 <isa_features>: ...this.
16648 <abi_features>: New field.
16649 (riscv_isa_flen): Update comment.
16650 (riscv_abi_xlen): New declaration.
16651 (riscv_abi_flen): New declaration.
16652 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16653 isa_features.
16654 (riscv_abi_xlen): New function.
16655 (riscv_isa_flen): Update to get answer from isa_features.
16656 (riscv_abi_flen): New function.
16657 (riscv_has_fp_abi): Update to get answer from abi_features.
16658 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16659 xlen and flen.
16660 (riscv_call_info) <xlen, flen>: Update comment.
16661 (riscv_call_arg_struct): Remove invalid assertions
16662 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16663 is removed.
16664 (riscv_gdbarch_init): Gather isa features and abi features
16665 separately, ensure both match on the gdbarch when reusing an old
16666 gdbarch. Relax an error check to allow 32-bit abi float to run on
16667 a target with 64-bit float hardware.
16668
b18ca514
PW
166692019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16670
16671 * source.c (search_command_helper): Stop reverse search
16672 when line 1 has been searched.
16673
ec70d8db
PW
166742019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16675
16676 * record-full.c (record_full_base_target::close): Rewrite
16677 record_full_core_buf_list free logic.
16678
5b38f9c1
PW
166792019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16680
16681 * break-catch-syscall.c (print_one_catch_syscall): xfree
16682 the last text.
16683
66d91b39
JB
166842019-01-01 Joel Brobecker <brobecker@adacore.com>
16685
16686 * top.c (print_gdb_version): Update Copyright year in version
16687 message.
16688
42a4f53d
JB
166892019-01-01 Joel Brobecker <brobecker@adacore.com>
16690
16691 Update copyright year range in all GDB files.
16692
7e955d83 166932019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16694
5bbd631d 16695 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16696
5bbd631d 16697For older changes see ChangeLog-2018.
c906108c
SS
16698\f
16699Local Variables:
16700mode: change-log
16701left-margin: 8
16702fill-column: 74
16703version-control: never
57da7796 16704coding: utf-8
c906108c 16705End:
5bbd631d 16706
This page took 3.288656 seconds and 4 git commands to generate.