Introduce basic_safe_range
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
13bff726
TT
12019-12-12 Tom Tromey <tom@tromey.com>
2
3 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
4 second constructor.
5 (basic_safe_range): New class.
6
deeafabb
TT
72019-12-12 Tom Tromey <tom@tromey.com>
8
9 * progspace.c (program_space::multi_objfile_p): New method.
10 * printcmd.c (info_symbol_command): Update.
11 * maint.c (maintenance_translate_address): Update.
12 * objfiles.h (MULTI_OBJFILE_P): Remove.
13 * progspace.h (struct program_space) <multi_objfile_p>: New
14 method.
15
23452926
TT
162019-12-12 Tom Tromey <tom@tromey.com>
17
18 * progspace.h (struct program_space) <remove_objfile>: Declare.
19 * progspace.c (program_space::remove_objfile): New method.
20 * objfiles.c (unlink_objfile): Remove.
21 (objfile::unlink): Call remove_objfile.
22 (objfile): Don't call unlink_objfile.
23
7cac64af
TT
242019-12-12 Tom Tromey <tom@tromey.com>
25
26 * progspace.h (struct program_space) <add_objfile>: Declare
27 method.
28 * progspace.c (program_space::add_objfile): New method.
29 * objfiles.c (~objfile): Don't unlink objfile.
30 (put_objfile_before): Remove.
31 (add_separate_debug_objfile): Don't call put_objfile_before.
32 (objfile::make): Call add_objfile. Set new_objfiles_available on
33 the per-program-space data.
34
268e4f09
TT
352019-12-12 Tom Tromey <tom@tromey.com>
36
37 * symfile.c (syms_from_objfile_1): Use objfile_up.
38 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
39 method.
40 (reread_symbols): Use objfile_up.
41 * solib.c (update_solib_list, reload_shared_libraries_1): Call
42 unlink method.
43 * objfiles.h (struct objfile) <~objfile>: Now private.
44 <unlink>: New method.
45 (struct objfile_deleter): New.
46 (objfile_up): New typedef.
47 * objfiles.c (objfile::unlink): New method.
48 (free_objfile_separate_debug, free_all_objfiles)
49 (objfile_purge_solibs): Use it.
50 * jit.c (jit_unregister_code): Remove.
51 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
52 objfile.
53 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
54 objfile.
55 * compile/compile-object-load.c (compile_object_load): Use
56 objfile_up.
57
f65fe570
TT
582019-12-12 Tom Tromey <tom@tromey.com>
59
60 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
61 objfile::make.
62 * objfiles.h (struct objjfile) <make>: No longer inline.
63 (add_separate_debug_objfile): Don't declare.
64 * objfiles.c (add_separate_debug_objfile): Now static.
65 (objfile::make): Move from objfiles.h. Call
66 add_separate_debug_objfile. Add "parent" parameter.
67
bda13cdc
TT
682019-12-12 Tom Tromey <tom@tromey.com>
69
70 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
71 * objfiles.h (struct objfile): Make constructor private.
72 <make>: New static method.
73 * jit.c (jit_object_close_impl): Update.
74
7190276c
SM
752019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
78 gdb::byte_vector.
79
d61df897
TT
802019-12-12 Tom Tromey <tromey@adacore.com>
81
82 * xml-support.c (xml_fetch_content_from_file): Don't call
83 malloc_failure.
84 * utils.h (class gdb_argv): Remove malloc_failure comment.
85 * utils.c (gdb_argv::reset): Don't call malloc_failure.
86
db3ad2f0
TT
872019-12-12 Tom Tromey <tromey@adacore.com>
88
89 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
90 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
91 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
92 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
93 * riscv-ravenscar-thread.c: New file.
94 * riscv-ravenscar-thread.h: New file.
95 * riscv-tdep.c (riscv_gdbarch_init): Call
96 register_riscv_ravenscar_ops.
97
2ffe5b9c
TT
982019-12-12 Tom Tromey <tromey@adacore.com>
99
100 * gdbsupport/thread-pool.c (set_thread_name): Use
101 ATTRIBUTE_UNUSED.
102
39f34d7b
LM
1032019-12-12 Luis Machado <luis.machado@linaro.org>
104
105 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
106 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
107 macros.
108
d4eeccfe
TT
1092019-12-11 Tom Tromey <tom@tromey.com>
110
111 * tui/tui-win.c (tui_set_win_height_command): Call
112 tui_adjust_window_height.
113 (tui_adjust_win_heights, new_height_ok): Remove.
114 * tui/tui-layout.h (tui_adjust_window_height): Declare.
115 * tui/tui-layout.c (tui_adjust_window_height): New function.
116
3d979945
TT
1172019-12-11 Tom Tromey <tom@tromey.com>
118
119 * tui/tui-win.c (tui_resize_all): Remove code, call
120 tui_apply_current_layout.
121
2192a9d3
TT
1222019-12-11 Tom Tromey <tom@tromey.com>
123
124 * tui/tui-layout.h (tui_apply_current_layout): Declare.
125 * tui/tui-layout.c (standard_layouts, applied_layout): New
126 globals.
127 (tui_apply_current_layout): New function.
128 (show_layout): Set applied_layout. Call
129 tui_apply_current_layout.
130 (show_source_command, show_disasm_command)
131 (show_source_disasm_command, show_data)
132 (show_source_or_disasm_and_command): Remove.
133 (initialize_layouts): New function.
134 (_initialize_tui_layout): Call initialize_layouts.
135
389e7ddb
TT
1362019-12-11 Tom Tromey <tom@tromey.com>
137
138 * tui/tui-layout.h (class tui_layout_base)
139 (class tui_layout_window, class tui_layout_split): New.
140 * tui/tui-layout.c (tui_get_window_by_name)
141 (tui_layout_window::clone, tui_layout_window::apply)
142 (tui_layout_window::get_sizes, tui_layout_window::add_split)
143 (tui_layout_split::add_window, tui_layout_split::clone)
144 (tui_layout_split::get_sizes)
145 (tui_layout_split::set_weights_from_heights)
146 (tui_layout_split::adjust_size, tui_layout_split::apply): New
147 functions.
148 (tui_layout_split::add_split, tui_layout_split::add_split)
149 (tui_layout_split::set_weights_from_heights)
150 (tui_layout_split::set_weights_from_heights): New functions.
151
fb3184d8
TT
1522019-12-11 Tom Tromey <tom@tromey.com>
153
154 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
155 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
156 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
157 * tui/tui-data.h (struct tui_point): Remove.
158 (struct tui_gen_win_info) <origin>: Remove.
159 <x, y>: New fields.
160 * tui/tui-command.c (tui_cmd_window::resize): Update.
161
dc7ff8a6
TT
1622019-12-11 Tom Tromey <tom@tromey.com>
163
164 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
165 Implement.
166 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
167 Implement.
168 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
169 method.
170 (struct tui_win_info) <min_height>: Implement.
171
1431937b
TT
1722019-12-11 Tom Tromey <tom@tromey.com>
173
174 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
175 (struct tui_win_info) <can_box>: Update.
176
c8ec2f43
TT
1772019-12-11 Tom Tromey <tom@tromey.com>
178
179 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
180 method.
181 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
182 method.
183 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
184 method.
185 (struct tui_win_info) <max_height>: Now override.
186
4decd62b
JB
1872019-12-11 Joel Brobecker <brobecker@adacore.com>
188
189 * NEWS: Create a new section for the next release branch.
190 Rename the section of the current branch, now that it has
191 been cut.
192
d746744e
JB
1932019-12-11 Joel Brobecker <brobecker@adacore.com>
194
195 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
196 * version.in: Bump version to 10.0.50.DATE-git.
197
2e744276
TT
1982019-12-11 Tom Tromey <tromey@adacore.com>
199
200 PR build/25268:
201 * gdbsupport/thread-pool.c (set_thread_name): New function.
202 (thread_pool::set_thread_count): Don't call pthread_setname_np.
203 (thread_pool::thread_function): Call set_thread_name.
204
aac4760f
TT
2052019-12-11 Tom Tromey <tromey@adacore.com>
206
207 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
208 bfd_get_signed_8.
209
d8edc8b7
PW
2102019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
211
212 * NEWS: Document -raw-values option and the related setting commands.
213 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
214 only set it on when /r is given.
215 * valprint.c (value_print_option_defs): New element raw-values.
216 * Makefile.in: Add the new file.
217
cb511130
CB
2182019-12-10 Christian Biesinger <cbiesinger@google.com>
219
220 * gdbsupport/safe-strerror.c: Supress the unused function warning
221 for select_strerror_r.
222
ab7d13f0
CB
2232019-12-10 Christian Biesinger <cbiesinger@google.com>
224
225 * config.in: Regenerate.
226 * configure: Regenerate.
227 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
228 safe_strerror instead of strerror.
229 * gdbsupport/common.m4: Don't check for strerror.
230 * gdbsupport/safe-strerror.c: Support both the glibc version
231 of strerror_r and the XSI version.
232
6c71eb7d
TT
2332019-12-10 Tom Tromey <tromey@adacore.com>
234
235 * ada-typeprint.c (print_choices): Use a single "?".
236 (print_variant_part): Print "?" if the discriminant name
237 is not known.
238
bac7c5cf
GB
2392019-12-10 George Barrett <bob@bob131.so>
240
241 Fix scripted probe breakpoints.
242 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
243 declaration forward.
244 (breakpoint_ops_for_event_location_type)
245 (breakpoint_ops_for_event_location): Add function definitions.
246 (break_command_1, trace_command): Use
247 breakpoint_ops_for_event_location.
248 * breakpoint.h (breakpoint_ops_for_event_location): Add function
249 declarations.
250 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
251 breakpoint_ops_for_event_location.
252 * python/py-breakpoint.c (bppy_init): Use
253 breakpoint_ops_for_event_location.
254
330f1d38
TBA
2552019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
256
257 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
258 when ranking an lvalue argument for an rvalue parameter.
259
b1f0c0b9
WA
2602019-12-08 Wataru Ashihara <wataash@wataash.com>
261
262 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
263 template argument for scoped_restore_tmpl from bool to int.
264
aa2d5a42
KS
2652019-12-07 Keith Seitz <keiths@redhat.com>
266
267 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
268 (build_id_to_debug_bfd): Make static, rewriting to use
269 build_id_to_bfd_suffix.
270 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
271 adding `suffix' parameter. Append SUFFIX to file names
272 when searching for matching files.
273 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
274 (build_id_to_exec_bfd): Likewise.
275 * build-id.h (build_id_to_debug_bfd): Clarify that function
276 searches for BFD of debug info file.
277 (build_id_to_exec_bfd): Declare.
278 * corelow.c: Include build-id.h.
279 (locate_exec_from_corefile_build_id): New function.
280 (core_target_open): If no executable BFD is found,
281 search for a core file BFD using build-id.
282
dfb65191
CB
2832019-12-06 Christian Biesinger <cbiesinger@google.com>
284
285 * bcache.c: Put in namespace gdb.
286 * bcache.h: Likewise.
287 * gdbtypes.c (check_types_worklist): Update.
288 (types_deeply_equal): Update.
289 * macrotab.c (struct macro_table) <bcache>: Update.
290 (new_macro_table): Update.
291 * macrotab.h (struct bcache): Put this forward declaration
292 inside namespace gdb.
293 (new_macro_table): Update.
294 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
295 Update.
296 <macro_cache>: Update.
297 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
298
93e55f0a
TV
2992019-12-06 Tom de Vries <tdevries@suse.de>
300
301 PR symtab/24971
302 * block.c (best_symbol, better_symbol): New function.
303 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
304 decl.
305
06acc08f
TBA
3062019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
307
308 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
309 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
310 for ranking see-through reference cases.
311
e0fad1ea
PW
3122019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
313 * stack.c (faas_command): Check a command is provided.
314 * thread.c (taas_command, tfaas_command): Likewise.
315
908641f5
PW
3162019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
317 * inferior.c (prune_inferiors): Only call delete_inferior,
318 Do not modify the inferior list.
319
b858499d
SM
3202019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
321
322 * c-exp.y: Update calls to lookup_typename,
323 lookup_signed_typename and lookup_unsigned_typename.
324 * c-lang.c (evaluate_subexp_c): Likewise.
325 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
326 Likewise.
327 * eval.c (binop_promote): Likewise.
328 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
329 (lookup_unsigned_typename): Likewise.
330 (lookup_signed_typename): Likewise.
331 * gdbtypes.h (lookup_unsigned_typename): Likewise.
332 (lookup_signed_typename): Likewise.
333 (lookup_typename): Likewise.
334 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
335 lookup_typename, lookup_signed_typename,
336 lookup_unsigned_typename.
337 * m2-exp.y: Likewise.
338 * printcmd.c (printf_wide_c_string): Likewise.
339 (ui_printf): Likewise.
340 * python/py-type.c (typy_lookup_typename): Likewise.
341 * python/py-xmethods.c (python_xmethod_worker::invoke):
342 Likewise.
343 * rust-exp.y: Likewise.
344
3a8fa228
CB
3452019-12-04 Christian Biesinger <cbiesinger@google.com>
346
347 * configure.nat (obsd64): Add missing files x86-nat.o and
348 nat/x86-dregs.o.
349
2dbc041e
TT
3502019-12-04 Tom Tromey <tom@tromey.com>
351
352 * valprint.c (val_print_string): Use metadata_style.
353 * go-valprint.c (print_go_string): Use metadata style.
354 * p-valprint.c (pascal_object_print_static_field): Use metadata
355 style.
356 * cp-valprint.c (cp_print_static_field): Use metadata style.
357
36c8fb93
AB
3582019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
359 Chris January <chris.january@arm.com>
360
361 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
362 tokens.
363 (typebase): New patterns for complex, single/double precision, and
364 single/double complex.
365 (f77_keywords): Change token for complex keyword, and add single,
366 double, and precision keywords.
367
c6170c2c
SM
3682019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
371 "info io_registers".
372
894ecaf4
SM
3732019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
374
375 * regcache.c (cooked_read_test): Initialize thread list of
376 mock_inferior.
377
be155ebb
SM
3782019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * aarch64-linux-tdep.c: Remove includes.
381
c577cdd7
SM
3822019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
383
384 * aarch64-tdep.c: Remove includes.
385
610cfd61
SM
3862019-12-04 Simon Marchi <simon.marchi@efficios.com>
387
388 * filtered-iterator.h (filtered_iterator) <operator==,
389 operator!=>: Compare wrapped iterators, not wrapped pointers.
390 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
391 unittests/filtered_iterator-selftests.c.
392 * unittests/filtered_iterator-selftests.c: New file.
393
a05cf17a
TT
3942019-12-04 Tom Tromey <tromey@adacore.com>
395
396 * gdbtypes.c (create_range_type): Inherit endianity
397 from base type.
398
d5a22e77
TT
3992019-12-04 Tom Tromey <tromey@adacore.com>
400
401 * ada-lang.c (decode_constrained_packed_array)
402 (ada_value_assign, value_assign_to_component): Update.
403 * dwarf2loc.c (rw_pieced_value, access_memory)
404 (dwarf2_compile_expr_to_ax): Update.
405 * dwarf2read.c (dwarf2_add_field): Update.
406 * eval.c (evaluate_subexp_standard): Update.
407 * gdbarch.c, gdbarch.h: Rebuild.
408 * gdbarch.sh (bits_big_endian): Remove.
409 * gdbtypes.h (union field_location): Update comment.
410 * target-descriptions.c (make_gdb_type): Update.
411 * valarith.c (value_bit_index): Update.
412 * value.c (struct value) <bitpos>: Update comment.
413 (unpack_bits_as_long, modify_field): Update.
414 * value.h (value_bitpos): Update comment.
415
7ab4a236
TT
4162019-12-04 Tom Tromey <tromey@adacore.com>
417
418 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
419 endian-ness.
420
103a685e
TT
4212019-12-04 Tom Tromey <tromey@adacore.com>
422
423 * dwarf2read.c (dwarf2_init_float_type)
424 (dwarf2_init_complex_target_type): Add byte_order parameter.
425 (read_base_type): Compute byte order earlier.
426 * gdbtypes.c (init_float_type): Add byte_order parameter.
427 * gdbtypes.h (init_float_type): Add byte_order parameter.
428
7a9e9f9f
TT
4292019-12-04 Tom Tromey <tromey@adacore.com>
430
431 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
432
feee869b
TT
4332019-12-04 Tom Tromey <tromey@adacore.com>
434
435 * dwarf2read.c (process_structure_scope): Initialize
436 "discr_offset".
437
c2512106
AB
4382019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
439
440 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
441 add it into the search spec.
442 (parse_max_results_option): New function.
443 (mi_info_functions_or_variables): Parse -max-results flag and pass
444 it to mi_symbol_info.
445 (mi_cmd_symbol_info_modules): Likewise.
446 (mi_cmd_symbol_info_types): Likewise.
447 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
448 return type to bool, change result container into a set, and don't
449 add new results if we have enough already.
450 (global_symbol_searcher::add_matching_msymbols): Change return
451 type to bool, and don't add new results if we have enough already.
452 (sort_search_symbols_remove_dups): Delete.
453 (global_symbol_searcher::search): Early exit from search loop when
454 we have enough results. Use a std::set to collect the results
455 from calling add_matching_symbols.
456 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
457 member function.
458 (global_symbol_searcher) <m_max_search_results>: New member
459 variable.
460 (global_symbol_searcher) <add_matching_symbols>: Update header
461 comment and change return type to bool.
462 (global_symbol_searcher) <add_matching_msymbols>: Update header
463 comment and change return type to bool.
464
f97a63c5
AB
4652019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * symtab.c (symbol_search::compare_search_syms): Update header
468 comment.
469 (global_symbol_searcher::is_suitable_msymbol): New function.
470 (global_symbol_searcher::expand_symtabs): New function.
471 (global_symbol_searcher::add_matching_symbols): New function.
472 (global_symbol_searcher::add_matching_msymbols): New function.
473 (global_symbol_searcher::search): Move most of the content
474 into the new functions above, and call them as needed.
475 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
476 function.
477 (global_symbol_searcher) <add_matching_symbols>: New member
478 function.
479 (global_symbol_searcher) <add_matching_msymbols>: New member
480 function.
481 (global_symbol_searcher) <is_suitable_msymbol>: New member
482 function.
483
293b38d6
AB
4842019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
485
486 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
487 -symbol-info-module-variables entries.
488 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
489 (mi_cmd_symbol_info_module_variables): Declare.
490 * mi/mi-symbol-cmds.c
491 (module_symbol_search_iterator): New typedef.
492 (output_module_symbols_in_single_module_and_file): New function.
493 (output_module_symbols_in_single_module): New function.
494 (mi_info_module_functions_or_variables): New function.
495 (mi_cmd_symbol_info_module_functions): New function.
496 (mi_cmd_symbol_info_module_variables): New function.
497 * NEWS: Mention new MI command.
498
4cbd39b2
CB
4992019-12-03 Christian Biesinger <cbiesinger@google.com>
500
501 * bcache.c (hash): Remove.
502 (hash_continue): Remove.
503 * bcache.h (hash): Remove.
504 (hash_continue): Remove.
505 (struct bcache) <ctor>: Update.
506 * psymtab.c (psymbol_hash): Update.
507 * stabsread.c (hashname): Update.
508 * utils.h (fast_hash): Add an argument for a start value,
509 defaulting to zero.
510
82f910ea
PW
5112019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
512 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
513 (destroy_block_symbol_cache): New function.
514 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
515 (resize_symbol_cache): Likewise.
516
de2396d0
TT
5172019-12-02 Tom Tromey <tom@tromey.com>
518
519 * unittests/tui-selftests.c (run_tests): Make conditional.
520 (_initialize_tui_selftest): Make conditional.
521
638d85bc
CB
5222019-12-02 Christian Biesinger <cbiesinger@google.com>
523
524 * aix-thread.c (debug_aix_thread): Change type to bool.
525
7532a164
LM
5262019-12-02 Luis Machado <luis.machado@linaro.org>
527
528 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
529
216a7e6b
AB
5302019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * dwarf2read.c (read_tag_string_type): Read the fields required to
533 make a dynamic string, and possibly create a dynamic range for the
534 string.
535 (attr_to_dynamic_prop): Setup is_reference based on the type of
536 attribute being processed.
537 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
538 (resolve_dynamic_array): Rename to...
539 (resolve_dynamic_array_or_string): ...this, update header comment,
540 and accept TYPE_CODE_STRING.
541 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
542
11a8b164
AB
5432019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
546 of its implementation from...
547 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
548 the new function.
549
5bbd8269
AB
5502019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
553 create a range with stride where appropriate.
554 * f-valprint.c: Include 'gdbarch.h'.
555 (f77_print_array_1): Take the stride into account when walking the
556 array. Also convert the stride into addressable units.
557 * gdbtypes.c (create_range_type): Initialise the stride to
558 constant zero.
559 (create_range_type_with_stride): New function, initialise the
560 range as normal, and then setup the stride.
561 (has_static_range): Include the stride here. Also change the
562 return type to bool.
563 (create_array_type_with_stride): Consider the range stride if the
564 array isn't given its own stride.
565 (resolve_dynamic_range): Resolve the stride if needed.
566 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
567 (struct range_bounds) <flag_is_byte_stride>: New member variable.
568 (TYPE_BIT_STRIDE): Define.
569 (TYPE_ARRAY_BIT_STRIDE): Define.
570 (create_range_type_with_stride): Declare.
571 * valarith.c (value_subscripted_rvalue): Take range stride into
572 account when walking the array.
573
82e3b564
TT
5742019-12-01 Tom Tromey <tom@tromey.com>
575
576 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
577 specially.
578
517d261d
TT
5792019-12-01 Tom Tromey <tom@tromey.com>
580
581 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
582 \0.
583 * unittests/tui-selftests.c: New file.
584 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
585
484c9b64
TT
5862019-12-01 Tom Tromey <tom@tromey.com>
587
588 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
589
a2a7af0c
TT
5902019-12-01 Tom Tromey <tom@tromey.com>
591
592 * NEWS: Document new settings.
593 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
594 * tui/tui-win.c (_initialize_tui_win): Add border style
595 observers.
596 * tui/tui-io.h (tui_apply_style): Declare.
597 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
598 longer static.
599 (apply_ansi_escape, tui_set_reverse_mode): Update.
600 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
601 Add "skip_intensity" parameter.
602 <changed>: New member.
603 <do_set_value>: Declare.
604 (tui_border_style, tui_active_border_style): Declare.
605 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
606 globals.
607 (cli_style_option): Initialize "changed".
608 (cli_style_option::do_set_value): New function.
609 (cli_style_option::add_setshow_commands): Add "skip_intensity"
610 parameter. Update.
611 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
612 (_initialize_cli_style): Update. Create TUI border style
613 commands.
614
d1da6b01
TT
6152019-12-01 Tom Tromey <tom@tromey.com>
616
617 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
618 parameter.
619 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
620 parameter.
621 * tui/tui-win.h (compact_source): Declare.
622 * tui/tui-win.c (compact_source): New global.
623 (tui_set_compact_source, tui_show_compact_source): New functions.
624 (_initialize_tui_win): Add "compact-source" setting.
625 * tui/tui-source.c (tui_source_window::set_contents): Handle
626 compact_source setting.
627 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
628 * NEWS: Document new setting.
629
489dbda6
TT
6302019-11-30 Tom Tromey <tom@tromey.com>
631
632 * dwarf2read.c (dwarf2_add_field): Include field offset when
633 computing variant part length.
634
bf498525
PW
6352019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
636 * NEWS: Mention define-prefix. Tell that command names can now
637 contain a . character.
638
be09caf1
PW
6392019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
640
641 * command.h (valid_cmd_char_p): Declare.
642 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
643 the check of valid command char.
644 (find_command_name_length, valid_user_defined_cmd_name_p): Use
645 valid_cmd_char_p.
646 * cli/cli-script.c (validate_comname): Likewise.
647 * completer.c (gdb_completer_command_word_break_characters):
648 Do not remove . from the word break char, update comments.
649 (complete_line_internal_1): Use valid_cmd_char_p.
650 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
651 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
652
c6ac7fc9
PW
6532019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
654
655 * cli/cli-script.c (do_define_command): Ensure a redefined
656 prefix command is kept as a prefix command.
657 (define_prefix_command): New function.
658 (show_user_1): Report user defined prefixes.
659 (_initialize_cli_script): Create the new 'define-prefix' command.
660 Add completers for 'define' and 'document'.
661 * top.c (execute_command): If command is a user-defined prefix only
662 command, report the list of commands for this prefix command.
663
a992a3b0
TBA
6642019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
665
666 * valops.c (find_oload_champ): Improve debug output.
667
e9194a1a
TBA
6682019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
669
670 * valops.c (find_oload_champ): Print part of debug messages
671 before the badness vector is std::move'd.
672
53a008a6
TT
6732019-11-28 Tom Tromey <tom@tromey.com>
674
675 * value.c (creal_internal_fn): Fix comment.
676
bab05c83
TT
6772019-11-28 Tom Tromey <tom@tromey.com>
678
679 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
680 flag_bound_evaluated>: Now unsigned.
681
2522f049
TT
6822019-11-28 Tom Tromey <tom@tromey.com>
683
684 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
685 declare.
686
38b49e22
MS
6872019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
688
689 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
690 debug output.
691 * jit.c (jit_unregister_code): Add debug print to match
692 `jit_register_code`.
693
35125921
CB
6942019-11-27 Christian Biesinger <cbiesinger@google.com>
695
696 * NEWS: Mention the new multithreaded symbol loading.
697
62e77f56
CB
6982019-11-27 Christian Biesinger <cbiesinger@google.com>
699
700 * maint.c (n_worker_threads): Default to 0.
701 (worker_threads_disabled): New function.
702 * maint.h (worker_threads_disabled): New function.
703 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
704 here if worker_threads_disabled () is true.
705 (minimal_symbol_reader::install): Skip all threading if
706 worker_threads_disabled () is true.
707
f29d7f6b
CB
7082019-11-27 Christian Biesinger <cbiesinger@google.com>
709
710 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
711 hash code if possible.
712 (add_minsym_to_demangled_hash_table): Likewise.
713 (minimal_symbol_reader::install): Compute the hash codes for msymbol
714 on the background thread.
715 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
716 Add these fields.
717
e76b2246
CB
7182019-11-27 Christian Biesinger <cbiesinger@google.com>
719
720 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
721 of the mangled name on the background thread.
722 * symtab.c (symbol_set_names): Allow passing in the hash of the
723 linkage_name.
724 * symtab.h (symbol_set_names): Likewise.
725
8d9a2568
KB
7262019-11-27 Kevin Buettner <kevinb@redhat.com>
727
728 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
729 physnames are computed for inherited DIEs.
730
fad03f6e
TT
7312019-11-27 Tom Tromey <tromey@adacore.com>
732
733 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
734 backslashes.
735 * cp-support.c: Remove unnecessary backslashes.
736
43678b0a
CB
7372019-11-27 Christian Biesinger <cbiesinger@google.com>
738
739 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
740 with sym->set_linkage_name.
741 * coffread.c (coff_read_enum_type): Likewise.
742 * mdebugread.c (parse_symbol): Likewise.
743 * stabsread.c (patch_block_stabs): Likewise.
744 (define_symbol): Likewise.
745 (read_enum_type): Likewise.
746 (common_block_end): Likewise.
747 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
748 function.
749 (SYMBOL_SET_LINKAGE_NAME): Remove.
750 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
751 with sym->set_linkage_name.
752
db5960b4
AB
7532019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
754
755 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
756 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
757 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
758 * NEWS: Mention new MI command.
759
7dc42066
AB
7602019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
761
762 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
763 '-symbol-info-types', and '-symbol-info-variables'.
764 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
765 (mi_cmd_symbol_info_types): Declare.
766 (mi_cmd_symbol_info_variables): Declare.
767 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
768 (output_debug_symbol): New function.
769 (output_nondebug_symbol): New function.
770 (mi_symbol_info): New function.
771 (mi_info_functions_or_variables): New function.
772 (mi_cmd_symbol_info_functions): New function.
773 (mi_cmd_symbol_info_types): New function.
774 (mi_cmd_symbol_info_variables): New function.
775 * NEWS: Mention new commands.
776
5f512a7d
AB
7772019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
778
779 * symtab.c (symbol_to_info_string): New function, most content
780 moved from print_symbol_info, but updated to return a std::string.
781 (print_symbol_info): Update to use symbol_to_info_string and print
782 returned string.
783 * symtab.h (symbol_to_info_string): Declare new function.
784
470c0b1c
AB
7852019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
786
787 * python/python.c (gdbpy_rbreak): Convert to using
788 global_symbol_searcher.
789 * symtab.c (file_matches): Convert return type to bool, change
790 file list to std::vector, update header comment.
791 (search_symbols): Rename to...
792 (global_symbol_searcher::search): ...this and update now its
793 a member function of global_symbol_searcher. Take account of the
794 changes to file_matches.
795 (symtab_symbol_info): Convert to using global_symbol_searcher.
796 (rbreak_command): Likewise.
797 (search_module_symbols): Likewise.
798 * symtab.h (enum symbol_search): Update comment.
799 (search_symbols): Remove declaration.
800 (class global_symbol_searcher): New class.
801
57357d9d
TT
8022019-11-26 Tom Tromey <tromey@adacore.com>
803
804 * cp-support.c (_initialize_cp_support): Conditionally initialize
805 gdb_demangle_attempt_core_dump.
806
3ea16160
TT
8072019-11-26 Tom Tromey <tom@tromey.com>
808
809 * python/py-function.c (fnpy_init): Update.
810 * value.h (add_internal_function): Adjust declaration.
811 * value.c (function_destroyer): Remove.
812 (do_add_internal_function): Don't set destroyer or copy name.
813 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
814 Set name_allocated.
815 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
816 (cmdpy_init): Set name_allocated.
817 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
818 member.
819 (~cmd_list_element): Free "name" if needed.
820
1a6d41c6
TT
8212019-11-26 Tom Tromey <tom@tromey.com>
822
823 * value.h (add_internal_function): Add new overload. Move
824 documentation from value.h.
825 * value.c (do_add_internal_function): New function.
826 (add_internal_function): Use it. Add new overload.
827 (function_destroyer): Don't free doc.
828 * python/py-function.c (fnpy_init): Update.
829
8318f3c3
TT
8302019-11-26 Tom Tromey <tom@tromey.com>
831
832 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
833 (cmdpy_init): Set "doc_allocated".
834
4da8c3a8
TT
8352019-11-26 Tom Tromey <tom@tromey.com>
836
837 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
838 name of worker thread.
839 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
840 pthread_setname_np.
841 * configure, config.in: Rebuild.
842
971db5e2
TT
8432019-11-26 Tom Tromey <tom@tromey.com>
844
845 * python/python.c (class gdbpy_gil): New.
846 (struct gdbpy_event): Add constructor, destructor, operator().
847 (gdbpy_post_event): Use run_on_main_thread.
848 (gdbpy_initialize_events): Remove.
849 (do_start_initialization): Update.
850
22138db6
TT
8512019-11-26 Tom Tromey <tom@tromey.com>
852
853 * NEWS: Add entry.
854 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
855 commands. Call update_thread_pool_size.
856 (update_thread_pool_size, maintenance_set_worker_threads): New
857 functions.
858 (n_worker_threads): New global.
859
d55c9a68
TT
8602019-11-26 Christian Biesinger <cbiesinger@google.com>
861 Tom Tromey <tom@tromey.com>
862
863 * minsyms.c (minimal_symbol_reader::install): Use
864 parallel_for_each.
865 * gdbsupport/parallel-for.h: New file.
866 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
867
a0b57563
CB
8682019-11-26 Christian Biesinger <cbiesinger@google.com>
869 Tom Tromey <tom@tromey.com>
870
871 * gdbsupport/thread-pool.h: New file.
872 * gdbsupport/thread-pool.c: New file.
873 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
874 (HFILES_NO_SRCDIR): Add thread-pool.h.
875
3b3978bc
TT
8762019-11-26 Tom Tromey <tom@tromey.com>
877
878 * event-top.h (thread_local_segv_handler): Declare.
879 * event-top.c (thread_local_segv_handler): New global.
880 (install_handle_sigsegv, handle_sigsegv): New functions.
881 (async_init_signals): Install SIGSEGV handler.
882 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
883 thread-local.
884 (report_failed_demangle): New function.
885 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
886 handler-setting code, instead use segv_handler. Run warning code
887 on main thread.
888
9411c49e
TT
8892019-11-26 Tom Tromey <tom@tromey.com>
890
891 * run-on-main-thread.c: New file.
892 * run-on-main-thread.h: New file.
893 * unittests/main-thread-selftests.c: New file.
894 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
895 main-thread-selftests.c.
896 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
897 (COMMON_SFILES): Add run-on-main-thread.c.
898
c3efb965
TT
8992019-11-26 Tom Tromey <tom@tromey.com>
900
901 * main.c (setup_alternate_signal_stack): Remove.
902 (captured_main_1): Use gdb::alternate_signal_stack.
903 * gdbsupport/alt-stack.h: New file.
904
21987b9c
TT
9052019-11-26 Tom Tromey <tom@tromey.com>
906
907 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
908 Remove comment.
909 (save_original_signals_state, restore_original_signals_state): Use
910 gdb_sigmask.
911 * linux-nat.c (block_child_signals, restore_child_signals_mask)
912 (_initialize_linux_nat): Use gdb_sigmask.
913 * guile/guile.c (_initialize_guile): Use block_signals.
914 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
915 * gdbsupport/gdb-sigmask.h: New file.
916 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
917 * cp-support.c (gdb_demangle): Use gdb_sigmask.
918 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
919 pthread_sigmask.
920 * configure, config.in: Rebuild.
921 * gdbsupport/block-signals.h: New file.
922
5e030278
TT
9232019-11-26 Tom Tromey <tom@tromey.com>
924
925 * acinclude.m4: Include ax_pthread.m4.
926 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
927 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
928 (CLIBS): Use PTHREAD_LIBS.
929 (aclocal_m4_deps): Add ax_pthread.m4.
930 * config.in, configure: Rebuild.
931 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
932
5a79c107
TT
9332019-11-26 Tom Tromey <tom@tromey.com>
934
935 * symtab.h (struct minimal_symbol) <name_set>: New member.
936 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
937 Don't call symbol_set_names.
938 (minimal_symbol_reader::install): Call symbol_set_names.
939
aa369509
PW
9402019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
941
942 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
943 restore_active_ext_lang, as GIL is needed for (indirectly)
944 called PyOS_InterruptOccurred.
945
cadc9cb8
SM
9462019-11-26 Simon Marchi <simon.marchi@efficios.com>
947
948 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
949 definition.
950
d04afd58
SM
9512019-11-26 Simon Marchi <simon.marchi@efficios.com>
952
953 * remote-sim.c (simulator_command): Make static, remove
954 declaration.
955
dd694d77
SM
9562019-11-26 Simon Marchi <simon.marchi@efficios.com>
957
958 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
959 static.
960 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
961 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
962 (main): Likewise.
963 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
964 (main): Likewise.
965 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
966 (main): Likewise.
967 * unittests/basic_string_view/element_access/char/1.cc (test01):
968 Likewise.
969 (main): Likewise.
970 * unittests/basic_string_view/element_access/char/empty.cc (main):
971 Likewise.
972 * unittests/basic_string_view/element_access/char/front_back.cc
973 (test01): Likewise.
974 (main): Likewise.
975 * unittests/basic_string_view/inserters/char/2.cc (test05):
976 Likewise.
977 (main): Likewise.
978 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
979 (test01): Likewise.
980 (main): Likewise.
981 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
982 (test01): Likewise.
983 (main): Likewise.
984 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
985 Likewise.
986 * unittests/basic_string_view/operations/compare/char/1.cc
987 (test01): Likewise.
988 (main): Likewise.
989 * unittests/basic_string_view/operations/compare/char/13650.cc
990 (test01): Likewise.
991 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
992 Likewise.
993 (main): Likewise.
994 * unittests/basic_string_view/operations/data/char/1.cc (test01):
995 Likewise.
996 (main): Likewise.
997 * unittests/basic_string_view/operations/find/char/1.cc (test01):
998 Likewise.
999 (main): Likewise.
1000 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1001 Likewise.
1002 (main): Likewise.
1003 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1004 Likewise.
1005 (main): Likewise.
1006 * unittests/basic_string_view/operations/find/char/4.cc (main):
1007 Likewise.
1008 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1009 Likewise.
1010 (main): Likewise.
1011 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1012 Likewise.
1013 (main): Likewise.
1014 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1015 Likewise.
1016 (main): Likewise.
1017 * unittests/basic_string_view/operations/substr/char/1.cc
1018 (test01): Likewise.
1019 (main): Likewise.
1020 * unittests/basic_string_view/operators/char/2.cc (main):
1021 Likewise.
1022 * unittests/optional/assignment/1.cc (test): Likewise.
1023 * unittests/optional/assignment/2.cc (test): Likewise.
1024 * unittests/optional/assignment/3.cc (test): Likewise.
1025 * unittests/optional/assignment/4.cc (test): Likewise.
1026 * unittests/optional/assignment/5.cc (test): Likewise.
1027 * unittests/optional/assignment/6.cc (test): Likewise.
1028 * unittests/optional/assignment/7.cc (test): Likewise.
1029 * unittests/optional/cons/copy.cc (test): Likewise.
1030 * unittests/optional/cons/default.cc (test): Likewise.
1031 * unittests/optional/cons/move.cc (test): Likewise.
1032 * unittests/optional/cons/value.cc (test): Likewise.
1033 * unittests/optional/in_place.cc (test): Likewise.
1034 * unittests/optional/observers/1.cc (test): Likewise.
1035 * unittests/optional/observers/2.cc (test): Likewise.
1036
3b5c1d49
SM
10372019-11-26 Simon Marchi <simon.marchi@efficios.com>
1038
1039 * tui-win.h (tui_set_var_cmd): Remove.
1040 * tui-win.c (tui_set_var_cmd): Make static.
1041
adce99fe
SM
10422019-11-26 Simon Marchi <simon.marchi@efficios.com>
1043
1044 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1045 rbreak_command_wrapper): Remove.
1046 * symtab.c (rbreak_command_wrapper): Remove.
1047
fe3adccf
SM
10482019-11-26 Simon Marchi <simon.marchi@efficios.com>
1049
1050 * inferior.h (info_terminal_command): Remove declaration.
1051 * inflow.c (info_terminal_command): Make static.
1052
b926335f
SM
10532019-11-26 Simon Marchi <simon.marchi@efficios.com>
1054
1055 * inferior.c (exit_inferior_silent): Remove.
1056
b62f6f54
SM
10572019-11-26 Simon Marchi <simon.marchi@efficios.com>
1058
1059 * dictionary.c (dict_empty, mdict_empty): Remove.
1060 * dictionary.c (mdict_empty): Remove.
1061
cb8c24b6
SM
10622019-11-26 Simon Marchi <simon.marchi@efficios.com>
1063
1064 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1065 (arc_insn_get_memory_offset): Likewise.
1066 (arc_insn_dump): Likewise.
1067 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1068 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1069 * dictionary.c (dict_iterator_next): Likewise.
1070 (dict_iter_match_first): Likewise.
1071 (dict_iter_match_next): Likewise.
1072 * f-lang.c (evaluate_subexp_f): Likewise.
1073 * hppa-tdep.c (hppa_read_pc): Likewise.
1074 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1075 * parse.c (write_exp_elt_msym): Likewise.
1076 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1077 * remote.c (remote_packet_size): Likewise.
1078 (remote_notif_stop_parse): Likewise.
1079 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1080 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1081 * source.c (prepare_path_for_appending): Likewise.
1082 * sparc64-linux-tdep.c
1083 (sparc64_linux_handle_segmentation_fault); Likewise.
1084 * stack.c (frame_selection_by_function_completer): Likewise.
1085
781597ff
SM
10862019-11-26 Simon Marchi <simon.marchi@efficios.com>
1087
1088 * completer.c (set_gdb_completion_word_break_characters):
1089 Remove.
1090
23baa4cc
SM
10912019-11-26 Simon Marchi <simon.marchi@efficios.com>
1092
1093 * dwarf-index-write.c: Include dwarf-index-write.h.
1094 * mi/mi-interp.c: Include mi/mi-interp.h.
1095
23767560
SM
10962019-11-26 Simon Marchi <simon.marchi@efficios.com>
1097
1098 * aarch32-tdep.c: Include aarch32-tdep.h.
1099 * aarch32-tdep.h: Forward-declare struct target_desc.
1100
6d91ce9a
CB
11012019-11-26 Christian Biesinger <cbiesinger@google.com>
1102
1103 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1104 strerror.
1105 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1106 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1107
3cf2f237
TV
11082019-11-25 Tom de Vries <tdevries@suse.de>
1109
1110 * contrib/words.sh: Add -c option.
1111
5b89c67a
CB
11122019-11-25 Christian Biesinger <cbiesinger@google.com>
1113
1114 * solib.c (solib_find_1): Change int to bool.
1115 (exec_file_find): Change int to bool.
1116 (solib_find): Change int to bool.
1117 (solib_read_symbols): Change int to bool.
1118 (solib_used): Change int to bool.
1119 (solib_add): Change int to bool.
1120 (info_sharedlibrary_command): Change int to bool.
1121 (solib_contains_address_p): Change int to bool.
1122 (solib_keep_data_in_core): Change int to bool.
1123 (in_solib_dynsym_resolve_code): Change int to bool.
1124 (reload_shared_libraries_1): Change int to bool.
1125 (gdb_sysroot_changed): Change int to bool.
1126 * solib.h (solib_read_symbols): Change int to bool.
1127 (solib_contains_address_p): Change int to bool.
1128 (solib_keep_data_in_core): Change int to bool.
1129 (in_solib_dynsym_resolve_code): Change int to bool.
1130 (libpthread_name_p): Change int to bool.
1131
6cc8564b
LM
11322019-11-25 Luis Machado <luis.machado@linaro.org>
1133
1134 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1135 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1136 (remote_packet_max_chars): New static global.
1137 (show_remote_packet_max_chars): New function.
1138 (remote_target::putpkt_binary): Adjust to use new
1139 remote_packet_max_chars option.
1140 (remote_target::getpkt_or_notif_sane_1): Likewise.
1141 (_initialize_remote): Register new remote-packet-max-chars option.
1142
a7cdaa91
SM
11432019-11-24 Simon Marchi <simon.marchi@efficios.com>
1144
1145 * m68k-linux-nat.c: Include gdbarch.h.
1146
26abc753
TT
11472019-11-24 Tom Tromey <tom@tromey.com>
1148
1149 * symfile.c (read_symbols): Update.
1150 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1151 bool.
1152 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1153 (psym_lookup_symbol, psym_find_last_source_symtab)
1154 (psym_forget_cached_source_info, psym_print_stats)
1155 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1156 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1157 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1158 (psym_find_compunit_symtab_by_address)
1159 (maintenance_print_psymbols, maintenance_info_psymtabs)
1160 (maintenance_check_psymtabs): Update.
1161 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1162 bool.
1163
012fc909
TT
11642019-11-22 Tom Tromey <tom@tromey.com>
1165
1166 * observable.h: Update comments.
1167
c83d8d32
TT
11682019-11-22 Tom Tromey <tromey@adacore.com>
1169
1170 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1171 (print_ada_task_info): Don't try to fetch thread id if task is not
1172 alive.
1173
987012b8
CB
11742019-11-22 Christian Biesinger <cbiesinger@google.com>
1175
1176 * ada-exp.y: Update.
1177 * ada-lang.c (sort_choices): Update.
1178 (ada_print_symbol_signature): Update.
1179 (resolve_subexp): Update.
1180 (ada_parse_renaming): Update.
1181 (ada_read_renaming_var_value): Update.
1182 (lesseq_defined_than): Update.
1183 (remove_extra_symbols): Update.
1184 (remove_irrelevant_renamings): Update.
1185 (ada_add_block_symbols): Update.
1186 (ada_collect_symbol_completion_matches): Update.
1187 (ada_is_renaming_symbol): Update.
1188 (aggregate_assign_from_choices): Update.
1189 (ada_evaluate_subexp): Update.
1190 (ada_has_this_exception_support): Update.
1191 (ada_is_non_standard_exception_sym): Update.
1192 (ada_add_exceptions_from_frame): Update.
1193 (ada_add_global_exceptions): Update.
1194 (ada_print_subexp): Update.
1195 * ax-gdb.c (gen_var_ref): Update.
1196 (gen_maybe_namespace_elt): Update.
1197 (gen_expr_for_cast): Update.
1198 (gen_expr): Update.
1199 * block.h: Update.
1200 * blockframe.c (find_pc_partial_function): Update.
1201 * breakpoint.c (print_breakpoint_location): Update.
1202 (update_static_tracepoint): Update.
1203 * btrace.c (ftrace_print_function_name): Update.
1204 (ftrace_function_switched): Update.
1205 * buildsym.c (find_symbol_in_list): Update.
1206 * c-exp.y: Update.
1207 * c-typeprint.c (c_print_typedef): Update.
1208 (c_type_print_template_args): Update.
1209 * cli/cli-cmds.c (edit_command): Update.
1210 (list_command): Update.
1211 (print_sal_location): Update.
1212 * coffread.c (patch_opaque_types): Update.
1213 (process_coff_symbol): Update.
1214 (coff_read_enum_type): Update.
1215 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1216 (convert_one_symbol): Update.
1217 (hash_symname): Update.
1218 (eq_symname): Update.
1219 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1220 * compile/compile-cplus-types.c (debug_print_scope): Update.
1221 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1222 * compile/compile-object-load.c (get_out_value_type): Update.
1223 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1224 (search_symbol_list): Update.
1225 (cp_lookup_symbol_imports_or_template): Update.
1226 * cp-support.c (overload_list_add_symbol): Update.
1227 * ctfread.c (psymtab_to_symtab): Update.
1228 * dbxread.c (cp_set_block_scope): Update.
1229 * dictionary.c (iter_match_first_hashed): Update.
1230 (iter_match_next_hashed): Update.
1231 (insert_symbol_hashed): Update.
1232 (iter_match_next_linear): Update.
1233 * dictionary.h: Update.
1234 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1235 (locexpr_describe_location_piece): Update.
1236 (locexpr_describe_location_1): Update.
1237 (locexpr_generate_c_location): Update.
1238 (loclist_describe_location): Update.
1239 (loclist_generate_c_location): Update.
1240 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1241 (read_func_scope): Update.
1242 (process_enumeration_scope): Update.
1243 (new_symbol): Update.
1244 (dwarf2_const_value): Update.
1245 (dwarf2_symbol_mark_computed): Update.
1246 * eval.c (evaluate_funcall): Update.
1247 (evaluate_subexp_standard): Update.
1248 * expprint.c (print_subexp_standard): Update.
1249 (dump_subexp_body_standard): Update.
1250 * f-valprint.c (info_common_command_for_block): Update.
1251 * findvar.c (get_hosting_frame): Update.
1252 (default_read_var_value): Update.
1253 * go-lang.c (go_symbol_package_name): Update.
1254 * guile/scm-block.c (bkscm_print_block_smob): Update.
1255 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1256 (gdbscm_symbol_name): Update.
1257 (gdbscm_symbol_linkage_name): Update.
1258 (gdbscm_symbol_print_name): Update.
1259 * infcall.c (get_function_name): Update.
1260 * infcmd.c (jump_command): Update.
1261 (finish_command): Update.
1262 * infrun.c (insert_exception_resume_breakpoint): Update.
1263 * linespec.c (canonicalize_linespec): Update.
1264 (create_sals_line_offset): Update.
1265 (convert_linespec_to_sals): Update.
1266 (complete_label): Update.
1267 (find_label_symbols_in_block): Update.
1268 * m2-typeprint.c (m2_print_typedef): Update.
1269 * mdebugread.c (mdebug_reg_to_regnum): Update.
1270 (parse_symbol): Update.
1271 (mylookup_symbol): Update.
1272 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1273 (list_args_or_locals): Update.
1274 * objc-lang.c (compare_selectors): Update.
1275 (info_selectors_command): Update.
1276 (compare_classes): Update.
1277 (info_classes_command): Update.
1278 (find_imps): Update.
1279 * p-typeprint.c (pascal_print_typedef): Update.
1280 * printcmd.c (build_address_symbolic): Update.
1281 (info_address_command): Update.
1282 (print_variable_and_value): Update.
1283 * python/py-framefilter.c (extract_sym): Update.
1284 (py_print_single_arg): Update.
1285 * python/py-symbol.c (sympy_str): Update.
1286 (sympy_get_name): Update.
1287 (sympy_get_linkage_name): Update.
1288 * python/python.c (gdbpy_rbreak): Update.
1289 * record-btrace.c (btrace_get_bfun_name): Update.
1290 (btrace_call_history): Update.
1291 * rust-lang.c (rust_print_typedef): Update.
1292 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1293 * stabsread.c (stab_reg_to_regnum): Update.
1294 (define_symbol): Update.
1295 (read_enum_type): Update.
1296 (common_block_end): Update.
1297 (cleanup_undefined_types_1): Update.
1298 (scan_file_globals): Update.
1299 * stack.c (print_frame_arg): Update.
1300 (print_frame_args): Update.
1301 (find_frame_funname): Update.
1302 (info_frame_command_core): Update.
1303 (iterate_over_block_locals): Update.
1304 (print_block_frame_labels): Update.
1305 (do_print_variable_and_value): Update.
1306 (iterate_over_block_arg_vars): Update.
1307 (return_command): Update.
1308 * symmisc.c (dump_symtab_1): Update.
1309 (print_symbol): Update.
1310 * symtab.c (eq_symbol_entry): Update.
1311 (symbol_cache_dump): Update.
1312 (lookup_language_this): Update.
1313 (find_pc_sect_line): Update.
1314 (skip_prologue_sal): Update.
1315 (symbol_search::compare_search_syms): Update.
1316 (treg_matches_sym_type_name): Update.
1317 (search_symbols): Update.
1318 (print_symbol_info): Update.
1319 (rbreak_command): Update.
1320 (completion_list_add_symbol): Update.
1321 (find_gnu_ifunc): Update.
1322 (get_symbol_address): Update.
1323 (search_module_symbols): Update.
1324 (info_module_subcommand): Update.
1325 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1326 (SYMBOL_LINKAGE_NAME): Remove.
1327 (SYMBOL_DEMANGLED_NAME): Remove.
1328 (SYMBOL_PRINT_NAME): Remove.
1329 (SYMBOL_SEARCH_NAME): Remove.
1330 * tracepoint.c (set_traceframe_context): Update.
1331 (validate_actionline): Update.
1332 (collection_list::collect_symbol): Update.
1333 (encode_actions_1): Update.
1334 (info_scope_command): Update.
1335 (print_one_static_tracepoint_marker): Update.
1336 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1337 * valops.c (address_of_variable): Update.
1338 (find_overload_match): Update.
1339 (find_oload_champ): Update.
1340
c9d95fa3
CB
13412019-11-22 Christian Biesinger <cbiesinger@google.com>
1342
1343 * ada-lang.c (ada_lookup_simple_minsym): Update.
1344 (ada_collect_symbol_completion_matches): Update.
1345 * ada-tasks.c (read_atcb): Update.
1346 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1347 (amd64_windows_skip_trampoline_code): Update.
1348 * arm-tdep.c (skip_prologue_function): Update.
1349 (arm_skip_stack_protector): Update.
1350 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1351 (arm_wince_skip_main_prologue): Update.
1352 * ax-gdb.c (gen_expr): Update.
1353 * block.c (call_site_for_pc): Update.
1354 * blockframe.c (find_pc_partial_function): Update.
1355 * breakpoint.c (set_breakpoint_location_function): Update.
1356 * btrace.c (ftrace_print_function_name): Update.
1357 (ftrace_function_switched): Update.
1358 * c-valprint.c (print_unpacked_pointer): Update.
1359 * coffread.c (coff_symfile_read): Update.
1360 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1361 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1362 * dwarf-index-write.c (write_psymbols): Update.
1363 * dwarf2loc.c (call_site_to_target_addr): Update.
1364 (func_verify_no_selftailcall): Update.
1365 (tailcall_dump): Update.
1366 (call_site_find_chain_1): Update.
1367 (dwarf_expr_reg_to_entry_parameter): Update.
1368 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1369 * eval.c (evaluate_funcall): Update.
1370 (evaluate_subexp_standard): Update.
1371 (evaluate_subexp_for_sizeof): Update.
1372 * expprint.c (print_subexp_standard): Update.
1373 (dump_subexp_body_standard): Update.
1374 * frame.c (get_prev_frame_always_1): Update.
1375 * frv-tdep.c (frv_skip_main_prologue): Update.
1376 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1377 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1378 (gnuv3_get_typename_from_type_info): Update.
1379 (gnuv3_skip_trampoline): Update.
1380 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1381 * i386-tdep.c (i386_skip_main_prologue): Update.
1382 (i386_pe_skip_trampoline_code): Update.
1383 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1384 * infcall.c (get_function_name): Update.
1385 * linespec.c (minsym_found): Update.
1386 * linux-fork.c (info_checkpoints_command): Update.
1387 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1388 (m32c_m16c_pointer_to_address): Update.
1389 * maint.c (maintenance_translate_address): Update.
1390 * minsyms.c (add_minsym_to_hash_table): Update.
1391 (add_minsym_to_demangled_hash_table): Update.
1392 (lookup_minimal_symbol_mangled): Update.
1393 (lookup_minimal_symbol_demangled): Update.
1394 (lookup_minimal_symbol_linkage): Update.
1395 (lookup_minimal_symbol_text): Update.
1396 (lookup_minimal_symbol_by_pc_name): Update.
1397 (minimal_symbol_is_less_than): Update.
1398 (compact_minimal_symbols): Update.
1399 (build_minimal_symbol_hash_tables): Update.
1400 (find_solib_trampoline_target): Update.
1401 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1402 (mips_skip_pic_trampoline_code): Update.
1403 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1404 * objc-lang.c (info_selectors_command): Update.
1405 (info_classes_command): Update.
1406 (find_methods): Update.
1407 (find_imps): Update.
1408 * p-valprint.c (pascal_val_print): Update.
1409 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1410 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1411 * printcmd.c (build_address_symbolic): Update.
1412 (info_symbol_command): Update.
1413 * psymtab.c (psymbol_name_matches): Update.
1414 (match_partial_symbol): Update.
1415 (lookup_partial_symbol): Update.
1416 (print_partial_symbols): Update.
1417 (sort_pst_symbols): Update.
1418 (maintenance_check_psymtabs): Update.
1419 * python/py-framefilter.c (py_print_frame): Update.
1420 * python/python.c (gdbpy_rbreak): Update.
1421 * record-btrace.c (btrace_get_bfun_name): Update.
1422 (btrace_call_history): Update.
1423 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1424 (rs6000_skip_trampoline_code): Update.
1425 * sol-thread.c (info_cb): Update.
1426 * stabsread.c (scan_file_globals): Update.
1427 * stack.c (find_frame_funname): Update.
1428 (info_frame_command_core): Update.
1429 * symmisc.c (dump_msymbols): Update.
1430 * symtab.c (symbol_natural_name): Rename to..,
1431 (general_symbol_info::natural_name): ...this.
1432 (symbol_demangled_name): Rename to...
1433 (general_symbol_info::demangled_name): ...this.
1434 (symbol_search_name): Rename to...
1435 (general_symbol_info::search_name): ...this.
1436 (symbol_matches_search_name): Update.
1437 (find_pc_sect_line): Update.
1438 (skip_prologue_sal): Update.
1439 (search_symbols): Update.
1440 (print_msymbol_info): Update.
1441 (rbreak_command): Update.
1442 (completion_list_add_msymbol): Update.
1443 (completion_list_objc_symbol): Update.
1444 (get_msymbol_address): Update.
1445 * symtab.h (struct general_symbol_info): Add member functions
1446 natural_name (), linkage_name (), print_name (), demangled_name (),
1447 and search_name ().
1448 (SYMBOL_NATURAL_NAME): Update.
1449 (symbol_natural_name): Move to a member function on general_symbol_info.
1450 (SYMBOL_DEMANGLED_NAME): Update.
1451 (symbol_demangled_name): Move to a member function on
1452 general_symbol_info.
1453 (SYMBOL_SEARCH_NAME): Update.
1454 (symbol_search_name): Move to a member function on general_symbol_info.
1455 (MSYMBOL_NATURAL_NAME): Remove.
1456 (MSYMBOL_LINKAGE_NAME): Remove.
1457 (MSYMBOL_PRINT_NAME): Remove.
1458 (MSYMBOL_DEMANGLED_NAME): Remove.
1459 (MSYMBOL_SEARCH_NAME): Remove.
1460 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1461
f8bab2d6
CB
14622019-11-22 Christian Biesinger <cbiesinger@google.com>
1463
1464 * symtab.c (create_demangled_names_hash): Use per_bfd->
1465 minimal_symbol_count for computing the initial size, if greater
1466 than our default size.
1467
85e7588d
TV
14682019-11-22 Tom de Vries <tdevries@suse.de>
1469
1470 * contrib/words.sh: Improve words extraction.
1471
f6180073
TV
14722019-11-22 Tom de Vries <tdevries@suse.de>
1473
1474 * contrib/words.sh: Combine sed invocations.
1475
f10ffa41
CB
14762019-11-21 Christian Biesinger <cbiesinger@google.com>
1477
1478 * Makefile.in: Update.
1479 * demangle.c: Rename to...
1480 * gdb-demangle.c: ..this.
1481 (is_cplus_marker): Change return type to bool.
1482 (_initialize_demangler): Rename to...
1483 (_initialize_gdb_demangle): ...this.
1484 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1485 * symtab.h (demangle): Remove declaration; instead include
1486 gdb-demangle.h.
1487
6ba18521
TT
14882019-11-21 Tom Tromey <tromey@adacore.com>
1489
1490 * gdbsupport/format.c (format_pieces): Parse %I64d.
1491 * unittests/format_pieces-selftests.c (test_windows_formats): New
1492 function.
1493 (run_tests): Call it.
1494
34877895
PJ
14952019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1496
1497 Byte reverse display of variables with DW_END_big, DW_END_little
1498 (DW_AT_endianity) dwarf attributes if different than the native
1499 byte order.
1500 * ada-lang.c (ada_value_binop):
1501 Use type_byte_order instead of gdbarch_byte_order.
1502 * ada-valprint.c (printstr):
1503 (ada_val_print_string):
1504 * ada-lang.c (value_pointer):
1505 (ada_value_binop):
1506 Use type_byte_order instead of gdbarch_byte_order.
1507 * c-lang.c (c_get_string):
1508 Use type_byte_order instead of gdbarch_byte_order.
1509 * c-valprint.c (c_val_print_array):
1510 Use type_byte_order instead of gdbarch_byte_order.
1511 * cp-valprint.c (cp_print_class_member):
1512 Use type_byte_order instead of gdbarch_byte_order.
1513 * dwarf2loc.c (rw_pieced_value):
1514 Use type_byte_order instead of gdbarch_byte_order.
1515 * dwarf2read.c (read_base_type): Handle DW_END_big,
1516 DW_END_little
1517 * f-lang.c (f_get_encoding):
1518 Use type_byte_order instead of gdbarch_byte_order.
1519 * findvar.c (default_read_var_value):
1520 Use type_byte_order instead of gdbarch_byte_order.
1521 * gdbtypes.c (check_types_equal):
1522 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1523 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1524 and TYPE_ENDIANITY_LITTLE if set.
1525 (type_byte_order): new function.
1526 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1527 (struct main_type) <flag_endianity_not_default>:
1528 New field.
1529 (type_byte_order): New function.
1530 * infcmd.c (default_print_one_register_info):
1531 Use type_byte_order instead of gdbarch_byte_order.
1532 * p-lang.c (pascal_printstr):
1533 Use type_byte_order instead of gdbarch_byte_order.
1534 * p-valprint.c (pascal_val_print):
1535 Use type_byte_order instead of gdbarch_byte_order.
1536 * printcmd.c (print_scalar_formatted):
1537 Use type_byte_order instead of gdbarch_byte_order.
1538 * solib-darwin.c (darwin_current_sos):
1539 Use type_byte_order instead of gdbarch_byte_order.
1540 * solib-svr4.c (solib_svr4_r_ldsomap):
1541 Use type_byte_order instead of gdbarch_byte_order.
1542 * stap-probe.c (stap_modify_semaphore):
1543 Use type_byte_order instead of gdbarch_byte_order.
1544 * target-float.c (target_float_same_format_p):
1545 Use type_byte_order instead of gdbarch_byte_order.
1546 * valarith.c (scalar_binop):
1547 (value_bit_index):
1548 Use type_byte_order instead of gdbarch_byte_order.
1549 * valops.c (value_cast):
1550 Use type_byte_order instead of gdbarch_byte_order.
1551 * valprint.c (generic_emit_char):
1552 (generic_printstr):
1553 (val_print_string):
1554 Use type_byte_order instead of gdbarch_byte_order.
1555 * value.c (unpack_long):
1556 (unpack_bits_as_long):
1557 (unpack_value_bitfield):
1558 (modify_field):
1559 (pack_long):
1560 (pack_unsigned_long):
1561 Use type_byte_order instead of gdbarch_byte_order.
1562 * findvar.c (unsigned_pointer_to_address):
1563 (signed_pointer_to_address):
1564 (unsigned_address_to_pointer):
1565 (address_to_signed_pointer):
1566 (default_read_var_value):
1567 (default_value_from_register):
1568 Use type_byte_order instead of gdbarch_byte_order.
1569 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1570 Use type_byte_order instead of gdbarch_byte_order.
1571 * riscv-tdep.c (riscv_print_one_register_info):
1572 Use type_byte_order instead of gdbarch_byte_order.
1573
87fb00ea
SM
15742019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1575
1576 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1577 (current_ui_gdb_stdin_ptr): Likewise.
1578 (current_ui_gdb_stderr_ptr): Likewise.
1579 (current_ui_gdb_stdlog_ptr): Likewise.
1580 (current_ui_current_uiout_ptr): Likewise.
1581 (gen_ret_current_ui_field_ptr): Remove.
1582
65d1cd5f
TV
15832019-11-21 Tom de Vries <tdevries@suse.de>
1584
1585 PR gdb/24956
1586 * cli/cli-script.c (execute_control_command): Only switch to
1587 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1588
9f6ad286
TT
15892019-11-19 Tom Tromey <tom@tromey.com>
1590
1591 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1592 Now static. Change type of "name".
1593 (tui_set_win_height_command): Don't copy "arg".
1594 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1595 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1596
435d3d88
AT
15972019-11-19 Ali Tamur <tamur@google.com>
1598
1599 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1600 "if (attr != nullptr)".
1601 (dwarf2_find_base_address): Likewise.
1602 (dwarf2_build_include_psymtabs): Likewise.
1603 (read_cutu_die_from_dwo): Likewise.
1604 (read_func_scope): Likewise.
1605 (read_call_site_scope): Likewise.
1606 (dwarf2_get_pc_bounds): Likewise.
1607 (dwarf2_record_block_ranges): Likewise.
1608 (dwarf2_add_field): Likewise.
1609 (dwarf2_add_member_fn): Likewise.
1610 (read_structure_type): Likewise.
1611 (read_enumeration_type): Likewise.
1612 (read_array_type): Likewise.
1613 (read_array_order): Likewise.
1614 (read_set_type): Likewise.
1615 (read_common_block): Likewise.
1616 (read_tag_reference_type): Likewise.
1617 (read_tag_string_type): Likewise.
1618 (read_subroutine_type): Likewise.
1619 (read_base_type): Likewise.
1620 (read_subrange_type): Likewise.
1621 (new_symbol): Likewise.
1622 (prepare_one_comp_unit): Likewise.
1623
c9739b6a
TT
16242019-11-19 Tom Tromey <tromey@adacore.com>
1625
1626 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1627 result in error when DebugActiveProcess fails.
1628
494409bb
SDJ
16292019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1630 Pedro Alves <palves@redhat.com>
1631
1632 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1633 * target.c (target_stack::push): Call 'unpush' if there's a
1634 target on top of the stack.
1635
2e953aca
PW
16362019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1637
1638 * python/py-block.c (blpy_dealloc): Call tp_free.
1639 (blpy_block_syms_dealloc): Likewise.
1640 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1641 * python/py-inferior.c (infpy_dealloc): Likewise.
1642 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1643 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1644 * python/py-symbol.c (sympy_dealloc): Likewise.
1645 * python/py-symtab.c (stpy_dealloc): Likewise.
1646 * python/py-type.c (typy_iterator_dealloc): Likewise.
1647
6edc43ec
CB
16482019-11-18 Christian Biesinger <cbiesinger@google.com>
1649
1650 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1651 constructor instead of using a class initializer.
1652
cd850b40
CB
16532019-11-15 Christian Biesinger <cbiesinger@google.com>
1654
1655 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1656 * configure: Regenerate.
1657 * configure.ac: Don't source common.host.
1658 * gdbsupport/common.host: Remove.
1659 * gdbsupport/mingw-strerror.c: Remove.
1660 * gdbsupport/posix-strerror.c: Rename to...
1661 * gdbsupport/safe-strerror.c: ...this.
1662
53fea9c7
CB
16632019-11-15 Christian Biesinger <cbiesinger@google.com>
1664
1665 * maint.c (scoped_command_stats::print_time): Use localtime_r
1666 instead of localtime (provided through gnulib if necessary).
1667 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1668 of ctime.
1669
f8e27d88
CB
16702019-11-15 Christian Biesinger <cbiesinger@google.com>
1671
1672 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1673 avoid compile errors.
1674
5abebf3c
CB
16752019-11-15 Christian Biesinger <cbiesinger@google.com>
1676
1677 * config.in: Regenerate.
1678 * configure: Regenerate.
1679 * gdbsupport/common.m4: No longer check for strerror_r.
1680 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1681 POSIX version of strerror_r, now that gnulib provides it if
1682 necessary.
1683
9a351667
CB
16842019-11-14 Christian Biesinger <cbiesinger@google.com>
1685
1686 * README (`configure' options): Update.
1687
55708e99
TT
16882019-11-14 Tom Tromey <tromey@adacore.com>
1689
1690 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1691 expected type for the RHS if the LHS is a convenience variable.
1692
4b09bb2e
SM
16932019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1694
1695 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1696 Provide explicit default and copy constructor.
1697
bd454f8b
PW
16982019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1699
1700 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1701 only call Py_INCREF (newbp) in the bppy_pending_object case.
1702
d1aa3cf0
TT
17032019-11-13 Tom Tromey <tromey@adacore.com>
1704
1705 PR build/25182:
1706 * psympriv.h (partial_symbol): Remove static assert.
1707 * symtab.h (general_symbol_info, symbol): Remove static assert.
1708
e06f3d6e
AB
17092019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1710
1711 * gdbsupport/format.c (format_pieces::format_pieces): Support
1712 printf 'z' size modifier.
1713 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1714 * printcmd.c (ui_printf): Handle size_t_arg.
1715 * ui-out.c (ui_out::vmessage): Likewise.
1716 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1717 function.
1718 (run_tests): Call test_format_int_sizes.
1719
468c0cbb
CB
17202019-11-12 Christian Biesinger <cbiesinger@google.com>
1721
1722 * ada-exp.y (write_ambiguous_var): Update.
1723 * buildsym.c (add_symbol_to_list): Update.
1724 * dwarf2read.c (read_variable): Update.
1725 (new_symbol): Update.
1726 * jit.c (finalize_symtab): Update.
1727 * language.c (language_alloc_type_symbol): Update.
1728 * symtab.c (fixup_symbol_section): Update.
1729 (initialize_objfile_symbol_1): Move code to...
1730 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1731 (allocate_symbol): Update.
1732 (allocate_template_symbol): Update.
1733 (get_symbol_address): Update.
1734 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1735 of having as a field, and add a constructor.
1736 (SYMBOL_VALUE): Update.
1737 (SYMBOL_VALUE_ADDRESS): Update.
1738 (SET_SYMBOL_VALUE_ADDRESS): Update.
1739 (SYMBOL_VALUE_BYTES): Update.
1740 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1741 (SYMBOL_BLOCK_VALUE): Update.
1742 (SYMBOL_VALUE_CHAIN): Update.
1743 (SYMBOL_LANGUAGE): Update.
1744 (SYMBOL_SECTION): Update.
1745 (SYMBOL_OBJ_SECTION): Update.
1746 (SYMBOL_SET_LANGUAGE): Update.
1747 (SYMBOL_SET_LINKAGE_NAME): Update.
1748 (SYMBOL_SET_NAMES): Update.
1749 (SYMBOL_NATURAL_NAME): Update.
1750 (SYMBOL_LINKAGE_NAME): Update.
1751 (SYMBOL_DEMANGLED_NAME): Update.
1752 (SYMBOL_SEARCH_NAME): Update.
1753 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1754 (struct symbol): Update.
1755 (struct template_symbol): Update.
1756 (struct rust_vtable_symbol): Update.
1757 * xcoffread.c (SYMBOL_DUP): Update.
1758
ed2c82c3
TT
17592019-11-12 Tom Tromey <tom@tromey.com>
1760
1761 * tui/tui-layout.c (show_layout): Set current_layout.
1762 (show_source_disasm_command, show_data)
1763 (show_source_or_disasm_and_command): Don't set current_layout.
1764
d9fcefd5
TT
17652019-11-12 Tom Tromey <tom@tromey.com>
1766
1767 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1768
45e42163
TT
17692019-11-12 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-win.c (resize_message): New global.
1772 (show_tui_resize_message): New function.
1773 (tui_async_resize_screen): Print message if requested.
1774 (_initialize_tui_win): Add tui-resize-message setting.
1775 * NEWS: Add entry for new commands.
1776
c86d74cc
TT
17772019-11-11 Tom Tromey <tom@tromey.com>
1778
1779 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1780 functions.
1781
7b7b9424
CB
17822019-11-11 Christian Biesinger <cbiesinger@google.com>
1783
1784 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1785
086baaf1
AB
17862019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1789 function.
1790 * python/python-internal.h (gdbpy_lookup_static_symbols):
1791 Declare new function.
1792 * python/python.c (python_GdbMethods): Add
1793 gdb.lookup_static_symbols method.
1794 * NEWS: Mention gdb.lookup_static_symbols.
1795
09ff83af
AB
17962019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1797
1798 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1799 static block of current object file first. Also fix typo in
1800 header comment.
1801
eb2dd8df
AB
18022019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1803
1804 * stack.c (set_last_displayed_sal): Delete.
1805 (last_displayed_sal_valid): Delete.
1806 (last_displayed_pspace): Delete.
1807 (last_displayed_addr): Delete.
1808 (last_displayed_symtab): Delete.
1809 (last_displayed_line): Delete.
1810 (class last_displayed_symtab_info_type): New.
1811 (last_displayed_symtab_info): New static global variable.
1812 (print_frame_info): Call methods on last_displayed_symtab_info.
1813 (clear_last_displayed_sal): Update header comment, and make use of
1814 last_displayed_symtab_info.
1815 (last_displayed_sal_is_valid): Likewise.
1816 (get_last_displayed_pspace): Likewise.
1817 (get_last_displayed_addr): Likewise.
1818 (get_last_displayed_symtab): Likewise.
1819 (get_last_displayed_line): Likewise.
1820 (get_last_displayed_sal): Likewise.
1821 * stack.h (clear_last_displayed_sal): Update header comment.
1822 (last_displayed_sal_is_valid): Likewise.
1823 (get_last_displayed_pspace): Likewise.
1824 (get_last_displayed_addr): Likewise.
1825 (get_last_displayed_symtab): Likewise.
1826 (get_last_displayed_line): Likewise.
1827 (get_last_displayed_sal): Likewise.
1828
62137775
AB
18292019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 * stack.c (frame_show_address): Convert return type to bool.
1832 * stack.h (frame_show_address): Likewise, and update header
1833 comment.
1834
cf57ad6d
AB
18352019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1836
1837 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1838 * unittests/vec-utils-selftests.c: New file.
1839 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1840
0b026263
TT
18412019-11-10 Tom Tromey <tom@tromey.com>
1842
1843 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1844 (tui_highlight_win): Likewise.
1845 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1846 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1847 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1848 Don't set can_highlight.
1849
b049ce2d
TT
18502019-11-10 Tom Tromey <tom@tromey.com>
1851
1852 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1853 Remove unused declaration.
1854
992a7040
TT
18552019-11-08 Tom Tromey <tromey@adacore.com>
1856
1857 * top.c (read_command_file): Update.
1858 (command_line_input): Make return type const.
1859 * python/py-gdb-readline.c: Update.
1860 * linespec.c (decode_line_2): Update.
1861 * defs.h (command_line_input): Make return type const.
1862 * cli/cli-script.c (read_next_line): Make return type const.
1863 * ada-lang.c (get_selections): Update.
1864
ca3a04f6
CB
18652019-11-06 Christian Biesinger <cbiesinger@google.com>
1866
1867 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1868 * mi/mi-main.c (output_cores): Likewise.
1869 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1870 (linux_xfer_osdata_modules): Likewise.
1871 * remote.c (register_remote_support_xml): Likewise.
1872 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1873 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1874
e0eac551
TT
18752019-11-06 Tom Tromey <tom@tromey.com>
1876
1877 * tui/tui-interp.c: Don't include readline.h.
1878 * tui/tui-hooks.c: Don't include readline.h.
1879 * symmisc.c: Include tilde.h, not readline.h.
1880 * symfile.c: Include tilde.h, not readline.h.
1881 * source.c: Include tilde.h, not readline.h.
1882 * solib.c: Include tilde.h, not readline.h.
1883 * psymtab.c: Include tilde.h, not readline.h.
1884 * exec.c: Include tilde.h, not readline.h.
1885 * corelow.c: Include tilde.h, not readline.h.
1886 * cli/cli-dump.c: Include tilde.h, not readline.h.
1887 * cli/cli-cmds.c: Don't include readline.h.
1888
825165c5
TT
18892019-11-05 Tom Tromey <tom@tromey.com>
1890
1891 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1892 (tui_disassemble): Set addr_size.
1893 (tui_disasm_window::set_contents): Use addr_size.
1894
91ae903f
TT
18952019-11-05 Tom Tromey <tom@tromey.com>
1896
1897 * rust-lang.c (rust_language_defn): Update.
1898 * python/py-value.c (valpy_string): Call c_get_string.
1899 * p-lang.c (pascal_language_defn): Update.
1900 * opencl-lang.c (opencl_language_defn): Update.
1901 * objc-lang.c (objc_language_defn): Update.
1902 * m2-lang.c (m2_language_defn): Update.
1903 * language.c (unknown_language_defn, auto_language_defn): Update.
1904 (default_get_string): Remove.
1905 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1906 * go-lang.c (go_language_defn): Update.
1907 * f-lang.c (f_language_defn): Update.
1908 * d-lang.c (d_language_defn): Update.
1909 * c-lang.c (c_language_defn, cplus_language_defn)
1910 (asm_language_defn, minimal_language_defn): Update.
1911 * ada-lang.c (ada_language_defn): Update.
1912 * language.h (struct language_defn) <la_get_string>: Remove.
1913 (LA_GET_STRING): Remove.
1914 (default_get_string): Don't declare.
1915
1df2f9ef
TT
19162019-11-05 Tom Tromey <tom@tromey.com>
1917
1918 * tui/tui-source.h (struct tui_source_window): Inline
1919 constructor. Remove destructor.
1920 <style_changed, m_observable>: Move to superclass.
1921 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1922 (struct tui_source_window_base): Move private members to end.
1923 <style_changed, m_observable>: Move from tui_source_window.
1924 * tui/tui-winsource.c (tui_copy_source_line): Move from
1925 tui-source.c. Rename from copy_source_line. Add special handling
1926 for negative line number.
1927 (tui_source_window_base::style_changed): Move from
1928 tui_source_window.
1929 (tui_source_window_base): Register observer.
1930 (~tui_source_window_base): New.
1931 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1932 rename.
1933 (tui_source_window::set_contents): Use tui_copy_source_line.
1934 (tui_source_window::tui_source_window): Move to tui-source.h.
1935 (tui_source_window::~tui_source_window): Remove.
1936 (tui_source_window::style_changed): Move to superclass.
1937 * tui/tui-disasm.c (tui_disassemble): Create string file with
1938 styling, when possible. Add "addr_size" parameter.
1939 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1940 Don't compute maximum size.
1941 (len_without_escapes): New function
1942
5d051055
TT
19432019-11-05 Tom Tromey <tom@tromey.com>
1944
1945 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1946 std::string.
1947 * tui/tui-winsource.c (tui_show_source_line): Update.
1948 * tui/tui-source.c (tui_source_window::set_contents): Update.
1949 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1950
ade7beea
CB
19512019-11-05 Christian Biesinger <cbiesinger@google.com>
1952
1953 * symtab.h (gdb_static_assert): Put && operator at the beginning
1954 of the line instead of the end.
1955
3573abe1
CB
19562019-11-04 Christian Biesinger <cbiesinger@google.com>
1957
1958 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1959 and sizeof (symbol).
1960 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1961
dae8b3eb
RO
19622019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1963
1964 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1965 * configure.host: Mark *-*-solaris2.10* obsolete.
1966 * configure.tgt: Mark Solaris < 11 obsolete.
1967 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1968 Update target triplet.
1969
5df96a4e
TT
19702019-11-01 Tom Tromey <tromey@adacore.com>
1971
1972 * utils.c (print_sys_errmsg): Simplify.
1973
b7481649
TT
19742019-11-01 Tom Tromey <tromey@adacore.com>
1975
1976 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1977
e48f6033
CB
19782019-11-01 Christian Biesinger <cbiesinger@google.com>
1979
1980 * configure: Regenerate.
1981 * configure.ac: Remove check for strerror_r.
1982 * gdbsupport/common.m4: Check for strerror_r.
1983
bd5766ec
LM
19842019-11-01 Luis Machado <luis.machado@linaro.org>
1985
1986 PR gdb/25124
1987
1988 * arm-tdep.c (arm_per_objfile): Rename to ...
1989 (arm_per_bfd): ... this.
1990 (arm_objfile_data_key): Rename to ...
1991 (arm_bfd_data_key): ... this.
1992 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1993 data.
1994 (arm_record_special_symbol): Likewise.
1995
e1709896
AB
19962019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1997
1998 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1999 end.
2000 * c-typeprint.c (c_print_typedef): Likewise.
2001 * f-typeprint.c (f_print_typedef): Likewise.
2002 * m2-typeprint.c (m2_print_typedef): Likewise.
2003 * p-typeprint.c (pascal_print_typedef): Likewise.
2004 * rust-lang.c (rust_print_typedef): Likewise.
2005 * symtab.c (print_symbol_info): Print a newline after calling
2006 typedef_print.
2007
165f8965
AB
20082019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * symtab.c (info_module_cmdlist): New variable.
2011 (info_module_command): New function.
2012 (search_module_symbols): New function.
2013 (info_module_subcommand): New function.
2014 (struct info_modules_var_func_options): New struct.
2015 (info_modules_var_func_options_defs): New variable.
2016 (make_info_modules_var_func_options_def_group): New function.
2017 (info_module_functions_command): New function.
2018 (info_module_variables_command): New function.
2019 (info_module_var_func_command_completer): New function.
2020 (_initialize_symtab): Register new 'info module functions' and
2021 'info module variables' commands.
2022 * symtab.h (typedef symbol_search_in_module): New typedef.
2023 (search_module_symbols): Declare new function.
2024 * NEWS: Mention new commands.
2025
59c35742
AB
20262019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2027
2028 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2029 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2030 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2031 MODULES_DOMAIN.
2032 (scan_partial_symbols): Only create partial module symbols for non
2033 declarations.
2034 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2035 and MODULES_DOMAIN.
2036 * symtab.c (search_domain_name): Likewise.
2037 (search_symbols): Likewise.
2038 (print_symbol_info): Likewise.
2039 (symtab_symbol_info): Likewise.
2040 (info_modules_command): New function.
2041 (_initialize_symtab): Register 'info modules' command.
2042 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2043 * NEWS: Mention new 'info modules' command.
2044
aed61d02
PW
20452019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2046
2047 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2048 and $_gdb_maint_setting_str.
2049
9ad9b77d
PW
20502019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2051
2052 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2053 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2054 (str_value_from_setting, gdb_setting_str_internal_fn)
2055 (gdb_maint_setting_str_internal_fn): New functions.
2056 (_initialize_cli_cmds): Define the new convenience functions.
2057 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2058 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2059
8d6efaa2
CB
20602019-10-31 Christian Biesinger <cbiesinger@google.com>
2061
2062 * agent.c (set_can_use_agent): When the setting is turned on,
2063 look up agent symbols if we don't have them yet.
2064 (agent_new_objfile): Don't look up agent symbols when the agent
2065 setting is off.
2066
33cb1647
CB
20672019-10-31 Christian Biesinger <cbiesinger@google.com>
2068
2069 * config.in: Regenerate.
2070
b231e86a
CB
20712019-10-31 Christian Biesinger <cbiesinger@google.com>
2072
2073 * configure: Regenerate.
2074 * configure.ac: Check for strerror_r.
2075 * gdbsupport/common-utils.h (safe_strerror): Change return value
2076 to const char * and document that this function is now threadsafe.
2077 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2078 thread_local and call strerror_r, if available.
2079 * utils.c (perror_string): Update.
2080 (print_sys_errmsg): Update.
2081
a2726d4f
LM
20822019-10-31 Luis Machado <luis.machado@linaro.org>
2083
2084 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2085 objfile_key.
2086 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2087 objfile to fetch per-bfd data.
2088 (arm_find_exidx_entry): Likewise.
2089
75cafaa6
CB
20902019-10-31 Christian Biesinger <cbiesinger@google.com>
2091
2092 * gdbsupport/agent.c (debug_agent): Change type to bool.
2093 (use_agent): Likewise.
2094 (all_agent_symbols_look_up): Likewise.
2095 (agent_loaded_p): Change return value to bool.
2096 (agent_look_up_symbols): Update.
2097 (agent_capability_check): Change return value to bool.
2098 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2099 (debug_agent): Change type to bool.
2100 (use_agent): Likewise.
2101 (agent_capability_check): Change return value to bool.
2102
808590ec
CB
21032019-10-30 Christian Biesinger <cbiesinger@google.com>
2104
2105 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2106 (build_minimal_symbol_hash_tables): Code to clear the table moved
2107 to clear_minimal_symbol_hash_tables.
2108 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2109 when needed.
2110
f18ad8a1
SM
21112019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2112
2113 * infcmd.c: Remove includes.
2114 * infrun.c: Remove includes.
2115
de93309a
SM
21162019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2117
2118 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2119 (grow_vect): Remove declaration.
2120 (ada_type_of_array): Remove declaration.
2121 (ada_update_initial_language): Remove declaration.
2122 (ada_fold_name): Remove declaration.
2123 (ada_fill_in_ada_prototype): Remove declaration.
2124 (user_select_syms): Remove declaration.
2125 (get_selections): Remove declaration.
2126 (ada_tag_type): Remove declaration.
2127 (ada_value_tag): Remove declaration.
2128 (ada_is_others_clause): Remove declaration.
2129 (ada_in_variant): Remove declaration.
2130 (ada_value_struct_elt): Remove declaration.
2131 (ada_attribute_name): Remove declaration.
2132 (ada_system_address_type): Remove declaration.
2133 * ada-lang.c (ada_watch_location_expression): Make static.
2134 (GROW_VECT): Move here from ada-lang.h.
2135 (grow_vect): Make static.
2136 (ada_update_initial_language): Make static.
2137 (ada_fold_name): Make static.
2138 (ada_type_of_array): Make static.
2139 (encoded_ordered_before): Move up.
2140 (sort_choices): Move up.
2141 (print_signatures): Move up.
2142 (ada_print_symbol_signature): Move up.
2143 (get_selections): Move up and make static.
2144 (user_select_syms): Move up and make static.
2145 (ada_value_struct_elt): Move up and make static.
2146 (ada_tag_type): Make static.
2147 (ada_value_tag): Make static.
2148 (ada_is_others_clause): Make static.
2149 (ada_in_variant): Make static.
2150 (ada_attribute_name): Make static.
2151
cdc46a9f
SM
21522019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2153
2154 * ada-lang.c: Remove includes.
2155 * ada-typeprint.c: Remove includes.
2156 * ada-valprint.c: Remove includes.
2157
90421c56
SM
21582019-10-29 Simon Marchi <simon.marchi@efficios.com>
2159
2160 * addrmap.c: Add static assertions of type size, moved from
2161 _initialize_addrmap.
2162 (_initialize_addrmap): Remove.
2163
31edb802
CB
21642019-10-29 Christian Biesinger <cbiesinger@google.com>
2165
2166 * coffread.c (record_minimal_symbol): Update.
2167 (process_coff_symbol): Update.
2168 * dbxread.c (read_dbx_symtab): Update.
2169 * dwarf2read.c (add_partial_symbol): Update.
2170 (fixup_go_packaging): Update.
2171 (load_partial_dies): Update.
2172 (new_symbol): Update.
2173 * elfread.c (record_minimal_symbol): Change signature to use
2174 gdb::string_view instead of name+len.
2175 (elf_symtab_read): Update.
2176 (elf_rel_plt_read): Update.
2177 * mdebugread.c (parse_partial_symbols): Update.
2178 (handle_psymbol_enumerators): Update.
2179 (new_symbol): Update.
2180 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2181 to use gdb::string_view instead of name+len.
2182 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2183 * psympriv.h (add_psymbol_to_list): Likewise.
2184 * psymtab.c (add_psymbol_to_bcache): Likewise.
2185 (add_psymbol_to_list): Likewise.
2186 * stabsread.c (define_symbol): Update.
2187 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2188 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2189 (symbol_set_names): Likewise.
2190 * xcoffread.c (scan_xcoff_symtab): Update.
2191
0c921b21
CB
21922019-10-29 Christian Biesinger <cbiesinger@google.com>
2193
2194 * symtab.h (symbol_set_names): Document that copy_name must be
2195 set to true for non-nullterminated strings.
2196 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2197 linkage_name if the entry was not found and we need to demangle.
2198
35e65c49
CB
21992019-10-29 Christian Biesinger <cbiesinger@google.com>
2200
2201 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2202 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2203 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2204 * gdbsupport/gdb_binary_search.h: New file.
2205
ed2a2229
CB
22062019-10-29 Christian Biesinger <cbiesinger@google.com>
2207
2208 * NEWS: Mention new --with-system-gdbinit-dir option.
2209 * config.in: Regenerate.
2210 * configure: Regenerate.
2211 * configure.ac: Add new option --with-system-gdbinit-dir.
2212 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2213 for a ".gdb" suffix.
2214 * main.c (get_init_files): Change system_gdbinit argument to
2215 a vector and return the files in SYSTEM_GDBINIT_DIR in
2216 addition to SYSTEM_GDBINIT.
2217 (captured_main_1): Update.
2218 (print_gdb_help): Update.
2219 * top.c (print_gdb_configuration): Also print the value of
2220 SYSTEM_GDBINIT_DIR.
2221
87f34879
CB
22222019-10-28 Christian Biesinger <cbiesinger@google.com>
2223
2224 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2225 that takes gdb::string_view arguments.
2226
30baf67b
TV
22272019-10-26 Tom de Vries <tdevries@suse.de>
2228
2229 * aarch64-linux-tdep.c: Fix typos in comments.
2230 * aarch64-tdep.c: Same.
2231 * ada-lang.c: Same.
2232 * amd64-nat.c: Same.
2233 * arc-tdep.c: Same.
2234 * arch/aarch64-insn.c: Same.
2235 * block.c: Same.
2236 * breakpoint.h: Same.
2237 * btrace.h: Same.
2238 * c-varobj.c: Same.
2239 * cli/cli-decode.c: Same.
2240 * cli/cli-script.c: Same.
2241 * cli/cli-utils.h: Same.
2242 * coff-pe-read.c: Same.
2243 * coffread.c: Same.
2244 * compile/compile-cplus-symbols.c: Same.
2245 * compile/compile-object-run.c: Same.
2246 * completer.c: Same.
2247 * corelow.c: Same.
2248 * cp-support.c: Same.
2249 * demangle.c: Same.
2250 * dwarf-index-write.c: Same.
2251 * dwarf2-frame.c: Same.
2252 * dwarf2-frame.h: Same.
2253 * eval.c: Same.
2254 * frame-base.h: Same.
2255 * frame.h: Same.
2256 * gdbcmd.h: Same.
2257 * gdbtypes.h: Same.
2258 * gnu-nat.c: Same.
2259 * guile/scm-objfile.c: Same.
2260 * i386-tdep.c: Same.
2261 * i386-tdep.h: Same.
2262 * infcall.c: Same.
2263 * infcall.h: Same.
2264 * linux-nat.c: Same.
2265 * m68k-tdep.c: Same.
2266 * macroexp.c: Same.
2267 * memattr.c: Same.
2268 * mi/mi-cmd-disas.c: Same.
2269 * mi/mi-getopt.h: Same.
2270 * mi/mi-main.c: Same.
2271 * minsyms.c: Same.
2272 * nat/aarch64-sve-linux-sigcontext.h: Same.
2273 * objfiles.h: Same.
2274 * ppc-linux-nat.c: Same.
2275 * ppc-linux-tdep.c: Same.
2276 * ppc-tdep.h: Same.
2277 * progspace.h: Same.
2278 * prologue-value.h: Same.
2279 * python/py-evtregistry.c: Same.
2280 * python/py-instruction.h: Same.
2281 * record-btrace.c: Same.
2282 * record-full.c: Same.
2283 * remote.c: Same.
2284 * rs6000-tdep.c: Same.
2285 * ser-tcp.c: Same.
2286 * sol-thread.c: Same.
2287 * sparc-sol2-tdep.c: Same.
2288 * sparc64-tdep.c: Same.
2289 * stabsread.c: Same.
2290 * symfile.c: Same.
2291 * symtab.h: Same.
2292 * target.c: Same.
2293 * tracepoint.c: Same.
2294 * tui/tui-data.h: Same.
2295 * tui/tui-io.c: Same.
2296 * tui/tui-win.c: Same.
2297 * tui/tui.c: Same.
2298 * unittests/rsp-low-selftests.c: Same.
2299 * user-regs.h: Same.
2300 * utils.c: Same.
2301 * utils.h: Same.
2302 * valarith.c: Same.
2303 * valops.c: Same.
2304 * valprint.c: Same.
2305 * valprint.h: Same.
2306 * value.c: Same.
2307 * value.h: Same.
2308 * varobj.c: Same.
2309 * x86-nat.h: Same.
2310 * xtensa-tdep.c: Same.
2311
1834d45f
AT
23122019-10-25 Ali Tamur <tamur@google.com>
2313
2314 * charset.c (find_charset_names): Reflect API change.
2315
5396ae17
CB
23162019-10-25 Christian Biesinger <cbiesinger@google.com>
2317
2318 * symtab.c (struct demangled_name_entry): Change demangled name
2319 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2320 part of the struct anymore.
2321 (symbol_set_names): No longer obstack allocate + copy the demangled
2322 name, just store the allocated name from bfd.
2323
93878f47
TT
23242019-10-25 Tom Tromey <tromey@adacore.com>
2325
2326 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2327 (bsearch_cie_cmp, add_cie): Remove.
2328 (find_cie): Reimplement.
2329 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2330 (dwarf2_build_frame_info): Update.
2331
7b71fc97
L
23322019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2333
2334 PR gdb/25126
2335 * symfile.c (reread_symbols): Call forget_cached_source_info to
2336 clear the stale source cache.
2337
cbb5a2ea
CB
23382019-10-24 Christian Biesinger <cbiesinger@google.com>
2339
2340 * configure: Regenerate.
2341 * configure.ac: Remove code that sets python_has_threads.
2342
71737c43
CB
23432019-10-24 Christian Biesinger <cbiesinger@google.com>
2344
2345 * config.in: Regenerate.
2346 * configure: Regenerate.
2347 * configure.ac: Remove the code that uses sed to get the python
2348 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2349
33d569b7
AB
23502019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2351
2352 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2353 error paths.
2354
f16f7b7c
TT
23552019-10-23 Tom Tromey <tom@tromey.com>
2356
2357 * arc-tdep.c: Remove ".." from include.
2358 * frv-tdep.c: Remove ".." from include.
2359 * lm32-tdep.c: Remove ".." from include.
2360 * microblaze-tdep.c: Remove ".." from include.
2361 * or1k-tdep.h: Remove ".." from include.
2362 * s12z-tdep.c: Remove ".." from include.
2363 * Makefile.in (OPCODES_CFLAGS): Add comment.
2364 (TOP_CFLAGS): New variable.
2365 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2366
6999161a
TT
23672019-10-23 Tom Tromey <tom@tromey.com>
2368
2369 * Makefile.in (READLINE_DIR): Update.
2370
12e7c35e
TBA
23712019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2372
2373 * infcall.c (call_function_by_hand_dummy): Fix the function
2374 comment. And extract out a code section into...
2375 (reserve_stack_space): ...this new function.
2376
37055cad
TBA
23772019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2378
2379 * infcall.c (value_arg_coerce): Remove an unused parameter.
2380 (call_function_by_hand_dummy): Update the call to
2381 'value_arg_coerce'.
2382
39bcc47c
TBA
23832019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2384
2385 * infcall.c (call_function_by_hand_dummy): Refactor.
2386
bd888c0f
TBA
23872019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2388
2389 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2390
c12d372d
TT
23912019-10-23 Tom Tromey <tom@tromey.com>
2392
2393 * configure: Rebuild.
2394 * configure.ac: Don't check for sigprocmask.
2395 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2396
4d0b984b
TT
23972019-10-23 Tom Tromey <tom@tromey.com>
2398
2399 * configure: Rebuild.
2400 * acinclude.m4: Use m4_include, not sinclude.
2401
7e785608
TV
24022019-10-23 Tom de Vries <tdevries@suse.de>
2403
2404 PR breakpoints/24687
2405 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2406
403772ef
CB
24072019-10-22 Christian Biesinger <cbiesinger@google.com>
2408
2409 * symtab.c (struct demangled_name_entry) <language>: Change from
2410 bitfield to regular variable.
2411
3a494279
CB
24122019-10-22 Christian Biesinger <cbiesinger@google.com>
2413
2414 * symtab.c (struct demangled_name_entry): Add a constructor.
2415 (free_demangled_name_entry): New function to call the destructor
2416 for demangled_name_entry.
2417 (create_demangled_names_hash): Pass free_demangled_name_entry to
2418 htab_create_alloc.
2419 (symbol_set_names): Call placement new for demangled_name_entry.
2420 * utils.c: No longer include xxhash.h here, now that fast_hash
2421 is inlined in the header.
2422 * utils.h: Instead, include it here.
2423
ccb1ba62
CB
24242019-10-22 Christian Biesinger <cbiesinger@google.com>
2425
2426 * Makefile.in: Link with libxxhash.
2427 * config.in: Regenerate.
2428 * configure: Regenerate.
2429 * configure.ac: Search for libxxhash.
2430 * utils.c (fast_hash): Use xxhash if present.
2431
1a6ff1a9
CB
24322019-10-22 Christian Biesinger <cbiesinger@google.com>
2433
2434 * utils.h (fast_hash): New function.
2435 * symtab.c (hash_demangled_name_entry): Call new function
2436 fast_hash.
2437
7bb43059
CB
24382019-10-22 Christian Biesinger <cbiesinger@google.com>
2439
2440 * symtab.c (struct demangled_name_entry): Change type of mangled
2441 to gdb::string_view. Also adds a constructor that takes the
2442 mangled name.
2443 (hash_demangled_name_entry): Update.
2444 (eq_demangled_name_entry): Update.
2445 (free_demangled_name_entry): New function to call the destructor
2446 now that this is not a POD anymore.
2447 (create_demangled_names_hash): Pass free_demangled_name_entry to
2448 htab_create_alloc.
2449 (symbol_set_names): Update.
2450
7ba99d21
AT
24512019-10-21 Ali Tamur <tamu@google.com>
2452
2453 * dwarf2read.c (dir_index): Change type.
2454 (file_name_index): Likewise.
2455 (line_header::include_dir_at): Change comment and implementation on
2456 whether it is DWARF 5.
2457 (line_header::is_valid_file_index): New function.
2458 (line_header::file_name_at): Change comment and implementation on
2459 whether it is DWARF 5.
2460 (line_header::file_names): Change to private field renamed as
2461 m_file_names and introduce a new accessor method.
2462 (line_header::file_names_size): New method.
2463 (line_header::include_dirs): Change to private field and rename as
2464 m_include_dirs.
2465 (dw2_get_file_names_reader): Define local var at a smaller scope and
2466 reflect API change.
2467 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2468 (process_structure_scope): Likewise.
2469 (line_header::add_include_dir): Change message and reflect renaming.
2470 (line_header::add_file_name): Likewise.
2471 (read_formatted_entries): Handle DW_FORM_data16.
2472 (dwarf_decode_line_header): Fix line header length calculation.
2473 (psymtab_include_file_name): Change comment and API.
2474 (lnp_state_machine::m_file): Update comment and reflect type change.
2475 (lnp_state_machine::record_line): Reflect type change.
2476 (dwarf_decode_lines): Reflect API change.
2477 (file_file_name): Likewise.
2478 (file_full_name): Likewise.
2479
45f47c3a
AB
24802019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2481
2482 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2483
e5f3c0e3
TT
24842019-10-21 Tom Tromey <tom@tromey.com>
2485
2486 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2487
a0a461e5
TT
24882019-10-21 Tom Tromey <tom@tromey.com>
2489
2490 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2491 NM_H. Use AC_CONFIG_LINKS.
2492 * configure: Rebuild.
2493 * Makefile.in (NM_H): New variable.
2494 (generated_files): Add NM_H. Remove gcore.
2495 (nm.h, stamp-nmh): New targets.
2496
54d83b8d
TT
24972019-10-20 Tom Tromey <tom@tromey.com>
2498
2499 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2500 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2501 obsolete comment.
2502 (put_objfile_before): Now static.
2503
23771117
SM
25042019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2505
2506 * gdbsupport/common-utils.h (startswith): Change return type to
2507 bool.
2508
39ef2f62
CB
25092019-10-19 Christian Biesinger <cbiesinger@google.com>
2510
2511 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2512 * breakpoint.c (bp_locations_compare): Rename to...
2513 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2514 (update_global_location_list): Use std::sort instead of qsort.
2515 * buildsym.c (compare_line_numbers): Rename to...
2516 (lte_is_less_than): ...this, and change to std::sort semantics.
2517 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2518 instead of qsort.
2519 * disasm.c (compare_lines): Rename to...
2520 (line_is_less_than): ...this, and change to std::sort semantics.
2521 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2522 of qsort.
2523 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2524 (fde_is_less_than): ...this, and change to std::sort semantics.
2525 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2526 * mdebugread.c (compare_blocks):
2527 (block_is_less_than): ...this, and change to std::sort semantics.
2528 (sort_blocks): Call std::sort instead of qsort.
2529 * objfiles.c (qsort_cmp): Rename to...
2530 (sort_cmp): ...this, and change to std::sort semantics.
2531 (update_section_map): Call std::sort instead of qsort.
2532 * remote.c (compare_pnums): Remove.
2533 (map_regcache_remote_table): Call std::sort instead of qsort.
2534 * utils.c (compare_positive_ints): Remove.
2535 * utils.h (compare_positive_ints): Remove.
2536 * xcoffread.c (compare_lte): Remove.
2537 (arrange_linetable): Call std::sort instead of qsort.
2538
f71433ee
SDJ
25392019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2540
2541 * symfile.c (init_entry_point_info): Fix typo.
2542 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2543
85102364
TV
25442019-10-18 Tom de Vries <tdevries@suse.de>
2545
2546 * aarch64-tdep.c: Fix typos in comments.
2547 * ada-lang.c: Same.
2548 * ada-tasks.c: Same.
2549 * alpha-tdep.c: Same.
2550 * alpha-tdep.h: Same.
2551 * amd64-nat.c: Same.
2552 * amd64-windows-tdep.c: Same.
2553 * arc-tdep.c: Same.
2554 * arc-tdep.h: Same.
2555 * arch-utils.c: Same.
2556 * arm-nbsd-tdep.c: Same.
2557 * arm-tdep.c: Same.
2558 * ax-gdb.c: Same.
2559 * blockframe.c: Same.
2560 * btrace.c: Same.
2561 * c-varobj.c: Same.
2562 * coff-pe-read.c: Same.
2563 * coffread.c: Same.
2564 * cris-tdep.c: Same.
2565 * darwin-nat.c: Same.
2566 * dbxread.c: Same.
2567 * dcache.c: Same.
2568 * disasm.c: Same.
2569 * dtrace-probe.c: Same.
2570 * dwarf-index-write.c: Same.
2571 * dwarf2-frame-tailcall.c: Same.
2572 * dwarf2-frame.c: Same.
2573 * dwarf2read.c: Same.
2574 * eval.c: Same.
2575 * exceptions.c: Same.
2576 * fbsd-tdep.c: Same.
2577 * findvar.c: Same.
2578 * frame.c: Same.
2579 * frv-tdep.c: Same.
2580 * gnu-v3-abi.c: Same.
2581 * go32-nat.c: Same.
2582 * h8300-tdep.c: Same.
2583 * hppa-tdep.c: Same.
2584 * i386-linux-tdep.c: Same.
2585 * i386-tdep.c: Same.
2586 * ia64-libunwind-tdep.c: Same.
2587 * ia64-tdep.c: Same.
2588 * infcmd.c: Same.
2589 * infrun.c: Same.
2590 * linespec.c: Same.
2591 * linux-nat.c: Same.
2592 * linux-thread-db.c: Same.
2593 * machoread.c: Same.
2594 * mdebugread.c: Same.
2595 * mep-tdep.c: Same.
2596 * mn10300-tdep.c: Same.
2597 * namespace.c: Same.
2598 * objfiles.c: Same.
2599 * opencl-lang.c: Same.
2600 * or1k-tdep.c: Same.
2601 * osabi.c: Same.
2602 * ppc-linux-nat.c: Same.
2603 * ppc-linux-tdep.c: Same.
2604 * ppc-sysv-tdep.c: Same.
2605 * printcmd.c: Same.
2606 * procfs.c: Same.
2607 * record-btrace.c: Same.
2608 * record-full.c: Same.
2609 * remote-fileio.c: Same.
2610 * remote.c: Same.
2611 * rs6000-tdep.c: Same.
2612 * s12z-tdep.c: Same.
2613 * score-tdep.c: Same.
2614 * ser-base.c: Same.
2615 * ser-go32.c: Same.
2616 * skip.c: Same.
2617 * sol-thread.c: Same.
2618 * solib-svr4.c: Same.
2619 * solib.c: Same.
2620 * source.c: Same.
2621 * sparc-nat.c: Same.
2622 * sparc-sol2-tdep.c: Same.
2623 * sparc-tdep.c: Same.
2624 * sparc64-tdep.c: Same.
2625 * stabsread.c: Same.
2626 * stack.c: Same.
2627 * symfile.c: Same.
2628 * symtab.c: Same.
2629 * target-descriptions.c: Same.
2630 * target-float.c: Same.
2631 * thread.c: Same.
2632 * utils.c: Same.
2633 * valops.c: Same.
2634 * valprint.c: Same.
2635 * value.c: Same.
2636 * varobj.c: Same.
2637 * windows-nat.c: Same.
2638 * xcoffread.c: Same.
2639 * xstormy16-tdep.c: Same.
2640 * xtensa-tdep.c: Same.
2641
c5adaa19
TT
26422019-10-17 Tom Tromey <tromey@adacore.com>
2643
2644 * configure: Rebuild.
2645 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2646 in AC_CONFIG_FILES invocation.
2647 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2648 new-style config.status invocation.
2649
405feb71
TV
26502019-10-17 Tom de Vries <tdevries@suse.de>
2651
2652 * arm-nbsd-nat.c: Fix typos in comments.
2653 * arm-tdep.c: Same.
2654 * darwin-nat-info.c: Same.
2655 * dwarf2read.c: Same.
2656 * elfread.c: Same.
2657 * event-top.c: Same.
2658 * findvar.c: Same.
2659 * gdbtypes.c: Same.
2660 * hppa-tdep.c: Same.
2661 * i386-tdep.c: Same.
2662 * jit.c: Same.
2663 * main.c: Same.
2664 * mdebugread.c: Same.
2665 * moxie-tdep.c: Same.
2666 * nto-procfs.c: Same.
2667 * osabi.c: Same.
2668 * ppc-linux-tdep.c: Same.
2669 * remote.c: Same.
2670 * riscv-tdep.c: Same.
2671 * s390-tdep.c: Same.
2672 * sh-tdep.c: Same.
2673 * sparc-linux-tdep.c: Same.
2674 * sparc-nat.c: Same.
2675 * stack.c: Same.
2676 * target-descriptions.c: Same.
2677 * top.c: Same.
2678 * varobj.c: Same.
2679
befcd486
TT
26802019-10-16 Tom Tromey <tom@tromey.com>
2681
2682 * objfiles.h (struct objfile) <original_name>: Now const.
2683
17bfe554
CB
26842019-10-16 Christian Biesinger <cbiesinger@google.com>
2685
2686 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2687 pass on to sigsetjmp's second argument.
2688 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2689
950b7495
KS
26902019-10-16 Keith Seitz <keiths@redhat.com>
2691
2692 PR gdb/23567
2693 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2694 sections whose size is greater than the file size.
2695
ff371ec9
JW
26962019-10-16 Jim Wilson <jimw@sifive.com>
2697
2698 * riscv-tdep.c (riscv_gcc_target_options): New.
2699 (riscv_gnu_triplet_regexp): New.
2700 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2701 set_gdbarch_gnu_triplet_regexp.
2702
fec4e896
CB
27032019-10-16 Christian Biesinger <cbiesinger@google.com>
2704
2705 * Makefile.in: Add xml-builtin.h.
2706 * features/feature_to_c.sh: Add an include for xml-builtin.h
2707 to ensure that the compiler checks that the types match.
2708 * xml-builtin.h: New file.
2709 * xml-support.c (fetch_xml_builtin): Add missing const.
2710 * xml-support.h: Remove declaration of xml_builtins.
2711
d10eccaa
TV
27122019-10-16 Tom de Vries <tdevries@suse.de>
2713
2714 PR tdep/25096
2715 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2716 (amd64_classify_aggregate): ... here.
2717 (amd64_classify_aggregate_field): Handled fiels of nested structs
2718 recursively.
2719
745ff14e
TV
27202019-10-16 Tom de Vries <tdevries@suse.de>
2721
2722 PR tdep/24104
2723 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2724 that handles 'theclass'.
2725
791b7405
AB
27262019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2727
2728 * linespec.c (decode_digits_ordinary): Update comment.
2729 * make-target-delegates: No longer need to handle VEC case.
2730 * memrange.c (normalize_mem_ranges): Update comment.
2731 * namespace.c (add_using_directive): Update comment.
2732 * objc-lang.c (uniquify_strings): Update comment.
2733 * ppc-linux-nat.c (struct thread_points): Update comment.
2734 * probe.h (find_probes_in_objfile): Update comment.
2735 * target.h (enum flash_preserve_mode): Update comment.
2736 * varobj.c (varobj_restrict_range): Update comment.
2737 * varobj.h (varobj_list_children): Update comment.
2738
0dc32745
AB
27392019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2740
2741 * Makefile.in: Remove references to vec.h and vec.c.
2742 * aarch64-tdep.c: No longer include vec.h.
2743 * ada-lang.c: Likewise.
2744 * ada-lang.h: Likewise.
2745 * arm-tdep.c: Likewise.
2746 * ax.h: Likewise.
2747 * breakpoint.h: Likewise.
2748 * charset.c: Likewise.
2749 * cp-support.h: Likewise.
2750 * dtrace-probe.c: Likewise.
2751 * dwarf2read.c: Likewise.
2752 * extension.h: Likewise.
2753 * gdb_bfd.c: Likewise.
2754 * gdbsupport/gdb_vecs.h: Likewise.
2755 * gdbsupport/vec.c: Remove.
2756 * gdbsupport/vec.h: Remove.
2757 * gdbthread.h: Likewise.
2758 * guile/scm-type.c: Likewise.
2759 * inline-frame.c: Likewise.
2760 * machoread.c: Likewise.
2761 * memattr.c: Likewise.
2762 * memrange.h: Likewise.
2763 * namespace.h: Likewise.
2764 * nat/linux-btrace.h: Likewise.
2765 * osdata.c: Likewise.
2766 * parser-defs.h: Likewise.
2767 * progspace.h: Likewise.
2768 * python/py-type.c: Likewise.
2769 * record-btrace.c: Likewise.
2770 * rust-exp.y: Likewise.
2771 * solib-target.c: Likewise.
2772 * stap-probe.c: Likewise.
2773 * target-descriptions.c: Likewise.
2774 * target-memory.c: Likewise.
2775 * target.h: Likewise.
2776 * varobj.c: Likewise.
2777 * varobj.h: Likewise.
2778 * xml-support.h: Likewise.
2779
ae640021
AB
27802019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2781
2782 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2783 Update for new std::vector based implementation.
2784 (process_psymtab_comp_unit_reader): Likewise.
2785 (scan_partial_symbols): Likewise.
2786 (recursively_compute_inclusions): Likewise.
2787 (compute_compunit_symtab_includes): Likewise.
2788 (process_imported_unit_die): Likewise.
2789 (queue_and_load_dwo_tu): Likewise.
2790 (follow_die_sig_1): Likewise.
2791 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2792 (typedef dwarf2_per_cu_ptr): Remove.
2793 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2794 function.
2795 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2796 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2797 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2798 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2799 std::vector.
2800
55dfc88f
TT
28012019-10-15 Tom Tromey <tromey@adacore.com>
2802
2803 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2804 TID.
2805
96b49c5e
TT
28062019-10-15 Tom Tromey <tromey@adacore.com>
2807
2808 * windows-nat.c (windows_nat_target::fetch_registers)
2809 (windows_nat_target::store_registers): Rename "pid" to "tid".
2810
953cff56
TT
28112019-10-15 Tom Tromey <tromey@adacore.com>
2812
2813 * gdbarch.h, gdbarch.c: Rebuild.
2814 * gdbarch.sh (gcc_target_options): Change return type to
2815 std::string.
2816 * compile/compile.c (get_args): Update.
2817 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2818 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2819 std::string.
2820 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2821 std::string.
2822 * arch-utils.c (default_gcc_target_options): Return std::string.
2823 * arch-utils.h (default_gcc_target_options): Return std::string.
2824 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2825
81e6b8eb
CB
28262019-10-15 Christian Biesinger <cbiesinger@google.com>
2827
2828 * breakpoint.c (breakpoint_chain): Make static.
2829 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2830 of accessing breakpoint_chain.
2831
95da600f
CB
28322019-10-15 Christian Biesinger <cbiesinger@google.com>
2833
2834 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2835 to a gdb::function_view and return value to bool.
2836 * breakpoint.h (iterate_over_breakpoints): Likewise.
2837 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2838 (pop_dummy_frame): Update.
2839 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2840 (gdbscm_breakpoints): Update.
2841 * python/py-breakpoint.c (build_bp_list): Update.
2842 (gdbpy_breakpoints): Update.
2843 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2844 Update.
2845 (bpfinishpy_handle_stop): Update.
2846 (bpfinishpy_handle_exit): Update.
2847 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2848 (svr4_update_solib_event_breakpoints): Update.
2849
ba18312d
AA
28502019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2851
2852 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2853 when unwrapping single-field structs.
2854
6acc1a0b
SM
28552019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2856
2857 * dwarf2read.c: Remove includes.
2858
284782de
SM
28592019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2860
2861 * ui-out.c (ui_out::call_do_message): Silence
2862 -Wformat-nonliteral warning.
2863
073bbbb0
SM
28642019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2865
2866 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2867 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2868 include: readline/tilde.h.
2869
7b9a15e1
CB
28702019-10-12 Christian Biesinger <cbiesinger@google.com>
2871
2872 * remote.c (remote_target::get_trace_status): Remove declaration of
2873 trace_regblock_size.
2874
cc8dee1f
CB
28752019-10-12 Christian Biesinger <cbiesinger@google.com>
2876
2877 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2878 (show_user): Remove declaration of cmdlist.
2879 * cli/cli-cmds.h (max_user_call_depth): Declare.
2880 * cli/cli-script.c (execute_user_command): Remove declaration
2881 of max_user_call_depth.
2882
a83d4ef6
JW
28832019-10-11 Jim Wilson <jimw@sifive.com>
2884
5f93c5a6
JW
2885 * gdbsupport/print-utils.h (pulongest): Fix comment.
2886 (plongest): Likewise.
2887 (phex): Add missing comment, mention leading zeros.
2888 (phex_nz): Add mention of no leading zeros to comment.
2889
a83d4ef6
JW
2890 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2891 plongest instead of unsigned long long cast.
2892
26344e0c
CB
28932019-10-10 Christian Biesinger <cbiesinger@google.com>
2894
2895 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2896 for external_editor_command and gdbtk_test.
2897
c2c440a9
CB
28982019-10-10 Christian Biesinger <cbiesinger@google.com>
2899
2900 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2901 * varobj.c (varobjdebug): Move comment to...
2902 * varobj.h (varobjdebug): ...here, and declare.
2903
a31bff9d
TT
29042019-10-09 Tom Tromey <tom@tromey.com>
2905
2906 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2907 erase_data_content.
2908
7523da63
TT
29092019-10-09 Tom Tromey <tom@tromey.com>
2910
2911 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2912 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2913 * tui/tui-command.c (tui_cmd_window::resize)
2914 (tui_refresh_cmd_win): Update.
2915 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2916 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2917 * tui/tui-data.c (~tui_gen_win_info): Remove.
2918 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2919 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2920 (tui_redisplay_readline, tui_mld_flush)
2921 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2922 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2923 (tui_data_window::erase_data_content)
2924 (tui_data_item_window::rerender)
2925 (tui_data_item_window::refresh_window): Update.
2926 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2927 (box_win, tui_gen_win_info::make_window)
2928 (tui_gen_win_info::make_visible): Update.
2929 (tui_delete_win): Remove.
2930 * tui/tui-winsource.c
2931 (tui_source_window_base::do_erase_source_content): Update.
2932 (tui_show_source_line, tui_source_window_base::update_tab_width)
2933 (tui_source_window_base::update_exec_info): Update.
2934 * tui/tui-data.h (struct curses_deleter): New.
2935 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2936 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2937
a7798e7f
TT
29382019-10-09 Tom Tromey <tom@tromey.com>
2939
2940 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2941
5c45899e
TT
29422019-10-09 Tom Tromey <tom@tromey.com>
2943
2944 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2945 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2946
6d7fd9aa
TT
29472019-10-09 Tom Tromey <tom@tromey.com>
2948
2949 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2950 window height directly.
2951 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2952 declare.
2953 * tui/tui-layout.c (tui_default_win_height): Remove.
2954 (tui_default_win_viewport_height): Remove.
2955
d2dd1084
TT
29562019-10-09 Tom Tromey <tom@tromey.com>
2957
2958 * tui/tui.h: Remove comments.
2959
cff32449
TV
29602019-10-09 Tom de Vries <tdevries@suse.de>
2961
2962 * python/lib/gdb/printer/bound_registers.py: Use
2963 '^builtin_type_bound128' as regexp argument for
2964 add_builtin_pretty_printer.
2965
6a25e8a2
CB
29662019-10-09 Christian Biesinger <cbiesinger@google.com>
2967
2968 * guile/guile.c (guile_extension_script_ops): Remove forward
2969 declaration and mark as static.
2970 (guile_script_ops): Likewise.
2971 (extension_language_guile): Move further down in the file so
2972 it can reference the definitions for guile_{extension_,}script_ops.
2973
6d9d6da4
AA
29742019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2975
2976 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2977 except SORTL, DFLTCC, and KDSA.
2978
3abea05d
TT
29792019-10-08 Tom Tromey <tromey@adacore.com>
2980
2981 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2982 (struct safe_symbol_file_add_args): Remove.
2983
dde996e2
TT
29842019-10-08 Tom Tromey <tromey@adacore.com>
2985
2986 * windows-nat.c: Don't include buildsym-legacy.h.
2987
cd6fdaa1
TT
29882019-10-08 Tom Tromey <tromey@adacore.com>
2989
2990 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2991
79bb1944
CB
29922019-10-08 Christian Biesinger <cbiesinger@google.com>
2993
2994 * gdbtypes.c (overload_debug): Move comment to header.
2995 * gdbtypes.h (overload_debug): Declare.
2996 * valops.c: Remove declaration of overload_debug, instead
2997 include gdbtypes.h.
2998
34916edc
CB
29992019-10-08 Christian Biesinger <cbiesinger@google.com>
3000
3001 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3002 through _().
3003 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3004 move comment...
3005 * language.h (lang_frame_mismatch_warn): ... here. Also add
3006 declaration.
3007 * top.c (lang_frame_mismatch_warn): Remove declaration.
3008 (check_frame_language_change): Pass lang_frame_mismatch_warn
3009 through _().
3010
bad5c026
CB
30112019-10-07 Christian Biesinger <cbiesinger@google.com>
3012
3013 * c-lang.h (vtbl_ptr_name): Declare.
3014 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3015 it from the header.
3016 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3017
51f1fdc3
CB
30182019-10-07 Christian Biesinger <cbiesinger@google.com>
3019
3020 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3021 gdb_static_assert.
3022
30d1f018
WP
30232019-10-07 Weimin Pan <weimin.pan@oracle.com>
3024
606813d5
WP
3025 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3026 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3027 * ctfread.c: New file.
3028 * ctfread.h: New file.
3029 * elfread.c: Include ctfread.h.
3030 (struct elfinfo text_p): New member ctfsect.
3031 (elf_locate_sections): Mark CTF section.
3032 (elf_symfile_read): Call elfctf_build_psymtabs.
3033 * Makefile.in (LIBCTF): Add.
3034 (CLIBS): Use it.
3035 (CDEPS): Likewise.
3036 (DIST): Add ctfread.c.
606813d5
WP
3037
30382019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3039
3040 * ctfread.c (struct nextfield): Renamed to ...
3041 (struct ctf_nextfield): ... this.
3042 (struct field_info): Renamed to ...
3043 (strut ctf_field_info): ... this.
3044 (attach_fields_to_type): Update for renamed structures.
3045 (ctf_add_member_cb): Likewise.
3046 (ctf_add_enum_member_cb): Likewise.
3047 (process_struct_members): Likewise.
3048 (process_enum_type): Likewise.
30d1f018 3049
518fe38c
WP
30502019-10-07 Weimin Pan <weimin.pan@oracle.com>
3051
3052 * tracectf.h: Rename, was ctf.h.
3053 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3054 * tracefile.c: Likewise.
3055 * tracepoint.c: Remove unused include ctf.h.
3056 * mi/mi-main.c: Likewise.
3057 * Makefile.in Replace ctf.c with tracectf.c.
3058
225f296a
JB
30592019-10-06 Joel Brobecker <brobecker@adacore.com>
3060
3061 * version.in: Change version number to "9.0.50.DATE-git".
3062
77c2dba3
TT
30632019-10-03 Tom Tromey <tom@tromey.com>
3064
3065 PR rust/24976:
3066 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3067
179aed7f
AB
30682019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3071 cp_search_name_hash.
3072 * NEWS: Add entry about nested function support.
3073
0a4b0913
AB
30742019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3075 Andrew Burgess <andrew.burgess@embecosm.com>
3076
3077 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3078 for nested static variables when searchin VAR_DOMAIN.
3079 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3080 global scope, update comment.
3081 (add_partial_subprogram): Call add_partial_subprogram recursively
3082 for nested subroutines when processinng Fortran.
3083 (load_partial_dies): Process the child entities of a subprogram
3084 when processing Fortran.
3085 (partial_die_parent_scope): Handle building scope
3086 for Fortran nested functions.
3087 (process_die): Record that nested functions have a scope.
3088 (new_symbol): Always record Fortran subprograms on the global
3089 symbol list.
3090 (determine_prefix): How to build the prefix for Fortran
3091 subprograms.
3092
d8c06f22
AB
30932019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3094
3095 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3096 have just sent the thread a SIGSTOP and are waiting for it to
3097 arrive.
3098
a8b3b8e9
AB
30992019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3100
3101 * btrace.c (btrace_add_pc): Remove whitespace before the template
3102 parameter in 'std::vector <...>'.
3103 (parse_xml_btrace_block): Likewise.
3104 (btrace_maint_decode_pt): Likewise.
3105 (btrace_maint_update_packets): Likewise.
3106 (btrace_maint_print_packets): Likewise.
3107 * btrace.h (struct btrace_maint_info): Likewise.
3108 * dwarf2read.c (struct type_unit_group): Likewise.
3109 (build_type_psymtabs_reader): Likewise.
3110 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3111 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3112 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3113
4d825eab
TV
31142019-10-03 Tom de Vries <tdevries@suse.de>
3115
3116 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3117 the first line of the help text for set/show style metadata.
3118
80fd2826
TT
31192019-10-02 Tom Tromey <tromey@adacore.com>
3120
3121 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3122 * gdbsupport/common-inferior.c: New file.
3123 * infcmd.c (startup_with_shell): Don't define.
3124 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3125 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3126 * inferior.h (startup_with_shell): Don't declare.
3127
70054538
CB
31282019-10-02 Christian Biesinger <cbiesinger@google.com>
3129
3130 * gdbsupport/gdb_assert.h: Include errors.h.
3131 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3132
37f6a7f4
TT
31332019-10-02 Tom Tromey <tromey@adacore.com>
3134
3135 * NEWS: Add $_ada_exception entry.
3136 * ada-lang.c (struct ada_catchpoint): Add constructor.
3137 <m_kind>: New member.
3138 (allocate_location_exception, re_set_exception): Remove
3139 "ex" parameter.
3140 (should_stop_exception): Compute $_ada_exception.
3141 (check_status_exception, print_it_exception)
3142 (print_one_exception, print_mention_exception): Remove
3143 "ex" parameter.
3144 (allocate_location_catch_exception, re_set_catch_exception)
3145 (check_status_exception, print_it_catch_exception)
3146 (print_one_catch_exception, print_mention_catch_exception)
3147 (print_recreate_catch_exception)
3148 (allocate_location_catch_exception_unhandled)
3149 (re_set_catch_exception_unhandled)
3150 (check_status_exception, print_it_catch_exception_unhandled)
3151 (print_one_catch_exception_unhandled)
3152 (print_mention_catch_exception_unhandled)
3153 (print_recreate_catch_exception_unhandled)
3154 (allocate_location_catch_assert, re_set_catch_assert)
3155 (check_status_assert, print_it_catch_assert)
3156 (print_one_catch_assert, print_mention_catch_assert)
3157 (print_recreate_catch_assert)
3158 (allocate_location_catch_handlers, re_set_catch_handlers)
3159 (check_status_handlers, print_it_catch_handlers)
3160 (print_one_catch_handlers, print_mention_catch_handlers)
3161 (print_recreate_catch_handlers): Remove.
3162 (create_ada_exception_catchpoint): Update.
3163 (initialize_ada_catchpoint_ops): Update.
3164
fccf9de1
TT
31652019-10-02 Tom Tromey <tromey@adacore.com>
3166
3167 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3168 (create_excep_cond_exprs): Simplify exception string computation.
3169 (ada_exception_catchpoint_cond_string): Likewise.
3170
4b610737
TT
31712019-10-02 Tom Tromey <tromey@adacore.com>
3172
3173 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3174 * ada-lang.c (lesseq_defined_than): Handle
3175 LOC_STATIC.
3176 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3177 parameter.
3178 (dwarf2_has_info): Likewise.
3179 (new_symbol): Set maybe_copied on symbol when
3180 appropriate.
3181 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3182 parameter.
3183 <can_copy>: New member.
3184 * elfread.c (record_minimal_symbol): Set maybe_copied
3185 on symbol when appropriate.
3186 (elf_symfile_read): Update call to dwarf2_has_info.
3187 * minsyms.c (lookup_minimal_symbol_linkage): New
3188 function.
3189 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3190 * symtab.c (get_symbol_address, get_msymbol_address):
3191 New functions.
3192 * symtab.h (get_symbol_address, get_msymbol_address):
3193 Declare.
3194 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3195 maybe_copied.
3196 (struct symbol, struct minimal_symbol) <maybe_copied>:
3197 New member.
3198
1dd58850
TT
31992019-10-02 Tom Tromey <tromey@adacore.com>
3200
3201 * source.c (struct current_source_location): New.
3202 (current_source_key): New global.
3203 (current_source_symtab, current_source_line)
3204 (current_source_pspace): Remove.
3205 (get_source_location): New function.
3206 (get_current_source_symtab_and_line)
3207 (set_default_source_symtab_and_line)
3208 (set_current_source_symtab_and_line)
3209 (clear_current_source_symtab_and_line, select_source_symtab)
3210 (info_source_command, print_source_lines_base)
3211 (info_line_command, search_command_helper, _initialize_source):
3212 Update.
3213
5c281dbb
TT
32142019-10-02 Tom Tromey <tromey@adacore.com>
3215
3216 * source.c (select_source_symtab): Don't call
3217 decode_line_with_current_source.
3218
d3d32391
AB
32192019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * symtab.c (lookup_global_symbol): Search global block.
3222
38583298
TT
32232019-10-02 Tom Tromey <tromey@adacore.com>
3224
3225 * coffread.c (process_coff_symbol): Update.
3226 * dwarf2read.c (var_decode_location, new_symbol): Update.
3227 * mdebugread.c (parse_symbol): Update.
3228 * objfiles.c (relocate_one_symbol): Update.
3229 * stabsread.c (define_symbol, fix_common_block)
3230 (scan_file_globals): Update.
3231 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3232 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3233 * xcoffread.c (process_xcoff_symbol): Update.
3234
9344c18f
AA
32352019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3236
3237 * MAINTAINERS: Update my email address.
3238
df07e2c7
AB
32392019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3240
3241 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3242 std::vector.
3243 (build_type_psymtabs_reader): Update for std::vector.
3244 (build_type_psymtab_dependencies): Likewise.
3245 * dwarf2read.h: Remove use of DEF_VEC_P.
3246 (typedef sig_type_ptr): Delete.
3247
554ac434
AB
32482019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3251 to std::vector.
3252 (btrace_maint_decode_pt): Likewise, and move allocation of the
3253 vector outside of the loop.
3254 (btrace_maint_update_packets): Update to handle change from VEC to
3255 std::vector.
3256 (btrace_maint_print_packets): Likewise.
3257 (maint_info_btrace_cmd): Likewise.
3258 * btrace.h: Remove use of DEF_VEC_O.
3259 (typedef btrace_pt_packet_s): Delete.
3260 (struct btrace_maint_info) <packets>: Change fromm VEC to
3261 std::vector.
3262 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3263
46f29a9a
AB
32642019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3265
3266 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3267 make accesses into the vector constant references.
3268 (btrace_add_pc): Update for std::vector.
3269 (btrace_stitch_bts): Likewise.
3270 (parse_xml_btrace_block): Likewise.
3271 (btrace_maint_update_packets): Likewise.
3272 (btrace_maint_print_packets): Likewise.
3273 (maint_info_btrace_cmd): Likewise.
3274 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3275 std::vector.
3276 (btrace_data::empty): Likewise.
3277 (btrace_data_append): Likewise.
3278 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3279 (typedef btrace_block_s): Delete.
3280 (struct btrace_block): Add constructor.
3281 (struct btrace_data_bts) <blocks>: Change to std::vector.
3282 * nat/linux-btrace.c (perf_event_read_bts): Update for
3283 std::vector.
3284 (linux_read_bts): Likewise.
3285
d770d56f
TT
32862019-10-01 Tom Tromey <tom@tromey.com>
3287
3288 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3289
9d636d67
TT
32902019-10-01 Tom Tromey <tom@tromey.com>
3291
3292 * stack.c (print_frame, info_frame_command_core): Use
3293 styled_string.
3294 * linux-thread-db.c (try_thread_db_load_1)
3295 (try_thread_db_load_from_pdir_1): Use styled_string.
3296 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3297 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3298 (maybe_print_unsupported_script_warning)
3299 (maybe_print_script_not_found_warning): Use styled_string.
3300 * ada-lang.c (user_select_syms): Use styled_string.
3301
7f6aba03
TT
33022019-10-01 Tom Tromey <tom@tromey.com>
3303
3304 * p-lang.c (pascal_printstr): Use metadata style.
3305 * value.c (show_convenience): Use metadata style.
3306 * valprint.c (valprint_check_validity, val_print_optimized_out)
3307 (val_print_not_saved, val_print_unavailable)
3308 (val_print_invalid_address, generic_val_print, val_print)
3309 (value_check_printable, val_print_array_elements): Use metadata
3310 style.
3311 * ui-out.h (class ui_out) <field_fmt>: New overload.
3312 <do_field_fmt>: Add style parameter.
3313 * ui-out.c (ui_out::field_fmt): New overload.
3314 * typeprint.c (type_print_unknown_return_type)
3315 (val_print_not_allocated, val_print_not_associated): Use metadata
3316 style.
3317 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3318 parameter.
3319 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3320 * tracepoint.c (tvariables_info_1): Use metadata style.
3321 * stack.c (print_frame_arg, print_frame_info, print_frame)
3322 (info_frame_command_core): Use metadata style.
3323 * skip.c (info_skip_command): Use metadata style.
3324 * rust-lang.c (rust_print_enum): Use metadata style.
3325 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3326 metadata style.
3327 * python/py-framefilter.c (py_print_single_arg): Use metadata
3328 style.
3329 * printcmd.c (do_one_display, print_variable_and_value): Use
3330 metadata style.
3331 * p-valprint.c (pascal_val_print)
3332 (pascal_object_print_value_fields): Use metadata style.
3333 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3334 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3335 parameter.
3336 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3337 * m2-valprint.c (m2_print_long_set): Use metadata style.
3338 * m2-typeprint.c (m2_print_type): Use metadata style.
3339 * infcmd.c (print_return_value_1): Use metadata style.
3340 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3341 * f-valprint.c (info_common_command_for_block): Use metadata
3342 style.
3343 * f-typeprint.c (f_type_print_base): Use metadata style.
3344 * expprint.c (print_subexp_standard): Use metadata style.
3345 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3346 * cli/cli-style.h (class cli_style_option): Add constructor.
3347 (metadata_style): Declare.
3348 * cli/cli-style.c (metadata_style): New global.
3349 (_initialize_cli_style): Register metadata style.
3350 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3351 parameter.
3352 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3353 * c-typeprint.c (c_type_print_base_struct_union)
3354 (c_type_print_base_1): Use metadata style.
3355 * breakpoint.c (watchpoint_value_print)
3356 (print_one_breakpoint_location): Use metadata style.
3357 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3358 style.
3359 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3360 style.
3361 * ada-valprint.c (val_print_packed_array_elements, printstr)
3362 (print_field_values, ada_val_print_ref, ada_val_print): Use
3363 metadata style.
3364 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3365 style.
3366 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3367 style.
3368 * ada-lang.c (user_select_syms): Use metadata style.
3369
14309bb6
TT
33702019-10-01 Tom Tromey <tom@tromey.com>
3371
3372 * cli/cli-cmds.c (pwd_command): Style output.
3373
6a831f06
PA
33742019-10-01 Pedro Alves <palves@redhat.com>
3375 Tom Tromey <tom@tromey.com>
3376
3377 * symtab.c (print_symbol_info): Use %ps.
3378 (print_msymbol_info): Use %ps.
3379 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3380 * printcmd.c (print_variable_and_value): Use %ps.
3381 * macrocmd.c (show_pp_source_pos): Use %ps.
3382 * infrun.c (print_exited_reason): Use ui_out::message.
3383 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3384 (describe_other_breakpoints): Use ui_out::message and new
3385 formats.
3386 (say_where): Use new formats.
3387 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3388 and new formats.
3389
2a3c1174
PA
33902019-10-01 Pedro Alves <palves@redhat.com>
3391 Tom Tromey <tom@tromey.com>
3392
3393 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3394 (test_gdb_formats): New function.
3395 (run_tests): Call it.
3396 (test_format_specifier): Update.
3397 * utils.h (fputs_filtered): Update comment.
3398 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3399 (fputs_styled_unfiltered): Declare.
3400 * utils.c (fputs_styled_unfiltered): New function.
3401 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3402 (vfprintf_filtered): Update.
3403 (vfprintf_unfiltered, vprintf_filtered): Update.
3404 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3405 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3406 disallow_ui_out_field>: New constants.
3407 (enum class field_kind): New.
3408 (struct base_field_s, struct signed_field_s): New.
3409 (signed_field): New function.
3410 (struct string_field_s): New.
3411 (string_field): New function.
3412 (struct styled_string_s): New.
3413 (styled_string): New function.
3414 (class ui_out) <message>: Add comment.
3415 <vmessage, call_do_message>: New methods.
3416 <do_message>: Add style parameter.
3417 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3418 methods.
3419 (ui_out::message): Rewrite.
3420 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3421 parameter.
3422 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3423 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3424 gdb_extensions parameter.
3425 (class format_piece): Add parameter to constructor.
3426 (n_int_args): New field.
3427 * gdbsupport/format.c (format_pieces::format_pieces): Add
3428 gdb_extensions parameter. Handle '*'.
3429 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3430 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3431 vfprintf_styled_no_gdbfmt.
3432 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3433 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3434 unfiltered output.
3435 * ui-style.h (struct ui_file_style) <ptr>: New method.
3436
0dfe5bfb
TT
34372019-10-01 Tom Tromey <tom@tromey.com>
3438
3439 * unittests/format_pieces-selftests.c: Update. Add final format.
3440 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3441 empty literal pieces.
3442
e43b10e1
TT
34432019-10-01 Tom Tromey <tom@tromey.com>
3444
3445 * ui-out.h (enum class ui_out_style_kind): Remove.
3446 (class ui_out) <field_string, field_stsream, do_field_string>:
3447 Change type of "style".
3448 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3449 (ui_out::field_string): Update.
3450 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3451 of "style".
3452 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3453 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3454 * stack.c (print_frame_arg, print_frame_info, print_frame):
3455 Update.
3456 * source.c (print_source_lines_base): Update.
3457 * solib.c (info_sharedlibrary_command): Update.
3458 * skip.c (info_skip_command): Update.
3459 * record-btrace.c (btrace_call_history_src_line)
3460 (btrace_call_history): Update.
3461 * python/py-framefilter.c (py_print_frame): Update.
3462 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3463 "style".
3464 * mi/mi-out.c (mi_ui_out::do_table_header)
3465 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3466 (mi_ui_out::do_field_string): Update.
3467 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3468 Update.
3469 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3470 "style".
3471 * cli-out.c (cli_ui_out::do_table_header)
3472 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3473 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3474 (cli_ui_out::do_field_fmt): Update.
3475 * breakpoint.c (print_breakpoint_location): Update.
3476 (update_static_tracepoint): Update.
3477
cd7c32c3
PW
34782019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3479
3480 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3481 conversion of gdb_datadir.
3482 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3483 remove not needed c_str ().
3484
8fe0f950
AT
34852019-09-30 Ali Tamur <tamur@google.com>
3486
3487 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3488 (dwarf2_string_attr): Likewise.
3489
5f48f8f3
AT
34902019-09-30 Ali Tamur <tamur@google.com>
3491
3492 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3493 (process_full_type_unit): Likewise.
3494 (dump_die_shallow): Likewise.
3495 (cu_debug_loc_section): Likewise.
3496
6fb08628
CB
34972019-09-28 Christian Biesinger <cbiesinger@google.com>
3498
3499 * minsyms.c (compare_minimal_symbols): Rename to...
3500 (minimal_symbol_is_less_than): ...this, and adjust to STL
3501 conventions (return bool, take arguments as references)
3502 (minimal_symbol_reader::install): Call std::sort instead
3503 of qsort.
3504
c7ee338a
CB
35052019-09-29 Christian Biesinger <cbiesinger@google.com>
3506
3507 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3508 hash and why.
3509 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3510 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3511
703a86c2
SM
35122019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3513
3514 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3515 * psympriv.h (add_psymbol_to_list): Move comment here and update
3516 it.
3517
0df0352a
TV
35182019-09-29 Tom de Vries <tdevries@suse.de>
3519
3520 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3521 Use $tmpdir/$(basename "$output_file").dwz instead of
3522 "${output_file}.dwz".
3523
ad75efa6
SM
35242019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3525
3526 PR gdb/25045
3527 * hppa-linux-nat.c: Include gdbarch.h.
3528
ececd218
CB
35292019-09-26 Christian Biesinger <cbiesinger@google.com>
3530
3531 * blockframe.c (find_pc_partial_function): Change return type to bool.
3532 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3533 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3534 (stub_gnu_ifunc_resolve_name): Likewise.
3535 * symtab.c (compare_filenames_for_search): Likewise.
3536 (compare_glob_filenames_for_search): Likewise.
3537 (matching_obj_sections): Likewise.
3538 (symbol_matches_domain): Likewise.
3539 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3540 (find_line_pc): Change return type to bool.
3541 (find_line_pc_range): Likewise.
3542 (producer_is_realview): Likewise.
3543 * symtab.h (symbol_matches_domain): Likewise.
3544 (find_pc_partial_function): Likewise.
3545 (find_pc_line_pc_range): Likewise.
3546 (in_gnu_ifunc_stub): Likewise.
3547 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3548 (find_line_pc): Likewise.
3549 (find_line_pc_range): Likewise.
3550 (matching_obj_sections): Likewise.
3551 (find_line_symtab): Change out parameter to bool.
3552 (producer_is_realview): Change return type to bool.
3553 (compare_filenames_for_search): Likewise.
3554 (compare_glob_filenames_for_search): Likewise.
3555
27a900b8
TT
35562019-09-26 Tom Tromey <tom@tromey.com>
3557
3558 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3559 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3560 * gdb_usleep.h: Remove.
3561 * gdb_usleep.c: Remove.
3562 * utils.c: Don't include gdb_usleep.h.
3563
5d63b30a
TT
35642019-09-26 Tom Tromey <tromey@adacore.com>
3565
3566 * python/py-type.c (type_to_type_object): Call check_typedef
3567 for stub types.
3568
12904d37
TT
35692019-09-26 Tom Tromey <tom@tromey.com>
3570
3571 * utils.h (initialize_utils): Don't declare.
3572 * top.c (gdb_init): Don't call initialize_utils.
3573 * utils.c (initialize_utils): Remove. Move contents...
3574 (_initialize_utils): ... here.
3575
858f25f0
TT
35762019-09-25 Tom Tromey <tom@tromey.com>
3577
3578 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3579 * utils.h (make_hex_string): Don't declare.
3580 * utils.c (make_hex_string): Remove.
3581
3d435220
TV
35822019-09-24 Tom de Vries <tdevries@suse.de>
3583
3584 PR gdb/23815
3585 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3586 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3587
ddd44b70
DD
35882019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3589
3590 * NEWS: Mention new simulator port for PRU.
3591
f945dedf
CB
35922019-09-23 Christian Biesinger <cbiesinger@google.com>
3593
3594 * ada-exp.y (write_object_remaining): Update.
3595 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3596 and eliminate the static buffer.
3597 (ada_decode_symbol): Update.
3598 (ada_la_decode): Update.
3599 (ada_sniff_from_mangled_name): Update.
3600 (is_valid_name_for_wild_match): Update.
3601 (ada_lookup_name_info::matches): Update and simplify.
3602 (name_matches_regex): Update.
3603 (ada_add_global_exceptions): Update.
3604 * ada-lang.h (ada_decode): Update signature.
3605 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3606 * dwarf-index-write.c (debug_names::insert): Update.
3607
7ab78ccb
SM
36082019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3609
3610 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3611 formatting.
3612
9252448b
SM
36132019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3614
3615 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3616 Change "nonzero" to "true" in documentation.
3617
626ca2c0
CB
36182019-09-20 Christian Biesinger <cbiesinger@google.com>
3619
3620 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3621 (_initialize_darwin_solib): Don't set
3622 darwin_so_ops.lookup_lib_global_symbol.
3623 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3624 set_gdbarch_iterate_over_objfiles_in_search_order.
3625 (elf_lookup_lib_symbol): Rename to...
3626 (svr4_iterate_over_objfiles_in_search_order): this, and update
3627 to iterate semantics.
3628 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3629 * solib.c (solib_global_lookup): Remove.
3630 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3631 (solib_global_lookup): Remove.
3632 * symtab.c (lookup_global_or_static_symbol): Remove call to
3633 solib_global_lookup.
3634
5a3a0d63
JB
36352019-09-20 Joel Brobecker <brobecker@adacore.com>
3636
3637 * NEWS: Move entries about default MI version now being
3638 version 3, and about the GDB/MI fix for multi-location
3639 breakpoints to the "since GDB 8.3" section.
3640
ffea1427
JB
36412019-09-20 Joel Brobecker <brobecker@adacore.com>
3642
3643 GDB 8.3.1 released.
3644
abf516c6
UW
36452019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3646
3647 * NEWS: Mention that Cell/B.E. debugging support was removed.
3648 * MAINTAINERS: Remove spu target.
3649
3650 * config/djgpp/fnchange.lst: Remove entries for removed files.
3651
3652 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3653 spu-multiarch.o, and spu-tdep.o.
3654 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3655 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3656 spu-multiarch.c, and spu-tdep.c.
3657 * spu-linux-nat.c: Remove file.
3658 * spu-multiarch.c: Remove file.
3659 * spu-tdep.c: Remove file.
3660 * spu-tdep.h: Remove file.
3661 * solib-spu.c: Remove file.
3662 * solib-spu.h: Remove file.
3663
3664 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3665 * configure.nat (spu-linux): Remove.
3666 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3667 solib-multiarch.o from gdb_target_obs.
3668 (spu*-*-*): Remove.
3669
3670 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3671 feature flag.
3672 (ppc_linux_no_features): Update.
3673 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3674 Cell/B.E. support.
3675 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3676 (tdesc_powerpc_cell64l): Likewise.
3677 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3678 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3679 Cell/B.E. support.
3680 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3681 Do not include "features/rs6000/powerpc-cell32l.c" or
3682 "features/rs6000/powerpc-cell64l.c".
3683 (ppc_linux_spu_section): Remove.
3684 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3685 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3686 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3687 (ppc_linux_spe_context_lookup): Remove.
3688 (ppc_linux_spe_context_inferior_created): Remove.
3689 (ppc_linux_spe_context_solib_loaded): Remove.
3690 (ppc_linux_spe_context_solib_unloaded): Remove.
3691 (ppc_linux_spe_context): Remove.
3692 (struct ppu2spu_cache): Remove.
3693 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3694 (struct ppu2spu_data): Remove.
3695 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3696 ppu2spu_unwind): Remove.
3697 (ppc_linux_init_abi): Remove Cell/B.E. support.
3698 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3699
3700 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3701 (rs6000/powerpc-cell64l-expedite): Likewise
3702 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3703 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3704 rs6000/powerpc-cell64l.xml.
3705 * features/rs6000/powerpc-cell32l.xml: Remove.
3706 * features/rs6000/powerpc-cell64l.xml: Likewise.
3707 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3708 * features/rs6000/powerpc-cell64l.c: Likewise.
3709 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3710 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3711 * regformats/reg-spu.dat: Remove.
3712
3713 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3714 * corelow.c (struct spuid_list): Remove.
3715 (add_to_spuid_list): Remove.
3716 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3717 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3718 (remote_protocol_features): Remove associated entries.
3719 (_initialize_remote): No longer initialize them.
3720 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3721 * linux-nat.c (SPUFS_MAGIC): Remove.
3722 (linux_proc_xfer_spu): Remove.
3723 (spu_enumerate_spu_ids): Remove.
3724 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3725 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3726 (linux_make_corefile_notes): No longer call it.
3727
3728 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3729 (cooked_write_test): Likewise.
3730
78e8cb91
TT
37312019-09-20 Tom Tromey <tom@tromey.com>
3732
3733 * NEWS: Mention case-sensitivity of TUI commands.
3734 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3735 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3736 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3737
f074b67e
TT
37382019-09-20 Tom Tromey <tom@tromey.com>
3739
3740 * tui/tui-source.c (tui_source_window::set_contents): Use
3741 make_unique_xstrdup.
3742 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3743 make_unique_xstrdup.
3744
63c4bf19
TT
37452019-09-20 Tom Tromey <tom@tromey.com>
3746
3747 * tui/tui-data.c: Remove separator comments.
3748 * tui/tui-layout.c: Remove separator comments.
3749 * tui/tui-win.c: Remove separator comments.
3750 * tui/tui-wingeneral.c: Remove separator comments.
3751
43df9b2f
TT
37522019-09-20 Tom Tromey <tom@tromey.com>
3753
3754 * tui/tui.h (strcat_to_buf): Don't declare.
3755 * tui/tui.c (strcat_to_buf): Remove.
3756
7226433c
TT
37572019-09-20 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3760 from "fullname".
3761 * tui/tui-source.c (tui_source_window::set_contents)
3762 (tui_source_window::location_matches_p)
3763 (tui_source_window::maybe_update): Update.
3764
80df3337
TT
37652019-09-20 Tom Tromey <tom@tromey.com>
3766
3767 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3768 Update.
3769 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3770 prefix.
3771 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3772 (tui_data_window::line_from_reg_element_no)
3773 (tui_data_window::first_reg_element_no_inline)
3774 (tui_data_window::show_registers)
3775 (tui_data_window::show_register_group)
3776 (tui_data_window::display_registers_from)
3777 (tui_data_window::display_registers_from_line)
3778 (tui_data_window::first_data_item_displayed)
3779 (tui_data_window::delete_data_content_windows)
3780 (tui_data_window::erase_data_content)
3781 (tui_data_window::do_scroll_vertical)
3782 (tui_data_window::refresh_window)
3783 (tui_data_window::check_register_values): Update.
3784
9923f347
TT
37852019-09-20 Tom Tromey <tom@tromey.com>
3786
3787 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3788 (struct tui_locator_window) <full_name, proc_name>: Now
3789 std::string.
3790 * tui/tui-stack.c (tui_locator_window::make_status_line)
3791 (tui_locator_window::set_locator_fullname)
3792 (tui_locator_window::set_locator_info): Update.
3793 * tui/tui-source.c (tui_source_window::set_contents)
3794 (tui_source_window::showing_source_p): Update.
3795
b76251ab
TT
37962019-09-20 Tom Tromey <tom@tromey.com>
3797
3798 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3799 Don't call tui_locator_win_info_ptr.
3800
0891be08
TT
38012019-09-20 Tom Tromey <tom@tromey.com>
3802
3803 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3804
1b935acf
TT
38052019-09-20 Tom Tromey <tom@tromey.com>
3806
3807 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3808 height for locator.
3809 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3810 * tui/tui-layout.c (show_source_disasm_command, show_data)
3811 (show_source_or_disasm_and_command): Use 1 as height for locator.
3812
9abd8a65
TT
38132019-09-20 Tom Tromey <tom@tromey.com>
3814
3815 * tui/tui.c (tui_enable): Update.
3816 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3817 Update.
3818 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3819 Update.
3820 * tui/tui-data.c (win_resized): Now bool.
3821 (tui_win_resized): Return bool.
3822 (tui_set_win_resized_to): Accept a bool.
3823
b5457826
TT
38242019-09-20 Tom Tromey <tom@tromey.com>
3825
3826 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3827 Change type of "refresh_values_only".
3828 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3829 type of "refresh_values_only".
3830
6b915f7d
TT
38312019-09-20 Tom Tromey <tom@tromey.com>
3832
3833 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3834 std::string.
3835 (tui_disassemble): Add "pos" parameter.
3836 (tui_disasm_window::set_contents): Simplify.
3837
2ad52f6f
TT
38382019-09-20 Tom Tromey <tom@tromey.com>
3839
3840 * tui/tui-winsource.h (struct tui_source_window_base)
3841 <show_source_content>: Now private.
3842 * tui/tui-winsource.c
3843 (tui_source_window_base::show_source_content): Don't handle empty
3844 content case.
3845
b3b1bde6
TT
38462019-09-20 Tom Tromey <tom@tromey.com>
3847
3848 * tui/tui-layout.c (show_source_disasm_command)
3849 (show_source_or_disasm_and_command): Don't call
3850 show_source_content.
3851
71a25ed2
TT
38522019-09-20 Tom Tromey <tom@tromey.com>
3853
3854 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3855 Declare.
3856 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3857 from tui_make_status_line.
3858 (tui_locator_window::rerender): Update.
3859
f8532154
TT
38602019-09-20 Tom Tromey <tom@tromey.com>
3861
3862 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3863 (tui_locator_window::rerender): Update.
3864
2d81b349
TT
38652019-09-20 Tom Tromey <tom@tromey.com>
3866
3867 * tui/tui-winsource.h (struct tui_source_window_base)
3868 <~tui_source_window_base>: Don't declare.
3869 <fullname>: Remove.
3870 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3871 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3872 member.
3873 * tui/tui-source.c (tui_source_window::set_contents): Update.
3874 (tui_source_window::location_matches_p)
3875 (tui_source_window::maybe_update): Update.
3876
f14bec58
TT
38772019-09-20 Tom Tromey <tom@tromey.com>
3878
3879 * tui/tui-winsource.h (~tui_source_element): Remove.
3880 (tui_source_element): Update.
3881 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3882 * tui/tui-winsource.c (tui_show_source_line): Update.
3883 * tui/tui-source.c (tui_source_window::set_contents): Update.
3884 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3885
78d5933a
TT
38862019-09-20 Tom Tromey <tom@tromey.com>
3887
3888 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3889 declare.
3890 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3891 tui_clear_source_windows_detail.
3892 * tui/tui-winsource.h (struct tui_source_window_base)
3893 <clear_detail>: Don't declare.
3894 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3895 Remove.
3896 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3897
d4207696
TT
38982019-09-20 Tom Tromey <tromey@adacore.com>
3899
3900 PR ada/24919:
3901 * block.c (contained_in): Fix final return value.
3902
00f93c44
AM
39032019-09-20 Alan Modra <amodra@gmail.com>
3904
3905 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3906 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3907 (read_indirect_string_from_dwz): Use bfd accessor.
3908 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3909 * machoread.c (macho_symfile_read_all_oso): Likewise.
3910 * solib.c (solib_bfd_open): Likewise.
3911
e4153ae6
CB
39122019-09-19 Christian Biesinger <cbiesinger@google.com>
3913
3914 * eval.c: Move declaration of overload_resolution to...
3915 * value.h: ...here.
3916
c7ae7675
CB
39172019-09-19 Christian Biesinger <cbiesinger@google.com>
3918
3919 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3920 * arm-linux-tdep.c: Likewise.
3921 * arm-nbsd-nat.c: Likewise.
3922 * arm-tdep.h: Declare arm_apcs_32.
3923 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3924
e86f08d2
CB
39252019-09-19 Christian Biesinger <cbiesinger@google.com>
3926
3927 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3928 * dwarf2read.h: Declare dwarf_always_disassemble.
3929
f64e2f40
TV
39302019-09-19 Tom de Vries <tdevries@suse.de>
3931
3932 PR gdb/25009
3933 * source-cache.c (source_cache::ensure): Catch exception thrown during
3934 construction of the highlighter.
3935
fd361982
AM
39362019-09-18 Alan Modra <amodra@gmail.com>
3937
3938 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3939 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3940 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3941 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3942 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3943 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3944 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3945 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3946 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3947 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3948 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3949 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3950 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3951 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3952 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3953 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3954 * mi/mi-interp.c: Update throughout for bfd section macro and
3955 function changes.
3956 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3957 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3958
11061048
TT
39592019-09-18 Tom Tromey <tom@tromey.com>
3960
3961 * NEWS: Add entry.
3962 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3963 call rl_initialize.
3964 (tui_enable): Do not call rl_initialize.
3965
7a27b85f
CG
39662019-09-18 Christian Groessler <chris@groessler.org>
3967
3968 * alpha-linux-nat.c: Include gdbarch.h.
3969
f64eea3a
SM
39702019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3971
3972 * ui-file.c: Include cli/cli-style.h.
3973 (term_cli_styling): Remove cli_styling declaration.
3974
e6f7f6d1
AM
39752019-09-18 Alan Modra <amodra@gmail.com>
3976
3977 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3978 to bfd_asymbol_section.
3979
1d38e9d1
AM
39802019-09-18 Alan Modra <amodra@gmail.com>
3981
3982 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3983 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3984 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3985
90d92a63
AM
39862019-09-18 Alan Modra <amodra@gmail.com>
3987
3988 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3989 * spu-linux-nat.c (spu_bfd_open): Likewise.
3990
a3d181d2
CB
39912019-09-18 Christian Biesinger <cbiesinger@google.com>
3992
3993 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3994 to bool to match definition in dwarf2read.c.
3995
491144b5
CB
39962019-09-17 Christian Biesinger <cbiesinger@google.com>
3997
3998 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3999 (print_signatures): Likewise.
4000 (trust_pad_over_xvs): Likewise.
4001 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4002 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4003 * arm-linux-nat.c (arm_apcs_32): Likewise.
4004 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4005 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4006 * arm-tdep.c (arm_debug): Likewise.
4007 (arm_apcs_32): Likewise.
4008 * auto-load.c (debug_auto_load): Likewise.
4009 (auto_load_gdb_scripts): Likewise.
4010 (global_auto_load): Likewise.
4011 (auto_load_local_gdbinit): Likewise.
4012 (auto_load_local_gdbinit_loaded): Likewise.
4013 * auto-load.h (global_auto_load): Likewise.
4014 (auto_load_local_gdbinit): Likewise.
4015 (auto_load_local_gdbinit_loaded): Likewise.
4016 * breakpoint.c (disconnected_dprintf): Likewise.
4017 (breakpoint_proceeded): Likewise.
4018 (automatic_hardware_breakpoints): Likewise.
4019 (always_inserted_mode): Likewise.
4020 (target_exact_watchpoints): Likewise.
4021 (_initialize_breakpoint): Update.
4022 * breakpoint.h (target_exact_watchpoints): Change to bool.
4023 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4024 * cli/cli-cmds.c (trace_commands): Likewise.
4025 * cli/cli-cmds.h (trace_commands): Likewise.
4026 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4027 to bool*.
4028 * cli/cli-logging.c (logging_overwrite): Change to bool.
4029 (logging_redirect): Likewise.
4030 (debug_redirect): Likewise.
4031 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4032 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4033 to bool.
4034 <boolean_option_def>: Update.
4035 (struct flag_option_def): Change default type of Context to bool
4036 from int.
4037 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4038 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4039 (get_setshow_command_value_string): Likewise.
4040 * cli/cli-style.c (cli_styling): Change to bool.
4041 (source_styling): Likewise.
4042 * cli/cli-style.h (source_styling): Likewise.
4043 (cli_styling): Likewise.
4044 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4045 to bool.
4046 * command.h (var_types): Update comment.
4047 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4048 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4049 bool.
4050 (debug_compile_cplus_scopes): Likewise.
4051 * compile/compile-internal.h (compile_debug): Likewise.
4052 * compile/compile.c (compile_debug): Likewise.
4053 (struct compile_options) <raw>: Likewise.
4054 * cp-support.c (catch_demangler_crashes): Likewise.
4055 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4056 (usr_cmd_cris_dwarf2_cfi): Likewise.
4057 * csky-tdep.c (csky_debug): Likewise.
4058 * darwin-nat.c (enable_mach_exceptions): Likewise.
4059 * dcache.c (dcache_enabled_p): Likewise.
4060 * defs.h (info_verbose): Likewise.
4061 * demangle.c (demangle): Likewise.
4062 (asm_demangle): Likewise.
4063 * dwarf-index-cache.c (debug_index_cache): Likewise.
4064 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4065 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4066 * dwarf2read.c (check_physname): Likewise.
4067 (use_deprecated_index_sections): Likewise.
4068 (dwarf_always_disassemble): Likewise.
4069 * eval.c (overload_resolution): Likewise.
4070 * event-top.c (set_editing_cmd_var): Likewise.
4071 (exec_done_display_p): Likewise.
4072 * event-top.h (set_editing_cmd_var): Likewise.
4073 (exec_done_display_p): Likewise.
4074 * exec.c (write_files): Likewise.
4075 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4076 (debug_fbsd_nat): Likewise.
4077 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4078 Likewise.
4079 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4080 <backtrace_past_entry> Likewise.
4081 * gdb-demangle.h (demangle): Likewise.
4082 (asm_demangle): Likewise.
4083 * gdb_bfd.c (bfd_sharing): Likewise.
4084 * gdbcore.h (write_files): Likewise.
4085 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4086 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4087 * gdbthread.h (print_thread_events): Likewise.
4088 * gdbtypes.c (opaque_type_resolution): Likewise.
4089 (strict_type_checking): Likewise.
4090 * gnu-nat.c (gnu_debug_flag): Likewise.
4091 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4092 * guile/scm-param.c (pascm_variable): Add boolval.
4093 (add_setshow_generic): Update.
4094 (pascm_param_value): Update.
4095 (pascm_set_param_value_x): Update.
4096 * hppa-tdep.c (hppa_debug): Change to bool..
4097 * infcall.c (may_call_functions_p): Likewise.
4098 (coerce_float_to_double_p): Likewise.
4099 (unwind_on_signal_p): Likewise.
4100 (unwind_on_terminating_exception_p): Likewise.
4101 * infcmd.c (startup_with_shell): Likewise.
4102 * inferior.c (print_inferior_events): Likewise.
4103 * inferior.h (startup_with_shell): Likewise.
4104 (print_inferior_events): Likewise.
4105 * infrun.c (step_stop_if_no_debug): Likewise.
4106 (detach_fork): Likewise.
4107 (debug_displaced): Likewise.
4108 (disable_randomization): Likewise.
4109 (non_stop): Likewise.
4110 (non_stop_1): Likewise.
4111 (observer_mode): Likewise.
4112 (observer_mode_1): Likewise.
4113 (set_observer_mode): Update.
4114 (sched_multi): Change to bool.
4115 * infrun.h (debug_displaced): Likewise.
4116 (sched_multi): Likewise.
4117 (step_stop_if_no_debug): Likewise.
4118 (non_stop): Likewise.
4119 (disable_randomization): Likewise.
4120 * linux-tdep.c (use_coredump_filter): Likewise.
4121 (dump_excluded_mappings): Likewise.
4122 * linux-thread-db.c (auto_load_thread_db): Likewise.
4123 (check_thread_db_on_load): Likewise.
4124 * main.c (captured_main_1): Update.
4125 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4126 xx2_opt, boolean_opt>: Change to bool.
4127 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4128 * maint.c (maintenance_profile_p): Likewise.
4129 (per_command_time): Likewise.
4130 (per_command_space): Likewise.
4131 (per_command_symtab): Likewise.
4132 * memattr.c (inaccessible_by_default): Likewise.
4133 * mi/mi-main.c (mi_async): Likewise.
4134 (mi_async_1): Likewise.
4135 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4136 * nat/fork-inferior.h (startup_with_shell): Likewise.
4137 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4138 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4139 * nios2-tdep.c (nios2_debug): Likewise.
4140 * or1k-tdep.c (or1k_debug): Likewise.
4141 * parse.c (parser_debug): Likewise.
4142 * parser-defs.h (parser_debug): Likewise.
4143 * printcmd.c (print_symbol_filename): Likewise.
4144 * proc-api.c (procfs_trace): Likewise.
4145 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4146 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4147 (set_parameter_value): Update.
4148 (add_setshow_generic): Update.
4149 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4150 to bool*.
4151 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4152 int*.
4153 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4154 * record-btrace.c (record_btrace_target::store_registers): Update.
4155 * record-full.c (record_full_memory_query): Change to bool.
4156 (record_full_stop_at_limit): Likewise.
4157 * record-full.h (record_full_memory_query): Likewise.
4158 * remote-notif.c (notif_debug): Likewise.
4159 * remote-notif.h (notif_debug): Likewise.
4160 * remote.c (use_range_stepping): Likewise.
4161 (interrupt_on_connect): Likewise.
4162 (remote_break): Likewise.
4163 * ser-tcp.c (tcp_auto_retry): Likewise.
4164 * ser-unix.c (serial_hwflow): Likewise.
4165 * skip.c (debug_skip): Likewise.
4166 * solib-aix.c (solib_aix_debug): Likewise.
4167 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4168 (spu_auto_flush_cache_p): Likewise.
4169 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4170 Likewise.
4171 (struct info_print_options) <quiet>: Likewise.
4172 * symfile-debug.c (debug_symfile): Likewise.
4173 * symfile.c (auto_solib_add): Likewise.
4174 (separate_debug_file_debug): Likewise.
4175 * symfile.h (auto_solib_add): Likewise.
4176 (separate_debug_file_debug): Likewise.
4177 * symtab.c (basenames_may_differ): Likewise.
4178 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4179 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4180 (struct info_types_options) <quiet>: Likewise.
4181 * symtab.h (demangle): Likewise.
4182 (basenames_may_differ): Likewise.
4183 * target-dcache.c (stack_cache_enabled_1): Likewise.
4184 (code_cache_enabled_1): Likewise.
4185 * target.c (trust_readonly): Likewise.
4186 (may_write_registers): Likewise.
4187 (may_write_memory): Likewise.
4188 (may_insert_breakpoints): Likewise.
4189 (may_insert_tracepoints): Likewise.
4190 (may_insert_fast_tracepoints): Likewise.
4191 (may_stop): Likewise.
4192 (auto_connect_native_target): Likewise.
4193 (target_stop_and_wait): Update.
4194 (target_async_permitted): Change to bool.
4195 (target_async_permitted_1): Likewise.
4196 (may_write_registers_1): Likewise.
4197 (may_write_memory_1): Likewise.
4198 (may_insert_breakpoints_1): Likewise.
4199 (may_insert_tracepoints_1): Likewise.
4200 (may_insert_fast_tracepoints_1): Likewise.
4201 (may_stop_1): Likewise.
4202 * target.h (target_async_permitted): Likewise.
4203 (may_write_registers): Likewise.
4204 (may_write_memory): Likewise.
4205 (may_insert_breakpoints): Likewise.
4206 (may_insert_tracepoints): Likewise.
4207 (may_insert_fast_tracepoints): Likewise.
4208 (may_stop): Likewise.
4209 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4210 (make_thread_apply_all_options_def_group): Change argument from int*
4211 to bool*.
4212 (thread_apply_all_command): Update.
4213 (print_thread_events): Change to bool.
4214 * top.c (confirm): Likewise.
4215 (command_editing_p): Likewise.
4216 (history_expansion_p): Likewise.
4217 (write_history_p): Likewise.
4218 (info_verbose): Likewise.
4219 * top.h (confirm): Likewise.
4220 (history_expansion_p): Likewise.
4221 * tracepoint.c (disconnected_tracing): Likewise.
4222 (circular_trace_buffer): Likewise.
4223 * typeprint.c (print_methods): Likewise.
4224 (print_typedefs): Likewise.
4225 * utils.c (debug_timestamp): Likewise.
4226 (sevenbit_strings): Likewise.
4227 (pagination_enabled): Likewise.
4228 * utils.h (sevenbit_strings): Likewise.
4229 (pagination_enabled): Likewise.
4230 * valops.c (overload_resolution): Likewise.
4231 * valprint.h (struct value_print_options) <prettyformat_arrays,
4232 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4233 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4234 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4235 Likewise.
4236 * windows-nat.c (new_console): Likewise.
4237 (cygwin_exceptions): Likewise.
4238 (new_group): Likewise.
4239 (debug_exec): Likewise.
4240 (debug_events): Likewise.
4241 (debug_memory): Likewise.
4242 (debug_exceptions): Likewise.
4243 (useshell): Likewise.
4244 * windows-tdep.c (maint_display_all_tib): Likewise.
4245 * xml-support.c (debug_xml): Likewise.
4246
f1b620e9
MG
42472019-09-17 Mike Gulick <mgulick@mathworks.com>
4248
4249 * source.c (prepare_path_for_appending): New function.
4250 (openp): Make use of new function.
4251 (find_and_open_source): Search for the compilation directory and
4252 source file as a relative path beneath the directory search path.
4253
67f3ed6a
AB
42542019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4255
4256 * source-cache.c (source_cache::get_line_charpos): Catch
4257 exceptions and return false, this matches the behaviour documented
4258 in the header file.
4259
74332189
JB
42602019-09-17 Joel Brobecker <brobecker@adacore.com>
4261
4262 * ada-tasks.c (info_task): Remove quoting of the task's name.
4263
f2f24aa9
CB
42642019-09-16 Christian Biesinger <cbiesinger@google.com>
4265
4266 * symfile.c (auto_solib_add): Replace comment with a reference
4267 to the header file.
4268
6a062a93
CB
42692019-09-14 Christian Biesinger <cbiesinger@google.com>
4270
4271 * NEWS: Mention that gdb can now be compiled with Python 3
4272 on Windows.
4273
ec6c8338
AB
42742019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4275
4276 * maint.c (maint_print_section_data::maint_print_section_data):
4277 Force use of 'float log10 (float)' by casting the argument to
4278 float.
4279
aa17805f
AB
42802019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4281
4282 * maint.c: Add 'cmath' include.
4283 (struct maint_print_section_data): New structure.
4284 (print_section_index): New function.
4285 (print_bfd_section_info): Add header comment, small whitespace
4286 cleanup, and update to call new print_section_index function.
4287 (print_objfile_section_info): Likewise.
4288 (maint_obj_section_from_bfd_section): New function.
4289 (print_bfd_section_info_maybe_relocated): New function.
4290 (maintenance_info_sections): Add header comment, always use
4291 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4292
3dd9bb46
AB
42932019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4294
4295 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4296 inner scope, add check that the objfile has psymtabs before
4297 checking psymtabs_addrmap.
4298 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4299
4993045d
PW
43002019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4301
4302 * NEWS: Announce that Ada task names are now shown at more places,
4303 and between quotes (except in info task output).
4304 * gdb/ada-tasks.c (task_to_str): New function.
4305 (display_current_task_id): Call task_to_str.
4306 (task_command_1): Likewise.
4307 (print_ada_task_info): In non-mi mode, Properly align headers and data
4308 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4309
7a289707
RO
43102019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4311
4312 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4313 prstatus.pr_lwp.pr_info instead of making it up.
4314
f2aec7f6
CB
43152019-09-11 Christian Biesinger <cbiesinger@google.com>
4316
4317 * auto-load.c (auto_load_expand_dir_vars): Update.
4318 * defs.h (gdb_datadir): Change to std::string.
4319 (python_libdir): Likewise.
4320 (relocate_gdb_directory): Change return type to std::string.
4321 * guile/guile.c (gdbscm_data_directory): Update.
4322 (initialize_scheme_side): Update.
4323 * jit.c (jit_reader_dir): Change to std::string.
4324 (jit_reader_load_command): Update.
4325 * main.c (gdb_datadir): Change to std::string.
4326 (python_libdir): Likewise.
4327 (set_gdb_data_directory): Update.
4328 (relocate_path): Change to return std::string.
4329 (relocate_gdb_directory): Change to return std::string.
4330 (relocate_gdbinit_path_maybe_in_datadir): Update.
4331 (captured_main_1): Update.
4332 * python/python.c (do_start_initialization): Update.
4333 * top.c (show_gdb_datadir): Update.
4334 * xml-syscall.c (xml_init_syscalls_info): Update.
4335 (init_syscalls_info): Update.
4336
9224a013
CB
43372019-09-11 Christian Biesinger <cbiesinger@google.com>
4338
4339 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4340 out of get_init_files.
4341 (get_init_files): Update.
4342
f48cd836
CB
43432019-09-11 Christian Biesinger <cbiesinger@google.com>
4344
4345 * main.c (get_init_files): Change to use std::string.
4346 (captured_main_1): Update.
4347 (print_gdb_help): Update.
4348
9cab7ecd
AT
43492019-09-11 Ali Tamur <tamur@google.com>
4350
4351 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4352 implementation.
4353
67547d89
CB
43542019-09-11 Christian Biesinger <cbiesinger@google.com>
4355
4356 * dbxread.c (read_dbx_symtab): Update.
4357 * dwarf2read.c (load_partial_dies): Update.
4358 * mdebugread.c (parse_partial_symbols): Update.
4359 (handle_psymbol_enumerators): Update.
4360 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4361 * psymtab.c (add_psymbol_to_bcache): Likewise.
4362 (add_psymbol_to_list): Likewise.
4363 * symtab.c (symbol_set_names): Likewise.
4364 * symtab.h (symbol_set_names): Likewise.
4365 * xcoffread.c (scan_xcoff_symtab): Update.
4366
64b2d4a0
TT
43672019-09-11 Tom Tromey <tom@tromey.com>
4368
4369 * symfile-mem.c (symbol_file_add_from_memory): Use
4370 bfd_set_filename.
4371 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4372 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4373
3b00ef10
TT
43742019-09-10 Tom Tromey <tromey@adacore.com>
4375
4376 * dwarf-index-write.c (write_psymbols): Extend error message.
4377 (debug_names::insert): Add Ada code.
4378 (debug_names::write_psymbols): Remove Ada check.
4379 (debug_names) <m_string_obstack>: New member.
4380 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4381 (gdb_index_symbol_name_matcher::matches): Remove.
4382 (mapped_index_base::find_name_components_bounds): Add "lang"
4383 parameter.
4384 (mapped_index_base::build_name_components): Also split names
4385 according to Ada syntax.
4386 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4387 type of "match_callback".
4388 (check_match, check_find_bounds_finds)
4389 (dw2_expand_symtabs_matching): Update.
4390 (dw2_debug_names_iterator): Add new constructor.
4391 (dw2_debug_names_map_matching_symbols): New function.
4392 (dw2_debug_names_expand_symtabs_matching): Update.
4393 (dwarf2_debug_names_functions): Use
4394 dw2_debug_names_map_matching_symbols.
4395
aa391654
TT
43962019-09-10 Tom Tromey <tromey@adacore.com>
4397
4398 * dwarf2read.c (dw2_get_file_names_reader): Add the
4399 CU's file name to the results.
4400
b054970d
TT
44012019-09-10 Tom Tromey <tromey@adacore.com>
4402
4403 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4404 map_matching_symbols. Update.
4405 * dwarf2read.c (dw2_map_matching_symbols): Update.
4406 * psymtab.c (match_partial_symbol): Change type; update.
4407 (psym_map_matching_symbols): Likewise.
4408 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4409 type; update.
4410 * symfile.h (struct quick_symbol_functions)
4411 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4412 Remove "match".
4413
6a3dbf1b
TT
44142019-09-10 Tom Tromey <tromey@adacore.com>
4415
4416 * psymtab.c (map_block): Remove.
4417 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4418 * symtab.c (iterate_over_symbols_terminated): New function.
4419 * symtab.c (iterate_over_symbols_terminated): Declare.
4420
6969f124
TT
44212019-09-10 Tom Tromey <tromey@adacore.com>
4422
4423 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4424 * language.h (struct language_defn) <la_iterate_over_symbols>:
4425 Return bool.
4426 * symtab.c (iterate_over_symbols): Return bool.
4427 * symtab.h (iterate_over_symbols): Return bool.
4428
199b4314
TT
44292019-09-10 Tom Tromey <tromey@adacore.com>
4430
4431 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4432 (add_nonlocal_symbols): Update.
4433 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4434 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4435 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4436 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4437 Change type of "callback". Remove "data".
4438
a084a2a6
AT
4439
44402019-09-09 Ali Tamur <tamur@google.com>
4441
4442 * dwarf2read.c (comp_unit_head): Update comment.
4443 (dwarf2_dwo_name): New function declaration.
4444 (dwarf_unit_type_name): New function declaration.
4445 (read_comp_unit_head): Add support for new compilation units,
4446 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4447 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4448 (currently named as "signature") in their header. Also clarify error
4449 messages.
4450 (lookup_dwo_id): New function. Returns the dwo id of the given
4451 compile unit.
4452 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4453 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4454 functions.
4455 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4456 (dwarf2_dwo_name): Get the dwo name if present.
4457 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4458 purposes.
4459
25a2915e
TT
44602019-09-09 Tom Tromey <tom@tromey.com>
4461
4462 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4463
e4df0874
PW
44642019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4465
4466 * python/python.c (do_start_initialization): Make progname_copy static,
4467 to avoid a leak report.
4468
8634b462
TT
44692019-09-08 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4472
c7f839cb
SM
44732019-09-07 Simon Marchi <simon.marchi@efficios.com>
4474
4475 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4476 Change type to gdb::optional<block_enum>.
4477 (dw2_symtab_iter_init): Change block_index parameter type
4478 to gdb::optional<block_enum>.
4479 (dw2_lookup_symbol): Change block_index parameter
4480 type to block_enum.c
4481 (dw2_debug_names_lookup_symbol): Likewise.
4482 * psymtab.c (psym_lookup_symbol): Likewise.
4483 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4484 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4485 Likewise.
4486
ead0e69a
CB
44872019-09-06 Christian Biesinger <cbiesinger@google.com>
4488
4489 * defs.h (relocate_gdb_directory): Change int to bool in
4490 signature and rename flag to relocatable.
4491 * main.c (relocate_path): Likewise.
4492 (relocate_gdb_directory): Likewise.
4493
b16c44de
AM
44942019-09-06 Alan Modra <amodra@gmail.com>
4495
4496 * coffread.c (coff_symfile_read): Constify filename variable.
4497 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4498 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4499 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4500 * solib.c (reload_shared_libraries_1): Likewise.
4501 * symfile.c (reread_symbols): Likewise.
4502 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4503 * solib-darwin.c (darwin_bfd_open): Likewise.
4504 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4505
06ff036e
AB
45062019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4507
4508 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4509 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4510
4e962e74
TT
45112019-09-03 Tom Tromey <tromey@adacore.com>
4512
4513 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4514 types.
4515 (has_negatives): Unbias a range type bound.
4516 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4517 * gdbtypes.c (operator==): Handle new field.
4518 (create_range_type): Add "bias" parameter.
4519 (create_static_range_type, resolve_dynamic_range): Update.
4520 * gdbtypes.h (struct range_bounds) <bias>: New member.
4521 (create_range_type): Add bias parameter.
4522 * printcmd.c (print_scalar_formatted): Unbias range types.
4523 * value.c (unpack_long): Unbias range types.
4524 (pack_long): Bias range types.
4525
d90b8f26
AH
45262019-09-02 Alan Hayward <alan.hayward@arm.com>
4527
4528 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4529 probe arguments.
4530
fe01123e
AH
45312019-09-02 Alan Hayward <alan.hayward@arm.com>
4532
4533 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4534 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4535 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4536 (compile_probe_arg): Likewise.
4537 * probe.h (get_argument_count): Likewise.
4538 * solib-svr4.c (solib_event_probe_action): Likewise.
4539 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4540
e661ef01
AH
45412019-09-02 Alan Hayward <alan.hayward@arm.com>
4542
4543 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4544 code to here...
4545 (svr4_create_solib_event_breakpoints): ...from here.
4546
47a536d9
SDJ
45472019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4548
4549 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4550 suffix from warning message.
4551
d6a00eba
TT
45522019-08-30 Tom Tromey <tom@tromey.com>
4553
4554 * tui/tui-winsource.h (struct tui_source_window_base)
4555 <refresh_all>: Don't declare.
4556 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4557 Remove.
4558 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4559 tui_show_locator_content.
4560 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4561 declare.
4562 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4563 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4564 declare.
4565
55b2657b
TT
45662019-08-30 Tom Tromey <tom@tromey.com>
4567
4568 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4569
12a8555a
TT
45702019-08-30 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4573 Remove unnecessary forward declarations.
4574
900ac242
TT
45752019-08-30 Tom Tromey <tom@tromey.com>
4576
4577 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4578 rerender.
4579 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4580 tui_show_locator_content.
4581
99ab33fb
TT
45822019-08-30 Tom Tromey <tom@tromey.com>
4583
4584 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4585 (tui_locator_window::rerender): Rewrite using body of previous
4586 tui_show_locator_content.
4587
e594a5d1
TT
45882019-08-30 Tom Tromey <tom@tromey.com>
4589
4590 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4591 set_locator_fullname>: New methods.
4592 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4593 Rename from tui_set_locator_fullname.
4594 (tui_locator_window::set_locator_info): Rename from
4595 tui_set_locator_info. Return bool.
4596 (tui_update_locator_fullname, tui_show_frame_info): Update.
4597
715bb467
TT
45982019-08-30 Tom Tromey <tom@tromey.com>
4599
4600 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4601
772f3f03
TT
46022019-08-30 Tom Tromey <tom@tromey.com>
4603
4604 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4605 call touchwin.
4606
108e13ab
TT
46072019-08-30 Tom Tromey <tom@tromey.com>
4608
4609 * tui/tui-wingeneral.c (box_win): Assume win_info and
4610 win_info->handle cannot be NULL.
4611
cdaa6eb4
TT
46122019-08-30 Tom Tromey <tom@tromey.com>
4613
4614 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4615 refresh_window>: Declare.
4616 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4617 resize.
4618 (tui_data_item_window::rerender): Rename from
4619 tui_display_register.
4620 (tui_data_item_window::refresh_window): New method.
4621 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4622 no-op.
4623
89df7f90
TT
46242019-08-30 Tom Tromey <tom@tromey.com>
4625
4626 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4627 regs_column_count, current_group>: Move later. Now private.
4628 <get_current_group>: New method.
4629 * tui/tui-regs.c (tui_reg_command): Update.
4630 * tui/tui-layout.c (tui_set_layout): Update.
4631
1bf2866a
TT
46322019-08-30 Tom Tromey <tom@tromey.com>
4633
4634 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4635 (tui_data_window::rerender): Don't call
4636 check_and_display_highlight_if_needed.
4637 (tui_data_window::refresh_all): Remove call to
4638 erase_data_content.
4639
0670413d
TT
46402019-08-30 Tom Tromey <tom@tromey.com>
4641
4642 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4643 (tui_data_window::display_registers_from)
4644 (tui_data_window::display_reg_element_at_line)
4645 (tui_data_window::display_registers_from_line): Remove checks of
4646 "empty".
4647
18bb55c7
TT
46482019-08-30 Tom Tromey <tom@tromey.com>
4649
4650 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4651 Don't declare.
4652 * tui/tui-regs.c (tui_data_window::show_registers): Call
4653 rerender.
4654 (tui_data_window::rerender): Rename from display_all_data.
4655 (tui_data_window::rerender): Remove old implementation.
4656
1f6d2f10
TT
46572019-08-30 Tom Tromey <tom@tromey.com>
4658
4659 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4660 text.
4661 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4662
16d01f9c
BW
46632019-08-29 Bernhard Wodok <barto@gmx.net>
4664 Sergio Durigan Junior <sergiodj@redhat.com>
4665
4666 PR win32/24284
4667 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4668
d8f27c60
AB
46692019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4670
4671 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4672 when searching for types.
4673
1f20c35e
AB
46742019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4675
4676 * f-lang.c (f_language_defn): Use f_print_typedef.
4677 * f-lang.h (f_print_typedef): Declare.
4678 * f-typeprint.c (f_print_typedef): Define.
4679
550105b7
CB
46802019-08-27 Christian Biesinger <cbiesinger@google.com>
4681
4682 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4683
4acfdd20
AB
46842019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4685
4686 * cli/cli-utils.c (info_print_options_defs): Delete.
4687 (make_info_print_options_def_group): Delete.
4688 (extract_info_print_options): Delete.
4689 (info_print_command_completer): Delete.
4690 (info_print_args_help): Add extra parameter, and optionally
4691 include text about -n flag.
4692 * cli/cli-utils.h (struct info_print_options): Delete.
4693 (extract_info_print_options): Delete declaration.
4694 (info_print_command_completer): Delete declaration.
4695 (info_print_args_help): Add extra parameter, extend header
4696 comment.
4697 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4698 search_symbols.
4699 * stack.c (struct info_print_options): New type.
4700 (info_print_options_defs): New file scoped variable.
4701 (make_info_print_options_def_group): New static function.
4702 (info_print_command_completer): New static function.
4703 (info_locals_command): Update to use new local functions.
4704 (info_args_command): Likewise.
4705 (_initialize_stack): Add extra parameter to calls to
4706 info_print_args_help.
4707 * symtab.c (search_symbols): Add extra parameter, use this to
4708 possibly excluse non-debug symbols.
4709 (symtab_symbol_info): Add extra parameter, which is passed on to
4710 search_symbols.
4711 (struct info_print_options): New type.
4712 (info_print_options_defs): New file scoped variable.
4713 (make_info_print_options_def_group): New static function.
4714 (info_print_command_completer): New static function.
4715 (info_variables_command): Update to use local functions, and pass
4716 extra parameter through to symtab_symbol_info.
4717 (info_functions_command): Likewise.
4718 (info_types_command): Pass additional argument through to
4719 symtab_symbol_info.
4720 (rbreak_command): Pass extra argument to search_symbols.
4721 (_initialize_symtab): Add extra arguments for calls to
4722 info_print_args_help, and update help text for 'info variables',
4723 'whereis', and 'info functions' commands.
4724 * symtab.h (search_symbols): Add extra argument to declaration.
4725 * NEWS: Mention new flags.
4726
9aa55206
CB
47272019-08-26 Christian Biesinger <cbiesinger@google.com>
4728
4729 * symtab.c (lookup_static_symbol): Call the new function (and move
4730 it down to be next to lookup_global_symbol).
4731 (struct global_sym_lookup_data): Add block_enum member and rename to...
4732 (struct global_or_static_sym_lookup_data): ...this.
4733 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4734 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4735 (lookup_symbol_global_or_static_iterator_cb): ...this.
4736 (lookup_global_or_static_symbol): New function.
4737 (lookup_global_symbol): Call new function.
4738
5c31b358
TV
47392019-08-26 Tom de Vries <tdevries@suse.de>
4740
4741 PR c++/24852
4742 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4743 when pc_probe.prob == NULL.
4744
23c13d42
SM
47452019-08-25 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4748 variable symbol_linkage to symbol_linkage_.
4749
beadd3e8
SM
47502019-08-25 Simon Marchi <simon.marchi@efficios.com>
4751
4752 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4753 represent whether the symbol is static, dynamic, or we don't
4754 know.
4755
e3ec872f
YS
47562019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4757
4758 * gdb/rx-tdep.c (rx_register_names): New.
4759 (rx_register_name): Delete.
4760 (rx_psw_type): Delete.
4761 (rx_fpsw_type): Delete.
4762 (rx_register_type): Delete.
4763 (rx_gdbarch_init): Convert target-descriptions.
4764 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4765 * gdb/features/Makefile: Add rx.xml.
4766 * gdb/features/rx.xml: New.
4767 * gdb/features/rx.c: Generated.
4768 * gdb/NEWS: Mention target description support.
4769
d0509ba4
CB
47702019-08-22 Christian Biesinger <cbiesinger@google.com>
4771
4772 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4773 *slot_ptr.
4774
2d41fa11
SDJ
47752019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4776
4777 * configure.ac: Don't check for 'dlfcn.h' (moved to
4778 gdbsupport/common.m4).
4779 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4780 'gdbsupport/'.
4781 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4782 * compile/compile-c-support.c: Include
4783 'gdbsupport/gdb-dlfcn.h'.
4784 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4785 * gdb-dlfcn.c: Move to...
4786 * gdbsupport/gdb-dlfcn.c: ... here.
4787 * gdb-dlfcn.h: Move to...
4788 * gdbsupport/gdb-dlfcn.h: ... here.
4789
de8af808
SL
47902019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4791
4792 * nios2-tdep.c (struct reg_value): Improve comments. Make
4793 the offset field signed.
4794
27204489
CB
47952019-08-22 Christian Biesinger <cbiesinger@google.com>
4796
4797 * python/lib/gdb/__init__.py (_execute_file): New function.
4798 * python/python.c (python_run_simple_file): Call gdb._execute_file
4799 on Windows.
4800
43771869
AB
48012019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4802
4803 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4804 all uses as this was never set to anything but a zero value.
4805
26c957f1
PA
48062019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4807
4808 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4809
c07aae6e
CB
48102019-08-21 Christian Biesinger <cbiesinger@google.com>
4811
4812 * tui/tui-data.h (tui_gen_win_info): Add an =default
4813 move constructor, required by some GCC versions.
4814
3960cb7a
JF
48152019-08-21 Jinke Fan <fanjinke51@yeah.net>
4816
4817 * go32-nat.c (go32_sysinfo): Add hygon_p.
4818
04c72a68
TT
48192019-08-20 Tom Tromey <tom@tromey.com>
4820
4821 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4822 line_from_reg_element_no, first_reg_element_no_inline,
4823 display_all_data, delete_data_content_windows,
4824 erase_data_content>: Now private.
4825
072272ce
TT
48262019-08-20 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4829 (tui_unhighlight_win, tui_highlight_win)
4830 (tui_win_info::make_window): Update.
4831 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4832
973961bd
TT
48332019-08-20 Tom Tromey <tom@tromey.com>
4834
4835 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4836 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4837 (MAX_PID_WIDTH): Move to tui-stack.c.
4838 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4839 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4840 (MAX_PID_WIDTH): Move from tui-data.h.
4841
ab0e1f1a
TT
48422019-08-20 Tom Tromey <tom@tromey.com>
4843
4844 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4845 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4846 (box_win): Update.
4847 (tui_gen_win_info::make_window): Rename from tui_make_window.
4848 (tui_win_info::make_window): New method.
4849 (tui_gen_win_info::make_visible): Update.
4850 * tui/tui-source.c (tui_source_window::set_contents): Update.
4851 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4852 (tui_data_window::display_registers_from): Update.
4853 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4854 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4855 Declare.
4856 <can_box>: Remove.
4857 <title>: Remove.
4858 (struct tui_win_info) <make_window>: Declare.
4859 <can_box>: Now virtual.
4860 <title>: New member.
4861 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4862 * tui/tui-command.c (tui_cmd_window::resize): Update.
4863
100c2bf3
TT
48642019-08-20 Tom Tromey <tom@tromey.com>
4865
4866 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4867 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4868 (tui_data_window::check_register_values): Update.
4869
fa4dc567
TT
48702019-08-20 Tom Tromey <tom@tromey.com>
4871
4872 * tui/tui-regs.h (struct tui_data_window): Use
4873 DISABLE_COPY_AND_ASSIGN.
4874 <regs_content>: Change type, removing unique_ptr.
4875 <tui_data_window>: Add move constructor.
4876 * tui/tui-regs.c (tui_data_window::show_registers)
4877 (tui_data_window::show_register_group)
4878 (tui_data_window::display_registers_from)
4879 (tui_data_window::display_registers_from)
4880 (tui_data_window::first_data_item_displayed)
4881 (tui_data_window::delete_data_content_windows)
4882 (tui_data_window::rerender, tui_data_window::refresh_window)
4883 (tui_data_window::check_register_values): Update.
4884
ca02d7c8
TT
48852019-08-20 Tom Tromey <tom@tromey.com>
4886
4887 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4888 show_register_group>: Declare.
4889 (tui_show_register_group): Don't declare.
4890 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4891 tui_show_registers.
4892 (tui_data_window::show_register_group): Rename from
4893 tui_show_register_group.
4894 (tui_data_window::check_register_values, tui_reg_command):
4895 Update.
4896 * tui/tui-layout.c (tui_set_layout): Update.
4897
63356bfd
TT
48982019-08-20 Tom Tromey <tom@tromey.com>
4899
4900 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4901 Declare.
4902 (tui_check_register_values): Don't declare.
4903 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4904 from tui_check_register_values.
4905 * tui/tui-hooks.c (tui_register_changed): Update.
4906
42cc14a7
TT
49072019-08-20 Tom Tromey <tom@tromey.com>
4908
4909 * tui/tui-regs.c (tui_reg_layout): Move later.
4910 (tui_show_registers): Don't enable TUI mode or change layout.
4911
b9ad3686
TT
49122019-08-20 Tom Tromey <tom@tromey.com>
4913
4914 * tui/tui-regs.h (struct tui_data_item_window)
4915 <~tui_data_item_window>: Remove.
4916 <content>: Now a unique_xmalloc_ptr.
4917 * tui/tui-regs.c (tui_register_format): Return a
4918 unique_xmalloc_ptr.
4919 (tui_get_register): Update.
4920 (~tui_data_item_window): Remove.
4921 (tui_data_window::display_registers_from, tui_display_register):
4922 Update.
4923 * tui/tui-io.h (tui_expand_tabs): Update.
4924 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4925 Remove "col" parameter.
4926
8e114aab
TT
49272019-08-20 Tom Tromey <tom@tromey.com>
4928
4929 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4930 field.
4931 * tui/tui-regs.c (~tui_data_item_window): Update.
4932
1a4f81dd
TT
49332019-08-20 Tom Tromey <tom@tromey.com>
4934
4935 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4936 earlier.
4937
0f8d8876
TT
49382019-08-20 Tom Tromey <tom@tromey.com>
4939
4940 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4941
605dc2c2
TT
49422019-08-20 Tom Tromey <tom@tromey.com>
4943
4944 * tui/tui-source.h (struct tui_source_window): Update.
4945 * tui/tui-regs.c (tui_show_registers): Update.
4946 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4947 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4948 (NO_REGS_STRING): Remove defines.
4949
aedbe3bb
CM
49502019-08-20 Conrad Meyer <cem@FreeBSD.org>
4951
4952 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4953 unnecessary thread walk if remote doesn't support the packet.
4954
7ce8f214
TT
49552019-08-19 Tom Tromey <tromey@adacore.com>
4956
4957 * python/py-value.c (value_has_field): Fix indentation.
4958
f21c2bd7
TT
49592019-08-19 Tom Tromey <tromey@adacore.com>
4960
4961 * printcmd.c (do_one_display, info_display_command): Update.
4962 * block.h (contained_in): Return bool. Add allow_nested
4963 parameter.
4964 * block.c (contained_in): Return bool. Add allow_nested
4965 parameter.
4966
d806ea2d
TT
49672019-08-19 Tom Tromey <tom@tromey.com>
4968
4969 * configure: Rebuild.
4970 * configure.ac: Disallow the combination of -static-libstdc++ and
4971 source highlight.
4972 * source-cache.c (get_language_name): Handle rust.
4973 (source_cache::get_source_lines): Ignore highlighting exceptions.
4974
398fdd60
TT
49752019-08-16 Tom Tromey <tom@tromey.com>
4976
4977 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4978 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4979 (struct tui_source_window_base) <make_visible, refresh_window,
4980 resize>: Remove methods.
4981 <execution_info>: Remove field.
4982 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4983 (tui_show_source_line, tui_source_window_base)
4984 (~tui_source_window_base): Update.
4985 (tui_source_window_base::resize)
4986 (tui_source_window_base::make_visible)
4987 (tui_source_window_base::refresh_window): Remove.
4988 (tui_source_window_base::update_exec_info): Update.
4989 * tui/tui-source.c (tui_source_window::set_contents): Update.
4990 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4991
e699d331
TT
49922019-08-16 Tom Tromey <tom@tromey.com>
4993
4994 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4995 deprecated_query_hook.
4996
bb01dbfc
TT
49972019-08-16 Tom Tromey <tom@tromey.com>
4998
4999 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5000 (tui_update_source_windows_with_line): Update.
5001 * tui/tui-source.h (struct tui_source_window)
5002 <show_symtab_source>: Declare.
5003 (tui_show_symtab_source): Don't declare.
5004 * tui/tui-source.c (tui_show_symtab_source): Rename from
5005 tui_show_symtab_source.
5006
81c82c4b
TT
50072019-08-16 Tom Tromey <tom@tromey.com>
5008
5009 * tui/tui-winsource.h (struct tui_source_window_base)
5010 <set_contents>: Declare.
5011 * tui/tui-winsource.c
5012 (tui_source_window_base::update_source_window_as_is): Update.
5013 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5014 Declare.
5015 (tui_set_source_content): Don't declare.
5016 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5017 tui_set_source_content.
5018 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5019 Declare.
5020 (tui_set_disassem_content): Don't declare.
5021 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5022 tui_set_disassem_content.
5023
2ddaf614
TT
50242019-08-16 Tom Tromey <tom@tromey.com>
5025
5026 * tui/tui-winsource.h (struct tui_source_window_base)
5027 <update_breakpoint_info>: Declare.
5028 (tui_update_breakpoint_info): Don't declare.
5029 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5030 (tui_update_all_breakpoint_info): Update.
5031 (tui_source_window_base::update_breakpoint_info): Rename from
5032 tui_update_breakpoint_info.
5033 (tui_source_window_base::update_exec_info): Update.
5034
017f9828
TT
50352019-08-16 Tom Tromey <tom@tromey.com>
5036
5037 * tui/tui-winsource.h (struct tui_source_window_base)
5038 <update_source_window>: Declare.
5039 (tui_update_source_window): Don't declare.
5040 * tui/tui-winsource.c
5041 (tui_source_window_base::update_source_window): Rename from
5042 tui_update_source_window.
5043 (tui_source_window_base::rerender): Update.
5044 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5045 * tui/tui-disasm.c (tui_show_disassem)
5046 (tui_show_disassem_and_update_source)
5047 (tui_disasm_window::maybe_update): Update.
5048
ed8358e9
TT
50492019-08-16 Tom Tromey <tom@tromey.com>
5050
5051 * tui/tui-winsource.h (struct tui_source_window_base)
5052 <update_source_window_as_is>: Declare.
5053 (tui_update_source_window_as_is): Don't declare.
5054 * tui/tui-winsource.c (tui_update_source_window): Update
5055 (tui_source_window_base::update_source_window_as_is): Rename from
5056 tui_update_source_window_as_is.
5057 (tui_source_window_base::refill): Update.
5058 * tui/tui-source.c (tui_show_symtab_source): Update.
5059 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5060 Update.
5061
20149b6b
TT
50622019-08-16 Tom Tromey <tom@tromey.com>
5063
5064 * tui/tui-winsource.h (tui_update_source_window)
5065 (tui_update_source_window_as_is): Remove "noerror" parameter.
5066 * tui/tui-winsource.c (tui_update_source_window)
5067 (tui_update_source_window_as_is): Remove "noerror" parameter.
5068 (tui_update_source_windows_with_addr)
5069 (tui_update_source_windows_with_line)
5070 (tui_source_window_base::rerender)
5071 (tui_source_window_base::refill): Update.
5072 * tui/tui-source.h (tui_set_source_content)
5073 (tui_show_symtab_source): Remove "noerror" parameter.
5074 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5075 parameter.
5076 (tui_show_symtab_source): Likewise.
5077 (tui_source_window::maybe_update): Update.
5078 * tui/tui-disasm.c (tui_show_disassem)
5079 (tui_show_disassem_and_update_source)
5080 (tui_disasm_window::do_scroll_vertical)
5081 (tui_disasm_window::maybe_update): Update.
5082
2d83e710
TT
50832019-08-16 Tom Tromey <tom@tromey.com>
5084
5085 * tui/tui.c (tui_is_window_visible): Update.
5086 * tui/tui-wingeneral.c (tui_make_window)
5087 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5088 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5089 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5090 (tui_set_win_height_command, parse_scrolling_args): Update.
5091 * tui/tui-source.c (tui_source_window::style_changed): Update.
5092 * tui/tui-regs.c (tui_show_registers)
5093 (tui_data_window::first_data_item_displayed)
5094 (tui_data_window::delete_data_content_windows)
5095 (tui_check_register_values, tui_reg_command): Update.
5096 * tui/tui-disasm.c (tui_show_disassem): Update.
5097 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5098 method.
5099 <is_visible>: Remove field.
5100 * tui/tui-data.c (tui_next_win, tui_prev_win)
5101 (tui_delete_invisible_windows): Update.
5102
d4ab829a
TT
51032019-08-16 Tom Tromey <tom@tromey.com>
5104
5105 * tui/tui-winsource.h (struct tui_source_window_base)
5106 <m_has_locator>: Remove.
5107 * tui/tui-layout.c (show_source_disasm_command, show_data)
5108 (show_source_or_disasm_and_command): Update.
5109
aa7ca1bb
AH
51102019-08-16 Alan Hayward <alan.hayward@arm.com>
5111
5112 * NEWS (Other MI changes): New subsection.
5113 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5114 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5115 * arch-utils.c (default_get_pc_address_flags): New function.
5116 * arch-utils.h (default_get_pc_address_flags): New declaration.
5117 * gdbarch.sh: Add get_pc_address_flags.
5118 * gdbarch.c: Regenerate.
5119 * gdbarch.h: Likewise.
5120 * stack.c (print_pc): New function.
5121 (print_frame_info) (print_frame): Call print_pc.
5122
6eac171f
TV
51232019-08-16 Tom de Vries <tdevries@suse.de>
5124
5125 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5126 print_objfile_section_info.
5127
3df505f6
TT
51282019-08-15 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5131 calling update_cmdwin_start_line.
5132 * tui/tui-winsource.h (struct tui_source_window_base)
5133 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5134 <rerender>: Declare.
5135 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5136 Call rerender.
5137 (tui_source_window_base::set_new_height): Remove.
5138 (tui_source_window_base::rerender): Rename from
5139 do_make_visible_with_new_height.
5140 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5141 resize method.
5142 (tui_win_info::make_invisible_and_set_new_height)
5143 (tui_win_info::make_visible_with_new_height): Remove.
5144 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5145 Declare.
5146 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5147 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5148 do_make_visible_with_new_height>: Don't declare.
5149 <rerender>: Declare.
5150 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5151 set_new_height.
5152 (tui_data_window::do_make_visible_with_new_height): Remove.
5153 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5154 call tui_show_locator_content.
5155 (tui_gen_win_info::resize): Call rerender.
5156 (show_source_or_disasm_and_command): Don't call
5157 tui_show_locator_content.
5158 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5159 method.
5160 (struct tui_win_info) <rerender>: Declare.
5161 <set_new_height, make_invisible_and_set_new_height,
5162 make_visible_with_new_height>: Don't declare.
5163 * tui/tui-data.c (tui_win_list::rerender): New method.
5164 * tui/tui-command.h (struct tui_cmd_window)
5165 <do_make_visible_with_new_height>: Don't declare.
5166 * tui/tui-command.c
5167 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5168
272560b5
TT
51692019-08-15 Tom Tromey <tromey@adacore.com>
5170
5171 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5172 * ada-lang.c (ada_enum_name): Likewise.
5173
08235187
CB
51742019-08-15 Christian Biesinger <cbiesinger@google.com>
5175
5176 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5177 leading underscore.
5178 (GdbOutputErrorFile): Likewise.
5179 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5180 accordingly.
5181 (execute_unwinders): Rename to have a leading underscore.
5182 (auto_load_packages): Likewise.
5183 (global scope): Adjust call to auto_load_packages accordingly.
5184 (GdbSetPythonDirectory): Likewise.
5185 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5186 instead of execute_unwinders.
5187
db502012
TT
51882019-08-15 Tom Tromey <tom@tromey.com>
5189
5190 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5191 (show_data): Don't change window visibility.
5192 (tui_gen_win_info::resize): Remove special case for command
5193 window. Use wresize, when available.
5194 (show_source_or_disasm_and_command): Don't change window
5195 visibility.
5196 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5197 <make_visible>: New method.
5198 * tui/tui-command.c (tui_cmd_window::resize): New method.
5199
3891b65e
TT
52002019-08-15 Tom Tromey <tom@tromey.com>
5201
5202 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5203 (struct tui_source_windows): New.
5204 * tui/tui-winsource.c (tui_display_main): Update.
5205 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5206 (new_height_ok, parse_scrolling_args): Update.
5207 * tui/tui-layout.c (show_layout, show_data): Update.
5208 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5209 (tui_add_to_source_windows): Don't declare.
5210 * tui/tui-data.c (source_windows, tui_source_windows)
5211 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5212
ee556432
TT
52132019-08-15 Tom Tromey <tom@tromey.com>
5214
5215 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5216 Rename from reset.
5217 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5218 * tui/tui-layout.c (show_source_disasm_command, show_data):
5219 Update.
5220 (tui_gen_win_info::resize): Rename.
5221 (show_source_or_disasm_and_command): Update.
5222 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5223 reset.
5224
46f438e3
TT
52252019-08-15 Tom Tromey <tom@tromey.com>
5226
5227 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5228 * tui/tui-interp.c (tui_interp::init): Don't call
5229 tui_initialize_static_data.
5230 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5231
f4ce562c
TT
52322019-08-15 Tom Tromey <tom@tromey.com>
5233
5234 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5235 examine tui_win_list.
5236
c398c3d0
TT
52372019-08-15 Tom Tromey <tom@tromey.com>
5238
5239 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5240 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5241 tui_clear_source_content.
5242 (tui_clear_source_content): Remove.
5243 (tui_source_window_base::do_erase_source_content): Hoist call to
5244 content.clear().
5245 * tui/tui-stack.c (tui_show_frame_info): Don't call
5246 tui_clear_source_content.
5247
e25d2004
TT
52482019-08-15 Tom Tromey <tom@tromey.com>
5249
5250 * tui/tui-winsource.h (struct tui_source_window_base)
5251 <do_erase_source_content>: New method.
5252 <erase_source_content>: New method.
5253 (tui_erase_source_content): Don't declare.
5254 * tui/tui-winsource.c (tui_clear_source_content): Update.
5255 (tui_source_window_base::do_erase_source_content): Rename from
5256 tui_erase_source_content.
5257 (tui_source_window_base::show_source_content): Update.
5258 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5259 * tui/tui-source.h (struct tui_source_window)
5260 <erase_source_content>: New method.
5261 * tui/tui-disasm.h (struct tui_disasm_window)
5262 <erase_source_content>: New method.
5263
002f15c2
TT
52642019-08-15 Tom Tromey <tom@tromey.com>
5265
5266 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5267 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5268 constructor.
5269 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5270 * tui/tui-source.c (tui_set_source_content): Update.
5271 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5272
c9033fe8
TT
52732019-08-15 Tom Tromey <tom@tromey.com>
5274
5275 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5276 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5277 tui-source.c.
5278 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5279 Declare.
5280 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5281 method.
5282 (tui_source_window::maybe_update): Update.
5283
088f37dd
TT
52842019-08-15 Tom Tromey <tom@tromey.com>
5285
5286 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5287 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5288 tui-disasm.c.
5289 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5290 Declare.
5291 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5292 method.
5293 (tui_disasm_window::maybe_update): Update.
5294
a54700c6
TT
52952019-08-15 Tom Tromey <tom@tromey.com>
5296
5297 * tui/tui-winsource.h (struct tui_source_window_base)
5298 <maybe_update>: Declare.
5299 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5300 method.
5301 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5302 Declare.
5303 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5304 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5305 Declare.
5306 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5307
e2a678a5
TT
53082019-08-15 Tom Tromey <tom@tromey.com>
5309
5310 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5311
f2dda477
TT
53122019-08-15 Tom Tromey <tom@tromey.com>
5313
5314 * tui/tui-wingeneral.c: Include tui-stack.h.
5315 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5316 (struct tui_locator_window): Move from tui-data.h.
5317 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5318 (tui_initialize_static_data): Move from tui-data.c.
5319 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5320 (struct tui_locator_window): Move to tui-stack.c.
5321 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5322 (tui_initialize_static_data): Move to tui-stack.c.
5323
ed4a1084
TT
53242019-08-15 Tom Tromey <tom@tromey.com>
5325
5326 * tui/tui-layout.c (show_source_disasm_command)
5327 (show_source_or_disasm_and_command): Use make_visible method, not
5328 tui_make_window.
5329 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5330 Remove.
5331
65962b20
TT
53322019-08-15 Tom Tromey <tom@tromey.com>
5333
5334 * tui/tui-wingeneral.h (tui_make_window): Update.
5335 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5336 parameter.
5337 (tui_gen_win_info::make_visible): Update.
5338 * tui/tui-regs.c (tui_data_window::display_registers_from):
5339 Update.
5340 * tui/tui-layout.c (show_source_disasm_command)
5341 (show_source_or_disasm_and_command): Update.
5342 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5343 (enum tui_box): Remove.
5344 (struct tui_win_info) <can_box>: New method.
5345 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5346 method.
5347
2208ee91
TV
53482019-08-15 Tom de Vries <tdevries@suse.de>
5349
5350 * linux-nat-trad.c: Include gdbarch.h.
5351
75faf5c4
AH
53522019-08-14 Alan Hayward <alan.hayward@arm.com>
5353
5354 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5355 register sizes.
5356
b1c896b3
TT
53572019-08-14 Tom Tromey <tromey@adacore.com>
5358
5359 * darwin-nat.c: Include gdbarch.h.
5360 * darwin-nat-info.c: Include gdbarch.h.
5361
6405cd73
TT
53622019-08-13 Tom Tromey <tom@tromey.com>
5363
5364 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5365 Remove.
5366 * tui/tui-data.c (tui_initialize_static_data): Update.
5367
5216580d
TT
53682019-08-13 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-winsource.h (struct tui_exec_info_window)
5371 <~tui_exec_info_window, maybe_allocate_content, get_content,
5372 m_content>: Remove.
5373 (struct tui_source_window_base) <set_exec_info_content,
5374 show_exec_info_content>: Don't declare.
5375 * tui/tui-winsource.c
5376 (tui_exec_info_window::maybe_allocate_content): Remove.
5377 (tui_source_window_base::update_exec_info): Rename from
5378 set_exec_info_content.
5379 (tui_source_window_base::show_exec_info_content)
5380 (tui_source_window_base::update_exec_info): Remove.
5381
93858ad3
TT
53822019-08-13 Tom Tromey <tom@tromey.com>
5383
5384 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5385 declare.
5386 * tui/tui-winsource.c (tui_update_source_window_as_is)
5387 (tui_update_source_windows_with_addr, tui_erase_source_content):
5388 Update.
5389 (tui_clear_exec_info_content): Remove.
5390
e321e7ce
TT
53912019-08-13 Tom Tromey <tom@tromey.com>
5392
5393 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5394 declare.
5395 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5396 call tui_erase_exec_info_content.
5397 (tui_clear_exec_info_content): Rename from
5398 tui_erase_exec_info_content.
5399 (tui_clear_exec_info_content): Delete.
5400
8270ac62
TT
54012019-08-13 Tom Tromey <tom@tromey.com>
5402
5403 * tui/tui-winsource.h (struct tui_source_window_base)
5404 <show_exec_info_content>: Declare.
5405 (tui_show_exec_info_content): Don't declare.
5406 * tui/tui-winsource.c
5407 (tui_source_window_base::show_exec_info_content): Rename from
5408 tui_show_exec_info_content.
5409 (tui_source_window_base::update_exec_info): Update.
5410
7b56485d
TT
54112019-08-13 Tom Tromey <tom@tromey.com>
5412
5413 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5414 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5415 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5416 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5417 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5418 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5419 ... here.
5420
7ba913dc
TT
54212019-08-13 Tom Tromey <tom@tromey.com>
5422
5423 * tui/tui-winsource.h (struct tui_source_window_base)
5424 <update_exec_info>: Declare.
5425 (tui_update_exec_info): Don't declare.
5426 * tui/tui-winsource.c (tui_update_source_window_as_is)
5427 (tui_source_window_base::refresh_all)
5428 (tui_update_all_breakpoint_info): Update.
5429 (tui_source_window_base::update_exec_info): Rename from
5430 tui_update_exec_info.
5431 * tui/tui-stack.c (tui_show_frame_info): Update.
5432
37a4a131
TT
54332019-08-13 Tom Tromey <tom@tromey.com>
5434
5435 * tui/tui-winsource.h (struct tui_source_window_base)
5436 <set_exec_info_content>: Declare.
5437 (tui_set_exec_info_content): Don't declare.
5438 * tui/tui-winsource.c
5439 (tui_source_window_base::set_exec_info_content): Rename from
5440 tui_set_exec_info_content.
5441 (tui_update_exec_info): Update.
5442
0bd27e07
TT
54432019-08-13 Tom Tromey <tom@tromey.com>
5444
5445 * tui/tui-winsource.h (struct tui_source_window_base)
5446 <show_source_content>: Declare.
5447 (tui_show_source_content): Don't declare.
5448 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5449 (tui_source_window_base::show_source_content): Rename from
5450 tui_show_source_content.
5451 (tui_source_window_base::refresh_all): Update.
5452 * tui/tui-layout.c (show_source_disasm_command)
5453 (show_source_or_disasm_and_command): Update.
5454
b4ef5aeb
TT
54552019-08-13 Tom Tromey <tom@tromey.com>
5456
5457 * tui/tui-winsource.c (tui_erase_source_content)
5458 (tui_show_source_content, tui_source_window_base::refresh_all):
5459 Update.
5460 * tui/tui-wingeneral.h
5461 (tui_check_and_display_highlight_if_needed): Don't declare.
5462 * tui/tui-wingeneral.c
5463 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5464 check_and_display_highlight_if_needed.
5465 * tui/tui-win.c (tui_rehighlight_all)
5466 (tui_win_info::make_visible_with_new_height): Update.
5467 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5468 (tui_data_window::erase_data_content)
5469 (tui_data_window::display_all_data): Update.
5470 * tui/tui-data.h (struct tui_win_info)
5471 <check_and_display_highlight_if_needed>: Declare.
5472
fede5273
TT
54732019-08-13 Tom Tromey <tom@tromey.com>
5474
5475 * tui/tui-win.c (tui_resize_all): Call
5476 tui_delete_invisible_windows.
5477 * tui/tui-layout.c (show_layout): Call
5478 tui_delete_invisible_windows.
5479 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5480 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5481
22c3f490
TT
54822019-08-13 Tom Tromey <tom@tromey.com>
5483
5484 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5485 tui_add_win_to_layout.
5486
16cb7910
TT
54872019-08-13 Tom Tromey <tom@tromey.com>
5488
5489 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5490 * tui/tui-layout.c (tui_default_win_height): Now static.
5491
cc0c3ffb
TT
54922019-08-13 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5495 single switch.
5496 (show_source_disasm_command, show_source_or_disasm_and_command):
5497 Don't check current layout.
5498
3f3ffe54
TT
54992019-08-13 Tom Tromey <tom@tromey.com>
5500
5501 * tui/tui-wingeneral.c (make_all_visible): Remove.
5502 (tui_make_all_invisible): Simplify.
5503 * tui/tui-layout.c (tui_make_all_invisible): Move from
5504 tui-wingeneral.c; simplify.
5505 (show_layout): Hoist call to tui_make_all_invisible.
5506 (show_data): Don't call tui_make_all_invisible.
5507
69258091
TT
55082019-08-13 Tom Tromey <tom@tromey.com>
5509
5510 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5511 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5512
62cf57fe
TT
55132019-08-13 Tom Tromey <tom@tromey.com>
5514
5515 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5516 tui-data.c.
5517 (show_source_disasm_command, show_data)
5518 (show_source_or_disasm_and_command): Don't use
5519 tui_set_current_layout_to.
5520 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5521 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5522 tui-layout.c.
5523 (tui_set_current_layout_to): Remove.
5524
2afade5d
TT
55252019-08-13 Tom Tromey <tom@tromey.com>
5526
5527 * tui/tui-layout.c (tui_set_layout): Update.
5528 * tui/tui-data.h (struct tui_layout_def): Remove.
5529 (tui_layout_def): Don't declare.
5530 * tui/tui-data.c (layout_def): Remove.
5531 (tui_layout_def): Remove.
5532
a3504e96
TT
55332019-08-13 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui-winsource.h (struct tui_source_window_base)
5536 <clear_detail>: No longer "override".
5537 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5538 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5539 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5540 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5541 Remove.
5542 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5543
29c92911
TT
55442019-08-13 Tom Tromey <tromey@adacore.com>
5545
5546 * tracepoint.c: Don't include readline.h or history.h.
5547
86c6b807
TT
55482019-08-12 Tom Tromey <tom@tromey.com>
5549
5550 * configure: Rebuild.
5551 * configure.ac: Check for readline 7.
5552 * NEWS: Mention readline 7 requirement.
5553 * README: Update.
5554
5db2718c
TT
55552019-08-12 Tom Tromey <tom@tromey.com>
5556
5557 * mingw-hdep.c (gdb_select): Remove readline hack.
5558
dac36daf
PFC
55592019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5560
5561 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5562 when the function fails.
5563
1022c627
AA
55642019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5565
5566 * s390-tdep.c (s390_type_align): New function.
5567 (s390_gdbarch_init): Set it as type_align gdbarch method.
5568
eba4caf2
TV
55692019-08-09 Tom de Vries <tdevries@suse.de>
5570
5571 PR gdb/24591
5572 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5573 pc_low with relocation offset.
5574
123cd851
TT
55752019-08-07 Tom Tromey <tromey@adacore.com>
5576
5577 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5578 (print_frame_args): Update.
5579 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5580 Update.
5581 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5582 * frame.h (struct frame_arg): Add initializers.
5583 <error>: Now a unique_xmalloc_ptr.
5584
3d31bc39
AH
55852019-08-07 Alan Hayward <alan.hayward@arm.com>
5586
5587 * NEWS: Expand the Pointer Authentication entry.
5588 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5589 (aarch64_frame_unmask_lr): ... to this.
5590 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5591 Call aarch64_frame_unmask_lr.
5592 * frame.c (struct frame_info): Add "masked" variable.
5593 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5594 (fprint_frame): Check for masked pc.
5595 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5596 declarations.
5597 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5598 * stack.c (print_frame): Check for masked pc.
5599
0cf9feb9
TT
56002019-08-06 Tom Tromey <tom@tromey.com>
5601
5602 * stabsread.c (patch_block_stabs, read_one_struct_field)
5603 (read_enum_type): Use obstack_strndup.
5604 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5605 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5606 * dwarf2read.c (guess_full_die_structure_name)
5607 (anonymous_struct_prefix): Use obstack_strndup.
5608 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5609 * c-exp.y (yylex): Use obstack_strndup.
5610 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5611 (write_var_or_type): Use obstack_strndup.
5612
efba19b0
TT
56132019-08-06 Tom Tromey <tom@tromey.com>
5614
5615 * symfile.c (reread_symbols): Use obstack_strdup.
5616 * stabsread.c (read_type): Use obstack_strdup.
5617 * gdb_obstack.h (obstack_strdup): New overload.
5618 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5619 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5620 (dwarf2_canonicalize_name): Use obstack_strdup.
5621 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5622 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5623 Use obstack_strdup.
5624
f25102f7
TT
56252019-08-06 Tom Tromey <tom@tromey.com>
5626
5627 * gdb_obstack.h (obstack_strdup): Define.
5628 * gdb_obstack.c (obstack_strdup): Don't define.
5629
021887d8
TT
56302019-08-06 Tom Tromey <tom@tromey.com>
5631
5632 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5633 obstack_strdup.
5634 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5635 obstack_strdup.
5636 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5637 * stabsread.c (common_block_start): Use obstack_strdup.
5638 * objfiles.c (set_objfile_main_name, objfile): Use
5639 obstack_strdup.
5640 * namespace.c (add_using_directive): Use obstack_strdup.
5641 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5642 * jit.c (finalize_symtab): Use obstack_strdup.
5643 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5644 (guess_partial_die_structure_name, partial_die_info::fixup)
5645 (dwarf2_name): Use obstack_strdup.
5646 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5647 obstack_strdup.
5648 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5649 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5650 obstack_strdup.
5651 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5652
d2834edc
PW
56532019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5654
5655 * unittests/help-doc-selftests.c: New file.
5656 * Makefile.in: Add the new file.
5657
590042fc
PW
56582019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5659
5660 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5661 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5662 the full first line, except when FOR_VALUE_PREFIX. In this case,
5663 the trailing '.' is not output, and the first character is uppercased.
5664 (print_help_for_command): Update call to print_doc_line.
5665 (print_doc_of_command): Likewise.
5666 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5667 * cli/cli-option.c (append_indented_doc): Do not append newline.
5668 (build_help_option): Append newline after first appended_indented_doc
5669 only if a second call is done.
5670 (build_help): Append 2 new lines before each option, except the first
5671 one.
5672 * compile/compile.c (_initialize_compile): Add new lines after
5673 %OPTIONS%, when not at the end of the help.
5674 Change help doc or code
5675 producing the help doc to respect the invariants.
5676 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5677 Also removed the new line after 'Options:', as all other commands
5678 do not put an empty line between 'Options:' and the first option.
5679 * printcmd.c (_initialize_printcmd): Likewise.
5680 * stack.c (_initialize_stack): Likewise.
5681 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5682 incorrectly telling COMMAND is optional.
5683 * ada-lang.c (_initialize_ada_language): Change help doc or code
5684 producing the help doc to respect the invariants.
5685 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5686 * breakpoint.c (_initialize_breakpoint): Likewise.
5687 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5688 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5689 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5690 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5691 _initialize_cli_style): Likewise.
5692 * corelow.c (core_target_info): Likewise.
5693 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5694 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5695 * filesystem.c (_initialize_filesystem): Likewise.
5696 * frame.c (_initialize_frame): Likewise.
5697 * gnu-nat.c (add_task_commands): Likewise.
5698 * infcall.c (_initialize_infcall): Likewise.
5699 * infcmd.c (_initialize_infcmd): Likewise.
5700 * interps.c (_initialize_interpreter): Likewise.
5701 * language.c (_initialize_language): Likewise.
5702 * linux-fork.c (_initialize_linux_fork): Likewise.
5703 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5704 * maint.c (_initialize_maint_cmds): Likewise.
5705 * memattr.c (_initialize_mem): Likewise.
5706 * printcmd.c (_initialize_printcmd): Likewise.
5707 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5708 _RegEx): Likewise.
5709 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5710 * record-btrace.c (_initialize_record_btrace): Likewise.
5711 * record-full.c (_initialize_record_full): Likewise.
5712 * record.c (_initialize_record): Likewise.
5713 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5714 * regcache.c (_initialize_regcache): Likewise.
5715 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5716 _initialize_remote): Likewise.
5717 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5718 * serial.c (_initialize_serial): Likewise.
5719 * skip.c (_initialize_step_skip): Likewise.
5720 * source.c (_initialize_source): Likewise.
5721 * stack.c (_initialize_stack): Likewise.
5722 * symfile.c (_initialize_symfile): Likewise.
5723 * symtab.c (_initialize_symtab): Likewise.
5724 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5725 * top.c (init_main): Likewise.
5726 * tracefile-tfile.c (tfile_target_info): Likewise.
5727 * tracepoint.c (_initialize_tracepoint): Likewise.
5728 * tui/tui-win.c (_initialize_tui_win): Likewise.
5729 * utils.c (add_internal_problem_command): Likewise.
5730 * valprint.c (value_print_option_defs): Likewise.
5731
404f2902
FCE
57322019-08-06 Frank Ch. Eigler <fche@redhat.com>
5733
5734 PR build/24886
5735 * configure.ac: Drop enable-libmcheck support.
5736 * configure, config.in: Rebuild.
5737 * libmcheck.m4: Remove.
5738 * acinclude.m4: Don't include it.
5739 * Makefile.in: Don't distribute it.
5740 * top.c (print_gdb_configuration): Don't mention it.
5741
046bebe1
TT
57422019-08-06 Tom Tromey <tom@tromey.com>
5743
5744 * utils.c (set_output_style): Sometimes pass stream to
5745 emit_style_escape.
5746 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5747 * record-btrace.c (btrace_insn_history): Update.
5748 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5749 method.
5750 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5751 Update initializers.
5752 <m_uiout>: New field.
5753 <m_di>: Move lower.
5754 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5755 Remove "uiout" parameter.
5756 (dump_insns): Update.
5757 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5758 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5759
ddbcedf5
CB
57602019-08-06 Christian Biesinger <cbiesinger@google.com>
5761
5762 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5763 (error_in_psymtab_expansion): Likewise.
5764 (lookup_symbol_via_quick_fns): Likewise.
5765 (basic_lookup_transparent_type_quick): Likewise.
5766 (basic_lookup_transparent_type_1): Likewise.
5767
b08b16c8
TT
57682019-08-06 Tom Tromey <tromey@adacore.com>
5769
5770 * source.c (last_source_error): Now bool.
5771 (print_source_lines_base): Make "noprint" bool. Only open
5772 source file when last_source_visited changes.
5773
cb44333d
TT
57742019-08-06 Tom Tromey <tromey@adacore.com>
5775
5776 * annotate.c (annotate_source_line): Use g_source_cache.
5777 * source-cache.c (source_cache::get_plain_source_lines): Change
5778 parameters. Populate m_offset_cache.
5779 (source_cache::ensure): New method.
5780 (source_cache::get_line_charpos): New method.
5781 (extract_lines): Move lower. Change parameters.
5782 (source_cache::get_source_lines): Move lower.
5783 * source-cache.h (class source_cache): Update comment.
5784 <get_line_charpos>: New method.
5785 <get_source_lines>: Update comment.
5786 <clear>: Clear m_offset_cache.
5787 <get_plain_source_lines>: Change parameters.
5788 <ensure>: New method
5789 <m_offset_cache>: New member.
5790 * source.c (forget_cached_source_info_for_objfile): Update.
5791 (info_source_command): Use g_source_cache.
5792 (find_source_lines, open_source_file_with_line_charpos): Remove.
5793 (print_source_lines_base, search_command_helper): Use g_source_cache.
5794 * source.h (open_source_file_with_line_charpos): Don't declare.
5795 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5796 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5797 Use g_source_cache.
5798
872dceaa
TT
57992019-08-06 Tom Tromey <tromey@adacore.com>
5800
5801 * source-cache.c (source_cache::get_plain_source_lines):
5802 Remove "first_line" and "last_line" parameters.
5803 (source_cache::get_source_lines): Cache plain text.
5804 * source-cache.h (class source_cache)
5805 <get_plain_source_lines>: Update.
5806
269249d9
TT
58072019-08-06 Tom Tromey <tromey@adacore.com>
5808
5809 * source-cache.c (extract_lines): No longer a method.
5810 Changed type of parameter. Include final newline.
5811 (selftests::extract_lines_test): New function.
5812 (_initialize_source_cache): Likewise.
5813 * source-cache.h (class source_cache)
5814 <extract_lines>: Don't declare.
5815
c0e8dcd8
TT
58162019-08-06 Tom Tromey <tromey@adacore.com>
5817
5818 * breakpoint.c (init_breakpoint_sal): Update.
5819 (breakpoint): Update.
5820 * breakpoint.h (struct breakpoint) <filter>: Now a
5821 unique_xmalloc_ptr.
5822
0b27c27d
CB
58232019-08-05 Christian Biesinger <cbiesinger@google.com>
5824
5825 * NEWS: Mention dictionary access on blocks.
5826 * python/py-block.c (blpy_getitem): New function.
5827 (block_object_as_mapping): New struct.
5828 (block_object_type): Use new struct for tp_as_mapping field.
5829
4ee94178
CB
58302019-08-05 Christian Biesinger <cbiesinger@google.com>
5831
5832 * objfiles.h (objfile): Add a comment describing partial symbols.
5833
8abfcabc
TT
58342019-08-05 Tom Tromey <tromey@adacore.com>
5835
5836 * compile/compile.c (_initialize_compile): Use _(), not N_().
5837 * thread.c (_initialize_thread): Use _(), not N_().
5838 * stack.c (_initialize_stack): Use _(), not N_().
5839 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5840
2b79f376
SM
58412019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5842
5843 * dwarf2read.c (struct dw2_symtab_iterator):
5844 <want_specific_block>: Remove.
5845 <block_index>: Change type to gdb::optional.
5846 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5847 change type of BLOCK_INDEX parameter to gdb::optional.
5848 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5849 (dw2_lookup_symbol): Don't pass argument for
5850 WANT_SPECIFIC_BLOCK.
5851 (dw2_expand_symtabs_for_function): Don't pass argument for
5852 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5853 (class dw2_debug_names_iterator)
5854 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5855 parameter, change BLOCK_INDEX type to gdb::optional.
5856 <m_want_specific_block>: Remove.
5857 <m_block_index>: Change type to gdb::optional.
5858 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5859 gdb::optional. Re-write in function of gdb::optional.
5860 (dw2_debug_names_lookup_symbol): Don't pass argument for
5861 WANT_SPECIFIC_BLOCK.
5862 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5863 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5864 BLOCK_INDEX.
5865
ae60f04e
PW
58662019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5867
5868 * NEWS: Mention changes to "info sources" command.
5869
28cd9371
PW
58702019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5871
5872 * symtab.c (filename_partial_match_opts): New struct type.
5873 (struct output_source_filename_data): New members
5874 regexp, c_regexp, partial_match.
5875 (output_source_filename): Use new members to decide to print file.
5876 (info_sources_option_defs): New variable.
5877 (make_info_sources_options_def_group, print_info_sources_header,
5878 info_sources_command_completer):
5879 New functions.
5880 (info_sources_command): Read new optional arguments.
5881 (_initialize_symtab): Update info sources help.
5882
ca683e3a
AO
58832019-08-02 Alexandre Oliva <oliva@adacore.com>
5884
5885 * ada-lang.c (exception_support_info_v0): Renamed from...
5886 (default_exception_support_info): ... this. Create new
5887 definition for v1.
5888 (ada_has_this_exception_support): Look up catch_handlers_sym.
5889 (ada_exception_support_info_sniffer): Try v0 after default.
5890
f1264162
TT
58912019-08-01 Tom Tromey <tromey@adacore.com>
5892
5893 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5894 gdbarch.h.
5895
0a7b2485
CB
58962019-08-01 Christian Biesinger <cbiesinger@google.com>
5897
5898 * s12z-tdep.c: Fix include path for s12z-opc.h.
5899
c6bdbeb7
AH
59002019-08-01 Alan Hayward <alan.hayward@arm.com>
5901
5902 * NEWS: Require GNU make 3.82.
5903
a2bd7b82
TT
59042019-07-16 Tom Tromey <tom@tromey.com>
5905
5906 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5907 declare.
5908
aa3b6533
TT
59092019-07-30 Tom Tromey <tromey@adacore.com>
5910
5911 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5912
a1530dc7
KB
59132019-07-30 Kevin Buettner <kevinb@redhat.com>
5914
5915 * printcmd.c (print_address_symbolic): Print negative offsets.
5916 (build_address_symbolic): Force signed arithmetic when computing
5917 offset.
5918
2906593f
CB
59192019-07-30 Christian Biesinger <cbiesinger@google.com>
5920
5921 PR/24474: Add a function to lookup static variables.
5922 * NEWS: Mention this new function.
5923 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5924 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5925 * python/python.c (python_GdbMethods): Add new function.
5926
c620ed88
CB
59272019-07-29 Christian Biesinger <cbiesinger@google.com>
5928
5929 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5930 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5931 (objfpy_lookup_static_symbol): New function.
5932 (objfile_object_methods): Add new functions.
5933
bc4268a5
PW
59342019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5935
5936 * NEWS: Mention 'set|show print frame-info'. Mention new
5937 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5938 backtrace argument. Mention that python frame filtering code
5939 is now consistent with what 'backtrace' command prints.
5940
4b5e8d19
PW
59412019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5942
5943 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5944 comments.
5945 (print_frame_info_auto, print_frame_info_source_line,
5946 print_frame_info_location, print_frame_info_source_and_location,
5947 print_frame_info_location_and_address, print_frame_info_short_location):
5948 New declarations.
5949 (struct frame_print_options): New member print_frame_info.
5950 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5951 * stack.h (get_user_print_what_frame_info): New declaration.
5952 (frame_show_address): New declaration.
5953 * stack.c (print_frame_arguments_choices): New value 'presence'.
5954 (print_frame_info_auto, print_frame_info_source_line,
5955 print_frame_info_location, print_frame_info_source_and_location,
5956 print_frame_info_location_and_address, print_frame_info_short_location,
5957 print_frame_info_choices, print_frame_info_print_what): New definitions.
5958 (print_frame_args): Only print dots for args if print frame-arguments
5959 is 'presence'.
5960 (frame_print_option_defs): New element for "frame-info".
5961 (get_user_print_what_frame_info): New function.
5962 (frame_show_address): Make non static. Move comment to stack.h.
5963 (print_frame_info_to_print_what): New function.
5964 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5965 to decide what to print.
5966 (backtrace_command_1): Handle the new print_frame_arguments_presence
5967 value.
5968 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5969 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5970 (py_print_frame): In non-mi mode, use LOCATION as default for
5971 print_what, similarly to frame information printed directly by
5972 backtrace command. Handle frame-info user option in non MI mode.
5973
6bdfee81
KB
59742019-07-27 Kevin Buettner <kevinb@redhat.com>
5975
5976 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5977 Add case for debugging 32-bit target on 64-bit host. Revise
5978 comment.
5979
98a617f8
KB
59802019-07-27 Kevin Buettner <kevinb@redhat.com>
5981
5982 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5983 instead of find_function_entry_range_from_pc.
5984
567238c9
KB
59852019-07-27 Kevin Buettner <kevinb@redhat.com>
5986
5987 * stack.c (find_frame_funname): Remove code which preferred
5988 minsym over symtab sym in "certain pathological cases".
5989
2dc80cf8
KB
5990 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5991 parameter. Change type of "do_demangle" to bool.
5992 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5993 Pass suitable "prefer_sym_over_minsym" flag to
5994 build_address_symbolic(). Don't output "+" for negative offsets.
5995 * printcmd.c (print_address_symbolic): Update invocation of
5996 build_address_symbolic to include a "prefer_sym_over_minsym"
5997 flag.
5998 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5999 Restrict cases in which use of minimal symbol is preferred to that
6000 of a found symbol. Update comments.
6001
1aff7173
KB
6002 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6003 for entry pc when entry pc is out of range for that FDE.
6004
89b085ac
BC
60052019-07-26 Brian Callahan <bcallah@openbsd.org>
6006
6007 PR gdb/24839:
6008 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6009 type.
6010
f32feb4a
CB
60112019-07-25 Christian Biesinger <cbiesinger@google.com>
6012
6013 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6014 this function's Python signature.
6015
6016
60172019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6018
6019 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6020 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6021 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6022 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6023 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6024
6025
c54e4253
YS
60262019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6027
6028 * h8300-tdep.c (h8300_register_name_common): New.
6029 h8300_register_name): Use h8300_register_name_common.
6030 (h8300s_register_name): Likewise.
6031 (h8300sx_register_name): Likewise.
6032 (h8300h_register_nam): New.
6033 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6034
6035
40eadf04
SP
60362019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6037
6038 * arm-tdep.c (arm_skip_cmse_entry): New function.
6039 (arm_is_sgstubs_section): New function.
6040 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6041
bfa2a36d
TT
60422019-07-22 Tom Tromey <tom@tromey.com>
6043
6044 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6045 Don't self-assign.
6046
a8e9d247
AB
60472019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6050 type_print.
6051
eb86c5e2
AB
60522019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6053
6054 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6055 so that GDB doesn't match any msymbols when searching in the
6056 TYPES_DOMAIN.
6057 (print_symbol_info): Print using typedef_print or type_print based
6058 on the type of the symbol. Add updated FIXME comment moved from...
6059 (_initialize_symtab): ... move and update FIXME comment to above.
6060
a8eab7c6
AB
60612019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6062
6063 * NEWS: Mention adding -q option to "info types".
6064 * symtab.c (struct info_types_options): New struct.
6065 (info_types_options_defs): New variable.
6066 (make_info_types_options_def_group): New function.
6067 (info_types_command): Use gdb::option framework to parse options.
6068 (info_types_command_completer): New function.
6069 (_initialize_symtab): Extend the help text on "info types" and
6070 register command completer.
6071
b4603c34
CB
60722019-07-21 Christian Biesinger <cbiesinger@google.com>
6073
6074 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6075 (lookup_symbol_in_objfile): Change int to block_enum and add a
6076 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6077
c8cdc1e0
CB
60782019-07-20 Christian Biesinger <cbiesinger@google.com>
6079
6080 * MAINTAINERS (Write After Approval): Add self.
6081
01e175fe
AB
60822019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6083
6084 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6085 instruction to the dummy code region.
6086
56f79b63
TT
60872019-07-19 Tom Tromey <tromey@adacore.com>
6088
6089 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6090 (ARGSUSED, PARAMS, __func__): Remove rules.
6091
4c5aa8e0
AH
60922019-07-19 Alan Hayward <alan.hayward@arm.com>
6093
6094 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6095 * features/arm/arm-with-iwmmxt.c: Remove.
6096 * features/arm/arm-with-iwmmxt.xml: Remove.
6097 * features/arm/arm-with-m-fpa-layout.c: Remove.
6098 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6099 * features/arm/arm-with-m-vfp-d16.c: Remove.
6100 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6101 * features/arm/arm-with-m.c: Remove.
6102 * features/arm/arm-with-m.xml: Remove.
6103 * features/arm/arm-with-neon.c: Remove.
6104 * features/arm/arm-with-neon.xml: Remove.
6105 * features/arm/arm-with-vfpv2.c: Remove.
6106 * features/arm/arm-with-vfpv2.xml: Remove.
6107 * features/arm/arm-with-vfpv3.c: Remove.
6108 * features/arm/arm-with-vfpv3.xml: Remove.
6109
f42b2617
AH
61102019-07-19 Alan Hayward <alan.hayward@arm.com>
6111
6112 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6113
f29ec966
AH
61142019-07-19 Alan Hayward <alan.hayward@arm.com>
6115
6116 * arch/aarch32.c (aarch32_create_target_description): Create
6117 target descriptions using features.
6118 * arch/arm.c (arm_create_target_description)
6119 (arm_create_mprofile_target_description): Likewise.
6120 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6121
d105cce5
AH
61222019-07-19 Alan Hayward <alan.hayward@arm.com>
6123
6124 * Makefile.in: Add new files.
6125 * aarch32-tdep.c: New file.
6126 * aarch32-tdep.h: New file.
6127 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6128 Call aarch32_read_description.
6129 * arch/aarch32.c: New file.
6130 * arch/aarch32.h: New file.
6131 * arch/arm.c (arm_create_target_description)
6132 (arm_create_mprofile_target_description): New function.
6133 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6134 (arm_create_target_description)
6135 (arm_create_mprofile_target_description): New declaration.
6136 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6137 read_description functions.
6138 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6139 Likewise.
6140 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6141 * arm-tdep.c (tdesc_arm_list): New variable.
6142 (arm_register_g_packet_guesses): Call create description functions.
6143 (arm_read_description) (arm_read_mprofile_description): New
6144 function.
6145 * arm-tdep.h (arm_read_description)
6146 (arm_read_mprofile_description): Add declaration.
6147 * configure.tgt: Add new files.
6148
afe09f0b
GL
61492019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6150
6151 * top.c (new_ui_command): Open specified terminal just once.
6152
cd215b2e
TT
61532019-07-18 Tom Tromey <tromey@adacore.com>
6154
6155 * symtab.c (main_name): Constify return type.
6156 * symfile.c (set_initial_language): Update.
6157 * symtab.h (main_name): Constify return type.
6158
d8f68fcb
TT
61592019-07-17 Tom Tromey <tom@tromey.com>
6160
6161 * tui/tui-winsource.c (tui_update_source_window)
6162 (tui_update_source_window_as_is)
6163 (tui_update_source_windows_with_line): Remove return.
6164 * tui/tui-disasm.c (tui_show_disassem)
6165 (tui_show_disassem_and_update_source): Remove return.
6166 * tui/tui.c (tui_reset): Remove return.
6167 * tui/tui-wingeneral.c
6168 (tui_check_and_display_highlight_if_needed): Remove return.
6169
ca5af91e
TT
61702019-07-17 Tom Tromey <tom@tromey.com>
6171
6172 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6173
5104fe36
TT
61742019-07-17 Tom Tromey <tom@tromey.com>
6175
6176 * tui/tui-winsource.h (struct tui_exec_info_window)
6177 (struct tui_source_window_base): Move from tui-data.h.
6178 * tui/tui-winsource.c: Move many method definitions from
6179 elsewhere. Remove "structuring" comments.
6180 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6181 (tui_source_window_base::refresh_window): Move to
6182 tui-winsource.c.
6183 * tui/tui-win.c (tui_source_window_base::refresh_all)
6184 (tui_source_window_base::update_tab_width)
6185 (tui_source_window_base::set_new_height)
6186 (tui_source_window_base::do_make_visible_with_new_height): Move to
6187 tui-winsource.c.
6188 * tui/tui-source.h: Update.
6189 * tui/tui-source.c (tui_source_window_base::reset): Move to
6190 tui-winsource.c.
6191 * tui/tui-disasm.h: Update.
6192 * tui/tui-data.h (struct tui_exec_info_window): Move to
6193 tui-winsource.h.
6194 (struct tui_source_window_base): Likewise.
6195 * tui/tui-data.c (tui_source_window_base::clear_detail)
6196 (tui_source_window_base, ~tui_source_window_base): Move to
6197 tui-winsource.c.
6198
daa15dde
TT
61992019-07-17 Tom Tromey <tom@tromey.com>
6200
6201 * tui/tui-win.c (tui_resize_all)
6202 (tui_source_window_base::update_tab_width)
6203 (tui_adjust_win_heights): Update.
6204 (tui_win_info::make_invisible_and_set_new_height): Rename from
6205 make_invisible_and_set_new_height.
6206 * tui/tui-data.h (struct tui_win_info)
6207 <make_invisible_and_set_new_height>: New method.
6208
bfad4537
TT
62092019-07-17 Tom Tromey <tom@tromey.com>
6210
6211 * tui/tui.c: Update.
6212 * tui/tui-source.h (struct tui_source_window): Move from
6213 tui-data.h.
6214 * tui/tui-layout.c: Update.
6215 * tui/tui-disasm.c: Update.
6216 * tui/tui-data.h (struct tui_source_window): Move to
6217 tui-source.h.
6218
88f7e873
TT
62192019-07-17 Tom Tromey <tom@tromey.com>
6220
6221 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6222 tui-data.h.
6223 * tui/tui-data.h (struct tui_disasm_window): Move to
6224 tui-disasm.h.
6225
96bd6233
TT
62262019-07-17 Tom Tromey <tom@tromey.com>
6227
6228 * tui/tui-regs.h (struct tui_data_item_window): Move from
6229 tui-data.h.
6230 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6231 * tui/tui-data.h (struct tui_data_item_window): Move to
6232 tui-regs.h.
6233 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6234
ce38393b
TT
62352019-07-17 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui.c: Update.
6238 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6239 (tui_cmd_window::max_height): Move to tui-command.c.
6240 * tui/tui-layout.c: Update.
6241 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6242 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6243 tui-command.c.
6244 * tui/tui-command.h (struct tui_cmd_window): Move from
6245 tui-data.h.
6246 * tui/tui-command.c: Remove "structuring" comments.
6247 (tui_cmd_window::clear_detail)
6248 (tui_cmd_window::do_make_visible_with_new_height)
6249 (tui_cmd_window::max_height): Move from elsewhere.
6250
2d8b51cb
TT
62512019-07-17 Tom Tromey <tom@tromey.com>
6252
6253 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6254 Now static.
6255 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6256 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6257
18ab23af
TT
62582019-07-17 Tom Tromey <tom@tromey.com>
6259
6260 * tui/tui.c: Update.
6261 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6262 tui-regs.c.
6263 * tui/tui-windata.h: Remove file.
6264 * tui/tui-windata.c: Remove file.
6265 * tui/tui-win.c (tui_data_window::set_new_height)
6266 (tui_data_window::do_make_visible_with_new_height): Move to
6267 tui-regs.c.
6268 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6269 * tui/tui-regs.c: Remove "structuring" comments.
6270 (tui_data_window::first_data_item_displayed)
6271 (tui_data_window::delete_data_content_windows)
6272 (tui_data_window::erase_data_content)
6273 (tui_data_window::display_all_data)
6274 (tui_data_window::refresh_all)
6275 (tui_data_window::do_scroll_vertical)
6276 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6277 (tui_data_window::do_make_visible_with_new_height)
6278 (tui_data_window::refresh_window): Move from elsewhere.
6279 (_initialize_tui_regs): Move to end of file.
6280 * tui/tui-layout.c: Update.
6281 * tui/tui-hooks.c: Update.
6282 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6283 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6284 tui-regs.c.
6285 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6286
88b7e7cc
TT
62872019-07-17 Tom Tromey <tom@tromey.com>
6288
6289 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6290 seen.
6291
0fcd3711
TT
62922019-07-17 Tom Tromey <tom@tromey.com>
6293
6294 * tui/tui-win.c (tui_source_window_base::set_new_height)
6295 (tui_source_window_base::do_make_visible_with_new_height): Use
6296 m_has_locator field directly.
6297 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6298 method.
6299 (struct tui_source_window_base) <has_locator>: Likewise.
6300
4a38112d
TT
63012019-07-17 Tom Tromey <tom@tromey.com>
6302
6303 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6304 Don't declare.
6305 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6306 Remove.
6307 * tui/tui-win.c (tui_source_window_base::set_new_height)
6308 (tui_source_window_base::set_new_height)
6309 (make_invisible_and_set_new_height)
6310 (tui_source_window_base::do_make_visible_with_new_height)
6311 (tui_source_window_base::do_make_visible_with_new_height):
6312 Update.
6313 * tui/tui-layout.c (show_source_disasm_command, show_data)
6314 (show_source_or_disasm_and_command): Update.
6315 * tui/tui-layout.c (show_layout): Update.
6316
09129226
TT
63172019-07-17 Tom Tromey <tom@tromey.com>
6318
6319 * tui/tui-layout.c (make_data_window): Remove.
6320 (show_data): Unify creation and re-initialization cases.
6321
4a8a5e84
TT
63222019-07-17 Tom Tromey <tom@tromey.com>
6323
6324 * tui/tui-layout.c (make_source_window, make_disasm_window):
6325 Remove.
6326 (show_data): Unify creation and re-initialization cases.
6327
76d2be8e
TT
63282019-07-17 Tom Tromey <tom@tromey.com>
6329
6330 * tui/tui-layout.c (make_command_window): Remove.
6331 (show_source_disasm_command, show_source_or_disasm_and_command):
6332 Unify creation and re-initialization cases.
6333
890b8bde
TT
63342019-07-17 Tom Tromey <tom@tromey.com>
6335
6336 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6337 creation and re-initialization cases.
6338
2cdfa113
TT
63392019-07-17 Tom Tromey <tom@tromey.com>
6340
6341 * tui/tui-regs.c (tui_get_register): Return void.
6342
8e3cfd09
TT
63432019-07-17 Tom Tromey <tom@tromey.com>
6344
6345 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6346 Simplify.
6347
f4e04977
TT
63482019-07-17 Tom Tromey <tom@tromey.com>
6349
6350 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6351 resetting.
6352
0379b883
TT
63532019-07-17 Tom Tromey <tom@tromey.com>
6354
6355 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6356 * tui/tui-regs.c (tui_reg_layout): New function.
6357 (tui_show_registers, tui_reg_command): Use it.
6358 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6359 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6360 parameters.
6361 (tui_layout_command): Remove.
6362
b7fbad91
TT
63632019-07-17 Tom Tromey <tom@tromey.com>
6364
6365 * tui/tui-layout.h (tui/tui-layout): Return void.
6366 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6367
4e1e56b9
TT
63682019-07-17 Tom Tromey <tom@tromey.com>
6369
6370 * tui/tui-layout.c (show_source_disasm_command, show_data):
6371 Update.
6372 (reset_locator): Remove.
6373 (show_source_or_disasm_and_command): Update.
6374
1e0c09ba
TT
63752019-07-17 Tom Tromey <tom@tromey.com>
6376
6377 * tui/tui-source.c (tui_source_window_base::reset): Remove
6378 win_type parameter.
6379 * tui/tui-layout.c (make_command_window, make_source_window)
6380 (make_disasm_window, make_data_window)
6381 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6382 (reset_locator, show_source_or_disasm_and_command): Update.
6383 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6384 win_type parameter.
6385 (struct tui_source_window_base) <reset>: Likewise.
6386
1bf605de
TT
63872019-07-17 Tom Tromey <tom@tromey.com>
6388
6389 * tui/tui-layout.c (show_source_disasm_command): Use
6390 reset_locator.
6391 (reset_locator): New function.
6392 (init_and_make_win): Remove.
6393 (show_source_or_disasm_and_command): Use reset_locator.
6394
098f9ed4
TT
63952019-07-17 Tom Tromey <tom@tromey.com>
6396
6397 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6398 condition.
6399 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6400 Remove condition.
6401 * tui/tui-source.c (tui_source_window_base::reset): New method.
6402 * tui/tui-layout.c (make_command_window): Don't call
6403 init_and_make_win.
6404 (make_source_window, make_disasm_window): Don't call
6405 make_source_or_disasm_window.
6406 (make_data_window): Don't call init_and_make_win. Change calling
6407 convention.
6408 (show_source_disasm_command, show_data): Simplify.
6409 (make_source_or_disasm_window): Remove.
6410 (show_source_or_disasm_and_command): Simplify.
6411 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6412 (struct tui_source_window_base) <reset>: Likewise.
6413 <execution_info>: Remove initializer.
6414 * tui/tui-data.c (tui_source_window_base): Initialize
6415 execution_info.
6416
80110957
TT
64172019-07-17 Tom Tromey <tom@tromey.com>
6418
6419 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6420 variable.
6421
cf82af05
TT
64222019-07-17 Tom Tromey <tom@tromey.com>
6423
6424 * tui/tui.c (tui_rl_other_window): Update.
6425 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6426 superclass method first. Always iterate over regs_content.
6427 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6428 method.
6429 * tui/tui-win.c (tui_set_focus_command): Update.
6430
01aeb396
TT
64312019-07-17 Tom Tromey <tom@tromey.com>
6432
6433 * tui/tui-win.c (tui_set_focus_command): Rename from
6434 tui_set_focus. Call tui_enable.
6435 (tui_set_focus_command): Remove.
6436
fd6c75ee
TT
64372019-07-17 Tom Tromey <tom@tromey.com>
6438
6439 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6440 refresh_window.
6441 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6442 touchwin.
6443 (tui_data_window::refresh_window): Call refresh_window on data
6444 items. Always call superclass refresh_window.
6445 (tui_win_info::refresh): Remove.
6446 (tui_source_window_base::refresh_window): Update.
6447 (tui_refresh_all): Update.
6448 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6449 refresh_window.
6450 (show_source_or_disasm_and_command): Likewise.
6451 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6452 (struct tui_source_window_base) <refresh>: Likewise.
6453
f6cc34a9
TT
64542019-07-17 Tom Tromey <tom@tromey.com>
6455
6456 * tui/tui-winsource.c (tui_clear_source_content)
6457 (tui_show_source_content): Update.
6458 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6459 whether content is empty.
6460 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6461 Remove.
6462
f31ec9af
TT
64632019-07-17 Tom Tromey <tom@tromey.com>
6464
6465 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6466 window's contents.
6467 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6468 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6469
d1b6f1e5
TT
64702019-07-17 Tom Tromey <tom@tromey.com>
6471
6472 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6473 (struct tui_data_item_window): Update.
6474
d9743a13
TT
64752019-07-17 Tom Tromey <tom@tromey.com>
6476
6477 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6478 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6479 defines.
6480
caf0bc4e
TT
64812019-07-17 Tom Tromey <tom@tromey.com>
6482
6483 * tui/tui-winsource.h (tui_erase_source_content)
6484 (tui_clear_source_content): Remove "display_prompt" parameter.
6485 * tui/tui-winsource.c (tui_update_source_window_as_is)
6486 (tui_update_source_windows_with_addr): Update.
6487 (tui_clear_source_content): Remove "display_prompt" parameter.
6488 (tui_erase_source_content): Likewise. Simplify.
6489 (tui_show_source_content): Update.
6490 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6491 * tui/tui-stack.c (tui_show_frame_info): Update.
6492 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6493 Remove defines.
6494
9d391078
TT
64952019-07-17 Tom Tromey <tom@tromey.com>
6496
6497 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6498 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6499 parameter.
6500 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6501 parameter.
6502
a38da35d
TT
65032019-07-17 Tom Tromey <tom@tromey.com>
6504
6505 * tui/tui-winsource.c (tui_clear_source_content)
6506 (tui_show_source_content, tui_show_exec_info_content)
6507 (tui_clear_exec_info_content): Update.
6508 * tui/tui-stack.c (tui_show_locator_content): Update.
6509 (tui_show_frame_info): Update.
6510 * tui/tui-source.h (tui_source_window): Don't declare.
6511 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6512 from tui_source_is_displayed.
6513 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6514 Remove field.
6515 (struct tui_source_window_base) <content_in_use>: New field. Now
6516 bool.
6517 (struct tui_source_window) <showing_source_p>: New method.
6518 (TUI_SRC_WIN): Change cast.
6519 * tui/tui-data.c (tui_initialize_static_data): Update.
6520
c2cd8994
TT
65212019-07-17 Tom Tromey <tom@tromey.com>
6522
6523 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6524 location_matches_p.
6525 * tui/tui-source.c (tui_source_window::location_matches_p): New
6526 method.
6527 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6528 method.
6529 * tui/tui-data.h (struct tui_source_window_base)
6530 <location_matches_p>: New method.
6531 (struct tui_source_window, struct tui_disasm_window)
6532 <location_matches_p>: Likewise.
6533
4dde7b34
TT
65342019-07-17 Tom Tromey <tom@tromey.com>
6535
6536 * tui/tui-win.c (tui_set_win_height_command): Rename from
6537 tui_set_win_height.
6538 (tui_set_win_height_command): Remove.
6539
b73dd877
TT
65402019-07-17 Tom Tromey <tom@tromey.com>
6541
6542 * tui/tui-source.c (tui_source_window): New constructor. Add
6543 observer.
6544 (~tui_source_window): New destructor.
6545 (tui_source_window::style_changed): New method.
6546 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6547 (tui_attach_detach_observers): Update.
6548 * tui/tui-data.h (struct tui_source_window): Make constructor not
6549 inline. Add destructor.
6550 (struct tui_source_window) <style_changed>: New method.
6551 <m_observable>: New member.
6552
ae2b5380
TT
65532019-07-17 Tom Tromey <tom@tromey.com>
6554
6555 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6556 * tui/tui-win.c (tui_resize_all): Fix typo.
6557
1ce3e844
TT
65582019-07-17 Tom Tromey <tom@tromey.com>
6559
6560 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6561 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6562 (tui_refresh_all): Remove "list" parameter. Use foreach.
6563 * tui/tui-win.c (window_name_completer): Use foreach.
6564 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6565 (update_tab_width): Likewise.
6566 * tui/tui-layout.c (show_layout): Update.
6567 * tui/tui-data.h (class tui_window_iterator): New.
6568 (struct all_tui_windows): New.
6569 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6570
fe3eaf1c
TT
65712019-07-17 Tom Tromey <tom@tromey.com>
6572
6573 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6574 parameter. Don't reference globals.
6575 (tui_reg_command): Update.
6576
368c1354
TT
65772019-07-17 Tom Tromey <tom@tromey.com>
6578
6579 * tui/tui-regs.c (tui_show_registers): Simplify.
6580
e80cd204
TT
65812019-07-17 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-regs.c (tui_show_registers): Update.
6584 (tui_show_register_group): Add win_info parameter.
6585
aca2dd16
TT
65862019-07-17 Tom Tromey <tom@tromey.com>
6587
6588 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6589 Rename from tui_display_reg_element_at_line.
6590 (tui_data_window::display_registers_from_line): Update.
6591 * tui/tui-data.h (struct tui_data_window)
6592 <display_reg_element_at_line>: New method.
6593
517e9505
TT
65942019-07-17 Tom Tromey <tom@tromey.com>
6595
6596 * tui/tui-regs.h (tui_display_registers_from)
6597 (tui_display_registers_from_line): Don't declare.
6598 * tui/tui-windata.c (tui_data_window::display_all_data)
6599 (tui_data_window::refresh_all)
6600 (tui_data_window::do_scroll_vertical): Update.
6601 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6602 from tui_display_registers_from.
6603 (tui_display_reg_element_at_line): Update.
6604 (tui_data_window::display_registers_from_line): Rename from
6605 tui_display_registers_from_line.
6606 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6607 display_registers_from_line>: New methods.
6608
f76d8b19
TT
66092019-07-17 Tom Tromey <tom@tromey.com>
6610
6611 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6612 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6613 from tui_erase_data_content.
6614 (tui_data_window::display_all_data)
6615 (tui_data_window::refresh_all)
6616 (tui_data_window::do_scroll_vertical): Update.
6617 * tui/tui-regs.c (tui_show_registers): Update.
6618 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6619 New method.
6620
b4094625
TT
66212019-07-17 Tom Tromey <tom@tromey.com>
6622
6623 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6624 declare.
6625 * tui/tui-windata.c
6626 (tui_data_window::delete_data_content_windows): Rename from
6627 tui_delete_data_content_windows.
6628 (tui_data_window::display_all_data)
6629 (tui_data_window::do_scroll_vertical): Update.
6630 * tui/tui-data.h (struct tui_data_window)
6631 <delete_data_content_windows>: New method.
6632
c223a729
TT
66332019-07-17 Tom Tromey <tom@tromey.com>
6634
6635 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6636 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6637
50daf268
TT
66382019-07-17 Tom Tromey <tom@tromey.com>
6639
6640 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6641 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6642 from tui_display_all_data.
6643 * tui/tui-win.c
6644 (tui_data_window::do_make_visible_with_new_height): Update.
6645 * tui/tui-regs.c (tui_show_registers): Update.
6646 * tui/tui-layout.c (tui_set_layout): Update.
6647 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6648 method.
6649
df5f8cab
TT
66502019-07-17 Tom Tromey <tom@tromey.com>
6651
6652 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6653 * tui/tui-windata.c (tui_display_data_from): Remove.
6654 (tui_data_window::refresh_all): Update.
6655
80cb6c27
TT
66562019-07-17 Tom Tromey <tom@tromey.com>
6657
6658 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6659 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6660 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6661 tui_display_registers_from_line.
6662 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6663 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6664 "force_display" parameter.
6665
baff0c28
TT
66662019-07-17 Tom Tromey <tom@tromey.com>
6667
6668 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6669 declare.
6670 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6671 Rename from tui_first_reg_element_no_inline.
6672 (tui_display_reg_element_at_line)
6673 (tui_display_registers_from_line): Update.
6674 * tui/tui-data.h (struct tui_data_window)
6675 <first_reg_element_no_inline>: New method.
6676
3b23c5f2
TT
66772019-07-17 Tom Tromey <tom@tromey.com>
6678
6679 * tui/tui-windata.c (tui_display_data_from)
6680 (tui_data_window::do_scroll_vertical): Update.
6681 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6682 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6683 Rename from tui_line_from_reg_element_no.
6684 (tui_display_registers_from_line): Update.
6685 * tui/tui-data.h (struct tui_data_window)
6686 <line_from_reg_element_no>: New method.
6687
0b5ec218
TT
66882019-07-17 Tom Tromey <tom@tromey.com>
6689
6690 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6691 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6692 tui_last_regs_line_no.
6693 (tui_display_reg_element_at_line)
6694 (tui_display_registers_from_line): Update.
6695 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6696 method.
6697
0807ab7b
TT
66982019-07-17 Tom Tromey <tom@tromey.com>
6699
6700 PR tui/24722:
6701 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6702 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6703 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6704 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6705 (tui_update_breakpoint_info): Likewise.
6706 * tui/tui-hooks.c (tui_event_create_breakpoint)
6707 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6708 Update.
6709
9ad7fdef
TT
67102019-07-17 Tom Tromey <tom@tromey.com>
6711
6712 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6713
5813316f
TT
67142019-07-17 Tom Tromey <tom@tromey.com>
6715
6716 * tui/tui-winsource.c (tui_update_source_window_as_is)
6717 (tui_update_source_windows_with_addr): Update.
6718 * tui/tui-source.h (tui_set_source_content)
6719 (tui_show_symtab_source): Add "win_info" parameter.
6720 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6721 parameter.
6722 (tui_show_symtab_source): Likewise.
6723
00e264e7
TT
67242019-07-17 Tom Tromey <tom@tromey.com>
6725
6726 * tui/tui-wingeneral.c
6727 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6728
06210ce4
TT
67292019-07-17 Tom Tromey <tom@tromey.com>
6730
6731 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6732 (struct tui_cmd_window) <can_scroll>: New method.
6733 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6734 method.
6735
381befee
TT
67362019-07-17 Tom Tromey <tromey@adacore.com>
6737
6738 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6739 do_field_signed>: Rename. Change type of "value".
6740 * ui-out.c (ui_out::field_signed): Rename from field_int.
6741 Change type of "value".
6742 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6743 type of "value".
6744 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6745 do_field_int. Change type of "value".
6746 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6747 do_field_int. Change type of "value".
6748 * tracepoint.c (trace_status_mi, tfind_1)
6749 (print_one_static_tracepoint_marker): Update.
6750 * thread.c (print_thread_info_1, print_selected_thread_frame):
6751 Update.
6752 * stack.c (print_frame, print_frame_info): Update.
6753 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6754 Update.
6755 * source.c (print_source_lines_base): Update.
6756 * skip.c (info_skip_command): Update.
6757 * record-btrace.c (btrace_ui_out_decode_error)
6758 (btrace_call_history_src_line): Update.
6759 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6760 Update.
6761 * progspace.c (print_program_space): Update.
6762 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6763 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6764 do_field_int. Change type of "value".
6765 * mi/mi-out.c (mi_ui_out::do_table_begin)
6766 (mi_ui_out::do_table_header): Update.
6767 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6768 type of "value".
6769 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6770 (mi_cmd_data_list_changed_registers, output_register)
6771 (mi_cmd_data_read_memory, mi_load_progress)
6772 (mi_cmd_trace_frame_collected): Update.
6773 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6774 Update.
6775 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6776 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6777 (mi_cmd_var_list_children, varobj_update_one): Update.
6778 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6779 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6780 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6781 * inferior.c (print_inferior): Update.
6782 * gdb_bfd.c (print_one_bfd): Update.
6783 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6784 Update.
6785 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6786 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6787 do_field_int. Change type of "value".
6788 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6789 do_field_int. Change type of "value".
6790 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6791 (print_one_breakpoint_location, print_it_catch_fork)
6792 (print_one_catch_fork, print_it_catch_vfork)
6793 (print_one_catch_vfork, print_it_catch_solib)
6794 (print_it_catch_exec, print_it_ranged_breakpoint)
6795 (print_mention_watchpoint, print_mention_masked_watchpoint)
6796 (bkpt_print_it, update_static_tracepoint): Update.
6797 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6798 * break-catch-syscall.c (print_it_catch_syscall): Update.
6799 * ada-tasks.c (print_ada_task_info): Update.
6800 * ada-lang.c (print_it_exception, print_mention_exception):
6801 Update.
6802
6b78c3f8
AB
68032019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6804
6805 PR breakpoints/24541
6806 * gdbarch.c: Regenerate.
6807 * gdbarch.h: Regenerate.
6808 * gdbarch.sh: Adjust return type and parameter types for
6809 'stap_adjust_register'.
6810 (i386_stap_adjust_register): Adjust signature and return new
6811 register name.
6812 * stap-probe.c (stap_parse_register_operand): Adjust use of
6813 'gdbarch_stap_adjust_register'.
6814
d72a9b85
TT
68152019-07-17 Tom Tromey <tromey@adacore.com>
6816
6817 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6818 declare VEC.
6819 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6820 std::vector.
6821 (struct s390_process_info): Add initializers.
6822 (s390_add_process): Use new.
6823 (s390_linux_nat_target::low_forget_process): Use delete.
6824 (s390_linux_nat_target::low_new_fork)
6825 (s390_linux_nat_target::stopped_by_watchpoint)
6826 (s390_linux_nat_target::low_prepare_to_resume)
6827 (s390_linux_nat_target::insert_watchpoint)
6828 (s390_linux_nat_target::insert_hw_breakpoint)
6829 (s390_linux_nat_target::remove_watchpoint)
6830 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6831
206e6c58
JB
68322019-07-16 John Baldwin <jhb@FreeBSD.org>
6833
6834 * aarch64-fbsd-nat.c: Include regcache.h.
6835 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6836 argument.
6837 (aarch64_fbsd_nat_target::fetch_registers)
6838 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6839 variable.
6840 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6841
cbde90f2
JB
68422019-07-16 John Baldwin <jhb@FreeBSD.org>
6843
6844 * fbsd-nat.c: Include gdbarch.h.
6845
07128006
TT
68462019-07-15 Tom Tromey <tromey@adacore.com>
6847
6848 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6849
1f77b012
TT
68502019-07-15 Tom Tromey <tromey@adacore.com>
6851
6852 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6853 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6854 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6855 * cli-out.c (cli_ui_out::do_field_int): New method.
6856 * ui-out.c (ui_out::field_unsigned): New method.
6857 * symfile.c (generic_load): Use field_unsigned.
6858 (print_transfer_performance): Likewise.
6859 * record-btrace.c (ui_out_field_uint): Remove.
6860 (btrace_call_history_insn_range, btrace_call_history): Use
6861 field_unsigned.
6862 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6863 field_unsigned.
6864 * ui-out.h (class ui_out) <field_unsigned>: New method.
6865 <do_field_unsigned>: Likewise.
6866
33eca680
TT
68672019-07-15 Tom Tromey <tromey@adacore.com>
6868
6869 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6870 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6871 * target.c (flash_erase_command): Use field_string.
6872 * infrun.c (print_signal_received_reason): Use field_string.
6873 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6874 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6875 field_string.
6876 * ada-tasks.c (print_ada_task_info): Use field_string.
6877
ca8d69be
TT
68782019-07-15 Tom Tromey <tromey@adacore.com>
6879
6880 * target.c (flash_erase_command): Use field_core_addr.
6881 * symfile.c (generic_load): Use field_core_addr.
6882 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6883 Use field_core_addr.
6884 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6885 field_core_addr.
6886
0d4e84ed
AB
68872019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6888
6889 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6890 value if its desired type is smaller than a CORE_ADDR and signed.
6891
9a49df9d
AB
68922019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6893
6894 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6895 of changes to field names, and use new is_reference field to
6896 decide if a property is a reference or not.
6897 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6898 field.
6899 (struct dwarf2_property_baton): Update header comment, rename
6900 'referenced_type' to 'property_type' and update comments.
6901 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6902 default property type, store in property baton, update to take
6903 accound of renamed field.
6904 (read_func_scope): Update call to attr_to_dynamic_prop.
6905 (read_array_type): Likewise.
6906 (dwarf2_per_cu_addr_sized_int_type): New function.
6907 (read_subrange_index_type): Move type finding code to
6908 dwarf2_per_cu_addr_sized_int_type.
6909 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6910 (dwarf2_per_cu_addr_type): New function.
6911 (set_die_type): Update calls to attr_to_dynamic_prop.
6912
b86352cf
AB
69132019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6914
6915 * dwarf2read.c (read_subrange_index_type): New function.
6916 (read_subrange_type): Move code into new function and call it.
6917 * gdbtypes.c (create_range_type): Add some asserts.
6918
603490bf
AB
69192019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6920
6921 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6922 update return statements.
6923 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6924 declaration, and update comment to match.
6925 * gdbtypes.c (resolve_dynamic_array): Update call to
6926 dwarf2_evaluate_property to match new return type.
6927
592f9d27
AB
69282019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6929
6930 * valarith.c (value_subscripted_rvalue): Change lowerbound
6931 parameter type from int to LONGEST.
6932 * value.h (value_subscripted_rvalue): Likewise in declaration.
6933
60cfcb20
AB
69342019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6935
6936 * cli/cli-utils.c (info_print_command_completer): New function.
6937 * cli/cli-utils.h: Add 'completer.h' include, and forward
6938 declaration for 'struct cmd_list_element'.
6939 (info_print_command_completer): Declare.
6940 * stack.c (_initialize_stack): Add completer for 'info locals' and
6941 'info args'.
6942 * symtab.c (_initialize_symtab): Add completer for 'info
6943 variables' and 'info functions'.
6944 * NEWS: Mention completion for additional info commands.
6945
b16507e0
AB
69462019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6947
6948 * cli/cli-utils.c (extract_info_print_args): Delete.
6949 (extract_arg_maybe_quoted): Delete.
6950 (info_print_options_defs): New variable.
6951 (make_info_print_options_def_group): New function.
6952 (extract_info_print_options): Define new function.
6953 * cli/cli-utils.h (extract_info_print_args): Delete.
6954 (struct info_print_options): New structure.
6955 (extract_info_print_options): Declare new function.
6956 * stack.c (info_locals_command): Update to use new
6957 extract_info_print_options, also add a header comment.
6958 (info_args_command): Likewise.
6959 * symtab.c (info_variables_command): Likewise.
6960 (info_functions_command): Likewise.
6961
021d8588
AB
69622019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6963
6964 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6965 to extract string arguments.
6966 * common/common-utils.c (extract_string_maybe_quoted): New function.
6967 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6968
b777eb6d
TT
69692019-07-11 Tom Tromey <tromey@adacore.com>
6970
6971 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6972 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6973 * top.h (gdbinit): Don't declare.
6974 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6975 into...
6976 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6977 * top.c (gdb_init): Don't call init_cli_cmds.
6978 (gdbinit): Remove.
6979 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6980
72ee03ff
TT
69812019-07-11 Tom Tromey <tromey@adacore.com>
6982
6983 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6984 after it has been moved.
6985
00db9531
SM
69862019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6987
6988 * valops.c (value_must_coerce_to_target): Change return type to
6989 bool.
6990 * value.h (value_must_coerce_to_target): Likewise.
6991
f2478a7e
SM
69922019-07-10 Simon Marchi <simon.marchi@efficios.com>
6993
6994 * breakpoint.c (is_hardware_watchpoint): Remove
6995 forward-declaration.
6996 (is_masked_watchpoint): Change return type to bool.
6997 (is_tracepoint): Likewise.
6998 (is_breakpoint): Likewise.
6999 (is_hardware_watchpoint): Likewise.
7000 (is_watchpoint): Likewise.
7001 (is_no_memory_software_watchpoint): Likewise.
7002 (is_catchpoint): Likewise.
7003 (breakpoint_1): Make FILTER parameter's return type bool.
7004 is_masked_watchpoint): Change return type to bool.
7005 (save_breakpoints): Make FILTER parameter's return type bool.
7006 * breakpoint.h (is_breakpoint): Change return type to bool.
7007 (is_watchpoint): Likewise.
7008 (is_catchpoint): Likewise.
7009 (is_tracepoint): Likewise.
7010
0d12e84c
TT
70112019-07-10 Tom Tromey <tom@tromey.com>
7012
7013 * defs.h: Don't include gdbarch.h.
7014 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7015 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7016 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7017 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7018 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7019 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7020 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7021 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7022 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7023 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7024 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7025 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7026 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7027 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7028 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7029 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7030 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7031 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7032 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7033 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7034 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7035 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7036 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7037 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7038 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7039 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7040 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7041
f06f1252
TT
70422019-07-10 Tom Tromey <tromey@adacore.com>
7043
7044 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7045 * breakpoint.c (init_ada_exception_breakpoint): Register as
7046 bp_catchpoint.
7047 (print_one_breakpoint_location, print_one_breakpoint): Use
7048 is_ada_exception_catchpoint.
7049 * ada-lang.c (class ada_catchpoint_location): Pass
7050 bp_loc_software_breakpoint to bp_location constructor.
7051 (is_ada_exception_catchpoint): New function.
7052
7a5d944b
TT
70532019-07-10 Tom Tromey <tromey@adacore.com>
7054
7055 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7056 VEC.
7057 (struct arm_exidx_entry): New method operator<.
7058 (struct arm_exidx_data) <section_maps>: Change type.
7059 (arm_exidx_data_free): Remove.
7060 (arm_exidx_data_key): Change type. Move lower.
7061 (arm_exidx_new_objfile): Update.
7062 (arm_compare_exidx_entries): Remove.
7063 (arm_find_exidx_entry, _initialize_arm_tdep)
7064
48c66e1d
TT
70652019-07-10 Tom Tromey <tromey@adacore.com>
7066
7067 * solib-spu.c (ocl_program_data_key): Change type.
7068 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7069 Update.
7070
a269fbf1
TT
70712019-07-10 Tom Tromey <tromey@adacore.com>
7072
7073 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7074 (struct solib_aix_inferior_data) <library_list>: Change type.
7075 (solib_aix_inferior_data_handle): Change type.
7076 (get_solib_aix_inferior_data): Update.
7077 (solib_aix_free_library_list): Remove.
7078 (library_list_start_library): Update.
7079 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7080 return type.
7081 (solib_aix_get_library_list)
7082 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7083 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7084
c294730c
TT
70852019-07-10 Tom Tromey <tromey@adacore.com>
7086
7087 * solib-dsbt.c (struct dsbt_info): Add initializers.
7088 (solib_dsbt_pspace_data): Change type.
7089 (dsbt_pspace_data_cleanup): Remove.
7090 (get_dsbt_info, _initialize_dsbt_solib): Update.
7091
9d52077d
TT
70922019-07-10 Tom Tromey <tromey@adacore.com>
7093
7094 * spu-tdep.c (spu_overlay_data): Change type.
7095 (spu_get_overlay_table, spu_overlay_new_objfile)
7096 (_initialize_spu_tdep): Update.
7097
22a20dca
TT
70982019-07-10 Tom Tromey <tromey@adacore.com>
7099
7100 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7101 destructor.
7102 (dbx_objfile_data_key): Change type and declare later.
7103 (DBX_SYMFILE_INFO): Rewrite.
7104 * dbxread.c (dbx_objfile_data_key): Change type.
7105 (dbx_symfile_init): Update.
7106 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7107 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7108 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7109
cb60f420
TT
71102019-07-10 Tom Tromey <tromey@adacore.com>
7111
7112 * jit.c (jit_program_space_key): Change type. Move lower.
7113 (get_jit_program_space_data): Update.
7114 (jit_program_space_data_cleanup): Remove.
7115 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7116 Update.
7117 (struct jit_program_space_data): Add initializers.
7118
51df2ae3
TT
71192019-07-10 Tom Tromey <tromey@adacore.com>
7120
7121 * solib-darwin.c (struct darwin_info): Add initializers.
7122 (solib_darwin_pspace_data): Change type.
7123 (darwin_pspace_data_cleanup): Remove.
7124 (get_darwin_info, _initialize_darwin_solib): Update.
7125
18101a35
TT
71262019-07-10 Tom Tromey <tromey@adacore.com>
7127
7128 * remote-sim.c (struct sim_inferior_data): Add initializers,
7129 constructor, and destructor.
7130 (sim_inferior_data_key): Change type. Move lower.
7131 (check_for_duplicate_sim_descriptor): Update.
7132 (get_sim_inferior_data): Use new. Update.
7133 (~sim_inferior_data_cleanup): Rename from
7134 sim_inferior_data_cleanup. Simplify.
7135 (gdbsim_close_inferior, simulator_command)
7136 (sim_command_completer, _initialize_remote_sim): Update.
7137 (next_pid, INITIAL_PID): Move earlier.
7138
05b08ac1
TT
71392019-07-10 Tom Tromey <tromey@adacore.com>
7140
7141 * python/python-internal.h (create_thread_object): Return
7142 gdbpy_ref.
7143 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7144 * python/py-inferior.c (struct threadlist_entry): Add
7145 constructor.
7146 <thread_obj>: Now a gdbpy_ref.
7147 (thread_to_thread_object): Update.
7148 (add_thread_object): Use new.
7149 (delete_thread_object): Use delete.
7150 (infpy_threads): Update.
7151 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7152 GIL.
7153
32372d80
TT
71542019-07-10 Tom Tromey <tromey@adacore.com>
7155
7156 * valops.c (value_cast): Specialize error message for Ada.
7157
5c458ae8
SM
71582019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7159
7160 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7161
4c462cb0
SM
71622019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7163
7164 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7165 bpstat_should_step): Return bool, adjust comments.
7166 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7167 bpstat_should_step): Likewise.
7168
89abbcc2
AH
71692019-07-10 Alan Hayward <alan.hayward@arm.com>
7170
7171 * features/Makefile: Use feature target descriptions for Arm.
7172 * features/arm/arm-core.c: Generate new file.
7173 * features/arm/arm-fpa.c: Likewise.
7174 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7175 * features/arm/arm-m-profile.c: Likewise.
7176 * features/arm/arm-vfpv2.c: Likewise.
7177 * features/arm/arm-vfpv3.c: Likewise.
7178 * features/arm/xscale-iwmmxt.c: Likewise.
7179 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7180
166a82be
AH
71812019-07-10 Alan Hayward <alan.hayward@arm.com>
7182
7183 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7184 ptrace earlier.
7185
9fb4c7e9
AH
71862019-07-10 Alan Hayward <alan.hayward@arm.com>
7187
7188 * features/aarch64-pauth.c: Regenerate.
7189
e2d0f980
SM
71902019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7191
7192 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7193 bool.
7194 (bpstat_what): Use false instead of 0.
7195
a38118e5
PA
71962019-07-09 Pedro Alves <palves@redhat.com>
7197
7198 * break-catch-throw.c (is_exception_catchpoint): New.
7199 * breakpoint.c (print_one_breakpoint_location): New parameter
7200 'raw_loc'. Handle it. Use
7201 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7202 looking at the breakpoint's type.
7203 (print_one_breakpoint): If handling "maint info breakpoints", also
7204 print locations of exception catchpoints.
7205 * breakpoint.h (is_exception_catchpoint): Declare.
7206
cb1e4e32
PA
72072019-07-09 Pedro Alves <palves@redhat.com>
7208
7209 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7210 "addr" field.
7211 (allocate_location_exception_catchpoint): New.
7212 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7213 (initialize_throw_catchpoint_ops): Install
7214 allocate_location_exception_catchpoint as allocate_location
7215 method.
7216 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7217 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7218 bp_loc_other.
7219 (breakpoint_address_is_meaningful): Delete.
7220 (bl_address_is_meaningful): New.
7221 (breakpoint_locations_match): Adjust comment.
7222 (bp_location_from_bp_type): New, factored out of...
7223 (bp_location::bp_location(breakpoint *)): ... this.
7224 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7225 factored out of...
7226 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7227 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7228 breakpoint_address_is_meaningful.
7229 (bp_locations_compare): Adjust comment.
7230 (update_global_location_list): Use bl_address_is_meaningful
7231 instead of breakpoint_address_is_meaningful.
7232 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7233 explicit.
7234 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7235 * python/py-breakpoint.c (bppy_get_location): No longer check
7236 whether location is null.
7237
b58a68fe
PA
72382019-07-09 Pedro Alves <palves@redhat.com>
7239
7240 PR c++/15468
7241 * breakpoint.c (print_one_breakpoint_location): Remove
7242 single-location assert.
7243
268a13a5
TT
72442019-07-09 Tom Tromey <tom@tromey.com>
7245
7246 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7247 * configure: Rebuild.
7248 * configure.ac: Change common to gdbsupport.
7249 * gdbsupport: Rename from common.
7250 * acinclude.m4: Change common to gdbsupport.
7251 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7252 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7253 gdbsupport.
7254 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7255 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7256 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7257 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7258 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7259 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7260 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7261 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7262 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7263 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7264 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7265 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7266 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7267 coff-pe-read.c, command.h, compile/compile-c-support.c,
7268 compile/compile-c.h, compile/compile-cplus-symbols.c,
7269 compile/compile-cplus-types.c, compile/compile-cplus.h,
7270 compile/compile-loc2c.c, compile/compile.c, completer.c,
7271 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7272 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7273 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7274 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7275 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7276 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7277 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7278 features/aarch64-core.c, features/aarch64-fpu.c,
7279 features/aarch64-pauth.c, features/aarch64-sve.c,
7280 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7281 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7282 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7283 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7284 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7285 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7286 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7287 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7288 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7289 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7290 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7291 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7292 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7293 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7294 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7295 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7296 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7297 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7298 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7299 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7300 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7301 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7302 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7303 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7304 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7305 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7306 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7307 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7308 minsyms.c, mips-linux-tdep.c, namespace.h,
7309 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7310 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7311 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7312 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7313 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7314 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7315 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7316 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7317 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7318 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7319 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7320 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7321 procfs.c, producer.c, progspace.h, psymtab.h,
7322 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7323 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7324 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7325 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7326 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7327 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7328 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7329 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7330 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7331 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7332 target-memory.c, target.c, target.h, target/waitstatus.c,
7333 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7334 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7335 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7336 unittests/array-view-selftests.c,
7337 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7338 unittests/common-utils-selftests.c,
7339 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7340 unittests/format_pieces-selftests.c,
7341 unittests/function-view-selftests.c,
7342 unittests/lookup_name_info-selftests.c,
7343 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7344 unittests/mkdir-recursive-selftests.c,
7345 unittests/observable-selftests.c,
7346 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7347 unittests/parse-connection-spec-selftests.c,
7348 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7349 unittests/scoped_fd-selftests.c,
7350 unittests/scoped_mmap-selftests.c,
7351 unittests/scoped_restore-selftests.c,
7352 unittests/string_view-selftests.c, unittests/style-selftests.c,
7353 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7354 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7355 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7356 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7357 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7358 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7359
5b0e2db4
AB
73602019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7363 bool value.
7364 (decode_digits_ordinary): Set explicit_line field in sal.
7365 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7366 symtab_and_line that was set on an explicit line number in
7367 assembler code. Do always update the recorded symtab and line if
7368 we do skip the prologue.
7369
0ba852ab
AB
73702019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7371
7372 * breakpoint.c (set_breakpoint_location_function): Remove
7373 explicit_loc parameter.
7374 (momentary_breakpoint_from_master): Update call to
7375 set_breakpoint_location_function.
7376 (add_location_to_breakpoint): Likewise.
7377
b3a7d171
AB
73782019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7379
7380 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7381 required features based on default bfd type when no specific bfd
7382 is present.
7383
1f6f6e21
PW
73842019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7385
7386 * NEWS: Mention that GDB printf and eval commands can now print
7387 C-style and Ada-style convenience var strings without
7388 calling the inferior.
7389 * printcmd.c (printf_c_string): Locally print GDB internal var
7390 instead of transiting via the inferior.
7391 (printf_wide_c_string): Likewise.
7392
73932019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7394
5862c886 7395 PR breakpoints/25011
ea142fbf
AH
7396 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7397
0598af48
TT
73982019-07-04 Tom Tromey <tom@tromey.com>
7399
7400 PR tui/24724:
7401 * tui/tui-winsource.c (tui_clear_source_content): Update.
7402 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7403 (tui_update_breakpoint_info): Update.
7404 (tui_set_exec_info_content): Update.
7405 * tui/tui-source.c (tui_set_source_content_nil): Update.
7406 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7407 has_break.
7408 * tui/tui-data.h (enum tui_bp_flag): New.
7409 (tui_bp_flags): New enum flags type.
7410 (struct tui_source_element) <break_mode>: Change type. Rename
7411 from has_break.
7412 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7413 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7414 constants.
7415 * tui/tui-winsource.h: Fix comment.
7416
350fab54
AH
74172019-07-04 Alan Hayward <alan.hayward@arm.com>
7418
7419 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7420 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7421 (store_fpregs_to_thread)
7422 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7423 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7424 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7425 (IWMMXT_REGS_SIZE): Add define.
7426 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7427 (fetch_vfp_regs, store_vfp_regs)
7428 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7429 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7430
f0452268
AH
74312019-07-04 Alan Hayward <alan.hayward@arm.com>
7432
7433 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7434 defines.
7435 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7436 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7437 (ARM_INT_REGISTER_SIZE): ...to this.
7438 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7439 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7440 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7441 (arm_linux_collect_gregset, supply_nwfpe_register)
7442 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7443 defines.
7444 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7445 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7446 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7447 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7448 (arm_return_in_memory, arm_store_return_value)
7449 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7450 (arm_record_ld_st_multiple): Likewise.
7451 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7452 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7453
e935475c
AH
74542019-07-04 Alan Hayward <alan.hayward@arm.com>
7455
7456 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7457 AARCH64_DISPLACED_MODIFIED_INSNS.
7458 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7459 (aarch64_displaced_step_copy_insn): Likewise.
7460 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7461 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7462 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7463 ARM_DISPLACED_MODIFIED_INSNS.
7464 * arm-tdep.c (arm_gdbarch_init): Likewise.
7465 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7466 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7467 (struct arm_displaced_step_closure): Use
7468 ARM_DISPLACED_MODIFIED_INSNS.
7469
df0bb381
AH
74702019-07-04 Alan Hayward <alan.hayward@arm.com>
7471
7472 * features/Makefile: Remove unused xml files.
7473 * features/aarch64.xml: Remove.
7474 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7475 * features/i386/amd64-avx-avx512.xml: Remove.
7476 * features/i386/amd64-avx-linux.xml: Remove.
7477 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7478 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7479 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7480 * features/i386/amd64-avx-mpx.xml: Remove.
7481 * features/i386/amd64-avx.xml: Remove.
7482 * features/i386/amd64-linux.xml: Remove.
7483 * features/i386/amd64-mpx-linux.xml: Remove.
7484 * features/i386/amd64-mpx.xml: Remove.
7485 * features/i386/amd64.xml: Remove.
7486 * features/i386/i386-avx-avx512-linux.xml: Remove.
7487 * features/i386/i386-avx-avx512.xml: Remove.
7488 * features/i386/i386-avx-linux.xml: Remove.
7489 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7490 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7491 * features/i386/i386-avx-mpx-linux.xml: Remove.
7492 * features/i386/i386-avx-mpx.xml: Remove.
7493 * features/i386/i386-avx.xml: Remove.
7494 * features/i386/i386-linux.xml: Remove.
7495 * features/i386/i386-mmx-linux.xml: Remove.
7496 * features/i386/i386-mmx.xml: Remove.
7497 * features/i386/i386-mpx-linux.xml: Remove.
7498 * features/i386/i386-mpx.xml: Remove.
7499 * features/i386/i386.xml: Remove.
7500 * features/i386/x32-avx-avx512-linux.xml: Remove.
7501 * features/i386/x32-avx-linux.xml: Remove.
7502 * features/i386/x32-linux.xml: Remove.
7503
edd6266a
AH
75042019-07-04 Alan Hayward <alan.hayward@arm.com>
7505
7506 * regformats/aarch64.dat: Remove.
7507 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7508 * regformats/i386/amd64-avx-linux.dat: Remove.
7509 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7510 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7511 * regformats/i386/amd64-linux.dat: Remove.
7512 * regformats/i386/amd64-mpx-linux.dat: Remove.
7513 * regformats/i386/amd64.dat: Remove.
7514 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7515 * regformats/i386/i386-avx-linux.dat: Remove.
7516 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7517 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7518 * regformats/i386/i386-linux.dat: Remove.
7519 * regformats/i386/i386-mmx-linux.dat: Remove.
7520 * regformats/i386/i386-mpx-linux.dat: Remove.
7521 * regformats/i386/i386.dat: Remove.
7522 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7523 * regformats/i386/x32-avx-linux.dat: Remove.
7524 * regformats/i386/x32-linux.dat: Remove.
7525
2b40fda7
AH
75262019-07-04 Alan Hayward <alan.hayward@arm.com>
7527
7528 * aarch64-tdep.c: Remove xml self tests.
7529 * amd64-linux-tdep.c: Likewise.
7530 * amd64-tdep.c: Likewise.
7531 * i386-linux-tdep.c: Likewise.
7532 * i386-tdep.c: Likewise.
7533
5f4ba3e7
PA
75342019-07-03 Pedro Alves <palves@redhat.com>
7535
7536 PR cli/24732
7537 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7538 (pipe_cmd_option_defs): New.
7539 (make_pipe_cmd_options_def_group): New.
7540 (pipe_command): Use gdb::option::process_options.
7541 (pipe_command_completer): New function.
7542 (_initialize_cli_cmds): Install completer for "pipe" command.
7543
3d9be6f5
PA
75442019-07-03 Pedro Alves <palves@redhat.com>
7545
7546 * cli/cli-option.c (union option_value) <string>: New field.
7547 (struct option_def_and_value): Add ctor, move ctor, dtor and
7548 use DISABLE_COPY_AND_ASSIGN.
7549 (option_def_and_value::clear_value): New.
7550 (parse_option, save_option_value_in_ctx, get_val_type_str)
7551 (add_setshow_cmds_for_options): Handle var_string.
7552 * cli-option.h (union option_def::var_address) <string>: New
7553 field.
7554 (struct string_option_def): New.
7555 * maint-test-options.c (struct test_options_opts): Add default
7556 ctor and use DISABLE_COPY_AND_ASSIGN.
7557 <string_opt>: New field.
7558 (test_options_opts::~test_options_opts): New.
7559 (test_options_opts::dump): Also dump "-string".
7560 (test_options_option_defs): Install "string.
7561
41fc454c
PA
75622019-07-03 Pedro Alves <palves@redhat.com>
7563
7564 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7565 option_value with a null enumeration.
7566 (complete_options): Save the option values in the context.
7567 (save_option_value_in_ctx): New, factored out from ...
7568 (process_options): ... here.
7569 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7570 of the function.
7571 * maint-test-options.c (test_options_opts::dump): New, factored
7572 out from ...
7573 (maintenance_test_options_command_mode): ... here.
7574 (maintenance_test_options_command_completion_result): Delete.
7575 (maintenance_test_options_command_completion_text): Update
7576 comment.
7577 (maintenance_show_test_options_completion_result): Change
7578 prototype. Just print
7579 maintenance_test_options_command_completion_text.
7580 (save_completion_result): New.
7581 (maintenance_test_options_completer_mode): Pass options context to
7582 complete_options, and then save a dump.
7583 (_initialize_maint_test_options): Use add_cmd to install "maint
7584 show test-options-completion-result".
7585
fdbc9870
PA
75862019-07-03 Pedro Alves <palves@redhat.com>
7587
7588 * NEWS (New commands): Mention "with" and "maint with".
7589 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7590 (with_command, with_command_completer): New.
7591 (pipe_command): Adjust to new repeat_previous
7592 interface.
7593 (_initialize_cli_cmds): Install the "with" command and its "w"
7594 alias.
7595 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7596 declarations.
7597 * cli/cli-setshow.c (parse_cli_var_uinteger)
7598 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7599 argument strings for all var_types.
7600 (get_setshow_command_value_string): New, factored out from ...
7601 (do_show_command): ... this.
7602 * cli/cli-setshow.h: Include <string>.
7603 (get_setshow_command_value_string): Declare.
7604 * command.h (repeat_previous): Now returns const char *. Adjust
7605 comment.
7606 * maint.c: Include "cli/cli-cmds.h".
7607 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7608 (_initialize_maint_cmds): Register the "maintenance with" command.
7609 * top.c (repeat_previous): Move bits from pipe_command here:
7610 Return the saved command line, if any; error out if there's no
7611 command to relaunch.
7612
c6ac8931
PA
76132019-07-03 Pedro Alves <palves@redhat.com>
7614
7615 * NEWS (New commands): Mention "maint set/show test-settings"
7616 instead of "maint test-settings".
7617 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7618 (maintenance_test_settings_set_list): Rename to ...
7619 (maintenance_set_test_settings_list): ... this.
7620 (maintenance_test_settings_show_list): Rename to ...
7621 (maintenance_show_test_settings_list): ... this.
7622 (maintenance_test_settings_cmd): Delete.
7623 (maintenance_test_settings_set_cmd): ...
7624 (maintenance_set_test_settings_cmd): ... this.
7625 (maintenance_test_settings_show_cmd): ...
7626 (maintenance_show_test_settings_cmd): ... this.
7627 (maintenance_test_settings_show_value_cmd):
7628 (maintenance_show_test_settings_value_cmd): ... this.
7629 (_initialize_maint_test_settings): No longer install the "maint
7630 test-settings" prefix command. Rename "maint test-settings set"
7631 to "maint set test-settings", and "maint test-settings show" to
7632 "maint show test-settings". Adjust all subcommands.
7633
d1fcf2fd
PA
76342019-07-03 Pedro Alves <palves@redhat.com>
7635
7636 * maint-test-settings.c: Fix file's intro comment. Replace all
7637 references to "test-options" with references to "test-settings",
7638 in comments.
7639
970f9d09
PA
76402019-07-03 Pedro Alves <palves@redhat.com>
7641
7642 * maint-test-settings.c (maintenance_test_settings_xxx)
7643 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7644 New.
7645 (maintenance_test_settings_enums): Use them.
7646 (maintenance_test_settings_enum): Default to
7647 maintenance_test_settings_xxx.
7648 (_initialize_maint_test_settings): Initialize
7649 MAINTENANCE_TEST_SETTINGS_FILENAME.
7650
f3869b1a
SM
76512019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7652
7653 * breakpoint.h (remove_breakpoints_inf): Change return type to
7654 void, move function documentation here.
7655 * breakpoint.c (remove_breakpoints_inf): Change return type to
7656 void, move function documentation to header.
7657
54d66006
PA
76582019-07-02 Pedro Alves <palves@redhat.com>
7659
7660 * NEWS (Completion improvements): Mention "info threads".
7661 * thread.c (struct info_threads_opts, info_threads_option_defs)
7662 (make_info_threads_options_def_group): New.
7663 (info_threads_command): Use gdb::option::process_options.
7664 (info_threads_command_completer): New.
7665 (_initialize_thread): Use gdb::option::build_help to build the
7666 help text for "info threads".
7667
854f6088
SM
76682019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7669
7670 * defs.h (generic_load): Move from here...
7671 * symfile.h (generic_load): ... to here. Rename name parameter
7672 to args.
7673 * symfile.c (generic_load): Add comment.
7674
54ee4252
TT
76752019-07-01 Tom Tromey <tromey@adacore.com>
7676
7677 * dwarf2read.c
7678 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7679 declaration of without_params. Fix formatting.
7680
65392b3e
TT
76812019-07-01 Tom Tromey <tromey@adacore.com>
7682
7683 * ada-exp.y (find_primitive_type): Update.
7684 * ada-lang.h (ada_lookup_symbol): Update.
7685 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7686 parameter.
7687 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7688
7d7571f0
SDJ
76892019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7690
7691 PR breakpoints/24541
7692 * gdbarch.c: Regenerate.
7693 * gdbarch.h: Regenerate.
7694 * gdbarch.sh: Add 'stap_adjust_register'.
7695 * i386-tdep.c: Include '<unordered_set>'.
7696 (i386_stap_adjust_register): New function.
7697 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7698 * stap-probe.c (stap_parse_register_operand): Call
7699 'gdbarch_stap_adjust_register'.
7700
5af5392a
SDJ
77012019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7702
7703 PR python/24742
7704 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7705 * python/python.c (do_start_initialization): Use 'xmalloc'
7706 instead of 'PyMem_Malloc'.
7707
10d06d82
TT
77082019-06-28 Tom Tromey <tromey@adacore.com>
7709
7710 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7711 for Ada.
7712
1b7f24cd
TT
77132019-06-27 Tom Tromey <tromey@adacore.com>
7714
7715 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7716 objfile_key.
7717 (arm_find_mapping_symbol, arm_record_special_symbol)
7718 (_initialize_arm_tdep): Update.
7719 (arm_objfile_data_free): Remove.
7720
3d507ff2
TT
77212019-06-27 Tom Tromey <tromey@adacore.com>
7722
7723 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7724 to cp_print_static_field.
7725
762c164d
TT
77262019-06-26 Tom Tromey <tromey@adacore.com>
7727
7728 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7729 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7730 declare.
7731
aa2f9bcf
AH
77322019-06-26 Alan Hayward <alan.hayward@arm.com>
7733
7734 * features/aarch64-core.c (create_feature_aarch64_core):
7735 Regenerate.
7736 * features/aarch64-core.xml: Add cpsr flags.
7737
3426ae57
AH
77382019-06-26 Alan Hayward <alan.hayward@arm.com>
7739
7740 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7741 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7742
4838e44c
SM
77432019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7744
7745 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7746 field.
7747 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7748 use.
7749 (arm_record_special_symbol): Don't insert new symbol in sorted
7750 position, push it at the end.
7751
54cc7474
SM
77522019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7753
7754 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7755 (arm_mapping_symbol_s): Remove.
7756 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7757 (arm_mapping_symbol_vec): New typedef.
7758 (struct arm_per_objfile): Add constructor.
7759 <section_maps>: Change type to
7760 std::unique_ptr<arm_mapping_symbol_vec[]>.
7761 (arm_compare_mapping_symbols): Remove.
7762 (arm_find_mapping_symbol): Adjust to section_maps type change.
7763 (arm_objfile_data_free): Call delete on arm_per_objfile.
7764 (arm_record_special_symbol): Adjust to section_maps type change.
7765 Allocate arm_per_objfile with new.
7766
b65b566c
PW
77672019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7768
7769 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7770 with the command prefix.
7771
c2fc64f5
TT
77722019-06-25 Tom Tromey <tom@tromey.com>
7773
7774 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7775 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7776
fb54fa76
TT
77772019-06-25 Tom Tromey <tom@tromey.com>
7778
7779 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7780 type.
7781 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7782 protected.
7783
f7952c57
TT
77842019-06-25 Tom Tromey <tom@tromey.com>
7785
7786 * tui/tui-winsource.c
7787 (tui_source_window_base::set_is_exec_point_at): Add check against
7788 LOA_ADDRESS.
7789
17568d78
TT
77902019-06-25 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui-source.c (tui_set_source_content): Don't check before
7793 xfree.
7794 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7795
53e7cdba
TT
77962019-06-25 Tom Tromey <tom@tromey.com>
7797
7798 * tui/tui-winsource.h (tui_update_source_window_as_is)
7799 (tui_alloc_source_buffer, tui_line_is_displayed)
7800 (tui_addr_is_displayed): Change type of win_info.
7801 * tui/tui-winsource.c (tui_update_source_window_as_is)
7802 (tui_clear_source_content, tui_show_source_line)
7803 (tui_show_source_content, tui_source_window_base::refill)
7804 (tui_source_window_base::set_is_exec_point_at)
7805 (tui_source_window_base::set_is_exec_point_at)
7806 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7807 (tui_alloc_source_buffer, tui_line_is_displayed)
7808 (tui_addr_is_displayed): Change type of win_info. Update.
7809 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7810 (tui_source_window_base::do_make_visible_with_new_height):
7811 Update.
7812 * tui/tui-source.c (tui_set_source_content)
7813 (tui_set_source_content_nil)
7814 (tui_source_window::do_scroll_vertical): Update.
7815 * tui/tui-layout.c (show_layout): Update.
7816 * tui/tui-disasm.c (tui_set_disassem_content)
7817 (tui_disasm_window::do_scroll_vertical): Update.
7818 * tui/tui-data.h (tui_win_content): Remove.
7819 (struct tui_gen_win_info) <content, content_size>: Remove.
7820 (struct tui_source_element): Add initializers and destructor.
7821 (union tui_which_element, struct tui_win_element): Remove.
7822 (struct tui_source_window_base) <content>: New field.
7823 (struct tui_data_window): Remove destructor.
7824 (tui_alloc_content, tui_free_win_content)
7825 (tui_free_all_source_wins_content): Don't declare.
7826 * tui/tui-data.c (tui_initialize_static_data): Update.
7827 (init_content_element, tui_alloc_content): Remove.
7828 (~tui_gen_win_info): Update.
7829 (~tui_data_window, tui_free_all_source_wins_content)
7830 (tui_free_win_content, free_content, free_content_elements):
7831 Remove.
7832
7908abbf
TT
78332019-06-25 Tom Tromey <tom@tromey.com>
7834
7835 * tui/tui-winsource.h (tui_clear_source_content)
7836 (tui_erase_source_content, tui_show_source_content): Change type
7837 of win_info.
7838 * tui/tui-winsource.c (tui_clear_source_content)
7839 (tui_erase_source_content, tui_show_source_content): Change type
7840 of win_info.
7841 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7842 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7843 win_info.
7844 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7845 win_info.
7846 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7847
02c28df0
TT
78482019-06-25 Tom Tromey <tom@tromey.com>
7849
7850 * tui/tui-winsource.c (tui_clear_source_content)
7851 (tui_source_window_base::set_is_exec_point_at): Update.
7852 * tui/tui-source.c (tui_set_source_content_nil): Update.
7853 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7854 a bool.
7855 * tui/tui-data.c (init_content_element): Update.
7856
6658b1bf
TT
78572019-06-25 Tom Tromey <tom@tromey.com>
7858
7859 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7860 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7861 * tui/tui-layout.c (init_and_make_win): Update.
7862 * tui/tui.h (enum tui_win_type): Update.
7863 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7864 tui_win_is_auxillary.
7865 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7866 tui_win_is_auxillary.
7867
21e1c91e
TT
78682019-06-25 Tom Tromey <tom@tromey.com>
7869
7870 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7871 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7872 (tui_delete_data_content_windows, tui_display_all_data)
7873 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7874 Update.
7875 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7876 * tui/tui-regs.c (tui_last_regs_line_no)
7877 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7878 (tui_show_registers): Update.
7879 (tui_show_register_group): Return void. Update.
7880 (tui_display_registers_from, tui_display_reg_element_at_line)
7881 (tui_display_registers_from_line, tui_check_register_values):
7882 Update.
7883 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7884 member.
7885 (struct tui_data_window) <regs_content>: Now a std::vector.
7886 <regs_content_count>: Remove.
7887 (tui_add_content_elements, tui_free_data_content): Don't declare.
7888 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7889 (init_content_element): Remove DATA_WIN case. Add assert.
7890 (tui_add_content_elements): Remove.
7891 (tui_data_window): Update.
7892 (tui_free_data_content): Remove.
7893 (free_content_elements): Remove DATA_WIN case.
7894
115ac53b
TT
78952019-06-25 Tom Tromey <tom@tromey.com>
7896
7897 * tui/tui-data.c (tui_data_item_window): Update.
7898 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7899 * tui/tui-windata.c (tui_display_all_data)
7900 (tui_display_data_from_line): Update.
7901 (tui_check_data_values): Remove.
7902 * tui/tui-regs.c (tui_show_register_group)
7903 (tui_display_reg_element_at_line): Update.
7904 * tui/tui-hooks.c (tui_register_changed)
7905 (tui_refresh_frame_and_register_information): Call
7906 tui_check_register_values.
7907 * tui/tui-data.h (struct tui_data_window) <data_content,
7908 data_content_count, data_type>: Remove.
7909 (enum tui_data_type): Remove.
7910
7911 * tui/tui-data.c (tui_data_window::clear_detail)
7912 (~tui_data_window): Update.
7913
eaf9738b
TT
79142019-06-25 Tom Tromey <tom@tromey.com>
7915
7916 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7917 declare.
7918 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7919 Rename from tui_first_data_item_displayed. Update.
7920 (tui_data_window::refresh_all)
7921 (tui_data_window::do_scroll_vertical): Update.
7922 * tui/tui-data.h (struct tui_data_window)
7923 <first_data_item_displayed>: Declare new method.
7924
31ca4723
TT
79252019-06-25 Tom Tromey <tom@tromey.com>
7926
7927 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7928 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7929 contents...
7930 (tui_initialize_static_data): ...here.
7931
41bcff7f
TT
79322019-06-25 Tom Tromey <tom@tromey.com>
7933
7934 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7935 (tui_display_registers_from, tui_check_register_values): Update.
7936 (tui_display_register): Remove win_info parameter; update.
7937 (tui_get_register): Change type of parameters.
7938 * tui/tui-data.h (struct tui_data_element): Remove.
7939 (union tui_which_element) <data>: Remove.
7940 <data_window>: Change type.
7941 (struct tui_data_item_window): New.
7942 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7943 case. Add assert.
7944 (~tui_data_item_window): New destructor.
7945 (free_content_elements): Remove DATA_ITEM_WIN case.
7946
d2802c33
TT
79472019-06-25 Tom Tromey <tom@tromey.com>
7948
7949 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7950 Remove.
7951
dd835f8b
TT
79522019-06-25 Tom Tromey <tom@tromey.com>
7953
7954 * tui/tui-data.h (struct tui_command_element): Remove.
7955 (union tui_which_element) <command>: Remove.
7956 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7957 assert.
7958 (free_content_elements): Remove CMD_WIN case.
7959
bd7db367
TT
79602019-06-25 Tom Tromey <tom@tromey.com>
7961
7962 * tui/tui-layout.c (tui_set_layout): Update.
7963 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7964 * tui/tui-data.c (layout_def): Update.
7965
3add462f
TT
79662019-06-25 Tom Tromey <tom@tromey.com>
7967
7968 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7969 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7970 (tui_source_window_base::set_new_height): Update.
7971 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7972 Update.
7973 (tui_set_locator_fullname, tui_set_locator_info)
7974 (tui_show_frame_info): Update.
7975 * tui/tui-source.c (tui_set_source_content)
7976 (tui_source_is_displayed): Update.
7977 * tui/tui-layout.c (show_source_disasm_command, show_data)
7978 (show_source_or_disasm_and_command): Update.
7979 * tui/tui-disasm.c (tui_set_disassem_content)
7980 (tui_get_begin_asm_address): Update.
7981 * tui/tui-data.h (struct tui_locator_element): Remove.
7982 (union tui_which_element) <locator>: Remove.
7983 (struct tui_locator_window): New.
7984 (tui_locator_win_info_ptr): Change return type.
7985 * tui/tui-data.c (_locator): Change type.
7986 (tui_locator_win_info_ptr): Change return type.
7987 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7988 (tui_alloc_content): Add assert.
7989
489e9d8b
TT
79902019-06-25 Tom Tromey <tom@tromey.com>
7991
7992 * tui/tui-winsource.c
7993 (tui_exec_info_window::maybe_allocate_content): New method.
7994 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7995 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7996 (make_source_or_disasm_window): Add cast.
7997 * tui/tui-data.h (union tui_which_element) <simple_string>:
7998 Remove.
7999 (struct tui_source_info): New.
8000 (struct tui_source_window_base) <execution_info>: Change type.
8001 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8002 case, and add assert.
8003 (tui_alloc_content): Add assert.
8004
c3fabb7d
TT
80052019-06-25 Tom Tromey <tom@tromey.com>
8006
8007 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8008 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8009 * tui/tui-data.c (tui_alloc_win_info): Remove.
8010
bbc228ee
TT
80112019-06-25 Tom Tromey <tom@tromey.com>
8012
8013 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8014 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8015 can_highlight.
8016
5fcee43a
TT
80172019-06-25 Tom Tromey <tom@tromey.com>
8018
8019 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8020 make_visible_with_new_height method.
8021 (tui_win_info::make_visible_with_new_height): New method.
8022 (tui_source_window_base::do_make_visible_with_new_height)
8023 (tui_data_window::do_make_visible_with_new_height)
8024 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8025 (make_visible_with_new_height): Remove.
8026 (tui_resize_all, tui_adjust_win_heights): Use
8027 make_visible_with_new_height method.
8028 * tui/tui-data.h (struct tui_win_info)
8029 <do_make_visible_with_new_height, make_visible_with_new_height>:
8030 New methods.
8031 (struct tui_source_window_base, struct tui_data_window)
8032 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8033 methods.
8034
d83f1fe6
TT
80352019-06-25 Tom Tromey <tom@tromey.com>
8036
8037 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8038 method.
8039 (update_tab_width): Call update_tab_width method.
8040 * tui/tui-data.h (struct tui_win_info)
8041 (struct tui_source_window_base) <update_tab_width>: New methods.
8042
17374de4
TT
80432019-06-25 Tom Tromey <tom@tromey.com>
8044
8045 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8046 parameter.
8047 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8048 parameter.
8049 (tui_gen_win_info::make_visible): Update.
8050 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8051 parameter.
8052 * tui/tui-data.h (enum tui_box): New enum.
8053 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8054
f936bca2
TT
80552019-06-25 Tom Tromey <tom@tromey.com>
8056
8057 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8058 init_and_make_win for EXEC_INFO_WIN.
8059 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8060 longer inline.
8061 (struct tui_win_info) <~tui_win_info>: Inline.
8062 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8063 Don't declare.
8064 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8065 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8066 Remove.
8067 (tui_initialize_static_data): Update.
8068 (~tui_gen_win_info): Handle more cleanup here.
8069 (~tui_source_window_base): Delete "execution_info".
8070 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8071
d6ba6a11
TT
80722019-06-25 Tom Tromey <tom@tromey.com>
8073
8074 * tui/tui-layout.c (make_command_window): Don't set
8075 can_highlight.
8076 (show_source_disasm_command): Call the reset method.
8077 (show_data): Don't set can_highlight. Call the reset method.
8078 (tui_gen_win_info::reset): Rename from init_gen_win_info
8079 (init_and_make_win): Simplify. Return tui_gen_win_info.
8080 (show_source_or_disasm_and_command): Call the reset method.
8081 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8082 (struct tui_cmd_window): Set can_highlight.
8083
48a3bd16
TT
80842019-06-25 Tom Tromey <tom@tromey.com>
8085
8086 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8087 from make_visible.
8088 (tui_make_visible, tui_make_invisible): Rewrite.
8089 (tui_win_info::make_visible): Remove.
8090 (tui_source_window_base::make_visible): Update.
8091 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8092 method. Moved from...
8093 (struct tui_win_info) <make_visible>: ...here.
8094
c3bd716f
TT
80952019-06-25 Tom Tromey <tom@tromey.com>
8096
8097 * tui/tui-winsource.c
8098 (tui_source_window_base::do_scroll_horizontal): Remove direction
8099 parameter.
8100 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8101 direction parameter.
8102 * tui/tui-win.c (tui_win_info::forward_scroll)
8103 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8104 (tui_win_info::right_scroll): Update.
8105 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8106 direction parameter.
8107 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8108 direction parameter.
8109 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8110 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8111 Remove direction parameter.
8112 (struct tui_source_window_base, struct tui_source_window)
8113 (struct tui_disasm_window, struct tui_data_window)
8114 (struct tui_cmd_window): Update.
8115
21c32dca
TT
81162019-06-25 Tom Tromey <tom@tromey.com>
8117
8118 * tui/tui-winsource.h (tui_set_exec_info_content)
8119 (tui_show_exec_info_content, tui_erase_exec_info_content)
8120 (tui_clear_exec_info_content, tui_update_exec_info): Change
8121 argument to tui_source_window_base.
8122 * tui/tui-winsource.c (tui_set_exec_info_content)
8123 (tui_show_exec_info_content, tui_erase_exec_info_content)
8124 (tui_clear_exec_info_content, tui_update_exec_info): Change
8125 argument to tui_source_window_base.
8126
73fbdc65
TT
81272019-06-25 Tom Tromey <tom@tromey.com>
8128
8129 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8130 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8131
33325343
TT
81322019-06-25 Tom Tromey <tom@tromey.com>
8133
8134 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8135 check.
8136
29d2c474
TT
81372019-06-25 Tom Tromey <tom@tromey.com>
8138
8139 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8140 type to void.
8141 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8142 type to void.
8143 * tui/tui-source.c (tui_set_source_content): Update.
8144 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8145
152f3f4b
TT
81462019-06-25 Tom Tromey <tom@tromey.com>
8147
8148 * tui/tui-win.c (window_name_completer, tui_set_focus)
8149 (tui_all_windows_info): Use name method.
8150 * tui/tui-data.h (struct tui_gen_win_info)
8151 (struct tui_source_window, struct tui_disasm_window)
8152 (struct tui_data_window, struct tui_cmd_window) <name>: New
8153 method.
8154 (tui_win_name): Don't declare.
8155 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8156 (tui_win_name): Remove.
8157
be4da588
TT
81582019-06-25 Tom Tromey <tom@tromey.com>
8159
8160 * tui/tui-winsource.h (tui_update_source_window)
8161 (tui_update_source_window_as_is): Change parameter type.
8162 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8163 to be a tui_source_window_base.
8164 (tui_update_source_window_as_is): Likewise.
8165 * tui/tui-win.c (make_visible_with_new_height): Update.
8166
5b81daba
TT
81672019-06-25 Tom Tromey <tom@tromey.com>
8168
8169 * tui/tui-winsource.c (tui_erase_source_content)
8170 (tui_show_source_content, tui_show_exec_info_content)
8171 (tui_erase_exec_info_content): Use refresh_window method.
8172 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8173 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8174 from tui_refresh_win.
8175 (tui_data_window::refresh_window): New method.
8176 (tui_win_info::refresh, tui_source_window_base::refresh)
8177 (tui_refresh_all): Use refresh_window method.
8178 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8179 method.
8180 * tui/tui-regs.c (tui_display_register): Call refresh_window
8181 method.
8182 * tui/tui-layout.c (show_source_disasm_command)
8183 (show_source_or_disasm_and_command): Call refresh_window method.
8184 * tui/tui-data.h (struct tui_gen_win_info)
8185 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8186 New method.
8187
cb2ce893
TT
81882019-06-25 Tom Tromey <tom@tromey.com>
8189
8190 * tui/tui.c (tui_rl_other_window, tui_enable)
8191 (tui_is_window_visible, tui_get_command_dimension): Update.
8192 * tui/tui-winsource.c (tui_update_source_window_as_is)
8193 (tui_clear_source_content, tui_erase_source_content)
8194 (tui_show_source_line, tui_source_window_base::refill)
8195 (tui_source_window_base::do_scroll_horizontal)
8196 (tui_source_window_base::set_is_exec_point_at)
8197 (tui_update_breakpoint_info, tui_set_exec_info_content)
8198 (tui_alloc_source_buffer, tui_line_is_displayed)
8199 (tui_addr_is_displayed): Update.
8200 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8201 (tui_check_and_display_highlight_if_needed)
8202 (tui_win_info::make_visible, tui_win_info::refresh)
8203 (tui_refresh_all): Update.
8204 * tui/tui-windata.c (tui_first_data_item_displayed)
8205 (tui_delete_data_content_windows, tui_erase_data_content)
8206 (tui_display_all_data, tui_data_window::refresh_all)
8207 (tui_check_data_values): Update.
8208 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8209 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8210 (tui_win_info::backward_scroll, tui_refresh_all_win)
8211 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8212 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8213 (tui_source_window_base::set_new_height)
8214 (tui_data_window::set_new_height)
8215 (make_invisible_and_set_new_height)
8216 (make_visible_with_new_height, new_height_ok)
8217 (parse_scrolling_args): Update.
8218 * tui/tui-stack.c (tui_show_frame_info): Update.
8219 * tui/tui-source.c (tui_set_source_content)
8220 (tui_set_source_content_nil, tui_source_is_displayed)
8221 (tui_source_window::do_scroll_vertical): Update.
8222 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8223 (tui_display_registers_from, tui_display_reg_element_at_line)
8224 (tui_check_register_values, tui_reg_command): Update.
8225 * tui/tui-layout.c (tui_default_win_height)
8226 (show_source_disasm_command, show_data, init_and_make_win)
8227 (show_source_or_disasm_and_command): Update.
8228 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8229 (tui_redisplay_readline, tui_mld_flush)
8230 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8231 (tui_getc): Update.
8232 * tui/tui-disasm.c (tui_set_disassem_content)
8233 (tui_disasm_window::do_scroll_vertical): Update.
8234 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8235 Now virtual.
8236 (struct tui_win_info): Derive from tui_gen_win_info.
8237 <~tui_win_info>: Mark as override.
8238 <generic>: Remove member.
8239 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8240 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8241 (~tui_data_window, ~tui_win_info)
8242 (tui_free_all_source_wins_content): Update.
8243 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8244
ab313b35
TT
82452019-06-25 Tom Tromey <tom@tromey.com>
8246
8247 * tui/tui-layout.c (init_and_make_win): Use new.
8248 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8249 destructor, initializers.
8250 (tui_alloc_generic_win_info): Don't declare.
8251 * tui/tui-data.c (_locator): Add argument to constructor.
8252 (source_win, disasm_win): New globals.
8253 (exec_info): Remove.
8254 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8255 Update.
8256 (tui_alloc_generic_win_info): Remove.
8257 (init_content_element): Use new.
8258 (tui_win_info::tui_win_info): Update.
8259 (free_content_elements) <case DATA_WIN>: Use delete.
8260
dc2c33e4
TT
82612019-06-25 Tom Tromey <tom@tromey.com>
8262
8263 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8264 * tui/tui-windata.c (tui_first_data_item_displayed)
8265 (tui_delete_data_content_windows): Update.
8266 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8267 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8268 (tui_display_registers_from, tui_check_register_values): Update.
8269 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8270 pointer.
8271 * tui/tui-data.c (init_content_element): Update. Allocate the new
8272 window.
8273 (tui_free_data_content): Update.
8274 (free_content_elements) <case DATA_WIN>: Free the window.
8275
214a5cbe
TT
82762019-06-25 Tom Tromey <tom@tromey.com>
8277
8278 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8279 Update.
8280 * tui/tui-layout.c (make_command_window)
8281 (show_source_disasm_command, show_data, init_and_make_win)
8282 (show_source_or_disasm_and_command): Update.
8283 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8284 method.
8285 <can_highight, is_highlighted>: Now bool.
8286 (tui_set_win_highlight): Don't declare.
8287 * tui/tui-data.c (tui_set_win_highlight): Remove.
8288
8e2daf15
TT
82892019-06-25 Tom Tromey <tom@tromey.com>
8290
8291 * tui/tui-wingeneral.c (make_visible): Remove check of window
8292 type.
8293
8903bd8a
TT
82942019-06-25 Tom Tromey <tom@tromey.com>
8295
8296 * tui/tui-win.c (tui_win_info::max_height)
8297 (tui_cmd_window::max_height): New methods.
8298 (new_height_ok): Call max_height.
8299 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8300 <max_height>: New method.
8301
3f02ce1e
TT
83022019-06-25 Tom Tromey <tom@tromey.com>
8303
8304 * tui/tui-win.c (tui_source_window_base::set_new_height)
8305 (tui_data_window::set_new_height): New methods.
8306 (make_invisible_and_set_new_height): Call set_new_height method.
8307 * tui/tui-data.h (struct tui_win_info)
8308 (struct tui_source_window_base, struct tui_data_window)
8309 <set_new_height>: New method.
8310
1825f487
TT
83112019-06-25 Tom Tromey <tom@tromey.com>
8312
8313 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8314 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8315 tui_refresh_data_win.
8316 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8317 method.
8318 (tui_refresh_all_win): Call the refresh_all method.
8319 (tui_set_focus): Likewise.
8320 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8321 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8322 Likewise.
8323
ad54d15b
TT
83242019-06-25 Tom Tromey <tom@tromey.com>
8325
8326 * tui/tui-winsource.h (tui_refill_source_window)
8327 (tui_set_is_exec_point_at): Don't declare.
8328 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8329 (tui_source_window_base::refill): Rename from
8330 tui_refill_source_window.
8331 (tui_source_window_base::do_scroll_horizontal): Update.
8332 (tui_source_window_base::set_is_exec_point_at): Rename from
8333 tui_set_is_exec_point_at.
8334 (tui_update_all_breakpoint_info): Update.
8335 * tui/tui-stack.c (tui_show_frame_info): Update.
8336 * tui/tui-layout.c (show_data): Add cast.
8337 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8338 * tui/tui-data.h (struct tui_source_window_base) <refill,
8339 set_is_exec_point_at>: New methods.
8340 (tui_source_windows, tui_add_to_source_windows): Update types.
8341 (tui_add_to_source_windows): Remove redundant declaration.
8342 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8343 (tui_source_windows): Change return type.
8344 (tui_clear_source_windows_detail): Update.
8345 (tui_add_to_source_windows): Change type of parameter.
8346 (tui_free_all_source_wins_content): Update.
8347
2042b506
TT
83482019-06-25 Tom Tromey <tom@tromey.com>
8349
8350 * tui/tui-wingeneral.c (tui_win_info::refresh)
8351 (tui_source_window_base::refresh): New methods.
8352 (tui_refresh_all): Call the refresh method.
8353 * tui/tui-data.h (struct tui_win_info)
8354 (struct tui_source_window_base) <refresh>: New method.
8355
56122977
TT
83562019-06-25 Tom Tromey <tom@tromey.com>
8357
8358 * tui/tui.h (tui_is_window_visible): Return bool.
8359 * tui/tui.c (tui_is_window_visible): Return bool.
8360 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8361 (tui_make_visible, tui_make_invisible)
8362 (tui_win_info::make_visible)
8363 (tui_source_window_base::make_visible, make_all_visible)
8364 (tui_make_all_visible, tui_make_all_invisible): Update.
8365 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8366 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8367 bool.
8368 (struct tui_win_info, struct tui_source_window_base)
8369 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8370 * tui/tui-data.c (tui_init_generic_part): Update.
8371
cda37efb
TT
83722019-06-25 Tom Tromey <tom@tromey.com>
8373
8374 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8375 (tui_source_window_base::make_visible): New methods.
8376 (make_all_visible): Make method call.
8377 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8378 (struct tui_source_window_base, struct tui_cmd_window): Override
8379 make_visible.
8380 (tui_win_is_source_type): Don't declare.
8381 * tui/tui-data.c (tui_win_is_source_type): Remove.
8382
6a0ee02c
TT
83832019-06-25 Tom Tromey <tom@tromey.com>
8384
8385 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8386 NULL check.
8387
63901aec
TT
83882019-06-25 Tom Tromey <tom@tromey.com>
8389
8390 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8391 Inline constructor. Add initializers for members.
8392 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8393 constructors; now inline in class.
8394
ceb13a13
TT
83952019-06-25 Tom Tromey <tom@tromey.com>
8396
8397 * tui/tui-regs.c (tui_show_registers): Update.
8398 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8399 bool.
8400 * tui/tui-data.c (tui_data_window::clear_detail)
8401 (tui_data_window): Update.
8402
238eb706
TT
84032019-06-25 Tom Tromey <tom@tromey.com>
8404
8405 * tui/tui-windata.c (tui_display_all_data)
8406 (tui_display_data_from_line, tui_display_data_from)
8407 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8408 Update.
8409 * tui/tui-regs.c (tui_last_regs_line_no)
8410 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8411 (tui_show_registers, tui_show_register_group)
8412 (tui_display_registers_from, tui_display_reg_element_at_line)
8413 (tui_display_registers_from_line, tui_check_register_values)
8414 (tui_reg_next, tui_reg_prev): Update.
8415 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8416 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8417 tui_data_window.
8418 (struct tui_win_info) <detail>: Remove. Add new fields from
8419 tui_data_info.
8420 (TUI_DATA_WIN): Add cast.
8421 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8422 (~tui_data_window): Simplify.
8423
81491aa0
TT
84242019-06-25 Tom Tromey <tom@tromey.com>
8425
8426 * tui/tui-layout.c (show_source_disasm_command)
8427 (show_source_or_disasm_and_command): Update.
8428 * tui/tui-io.c (update_cmdwin_start_line)
8429 (tui_redisplay_readline): Update.
8430 * tui/tui-data.h (struct tui_command_info): Remove.
8431 (struct tui_win_info) <detail>: Remove command_info member.
8432 (struct tui_data_window) <start_line>: New member, from
8433 tui_command_info.
8434 (TUI_CMD_WIN): Add casts.
8435
e6e41501
TT
84362019-06-25 Tom Tromey <tom@tromey.com>
8437
8438 * tui/tui-winsource.c (tui_update_source_window)
8439 (tui_refill_source_window)
8440 (tui_source_window_base::do_scroll_horizontal)
8441 (tui_update_breakpoint_info, tui_set_exec_info_content)
8442 (tui_show_exec_info_content, tui_erase_exec_info_content)
8443 (tui_clear_exec_info_content): Update.
8444 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8445 Update.
8446 * tui/tui-win.c (make_invisible_and_set_new_height)
8447 (make_visible_with_new_height): Update.
8448 * tui/tui-source.c (tui_set_source_content)
8449 (tui_show_symtab_source): Update.
8450 * tui/tui-layout.c (extract_display_start_addr)
8451 (show_source_disasm_command, show_data)
8452 (make_source_or_disasm_window)
8453 (show_source_or_disasm_and_command): Update.
8454 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8455 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8456 "gdbarch".
8457 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8458 to tui_source_window_base.
8459 (struct tui_win_info) <detail>: Remove source_info member.
8460 (struct tui_source_window_base) <has_locator>: Inline.
8461 Move contents from tui_source_info; rename has_locator member to
8462 m_has_locator.
8463 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8464 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8465 header file.
8466 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8467 Simplify.
8468 (tui_free_all_source_wins_content): Cast to
8469 tui_source_window_base.
8470
44f0e208
TT
84712019-06-25 Tom Tromey <tom@tromey.com>
8472
8473 * tui/tui-win.c (make_invisible_and_set_new_height)
8474 (make_visible_with_new_height): Call has_locator method.
8475 * tui/tui-layout.c (show_source_disasm_command, show_data)
8476 (show_source_or_disasm_and_command): Update for bool change.
8477 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8478 (tui_win_info) <has_locator>: New method.
8479 (struct tui_source_window_base) <has_locator>: New method.
8480 (tui_win_has_locator): Don't declare.
8481 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8482 from tui_win_has_locator.
8483 (tui_source_window_base): Use false, not FALSE.
8484
7778b912
TT
84852019-06-25 Tom Tromey <tom@tromey.com>
8486
8487 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8488 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8489 clear_detail method directly.
8490 (tui_clear_win_detail): Remove.
8491
f83d391c
TT
84922019-06-25 Tom Tromey <tom@tromey.com>
8493
8494 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8495 "this", not TUI_DISASM_WIN.
8496
13446e05
TT
84972019-06-25 Tom Tromey <tom@tromey.com>
8498
8499 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8500 declare.
8501 * tui/tui-winsource.c
8502 (tui_source_window_base::do_scroll_horizontal): Rename from
8503 tui_horizontal_source_scroll.
8504 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8505 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8506 from tui_vertical_data_scroll.
8507 * tui/tui-win.h (tui_scroll): Don't declare.
8508 * tui/tui-win.c (tui_win_info::forward_scroll)
8509 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8510 (tui_win_info::right_scroll): Rename and update.
8511 (tui_scroll_forward_command, tui_scroll_backward_command)
8512 (tui_scroll_left_command, tui_scroll_right_command): Update.
8513 (tui_scroll): Remove.
8514 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8515 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8516 from tui_vertical_source_scroll.
8517 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8518 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8519 from tui_vertical_disassem_scroll.
8520 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8521 do_scroll_horizontal>: New methods.
8522 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8523 Likewise.
8524 (struct tui_source_window_base): Add do_scroll_horizontal.
8525 (struct tui_source_window, struct tui_disasm_window): Add
8526 do_scroll_vertical.
8527 (struct tui_data_window, struct tui_cmd_window): Add
8528 do_scroll_horizontal and do_scroll_vertical.
8529 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8530
5cf82909
TT
85312019-06-25 Tom Tromey <tom@tromey.com>
8532
8533 * tui/tui-data.h (struct tui_source_window_base): New struct.
8534 (struct tui_source_window): Derive from tui_source_window_base.
8535 (struct tui_disasm_window): New struct.
8536 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8537 from tui_source_window::clear_detail.
8538 (tui_source_window_base): Rename from tui_source_window.
8539 (~tui_source_window_base): Rename from ~tui_source_window.
8540 (tui_alloc_win_info): Create a tui_disasm_window.
8541
ee1d42d6
TT
85422019-06-25 Tom Tromey <tom@tromey.com>
8543
8544 * tui/tui-data.h (struct tui_source_window)
8545 (struct tui_data_window): Declare destructors.
8546 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8547 destructors.
8548 (tui_win_info): Simplify.
8549
b4eb2452
TT
85502019-06-25 Tom Tromey <tom@tromey.com>
8551
8552 * tui/tui-winsource.c (tui_display_main)
8553 (tui_update_source_windows_with_addr)
8554 (tui_update_all_breakpoint_info): Update.
8555 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8556 (new_height_ok, parse_scrolling_args): Update.
8557 * tui/tui-stack.c (tui_show_frame_info): Update.
8558 * tui/tui-data.h (struct tui_list): Remove.
8559 (tui_source_windows): Return a reference to a std::vector.
8560 * tui/tui-data.c (source_windows): Now a std::vector.
8561 (tui_source_windows): Change return type.
8562 (tui_clear_source_windows): Rewrite.
8563 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8564 (tui_free_all_source_wins_content): Rewrite.
8565
8761a91b
TT
85662019-06-25 Tom Tromey <tom@tromey.com>
8567
8568 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8569 (struct tui_data_window, struct tui_cmd_window): Declare
8570 clear_detail method.
8571 * tui/tui-data.c (tui_source_window::clear_detail)
8572 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8573 methods.
8574 (tui_clear_win_detail): Simplify.
8575
0ed69eda
TT
85762019-06-25 Tom Tromey <tom@tromey.com>
8577
8578 * tui/tui-layout.c (make_source_window, make_disasm_window)
8579 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8580 Return the new window.
8581 (show_source_disasm_command, show_data)
8582 (show_source_or_disasm_and_command): Update.
8583
82432e10
TT
85842019-06-25 Tom Tromey <tom@tromey.com>
8585
8586 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8587 parameter. Return the new window.
8588 (show_source_disasm_command): Update and remove NULL check.
8589 (show_source_or_disasm_and_command): Update.
8590
ec328aa5
TT
85912019-06-25 Tom Tromey <tom@tromey.com>
8592
8593 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8594
33b906ab
TT
85952019-06-25 Tom Tromey <tom@tromey.com>
8596
8597 * tui/tui-data.h (struct tui_win_info): Make constructor
8598 protected. Make destructor virtual. Add initializers.
8599 (tui_source_window, tui_data_window, tui_cmd_window): New
8600 classes.
8601 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8602 constructor. Add "type" parameter.
8603 (tui_source_window, tui_data_window, tui_cmd_window): New
8604 constructors.
8605 (tui_alloc_win_info): Instantiate the appropriate subclass.
8606
e7e11af4
TT
86072019-06-25 Tom Tromey <tom@tromey.com>
8608
8609 * tui/tui-win.c (tui_resize_all): Use delete.
8610 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8611 destructor.
8612 (tui_free_window): Don't declare.
8613 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8614 Update.
8615
6792b55e
TT
86162019-06-25 Tom Tromey <tom@tromey.com>
8617
8618 * tui/tui-data.h (struct tui_win_info): Add constructor.
8619 * tui/tui-data.c (tui_alloc_win_info): Use new.
8620 (tui_free_window): Use delete.
8621
f95675e1
TT
86222019-06-22 Tom Tromey <tom@tromey.com>
8623
8624 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8625 declare.
8626 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8627
5bff081c
TT
86282019-06-22 Tom Tromey <tom@tromey.com>
8629
8630 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8631 declare.
8632 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8633
47e3f474
TV
86342019-06-22 Tom de Vries <tdevries@suse.de>
8635
8636 * dwarf2read.c (create_addrmap_from_aranges)
8637 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8638 instead of '%zu'.
8639
fd5866f6
SM
86402019-06-21 Simon Marchi <simon.marchi@efficios.com>
8641
8642 * dwarf2read.h (dwarf2_section_info_def): Remove.
8643 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8644 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8645 std::vector<dwarf2_section_info>.
8646 (struct dwo_file) <~dwo_file>: Remove.
8647 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8648 types field.
8649 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8650 (dwarf2_read_debug_names): Likewise.
8651 (create_debug_types_hash_table): Change parameter type to
8652 array_view, adjust code accordingly.
8653 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8654 (partial_die_info::fixup): Likewise.
8655 (determine_prefix): Likewise.
8656 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8657
fb1eb2f9
SM
86582019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8659
8660 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8661 gdb_bfd_ref_ptr.
8662 <~dwo_file>: Remove call to gdb_bfd_unref.
8663 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8664 gdb_bfd_ref_ptr::get.
8665
51ac9db5
SM
86662019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8667
8668 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8669 type to htab_up.
8670 * dwarf2read.c (struct dwo_file): Initialize fields.
8671 <~dwo_file>: New.
8672 (free_dwo_file): Remove, move content to ~dwo_file.
8673 (struct dwo_file_deleter): Remove.
8674 (dwo_file_up>: Remove custom deleter.
8675 (free_dwo_files): Remove.
8676 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8677 dwo_files.
8678 (process_skeletonless_type_units): Call unique_ptr::get.
8679 (allocate_dwo_file_hash_table): Add deleter to created hash
8680 table. Change return type to htab_up.
8681 (lookup_dwo_file_slot): Don't memset dwo_file, call
8682 unique_ptr::get.
8683 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8684 (create_dwo_unit_in_dwp_v2): Likewise.
8685 (open_and_init_dwo_file): Likewise.
8686 (free_dwo_file_from_slot): Remove.
8687
dc4ccb6f
SM
86882019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8689
8690 * dwarf2read.h (struct dwarf2_section_info) <readin,
8691 is_virtual>: Change type to bool.
8692 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8693 true instead of 1.
8694
e6a1c5cb
TT
86952019-06-19 Tom Tromey <tom@tromey.com>
8696
8697 * tui/tui-data.h (tui_init_content_element): Don't declare.
8698
6f6ffbeb
TT
86992019-06-19 Tom Tromey <tom@tromey.com>
8700
8701 * tui/tui-data.h (tui_init_win_info): Don't declare.
8702
f23f598e
TV
87032019-06-19 Tom de Vries <tdevries@suse.de>
8704
8705 * dwarf2read.h (abstract_to_concrete): Change type to
8706 std::unordered_map<sect_offset, std::vector<sect_offset>,
8707 gdb::hash_enum<sect_offset>>.
8708
680e1bee
TT
87092019-06-19 Tom Tromey <tromey@adacore.com>
8710
8711 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8712 EVAL_AVOID_SIDE_EFFECTS specially.
8713
dcf37923
TT
87142019-06-19 Tom Tromey <tromey@adacore.com>
8715
8716 * source-cache.c (highlighter): New global.
8717 (source_cache::get_source_lines): Create a highlighter on demand.
8718
494986d5
AB
87192019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8720
8721 * defs.h (deprecated_interactive_hook): Delete declaration.
8722 * interps.c (clear_interpreter_hooks): Remove use of
8723 deprecated_interactive_hook.
8724 * top.c (deprecated_interactive_hook): Delete definition.
8725 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8726
3360b6e7
TV
87272019-06-18 Tom de Vries <tdevries@suse.de>
8728
8729 PR gdb/24515
8730 * dwarf2read.h (abstract_to_concrete): Change type from
8731 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8732 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8733 * dwarf2read.c (read_variable): Update.
8734 (dwarf2_fetch_die_loc_sect_off): Update.
8735
310b3441
TV
87362019-06-17 Tom de Vries <tdevries@suse.de>
8737
8738 PR gdb/24617
8739 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8740 accessing parent[parent_len - 1].
8741
ba9777be
PP
87422019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8743
8744 PR gdb/24364
8745 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8746 call dtrace_process_dof with NULL dof.
8747
2b9f6e89
TV
87482019-06-16 Tom de Vries <tdevries@suse.de>
8749
8750 PR gdb/24445
8751 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8752
431b3ead
TT
87532019-06-16 Tom Tromey <tom@tromey.com>
8754
8755 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8756 (make_all_visible): Use address of member.
8757
d04b44a1
TT
87582019-06-16 Tom Tromey <tom@tromey.com>
8759
8760 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8761 (tui_free_window, free_content, free_content_elements): Remove
8762 unnecessary cast.
8763 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8764 cast.
8765 * tui/tui-regs.c (tui_show_register_group)
8766 (tui_display_registers_from, tui_display_reg_element_at_line):
8767 Remove unnecessary cast.
8768
bf5142e7
AB
87692019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 * linux-nat.c (normal_mask): Delete.
8772 (_initialize_linux_nat): Don't initialise normal_mask.
8773
c4973306
SM
87742019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8775
8776 PR gdb/24445
8777 * dwarf-index-write.h (write_psymtabs_to_index): Add
8778 dwz_basename parameter.
8779 * dwarf-index-write.c (write_gdbindex): Move file writing to
8780 write_gdbindex_1. Change return type void.
8781 (assert_file_size): Move up, remove filename parameter.
8782 (write_gdbindex_1): New function.
8783 (write_debug_names): Change return type to void, call
8784 assert_file_size.
8785 (struct index_wip_file): New struct.
8786 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8787 file logic to index_wip_file. Write index for dwz file if
8788 needed.
8789 (save_gdb_index_command): Pass basename of dwz file, if present.
8790 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8791 build-id of dwz file, if present.
8792 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8793 (dwarf2_get_dwz_file): Likewise.
8794 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8795 (dwarf2_get_dwz_file): Likewise.
8796
395f9c91
TT
87972019-06-16 Tom Tromey <tom@tromey.com>
8798
8799 * coffread.c (process_coff_symbol): Use xstrdup.
8800 * value.c (create_internalvar): Use xstrdup.
8801
cafb3438
TT
88022019-06-16 Tom Tromey <tom@tromey.com>
8803
8804 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8805 * breakpoint.c (stopin_command, stopat_command)
8806 (until_break_command, decode_location_default): Remove unnecessary
8807 cast.
8808 * utils.c (subset_compare): Remove unnecessary cast.
8809 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8810 cast.
8811 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8812 cast.
8813 * infcmd.c (path_command): Remove unnecessary cast.
8814 * coffread.c (decode_type): Remove unnecessary cast.
8815 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8816 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8817 * tui/tui-stack.c (tui_show_locator_content)
8818 (tui_show_frame_info): Remove unnecessary cast.
8819 * tui/tui-win.c (tui_scroll_forward_command)
8820 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8821 (parse_scrolling_args): Remove unnecessary cast.
8822 * tui/tui-data.c (init_win_info, tui_del_window)
8823 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8824 (free_content_elements): Remove unnecessary cast.
8825 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8826 unnecessary cast.
8827 * tui/tui-source.c (tui_set_source_content)
8828 (tui_vertical_source_scroll): Remove unnecessary cast.
8829 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8830 cast.
8831 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8832 * tui/tui-regs.c (tui_display_registers_from)
8833 (tui_display_register): Remove unnecessary cast.
8834 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8835 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8836 (make_visible): Remove unnecessary cast.
8837 * tui/tui-winsource.c (tui_erase_source_content)
8838 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8839 unnecessary cast.
8840 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8841 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8842 * stabsread.c (read_type, read_array_type, read_range_type):
8843 Remove unnecessary cast.
8844 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8845 (parse_symbol, parse_type, upgrade_type, parse_external)
8846 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8847 unnecessary cast.
8848 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8849
730ead81
TT
88502019-06-16 Tom Tromey <tom@tromey.com>
8851
8852 * tui/tui-data.c (tui_alloc_generic_win_info)
8853 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8854 checks.
8855
584a927c
AB
88562019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8857 Andrew Burgess <andrew.burgess@embecosm.com>
8858
8859 * f-typeprint.c (f_print_type): Don't return early for not
8860 associated or not allocated types.
8861 (f_type_print_varspec_suffix): Add print_rank parameter and print
8862 ranks of array types in case they dangling.
8863 (f_type_print_base): Add print_rank parameter.
8864
30056ea0
AB
88652019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 * NEWS: Mention new MI commands.
8868 * break-catch-throw.c (enum exception_event_kind): Move to
8869 breakpoint.h.
8870 (print_mention_exception_catchpoint): Output text as a single
8871 message.
8872 (catch_exception_command_1): Rename to...
8873 (catch_exception_event): ...this, make non-static, update header
8874 command, and change some parameter types.
8875 (catch_catch_command): Update for changes to
8876 catch_exception_command_1.
8877 (catch_throw_command): Likewise.
8878 (catch_rethrow_command): Likewise.
8879 * breakpoint.c (enum exception_event_kind): Delete.
8880 * breakpoint.h (enum exception_event_kind): Moved here from
8881 break-catch-throw.c.
8882 (catch_exception_event): Declare.
8883 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8884 (mi_cmd_catch_throw): New function.
8885 (mi_cmd_catch_rethrow): New function.
8886 (mi_cmd_catch_catch): New function.
8887 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8888 'catch-catch' entries.
8889 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8890 (mi_cmd_catch_rethrow): Declare.
8891 (mi_cmd_catch_catch): Declare.
8892
ec8e2b6d
AB
88932019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8894
8895 * annotate.c (annotate_source_line): Change return type to void,
8896 update implementation to match.
8897 * annotate.h (annotate_source_line): Change return type to void,
8898 update header comment.
8899 * stack.c (print_frame_info): Don't change what frame information
8900 is printed based on whether annotations are on or not.
8901
0d3abd8c
AB
89022019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8903
8904 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8905 (annotate_source): Make static.
8906 (annotate_source_line): Moved from source.c and renamed from
8907 identify_source_line. Update the return type.
8908 * annotate.h (annotate_source): Delete declaration.
8909 (annotate_source_line): Declaration moved from source.h, and
8910 renamed from identify_source_line. Return type updated.
8911 * source.c (identify_source_line): Moved to annotate.c and renamed
8912 to annotate_source_line.
8913 (info_line_command): Remove check of annotation_level.
8914 * source.h (identify_source_line): Move declaration to annotate.h
8915 and rename to annotate_source_line.
8916 * stack.c: Add 'annotate.h' include.
8917 (print_frame_info): Remove check of annotation_level before
8918 calling annotate_source_line.
8919
00df30ae
AB
89202019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8921
8922 * source-cache.c (source_cache::get_plain_source_lines): Use
8923 open_source_file_with_line_charpos instead of just
8924 open_source_file, remove call to find_source_lines.
8925 (source_cache::get_source_lines): Likewise.
8926 * source.c (find_source_lines): Make static.
8927 (get_filename_and_charpos): Renamed into...
8928 (open_source_file_with_line_charpos): ..this along with changes to
8929 return a scoped_fd, and some other minor clean ups.
8930 (identify_source_line): Use open_source_file_with_line_charpos.
8931 (search_command_helper): Use open_source_file_with_line_charpos
8932 instead of just open_source_file, remove call to
8933 find_source_lines.
8934 * source.h (open_source_file_with_line_charpos): Declare new
8935 function.
8936 (find_source_lines): Delete declaration.
8937
afda45a2
AB
89382019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8939
8940 * source.c (get_filename_and_charpos): Remove fullname
8941 parameter.
8942 (identify_source_line): Update call to get_filename_and_charpos.
8943
0735b091
TT
89442019-06-14 Tom Tromey <tromey@adacore.com>
8945
8946 PR gdb/24502:
8947 * ui-style.h (skip_ansi_escape): Update comment.
8948 * ui-file.h (class no_terminal_escape_file): New class.
8949 * ui-file.c (no_terminal_escape_file::write)
8950 (no_terminal_escape_file::puts): New methods.
8951 * cli/cli-logging.c (handle_redirections): Use
8952 no_terminal_escape_file.
8953
52ce35e2
TT
89542019-06-14 Tom Tromey <tromey@adacore.com>
8955
8956 * NEWS: Move convenience variable news above Python news.
8957
73cc7272
TT
89582019-06-14 Tom Tromey <tom@tromey.com>
8959
8960 * gnulib: Move directory to top-level.
8961 * configure.ac: Don't configure gnulib.
8962 * configure: Rebuild.
8963 * common/common-defs.h: Use new path to gnulib.
8964 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8965 (GNULIB_H): Remove.
8966 (INCGNU): Look in new gnulib location.
8967 (HFILES_NO_SRCDIR): Remove gnulib files.
8968 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8969 (generated_files): Remove GNULIB_H.
8970 ($(LIBGNU), all-lib): Remove targets.
8971 (distclean): Don't mention GNULIB_BUILDDIR.
8972 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8973
f5686554
TT
89742019-06-14 Tom Tromey <tromey@adacore.com>
8975
8976 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8977 Warn if symbol file does not provide any symbols.
8978
a0c1ffed
TT
89792019-06-14 Tom Tromey <tromey@adacore.com>
8980
8981 * source.c (find_and_open_source): Respect basenames_may_differ.
8982
7c39e397
AB
89832019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8984
8985 * annotate.c (annotate_breakpoints_invalid): Make use of
8986 scoped_restore_terminal_state.
8987 (annotate_frames_invalid): Likewise.
8988
f411722c
TT
89892019-06-14 Tom Tromey <tromey@adacore.com>
8990
8991 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8992 allow assignment to an internalvar.
8993
4268ec18
TT
89942019-06-14 Tom Tromey <tromey@adacore.com>
8995
8996 * ada-lex.l: Allow "_" in attribute names.
8997
abdb711e
TT
89982019-06-14 Tom Tromey <tromey@adacore.com>
8999
9000 PR gdb/24653:
9001 * regcache.c (registers_changed): Don't call alloca.
9002 * top.c (execute_command): Don't call alloca.
9003
4c048731
PA
90042019-06-13 Pedro Alves <palves@redhat.com>
9005
9006 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9007 'expression'. When parsing an expression, error out if there's
9008 junk after "unlimited".
9009 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9010 (do_set_command): Adjust calls to is_unlimited_literal.
9011
66eb1ed3
PA
90122019-06-13 Pedro Alves <palves@redhat.com>
9013
9014 * compile/compile.c (make_compile_options_def_group): Add braces
9015 around array_view initializer.
9016 * thread.c (make_thread_apply_all_options_def_group)
9017 (make_thread_apply_all_options_def_group): Likewise.
9018
3345721a
PA
90192019-06-13 Pedro Alves <palves@redhat.com>
9020
9021 * NEWS (New commands): Mention "maint test-options
9022 require-delimiter", "maint test-options unknown-is-error", "maint
9023 test-options unknown-is-operand" and "maint show
9024 test-options-completion-result".
9025 (New command options, command completion): New section.
9026 (Completion improvements): New section.
9027 Mention that you can abbreviate "unlimited".
9028
6206060d
PA
90292019-06-13 Pedro Alves <palves@redhat.com>
9030
9031 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9032 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9033 * unittests/cli-utils-selftests.c (test_parse_flags)
9034 (test_parse_flags_qcs): Delete.
9035 (test_cli_utils): Don't call deleted functions.
9036
6665660a
PA
90372019-06-13 Pedro Alves <palves@redhat.com>
9038
9039 * thread.c: Include "cli/cli-option.h".
9040 (tp_array_compar_ascending): Global.
9041 (tp_array_compar): Delete function.
9042 (tp_array_compar_ascending, tp_array_compar_descending): New
9043 functions.
9044 (ascending_option_def, qcs_flag_option_def)
9045 (thr_qcs_flags_option_defs)
9046 (make_thread_apply_all_options_def_group)
9047 (make_thread_apply_options_def_group): New.
9048 (thread_apply_all_command): Use gdb::option::process_options.
9049 (thread_apply_command_completer)
9050 (thread_apply_all_command_completer): New.
9051 (thread_apply_command): Use gdb::option::process_options.
9052 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9053 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9054 to generate help text of "thread apply". Adjust "taas"'s help.
9055 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9056 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9057
f7e13587
PA
90582019-06-13 Pedro Alves <palves@redhat.com>
9059
9060 * thread.c (thread_apply_command): Check for invalid TID with
9061 isdigit instead of !isalpha.
9062
5d707134
PA
90632019-06-13 Pedro Alves <palves@redhat.com>
9064
9065 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9066 (validate_flags_qcs): New.
9067 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9068 (validate_flags_qcs): Declare.
9069 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9070 (make_frame_apply_options_def_group): New.
9071 (frame_apply_command_count): Process options with
9072 gdb::option::process_options.
9073 (frame_apply_completer): New.
9074 (frame_apply_level_completer, frame_apply_all_completer)
9075 (frame_apply_completer): New.
9076 (_initialize_stack): Update help of "frame apply", "frame apply
9077 level", "frame apply all" and "faas" to mention supported options
9078 and install command completers.
9079 * stack.h (frame_apply_all_completer): Declare.
9080 * thread.c: Include "stack.h".
9081 (tfaas_command): Add "--".
9082 (_initialize_thread): Update help "tfaas" to mention supported
9083 options and install command completer.
9084
272d4594
PA
90852019-06-13 Pedro Alves <palves@redhat.com>
9086
9087 * completer.c (complete_nested_command_line): New.
9088 (gdb_completion_word_break_characters_throw): Add assertion.
9089 * completer.h (complete_nested_command_line): Declare.
9090
90a1ef87
PA
90912019-06-13 Pedro Alves <palves@redhat.com>
9092
9093 * stack.c (parse_backtrace_qualifiers): New.
9094 (backtrace_command): Use it.
9095 (backtrace_command_completer): Complete on qualifiers.
9096
d4c16835
PA
90972019-06-13 Pedro Alves <palves@redhat.com>
9098
9099 * frame.c: Include "cli/cli-option.h.
9100 (user_set_backtrace_options): New.
9101 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9102 Delete.
9103 (get_prev_frame): Adjust.
9104 (boolean_option_def, uinteger_option_def)
9105 (set_backtrace_option_defs): New.
9106 (_initialize_frame): Adjust and use
9107 gdb::option::add_setshow_cmds_for_options to install "set
9108 backtrace past-main" and "set backtrace past-entry".
9109 * frame.h: Include "cli/cli-option.h".
9110 (struct frame_print_options): Forward declare.
9111 (print_frame_arguments_all, print_frame_arguments_scalars)
9112 (print_frame_arguments_none): Declare.
9113 (print_entry_values): Delete declaration.
9114 (struct frame_print_options, user_frame_print_options): New.
9115 (struct set_backtrace_options): New.
9116 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9117 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9118 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9119 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9120 (list_args_or_locals): Add frame_print_options parameter.
9121 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9122 * python/py-framefilter.c (enumerate_args): Pass down
9123 USER_FRAME_PRINT_OPTIONS.
9124 * stack.c: Include "cli/cli-option.h".
9125 (print_frame_arguments_all, print_frame_arguments_scalars)
9126 (print_frame_arguments_none): Declare.
9127 (print_raw_frame_arguments, print_entry_values): Delete.
9128 (user_frame_print_options): New.
9129 (boolean_option_def, enum_option_def, frame_print_option_defs):
9130 New.
9131 (struct backtrace_cmd_options): New.
9132 (bt_flag_option_def): New.
9133 (backtrace_command_option_defs): New.
9134 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9135 (print_frame_arg, read_frame_arg, print_frame_args)
9136 (print_frame_info, print_frame): Add frame_print_options parameter
9137 and use it.
9138 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9139 (backtrace_command_1): Add frame_print_options and
9140 backtrace_cmd_options parameters and use them.
9141 (make_backtrace_options_def_group): New.
9142 (backtrace_command): Process command options with
9143 gdb::option::process_options.
9144 (backtrace_command_completer): New.
9145 (_initialize_stack): Extend "backtrace"'s help to mention
9146 supported options. Install completer for "backtrace".
9147 Install some settings commands with add_setshow_cmds_for_options.
9148
2daf894e
PA
91492019-06-13 Pedro Alves <palves@redhat.com>
9150
9151 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9152 and that "set/show print raw frame-arguments" are now deprecated.
9153
9154 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9155 command.
9156 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9157 * stack.c (_initialize_stack): Install "set/show print
9158 raw-frame-arguments", and deprecate "set/show print raw
9159 frame-arguments".
9160 * valprint.c (_initialize_valprint): Deprecate "set/show print
9161 raw".
9162
e6ed716c
PA
91632019-06-13 Pedro Alves <palves@redhat.com>
9164
9165 * compile/compile.c (struct compile_options): New.
9166 (compile_flag_option_def, compile_command_option_defs)
9167 (make_compile_options_def_group): New.
9168 (compile_file_command): Handle options with
9169 gdb::option::process_options.
9170 (compile_file_command_completer): New function.
9171 (compile_code_command): Handle options with
9172 gdb::option::process_options.
9173 (compile_code_command_completer): New function.
9174 (_initialize_compiler): Install completers for "compile code" and
9175 "compile file". Mention available options in "compile code" and
9176 "compile code"'s help.
9177 * completer.c (advance_to_completion_word): New, factored out from
9178 ...
9179 (advance_to_expression_complete_word_point): ... this.
9180 (advance_to_filename_complete_word_point): New.
9181 * completer.h (advance_to_filename_complete_word_point): New
9182 declaration.
9183
7d8062de
PA
91842019-06-13 Pedro Alves <palves@redhat.com>
9185
9186 * compile/compile.c: Include "cli/cli-option.h".
9187 (compile_print_value): Scope data pointer is now a
9188 value_print_options pointer; adjust.
9189 (compile_print_command): Process options. Scope data pointer is
9190 now a value_print_options pointer; adjust.
9191 (_initialize_compile): Update "compile print"'s help to include
9192 supported options. Install a completer for "compile print".
9193 * cp-valprint.c (show_vtblprint, show_objectprint)
9194 (show_static_field_print): Delete.
9195 (_initialize_cp_valprint): Don't install "set print
9196 static-members", "set print vtbl", "set print object" here.
9197 * printcmd.c: Include "cli/cli-option.h" and
9198 "common/gdb_optional.h".
9199 (print_command_parse_format): Rework to fill in a
9200 value_print_options instead of a format_data.
9201 (print_value): Change parameter type from format_data pointer to
9202 value_print_options reference. Adjust.
9203 (print_command_1): Process options. Adjust to pass down a
9204 value_print_options.
9205 (print_command_completer): New.
9206 (_initialize_printcmd): Install print_command_completer as
9207 handle_brkchars completer for the "print" command. Update
9208 "print"'s help to include supported options.
9209 * valprint.c: Include "cli/cli-option.h".
9210 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9211 here from cp-valprint.c.
9212 (boolean_option_def, uinteger_option_def)
9213 (value_print_option_defs, make_value_print_options_def_group):
9214 New. Use gdb::option::add_setshow_cmds_for_options to install
9215 "set print elements", "set print null-stop", "set print repeats",
9216 "set print pretty", "set print union", "set print array", "set
9217 print address", "set print symbol", "set print array-indexes".
9218 * valprint.h: Include <string> and "cli/cli-option.h".
9219 (make_value_print_options_def_group): Declare.
9220 (print_value): Change parameter type from format_data pointer to
9221 value_print_options reference.
9222 (print_command_completer): Declare.
9223
9d0faba9
PA
92242019-06-13 Pedro Alves <palves@redhat.com>
9225
9226 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9227 (COMMON_SFILES): Add maint-test-settings.c.
9228 * cli/cli-decode.c (boolean_enums): New global, factored out from
9229 ...
9230 (add_setshow_boolean_cmd): ... here.
9231 * cli/cli-decode.h (boolean_enums): Declare.
9232 * cli/cli-option.c: New file.
9233 * cli/cli-option.h: New file.
9234 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9235 factored out from ...
9236 (parse_cli_boolean_value(const char *)): ... this.
9237 (is_unlimited_literal): Change parameter type to pointer to
9238 pointer. Adjust and advance ARG pointer.
9239 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9240 (parse_cli_var_enum): New, factored out from ...
9241 (do_set_command): ... this. Adjust.
9242 * cli/cli-setshow.h (parse_cli_boolean_value)
9243 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9244 (parse_cli_var_enum): Declare.
9245 * cli/cli-utils.c: Include "cli/cli-option.h".
9246 (get_ulongest): New.
9247 * cli/cli-utils.h (get_ulongest): Declare.
9248 (check_for_argument): New overloads.
9249 * maint-test-options.c: New file.
9250
2c722807
PA
92512019-06-13 Pedro Alves <palves@redhat.com>
9252
9253 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9254 parse a range if "-" is at the end of the string.
9255
dee7b4c8
PA
92562019-06-13 Pedro Alves <palves@redhat.com>
9257
9258 * cli/cli-setshow.c (parse_auto_binary_operation)
9259 (parse_cli_boolean_value): Don't allow "o".
9260
dca0f6c0
PA
92612019-06-13 Pedro Alves <palves@redhat.com>
9262
9263 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9264 * NEWS: Mention maint test-settings KIND.
9265 * maint-test-settings.c: New file.
9266
597bf39d
PA
92672019-06-13 Pedro Alves <palves@redhat.com>
9268
9269 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9270 completer.
9271 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9272 "set" completers.
9273
48c410fb
PA
92742019-06-13 Pedro Alves <palves@redhat.com>
9275
9276 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9277 after item.
9278
93bcb043
PA
92792019-06-13 Pedro Alves <palves@redhat.com>
9280
9281 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9282
cbba3ecd
PA
92832019-06-13 Pedro Alves <palves@redhat.com>
9284
9285 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9286 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9287 call.
9288 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9289 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9290 calls.
9291 (check_for_argument): Skip spaces after argument.
9292
b9a3f842
PA
92932019-06-13 Pedro Alves <palves@redhat.com>
9294
9295 * thread.c (thread_apply_command): Adjust TID parsing.
9296 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9297 detected before end of string.
9298 (tid_is_in_list): Error out if LIST is invalid.
9299
3844e605
PA
93002019-06-13 Pedro Alves <palves@redhat.com>
9301
9302 * completer.c (complete_line_internal_1): Rewind completion word
9303 point.
9304 (completion_tracker::advance_custom_word_point_by): Change
9305 parameter type to int.
9306 * completer.h (completion_tracker::advance_custom_word_point_by):
9307 Likewise.
9308
00b56dbe
PA
93092019-06-13 Pedro Alves <palves@redhat.com>
9310
9311 * completer.c (advance_to_completion_word): Handle delimiters.
9312
d106773e
PA
93132019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9314
9315 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9316
08f10e02
TT
93172019-06-11 Tom Tromey <tom@tromey.com>
9318
9319 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9320 (xmalloc_failed): Move to alloc.c.
9321 * alloc.c: New file.
9322 * Makefile.in (COMMON_SFILES): Add alloc.c.
9323
1c7fe951
TT
93242019-06-11 Tom Tromey <tom@tromey.com>
9325
9326 * nat/linux-waitpid.c: Don't include server.h.
9327 (linux_debug): Remove.
9328 (my_waitpid): Update.
9329
89549d7f
TT
93302019-06-11 Tom Tromey <tromey@adacore.com>
9331
9332 * infcall.c (_initialize_infcall): Remove trailing newline from
9333 help.
9334 * user-regs.c (_initialize_user_regs): Remove trailing newline
9335 from help.
9336 * typeprint.c (_initialize_typeprint): Remove trailing newline
9337 from help.
9338 * reverse.c (_initialize_reverse): Remove trailing newlines from
9339 help.
9340 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9341 from help.
9342 * language.c (add_set_language_command): Remove trailing newline
9343 from help.
9344 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9345 help.
9346 * disasm.c (_initialize_disasm): Remove trailing newline from
9347 help.
9348 * top.c (init_main): Remove trailing newline from help.
9349 * interps.c (_initialize_interpreter): Remove trailing newline
9350 from help.
9351 * btrace.c (_initialize_btrace): Remove trailing newlines from
9352 help.
9353 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9354 from help.
9355 * python/python.c (_initialize_python): Remove trailing newline
9356 from help.
9357 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9358 help.
9359 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9360 from help. Reformat some text.
9361 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9362 from help.
9363 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9364 newline from help.
9365
86108c13
TT
93662019-06-11 Tom Tromey <tromey@adacore.com>
9367
9368 * darwin-nat.c (darwin_decode_exception_message)
9369 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9370
a7067863
AB
93712019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9372
9373 * valops.c (value_slice): Check for not allocated or not
9374 associated values.
9375
9ab08412
TV
93762019-06-10 Tom de Vries <tdevries@suse.de>
9377
9378 PR gdb/24618
9379 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9380 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9381 invalid.
9382
f19e22e9
TV
93832019-06-10 Tom de Vries <tdevries@suse.de>
9384
9385 PR gdb/24611
9386 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9387 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9388
e99f9db0
TV
93892019-06-10 Tom de Vries <tdevries@suse.de>
9390
9391 PR symtab/24545
9392 * symtab.c (struct demangled_name_entry): Add language field.
9393 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9394 static minimal symbol". Set and use language field.
9395
9bf7038b
TT
93962019-06-10 Tom Tromey <tromey@adacore.com>
9397
9398 * ada-lang.c (_initialize_ada_language): Update help text.
9399
422186a9
TT
94002019-06-10 Tom Tromey <tromey@adacore.com>
9401
9402 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9403 with a newline.
9404 * guile/guile.c (handle_boot_error): Don't end warning with a
9405 newline.
9406 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9407 warning with a newline.
9408 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9409 newline.
9410 (s12z_frame_cache): Likewise.
9411 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9412 a newline.
9413 * solib-svr4.c (disable_probes_interface): Don't end warning with
9414 a newline.
9415 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9416 newline.
9417 * python/python.c (do_finish_initialization): Don't end warning
9418 with a newline.
9419
25ce02ee
TT
94202019-06-10 Tom Tromey <tom@tromey.com>
9421
9422 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9423 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9424 gdbpy_enter.
9425
caa429d8
TT
94262019-06-10 Tom Tromey <tromey@adacore.com>
9427
9428 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9429 data.
9430 (elf_new_init): Don't call stabsread_new_init.
9431 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9432 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9433 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9434
81873cc8
TV
94352019-06-10 Tom de Vries <tdevries@suse.de>
9436
9437 PR symtab/16264
9438 PR symtab/24517
9439 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9440
4fa0265e
РИ
94412019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9442
9443 * source.c (find_and_open_source): Also rewrite relative file
9444 names.
9445
1a3da2cd
AB
94462019-04-26 Amos Bird <amosbird@gmail.com>
9447
9448 * annotate.c (annotate_thread_exited): Add "thread-exited"
9449 annotation.
9450
3847a7bf
TT
94512019-06-06 Tom Tromey <tromey@adacore.com>
9452
9453 * maint.h (class scoped_command_stats): Use
9454 DISABLE_COPY_AND_ASSIGN.
9455 <print_time>: New method.
9456 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9457 print_time.
9458 (scoped_command_stats::print_time): New method.
9459
312617a3
AB
94602019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9461
9462 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9463 instructions of lengths 6 or 8 bytes.
9464
b02f78f9
PA
94652019-06-04 Pedro Alves <palves@redhat.com>
9466
9467 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9468
9469 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9470 * breakpoint.c (condition_completer): Likewise.
9471 * cli/cli-dump.c (scan_expression): Likewise.
9472 * common/filestuff.c (mkdir_recursive): Likewise.
9473 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9474 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9475 (gdb_abspath): Likewise.
9476 * compile/compile-cplus-types.c
9477 (compile_cplus_instance::decl_name): Likewise.
9478 * completer.c (complete_explicit_location):
9479 (signal_completer, reg_or_group_completer_1): Likewise.
9480 * cp-support.c (cp_remove_params_if_any): Likewise.
9481 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9482 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9483 * infcmd.c (strip_bg_char): Likewise.
9484 * linespec.c (copy_token_string): Likewise.
9485 * mi/mi-main.c (output_cores): Likewise.
9486 * psymtab.c (psymtab_search_name):
9487 * symfile.c (test_set_ext_lang_command): Likewise.
9488 * target.c (target_fileio_read_stralloc): Likewise.
9489 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9490 * value.c (complete_internalvar): Likewise.
9491
e1f2e1a2
CB
94922019-06-04 Christian Biesinger <cbiesinger@google.com>
9493
9494 Add objfile property to gdb.Type.
d3238f7d
PA
9495 * NEWS: Mention Python API addition.
9496 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9497
e664d728
PW
94982019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9499
9500 * NEWS: Mention the new set|show style [title|highlight].
9501 Mention changes to "show style", "help" and "apropos".
9502
66d8c862
PW
95032019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9504
9505 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9506 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9507 instead of print_help_for_command.
9508 (print_doc_of_command): New function.
9509 (help_list): Add 'apropos -v word' suggestion.
9510 (print_help_for_command): Style the command name using title style.
9511 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9512 (_initialize_cli_cmds): Describe -v in apropos_command help.
9513
9303eb2f
PW
95142019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9515
9516 * cli/cli-style.h (cli_style_option): Add name in constructor,
9517 add m_name class member, add constructor with intensity,
9518 add name class function.
9519 (cli_style_option::add_setshow_commands): Remove name argument.
9520 (highlight_style, title_style): New styles.
9521 * cli/cli-style.c (do_show): New function that shows a style
9522 characteristic styling the style name with itself.
9523 (set_style_name): New function.
9524 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9525 Update all callers according to the changes in cli/cli-style.h.
9526 * utils.h (fputs_highlighted): New function.
9527 * utils.c (fputs_highlighted): Likewise.
9528
e2c52041
PW
95292019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9530
9531 * NEWS: Mention new pipe command and new convenience variables.
9532
947d3946
PW
95332019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9534
9535 * cli/cli-cmds.c (pipe_command): New function.
9536 (_initialize_cli_cmds): Call add_com for pipe_command.
9537 Define | as an alias for pipe.
9538 (exit_status_set_internal_vars): New function.
9539 (shell_escape): Call exit_status_set_internal_vars.
9540 cli/cli-decode.c (find_command_name_length): Recognize | as
9541 a single character command.
9542
b8fd0918
PW
95432019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9544
9545 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9546 top.c (execute_command_to_ui_file): New function, mostly a copy
9547 of execute_command_to_string.
9548 (execute_command_to_string): Implement by calling
9549 execute_command_to_ui_file.
9550
68bb5386
PW
95512019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9552
9553 * top.h (saved_command_line): Remove declaration.
9554 * top.c (previous_saved_command_line, previous_repeat_arguments):
9555 New variables.
9556 (saved_command_line): Make static, define together with other
9557 'repeat variables'.
9558 (dont_repeat): Clear repeat_arguments.
9559 (repeat_previous, get_saved_command_line, save_command_line):
9560 New functions.
9561 (gdb_init): Initialize saved_command_line
9562 and previous_saved_command_line.
9563 * main.c (captured_main_1): Remove saved_command_line initialization.
9564 * event-top.c (handle_line_of_input): Update to use
9565 the new 'repeat' related functions instead of direct access to
9566 saved_command_line.
9567 * command.h (repeat_previous, get_saved_command_line,
9568 save_command_line): New declarations.
9569 (dont_repeat): Add comment.
9570
bfcdb852
TT
95712019-05-30 Tom Tromey <tromey@adacore.com>
9572
9573 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9574 Fix comment.
9575 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9576
0ef209f2
JV
95772019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9578
9579 PR cli/24587
9580 * completer.c (complete): Initialize variable word.
9581
955b06fa
SDJ
95822019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9583
9584 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9585 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9586 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9587 'body' is NULL to the outter 'if', protecting the '!is_define'
9588 situation as well.
9589
fa9c3fa0
TT
95902019-05-29 Tom Tromey <tromey@adacore.com>
9591
9592 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9593 (dwarf_unknown): New function.
9594 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9595 (dwarf_type_encoding_name): Use dwarf_unknown.
9596
4330d61d
TT
95972019-05-29 Tom Tromey <tromey@adacore.com>
9598
9599 PR c++/20020:
9600 * cp-valprint.c (cp_print_value_fields): Call
9601 cp_print_static_field inside "try".
9602
33a6bc35
TT
96032019-05-29 Tom Tromey <tromey@adacore.com>
9604
9605 * inflow.c (struct terminal_info): Add default operator=.
9606 * configure: Rebuild.
9607 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9608 -Wdeprecated-copy-dtor, -Wredundant-move.
9609
000439d5
TT
96102019-05-29 Tom Tromey <tromey@adacore.com>
9611
9612 * NEWS: Add entry.
9613 * infcmd.c (print_return_value_1): Handle finish_print
9614 option.
9615 (show_print_finish): New function.
9616 (_initialize_infcmd): Add "set/show print finish" commands.
9617 * valprint.c (user_print_options): Initialize new member.
9618 * valprint.h (struct value_print_options) <finish_print>: New
9619 member.
9620
c0e70c62
TT
96212019-05-28 Tom Tromey <tromey@adacore.com>
9622
9623 * ada-lang.c (ada_remove_Xbn_suffix)
9624 (find_old_style_renaming_symbol)
9625 (parse_old_style_renaming): Remove.
9626 (ada_find_renaming_symbol): Don't call
9627 find_old_style_renaming_symbol.
9628 (ada_is_renaming_symbol): Rename from
9629 ada_find_renaming_symbol. Remove "block" parameter. Return
9630 bool. Now static.
9631 (ada_read_var_value): Update and simplify.
9632 * ada-exp.y (write_var_or_type): Remove old code.
9633
766f8836
AH
96342019-05-28 Alan Hayward <alan.hayward@arm.com>
9635
68255adc 9636 PR gdb/25010
766f8836
AH
9637 * event-top.c: Remove include comment.
9638 * inflow.c (class scoped_ignore_sigttou): Move from here...
9639 * inflow.h (class scoped_ignore_sigttou): ...to here.
9640 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9641 * top.c: Remove include comment.
9642
eb41253a
TT
96432019-05-27 Tom Tromey <tom@tromey.com>
9644
9645 * NEWS: Fix typo.
9646
4ca51187
TT
96472019-05-22 Tom Tromey <tromey@adacore.com>
9648
9649 * target.c (target_follow_exec): Constify parameter.
9650 * target-delegates.c: Rebuild.
9651 * remote.c (remote_target::follow_exec): Constify parameter.
9652 * infrun.c (follow_exec): Constify parameter.
9653 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9654 (target_follow_exec): Likewise.
9655
8fca4da0
AH
96562019-05-22 Alan Hayward <alan.hayward@arm.com>
9657
9658 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9659 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9660
b7060614
AH
96612019-05-22 Alan Hayward <alan.hayward@arm.com>
9662
9663 * NEWS: Add debugredirect and testsuite sections.
9664
0a5954bd
SC
96652019-05-22 Simon Cook <simon.cook@embecosm.com>
9666
9667 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9668 target descriptions using exclusively floating point register name
9669 aliases.
9670
dc42e902
AB
96712019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9672
9673 PR gdb/18644:
9674 * f-lang.c (build_fortran_types): Handle the case where
9675 gdbarch_floatformat_for_type returns a nullptr.
9676
fb7806c7
TV
96772019-05-21 Tom de Vries <tdevries@suse.de>
9678
9679 PR cli/24587
9680 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9681
34d11c68
AB
96822019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9683
9684 PR gdb/18644:
9685 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9686 16-byte floats.
9687 * i386-tdep.c (i386_floatformat_for_type): Use
9688 floatformats_ia64_quad for the 16-byte floating point component
9689 within a fortran 32-byte complex number.
9690
122cf0f2
AB
96912019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9692
9693 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9694 delete default constructor.
9695 (find_partial_die): Update to return const struct.
9696 (partial_die_parent_scope): Move variable declaration into scope
9697 of its use and change its type to auto.
9698 (guess_partial_die_structure_name): Likewise.
9699 (partial_die_info::fixup): Likewise.
9700
33d0e35a
TT
97012019-05-17 Tom Tromey <tromey@adacore.com>
9702
9703 * source.c (find_and_open_source): Remove cast.
9704
a45575b0
TT
97052019-05-17 Tom Tromey <tromey@adacore.com>
9706
9707 * annotate.c (annotate_source): Make "filename" const.
9708 * annotate.h (annotate_source): Use const.
9709
81f47ac2
AH
97102019-05-17 Alan Hayward <alan.hayward@arm.com>
9711
9712 * disasm.c (set_disassembler_options): Send errors to stderr.
9713
ca1285d1
AH
97142019-05-17 Alan Hayward <alan.hayward@arm.com>
9715
9716 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9717 (cli_interp_base::set_logging): Check debug_redirect.
9718 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9719 * cli/cli-logging.c (debug_redirect): Add static variable.
9720 (pop_output_files): Add default param.
9721 (handle_redirections): Print debug setting.
9722 (show_logging_command): Likewise.
9723 (_initialize_cli_logging): Add debugredirect command.
9724 * interps.c (current_interp_set_logging): Add debug_redirect
9725 parameter.
9726 * interps.h (set_logging): Add debug_redirect parameter.
9727 (current_interp_set_logging): Likewise.
9728 * mi/mi-common.h: Likewise.
9729 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9730
97312019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9732 Tom Tromey <tromey@adacore.com>
9733
9734 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9735 directly.
9736 * cli/cli-interp.h (make_logging_output): Remove declaration.
9737 * cli/cli-logging.c (make_logging_output): Remove function.
9738 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9739 directly.
9740 * ui-file.c (tee_file::tee_file): Remove bools.
9741 (tee_file::~tee_file): Remove deletes.
9742 * ui-file.h (tee_file): Remove bools.
9743
26648588
JV
97442019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9745
9746 * mi/mi-cmds.h (mi_cmd_complete): New function.
9747 * mi/mi-main.c (mi_cmd_complete): Likewise.
9748 * mi/mi-cmds.c: Define new MI command -complete.
9749 * NEWS: Mention new -complete command.
9750
6e035501
JV
97512019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9752
9753 * completer.h (complete): New function.
9754 * completer.c (complete): Likewise.
9755 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9756 function defined in completer.h.
9757
7d0e2ece
JV
97582019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9759
e79be6e5 9760 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9761
fb816e8b
TV
97622019-05-17 Tom de Vries <tdevries@suse.de>
9763
9764 PR gdb/24094
9765 * dwarf2read.c (struct cu_partial_die_info): New struct.
9766 (find_partial_die): Return cu_partial_die_info.
9767 (partial_die_parent_scope, guess_partial_die_structure_name)
9768 (partial_die_info::fixup): Handle new return type of find_partial_die.
9769
677052f2
SDJ
97702019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9771
a1726c38 9772 PR breakpoints/24541
677052f2
SDJ
9773 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9774 "std::string", simplifying the algorithm.
9775
f3da9116
SDJ
97762019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9777
9778 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9779 (stap_static_probe_ops::get_probes): Likewise.
9780
f1bb75ab
SDJ
97812019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9782
9783 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9784 '-')" and "else if".
9785 (stap_parse_single_operand): Join checks for
9786 "gdbarch_stap_parse_special_token_p" and
9787 "gdbarch_stap_parse_special_token" in the same "if" statement.
9788 Invert check when verifying for operation on register
9789 displacement.
9790
3ca58cde
SDJ
97912019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9792
9793 * stap-probe.c (stap_get_opcode): Update comment.
9794 (stap_get_expected_argument_type): Likewise.
9795 (handle_stap_probe): Likewise.
9796
af2d9bee
SDJ
97972019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9798
9799 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9800 return type to 'bool'. Adjust comment. Use 'bool' when
9801 appropriate.
9802 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9803 * stap-probe.c (stap_parse_argument_1): Likewise.
9804 (stap_is_operator): Likewise.
9805 (stap_is_generic_prefix): Likewise.
9806 (stap_is_register_prefix): Likewise.
9807 (stap_is_register_indirection_prefix): Likewise.
9808 (stap_is_integer_prefix): Likewise.
9809 (stap_generic_check_suffix): Likewise.
9810 (stap_check_integer_suffix): Likewise.
9811 (stap_check_register_suffix): Likewise.
9812 (stap_check_register_indirection_suffix): Likewise.
9813 (stap_parse_register_operand): Likewise.
9814 (stap_parse_single_operand): Likewise.
9815 (stap_parse_argument_1): Likewise.
9816 (stap_probe::get_argument_count): Likewise.
9817 (stap_is_operator): Likewise.
9818
61c9c421
TT
98192019-05-16 Tom Tromey <tromey@adacore.com>
9820
9821 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9822 keyword to foreach.
9823
9ddc1af1
SM
98242019-05-15 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * linux-thread-db.c (try_thread_db_load_1): Change return type
9827 to bool.
9828 (try_thread_db_load): Likewise.
9829 (try_thread_db_load_from_pdir_1): Likewise.
9830 (try_thread_db_load_from_pdir): Likewise.
9831 (try_thread_db_load_from_sdir): Likewise.
9832 (try_thread_db_load_from_dir): Likewise.
9833 (thread_db_load_search): Likewise.
9834 (has_libpthread): Likewise.
9835 (thread_db_load): Likewise.
9836
7bede828
SDJ
98372019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9838
9839 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9840 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9841 NULL, and complain/return if that's the case.
9842
c5358db4
JD
98432019-05-15 John Darrington <john@darrington.wattle.id.au>
9844
9845 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9846 (advance, posn, abstract_read_memory): New functions.
9847 [struct mem_read_abstraction]: New struct.
9848 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9849
c408a94f
TT
98502019-05-14 Tom Tromey <tromey@adacore.com>
9851
9852 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9853 value is not lval_memory.
9854
e7bd7fba
TT
98552019-05-14 Tom Tromey <tromey@adacore.com>
9856
9857 * solib.c (info_sharedlibrary_command): Style the file name.
9858
a6d0f249
AH
98592019-05-14 Alan Hayward <alan.hayward@arm.com>
9860
9861 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9862 (aarch64_vnv_type): Likewise.
9863 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9864 * common/tdesc.c: Likewise.
9865 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9866 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9867 * features/aarch64-fpu.xml: Add ieee half view.
9868 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9869 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9870 * gdbtypes.h (struct builtin_type): Likewise.
9871 (struct objfile_type): Likewise.
9872
66b8bb74
SM
98732019-05-12 Paul Naert <paul.naert@polymtl.ca>
9874
9875 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9876 typo.
9877 * location.h (string_to_event_location): Likewise.
9878
21c219fd
JB
98792019-05-11 Joel Brobecker <brobecker@adacore.com>
9880
9881 GDB 8.3 released.
9882
13674803
SM
98832019-05-10 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9886 New variable declaration.
9887 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9888 New variable.
9889 (print_one_breakpoint): Use ui_out::test_flags and new global
9890 variable to compute use_fixed_output.
9891 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9892 Remove.
9893 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9894 (mi_multi_location_breakpoint_output_fixed): Remove.
9895 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9896 new variable.
9897 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9898 fix_multi_location_breakpoint_output flag if version >= 3.
9899 * ui-out.h (enum ui_out_flag)
9900 <fix_multi_location_breakpoint_output>: New enumerator.
9901
a9eac7f9
SM
99022019-05-10 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9905
71bed2db
TT
99062019-05-10 Tom Tromey <tromey@adacore.com>
9907
9908 * ada-lang.c (catch_ada_completer): New function.
9909 (_initialize_ada_language): Use it.
9910
24c54127
TT
99112019-05-10 Tom Tromey <tromey@adacore.com>
9912
9913 * thread.c (print_thread_info): Make "requested_threads" const.
9914 * gdbthread.h (print_thread_info): Make "requested_threads"
9915 const.
9916 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9917 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9918
7a102139
TT
99192019-05-08 Tom Tromey <tom@tromey.com>
9920
9921 * gdbtypes.c (objfile_type_data): Change type.
9922 (objfile_type, _initialize_gdbtypes): Update.
9923
924d79e2
TT
99242019-05-08 Tom Tromey <tom@tromey.com>
9925
9926 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9927 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9928 (_initialize_dwarf2_frame): Update.
9929
4c58e337
TT
99302019-05-08 Tom Tromey <tom@tromey.com>
9931
9932 * objc-lang.c (objc_objfile_data): Change type.
9933 (find_methods): Update.
9934 (_initialize_objc_lang): Remove.
9935
d772d2ab
TT
99362019-05-08 Tom Tromey <tom@tromey.com>
9937
9938 * stabsread.c (rs6000_builtin_type_data): Change type.
9939 (rs6000_builtin_type, _initialize_stabsread): Update.
9940
d11d83f4
TT
99412019-05-08 Tom Tromey <tom@tromey.com>
9942
9943 * mips-tdep.c (mips_pdr_data): Remove.
9944 (_initialize_mips_tdep): Update.
9945
9a73f0ad
TT
99462019-05-08 Tom Tromey <tom@tromey.com>
9947
9948 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9949 (hppa_init_objfile_priv_data, read_unwind_info)
9950 (find_unwind_entry, _initialize_hppa_tdep): Update.
9951
8127a2fa
TT
99522019-05-08 Tom Tromey <tom@tromey.com>
9953
9954 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9955 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9956 on obstack.
9957 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9958
91d3055d
TT
99592019-05-08 Tom Tromey <tom@tromey.com>
9960
9961 * mdebugread.c (basic_type_data): Change type.
9962 (basic_type, _initialize_mdebugread): Update.
9963
31930bd3
TT
99642019-05-08 Tom Tromey <tom@tromey.com>
9965
9966 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9967
bdb3ed9e
TT
99682019-05-08 Tom Tromey <tom@tromey.com>
9969
9970 * nto-tdep.c (nto_inferior_data_reg): Change type.
9971 (nto_inferior_data): Update.
9972 (nto_inferior_data_cleanup, nto_new_inferior_data)
9973 (_initialize_nto_tdep): Remove.
9974 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9975
f37b313d
TT
99762019-05-08 Tom Tromey <tom@tromey.com>
9977
9978 * ada-lang.c (struct ada_inferior_data): Add initializers.
9979 (ada_inferior_data): Change type.
9980 (ada_inferior_data_cleanup): Remove.
9981 (get_ada_inferior_data, ada_inferior_exit)
9982 (struct ada_pspace_data): Add initializers, destructor.
9983 (ada_pspace_data_handle): Change type.
9984 (get_ada_pspace_data): Update.
9985 (ada_pspace_data_cleanup): Remove.
9986
24699405
TT
99872019-05-08 Tom Tromey <tom@tromey.com>
9988
9989 * coffread.c (struct coff_symfile_info): Add initializers.
9990 (coff_objfile_data_key): Move lower. Change type.
9991 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9992 Update.
9993 (coff_free_info): Remove.
9994
d4e05d2f
TT
99952019-05-08 Tom Tromey <tom@tromey.com>
9996
9997 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9998 (fbsd_pspace_data_handle): Move lower. Change type.
9999 (get_fbsd_pspace_data): Update.
10000 (fbsd_pspace_data_cleanup): Remove.
10001 (_initialize_fbsd_tdep): Update.
10002
14ef6690
TT
100032019-05-08 Tom Tromey <tom@tromey.com>
10004
10005 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10006 (get_ada_tasks_pspace_data): Update.
10007 (ada_tasks_pspace_data_cleanup): Remove.
10008 (_initialize_tasks): Update.
10009 (ada_tasks_inferior_data_handle): Change type.
10010 (get_ada_tasks_inferior_data): Update.
10011 (ada_tasks_inferior_data_cleanup): Remove.
10012 (struct ada_tasks_pspace_data): Add initializers.
10013
814cf43a
TT
100142019-05-08 Tom Tromey <tom@tromey.com>
10015
10016 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10017 * symfile-debug.c (debug_sym_get_probes): Change type.
10018 * stap-probe.c (handle_stap_probe):
10019 (stap_static_probe_ops::get_probes): Change type.
10020 * probe.h (class static_probe_ops) <get_probes>: Change type.
10021 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10022 (parse_probes_in_pspace): Update.
10023 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10024 Update.
10025 (any_static_probe_ops::get_probes): Change type.
10026 * elfread.c (elfread_data): New typedef.
10027 (probe_key): Change type.
10028 (elf_get_probes): Likewise. Update.
10029 (probe_key_free): Remove.
10030 (_initialize_elfread): Update.
10031 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10032 Change type.
10033 (dtrace_process_dof_probe, dtrace_process_dof)
10034 (dtrace_static_probe_ops::get_probe): Change type.
10035
02dc647e
TT
100362019-05-08 Tom Tromey <tom@tromey.com>
10037
10038 * xcoffread.c (struct xcoff_symfile_info): Rename from
10039 coff_symfile_info. Add initializers.
10040 (xcoff_objfile_data_key): Move lower. Change type.
10041 (XCOFF_DATA): Rewrite.
10042 (xcoff_free_info): Remove.
10043 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10044 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10045 (xcoff_initial_scan): Update.
10046
09232438
TT
100472019-05-08 Tom Tromey <tom@tromey.com>
10048
10049 * solib-svr4.c (struct svr4_info): Add initializers and
10050 destructor.
10051 <probes_table>: Now an htab_up.
10052 (solib_svr4_pspace_data): Change type.
10053 (free_probes_table): Simplify.
10054 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10055 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10056 (probes_table_remove_objfile_probes, register_solib_event_probe)
10057 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10058 (_initialize_svr4_solib): Update.
10059
7b4a314f
TT
100602019-05-08 Tom Tromey <tom@tromey.com>
10061
10062 * remote.c (remote_pspace_data): Change type.
10063 (remote_pspace_data_cleanup): Remove.
10064 (get_remote_exec_file, set_pspace_remote_exec_file)
10065 (_initialize_remote): Update.
10066
51d3063a
TT
100672019-05-08 Tom Tromey <tom@tromey.com>
10068
10069 * breakpoint.c (breakpoint_objfile_key): Change type.
10070 (get_breakpoint_objfile_data): Update.
10071 (free_breakpoint_objfile_data): Remove.
10072 (_initialize_breakpoint): Update.
10073
89fb8848
TT
100742019-05-08 Tom Tromey <tom@tromey.com>
10075
10076 * linux-tdep.c (struct linux_info): Add initializers.
10077 (linux_inferior_data): Move. Change type.
10078 (invalidate_linux_cache_inf): Update.
10079 (linux_inferior_data_cleanup): Remove.
10080 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10081
e9b89e2d
TT
100822019-05-08 Tom Tromey <tom@tromey.com>
10083
10084 * auxv.c (auxv_inferior_data): Move. Change type.
10085 (auxv_inferior_data_cleanup): Remove.
10086 (invalidate_auxv_cache_inf): Rewrite.
10087 (get_auxv_inferior_data, _initialize_auxv): Update.
10088
8c42777c
TT
100892019-05-08 Tom Tromey <tom@tromey.com>
10090
10091 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10092 (symfile_debug_objfile_data_key): Change type.
10093 (symfile_debug_installed, debug_qf_has_symbols)
10094 (debug_qf_find_last_source_symtab)
10095 (debug_qf_forget_cached_source_info)
10096 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10097 (debug_qf_print_stats, debug_qf_dump)
10098 (debug_qf_expand_symtabs_for_function)
10099 (debug_qf_expand_all_symtabs)
10100 (debug_qf_expand_symtabs_with_fullname)
10101 (debug_qf_map_matching_symbols)
10102 (debug_qf_expand_symtabs_matching)
10103 (debug_qf_find_pc_sect_compunit_symtab)
10104 (debug_qf_map_symbol_filenames)
10105 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10106 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10107 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10108 (debug_sym_read_linetable, debug_sym_relocate): Update.
10109 (symfile_debug_free_objfile): Remove.
10110 (install_symfile_debug_logging, _initialize_symfile_debug):
10111 Update.
10112
5bfd760d
TT
101132019-05-08 Tom Tromey <tom@tromey.com>
10114
10115 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10116 allocate_on_obstack.
10117 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10118 (get_dwarf2_per_objfile): Update.
10119 (set_dwarf2_per_objfile): Remove.
10120 (dwarf2_has_info, dwarf2_get_section_info): Update.
10121 (dwarf2_free_objfile): Remove.
10122 (_initialize_dwarf2_read): Update.
10123
e85e19b4
TT
101242019-05-08 Tom Tromey <tom@tromey.com>
10125
10126 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10127 initializers.
10128 <unsupported_script_warning_printed,
10129 script_not_found_warning_printed>: Now bool.
10130 (auto_load_pspace_data): Change type.
10131 (~auto_load_pspace_info): Rename from
10132 auto_load_pspace_data_cleanup.
10133 (get_auto_load_pspace_data, init_loaded_scripts_info)
10134 (clear_section_scripts, maybe_print_unsupported_script_warning)
10135 (maybe_print_script_not_found_warning, _initialize_auto_load):
10136 Update.
10137
f6aa7436
TT
101382019-05-08 Tom Tromey <tom@tromey.com>
10139
10140 * objfiles.c (objfile_pspace_info): Add destructor and
10141 initializers.
10142 (objfiles_pspace_data): Change type.
10143 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10144 (get_objfile_pspace_data): Update.
10145 (objfiles_bfd_data): Change type.
10146 (get_objfile_bfd_data): Update.
10147 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10148
6ae614f6
TT
101492019-05-08 Tom Tromey <tom@tromey.com>
10150
10151 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10152 Change type.
10153 (get_catch_syscall_inferior_data): Update.
10154 (catch_syscall_inferior_data_cleanup): Remove.
10155 (_initialize_break_catch_syscall): Update.
10156
6509b8eb
TT
101572019-05-08 Tom Tromey <tom@tromey.com>
10158
10159 * inflow.c (struct terminal_info): Add destructor and
10160 initializers.
10161 (inflow_inferior_data): Change type.
10162 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10163 (get_inflow_inferior_data, inflow_inferior_exit)
10164 (swap_terminal_info, _initialize_inflow): Update.
10165
35632941
TT
101662019-05-08 Tom Tromey <tom@tromey.com>
10167
10168 * target-dcache.c (target_dcache_cleanup): Remove.
10169 (target_dcache_aspace_key): Change type.
10170 (target_dcache_init_p, target_dcache_invalidate)
10171 (target_dcache_get, target_dcache_get_or_init)
10172 (_initialize_target_dcache): Update.
10173 * dcache.h (struct dcache_deleter): New.
10174
3017b94d
TT
101752019-05-08 Tom Tromey <tom@tromey.com>
10176
10177 * symtab.c (struct symbol_cache): Add destructor and
10178 initializers.
10179 (symbol_cache_key): Move. Change type.
10180 (make_symbol_cache, free_symbol_cache): Remove.
10181 (get_symbol_cache): Update.
10182 (symbol_cache_cleanup): Remove.
10183 (ALL_PSPACES, symbol_cache_flush)
10184 (maintenance_print_symbol_cache)
10185 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10186 Update.
10187
a32ad8c5
TT
101882019-05-08 Tom Tromey <tom@tromey.com>
10189
10190 * symtab.c (struct main_info): Add destructor and initializers.
10191 (main_progspace_key): Move. Change type.
10192 (get_main_info): Update.
10193 (main_info_cleanup): Remove.
10194 (_initialize_symtab): Update.
10195
5f6e90a0
TT
101962019-05-08 Tom Tromey <tom@tromey.com>
10197
10198 * registry.h (DECLARE_REGISTRY): Define the _key class.
10199
1bd0c6e4
AB
102002019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10201
10202 * NEWS: Merge two 'New commands' sections.
10203
2228ef77
XR
102042019-05-08 Joel Brobecker <brobecker@adacore.com>
10205
10206 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10207 parameter and use Ada language definition instead.
10208 (ada_val_print_ptr): Remove unused language parameter.
10209 (ada_val_print_num): Remove language parameter and use Ada language
10210 definition instead.
10211 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10212 parameter.
10213 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10214 parameter and use Ada language definition instead.
10215 (ada_val_print_1): Update all ada_val_print_xxx calls.
10216 Remove language parameter.
10217 (ada_val_print): Update ada_val_print_1 call.
10218
60fcc1c3
TT
102192019-05-08 Tom Tromey <tromey@adacore.com>
10220
10221 * remote.c (remote_hw_watchpoint_limit)
10222 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10223 Now static.
10224
ed2b7c17
TT
102252019-05-08 Tom Tromey <tromey@adacore.com>
10226
10227 * maint.c (_initialize_maint_cmds): Move initialization code to
10228 remote.c.
10229 (watchdog, show_watchdog): Move to remote.c.
10230 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10231 "watchdog" static.
10232 (_initialize_remote): Move initialization code from maint.c.
10233 * defs.h (watchdog): Don't declare.
10234
b0be6c91
TT
102352019-05-08 Tom Tromey <tromey@adacore.com>
10236
10237 * tui/tui-interp.c: Include main.h.
10238 * interps.c: Include main.h.
10239 * main.h (interpreter_p): Declare.
10240 * defs.h (interpreter_p): Don't declare.
10241
587ee17b
TT
102422019-05-08 Tom Tromey <tromey@adacore.com>
10243
10244 * dwarf2loc.c: Include dwarf2read.h.
10245 * defs.h (read_unsigned_leb128): Don't declare.
10246 * dwarf2read.h (read_unsigned_leb128): Declare.
10247
ca1df239
TT
102482019-05-08 Tom Tromey <tromey@adacore.com>
10249
10250 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10251 method.
10252
99f20f08
TT
102532019-05-08 Tom Tromey <tromey@adacore.com>
10254
10255 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10256 when no wrap column is set.
10257
80e55b13
TT
102582019-05-08 Tom Tromey <tromey@adacore.com>
10259
10260 * c-lang.c (c_get_string): Handle non-C-style arrays.
10261
9d3421af
TT
102622019-05-08 Tom Tromey <tromey@adacore.com>
10263
10264 * typeprint.c (print_offset_data::update): Print the bit offset,
10265 not the number of bits remaining.
10266
844333e2
TT
102672019-05-08 Tom Tromey <tromey@adacore.com>
10268
10269 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10270 padding at end of comment.
10271
988915ee
TT
102722019-05-08 Tom Tromey <tromey@adacore.com>
10273
10274 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10275 Compare main types.
10276
26bfd823
TT
102772019-05-06 Tom Tromey <tom@tromey.com>
10278
10279 * common/scoped_mmap.c: Include common-defs.h.
10280 * common/scoped_mmap.h: Don't include config.h.
10281
89055eaa
TT
102822019-05-04 Tom Tromey <tom@tromey.com>
10283
10284 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10285 (struct aarch64_call_info): Add initializers.
10286 <si>: Now a std::vector.
10287 (pass_on_stack, aarch64_push_dummy_call): Update.
10288
5da01df5
TT
102892019-05-04 Simon Marchi <simon.marchi@efficios.com>
10290 Tom Tromey <tom@tromey.com>
10291
10292 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10293 (ppc_threads): Now a std::vector. Now static.
10294 (hwdebug_find_thread_points_by_tid)
10295 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10296 Update.
10297
fbdf05a1
TT
102982019-05-04 Tom Tromey <tom@tromey.com>
10299
10300 * arc-tdep.c (arc_tdesc_init): Return bool.
10301
06d16ec9
TT
103022019-05-04 Tom Tromey <tom@tromey.com>
10303
10304 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10305 Use gdb_assert_not_reached.
10306
9c056022
TT
103072019-05-04 Tom Tromey <tom@tromey.com>
10308
10309 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10310 "false".
10311
fa9c2a59
TT
103122019-05-04 Tom Tromey <tom@tromey.com>
10313
10314 * arc-tdep.c (arc_tdesc_init): Use bool.
10315
e2eb806a
TT
103162019-05-04 Tom Tromey <tom@tromey.com>
10317
10318 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10319
6fe87677
TT
103202019-05-04 Tom Tromey <tom@tromey.com>
10321
10322 * cli/cli-cmds.c (valid_command_p): Return bool.
10323
7f008c9e
TT
103242019-05-04 Tom Tromey <tom@tromey.com>
10325
10326 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10327 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10328
b6484282
RT
103292019-05-04 Raul Tambre <raul@tambre.ee>
10330
10331 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10332 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10333 operator for comparison.
10334
af97b416
TT
103352019-05-04 Tom Tromey <tom@tromey.com>
10336
10337 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10338 (lookup_partial_symbol, print_partial_symbols)
10339 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10340 (psymbol_compare): Update.
10341 (add_psymbol_to_bcache): Clear the entire psymbol.
10342 (maintenance_check_psymtabs): Update.
10343 * psympriv.h (struct partial_symbol): Don't derive from
10344 general_symbol_info.
10345 <obj_section, unrelocated_address, address,
10346 set_unrelocated_address>: Update.
10347 <ginfo>: New member.
10348 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10349 (debug_names::write_psymbols): Update.
10350
9d6d4be8
TV
103512019-05-04 Tom de Vries <tdevries@suse.de>
10352
10353 * contrib/cc-with-tweaks.sh: Support -n arg.
10354
66452beb
PW
103552019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10356
10357 * corelow.c (core_target::detach): Ensure frame cache and
10358 register caches are cleared.
10359 inferior.c (exit_inferior_1): Likewise.
10360
bde09ab7
TT
103612019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10362 Tom Tromey <tom@tromey.com>
10363
10364 * dictionary.c (collate_pending_symbols_by_language): Remove
10365 "struct" from foreach.
10366 * symtab.c (lookup_global_symbol_from_objfile)
10367 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10368 foreach.
10369 * ser-tcp.c (net_open): Remove "struct" from foreach.
10370 * objfiles.c (objfile_relocate, objfile_rebase)
10371 (objfile_has_symbols): Remove "struct" from foreach.
10372 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10373 from foreach.
10374 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10375 foreach.
10376 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10377 "struct" from foreach.
10378 * ada-lang.c (create_excep_cond_exprs)
10379 (ada_exception_catchpoint_cond_string): Remove "struct" from
10380 foreach.
10381
222a8d25
TT
103822019-05-03 Tom Tromey <tromey@adacore.com>
10383
10384 * ada-exp.y (convert_char_literal): Check suffix of each
10385 enumerator.
10386
fcd60b84
DP
103872019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10388
10389 PR ada/21406:
10390 * ada-exp.y (yywrap): Don't define.
10391 * ada-lex.l (%option): Add noyywrap
10392 (yywrap): Remove.
10393
5f2459c2
EZ
103942019-05-03 Eli Zaretskii <eliz@gnu.org>
10395
353ea2d1
EZ
10396 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10397 _WIN32_WINNT to the XP level, unless already defined to a higher
10398 level.
10399
10400 * unittests/parse-connection-spec-selftests.c:
10401 * ser-tcp.c:
10402 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10403 override.
10404
5f2459c2
EZ
10405 * symfile.c (find_separate_debug_file): Remove colon from the
10406 drive spec of DOS/Windows file names of the target, so that the
10407 file name produced from DEBUGDIR and the target's directory will
10408 be valid on DOS/Windows systems.
10409
80062eb9
AB
104102019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10411
10412 * rust-lang.c (val_print_struct): Handle printing structures
10413 containing strings.
10414
b8c05e85
TT
104152019-05-02 Tom Tromey <tromey@adacore.com>
10416
10417 * valarith.c (_initialize_valarith): Remove.
10418
4504bbde
TT
104192019-05-01 Tom Tromey <tromey@adacore.com>
10420
10421 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10422 bitfields.
10423
d48e62f4
TT
104242019-05-01 Tom Tromey <tromey@adacore.com>
10425
10426 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10427 for big-endian copies.
10428
15f18d14
AT
104292019-04-30 Ali Tamur <tamur@google.com>
10430 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10431 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10432 (read_3_bytes): New function.
10433
ab4ee614
JB
104342019-04-30 Joel Brobecker <brobecker@adacore.com>
10435
10436 * windows-nat.c (main_thread_id): Delete.
10437 (handle_output_debug_string): Replace main_thread_id by
10438 current_event.dwThreadId.
10439 (fake_create_process): Likewise.
10440 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10441 Do not set main_thread_id.
10442 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10443 current_event.dwThreadId.
10444 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10445
8ed5b76e
JB
104462019-04-30 Joel Brobecker <brobecker@adacore.com>
10447
10448 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10449 Use current_event.dwThreadId instead of main_thread_id.
10450
2ff0a947
TT
104512019-04-30 Tom Tromey <tromey@adacore.com>
10452
10453 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10454 (create_excep_cond_exprs): Iterate over program spaces.
10455 (ada_exception_catchpoint_cond_string): Examine all minimal
10456 symbols for exception types.
10457
a776957c
TT
104582019-04-30 Tom Tromey <tromey@adacore.com>
10459
10460 PR c++/24470:
10461 * dwarf2read.c (process_structure_scope): Handle case where type
10462 has template parameters but no symbol was created.
10463
bc68014d
AB
104642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10465 Chris January <chris.january@arm.com>
10466
10467 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10468 qualifier.
10469 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10470
f1fdc960
AB
104712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10472
10473 * f-typeprint.c (f_print_type): Update rules for printing
10474 whitespace.
10475 (f_type_print_varspec_suffix): Likewise.
10476
bf7a4de1
AB
104772019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10478 Chris January <chris.january@arm.com>
10479
10480 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10481 function arguments.
10482
bbe75b9d
AB
104832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10484
10485 * f-lang.c (build_fortran_types): Change name of void type to
10486 lower case.
10487 * f-typeprint.c (f_type_print_base): Print the name of the void
10488 type, rather than a fixed string.
10489 * f-valprint.c (f_decorations): Use lower case void string.
10490
1db455a7
AB
104912019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10492 Chris January <chris.january@arm.com>
10493
10494 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10495 types for Fortran.
10496
b6d03bb2
AB
104972019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10498 Chris January <chris.january@arm.com>
10499 David Lecomber <david.lecomber@arm.com>
10500
10501 * f-exp.y (BINOP_INTRINSIC): New token.
10502 (exp): New parser rule handling BINOP_INTRINSIC.
10503 (f77_keywords): Add new builtin procedures.
10504 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10505 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10506 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10507 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10508 (print_unop_subexp_f): New function.
10509 (print_binop_subexp_f): New function.
10510 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10511 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10512 (dump_subexp_body_f): Likewise.
10513 (operator_check_f): Likewise.
10514 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10515 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10516
83228e93
AB
105172019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10518
10519 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10520 UNOP_KIND.
10521 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10522 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10523 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10524 (operator_length_f): New fuction.
10525 (print_subexp_f): New function.
10526 (op_name_f): New function.
10527 (dump_subexp_body_f): New function.
10528 (operator_check_f): New function.
10529 (exp_descriptor_f): Replace standard expression handling functions
10530 with new functions.
10531 * gdb/fortran-operator.def: New file.
10532 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10533 * gdb/std-operator.def: Remove UNOP_KIND.
10534
6fdcd7cc
AB
105352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10536
10537 * std-operator.def: Remove unbalanced, stray double quote
10538 character.
10539
2e62ab40
AB
105402019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10541 Chris January <chris.january@arm.com>
10542 Daniel Everett <daniel.everett@arm.com>
10543 Nick Forrington <nick.forrington@arm.com>
10544 Richard Bunt <richard.bunt@arm.com>
10545
10546 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10547 of depth when printing anonymous structs or unions.
10548 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10549 Don't print either the top-level value, or the children if the
10550 max-depth is exceeded.
10551 (ppscm_print_children): When printing the key of a map, allow one
10552 extra level of depth.
10553 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10554 print either the top-level value, or the children if the max-depth
10555 is exceeded.
10556 (print_children): When printing the key of a map, allow one extra
10557 level of depth.
10558 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10559 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10560 (user_print_options): Initialise max_depth field.
10561 (val_print_scalar_or_string_type_p): New function.
10562 (val_print): Check to see if the max depth has been reached.
10563 (val_print_check_max_depth): Define new function.
10564 (show_print_max_depth): New function.
10565 (_initialize_valprint): Add 'print max-depth' option.
10566 * valprint.h (struct value_print_options) <max_depth>: New field.
10567 (val_print_check_max_depth): Declare new function.
10568 * NEWS: Document new feature.
10569
4be290b2
AB
105702019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10571
10572 * ada-lang.c (ada_language_defn): Initialise new field.
10573 * c-lang.c (c_is_string_type_p): New function.
10574 (c_language_defn): Initialise new field.
10575 (cplus_language_defn): Initialise new field.
10576 (asm_language_defn): Initialise new field.
10577 (minimal_language_defn): Initialise new field.
10578 * c-lang.h (c_is_string_type_p): Declare new function.
10579 * d-lang.c (d_language_defn): Initialise new field.
10580 * f-lang.c (f_is_string_type_p): New function.
10581 (f_language_defn): Initialise new field.
10582 * go-lang.c (go_is_string_type_p): New function.
10583 (go_language_defn): Initialise new field.
10584 * language.c (default_is_string_type_p): New function.
10585 (unknown_language_defn): Initialise new field.
10586 (auto_language_defn): Initialise new field.
10587 * language.h (struct language_defn) <la_is_string_type_p>: New
10588 member variable.
10589 (default_is_string_type_p): Declare new function.
10590 * m2-lang.c (m2_language_defn): Initialise new field.
10591 * objc-lang.c (objc_language_defn): Initialise new field.
10592 * opencl-lang.c (opencl_language_defn): Initialise new field.
10593 * p-lang.c (pascal_is_string_type_p): New function.
10594 (pascal_language_defn): Initialise new field.
10595 * rust-lang.c (rust_is_string_type_p): New function.
10596 (rust_language_defn): Initialise new field.
10597
721b08c6
AB
105982019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10599
10600 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10601 New field.
10602 * ada-lang.c (ada_language_defn): Initialise new field.
10603 * c-lang.c (c_language_defn): Likewise.
10604 (cplus_language_defn): Likewise.
10605 (asm_language_defn): Likewise.
10606 (minimal_language_defn): Likewise.
10607 * d-lang.c (d_language_defn): Likewise.
10608 * f-lang.c (f_language_defn): Likewise.
10609 * go-lang.c (go_language_defn): Likewise.
10610 * language.c (unknown_language_defn): Likewise.
10611 (auto_language_defn): Likewise.
10612 * m2-lang.c (m2_language_defn): Likewise.
10613 * objc-lang.c (objc_language_defn): Likewise.
10614 * opencl-lang.c (opencl_language_defn): Likewise.
10615 * p-lang.c (pascal_language_defn): Likewise.
10616 * rust-lang.c (rust_language_defn): Likewise.
10617
fc913e53
AB
106182019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10619
10620 * ada-lang.c (ada_is_character_type): Change return type to bool.
10621 (ada_is_string_type): Likewise.
10622 * ada-lang.h (ada_is_character_type): Update declaration
10623 (ada_is_string_type): Likewise.
10624
fa731fa0
PW
106252019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10626
10627 Support style in 'frame|thread apply'
10628
10629 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10630 * record.c (record_start, record_stop): Update callers of
10631 execute_command_to_string with false.
10632 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10633 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10634 methods.
10635 (class string_file): New constructor with term_out parameter.
10636 Override methods term_out and can_emit_style_escape. New member
10637 term_out.
10638 (class stdio_file): Override can_emit_style_escape.
10639 (class tee_file): Override term_out and can_emit_style_escape.
10640 * utils.h (can_emit_style_escape): Remove.
10641 * utils.c (can_emit_style_escape): Likewise.
10642 Update all callers of can_emit_style_escape (SOMESTREAM) to
10643 SOMESTREAM->can_emit_style_escape.
10644 * source-cache.c (source_cache::get_source_lines): Likewise.
10645 * stack.c (frame_apply_command_count): Call execute_command_to_string
10646 passing the term_out characteristic of the current gdb_stdout.
10647 * thread.c (thr_try_catch_cmd): Likewise.
10648 * top.c (execute_command_to_string): pass term_out parameter
10649 to construct the string_file for the command output.
10650 * ui-file.c (term_cli_styling): New function (most code moved
10651 from utils.c can_emit_style_escape).
10652 (string_file::string_file, string_file::can_emit_style_escape,
10653 stdio_file::can_emit_style_escape, tee_file::term_out,
10654 tee_file::can_emit_style_escape): New functions.
10655
136afab8
PW
106562019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10657
10658 * NEWS: Mention the new set|show may-call-functions.
10659 * infcall.c (may_call_functions_p): New variable.
10660 (show_may_call_functions_p): New function.
10661 (call_function_by_hand_dummy): Throws an error if not
10662 may-call-functions.
10663 (_initialize_infcall): Call add_setshow_boolean_cmd for
10664 may-call-functions.
10665
725cbb63
KS
106662019-04-25 Keith Seitz <keiths@redhat.com>
10667
10668 PR c++/24367
10669 * cp-support.c (inspect_type): Don't attempt substitutions
10670 of symbol with the same name.
10671
3d1cbb78
TT
106722019-04-25 Tom Tromey <tromey@adacore.com>
10673
10674 PR gdb/24475:
10675 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10676 static.
10677
94aeb44b
TT
106782019-04-25 Tom Tromey <tromey@adacore.com>
10679
10680 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10681 rvalue reference.
10682 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10683 (gdb_xml_parser::parse): Use std::move.
10684 * python/python-internal.h (gdbpy_convert_exception): Take a const
10685 reference.
10686 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10687 std::move.
10688 * python/py-utils.c (gdbpy_convert_exception): Take a const
10689 reference.
10690 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10691 Use std::move.
10692 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10693 Use std::move.
10694 * mi/mi-main.c (mi_print_exception): Take a const reference.
10695 * main.c (handle_command_errors): Take a const reference.
10696 * linespec.c (parse_linespec): Use std::move.
10697 * infcall.c (run_inferior_call): Use std::move.
10698 (call_function_by_hand_dummy): Use std::move.
10699 * exec.c (try_open_exec_file): Use std::move.
10700 * exceptions.h (exception_print, exception_fprintf)
10701 (exception_print_same): Update.
10702 * exceptions.c (print_exception, exception_print)
10703 (exception_fprintf, exception_print_same): Change parameters to
10704 const reference.
10705 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10706 * common/new-op.c: Use std::move.
10707 * common/common-exceptions.h (struct gdb_exception): Add move
10708 constructor.
10709 (struct gdb_exception_error, struct gdb_exception_quit, struct
10710 gdb_quit_bad_alloc): Change constructor to move constructor.
10711 (throw_exception): Change parameter to rvalue reference.
10712 * common/common-exceptions.c (throw_exception): Take rvalue
10713 reference.
10714 * cli/cli-interp.c (safe_execute_command): Use std::move.
10715 * breakpoint.c (insert_bp_location, location_to_sals): Use
10716 std::move.
10717
680d7fd5
TT
107182019-04-25 Tom Tromey <tromey@adacore.com>
10719
10720 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10721 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10722 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10723 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10724 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10725 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10726 guile/scm-value.c: Use unpack.
10727 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10728 gdbscm_gdb_exception.
10729 (gdbscm_throw_gdb_exception): Likewise.
10730 (struct gdbscm_gdb_exception): New.
10731 (unpack): New function.
10732 (gdbscm_wrap): Use unpack.
10733
c6fdd8b2
TT
107342019-04-25 Tom Tromey <tromey@adacore.com>
10735
10736 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10737 (gdb_rl_callback_handler): Use std::move.
10738 * common/common-exceptions.h (struct gdb_exception): Add move
10739 assignment operator.
10740 (throw_exception_sjlj): Change "exception" to const reference.
10741 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10742 (throw_exception_sjlj): Change "exception" to const reference.
10743
cc06b668
TT
107442019-04-25 Tom Tromey <tromey@adacore.com>
10745
10746 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10747 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10748 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10749 Update.
10750 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10751 Update.
10752 * mi/mi-interp.c (mi_interp::exec): Update.
10753 * linespec.c (parse_linespec): Update.
10754 * infcall.c (run_inferior_call): Update.
10755 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10756 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10757 (gdbscm_lookup_global_symbol): Update.
10758 * guile/scm-param.c (gdbscm_parameter_value): Update.
10759 * guile/scm-frame.c (gdbscm_frame_read_register)
10760 (gdbscm_frame_read_var): Update.
10761 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10762 * exec.c (try_open_exec_file): Update.
10763 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10764 (gdb_rl_callback_handler): Update.
10765 * common/common-exceptions.h (exception_none): Don't declare.
10766 * common/common-exceptions.c (exception_none): Don't define.
10767 (struct catcher) <exception>: Update.
10768 * cli/cli-interp.c (safe_execute_command): Update.
10769 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10770
cf532bd1
AT
107712019-04-25 Ali Tamur <tamur@google.com>
10772
10773 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10774 (read_attribute_value): Likewise.
10775 (dwarf2_read_addr_index): Update comment.
10776 (read_str_index): Add DW_FORM_strx.
10777 (dwarf2_string_attr): Likewise.
10778 (dwarf2_const_value_attr): Likewise.
10779 (dump_die_shallow): Likewise.
10780 (dwarf2_fetch_constant_bytes): Likewise.
10781 (skip_form_bytes): Likewise.
10782 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10783
82433e3e
SDJ
107842019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10785
10786 PR corefiles/11608
10787 PR corefiles/18187
10788 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10789 OFFSET. Verify if current mapping contains an ELF header.
10790 (linux_find_memory_regions_full): Adjust call to
10791 dump_mapping_p.
10792
723adb65
SL
107932019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10794 Kang Li <kanglictf@gmail.com>
10795
10796 PR gdb/21600
10797
10798 * dwarf2-frame.c (read_initial_length): Be consistent about using
10799 unsigned representation of length.
10800 (decode_frame_entry_1): Likewise. Check for wraparound of
10801 end pointer as well as buffer overflow.
10802
596179f7
SDJ
108032019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10804
10805 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10806 "vq".
10807
a59240a4
TT
108082019-04-24 Tom Tromey <tromey@adacore.com>
10809
10810 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10811
f872fdbb
AB
108122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10813
10814 * s12z-tdep.c (s12z_unwind_pc): Delete.
10815 (s12z_unwind_sp): Delete.
10816 (s12z_gdbarch_init): Don't register deleted functions with
10817 gdbarch.
10818
b614e6f3
AB
108192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10820
10821 * rl78-tdep.c (rl78_unwind_sp): Delete.
10822 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10823
14faed38
AB
108242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10825
10826 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10827 (xstormy16_unwind_pc): Delete.
10828 (xstormy16_dummy_id): Delete.
10829 (xstormy16_gdbarch_init): Don't register deleted functions with
10830 gdbarch.
10831
541aad8a
AB
108322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10833
10834 * vax-tdep.c (vax_unwind_pc): Delete.
10835 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10836
29222070
AB
108372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10838
10839 * v850-tdep.c (v850_unwind_sp): Delete.
10840 (v850_unwind_pc): Delete.
10841 (v850_dummy_id): Delete.
10842 (v850_gdbarch_init): Don't register deleted functions with
10843 gdbarch.
10844
0f534d76
AB
108452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10846
10847 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10848 (tilegx_unwind_pc): Delete.
10849 (tilegx_unwind_dummy_id): Delete.
10850 (tilegx_gdbarch_init): Don't register deleted functions with
10851 gdbarch.
10852
1ba7b7f9
AB
108532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10854
10855 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10856 (tic6x_dummy_id): Delete.
10857 (tic6x_gdbarch_init): Don't register deleted functions with
10858 gdbarch.
10859
d31f262c
AB
108602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10861
10862 * sparc-tdep.c (sparc_unwind_pc): Delete.
10863 (sparc32_gdbarch_init): Don't register deleted function with
10864 gdbarch.
10865
6d14d64d
AB
108662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10867
10868 * sh-tdep.c (sh_unwind_sp): Delete.
10869 (sh_unwind_pc): Delete.
10870 (sh_dummy_id): Delete.
10871 (sh_gdbarch_init): Don't register deleted functions with
10872 gdbarch.
10873
a40dde9d
AB
108742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10875
10876 * score-tdep.c (score_unwind_sp): Delete.
10877 (score_unwind_pc): Delete.
10878 (score_dummy_id): Delete.
10879 (score_gdbarch_init): Don't register deleted functions with
10880 gdbarch.
10881
47c47d69
AB
108822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10883
10884 * rx-tdep.c (rx_unwind_pc): Delete.
10885 (rx_unwind_sp): Delete.
10886 (rx_dummy_id): Delete.
10887 (rx_gdbarch_init): Don't register deleted functions with
10888 gdbarch. Update comment.
10889
833a4480
AB
108902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10891
10892 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10893 (rs6000_dummy_id): Delete.
10894 (rs6000_gdbarch_init): Don't register deleted functions with
10895 gdbarch.
10896
3f2cef49
AB
108972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10898
10899 * or1k-tdep.c (or1k_dummy_id): Delete.
10900 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10901
96acf884
AB
109022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10903
10904 * nios2-tdep.c (nios2_dummy_id): Delete.
10905 (nios2_unwind_sp): Delete.
10906 (nios2_gdbarch_init): Don't register deleted functions with
10907 gdbarch.
10908
ca0ab0aa
AB
109092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10910
10911 * nds32-tdep.c (nds32_dummy_id): Delete.
10912 (nds32_unwind_pc): Delete.
10913 (nds32_unwind_sp): Delete.
10914 (nds32_gdbarch_init): Don't register deleted functions with
10915 gdbarch.
10916
c8259044
AB
109172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10918
10919 * msp430-tdep.c (msp430_unwind_pc): Delete.
10920 (msp430_unwind_sp): Delete.
10921 (msp430_dummy_id): Delete.
10922 (msp430_gdbarch_init): Don't register deleted functions with
10923 gdbarch.
10924
27f113c8
AB
109252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10926
10927 * moxie-tdep.c (moxie_unwind_sp): Delete.
10928 (moxie_unwind_pc): Delete.
10929 (moxie_dummy_id): Delete.
10930 (moxie_gdbarch_init): Don't register deleted functions with
10931 gdbarch.
10932
aee6c3cd
AB
109332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10934
10935 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10936 (mn10300_unwind_pc): Delete.
10937 (mn10300_unwind_sp): Delete.
10938 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10939 mn10300_unwind_sp.
10940 (mn10300_frame_unwind_init): Don't register deleted functions with
10941 gdbarch.
10942
8e2b5aea
AB
109432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10944
10945 * mep-tdep.c (mep_unwind_pc): Delete.
10946 (mep_unwind_sp): Delete.
10947 (mep_dummy_id): Delete.
10948 (mep_gdbarch_init): Don't register deleted functions with
10949 gdbarch.
10950
43cf3ede
AB
109512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10952
10953 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10954 (m68hc11_unwind_sp): Delete.
10955 (m68hc11_gdbarch_init): Don't register deleted functions with
10956 gdbarch.
10957
5e79b7bb
AB
109582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10959
10960 * m32r-tdep.c (m32r_unwind_sp): Delete.
10961 (m32r_unwind_pc): Delete.
10962 (m32r_dummy_id): Delete.
10963 (m32r_gdbarch_init): Don't register deleted functions with
10964 gdbarch.
10965
89b268d8
AB
109662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10967
10968 * m32c-tdep.c (m32c_unwind_pc): Delete.
10969 (m32c_unwind_sp): Delete.
10970 (m32c_dummy_id): Delete.
10971 (m32c_gdbarch_init): Don't register deleted functions with
10972 gdbarch.
10973
946c28d2
AB
109742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10975
10976 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10977 (lm32_unwind_pc): Delete.
10978 (lm32_dummy_id): Delete.
10979 (lm32_gdbarch_init): Don't register deleted functions with
10980 gdbarch.
10981
bf12844a
AB
109822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10983
10984 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10985 (iq2000_unwind_pc): Delete.
10986 (iq2000_dummy_id): Delete.
10987 (iq2000_gdbarch_init): Don't register deleted functions with
10988 gdbarch.
10989
ecbc06d2
AB
109902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10991
10992 * nds32-tdep.c (nds32_type_align): Delete.
10993 (nds32_push_dummy_call): Use type_align instead.
10994
030197b4
AB
109952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10996
10997 * arm-tdep.c (arm_type_align): Only handle vector override case.
10998 (arm_push_dummy_call): Use type_align.
10999 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11000
b907456c
AB
110012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11002
11003 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11004 case.
11005 (pass_on_stack): Use type_align.
11006 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11007 function.
11008
9e97ba43
TT
110092019-04-23 Tom Tromey <tromey@adacore.com>
11010
11011 * dwarf2read.c (line_header::file_name_at): Remove unused
11012 overload.
11013
6892f601
TV
110142019-04-23 Tom de Vries <tdevries@suse.de>
11015
11016 PR gdb/24438
11017 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11018 invocation.
11019
336d760d
AT
11020
110212019-03-27 Ali Tamur <tamur@google.com>
11022
11023 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11024 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11025 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11026 (dwarf_expr_context::get_addr_index): Likewise
11027 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11028 (symbol_needs_eval_context::get_addr_index): Likewise
11029 (disassemble_dwarf_expression): Add DW_OP_addrx
11030 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11031 (read_cutu_die_from_dwo): Update comment
11032 (skip_one_die): Add DW_FORM_addrx
11033 (read_attribute_value): Likewise
11034 (var_decode_location): Add DW_OP_addrx
11035 (dwarf2_const_value_attr): Add DW_FORM_addrx
11036 (dump_die_shallow): Likewise
11037 (dwarf2_fetch_constant_bytes): Likewise
11038 (decode_locdesc): Add DW_OP_addrx
11039 (skip_form_bytes): Add DW_FORM_addrx
11040
ad9d13f8
AT
110412019-04-22 Ali Tamur <tamur@google.com>
11042
11043 * MAINTAINERS (Write After Approval): Add self.
11044
d70cc3ba
SM
110452019-04-22 Simon Marchi <simon.marchi@efficios.com>
11046
11047 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11048 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11049 (open_symbol_file_object): Likewise.
11050 (svr4_default_sos): Add info parameter.
11051 (svr4_read_so_list): Likewise.
11052 (svr4_current_sos_direct): Adjust functions calls to pass down
11053 info.
11054 (svr4_current_sos_1): Add info parameter.
11055 (svr4_current_sos): Call get_svr4_info, pass info down to
11056 svr4_current_sos_1.
11057 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11058 get_svr4_info.
11059 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11060 get_svr4_info.
11061 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11062 to get_svr4_info.
11063 (probes_table_remove_objfile_probes): Likewise.
11064 (register_solib_event_probe): Add info parameter.
11065 (solist_update_incremental): Pass info parameter down to
11066 svr4_read_so_list.
11067 (disable_probes_interface): Add info parameter.
11068 (svr4_handle_solib_event): Pass current_program_space to
11069 get_svr4_info. Adjust disable_probes_interface cleanup.
11070 (svr4_create_probe_breakpoints): Add info parameter, pass it
11071 down to register_solib_event_probe.
11072 (svr4_create_solib_event_breakpoints): Add info parameter,
11073 pass it down to svr4_create_probe_breakpoints.
11074 (enable_break): Pass info down to
11075 svr4_create_solib_event_breakpoints.
11076 (svr4_solib_create_inferior_hook): Pass current_program_space to
11077 get_svr4_info.
11078 (svr4_clear_solib): Likewise.
11079
7905fc35
PA
110802019-04-22 Pedro Alves <palves@redhat.com>
11081
11082 * solib-svr4.c (svr4_free_objfile_observer): New.
11083 (probe_and_action::objfile): New field.
11084 (probes_table_htab_remove_objfile_probes)
11085 (probes_table_remove_objfile_probes): New functions.
11086 (register_solib_event_probe): Add 'objfile' parameter. Store it
11087 in the new probe_and_action. Don't store the probe in 'lookup'.
11088 (svr4_create_probe_breakpoints): Pass objfile to
11089 register_solib_event_probe.
11090 (_initialize_svr4_solib): Register a free_objfile observer.
11091
fb881986
TT
110922019-04-19 Tom Tromey <tom@tromey.com>
11093
11094 * common/queue.h: Remove.
11095
8732db6c
TT
110962019-04-19 Tom Tromey <tom@tromey.com>
11097
11098 * event-loop.c: Don't include "common/queue.h".
11099
97dfbadd
TT
111002019-04-19 Tom Tromey <tom@tromey.com>
11101
11102 * remote.c (remote_target): Use delete.
11103 * remote-notif.h: Include <list>, not "common/queue.h".
11104 (notif_client_p): Remove typedef.
11105 (remote_notif_state): Add constructor, destructor, initializer.
11106 <notif_queue>: Now a std::list.
11107 (remote_notif_state_xfree): Don't declare.
11108 * remote-notif.c (remote_notif_process, handle_notification)
11109 (remote_notif_state_allocate): Update.
11110 (~remote_notif_state): Rename from remote_notif_state_xfree.
11111
cf250e36
TT
111122019-04-19 Tom Tromey <tom@tromey.com>
11113
11114 * symfile.c (reread_symbols): Update.
11115 * objfiles.c (objfile_register_static_link)
11116 (objfile_lookup_static_link): Update
11117 (~objfile) Don't delete static_links.
11118 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11119
61f4b350
TT
111202019-04-19 Tom Tromey <tom@tromey.com>
11121
11122 * type-stack.h (struct type_stack) <insert>: Constify string.
11123 * type-stack.c (type_stack::insert): Constify string.
11124 * gdbtypes.h (lookup_template_type): Update.
11125 (address_space_name_to_int): Update.
11126 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11127 const.
11128 (lookup_template_type): Make name const.
11129 * c-exp.y: Update rules.
11130 (lex_one_token, classify_name, classify_inner_name)
11131 (c_print_token): Update.
11132 * p-exp.y: Update rules.
11133 (yylex): Update.
11134 * f-exp.y: Update rules.
11135 (yylex): Update.
11136 * d-exp.y: Update rules.
11137 (lex_one_token, classify_name, classify_inner_name): Update.
11138 * parse.c (write_dollar_variable, copy_name): Return std::string.
11139 * parser-defs.h (copy_name): Change return type.
11140 * m2-exp.y: Update rules.
11141 (yylex): Update.
11142 * go-exp.y (lex_one_token): Update.
11143 Update rules.
11144 (classify_unsafe_function, classify_packaged_name)
11145 (classify_name, yylex): Update.
11146
189b8c2e
ST
111472019-04-19 Sergei Trofimovich <siarheit@google.com>
11148
11149 * configure.ac: add --enable-source-highlight switch.
11150 * configure: Regenerate.
11151 * top.c (print_gdb_version): plumb --enable-source-highlight
11152 status to "show configuration".
11153
8ecb59f8
TT
111542019-04-19 Tom Tromey <tromey@adacore.com>
11155
11156 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11157 Check ADA_TYPE_P.
11158 (empty_record, ada_template_to_fixed_record_type_1)
11159 (template_to_static_fixed_type)
11160 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11161 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11162 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11163 macros.
11164
62160ec9
TT
111652019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11166
11167 PR symtab/24423:
11168 * source.c (print_source_lines_base): Advance "iter" when a
11169 control character is seen.
11170
f2ae8bc8
PW
111712019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11172
11173 * inferior.h (struct infcall_suspend_state_deleter):
11174 Catch exception in destructor to avoid crash.
11175
d563b953
PW
111762019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11177
11178 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11179 close to the add_com "shell".
11180
dc34c897
TT
111812019-04-18 Tom Tromey <tromey@adacore.com>
11182
11183 * process-stratum-target.h (class process_stratum_target)
11184 <stratum>: Add "final".
11185
a12e5744
TT
111862019-04-17 Tom Tromey <tromey@adacore.com>
11187
11188 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11189 against nullptr before use.
11190
a7e559cc
AH
111912019-04-17 Alan Hayward <alan.hayward@arm.com>
11192
11193 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11194
c01660c6
AB
111952019-04-17 Jim Wilson <jimw@sifive.com>
11196 Andrew Burgess <andrew.burgess@embecosm.com>
11197
11198 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11199 code read might fail, assume 4-byte breakpoint in that case.
11200
4aa866af
LS
112012019-04-15 Leszek Swirski <leszeks@google.com>
11202
11203 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11204 rather than a hand-rolled POD check when checking for forced MEMORY
11205 classification.
11206
48574d91
AH
112072019-04-15 Alan Hayward <alan.hayward@arm.com>
11208
11209 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11210 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11211 function.
11212 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11213 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11214 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11215 declaration.
11216
4da037ef
AH
112172019-04-15 Alan Hayward <alan.hayward@arm.com>
11218
11219 * aarch64-linux-nat.c
11220 (aarch64_linux_nat_target::thread_architecture): Add override.
11221 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11222 each VQ.
11223
ccb8d7e8
AH
112242019-04-15 Alan Hayward <alan.hayward@arm.com>
11225
11226 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11227
35add35e
AB
112282019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11229
11230 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11231 target types of size 96-bits, add some additional comments, and
11232 check that the builtin type we found was the correct size.
11233
51196bbc
EZ
112342019-04-12 Eli Zaretskii <eliz@gnu.org>
11235
11236 * utils.c (prompt_for_continue): Don't restore the styling at the
11237 end, as applied_style has the wrong value. This fixes styling in
11238 long lists of file names that are interrupted by the "Continue?"
11239 prompt.
11240
62253a61
AB
112412019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11242
11243 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11244 * c-lang.c (c_language_defn): Likewise.
11245 (cplus_language_defn): Likewise.
11246 (asm_language_defn): Likewise.
11247 (minimal_language_defn): Likewise.
11248 * d-lang.c (d_language_defn): Likewise.
11249 * f-lang.c (f_language_defn): Likewise.
11250 * go-lang.c (go_language_defn): Likewise.
11251 * language.c (unknown_language_defn): Likewise.
11252 (auto_language_defn): Likewise.
11253 * language.h (struct language_defn): Remove la_magic field.
11254 (LANG_MAGIC): Delete.
11255 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11256 * objc-lang.c (objc_language_defn): Likewise.
11257 * opencl-lang.c (opencl_language_defn): Likewise.
11258 * p-lang.c (pascal_language_defn): Likewise.
11259 * rust-lang.c (rust_language_defn): Likewise.
11260
a9158a86
AB
112612019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11262
11263 * riscv-tdep.c (riscv_type_align): New function.
11264 (riscv_type_alignment): Delete.
11265 (riscv_arg_location): Use 'type_align'.
11266 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11267
41077b66
AB
112682019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11269
11270 * gdbtypes.c (type_align): A struct with no non-static fields also
11271 has alignment of 1.
11272
9f0272f8
AB
112732019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11274
11275 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11276 component to 0.
11277 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11278 member.
11279 (riscv_struct_info::analyse): New implementation using new
11280 analyse_inner member function.
11281 (riscv_struct_info::field_offset): New member function.
11282 (riscv_struct_info::m_offsets): New member variable.
11283 (riscv_struct_info::analyse_inner): New private member function,
11284 takes the old implementation of riscv_struct_info::analyse but
11285 extended to track field offsets.
11286 (riscv_call_arg_struct): Update the struct folding special cases
11287 to handle cases where empty C++ structs, which are non-zero
11288 length, are found.
11289 (riscv_arg_location): Initialise the length of each location, a
11290 non-zero length now indicates the location is in use.
11291 (riscv_push_dummy_call): Allow for the first location having a
11292 non-zero offset when setting up arguments.
11293 (riscv_return_value): Likewise, but for return values.
11294
02cf60c7
TT
112952019-04-11 Tom Tromey <tromey@adacore.com>
11296
11297 * utils.c (internal_vproblem): Make "msg" const.
11298
68811f8f
AH
112992019-04-11 Alan Hayward <alan.hayward@arm.com>
11300
11301 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11302 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11303 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11304 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11305
3f52fdbc
KB
113062019-04-10 Kevin Buettner <kevinb@redhat.com>
11307
11308 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11309 function.
11310 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11311 of amd64_collect_native_gregset.
11312 (amd64_linux_nat_target::store_registers): Likewise.
11313
e9ad22ee
TT
113142019-04-10 Tom Tromey <tom@tromey.com>
11315
11316 * symtab.c (lookup_global_symbol_from_objfile)
11317 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11318 * objfiles.h (class separate_debug_iterator): New.
11319 (class separate_debug_range): New.
11320 (struct objfile) <separate_debug_objfiles>: New method.
11321 (objfile_separate_debug_iterate): Don't declare.
11322 * objfiles.c (separate_debug_iterator::operator++): Rename from
11323 objfile_separate_debug_iterate.
11324 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11325 iterator.
11326 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11327 iterator.
11328
ee371134
TT
113292019-04-10 Tom Tromey <tom@tromey.com>
11330
11331 * symfile.c (reread_symbols): Remove old comment.
11332 * objfiles.c (free_all_objfiles): Fix a typo.
11333
bf227d61
TT
113342019-04-10 Tom Tromey <tom@tromey.com>
11335
11336 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11337 * minsyms.c (lookup_minimal_symbol): Use foreach.
11338 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11339 (lookup_minimal_symbol_solib_trampoline): Likewise.
11340 * symfile.c (reread_symbols): Use foreach.
11341
8dc433a0
TT
113422019-04-09 Ivan Begert <ivanbegert@gmail.com>
11343 Tom Tromey <tromey@adacore.com>
11344
11345 PR rust/24414:
11346 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11347 (rust_lex_int_test): Change "value" to be LONGEST.
11348 (rust_lex_tests): Add test for long integer literal.
11349
9ab8741a
TT
113502019-04-09 Tom Tromey <tromey@adacore.com>
11351
11352 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11353 to bool.
11354 (extended_remote_target::attach): Update.
11355 (remote_target::remote_notice_new_inferior): Update.
11356 (remote_target::add_current_inferior_and_thread): Update.
11357 * inferior.c (exit_inferior_1): Use "false".
11358 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11359
e242fd12
SM
113602019-04-09 Simon Marchi <simon.marchi@efficios.com>
11361
9ca1957f 11362 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11363 the "start" command.
11364
2b0c8b01
KB
113652019-04-08 Kevin Buettner <kevinb@redhat.com>
11366
11367 * python/py-inferior.c (infpy_thread_from_thread_handle):
11368 Adjust comments to reflect renaming of thread_from_thread_handle
11369 to thread_from_handle. Adjust keywords. Fix type error message.
11370 (inferior_object_methods): Add thread_from_handle. Retain
11371 thread_from_thread_handle, but mark it as deprecated.
11372
50a82723
KB
113732019-04-08 Kevin Buettner <kevinb@redhat.com>
11374
11375 * gdbthread.h (find_thread_by_handle): Revise declaration.
11376 * thread.c (find_thread_by_handle): Likewise. Adjust
11377 implementation too.
11378 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11379 support for buffer objects as handles.
11380
cf63b016
KB
113812019-04-08 Kevin Buettner <kevinb@redhat.com>
11382
11383 * python/py-infthread.c (thpy_thread_handle): New function.
11384 (thread_object_methods): Register thpy_thread_handle.
11385
3d6c6204
KB
113862019-04-08 Kevin Buettner <kevinb@redhat.com>
11387
11388 * gdbthread.h (thread_to_thread_handle): Declare.
11389 * thread.c (gdbtypes.h): Include.
11390 (thread_to_thread_handle): New function.
11391
11392 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11393 (target_thread_info_to_thread_handle): Declare.
11394 * target.c (target_thread_info_to_thread_handle): New function.
11395 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11396 * target-delegates.c: Regenerate.
11397
11398 * linux-thread-db.c (class thread_db_target): Add method
11399 thread_info_to_thread_handle.
11400 (thread_db_target::thread_info_to_thread_handle): Define.
11401 * remote.c (class remote_target): Add new method
11402 thread_info_to_thread_handle.
11403 (remote_target::thread_info_to_thread_handle): Define.
11404
56be6ea8
PA
114052019-04-08 Pedro Alves <palves@redhat.com>
11406
11407 * common/common-exceptions.c (throw_exception): Don't create
11408 named object to throw; throw directly.
11409 (throw_it): Likewise. Don't initialize gdb_exception::message
11410 here, with new; pass FMT and AP to the ctor instead.
11411 * common/common-exceptions.h: Include <string>.
11412 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11413 const char *, va_list)): New ctor. Use std::make_shared.
11414 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11415 errors)): Delete.
11416 (gdb_exception_error::gdb_exception_error(enum errors, const char
11417 *, va_list)): New.
11418 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11419 Add assertion.
11420 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11421 errors)): Delete.
11422 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11423 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11424 Add assertion.
11425
eedc3f4f
TT
114262019-04-08 Tom Tromey <tom@tromey.com>
11427
11428 * valops.c (value_rtti_indirect_type): Replace throw_exception
11429 with throw.
11430 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11431 with throw.
11432 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11433 throw.
11434 * target.c (target_translate_tls_address): Replace throw_exception
11435 with throw.
11436 * stack.c (frame_apply_command_count): Replace throw_exception
11437 with throw.
11438 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11439 throw.
11440 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11441 with throw.
11442 * rs6000-tdep.c (rs6000_frame_cache)
11443 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11444 * remote.c: Replace throw_exception with throw.
11445 * record-full.c (record_full_message, record_full_wait_1)
11446 (record_full_restore): Replace throw_exception with throw.
11447 * record-btrace.c:
11448 (get_thread_current_frame_id, record_btrace_start_replaying)
11449 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11450 (cmd_record_btrace_start): Replace throw_exception with throw.
11451 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11452 throw.
11453 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11454 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11455 * linespec.c:
11456 (find_linespec_symbols): Replace throw_exception with throw.
11457 * infrun.c (displaced_step_prepare, resume): Replace
11458 throw_exception with throw.
11459 * infcmd.c (post_create_inferior): Replace throw_exception with
11460 throw.
11461 * inf-loop.c (inferior_event_handler): Replace throw_exception
11462 with throw.
11463 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11464 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11465 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11466 (get_prev_frame_always, get_frame_pc_if_available)
11467 (get_frame_address_in_block_if_available, get_frame_language):
11468 Replace throw_exception with throw.
11469 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11470 throw_exception with throw.
11471 * eval.c (fetch_subexp_value, evaluate_var_value)
11472 (evaluate_funcall, evaluate_subexp_standard): Replace
11473 throw_exception with throw.
11474 * dwarf2loc.c (call_site_find_chain)
11475 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11476 Replace throw_exception with throw.
11477 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11478 with throw.
11479 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11480 throw.
11481 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11482 * completer.c (complete_line_internal): Replace throw_exception
11483 with throw.
11484 * compile/compile-object-run.c (compile_object_run): Replace
11485 throw_exception with throw.
11486 * cli/cli-script.c (process_next_line): Replace throw_exception
11487 with throw.
11488 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11489 (btrace_enable, btrace_maint_update_pt_packets): Replace
11490 throw_exception with throw.
11491 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11492 throw_exception with throw.
11493 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11494 throw_exception with throw.
11495 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11496 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11497 * aarch64-tdep.c (aarch64_make_prologue_cache)
11498 (aarch64_make_stub_cache): Replace throw_exception with throw.
11499
26003a20
TT
115002019-04-08 Tom Tromey <tom@tromey.com>
11501
11502 * common/common-exceptions.c (throw_exception): Rename from
11503 throw_exception_cxx. Remove old copy. Make argument const.
11504 (throw_it): Create and throw exception objects directly.
11505 * common/common-exceptions.h (throw_exception): Make argument
11506 const.
11507 (struct gdb_exception_error): Add constructor.
11508 (struct gdb_exception_quit): Add constructor.
11509
d272eb37
TT
115102019-04-08 Tom Tromey <tom@tromey.com>
11511
11512 * common/common-exceptions.h (exception_rethrow): Don't declare.
11513 (TRY_SJLJ): Update comment.
11514 (TRY, CATCH, END_CATCH): Remove.
11515 * common/common-exceptions.c (exception_rethrow): Remove.
11516
230d2906
TT
115172019-04-08 Tom Tromey <tom@tromey.com>
11518
11519 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11520 Remove.
11521 (gdb_exception_error): Rename from
11522 gdb_exception_RETURN_MASK_ERROR.
11523 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11524 (gdb_quit_bad_alloc): Update.
11525 * aarch64-tdep.c: Update.
11526 * ada-lang.c: Update.
11527 * ada-typeprint.c: Update.
11528 * ada-valprint.c: Update.
11529 * amd64-tdep.c: Update.
11530 * arch-utils.c: Update.
11531 * break-catch-throw.c: Update.
11532 * breakpoint.c: Update.
11533 * btrace.c: Update.
11534 * c-varobj.c: Update.
11535 * cli/cli-cmds.c: Update.
11536 * cli/cli-interp.c: Update.
11537 * cli/cli-script.c: Update.
11538 * common/common-exceptions.c: Update.
11539 * common/new-op.c: Update.
11540 * common/selftest.c: Update.
11541 * compile/compile-c-symbols.c: Update.
11542 * compile/compile-cplus-symbols.c: Update.
11543 * compile/compile-object-load.c: Update.
11544 * compile/compile-object-run.c: Update.
11545 * completer.c: Update.
11546 * corelow.c: Update.
11547 * cp-abi.c: Update.
11548 * cp-support.c: Update.
11549 * cp-valprint.c: Update.
11550 * darwin-nat.c: Update.
11551 * disasm-selftests.c: Update.
11552 * dtrace-probe.c: Update.
11553 * dwarf-index-cache.c: Update.
11554 * dwarf-index-write.c: Update.
11555 * dwarf2-frame-tailcall.c: Update.
11556 * dwarf2-frame.c: Update.
11557 * dwarf2loc.c: Update.
11558 * dwarf2read.c: Update.
11559 * eval.c: Update.
11560 * event-loop.c: Update.
11561 * event-top.c: Update.
11562 * exec.c: Update.
11563 * f-valprint.c: Update.
11564 * fbsd-tdep.c: Update.
11565 * frame-unwind.c: Update.
11566 * frame.c: Update.
11567 * gdbtypes.c: Update.
11568 * gnu-v3-abi.c: Update.
11569 * guile/guile-internal.h: Update.
11570 * guile/scm-block.c: Update.
11571 * guile/scm-breakpoint.c: Update.
11572 * guile/scm-cmd.c: Update.
11573 * guile/scm-disasm.c: Update.
11574 * guile/scm-frame.c: Update.
11575 * guile/scm-lazy-string.c: Update.
11576 * guile/scm-math.c: Update.
11577 * guile/scm-param.c: Update.
11578 * guile/scm-ports.c: Update.
11579 * guile/scm-pretty-print.c: Update.
11580 * guile/scm-symbol.c: Update.
11581 * guile/scm-symtab.c: Update.
11582 * guile/scm-type.c: Update.
11583 * guile/scm-value.c: Update.
11584 * i386-linux-tdep.c: Update.
11585 * i386-tdep.c: Update.
11586 * inf-loop.c: Update.
11587 * infcall.c: Update.
11588 * infcmd.c: Update.
11589 * infrun.c: Update.
11590 * jit.c: Update.
11591 * language.c: Update.
11592 * linespec.c: Update.
11593 * linux-fork.c: Update.
11594 * linux-nat.c: Update.
11595 * linux-tdep.c: Update.
11596 * linux-thread-db.c: Update.
11597 * main.c: Update.
11598 * mi/mi-cmd-break.c: Update.
11599 * mi/mi-cmd-stack.c: Update.
11600 * mi/mi-interp.c: Update.
11601 * mi/mi-main.c: Update.
11602 * objc-lang.c: Update.
11603 * p-valprint.c: Update.
11604 * parse.c: Update.
11605 * ppc-linux-tdep.c: Update.
11606 * printcmd.c: Update.
11607 * python/py-arch.c: Update.
11608 * python/py-breakpoint.c: Update.
11609 * python/py-cmd.c: Update.
11610 * python/py-finishbreakpoint.c: Update.
11611 * python/py-frame.c: Update.
11612 * python/py-framefilter.c: Update.
11613 * python/py-gdb-readline.c: Update.
11614 * python/py-inferior.c: Update.
11615 * python/py-infthread.c: Update.
11616 * python/py-lazy-string.c: Update.
11617 * python/py-linetable.c: Update.
11618 * python/py-objfile.c: Update.
11619 * python/py-param.c: Update.
11620 * python/py-prettyprint.c: Update.
11621 * python/py-progspace.c: Update.
11622 * python/py-record-btrace.c: Update.
11623 * python/py-record.c: Update.
11624 * python/py-symbol.c: Update.
11625 * python/py-type.c: Update.
11626 * python/py-unwind.c: Update.
11627 * python/py-utils.c: Update.
11628 * python/py-value.c: Update.
11629 * python/python.c: Update.
11630 * record-btrace.c: Update.
11631 * record-full.c: Update.
11632 * remote-fileio.c: Update.
11633 * remote.c: Update.
11634 * riscv-tdep.c: Update.
11635 * rs6000-aix-tdep.c: Update.
11636 * rs6000-tdep.c: Update.
11637 * rust-exp.y: Update.
11638 * rust-lang.c: Update.
11639 * s390-tdep.c: Update.
11640 * selftest-arch.c: Update.
11641 * solib-dsbt.c: Update.
11642 * solib-frv.c: Update.
11643 * solib-spu.c: Update.
11644 * solib-svr4.c: Update.
11645 * solib.c: Update.
11646 * sparc64-linux-tdep.c: Update.
11647 * stack.c: Update.
11648 * symfile-mem.c: Update.
11649 * symmisc.c: Update.
11650 * target.c: Update.
11651 * thread.c: Update.
11652 * top.c: Update.
11653 * tracefile-tfile.c: Update.
11654 * tui/tui.c: Update.
11655 * typeprint.c: Update.
11656 * unittests/cli-utils-selftests.c: Update.
11657 * unittests/parse-connection-spec-selftests.c: Update.
11658 * valops.c: Update.
11659 * valprint.c: Update.
11660 * value.c: Update.
11661 * varobj.c: Update.
11662 * windows-nat.c: Update.
11663 * x86-linux-nat.c: Update.
11664 * xml-support.c: Update.
11665
a70b8144
TT
116662019-04-08 Tom Tromey <tom@tromey.com>
11667
11668 * xml-support.c: Use C++ exception handling.
11669 * x86-linux-nat.c: Use C++ exception handling.
11670 * windows-nat.c: Use C++ exception handling.
11671 * varobj.c: Use C++ exception handling.
11672 * value.c: Use C++ exception handling.
11673 * valprint.c: Use C++ exception handling.
11674 * valops.c: Use C++ exception handling.
11675 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11676 handling.
11677 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11678 * typeprint.c: Use C++ exception handling.
11679 * tui/tui.c: Use C++ exception handling.
11680 * tracefile-tfile.c: Use C++ exception handling.
11681 * top.c: Use C++ exception handling.
11682 * thread.c: Use C++ exception handling.
11683 * target.c: Use C++ exception handling.
11684 * symmisc.c: Use C++ exception handling.
11685 * symfile-mem.c: Use C++ exception handling.
11686 * stack.c: Use C++ exception handling.
11687 * sparc64-linux-tdep.c: Use C++ exception handling.
11688 * solib.c: Use C++ exception handling.
11689 * solib-svr4.c: Use C++ exception handling.
11690 * solib-spu.c: Use C++ exception handling.
11691 * solib-frv.c: Use C++ exception handling.
11692 * solib-dsbt.c: Use C++ exception handling.
11693 * selftest-arch.c: Use C++ exception handling.
11694 * s390-tdep.c: Use C++ exception handling.
11695 * rust-lang.c: Use C++ exception handling.
11696 * rust-exp.y: Use C++ exception handling.
11697 * rs6000-tdep.c: Use C++ exception handling.
11698 * rs6000-aix-tdep.c: Use C++ exception handling.
11699 * riscv-tdep.c: Use C++ exception handling.
11700 * remote.c: Use C++ exception handling.
11701 * remote-fileio.c: Use C++ exception handling.
11702 * record-full.c: Use C++ exception handling.
11703 * record-btrace.c: Use C++ exception handling.
11704 * python/python.c: Use C++ exception handling.
11705 * python/py-value.c: Use C++ exception handling.
11706 * python/py-utils.c: Use C++ exception handling.
11707 * python/py-unwind.c: Use C++ exception handling.
11708 * python/py-type.c: Use C++ exception handling.
11709 * python/py-symbol.c: Use C++ exception handling.
11710 * python/py-record.c: Use C++ exception handling.
11711 * python/py-record-btrace.c: Use C++ exception handling.
11712 * python/py-progspace.c: Use C++ exception handling.
11713 * python/py-prettyprint.c: Use C++ exception handling.
11714 * python/py-param.c: Use C++ exception handling.
11715 * python/py-objfile.c: Use C++ exception handling.
11716 * python/py-linetable.c: Use C++ exception handling.
11717 * python/py-lazy-string.c: Use C++ exception handling.
11718 * python/py-infthread.c: Use C++ exception handling.
11719 * python/py-inferior.c: Use C++ exception handling.
11720 * python/py-gdb-readline.c: Use C++ exception handling.
11721 * python/py-framefilter.c: Use C++ exception handling.
11722 * python/py-frame.c: Use C++ exception handling.
11723 * python/py-finishbreakpoint.c: Use C++ exception handling.
11724 * python/py-cmd.c: Use C++ exception handling.
11725 * python/py-breakpoint.c: Use C++ exception handling.
11726 * python/py-arch.c: Use C++ exception handling.
11727 * printcmd.c: Use C++ exception handling.
11728 * ppc-linux-tdep.c: Use C++ exception handling.
11729 * parse.c: Use C++ exception handling.
11730 * p-valprint.c: Use C++ exception handling.
11731 * objc-lang.c: Use C++ exception handling.
11732 * mi/mi-main.c: Use C++ exception handling.
11733 * mi/mi-interp.c: Use C++ exception handling.
11734 * mi/mi-cmd-stack.c: Use C++ exception handling.
11735 * mi/mi-cmd-break.c: Use C++ exception handling.
11736 * main.c: Use C++ exception handling.
11737 * linux-thread-db.c: Use C++ exception handling.
11738 * linux-tdep.c: Use C++ exception handling.
11739 * linux-nat.c: Use C++ exception handling.
11740 * linux-fork.c: Use C++ exception handling.
11741 * linespec.c: Use C++ exception handling.
11742 * language.c: Use C++ exception handling.
11743 * jit.c: Use C++ exception handling.
11744 * infrun.c: Use C++ exception handling.
11745 * infcmd.c: Use C++ exception handling.
11746 * infcall.c: Use C++ exception handling.
11747 * inf-loop.c: Use C++ exception handling.
11748 * i386-tdep.c: Use C++ exception handling.
11749 * i386-linux-tdep.c: Use C++ exception handling.
11750 * guile/scm-value.c: Use C++ exception handling.
11751 * guile/scm-type.c: Use C++ exception handling.
11752 * guile/scm-symtab.c: Use C++ exception handling.
11753 * guile/scm-symbol.c: Use C++ exception handling.
11754 * guile/scm-pretty-print.c: Use C++ exception handling.
11755 * guile/scm-ports.c: Use C++ exception handling.
11756 * guile/scm-param.c: Use C++ exception handling.
11757 * guile/scm-math.c: Use C++ exception handling.
11758 * guile/scm-lazy-string.c: Use C++ exception handling.
11759 * guile/scm-frame.c: Use C++ exception handling.
11760 * guile/scm-disasm.c: Use C++ exception handling.
11761 * guile/scm-cmd.c: Use C++ exception handling.
11762 * guile/scm-breakpoint.c: Use C++ exception handling.
11763 * guile/scm-block.c: Use C++ exception handling.
11764 * guile/guile-internal.h: Use C++ exception handling.
11765 * gnu-v3-abi.c: Use C++ exception handling.
11766 * gdbtypes.c: Use C++ exception handling.
11767 * frame.c: Use C++ exception handling.
11768 * frame-unwind.c: Use C++ exception handling.
11769 * fbsd-tdep.c: Use C++ exception handling.
11770 * f-valprint.c: Use C++ exception handling.
11771 * exec.c: Use C++ exception handling.
11772 * event-top.c: Use C++ exception handling.
11773 * event-loop.c: Use C++ exception handling.
11774 * eval.c: Use C++ exception handling.
11775 * dwarf2read.c: Use C++ exception handling.
11776 * dwarf2loc.c: Use C++ exception handling.
11777 * dwarf2-frame.c: Use C++ exception handling.
11778 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11779 * dwarf-index-write.c: Use C++ exception handling.
11780 * dwarf-index-cache.c: Use C++ exception handling.
11781 * dtrace-probe.c: Use C++ exception handling.
11782 * disasm-selftests.c: Use C++ exception handling.
11783 * darwin-nat.c: Use C++ exception handling.
11784 * cp-valprint.c: Use C++ exception handling.
11785 * cp-support.c: Use C++ exception handling.
11786 * cp-abi.c: Use C++ exception handling.
11787 * corelow.c: Use C++ exception handling.
11788 * completer.c: Use C++ exception handling.
11789 * compile/compile-object-run.c: Use C++ exception handling.
11790 * compile/compile-object-load.c: Use C++ exception handling.
11791 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11792 * compile/compile-c-symbols.c: Use C++ exception handling.
11793 * common/selftest.c: Use C++ exception handling.
11794 * common/new-op.c: Use C++ exception handling.
11795 * cli/cli-script.c: Use C++ exception handling.
11796 * cli/cli-interp.c: Use C++ exception handling.
11797 * cli/cli-cmds.c: Use C++ exception handling.
11798 * c-varobj.c: Use C++ exception handling.
11799 * btrace.c: Use C++ exception handling.
11800 * breakpoint.c: Use C++ exception handling.
11801 * break-catch-throw.c: Use C++ exception handling.
11802 * arch-utils.c: Use C++ exception handling.
11803 * amd64-tdep.c: Use C++ exception handling.
11804 * ada-valprint.c: Use C++ exception handling.
11805 * ada-typeprint.c: Use C++ exception handling.
11806 * ada-lang.c: Use C++ exception handling.
11807 * aarch64-tdep.c: Use C++ exception handling.
11808
3d6e9d23
TT
118092019-04-08 Tom Tromey <tom@tromey.com>
11810
11811 * xml-support.c (gdb_xml_parser::parse): Update.
11812 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11813 * value.c (show_convenience): Update.
11814 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11815 (test_parse_flags_qcs): Update.
11816 * thread.c (thr_try_catch_cmd): Update.
11817 * target.c (target_translate_tls_address): Update.
11818 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11819 (info_frame_command_core, frame_apply_command_count): Update.
11820 * rust-exp.y (rust_lex_exception_test): Update.
11821 * riscv-tdep.c (riscv_print_one_register_info): Update.
11822 * remote.c (remote_target::enable_btrace): Update.
11823 * record-btrace.c (record_btrace_enable_warn): Update.
11824 * python/py-utils.c (gdbpy_convert_exception): Update.
11825 * printcmd.c (do_one_display, print_variable_and_value): Update.
11826 * mi/mi-main.c (mi_print_exception): Update.
11827 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11828 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11829 * linux-nat.c (linux_nat_target::attach): Update.
11830 * linux-fork.c (class scoped_switch_fork_info): Update.
11831 * infrun.c (displaced_step_prepare): Update.
11832 * infcall.c (call_function_by_hand_dummy): Update.
11833 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11834 * gnu-v3-abi.c (print_one_vtable): Update.
11835 * frame.c (get_prev_frame_always): Update.
11836 * f-valprint.c (info_common_command_for_block): Update.
11837 * exec.c (try_open_exec_file): Update.
11838 * exceptions.c (print_exception, exception_print)
11839 (exception_fprintf, exception_print_same): Update.
11840 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11841 * dwarf-index-cache.c (index_cache::store)
11842 (index_cache::lookup_gdb_index): Update.
11843 * darwin-nat.c (maybe_cache_shell): Update.
11844 * cp-valprint.c (cp_print_value_fields): Update.
11845 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11846 (gcc_cplus_symbol_address): Update.
11847 * compile/compile-c-symbols.c (gcc_convert_symbol)
11848 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11849 * common/selftest.c: Update.
11850 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11851 a std::string.
11852 (exception_try_scope_entry, exception_try_scope_exit): Don't
11853 declare.
11854 (struct exception_try_scope): Remove.
11855 (TRY): Don't use exception_try_scope.
11856 (struct gdb_exception): Add constructor, operator=.
11857 <what>: New method.
11858 (struct gdb_exception_RETURN_MASK_ALL)
11859 (struct gdb_exception_RETURN_MASK_ERROR)
11860 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11861 (struct gdb_quit_bad_alloc): Update.
11862 * common/common-exceptions.c (exception_none): Change
11863 initializer.
11864 (struct catcher) <state, exception>: Initialize inline.
11865 <prev>: Remove member.
11866 (current_catcher): Remove.
11867 (catchers): New global.
11868 (exceptions_state_mc_init): Simplify.
11869 (catcher_pop): Remove.
11870 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11871 (try_scope_depth, exception_try_scope_entry)
11872 (exception_try_scope_exit): Remove.
11873 (throw_exception_sjlj): Update.
11874 (exception_messages, exception_messages_size): Remove.
11875 (throw_it): Simplify.
11876 (gdb_exception_sliced_copy): Remove.
11877 (throw_exception_cxx): Update.
11878 * cli/cli-script.c (script_from_file): Update.
11879 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11880 Update.
11881 * ada-valprint.c (ada_val_print): Update.
11882 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11883 (create_excep_cond_exprs): Update.
11884
c5c10118
TT
118852019-04-08 Tom Tromey <tom@tromey.com>
11886
11887 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11888 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11889 (TRY, CATCH, END_CATCH): Remove some definitions.
11890 * common/common-exceptions.c: Don't use GDB_XCPT.
11891 (catcher_list_size): Remove.
11892 (throw_exception, throw_it): Simplify.
11893
4de283e4
TT
118942019-04-05 Tom Tromey <tom@tromey.com>
11895
11896 Revert the header-sorting patch.
11897 * ft32-tdep.c: Revert.
11898 * frv-tdep.c: Revert.
11899 * frv-linux-tdep.c: Revert.
11900 * frame.c: Revert.
11901 * frame-unwind.c: Revert.
11902 * frame-base.c: Revert.
11903 * fork-child.c: Revert.
11904 * findvar.c: Revert.
11905 * findcmd.c: Revert.
11906 * filesystem.c: Revert.
11907 * filename-seen-cache.h: Revert.
11908 * filename-seen-cache.c: Revert.
11909 * fbsd-tdep.c: Revert.
11910 * fbsd-nat.h: Revert.
11911 * fbsd-nat.c: Revert.
11912 * f-valprint.c: Revert.
11913 * f-typeprint.c: Revert.
11914 * f-lang.c: Revert.
11915 * extension.h: Revert.
11916 * extension.c: Revert.
11917 * extension-priv.h: Revert.
11918 * expprint.c: Revert.
11919 * exec.h: Revert.
11920 * exec.c: Revert.
11921 * exceptions.c: Revert.
11922 * event-top.c: Revert.
11923 * event-loop.c: Revert.
11924 * eval.c: Revert.
11925 * elfread.c: Revert.
11926 * dwarf2read.h: Revert.
11927 * dwarf2read.c: Revert.
11928 * dwarf2loc.c: Revert.
11929 * dwarf2expr.h: Revert.
11930 * dwarf2expr.c: Revert.
11931 * dwarf2-frame.c: Revert.
11932 * dwarf2-frame-tailcall.c: Revert.
11933 * dwarf-index-write.h: Revert.
11934 * dwarf-index-write.c: Revert.
11935 * dwarf-index-common.c: Revert.
11936 * dwarf-index-cache.h: Revert.
11937 * dwarf-index-cache.c: Revert.
11938 * dummy-frame.c: Revert.
11939 * dtrace-probe.c: Revert.
11940 * disasm.h: Revert.
11941 * disasm.c: Revert.
11942 * disasm-selftests.c: Revert.
11943 * dictionary.c: Revert.
11944 * dicos-tdep.c: Revert.
11945 * demangle.c: Revert.
11946 * dcache.h: Revert.
11947 * dcache.c: Revert.
11948 * darwin-nat.h: Revert.
11949 * darwin-nat.c: Revert.
11950 * darwin-nat-info.c: Revert.
11951 * d-valprint.c: Revert.
11952 * d-namespace.c: Revert.
11953 * d-lang.c: Revert.
11954 * ctf.c: Revert.
11955 * csky-tdep.c: Revert.
11956 * csky-linux-tdep.c: Revert.
11957 * cris-tdep.c: Revert.
11958 * cris-linux-tdep.c: Revert.
11959 * cp-valprint.c: Revert.
11960 * cp-support.c: Revert.
11961 * cp-namespace.c: Revert.
11962 * cp-abi.c: Revert.
11963 * corelow.c: Revert.
11964 * corefile.c: Revert.
11965 * continuations.c: Revert.
11966 * completer.h: Revert.
11967 * completer.c: Revert.
11968 * complaints.c: Revert.
11969 * coffread.c: Revert.
11970 * coff-pe-read.c: Revert.
11971 * cli-out.h: Revert.
11972 * cli-out.c: Revert.
11973 * charset.c: Revert.
11974 * c-varobj.c: Revert.
11975 * c-valprint.c: Revert.
11976 * c-typeprint.c: Revert.
11977 * c-lang.c: Revert.
11978 * buildsym.c: Revert.
11979 * buildsym-legacy.c: Revert.
11980 * build-id.h: Revert.
11981 * build-id.c: Revert.
11982 * btrace.c: Revert.
11983 * bsd-uthread.c: Revert.
11984 * breakpoint.h: Revert.
11985 * breakpoint.c: Revert.
11986 * break-catch-throw.c: Revert.
11987 * break-catch-syscall.c: Revert.
11988 * break-catch-sig.c: Revert.
11989 * blockframe.c: Revert.
11990 * block.c: Revert.
11991 * bfin-tdep.c: Revert.
11992 * bfin-linux-tdep.c: Revert.
11993 * bfd-target.c: Revert.
11994 * bcache.c: Revert.
11995 * ax-general.c: Revert.
11996 * ax-gdb.h: Revert.
11997 * ax-gdb.c: Revert.
11998 * avr-tdep.c: Revert.
11999 * auxv.c: Revert.
12000 * auto-load.c: Revert.
12001 * arm-wince-tdep.c: Revert.
12002 * arm-tdep.c: Revert.
12003 * arm-symbian-tdep.c: Revert.
12004 * arm-pikeos-tdep.c: Revert.
12005 * arm-obsd-tdep.c: Revert.
12006 * arm-nbsd-tdep.c: Revert.
12007 * arm-nbsd-nat.c: Revert.
12008 * arm-linux-tdep.c: Revert.
12009 * arm-linux-nat.c: Revert.
12010 * arm-fbsd-tdep.c: Revert.
12011 * arm-fbsd-nat.c: Revert.
12012 * arm-bsd-tdep.c: Revert.
12013 * arch-utils.c: Revert.
12014 * arc-tdep.c: Revert.
12015 * arc-newlib-tdep.c: Revert.
12016 * annotate.h: Revert.
12017 * annotate.c: Revert.
12018 * amd64-windows-tdep.c: Revert.
12019 * amd64-windows-nat.c: Revert.
12020 * amd64-tdep.c: Revert.
12021 * amd64-sol2-tdep.c: Revert.
12022 * amd64-obsd-tdep.c: Revert.
12023 * amd64-obsd-nat.c: Revert.
12024 * amd64-nbsd-tdep.c: Revert.
12025 * amd64-nbsd-nat.c: Revert.
12026 * amd64-nat.c: Revert.
12027 * amd64-linux-tdep.c: Revert.
12028 * amd64-linux-nat.c: Revert.
12029 * amd64-fbsd-tdep.c: Revert.
12030 * amd64-fbsd-nat.c: Revert.
12031 * amd64-dicos-tdep.c: Revert.
12032 * amd64-darwin-tdep.c: Revert.
12033 * amd64-bsd-nat.c: Revert.
12034 * alpha-tdep.c: Revert.
12035 * alpha-obsd-tdep.c: Revert.
12036 * alpha-nbsd-tdep.c: Revert.
12037 * alpha-mdebug-tdep.c: Revert.
12038 * alpha-linux-tdep.c: Revert.
12039 * alpha-linux-nat.c: Revert.
12040 * alpha-bsd-tdep.c: Revert.
12041 * alpha-bsd-nat.c: Revert.
12042 * aix-thread.c: Revert.
12043 * agent.c: Revert.
12044 * addrmap.c: Revert.
12045 * ada-varobj.c: Revert.
12046 * ada-valprint.c: Revert.
12047 * ada-typeprint.c: Revert.
12048 * ada-tasks.c: Revert.
12049 * ada-lang.c: Revert.
12050 * aarch64-tdep.c: Revert.
12051 * aarch64-ravenscar-thread.c: Revert.
12052 * aarch64-newlib-tdep.c: Revert.
12053 * aarch64-linux-tdep.c: Revert.
12054 * aarch64-linux-nat.c: Revert.
12055 * aarch64-fbsd-tdep.c: Revert.
12056 * aarch64-fbsd-nat.c: Revert.
12057 * aarch32-linux-nat.c: Revert.
12058
d55e5aa6
TT
120592019-04-05 Tom Tromey <tom@tromey.com>
12060
12061 * ft32-tdep.c: Sort headers.
12062 * frv-tdep.c: Sort headers.
12063 * frv-linux-tdep.c: Sort headers.
12064 * frame.c: Sort headers.
12065 * frame-unwind.c: Sort headers.
12066 * frame-base.c: Sort headers.
12067 * fork-child.c: Sort headers.
12068 * findvar.c: Sort headers.
12069 * findcmd.c: Sort headers.
12070 * filesystem.c: Sort headers.
12071 * filename-seen-cache.h: Sort headers.
12072 * filename-seen-cache.c: Sort headers.
12073 * fbsd-tdep.c: Sort headers.
12074 * fbsd-nat.h: Sort headers.
12075 * fbsd-nat.c: Sort headers.
12076 * f-valprint.c: Sort headers.
12077 * f-typeprint.c: Sort headers.
12078 * f-lang.c: Sort headers.
12079 * extension.h: Sort headers.
12080 * extension.c: Sort headers.
12081 * extension-priv.h: Sort headers.
12082 * expprint.c: Sort headers.
12083 * exec.h: Sort headers.
12084 * exec.c: Sort headers.
12085 * exceptions.c: Sort headers.
12086 * event-top.c: Sort headers.
12087 * event-loop.c: Sort headers.
12088 * eval.c: Sort headers.
12089 * elfread.c: Sort headers.
12090 * dwarf2read.h: Sort headers.
12091 * dwarf2read.c: Sort headers.
12092 * dwarf2loc.c: Sort headers.
12093 * dwarf2expr.h: Sort headers.
12094 * dwarf2expr.c: Sort headers.
12095 * dwarf2-frame.c: Sort headers.
12096 * dwarf2-frame-tailcall.c: Sort headers.
12097 * dwarf-index-write.h: Sort headers.
12098 * dwarf-index-write.c: Sort headers.
12099 * dwarf-index-common.c: Sort headers.
12100 * dwarf-index-cache.h: Sort headers.
12101 * dwarf-index-cache.c: Sort headers.
12102 * dummy-frame.c: Sort headers.
12103 * dtrace-probe.c: Sort headers.
12104 * disasm.h: Sort headers.
12105 * disasm.c: Sort headers.
12106 * disasm-selftests.c: Sort headers.
12107 * dictionary.c: Sort headers.
12108 * dicos-tdep.c: Sort headers.
12109 * demangle.c: Sort headers.
12110 * dcache.h: Sort headers.
12111 * dcache.c: Sort headers.
12112 * darwin-nat.h: Sort headers.
12113 * darwin-nat.c: Sort headers.
12114 * darwin-nat-info.c: Sort headers.
12115 * d-valprint.c: Sort headers.
12116 * d-namespace.c: Sort headers.
12117 * d-lang.c: Sort headers.
12118 * ctf.c: Sort headers.
12119 * csky-tdep.c: Sort headers.
12120 * csky-linux-tdep.c: Sort headers.
12121 * cris-tdep.c: Sort headers.
12122 * cris-linux-tdep.c: Sort headers.
12123 * cp-valprint.c: Sort headers.
12124 * cp-support.c: Sort headers.
12125 * cp-namespace.c: Sort headers.
12126 * cp-abi.c: Sort headers.
12127 * corelow.c: Sort headers.
12128 * corefile.c: Sort headers.
12129 * continuations.c: Sort headers.
12130 * completer.h: Sort headers.
12131 * completer.c: Sort headers.
12132 * complaints.c: Sort headers.
12133 * coffread.c: Sort headers.
12134 * coff-pe-read.c: Sort headers.
12135 * cli-out.h: Sort headers.
12136 * cli-out.c: Sort headers.
12137 * charset.c: Sort headers.
12138 * c-varobj.c: Sort headers.
12139 * c-valprint.c: Sort headers.
12140 * c-typeprint.c: Sort headers.
12141 * c-lang.c: Sort headers.
12142 * buildsym.c: Sort headers.
12143 * buildsym-legacy.c: Sort headers.
12144 * build-id.h: Sort headers.
12145 * build-id.c: Sort headers.
12146 * btrace.c: Sort headers.
12147 * bsd-uthread.c: Sort headers.
12148 * breakpoint.h: Sort headers.
12149 * breakpoint.c: Sort headers.
12150 * break-catch-throw.c: Sort headers.
12151 * break-catch-syscall.c: Sort headers.
12152 * break-catch-sig.c: Sort headers.
12153 * blockframe.c: Sort headers.
12154 * block.c: Sort headers.
12155 * bfin-tdep.c: Sort headers.
12156 * bfin-linux-tdep.c: Sort headers.
12157 * bfd-target.c: Sort headers.
12158 * bcache.c: Sort headers.
12159 * ax-general.c: Sort headers.
12160 * ax-gdb.h: Sort headers.
12161 * ax-gdb.c: Sort headers.
12162 * avr-tdep.c: Sort headers.
12163 * auxv.c: Sort headers.
12164 * auto-load.c: Sort headers.
12165 * arm-wince-tdep.c: Sort headers.
12166 * arm-tdep.c: Sort headers.
12167 * arm-symbian-tdep.c: Sort headers.
12168 * arm-pikeos-tdep.c: Sort headers.
12169 * arm-obsd-tdep.c: Sort headers.
12170 * arm-nbsd-tdep.c: Sort headers.
12171 * arm-nbsd-nat.c: Sort headers.
12172 * arm-linux-tdep.c: Sort headers.
12173 * arm-linux-nat.c: Sort headers.
12174 * arm-fbsd-tdep.c: Sort headers.
12175 * arm-fbsd-nat.c: Sort headers.
12176 * arm-bsd-tdep.c: Sort headers.
12177 * arch-utils.c: Sort headers.
12178 * arc-tdep.c: Sort headers.
12179 * arc-newlib-tdep.c: Sort headers.
12180 * annotate.h: Sort headers.
12181 * annotate.c: Sort headers.
12182 * amd64-windows-tdep.c: Sort headers.
12183 * amd64-windows-nat.c: Sort headers.
12184 * amd64-tdep.c: Sort headers.
12185 * amd64-sol2-tdep.c: Sort headers.
12186 * amd64-obsd-tdep.c: Sort headers.
12187 * amd64-obsd-nat.c: Sort headers.
12188 * amd64-nbsd-tdep.c: Sort headers.
12189 * amd64-nbsd-nat.c: Sort headers.
12190 * amd64-nat.c: Sort headers.
12191 * amd64-linux-tdep.c: Sort headers.
12192 * amd64-linux-nat.c: Sort headers.
12193 * amd64-fbsd-tdep.c: Sort headers.
12194 * amd64-fbsd-nat.c: Sort headers.
12195 * amd64-dicos-tdep.c: Sort headers.
12196 * amd64-darwin-tdep.c: Sort headers.
12197 * amd64-bsd-nat.c: Sort headers.
12198 * alpha-tdep.c: Sort headers.
12199 * alpha-obsd-tdep.c: Sort headers.
12200 * alpha-nbsd-tdep.c: Sort headers.
12201 * alpha-mdebug-tdep.c: Sort headers.
12202 * alpha-linux-tdep.c: Sort headers.
12203 * alpha-linux-nat.c: Sort headers.
12204 * alpha-bsd-tdep.c: Sort headers.
12205 * alpha-bsd-nat.c: Sort headers.
12206 * aix-thread.c: Sort headers.
12207 * agent.c: Sort headers.
12208 * addrmap.c: Sort headers.
12209 * ada-varobj.c: Sort headers.
12210 * ada-valprint.c: Sort headers.
12211 * ada-typeprint.c: Sort headers.
12212 * ada-tasks.c: Sort headers.
12213 * ada-lang.c: Sort headers.
12214 * aarch64-tdep.c: Sort headers.
12215 * aarch64-ravenscar-thread.c: Sort headers.
12216 * aarch64-newlib-tdep.c: Sort headers.
12217 * aarch64-linux-tdep.c: Sort headers.
12218 * aarch64-linux-nat.c: Sort headers.
12219 * aarch64-fbsd-tdep.c: Sort headers.
12220 * aarch64-fbsd-nat.c: Sort headers.
12221 * aarch32-linux-nat.c: Sort headers.
12222
699bd4cf
TT
122232019-04-04 Tom Tromey <tom@tromey.com>
12224
12225 * varobj.c (varobj_create): Update.
12226 * rust-exp.y (struct rust_parser) <update_innermost_block,
12227 lookup_symbol>: New methods.
12228 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12229 Rename.
12230 (rust_parser::rust_lookup_type)
12231 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12232 * printcmd.c (display_command, do_one_display): Update.
12233 * parser-defs.h (struct parser_state) <parser_state>: Add
12234 "tracker" parameter.
12235 (block_tracker): New member.
12236 (class innermost_block_tracker) <innermost_block_tracker>: Add
12237 "types" parameter.
12238 <reset>: Remove method.
12239 (innermost_block): Don't declare.
12240 (null_post_parser): Update.
12241 * parse.c (innermost_block): Remove global.
12242 (write_dollar_variable): Update.
12243 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12244 Remove "tracker_types" parameter.
12245 (parse_expression): Add "tracker" parameter.
12246 (parse_expression_for_completion): Update.
12247 (null_post_parser): Add "tracker" parameter.
12248 * p-exp.y: Update rules.
12249 * m2-exp.y: Update rules.
12250 * language.h (struct language_defn) <la_post_parser>: Add
12251 "tracker" parameter.
12252 * go-exp.y: Update rules.
12253 * f-exp.y: Update rules.
12254 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12255 parameter.
12256 * d-exp.y: Update rules.
12257 * c-exp.y: Update rules.
12258 * breakpoint.c (set_breakpoint_condition): Create an
12259 innermost_block_tracker.
12260 (watch_command_1): Likewise.
12261 * ada-lang.c (resolve): Add "tracker" parameter.
12262 (resolve_subexp): Likewise.
12263 * ada-exp.y (write_var_from_sym): Update.
12264
dac43e32
TT
122652019-04-04 Tom Tromey <tom@tromey.com>
12266
12267 * type-stack.h: New file.
12268 * type-stack.c: New file.
12269 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12270 type-stack.h.
12271 (insert_into_type_stack, insert_type, push_type, push_type_int)
12272 (insert_type_address_space, pop_type, pop_type_int)
12273 (pop_typelist, pop_type_stack, append_type_stack)
12274 (push_type_stack, get_type_stack, push_typelist)
12275 (follow_type_instance_flags, follow_types): Don't declare.
12276 * parse.c (type_stack): Remove global.
12277 (parse_exp_in_context): Update.
12278 (insert_into_type_stack, insert_type, push_type, push_type_int)
12279 (insert_type_address_space, pop_type, pop_type_int)
12280 (pop_typelist, pop_type_stack, append_type_stack)
12281 (push_type_stack, get_type_stack, push_typelist)
12282 (follow_type_instance_flags, follow_types): Remove (moved to
12283 type-stack.c).
12284 * f-exp.y (type_stack): New global.
12285 Update rules.
12286 (push_kind_type, f_parse): Update.
12287 * d-exp.y (type_stack): New global.
12288 Update rules.
12289 (d_parse): Update.
12290 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12291 Update rules.
12292 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12293 (HFILES_NO_SRCDIR): Add type-stack.h.
12294
2a612529
TT
122952019-04-04 Tom Tromey <tom@tromey.com>
12296
12297 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12298 (rust_parser::convert_ast_to_expression, rust_parse)
12299 (rust_lex_test_completion, rust_lex_tests): Update.
12300 * parser-defs.h (struct expr_completion_state): New.
12301 (struct parser_state) <parser_state>: Add completion parameter.
12302 <mark_struct_expression, mark_completion_tag>: New methods.
12303 <parse_completion, m_completion_state>: New members.
12304 (prefixify_expression, null_post_parser): Update.
12305 (mark_struct_expression, mark_completion_tag): Don't declare.
12306 * parse.c (parse_completion, expout_last_struct)
12307 (expout_tag_completion_type, expout_completion_name): Remove
12308 globals.
12309 (parser_state::mark_struct_expression)
12310 (parser_state::mark_completion_tag): Now methods.
12311 (prefixify_expression): Add last_struct parameter.
12312 (prefixify_subexp): Likewise.
12313 (parse_exp_1): Update.
12314 (parse_exp_in_context): Add cstate parameter. Update.
12315 (parse_expression_for_completion): Create an
12316 expr_completion_state.
12317 (null_post_parser): Add "completion" parameter.
12318 * p-exp.y: Update rules.
12319 (yylex): Update.
12320 * language.h (struct language_defn) <la_post_parser>: Add
12321 "completing" parameter.
12322 * go-exp.y: Update rules.
12323 (lex_one_token): Update.
12324 * expression.h (parse_completion): Don't declare.
12325 * d-exp.y: Update rules.
12326 (lex_one_token): Update rules.
12327 * c-exp.y: Update rules.
12328 (lex_one_token): Update.
12329 * ada-lang.c (resolve): Add "parse_completion" parameter.
12330 (resolve_subexp): Likewise.
12331 (ada_resolve_function): Likewise.
12332
43476f0b
TT
123332019-04-04 Tom Tromey <tom@tromey.com>
12334
12335 * parser-defs.h (struct parser_state) <start_arglist,
12336 end_arglist>: New methods.
12337 <arglist_len, m_funcall_chain>: New members.
12338 (arglist_len, start_arglist, end_arglist): Don't declare.
12339 * parse.c (arglist_len, funcall_chain): Remove global.
12340 (start_arglist, end_arglist): Remove functions.
12341 (parse_exp_in_context): Update.
12342 * p-exp.y: Update rules.
12343 * m2-exp.y: Update rules.
12344 * go-exp.y: Update rules.
12345 * f-exp.y: Update rules.
12346 * d-exp.y: Update rules.
12347 * c-exp.y: Update rules.
12348
5776fca3
TT
123492019-04-04 Tom Tromey <tom@tromey.com>
12350
12351 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12352 lex_operator, push_back>: New methods.
12353 Update all rules.
12354 (rust_parser::lex_hex, lex_escape): Rename and update.
12355 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12356 (rust_parser::lex_operator): Rename and update.
12357 (rust_parser::lex_number, rustyylex, rustyyerror)
12358 (rust_lex_test_init, rust_lex_test_sequence)
12359 (rust_lex_test_push_back, rust_lex_tests): Update.
12360 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12361 parameter.
12362 <lexptr, prev_lexptr>: New members.
12363 (lexptr, prev_lexptr): Don't declare.
12364 * parse.c (lexptr, prev_lexptr): Remove globals.
12365 (parse_exp_in_context): Update.
12366 * p-exp.y (yylex, yyerror): Update.
12367 * m2-exp.y (parse_number, yylex, yyerror): Update.
12368 * go-exp.y (lex_one_token, yyerror): Update.
12369 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12370 * d-exp.y (lex_one_token, yyerror): Update.
12371 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12372 (lex_one_token, yyerror): Update.
12373 * ada-lex.l (YY_INPUT): Update.
12374 (rewind_to_char): Update.
12375 * ada-exp.y (yyerror): Update.
12376
8621b685
TT
123772019-04-04 Tom Tromey <tom@tromey.com>
12378
12379 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12380 * parser-defs.h (struct parser_state) <parser_state>: Add new
12381 parameter.
12382 <comma_terminates>: New member.
12383 (comma_terminates): Don't declare global.
12384 * parse.c (comma_terminates): Remove global.
12385 (parse_exp_in_context): Update.
12386 * p-exp.y (yylex): Update.
12387 * m2-exp.y (yylex): Update.
12388 * go-exp.y (lex_one_token): Update.
12389 * f-exp.y (yylex): Update.
12390 * d-exp.y (lex_one_token): Update.
12391 * c-exp.y (lex_one_token): Update.
12392 * ada-lex.l: Update.
12393
28aaf3fd
TT
123942019-04-04 Tom Tromey <tom@tromey.com>
12395
12396 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12397 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12398 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12399 * parser-defs.h (paren_depth): Don't declare.
12400 * parse.c (paren_depth): Remove global.
12401 (parse_exp_in_context): Update.
12402 * p-exp.y (paren_depth): New global.
12403 (pascal_parse): Initialize it.
12404 * m2-exp.y (paren_depth): New global.
12405 (m2_parse): Initialize it.
12406 * go-exp.y (paren_depth): New global.
12407 (go_parse): Initialize it.
12408 * f-exp.y (paren_depth): New global.
12409 (f_parse): Initialize it.
12410 * d-exp.y (paren_depth): New global.
12411 (d_parse): Initialize it.
12412 * c-exp.y (paren_depth): New global.
12413 (c_parse): Initialize it.
12414 * ada-lex.l (paren_depth): New global.
12415 (lexer_init): Initialize it.
12416
1e58a4a4
TT
124172019-04-04 Tom Tromey <tom@tromey.com>
12418
12419 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12420 (rust_parser::convert_ast_to_type)
12421 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12422 * parser-defs.h (struct parser_state) <parser_state>: Add
12423 parameters. Initialize new members.
12424 <expression_context_block, expression_context_pc>: New members.
12425 * parse.c (expression_context_block, expression_context_pc):
12426 Remove globals.
12427 (parse_exp_in_context): Update.
12428 * p-exp.y: Update all rules.
12429 (yylex): Update.
12430 * m2-exp.y: Update all rules.
12431 (yylex): Update.
12432 * go-exp.y (yylex): Update.
12433 * f-exp.y (yylex): Update.
12434 * d-exp.y: Update all rules.
12435 (yylex): Update.
12436 * c-exp.y: Update all rules.
12437 (lex_one_token, classify_name, yylex, c_parse): Update.
12438 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12439
37eedb39
TT
124402019-04-04 Tom Tromey <tom@tromey.com>
12441
12442 * gdbarch.h, gdbarch.c: Rebuild.
12443 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12444 * stap-probe.h:
12445 (struct stap_parse_info): Replace "parser_state" with
12446 "expr_builder".
12447 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12448 (parser_state): New class.
12449 * parse.c (expr_builder): Rename.
12450 (expr_builder::release): Rename.
12451 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12452 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12453 (write_exp_elt_longcst, write_exp_elt_floatcst)
12454 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12455 (write_exp_string_vector, write_exp_bitstring)
12456 (write_exp_msymbol, mark_struct_expression)
12457 (write_dollar_variable)
12458 (insert_type_address_space, increase_expout_size): Replace
12459 "parser_state" with "expr_builder".
12460 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12461 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12462 "parser_state" with "expr_builder".
12463
73923d7e
TT
124642019-04-04 Tom Tromey <tom@tromey.com>
12465
12466 * rust-exp.y: Replace "parse_language" with method call.
12467 * p-exp.y:
12468 (yylex): Replace "parse_language" with method call.
12469 * m2-exp.y:
12470 (yylex): Replace "parse_language" with method call.
12471 * go-exp.y (classify_name): Replace "parse_language" with method
12472 call.
12473 * f-exp.y (yylex): Replace "parse_language" with method call.
12474 * d-exp.y (lex_one_token): Replace "parse_language" with method
12475 call.
12476 * c-exp.y:
12477 (lex_one_token, classify_name, yylex): Replace "parse_language"
12478 with method call.
12479 * ada-exp.y (find_primitive_type, type_char)
12480 (type_system_address): Replace "parse_language" with method call.
12481
fa9f5be6
TT
124822019-04-04 Tom Tromey <tom@tromey.com>
12483
12484 * rust-exp.y: Replace "parse_gdbarch" with method call.
12485 * parse.c (write_dollar_variable, insert_type_address_space):
12486 Replace "parse_gdbarch" with method call.
12487 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12488 call.
12489 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12490 call.
12491 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12492 "parse_gdbarch" with method call.
12493 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12494 with method call.
12495 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12496 "parse_gdbarch" with method call.
12497 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12498 "parse_gdbarch" with method call.
12499 * c-exp.y (parse_type, parse_number, classify_name): Replace
12500 "parse_gdbarch" with method call.
12501 * ada-lex.l: Replace "parse_gdbarch" with method call.
12502 * ada-exp.y (parse_type, find_primitive_type, type_char)
12503 (type_system_address): Replace "parse_gdbarch" with method call.
12504
1201a264
TT
125052019-04-04 Tom Tromey <tom@tromey.com>
12506
12507 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12508 * stap-probe.c (stap_parse_argument): Update.
12509 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12510 initial_size parameter.
12511 * rust-exp.y (rust_lex_tests): Update.
12512 * parse.c (parser_state): Update.
12513 (parse_exp_in_context): Update.
12514 * parser-defs.h (struct parser_state) <parser_state>: Remove
12515 "initial_size" parameter.
12516
e3980ce2
TT
125172019-04-04 Tom Tromey <tom@tromey.com>
12518
12519 * parser-defs.h (increase_expout_size): Don't declare.
12520 * parse.c (increase_expout_size): Now static.
12521
e9f8e3f1
TS
125222019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12523
12524 * gnu-nat.c (gnu_nat_target::wait): Fix
12525 target_waitstatus_to_string call.
12526
d7df6549
AB
125272019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12528
12529 * eval.c (evaluate_subexp_standard): Handle internal functions
12530 during Fortran function call handling.
12531
8bdc1658
AB
125322019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12533
12534 * NEWS: Mention new internal functions.
12535 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12536 (read_base_type): Use dwarf2_init_complex_target_type.
12537 * value.c (creal_internal_fn): New function.
12538 (cimag_internal_fn): New function.
12539 (_initialize_values): Register new internal functions.
12540
c29705b7
PW
125412019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12542
12543 * infrun.c (stop_all_threads): If debug_infrun, always
12544 trace the wait status after wait_one, using
12545 target_waitstatus_to_string and target_pid_to_str.
12546 (handle_inferior_event): Replace various trace of
12547 wait status kind by a single trace.
12548 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12549 wait status kind image by target_waitstatus_to_string.
12550 * target/waitstatus.c (target_waitstatus_to_string): Fix
12551 obsolete comment.
12552
05caa1d2
TT
125532019-04-01 Tom Tromey <tromey@adacore.com>
12554
12555 PR symtab/23331:
12556 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12557
9d1447e0
SDJ
125582019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12559 Pedro Alves <palves@redhat.com>
12560
12561 * top.c (quit_force): Call 'finalize_values'.
12562 * value.c (finalize_values): New function.
12563 * value.h (finalize_values): Declare.
12564
7734102d
EZ
125652019-03-30 Eli Zaretskii <eliz@gnu.org>
12566
12567 * NEWS: Announce $_gdb_major and $_gdb_minor.
12568
12569 * top.c (init_gdb_version_vars): New function.
12570 (gdb_init): Call init_gdb_version_vars.
12571
188e1fa9
TT
125722019-03-29 Tom Tromey <tromey@adacore.com>
12573
12574 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12575 help text. Remove dead code.
12576
2880242d
KS
125772019-03-29 Keith Seitz <keiths@redhat.com>
12578
12579 From Siddhesh Poyarekar:
12580 * f-lang.h (f77_get_upperbound): Return LONGEST.
12581 (f77_get_lowerbound): Likewise.
12582 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12583 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12584 print them.
12585 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12586 plongest to format print it.
12587 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12588 (f77_get_upperbound): Likewise.
12589 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12590 LOWER_BOUND to LONGEST.
12591 (f77_create_arrayprint_offset_tbl): Likewise.
12592
cc1defb1
KS
125932019-03-29 Keith Seitz <keiths@redhat.com>
12594
12595 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12596 %s/pulongest for TYPE_LENGTH instead of %d in format
12597 strings.
12598 * ada-typerint.c (ada_print_type): Likewise.
12599 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12600 * compile/compile-c-support.c (generate_register_struct): Likewise.
12601 * gdbtypes.c (recursive_dump_type): Likewise.
12602 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12603 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12604 instead of %d in format strings.
12605 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12606 to std::min to ULONGEST.
12607 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12608 instead of %d in format strings.
12609 * tracepoint.c (info_scope_command): Likewise.
12610 * typeprint.c (print_offset_data::update)
12611 (print_offset_data::finish): Likewise.
12612 * xtensa-tdep.c (xtensa_store_return_value)
12613 (xtensa_push_dummy_call): Likewise.
12614
e432ccf1
JT
126152019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12616
12617 * windows-nat.c (display_selector): Fixed format specifications
12618 for 64-bit Cygwin.
12619
65d2b333
PW
126202019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12621
12622 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12623
f489207e
SL
126242019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12625
12626 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12627 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12628 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12629 (nios2_linux_init_abi): Install it.
12630
bffa1015
AH
126312019-03-28 Alan Hayward <alan.hayward@arm.com>
12632
12633 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12634
fc96163a
AH
126352019-03-28 Alan Hayward <alan.hayward@arm.com>
12636
12637 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12638
20dc7e9b
PW
126392019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12640 Tom Tromey <tromey@adacore.com>
12641
12642 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12643
7f5331a8
JB
126442019-03-26 Joel Brobecker <brobecker@adacore.com>
12645
12646 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12647 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12648 method to compute the bounds of range types. Also print "[evaluated]"
12649 if the bounds' values come from a dynamic evaluation.
12650
18c77628
AB
126512019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12652
12653 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12654 whitespace when pretty printing is on.
12655
53c973f2
AH
126562019-03-26 Alan Hayward <alan.hayward@arm.com>
12657
e79be6e5 12658 * ppc-linux-nat.c: Add include.
53c973f2 12659
d851aa71
AH
126602019-03-26 Alan Hayward <alan.hayward@arm.com>
12661
e79be6e5 12662 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12663
2fe7bab7
AH
126642019-03-26 Alan Hayward <alan.hayward@arm.com>
12665
e79be6e5 12666 * arm-linux-nat.c: Add include.
2fe7bab7 12667
068ef30e
SM
126682019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12669
12670 * source-cache.c (source_cache::get_source_lines): Re-read
12671 fullname after calling open_source_file.
12672
81a24d04
JB
126732019-03-25 John Baldwin <jhb@FreeBSD.org>
12674
12675 * NEWS: Mention TLS support for FreeBSD.
12676
79e7ae11
TT
126772019-03-25 Tom Tromey <tromey@adacore.com>
12678
12679 * minsyms.c (BUNCH_SIZE): Update comment.
12680 (~minimal_symbol_reader): Remove old comment.
12681 (compact_minimal_symbols): Update comment.
12682 (minimal_symbol_reader::install): Remove old comment. Update
12683 other comments.
12684
d45963c2
AH
126852019-03-25 Alan Hayward <alan.hayward@arm.com>
12686
12687 * s390-linux-nat.c: Add include.
12688
0f83012e
AH
126892019-03-25 Alan Hayward <alan.hayward@arm.com>
12690
12691 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12692 Call linux_get_hwcap.
12693 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12694 Likewise.
12695 (aarch64_linux_get_hwcap): Remove function.
12696 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12697 declaration.
12698 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12699 linux_get_hwcap.
12700 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12701 * linux-tdep.c (linux_get_hwcap): Add function.
12702 (linux_get_hwcap2): Likewise.
12703 * linux-tdep.h (linux_get_hwcap): Add declaration.
12704 (linux_get_hwcap2): Likewise.
12705 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12706 (ppc_linux_get_hwcap2): Likewise.
12707 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12708 linux_get_hwcap.
12709 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12710 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12711 (ppc_linux_nat_target::read_description): Likewise.
12712 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12713 * s390-linux-nat.c: Likewise.
12714 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12715
6640a367
TT
127162019-03-24 Tom Tromey <tom@tromey.com>
12717
12718 * ada-lang.c (standard_lookup): Simplify initialization.
12719 (ada_lookup_symbol_nonlocal): Simplify return.
12720 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12721 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12722 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12723 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12724 initialization.
12725 * solib.c (solib_global_lookup): Simplify.
12726 * symtab.c (null_block_symbol): Remove.
12727 (symbol_cache_lookup): Simplify returns.
12728 (lookup_language_this): Simplify returns.
12729 (lookup_symbol_aux): Simplify return.
12730 (lookup_local_symbol): Simplify returns.
12731 (lookup_global_symbol_from_objfile): Simplify return.
12732 (lookup_symbol_in_objfile_symtabs)
12733 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12734 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12735 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12736 * cp-namespace.c (cp_lookup_bare_symbol)
12737 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12738 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12739 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12740 (cp_lookup_symbol_via_imports): Simplify initialization.
12741 (find_symbol_in_baseclass): Likewise.
12742 * symtab.h (null_block_symbol): Remove.
12743 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12744 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12745 (d_lookup_symbol_module): Likewise.
12746 (find_symbol_in_baseclass): Simplify initialization.
12747
a930ebcd
TT
127482019-03-24 Tom Tromey <tom@tromey.com>
12749
12750 * expression.h: Don't include symtab.h.
12751 (struct block): Forward declare.
12752
582942f4
TT
127532019-03-24 Tom Tromey <tom@tromey.com>
12754
12755 * c-exp.y (typebase): Remove casts.
12756 * gdbtypes.c (lookup_unsigned_typename, )
12757 (lookup_signed_typename): Remove cast.
12758 * eval.c (parse_to_comma_and_eval): Remove cast.
12759 * parse.c (write_dollar_variable): Remove cast.
12760 * block.h (struct block) <superblock>: Now const.
12761 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12762 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12763 (map_block): Make "block" const.
12764 * symfile.h (struct quick_symbol_functions)
12765 <map_matching_symbols>: Constify block argument to "callback".
12766 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12767 const.
12768 (find_pc_sect_compunit_symtab): Make "b" const.
12769 (find_symbol_at_address): Likewise.
12770 (search_symbols): Likewise.
12771 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12772 (dw2_debug_names_lookup_symbol): Likewise.
12773 (dw2_map_matching_symbols): Update.
12774 * p-valprint.c (pascal_val_print): Remove "block".
12775 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12776 (aux_add_nonlocal_symbols): Make "block" const.
12777 (resolve_subexp): Remove cast.
12778 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12779 const.
12780 (iterate_over_file_blocks): Likewise.
12781 * f-exp.y (%union) <bval>: Remove.
12782 * coffread.c (patch_opaque_types): Make "b" const.
12783 * spu-tdep.c (spu_catch_start): Make "block" const.
12784 * c-valprint.c (print_unpacked_pointer): Remove "block".
12785 * symmisc.c (dump_symtab_1): Make "b" const.
12786 (block_depth): Make "block" const.
12787 * d-exp.y (%union) <bval>: Remove.
12788 * cp-support.h (cp_lookup_rtti_type): Update.
12789 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12790 * psymtab.c (psym_lookup_symbol): Make "block" const.
12791 (maintenance_check_psymtabs): Make "b" const.
12792 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12793 (enumerate_locals, enumerate_args): Update.
12794 * python/py-symtab.c (stpy_global_block): Make "block" const.
12795 (stpy_static_block): Likewise.
12796 * inline-frame.c (block_starting_point_at): Make "new_block"
12797 const.
12798 * block.c (find_block_in_blockvector): Make return type const.
12799 (blockvector_for_pc_sect): Make "b" const.
12800 (find_block_in_blockvector): Make "b" const.
12801
7ad417dd
TT
128022019-03-23 Tom Tromey <tom@tromey.com>
12803
12804 * varobj.c (varobj_create): Update.
12805 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12806 * printcmd.c (display_command, do_one_display): Don't reset
12807 innermost_block.
12808 * parser-defs.h (enum innermost_block_tracker_type): Move to
12809 expression.h.
12810 (innermost_block): Update comment.
12811 * parse.c (parse_exp_1): Add tracker_types parameter.
12812 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12813 tracker_types parameter. Reset innermost_block.
12814 (parse_exp_in_context): Remove.
12815 (parse_expression_for_completion): Update.
12816 * objfiles.c (~objfile): Don't reset expression_context_block or
12817 innermost_block.
12818 * expression.h (enum innermost_block_tracker_type): Move from
12819 parser-defs.h.
12820 (parse_exp_1): Add tracker_types parameter.
12821 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12822 reset innermost_block.
12823
b366c208
TT
128242019-03-23 Tom Tromey <tom@tromey.com>
12825
12826 * objfiles.h: Include bcache.h.
12827
9bb9b2f9
TT
128282019-03-23 Tom Tromey <tom@tromey.com>
12829
12830 * linespec.c (get_current_search_block): Use
12831 scoped_restore_current_language.
12832 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12833
59c28372
AH
128342019-03-22 Alan Hayward <alan.hayward@arm.com>
12835 Jiong Wang <jiong.wang@arm.com>
12836
12837 * aarch64-linux-tdep.c
12838 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12839 section.
12840 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12841
17e116a7
AH
128422019-03-22 Alan Hayward <alan.hayward@arm.com>
12843 Jiong Wang <jiong.wang@arm.com>
12844
12845 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12846 instructions.
12847 (aarch64_analyze_prologue_test): Add PACIASP test.
12848 (aarch64_prologue_prev_register): Unmask PC value.
12849
11e1b75f
AH
128502019-03-22 Alan Hayward <alan.hayward@arm.com>
12851 Jiong Wang <jiong.wang@arm.com>
12852
12853 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12854 (aarch64_dwarf2_prev_register): Unmask PC value.
12855 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12856 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12857 DW_CFA_AARCH64_negate_ra_state.
12858 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12859
34dcc7cf
AH
128602019-03-22 Alan Hayward <alan.hayward@arm.com>
12861 Jiong Wang <jiong.wang@arm.com>
12862
12863 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12864 registers.
12865 (aarch64_pseudo_register_name): Likewise.
12866 (aarch64_pseudo_register_type): Likewise.
12867 (aarch64_pseudo_register_reggroup_p): Likewise.
12868 (aarch64_gdbarch_init): Add pauth registers.
12869 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12870 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12871 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12872 (struct gdbarch_tdep): Add regnum for ra_state.
12873
1ef53e6b
AH
128742019-03-22 Alan Hayward <alan.hayward@arm.com>
12875 Jiong Wang <jiong.wang@arm.com>
12876
12877 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12878
76bed0fd
AH
128792019-03-22 Alan Hayward <alan.hayward@arm.com>
12880 Jiong Wang <jiong.wang@arm.com>
12881
12882 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12883 function.
12884 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12885 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12886 (aarch64_gdbarch_init): Add puth registers.
12887 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12888 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12889 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12890
ee4fbcfa
AH
128912019-03-22 Alan Hayward <alan.hayward@arm.com>
12892 Jiong Wang <jiong.wang@arm.com>
12893
12894 * aarch64-linux-nat.c
12895 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12896 * aarch64-linux-tdep.c
12897 (aarch64_linux_core_read_description): Likewise.
12898 (aarch64_linux_get_hwcap): New function.
12899 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12900 (aarch64_linux_get_hwcap): New declaration.
12901
6dc0ebde
AH
129022019-03-22 Alan Hayward <alan.hayward@arm.com>
12903 Jiong Wang <jiong.wang@arm.com>
12904
12905 * aarch64-linux-nat.c
12906 (aarch64_linux_nat_target::read_description): Add pauth param.
12907 * aarch64-linux-tdep.c
12908 (aarch64_linux_core_read_description): Likewise.
12909 * aarch64-tdep.c (struct target_desc): Add in pauth.
12910 (aarch64_read_description): Add pauth param.
12911 (aarch64_gdbarch_init): Likewise.
12912 * aarch64-tdep.h (aarch64_read_description): Likewise.
12913 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12914 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12915 * features/Makefile: Add new files.
12916 * features/aarch64-pauth.c: New file.
12917 * features/aarch64-pauth.xml: New file.
12918
595915c1
TT
129192019-03-20 Tom Tromey <tromey@adacore.com>
12920
12921 * infrun.c (handle_inferior_event): Rename from
12922 handle_inferior_event_1. Create a scoped_value_mark.
12923 (handle_inferior_event): Remove.
12924
4c7d57e7
TT
129252019-03-19 Tom Tromey <tromey@adacore.com>
12926
12927 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12928 * infrun.h (print_stop_event): Add "displays" parameter.
12929 * infrun.c (print_stop_event): Add "displays" parameter.
12930
cb246234
PA
129312019-03-19 Pedro Alves <palves@redhat.com>
12932
12933 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12934 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12935 to -1. Fix TABs vs spaces.
12936 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12937 * tui/tui-out.h (tui_ui_out) Add intro comments.
12938 <m_line, m_start_of_line>: In-class initialize, and add describing
12939 comment.
12940
3a0e45b2
AH
129412019-03-18 Alan Hayward <alan.hayward@arm.com>
12942
12943 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12944 variable names.
12945 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12946
5371b850
PA
129472019-03-18 Pedro Alves <palves@redhat.com>
12948 Eli Zaretskii <eliz@gnu.org>
12949
12950 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12951 m_line and m_start_of_line.
12952
b17c4cd0
EZ
129532019-03-18 Eli Zaretskii <eliz@gnu.org>
12954
12955 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12956 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12957 it returns a newline. This fixes a regression in TU mode, whereby
12958 the next line is output on the same screen line as the user input.
12959
4bd56d18
TT
129602019-03-18 Tom Tromey <tromey@adacore.com>
12961
12962 * minsyms.c (minimal_symbol_reader::install): Remove call to
12963 obstack_blank.
12964
55c10aca
PA
129652019-03-18 Pedro Alves <palves@redhat.com>
12966
12967 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12968 New globals.
12969 (apply_style): New, factored out from ...
12970 (apply_ansi_escape): ... this. Handle reverse video mode.
12971 (tui_set_reverse_mode): New function.
12972 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12973 * tui/tui-winsource.c (tui_show_source_line): Use
12974 tui_set_reverse_mode instead of setting A_STANDOUT.
12975 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12976 New setter methods.
12977
647bb750
HD
129782019-03-18 Hannes Domani <ssbssa@yahoo.de>
12979
12980 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12981 Handle tabs.
12982
bff8c71f
TT
129832019-03-18 Tom Tromey <tromey@adacore.com>
12984
12985 * ada-lang.c (empty_array): Add "high" parameter.
12986 (ada_evaluate_subexp): Update.
12987
58785d98
ST
129882019-03-17 Sergei Trofimovich <siarheit@google.com>
12989
12990 * unittests/string_view-selftests.c: Define
12991 _initialize_string_view_selftests unconditionally.
12992
d4cbef22
ВМ
129932019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12994
12995 PR gdb/24350
12996 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12997
fce4c071
ВМ
129982019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12999
13000 PR gdb/24351
13001 * windows-nat.c (display_selector): Fix format specifiers.
13002
f7f0a123
EZ
130032019-03-17 Eli Zaretskii <eliz@gnu.org>
13004
13005 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13006 tui_refill_source_window instead of tui_refresh_win, to update the
13007 current execution line. This fixes redisplay of the current line
13008 when stepping through the code with "next" or "step".
13009
ab42892f
EZ
130102019-03-16 Eli Zaretskii <eliz@gnu.org>
13011
13012 * source-cache.c (source_cache::get_source_lines): Call
13013 find_source_lines to initialize s->nlines. This fixes vertical
13014 scrolling of TUI source window when the DOWN arrow is pressed.
13015
8d8c087f
PW
130162019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13017
13018 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13019 linux-thread-db.c (_initialize_thread_db): Likewise.
13020
798e1c30
EZ
130212019-03-16 Eli Zaretskii <eliz@gnu.org>
13022
13023 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13024 wclrtoeol in tui_show_source_line". This reverts changes made in
13025 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13026
eefba3da
TT
130272019-03-15 Tom Tromey <tom@tromey.com>
13028
13029 * symtab.h (struct minimal_symbol): Derive from
13030 general_symbol_info.
13031 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13032 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13033 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13034 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13035 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13036 (MSYMBOL_SEARCH_NAME): Update.
13037 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13038 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13039 * minsyms.c (minimal_symbol_reader::record_full): Update.
13040
0de2420c
TT
130412019-03-15 Tom Tromey <tom@tromey.com>
13042
13043 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13044
042d75e4
TT
130452019-03-15 Tom Tromey <tom@tromey.com>
13046
13047 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13048 unique_xmalloc_ptr.
13049 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13050 Update.
13051 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13052 (build_minimal_symbol_hash_tables)
13053 (minimal_symbol_reader::install): Update.
13054
db92718b
TT
130552019-03-15 Tom Tromey <tom@tromey.com>
13056
13057 * symtab.c (create_demangled_names_hash): Update.
13058 (symbol_set_names): Update.
13059 * objfiles.h (struct objfile_per_bfd_storage)
13060 <demangled_names_hash>: Now an htab_up.
13061 * objfiles.c (objfile_per_bfd_storage): Simplify.
13062
d6797f46
TT
130632019-03-15 Tom Tromey <tom@tromey.com>
13064
13065 * objfiles.h (struct objfile_per_bfd_storage): Declare
13066 destructor.
13067 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13068 New.
13069 (get_objfile_bfd_data): Use new. Don't initialize
13070 language_of_main.
13071 (free_objfile_per_bfd_storage): Remove.
13072 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13073
741d7538
TT
130742019-03-15 Tom Tromey <tom@tromey.com>
13075
13076 * symfile.c (reread_symbols): Update.
13077 * objfiles.c (objfile::objfile): Update.
13078 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13079 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13080 comment.
13081 (minimal_symbol_reader::install): Update.
13082 (terminate_minimal_symbol_table): Remove.
13083 * jit.c (jit_object_close_impl): Update.
13084
788c80d1
TT
130852019-03-15 Tom Tromey <tom@tromey.com>
13086
13087 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13088 initializations.
13089
1b7a07cb
TT
130902019-03-15 Tom Tromey <tom@tromey.com>
13091
13092 * objfiles.h (struct objfile_per_bfd_storage)
13093 <demangled_hash_languages>: Now a bitset.
13094 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13095 (lookup_minimal_symbol): Update.
13096
3db066bc
TT
130972019-03-15 Tom Tromey <tom@tromey.com>
13098
13099 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13100 Don't return the symbol.
13101 * coffread.c (record_minimal_symbol): Use record_full.
13102
3fff2c37
EZ
131032019-03-14 Eli Zaretskii <eliz@gnu.org>
13104
13105 The MS-Windows port of ncurses fails to switch to a color pair if
13106 one or both of the colors are the implicit default colors. This
13107 change records the default colors when TUI is initialized, and
13108 then specifies them explicitly when a color pair uses the default
13109 colors. This allows color styling in TUI mode on MS-Windows.
13110
13111 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13112 ncurses_norm_attr.
13113 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13114 colors in ncurses_norm_attr.
13115 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13116 "none", replace it with the default color recorded in
13117 ncurses_norm_attr.
13118
3b336828
TT
131192019-03-14 Tom Tromey <tromey@adacore.com>
13120
13121 * source-cache.h (class source_cache) <get_source_lines>: Return
13122 std::string.
13123 * source-cache.c (source_cache::extract_lines): Handle case where
13124 first_pos==npos. Return std::string.
13125 (source_cache::get_source_lines): Update.
13126
d085f989
TT
131272019-03-14 Tom Tromey <tromey@adacore.com>
13128
13129 * NEWS: Add item for "style sources" commands.
13130 * source-cache.c (source_cache::get_source_lines): Check
13131 source_styling.
13132 * cli/cli-style.c (source_styling): New global.
13133 (_initialize_cli_style): Add "style sources" commands.
13134 (show_style_sources): New function.
13135 * cli/cli-style.h (source_styling): Declare.
13136
6f11e682
TT
131372019-03-14 Pedro Alves <palves@redhat.com>
13138 Tom Tromey <tromey@adacore.com>
13139
13140 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13141 * tui/tui-winsource.c (tui_refill_source_window): New function,
13142 from...
13143 (tui_horizontal_source_scroll): ... here. Move some logic.
13144 * cli/cli-style.c (set_style_enabled): Notify new observable.
13145 * tui/tui-hooks.c (tui_redisplay_source): New function.
13146 (tui_attach_detach_observers): Attach or detach
13147 tui_redisplay_source.
13148 * observable.h (source_styling_changed): New observable.
13149 * observable.c: Define source_styling_changed observable.
13150
a068643d
TT
131512019-03-13 Tom Tromey <tromey@adacore.com>
13152
13153 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13154 (i386_gnu_nat_target::store_registers): Update.
13155 * target-debug.h (target_debug_print_std_string): New macro.
13156 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13157 * windows-tdep.c (display_one_tib): Update.
13158 * tui/tui-stack.c (tui_make_status_line): Update.
13159 * top.c (print_inferior_quit_action): Update.
13160 * thread.c (thr_try_catch_cmd): Update.
13161 (add_thread_with_info): Update.
13162 (thread_target_id_str): Update.
13163 (thr_try_catch_cmd): Update.
13164 (thread_command): Update.
13165 (thread_find_command): Update.
13166 * record-btrace.c (record_btrace_target::info_record)
13167 (record_btrace_resume_thread, record_btrace_target::resume)
13168 (record_btrace_cancel_resume, record_btrace_step_thread)
13169 (record_btrace_target::wait, record_btrace_target::wait)
13170 (record_btrace_target::wait, record_btrace_target::stop): Update.
13171 * progspace.c (print_program_space): Update.
13172 * process-stratum-target.c
13173 (process_stratum_target::thread_address_space): Update.
13174 * linux-fork.c (linux_fork_mourn_inferior)
13175 (detach_checkpoint_command, info_checkpoints_command)
13176 (linux_fork_context): Update.
13177 (linux_fork_detach): Update.
13178 (class scoped_switch_fork_info): Update.
13179 (delete_checkpoint_command): Update.
13180 * infrun.c (follow_fork_inferior): Update.
13181 (follow_fork_inferior): Update.
13182 (proceed_after_vfork_done): Update.
13183 (handle_vfork_child_exec_or_exit): Update.
13184 (follow_exec): Update.
13185 (displaced_step_prepare_throw): Update.
13186 (displaced_step_restore): Update.
13187 (start_step_over): Update.
13188 (resume_1): Update.
13189 (clear_proceed_status_thread): Update.
13190 (proceed): Update.
13191 (print_target_wait_results): Update.
13192 (do_target_wait): Update.
13193 (context_switch): Update.
13194 (stop_all_threads): Update.
13195 (restart_threads): Update.
13196 (finish_step_over): Update.
13197 (handle_signal_stop): Update.
13198 (switch_back_to_stepped_thread): Update.
13199 (keep_going_pass_signal): Update.
13200 (print_exited_reason): Update.
13201 (normal_stop): Update.
13202 * inferior.c (inferior_pid_to_str): Change return type.
13203 (print_selected_inferior): Update.
13204 (add_inferior): Update.
13205 (detach_inferior): Update.
13206 * dummy-frame.c (fprint_dummy_frames): Update.
13207 * dcache.c (dcache_info_1): Update.
13208 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13209 (btrace_fetch, btrace_clear): Update.
13210 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13211 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13212 type.
13213 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13214 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13215 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13216 * gdbarch.c, gdbarch.h: Rebuild.
13217 * gdbarch.sh (core_pid_to_str): Change return type.
13218 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13219 return type.
13220 (windows_nat_target::pid_to_str): Change return type.
13221 (windows_delete_thread): Update.
13222 (windows_nat_target::attach): Update.
13223 (windows_nat_target::files_info): Update.
13224 * target-delegates.c: Rebuild.
13225 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13226 return type.
13227 (sol_thread_target::pid_to_str): Change return type.
13228 * remote.c (class remote_target) <pid_to_str>: Change return
13229 type.
13230 (remote_target::pid_to_str): Change return type.
13231 (extended_remote_target::attach, remote_target::remote_stop_ns)
13232 (remote_target::remote_notif_remove_queued_reply)
13233 (remote_target::push_stop_reply, remote_target::disable_btrace):
13234 Update.
13235 (extended_remote_target::attach): Update.
13236 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13237 type.
13238 (gdbsim_target::pid_to_str): Change return type.
13239 * ravenscar-thread.c (struct ravenscar_thread_target)
13240 <pid_to_str>: Change return type.
13241 (ravenscar_thread_target::pid_to_str): Change return type.
13242 * procfs.c (class procfs_target) <pid_to_str>: Change return
13243 type.
13244 (procfs_target::pid_to_str): Change return type.
13245 (procfs_target::attach): Update.
13246 (procfs_target::detach): Update.
13247 (procfs_target::fetch_registers): Update.
13248 (procfs_target::store_registers): Update.
13249 (procfs_target::wait): Update.
13250 (procfs_target::files_info): Update.
13251 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13252 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13253 return type.
13254 (nto_procfs_target::pid_to_str): Change return type.
13255 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13256 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13257 return type.
13258 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13259 (exit_lwp): Update.
13260 (attach_proc_task_lwp_callback, get_detach_signal)
13261 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13262 (linux_nat_target::resume, wait_lwp, stop_callback)
13263 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13264 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13265 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13266 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13267 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13268 type.
13269 (inf_ptrace_target::attach): Update.
13270 (inf_ptrace_target::files_info): Update.
13271 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13272 type.
13273 (go32_nat_target::pid_to_str): Change return type.
13274 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13275 (gnu_nat_target::wait): Update.
13276 (gnu_nat_target::wait): Update.
13277 (gnu_nat_target::resume): Update.
13278 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13279 (fbsd_nat_target::wait): Update.
13280 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13281 type.
13282 (darwin_nat_target::attach): Update.
13283 * corelow.c (class core_target) <pid_to_str>: Change return type.
13284 (core_target::pid_to_str): Change return type.
13285 * target.c (normal_pid_to_str): Change return type.
13286 (default_pid_to_str): Likewise.
13287 (target_pid_to_str): Change return type.
13288 (target_translate_tls_address): Update.
13289 (target_announce_detach): Update.
13290 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13291 return type.
13292 (bsd_uthread_target::pid_to_str): Change return type.
13293 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13294 type.
13295 (bsd_kvm_target::pid_to_str): Change return type.
13296 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13297 return type.
13298 (aix_thread_target::pid_to_str): Change return type.
13299 * target.h (struct target_ops) <pid_to_str>: Change return type.
13300 (target_pid_to_str, normal_pid_to_str): Likewise.
13301 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13302 type.
13303 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13304 type.
13305 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13306 return type.
13307 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13308 type.
13309 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13310 type.
13311 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13312 return type.
13313
b4be1b06
SM
133142019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13315
13316 * NEWS: Mention that the new default MI version is 3. Mention
13317 changes to the output of commands and events that deal with
13318 multi-location breakpoints.
13319 * breakpoint.c: Include "mi/mi-out.h".
13320 (print_one_breakpoint): Change output syntax if using MI version
13321 >= 3.
13322 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13323 New.
13324 (mi_multi_location_breakpoint_output_fixed): New.
13325 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13326 (mi_cmd_fix_multi_location_breakpoint_output): New.
13327 (mi_multi_location_breakpoint_output_fixed): New.
13328 * mi/mi-cmds.c (mi_cmds): Register command
13329 -fix-multi-location-breakpoint-output.
13330 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13331 interpreter "mi".
13332
8e5e5494
SM
133332019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13334
13335 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13336 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13337 instantiate mi_ui_out based on interpreter name.
13338 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13339 * mi/mi-main.c (mi_load_progress): Likewise.
13340
197df35e
JB
133412019-03-12 John Baldwin <jhb@FreeBSD.org>
13342
13343 * NEWS: Combine separate "New targets" sections for 8.3.
13344
8399425f
JB
133452019-03-12 John Baldwin <jhb@FreeBSD.org>
13346
13347 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13348 (ppcfbsd_init_abi): Install gdbarch
13349 "fetch_tls_load_module_address" and "get_thread_local_address"
13350 methods.
13351
b0f87ed0
JB
133522019-03-12 John Baldwin <jhb@FreeBSD.org>
13353
13354 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13355 (riscv_fbsd_init_abi): Install gdbarch
13356 "fetch_tls_load_module_address" and "get_thread_local_address"
13357 methods.
13358
ce25aa57
JB
133592019-03-12 John Baldwin <jhb@FreeBSD.org>
13360
13361 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13362 (i386fbsd_init_abi): Install gdbarch
13363 "fetch_tls_load_module_address" and "get_thread_local_address"
13364 methods.
13365
f5424cfa
JB
133662019-03-12 John Baldwin <jhb@FreeBSD.org>
13367
13368 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13369 (amd64fbsd_init_abi): Install gdbarch
13370 "fetch_tls_load_module_address" and "get_thread_local_address"
13371 methods.
13372
945f3901
JB
133732019-03-12 John Baldwin <jhb@FreeBSD.org>
13374
13375 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13376 (struct fbsd_pspace_data): New type.
13377 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13378 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13379 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13380 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13381 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13382
ef0bd204
JB
133832019-03-12 John Baldwin <jhb@FreeBSD.org>
13384
13385 * gdbtypes.c (lookup_struct_elt): New function.
13386 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13387 * gdbtypes.h (struct struct_elt): New type.
13388 (lookup_struct_elt): New prototype.
13389
36c53a02
JB
133902019-03-12 John Baldwin <jhb@FreeBSD.org>
13391
13392 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13393 remove disabled code block.
13394
6e056c81
JB
133952019-03-12 John Baldwin <jhb@FreeBSD.org>
13396
13397 * gdbarch.sh (get_thread_local_address): New method.
13398 * gdbarch.h, gdbarch.c: Regenerate.
13399 * target.c (target_translate_tls_address): Use
13400 gdbarch_get_thread_local_address if present instead of
13401 target::get_thread_local_address.
13402
cd250a18
JB
134032019-03-12 John Baldwin <jhb@FreeBSD.org>
13404
13405 * target.h (target::get_thread_local_address): Update comment.
13406
df22c1e5
JB
134072019-03-12 John Baldwin <jhb@FreeBSD.org>
13408
13409 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13410 objfile->separate_debug_objfile_backlink if not NULL.
13411
dd6876c9
JB
134122019-03-12 John Baldwin <jhb@FreeBSD.org>
13413
13414 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13415 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13416 (amd64bsd_store_inferior_registers): Likewise.
13417 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13418 Enable segment base registers.
13419 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13420 PT_GETFSBASE and PT_GETGSBASE.
13421 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13422 PT_SETGSBASE.
13423 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13424 segment base registers.
13425 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13426
1163a4b7
JB
134272019-03-12 John Baldwin <jhb@FreeBSD.org>
13428
13429 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13430 Update calls to i386_target_description to add 'segments'
13431 parameter.
13432 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13433 add segment base registers.
13434 * arch/i386.c (i386_create_target_description): Add 'segments'
13435 parameter to enable segment base registers.
13436 * arch/i386.h (i386_create_target_description): Likewise.
13437 * features/i386/32bit-segments.xml: New file.
13438 * features/i386/32bit-segments.c: Generate.
13439 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13440 call to i386_target_description to add 'segments' parameter.
13441 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13442 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13443 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13444 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13445 if feature is present.
13446 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13447 Add 'segments' parameter to call to i386_target_description.
13448 (i386_target_description): Add 'segments' parameter to enable
13449 segment base registers.
13450 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13451 to call to i386_target_description.
13452 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13453 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13454 Define I386_NUM_REGS.
13455 (i386_target_description): Add 'segments' parameter to enable
13456 segment base registers.
13457
3a350822
EZ
134582019-03-12 Eli Zaretskii <eliz@gnu.org>
13459
13460 PR/24325
13461 * source-cache.c: #undef open and close, to avoid unresolved
13462 externals during linking.
13463
ffdd69cf
TT
134642019-03-12 Tom Tromey <tromey@adacore.com>
13465
13466 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13467 const. Add initializers.
13468 (_initialize_remote): Don't initialize ptid globals.
13469
ec148c57
PA
134702019-03-12 Pedro Alves <palves@redhat.com>
13471
13472 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13473
32764270
PA
134742019-03-12 Pedro Alves <palves@redhat.com>
13475
13476 * cp-name-parser.y (main): Remove unused 'len' variable.
13477
17547186
TT
134782019-03-12 Tom Tromey <tromey@adacore.com>
13479
13480 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13481 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13482
d3a70e03
TT
134832019-03-12 Tom Tromey <tromey@adacore.com>
13484
13485 * linux-nat.c (iterate_over_lwps): Update.
13486 (stop_callback): Remove parameter.
13487 (stop_wait_callback, detach_callback, resume_set_callback)
13488 (select_singlestep_lwp_callback, set_ignore_sigint)
13489 (status_callback, resumed_callback, resume_clear_callback)
13490 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13491 data parameter.
13492 (linux_nat_target::detach, linux_nat_target::resume)
13493 (linux_stop_and_wait_all_lwps, select_event_lwp)
13494 (linux_nat_filter_event, linux_nat_wait_1)
13495 (linux_nat_target::kill, linux_nat_target::stop)
13496 (linux_nat_target::stop): Update.
13497 (linux_nat_resume_callback): Change type.
13498 (resume_stopped_resumed_lwps, count_events_callback)
13499 (select_event_lwp_callback): Likewise.
13500 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13501 * arm-linux-nat.c (struct update_registers_data): Remove.
13502 (update_registers_callback): Change type.
13503 (arm_linux_insert_hw_breakpoint1): Update.
13504 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13505 parameter.
13506 (x86_linux_dr_set_addr): Update.
13507 (x86_linux_dr_set_control): Update.
13508 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13509 (iterate_over_lwps): Use gdb::function_view.
13510 * nat/aarch64-linux-hw-point.c (struct
13511 aarch64_dr_update_callback_param): Remove.
13512 (debug_reg_change_callback): Change type.
13513 (aarch64_notify_debug_reg_change): Update.
13514 * s390-linux-nat.c (s390_refresh_per_info): Update.
13515
82cb27ff
TT
135162019-03-11 Tom Tromey <tromey@adacore.com>
13517
13518 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13519 redundant assignment to "this_cu".
13520
568c0683
SM
135212019-03-08 Simon Marchi <simon.marchi@efficios.com>
13522
13523 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13524
f09ce22d
SM
135252019-03-08 Simon Marchi <simon.marchi@efficios.com>
13526
13527 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13528 from...
13529 (rank_one_type): ... this.
13530
595f96a9
SM
135312019-03-08 Simon Marchi <simon.marchi@efficios.com>
13532
13533 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13534 from...
13535 (rank_one_type): ... this.
13536
2598a94b
SM
135372019-03-08 Simon Marchi <simon.marchi@efficios.com>
13538
13539 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13540 from...
13541 (rank_one_type): ... this.
13542
7f17b20d
SM
135432019-03-08 Simon Marchi <simon.marchi@efficios.com>
13544
13545 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13546 from...
13547 (rank_one_type): ... this.
13548
2c509035
SM
135492019-03-08 Simon Marchi <simon.marchi@efficios.com>
13550
13551 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13552 from...
13553 (rank_one_type): ... this.
13554
0dd322dc
SM
135552019-03-08 Simon Marchi <simon.marchi@efficios.com>
13556
13557 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13558 from...
13559 (rank_one_type): ... this.
13560
41ea4728
SM
135612019-03-08 Simon Marchi <simon.marchi@efficios.com>
13562
13563 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13564 from...
13565 (rank_one_type): ... this.
13566
793cd1d2
SM
135672019-03-08 Simon Marchi <simon.marchi@efficios.com>
13568
13569 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13570 from...
13571 (rank_one_type): ... this.
13572
34910087
SM
135732019-03-08 Simon Marchi <simon.marchi@efficios.com>
13574
13575 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13576 from...
13577 (rank_one_type): ... this.
13578
f1f832d6
SM
135792019-03-08 Simon Marchi <simon.marchi@efficios.com>
13580
13581 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13582 from...
13583 (rank_one_type): ... this.
13584
b9f4512f
SM
135852019-03-08 Simon Marchi <simon.marchi@efficios.com>
13586
13587 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13588 from...
13589 (rank_one_type): ... this.
13590
9293fc63
SM
135912019-03-08 Simon Marchi <simon.marchi@efficios.com>
13592
13593 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13594 from...
13595 (rank_one_type): ... this.
13596
e3abbe7e
PW
135972019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13598
13599 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13600 inferior-events' shows the example events.
13601
e4adb939
EZ
136022019-03-08 Eli Zaretskii <eliz@gnu.org>
13603
13604 Support styling on native MS-Windows console
13605
13606 PR/24315
13607 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13608 on MS-Windows if $TERM is not defined.
13609
13610 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13611
13612 * posix-hdep.c (gdb_console_fputs):
13613 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13614 functions.
13615 * ui-file.h (gdb_console_fputs): Add prototype.
13616
13617 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13618 back to fputs only if the former returns zero.
13619
25629dfd
TT
136202019-03-07 Tom Tromey <tom@tromey.com>
13621
13622 * symmisc.c (print_symbol_bcache_statistics): Update.
13623 (print_objfile_statistics): Update.
13624 * symfile.c (allocate_symtab): Update.
13625 * stabsread.c: Don't include bcache.h.
13626 * psymtab.h (struct psymbol_bcache): Don't declare.
13627 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13628 (psymbol_bcache_init, psymbol_bcache_free)
13629 (psymbol_bcache_get_bcache): Don't declare.
13630 * psymtab.c (struct psymbol_bcache): Remove.
13631 (psymtab_storage::psymtab_storage): Update.
13632 (psymtab_storage::~psymtab_storage): Update.
13633 (psymbol_bcache_init, psymbol_bcache_free)
13634 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13635 (add_psymbol_to_bcache): Update.
13636 (allocate_psymtab): Update.
13637 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13638 macro_cache>: No longer pointers.
13639 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13640 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13641 * macrotab.c (macro_bcache): Update.
13642 * macroexp.c: Don't include bcache.h.
13643 * gdbtypes.c (check_types_worklist): Update.
13644 (types_deeply_equal): Remove TRY/CATCH. Update.
13645 * elfread.c (elf_symtab_read): Update.
13646 * dwarf2read.c: Don't include bcache.h.
13647 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13648 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13649 (print_bcache_statistics, bcache_memory_used): Don't declare.
13650 (struct bcache): Move from bcache.c. Add constructor, destructor,
13651 methods. Rename all data members.
13652 * bcache.c (struct bcache): Move to bcache.h.
13653 (bcache::expand_hash_table): Rename from expand_hash_table.
13654 (bcache): Remove.
13655 (bcache::insert): Rename from bcache_full.
13656 (bcache::compare): Rename from bcache_compare.
13657 (bcache_xmalloc): Remove.
13658 (bcache::~bcache): Rename from bcache_xfree.
13659 (bcache::print_statistics): Rename from print_bcache_statistics.
13660 (bcache::memory_used): Rename from bcache_memory_used.
13661
fe726667
PA
136622019-03-07 Pedro Alves <palves@redhat.com>
13663
13664 * infrun.c (normal_stop): Also check for
13665 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13666
7584bb30
AB
136672019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13668
13669 * f-lang.c (value_from_host_double): Moved to...
13670 * value.c (value_from_host_double): ...here.
13671 * value.h (value_from_host_double): Declare.
13672 * guile/scm-math.c (vlscm_convert_typed_number): Use
13673 value_from_host_double.
13674 (vlscm_convert_number): Likewise.
13675 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13676 * python/py-value.c (convert_value_from_python): Likewise.
13677
a7b1986e
TT
136782019-03-06 Tom Tromey <tom@tromey.com>
13679
13680 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13681
0ccf4211
TT
136822019-03-06 Tom Tromey <tom@tromey.com>
13683
13684 * utils.h (free_current_contents): Don't declare.
13685 * utils.c (free_current_contents): Remove.
13686
fe7b42e5
TT
136872019-03-06 Tom Tromey <tom@tromey.com>
13688
13689 * top.c (quit_force): Update.
13690 * main.c (captured_command_loop): Update.
13691 * common/new-op.c (operator new): Update.
13692 * common/common-exceptions.c (struct catcher)
13693 <save_cleanup_chain>: Remove member.
13694 (exceptions_state_mc_init): Update.
13695 (exception_try_scope_entry): Return nullptr.
13696 (exception_try_scope_exit, exception_rethrow)
13697 (throw_exception_sjlj, throw_exception_cxx): Update.
13698 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13699 (all_cleanups, do_cleanups, discard_cleanups)
13700 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13701 (restore_cleanups, restore_final_cleanups): Don't declare.
13702 (do_final_cleanups): Remove parameter.
13703 * common/cleanups.c (cleanup_chain, make_cleanup)
13704 (make_cleanup_dtor, all_cleanups, do_cleanups)
13705 (discard_my_cleanups, discard_cleanups)
13706 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13707 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13708 (null_cleanup): Remove.
13709 (do_final_cleanups): Remove parameter.
13710
c6321f19
TT
137112019-03-06 Tom Tromey <tom@tromey.com>
13712
13713 * remote.c (remote_target::remote_parse_stop_reply): Use
13714 unique_xmalloc_ptr.
13715
61b30099
TT
137162019-03-06 Tom Tromey <tom@tromey.com>
13717
13718 * stabsread.c (struct stabs_field_info): Rename from field_info.
13719 <list, fnlist>: Add initializers.
13720 <obstack>: New member.
13721 (read_member_functions, read_struct_fields, read_baseclasses):
13722 Allocate on obstack. Don't use cleanups.
13723 (read_one_struct_field, read_member_functions, read_struct_fields)
13724 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13725 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13726 (read_struct_type): Update.
13727
6cceac94
TT
137282019-03-06 Tom Tromey <tom@tromey.com>
13729
13730 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13731 * common/filestuff.h (make_cleanup_close): Don't declare.
13732 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13733 Remove.
13734
72412762
TT
137352019-03-06 Tom Tromey <tom@tromey.com>
13736
13737 * solib-aix.c: Use make_scope_exit.
13738
2b6ff1c0
TT
137392019-03-06 Tom Tromey <tom@tromey.com>
13740
13741 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13742 Use make_scope_exit.
13743
d01c5877
TT
137442019-03-06 Tom Tromey <tom@tromey.com>
13745
13746 * solib-svr4.c (disable_probes_interface): Remove parameter.
13747 (svr4_handle_solib_event): Use make_scope_exit.
13748
32603266
TT
137492019-03-06 Tom Tromey <tom@tromey.com>
13750
13751 * remote.c (struct stop_reply_deleter): Remove.
13752 (stop_reply_up): Update.
13753 (struct stop_reply): Derive from notif_event. Don't typedef.
13754 <regcache>: Now a std::vector.
13755 (stop_reply_xfree): Remove.
13756 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13757 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13758 (remote_target::discard_pending_stop_replies): Use delete.
13759 (remote_target::remote_parse_stop_reply): Update.
13760 (remote_target::process_stop_reply): Update.
13761 * remote-notif.h (struct notif_event): Add virtual destructor.
13762 Remove "dtr" member.
13763 (struct notif_client) <alloc_event>: Return a unique_ptr.
13764 (notif_event_xfree): Don't declare.
13765 (notif_event_up): New typedef.
13766 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13767 (notif_event_xfree, do_notif_event_xfree): Remove.
13768 (remote_notif_state_xfree): Update.
13769
9799571e
TT
137702019-03-06 Tom Tromey <tom@tromey.com>
13771
13772 * infrun.c (displaced_step_clear_cleanup): Now a
13773 forward_scope_exit type.
13774 (displaced_step_prepare_throw): Update.
13775 (displaced_step_fixup): Update.
13776
09e3c4ca
TT
137772019-03-06 Tom Tromey <tom@tromey.com>
13778
13779 * inferior.h (class inferior): Update comment.
13780 * gdbthread.h (class thread_info): Update comment.
13781
e2a03548
TT
137822019-03-06 Joel Brobecker <brobecker@adacore.com>
13783 Tom Tromey <tom@tromey.com>
13784
13785 * stabsread.h (struct stab_section_list): Remove.
13786 (coffstab_build_psymtabs): Update.
13787 * dbxread.c (symbuf_sections): Now a std::vector.
13788 (sect_idx): New global.
13789 (fill_symbuf): Update.
13790 (coffstab_build_psymtabs): Change type of stabsects parameter.
13791 Update.
13792 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13793 std::vector.
13794 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13795 (coff_locate_sections): Update.
13796 (coff_symfile_read): Remove cleanups. Update.
13797 (init_stringtab): Add storage parameter.
13798 (free_stringtab, free_stringtab_cleanup): Remove.
13799 (init_lineno): Add storage parameter.
13800 (free_linetab, free_linetab_cleanup): Remove.
13801
b7e60d85
PA
138022019-03-06 Pedro Alves <palves@redhat.com>
13803
13804 * linux-fork.c (fork_info::clobber_regs): Delete.
13805 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13806 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13807 comment. Adjust.
13808 (scoped_switch_fork_info::scoped_switch_fork_info)
13809 (checkpoint_command, linux_fork_context): Adjust
13810 fork_save_infrun_state calls.
13811
e52c971f
PA
138122019-03-06 Pedro Alves <palves@redhat.com>
13813
13814 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13815 (inf_has_multiple_threads): Return 'bool' and rewrite using
13816 inferior_info::threads().
13817
06974e6c
PA
138182019-03-06 Pedro Alves <palves@redhat.com>
13819
13820 * linux-fork.c: Include <list>.
13821 (fork_list): Now a std::list instance.
13822 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13823 (forks_exist_p, find_last_fork): Adjust.
13824 (new_fork): Delete.
13825 (one_fork_p): New.
13826 (add_fork): Adjust.
13827 (free_fork): Delete, folded into fork_info::~fork_info().
13828 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13829 Adjust.
13830 (init_fork_list): Delete.
13831 (linux_fork_killall, linux_fork_mourn_inferior)
13832 (linux_fork_detach, info_checkpoints_command): Adjust.
13833 (_initialize_linux_fork): No longer call init_fork_list.
13834
72f31aea
PA
138352019-03-06 Pedro Alves <palves@redhat.com>
13836
13837 * linux-fork.c (new_fork): New, split out of ...
13838 (add_fork): ... this. Return void. Move "first fork" special
13839 case from here, to ...
13840 (checkpoint_command): ... here.
13841 * linux-linux.h (add_fork): Return void.
13842
efbecbc1
AB
138432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13844
13845 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13846
0841c79a
AB
138472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13848 Chris January <chris.january@arm.com>
13849 David Lecomber <david.lecomber@arm.com>
13850
13851 * f-exp.y: New token, UNOP_INTRINSIC.
13852 (exp): New pattern using UNOP_INTRINSIC token.
13853 (f77_keywords): Add 'abs' keyword.
13854 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13855 (value_from_host_double): New function.
13856 (evaluate_subexp_f): Support UNOP_ABS.
13857
4a270568
AB
138582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13859
13860 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13861 types.
13862
067630bd
AB
138632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13864
13865 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13866 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13867 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13868
3be47f7a
AB
138692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13870
13871 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13872
4d00f5d8
AB
138732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13874 Chris January <chris.january@arm.com>
13875
13876 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13877 * f-exp.y: Define 'KIND' token.
13878 (exp): New pattern for KIND expressions.
13879 (ptype): Handle types with a kind extension.
13880 (direct_abs_decl): Extend to spot kind extensions.
13881 (f77_keywords): Add 'kind' to the list.
13882 (push_kind_type): New function.
13883 (convert_to_kind_type): New function.
13884 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13885 * parse.c (operator_length_standard): Likewise.
13886 * parser-defs.h (enum type_pieces): Add tp_kind.
13887 * std-operator.def: Add UNOP_KIND.
13888
e454224f
AB
138892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13890
13891 * f-exp.y (f_parse): Set yydebug.
13892
9dad4a58
AB
138932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13894
13895 * f-lang.c (evaluate_subexp_f): New function.
13896 (exp_descriptor_f): New global.
13897 (f_language_defn): Use exp_descriptor_f instead of
13898 exp_descriptor_standard.
13899
c8f91604
AB
139002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13901
13902 * f-exp.y (struct token): Add comments.
13903 (dot_ops): Remove uppercase versions and the end marker.
13904 (f77_keywords): Likewise.
13905 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13906 entries in the dot_ops array are case insensitive, and use
13907 strncasecmp to compare strings. Also some whitespace cleanup in
13908 this area. Similar for the f77_keywords array, except entries in
13909 this list might be case sensitive.
13910
dd9f2c76
AB
139112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13912
13913 * f-exp.y (struct f77_boolean_val): Add comments.
13914 (boolean_values): Remove uppercase versions, and end marker.
13915 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13916 and use strncasecmp to achieve case insensitivity. Additionally,
13917 perform whitespace cleanup around this code.
13918
67a3048c
TT
139192019-03-06 Tom Tromey <tromey@adacore.com>
13920
13921 * remote-sim.c (gdbsim_target_open): Use result of
13922 gdb_argv::release.
13923
aa3cfbda
RB
139242019-03-06 Richard Bunt <richard.bunt@arm.com>
13925 Dirk Schubert <dirk.schubert@arm.com>
13926 Chris January <chris.january@arm.com>
13927
13928 * eval.c (evaluate_subexp_standard): Call Fortran argument
13929 wrapping logic.
13930 * f-lang.c (struct value): A value which can be passed into a
13931 Fortran function call.
13932 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13933 where appropriate.
13934 (struct type): Value ready for a Fortran function call.
13935 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13936 is needed.
13937 * f-lang.h (fortran_argument_convert): Declaration.
13938 (fortran_preserve_arg_pointer): Declaration.
13939 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13940
ea38e5df
TT
139412019-03-05 Tom Tromey <tromey@adacore.com>
13942
13943 * python/py-prettyprint.c (print_string_repr): Remove #if.
13944 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13945
06b5b831
TT
139462019-03-05 Tom Tromey <tromey@adacore.com>
13947
13948 * target.c (the_dummy_target): Move later. Change type to
13949 "dummy_target".
13950 (initialize_targets): Don't initialize the_dummy_target.
13951
edbd9e45
TT
139522019-03-05 Tom Tromey <tromey@adacore.com>
13953
13954 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13955 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13956
c119e040
TT
139572019-03-05 Tom Tromey <tromey@adacore.com>
13958
13959 * windows-nat.c (windows_nat_target::attach)
13960 (windows_nat_target::detach): Don't call gdb_flush.
13961 * valprint.c (generic_val_print, val_print, val_print_string):
13962 Don't call gdb_flush.
13963 * utils.c (defaulted_query): Don't call gdb_flush.
13964 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13965 * target.c (target_announce_detach): Don't call gdb_flush.
13966 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13967 * remote.c (extended_remote_target::attach): Don't call
13968 gdb_flush.
13969 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13970 * printcmd.c (do_examine): Don't call gdb_flush.
13971 (info_display_command): Don't call gdb_flush.
13972 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13973 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13974 * memattr.c (info_mem_command): Don't call gdb_flush.
13975 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13976 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13977 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13978 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13979 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13980 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13981 (gnu_nat_target::detach): Don't call gdb_flush.
13982 * f-valprint.c (f_val_print): Don't call gdb_flush.
13983 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13984 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13985 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13986 gdb_flush.
13987 * c-valprint.c (c_val_print): Don't call gdb_flush.
13988 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13989
895dafa6
TT
139902019-03-05 Tom Tromey <tromey@adacore.com>
13991
13992 * varobj.c (update_dynamic_varobj_children): Update.
13993 (install_default_visualizer): Use reset, not release.
13994 * value.c (set_internalvar): Update.
13995 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13996 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13997 ATTRIBUTE_UNUSED_RESULT.
13998
88a774b9
TT
139992019-03-05 Tom Tromey <tromey@adacore.com>
14000
14001 * remote.c (class scoped_remote_fd) <release>: Add
14002 ATTRIBUTE_UNUSED_RESULT.
14003
4e4a8b93
TT
140042019-03-05 Tom Tromey <tromey@adacore.com>
14005
14006 * macroexp.c (struct macro_buffer) <release>: Add
14007 ATTRIBUTE_UNUSED_RESULT.
14008
083eef1f
TT
140092019-03-05 Tom Tromey <tromey@adacore.com>
14010
14011 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14012 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14013 ATTRIBUTE_UNUSED_RESULT.
14014
3cabd438
TT
140152019-03-05 Tom Tromey <tromey@adacore.com>
14016
14017 * common/scoped_fd.h (class scoped_fd) <release>: Add
14018 ATTRIBUTE_UNUSED_RESULT.
14019
41e3300a
TT
140202019-03-05 Tom Tromey <tromey@adacore.com>
14021
14022 * parser-defs.h (struct parser_state) <release>: Add
14023 ATTRIBUTE_UNUSED_RESULT.
14024
18cb7c9f
TT
140252019-03-05 Tom Tromey <tromey@adacore.com>
14026
14027 * utils.h (class gdb_argv) <release>: Add
14028 ATTRIBUTE_UNUSED_RESULT.
14029 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14030
41fa577f
EZ
140312019-03-02 Eli Zaretskii <eliz@gnu.org>
14032
a6a4b2c6
EZ
14033 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14034 for-loop range, to avoid compiler warnings.
14035
14036 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14037 avoid compiler warnings about unused variables.
14038
742a7df5
EZ
14039 * NEWS: Mention end of support for native debugging on MS-Windows
14040 before XP.
14041
41fa577f
EZ
14042 PR gdb/24292
14043 * common/netstuff.c:
14044 * gdbserver/gdbreplay.c
14045 * gdbserver/remote-utils.c:
14046 * ser-tcp.c:
14047 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14048 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14049 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14050 'getaddrinfo' and 'freeaddrinfo' were not available before
14051 Windows XP, and mingw.org's MinGW headers by default define
14052 _WIN32_WINNT to 0x500.
14053
827f438f
GB
140542019-03-01 Gary Benson <gbenson@redhat.com>
14055
14056 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14057
92137da0
RO
140582019-02-28 Brian Vandenberg <phantall@gmail.com>
14059 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14060
14061 PR gdb/8527
14062 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14063 set_sigint_trap, clear_sigint_trap.
14064
799efbe8
PW
140652019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14066
14067 * target.c (target_detach): Clear the regcache and the
14068 frame cache.
14069
8ed25214
PA
140702019-02-27 Pedro Alves <palves@redhat.com>
14071
14072 * utils.c (set_screen_size): When we cap the height/width sizes,
14073 tweak the corresponding command variable to show "unlimited":
14074
23031e31
SJ
140752019-02-27 Saagar Jha <saagar@saagarjha.com>
14076 Pedro Alves <palves@redhat.com>
14077
14078 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14079 before calling rl_set_screen_size.
14080
6c28e44a
TT
140812019-02-27 Tom Tromey <tromey@adacore.com>
14082
14083 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14084 define.
14085 * python/py-value.c: Remove Python 2.4 workaround.
14086 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14087 workaround.
14088 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14089 Python 2.4 workaround.
14090 * python/python-internal.h: Remove Python 2.4 comment.
14091 (Py_ssize_t): Don't define.
14092 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14093 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14094 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14095 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14096 * python/python.c (do_start_initialization): Remove Python 2.4
14097 workaround.
14098 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14099 (print_children): Remove Python 2.4 workaround.
14100 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14101 workaround.
14102 (CHARBUFFERPROC_NAME): Remove.
14103 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14104 Python 2.4 workaround.
14105
2c3fc25d 141062019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14107
2c3fc25d
KB
14108 * NEWS: Note minimum Python version.
14109
6ca62222
KB
141102019-02-27 Kevin Buettner <kevinb@redhat.com>
14111
14112 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14113 code from these functions. Remove corresponding ifdefs. Use
14114 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14115 Remove gotos and target of gotos.
14116 (infpy_search_memory): Likewise.
14117
f4bc7d2c
AB
141182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14119
14120 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14121 (hppa_gdbarch_init): Don't register deleted functions with
14122 gdbarch.
14123
9734a586
AB
141242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14125
14126 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14127 (h8300_unwind_sp): Delete.
14128 (h8300_dummy_id): Delete.
14129 (h8300_gdbarch_init): Don't register deleted functions with
14130 gdbarch.
14131
68b867f3
AB
141322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14133
14134 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14135 (ft32_unwind_pc): Delete.
14136 (ft32_unwind_sp): Delete.
14137 (ft32_gdbarch_init): Don't register deleted functions with
14138 gdbarch.
14139
2fbe7ad0
AB
141402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14141
14142 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14143 (frv_unwind_pc): Delete.
14144 (frv_unwind_sp): Delete.
14145 (frv_gdbarch_init): Don't register deleted functions with
14146 gdbarch.
14147
76055cbe
AB
141482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14149
14150 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14151 (riscv_unwind_pc): Delete.
14152 (riscv_unwind_sp): Delete.
14153 (riscv_gdbarch_init): Don't register deleted functions with
14154 gdbarch.
14155
4133e5a1
AB
141562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14157
14158 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14159 (csky_unwind_pc): Delete.
14160 (csky_unwind_sp): Delete.
14161 (csky_gdbarch_init): Don't register deleted functions with
14162 gdbarch.
14163
8010f576
AB
141642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14165
14166 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14167 (cris_unwind_pc): Delete.
14168 (cris_unwind_sp): Delete.
14169 (cris_gdbarch_init): Don't register deleted functions with
14170 gdbarch.
14171
b56bf084
AB
141722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14173
14174 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14175 (bfin_unwind_pc): Delete.
14176 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14177
a19a650f
AB
141782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14179
14180 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14181 (arm_unwind_pc): Delete.
14182 (arm_unwind_sp): Delete.
14183 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14184
f8278c3c
AB
141852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14186
14187 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14188 (arc_unwind_pc): Delete.
14189 (arc_unwind_sp): Delete.
14190 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14191
480e46cf
AB
141922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14193
14194 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14195 (alpha_unwind_pc): Delete.
14196 (alpha_gdbarch_init): Don't register deleted functions with
14197 gdbarch.
14198
7a995095
AB
141992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14200
14201 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14202 (aarch64_unwind_pc): Delete.
14203 (aarch64_unwind_sp): Delete.
14204 (aarch64_gdbarch_init): Don't register deleted functions with
14205 gdbarch.
14206
bf9a735e
AB
142072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14208
14209 * gdbtypes.c (type_align): Don't consider static members when
14210 computing structure alignment.
14211
5561fc30
AB
142122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14213
14214 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14215 return 0 for other types.
14216 * arch-utils.c (default_type_align): Always return 0.
14217 * gdbarch.h: Regenerate.
14218 * gdbarch.sh (type_align): Extend comment.
14219 * gdbtypes.c (type_align): Add additional comments, always call
14220 gdbarch_type_align before applying the default rules.
14221 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14222 generic code will then apply a suitable default.
14223 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14224 types, return 0 for other types.
14225
9335e75a
JB
142262019-02-27 Joel Brobecker <brobecker@adacore.com>
14227
14228 * NEWS: Create a new section for the next release branch.
14229 Rename the section of the current branch, now that it has
14230 been cut.
14231
3d34d8de
JB
142322019-02-27 Joel Brobecker <brobecker@adacore.com>
14233
14234 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14235 * version.in: Bump version to 8.3.50.DATE-git.
14236
143420fb
SM
142372019-02-26 Simon Marchi <simon.marchi@efficios.com>
14238
14239 * aix-thread.c (ptid_cmp): Remove unused variable.
14240 (get_signaled_thread): Likewise.
14241 (store_regs_user_thread): Likewise.
14242 (store_regs_kernel_thread): Likewise.
14243 (fetch_regs_kernel_thread): Remove shadowed variable.
14244
172fb711
AB
142452019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14246
14247 * features/riscv/32bit-cpu.xml: Add register numbers.
14248 * features/riscv/32bit-fpu.c: Regenerate.
14249 * features/riscv/32bit-fpu.xml: Add register numbers.
14250 * features/riscv/64bit-cpu.xml: Add register numbers.
14251 * features/riscv/64bit-fpu.c: Regenerate.
14252 * features/riscv/64bit-fpu.xml: Add register numbers.
14253
26c89782
KB
142542019-02-26 Kevin Buettner <kevinb@redhat.com>
14255
af54ade9 14256 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14257 * python/py-value.c (convert_buffer_and_type_to_value): New
14258 function.
14259 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14260 Add support for handling an optional second argument. Call
14261 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14262 * python/python-internal.h (Py_buffer_deleter): New struct.
14263 (Py_buffer_up): New typedef.
14264
0f58c9e8
JB
142652019-02-25 John Baldwin <jhb@FreeBSD.org>
14266
14267 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14268 instead of releasing ownership.
14269
0a0f4c01
JR
142702019-02-25 Jordan Rupprecht <rupprecht@google.com>
14271
14272 * dwarf2read.c (open_and_init_dwp_file): Call
14273 elf_numsections instead of bfd_count_sections to initialize
14274 dwp_file->num_sections.
14275
cd5a152c
TT
142762019-02-25 Tom Tromey <tromey@adacore.com>
14277
14278 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14279
8a6a8513
SDJ
142802019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14281
14282 * gcore.in: Add '--readnever' option when invoking GDB.
14283
04dcda9c
SM
142842019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14285
14286 * MAINTAINERS: Update my email address.
14287
07bc701d
SM
142882019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14289
14290 * build-id.c (build_id_to_debug_bfd_1): New function.
14291 (build_id_to_debug_bfd): Look for separate debug file in
14292 sysroot.
14293
c6f4a5d0
AB
142942019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14295
14296 * gdbarch.sh: Update the copyright year range that is placed into
14297 generated files.
14298
9600246d
KS
142992019-02-22 Keith Seitz <keiths@redhat.com>
14300
14301 PR symtab/23853
14302 * linespec.c (create_sals_line_offset): Search for the default
14303 symtab's filename instead of its fullname.
14304
7557a514
AH
143052019-02-21 Alan Hayward <alan.hayward@arm.com>
14306
14307 * NEWS: Update style defaults.
14308
ee2bcb0c
AH
143092019-02-21 Alan Hayward <alan.hayward@arm.com>
14310
14311 * main.c (captured_main_1): Disable styling in batch mode.
14312
0c95f9ed
TT
143132019-02-20 Tom Tromey <tom@tromey.com>
14314
14315 * symtab.c (symtab_symbol_info): Fix typos.
14316
c763b894
TT
143172019-02-20 Tom Tromey <tromey@adacore.com>
14318
14319 * findcmd.c (_initialize_mem_search): Use upper case for
14320 metasyntactic variables.
14321
0ef8a082
AH
143222019-02-20 Alan Hayward <alan.hayward@arm.com>
14323
14324 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14325 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14326
6caa91b6
SM
143272019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14328
14329 * top.h (source_file_name): Change to std::string.
14330 * top.c (source_file_name): Likewise.
14331 (command_line_input): Adjust.
14332 * cli/cli-script.c (script_from_file): Adjust.
14333
98814c6c
TT
143342019-02-19 Tom Tromey <tromey@adacore.com>
14335
14336 * ravenscar-thread.c
14337 (ravenscar_thread_target::update_thread_list): Don't call
14338 ada_build_task_list.
14339 * ada-lang.h (ada_build_task_list): Don't declare.
14340 * ada-tasks.c (struct ada_tasks_inferior_data)
14341 <task_list_valid_p>: Now bool.
14342 (read_known_tasks, ada_task_list_changed)
14343 (ada_tasks_invalidate_inferior_data): Update.
14344 (read_known_tasks_array): Return bool.
14345 (read_known_tasks_list): Likewise.
14346 (read_known_tasks): Return void.
14347 (ada_build_task_list): Now static.
14348
70cd633e
AB
143492019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14350
14351 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14352 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14353
040b3e95
PW
143542019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14355
14356 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14357 variant for ada_tasks_pspace_data_handle and
14358 ada_tasks_inferior_data_handle.
14359 (ada_tasks_pspace_data_cleanup): New function.
14360 (ada_tasks_inferior_data_cleanup): New function.
14361
9409233b
TT
143622019-02-17 Tom Tromey <tom@tromey.com>
14363
14364 * macrotab.h (macro_source_fullname): Return a std::string.
14365 * macrotab.c (macro_include, check_for_redefinition)
14366 (macro_undef, macro_lookup_definition, foreach_macro)
14367 (foreach_macro_in_scope): Update.
14368 (macro_source_fullname): Return a std::string.
14369 * macrocmd.c (show_pp_source_pos): Update.
14370
6506371f
TT
143712019-02-17 Tom Tromey <tom@tromey.com>
14372
14373 * macrocmd.c (show_pp_source_pos): Style the file names.
14374
0c820d67
TT
143752019-02-17 Tom Tromey <tom@tromey.com>
14376
14377 PR tui/24197:
14378 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14379
a0087920
TT
143802019-02-17 Tom Tromey <tom@tromey.com>
14381
14382 * ada-lang.c (user_select_syms): Use filtered printing.
14383 * utils.c (wrap_style): New global.
14384 (desired_style): Remove.
14385 (emit_style_escape): Add stream parameter.
14386 (set_output_style, reset_terminal_style, prompt_for_continue):
14387 Update.
14388 (flush_wrap_buffer): Only flush gdb_stdout.
14389 (wrap_here): Set wrap_style.
14390 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14391 treat escape sequences as a character. Change when wrap buffer is
14392 flushed.
14393 (fputs_styled): Do not set the output style when the default is
14394 requested.
14395 * ui-style.h (struct ui_file_style) <is_default>: New method.
14396 * source.c (print_source_lines_base): Emit escape sequences in one
14397 piece.
14398
75ba10dc
JB
143992019-02-17 Joel Brobecker <brobecker@adacore.com>
14400
14401 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14402 integers and enumeration types.
14403
a2cd4f14
JB
144042019-02-17 Joel Brobecker <brobecker@adacore.com>
14405
14406 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14407 instead of lookup_symbol_in_language
14408 (do_exact_match): New function.
14409 (ada_get_symbol_name_matcher): Return do_exact_match when
14410 doing a verbatim match.
14411
485b851b
TT
144122019-02-15 Tom Tromey <tromey@adacore.com>
14413
14414 * ravenscar-thread.c (ravenscar_thread_target::resume)
14415 (ravenscar_thread_target::wait): Special case wildcard requests.
14416
0b790b1e
TT
144172019-02-15 Tom Tromey <tromey@adacore.com>
14418
14419 * ravenscar-thread.c (base_ptid): Remove.
14420 (struct ravenscar_thread_target) <close>: New method.
14421 <m_base_ptid>: New member.
14422 <update_inferior_ptid, active_task, task_is_currently_active,
14423 runtime_initialized>: Declare methods.
14424 <ravenscar_thread_target>: Add constructor.
14425 (ravenscar_thread_target::task_is_currently_active)
14426 (ravenscar_thread_target::update_inferior_ptid)
14427 (ravenscar_runtime_initialized): Rename. Now methods.
14428 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14429 (ravenscar_thread_target::update_thread_list): Update.
14430 (ravenscar_thread_target::active_task): Now method.
14431 (ravenscar_thread_target::store_registers)
14432 (ravenscar_thread_target::prepare_to_store)
14433 (ravenscar_thread_target::prepare_to_store)
14434 (ravenscar_thread_target::mourn_inferior): Update.
14435 (ravenscar_inferior_created): Use "new" to create target.
14436 (ravenscar_thread_target::get_ada_task_ptid): Update.
14437 (_initialize_ravenscar): Don't initialize base_ptid.
14438 (ravenscar_ops): Remove global.
14439
dea57a62
TT
144402019-02-15 Tom Tromey <tromey@adacore.com>
14441
14442 * target.h (push_target): Declare new overload.
14443 * target.c (push_target): New overload, taking an rvalue reference.
14444 * remote.c (remote_target::open_1): Use push_target overload.
14445 * corelow.c (core_target_open): Use push_target overload.
14446
989f3c58
TT
144472019-02-15 Tom Tromey <tromey@adacore.com>
14448
14449 * ravenscar-thread.c (is_ravenscar_task)
14450 (ravenscar_task_is_currently_active): Return bool.
14451 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14452 (_initialize_ravenscar): Remove "(void)".
14453 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14454 Return bool.
14455
6cbcc006
TT
144562019-02-15 Tom Tromey <tromey@adacore.com>
14457
14458 * ravenscar-thread.c (ravenscar_runtime_initializer)
14459 (has_ravenscar_runtime, get_running_thread_id)
14460 (ravenscar_thread_target::resume): Fix indentation.
14461
7657f14d
TT
144622019-02-15 Tom Tromey <tromey@adacore.com>
14463
14464 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14465 from ravenscar_arch_ops.
14466 (sparc_ravenscar_ops::fetch_registers)
14467 (sparc_ravenscar_ops::store_registers): Now methods.
14468 (sparc_ravenscar_prepare_to_store): Remove.
14469 (sparc_ravenscar_ops): Redefine.
14470 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14471 methods and destructor. Remove members.
14472 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14473 (ravenscar_thread_target::store_registers)
14474 (ravenscar_thread_target::prepare_to_store): Update.
14475 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14476 Remove.
14477 (struct ppc_ravenscar_powerpc_ops): Derive from
14478 ravenscar_arch_ops.
14479 (ppc_ravenscar_powerpc_ops::fetch_registers)
14480 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14481 (ppc_ravenscar_powerpc_ops): Redefine.
14482 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14483 (ppc_ravenscar_e500_ops::fetch_registers)
14484 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14485 (ppc_ravenscar_e500_ops): Redefine.
14486 * aarch64-ravenscar-thread.c
14487 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14488 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14489 (aarch64_ravenscar_fetch_registers)
14490 (aarch64_ravenscar_store_registers): Now methods.
14491 (aarch64_ravenscar_ops): Redefine.
14492
5b6ea500
TT
144932019-02-15 Tom Tromey <tromey@adacore.com>
14494
14495 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14496 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14497 (ravenscar_thread_target::stopped_by_watchpoint)
14498 (ravenscar_thread_target::stopped_data_address)
14499 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14500
e397fd39
TT
145012019-02-15 Tom Tromey <tromey@adacore.com>
14502
14503 * ravenscar-thread.c: Fix some typos.
14504
cc12f4a8
TT
145052019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14506 Tom Tromey <tromey@adacore.com>
14507
14508 * ada-lang.c (ada_exception_sal): Change addr_string to a
14509 std::string.
14510 (create_ada_exception_catchpoint): Update.
14511
5f486660
TT
145122019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14513 Tom Tromey <tromey@adacore.com>
14514
14515 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14516 (bp_location_ops): Remove.
14517 (base_breakpoint_allocate_location): Update.
14518 (free_bp_location): Update.
14519 * ada-lang.c (class ada_catchpoint_location)
14520 <ada_catchpoint_location>: Remove ops parameter.
14521 (ada_catchpoint_location_dtor): Remove.
14522 (ada_catchpoint_location_ops): Remove.
14523 (allocate_location_exception): Update.
14524 * breakpoint.h (struct bp_location_ops): Remove.
14525 (class bp_location) <bp_location>: Remove bp_location_ops
14526 parameter.
14527 <~bp_location>: Add destructor.
14528 <ops>: Remove.
14529
b671c7fb
TS
145302019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14531 Pedro Alves <palves@redhat.com>
14532
14533 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14534 'PATH_MAX'.
14535
8071c5ce
DM
145362019-02-14 David Michael <fedora.dm0@gmail.com>
14537 Samuel Thibault <samuel.thibault@gnu.org>
14538 Thomas Schwinge <thomas@codesourcery.com>
14539
14540 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14541 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14542
b1041ae0
TS
145432019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14544
924514e1
TS
14545 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14546 (check_empty): Use "const char *".
14547
c29ee8d4
TS
14548 * gnu-nat.c (gnu_nat_target::detach): Instead of
14549 'detach_inferior (pid)' call
14550 'detach_inferior (find_inferior_pid (pid))'.
14551
6c6ef69f
TS
14552 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14553 'nat/fork-inferior.o'.
14554 * gnu-nat.c: #include "nat/fork-inferior.h".
14555
2d0a338c
TS
14556 * gnu-nat.c (gnu_nat_target::detach): Instead of
14557 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14558 * gnu-nat.h: #include "inf-child.h".
14559 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14560 'i386_gnu_nat_target::fetch_registers'.
14561 (gnu_store_registers): Rename/move to
14562 'i386_gnu_nat_target::store_registers'.
14563
cabb5f06
TS
14564 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14565 * gnu-nat.h (mach_thread_info): New function.
14566 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14567
b1041ae0
TS
14568 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14569
2988d01e
KF
145702019-02-14 Frederic Konrad <konrad@adacore.com>
14571
14572 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14573
c559d709
JB
145742019-02-14 Joel Brobecker <brobecker@adacore.com>
14575
14576 * windows-nat.c (windows_add_thread): Add new parameter
14577 "main_thread_p" with default value set to false. Update
14578 function documentation as well as all callers.
14579 (windows_delete_thread): Likewise.
14580 (fake_create_process): Update call to windows_add_thread.
14581 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14582 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14583 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14584 call to windows_delete_thread.
14585
007024cc
SM
145862019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14587
14588 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14589
f62318e9
JB
145902019-02-12 John Baldwin <jhb@FreeBSD.org>
14591
14592 * symfile.c (find_separate_debug_file): Use canonical path of
14593 sysroot with child_path instead of gdb_sysroot if it is valid.
14594
cd4b7848
JB
145952019-02-12 John Baldwin <jhb@FreeBSD.org>
14596
14597 * symfile.c (find_separate_debug_file): Use child_path to
14598 determine if an object file is under a sysroot.
14599
efac4bfe
JB
146002019-02-12 John Baldwin <jhb@FreeBSD.org>
14601
14602 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14603 unittests/child-path-selftests.c.
14604 * common/pathstuff.c (child_path): New function.
14605 * common/pathstuff.h (child_path): New prototype.
14606 * unittests/child-path-selftests.c: New file.
14607
402d2bfe
JB
146082019-02-12 John Baldwin <jhb@FreeBSD.org>
14609
14610 * symfile.c (find_separate_debug_file): Look for separate debug
14611 files in debug directories under the sysroot.
14612
1ed9f74e
PW
146132019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14614
14615 * symtab.h (struct minimal_symbol data_p): New const method.
14616 (struct minimal_symbol text_p): Likewise.
14617 * symtab.c (output_source_filename): Use file name style
14618 to print file name.
14619 (print_symbol_info): Likewise.
14620 (print_msymbol_info): Use address style to print addresses.
14621 Use function name style to print executable text symbols.
14622 (expand_symtab_containing_pc): Use data_p.
14623 (find_pc_sect_compunit_symtab): Likewise.
14624
2636d81d
PW
146252019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14626
14627 * breakpoint.c (describe_other_breakpoints): Use address style
14628 to print addresses.
14629 (say_where): Likewise.
14630
ac8c53cc
PW
146312019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14632
14633 * ada-typeprint.c (print_func_type): Print function name
14634 style to print function name.
14635 * c-typeprint.c (c_print_type_1): Likewise.
14636
ea638c43
AH
146372019-02-11 Alan Hayward <alan.hayward@arm.com>
14638
14639 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14640 for execve.
14641
ab759ca8
PW
146422019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14643
14644 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14645 type_stack.
14646
aff29d1c
JB
146472019-02-10 Joel Brobecker <brobecker@adacore.com>
14648
14649 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14650 TYPE_CODE_REF types.
14651
617126bc
JW
146522019-02-08 Jim Wilson <jimw@sifive.com>
14653
14654 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14655 (riscv_linux_fregset): New.
14656 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14657
46e3ed7f
TT
146582019-02-07 Tom Tromey <tom@tromey.com>
14659
14660 * thread.c (thread_cancel_execution_command): Update.
14661 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14662 methods.
14663 (struct thread_fsm_ops): Remove.
14664 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14665 (thread_fsm_should_stop, thread_fsm_return_value)
14666 (thread_fsm_set_finished, thread_fsm_finished_p)
14667 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14668 Don't declare.
14669 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14670 * infrun.c (clear_proceed_status_thread)
14671 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14672 (print_stop_event): Update.
14673 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14674 Add constructor.
14675 (step_command_fsm_ops): Remove.
14676 (new_step_command_fsm): Remove.
14677 (step_1): Update.
14678 (step_command_fsm::should_stop): Rename from
14679 step_command_fsm_should_stop.
14680 (step_command_fsm::clean_up): Rename from
14681 step_command_fsm_clean_up.
14682 (step_command_fsm::do_async_reply_reason): Rename from
14683 step_command_fsm_async_reply_reason.
14684 (struct until_next_fsm): Inherit from thread_fsm. Add
14685 constructor.
14686 (until_next_fsm_ops): Remove.
14687 (new_until_next_fsm): Remove.
14688 (until_next_fsm::should_stop): Rename from
14689 until_next_fsm_should_stop.
14690 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14691 (until_next_fsm::do_async_reply_reason): Rename from
14692 until_next_fsm_async_reply_reason.
14693 (struct finish_command_fsm): Inherit from thread_fsm. Add
14694 constructor. Change type of breakpoint.
14695 (finish_command_fsm_ops): Remove.
14696 (new_finish_command_fsm): Remove.
14697 (finish_command_fsm::should_stop): Rename from
14698 finish_command_fsm_should_stop.
14699 (finish_command_fsm::clean_up): Rename from
14700 finish_command_fsm_clean_up.
14701 (finish_command_fsm::return_value): Rename from
14702 finish_command_fsm_return_value.
14703 (finish_command_fsm::do_async_reply_reason): Rename from
14704 finish_command_fsm_async_reply_reason.
14705 (finish_command): Update.
14706 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14707 Add constructor.
14708 (call_thread_fsm_ops): Remove.
14709 (call_thread_fsm::call_thread_fsm): Rename from
14710 new_call_thread_fsm.
14711 (call_thread_fsm::should_stop): Rename from
14712 call_thread_fsm_should_stop.
14713 (call_thread_fsm::should_notify_stop): Rename from
14714 call_thread_fsm_should_notify_stop.
14715 (run_inferior_call, call_function_by_hand_dummy): Update.
14716 * cli/cli-interp.c (should_print_stop_to_console): Update.
14717 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14718 Add constructor. Change type of location_breakpoint,
14719 caller_breakpoint.
14720 (until_break_fsm_ops): Remove.
14721 (new_until_break_fsm): Remove.
14722 (until_break_fsm::should_stop): Rename from
14723 until_break_fsm_should_stop.
14724 (until_break_fsm::clean_up): Rename from
14725 until_break_fsm_clean_up.
14726 (until_break_fsm::do_async_reply_reason): Rename from
14727 until_break_fsm_async_reply_reason.
14728 (until_break_command): Update.
14729 * thread-fsm.c: Remove.
14730 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14731
1a5c2598
TT
147322019-02-07 Tom Tromey <tom@tromey.com>
14733
14734 * yy-remap.h: Add include guard.
14735 * xtensa-tdep.h: Add include guard.
14736 * xcoffread.h: Rename include guard.
14737 * varobj-iter.h: Add include guard.
14738 * tui/tui.h: Rename include guard.
14739 * tui/tui-winsource.h: Rename include guard.
14740 * tui/tui-wingeneral.h: Rename include guard.
14741 * tui/tui-windata.h: Rename include guard.
14742 * tui/tui-win.h: Rename include guard.
14743 * tui/tui-stack.h: Rename include guard.
14744 * tui/tui-source.h: Rename include guard.
14745 * tui/tui-regs.h: Rename include guard.
14746 * tui/tui-out.h: Rename include guard.
14747 * tui/tui-layout.h: Rename include guard.
14748 * tui/tui-io.h: Rename include guard.
14749 * tui/tui-hooks.h: Rename include guard.
14750 * tui/tui-file.h: Rename include guard.
14751 * tui/tui-disasm.h: Rename include guard.
14752 * tui/tui-data.h: Rename include guard.
14753 * tui/tui-command.h: Rename include guard.
14754 * tic6x-tdep.h: Add include guard.
14755 * target/waitstatus.h: Rename include guard.
14756 * target/wait.h: Rename include guard.
14757 * target/target.h: Rename include guard.
14758 * target/resume.h: Rename include guard.
14759 * target-float.h: Rename include guard.
14760 * stabsread.h: Add include guard.
14761 * rs6000-tdep.h: Add include guard.
14762 * riscv-fbsd-tdep.h: Add include guard.
14763 * regformats/regdef.h: Rename include guard.
14764 * record.h: Rename include guard.
14765 * python/python.h: Rename include guard.
14766 * python/python-internal.h: Rename include guard.
14767 * python/py-stopevent.h: Rename include guard.
14768 * python/py-ref.h: Rename include guard.
14769 * python/py-record.h: Rename include guard.
14770 * python/py-record-full.h: Rename include guard.
14771 * python/py-record-btrace.h: Rename include guard.
14772 * python/py-instruction.h: Rename include guard.
14773 * python/py-events.h: Rename include guard.
14774 * python/py-event.h: Rename include guard.
14775 * procfs.h: Add include guard.
14776 * proc-utils.h: Add include guard.
14777 * p-lang.h: Add include guard.
14778 * or1k-tdep.h: Rename include guard.
14779 * observable.h: Rename include guard.
14780 * nto-tdep.h: Rename include guard.
14781 * nat/x86-linux.h: Rename include guard.
14782 * nat/x86-linux-dregs.h: Rename include guard.
14783 * nat/x86-gcc-cpuid.h: Add include guard.
14784 * nat/x86-dregs.h: Rename include guard.
14785 * nat/x86-cpuid.h: Rename include guard.
14786 * nat/ppc-linux.h: Rename include guard.
14787 * nat/mips-linux-watch.h: Rename include guard.
14788 * nat/linux-waitpid.h: Rename include guard.
14789 * nat/linux-ptrace.h: Rename include guard.
14790 * nat/linux-procfs.h: Rename include guard.
14791 * nat/linux-osdata.h: Rename include guard.
14792 * nat/linux-nat.h: Rename include guard.
14793 * nat/linux-namespaces.h: Rename include guard.
14794 * nat/linux-btrace.h: Rename include guard.
14795 * nat/glibc_thread_db.h: Rename include guard.
14796 * nat/gdb_thread_db.h: Rename include guard.
14797 * nat/gdb_ptrace.h: Rename include guard.
14798 * nat/fork-inferior.h: Rename include guard.
14799 * nat/amd64-linux-siginfo.h: Rename include guard.
14800 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14801 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14802 * nat/aarch64-linux.h: Rename include guard.
14803 * nat/aarch64-linux-hw-point.h: Rename include guard.
14804 * mn10300-tdep.h: Add include guard.
14805 * mips-linux-tdep.h: Add include guard.
14806 * mi/mi-parse.h: Rename include guard.
14807 * mi/mi-out.h: Rename include guard.
14808 * mi/mi-main.h: Rename include guard.
14809 * mi/mi-interp.h: Rename include guard.
14810 * mi/mi-getopt.h: Rename include guard.
14811 * mi/mi-console.h: Rename include guard.
14812 * mi/mi-common.h: Rename include guard.
14813 * mi/mi-cmds.h: Rename include guard.
14814 * mi/mi-cmd-break.h: Rename include guard.
14815 * m2-lang.h: Add include guard.
14816 * location.h: Rename include guard.
14817 * linux-record.h: Rename include guard.
14818 * linux-nat.h: Add include guard.
14819 * linux-fork.h: Add include guard.
14820 * i386-darwin-tdep.h: Rename include guard.
14821 * hppa-linux-offsets.h: Add include guard.
14822 * guile/guile.h: Rename include guard.
14823 * guile/guile-internal.h: Rename include guard.
14824 * gnu-nat.h: Rename include guard.
14825 * gdb-stabs.h: Rename include guard.
14826 * frv-tdep.h: Add include guard.
14827 * f-lang.h: Add include guard.
14828 * event-loop.h: Add include guard.
14829 * darwin-nat.h: Rename include guard.
14830 * cp-abi.h: Rename include guard.
14831 * config/sparc/nm-sol2.h: Rename include guard.
14832 * config/nm-nto.h: Rename include guard.
14833 * config/nm-linux.h: Add include guard.
14834 * config/i386/nm-i386gnu.h: Rename include guard.
14835 * config/djgpp/nl_types.h: Rename include guard.
14836 * config/djgpp/langinfo.h: Rename include guard.
14837 * compile/gcc-cp-plugin.h: Add include guard.
14838 * compile/gcc-c-plugin.h: Add include guard.
14839 * compile/compile.h: Rename include guard.
14840 * compile/compile-object-run.h: Rename include guard.
14841 * compile/compile-object-load.h: Rename include guard.
14842 * compile/compile-internal.h: Rename include guard.
14843 * compile/compile-cplus.h: Rename include guard.
14844 * compile/compile-c.h: Rename include guard.
14845 * common/xml-utils.h: Rename include guard.
14846 * common/x86-xstate.h: Rename include guard.
14847 * common/version.h: Rename include guard.
14848 * common/vec.h: Rename include guard.
14849 * common/tdesc.h: Rename include guard.
14850 * common/selftest.h: Rename include guard.
14851 * common/scoped_restore.h: Rename include guard.
14852 * common/scoped_mmap.h: Rename include guard.
14853 * common/scoped_fd.h: Rename include guard.
14854 * common/safe-iterator.h: Rename include guard.
14855 * common/run-time-clock.h: Rename include guard.
14856 * common/refcounted-object.h: Rename include guard.
14857 * common/queue.h: Rename include guard.
14858 * common/ptid.h: Rename include guard.
14859 * common/print-utils.h: Rename include guard.
14860 * common/preprocessor.h: Rename include guard.
14861 * common/pathstuff.h: Rename include guard.
14862 * common/observable.h: Rename include guard.
14863 * common/netstuff.h: Rename include guard.
14864 * common/job-control.h: Rename include guard.
14865 * common/host-defs.h: Rename include guard.
14866 * common/gdb_wait.h: Rename include guard.
14867 * common/gdb_vecs.h: Rename include guard.
14868 * common/gdb_unlinker.h: Rename include guard.
14869 * common/gdb_unique_ptr.h: Rename include guard.
14870 * common/gdb_tilde_expand.h: Rename include guard.
14871 * common/gdb_sys_time.h: Rename include guard.
14872 * common/gdb_string_view.h: Rename include guard.
14873 * common/gdb_splay_tree.h: Rename include guard.
14874 * common/gdb_setjmp.h: Rename include guard.
14875 * common/gdb_ref_ptr.h: Rename include guard.
14876 * common/gdb_optional.h: Rename include guard.
14877 * common/gdb_locale.h: Rename include guard.
14878 * common/gdb_assert.h: Rename include guard.
14879 * common/filtered-iterator.h: Rename include guard.
14880 * common/filestuff.h: Rename include guard.
14881 * common/fileio.h: Rename include guard.
14882 * common/environ.h: Rename include guard.
14883 * common/common-utils.h: Rename include guard.
14884 * common/common-types.h: Rename include guard.
14885 * common/common-regcache.h: Rename include guard.
14886 * common/common-inferior.h: Rename include guard.
14887 * common/common-gdbthread.h: Rename include guard.
14888 * common/common-exceptions.h: Rename include guard.
14889 * common/common-defs.h: Rename include guard.
14890 * common/common-debug.h: Rename include guard.
14891 * common/cleanups.h: Rename include guard.
14892 * common/buffer.h: Rename include guard.
14893 * common/btrace-common.h: Rename include guard.
14894 * common/break-common.h: Rename include guard.
14895 * cli/cli-utils.h: Rename include guard.
14896 * cli/cli-style.h: Rename include guard.
14897 * cli/cli-setshow.h: Rename include guard.
14898 * cli/cli-script.h: Rename include guard.
14899 * cli/cli-interp.h: Rename include guard.
14900 * cli/cli-decode.h: Rename include guard.
14901 * cli/cli-cmds.h: Rename include guard.
14902 * charset-list.h: Add include guard.
14903 * buildsym-legacy.h: Rename include guard.
14904 * bfin-tdep.h: Add include guard.
14905 * ax.h: Rename include guard.
14906 * arm-linux-tdep.h: Add include guard.
14907 * arm-fbsd-tdep.h: Add include guard.
14908 * arch/xtensa.h: Rename include guard.
14909 * arch/tic6x.h: Add include guard.
14910 * arch/i386.h: Add include guard.
14911 * arch/arm.h: Rename include guard.
14912 * arch/arm-linux.h: Rename include guard.
14913 * arch/arm-get-next-pcs.h: Rename include guard.
14914 * arch/amd64.h: Add include guard.
14915 * arch/aarch64-insn.h: Rename include guard.
14916 * arch-utils.h: Rename include guard.
14917 * annotate.h: Add include guard.
14918 * amd64-darwin-tdep.h: Rename include guard.
14919 * aarch64-linux-tdep.h: Add include guard.
14920 * aarch64-fbsd-tdep.h: Add include guard.
14921 * aarch32-linux-nat.h: Add include guard.
14922
ab9268d2
PW
149232019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14924
14925 * macrotab.c (macro_define_internal): New function that
14926 factorizes macro_define_object_internal and macro_define_function
14927 code.
14928 (macro_define_object_internal): Use macro_define_internal.
14929 (macro_define_function): Likewise.
14930
bb0da2b4
PW
149312019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14932
14933 * macrocmd.c (extract_identifier): Return
14934 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14935 callers.
14936
424eb552
JB
149372019-02-06 John Baldwin <jhb@FreeBSD.org>
14938
14939 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14940
1688cb29
TT
149412019-02-05 Tom Tromey <tom@tromey.com>
14942
14943 * target.c (target_stack::unpush): Move assertion earlier.
14944
b5eba2d8
TT
149452019-01-30 Tom Tromey <tom@tromey.com>
14946
14947 PR python/23615:
14948 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14949 (gdbpy_parse_and_eval): Likewise.
14950 * python/python-internal.h (gdbpy_allow_threads): New class.
14951
7054e2ff
JB
149522019-01-28 John Baldwin <jhb@FreeBSD.org>
14953
14954 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14955 (aarch64_fbsd_fpregmap): Move earlier.
14956 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14957 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14958 instead of individual calls to trad_frame_set_reg_addr.
14959 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14960 earlier.
14961 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14962 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14963 instead of individual calls to trad_frame_set_reg_addr.
14964
36c25ffa
AH
149652019-01-28 Alan Hayward <alan.hayward@arm.com>
14966
14967 * CONTRIBUTE: Replace contribution list with wiki link.
14968
a0707f3c
TT
149692019-01-25 Tom Tromey <tom@tromey.com>
14970
14971 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14972
0747795c
TT
149732019-01-25 Tom Tromey <tom@tromey.com>
14974
14975 * xtensa-linux-nat.c: Fix common/ includes.
14976 * xml-support.h: Fix common/ includes.
14977 * xml-support.c: Fix common/ includes.
14978 * x86-linux-nat.c: Fix common/ includes.
14979 * windows-nat.c: Fix common/ includes.
14980 * varobj.h: Fix common/ includes.
14981 * varobj.c: Fix common/ includes.
14982 * value.c: Fix common/ includes.
14983 * valops.c: Fix common/ includes.
14984 * utils.c: Fix common/ includes.
14985 * unittests/xml-utils-selftests.c: Fix common/ includes.
14986 * unittests/utils-selftests.c: Fix common/ includes.
14987 * unittests/unpack-selftests.c: Fix common/ includes.
14988 * unittests/tracepoint-selftests.c: Fix common/ includes.
14989 * unittests/style-selftests.c: Fix common/ includes.
14990 * unittests/string_view-selftests.c: Fix common/ includes.
14991 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14992 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14993 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14994 * unittests/rsp-low-selftests.c: Fix common/ includes.
14995 * unittests/parse-connection-spec-selftests.c: Fix common/
14996 includes.
14997 * unittests/optional-selftests.c: Fix common/ includes.
14998 * unittests/offset-type-selftests.c: Fix common/ includes.
14999 * unittests/observable-selftests.c: Fix common/ includes.
15000 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15001 * unittests/memrange-selftests.c: Fix common/ includes.
15002 * unittests/memory-map-selftests.c: Fix common/ includes.
15003 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15004 * unittests/function-view-selftests.c: Fix common/ includes.
15005 * unittests/environ-selftests.c: Fix common/ includes.
15006 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15007 * unittests/common-utils-selftests.c: Fix common/ includes.
15008 * unittests/cli-utils-selftests.c: Fix common/ includes.
15009 * unittests/array-view-selftests.c: Fix common/ includes.
15010 * ui-file.c: Fix common/ includes.
15011 * tui/tui-io.c: Fix common/ includes.
15012 * tracepoint.h: Fix common/ includes.
15013 * tracepoint.c: Fix common/ includes.
15014 * tracefile-tfile.c: Fix common/ includes.
15015 * top.h: Fix common/ includes.
15016 * top.c: Fix common/ includes.
15017 * thread.c: Fix common/ includes.
15018 * target/waitstatus.h: Fix common/ includes.
15019 * target/waitstatus.c: Fix common/ includes.
15020 * target.h: Fix common/ includes.
15021 * target.c: Fix common/ includes.
15022 * target-memory.c: Fix common/ includes.
15023 * target-descriptions.c: Fix common/ includes.
15024 * symtab.h: Fix common/ includes.
15025 * symfile.c: Fix common/ includes.
15026 * stap-probe.c: Fix common/ includes.
15027 * spu-linux-nat.c: Fix common/ includes.
15028 * sparc-nat.c: Fix common/ includes.
15029 * source.c: Fix common/ includes.
15030 * solib.c: Fix common/ includes.
15031 * solib-target.c: Fix common/ includes.
15032 * ser-unix.c: Fix common/ includes.
15033 * ser-tcp.c: Fix common/ includes.
15034 * ser-pipe.c: Fix common/ includes.
15035 * ser-base.c: Fix common/ includes.
15036 * selftest-arch.c: Fix common/ includes.
15037 * s12z-tdep.c: Fix common/ includes.
15038 * rust-exp.y: Fix common/ includes.
15039 * rs6000-aix-tdep.c: Fix common/ includes.
15040 * riscv-tdep.c: Fix common/ includes.
15041 * remote.c: Fix common/ includes.
15042 * remote-notif.h: Fix common/ includes.
15043 * remote-fileio.h: Fix common/ includes.
15044 * remote-fileio.c: Fix common/ includes.
15045 * regcache.h: Fix common/ includes.
15046 * regcache.c: Fix common/ includes.
15047 * record-btrace.c: Fix common/ includes.
15048 * python/python.c: Fix common/ includes.
15049 * python/py-type.c: Fix common/ includes.
15050 * python/py-inferior.c: Fix common/ includes.
15051 * progspace.h: Fix common/ includes.
15052 * producer.c: Fix common/ includes.
15053 * procfs.c: Fix common/ includes.
15054 * proc-api.c: Fix common/ includes.
15055 * printcmd.c: Fix common/ includes.
15056 * ppc-linux-nat.c: Fix common/ includes.
15057 * parser-defs.h: Fix common/ includes.
15058 * osdata.c: Fix common/ includes.
15059 * obsd-nat.c: Fix common/ includes.
15060 * nat/x86-linux.c: Fix common/ includes.
15061 * nat/x86-linux-dregs.c: Fix common/ includes.
15062 * nat/x86-dregs.h: Fix common/ includes.
15063 * nat/x86-dregs.c: Fix common/ includes.
15064 * nat/ppc-linux.c: Fix common/ includes.
15065 * nat/mips-linux-watch.h: Fix common/ includes.
15066 * nat/mips-linux-watch.c: Fix common/ includes.
15067 * nat/linux-waitpid.c: Fix common/ includes.
15068 * nat/linux-ptrace.h: Fix common/ includes.
15069 * nat/linux-ptrace.c: Fix common/ includes.
15070 * nat/linux-procfs.c: Fix common/ includes.
15071 * nat/linux-personality.c: Fix common/ includes.
15072 * nat/linux-osdata.c: Fix common/ includes.
15073 * nat/linux-namespaces.c: Fix common/ includes.
15074 * nat/linux-btrace.h: Fix common/ includes.
15075 * nat/linux-btrace.c: Fix common/ includes.
15076 * nat/fork-inferior.c: Fix common/ includes.
15077 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15078 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15079 * nat/aarch64-linux.c: Fix common/ includes.
15080 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15081 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15082 * namespace.h: Fix common/ includes.
15083 * mips-linux-tdep.c: Fix common/ includes.
15084 * minsyms.c: Fix common/ includes.
15085 * mi/mi-parse.h: Fix common/ includes.
15086 * mi/mi-main.c: Fix common/ includes.
15087 * mi/mi-cmd-env.c: Fix common/ includes.
15088 * memrange.h: Fix common/ includes.
15089 * memattr.c: Fix common/ includes.
15090 * maint.h: Fix common/ includes.
15091 * maint.c: Fix common/ includes.
15092 * main.c: Fix common/ includes.
15093 * machoread.c: Fix common/ includes.
15094 * location.c: Fix common/ includes.
15095 * linux-thread-db.c: Fix common/ includes.
15096 * linux-nat.c: Fix common/ includes.
15097 * linux-fork.c: Fix common/ includes.
15098 * inline-frame.c: Fix common/ includes.
15099 * infrun.c: Fix common/ includes.
15100 * inflow.c: Fix common/ includes.
15101 * inferior.h: Fix common/ includes.
15102 * inferior.c: Fix common/ includes.
15103 * infcmd.c: Fix common/ includes.
15104 * inf-ptrace.c: Fix common/ includes.
15105 * inf-child.c: Fix common/ includes.
15106 * ia64-linux-nat.c: Fix common/ includes.
15107 * i387-tdep.c: Fix common/ includes.
15108 * i386-tdep.c: Fix common/ includes.
15109 * i386-linux-tdep.c: Fix common/ includes.
15110 * i386-linux-nat.c: Fix common/ includes.
15111 * i386-go32-tdep.c: Fix common/ includes.
15112 * i386-fbsd-tdep.c: Fix common/ includes.
15113 * i386-fbsd-nat.c: Fix common/ includes.
15114 * guile/scm-type.c: Fix common/ includes.
15115 * guile/guile.c: Fix common/ includes.
15116 * go32-nat.c: Fix common/ includes.
15117 * gnu-nat.c: Fix common/ includes.
15118 * gdbthread.h: Fix common/ includes.
15119 * gdbarch-selftests.c: Fix common/ includes.
15120 * gdb_usleep.c: Fix common/ includes.
15121 * gdb_select.h: Fix common/ includes.
15122 * gdb_bfd.c: Fix common/ includes.
15123 * gcore.c: Fix common/ includes.
15124 * fork-child.c: Fix common/ includes.
15125 * findvar.c: Fix common/ includes.
15126 * fbsd-nat.c: Fix common/ includes.
15127 * event-top.c: Fix common/ includes.
15128 * event-loop.c: Fix common/ includes.
15129 * dwarf2read.c: Fix common/ includes.
15130 * dwarf2loc.c: Fix common/ includes.
15131 * dwarf2-frame.c: Fix common/ includes.
15132 * dwarf-index-cache.c: Fix common/ includes.
15133 * dtrace-probe.c: Fix common/ includes.
15134 * disasm-selftests.c: Fix common/ includes.
15135 * defs.h: Fix common/ includes.
15136 * csky-tdep.c: Fix common/ includes.
15137 * cp-valprint.c: Fix common/ includes.
15138 * cp-support.h: Fix common/ includes.
15139 * cp-support.c: Fix common/ includes.
15140 * corelow.c: Fix common/ includes.
15141 * completer.h: Fix common/ includes.
15142 * completer.c: Fix common/ includes.
15143 * compile/compile.c: Fix common/ includes.
15144 * compile/compile-loc2c.c: Fix common/ includes.
15145 * compile/compile-cplus-types.c: Fix common/ includes.
15146 * compile/compile-cplus-symbols.c: Fix common/ includes.
15147 * command.h: Fix common/ includes.
15148 * cli/cli-dump.c: Fix common/ includes.
15149 * cli/cli-cmds.c: Fix common/ includes.
15150 * charset.c: Fix common/ includes.
15151 * build-id.c: Fix common/ includes.
15152 * btrace.h: Fix common/ includes.
15153 * btrace.c: Fix common/ includes.
15154 * breakpoint.h: Fix common/ includes.
15155 * breakpoint.c: Fix common/ includes.
15156 * ax.h:
15157 (enum agent_op): Fix common/ includes.
15158 * ax-general.c (struct aop_map): Fix common/ includes.
15159 * ax-gdb.c: Fix common/ includes.
15160 * auxv.c: Fix common/ includes.
15161 * auto-load.c: Fix common/ includes.
15162 * arm-tdep.c: Fix common/ includes.
15163 * arch/riscv.c: Fix common/ includes.
15164 * arch/ppc-linux-common.c: Fix common/ includes.
15165 * arch/i386.c: Fix common/ includes.
15166 * arch/arm.c: Fix common/ includes.
15167 * arch/arm-linux.c: Fix common/ includes.
15168 * arch/arm-get-next-pcs.c: Fix common/ includes.
15169 * arch/amd64.c: Fix common/ includes.
15170 * arch/aarch64.c: Fix common/ includes.
15171 * arch/aarch64-insn.c: Fix common/ includes.
15172 * arch-utils.c: Fix common/ includes.
15173 * amd64-windows-tdep.c: Fix common/ includes.
15174 * amd64-tdep.c: Fix common/ includes.
15175 * amd64-sol2-tdep.c: Fix common/ includes.
15176 * amd64-obsd-tdep.c: Fix common/ includes.
15177 * amd64-nbsd-tdep.c: Fix common/ includes.
15178 * amd64-linux-tdep.c: Fix common/ includes.
15179 * amd64-linux-nat.c: Fix common/ includes.
15180 * amd64-fbsd-tdep.c: Fix common/ includes.
15181 * amd64-fbsd-nat.c: Fix common/ includes.
15182 * amd64-dicos-tdep.c: Fix common/ includes.
15183 * amd64-darwin-tdep.c: Fix common/ includes.
15184 * agent.c: Fix common/ includes.
15185 * ada-lang.h: Fix common/ includes.
15186 * ada-lang.c: Fix common/ includes.
15187 * aarch64-tdep.c: Fix common/ includes.
15188
2f5c153e
TT
151892019-01-25 Tom Tromey <tom@tromey.com>
15190
15191 * common/create-version.sh: Use common/version.h.
15192
adc6a863
PA
151932019-01-24 Pedro Alves <palves@redhat.com>
15194
15195 * infrun.c (signal_stop, signal_print, signal_program)
15196 (signal_catch, signal_pass): Now arrays instead of pointers.
15197 (update_signals_program_target, do_target_resume)
15198 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15199 * linux-nat.c (linux_nat_target::pass_signals)
15200 (linux_nat_target::create_inferior, linux_nat_target::attach):
15201 Adjust.
15202 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15203 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15204 * procfs.c (procfs_target::pass_signals): Adjust.
15205 * record-full.c (record_full_target::resume): Adjust.
15206 * remote.c (remote_target::pass_signals)
15207 (remote_target::program_signals): Adjust.
15208 * target-debug.h (target_debug_print_signals): Now takes a
15209 gdb::array_view as parameter. Adjust.
15210 * target.h (target_ops) <pass_signals, program_signals>: Replace
15211 pointer and length parameters with gdb::array_view.
15212 (target_pass_signals, target_program_signals): Likewise.
15213 * target-delegates.c: Regenerate.
15214
3046d67a
PA
152152019-01-24 Pedro Alves <palves@redhat.com>
15216
15217 * common/forward-scope-exit.h
15218 (forward_scope_exit::forward_scope_exit): Pass arguments to
15219 m_bind_function directly, instead of creating a std::bind and
15220 copying that.
15221
353229bf
AH
152222019-01-24 Alan Hayward <alan.hayward@arm.com>
15223
15224 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15225 for static members.
15226 (pass_in_v_vfp_candidate): Likewise.
15227
311dc83a
TT
152282019-01-23 Tom Tromey <tom@tromey.com>
15229 Pedro Alves <palves@redhat.com>
15230
15231 * regcache.c (class regcache_invalidator): Remove.
15232 (regcache::raw_write): Use make_scope_exit.
15233
296bd123
TT
152342019-01-23 Tom Tromey <tom@tromey.com>
15235
15236 * ui-out.h (class ui_out_emit_type): Update comment.
15237
979a0d13
TT
152382019-01-23 Tom Tromey <tom@tromey.com>
15239
15240 * infrun.c (fetch_inferior_event): Update comment.
15241
d238133d
TT
152422019-01-23 Tom Tromey <tom@tromey.com>
15243 Pedro Alves <palves@redhat.com>
15244
15245 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15246 parameter.
15247 (fetch_inferior_event): Use SCOPE_EXIT.
15248
15249
9885e6bb
TT
152502019-01-23 Tom Tromey <tom@tromey.com>
15251 Pedro Alves <palves@redhat.com>
15252
15253 * infrun.c (disable_thread_events): Delete.
15254 (stop_all_threads): Use SCOPE_EXIT.
15255
286526c1
TT
152562019-01-23 Tom Tromey <tom@tromey.com>
15257 Pedro Alves <palves@redhat.com>
15258
15259 * symfile.c: Include forward-scope-exit.h.
15260 (clear_symtab_users_cleanup): Replace forward declaration with
15261 a FORWARD_SCOPE_EXIT.
15262 (syms_from_objfile_1): Use the forward_scope_exit and
15263 gdb::optional instead of cleanup_function.
15264 (reread_symbols): Use the forward_scope_exit instead of
15265 cleanup_function.
15266 (clear_symtab_users_cleanup): Remove function.
15267
1db93f14
TT
152682019-01-23 Tom Tromey <tom@tromey.com>
15269 Pedro Alves <palves@redhat.com>
15270
15271 * linux-nat.c: Include scope-exit.h.
15272 (cleanup_target_stop): Remove.
15273 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15274 SCOPE_EXIT.
15275
2cc83d1e
TT
152762019-01-23 Tom Tromey <tom@tromey.com>
15277 Pedro Alves <palves@redhat.com>
15278
15279 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15280 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15281
694c6bf5
TT
152822019-01-23 Tom Tromey <tom@tromey.com>
15283 Andrew Burgess <andrew.burgess@embecosm.com>
15284 Pedro Alves <palves@redhat.com>
15285
15286 * infrun.c (fetch_inferior_event): Use scope_exit.
15287 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15288 * top.c (execute_command): Use scope_exit.
15289 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15290 * utils.c (do_bpstat_clear_actions_cleanup)
15291 (make_bpstat_clear_actions_cleanup): Remove.
15292
4c41382a
TT
152932019-01-23 Tom Tromey <tom@tromey.com>
15294 Pedro Alves <palves@redhat.com>
15295
15296 * infrun.c: Include "common/scope-exit.h"
15297 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15298 (wait_for_inferior): Use SCOPE_EXIT.
15299 (fetch_inferior_event): Use scope_exit.
15300
89f8fb50
TT
153012019-01-23 Tom Tromey <tom@tromey.com>
15302 Pedro Alves <palves@redhat.com>
15303
15304 * breakpoint.c (create_breakpoint): Remove cleanup.
15305
5419bdae
TT
153062019-01-23 Tom Tromey <tom@tromey.com>
15307 Andrew Burgess <andrew.burgess@embecosm.com>
15308 Pedro Alves <palves@redhat.com>
15309
e587ef42
PA
153102019-01-23 Pedro Alves <palves@redhat.com>
15311
15312 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15313
77f0e74c
PA
153142019-01-23 Pedro Alves <palves@redhat.com>
15315 Andrew Burgess <andrew.burgess@embecosm.com>
15316
15317 * gdbthread.h: Include "common/forward-scope-exit.h".
15318 (scoped_finish_thread_state): Redefine custom class in terms of
15319 forward_scope_exit.
15320
5b9b3e53
PA
153212019-01-23 Pedro Alves <palves@redhat.com>
15322 Andrew Burgess <andrew.burgess@embecosm.com>
15323
15324 * common/forward-scope-exit.h: New file.
15325
54b65c9b
PA
153262019-01-23 Pedro Alves <palves@redhat.com>
15327 Andrew Burgess <andrew.burgess@embecosm.com>
15328 Tom Tromey <tom@tromey.com>
15329
15330 * common/scope-exit.h: New file.
15331
cf08fb29
PA
153322019-01-23 Pedro Alves <palves@redhat.com>
15333
15334 * common/preprocessor.h (ESC): Rename to ...
15335 (ESC_PARENS): ... this.
15336 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15337 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15338
ae73e2e2
TT
153392019-01-23 Tom Tromey <tom@tromey.com>
15340
15341 * language.h (class scoped_switch_to_sym_language_if_auto):
15342 Initialize m_lang in both cases.
15343
6594e122
AH
153442019-01-23 Alan Hayward <alan.hayward@arm.com>
15345
15346 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15347 with XCNEW.
15348
a7c9855d
TT
153492019-01-22 Tom Tromey <tom@tromey.com>
15350
15351 * corelow.c: Do not include sys/file.h.
15352
93cc1d53
TT
153532019-01-22 Tom Tromey <tom@tromey.com>
15354
15355 * tui/tui-wingeneral.h: Include gdb_curses.h.
15356
38561778
TT
153572019-01-22 Tom Tromey <tom@tromey.com>
15358
15359 * source-cache.h (class source_cache) <get_source_lines,
15360 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15361
37b3ab5b
TT
153622019-01-22 Tom Tromey <tom@tromey.com>
15363
15364 * remote-fileio.h (struct remote_target): Declare.
15365
3fabc016
TT
153662019-01-22 Tom Tromey <tom@tromey.com>
15367
15368 * python/py-arch.c: Do not include py-ref.h.
15369 * python/py-bpevent.c: Do not include py-ref.h.
15370 * python/py-cmd.c: Do not include py-ref.h.
15371 * python/py-continueevent.c: Do not include py-ref.h.
15372 * python/py-event.h: Do not include py-ref.h.
15373 * python/py-evtregistry.c: Do not include py-ref.h.
15374 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15375 * python/py-frame.c: Do not include py-ref.h.
15376 * python/py-framefilter.c: Do not include py-ref.h.
15377 * python/py-function.c: Do not include py-ref.h.
15378 * python/py-infevents.c: Do not include py-ref.h.
15379 * python/py-linetable.c: Do not include py-ref.h.
15380 * python/py-objfile.c: Do not include py-ref.h.
15381 * python/py-param.c: Do not include py-ref.h.
15382 * python/py-prettyprint.c: Do not include py-ref.h.
15383 * python/py-progspace.c: Do not include py-ref.h.
15384 * python/py-symbol.c: Do not include py-ref.h.
15385 * python/py-symtab.c: Do not include py-ref.h.
15386 * python/py-type.c: Do not include py-ref.h.
15387 * python/py-unwind.c: Do not include py-ref.h.
15388 * python/py-utils.c: Do not include py-ref.h.
15389 * python/py-value.c: Do not include py-ref.h.
15390 * python/py-varobj.c: Do not include py-ref.h.
15391 * python/py-xmethods.c: Do not include py-ref.h.
15392 * python/python.c: Do not include py-ref.h.
15393 * varobj.c: Do not include py-ref.h.
15394
6b4d7774
TT
153952019-01-22 Tom Tromey <tom@tromey.com>
15396
15397 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15398 keyword for bcache.
15399
7af7e9b5
TT
154002019-01-22 Tom Tromey <tom@tromey.com>
15401
15402 * compile/compile-cplus-types.c: Remove a comment by #include.
15403
951d1049
TT
154042019-01-22 Tom Tromey <tom@tromey.com>
15405
15406 * compile/gcc-c-plugin.h: Include compile-internal.h.
15407
d65d5705
TT
154082019-01-22 Tom Tromey <tom@tromey.com>
15409
15410 * stabsread.c (EXTERN): Do not define.
15411 (symnum, next_symbol_text_func, processing_gcc_compilation)
15412 (within_function, global_sym_chain, global_stabs)
15413 (previous_stab_code, this_object_header_files)
15414 (n_this_object_header_files)
15415 (n_allocated_this_object_header_files): Define.
15416 * stabsread.h (EXTERN): Never define. Use "extern".
15417
b6fb1ee5
PW
154182019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15419
15420 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15421 history_value.
15422
be6d4f74
TT
154232019-01-21 Tom Tromey <tom@tromey.com>
15424
15425 * ui-out.c: Fix includes.
15426 * tui/tui-source.c: Fix includes.
15427 * target.c: Fix includes.
15428 * remote.c: Fix includes.
15429 * regcache.c: Fix includes.
15430 * python/py-block.c: Fix includes.
15431 * printcmd.c: Fix includes.
15432 * or1k-tdep.c: Fix includes.
15433 * mi/mi-main.c: Fix includes.
15434 * m32r-tdep.c: Fix includes.
15435 * csky-tdep.c: Fix includes.
15436 * compile/compile-cplus-types.c: Fix includes.
15437 * cli/cli-interp.c: Fix includes.
15438
73021deb
AH
154392019-01-21 Alan Hayward <alan.hayward@arm.com>
15440
15441 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15442 for padding.
15443
7932255d
TT
154442019-01-16 Tom Tromey <tom@tromey.com>
15445
15446 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15447 earlier.
15448 (struct objfile) <msymbols_range>: Move from top level.
15449 <msymbols>: New method.
15450 (class objfile_msymbols): Remove.
15451 * symtab.c (default_collect_symbol_completion_matches_break_on):
15452 Update.
15453 * symmisc.c (dump_msymbols): Update.
15454 * stabsread.c (scan_file_globals): Update.
15455 * objc-lang.c (info_selectors_command, info_classes_command)
15456 (find_methods): Update.
15457 * minsyms.c (find_solib_trampoline_target): Update.
15458 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15459 * coffread.c (coff_symfile_read): Update.
15460 * ada-lang.c (ada_lookup_simple_minsym)
15461 (ada_collect_symbol_completion_matches): Update.
15462
604b1bfb
TT
154632019-01-16 Tom Tromey <tom@tromey.com>
15464
15465 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15466 type. Remove no-argument constructor.
15467 <iterator::operator++>: Simplify.
15468 <begin>: Update.
15469 <end>: Use minimal_symbol_count.
15470
f252c6d5
TT
154712019-01-16 Tom Tromey <tom@tromey.com>
15472
15473 * objfiles.h (struct objfile) <psymtabs>: New method.
15474 (class objfile_psymtabs): Remove.
15475 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15476 typedef.
15477 <range>: New method.
15478 (require_partial_symbols): Change return type.
15479 * psymtab.c (require_partial_symbols)
15480 (psym_expand_symtabs_matching): Update.
15481 * mdebugread.c (parse_partial_symbols): Update.
15482 * dbxread.c (dbx_end_psymtab): Update.
15483
b669c953
TT
154842019-01-15 Tom Tromey <tom@tromey.com>
15485
15486 * symtab.c (lookup_objfile_from_block)
15487 (lookup_symbol_in_objfile_symtabs)
15488 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15489 (find_line_symtab, info_sources_command)
15490 (default_collect_symbol_completion_matches_break_on)
15491 (make_source_files_completion_list): Update.
15492 * symmisc.c (print_objfile_statistics, dump_objfile)
15493 (maintenance_print_symbols, maintenance_info_symtabs)
15494 (maintenance_check_symtabs, maintenance_info_line_tables):
15495 Update.
15496 * source.c (select_source_symtab)
15497 (forget_cached_source_info_for_objfile): Update.
15498 * objfiles.h (class objfile_compunits): Remove.
15499 (struct objfile) <compunits_range>: New typedef.
15500 (compunits): New method.
15501 * objfiles.c (objfile_relocate1): Update.
15502 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15503 * maint.c (count_symtabs_and_blocks): Update.
15504 * linespec.c (iterate_over_all_matching_symtabs): Update.
15505 * cp-support.c (add_symbol_overload_list_qualified): Update.
15506 * coffread.c (coff_symtab_read): Update.
15507 * ada-lang.c (add_nonlocal_symbols)
15508 (ada_collect_symbol_completion_matches)
15509 (ada_add_global_exceptions): Update.
15510
7e955d83
TT
155112019-01-15 Tom Tromey <tom@tromey.com>
15512
15513 * progspace.h (program_space) <objfiles_safe_range>: New
15514 typedef.
15515 <objfiles_safe>: New method.
15516 * objfiles.h (class all_objfiles_safe): Remove.
15517 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15518 * jit.c (jit_inferior_exit_hook): Update.
15519
2030c079
TT
155202019-01-17 Tom Tromey <tom@tromey.com>
15521
15522 * progspace.h (program_space) <objfiles_range>: New typedef.
15523 <objfiles>: New method.
15524 <objfiles_head>: Rename from objfiles.
15525 (object_files): Update.
15526 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15527 * guile/scm-pretty-print.c
15528 (ppscm_find_pretty_printer_from_objfiles): Update.
15529 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15530 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15531 Update.
15532 * python/py-progspace.c (pspy_get_objfiles): Update.
15533 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15534 Update.
15535 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15536 (objfpy_lookup_objfile_by_build_id): Update.
15537 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15538 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15539 Update.
15540 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15541 (expand_symtab_containing_pc, lookup_objfile_from_block)
15542 (lookup_static_symbol, basic_lookup_transparent_type)
15543 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15544 (find_line_symtab, info_sources_command)
15545 (default_collect_symbol_completion_matches_break_on)
15546 (make_source_files_completion_list, find_main_name): Update.
15547 * symmisc.c (print_symbol_bcache_statistics)
15548 (print_objfile_statistics, maintenance_print_symbols)
15549 (maintenance_print_msymbols, maintenance_print_objfiles)
15550 (maintenance_info_symtabs, maintenance_check_symtabs)
15551 (maintenance_expand_symtabs, maintenance_info_line_tables):
15552 Update.
15553 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15554 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15555 (map_overlay_command, unmap_overlay_command)
15556 (simple_overlay_update, expand_symtabs_matching)
15557 (map_symbol_filenames): Update.
15558 * symfile-debug.c (set_debug_symfile): Update.
15559 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15560 Update.
15561 * source.c (select_source_symtab, forget_cached_source_info):
15562 Update.
15563 * solib.c (solib_read_symbols): Update.
15564 * solib-spu.c (append_ocl_sos): Update.
15565 * psymtab.c (maintenance_print_psymbols)
15566 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15567 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15568 * printcmd.c (info_symbol_command): Update.
15569 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15570 Update.
15571 * objfiles.h (class all_objfiles): Remove.
15572 * objfiles.c (have_partial_symbols, have_full_symbols)
15573 (have_minimal_symbols, qsort_cmp, update_section_map)
15574 (shared_objfile_contains_address_p)
15575 (default_iterate_over_objfiles_in_search_order): Update.
15576 * objc-lang.c (info_selectors_command, info_classes_command)
15577 (find_methods): Update.
15578 * minsyms.c (find_solib_trampoline_target): Update.
15579 * maint.c (maintenance_info_sections)
15580 (maintenance_translate_address, count_symtabs_and_blocks):
15581 Update.
15582 * main.c (captured_main_1): Update.
15583 * linux-thread-db.c (try_thread_db_load_from_pdir)
15584 (has_libpthread): Update.
15585 * linespec.c (iterate_over_all_matching_symtabs)
15586 (search_minsyms_for_name): Update.
15587 * jit.c (jit_find_objf_with_entry_addr): Update.
15588 * hppa-tdep.c (find_unwind_entry)
15589 (hppa_lookup_stub_minimal_symbol): Update.
15590 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15591 Update.
15592 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15593 (elf_gnu_ifunc_resolve_by_got): Update.
15594 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15595 * dwarf-index-write.c (save_gdb_index_command): Update.
15596 * cp-support.c (add_symbol_overload_list_qualified): Update.
15597 * breakpoint.c (create_overlay_event_breakpoint)
15598 (create_longjmp_master_breakpoint)
15599 (create_std_terminate_master_breakpoint)
15600 (create_exception_master_breakpoint): Update.
15601 * blockframe.c (find_pc_partial_function): Update.
15602 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15603 (ada_collect_symbol_completion_matches)
15604 (ada_add_global_exceptions): Update.
15605
776489e0
TT
156062019-01-17 Tom Tromey <tom@tromey.com>
15607
15608 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15609 declare VEC.
15610 (solib_target_parse_libraries): Change return type.
15611 (library_list_start_segment, library_list_start_section)
15612 (library_list_end_library, library_list_start_library); Update.
15613 (solib_target_free_library_list): Remove.
15614 (solib_target_parse_libraries): Remove cleanup. Change return
15615 type.
15616 (solib_target_current_sos): Update.
15617
6471e7d2
TT
156182019-01-17 Tom Tromey <tromey@bapiya>
15619
15620 * valprint.c: Replace "the the" with "the".
15621 * symtab.c: Replace "the the" with "the".
15622 * solib.c: Replace "the the" with "the".
15623 * solib-dsbt.c: Replace "the the" with "the".
15624 * linespec.c: Replace "the the" with "the".
15625 * dwarf2loc.h: Replace "the the" with "the".
15626 * amd64-windows-tdep.c: Replace "the the" with "the".
15627 * aarch64-tdep.c: Replace "the the" with "the".
15628
c24bdb02
KS
156292019-01-16 Keith Seitz <keiths@redhat.com>
15630
15631 PR gdb/23773
15632 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15633 <builder>: Rename to ..
15634 <m_builder>: ... this and make private.
15635 (dwarf2_cu::get_builder): New method. Change all users of
15636 `builder' to use this method.
15637 (dwarf2_start_symtab): Move to ...
15638 (dwarf2_cu::start_symtab): ... here. Update all callers
15639 (setup_type_unit_groups): Move to ...
15640 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15641 callers.
15642 (dwarf2_cu::reset_builder): New method.
15643 (process_full_compunit, process_full_type_unit): Use
15644 dwarf2_cu::reset_builder.
15645 (follow_die_offset): Record the ancestor CU if it is different
15646 from the followed DIE's CU.
15647 (follow_die_sig_1): Likewise.
15648
8d64371b
TT
156492019-01-15 Tom Tromey <tom@tromey.com>
15650
15651 * remote.c (class remote_state) <buf>: Now a char_vector.
15652 <buf_size>: Remove.
15653 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15654 parameter.
15655 (remote_target::getpkt_or_notif_sane_1)
15656 (remote_target::getpkt_sane)
15657 (remote_target::getpkt_or_notif_sane): Likewise.
15658 (class remote_target) <putpkt>: New overload.
15659 (remote_target::read_frame): Change type of "buf_p". Remove
15660 sizeof_p parameter.
15661 (packet_ok): New overload.
15662 (packet_check_result): New overload.
15663 Update all uses.
15664
bb277751
TT
156652019-01-14 Tom Tromey <tom@tromey.com>
15666
15667 * remote-notif.c (handle_notification, remote_notif_ack)
15668 (remote_notif_parse): Make "buf" const.
15669 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15670 const.
15671 (remote_notif_parse, remote_notif_ack, handle_notification):
15672 Likewise.
15673 * remote.c (remote_notif_stop_parse): Make "buf" const.
15674 (remote_target::remote_parse_stop_reply): Make "buf" const.
15675 (remote_notif_stop_ack): Make "buf" const.
15676
05be00a8
TT
156772019-01-14 Tom Tromey <tom@tromey.com>
15678
15679 * remote.c (remote_console_output): Make parameter const.
15680
491adeca
TT
156812019-01-14 Tom Tromey <tom@tromey.com>
15682
15683 * target-debug.h (target_debug_print_signals): Constify.
15684 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15685 * procfs.c (procfs_target::pass_signals): Update.
15686 * linux-nat.c (linux_nat_target::pass_signals): Update.
15687 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15688 * target-delegates.c: Rebuild.
15689 * remote.c (remote_target::program_signals): Update.
15690 (remote_target::pass_signals): Update.
15691 * target.c (target_pass_signals): Constify argument.
15692 (target_program_signals): Likewise.
15693 * target.h (struct target_ops) <pass_signals, program_signals>:
15694 Constify argument.
15695 (target_pass_signals, target_program_signals): Constify argument.
15696
bbd94648
TT
156972019-01-14 Tom Tromey <tom@tromey.com>
15698
15699 PR tui/28819:
15700 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15701
6f072a10
PFC
157022019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15703
15704 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15705 field.
15706 * rs6000-tdep.c: Include reggroups.h.
15707 (IS_V_ALIAS_PSEUDOREG): Define.
15708 (rs6000_register_name): Return names for the "vX" aliases.
15709 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15710 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15711 aliases. Call default_register_reggroup_p for all other
15712 pseudo-registers.
15713 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15714 New functions.
15715 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15716 Handle "vX" aliases.
15717 (v_alias_pseudo_register_collect): New function.
15718 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15719 (rs6000_gdbarch_init): Initialize "vX" aliases as
15720 pseudo-registers. Restore registration of
15721 rs6000_pseudo_register_reggroup_p with
15722 set_tdesc_pseudo_register_reggroup_p.
15723
1a782351
MF
157242019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15725
15726 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15727 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15728 set_gdbarch_num_pseudo_regs.
15729
d73cff18
PW
157302019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15731
15732 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15733 Remove arg prefixname, add do_set and do_show.
15734 Add member functions set_list and show_list.
15735 * cli/cli-style.c (class cli_style_option): Update accordingly.
15736 (style_set_list): Move to file scope.
15737 (style_show_list): Likewise.
15738 (set_style): Call help_list.
15739 (show_style): Call cmd_show_list.
15740 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15741 Update to use the new macro.
15742
60a90376
JB
157432019-10-12 Joel Brobecker <brobecker@adacore.com>
15744
15745 * ada-lang.c (_initialize_ada_language): Expand the help text
15746 for the "catch exception" command.
15747
9d7c67bf
PW
157482019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15749
15750 * symtab.c (matching_obj_sections): Initialize obj,
15751 declare it closer to its usage.
15752
7cf47dc4
TT
157532019-01-10 Tom Tromey <tom@tromey.com>
15754
15755 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15756 (basic_inf_threads_range): Remove.
15757 (inf_threads_range, inf_non_exited_threads_range)
15758 (safe_inf_threads_range): Use next_adapter.
15759
d3cb6808
KS
157602019-01-10 Keith Seitz <keiths@redhat.com>
15761
15762 PR gdb/23712
15763 PR symtab/23010
15764 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15765 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15766
63a20375
KS
157672019-01-10 Keith Seitz <keiths@redhat.com>
15768
15769 PR gdb/23712
15770 PR symtab/23010
15771 * dictionary.c (pending_to_vector): Remove.
15772 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15773 Remove _1 suffix, replacing functions of the same name. Update
15774 all callers.
15775 (dict_create_hashed, dict_create_hashed_expandable)
15776 (dict_create_linear, dict_create_linear_expandable, dict_free)
15777 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15778 Make functions static.
15779
b026f593
KS
157802019-01-10 Keith Seitz <keiths@redhat.com>
15781
15782 PR gdb/23712
15783 PR symtab/23010
15784 * dictionary.h (struct dictionary): Replace declaration with
15785 multidictionary.
15786 (dict_create_hashed, dict_create_hashed_expandable)
15787 (dict_create_linear, dict_create_linear_expandable)
15788 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15789 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15790 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15791 taking multidictionary argument.
15792 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15793 * block.h (struct block) <dict>: Change to multidictionary
15794 and rename `multidict'.
15795 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15796 symmisc.c: Update all dictionary references to multidictionary.
15797
c7748ee9
KS
157982019-01-10 Keith Seitz <keiths@redhat.com>
15799
15800 PR gdb/23712
15801 PR symtab/23010
15802 * dictionary.c: Include unordered_map.
15803 (pending_to_vector): New function.
15804 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15805 Rewrite the non-"_1" functions to take vector instead
15806 of linked list.
15807 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15808 "new" _1 versions of the same name.
15809 (multidictionary): Define.
15810 (std::hash<enum language): New definition.
15811 (collate_pending_symbols_by_language, mdict_create_hashed)
15812 (mdict_create_hashed_expandable, mdict_create_linear)
15813 (mdict_create_linear_expandable, mdict_free)
15814 (find_language_dictionary, create_new_language_dictionary)
15815 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15816 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15817 (mdict_size, mdict_empty): New functions.
15818 * dictionary.h (mdict_iterator): Define.
15819
67aa1f3c
PA
158202019-01-10 Pedro Alves <palves@redhat.com>
15821
15822 * breakpoint.c (read_uploaded_action)
15823 (create_tracepoint_from_upload): Adjust to use
15824 gdb::unique_xmalloc_ptr.
15825 * ctf.c (ctf_write_uploaded_tp):
15826 (SET_ARRAY_FIELD): Use emplace_back.
15827 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15828 * tracefile-tfile.c (tfile_write_uploaded_tp):
15829 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15830 gdb::unique_xmalloc_ptr.
15831 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15832 at_string, cond_string, cmd_strings>: Replace char pointers
15833 with gdb::unique_xmalloc_ptr.
15834
2f667667
PA
158352019-01-10 Pedro Alves <palves@redhat.com>
15836
15837 * solib-target.c (library_list_start_library): Don't xstrdup name.
15838
36cb7237
PA
158392019-01-10 Pedro Alves <palves@redhat.com>
15840
15841 * mdebugread.c (parse_partial_symbols): Use
15842 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15843
da584958
AB
158442019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15845
15846 * linux-fork.c (scoped_switch_fork_info)
15847 <~scoped_switch_fork_info>: Fix incorrect variable name.
15848
1ef8573c
AB
158492019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15850
15851 * linux-fork.c (scoped_switch_fork_info)
15852 <scoped_switch_fork_info>: Make explicit.
15853 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15854
8d7bcccb
TT
158552019-01-10 Tom Tromey <tom@tromey.com>
15856
15857 * objfiles.h (objfile::reset_psymtabs): Update.
15858 * objfiles.c (objfile::objfile): Update.
15859 * psymtab.h (psymtab_storage::obstack): Update.
15860 (psymtab_storage::m_obstack): Use gdb::optional.
15861 (class psymtab_storage): Update comment. Remove objfile
15862 parameter.
15863 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15864
b596a3c7
TT
158652019-01-10 Tom Tromey <tom@tromey.com>
15866
15867 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15868 <free_psymtabs>: Now private.
15869 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15870 (allocate_psymtab): Use new method.
15871
a9342b62
TT
158722019-01-10 Tom Tromey <tom@tromey.com>
15873
15874 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15875 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15876 * mdebugread.c (parse_partial_symbols): Use
15877 allocate_dependencies.
15878 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15879 allocate_dependencies.
15880 (process_psymtab_comp_unit_reader)
15881 (build_type_psymtab_dependencies): Likewise.
15882 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15883
5af70966
TT
158842019-01-10 Tom Tromey <tom@tromey.com>
15885
15886 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15887 PSYMBOL_SET_LANGUAGE.
15888 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15889
5923a04c
TT
158902019-01-10 Tom Tromey <tom@tromey.com>
15891
15892 * psymtab.h (psymtab_storage::obstack): New method.
15893 <m_obstack>: Rename from obstack; now private.
15894 * psymtab.c (psymtab_storage): Update.
15895 * dwarf2read.c (create_addrmap_from_index)
15896 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15897 Update.
15898
6d6a12bf
TT
158992019-01-10 Tom Tromey <tom@tromey.com>
15900
15901 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15902 * objfiles.h (objfile::reset_psymtabs): New method.
15903
d320c2b5
TT
159042019-01-10 Tom Tromey <tom@tromey.com>
15905
15906 * symmisc.c (print_symbol_bcache_statistics): Update.
15907 (print_objfile_statistics): Update.
15908 * symfile.c (reread_symbols): Update.
15909 * psymtab.h (class psymtab_storage): New.
15910 * psymtab.c (psymtab_storage): New constructor.
15911 (~psymtab_storage): New destructor.
15912 (require_partial_symbols): Update.
15913 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15914 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15915 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15916 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15917 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15918 (start_psymtab_common, end_psymtab_common)
15919 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15920 (allocate_psymtab): Update.
15921 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15922 Update.
15923 (dump_psymtab_addrmap, maintenance_print_psymbols)
15924 (maintenance_check_psymtabs): Update.
15925 (class objfile_psymtabs): Move to objfiles.h.
15926 * psympriv.h (discard_psymtab): Now inline.
15927 (psymtab_discarder::psymtab_discarder): Update.
15928 (psymtab_discarder::~psymtab_discarder): Update.
15929 (ALL_OBJFILE_PSYMTABS): Rewrite.
15930 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15931 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15932 Remove fields.
15933 <partial_symtabs>: New field.
15934 (class objfile_psymtabs): Move from psymtab.h. Update.
15935 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15936 psymbol_cache.
15937 (objfile::~objfile): Don't destroy psymbol_cache.
15938 * mdebugread.c (parse_partial_symbols): Update.
15939 * dwarf2read.c (create_addrmap_from_index)
15940 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15941 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15942 (add_partial_subprogram, dwarf2_ranges_read): Update.
15943 * dwarf-index-write.c (write_address_map)
15944 (write_one_signatured_type, recursively_write_psymbols)
15945 (class debug_names, class debug_names, write_psymtabs_to_index):
15946 Update.
15947
1d94a5a3
TT
159482019-01-10 Tom Tromey <tom@tromey.com>
15949
15950 * symtab.h (SYMBOL_SET_NAMES): Update.
15951 (symbol_set_names): Update.
15952 (MSYMBOL_SET_NAMES): Update.
15953 * symtab.c (symbol_set_names): Change argument to be an
15954 objfile_per_bfd_storage.
15955 * psymtab.c (add_psymbol_to_bcache): Update.
15956 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15957
0f14768a
TT
159582019-01-10 Tom Tromey <tom@tromey.com>
15959
15960 * symtab.c (create_demangled_names_hash): Change argument to be an
15961 objfile_per_bfd_storage.
15962 (symbol_set_names): Update.
15963
6eee24ce
TT
159642019-01-10 Tom Tromey <tom@tromey.com>
15965
15966 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15967 init_psymbol_list.
15968 * psymtab.c (init_psymbol_list): Do nothing if already called.
15969 * psympriv.h (init_psymbol_list): Add comment.
15970 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15971 init_psymbol_list.
15972 * dbxread.c (dbx_symfile_read): Unconditionally call
15973 init_psymbol_list.
15974
75aedd27
TT
159752019-01-10 Tom Tromey <tom@tromey.com>
15976
15977 * xcoffread.c (scan_xcoff_symtab): Update.
15978 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15979 "where".
15980 * mdebugread.c (parse_partial_symbols)
15981 (handle_psymbol_enumerators): Update.
15982 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15983 * dbxread.c (read_dbx_symtab): Update.
15984 * psympriv.h (psymbol_placement): New enum.
15985 (add_psymbol_to_list): Update.
15986
939652a5
TT
159872019-01-10 Tom Tromey <tom@tromey.com>
15988
15989 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15990 static_psymbols parameters.
15991 (scan_xcoff_symtab): Update.
15992 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15993 static_psymbols parameters.
15994 * psympriv.h (start_psymtab_common): Update.
15995 * mdebugread.c (parse_partial_symbols): Update.
15996 * dwarf2read.c (create_partial_symtab): Update.
15997 * dbxread.c (read_dbx_symtab): Update.
15998 (start_psymtab): Remove global_psymbols and static_psymbols
15999 parameters.
16000
baa62830
TT
160012019-01-10 Tom Tromey <tom@tromey.com>
16002
16003 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16004 * psymtab.c (allocate_psymtab): Add comment.
16005 * psympriv.h (allocate_psymtab): Add comment.
16006 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16007 initializations.
16008 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16009
0e8f53ba
TT
160102019-01-10 Tom Tromey <tom@tromey.com>
16011
16012 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16013 Don't declare.
16014 * mipsread.c: Include mdebugread.h.
16015 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16016 Declare.
16017 * elfread.c: Include mdebugread.h.
16018
b22a7c6a
TT
160192019-01-09 Tom Tromey <tom@tromey.com>
16020
16021 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16022 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16023 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16024 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16025 (psym_lookup_symbol, psym_find_last_source_symtab)
16026 (psym_forget_cached_source_info, psym_print_stats)
16027 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16028 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16029 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16030 (psym_find_compunit_symtab_by_address)
16031 (maintenance_print_psymbols, maintenance_info_psymtabs)
16032 (maintenance_check_psymtabs): Use ranged for.
16033 * psymtab.h (class objfile_psymtabs): New.
16034 (require_partial_symbols): Return objfile_psymtabs.
16035 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16036
3b9d3ac2
TT
160372019-01-09 Tom Tromey <tom@tromey.com>
16038
16039 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16040 (find_pc_mapped_section, list_overlays_command)
16041 (map_overlay_command, unmap_overlay_command)
16042 (simple_overlay_update): Use all_objfiles.
16043 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16044 * printcmd.c (info_symbol_command): Use all_objfiles.
16045 * objfiles.h (ALL_OBJSECTIONS): Remove.
16046 * maint.c (maintenance_translate_address): Use all_objfiles.
16047 * gcore.c (gcore_create_callback): Use all_objfiles.
16048 (objfile_find_memory_regions): Likewise.
16049
8b31193a
TT
160502019-01-09 Tom Tromey <tom@tromey.com>
16051
16052 * symtab.c (find_line_symtab, info_sources_command)
16053 (make_source_files_completion_list): Use objfile_compunits.
16054 * source.c (select_source_symtab): Use objfile_compunits.
16055 * objfiles.h (struct objfile): Update comment.
16056 (ALL_OBJFILES): Remove.
16057 (ALL_FILETABS): Remove.
16058 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16059 objfile_compunits.
16060
d5da8b3c
TT
160612019-01-09 Tom Tromey <tom@tromey.com>
16062
16063 * symmisc.c (print_objfile_statistics, dump_objfile)
16064 (maintenance_print_symbols): Use compunit_filetabs.
16065 * source.c (forget_cached_source_info_for_objfile): Use
16066 compunit_filetabs.
16067 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16068 (ALL_FILETABS): Use compunit_filetabs.
16069 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16070 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16071
5accd1a0
TT
160722019-01-09 Tom Tromey <tom@tromey.com>
16073
16074 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16075 (compunit_filetabs): New.
16076 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16077 compunit_filetabs.
16078 (info_sources_command, make_source_files_completion_list): Remove
16079 declaration.
16080 * symmisc.c (print_objfile_statistics, dump_objfile)
16081 (maintenance_print_symbols): Remove declaration.
16082 (maintenance_info_symtabs): Use compunit_filetabs.
16083 (maintenance_info_line_tables): Likewise.
16084 * source.c (select_source_symtab): Change local variable name.
16085 (forget_cached_source_info_for_objfile): Remove declaration.
16086 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16087 * objfiles.c (objfile_relocate1): Remove declaration.
16088 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16089 declaration.
16090 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16091 * coffread.c (coff_symtab_read): Remove declaration.
16092 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16093 compunit_filetabs.
16094
d8aeb77f
TT
160952019-01-09 Tom Tromey <tom@tromey.com>
16096
16097 * symtab.c (lookup_objfile_from_block)
16098 (find_pc_sect_compunit_symtab, search_symbols)
16099 (default_collect_symbol_completion_matches_break_on): Use
16100 objfile_compunits.
16101 * objfiles.h (ALL_COMPUNITS): Remove.
16102 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16103 * cp-support.c (add_symbol_overload_list_qualified): Use
16104 objfile_compunits.
16105 * ada-lang.c (ada_collect_symbol_completion_matches)
16106 (ada_add_global_exceptions): Use objfile_compunits.
16107
592553c4
TT
161082019-01-09 Tom Tromey <tom@tromey.com>
16109
16110 * source.c (select_source_symtab)
16111 (forget_cached_source_info_for_objfile): Remove declaration.
16112 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16113 declaration.
16114 * maint.c (count_symtabs_and_blocks): Remove declaration.
16115 * cp-support.c (add_symbol_overload_list_qualified): Remove
16116 declaration.
16117 * coffread.c (coff_symtab_read): Remove declaration.
16118 * symtab.c (lookup_symbol_in_objfile_symtabs)
16119 (basic_lookup_transparent_type_1): Use objfile_compunits.
16120 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16121 (info_sources_command, search_symbols)
16122 (default_collect_symbol_completion_matches_break_on)
16123 (make_source_files_completion_list): Remove declaration.
16124 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16125 (ada_collect_symbol_completion_matches)
16126 (ada_add_global_exceptions): Remove declaration.
16127 * linespec.c (iterate_over_all_matching_symtabs): Use
16128 objfile_compunits.
16129 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16130 (class objfile_compunits): New.
16131 (ALL_COMPUNITS): Use objfile_compunits.
16132 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16133 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16134 objfile_compunits.
16135 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16136
5325b9bf
TT
161372019-01-09 Tom Tromey <tom@tromey.com>
16138
16139 * symtab.c (search_symbols)
16140 (default_collect_symbol_completion_matches_break_on): Use
16141 objfile_msymbols.
16142 * ada-lang.c (ada_lookup_simple_minsym)
16143 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16144 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16145 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16146 objfile_msymbols.
16147 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16148 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16149 * objc-lang.c (find_methods): Use objfile_msymbols.
16150 (info_selectors_command, info_classes_command): Likewise.
16151 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16152 * objfiles.h (class objfile_msymbols): New.
16153 (ALL_OBJFILE_MSYMBOLS): Remove.
16154 (ALL_MSYMBOLS): Remove.
16155
cac85af2
TT
161562019-01-09 Tom Tromey <tom@tromey.com>
16157
16158 * common/next-iterator.h (next_adapter): Add Iterator template
16159 parameter.
16160 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16161 (class all_objfiles_safe): New.
16162 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16163 * objfiles.c (put_objfile_before): Update comment.
16164 (add_separate_debug_objfile): Likewise.
16165 (free_all_objfiles): Use all_objfiles_safe.
16166 (objfile_purge_solibs): Likewise.
16167
aed57c53
TT
161682019-01-09 Tom Tromey <tom@tromey.com>
16169
16170 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16171 (expand_symtab_containing_pc, lookup_static_symbol)
16172 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16173 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16174 all_objfiles.
16175 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16176 * breakpoint.c (create_overlay_event_breakpoint)
16177 (create_longjmp_master_breakpoint)
16178 (create_std_terminate_master_breakpoint)
16179 (create_exception_master_breakpoint): Use all_objfiles.
16180 * linux-thread-db.c (try_thread_db_load_from_pdir)
16181 (has_libpthread): Use all_objfiles.
16182 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16183 * linespec.c (iterate_over_all_matching_symtabs)
16184 (search_minsyms_for_name): Use all_objfiles.
16185 * maint.c (maintenance_info_sections): Use all_objfiles.
16186 * main.c (captured_main_1): Use all_objfiles.
16187 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16188 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16189 * guile/scm-pretty-print.c
16190 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16191 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16192 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16193 (maintenance_print_msymbols): Use all_objfiles.
16194 * source.c (select_source_symtab): Use all_objfiles.
16195 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16196 * symfile.c (remove_symbol_file_command)
16197 (expand_symtabs_matching, map_symbol_filenames): Use
16198 all_objfiles.
16199 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16200 all_objfiles.
16201 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16202 * objc-lang.c (find_methods): Use all_objfiles.
16203 * objfiles.c (have_partial_symbols, have_full_symbols)
16204 (have_minimal_symbols, qsort_cmp)
16205 (default_iterate_over_objfiles_in_search_order): Use
16206 all_objfiles.
16207 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16208 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16209 (maintenance_check_psymtabs): Use all_objfiles.
16210 (ALL_PSYMTABS): Remove.
16211 * compile/compile-object-run.c (do_module_cleanup): Use
16212 all_objfiles.
16213 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16214 * cp-support.c (add_symbol_overload_list_qualified): Use
16215 all_objfiles.
16216 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16217 Use all_objfiles.
16218 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16219 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16220 all_objfiles.
16221 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16222 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16223 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16224 Uses all_objfiles.
16225 * solib.c (solib_read_symbols): Use all_objfiles
16226
99d89cde
TT
162272019-01-09 Tom Tromey <tom@tromey.com>
16228
16229 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16230 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16231 all_objfiles.
16232 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16233 * symmisc.c (print_symbol_bcache_statistics)
16234 (print_objfile_statistics, maintenance_print_objfiles)
16235 (maintenance_info_symtabs, maintenance_check_symtabs)
16236 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16237 all_objfiles.
16238 * source.c (forget_cached_source_info): Use all_objfiles.
16239 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16240 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16241 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16242 * objfiles.c (update_section_map): Use all_objfiles.
16243 (shared_objfile_contains_address_p): Likewise.
16244 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16245 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16246
21708325
TT
162472019-01-09 Tom Tromey <tom@tromey.com>
16248
16249 * common/next-iterator.h: New file.
16250 * objfiles.h (class all_objfiles): New.
16251 (struct objfile_iterator): New.
16252
669e09f6
PW
162532019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16254
16255 * NEWS: Move the description of the changed "frame", "select-frame",
16256 and "info frame" commands to the Changed commands section.
16257
041be526
SM
162582019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16259
16260 * gdbtypes.c (check_stub_method_group): Remove handling of old
16261 mangling schemes.
16262 * linespec.c (find_methods): Likewise.
16263 * stabsread.c (read_member_functions): Likewise.
16264 * valops.c (search_struct_method): Likewise.
16265 (value_struct_elt_for_reference): Likewise.
16266 * NEWS: Mention this change.
16267
0e2a2133
AB
162682019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16269
16270 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16271 print_source_lines.
16272 * source.c (print_source_lines_base): Update line number check.
16273 (print_source_lines): New function.
16274 (source_lines_range::source_lines_range): New function.
16275 * source.h (class source_lines_range): New class.
16276 (print_source_lines): New declaration.
16277
1055a3b4
PW
162782019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16279
16280 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16281
cfeadda5
TT
162822019-01-08 Tom Tromey <tom@tromey.com>
16283 Simon Marchi <simon.marchi@ericsson.com>
16284
16285 PR gdb/24060
16286 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16287 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16288 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16289 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16290 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16291 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16292
583068ca
AB
162932019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16294
16295 * source.c (select_source_symtab): Move header comment to
16296 declaration in source.h.
16297 (forget_cached_source_info_for_objfile): Likewise.
16298 (forget_cached_source_info): Likewise.
16299 (identify_source_line): Likewise.
16300 * source.h (identify_source_line): Move declaration from symtab.h
16301 and add comment from source.c
16302 (print_source_lines): Likewise.
16303 (forget_cached_source_info_for_objfile): Likewise.
16304 (forget_cached_source_info): Likewise.
16305 (select_source_symtab): Likewise.
16306 (enum print_source_lines_flag): Move definition from symtab.h.
16307 * symtab.h (identify_source_line): Move declaration to source.h.
16308 (print_source_lines): Likewise.
16309 (forget_cached_source_info_for_objfile): Likewise.
16310 (forget_cached_source_info): Likewise.
16311 (select_source_symtab): Likewise.
16312 (enum print_source_lines_flag): Move definition to source.h.
16313 * tui/tui-hooks.c: Add 'source.h' include.
16314
ec98a4ad
AB
163152019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16316
16317 * source.c (print_source_lines_base): Handle requests to print
16318 reverse line number sequences, and guard against empty lines
16319 string.
16320
62ea19c1
AB
163212019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16322
16323 * source.c (print_source_lines_base): Fix skip of '\r' if next
16324 character is '\n'.
16325
9d30e1fd
TT
163262019-01-06 Tom Tromey <tom@tromey.com>
16327
16328 * c-exp.y (struct c_parse_state) <macro_original_text,
16329 expansion_obstack>: New member.
16330 (macro_original_text, expansion_obstack): Remove globals.
16331 (scan_macro_expansion, scanning_macro_expansion)
16332 (finished_macro_expansion): Update.
16333 (scan_macro_cleanup): Remove.
16334 (yylex, c_parse): Update.
16335
c65bac38
TT
163362019-01-06 Tom Tromey <tom@tromey.com>
16337
16338 * c-exp.y (struct c_parse_state) <strings>: New member.
16339 (operator_stoken): Update.
16340
02e12e38
TT
163412019-01-06 Tom Tromey <tom@tromey.com>
16342
16343 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16344 (union type_stack_elt) <typelist_val>: Now a pointer to
16345 std::vector.
16346 (type_stack_cleanup): Don't declare.
16347 (push_typelist): Update.
16348 * parse.c (pop_typelist): Return a std::vector.
16349 (push_typelist): Take a std::vector.
16350 (follow_types): Update. Do not free args.
16351 (type_stack_cleanup): Remove.
16352 * c-exp.y (struct c_parse_state): New.
16353 (cpstate): New global.
16354 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16355 (nonempty_typelist): Update.
16356 (func_mod): Create a new vector.
16357 (c_parse): Create a c_parse_state.
16358 (check_parameter_typelist): Do not delete params.
16359 (function_method): Update. Do not delete type_list.
16360
f097f5ad
TT
163612019-01-06 Tom Tromey <tom@tromey.com>
16362
16363 PR gdb/28155:
16364 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16365 check_typedef.
16366 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16367 (print_return_value): Likewise.
16368
d2adf9f1
TT
163692019-01-05 Tom Tromey <tom@tromey.com>
16370
16371 * contrib/cleanup_check.py: Remove.
16372 * contrib/gcc-with-excheck: Remove.
16373 * contrib/exsummary.py: Remove.
16374 * contrib/excheck.py: Remove.
16375
2eab46b1
JB
163762019-01-05 Joel Brobecker <brobecker@adacore.com>
16377
16378 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16379 NULL. Initialize tpprev to NULL instead of assigning it
16380 to NULL on the next statement.
16381 * windows-nat.c (windows_delete_thread): Remove check for
16382 main_thread_id before printing thread exit notifications.
16383 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16384 Remove thread ID check against main_thread_id.
16385 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16386 windows_delete_thread.
16387 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16388
48c5e7e2
TT
163892019-01-04 Tom Tromey <tom@tromey.com>
16390
16391 * compile/compile.c (_initialize_compile): Use upper case for
16392 metasyntactic variables.
16393 * symmisc.c (_initialize_symmisc): Use upper case for
16394 metasyntactic variables.
16395 * psymtab.c (_initialize_psymtab): Use upper case for
16396 metasyntactic variables.
16397 * demangle.c (demangle_command): Use upper case for metasyntactic
16398 variables.
16399 (_initialize_demangler): Likewise.
16400 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16401 variables.
16402
986041cd
TT
164032019-01-03 Tom Tromey <tom@tromey.com>
16404
16405 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16406
7c711119
TT
164072019-01-03 Tom Tromey <tom@tromey.com>
16408
16409 * python/py-symtab.c (salpy_str): Update.
16410 (struct salpy_sal_object) <symtab>: Now a PyObject.
16411 (salpy_dealloc): Update.
16412 (del_objfile_sal): Use gdbpy_ref.
16413
1b20edf0
TT
164142019-01-03 Tom Tromey <tom@tromey.com>
16415
16416 * python/py-type.c (convert_field): Use new_reference. Return
16417 gdbpy_ref.
16418 (make_fielditem): Return gdbpy_ref.
16419 (typy_fields): Update.
16420 (typy_getitem): Update.
16421 (field_name): Return gdbpy_ref. Use new_reference.
16422 (typy_iterator_iternext): Update.
16423
ea41325b
TT
164242019-01-03 Tom Tromey <tom@tromey.com>
16425
16426 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16427
2a3c71d6
TT
164282019-01-03 Tom Tromey <tom@tromey.com>
16429
16430 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16431 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16432 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16433 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16434 (pspy_set_type_printers): Likewise.
16435 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16436 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16437 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16438 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16439 (objfpy_set_type_printers): Likewise.
16440
5c329e6a
TT
164412019-01-03 Tom Tromey <tom@tromey.com>
16442
16443 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16444 (gdbpy_print_stack): Use gdbpy_err_fetch.
16445 * python/python-internal.h (class gdbpy_err_fetch): New class.
16446 (class gdbpy_enter) <m_error_type, m_error_value,
16447 m_error_traceback>: Remove.
16448 <m_error>: New member.
16449 (gdbpy_exception_to_string): Don't declare.
16450 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16451 * python/py-value.c (convert_value_from_python): Use
16452 gdbpy_err_fetch.
16453 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16454 gdbpy_exception_to_string.
16455 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16456 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16457 gdbpy_err_fetch.
16458
169bb27b
AB
164592019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16460
16461 * linux-nat.c (delete_lwp_cleanup): Delete.
16462 (struct lwp_deleter): New struct.
16463 (lwp_info_up): New typedef.
16464 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16465 lwp_info_up.
16466
a07c8880
AB
164672019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16468
16469 * linux-fork.c (class scoped_switch_fork_info): New class.
16470 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16471
26089c49
AB
164722019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16473
16474 * valops.c (find_overload_match): Remove use of null_cleanup, and
16475 calls to do_cleanups.
16476
06d3e5b0
AB
164772019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16478
16479 * compile/compile-cplus-types.c
16480 (compile_cplus_instance::decl_name): Handle changes to
16481 cp_func_name.
16482 * cp-support.c (cp_func_name): Update header comment, update
16483 return type.
16484 * cp-support.h (cp_func_name): Update return type in declaration.
16485 * valops.c (find_overload_match): Move temp_func local to top
16486 level of function and change its type. Use temp_func to hold and
16487 delete temporary string obtained from cp_func_name.
16488
66644cd3
AB
164892019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16490
16491 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16492 gdb::char_vector, remove cleanup, and update uses of `msg`.
16493
592d8c0a
JW
164942019-01-03 Jim Wilson <jimw@sifive.com>
16495
16496 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16497
c55d06ec
TT
164982019-01-02 Tom Tromey <tom@tromey.com>
16499
16500 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16501 (tdesc_parse_xml): Remove cleanups.
16502 * target-descriptions.h (make_cleanup_free_target_description):
16503 Don't declare.
16504 (target_desc_deleter): New struct.
16505 (target_desc_up): New typedef.
16506 * target-descriptions.c (target_desc_deleter::operator()): Rename
16507 from free_target_description.
16508 (make_cleanup_free_target_description): Remove.
16509
3a6ae42d
TT
165102019-01-02 Tom Tromey <tom@tromey.com>
16511
16512 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16513 constructor, destructor.
16514 (linespec_parser): Remove typedef.
16515 (~linespec_parser): Rename from linespec_parser_delete.
16516 (linespec_lex_to_end, linespec_complete_label)
16517 (linespec_complete): Update.
16518 (decode_line_full): Remove cleanups.
16519 (decode_line_1): Update.
16520
61fd3e73
TT
165212019-01-02 Tom Tromey <tom@tromey.com>
16522
16523 * python/python-internal.h (inferior_to_inferior_object): Change
16524 return type.
16525 * python/py-exitedevent.c (create_exited_event_object): Update.
16526 * python/py-inferior.c (inferior_to_inferior_object): Return
16527 gdbpy_ref.
16528 (python_new_inferior, python_inferior_deleted)
16529 (thread_to_thread_object, delete_thread_object)
16530 (build_inferior_list, gdbpy_selected_inferior): Update.
16531 * python/py-infthread.c (create_thread_object): Update. Also fail
16532 if inferior_to_inferior_object fails.
16533
d20172fc
SM
165342019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16535
16536 * inferior.h (class inferior) <displaced_step_state>: New field.
16537 * infrun.h (struct displaced_step_state): Move here from
16538 infrun.c. Initialize fields, add constructor.
16539 <inf>: Remove field.
16540 <reset>: New method.
16541 * infrun.c (struct displaced_step_inferior_state): Move to
16542 infrun.h.
16543 (displaced_step_inferior_states): Remove.
16544 (get_displaced_stepping_state): Adust.
16545 (displaced_step_in_progress_any_inferior): Adjust.
16546 (displaced_step_in_progress_thread): Adjust.
16547 (displaced_step_in_progress): Adjust.
16548 (add_displaced_stepping_state): Remove.
16549 (get_displaced_step_closure_by_addr): Adjust.
16550 (remove_displaced_stepping_state): Remove.
16551 (infrun_inferior_exit): Call displaced_step_state.reset.
16552 (use_displaced_stepping): Don't check for NULL.
16553 (displaced_step_prepare_throw): Call
16554 get_displaced_stepping_state.
16555 (displaced_step_fixup): Don't check for NULL.
16556 (prepare_for_detach): Don't check for NULL.
16557
e3319240
PW
165582019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16559
16560 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16561 in case of call that did not complete.
16562
5d36dfb9
AU
165632019-01-02 Andrey Utkin <autkin@undo.io>
16564
16565 * symfile.c (find_separate_debug_file): Fix search of debug files for
16566 remote debuggee.
16567
8833fbf0
TT
165682019-01-02 Tom Tromey <tom@tromey.com>
16569
16570 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16571 indentation.
16572 * python/py-frame.c (frapy_older): Remove cast.
16573 (frapy_newer): Likewise.
16574 * python/py-breakpoint.c (local_setattro): Remove cast.
16575 * python/py-arch.c (archpy_name): Remove local variable.
16576 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16577
4ada3dfd
JB
165782019-01-02 Joel Brobecker <brobecker@adacore.com>
16579
16580 * unittests/basic_string_view/element_access/char/empty.cc:
16581 Fix year range in copyright header.
16582
113b7b81
AB
165832019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16584
16585 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16586 Delete.
16587 <operator==>: Update with for removed field.
16588 <hash>: Likewise.
16589 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16590 <isa_features>: ...this.
16591 <abi_features>: New field.
16592 (riscv_isa_flen): Update comment.
16593 (riscv_abi_xlen): New declaration.
16594 (riscv_abi_flen): New declaration.
16595 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16596 isa_features.
16597 (riscv_abi_xlen): New function.
16598 (riscv_isa_flen): Update to get answer from isa_features.
16599 (riscv_abi_flen): New function.
16600 (riscv_has_fp_abi): Update to get answer from abi_features.
16601 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16602 xlen and flen.
16603 (riscv_call_info) <xlen, flen>: Update comment.
16604 (riscv_call_arg_struct): Remove invalid assertions
16605 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16606 is removed.
16607 (riscv_gdbarch_init): Gather isa features and abi features
16608 separately, ensure both match on the gdbarch when reusing an old
16609 gdbarch. Relax an error check to allow 32-bit abi float to run on
16610 a target with 64-bit float hardware.
16611
b18ca514
PW
166122019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16613
16614 * source.c (search_command_helper): Stop reverse search
16615 when line 1 has been searched.
16616
ec70d8db
PW
166172019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16618
16619 * record-full.c (record_full_base_target::close): Rewrite
16620 record_full_core_buf_list free logic.
16621
5b38f9c1
PW
166222019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16623
16624 * break-catch-syscall.c (print_one_catch_syscall): xfree
16625 the last text.
16626
66d91b39
JB
166272019-01-01 Joel Brobecker <brobecker@adacore.com>
16628
16629 * top.c (print_gdb_version): Update Copyright year in version
16630 message.
16631
42a4f53d
JB
166322019-01-01 Joel Brobecker <brobecker@adacore.com>
16633
16634 Update copyright year range in all GDB files.
16635
7e955d83 166362019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16637
5bbd631d 16638 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16639
5bbd631d 16640For older changes see ChangeLog-2018.
c906108c
SS
16641\f
16642Local Variables:
16643mode: change-log
16644left-margin: 8
16645fill-column: 74
16646version-control: never
57da7796 16647coding: utf-8
c906108c 16648End:
5bbd631d 16649
This page took 3.030681 seconds and 4 git commands to generate.