PR24623, DWARF errors
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6405cd73
TT
12019-08-13 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4 Remove.
5 * tui/tui-data.c (tui_initialize_static_data): Update.
6
5216580d
TT
72019-08-13 Tom Tromey <tom@tromey.com>
8
9 * tui/tui-winsource.h (struct tui_exec_info_window)
10 <~tui_exec_info_window, maybe_allocate_content, get_content,
11 m_content>: Remove.
12 (struct tui_source_window_base) <set_exec_info_content,
13 show_exec_info_content>: Don't declare.
14 * tui/tui-winsource.c
15 (tui_exec_info_window::maybe_allocate_content): Remove.
16 (tui_source_window_base::update_exec_info): Rename from
17 set_exec_info_content.
18 (tui_source_window_base::show_exec_info_content)
19 (tui_source_window_base::update_exec_info): Remove.
20
93858ad3
TT
212019-08-13 Tom Tromey <tom@tromey.com>
22
23 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
24 declare.
25 * tui/tui-winsource.c (tui_update_source_window_as_is)
26 (tui_update_source_windows_with_addr, tui_erase_source_content):
27 Update.
28 (tui_clear_exec_info_content): Remove.
29
e321e7ce
TT
302019-08-13 Tom Tromey <tom@tromey.com>
31
32 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
33 declare.
34 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
35 call tui_erase_exec_info_content.
36 (tui_clear_exec_info_content): Rename from
37 tui_erase_exec_info_content.
38 (tui_clear_exec_info_content): Delete.
39
8270ac62
TT
402019-08-13 Tom Tromey <tom@tromey.com>
41
42 * tui/tui-winsource.h (struct tui_source_window_base)
43 <show_exec_info_content>: Declare.
44 (tui_show_exec_info_content): Don't declare.
45 * tui/tui-winsource.c
46 (tui_source_window_base::show_exec_info_content): Rename from
47 tui_show_exec_info_content.
48 (tui_source_window_base::update_exec_info): Update.
49
7b56485d
TT
502019-08-13 Tom Tromey <tom@tromey.com>
51
52 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
53 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
54 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
55 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
56 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
57 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
58 ... here.
59
7ba913dc
TT
602019-08-13 Tom Tromey <tom@tromey.com>
61
62 * tui/tui-winsource.h (struct tui_source_window_base)
63 <update_exec_info>: Declare.
64 (tui_update_exec_info): Don't declare.
65 * tui/tui-winsource.c (tui_update_source_window_as_is)
66 (tui_source_window_base::refresh_all)
67 (tui_update_all_breakpoint_info): Update.
68 (tui_source_window_base::update_exec_info): Rename from
69 tui_update_exec_info.
70 * tui/tui-stack.c (tui_show_frame_info): Update.
71
37a4a131
TT
722019-08-13 Tom Tromey <tom@tromey.com>
73
74 * tui/tui-winsource.h (struct tui_source_window_base)
75 <set_exec_info_content>: Declare.
76 (tui_set_exec_info_content): Don't declare.
77 * tui/tui-winsource.c
78 (tui_source_window_base::set_exec_info_content): Rename from
79 tui_set_exec_info_content.
80 (tui_update_exec_info): Update.
81
0bd27e07
TT
822019-08-13 Tom Tromey <tom@tromey.com>
83
84 * tui/tui-winsource.h (struct tui_source_window_base)
85 <show_source_content>: Declare.
86 (tui_show_source_content): Don't declare.
87 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
88 (tui_source_window_base::show_source_content): Rename from
89 tui_show_source_content.
90 (tui_source_window_base::refresh_all): Update.
91 * tui/tui-layout.c (show_source_disasm_command)
92 (show_source_or_disasm_and_command): Update.
93
b4ef5aeb
TT
942019-08-13 Tom Tromey <tom@tromey.com>
95
96 * tui/tui-winsource.c (tui_erase_source_content)
97 (tui_show_source_content, tui_source_window_base::refresh_all):
98 Update.
99 * tui/tui-wingeneral.h
100 (tui_check_and_display_highlight_if_needed): Don't declare.
101 * tui/tui-wingeneral.c
102 (tui_win_info::check_and_display_highlight_if_needed): Rename from
103 check_and_display_highlight_if_needed.
104 * tui/tui-win.c (tui_rehighlight_all)
105 (tui_win_info::make_visible_with_new_height): Update.
106 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
107 (tui_data_window::erase_data_content)
108 (tui_data_window::display_all_data): Update.
109 * tui/tui-data.h (struct tui_win_info)
110 <check_and_display_highlight_if_needed>: Declare.
111
fede5273
TT
1122019-08-13 Tom Tromey <tom@tromey.com>
113
114 * tui/tui-win.c (tui_resize_all): Call
115 tui_delete_invisible_windows.
116 * tui/tui-layout.c (show_layout): Call
117 tui_delete_invisible_windows.
118 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
119 * tui/tui-data.c (tui_delete_invisible_windows): New function.
120
22c3f490
TT
1212019-08-13 Tom Tromey <tom@tromey.com>
122
123 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
124 tui_add_win_to_layout.
125
16cb7910
TT
1262019-08-13 Tom Tromey <tom@tromey.com>
127
128 * tui/tui-layout.h (tui_default_win_height): Don't declare.
129 * tui/tui-layout.c (tui_default_win_height): Now static.
130
cc0c3ffb
TT
1312019-08-13 Tom Tromey <tom@tromey.com>
132
133 * tui/tui-layout.c (show_layout): Unify all layout cases into a
134 single switch.
135 (show_source_disasm_command, show_source_or_disasm_and_command):
136 Don't check current layout.
137
3f3ffe54
TT
1382019-08-13 Tom Tromey <tom@tromey.com>
139
140 * tui/tui-wingeneral.c (make_all_visible): Remove.
141 (tui_make_all_invisible): Simplify.
142 * tui/tui-layout.c (tui_make_all_invisible): Move from
143 tui-wingeneral.c; simplify.
144 (show_layout): Hoist call to tui_make_all_invisible.
145 (show_data): Don't call tui_make_all_invisible.
146
69258091
TT
1472019-08-13 Tom Tromey <tom@tromey.com>
148
149 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
150 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
151
62cf57fe
TT
1522019-08-13 Tom Tromey <tom@tromey.com>
153
154 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
155 tui-data.c.
156 (show_source_disasm_command, show_data)
157 (show_source_or_disasm_and_command): Don't use
158 tui_set_current_layout_to.
159 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
160 * tui/tui-data.c (current_layout, tui_current_layout): Move to
161 tui-layout.c.
162 (tui_set_current_layout_to): Remove.
163
2afade5d
TT
1642019-08-13 Tom Tromey <tom@tromey.com>
165
166 * tui/tui-layout.c (tui_set_layout): Update.
167 * tui/tui-data.h (struct tui_layout_def): Remove.
168 (tui_layout_def): Don't declare.
169 * tui/tui-data.c (layout_def): Remove.
170 (tui_layout_def): Remove.
171
a3504e96
TT
1722019-08-13 Tom Tromey <tom@tromey.com>
173
174 * tui/tui-winsource.h (struct tui_source_window_base)
175 <clear_detail>: No longer "override".
176 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
177 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
178 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
179 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
180 Remove.
181 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
182
29c92911
TT
1832019-08-13 Tom Tromey <tromey@adacore.com>
184
185 * tracepoint.c: Don't include readline.h or history.h.
186
86c6b807
TT
1872019-08-12 Tom Tromey <tom@tromey.com>
188
189 * configure: Rebuild.
190 * configure.ac: Check for readline 7.
191 * NEWS: Mention readline 7 requirement.
192 * README: Update.
193
5db2718c
TT
1942019-08-12 Tom Tromey <tom@tromey.com>
195
196 * mingw-hdep.c (gdb_select): Remove readline hack.
197
dac36daf
PFC
1982019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
199
200 * blockframe.c (find_pc_partial_function): Set *block to nullptr
201 when the function fails.
202
1022c627
AA
2032019-08-09 Andreas Arnez <arnez@linux.ibm.com>
204
205 * s390-tdep.c (s390_type_align): New function.
206 (s390_gdbarch_init): Set it as type_align gdbarch method.
207
eba4caf2
TV
2082019-08-09 Tom de Vries <tdevries@suse.de>
209
210 PR gdb/24591
211 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
212 pc_low with relocation offset.
213
123cd851
TT
2142019-08-07 Tom Tromey <tromey@adacore.com>
215
216 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
217 (print_frame_args): Update.
218 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
219 Update.
220 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
221 * frame.h (struct frame_arg): Add initializers.
222 <error>: Now a unique_xmalloc_ptr.
223
3d31bc39
AH
2242019-08-07 Alan Hayward <alan.hayward@arm.com>
225
226 * NEWS: Expand the Pointer Authentication entry.
227 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
228 (aarch64_frame_unmask_lr): ... to this.
229 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
230 Call aarch64_frame_unmask_lr.
231 * frame.c (struct frame_info): Add "masked" variable.
232 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
233 (fprint_frame): Check for masked pc.
234 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
235 declarations.
236 * python/py-framefilter.c (py_print_frame): Check for masked pc.
237 * stack.c (print_frame): Check for masked pc.
238
0cf9feb9
TT
2392019-08-06 Tom Tromey <tom@tromey.com>
240
241 * stabsread.c (patch_block_stabs, read_one_struct_field)
242 (read_enum_type): Use obstack_strndup.
243 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
244 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
245 * dwarf2read.c (guess_full_die_structure_name)
246 (anonymous_struct_prefix): Use obstack_strndup.
247 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
248 * c-exp.y (yylex): Use obstack_strndup.
249 * ada-exp.y (write_object_renaming, write_ambiguous_var)
250 (write_var_or_type): Use obstack_strndup.
251
efba19b0
TT
2522019-08-06 Tom Tromey <tom@tromey.com>
253
254 * symfile.c (reread_symbols): Use obstack_strdup.
255 * stabsread.c (read_type): Use obstack_strdup.
256 * gdb_obstack.h (obstack_strdup): New overload.
257 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
258 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
259 (dwarf2_canonicalize_name): Use obstack_strdup.
260 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
261 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
262 Use obstack_strdup.
263
f25102f7
TT
2642019-08-06 Tom Tromey <tom@tromey.com>
265
266 * gdb_obstack.h (obstack_strdup): Define.
267 * gdb_obstack.c (obstack_strdup): Don't define.
268
021887d8
TT
2692019-08-06 Tom Tromey <tom@tromey.com>
270
271 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
272 obstack_strdup.
273 * typeprint.c (typedef_hash_table::find_global_typedef): Use
274 obstack_strdup.
275 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
276 * stabsread.c (common_block_start): Use obstack_strdup.
277 * objfiles.c (set_objfile_main_name, objfile): Use
278 obstack_strdup.
279 * namespace.c (add_using_directive): Use obstack_strdup.
280 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
281 * jit.c (finalize_symtab): Use obstack_strdup.
282 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
283 (guess_partial_die_structure_name, partial_die_info::fixup)
284 (dwarf2_name): Use obstack_strdup.
285 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
286 obstack_strdup.
287 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
288 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
289 obstack_strdup.
290 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
291
d2834edc
PW
2922019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
293
294 * unittests/help-doc-selftests.c: New file.
295 * Makefile.in: Add the new file.
296
590042fc
PW
2972019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
298
299 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
300 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
301 the full first line, except when FOR_VALUE_PREFIX. In this case,
302 the trailing '.' is not output, and the first character is uppercased.
303 (print_help_for_command): Update call to print_doc_line.
304 (print_doc_of_command): Likewise.
305 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
306 * cli/cli-option.c (append_indented_doc): Do not append newline.
307 (build_help_option): Append newline after first appended_indented_doc
308 only if a second call is done.
309 (build_help): Append 2 new lines before each option, except the first
310 one.
311 * compile/compile.c (_initialize_compile): Add new lines after
312 %OPTIONS%, when not at the end of the help.
313 Change help doc or code
314 producing the help doc to respect the invariants.
315 * maint-test-options.c (_initialize_maint_test_options): Likewise.
316 Also removed the new line after 'Options:', as all other commands
317 do not put an empty line between 'Options:' and the first option.
318 * printcmd.c (_initialize_printcmd): Likewise.
319 * stack.c (_initialize_stack): Likewise.
320 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
321 incorrectly telling COMMAND is optional.
322 * ada-lang.c (_initialize_ada_language): Change help doc or code
323 producing the help doc to respect the invariants.
324 * ada-tasks.c (_initialize_ada_tasks): Likewise.
325 * breakpoint.c (_initialize_breakpoint): Likewise.
326 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
327 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
328 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
329 * cli/cli-style.c (cli_style_option::add_setshow_commands,
330 _initialize_cli_style): Likewise.
331 * corelow.c (core_target_info): Likewise.
332 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
333 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
334 * filesystem.c (_initialize_filesystem): Likewise.
335 * frame.c (_initialize_frame): Likewise.
336 * gnu-nat.c (add_task_commands): Likewise.
337 * infcall.c (_initialize_infcall): Likewise.
338 * infcmd.c (_initialize_infcmd): Likewise.
339 * interps.c (_initialize_interpreter): Likewise.
340 * language.c (_initialize_language): Likewise.
341 * linux-fork.c (_initialize_linux_fork): Likewise.
342 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
343 * maint.c (_initialize_maint_cmds): Likewise.
344 * memattr.c (_initialize_mem): Likewise.
345 * printcmd.c (_initialize_printcmd): Likewise.
346 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
347 _RegEx): Likewise.
348 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
349 * record-btrace.c (_initialize_record_btrace): Likewise.
350 * record-full.c (_initialize_record_full): Likewise.
351 * record.c (_initialize_record): Likewise.
352 * regcache-dump.c (_initialize_regcache_dump): Likewise.
353 * regcache.c (_initialize_regcache): Likewise.
354 * remote.c (add_packet_config_cmd, init_remote_threadtests,
355 _initialize_remote): Likewise.
356 * ser-tcp.c (_initialize_ser_tcp): Likewise.
357 * serial.c (_initialize_serial): Likewise.
358 * skip.c (_initialize_step_skip): Likewise.
359 * source.c (_initialize_source): Likewise.
360 * stack.c (_initialize_stack): Likewise.
361 * symfile.c (_initialize_symfile): Likewise.
362 * symtab.c (_initialize_symtab): Likewise.
363 * target-descriptions.c (_initialize_target_descriptions): Likewise.
364 * top.c (init_main): Likewise.
365 * tracefile-tfile.c (tfile_target_info): Likewise.
366 * tracepoint.c (_initialize_tracepoint): Likewise.
367 * tui/tui-win.c (_initialize_tui_win): Likewise.
368 * utils.c (add_internal_problem_command): Likewise.
369 * valprint.c (value_print_option_defs): Likewise.
370
404f2902
FCE
3712019-08-06 Frank Ch. Eigler <fche@redhat.com>
372
373 PR build/24886
374 * configure.ac: Drop enable-libmcheck support.
375 * configure, config.in: Rebuild.
376 * libmcheck.m4: Remove.
377 * acinclude.m4: Don't include it.
378 * Makefile.in: Don't distribute it.
379 * top.c (print_gdb_configuration): Don't mention it.
380
046bebe1
TT
3812019-08-06 Tom Tromey <tom@tromey.com>
382
383 * utils.c (set_output_style): Sometimes pass stream to
384 emit_style_escape.
385 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
386 * record-btrace.c (btrace_insn_history): Update.
387 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
388 method.
389 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
390 Update initializers.
391 <m_uiout>: New field.
392 <m_di>: Move lower.
393 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
394 Remove "uiout" parameter.
395 (dump_insns): Update.
396 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
397 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
398
ddbcedf5
CB
3992019-08-06 Christian Biesinger <cbiesinger@google.com>
400
401 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
402 (error_in_psymtab_expansion): Likewise.
403 (lookup_symbol_via_quick_fns): Likewise.
404 (basic_lookup_transparent_type_quick): Likewise.
405 (basic_lookup_transparent_type_1): Likewise.
406
b08b16c8
TT
4072019-08-06 Tom Tromey <tromey@adacore.com>
408
409 * source.c (last_source_error): Now bool.
410 (print_source_lines_base): Make "noprint" bool. Only open
411 source file when last_source_visited changes.
412
cb44333d
TT
4132019-08-06 Tom Tromey <tromey@adacore.com>
414
415 * annotate.c (annotate_source_line): Use g_source_cache.
416 * source-cache.c (source_cache::get_plain_source_lines): Change
417 parameters. Populate m_offset_cache.
418 (source_cache::ensure): New method.
419 (source_cache::get_line_charpos): New method.
420 (extract_lines): Move lower. Change parameters.
421 (source_cache::get_source_lines): Move lower.
422 * source-cache.h (class source_cache): Update comment.
423 <get_line_charpos>: New method.
424 <get_source_lines>: Update comment.
425 <clear>: Clear m_offset_cache.
426 <get_plain_source_lines>: Change parameters.
427 <ensure>: New method
428 <m_offset_cache>: New member.
429 * source.c (forget_cached_source_info_for_objfile): Update.
430 (info_source_command): Use g_source_cache.
431 (find_source_lines, open_source_file_with_line_charpos): Remove.
432 (print_source_lines_base, search_command_helper): Use g_source_cache.
433 * source.h (open_source_file_with_line_charpos): Don't declare.
434 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
435 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
436 Use g_source_cache.
437
872dceaa
TT
4382019-08-06 Tom Tromey <tromey@adacore.com>
439
440 * source-cache.c (source_cache::get_plain_source_lines):
441 Remove "first_line" and "last_line" parameters.
442 (source_cache::get_source_lines): Cache plain text.
443 * source-cache.h (class source_cache)
444 <get_plain_source_lines>: Update.
445
269249d9
TT
4462019-08-06 Tom Tromey <tromey@adacore.com>
447
448 * source-cache.c (extract_lines): No longer a method.
449 Changed type of parameter. Include final newline.
450 (selftests::extract_lines_test): New function.
451 (_initialize_source_cache): Likewise.
452 * source-cache.h (class source_cache)
453 <extract_lines>: Don't declare.
454
c0e8dcd8
TT
4552019-08-06 Tom Tromey <tromey@adacore.com>
456
457 * breakpoint.c (init_breakpoint_sal): Update.
458 (breakpoint): Update.
459 * breakpoint.h (struct breakpoint) <filter>: Now a
460 unique_xmalloc_ptr.
461
0b27c27d
CB
4622019-08-05 Christian Biesinger <cbiesinger@google.com>
463
464 * NEWS: Mention dictionary access on blocks.
465 * python/py-block.c (blpy_getitem): New function.
466 (block_object_as_mapping): New struct.
467 (block_object_type): Use new struct for tp_as_mapping field.
468
4ee94178
CB
4692019-08-05 Christian Biesinger <cbiesinger@google.com>
470
471 * objfiles.h (objfile): Add a comment describing partial symbols.
472
8abfcabc
TT
4732019-08-05 Tom Tromey <tromey@adacore.com>
474
475 * compile/compile.c (_initialize_compile): Use _(), not N_().
476 * thread.c (_initialize_thread): Use _(), not N_().
477 * stack.c (_initialize_stack): Use _(), not N_().
478 * printcmd.c (_initialize_printcmd): Use _(), not N_().
479
2b79f376
SM
4802019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * dwarf2read.c (struct dw2_symtab_iterator):
483 <want_specific_block>: Remove.
484 <block_index>: Change type to gdb::optional.
485 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
486 change type of BLOCK_INDEX parameter to gdb::optional.
487 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
488 (dw2_lookup_symbol): Don't pass argument for
489 WANT_SPECIFIC_BLOCK.
490 (dw2_expand_symtabs_for_function): Don't pass argument for
491 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
492 (class dw2_debug_names_iterator)
493 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
494 parameter, change BLOCK_INDEX type to gdb::optional.
495 <m_want_specific_block>: Remove.
496 <m_block_index>: Change type to gdb::optional.
497 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
498 gdb::optional. Re-write in function of gdb::optional.
499 (dw2_debug_names_lookup_symbol): Don't pass argument for
500 WANT_SPECIFIC_BLOCK.
501 (dw2_debug_names_expand_symtabs_for_function): Don't pass
502 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
503 BLOCK_INDEX.
504
ae60f04e
PW
5052019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
506
507 * NEWS: Mention changes to "info sources" command.
508
28cd9371
PW
5092019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
510
511 * symtab.c (filename_partial_match_opts): New struct type.
512 (struct output_source_filename_data): New members
513 regexp, c_regexp, partial_match.
514 (output_source_filename): Use new members to decide to print file.
515 (info_sources_option_defs): New variable.
516 (make_info_sources_options_def_group, print_info_sources_header,
517 info_sources_command_completer):
518 New functions.
519 (info_sources_command): Read new optional arguments.
520 (_initialize_symtab): Update info sources help.
521
ca683e3a
AO
5222019-08-02 Alexandre Oliva <oliva@adacore.com>
523
524 * ada-lang.c (exception_support_info_v0): Renamed from...
525 (default_exception_support_info): ... this. Create new
526 definition for v1.
527 (ada_has_this_exception_support): Look up catch_handlers_sym.
528 (ada_exception_support_info_sniffer): Try v0 after default.
529
f1264162
TT
5302019-08-01 Tom Tromey <tromey@adacore.com>
531
532 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
533 gdbarch.h.
534
0a7b2485
CB
5352019-08-01 Christian Biesinger <cbiesinger@google.com>
536
537 * s12z-tdep.c: Fix include path for s12z-opc.h.
538
c6bdbeb7
AH
5392019-08-01 Alan Hayward <alan.hayward@arm.com>
540
541 * NEWS: Require GNU make 3.82.
542
a2bd7b82
TT
5432019-07-16 Tom Tromey <tom@tromey.com>
544
545 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
546 declare.
547
aa3b6533
TT
5482019-07-30 Tom Tromey <tromey@adacore.com>
549
550 * block.c (contained_in): Remove BLOCK_FUNCTION check.
551
a1530dc7
KB
5522019-07-30 Kevin Buettner <kevinb@redhat.com>
553
554 * printcmd.c (print_address_symbolic): Print negative offsets.
555 (build_address_symbolic): Force signed arithmetic when computing
556 offset.
557
2906593f
CB
5582019-07-30 Christian Biesinger <cbiesinger@google.com>
559
560 PR/24474: Add a function to lookup static variables.
561 * NEWS: Mention this new function.
562 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
563 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
564 * python/python.c (python_GdbMethods): Add new function.
565
c620ed88
CB
5662019-07-29 Christian Biesinger <cbiesinger@google.com>
567
568 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
569 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
570 (objfpy_lookup_static_symbol): New function.
571 (objfile_object_methods): Add new functions.
572
bc4268a5
PW
5732019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
574
575 * NEWS: Mention 'set|show print frame-info'. Mention new
576 'presence' value for 'frame-arguments'. Mention new '-frame-info'
577 backtrace argument. Mention that python frame filtering code
578 is now consistent with what 'backtrace' command prints.
579
4b5e8d19
PW
5802019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
581
582 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
583 comments.
584 (print_frame_info_auto, print_frame_info_source_line,
585 print_frame_info_location, print_frame_info_source_and_location,
586 print_frame_info_location_and_address, print_frame_info_short_location):
587 New declarations.
588 (struct frame_print_options): New member print_frame_info.
589 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
590 * stack.h (get_user_print_what_frame_info): New declaration.
591 (frame_show_address): New declaration.
592 * stack.c (print_frame_arguments_choices): New value 'presence'.
593 (print_frame_info_auto, print_frame_info_source_line,
594 print_frame_info_location, print_frame_info_source_and_location,
595 print_frame_info_location_and_address, print_frame_info_short_location,
596 print_frame_info_choices, print_frame_info_print_what): New definitions.
597 (print_frame_args): Only print dots for args if print frame-arguments
598 is 'presence'.
599 (frame_print_option_defs): New element for "frame-info".
600 (get_user_print_what_frame_info): New function.
601 (frame_show_address): Make non static. Move comment to stack.h.
602 (print_frame_info_to_print_what): New function.
603 (print_frame_info): Update comment. Use fp_opts.print_frame_info
604 to decide what to print.
605 (backtrace_command_1): Handle the new print_frame_arguments_presence
606 value.
607 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
608 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
609 (py_print_frame): In non-mi mode, use LOCATION as default for
610 print_what, similarly to frame information printed directly by
611 backtrace command. Handle frame-info user option in non MI mode.
612
6bdfee81
KB
6132019-07-27 Kevin Buettner <kevinb@redhat.com>
614
615 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
616 Add case for debugging 32-bit target on 64-bit host. Revise
617 comment.
618
98a617f8
KB
6192019-07-27 Kevin Buettner <kevinb@redhat.com>
620
621 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
622 instead of find_function_entry_range_from_pc.
623
567238c9
KB
6242019-07-27 Kevin Buettner <kevinb@redhat.com>
625
626 * stack.c (find_frame_funname): Remove code which preferred
627 minsym over symtab sym in "certain pathological cases".
628
2dc80cf8
KB
629 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
630 parameter. Change type of "do_demangle" to bool.
631 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
632 Pass suitable "prefer_sym_over_minsym" flag to
633 build_address_symbolic(). Don't output "+" for negative offsets.
634 * printcmd.c (print_address_symbolic): Update invocation of
635 build_address_symbolic to include a "prefer_sym_over_minsym"
636 flag.
637 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
638 Restrict cases in which use of minimal symbol is preferred to that
639 of a found symbol. Update comments.
640
1aff7173
KB
641 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
642 for entry pc when entry pc is out of range for that FDE.
643
89b085ac
BC
6442019-07-26 Brian Callahan <bcallah@openbsd.org>
645
646 PR gdb/24839:
647 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
648 type.
649
f32feb4a
CB
6502019-07-25 Christian Biesinger <cbiesinger@google.com>
651
652 * python/py-objfile.c (add_separate_debug_file): Fix comment about
653 this function's Python signature.
654
655
6562019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
657
658 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
659 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
660 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
661 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
662 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
663
664
c54e4253
YS
6652019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
666
667 * h8300-tdep.c (h8300_register_name_common): New.
668 h8300_register_name): Use h8300_register_name_common.
669 (h8300s_register_name): Likewise.
670 (h8300sx_register_name): Likewise.
671 (h8300h_register_nam): New.
672 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
673
674
40eadf04
SP
6752019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
676
677 * arm-tdep.c (arm_skip_cmse_entry): New function.
678 (arm_is_sgstubs_section): New function.
679 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
680
bfa2a36d
TT
6812019-07-22 Tom Tromey <tom@tromey.com>
682
683 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
684 Don't self-assign.
685
a8e9d247
AB
6862019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
689 type_print.
690
eb86c5e2
AB
6912019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * symtab.c (search_symbols): Adjust msymbol matching type arrays
694 so that GDB doesn't match any msymbols when searching in the
695 TYPES_DOMAIN.
696 (print_symbol_info): Print using typedef_print or type_print based
697 on the type of the symbol. Add updated FIXME comment moved from...
698 (_initialize_symtab): ... move and update FIXME comment to above.
699
a8eab7c6
AB
7002019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
701
702 * NEWS: Mention adding -q option to "info types".
703 * symtab.c (struct info_types_options): New struct.
704 (info_types_options_defs): New variable.
705 (make_info_types_options_def_group): New function.
706 (info_types_command): Use gdb::option framework to parse options.
707 (info_types_command_completer): New function.
708 (_initialize_symtab): Extend the help text on "info types" and
709 register command completer.
710
b4603c34
CB
7112019-07-21 Christian Biesinger <cbiesinger@google.com>
712
713 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
714 (lookup_symbol_in_objfile): Change int to block_enum and add a
715 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
716
c8cdc1e0
CB
7172019-07-20 Christian Biesinger <cbiesinger@google.com>
718
719 * MAINTAINERS (Write After Approval): Add self.
720
01e175fe
AB
7212019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
724 instruction to the dummy code region.
725
56f79b63
TT
7262019-07-19 Tom Tromey <tromey@adacore.com>
727
728 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
729 (ARGSUSED, PARAMS, __func__): Remove rules.
730
4c5aa8e0
AH
7312019-07-19 Alan Hayward <alan.hayward@arm.com>
732
733 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
734 * features/arm/arm-with-iwmmxt.c: Remove.
735 * features/arm/arm-with-iwmmxt.xml: Remove.
736 * features/arm/arm-with-m-fpa-layout.c: Remove.
737 * features/arm/arm-with-m-fpa-layout.xml: Remove.
738 * features/arm/arm-with-m-vfp-d16.c: Remove.
739 * features/arm/arm-with-m-vfp-d16.xml: Remove.
740 * features/arm/arm-with-m.c: Remove.
741 * features/arm/arm-with-m.xml: Remove.
742 * features/arm/arm-with-neon.c: Remove.
743 * features/arm/arm-with-neon.xml: Remove.
744 * features/arm/arm-with-vfpv2.c: Remove.
745 * features/arm/arm-with-vfpv2.xml: Remove.
746 * features/arm/arm-with-vfpv3.c: Remove.
747 * features/arm/arm-with-vfpv3.xml: Remove.
748
f42b2617
AH
7492019-07-19 Alan Hayward <alan.hayward@arm.com>
750
751 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
752
f29ec966
AH
7532019-07-19 Alan Hayward <alan.hayward@arm.com>
754
755 * arch/aarch32.c (aarch32_create_target_description): Create
756 target descriptions using features.
757 * arch/arm.c (arm_create_target_description)
758 (arm_create_mprofile_target_description): Likewise.
759 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
760
d105cce5
AH
7612019-07-19 Alan Hayward <alan.hayward@arm.com>
762
763 * Makefile.in: Add new files.
764 * aarch32-tdep.c: New file.
765 * aarch32-tdep.h: New file.
766 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
767 Call aarch32_read_description.
768 * arch/aarch32.c: New file.
769 * arch/aarch32.h: New file.
770 * arch/arm.c (arm_create_target_description)
771 (arm_create_mprofile_target_description): New function.
772 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
773 (arm_create_target_description)
774 (arm_create_mprofile_target_description): New declaration.
775 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
776 read_description functions.
777 * arm-linux-nat.c (arm_linux_nat_target::read_description):
778 Likewise.
779 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
780 * arm-tdep.c (tdesc_arm_list): New variable.
781 (arm_register_g_packet_guesses): Call create description functions.
782 (arm_read_description) (arm_read_mprofile_description): New
783 function.
784 * arm-tdep.h (arm_read_description)
785 (arm_read_mprofile_description): Add declaration.
786 * configure.tgt: Add new files.
787
afe09f0b
GL
7882019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
789
790 * top.c (new_ui_command): Open specified terminal just once.
791
cd215b2e
TT
7922019-07-18 Tom Tromey <tromey@adacore.com>
793
794 * symtab.c (main_name): Constify return type.
795 * symfile.c (set_initial_language): Update.
796 * symtab.h (main_name): Constify return type.
797
d8f68fcb
TT
7982019-07-17 Tom Tromey <tom@tromey.com>
799
800 * tui/tui-winsource.c (tui_update_source_window)
801 (tui_update_source_window_as_is)
802 (tui_update_source_windows_with_line): Remove return.
803 * tui/tui-disasm.c (tui_show_disassem)
804 (tui_show_disassem_and_update_source): Remove return.
805 * tui/tui.c (tui_reset): Remove return.
806 * tui/tui-wingeneral.c
807 (tui_check_and_display_highlight_if_needed): Remove return.
808
ca5af91e
TT
8092019-07-17 Tom Tromey <tom@tromey.com>
810
811 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
812
5104fe36
TT
8132019-07-17 Tom Tromey <tom@tromey.com>
814
815 * tui/tui-winsource.h (struct tui_exec_info_window)
816 (struct tui_source_window_base): Move from tui-data.h.
817 * tui/tui-winsource.c: Move many method definitions from
818 elsewhere. Remove "structuring" comments.
819 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
820 (tui_source_window_base::refresh_window): Move to
821 tui-winsource.c.
822 * tui/tui-win.c (tui_source_window_base::refresh_all)
823 (tui_source_window_base::update_tab_width)
824 (tui_source_window_base::set_new_height)
825 (tui_source_window_base::do_make_visible_with_new_height): Move to
826 tui-winsource.c.
827 * tui/tui-source.h: Update.
828 * tui/tui-source.c (tui_source_window_base::reset): Move to
829 tui-winsource.c.
830 * tui/tui-disasm.h: Update.
831 * tui/tui-data.h (struct tui_exec_info_window): Move to
832 tui-winsource.h.
833 (struct tui_source_window_base): Likewise.
834 * tui/tui-data.c (tui_source_window_base::clear_detail)
835 (tui_source_window_base, ~tui_source_window_base): Move to
836 tui-winsource.c.
837
daa15dde
TT
8382019-07-17 Tom Tromey <tom@tromey.com>
839
840 * tui/tui-win.c (tui_resize_all)
841 (tui_source_window_base::update_tab_width)
842 (tui_adjust_win_heights): Update.
843 (tui_win_info::make_invisible_and_set_new_height): Rename from
844 make_invisible_and_set_new_height.
845 * tui/tui-data.h (struct tui_win_info)
846 <make_invisible_and_set_new_height>: New method.
847
bfad4537
TT
8482019-07-17 Tom Tromey <tom@tromey.com>
849
850 * tui/tui.c: Update.
851 * tui/tui-source.h (struct tui_source_window): Move from
852 tui-data.h.
853 * tui/tui-layout.c: Update.
854 * tui/tui-disasm.c: Update.
855 * tui/tui-data.h (struct tui_source_window): Move to
856 tui-source.h.
857
88f7e873
TT
8582019-07-17 Tom Tromey <tom@tromey.com>
859
860 * tui/tui-disasm.h (struct tui_disasm_window): Move from
861 tui-data.h.
862 * tui/tui-data.h (struct tui_disasm_window): Move to
863 tui-disasm.h.
864
96bd6233
TT
8652019-07-17 Tom Tromey <tom@tromey.com>
866
867 * tui/tui-regs.h (struct tui_data_item_window): Move from
868 tui-data.h.
869 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
870 * tui/tui-data.h (struct tui_data_item_window): Move to
871 tui-regs.h.
872 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
873
ce38393b
TT
8742019-07-17 Tom Tromey <tom@tromey.com>
875
876 * tui/tui.c: Update.
877 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
878 (tui_cmd_window::max_height): Move to tui-command.c.
879 * tui/tui-layout.c: Update.
880 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
881 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
882 tui-command.c.
883 * tui/tui-command.h (struct tui_cmd_window): Move from
884 tui-data.h.
885 * tui/tui-command.c: Remove "structuring" comments.
886 (tui_cmd_window::clear_detail)
887 (tui_cmd_window::do_make_visible_with_new_height)
888 (tui_cmd_window::max_height): Move from elsewhere.
889
2d8b51cb
TT
8902019-07-17 Tom Tromey <tom@tromey.com>
891
892 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
893 Now static.
894 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
895 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
896
18ab23af
TT
8972019-07-17 Tom Tromey <tom@tromey.com>
898
899 * tui/tui.c: Update.
900 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
901 tui-regs.c.
902 * tui/tui-windata.h: Remove file.
903 * tui/tui-windata.c: Remove file.
904 * tui/tui-win.c (tui_data_window::set_new_height)
905 (tui_data_window::do_make_visible_with_new_height): Move to
906 tui-regs.c.
907 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
908 * tui/tui-regs.c: Remove "structuring" comments.
909 (tui_data_window::first_data_item_displayed)
910 (tui_data_window::delete_data_content_windows)
911 (tui_data_window::erase_data_content)
912 (tui_data_window::display_all_data)
913 (tui_data_window::refresh_all)
914 (tui_data_window::do_scroll_vertical)
915 (tui_data_window::clear_detail, tui_data_window::set_new_height)
916 (tui_data_window::do_make_visible_with_new_height)
917 (tui_data_window::refresh_window): Move from elsewhere.
918 (_initialize_tui_regs): Move to end of file.
919 * tui/tui-layout.c: Update.
920 * tui/tui-hooks.c: Update.
921 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
922 * tui/tui-data.c (tui_data_window::clear_detail): Move to
923 tui-regs.c.
924 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
925
88b7e7cc
TT
9262019-07-17 Tom Tromey <tom@tromey.com>
927
928 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
929 seen.
930
0fcd3711
TT
9312019-07-17 Tom Tromey <tom@tromey.com>
932
933 * tui/tui-win.c (tui_source_window_base::set_new_height)
934 (tui_source_window_base::do_make_visible_with_new_height): Use
935 m_has_locator field directly.
936 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
937 method.
938 (struct tui_source_window_base) <has_locator>: Likewise.
939
4a38112d
TT
9402019-07-17 Tom Tromey <tom@tromey.com>
941
942 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
943 Don't declare.
944 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
945 Remove.
946 * tui/tui-win.c (tui_source_window_base::set_new_height)
947 (tui_source_window_base::set_new_height)
948 (make_invisible_and_set_new_height)
949 (tui_source_window_base::do_make_visible_with_new_height)
950 (tui_source_window_base::do_make_visible_with_new_height):
951 Update.
952 * tui/tui-layout.c (show_source_disasm_command, show_data)
953 (show_source_or_disasm_and_command): Update.
954 * tui/tui-layout.c (show_layout): Update.
955
09129226
TT
9562019-07-17 Tom Tromey <tom@tromey.com>
957
958 * tui/tui-layout.c (make_data_window): Remove.
959 (show_data): Unify creation and re-initialization cases.
960
4a8a5e84
TT
9612019-07-17 Tom Tromey <tom@tromey.com>
962
963 * tui/tui-layout.c (make_source_window, make_disasm_window):
964 Remove.
965 (show_data): Unify creation and re-initialization cases.
966
76d2be8e
TT
9672019-07-17 Tom Tromey <tom@tromey.com>
968
969 * tui/tui-layout.c (make_command_window): Remove.
970 (show_source_disasm_command, show_source_or_disasm_and_command):
971 Unify creation and re-initialization cases.
972
890b8bde
TT
9732019-07-17 Tom Tromey <tom@tromey.com>
974
975 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
976 creation and re-initialization cases.
977
2cdfa113
TT
9782019-07-17 Tom Tromey <tom@tromey.com>
979
980 * tui/tui-regs.c (tui_get_register): Return void.
981
8e3cfd09
TT
9822019-07-17 Tom Tromey <tom@tromey.com>
983
984 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
985 Simplify.
986
f4e04977
TT
9872019-07-17 Tom Tromey <tom@tromey.com>
988
989 * tui/tui-layout.c (show_source_disasm_command): Simplify window
990 resetting.
991
0379b883
TT
9922019-07-17 Tom Tromey <tom@tromey.com>
993
994 * tui/tui.h (tui_set_layout_by_name): Don't declare.
995 * tui/tui-regs.c (tui_reg_layout): New function.
996 (tui_show_registers, tui_reg_command): Use it.
997 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
998 (tui_layout_command): Rename from tui_set_layout_by_name. Change
999 parameters.
1000 (tui_layout_command): Remove.
1001
b7fbad91
TT
10022019-07-17 Tom Tromey <tom@tromey.com>
1003
1004 * tui/tui-layout.h (tui/tui-layout): Return void.
1005 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1006
4e1e56b9
TT
10072019-07-17 Tom Tromey <tom@tromey.com>
1008
1009 * tui/tui-layout.c (show_source_disasm_command, show_data):
1010 Update.
1011 (reset_locator): Remove.
1012 (show_source_or_disasm_and_command): Update.
1013
1e0c09ba
TT
10142019-07-17 Tom Tromey <tom@tromey.com>
1015
1016 * tui/tui-source.c (tui_source_window_base::reset): Remove
1017 win_type parameter.
1018 * tui/tui-layout.c (make_command_window, make_source_window)
1019 (make_disasm_window, make_data_window)
1020 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1021 (reset_locator, show_source_or_disasm_and_command): Update.
1022 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1023 win_type parameter.
1024 (struct tui_source_window_base) <reset>: Likewise.
1025
1bf605de
TT
10262019-07-17 Tom Tromey <tom@tromey.com>
1027
1028 * tui/tui-layout.c (show_source_disasm_command): Use
1029 reset_locator.
1030 (reset_locator): New function.
1031 (init_and_make_win): Remove.
1032 (show_source_or_disasm_and_command): Use reset_locator.
1033
098f9ed4
TT
10342019-07-17 Tom Tromey <tom@tromey.com>
1035
1036 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1037 condition.
1038 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1039 Remove condition.
1040 * tui/tui-source.c (tui_source_window_base::reset): New method.
1041 * tui/tui-layout.c (make_command_window): Don't call
1042 init_and_make_win.
1043 (make_source_window, make_disasm_window): Don't call
1044 make_source_or_disasm_window.
1045 (make_data_window): Don't call init_and_make_win. Change calling
1046 convention.
1047 (show_source_disasm_command, show_data): Simplify.
1048 (make_source_or_disasm_window): Remove.
1049 (show_source_or_disasm_and_command): Simplify.
1050 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1051 (struct tui_source_window_base) <reset>: Likewise.
1052 <execution_info>: Remove initializer.
1053 * tui/tui-data.c (tui_source_window_base): Initialize
1054 execution_info.
1055
80110957
TT
10562019-07-17 Tom Tromey <tom@tromey.com>
1057
1058 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1059 variable.
1060
cf82af05
TT
10612019-07-17 Tom Tromey <tom@tromey.com>
1062
1063 * tui/tui.c (tui_rl_other_window): Update.
1064 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1065 superclass method first. Always iterate over regs_content.
1066 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1067 method.
1068 * tui/tui-win.c (tui_set_focus_command): Update.
1069
01aeb396
TT
10702019-07-17 Tom Tromey <tom@tromey.com>
1071
1072 * tui/tui-win.c (tui_set_focus_command): Rename from
1073 tui_set_focus. Call tui_enable.
1074 (tui_set_focus_command): Remove.
1075
fd6c75ee
TT
10762019-07-17 Tom Tromey <tom@tromey.com>
1077
1078 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1079 refresh_window.
1080 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1081 touchwin.
1082 (tui_data_window::refresh_window): Call refresh_window on data
1083 items. Always call superclass refresh_window.
1084 (tui_win_info::refresh): Remove.
1085 (tui_source_window_base::refresh_window): Update.
1086 (tui_refresh_all): Update.
1087 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1088 refresh_window.
1089 (show_source_or_disasm_and_command): Likewise.
1090 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1091 (struct tui_source_window_base) <refresh>: Likewise.
1092
f6cc34a9
TT
10932019-07-17 Tom Tromey <tom@tromey.com>
1094
1095 * tui/tui-winsource.c (tui_clear_source_content)
1096 (tui_show_source_content): Update.
1097 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1098 whether content is empty.
1099 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1100 Remove.
1101
f31ec9af
TT
11022019-07-17 Tom Tromey <tom@tromey.com>
1103
1104 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1105 window's contents.
1106 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1107 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1108
d1b6f1e5
TT
11092019-07-17 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1112 (struct tui_data_item_window): Update.
1113
d9743a13
TT
11142019-07-17 Tom Tromey <tom@tromey.com>
1115
1116 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1117 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1118 defines.
1119
caf0bc4e
TT
11202019-07-17 Tom Tromey <tom@tromey.com>
1121
1122 * tui/tui-winsource.h (tui_erase_source_content)
1123 (tui_clear_source_content): Remove "display_prompt" parameter.
1124 * tui/tui-winsource.c (tui_update_source_window_as_is)
1125 (tui_update_source_windows_with_addr): Update.
1126 (tui_clear_source_content): Remove "display_prompt" parameter.
1127 (tui_erase_source_content): Likewise. Simplify.
1128 (tui_show_source_content): Update.
1129 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1130 * tui/tui-stack.c (tui_show_frame_info): Update.
1131 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1132 Remove defines.
1133
9d391078
TT
11342019-07-17 Tom Tromey <tom@tromey.com>
1135
1136 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1137 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1138 parameter.
1139 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1140 parameter.
1141
a38da35d
TT
11422019-07-17 Tom Tromey <tom@tromey.com>
1143
1144 * tui/tui-winsource.c (tui_clear_source_content)
1145 (tui_show_source_content, tui_show_exec_info_content)
1146 (tui_clear_exec_info_content): Update.
1147 * tui/tui-stack.c (tui_show_locator_content): Update.
1148 (tui_show_frame_info): Update.
1149 * tui/tui-source.h (tui_source_window): Don't declare.
1150 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1151 from tui_source_is_displayed.
1152 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1153 Remove field.
1154 (struct tui_source_window_base) <content_in_use>: New field. Now
1155 bool.
1156 (struct tui_source_window) <showing_source_p>: New method.
1157 (TUI_SRC_WIN): Change cast.
1158 * tui/tui-data.c (tui_initialize_static_data): Update.
1159
c2cd8994
TT
11602019-07-17 Tom Tromey <tom@tromey.com>
1161
1162 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1163 location_matches_p.
1164 * tui/tui-source.c (tui_source_window::location_matches_p): New
1165 method.
1166 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1167 method.
1168 * tui/tui-data.h (struct tui_source_window_base)
1169 <location_matches_p>: New method.
1170 (struct tui_source_window, struct tui_disasm_window)
1171 <location_matches_p>: Likewise.
1172
4dde7b34
TT
11732019-07-17 Tom Tromey <tom@tromey.com>
1174
1175 * tui/tui-win.c (tui_set_win_height_command): Rename from
1176 tui_set_win_height.
1177 (tui_set_win_height_command): Remove.
1178
b73dd877
TT
11792019-07-17 Tom Tromey <tom@tromey.com>
1180
1181 * tui/tui-source.c (tui_source_window): New constructor. Add
1182 observer.
1183 (~tui_source_window): New destructor.
1184 (tui_source_window::style_changed): New method.
1185 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1186 (tui_attach_detach_observers): Update.
1187 * tui/tui-data.h (struct tui_source_window): Make constructor not
1188 inline. Add destructor.
1189 (struct tui_source_window) <style_changed>: New method.
1190 <m_observable>: New member.
1191
ae2b5380
TT
11922019-07-17 Tom Tromey <tom@tromey.com>
1193
1194 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1195 * tui/tui-win.c (tui_resize_all): Fix typo.
1196
1ce3e844
TT
11972019-07-17 Tom Tromey <tom@tromey.com>
1198
1199 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1200 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1201 (tui_refresh_all): Remove "list" parameter. Use foreach.
1202 * tui/tui-win.c (window_name_completer): Use foreach.
1203 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1204 (update_tab_width): Likewise.
1205 * tui/tui-layout.c (show_layout): Update.
1206 * tui/tui-data.h (class tui_window_iterator): New.
1207 (struct all_tui_windows): New.
1208 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1209
fe3eaf1c
TT
12102019-07-17 Tom Tromey <tom@tromey.com>
1211
1212 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1213 parameter. Don't reference globals.
1214 (tui_reg_command): Update.
1215
368c1354
TT
12162019-07-17 Tom Tromey <tom@tromey.com>
1217
1218 * tui/tui-regs.c (tui_show_registers): Simplify.
1219
e80cd204
TT
12202019-07-17 Tom Tromey <tom@tromey.com>
1221
1222 * tui/tui-regs.c (tui_show_registers): Update.
1223 (tui_show_register_group): Add win_info parameter.
1224
aca2dd16
TT
12252019-07-17 Tom Tromey <tom@tromey.com>
1226
1227 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1228 Rename from tui_display_reg_element_at_line.
1229 (tui_data_window::display_registers_from_line): Update.
1230 * tui/tui-data.h (struct tui_data_window)
1231 <display_reg_element_at_line>: New method.
1232
517e9505
TT
12332019-07-17 Tom Tromey <tom@tromey.com>
1234
1235 * tui/tui-regs.h (tui_display_registers_from)
1236 (tui_display_registers_from_line): Don't declare.
1237 * tui/tui-windata.c (tui_data_window::display_all_data)
1238 (tui_data_window::refresh_all)
1239 (tui_data_window::do_scroll_vertical): Update.
1240 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1241 from tui_display_registers_from.
1242 (tui_display_reg_element_at_line): Update.
1243 (tui_data_window::display_registers_from_line): Rename from
1244 tui_display_registers_from_line.
1245 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1246 display_registers_from_line>: New methods.
1247
f76d8b19
TT
12482019-07-17 Tom Tromey <tom@tromey.com>
1249
1250 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1251 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1252 from tui_erase_data_content.
1253 (tui_data_window::display_all_data)
1254 (tui_data_window::refresh_all)
1255 (tui_data_window::do_scroll_vertical): Update.
1256 * tui/tui-regs.c (tui_show_registers): Update.
1257 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1258 New method.
1259
b4094625
TT
12602019-07-17 Tom Tromey <tom@tromey.com>
1261
1262 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1263 declare.
1264 * tui/tui-windata.c
1265 (tui_data_window::delete_data_content_windows): Rename from
1266 tui_delete_data_content_windows.
1267 (tui_data_window::display_all_data)
1268 (tui_data_window::do_scroll_vertical): Update.
1269 * tui/tui-data.h (struct tui_data_window)
1270 <delete_data_content_windows>: New method.
1271
c223a729
TT
12722019-07-17 Tom Tromey <tom@tromey.com>
1273
1274 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1275 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1276
50daf268
TT
12772019-07-17 Tom Tromey <tom@tromey.com>
1278
1279 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1280 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1281 from tui_display_all_data.
1282 * tui/tui-win.c
1283 (tui_data_window::do_make_visible_with_new_height): Update.
1284 * tui/tui-regs.c (tui_show_registers): Update.
1285 * tui/tui-layout.c (tui_set_layout): Update.
1286 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1287 method.
1288
df5f8cab
TT
12892019-07-17 Tom Tromey <tom@tromey.com>
1290
1291 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1292 * tui/tui-windata.c (tui_display_data_from): Remove.
1293 (tui_data_window::refresh_all): Update.
1294
80cb6c27
TT
12952019-07-17 Tom Tromey <tom@tromey.com>
1296
1297 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1298 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1299 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1300 tui_display_registers_from_line.
1301 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1302 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1303 "force_display" parameter.
1304
baff0c28
TT
13052019-07-17 Tom Tromey <tom@tromey.com>
1306
1307 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1308 declare.
1309 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1310 Rename from tui_first_reg_element_no_inline.
1311 (tui_display_reg_element_at_line)
1312 (tui_display_registers_from_line): Update.
1313 * tui/tui-data.h (struct tui_data_window)
1314 <first_reg_element_no_inline>: New method.
1315
3b23c5f2
TT
13162019-07-17 Tom Tromey <tom@tromey.com>
1317
1318 * tui/tui-windata.c (tui_display_data_from)
1319 (tui_data_window::do_scroll_vertical): Update.
1320 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1321 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1322 Rename from tui_line_from_reg_element_no.
1323 (tui_display_registers_from_line): Update.
1324 * tui/tui-data.h (struct tui_data_window)
1325 <line_from_reg_element_no>: New method.
1326
0b5ec218
TT
13272019-07-17 Tom Tromey <tom@tromey.com>
1328
1329 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1330 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1331 tui_last_regs_line_no.
1332 (tui_display_reg_element_at_line)
1333 (tui_display_registers_from_line): Update.
1334 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1335 method.
1336
0807ab7b
TT
13372019-07-17 Tom Tromey <tom@tromey.com>
1338
1339 PR tui/24722:
1340 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1341 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1342 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1343 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1344 (tui_update_breakpoint_info): Likewise.
1345 * tui/tui-hooks.c (tui_event_create_breakpoint)
1346 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1347 Update.
1348
9ad7fdef
TT
13492019-07-17 Tom Tromey <tom@tromey.com>
1350
1351 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1352
5813316f
TT
13532019-07-17 Tom Tromey <tom@tromey.com>
1354
1355 * tui/tui-winsource.c (tui_update_source_window_as_is)
1356 (tui_update_source_windows_with_addr): Update.
1357 * tui/tui-source.h (tui_set_source_content)
1358 (tui_show_symtab_source): Add "win_info" parameter.
1359 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1360 parameter.
1361 (tui_show_symtab_source): Likewise.
1362
00e264e7
TT
13632019-07-17 Tom Tromey <tom@tromey.com>
1364
1365 * tui/tui-wingeneral.c
1366 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1367
06210ce4
TT
13682019-07-17 Tom Tromey <tom@tromey.com>
1369
1370 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1371 (struct tui_cmd_window) <can_scroll>: New method.
1372 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1373 method.
1374
381befee
TT
13752019-07-17 Tom Tromey <tromey@adacore.com>
1376
1377 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1378 do_field_signed>: Rename. Change type of "value".
1379 * ui-out.c (ui_out::field_signed): Rename from field_int.
1380 Change type of "value".
1381 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1382 type of "value".
1383 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1384 do_field_int. Change type of "value".
1385 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1386 do_field_int. Change type of "value".
1387 * tracepoint.c (trace_status_mi, tfind_1)
1388 (print_one_static_tracepoint_marker): Update.
1389 * thread.c (print_thread_info_1, print_selected_thread_frame):
1390 Update.
1391 * stack.c (print_frame, print_frame_info): Update.
1392 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1393 Update.
1394 * source.c (print_source_lines_base): Update.
1395 * skip.c (info_skip_command): Update.
1396 * record-btrace.c (btrace_ui_out_decode_error)
1397 (btrace_call_history_src_line): Update.
1398 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1399 Update.
1400 * progspace.c (print_program_space): Update.
1401 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1402 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1403 do_field_int. Change type of "value".
1404 * mi/mi-out.c (mi_ui_out::do_table_begin)
1405 (mi_ui_out::do_table_header): Update.
1406 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1407 type of "value".
1408 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1409 (mi_cmd_data_list_changed_registers, output_register)
1410 (mi_cmd_data_read_memory, mi_load_progress)
1411 (mi_cmd_trace_frame_collected): Update.
1412 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1413 Update.
1414 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1415 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1416 (mi_cmd_var_list_children, varobj_update_one): Update.
1417 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1418 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1419 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1420 * inferior.c (print_inferior): Update.
1421 * gdb_bfd.c (print_one_bfd): Update.
1422 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1423 Update.
1424 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1425 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1426 do_field_int. Change type of "value".
1427 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1428 do_field_int. Change type of "value".
1429 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1430 (print_one_breakpoint_location, print_it_catch_fork)
1431 (print_one_catch_fork, print_it_catch_vfork)
1432 (print_one_catch_vfork, print_it_catch_solib)
1433 (print_it_catch_exec, print_it_ranged_breakpoint)
1434 (print_mention_watchpoint, print_mention_masked_watchpoint)
1435 (bkpt_print_it, update_static_tracepoint): Update.
1436 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1437 * break-catch-syscall.c (print_it_catch_syscall): Update.
1438 * ada-tasks.c (print_ada_task_info): Update.
1439 * ada-lang.c (print_it_exception, print_mention_exception):
1440 Update.
1441
6b78c3f8
AB
14422019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 PR breakpoints/24541
1445 * gdbarch.c: Regenerate.
1446 * gdbarch.h: Regenerate.
1447 * gdbarch.sh: Adjust return type and parameter types for
1448 'stap_adjust_register'.
1449 (i386_stap_adjust_register): Adjust signature and return new
1450 register name.
1451 * stap-probe.c (stap_parse_register_operand): Adjust use of
1452 'gdbarch_stap_adjust_register'.
1453
d72a9b85
TT
14542019-07-17 Tom Tromey <tromey@adacore.com>
1455
1456 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1457 declare VEC.
1458 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1459 std::vector.
1460 (struct s390_process_info): Add initializers.
1461 (s390_add_process): Use new.
1462 (s390_linux_nat_target::low_forget_process): Use delete.
1463 (s390_linux_nat_target::low_new_fork)
1464 (s390_linux_nat_target::stopped_by_watchpoint)
1465 (s390_linux_nat_target::low_prepare_to_resume)
1466 (s390_linux_nat_target::insert_watchpoint)
1467 (s390_linux_nat_target::insert_hw_breakpoint)
1468 (s390_linux_nat_target::remove_watchpoint)
1469 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1470
206e6c58
JB
14712019-07-16 John Baldwin <jhb@FreeBSD.org>
1472
1473 * aarch64-fbsd-nat.c: Include regcache.h.
1474 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1475 argument.
1476 (aarch64_fbsd_nat_target::fetch_registers)
1477 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1478 variable.
1479 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1480
cbde90f2
JB
14812019-07-16 John Baldwin <jhb@FreeBSD.org>
1482
1483 * fbsd-nat.c: Include gdbarch.h.
1484
07128006
TT
14852019-07-15 Tom Tromey <tromey@adacore.com>
1486
1487 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1488
1f77b012
TT
14892019-07-15 Tom Tromey <tromey@adacore.com>
1490
1491 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1492 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1493 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1494 * cli-out.c (cli_ui_out::do_field_int): New method.
1495 * ui-out.c (ui_out::field_unsigned): New method.
1496 * symfile.c (generic_load): Use field_unsigned.
1497 (print_transfer_performance): Likewise.
1498 * record-btrace.c (ui_out_field_uint): Remove.
1499 (btrace_call_history_insn_range, btrace_call_history): Use
1500 field_unsigned.
1501 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1502 field_unsigned.
1503 * ui-out.h (class ui_out) <field_unsigned>: New method.
1504 <do_field_unsigned>: Likewise.
1505
33eca680
TT
15062019-07-15 Tom Tromey <tromey@adacore.com>
1507
1508 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1509 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1510 * target.c (flash_erase_command): Use field_string.
1511 * infrun.c (print_signal_received_reason): Use field_string.
1512 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1513 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1514 field_string.
1515 * ada-tasks.c (print_ada_task_info): Use field_string.
1516
ca8d69be
TT
15172019-07-15 Tom Tromey <tromey@adacore.com>
1518
1519 * target.c (flash_erase_command): Use field_core_addr.
1520 * symfile.c (generic_load): Use field_core_addr.
1521 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1522 Use field_core_addr.
1523 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1524 field_core_addr.
1525
0d4e84ed
AB
15262019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1529 value if its desired type is smaller than a CORE_ADDR and signed.
1530
9a49df9d
AB
15312019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1532
1533 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1534 of changes to field names, and use new is_reference field to
1535 decide if a property is a reference or not.
1536 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1537 field.
1538 (struct dwarf2_property_baton): Update header comment, rename
1539 'referenced_type' to 'property_type' and update comments.
1540 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1541 default property type, store in property baton, update to take
1542 accound of renamed field.
1543 (read_func_scope): Update call to attr_to_dynamic_prop.
1544 (read_array_type): Likewise.
1545 (dwarf2_per_cu_addr_sized_int_type): New function.
1546 (read_subrange_index_type): Move type finding code to
1547 dwarf2_per_cu_addr_sized_int_type.
1548 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1549 (dwarf2_per_cu_addr_type): New function.
1550 (set_die_type): Update calls to attr_to_dynamic_prop.
1551
b86352cf
AB
15522019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * dwarf2read.c (read_subrange_index_type): New function.
1555 (read_subrange_type): Move code into new function and call it.
1556 * gdbtypes.c (create_range_type): Add some asserts.
1557
603490bf
AB
15582019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1559
1560 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1561 update return statements.
1562 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1563 declaration, and update comment to match.
1564 * gdbtypes.c (resolve_dynamic_array): Update call to
1565 dwarf2_evaluate_property to match new return type.
1566
592f9d27
AB
15672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * valarith.c (value_subscripted_rvalue): Change lowerbound
1570 parameter type from int to LONGEST.
1571 * value.h (value_subscripted_rvalue): Likewise in declaration.
1572
60cfcb20
AB
15732019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1574
1575 * cli/cli-utils.c (info_print_command_completer): New function.
1576 * cli/cli-utils.h: Add 'completer.h' include, and forward
1577 declaration for 'struct cmd_list_element'.
1578 (info_print_command_completer): Declare.
1579 * stack.c (_initialize_stack): Add completer for 'info locals' and
1580 'info args'.
1581 * symtab.c (_initialize_symtab): Add completer for 'info
1582 variables' and 'info functions'.
1583 * NEWS: Mention completion for additional info commands.
1584
b16507e0
AB
15852019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * cli/cli-utils.c (extract_info_print_args): Delete.
1588 (extract_arg_maybe_quoted): Delete.
1589 (info_print_options_defs): New variable.
1590 (make_info_print_options_def_group): New function.
1591 (extract_info_print_options): Define new function.
1592 * cli/cli-utils.h (extract_info_print_args): Delete.
1593 (struct info_print_options): New structure.
1594 (extract_info_print_options): Declare new function.
1595 * stack.c (info_locals_command): Update to use new
1596 extract_info_print_options, also add a header comment.
1597 (info_args_command): Likewise.
1598 * symtab.c (info_variables_command): Likewise.
1599 (info_functions_command): Likewise.
1600
021d8588
AB
16012019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1602
1603 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1604 to extract string arguments.
1605 * common/common-utils.c (extract_string_maybe_quoted): New function.
1606 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1607
b777eb6d
TT
16082019-07-11 Tom Tromey <tromey@adacore.com>
1609
1610 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1611 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1612 * top.h (gdbinit): Don't declare.
1613 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1614 into...
1615 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1616 * top.c (gdb_init): Don't call init_cli_cmds.
1617 (gdbinit): Remove.
1618 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1619
72ee03ff
TT
16202019-07-11 Tom Tromey <tromey@adacore.com>
1621
1622 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1623 after it has been moved.
1624
00db9531
SM
16252019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1626
1627 * valops.c (value_must_coerce_to_target): Change return type to
1628 bool.
1629 * value.h (value_must_coerce_to_target): Likewise.
1630
f2478a7e
SM
16312019-07-10 Simon Marchi <simon.marchi@efficios.com>
1632
1633 * breakpoint.c (is_hardware_watchpoint): Remove
1634 forward-declaration.
1635 (is_masked_watchpoint): Change return type to bool.
1636 (is_tracepoint): Likewise.
1637 (is_breakpoint): Likewise.
1638 (is_hardware_watchpoint): Likewise.
1639 (is_watchpoint): Likewise.
1640 (is_no_memory_software_watchpoint): Likewise.
1641 (is_catchpoint): Likewise.
1642 (breakpoint_1): Make FILTER parameter's return type bool.
1643 is_masked_watchpoint): Change return type to bool.
1644 (save_breakpoints): Make FILTER parameter's return type bool.
1645 * breakpoint.h (is_breakpoint): Change return type to bool.
1646 (is_watchpoint): Likewise.
1647 (is_catchpoint): Likewise.
1648 (is_tracepoint): Likewise.
1649
0d12e84c
TT
16502019-07-10 Tom Tromey <tom@tromey.com>
1651
1652 * defs.h: Don't include gdbarch.h.
1653 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1654 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1655 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1656 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1657 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1658 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1659 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1660 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1661 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1662 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1663 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1664 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1665 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1666 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1667 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1668 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1669 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1670 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1671 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1672 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1673 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1674 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1675 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1676 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1677 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1678 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1679 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1680
f06f1252
TT
16812019-07-10 Tom Tromey <tromey@adacore.com>
1682
1683 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1684 * breakpoint.c (init_ada_exception_breakpoint): Register as
1685 bp_catchpoint.
1686 (print_one_breakpoint_location, print_one_breakpoint): Use
1687 is_ada_exception_catchpoint.
1688 * ada-lang.c (class ada_catchpoint_location): Pass
1689 bp_loc_software_breakpoint to bp_location constructor.
1690 (is_ada_exception_catchpoint): New function.
1691
7a5d944b
TT
16922019-07-10 Tom Tromey <tromey@adacore.com>
1693
1694 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1695 VEC.
1696 (struct arm_exidx_entry): New method operator<.
1697 (struct arm_exidx_data) <section_maps>: Change type.
1698 (arm_exidx_data_free): Remove.
1699 (arm_exidx_data_key): Change type. Move lower.
1700 (arm_exidx_new_objfile): Update.
1701 (arm_compare_exidx_entries): Remove.
1702 (arm_find_exidx_entry, _initialize_arm_tdep)
1703
48c66e1d
TT
17042019-07-10 Tom Tromey <tromey@adacore.com>
1705
1706 * solib-spu.c (ocl_program_data_key): Change type.
1707 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1708 Update.
1709
a269fbf1
TT
17102019-07-10 Tom Tromey <tromey@adacore.com>
1711
1712 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1713 (struct solib_aix_inferior_data) <library_list>: Change type.
1714 (solib_aix_inferior_data_handle): Change type.
1715 (get_solib_aix_inferior_data): Update.
1716 (solib_aix_free_library_list): Remove.
1717 (library_list_start_library): Update.
1718 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1719 return type.
1720 (solib_aix_get_library_list)
1721 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1722 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1723
c294730c
TT
17242019-07-10 Tom Tromey <tromey@adacore.com>
1725
1726 * solib-dsbt.c (struct dsbt_info): Add initializers.
1727 (solib_dsbt_pspace_data): Change type.
1728 (dsbt_pspace_data_cleanup): Remove.
1729 (get_dsbt_info, _initialize_dsbt_solib): Update.
1730
9d52077d
TT
17312019-07-10 Tom Tromey <tromey@adacore.com>
1732
1733 * spu-tdep.c (spu_overlay_data): Change type.
1734 (spu_get_overlay_table, spu_overlay_new_objfile)
1735 (_initialize_spu_tdep): Update.
1736
22a20dca
TT
17372019-07-10 Tom Tromey <tromey@adacore.com>
1738
1739 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1740 destructor.
1741 (dbx_objfile_data_key): Change type and declare later.
1742 (DBX_SYMFILE_INFO): Rewrite.
1743 * dbxread.c (dbx_objfile_data_key): Change type.
1744 (dbx_symfile_init): Update.
1745 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1746 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1747 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1748
cb60f420
TT
17492019-07-10 Tom Tromey <tromey@adacore.com>
1750
1751 * jit.c (jit_program_space_key): Change type. Move lower.
1752 (get_jit_program_space_data): Update.
1753 (jit_program_space_data_cleanup): Remove.
1754 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1755 Update.
1756 (struct jit_program_space_data): Add initializers.
1757
51df2ae3
TT
17582019-07-10 Tom Tromey <tromey@adacore.com>
1759
1760 * solib-darwin.c (struct darwin_info): Add initializers.
1761 (solib_darwin_pspace_data): Change type.
1762 (darwin_pspace_data_cleanup): Remove.
1763 (get_darwin_info, _initialize_darwin_solib): Update.
1764
18101a35
TT
17652019-07-10 Tom Tromey <tromey@adacore.com>
1766
1767 * remote-sim.c (struct sim_inferior_data): Add initializers,
1768 constructor, and destructor.
1769 (sim_inferior_data_key): Change type. Move lower.
1770 (check_for_duplicate_sim_descriptor): Update.
1771 (get_sim_inferior_data): Use new. Update.
1772 (~sim_inferior_data_cleanup): Rename from
1773 sim_inferior_data_cleanup. Simplify.
1774 (gdbsim_close_inferior, simulator_command)
1775 (sim_command_completer, _initialize_remote_sim): Update.
1776 (next_pid, INITIAL_PID): Move earlier.
1777
05b08ac1
TT
17782019-07-10 Tom Tromey <tromey@adacore.com>
1779
1780 * python/python-internal.h (create_thread_object): Return
1781 gdbpy_ref.
1782 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1783 * python/py-inferior.c (struct threadlist_entry): Add
1784 constructor.
1785 <thread_obj>: Now a gdbpy_ref.
1786 (thread_to_thread_object): Update.
1787 (add_thread_object): Use new.
1788 (delete_thread_object): Use delete.
1789 (infpy_threads): Update.
1790 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1791 GIL.
1792
32372d80
TT
17932019-07-10 Tom Tromey <tromey@adacore.com>
1794
1795 * valops.c (value_cast): Specialize error message for Ada.
1796
5c458ae8
SM
17972019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1798
1799 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1800
4c462cb0
SM
18012019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1802
1803 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1804 bpstat_should_step): Return bool, adjust comments.
1805 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1806 bpstat_should_step): Likewise.
1807
89abbcc2
AH
18082019-07-10 Alan Hayward <alan.hayward@arm.com>
1809
1810 * features/Makefile: Use feature target descriptions for Arm.
1811 * features/arm/arm-core.c: Generate new file.
1812 * features/arm/arm-fpa.c: Likewise.
1813 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1814 * features/arm/arm-m-profile.c: Likewise.
1815 * features/arm/arm-vfpv2.c: Likewise.
1816 * features/arm/arm-vfpv3.c: Likewise.
1817 * features/arm/xscale-iwmmxt.c: Likewise.
1818 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1819
166a82be
AH
18202019-07-10 Alan Hayward <alan.hayward@arm.com>
1821
1822 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1823 ptrace earlier.
1824
9fb4c7e9
AH
18252019-07-10 Alan Hayward <alan.hayward@arm.com>
1826
1827 * features/aarch64-pauth.c: Regenerate.
1828
e2d0f980
SM
18292019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1830
1831 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1832 bool.
1833 (bpstat_what): Use false instead of 0.
1834
a38118e5
PA
18352019-07-09 Pedro Alves <palves@redhat.com>
1836
1837 * break-catch-throw.c (is_exception_catchpoint): New.
1838 * breakpoint.c (print_one_breakpoint_location): New parameter
1839 'raw_loc'. Handle it. Use
1840 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1841 looking at the breakpoint's type.
1842 (print_one_breakpoint): If handling "maint info breakpoints", also
1843 print locations of exception catchpoints.
1844 * breakpoint.h (is_exception_catchpoint): Declare.
1845
cb1e4e32
PA
18462019-07-09 Pedro Alves <palves@redhat.com>
1847
1848 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1849 "addr" field.
1850 (allocate_location_exception_catchpoint): New.
1851 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1852 (initialize_throw_catchpoint_ops): Install
1853 allocate_location_exception_catchpoint as allocate_location
1854 method.
1855 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1856 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1857 bp_loc_other.
1858 (breakpoint_address_is_meaningful): Delete.
1859 (bl_address_is_meaningful): New.
1860 (breakpoint_locations_match): Adjust comment.
1861 (bp_location_from_bp_type): New, factored out of...
1862 (bp_location::bp_location(breakpoint *)): ... this.
1863 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1864 factored out of...
1865 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1866 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1867 breakpoint_address_is_meaningful.
1868 (bp_locations_compare): Adjust comment.
1869 (update_global_location_list): Use bl_address_is_meaningful
1870 instead of breakpoint_address_is_meaningful.
1871 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1872 explicit.
1873 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1874 * python/py-breakpoint.c (bppy_get_location): No longer check
1875 whether location is null.
1876
b58a68fe
PA
18772019-07-09 Pedro Alves <palves@redhat.com>
1878
1879 PR c++/15468
1880 * breakpoint.c (print_one_breakpoint_location): Remove
1881 single-location assert.
1882
268a13a5
TT
18832019-07-09 Tom Tromey <tom@tromey.com>
1884
1885 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1886 * configure: Rebuild.
1887 * configure.ac: Change common to gdbsupport.
1888 * gdbsupport: Rename from common.
1889 * acinclude.m4: Change common to gdbsupport.
1890 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1891 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1892 gdbsupport.
1893 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1894 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1895 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1896 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1897 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1898 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1899 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1900 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1901 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1902 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1903 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1904 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1905 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1906 coff-pe-read.c, command.h, compile/compile-c-support.c,
1907 compile/compile-c.h, compile/compile-cplus-symbols.c,
1908 compile/compile-cplus-types.c, compile/compile-cplus.h,
1909 compile/compile-loc2c.c, compile/compile.c, completer.c,
1910 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1911 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1912 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1913 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1914 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1915 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1916 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1917 features/aarch64-core.c, features/aarch64-fpu.c,
1918 features/aarch64-pauth.c, features/aarch64-sve.c,
1919 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1920 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1921 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1922 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1923 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1924 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1925 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1926 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1927 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1928 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1929 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1930 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1931 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1932 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1933 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1934 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1935 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1936 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1937 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1938 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1939 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1940 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1941 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1942 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1943 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1944 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1945 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1946 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1947 minsyms.c, mips-linux-tdep.c, namespace.h,
1948 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1949 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1950 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1951 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1952 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1953 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1954 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1955 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1956 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1957 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1958 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1959 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1960 procfs.c, producer.c, progspace.h, psymtab.h,
1961 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1962 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1963 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1964 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1965 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1966 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1967 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1968 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1969 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1970 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1971 target-memory.c, target.c, target.h, target/waitstatus.c,
1972 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1973 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1974 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1975 unittests/array-view-selftests.c,
1976 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1977 unittests/common-utils-selftests.c,
1978 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1979 unittests/format_pieces-selftests.c,
1980 unittests/function-view-selftests.c,
1981 unittests/lookup_name_info-selftests.c,
1982 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1983 unittests/mkdir-recursive-selftests.c,
1984 unittests/observable-selftests.c,
1985 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1986 unittests/parse-connection-spec-selftests.c,
1987 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1988 unittests/scoped_fd-selftests.c,
1989 unittests/scoped_mmap-selftests.c,
1990 unittests/scoped_restore-selftests.c,
1991 unittests/string_view-selftests.c, unittests/style-selftests.c,
1992 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1993 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1994 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1995 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1996 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1997 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1998
5b0e2db4
AB
19992019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2002 bool value.
2003 (decode_digits_ordinary): Set explicit_line field in sal.
2004 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2005 symtab_and_line that was set on an explicit line number in
2006 assembler code. Do always update the recorded symtab and line if
2007 we do skip the prologue.
2008
0ba852ab
AB
20092019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2010
2011 * breakpoint.c (set_breakpoint_location_function): Remove
2012 explicit_loc parameter.
2013 (momentary_breakpoint_from_master): Update call to
2014 set_breakpoint_location_function.
2015 (add_location_to_breakpoint): Likewise.
2016
b3a7d171
AB
20172019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2018
2019 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2020 required features based on default bfd type when no specific bfd
2021 is present.
2022
1f6f6e21
PW
20232019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2024
2025 * NEWS: Mention that GDB printf and eval commands can now print
2026 C-style and Ada-style convenience var strings without
2027 calling the inferior.
2028 * printcmd.c (printf_c_string): Locally print GDB internal var
2029 instead of transiting via the inferior.
2030 (printf_wide_c_string): Likewise.
2031
20322019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2033
2034 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2035
0598af48
TT
20362019-07-04 Tom Tromey <tom@tromey.com>
2037
2038 PR tui/24724:
2039 * tui/tui-winsource.c (tui_clear_source_content): Update.
2040 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2041 (tui_update_breakpoint_info): Update.
2042 (tui_set_exec_info_content): Update.
2043 * tui/tui-source.c (tui_set_source_content_nil): Update.
2044 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2045 has_break.
2046 * tui/tui-data.h (enum tui_bp_flag): New.
2047 (tui_bp_flags): New enum flags type.
2048 (struct tui_source_element) <break_mode>: Change type. Rename
2049 from has_break.
2050 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2051 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2052 constants.
2053 * tui/tui-winsource.h: Fix comment.
2054
350fab54
AH
20552019-07-04 Alan Hayward <alan.hayward@arm.com>
2056
2057 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2058 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2059 (store_fpregs_to_thread)
2060 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2061 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2062 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2063 (IWMMXT_REGS_SIZE): Add define.
2064 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2065 (fetch_vfp_regs, store_vfp_regs)
2066 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2067 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2068
f0452268
AH
20692019-07-04 Alan Hayward <alan.hayward@arm.com>
2070
2071 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2072 defines.
2073 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2074 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2075 (ARM_INT_REGISTER_SIZE): ...to this.
2076 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2077 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2078 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2079 (arm_linux_collect_gregset, supply_nwfpe_register)
2080 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2081 defines.
2082 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2083 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2084 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2085 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2086 (arm_return_in_memory, arm_store_return_value)
2087 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2088 (arm_record_ld_st_multiple): Likewise.
2089 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2090 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2091
e935475c
AH
20922019-07-04 Alan Hayward <alan.hayward@arm.com>
2093
2094 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2095 AARCH64_DISPLACED_MODIFIED_INSNS.
2096 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2097 (aarch64_displaced_step_copy_insn): Likewise.
2098 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2099 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2100 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2101 ARM_DISPLACED_MODIFIED_INSNS.
2102 * arm-tdep.c (arm_gdbarch_init): Likewise.
2103 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2104 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2105 (struct arm_displaced_step_closure): Use
2106 ARM_DISPLACED_MODIFIED_INSNS.
2107
df0bb381
AH
21082019-07-04 Alan Hayward <alan.hayward@arm.com>
2109
2110 * features/Makefile: Remove unused xml files.
2111 * features/aarch64.xml: Remove.
2112 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2113 * features/i386/amd64-avx-avx512.xml: Remove.
2114 * features/i386/amd64-avx-linux.xml: Remove.
2115 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2116 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2117 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2118 * features/i386/amd64-avx-mpx.xml: Remove.
2119 * features/i386/amd64-avx.xml: Remove.
2120 * features/i386/amd64-linux.xml: Remove.
2121 * features/i386/amd64-mpx-linux.xml: Remove.
2122 * features/i386/amd64-mpx.xml: Remove.
2123 * features/i386/amd64.xml: Remove.
2124 * features/i386/i386-avx-avx512-linux.xml: Remove.
2125 * features/i386/i386-avx-avx512.xml: Remove.
2126 * features/i386/i386-avx-linux.xml: Remove.
2127 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2128 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2129 * features/i386/i386-avx-mpx-linux.xml: Remove.
2130 * features/i386/i386-avx-mpx.xml: Remove.
2131 * features/i386/i386-avx.xml: Remove.
2132 * features/i386/i386-linux.xml: Remove.
2133 * features/i386/i386-mmx-linux.xml: Remove.
2134 * features/i386/i386-mmx.xml: Remove.
2135 * features/i386/i386-mpx-linux.xml: Remove.
2136 * features/i386/i386-mpx.xml: Remove.
2137 * features/i386/i386.xml: Remove.
2138 * features/i386/x32-avx-avx512-linux.xml: Remove.
2139 * features/i386/x32-avx-linux.xml: Remove.
2140 * features/i386/x32-linux.xml: Remove.
2141
edd6266a
AH
21422019-07-04 Alan Hayward <alan.hayward@arm.com>
2143
2144 * regformats/aarch64.dat: Remove.
2145 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2146 * regformats/i386/amd64-avx-linux.dat: Remove.
2147 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2148 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2149 * regformats/i386/amd64-linux.dat: Remove.
2150 * regformats/i386/amd64-mpx-linux.dat: Remove.
2151 * regformats/i386/amd64.dat: Remove.
2152 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2153 * regformats/i386/i386-avx-linux.dat: Remove.
2154 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2155 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2156 * regformats/i386/i386-linux.dat: Remove.
2157 * regformats/i386/i386-mmx-linux.dat: Remove.
2158 * regformats/i386/i386-mpx-linux.dat: Remove.
2159 * regformats/i386/i386.dat: Remove.
2160 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2161 * regformats/i386/x32-avx-linux.dat: Remove.
2162 * regformats/i386/x32-linux.dat: Remove.
2163
2b40fda7
AH
21642019-07-04 Alan Hayward <alan.hayward@arm.com>
2165
2166 * aarch64-tdep.c: Remove xml self tests.
2167 * amd64-linux-tdep.c: Likewise.
2168 * amd64-tdep.c: Likewise.
2169 * i386-linux-tdep.c: Likewise.
2170 * i386-tdep.c: Likewise.
2171
5f4ba3e7
PA
21722019-07-03 Pedro Alves <palves@redhat.com>
2173
2174 PR cli/24732
2175 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2176 (pipe_cmd_option_defs): New.
2177 (make_pipe_cmd_options_def_group): New.
2178 (pipe_command): Use gdb::option::process_options.
2179 (pipe_command_completer): New function.
2180 (_initialize_cli_cmds): Install completer for "pipe" command.
2181
3d9be6f5
PA
21822019-07-03 Pedro Alves <palves@redhat.com>
2183
2184 * cli/cli-option.c (union option_value) <string>: New field.
2185 (struct option_def_and_value): Add ctor, move ctor, dtor and
2186 use DISABLE_COPY_AND_ASSIGN.
2187 (option_def_and_value::clear_value): New.
2188 (parse_option, save_option_value_in_ctx, get_val_type_str)
2189 (add_setshow_cmds_for_options): Handle var_string.
2190 * cli-option.h (union option_def::var_address) <string>: New
2191 field.
2192 (struct string_option_def): New.
2193 * maint-test-options.c (struct test_options_opts): Add default
2194 ctor and use DISABLE_COPY_AND_ASSIGN.
2195 <string_opt>: New field.
2196 (test_options_opts::~test_options_opts): New.
2197 (test_options_opts::dump): Also dump "-string".
2198 (test_options_option_defs): Install "string.
2199
41fc454c
PA
22002019-07-03 Pedro Alves <palves@redhat.com>
2201
2202 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2203 option_value with a null enumeration.
2204 (complete_options): Save the option values in the context.
2205 (save_option_value_in_ctx): New, factored out from ...
2206 (process_options): ... here.
2207 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2208 of the function.
2209 * maint-test-options.c (test_options_opts::dump): New, factored
2210 out from ...
2211 (maintenance_test_options_command_mode): ... here.
2212 (maintenance_test_options_command_completion_result): Delete.
2213 (maintenance_test_options_command_completion_text): Update
2214 comment.
2215 (maintenance_show_test_options_completion_result): Change
2216 prototype. Just print
2217 maintenance_test_options_command_completion_text.
2218 (save_completion_result): New.
2219 (maintenance_test_options_completer_mode): Pass options context to
2220 complete_options, and then save a dump.
2221 (_initialize_maint_test_options): Use add_cmd to install "maint
2222 show test-options-completion-result".
2223
fdbc9870
PA
22242019-07-03 Pedro Alves <palves@redhat.com>
2225
2226 * NEWS (New commands): Mention "with" and "maint with".
2227 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2228 (with_command, with_command_completer): New.
2229 (pipe_command): Adjust to new repeat_previous
2230 interface.
2231 (_initialize_cli_cmds): Install the "with" command and its "w"
2232 alias.
2233 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2234 declarations.
2235 * cli/cli-setshow.c (parse_cli_var_uinteger)
2236 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2237 argument strings for all var_types.
2238 (get_setshow_command_value_string): New, factored out from ...
2239 (do_show_command): ... this.
2240 * cli/cli-setshow.h: Include <string>.
2241 (get_setshow_command_value_string): Declare.
2242 * command.h (repeat_previous): Now returns const char *. Adjust
2243 comment.
2244 * maint.c: Include "cli/cli-cmds.h".
2245 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2246 (_initialize_maint_cmds): Register the "maintenance with" command.
2247 * top.c (repeat_previous): Move bits from pipe_command here:
2248 Return the saved command line, if any; error out if there's no
2249 command to relaunch.
2250
c6ac8931
PA
22512019-07-03 Pedro Alves <palves@redhat.com>
2252
2253 * NEWS (New commands): Mention "maint set/show test-settings"
2254 instead of "maint test-settings".
2255 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2256 (maintenance_test_settings_set_list): Rename to ...
2257 (maintenance_set_test_settings_list): ... this.
2258 (maintenance_test_settings_show_list): Rename to ...
2259 (maintenance_show_test_settings_list): ... this.
2260 (maintenance_test_settings_cmd): Delete.
2261 (maintenance_test_settings_set_cmd): ...
2262 (maintenance_set_test_settings_cmd): ... this.
2263 (maintenance_test_settings_show_cmd): ...
2264 (maintenance_show_test_settings_cmd): ... this.
2265 (maintenance_test_settings_show_value_cmd):
2266 (maintenance_show_test_settings_value_cmd): ... this.
2267 (_initialize_maint_test_settings): No longer install the "maint
2268 test-settings" prefix command. Rename "maint test-settings set"
2269 to "maint set test-settings", and "maint test-settings show" to
2270 "maint show test-settings". Adjust all subcommands.
2271
d1fcf2fd
PA
22722019-07-03 Pedro Alves <palves@redhat.com>
2273
2274 * maint-test-settings.c: Fix file's intro comment. Replace all
2275 references to "test-options" with references to "test-settings",
2276 in comments.
2277
970f9d09
PA
22782019-07-03 Pedro Alves <palves@redhat.com>
2279
2280 * maint-test-settings.c (maintenance_test_settings_xxx)
2281 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2282 New.
2283 (maintenance_test_settings_enums): Use them.
2284 (maintenance_test_settings_enum): Default to
2285 maintenance_test_settings_xxx.
2286 (_initialize_maint_test_settings): Initialize
2287 MAINTENANCE_TEST_SETTINGS_FILENAME.
2288
f3869b1a
SM
22892019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2290
2291 * breakpoint.h (remove_breakpoints_inf): Change return type to
2292 void, move function documentation here.
2293 * breakpoint.c (remove_breakpoints_inf): Change return type to
2294 void, move function documentation to header.
2295
54d66006
PA
22962019-07-02 Pedro Alves <palves@redhat.com>
2297
2298 * NEWS (Completion improvements): Mention "info threads".
2299 * thread.c (struct info_threads_opts, info_threads_option_defs)
2300 (make_info_threads_options_def_group): New.
2301 (info_threads_command): Use gdb::option::process_options.
2302 (info_threads_command_completer): New.
2303 (_initialize_thread): Use gdb::option::build_help to build the
2304 help text for "info threads".
2305
854f6088
SM
23062019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2307
2308 * defs.h (generic_load): Move from here...
2309 * symfile.h (generic_load): ... to here. Rename name parameter
2310 to args.
2311 * symfile.c (generic_load): Add comment.
2312
54ee4252
TT
23132019-07-01 Tom Tromey <tromey@adacore.com>
2314
2315 * dwarf2read.c
2316 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2317 declaration of without_params. Fix formatting.
2318
65392b3e
TT
23192019-07-01 Tom Tromey <tromey@adacore.com>
2320
2321 * ada-exp.y (find_primitive_type): Update.
2322 * ada-lang.h (ada_lookup_symbol): Update.
2323 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2324 parameter.
2325 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2326
7d7571f0
SDJ
23272019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2328
2329 PR breakpoints/24541
2330 * gdbarch.c: Regenerate.
2331 * gdbarch.h: Regenerate.
2332 * gdbarch.sh: Add 'stap_adjust_register'.
2333 * i386-tdep.c: Include '<unordered_set>'.
2334 (i386_stap_adjust_register): New function.
2335 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2336 * stap-probe.c (stap_parse_register_operand): Call
2337 'gdbarch_stap_adjust_register'.
2338
5af5392a
SDJ
23392019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2340
2341 PR python/24742
2342 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2343 * python/python.c (do_start_initialization): Use 'xmalloc'
2344 instead of 'PyMem_Malloc'.
2345
10d06d82
TT
23462019-06-28 Tom Tromey <tromey@adacore.com>
2347
2348 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2349 for Ada.
2350
1b7f24cd
TT
23512019-06-27 Tom Tromey <tromey@adacore.com>
2352
2353 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2354 objfile_key.
2355 (arm_find_mapping_symbol, arm_record_special_symbol)
2356 (_initialize_arm_tdep): Update.
2357 (arm_objfile_data_free): Remove.
2358
3d507ff2
TT
23592019-06-27 Tom Tromey <tromey@adacore.com>
2360
2361 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2362 to cp_print_static_field.
2363
762c164d
TT
23642019-06-26 Tom Tromey <tromey@adacore.com>
2365
2366 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2367 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2368 declare.
2369
aa2f9bcf
AH
23702019-06-26 Alan Hayward <alan.hayward@arm.com>
2371
2372 * features/aarch64-core.c (create_feature_aarch64_core):
2373 Regenerate.
2374 * features/aarch64-core.xml: Add cpsr flags.
2375
3426ae57
AH
23762019-06-26 Alan Hayward <alan.hayward@arm.com>
2377
2378 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2379 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2380
4838e44c
SM
23812019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2382
2383 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2384 field.
2385 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2386 use.
2387 (arm_record_special_symbol): Don't insert new symbol in sorted
2388 position, push it at the end.
2389
54cc7474
SM
23902019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2391
2392 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2393 (arm_mapping_symbol_s): Remove.
2394 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2395 (arm_mapping_symbol_vec): New typedef.
2396 (struct arm_per_objfile): Add constructor.
2397 <section_maps>: Change type to
2398 std::unique_ptr<arm_mapping_symbol_vec[]>.
2399 (arm_compare_mapping_symbols): Remove.
2400 (arm_find_mapping_symbol): Adjust to section_maps type change.
2401 (arm_objfile_data_free): Call delete on arm_per_objfile.
2402 (arm_record_special_symbol): Adjust to section_maps type change.
2403 Allocate arm_per_objfile with new.
2404
b65b566c
PW
24052019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2406
2407 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2408 with the command prefix.
2409
c2fc64f5
TT
24102019-06-25 Tom Tromey <tom@tromey.com>
2411
2412 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2413 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2414
fb54fa76
TT
24152019-06-25 Tom Tromey <tom@tromey.com>
2416
2417 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2418 type.
2419 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2420 protected.
2421
f7952c57
TT
24222019-06-25 Tom Tromey <tom@tromey.com>
2423
2424 * tui/tui-winsource.c
2425 (tui_source_window_base::set_is_exec_point_at): Add check against
2426 LOA_ADDRESS.
2427
17568d78
TT
24282019-06-25 Tom Tromey <tom@tromey.com>
2429
2430 * tui/tui-source.c (tui_set_source_content): Don't check before
2431 xfree.
2432 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2433
53e7cdba
TT
24342019-06-25 Tom Tromey <tom@tromey.com>
2435
2436 * tui/tui-winsource.h (tui_update_source_window_as_is)
2437 (tui_alloc_source_buffer, tui_line_is_displayed)
2438 (tui_addr_is_displayed): Change type of win_info.
2439 * tui/tui-winsource.c (tui_update_source_window_as_is)
2440 (tui_clear_source_content, tui_show_source_line)
2441 (tui_show_source_content, tui_source_window_base::refill)
2442 (tui_source_window_base::set_is_exec_point_at)
2443 (tui_source_window_base::set_is_exec_point_at)
2444 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2445 (tui_alloc_source_buffer, tui_line_is_displayed)
2446 (tui_addr_is_displayed): Change type of win_info. Update.
2447 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2448 (tui_source_window_base::do_make_visible_with_new_height):
2449 Update.
2450 * tui/tui-source.c (tui_set_source_content)
2451 (tui_set_source_content_nil)
2452 (tui_source_window::do_scroll_vertical): Update.
2453 * tui/tui-layout.c (show_layout): Update.
2454 * tui/tui-disasm.c (tui_set_disassem_content)
2455 (tui_disasm_window::do_scroll_vertical): Update.
2456 * tui/tui-data.h (tui_win_content): Remove.
2457 (struct tui_gen_win_info) <content, content_size>: Remove.
2458 (struct tui_source_element): Add initializers and destructor.
2459 (union tui_which_element, struct tui_win_element): Remove.
2460 (struct tui_source_window_base) <content>: New field.
2461 (struct tui_data_window): Remove destructor.
2462 (tui_alloc_content, tui_free_win_content)
2463 (tui_free_all_source_wins_content): Don't declare.
2464 * tui/tui-data.c (tui_initialize_static_data): Update.
2465 (init_content_element, tui_alloc_content): Remove.
2466 (~tui_gen_win_info): Update.
2467 (~tui_data_window, tui_free_all_source_wins_content)
2468 (tui_free_win_content, free_content, free_content_elements):
2469 Remove.
2470
7908abbf
TT
24712019-06-25 Tom Tromey <tom@tromey.com>
2472
2473 * tui/tui-winsource.h (tui_clear_source_content)
2474 (tui_erase_source_content, tui_show_source_content): Change type
2475 of win_info.
2476 * tui/tui-winsource.c (tui_clear_source_content)
2477 (tui_erase_source_content, tui_show_source_content): Change type
2478 of win_info.
2479 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2480 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2481 win_info.
2482 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2483 win_info.
2484 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2485
02c28df0
TT
24862019-06-25 Tom Tromey <tom@tromey.com>
2487
2488 * tui/tui-winsource.c (tui_clear_source_content)
2489 (tui_source_window_base::set_is_exec_point_at): Update.
2490 * tui/tui-source.c (tui_set_source_content_nil): Update.
2491 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2492 a bool.
2493 * tui/tui-data.c (init_content_element): Update.
2494
6658b1bf
TT
24952019-06-25 Tom Tromey <tom@tromey.com>
2496
2497 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2498 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2499 * tui/tui-layout.c (init_and_make_win): Update.
2500 * tui/tui.h (enum tui_win_type): Update.
2501 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2502 tui_win_is_auxillary.
2503 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2504 tui_win_is_auxillary.
2505
21e1c91e
TT
25062019-06-25 Tom Tromey <tom@tromey.com>
2507
2508 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2509 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2510 (tui_delete_data_content_windows, tui_display_all_data)
2511 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2512 Update.
2513 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2514 * tui/tui-regs.c (tui_last_regs_line_no)
2515 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2516 (tui_show_registers): Update.
2517 (tui_show_register_group): Return void. Update.
2518 (tui_display_registers_from, tui_display_reg_element_at_line)
2519 (tui_display_registers_from_line, tui_check_register_values):
2520 Update.
2521 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2522 member.
2523 (struct tui_data_window) <regs_content>: Now a std::vector.
2524 <regs_content_count>: Remove.
2525 (tui_add_content_elements, tui_free_data_content): Don't declare.
2526 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2527 (init_content_element): Remove DATA_WIN case. Add assert.
2528 (tui_add_content_elements): Remove.
2529 (tui_data_window): Update.
2530 (tui_free_data_content): Remove.
2531 (free_content_elements): Remove DATA_WIN case.
2532
115ac53b
TT
25332019-06-25 Tom Tromey <tom@tromey.com>
2534
2535 * tui/tui-data.c (tui_data_item_window): Update.
2536 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2537 * tui/tui-windata.c (tui_display_all_data)
2538 (tui_display_data_from_line): Update.
2539 (tui_check_data_values): Remove.
2540 * tui/tui-regs.c (tui_show_register_group)
2541 (tui_display_reg_element_at_line): Update.
2542 * tui/tui-hooks.c (tui_register_changed)
2543 (tui_refresh_frame_and_register_information): Call
2544 tui_check_register_values.
2545 * tui/tui-data.h (struct tui_data_window) <data_content,
2546 data_content_count, data_type>: Remove.
2547 (enum tui_data_type): Remove.
2548
2549 * tui/tui-data.c (tui_data_window::clear_detail)
2550 (~tui_data_window): Update.
2551
eaf9738b
TT
25522019-06-25 Tom Tromey <tom@tromey.com>
2553
2554 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2555 declare.
2556 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2557 Rename from tui_first_data_item_displayed. Update.
2558 (tui_data_window::refresh_all)
2559 (tui_data_window::do_scroll_vertical): Update.
2560 * tui/tui-data.h (struct tui_data_window)
2561 <first_data_item_displayed>: Declare new method.
2562
31ca4723
TT
25632019-06-25 Tom Tromey <tom@tromey.com>
2564
2565 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2566 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2567 contents...
2568 (tui_initialize_static_data): ...here.
2569
41bcff7f
TT
25702019-06-25 Tom Tromey <tom@tromey.com>
2571
2572 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2573 (tui_display_registers_from, tui_check_register_values): Update.
2574 (tui_display_register): Remove win_info parameter; update.
2575 (tui_get_register): Change type of parameters.
2576 * tui/tui-data.h (struct tui_data_element): Remove.
2577 (union tui_which_element) <data>: Remove.
2578 <data_window>: Change type.
2579 (struct tui_data_item_window): New.
2580 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2581 case. Add assert.
2582 (~tui_data_item_window): New destructor.
2583 (free_content_elements): Remove DATA_ITEM_WIN case.
2584
d2802c33
TT
25852019-06-25 Tom Tromey <tom@tromey.com>
2586
2587 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2588 Remove.
2589
dd835f8b
TT
25902019-06-25 Tom Tromey <tom@tromey.com>
2591
2592 * tui/tui-data.h (struct tui_command_element): Remove.
2593 (union tui_which_element) <command>: Remove.
2594 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2595 assert.
2596 (free_content_elements): Remove CMD_WIN case.
2597
bd7db367
TT
25982019-06-25 Tom Tromey <tom@tromey.com>
2599
2600 * tui/tui-layout.c (tui_set_layout): Update.
2601 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2602 * tui/tui-data.c (layout_def): Update.
2603
3add462f
TT
26042019-06-25 Tom Tromey <tom@tromey.com>
2605
2606 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2607 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2608 (tui_source_window_base::set_new_height): Update.
2609 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2610 Update.
2611 (tui_set_locator_fullname, tui_set_locator_info)
2612 (tui_show_frame_info): Update.
2613 * tui/tui-source.c (tui_set_source_content)
2614 (tui_source_is_displayed): Update.
2615 * tui/tui-layout.c (show_source_disasm_command, show_data)
2616 (show_source_or_disasm_and_command): Update.
2617 * tui/tui-disasm.c (tui_set_disassem_content)
2618 (tui_get_begin_asm_address): Update.
2619 * tui/tui-data.h (struct tui_locator_element): Remove.
2620 (union tui_which_element) <locator>: Remove.
2621 (struct tui_locator_window): New.
2622 (tui_locator_win_info_ptr): Change return type.
2623 * tui/tui-data.c (_locator): Change type.
2624 (tui_locator_win_info_ptr): Change return type.
2625 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2626 (tui_alloc_content): Add assert.
2627
489e9d8b
TT
26282019-06-25 Tom Tromey <tom@tromey.com>
2629
2630 * tui/tui-winsource.c
2631 (tui_exec_info_window::maybe_allocate_content): New method.
2632 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2633 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2634 (make_source_or_disasm_window): Add cast.
2635 * tui/tui-data.h (union tui_which_element) <simple_string>:
2636 Remove.
2637 (struct tui_source_info): New.
2638 (struct tui_source_window_base) <execution_info>: Change type.
2639 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2640 case, and add assert.
2641 (tui_alloc_content): Add assert.
2642
c3fabb7d
TT
26432019-06-25 Tom Tromey <tom@tromey.com>
2644
2645 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2646 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2647 * tui/tui-data.c (tui_alloc_win_info): Remove.
2648
bbc228ee
TT
26492019-06-25 Tom Tromey <tom@tromey.com>
2650
2651 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2652 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2653 can_highlight.
2654
5fcee43a
TT
26552019-06-25 Tom Tromey <tom@tromey.com>
2656
2657 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2658 make_visible_with_new_height method.
2659 (tui_win_info::make_visible_with_new_height): New method.
2660 (tui_source_window_base::do_make_visible_with_new_height)
2661 (tui_data_window::do_make_visible_with_new_height)
2662 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2663 (make_visible_with_new_height): Remove.
2664 (tui_resize_all, tui_adjust_win_heights): Use
2665 make_visible_with_new_height method.
2666 * tui/tui-data.h (struct tui_win_info)
2667 <do_make_visible_with_new_height, make_visible_with_new_height>:
2668 New methods.
2669 (struct tui_source_window_base, struct tui_data_window)
2670 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2671 methods.
2672
d83f1fe6
TT
26732019-06-25 Tom Tromey <tom@tromey.com>
2674
2675 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2676 method.
2677 (update_tab_width): Call update_tab_width method.
2678 * tui/tui-data.h (struct tui_win_info)
2679 (struct tui_source_window_base) <update_tab_width>: New methods.
2680
17374de4
TT
26812019-06-25 Tom Tromey <tom@tromey.com>
2682
2683 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2684 parameter.
2685 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2686 parameter.
2687 (tui_gen_win_info::make_visible): Update.
2688 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2689 parameter.
2690 * tui/tui-data.h (enum tui_box): New enum.
2691 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2692
f936bca2
TT
26932019-06-25 Tom Tromey <tom@tromey.com>
2694
2695 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2696 init_and_make_win for EXEC_INFO_WIN.
2697 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2698 longer inline.
2699 (struct tui_win_info) <~tui_win_info>: Inline.
2700 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2701 Don't declare.
2702 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2703 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2704 Remove.
2705 (tui_initialize_static_data): Update.
2706 (~tui_gen_win_info): Handle more cleanup here.
2707 (~tui_source_window_base): Delete "execution_info".
2708 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2709
d6ba6a11
TT
27102019-06-25 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui-layout.c (make_command_window): Don't set
2713 can_highlight.
2714 (show_source_disasm_command): Call the reset method.
2715 (show_data): Don't set can_highlight. Call the reset method.
2716 (tui_gen_win_info::reset): Rename from init_gen_win_info
2717 (init_and_make_win): Simplify. Return tui_gen_win_info.
2718 (show_source_or_disasm_and_command): Call the reset method.
2719 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2720 (struct tui_cmd_window): Set can_highlight.
2721
48a3bd16
TT
27222019-06-25 Tom Tromey <tom@tromey.com>
2723
2724 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2725 from make_visible.
2726 (tui_make_visible, tui_make_invisible): Rewrite.
2727 (tui_win_info::make_visible): Remove.
2728 (tui_source_window_base::make_visible): Update.
2729 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2730 method. Moved from...
2731 (struct tui_win_info) <make_visible>: ...here.
2732
c3bd716f
TT
27332019-06-25 Tom Tromey <tom@tromey.com>
2734
2735 * tui/tui-winsource.c
2736 (tui_source_window_base::do_scroll_horizontal): Remove direction
2737 parameter.
2738 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2739 direction parameter.
2740 * tui/tui-win.c (tui_win_info::forward_scroll)
2741 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2742 (tui_win_info::right_scroll): Update.
2743 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2744 direction parameter.
2745 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2746 direction parameter.
2747 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2748 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2749 Remove direction parameter.
2750 (struct tui_source_window_base, struct tui_source_window)
2751 (struct tui_disasm_window, struct tui_data_window)
2752 (struct tui_cmd_window): Update.
2753
21c32dca
TT
27542019-06-25 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-winsource.h (tui_set_exec_info_content)
2757 (tui_show_exec_info_content, tui_erase_exec_info_content)
2758 (tui_clear_exec_info_content, tui_update_exec_info): Change
2759 argument to tui_source_window_base.
2760 * tui/tui-winsource.c (tui_set_exec_info_content)
2761 (tui_show_exec_info_content, tui_erase_exec_info_content)
2762 (tui_clear_exec_info_content, tui_update_exec_info): Change
2763 argument to tui_source_window_base.
2764
73fbdc65
TT
27652019-06-25 Tom Tromey <tom@tromey.com>
2766
2767 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2768 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2769
33325343
TT
27702019-06-25 Tom Tromey <tom@tromey.com>
2771
2772 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2773 check.
2774
29d2c474
TT
27752019-06-25 Tom Tromey <tom@tromey.com>
2776
2777 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2778 type to void.
2779 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2780 type to void.
2781 * tui/tui-source.c (tui_set_source_content): Update.
2782 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2783
152f3f4b
TT
27842019-06-25 Tom Tromey <tom@tromey.com>
2785
2786 * tui/tui-win.c (window_name_completer, tui_set_focus)
2787 (tui_all_windows_info): Use name method.
2788 * tui/tui-data.h (struct tui_gen_win_info)
2789 (struct tui_source_window, struct tui_disasm_window)
2790 (struct tui_data_window, struct tui_cmd_window) <name>: New
2791 method.
2792 (tui_win_name): Don't declare.
2793 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2794 (tui_win_name): Remove.
2795
be4da588
TT
27962019-06-25 Tom Tromey <tom@tromey.com>
2797
2798 * tui/tui-winsource.h (tui_update_source_window)
2799 (tui_update_source_window_as_is): Change parameter type.
2800 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2801 to be a tui_source_window_base.
2802 (tui_update_source_window_as_is): Likewise.
2803 * tui/tui-win.c (make_visible_with_new_height): Update.
2804
5b81daba
TT
28052019-06-25 Tom Tromey <tom@tromey.com>
2806
2807 * tui/tui-winsource.c (tui_erase_source_content)
2808 (tui_show_source_content, tui_show_exec_info_content)
2809 (tui_erase_exec_info_content): Use refresh_window method.
2810 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2811 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2812 from tui_refresh_win.
2813 (tui_data_window::refresh_window): New method.
2814 (tui_win_info::refresh, tui_source_window_base::refresh)
2815 (tui_refresh_all): Use refresh_window method.
2816 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2817 method.
2818 * tui/tui-regs.c (tui_display_register): Call refresh_window
2819 method.
2820 * tui/tui-layout.c (show_source_disasm_command)
2821 (show_source_or_disasm_and_command): Call refresh_window method.
2822 * tui/tui-data.h (struct tui_gen_win_info)
2823 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2824 New method.
2825
cb2ce893
TT
28262019-06-25 Tom Tromey <tom@tromey.com>
2827
2828 * tui/tui.c (tui_rl_other_window, tui_enable)
2829 (tui_is_window_visible, tui_get_command_dimension): Update.
2830 * tui/tui-winsource.c (tui_update_source_window_as_is)
2831 (tui_clear_source_content, tui_erase_source_content)
2832 (tui_show_source_line, tui_source_window_base::refill)
2833 (tui_source_window_base::do_scroll_horizontal)
2834 (tui_source_window_base::set_is_exec_point_at)
2835 (tui_update_breakpoint_info, tui_set_exec_info_content)
2836 (tui_alloc_source_buffer, tui_line_is_displayed)
2837 (tui_addr_is_displayed): Update.
2838 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2839 (tui_check_and_display_highlight_if_needed)
2840 (tui_win_info::make_visible, tui_win_info::refresh)
2841 (tui_refresh_all): Update.
2842 * tui/tui-windata.c (tui_first_data_item_displayed)
2843 (tui_delete_data_content_windows, tui_erase_data_content)
2844 (tui_display_all_data, tui_data_window::refresh_all)
2845 (tui_check_data_values): Update.
2846 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2847 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2848 (tui_win_info::backward_scroll, tui_refresh_all_win)
2849 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2850 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2851 (tui_source_window_base::set_new_height)
2852 (tui_data_window::set_new_height)
2853 (make_invisible_and_set_new_height)
2854 (make_visible_with_new_height, new_height_ok)
2855 (parse_scrolling_args): Update.
2856 * tui/tui-stack.c (tui_show_frame_info): Update.
2857 * tui/tui-source.c (tui_set_source_content)
2858 (tui_set_source_content_nil, tui_source_is_displayed)
2859 (tui_source_window::do_scroll_vertical): Update.
2860 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2861 (tui_display_registers_from, tui_display_reg_element_at_line)
2862 (tui_check_register_values, tui_reg_command): Update.
2863 * tui/tui-layout.c (tui_default_win_height)
2864 (show_source_disasm_command, show_data, init_and_make_win)
2865 (show_source_or_disasm_and_command): Update.
2866 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2867 (tui_redisplay_readline, tui_mld_flush)
2868 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2869 (tui_getc): Update.
2870 * tui/tui-disasm.c (tui_set_disassem_content)
2871 (tui_disasm_window::do_scroll_vertical): Update.
2872 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2873 Now virtual.
2874 (struct tui_win_info): Derive from tui_gen_win_info.
2875 <~tui_win_info>: Mark as override.
2876 <generic>: Remove member.
2877 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2878 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2879 (~tui_data_window, ~tui_win_info)
2880 (tui_free_all_source_wins_content): Update.
2881 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2882
ab313b35
TT
28832019-06-25 Tom Tromey <tom@tromey.com>
2884
2885 * tui/tui-layout.c (init_and_make_win): Use new.
2886 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2887 destructor, initializers.
2888 (tui_alloc_generic_win_info): Don't declare.
2889 * tui/tui-data.c (_locator): Add argument to constructor.
2890 (source_win, disasm_win): New globals.
2891 (exec_info): Remove.
2892 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2893 Update.
2894 (tui_alloc_generic_win_info): Remove.
2895 (init_content_element): Use new.
2896 (tui_win_info::tui_win_info): Update.
2897 (free_content_elements) <case DATA_WIN>: Use delete.
2898
dc2c33e4
TT
28992019-06-25 Tom Tromey <tom@tromey.com>
2900
2901 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2902 * tui/tui-windata.c (tui_first_data_item_displayed)
2903 (tui_delete_data_content_windows): Update.
2904 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2905 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2906 (tui_display_registers_from, tui_check_register_values): Update.
2907 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2908 pointer.
2909 * tui/tui-data.c (init_content_element): Update. Allocate the new
2910 window.
2911 (tui_free_data_content): Update.
2912 (free_content_elements) <case DATA_WIN>: Free the window.
2913
214a5cbe
TT
29142019-06-25 Tom Tromey <tom@tromey.com>
2915
2916 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2917 Update.
2918 * tui/tui-layout.c (make_command_window)
2919 (show_source_disasm_command, show_data, init_and_make_win)
2920 (show_source_or_disasm_and_command): Update.
2921 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2922 method.
2923 <can_highight, is_highlighted>: Now bool.
2924 (tui_set_win_highlight): Don't declare.
2925 * tui/tui-data.c (tui_set_win_highlight): Remove.
2926
8e2daf15
TT
29272019-06-25 Tom Tromey <tom@tromey.com>
2928
2929 * tui/tui-wingeneral.c (make_visible): Remove check of window
2930 type.
2931
8903bd8a
TT
29322019-06-25 Tom Tromey <tom@tromey.com>
2933
2934 * tui/tui-win.c (tui_win_info::max_height)
2935 (tui_cmd_window::max_height): New methods.
2936 (new_height_ok): Call max_height.
2937 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2938 <max_height>: New method.
2939
3f02ce1e
TT
29402019-06-25 Tom Tromey <tom@tromey.com>
2941
2942 * tui/tui-win.c (tui_source_window_base::set_new_height)
2943 (tui_data_window::set_new_height): New methods.
2944 (make_invisible_and_set_new_height): Call set_new_height method.
2945 * tui/tui-data.h (struct tui_win_info)
2946 (struct tui_source_window_base, struct tui_data_window)
2947 <set_new_height>: New method.
2948
1825f487
TT
29492019-06-25 Tom Tromey <tom@tromey.com>
2950
2951 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2952 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2953 tui_refresh_data_win.
2954 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2955 method.
2956 (tui_refresh_all_win): Call the refresh_all method.
2957 (tui_set_focus): Likewise.
2958 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2959 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2960 Likewise.
2961
ad54d15b
TT
29622019-06-25 Tom Tromey <tom@tromey.com>
2963
2964 * tui/tui-winsource.h (tui_refill_source_window)
2965 (tui_set_is_exec_point_at): Don't declare.
2966 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2967 (tui_source_window_base::refill): Rename from
2968 tui_refill_source_window.
2969 (tui_source_window_base::do_scroll_horizontal): Update.
2970 (tui_source_window_base::set_is_exec_point_at): Rename from
2971 tui_set_is_exec_point_at.
2972 (tui_update_all_breakpoint_info): Update.
2973 * tui/tui-stack.c (tui_show_frame_info): Update.
2974 * tui/tui-layout.c (show_data): Add cast.
2975 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2976 * tui/tui-data.h (struct tui_source_window_base) <refill,
2977 set_is_exec_point_at>: New methods.
2978 (tui_source_windows, tui_add_to_source_windows): Update types.
2979 (tui_add_to_source_windows): Remove redundant declaration.
2980 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2981 (tui_source_windows): Change return type.
2982 (tui_clear_source_windows_detail): Update.
2983 (tui_add_to_source_windows): Change type of parameter.
2984 (tui_free_all_source_wins_content): Update.
2985
2042b506
TT
29862019-06-25 Tom Tromey <tom@tromey.com>
2987
2988 * tui/tui-wingeneral.c (tui_win_info::refresh)
2989 (tui_source_window_base::refresh): New methods.
2990 (tui_refresh_all): Call the refresh method.
2991 * tui/tui-data.h (struct tui_win_info)
2992 (struct tui_source_window_base) <refresh>: New method.
2993
56122977
TT
29942019-06-25 Tom Tromey <tom@tromey.com>
2995
2996 * tui/tui.h (tui_is_window_visible): Return bool.
2997 * tui/tui.c (tui_is_window_visible): Return bool.
2998 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2999 (tui_make_visible, tui_make_invisible)
3000 (tui_win_info::make_visible)
3001 (tui_source_window_base::make_visible, make_all_visible)
3002 (tui_make_all_visible, tui_make_all_invisible): Update.
3003 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3004 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3005 bool.
3006 (struct tui_win_info, struct tui_source_window_base)
3007 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3008 * tui/tui-data.c (tui_init_generic_part): Update.
3009
cda37efb
TT
30102019-06-25 Tom Tromey <tom@tromey.com>
3011
3012 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3013 (tui_source_window_base::make_visible): New methods.
3014 (make_all_visible): Make method call.
3015 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3016 (struct tui_source_window_base, struct tui_cmd_window): Override
3017 make_visible.
3018 (tui_win_is_source_type): Don't declare.
3019 * tui/tui-data.c (tui_win_is_source_type): Remove.
3020
6a0ee02c
TT
30212019-06-25 Tom Tromey <tom@tromey.com>
3022
3023 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3024 NULL check.
3025
63901aec
TT
30262019-06-25 Tom Tromey <tom@tromey.com>
3027
3028 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3029 Inline constructor. Add initializers for members.
3030 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3031 constructors; now inline in class.
3032
ceb13a13
TT
30332019-06-25 Tom Tromey <tom@tromey.com>
3034
3035 * tui/tui-regs.c (tui_show_registers): Update.
3036 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3037 bool.
3038 * tui/tui-data.c (tui_data_window::clear_detail)
3039 (tui_data_window): Update.
3040
238eb706
TT
30412019-06-25 Tom Tromey <tom@tromey.com>
3042
3043 * tui/tui-windata.c (tui_display_all_data)
3044 (tui_display_data_from_line, tui_display_data_from)
3045 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3046 Update.
3047 * tui/tui-regs.c (tui_last_regs_line_no)
3048 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3049 (tui_show_registers, tui_show_register_group)
3050 (tui_display_registers_from, tui_display_reg_element_at_line)
3051 (tui_display_registers_from_line, tui_check_register_values)
3052 (tui_reg_next, tui_reg_prev): Update.
3053 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3054 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3055 tui_data_window.
3056 (struct tui_win_info) <detail>: Remove. Add new fields from
3057 tui_data_info.
3058 (TUI_DATA_WIN): Add cast.
3059 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3060 (~tui_data_window): Simplify.
3061
81491aa0
TT
30622019-06-25 Tom Tromey <tom@tromey.com>
3063
3064 * tui/tui-layout.c (show_source_disasm_command)
3065 (show_source_or_disasm_and_command): Update.
3066 * tui/tui-io.c (update_cmdwin_start_line)
3067 (tui_redisplay_readline): Update.
3068 * tui/tui-data.h (struct tui_command_info): Remove.
3069 (struct tui_win_info) <detail>: Remove command_info member.
3070 (struct tui_data_window) <start_line>: New member, from
3071 tui_command_info.
3072 (TUI_CMD_WIN): Add casts.
3073
e6e41501
TT
30742019-06-25 Tom Tromey <tom@tromey.com>
3075
3076 * tui/tui-winsource.c (tui_update_source_window)
3077 (tui_refill_source_window)
3078 (tui_source_window_base::do_scroll_horizontal)
3079 (tui_update_breakpoint_info, tui_set_exec_info_content)
3080 (tui_show_exec_info_content, tui_erase_exec_info_content)
3081 (tui_clear_exec_info_content): Update.
3082 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3083 Update.
3084 * tui/tui-win.c (make_invisible_and_set_new_height)
3085 (make_visible_with_new_height): Update.
3086 * tui/tui-source.c (tui_set_source_content)
3087 (tui_show_symtab_source): Update.
3088 * tui/tui-layout.c (extract_display_start_addr)
3089 (show_source_disasm_command, show_data)
3090 (make_source_or_disasm_window)
3091 (show_source_or_disasm_and_command): Update.
3092 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3093 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3094 "gdbarch".
3095 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3096 to tui_source_window_base.
3097 (struct tui_win_info) <detail>: Remove source_info member.
3098 (struct tui_source_window_base) <has_locator>: Inline.
3099 Move contents from tui_source_info; rename has_locator member to
3100 m_has_locator.
3101 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3102 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3103 header file.
3104 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3105 Simplify.
3106 (tui_free_all_source_wins_content): Cast to
3107 tui_source_window_base.
3108
44f0e208
TT
31092019-06-25 Tom Tromey <tom@tromey.com>
3110
3111 * tui/tui-win.c (make_invisible_and_set_new_height)
3112 (make_visible_with_new_height): Call has_locator method.
3113 * tui/tui-layout.c (show_source_disasm_command, show_data)
3114 (show_source_or_disasm_and_command): Update for bool change.
3115 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3116 (tui_win_info) <has_locator>: New method.
3117 (struct tui_source_window_base) <has_locator>: New method.
3118 (tui_win_has_locator): Don't declare.
3119 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3120 from tui_win_has_locator.
3121 (tui_source_window_base): Use false, not FALSE.
3122
7778b912
TT
31232019-06-25 Tom Tromey <tom@tromey.com>
3124
3125 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3126 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3127 clear_detail method directly.
3128 (tui_clear_win_detail): Remove.
3129
f83d391c
TT
31302019-06-25 Tom Tromey <tom@tromey.com>
3131
3132 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3133 "this", not TUI_DISASM_WIN.
3134
13446e05
TT
31352019-06-25 Tom Tromey <tom@tromey.com>
3136
3137 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3138 declare.
3139 * tui/tui-winsource.c
3140 (tui_source_window_base::do_scroll_horizontal): Rename from
3141 tui_horizontal_source_scroll.
3142 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3143 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3144 from tui_vertical_data_scroll.
3145 * tui/tui-win.h (tui_scroll): Don't declare.
3146 * tui/tui-win.c (tui_win_info::forward_scroll)
3147 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3148 (tui_win_info::right_scroll): Rename and update.
3149 (tui_scroll_forward_command, tui_scroll_backward_command)
3150 (tui_scroll_left_command, tui_scroll_right_command): Update.
3151 (tui_scroll): Remove.
3152 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3153 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3154 from tui_vertical_source_scroll.
3155 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3156 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3157 from tui_vertical_disassem_scroll.
3158 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3159 do_scroll_horizontal>: New methods.
3160 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3161 Likewise.
3162 (struct tui_source_window_base): Add do_scroll_horizontal.
3163 (struct tui_source_window, struct tui_disasm_window): Add
3164 do_scroll_vertical.
3165 (struct tui_data_window, struct tui_cmd_window): Add
3166 do_scroll_horizontal and do_scroll_vertical.
3167 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3168
5cf82909
TT
31692019-06-25 Tom Tromey <tom@tromey.com>
3170
3171 * tui/tui-data.h (struct tui_source_window_base): New struct.
3172 (struct tui_source_window): Derive from tui_source_window_base.
3173 (struct tui_disasm_window): New struct.
3174 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3175 from tui_source_window::clear_detail.
3176 (tui_source_window_base): Rename from tui_source_window.
3177 (~tui_source_window_base): Rename from ~tui_source_window.
3178 (tui_alloc_win_info): Create a tui_disasm_window.
3179
ee1d42d6
TT
31802019-06-25 Tom Tromey <tom@tromey.com>
3181
3182 * tui/tui-data.h (struct tui_source_window)
3183 (struct tui_data_window): Declare destructors.
3184 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3185 destructors.
3186 (tui_win_info): Simplify.
3187
b4eb2452
TT
31882019-06-25 Tom Tromey <tom@tromey.com>
3189
3190 * tui/tui-winsource.c (tui_display_main)
3191 (tui_update_source_windows_with_addr)
3192 (tui_update_all_breakpoint_info): Update.
3193 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3194 (new_height_ok, parse_scrolling_args): Update.
3195 * tui/tui-stack.c (tui_show_frame_info): Update.
3196 * tui/tui-data.h (struct tui_list): Remove.
3197 (tui_source_windows): Return a reference to a std::vector.
3198 * tui/tui-data.c (source_windows): Now a std::vector.
3199 (tui_source_windows): Change return type.
3200 (tui_clear_source_windows): Rewrite.
3201 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3202 (tui_free_all_source_wins_content): Rewrite.
3203
8761a91b
TT
32042019-06-25 Tom Tromey <tom@tromey.com>
3205
3206 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3207 (struct tui_data_window, struct tui_cmd_window): Declare
3208 clear_detail method.
3209 * tui/tui-data.c (tui_source_window::clear_detail)
3210 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3211 methods.
3212 (tui_clear_win_detail): Simplify.
3213
0ed69eda
TT
32142019-06-25 Tom Tromey <tom@tromey.com>
3215
3216 * tui/tui-layout.c (make_source_window, make_disasm_window)
3217 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3218 Return the new window.
3219 (show_source_disasm_command, show_data)
3220 (show_source_or_disasm_and_command): Update.
3221
82432e10
TT
32222019-06-25 Tom Tromey <tom@tromey.com>
3223
3224 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3225 parameter. Return the new window.
3226 (show_source_disasm_command): Update and remove NULL check.
3227 (show_source_or_disasm_and_command): Update.
3228
ec328aa5
TT
32292019-06-25 Tom Tromey <tom@tromey.com>
3230
3231 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3232
33b906ab
TT
32332019-06-25 Tom Tromey <tom@tromey.com>
3234
3235 * tui/tui-data.h (struct tui_win_info): Make constructor
3236 protected. Make destructor virtual. Add initializers.
3237 (tui_source_window, tui_data_window, tui_cmd_window): New
3238 classes.
3239 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3240 constructor. Add "type" parameter.
3241 (tui_source_window, tui_data_window, tui_cmd_window): New
3242 constructors.
3243 (tui_alloc_win_info): Instantiate the appropriate subclass.
3244
e7e11af4
TT
32452019-06-25 Tom Tromey <tom@tromey.com>
3246
3247 * tui/tui-win.c (tui_resize_all): Use delete.
3248 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3249 destructor.
3250 (tui_free_window): Don't declare.
3251 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3252 Update.
3253
6792b55e
TT
32542019-06-25 Tom Tromey <tom@tromey.com>
3255
3256 * tui/tui-data.h (struct tui_win_info): Add constructor.
3257 * tui/tui-data.c (tui_alloc_win_info): Use new.
3258 (tui_free_window): Use delete.
3259
f95675e1
TT
32602019-06-22 Tom Tromey <tom@tromey.com>
3261
3262 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3263 declare.
3264 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3265
5bff081c
TT
32662019-06-22 Tom Tromey <tom@tromey.com>
3267
3268 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3269 declare.
3270 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3271
47e3f474
TV
32722019-06-22 Tom de Vries <tdevries@suse.de>
3273
3274 * dwarf2read.c (create_addrmap_from_aranges)
3275 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3276 instead of '%zu'.
3277
fd5866f6
SM
32782019-06-21 Simon Marchi <simon.marchi@efficios.com>
3279
3280 * dwarf2read.h (dwarf2_section_info_def): Remove.
3281 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3282 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3283 std::vector<dwarf2_section_info>.
3284 (struct dwo_file) <~dwo_file>: Remove.
3285 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3286 types field.
3287 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3288 (dwarf2_read_debug_names): Likewise.
3289 (create_debug_types_hash_table): Change parameter type to
3290 array_view, adjust code accordingly.
3291 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3292 (partial_die_info::fixup): Likewise.
3293 (determine_prefix): Likewise.
3294 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3295
fb1eb2f9
SM
32962019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3297
3298 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3299 gdb_bfd_ref_ptr.
3300 <~dwo_file>: Remove call to gdb_bfd_unref.
3301 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3302 gdb_bfd_ref_ptr::get.
3303
51ac9db5
SM
33042019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3305
3306 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3307 type to htab_up.
3308 * dwarf2read.c (struct dwo_file): Initialize fields.
3309 <~dwo_file>: New.
3310 (free_dwo_file): Remove, move content to ~dwo_file.
3311 (struct dwo_file_deleter): Remove.
3312 (dwo_file_up>: Remove custom deleter.
3313 (free_dwo_files): Remove.
3314 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3315 dwo_files.
3316 (process_skeletonless_type_units): Call unique_ptr::get.
3317 (allocate_dwo_file_hash_table): Add deleter to created hash
3318 table. Change return type to htab_up.
3319 (lookup_dwo_file_slot): Don't memset dwo_file, call
3320 unique_ptr::get.
3321 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3322 (create_dwo_unit_in_dwp_v2): Likewise.
3323 (open_and_init_dwo_file): Likewise.
3324 (free_dwo_file_from_slot): Remove.
3325
dc4ccb6f
SM
33262019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3327
3328 * dwarf2read.h (struct dwarf2_section_info) <readin,
3329 is_virtual>: Change type to bool.
3330 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3331 true instead of 1.
3332
e6a1c5cb
TT
33332019-06-19 Tom Tromey <tom@tromey.com>
3334
3335 * tui/tui-data.h (tui_init_content_element): Don't declare.
3336
6f6ffbeb
TT
33372019-06-19 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-data.h (tui_init_win_info): Don't declare.
3340
f23f598e
TV
33412019-06-19 Tom de Vries <tdevries@suse.de>
3342
3343 * dwarf2read.h (abstract_to_concrete): Change type to
3344 std::unordered_map<sect_offset, std::vector<sect_offset>,
3345 gdb::hash_enum<sect_offset>>.
3346
680e1bee
TT
33472019-06-19 Tom Tromey <tromey@adacore.com>
3348
3349 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3350 EVAL_AVOID_SIDE_EFFECTS specially.
3351
dcf37923
TT
33522019-06-19 Tom Tromey <tromey@adacore.com>
3353
3354 * source-cache.c (highlighter): New global.
3355 (source_cache::get_source_lines): Create a highlighter on demand.
3356
494986d5
AB
33572019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3358
3359 * defs.h (deprecated_interactive_hook): Delete declaration.
3360 * interps.c (clear_interpreter_hooks): Remove use of
3361 deprecated_interactive_hook.
3362 * top.c (deprecated_interactive_hook): Delete definition.
3363 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3364
3360b6e7
TV
33652019-06-18 Tom de Vries <tdevries@suse.de>
3366
3367 PR gdb/24515
3368 * dwarf2read.h (abstract_to_concrete): Change type from
3369 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3370 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3371 * dwarf2read.c (read_variable): Update.
3372 (dwarf2_fetch_die_loc_sect_off): Update.
3373
310b3441
TV
33742019-06-17 Tom de Vries <tdevries@suse.de>
3375
3376 PR gdb/24617
3377 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3378 accessing parent[parent_len - 1].
3379
ba9777be
PP
33802019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3381
3382 PR gdb/24364
3383 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3384 call dtrace_process_dof with NULL dof.
3385
2b9f6e89
TV
33862019-06-16 Tom de Vries <tdevries@suse.de>
3387
3388 PR gdb/24445
3389 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3390
431b3ead
TT
33912019-06-16 Tom Tromey <tom@tromey.com>
3392
3393 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3394 (make_all_visible): Use address of member.
3395
d04b44a1
TT
33962019-06-16 Tom Tromey <tom@tromey.com>
3397
3398 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3399 (tui_free_window, free_content, free_content_elements): Remove
3400 unnecessary cast.
3401 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3402 cast.
3403 * tui/tui-regs.c (tui_show_register_group)
3404 (tui_display_registers_from, tui_display_reg_element_at_line):
3405 Remove unnecessary cast.
3406
bf5142e7
AB
34072019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3408
3409 * linux-nat.c (normal_mask): Delete.
3410 (_initialize_linux_nat): Don't initialise normal_mask.
3411
c4973306
SM
34122019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3413
3414 PR gdb/24445
3415 * dwarf-index-write.h (write_psymtabs_to_index): Add
3416 dwz_basename parameter.
3417 * dwarf-index-write.c (write_gdbindex): Move file writing to
3418 write_gdbindex_1. Change return type void.
3419 (assert_file_size): Move up, remove filename parameter.
3420 (write_gdbindex_1): New function.
3421 (write_debug_names): Change return type to void, call
3422 assert_file_size.
3423 (struct index_wip_file): New struct.
3424 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3425 file logic to index_wip_file. Write index for dwz file if
3426 needed.
3427 (save_gdb_index_command): Pass basename of dwz file, if present.
3428 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3429 build-id of dwz file, if present.
3430 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3431 (dwarf2_get_dwz_file): Likewise.
3432 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3433 (dwarf2_get_dwz_file): Likewise.
3434
395f9c91
TT
34352019-06-16 Tom Tromey <tom@tromey.com>
3436
3437 * coffread.c (process_coff_symbol): Use xstrdup.
3438 * value.c (create_internalvar): Use xstrdup.
3439
cafb3438
TT
34402019-06-16 Tom Tromey <tom@tromey.com>
3441
3442 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3443 * breakpoint.c (stopin_command, stopat_command)
3444 (until_break_command, decode_location_default): Remove unnecessary
3445 cast.
3446 * utils.c (subset_compare): Remove unnecessary cast.
3447 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3448 cast.
3449 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3450 cast.
3451 * infcmd.c (path_command): Remove unnecessary cast.
3452 * coffread.c (decode_type): Remove unnecessary cast.
3453 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3454 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3455 * tui/tui-stack.c (tui_show_locator_content)
3456 (tui_show_frame_info): Remove unnecessary cast.
3457 * tui/tui-win.c (tui_scroll_forward_command)
3458 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3459 (parse_scrolling_args): Remove unnecessary cast.
3460 * tui/tui-data.c (init_win_info, tui_del_window)
3461 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3462 (free_content_elements): Remove unnecessary cast.
3463 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3464 unnecessary cast.
3465 * tui/tui-source.c (tui_set_source_content)
3466 (tui_vertical_source_scroll): Remove unnecessary cast.
3467 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3468 cast.
3469 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3470 * tui/tui-regs.c (tui_display_registers_from)
3471 (tui_display_register): Remove unnecessary cast.
3472 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3473 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3474 (make_visible): Remove unnecessary cast.
3475 * tui/tui-winsource.c (tui_erase_source_content)
3476 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3477 unnecessary cast.
3478 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3479 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3480 * stabsread.c (read_type, read_array_type, read_range_type):
3481 Remove unnecessary cast.
3482 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3483 (parse_symbol, parse_type, upgrade_type, parse_external)
3484 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3485 unnecessary cast.
3486 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3487
730ead81
TT
34882019-06-16 Tom Tromey <tom@tromey.com>
3489
3490 * tui/tui-data.c (tui_alloc_generic_win_info)
3491 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3492 checks.
3493
584a927c
AB
34942019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3495 Andrew Burgess <andrew.burgess@embecosm.com>
3496
3497 * f-typeprint.c (f_print_type): Don't return early for not
3498 associated or not allocated types.
3499 (f_type_print_varspec_suffix): Add print_rank parameter and print
3500 ranks of array types in case they dangling.
3501 (f_type_print_base): Add print_rank parameter.
3502
30056ea0
AB
35032019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3504
3505 * NEWS: Mention new MI commands.
3506 * break-catch-throw.c (enum exception_event_kind): Move to
3507 breakpoint.h.
3508 (print_mention_exception_catchpoint): Output text as a single
3509 message.
3510 (catch_exception_command_1): Rename to...
3511 (catch_exception_event): ...this, make non-static, update header
3512 command, and change some parameter types.
3513 (catch_catch_command): Update for changes to
3514 catch_exception_command_1.
3515 (catch_throw_command): Likewise.
3516 (catch_rethrow_command): Likewise.
3517 * breakpoint.c (enum exception_event_kind): Delete.
3518 * breakpoint.h (enum exception_event_kind): Moved here from
3519 break-catch-throw.c.
3520 (catch_exception_event): Declare.
3521 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3522 (mi_cmd_catch_throw): New function.
3523 (mi_cmd_catch_rethrow): New function.
3524 (mi_cmd_catch_catch): New function.
3525 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3526 'catch-catch' entries.
3527 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3528 (mi_cmd_catch_rethrow): Declare.
3529 (mi_cmd_catch_catch): Declare.
3530
ec8e2b6d
AB
35312019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3532
3533 * annotate.c (annotate_source_line): Change return type to void,
3534 update implementation to match.
3535 * annotate.h (annotate_source_line): Change return type to void,
3536 update header comment.
3537 * stack.c (print_frame_info): Don't change what frame information
3538 is printed based on whether annotations are on or not.
3539
0d3abd8c
AB
35402019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3543 (annotate_source): Make static.
3544 (annotate_source_line): Moved from source.c and renamed from
3545 identify_source_line. Update the return type.
3546 * annotate.h (annotate_source): Delete declaration.
3547 (annotate_source_line): Declaration moved from source.h, and
3548 renamed from identify_source_line. Return type updated.
3549 * source.c (identify_source_line): Moved to annotate.c and renamed
3550 to annotate_source_line.
3551 (info_line_command): Remove check of annotation_level.
3552 * source.h (identify_source_line): Move declaration to annotate.h
3553 and rename to annotate_source_line.
3554 * stack.c: Add 'annotate.h' include.
3555 (print_frame_info): Remove check of annotation_level before
3556 calling annotate_source_line.
3557
00df30ae
AB
35582019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3559
3560 * source-cache.c (source_cache::get_plain_source_lines): Use
3561 open_source_file_with_line_charpos instead of just
3562 open_source_file, remove call to find_source_lines.
3563 (source_cache::get_source_lines): Likewise.
3564 * source.c (find_source_lines): Make static.
3565 (get_filename_and_charpos): Renamed into...
3566 (open_source_file_with_line_charpos): ..this along with changes to
3567 return a scoped_fd, and some other minor clean ups.
3568 (identify_source_line): Use open_source_file_with_line_charpos.
3569 (search_command_helper): Use open_source_file_with_line_charpos
3570 instead of just open_source_file, remove call to
3571 find_source_lines.
3572 * source.h (open_source_file_with_line_charpos): Declare new
3573 function.
3574 (find_source_lines): Delete declaration.
3575
afda45a2
AB
35762019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3577
3578 * source.c (get_filename_and_charpos): Remove fullname
3579 parameter.
3580 (identify_source_line): Update call to get_filename_and_charpos.
3581
0735b091
TT
35822019-06-14 Tom Tromey <tromey@adacore.com>
3583
3584 PR gdb/24502:
3585 * ui-style.h (skip_ansi_escape): Update comment.
3586 * ui-file.h (class no_terminal_escape_file): New class.
3587 * ui-file.c (no_terminal_escape_file::write)
3588 (no_terminal_escape_file::puts): New methods.
3589 * cli/cli-logging.c (handle_redirections): Use
3590 no_terminal_escape_file.
3591
52ce35e2
TT
35922019-06-14 Tom Tromey <tromey@adacore.com>
3593
3594 * NEWS: Move convenience variable news above Python news.
3595
73cc7272
TT
35962019-06-14 Tom Tromey <tom@tromey.com>
3597
3598 * gnulib: Move directory to top-level.
3599 * configure.ac: Don't configure gnulib.
3600 * configure: Rebuild.
3601 * common/common-defs.h: Use new path to gnulib.
3602 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3603 (GNULIB_H): Remove.
3604 (INCGNU): Look in new gnulib location.
3605 (HFILES_NO_SRCDIR): Remove gnulib files.
3606 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3607 (generated_files): Remove GNULIB_H.
3608 ($(LIBGNU), all-lib): Remove targets.
3609 (distclean): Don't mention GNULIB_BUILDDIR.
3610 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3611
f5686554
TT
36122019-06-14 Tom Tromey <tromey@adacore.com>
3613
3614 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3615 Warn if symbol file does not provide any symbols.
3616
a0c1ffed
TT
36172019-06-14 Tom Tromey <tromey@adacore.com>
3618
3619 * source.c (find_and_open_source): Respect basenames_may_differ.
3620
7c39e397
AB
36212019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3622
3623 * annotate.c (annotate_breakpoints_invalid): Make use of
3624 scoped_restore_terminal_state.
3625 (annotate_frames_invalid): Likewise.
3626
f411722c
TT
36272019-06-14 Tom Tromey <tromey@adacore.com>
3628
3629 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3630 allow assignment to an internalvar.
3631
4268ec18
TT
36322019-06-14 Tom Tromey <tromey@adacore.com>
3633
3634 * ada-lex.l: Allow "_" in attribute names.
3635
abdb711e
TT
36362019-06-14 Tom Tromey <tromey@adacore.com>
3637
3638 PR gdb/24653:
3639 * regcache.c (registers_changed): Don't call alloca.
3640 * top.c (execute_command): Don't call alloca.
3641
4c048731
PA
36422019-06-13 Pedro Alves <palves@redhat.com>
3643
3644 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3645 'expression'. When parsing an expression, error out if there's
3646 junk after "unlimited".
3647 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3648 (do_set_command): Adjust calls to is_unlimited_literal.
3649
66eb1ed3
PA
36502019-06-13 Pedro Alves <palves@redhat.com>
3651
3652 * compile/compile.c (make_compile_options_def_group): Add braces
3653 around array_view initializer.
3654 * thread.c (make_thread_apply_all_options_def_group)
3655 (make_thread_apply_all_options_def_group): Likewise.
3656
3345721a
PA
36572019-06-13 Pedro Alves <palves@redhat.com>
3658
3659 * NEWS (New commands): Mention "maint test-options
3660 require-delimiter", "maint test-options unknown-is-error", "maint
3661 test-options unknown-is-operand" and "maint show
3662 test-options-completion-result".
3663 (New command options, command completion): New section.
3664 (Completion improvements): New section.
3665 Mention that you can abbreviate "unlimited".
3666
6206060d
PA
36672019-06-13 Pedro Alves <palves@redhat.com>
3668
3669 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3670 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3671 * unittests/cli-utils-selftests.c (test_parse_flags)
3672 (test_parse_flags_qcs): Delete.
3673 (test_cli_utils): Don't call deleted functions.
3674
6665660a
PA
36752019-06-13 Pedro Alves <palves@redhat.com>
3676
3677 * thread.c: Include "cli/cli-option.h".
3678 (tp_array_compar_ascending): Global.
3679 (tp_array_compar): Delete function.
3680 (tp_array_compar_ascending, tp_array_compar_descending): New
3681 functions.
3682 (ascending_option_def, qcs_flag_option_def)
3683 (thr_qcs_flags_option_defs)
3684 (make_thread_apply_all_options_def_group)
3685 (make_thread_apply_options_def_group): New.
3686 (thread_apply_all_command): Use gdb::option::process_options.
3687 (thread_apply_command_completer)
3688 (thread_apply_all_command_completer): New.
3689 (thread_apply_command): Use gdb::option::process_options.
3690 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3691 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3692 to generate help text of "thread apply". Adjust "taas"'s help.
3693 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3694 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3695
f7e13587
PA
36962019-06-13 Pedro Alves <palves@redhat.com>
3697
3698 * thread.c (thread_apply_command): Check for invalid TID with
3699 isdigit instead of !isalpha.
3700
5d707134
PA
37012019-06-13 Pedro Alves <palves@redhat.com>
3702
3703 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3704 (validate_flags_qcs): New.
3705 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3706 (validate_flags_qcs): Declare.
3707 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3708 (make_frame_apply_options_def_group): New.
3709 (frame_apply_command_count): Process options with
3710 gdb::option::process_options.
3711 (frame_apply_completer): New.
3712 (frame_apply_level_completer, frame_apply_all_completer)
3713 (frame_apply_completer): New.
3714 (_initialize_stack): Update help of "frame apply", "frame apply
3715 level", "frame apply all" and "faas" to mention supported options
3716 and install command completers.
3717 * stack.h (frame_apply_all_completer): Declare.
3718 * thread.c: Include "stack.h".
3719 (tfaas_command): Add "--".
3720 (_initialize_thread): Update help "tfaas" to mention supported
3721 options and install command completer.
3722
272d4594
PA
37232019-06-13 Pedro Alves <palves@redhat.com>
3724
3725 * completer.c (complete_nested_command_line): New.
3726 (gdb_completion_word_break_characters_throw): Add assertion.
3727 * completer.h (complete_nested_command_line): Declare.
3728
90a1ef87
PA
37292019-06-13 Pedro Alves <palves@redhat.com>
3730
3731 * stack.c (parse_backtrace_qualifiers): New.
3732 (backtrace_command): Use it.
3733 (backtrace_command_completer): Complete on qualifiers.
3734
d4c16835
PA
37352019-06-13 Pedro Alves <palves@redhat.com>
3736
3737 * frame.c: Include "cli/cli-option.h.
3738 (user_set_backtrace_options): New.
3739 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3740 Delete.
3741 (get_prev_frame): Adjust.
3742 (boolean_option_def, uinteger_option_def)
3743 (set_backtrace_option_defs): New.
3744 (_initialize_frame): Adjust and use
3745 gdb::option::add_setshow_cmds_for_options to install "set
3746 backtrace past-main" and "set backtrace past-entry".
3747 * frame.h: Include "cli/cli-option.h".
3748 (struct frame_print_options): Forward declare.
3749 (print_frame_arguments_all, print_frame_arguments_scalars)
3750 (print_frame_arguments_none): Declare.
3751 (print_entry_values): Delete declaration.
3752 (struct frame_print_options, user_frame_print_options): New.
3753 (struct set_backtrace_options): New.
3754 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3755 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3756 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3757 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3758 (list_args_or_locals): Add frame_print_options parameter.
3759 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3760 * python/py-framefilter.c (enumerate_args): Pass down
3761 USER_FRAME_PRINT_OPTIONS.
3762 * stack.c: Include "cli/cli-option.h".
3763 (print_frame_arguments_all, print_frame_arguments_scalars)
3764 (print_frame_arguments_none): Declare.
3765 (print_raw_frame_arguments, print_entry_values): Delete.
3766 (user_frame_print_options): New.
3767 (boolean_option_def, enum_option_def, frame_print_option_defs):
3768 New.
3769 (struct backtrace_cmd_options): New.
3770 (bt_flag_option_def): New.
3771 (backtrace_command_option_defs): New.
3772 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3773 (print_frame_arg, read_frame_arg, print_frame_args)
3774 (print_frame_info, print_frame): Add frame_print_options parameter
3775 and use it.
3776 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3777 (backtrace_command_1): Add frame_print_options and
3778 backtrace_cmd_options parameters and use them.
3779 (make_backtrace_options_def_group): New.
3780 (backtrace_command): Process command options with
3781 gdb::option::process_options.
3782 (backtrace_command_completer): New.
3783 (_initialize_stack): Extend "backtrace"'s help to mention
3784 supported options. Install completer for "backtrace".
3785 Install some settings commands with add_setshow_cmds_for_options.
3786
2daf894e
PA
37872019-06-13 Pedro Alves <palves@redhat.com>
3788
3789 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3790 and that "set/show print raw frame-arguments" are now deprecated.
3791
3792 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3793 command.
3794 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3795 * stack.c (_initialize_stack): Install "set/show print
3796 raw-frame-arguments", and deprecate "set/show print raw
3797 frame-arguments".
3798 * valprint.c (_initialize_valprint): Deprecate "set/show print
3799 raw".
3800
e6ed716c
PA
38012019-06-13 Pedro Alves <palves@redhat.com>
3802
3803 * compile/compile.c (struct compile_options): New.
3804 (compile_flag_option_def, compile_command_option_defs)
3805 (make_compile_options_def_group): New.
3806 (compile_file_command): Handle options with
3807 gdb::option::process_options.
3808 (compile_file_command_completer): New function.
3809 (compile_code_command): Handle options with
3810 gdb::option::process_options.
3811 (compile_code_command_completer): New function.
3812 (_initialize_compiler): Install completers for "compile code" and
3813 "compile file". Mention available options in "compile code" and
3814 "compile code"'s help.
3815 * completer.c (advance_to_completion_word): New, factored out from
3816 ...
3817 (advance_to_expression_complete_word_point): ... this.
3818 (advance_to_filename_complete_word_point): New.
3819 * completer.h (advance_to_filename_complete_word_point): New
3820 declaration.
3821
7d8062de
PA
38222019-06-13 Pedro Alves <palves@redhat.com>
3823
3824 * compile/compile.c: Include "cli/cli-option.h".
3825 (compile_print_value): Scope data pointer is now a
3826 value_print_options pointer; adjust.
3827 (compile_print_command): Process options. Scope data pointer is
3828 now a value_print_options pointer; adjust.
3829 (_initialize_compile): Update "compile print"'s help to include
3830 supported options. Install a completer for "compile print".
3831 * cp-valprint.c (show_vtblprint, show_objectprint)
3832 (show_static_field_print): Delete.
3833 (_initialize_cp_valprint): Don't install "set print
3834 static-members", "set print vtbl", "set print object" here.
3835 * printcmd.c: Include "cli/cli-option.h" and
3836 "common/gdb_optional.h".
3837 (print_command_parse_format): Rework to fill in a
3838 value_print_options instead of a format_data.
3839 (print_value): Change parameter type from format_data pointer to
3840 value_print_options reference. Adjust.
3841 (print_command_1): Process options. Adjust to pass down a
3842 value_print_options.
3843 (print_command_completer): New.
3844 (_initialize_printcmd): Install print_command_completer as
3845 handle_brkchars completer for the "print" command. Update
3846 "print"'s help to include supported options.
3847 * valprint.c: Include "cli/cli-option.h".
3848 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3849 here from cp-valprint.c.
3850 (boolean_option_def, uinteger_option_def)
3851 (value_print_option_defs, make_value_print_options_def_group):
3852 New. Use gdb::option::add_setshow_cmds_for_options to install
3853 "set print elements", "set print null-stop", "set print repeats",
3854 "set print pretty", "set print union", "set print array", "set
3855 print address", "set print symbol", "set print array-indexes".
3856 * valprint.h: Include <string> and "cli/cli-option.h".
3857 (make_value_print_options_def_group): Declare.
3858 (print_value): Change parameter type from format_data pointer to
3859 value_print_options reference.
3860 (print_command_completer): Declare.
3861
9d0faba9
PA
38622019-06-13 Pedro Alves <palves@redhat.com>
3863
3864 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3865 (COMMON_SFILES): Add maint-test-settings.c.
3866 * cli/cli-decode.c (boolean_enums): New global, factored out from
3867 ...
3868 (add_setshow_boolean_cmd): ... here.
3869 * cli/cli-decode.h (boolean_enums): Declare.
3870 * cli/cli-option.c: New file.
3871 * cli/cli-option.h: New file.
3872 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3873 factored out from ...
3874 (parse_cli_boolean_value(const char *)): ... this.
3875 (is_unlimited_literal): Change parameter type to pointer to
3876 pointer. Adjust and advance ARG pointer.
3877 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3878 (parse_cli_var_enum): New, factored out from ...
3879 (do_set_command): ... this. Adjust.
3880 * cli/cli-setshow.h (parse_cli_boolean_value)
3881 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3882 (parse_cli_var_enum): Declare.
3883 * cli/cli-utils.c: Include "cli/cli-option.h".
3884 (get_ulongest): New.
3885 * cli/cli-utils.h (get_ulongest): Declare.
3886 (check_for_argument): New overloads.
3887 * maint-test-options.c: New file.
3888
2c722807
PA
38892019-06-13 Pedro Alves <palves@redhat.com>
3890
3891 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3892 parse a range if "-" is at the end of the string.
3893
dee7b4c8
PA
38942019-06-13 Pedro Alves <palves@redhat.com>
3895
3896 * cli/cli-setshow.c (parse_auto_binary_operation)
3897 (parse_cli_boolean_value): Don't allow "o".
3898
dca0f6c0
PA
38992019-06-13 Pedro Alves <palves@redhat.com>
3900
3901 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3902 * NEWS: Mention maint test-settings KIND.
3903 * maint-test-settings.c: New file.
3904
597bf39d
PA
39052019-06-13 Pedro Alves <palves@redhat.com>
3906
3907 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3908 completer.
3909 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3910 "set" completers.
3911
48c410fb
PA
39122019-06-13 Pedro Alves <palves@redhat.com>
3913
3914 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3915 after item.
3916
93bcb043
PA
39172019-06-13 Pedro Alves <palves@redhat.com>
3918
3919 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3920
cbba3ecd
PA
39212019-06-13 Pedro Alves <palves@redhat.com>
3922
3923 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3924 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3925 call.
3926 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3927 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3928 calls.
3929 (check_for_argument): Skip spaces after argument.
3930
b9a3f842
PA
39312019-06-13 Pedro Alves <palves@redhat.com>
3932
3933 * thread.c (thread_apply_command): Adjust TID parsing.
3934 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3935 detected before end of string.
3936 (tid_is_in_list): Error out if LIST is invalid.
3937
3844e605
PA
39382019-06-13 Pedro Alves <palves@redhat.com>
3939
3940 * completer.c (complete_line_internal_1): Rewind completion word
3941 point.
3942 (completion_tracker::advance_custom_word_point_by): Change
3943 parameter type to int.
3944 * completer.h (completion_tracker::advance_custom_word_point_by):
3945 Likewise.
3946
00b56dbe
PA
39472019-06-13 Pedro Alves <palves@redhat.com>
3948
3949 * completer.c (advance_to_completion_word): Handle delimiters.
3950
d106773e
PA
39512019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3952
3953 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3954
08f10e02
TT
39552019-06-11 Tom Tromey <tom@tromey.com>
3956
3957 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3958 (xmalloc_failed): Move to alloc.c.
3959 * alloc.c: New file.
3960 * Makefile.in (COMMON_SFILES): Add alloc.c.
3961
1c7fe951
TT
39622019-06-11 Tom Tromey <tom@tromey.com>
3963
3964 * nat/linux-waitpid.c: Don't include server.h.
3965 (linux_debug): Remove.
3966 (my_waitpid): Update.
3967
89549d7f
TT
39682019-06-11 Tom Tromey <tromey@adacore.com>
3969
3970 * infcall.c (_initialize_infcall): Remove trailing newline from
3971 help.
3972 * user-regs.c (_initialize_user_regs): Remove trailing newline
3973 from help.
3974 * typeprint.c (_initialize_typeprint): Remove trailing newline
3975 from help.
3976 * reverse.c (_initialize_reverse): Remove trailing newlines from
3977 help.
3978 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3979 from help.
3980 * language.c (add_set_language_command): Remove trailing newline
3981 from help.
3982 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3983 help.
3984 * disasm.c (_initialize_disasm): Remove trailing newline from
3985 help.
3986 * top.c (init_main): Remove trailing newline from help.
3987 * interps.c (_initialize_interpreter): Remove trailing newline
3988 from help.
3989 * btrace.c (_initialize_btrace): Remove trailing newlines from
3990 help.
3991 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3992 from help.
3993 * python/python.c (_initialize_python): Remove trailing newline
3994 from help.
3995 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3996 help.
3997 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3998 from help. Reformat some text.
3999 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4000 from help.
4001 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4002 newline from help.
4003
86108c13
TT
40042019-06-11 Tom Tromey <tromey@adacore.com>
4005
4006 * darwin-nat.c (darwin_decode_exception_message)
4007 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4008
a7067863
AB
40092019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4010
4011 * valops.c (value_slice): Check for not allocated or not
4012 associated values.
4013
9ab08412
TV
40142019-06-10 Tom de Vries <tdevries@suse.de>
4015
4016 PR gdb/24618
4017 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4018 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4019 invalid.
4020
f19e22e9
TV
40212019-06-10 Tom de Vries <tdevries@suse.de>
4022
4023 PR gdb/24611
4024 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4025 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4026
e99f9db0
TV
40272019-06-10 Tom de Vries <tdevries@suse.de>
4028
4029 PR symtab/24545
4030 * symtab.c (struct demangled_name_entry): Add language field.
4031 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4032 static minimal symbol". Set and use language field.
4033
9bf7038b
TT
40342019-06-10 Tom Tromey <tromey@adacore.com>
4035
4036 * ada-lang.c (_initialize_ada_language): Update help text.
4037
422186a9
TT
40382019-06-10 Tom Tromey <tromey@adacore.com>
4039
4040 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4041 with a newline.
4042 * guile/guile.c (handle_boot_error): Don't end warning with a
4043 newline.
4044 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4045 warning with a newline.
4046 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4047 newline.
4048 (s12z_frame_cache): Likewise.
4049 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4050 a newline.
4051 * solib-svr4.c (disable_probes_interface): Don't end warning with
4052 a newline.
4053 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4054 newline.
4055 * python/python.c (do_finish_initialization): Don't end warning
4056 with a newline.
4057
25ce02ee
TT
40582019-06-10 Tom Tromey <tom@tromey.com>
4059
4060 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4061 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4062 gdbpy_enter.
4063
caa429d8
TT
40642019-06-10 Tom Tromey <tromey@adacore.com>
4065
4066 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4067 data.
4068 (elf_new_init): Don't call stabsread_new_init.
4069 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4070 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4071 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4072
81873cc8
TV
40732019-06-10 Tom de Vries <tdevries@suse.de>
4074
4075 PR symtab/16264
4076 PR symtab/24517
4077 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4078
4fa0265e
РИ
40792019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4080
4081 * source.c (find_and_open_source): Also rewrite relative file
4082 names.
4083
1a3da2cd
AB
40842019-04-26 Amos Bird <amosbird@gmail.com>
4085
4086 * annotate.c (annotate_thread_exited): Add "thread-exited"
4087 annotation.
4088
3847a7bf
TT
40892019-06-06 Tom Tromey <tromey@adacore.com>
4090
4091 * maint.h (class scoped_command_stats): Use
4092 DISABLE_COPY_AND_ASSIGN.
4093 <print_time>: New method.
4094 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4095 print_time.
4096 (scoped_command_stats::print_time): New method.
4097
312617a3
AB
40982019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4099
4100 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4101 instructions of lengths 6 or 8 bytes.
4102
b02f78f9
PA
41032019-06-04 Pedro Alves <palves@redhat.com>
4104
4105 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4106
4107 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4108 * breakpoint.c (condition_completer): Likewise.
4109 * cli/cli-dump.c (scan_expression): Likewise.
4110 * common/filestuff.c (mkdir_recursive): Likewise.
4111 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4112 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4113 (gdb_abspath): Likewise.
4114 * compile/compile-cplus-types.c
4115 (compile_cplus_instance::decl_name): Likewise.
4116 * completer.c (complete_explicit_location):
4117 (signal_completer, reg_or_group_completer_1): Likewise.
4118 * cp-support.c (cp_remove_params_if_any): Likewise.
4119 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4120 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4121 * infcmd.c (strip_bg_char): Likewise.
4122 * linespec.c (copy_token_string): Likewise.
4123 * mi/mi-main.c (output_cores): Likewise.
4124 * psymtab.c (psymtab_search_name):
4125 * symfile.c (test_set_ext_lang_command): Likewise.
4126 * target.c (target_fileio_read_stralloc): Likewise.
4127 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4128 * value.c (complete_internalvar): Likewise.
4129
e1f2e1a2
CB
41302019-06-04 Christian Biesinger <cbiesinger@google.com>
4131
4132 Add objfile property to gdb.Type.
d3238f7d
PA
4133 * NEWS: Mention Python API addition.
4134 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4135
e664d728
PW
41362019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4137
4138 * NEWS: Mention the new set|show style [title|highlight].
4139 Mention changes to "show style", "help" and "apropos".
4140
66d8c862
PW
41412019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4142
4143 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4144 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4145 instead of print_help_for_command.
4146 (print_doc_of_command): New function.
4147 (help_list): Add 'apropos -v word' suggestion.
4148 (print_help_for_command): Style the command name using title style.
4149 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4150 (_initialize_cli_cmds): Describe -v in apropos_command help.
4151
9303eb2f
PW
41522019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4153
4154 * cli/cli-style.h (cli_style_option): Add name in constructor,
4155 add m_name class member, add constructor with intensity,
4156 add name class function.
4157 (cli_style_option::add_setshow_commands): Remove name argument.
4158 (highlight_style, title_style): New styles.
4159 * cli/cli-style.c (do_show): New function that shows a style
4160 characteristic styling the style name with itself.
4161 (set_style_name): New function.
4162 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4163 Update all callers according to the changes in cli/cli-style.h.
4164 * utils.h (fputs_highlighted): New function.
4165 * utils.c (fputs_highlighted): Likewise.
4166
e2c52041
PW
41672019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4168
4169 * NEWS: Mention new pipe command and new convenience variables.
4170
947d3946
PW
41712019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4172
4173 * cli/cli-cmds.c (pipe_command): New function.
4174 (_initialize_cli_cmds): Call add_com for pipe_command.
4175 Define | as an alias for pipe.
4176 (exit_status_set_internal_vars): New function.
4177 (shell_escape): Call exit_status_set_internal_vars.
4178 cli/cli-decode.c (find_command_name_length): Recognize | as
4179 a single character command.
4180
b8fd0918
PW
41812019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4182
4183 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4184 top.c (execute_command_to_ui_file): New function, mostly a copy
4185 of execute_command_to_string.
4186 (execute_command_to_string): Implement by calling
4187 execute_command_to_ui_file.
4188
68bb5386
PW
41892019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4190
4191 * top.h (saved_command_line): Remove declaration.
4192 * top.c (previous_saved_command_line, previous_repeat_arguments):
4193 New variables.
4194 (saved_command_line): Make static, define together with other
4195 'repeat variables'.
4196 (dont_repeat): Clear repeat_arguments.
4197 (repeat_previous, get_saved_command_line, save_command_line):
4198 New functions.
4199 (gdb_init): Initialize saved_command_line
4200 and previous_saved_command_line.
4201 * main.c (captured_main_1): Remove saved_command_line initialization.
4202 * event-top.c (handle_line_of_input): Update to use
4203 the new 'repeat' related functions instead of direct access to
4204 saved_command_line.
4205 * command.h (repeat_previous, get_saved_command_line,
4206 save_command_line): New declarations.
4207 (dont_repeat): Add comment.
4208
bfcdb852
TT
42092019-05-30 Tom Tromey <tromey@adacore.com>
4210
4211 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4212 Fix comment.
4213 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4214
0ef209f2
JV
42152019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4216
4217 PR cli/24587
4218 * completer.c (complete): Initialize variable word.
4219
955b06fa
SDJ
42202019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4221
4222 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4223 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4224 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4225 'body' is NULL to the outter 'if', protecting the '!is_define'
4226 situation as well.
4227
fa9c3fa0
TT
42282019-05-29 Tom Tromey <tromey@adacore.com>
4229
4230 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4231 (dwarf_unknown): New function.
4232 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4233 (dwarf_type_encoding_name): Use dwarf_unknown.
4234
4330d61d
TT
42352019-05-29 Tom Tromey <tromey@adacore.com>
4236
4237 PR c++/20020:
4238 * cp-valprint.c (cp_print_value_fields): Call
4239 cp_print_static_field inside "try".
4240
33a6bc35
TT
42412019-05-29 Tom Tromey <tromey@adacore.com>
4242
4243 * inflow.c (struct terminal_info): Add default operator=.
4244 * configure: Rebuild.
4245 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4246 -Wdeprecated-copy-dtor, -Wredundant-move.
4247
000439d5
TT
42482019-05-29 Tom Tromey <tromey@adacore.com>
4249
4250 * NEWS: Add entry.
4251 * infcmd.c (print_return_value_1): Handle finish_print
4252 option.
4253 (show_print_finish): New function.
4254 (_initialize_infcmd): Add "set/show print finish" commands.
4255 * valprint.c (user_print_options): Initialize new member.
4256 * valprint.h (struct value_print_options) <finish_print>: New
4257 member.
4258
c0e70c62
TT
42592019-05-28 Tom Tromey <tromey@adacore.com>
4260
4261 * ada-lang.c (ada_remove_Xbn_suffix)
4262 (find_old_style_renaming_symbol)
4263 (parse_old_style_renaming): Remove.
4264 (ada_find_renaming_symbol): Don't call
4265 find_old_style_renaming_symbol.
4266 (ada_is_renaming_symbol): Rename from
4267 ada_find_renaming_symbol. Remove "block" parameter. Return
4268 bool. Now static.
4269 (ada_read_var_value): Update and simplify.
4270 * ada-exp.y (write_var_or_type): Remove old code.
4271
766f8836
AH
42722019-05-28 Alan Hayward <alan.hayward@arm.com>
4273
4274 * event-top.c: Remove include comment.
4275 * inflow.c (class scoped_ignore_sigttou): Move from here...
4276 * inflow.h (class scoped_ignore_sigttou): ...to here.
4277 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4278 * top.c: Remove include comment.
4279
eb41253a
TT
42802019-05-27 Tom Tromey <tom@tromey.com>
4281
4282 * NEWS: Fix typo.
4283
4ca51187
TT
42842019-05-22 Tom Tromey <tromey@adacore.com>
4285
4286 * target.c (target_follow_exec): Constify parameter.
4287 * target-delegates.c: Rebuild.
4288 * remote.c (remote_target::follow_exec): Constify parameter.
4289 * infrun.c (follow_exec): Constify parameter.
4290 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4291 (target_follow_exec): Likewise.
4292
8fca4da0
AH
42932019-05-22 Alan Hayward <alan.hayward@arm.com>
4294
4295 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4296 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4297
b7060614
AH
42982019-05-22 Alan Hayward <alan.hayward@arm.com>
4299
4300 * NEWS: Add debugredirect and testsuite sections.
4301
0a5954bd
SC
43022019-05-22 Simon Cook <simon.cook@embecosm.com>
4303
4304 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4305 target descriptions using exclusively floating point register name
4306 aliases.
4307
dc42e902
AB
43082019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4309
4310 PR gdb/18644:
4311 * f-lang.c (build_fortran_types): Handle the case where
4312 gdbarch_floatformat_for_type returns a nullptr.
4313
fb7806c7
TV
43142019-05-21 Tom de Vries <tdevries@suse.de>
4315
4316 PR cli/24587
4317 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4318
34d11c68
AB
43192019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4320
4321 PR gdb/18644:
4322 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4323 16-byte floats.
4324 * i386-tdep.c (i386_floatformat_for_type): Use
4325 floatformats_ia64_quad for the 16-byte floating point component
4326 within a fortran 32-byte complex number.
4327
122cf0f2
AB
43282019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4329
4330 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4331 delete default constructor.
4332 (find_partial_die): Update to return const struct.
4333 (partial_die_parent_scope): Move variable declaration into scope
4334 of its use and change its type to auto.
4335 (guess_partial_die_structure_name): Likewise.
4336 (partial_die_info::fixup): Likewise.
4337
33d0e35a
TT
43382019-05-17 Tom Tromey <tromey@adacore.com>
4339
4340 * source.c (find_and_open_source): Remove cast.
4341
a45575b0
TT
43422019-05-17 Tom Tromey <tromey@adacore.com>
4343
4344 * annotate.c (annotate_source): Make "filename" const.
4345 * annotate.h (annotate_source): Use const.
4346
81f47ac2
AH
43472019-05-17 Alan Hayward <alan.hayward@arm.com>
4348
4349 * disasm.c (set_disassembler_options): Send errors to stderr.
4350
ca1285d1
AH
43512019-05-17 Alan Hayward <alan.hayward@arm.com>
4352
4353 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4354 (cli_interp_base::set_logging): Check debug_redirect.
4355 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4356 * cli/cli-logging.c (debug_redirect): Add static variable.
4357 (pop_output_files): Add default param.
4358 (handle_redirections): Print debug setting.
4359 (show_logging_command): Likewise.
4360 (_initialize_cli_logging): Add debugredirect command.
4361 * interps.c (current_interp_set_logging): Add debug_redirect
4362 parameter.
4363 * interps.h (set_logging): Add debug_redirect parameter.
4364 (current_interp_set_logging): Likewise.
4365 * mi/mi-common.h: Likewise.
4366 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4367
43682019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4369 Tom Tromey <tromey@adacore.com>
4370
4371 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4372 directly.
4373 * cli/cli-interp.h (make_logging_output): Remove declaration.
4374 * cli/cli-logging.c (make_logging_output): Remove function.
4375 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4376 directly.
4377 * ui-file.c (tee_file::tee_file): Remove bools.
4378 (tee_file::~tee_file): Remove deletes.
4379 * ui-file.h (tee_file): Remove bools.
4380
26648588
JV
43812019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4382
4383 * mi/mi-cmds.h (mi_cmd_complete): New function.
4384 * mi/mi-main.c (mi_cmd_complete): Likewise.
4385 * mi/mi-cmds.c: Define new MI command -complete.
4386 * NEWS: Mention new -complete command.
4387
6e035501
JV
43882019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4389
4390 * completer.h (complete): New function.
4391 * completer.c (complete): Likewise.
4392 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4393 function defined in completer.h.
4394
7d0e2ece
JV
43952019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4396
e79be6e5 4397 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4398
fb816e8b
TV
43992019-05-17 Tom de Vries <tdevries@suse.de>
4400
4401 PR gdb/24094
4402 * dwarf2read.c (struct cu_partial_die_info): New struct.
4403 (find_partial_die): Return cu_partial_die_info.
4404 (partial_die_parent_scope, guess_partial_die_structure_name)
4405 (partial_die_info::fixup): Handle new return type of find_partial_die.
4406
677052f2
SDJ
44072019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4408
4409 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4410 "std::string", simplifying the algorithm.
4411
f3da9116
SDJ
44122019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4413
4414 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4415 (stap_static_probe_ops::get_probes): Likewise.
4416
f1bb75ab
SDJ
44172019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4418
4419 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4420 '-')" and "else if".
4421 (stap_parse_single_operand): Join checks for
4422 "gdbarch_stap_parse_special_token_p" and
4423 "gdbarch_stap_parse_special_token" in the same "if" statement.
4424 Invert check when verifying for operation on register
4425 displacement.
4426
3ca58cde
SDJ
44272019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4428
4429 * stap-probe.c (stap_get_opcode): Update comment.
4430 (stap_get_expected_argument_type): Likewise.
4431 (handle_stap_probe): Likewise.
4432
af2d9bee
SDJ
44332019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4434
4435 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4436 return type to 'bool'. Adjust comment. Use 'bool' when
4437 appropriate.
4438 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4439 * stap-probe.c (stap_parse_argument_1): Likewise.
4440 (stap_is_operator): Likewise.
4441 (stap_is_generic_prefix): Likewise.
4442 (stap_is_register_prefix): Likewise.
4443 (stap_is_register_indirection_prefix): Likewise.
4444 (stap_is_integer_prefix): Likewise.
4445 (stap_generic_check_suffix): Likewise.
4446 (stap_check_integer_suffix): Likewise.
4447 (stap_check_register_suffix): Likewise.
4448 (stap_check_register_indirection_suffix): Likewise.
4449 (stap_parse_register_operand): Likewise.
4450 (stap_parse_single_operand): Likewise.
4451 (stap_parse_argument_1): Likewise.
4452 (stap_probe::get_argument_count): Likewise.
4453 (stap_is_operator): Likewise.
4454
61c9c421
TT
44552019-05-16 Tom Tromey <tromey@adacore.com>
4456
4457 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4458 keyword to foreach.
4459
9ddc1af1
SM
44602019-05-15 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * linux-thread-db.c (try_thread_db_load_1): Change return type
4463 to bool.
4464 (try_thread_db_load): Likewise.
4465 (try_thread_db_load_from_pdir_1): Likewise.
4466 (try_thread_db_load_from_pdir): Likewise.
4467 (try_thread_db_load_from_sdir): Likewise.
4468 (try_thread_db_load_from_dir): Likewise.
4469 (thread_db_load_search): Likewise.
4470 (has_libpthread): Likewise.
4471 (thread_db_load): Likewise.
4472
7bede828
SDJ
44732019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4474
4475 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4476 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4477 NULL, and complain/return if that's the case.
4478
c5358db4
JD
44792019-05-15 John Darrington <john@darrington.wattle.id.au>
4480
4481 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4482 (advance, posn, abstract_read_memory): New functions.
4483 [struct mem_read_abstraction]: New struct.
4484 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4485
c408a94f
TT
44862019-05-14 Tom Tromey <tromey@adacore.com>
4487
4488 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4489 value is not lval_memory.
4490
e7bd7fba
TT
44912019-05-14 Tom Tromey <tromey@adacore.com>
4492
4493 * solib.c (info_sharedlibrary_command): Style the file name.
4494
a6d0f249
AH
44952019-05-14 Alan Hayward <alan.hayward@arm.com>
4496
4497 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4498 (aarch64_vnv_type): Likewise.
4499 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4500 * common/tdesc.c: Likewise.
4501 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4502 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4503 * features/aarch64-fpu.xml: Add ieee half view.
4504 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4505 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4506 * gdbtypes.h (struct builtin_type): Likewise.
4507 (struct objfile_type): Likewise.
4508
66b8bb74
SM
45092019-05-12 Paul Naert <paul.naert@polymtl.ca>
4510
4511 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4512 typo.
4513 * location.h (string_to_event_location): Likewise.
4514
21c219fd
JB
45152019-05-11 Joel Brobecker <brobecker@adacore.com>
4516
4517 GDB 8.3 released.
4518
13674803
SM
45192019-05-10 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4522 New variable declaration.
4523 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4524 New variable.
4525 (print_one_breakpoint): Use ui_out::test_flags and new global
4526 variable to compute use_fixed_output.
4527 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4528 Remove.
4529 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4530 (mi_multi_location_breakpoint_output_fixed): Remove.
4531 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4532 new variable.
4533 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4534 fix_multi_location_breakpoint_output flag if version >= 3.
4535 * ui-out.h (enum ui_out_flag)
4536 <fix_multi_location_breakpoint_output>: New enumerator.
4537
a9eac7f9
SM
45382019-05-10 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4541
71bed2db
TT
45422019-05-10 Tom Tromey <tromey@adacore.com>
4543
4544 * ada-lang.c (catch_ada_completer): New function.
4545 (_initialize_ada_language): Use it.
4546
24c54127
TT
45472019-05-10 Tom Tromey <tromey@adacore.com>
4548
4549 * thread.c (print_thread_info): Make "requested_threads" const.
4550 * gdbthread.h (print_thread_info): Make "requested_threads"
4551 const.
4552 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4553 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4554
7a102139
TT
45552019-05-08 Tom Tromey <tom@tromey.com>
4556
4557 * gdbtypes.c (objfile_type_data): Change type.
4558 (objfile_type, _initialize_gdbtypes): Update.
4559
924d79e2
TT
45602019-05-08 Tom Tromey <tom@tromey.com>
4561
4562 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4563 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4564 (_initialize_dwarf2_frame): Update.
4565
4c58e337
TT
45662019-05-08 Tom Tromey <tom@tromey.com>
4567
4568 * objc-lang.c (objc_objfile_data): Change type.
4569 (find_methods): Update.
4570 (_initialize_objc_lang): Remove.
4571
d772d2ab
TT
45722019-05-08 Tom Tromey <tom@tromey.com>
4573
4574 * stabsread.c (rs6000_builtin_type_data): Change type.
4575 (rs6000_builtin_type, _initialize_stabsread): Update.
4576
d11d83f4
TT
45772019-05-08 Tom Tromey <tom@tromey.com>
4578
4579 * mips-tdep.c (mips_pdr_data): Remove.
4580 (_initialize_mips_tdep): Update.
4581
9a73f0ad
TT
45822019-05-08 Tom Tromey <tom@tromey.com>
4583
4584 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4585 (hppa_init_objfile_priv_data, read_unwind_info)
4586 (find_unwind_entry, _initialize_hppa_tdep): Update.
4587
8127a2fa
TT
45882019-05-08 Tom Tromey <tom@tromey.com>
4589
4590 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4591 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4592 on obstack.
4593 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4594
91d3055d
TT
45952019-05-08 Tom Tromey <tom@tromey.com>
4596
4597 * mdebugread.c (basic_type_data): Change type.
4598 (basic_type, _initialize_mdebugread): Update.
4599
31930bd3
TT
46002019-05-08 Tom Tromey <tom@tromey.com>
4601
4602 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4603
bdb3ed9e
TT
46042019-05-08 Tom Tromey <tom@tromey.com>
4605
4606 * nto-tdep.c (nto_inferior_data_reg): Change type.
4607 (nto_inferior_data): Update.
4608 (nto_inferior_data_cleanup, nto_new_inferior_data)
4609 (_initialize_nto_tdep): Remove.
4610 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4611
f37b313d
TT
46122019-05-08 Tom Tromey <tom@tromey.com>
4613
4614 * ada-lang.c (struct ada_inferior_data): Add initializers.
4615 (ada_inferior_data): Change type.
4616 (ada_inferior_data_cleanup): Remove.
4617 (get_ada_inferior_data, ada_inferior_exit)
4618 (struct ada_pspace_data): Add initializers, destructor.
4619 (ada_pspace_data_handle): Change type.
4620 (get_ada_pspace_data): Update.
4621 (ada_pspace_data_cleanup): Remove.
4622
24699405
TT
46232019-05-08 Tom Tromey <tom@tromey.com>
4624
4625 * coffread.c (struct coff_symfile_info): Add initializers.
4626 (coff_objfile_data_key): Move lower. Change type.
4627 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4628 Update.
4629 (coff_free_info): Remove.
4630
d4e05d2f
TT
46312019-05-08 Tom Tromey <tom@tromey.com>
4632
4633 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4634 (fbsd_pspace_data_handle): Move lower. Change type.
4635 (get_fbsd_pspace_data): Update.
4636 (fbsd_pspace_data_cleanup): Remove.
4637 (_initialize_fbsd_tdep): Update.
4638
14ef6690
TT
46392019-05-08 Tom Tromey <tom@tromey.com>
4640
4641 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4642 (get_ada_tasks_pspace_data): Update.
4643 (ada_tasks_pspace_data_cleanup): Remove.
4644 (_initialize_tasks): Update.
4645 (ada_tasks_inferior_data_handle): Change type.
4646 (get_ada_tasks_inferior_data): Update.
4647 (ada_tasks_inferior_data_cleanup): Remove.
4648 (struct ada_tasks_pspace_data): Add initializers.
4649
814cf43a
TT
46502019-05-08 Tom Tromey <tom@tromey.com>
4651
4652 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4653 * symfile-debug.c (debug_sym_get_probes): Change type.
4654 * stap-probe.c (handle_stap_probe):
4655 (stap_static_probe_ops::get_probes): Change type.
4656 * probe.h (class static_probe_ops) <get_probes>: Change type.
4657 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4658 (parse_probes_in_pspace): Update.
4659 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4660 Update.
4661 (any_static_probe_ops::get_probes): Change type.
4662 * elfread.c (elfread_data): New typedef.
4663 (probe_key): Change type.
4664 (elf_get_probes): Likewise. Update.
4665 (probe_key_free): Remove.
4666 (_initialize_elfread): Update.
4667 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4668 Change type.
4669 (dtrace_process_dof_probe, dtrace_process_dof)
4670 (dtrace_static_probe_ops::get_probe): Change type.
4671
02dc647e
TT
46722019-05-08 Tom Tromey <tom@tromey.com>
4673
4674 * xcoffread.c (struct xcoff_symfile_info): Rename from
4675 coff_symfile_info. Add initializers.
4676 (xcoff_objfile_data_key): Move lower. Change type.
4677 (XCOFF_DATA): Rewrite.
4678 (xcoff_free_info): Remove.
4679 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4680 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4681 (xcoff_initial_scan): Update.
4682
09232438
TT
46832019-05-08 Tom Tromey <tom@tromey.com>
4684
4685 * solib-svr4.c (struct svr4_info): Add initializers and
4686 destructor.
4687 <probes_table>: Now an htab_up.
4688 (solib_svr4_pspace_data): Change type.
4689 (free_probes_table): Simplify.
4690 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4691 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4692 (probes_table_remove_objfile_probes, register_solib_event_probe)
4693 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4694 (_initialize_svr4_solib): Update.
4695
7b4a314f
TT
46962019-05-08 Tom Tromey <tom@tromey.com>
4697
4698 * remote.c (remote_pspace_data): Change type.
4699 (remote_pspace_data_cleanup): Remove.
4700 (get_remote_exec_file, set_pspace_remote_exec_file)
4701 (_initialize_remote): Update.
4702
51d3063a
TT
47032019-05-08 Tom Tromey <tom@tromey.com>
4704
4705 * breakpoint.c (breakpoint_objfile_key): Change type.
4706 (get_breakpoint_objfile_data): Update.
4707 (free_breakpoint_objfile_data): Remove.
4708 (_initialize_breakpoint): Update.
4709
89fb8848
TT
47102019-05-08 Tom Tromey <tom@tromey.com>
4711
4712 * linux-tdep.c (struct linux_info): Add initializers.
4713 (linux_inferior_data): Move. Change type.
4714 (invalidate_linux_cache_inf): Update.
4715 (linux_inferior_data_cleanup): Remove.
4716 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4717
e9b89e2d
TT
47182019-05-08 Tom Tromey <tom@tromey.com>
4719
4720 * auxv.c (auxv_inferior_data): Move. Change type.
4721 (auxv_inferior_data_cleanup): Remove.
4722 (invalidate_auxv_cache_inf): Rewrite.
4723 (get_auxv_inferior_data, _initialize_auxv): Update.
4724
8c42777c
TT
47252019-05-08 Tom Tromey <tom@tromey.com>
4726
4727 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4728 (symfile_debug_objfile_data_key): Change type.
4729 (symfile_debug_installed, debug_qf_has_symbols)
4730 (debug_qf_find_last_source_symtab)
4731 (debug_qf_forget_cached_source_info)
4732 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4733 (debug_qf_print_stats, debug_qf_dump)
4734 (debug_qf_expand_symtabs_for_function)
4735 (debug_qf_expand_all_symtabs)
4736 (debug_qf_expand_symtabs_with_fullname)
4737 (debug_qf_map_matching_symbols)
4738 (debug_qf_expand_symtabs_matching)
4739 (debug_qf_find_pc_sect_compunit_symtab)
4740 (debug_qf_map_symbol_filenames)
4741 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4742 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4743 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4744 (debug_sym_read_linetable, debug_sym_relocate): Update.
4745 (symfile_debug_free_objfile): Remove.
4746 (install_symfile_debug_logging, _initialize_symfile_debug):
4747 Update.
4748
5bfd760d
TT
47492019-05-08 Tom Tromey <tom@tromey.com>
4750
4751 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4752 allocate_on_obstack.
4753 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4754 (get_dwarf2_per_objfile): Update.
4755 (set_dwarf2_per_objfile): Remove.
4756 (dwarf2_has_info, dwarf2_get_section_info): Update.
4757 (dwarf2_free_objfile): Remove.
4758 (_initialize_dwarf2_read): Update.
4759
e85e19b4
TT
47602019-05-08 Tom Tromey <tom@tromey.com>
4761
4762 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4763 initializers.
4764 <unsupported_script_warning_printed,
4765 script_not_found_warning_printed>: Now bool.
4766 (auto_load_pspace_data): Change type.
4767 (~auto_load_pspace_info): Rename from
4768 auto_load_pspace_data_cleanup.
4769 (get_auto_load_pspace_data, init_loaded_scripts_info)
4770 (clear_section_scripts, maybe_print_unsupported_script_warning)
4771 (maybe_print_script_not_found_warning, _initialize_auto_load):
4772 Update.
4773
f6aa7436
TT
47742019-05-08 Tom Tromey <tom@tromey.com>
4775
4776 * objfiles.c (objfile_pspace_info): Add destructor and
4777 initializers.
4778 (objfiles_pspace_data): Change type.
4779 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4780 (get_objfile_pspace_data): Update.
4781 (objfiles_bfd_data): Change type.
4782 (get_objfile_bfd_data): Update.
4783 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4784
6ae614f6
TT
47852019-05-08 Tom Tromey <tom@tromey.com>
4786
4787 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4788 Change type.
4789 (get_catch_syscall_inferior_data): Update.
4790 (catch_syscall_inferior_data_cleanup): Remove.
4791 (_initialize_break_catch_syscall): Update.
4792
6509b8eb
TT
47932019-05-08 Tom Tromey <tom@tromey.com>
4794
4795 * inflow.c (struct terminal_info): Add destructor and
4796 initializers.
4797 (inflow_inferior_data): Change type.
4798 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4799 (get_inflow_inferior_data, inflow_inferior_exit)
4800 (swap_terminal_info, _initialize_inflow): Update.
4801
35632941
TT
48022019-05-08 Tom Tromey <tom@tromey.com>
4803
4804 * target-dcache.c (target_dcache_cleanup): Remove.
4805 (target_dcache_aspace_key): Change type.
4806 (target_dcache_init_p, target_dcache_invalidate)
4807 (target_dcache_get, target_dcache_get_or_init)
4808 (_initialize_target_dcache): Update.
4809 * dcache.h (struct dcache_deleter): New.
4810
3017b94d
TT
48112019-05-08 Tom Tromey <tom@tromey.com>
4812
4813 * symtab.c (struct symbol_cache): Add destructor and
4814 initializers.
4815 (symbol_cache_key): Move. Change type.
4816 (make_symbol_cache, free_symbol_cache): Remove.
4817 (get_symbol_cache): Update.
4818 (symbol_cache_cleanup): Remove.
4819 (ALL_PSPACES, symbol_cache_flush)
4820 (maintenance_print_symbol_cache)
4821 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4822 Update.
4823
a32ad8c5
TT
48242019-05-08 Tom Tromey <tom@tromey.com>
4825
4826 * symtab.c (struct main_info): Add destructor and initializers.
4827 (main_progspace_key): Move. Change type.
4828 (get_main_info): Update.
4829 (main_info_cleanup): Remove.
4830 (_initialize_symtab): Update.
4831
5f6e90a0
TT
48322019-05-08 Tom Tromey <tom@tromey.com>
4833
4834 * registry.h (DECLARE_REGISTRY): Define the _key class.
4835
1bd0c6e4
AB
48362019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4837
4838 * NEWS: Merge two 'New commands' sections.
4839
2228ef77
XR
48402019-05-08 Joel Brobecker <brobecker@adacore.com>
4841
4842 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4843 parameter and use Ada language definition instead.
4844 (ada_val_print_ptr): Remove unused language parameter.
4845 (ada_val_print_num): Remove language parameter and use Ada language
4846 definition instead.
4847 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4848 parameter.
4849 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4850 parameter and use Ada language definition instead.
4851 (ada_val_print_1): Update all ada_val_print_xxx calls.
4852 Remove language parameter.
4853 (ada_val_print): Update ada_val_print_1 call.
4854
60fcc1c3
TT
48552019-05-08 Tom Tromey <tromey@adacore.com>
4856
4857 * remote.c (remote_hw_watchpoint_limit)
4858 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4859 Now static.
4860
ed2b7c17
TT
48612019-05-08 Tom Tromey <tromey@adacore.com>
4862
4863 * maint.c (_initialize_maint_cmds): Move initialization code to
4864 remote.c.
4865 (watchdog, show_watchdog): Move to remote.c.
4866 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4867 "watchdog" static.
4868 (_initialize_remote): Move initialization code from maint.c.
4869 * defs.h (watchdog): Don't declare.
4870
b0be6c91
TT
48712019-05-08 Tom Tromey <tromey@adacore.com>
4872
4873 * tui/tui-interp.c: Include main.h.
4874 * interps.c: Include main.h.
4875 * main.h (interpreter_p): Declare.
4876 * defs.h (interpreter_p): Don't declare.
4877
587ee17b
TT
48782019-05-08 Tom Tromey <tromey@adacore.com>
4879
4880 * dwarf2loc.c: Include dwarf2read.h.
4881 * defs.h (read_unsigned_leb128): Don't declare.
4882 * dwarf2read.h (read_unsigned_leb128): Declare.
4883
ca1df239
TT
48842019-05-08 Tom Tromey <tromey@adacore.com>
4885
4886 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4887 method.
4888
99f20f08
TT
48892019-05-08 Tom Tromey <tromey@adacore.com>
4890
4891 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4892 when no wrap column is set.
4893
80e55b13
TT
48942019-05-08 Tom Tromey <tromey@adacore.com>
4895
4896 * c-lang.c (c_get_string): Handle non-C-style arrays.
4897
9d3421af
TT
48982019-05-08 Tom Tromey <tromey@adacore.com>
4899
4900 * typeprint.c (print_offset_data::update): Print the bit offset,
4901 not the number of bits remaining.
4902
844333e2
TT
49032019-05-08 Tom Tromey <tromey@adacore.com>
4904
4905 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4906 padding at end of comment.
4907
988915ee
TT
49082019-05-08 Tom Tromey <tromey@adacore.com>
4909
4910 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4911 Compare main types.
4912
26bfd823
TT
49132019-05-06 Tom Tromey <tom@tromey.com>
4914
4915 * common/scoped_mmap.c: Include common-defs.h.
4916 * common/scoped_mmap.h: Don't include config.h.
4917
89055eaa
TT
49182019-05-04 Tom Tromey <tom@tromey.com>
4919
4920 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4921 (struct aarch64_call_info): Add initializers.
4922 <si>: Now a std::vector.
4923 (pass_on_stack, aarch64_push_dummy_call): Update.
4924
5da01df5
TT
49252019-05-04 Simon Marchi <simon.marchi@efficios.com>
4926 Tom Tromey <tom@tromey.com>
4927
4928 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4929 (ppc_threads): Now a std::vector. Now static.
4930 (hwdebug_find_thread_points_by_tid)
4931 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4932 Update.
4933
fbdf05a1
TT
49342019-05-04 Tom Tromey <tom@tromey.com>
4935
4936 * arc-tdep.c (arc_tdesc_init): Return bool.
4937
06d16ec9
TT
49382019-05-04 Tom Tromey <tom@tromey.com>
4939
4940 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4941 Use gdb_assert_not_reached.
4942
9c056022
TT
49432019-05-04 Tom Tromey <tom@tromey.com>
4944
4945 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4946 "false".
4947
fa9c2a59
TT
49482019-05-04 Tom Tromey <tom@tromey.com>
4949
4950 * arc-tdep.c (arc_tdesc_init): Use bool.
4951
e2eb806a
TT
49522019-05-04 Tom Tromey <tom@tromey.com>
4953
4954 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4955
6fe87677
TT
49562019-05-04 Tom Tromey <tom@tromey.com>
4957
4958 * cli/cli-cmds.c (valid_command_p): Return bool.
4959
7f008c9e
TT
49602019-05-04 Tom Tromey <tom@tromey.com>
4961
4962 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4963 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4964
b6484282
RT
49652019-05-04 Raul Tambre <raul@tambre.ee>
4966
4967 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4968 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4969 operator for comparison.
4970
af97b416
TT
49712019-05-04 Tom Tromey <tom@tromey.com>
4972
4973 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4974 (lookup_partial_symbol, print_partial_symbols)
4975 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4976 (psymbol_compare): Update.
4977 (add_psymbol_to_bcache): Clear the entire psymbol.
4978 (maintenance_check_psymtabs): Update.
4979 * psympriv.h (struct partial_symbol): Don't derive from
4980 general_symbol_info.
4981 <obj_section, unrelocated_address, address,
4982 set_unrelocated_address>: Update.
4983 <ginfo>: New member.
4984 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4985 (debug_names::write_psymbols): Update.
4986
9d6d4be8
TV
49872019-05-04 Tom de Vries <tdevries@suse.de>
4988
4989 * contrib/cc-with-tweaks.sh: Support -n arg.
4990
66452beb
PW
49912019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4992
4993 * corelow.c (core_target::detach): Ensure frame cache and
4994 register caches are cleared.
4995 inferior.c (exit_inferior_1): Likewise.
4996
bde09ab7
TT
49972019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4998 Tom Tromey <tom@tromey.com>
4999
5000 * dictionary.c (collate_pending_symbols_by_language): Remove
5001 "struct" from foreach.
5002 * symtab.c (lookup_global_symbol_from_objfile)
5003 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5004 foreach.
5005 * ser-tcp.c (net_open): Remove "struct" from foreach.
5006 * objfiles.c (objfile_relocate, objfile_rebase)
5007 (objfile_has_symbols): Remove "struct" from foreach.
5008 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5009 from foreach.
5010 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5011 foreach.
5012 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5013 "struct" from foreach.
5014 * ada-lang.c (create_excep_cond_exprs)
5015 (ada_exception_catchpoint_cond_string): Remove "struct" from
5016 foreach.
5017
222a8d25
TT
50182019-05-03 Tom Tromey <tromey@adacore.com>
5019
5020 * ada-exp.y (convert_char_literal): Check suffix of each
5021 enumerator.
5022
fcd60b84
DP
50232019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5024
5025 PR ada/21406:
5026 * ada-exp.y (yywrap): Don't define.
5027 * ada-lex.l (%option): Add noyywrap
5028 (yywrap): Remove.
5029
5f2459c2
EZ
50302019-05-03 Eli Zaretskii <eliz@gnu.org>
5031
353ea2d1
EZ
5032 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5033 _WIN32_WINNT to the XP level, unless already defined to a higher
5034 level.
5035
5036 * unittests/parse-connection-spec-selftests.c:
5037 * ser-tcp.c:
5038 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5039 override.
5040
5f2459c2
EZ
5041 * symfile.c (find_separate_debug_file): Remove colon from the
5042 drive spec of DOS/Windows file names of the target, so that the
5043 file name produced from DEBUGDIR and the target's directory will
5044 be valid on DOS/Windows systems.
5045
80062eb9
AB
50462019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5047
5048 * rust-lang.c (val_print_struct): Handle printing structures
5049 containing strings.
5050
b8c05e85
TT
50512019-05-02 Tom Tromey <tromey@adacore.com>
5052
5053 * valarith.c (_initialize_valarith): Remove.
5054
4504bbde
TT
50552019-05-01 Tom Tromey <tromey@adacore.com>
5056
5057 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5058 bitfields.
5059
d48e62f4
TT
50602019-05-01 Tom Tromey <tromey@adacore.com>
5061
5062 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5063 for big-endian copies.
5064
15f18d14
AT
50652019-04-30 Ali Tamur <tamur@google.com>
5066 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5067 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5068 (read_3_bytes): New function.
5069
ab4ee614
JB
50702019-04-30 Joel Brobecker <brobecker@adacore.com>
5071
5072 * windows-nat.c (main_thread_id): Delete.
5073 (handle_output_debug_string): Replace main_thread_id by
5074 current_event.dwThreadId.
5075 (fake_create_process): Likewise.
5076 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5077 Do not set main_thread_id.
5078 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5079 current_event.dwThreadId.
5080 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5081
8ed5b76e
JB
50822019-04-30 Joel Brobecker <brobecker@adacore.com>
5083
5084 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5085 Use current_event.dwThreadId instead of main_thread_id.
5086
2ff0a947
TT
50872019-04-30 Tom Tromey <tromey@adacore.com>
5088
5089 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5090 (create_excep_cond_exprs): Iterate over program spaces.
5091 (ada_exception_catchpoint_cond_string): Examine all minimal
5092 symbols for exception types.
5093
a776957c
TT
50942019-04-30 Tom Tromey <tromey@adacore.com>
5095
5096 PR c++/24470:
5097 * dwarf2read.c (process_structure_scope): Handle case where type
5098 has template parameters but no symbol was created.
5099
bc68014d
AB
51002019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5101 Chris January <chris.january@arm.com>
5102
5103 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5104 qualifier.
5105 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5106
f1fdc960
AB
51072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5108
5109 * f-typeprint.c (f_print_type): Update rules for printing
5110 whitespace.
5111 (f_type_print_varspec_suffix): Likewise.
5112
bf7a4de1
AB
51132019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5114 Chris January <chris.january@arm.com>
5115
5116 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5117 function arguments.
5118
bbe75b9d
AB
51192019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5120
5121 * f-lang.c (build_fortran_types): Change name of void type to
5122 lower case.
5123 * f-typeprint.c (f_type_print_base): Print the name of the void
5124 type, rather than a fixed string.
5125 * f-valprint.c (f_decorations): Use lower case void string.
5126
1db455a7
AB
51272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5128 Chris January <chris.january@arm.com>
5129
5130 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5131 types for Fortran.
5132
b6d03bb2
AB
51332019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5134 Chris January <chris.january@arm.com>
5135 David Lecomber <david.lecomber@arm.com>
5136
5137 * f-exp.y (BINOP_INTRINSIC): New token.
5138 (exp): New parser rule handling BINOP_INTRINSIC.
5139 (f77_keywords): Add new builtin procedures.
5140 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5141 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5142 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5143 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5144 (print_unop_subexp_f): New function.
5145 (print_binop_subexp_f): New function.
5146 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5147 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5148 (dump_subexp_body_f): Likewise.
5149 (operator_check_f): Likewise.
5150 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5151 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5152
83228e93
AB
51532019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5154
5155 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5156 UNOP_KIND.
5157 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5158 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5159 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5160 (operator_length_f): New fuction.
5161 (print_subexp_f): New function.
5162 (op_name_f): New function.
5163 (dump_subexp_body_f): New function.
5164 (operator_check_f): New function.
5165 (exp_descriptor_f): Replace standard expression handling functions
5166 with new functions.
5167 * gdb/fortran-operator.def: New file.
5168 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5169 * gdb/std-operator.def: Remove UNOP_KIND.
5170
6fdcd7cc
AB
51712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5172
5173 * std-operator.def: Remove unbalanced, stray double quote
5174 character.
5175
2e62ab40
AB
51762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5177 Chris January <chris.january@arm.com>
5178 Daniel Everett <daniel.everett@arm.com>
5179 Nick Forrington <nick.forrington@arm.com>
5180 Richard Bunt <richard.bunt@arm.com>
5181
5182 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5183 of depth when printing anonymous structs or unions.
5184 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5185 Don't print either the top-level value, or the children if the
5186 max-depth is exceeded.
5187 (ppscm_print_children): When printing the key of a map, allow one
5188 extra level of depth.
5189 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5190 print either the top-level value, or the children if the max-depth
5191 is exceeded.
5192 (print_children): When printing the key of a map, allow one extra
5193 level of depth.
5194 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5195 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5196 (user_print_options): Initialise max_depth field.
5197 (val_print_scalar_or_string_type_p): New function.
5198 (val_print): Check to see if the max depth has been reached.
5199 (val_print_check_max_depth): Define new function.
5200 (show_print_max_depth): New function.
5201 (_initialize_valprint): Add 'print max-depth' option.
5202 * valprint.h (struct value_print_options) <max_depth>: New field.
5203 (val_print_check_max_depth): Declare new function.
5204 * NEWS: Document new feature.
5205
4be290b2
AB
52062019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5207
5208 * ada-lang.c (ada_language_defn): Initialise new field.
5209 * c-lang.c (c_is_string_type_p): New function.
5210 (c_language_defn): Initialise new field.
5211 (cplus_language_defn): Initialise new field.
5212 (asm_language_defn): Initialise new field.
5213 (minimal_language_defn): Initialise new field.
5214 * c-lang.h (c_is_string_type_p): Declare new function.
5215 * d-lang.c (d_language_defn): Initialise new field.
5216 * f-lang.c (f_is_string_type_p): New function.
5217 (f_language_defn): Initialise new field.
5218 * go-lang.c (go_is_string_type_p): New function.
5219 (go_language_defn): Initialise new field.
5220 * language.c (default_is_string_type_p): New function.
5221 (unknown_language_defn): Initialise new field.
5222 (auto_language_defn): Initialise new field.
5223 * language.h (struct language_defn) <la_is_string_type_p>: New
5224 member variable.
5225 (default_is_string_type_p): Declare new function.
5226 * m2-lang.c (m2_language_defn): Initialise new field.
5227 * objc-lang.c (objc_language_defn): Initialise new field.
5228 * opencl-lang.c (opencl_language_defn): Initialise new field.
5229 * p-lang.c (pascal_is_string_type_p): New function.
5230 (pascal_language_defn): Initialise new field.
5231 * rust-lang.c (rust_is_string_type_p): New function.
5232 (rust_language_defn): Initialise new field.
5233
721b08c6
AB
52342019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5235
5236 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5237 New field.
5238 * ada-lang.c (ada_language_defn): Initialise new field.
5239 * c-lang.c (c_language_defn): Likewise.
5240 (cplus_language_defn): Likewise.
5241 (asm_language_defn): Likewise.
5242 (minimal_language_defn): Likewise.
5243 * d-lang.c (d_language_defn): Likewise.
5244 * f-lang.c (f_language_defn): Likewise.
5245 * go-lang.c (go_language_defn): Likewise.
5246 * language.c (unknown_language_defn): Likewise.
5247 (auto_language_defn): Likewise.
5248 * m2-lang.c (m2_language_defn): Likewise.
5249 * objc-lang.c (objc_language_defn): Likewise.
5250 * opencl-lang.c (opencl_language_defn): Likewise.
5251 * p-lang.c (pascal_language_defn): Likewise.
5252 * rust-lang.c (rust_language_defn): Likewise.
5253
fc913e53
AB
52542019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5255
5256 * ada-lang.c (ada_is_character_type): Change return type to bool.
5257 (ada_is_string_type): Likewise.
5258 * ada-lang.h (ada_is_character_type): Update declaration
5259 (ada_is_string_type): Likewise.
5260
fa731fa0
PW
52612019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5262
5263 Support style in 'frame|thread apply'
5264
5265 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5266 * record.c (record_start, record_stop): Update callers of
5267 execute_command_to_string with false.
5268 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5269 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5270 methods.
5271 (class string_file): New constructor with term_out parameter.
5272 Override methods term_out and can_emit_style_escape. New member
5273 term_out.
5274 (class stdio_file): Override can_emit_style_escape.
5275 (class tee_file): Override term_out and can_emit_style_escape.
5276 * utils.h (can_emit_style_escape): Remove.
5277 * utils.c (can_emit_style_escape): Likewise.
5278 Update all callers of can_emit_style_escape (SOMESTREAM) to
5279 SOMESTREAM->can_emit_style_escape.
5280 * source-cache.c (source_cache::get_source_lines): Likewise.
5281 * stack.c (frame_apply_command_count): Call execute_command_to_string
5282 passing the term_out characteristic of the current gdb_stdout.
5283 * thread.c (thr_try_catch_cmd): Likewise.
5284 * top.c (execute_command_to_string): pass term_out parameter
5285 to construct the string_file for the command output.
5286 * ui-file.c (term_cli_styling): New function (most code moved
5287 from utils.c can_emit_style_escape).
5288 (string_file::string_file, string_file::can_emit_style_escape,
5289 stdio_file::can_emit_style_escape, tee_file::term_out,
5290 tee_file::can_emit_style_escape): New functions.
5291
136afab8
PW
52922019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5293
5294 * NEWS: Mention the new set|show may-call-functions.
5295 * infcall.c (may_call_functions_p): New variable.
5296 (show_may_call_functions_p): New function.
5297 (call_function_by_hand_dummy): Throws an error if not
5298 may-call-functions.
5299 (_initialize_infcall): Call add_setshow_boolean_cmd for
5300 may-call-functions.
5301
725cbb63
KS
53022019-04-25 Keith Seitz <keiths@redhat.com>
5303
5304 PR c++/24367
5305 * cp-support.c (inspect_type): Don't attempt substitutions
5306 of symbol with the same name.
5307
3d1cbb78
TT
53082019-04-25 Tom Tromey <tromey@adacore.com>
5309
5310 PR gdb/24475:
5311 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5312 static.
5313
94aeb44b
TT
53142019-04-25 Tom Tromey <tromey@adacore.com>
5315
5316 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5317 rvalue reference.
5318 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5319 (gdb_xml_parser::parse): Use std::move.
5320 * python/python-internal.h (gdbpy_convert_exception): Take a const
5321 reference.
5322 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5323 std::move.
5324 * python/py-utils.c (gdbpy_convert_exception): Take a const
5325 reference.
5326 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5327 Use std::move.
5328 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5329 Use std::move.
5330 * mi/mi-main.c (mi_print_exception): Take a const reference.
5331 * main.c (handle_command_errors): Take a const reference.
5332 * linespec.c (parse_linespec): Use std::move.
5333 * infcall.c (run_inferior_call): Use std::move.
5334 (call_function_by_hand_dummy): Use std::move.
5335 * exec.c (try_open_exec_file): Use std::move.
5336 * exceptions.h (exception_print, exception_fprintf)
5337 (exception_print_same): Update.
5338 * exceptions.c (print_exception, exception_print)
5339 (exception_fprintf, exception_print_same): Change parameters to
5340 const reference.
5341 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5342 * common/new-op.c: Use std::move.
5343 * common/common-exceptions.h (struct gdb_exception): Add move
5344 constructor.
5345 (struct gdb_exception_error, struct gdb_exception_quit, struct
5346 gdb_quit_bad_alloc): Change constructor to move constructor.
5347 (throw_exception): Change parameter to rvalue reference.
5348 * common/common-exceptions.c (throw_exception): Take rvalue
5349 reference.
5350 * cli/cli-interp.c (safe_execute_command): Use std::move.
5351 * breakpoint.c (insert_bp_location, location_to_sals): Use
5352 std::move.
5353
680d7fd5
TT
53542019-04-25 Tom Tromey <tromey@adacore.com>
5355
5356 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5357 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5358 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5359 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5360 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5361 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5362 guile/scm-value.c: Use unpack.
5363 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5364 gdbscm_gdb_exception.
5365 (gdbscm_throw_gdb_exception): Likewise.
5366 (struct gdbscm_gdb_exception): New.
5367 (unpack): New function.
5368 (gdbscm_wrap): Use unpack.
5369
c6fdd8b2
TT
53702019-04-25 Tom Tromey <tromey@adacore.com>
5371
5372 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5373 (gdb_rl_callback_handler): Use std::move.
5374 * common/common-exceptions.h (struct gdb_exception): Add move
5375 assignment operator.
5376 (throw_exception_sjlj): Change "exception" to const reference.
5377 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5378 (throw_exception_sjlj): Change "exception" to const reference.
5379
cc06b668
TT
53802019-04-25 Tom Tromey <tromey@adacore.com>
5381
5382 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5383 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5384 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5385 Update.
5386 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5387 Update.
5388 * mi/mi-interp.c (mi_interp::exec): Update.
5389 * linespec.c (parse_linespec): Update.
5390 * infcall.c (run_inferior_call): Update.
5391 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5392 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5393 (gdbscm_lookup_global_symbol): Update.
5394 * guile/scm-param.c (gdbscm_parameter_value): Update.
5395 * guile/scm-frame.c (gdbscm_frame_read_register)
5396 (gdbscm_frame_read_var): Update.
5397 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5398 * exec.c (try_open_exec_file): Update.
5399 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5400 (gdb_rl_callback_handler): Update.
5401 * common/common-exceptions.h (exception_none): Don't declare.
5402 * common/common-exceptions.c (exception_none): Don't define.
5403 (struct catcher) <exception>: Update.
5404 * cli/cli-interp.c (safe_execute_command): Update.
5405 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5406
cf532bd1
AT
54072019-04-25 Ali Tamur <tamur@google.com>
5408
5409 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5410 (read_attribute_value): Likewise.
5411 (dwarf2_read_addr_index): Update comment.
5412 (read_str_index): Add DW_FORM_strx.
5413 (dwarf2_string_attr): Likewise.
5414 (dwarf2_const_value_attr): Likewise.
5415 (dump_die_shallow): Likewise.
5416 (dwarf2_fetch_constant_bytes): Likewise.
5417 (skip_form_bytes): Likewise.
5418 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5419
82433e3e
SDJ
54202019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5421
5422 PR corefiles/11608
5423 PR corefiles/18187
5424 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5425 OFFSET. Verify if current mapping contains an ELF header.
5426 (linux_find_memory_regions_full): Adjust call to
5427 dump_mapping_p.
5428
723adb65
SL
54292019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5430 Kang Li <kanglictf@gmail.com>
5431
5432 PR gdb/21600
5433
5434 * dwarf2-frame.c (read_initial_length): Be consistent about using
5435 unsigned representation of length.
5436 (decode_frame_entry_1): Likewise. Check for wraparound of
5437 end pointer as well as buffer overflow.
5438
596179f7
SDJ
54392019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5440
5441 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5442 "vq".
5443
a59240a4
TT
54442019-04-24 Tom Tromey <tromey@adacore.com>
5445
5446 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5447
f872fdbb
AB
54482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5449
5450 * s12z-tdep.c (s12z_unwind_pc): Delete.
5451 (s12z_unwind_sp): Delete.
5452 (s12z_gdbarch_init): Don't register deleted functions with
5453 gdbarch.
5454
b614e6f3
AB
54552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5456
5457 * rl78-tdep.c (rl78_unwind_sp): Delete.
5458 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5459
14faed38
AB
54602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5461
5462 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5463 (xstormy16_unwind_pc): Delete.
5464 (xstormy16_dummy_id): Delete.
5465 (xstormy16_gdbarch_init): Don't register deleted functions with
5466 gdbarch.
5467
541aad8a
AB
54682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * vax-tdep.c (vax_unwind_pc): Delete.
5471 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5472
29222070
AB
54732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5474
5475 * v850-tdep.c (v850_unwind_sp): Delete.
5476 (v850_unwind_pc): Delete.
5477 (v850_dummy_id): Delete.
5478 (v850_gdbarch_init): Don't register deleted functions with
5479 gdbarch.
5480
0f534d76
AB
54812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5482
5483 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5484 (tilegx_unwind_pc): Delete.
5485 (tilegx_unwind_dummy_id): Delete.
5486 (tilegx_gdbarch_init): Don't register deleted functions with
5487 gdbarch.
5488
1ba7b7f9
AB
54892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5490
5491 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5492 (tic6x_dummy_id): Delete.
5493 (tic6x_gdbarch_init): Don't register deleted functions with
5494 gdbarch.
5495
d31f262c
AB
54962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5497
5498 * sparc-tdep.c (sparc_unwind_pc): Delete.
5499 (sparc32_gdbarch_init): Don't register deleted function with
5500 gdbarch.
5501
6d14d64d
AB
55022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5503
5504 * sh-tdep.c (sh_unwind_sp): Delete.
5505 (sh_unwind_pc): Delete.
5506 (sh_dummy_id): Delete.
5507 (sh_gdbarch_init): Don't register deleted functions with
5508 gdbarch.
5509
a40dde9d
AB
55102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5511
5512 * score-tdep.c (score_unwind_sp): Delete.
5513 (score_unwind_pc): Delete.
5514 (score_dummy_id): Delete.
5515 (score_gdbarch_init): Don't register deleted functions with
5516 gdbarch.
5517
47c47d69
AB
55182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5519
5520 * rx-tdep.c (rx_unwind_pc): Delete.
5521 (rx_unwind_sp): Delete.
5522 (rx_dummy_id): Delete.
5523 (rx_gdbarch_init): Don't register deleted functions with
5524 gdbarch. Update comment.
5525
833a4480
AB
55262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5527
5528 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5529 (rs6000_dummy_id): Delete.
5530 (rs6000_gdbarch_init): Don't register deleted functions with
5531 gdbarch.
5532
3f2cef49
AB
55332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5534
5535 * or1k-tdep.c (or1k_dummy_id): Delete.
5536 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5537
96acf884
AB
55382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * nios2-tdep.c (nios2_dummy_id): Delete.
5541 (nios2_unwind_sp): Delete.
5542 (nios2_gdbarch_init): Don't register deleted functions with
5543 gdbarch.
5544
ca0ab0aa
AB
55452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5546
5547 * nds32-tdep.c (nds32_dummy_id): Delete.
5548 (nds32_unwind_pc): Delete.
5549 (nds32_unwind_sp): Delete.
5550 (nds32_gdbarch_init): Don't register deleted functions with
5551 gdbarch.
5552
c8259044
AB
55532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5554
5555 * msp430-tdep.c (msp430_unwind_pc): Delete.
5556 (msp430_unwind_sp): Delete.
5557 (msp430_dummy_id): Delete.
5558 (msp430_gdbarch_init): Don't register deleted functions with
5559 gdbarch.
5560
27f113c8
AB
55612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5562
5563 * moxie-tdep.c (moxie_unwind_sp): Delete.
5564 (moxie_unwind_pc): Delete.
5565 (moxie_dummy_id): Delete.
5566 (moxie_gdbarch_init): Don't register deleted functions with
5567 gdbarch.
5568
aee6c3cd
AB
55692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5570
5571 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5572 (mn10300_unwind_pc): Delete.
5573 (mn10300_unwind_sp): Delete.
5574 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5575 mn10300_unwind_sp.
5576 (mn10300_frame_unwind_init): Don't register deleted functions with
5577 gdbarch.
5578
8e2b5aea
AB
55792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5580
5581 * mep-tdep.c (mep_unwind_pc): Delete.
5582 (mep_unwind_sp): Delete.
5583 (mep_dummy_id): Delete.
5584 (mep_gdbarch_init): Don't register deleted functions with
5585 gdbarch.
5586
43cf3ede
AB
55872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5588
5589 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5590 (m68hc11_unwind_sp): Delete.
5591 (m68hc11_gdbarch_init): Don't register deleted functions with
5592 gdbarch.
5593
5e79b7bb
AB
55942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5595
5596 * m32r-tdep.c (m32r_unwind_sp): Delete.
5597 (m32r_unwind_pc): Delete.
5598 (m32r_dummy_id): Delete.
5599 (m32r_gdbarch_init): Don't register deleted functions with
5600 gdbarch.
5601
89b268d8
AB
56022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5603
5604 * m32c-tdep.c (m32c_unwind_pc): Delete.
5605 (m32c_unwind_sp): Delete.
5606 (m32c_dummy_id): Delete.
5607 (m32c_gdbarch_init): Don't register deleted functions with
5608 gdbarch.
5609
946c28d2
AB
56102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5611
5612 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5613 (lm32_unwind_pc): Delete.
5614 (lm32_dummy_id): Delete.
5615 (lm32_gdbarch_init): Don't register deleted functions with
5616 gdbarch.
5617
bf12844a
AB
56182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5619
5620 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5621 (iq2000_unwind_pc): Delete.
5622 (iq2000_dummy_id): Delete.
5623 (iq2000_gdbarch_init): Don't register deleted functions with
5624 gdbarch.
5625
ecbc06d2
AB
56262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5627
5628 * nds32-tdep.c (nds32_type_align): Delete.
5629 (nds32_push_dummy_call): Use type_align instead.
5630
030197b4
AB
56312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5632
5633 * arm-tdep.c (arm_type_align): Only handle vector override case.
5634 (arm_push_dummy_call): Use type_align.
5635 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5636
b907456c
AB
56372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5638
5639 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5640 case.
5641 (pass_on_stack): Use type_align.
5642 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5643 function.
5644
9e97ba43
TT
56452019-04-23 Tom Tromey <tromey@adacore.com>
5646
5647 * dwarf2read.c (line_header::file_name_at): Remove unused
5648 overload.
5649
6892f601
TV
56502019-04-23 Tom de Vries <tdevries@suse.de>
5651
5652 PR gdb/24438
5653 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5654 invocation.
5655
336d760d
AT
5656
56572019-03-27 Ali Tamur <tamur@google.com>
5658
5659 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5660 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5661 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5662 (dwarf_expr_context::get_addr_index): Likewise
5663 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5664 (symbol_needs_eval_context::get_addr_index): Likewise
5665 (disassemble_dwarf_expression): Add DW_OP_addrx
5666 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5667 (read_cutu_die_from_dwo): Update comment
5668 (skip_one_die): Add DW_FORM_addrx
5669 (read_attribute_value): Likewise
5670 (var_decode_location): Add DW_OP_addrx
5671 (dwarf2_const_value_attr): Add DW_FORM_addrx
5672 (dump_die_shallow): Likewise
5673 (dwarf2_fetch_constant_bytes): Likewise
5674 (decode_locdesc): Add DW_OP_addrx
5675 (skip_form_bytes): Add DW_FORM_addrx
5676
ad9d13f8
AT
56772019-04-22 Ali Tamur <tamur@google.com>
5678
5679 * MAINTAINERS (Write After Approval): Add self.
5680
d70cc3ba
SM
56812019-04-22 Simon Marchi <simon.marchi@efficios.com>
5682
5683 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5684 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5685 (open_symbol_file_object): Likewise.
5686 (svr4_default_sos): Add info parameter.
5687 (svr4_read_so_list): Likewise.
5688 (svr4_current_sos_direct): Adjust functions calls to pass down
5689 info.
5690 (svr4_current_sos_1): Add info parameter.
5691 (svr4_current_sos): Call get_svr4_info, pass info down to
5692 svr4_current_sos_1.
5693 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5694 get_svr4_info.
5695 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5696 get_svr4_info.
5697 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5698 to get_svr4_info.
5699 (probes_table_remove_objfile_probes): Likewise.
5700 (register_solib_event_probe): Add info parameter.
5701 (solist_update_incremental): Pass info parameter down to
5702 svr4_read_so_list.
5703 (disable_probes_interface): Add info parameter.
5704 (svr4_handle_solib_event): Pass current_program_space to
5705 get_svr4_info. Adjust disable_probes_interface cleanup.
5706 (svr4_create_probe_breakpoints): Add info parameter, pass it
5707 down to register_solib_event_probe.
5708 (svr4_create_solib_event_breakpoints): Add info parameter,
5709 pass it down to svr4_create_probe_breakpoints.
5710 (enable_break): Pass info down to
5711 svr4_create_solib_event_breakpoints.
5712 (svr4_solib_create_inferior_hook): Pass current_program_space to
5713 get_svr4_info.
5714 (svr4_clear_solib): Likewise.
5715
7905fc35
PA
57162019-04-22 Pedro Alves <palves@redhat.com>
5717
5718 * solib-svr4.c (svr4_free_objfile_observer): New.
5719 (probe_and_action::objfile): New field.
5720 (probes_table_htab_remove_objfile_probes)
5721 (probes_table_remove_objfile_probes): New functions.
5722 (register_solib_event_probe): Add 'objfile' parameter. Store it
5723 in the new probe_and_action. Don't store the probe in 'lookup'.
5724 (svr4_create_probe_breakpoints): Pass objfile to
5725 register_solib_event_probe.
5726 (_initialize_svr4_solib): Register a free_objfile observer.
5727
fb881986
TT
57282019-04-19 Tom Tromey <tom@tromey.com>
5729
5730 * common/queue.h: Remove.
5731
8732db6c
TT
57322019-04-19 Tom Tromey <tom@tromey.com>
5733
5734 * event-loop.c: Don't include "common/queue.h".
5735
97dfbadd
TT
57362019-04-19 Tom Tromey <tom@tromey.com>
5737
5738 * remote.c (remote_target): Use delete.
5739 * remote-notif.h: Include <list>, not "common/queue.h".
5740 (notif_client_p): Remove typedef.
5741 (remote_notif_state): Add constructor, destructor, initializer.
5742 <notif_queue>: Now a std::list.
5743 (remote_notif_state_xfree): Don't declare.
5744 * remote-notif.c (remote_notif_process, handle_notification)
5745 (remote_notif_state_allocate): Update.
5746 (~remote_notif_state): Rename from remote_notif_state_xfree.
5747
cf250e36
TT
57482019-04-19 Tom Tromey <tom@tromey.com>
5749
5750 * symfile.c (reread_symbols): Update.
5751 * objfiles.c (objfile_register_static_link)
5752 (objfile_lookup_static_link): Update
5753 (~objfile) Don't delete static_links.
5754 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5755
61f4b350
TT
57562019-04-19 Tom Tromey <tom@tromey.com>
5757
5758 * type-stack.h (struct type_stack) <insert>: Constify string.
5759 * type-stack.c (type_stack::insert): Constify string.
5760 * gdbtypes.h (lookup_template_type): Update.
5761 (address_space_name_to_int): Update.
5762 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5763 const.
5764 (lookup_template_type): Make name const.
5765 * c-exp.y: Update rules.
5766 (lex_one_token, classify_name, classify_inner_name)
5767 (c_print_token): Update.
5768 * p-exp.y: Update rules.
5769 (yylex): Update.
5770 * f-exp.y: Update rules.
5771 (yylex): Update.
5772 * d-exp.y: Update rules.
5773 (lex_one_token, classify_name, classify_inner_name): Update.
5774 * parse.c (write_dollar_variable, copy_name): Return std::string.
5775 * parser-defs.h (copy_name): Change return type.
5776 * m2-exp.y: Update rules.
5777 (yylex): Update.
5778 * go-exp.y (lex_one_token): Update.
5779 Update rules.
5780 (classify_unsafe_function, classify_packaged_name)
5781 (classify_name, yylex): Update.
5782
189b8c2e
ST
57832019-04-19 Sergei Trofimovich <siarheit@google.com>
5784
5785 * configure.ac: add --enable-source-highlight switch.
5786 * configure: Regenerate.
5787 * top.c (print_gdb_version): plumb --enable-source-highlight
5788 status to "show configuration".
5789
8ecb59f8
TT
57902019-04-19 Tom Tromey <tromey@adacore.com>
5791
5792 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5793 Check ADA_TYPE_P.
5794 (empty_record, ada_template_to_fixed_record_type_1)
5795 (template_to_static_fixed_type)
5796 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5797 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5798 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5799 macros.
5800
62160ec9
TT
58012019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5802
5803 PR symtab/24423:
5804 * source.c (print_source_lines_base): Advance "iter" when a
5805 control character is seen.
5806
f2ae8bc8
PW
58072019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5808
5809 * inferior.h (struct infcall_suspend_state_deleter):
5810 Catch exception in destructor to avoid crash.
5811
d563b953
PW
58122019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5813
5814 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5815 close to the add_com "shell".
5816
dc34c897
TT
58172019-04-18 Tom Tromey <tromey@adacore.com>
5818
5819 * process-stratum-target.h (class process_stratum_target)
5820 <stratum>: Add "final".
5821
a12e5744
TT
58222019-04-17 Tom Tromey <tromey@adacore.com>
5823
5824 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5825 against nullptr before use.
5826
a7e559cc
AH
58272019-04-17 Alan Hayward <alan.hayward@arm.com>
5828
5829 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5830
c01660c6
AB
58312019-04-17 Jim Wilson <jimw@sifive.com>
5832 Andrew Burgess <andrew.burgess@embecosm.com>
5833
5834 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5835 code read might fail, assume 4-byte breakpoint in that case.
5836
4aa866af
LS
58372019-04-15 Leszek Swirski <leszeks@google.com>
5838
5839 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5840 rather than a hand-rolled POD check when checking for forced MEMORY
5841 classification.
5842
48574d91
AH
58432019-04-15 Alan Hayward <alan.hayward@arm.com>
5844
5845 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5846 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5847 function.
5848 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5849 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5850 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5851 declaration.
5852
4da037ef
AH
58532019-04-15 Alan Hayward <alan.hayward@arm.com>
5854
5855 * aarch64-linux-nat.c
5856 (aarch64_linux_nat_target::thread_architecture): Add override.
5857 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5858 each VQ.
5859
ccb8d7e8
AH
58602019-04-15 Alan Hayward <alan.hayward@arm.com>
5861
5862 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5863
35add35e
AB
58642019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5865
5866 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5867 target types of size 96-bits, add some additional comments, and
5868 check that the builtin type we found was the correct size.
5869
51196bbc
EZ
58702019-04-12 Eli Zaretskii <eliz@gnu.org>
5871
5872 * utils.c (prompt_for_continue): Don't restore the styling at the
5873 end, as applied_style has the wrong value. This fixes styling in
5874 long lists of file names that are interrupted by the "Continue?"
5875 prompt.
5876
62253a61
AB
58772019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5878
5879 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5880 * c-lang.c (c_language_defn): Likewise.
5881 (cplus_language_defn): Likewise.
5882 (asm_language_defn): Likewise.
5883 (minimal_language_defn): Likewise.
5884 * d-lang.c (d_language_defn): Likewise.
5885 * f-lang.c (f_language_defn): Likewise.
5886 * go-lang.c (go_language_defn): Likewise.
5887 * language.c (unknown_language_defn): Likewise.
5888 (auto_language_defn): Likewise.
5889 * language.h (struct language_defn): Remove la_magic field.
5890 (LANG_MAGIC): Delete.
5891 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5892 * objc-lang.c (objc_language_defn): Likewise.
5893 * opencl-lang.c (opencl_language_defn): Likewise.
5894 * p-lang.c (pascal_language_defn): Likewise.
5895 * rust-lang.c (rust_language_defn): Likewise.
5896
a9158a86
AB
58972019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5898
5899 * riscv-tdep.c (riscv_type_align): New function.
5900 (riscv_type_alignment): Delete.
5901 (riscv_arg_location): Use 'type_align'.
5902 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5903
41077b66
AB
59042019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5905
5906 * gdbtypes.c (type_align): A struct with no non-static fields also
5907 has alignment of 1.
5908
9f0272f8
AB
59092019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5912 component to 0.
5913 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5914 member.
5915 (riscv_struct_info::analyse): New implementation using new
5916 analyse_inner member function.
5917 (riscv_struct_info::field_offset): New member function.
5918 (riscv_struct_info::m_offsets): New member variable.
5919 (riscv_struct_info::analyse_inner): New private member function,
5920 takes the old implementation of riscv_struct_info::analyse but
5921 extended to track field offsets.
5922 (riscv_call_arg_struct): Update the struct folding special cases
5923 to handle cases where empty C++ structs, which are non-zero
5924 length, are found.
5925 (riscv_arg_location): Initialise the length of each location, a
5926 non-zero length now indicates the location is in use.
5927 (riscv_push_dummy_call): Allow for the first location having a
5928 non-zero offset when setting up arguments.
5929 (riscv_return_value): Likewise, but for return values.
5930
02cf60c7
TT
59312019-04-11 Tom Tromey <tromey@adacore.com>
5932
5933 * utils.c (internal_vproblem): Make "msg" const.
5934
68811f8f
AH
59352019-04-11 Alan Hayward <alan.hayward@arm.com>
5936
5937 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5938 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5939 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5940 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5941
3f52fdbc
KB
59422019-04-10 Kevin Buettner <kevinb@redhat.com>
5943
5944 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5945 function.
5946 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5947 of amd64_collect_native_gregset.
5948 (amd64_linux_nat_target::store_registers): Likewise.
5949
e9ad22ee
TT
59502019-04-10 Tom Tromey <tom@tromey.com>
5951
5952 * symtab.c (lookup_global_symbol_from_objfile)
5953 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5954 * objfiles.h (class separate_debug_iterator): New.
5955 (class separate_debug_range): New.
5956 (struct objfile) <separate_debug_objfiles>: New method.
5957 (objfile_separate_debug_iterate): Don't declare.
5958 * objfiles.c (separate_debug_iterator::operator++): Rename from
5959 objfile_separate_debug_iterate.
5960 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5961 iterator.
5962 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5963 iterator.
5964
ee371134
TT
59652019-04-10 Tom Tromey <tom@tromey.com>
5966
5967 * symfile.c (reread_symbols): Remove old comment.
5968 * objfiles.c (free_all_objfiles): Fix a typo.
5969
bf227d61
TT
59702019-04-10 Tom Tromey <tom@tromey.com>
5971
5972 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5973 * minsyms.c (lookup_minimal_symbol): Use foreach.
5974 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5975 (lookup_minimal_symbol_solib_trampoline): Likewise.
5976 * symfile.c (reread_symbols): Use foreach.
5977
8dc433a0
TT
59782019-04-09 Ivan Begert <ivanbegert@gmail.com>
5979 Tom Tromey <tromey@adacore.com>
5980
5981 PR rust/24414:
5982 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5983 (rust_lex_int_test): Change "value" to be LONGEST.
5984 (rust_lex_tests): Add test for long integer literal.
5985
9ab8741a
TT
59862019-04-09 Tom Tromey <tromey@adacore.com>
5987
5988 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5989 to bool.
5990 (extended_remote_target::attach): Update.
5991 (remote_target::remote_notice_new_inferior): Update.
5992 (remote_target::add_current_inferior_and_thread): Update.
5993 * inferior.c (exit_inferior_1): Use "false".
5994 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5995
e242fd12
SM
59962019-04-09 Simon Marchi <simon.marchi@efficios.com>
5997
9ca1957f 5998 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
5999 the "start" command.
6000
2b0c8b01
KB
60012019-04-08 Kevin Buettner <kevinb@redhat.com>
6002
6003 * python/py-inferior.c (infpy_thread_from_thread_handle):
6004 Adjust comments to reflect renaming of thread_from_thread_handle
6005 to thread_from_handle. Adjust keywords. Fix type error message.
6006 (inferior_object_methods): Add thread_from_handle. Retain
6007 thread_from_thread_handle, but mark it as deprecated.
6008
50a82723
KB
60092019-04-08 Kevin Buettner <kevinb@redhat.com>
6010
6011 * gdbthread.h (find_thread_by_handle): Revise declaration.
6012 * thread.c (find_thread_by_handle): Likewise. Adjust
6013 implementation too.
6014 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6015 support for buffer objects as handles.
6016
cf63b016
KB
60172019-04-08 Kevin Buettner <kevinb@redhat.com>
6018
6019 * python/py-infthread.c (thpy_thread_handle): New function.
6020 (thread_object_methods): Register thpy_thread_handle.
6021
3d6c6204
KB
60222019-04-08 Kevin Buettner <kevinb@redhat.com>
6023
6024 * gdbthread.h (thread_to_thread_handle): Declare.
6025 * thread.c (gdbtypes.h): Include.
6026 (thread_to_thread_handle): New function.
6027
6028 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6029 (target_thread_info_to_thread_handle): Declare.
6030 * target.c (target_thread_info_to_thread_handle): New function.
6031 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6032 * target-delegates.c: Regenerate.
6033
6034 * linux-thread-db.c (class thread_db_target): Add method
6035 thread_info_to_thread_handle.
6036 (thread_db_target::thread_info_to_thread_handle): Define.
6037 * remote.c (class remote_target): Add new method
6038 thread_info_to_thread_handle.
6039 (remote_target::thread_info_to_thread_handle): Define.
6040
56be6ea8
PA
60412019-04-08 Pedro Alves <palves@redhat.com>
6042
6043 * common/common-exceptions.c (throw_exception): Don't create
6044 named object to throw; throw directly.
6045 (throw_it): Likewise. Don't initialize gdb_exception::message
6046 here, with new; pass FMT and AP to the ctor instead.
6047 * common/common-exceptions.h: Include <string>.
6048 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6049 const char *, va_list)): New ctor. Use std::make_shared.
6050 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6051 errors)): Delete.
6052 (gdb_exception_error::gdb_exception_error(enum errors, const char
6053 *, va_list)): New.
6054 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6055 Add assertion.
6056 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6057 errors)): Delete.
6058 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6059 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6060 Add assertion.
6061
eedc3f4f
TT
60622019-04-08 Tom Tromey <tom@tromey.com>
6063
6064 * valops.c (value_rtti_indirect_type): Replace throw_exception
6065 with throw.
6066 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6067 with throw.
6068 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6069 throw.
6070 * target.c (target_translate_tls_address): Replace throw_exception
6071 with throw.
6072 * stack.c (frame_apply_command_count): Replace throw_exception
6073 with throw.
6074 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6075 throw.
6076 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6077 with throw.
6078 * rs6000-tdep.c (rs6000_frame_cache)
6079 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6080 * remote.c: Replace throw_exception with throw.
6081 * record-full.c (record_full_message, record_full_wait_1)
6082 (record_full_restore): Replace throw_exception with throw.
6083 * record-btrace.c:
6084 (get_thread_current_frame_id, record_btrace_start_replaying)
6085 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6086 (cmd_record_btrace_start): Replace throw_exception with throw.
6087 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6088 throw.
6089 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6090 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6091 * linespec.c:
6092 (find_linespec_symbols): Replace throw_exception with throw.
6093 * infrun.c (displaced_step_prepare, resume): Replace
6094 throw_exception with throw.
6095 * infcmd.c (post_create_inferior): Replace throw_exception with
6096 throw.
6097 * inf-loop.c (inferior_event_handler): Replace throw_exception
6098 with throw.
6099 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6100 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6101 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6102 (get_prev_frame_always, get_frame_pc_if_available)
6103 (get_frame_address_in_block_if_available, get_frame_language):
6104 Replace throw_exception with throw.
6105 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6106 throw_exception with throw.
6107 * eval.c (fetch_subexp_value, evaluate_var_value)
6108 (evaluate_funcall, evaluate_subexp_standard): Replace
6109 throw_exception with throw.
6110 * dwarf2loc.c (call_site_find_chain)
6111 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6112 Replace throw_exception with throw.
6113 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6114 with throw.
6115 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6116 throw.
6117 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6118 * completer.c (complete_line_internal): Replace throw_exception
6119 with throw.
6120 * compile/compile-object-run.c (compile_object_run): Replace
6121 throw_exception with throw.
6122 * cli/cli-script.c (process_next_line): Replace throw_exception
6123 with throw.
6124 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6125 (btrace_enable, btrace_maint_update_pt_packets): Replace
6126 throw_exception with throw.
6127 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6128 throw_exception with throw.
6129 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6130 throw_exception with throw.
6131 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6132 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6133 * aarch64-tdep.c (aarch64_make_prologue_cache)
6134 (aarch64_make_stub_cache): Replace throw_exception with throw.
6135
26003a20
TT
61362019-04-08 Tom Tromey <tom@tromey.com>
6137
6138 * common/common-exceptions.c (throw_exception): Rename from
6139 throw_exception_cxx. Remove old copy. Make argument const.
6140 (throw_it): Create and throw exception objects directly.
6141 * common/common-exceptions.h (throw_exception): Make argument
6142 const.
6143 (struct gdb_exception_error): Add constructor.
6144 (struct gdb_exception_quit): Add constructor.
6145
d272eb37
TT
61462019-04-08 Tom Tromey <tom@tromey.com>
6147
6148 * common/common-exceptions.h (exception_rethrow): Don't declare.
6149 (TRY_SJLJ): Update comment.
6150 (TRY, CATCH, END_CATCH): Remove.
6151 * common/common-exceptions.c (exception_rethrow): Remove.
6152
230d2906
TT
61532019-04-08 Tom Tromey <tom@tromey.com>
6154
6155 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6156 Remove.
6157 (gdb_exception_error): Rename from
6158 gdb_exception_RETURN_MASK_ERROR.
6159 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6160 (gdb_quit_bad_alloc): Update.
6161 * aarch64-tdep.c: Update.
6162 * ada-lang.c: Update.
6163 * ada-typeprint.c: Update.
6164 * ada-valprint.c: Update.
6165 * amd64-tdep.c: Update.
6166 * arch-utils.c: Update.
6167 * break-catch-throw.c: Update.
6168 * breakpoint.c: Update.
6169 * btrace.c: Update.
6170 * c-varobj.c: Update.
6171 * cli/cli-cmds.c: Update.
6172 * cli/cli-interp.c: Update.
6173 * cli/cli-script.c: Update.
6174 * common/common-exceptions.c: Update.
6175 * common/new-op.c: Update.
6176 * common/selftest.c: Update.
6177 * compile/compile-c-symbols.c: Update.
6178 * compile/compile-cplus-symbols.c: Update.
6179 * compile/compile-object-load.c: Update.
6180 * compile/compile-object-run.c: Update.
6181 * completer.c: Update.
6182 * corelow.c: Update.
6183 * cp-abi.c: Update.
6184 * cp-support.c: Update.
6185 * cp-valprint.c: Update.
6186 * darwin-nat.c: Update.
6187 * disasm-selftests.c: Update.
6188 * dtrace-probe.c: Update.
6189 * dwarf-index-cache.c: Update.
6190 * dwarf-index-write.c: Update.
6191 * dwarf2-frame-tailcall.c: Update.
6192 * dwarf2-frame.c: Update.
6193 * dwarf2loc.c: Update.
6194 * dwarf2read.c: Update.
6195 * eval.c: Update.
6196 * event-loop.c: Update.
6197 * event-top.c: Update.
6198 * exec.c: Update.
6199 * f-valprint.c: Update.
6200 * fbsd-tdep.c: Update.
6201 * frame-unwind.c: Update.
6202 * frame.c: Update.
6203 * gdbtypes.c: Update.
6204 * gnu-v3-abi.c: Update.
6205 * guile/guile-internal.h: Update.
6206 * guile/scm-block.c: Update.
6207 * guile/scm-breakpoint.c: Update.
6208 * guile/scm-cmd.c: Update.
6209 * guile/scm-disasm.c: Update.
6210 * guile/scm-frame.c: Update.
6211 * guile/scm-lazy-string.c: Update.
6212 * guile/scm-math.c: Update.
6213 * guile/scm-param.c: Update.
6214 * guile/scm-ports.c: Update.
6215 * guile/scm-pretty-print.c: Update.
6216 * guile/scm-symbol.c: Update.
6217 * guile/scm-symtab.c: Update.
6218 * guile/scm-type.c: Update.
6219 * guile/scm-value.c: Update.
6220 * i386-linux-tdep.c: Update.
6221 * i386-tdep.c: Update.
6222 * inf-loop.c: Update.
6223 * infcall.c: Update.
6224 * infcmd.c: Update.
6225 * infrun.c: Update.
6226 * jit.c: Update.
6227 * language.c: Update.
6228 * linespec.c: Update.
6229 * linux-fork.c: Update.
6230 * linux-nat.c: Update.
6231 * linux-tdep.c: Update.
6232 * linux-thread-db.c: Update.
6233 * main.c: Update.
6234 * mi/mi-cmd-break.c: Update.
6235 * mi/mi-cmd-stack.c: Update.
6236 * mi/mi-interp.c: Update.
6237 * mi/mi-main.c: Update.
6238 * objc-lang.c: Update.
6239 * p-valprint.c: Update.
6240 * parse.c: Update.
6241 * ppc-linux-tdep.c: Update.
6242 * printcmd.c: Update.
6243 * python/py-arch.c: Update.
6244 * python/py-breakpoint.c: Update.
6245 * python/py-cmd.c: Update.
6246 * python/py-finishbreakpoint.c: Update.
6247 * python/py-frame.c: Update.
6248 * python/py-framefilter.c: Update.
6249 * python/py-gdb-readline.c: Update.
6250 * python/py-inferior.c: Update.
6251 * python/py-infthread.c: Update.
6252 * python/py-lazy-string.c: Update.
6253 * python/py-linetable.c: Update.
6254 * python/py-objfile.c: Update.
6255 * python/py-param.c: Update.
6256 * python/py-prettyprint.c: Update.
6257 * python/py-progspace.c: Update.
6258 * python/py-record-btrace.c: Update.
6259 * python/py-record.c: Update.
6260 * python/py-symbol.c: Update.
6261 * python/py-type.c: Update.
6262 * python/py-unwind.c: Update.
6263 * python/py-utils.c: Update.
6264 * python/py-value.c: Update.
6265 * python/python.c: Update.
6266 * record-btrace.c: Update.
6267 * record-full.c: Update.
6268 * remote-fileio.c: Update.
6269 * remote.c: Update.
6270 * riscv-tdep.c: Update.
6271 * rs6000-aix-tdep.c: Update.
6272 * rs6000-tdep.c: Update.
6273 * rust-exp.y: Update.
6274 * rust-lang.c: Update.
6275 * s390-tdep.c: Update.
6276 * selftest-arch.c: Update.
6277 * solib-dsbt.c: Update.
6278 * solib-frv.c: Update.
6279 * solib-spu.c: Update.
6280 * solib-svr4.c: Update.
6281 * solib.c: Update.
6282 * sparc64-linux-tdep.c: Update.
6283 * stack.c: Update.
6284 * symfile-mem.c: Update.
6285 * symmisc.c: Update.
6286 * target.c: Update.
6287 * thread.c: Update.
6288 * top.c: Update.
6289 * tracefile-tfile.c: Update.
6290 * tui/tui.c: Update.
6291 * typeprint.c: Update.
6292 * unittests/cli-utils-selftests.c: Update.
6293 * unittests/parse-connection-spec-selftests.c: Update.
6294 * valops.c: Update.
6295 * valprint.c: Update.
6296 * value.c: Update.
6297 * varobj.c: Update.
6298 * windows-nat.c: Update.
6299 * x86-linux-nat.c: Update.
6300 * xml-support.c: Update.
6301
a70b8144
TT
63022019-04-08 Tom Tromey <tom@tromey.com>
6303
6304 * xml-support.c: Use C++ exception handling.
6305 * x86-linux-nat.c: Use C++ exception handling.
6306 * windows-nat.c: Use C++ exception handling.
6307 * varobj.c: Use C++ exception handling.
6308 * value.c: Use C++ exception handling.
6309 * valprint.c: Use C++ exception handling.
6310 * valops.c: Use C++ exception handling.
6311 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6312 handling.
6313 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6314 * typeprint.c: Use C++ exception handling.
6315 * tui/tui.c: Use C++ exception handling.
6316 * tracefile-tfile.c: Use C++ exception handling.
6317 * top.c: Use C++ exception handling.
6318 * thread.c: Use C++ exception handling.
6319 * target.c: Use C++ exception handling.
6320 * symmisc.c: Use C++ exception handling.
6321 * symfile-mem.c: Use C++ exception handling.
6322 * stack.c: Use C++ exception handling.
6323 * sparc64-linux-tdep.c: Use C++ exception handling.
6324 * solib.c: Use C++ exception handling.
6325 * solib-svr4.c: Use C++ exception handling.
6326 * solib-spu.c: Use C++ exception handling.
6327 * solib-frv.c: Use C++ exception handling.
6328 * solib-dsbt.c: Use C++ exception handling.
6329 * selftest-arch.c: Use C++ exception handling.
6330 * s390-tdep.c: Use C++ exception handling.
6331 * rust-lang.c: Use C++ exception handling.
6332 * rust-exp.y: Use C++ exception handling.
6333 * rs6000-tdep.c: Use C++ exception handling.
6334 * rs6000-aix-tdep.c: Use C++ exception handling.
6335 * riscv-tdep.c: Use C++ exception handling.
6336 * remote.c: Use C++ exception handling.
6337 * remote-fileio.c: Use C++ exception handling.
6338 * record-full.c: Use C++ exception handling.
6339 * record-btrace.c: Use C++ exception handling.
6340 * python/python.c: Use C++ exception handling.
6341 * python/py-value.c: Use C++ exception handling.
6342 * python/py-utils.c: Use C++ exception handling.
6343 * python/py-unwind.c: Use C++ exception handling.
6344 * python/py-type.c: Use C++ exception handling.
6345 * python/py-symbol.c: Use C++ exception handling.
6346 * python/py-record.c: Use C++ exception handling.
6347 * python/py-record-btrace.c: Use C++ exception handling.
6348 * python/py-progspace.c: Use C++ exception handling.
6349 * python/py-prettyprint.c: Use C++ exception handling.
6350 * python/py-param.c: Use C++ exception handling.
6351 * python/py-objfile.c: Use C++ exception handling.
6352 * python/py-linetable.c: Use C++ exception handling.
6353 * python/py-lazy-string.c: Use C++ exception handling.
6354 * python/py-infthread.c: Use C++ exception handling.
6355 * python/py-inferior.c: Use C++ exception handling.
6356 * python/py-gdb-readline.c: Use C++ exception handling.
6357 * python/py-framefilter.c: Use C++ exception handling.
6358 * python/py-frame.c: Use C++ exception handling.
6359 * python/py-finishbreakpoint.c: Use C++ exception handling.
6360 * python/py-cmd.c: Use C++ exception handling.
6361 * python/py-breakpoint.c: Use C++ exception handling.
6362 * python/py-arch.c: Use C++ exception handling.
6363 * printcmd.c: Use C++ exception handling.
6364 * ppc-linux-tdep.c: Use C++ exception handling.
6365 * parse.c: Use C++ exception handling.
6366 * p-valprint.c: Use C++ exception handling.
6367 * objc-lang.c: Use C++ exception handling.
6368 * mi/mi-main.c: Use C++ exception handling.
6369 * mi/mi-interp.c: Use C++ exception handling.
6370 * mi/mi-cmd-stack.c: Use C++ exception handling.
6371 * mi/mi-cmd-break.c: Use C++ exception handling.
6372 * main.c: Use C++ exception handling.
6373 * linux-thread-db.c: Use C++ exception handling.
6374 * linux-tdep.c: Use C++ exception handling.
6375 * linux-nat.c: Use C++ exception handling.
6376 * linux-fork.c: Use C++ exception handling.
6377 * linespec.c: Use C++ exception handling.
6378 * language.c: Use C++ exception handling.
6379 * jit.c: Use C++ exception handling.
6380 * infrun.c: Use C++ exception handling.
6381 * infcmd.c: Use C++ exception handling.
6382 * infcall.c: Use C++ exception handling.
6383 * inf-loop.c: Use C++ exception handling.
6384 * i386-tdep.c: Use C++ exception handling.
6385 * i386-linux-tdep.c: Use C++ exception handling.
6386 * guile/scm-value.c: Use C++ exception handling.
6387 * guile/scm-type.c: Use C++ exception handling.
6388 * guile/scm-symtab.c: Use C++ exception handling.
6389 * guile/scm-symbol.c: Use C++ exception handling.
6390 * guile/scm-pretty-print.c: Use C++ exception handling.
6391 * guile/scm-ports.c: Use C++ exception handling.
6392 * guile/scm-param.c: Use C++ exception handling.
6393 * guile/scm-math.c: Use C++ exception handling.
6394 * guile/scm-lazy-string.c: Use C++ exception handling.
6395 * guile/scm-frame.c: Use C++ exception handling.
6396 * guile/scm-disasm.c: Use C++ exception handling.
6397 * guile/scm-cmd.c: Use C++ exception handling.
6398 * guile/scm-breakpoint.c: Use C++ exception handling.
6399 * guile/scm-block.c: Use C++ exception handling.
6400 * guile/guile-internal.h: Use C++ exception handling.
6401 * gnu-v3-abi.c: Use C++ exception handling.
6402 * gdbtypes.c: Use C++ exception handling.
6403 * frame.c: Use C++ exception handling.
6404 * frame-unwind.c: Use C++ exception handling.
6405 * fbsd-tdep.c: Use C++ exception handling.
6406 * f-valprint.c: Use C++ exception handling.
6407 * exec.c: Use C++ exception handling.
6408 * event-top.c: Use C++ exception handling.
6409 * event-loop.c: Use C++ exception handling.
6410 * eval.c: Use C++ exception handling.
6411 * dwarf2read.c: Use C++ exception handling.
6412 * dwarf2loc.c: Use C++ exception handling.
6413 * dwarf2-frame.c: Use C++ exception handling.
6414 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6415 * dwarf-index-write.c: Use C++ exception handling.
6416 * dwarf-index-cache.c: Use C++ exception handling.
6417 * dtrace-probe.c: Use C++ exception handling.
6418 * disasm-selftests.c: Use C++ exception handling.
6419 * darwin-nat.c: Use C++ exception handling.
6420 * cp-valprint.c: Use C++ exception handling.
6421 * cp-support.c: Use C++ exception handling.
6422 * cp-abi.c: Use C++ exception handling.
6423 * corelow.c: Use C++ exception handling.
6424 * completer.c: Use C++ exception handling.
6425 * compile/compile-object-run.c: Use C++ exception handling.
6426 * compile/compile-object-load.c: Use C++ exception handling.
6427 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6428 * compile/compile-c-symbols.c: Use C++ exception handling.
6429 * common/selftest.c: Use C++ exception handling.
6430 * common/new-op.c: Use C++ exception handling.
6431 * cli/cli-script.c: Use C++ exception handling.
6432 * cli/cli-interp.c: Use C++ exception handling.
6433 * cli/cli-cmds.c: Use C++ exception handling.
6434 * c-varobj.c: Use C++ exception handling.
6435 * btrace.c: Use C++ exception handling.
6436 * breakpoint.c: Use C++ exception handling.
6437 * break-catch-throw.c: Use C++ exception handling.
6438 * arch-utils.c: Use C++ exception handling.
6439 * amd64-tdep.c: Use C++ exception handling.
6440 * ada-valprint.c: Use C++ exception handling.
6441 * ada-typeprint.c: Use C++ exception handling.
6442 * ada-lang.c: Use C++ exception handling.
6443 * aarch64-tdep.c: Use C++ exception handling.
6444
3d6e9d23
TT
64452019-04-08 Tom Tromey <tom@tromey.com>
6446
6447 * xml-support.c (gdb_xml_parser::parse): Update.
6448 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6449 * value.c (show_convenience): Update.
6450 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6451 (test_parse_flags_qcs): Update.
6452 * thread.c (thr_try_catch_cmd): Update.
6453 * target.c (target_translate_tls_address): Update.
6454 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6455 (info_frame_command_core, frame_apply_command_count): Update.
6456 * rust-exp.y (rust_lex_exception_test): Update.
6457 * riscv-tdep.c (riscv_print_one_register_info): Update.
6458 * remote.c (remote_target::enable_btrace): Update.
6459 * record-btrace.c (record_btrace_enable_warn): Update.
6460 * python/py-utils.c (gdbpy_convert_exception): Update.
6461 * printcmd.c (do_one_display, print_variable_and_value): Update.
6462 * mi/mi-main.c (mi_print_exception): Update.
6463 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6464 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6465 * linux-nat.c (linux_nat_target::attach): Update.
6466 * linux-fork.c (class scoped_switch_fork_info): Update.
6467 * infrun.c (displaced_step_prepare): Update.
6468 * infcall.c (call_function_by_hand_dummy): Update.
6469 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6470 * gnu-v3-abi.c (print_one_vtable): Update.
6471 * frame.c (get_prev_frame_always): Update.
6472 * f-valprint.c (info_common_command_for_block): Update.
6473 * exec.c (try_open_exec_file): Update.
6474 * exceptions.c (print_exception, exception_print)
6475 (exception_fprintf, exception_print_same): Update.
6476 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6477 * dwarf-index-cache.c (index_cache::store)
6478 (index_cache::lookup_gdb_index): Update.
6479 * darwin-nat.c (maybe_cache_shell): Update.
6480 * cp-valprint.c (cp_print_value_fields): Update.
6481 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6482 (gcc_cplus_symbol_address): Update.
6483 * compile/compile-c-symbols.c (gcc_convert_symbol)
6484 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6485 * common/selftest.c: Update.
6486 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6487 a std::string.
6488 (exception_try_scope_entry, exception_try_scope_exit): Don't
6489 declare.
6490 (struct exception_try_scope): Remove.
6491 (TRY): Don't use exception_try_scope.
6492 (struct gdb_exception): Add constructor, operator=.
6493 <what>: New method.
6494 (struct gdb_exception_RETURN_MASK_ALL)
6495 (struct gdb_exception_RETURN_MASK_ERROR)
6496 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6497 (struct gdb_quit_bad_alloc): Update.
6498 * common/common-exceptions.c (exception_none): Change
6499 initializer.
6500 (struct catcher) <state, exception>: Initialize inline.
6501 <prev>: Remove member.
6502 (current_catcher): Remove.
6503 (catchers): New global.
6504 (exceptions_state_mc_init): Simplify.
6505 (catcher_pop): Remove.
6506 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6507 (try_scope_depth, exception_try_scope_entry)
6508 (exception_try_scope_exit): Remove.
6509 (throw_exception_sjlj): Update.
6510 (exception_messages, exception_messages_size): Remove.
6511 (throw_it): Simplify.
6512 (gdb_exception_sliced_copy): Remove.
6513 (throw_exception_cxx): Update.
6514 * cli/cli-script.c (script_from_file): Update.
6515 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6516 Update.
6517 * ada-valprint.c (ada_val_print): Update.
6518 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6519 (create_excep_cond_exprs): Update.
6520
c5c10118
TT
65212019-04-08 Tom Tromey <tom@tromey.com>
6522
6523 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6524 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6525 (TRY, CATCH, END_CATCH): Remove some definitions.
6526 * common/common-exceptions.c: Don't use GDB_XCPT.
6527 (catcher_list_size): Remove.
6528 (throw_exception, throw_it): Simplify.
6529
4de283e4
TT
65302019-04-05 Tom Tromey <tom@tromey.com>
6531
6532 Revert the header-sorting patch.
6533 * ft32-tdep.c: Revert.
6534 * frv-tdep.c: Revert.
6535 * frv-linux-tdep.c: Revert.
6536 * frame.c: Revert.
6537 * frame-unwind.c: Revert.
6538 * frame-base.c: Revert.
6539 * fork-child.c: Revert.
6540 * findvar.c: Revert.
6541 * findcmd.c: Revert.
6542 * filesystem.c: Revert.
6543 * filename-seen-cache.h: Revert.
6544 * filename-seen-cache.c: Revert.
6545 * fbsd-tdep.c: Revert.
6546 * fbsd-nat.h: Revert.
6547 * fbsd-nat.c: Revert.
6548 * f-valprint.c: Revert.
6549 * f-typeprint.c: Revert.
6550 * f-lang.c: Revert.
6551 * extension.h: Revert.
6552 * extension.c: Revert.
6553 * extension-priv.h: Revert.
6554 * expprint.c: Revert.
6555 * exec.h: Revert.
6556 * exec.c: Revert.
6557 * exceptions.c: Revert.
6558 * event-top.c: Revert.
6559 * event-loop.c: Revert.
6560 * eval.c: Revert.
6561 * elfread.c: Revert.
6562 * dwarf2read.h: Revert.
6563 * dwarf2read.c: Revert.
6564 * dwarf2loc.c: Revert.
6565 * dwarf2expr.h: Revert.
6566 * dwarf2expr.c: Revert.
6567 * dwarf2-frame.c: Revert.
6568 * dwarf2-frame-tailcall.c: Revert.
6569 * dwarf-index-write.h: Revert.
6570 * dwarf-index-write.c: Revert.
6571 * dwarf-index-common.c: Revert.
6572 * dwarf-index-cache.h: Revert.
6573 * dwarf-index-cache.c: Revert.
6574 * dummy-frame.c: Revert.
6575 * dtrace-probe.c: Revert.
6576 * disasm.h: Revert.
6577 * disasm.c: Revert.
6578 * disasm-selftests.c: Revert.
6579 * dictionary.c: Revert.
6580 * dicos-tdep.c: Revert.
6581 * demangle.c: Revert.
6582 * dcache.h: Revert.
6583 * dcache.c: Revert.
6584 * darwin-nat.h: Revert.
6585 * darwin-nat.c: Revert.
6586 * darwin-nat-info.c: Revert.
6587 * d-valprint.c: Revert.
6588 * d-namespace.c: Revert.
6589 * d-lang.c: Revert.
6590 * ctf.c: Revert.
6591 * csky-tdep.c: Revert.
6592 * csky-linux-tdep.c: Revert.
6593 * cris-tdep.c: Revert.
6594 * cris-linux-tdep.c: Revert.
6595 * cp-valprint.c: Revert.
6596 * cp-support.c: Revert.
6597 * cp-namespace.c: Revert.
6598 * cp-abi.c: Revert.
6599 * corelow.c: Revert.
6600 * corefile.c: Revert.
6601 * continuations.c: Revert.
6602 * completer.h: Revert.
6603 * completer.c: Revert.
6604 * complaints.c: Revert.
6605 * coffread.c: Revert.
6606 * coff-pe-read.c: Revert.
6607 * cli-out.h: Revert.
6608 * cli-out.c: Revert.
6609 * charset.c: Revert.
6610 * c-varobj.c: Revert.
6611 * c-valprint.c: Revert.
6612 * c-typeprint.c: Revert.
6613 * c-lang.c: Revert.
6614 * buildsym.c: Revert.
6615 * buildsym-legacy.c: Revert.
6616 * build-id.h: Revert.
6617 * build-id.c: Revert.
6618 * btrace.c: Revert.
6619 * bsd-uthread.c: Revert.
6620 * breakpoint.h: Revert.
6621 * breakpoint.c: Revert.
6622 * break-catch-throw.c: Revert.
6623 * break-catch-syscall.c: Revert.
6624 * break-catch-sig.c: Revert.
6625 * blockframe.c: Revert.
6626 * block.c: Revert.
6627 * bfin-tdep.c: Revert.
6628 * bfin-linux-tdep.c: Revert.
6629 * bfd-target.c: Revert.
6630 * bcache.c: Revert.
6631 * ax-general.c: Revert.
6632 * ax-gdb.h: Revert.
6633 * ax-gdb.c: Revert.
6634 * avr-tdep.c: Revert.
6635 * auxv.c: Revert.
6636 * auto-load.c: Revert.
6637 * arm-wince-tdep.c: Revert.
6638 * arm-tdep.c: Revert.
6639 * arm-symbian-tdep.c: Revert.
6640 * arm-pikeos-tdep.c: Revert.
6641 * arm-obsd-tdep.c: Revert.
6642 * arm-nbsd-tdep.c: Revert.
6643 * arm-nbsd-nat.c: Revert.
6644 * arm-linux-tdep.c: Revert.
6645 * arm-linux-nat.c: Revert.
6646 * arm-fbsd-tdep.c: Revert.
6647 * arm-fbsd-nat.c: Revert.
6648 * arm-bsd-tdep.c: Revert.
6649 * arch-utils.c: Revert.
6650 * arc-tdep.c: Revert.
6651 * arc-newlib-tdep.c: Revert.
6652 * annotate.h: Revert.
6653 * annotate.c: Revert.
6654 * amd64-windows-tdep.c: Revert.
6655 * amd64-windows-nat.c: Revert.
6656 * amd64-tdep.c: Revert.
6657 * amd64-sol2-tdep.c: Revert.
6658 * amd64-obsd-tdep.c: Revert.
6659 * amd64-obsd-nat.c: Revert.
6660 * amd64-nbsd-tdep.c: Revert.
6661 * amd64-nbsd-nat.c: Revert.
6662 * amd64-nat.c: Revert.
6663 * amd64-linux-tdep.c: Revert.
6664 * amd64-linux-nat.c: Revert.
6665 * amd64-fbsd-tdep.c: Revert.
6666 * amd64-fbsd-nat.c: Revert.
6667 * amd64-dicos-tdep.c: Revert.
6668 * amd64-darwin-tdep.c: Revert.
6669 * amd64-bsd-nat.c: Revert.
6670 * alpha-tdep.c: Revert.
6671 * alpha-obsd-tdep.c: Revert.
6672 * alpha-nbsd-tdep.c: Revert.
6673 * alpha-mdebug-tdep.c: Revert.
6674 * alpha-linux-tdep.c: Revert.
6675 * alpha-linux-nat.c: Revert.
6676 * alpha-bsd-tdep.c: Revert.
6677 * alpha-bsd-nat.c: Revert.
6678 * aix-thread.c: Revert.
6679 * agent.c: Revert.
6680 * addrmap.c: Revert.
6681 * ada-varobj.c: Revert.
6682 * ada-valprint.c: Revert.
6683 * ada-typeprint.c: Revert.
6684 * ada-tasks.c: Revert.
6685 * ada-lang.c: Revert.
6686 * aarch64-tdep.c: Revert.
6687 * aarch64-ravenscar-thread.c: Revert.
6688 * aarch64-newlib-tdep.c: Revert.
6689 * aarch64-linux-tdep.c: Revert.
6690 * aarch64-linux-nat.c: Revert.
6691 * aarch64-fbsd-tdep.c: Revert.
6692 * aarch64-fbsd-nat.c: Revert.
6693 * aarch32-linux-nat.c: Revert.
6694
d55e5aa6
TT
66952019-04-05 Tom Tromey <tom@tromey.com>
6696
6697 * ft32-tdep.c: Sort headers.
6698 * frv-tdep.c: Sort headers.
6699 * frv-linux-tdep.c: Sort headers.
6700 * frame.c: Sort headers.
6701 * frame-unwind.c: Sort headers.
6702 * frame-base.c: Sort headers.
6703 * fork-child.c: Sort headers.
6704 * findvar.c: Sort headers.
6705 * findcmd.c: Sort headers.
6706 * filesystem.c: Sort headers.
6707 * filename-seen-cache.h: Sort headers.
6708 * filename-seen-cache.c: Sort headers.
6709 * fbsd-tdep.c: Sort headers.
6710 * fbsd-nat.h: Sort headers.
6711 * fbsd-nat.c: Sort headers.
6712 * f-valprint.c: Sort headers.
6713 * f-typeprint.c: Sort headers.
6714 * f-lang.c: Sort headers.
6715 * extension.h: Sort headers.
6716 * extension.c: Sort headers.
6717 * extension-priv.h: Sort headers.
6718 * expprint.c: Sort headers.
6719 * exec.h: Sort headers.
6720 * exec.c: Sort headers.
6721 * exceptions.c: Sort headers.
6722 * event-top.c: Sort headers.
6723 * event-loop.c: Sort headers.
6724 * eval.c: Sort headers.
6725 * elfread.c: Sort headers.
6726 * dwarf2read.h: Sort headers.
6727 * dwarf2read.c: Sort headers.
6728 * dwarf2loc.c: Sort headers.
6729 * dwarf2expr.h: Sort headers.
6730 * dwarf2expr.c: Sort headers.
6731 * dwarf2-frame.c: Sort headers.
6732 * dwarf2-frame-tailcall.c: Sort headers.
6733 * dwarf-index-write.h: Sort headers.
6734 * dwarf-index-write.c: Sort headers.
6735 * dwarf-index-common.c: Sort headers.
6736 * dwarf-index-cache.h: Sort headers.
6737 * dwarf-index-cache.c: Sort headers.
6738 * dummy-frame.c: Sort headers.
6739 * dtrace-probe.c: Sort headers.
6740 * disasm.h: Sort headers.
6741 * disasm.c: Sort headers.
6742 * disasm-selftests.c: Sort headers.
6743 * dictionary.c: Sort headers.
6744 * dicos-tdep.c: Sort headers.
6745 * demangle.c: Sort headers.
6746 * dcache.h: Sort headers.
6747 * dcache.c: Sort headers.
6748 * darwin-nat.h: Sort headers.
6749 * darwin-nat.c: Sort headers.
6750 * darwin-nat-info.c: Sort headers.
6751 * d-valprint.c: Sort headers.
6752 * d-namespace.c: Sort headers.
6753 * d-lang.c: Sort headers.
6754 * ctf.c: Sort headers.
6755 * csky-tdep.c: Sort headers.
6756 * csky-linux-tdep.c: Sort headers.
6757 * cris-tdep.c: Sort headers.
6758 * cris-linux-tdep.c: Sort headers.
6759 * cp-valprint.c: Sort headers.
6760 * cp-support.c: Sort headers.
6761 * cp-namespace.c: Sort headers.
6762 * cp-abi.c: Sort headers.
6763 * corelow.c: Sort headers.
6764 * corefile.c: Sort headers.
6765 * continuations.c: Sort headers.
6766 * completer.h: Sort headers.
6767 * completer.c: Sort headers.
6768 * complaints.c: Sort headers.
6769 * coffread.c: Sort headers.
6770 * coff-pe-read.c: Sort headers.
6771 * cli-out.h: Sort headers.
6772 * cli-out.c: Sort headers.
6773 * charset.c: Sort headers.
6774 * c-varobj.c: Sort headers.
6775 * c-valprint.c: Sort headers.
6776 * c-typeprint.c: Sort headers.
6777 * c-lang.c: Sort headers.
6778 * buildsym.c: Sort headers.
6779 * buildsym-legacy.c: Sort headers.
6780 * build-id.h: Sort headers.
6781 * build-id.c: Sort headers.
6782 * btrace.c: Sort headers.
6783 * bsd-uthread.c: Sort headers.
6784 * breakpoint.h: Sort headers.
6785 * breakpoint.c: Sort headers.
6786 * break-catch-throw.c: Sort headers.
6787 * break-catch-syscall.c: Sort headers.
6788 * break-catch-sig.c: Sort headers.
6789 * blockframe.c: Sort headers.
6790 * block.c: Sort headers.
6791 * bfin-tdep.c: Sort headers.
6792 * bfin-linux-tdep.c: Sort headers.
6793 * bfd-target.c: Sort headers.
6794 * bcache.c: Sort headers.
6795 * ax-general.c: Sort headers.
6796 * ax-gdb.h: Sort headers.
6797 * ax-gdb.c: Sort headers.
6798 * avr-tdep.c: Sort headers.
6799 * auxv.c: Sort headers.
6800 * auto-load.c: Sort headers.
6801 * arm-wince-tdep.c: Sort headers.
6802 * arm-tdep.c: Sort headers.
6803 * arm-symbian-tdep.c: Sort headers.
6804 * arm-pikeos-tdep.c: Sort headers.
6805 * arm-obsd-tdep.c: Sort headers.
6806 * arm-nbsd-tdep.c: Sort headers.
6807 * arm-nbsd-nat.c: Sort headers.
6808 * arm-linux-tdep.c: Sort headers.
6809 * arm-linux-nat.c: Sort headers.
6810 * arm-fbsd-tdep.c: Sort headers.
6811 * arm-fbsd-nat.c: Sort headers.
6812 * arm-bsd-tdep.c: Sort headers.
6813 * arch-utils.c: Sort headers.
6814 * arc-tdep.c: Sort headers.
6815 * arc-newlib-tdep.c: Sort headers.
6816 * annotate.h: Sort headers.
6817 * annotate.c: Sort headers.
6818 * amd64-windows-tdep.c: Sort headers.
6819 * amd64-windows-nat.c: Sort headers.
6820 * amd64-tdep.c: Sort headers.
6821 * amd64-sol2-tdep.c: Sort headers.
6822 * amd64-obsd-tdep.c: Sort headers.
6823 * amd64-obsd-nat.c: Sort headers.
6824 * amd64-nbsd-tdep.c: Sort headers.
6825 * amd64-nbsd-nat.c: Sort headers.
6826 * amd64-nat.c: Sort headers.
6827 * amd64-linux-tdep.c: Sort headers.
6828 * amd64-linux-nat.c: Sort headers.
6829 * amd64-fbsd-tdep.c: Sort headers.
6830 * amd64-fbsd-nat.c: Sort headers.
6831 * amd64-dicos-tdep.c: Sort headers.
6832 * amd64-darwin-tdep.c: Sort headers.
6833 * amd64-bsd-nat.c: Sort headers.
6834 * alpha-tdep.c: Sort headers.
6835 * alpha-obsd-tdep.c: Sort headers.
6836 * alpha-nbsd-tdep.c: Sort headers.
6837 * alpha-mdebug-tdep.c: Sort headers.
6838 * alpha-linux-tdep.c: Sort headers.
6839 * alpha-linux-nat.c: Sort headers.
6840 * alpha-bsd-tdep.c: Sort headers.
6841 * alpha-bsd-nat.c: Sort headers.
6842 * aix-thread.c: Sort headers.
6843 * agent.c: Sort headers.
6844 * addrmap.c: Sort headers.
6845 * ada-varobj.c: Sort headers.
6846 * ada-valprint.c: Sort headers.
6847 * ada-typeprint.c: Sort headers.
6848 * ada-tasks.c: Sort headers.
6849 * ada-lang.c: Sort headers.
6850 * aarch64-tdep.c: Sort headers.
6851 * aarch64-ravenscar-thread.c: Sort headers.
6852 * aarch64-newlib-tdep.c: Sort headers.
6853 * aarch64-linux-tdep.c: Sort headers.
6854 * aarch64-linux-nat.c: Sort headers.
6855 * aarch64-fbsd-tdep.c: Sort headers.
6856 * aarch64-fbsd-nat.c: Sort headers.
6857 * aarch32-linux-nat.c: Sort headers.
6858
699bd4cf
TT
68592019-04-04 Tom Tromey <tom@tromey.com>
6860
6861 * varobj.c (varobj_create): Update.
6862 * rust-exp.y (struct rust_parser) <update_innermost_block,
6863 lookup_symbol>: New methods.
6864 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6865 Rename.
6866 (rust_parser::rust_lookup_type)
6867 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6868 * printcmd.c (display_command, do_one_display): Update.
6869 * parser-defs.h (struct parser_state) <parser_state>: Add
6870 "tracker" parameter.
6871 (block_tracker): New member.
6872 (class innermost_block_tracker) <innermost_block_tracker>: Add
6873 "types" parameter.
6874 <reset>: Remove method.
6875 (innermost_block): Don't declare.
6876 (null_post_parser): Update.
6877 * parse.c (innermost_block): Remove global.
6878 (write_dollar_variable): Update.
6879 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6880 Remove "tracker_types" parameter.
6881 (parse_expression): Add "tracker" parameter.
6882 (parse_expression_for_completion): Update.
6883 (null_post_parser): Add "tracker" parameter.
6884 * p-exp.y: Update rules.
6885 * m2-exp.y: Update rules.
6886 * language.h (struct language_defn) <la_post_parser>: Add
6887 "tracker" parameter.
6888 * go-exp.y: Update rules.
6889 * f-exp.y: Update rules.
6890 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6891 parameter.
6892 * d-exp.y: Update rules.
6893 * c-exp.y: Update rules.
6894 * breakpoint.c (set_breakpoint_condition): Create an
6895 innermost_block_tracker.
6896 (watch_command_1): Likewise.
6897 * ada-lang.c (resolve): Add "tracker" parameter.
6898 (resolve_subexp): Likewise.
6899 * ada-exp.y (write_var_from_sym): Update.
6900
dac43e32
TT
69012019-04-04 Tom Tromey <tom@tromey.com>
6902
6903 * type-stack.h: New file.
6904 * type-stack.c: New file.
6905 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6906 type-stack.h.
6907 (insert_into_type_stack, insert_type, push_type, push_type_int)
6908 (insert_type_address_space, pop_type, pop_type_int)
6909 (pop_typelist, pop_type_stack, append_type_stack)
6910 (push_type_stack, get_type_stack, push_typelist)
6911 (follow_type_instance_flags, follow_types): Don't declare.
6912 * parse.c (type_stack): Remove global.
6913 (parse_exp_in_context): Update.
6914 (insert_into_type_stack, insert_type, push_type, push_type_int)
6915 (insert_type_address_space, pop_type, pop_type_int)
6916 (pop_typelist, pop_type_stack, append_type_stack)
6917 (push_type_stack, get_type_stack, push_typelist)
6918 (follow_type_instance_flags, follow_types): Remove (moved to
6919 type-stack.c).
6920 * f-exp.y (type_stack): New global.
6921 Update rules.
6922 (push_kind_type, f_parse): Update.
6923 * d-exp.y (type_stack): New global.
6924 Update rules.
6925 (d_parse): Update.
6926 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6927 Update rules.
6928 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6929 (HFILES_NO_SRCDIR): Add type-stack.h.
6930
2a612529
TT
69312019-04-04 Tom Tromey <tom@tromey.com>
6932
6933 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6934 (rust_parser::convert_ast_to_expression, rust_parse)
6935 (rust_lex_test_completion, rust_lex_tests): Update.
6936 * parser-defs.h (struct expr_completion_state): New.
6937 (struct parser_state) <parser_state>: Add completion parameter.
6938 <mark_struct_expression, mark_completion_tag>: New methods.
6939 <parse_completion, m_completion_state>: New members.
6940 (prefixify_expression, null_post_parser): Update.
6941 (mark_struct_expression, mark_completion_tag): Don't declare.
6942 * parse.c (parse_completion, expout_last_struct)
6943 (expout_tag_completion_type, expout_completion_name): Remove
6944 globals.
6945 (parser_state::mark_struct_expression)
6946 (parser_state::mark_completion_tag): Now methods.
6947 (prefixify_expression): Add last_struct parameter.
6948 (prefixify_subexp): Likewise.
6949 (parse_exp_1): Update.
6950 (parse_exp_in_context): Add cstate parameter. Update.
6951 (parse_expression_for_completion): Create an
6952 expr_completion_state.
6953 (null_post_parser): Add "completion" parameter.
6954 * p-exp.y: Update rules.
6955 (yylex): Update.
6956 * language.h (struct language_defn) <la_post_parser>: Add
6957 "completing" parameter.
6958 * go-exp.y: Update rules.
6959 (lex_one_token): Update.
6960 * expression.h (parse_completion): Don't declare.
6961 * d-exp.y: Update rules.
6962 (lex_one_token): Update rules.
6963 * c-exp.y: Update rules.
6964 (lex_one_token): Update.
6965 * ada-lang.c (resolve): Add "parse_completion" parameter.
6966 (resolve_subexp): Likewise.
6967 (ada_resolve_function): Likewise.
6968
43476f0b
TT
69692019-04-04 Tom Tromey <tom@tromey.com>
6970
6971 * parser-defs.h (struct parser_state) <start_arglist,
6972 end_arglist>: New methods.
6973 <arglist_len, m_funcall_chain>: New members.
6974 (arglist_len, start_arglist, end_arglist): Don't declare.
6975 * parse.c (arglist_len, funcall_chain): Remove global.
6976 (start_arglist, end_arglist): Remove functions.
6977 (parse_exp_in_context): Update.
6978 * p-exp.y: Update rules.
6979 * m2-exp.y: Update rules.
6980 * go-exp.y: Update rules.
6981 * f-exp.y: Update rules.
6982 * d-exp.y: Update rules.
6983 * c-exp.y: Update rules.
6984
5776fca3
TT
69852019-04-04 Tom Tromey <tom@tromey.com>
6986
6987 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6988 lex_operator, push_back>: New methods.
6989 Update all rules.
6990 (rust_parser::lex_hex, lex_escape): Rename and update.
6991 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6992 (rust_parser::lex_operator): Rename and update.
6993 (rust_parser::lex_number, rustyylex, rustyyerror)
6994 (rust_lex_test_init, rust_lex_test_sequence)
6995 (rust_lex_test_push_back, rust_lex_tests): Update.
6996 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6997 parameter.
6998 <lexptr, prev_lexptr>: New members.
6999 (lexptr, prev_lexptr): Don't declare.
7000 * parse.c (lexptr, prev_lexptr): Remove globals.
7001 (parse_exp_in_context): Update.
7002 * p-exp.y (yylex, yyerror): Update.
7003 * m2-exp.y (parse_number, yylex, yyerror): Update.
7004 * go-exp.y (lex_one_token, yyerror): Update.
7005 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7006 * d-exp.y (lex_one_token, yyerror): Update.
7007 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7008 (lex_one_token, yyerror): Update.
7009 * ada-lex.l (YY_INPUT): Update.
7010 (rewind_to_char): Update.
7011 * ada-exp.y (yyerror): Update.
7012
8621b685
TT
70132019-04-04 Tom Tromey <tom@tromey.com>
7014
7015 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7016 * parser-defs.h (struct parser_state) <parser_state>: Add new
7017 parameter.
7018 <comma_terminates>: New member.
7019 (comma_terminates): Don't declare global.
7020 * parse.c (comma_terminates): Remove global.
7021 (parse_exp_in_context): Update.
7022 * p-exp.y (yylex): Update.
7023 * m2-exp.y (yylex): Update.
7024 * go-exp.y (lex_one_token): Update.
7025 * f-exp.y (yylex): Update.
7026 * d-exp.y (lex_one_token): Update.
7027 * c-exp.y (lex_one_token): Update.
7028 * ada-lex.l: Update.
7029
28aaf3fd
TT
70302019-04-04 Tom Tromey <tom@tromey.com>
7031
7032 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7033 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7034 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7035 * parser-defs.h (paren_depth): Don't declare.
7036 * parse.c (paren_depth): Remove global.
7037 (parse_exp_in_context): Update.
7038 * p-exp.y (paren_depth): New global.
7039 (pascal_parse): Initialize it.
7040 * m2-exp.y (paren_depth): New global.
7041 (m2_parse): Initialize it.
7042 * go-exp.y (paren_depth): New global.
7043 (go_parse): Initialize it.
7044 * f-exp.y (paren_depth): New global.
7045 (f_parse): Initialize it.
7046 * d-exp.y (paren_depth): New global.
7047 (d_parse): Initialize it.
7048 * c-exp.y (paren_depth): New global.
7049 (c_parse): Initialize it.
7050 * ada-lex.l (paren_depth): New global.
7051 (lexer_init): Initialize it.
7052
1e58a4a4
TT
70532019-04-04 Tom Tromey <tom@tromey.com>
7054
7055 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7056 (rust_parser::convert_ast_to_type)
7057 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7058 * parser-defs.h (struct parser_state) <parser_state>: Add
7059 parameters. Initialize new members.
7060 <expression_context_block, expression_context_pc>: New members.
7061 * parse.c (expression_context_block, expression_context_pc):
7062 Remove globals.
7063 (parse_exp_in_context): Update.
7064 * p-exp.y: Update all rules.
7065 (yylex): Update.
7066 * m2-exp.y: Update all rules.
7067 (yylex): Update.
7068 * go-exp.y (yylex): Update.
7069 * f-exp.y (yylex): Update.
7070 * d-exp.y: Update all rules.
7071 (yylex): Update.
7072 * c-exp.y: Update all rules.
7073 (lex_one_token, classify_name, yylex, c_parse): Update.
7074 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7075
37eedb39
TT
70762019-04-04 Tom Tromey <tom@tromey.com>
7077
7078 * gdbarch.h, gdbarch.c: Rebuild.
7079 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7080 * stap-probe.h:
7081 (struct stap_parse_info): Replace "parser_state" with
7082 "expr_builder".
7083 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7084 (parser_state): New class.
7085 * parse.c (expr_builder): Rename.
7086 (expr_builder::release): Rename.
7087 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7088 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7089 (write_exp_elt_longcst, write_exp_elt_floatcst)
7090 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7091 (write_exp_string_vector, write_exp_bitstring)
7092 (write_exp_msymbol, mark_struct_expression)
7093 (write_dollar_variable)
7094 (insert_type_address_space, increase_expout_size): Replace
7095 "parser_state" with "expr_builder".
7096 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7097 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7098 "parser_state" with "expr_builder".
7099
73923d7e
TT
71002019-04-04 Tom Tromey <tom@tromey.com>
7101
7102 * rust-exp.y: Replace "parse_language" with method call.
7103 * p-exp.y:
7104 (yylex): Replace "parse_language" with method call.
7105 * m2-exp.y:
7106 (yylex): Replace "parse_language" with method call.
7107 * go-exp.y (classify_name): Replace "parse_language" with method
7108 call.
7109 * f-exp.y (yylex): Replace "parse_language" with method call.
7110 * d-exp.y (lex_one_token): Replace "parse_language" with method
7111 call.
7112 * c-exp.y:
7113 (lex_one_token, classify_name, yylex): Replace "parse_language"
7114 with method call.
7115 * ada-exp.y (find_primitive_type, type_char)
7116 (type_system_address): Replace "parse_language" with method call.
7117
fa9f5be6
TT
71182019-04-04 Tom Tromey <tom@tromey.com>
7119
7120 * rust-exp.y: Replace "parse_gdbarch" with method call.
7121 * parse.c (write_dollar_variable, insert_type_address_space):
7122 Replace "parse_gdbarch" with method call.
7123 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7124 call.
7125 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7126 call.
7127 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7128 "parse_gdbarch" with method call.
7129 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7130 with method call.
7131 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7132 "parse_gdbarch" with method call.
7133 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7134 "parse_gdbarch" with method call.
7135 * c-exp.y (parse_type, parse_number, classify_name): Replace
7136 "parse_gdbarch" with method call.
7137 * ada-lex.l: Replace "parse_gdbarch" with method call.
7138 * ada-exp.y (parse_type, find_primitive_type, type_char)
7139 (type_system_address): Replace "parse_gdbarch" with method call.
7140
1201a264
TT
71412019-04-04 Tom Tromey <tom@tromey.com>
7142
7143 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7144 * stap-probe.c (stap_parse_argument): Update.
7145 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7146 initial_size parameter.
7147 * rust-exp.y (rust_lex_tests): Update.
7148 * parse.c (parser_state): Update.
7149 (parse_exp_in_context): Update.
7150 * parser-defs.h (struct parser_state) <parser_state>: Remove
7151 "initial_size" parameter.
7152
e3980ce2
TT
71532019-04-04 Tom Tromey <tom@tromey.com>
7154
7155 * parser-defs.h (increase_expout_size): Don't declare.
7156 * parse.c (increase_expout_size): Now static.
7157
e9f8e3f1
TS
71582019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7159
7160 * gnu-nat.c (gnu_nat_target::wait): Fix
7161 target_waitstatus_to_string call.
7162
d7df6549
AB
71632019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7164
7165 * eval.c (evaluate_subexp_standard): Handle internal functions
7166 during Fortran function call handling.
7167
8bdc1658
AB
71682019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7169
7170 * NEWS: Mention new internal functions.
7171 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7172 (read_base_type): Use dwarf2_init_complex_target_type.
7173 * value.c (creal_internal_fn): New function.
7174 (cimag_internal_fn): New function.
7175 (_initialize_values): Register new internal functions.
7176
c29705b7
PW
71772019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7178
7179 * infrun.c (stop_all_threads): If debug_infrun, always
7180 trace the wait status after wait_one, using
7181 target_waitstatus_to_string and target_pid_to_str.
7182 (handle_inferior_event): Replace various trace of
7183 wait status kind by a single trace.
7184 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7185 wait status kind image by target_waitstatus_to_string.
7186 * target/waitstatus.c (target_waitstatus_to_string): Fix
7187 obsolete comment.
7188
05caa1d2
TT
71892019-04-01 Tom Tromey <tromey@adacore.com>
7190
7191 PR symtab/23331:
7192 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7193
9d1447e0
SDJ
71942019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7195 Pedro Alves <palves@redhat.com>
7196
7197 * top.c (quit_force): Call 'finalize_values'.
7198 * value.c (finalize_values): New function.
7199 * value.h (finalize_values): Declare.
7200
7734102d
EZ
72012019-03-30 Eli Zaretskii <eliz@gnu.org>
7202
7203 * NEWS: Announce $_gdb_major and $_gdb_minor.
7204
7205 * top.c (init_gdb_version_vars): New function.
7206 (gdb_init): Call init_gdb_version_vars.
7207
188e1fa9
TT
72082019-03-29 Tom Tromey <tromey@adacore.com>
7209
7210 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7211 help text. Remove dead code.
7212
2880242d
KS
72132019-03-29 Keith Seitz <keiths@redhat.com>
7214
7215 From Siddhesh Poyarekar:
7216 * f-lang.h (f77_get_upperbound): Return LONGEST.
7217 (f77_get_lowerbound): Likewise.
7218 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7219 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7220 print them.
7221 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7222 plongest to format print it.
7223 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7224 (f77_get_upperbound): Likewise.
7225 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7226 LOWER_BOUND to LONGEST.
7227 (f77_create_arrayprint_offset_tbl): Likewise.
7228
cc1defb1
KS
72292019-03-29 Keith Seitz <keiths@redhat.com>
7230
7231 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7232 %s/pulongest for TYPE_LENGTH instead of %d in format
7233 strings.
7234 * ada-typerint.c (ada_print_type): Likewise.
7235 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7236 * compile/compile-c-support.c (generate_register_struct): Likewise.
7237 * gdbtypes.c (recursive_dump_type): Likewise.
7238 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7239 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7240 instead of %d in format strings.
7241 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7242 to std::min to ULONGEST.
7243 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7244 instead of %d in format strings.
7245 * tracepoint.c (info_scope_command): Likewise.
7246 * typeprint.c (print_offset_data::update)
7247 (print_offset_data::finish): Likewise.
7248 * xtensa-tdep.c (xtensa_store_return_value)
7249 (xtensa_push_dummy_call): Likewise.
7250
e432ccf1
JT
72512019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7252
7253 * windows-nat.c (display_selector): Fixed format specifications
7254 for 64-bit Cygwin.
7255
65d2b333
PW
72562019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7257
7258 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7259
f489207e
SL
72602019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7261
7262 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7263 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7264 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7265 (nios2_linux_init_abi): Install it.
7266
bffa1015
AH
72672019-03-28 Alan Hayward <alan.hayward@arm.com>
7268
7269 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7270
fc96163a
AH
72712019-03-28 Alan Hayward <alan.hayward@arm.com>
7272
7273 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7274
20dc7e9b
PW
72752019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7276 Tom Tromey <tromey@adacore.com>
7277
7278 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7279
7f5331a8
JB
72802019-03-26 Joel Brobecker <brobecker@adacore.com>
7281
7282 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7283 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7284 method to compute the bounds of range types. Also print "[evaluated]"
7285 if the bounds' values come from a dynamic evaluation.
7286
18c77628
AB
72872019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7288
7289 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7290 whitespace when pretty printing is on.
7291
53c973f2
AH
72922019-03-26 Alan Hayward <alan.hayward@arm.com>
7293
e79be6e5 7294 * ppc-linux-nat.c: Add include.
53c973f2 7295
d851aa71
AH
72962019-03-26 Alan Hayward <alan.hayward@arm.com>
7297
e79be6e5 7298 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7299
2fe7bab7
AH
73002019-03-26 Alan Hayward <alan.hayward@arm.com>
7301
e79be6e5 7302 * arm-linux-nat.c: Add include.
2fe7bab7 7303
068ef30e
SM
73042019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7305
7306 * source-cache.c (source_cache::get_source_lines): Re-read
7307 fullname after calling open_source_file.
7308
81a24d04
JB
73092019-03-25 John Baldwin <jhb@FreeBSD.org>
7310
7311 * NEWS: Mention TLS support for FreeBSD.
7312
79e7ae11
TT
73132019-03-25 Tom Tromey <tromey@adacore.com>
7314
7315 * minsyms.c (BUNCH_SIZE): Update comment.
7316 (~minimal_symbol_reader): Remove old comment.
7317 (compact_minimal_symbols): Update comment.
7318 (minimal_symbol_reader::install): Remove old comment. Update
7319 other comments.
7320
d45963c2
AH
73212019-03-25 Alan Hayward <alan.hayward@arm.com>
7322
7323 * s390-linux-nat.c: Add include.
7324
0f83012e
AH
73252019-03-25 Alan Hayward <alan.hayward@arm.com>
7326
7327 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7328 Call linux_get_hwcap.
7329 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7330 Likewise.
7331 (aarch64_linux_get_hwcap): Remove function.
7332 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7333 declaration.
7334 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7335 linux_get_hwcap.
7336 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7337 * linux-tdep.c (linux_get_hwcap): Add function.
7338 (linux_get_hwcap2): Likewise.
7339 * linux-tdep.h (linux_get_hwcap): Add declaration.
7340 (linux_get_hwcap2): Likewise.
7341 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7342 (ppc_linux_get_hwcap2): Likewise.
7343 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7344 linux_get_hwcap.
7345 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7346 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7347 (ppc_linux_nat_target::read_description): Likewise.
7348 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7349 * s390-linux-nat.c: Likewise.
7350 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7351
6640a367
TT
73522019-03-24 Tom Tromey <tom@tromey.com>
7353
7354 * ada-lang.c (standard_lookup): Simplify initialization.
7355 (ada_lookup_symbol_nonlocal): Simplify return.
7356 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7357 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7358 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7359 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7360 initialization.
7361 * solib.c (solib_global_lookup): Simplify.
7362 * symtab.c (null_block_symbol): Remove.
7363 (symbol_cache_lookup): Simplify returns.
7364 (lookup_language_this): Simplify returns.
7365 (lookup_symbol_aux): Simplify return.
7366 (lookup_local_symbol): Simplify returns.
7367 (lookup_global_symbol_from_objfile): Simplify return.
7368 (lookup_symbol_in_objfile_symtabs)
7369 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7370 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7371 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7372 * cp-namespace.c (cp_lookup_bare_symbol)
7373 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7374 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7375 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7376 (cp_lookup_symbol_via_imports): Simplify initialization.
7377 (find_symbol_in_baseclass): Likewise.
7378 * symtab.h (null_block_symbol): Remove.
7379 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7380 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7381 (d_lookup_symbol_module): Likewise.
7382 (find_symbol_in_baseclass): Simplify initialization.
7383
a930ebcd
TT
73842019-03-24 Tom Tromey <tom@tromey.com>
7385
7386 * expression.h: Don't include symtab.h.
7387 (struct block): Forward declare.
7388
582942f4
TT
73892019-03-24 Tom Tromey <tom@tromey.com>
7390
7391 * c-exp.y (typebase): Remove casts.
7392 * gdbtypes.c (lookup_unsigned_typename, )
7393 (lookup_signed_typename): Remove cast.
7394 * eval.c (parse_to_comma_and_eval): Remove cast.
7395 * parse.c (write_dollar_variable): Remove cast.
7396 * block.h (struct block) <superblock>: Now const.
7397 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7398 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7399 (map_block): Make "block" const.
7400 * symfile.h (struct quick_symbol_functions)
7401 <map_matching_symbols>: Constify block argument to "callback".
7402 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7403 const.
7404 (find_pc_sect_compunit_symtab): Make "b" const.
7405 (find_symbol_at_address): Likewise.
7406 (search_symbols): Likewise.
7407 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7408 (dw2_debug_names_lookup_symbol): Likewise.
7409 (dw2_map_matching_symbols): Update.
7410 * p-valprint.c (pascal_val_print): Remove "block".
7411 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7412 (aux_add_nonlocal_symbols): Make "block" const.
7413 (resolve_subexp): Remove cast.
7414 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7415 const.
7416 (iterate_over_file_blocks): Likewise.
7417 * f-exp.y (%union) <bval>: Remove.
7418 * coffread.c (patch_opaque_types): Make "b" const.
7419 * spu-tdep.c (spu_catch_start): Make "block" const.
7420 * c-valprint.c (print_unpacked_pointer): Remove "block".
7421 * symmisc.c (dump_symtab_1): Make "b" const.
7422 (block_depth): Make "block" const.
7423 * d-exp.y (%union) <bval>: Remove.
7424 * cp-support.h (cp_lookup_rtti_type): Update.
7425 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7426 * psymtab.c (psym_lookup_symbol): Make "block" const.
7427 (maintenance_check_psymtabs): Make "b" const.
7428 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7429 (enumerate_locals, enumerate_args): Update.
7430 * python/py-symtab.c (stpy_global_block): Make "block" const.
7431 (stpy_static_block): Likewise.
7432 * inline-frame.c (block_starting_point_at): Make "new_block"
7433 const.
7434 * block.c (find_block_in_blockvector): Make return type const.
7435 (blockvector_for_pc_sect): Make "b" const.
7436 (find_block_in_blockvector): Make "b" const.
7437
7ad417dd
TT
74382019-03-23 Tom Tromey <tom@tromey.com>
7439
7440 * varobj.c (varobj_create): Update.
7441 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7442 * printcmd.c (display_command, do_one_display): Don't reset
7443 innermost_block.
7444 * parser-defs.h (enum innermost_block_tracker_type): Move to
7445 expression.h.
7446 (innermost_block): Update comment.
7447 * parse.c (parse_exp_1): Add tracker_types parameter.
7448 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7449 tracker_types parameter. Reset innermost_block.
7450 (parse_exp_in_context): Remove.
7451 (parse_expression_for_completion): Update.
7452 * objfiles.c (~objfile): Don't reset expression_context_block or
7453 innermost_block.
7454 * expression.h (enum innermost_block_tracker_type): Move from
7455 parser-defs.h.
7456 (parse_exp_1): Add tracker_types parameter.
7457 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7458 reset innermost_block.
7459
b366c208
TT
74602019-03-23 Tom Tromey <tom@tromey.com>
7461
7462 * objfiles.h: Include bcache.h.
7463
9bb9b2f9
TT
74642019-03-23 Tom Tromey <tom@tromey.com>
7465
7466 * linespec.c (get_current_search_block): Use
7467 scoped_restore_current_language.
7468 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7469
59c28372
AH
74702019-03-22 Alan Hayward <alan.hayward@arm.com>
7471 Jiong Wang <jiong.wang@arm.com>
7472
7473 * aarch64-linux-tdep.c
7474 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7475 section.
7476 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7477
17e116a7
AH
74782019-03-22 Alan Hayward <alan.hayward@arm.com>
7479 Jiong Wang <jiong.wang@arm.com>
7480
7481 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7482 instructions.
7483 (aarch64_analyze_prologue_test): Add PACIASP test.
7484 (aarch64_prologue_prev_register): Unmask PC value.
7485
11e1b75f
AH
74862019-03-22 Alan Hayward <alan.hayward@arm.com>
7487 Jiong Wang <jiong.wang@arm.com>
7488
7489 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7490 (aarch64_dwarf2_prev_register): Unmask PC value.
7491 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7492 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7493 DW_CFA_AARCH64_negate_ra_state.
7494 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7495
34dcc7cf
AH
74962019-03-22 Alan Hayward <alan.hayward@arm.com>
7497 Jiong Wang <jiong.wang@arm.com>
7498
7499 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7500 registers.
7501 (aarch64_pseudo_register_name): Likewise.
7502 (aarch64_pseudo_register_type): Likewise.
7503 (aarch64_pseudo_register_reggroup_p): Likewise.
7504 (aarch64_gdbarch_init): Add pauth registers.
7505 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7506 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7507 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7508 (struct gdbarch_tdep): Add regnum for ra_state.
7509
1ef53e6b
AH
75102019-03-22 Alan Hayward <alan.hayward@arm.com>
7511 Jiong Wang <jiong.wang@arm.com>
7512
7513 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7514
76bed0fd
AH
75152019-03-22 Alan Hayward <alan.hayward@arm.com>
7516 Jiong Wang <jiong.wang@arm.com>
7517
7518 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7519 function.
7520 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7521 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7522 (aarch64_gdbarch_init): Add puth registers.
7523 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7524 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7525 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7526
ee4fbcfa
AH
75272019-03-22 Alan Hayward <alan.hayward@arm.com>
7528 Jiong Wang <jiong.wang@arm.com>
7529
7530 * aarch64-linux-nat.c
7531 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7532 * aarch64-linux-tdep.c
7533 (aarch64_linux_core_read_description): Likewise.
7534 (aarch64_linux_get_hwcap): New function.
7535 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7536 (aarch64_linux_get_hwcap): New declaration.
7537
6dc0ebde
AH
75382019-03-22 Alan Hayward <alan.hayward@arm.com>
7539 Jiong Wang <jiong.wang@arm.com>
7540
7541 * aarch64-linux-nat.c
7542 (aarch64_linux_nat_target::read_description): Add pauth param.
7543 * aarch64-linux-tdep.c
7544 (aarch64_linux_core_read_description): Likewise.
7545 * aarch64-tdep.c (struct target_desc): Add in pauth.
7546 (aarch64_read_description): Add pauth param.
7547 (aarch64_gdbarch_init): Likewise.
7548 * aarch64-tdep.h (aarch64_read_description): Likewise.
7549 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7550 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7551 * features/Makefile: Add new files.
7552 * features/aarch64-pauth.c: New file.
7553 * features/aarch64-pauth.xml: New file.
7554
595915c1
TT
75552019-03-20 Tom Tromey <tromey@adacore.com>
7556
7557 * infrun.c (handle_inferior_event): Rename from
7558 handle_inferior_event_1. Create a scoped_value_mark.
7559 (handle_inferior_event): Remove.
7560
4c7d57e7
TT
75612019-03-19 Tom Tromey <tromey@adacore.com>
7562
7563 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7564 * infrun.h (print_stop_event): Add "displays" parameter.
7565 * infrun.c (print_stop_event): Add "displays" parameter.
7566
cb246234
PA
75672019-03-19 Pedro Alves <palves@redhat.com>
7568
7569 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7570 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7571 to -1. Fix TABs vs spaces.
7572 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7573 * tui/tui-out.h (tui_ui_out) Add intro comments.
7574 <m_line, m_start_of_line>: In-class initialize, and add describing
7575 comment.
7576
3a0e45b2
AH
75772019-03-18 Alan Hayward <alan.hayward@arm.com>
7578
7579 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7580 variable names.
7581 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7582
5371b850
PA
75832019-03-18 Pedro Alves <palves@redhat.com>
7584 Eli Zaretskii <eliz@gnu.org>
7585
7586 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7587 m_line and m_start_of_line.
7588
b17c4cd0
EZ
75892019-03-18 Eli Zaretskii <eliz@gnu.org>
7590
7591 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7592 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7593 it returns a newline. This fixes a regression in TU mode, whereby
7594 the next line is output on the same screen line as the user input.
7595
4bd56d18
TT
75962019-03-18 Tom Tromey <tromey@adacore.com>
7597
7598 * minsyms.c (minimal_symbol_reader::install): Remove call to
7599 obstack_blank.
7600
55c10aca
PA
76012019-03-18 Pedro Alves <palves@redhat.com>
7602
7603 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7604 New globals.
7605 (apply_style): New, factored out from ...
7606 (apply_ansi_escape): ... this. Handle reverse video mode.
7607 (tui_set_reverse_mode): New function.
7608 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7609 * tui/tui-winsource.c (tui_show_source_line): Use
7610 tui_set_reverse_mode instead of setting A_STANDOUT.
7611 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7612 New setter methods.
7613
647bb750
HD
76142019-03-18 Hannes Domani <ssbssa@yahoo.de>
7615
7616 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7617 Handle tabs.
7618
bff8c71f
TT
76192019-03-18 Tom Tromey <tromey@adacore.com>
7620
7621 * ada-lang.c (empty_array): Add "high" parameter.
7622 (ada_evaluate_subexp): Update.
7623
58785d98
ST
76242019-03-17 Sergei Trofimovich <siarheit@google.com>
7625
7626 * unittests/string_view-selftests.c: Define
7627 _initialize_string_view_selftests unconditionally.
7628
d4cbef22
ВМ
76292019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7630
7631 PR gdb/24350
7632 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7633
fce4c071
ВМ
76342019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7635
7636 PR gdb/24351
7637 * windows-nat.c (display_selector): Fix format specifiers.
7638
f7f0a123
EZ
76392019-03-17 Eli Zaretskii <eliz@gnu.org>
7640
7641 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7642 tui_refill_source_window instead of tui_refresh_win, to update the
7643 current execution line. This fixes redisplay of the current line
7644 when stepping through the code with "next" or "step".
7645
ab42892f
EZ
76462019-03-16 Eli Zaretskii <eliz@gnu.org>
7647
7648 * source-cache.c (source_cache::get_source_lines): Call
7649 find_source_lines to initialize s->nlines. This fixes vertical
7650 scrolling of TUI source window when the DOWN arrow is pressed.
7651
8d8c087f
PW
76522019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7653
7654 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7655 linux-thread-db.c (_initialize_thread_db): Likewise.
7656
798e1c30
EZ
76572019-03-16 Eli Zaretskii <eliz@gnu.org>
7658
7659 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7660 wclrtoeol in tui_show_source_line". This reverts changes made in
7661 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7662
eefba3da
TT
76632019-03-15 Tom Tromey <tom@tromey.com>
7664
7665 * symtab.h (struct minimal_symbol): Derive from
7666 general_symbol_info.
7667 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7668 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7669 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7670 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7671 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7672 (MSYMBOL_SEARCH_NAME): Update.
7673 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7674 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7675 * minsyms.c (minimal_symbol_reader::record_full): Update.
7676
0de2420c
TT
76772019-03-15 Tom Tromey <tom@tromey.com>
7678
7679 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7680
042d75e4
TT
76812019-03-15 Tom Tromey <tom@tromey.com>
7682
7683 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7684 unique_xmalloc_ptr.
7685 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7686 Update.
7687 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7688 (build_minimal_symbol_hash_tables)
7689 (minimal_symbol_reader::install): Update.
7690
db92718b
TT
76912019-03-15 Tom Tromey <tom@tromey.com>
7692
7693 * symtab.c (create_demangled_names_hash): Update.
7694 (symbol_set_names): Update.
7695 * objfiles.h (struct objfile_per_bfd_storage)
7696 <demangled_names_hash>: Now an htab_up.
7697 * objfiles.c (objfile_per_bfd_storage): Simplify.
7698
d6797f46
TT
76992019-03-15 Tom Tromey <tom@tromey.com>
7700
7701 * objfiles.h (struct objfile_per_bfd_storage): Declare
7702 destructor.
7703 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7704 New.
7705 (get_objfile_bfd_data): Use new. Don't initialize
7706 language_of_main.
7707 (free_objfile_per_bfd_storage): Remove.
7708 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7709
741d7538
TT
77102019-03-15 Tom Tromey <tom@tromey.com>
7711
7712 * symfile.c (reread_symbols): Update.
7713 * objfiles.c (objfile::objfile): Update.
7714 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7715 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7716 comment.
7717 (minimal_symbol_reader::install): Update.
7718 (terminate_minimal_symbol_table): Remove.
7719 * jit.c (jit_object_close_impl): Update.
7720
788c80d1
TT
77212019-03-15 Tom Tromey <tom@tromey.com>
7722
7723 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7724 initializations.
7725
1b7a07cb
TT
77262019-03-15 Tom Tromey <tom@tromey.com>
7727
7728 * objfiles.h (struct objfile_per_bfd_storage)
7729 <demangled_hash_languages>: Now a bitset.
7730 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7731 (lookup_minimal_symbol): Update.
7732
3db066bc
TT
77332019-03-15 Tom Tromey <tom@tromey.com>
7734
7735 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7736 Don't return the symbol.
7737 * coffread.c (record_minimal_symbol): Use record_full.
7738
3fff2c37
EZ
77392019-03-14 Eli Zaretskii <eliz@gnu.org>
7740
7741 The MS-Windows port of ncurses fails to switch to a color pair if
7742 one or both of the colors are the implicit default colors. This
7743 change records the default colors when TUI is initialized, and
7744 then specifies them explicitly when a color pair uses the default
7745 colors. This allows color styling in TUI mode on MS-Windows.
7746
7747 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7748 ncurses_norm_attr.
7749 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7750 colors in ncurses_norm_attr.
7751 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7752 "none", replace it with the default color recorded in
7753 ncurses_norm_attr.
7754
3b336828
TT
77552019-03-14 Tom Tromey <tromey@adacore.com>
7756
7757 * source-cache.h (class source_cache) <get_source_lines>: Return
7758 std::string.
7759 * source-cache.c (source_cache::extract_lines): Handle case where
7760 first_pos==npos. Return std::string.
7761 (source_cache::get_source_lines): Update.
7762
d085f989
TT
77632019-03-14 Tom Tromey <tromey@adacore.com>
7764
7765 * NEWS: Add item for "style sources" commands.
7766 * source-cache.c (source_cache::get_source_lines): Check
7767 source_styling.
7768 * cli/cli-style.c (source_styling): New global.
7769 (_initialize_cli_style): Add "style sources" commands.
7770 (show_style_sources): New function.
7771 * cli/cli-style.h (source_styling): Declare.
7772
6f11e682
TT
77732019-03-14 Pedro Alves <palves@redhat.com>
7774 Tom Tromey <tromey@adacore.com>
7775
7776 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7777 * tui/tui-winsource.c (tui_refill_source_window): New function,
7778 from...
7779 (tui_horizontal_source_scroll): ... here. Move some logic.
7780 * cli/cli-style.c (set_style_enabled): Notify new observable.
7781 * tui/tui-hooks.c (tui_redisplay_source): New function.
7782 (tui_attach_detach_observers): Attach or detach
7783 tui_redisplay_source.
7784 * observable.h (source_styling_changed): New observable.
7785 * observable.c: Define source_styling_changed observable.
7786
a068643d
TT
77872019-03-13 Tom Tromey <tromey@adacore.com>
7788
7789 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7790 (i386_gnu_nat_target::store_registers): Update.
7791 * target-debug.h (target_debug_print_std_string): New macro.
7792 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7793 * windows-tdep.c (display_one_tib): Update.
7794 * tui/tui-stack.c (tui_make_status_line): Update.
7795 * top.c (print_inferior_quit_action): Update.
7796 * thread.c (thr_try_catch_cmd): Update.
7797 (add_thread_with_info): Update.
7798 (thread_target_id_str): Update.
7799 (thr_try_catch_cmd): Update.
7800 (thread_command): Update.
7801 (thread_find_command): Update.
7802 * record-btrace.c (record_btrace_target::info_record)
7803 (record_btrace_resume_thread, record_btrace_target::resume)
7804 (record_btrace_cancel_resume, record_btrace_step_thread)
7805 (record_btrace_target::wait, record_btrace_target::wait)
7806 (record_btrace_target::wait, record_btrace_target::stop): Update.
7807 * progspace.c (print_program_space): Update.
7808 * process-stratum-target.c
7809 (process_stratum_target::thread_address_space): Update.
7810 * linux-fork.c (linux_fork_mourn_inferior)
7811 (detach_checkpoint_command, info_checkpoints_command)
7812 (linux_fork_context): Update.
7813 (linux_fork_detach): Update.
7814 (class scoped_switch_fork_info): Update.
7815 (delete_checkpoint_command): Update.
7816 * infrun.c (follow_fork_inferior): Update.
7817 (follow_fork_inferior): Update.
7818 (proceed_after_vfork_done): Update.
7819 (handle_vfork_child_exec_or_exit): Update.
7820 (follow_exec): Update.
7821 (displaced_step_prepare_throw): Update.
7822 (displaced_step_restore): Update.
7823 (start_step_over): Update.
7824 (resume_1): Update.
7825 (clear_proceed_status_thread): Update.
7826 (proceed): Update.
7827 (print_target_wait_results): Update.
7828 (do_target_wait): Update.
7829 (context_switch): Update.
7830 (stop_all_threads): Update.
7831 (restart_threads): Update.
7832 (finish_step_over): Update.
7833 (handle_signal_stop): Update.
7834 (switch_back_to_stepped_thread): Update.
7835 (keep_going_pass_signal): Update.
7836 (print_exited_reason): Update.
7837 (normal_stop): Update.
7838 * inferior.c (inferior_pid_to_str): Change return type.
7839 (print_selected_inferior): Update.
7840 (add_inferior): Update.
7841 (detach_inferior): Update.
7842 * dummy-frame.c (fprint_dummy_frames): Update.
7843 * dcache.c (dcache_info_1): Update.
7844 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7845 (btrace_fetch, btrace_clear): Update.
7846 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7847 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7848 type.
7849 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7850 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7851 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7852 * gdbarch.c, gdbarch.h: Rebuild.
7853 * gdbarch.sh (core_pid_to_str): Change return type.
7854 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7855 return type.
7856 (windows_nat_target::pid_to_str): Change return type.
7857 (windows_delete_thread): Update.
7858 (windows_nat_target::attach): Update.
7859 (windows_nat_target::files_info): Update.
7860 * target-delegates.c: Rebuild.
7861 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7862 return type.
7863 (sol_thread_target::pid_to_str): Change return type.
7864 * remote.c (class remote_target) <pid_to_str>: Change return
7865 type.
7866 (remote_target::pid_to_str): Change return type.
7867 (extended_remote_target::attach, remote_target::remote_stop_ns)
7868 (remote_target::remote_notif_remove_queued_reply)
7869 (remote_target::push_stop_reply, remote_target::disable_btrace):
7870 Update.
7871 (extended_remote_target::attach): Update.
7872 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7873 type.
7874 (gdbsim_target::pid_to_str): Change return type.
7875 * ravenscar-thread.c (struct ravenscar_thread_target)
7876 <pid_to_str>: Change return type.
7877 (ravenscar_thread_target::pid_to_str): Change return type.
7878 * procfs.c (class procfs_target) <pid_to_str>: Change return
7879 type.
7880 (procfs_target::pid_to_str): Change return type.
7881 (procfs_target::attach): Update.
7882 (procfs_target::detach): Update.
7883 (procfs_target::fetch_registers): Update.
7884 (procfs_target::store_registers): Update.
7885 (procfs_target::wait): Update.
7886 (procfs_target::files_info): Update.
7887 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7888 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7889 return type.
7890 (nto_procfs_target::pid_to_str): Change return type.
7891 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7892 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7893 return type.
7894 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7895 (exit_lwp): Update.
7896 (attach_proc_task_lwp_callback, get_detach_signal)
7897 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7898 (linux_nat_target::resume, wait_lwp, stop_callback)
7899 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7900 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7901 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7902 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7903 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7904 type.
7905 (inf_ptrace_target::attach): Update.
7906 (inf_ptrace_target::files_info): Update.
7907 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7908 type.
7909 (go32_nat_target::pid_to_str): Change return type.
7910 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7911 (gnu_nat_target::wait): Update.
7912 (gnu_nat_target::wait): Update.
7913 (gnu_nat_target::resume): Update.
7914 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7915 (fbsd_nat_target::wait): Update.
7916 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7917 type.
7918 (darwin_nat_target::attach): Update.
7919 * corelow.c (class core_target) <pid_to_str>: Change return type.
7920 (core_target::pid_to_str): Change return type.
7921 * target.c (normal_pid_to_str): Change return type.
7922 (default_pid_to_str): Likewise.
7923 (target_pid_to_str): Change return type.
7924 (target_translate_tls_address): Update.
7925 (target_announce_detach): Update.
7926 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7927 return type.
7928 (bsd_uthread_target::pid_to_str): Change return type.
7929 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7930 type.
7931 (bsd_kvm_target::pid_to_str): Change return type.
7932 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7933 return type.
7934 (aix_thread_target::pid_to_str): Change return type.
7935 * target.h (struct target_ops) <pid_to_str>: Change return type.
7936 (target_pid_to_str, normal_pid_to_str): Likewise.
7937 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7938 type.
7939 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7940 type.
7941 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7942 return type.
7943 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7944 type.
7945 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7946 type.
7947 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7948 return type.
7949
b4be1b06
SM
79502019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7951
7952 * NEWS: Mention that the new default MI version is 3. Mention
7953 changes to the output of commands and events that deal with
7954 multi-location breakpoints.
7955 * breakpoint.c: Include "mi/mi-out.h".
7956 (print_one_breakpoint): Change output syntax if using MI version
7957 >= 3.
7958 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7959 New.
7960 (mi_multi_location_breakpoint_output_fixed): New.
7961 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7962 (mi_cmd_fix_multi_location_breakpoint_output): New.
7963 (mi_multi_location_breakpoint_output_fixed): New.
7964 * mi/mi-cmds.c (mi_cmds): Register command
7965 -fix-multi-location-breakpoint-output.
7966 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7967 interpreter "mi".
7968
8e5e5494
SM
79692019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7970
7971 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7972 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7973 instantiate mi_ui_out based on interpreter name.
7974 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7975 * mi/mi-main.c (mi_load_progress): Likewise.
7976
197df35e
JB
79772019-03-12 John Baldwin <jhb@FreeBSD.org>
7978
7979 * NEWS: Combine separate "New targets" sections for 8.3.
7980
8399425f
JB
79812019-03-12 John Baldwin <jhb@FreeBSD.org>
7982
7983 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7984 (ppcfbsd_init_abi): Install gdbarch
7985 "fetch_tls_load_module_address" and "get_thread_local_address"
7986 methods.
7987
b0f87ed0
JB
79882019-03-12 John Baldwin <jhb@FreeBSD.org>
7989
7990 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7991 (riscv_fbsd_init_abi): Install gdbarch
7992 "fetch_tls_load_module_address" and "get_thread_local_address"
7993 methods.
7994
ce25aa57
JB
79952019-03-12 John Baldwin <jhb@FreeBSD.org>
7996
7997 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7998 (i386fbsd_init_abi): Install gdbarch
7999 "fetch_tls_load_module_address" and "get_thread_local_address"
8000 methods.
8001
f5424cfa
JB
80022019-03-12 John Baldwin <jhb@FreeBSD.org>
8003
8004 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8005 (amd64fbsd_init_abi): Install gdbarch
8006 "fetch_tls_load_module_address" and "get_thread_local_address"
8007 methods.
8008
945f3901
JB
80092019-03-12 John Baldwin <jhb@FreeBSD.org>
8010
8011 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8012 (struct fbsd_pspace_data): New type.
8013 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8014 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8015 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8016 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8017 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8018
ef0bd204
JB
80192019-03-12 John Baldwin <jhb@FreeBSD.org>
8020
8021 * gdbtypes.c (lookup_struct_elt): New function.
8022 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8023 * gdbtypes.h (struct struct_elt): New type.
8024 (lookup_struct_elt): New prototype.
8025
36c53a02
JB
80262019-03-12 John Baldwin <jhb@FreeBSD.org>
8027
8028 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8029 remove disabled code block.
8030
6e056c81
JB
80312019-03-12 John Baldwin <jhb@FreeBSD.org>
8032
8033 * gdbarch.sh (get_thread_local_address): New method.
8034 * gdbarch.h, gdbarch.c: Regenerate.
8035 * target.c (target_translate_tls_address): Use
8036 gdbarch_get_thread_local_address if present instead of
8037 target::get_thread_local_address.
8038
cd250a18
JB
80392019-03-12 John Baldwin <jhb@FreeBSD.org>
8040
8041 * target.h (target::get_thread_local_address): Update comment.
8042
df22c1e5
JB
80432019-03-12 John Baldwin <jhb@FreeBSD.org>
8044
8045 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8046 objfile->separate_debug_objfile_backlink if not NULL.
8047
dd6876c9
JB
80482019-03-12 John Baldwin <jhb@FreeBSD.org>
8049
8050 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8051 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8052 (amd64bsd_store_inferior_registers): Likewise.
8053 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8054 Enable segment base registers.
8055 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8056 PT_GETFSBASE and PT_GETGSBASE.
8057 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8058 PT_SETGSBASE.
8059 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8060 segment base registers.
8061 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8062
1163a4b7
JB
80632019-03-12 John Baldwin <jhb@FreeBSD.org>
8064
8065 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8066 Update calls to i386_target_description to add 'segments'
8067 parameter.
8068 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8069 add segment base registers.
8070 * arch/i386.c (i386_create_target_description): Add 'segments'
8071 parameter to enable segment base registers.
8072 * arch/i386.h (i386_create_target_description): Likewise.
8073 * features/i386/32bit-segments.xml: New file.
8074 * features/i386/32bit-segments.c: Generate.
8075 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8076 call to i386_target_description to add 'segments' parameter.
8077 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8078 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8079 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8080 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8081 if feature is present.
8082 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8083 Add 'segments' parameter to call to i386_target_description.
8084 (i386_target_description): Add 'segments' parameter to enable
8085 segment base registers.
8086 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8087 to call to i386_target_description.
8088 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8089 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8090 Define I386_NUM_REGS.
8091 (i386_target_description): Add 'segments' parameter to enable
8092 segment base registers.
8093
3a350822
EZ
80942019-03-12 Eli Zaretskii <eliz@gnu.org>
8095
8096 PR/24325
8097 * source-cache.c: #undef open and close, to avoid unresolved
8098 externals during linking.
8099
ffdd69cf
TT
81002019-03-12 Tom Tromey <tromey@adacore.com>
8101
8102 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8103 const. Add initializers.
8104 (_initialize_remote): Don't initialize ptid globals.
8105
ec148c57
PA
81062019-03-12 Pedro Alves <palves@redhat.com>
8107
8108 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8109
32764270
PA
81102019-03-12 Pedro Alves <palves@redhat.com>
8111
8112 * cp-name-parser.y (main): Remove unused 'len' variable.
8113
17547186
TT
81142019-03-12 Tom Tromey <tromey@adacore.com>
8115
8116 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8117 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8118
d3a70e03
TT
81192019-03-12 Tom Tromey <tromey@adacore.com>
8120
8121 * linux-nat.c (iterate_over_lwps): Update.
8122 (stop_callback): Remove parameter.
8123 (stop_wait_callback, detach_callback, resume_set_callback)
8124 (select_singlestep_lwp_callback, set_ignore_sigint)
8125 (status_callback, resumed_callback, resume_clear_callback)
8126 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8127 data parameter.
8128 (linux_nat_target::detach, linux_nat_target::resume)
8129 (linux_stop_and_wait_all_lwps, select_event_lwp)
8130 (linux_nat_filter_event, linux_nat_wait_1)
8131 (linux_nat_target::kill, linux_nat_target::stop)
8132 (linux_nat_target::stop): Update.
8133 (linux_nat_resume_callback): Change type.
8134 (resume_stopped_resumed_lwps, count_events_callback)
8135 (select_event_lwp_callback): Likewise.
8136 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8137 * arm-linux-nat.c (struct update_registers_data): Remove.
8138 (update_registers_callback): Change type.
8139 (arm_linux_insert_hw_breakpoint1): Update.
8140 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8141 parameter.
8142 (x86_linux_dr_set_addr): Update.
8143 (x86_linux_dr_set_control): Update.
8144 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8145 (iterate_over_lwps): Use gdb::function_view.
8146 * nat/aarch64-linux-hw-point.c (struct
8147 aarch64_dr_update_callback_param): Remove.
8148 (debug_reg_change_callback): Change type.
8149 (aarch64_notify_debug_reg_change): Update.
8150 * s390-linux-nat.c (s390_refresh_per_info): Update.
8151
82cb27ff
TT
81522019-03-11 Tom Tromey <tromey@adacore.com>
8153
8154 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8155 redundant assignment to "this_cu".
8156
568c0683
SM
81572019-03-08 Simon Marchi <simon.marchi@efficios.com>
8158
8159 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8160
f09ce22d
SM
81612019-03-08 Simon Marchi <simon.marchi@efficios.com>
8162
8163 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8164 from...
8165 (rank_one_type): ... this.
8166
595f96a9
SM
81672019-03-08 Simon Marchi <simon.marchi@efficios.com>
8168
8169 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8170 from...
8171 (rank_one_type): ... this.
8172
2598a94b
SM
81732019-03-08 Simon Marchi <simon.marchi@efficios.com>
8174
8175 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8176 from...
8177 (rank_one_type): ... this.
8178
7f17b20d
SM
81792019-03-08 Simon Marchi <simon.marchi@efficios.com>
8180
8181 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8182 from...
8183 (rank_one_type): ... this.
8184
2c509035
SM
81852019-03-08 Simon Marchi <simon.marchi@efficios.com>
8186
8187 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8188 from...
8189 (rank_one_type): ... this.
8190
0dd322dc
SM
81912019-03-08 Simon Marchi <simon.marchi@efficios.com>
8192
8193 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8194 from...
8195 (rank_one_type): ... this.
8196
41ea4728
SM
81972019-03-08 Simon Marchi <simon.marchi@efficios.com>
8198
8199 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8200 from...
8201 (rank_one_type): ... this.
8202
793cd1d2
SM
82032019-03-08 Simon Marchi <simon.marchi@efficios.com>
8204
8205 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8206 from...
8207 (rank_one_type): ... this.
8208
34910087
SM
82092019-03-08 Simon Marchi <simon.marchi@efficios.com>
8210
8211 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8212 from...
8213 (rank_one_type): ... this.
8214
f1f832d6
SM
82152019-03-08 Simon Marchi <simon.marchi@efficios.com>
8216
8217 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8218 from...
8219 (rank_one_type): ... this.
8220
b9f4512f
SM
82212019-03-08 Simon Marchi <simon.marchi@efficios.com>
8222
8223 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8224 from...
8225 (rank_one_type): ... this.
8226
9293fc63
SM
82272019-03-08 Simon Marchi <simon.marchi@efficios.com>
8228
8229 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8230 from...
8231 (rank_one_type): ... this.
8232
e3abbe7e
PW
82332019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8234
8235 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8236 inferior-events' shows the example events.
8237
e4adb939
EZ
82382019-03-08 Eli Zaretskii <eliz@gnu.org>
8239
8240 Support styling on native MS-Windows console
8241
8242 PR/24315
8243 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8244 on MS-Windows if $TERM is not defined.
8245
8246 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8247
8248 * posix-hdep.c (gdb_console_fputs):
8249 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8250 functions.
8251 * ui-file.h (gdb_console_fputs): Add prototype.
8252
8253 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8254 back to fputs only if the former returns zero.
8255
25629dfd
TT
82562019-03-07 Tom Tromey <tom@tromey.com>
8257
8258 * symmisc.c (print_symbol_bcache_statistics): Update.
8259 (print_objfile_statistics): Update.
8260 * symfile.c (allocate_symtab): Update.
8261 * stabsread.c: Don't include bcache.h.
8262 * psymtab.h (struct psymbol_bcache): Don't declare.
8263 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8264 (psymbol_bcache_init, psymbol_bcache_free)
8265 (psymbol_bcache_get_bcache): Don't declare.
8266 * psymtab.c (struct psymbol_bcache): Remove.
8267 (psymtab_storage::psymtab_storage): Update.
8268 (psymtab_storage::~psymtab_storage): Update.
8269 (psymbol_bcache_init, psymbol_bcache_free)
8270 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8271 (add_psymbol_to_bcache): Update.
8272 (allocate_psymtab): Update.
8273 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8274 macro_cache>: No longer pointers.
8275 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8276 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8277 * macrotab.c (macro_bcache): Update.
8278 * macroexp.c: Don't include bcache.h.
8279 * gdbtypes.c (check_types_worklist): Update.
8280 (types_deeply_equal): Remove TRY/CATCH. Update.
8281 * elfread.c (elf_symtab_read): Update.
8282 * dwarf2read.c: Don't include bcache.h.
8283 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8284 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8285 (print_bcache_statistics, bcache_memory_used): Don't declare.
8286 (struct bcache): Move from bcache.c. Add constructor, destructor,
8287 methods. Rename all data members.
8288 * bcache.c (struct bcache): Move to bcache.h.
8289 (bcache::expand_hash_table): Rename from expand_hash_table.
8290 (bcache): Remove.
8291 (bcache::insert): Rename from bcache_full.
8292 (bcache::compare): Rename from bcache_compare.
8293 (bcache_xmalloc): Remove.
8294 (bcache::~bcache): Rename from bcache_xfree.
8295 (bcache::print_statistics): Rename from print_bcache_statistics.
8296 (bcache::memory_used): Rename from bcache_memory_used.
8297
fe726667
PA
82982019-03-07 Pedro Alves <palves@redhat.com>
8299
8300 * infrun.c (normal_stop): Also check for
8301 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8302
7584bb30
AB
83032019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8304
8305 * f-lang.c (value_from_host_double): Moved to...
8306 * value.c (value_from_host_double): ...here.
8307 * value.h (value_from_host_double): Declare.
8308 * guile/scm-math.c (vlscm_convert_typed_number): Use
8309 value_from_host_double.
8310 (vlscm_convert_number): Likewise.
8311 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8312 * python/py-value.c (convert_value_from_python): Likewise.
8313
a7b1986e
TT
83142019-03-06 Tom Tromey <tom@tromey.com>
8315
8316 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8317
0ccf4211
TT
83182019-03-06 Tom Tromey <tom@tromey.com>
8319
8320 * utils.h (free_current_contents): Don't declare.
8321 * utils.c (free_current_contents): Remove.
8322
fe7b42e5
TT
83232019-03-06 Tom Tromey <tom@tromey.com>
8324
8325 * top.c (quit_force): Update.
8326 * main.c (captured_command_loop): Update.
8327 * common/new-op.c (operator new): Update.
8328 * common/common-exceptions.c (struct catcher)
8329 <save_cleanup_chain>: Remove member.
8330 (exceptions_state_mc_init): Update.
8331 (exception_try_scope_entry): Return nullptr.
8332 (exception_try_scope_exit, exception_rethrow)
8333 (throw_exception_sjlj, throw_exception_cxx): Update.
8334 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8335 (all_cleanups, do_cleanups, discard_cleanups)
8336 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8337 (restore_cleanups, restore_final_cleanups): Don't declare.
8338 (do_final_cleanups): Remove parameter.
8339 * common/cleanups.c (cleanup_chain, make_cleanup)
8340 (make_cleanup_dtor, all_cleanups, do_cleanups)
8341 (discard_my_cleanups, discard_cleanups)
8342 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8343 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8344 (null_cleanup): Remove.
8345 (do_final_cleanups): Remove parameter.
8346
c6321f19
TT
83472019-03-06 Tom Tromey <tom@tromey.com>
8348
8349 * remote.c (remote_target::remote_parse_stop_reply): Use
8350 unique_xmalloc_ptr.
8351
61b30099
TT
83522019-03-06 Tom Tromey <tom@tromey.com>
8353
8354 * stabsread.c (struct stabs_field_info): Rename from field_info.
8355 <list, fnlist>: Add initializers.
8356 <obstack>: New member.
8357 (read_member_functions, read_struct_fields, read_baseclasses):
8358 Allocate on obstack. Don't use cleanups.
8359 (read_one_struct_field, read_member_functions, read_struct_fields)
8360 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8361 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8362 (read_struct_type): Update.
8363
6cceac94
TT
83642019-03-06 Tom Tromey <tom@tromey.com>
8365
8366 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8367 * common/filestuff.h (make_cleanup_close): Don't declare.
8368 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8369 Remove.
8370
72412762
TT
83712019-03-06 Tom Tromey <tom@tromey.com>
8372
8373 * solib-aix.c: Use make_scope_exit.
8374
2b6ff1c0
TT
83752019-03-06 Tom Tromey <tom@tromey.com>
8376
8377 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8378 Use make_scope_exit.
8379
d01c5877
TT
83802019-03-06 Tom Tromey <tom@tromey.com>
8381
8382 * solib-svr4.c (disable_probes_interface): Remove parameter.
8383 (svr4_handle_solib_event): Use make_scope_exit.
8384
32603266
TT
83852019-03-06 Tom Tromey <tom@tromey.com>
8386
8387 * remote.c (struct stop_reply_deleter): Remove.
8388 (stop_reply_up): Update.
8389 (struct stop_reply): Derive from notif_event. Don't typedef.
8390 <regcache>: Now a std::vector.
8391 (stop_reply_xfree): Remove.
8392 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8393 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8394 (remote_target::discard_pending_stop_replies): Use delete.
8395 (remote_target::remote_parse_stop_reply): Update.
8396 (remote_target::process_stop_reply): Update.
8397 * remote-notif.h (struct notif_event): Add virtual destructor.
8398 Remove "dtr" member.
8399 (struct notif_client) <alloc_event>: Return a unique_ptr.
8400 (notif_event_xfree): Don't declare.
8401 (notif_event_up): New typedef.
8402 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8403 (notif_event_xfree, do_notif_event_xfree): Remove.
8404 (remote_notif_state_xfree): Update.
8405
9799571e
TT
84062019-03-06 Tom Tromey <tom@tromey.com>
8407
8408 * infrun.c (displaced_step_clear_cleanup): Now a
8409 forward_scope_exit type.
8410 (displaced_step_prepare_throw): Update.
8411 (displaced_step_fixup): Update.
8412
09e3c4ca
TT
84132019-03-06 Tom Tromey <tom@tromey.com>
8414
8415 * inferior.h (class inferior): Update comment.
8416 * gdbthread.h (class thread_info): Update comment.
8417
e2a03548
TT
84182019-03-06 Joel Brobecker <brobecker@adacore.com>
8419 Tom Tromey <tom@tromey.com>
8420
8421 * stabsread.h (struct stab_section_list): Remove.
8422 (coffstab_build_psymtabs): Update.
8423 * dbxread.c (symbuf_sections): Now a std::vector.
8424 (sect_idx): New global.
8425 (fill_symbuf): Update.
8426 (coffstab_build_psymtabs): Change type of stabsects parameter.
8427 Update.
8428 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8429 std::vector.
8430 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8431 (coff_locate_sections): Update.
8432 (coff_symfile_read): Remove cleanups. Update.
8433 (init_stringtab): Add storage parameter.
8434 (free_stringtab, free_stringtab_cleanup): Remove.
8435 (init_lineno): Add storage parameter.
8436 (free_linetab, free_linetab_cleanup): Remove.
8437
b7e60d85
PA
84382019-03-06 Pedro Alves <palves@redhat.com>
8439
8440 * linux-fork.c (fork_info::clobber_regs): Delete.
8441 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8442 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8443 comment. Adjust.
8444 (scoped_switch_fork_info::scoped_switch_fork_info)
8445 (checkpoint_command, linux_fork_context): Adjust
8446 fork_save_infrun_state calls.
8447
e52c971f
PA
84482019-03-06 Pedro Alves <palves@redhat.com>
8449
8450 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8451 (inf_has_multiple_threads): Return 'bool' and rewrite using
8452 inferior_info::threads().
8453
06974e6c
PA
84542019-03-06 Pedro Alves <palves@redhat.com>
8455
8456 * linux-fork.c: Include <list>.
8457 (fork_list): Now a std::list instance.
8458 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8459 (forks_exist_p, find_last_fork): Adjust.
8460 (new_fork): Delete.
8461 (one_fork_p): New.
8462 (add_fork): Adjust.
8463 (free_fork): Delete, folded into fork_info::~fork_info().
8464 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8465 Adjust.
8466 (init_fork_list): Delete.
8467 (linux_fork_killall, linux_fork_mourn_inferior)
8468 (linux_fork_detach, info_checkpoints_command): Adjust.
8469 (_initialize_linux_fork): No longer call init_fork_list.
8470
72f31aea
PA
84712019-03-06 Pedro Alves <palves@redhat.com>
8472
8473 * linux-fork.c (new_fork): New, split out of ...
8474 (add_fork): ... this. Return void. Move "first fork" special
8475 case from here, to ...
8476 (checkpoint_command): ... here.
8477 * linux-linux.h (add_fork): Return void.
8478
efbecbc1
AB
84792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8480
8481 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8482
0841c79a
AB
84832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8484 Chris January <chris.january@arm.com>
8485 David Lecomber <david.lecomber@arm.com>
8486
8487 * f-exp.y: New token, UNOP_INTRINSIC.
8488 (exp): New pattern using UNOP_INTRINSIC token.
8489 (f77_keywords): Add 'abs' keyword.
8490 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8491 (value_from_host_double): New function.
8492 (evaluate_subexp_f): Support UNOP_ABS.
8493
4a270568
AB
84942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8495
8496 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8497 types.
8498
067630bd
AB
84992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8500
8501 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8502 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8503 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8504
3be47f7a
AB
85052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8506
8507 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8508
4d00f5d8
AB
85092019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8510 Chris January <chris.january@arm.com>
8511
8512 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8513 * f-exp.y: Define 'KIND' token.
8514 (exp): New pattern for KIND expressions.
8515 (ptype): Handle types with a kind extension.
8516 (direct_abs_decl): Extend to spot kind extensions.
8517 (f77_keywords): Add 'kind' to the list.
8518 (push_kind_type): New function.
8519 (convert_to_kind_type): New function.
8520 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8521 * parse.c (operator_length_standard): Likewise.
8522 * parser-defs.h (enum type_pieces): Add tp_kind.
8523 * std-operator.def: Add UNOP_KIND.
8524
e454224f
AB
85252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8526
8527 * f-exp.y (f_parse): Set yydebug.
8528
9dad4a58
AB
85292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8530
8531 * f-lang.c (evaluate_subexp_f): New function.
8532 (exp_descriptor_f): New global.
8533 (f_language_defn): Use exp_descriptor_f instead of
8534 exp_descriptor_standard.
8535
c8f91604
AB
85362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8537
8538 * f-exp.y (struct token): Add comments.
8539 (dot_ops): Remove uppercase versions and the end marker.
8540 (f77_keywords): Likewise.
8541 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8542 entries in the dot_ops array are case insensitive, and use
8543 strncasecmp to compare strings. Also some whitespace cleanup in
8544 this area. Similar for the f77_keywords array, except entries in
8545 this list might be case sensitive.
8546
dd9f2c76
AB
85472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8548
8549 * f-exp.y (struct f77_boolean_val): Add comments.
8550 (boolean_values): Remove uppercase versions, and end marker.
8551 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8552 and use strncasecmp to achieve case insensitivity. Additionally,
8553 perform whitespace cleanup around this code.
8554
67a3048c
TT
85552019-03-06 Tom Tromey <tromey@adacore.com>
8556
8557 * remote-sim.c (gdbsim_target_open): Use result of
8558 gdb_argv::release.
8559
aa3cfbda
RB
85602019-03-06 Richard Bunt <richard.bunt@arm.com>
8561 Dirk Schubert <dirk.schubert@arm.com>
8562 Chris January <chris.january@arm.com>
8563
8564 * eval.c (evaluate_subexp_standard): Call Fortran argument
8565 wrapping logic.
8566 * f-lang.c (struct value): A value which can be passed into a
8567 Fortran function call.
8568 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8569 where appropriate.
8570 (struct type): Value ready for a Fortran function call.
8571 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8572 is needed.
8573 * f-lang.h (fortran_argument_convert): Declaration.
8574 (fortran_preserve_arg_pointer): Declaration.
8575 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8576
ea38e5df
TT
85772019-03-05 Tom Tromey <tromey@adacore.com>
8578
8579 * python/py-prettyprint.c (print_string_repr): Remove #if.
8580 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8581
06b5b831
TT
85822019-03-05 Tom Tromey <tromey@adacore.com>
8583
8584 * target.c (the_dummy_target): Move later. Change type to
8585 "dummy_target".
8586 (initialize_targets): Don't initialize the_dummy_target.
8587
edbd9e45
TT
85882019-03-05 Tom Tromey <tromey@adacore.com>
8589
8590 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8591 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8592
c119e040
TT
85932019-03-05 Tom Tromey <tromey@adacore.com>
8594
8595 * windows-nat.c (windows_nat_target::attach)
8596 (windows_nat_target::detach): Don't call gdb_flush.
8597 * valprint.c (generic_val_print, val_print, val_print_string):
8598 Don't call gdb_flush.
8599 * utils.c (defaulted_query): Don't call gdb_flush.
8600 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8601 * target.c (target_announce_detach): Don't call gdb_flush.
8602 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8603 * remote.c (extended_remote_target::attach): Don't call
8604 gdb_flush.
8605 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8606 * printcmd.c (do_examine): Don't call gdb_flush.
8607 (info_display_command): Don't call gdb_flush.
8608 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8609 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8610 * memattr.c (info_mem_command): Don't call gdb_flush.
8611 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8612 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8613 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8614 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8615 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8616 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8617 (gnu_nat_target::detach): Don't call gdb_flush.
8618 * f-valprint.c (f_val_print): Don't call gdb_flush.
8619 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8620 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8621 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8622 gdb_flush.
8623 * c-valprint.c (c_val_print): Don't call gdb_flush.
8624 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8625
895dafa6
TT
86262019-03-05 Tom Tromey <tromey@adacore.com>
8627
8628 * varobj.c (update_dynamic_varobj_children): Update.
8629 (install_default_visualizer): Use reset, not release.
8630 * value.c (set_internalvar): Update.
8631 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8632 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8633 ATTRIBUTE_UNUSED_RESULT.
8634
88a774b9
TT
86352019-03-05 Tom Tromey <tromey@adacore.com>
8636
8637 * remote.c (class scoped_remote_fd) <release>: Add
8638 ATTRIBUTE_UNUSED_RESULT.
8639
4e4a8b93
TT
86402019-03-05 Tom Tromey <tromey@adacore.com>
8641
8642 * macroexp.c (struct macro_buffer) <release>: Add
8643 ATTRIBUTE_UNUSED_RESULT.
8644
083eef1f
TT
86452019-03-05 Tom Tromey <tromey@adacore.com>
8646
8647 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8648 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8649 ATTRIBUTE_UNUSED_RESULT.
8650
3cabd438
TT
86512019-03-05 Tom Tromey <tromey@adacore.com>
8652
8653 * common/scoped_fd.h (class scoped_fd) <release>: Add
8654 ATTRIBUTE_UNUSED_RESULT.
8655
41e3300a
TT
86562019-03-05 Tom Tromey <tromey@adacore.com>
8657
8658 * parser-defs.h (struct parser_state) <release>: Add
8659 ATTRIBUTE_UNUSED_RESULT.
8660
18cb7c9f
TT
86612019-03-05 Tom Tromey <tromey@adacore.com>
8662
8663 * utils.h (class gdb_argv) <release>: Add
8664 ATTRIBUTE_UNUSED_RESULT.
8665 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8666
41fa577f
EZ
86672019-03-02 Eli Zaretskii <eliz@gnu.org>
8668
a6a4b2c6
EZ
8669 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8670 for-loop range, to avoid compiler warnings.
8671
8672 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8673 avoid compiler warnings about unused variables.
8674
742a7df5
EZ
8675 * NEWS: Mention end of support for native debugging on MS-Windows
8676 before XP.
8677
41fa577f
EZ
8678 PR gdb/24292
8679 * common/netstuff.c:
8680 * gdbserver/gdbreplay.c
8681 * gdbserver/remote-utils.c:
8682 * ser-tcp.c:
8683 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8684 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8685 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8686 'getaddrinfo' and 'freeaddrinfo' were not available before
8687 Windows XP, and mingw.org's MinGW headers by default define
8688 _WIN32_WINNT to 0x500.
8689
827f438f
GB
86902019-03-01 Gary Benson <gbenson@redhat.com>
8691
8692 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8693
92137da0
RO
86942019-02-28 Brian Vandenberg <phantall@gmail.com>
8695 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8696
8697 PR gdb/8527
8698 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8699 set_sigint_trap, clear_sigint_trap.
8700
799efbe8
PW
87012019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8702
8703 * target.c (target_detach): Clear the regcache and the
8704 frame cache.
8705
8ed25214
PA
87062019-02-27 Pedro Alves <palves@redhat.com>
8707
8708 * utils.c (set_screen_size): When we cap the height/width sizes,
8709 tweak the corresponding command variable to show "unlimited":
8710
23031e31
SJ
87112019-02-27 Saagar Jha <saagar@saagarjha.com>
8712 Pedro Alves <palves@redhat.com>
8713
8714 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8715 before calling rl_set_screen_size.
8716
6c28e44a
TT
87172019-02-27 Tom Tromey <tromey@adacore.com>
8718
8719 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8720 define.
8721 * python/py-value.c: Remove Python 2.4 workaround.
8722 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8723 workaround.
8724 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8725 Python 2.4 workaround.
8726 * python/python-internal.h: Remove Python 2.4 comment.
8727 (Py_ssize_t): Don't define.
8728 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8729 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8730 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8731 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8732 * python/python.c (do_start_initialization): Remove Python 2.4
8733 workaround.
8734 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8735 (print_children): Remove Python 2.4 workaround.
8736 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8737 workaround.
8738 (CHARBUFFERPROC_NAME): Remove.
8739 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8740 Python 2.4 workaround.
8741
2c3fc25d 87422019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8743
2c3fc25d
KB
8744 * NEWS: Note minimum Python version.
8745
6ca62222
KB
87462019-02-27 Kevin Buettner <kevinb@redhat.com>
8747
8748 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8749 code from these functions. Remove corresponding ifdefs. Use
8750 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8751 Remove gotos and target of gotos.
8752 (infpy_search_memory): Likewise.
8753
f4bc7d2c
AB
87542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8755
8756 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8757 (hppa_gdbarch_init): Don't register deleted functions with
8758 gdbarch.
8759
9734a586
AB
87602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8761
8762 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8763 (h8300_unwind_sp): Delete.
8764 (h8300_dummy_id): Delete.
8765 (h8300_gdbarch_init): Don't register deleted functions with
8766 gdbarch.
8767
68b867f3
AB
87682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8769
8770 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8771 (ft32_unwind_pc): Delete.
8772 (ft32_unwind_sp): Delete.
8773 (ft32_gdbarch_init): Don't register deleted functions with
8774 gdbarch.
8775
2fbe7ad0
AB
87762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8779 (frv_unwind_pc): Delete.
8780 (frv_unwind_sp): Delete.
8781 (frv_gdbarch_init): Don't register deleted functions with
8782 gdbarch.
8783
76055cbe
AB
87842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8785
8786 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8787 (riscv_unwind_pc): Delete.
8788 (riscv_unwind_sp): Delete.
8789 (riscv_gdbarch_init): Don't register deleted functions with
8790 gdbarch.
8791
4133e5a1
AB
87922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8793
8794 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8795 (csky_unwind_pc): Delete.
8796 (csky_unwind_sp): Delete.
8797 (csky_gdbarch_init): Don't register deleted functions with
8798 gdbarch.
8799
8010f576
AB
88002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8801
8802 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8803 (cris_unwind_pc): Delete.
8804 (cris_unwind_sp): Delete.
8805 (cris_gdbarch_init): Don't register deleted functions with
8806 gdbarch.
8807
b56bf084
AB
88082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8811 (bfin_unwind_pc): Delete.
8812 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8813
a19a650f
AB
88142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8815
8816 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8817 (arm_unwind_pc): Delete.
8818 (arm_unwind_sp): Delete.
8819 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8820
f8278c3c
AB
88212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8822
8823 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8824 (arc_unwind_pc): Delete.
8825 (arc_unwind_sp): Delete.
8826 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8827
480e46cf
AB
88282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8829
8830 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8831 (alpha_unwind_pc): Delete.
8832 (alpha_gdbarch_init): Don't register deleted functions with
8833 gdbarch.
8834
7a995095
AB
88352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8836
8837 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8838 (aarch64_unwind_pc): Delete.
8839 (aarch64_unwind_sp): Delete.
8840 (aarch64_gdbarch_init): Don't register deleted functions with
8841 gdbarch.
8842
bf9a735e
AB
88432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8844
8845 * gdbtypes.c (type_align): Don't consider static members when
8846 computing structure alignment.
8847
5561fc30
AB
88482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8849
8850 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8851 return 0 for other types.
8852 * arch-utils.c (default_type_align): Always return 0.
8853 * gdbarch.h: Regenerate.
8854 * gdbarch.sh (type_align): Extend comment.
8855 * gdbtypes.c (type_align): Add additional comments, always call
8856 gdbarch_type_align before applying the default rules.
8857 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8858 generic code will then apply a suitable default.
8859 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8860 types, return 0 for other types.
8861
9335e75a
JB
88622019-02-27 Joel Brobecker <brobecker@adacore.com>
8863
8864 * NEWS: Create a new section for the next release branch.
8865 Rename the section of the current branch, now that it has
8866 been cut.
8867
3d34d8de
JB
88682019-02-27 Joel Brobecker <brobecker@adacore.com>
8869
8870 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8871 * version.in: Bump version to 8.3.50.DATE-git.
8872
143420fb
SM
88732019-02-26 Simon Marchi <simon.marchi@efficios.com>
8874
8875 * aix-thread.c (ptid_cmp): Remove unused variable.
8876 (get_signaled_thread): Likewise.
8877 (store_regs_user_thread): Likewise.
8878 (store_regs_kernel_thread): Likewise.
8879 (fetch_regs_kernel_thread): Remove shadowed variable.
8880
172fb711
AB
88812019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8882
8883 * features/riscv/32bit-cpu.xml: Add register numbers.
8884 * features/riscv/32bit-fpu.c: Regenerate.
8885 * features/riscv/32bit-fpu.xml: Add register numbers.
8886 * features/riscv/64bit-cpu.xml: Add register numbers.
8887 * features/riscv/64bit-fpu.c: Regenerate.
8888 * features/riscv/64bit-fpu.xml: Add register numbers.
8889
26c89782
KB
88902019-02-26 Kevin Buettner <kevinb@redhat.com>
8891
af54ade9 8892 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
8893 * python/py-value.c (convert_buffer_and_type_to_value): New
8894 function.
8895 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8896 Add support for handling an optional second argument. Call
8897 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
8898 * python/python-internal.h (Py_buffer_deleter): New struct.
8899 (Py_buffer_up): New typedef.
8900
0f58c9e8
JB
89012019-02-25 John Baldwin <jhb@FreeBSD.org>
8902
8903 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8904 instead of releasing ownership.
8905
0a0f4c01
JR
89062019-02-25 Jordan Rupprecht <rupprecht@google.com>
8907
8908 * dwarf2read.c (open_and_init_dwp_file): Call
8909 elf_numsections instead of bfd_count_sections to initialize
8910 dwp_file->num_sections.
8911
cd5a152c
TT
89122019-02-25 Tom Tromey <tromey@adacore.com>
8913
8914 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8915
8a6a8513
SDJ
89162019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8917
8918 * gcore.in: Add '--readnever' option when invoking GDB.
8919
04dcda9c
SM
89202019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8921
8922 * MAINTAINERS: Update my email address.
8923
07bc701d
SM
89242019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8925
8926 * build-id.c (build_id_to_debug_bfd_1): New function.
8927 (build_id_to_debug_bfd): Look for separate debug file in
8928 sysroot.
8929
c6f4a5d0
AB
89302019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8931
8932 * gdbarch.sh: Update the copyright year range that is placed into
8933 generated files.
8934
9600246d
KS
89352019-02-22 Keith Seitz <keiths@redhat.com>
8936
8937 PR symtab/23853
8938 * linespec.c (create_sals_line_offset): Search for the default
8939 symtab's filename instead of its fullname.
8940
7557a514
AH
89412019-02-21 Alan Hayward <alan.hayward@arm.com>
8942
8943 * NEWS: Update style defaults.
8944
ee2bcb0c
AH
89452019-02-21 Alan Hayward <alan.hayward@arm.com>
8946
8947 * main.c (captured_main_1): Disable styling in batch mode.
8948
0c95f9ed
TT
89492019-02-20 Tom Tromey <tom@tromey.com>
8950
8951 * symtab.c (symtab_symbol_info): Fix typos.
8952
c763b894
TT
89532019-02-20 Tom Tromey <tromey@adacore.com>
8954
8955 * findcmd.c (_initialize_mem_search): Use upper case for
8956 metasyntactic variables.
8957
0ef8a082
AH
89582019-02-20 Alan Hayward <alan.hayward@arm.com>
8959
8960 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8961 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8962
6caa91b6
SM
89632019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8964
8965 * top.h (source_file_name): Change to std::string.
8966 * top.c (source_file_name): Likewise.
8967 (command_line_input): Adjust.
8968 * cli/cli-script.c (script_from_file): Adjust.
8969
98814c6c
TT
89702019-02-19 Tom Tromey <tromey@adacore.com>
8971
8972 * ravenscar-thread.c
8973 (ravenscar_thread_target::update_thread_list): Don't call
8974 ada_build_task_list.
8975 * ada-lang.h (ada_build_task_list): Don't declare.
8976 * ada-tasks.c (struct ada_tasks_inferior_data)
8977 <task_list_valid_p>: Now bool.
8978 (read_known_tasks, ada_task_list_changed)
8979 (ada_tasks_invalidate_inferior_data): Update.
8980 (read_known_tasks_array): Return bool.
8981 (read_known_tasks_list): Likewise.
8982 (read_known_tasks): Return void.
8983 (ada_build_task_list): Now static.
8984
70cd633e
AB
89852019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8986
8987 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8988 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8989
040b3e95
PW
89902019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8991
8992 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8993 variant for ada_tasks_pspace_data_handle and
8994 ada_tasks_inferior_data_handle.
8995 (ada_tasks_pspace_data_cleanup): New function.
8996 (ada_tasks_inferior_data_cleanup): New function.
8997
9409233b
TT
89982019-02-17 Tom Tromey <tom@tromey.com>
8999
9000 * macrotab.h (macro_source_fullname): Return a std::string.
9001 * macrotab.c (macro_include, check_for_redefinition)
9002 (macro_undef, macro_lookup_definition, foreach_macro)
9003 (foreach_macro_in_scope): Update.
9004 (macro_source_fullname): Return a std::string.
9005 * macrocmd.c (show_pp_source_pos): Update.
9006
6506371f
TT
90072019-02-17 Tom Tromey <tom@tromey.com>
9008
9009 * macrocmd.c (show_pp_source_pos): Style the file names.
9010
0c820d67
TT
90112019-02-17 Tom Tromey <tom@tromey.com>
9012
9013 PR tui/24197:
9014 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9015
a0087920
TT
90162019-02-17 Tom Tromey <tom@tromey.com>
9017
9018 * ada-lang.c (user_select_syms): Use filtered printing.
9019 * utils.c (wrap_style): New global.
9020 (desired_style): Remove.
9021 (emit_style_escape): Add stream parameter.
9022 (set_output_style, reset_terminal_style, prompt_for_continue):
9023 Update.
9024 (flush_wrap_buffer): Only flush gdb_stdout.
9025 (wrap_here): Set wrap_style.
9026 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9027 treat escape sequences as a character. Change when wrap buffer is
9028 flushed.
9029 (fputs_styled): Do not set the output style when the default is
9030 requested.
9031 * ui-style.h (struct ui_file_style) <is_default>: New method.
9032 * source.c (print_source_lines_base): Emit escape sequences in one
9033 piece.
9034
75ba10dc
JB
90352019-02-17 Joel Brobecker <brobecker@adacore.com>
9036
9037 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9038 integers and enumeration types.
9039
a2cd4f14
JB
90402019-02-17 Joel Brobecker <brobecker@adacore.com>
9041
9042 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9043 instead of lookup_symbol_in_language
9044 (do_exact_match): New function.
9045 (ada_get_symbol_name_matcher): Return do_exact_match when
9046 doing a verbatim match.
9047
485b851b
TT
90482019-02-15 Tom Tromey <tromey@adacore.com>
9049
9050 * ravenscar-thread.c (ravenscar_thread_target::resume)
9051 (ravenscar_thread_target::wait): Special case wildcard requests.
9052
0b790b1e
TT
90532019-02-15 Tom Tromey <tromey@adacore.com>
9054
9055 * ravenscar-thread.c (base_ptid): Remove.
9056 (struct ravenscar_thread_target) <close>: New method.
9057 <m_base_ptid>: New member.
9058 <update_inferior_ptid, active_task, task_is_currently_active,
9059 runtime_initialized>: Declare methods.
9060 <ravenscar_thread_target>: Add constructor.
9061 (ravenscar_thread_target::task_is_currently_active)
9062 (ravenscar_thread_target::update_inferior_ptid)
9063 (ravenscar_runtime_initialized): Rename. Now methods.
9064 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9065 (ravenscar_thread_target::update_thread_list): Update.
9066 (ravenscar_thread_target::active_task): Now method.
9067 (ravenscar_thread_target::store_registers)
9068 (ravenscar_thread_target::prepare_to_store)
9069 (ravenscar_thread_target::prepare_to_store)
9070 (ravenscar_thread_target::mourn_inferior): Update.
9071 (ravenscar_inferior_created): Use "new" to create target.
9072 (ravenscar_thread_target::get_ada_task_ptid): Update.
9073 (_initialize_ravenscar): Don't initialize base_ptid.
9074 (ravenscar_ops): Remove global.
9075
dea57a62
TT
90762019-02-15 Tom Tromey <tromey@adacore.com>
9077
9078 * target.h (push_target): Declare new overload.
9079 * target.c (push_target): New overload, taking an rvalue reference.
9080 * remote.c (remote_target::open_1): Use push_target overload.
9081 * corelow.c (core_target_open): Use push_target overload.
9082
989f3c58
TT
90832019-02-15 Tom Tromey <tromey@adacore.com>
9084
9085 * ravenscar-thread.c (is_ravenscar_task)
9086 (ravenscar_task_is_currently_active): Return bool.
9087 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9088 (_initialize_ravenscar): Remove "(void)".
9089 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9090 Return bool.
9091
6cbcc006
TT
90922019-02-15 Tom Tromey <tromey@adacore.com>
9093
9094 * ravenscar-thread.c (ravenscar_runtime_initializer)
9095 (has_ravenscar_runtime, get_running_thread_id)
9096 (ravenscar_thread_target::resume): Fix indentation.
9097
7657f14d
TT
90982019-02-15 Tom Tromey <tromey@adacore.com>
9099
9100 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9101 from ravenscar_arch_ops.
9102 (sparc_ravenscar_ops::fetch_registers)
9103 (sparc_ravenscar_ops::store_registers): Now methods.
9104 (sparc_ravenscar_prepare_to_store): Remove.
9105 (sparc_ravenscar_ops): Redefine.
9106 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9107 methods and destructor. Remove members.
9108 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9109 (ravenscar_thread_target::store_registers)
9110 (ravenscar_thread_target::prepare_to_store): Update.
9111 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9112 Remove.
9113 (struct ppc_ravenscar_powerpc_ops): Derive from
9114 ravenscar_arch_ops.
9115 (ppc_ravenscar_powerpc_ops::fetch_registers)
9116 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9117 (ppc_ravenscar_powerpc_ops): Redefine.
9118 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9119 (ppc_ravenscar_e500_ops::fetch_registers)
9120 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9121 (ppc_ravenscar_e500_ops): Redefine.
9122 * aarch64-ravenscar-thread.c
9123 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9124 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9125 (aarch64_ravenscar_fetch_registers)
9126 (aarch64_ravenscar_store_registers): Now methods.
9127 (aarch64_ravenscar_ops): Redefine.
9128
5b6ea500
TT
91292019-02-15 Tom Tromey <tromey@adacore.com>
9130
9131 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9132 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9133 (ravenscar_thread_target::stopped_by_watchpoint)
9134 (ravenscar_thread_target::stopped_data_address)
9135 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9136
e397fd39
TT
91372019-02-15 Tom Tromey <tromey@adacore.com>
9138
9139 * ravenscar-thread.c: Fix some typos.
9140
cc12f4a8
TT
91412019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9142 Tom Tromey <tromey@adacore.com>
9143
9144 * ada-lang.c (ada_exception_sal): Change addr_string to a
9145 std::string.
9146 (create_ada_exception_catchpoint): Update.
9147
5f486660
TT
91482019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9149 Tom Tromey <tromey@adacore.com>
9150
9151 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9152 (bp_location_ops): Remove.
9153 (base_breakpoint_allocate_location): Update.
9154 (free_bp_location): Update.
9155 * ada-lang.c (class ada_catchpoint_location)
9156 <ada_catchpoint_location>: Remove ops parameter.
9157 (ada_catchpoint_location_dtor): Remove.
9158 (ada_catchpoint_location_ops): Remove.
9159 (allocate_location_exception): Update.
9160 * breakpoint.h (struct bp_location_ops): Remove.
9161 (class bp_location) <bp_location>: Remove bp_location_ops
9162 parameter.
9163 <~bp_location>: Add destructor.
9164 <ops>: Remove.
9165
b671c7fb
TS
91662019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9167 Pedro Alves <palves@redhat.com>
9168
9169 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9170 'PATH_MAX'.
9171
8071c5ce
DM
91722019-02-14 David Michael <fedora.dm0@gmail.com>
9173 Samuel Thibault <samuel.thibault@gnu.org>
9174 Thomas Schwinge <thomas@codesourcery.com>
9175
9176 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9177 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9178
b1041ae0
TS
91792019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9180
924514e1
TS
9181 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9182 (check_empty): Use "const char *".
9183
c29ee8d4
TS
9184 * gnu-nat.c (gnu_nat_target::detach): Instead of
9185 'detach_inferior (pid)' call
9186 'detach_inferior (find_inferior_pid (pid))'.
9187
6c6ef69f
TS
9188 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9189 'nat/fork-inferior.o'.
9190 * gnu-nat.c: #include "nat/fork-inferior.h".
9191
2d0a338c
TS
9192 * gnu-nat.c (gnu_nat_target::detach): Instead of
9193 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9194 * gnu-nat.h: #include "inf-child.h".
9195 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9196 'i386_gnu_nat_target::fetch_registers'.
9197 (gnu_store_registers): Rename/move to
9198 'i386_gnu_nat_target::store_registers'.
9199
cabb5f06
TS
9200 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9201 * gnu-nat.h (mach_thread_info): New function.
9202 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9203
b1041ae0
TS
9204 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9205
2988d01e
KF
92062019-02-14 Frederic Konrad <konrad@adacore.com>
9207
9208 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9209
c559d709
JB
92102019-02-14 Joel Brobecker <brobecker@adacore.com>
9211
9212 * windows-nat.c (windows_add_thread): Add new parameter
9213 "main_thread_p" with default value set to false. Update
9214 function documentation as well as all callers.
9215 (windows_delete_thread): Likewise.
9216 (fake_create_process): Update call to windows_add_thread.
9217 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9218 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9219 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9220 call to windows_delete_thread.
9221
007024cc
SM
92222019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9223
9224 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9225
f62318e9
JB
92262019-02-12 John Baldwin <jhb@FreeBSD.org>
9227
9228 * symfile.c (find_separate_debug_file): Use canonical path of
9229 sysroot with child_path instead of gdb_sysroot if it is valid.
9230
cd4b7848
JB
92312019-02-12 John Baldwin <jhb@FreeBSD.org>
9232
9233 * symfile.c (find_separate_debug_file): Use child_path to
9234 determine if an object file is under a sysroot.
9235
efac4bfe
JB
92362019-02-12 John Baldwin <jhb@FreeBSD.org>
9237
9238 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9239 unittests/child-path-selftests.c.
9240 * common/pathstuff.c (child_path): New function.
9241 * common/pathstuff.h (child_path): New prototype.
9242 * unittests/child-path-selftests.c: New file.
9243
402d2bfe
JB
92442019-02-12 John Baldwin <jhb@FreeBSD.org>
9245
9246 * symfile.c (find_separate_debug_file): Look for separate debug
9247 files in debug directories under the sysroot.
9248
1ed9f74e
PW
92492019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9250
9251 * symtab.h (struct minimal_symbol data_p): New const method.
9252 (struct minimal_symbol text_p): Likewise.
9253 * symtab.c (output_source_filename): Use file name style
9254 to print file name.
9255 (print_symbol_info): Likewise.
9256 (print_msymbol_info): Use address style to print addresses.
9257 Use function name style to print executable text symbols.
9258 (expand_symtab_containing_pc): Use data_p.
9259 (find_pc_sect_compunit_symtab): Likewise.
9260
2636d81d
PW
92612019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9262
9263 * breakpoint.c (describe_other_breakpoints): Use address style
9264 to print addresses.
9265 (say_where): Likewise.
9266
ac8c53cc
PW
92672019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9268
9269 * ada-typeprint.c (print_func_type): Print function name
9270 style to print function name.
9271 * c-typeprint.c (c_print_type_1): Likewise.
9272
ea638c43
AH
92732019-02-11 Alan Hayward <alan.hayward@arm.com>
9274
9275 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9276 for execve.
9277
ab759ca8
PW
92782019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9279
9280 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9281 type_stack.
9282
aff29d1c
JB
92832019-02-10 Joel Brobecker <brobecker@adacore.com>
9284
9285 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9286 TYPE_CODE_REF types.
9287
617126bc
JW
92882019-02-08 Jim Wilson <jimw@sifive.com>
9289
9290 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9291 (riscv_linux_fregset): New.
9292 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9293
46e3ed7f
TT
92942019-02-07 Tom Tromey <tom@tromey.com>
9295
9296 * thread.c (thread_cancel_execution_command): Update.
9297 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9298 methods.
9299 (struct thread_fsm_ops): Remove.
9300 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9301 (thread_fsm_should_stop, thread_fsm_return_value)
9302 (thread_fsm_set_finished, thread_fsm_finished_p)
9303 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9304 Don't declare.
9305 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9306 * infrun.c (clear_proceed_status_thread)
9307 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9308 (print_stop_event): Update.
9309 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9310 Add constructor.
9311 (step_command_fsm_ops): Remove.
9312 (new_step_command_fsm): Remove.
9313 (step_1): Update.
9314 (step_command_fsm::should_stop): Rename from
9315 step_command_fsm_should_stop.
9316 (step_command_fsm::clean_up): Rename from
9317 step_command_fsm_clean_up.
9318 (step_command_fsm::do_async_reply_reason): Rename from
9319 step_command_fsm_async_reply_reason.
9320 (struct until_next_fsm): Inherit from thread_fsm. Add
9321 constructor.
9322 (until_next_fsm_ops): Remove.
9323 (new_until_next_fsm): Remove.
9324 (until_next_fsm::should_stop): Rename from
9325 until_next_fsm_should_stop.
9326 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9327 (until_next_fsm::do_async_reply_reason): Rename from
9328 until_next_fsm_async_reply_reason.
9329 (struct finish_command_fsm): Inherit from thread_fsm. Add
9330 constructor. Change type of breakpoint.
9331 (finish_command_fsm_ops): Remove.
9332 (new_finish_command_fsm): Remove.
9333 (finish_command_fsm::should_stop): Rename from
9334 finish_command_fsm_should_stop.
9335 (finish_command_fsm::clean_up): Rename from
9336 finish_command_fsm_clean_up.
9337 (finish_command_fsm::return_value): Rename from
9338 finish_command_fsm_return_value.
9339 (finish_command_fsm::do_async_reply_reason): Rename from
9340 finish_command_fsm_async_reply_reason.
9341 (finish_command): Update.
9342 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9343 Add constructor.
9344 (call_thread_fsm_ops): Remove.
9345 (call_thread_fsm::call_thread_fsm): Rename from
9346 new_call_thread_fsm.
9347 (call_thread_fsm::should_stop): Rename from
9348 call_thread_fsm_should_stop.
9349 (call_thread_fsm::should_notify_stop): Rename from
9350 call_thread_fsm_should_notify_stop.
9351 (run_inferior_call, call_function_by_hand_dummy): Update.
9352 * cli/cli-interp.c (should_print_stop_to_console): Update.
9353 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9354 Add constructor. Change type of location_breakpoint,
9355 caller_breakpoint.
9356 (until_break_fsm_ops): Remove.
9357 (new_until_break_fsm): Remove.
9358 (until_break_fsm::should_stop): Rename from
9359 until_break_fsm_should_stop.
9360 (until_break_fsm::clean_up): Rename from
9361 until_break_fsm_clean_up.
9362 (until_break_fsm::do_async_reply_reason): Rename from
9363 until_break_fsm_async_reply_reason.
9364 (until_break_command): Update.
9365 * thread-fsm.c: Remove.
9366 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9367
1a5c2598
TT
93682019-02-07 Tom Tromey <tom@tromey.com>
9369
9370 * yy-remap.h: Add include guard.
9371 * xtensa-tdep.h: Add include guard.
9372 * xcoffread.h: Rename include guard.
9373 * varobj-iter.h: Add include guard.
9374 * tui/tui.h: Rename include guard.
9375 * tui/tui-winsource.h: Rename include guard.
9376 * tui/tui-wingeneral.h: Rename include guard.
9377 * tui/tui-windata.h: Rename include guard.
9378 * tui/tui-win.h: Rename include guard.
9379 * tui/tui-stack.h: Rename include guard.
9380 * tui/tui-source.h: Rename include guard.
9381 * tui/tui-regs.h: Rename include guard.
9382 * tui/tui-out.h: Rename include guard.
9383 * tui/tui-layout.h: Rename include guard.
9384 * tui/tui-io.h: Rename include guard.
9385 * tui/tui-hooks.h: Rename include guard.
9386 * tui/tui-file.h: Rename include guard.
9387 * tui/tui-disasm.h: Rename include guard.
9388 * tui/tui-data.h: Rename include guard.
9389 * tui/tui-command.h: Rename include guard.
9390 * tic6x-tdep.h: Add include guard.
9391 * target/waitstatus.h: Rename include guard.
9392 * target/wait.h: Rename include guard.
9393 * target/target.h: Rename include guard.
9394 * target/resume.h: Rename include guard.
9395 * target-float.h: Rename include guard.
9396 * stabsread.h: Add include guard.
9397 * rs6000-tdep.h: Add include guard.
9398 * riscv-fbsd-tdep.h: Add include guard.
9399 * regformats/regdef.h: Rename include guard.
9400 * record.h: Rename include guard.
9401 * python/python.h: Rename include guard.
9402 * python/python-internal.h: Rename include guard.
9403 * python/py-stopevent.h: Rename include guard.
9404 * python/py-ref.h: Rename include guard.
9405 * python/py-record.h: Rename include guard.
9406 * python/py-record-full.h: Rename include guard.
9407 * python/py-record-btrace.h: Rename include guard.
9408 * python/py-instruction.h: Rename include guard.
9409 * python/py-events.h: Rename include guard.
9410 * python/py-event.h: Rename include guard.
9411 * procfs.h: Add include guard.
9412 * proc-utils.h: Add include guard.
9413 * p-lang.h: Add include guard.
9414 * or1k-tdep.h: Rename include guard.
9415 * observable.h: Rename include guard.
9416 * nto-tdep.h: Rename include guard.
9417 * nat/x86-linux.h: Rename include guard.
9418 * nat/x86-linux-dregs.h: Rename include guard.
9419 * nat/x86-gcc-cpuid.h: Add include guard.
9420 * nat/x86-dregs.h: Rename include guard.
9421 * nat/x86-cpuid.h: Rename include guard.
9422 * nat/ppc-linux.h: Rename include guard.
9423 * nat/mips-linux-watch.h: Rename include guard.
9424 * nat/linux-waitpid.h: Rename include guard.
9425 * nat/linux-ptrace.h: Rename include guard.
9426 * nat/linux-procfs.h: Rename include guard.
9427 * nat/linux-osdata.h: Rename include guard.
9428 * nat/linux-nat.h: Rename include guard.
9429 * nat/linux-namespaces.h: Rename include guard.
9430 * nat/linux-btrace.h: Rename include guard.
9431 * nat/glibc_thread_db.h: Rename include guard.
9432 * nat/gdb_thread_db.h: Rename include guard.
9433 * nat/gdb_ptrace.h: Rename include guard.
9434 * nat/fork-inferior.h: Rename include guard.
9435 * nat/amd64-linux-siginfo.h: Rename include guard.
9436 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9437 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9438 * nat/aarch64-linux.h: Rename include guard.
9439 * nat/aarch64-linux-hw-point.h: Rename include guard.
9440 * mn10300-tdep.h: Add include guard.
9441 * mips-linux-tdep.h: Add include guard.
9442 * mi/mi-parse.h: Rename include guard.
9443 * mi/mi-out.h: Rename include guard.
9444 * mi/mi-main.h: Rename include guard.
9445 * mi/mi-interp.h: Rename include guard.
9446 * mi/mi-getopt.h: Rename include guard.
9447 * mi/mi-console.h: Rename include guard.
9448 * mi/mi-common.h: Rename include guard.
9449 * mi/mi-cmds.h: Rename include guard.
9450 * mi/mi-cmd-break.h: Rename include guard.
9451 * m2-lang.h: Add include guard.
9452 * location.h: Rename include guard.
9453 * linux-record.h: Rename include guard.
9454 * linux-nat.h: Add include guard.
9455 * linux-fork.h: Add include guard.
9456 * i386-darwin-tdep.h: Rename include guard.
9457 * hppa-linux-offsets.h: Add include guard.
9458 * guile/guile.h: Rename include guard.
9459 * guile/guile-internal.h: Rename include guard.
9460 * gnu-nat.h: Rename include guard.
9461 * gdb-stabs.h: Rename include guard.
9462 * frv-tdep.h: Add include guard.
9463 * f-lang.h: Add include guard.
9464 * event-loop.h: Add include guard.
9465 * darwin-nat.h: Rename include guard.
9466 * cp-abi.h: Rename include guard.
9467 * config/sparc/nm-sol2.h: Rename include guard.
9468 * config/nm-nto.h: Rename include guard.
9469 * config/nm-linux.h: Add include guard.
9470 * config/i386/nm-i386gnu.h: Rename include guard.
9471 * config/djgpp/nl_types.h: Rename include guard.
9472 * config/djgpp/langinfo.h: Rename include guard.
9473 * compile/gcc-cp-plugin.h: Add include guard.
9474 * compile/gcc-c-plugin.h: Add include guard.
9475 * compile/compile.h: Rename include guard.
9476 * compile/compile-object-run.h: Rename include guard.
9477 * compile/compile-object-load.h: Rename include guard.
9478 * compile/compile-internal.h: Rename include guard.
9479 * compile/compile-cplus.h: Rename include guard.
9480 * compile/compile-c.h: Rename include guard.
9481 * common/xml-utils.h: Rename include guard.
9482 * common/x86-xstate.h: Rename include guard.
9483 * common/version.h: Rename include guard.
9484 * common/vec.h: Rename include guard.
9485 * common/tdesc.h: Rename include guard.
9486 * common/selftest.h: Rename include guard.
9487 * common/scoped_restore.h: Rename include guard.
9488 * common/scoped_mmap.h: Rename include guard.
9489 * common/scoped_fd.h: Rename include guard.
9490 * common/safe-iterator.h: Rename include guard.
9491 * common/run-time-clock.h: Rename include guard.
9492 * common/refcounted-object.h: Rename include guard.
9493 * common/queue.h: Rename include guard.
9494 * common/ptid.h: Rename include guard.
9495 * common/print-utils.h: Rename include guard.
9496 * common/preprocessor.h: Rename include guard.
9497 * common/pathstuff.h: Rename include guard.
9498 * common/observable.h: Rename include guard.
9499 * common/netstuff.h: Rename include guard.
9500 * common/job-control.h: Rename include guard.
9501 * common/host-defs.h: Rename include guard.
9502 * common/gdb_wait.h: Rename include guard.
9503 * common/gdb_vecs.h: Rename include guard.
9504 * common/gdb_unlinker.h: Rename include guard.
9505 * common/gdb_unique_ptr.h: Rename include guard.
9506 * common/gdb_tilde_expand.h: Rename include guard.
9507 * common/gdb_sys_time.h: Rename include guard.
9508 * common/gdb_string_view.h: Rename include guard.
9509 * common/gdb_splay_tree.h: Rename include guard.
9510 * common/gdb_setjmp.h: Rename include guard.
9511 * common/gdb_ref_ptr.h: Rename include guard.
9512 * common/gdb_optional.h: Rename include guard.
9513 * common/gdb_locale.h: Rename include guard.
9514 * common/gdb_assert.h: Rename include guard.
9515 * common/filtered-iterator.h: Rename include guard.
9516 * common/filestuff.h: Rename include guard.
9517 * common/fileio.h: Rename include guard.
9518 * common/environ.h: Rename include guard.
9519 * common/common-utils.h: Rename include guard.
9520 * common/common-types.h: Rename include guard.
9521 * common/common-regcache.h: Rename include guard.
9522 * common/common-inferior.h: Rename include guard.
9523 * common/common-gdbthread.h: Rename include guard.
9524 * common/common-exceptions.h: Rename include guard.
9525 * common/common-defs.h: Rename include guard.
9526 * common/common-debug.h: Rename include guard.
9527 * common/cleanups.h: Rename include guard.
9528 * common/buffer.h: Rename include guard.
9529 * common/btrace-common.h: Rename include guard.
9530 * common/break-common.h: Rename include guard.
9531 * cli/cli-utils.h: Rename include guard.
9532 * cli/cli-style.h: Rename include guard.
9533 * cli/cli-setshow.h: Rename include guard.
9534 * cli/cli-script.h: Rename include guard.
9535 * cli/cli-interp.h: Rename include guard.
9536 * cli/cli-decode.h: Rename include guard.
9537 * cli/cli-cmds.h: Rename include guard.
9538 * charset-list.h: Add include guard.
9539 * buildsym-legacy.h: Rename include guard.
9540 * bfin-tdep.h: Add include guard.
9541 * ax.h: Rename include guard.
9542 * arm-linux-tdep.h: Add include guard.
9543 * arm-fbsd-tdep.h: Add include guard.
9544 * arch/xtensa.h: Rename include guard.
9545 * arch/tic6x.h: Add include guard.
9546 * arch/i386.h: Add include guard.
9547 * arch/arm.h: Rename include guard.
9548 * arch/arm-linux.h: Rename include guard.
9549 * arch/arm-get-next-pcs.h: Rename include guard.
9550 * arch/amd64.h: Add include guard.
9551 * arch/aarch64-insn.h: Rename include guard.
9552 * arch-utils.h: Rename include guard.
9553 * annotate.h: Add include guard.
9554 * amd64-darwin-tdep.h: Rename include guard.
9555 * aarch64-linux-tdep.h: Add include guard.
9556 * aarch64-fbsd-tdep.h: Add include guard.
9557 * aarch32-linux-nat.h: Add include guard.
9558
ab9268d2
PW
95592019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9560
9561 * macrotab.c (macro_define_internal): New function that
9562 factorizes macro_define_object_internal and macro_define_function
9563 code.
9564 (macro_define_object_internal): Use macro_define_internal.
9565 (macro_define_function): Likewise.
9566
bb0da2b4
PW
95672019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9568
9569 * macrocmd.c (extract_identifier): Return
9570 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9571 callers.
9572
424eb552
JB
95732019-02-06 John Baldwin <jhb@FreeBSD.org>
9574
9575 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9576
1688cb29
TT
95772019-02-05 Tom Tromey <tom@tromey.com>
9578
9579 * target.c (target_stack::unpush): Move assertion earlier.
9580
b5eba2d8
TT
95812019-01-30 Tom Tromey <tom@tromey.com>
9582
9583 PR python/23615:
9584 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9585 (gdbpy_parse_and_eval): Likewise.
9586 * python/python-internal.h (gdbpy_allow_threads): New class.
9587
7054e2ff
JB
95882019-01-28 John Baldwin <jhb@FreeBSD.org>
9589
9590 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9591 (aarch64_fbsd_fpregmap): Move earlier.
9592 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9593 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9594 instead of individual calls to trad_frame_set_reg_addr.
9595 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9596 earlier.
9597 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9598 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9599 instead of individual calls to trad_frame_set_reg_addr.
9600
36c25ffa
AH
96012019-01-28 Alan Hayward <alan.hayward@arm.com>
9602
9603 * CONTRIBUTE: Replace contribution list with wiki link.
9604
a0707f3c
TT
96052019-01-25 Tom Tromey <tom@tromey.com>
9606
9607 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9608
0747795c
TT
96092019-01-25 Tom Tromey <tom@tromey.com>
9610
9611 * xtensa-linux-nat.c: Fix common/ includes.
9612 * xml-support.h: Fix common/ includes.
9613 * xml-support.c: Fix common/ includes.
9614 * x86-linux-nat.c: Fix common/ includes.
9615 * windows-nat.c: Fix common/ includes.
9616 * varobj.h: Fix common/ includes.
9617 * varobj.c: Fix common/ includes.
9618 * value.c: Fix common/ includes.
9619 * valops.c: Fix common/ includes.
9620 * utils.c: Fix common/ includes.
9621 * unittests/xml-utils-selftests.c: Fix common/ includes.
9622 * unittests/utils-selftests.c: Fix common/ includes.
9623 * unittests/unpack-selftests.c: Fix common/ includes.
9624 * unittests/tracepoint-selftests.c: Fix common/ includes.
9625 * unittests/style-selftests.c: Fix common/ includes.
9626 * unittests/string_view-selftests.c: Fix common/ includes.
9627 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9628 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9629 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9630 * unittests/rsp-low-selftests.c: Fix common/ includes.
9631 * unittests/parse-connection-spec-selftests.c: Fix common/
9632 includes.
9633 * unittests/optional-selftests.c: Fix common/ includes.
9634 * unittests/offset-type-selftests.c: Fix common/ includes.
9635 * unittests/observable-selftests.c: Fix common/ includes.
9636 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9637 * unittests/memrange-selftests.c: Fix common/ includes.
9638 * unittests/memory-map-selftests.c: Fix common/ includes.
9639 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9640 * unittests/function-view-selftests.c: Fix common/ includes.
9641 * unittests/environ-selftests.c: Fix common/ includes.
9642 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9643 * unittests/common-utils-selftests.c: Fix common/ includes.
9644 * unittests/cli-utils-selftests.c: Fix common/ includes.
9645 * unittests/array-view-selftests.c: Fix common/ includes.
9646 * ui-file.c: Fix common/ includes.
9647 * tui/tui-io.c: Fix common/ includes.
9648 * tracepoint.h: Fix common/ includes.
9649 * tracepoint.c: Fix common/ includes.
9650 * tracefile-tfile.c: Fix common/ includes.
9651 * top.h: Fix common/ includes.
9652 * top.c: Fix common/ includes.
9653 * thread.c: Fix common/ includes.
9654 * target/waitstatus.h: Fix common/ includes.
9655 * target/waitstatus.c: Fix common/ includes.
9656 * target.h: Fix common/ includes.
9657 * target.c: Fix common/ includes.
9658 * target-memory.c: Fix common/ includes.
9659 * target-descriptions.c: Fix common/ includes.
9660 * symtab.h: Fix common/ includes.
9661 * symfile.c: Fix common/ includes.
9662 * stap-probe.c: Fix common/ includes.
9663 * spu-linux-nat.c: Fix common/ includes.
9664 * sparc-nat.c: Fix common/ includes.
9665 * source.c: Fix common/ includes.
9666 * solib.c: Fix common/ includes.
9667 * solib-target.c: Fix common/ includes.
9668 * ser-unix.c: Fix common/ includes.
9669 * ser-tcp.c: Fix common/ includes.
9670 * ser-pipe.c: Fix common/ includes.
9671 * ser-base.c: Fix common/ includes.
9672 * selftest-arch.c: Fix common/ includes.
9673 * s12z-tdep.c: Fix common/ includes.
9674 * rust-exp.y: Fix common/ includes.
9675 * rs6000-aix-tdep.c: Fix common/ includes.
9676 * riscv-tdep.c: Fix common/ includes.
9677 * remote.c: Fix common/ includes.
9678 * remote-notif.h: Fix common/ includes.
9679 * remote-fileio.h: Fix common/ includes.
9680 * remote-fileio.c: Fix common/ includes.
9681 * regcache.h: Fix common/ includes.
9682 * regcache.c: Fix common/ includes.
9683 * record-btrace.c: Fix common/ includes.
9684 * python/python.c: Fix common/ includes.
9685 * python/py-type.c: Fix common/ includes.
9686 * python/py-inferior.c: Fix common/ includes.
9687 * progspace.h: Fix common/ includes.
9688 * producer.c: Fix common/ includes.
9689 * procfs.c: Fix common/ includes.
9690 * proc-api.c: Fix common/ includes.
9691 * printcmd.c: Fix common/ includes.
9692 * ppc-linux-nat.c: Fix common/ includes.
9693 * parser-defs.h: Fix common/ includes.
9694 * osdata.c: Fix common/ includes.
9695 * obsd-nat.c: Fix common/ includes.
9696 * nat/x86-linux.c: Fix common/ includes.
9697 * nat/x86-linux-dregs.c: Fix common/ includes.
9698 * nat/x86-dregs.h: Fix common/ includes.
9699 * nat/x86-dregs.c: Fix common/ includes.
9700 * nat/ppc-linux.c: Fix common/ includes.
9701 * nat/mips-linux-watch.h: Fix common/ includes.
9702 * nat/mips-linux-watch.c: Fix common/ includes.
9703 * nat/linux-waitpid.c: Fix common/ includes.
9704 * nat/linux-ptrace.h: Fix common/ includes.
9705 * nat/linux-ptrace.c: Fix common/ includes.
9706 * nat/linux-procfs.c: Fix common/ includes.
9707 * nat/linux-personality.c: Fix common/ includes.
9708 * nat/linux-osdata.c: Fix common/ includes.
9709 * nat/linux-namespaces.c: Fix common/ includes.
9710 * nat/linux-btrace.h: Fix common/ includes.
9711 * nat/linux-btrace.c: Fix common/ includes.
9712 * nat/fork-inferior.c: Fix common/ includes.
9713 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9714 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9715 * nat/aarch64-linux.c: Fix common/ includes.
9716 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9717 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9718 * namespace.h: Fix common/ includes.
9719 * mips-linux-tdep.c: Fix common/ includes.
9720 * minsyms.c: Fix common/ includes.
9721 * mi/mi-parse.h: Fix common/ includes.
9722 * mi/mi-main.c: Fix common/ includes.
9723 * mi/mi-cmd-env.c: Fix common/ includes.
9724 * memrange.h: Fix common/ includes.
9725 * memattr.c: Fix common/ includes.
9726 * maint.h: Fix common/ includes.
9727 * maint.c: Fix common/ includes.
9728 * main.c: Fix common/ includes.
9729 * machoread.c: Fix common/ includes.
9730 * location.c: Fix common/ includes.
9731 * linux-thread-db.c: Fix common/ includes.
9732 * linux-nat.c: Fix common/ includes.
9733 * linux-fork.c: Fix common/ includes.
9734 * inline-frame.c: Fix common/ includes.
9735 * infrun.c: Fix common/ includes.
9736 * inflow.c: Fix common/ includes.
9737 * inferior.h: Fix common/ includes.
9738 * inferior.c: Fix common/ includes.
9739 * infcmd.c: Fix common/ includes.
9740 * inf-ptrace.c: Fix common/ includes.
9741 * inf-child.c: Fix common/ includes.
9742 * ia64-linux-nat.c: Fix common/ includes.
9743 * i387-tdep.c: Fix common/ includes.
9744 * i386-tdep.c: Fix common/ includes.
9745 * i386-linux-tdep.c: Fix common/ includes.
9746 * i386-linux-nat.c: Fix common/ includes.
9747 * i386-go32-tdep.c: Fix common/ includes.
9748 * i386-fbsd-tdep.c: Fix common/ includes.
9749 * i386-fbsd-nat.c: Fix common/ includes.
9750 * guile/scm-type.c: Fix common/ includes.
9751 * guile/guile.c: Fix common/ includes.
9752 * go32-nat.c: Fix common/ includes.
9753 * gnu-nat.c: Fix common/ includes.
9754 * gdbthread.h: Fix common/ includes.
9755 * gdbarch-selftests.c: Fix common/ includes.
9756 * gdb_usleep.c: Fix common/ includes.
9757 * gdb_select.h: Fix common/ includes.
9758 * gdb_bfd.c: Fix common/ includes.
9759 * gcore.c: Fix common/ includes.
9760 * fork-child.c: Fix common/ includes.
9761 * findvar.c: Fix common/ includes.
9762 * fbsd-nat.c: Fix common/ includes.
9763 * event-top.c: Fix common/ includes.
9764 * event-loop.c: Fix common/ includes.
9765 * dwarf2read.c: Fix common/ includes.
9766 * dwarf2loc.c: Fix common/ includes.
9767 * dwarf2-frame.c: Fix common/ includes.
9768 * dwarf-index-cache.c: Fix common/ includes.
9769 * dtrace-probe.c: Fix common/ includes.
9770 * disasm-selftests.c: Fix common/ includes.
9771 * defs.h: Fix common/ includes.
9772 * csky-tdep.c: Fix common/ includes.
9773 * cp-valprint.c: Fix common/ includes.
9774 * cp-support.h: Fix common/ includes.
9775 * cp-support.c: Fix common/ includes.
9776 * corelow.c: Fix common/ includes.
9777 * completer.h: Fix common/ includes.
9778 * completer.c: Fix common/ includes.
9779 * compile/compile.c: Fix common/ includes.
9780 * compile/compile-loc2c.c: Fix common/ includes.
9781 * compile/compile-cplus-types.c: Fix common/ includes.
9782 * compile/compile-cplus-symbols.c: Fix common/ includes.
9783 * command.h: Fix common/ includes.
9784 * cli/cli-dump.c: Fix common/ includes.
9785 * cli/cli-cmds.c: Fix common/ includes.
9786 * charset.c: Fix common/ includes.
9787 * build-id.c: Fix common/ includes.
9788 * btrace.h: Fix common/ includes.
9789 * btrace.c: Fix common/ includes.
9790 * breakpoint.h: Fix common/ includes.
9791 * breakpoint.c: Fix common/ includes.
9792 * ax.h:
9793 (enum agent_op): Fix common/ includes.
9794 * ax-general.c (struct aop_map): Fix common/ includes.
9795 * ax-gdb.c: Fix common/ includes.
9796 * auxv.c: Fix common/ includes.
9797 * auto-load.c: Fix common/ includes.
9798 * arm-tdep.c: Fix common/ includes.
9799 * arch/riscv.c: Fix common/ includes.
9800 * arch/ppc-linux-common.c: Fix common/ includes.
9801 * arch/i386.c: Fix common/ includes.
9802 * arch/arm.c: Fix common/ includes.
9803 * arch/arm-linux.c: Fix common/ includes.
9804 * arch/arm-get-next-pcs.c: Fix common/ includes.
9805 * arch/amd64.c: Fix common/ includes.
9806 * arch/aarch64.c: Fix common/ includes.
9807 * arch/aarch64-insn.c: Fix common/ includes.
9808 * arch-utils.c: Fix common/ includes.
9809 * amd64-windows-tdep.c: Fix common/ includes.
9810 * amd64-tdep.c: Fix common/ includes.
9811 * amd64-sol2-tdep.c: Fix common/ includes.
9812 * amd64-obsd-tdep.c: Fix common/ includes.
9813 * amd64-nbsd-tdep.c: Fix common/ includes.
9814 * amd64-linux-tdep.c: Fix common/ includes.
9815 * amd64-linux-nat.c: Fix common/ includes.
9816 * amd64-fbsd-tdep.c: Fix common/ includes.
9817 * amd64-fbsd-nat.c: Fix common/ includes.
9818 * amd64-dicos-tdep.c: Fix common/ includes.
9819 * amd64-darwin-tdep.c: Fix common/ includes.
9820 * agent.c: Fix common/ includes.
9821 * ada-lang.h: Fix common/ includes.
9822 * ada-lang.c: Fix common/ includes.
9823 * aarch64-tdep.c: Fix common/ includes.
9824
2f5c153e
TT
98252019-01-25 Tom Tromey <tom@tromey.com>
9826
9827 * common/create-version.sh: Use common/version.h.
9828
adc6a863
PA
98292019-01-24 Pedro Alves <palves@redhat.com>
9830
9831 * infrun.c (signal_stop, signal_print, signal_program)
9832 (signal_catch, signal_pass): Now arrays instead of pointers.
9833 (update_signals_program_target, do_target_resume)
9834 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9835 * linux-nat.c (linux_nat_target::pass_signals)
9836 (linux_nat_target::create_inferior, linux_nat_target::attach):
9837 Adjust.
9838 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9839 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9840 * procfs.c (procfs_target::pass_signals): Adjust.
9841 * record-full.c (record_full_target::resume): Adjust.
9842 * remote.c (remote_target::pass_signals)
9843 (remote_target::program_signals): Adjust.
9844 * target-debug.h (target_debug_print_signals): Now takes a
9845 gdb::array_view as parameter. Adjust.
9846 * target.h (target_ops) <pass_signals, program_signals>: Replace
9847 pointer and length parameters with gdb::array_view.
9848 (target_pass_signals, target_program_signals): Likewise.
9849 * target-delegates.c: Regenerate.
9850
3046d67a
PA
98512019-01-24 Pedro Alves <palves@redhat.com>
9852
9853 * common/forward-scope-exit.h
9854 (forward_scope_exit::forward_scope_exit): Pass arguments to
9855 m_bind_function directly, instead of creating a std::bind and
9856 copying that.
9857
353229bf
AH
98582019-01-24 Alan Hayward <alan.hayward@arm.com>
9859
9860 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9861 for static members.
9862 (pass_in_v_vfp_candidate): Likewise.
9863
311dc83a
TT
98642019-01-23 Tom Tromey <tom@tromey.com>
9865 Pedro Alves <palves@redhat.com>
9866
9867 * regcache.c (class regcache_invalidator): Remove.
9868 (regcache::raw_write): Use make_scope_exit.
9869
296bd123
TT
98702019-01-23 Tom Tromey <tom@tromey.com>
9871
9872 * ui-out.h (class ui_out_emit_type): Update comment.
9873
979a0d13
TT
98742019-01-23 Tom Tromey <tom@tromey.com>
9875
9876 * infrun.c (fetch_inferior_event): Update comment.
9877
d238133d
TT
98782019-01-23 Tom Tromey <tom@tromey.com>
9879 Pedro Alves <palves@redhat.com>
9880
9881 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9882 parameter.
9883 (fetch_inferior_event): Use SCOPE_EXIT.
9884
9885
9885e6bb
TT
98862019-01-23 Tom Tromey <tom@tromey.com>
9887 Pedro Alves <palves@redhat.com>
9888
9889 * infrun.c (disable_thread_events): Delete.
9890 (stop_all_threads): Use SCOPE_EXIT.
9891
286526c1
TT
98922019-01-23 Tom Tromey <tom@tromey.com>
9893 Pedro Alves <palves@redhat.com>
9894
9895 * symfile.c: Include forward-scope-exit.h.
9896 (clear_symtab_users_cleanup): Replace forward declaration with
9897 a FORWARD_SCOPE_EXIT.
9898 (syms_from_objfile_1): Use the forward_scope_exit and
9899 gdb::optional instead of cleanup_function.
9900 (reread_symbols): Use the forward_scope_exit instead of
9901 cleanup_function.
9902 (clear_symtab_users_cleanup): Remove function.
9903
1db93f14
TT
99042019-01-23 Tom Tromey <tom@tromey.com>
9905 Pedro Alves <palves@redhat.com>
9906
9907 * linux-nat.c: Include scope-exit.h.
9908 (cleanup_target_stop): Remove.
9909 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9910 SCOPE_EXIT.
9911
2cc83d1e
TT
99122019-01-23 Tom Tromey <tom@tromey.com>
9913 Pedro Alves <palves@redhat.com>
9914
9915 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9916 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9917
694c6bf5
TT
99182019-01-23 Tom Tromey <tom@tromey.com>
9919 Andrew Burgess <andrew.burgess@embecosm.com>
9920 Pedro Alves <palves@redhat.com>
9921
9922 * infrun.c (fetch_inferior_event): Use scope_exit.
9923 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9924 * top.c (execute_command): Use scope_exit.
9925 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9926 * utils.c (do_bpstat_clear_actions_cleanup)
9927 (make_bpstat_clear_actions_cleanup): Remove.
9928
4c41382a
TT
99292019-01-23 Tom Tromey <tom@tromey.com>
9930 Pedro Alves <palves@redhat.com>
9931
9932 * infrun.c: Include "common/scope-exit.h"
9933 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9934 (wait_for_inferior): Use SCOPE_EXIT.
9935 (fetch_inferior_event): Use scope_exit.
9936
89f8fb50
TT
99372019-01-23 Tom Tromey <tom@tromey.com>
9938 Pedro Alves <palves@redhat.com>
9939
9940 * breakpoint.c (create_breakpoint): Remove cleanup.
9941
5419bdae
TT
99422019-01-23 Tom Tromey <tom@tromey.com>
9943 Andrew Burgess <andrew.burgess@embecosm.com>
9944 Pedro Alves <palves@redhat.com>
9945
e587ef42
PA
99462019-01-23 Pedro Alves <palves@redhat.com>
9947
9948 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9949
77f0e74c
PA
99502019-01-23 Pedro Alves <palves@redhat.com>
9951 Andrew Burgess <andrew.burgess@embecosm.com>
9952
9953 * gdbthread.h: Include "common/forward-scope-exit.h".
9954 (scoped_finish_thread_state): Redefine custom class in terms of
9955 forward_scope_exit.
9956
5b9b3e53
PA
99572019-01-23 Pedro Alves <palves@redhat.com>
9958 Andrew Burgess <andrew.burgess@embecosm.com>
9959
9960 * common/forward-scope-exit.h: New file.
9961
54b65c9b
PA
99622019-01-23 Pedro Alves <palves@redhat.com>
9963 Andrew Burgess <andrew.burgess@embecosm.com>
9964 Tom Tromey <tom@tromey.com>
9965
9966 * common/scope-exit.h: New file.
9967
cf08fb29
PA
99682019-01-23 Pedro Alves <palves@redhat.com>
9969
9970 * common/preprocessor.h (ESC): Rename to ...
9971 (ESC_PARENS): ... this.
9972 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9973 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9974
ae73e2e2
TT
99752019-01-23 Tom Tromey <tom@tromey.com>
9976
9977 * language.h (class scoped_switch_to_sym_language_if_auto):
9978 Initialize m_lang in both cases.
9979
6594e122
AH
99802019-01-23 Alan Hayward <alan.hayward@arm.com>
9981
9982 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9983 with XCNEW.
9984
a7c9855d
TT
99852019-01-22 Tom Tromey <tom@tromey.com>
9986
9987 * corelow.c: Do not include sys/file.h.
9988
93cc1d53
TT
99892019-01-22 Tom Tromey <tom@tromey.com>
9990
9991 * tui/tui-wingeneral.h: Include gdb_curses.h.
9992
38561778
TT
99932019-01-22 Tom Tromey <tom@tromey.com>
9994
9995 * source-cache.h (class source_cache) <get_source_lines,
9996 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9997
37b3ab5b
TT
99982019-01-22 Tom Tromey <tom@tromey.com>
9999
10000 * remote-fileio.h (struct remote_target): Declare.
10001
3fabc016
TT
100022019-01-22 Tom Tromey <tom@tromey.com>
10003
10004 * python/py-arch.c: Do not include py-ref.h.
10005 * python/py-bpevent.c: Do not include py-ref.h.
10006 * python/py-cmd.c: Do not include py-ref.h.
10007 * python/py-continueevent.c: Do not include py-ref.h.
10008 * python/py-event.h: Do not include py-ref.h.
10009 * python/py-evtregistry.c: Do not include py-ref.h.
10010 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10011 * python/py-frame.c: Do not include py-ref.h.
10012 * python/py-framefilter.c: Do not include py-ref.h.
10013 * python/py-function.c: Do not include py-ref.h.
10014 * python/py-infevents.c: Do not include py-ref.h.
10015 * python/py-linetable.c: Do not include py-ref.h.
10016 * python/py-objfile.c: Do not include py-ref.h.
10017 * python/py-param.c: Do not include py-ref.h.
10018 * python/py-prettyprint.c: Do not include py-ref.h.
10019 * python/py-progspace.c: Do not include py-ref.h.
10020 * python/py-symbol.c: Do not include py-ref.h.
10021 * python/py-symtab.c: Do not include py-ref.h.
10022 * python/py-type.c: Do not include py-ref.h.
10023 * python/py-unwind.c: Do not include py-ref.h.
10024 * python/py-utils.c: Do not include py-ref.h.
10025 * python/py-value.c: Do not include py-ref.h.
10026 * python/py-varobj.c: Do not include py-ref.h.
10027 * python/py-xmethods.c: Do not include py-ref.h.
10028 * python/python.c: Do not include py-ref.h.
10029 * varobj.c: Do not include py-ref.h.
10030
6b4d7774
TT
100312019-01-22 Tom Tromey <tom@tromey.com>
10032
10033 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10034 keyword for bcache.
10035
7af7e9b5
TT
100362019-01-22 Tom Tromey <tom@tromey.com>
10037
10038 * compile/compile-cplus-types.c: Remove a comment by #include.
10039
951d1049
TT
100402019-01-22 Tom Tromey <tom@tromey.com>
10041
10042 * compile/gcc-c-plugin.h: Include compile-internal.h.
10043
d65d5705
TT
100442019-01-22 Tom Tromey <tom@tromey.com>
10045
10046 * stabsread.c (EXTERN): Do not define.
10047 (symnum, next_symbol_text_func, processing_gcc_compilation)
10048 (within_function, global_sym_chain, global_stabs)
10049 (previous_stab_code, this_object_header_files)
10050 (n_this_object_header_files)
10051 (n_allocated_this_object_header_files): Define.
10052 * stabsread.h (EXTERN): Never define. Use "extern".
10053
b6fb1ee5
PW
100542019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10055
10056 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10057 history_value.
10058
be6d4f74
TT
100592019-01-21 Tom Tromey <tom@tromey.com>
10060
10061 * ui-out.c: Fix includes.
10062 * tui/tui-source.c: Fix includes.
10063 * target.c: Fix includes.
10064 * remote.c: Fix includes.
10065 * regcache.c: Fix includes.
10066 * python/py-block.c: Fix includes.
10067 * printcmd.c: Fix includes.
10068 * or1k-tdep.c: Fix includes.
10069 * mi/mi-main.c: Fix includes.
10070 * m32r-tdep.c: Fix includes.
10071 * csky-tdep.c: Fix includes.
10072 * compile/compile-cplus-types.c: Fix includes.
10073 * cli/cli-interp.c: Fix includes.
10074
73021deb
AH
100752019-01-21 Alan Hayward <alan.hayward@arm.com>
10076
10077 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10078 for padding.
10079
7932255d
TT
100802019-01-16 Tom Tromey <tom@tromey.com>
10081
10082 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10083 earlier.
10084 (struct objfile) <msymbols_range>: Move from top level.
10085 <msymbols>: New method.
10086 (class objfile_msymbols): Remove.
10087 * symtab.c (default_collect_symbol_completion_matches_break_on):
10088 Update.
10089 * symmisc.c (dump_msymbols): Update.
10090 * stabsread.c (scan_file_globals): Update.
10091 * objc-lang.c (info_selectors_command, info_classes_command)
10092 (find_methods): Update.
10093 * minsyms.c (find_solib_trampoline_target): Update.
10094 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10095 * coffread.c (coff_symfile_read): Update.
10096 * ada-lang.c (ada_lookup_simple_minsym)
10097 (ada_collect_symbol_completion_matches): Update.
10098
604b1bfb
TT
100992019-01-16 Tom Tromey <tom@tromey.com>
10100
10101 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10102 type. Remove no-argument constructor.
10103 <iterator::operator++>: Simplify.
10104 <begin>: Update.
10105 <end>: Use minimal_symbol_count.
10106
f252c6d5
TT
101072019-01-16 Tom Tromey <tom@tromey.com>
10108
10109 * objfiles.h (struct objfile) <psymtabs>: New method.
10110 (class objfile_psymtabs): Remove.
10111 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10112 typedef.
10113 <range>: New method.
10114 (require_partial_symbols): Change return type.
10115 * psymtab.c (require_partial_symbols)
10116 (psym_expand_symtabs_matching): Update.
10117 * mdebugread.c (parse_partial_symbols): Update.
10118 * dbxread.c (dbx_end_psymtab): Update.
10119
b669c953
TT
101202019-01-15 Tom Tromey <tom@tromey.com>
10121
10122 * symtab.c (lookup_objfile_from_block)
10123 (lookup_symbol_in_objfile_symtabs)
10124 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10125 (find_line_symtab, info_sources_command)
10126 (default_collect_symbol_completion_matches_break_on)
10127 (make_source_files_completion_list): Update.
10128 * symmisc.c (print_objfile_statistics, dump_objfile)
10129 (maintenance_print_symbols, maintenance_info_symtabs)
10130 (maintenance_check_symtabs, maintenance_info_line_tables):
10131 Update.
10132 * source.c (select_source_symtab)
10133 (forget_cached_source_info_for_objfile): Update.
10134 * objfiles.h (class objfile_compunits): Remove.
10135 (struct objfile) <compunits_range>: New typedef.
10136 (compunits): New method.
10137 * objfiles.c (objfile_relocate1): Update.
10138 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10139 * maint.c (count_symtabs_and_blocks): Update.
10140 * linespec.c (iterate_over_all_matching_symtabs): Update.
10141 * cp-support.c (add_symbol_overload_list_qualified): Update.
10142 * coffread.c (coff_symtab_read): Update.
10143 * ada-lang.c (add_nonlocal_symbols)
10144 (ada_collect_symbol_completion_matches)
10145 (ada_add_global_exceptions): Update.
10146
7e955d83
TT
101472019-01-15 Tom Tromey <tom@tromey.com>
10148
10149 * progspace.h (program_space) <objfiles_safe_range>: New
10150 typedef.
10151 <objfiles_safe>: New method.
10152 * objfiles.h (class all_objfiles_safe): Remove.
10153 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10154 * jit.c (jit_inferior_exit_hook): Update.
10155
2030c079
TT
101562019-01-17 Tom Tromey <tom@tromey.com>
10157
10158 * progspace.h (program_space) <objfiles_range>: New typedef.
10159 <objfiles>: New method.
10160 <objfiles_head>: Rename from objfiles.
10161 (object_files): Update.
10162 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10163 * guile/scm-pretty-print.c
10164 (ppscm_find_pretty_printer_from_objfiles): Update.
10165 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10166 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10167 Update.
10168 * python/py-progspace.c (pspy_get_objfiles): Update.
10169 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10170 Update.
10171 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10172 (objfpy_lookup_objfile_by_build_id): Update.
10173 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10174 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10175 Update.
10176 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10177 (expand_symtab_containing_pc, lookup_objfile_from_block)
10178 (lookup_static_symbol, basic_lookup_transparent_type)
10179 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10180 (find_line_symtab, info_sources_command)
10181 (default_collect_symbol_completion_matches_break_on)
10182 (make_source_files_completion_list, find_main_name): Update.
10183 * symmisc.c (print_symbol_bcache_statistics)
10184 (print_objfile_statistics, maintenance_print_symbols)
10185 (maintenance_print_msymbols, maintenance_print_objfiles)
10186 (maintenance_info_symtabs, maintenance_check_symtabs)
10187 (maintenance_expand_symtabs, maintenance_info_line_tables):
10188 Update.
10189 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10190 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10191 (map_overlay_command, unmap_overlay_command)
10192 (simple_overlay_update, expand_symtabs_matching)
10193 (map_symbol_filenames): Update.
10194 * symfile-debug.c (set_debug_symfile): Update.
10195 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10196 Update.
10197 * source.c (select_source_symtab, forget_cached_source_info):
10198 Update.
10199 * solib.c (solib_read_symbols): Update.
10200 * solib-spu.c (append_ocl_sos): Update.
10201 * psymtab.c (maintenance_print_psymbols)
10202 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10203 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10204 * printcmd.c (info_symbol_command): Update.
10205 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10206 Update.
10207 * objfiles.h (class all_objfiles): Remove.
10208 * objfiles.c (have_partial_symbols, have_full_symbols)
10209 (have_minimal_symbols, qsort_cmp, update_section_map)
10210 (shared_objfile_contains_address_p)
10211 (default_iterate_over_objfiles_in_search_order): Update.
10212 * objc-lang.c (info_selectors_command, info_classes_command)
10213 (find_methods): Update.
10214 * minsyms.c (find_solib_trampoline_target): Update.
10215 * maint.c (maintenance_info_sections)
10216 (maintenance_translate_address, count_symtabs_and_blocks):
10217 Update.
10218 * main.c (captured_main_1): Update.
10219 * linux-thread-db.c (try_thread_db_load_from_pdir)
10220 (has_libpthread): Update.
10221 * linespec.c (iterate_over_all_matching_symtabs)
10222 (search_minsyms_for_name): Update.
10223 * jit.c (jit_find_objf_with_entry_addr): Update.
10224 * hppa-tdep.c (find_unwind_entry)
10225 (hppa_lookup_stub_minimal_symbol): Update.
10226 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10227 Update.
10228 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10229 (elf_gnu_ifunc_resolve_by_got): Update.
10230 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10231 * dwarf-index-write.c (save_gdb_index_command): Update.
10232 * cp-support.c (add_symbol_overload_list_qualified): Update.
10233 * breakpoint.c (create_overlay_event_breakpoint)
10234 (create_longjmp_master_breakpoint)
10235 (create_std_terminate_master_breakpoint)
10236 (create_exception_master_breakpoint): Update.
10237 * blockframe.c (find_pc_partial_function): Update.
10238 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10239 (ada_collect_symbol_completion_matches)
10240 (ada_add_global_exceptions): Update.
10241
776489e0
TT
102422019-01-17 Tom Tromey <tom@tromey.com>
10243
10244 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10245 declare VEC.
10246 (solib_target_parse_libraries): Change return type.
10247 (library_list_start_segment, library_list_start_section)
10248 (library_list_end_library, library_list_start_library); Update.
10249 (solib_target_free_library_list): Remove.
10250 (solib_target_parse_libraries): Remove cleanup. Change return
10251 type.
10252 (solib_target_current_sos): Update.
10253
6471e7d2
TT
102542019-01-17 Tom Tromey <tromey@bapiya>
10255
10256 * valprint.c: Replace "the the" with "the".
10257 * symtab.c: Replace "the the" with "the".
10258 * solib.c: Replace "the the" with "the".
10259 * solib-dsbt.c: Replace "the the" with "the".
10260 * linespec.c: Replace "the the" with "the".
10261 * dwarf2loc.h: Replace "the the" with "the".
10262 * amd64-windows-tdep.c: Replace "the the" with "the".
10263 * aarch64-tdep.c: Replace "the the" with "the".
10264
c24bdb02
KS
102652019-01-16 Keith Seitz <keiths@redhat.com>
10266
10267 PR gdb/23773
10268 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10269 <builder>: Rename to ..
10270 <m_builder>: ... this and make private.
10271 (dwarf2_cu::get_builder): New method. Change all users of
10272 `builder' to use this method.
10273 (dwarf2_start_symtab): Move to ...
10274 (dwarf2_cu::start_symtab): ... here. Update all callers
10275 (setup_type_unit_groups): Move to ...
10276 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10277 callers.
10278 (dwarf2_cu::reset_builder): New method.
10279 (process_full_compunit, process_full_type_unit): Use
10280 dwarf2_cu::reset_builder.
10281 (follow_die_offset): Record the ancestor CU if it is different
10282 from the followed DIE's CU.
10283 (follow_die_sig_1): Likewise.
10284
8d64371b
TT
102852019-01-15 Tom Tromey <tom@tromey.com>
10286
10287 * remote.c (class remote_state) <buf>: Now a char_vector.
10288 <buf_size>: Remove.
10289 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10290 parameter.
10291 (remote_target::getpkt_or_notif_sane_1)
10292 (remote_target::getpkt_sane)
10293 (remote_target::getpkt_or_notif_sane): Likewise.
10294 (class remote_target) <putpkt>: New overload.
10295 (remote_target::read_frame): Change type of "buf_p". Remove
10296 sizeof_p parameter.
10297 (packet_ok): New overload.
10298 (packet_check_result): New overload.
10299 Update all uses.
10300
bb277751
TT
103012019-01-14 Tom Tromey <tom@tromey.com>
10302
10303 * remote-notif.c (handle_notification, remote_notif_ack)
10304 (remote_notif_parse): Make "buf" const.
10305 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10306 const.
10307 (remote_notif_parse, remote_notif_ack, handle_notification):
10308 Likewise.
10309 * remote.c (remote_notif_stop_parse): Make "buf" const.
10310 (remote_target::remote_parse_stop_reply): Make "buf" const.
10311 (remote_notif_stop_ack): Make "buf" const.
10312
05be00a8
TT
103132019-01-14 Tom Tromey <tom@tromey.com>
10314
10315 * remote.c (remote_console_output): Make parameter const.
10316
491adeca
TT
103172019-01-14 Tom Tromey <tom@tromey.com>
10318
10319 * target-debug.h (target_debug_print_signals): Constify.
10320 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10321 * procfs.c (procfs_target::pass_signals): Update.
10322 * linux-nat.c (linux_nat_target::pass_signals): Update.
10323 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10324 * target-delegates.c: Rebuild.
10325 * remote.c (remote_target::program_signals): Update.
10326 (remote_target::pass_signals): Update.
10327 * target.c (target_pass_signals): Constify argument.
10328 (target_program_signals): Likewise.
10329 * target.h (struct target_ops) <pass_signals, program_signals>:
10330 Constify argument.
10331 (target_pass_signals, target_program_signals): Constify argument.
10332
bbd94648
TT
103332019-01-14 Tom Tromey <tom@tromey.com>
10334
10335 PR tui/28819:
10336 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10337
6f072a10
PFC
103382019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10339
10340 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10341 field.
10342 * rs6000-tdep.c: Include reggroups.h.
10343 (IS_V_ALIAS_PSEUDOREG): Define.
10344 (rs6000_register_name): Return names for the "vX" aliases.
10345 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10346 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10347 aliases. Call default_register_reggroup_p for all other
10348 pseudo-registers.
10349 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10350 New functions.
10351 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10352 Handle "vX" aliases.
10353 (v_alias_pseudo_register_collect): New function.
10354 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10355 (rs6000_gdbarch_init): Initialize "vX" aliases as
10356 pseudo-registers. Restore registration of
10357 rs6000_pseudo_register_reggroup_p with
10358 set_tdesc_pseudo_register_reggroup_p.
10359
1a782351
MF
103602019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10361
10362 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10363 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10364 set_gdbarch_num_pseudo_regs.
10365
d73cff18
PW
103662019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10367
10368 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10369 Remove arg prefixname, add do_set and do_show.
10370 Add member functions set_list and show_list.
10371 * cli/cli-style.c (class cli_style_option): Update accordingly.
10372 (style_set_list): Move to file scope.
10373 (style_show_list): Likewise.
10374 (set_style): Call help_list.
10375 (show_style): Call cmd_show_list.
10376 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10377 Update to use the new macro.
10378
60a90376
JB
103792019-10-12 Joel Brobecker <brobecker@adacore.com>
10380
10381 * ada-lang.c (_initialize_ada_language): Expand the help text
10382 for the "catch exception" command.
10383
9d7c67bf
PW
103842019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10385
10386 * symtab.c (matching_obj_sections): Initialize obj,
10387 declare it closer to its usage.
10388
7cf47dc4
TT
103892019-01-10 Tom Tromey <tom@tromey.com>
10390
10391 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10392 (basic_inf_threads_range): Remove.
10393 (inf_threads_range, inf_non_exited_threads_range)
10394 (safe_inf_threads_range): Use next_adapter.
10395
d3cb6808
KS
103962019-01-10 Keith Seitz <keiths@redhat.com>
10397
10398 PR gdb/23712
10399 PR symtab/23010
10400 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10401 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10402
63a20375
KS
104032019-01-10 Keith Seitz <keiths@redhat.com>
10404
10405 PR gdb/23712
10406 PR symtab/23010
10407 * dictionary.c (pending_to_vector): Remove.
10408 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10409 Remove _1 suffix, replacing functions of the same name. Update
10410 all callers.
10411 (dict_create_hashed, dict_create_hashed_expandable)
10412 (dict_create_linear, dict_create_linear_expandable, dict_free)
10413 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10414 Make functions static.
10415
b026f593
KS
104162019-01-10 Keith Seitz <keiths@redhat.com>
10417
10418 PR gdb/23712
10419 PR symtab/23010
10420 * dictionary.h (struct dictionary): Replace declaration with
10421 multidictionary.
10422 (dict_create_hashed, dict_create_hashed_expandable)
10423 (dict_create_linear, dict_create_linear_expandable)
10424 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10425 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10426 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10427 taking multidictionary argument.
10428 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10429 * block.h (struct block) <dict>: Change to multidictionary
10430 and rename `multidict'.
10431 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10432 symmisc.c: Update all dictionary references to multidictionary.
10433
c7748ee9
KS
104342019-01-10 Keith Seitz <keiths@redhat.com>
10435
10436 PR gdb/23712
10437 PR symtab/23010
10438 * dictionary.c: Include unordered_map.
10439 (pending_to_vector): New function.
10440 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10441 Rewrite the non-"_1" functions to take vector instead
10442 of linked list.
10443 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10444 "new" _1 versions of the same name.
10445 (multidictionary): Define.
10446 (std::hash<enum language): New definition.
10447 (collate_pending_symbols_by_language, mdict_create_hashed)
10448 (mdict_create_hashed_expandable, mdict_create_linear)
10449 (mdict_create_linear_expandable, mdict_free)
10450 (find_language_dictionary, create_new_language_dictionary)
10451 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10452 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10453 (mdict_size, mdict_empty): New functions.
10454 * dictionary.h (mdict_iterator): Define.
10455
67aa1f3c
PA
104562019-01-10 Pedro Alves <palves@redhat.com>
10457
10458 * breakpoint.c (read_uploaded_action)
10459 (create_tracepoint_from_upload): Adjust to use
10460 gdb::unique_xmalloc_ptr.
10461 * ctf.c (ctf_write_uploaded_tp):
10462 (SET_ARRAY_FIELD): Use emplace_back.
10463 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10464 * tracefile-tfile.c (tfile_write_uploaded_tp):
10465 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10466 gdb::unique_xmalloc_ptr.
10467 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10468 at_string, cond_string, cmd_strings>: Replace char pointers
10469 with gdb::unique_xmalloc_ptr.
10470
2f667667
PA
104712019-01-10 Pedro Alves <palves@redhat.com>
10472
10473 * solib-target.c (library_list_start_library): Don't xstrdup name.
10474
36cb7237
PA
104752019-01-10 Pedro Alves <palves@redhat.com>
10476
10477 * mdebugread.c (parse_partial_symbols): Use
10478 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10479
da584958
AB
104802019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10481
10482 * linux-fork.c (scoped_switch_fork_info)
10483 <~scoped_switch_fork_info>: Fix incorrect variable name.
10484
1ef8573c
AB
104852019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10486
10487 * linux-fork.c (scoped_switch_fork_info)
10488 <scoped_switch_fork_info>: Make explicit.
10489 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10490
8d7bcccb
TT
104912019-01-10 Tom Tromey <tom@tromey.com>
10492
10493 * objfiles.h (objfile::reset_psymtabs): Update.
10494 * objfiles.c (objfile::objfile): Update.
10495 * psymtab.h (psymtab_storage::obstack): Update.
10496 (psymtab_storage::m_obstack): Use gdb::optional.
10497 (class psymtab_storage): Update comment. Remove objfile
10498 parameter.
10499 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10500
b596a3c7
TT
105012019-01-10 Tom Tromey <tom@tromey.com>
10502
10503 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10504 <free_psymtabs>: Now private.
10505 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10506 (allocate_psymtab): Use new method.
10507
a9342b62
TT
105082019-01-10 Tom Tromey <tom@tromey.com>
10509
10510 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10511 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10512 * mdebugread.c (parse_partial_symbols): Use
10513 allocate_dependencies.
10514 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10515 allocate_dependencies.
10516 (process_psymtab_comp_unit_reader)
10517 (build_type_psymtab_dependencies): Likewise.
10518 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10519
5af70966
TT
105202019-01-10 Tom Tromey <tom@tromey.com>
10521
10522 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10523 PSYMBOL_SET_LANGUAGE.
10524 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10525
5923a04c
TT
105262019-01-10 Tom Tromey <tom@tromey.com>
10527
10528 * psymtab.h (psymtab_storage::obstack): New method.
10529 <m_obstack>: Rename from obstack; now private.
10530 * psymtab.c (psymtab_storage): Update.
10531 * dwarf2read.c (create_addrmap_from_index)
10532 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10533 Update.
10534
6d6a12bf
TT
105352019-01-10 Tom Tromey <tom@tromey.com>
10536
10537 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10538 * objfiles.h (objfile::reset_psymtabs): New method.
10539
d320c2b5
TT
105402019-01-10 Tom Tromey <tom@tromey.com>
10541
10542 * symmisc.c (print_symbol_bcache_statistics): Update.
10543 (print_objfile_statistics): Update.
10544 * symfile.c (reread_symbols): Update.
10545 * psymtab.h (class psymtab_storage): New.
10546 * psymtab.c (psymtab_storage): New constructor.
10547 (~psymtab_storage): New destructor.
10548 (require_partial_symbols): Update.
10549 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10550 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10551 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10552 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10553 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10554 (start_psymtab_common, end_psymtab_common)
10555 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10556 (allocate_psymtab): Update.
10557 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10558 Update.
10559 (dump_psymtab_addrmap, maintenance_print_psymbols)
10560 (maintenance_check_psymtabs): Update.
10561 (class objfile_psymtabs): Move to objfiles.h.
10562 * psympriv.h (discard_psymtab): Now inline.
10563 (psymtab_discarder::psymtab_discarder): Update.
10564 (psymtab_discarder::~psymtab_discarder): Update.
10565 (ALL_OBJFILE_PSYMTABS): Rewrite.
10566 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10567 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10568 Remove fields.
10569 <partial_symtabs>: New field.
10570 (class objfile_psymtabs): Move from psymtab.h. Update.
10571 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10572 psymbol_cache.
10573 (objfile::~objfile): Don't destroy psymbol_cache.
10574 * mdebugread.c (parse_partial_symbols): Update.
10575 * dwarf2read.c (create_addrmap_from_index)
10576 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10577 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10578 (add_partial_subprogram, dwarf2_ranges_read): Update.
10579 * dwarf-index-write.c (write_address_map)
10580 (write_one_signatured_type, recursively_write_psymbols)
10581 (class debug_names, class debug_names, write_psymtabs_to_index):
10582 Update.
10583
1d94a5a3
TT
105842019-01-10 Tom Tromey <tom@tromey.com>
10585
10586 * symtab.h (SYMBOL_SET_NAMES): Update.
10587 (symbol_set_names): Update.
10588 (MSYMBOL_SET_NAMES): Update.
10589 * symtab.c (symbol_set_names): Change argument to be an
10590 objfile_per_bfd_storage.
10591 * psymtab.c (add_psymbol_to_bcache): Update.
10592 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10593
0f14768a
TT
105942019-01-10 Tom Tromey <tom@tromey.com>
10595
10596 * symtab.c (create_demangled_names_hash): Change argument to be an
10597 objfile_per_bfd_storage.
10598 (symbol_set_names): Update.
10599
6eee24ce
TT
106002019-01-10 Tom Tromey <tom@tromey.com>
10601
10602 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10603 init_psymbol_list.
10604 * psymtab.c (init_psymbol_list): Do nothing if already called.
10605 * psympriv.h (init_psymbol_list): Add comment.
10606 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10607 init_psymbol_list.
10608 * dbxread.c (dbx_symfile_read): Unconditionally call
10609 init_psymbol_list.
10610
75aedd27
TT
106112019-01-10 Tom Tromey <tom@tromey.com>
10612
10613 * xcoffread.c (scan_xcoff_symtab): Update.
10614 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10615 "where".
10616 * mdebugread.c (parse_partial_symbols)
10617 (handle_psymbol_enumerators): Update.
10618 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10619 * dbxread.c (read_dbx_symtab): Update.
10620 * psympriv.h (psymbol_placement): New enum.
10621 (add_psymbol_to_list): Update.
10622
939652a5
TT
106232019-01-10 Tom Tromey <tom@tromey.com>
10624
10625 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10626 static_psymbols parameters.
10627 (scan_xcoff_symtab): Update.
10628 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10629 static_psymbols parameters.
10630 * psympriv.h (start_psymtab_common): Update.
10631 * mdebugread.c (parse_partial_symbols): Update.
10632 * dwarf2read.c (create_partial_symtab): Update.
10633 * dbxread.c (read_dbx_symtab): Update.
10634 (start_psymtab): Remove global_psymbols and static_psymbols
10635 parameters.
10636
baa62830
TT
106372019-01-10 Tom Tromey <tom@tromey.com>
10638
10639 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10640 * psymtab.c (allocate_psymtab): Add comment.
10641 * psympriv.h (allocate_psymtab): Add comment.
10642 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10643 initializations.
10644 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10645
0e8f53ba
TT
106462019-01-10 Tom Tromey <tom@tromey.com>
10647
10648 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10649 Don't declare.
10650 * mipsread.c: Include mdebugread.h.
10651 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10652 Declare.
10653 * elfread.c: Include mdebugread.h.
10654
b22a7c6a
TT
106552019-01-09 Tom Tromey <tom@tromey.com>
10656
10657 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10658 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10659 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10660 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10661 (psym_lookup_symbol, psym_find_last_source_symtab)
10662 (psym_forget_cached_source_info, psym_print_stats)
10663 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10664 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10665 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10666 (psym_find_compunit_symtab_by_address)
10667 (maintenance_print_psymbols, maintenance_info_psymtabs)
10668 (maintenance_check_psymtabs): Use ranged for.
10669 * psymtab.h (class objfile_psymtabs): New.
10670 (require_partial_symbols): Return objfile_psymtabs.
10671 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10672
3b9d3ac2
TT
106732019-01-09 Tom Tromey <tom@tromey.com>
10674
10675 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10676 (find_pc_mapped_section, list_overlays_command)
10677 (map_overlay_command, unmap_overlay_command)
10678 (simple_overlay_update): Use all_objfiles.
10679 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10680 * printcmd.c (info_symbol_command): Use all_objfiles.
10681 * objfiles.h (ALL_OBJSECTIONS): Remove.
10682 * maint.c (maintenance_translate_address): Use all_objfiles.
10683 * gcore.c (gcore_create_callback): Use all_objfiles.
10684 (objfile_find_memory_regions): Likewise.
10685
8b31193a
TT
106862019-01-09 Tom Tromey <tom@tromey.com>
10687
10688 * symtab.c (find_line_symtab, info_sources_command)
10689 (make_source_files_completion_list): Use objfile_compunits.
10690 * source.c (select_source_symtab): Use objfile_compunits.
10691 * objfiles.h (struct objfile): Update comment.
10692 (ALL_OBJFILES): Remove.
10693 (ALL_FILETABS): Remove.
10694 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10695 objfile_compunits.
10696
d5da8b3c
TT
106972019-01-09 Tom Tromey <tom@tromey.com>
10698
10699 * symmisc.c (print_objfile_statistics, dump_objfile)
10700 (maintenance_print_symbols): Use compunit_filetabs.
10701 * source.c (forget_cached_source_info_for_objfile): Use
10702 compunit_filetabs.
10703 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10704 (ALL_FILETABS): Use compunit_filetabs.
10705 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10706 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10707
5accd1a0
TT
107082019-01-09 Tom Tromey <tom@tromey.com>
10709
10710 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10711 (compunit_filetabs): New.
10712 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10713 compunit_filetabs.
10714 (info_sources_command, make_source_files_completion_list): Remove
10715 declaration.
10716 * symmisc.c (print_objfile_statistics, dump_objfile)
10717 (maintenance_print_symbols): Remove declaration.
10718 (maintenance_info_symtabs): Use compunit_filetabs.
10719 (maintenance_info_line_tables): Likewise.
10720 * source.c (select_source_symtab): Change local variable name.
10721 (forget_cached_source_info_for_objfile): Remove declaration.
10722 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10723 * objfiles.c (objfile_relocate1): Remove declaration.
10724 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10725 declaration.
10726 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10727 * coffread.c (coff_symtab_read): Remove declaration.
10728 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10729 compunit_filetabs.
10730
d8aeb77f
TT
107312019-01-09 Tom Tromey <tom@tromey.com>
10732
10733 * symtab.c (lookup_objfile_from_block)
10734 (find_pc_sect_compunit_symtab, search_symbols)
10735 (default_collect_symbol_completion_matches_break_on): Use
10736 objfile_compunits.
10737 * objfiles.h (ALL_COMPUNITS): Remove.
10738 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10739 * cp-support.c (add_symbol_overload_list_qualified): Use
10740 objfile_compunits.
10741 * ada-lang.c (ada_collect_symbol_completion_matches)
10742 (ada_add_global_exceptions): Use objfile_compunits.
10743
592553c4
TT
107442019-01-09 Tom Tromey <tom@tromey.com>
10745
10746 * source.c (select_source_symtab)
10747 (forget_cached_source_info_for_objfile): Remove declaration.
10748 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10749 declaration.
10750 * maint.c (count_symtabs_and_blocks): Remove declaration.
10751 * cp-support.c (add_symbol_overload_list_qualified): Remove
10752 declaration.
10753 * coffread.c (coff_symtab_read): Remove declaration.
10754 * symtab.c (lookup_symbol_in_objfile_symtabs)
10755 (basic_lookup_transparent_type_1): Use objfile_compunits.
10756 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10757 (info_sources_command, search_symbols)
10758 (default_collect_symbol_completion_matches_break_on)
10759 (make_source_files_completion_list): Remove declaration.
10760 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10761 (ada_collect_symbol_completion_matches)
10762 (ada_add_global_exceptions): Remove declaration.
10763 * linespec.c (iterate_over_all_matching_symtabs): Use
10764 objfile_compunits.
10765 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10766 (class objfile_compunits): New.
10767 (ALL_COMPUNITS): Use objfile_compunits.
10768 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10769 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10770 objfile_compunits.
10771 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10772
5325b9bf
TT
107732019-01-09 Tom Tromey <tom@tromey.com>
10774
10775 * symtab.c (search_symbols)
10776 (default_collect_symbol_completion_matches_break_on): Use
10777 objfile_msymbols.
10778 * ada-lang.c (ada_lookup_simple_minsym)
10779 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10780 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10781 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10782 objfile_msymbols.
10783 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10784 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10785 * objc-lang.c (find_methods): Use objfile_msymbols.
10786 (info_selectors_command, info_classes_command): Likewise.
10787 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10788 * objfiles.h (class objfile_msymbols): New.
10789 (ALL_OBJFILE_MSYMBOLS): Remove.
10790 (ALL_MSYMBOLS): Remove.
10791
cac85af2
TT
107922019-01-09 Tom Tromey <tom@tromey.com>
10793
10794 * common/next-iterator.h (next_adapter): Add Iterator template
10795 parameter.
10796 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10797 (class all_objfiles_safe): New.
10798 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10799 * objfiles.c (put_objfile_before): Update comment.
10800 (add_separate_debug_objfile): Likewise.
10801 (free_all_objfiles): Use all_objfiles_safe.
10802 (objfile_purge_solibs): Likewise.
10803
aed57c53
TT
108042019-01-09 Tom Tromey <tom@tromey.com>
10805
10806 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10807 (expand_symtab_containing_pc, lookup_static_symbol)
10808 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10809 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10810 all_objfiles.
10811 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10812 * breakpoint.c (create_overlay_event_breakpoint)
10813 (create_longjmp_master_breakpoint)
10814 (create_std_terminate_master_breakpoint)
10815 (create_exception_master_breakpoint): Use all_objfiles.
10816 * linux-thread-db.c (try_thread_db_load_from_pdir)
10817 (has_libpthread): Use all_objfiles.
10818 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10819 * linespec.c (iterate_over_all_matching_symtabs)
10820 (search_minsyms_for_name): Use all_objfiles.
10821 * maint.c (maintenance_info_sections): Use all_objfiles.
10822 * main.c (captured_main_1): Use all_objfiles.
10823 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10824 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10825 * guile/scm-pretty-print.c
10826 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10827 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10828 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10829 (maintenance_print_msymbols): Use all_objfiles.
10830 * source.c (select_source_symtab): Use all_objfiles.
10831 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10832 * symfile.c (remove_symbol_file_command)
10833 (expand_symtabs_matching, map_symbol_filenames): Use
10834 all_objfiles.
10835 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10836 all_objfiles.
10837 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10838 * objc-lang.c (find_methods): Use all_objfiles.
10839 * objfiles.c (have_partial_symbols, have_full_symbols)
10840 (have_minimal_symbols, qsort_cmp)
10841 (default_iterate_over_objfiles_in_search_order): Use
10842 all_objfiles.
10843 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10844 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10845 (maintenance_check_psymtabs): Use all_objfiles.
10846 (ALL_PSYMTABS): Remove.
10847 * compile/compile-object-run.c (do_module_cleanup): Use
10848 all_objfiles.
10849 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10850 * cp-support.c (add_symbol_overload_list_qualified): Use
10851 all_objfiles.
10852 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10853 Use all_objfiles.
10854 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10855 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10856 all_objfiles.
10857 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10858 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10859 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10860 Uses all_objfiles.
10861 * solib.c (solib_read_symbols): Use all_objfiles
10862
99d89cde
TT
108632019-01-09 Tom Tromey <tom@tromey.com>
10864
10865 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10866 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10867 all_objfiles.
10868 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10869 * symmisc.c (print_symbol_bcache_statistics)
10870 (print_objfile_statistics, maintenance_print_objfiles)
10871 (maintenance_info_symtabs, maintenance_check_symtabs)
10872 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10873 all_objfiles.
10874 * source.c (forget_cached_source_info): Use all_objfiles.
10875 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10876 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10877 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10878 * objfiles.c (update_section_map): Use all_objfiles.
10879 (shared_objfile_contains_address_p): Likewise.
10880 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10881 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10882
21708325
TT
108832019-01-09 Tom Tromey <tom@tromey.com>
10884
10885 * common/next-iterator.h: New file.
10886 * objfiles.h (class all_objfiles): New.
10887 (struct objfile_iterator): New.
10888
669e09f6
PW
108892019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10890
10891 * NEWS: Move the description of the changed "frame", "select-frame",
10892 and "info frame" commands to the Changed commands section.
10893
041be526
SM
108942019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10895
10896 * gdbtypes.c (check_stub_method_group): Remove handling of old
10897 mangling schemes.
10898 * linespec.c (find_methods): Likewise.
10899 * stabsread.c (read_member_functions): Likewise.
10900 * valops.c (search_struct_method): Likewise.
10901 (value_struct_elt_for_reference): Likewise.
10902 * NEWS: Mention this change.
10903
0e2a2133
AB
109042019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10905
10906 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10907 print_source_lines.
10908 * source.c (print_source_lines_base): Update line number check.
10909 (print_source_lines): New function.
10910 (source_lines_range::source_lines_range): New function.
10911 * source.h (class source_lines_range): New class.
10912 (print_source_lines): New declaration.
10913
1055a3b4
PW
109142019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10915
10916 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10917
cfeadda5
TT
109182019-01-08 Tom Tromey <tom@tromey.com>
10919 Simon Marchi <simon.marchi@ericsson.com>
10920
10921 PR gdb/24060
10922 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10923 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10924 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10925 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10926 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10927 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10928
583068ca
AB
109292019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10930
10931 * source.c (select_source_symtab): Move header comment to
10932 declaration in source.h.
10933 (forget_cached_source_info_for_objfile): Likewise.
10934 (forget_cached_source_info): Likewise.
10935 (identify_source_line): Likewise.
10936 * source.h (identify_source_line): Move declaration from symtab.h
10937 and add comment from source.c
10938 (print_source_lines): Likewise.
10939 (forget_cached_source_info_for_objfile): Likewise.
10940 (forget_cached_source_info): Likewise.
10941 (select_source_symtab): Likewise.
10942 (enum print_source_lines_flag): Move definition from symtab.h.
10943 * symtab.h (identify_source_line): Move declaration to source.h.
10944 (print_source_lines): Likewise.
10945 (forget_cached_source_info_for_objfile): Likewise.
10946 (forget_cached_source_info): Likewise.
10947 (select_source_symtab): Likewise.
10948 (enum print_source_lines_flag): Move definition to source.h.
10949 * tui/tui-hooks.c: Add 'source.h' include.
10950
ec98a4ad
AB
109512019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10952
10953 * source.c (print_source_lines_base): Handle requests to print
10954 reverse line number sequences, and guard against empty lines
10955 string.
10956
62ea19c1
AB
109572019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10958
10959 * source.c (print_source_lines_base): Fix skip of '\r' if next
10960 character is '\n'.
10961
9d30e1fd
TT
109622019-01-06 Tom Tromey <tom@tromey.com>
10963
10964 * c-exp.y (struct c_parse_state) <macro_original_text,
10965 expansion_obstack>: New member.
10966 (macro_original_text, expansion_obstack): Remove globals.
10967 (scan_macro_expansion, scanning_macro_expansion)
10968 (finished_macro_expansion): Update.
10969 (scan_macro_cleanup): Remove.
10970 (yylex, c_parse): Update.
10971
c65bac38
TT
109722019-01-06 Tom Tromey <tom@tromey.com>
10973
10974 * c-exp.y (struct c_parse_state) <strings>: New member.
10975 (operator_stoken): Update.
10976
02e12e38
TT
109772019-01-06 Tom Tromey <tom@tromey.com>
10978
10979 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10980 (union type_stack_elt) <typelist_val>: Now a pointer to
10981 std::vector.
10982 (type_stack_cleanup): Don't declare.
10983 (push_typelist): Update.
10984 * parse.c (pop_typelist): Return a std::vector.
10985 (push_typelist): Take a std::vector.
10986 (follow_types): Update. Do not free args.
10987 (type_stack_cleanup): Remove.
10988 * c-exp.y (struct c_parse_state): New.
10989 (cpstate): New global.
10990 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10991 (nonempty_typelist): Update.
10992 (func_mod): Create a new vector.
10993 (c_parse): Create a c_parse_state.
10994 (check_parameter_typelist): Do not delete params.
10995 (function_method): Update. Do not delete type_list.
10996
f097f5ad
TT
109972019-01-06 Tom Tromey <tom@tromey.com>
10998
10999 PR gdb/28155:
11000 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11001 check_typedef.
11002 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11003 (print_return_value): Likewise.
11004
d2adf9f1
TT
110052019-01-05 Tom Tromey <tom@tromey.com>
11006
11007 * contrib/cleanup_check.py: Remove.
11008 * contrib/gcc-with-excheck: Remove.
11009 * contrib/exsummary.py: Remove.
11010 * contrib/excheck.py: Remove.
11011
2eab46b1
JB
110122019-01-05 Joel Brobecker <brobecker@adacore.com>
11013
11014 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11015 NULL. Initialize tpprev to NULL instead of assigning it
11016 to NULL on the next statement.
11017 * windows-nat.c (windows_delete_thread): Remove check for
11018 main_thread_id before printing thread exit notifications.
11019 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11020 Remove thread ID check against main_thread_id.
11021 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11022 windows_delete_thread.
11023 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11024
48c5e7e2
TT
110252019-01-04 Tom Tromey <tom@tromey.com>
11026
11027 * compile/compile.c (_initialize_compile): Use upper case for
11028 metasyntactic variables.
11029 * symmisc.c (_initialize_symmisc): Use upper case for
11030 metasyntactic variables.
11031 * psymtab.c (_initialize_psymtab): Use upper case for
11032 metasyntactic variables.
11033 * demangle.c (demangle_command): Use upper case for metasyntactic
11034 variables.
11035 (_initialize_demangler): Likewise.
11036 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11037 variables.
11038
986041cd
TT
110392019-01-03 Tom Tromey <tom@tromey.com>
11040
11041 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11042
7c711119
TT
110432019-01-03 Tom Tromey <tom@tromey.com>
11044
11045 * python/py-symtab.c (salpy_str): Update.
11046 (struct salpy_sal_object) <symtab>: Now a PyObject.
11047 (salpy_dealloc): Update.
11048 (del_objfile_sal): Use gdbpy_ref.
11049
1b20edf0
TT
110502019-01-03 Tom Tromey <tom@tromey.com>
11051
11052 * python/py-type.c (convert_field): Use new_reference. Return
11053 gdbpy_ref.
11054 (make_fielditem): Return gdbpy_ref.
11055 (typy_fields): Update.
11056 (typy_getitem): Update.
11057 (field_name): Return gdbpy_ref. Use new_reference.
11058 (typy_iterator_iternext): Update.
11059
ea41325b
TT
110602019-01-03 Tom Tromey <tom@tromey.com>
11061
11062 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11063
2a3c71d6
TT
110642019-01-03 Tom Tromey <tom@tromey.com>
11065
11066 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11067 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11068 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11069 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11070 (pspy_set_type_printers): Likewise.
11071 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11072 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11073 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11074 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11075 (objfpy_set_type_printers): Likewise.
11076
5c329e6a
TT
110772019-01-03 Tom Tromey <tom@tromey.com>
11078
11079 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11080 (gdbpy_print_stack): Use gdbpy_err_fetch.
11081 * python/python-internal.h (class gdbpy_err_fetch): New class.
11082 (class gdbpy_enter) <m_error_type, m_error_value,
11083 m_error_traceback>: Remove.
11084 <m_error>: New member.
11085 (gdbpy_exception_to_string): Don't declare.
11086 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11087 * python/py-value.c (convert_value_from_python): Use
11088 gdbpy_err_fetch.
11089 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11090 gdbpy_exception_to_string.
11091 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11092 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11093 gdbpy_err_fetch.
11094
169bb27b
AB
110952019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11096
11097 * linux-nat.c (delete_lwp_cleanup): Delete.
11098 (struct lwp_deleter): New struct.
11099 (lwp_info_up): New typedef.
11100 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11101 lwp_info_up.
11102
a07c8880
AB
111032019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11104
11105 * linux-fork.c (class scoped_switch_fork_info): New class.
11106 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11107
26089c49
AB
111082019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11109
11110 * valops.c (find_overload_match): Remove use of null_cleanup, and
11111 calls to do_cleanups.
11112
06d3e5b0
AB
111132019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11114
11115 * compile/compile-cplus-types.c
11116 (compile_cplus_instance::decl_name): Handle changes to
11117 cp_func_name.
11118 * cp-support.c (cp_func_name): Update header comment, update
11119 return type.
11120 * cp-support.h (cp_func_name): Update return type in declaration.
11121 * valops.c (find_overload_match): Move temp_func local to top
11122 level of function and change its type. Use temp_func to hold and
11123 delete temporary string obtained from cp_func_name.
11124
66644cd3
AB
111252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11126
11127 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11128 gdb::char_vector, remove cleanup, and update uses of `msg`.
11129
592d8c0a
JW
111302019-01-03 Jim Wilson <jimw@sifive.com>
11131
11132 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11133
c55d06ec
TT
111342019-01-02 Tom Tromey <tom@tromey.com>
11135
11136 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11137 (tdesc_parse_xml): Remove cleanups.
11138 * target-descriptions.h (make_cleanup_free_target_description):
11139 Don't declare.
11140 (target_desc_deleter): New struct.
11141 (target_desc_up): New typedef.
11142 * target-descriptions.c (target_desc_deleter::operator()): Rename
11143 from free_target_description.
11144 (make_cleanup_free_target_description): Remove.
11145
3a6ae42d
TT
111462019-01-02 Tom Tromey <tom@tromey.com>
11147
11148 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11149 constructor, destructor.
11150 (linespec_parser): Remove typedef.
11151 (~linespec_parser): Rename from linespec_parser_delete.
11152 (linespec_lex_to_end, linespec_complete_label)
11153 (linespec_complete): Update.
11154 (decode_line_full): Remove cleanups.
11155 (decode_line_1): Update.
11156
61fd3e73
TT
111572019-01-02 Tom Tromey <tom@tromey.com>
11158
11159 * python/python-internal.h (inferior_to_inferior_object): Change
11160 return type.
11161 * python/py-exitedevent.c (create_exited_event_object): Update.
11162 * python/py-inferior.c (inferior_to_inferior_object): Return
11163 gdbpy_ref.
11164 (python_new_inferior, python_inferior_deleted)
11165 (thread_to_thread_object, delete_thread_object)
11166 (build_inferior_list, gdbpy_selected_inferior): Update.
11167 * python/py-infthread.c (create_thread_object): Update. Also fail
11168 if inferior_to_inferior_object fails.
11169
d20172fc
SM
111702019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11171
11172 * inferior.h (class inferior) <displaced_step_state>: New field.
11173 * infrun.h (struct displaced_step_state): Move here from
11174 infrun.c. Initialize fields, add constructor.
11175 <inf>: Remove field.
11176 <reset>: New method.
11177 * infrun.c (struct displaced_step_inferior_state): Move to
11178 infrun.h.
11179 (displaced_step_inferior_states): Remove.
11180 (get_displaced_stepping_state): Adust.
11181 (displaced_step_in_progress_any_inferior): Adjust.
11182 (displaced_step_in_progress_thread): Adjust.
11183 (displaced_step_in_progress): Adjust.
11184 (add_displaced_stepping_state): Remove.
11185 (get_displaced_step_closure_by_addr): Adjust.
11186 (remove_displaced_stepping_state): Remove.
11187 (infrun_inferior_exit): Call displaced_step_state.reset.
11188 (use_displaced_stepping): Don't check for NULL.
11189 (displaced_step_prepare_throw): Call
11190 get_displaced_stepping_state.
11191 (displaced_step_fixup): Don't check for NULL.
11192 (prepare_for_detach): Don't check for NULL.
11193
e3319240
PW
111942019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11195
11196 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11197 in case of call that did not complete.
11198
5d36dfb9
AU
111992019-01-02 Andrey Utkin <autkin@undo.io>
11200
11201 * symfile.c (find_separate_debug_file): Fix search of debug files for
11202 remote debuggee.
11203
8833fbf0
TT
112042019-01-02 Tom Tromey <tom@tromey.com>
11205
11206 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11207 indentation.
11208 * python/py-frame.c (frapy_older): Remove cast.
11209 (frapy_newer): Likewise.
11210 * python/py-breakpoint.c (local_setattro): Remove cast.
11211 * python/py-arch.c (archpy_name): Remove local variable.
11212 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11213
4ada3dfd
JB
112142019-01-02 Joel Brobecker <brobecker@adacore.com>
11215
11216 * unittests/basic_string_view/element_access/char/empty.cc:
11217 Fix year range in copyright header.
11218
113b7b81
AB
112192019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11220
11221 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11222 Delete.
11223 <operator==>: Update with for removed field.
11224 <hash>: Likewise.
11225 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11226 <isa_features>: ...this.
11227 <abi_features>: New field.
11228 (riscv_isa_flen): Update comment.
11229 (riscv_abi_xlen): New declaration.
11230 (riscv_abi_flen): New declaration.
11231 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11232 isa_features.
11233 (riscv_abi_xlen): New function.
11234 (riscv_isa_flen): Update to get answer from isa_features.
11235 (riscv_abi_flen): New function.
11236 (riscv_has_fp_abi): Update to get answer from abi_features.
11237 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11238 xlen and flen.
11239 (riscv_call_info) <xlen, flen>: Update comment.
11240 (riscv_call_arg_struct): Remove invalid assertions
11241 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11242 is removed.
11243 (riscv_gdbarch_init): Gather isa features and abi features
11244 separately, ensure both match on the gdbarch when reusing an old
11245 gdbarch. Relax an error check to allow 32-bit abi float to run on
11246 a target with 64-bit float hardware.
11247
b18ca514
PW
112482019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11249
11250 * source.c (search_command_helper): Stop reverse search
11251 when line 1 has been searched.
11252
ec70d8db
PW
112532019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11254
11255 * record-full.c (record_full_base_target::close): Rewrite
11256 record_full_core_buf_list free logic.
11257
5b38f9c1
PW
112582019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11259
11260 * break-catch-syscall.c (print_one_catch_syscall): xfree
11261 the last text.
11262
66d91b39
JB
112632019-01-01 Joel Brobecker <brobecker@adacore.com>
11264
11265 * top.c (print_gdb_version): Update Copyright year in version
11266 message.
11267
42a4f53d
JB
112682019-01-01 Joel Brobecker <brobecker@adacore.com>
11269
11270 Update copyright year range in all GDB files.
11271
7e955d83 112722019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11273
5bbd631d 11274 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11275
5bbd631d 11276For older changes see ChangeLog-2018.
c906108c
SS
11277\f
11278Local Variables:
11279mode: change-log
11280left-margin: 8
11281fill-column: 74
11282version-control: never
57da7796 11283coding: utf-8
c906108c 11284End:
5bbd631d 11285
This page took 2.782682 seconds and 4 git commands to generate.