Add destructor to tui_win_info
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e7e11af4
TT
12019-06-25 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-win.c (tui_resize_all): Use delete.
4 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5 destructor.
6 (tui_free_window): Don't declare.
7 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8 Update.
9
6792b55e
TT
102019-06-25 Tom Tromey <tom@tromey.com>
11
12 * tui/tui-data.h (struct tui_win_info): Add constructor.
13 * tui/tui-data.c (tui_alloc_win_info): Use new.
14 (tui_free_window): Use delete.
15
f95675e1
TT
162019-06-22 Tom Tromey <tom@tromey.com>
17
18 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
19 declare.
20 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
21
5bff081c
TT
222019-06-22 Tom Tromey <tom@tromey.com>
23
24 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
25 declare.
26 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
27
47e3f474
TV
282019-06-22 Tom de Vries <tdevries@suse.de>
29
30 * dwarf2read.c (create_addrmap_from_aranges)
31 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
32 instead of '%zu'.
33
fd5866f6
SM
342019-06-21 Simon Marchi <simon.marchi@efficios.com>
35
36 * dwarf2read.h (dwarf2_section_info_def): Remove.
37 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
38 * dwarf2read.c (struct dwo_sections) <types>: Change type to
39 std::vector<dwarf2_section_info>.
40 (struct dwo_file) <~dwo_file>: Remove.
41 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
42 types field.
43 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
44 (dwarf2_read_debug_names): Likewise.
45 (create_debug_types_hash_table): Change parameter type to
46 array_view, adjust code accordingly.
47 (dwarf2_locate_dwo_sections): Adjust to std::vector.
48 (partial_die_info::fixup): Likewise.
49 (determine_prefix): Likewise.
50 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
51
fb1eb2f9
SM
522019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
55 gdb_bfd_ref_ptr.
56 <~dwo_file>: Remove call to gdb_bfd_unref.
57 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
58 gdb_bfd_ref_ptr::get.
59
51ac9db5
SM
602019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
61
62 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
63 type to htab_up.
64 * dwarf2read.c (struct dwo_file): Initialize fields.
65 <~dwo_file>: New.
66 (free_dwo_file): Remove, move content to ~dwo_file.
67 (struct dwo_file_deleter): Remove.
68 (dwo_file_up>: Remove custom deleter.
69 (free_dwo_files): Remove.
70 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
71 dwo_files.
72 (process_skeletonless_type_units): Call unique_ptr::get.
73 (allocate_dwo_file_hash_table): Add deleter to created hash
74 table. Change return type to htab_up.
75 (lookup_dwo_file_slot): Don't memset dwo_file, call
76 unique_ptr::get.
77 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
78 (create_dwo_unit_in_dwp_v2): Likewise.
79 (open_and_init_dwo_file): Likewise.
80 (free_dwo_file_from_slot): Remove.
81
dc4ccb6f
SM
822019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
83
84 * dwarf2read.h (struct dwarf2_section_info) <readin,
85 is_virtual>: Change type to bool.
86 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
87 true instead of 1.
88
e6a1c5cb
TT
892019-06-19 Tom Tromey <tom@tromey.com>
90
91 * tui/tui-data.h (tui_init_content_element): Don't declare.
92
6f6ffbeb
TT
932019-06-19 Tom Tromey <tom@tromey.com>
94
95 * tui/tui-data.h (tui_init_win_info): Don't declare.
96
f23f598e
TV
972019-06-19 Tom de Vries <tdevries@suse.de>
98
99 * dwarf2read.h (abstract_to_concrete): Change type to
100 std::unordered_map<sect_offset, std::vector<sect_offset>,
101 gdb::hash_enum<sect_offset>>.
102
680e1bee
TT
1032019-06-19 Tom Tromey <tromey@adacore.com>
104
105 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
106 EVAL_AVOID_SIDE_EFFECTS specially.
107
dcf37923
TT
1082019-06-19 Tom Tromey <tromey@adacore.com>
109
110 * source-cache.c (highlighter): New global.
111 (source_cache::get_source_lines): Create a highlighter on demand.
112
494986d5
AB
1132019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
114
115 * defs.h (deprecated_interactive_hook): Delete declaration.
116 * interps.c (clear_interpreter_hooks): Remove use of
117 deprecated_interactive_hook.
118 * top.c (deprecated_interactive_hook): Delete definition.
119 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
120
3360b6e7
TV
1212019-06-18 Tom de Vries <tdevries@suse.de>
122
123 PR gdb/24515
124 * dwarf2read.h (abstract_to_concrete): Change type from
125 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
126 std::unordered_map<sect_offset, std::vector<sect_offset>>.
127 * dwarf2read.c (read_variable): Update.
128 (dwarf2_fetch_die_loc_sect_off): Update.
129
310b3441
TV
1302019-06-17 Tom de Vries <tdevries@suse.de>
131
132 PR gdb/24617
133 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
134 accessing parent[parent_len - 1].
135
ba9777be
PP
1362019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
137
138 PR gdb/24364
139 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
140 call dtrace_process_dof with NULL dof.
141
2b9f6e89
TV
1422019-06-16 Tom de Vries <tdevries@suse.de>
143
144 PR gdb/24445
145 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
146
431b3ead
TT
1472019-06-16 Tom Tromey <tom@tromey.com>
148
149 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
150 (make_all_visible): Use address of member.
151
d04b44a1
TT
1522019-06-16 Tom Tromey <tom@tromey.com>
153
154 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
155 (tui_free_window, free_content, free_content_elements): Remove
156 unnecessary cast.
157 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
158 cast.
159 * tui/tui-regs.c (tui_show_register_group)
160 (tui_display_registers_from, tui_display_reg_element_at_line):
161 Remove unnecessary cast.
162
bf5142e7
AB
1632019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
164
165 * linux-nat.c (normal_mask): Delete.
166 (_initialize_linux_nat): Don't initialise normal_mask.
167
c4973306
SM
1682019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
169
170 PR gdb/24445
171 * dwarf-index-write.h (write_psymtabs_to_index): Add
172 dwz_basename parameter.
173 * dwarf-index-write.c (write_gdbindex): Move file writing to
174 write_gdbindex_1. Change return type void.
175 (assert_file_size): Move up, remove filename parameter.
176 (write_gdbindex_1): New function.
177 (write_debug_names): Change return type to void, call
178 assert_file_size.
179 (struct index_wip_file): New struct.
180 (write_psymtabs_to_index): Add dwz_basename parameter. Move
181 file logic to index_wip_file. Write index for dwz file if
182 needed.
183 (save_gdb_index_command): Pass basename of dwz file, if present.
184 * dwarf-index-cache.c (index_cache::store): Obtain and pass
185 build-id of dwz file, if present.
186 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
187 (dwarf2_get_dwz_file): Likewise.
188 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
189 (dwarf2_get_dwz_file): Likewise.
190
395f9c91
TT
1912019-06-16 Tom Tromey <tom@tromey.com>
192
193 * coffread.c (process_coff_symbol): Use xstrdup.
194 * value.c (create_internalvar): Use xstrdup.
195
cafb3438
TT
1962019-06-16 Tom Tromey <tom@tromey.com>
197
198 * valops.c (value_cast, value_slice): Remove unnecessary cast.
199 * breakpoint.c (stopin_command, stopat_command)
200 (until_break_command, decode_location_default): Remove unnecessary
201 cast.
202 * utils.c (subset_compare): Remove unnecessary cast.
203 * ada-lang.c (ada_update_initial_language): Remove unnecessary
204 cast.
205 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
206 cast.
207 * infcmd.c (path_command): Remove unnecessary cast.
208 * coffread.c (decode_type): Remove unnecessary cast.
209 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
210 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
211 * tui/tui-stack.c (tui_show_locator_content)
212 (tui_show_frame_info): Remove unnecessary cast.
213 * tui/tui-win.c (tui_scroll_forward_command)
214 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
215 (parse_scrolling_args): Remove unnecessary cast.
216 * tui/tui-data.c (init_win_info, tui_del_window)
217 (tui_free_window, tui_del_data_windows, tui_free_data_content)
218 (free_content_elements): Remove unnecessary cast.
219 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
220 unnecessary cast.
221 * tui/tui-source.c (tui_set_source_content)
222 (tui_vertical_source_scroll): Remove unnecessary cast.
223 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
224 cast.
225 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
226 * tui/tui-regs.c (tui_display_registers_from)
227 (tui_display_register): Remove unnecessary cast.
228 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
229 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
230 (make_visible): Remove unnecessary cast.
231 * tui/tui-winsource.c (tui_erase_source_content)
232 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
233 unnecessary cast.
234 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
235 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
236 * stabsread.c (read_type, read_array_type, read_range_type):
237 Remove unnecessary cast.
238 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
239 (parse_symbol, parse_type, upgrade_type, parse_external)
240 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
241 unnecessary cast.
242 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
243
730ead81
TT
2442019-06-16 Tom Tromey <tom@tromey.com>
245
246 * tui/tui-data.c (tui_alloc_generic_win_info)
247 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
248 checks.
249
584a927c
AB
2502019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
251 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 * f-typeprint.c (f_print_type): Don't return early for not
254 associated or not allocated types.
255 (f_type_print_varspec_suffix): Add print_rank parameter and print
256 ranks of array types in case they dangling.
257 (f_type_print_base): Add print_rank parameter.
258
30056ea0
AB
2592019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
260
261 * NEWS: Mention new MI commands.
262 * break-catch-throw.c (enum exception_event_kind): Move to
263 breakpoint.h.
264 (print_mention_exception_catchpoint): Output text as a single
265 message.
266 (catch_exception_command_1): Rename to...
267 (catch_exception_event): ...this, make non-static, update header
268 command, and change some parameter types.
269 (catch_catch_command): Update for changes to
270 catch_exception_command_1.
271 (catch_throw_command): Likewise.
272 (catch_rethrow_command): Likewise.
273 * breakpoint.c (enum exception_event_kind): Delete.
274 * breakpoint.h (enum exception_event_kind): Moved here from
275 break-catch-throw.c.
276 (catch_exception_event): Declare.
277 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
278 (mi_cmd_catch_throw): New function.
279 (mi_cmd_catch_rethrow): New function.
280 (mi_cmd_catch_catch): New function.
281 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
282 'catch-catch' entries.
283 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
284 (mi_cmd_catch_rethrow): Declare.
285 (mi_cmd_catch_catch): Declare.
286
ec8e2b6d
AB
2872019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
288
289 * annotate.c (annotate_source_line): Change return type to void,
290 update implementation to match.
291 * annotate.h (annotate_source_line): Change return type to void,
292 update header comment.
293 * stack.c (print_frame_info): Don't change what frame information
294 is printed based on whether annotations are on or not.
295
0d3abd8c
AB
2962019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
299 (annotate_source): Make static.
300 (annotate_source_line): Moved from source.c and renamed from
301 identify_source_line. Update the return type.
302 * annotate.h (annotate_source): Delete declaration.
303 (annotate_source_line): Declaration moved from source.h, and
304 renamed from identify_source_line. Return type updated.
305 * source.c (identify_source_line): Moved to annotate.c and renamed
306 to annotate_source_line.
307 (info_line_command): Remove check of annotation_level.
308 * source.h (identify_source_line): Move declaration to annotate.h
309 and rename to annotate_source_line.
310 * stack.c: Add 'annotate.h' include.
311 (print_frame_info): Remove check of annotation_level before
312 calling annotate_source_line.
313
00df30ae
AB
3142019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
315
316 * source-cache.c (source_cache::get_plain_source_lines): Use
317 open_source_file_with_line_charpos instead of just
318 open_source_file, remove call to find_source_lines.
319 (source_cache::get_source_lines): Likewise.
320 * source.c (find_source_lines): Make static.
321 (get_filename_and_charpos): Renamed into...
322 (open_source_file_with_line_charpos): ..this along with changes to
323 return a scoped_fd, and some other minor clean ups.
324 (identify_source_line): Use open_source_file_with_line_charpos.
325 (search_command_helper): Use open_source_file_with_line_charpos
326 instead of just open_source_file, remove call to
327 find_source_lines.
328 * source.h (open_source_file_with_line_charpos): Declare new
329 function.
330 (find_source_lines): Delete declaration.
331
afda45a2
AB
3322019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * source.c (get_filename_and_charpos): Remove fullname
335 parameter.
336 (identify_source_line): Update call to get_filename_and_charpos.
337
0735b091
TT
3382019-06-14 Tom Tromey <tromey@adacore.com>
339
340 PR gdb/24502:
341 * ui-style.h (skip_ansi_escape): Update comment.
342 * ui-file.h (class no_terminal_escape_file): New class.
343 * ui-file.c (no_terminal_escape_file::write)
344 (no_terminal_escape_file::puts): New methods.
345 * cli/cli-logging.c (handle_redirections): Use
346 no_terminal_escape_file.
347
52ce35e2
TT
3482019-06-14 Tom Tromey <tromey@adacore.com>
349
350 * NEWS: Move convenience variable news above Python news.
351
73cc7272
TT
3522019-06-14 Tom Tromey <tom@tromey.com>
353
354 * gnulib: Move directory to top-level.
355 * configure.ac: Don't configure gnulib.
356 * configure: Rebuild.
357 * common/common-defs.h: Use new path to gnulib.
358 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
359 (GNULIB_H): Remove.
360 (INCGNU): Look in new gnulib location.
361 (HFILES_NO_SRCDIR): Remove gnulib files.
362 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
363 (generated_files): Remove GNULIB_H.
364 ($(LIBGNU), all-lib): Remove targets.
365 (distclean): Don't mention GNULIB_BUILDDIR.
366 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
367
f5686554
TT
3682019-06-14 Tom Tromey <tromey@adacore.com>
369
370 * symfile.c (add_symbol_file_command): Remove obsolete comment.
371 Warn if symbol file does not provide any symbols.
372
a0c1ffed
TT
3732019-06-14 Tom Tromey <tromey@adacore.com>
374
375 * source.c (find_and_open_source): Respect basenames_may_differ.
376
7c39e397
AB
3772019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
378
379 * annotate.c (annotate_breakpoints_invalid): Make use of
380 scoped_restore_terminal_state.
381 (annotate_frames_invalid): Likewise.
382
f411722c
TT
3832019-06-14 Tom Tromey <tromey@adacore.com>
384
385 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
386 allow assignment to an internalvar.
387
4268ec18
TT
3882019-06-14 Tom Tromey <tromey@adacore.com>
389
390 * ada-lex.l: Allow "_" in attribute names.
391
abdb711e
TT
3922019-06-14 Tom Tromey <tromey@adacore.com>
393
394 PR gdb/24653:
395 * regcache.c (registers_changed): Don't call alloca.
396 * top.c (execute_command): Don't call alloca.
397
4c048731
PA
3982019-06-13 Pedro Alves <palves@redhat.com>
399
400 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
401 'expression'. When parsing an expression, error out if there's
402 junk after "unlimited".
403 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
404 (do_set_command): Adjust calls to is_unlimited_literal.
405
66eb1ed3
PA
4062019-06-13 Pedro Alves <palves@redhat.com>
407
408 * compile/compile.c (make_compile_options_def_group): Add braces
409 around array_view initializer.
410 * thread.c (make_thread_apply_all_options_def_group)
411 (make_thread_apply_all_options_def_group): Likewise.
412
3345721a
PA
4132019-06-13 Pedro Alves <palves@redhat.com>
414
415 * NEWS (New commands): Mention "maint test-options
416 require-delimiter", "maint test-options unknown-is-error", "maint
417 test-options unknown-is-operand" and "maint show
418 test-options-completion-result".
419 (New command options, command completion): New section.
420 (Completion improvements): New section.
421 Mention that you can abbreviate "unlimited".
422
6206060d
PA
4232019-06-13 Pedro Alves <palves@redhat.com>
424
425 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
426 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
427 * unittests/cli-utils-selftests.c (test_parse_flags)
428 (test_parse_flags_qcs): Delete.
429 (test_cli_utils): Don't call deleted functions.
430
6665660a
PA
4312019-06-13 Pedro Alves <palves@redhat.com>
432
433 * thread.c: Include "cli/cli-option.h".
434 (tp_array_compar_ascending): Global.
435 (tp_array_compar): Delete function.
436 (tp_array_compar_ascending, tp_array_compar_descending): New
437 functions.
438 (ascending_option_def, qcs_flag_option_def)
439 (thr_qcs_flags_option_defs)
440 (make_thread_apply_all_options_def_group)
441 (make_thread_apply_options_def_group): New.
442 (thread_apply_all_command): Use gdb::option::process_options.
443 (thread_apply_command_completer)
444 (thread_apply_all_command_completer): New.
445 (thread_apply_command): Use gdb::option::process_options.
446 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
447 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
448 to generate help text of "thread apply". Adjust "taas"'s help.
449 * tid-parse.c (tid_range_parser::in_thread_range): New method.
450 * tid-parse.h (tid_range_parser::in_thread_range): New method.
451
f7e13587
PA
4522019-06-13 Pedro Alves <palves@redhat.com>
453
454 * thread.c (thread_apply_command): Check for invalid TID with
455 isdigit instead of !isalpha.
456
5d707134
PA
4572019-06-13 Pedro Alves <palves@redhat.com>
458
459 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
460 (validate_flags_qcs): New.
461 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
462 (validate_flags_qcs): Declare.
463 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
464 (make_frame_apply_options_def_group): New.
465 (frame_apply_command_count): Process options with
466 gdb::option::process_options.
467 (frame_apply_completer): New.
468 (frame_apply_level_completer, frame_apply_all_completer)
469 (frame_apply_completer): New.
470 (_initialize_stack): Update help of "frame apply", "frame apply
471 level", "frame apply all" and "faas" to mention supported options
472 and install command completers.
473 * stack.h (frame_apply_all_completer): Declare.
474 * thread.c: Include "stack.h".
475 (tfaas_command): Add "--".
476 (_initialize_thread): Update help "tfaas" to mention supported
477 options and install command completer.
478
272d4594
PA
4792019-06-13 Pedro Alves <palves@redhat.com>
480
481 * completer.c (complete_nested_command_line): New.
482 (gdb_completion_word_break_characters_throw): Add assertion.
483 * completer.h (complete_nested_command_line): Declare.
484
90a1ef87
PA
4852019-06-13 Pedro Alves <palves@redhat.com>
486
487 * stack.c (parse_backtrace_qualifiers): New.
488 (backtrace_command): Use it.
489 (backtrace_command_completer): Complete on qualifiers.
490
d4c16835
PA
4912019-06-13 Pedro Alves <palves@redhat.com>
492
493 * frame.c: Include "cli/cli-option.h.
494 (user_set_backtrace_options): New.
495 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
496 Delete.
497 (get_prev_frame): Adjust.
498 (boolean_option_def, uinteger_option_def)
499 (set_backtrace_option_defs): New.
500 (_initialize_frame): Adjust and use
501 gdb::option::add_setshow_cmds_for_options to install "set
502 backtrace past-main" and "set backtrace past-entry".
503 * frame.h: Include "cli/cli-option.h".
504 (struct frame_print_options): Forward declare.
505 (print_frame_arguments_all, print_frame_arguments_scalars)
506 (print_frame_arguments_none): Declare.
507 (print_entry_values): Delete declaration.
508 (struct frame_print_options, user_frame_print_options): New.
509 (struct set_backtrace_options): New.
510 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
511 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
512 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
513 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
514 (list_args_or_locals): Add frame_print_options parameter.
515 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
516 * python/py-framefilter.c (enumerate_args): Pass down
517 USER_FRAME_PRINT_OPTIONS.
518 * stack.c: Include "cli/cli-option.h".
519 (print_frame_arguments_all, print_frame_arguments_scalars)
520 (print_frame_arguments_none): Declare.
521 (print_raw_frame_arguments, print_entry_values): Delete.
522 (user_frame_print_options): New.
523 (boolean_option_def, enum_option_def, frame_print_option_defs):
524 New.
525 (struct backtrace_cmd_options): New.
526 (bt_flag_option_def): New.
527 (backtrace_command_option_defs): New.
528 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
529 (print_frame_arg, read_frame_arg, print_frame_args)
530 (print_frame_info, print_frame): Add frame_print_options parameter
531 and use it.
532 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
533 (backtrace_command_1): Add frame_print_options and
534 backtrace_cmd_options parameters and use them.
535 (make_backtrace_options_def_group): New.
536 (backtrace_command): Process command options with
537 gdb::option::process_options.
538 (backtrace_command_completer): New.
539 (_initialize_stack): Extend "backtrace"'s help to mention
540 supported options. Install completer for "backtrace".
541 Install some settings commands with add_setshow_cmds_for_options.
542
2daf894e
PA
5432019-06-13 Pedro Alves <palves@redhat.com>
544
545 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
546 and that "set/show print raw frame-arguments" are now deprecated.
547
548 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
549 command.
550 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
551 * stack.c (_initialize_stack): Install "set/show print
552 raw-frame-arguments", and deprecate "set/show print raw
553 frame-arguments".
554 * valprint.c (_initialize_valprint): Deprecate "set/show print
555 raw".
556
e6ed716c
PA
5572019-06-13 Pedro Alves <palves@redhat.com>
558
559 * compile/compile.c (struct compile_options): New.
560 (compile_flag_option_def, compile_command_option_defs)
561 (make_compile_options_def_group): New.
562 (compile_file_command): Handle options with
563 gdb::option::process_options.
564 (compile_file_command_completer): New function.
565 (compile_code_command): Handle options with
566 gdb::option::process_options.
567 (compile_code_command_completer): New function.
568 (_initialize_compiler): Install completers for "compile code" and
569 "compile file". Mention available options in "compile code" and
570 "compile code"'s help.
571 * completer.c (advance_to_completion_word): New, factored out from
572 ...
573 (advance_to_expression_complete_word_point): ... this.
574 (advance_to_filename_complete_word_point): New.
575 * completer.h (advance_to_filename_complete_word_point): New
576 declaration.
577
7d8062de
PA
5782019-06-13 Pedro Alves <palves@redhat.com>
579
580 * compile/compile.c: Include "cli/cli-option.h".
581 (compile_print_value): Scope data pointer is now a
582 value_print_options pointer; adjust.
583 (compile_print_command): Process options. Scope data pointer is
584 now a value_print_options pointer; adjust.
585 (_initialize_compile): Update "compile print"'s help to include
586 supported options. Install a completer for "compile print".
587 * cp-valprint.c (show_vtblprint, show_objectprint)
588 (show_static_field_print): Delete.
589 (_initialize_cp_valprint): Don't install "set print
590 static-members", "set print vtbl", "set print object" here.
591 * printcmd.c: Include "cli/cli-option.h" and
592 "common/gdb_optional.h".
593 (print_command_parse_format): Rework to fill in a
594 value_print_options instead of a format_data.
595 (print_value): Change parameter type from format_data pointer to
596 value_print_options reference. Adjust.
597 (print_command_1): Process options. Adjust to pass down a
598 value_print_options.
599 (print_command_completer): New.
600 (_initialize_printcmd): Install print_command_completer as
601 handle_brkchars completer for the "print" command. Update
602 "print"'s help to include supported options.
603 * valprint.c: Include "cli/cli-option.h".
604 (show_vtblprint, show_objectprint, show_static_field_print): Moved
605 here from cp-valprint.c.
606 (boolean_option_def, uinteger_option_def)
607 (value_print_option_defs, make_value_print_options_def_group):
608 New. Use gdb::option::add_setshow_cmds_for_options to install
609 "set print elements", "set print null-stop", "set print repeats",
610 "set print pretty", "set print union", "set print array", "set
611 print address", "set print symbol", "set print array-indexes".
612 * valprint.h: Include <string> and "cli/cli-option.h".
613 (make_value_print_options_def_group): Declare.
614 (print_value): Change parameter type from format_data pointer to
615 value_print_options reference.
616 (print_command_completer): Declare.
617
9d0faba9
PA
6182019-06-13 Pedro Alves <palves@redhat.com>
619
620 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
621 (COMMON_SFILES): Add maint-test-settings.c.
622 * cli/cli-decode.c (boolean_enums): New global, factored out from
623 ...
624 (add_setshow_boolean_cmd): ... here.
625 * cli/cli-decode.h (boolean_enums): Declare.
626 * cli/cli-option.c: New file.
627 * cli/cli-option.h: New file.
628 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
629 factored out from ...
630 (parse_cli_boolean_value(const char *)): ... this.
631 (is_unlimited_literal): Change parameter type to pointer to
632 pointer. Adjust and advance ARG pointer.
633 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
634 (parse_cli_var_enum): New, factored out from ...
635 (do_set_command): ... this. Adjust.
636 * cli/cli-setshow.h (parse_cli_boolean_value)
637 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
638 (parse_cli_var_enum): Declare.
639 * cli/cli-utils.c: Include "cli/cli-option.h".
640 (get_ulongest): New.
641 * cli/cli-utils.h (get_ulongest): Declare.
642 (check_for_argument): New overloads.
643 * maint-test-options.c: New file.
644
2c722807
PA
6452019-06-13 Pedro Alves <palves@redhat.com>
646
647 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
648 parse a range if "-" is at the end of the string.
649
dee7b4c8
PA
6502019-06-13 Pedro Alves <palves@redhat.com>
651
652 * cli/cli-setshow.c (parse_auto_binary_operation)
653 (parse_cli_boolean_value): Don't allow "o".
654
dca0f6c0
PA
6552019-06-13 Pedro Alves <palves@redhat.com>
656
657 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
658 * NEWS: Mention maint test-settings KIND.
659 * maint-test-settings.c: New file.
660
597bf39d
PA
6612019-06-13 Pedro Alves <palves@redhat.com>
662
663 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
664 completer.
665 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
666 "set" completers.
667
48c410fb
PA
6682019-06-13 Pedro Alves <palves@redhat.com>
669
670 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
671 after item.
672
93bcb043
PA
6732019-06-13 Pedro Alves <palves@redhat.com>
674
675 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
676
cbba3ecd
PA
6772019-06-13 Pedro Alves <palves@redhat.com>
678
679 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
680 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
681 call.
682 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
683 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
684 calls.
685 (check_for_argument): Skip spaces after argument.
686
b9a3f842
PA
6872019-06-13 Pedro Alves <palves@redhat.com>
688
689 * thread.c (thread_apply_command): Adjust TID parsing.
690 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
691 detected before end of string.
692 (tid_is_in_list): Error out if LIST is invalid.
693
3844e605
PA
6942019-06-13 Pedro Alves <palves@redhat.com>
695
696 * completer.c (complete_line_internal_1): Rewind completion word
697 point.
698 (completion_tracker::advance_custom_word_point_by): Change
699 parameter type to int.
700 * completer.h (completion_tracker::advance_custom_word_point_by):
701 Likewise.
702
00b56dbe
PA
7032019-06-13 Pedro Alves <palves@redhat.com>
704
705 * completer.c (advance_to_completion_word): Handle delimiters.
706
d106773e
PA
7072019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
708
709 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
710
08f10e02
TT
7112019-06-11 Tom Tromey <tom@tromey.com>
712
713 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
714 (xmalloc_failed): Move to alloc.c.
715 * alloc.c: New file.
716 * Makefile.in (COMMON_SFILES): Add alloc.c.
717
1c7fe951
TT
7182019-06-11 Tom Tromey <tom@tromey.com>
719
720 * nat/linux-waitpid.c: Don't include server.h.
721 (linux_debug): Remove.
722 (my_waitpid): Update.
723
89549d7f
TT
7242019-06-11 Tom Tromey <tromey@adacore.com>
725
726 * infcall.c (_initialize_infcall): Remove trailing newline from
727 help.
728 * user-regs.c (_initialize_user_regs): Remove trailing newline
729 from help.
730 * typeprint.c (_initialize_typeprint): Remove trailing newline
731 from help.
732 * reverse.c (_initialize_reverse): Remove trailing newlines from
733 help.
734 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
735 from help.
736 * language.c (add_set_language_command): Remove trailing newline
737 from help.
738 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
739 help.
740 * disasm.c (_initialize_disasm): Remove trailing newline from
741 help.
742 * top.c (init_main): Remove trailing newline from help.
743 * interps.c (_initialize_interpreter): Remove trailing newline
744 from help.
745 * btrace.c (_initialize_btrace): Remove trailing newlines from
746 help.
747 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
748 from help.
749 * python/python.c (_initialize_python): Remove trailing newline
750 from help.
751 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
752 help.
753 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
754 from help. Reformat some text.
755 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
756 from help.
757 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
758 newline from help.
759
86108c13
TT
7602019-06-11 Tom Tromey <tromey@adacore.com>
761
762 * darwin-nat.c (darwin_decode_exception_message)
763 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
764
a7067863
AB
7652019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
766
767 * valops.c (value_slice): Check for not allocated or not
768 associated values.
769
9ab08412
TV
7702019-06-10 Tom de Vries <tdevries@suse.de>
771
772 PR gdb/24618
773 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
774 sure an empty slot (defined by a 32-bit zero pair) is recognized as
775 invalid.
776
f19e22e9
TV
7772019-06-10 Tom de Vries <tdevries@suse.de>
778
779 PR gdb/24611
780 * linespec.c (linespec_lexer_lex_string): Remove incorrect
781 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
782
e99f9db0
TV
7832019-06-10 Tom de Vries <tdevries@suse.de>
784
785 PR symtab/24545
786 * symtab.c (struct demangled_name_entry): Add language field.
787 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
788 static minimal symbol". Set and use language field.
789
9bf7038b
TT
7902019-06-10 Tom Tromey <tromey@adacore.com>
791
792 * ada-lang.c (_initialize_ada_language): Update help text.
793
422186a9
TT
7942019-06-10 Tom Tromey <tromey@adacore.com>
795
796 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
797 with a newline.
798 * guile/guile.c (handle_boot_error): Don't end warning with a
799 newline.
800 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
801 warning with a newline.
802 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
803 newline.
804 (s12z_frame_cache): Likewise.
805 * dwarf-index-cache.c (index_cache::store): Don't end warning with
806 a newline.
807 * solib-svr4.c (disable_probes_interface): Don't end warning with
808 a newline.
809 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
810 newline.
811 * python/python.c (do_finish_initialization): Don't end warning
812 with a newline.
813
25ce02ee
TT
8142019-06-10 Tom Tromey <tom@tromey.com>
815
816 * python/py-breakpoint.c (gdbpy_breakpoint_created)
817 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
818 gdbpy_enter.
819
caa429d8
TT
8202019-06-10 Tom Tromey <tromey@adacore.com>
821
822 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
823 data.
824 (elf_new_init): Don't call stabsread_new_init.
825 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
826 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
827 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
828
81873cc8
TV
8292019-06-10 Tom de Vries <tdevries@suse.de>
830
831 PR symtab/16264
832 PR symtab/24517
833 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
834
4fa0265e
РИ
8352019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
836
837 * source.c (find_and_open_source): Also rewrite relative file
838 names.
839
1a3da2cd
AB
8402019-04-26 Amos Bird <amosbird@gmail.com>
841
842 * annotate.c (annotate_thread_exited): Add "thread-exited"
843 annotation.
844
3847a7bf
TT
8452019-06-06 Tom Tromey <tromey@adacore.com>
846
847 * maint.h (class scoped_command_stats): Use
848 DISABLE_COPY_AND_ASSIGN.
849 <print_time>: New method.
850 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
851 print_time.
852 (scoped_command_stats::print_time): New method.
853
312617a3
AB
8542019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
855
856 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
857 instructions of lengths 6 or 8 bytes.
858
b02f78f9
PA
8592019-06-04 Pedro Alves <palves@redhat.com>
860
861 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
862
863 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
864 * breakpoint.c (condition_completer): Likewise.
865 * cli/cli-dump.c (scan_expression): Likewise.
866 * common/filestuff.c (mkdir_recursive): Likewise.
867 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
868 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
869 (gdb_abspath): Likewise.
870 * compile/compile-cplus-types.c
871 (compile_cplus_instance::decl_name): Likewise.
872 * completer.c (complete_explicit_location):
873 (signal_completer, reg_or_group_completer_1): Likewise.
874 * cp-support.c (cp_remove_params_if_any): Likewise.
875 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
876 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
877 * infcmd.c (strip_bg_char): Likewise.
878 * linespec.c (copy_token_string): Likewise.
879 * mi/mi-main.c (output_cores): Likewise.
880 * psymtab.c (psymtab_search_name):
881 * symfile.c (test_set_ext_lang_command): Likewise.
882 * target.c (target_fileio_read_stralloc): Likewise.
883 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
884 * value.c (complete_internalvar): Likewise.
885
e1f2e1a2
CB
8862019-06-04 Christian Biesinger <cbiesinger@google.com>
887
888 Add objfile property to gdb.Type.
d3238f7d
PA
889 * NEWS: Mention Python API addition.
890 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 891
e664d728
PW
8922019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
893
894 * NEWS: Mention the new set|show style [title|highlight].
895 Mention changes to "show style", "help" and "apropos".
896
66d8c862
PW
8972019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
898
899 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
900 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
901 instead of print_help_for_command.
902 (print_doc_of_command): New function.
903 (help_list): Add 'apropos -v word' suggestion.
904 (print_help_for_command): Style the command name using title style.
905 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
906 (_initialize_cli_cmds): Describe -v in apropos_command help.
907
9303eb2f
PW
9082019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
909
910 * cli/cli-style.h (cli_style_option): Add name in constructor,
911 add m_name class member, add constructor with intensity,
912 add name class function.
913 (cli_style_option::add_setshow_commands): Remove name argument.
914 (highlight_style, title_style): New styles.
915 * cli/cli-style.c (do_show): New function that shows a style
916 characteristic styling the style name with itself.
917 (set_style_name): New function.
918 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
919 Update all callers according to the changes in cli/cli-style.h.
920 * utils.h (fputs_highlighted): New function.
921 * utils.c (fputs_highlighted): Likewise.
922
e2c52041
PW
9232019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
924
925 * NEWS: Mention new pipe command and new convenience variables.
926
947d3946
PW
9272019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
928
929 * cli/cli-cmds.c (pipe_command): New function.
930 (_initialize_cli_cmds): Call add_com for pipe_command.
931 Define | as an alias for pipe.
932 (exit_status_set_internal_vars): New function.
933 (shell_escape): Call exit_status_set_internal_vars.
934 cli/cli-decode.c (find_command_name_length): Recognize | as
935 a single character command.
936
b8fd0918
PW
9372019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
938
939 * gdbcmd.h (execute_command_to_ui_file): New declaration.
940 top.c (execute_command_to_ui_file): New function, mostly a copy
941 of execute_command_to_string.
942 (execute_command_to_string): Implement by calling
943 execute_command_to_ui_file.
944
68bb5386
PW
9452019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
946
947 * top.h (saved_command_line): Remove declaration.
948 * top.c (previous_saved_command_line, previous_repeat_arguments):
949 New variables.
950 (saved_command_line): Make static, define together with other
951 'repeat variables'.
952 (dont_repeat): Clear repeat_arguments.
953 (repeat_previous, get_saved_command_line, save_command_line):
954 New functions.
955 (gdb_init): Initialize saved_command_line
956 and previous_saved_command_line.
957 * main.c (captured_main_1): Remove saved_command_line initialization.
958 * event-top.c (handle_line_of_input): Update to use
959 the new 'repeat' related functions instead of direct access to
960 saved_command_line.
961 * command.h (repeat_previous, get_saved_command_line,
962 save_command_line): New declarations.
963 (dont_repeat): Add comment.
964
bfcdb852
TT
9652019-05-30 Tom Tromey <tromey@adacore.com>
966
967 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
968 Fix comment.
969 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
970
0ef209f2
JV
9712019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
972
973 PR cli/24587
974 * completer.c (complete): Initialize variable word.
975
955b06fa
SDJ
9762019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
977
978 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
979 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
980 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
981 'body' is NULL to the outter 'if', protecting the '!is_define'
982 situation as well.
983
fa9c3fa0
TT
9842019-05-29 Tom Tromey <tromey@adacore.com>
985
986 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
987 (dwarf_unknown): New function.
988 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
989 (dwarf_type_encoding_name): Use dwarf_unknown.
990
4330d61d
TT
9912019-05-29 Tom Tromey <tromey@adacore.com>
992
993 PR c++/20020:
994 * cp-valprint.c (cp_print_value_fields): Call
995 cp_print_static_field inside "try".
996
33a6bc35
TT
9972019-05-29 Tom Tromey <tromey@adacore.com>
998
999 * inflow.c (struct terminal_info): Add default operator=.
1000 * configure: Rebuild.
1001 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
1002 -Wdeprecated-copy-dtor, -Wredundant-move.
1003
000439d5
TT
10042019-05-29 Tom Tromey <tromey@adacore.com>
1005
1006 * NEWS: Add entry.
1007 * infcmd.c (print_return_value_1): Handle finish_print
1008 option.
1009 (show_print_finish): New function.
1010 (_initialize_infcmd): Add "set/show print finish" commands.
1011 * valprint.c (user_print_options): Initialize new member.
1012 * valprint.h (struct value_print_options) <finish_print>: New
1013 member.
1014
c0e70c62
TT
10152019-05-28 Tom Tromey <tromey@adacore.com>
1016
1017 * ada-lang.c (ada_remove_Xbn_suffix)
1018 (find_old_style_renaming_symbol)
1019 (parse_old_style_renaming): Remove.
1020 (ada_find_renaming_symbol): Don't call
1021 find_old_style_renaming_symbol.
1022 (ada_is_renaming_symbol): Rename from
1023 ada_find_renaming_symbol. Remove "block" parameter. Return
1024 bool. Now static.
1025 (ada_read_var_value): Update and simplify.
1026 * ada-exp.y (write_var_or_type): Remove old code.
1027
766f8836
AH
10282019-05-28 Alan Hayward <alan.hayward@arm.com>
1029
1030 * event-top.c: Remove include comment.
1031 * inflow.c (class scoped_ignore_sigttou): Move from here...
1032 * inflow.h (class scoped_ignore_sigttou): ...to here.
1033 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
1034 * top.c: Remove include comment.
1035
eb41253a
TT
10362019-05-27 Tom Tromey <tom@tromey.com>
1037
1038 * NEWS: Fix typo.
1039
4ca51187
TT
10402019-05-22 Tom Tromey <tromey@adacore.com>
1041
1042 * target.c (target_follow_exec): Constify parameter.
1043 * target-delegates.c: Rebuild.
1044 * remote.c (remote_target::follow_exec): Constify parameter.
1045 * infrun.c (follow_exec): Constify parameter.
1046 * target.h (struct target_ops) <follow_exec>: Constify parameter.
1047 (target_follow_exec): Likewise.
1048
8fca4da0
AH
10492019-05-22 Alan Hayward <alan.hayward@arm.com>
1050
1051 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
1052 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
1053
b7060614
AH
10542019-05-22 Alan Hayward <alan.hayward@arm.com>
1055
1056 * NEWS: Add debugredirect and testsuite sections.
1057
0a5954bd
SC
10582019-05-22 Simon Cook <simon.cook@embecosm.com>
1059
1060 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
1061 target descriptions using exclusively floating point register name
1062 aliases.
1063
dc42e902
AB
10642019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1065
1066 PR gdb/18644:
1067 * f-lang.c (build_fortran_types): Handle the case where
1068 gdbarch_floatformat_for_type returns a nullptr.
1069
fb7806c7
TV
10702019-05-21 Tom de Vries <tdevries@suse.de>
1071
1072 PR cli/24587
1073 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
1074
34d11c68
AB
10752019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1076
1077 PR gdb/18644:
1078 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
1079 16-byte floats.
1080 * i386-tdep.c (i386_floatformat_for_type): Use
1081 floatformats_ia64_quad for the 16-byte floating point component
1082 within a fortran 32-byte complex number.
1083
122cf0f2
AB
10842019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
1087 delete default constructor.
1088 (find_partial_die): Update to return const struct.
1089 (partial_die_parent_scope): Move variable declaration into scope
1090 of its use and change its type to auto.
1091 (guess_partial_die_structure_name): Likewise.
1092 (partial_die_info::fixup): Likewise.
1093
33d0e35a
TT
10942019-05-17 Tom Tromey <tromey@adacore.com>
1095
1096 * source.c (find_and_open_source): Remove cast.
1097
a45575b0
TT
10982019-05-17 Tom Tromey <tromey@adacore.com>
1099
1100 * annotate.c (annotate_source): Make "filename" const.
1101 * annotate.h (annotate_source): Use const.
1102
81f47ac2
AH
11032019-05-17 Alan Hayward <alan.hayward@arm.com>
1104
1105 * disasm.c (set_disassembler_options): Send errors to stderr.
1106
ca1285d1
AH
11072019-05-17 Alan Hayward <alan.hayward@arm.com>
1108
1109 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
1110 (cli_interp_base::set_logging): Check debug_redirect.
1111 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
1112 * cli/cli-logging.c (debug_redirect): Add static variable.
1113 (pop_output_files): Add default param.
1114 (handle_redirections): Print debug setting.
1115 (show_logging_command): Likewise.
1116 (_initialize_cli_logging): Add debugredirect command.
1117 * interps.c (current_interp_set_logging): Add debug_redirect
1118 parameter.
1119 * interps.h (set_logging): Add debug_redirect parameter.
1120 (current_interp_set_logging): Likewise.
1121 * mi/mi-common.h: Likewise.
1122 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
1123
11242019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
1125 Tom Tromey <tromey@adacore.com>
1126
1127 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
1128 directly.
1129 * cli/cli-interp.h (make_logging_output): Remove declaration.
1130 * cli/cli-logging.c (make_logging_output): Remove function.
1131 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
1132 directly.
1133 * ui-file.c (tee_file::tee_file): Remove bools.
1134 (tee_file::~tee_file): Remove deletes.
1135 * ui-file.h (tee_file): Remove bools.
1136
26648588
JV
11372019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
1138
1139 * mi/mi-cmds.h (mi_cmd_complete): New function.
1140 * mi/mi-main.c (mi_cmd_complete): Likewise.
1141 * mi/mi-cmds.c: Define new MI command -complete.
1142 * NEWS: Mention new -complete command.
1143
6e035501
JV
11442019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
1145
1146 * completer.h (complete): New function.
1147 * completer.c (complete): Likewise.
1148 * cli/cli-cmds.c: (complete_command): Update to use new complete()
1149 function defined in completer.h.
1150
7d0e2ece
JV
11512019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
1152
e79be6e5 1153 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 1154
fb816e8b
TV
11552019-05-17 Tom de Vries <tdevries@suse.de>
1156
1157 PR gdb/24094
1158 * dwarf2read.c (struct cu_partial_die_info): New struct.
1159 (find_partial_die): Return cu_partial_die_info.
1160 (partial_die_parent_scope, guess_partial_die_structure_name)
1161 (partial_die_info::fixup): Handle new return type of find_partial_die.
1162
677052f2
SDJ
11632019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1164
1165 * stap-probe.c (stap_parse_register_operand): Make "regname" an
1166 "std::string", simplifying the algorithm.
1167
f3da9116
SDJ
11682019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1169
1170 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
1171 (stap_static_probe_ops::get_probes): Likewise.
1172
f1bb75ab
SDJ
11732019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1174
1175 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
1176 '-')" and "else if".
1177 (stap_parse_single_operand): Join checks for
1178 "gdbarch_stap_parse_special_token_p" and
1179 "gdbarch_stap_parse_special_token" in the same "if" statement.
1180 Invert check when verifying for operation on register
1181 displacement.
1182
3ca58cde
SDJ
11832019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1184
1185 * stap-probe.c (stap_get_opcode): Update comment.
1186 (stap_get_expected_argument_type): Likewise.
1187 (handle_stap_probe): Likewise.
1188
af2d9bee
SDJ
11892019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1190
1191 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
1192 return type to 'bool'. Adjust comment. Use 'bool' when
1193 appropriate.
1194 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1195 * stap-probe.c (stap_parse_argument_1): Likewise.
1196 (stap_is_operator): Likewise.
1197 (stap_is_generic_prefix): Likewise.
1198 (stap_is_register_prefix): Likewise.
1199 (stap_is_register_indirection_prefix): Likewise.
1200 (stap_is_integer_prefix): Likewise.
1201 (stap_generic_check_suffix): Likewise.
1202 (stap_check_integer_suffix): Likewise.
1203 (stap_check_register_suffix): Likewise.
1204 (stap_check_register_indirection_suffix): Likewise.
1205 (stap_parse_register_operand): Likewise.
1206 (stap_parse_single_operand): Likewise.
1207 (stap_parse_argument_1): Likewise.
1208 (stap_probe::get_argument_count): Likewise.
1209 (stap_is_operator): Likewise.
1210
61c9c421
TT
12112019-05-16 Tom Tromey <tromey@adacore.com>
1212
1213 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
1214 keyword to foreach.
1215
9ddc1af1
SM
12162019-05-15 Simon Marchi <simon.marchi@efficios.com>
1217
1218 * linux-thread-db.c (try_thread_db_load_1): Change return type
1219 to bool.
1220 (try_thread_db_load): Likewise.
1221 (try_thread_db_load_from_pdir_1): Likewise.
1222 (try_thread_db_load_from_pdir): Likewise.
1223 (try_thread_db_load_from_sdir): Likewise.
1224 (try_thread_db_load_from_dir): Likewise.
1225 (thread_db_load_search): Likewise.
1226 (has_libpthread): Likewise.
1227 (thread_db_load): Likewise.
1228
7bede828
SDJ
12292019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
1230
1231 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
1232 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
1233 NULL, and complain/return if that's the case.
1234
c5358db4
JD
12352019-05-15 John Darrington <john@darrington.wattle.id.au>
1236
1237 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
1238 (advance, posn, abstract_read_memory): New functions.
1239 [struct mem_read_abstraction]: New struct.
1240 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
1241
c408a94f
TT
12422019-05-14 Tom Tromey <tromey@adacore.com>
1243
1244 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
1245 value is not lval_memory.
1246
e7bd7fba
TT
12472019-05-14 Tom Tromey <tromey@adacore.com>
1248
1249 * solib.c (info_sharedlibrary_command): Style the file name.
1250
a6d0f249
AH
12512019-05-14 Alan Hayward <alan.hayward@arm.com>
1252
1253 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
1254 (aarch64_vnv_type): Likewise.
1255 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
1256 * common/tdesc.c: Likewise.
1257 * common/tdesc.h (enum tdesc_type_kind): Likewise.
1258 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1259 * features/aarch64-fpu.xml: Add ieee half view.
1260 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
1261 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
1262 * gdbtypes.h (struct builtin_type): Likewise.
1263 (struct objfile_type): Likewise.
1264
66b8bb74
SM
12652019-05-12 Paul Naert <paul.naert@polymtl.ca>
1266
1267 * language.c (language_sniff_from_mangled_name): Fix "langauge"
1268 typo.
1269 * location.h (string_to_event_location): Likewise.
1270
21c219fd
JB
12712019-05-11 Joel Brobecker <brobecker@adacore.com>
1272
1273 GDB 8.3 released.
1274
13674803
SM
12752019-05-10 Simon Marchi <simon.marchi@efficios.com>
1276
1277 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
1278 New variable declaration.
1279 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
1280 New variable.
1281 (print_one_breakpoint): Use ui_out::test_flags and new global
1282 variable to compute use_fixed_output.
1283 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
1284 Remove.
1285 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
1286 (mi_multi_location_breakpoint_output_fixed): Remove.
1287 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
1288 new variable.
1289 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
1290 fix_multi_location_breakpoint_output flag if version >= 3.
1291 * ui-out.h (enum ui_out_flag)
1292 <fix_multi_location_breakpoint_output>: New enumerator.
1293
a9eac7f9
SM
12942019-05-10 Simon Marchi <simon.marchi@efficios.com>
1295
1296 * contrib/cc-with-tweaks.sh: Validate dwz's work.
1297
71bed2db
TT
12982019-05-10 Tom Tromey <tromey@adacore.com>
1299
1300 * ada-lang.c (catch_ada_completer): New function.
1301 (_initialize_ada_language): Use it.
1302
24c54127
TT
13032019-05-10 Tom Tromey <tromey@adacore.com>
1304
1305 * thread.c (print_thread_info): Make "requested_threads" const.
1306 * gdbthread.h (print_thread_info): Make "requested_threads"
1307 const.
1308 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
1309 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
1310
7a102139
TT
13112019-05-08 Tom Tromey <tom@tromey.com>
1312
1313 * gdbtypes.c (objfile_type_data): Change type.
1314 (objfile_type, _initialize_gdbtypes): Update.
1315
924d79e2
TT
13162019-05-08 Tom Tromey <tom@tromey.com>
1317
1318 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
1319 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
1320 (_initialize_dwarf2_frame): Update.
1321
4c58e337
TT
13222019-05-08 Tom Tromey <tom@tromey.com>
1323
1324 * objc-lang.c (objc_objfile_data): Change type.
1325 (find_methods): Update.
1326 (_initialize_objc_lang): Remove.
1327
d772d2ab
TT
13282019-05-08 Tom Tromey <tom@tromey.com>
1329
1330 * stabsread.c (rs6000_builtin_type_data): Change type.
1331 (rs6000_builtin_type, _initialize_stabsread): Update.
1332
d11d83f4
TT
13332019-05-08 Tom Tromey <tom@tromey.com>
1334
1335 * mips-tdep.c (mips_pdr_data): Remove.
1336 (_initialize_mips_tdep): Update.
1337
9a73f0ad
TT
13382019-05-08 Tom Tromey <tom@tromey.com>
1339
1340 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
1341 (hppa_init_objfile_priv_data, read_unwind_info)
1342 (find_unwind_entry, _initialize_hppa_tdep): Update.
1343
8127a2fa
TT
13442019-05-08 Tom Tromey <tom@tromey.com>
1345
1346 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
1347 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
1348 on obstack.
1349 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
1350
91d3055d
TT
13512019-05-08 Tom Tromey <tom@tromey.com>
1352
1353 * mdebugread.c (basic_type_data): Change type.
1354 (basic_type, _initialize_mdebugread): Update.
1355
31930bd3
TT
13562019-05-08 Tom Tromey <tom@tromey.com>
1357
1358 * common/gdb_unique_ptr.h (struct noop_deleter): New.
1359
bdb3ed9e
TT
13602019-05-08 Tom Tromey <tom@tromey.com>
1361
1362 * nto-tdep.c (nto_inferior_data_reg): Change type.
1363 (nto_inferior_data): Update.
1364 (nto_inferior_data_cleanup, nto_new_inferior_data)
1365 (_initialize_nto_tdep): Remove.
1366 * nto-tdep.h (struct nto_inferior_data): Add initializers.
1367
f37b313d
TT
13682019-05-08 Tom Tromey <tom@tromey.com>
1369
1370 * ada-lang.c (struct ada_inferior_data): Add initializers.
1371 (ada_inferior_data): Change type.
1372 (ada_inferior_data_cleanup): Remove.
1373 (get_ada_inferior_data, ada_inferior_exit)
1374 (struct ada_pspace_data): Add initializers, destructor.
1375 (ada_pspace_data_handle): Change type.
1376 (get_ada_pspace_data): Update.
1377 (ada_pspace_data_cleanup): Remove.
1378
24699405
TT
13792019-05-08 Tom Tromey <tom@tromey.com>
1380
1381 * coffread.c (struct coff_symfile_info): Add initializers.
1382 (coff_objfile_data_key): Move lower. Change type.
1383 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
1384 Update.
1385 (coff_free_info): Remove.
1386
d4e05d2f
TT
13872019-05-08 Tom Tromey <tom@tromey.com>
1388
1389 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
1390 (fbsd_pspace_data_handle): Move lower. Change type.
1391 (get_fbsd_pspace_data): Update.
1392 (fbsd_pspace_data_cleanup): Remove.
1393 (_initialize_fbsd_tdep): Update.
1394
14ef6690
TT
13952019-05-08 Tom Tromey <tom@tromey.com>
1396
1397 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
1398 (get_ada_tasks_pspace_data): Update.
1399 (ada_tasks_pspace_data_cleanup): Remove.
1400 (_initialize_tasks): Update.
1401 (ada_tasks_inferior_data_handle): Change type.
1402 (get_ada_tasks_inferior_data): Update.
1403 (ada_tasks_inferior_data_cleanup): Remove.
1404 (struct ada_tasks_pspace_data): Add initializers.
1405
814cf43a
TT
14062019-05-08 Tom Tromey <tom@tromey.com>
1407
1408 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
1409 * symfile-debug.c (debug_sym_get_probes): Change type.
1410 * stap-probe.c (handle_stap_probe):
1411 (stap_static_probe_ops::get_probes): Change type.
1412 * probe.h (class static_probe_ops) <get_probes>: Change type.
1413 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
1414 (parse_probes_in_pspace): Update.
1415 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
1416 Update.
1417 (any_static_probe_ops::get_probes): Change type.
1418 * elfread.c (elfread_data): New typedef.
1419 (probe_key): Change type.
1420 (elf_get_probes): Likewise. Update.
1421 (probe_key_free): Remove.
1422 (_initialize_elfread): Update.
1423 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
1424 Change type.
1425 (dtrace_process_dof_probe, dtrace_process_dof)
1426 (dtrace_static_probe_ops::get_probe): Change type.
1427
02dc647e
TT
14282019-05-08 Tom Tromey <tom@tromey.com>
1429
1430 * xcoffread.c (struct xcoff_symfile_info): Rename from
1431 coff_symfile_info. Add initializers.
1432 (xcoff_objfile_data_key): Move lower. Change type.
1433 (XCOFF_DATA): Rewrite.
1434 (xcoff_free_info): Remove.
1435 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
1436 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
1437 (xcoff_initial_scan): Update.
1438
09232438
TT
14392019-05-08 Tom Tromey <tom@tromey.com>
1440
1441 * solib-svr4.c (struct svr4_info): Add initializers and
1442 destructor.
1443 <probes_table>: Now an htab_up.
1444 (solib_svr4_pspace_data): Change type.
1445 (free_probes_table): Simplify.
1446 (~svr4_info): Rename from svr4_pspace_data_cleanup.
1447 (get_svr4_info, probes_table_htab_remove_objfile_probes)
1448 (probes_table_remove_objfile_probes, register_solib_event_probe)
1449 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
1450 (_initialize_svr4_solib): Update.
1451
7b4a314f
TT
14522019-05-08 Tom Tromey <tom@tromey.com>
1453
1454 * remote.c (remote_pspace_data): Change type.
1455 (remote_pspace_data_cleanup): Remove.
1456 (get_remote_exec_file, set_pspace_remote_exec_file)
1457 (_initialize_remote): Update.
1458
51d3063a
TT
14592019-05-08 Tom Tromey <tom@tromey.com>
1460
1461 * breakpoint.c (breakpoint_objfile_key): Change type.
1462 (get_breakpoint_objfile_data): Update.
1463 (free_breakpoint_objfile_data): Remove.
1464 (_initialize_breakpoint): Update.
1465
89fb8848
TT
14662019-05-08 Tom Tromey <tom@tromey.com>
1467
1468 * linux-tdep.c (struct linux_info): Add initializers.
1469 (linux_inferior_data): Move. Change type.
1470 (invalidate_linux_cache_inf): Update.
1471 (linux_inferior_data_cleanup): Remove.
1472 (get_linux_inferior_data, _initialize_linux_tdep): Update.
1473
e9b89e2d
TT
14742019-05-08 Tom Tromey <tom@tromey.com>
1475
1476 * auxv.c (auxv_inferior_data): Move. Change type.
1477 (auxv_inferior_data_cleanup): Remove.
1478 (invalidate_auxv_cache_inf): Rewrite.
1479 (get_auxv_inferior_data, _initialize_auxv): Update.
1480
8c42777c
TT
14812019-05-08 Tom Tromey <tom@tromey.com>
1482
1483 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
1484 (symfile_debug_objfile_data_key): Change type.
1485 (symfile_debug_installed, debug_qf_has_symbols)
1486 (debug_qf_find_last_source_symtab)
1487 (debug_qf_forget_cached_source_info)
1488 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
1489 (debug_qf_print_stats, debug_qf_dump)
1490 (debug_qf_expand_symtabs_for_function)
1491 (debug_qf_expand_all_symtabs)
1492 (debug_qf_expand_symtabs_with_fullname)
1493 (debug_qf_map_matching_symbols)
1494 (debug_qf_expand_symtabs_matching)
1495 (debug_qf_find_pc_sect_compunit_symtab)
1496 (debug_qf_map_symbol_filenames)
1497 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
1498 (debug_sym_new_init, debug_sym_init, debug_sym_read)
1499 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
1500 (debug_sym_read_linetable, debug_sym_relocate): Update.
1501 (symfile_debug_free_objfile): Remove.
1502 (install_symfile_debug_logging, _initialize_symfile_debug):
1503 Update.
1504
5bfd760d
TT
15052019-05-08 Tom Tromey <tom@tromey.com>
1506
1507 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
1508 allocate_on_obstack.
1509 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
1510 (get_dwarf2_per_objfile): Update.
1511 (set_dwarf2_per_objfile): Remove.
1512 (dwarf2_has_info, dwarf2_get_section_info): Update.
1513 (dwarf2_free_objfile): Remove.
1514 (_initialize_dwarf2_read): Update.
1515
e85e19b4
TT
15162019-05-08 Tom Tromey <tom@tromey.com>
1517
1518 * auto-load.c (struct auto_load_pspace_info): Add destructor and
1519 initializers.
1520 <unsupported_script_warning_printed,
1521 script_not_found_warning_printed>: Now bool.
1522 (auto_load_pspace_data): Change type.
1523 (~auto_load_pspace_info): Rename from
1524 auto_load_pspace_data_cleanup.
1525 (get_auto_load_pspace_data, init_loaded_scripts_info)
1526 (clear_section_scripts, maybe_print_unsupported_script_warning)
1527 (maybe_print_script_not_found_warning, _initialize_auto_load):
1528 Update.
1529
f6aa7436
TT
15302019-05-08 Tom Tromey <tom@tromey.com>
1531
1532 * objfiles.c (objfile_pspace_info): Add destructor and
1533 initializers.
1534 (objfiles_pspace_data): Change type.
1535 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
1536 (get_objfile_pspace_data): Update.
1537 (objfiles_bfd_data): Change type.
1538 (get_objfile_bfd_data): Update.
1539 (objfile_bfd_data_free, _initialize_objfiles): Remove.
1540
6ae614f6
TT
15412019-05-08 Tom Tromey <tom@tromey.com>
1542
1543 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
1544 Change type.
1545 (get_catch_syscall_inferior_data): Update.
1546 (catch_syscall_inferior_data_cleanup): Remove.
1547 (_initialize_break_catch_syscall): Update.
1548
6509b8eb
TT
15492019-05-08 Tom Tromey <tom@tromey.com>
1550
1551 * inflow.c (struct terminal_info): Add destructor and
1552 initializers.
1553 (inflow_inferior_data): Change type.
1554 (~terminal_info): Rename from inflow_inferior_data_cleanup.
1555 (get_inflow_inferior_data, inflow_inferior_exit)
1556 (swap_terminal_info, _initialize_inflow): Update.
1557
35632941
TT
15582019-05-08 Tom Tromey <tom@tromey.com>
1559
1560 * target-dcache.c (target_dcache_cleanup): Remove.
1561 (target_dcache_aspace_key): Change type.
1562 (target_dcache_init_p, target_dcache_invalidate)
1563 (target_dcache_get, target_dcache_get_or_init)
1564 (_initialize_target_dcache): Update.
1565 * dcache.h (struct dcache_deleter): New.
1566
3017b94d
TT
15672019-05-08 Tom Tromey <tom@tromey.com>
1568
1569 * symtab.c (struct symbol_cache): Add destructor and
1570 initializers.
1571 (symbol_cache_key): Move. Change type.
1572 (make_symbol_cache, free_symbol_cache): Remove.
1573 (get_symbol_cache): Update.
1574 (symbol_cache_cleanup): Remove.
1575 (ALL_PSPACES, symbol_cache_flush)
1576 (maintenance_print_symbol_cache)
1577 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
1578 Update.
1579
a32ad8c5
TT
15802019-05-08 Tom Tromey <tom@tromey.com>
1581
1582 * symtab.c (struct main_info): Add destructor and initializers.
1583 (main_progspace_key): Move. Change type.
1584 (get_main_info): Update.
1585 (main_info_cleanup): Remove.
1586 (_initialize_symtab): Update.
1587
5f6e90a0
TT
15882019-05-08 Tom Tromey <tom@tromey.com>
1589
1590 * registry.h (DECLARE_REGISTRY): Define the _key class.
1591
1bd0c6e4
AB
15922019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * NEWS: Merge two 'New commands' sections.
1595
2228ef77
XR
15962019-05-08 Joel Brobecker <brobecker@adacore.com>
1597
1598 * ada-valprint.c (ada_val_print_gnat_array): Remove language
1599 parameter and use Ada language definition instead.
1600 (ada_val_print_ptr): Remove unused language parameter.
1601 (ada_val_print_num): Remove language parameter and use Ada language
1602 definition instead.
1603 (ada_val_print_enum, ada_val_print_flt): Remove unused language
1604 parameter.
1605 (ada_val_print_struct_union, ada_val_print_ref): Remove language
1606 parameter and use Ada language definition instead.
1607 (ada_val_print_1): Update all ada_val_print_xxx calls.
1608 Remove language parameter.
1609 (ada_val_print): Update ada_val_print_1 call.
1610
60fcc1c3
TT
16112019-05-08 Tom Tromey <tromey@adacore.com>
1612
1613 * remote.c (remote_hw_watchpoint_limit)
1614 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
1615 Now static.
1616
ed2b7c17
TT
16172019-05-08 Tom Tromey <tromey@adacore.com>
1618
1619 * maint.c (_initialize_maint_cmds): Move initialization code to
1620 remote.c.
1621 (watchdog, show_watchdog): Move to remote.c.
1622 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
1623 "watchdog" static.
1624 (_initialize_remote): Move initialization code from maint.c.
1625 * defs.h (watchdog): Don't declare.
1626
b0be6c91
TT
16272019-05-08 Tom Tromey <tromey@adacore.com>
1628
1629 * tui/tui-interp.c: Include main.h.
1630 * interps.c: Include main.h.
1631 * main.h (interpreter_p): Declare.
1632 * defs.h (interpreter_p): Don't declare.
1633
587ee17b
TT
16342019-05-08 Tom Tromey <tromey@adacore.com>
1635
1636 * dwarf2loc.c: Include dwarf2read.h.
1637 * defs.h (read_unsigned_leb128): Don't declare.
1638 * dwarf2read.h (read_unsigned_leb128): Declare.
1639
ca1df239
TT
16402019-05-08 Tom Tromey <tromey@adacore.com>
1641
1642 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
1643 method.
1644
99f20f08
TT
16452019-05-08 Tom Tromey <tromey@adacore.com>
1646
1647 * utils.c (fputs_maybe_filtered): Reset style after paging, even
1648 when no wrap column is set.
1649
80e55b13
TT
16502019-05-08 Tom Tromey <tromey@adacore.com>
1651
1652 * c-lang.c (c_get_string): Handle non-C-style arrays.
1653
9d3421af
TT
16542019-05-08 Tom Tromey <tromey@adacore.com>
1655
1656 * typeprint.c (print_offset_data::update): Print the bit offset,
1657 not the number of bits remaining.
1658
844333e2
TT
16592019-05-08 Tom Tromey <tromey@adacore.com>
1660
1661 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
1662 padding at end of comment.
1663
988915ee
TT
16642019-05-08 Tom Tromey <tromey@adacore.com>
1665
1666 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
1667 Compare main types.
1668
26bfd823
TT
16692019-05-06 Tom Tromey <tom@tromey.com>
1670
1671 * common/scoped_mmap.c: Include common-defs.h.
1672 * common/scoped_mmap.h: Don't include config.h.
1673
89055eaa
TT
16742019-05-04 Tom Tromey <tom@tromey.com>
1675
1676 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
1677 (struct aarch64_call_info): Add initializers.
1678 <si>: Now a std::vector.
1679 (pass_on_stack, aarch64_push_dummy_call): Update.
1680
5da01df5
TT
16812019-05-04 Simon Marchi <simon.marchi@efficios.com>
1682 Tom Tromey <tom@tromey.com>
1683
1684 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
1685 (ppc_threads): Now a std::vector. Now static.
1686 (hwdebug_find_thread_points_by_tid)
1687 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
1688 Update.
1689
fbdf05a1
TT
16902019-05-04 Tom Tromey <tom@tromey.com>
1691
1692 * arc-tdep.c (arc_tdesc_init): Return bool.
1693
06d16ec9
TT
16942019-05-04 Tom Tromey <tom@tromey.com>
1695
1696 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1697 Use gdb_assert_not_reached.
1698
9c056022
TT
16992019-05-04 Tom Tromey <tom@tromey.com>
1700
1701 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1702 "false".
1703
fa9c2a59
TT
17042019-05-04 Tom Tromey <tom@tromey.com>
1705
1706 * arc-tdep.c (arc_tdesc_init): Use bool.
1707
e2eb806a
TT
17082019-05-04 Tom Tromey <tom@tromey.com>
1709
1710 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1711
6fe87677
TT
17122019-05-04 Tom Tromey <tom@tromey.com>
1713
1714 * cli/cli-cmds.c (valid_command_p): Return bool.
1715
7f008c9e
TT
17162019-05-04 Tom Tromey <tom@tromey.com>
1717
1718 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1719 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1720
b6484282
RT
17212019-05-04 Raul Tambre <raul@tambre.ee>
1722
1723 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1724 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1725 operator for comparison.
1726
af97b416
TT
17272019-05-04 Tom Tromey <tom@tromey.com>
1728
1729 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1730 (lookup_partial_symbol, print_partial_symbols)
1731 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1732 (psymbol_compare): Update.
1733 (add_psymbol_to_bcache): Clear the entire psymbol.
1734 (maintenance_check_psymtabs): Update.
1735 * psympriv.h (struct partial_symbol): Don't derive from
1736 general_symbol_info.
1737 <obj_section, unrelocated_address, address,
1738 set_unrelocated_address>: Update.
1739 <ginfo>: New member.
1740 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1741 (debug_names::write_psymbols): Update.
1742
9d6d4be8
TV
17432019-05-04 Tom de Vries <tdevries@suse.de>
1744
1745 * contrib/cc-with-tweaks.sh: Support -n arg.
1746
66452beb
PW
17472019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1748
1749 * corelow.c (core_target::detach): Ensure frame cache and
1750 register caches are cleared.
1751 inferior.c (exit_inferior_1): Likewise.
1752
bde09ab7
TT
17532019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1754 Tom Tromey <tom@tromey.com>
1755
1756 * dictionary.c (collate_pending_symbols_by_language): Remove
1757 "struct" from foreach.
1758 * symtab.c (lookup_global_symbol_from_objfile)
1759 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1760 foreach.
1761 * ser-tcp.c (net_open): Remove "struct" from foreach.
1762 * objfiles.c (objfile_relocate, objfile_rebase)
1763 (objfile_has_symbols): Remove "struct" from foreach.
1764 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1765 from foreach.
1766 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1767 foreach.
1768 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1769 "struct" from foreach.
1770 * ada-lang.c (create_excep_cond_exprs)
1771 (ada_exception_catchpoint_cond_string): Remove "struct" from
1772 foreach.
1773
222a8d25
TT
17742019-05-03 Tom Tromey <tromey@adacore.com>
1775
1776 * ada-exp.y (convert_char_literal): Check suffix of each
1777 enumerator.
1778
fcd60b84
DP
17792019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1780
1781 PR ada/21406:
1782 * ada-exp.y (yywrap): Don't define.
1783 * ada-lex.l (%option): Add noyywrap
1784 (yywrap): Remove.
1785
5f2459c2
EZ
17862019-05-03 Eli Zaretskii <eliz@gnu.org>
1787
353ea2d1
EZ
1788 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1789 _WIN32_WINNT to the XP level, unless already defined to a higher
1790 level.
1791
1792 * unittests/parse-connection-spec-selftests.c:
1793 * ser-tcp.c:
1794 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1795 override.
1796
5f2459c2
EZ
1797 * symfile.c (find_separate_debug_file): Remove colon from the
1798 drive spec of DOS/Windows file names of the target, so that the
1799 file name produced from DEBUGDIR and the target's directory will
1800 be valid on DOS/Windows systems.
1801
80062eb9
AB
18022019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1803
1804 * rust-lang.c (val_print_struct): Handle printing structures
1805 containing strings.
1806
b8c05e85
TT
18072019-05-02 Tom Tromey <tromey@adacore.com>
1808
1809 * valarith.c (_initialize_valarith): Remove.
1810
4504bbde
TT
18112019-05-01 Tom Tromey <tromey@adacore.com>
1812
1813 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1814 bitfields.
1815
d48e62f4
TT
18162019-05-01 Tom Tromey <tromey@adacore.com>
1817
1818 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1819 for big-endian copies.
1820
15f18d14
AT
18212019-04-30 Ali Tamur <tamur@google.com>
1822 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1823 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1824 (read_3_bytes): New function.
1825
ab4ee614
JB
18262019-04-30 Joel Brobecker <brobecker@adacore.com>
1827
1828 * windows-nat.c (main_thread_id): Delete.
1829 (handle_output_debug_string): Replace main_thread_id by
1830 current_event.dwThreadId.
1831 (fake_create_process): Likewise.
1832 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1833 Do not set main_thread_id.
1834 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1835 current_event.dwThreadId.
1836 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1837
8ed5b76e
JB
18382019-04-30 Joel Brobecker <brobecker@adacore.com>
1839
1840 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1841 Use current_event.dwThreadId instead of main_thread_id.
1842
2ff0a947
TT
18432019-04-30 Tom Tromey <tromey@adacore.com>
1844
1845 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1846 (create_excep_cond_exprs): Iterate over program spaces.
1847 (ada_exception_catchpoint_cond_string): Examine all minimal
1848 symbols for exception types.
1849
a776957c
TT
18502019-04-30 Tom Tromey <tromey@adacore.com>
1851
1852 PR c++/24470:
1853 * dwarf2read.c (process_structure_scope): Handle case where type
1854 has template parameters but no symbol was created.
1855
bc68014d
AB
18562019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1857 Chris January <chris.january@arm.com>
1858
1859 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1860 qualifier.
1861 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1862
f1fdc960
AB
18632019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 * f-typeprint.c (f_print_type): Update rules for printing
1866 whitespace.
1867 (f_type_print_varspec_suffix): Likewise.
1868
bf7a4de1
AB
18692019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1870 Chris January <chris.january@arm.com>
1871
1872 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1873 function arguments.
1874
bbe75b9d
AB
18752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1876
1877 * f-lang.c (build_fortran_types): Change name of void type to
1878 lower case.
1879 * f-typeprint.c (f_type_print_base): Print the name of the void
1880 type, rather than a fixed string.
1881 * f-valprint.c (f_decorations): Use lower case void string.
1882
1db455a7
AB
18832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1884 Chris January <chris.january@arm.com>
1885
1886 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1887 types for Fortran.
1888
b6d03bb2
AB
18892019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1890 Chris January <chris.january@arm.com>
1891 David Lecomber <david.lecomber@arm.com>
1892
1893 * f-exp.y (BINOP_INTRINSIC): New token.
1894 (exp): New parser rule handling BINOP_INTRINSIC.
1895 (f77_keywords): Add new builtin procedures.
1896 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1897 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1898 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1899 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1900 (print_unop_subexp_f): New function.
1901 (print_binop_subexp_f): New function.
1902 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1903 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1904 (dump_subexp_body_f): Likewise.
1905 (operator_check_f): Likewise.
1906 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1907 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1908
83228e93
AB
19092019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1910
1911 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1912 UNOP_KIND.
1913 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1914 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1915 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1916 (operator_length_f): New fuction.
1917 (print_subexp_f): New function.
1918 (op_name_f): New function.
1919 (dump_subexp_body_f): New function.
1920 (operator_check_f): New function.
1921 (exp_descriptor_f): Replace standard expression handling functions
1922 with new functions.
1923 * gdb/fortran-operator.def: New file.
1924 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1925 * gdb/std-operator.def: Remove UNOP_KIND.
1926
6fdcd7cc
AB
19272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * std-operator.def: Remove unbalanced, stray double quote
1930 character.
1931
2e62ab40
AB
19322019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1933 Chris January <chris.january@arm.com>
1934 Daniel Everett <daniel.everett@arm.com>
1935 Nick Forrington <nick.forrington@arm.com>
1936 Richard Bunt <richard.bunt@arm.com>
1937
1938 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1939 of depth when printing anonymous structs or unions.
1940 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1941 Don't print either the top-level value, or the children if the
1942 max-depth is exceeded.
1943 (ppscm_print_children): When printing the key of a map, allow one
1944 extra level of depth.
1945 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1946 print either the top-level value, or the children if the max-depth
1947 is exceeded.
1948 (print_children): When printing the key of a map, allow one extra
1949 level of depth.
1950 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1951 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1952 (user_print_options): Initialise max_depth field.
1953 (val_print_scalar_or_string_type_p): New function.
1954 (val_print): Check to see if the max depth has been reached.
1955 (val_print_check_max_depth): Define new function.
1956 (show_print_max_depth): New function.
1957 (_initialize_valprint): Add 'print max-depth' option.
1958 * valprint.h (struct value_print_options) <max_depth>: New field.
1959 (val_print_check_max_depth): Declare new function.
1960 * NEWS: Document new feature.
1961
4be290b2
AB
19622019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * ada-lang.c (ada_language_defn): Initialise new field.
1965 * c-lang.c (c_is_string_type_p): New function.
1966 (c_language_defn): Initialise new field.
1967 (cplus_language_defn): Initialise new field.
1968 (asm_language_defn): Initialise new field.
1969 (minimal_language_defn): Initialise new field.
1970 * c-lang.h (c_is_string_type_p): Declare new function.
1971 * d-lang.c (d_language_defn): Initialise new field.
1972 * f-lang.c (f_is_string_type_p): New function.
1973 (f_language_defn): Initialise new field.
1974 * go-lang.c (go_is_string_type_p): New function.
1975 (go_language_defn): Initialise new field.
1976 * language.c (default_is_string_type_p): New function.
1977 (unknown_language_defn): Initialise new field.
1978 (auto_language_defn): Initialise new field.
1979 * language.h (struct language_defn) <la_is_string_type_p>: New
1980 member variable.
1981 (default_is_string_type_p): Declare new function.
1982 * m2-lang.c (m2_language_defn): Initialise new field.
1983 * objc-lang.c (objc_language_defn): Initialise new field.
1984 * opencl-lang.c (opencl_language_defn): Initialise new field.
1985 * p-lang.c (pascal_is_string_type_p): New function.
1986 (pascal_language_defn): Initialise new field.
1987 * rust-lang.c (rust_is_string_type_p): New function.
1988 (rust_language_defn): Initialise new field.
1989
721b08c6
AB
19902019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1993 New field.
1994 * ada-lang.c (ada_language_defn): Initialise new field.
1995 * c-lang.c (c_language_defn): Likewise.
1996 (cplus_language_defn): Likewise.
1997 (asm_language_defn): Likewise.
1998 (minimal_language_defn): Likewise.
1999 * d-lang.c (d_language_defn): Likewise.
2000 * f-lang.c (f_language_defn): Likewise.
2001 * go-lang.c (go_language_defn): Likewise.
2002 * language.c (unknown_language_defn): Likewise.
2003 (auto_language_defn): Likewise.
2004 * m2-lang.c (m2_language_defn): Likewise.
2005 * objc-lang.c (objc_language_defn): Likewise.
2006 * opencl-lang.c (opencl_language_defn): Likewise.
2007 * p-lang.c (pascal_language_defn): Likewise.
2008 * rust-lang.c (rust_language_defn): Likewise.
2009
fc913e53
AB
20102019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2011
2012 * ada-lang.c (ada_is_character_type): Change return type to bool.
2013 (ada_is_string_type): Likewise.
2014 * ada-lang.h (ada_is_character_type): Update declaration
2015 (ada_is_string_type): Likewise.
2016
fa731fa0
PW
20172019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2018
2019 Support style in 'frame|thread apply'
2020
2021 * gdbcmd.h (execute_command_to_string): New term_out parameter.
2022 * record.c (record_start, record_stop): Update callers of
2023 execute_command_to_string with false.
2024 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
2025 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
2026 methods.
2027 (class string_file): New constructor with term_out parameter.
2028 Override methods term_out and can_emit_style_escape. New member
2029 term_out.
2030 (class stdio_file): Override can_emit_style_escape.
2031 (class tee_file): Override term_out and can_emit_style_escape.
2032 * utils.h (can_emit_style_escape): Remove.
2033 * utils.c (can_emit_style_escape): Likewise.
2034 Update all callers of can_emit_style_escape (SOMESTREAM) to
2035 SOMESTREAM->can_emit_style_escape.
2036 * source-cache.c (source_cache::get_source_lines): Likewise.
2037 * stack.c (frame_apply_command_count): Call execute_command_to_string
2038 passing the term_out characteristic of the current gdb_stdout.
2039 * thread.c (thr_try_catch_cmd): Likewise.
2040 * top.c (execute_command_to_string): pass term_out parameter
2041 to construct the string_file for the command output.
2042 * ui-file.c (term_cli_styling): New function (most code moved
2043 from utils.c can_emit_style_escape).
2044 (string_file::string_file, string_file::can_emit_style_escape,
2045 stdio_file::can_emit_style_escape, tee_file::term_out,
2046 tee_file::can_emit_style_escape): New functions.
2047
136afab8
PW
20482019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2049
2050 * NEWS: Mention the new set|show may-call-functions.
2051 * infcall.c (may_call_functions_p): New variable.
2052 (show_may_call_functions_p): New function.
2053 (call_function_by_hand_dummy): Throws an error if not
2054 may-call-functions.
2055 (_initialize_infcall): Call add_setshow_boolean_cmd for
2056 may-call-functions.
2057
725cbb63
KS
20582019-04-25 Keith Seitz <keiths@redhat.com>
2059
2060 PR c++/24367
2061 * cp-support.c (inspect_type): Don't attempt substitutions
2062 of symbol with the same name.
2063
3d1cbb78
TT
20642019-04-25 Tom Tromey <tromey@adacore.com>
2065
2066 PR gdb/24475:
2067 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
2068 static.
2069
94aeb44b
TT
20702019-04-25 Tom Tromey <tromey@adacore.com>
2071
2072 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
2073 rvalue reference.
2074 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
2075 (gdb_xml_parser::parse): Use std::move.
2076 * python/python-internal.h (gdbpy_convert_exception): Take a const
2077 reference.
2078 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
2079 std::move.
2080 * python/py-utils.c (gdbpy_convert_exception): Take a const
2081 reference.
2082 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
2083 Use std::move.
2084 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2085 Use std::move.
2086 * mi/mi-main.c (mi_print_exception): Take a const reference.
2087 * main.c (handle_command_errors): Take a const reference.
2088 * linespec.c (parse_linespec): Use std::move.
2089 * infcall.c (run_inferior_call): Use std::move.
2090 (call_function_by_hand_dummy): Use std::move.
2091 * exec.c (try_open_exec_file): Use std::move.
2092 * exceptions.h (exception_print, exception_fprintf)
2093 (exception_print_same): Update.
2094 * exceptions.c (print_exception, exception_print)
2095 (exception_fprintf, exception_print_same): Change parameters to
2096 const reference.
2097 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
2098 * common/new-op.c: Use std::move.
2099 * common/common-exceptions.h (struct gdb_exception): Add move
2100 constructor.
2101 (struct gdb_exception_error, struct gdb_exception_quit, struct
2102 gdb_quit_bad_alloc): Change constructor to move constructor.
2103 (throw_exception): Change parameter to rvalue reference.
2104 * common/common-exceptions.c (throw_exception): Take rvalue
2105 reference.
2106 * cli/cli-interp.c (safe_execute_command): Use std::move.
2107 * breakpoint.c (insert_bp_location, location_to_sals): Use
2108 std::move.
2109
680d7fd5
TT
21102019-04-25 Tom Tromey <tromey@adacore.com>
2111
2112 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
2113 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
2114 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
2115 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
2116 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
2117 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
2118 guile/scm-value.c: Use unpack.
2119 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
2120 gdbscm_gdb_exception.
2121 (gdbscm_throw_gdb_exception): Likewise.
2122 (struct gdbscm_gdb_exception): New.
2123 (unpack): New function.
2124 (gdbscm_wrap): Use unpack.
2125
c6fdd8b2
TT
21262019-04-25 Tom Tromey <tromey@adacore.com>
2127
2128 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
2129 (gdb_rl_callback_handler): Use std::move.
2130 * common/common-exceptions.h (struct gdb_exception): Add move
2131 assignment operator.
2132 (throw_exception_sjlj): Change "exception" to const reference.
2133 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
2134 (throw_exception_sjlj): Change "exception" to const reference.
2135
cc06b668
TT
21362019-04-25 Tom Tromey <tromey@adacore.com>
2137
2138 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
2139 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
2140 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
2141 Update.
2142 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2143 Update.
2144 * mi/mi-interp.c (mi_interp::exec): Update.
2145 * linespec.c (parse_linespec): Update.
2146 * infcall.c (run_inferior_call): Update.
2147 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
2148 * guile/scm-symbol.c (gdbscm_lookup_symbol)
2149 (gdbscm_lookup_global_symbol): Update.
2150 * guile/scm-param.c (gdbscm_parameter_value): Update.
2151 * guile/scm-frame.c (gdbscm_frame_read_register)
2152 (gdbscm_frame_read_var): Update.
2153 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2154 * exec.c (try_open_exec_file): Update.
2155 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
2156 (gdb_rl_callback_handler): Update.
2157 * common/common-exceptions.h (exception_none): Don't declare.
2158 * common/common-exceptions.c (exception_none): Don't define.
2159 (struct catcher) <exception>: Update.
2160 * cli/cli-interp.c (safe_execute_command): Update.
2161 * breakpoint.c (insert_bp_location, location_to_sals): Update.
2162
cf532bd1
AT
21632019-04-25 Ali Tamur <tamur@google.com>
2164
2165 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
2166 (read_attribute_value): Likewise.
2167 (dwarf2_read_addr_index): Update comment.
2168 (read_str_index): Add DW_FORM_strx.
2169 (dwarf2_string_attr): Likewise.
2170 (dwarf2_const_value_attr): Likewise.
2171 (dump_die_shallow): Likewise.
2172 (dwarf2_fetch_constant_bytes): Likewise.
2173 (skip_form_bytes): Likewise.
2174 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
2175
82433e3e
SDJ
21762019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2177
2178 PR corefiles/11608
2179 PR corefiles/18187
2180 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
2181 OFFSET. Verify if current mapping contains an ELF header.
2182 (linux_find_memory_regions_full): Adjust call to
2183 dump_mapping_p.
2184
723adb65
SL
21852019-04-25 Sandra Loosemore <sandra@codesourcery.com>
2186 Kang Li <kanglictf@gmail.com>
2187
2188 PR gdb/21600
2189
2190 * dwarf2-frame.c (read_initial_length): Be consistent about using
2191 unsigned representation of length.
2192 (decode_frame_entry_1): Likewise. Check for wraparound of
2193 end pointer as well as buffer overflow.
2194
596179f7
SDJ
21952019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2196
2197 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
2198 "vq".
2199
a59240a4
TT
22002019-04-24 Tom Tromey <tromey@adacore.com>
2201
2202 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
2203
f872fdbb
AB
22042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2205
2206 * s12z-tdep.c (s12z_unwind_pc): Delete.
2207 (s12z_unwind_sp): Delete.
2208 (s12z_gdbarch_init): Don't register deleted functions with
2209 gdbarch.
2210
b614e6f3
AB
22112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2212
2213 * rl78-tdep.c (rl78_unwind_sp): Delete.
2214 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
2215
14faed38
AB
22162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
2219 (xstormy16_unwind_pc): Delete.
2220 (xstormy16_dummy_id): Delete.
2221 (xstormy16_gdbarch_init): Don't register deleted functions with
2222 gdbarch.
2223
541aad8a
AB
22242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2225
2226 * vax-tdep.c (vax_unwind_pc): Delete.
2227 (vax_gdbarch_init): Don't register deleted function with gdbarch.
2228
29222070
AB
22292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * v850-tdep.c (v850_unwind_sp): Delete.
2232 (v850_unwind_pc): Delete.
2233 (v850_dummy_id): Delete.
2234 (v850_gdbarch_init): Don't register deleted functions with
2235 gdbarch.
2236
0f534d76
AB
22372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2238
2239 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
2240 (tilegx_unwind_pc): Delete.
2241 (tilegx_unwind_dummy_id): Delete.
2242 (tilegx_gdbarch_init): Don't register deleted functions with
2243 gdbarch.
2244
1ba7b7f9
AB
22452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2246
2247 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
2248 (tic6x_dummy_id): Delete.
2249 (tic6x_gdbarch_init): Don't register deleted functions with
2250 gdbarch.
2251
d31f262c
AB
22522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * sparc-tdep.c (sparc_unwind_pc): Delete.
2255 (sparc32_gdbarch_init): Don't register deleted function with
2256 gdbarch.
2257
6d14d64d
AB
22582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2259
2260 * sh-tdep.c (sh_unwind_sp): Delete.
2261 (sh_unwind_pc): Delete.
2262 (sh_dummy_id): Delete.
2263 (sh_gdbarch_init): Don't register deleted functions with
2264 gdbarch.
2265
a40dde9d
AB
22662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2267
2268 * score-tdep.c (score_unwind_sp): Delete.
2269 (score_unwind_pc): Delete.
2270 (score_dummy_id): Delete.
2271 (score_gdbarch_init): Don't register deleted functions with
2272 gdbarch.
2273
47c47d69
AB
22742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2275
2276 * rx-tdep.c (rx_unwind_pc): Delete.
2277 (rx_unwind_sp): Delete.
2278 (rx_dummy_id): Delete.
2279 (rx_gdbarch_init): Don't register deleted functions with
2280 gdbarch. Update comment.
2281
833a4480
AB
22822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
2285 (rs6000_dummy_id): Delete.
2286 (rs6000_gdbarch_init): Don't register deleted functions with
2287 gdbarch.
2288
3f2cef49
AB
22892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * or1k-tdep.c (or1k_dummy_id): Delete.
2292 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
2293
96acf884
AB
22942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * nios2-tdep.c (nios2_dummy_id): Delete.
2297 (nios2_unwind_sp): Delete.
2298 (nios2_gdbarch_init): Don't register deleted functions with
2299 gdbarch.
2300
ca0ab0aa
AB
23012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2302
2303 * nds32-tdep.c (nds32_dummy_id): Delete.
2304 (nds32_unwind_pc): Delete.
2305 (nds32_unwind_sp): Delete.
2306 (nds32_gdbarch_init): Don't register deleted functions with
2307 gdbarch.
2308
c8259044
AB
23092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2310
2311 * msp430-tdep.c (msp430_unwind_pc): Delete.
2312 (msp430_unwind_sp): Delete.
2313 (msp430_dummy_id): Delete.
2314 (msp430_gdbarch_init): Don't register deleted functions with
2315 gdbarch.
2316
27f113c8
AB
23172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * moxie-tdep.c (moxie_unwind_sp): Delete.
2320 (moxie_unwind_pc): Delete.
2321 (moxie_dummy_id): Delete.
2322 (moxie_gdbarch_init): Don't register deleted functions with
2323 gdbarch.
2324
aee6c3cd
AB
23252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2326
2327 * mn10300-tdep.c (mn10300_dummy_id): Delete.
2328 (mn10300_unwind_pc): Delete.
2329 (mn10300_unwind_sp): Delete.
2330 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
2331 mn10300_unwind_sp.
2332 (mn10300_frame_unwind_init): Don't register deleted functions with
2333 gdbarch.
2334
8e2b5aea
AB
23352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2336
2337 * mep-tdep.c (mep_unwind_pc): Delete.
2338 (mep_unwind_sp): Delete.
2339 (mep_dummy_id): Delete.
2340 (mep_gdbarch_init): Don't register deleted functions with
2341 gdbarch.
2342
43cf3ede
AB
23432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
2346 (m68hc11_unwind_sp): Delete.
2347 (m68hc11_gdbarch_init): Don't register deleted functions with
2348 gdbarch.
2349
5e79b7bb
AB
23502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2351
2352 * m32r-tdep.c (m32r_unwind_sp): Delete.
2353 (m32r_unwind_pc): Delete.
2354 (m32r_dummy_id): Delete.
2355 (m32r_gdbarch_init): Don't register deleted functions with
2356 gdbarch.
2357
89b268d8
AB
23582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2359
2360 * m32c-tdep.c (m32c_unwind_pc): Delete.
2361 (m32c_unwind_sp): Delete.
2362 (m32c_dummy_id): Delete.
2363 (m32c_gdbarch_init): Don't register deleted functions with
2364 gdbarch.
2365
946c28d2
AB
23662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2367
2368 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
2369 (lm32_unwind_pc): Delete.
2370 (lm32_dummy_id): Delete.
2371 (lm32_gdbarch_init): Don't register deleted functions with
2372 gdbarch.
2373
bf12844a
AB
23742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
2377 (iq2000_unwind_pc): Delete.
2378 (iq2000_dummy_id): Delete.
2379 (iq2000_gdbarch_init): Don't register deleted functions with
2380 gdbarch.
2381
ecbc06d2
AB
23822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * nds32-tdep.c (nds32_type_align): Delete.
2385 (nds32_push_dummy_call): Use type_align instead.
2386
030197b4
AB
23872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * arm-tdep.c (arm_type_align): Only handle vector override case.
2390 (arm_push_dummy_call): Use type_align.
2391 (arm_gdbarch_init): Register arm_type_align gdbarch function.
2392
b907456c
AB
23932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
2396 case.
2397 (pass_on_stack): Use type_align.
2398 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
2399 function.
2400
9e97ba43
TT
24012019-04-23 Tom Tromey <tromey@adacore.com>
2402
2403 * dwarf2read.c (line_header::file_name_at): Remove unused
2404 overload.
2405
6892f601
TV
24062019-04-23 Tom de Vries <tdevries@suse.de>
2407
2408 PR gdb/24438
2409 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
2410 invocation.
2411
336d760d
AT
2412
24132019-03-27 Ali Tamur <tamur@google.com>
2414
2415 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
2416 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
2417 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
2418 (dwarf_expr_context::get_addr_index): Likewise
2419 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
2420 (symbol_needs_eval_context::get_addr_index): Likewise
2421 (disassemble_dwarf_expression): Add DW_OP_addrx
2422 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
2423 (read_cutu_die_from_dwo): Update comment
2424 (skip_one_die): Add DW_FORM_addrx
2425 (read_attribute_value): Likewise
2426 (var_decode_location): Add DW_OP_addrx
2427 (dwarf2_const_value_attr): Add DW_FORM_addrx
2428 (dump_die_shallow): Likewise
2429 (dwarf2_fetch_constant_bytes): Likewise
2430 (decode_locdesc): Add DW_OP_addrx
2431 (skip_form_bytes): Add DW_FORM_addrx
2432
ad9d13f8
AT
24332019-04-22 Ali Tamur <tamur@google.com>
2434
2435 * MAINTAINERS (Write After Approval): Add self.
2436
d70cc3ba
SM
24372019-04-22 Simon Marchi <simon.marchi@efficios.com>
2438
2439 * solib-svr4.c (get_svr4_info): Add pspace parameter.
2440 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
2441 (open_symbol_file_object): Likewise.
2442 (svr4_default_sos): Add info parameter.
2443 (svr4_read_so_list): Likewise.
2444 (svr4_current_sos_direct): Adjust functions calls to pass down
2445 info.
2446 (svr4_current_sos_1): Add info parameter.
2447 (svr4_current_sos): Call get_svr4_info, pass info down to
2448 svr4_current_sos_1.
2449 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
2450 get_svr4_info.
2451 (svr4_in_dynsym_resolve_code): Pass current_program_space to
2452 get_svr4_info.
2453 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
2454 to get_svr4_info.
2455 (probes_table_remove_objfile_probes): Likewise.
2456 (register_solib_event_probe): Add info parameter.
2457 (solist_update_incremental): Pass info parameter down to
2458 svr4_read_so_list.
2459 (disable_probes_interface): Add info parameter.
2460 (svr4_handle_solib_event): Pass current_program_space to
2461 get_svr4_info. Adjust disable_probes_interface cleanup.
2462 (svr4_create_probe_breakpoints): Add info parameter, pass it
2463 down to register_solib_event_probe.
2464 (svr4_create_solib_event_breakpoints): Add info parameter,
2465 pass it down to svr4_create_probe_breakpoints.
2466 (enable_break): Pass info down to
2467 svr4_create_solib_event_breakpoints.
2468 (svr4_solib_create_inferior_hook): Pass current_program_space to
2469 get_svr4_info.
2470 (svr4_clear_solib): Likewise.
2471
7905fc35
PA
24722019-04-22 Pedro Alves <palves@redhat.com>
2473
2474 * solib-svr4.c (svr4_free_objfile_observer): New.
2475 (probe_and_action::objfile): New field.
2476 (probes_table_htab_remove_objfile_probes)
2477 (probes_table_remove_objfile_probes): New functions.
2478 (register_solib_event_probe): Add 'objfile' parameter. Store it
2479 in the new probe_and_action. Don't store the probe in 'lookup'.
2480 (svr4_create_probe_breakpoints): Pass objfile to
2481 register_solib_event_probe.
2482 (_initialize_svr4_solib): Register a free_objfile observer.
2483
fb881986
TT
24842019-04-19 Tom Tromey <tom@tromey.com>
2485
2486 * common/queue.h: Remove.
2487
8732db6c
TT
24882019-04-19 Tom Tromey <tom@tromey.com>
2489
2490 * event-loop.c: Don't include "common/queue.h".
2491
97dfbadd
TT
24922019-04-19 Tom Tromey <tom@tromey.com>
2493
2494 * remote.c (remote_target): Use delete.
2495 * remote-notif.h: Include <list>, not "common/queue.h".
2496 (notif_client_p): Remove typedef.
2497 (remote_notif_state): Add constructor, destructor, initializer.
2498 <notif_queue>: Now a std::list.
2499 (remote_notif_state_xfree): Don't declare.
2500 * remote-notif.c (remote_notif_process, handle_notification)
2501 (remote_notif_state_allocate): Update.
2502 (~remote_notif_state): Rename from remote_notif_state_xfree.
2503
cf250e36
TT
25042019-04-19 Tom Tromey <tom@tromey.com>
2505
2506 * symfile.c (reread_symbols): Update.
2507 * objfiles.c (objfile_register_static_link)
2508 (objfile_lookup_static_link): Update
2509 (~objfile) Don't delete static_links.
2510 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
2511
61f4b350
TT
25122019-04-19 Tom Tromey <tom@tromey.com>
2513
2514 * type-stack.h (struct type_stack) <insert>: Constify string.
2515 * type-stack.c (type_stack::insert): Constify string.
2516 * gdbtypes.h (lookup_template_type): Update.
2517 (address_space_name_to_int): Update.
2518 * gdbtypes.c (address_space_name_to_int): Make space_identifier
2519 const.
2520 (lookup_template_type): Make name const.
2521 * c-exp.y: Update rules.
2522 (lex_one_token, classify_name, classify_inner_name)
2523 (c_print_token): Update.
2524 * p-exp.y: Update rules.
2525 (yylex): Update.
2526 * f-exp.y: Update rules.
2527 (yylex): Update.
2528 * d-exp.y: Update rules.
2529 (lex_one_token, classify_name, classify_inner_name): Update.
2530 * parse.c (write_dollar_variable, copy_name): Return std::string.
2531 * parser-defs.h (copy_name): Change return type.
2532 * m2-exp.y: Update rules.
2533 (yylex): Update.
2534 * go-exp.y (lex_one_token): Update.
2535 Update rules.
2536 (classify_unsafe_function, classify_packaged_name)
2537 (classify_name, yylex): Update.
2538
189b8c2e
ST
25392019-04-19 Sergei Trofimovich <siarheit@google.com>
2540
2541 * configure.ac: add --enable-source-highlight switch.
2542 * configure: Regenerate.
2543 * top.c (print_gdb_version): plumb --enable-source-highlight
2544 status to "show configuration".
2545
8ecb59f8
TT
25462019-04-19 Tom Tromey <tromey@adacore.com>
2547
2548 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
2549 Check ADA_TYPE_P.
2550 (empty_record, ada_template_to_fixed_record_type_1)
2551 (template_to_static_fixed_type)
2552 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
2553 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
2554 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
2555 macros.
2556
62160ec9
TT
25572019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2558
2559 PR symtab/24423:
2560 * source.c (print_source_lines_base): Advance "iter" when a
2561 control character is seen.
2562
f2ae8bc8
PW
25632019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2564
2565 * inferior.h (struct infcall_suspend_state_deleter):
2566 Catch exception in destructor to avoid crash.
2567
d563b953
PW
25682019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2569
2570 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
2571 close to the add_com "shell".
2572
dc34c897
TT
25732019-04-18 Tom Tromey <tromey@adacore.com>
2574
2575 * process-stratum-target.h (class process_stratum_target)
2576 <stratum>: Add "final".
2577
a12e5744
TT
25782019-04-17 Tom Tromey <tromey@adacore.com>
2579
2580 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
2581 against nullptr before use.
2582
a7e559cc
AH
25832019-04-17 Alan Hayward <alan.hayward@arm.com>
2584
2585 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
2586
c01660c6
AB
25872019-04-17 Jim Wilson <jimw@sifive.com>
2588 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
2591 code read might fail, assume 4-byte breakpoint in that case.
2592
4aa866af
LS
25932019-04-15 Leszek Swirski <leszeks@google.com>
2594
2595 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
2596 rather than a hand-rolled POD check when checking for forced MEMORY
2597 classification.
2598
48574d91
AH
25992019-04-15 Alan Hayward <alan.hayward@arm.com>
2600
2601 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
2602 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
2603 function.
2604 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
2605 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
2606 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
2607 declaration.
2608
4da037ef
AH
26092019-04-15 Alan Hayward <alan.hayward@arm.com>
2610
2611 * aarch64-linux-nat.c
2612 (aarch64_linux_nat_target::thread_architecture): Add override.
2613 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
2614 each VQ.
2615
ccb8d7e8
AH
26162019-04-15 Alan Hayward <alan.hayward@arm.com>
2617
2618 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
2619
35add35e
AB
26202019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
2623 target types of size 96-bits, add some additional comments, and
2624 check that the builtin type we found was the correct size.
2625
51196bbc
EZ
26262019-04-12 Eli Zaretskii <eliz@gnu.org>
2627
2628 * utils.c (prompt_for_continue): Don't restore the styling at the
2629 end, as applied_style has the wrong value. This fixes styling in
2630 long lists of file names that are interrupted by the "Continue?"
2631 prompt.
2632
62253a61
AB
26332019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
2636 * c-lang.c (c_language_defn): Likewise.
2637 (cplus_language_defn): Likewise.
2638 (asm_language_defn): Likewise.
2639 (minimal_language_defn): Likewise.
2640 * d-lang.c (d_language_defn): Likewise.
2641 * f-lang.c (f_language_defn): Likewise.
2642 * go-lang.c (go_language_defn): Likewise.
2643 * language.c (unknown_language_defn): Likewise.
2644 (auto_language_defn): Likewise.
2645 * language.h (struct language_defn): Remove la_magic field.
2646 (LANG_MAGIC): Delete.
2647 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
2648 * objc-lang.c (objc_language_defn): Likewise.
2649 * opencl-lang.c (opencl_language_defn): Likewise.
2650 * p-lang.c (pascal_language_defn): Likewise.
2651 * rust-lang.c (rust_language_defn): Likewise.
2652
a9158a86
AB
26532019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2654
2655 * riscv-tdep.c (riscv_type_align): New function.
2656 (riscv_type_alignment): Delete.
2657 (riscv_arg_location): Use 'type_align'.
2658 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
2659
41077b66
AB
26602019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2661
2662 * gdbtypes.c (type_align): A struct with no non-static fields also
2663 has alignment of 1.
2664
9f0272f8
AB
26652019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2666
2667 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
2668 component to 0.
2669 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
2670 member.
2671 (riscv_struct_info::analyse): New implementation using new
2672 analyse_inner member function.
2673 (riscv_struct_info::field_offset): New member function.
2674 (riscv_struct_info::m_offsets): New member variable.
2675 (riscv_struct_info::analyse_inner): New private member function,
2676 takes the old implementation of riscv_struct_info::analyse but
2677 extended to track field offsets.
2678 (riscv_call_arg_struct): Update the struct folding special cases
2679 to handle cases where empty C++ structs, which are non-zero
2680 length, are found.
2681 (riscv_arg_location): Initialise the length of each location, a
2682 non-zero length now indicates the location is in use.
2683 (riscv_push_dummy_call): Allow for the first location having a
2684 non-zero offset when setting up arguments.
2685 (riscv_return_value): Likewise, but for return values.
2686
02cf60c7
TT
26872019-04-11 Tom Tromey <tromey@adacore.com>
2688
2689 * utils.c (internal_vproblem): Make "msg" const.
2690
68811f8f
AH
26912019-04-11 Alan Hayward <alan.hayward@arm.com>
2692
2693 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2694 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2695 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2696 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2697
3f52fdbc
KB
26982019-04-10 Kevin Buettner <kevinb@redhat.com>
2699
2700 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2701 function.
2702 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2703 of amd64_collect_native_gregset.
2704 (amd64_linux_nat_target::store_registers): Likewise.
2705
e9ad22ee
TT
27062019-04-10 Tom Tromey <tom@tromey.com>
2707
2708 * symtab.c (lookup_global_symbol_from_objfile)
2709 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2710 * objfiles.h (class separate_debug_iterator): New.
2711 (class separate_debug_range): New.
2712 (struct objfile) <separate_debug_objfiles>: New method.
2713 (objfile_separate_debug_iterate): Don't declare.
2714 * objfiles.c (separate_debug_iterator::operator++): Rename from
2715 objfile_separate_debug_iterate.
2716 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2717 iterator.
2718 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2719 iterator.
2720
ee371134
TT
27212019-04-10 Tom Tromey <tom@tromey.com>
2722
2723 * symfile.c (reread_symbols): Remove old comment.
2724 * objfiles.c (free_all_objfiles): Fix a typo.
2725
bf227d61
TT
27262019-04-10 Tom Tromey <tom@tromey.com>
2727
2728 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2729 * minsyms.c (lookup_minimal_symbol): Use foreach.
2730 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2731 (lookup_minimal_symbol_solib_trampoline): Likewise.
2732 * symfile.c (reread_symbols): Use foreach.
2733
8dc433a0
TT
27342019-04-09 Ivan Begert <ivanbegert@gmail.com>
2735 Tom Tromey <tromey@adacore.com>
2736
2737 PR rust/24414:
2738 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2739 (rust_lex_int_test): Change "value" to be LONGEST.
2740 (rust_lex_tests): Add test for long integer literal.
2741
9ab8741a
TT
27422019-04-09 Tom Tromey <tromey@adacore.com>
2743
2744 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2745 to bool.
2746 (extended_remote_target::attach): Update.
2747 (remote_target::remote_notice_new_inferior): Update.
2748 (remote_target::add_current_inferior_and_thread): Update.
2749 * inferior.c (exit_inferior_1): Use "false".
2750 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2751
e242fd12
SM
27522019-04-09 Simon Marchi <simon.marchi@efficios.com>
2753
9ca1957f 2754 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
2755 the "start" command.
2756
2b0c8b01
KB
27572019-04-08 Kevin Buettner <kevinb@redhat.com>
2758
2759 * python/py-inferior.c (infpy_thread_from_thread_handle):
2760 Adjust comments to reflect renaming of thread_from_thread_handle
2761 to thread_from_handle. Adjust keywords. Fix type error message.
2762 (inferior_object_methods): Add thread_from_handle. Retain
2763 thread_from_thread_handle, but mark it as deprecated.
2764
50a82723
KB
27652019-04-08 Kevin Buettner <kevinb@redhat.com>
2766
2767 * gdbthread.h (find_thread_by_handle): Revise declaration.
2768 * thread.c (find_thread_by_handle): Likewise. Adjust
2769 implementation too.
2770 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2771 support for buffer objects as handles.
2772
cf63b016
KB
27732019-04-08 Kevin Buettner <kevinb@redhat.com>
2774
2775 * python/py-infthread.c (thpy_thread_handle): New function.
2776 (thread_object_methods): Register thpy_thread_handle.
2777
3d6c6204
KB
27782019-04-08 Kevin Buettner <kevinb@redhat.com>
2779
2780 * gdbthread.h (thread_to_thread_handle): Declare.
2781 * thread.c (gdbtypes.h): Include.
2782 (thread_to_thread_handle): New function.
2783
2784 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2785 (target_thread_info_to_thread_handle): Declare.
2786 * target.c (target_thread_info_to_thread_handle): New function.
2787 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2788 * target-delegates.c: Regenerate.
2789
2790 * linux-thread-db.c (class thread_db_target): Add method
2791 thread_info_to_thread_handle.
2792 (thread_db_target::thread_info_to_thread_handle): Define.
2793 * remote.c (class remote_target): Add new method
2794 thread_info_to_thread_handle.
2795 (remote_target::thread_info_to_thread_handle): Define.
2796
56be6ea8
PA
27972019-04-08 Pedro Alves <palves@redhat.com>
2798
2799 * common/common-exceptions.c (throw_exception): Don't create
2800 named object to throw; throw directly.
2801 (throw_it): Likewise. Don't initialize gdb_exception::message
2802 here, with new; pass FMT and AP to the ctor instead.
2803 * common/common-exceptions.h: Include <string>.
2804 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2805 const char *, va_list)): New ctor. Use std::make_shared.
2806 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2807 errors)): Delete.
2808 (gdb_exception_error::gdb_exception_error(enum errors, const char
2809 *, va_list)): New.
2810 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2811 Add assertion.
2812 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2813 errors)): Delete.
2814 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2815 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2816 Add assertion.
2817
eedc3f4f
TT
28182019-04-08 Tom Tromey <tom@tromey.com>
2819
2820 * valops.c (value_rtti_indirect_type): Replace throw_exception
2821 with throw.
2822 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2823 with throw.
2824 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2825 throw.
2826 * target.c (target_translate_tls_address): Replace throw_exception
2827 with throw.
2828 * stack.c (frame_apply_command_count): Replace throw_exception
2829 with throw.
2830 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2831 throw.
2832 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2833 with throw.
2834 * rs6000-tdep.c (rs6000_frame_cache)
2835 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2836 * remote.c: Replace throw_exception with throw.
2837 * record-full.c (record_full_message, record_full_wait_1)
2838 (record_full_restore): Replace throw_exception with throw.
2839 * record-btrace.c:
2840 (get_thread_current_frame_id, record_btrace_start_replaying)
2841 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2842 (cmd_record_btrace_start): Replace throw_exception with throw.
2843 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2844 throw.
2845 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2846 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2847 * linespec.c:
2848 (find_linespec_symbols): Replace throw_exception with throw.
2849 * infrun.c (displaced_step_prepare, resume): Replace
2850 throw_exception with throw.
2851 * infcmd.c (post_create_inferior): Replace throw_exception with
2852 throw.
2853 * inf-loop.c (inferior_event_handler): Replace throw_exception
2854 with throw.
2855 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2856 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2857 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2858 (get_prev_frame_always, get_frame_pc_if_available)
2859 (get_frame_address_in_block_if_available, get_frame_language):
2860 Replace throw_exception with throw.
2861 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2862 throw_exception with throw.
2863 * eval.c (fetch_subexp_value, evaluate_var_value)
2864 (evaluate_funcall, evaluate_subexp_standard): Replace
2865 throw_exception with throw.
2866 * dwarf2loc.c (call_site_find_chain)
2867 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2868 Replace throw_exception with throw.
2869 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2870 with throw.
2871 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2872 throw.
2873 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2874 * completer.c (complete_line_internal): Replace throw_exception
2875 with throw.
2876 * compile/compile-object-run.c (compile_object_run): Replace
2877 throw_exception with throw.
2878 * cli/cli-script.c (process_next_line): Replace throw_exception
2879 with throw.
2880 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2881 (btrace_enable, btrace_maint_update_pt_packets): Replace
2882 throw_exception with throw.
2883 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2884 throw_exception with throw.
2885 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2886 throw_exception with throw.
2887 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2888 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2889 * aarch64-tdep.c (aarch64_make_prologue_cache)
2890 (aarch64_make_stub_cache): Replace throw_exception with throw.
2891
26003a20
TT
28922019-04-08 Tom Tromey <tom@tromey.com>
2893
2894 * common/common-exceptions.c (throw_exception): Rename from
2895 throw_exception_cxx. Remove old copy. Make argument const.
2896 (throw_it): Create and throw exception objects directly.
2897 * common/common-exceptions.h (throw_exception): Make argument
2898 const.
2899 (struct gdb_exception_error): Add constructor.
2900 (struct gdb_exception_quit): Add constructor.
2901
d272eb37
TT
29022019-04-08 Tom Tromey <tom@tromey.com>
2903
2904 * common/common-exceptions.h (exception_rethrow): Don't declare.
2905 (TRY_SJLJ): Update comment.
2906 (TRY, CATCH, END_CATCH): Remove.
2907 * common/common-exceptions.c (exception_rethrow): Remove.
2908
230d2906
TT
29092019-04-08 Tom Tromey <tom@tromey.com>
2910
2911 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2912 Remove.
2913 (gdb_exception_error): Rename from
2914 gdb_exception_RETURN_MASK_ERROR.
2915 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2916 (gdb_quit_bad_alloc): Update.
2917 * aarch64-tdep.c: Update.
2918 * ada-lang.c: Update.
2919 * ada-typeprint.c: Update.
2920 * ada-valprint.c: Update.
2921 * amd64-tdep.c: Update.
2922 * arch-utils.c: Update.
2923 * break-catch-throw.c: Update.
2924 * breakpoint.c: Update.
2925 * btrace.c: Update.
2926 * c-varobj.c: Update.
2927 * cli/cli-cmds.c: Update.
2928 * cli/cli-interp.c: Update.
2929 * cli/cli-script.c: Update.
2930 * common/common-exceptions.c: Update.
2931 * common/new-op.c: Update.
2932 * common/selftest.c: Update.
2933 * compile/compile-c-symbols.c: Update.
2934 * compile/compile-cplus-symbols.c: Update.
2935 * compile/compile-object-load.c: Update.
2936 * compile/compile-object-run.c: Update.
2937 * completer.c: Update.
2938 * corelow.c: Update.
2939 * cp-abi.c: Update.
2940 * cp-support.c: Update.
2941 * cp-valprint.c: Update.
2942 * darwin-nat.c: Update.
2943 * disasm-selftests.c: Update.
2944 * dtrace-probe.c: Update.
2945 * dwarf-index-cache.c: Update.
2946 * dwarf-index-write.c: Update.
2947 * dwarf2-frame-tailcall.c: Update.
2948 * dwarf2-frame.c: Update.
2949 * dwarf2loc.c: Update.
2950 * dwarf2read.c: Update.
2951 * eval.c: Update.
2952 * event-loop.c: Update.
2953 * event-top.c: Update.
2954 * exec.c: Update.
2955 * f-valprint.c: Update.
2956 * fbsd-tdep.c: Update.
2957 * frame-unwind.c: Update.
2958 * frame.c: Update.
2959 * gdbtypes.c: Update.
2960 * gnu-v3-abi.c: Update.
2961 * guile/guile-internal.h: Update.
2962 * guile/scm-block.c: Update.
2963 * guile/scm-breakpoint.c: Update.
2964 * guile/scm-cmd.c: Update.
2965 * guile/scm-disasm.c: Update.
2966 * guile/scm-frame.c: Update.
2967 * guile/scm-lazy-string.c: Update.
2968 * guile/scm-math.c: Update.
2969 * guile/scm-param.c: Update.
2970 * guile/scm-ports.c: Update.
2971 * guile/scm-pretty-print.c: Update.
2972 * guile/scm-symbol.c: Update.
2973 * guile/scm-symtab.c: Update.
2974 * guile/scm-type.c: Update.
2975 * guile/scm-value.c: Update.
2976 * i386-linux-tdep.c: Update.
2977 * i386-tdep.c: Update.
2978 * inf-loop.c: Update.
2979 * infcall.c: Update.
2980 * infcmd.c: Update.
2981 * infrun.c: Update.
2982 * jit.c: Update.
2983 * language.c: Update.
2984 * linespec.c: Update.
2985 * linux-fork.c: Update.
2986 * linux-nat.c: Update.
2987 * linux-tdep.c: Update.
2988 * linux-thread-db.c: Update.
2989 * main.c: Update.
2990 * mi/mi-cmd-break.c: Update.
2991 * mi/mi-cmd-stack.c: Update.
2992 * mi/mi-interp.c: Update.
2993 * mi/mi-main.c: Update.
2994 * objc-lang.c: Update.
2995 * p-valprint.c: Update.
2996 * parse.c: Update.
2997 * ppc-linux-tdep.c: Update.
2998 * printcmd.c: Update.
2999 * python/py-arch.c: Update.
3000 * python/py-breakpoint.c: Update.
3001 * python/py-cmd.c: Update.
3002 * python/py-finishbreakpoint.c: Update.
3003 * python/py-frame.c: Update.
3004 * python/py-framefilter.c: Update.
3005 * python/py-gdb-readline.c: Update.
3006 * python/py-inferior.c: Update.
3007 * python/py-infthread.c: Update.
3008 * python/py-lazy-string.c: Update.
3009 * python/py-linetable.c: Update.
3010 * python/py-objfile.c: Update.
3011 * python/py-param.c: Update.
3012 * python/py-prettyprint.c: Update.
3013 * python/py-progspace.c: Update.
3014 * python/py-record-btrace.c: Update.
3015 * python/py-record.c: Update.
3016 * python/py-symbol.c: Update.
3017 * python/py-type.c: Update.
3018 * python/py-unwind.c: Update.
3019 * python/py-utils.c: Update.
3020 * python/py-value.c: Update.
3021 * python/python.c: Update.
3022 * record-btrace.c: Update.
3023 * record-full.c: Update.
3024 * remote-fileio.c: Update.
3025 * remote.c: Update.
3026 * riscv-tdep.c: Update.
3027 * rs6000-aix-tdep.c: Update.
3028 * rs6000-tdep.c: Update.
3029 * rust-exp.y: Update.
3030 * rust-lang.c: Update.
3031 * s390-tdep.c: Update.
3032 * selftest-arch.c: Update.
3033 * solib-dsbt.c: Update.
3034 * solib-frv.c: Update.
3035 * solib-spu.c: Update.
3036 * solib-svr4.c: Update.
3037 * solib.c: Update.
3038 * sparc64-linux-tdep.c: Update.
3039 * stack.c: Update.
3040 * symfile-mem.c: Update.
3041 * symmisc.c: Update.
3042 * target.c: Update.
3043 * thread.c: Update.
3044 * top.c: Update.
3045 * tracefile-tfile.c: Update.
3046 * tui/tui.c: Update.
3047 * typeprint.c: Update.
3048 * unittests/cli-utils-selftests.c: Update.
3049 * unittests/parse-connection-spec-selftests.c: Update.
3050 * valops.c: Update.
3051 * valprint.c: Update.
3052 * value.c: Update.
3053 * varobj.c: Update.
3054 * windows-nat.c: Update.
3055 * x86-linux-nat.c: Update.
3056 * xml-support.c: Update.
3057
a70b8144
TT
30582019-04-08 Tom Tromey <tom@tromey.com>
3059
3060 * xml-support.c: Use C++ exception handling.
3061 * x86-linux-nat.c: Use C++ exception handling.
3062 * windows-nat.c: Use C++ exception handling.
3063 * varobj.c: Use C++ exception handling.
3064 * value.c: Use C++ exception handling.
3065 * valprint.c: Use C++ exception handling.
3066 * valops.c: Use C++ exception handling.
3067 * unittests/parse-connection-spec-selftests.c: Use C++ exception
3068 handling.
3069 * unittests/cli-utils-selftests.c: Use C++ exception handling.
3070 * typeprint.c: Use C++ exception handling.
3071 * tui/tui.c: Use C++ exception handling.
3072 * tracefile-tfile.c: Use C++ exception handling.
3073 * top.c: Use C++ exception handling.
3074 * thread.c: Use C++ exception handling.
3075 * target.c: Use C++ exception handling.
3076 * symmisc.c: Use C++ exception handling.
3077 * symfile-mem.c: Use C++ exception handling.
3078 * stack.c: Use C++ exception handling.
3079 * sparc64-linux-tdep.c: Use C++ exception handling.
3080 * solib.c: Use C++ exception handling.
3081 * solib-svr4.c: Use C++ exception handling.
3082 * solib-spu.c: Use C++ exception handling.
3083 * solib-frv.c: Use C++ exception handling.
3084 * solib-dsbt.c: Use C++ exception handling.
3085 * selftest-arch.c: Use C++ exception handling.
3086 * s390-tdep.c: Use C++ exception handling.
3087 * rust-lang.c: Use C++ exception handling.
3088 * rust-exp.y: Use C++ exception handling.
3089 * rs6000-tdep.c: Use C++ exception handling.
3090 * rs6000-aix-tdep.c: Use C++ exception handling.
3091 * riscv-tdep.c: Use C++ exception handling.
3092 * remote.c: Use C++ exception handling.
3093 * remote-fileio.c: Use C++ exception handling.
3094 * record-full.c: Use C++ exception handling.
3095 * record-btrace.c: Use C++ exception handling.
3096 * python/python.c: Use C++ exception handling.
3097 * python/py-value.c: Use C++ exception handling.
3098 * python/py-utils.c: Use C++ exception handling.
3099 * python/py-unwind.c: Use C++ exception handling.
3100 * python/py-type.c: Use C++ exception handling.
3101 * python/py-symbol.c: Use C++ exception handling.
3102 * python/py-record.c: Use C++ exception handling.
3103 * python/py-record-btrace.c: Use C++ exception handling.
3104 * python/py-progspace.c: Use C++ exception handling.
3105 * python/py-prettyprint.c: Use C++ exception handling.
3106 * python/py-param.c: Use C++ exception handling.
3107 * python/py-objfile.c: Use C++ exception handling.
3108 * python/py-linetable.c: Use C++ exception handling.
3109 * python/py-lazy-string.c: Use C++ exception handling.
3110 * python/py-infthread.c: Use C++ exception handling.
3111 * python/py-inferior.c: Use C++ exception handling.
3112 * python/py-gdb-readline.c: Use C++ exception handling.
3113 * python/py-framefilter.c: Use C++ exception handling.
3114 * python/py-frame.c: Use C++ exception handling.
3115 * python/py-finishbreakpoint.c: Use C++ exception handling.
3116 * python/py-cmd.c: Use C++ exception handling.
3117 * python/py-breakpoint.c: Use C++ exception handling.
3118 * python/py-arch.c: Use C++ exception handling.
3119 * printcmd.c: Use C++ exception handling.
3120 * ppc-linux-tdep.c: Use C++ exception handling.
3121 * parse.c: Use C++ exception handling.
3122 * p-valprint.c: Use C++ exception handling.
3123 * objc-lang.c: Use C++ exception handling.
3124 * mi/mi-main.c: Use C++ exception handling.
3125 * mi/mi-interp.c: Use C++ exception handling.
3126 * mi/mi-cmd-stack.c: Use C++ exception handling.
3127 * mi/mi-cmd-break.c: Use C++ exception handling.
3128 * main.c: Use C++ exception handling.
3129 * linux-thread-db.c: Use C++ exception handling.
3130 * linux-tdep.c: Use C++ exception handling.
3131 * linux-nat.c: Use C++ exception handling.
3132 * linux-fork.c: Use C++ exception handling.
3133 * linespec.c: Use C++ exception handling.
3134 * language.c: Use C++ exception handling.
3135 * jit.c: Use C++ exception handling.
3136 * infrun.c: Use C++ exception handling.
3137 * infcmd.c: Use C++ exception handling.
3138 * infcall.c: Use C++ exception handling.
3139 * inf-loop.c: Use C++ exception handling.
3140 * i386-tdep.c: Use C++ exception handling.
3141 * i386-linux-tdep.c: Use C++ exception handling.
3142 * guile/scm-value.c: Use C++ exception handling.
3143 * guile/scm-type.c: Use C++ exception handling.
3144 * guile/scm-symtab.c: Use C++ exception handling.
3145 * guile/scm-symbol.c: Use C++ exception handling.
3146 * guile/scm-pretty-print.c: Use C++ exception handling.
3147 * guile/scm-ports.c: Use C++ exception handling.
3148 * guile/scm-param.c: Use C++ exception handling.
3149 * guile/scm-math.c: Use C++ exception handling.
3150 * guile/scm-lazy-string.c: Use C++ exception handling.
3151 * guile/scm-frame.c: Use C++ exception handling.
3152 * guile/scm-disasm.c: Use C++ exception handling.
3153 * guile/scm-cmd.c: Use C++ exception handling.
3154 * guile/scm-breakpoint.c: Use C++ exception handling.
3155 * guile/scm-block.c: Use C++ exception handling.
3156 * guile/guile-internal.h: Use C++ exception handling.
3157 * gnu-v3-abi.c: Use C++ exception handling.
3158 * gdbtypes.c: Use C++ exception handling.
3159 * frame.c: Use C++ exception handling.
3160 * frame-unwind.c: Use C++ exception handling.
3161 * fbsd-tdep.c: Use C++ exception handling.
3162 * f-valprint.c: Use C++ exception handling.
3163 * exec.c: Use C++ exception handling.
3164 * event-top.c: Use C++ exception handling.
3165 * event-loop.c: Use C++ exception handling.
3166 * eval.c: Use C++ exception handling.
3167 * dwarf2read.c: Use C++ exception handling.
3168 * dwarf2loc.c: Use C++ exception handling.
3169 * dwarf2-frame.c: Use C++ exception handling.
3170 * dwarf2-frame-tailcall.c: Use C++ exception handling.
3171 * dwarf-index-write.c: Use C++ exception handling.
3172 * dwarf-index-cache.c: Use C++ exception handling.
3173 * dtrace-probe.c: Use C++ exception handling.
3174 * disasm-selftests.c: Use C++ exception handling.
3175 * darwin-nat.c: Use C++ exception handling.
3176 * cp-valprint.c: Use C++ exception handling.
3177 * cp-support.c: Use C++ exception handling.
3178 * cp-abi.c: Use C++ exception handling.
3179 * corelow.c: Use C++ exception handling.
3180 * completer.c: Use C++ exception handling.
3181 * compile/compile-object-run.c: Use C++ exception handling.
3182 * compile/compile-object-load.c: Use C++ exception handling.
3183 * compile/compile-cplus-symbols.c: Use C++ exception handling.
3184 * compile/compile-c-symbols.c: Use C++ exception handling.
3185 * common/selftest.c: Use C++ exception handling.
3186 * common/new-op.c: Use C++ exception handling.
3187 * cli/cli-script.c: Use C++ exception handling.
3188 * cli/cli-interp.c: Use C++ exception handling.
3189 * cli/cli-cmds.c: Use C++ exception handling.
3190 * c-varobj.c: Use C++ exception handling.
3191 * btrace.c: Use C++ exception handling.
3192 * breakpoint.c: Use C++ exception handling.
3193 * break-catch-throw.c: Use C++ exception handling.
3194 * arch-utils.c: Use C++ exception handling.
3195 * amd64-tdep.c: Use C++ exception handling.
3196 * ada-valprint.c: Use C++ exception handling.
3197 * ada-typeprint.c: Use C++ exception handling.
3198 * ada-lang.c: Use C++ exception handling.
3199 * aarch64-tdep.c: Use C++ exception handling.
3200
3d6e9d23
TT
32012019-04-08 Tom Tromey <tom@tromey.com>
3202
3203 * xml-support.c (gdb_xml_parser::parse): Update.
3204 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3205 * value.c (show_convenience): Update.
3206 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
3207 (test_parse_flags_qcs): Update.
3208 * thread.c (thr_try_catch_cmd): Update.
3209 * target.c (target_translate_tls_address): Update.
3210 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3211 (info_frame_command_core, frame_apply_command_count): Update.
3212 * rust-exp.y (rust_lex_exception_test): Update.
3213 * riscv-tdep.c (riscv_print_one_register_info): Update.
3214 * remote.c (remote_target::enable_btrace): Update.
3215 * record-btrace.c (record_btrace_enable_warn): Update.
3216 * python/py-utils.c (gdbpy_convert_exception): Update.
3217 * printcmd.c (do_one_display, print_variable_and_value): Update.
3218 * mi/mi-main.c (mi_print_exception): Update.
3219 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
3220 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3221 * linux-nat.c (linux_nat_target::attach): Update.
3222 * linux-fork.c (class scoped_switch_fork_info): Update.
3223 * infrun.c (displaced_step_prepare): Update.
3224 * infcall.c (call_function_by_hand_dummy): Update.
3225 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
3226 * gnu-v3-abi.c (print_one_vtable): Update.
3227 * frame.c (get_prev_frame_always): Update.
3228 * f-valprint.c (info_common_command_for_block): Update.
3229 * exec.c (try_open_exec_file): Update.
3230 * exceptions.c (print_exception, exception_print)
3231 (exception_fprintf, exception_print_same): Update.
3232 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
3233 * dwarf-index-cache.c (index_cache::store)
3234 (index_cache::lookup_gdb_index): Update.
3235 * darwin-nat.c (maybe_cache_shell): Update.
3236 * cp-valprint.c (cp_print_value_fields): Update.
3237 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
3238 (gcc_cplus_symbol_address): Update.
3239 * compile/compile-c-symbols.c (gcc_convert_symbol)
3240 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
3241 * common/selftest.c: Update.
3242 * common/common-exceptions.h (struct gdb_exception) <message>: Now
3243 a std::string.
3244 (exception_try_scope_entry, exception_try_scope_exit): Don't
3245 declare.
3246 (struct exception_try_scope): Remove.
3247 (TRY): Don't use exception_try_scope.
3248 (struct gdb_exception): Add constructor, operator=.
3249 <what>: New method.
3250 (struct gdb_exception_RETURN_MASK_ALL)
3251 (struct gdb_exception_RETURN_MASK_ERROR)
3252 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
3253 (struct gdb_quit_bad_alloc): Update.
3254 * common/common-exceptions.c (exception_none): Change
3255 initializer.
3256 (struct catcher) <state, exception>: Initialize inline.
3257 <prev>: Remove member.
3258 (current_catcher): Remove.
3259 (catchers): New global.
3260 (exceptions_state_mc_init): Simplify.
3261 (catcher_pop): Remove.
3262 (exceptions_state_mc, exceptions_state_mc_catch): Update.
3263 (try_scope_depth, exception_try_scope_entry)
3264 (exception_try_scope_exit): Remove.
3265 (throw_exception_sjlj): Update.
3266 (exception_messages, exception_messages_size): Remove.
3267 (throw_it): Simplify.
3268 (gdb_exception_sliced_copy): Remove.
3269 (throw_exception_cxx): Update.
3270 * cli/cli-script.c (script_from_file): Update.
3271 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
3272 Update.
3273 * ada-valprint.c (ada_val_print): Update.
3274 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
3275 (create_excep_cond_exprs): Update.
3276
c5c10118
TT
32772019-04-08 Tom Tromey <tom@tromey.com>
3278
3279 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
3280 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
3281 (TRY, CATCH, END_CATCH): Remove some definitions.
3282 * common/common-exceptions.c: Don't use GDB_XCPT.
3283 (catcher_list_size): Remove.
3284 (throw_exception, throw_it): Simplify.
3285
4de283e4
TT
32862019-04-05 Tom Tromey <tom@tromey.com>
3287
3288 Revert the header-sorting patch.
3289 * ft32-tdep.c: Revert.
3290 * frv-tdep.c: Revert.
3291 * frv-linux-tdep.c: Revert.
3292 * frame.c: Revert.
3293 * frame-unwind.c: Revert.
3294 * frame-base.c: Revert.
3295 * fork-child.c: Revert.
3296 * findvar.c: Revert.
3297 * findcmd.c: Revert.
3298 * filesystem.c: Revert.
3299 * filename-seen-cache.h: Revert.
3300 * filename-seen-cache.c: Revert.
3301 * fbsd-tdep.c: Revert.
3302 * fbsd-nat.h: Revert.
3303 * fbsd-nat.c: Revert.
3304 * f-valprint.c: Revert.
3305 * f-typeprint.c: Revert.
3306 * f-lang.c: Revert.
3307 * extension.h: Revert.
3308 * extension.c: Revert.
3309 * extension-priv.h: Revert.
3310 * expprint.c: Revert.
3311 * exec.h: Revert.
3312 * exec.c: Revert.
3313 * exceptions.c: Revert.
3314 * event-top.c: Revert.
3315 * event-loop.c: Revert.
3316 * eval.c: Revert.
3317 * elfread.c: Revert.
3318 * dwarf2read.h: Revert.
3319 * dwarf2read.c: Revert.
3320 * dwarf2loc.c: Revert.
3321 * dwarf2expr.h: Revert.
3322 * dwarf2expr.c: Revert.
3323 * dwarf2-frame.c: Revert.
3324 * dwarf2-frame-tailcall.c: Revert.
3325 * dwarf-index-write.h: Revert.
3326 * dwarf-index-write.c: Revert.
3327 * dwarf-index-common.c: Revert.
3328 * dwarf-index-cache.h: Revert.
3329 * dwarf-index-cache.c: Revert.
3330 * dummy-frame.c: Revert.
3331 * dtrace-probe.c: Revert.
3332 * disasm.h: Revert.
3333 * disasm.c: Revert.
3334 * disasm-selftests.c: Revert.
3335 * dictionary.c: Revert.
3336 * dicos-tdep.c: Revert.
3337 * demangle.c: Revert.
3338 * dcache.h: Revert.
3339 * dcache.c: Revert.
3340 * darwin-nat.h: Revert.
3341 * darwin-nat.c: Revert.
3342 * darwin-nat-info.c: Revert.
3343 * d-valprint.c: Revert.
3344 * d-namespace.c: Revert.
3345 * d-lang.c: Revert.
3346 * ctf.c: Revert.
3347 * csky-tdep.c: Revert.
3348 * csky-linux-tdep.c: Revert.
3349 * cris-tdep.c: Revert.
3350 * cris-linux-tdep.c: Revert.
3351 * cp-valprint.c: Revert.
3352 * cp-support.c: Revert.
3353 * cp-namespace.c: Revert.
3354 * cp-abi.c: Revert.
3355 * corelow.c: Revert.
3356 * corefile.c: Revert.
3357 * continuations.c: Revert.
3358 * completer.h: Revert.
3359 * completer.c: Revert.
3360 * complaints.c: Revert.
3361 * coffread.c: Revert.
3362 * coff-pe-read.c: Revert.
3363 * cli-out.h: Revert.
3364 * cli-out.c: Revert.
3365 * charset.c: Revert.
3366 * c-varobj.c: Revert.
3367 * c-valprint.c: Revert.
3368 * c-typeprint.c: Revert.
3369 * c-lang.c: Revert.
3370 * buildsym.c: Revert.
3371 * buildsym-legacy.c: Revert.
3372 * build-id.h: Revert.
3373 * build-id.c: Revert.
3374 * btrace.c: Revert.
3375 * bsd-uthread.c: Revert.
3376 * breakpoint.h: Revert.
3377 * breakpoint.c: Revert.
3378 * break-catch-throw.c: Revert.
3379 * break-catch-syscall.c: Revert.
3380 * break-catch-sig.c: Revert.
3381 * blockframe.c: Revert.
3382 * block.c: Revert.
3383 * bfin-tdep.c: Revert.
3384 * bfin-linux-tdep.c: Revert.
3385 * bfd-target.c: Revert.
3386 * bcache.c: Revert.
3387 * ax-general.c: Revert.
3388 * ax-gdb.h: Revert.
3389 * ax-gdb.c: Revert.
3390 * avr-tdep.c: Revert.
3391 * auxv.c: Revert.
3392 * auto-load.c: Revert.
3393 * arm-wince-tdep.c: Revert.
3394 * arm-tdep.c: Revert.
3395 * arm-symbian-tdep.c: Revert.
3396 * arm-pikeos-tdep.c: Revert.
3397 * arm-obsd-tdep.c: Revert.
3398 * arm-nbsd-tdep.c: Revert.
3399 * arm-nbsd-nat.c: Revert.
3400 * arm-linux-tdep.c: Revert.
3401 * arm-linux-nat.c: Revert.
3402 * arm-fbsd-tdep.c: Revert.
3403 * arm-fbsd-nat.c: Revert.
3404 * arm-bsd-tdep.c: Revert.
3405 * arch-utils.c: Revert.
3406 * arc-tdep.c: Revert.
3407 * arc-newlib-tdep.c: Revert.
3408 * annotate.h: Revert.
3409 * annotate.c: Revert.
3410 * amd64-windows-tdep.c: Revert.
3411 * amd64-windows-nat.c: Revert.
3412 * amd64-tdep.c: Revert.
3413 * amd64-sol2-tdep.c: Revert.
3414 * amd64-obsd-tdep.c: Revert.
3415 * amd64-obsd-nat.c: Revert.
3416 * amd64-nbsd-tdep.c: Revert.
3417 * amd64-nbsd-nat.c: Revert.
3418 * amd64-nat.c: Revert.
3419 * amd64-linux-tdep.c: Revert.
3420 * amd64-linux-nat.c: Revert.
3421 * amd64-fbsd-tdep.c: Revert.
3422 * amd64-fbsd-nat.c: Revert.
3423 * amd64-dicos-tdep.c: Revert.
3424 * amd64-darwin-tdep.c: Revert.
3425 * amd64-bsd-nat.c: Revert.
3426 * alpha-tdep.c: Revert.
3427 * alpha-obsd-tdep.c: Revert.
3428 * alpha-nbsd-tdep.c: Revert.
3429 * alpha-mdebug-tdep.c: Revert.
3430 * alpha-linux-tdep.c: Revert.
3431 * alpha-linux-nat.c: Revert.
3432 * alpha-bsd-tdep.c: Revert.
3433 * alpha-bsd-nat.c: Revert.
3434 * aix-thread.c: Revert.
3435 * agent.c: Revert.
3436 * addrmap.c: Revert.
3437 * ada-varobj.c: Revert.
3438 * ada-valprint.c: Revert.
3439 * ada-typeprint.c: Revert.
3440 * ada-tasks.c: Revert.
3441 * ada-lang.c: Revert.
3442 * aarch64-tdep.c: Revert.
3443 * aarch64-ravenscar-thread.c: Revert.
3444 * aarch64-newlib-tdep.c: Revert.
3445 * aarch64-linux-tdep.c: Revert.
3446 * aarch64-linux-nat.c: Revert.
3447 * aarch64-fbsd-tdep.c: Revert.
3448 * aarch64-fbsd-nat.c: Revert.
3449 * aarch32-linux-nat.c: Revert.
3450
d55e5aa6
TT
34512019-04-05 Tom Tromey <tom@tromey.com>
3452
3453 * ft32-tdep.c: Sort headers.
3454 * frv-tdep.c: Sort headers.
3455 * frv-linux-tdep.c: Sort headers.
3456 * frame.c: Sort headers.
3457 * frame-unwind.c: Sort headers.
3458 * frame-base.c: Sort headers.
3459 * fork-child.c: Sort headers.
3460 * findvar.c: Sort headers.
3461 * findcmd.c: Sort headers.
3462 * filesystem.c: Sort headers.
3463 * filename-seen-cache.h: Sort headers.
3464 * filename-seen-cache.c: Sort headers.
3465 * fbsd-tdep.c: Sort headers.
3466 * fbsd-nat.h: Sort headers.
3467 * fbsd-nat.c: Sort headers.
3468 * f-valprint.c: Sort headers.
3469 * f-typeprint.c: Sort headers.
3470 * f-lang.c: Sort headers.
3471 * extension.h: Sort headers.
3472 * extension.c: Sort headers.
3473 * extension-priv.h: Sort headers.
3474 * expprint.c: Sort headers.
3475 * exec.h: Sort headers.
3476 * exec.c: Sort headers.
3477 * exceptions.c: Sort headers.
3478 * event-top.c: Sort headers.
3479 * event-loop.c: Sort headers.
3480 * eval.c: Sort headers.
3481 * elfread.c: Sort headers.
3482 * dwarf2read.h: Sort headers.
3483 * dwarf2read.c: Sort headers.
3484 * dwarf2loc.c: Sort headers.
3485 * dwarf2expr.h: Sort headers.
3486 * dwarf2expr.c: Sort headers.
3487 * dwarf2-frame.c: Sort headers.
3488 * dwarf2-frame-tailcall.c: Sort headers.
3489 * dwarf-index-write.h: Sort headers.
3490 * dwarf-index-write.c: Sort headers.
3491 * dwarf-index-common.c: Sort headers.
3492 * dwarf-index-cache.h: Sort headers.
3493 * dwarf-index-cache.c: Sort headers.
3494 * dummy-frame.c: Sort headers.
3495 * dtrace-probe.c: Sort headers.
3496 * disasm.h: Sort headers.
3497 * disasm.c: Sort headers.
3498 * disasm-selftests.c: Sort headers.
3499 * dictionary.c: Sort headers.
3500 * dicos-tdep.c: Sort headers.
3501 * demangle.c: Sort headers.
3502 * dcache.h: Sort headers.
3503 * dcache.c: Sort headers.
3504 * darwin-nat.h: Sort headers.
3505 * darwin-nat.c: Sort headers.
3506 * darwin-nat-info.c: Sort headers.
3507 * d-valprint.c: Sort headers.
3508 * d-namespace.c: Sort headers.
3509 * d-lang.c: Sort headers.
3510 * ctf.c: Sort headers.
3511 * csky-tdep.c: Sort headers.
3512 * csky-linux-tdep.c: Sort headers.
3513 * cris-tdep.c: Sort headers.
3514 * cris-linux-tdep.c: Sort headers.
3515 * cp-valprint.c: Sort headers.
3516 * cp-support.c: Sort headers.
3517 * cp-namespace.c: Sort headers.
3518 * cp-abi.c: Sort headers.
3519 * corelow.c: Sort headers.
3520 * corefile.c: Sort headers.
3521 * continuations.c: Sort headers.
3522 * completer.h: Sort headers.
3523 * completer.c: Sort headers.
3524 * complaints.c: Sort headers.
3525 * coffread.c: Sort headers.
3526 * coff-pe-read.c: Sort headers.
3527 * cli-out.h: Sort headers.
3528 * cli-out.c: Sort headers.
3529 * charset.c: Sort headers.
3530 * c-varobj.c: Sort headers.
3531 * c-valprint.c: Sort headers.
3532 * c-typeprint.c: Sort headers.
3533 * c-lang.c: Sort headers.
3534 * buildsym.c: Sort headers.
3535 * buildsym-legacy.c: Sort headers.
3536 * build-id.h: Sort headers.
3537 * build-id.c: Sort headers.
3538 * btrace.c: Sort headers.
3539 * bsd-uthread.c: Sort headers.
3540 * breakpoint.h: Sort headers.
3541 * breakpoint.c: Sort headers.
3542 * break-catch-throw.c: Sort headers.
3543 * break-catch-syscall.c: Sort headers.
3544 * break-catch-sig.c: Sort headers.
3545 * blockframe.c: Sort headers.
3546 * block.c: Sort headers.
3547 * bfin-tdep.c: Sort headers.
3548 * bfin-linux-tdep.c: Sort headers.
3549 * bfd-target.c: Sort headers.
3550 * bcache.c: Sort headers.
3551 * ax-general.c: Sort headers.
3552 * ax-gdb.h: Sort headers.
3553 * ax-gdb.c: Sort headers.
3554 * avr-tdep.c: Sort headers.
3555 * auxv.c: Sort headers.
3556 * auto-load.c: Sort headers.
3557 * arm-wince-tdep.c: Sort headers.
3558 * arm-tdep.c: Sort headers.
3559 * arm-symbian-tdep.c: Sort headers.
3560 * arm-pikeos-tdep.c: Sort headers.
3561 * arm-obsd-tdep.c: Sort headers.
3562 * arm-nbsd-tdep.c: Sort headers.
3563 * arm-nbsd-nat.c: Sort headers.
3564 * arm-linux-tdep.c: Sort headers.
3565 * arm-linux-nat.c: Sort headers.
3566 * arm-fbsd-tdep.c: Sort headers.
3567 * arm-fbsd-nat.c: Sort headers.
3568 * arm-bsd-tdep.c: Sort headers.
3569 * arch-utils.c: Sort headers.
3570 * arc-tdep.c: Sort headers.
3571 * arc-newlib-tdep.c: Sort headers.
3572 * annotate.h: Sort headers.
3573 * annotate.c: Sort headers.
3574 * amd64-windows-tdep.c: Sort headers.
3575 * amd64-windows-nat.c: Sort headers.
3576 * amd64-tdep.c: Sort headers.
3577 * amd64-sol2-tdep.c: Sort headers.
3578 * amd64-obsd-tdep.c: Sort headers.
3579 * amd64-obsd-nat.c: Sort headers.
3580 * amd64-nbsd-tdep.c: Sort headers.
3581 * amd64-nbsd-nat.c: Sort headers.
3582 * amd64-nat.c: Sort headers.
3583 * amd64-linux-tdep.c: Sort headers.
3584 * amd64-linux-nat.c: Sort headers.
3585 * amd64-fbsd-tdep.c: Sort headers.
3586 * amd64-fbsd-nat.c: Sort headers.
3587 * amd64-dicos-tdep.c: Sort headers.
3588 * amd64-darwin-tdep.c: Sort headers.
3589 * amd64-bsd-nat.c: Sort headers.
3590 * alpha-tdep.c: Sort headers.
3591 * alpha-obsd-tdep.c: Sort headers.
3592 * alpha-nbsd-tdep.c: Sort headers.
3593 * alpha-mdebug-tdep.c: Sort headers.
3594 * alpha-linux-tdep.c: Sort headers.
3595 * alpha-linux-nat.c: Sort headers.
3596 * alpha-bsd-tdep.c: Sort headers.
3597 * alpha-bsd-nat.c: Sort headers.
3598 * aix-thread.c: Sort headers.
3599 * agent.c: Sort headers.
3600 * addrmap.c: Sort headers.
3601 * ada-varobj.c: Sort headers.
3602 * ada-valprint.c: Sort headers.
3603 * ada-typeprint.c: Sort headers.
3604 * ada-tasks.c: Sort headers.
3605 * ada-lang.c: Sort headers.
3606 * aarch64-tdep.c: Sort headers.
3607 * aarch64-ravenscar-thread.c: Sort headers.
3608 * aarch64-newlib-tdep.c: Sort headers.
3609 * aarch64-linux-tdep.c: Sort headers.
3610 * aarch64-linux-nat.c: Sort headers.
3611 * aarch64-fbsd-tdep.c: Sort headers.
3612 * aarch64-fbsd-nat.c: Sort headers.
3613 * aarch32-linux-nat.c: Sort headers.
3614
699bd4cf
TT
36152019-04-04 Tom Tromey <tom@tromey.com>
3616
3617 * varobj.c (varobj_create): Update.
3618 * rust-exp.y (struct rust_parser) <update_innermost_block,
3619 lookup_symbol>: New methods.
3620 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
3621 Rename.
3622 (rust_parser::rust_lookup_type)
3623 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3624 * printcmd.c (display_command, do_one_display): Update.
3625 * parser-defs.h (struct parser_state) <parser_state>: Add
3626 "tracker" parameter.
3627 (block_tracker): New member.
3628 (class innermost_block_tracker) <innermost_block_tracker>: Add
3629 "types" parameter.
3630 <reset>: Remove method.
3631 (innermost_block): Don't declare.
3632 (null_post_parser): Update.
3633 * parse.c (innermost_block): Remove global.
3634 (write_dollar_variable): Update.
3635 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
3636 Remove "tracker_types" parameter.
3637 (parse_expression): Add "tracker" parameter.
3638 (parse_expression_for_completion): Update.
3639 (null_post_parser): Add "tracker" parameter.
3640 * p-exp.y: Update rules.
3641 * m2-exp.y: Update rules.
3642 * language.h (struct language_defn) <la_post_parser>: Add
3643 "tracker" parameter.
3644 * go-exp.y: Update rules.
3645 * f-exp.y: Update rules.
3646 * expression.h (parse_expression, parse_exp_1): Add "tracker"
3647 parameter.
3648 * d-exp.y: Update rules.
3649 * c-exp.y: Update rules.
3650 * breakpoint.c (set_breakpoint_condition): Create an
3651 innermost_block_tracker.
3652 (watch_command_1): Likewise.
3653 * ada-lang.c (resolve): Add "tracker" parameter.
3654 (resolve_subexp): Likewise.
3655 * ada-exp.y (write_var_from_sym): Update.
3656
dac43e32
TT
36572019-04-04 Tom Tromey <tom@tromey.com>
3658
3659 * type-stack.h: New file.
3660 * type-stack.c: New file.
3661 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
3662 type-stack.h.
3663 (insert_into_type_stack, insert_type, push_type, push_type_int)
3664 (insert_type_address_space, pop_type, pop_type_int)
3665 (pop_typelist, pop_type_stack, append_type_stack)
3666 (push_type_stack, get_type_stack, push_typelist)
3667 (follow_type_instance_flags, follow_types): Don't declare.
3668 * parse.c (type_stack): Remove global.
3669 (parse_exp_in_context): Update.
3670 (insert_into_type_stack, insert_type, push_type, push_type_int)
3671 (insert_type_address_space, pop_type, pop_type_int)
3672 (pop_typelist, pop_type_stack, append_type_stack)
3673 (push_type_stack, get_type_stack, push_typelist)
3674 (follow_type_instance_flags, follow_types): Remove (moved to
3675 type-stack.c).
3676 * f-exp.y (type_stack): New global.
3677 Update rules.
3678 (push_kind_type, f_parse): Update.
3679 * d-exp.y (type_stack): New global.
3680 Update rules.
3681 (d_parse): Update.
3682 * c-exp.y (struct c_parse_state) <type_stack>: New member.
3683 Update rules.
3684 * Makefile.in (COMMON_SFILES): Add type-stack.c.
3685 (HFILES_NO_SRCDIR): Add type-stack.h.
3686
2a612529
TT
36872019-04-04 Tom Tromey <tom@tromey.com>
3688
3689 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
3690 (rust_parser::convert_ast_to_expression, rust_parse)
3691 (rust_lex_test_completion, rust_lex_tests): Update.
3692 * parser-defs.h (struct expr_completion_state): New.
3693 (struct parser_state) <parser_state>: Add completion parameter.
3694 <mark_struct_expression, mark_completion_tag>: New methods.
3695 <parse_completion, m_completion_state>: New members.
3696 (prefixify_expression, null_post_parser): Update.
3697 (mark_struct_expression, mark_completion_tag): Don't declare.
3698 * parse.c (parse_completion, expout_last_struct)
3699 (expout_tag_completion_type, expout_completion_name): Remove
3700 globals.
3701 (parser_state::mark_struct_expression)
3702 (parser_state::mark_completion_tag): Now methods.
3703 (prefixify_expression): Add last_struct parameter.
3704 (prefixify_subexp): Likewise.
3705 (parse_exp_1): Update.
3706 (parse_exp_in_context): Add cstate parameter. Update.
3707 (parse_expression_for_completion): Create an
3708 expr_completion_state.
3709 (null_post_parser): Add "completion" parameter.
3710 * p-exp.y: Update rules.
3711 (yylex): Update.
3712 * language.h (struct language_defn) <la_post_parser>: Add
3713 "completing" parameter.
3714 * go-exp.y: Update rules.
3715 (lex_one_token): Update.
3716 * expression.h (parse_completion): Don't declare.
3717 * d-exp.y: Update rules.
3718 (lex_one_token): Update rules.
3719 * c-exp.y: Update rules.
3720 (lex_one_token): Update.
3721 * ada-lang.c (resolve): Add "parse_completion" parameter.
3722 (resolve_subexp): Likewise.
3723 (ada_resolve_function): Likewise.
3724
43476f0b
TT
37252019-04-04 Tom Tromey <tom@tromey.com>
3726
3727 * parser-defs.h (struct parser_state) <start_arglist,
3728 end_arglist>: New methods.
3729 <arglist_len, m_funcall_chain>: New members.
3730 (arglist_len, start_arglist, end_arglist): Don't declare.
3731 * parse.c (arglist_len, funcall_chain): Remove global.
3732 (start_arglist, end_arglist): Remove functions.
3733 (parse_exp_in_context): Update.
3734 * p-exp.y: Update rules.
3735 * m2-exp.y: Update rules.
3736 * go-exp.y: Update rules.
3737 * f-exp.y: Update rules.
3738 * d-exp.y: Update rules.
3739 * c-exp.y: Update rules.
3740
5776fca3
TT
37412019-04-04 Tom Tromey <tom@tromey.com>
3742
3743 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3744 lex_operator, push_back>: New methods.
3745 Update all rules.
3746 (rust_parser::lex_hex, lex_escape): Rename and update.
3747 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3748 (rust_parser::lex_operator): Rename and update.
3749 (rust_parser::lex_number, rustyylex, rustyyerror)
3750 (rust_lex_test_init, rust_lex_test_sequence)
3751 (rust_lex_test_push_back, rust_lex_tests): Update.
3752 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3753 parameter.
3754 <lexptr, prev_lexptr>: New members.
3755 (lexptr, prev_lexptr): Don't declare.
3756 * parse.c (lexptr, prev_lexptr): Remove globals.
3757 (parse_exp_in_context): Update.
3758 * p-exp.y (yylex, yyerror): Update.
3759 * m2-exp.y (parse_number, yylex, yyerror): Update.
3760 * go-exp.y (lex_one_token, yyerror): Update.
3761 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3762 * d-exp.y (lex_one_token, yyerror): Update.
3763 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3764 (lex_one_token, yyerror): Update.
3765 * ada-lex.l (YY_INPUT): Update.
3766 (rewind_to_char): Update.
3767 * ada-exp.y (yyerror): Update.
3768
8621b685
TT
37692019-04-04 Tom Tromey <tom@tromey.com>
3770
3771 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3772 * parser-defs.h (struct parser_state) <parser_state>: Add new
3773 parameter.
3774 <comma_terminates>: New member.
3775 (comma_terminates): Don't declare global.
3776 * parse.c (comma_terminates): Remove global.
3777 (parse_exp_in_context): Update.
3778 * p-exp.y (yylex): Update.
3779 * m2-exp.y (yylex): Update.
3780 * go-exp.y (lex_one_token): Update.
3781 * f-exp.y (yylex): Update.
3782 * d-exp.y (lex_one_token): Update.
3783 * c-exp.y (lex_one_token): Update.
3784 * ada-lex.l: Update.
3785
28aaf3fd
TT
37862019-04-04 Tom Tromey <tom@tromey.com>
3787
3788 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3789 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3790 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3791 * parser-defs.h (paren_depth): Don't declare.
3792 * parse.c (paren_depth): Remove global.
3793 (parse_exp_in_context): Update.
3794 * p-exp.y (paren_depth): New global.
3795 (pascal_parse): Initialize it.
3796 * m2-exp.y (paren_depth): New global.
3797 (m2_parse): Initialize it.
3798 * go-exp.y (paren_depth): New global.
3799 (go_parse): Initialize it.
3800 * f-exp.y (paren_depth): New global.
3801 (f_parse): Initialize it.
3802 * d-exp.y (paren_depth): New global.
3803 (d_parse): Initialize it.
3804 * c-exp.y (paren_depth): New global.
3805 (c_parse): Initialize it.
3806 * ada-lex.l (paren_depth): New global.
3807 (lexer_init): Initialize it.
3808
1e58a4a4
TT
38092019-04-04 Tom Tromey <tom@tromey.com>
3810
3811 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3812 (rust_parser::convert_ast_to_type)
3813 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3814 * parser-defs.h (struct parser_state) <parser_state>: Add
3815 parameters. Initialize new members.
3816 <expression_context_block, expression_context_pc>: New members.
3817 * parse.c (expression_context_block, expression_context_pc):
3818 Remove globals.
3819 (parse_exp_in_context): Update.
3820 * p-exp.y: Update all rules.
3821 (yylex): Update.
3822 * m2-exp.y: Update all rules.
3823 (yylex): Update.
3824 * go-exp.y (yylex): Update.
3825 * f-exp.y (yylex): Update.
3826 * d-exp.y: Update all rules.
3827 (yylex): Update.
3828 * c-exp.y: Update all rules.
3829 (lex_one_token, classify_name, yylex, c_parse): Update.
3830 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3831
37eedb39
TT
38322019-04-04 Tom Tromey <tom@tromey.com>
3833
3834 * gdbarch.h, gdbarch.c: Rebuild.
3835 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3836 * stap-probe.h:
3837 (struct stap_parse_info): Replace "parser_state" with
3838 "expr_builder".
3839 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3840 (parser_state): New class.
3841 * parse.c (expr_builder): Rename.
3842 (expr_builder::release): Rename.
3843 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3844 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3845 (write_exp_elt_longcst, write_exp_elt_floatcst)
3846 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3847 (write_exp_string_vector, write_exp_bitstring)
3848 (write_exp_msymbol, mark_struct_expression)
3849 (write_dollar_variable)
3850 (insert_type_address_space, increase_expout_size): Replace
3851 "parser_state" with "expr_builder".
3852 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3853 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3854 "parser_state" with "expr_builder".
3855
73923d7e
TT
38562019-04-04 Tom Tromey <tom@tromey.com>
3857
3858 * rust-exp.y: Replace "parse_language" with method call.
3859 * p-exp.y:
3860 (yylex): Replace "parse_language" with method call.
3861 * m2-exp.y:
3862 (yylex): Replace "parse_language" with method call.
3863 * go-exp.y (classify_name): Replace "parse_language" with method
3864 call.
3865 * f-exp.y (yylex): Replace "parse_language" with method call.
3866 * d-exp.y (lex_one_token): Replace "parse_language" with method
3867 call.
3868 * c-exp.y:
3869 (lex_one_token, classify_name, yylex): Replace "parse_language"
3870 with method call.
3871 * ada-exp.y (find_primitive_type, type_char)
3872 (type_system_address): Replace "parse_language" with method call.
3873
fa9f5be6
TT
38742019-04-04 Tom Tromey <tom@tromey.com>
3875
3876 * rust-exp.y: Replace "parse_gdbarch" with method call.
3877 * parse.c (write_dollar_variable, insert_type_address_space):
3878 Replace "parse_gdbarch" with method call.
3879 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3880 call.
3881 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3882 call.
3883 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3884 "parse_gdbarch" with method call.
3885 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3886 with method call.
3887 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3888 "parse_gdbarch" with method call.
3889 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3890 "parse_gdbarch" with method call.
3891 * c-exp.y (parse_type, parse_number, classify_name): Replace
3892 "parse_gdbarch" with method call.
3893 * ada-lex.l: Replace "parse_gdbarch" with method call.
3894 * ada-exp.y (parse_type, find_primitive_type, type_char)
3895 (type_system_address): Replace "parse_gdbarch" with method call.
3896
1201a264
TT
38972019-04-04 Tom Tromey <tom@tromey.com>
3898
3899 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3900 * stap-probe.c (stap_parse_argument): Update.
3901 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3902 initial_size parameter.
3903 * rust-exp.y (rust_lex_tests): Update.
3904 * parse.c (parser_state): Update.
3905 (parse_exp_in_context): Update.
3906 * parser-defs.h (struct parser_state) <parser_state>: Remove
3907 "initial_size" parameter.
3908
e3980ce2
TT
39092019-04-04 Tom Tromey <tom@tromey.com>
3910
3911 * parser-defs.h (increase_expout_size): Don't declare.
3912 * parse.c (increase_expout_size): Now static.
3913
e9f8e3f1
TS
39142019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3915
3916 * gnu-nat.c (gnu_nat_target::wait): Fix
3917 target_waitstatus_to_string call.
3918
d7df6549
AB
39192019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3920
3921 * eval.c (evaluate_subexp_standard): Handle internal functions
3922 during Fortran function call handling.
3923
8bdc1658
AB
39242019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3925
3926 * NEWS: Mention new internal functions.
3927 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3928 (read_base_type): Use dwarf2_init_complex_target_type.
3929 * value.c (creal_internal_fn): New function.
3930 (cimag_internal_fn): New function.
3931 (_initialize_values): Register new internal functions.
3932
c29705b7
PW
39332019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3934
3935 * infrun.c (stop_all_threads): If debug_infrun, always
3936 trace the wait status after wait_one, using
3937 target_waitstatus_to_string and target_pid_to_str.
3938 (handle_inferior_event): Replace various trace of
3939 wait status kind by a single trace.
3940 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3941 wait status kind image by target_waitstatus_to_string.
3942 * target/waitstatus.c (target_waitstatus_to_string): Fix
3943 obsolete comment.
3944
05caa1d2
TT
39452019-04-01 Tom Tromey <tromey@adacore.com>
3946
3947 PR symtab/23331:
3948 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3949
9d1447e0
SDJ
39502019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3951 Pedro Alves <palves@redhat.com>
3952
3953 * top.c (quit_force): Call 'finalize_values'.
3954 * value.c (finalize_values): New function.
3955 * value.h (finalize_values): Declare.
3956
7734102d
EZ
39572019-03-30 Eli Zaretskii <eliz@gnu.org>
3958
3959 * NEWS: Announce $_gdb_major and $_gdb_minor.
3960
3961 * top.c (init_gdb_version_vars): New function.
3962 (gdb_init): Call init_gdb_version_vars.
3963
188e1fa9
TT
39642019-03-29 Tom Tromey <tromey@adacore.com>
3965
3966 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3967 help text. Remove dead code.
3968
2880242d
KS
39692019-03-29 Keith Seitz <keiths@redhat.com>
3970
3971 From Siddhesh Poyarekar:
3972 * f-lang.h (f77_get_upperbound): Return LONGEST.
3973 (f77_get_lowerbound): Likewise.
3974 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3975 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3976 print them.
3977 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3978 plongest to format print it.
3979 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3980 (f77_get_upperbound): Likewise.
3981 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3982 LOWER_BOUND to LONGEST.
3983 (f77_create_arrayprint_offset_tbl): Likewise.
3984
cc1defb1
KS
39852019-03-29 Keith Seitz <keiths@redhat.com>
3986
3987 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3988 %s/pulongest for TYPE_LENGTH instead of %d in format
3989 strings.
3990 * ada-typerint.c (ada_print_type): Likewise.
3991 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3992 * compile/compile-c-support.c (generate_register_struct): Likewise.
3993 * gdbtypes.c (recursive_dump_type): Likewise.
3994 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3995 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3996 instead of %d in format strings.
3997 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3998 to std::min to ULONGEST.
3999 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
4000 instead of %d in format strings.
4001 * tracepoint.c (info_scope_command): Likewise.
4002 * typeprint.c (print_offset_data::update)
4003 (print_offset_data::finish): Likewise.
4004 * xtensa-tdep.c (xtensa_store_return_value)
4005 (xtensa_push_dummy_call): Likewise.
4006
e432ccf1
JT
40072019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
4008
4009 * windows-nat.c (display_selector): Fixed format specifications
4010 for 64-bit Cygwin.
4011
65d2b333
PW
40122019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4013
4014 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
4015
f489207e
SL
40162019-03-28 Sandra Loosemore <sandra@codesourcery.com>
4017
4018 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
4019 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
4020 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
4021 (nios2_linux_init_abi): Install it.
4022
bffa1015
AH
40232019-03-28 Alan Hayward <alan.hayward@arm.com>
4024
4025 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
4026
fc96163a
AH
40272019-03-28 Alan Hayward <alan.hayward@arm.com>
4028
4029 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
4030
20dc7e9b
PW
40312019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4032 Tom Tromey <tromey@adacore.com>
4033
4034 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
4035
7f5331a8
JB
40362019-03-26 Joel Brobecker <brobecker@adacore.com>
4037
4038 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
4039 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
4040 method to compute the bounds of range types. Also print "[evaluated]"
4041 if the bounds' values come from a dynamic evaluation.
4042
18c77628
AB
40432019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
4044
4045 * cp-valprint.c (cp_print_value_fields): Don't print trailing
4046 whitespace when pretty printing is on.
4047
53c973f2
AH
40482019-03-26 Alan Hayward <alan.hayward@arm.com>
4049
e79be6e5 4050 * ppc-linux-nat.c: Add include.
53c973f2 4051
d851aa71
AH
40522019-03-26 Alan Hayward <alan.hayward@arm.com>
4053
e79be6e5 4054 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 4055
2fe7bab7
AH
40562019-03-26 Alan Hayward <alan.hayward@arm.com>
4057
e79be6e5 4058 * arm-linux-nat.c: Add include.
2fe7bab7 4059
068ef30e
SM
40602019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
4061
4062 * source-cache.c (source_cache::get_source_lines): Re-read
4063 fullname after calling open_source_file.
4064
81a24d04
JB
40652019-03-25 John Baldwin <jhb@FreeBSD.org>
4066
4067 * NEWS: Mention TLS support for FreeBSD.
4068
79e7ae11
TT
40692019-03-25 Tom Tromey <tromey@adacore.com>
4070
4071 * minsyms.c (BUNCH_SIZE): Update comment.
4072 (~minimal_symbol_reader): Remove old comment.
4073 (compact_minimal_symbols): Update comment.
4074 (minimal_symbol_reader::install): Remove old comment. Update
4075 other comments.
4076
d45963c2
AH
40772019-03-25 Alan Hayward <alan.hayward@arm.com>
4078
4079 * s390-linux-nat.c: Add include.
4080
0f83012e
AH
40812019-03-25 Alan Hayward <alan.hayward@arm.com>
4082
4083 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4084 Call linux_get_hwcap.
4085 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4086 Likewise.
4087 (aarch64_linux_get_hwcap): Remove function.
4088 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
4089 declaration.
4090 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
4091 linux_get_hwcap.
4092 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4093 * linux-tdep.c (linux_get_hwcap): Add function.
4094 (linux_get_hwcap2): Likewise.
4095 * linux-tdep.h (linux_get_hwcap): Add declaration.
4096 (linux_get_hwcap2): Likewise.
4097 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
4098 (ppc_linux_get_hwcap2): Likewise.
4099 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
4100 linux_get_hwcap.
4101 (ppc_linux_nat_target::insert_watchpoint): Likewise.
4102 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
4103 (ppc_linux_nat_target::read_description): Likewise.
4104 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
4105 * s390-linux-nat.c: Likewise.
4106 * s390-linux-tdep.c (s390_core_read_description): Likewise.
4107
6640a367
TT
41082019-03-24 Tom Tromey <tom@tromey.com>
4109
4110 * ada-lang.c (standard_lookup): Simplify initialization.
4111 (ada_lookup_symbol_nonlocal): Simplify return.
4112 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
4113 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
4114 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
4115 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
4116 initialization.
4117 * solib.c (solib_global_lookup): Simplify.
4118 * symtab.c (null_block_symbol): Remove.
4119 (symbol_cache_lookup): Simplify returns.
4120 (lookup_language_this): Simplify returns.
4121 (lookup_symbol_aux): Simplify return.
4122 (lookup_local_symbol): Simplify returns.
4123 (lookup_global_symbol_from_objfile): Simplify return.
4124 (lookup_symbol_in_objfile_symtabs)
4125 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
4126 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
4127 (lookup_static_symbol, lookup_global_symbol): Simplify return.
4128 * cp-namespace.c (cp_lookup_bare_symbol)
4129 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
4130 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
4131 (cp_lookup_nested_symbol): Don't use null_block_symbol.
4132 (cp_lookup_symbol_via_imports): Simplify initialization.
4133 (find_symbol_in_baseclass): Likewise.
4134 * symtab.h (null_block_symbol): Remove.
4135 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
4136 (d_lookup_nested_symbol, d_lookup_symbol_imports)
4137 (d_lookup_symbol_module): Likewise.
4138 (find_symbol_in_baseclass): Simplify initialization.
4139
a930ebcd
TT
41402019-03-24 Tom Tromey <tom@tromey.com>
4141
4142 * expression.h: Don't include symtab.h.
4143 (struct block): Forward declare.
4144
582942f4
TT
41452019-03-24 Tom Tromey <tom@tromey.com>
4146
4147 * c-exp.y (typebase): Remove casts.
4148 * gdbtypes.c (lookup_unsigned_typename, )
4149 (lookup_signed_typename): Remove cast.
4150 * eval.c (parse_to_comma_and_eval): Remove cast.
4151 * parse.c (write_dollar_variable): Remove cast.
4152 * block.h (struct block) <superblock>: Now const.
4153 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
4154 * psymtab.c (psym_map_matching_symbols): Make "block" const.
4155 (map_block): Make "block" const.
4156 * symfile.h (struct quick_symbol_functions)
4157 <map_matching_symbols>: Constify block argument to "callback".
4158 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
4159 const.
4160 (find_pc_sect_compunit_symtab): Make "b" const.
4161 (find_symbol_at_address): Likewise.
4162 (search_symbols): Likewise.
4163 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
4164 (dw2_debug_names_lookup_symbol): Likewise.
4165 (dw2_map_matching_symbols): Update.
4166 * p-valprint.c (pascal_val_print): Remove "block".
4167 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
4168 (aux_add_nonlocal_symbols): Make "block" const.
4169 (resolve_subexp): Remove cast.
4170 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
4171 const.
4172 (iterate_over_file_blocks): Likewise.
4173 * f-exp.y (%union) <bval>: Remove.
4174 * coffread.c (patch_opaque_types): Make "b" const.
4175 * spu-tdep.c (spu_catch_start): Make "block" const.
4176 * c-valprint.c (print_unpacked_pointer): Remove "block".
4177 * symmisc.c (dump_symtab_1): Make "b" const.
4178 (block_depth): Make "block" const.
4179 * d-exp.y (%union) <bval>: Remove.
4180 * cp-support.h (cp_lookup_rtti_type): Update.
4181 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
4182 * psymtab.c (psym_lookup_symbol): Make "block" const.
4183 (maintenance_check_psymtabs): Make "b" const.
4184 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
4185 (enumerate_locals, enumerate_args): Update.
4186 * python/py-symtab.c (stpy_global_block): Make "block" const.
4187 (stpy_static_block): Likewise.
4188 * inline-frame.c (block_starting_point_at): Make "new_block"
4189 const.
4190 * block.c (find_block_in_blockvector): Make return type const.
4191 (blockvector_for_pc_sect): Make "b" const.
4192 (find_block_in_blockvector): Make "b" const.
4193
7ad417dd
TT
41942019-03-23 Tom Tromey <tom@tromey.com>
4195
4196 * varobj.c (varobj_create): Update.
4197 * symfile.c (clear_symtab_users): Don't reset innermost_block.
4198 * printcmd.c (display_command, do_one_display): Don't reset
4199 innermost_block.
4200 * parser-defs.h (enum innermost_block_tracker_type): Move to
4201 expression.h.
4202 (innermost_block): Update comment.
4203 * parse.c (parse_exp_1): Add tracker_types parameter.
4204 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
4205 tracker_types parameter. Reset innermost_block.
4206 (parse_exp_in_context): Remove.
4207 (parse_expression_for_completion): Update.
4208 * objfiles.c (~objfile): Don't reset expression_context_block or
4209 innermost_block.
4210 * expression.h (enum innermost_block_tracker_type): Move from
4211 parser-defs.h.
4212 (parse_exp_1): Add tracker_types parameter.
4213 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
4214 reset innermost_block.
4215
b366c208
TT
42162019-03-23 Tom Tromey <tom@tromey.com>
4217
4218 * objfiles.h: Include bcache.h.
4219
9bb9b2f9
TT
42202019-03-23 Tom Tromey <tom@tromey.com>
4221
4222 * linespec.c (get_current_search_block): Use
4223 scoped_restore_current_language.
4224 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
4225
59c28372
AH
42262019-03-22 Alan Hayward <alan.hayward@arm.com>
4227 Jiong Wang <jiong.wang@arm.com>
4228
4229 * aarch64-linux-tdep.c
4230 (aarch64_linux_iterate_over_regset_sections): Check for pauth
4231 section.
4232 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
4233
17e116a7
AH
42342019-03-22 Alan Hayward <alan.hayward@arm.com>
4235 Jiong Wang <jiong.wang@arm.com>
4236
4237 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
4238 instructions.
4239 (aarch64_analyze_prologue_test): Add PACIASP test.
4240 (aarch64_prologue_prev_register): Unmask PC value.
4241
11e1b75f
AH
42422019-03-22 Alan Hayward <alan.hayward@arm.com>
4243 Jiong Wang <jiong.wang@arm.com>
4244
4245 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
4246 (aarch64_dwarf2_prev_register): Unmask PC value.
4247 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
4248 (aarch64_execute_dwarf_cfa_vendor_op): Check for
4249 DW_CFA_AARCH64_negate_ra_state.
4250 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
4251
34dcc7cf
AH
42522019-03-22 Alan Hayward <alan.hayward@arm.com>
4253 Jiong Wang <jiong.wang@arm.com>
4254
4255 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
4256 registers.
4257 (aarch64_pseudo_register_name): Likewise.
4258 (aarch64_pseudo_register_type): Likewise.
4259 (aarch64_pseudo_register_reggroup_p): Likewise.
4260 (aarch64_gdbarch_init): Add pauth registers.
4261 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
4262 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
4263 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
4264 (struct gdbarch_tdep): Add regnum for ra_state.
4265
1ef53e6b
AH
42662019-03-22 Alan Hayward <alan.hayward@arm.com>
4267 Jiong Wang <jiong.wang@arm.com>
4268
4269 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
4270
76bed0fd
AH
42712019-03-22 Alan Hayward <alan.hayward@arm.com>
4272 Jiong Wang <jiong.wang@arm.com>
4273
4274 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
4275 function.
4276 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
4277 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
4278 (aarch64_gdbarch_init): Add puth registers.
4279 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
4280 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
4281 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
4282
ee4fbcfa
AH
42832019-03-22 Alan Hayward <alan.hayward@arm.com>
4284 Jiong Wang <jiong.wang@arm.com>
4285
4286 * aarch64-linux-nat.c
4287 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
4288 * aarch64-linux-tdep.c
4289 (aarch64_linux_core_read_description): Likewise.
4290 (aarch64_linux_get_hwcap): New function.
4291 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
4292 (aarch64_linux_get_hwcap): New declaration.
4293
6dc0ebde
AH
42942019-03-22 Alan Hayward <alan.hayward@arm.com>
4295 Jiong Wang <jiong.wang@arm.com>
4296
4297 * aarch64-linux-nat.c
4298 (aarch64_linux_nat_target::read_description): Add pauth param.
4299 * aarch64-linux-tdep.c
4300 (aarch64_linux_core_read_description): Likewise.
4301 * aarch64-tdep.c (struct target_desc): Add in pauth.
4302 (aarch64_read_description): Add pauth param.
4303 (aarch64_gdbarch_init): Likewise.
4304 * aarch64-tdep.h (aarch64_read_description): Likewise.
4305 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4306 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4307 * features/Makefile: Add new files.
4308 * features/aarch64-pauth.c: New file.
4309 * features/aarch64-pauth.xml: New file.
4310
595915c1
TT
43112019-03-20 Tom Tromey <tromey@adacore.com>
4312
4313 * infrun.c (handle_inferior_event): Rename from
4314 handle_inferior_event_1. Create a scoped_value_mark.
4315 (handle_inferior_event): Remove.
4316
4c7d57e7
TT
43172019-03-19 Tom Tromey <tromey@adacore.com>
4318
4319 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
4320 * infrun.h (print_stop_event): Add "displays" parameter.
4321 * infrun.c (print_stop_event): Add "displays" parameter.
4322
cb246234
PA
43232019-03-19 Pedro Alves <palves@redhat.com>
4324
4325 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
4326 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
4327 to -1. Fix TABs vs spaces.
4328 (tui_ui_out::tui_ui_out): Don't initialize fields here.
4329 * tui/tui-out.h (tui_ui_out) Add intro comments.
4330 <m_line, m_start_of_line>: In-class initialize, and add describing
4331 comment.
4332
3a0e45b2
AH
43332019-03-18 Alan Hayward <alan.hayward@arm.com>
4334
4335 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
4336 variable names.
4337 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
4338
5371b850
PA
43392019-03-18 Pedro Alves <palves@redhat.com>
4340 Eli Zaretskii <eliz@gnu.org>
4341
4342 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
4343 m_line and m_start_of_line.
4344
b17c4cd0
EZ
43452019-03-18 Eli Zaretskii <eliz@gnu.org>
4346
4347 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
4348 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
4349 it returns a newline. This fixes a regression in TU mode, whereby
4350 the next line is output on the same screen line as the user input.
4351
4bd56d18
TT
43522019-03-18 Tom Tromey <tromey@adacore.com>
4353
4354 * minsyms.c (minimal_symbol_reader::install): Remove call to
4355 obstack_blank.
4356
55c10aca
PA
43572019-03-18 Pedro Alves <palves@redhat.com>
4358
4359 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
4360 New globals.
4361 (apply_style): New, factored out from ...
4362 (apply_ansi_escape): ... this. Handle reverse video mode.
4363 (tui_set_reverse_mode): New function.
4364 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
4365 * tui/tui-winsource.c (tui_show_source_line): Use
4366 tui_set_reverse_mode instead of setting A_STANDOUT.
4367 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
4368 New setter methods.
4369
647bb750
HD
43702019-03-18 Hannes Domani <ssbssa@yahoo.de>
4371
4372 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
4373 Handle tabs.
4374
bff8c71f
TT
43752019-03-18 Tom Tromey <tromey@adacore.com>
4376
4377 * ada-lang.c (empty_array): Add "high" parameter.
4378 (ada_evaluate_subexp): Update.
4379
58785d98
ST
43802019-03-17 Sergei Trofimovich <siarheit@google.com>
4381
4382 * unittests/string_view-selftests.c: Define
4383 _initialize_string_view_selftests unconditionally.
4384
d4cbef22
ВМ
43852019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4386
4387 PR gdb/24350
4388 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
4389
fce4c071
ВМ
43902019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4391
4392 PR gdb/24351
4393 * windows-nat.c (display_selector): Fix format specifiers.
4394
f7f0a123
EZ
43952019-03-17 Eli Zaretskii <eliz@gnu.org>
4396
4397 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
4398 tui_refill_source_window instead of tui_refresh_win, to update the
4399 current execution line. This fixes redisplay of the current line
4400 when stepping through the code with "next" or "step".
4401
ab42892f
EZ
44022019-03-16 Eli Zaretskii <eliz@gnu.org>
4403
4404 * source-cache.c (source_cache::get_source_lines): Call
4405 find_source_lines to initialize s->nlines. This fixes vertical
4406 scrolling of TUI source window when the DOWN arrow is pressed.
4407
8d8c087f
PW
44082019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4409
4410 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
4411 linux-thread-db.c (_initialize_thread_db): Likewise.
4412
798e1c30
EZ
44132019-03-16 Eli Zaretskii <eliz@gnu.org>
4414
4415 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
4416 wclrtoeol in tui_show_source_line". This reverts changes made in
4417 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
4418
eefba3da
TT
44192019-03-15 Tom Tromey <tom@tromey.com>
4420
4421 * symtab.h (struct minimal_symbol): Derive from
4422 general_symbol_info.
4423 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
4424 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4425 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4426 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4427 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
4428 (MSYMBOL_SEARCH_NAME): Update.
4429 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
4430 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
4431 * minsyms.c (minimal_symbol_reader::record_full): Update.
4432
0de2420c
TT
44332019-03-15 Tom Tromey <tom@tromey.com>
4434
4435 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
4436
042d75e4
TT
44372019-03-15 Tom Tromey <tom@tromey.com>
4438
4439 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
4440 unique_xmalloc_ptr.
4441 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
4442 Update.
4443 * minsyms.c (lookup_minimal_symbol_by_pc_section)
4444 (build_minimal_symbol_hash_tables)
4445 (minimal_symbol_reader::install): Update.
4446
db92718b
TT
44472019-03-15 Tom Tromey <tom@tromey.com>
4448
4449 * symtab.c (create_demangled_names_hash): Update.
4450 (symbol_set_names): Update.
4451 * objfiles.h (struct objfile_per_bfd_storage)
4452 <demangled_names_hash>: Now an htab_up.
4453 * objfiles.c (objfile_per_bfd_storage): Simplify.
4454
d6797f46
TT
44552019-03-15 Tom Tromey <tom@tromey.com>
4456
4457 * objfiles.h (struct objfile_per_bfd_storage): Declare
4458 destructor.
4459 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
4460 New.
4461 (get_objfile_bfd_data): Use new. Don't initialize
4462 language_of_main.
4463 (free_objfile_per_bfd_storage): Remove.
4464 (objfile_bfd_data_free, objfile::~objfile): Use delete.
4465
741d7538
TT
44662019-03-15 Tom Tromey <tom@tromey.com>
4467
4468 * symfile.c (reread_symbols): Update.
4469 * objfiles.c (objfile::objfile): Update.
4470 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
4471 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
4472 comment.
4473 (minimal_symbol_reader::install): Update.
4474 (terminate_minimal_symbol_table): Remove.
4475 * jit.c (jit_object_close_impl): Update.
4476
788c80d1
TT
44772019-03-15 Tom Tromey <tom@tromey.com>
4478
4479 * minsyms.c (minimal_symbol_reader::record_full): Remove some
4480 initializations.
4481
1b7a07cb
TT
44822019-03-15 Tom Tromey <tom@tromey.com>
4483
4484 * objfiles.h (struct objfile_per_bfd_storage)
4485 <demangled_hash_languages>: Now a bitset.
4486 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
4487 (lookup_minimal_symbol): Update.
4488
3db066bc
TT
44892019-03-15 Tom Tromey <tom@tromey.com>
4490
4491 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
4492 Don't return the symbol.
4493 * coffread.c (record_minimal_symbol): Use record_full.
4494
3fff2c37
EZ
44952019-03-14 Eli Zaretskii <eliz@gnu.org>
4496
4497 The MS-Windows port of ncurses fails to switch to a color pair if
4498 one or both of the colors are the implicit default colors. This
4499 change records the default colors when TUI is initialized, and
4500 then specifies them explicitly when a color pair uses the default
4501 colors. This allows color styling in TUI mode on MS-Windows.
4502
4503 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
4504 ncurses_norm_attr.
4505 (tui_initialize_io) [__MINGW32__]: Record the default terminal
4506 colors in ncurses_norm_attr.
4507 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
4508 "none", replace it with the default color recorded in
4509 ncurses_norm_attr.
4510
3b336828
TT
45112019-03-14 Tom Tromey <tromey@adacore.com>
4512
4513 * source-cache.h (class source_cache) <get_source_lines>: Return
4514 std::string.
4515 * source-cache.c (source_cache::extract_lines): Handle case where
4516 first_pos==npos. Return std::string.
4517 (source_cache::get_source_lines): Update.
4518
d085f989
TT
45192019-03-14 Tom Tromey <tromey@adacore.com>
4520
4521 * NEWS: Add item for "style sources" commands.
4522 * source-cache.c (source_cache::get_source_lines): Check
4523 source_styling.
4524 * cli/cli-style.c (source_styling): New global.
4525 (_initialize_cli_style): Add "style sources" commands.
4526 (show_style_sources): New function.
4527 * cli/cli-style.h (source_styling): Declare.
4528
6f11e682
TT
45292019-03-14 Pedro Alves <palves@redhat.com>
4530 Tom Tromey <tromey@adacore.com>
4531
4532 * tui/tui-winsource.h (tui_refill_source_window): Declare.
4533 * tui/tui-winsource.c (tui_refill_source_window): New function,
4534 from...
4535 (tui_horizontal_source_scroll): ... here. Move some logic.
4536 * cli/cli-style.c (set_style_enabled): Notify new observable.
4537 * tui/tui-hooks.c (tui_redisplay_source): New function.
4538 (tui_attach_detach_observers): Attach or detach
4539 tui_redisplay_source.
4540 * observable.h (source_styling_changed): New observable.
4541 * observable.c: Define source_styling_changed observable.
4542
a068643d
TT
45432019-03-13 Tom Tromey <tromey@adacore.com>
4544
4545 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
4546 (i386_gnu_nat_target::store_registers): Update.
4547 * target-debug.h (target_debug_print_std_string): New macro.
4548 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4549 * windows-tdep.c (display_one_tib): Update.
4550 * tui/tui-stack.c (tui_make_status_line): Update.
4551 * top.c (print_inferior_quit_action): Update.
4552 * thread.c (thr_try_catch_cmd): Update.
4553 (add_thread_with_info): Update.
4554 (thread_target_id_str): Update.
4555 (thr_try_catch_cmd): Update.
4556 (thread_command): Update.
4557 (thread_find_command): Update.
4558 * record-btrace.c (record_btrace_target::info_record)
4559 (record_btrace_resume_thread, record_btrace_target::resume)
4560 (record_btrace_cancel_resume, record_btrace_step_thread)
4561 (record_btrace_target::wait, record_btrace_target::wait)
4562 (record_btrace_target::wait, record_btrace_target::stop): Update.
4563 * progspace.c (print_program_space): Update.
4564 * process-stratum-target.c
4565 (process_stratum_target::thread_address_space): Update.
4566 * linux-fork.c (linux_fork_mourn_inferior)
4567 (detach_checkpoint_command, info_checkpoints_command)
4568 (linux_fork_context): Update.
4569 (linux_fork_detach): Update.
4570 (class scoped_switch_fork_info): Update.
4571 (delete_checkpoint_command): Update.
4572 * infrun.c (follow_fork_inferior): Update.
4573 (follow_fork_inferior): Update.
4574 (proceed_after_vfork_done): Update.
4575 (handle_vfork_child_exec_or_exit): Update.
4576 (follow_exec): Update.
4577 (displaced_step_prepare_throw): Update.
4578 (displaced_step_restore): Update.
4579 (start_step_over): Update.
4580 (resume_1): Update.
4581 (clear_proceed_status_thread): Update.
4582 (proceed): Update.
4583 (print_target_wait_results): Update.
4584 (do_target_wait): Update.
4585 (context_switch): Update.
4586 (stop_all_threads): Update.
4587 (restart_threads): Update.
4588 (finish_step_over): Update.
4589 (handle_signal_stop): Update.
4590 (switch_back_to_stepped_thread): Update.
4591 (keep_going_pass_signal): Update.
4592 (print_exited_reason): Update.
4593 (normal_stop): Update.
4594 * inferior.c (inferior_pid_to_str): Change return type.
4595 (print_selected_inferior): Update.
4596 (add_inferior): Update.
4597 (detach_inferior): Update.
4598 * dummy-frame.c (fprint_dummy_frames): Update.
4599 * dcache.c (dcache_info_1): Update.
4600 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4601 (btrace_fetch, btrace_clear): Update.
4602 * linux-tdep.c (linux_core_pid_to_str): Change return type.
4603 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
4604 type.
4605 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
4606 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
4607 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
4608 * gdbarch.c, gdbarch.h: Rebuild.
4609 * gdbarch.sh (core_pid_to_str): Change return type.
4610 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
4611 return type.
4612 (windows_nat_target::pid_to_str): Change return type.
4613 (windows_delete_thread): Update.
4614 (windows_nat_target::attach): Update.
4615 (windows_nat_target::files_info): Update.
4616 * target-delegates.c: Rebuild.
4617 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
4618 return type.
4619 (sol_thread_target::pid_to_str): Change return type.
4620 * remote.c (class remote_target) <pid_to_str>: Change return
4621 type.
4622 (remote_target::pid_to_str): Change return type.
4623 (extended_remote_target::attach, remote_target::remote_stop_ns)
4624 (remote_target::remote_notif_remove_queued_reply)
4625 (remote_target::push_stop_reply, remote_target::disable_btrace):
4626 Update.
4627 (extended_remote_target::attach): Update.
4628 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
4629 type.
4630 (gdbsim_target::pid_to_str): Change return type.
4631 * ravenscar-thread.c (struct ravenscar_thread_target)
4632 <pid_to_str>: Change return type.
4633 (ravenscar_thread_target::pid_to_str): Change return type.
4634 * procfs.c (class procfs_target) <pid_to_str>: Change return
4635 type.
4636 (procfs_target::pid_to_str): Change return type.
4637 (procfs_target::attach): Update.
4638 (procfs_target::detach): Update.
4639 (procfs_target::fetch_registers): Update.
4640 (procfs_target::store_registers): Update.
4641 (procfs_target::wait): Update.
4642 (procfs_target::files_info): Update.
4643 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
4644 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
4645 return type.
4646 (nto_procfs_target::pid_to_str): Change return type.
4647 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
4648 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
4649 return type.
4650 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
4651 (exit_lwp): Update.
4652 (attach_proc_task_lwp_callback, get_detach_signal)
4653 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
4654 (linux_nat_target::resume, wait_lwp, stop_callback)
4655 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
4656 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
4657 (linux_nat_wait_1, resume_stopped_resumed_lwps)
4658 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
4659 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
4660 type.
4661 (inf_ptrace_target::attach): Update.
4662 (inf_ptrace_target::files_info): Update.
4663 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
4664 type.
4665 (go32_nat_target::pid_to_str): Change return type.
4666 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
4667 (gnu_nat_target::wait): Update.
4668 (gnu_nat_target::wait): Update.
4669 (gnu_nat_target::resume): Update.
4670 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
4671 (fbsd_nat_target::wait): Update.
4672 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
4673 type.
4674 (darwin_nat_target::attach): Update.
4675 * corelow.c (class core_target) <pid_to_str>: Change return type.
4676 (core_target::pid_to_str): Change return type.
4677 * target.c (normal_pid_to_str): Change return type.
4678 (default_pid_to_str): Likewise.
4679 (target_pid_to_str): Change return type.
4680 (target_translate_tls_address): Update.
4681 (target_announce_detach): Update.
4682 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
4683 return type.
4684 (bsd_uthread_target::pid_to_str): Change return type.
4685 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
4686 type.
4687 (bsd_kvm_target::pid_to_str): Change return type.
4688 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
4689 return type.
4690 (aix_thread_target::pid_to_str): Change return type.
4691 * target.h (struct target_ops) <pid_to_str>: Change return type.
4692 (target_pid_to_str, normal_pid_to_str): Likewise.
4693 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4694 type.
4695 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4696 type.
4697 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4698 return type.
4699 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4700 type.
4701 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4702 type.
4703 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4704 return type.
4705
b4be1b06
SM
47062019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4707
4708 * NEWS: Mention that the new default MI version is 3. Mention
4709 changes to the output of commands and events that deal with
4710 multi-location breakpoints.
4711 * breakpoint.c: Include "mi/mi-out.h".
4712 (print_one_breakpoint): Change output syntax if using MI version
4713 >= 3.
4714 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4715 New.
4716 (mi_multi_location_breakpoint_output_fixed): New.
4717 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4718 (mi_cmd_fix_multi_location_breakpoint_output): New.
4719 (mi_multi_location_breakpoint_output_fixed): New.
4720 * mi/mi-cmds.c (mi_cmds): Register command
4721 -fix-multi-location-breakpoint-output.
4722 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4723 interpreter "mi".
4724
8e5e5494
SM
47252019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4726
4727 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4728 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4729 instantiate mi_ui_out based on interpreter name.
4730 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4731 * mi/mi-main.c (mi_load_progress): Likewise.
4732
197df35e
JB
47332019-03-12 John Baldwin <jhb@FreeBSD.org>
4734
4735 * NEWS: Combine separate "New targets" sections for 8.3.
4736
8399425f
JB
47372019-03-12 John Baldwin <jhb@FreeBSD.org>
4738
4739 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4740 (ppcfbsd_init_abi): Install gdbarch
4741 "fetch_tls_load_module_address" and "get_thread_local_address"
4742 methods.
4743
b0f87ed0
JB
47442019-03-12 John Baldwin <jhb@FreeBSD.org>
4745
4746 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4747 (riscv_fbsd_init_abi): Install gdbarch
4748 "fetch_tls_load_module_address" and "get_thread_local_address"
4749 methods.
4750
ce25aa57
JB
47512019-03-12 John Baldwin <jhb@FreeBSD.org>
4752
4753 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4754 (i386fbsd_init_abi): Install gdbarch
4755 "fetch_tls_load_module_address" and "get_thread_local_address"
4756 methods.
4757
f5424cfa
JB
47582019-03-12 John Baldwin <jhb@FreeBSD.org>
4759
4760 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4761 (amd64fbsd_init_abi): Install gdbarch
4762 "fetch_tls_load_module_address" and "get_thread_local_address"
4763 methods.
4764
945f3901
JB
47652019-03-12 John Baldwin <jhb@FreeBSD.org>
4766
4767 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4768 (struct fbsd_pspace_data): New type.
4769 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4770 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4771 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4772 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4773 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4774
ef0bd204
JB
47752019-03-12 John Baldwin <jhb@FreeBSD.org>
4776
4777 * gdbtypes.c (lookup_struct_elt): New function.
4778 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4779 * gdbtypes.h (struct struct_elt): New type.
4780 (lookup_struct_elt): New prototype.
4781
36c53a02
JB
47822019-03-12 John Baldwin <jhb@FreeBSD.org>
4783
4784 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4785 remove disabled code block.
4786
6e056c81
JB
47872019-03-12 John Baldwin <jhb@FreeBSD.org>
4788
4789 * gdbarch.sh (get_thread_local_address): New method.
4790 * gdbarch.h, gdbarch.c: Regenerate.
4791 * target.c (target_translate_tls_address): Use
4792 gdbarch_get_thread_local_address if present instead of
4793 target::get_thread_local_address.
4794
cd250a18
JB
47952019-03-12 John Baldwin <jhb@FreeBSD.org>
4796
4797 * target.h (target::get_thread_local_address): Update comment.
4798
df22c1e5
JB
47992019-03-12 John Baldwin <jhb@FreeBSD.org>
4800
4801 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4802 objfile->separate_debug_objfile_backlink if not NULL.
4803
dd6876c9
JB
48042019-03-12 John Baldwin <jhb@FreeBSD.org>
4805
4806 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4807 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4808 (amd64bsd_store_inferior_registers): Likewise.
4809 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4810 Enable segment base registers.
4811 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4812 PT_GETFSBASE and PT_GETGSBASE.
4813 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4814 PT_SETGSBASE.
4815 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4816 segment base registers.
4817 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4818
1163a4b7
JB
48192019-03-12 John Baldwin <jhb@FreeBSD.org>
4820
4821 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4822 Update calls to i386_target_description to add 'segments'
4823 parameter.
4824 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4825 add segment base registers.
4826 * arch/i386.c (i386_create_target_description): Add 'segments'
4827 parameter to enable segment base registers.
4828 * arch/i386.h (i386_create_target_description): Likewise.
4829 * features/i386/32bit-segments.xml: New file.
4830 * features/i386/32bit-segments.c: Generate.
4831 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4832 call to i386_target_description to add 'segments' parameter.
4833 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4834 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4835 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4836 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4837 if feature is present.
4838 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4839 Add 'segments' parameter to call to i386_target_description.
4840 (i386_target_description): Add 'segments' parameter to enable
4841 segment base registers.
4842 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4843 to call to i386_target_description.
4844 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4845 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4846 Define I386_NUM_REGS.
4847 (i386_target_description): Add 'segments' parameter to enable
4848 segment base registers.
4849
3a350822
EZ
48502019-03-12 Eli Zaretskii <eliz@gnu.org>
4851
4852 PR/24325
4853 * source-cache.c: #undef open and close, to avoid unresolved
4854 externals during linking.
4855
ffdd69cf
TT
48562019-03-12 Tom Tromey <tromey@adacore.com>
4857
4858 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4859 const. Add initializers.
4860 (_initialize_remote): Don't initialize ptid globals.
4861
ec148c57
PA
48622019-03-12 Pedro Alves <palves@redhat.com>
4863
4864 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4865
32764270
PA
48662019-03-12 Pedro Alves <palves@redhat.com>
4867
4868 * cp-name-parser.y (main): Remove unused 'len' variable.
4869
17547186
TT
48702019-03-12 Tom Tromey <tromey@adacore.com>
4871
4872 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4873 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4874
d3a70e03
TT
48752019-03-12 Tom Tromey <tromey@adacore.com>
4876
4877 * linux-nat.c (iterate_over_lwps): Update.
4878 (stop_callback): Remove parameter.
4879 (stop_wait_callback, detach_callback, resume_set_callback)
4880 (select_singlestep_lwp_callback, set_ignore_sigint)
4881 (status_callback, resumed_callback, resume_clear_callback)
4882 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4883 data parameter.
4884 (linux_nat_target::detach, linux_nat_target::resume)
4885 (linux_stop_and_wait_all_lwps, select_event_lwp)
4886 (linux_nat_filter_event, linux_nat_wait_1)
4887 (linux_nat_target::kill, linux_nat_target::stop)
4888 (linux_nat_target::stop): Update.
4889 (linux_nat_resume_callback): Change type.
4890 (resume_stopped_resumed_lwps, count_events_callback)
4891 (select_event_lwp_callback): Likewise.
4892 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4893 * arm-linux-nat.c (struct update_registers_data): Remove.
4894 (update_registers_callback): Change type.
4895 (arm_linux_insert_hw_breakpoint1): Update.
4896 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4897 parameter.
4898 (x86_linux_dr_set_addr): Update.
4899 (x86_linux_dr_set_control): Update.
4900 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4901 (iterate_over_lwps): Use gdb::function_view.
4902 * nat/aarch64-linux-hw-point.c (struct
4903 aarch64_dr_update_callback_param): Remove.
4904 (debug_reg_change_callback): Change type.
4905 (aarch64_notify_debug_reg_change): Update.
4906 * s390-linux-nat.c (s390_refresh_per_info): Update.
4907
82cb27ff
TT
49082019-03-11 Tom Tromey <tromey@adacore.com>
4909
4910 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4911 redundant assignment to "this_cu".
4912
568c0683
SM
49132019-03-08 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4916
f09ce22d
SM
49172019-03-08 Simon Marchi <simon.marchi@efficios.com>
4918
4919 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4920 from...
4921 (rank_one_type): ... this.
4922
595f96a9
SM
49232019-03-08 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4926 from...
4927 (rank_one_type): ... this.
4928
2598a94b
SM
49292019-03-08 Simon Marchi <simon.marchi@efficios.com>
4930
4931 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4932 from...
4933 (rank_one_type): ... this.
4934
7f17b20d
SM
49352019-03-08 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4938 from...
4939 (rank_one_type): ... this.
4940
2c509035
SM
49412019-03-08 Simon Marchi <simon.marchi@efficios.com>
4942
4943 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4944 from...
4945 (rank_one_type): ... this.
4946
0dd322dc
SM
49472019-03-08 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4950 from...
4951 (rank_one_type): ... this.
4952
41ea4728
SM
49532019-03-08 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4956 from...
4957 (rank_one_type): ... this.
4958
793cd1d2
SM
49592019-03-08 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4962 from...
4963 (rank_one_type): ... this.
4964
34910087
SM
49652019-03-08 Simon Marchi <simon.marchi@efficios.com>
4966
4967 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4968 from...
4969 (rank_one_type): ... this.
4970
f1f832d6
SM
49712019-03-08 Simon Marchi <simon.marchi@efficios.com>
4972
4973 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4974 from...
4975 (rank_one_type): ... this.
4976
b9f4512f
SM
49772019-03-08 Simon Marchi <simon.marchi@efficios.com>
4978
4979 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4980 from...
4981 (rank_one_type): ... this.
4982
9293fc63
SM
49832019-03-08 Simon Marchi <simon.marchi@efficios.com>
4984
4985 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4986 from...
4987 (rank_one_type): ... this.
4988
e3abbe7e
PW
49892019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4990
4991 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4992 inferior-events' shows the example events.
4993
e4adb939
EZ
49942019-03-08 Eli Zaretskii <eliz@gnu.org>
4995
4996 Support styling on native MS-Windows console
4997
4998 PR/24315
4999 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
5000 on MS-Windows if $TERM is not defined.
5001
5002 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
5003
5004 * posix-hdep.c (gdb_console_fputs):
5005 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
5006 functions.
5007 * ui-file.h (gdb_console_fputs): Add prototype.
5008
5009 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
5010 back to fputs only if the former returns zero.
5011
25629dfd
TT
50122019-03-07 Tom Tromey <tom@tromey.com>
5013
5014 * symmisc.c (print_symbol_bcache_statistics): Update.
5015 (print_objfile_statistics): Update.
5016 * symfile.c (allocate_symtab): Update.
5017 * stabsread.c: Don't include bcache.h.
5018 * psymtab.h (struct psymbol_bcache): Don't declare.
5019 (class psymtab_storage) <psymbol_cache>: Now a bcache.
5020 (psymbol_bcache_init, psymbol_bcache_free)
5021 (psymbol_bcache_get_bcache): Don't declare.
5022 * psymtab.c (struct psymbol_bcache): Remove.
5023 (psymtab_storage::psymtab_storage): Update.
5024 (psymtab_storage::~psymtab_storage): Update.
5025 (psymbol_bcache_init, psymbol_bcache_free)
5026 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
5027 (add_psymbol_to_bcache): Update.
5028 (allocate_psymtab): Update.
5029 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
5030 macro_cache>: No longer pointers.
5031 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
5032 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
5033 * macrotab.c (macro_bcache): Update.
5034 * macroexp.c: Don't include bcache.h.
5035 * gdbtypes.c (check_types_worklist): Update.
5036 (types_deeply_equal): Remove TRY/CATCH. Update.
5037 * elfread.c (elf_symtab_read): Update.
5038 * dwarf2read.c: Don't include bcache.h.
5039 * buildsym.c (buildsym_compunit::get_macro_table): Update.
5040 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
5041 (print_bcache_statistics, bcache_memory_used): Don't declare.
5042 (struct bcache): Move from bcache.c. Add constructor, destructor,
5043 methods. Rename all data members.
5044 * bcache.c (struct bcache): Move to bcache.h.
5045 (bcache::expand_hash_table): Rename from expand_hash_table.
5046 (bcache): Remove.
5047 (bcache::insert): Rename from bcache_full.
5048 (bcache::compare): Rename from bcache_compare.
5049 (bcache_xmalloc): Remove.
5050 (bcache::~bcache): Rename from bcache_xfree.
5051 (bcache::print_statistics): Rename from print_bcache_statistics.
5052 (bcache::memory_used): Rename from bcache_memory_used.
5053
fe726667
PA
50542019-03-07 Pedro Alves <palves@redhat.com>
5055
5056 * infrun.c (normal_stop): Also check for
5057 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
5058
7584bb30
AB
50592019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
5060
5061 * f-lang.c (value_from_host_double): Moved to...
5062 * value.c (value_from_host_double): ...here.
5063 * value.h (value_from_host_double): Declare.
5064 * guile/scm-math.c (vlscm_convert_typed_number): Use
5065 value_from_host_double.
5066 (vlscm_convert_number): Likewise.
5067 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
5068 * python/py-value.c (convert_value_from_python): Likewise.
5069
a7b1986e
TT
50702019-03-06 Tom Tromey <tom@tromey.com>
5071
5072 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
5073
0ccf4211
TT
50742019-03-06 Tom Tromey <tom@tromey.com>
5075
5076 * utils.h (free_current_contents): Don't declare.
5077 * utils.c (free_current_contents): Remove.
5078
fe7b42e5
TT
50792019-03-06 Tom Tromey <tom@tromey.com>
5080
5081 * top.c (quit_force): Update.
5082 * main.c (captured_command_loop): Update.
5083 * common/new-op.c (operator new): Update.
5084 * common/common-exceptions.c (struct catcher)
5085 <save_cleanup_chain>: Remove member.
5086 (exceptions_state_mc_init): Update.
5087 (exception_try_scope_entry): Return nullptr.
5088 (exception_try_scope_exit, exception_rethrow)
5089 (throw_exception_sjlj, throw_exception_cxx): Update.
5090 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
5091 (all_cleanups, do_cleanups, discard_cleanups)
5092 (discard_final_cleanups, save_cleanups, save_final_cleanups)
5093 (restore_cleanups, restore_final_cleanups): Don't declare.
5094 (do_final_cleanups): Remove parameter.
5095 * common/cleanups.c (cleanup_chain, make_cleanup)
5096 (make_cleanup_dtor, all_cleanups, do_cleanups)
5097 (discard_my_cleanups, discard_cleanups)
5098 (discard_final_cleanups, save_my_cleanups, save_cleanups)
5099 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
5100 (null_cleanup): Remove.
5101 (do_final_cleanups): Remove parameter.
5102
c6321f19
TT
51032019-03-06 Tom Tromey <tom@tromey.com>
5104
5105 * remote.c (remote_target::remote_parse_stop_reply): Use
5106 unique_xmalloc_ptr.
5107
61b30099
TT
51082019-03-06 Tom Tromey <tom@tromey.com>
5109
5110 * stabsread.c (struct stabs_field_info): Rename from field_info.
5111 <list, fnlist>: Add initializers.
5112 <obstack>: New member.
5113 (read_member_functions, read_struct_fields, read_baseclasses):
5114 Allocate on obstack. Don't use cleanups.
5115 (read_one_struct_field, read_member_functions, read_struct_fields)
5116 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
5117 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
5118 (read_struct_type): Update.
5119
6cceac94
TT
51202019-03-06 Tom Tromey <tom@tromey.com>
5121
5122 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
5123 * common/filestuff.h (make_cleanup_close): Don't declare.
5124 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
5125 Remove.
5126
72412762
TT
51272019-03-06 Tom Tromey <tom@tromey.com>
5128
5129 * solib-aix.c: Use make_scope_exit.
5130
2b6ff1c0
TT
51312019-03-06 Tom Tromey <tom@tromey.com>
5132
5133 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
5134 Use make_scope_exit.
5135
d01c5877
TT
51362019-03-06 Tom Tromey <tom@tromey.com>
5137
5138 * solib-svr4.c (disable_probes_interface): Remove parameter.
5139 (svr4_handle_solib_event): Use make_scope_exit.
5140
32603266
TT
51412019-03-06 Tom Tromey <tom@tromey.com>
5142
5143 * remote.c (struct stop_reply_deleter): Remove.
5144 (stop_reply_up): Update.
5145 (struct stop_reply): Derive from notif_event. Don't typedef.
5146 <regcache>: Now a std::vector.
5147 (stop_reply_xfree): Remove.
5148 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
5149 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
5150 (remote_target::discard_pending_stop_replies): Use delete.
5151 (remote_target::remote_parse_stop_reply): Update.
5152 (remote_target::process_stop_reply): Update.
5153 * remote-notif.h (struct notif_event): Add virtual destructor.
5154 Remove "dtr" member.
5155 (struct notif_client) <alloc_event>: Return a unique_ptr.
5156 (notif_event_xfree): Don't declare.
5157 (notif_event_up): New typedef.
5158 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
5159 (notif_event_xfree, do_notif_event_xfree): Remove.
5160 (remote_notif_state_xfree): Update.
5161
9799571e
TT
51622019-03-06 Tom Tromey <tom@tromey.com>
5163
5164 * infrun.c (displaced_step_clear_cleanup): Now a
5165 forward_scope_exit type.
5166 (displaced_step_prepare_throw): Update.
5167 (displaced_step_fixup): Update.
5168
09e3c4ca
TT
51692019-03-06 Tom Tromey <tom@tromey.com>
5170
5171 * inferior.h (class inferior): Update comment.
5172 * gdbthread.h (class thread_info): Update comment.
5173
e2a03548
TT
51742019-03-06 Joel Brobecker <brobecker@adacore.com>
5175 Tom Tromey <tom@tromey.com>
5176
5177 * stabsread.h (struct stab_section_list): Remove.
5178 (coffstab_build_psymtabs): Update.
5179 * dbxread.c (symbuf_sections): Now a std::vector.
5180 (sect_idx): New global.
5181 (fill_symbuf): Update.
5182 (coffstab_build_psymtabs): Change type of stabsects parameter.
5183 Update.
5184 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
5185 std::vector.
5186 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
5187 (coff_locate_sections): Update.
5188 (coff_symfile_read): Remove cleanups. Update.
5189 (init_stringtab): Add storage parameter.
5190 (free_stringtab, free_stringtab_cleanup): Remove.
5191 (init_lineno): Add storage parameter.
5192 (free_linetab, free_linetab_cleanup): Remove.
5193
b7e60d85
PA
51942019-03-06 Pedro Alves <palves@redhat.com>
5195
5196 * linux-fork.c (fork_info::clobber_regs): Delete.
5197 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
5198 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
5199 comment. Adjust.
5200 (scoped_switch_fork_info::scoped_switch_fork_info)
5201 (checkpoint_command, linux_fork_context): Adjust
5202 fork_save_infrun_state calls.
5203
e52c971f
PA
52042019-03-06 Pedro Alves <palves@redhat.com>
5205
5206 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
5207 (inf_has_multiple_threads): Return 'bool' and rewrite using
5208 inferior_info::threads().
5209
06974e6c
PA
52102019-03-06 Pedro Alves <palves@redhat.com>
5211
5212 * linux-fork.c: Include <list>.
5213 (fork_list): Now a std::list instance.
5214 (fork_info): Add ctor, dtor, and in-class initialize all fields.
5215 (forks_exist_p, find_last_fork): Adjust.
5216 (new_fork): Delete.
5217 (one_fork_p): New.
5218 (add_fork): Adjust.
5219 (free_fork): Delete, folded into fork_info::~fork_info().
5220 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
5221 Adjust.
5222 (init_fork_list): Delete.
5223 (linux_fork_killall, linux_fork_mourn_inferior)
5224 (linux_fork_detach, info_checkpoints_command): Adjust.
5225 (_initialize_linux_fork): No longer call init_fork_list.
5226
72f31aea
PA
52272019-03-06 Pedro Alves <palves@redhat.com>
5228
5229 * linux-fork.c (new_fork): New, split out of ...
5230 (add_fork): ... this. Return void. Move "first fork" special
5231 case from here, to ...
5232 (checkpoint_command): ... here.
5233 * linux-linux.h (add_fork): Return void.
5234
efbecbc1
AB
52352019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5236
5237 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
5238
0841c79a
AB
52392019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5240 Chris January <chris.january@arm.com>
5241 David Lecomber <david.lecomber@arm.com>
5242
5243 * f-exp.y: New token, UNOP_INTRINSIC.
5244 (exp): New pattern using UNOP_INTRINSIC token.
5245 (f77_keywords): Add 'abs' keyword.
5246 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
5247 (value_from_host_double): New function.
5248 (evaluate_subexp_f): Support UNOP_ABS.
5249
4a270568
AB
52502019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5251
5252 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
5253 types.
5254
067630bd
AB
52552019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5256
5257 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
5258 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
5259 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
5260
3be47f7a
AB
52612019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5262
5263 * f-exp.y (convert_to_kind_type): Handle more type kinds.
5264
4d00f5d8
AB
52652019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5266 Chris January <chris.january@arm.com>
5267
5268 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
5269 * f-exp.y: Define 'KIND' token.
5270 (exp): New pattern for KIND expressions.
5271 (ptype): Handle types with a kind extension.
5272 (direct_abs_decl): Extend to spot kind extensions.
5273 (f77_keywords): Add 'kind' to the list.
5274 (push_kind_type): New function.
5275 (convert_to_kind_type): New function.
5276 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
5277 * parse.c (operator_length_standard): Likewise.
5278 * parser-defs.h (enum type_pieces): Add tp_kind.
5279 * std-operator.def: Add UNOP_KIND.
5280
e454224f
AB
52812019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5282
5283 * f-exp.y (f_parse): Set yydebug.
5284
9dad4a58
AB
52852019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 * f-lang.c (evaluate_subexp_f): New function.
5288 (exp_descriptor_f): New global.
5289 (f_language_defn): Use exp_descriptor_f instead of
5290 exp_descriptor_standard.
5291
c8f91604
AB
52922019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5293
5294 * f-exp.y (struct token): Add comments.
5295 (dot_ops): Remove uppercase versions and the end marker.
5296 (f77_keywords): Likewise.
5297 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
5298 entries in the dot_ops array are case insensitive, and use
5299 strncasecmp to compare strings. Also some whitespace cleanup in
5300 this area. Similar for the f77_keywords array, except entries in
5301 this list might be case sensitive.
5302
dd9f2c76
AB
53032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5304
5305 * f-exp.y (struct f77_boolean_val): Add comments.
5306 (boolean_values): Remove uppercase versions, and end marker.
5307 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
5308 and use strncasecmp to achieve case insensitivity. Additionally,
5309 perform whitespace cleanup around this code.
5310
67a3048c
TT
53112019-03-06 Tom Tromey <tromey@adacore.com>
5312
5313 * remote-sim.c (gdbsim_target_open): Use result of
5314 gdb_argv::release.
5315
aa3cfbda
RB
53162019-03-06 Richard Bunt <richard.bunt@arm.com>
5317 Dirk Schubert <dirk.schubert@arm.com>
5318 Chris January <chris.january@arm.com>
5319
5320 * eval.c (evaluate_subexp_standard): Call Fortran argument
5321 wrapping logic.
5322 * f-lang.c (struct value): A value which can be passed into a
5323 Fortran function call.
5324 (fortran_argument_convert): Wrap Fortran arguments in a pointer
5325 where appropriate.
5326 (struct type): Value ready for a Fortran function call.
5327 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
5328 is needed.
5329 * f-lang.h (fortran_argument_convert): Declaration.
5330 (fortran_preserve_arg_pointer): Declaration.
5331 * infcall.c (value_arg_coerce): Call Fortran argument logic.
5332
ea38e5df
TT
53332019-03-05 Tom Tromey <tromey@adacore.com>
5334
5335 * python/py-prettyprint.c (print_string_repr): Remove #if.
5336 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
5337
06b5b831
TT
53382019-03-05 Tom Tromey <tromey@adacore.com>
5339
5340 * target.c (the_dummy_target): Move later. Change type to
5341 "dummy_target".
5342 (initialize_targets): Don't initialize the_dummy_target.
5343
edbd9e45
TT
53442019-03-05 Tom Tromey <tromey@adacore.com>
5345
5346 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
5347 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
5348
c119e040
TT
53492019-03-05 Tom Tromey <tromey@adacore.com>
5350
5351 * windows-nat.c (windows_nat_target::attach)
5352 (windows_nat_target::detach): Don't call gdb_flush.
5353 * valprint.c (generic_val_print, val_print, val_print_string):
5354 Don't call gdb_flush.
5355 * utils.c (defaulted_query): Don't call gdb_flush.
5356 * typeprint.c (print_type_scalar): Don't call gdb_flush.
5357 * target.c (target_announce_detach): Don't call gdb_flush.
5358 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
5359 * remote.c (extended_remote_target::attach): Don't call
5360 gdb_flush.
5361 * procfs.c (procfs_target::detach): Don't call gdb_flush.
5362 * printcmd.c (do_examine): Don't call gdb_flush.
5363 (info_display_command): Don't call gdb_flush.
5364 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
5365 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
5366 * memattr.c (info_mem_command): Don't call gdb_flush.
5367 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
5368 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
5369 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
5370 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
5371 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
5372 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
5373 (gnu_nat_target::detach): Don't call gdb_flush.
5374 * f-valprint.c (f_val_print): Don't call gdb_flush.
5375 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
5376 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
5377 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
5378 gdb_flush.
5379 * c-valprint.c (c_val_print): Don't call gdb_flush.
5380 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
5381
895dafa6
TT
53822019-03-05 Tom Tromey <tromey@adacore.com>
5383
5384 * varobj.c (update_dynamic_varobj_children): Update.
5385 (install_default_visualizer): Use reset, not release.
5386 * value.c (set_internalvar): Update.
5387 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
5388 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
5389 ATTRIBUTE_UNUSED_RESULT.
5390
88a774b9
TT
53912019-03-05 Tom Tromey <tromey@adacore.com>
5392
5393 * remote.c (class scoped_remote_fd) <release>: Add
5394 ATTRIBUTE_UNUSED_RESULT.
5395
4e4a8b93
TT
53962019-03-05 Tom Tromey <tromey@adacore.com>
5397
5398 * macroexp.c (struct macro_buffer) <release>: Add
5399 ATTRIBUTE_UNUSED_RESULT.
5400
083eef1f
TT
54012019-03-05 Tom Tromey <tromey@adacore.com>
5402
5403 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
5404 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
5405 ATTRIBUTE_UNUSED_RESULT.
5406
3cabd438
TT
54072019-03-05 Tom Tromey <tromey@adacore.com>
5408
5409 * common/scoped_fd.h (class scoped_fd) <release>: Add
5410 ATTRIBUTE_UNUSED_RESULT.
5411
41e3300a
TT
54122019-03-05 Tom Tromey <tromey@adacore.com>
5413
5414 * parser-defs.h (struct parser_state) <release>: Add
5415 ATTRIBUTE_UNUSED_RESULT.
5416
18cb7c9f
TT
54172019-03-05 Tom Tromey <tromey@adacore.com>
5418
5419 * utils.h (class gdb_argv) <release>: Add
5420 ATTRIBUTE_UNUSED_RESULT.
5421 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
5422
41fa577f
EZ
54232019-03-02 Eli Zaretskii <eliz@gnu.org>
5424
a6a4b2c6
EZ
5425 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
5426 for-loop range, to avoid compiler warnings.
5427
5428 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
5429 avoid compiler warnings about unused variables.
5430
742a7df5
EZ
5431 * NEWS: Mention end of support for native debugging on MS-Windows
5432 before XP.
5433
41fa577f
EZ
5434 PR gdb/24292
5435 * common/netstuff.c:
5436 * gdbserver/gdbreplay.c
5437 * gdbserver/remote-utils.c:
5438 * ser-tcp.c:
5439 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
5440 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
5441 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
5442 'getaddrinfo' and 'freeaddrinfo' were not available before
5443 Windows XP, and mingw.org's MinGW headers by default define
5444 _WIN32_WINNT to 0x500.
5445
827f438f
GB
54462019-03-01 Gary Benson <gbenson@redhat.com>
5447
5448 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
5449
92137da0
RO
54502019-02-28 Brian Vandenberg <phantall@gmail.com>
5451 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5452
5453 PR gdb/8527
5454 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
5455 set_sigint_trap, clear_sigint_trap.
5456
799efbe8
PW
54572019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5458
5459 * target.c (target_detach): Clear the regcache and the
5460 frame cache.
5461
8ed25214
PA
54622019-02-27 Pedro Alves <palves@redhat.com>
5463
5464 * utils.c (set_screen_size): When we cap the height/width sizes,
5465 tweak the corresponding command variable to show "unlimited":
5466
23031e31
SJ
54672019-02-27 Saagar Jha <saagar@saagarjha.com>
5468 Pedro Alves <palves@redhat.com>
5469
5470 * utils.c (set_screen_size): Reduce "infinite" rows and columns
5471 before calling rl_set_screen_size.
5472
6c28e44a
TT
54732019-02-27 Tom Tromey <tromey@adacore.com>
5474
5475 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
5476 define.
5477 * python/py-value.c: Remove Python 2.4 workaround.
5478 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
5479 workaround.
5480 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
5481 Python 2.4 workaround.
5482 * python/python-internal.h: Remove Python 2.4 comment.
5483 (Py_ssize_t): Don't define.
5484 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
5485 (gdb_Py_DECREF): Remove Python 2.4 workaround.
5486 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
5487 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
5488 * python/python.c (do_start_initialization): Remove Python 2.4
5489 workaround.
5490 * python/py-prettyprint.c (class dummy_python_frame): Remove.
5491 (print_children): Remove Python 2.4 workaround.
5492 * python/py-inferior.c (buffer_procs): Remove Python 2.4
5493 workaround.
5494 (CHARBUFFERPROC_NAME): Remove.
5495 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
5496 Python 2.4 workaround.
5497
2c3fc25d 54982019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 5499
2c3fc25d
KB
5500 * NEWS: Note minimum Python version.
5501
6ca62222
KB
55022019-02-27 Kevin Buettner <kevinb@redhat.com>
5503
5504 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
5505 code from these functions. Remove corresponding ifdefs. Use
5506 Py_buffer_up instead of explicit calls to PyBuffer_Release.
5507 Remove gotos and target of gotos.
5508 (infpy_search_memory): Likewise.
5509
f4bc7d2c
AB
55102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5511
5512 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
5513 (hppa_gdbarch_init): Don't register deleted functions with
5514 gdbarch.
5515
9734a586
AB
55162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5517
5518 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
5519 (h8300_unwind_sp): Delete.
5520 (h8300_dummy_id): Delete.
5521 (h8300_gdbarch_init): Don't register deleted functions with
5522 gdbarch.
5523
68b867f3
AB
55242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5525
5526 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
5527 (ft32_unwind_pc): Delete.
5528 (ft32_unwind_sp): Delete.
5529 (ft32_gdbarch_init): Don't register deleted functions with
5530 gdbarch.
5531
2fbe7ad0
AB
55322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5533
5534 * gdb/frv-tdep.c (frv_dummy_id): Delete.
5535 (frv_unwind_pc): Delete.
5536 (frv_unwind_sp): Delete.
5537 (frv_gdbarch_init): Don't register deleted functions with
5538 gdbarch.
5539
76055cbe
AB
55402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5541
5542 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
5543 (riscv_unwind_pc): Delete.
5544 (riscv_unwind_sp): Delete.
5545 (riscv_gdbarch_init): Don't register deleted functions with
5546 gdbarch.
5547
4133e5a1
AB
55482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5549
5550 * gdb/csky-tdep.c (csky_dummy_id): Delete.
5551 (csky_unwind_pc): Delete.
5552 (csky_unwind_sp): Delete.
5553 (csky_gdbarch_init): Don't register deleted functions with
5554 gdbarch.
5555
8010f576
AB
55562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5557
5558 * gdb/cris-tdep.c (cris_dummy_id): Delete.
5559 (cris_unwind_pc): Delete.
5560 (cris_unwind_sp): Delete.
5561 (cris_gdbarch_init): Don't register deleted functions with
5562 gdbarch.
5563
b56bf084
AB
55642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5565
5566 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
5567 (bfin_unwind_pc): Delete.
5568 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
5569
a19a650f
AB
55702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5571
5572 * gdb/arm-tdep.c (arm_dummy_id): Delete.
5573 (arm_unwind_pc): Delete.
5574 (arm_unwind_sp): Delete.
5575 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
5576
f8278c3c
AB
55772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5578
5579 * gdb/arc-tdep.c (arc_dummy_id): Delete.
5580 (arc_unwind_pc): Delete.
5581 (arc_unwind_sp): Delete.
5582 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
5583
480e46cf
AB
55842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5585
5586 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
5587 (alpha_unwind_pc): Delete.
5588 (alpha_gdbarch_init): Don't register deleted functions with
5589 gdbarch.
5590
7a995095
AB
55912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5592
5593 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
5594 (aarch64_unwind_pc): Delete.
5595 (aarch64_unwind_sp): Delete.
5596 (aarch64_gdbarch_init): Don't register deleted functions with
5597 gdbarch.
5598
bf9a735e
AB
55992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5600
5601 * gdbtypes.c (type_align): Don't consider static members when
5602 computing structure alignment.
5603
5561fc30
AB
56042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5605
5606 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
5607 return 0 for other types.
5608 * arch-utils.c (default_type_align): Always return 0.
5609 * gdbarch.h: Regenerate.
5610 * gdbarch.sh (type_align): Extend comment.
5611 * gdbtypes.c (type_align): Add additional comments, always call
5612 gdbarch_type_align before applying the default rules.
5613 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
5614 generic code will then apply a suitable default.
5615 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
5616 types, return 0 for other types.
5617
9335e75a
JB
56182019-02-27 Joel Brobecker <brobecker@adacore.com>
5619
5620 * NEWS: Create a new section for the next release branch.
5621 Rename the section of the current branch, now that it has
5622 been cut.
5623
3d34d8de
JB
56242019-02-27 Joel Brobecker <brobecker@adacore.com>
5625
5626 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
5627 * version.in: Bump version to 8.3.50.DATE-git.
5628
143420fb
SM
56292019-02-26 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * aix-thread.c (ptid_cmp): Remove unused variable.
5632 (get_signaled_thread): Likewise.
5633 (store_regs_user_thread): Likewise.
5634 (store_regs_kernel_thread): Likewise.
5635 (fetch_regs_kernel_thread): Remove shadowed variable.
5636
172fb711
AB
56372019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
5638
5639 * features/riscv/32bit-cpu.xml: Add register numbers.
5640 * features/riscv/32bit-fpu.c: Regenerate.
5641 * features/riscv/32bit-fpu.xml: Add register numbers.
5642 * features/riscv/64bit-cpu.xml: Add register numbers.
5643 * features/riscv/64bit-fpu.c: Regenerate.
5644 * features/riscv/64bit-fpu.xml: Add register numbers.
5645
26c89782
KB
56462019-02-26 Kevin Buettner <kevinb@redhat.com>
5647
af54ade9 5648 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
5649 * python/py-value.c (convert_buffer_and_type_to_value): New
5650 function.
5651 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
5652 Add support for handling an optional second argument. Call
5653 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
5654 * python/python-internal.h (Py_buffer_deleter): New struct.
5655 (Py_buffer_up): New typedef.
5656
0f58c9e8
JB
56572019-02-25 John Baldwin <jhb@FreeBSD.org>
5658
5659 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
5660 instead of releasing ownership.
5661
0a0f4c01
JR
56622019-02-25 Jordan Rupprecht <rupprecht@google.com>
5663
5664 * dwarf2read.c (open_and_init_dwp_file): Call
5665 elf_numsections instead of bfd_count_sections to initialize
5666 dwp_file->num_sections.
5667
cd5a152c
TT
56682019-02-25 Tom Tromey <tromey@adacore.com>
5669
5670 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
5671
8a6a8513
SDJ
56722019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
5673
5674 * gcore.in: Add '--readnever' option when invoking GDB.
5675
04dcda9c
SM
56762019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5677
5678 * MAINTAINERS: Update my email address.
5679
07bc701d
SM
56802019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5681
5682 * build-id.c (build_id_to_debug_bfd_1): New function.
5683 (build_id_to_debug_bfd): Look for separate debug file in
5684 sysroot.
5685
c6f4a5d0
AB
56862019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
5687
5688 * gdbarch.sh: Update the copyright year range that is placed into
5689 generated files.
5690
9600246d
KS
56912019-02-22 Keith Seitz <keiths@redhat.com>
5692
5693 PR symtab/23853
5694 * linespec.c (create_sals_line_offset): Search for the default
5695 symtab's filename instead of its fullname.
5696
7557a514
AH
56972019-02-21 Alan Hayward <alan.hayward@arm.com>
5698
5699 * NEWS: Update style defaults.
5700
ee2bcb0c
AH
57012019-02-21 Alan Hayward <alan.hayward@arm.com>
5702
5703 * main.c (captured_main_1): Disable styling in batch mode.
5704
0c95f9ed
TT
57052019-02-20 Tom Tromey <tom@tromey.com>
5706
5707 * symtab.c (symtab_symbol_info): Fix typos.
5708
c763b894
TT
57092019-02-20 Tom Tromey <tromey@adacore.com>
5710
5711 * findcmd.c (_initialize_mem_search): Use upper case for
5712 metasyntactic variables.
5713
0ef8a082
AH
57142019-02-20 Alan Hayward <alan.hayward@arm.com>
5715
5716 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5717 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5718
6caa91b6
SM
57192019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5720
5721 * top.h (source_file_name): Change to std::string.
5722 * top.c (source_file_name): Likewise.
5723 (command_line_input): Adjust.
5724 * cli/cli-script.c (script_from_file): Adjust.
5725
98814c6c
TT
57262019-02-19 Tom Tromey <tromey@adacore.com>
5727
5728 * ravenscar-thread.c
5729 (ravenscar_thread_target::update_thread_list): Don't call
5730 ada_build_task_list.
5731 * ada-lang.h (ada_build_task_list): Don't declare.
5732 * ada-tasks.c (struct ada_tasks_inferior_data)
5733 <task_list_valid_p>: Now bool.
5734 (read_known_tasks, ada_task_list_changed)
5735 (ada_tasks_invalidate_inferior_data): Update.
5736 (read_known_tasks_array): Return bool.
5737 (read_known_tasks_list): Likewise.
5738 (read_known_tasks): Return void.
5739 (ada_build_task_list): Now static.
5740
70cd633e
AB
57412019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5742
5743 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5744 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5745
040b3e95
PW
57462019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5747
5748 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5749 variant for ada_tasks_pspace_data_handle and
5750 ada_tasks_inferior_data_handle.
5751 (ada_tasks_pspace_data_cleanup): New function.
5752 (ada_tasks_inferior_data_cleanup): New function.
5753
9409233b
TT
57542019-02-17 Tom Tromey <tom@tromey.com>
5755
5756 * macrotab.h (macro_source_fullname): Return a std::string.
5757 * macrotab.c (macro_include, check_for_redefinition)
5758 (macro_undef, macro_lookup_definition, foreach_macro)
5759 (foreach_macro_in_scope): Update.
5760 (macro_source_fullname): Return a std::string.
5761 * macrocmd.c (show_pp_source_pos): Update.
5762
6506371f
TT
57632019-02-17 Tom Tromey <tom@tromey.com>
5764
5765 * macrocmd.c (show_pp_source_pos): Style the file names.
5766
0c820d67
TT
57672019-02-17 Tom Tromey <tom@tromey.com>
5768
5769 PR tui/24197:
5770 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5771
a0087920
TT
57722019-02-17 Tom Tromey <tom@tromey.com>
5773
5774 * ada-lang.c (user_select_syms): Use filtered printing.
5775 * utils.c (wrap_style): New global.
5776 (desired_style): Remove.
5777 (emit_style_escape): Add stream parameter.
5778 (set_output_style, reset_terminal_style, prompt_for_continue):
5779 Update.
5780 (flush_wrap_buffer): Only flush gdb_stdout.
5781 (wrap_here): Set wrap_style.
5782 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5783 treat escape sequences as a character. Change when wrap buffer is
5784 flushed.
5785 (fputs_styled): Do not set the output style when the default is
5786 requested.
5787 * ui-style.h (struct ui_file_style) <is_default>: New method.
5788 * source.c (print_source_lines_base): Emit escape sequences in one
5789 piece.
5790
75ba10dc
JB
57912019-02-17 Joel Brobecker <brobecker@adacore.com>
5792
5793 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5794 integers and enumeration types.
5795
a2cd4f14
JB
57962019-02-17 Joel Brobecker <brobecker@adacore.com>
5797
5798 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5799 instead of lookup_symbol_in_language
5800 (do_exact_match): New function.
5801 (ada_get_symbol_name_matcher): Return do_exact_match when
5802 doing a verbatim match.
5803
485b851b
TT
58042019-02-15 Tom Tromey <tromey@adacore.com>
5805
5806 * ravenscar-thread.c (ravenscar_thread_target::resume)
5807 (ravenscar_thread_target::wait): Special case wildcard requests.
5808
0b790b1e
TT
58092019-02-15 Tom Tromey <tromey@adacore.com>
5810
5811 * ravenscar-thread.c (base_ptid): Remove.
5812 (struct ravenscar_thread_target) <close>: New method.
5813 <m_base_ptid>: New member.
5814 <update_inferior_ptid, active_task, task_is_currently_active,
5815 runtime_initialized>: Declare methods.
5816 <ravenscar_thread_target>: Add constructor.
5817 (ravenscar_thread_target::task_is_currently_active)
5818 (ravenscar_thread_target::update_inferior_ptid)
5819 (ravenscar_runtime_initialized): Rename. Now methods.
5820 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5821 (ravenscar_thread_target::update_thread_list): Update.
5822 (ravenscar_thread_target::active_task): Now method.
5823 (ravenscar_thread_target::store_registers)
5824 (ravenscar_thread_target::prepare_to_store)
5825 (ravenscar_thread_target::prepare_to_store)
5826 (ravenscar_thread_target::mourn_inferior): Update.
5827 (ravenscar_inferior_created): Use "new" to create target.
5828 (ravenscar_thread_target::get_ada_task_ptid): Update.
5829 (_initialize_ravenscar): Don't initialize base_ptid.
5830 (ravenscar_ops): Remove global.
5831
dea57a62
TT
58322019-02-15 Tom Tromey <tromey@adacore.com>
5833
5834 * target.h (push_target): Declare new overload.
5835 * target.c (push_target): New overload, taking an rvalue reference.
5836 * remote.c (remote_target::open_1): Use push_target overload.
5837 * corelow.c (core_target_open): Use push_target overload.
5838
989f3c58
TT
58392019-02-15 Tom Tromey <tromey@adacore.com>
5840
5841 * ravenscar-thread.c (is_ravenscar_task)
5842 (ravenscar_task_is_currently_active): Return bool.
5843 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5844 (_initialize_ravenscar): Remove "(void)".
5845 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5846 Return bool.
5847
6cbcc006
TT
58482019-02-15 Tom Tromey <tromey@adacore.com>
5849
5850 * ravenscar-thread.c (ravenscar_runtime_initializer)
5851 (has_ravenscar_runtime, get_running_thread_id)
5852 (ravenscar_thread_target::resume): Fix indentation.
5853
7657f14d
TT
58542019-02-15 Tom Tromey <tromey@adacore.com>
5855
5856 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5857 from ravenscar_arch_ops.
5858 (sparc_ravenscar_ops::fetch_registers)
5859 (sparc_ravenscar_ops::store_registers): Now methods.
5860 (sparc_ravenscar_prepare_to_store): Remove.
5861 (sparc_ravenscar_ops): Redefine.
5862 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5863 methods and destructor. Remove members.
5864 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5865 (ravenscar_thread_target::store_registers)
5866 (ravenscar_thread_target::prepare_to_store): Update.
5867 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5868 Remove.
5869 (struct ppc_ravenscar_powerpc_ops): Derive from
5870 ravenscar_arch_ops.
5871 (ppc_ravenscar_powerpc_ops::fetch_registers)
5872 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5873 (ppc_ravenscar_powerpc_ops): Redefine.
5874 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5875 (ppc_ravenscar_e500_ops::fetch_registers)
5876 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5877 (ppc_ravenscar_e500_ops): Redefine.
5878 * aarch64-ravenscar-thread.c
5879 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5880 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5881 (aarch64_ravenscar_fetch_registers)
5882 (aarch64_ravenscar_store_registers): Now methods.
5883 (aarch64_ravenscar_ops): Redefine.
5884
5b6ea500
TT
58852019-02-15 Tom Tromey <tromey@adacore.com>
5886
5887 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5888 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5889 (ravenscar_thread_target::stopped_by_watchpoint)
5890 (ravenscar_thread_target::stopped_data_address)
5891 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5892
e397fd39
TT
58932019-02-15 Tom Tromey <tromey@adacore.com>
5894
5895 * ravenscar-thread.c: Fix some typos.
5896
cc12f4a8
TT
58972019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5898 Tom Tromey <tromey@adacore.com>
5899
5900 * ada-lang.c (ada_exception_sal): Change addr_string to a
5901 std::string.
5902 (create_ada_exception_catchpoint): Update.
5903
5f486660
TT
59042019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5905 Tom Tromey <tromey@adacore.com>
5906
5907 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5908 (bp_location_ops): Remove.
5909 (base_breakpoint_allocate_location): Update.
5910 (free_bp_location): Update.
5911 * ada-lang.c (class ada_catchpoint_location)
5912 <ada_catchpoint_location>: Remove ops parameter.
5913 (ada_catchpoint_location_dtor): Remove.
5914 (ada_catchpoint_location_ops): Remove.
5915 (allocate_location_exception): Update.
5916 * breakpoint.h (struct bp_location_ops): Remove.
5917 (class bp_location) <bp_location>: Remove bp_location_ops
5918 parameter.
5919 <~bp_location>: Add destructor.
5920 <ops>: Remove.
5921
b671c7fb
TS
59222019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5923 Pedro Alves <palves@redhat.com>
5924
5925 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5926 'PATH_MAX'.
5927
8071c5ce
DM
59282019-02-14 David Michael <fedora.dm0@gmail.com>
5929 Samuel Thibault <samuel.thibault@gnu.org>
5930 Thomas Schwinge <thomas@codesourcery.com>
5931
5932 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5933 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5934
b1041ae0
TS
59352019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5936
924514e1
TS
5937 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5938 (check_empty): Use "const char *".
5939
c29ee8d4
TS
5940 * gnu-nat.c (gnu_nat_target::detach): Instead of
5941 'detach_inferior (pid)' call
5942 'detach_inferior (find_inferior_pid (pid))'.
5943
6c6ef69f
TS
5944 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5945 'nat/fork-inferior.o'.
5946 * gnu-nat.c: #include "nat/fork-inferior.h".
5947
2d0a338c
TS
5948 * gnu-nat.c (gnu_nat_target::detach): Instead of
5949 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5950 * gnu-nat.h: #include "inf-child.h".
5951 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5952 'i386_gnu_nat_target::fetch_registers'.
5953 (gnu_store_registers): Rename/move to
5954 'i386_gnu_nat_target::store_registers'.
5955
cabb5f06
TS
5956 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5957 * gnu-nat.h (mach_thread_info): New function.
5958 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5959
b1041ae0
TS
5960 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5961
2988d01e
KF
59622019-02-14 Frederic Konrad <konrad@adacore.com>
5963
5964 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5965
c559d709
JB
59662019-02-14 Joel Brobecker <brobecker@adacore.com>
5967
5968 * windows-nat.c (windows_add_thread): Add new parameter
5969 "main_thread_p" with default value set to false. Update
5970 function documentation as well as all callers.
5971 (windows_delete_thread): Likewise.
5972 (fake_create_process): Update call to windows_add_thread.
5973 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5974 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5975 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5976 call to windows_delete_thread.
5977
007024cc
SM
59782019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5979
5980 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5981
f62318e9
JB
59822019-02-12 John Baldwin <jhb@FreeBSD.org>
5983
5984 * symfile.c (find_separate_debug_file): Use canonical path of
5985 sysroot with child_path instead of gdb_sysroot if it is valid.
5986
cd4b7848
JB
59872019-02-12 John Baldwin <jhb@FreeBSD.org>
5988
5989 * symfile.c (find_separate_debug_file): Use child_path to
5990 determine if an object file is under a sysroot.
5991
efac4bfe
JB
59922019-02-12 John Baldwin <jhb@FreeBSD.org>
5993
5994 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5995 unittests/child-path-selftests.c.
5996 * common/pathstuff.c (child_path): New function.
5997 * common/pathstuff.h (child_path): New prototype.
5998 * unittests/child-path-selftests.c: New file.
5999
402d2bfe
JB
60002019-02-12 John Baldwin <jhb@FreeBSD.org>
6001
6002 * symfile.c (find_separate_debug_file): Look for separate debug
6003 files in debug directories under the sysroot.
6004
1ed9f74e
PW
60052019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6006
6007 * symtab.h (struct minimal_symbol data_p): New const method.
6008 (struct minimal_symbol text_p): Likewise.
6009 * symtab.c (output_source_filename): Use file name style
6010 to print file name.
6011 (print_symbol_info): Likewise.
6012 (print_msymbol_info): Use address style to print addresses.
6013 Use function name style to print executable text symbols.
6014 (expand_symtab_containing_pc): Use data_p.
6015 (find_pc_sect_compunit_symtab): Likewise.
6016
2636d81d
PW
60172019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6018
6019 * breakpoint.c (describe_other_breakpoints): Use address style
6020 to print addresses.
6021 (say_where): Likewise.
6022
ac8c53cc
PW
60232019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6024
6025 * ada-typeprint.c (print_func_type): Print function name
6026 style to print function name.
6027 * c-typeprint.c (c_print_type_1): Likewise.
6028
ea638c43
AH
60292019-02-11 Alan Hayward <alan.hayward@arm.com>
6030
6031 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
6032 for execve.
6033
ab759ca8
PW
60342019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6035
6036 * c-exp.y (direct_abs_decl): Use emplace_back to record the
6037 type_stack.
6038
aff29d1c
JB
60392019-02-10 Joel Brobecker <brobecker@adacore.com>
6040
6041 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
6042 TYPE_CODE_REF types.
6043
617126bc
JW
60442019-02-08 Jim Wilson <jimw@sifive.com>
6045
6046 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
6047 (riscv_linux_fregset): New.
6048 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
6049
46e3ed7f
TT
60502019-02-07 Tom Tromey <tom@tromey.com>
6051
6052 * thread.c (thread_cancel_execution_command): Update.
6053 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
6054 methods.
6055 (struct thread_fsm_ops): Remove.
6056 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
6057 (thread_fsm_should_stop, thread_fsm_return_value)
6058 (thread_fsm_set_finished, thread_fsm_finished_p)
6059 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
6060 Don't declare.
6061 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
6062 * infrun.c (clear_proceed_status_thread)
6063 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
6064 (print_stop_event): Update.
6065 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
6066 Add constructor.
6067 (step_command_fsm_ops): Remove.
6068 (new_step_command_fsm): Remove.
6069 (step_1): Update.
6070 (step_command_fsm::should_stop): Rename from
6071 step_command_fsm_should_stop.
6072 (step_command_fsm::clean_up): Rename from
6073 step_command_fsm_clean_up.
6074 (step_command_fsm::do_async_reply_reason): Rename from
6075 step_command_fsm_async_reply_reason.
6076 (struct until_next_fsm): Inherit from thread_fsm. Add
6077 constructor.
6078 (until_next_fsm_ops): Remove.
6079 (new_until_next_fsm): Remove.
6080 (until_next_fsm::should_stop): Rename from
6081 until_next_fsm_should_stop.
6082 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
6083 (until_next_fsm::do_async_reply_reason): Rename from
6084 until_next_fsm_async_reply_reason.
6085 (struct finish_command_fsm): Inherit from thread_fsm. Add
6086 constructor. Change type of breakpoint.
6087 (finish_command_fsm_ops): Remove.
6088 (new_finish_command_fsm): Remove.
6089 (finish_command_fsm::should_stop): Rename from
6090 finish_command_fsm_should_stop.
6091 (finish_command_fsm::clean_up): Rename from
6092 finish_command_fsm_clean_up.
6093 (finish_command_fsm::return_value): Rename from
6094 finish_command_fsm_return_value.
6095 (finish_command_fsm::do_async_reply_reason): Rename from
6096 finish_command_fsm_async_reply_reason.
6097 (finish_command): Update.
6098 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
6099 Add constructor.
6100 (call_thread_fsm_ops): Remove.
6101 (call_thread_fsm::call_thread_fsm): Rename from
6102 new_call_thread_fsm.
6103 (call_thread_fsm::should_stop): Rename from
6104 call_thread_fsm_should_stop.
6105 (call_thread_fsm::should_notify_stop): Rename from
6106 call_thread_fsm_should_notify_stop.
6107 (run_inferior_call, call_function_by_hand_dummy): Update.
6108 * cli/cli-interp.c (should_print_stop_to_console): Update.
6109 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
6110 Add constructor. Change type of location_breakpoint,
6111 caller_breakpoint.
6112 (until_break_fsm_ops): Remove.
6113 (new_until_break_fsm): Remove.
6114 (until_break_fsm::should_stop): Rename from
6115 until_break_fsm_should_stop.
6116 (until_break_fsm::clean_up): Rename from
6117 until_break_fsm_clean_up.
6118 (until_break_fsm::do_async_reply_reason): Rename from
6119 until_break_fsm_async_reply_reason.
6120 (until_break_command): Update.
6121 * thread-fsm.c: Remove.
6122 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
6123
1a5c2598
TT
61242019-02-07 Tom Tromey <tom@tromey.com>
6125
6126 * yy-remap.h: Add include guard.
6127 * xtensa-tdep.h: Add include guard.
6128 * xcoffread.h: Rename include guard.
6129 * varobj-iter.h: Add include guard.
6130 * tui/tui.h: Rename include guard.
6131 * tui/tui-winsource.h: Rename include guard.
6132 * tui/tui-wingeneral.h: Rename include guard.
6133 * tui/tui-windata.h: Rename include guard.
6134 * tui/tui-win.h: Rename include guard.
6135 * tui/tui-stack.h: Rename include guard.
6136 * tui/tui-source.h: Rename include guard.
6137 * tui/tui-regs.h: Rename include guard.
6138 * tui/tui-out.h: Rename include guard.
6139 * tui/tui-layout.h: Rename include guard.
6140 * tui/tui-io.h: Rename include guard.
6141 * tui/tui-hooks.h: Rename include guard.
6142 * tui/tui-file.h: Rename include guard.
6143 * tui/tui-disasm.h: Rename include guard.
6144 * tui/tui-data.h: Rename include guard.
6145 * tui/tui-command.h: Rename include guard.
6146 * tic6x-tdep.h: Add include guard.
6147 * target/waitstatus.h: Rename include guard.
6148 * target/wait.h: Rename include guard.
6149 * target/target.h: Rename include guard.
6150 * target/resume.h: Rename include guard.
6151 * target-float.h: Rename include guard.
6152 * stabsread.h: Add include guard.
6153 * rs6000-tdep.h: Add include guard.
6154 * riscv-fbsd-tdep.h: Add include guard.
6155 * regformats/regdef.h: Rename include guard.
6156 * record.h: Rename include guard.
6157 * python/python.h: Rename include guard.
6158 * python/python-internal.h: Rename include guard.
6159 * python/py-stopevent.h: Rename include guard.
6160 * python/py-ref.h: Rename include guard.
6161 * python/py-record.h: Rename include guard.
6162 * python/py-record-full.h: Rename include guard.
6163 * python/py-record-btrace.h: Rename include guard.
6164 * python/py-instruction.h: Rename include guard.
6165 * python/py-events.h: Rename include guard.
6166 * python/py-event.h: Rename include guard.
6167 * procfs.h: Add include guard.
6168 * proc-utils.h: Add include guard.
6169 * p-lang.h: Add include guard.
6170 * or1k-tdep.h: Rename include guard.
6171 * observable.h: Rename include guard.
6172 * nto-tdep.h: Rename include guard.
6173 * nat/x86-linux.h: Rename include guard.
6174 * nat/x86-linux-dregs.h: Rename include guard.
6175 * nat/x86-gcc-cpuid.h: Add include guard.
6176 * nat/x86-dregs.h: Rename include guard.
6177 * nat/x86-cpuid.h: Rename include guard.
6178 * nat/ppc-linux.h: Rename include guard.
6179 * nat/mips-linux-watch.h: Rename include guard.
6180 * nat/linux-waitpid.h: Rename include guard.
6181 * nat/linux-ptrace.h: Rename include guard.
6182 * nat/linux-procfs.h: Rename include guard.
6183 * nat/linux-osdata.h: Rename include guard.
6184 * nat/linux-nat.h: Rename include guard.
6185 * nat/linux-namespaces.h: Rename include guard.
6186 * nat/linux-btrace.h: Rename include guard.
6187 * nat/glibc_thread_db.h: Rename include guard.
6188 * nat/gdb_thread_db.h: Rename include guard.
6189 * nat/gdb_ptrace.h: Rename include guard.
6190 * nat/fork-inferior.h: Rename include guard.
6191 * nat/amd64-linux-siginfo.h: Rename include guard.
6192 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
6193 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
6194 * nat/aarch64-linux.h: Rename include guard.
6195 * nat/aarch64-linux-hw-point.h: Rename include guard.
6196 * mn10300-tdep.h: Add include guard.
6197 * mips-linux-tdep.h: Add include guard.
6198 * mi/mi-parse.h: Rename include guard.
6199 * mi/mi-out.h: Rename include guard.
6200 * mi/mi-main.h: Rename include guard.
6201 * mi/mi-interp.h: Rename include guard.
6202 * mi/mi-getopt.h: Rename include guard.
6203 * mi/mi-console.h: Rename include guard.
6204 * mi/mi-common.h: Rename include guard.
6205 * mi/mi-cmds.h: Rename include guard.
6206 * mi/mi-cmd-break.h: Rename include guard.
6207 * m2-lang.h: Add include guard.
6208 * location.h: Rename include guard.
6209 * linux-record.h: Rename include guard.
6210 * linux-nat.h: Add include guard.
6211 * linux-fork.h: Add include guard.
6212 * i386-darwin-tdep.h: Rename include guard.
6213 * hppa-linux-offsets.h: Add include guard.
6214 * guile/guile.h: Rename include guard.
6215 * guile/guile-internal.h: Rename include guard.
6216 * gnu-nat.h: Rename include guard.
6217 * gdb-stabs.h: Rename include guard.
6218 * frv-tdep.h: Add include guard.
6219 * f-lang.h: Add include guard.
6220 * event-loop.h: Add include guard.
6221 * darwin-nat.h: Rename include guard.
6222 * cp-abi.h: Rename include guard.
6223 * config/sparc/nm-sol2.h: Rename include guard.
6224 * config/nm-nto.h: Rename include guard.
6225 * config/nm-linux.h: Add include guard.
6226 * config/i386/nm-i386gnu.h: Rename include guard.
6227 * config/djgpp/nl_types.h: Rename include guard.
6228 * config/djgpp/langinfo.h: Rename include guard.
6229 * compile/gcc-cp-plugin.h: Add include guard.
6230 * compile/gcc-c-plugin.h: Add include guard.
6231 * compile/compile.h: Rename include guard.
6232 * compile/compile-object-run.h: Rename include guard.
6233 * compile/compile-object-load.h: Rename include guard.
6234 * compile/compile-internal.h: Rename include guard.
6235 * compile/compile-cplus.h: Rename include guard.
6236 * compile/compile-c.h: Rename include guard.
6237 * common/xml-utils.h: Rename include guard.
6238 * common/x86-xstate.h: Rename include guard.
6239 * common/version.h: Rename include guard.
6240 * common/vec.h: Rename include guard.
6241 * common/tdesc.h: Rename include guard.
6242 * common/selftest.h: Rename include guard.
6243 * common/scoped_restore.h: Rename include guard.
6244 * common/scoped_mmap.h: Rename include guard.
6245 * common/scoped_fd.h: Rename include guard.
6246 * common/safe-iterator.h: Rename include guard.
6247 * common/run-time-clock.h: Rename include guard.
6248 * common/refcounted-object.h: Rename include guard.
6249 * common/queue.h: Rename include guard.
6250 * common/ptid.h: Rename include guard.
6251 * common/print-utils.h: Rename include guard.
6252 * common/preprocessor.h: Rename include guard.
6253 * common/pathstuff.h: Rename include guard.
6254 * common/observable.h: Rename include guard.
6255 * common/netstuff.h: Rename include guard.
6256 * common/job-control.h: Rename include guard.
6257 * common/host-defs.h: Rename include guard.
6258 * common/gdb_wait.h: Rename include guard.
6259 * common/gdb_vecs.h: Rename include guard.
6260 * common/gdb_unlinker.h: Rename include guard.
6261 * common/gdb_unique_ptr.h: Rename include guard.
6262 * common/gdb_tilde_expand.h: Rename include guard.
6263 * common/gdb_sys_time.h: Rename include guard.
6264 * common/gdb_string_view.h: Rename include guard.
6265 * common/gdb_splay_tree.h: Rename include guard.
6266 * common/gdb_setjmp.h: Rename include guard.
6267 * common/gdb_ref_ptr.h: Rename include guard.
6268 * common/gdb_optional.h: Rename include guard.
6269 * common/gdb_locale.h: Rename include guard.
6270 * common/gdb_assert.h: Rename include guard.
6271 * common/filtered-iterator.h: Rename include guard.
6272 * common/filestuff.h: Rename include guard.
6273 * common/fileio.h: Rename include guard.
6274 * common/environ.h: Rename include guard.
6275 * common/common-utils.h: Rename include guard.
6276 * common/common-types.h: Rename include guard.
6277 * common/common-regcache.h: Rename include guard.
6278 * common/common-inferior.h: Rename include guard.
6279 * common/common-gdbthread.h: Rename include guard.
6280 * common/common-exceptions.h: Rename include guard.
6281 * common/common-defs.h: Rename include guard.
6282 * common/common-debug.h: Rename include guard.
6283 * common/cleanups.h: Rename include guard.
6284 * common/buffer.h: Rename include guard.
6285 * common/btrace-common.h: Rename include guard.
6286 * common/break-common.h: Rename include guard.
6287 * cli/cli-utils.h: Rename include guard.
6288 * cli/cli-style.h: Rename include guard.
6289 * cli/cli-setshow.h: Rename include guard.
6290 * cli/cli-script.h: Rename include guard.
6291 * cli/cli-interp.h: Rename include guard.
6292 * cli/cli-decode.h: Rename include guard.
6293 * cli/cli-cmds.h: Rename include guard.
6294 * charset-list.h: Add include guard.
6295 * buildsym-legacy.h: Rename include guard.
6296 * bfin-tdep.h: Add include guard.
6297 * ax.h: Rename include guard.
6298 * arm-linux-tdep.h: Add include guard.
6299 * arm-fbsd-tdep.h: Add include guard.
6300 * arch/xtensa.h: Rename include guard.
6301 * arch/tic6x.h: Add include guard.
6302 * arch/i386.h: Add include guard.
6303 * arch/arm.h: Rename include guard.
6304 * arch/arm-linux.h: Rename include guard.
6305 * arch/arm-get-next-pcs.h: Rename include guard.
6306 * arch/amd64.h: Add include guard.
6307 * arch/aarch64-insn.h: Rename include guard.
6308 * arch-utils.h: Rename include guard.
6309 * annotate.h: Add include guard.
6310 * amd64-darwin-tdep.h: Rename include guard.
6311 * aarch64-linux-tdep.h: Add include guard.
6312 * aarch64-fbsd-tdep.h: Add include guard.
6313 * aarch32-linux-nat.h: Add include guard.
6314
ab9268d2
PW
63152019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6316
6317 * macrotab.c (macro_define_internal): New function that
6318 factorizes macro_define_object_internal and macro_define_function
6319 code.
6320 (macro_define_object_internal): Use macro_define_internal.
6321 (macro_define_function): Likewise.
6322
bb0da2b4
PW
63232019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6324
6325 * macrocmd.c (extract_identifier): Return
6326 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
6327 callers.
6328
424eb552
JB
63292019-02-06 John Baldwin <jhb@FreeBSD.org>
6330
6331 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
6332
1688cb29
TT
63332019-02-05 Tom Tromey <tom@tromey.com>
6334
6335 * target.c (target_stack::unpush): Move assertion earlier.
6336
b5eba2d8
TT
63372019-01-30 Tom Tromey <tom@tromey.com>
6338
6339 PR python/23615:
6340 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
6341 (gdbpy_parse_and_eval): Likewise.
6342 * python/python-internal.h (gdbpy_allow_threads): New class.
6343
7054e2ff
JB
63442019-01-28 John Baldwin <jhb@FreeBSD.org>
6345
6346 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
6347 (aarch64_fbsd_fpregmap): Move earlier.
6348 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
6349 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6350 instead of individual calls to trad_frame_set_reg_addr.
6351 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
6352 earlier.
6353 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
6354 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6355 instead of individual calls to trad_frame_set_reg_addr.
6356
36c25ffa
AH
63572019-01-28 Alan Hayward <alan.hayward@arm.com>
6358
6359 * CONTRIBUTE: Replace contribution list with wiki link.
6360
a0707f3c
TT
63612019-01-25 Tom Tromey <tom@tromey.com>
6362
6363 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
6364
0747795c
TT
63652019-01-25 Tom Tromey <tom@tromey.com>
6366
6367 * xtensa-linux-nat.c: Fix common/ includes.
6368 * xml-support.h: Fix common/ includes.
6369 * xml-support.c: Fix common/ includes.
6370 * x86-linux-nat.c: Fix common/ includes.
6371 * windows-nat.c: Fix common/ includes.
6372 * varobj.h: Fix common/ includes.
6373 * varobj.c: Fix common/ includes.
6374 * value.c: Fix common/ includes.
6375 * valops.c: Fix common/ includes.
6376 * utils.c: Fix common/ includes.
6377 * unittests/xml-utils-selftests.c: Fix common/ includes.
6378 * unittests/utils-selftests.c: Fix common/ includes.
6379 * unittests/unpack-selftests.c: Fix common/ includes.
6380 * unittests/tracepoint-selftests.c: Fix common/ includes.
6381 * unittests/style-selftests.c: Fix common/ includes.
6382 * unittests/string_view-selftests.c: Fix common/ includes.
6383 * unittests/scoped_restore-selftests.c: Fix common/ includes.
6384 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
6385 * unittests/scoped_fd-selftests.c: Fix common/ includes.
6386 * unittests/rsp-low-selftests.c: Fix common/ includes.
6387 * unittests/parse-connection-spec-selftests.c: Fix common/
6388 includes.
6389 * unittests/optional-selftests.c: Fix common/ includes.
6390 * unittests/offset-type-selftests.c: Fix common/ includes.
6391 * unittests/observable-selftests.c: Fix common/ includes.
6392 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
6393 * unittests/memrange-selftests.c: Fix common/ includes.
6394 * unittests/memory-map-selftests.c: Fix common/ includes.
6395 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
6396 * unittests/function-view-selftests.c: Fix common/ includes.
6397 * unittests/environ-selftests.c: Fix common/ includes.
6398 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
6399 * unittests/common-utils-selftests.c: Fix common/ includes.
6400 * unittests/cli-utils-selftests.c: Fix common/ includes.
6401 * unittests/array-view-selftests.c: Fix common/ includes.
6402 * ui-file.c: Fix common/ includes.
6403 * tui/tui-io.c: Fix common/ includes.
6404 * tracepoint.h: Fix common/ includes.
6405 * tracepoint.c: Fix common/ includes.
6406 * tracefile-tfile.c: Fix common/ includes.
6407 * top.h: Fix common/ includes.
6408 * top.c: Fix common/ includes.
6409 * thread.c: Fix common/ includes.
6410 * target/waitstatus.h: Fix common/ includes.
6411 * target/waitstatus.c: Fix common/ includes.
6412 * target.h: Fix common/ includes.
6413 * target.c: Fix common/ includes.
6414 * target-memory.c: Fix common/ includes.
6415 * target-descriptions.c: Fix common/ includes.
6416 * symtab.h: Fix common/ includes.
6417 * symfile.c: Fix common/ includes.
6418 * stap-probe.c: Fix common/ includes.
6419 * spu-linux-nat.c: Fix common/ includes.
6420 * sparc-nat.c: Fix common/ includes.
6421 * source.c: Fix common/ includes.
6422 * solib.c: Fix common/ includes.
6423 * solib-target.c: Fix common/ includes.
6424 * ser-unix.c: Fix common/ includes.
6425 * ser-tcp.c: Fix common/ includes.
6426 * ser-pipe.c: Fix common/ includes.
6427 * ser-base.c: Fix common/ includes.
6428 * selftest-arch.c: Fix common/ includes.
6429 * s12z-tdep.c: Fix common/ includes.
6430 * rust-exp.y: Fix common/ includes.
6431 * rs6000-aix-tdep.c: Fix common/ includes.
6432 * riscv-tdep.c: Fix common/ includes.
6433 * remote.c: Fix common/ includes.
6434 * remote-notif.h: Fix common/ includes.
6435 * remote-fileio.h: Fix common/ includes.
6436 * remote-fileio.c: Fix common/ includes.
6437 * regcache.h: Fix common/ includes.
6438 * regcache.c: Fix common/ includes.
6439 * record-btrace.c: Fix common/ includes.
6440 * python/python.c: Fix common/ includes.
6441 * python/py-type.c: Fix common/ includes.
6442 * python/py-inferior.c: Fix common/ includes.
6443 * progspace.h: Fix common/ includes.
6444 * producer.c: Fix common/ includes.
6445 * procfs.c: Fix common/ includes.
6446 * proc-api.c: Fix common/ includes.
6447 * printcmd.c: Fix common/ includes.
6448 * ppc-linux-nat.c: Fix common/ includes.
6449 * parser-defs.h: Fix common/ includes.
6450 * osdata.c: Fix common/ includes.
6451 * obsd-nat.c: Fix common/ includes.
6452 * nat/x86-linux.c: Fix common/ includes.
6453 * nat/x86-linux-dregs.c: Fix common/ includes.
6454 * nat/x86-dregs.h: Fix common/ includes.
6455 * nat/x86-dregs.c: Fix common/ includes.
6456 * nat/ppc-linux.c: Fix common/ includes.
6457 * nat/mips-linux-watch.h: Fix common/ includes.
6458 * nat/mips-linux-watch.c: Fix common/ includes.
6459 * nat/linux-waitpid.c: Fix common/ includes.
6460 * nat/linux-ptrace.h: Fix common/ includes.
6461 * nat/linux-ptrace.c: Fix common/ includes.
6462 * nat/linux-procfs.c: Fix common/ includes.
6463 * nat/linux-personality.c: Fix common/ includes.
6464 * nat/linux-osdata.c: Fix common/ includes.
6465 * nat/linux-namespaces.c: Fix common/ includes.
6466 * nat/linux-btrace.h: Fix common/ includes.
6467 * nat/linux-btrace.c: Fix common/ includes.
6468 * nat/fork-inferior.c: Fix common/ includes.
6469 * nat/amd64-linux-siginfo.c: Fix common/ includes.
6470 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
6471 * nat/aarch64-linux.c: Fix common/ includes.
6472 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
6473 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
6474 * namespace.h: Fix common/ includes.
6475 * mips-linux-tdep.c: Fix common/ includes.
6476 * minsyms.c: Fix common/ includes.
6477 * mi/mi-parse.h: Fix common/ includes.
6478 * mi/mi-main.c: Fix common/ includes.
6479 * mi/mi-cmd-env.c: Fix common/ includes.
6480 * memrange.h: Fix common/ includes.
6481 * memattr.c: Fix common/ includes.
6482 * maint.h: Fix common/ includes.
6483 * maint.c: Fix common/ includes.
6484 * main.c: Fix common/ includes.
6485 * machoread.c: Fix common/ includes.
6486 * location.c: Fix common/ includes.
6487 * linux-thread-db.c: Fix common/ includes.
6488 * linux-nat.c: Fix common/ includes.
6489 * linux-fork.c: Fix common/ includes.
6490 * inline-frame.c: Fix common/ includes.
6491 * infrun.c: Fix common/ includes.
6492 * inflow.c: Fix common/ includes.
6493 * inferior.h: Fix common/ includes.
6494 * inferior.c: Fix common/ includes.
6495 * infcmd.c: Fix common/ includes.
6496 * inf-ptrace.c: Fix common/ includes.
6497 * inf-child.c: Fix common/ includes.
6498 * ia64-linux-nat.c: Fix common/ includes.
6499 * i387-tdep.c: Fix common/ includes.
6500 * i386-tdep.c: Fix common/ includes.
6501 * i386-linux-tdep.c: Fix common/ includes.
6502 * i386-linux-nat.c: Fix common/ includes.
6503 * i386-go32-tdep.c: Fix common/ includes.
6504 * i386-fbsd-tdep.c: Fix common/ includes.
6505 * i386-fbsd-nat.c: Fix common/ includes.
6506 * guile/scm-type.c: Fix common/ includes.
6507 * guile/guile.c: Fix common/ includes.
6508 * go32-nat.c: Fix common/ includes.
6509 * gnu-nat.c: Fix common/ includes.
6510 * gdbthread.h: Fix common/ includes.
6511 * gdbarch-selftests.c: Fix common/ includes.
6512 * gdb_usleep.c: Fix common/ includes.
6513 * gdb_select.h: Fix common/ includes.
6514 * gdb_bfd.c: Fix common/ includes.
6515 * gcore.c: Fix common/ includes.
6516 * fork-child.c: Fix common/ includes.
6517 * findvar.c: Fix common/ includes.
6518 * fbsd-nat.c: Fix common/ includes.
6519 * event-top.c: Fix common/ includes.
6520 * event-loop.c: Fix common/ includes.
6521 * dwarf2read.c: Fix common/ includes.
6522 * dwarf2loc.c: Fix common/ includes.
6523 * dwarf2-frame.c: Fix common/ includes.
6524 * dwarf-index-cache.c: Fix common/ includes.
6525 * dtrace-probe.c: Fix common/ includes.
6526 * disasm-selftests.c: Fix common/ includes.
6527 * defs.h: Fix common/ includes.
6528 * csky-tdep.c: Fix common/ includes.
6529 * cp-valprint.c: Fix common/ includes.
6530 * cp-support.h: Fix common/ includes.
6531 * cp-support.c: Fix common/ includes.
6532 * corelow.c: Fix common/ includes.
6533 * completer.h: Fix common/ includes.
6534 * completer.c: Fix common/ includes.
6535 * compile/compile.c: Fix common/ includes.
6536 * compile/compile-loc2c.c: Fix common/ includes.
6537 * compile/compile-cplus-types.c: Fix common/ includes.
6538 * compile/compile-cplus-symbols.c: Fix common/ includes.
6539 * command.h: Fix common/ includes.
6540 * cli/cli-dump.c: Fix common/ includes.
6541 * cli/cli-cmds.c: Fix common/ includes.
6542 * charset.c: Fix common/ includes.
6543 * build-id.c: Fix common/ includes.
6544 * btrace.h: Fix common/ includes.
6545 * btrace.c: Fix common/ includes.
6546 * breakpoint.h: Fix common/ includes.
6547 * breakpoint.c: Fix common/ includes.
6548 * ax.h:
6549 (enum agent_op): Fix common/ includes.
6550 * ax-general.c (struct aop_map): Fix common/ includes.
6551 * ax-gdb.c: Fix common/ includes.
6552 * auxv.c: Fix common/ includes.
6553 * auto-load.c: Fix common/ includes.
6554 * arm-tdep.c: Fix common/ includes.
6555 * arch/riscv.c: Fix common/ includes.
6556 * arch/ppc-linux-common.c: Fix common/ includes.
6557 * arch/i386.c: Fix common/ includes.
6558 * arch/arm.c: Fix common/ includes.
6559 * arch/arm-linux.c: Fix common/ includes.
6560 * arch/arm-get-next-pcs.c: Fix common/ includes.
6561 * arch/amd64.c: Fix common/ includes.
6562 * arch/aarch64.c: Fix common/ includes.
6563 * arch/aarch64-insn.c: Fix common/ includes.
6564 * arch-utils.c: Fix common/ includes.
6565 * amd64-windows-tdep.c: Fix common/ includes.
6566 * amd64-tdep.c: Fix common/ includes.
6567 * amd64-sol2-tdep.c: Fix common/ includes.
6568 * amd64-obsd-tdep.c: Fix common/ includes.
6569 * amd64-nbsd-tdep.c: Fix common/ includes.
6570 * amd64-linux-tdep.c: Fix common/ includes.
6571 * amd64-linux-nat.c: Fix common/ includes.
6572 * amd64-fbsd-tdep.c: Fix common/ includes.
6573 * amd64-fbsd-nat.c: Fix common/ includes.
6574 * amd64-dicos-tdep.c: Fix common/ includes.
6575 * amd64-darwin-tdep.c: Fix common/ includes.
6576 * agent.c: Fix common/ includes.
6577 * ada-lang.h: Fix common/ includes.
6578 * ada-lang.c: Fix common/ includes.
6579 * aarch64-tdep.c: Fix common/ includes.
6580
2f5c153e
TT
65812019-01-25 Tom Tromey <tom@tromey.com>
6582
6583 * common/create-version.sh: Use common/version.h.
6584
adc6a863
PA
65852019-01-24 Pedro Alves <palves@redhat.com>
6586
6587 * infrun.c (signal_stop, signal_print, signal_program)
6588 (signal_catch, signal_pass): Now arrays instead of pointers.
6589 (update_signals_program_target, do_target_resume)
6590 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
6591 * linux-nat.c (linux_nat_target::pass_signals)
6592 (linux_nat_target::create_inferior, linux_nat_target::attach):
6593 Adjust.
6594 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
6595 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
6596 * procfs.c (procfs_target::pass_signals): Adjust.
6597 * record-full.c (record_full_target::resume): Adjust.
6598 * remote.c (remote_target::pass_signals)
6599 (remote_target::program_signals): Adjust.
6600 * target-debug.h (target_debug_print_signals): Now takes a
6601 gdb::array_view as parameter. Adjust.
6602 * target.h (target_ops) <pass_signals, program_signals>: Replace
6603 pointer and length parameters with gdb::array_view.
6604 (target_pass_signals, target_program_signals): Likewise.
6605 * target-delegates.c: Regenerate.
6606
3046d67a
PA
66072019-01-24 Pedro Alves <palves@redhat.com>
6608
6609 * common/forward-scope-exit.h
6610 (forward_scope_exit::forward_scope_exit): Pass arguments to
6611 m_bind_function directly, instead of creating a std::bind and
6612 copying that.
6613
353229bf
AH
66142019-01-24 Alan Hayward <alan.hayward@arm.com>
6615
6616 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6617 for static members.
6618 (pass_in_v_vfp_candidate): Likewise.
6619
311dc83a
TT
66202019-01-23 Tom Tromey <tom@tromey.com>
6621 Pedro Alves <palves@redhat.com>
6622
6623 * regcache.c (class regcache_invalidator): Remove.
6624 (regcache::raw_write): Use make_scope_exit.
6625
296bd123
TT
66262019-01-23 Tom Tromey <tom@tromey.com>
6627
6628 * ui-out.h (class ui_out_emit_type): Update comment.
6629
979a0d13
TT
66302019-01-23 Tom Tromey <tom@tromey.com>
6631
6632 * infrun.c (fetch_inferior_event): Update comment.
6633
d238133d
TT
66342019-01-23 Tom Tromey <tom@tromey.com>
6635 Pedro Alves <palves@redhat.com>
6636
6637 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
6638 parameter.
6639 (fetch_inferior_event): Use SCOPE_EXIT.
6640
6641
9885e6bb
TT
66422019-01-23 Tom Tromey <tom@tromey.com>
6643 Pedro Alves <palves@redhat.com>
6644
6645 * infrun.c (disable_thread_events): Delete.
6646 (stop_all_threads): Use SCOPE_EXIT.
6647
286526c1
TT
66482019-01-23 Tom Tromey <tom@tromey.com>
6649 Pedro Alves <palves@redhat.com>
6650
6651 * symfile.c: Include forward-scope-exit.h.
6652 (clear_symtab_users_cleanup): Replace forward declaration with
6653 a FORWARD_SCOPE_EXIT.
6654 (syms_from_objfile_1): Use the forward_scope_exit and
6655 gdb::optional instead of cleanup_function.
6656 (reread_symbols): Use the forward_scope_exit instead of
6657 cleanup_function.
6658 (clear_symtab_users_cleanup): Remove function.
6659
1db93f14
TT
66602019-01-23 Tom Tromey <tom@tromey.com>
6661 Pedro Alves <palves@redhat.com>
6662
6663 * linux-nat.c: Include scope-exit.h.
6664 (cleanup_target_stop): Remove.
6665 (linux_nat_target::static_tracepoint_markers_by_strid): Use
6666 SCOPE_EXIT.
6667
2cc83d1e
TT
66682019-01-23 Tom Tromey <tom@tromey.com>
6669 Pedro Alves <palves@redhat.com>
6670
6671 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
6672 (call_function_by_hand_dummy): Use SCOPE_EXIT.
6673
694c6bf5
TT
66742019-01-23 Tom Tromey <tom@tromey.com>
6675 Andrew Burgess <andrew.burgess@embecosm.com>
6676 Pedro Alves <palves@redhat.com>
6677
6678 * infrun.c (fetch_inferior_event): Use scope_exit.
6679 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
6680 * top.c (execute_command): Use scope_exit.
6681 * breakpoint.c (bpstat_do_actions): Use scope_exit.
6682 * utils.c (do_bpstat_clear_actions_cleanup)
6683 (make_bpstat_clear_actions_cleanup): Remove.
6684
4c41382a
TT
66852019-01-23 Tom Tromey <tom@tromey.com>
6686 Pedro Alves <palves@redhat.com>
6687
6688 * infrun.c: Include "common/scope-exit.h"
6689 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
6690 (wait_for_inferior): Use SCOPE_EXIT.
6691 (fetch_inferior_event): Use scope_exit.
6692
89f8fb50
TT
66932019-01-23 Tom Tromey <tom@tromey.com>
6694 Pedro Alves <palves@redhat.com>
6695
6696 * breakpoint.c (create_breakpoint): Remove cleanup.
6697
5419bdae
TT
66982019-01-23 Tom Tromey <tom@tromey.com>
6699 Andrew Burgess <andrew.burgess@embecosm.com>
6700 Pedro Alves <palves@redhat.com>
6701
e587ef42
PA
67022019-01-23 Pedro Alves <palves@redhat.com>
6703
6704 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6705
77f0e74c
PA
67062019-01-23 Pedro Alves <palves@redhat.com>
6707 Andrew Burgess <andrew.burgess@embecosm.com>
6708
6709 * gdbthread.h: Include "common/forward-scope-exit.h".
6710 (scoped_finish_thread_state): Redefine custom class in terms of
6711 forward_scope_exit.
6712
5b9b3e53
PA
67132019-01-23 Pedro Alves <palves@redhat.com>
6714 Andrew Burgess <andrew.burgess@embecosm.com>
6715
6716 * common/forward-scope-exit.h: New file.
6717
54b65c9b
PA
67182019-01-23 Pedro Alves <palves@redhat.com>
6719 Andrew Burgess <andrew.burgess@embecosm.com>
6720 Tom Tromey <tom@tromey.com>
6721
6722 * common/scope-exit.h: New file.
6723
cf08fb29
PA
67242019-01-23 Pedro Alves <palves@redhat.com>
6725
6726 * common/preprocessor.h (ESC): Rename to ...
6727 (ESC_PARENS): ... this.
6728 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6729 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6730
ae73e2e2
TT
67312019-01-23 Tom Tromey <tom@tromey.com>
6732
6733 * language.h (class scoped_switch_to_sym_language_if_auto):
6734 Initialize m_lang in both cases.
6735
6594e122
AH
67362019-01-23 Alan Hayward <alan.hayward@arm.com>
6737
6738 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6739 with XCNEW.
6740
a7c9855d
TT
67412019-01-22 Tom Tromey <tom@tromey.com>
6742
6743 * corelow.c: Do not include sys/file.h.
6744
93cc1d53
TT
67452019-01-22 Tom Tromey <tom@tromey.com>
6746
6747 * tui/tui-wingeneral.h: Include gdb_curses.h.
6748
38561778
TT
67492019-01-22 Tom Tromey <tom@tromey.com>
6750
6751 * source-cache.h (class source_cache) <get_source_lines,
6752 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6753
37b3ab5b
TT
67542019-01-22 Tom Tromey <tom@tromey.com>
6755
6756 * remote-fileio.h (struct remote_target): Declare.
6757
3fabc016
TT
67582019-01-22 Tom Tromey <tom@tromey.com>
6759
6760 * python/py-arch.c: Do not include py-ref.h.
6761 * python/py-bpevent.c: Do not include py-ref.h.
6762 * python/py-cmd.c: Do not include py-ref.h.
6763 * python/py-continueevent.c: Do not include py-ref.h.
6764 * python/py-event.h: Do not include py-ref.h.
6765 * python/py-evtregistry.c: Do not include py-ref.h.
6766 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6767 * python/py-frame.c: Do not include py-ref.h.
6768 * python/py-framefilter.c: Do not include py-ref.h.
6769 * python/py-function.c: Do not include py-ref.h.
6770 * python/py-infevents.c: Do not include py-ref.h.
6771 * python/py-linetable.c: Do not include py-ref.h.
6772 * python/py-objfile.c: Do not include py-ref.h.
6773 * python/py-param.c: Do not include py-ref.h.
6774 * python/py-prettyprint.c: Do not include py-ref.h.
6775 * python/py-progspace.c: Do not include py-ref.h.
6776 * python/py-symbol.c: Do not include py-ref.h.
6777 * python/py-symtab.c: Do not include py-ref.h.
6778 * python/py-type.c: Do not include py-ref.h.
6779 * python/py-unwind.c: Do not include py-ref.h.
6780 * python/py-utils.c: Do not include py-ref.h.
6781 * python/py-value.c: Do not include py-ref.h.
6782 * python/py-varobj.c: Do not include py-ref.h.
6783 * python/py-xmethods.c: Do not include py-ref.h.
6784 * python/python.c: Do not include py-ref.h.
6785 * varobj.c: Do not include py-ref.h.
6786
6b4d7774
TT
67872019-01-22 Tom Tromey <tom@tromey.com>
6788
6789 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6790 keyword for bcache.
6791
7af7e9b5
TT
67922019-01-22 Tom Tromey <tom@tromey.com>
6793
6794 * compile/compile-cplus-types.c: Remove a comment by #include.
6795
951d1049
TT
67962019-01-22 Tom Tromey <tom@tromey.com>
6797
6798 * compile/gcc-c-plugin.h: Include compile-internal.h.
6799
d65d5705
TT
68002019-01-22 Tom Tromey <tom@tromey.com>
6801
6802 * stabsread.c (EXTERN): Do not define.
6803 (symnum, next_symbol_text_func, processing_gcc_compilation)
6804 (within_function, global_sym_chain, global_stabs)
6805 (previous_stab_code, this_object_header_files)
6806 (n_this_object_header_files)
6807 (n_allocated_this_object_header_files): Define.
6808 * stabsread.h (EXTERN): Never define. Use "extern".
6809
b6fb1ee5
PW
68102019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6811
6812 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6813 history_value.
6814
be6d4f74
TT
68152019-01-21 Tom Tromey <tom@tromey.com>
6816
6817 * ui-out.c: Fix includes.
6818 * tui/tui-source.c: Fix includes.
6819 * target.c: Fix includes.
6820 * remote.c: Fix includes.
6821 * regcache.c: Fix includes.
6822 * python/py-block.c: Fix includes.
6823 * printcmd.c: Fix includes.
6824 * or1k-tdep.c: Fix includes.
6825 * mi/mi-main.c: Fix includes.
6826 * m32r-tdep.c: Fix includes.
6827 * csky-tdep.c: Fix includes.
6828 * compile/compile-cplus-types.c: Fix includes.
6829 * cli/cli-interp.c: Fix includes.
6830
73021deb
AH
68312019-01-21 Alan Hayward <alan.hayward@arm.com>
6832
6833 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6834 for padding.
6835
7932255d
TT
68362019-01-16 Tom Tromey <tom@tromey.com>
6837
6838 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6839 earlier.
6840 (struct objfile) <msymbols_range>: Move from top level.
6841 <msymbols>: New method.
6842 (class objfile_msymbols): Remove.
6843 * symtab.c (default_collect_symbol_completion_matches_break_on):
6844 Update.
6845 * symmisc.c (dump_msymbols): Update.
6846 * stabsread.c (scan_file_globals): Update.
6847 * objc-lang.c (info_selectors_command, info_classes_command)
6848 (find_methods): Update.
6849 * minsyms.c (find_solib_trampoline_target): Update.
6850 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6851 * coffread.c (coff_symfile_read): Update.
6852 * ada-lang.c (ada_lookup_simple_minsym)
6853 (ada_collect_symbol_completion_matches): Update.
6854
604b1bfb
TT
68552019-01-16 Tom Tromey <tom@tromey.com>
6856
6857 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6858 type. Remove no-argument constructor.
6859 <iterator::operator++>: Simplify.
6860 <begin>: Update.
6861 <end>: Use minimal_symbol_count.
6862
f252c6d5
TT
68632019-01-16 Tom Tromey <tom@tromey.com>
6864
6865 * objfiles.h (struct objfile) <psymtabs>: New method.
6866 (class objfile_psymtabs): Remove.
6867 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6868 typedef.
6869 <range>: New method.
6870 (require_partial_symbols): Change return type.
6871 * psymtab.c (require_partial_symbols)
6872 (psym_expand_symtabs_matching): Update.
6873 * mdebugread.c (parse_partial_symbols): Update.
6874 * dbxread.c (dbx_end_psymtab): Update.
6875
b669c953
TT
68762019-01-15 Tom Tromey <tom@tromey.com>
6877
6878 * symtab.c (lookup_objfile_from_block)
6879 (lookup_symbol_in_objfile_symtabs)
6880 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6881 (find_line_symtab, info_sources_command)
6882 (default_collect_symbol_completion_matches_break_on)
6883 (make_source_files_completion_list): Update.
6884 * symmisc.c (print_objfile_statistics, dump_objfile)
6885 (maintenance_print_symbols, maintenance_info_symtabs)
6886 (maintenance_check_symtabs, maintenance_info_line_tables):
6887 Update.
6888 * source.c (select_source_symtab)
6889 (forget_cached_source_info_for_objfile): Update.
6890 * objfiles.h (class objfile_compunits): Remove.
6891 (struct objfile) <compunits_range>: New typedef.
6892 (compunits): New method.
6893 * objfiles.c (objfile_relocate1): Update.
6894 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6895 * maint.c (count_symtabs_and_blocks): Update.
6896 * linespec.c (iterate_over_all_matching_symtabs): Update.
6897 * cp-support.c (add_symbol_overload_list_qualified): Update.
6898 * coffread.c (coff_symtab_read): Update.
6899 * ada-lang.c (add_nonlocal_symbols)
6900 (ada_collect_symbol_completion_matches)
6901 (ada_add_global_exceptions): Update.
6902
7e955d83
TT
69032019-01-15 Tom Tromey <tom@tromey.com>
6904
6905 * progspace.h (program_space) <objfiles_safe_range>: New
6906 typedef.
6907 <objfiles_safe>: New method.
6908 * objfiles.h (class all_objfiles_safe): Remove.
6909 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6910 * jit.c (jit_inferior_exit_hook): Update.
6911
2030c079
TT
69122019-01-17 Tom Tromey <tom@tromey.com>
6913
6914 * progspace.h (program_space) <objfiles_range>: New typedef.
6915 <objfiles>: New method.
6916 <objfiles_head>: Rename from objfiles.
6917 (object_files): Update.
6918 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6919 * guile/scm-pretty-print.c
6920 (ppscm_find_pretty_printer_from_objfiles): Update.
6921 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6922 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6923 Update.
6924 * python/py-progspace.c (pspy_get_objfiles): Update.
6925 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6926 Update.
6927 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6928 (objfpy_lookup_objfile_by_build_id): Update.
6929 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6930 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6931 Update.
6932 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6933 (expand_symtab_containing_pc, lookup_objfile_from_block)
6934 (lookup_static_symbol, basic_lookup_transparent_type)
6935 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6936 (find_line_symtab, info_sources_command)
6937 (default_collect_symbol_completion_matches_break_on)
6938 (make_source_files_completion_list, find_main_name): Update.
6939 * symmisc.c (print_symbol_bcache_statistics)
6940 (print_objfile_statistics, maintenance_print_symbols)
6941 (maintenance_print_msymbols, maintenance_print_objfiles)
6942 (maintenance_info_symtabs, maintenance_check_symtabs)
6943 (maintenance_expand_symtabs, maintenance_info_line_tables):
6944 Update.
6945 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6946 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6947 (map_overlay_command, unmap_overlay_command)
6948 (simple_overlay_update, expand_symtabs_matching)
6949 (map_symbol_filenames): Update.
6950 * symfile-debug.c (set_debug_symfile): Update.
6951 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6952 Update.
6953 * source.c (select_source_symtab, forget_cached_source_info):
6954 Update.
6955 * solib.c (solib_read_symbols): Update.
6956 * solib-spu.c (append_ocl_sos): Update.
6957 * psymtab.c (maintenance_print_psymbols)
6958 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6959 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6960 * printcmd.c (info_symbol_command): Update.
6961 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6962 Update.
6963 * objfiles.h (class all_objfiles): Remove.
6964 * objfiles.c (have_partial_symbols, have_full_symbols)
6965 (have_minimal_symbols, qsort_cmp, update_section_map)
6966 (shared_objfile_contains_address_p)
6967 (default_iterate_over_objfiles_in_search_order): Update.
6968 * objc-lang.c (info_selectors_command, info_classes_command)
6969 (find_methods): Update.
6970 * minsyms.c (find_solib_trampoline_target): Update.
6971 * maint.c (maintenance_info_sections)
6972 (maintenance_translate_address, count_symtabs_and_blocks):
6973 Update.
6974 * main.c (captured_main_1): Update.
6975 * linux-thread-db.c (try_thread_db_load_from_pdir)
6976 (has_libpthread): Update.
6977 * linespec.c (iterate_over_all_matching_symtabs)
6978 (search_minsyms_for_name): Update.
6979 * jit.c (jit_find_objf_with_entry_addr): Update.
6980 * hppa-tdep.c (find_unwind_entry)
6981 (hppa_lookup_stub_minimal_symbol): Update.
6982 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6983 Update.
6984 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6985 (elf_gnu_ifunc_resolve_by_got): Update.
6986 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6987 * dwarf-index-write.c (save_gdb_index_command): Update.
6988 * cp-support.c (add_symbol_overload_list_qualified): Update.
6989 * breakpoint.c (create_overlay_event_breakpoint)
6990 (create_longjmp_master_breakpoint)
6991 (create_std_terminate_master_breakpoint)
6992 (create_exception_master_breakpoint): Update.
6993 * blockframe.c (find_pc_partial_function): Update.
6994 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6995 (ada_collect_symbol_completion_matches)
6996 (ada_add_global_exceptions): Update.
6997
776489e0
TT
69982019-01-17 Tom Tromey <tom@tromey.com>
6999
7000 * solib-target.c (lm_info_target_p): Remove typedef. Don't
7001 declare VEC.
7002 (solib_target_parse_libraries): Change return type.
7003 (library_list_start_segment, library_list_start_section)
7004 (library_list_end_library, library_list_start_library); Update.
7005 (solib_target_free_library_list): Remove.
7006 (solib_target_parse_libraries): Remove cleanup. Change return
7007 type.
7008 (solib_target_current_sos): Update.
7009
6471e7d2
TT
70102019-01-17 Tom Tromey <tromey@bapiya>
7011
7012 * valprint.c: Replace "the the" with "the".
7013 * symtab.c: Replace "the the" with "the".
7014 * solib.c: Replace "the the" with "the".
7015 * solib-dsbt.c: Replace "the the" with "the".
7016 * linespec.c: Replace "the the" with "the".
7017 * dwarf2loc.h: Replace "the the" with "the".
7018 * amd64-windows-tdep.c: Replace "the the" with "the".
7019 * aarch64-tdep.c: Replace "the the" with "the".
7020
c24bdb02
KS
70212019-01-16 Keith Seitz <keiths@redhat.com>
7022
7023 PR gdb/23773
7024 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
7025 <builder>: Rename to ..
7026 <m_builder>: ... this and make private.
7027 (dwarf2_cu::get_builder): New method. Change all users of
7028 `builder' to use this method.
7029 (dwarf2_start_symtab): Move to ...
7030 (dwarf2_cu::start_symtab): ... here. Update all callers
7031 (setup_type_unit_groups): Move to ...
7032 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
7033 callers.
7034 (dwarf2_cu::reset_builder): New method.
7035 (process_full_compunit, process_full_type_unit): Use
7036 dwarf2_cu::reset_builder.
7037 (follow_die_offset): Record the ancestor CU if it is different
7038 from the followed DIE's CU.
7039 (follow_die_sig_1): Likewise.
7040
8d64371b
TT
70412019-01-15 Tom Tromey <tom@tromey.com>
7042
7043 * remote.c (class remote_state) <buf>: Now a char_vector.
7044 <buf_size>: Remove.
7045 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
7046 parameter.
7047 (remote_target::getpkt_or_notif_sane_1)
7048 (remote_target::getpkt_sane)
7049 (remote_target::getpkt_or_notif_sane): Likewise.
7050 (class remote_target) <putpkt>: New overload.
7051 (remote_target::read_frame): Change type of "buf_p". Remove
7052 sizeof_p parameter.
7053 (packet_ok): New overload.
7054 (packet_check_result): New overload.
7055 Update all uses.
7056
bb277751
TT
70572019-01-14 Tom Tromey <tom@tromey.com>
7058
7059 * remote-notif.c (handle_notification, remote_notif_ack)
7060 (remote_notif_parse): Make "buf" const.
7061 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
7062 const.
7063 (remote_notif_parse, remote_notif_ack, handle_notification):
7064 Likewise.
7065 * remote.c (remote_notif_stop_parse): Make "buf" const.
7066 (remote_target::remote_parse_stop_reply): Make "buf" const.
7067 (remote_notif_stop_ack): Make "buf" const.
7068
05be00a8
TT
70692019-01-14 Tom Tromey <tom@tromey.com>
7070
7071 * remote.c (remote_console_output): Make parameter const.
7072
491adeca
TT
70732019-01-14 Tom Tromey <tom@tromey.com>
7074
7075 * target-debug.h (target_debug_print_signals): Constify.
7076 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
7077 * procfs.c (procfs_target::pass_signals): Update.
7078 * linux-nat.c (linux_nat_target::pass_signals): Update.
7079 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
7080 * target-delegates.c: Rebuild.
7081 * remote.c (remote_target::program_signals): Update.
7082 (remote_target::pass_signals): Update.
7083 * target.c (target_pass_signals): Constify argument.
7084 (target_program_signals): Likewise.
7085 * target.h (struct target_ops) <pass_signals, program_signals>:
7086 Constify argument.
7087 (target_pass_signals, target_program_signals): Constify argument.
7088
bbd94648
TT
70892019-01-14 Tom Tromey <tom@tromey.com>
7090
7091 PR tui/28819:
7092 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
7093
6f072a10
PFC
70942019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7095
7096 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
7097 field.
7098 * rs6000-tdep.c: Include reggroups.h.
7099 (IS_V_ALIAS_PSEUDOREG): Define.
7100 (rs6000_register_name): Return names for the "vX" aliases.
7101 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
7102 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
7103 aliases. Call default_register_reggroup_p for all other
7104 pseudo-registers.
7105 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
7106 New functions.
7107 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
7108 Handle "vX" aliases.
7109 (v_alias_pseudo_register_collect): New function.
7110 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
7111 (rs6000_gdbarch_init): Initialize "vX" aliases as
7112 pseudo-registers. Restore registration of
7113 rs6000_pseudo_register_reggroup_p with
7114 set_tdesc_pseudo_register_reggroup_p.
7115
1a782351
MF
71162019-01-13 Max Filippov <jcmvbkbc@gmail.com>
7117
7118 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
7119 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
7120 set_gdbarch_num_pseudo_regs.
7121
d73cff18
PW
71222019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7123
7124 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
7125 Remove arg prefixname, add do_set and do_show.
7126 Add member functions set_list and show_list.
7127 * cli/cli-style.c (class cli_style_option): Update accordingly.
7128 (style_set_list): Move to file scope.
7129 (style_show_list): Likewise.
7130 (set_style): Call help_list.
7131 (show_style): Call cmd_show_list.
7132 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
7133 Update to use the new macro.
7134
60a90376
JB
71352019-10-12 Joel Brobecker <brobecker@adacore.com>
7136
7137 * ada-lang.c (_initialize_ada_language): Expand the help text
7138 for the "catch exception" command.
7139
9d7c67bf
PW
71402019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7141
7142 * symtab.c (matching_obj_sections): Initialize obj,
7143 declare it closer to its usage.
7144
7cf47dc4
TT
71452019-01-10 Tom Tromey <tom@tromey.com>
7146
7147 * thread-iter.h (inf_threads_iterator): Use next_iterator.
7148 (basic_inf_threads_range): Remove.
7149 (inf_threads_range, inf_non_exited_threads_range)
7150 (safe_inf_threads_range): Use next_adapter.
7151
d3cb6808
KS
71522019-01-10 Keith Seitz <keiths@redhat.com>
7153
7154 PR gdb/23712
7155 PR symtab/23010
7156 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
7157 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
7158
63a20375
KS
71592019-01-10 Keith Seitz <keiths@redhat.com>
7160
7161 PR gdb/23712
7162 PR symtab/23010
7163 * dictionary.c (pending_to_vector): Remove.
7164 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7165 Remove _1 suffix, replacing functions of the same name. Update
7166 all callers.
7167 (dict_create_hashed, dict_create_hashed_expandable)
7168 (dict_create_linear, dict_create_linear_expandable, dict_free)
7169 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
7170 Make functions static.
7171
b026f593
KS
71722019-01-10 Keith Seitz <keiths@redhat.com>
7173
7174 PR gdb/23712
7175 PR symtab/23010
7176 * dictionary.h (struct dictionary): Replace declaration with
7177 multidictionary.
7178 (dict_create_hashed, dict_create_hashed_expandable)
7179 (dict_create_linear, dict_create_linear_expandable)
7180 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
7181 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
7182 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
7183 taking multidictionary argument.
7184 [ALL_DICT_SYMBOLS]: Update for multidictionary.
7185 * block.h (struct block) <dict>: Change to multidictionary
7186 and rename `multidict'.
7187 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
7188 symmisc.c: Update all dictionary references to multidictionary.
7189
c7748ee9
KS
71902019-01-10 Keith Seitz <keiths@redhat.com>
7191
7192 PR gdb/23712
7193 PR symtab/23010
7194 * dictionary.c: Include unordered_map.
7195 (pending_to_vector): New function.
7196 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7197 Rewrite the non-"_1" functions to take vector instead
7198 of linked list.
7199 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
7200 "new" _1 versions of the same name.
7201 (multidictionary): Define.
7202 (std::hash<enum language): New definition.
7203 (collate_pending_symbols_by_language, mdict_create_hashed)
7204 (mdict_create_hashed_expandable, mdict_create_linear)
7205 (mdict_create_linear_expandable, mdict_free)
7206 (find_language_dictionary, create_new_language_dictionary)
7207 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
7208 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
7209 (mdict_size, mdict_empty): New functions.
7210 * dictionary.h (mdict_iterator): Define.
7211
67aa1f3c
PA
72122019-01-10 Pedro Alves <palves@redhat.com>
7213
7214 * breakpoint.c (read_uploaded_action)
7215 (create_tracepoint_from_upload): Adjust to use
7216 gdb::unique_xmalloc_ptr.
7217 * ctf.c (ctf_write_uploaded_tp):
7218 (SET_ARRAY_FIELD): Use emplace_back.
7219 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
7220 * tracefile-tfile.c (tfile_write_uploaded_tp):
7221 * tracepoint.c (parse_tracepoint_definition): Adjust to use
7222 gdb::unique_xmalloc_ptr.
7223 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
7224 at_string, cond_string, cmd_strings>: Replace char pointers
7225 with gdb::unique_xmalloc_ptr.
7226
2f667667
PA
72272019-01-10 Pedro Alves <palves@redhat.com>
7228
7229 * solib-target.c (library_list_start_library): Don't xstrdup name.
7230
36cb7237
PA
72312019-01-10 Pedro Alves <palves@redhat.com>
7232
7233 * mdebugread.c (parse_partial_symbols): Use
7234 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
7235
da584958
AB
72362019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7237
7238 * linux-fork.c (scoped_switch_fork_info)
7239 <~scoped_switch_fork_info>: Fix incorrect variable name.
7240
1ef8573c
AB
72412019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7242
7243 * linux-fork.c (scoped_switch_fork_info)
7244 <scoped_switch_fork_info>: Make explicit.
7245 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
7246
8d7bcccb
TT
72472019-01-10 Tom Tromey <tom@tromey.com>
7248
7249 * objfiles.h (objfile::reset_psymtabs): Update.
7250 * objfiles.c (objfile::objfile): Update.
7251 * psymtab.h (psymtab_storage::obstack): Update.
7252 (psymtab_storage::m_obstack): Use gdb::optional.
7253 (class psymtab_storage): Update comment. Remove objfile
7254 parameter.
7255 * psymtab.c (psymtab_storage::psymtab_storage): Update.
7256
b596a3c7
TT
72572019-01-10 Tom Tromey <tom@tromey.com>
7258
7259 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
7260 <free_psymtabs>: Now private.
7261 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
7262 (allocate_psymtab): Use new method.
7263
a9342b62
TT
72642019-01-10 Tom Tromey <tom@tromey.com>
7265
7266 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
7267 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
7268 * mdebugread.c (parse_partial_symbols): Use
7269 allocate_dependencies.
7270 * dwarf2read.c (dwarf2_create_include_psymtab): Use
7271 allocate_dependencies.
7272 (process_psymtab_comp_unit_reader)
7273 (build_type_psymtab_dependencies): Likewise.
7274 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
7275
5af70966
TT
72762019-01-10 Tom Tromey <tom@tromey.com>
7277
7278 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
7279 PSYMBOL_SET_LANGUAGE.
7280 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
7281
5923a04c
TT
72822019-01-10 Tom Tromey <tom@tromey.com>
7283
7284 * psymtab.h (psymtab_storage::obstack): New method.
7285 <m_obstack>: Rename from obstack; now private.
7286 * psymtab.c (psymtab_storage): Update.
7287 * dwarf2read.c (create_addrmap_from_index)
7288 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
7289 Update.
7290
6d6a12bf
TT
72912019-01-10 Tom Tromey <tom@tromey.com>
7292
7293 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
7294 * objfiles.h (objfile::reset_psymtabs): New method.
7295
d320c2b5
TT
72962019-01-10 Tom Tromey <tom@tromey.com>
7297
7298 * symmisc.c (print_symbol_bcache_statistics): Update.
7299 (print_objfile_statistics): Update.
7300 * symfile.c (reread_symbols): Update.
7301 * psymtab.h (class psymtab_storage): New.
7302 * psymtab.c (psymtab_storage): New constructor.
7303 (~psymtab_storage): New destructor.
7304 (require_partial_symbols): Update.
7305 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
7306 (find_pc_sect_psymtab, find_pc_sect_psymbol)
7307 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
7308 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
7309 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
7310 (start_psymtab_common, end_psymtab_common)
7311 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
7312 (allocate_psymtab): Update.
7313 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
7314 Update.
7315 (dump_psymtab_addrmap, maintenance_print_psymbols)
7316 (maintenance_check_psymtabs): Update.
7317 (class objfile_psymtabs): Move to objfiles.h.
7318 * psympriv.h (discard_psymtab): Now inline.
7319 (psymtab_discarder::psymtab_discarder): Update.
7320 (psymtab_discarder::~psymtab_discarder): Update.
7321 (ALL_OBJFILE_PSYMTABS): Rewrite.
7322 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
7323 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
7324 Remove fields.
7325 <partial_symtabs>: New field.
7326 (class objfile_psymtabs): Move from psymtab.h. Update.
7327 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
7328 psymbol_cache.
7329 (objfile::~objfile): Don't destroy psymbol_cache.
7330 * mdebugread.c (parse_partial_symbols): Update.
7331 * dwarf2read.c (create_addrmap_from_index)
7332 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7333 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
7334 (add_partial_subprogram, dwarf2_ranges_read): Update.
7335 * dwarf-index-write.c (write_address_map)
7336 (write_one_signatured_type, recursively_write_psymbols)
7337 (class debug_names, class debug_names, write_psymtabs_to_index):
7338 Update.
7339
1d94a5a3
TT
73402019-01-10 Tom Tromey <tom@tromey.com>
7341
7342 * symtab.h (SYMBOL_SET_NAMES): Update.
7343 (symbol_set_names): Update.
7344 (MSYMBOL_SET_NAMES): Update.
7345 * symtab.c (symbol_set_names): Change argument to be an
7346 objfile_per_bfd_storage.
7347 * psymtab.c (add_psymbol_to_bcache): Update.
7348 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
7349
0f14768a
TT
73502019-01-10 Tom Tromey <tom@tromey.com>
7351
7352 * symtab.c (create_demangled_names_hash): Change argument to be an
7353 objfile_per_bfd_storage.
7354 (symbol_set_names): Update.
7355
6eee24ce
TT
73562019-01-10 Tom Tromey <tom@tromey.com>
7357
7358 * xcoffread.c (xcoff_initial_scan): Unconditionally call
7359 init_psymbol_list.
7360 * psymtab.c (init_psymbol_list): Do nothing if already called.
7361 * psympriv.h (init_psymbol_list): Add comment.
7362 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
7363 init_psymbol_list.
7364 * dbxread.c (dbx_symfile_read): Unconditionally call
7365 init_psymbol_list.
7366
75aedd27
TT
73672019-01-10 Tom Tromey <tom@tromey.com>
7368
7369 * xcoffread.c (scan_xcoff_symtab): Update.
7370 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
7371 "where".
7372 * mdebugread.c (parse_partial_symbols)
7373 (handle_psymbol_enumerators): Update.
7374 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
7375 * dbxread.c (read_dbx_symtab): Update.
7376 * psympriv.h (psymbol_placement): New enum.
7377 (add_psymbol_to_list): Update.
7378
939652a5
TT
73792019-01-10 Tom Tromey <tom@tromey.com>
7380
7381 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
7382 static_psymbols parameters.
7383 (scan_xcoff_symtab): Update.
7384 * psymtab.c (start_psymtab_common): Remove global_psymbols and
7385 static_psymbols parameters.
7386 * psympriv.h (start_psymtab_common): Update.
7387 * mdebugread.c (parse_partial_symbols): Update.
7388 * dwarf2read.c (create_partial_symtab): Update.
7389 * dbxread.c (read_dbx_symtab): Update.
7390 (start_psymtab): Remove global_psymbols and static_psymbols
7391 parameters.
7392
baa62830
TT
73932019-01-10 Tom Tromey <tom@tromey.com>
7394
7395 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
7396 * psymtab.c (allocate_psymtab): Add comment.
7397 * psympriv.h (allocate_psymtab): Add comment.
7398 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
7399 initializations.
7400 * dbxread.c (dbx_end_psymtab): Remove some initializations.
7401
0e8f53ba
TT
74022019-01-10 Tom Tromey <tom@tromey.com>
7403
7404 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7405 Don't declare.
7406 * mipsread.c: Include mdebugread.h.
7407 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7408 Declare.
7409 * elfread.c: Include mdebugread.h.
7410
b22a7c6a
TT
74112019-01-09 Tom Tromey <tom@tromey.com>
7412
7413 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
7414 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
7415 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
7416 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
7417 (psym_lookup_symbol, psym_find_last_source_symtab)
7418 (psym_forget_cached_source_info, psym_print_stats)
7419 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
7420 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
7421 (psym_map_matching_symbols, psym_expand_symtabs_matching)
7422 (psym_find_compunit_symtab_by_address)
7423 (maintenance_print_psymbols, maintenance_info_psymtabs)
7424 (maintenance_check_psymtabs): Use ranged for.
7425 * psymtab.h (class objfile_psymtabs): New.
7426 (require_partial_symbols): Return objfile_psymtabs.
7427 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
7428
3b9d3ac2
TT
74292019-01-09 Tom Tromey <tom@tromey.com>
7430
7431 * symfile.c (overlay_invalidate_all, find_pc_overlay)
7432 (find_pc_mapped_section, list_overlays_command)
7433 (map_overlay_command, unmap_overlay_command)
7434 (simple_overlay_update): Use all_objfiles.
7435 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
7436 * printcmd.c (info_symbol_command): Use all_objfiles.
7437 * objfiles.h (ALL_OBJSECTIONS): Remove.
7438 * maint.c (maintenance_translate_address): Use all_objfiles.
7439 * gcore.c (gcore_create_callback): Use all_objfiles.
7440 (objfile_find_memory_regions): Likewise.
7441
8b31193a
TT
74422019-01-09 Tom Tromey <tom@tromey.com>
7443
7444 * symtab.c (find_line_symtab, info_sources_command)
7445 (make_source_files_completion_list): Use objfile_compunits.
7446 * source.c (select_source_symtab): Use objfile_compunits.
7447 * objfiles.h (struct objfile): Update comment.
7448 (ALL_OBJFILES): Remove.
7449 (ALL_FILETABS): Remove.
7450 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
7451 objfile_compunits.
7452
d5da8b3c
TT
74532019-01-09 Tom Tromey <tom@tromey.com>
7454
7455 * symmisc.c (print_objfile_statistics, dump_objfile)
7456 (maintenance_print_symbols): Use compunit_filetabs.
7457 * source.c (forget_cached_source_info_for_objfile): Use
7458 compunit_filetabs.
7459 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
7460 (ALL_FILETABS): Use compunit_filetabs.
7461 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
7462 * coffread.c (coff_symtab_read): Use compunit_filetabs.
7463
5accd1a0
TT
74642019-01-09 Tom Tromey <tom@tromey.com>
7465
7466 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
7467 (compunit_filetabs): New.
7468 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
7469 compunit_filetabs.
7470 (info_sources_command, make_source_files_completion_list): Remove
7471 declaration.
7472 * symmisc.c (print_objfile_statistics, dump_objfile)
7473 (maintenance_print_symbols): Remove declaration.
7474 (maintenance_info_symtabs): Use compunit_filetabs.
7475 (maintenance_info_line_tables): Likewise.
7476 * source.c (select_source_symtab): Change local variable name.
7477 (forget_cached_source_info_for_objfile): Remove declaration.
7478 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
7479 * objfiles.c (objfile_relocate1): Remove declaration.
7480 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7481 declaration.
7482 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
7483 * coffread.c (coff_symtab_read): Remove declaration.
7484 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
7485 compunit_filetabs.
7486
d8aeb77f
TT
74872019-01-09 Tom Tromey <tom@tromey.com>
7488
7489 * symtab.c (lookup_objfile_from_block)
7490 (find_pc_sect_compunit_symtab, search_symbols)
7491 (default_collect_symbol_completion_matches_break_on): Use
7492 objfile_compunits.
7493 * objfiles.h (ALL_COMPUNITS): Remove.
7494 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
7495 * cp-support.c (add_symbol_overload_list_qualified): Use
7496 objfile_compunits.
7497 * ada-lang.c (ada_collect_symbol_completion_matches)
7498 (ada_add_global_exceptions): Use objfile_compunits.
7499
592553c4
TT
75002019-01-09 Tom Tromey <tom@tromey.com>
7501
7502 * source.c (select_source_symtab)
7503 (forget_cached_source_info_for_objfile): Remove declaration.
7504 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7505 declaration.
7506 * maint.c (count_symtabs_and_blocks): Remove declaration.
7507 * cp-support.c (add_symbol_overload_list_qualified): Remove
7508 declaration.
7509 * coffread.c (coff_symtab_read): Remove declaration.
7510 * symtab.c (lookup_symbol_in_objfile_symtabs)
7511 (basic_lookup_transparent_type_1): Use objfile_compunits.
7512 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
7513 (info_sources_command, search_symbols)
7514 (default_collect_symbol_completion_matches_break_on)
7515 (make_source_files_completion_list): Remove declaration.
7516 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
7517 (ada_collect_symbol_completion_matches)
7518 (ada_add_global_exceptions): Remove declaration.
7519 * linespec.c (iterate_over_all_matching_symtabs): Use
7520 objfile_compunits.
7521 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
7522 (class objfile_compunits): New.
7523 (ALL_COMPUNITS): Use objfile_compunits.
7524 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
7525 (maintenance_check_symtabs, maintenance_info_line_tables): Use
7526 objfile_compunits.
7527 * objfiles.c (objfile_relocate1): Use objfile_compunits.
7528
5325b9bf
TT
75292019-01-09 Tom Tromey <tom@tromey.com>
7530
7531 * symtab.c (search_symbols)
7532 (default_collect_symbol_completion_matches_break_on): Use
7533 objfile_msymbols.
7534 * ada-lang.c (ada_lookup_simple_minsym)
7535 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
7536 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
7537 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
7538 objfile_msymbols.
7539 * coffread.c (coff_symfile_read): Use objfile_msymbols.
7540 * symmisc.c (dump_msymbols): Use objfile_msymbols.
7541 * objc-lang.c (find_methods): Use objfile_msymbols.
7542 (info_selectors_command, info_classes_command): Likewise.
7543 * stabsread.c (scan_file_globals): Use objfile_msymbols.
7544 * objfiles.h (class objfile_msymbols): New.
7545 (ALL_OBJFILE_MSYMBOLS): Remove.
7546 (ALL_MSYMBOLS): Remove.
7547
cac85af2
TT
75482019-01-09 Tom Tromey <tom@tromey.com>
7549
7550 * common/next-iterator.h (next_adapter): Add Iterator template
7551 parameter.
7552 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
7553 (class all_objfiles_safe): New.
7554 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
7555 * objfiles.c (put_objfile_before): Update comment.
7556 (add_separate_debug_objfile): Likewise.
7557 (free_all_objfiles): Use all_objfiles_safe.
7558 (objfile_purge_solibs): Likewise.
7559
aed57c53
TT
75602019-01-09 Tom Tromey <tom@tromey.com>
7561
7562 * symtab.c (iterate_over_symtabs, matching_obj_sections)
7563 (expand_symtab_containing_pc, lookup_static_symbol)
7564 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
7565 (find_symbol_at_address, find_line_symtab, find_main_name): Use
7566 all_objfiles.
7567 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
7568 * breakpoint.c (create_overlay_event_breakpoint)
7569 (create_longjmp_master_breakpoint)
7570 (create_std_terminate_master_breakpoint)
7571 (create_exception_master_breakpoint): Use all_objfiles.
7572 * linux-thread-db.c (try_thread_db_load_from_pdir)
7573 (has_libpthread): Use all_objfiles.
7574 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
7575 * linespec.c (iterate_over_all_matching_symtabs)
7576 (search_minsyms_for_name): Use all_objfiles.
7577 * maint.c (maintenance_info_sections): Use all_objfiles.
7578 * main.c (captured_main_1): Use all_objfiles.
7579 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
7580 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
7581 * guile/scm-pretty-print.c
7582 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
7583 * solib-spu.c (append_ocl_sos): Use all_objfiles.
7584 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
7585 (maintenance_print_msymbols): Use all_objfiles.
7586 * source.c (select_source_symtab): Use all_objfiles.
7587 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
7588 * symfile.c (remove_symbol_file_command)
7589 (expand_symtabs_matching, map_symbol_filenames): Use
7590 all_objfiles.
7591 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
7592 all_objfiles.
7593 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
7594 * objc-lang.c (find_methods): Use all_objfiles.
7595 * objfiles.c (have_partial_symbols, have_full_symbols)
7596 (have_minimal_symbols, qsort_cmp)
7597 (default_iterate_over_objfiles_in_search_order): Use
7598 all_objfiles.
7599 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
7600 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
7601 (maintenance_check_psymtabs): Use all_objfiles.
7602 (ALL_PSYMTABS): Remove.
7603 * compile/compile-object-run.c (do_module_cleanup): Use
7604 all_objfiles.
7605 * blockframe.c (find_pc_partial_function): Use all_objfiles.
7606 * cp-support.c (add_symbol_overload_list_qualified): Use
7607 all_objfiles.
7608 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
7609 Use all_objfiles.
7610 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
7611 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
7612 all_objfiles.
7613 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
7614 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
7615 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7616 Uses all_objfiles.
7617 * solib.c (solib_read_symbols): Use all_objfiles
7618
99d89cde
TT
76192019-01-09 Tom Tromey <tom@tromey.com>
7620
7621 * probe.c (parse_probes_in_pspace): Use all_objfiles.
7622 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
7623 all_objfiles.
7624 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
7625 * symmisc.c (print_symbol_bcache_statistics)
7626 (print_objfile_statistics, maintenance_print_objfiles)
7627 (maintenance_info_symtabs, maintenance_check_symtabs)
7628 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
7629 all_objfiles.
7630 * source.c (forget_cached_source_info): Use all_objfiles.
7631 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
7632 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
7633 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
7634 * objfiles.c (update_section_map): Use all_objfiles.
7635 (shared_objfile_contains_address_p): Likewise.
7636 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
7637 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
7638
21708325
TT
76392019-01-09 Tom Tromey <tom@tromey.com>
7640
7641 * common/next-iterator.h: New file.
7642 * objfiles.h (class all_objfiles): New.
7643 (struct objfile_iterator): New.
7644
669e09f6
PW
76452019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7646
7647 * NEWS: Move the description of the changed "frame", "select-frame",
7648 and "info frame" commands to the Changed commands section.
7649
041be526
SM
76502019-01-09 Simon Marchi <simon.marchi@ericsson.com>
7651
7652 * gdbtypes.c (check_stub_method_group): Remove handling of old
7653 mangling schemes.
7654 * linespec.c (find_methods): Likewise.
7655 * stabsread.c (read_member_functions): Likewise.
7656 * valops.c (search_struct_method): Likewise.
7657 (value_struct_elt_for_reference): Likewise.
7658 * NEWS: Mention this change.
7659
0e2a2133
AB
76602019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
7663 print_source_lines.
7664 * source.c (print_source_lines_base): Update line number check.
7665 (print_source_lines): New function.
7666 (source_lines_range::source_lines_range): New function.
7667 * source.h (class source_lines_range): New class.
7668 (print_source_lines): New declaration.
7669
1055a3b4
PW
76702019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7671
7672 * linespec.c (linespec_state_destructor): Free self->canonical_names.
7673
cfeadda5
TT
76742019-01-08 Tom Tromey <tom@tromey.com>
7675 Simon Marchi <simon.marchi@ericsson.com>
7676
7677 PR gdb/24060
7678 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
7679 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
7680 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7681 * f-exp.y (DOLLAR_VARIABLE): Likewise.
7682 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
7683 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7684
583068ca
AB
76852019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7686
7687 * source.c (select_source_symtab): Move header comment to
7688 declaration in source.h.
7689 (forget_cached_source_info_for_objfile): Likewise.
7690 (forget_cached_source_info): Likewise.
7691 (identify_source_line): Likewise.
7692 * source.h (identify_source_line): Move declaration from symtab.h
7693 and add comment from source.c
7694 (print_source_lines): Likewise.
7695 (forget_cached_source_info_for_objfile): Likewise.
7696 (forget_cached_source_info): Likewise.
7697 (select_source_symtab): Likewise.
7698 (enum print_source_lines_flag): Move definition from symtab.h.
7699 * symtab.h (identify_source_line): Move declaration to source.h.
7700 (print_source_lines): Likewise.
7701 (forget_cached_source_info_for_objfile): Likewise.
7702 (forget_cached_source_info): Likewise.
7703 (select_source_symtab): Likewise.
7704 (enum print_source_lines_flag): Move definition to source.h.
7705 * tui/tui-hooks.c: Add 'source.h' include.
7706
ec98a4ad
AB
77072019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7708
7709 * source.c (print_source_lines_base): Handle requests to print
7710 reverse line number sequences, and guard against empty lines
7711 string.
7712
62ea19c1
AB
77132019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7714
7715 * source.c (print_source_lines_base): Fix skip of '\r' if next
7716 character is '\n'.
7717
9d30e1fd
TT
77182019-01-06 Tom Tromey <tom@tromey.com>
7719
7720 * c-exp.y (struct c_parse_state) <macro_original_text,
7721 expansion_obstack>: New member.
7722 (macro_original_text, expansion_obstack): Remove globals.
7723 (scan_macro_expansion, scanning_macro_expansion)
7724 (finished_macro_expansion): Update.
7725 (scan_macro_cleanup): Remove.
7726 (yylex, c_parse): Update.
7727
c65bac38
TT
77282019-01-06 Tom Tromey <tom@tromey.com>
7729
7730 * c-exp.y (struct c_parse_state) <strings>: New member.
7731 (operator_stoken): Update.
7732
02e12e38
TT
77332019-01-06 Tom Tromey <tom@tromey.com>
7734
7735 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7736 (union type_stack_elt) <typelist_val>: Now a pointer to
7737 std::vector.
7738 (type_stack_cleanup): Don't declare.
7739 (push_typelist): Update.
7740 * parse.c (pop_typelist): Return a std::vector.
7741 (push_typelist): Take a std::vector.
7742 (follow_types): Update. Do not free args.
7743 (type_stack_cleanup): Remove.
7744 * c-exp.y (struct c_parse_state): New.
7745 (cpstate): New global.
7746 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7747 (nonempty_typelist): Update.
7748 (func_mod): Create a new vector.
7749 (c_parse): Create a c_parse_state.
7750 (check_parameter_typelist): Do not delete params.
7751 (function_method): Update. Do not delete type_list.
7752
f097f5ad
TT
77532019-01-06 Tom Tromey <tom@tromey.com>
7754
7755 PR gdb/28155:
7756 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7757 check_typedef.
7758 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7759 (print_return_value): Likewise.
7760
d2adf9f1
TT
77612019-01-05 Tom Tromey <tom@tromey.com>
7762
7763 * contrib/cleanup_check.py: Remove.
7764 * contrib/gcc-with-excheck: Remove.
7765 * contrib/exsummary.py: Remove.
7766 * contrib/excheck.py: Remove.
7767
2eab46b1
JB
77682019-01-05 Joel Brobecker <brobecker@adacore.com>
7769
7770 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7771 NULL. Initialize tpprev to NULL instead of assigning it
7772 to NULL on the next statement.
7773 * windows-nat.c (windows_delete_thread): Remove check for
7774 main_thread_id before printing thread exit notifications.
7775 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7776 Remove thread ID check against main_thread_id.
7777 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7778 windows_delete_thread.
7779 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7780
48c5e7e2
TT
77812019-01-04 Tom Tromey <tom@tromey.com>
7782
7783 * compile/compile.c (_initialize_compile): Use upper case for
7784 metasyntactic variables.
7785 * symmisc.c (_initialize_symmisc): Use upper case for
7786 metasyntactic variables.
7787 * psymtab.c (_initialize_psymtab): Use upper case for
7788 metasyntactic variables.
7789 * demangle.c (demangle_command): Use upper case for metasyntactic
7790 variables.
7791 (_initialize_demangler): Likewise.
7792 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7793 variables.
7794
986041cd
TT
77952019-01-03 Tom Tromey <tom@tromey.com>
7796
7797 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7798
7c711119
TT
77992019-01-03 Tom Tromey <tom@tromey.com>
7800
7801 * python/py-symtab.c (salpy_str): Update.
7802 (struct salpy_sal_object) <symtab>: Now a PyObject.
7803 (salpy_dealloc): Update.
7804 (del_objfile_sal): Use gdbpy_ref.
7805
1b20edf0
TT
78062019-01-03 Tom Tromey <tom@tromey.com>
7807
7808 * python/py-type.c (convert_field): Use new_reference. Return
7809 gdbpy_ref.
7810 (make_fielditem): Return gdbpy_ref.
7811 (typy_fields): Update.
7812 (typy_getitem): Update.
7813 (field_name): Return gdbpy_ref. Use new_reference.
7814 (typy_iterator_iternext): Update.
7815
ea41325b
TT
78162019-01-03 Tom Tromey <tom@tromey.com>
7817
7818 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7819
2a3c71d6
TT
78202019-01-03 Tom Tromey <tom@tromey.com>
7821
7822 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7823 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7824 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7825 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7826 (pspy_set_type_printers): Likewise.
7827 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7828 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7829 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7830 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7831 (objfpy_set_type_printers): Likewise.
7832
5c329e6a
TT
78332019-01-03 Tom Tromey <tom@tromey.com>
7834
7835 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7836 (gdbpy_print_stack): Use gdbpy_err_fetch.
7837 * python/python-internal.h (class gdbpy_err_fetch): New class.
7838 (class gdbpy_enter) <m_error_type, m_error_value,
7839 m_error_traceback>: Remove.
7840 <m_error>: New member.
7841 (gdbpy_exception_to_string): Don't declare.
7842 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7843 * python/py-value.c (convert_value_from_python): Use
7844 gdbpy_err_fetch.
7845 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7846 gdbpy_exception_to_string.
7847 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7848 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7849 gdbpy_err_fetch.
7850
169bb27b
AB
78512019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7852
7853 * linux-nat.c (delete_lwp_cleanup): Delete.
7854 (struct lwp_deleter): New struct.
7855 (lwp_info_up): New typedef.
7856 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7857 lwp_info_up.
7858
a07c8880
AB
78592019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7860
7861 * linux-fork.c (class scoped_switch_fork_info): New class.
7862 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7863
26089c49
AB
78642019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7865
7866 * valops.c (find_overload_match): Remove use of null_cleanup, and
7867 calls to do_cleanups.
7868
06d3e5b0
AB
78692019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7870
7871 * compile/compile-cplus-types.c
7872 (compile_cplus_instance::decl_name): Handle changes to
7873 cp_func_name.
7874 * cp-support.c (cp_func_name): Update header comment, update
7875 return type.
7876 * cp-support.h (cp_func_name): Update return type in declaration.
7877 * valops.c (find_overload_match): Move temp_func local to top
7878 level of function and change its type. Use temp_func to hold and
7879 delete temporary string obtained from cp_func_name.
7880
66644cd3
AB
78812019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7882
7883 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7884 gdb::char_vector, remove cleanup, and update uses of `msg`.
7885
592d8c0a
JW
78862019-01-03 Jim Wilson <jimw@sifive.com>
7887
7888 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7889
c55d06ec
TT
78902019-01-02 Tom Tromey <tom@tromey.com>
7891
7892 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7893 (tdesc_parse_xml): Remove cleanups.
7894 * target-descriptions.h (make_cleanup_free_target_description):
7895 Don't declare.
7896 (target_desc_deleter): New struct.
7897 (target_desc_up): New typedef.
7898 * target-descriptions.c (target_desc_deleter::operator()): Rename
7899 from free_target_description.
7900 (make_cleanup_free_target_description): Remove.
7901
3a6ae42d
TT
79022019-01-02 Tom Tromey <tom@tromey.com>
7903
7904 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7905 constructor, destructor.
7906 (linespec_parser): Remove typedef.
7907 (~linespec_parser): Rename from linespec_parser_delete.
7908 (linespec_lex_to_end, linespec_complete_label)
7909 (linespec_complete): Update.
7910 (decode_line_full): Remove cleanups.
7911 (decode_line_1): Update.
7912
61fd3e73
TT
79132019-01-02 Tom Tromey <tom@tromey.com>
7914
7915 * python/python-internal.h (inferior_to_inferior_object): Change
7916 return type.
7917 * python/py-exitedevent.c (create_exited_event_object): Update.
7918 * python/py-inferior.c (inferior_to_inferior_object): Return
7919 gdbpy_ref.
7920 (python_new_inferior, python_inferior_deleted)
7921 (thread_to_thread_object, delete_thread_object)
7922 (build_inferior_list, gdbpy_selected_inferior): Update.
7923 * python/py-infthread.c (create_thread_object): Update. Also fail
7924 if inferior_to_inferior_object fails.
7925
d20172fc
SM
79262019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7927
7928 * inferior.h (class inferior) <displaced_step_state>: New field.
7929 * infrun.h (struct displaced_step_state): Move here from
7930 infrun.c. Initialize fields, add constructor.
7931 <inf>: Remove field.
7932 <reset>: New method.
7933 * infrun.c (struct displaced_step_inferior_state): Move to
7934 infrun.h.
7935 (displaced_step_inferior_states): Remove.
7936 (get_displaced_stepping_state): Adust.
7937 (displaced_step_in_progress_any_inferior): Adjust.
7938 (displaced_step_in_progress_thread): Adjust.
7939 (displaced_step_in_progress): Adjust.
7940 (add_displaced_stepping_state): Remove.
7941 (get_displaced_step_closure_by_addr): Adjust.
7942 (remove_displaced_stepping_state): Remove.
7943 (infrun_inferior_exit): Call displaced_step_state.reset.
7944 (use_displaced_stepping): Don't check for NULL.
7945 (displaced_step_prepare_throw): Call
7946 get_displaced_stepping_state.
7947 (displaced_step_fixup): Don't check for NULL.
7948 (prepare_for_detach): Don't check for NULL.
7949
e3319240
PW
79502019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7951
7952 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7953 in case of call that did not complete.
7954
5d36dfb9
AU
79552019-01-02 Andrey Utkin <autkin@undo.io>
7956
7957 * symfile.c (find_separate_debug_file): Fix search of debug files for
7958 remote debuggee.
7959
8833fbf0
TT
79602019-01-02 Tom Tromey <tom@tromey.com>
7961
7962 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7963 indentation.
7964 * python/py-frame.c (frapy_older): Remove cast.
7965 (frapy_newer): Likewise.
7966 * python/py-breakpoint.c (local_setattro): Remove cast.
7967 * python/py-arch.c (archpy_name): Remove local variable.
7968 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7969
4ada3dfd
JB
79702019-01-02 Joel Brobecker <brobecker@adacore.com>
7971
7972 * unittests/basic_string_view/element_access/char/empty.cc:
7973 Fix year range in copyright header.
7974
113b7b81
AB
79752019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7976
7977 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7978 Delete.
7979 <operator==>: Update with for removed field.
7980 <hash>: Likewise.
7981 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7982 <isa_features>: ...this.
7983 <abi_features>: New field.
7984 (riscv_isa_flen): Update comment.
7985 (riscv_abi_xlen): New declaration.
7986 (riscv_abi_flen): New declaration.
7987 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7988 isa_features.
7989 (riscv_abi_xlen): New function.
7990 (riscv_isa_flen): Update to get answer from isa_features.
7991 (riscv_abi_flen): New function.
7992 (riscv_has_fp_abi): Update to get answer from abi_features.
7993 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7994 xlen and flen.
7995 (riscv_call_info) <xlen, flen>: Update comment.
7996 (riscv_call_arg_struct): Remove invalid assertions
7997 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7998 is removed.
7999 (riscv_gdbarch_init): Gather isa features and abi features
8000 separately, ensure both match on the gdbarch when reusing an old
8001 gdbarch. Relax an error check to allow 32-bit abi float to run on
8002 a target with 64-bit float hardware.
8003
b18ca514
PW
80042019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8005
8006 * source.c (search_command_helper): Stop reverse search
8007 when line 1 has been searched.
8008
ec70d8db
PW
80092019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8010
8011 * record-full.c (record_full_base_target::close): Rewrite
8012 record_full_core_buf_list free logic.
8013
5b38f9c1
PW
80142019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8015
8016 * break-catch-syscall.c (print_one_catch_syscall): xfree
8017 the last text.
8018
66d91b39
JB
80192019-01-01 Joel Brobecker <brobecker@adacore.com>
8020
8021 * top.c (print_gdb_version): Update Copyright year in version
8022 message.
8023
42a4f53d
JB
80242019-01-01 Joel Brobecker <brobecker@adacore.com>
8025
8026 Update copyright year range in all GDB files.
8027
7e955d83 80282019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 8029
5bbd631d 8030 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 8031
5bbd631d 8032For older changes see ChangeLog-2018.
c906108c
SS
8033\f
8034Local Variables:
8035mode: change-log
8036left-margin: 8
8037fill-column: 74
8038version-control: never
57da7796 8039coding: utf-8
c906108c 8040End:
5bbd631d 8041
This page took 2.684221 seconds and 4 git commands to generate.