]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Don't track the contents of the execution info window
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5216580d
TT
12019-08-13 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-winsource.h (struct tui_exec_info_window)
4 <~tui_exec_info_window, maybe_allocate_content, get_content,
5 m_content>: Remove.
6 (struct tui_source_window_base) <set_exec_info_content,
7 show_exec_info_content>: Don't declare.
8 * tui/tui-winsource.c
9 (tui_exec_info_window::maybe_allocate_content): Remove.
10 (tui_source_window_base::update_exec_info): Rename from
11 set_exec_info_content.
12 (tui_source_window_base::show_exec_info_content)
13 (tui_source_window_base::update_exec_info): Remove.
14
93858ad3
TT
152019-08-13 Tom Tromey <tom@tromey.com>
16
17 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
18 declare.
19 * tui/tui-winsource.c (tui_update_source_window_as_is)
20 (tui_update_source_windows_with_addr, tui_erase_source_content):
21 Update.
22 (tui_clear_exec_info_content): Remove.
23
e321e7ce
TT
242019-08-13 Tom Tromey <tom@tromey.com>
25
26 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
27 declare.
28 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
29 call tui_erase_exec_info_content.
30 (tui_clear_exec_info_content): Rename from
31 tui_erase_exec_info_content.
32 (tui_clear_exec_info_content): Delete.
33
8270ac62
TT
342019-08-13 Tom Tromey <tom@tromey.com>
35
36 * tui/tui-winsource.h (struct tui_source_window_base)
37 <show_exec_info_content>: Declare.
38 (tui_show_exec_info_content): Don't declare.
39 * tui/tui-winsource.c
40 (tui_source_window_base::show_exec_info_content): Rename from
41 tui_show_exec_info_content.
42 (tui_source_window_base::update_exec_info): Update.
43
7b56485d
TT
442019-08-13 Tom Tromey <tom@tromey.com>
45
46 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
47 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
48 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
49 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
50 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
51 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
52 ... here.
53
7ba913dc
TT
542019-08-13 Tom Tromey <tom@tromey.com>
55
56 * tui/tui-winsource.h (struct tui_source_window_base)
57 <update_exec_info>: Declare.
58 (tui_update_exec_info): Don't declare.
59 * tui/tui-winsource.c (tui_update_source_window_as_is)
60 (tui_source_window_base::refresh_all)
61 (tui_update_all_breakpoint_info): Update.
62 (tui_source_window_base::update_exec_info): Rename from
63 tui_update_exec_info.
64 * tui/tui-stack.c (tui_show_frame_info): Update.
65
37a4a131
TT
662019-08-13 Tom Tromey <tom@tromey.com>
67
68 * tui/tui-winsource.h (struct tui_source_window_base)
69 <set_exec_info_content>: Declare.
70 (tui_set_exec_info_content): Don't declare.
71 * tui/tui-winsource.c
72 (tui_source_window_base::set_exec_info_content): Rename from
73 tui_set_exec_info_content.
74 (tui_update_exec_info): Update.
75
0bd27e07
TT
762019-08-13 Tom Tromey <tom@tromey.com>
77
78 * tui/tui-winsource.h (struct tui_source_window_base)
79 <show_source_content>: Declare.
80 (tui_show_source_content): Don't declare.
81 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
82 (tui_source_window_base::show_source_content): Rename from
83 tui_show_source_content.
84 (tui_source_window_base::refresh_all): Update.
85 * tui/tui-layout.c (show_source_disasm_command)
86 (show_source_or_disasm_and_command): Update.
87
b4ef5aeb
TT
882019-08-13 Tom Tromey <tom@tromey.com>
89
90 * tui/tui-winsource.c (tui_erase_source_content)
91 (tui_show_source_content, tui_source_window_base::refresh_all):
92 Update.
93 * tui/tui-wingeneral.h
94 (tui_check_and_display_highlight_if_needed): Don't declare.
95 * tui/tui-wingeneral.c
96 (tui_win_info::check_and_display_highlight_if_needed): Rename from
97 check_and_display_highlight_if_needed.
98 * tui/tui-win.c (tui_rehighlight_all)
99 (tui_win_info::make_visible_with_new_height): Update.
100 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
101 (tui_data_window::erase_data_content)
102 (tui_data_window::display_all_data): Update.
103 * tui/tui-data.h (struct tui_win_info)
104 <check_and_display_highlight_if_needed>: Declare.
105
fede5273
TT
1062019-08-13 Tom Tromey <tom@tromey.com>
107
108 * tui/tui-win.c (tui_resize_all): Call
109 tui_delete_invisible_windows.
110 * tui/tui-layout.c (show_layout): Call
111 tui_delete_invisible_windows.
112 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
113 * tui/tui-data.c (tui_delete_invisible_windows): New function.
114
22c3f490
TT
1152019-08-13 Tom Tromey <tom@tromey.com>
116
117 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
118 tui_add_win_to_layout.
119
16cb7910
TT
1202019-08-13 Tom Tromey <tom@tromey.com>
121
122 * tui/tui-layout.h (tui_default_win_height): Don't declare.
123 * tui/tui-layout.c (tui_default_win_height): Now static.
124
cc0c3ffb
TT
1252019-08-13 Tom Tromey <tom@tromey.com>
126
127 * tui/tui-layout.c (show_layout): Unify all layout cases into a
128 single switch.
129 (show_source_disasm_command, show_source_or_disasm_and_command):
130 Don't check current layout.
131
3f3ffe54
TT
1322019-08-13 Tom Tromey <tom@tromey.com>
133
134 * tui/tui-wingeneral.c (make_all_visible): Remove.
135 (tui_make_all_invisible): Simplify.
136 * tui/tui-layout.c (tui_make_all_invisible): Move from
137 tui-wingeneral.c; simplify.
138 (show_layout): Hoist call to tui_make_all_invisible.
139 (show_data): Don't call tui_make_all_invisible.
140
69258091
TT
1412019-08-13 Tom Tromey <tom@tromey.com>
142
143 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
144 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
145
62cf57fe
TT
1462019-08-13 Tom Tromey <tom@tromey.com>
147
148 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
149 tui-data.c.
150 (show_source_disasm_command, show_data)
151 (show_source_or_disasm_and_command): Don't use
152 tui_set_current_layout_to.
153 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
154 * tui/tui-data.c (current_layout, tui_current_layout): Move to
155 tui-layout.c.
156 (tui_set_current_layout_to): Remove.
157
2afade5d
TT
1582019-08-13 Tom Tromey <tom@tromey.com>
159
160 * tui/tui-layout.c (tui_set_layout): Update.
161 * tui/tui-data.h (struct tui_layout_def): Remove.
162 (tui_layout_def): Don't declare.
163 * tui/tui-data.c (layout_def): Remove.
164 (tui_layout_def): Remove.
165
a3504e96
TT
1662019-08-13 Tom Tromey <tom@tromey.com>
167
168 * tui/tui-winsource.h (struct tui_source_window_base)
169 <clear_detail>: No longer "override".
170 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
171 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
172 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
173 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
174 Remove.
175 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
176
29c92911
TT
1772019-08-13 Tom Tromey <tromey@adacore.com>
178
179 * tracepoint.c: Don't include readline.h or history.h.
180
86c6b807
TT
1812019-08-12 Tom Tromey <tom@tromey.com>
182
183 * configure: Rebuild.
184 * configure.ac: Check for readline 7.
185 * NEWS: Mention readline 7 requirement.
186 * README: Update.
187
5db2718c
TT
1882019-08-12 Tom Tromey <tom@tromey.com>
189
190 * mingw-hdep.c (gdb_select): Remove readline hack.
191
dac36daf
PFC
1922019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
193
194 * blockframe.c (find_pc_partial_function): Set *block to nullptr
195 when the function fails.
196
1022c627
AA
1972019-08-09 Andreas Arnez <arnez@linux.ibm.com>
198
199 * s390-tdep.c (s390_type_align): New function.
200 (s390_gdbarch_init): Set it as type_align gdbarch method.
201
eba4caf2
TV
2022019-08-09 Tom de Vries <tdevries@suse.de>
203
204 PR gdb/24591
205 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
206 pc_low with relocation offset.
207
123cd851
TT
2082019-08-07 Tom Tromey <tromey@adacore.com>
209
210 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
211 (print_frame_args): Update.
212 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
213 Update.
214 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
215 * frame.h (struct frame_arg): Add initializers.
216 <error>: Now a unique_xmalloc_ptr.
217
3d31bc39
AH
2182019-08-07 Alan Hayward <alan.hayward@arm.com>
219
220 * NEWS: Expand the Pointer Authentication entry.
221 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
222 (aarch64_frame_unmask_lr): ... to this.
223 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
224 Call aarch64_frame_unmask_lr.
225 * frame.c (struct frame_info): Add "masked" variable.
226 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
227 (fprint_frame): Check for masked pc.
228 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
229 declarations.
230 * python/py-framefilter.c (py_print_frame): Check for masked pc.
231 * stack.c (print_frame): Check for masked pc.
232
0cf9feb9
TT
2332019-08-06 Tom Tromey <tom@tromey.com>
234
235 * stabsread.c (patch_block_stabs, read_one_struct_field)
236 (read_enum_type): Use obstack_strndup.
237 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
238 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
239 * dwarf2read.c (guess_full_die_structure_name)
240 (anonymous_struct_prefix): Use obstack_strndup.
241 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
242 * c-exp.y (yylex): Use obstack_strndup.
243 * ada-exp.y (write_object_renaming, write_ambiguous_var)
244 (write_var_or_type): Use obstack_strndup.
245
efba19b0
TT
2462019-08-06 Tom Tromey <tom@tromey.com>
247
248 * symfile.c (reread_symbols): Use obstack_strdup.
249 * stabsread.c (read_type): Use obstack_strdup.
250 * gdb_obstack.h (obstack_strdup): New overload.
251 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
252 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
253 (dwarf2_canonicalize_name): Use obstack_strdup.
254 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
255 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
256 Use obstack_strdup.
257
f25102f7
TT
2582019-08-06 Tom Tromey <tom@tromey.com>
259
260 * gdb_obstack.h (obstack_strdup): Define.
261 * gdb_obstack.c (obstack_strdup): Don't define.
262
021887d8
TT
2632019-08-06 Tom Tromey <tom@tromey.com>
264
265 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
266 obstack_strdup.
267 * typeprint.c (typedef_hash_table::find_global_typedef): Use
268 obstack_strdup.
269 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
270 * stabsread.c (common_block_start): Use obstack_strdup.
271 * objfiles.c (set_objfile_main_name, objfile): Use
272 obstack_strdup.
273 * namespace.c (add_using_directive): Use obstack_strdup.
274 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
275 * jit.c (finalize_symtab): Use obstack_strdup.
276 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
277 (guess_partial_die_structure_name, partial_die_info::fixup)
278 (dwarf2_name): Use obstack_strdup.
279 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
280 obstack_strdup.
281 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
282 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
283 obstack_strdup.
284 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
285
d2834edc
PW
2862019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
287
288 * unittests/help-doc-selftests.c: New file.
289 * Makefile.in: Add the new file.
290
590042fc
PW
2912019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
292
293 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
294 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
295 the full first line, except when FOR_VALUE_PREFIX. In this case,
296 the trailing '.' is not output, and the first character is uppercased.
297 (print_help_for_command): Update call to print_doc_line.
298 (print_doc_of_command): Likewise.
299 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
300 * cli/cli-option.c (append_indented_doc): Do not append newline.
301 (build_help_option): Append newline after first appended_indented_doc
302 only if a second call is done.
303 (build_help): Append 2 new lines before each option, except the first
304 one.
305 * compile/compile.c (_initialize_compile): Add new lines after
306 %OPTIONS%, when not at the end of the help.
307 Change help doc or code
308 producing the help doc to respect the invariants.
309 * maint-test-options.c (_initialize_maint_test_options): Likewise.
310 Also removed the new line after 'Options:', as all other commands
311 do not put an empty line between 'Options:' and the first option.
312 * printcmd.c (_initialize_printcmd): Likewise.
313 * stack.c (_initialize_stack): Likewise.
314 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
315 incorrectly telling COMMAND is optional.
316 * ada-lang.c (_initialize_ada_language): Change help doc or code
317 producing the help doc to respect the invariants.
318 * ada-tasks.c (_initialize_ada_tasks): Likewise.
319 * breakpoint.c (_initialize_breakpoint): Likewise.
320 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
321 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
322 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
323 * cli/cli-style.c (cli_style_option::add_setshow_commands,
324 _initialize_cli_style): Likewise.
325 * corelow.c (core_target_info): Likewise.
326 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
327 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
328 * filesystem.c (_initialize_filesystem): Likewise.
329 * frame.c (_initialize_frame): Likewise.
330 * gnu-nat.c (add_task_commands): Likewise.
331 * infcall.c (_initialize_infcall): Likewise.
332 * infcmd.c (_initialize_infcmd): Likewise.
333 * interps.c (_initialize_interpreter): Likewise.
334 * language.c (_initialize_language): Likewise.
335 * linux-fork.c (_initialize_linux_fork): Likewise.
336 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
337 * maint.c (_initialize_maint_cmds): Likewise.
338 * memattr.c (_initialize_mem): Likewise.
339 * printcmd.c (_initialize_printcmd): Likewise.
340 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
341 _RegEx): Likewise.
342 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
343 * record-btrace.c (_initialize_record_btrace): Likewise.
344 * record-full.c (_initialize_record_full): Likewise.
345 * record.c (_initialize_record): Likewise.
346 * regcache-dump.c (_initialize_regcache_dump): Likewise.
347 * regcache.c (_initialize_regcache): Likewise.
348 * remote.c (add_packet_config_cmd, init_remote_threadtests,
349 _initialize_remote): Likewise.
350 * ser-tcp.c (_initialize_ser_tcp): Likewise.
351 * serial.c (_initialize_serial): Likewise.
352 * skip.c (_initialize_step_skip): Likewise.
353 * source.c (_initialize_source): Likewise.
354 * stack.c (_initialize_stack): Likewise.
355 * symfile.c (_initialize_symfile): Likewise.
356 * symtab.c (_initialize_symtab): Likewise.
357 * target-descriptions.c (_initialize_target_descriptions): Likewise.
358 * top.c (init_main): Likewise.
359 * tracefile-tfile.c (tfile_target_info): Likewise.
360 * tracepoint.c (_initialize_tracepoint): Likewise.
361 * tui/tui-win.c (_initialize_tui_win): Likewise.
362 * utils.c (add_internal_problem_command): Likewise.
363 * valprint.c (value_print_option_defs): Likewise.
364
404f2902
FCE
3652019-08-06 Frank Ch. Eigler <fche@redhat.com>
366
367 PR build/24886
368 * configure.ac: Drop enable-libmcheck support.
369 * configure, config.in: Rebuild.
370 * libmcheck.m4: Remove.
371 * acinclude.m4: Don't include it.
372 * Makefile.in: Don't distribute it.
373 * top.c (print_gdb_configuration): Don't mention it.
374
046bebe1
TT
3752019-08-06 Tom Tromey <tom@tromey.com>
376
377 * utils.c (set_output_style): Sometimes pass stream to
378 emit_style_escape.
379 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
380 * record-btrace.c (btrace_insn_history): Update.
381 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
382 method.
383 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
384 Update initializers.
385 <m_uiout>: New field.
386 <m_di>: Move lower.
387 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
388 Remove "uiout" parameter.
389 (dump_insns): Update.
390 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
391 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
392
ddbcedf5
CB
3932019-08-06 Christian Biesinger <cbiesinger@google.com>
394
395 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
396 (error_in_psymtab_expansion): Likewise.
397 (lookup_symbol_via_quick_fns): Likewise.
398 (basic_lookup_transparent_type_quick): Likewise.
399 (basic_lookup_transparent_type_1): Likewise.
400
b08b16c8
TT
4012019-08-06 Tom Tromey <tromey@adacore.com>
402
403 * source.c (last_source_error): Now bool.
404 (print_source_lines_base): Make "noprint" bool. Only open
405 source file when last_source_visited changes.
406
cb44333d
TT
4072019-08-06 Tom Tromey <tromey@adacore.com>
408
409 * annotate.c (annotate_source_line): Use g_source_cache.
410 * source-cache.c (source_cache::get_plain_source_lines): Change
411 parameters. Populate m_offset_cache.
412 (source_cache::ensure): New method.
413 (source_cache::get_line_charpos): New method.
414 (extract_lines): Move lower. Change parameters.
415 (source_cache::get_source_lines): Move lower.
416 * source-cache.h (class source_cache): Update comment.
417 <get_line_charpos>: New method.
418 <get_source_lines>: Update comment.
419 <clear>: Clear m_offset_cache.
420 <get_plain_source_lines>: Change parameters.
421 <ensure>: New method
422 <m_offset_cache>: New member.
423 * source.c (forget_cached_source_info_for_objfile): Update.
424 (info_source_command): Use g_source_cache.
425 (find_source_lines, open_source_file_with_line_charpos): Remove.
426 (print_source_lines_base, search_command_helper): Use g_source_cache.
427 * source.h (open_source_file_with_line_charpos): Don't declare.
428 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
429 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
430 Use g_source_cache.
431
872dceaa
TT
4322019-08-06 Tom Tromey <tromey@adacore.com>
433
434 * source-cache.c (source_cache::get_plain_source_lines):
435 Remove "first_line" and "last_line" parameters.
436 (source_cache::get_source_lines): Cache plain text.
437 * source-cache.h (class source_cache)
438 <get_plain_source_lines>: Update.
439
269249d9
TT
4402019-08-06 Tom Tromey <tromey@adacore.com>
441
442 * source-cache.c (extract_lines): No longer a method.
443 Changed type of parameter. Include final newline.
444 (selftests::extract_lines_test): New function.
445 (_initialize_source_cache): Likewise.
446 * source-cache.h (class source_cache)
447 <extract_lines>: Don't declare.
448
c0e8dcd8
TT
4492019-08-06 Tom Tromey <tromey@adacore.com>
450
451 * breakpoint.c (init_breakpoint_sal): Update.
452 (breakpoint): Update.
453 * breakpoint.h (struct breakpoint) <filter>: Now a
454 unique_xmalloc_ptr.
455
0b27c27d
CB
4562019-08-05 Christian Biesinger <cbiesinger@google.com>
457
458 * NEWS: Mention dictionary access on blocks.
459 * python/py-block.c (blpy_getitem): New function.
460 (block_object_as_mapping): New struct.
461 (block_object_type): Use new struct for tp_as_mapping field.
462
4ee94178
CB
4632019-08-05 Christian Biesinger <cbiesinger@google.com>
464
465 * objfiles.h (objfile): Add a comment describing partial symbols.
466
8abfcabc
TT
4672019-08-05 Tom Tromey <tromey@adacore.com>
468
469 * compile/compile.c (_initialize_compile): Use _(), not N_().
470 * thread.c (_initialize_thread): Use _(), not N_().
471 * stack.c (_initialize_stack): Use _(), not N_().
472 * printcmd.c (_initialize_printcmd): Use _(), not N_().
473
2b79f376
SM
4742019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
475
476 * dwarf2read.c (struct dw2_symtab_iterator):
477 <want_specific_block>: Remove.
478 <block_index>: Change type to gdb::optional.
479 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
480 change type of BLOCK_INDEX parameter to gdb::optional.
481 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
482 (dw2_lookup_symbol): Don't pass argument for
483 WANT_SPECIFIC_BLOCK.
484 (dw2_expand_symtabs_for_function): Don't pass argument for
485 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
486 (class dw2_debug_names_iterator)
487 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
488 parameter, change BLOCK_INDEX type to gdb::optional.
489 <m_want_specific_block>: Remove.
490 <m_block_index>: Change type to gdb::optional.
491 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
492 gdb::optional. Re-write in function of gdb::optional.
493 (dw2_debug_names_lookup_symbol): Don't pass argument for
494 WANT_SPECIFIC_BLOCK.
495 (dw2_debug_names_expand_symtabs_for_function): Don't pass
496 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
497 BLOCK_INDEX.
498
ae60f04e
PW
4992019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
500
501 * NEWS: Mention changes to "info sources" command.
502
28cd9371
PW
5032019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
504
505 * symtab.c (filename_partial_match_opts): New struct type.
506 (struct output_source_filename_data): New members
507 regexp, c_regexp, partial_match.
508 (output_source_filename): Use new members to decide to print file.
509 (info_sources_option_defs): New variable.
510 (make_info_sources_options_def_group, print_info_sources_header,
511 info_sources_command_completer):
512 New functions.
513 (info_sources_command): Read new optional arguments.
514 (_initialize_symtab): Update info sources help.
515
ca683e3a
AO
5162019-08-02 Alexandre Oliva <oliva@adacore.com>
517
518 * ada-lang.c (exception_support_info_v0): Renamed from...
519 (default_exception_support_info): ... this. Create new
520 definition for v1.
521 (ada_has_this_exception_support): Look up catch_handlers_sym.
522 (ada_exception_support_info_sniffer): Try v0 after default.
523
f1264162
TT
5242019-08-01 Tom Tromey <tromey@adacore.com>
525
526 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
527 gdbarch.h.
528
0a7b2485
CB
5292019-08-01 Christian Biesinger <cbiesinger@google.com>
530
531 * s12z-tdep.c: Fix include path for s12z-opc.h.
532
c6bdbeb7
AH
5332019-08-01 Alan Hayward <alan.hayward@arm.com>
534
535 * NEWS: Require GNU make 3.82.
536
a2bd7b82
TT
5372019-07-16 Tom Tromey <tom@tromey.com>
538
539 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
540 declare.
541
aa3b6533
TT
5422019-07-30 Tom Tromey <tromey@adacore.com>
543
544 * block.c (contained_in): Remove BLOCK_FUNCTION check.
545
a1530dc7
KB
5462019-07-30 Kevin Buettner <kevinb@redhat.com>
547
548 * printcmd.c (print_address_symbolic): Print negative offsets.
549 (build_address_symbolic): Force signed arithmetic when computing
550 offset.
551
2906593f
CB
5522019-07-30 Christian Biesinger <cbiesinger@google.com>
553
554 PR/24474: Add a function to lookup static variables.
555 * NEWS: Mention this new function.
556 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
557 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
558 * python/python.c (python_GdbMethods): Add new function.
559
c620ed88
CB
5602019-07-29 Christian Biesinger <cbiesinger@google.com>
561
562 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
563 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
564 (objfpy_lookup_static_symbol): New function.
565 (objfile_object_methods): Add new functions.
566
bc4268a5
PW
5672019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
568
569 * NEWS: Mention 'set|show print frame-info'. Mention new
570 'presence' value for 'frame-arguments'. Mention new '-frame-info'
571 backtrace argument. Mention that python frame filtering code
572 is now consistent with what 'backtrace' command prints.
573
4b5e8d19
PW
5742019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
575
576 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
577 comments.
578 (print_frame_info_auto, print_frame_info_source_line,
579 print_frame_info_location, print_frame_info_source_and_location,
580 print_frame_info_location_and_address, print_frame_info_short_location):
581 New declarations.
582 (struct frame_print_options): New member print_frame_info.
583 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
584 * stack.h (get_user_print_what_frame_info): New declaration.
585 (frame_show_address): New declaration.
586 * stack.c (print_frame_arguments_choices): New value 'presence'.
587 (print_frame_info_auto, print_frame_info_source_line,
588 print_frame_info_location, print_frame_info_source_and_location,
589 print_frame_info_location_and_address, print_frame_info_short_location,
590 print_frame_info_choices, print_frame_info_print_what): New definitions.
591 (print_frame_args): Only print dots for args if print frame-arguments
592 is 'presence'.
593 (frame_print_option_defs): New element for "frame-info".
594 (get_user_print_what_frame_info): New function.
595 (frame_show_address): Make non static. Move comment to stack.h.
596 (print_frame_info_to_print_what): New function.
597 (print_frame_info): Update comment. Use fp_opts.print_frame_info
598 to decide what to print.
599 (backtrace_command_1): Handle the new print_frame_arguments_presence
600 value.
601 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
602 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
603 (py_print_frame): In non-mi mode, use LOCATION as default for
604 print_what, similarly to frame information printed directly by
605 backtrace command. Handle frame-info user option in non MI mode.
606
6bdfee81
KB
6072019-07-27 Kevin Buettner <kevinb@redhat.com>
608
609 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
610 Add case for debugging 32-bit target on 64-bit host. Revise
611 comment.
612
98a617f8
KB
6132019-07-27 Kevin Buettner <kevinb@redhat.com>
614
615 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
616 instead of find_function_entry_range_from_pc.
617
567238c9
KB
6182019-07-27 Kevin Buettner <kevinb@redhat.com>
619
620 * stack.c (find_frame_funname): Remove code which preferred
621 minsym over symtab sym in "certain pathological cases".
622
2dc80cf8
KB
623 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
624 parameter. Change type of "do_demangle" to bool.
625 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
626 Pass suitable "prefer_sym_over_minsym" flag to
627 build_address_symbolic(). Don't output "+" for negative offsets.
628 * printcmd.c (print_address_symbolic): Update invocation of
629 build_address_symbolic to include a "prefer_sym_over_minsym"
630 flag.
631 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
632 Restrict cases in which use of minimal symbol is preferred to that
633 of a found symbol. Update comments.
634
1aff7173
KB
635 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
636 for entry pc when entry pc is out of range for that FDE.
637
89b085ac
BC
6382019-07-26 Brian Callahan <bcallah@openbsd.org>
639
640 PR gdb/24839:
641 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
642 type.
643
f32feb4a
CB
6442019-07-25 Christian Biesinger <cbiesinger@google.com>
645
646 * python/py-objfile.c (add_separate_debug_file): Fix comment about
647 this function's Python signature.
648
649
6502019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
651
652 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
653 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
654 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
655 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
656 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
657
658
c54e4253
YS
6592019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
660
661 * h8300-tdep.c (h8300_register_name_common): New.
662 h8300_register_name): Use h8300_register_name_common.
663 (h8300s_register_name): Likewise.
664 (h8300sx_register_name): Likewise.
665 (h8300h_register_nam): New.
666 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
667
668
40eadf04
SP
6692019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
670
671 * arm-tdep.c (arm_skip_cmse_entry): New function.
672 (arm_is_sgstubs_section): New function.
673 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
674
bfa2a36d
TT
6752019-07-22 Tom Tromey <tom@tromey.com>
676
677 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
678 Don't self-assign.
679
a8e9d247
AB
6802019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
681
682 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
683 type_print.
684
eb86c5e2
AB
6852019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * symtab.c (search_symbols): Adjust msymbol matching type arrays
688 so that GDB doesn't match any msymbols when searching in the
689 TYPES_DOMAIN.
690 (print_symbol_info): Print using typedef_print or type_print based
691 on the type of the symbol. Add updated FIXME comment moved from...
692 (_initialize_symtab): ... move and update FIXME comment to above.
693
a8eab7c6
AB
6942019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
695
696 * NEWS: Mention adding -q option to "info types".
697 * symtab.c (struct info_types_options): New struct.
698 (info_types_options_defs): New variable.
699 (make_info_types_options_def_group): New function.
700 (info_types_command): Use gdb::option framework to parse options.
701 (info_types_command_completer): New function.
702 (_initialize_symtab): Extend the help text on "info types" and
703 register command completer.
704
b4603c34
CB
7052019-07-21 Christian Biesinger <cbiesinger@google.com>
706
707 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
708 (lookup_symbol_in_objfile): Change int to block_enum and add a
709 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
710
c8cdc1e0
CB
7112019-07-20 Christian Biesinger <cbiesinger@google.com>
712
713 * MAINTAINERS (Write After Approval): Add self.
714
01e175fe
AB
7152019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
716
717 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
718 instruction to the dummy code region.
719
56f79b63
TT
7202019-07-19 Tom Tromey <tromey@adacore.com>
721
722 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
723 (ARGSUSED, PARAMS, __func__): Remove rules.
724
4c5aa8e0
AH
7252019-07-19 Alan Hayward <alan.hayward@arm.com>
726
727 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
728 * features/arm/arm-with-iwmmxt.c: Remove.
729 * features/arm/arm-with-iwmmxt.xml: Remove.
730 * features/arm/arm-with-m-fpa-layout.c: Remove.
731 * features/arm/arm-with-m-fpa-layout.xml: Remove.
732 * features/arm/arm-with-m-vfp-d16.c: Remove.
733 * features/arm/arm-with-m-vfp-d16.xml: Remove.
734 * features/arm/arm-with-m.c: Remove.
735 * features/arm/arm-with-m.xml: Remove.
736 * features/arm/arm-with-neon.c: Remove.
737 * features/arm/arm-with-neon.xml: Remove.
738 * features/arm/arm-with-vfpv2.c: Remove.
739 * features/arm/arm-with-vfpv2.xml: Remove.
740 * features/arm/arm-with-vfpv3.c: Remove.
741 * features/arm/arm-with-vfpv3.xml: Remove.
742
f42b2617
AH
7432019-07-19 Alan Hayward <alan.hayward@arm.com>
744
745 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
746
f29ec966
AH
7472019-07-19 Alan Hayward <alan.hayward@arm.com>
748
749 * arch/aarch32.c (aarch32_create_target_description): Create
750 target descriptions using features.
751 * arch/arm.c (arm_create_target_description)
752 (arm_create_mprofile_target_description): Likewise.
753 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
754
d105cce5
AH
7552019-07-19 Alan Hayward <alan.hayward@arm.com>
756
757 * Makefile.in: Add new files.
758 * aarch32-tdep.c: New file.
759 * aarch32-tdep.h: New file.
760 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
761 Call aarch32_read_description.
762 * arch/aarch32.c: New file.
763 * arch/aarch32.h: New file.
764 * arch/arm.c (arm_create_target_description)
765 (arm_create_mprofile_target_description): New function.
766 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
767 (arm_create_target_description)
768 (arm_create_mprofile_target_description): New declaration.
769 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
770 read_description functions.
771 * arm-linux-nat.c (arm_linux_nat_target::read_description):
772 Likewise.
773 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
774 * arm-tdep.c (tdesc_arm_list): New variable.
775 (arm_register_g_packet_guesses): Call create description functions.
776 (arm_read_description) (arm_read_mprofile_description): New
777 function.
778 * arm-tdep.h (arm_read_description)
779 (arm_read_mprofile_description): Add declaration.
780 * configure.tgt: Add new files.
781
afe09f0b
GL
7822019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
783
784 * top.c (new_ui_command): Open specified terminal just once.
785
cd215b2e
TT
7862019-07-18 Tom Tromey <tromey@adacore.com>
787
788 * symtab.c (main_name): Constify return type.
789 * symfile.c (set_initial_language): Update.
790 * symtab.h (main_name): Constify return type.
791
d8f68fcb
TT
7922019-07-17 Tom Tromey <tom@tromey.com>
793
794 * tui/tui-winsource.c (tui_update_source_window)
795 (tui_update_source_window_as_is)
796 (tui_update_source_windows_with_line): Remove return.
797 * tui/tui-disasm.c (tui_show_disassem)
798 (tui_show_disassem_and_update_source): Remove return.
799 * tui/tui.c (tui_reset): Remove return.
800 * tui/tui-wingeneral.c
801 (tui_check_and_display_highlight_if_needed): Remove return.
802
ca5af91e
TT
8032019-07-17 Tom Tromey <tom@tromey.com>
804
805 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
806
5104fe36
TT
8072019-07-17 Tom Tromey <tom@tromey.com>
808
809 * tui/tui-winsource.h (struct tui_exec_info_window)
810 (struct tui_source_window_base): Move from tui-data.h.
811 * tui/tui-winsource.c: Move many method definitions from
812 elsewhere. Remove "structuring" comments.
813 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
814 (tui_source_window_base::refresh_window): Move to
815 tui-winsource.c.
816 * tui/tui-win.c (tui_source_window_base::refresh_all)
817 (tui_source_window_base::update_tab_width)
818 (tui_source_window_base::set_new_height)
819 (tui_source_window_base::do_make_visible_with_new_height): Move to
820 tui-winsource.c.
821 * tui/tui-source.h: Update.
822 * tui/tui-source.c (tui_source_window_base::reset): Move to
823 tui-winsource.c.
824 * tui/tui-disasm.h: Update.
825 * tui/tui-data.h (struct tui_exec_info_window): Move to
826 tui-winsource.h.
827 (struct tui_source_window_base): Likewise.
828 * tui/tui-data.c (tui_source_window_base::clear_detail)
829 (tui_source_window_base, ~tui_source_window_base): Move to
830 tui-winsource.c.
831
daa15dde
TT
8322019-07-17 Tom Tromey <tom@tromey.com>
833
834 * tui/tui-win.c (tui_resize_all)
835 (tui_source_window_base::update_tab_width)
836 (tui_adjust_win_heights): Update.
837 (tui_win_info::make_invisible_and_set_new_height): Rename from
838 make_invisible_and_set_new_height.
839 * tui/tui-data.h (struct tui_win_info)
840 <make_invisible_and_set_new_height>: New method.
841
bfad4537
TT
8422019-07-17 Tom Tromey <tom@tromey.com>
843
844 * tui/tui.c: Update.
845 * tui/tui-source.h (struct tui_source_window): Move from
846 tui-data.h.
847 * tui/tui-layout.c: Update.
848 * tui/tui-disasm.c: Update.
849 * tui/tui-data.h (struct tui_source_window): Move to
850 tui-source.h.
851
88f7e873
TT
8522019-07-17 Tom Tromey <tom@tromey.com>
853
854 * tui/tui-disasm.h (struct tui_disasm_window): Move from
855 tui-data.h.
856 * tui/tui-data.h (struct tui_disasm_window): Move to
857 tui-disasm.h.
858
96bd6233
TT
8592019-07-17 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-regs.h (struct tui_data_item_window): Move from
862 tui-data.h.
863 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
864 * tui/tui-data.h (struct tui_data_item_window): Move to
865 tui-regs.h.
866 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
867
ce38393b
TT
8682019-07-17 Tom Tromey <tom@tromey.com>
869
870 * tui/tui.c: Update.
871 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
872 (tui_cmd_window::max_height): Move to tui-command.c.
873 * tui/tui-layout.c: Update.
874 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
875 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
876 tui-command.c.
877 * tui/tui-command.h (struct tui_cmd_window): Move from
878 tui-data.h.
879 * tui/tui-command.c: Remove "structuring" comments.
880 (tui_cmd_window::clear_detail)
881 (tui_cmd_window::do_make_visible_with_new_height)
882 (tui_cmd_window::max_height): Move from elsewhere.
883
2d8b51cb
TT
8842019-07-17 Tom Tromey <tom@tromey.com>
885
886 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
887 Now static.
888 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
889 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
890
18ab23af
TT
8912019-07-17 Tom Tromey <tom@tromey.com>
892
893 * tui/tui.c: Update.
894 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
895 tui-regs.c.
896 * tui/tui-windata.h: Remove file.
897 * tui/tui-windata.c: Remove file.
898 * tui/tui-win.c (tui_data_window::set_new_height)
899 (tui_data_window::do_make_visible_with_new_height): Move to
900 tui-regs.c.
901 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
902 * tui/tui-regs.c: Remove "structuring" comments.
903 (tui_data_window::first_data_item_displayed)
904 (tui_data_window::delete_data_content_windows)
905 (tui_data_window::erase_data_content)
906 (tui_data_window::display_all_data)
907 (tui_data_window::refresh_all)
908 (tui_data_window::do_scroll_vertical)
909 (tui_data_window::clear_detail, tui_data_window::set_new_height)
910 (tui_data_window::do_make_visible_with_new_height)
911 (tui_data_window::refresh_window): Move from elsewhere.
912 (_initialize_tui_regs): Move to end of file.
913 * tui/tui-layout.c: Update.
914 * tui/tui-hooks.c: Update.
915 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
916 * tui/tui-data.c (tui_data_window::clear_detail): Move to
917 tui-regs.c.
918 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
919
88b7e7cc
TT
9202019-07-17 Tom Tromey <tom@tromey.com>
921
922 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
923 seen.
924
0fcd3711
TT
9252019-07-17 Tom Tromey <tom@tromey.com>
926
927 * tui/tui-win.c (tui_source_window_base::set_new_height)
928 (tui_source_window_base::do_make_visible_with_new_height): Use
929 m_has_locator field directly.
930 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
931 method.
932 (struct tui_source_window_base) <has_locator>: Likewise.
933
4a38112d
TT
9342019-07-17 Tom Tromey <tom@tromey.com>
935
936 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
937 Don't declare.
938 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
939 Remove.
940 * tui/tui-win.c (tui_source_window_base::set_new_height)
941 (tui_source_window_base::set_new_height)
942 (make_invisible_and_set_new_height)
943 (tui_source_window_base::do_make_visible_with_new_height)
944 (tui_source_window_base::do_make_visible_with_new_height):
945 Update.
946 * tui/tui-layout.c (show_source_disasm_command, show_data)
947 (show_source_or_disasm_and_command): Update.
948 * tui/tui-layout.c (show_layout): Update.
949
09129226
TT
9502019-07-17 Tom Tromey <tom@tromey.com>
951
952 * tui/tui-layout.c (make_data_window): Remove.
953 (show_data): Unify creation and re-initialization cases.
954
4a8a5e84
TT
9552019-07-17 Tom Tromey <tom@tromey.com>
956
957 * tui/tui-layout.c (make_source_window, make_disasm_window):
958 Remove.
959 (show_data): Unify creation and re-initialization cases.
960
76d2be8e
TT
9612019-07-17 Tom Tromey <tom@tromey.com>
962
963 * tui/tui-layout.c (make_command_window): Remove.
964 (show_source_disasm_command, show_source_or_disasm_and_command):
965 Unify creation and re-initialization cases.
966
890b8bde
TT
9672019-07-17 Tom Tromey <tom@tromey.com>
968
969 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
970 creation and re-initialization cases.
971
2cdfa113
TT
9722019-07-17 Tom Tromey <tom@tromey.com>
973
974 * tui/tui-regs.c (tui_get_register): Return void.
975
8e3cfd09
TT
9762019-07-17 Tom Tromey <tom@tromey.com>
977
978 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
979 Simplify.
980
f4e04977
TT
9812019-07-17 Tom Tromey <tom@tromey.com>
982
983 * tui/tui-layout.c (show_source_disasm_command): Simplify window
984 resetting.
985
0379b883
TT
9862019-07-17 Tom Tromey <tom@tromey.com>
987
988 * tui/tui.h (tui_set_layout_by_name): Don't declare.
989 * tui/tui-regs.c (tui_reg_layout): New function.
990 (tui_show_registers, tui_reg_command): Use it.
991 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
992 (tui_layout_command): Rename from tui_set_layout_by_name. Change
993 parameters.
994 (tui_layout_command): Remove.
995
b7fbad91
TT
9962019-07-17 Tom Tromey <tom@tromey.com>
997
998 * tui/tui-layout.h (tui/tui-layout): Return void.
999 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1000
4e1e56b9
TT
10012019-07-17 Tom Tromey <tom@tromey.com>
1002
1003 * tui/tui-layout.c (show_source_disasm_command, show_data):
1004 Update.
1005 (reset_locator): Remove.
1006 (show_source_or_disasm_and_command): Update.
1007
1e0c09ba
TT
10082019-07-17 Tom Tromey <tom@tromey.com>
1009
1010 * tui/tui-source.c (tui_source_window_base::reset): Remove
1011 win_type parameter.
1012 * tui/tui-layout.c (make_command_window, make_source_window)
1013 (make_disasm_window, make_data_window)
1014 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1015 (reset_locator, show_source_or_disasm_and_command): Update.
1016 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1017 win_type parameter.
1018 (struct tui_source_window_base) <reset>: Likewise.
1019
1bf605de
TT
10202019-07-17 Tom Tromey <tom@tromey.com>
1021
1022 * tui/tui-layout.c (show_source_disasm_command): Use
1023 reset_locator.
1024 (reset_locator): New function.
1025 (init_and_make_win): Remove.
1026 (show_source_or_disasm_and_command): Use reset_locator.
1027
098f9ed4
TT
10282019-07-17 Tom Tromey <tom@tromey.com>
1029
1030 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1031 condition.
1032 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1033 Remove condition.
1034 * tui/tui-source.c (tui_source_window_base::reset): New method.
1035 * tui/tui-layout.c (make_command_window): Don't call
1036 init_and_make_win.
1037 (make_source_window, make_disasm_window): Don't call
1038 make_source_or_disasm_window.
1039 (make_data_window): Don't call init_and_make_win. Change calling
1040 convention.
1041 (show_source_disasm_command, show_data): Simplify.
1042 (make_source_or_disasm_window): Remove.
1043 (show_source_or_disasm_and_command): Simplify.
1044 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1045 (struct tui_source_window_base) <reset>: Likewise.
1046 <execution_info>: Remove initializer.
1047 * tui/tui-data.c (tui_source_window_base): Initialize
1048 execution_info.
1049
80110957
TT
10502019-07-17 Tom Tromey <tom@tromey.com>
1051
1052 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1053 variable.
1054
cf82af05
TT
10552019-07-17 Tom Tromey <tom@tromey.com>
1056
1057 * tui/tui.c (tui_rl_other_window): Update.
1058 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1059 superclass method first. Always iterate over regs_content.
1060 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1061 method.
1062 * tui/tui-win.c (tui_set_focus_command): Update.
1063
01aeb396
TT
10642019-07-17 Tom Tromey <tom@tromey.com>
1065
1066 * tui/tui-win.c (tui_set_focus_command): Rename from
1067 tui_set_focus. Call tui_enable.
1068 (tui_set_focus_command): Remove.
1069
fd6c75ee
TT
10702019-07-17 Tom Tromey <tom@tromey.com>
1071
1072 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1073 refresh_window.
1074 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1075 touchwin.
1076 (tui_data_window::refresh_window): Call refresh_window on data
1077 items. Always call superclass refresh_window.
1078 (tui_win_info::refresh): Remove.
1079 (tui_source_window_base::refresh_window): Update.
1080 (tui_refresh_all): Update.
1081 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1082 refresh_window.
1083 (show_source_or_disasm_and_command): Likewise.
1084 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1085 (struct tui_source_window_base) <refresh>: Likewise.
1086
f6cc34a9
TT
10872019-07-17 Tom Tromey <tom@tromey.com>
1088
1089 * tui/tui-winsource.c (tui_clear_source_content)
1090 (tui_show_source_content): Update.
1091 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1092 whether content is empty.
1093 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1094 Remove.
1095
f31ec9af
TT
10962019-07-17 Tom Tromey <tom@tromey.com>
1097
1098 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1099 window's contents.
1100 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1101 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1102
d1b6f1e5
TT
11032019-07-17 Tom Tromey <tom@tromey.com>
1104
1105 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1106 (struct tui_data_item_window): Update.
1107
d9743a13
TT
11082019-07-17 Tom Tromey <tom@tromey.com>
1109
1110 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1111 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1112 defines.
1113
caf0bc4e
TT
11142019-07-17 Tom Tromey <tom@tromey.com>
1115
1116 * tui/tui-winsource.h (tui_erase_source_content)
1117 (tui_clear_source_content): Remove "display_prompt" parameter.
1118 * tui/tui-winsource.c (tui_update_source_window_as_is)
1119 (tui_update_source_windows_with_addr): Update.
1120 (tui_clear_source_content): Remove "display_prompt" parameter.
1121 (tui_erase_source_content): Likewise. Simplify.
1122 (tui_show_source_content): Update.
1123 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1124 * tui/tui-stack.c (tui_show_frame_info): Update.
1125 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1126 Remove defines.
1127
9d391078
TT
11282019-07-17 Tom Tromey <tom@tromey.com>
1129
1130 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1131 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1132 parameter.
1133 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1134 parameter.
1135
a38da35d
TT
11362019-07-17 Tom Tromey <tom@tromey.com>
1137
1138 * tui/tui-winsource.c (tui_clear_source_content)
1139 (tui_show_source_content, tui_show_exec_info_content)
1140 (tui_clear_exec_info_content): Update.
1141 * tui/tui-stack.c (tui_show_locator_content): Update.
1142 (tui_show_frame_info): Update.
1143 * tui/tui-source.h (tui_source_window): Don't declare.
1144 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1145 from tui_source_is_displayed.
1146 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1147 Remove field.
1148 (struct tui_source_window_base) <content_in_use>: New field. Now
1149 bool.
1150 (struct tui_source_window) <showing_source_p>: New method.
1151 (TUI_SRC_WIN): Change cast.
1152 * tui/tui-data.c (tui_initialize_static_data): Update.
1153
c2cd8994
TT
11542019-07-17 Tom Tromey <tom@tromey.com>
1155
1156 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1157 location_matches_p.
1158 * tui/tui-source.c (tui_source_window::location_matches_p): New
1159 method.
1160 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1161 method.
1162 * tui/tui-data.h (struct tui_source_window_base)
1163 <location_matches_p>: New method.
1164 (struct tui_source_window, struct tui_disasm_window)
1165 <location_matches_p>: Likewise.
1166
4dde7b34
TT
11672019-07-17 Tom Tromey <tom@tromey.com>
1168
1169 * tui/tui-win.c (tui_set_win_height_command): Rename from
1170 tui_set_win_height.
1171 (tui_set_win_height_command): Remove.
1172
b73dd877
TT
11732019-07-17 Tom Tromey <tom@tromey.com>
1174
1175 * tui/tui-source.c (tui_source_window): New constructor. Add
1176 observer.
1177 (~tui_source_window): New destructor.
1178 (tui_source_window::style_changed): New method.
1179 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1180 (tui_attach_detach_observers): Update.
1181 * tui/tui-data.h (struct tui_source_window): Make constructor not
1182 inline. Add destructor.
1183 (struct tui_source_window) <style_changed>: New method.
1184 <m_observable>: New member.
1185
ae2b5380
TT
11862019-07-17 Tom Tromey <tom@tromey.com>
1187
1188 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1189 * tui/tui-win.c (tui_resize_all): Fix typo.
1190
1ce3e844
TT
11912019-07-17 Tom Tromey <tom@tromey.com>
1192
1193 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1194 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1195 (tui_refresh_all): Remove "list" parameter. Use foreach.
1196 * tui/tui-win.c (window_name_completer): Use foreach.
1197 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1198 (update_tab_width): Likewise.
1199 * tui/tui-layout.c (show_layout): Update.
1200 * tui/tui-data.h (class tui_window_iterator): New.
1201 (struct all_tui_windows): New.
1202 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1203
fe3eaf1c
TT
12042019-07-17 Tom Tromey <tom@tromey.com>
1205
1206 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1207 parameter. Don't reference globals.
1208 (tui_reg_command): Update.
1209
368c1354
TT
12102019-07-17 Tom Tromey <tom@tromey.com>
1211
1212 * tui/tui-regs.c (tui_show_registers): Simplify.
1213
e80cd204
TT
12142019-07-17 Tom Tromey <tom@tromey.com>
1215
1216 * tui/tui-regs.c (tui_show_registers): Update.
1217 (tui_show_register_group): Add win_info parameter.
1218
aca2dd16
TT
12192019-07-17 Tom Tromey <tom@tromey.com>
1220
1221 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1222 Rename from tui_display_reg_element_at_line.
1223 (tui_data_window::display_registers_from_line): Update.
1224 * tui/tui-data.h (struct tui_data_window)
1225 <display_reg_element_at_line>: New method.
1226
517e9505
TT
12272019-07-17 Tom Tromey <tom@tromey.com>
1228
1229 * tui/tui-regs.h (tui_display_registers_from)
1230 (tui_display_registers_from_line): Don't declare.
1231 * tui/tui-windata.c (tui_data_window::display_all_data)
1232 (tui_data_window::refresh_all)
1233 (tui_data_window::do_scroll_vertical): Update.
1234 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1235 from tui_display_registers_from.
1236 (tui_display_reg_element_at_line): Update.
1237 (tui_data_window::display_registers_from_line): Rename from
1238 tui_display_registers_from_line.
1239 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1240 display_registers_from_line>: New methods.
1241
f76d8b19
TT
12422019-07-17 Tom Tromey <tom@tromey.com>
1243
1244 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1245 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1246 from tui_erase_data_content.
1247 (tui_data_window::display_all_data)
1248 (tui_data_window::refresh_all)
1249 (tui_data_window::do_scroll_vertical): Update.
1250 * tui/tui-regs.c (tui_show_registers): Update.
1251 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1252 New method.
1253
b4094625
TT
12542019-07-17 Tom Tromey <tom@tromey.com>
1255
1256 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1257 declare.
1258 * tui/tui-windata.c
1259 (tui_data_window::delete_data_content_windows): Rename from
1260 tui_delete_data_content_windows.
1261 (tui_data_window::display_all_data)
1262 (tui_data_window::do_scroll_vertical): Update.
1263 * tui/tui-data.h (struct tui_data_window)
1264 <delete_data_content_windows>: New method.
1265
c223a729
TT
12662019-07-17 Tom Tromey <tom@tromey.com>
1267
1268 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1269 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1270
50daf268
TT
12712019-07-17 Tom Tromey <tom@tromey.com>
1272
1273 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1274 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1275 from tui_display_all_data.
1276 * tui/tui-win.c
1277 (tui_data_window::do_make_visible_with_new_height): Update.
1278 * tui/tui-regs.c (tui_show_registers): Update.
1279 * tui/tui-layout.c (tui_set_layout): Update.
1280 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1281 method.
1282
df5f8cab
TT
12832019-07-17 Tom Tromey <tom@tromey.com>
1284
1285 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1286 * tui/tui-windata.c (tui_display_data_from): Remove.
1287 (tui_data_window::refresh_all): Update.
1288
80cb6c27
TT
12892019-07-17 Tom Tromey <tom@tromey.com>
1290
1291 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1292 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1293 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1294 tui_display_registers_from_line.
1295 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1296 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1297 "force_display" parameter.
1298
baff0c28
TT
12992019-07-17 Tom Tromey <tom@tromey.com>
1300
1301 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1302 declare.
1303 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1304 Rename from tui_first_reg_element_no_inline.
1305 (tui_display_reg_element_at_line)
1306 (tui_display_registers_from_line): Update.
1307 * tui/tui-data.h (struct tui_data_window)
1308 <first_reg_element_no_inline>: New method.
1309
3b23c5f2
TT
13102019-07-17 Tom Tromey <tom@tromey.com>
1311
1312 * tui/tui-windata.c (tui_display_data_from)
1313 (tui_data_window::do_scroll_vertical): Update.
1314 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1315 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1316 Rename from tui_line_from_reg_element_no.
1317 (tui_display_registers_from_line): Update.
1318 * tui/tui-data.h (struct tui_data_window)
1319 <line_from_reg_element_no>: New method.
1320
0b5ec218
TT
13212019-07-17 Tom Tromey <tom@tromey.com>
1322
1323 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1324 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1325 tui_last_regs_line_no.
1326 (tui_display_reg_element_at_line)
1327 (tui_display_registers_from_line): Update.
1328 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1329 method.
1330
0807ab7b
TT
13312019-07-17 Tom Tromey <tom@tromey.com>
1332
1333 PR tui/24722:
1334 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1335 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1336 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1337 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1338 (tui_update_breakpoint_info): Likewise.
1339 * tui/tui-hooks.c (tui_event_create_breakpoint)
1340 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1341 Update.
1342
9ad7fdef
TT
13432019-07-17 Tom Tromey <tom@tromey.com>
1344
1345 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1346
5813316f
TT
13472019-07-17 Tom Tromey <tom@tromey.com>
1348
1349 * tui/tui-winsource.c (tui_update_source_window_as_is)
1350 (tui_update_source_windows_with_addr): Update.
1351 * tui/tui-source.h (tui_set_source_content)
1352 (tui_show_symtab_source): Add "win_info" parameter.
1353 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1354 parameter.
1355 (tui_show_symtab_source): Likewise.
1356
00e264e7
TT
13572019-07-17 Tom Tromey <tom@tromey.com>
1358
1359 * tui/tui-wingeneral.c
1360 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1361
06210ce4
TT
13622019-07-17 Tom Tromey <tom@tromey.com>
1363
1364 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1365 (struct tui_cmd_window) <can_scroll>: New method.
1366 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1367 method.
1368
381befee
TT
13692019-07-17 Tom Tromey <tromey@adacore.com>
1370
1371 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1372 do_field_signed>: Rename. Change type of "value".
1373 * ui-out.c (ui_out::field_signed): Rename from field_int.
1374 Change type of "value".
1375 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1376 type of "value".
1377 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1378 do_field_int. Change type of "value".
1379 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1380 do_field_int. Change type of "value".
1381 * tracepoint.c (trace_status_mi, tfind_1)
1382 (print_one_static_tracepoint_marker): Update.
1383 * thread.c (print_thread_info_1, print_selected_thread_frame):
1384 Update.
1385 * stack.c (print_frame, print_frame_info): Update.
1386 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1387 Update.
1388 * source.c (print_source_lines_base): Update.
1389 * skip.c (info_skip_command): Update.
1390 * record-btrace.c (btrace_ui_out_decode_error)
1391 (btrace_call_history_src_line): Update.
1392 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1393 Update.
1394 * progspace.c (print_program_space): Update.
1395 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1396 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1397 do_field_int. Change type of "value".
1398 * mi/mi-out.c (mi_ui_out::do_table_begin)
1399 (mi_ui_out::do_table_header): Update.
1400 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1401 type of "value".
1402 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1403 (mi_cmd_data_list_changed_registers, output_register)
1404 (mi_cmd_data_read_memory, mi_load_progress)
1405 (mi_cmd_trace_frame_collected): Update.
1406 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1407 Update.
1408 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1409 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1410 (mi_cmd_var_list_children, varobj_update_one): Update.
1411 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1412 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1413 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1414 * inferior.c (print_inferior): Update.
1415 * gdb_bfd.c (print_one_bfd): Update.
1416 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1417 Update.
1418 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1419 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1420 do_field_int. Change type of "value".
1421 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1422 do_field_int. Change type of "value".
1423 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1424 (print_one_breakpoint_location, print_it_catch_fork)
1425 (print_one_catch_fork, print_it_catch_vfork)
1426 (print_one_catch_vfork, print_it_catch_solib)
1427 (print_it_catch_exec, print_it_ranged_breakpoint)
1428 (print_mention_watchpoint, print_mention_masked_watchpoint)
1429 (bkpt_print_it, update_static_tracepoint): Update.
1430 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1431 * break-catch-syscall.c (print_it_catch_syscall): Update.
1432 * ada-tasks.c (print_ada_task_info): Update.
1433 * ada-lang.c (print_it_exception, print_mention_exception):
1434 Update.
1435
6b78c3f8
AB
14362019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 PR breakpoints/24541
1439 * gdbarch.c: Regenerate.
1440 * gdbarch.h: Regenerate.
1441 * gdbarch.sh: Adjust return type and parameter types for
1442 'stap_adjust_register'.
1443 (i386_stap_adjust_register): Adjust signature and return new
1444 register name.
1445 * stap-probe.c (stap_parse_register_operand): Adjust use of
1446 'gdbarch_stap_adjust_register'.
1447
d72a9b85
TT
14482019-07-17 Tom Tromey <tromey@adacore.com>
1449
1450 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1451 declare VEC.
1452 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1453 std::vector.
1454 (struct s390_process_info): Add initializers.
1455 (s390_add_process): Use new.
1456 (s390_linux_nat_target::low_forget_process): Use delete.
1457 (s390_linux_nat_target::low_new_fork)
1458 (s390_linux_nat_target::stopped_by_watchpoint)
1459 (s390_linux_nat_target::low_prepare_to_resume)
1460 (s390_linux_nat_target::insert_watchpoint)
1461 (s390_linux_nat_target::insert_hw_breakpoint)
1462 (s390_linux_nat_target::remove_watchpoint)
1463 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1464
206e6c58
JB
14652019-07-16 John Baldwin <jhb@FreeBSD.org>
1466
1467 * aarch64-fbsd-nat.c: Include regcache.h.
1468 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1469 argument.
1470 (aarch64_fbsd_nat_target::fetch_registers)
1471 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1472 variable.
1473 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1474
cbde90f2
JB
14752019-07-16 John Baldwin <jhb@FreeBSD.org>
1476
1477 * fbsd-nat.c: Include gdbarch.h.
1478
07128006
TT
14792019-07-15 Tom Tromey <tromey@adacore.com>
1480
1481 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1482
1f77b012
TT
14832019-07-15 Tom Tromey <tromey@adacore.com>
1484
1485 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1486 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1487 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1488 * cli-out.c (cli_ui_out::do_field_int): New method.
1489 * ui-out.c (ui_out::field_unsigned): New method.
1490 * symfile.c (generic_load): Use field_unsigned.
1491 (print_transfer_performance): Likewise.
1492 * record-btrace.c (ui_out_field_uint): Remove.
1493 (btrace_call_history_insn_range, btrace_call_history): Use
1494 field_unsigned.
1495 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1496 field_unsigned.
1497 * ui-out.h (class ui_out) <field_unsigned>: New method.
1498 <do_field_unsigned>: Likewise.
1499
33eca680
TT
15002019-07-15 Tom Tromey <tromey@adacore.com>
1501
1502 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1503 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1504 * target.c (flash_erase_command): Use field_string.
1505 * infrun.c (print_signal_received_reason): Use field_string.
1506 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1507 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1508 field_string.
1509 * ada-tasks.c (print_ada_task_info): Use field_string.
1510
ca8d69be
TT
15112019-07-15 Tom Tromey <tromey@adacore.com>
1512
1513 * target.c (flash_erase_command): Use field_core_addr.
1514 * symfile.c (generic_load): Use field_core_addr.
1515 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1516 Use field_core_addr.
1517 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1518 field_core_addr.
1519
0d4e84ed
AB
15202019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1521
1522 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1523 value if its desired type is smaller than a CORE_ADDR and signed.
1524
9a49df9d
AB
15252019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1526
1527 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1528 of changes to field names, and use new is_reference field to
1529 decide if a property is a reference or not.
1530 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1531 field.
1532 (struct dwarf2_property_baton): Update header comment, rename
1533 'referenced_type' to 'property_type' and update comments.
1534 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1535 default property type, store in property baton, update to take
1536 accound of renamed field.
1537 (read_func_scope): Update call to attr_to_dynamic_prop.
1538 (read_array_type): Likewise.
1539 (dwarf2_per_cu_addr_sized_int_type): New function.
1540 (read_subrange_index_type): Move type finding code to
1541 dwarf2_per_cu_addr_sized_int_type.
1542 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1543 (dwarf2_per_cu_addr_type): New function.
1544 (set_die_type): Update calls to attr_to_dynamic_prop.
1545
b86352cf
AB
15462019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1547
1548 * dwarf2read.c (read_subrange_index_type): New function.
1549 (read_subrange_type): Move code into new function and call it.
1550 * gdbtypes.c (create_range_type): Add some asserts.
1551
603490bf
AB
15522019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1555 update return statements.
1556 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1557 declaration, and update comment to match.
1558 * gdbtypes.c (resolve_dynamic_array): Update call to
1559 dwarf2_evaluate_property to match new return type.
1560
592f9d27
AB
15612019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1562
1563 * valarith.c (value_subscripted_rvalue): Change lowerbound
1564 parameter type from int to LONGEST.
1565 * value.h (value_subscripted_rvalue): Likewise in declaration.
1566
60cfcb20
AB
15672019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * cli/cli-utils.c (info_print_command_completer): New function.
1570 * cli/cli-utils.h: Add 'completer.h' include, and forward
1571 declaration for 'struct cmd_list_element'.
1572 (info_print_command_completer): Declare.
1573 * stack.c (_initialize_stack): Add completer for 'info locals' and
1574 'info args'.
1575 * symtab.c (_initialize_symtab): Add completer for 'info
1576 variables' and 'info functions'.
1577 * NEWS: Mention completion for additional info commands.
1578
b16507e0
AB
15792019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1580
1581 * cli/cli-utils.c (extract_info_print_args): Delete.
1582 (extract_arg_maybe_quoted): Delete.
1583 (info_print_options_defs): New variable.
1584 (make_info_print_options_def_group): New function.
1585 (extract_info_print_options): Define new function.
1586 * cli/cli-utils.h (extract_info_print_args): Delete.
1587 (struct info_print_options): New structure.
1588 (extract_info_print_options): Declare new function.
1589 * stack.c (info_locals_command): Update to use new
1590 extract_info_print_options, also add a header comment.
1591 (info_args_command): Likewise.
1592 * symtab.c (info_variables_command): Likewise.
1593 (info_functions_command): Likewise.
1594
021d8588
AB
15952019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1598 to extract string arguments.
1599 * common/common-utils.c (extract_string_maybe_quoted): New function.
1600 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1601
b777eb6d
TT
16022019-07-11 Tom Tromey <tromey@adacore.com>
1603
1604 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1605 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1606 * top.h (gdbinit): Don't declare.
1607 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1608 into...
1609 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1610 * top.c (gdb_init): Don't call init_cli_cmds.
1611 (gdbinit): Remove.
1612 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1613
72ee03ff
TT
16142019-07-11 Tom Tromey <tromey@adacore.com>
1615
1616 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1617 after it has been moved.
1618
00db9531
SM
16192019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1620
1621 * valops.c (value_must_coerce_to_target): Change return type to
1622 bool.
1623 * value.h (value_must_coerce_to_target): Likewise.
1624
f2478a7e
SM
16252019-07-10 Simon Marchi <simon.marchi@efficios.com>
1626
1627 * breakpoint.c (is_hardware_watchpoint): Remove
1628 forward-declaration.
1629 (is_masked_watchpoint): Change return type to bool.
1630 (is_tracepoint): Likewise.
1631 (is_breakpoint): Likewise.
1632 (is_hardware_watchpoint): Likewise.
1633 (is_watchpoint): Likewise.
1634 (is_no_memory_software_watchpoint): Likewise.
1635 (is_catchpoint): Likewise.
1636 (breakpoint_1): Make FILTER parameter's return type bool.
1637 is_masked_watchpoint): Change return type to bool.
1638 (save_breakpoints): Make FILTER parameter's return type bool.
1639 * breakpoint.h (is_breakpoint): Change return type to bool.
1640 (is_watchpoint): Likewise.
1641 (is_catchpoint): Likewise.
1642 (is_tracepoint): Likewise.
1643
0d12e84c
TT
16442019-07-10 Tom Tromey <tom@tromey.com>
1645
1646 * defs.h: Don't include gdbarch.h.
1647 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1648 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1649 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1650 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1651 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1652 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1653 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1654 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1655 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1656 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1657 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1658 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1659 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1660 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1661 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1662 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1663 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1664 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1665 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1666 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1667 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1668 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1669 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1670 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1671 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1672 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1673 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1674
f06f1252
TT
16752019-07-10 Tom Tromey <tromey@adacore.com>
1676
1677 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1678 * breakpoint.c (init_ada_exception_breakpoint): Register as
1679 bp_catchpoint.
1680 (print_one_breakpoint_location, print_one_breakpoint): Use
1681 is_ada_exception_catchpoint.
1682 * ada-lang.c (class ada_catchpoint_location): Pass
1683 bp_loc_software_breakpoint to bp_location constructor.
1684 (is_ada_exception_catchpoint): New function.
1685
7a5d944b
TT
16862019-07-10 Tom Tromey <tromey@adacore.com>
1687
1688 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1689 VEC.
1690 (struct arm_exidx_entry): New method operator<.
1691 (struct arm_exidx_data) <section_maps>: Change type.
1692 (arm_exidx_data_free): Remove.
1693 (arm_exidx_data_key): Change type. Move lower.
1694 (arm_exidx_new_objfile): Update.
1695 (arm_compare_exidx_entries): Remove.
1696 (arm_find_exidx_entry, _initialize_arm_tdep)
1697
48c66e1d
TT
16982019-07-10 Tom Tromey <tromey@adacore.com>
1699
1700 * solib-spu.c (ocl_program_data_key): Change type.
1701 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1702 Update.
1703
a269fbf1
TT
17042019-07-10 Tom Tromey <tromey@adacore.com>
1705
1706 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1707 (struct solib_aix_inferior_data) <library_list>: Change type.
1708 (solib_aix_inferior_data_handle): Change type.
1709 (get_solib_aix_inferior_data): Update.
1710 (solib_aix_free_library_list): Remove.
1711 (library_list_start_library): Update.
1712 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1713 return type.
1714 (solib_aix_get_library_list)
1715 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1716 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1717
c294730c
TT
17182019-07-10 Tom Tromey <tromey@adacore.com>
1719
1720 * solib-dsbt.c (struct dsbt_info): Add initializers.
1721 (solib_dsbt_pspace_data): Change type.
1722 (dsbt_pspace_data_cleanup): Remove.
1723 (get_dsbt_info, _initialize_dsbt_solib): Update.
1724
9d52077d
TT
17252019-07-10 Tom Tromey <tromey@adacore.com>
1726
1727 * spu-tdep.c (spu_overlay_data): Change type.
1728 (spu_get_overlay_table, spu_overlay_new_objfile)
1729 (_initialize_spu_tdep): Update.
1730
22a20dca
TT
17312019-07-10 Tom Tromey <tromey@adacore.com>
1732
1733 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1734 destructor.
1735 (dbx_objfile_data_key): Change type and declare later.
1736 (DBX_SYMFILE_INFO): Rewrite.
1737 * dbxread.c (dbx_objfile_data_key): Change type.
1738 (dbx_symfile_init): Update.
1739 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1740 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1741 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1742
cb60f420
TT
17432019-07-10 Tom Tromey <tromey@adacore.com>
1744
1745 * jit.c (jit_program_space_key): Change type. Move lower.
1746 (get_jit_program_space_data): Update.
1747 (jit_program_space_data_cleanup): Remove.
1748 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1749 Update.
1750 (struct jit_program_space_data): Add initializers.
1751
51df2ae3
TT
17522019-07-10 Tom Tromey <tromey@adacore.com>
1753
1754 * solib-darwin.c (struct darwin_info): Add initializers.
1755 (solib_darwin_pspace_data): Change type.
1756 (darwin_pspace_data_cleanup): Remove.
1757 (get_darwin_info, _initialize_darwin_solib): Update.
1758
18101a35
TT
17592019-07-10 Tom Tromey <tromey@adacore.com>
1760
1761 * remote-sim.c (struct sim_inferior_data): Add initializers,
1762 constructor, and destructor.
1763 (sim_inferior_data_key): Change type. Move lower.
1764 (check_for_duplicate_sim_descriptor): Update.
1765 (get_sim_inferior_data): Use new. Update.
1766 (~sim_inferior_data_cleanup): Rename from
1767 sim_inferior_data_cleanup. Simplify.
1768 (gdbsim_close_inferior, simulator_command)
1769 (sim_command_completer, _initialize_remote_sim): Update.
1770 (next_pid, INITIAL_PID): Move earlier.
1771
05b08ac1
TT
17722019-07-10 Tom Tromey <tromey@adacore.com>
1773
1774 * python/python-internal.h (create_thread_object): Return
1775 gdbpy_ref.
1776 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1777 * python/py-inferior.c (struct threadlist_entry): Add
1778 constructor.
1779 <thread_obj>: Now a gdbpy_ref.
1780 (thread_to_thread_object): Update.
1781 (add_thread_object): Use new.
1782 (delete_thread_object): Use delete.
1783 (infpy_threads): Update.
1784 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1785 GIL.
1786
32372d80
TT
17872019-07-10 Tom Tromey <tromey@adacore.com>
1788
1789 * valops.c (value_cast): Specialize error message for Ada.
1790
5c458ae8
SM
17912019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1792
1793 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1794
4c462cb0
SM
17952019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1796
1797 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1798 bpstat_should_step): Return bool, adjust comments.
1799 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1800 bpstat_should_step): Likewise.
1801
89abbcc2
AH
18022019-07-10 Alan Hayward <alan.hayward@arm.com>
1803
1804 * features/Makefile: Use feature target descriptions for Arm.
1805 * features/arm/arm-core.c: Generate new file.
1806 * features/arm/arm-fpa.c: Likewise.
1807 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1808 * features/arm/arm-m-profile.c: Likewise.
1809 * features/arm/arm-vfpv2.c: Likewise.
1810 * features/arm/arm-vfpv3.c: Likewise.
1811 * features/arm/xscale-iwmmxt.c: Likewise.
1812 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1813
166a82be
AH
18142019-07-10 Alan Hayward <alan.hayward@arm.com>
1815
1816 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1817 ptrace earlier.
1818
9fb4c7e9
AH
18192019-07-10 Alan Hayward <alan.hayward@arm.com>
1820
1821 * features/aarch64-pauth.c: Regenerate.
1822
e2d0f980
SM
18232019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1824
1825 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1826 bool.
1827 (bpstat_what): Use false instead of 0.
1828
a38118e5
PA
18292019-07-09 Pedro Alves <palves@redhat.com>
1830
1831 * break-catch-throw.c (is_exception_catchpoint): New.
1832 * breakpoint.c (print_one_breakpoint_location): New parameter
1833 'raw_loc'. Handle it. Use
1834 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1835 looking at the breakpoint's type.
1836 (print_one_breakpoint): If handling "maint info breakpoints", also
1837 print locations of exception catchpoints.
1838 * breakpoint.h (is_exception_catchpoint): Declare.
1839
cb1e4e32
PA
18402019-07-09 Pedro Alves <palves@redhat.com>
1841
1842 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1843 "addr" field.
1844 (allocate_location_exception_catchpoint): New.
1845 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1846 (initialize_throw_catchpoint_ops): Install
1847 allocate_location_exception_catchpoint as allocate_location
1848 method.
1849 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1850 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1851 bp_loc_other.
1852 (breakpoint_address_is_meaningful): Delete.
1853 (bl_address_is_meaningful): New.
1854 (breakpoint_locations_match): Adjust comment.
1855 (bp_location_from_bp_type): New, factored out of...
1856 (bp_location::bp_location(breakpoint *)): ... this.
1857 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1858 factored out of...
1859 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1860 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1861 breakpoint_address_is_meaningful.
1862 (bp_locations_compare): Adjust comment.
1863 (update_global_location_list): Use bl_address_is_meaningful
1864 instead of breakpoint_address_is_meaningful.
1865 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1866 explicit.
1867 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1868 * python/py-breakpoint.c (bppy_get_location): No longer check
1869 whether location is null.
1870
b58a68fe
PA
18712019-07-09 Pedro Alves <palves@redhat.com>
1872
1873 PR c++/15468
1874 * breakpoint.c (print_one_breakpoint_location): Remove
1875 single-location assert.
1876
268a13a5
TT
18772019-07-09 Tom Tromey <tom@tromey.com>
1878
1879 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1880 * configure: Rebuild.
1881 * configure.ac: Change common to gdbsupport.
1882 * gdbsupport: Rename from common.
1883 * acinclude.m4: Change common to gdbsupport.
1884 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1885 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1886 gdbsupport.
1887 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1888 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1889 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1890 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1891 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1892 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1893 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1894 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1895 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1896 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1897 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1898 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1899 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1900 coff-pe-read.c, command.h, compile/compile-c-support.c,
1901 compile/compile-c.h, compile/compile-cplus-symbols.c,
1902 compile/compile-cplus-types.c, compile/compile-cplus.h,
1903 compile/compile-loc2c.c, compile/compile.c, completer.c,
1904 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1905 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1906 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1907 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1908 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1909 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1910 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1911 features/aarch64-core.c, features/aarch64-fpu.c,
1912 features/aarch64-pauth.c, features/aarch64-sve.c,
1913 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1914 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1915 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1916 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1917 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1918 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1919 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1920 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1921 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1922 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1923 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1924 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1925 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1926 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1927 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1928 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1929 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1930 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1931 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1932 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1933 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1934 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1935 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1936 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1937 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1938 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1939 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1940 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1941 minsyms.c, mips-linux-tdep.c, namespace.h,
1942 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1943 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1944 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1945 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1946 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1947 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1948 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1949 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1950 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1951 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1952 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1953 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1954 procfs.c, producer.c, progspace.h, psymtab.h,
1955 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1956 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1957 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1958 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1959 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1960 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1961 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1962 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1963 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1964 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1965 target-memory.c, target.c, target.h, target/waitstatus.c,
1966 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1967 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1968 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1969 unittests/array-view-selftests.c,
1970 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1971 unittests/common-utils-selftests.c,
1972 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1973 unittests/format_pieces-selftests.c,
1974 unittests/function-view-selftests.c,
1975 unittests/lookup_name_info-selftests.c,
1976 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1977 unittests/mkdir-recursive-selftests.c,
1978 unittests/observable-selftests.c,
1979 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1980 unittests/parse-connection-spec-selftests.c,
1981 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1982 unittests/scoped_fd-selftests.c,
1983 unittests/scoped_mmap-selftests.c,
1984 unittests/scoped_restore-selftests.c,
1985 unittests/string_view-selftests.c, unittests/style-selftests.c,
1986 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1987 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1988 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1989 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1990 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1991 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1992
5b0e2db4
AB
19932019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1996 bool value.
1997 (decode_digits_ordinary): Set explicit_line field in sal.
1998 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1999 symtab_and_line that was set on an explicit line number in
2000 assembler code. Do always update the recorded symtab and line if
2001 we do skip the prologue.
2002
0ba852ab
AB
20032019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * breakpoint.c (set_breakpoint_location_function): Remove
2006 explicit_loc parameter.
2007 (momentary_breakpoint_from_master): Update call to
2008 set_breakpoint_location_function.
2009 (add_location_to_breakpoint): Likewise.
2010
b3a7d171
AB
20112019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2012
2013 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2014 required features based on default bfd type when no specific bfd
2015 is present.
2016
1f6f6e21
PW
20172019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2018
2019 * NEWS: Mention that GDB printf and eval commands can now print
2020 C-style and Ada-style convenience var strings without
2021 calling the inferior.
2022 * printcmd.c (printf_c_string): Locally print GDB internal var
2023 instead of transiting via the inferior.
2024 (printf_wide_c_string): Likewise.
2025
20262019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2027
2028 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2029
0598af48
TT
20302019-07-04 Tom Tromey <tom@tromey.com>
2031
2032 PR tui/24724:
2033 * tui/tui-winsource.c (tui_clear_source_content): Update.
2034 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2035 (tui_update_breakpoint_info): Update.
2036 (tui_set_exec_info_content): Update.
2037 * tui/tui-source.c (tui_set_source_content_nil): Update.
2038 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2039 has_break.
2040 * tui/tui-data.h (enum tui_bp_flag): New.
2041 (tui_bp_flags): New enum flags type.
2042 (struct tui_source_element) <break_mode>: Change type. Rename
2043 from has_break.
2044 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2045 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2046 constants.
2047 * tui/tui-winsource.h: Fix comment.
2048
350fab54
AH
20492019-07-04 Alan Hayward <alan.hayward@arm.com>
2050
2051 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2052 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2053 (store_fpregs_to_thread)
2054 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2055 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2056 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2057 (IWMMXT_REGS_SIZE): Add define.
2058 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2059 (fetch_vfp_regs, store_vfp_regs)
2060 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2061 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2062
f0452268
AH
20632019-07-04 Alan Hayward <alan.hayward@arm.com>
2064
2065 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2066 defines.
2067 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2068 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2069 (ARM_INT_REGISTER_SIZE): ...to this.
2070 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2071 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2072 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2073 (arm_linux_collect_gregset, supply_nwfpe_register)
2074 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2075 defines.
2076 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2077 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2078 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2079 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2080 (arm_return_in_memory, arm_store_return_value)
2081 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2082 (arm_record_ld_st_multiple): Likewise.
2083 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2084 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2085
e935475c
AH
20862019-07-04 Alan Hayward <alan.hayward@arm.com>
2087
2088 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2089 AARCH64_DISPLACED_MODIFIED_INSNS.
2090 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2091 (aarch64_displaced_step_copy_insn): Likewise.
2092 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2093 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2094 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2095 ARM_DISPLACED_MODIFIED_INSNS.
2096 * arm-tdep.c (arm_gdbarch_init): Likewise.
2097 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2098 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2099 (struct arm_displaced_step_closure): Use
2100 ARM_DISPLACED_MODIFIED_INSNS.
2101
df0bb381
AH
21022019-07-04 Alan Hayward <alan.hayward@arm.com>
2103
2104 * features/Makefile: Remove unused xml files.
2105 * features/aarch64.xml: Remove.
2106 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2107 * features/i386/amd64-avx-avx512.xml: Remove.
2108 * features/i386/amd64-avx-linux.xml: Remove.
2109 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2110 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2111 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2112 * features/i386/amd64-avx-mpx.xml: Remove.
2113 * features/i386/amd64-avx.xml: Remove.
2114 * features/i386/amd64-linux.xml: Remove.
2115 * features/i386/amd64-mpx-linux.xml: Remove.
2116 * features/i386/amd64-mpx.xml: Remove.
2117 * features/i386/amd64.xml: Remove.
2118 * features/i386/i386-avx-avx512-linux.xml: Remove.
2119 * features/i386/i386-avx-avx512.xml: Remove.
2120 * features/i386/i386-avx-linux.xml: Remove.
2121 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2122 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2123 * features/i386/i386-avx-mpx-linux.xml: Remove.
2124 * features/i386/i386-avx-mpx.xml: Remove.
2125 * features/i386/i386-avx.xml: Remove.
2126 * features/i386/i386-linux.xml: Remove.
2127 * features/i386/i386-mmx-linux.xml: Remove.
2128 * features/i386/i386-mmx.xml: Remove.
2129 * features/i386/i386-mpx-linux.xml: Remove.
2130 * features/i386/i386-mpx.xml: Remove.
2131 * features/i386/i386.xml: Remove.
2132 * features/i386/x32-avx-avx512-linux.xml: Remove.
2133 * features/i386/x32-avx-linux.xml: Remove.
2134 * features/i386/x32-linux.xml: Remove.
2135
edd6266a
AH
21362019-07-04 Alan Hayward <alan.hayward@arm.com>
2137
2138 * regformats/aarch64.dat: Remove.
2139 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2140 * regformats/i386/amd64-avx-linux.dat: Remove.
2141 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2142 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2143 * regformats/i386/amd64-linux.dat: Remove.
2144 * regformats/i386/amd64-mpx-linux.dat: Remove.
2145 * regformats/i386/amd64.dat: Remove.
2146 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2147 * regformats/i386/i386-avx-linux.dat: Remove.
2148 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2149 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2150 * regformats/i386/i386-linux.dat: Remove.
2151 * regformats/i386/i386-mmx-linux.dat: Remove.
2152 * regformats/i386/i386-mpx-linux.dat: Remove.
2153 * regformats/i386/i386.dat: Remove.
2154 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2155 * regformats/i386/x32-avx-linux.dat: Remove.
2156 * regformats/i386/x32-linux.dat: Remove.
2157
2b40fda7
AH
21582019-07-04 Alan Hayward <alan.hayward@arm.com>
2159
2160 * aarch64-tdep.c: Remove xml self tests.
2161 * amd64-linux-tdep.c: Likewise.
2162 * amd64-tdep.c: Likewise.
2163 * i386-linux-tdep.c: Likewise.
2164 * i386-tdep.c: Likewise.
2165
5f4ba3e7
PA
21662019-07-03 Pedro Alves <palves@redhat.com>
2167
2168 PR cli/24732
2169 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2170 (pipe_cmd_option_defs): New.
2171 (make_pipe_cmd_options_def_group): New.
2172 (pipe_command): Use gdb::option::process_options.
2173 (pipe_command_completer): New function.
2174 (_initialize_cli_cmds): Install completer for "pipe" command.
2175
3d9be6f5
PA
21762019-07-03 Pedro Alves <palves@redhat.com>
2177
2178 * cli/cli-option.c (union option_value) <string>: New field.
2179 (struct option_def_and_value): Add ctor, move ctor, dtor and
2180 use DISABLE_COPY_AND_ASSIGN.
2181 (option_def_and_value::clear_value): New.
2182 (parse_option, save_option_value_in_ctx, get_val_type_str)
2183 (add_setshow_cmds_for_options): Handle var_string.
2184 * cli-option.h (union option_def::var_address) <string>: New
2185 field.
2186 (struct string_option_def): New.
2187 * maint-test-options.c (struct test_options_opts): Add default
2188 ctor and use DISABLE_COPY_AND_ASSIGN.
2189 <string_opt>: New field.
2190 (test_options_opts::~test_options_opts): New.
2191 (test_options_opts::dump): Also dump "-string".
2192 (test_options_option_defs): Install "string.
2193
41fc454c
PA
21942019-07-03 Pedro Alves <palves@redhat.com>
2195
2196 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2197 option_value with a null enumeration.
2198 (complete_options): Save the option values in the context.
2199 (save_option_value_in_ctx): New, factored out from ...
2200 (process_options): ... here.
2201 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2202 of the function.
2203 * maint-test-options.c (test_options_opts::dump): New, factored
2204 out from ...
2205 (maintenance_test_options_command_mode): ... here.
2206 (maintenance_test_options_command_completion_result): Delete.
2207 (maintenance_test_options_command_completion_text): Update
2208 comment.
2209 (maintenance_show_test_options_completion_result): Change
2210 prototype. Just print
2211 maintenance_test_options_command_completion_text.
2212 (save_completion_result): New.
2213 (maintenance_test_options_completer_mode): Pass options context to
2214 complete_options, and then save a dump.
2215 (_initialize_maint_test_options): Use add_cmd to install "maint
2216 show test-options-completion-result".
2217
fdbc9870
PA
22182019-07-03 Pedro Alves <palves@redhat.com>
2219
2220 * NEWS (New commands): Mention "with" and "maint with".
2221 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2222 (with_command, with_command_completer): New.
2223 (pipe_command): Adjust to new repeat_previous
2224 interface.
2225 (_initialize_cli_cmds): Install the "with" command and its "w"
2226 alias.
2227 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2228 declarations.
2229 * cli/cli-setshow.c (parse_cli_var_uinteger)
2230 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2231 argument strings for all var_types.
2232 (get_setshow_command_value_string): New, factored out from ...
2233 (do_show_command): ... this.
2234 * cli/cli-setshow.h: Include <string>.
2235 (get_setshow_command_value_string): Declare.
2236 * command.h (repeat_previous): Now returns const char *. Adjust
2237 comment.
2238 * maint.c: Include "cli/cli-cmds.h".
2239 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2240 (_initialize_maint_cmds): Register the "maintenance with" command.
2241 * top.c (repeat_previous): Move bits from pipe_command here:
2242 Return the saved command line, if any; error out if there's no
2243 command to relaunch.
2244
c6ac8931
PA
22452019-07-03 Pedro Alves <palves@redhat.com>
2246
2247 * NEWS (New commands): Mention "maint set/show test-settings"
2248 instead of "maint test-settings".
2249 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2250 (maintenance_test_settings_set_list): Rename to ...
2251 (maintenance_set_test_settings_list): ... this.
2252 (maintenance_test_settings_show_list): Rename to ...
2253 (maintenance_show_test_settings_list): ... this.
2254 (maintenance_test_settings_cmd): Delete.
2255 (maintenance_test_settings_set_cmd): ...
2256 (maintenance_set_test_settings_cmd): ... this.
2257 (maintenance_test_settings_show_cmd): ...
2258 (maintenance_show_test_settings_cmd): ... this.
2259 (maintenance_test_settings_show_value_cmd):
2260 (maintenance_show_test_settings_value_cmd): ... this.
2261 (_initialize_maint_test_settings): No longer install the "maint
2262 test-settings" prefix command. Rename "maint test-settings set"
2263 to "maint set test-settings", and "maint test-settings show" to
2264 "maint show test-settings". Adjust all subcommands.
2265
d1fcf2fd
PA
22662019-07-03 Pedro Alves <palves@redhat.com>
2267
2268 * maint-test-settings.c: Fix file's intro comment. Replace all
2269 references to "test-options" with references to "test-settings",
2270 in comments.
2271
970f9d09
PA
22722019-07-03 Pedro Alves <palves@redhat.com>
2273
2274 * maint-test-settings.c (maintenance_test_settings_xxx)
2275 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2276 New.
2277 (maintenance_test_settings_enums): Use them.
2278 (maintenance_test_settings_enum): Default to
2279 maintenance_test_settings_xxx.
2280 (_initialize_maint_test_settings): Initialize
2281 MAINTENANCE_TEST_SETTINGS_FILENAME.
2282
f3869b1a
SM
22832019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2284
2285 * breakpoint.h (remove_breakpoints_inf): Change return type to
2286 void, move function documentation here.
2287 * breakpoint.c (remove_breakpoints_inf): Change return type to
2288 void, move function documentation to header.
2289
54d66006
PA
22902019-07-02 Pedro Alves <palves@redhat.com>
2291
2292 * NEWS (Completion improvements): Mention "info threads".
2293 * thread.c (struct info_threads_opts, info_threads_option_defs)
2294 (make_info_threads_options_def_group): New.
2295 (info_threads_command): Use gdb::option::process_options.
2296 (info_threads_command_completer): New.
2297 (_initialize_thread): Use gdb::option::build_help to build the
2298 help text for "info threads".
2299
854f6088
SM
23002019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2301
2302 * defs.h (generic_load): Move from here...
2303 * symfile.h (generic_load): ... to here. Rename name parameter
2304 to args.
2305 * symfile.c (generic_load): Add comment.
2306
54ee4252
TT
23072019-07-01 Tom Tromey <tromey@adacore.com>
2308
2309 * dwarf2read.c
2310 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2311 declaration of without_params. Fix formatting.
2312
65392b3e
TT
23132019-07-01 Tom Tromey <tromey@adacore.com>
2314
2315 * ada-exp.y (find_primitive_type): Update.
2316 * ada-lang.h (ada_lookup_symbol): Update.
2317 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2318 parameter.
2319 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2320
7d7571f0
SDJ
23212019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2322
2323 PR breakpoints/24541
2324 * gdbarch.c: Regenerate.
2325 * gdbarch.h: Regenerate.
2326 * gdbarch.sh: Add 'stap_adjust_register'.
2327 * i386-tdep.c: Include '<unordered_set>'.
2328 (i386_stap_adjust_register): New function.
2329 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2330 * stap-probe.c (stap_parse_register_operand): Call
2331 'gdbarch_stap_adjust_register'.
2332
5af5392a
SDJ
23332019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2334
2335 PR python/24742
2336 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2337 * python/python.c (do_start_initialization): Use 'xmalloc'
2338 instead of 'PyMem_Malloc'.
2339
10d06d82
TT
23402019-06-28 Tom Tromey <tromey@adacore.com>
2341
2342 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2343 for Ada.
2344
1b7f24cd
TT
23452019-06-27 Tom Tromey <tromey@adacore.com>
2346
2347 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2348 objfile_key.
2349 (arm_find_mapping_symbol, arm_record_special_symbol)
2350 (_initialize_arm_tdep): Update.
2351 (arm_objfile_data_free): Remove.
2352
3d507ff2
TT
23532019-06-27 Tom Tromey <tromey@adacore.com>
2354
2355 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2356 to cp_print_static_field.
2357
762c164d
TT
23582019-06-26 Tom Tromey <tromey@adacore.com>
2359
2360 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2361 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2362 declare.
2363
aa2f9bcf
AH
23642019-06-26 Alan Hayward <alan.hayward@arm.com>
2365
2366 * features/aarch64-core.c (create_feature_aarch64_core):
2367 Regenerate.
2368 * features/aarch64-core.xml: Add cpsr flags.
2369
3426ae57
AH
23702019-06-26 Alan Hayward <alan.hayward@arm.com>
2371
2372 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2373 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2374
4838e44c
SM
23752019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2376
2377 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2378 field.
2379 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2380 use.
2381 (arm_record_special_symbol): Don't insert new symbol in sorted
2382 position, push it at the end.
2383
54cc7474
SM
23842019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2385
2386 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2387 (arm_mapping_symbol_s): Remove.
2388 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2389 (arm_mapping_symbol_vec): New typedef.
2390 (struct arm_per_objfile): Add constructor.
2391 <section_maps>: Change type to
2392 std::unique_ptr<arm_mapping_symbol_vec[]>.
2393 (arm_compare_mapping_symbols): Remove.
2394 (arm_find_mapping_symbol): Adjust to section_maps type change.
2395 (arm_objfile_data_free): Call delete on arm_per_objfile.
2396 (arm_record_special_symbol): Adjust to section_maps type change.
2397 Allocate arm_per_objfile with new.
2398
b65b566c
PW
23992019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2400
2401 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2402 with the command prefix.
2403
c2fc64f5
TT
24042019-06-25 Tom Tromey <tom@tromey.com>
2405
2406 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2407 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2408
fb54fa76
TT
24092019-06-25 Tom Tromey <tom@tromey.com>
2410
2411 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2412 type.
2413 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2414 protected.
2415
f7952c57
TT
24162019-06-25 Tom Tromey <tom@tromey.com>
2417
2418 * tui/tui-winsource.c
2419 (tui_source_window_base::set_is_exec_point_at): Add check against
2420 LOA_ADDRESS.
2421
17568d78
TT
24222019-06-25 Tom Tromey <tom@tromey.com>
2423
2424 * tui/tui-source.c (tui_set_source_content): Don't check before
2425 xfree.
2426 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2427
53e7cdba
TT
24282019-06-25 Tom Tromey <tom@tromey.com>
2429
2430 * tui/tui-winsource.h (tui_update_source_window_as_is)
2431 (tui_alloc_source_buffer, tui_line_is_displayed)
2432 (tui_addr_is_displayed): Change type of win_info.
2433 * tui/tui-winsource.c (tui_update_source_window_as_is)
2434 (tui_clear_source_content, tui_show_source_line)
2435 (tui_show_source_content, tui_source_window_base::refill)
2436 (tui_source_window_base::set_is_exec_point_at)
2437 (tui_source_window_base::set_is_exec_point_at)
2438 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2439 (tui_alloc_source_buffer, tui_line_is_displayed)
2440 (tui_addr_is_displayed): Change type of win_info. Update.
2441 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2442 (tui_source_window_base::do_make_visible_with_new_height):
2443 Update.
2444 * tui/tui-source.c (tui_set_source_content)
2445 (tui_set_source_content_nil)
2446 (tui_source_window::do_scroll_vertical): Update.
2447 * tui/tui-layout.c (show_layout): Update.
2448 * tui/tui-disasm.c (tui_set_disassem_content)
2449 (tui_disasm_window::do_scroll_vertical): Update.
2450 * tui/tui-data.h (tui_win_content): Remove.
2451 (struct tui_gen_win_info) <content, content_size>: Remove.
2452 (struct tui_source_element): Add initializers and destructor.
2453 (union tui_which_element, struct tui_win_element): Remove.
2454 (struct tui_source_window_base) <content>: New field.
2455 (struct tui_data_window): Remove destructor.
2456 (tui_alloc_content, tui_free_win_content)
2457 (tui_free_all_source_wins_content): Don't declare.
2458 * tui/tui-data.c (tui_initialize_static_data): Update.
2459 (init_content_element, tui_alloc_content): Remove.
2460 (~tui_gen_win_info): Update.
2461 (~tui_data_window, tui_free_all_source_wins_content)
2462 (tui_free_win_content, free_content, free_content_elements):
2463 Remove.
2464
7908abbf
TT
24652019-06-25 Tom Tromey <tom@tromey.com>
2466
2467 * tui/tui-winsource.h (tui_clear_source_content)
2468 (tui_erase_source_content, tui_show_source_content): Change type
2469 of win_info.
2470 * tui/tui-winsource.c (tui_clear_source_content)
2471 (tui_erase_source_content, tui_show_source_content): Change type
2472 of win_info.
2473 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2474 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2475 win_info.
2476 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2477 win_info.
2478 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2479
02c28df0
TT
24802019-06-25 Tom Tromey <tom@tromey.com>
2481
2482 * tui/tui-winsource.c (tui_clear_source_content)
2483 (tui_source_window_base::set_is_exec_point_at): Update.
2484 * tui/tui-source.c (tui_set_source_content_nil): Update.
2485 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2486 a bool.
2487 * tui/tui-data.c (init_content_element): Update.
2488
6658b1bf
TT
24892019-06-25 Tom Tromey <tom@tromey.com>
2490
2491 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2492 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2493 * tui/tui-layout.c (init_and_make_win): Update.
2494 * tui/tui.h (enum tui_win_type): Update.
2495 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2496 tui_win_is_auxillary.
2497 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2498 tui_win_is_auxillary.
2499
21e1c91e
TT
25002019-06-25 Tom Tromey <tom@tromey.com>
2501
2502 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2503 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2504 (tui_delete_data_content_windows, tui_display_all_data)
2505 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2506 Update.
2507 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2508 * tui/tui-regs.c (tui_last_regs_line_no)
2509 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2510 (tui_show_registers): Update.
2511 (tui_show_register_group): Return void. Update.
2512 (tui_display_registers_from, tui_display_reg_element_at_line)
2513 (tui_display_registers_from_line, tui_check_register_values):
2514 Update.
2515 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2516 member.
2517 (struct tui_data_window) <regs_content>: Now a std::vector.
2518 <regs_content_count>: Remove.
2519 (tui_add_content_elements, tui_free_data_content): Don't declare.
2520 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2521 (init_content_element): Remove DATA_WIN case. Add assert.
2522 (tui_add_content_elements): Remove.
2523 (tui_data_window): Update.
2524 (tui_free_data_content): Remove.
2525 (free_content_elements): Remove DATA_WIN case.
2526
115ac53b
TT
25272019-06-25 Tom Tromey <tom@tromey.com>
2528
2529 * tui/tui-data.c (tui_data_item_window): Update.
2530 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2531 * tui/tui-windata.c (tui_display_all_data)
2532 (tui_display_data_from_line): Update.
2533 (tui_check_data_values): Remove.
2534 * tui/tui-regs.c (tui_show_register_group)
2535 (tui_display_reg_element_at_line): Update.
2536 * tui/tui-hooks.c (tui_register_changed)
2537 (tui_refresh_frame_and_register_information): Call
2538 tui_check_register_values.
2539 * tui/tui-data.h (struct tui_data_window) <data_content,
2540 data_content_count, data_type>: Remove.
2541 (enum tui_data_type): Remove.
2542
2543 * tui/tui-data.c (tui_data_window::clear_detail)
2544 (~tui_data_window): Update.
2545
eaf9738b
TT
25462019-06-25 Tom Tromey <tom@tromey.com>
2547
2548 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2549 declare.
2550 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2551 Rename from tui_first_data_item_displayed. Update.
2552 (tui_data_window::refresh_all)
2553 (tui_data_window::do_scroll_vertical): Update.
2554 * tui/tui-data.h (struct tui_data_window)
2555 <first_data_item_displayed>: Declare new method.
2556
31ca4723
TT
25572019-06-25 Tom Tromey <tom@tromey.com>
2558
2559 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2560 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2561 contents...
2562 (tui_initialize_static_data): ...here.
2563
41bcff7f
TT
25642019-06-25 Tom Tromey <tom@tromey.com>
2565
2566 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2567 (tui_display_registers_from, tui_check_register_values): Update.
2568 (tui_display_register): Remove win_info parameter; update.
2569 (tui_get_register): Change type of parameters.
2570 * tui/tui-data.h (struct tui_data_element): Remove.
2571 (union tui_which_element) <data>: Remove.
2572 <data_window>: Change type.
2573 (struct tui_data_item_window): New.
2574 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2575 case. Add assert.
2576 (~tui_data_item_window): New destructor.
2577 (free_content_elements): Remove DATA_ITEM_WIN case.
2578
d2802c33
TT
25792019-06-25 Tom Tromey <tom@tromey.com>
2580
2581 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2582 Remove.
2583
dd835f8b
TT
25842019-06-25 Tom Tromey <tom@tromey.com>
2585
2586 * tui/tui-data.h (struct tui_command_element): Remove.
2587 (union tui_which_element) <command>: Remove.
2588 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2589 assert.
2590 (free_content_elements): Remove CMD_WIN case.
2591
bd7db367
TT
25922019-06-25 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-layout.c (tui_set_layout): Update.
2595 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2596 * tui/tui-data.c (layout_def): Update.
2597
3add462f
TT
25982019-06-25 Tom Tromey <tom@tromey.com>
2599
2600 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2601 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2602 (tui_source_window_base::set_new_height): Update.
2603 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2604 Update.
2605 (tui_set_locator_fullname, tui_set_locator_info)
2606 (tui_show_frame_info): Update.
2607 * tui/tui-source.c (tui_set_source_content)
2608 (tui_source_is_displayed): Update.
2609 * tui/tui-layout.c (show_source_disasm_command, show_data)
2610 (show_source_or_disasm_and_command): Update.
2611 * tui/tui-disasm.c (tui_set_disassem_content)
2612 (tui_get_begin_asm_address): Update.
2613 * tui/tui-data.h (struct tui_locator_element): Remove.
2614 (union tui_which_element) <locator>: Remove.
2615 (struct tui_locator_window): New.
2616 (tui_locator_win_info_ptr): Change return type.
2617 * tui/tui-data.c (_locator): Change type.
2618 (tui_locator_win_info_ptr): Change return type.
2619 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2620 (tui_alloc_content): Add assert.
2621
489e9d8b
TT
26222019-06-25 Tom Tromey <tom@tromey.com>
2623
2624 * tui/tui-winsource.c
2625 (tui_exec_info_window::maybe_allocate_content): New method.
2626 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2627 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2628 (make_source_or_disasm_window): Add cast.
2629 * tui/tui-data.h (union tui_which_element) <simple_string>:
2630 Remove.
2631 (struct tui_source_info): New.
2632 (struct tui_source_window_base) <execution_info>: Change type.
2633 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2634 case, and add assert.
2635 (tui_alloc_content): Add assert.
2636
c3fabb7d
TT
26372019-06-25 Tom Tromey <tom@tromey.com>
2638
2639 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2640 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2641 * tui/tui-data.c (tui_alloc_win_info): Remove.
2642
bbc228ee
TT
26432019-06-25 Tom Tromey <tom@tromey.com>
2644
2645 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2646 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2647 can_highlight.
2648
5fcee43a
TT
26492019-06-25 Tom Tromey <tom@tromey.com>
2650
2651 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2652 make_visible_with_new_height method.
2653 (tui_win_info::make_visible_with_new_height): New method.
2654 (tui_source_window_base::do_make_visible_with_new_height)
2655 (tui_data_window::do_make_visible_with_new_height)
2656 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2657 (make_visible_with_new_height): Remove.
2658 (tui_resize_all, tui_adjust_win_heights): Use
2659 make_visible_with_new_height method.
2660 * tui/tui-data.h (struct tui_win_info)
2661 <do_make_visible_with_new_height, make_visible_with_new_height>:
2662 New methods.
2663 (struct tui_source_window_base, struct tui_data_window)
2664 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2665 methods.
2666
d83f1fe6
TT
26672019-06-25 Tom Tromey <tom@tromey.com>
2668
2669 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2670 method.
2671 (update_tab_width): Call update_tab_width method.
2672 * tui/tui-data.h (struct tui_win_info)
2673 (struct tui_source_window_base) <update_tab_width>: New methods.
2674
17374de4
TT
26752019-06-25 Tom Tromey <tom@tromey.com>
2676
2677 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2678 parameter.
2679 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2680 parameter.
2681 (tui_gen_win_info::make_visible): Update.
2682 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2683 parameter.
2684 * tui/tui-data.h (enum tui_box): New enum.
2685 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2686
f936bca2
TT
26872019-06-25 Tom Tromey <tom@tromey.com>
2688
2689 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2690 init_and_make_win for EXEC_INFO_WIN.
2691 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2692 longer inline.
2693 (struct tui_win_info) <~tui_win_info>: Inline.
2694 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2695 Don't declare.
2696 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2697 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2698 Remove.
2699 (tui_initialize_static_data): Update.
2700 (~tui_gen_win_info): Handle more cleanup here.
2701 (~tui_source_window_base): Delete "execution_info".
2702 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2703
d6ba6a11
TT
27042019-06-25 Tom Tromey <tom@tromey.com>
2705
2706 * tui/tui-layout.c (make_command_window): Don't set
2707 can_highlight.
2708 (show_source_disasm_command): Call the reset method.
2709 (show_data): Don't set can_highlight. Call the reset method.
2710 (tui_gen_win_info::reset): Rename from init_gen_win_info
2711 (init_and_make_win): Simplify. Return tui_gen_win_info.
2712 (show_source_or_disasm_and_command): Call the reset method.
2713 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2714 (struct tui_cmd_window): Set can_highlight.
2715
48a3bd16
TT
27162019-06-25 Tom Tromey <tom@tromey.com>
2717
2718 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2719 from make_visible.
2720 (tui_make_visible, tui_make_invisible): Rewrite.
2721 (tui_win_info::make_visible): Remove.
2722 (tui_source_window_base::make_visible): Update.
2723 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2724 method. Moved from...
2725 (struct tui_win_info) <make_visible>: ...here.
2726
c3bd716f
TT
27272019-06-25 Tom Tromey <tom@tromey.com>
2728
2729 * tui/tui-winsource.c
2730 (tui_source_window_base::do_scroll_horizontal): Remove direction
2731 parameter.
2732 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2733 direction parameter.
2734 * tui/tui-win.c (tui_win_info::forward_scroll)
2735 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2736 (tui_win_info::right_scroll): Update.
2737 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2738 direction parameter.
2739 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2740 direction parameter.
2741 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2742 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2743 Remove direction parameter.
2744 (struct tui_source_window_base, struct tui_source_window)
2745 (struct tui_disasm_window, struct tui_data_window)
2746 (struct tui_cmd_window): Update.
2747
21c32dca
TT
27482019-06-25 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-winsource.h (tui_set_exec_info_content)
2751 (tui_show_exec_info_content, tui_erase_exec_info_content)
2752 (tui_clear_exec_info_content, tui_update_exec_info): Change
2753 argument to tui_source_window_base.
2754 * tui/tui-winsource.c (tui_set_exec_info_content)
2755 (tui_show_exec_info_content, tui_erase_exec_info_content)
2756 (tui_clear_exec_info_content, tui_update_exec_info): Change
2757 argument to tui_source_window_base.
2758
73fbdc65
TT
27592019-06-25 Tom Tromey <tom@tromey.com>
2760
2761 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2762 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2763
33325343
TT
27642019-06-25 Tom Tromey <tom@tromey.com>
2765
2766 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2767 check.
2768
29d2c474
TT
27692019-06-25 Tom Tromey <tom@tromey.com>
2770
2771 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2772 type to void.
2773 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2774 type to void.
2775 * tui/tui-source.c (tui_set_source_content): Update.
2776 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2777
152f3f4b
TT
27782019-06-25 Tom Tromey <tom@tromey.com>
2779
2780 * tui/tui-win.c (window_name_completer, tui_set_focus)
2781 (tui_all_windows_info): Use name method.
2782 * tui/tui-data.h (struct tui_gen_win_info)
2783 (struct tui_source_window, struct tui_disasm_window)
2784 (struct tui_data_window, struct tui_cmd_window) <name>: New
2785 method.
2786 (tui_win_name): Don't declare.
2787 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2788 (tui_win_name): Remove.
2789
be4da588
TT
27902019-06-25 Tom Tromey <tom@tromey.com>
2791
2792 * tui/tui-winsource.h (tui_update_source_window)
2793 (tui_update_source_window_as_is): Change parameter type.
2794 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2795 to be a tui_source_window_base.
2796 (tui_update_source_window_as_is): Likewise.
2797 * tui/tui-win.c (make_visible_with_new_height): Update.
2798
5b81daba
TT
27992019-06-25 Tom Tromey <tom@tromey.com>
2800
2801 * tui/tui-winsource.c (tui_erase_source_content)
2802 (tui_show_source_content, tui_show_exec_info_content)
2803 (tui_erase_exec_info_content): Use refresh_window method.
2804 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2805 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2806 from tui_refresh_win.
2807 (tui_data_window::refresh_window): New method.
2808 (tui_win_info::refresh, tui_source_window_base::refresh)
2809 (tui_refresh_all): Use refresh_window method.
2810 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2811 method.
2812 * tui/tui-regs.c (tui_display_register): Call refresh_window
2813 method.
2814 * tui/tui-layout.c (show_source_disasm_command)
2815 (show_source_or_disasm_and_command): Call refresh_window method.
2816 * tui/tui-data.h (struct tui_gen_win_info)
2817 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2818 New method.
2819
cb2ce893
TT
28202019-06-25 Tom Tromey <tom@tromey.com>
2821
2822 * tui/tui.c (tui_rl_other_window, tui_enable)
2823 (tui_is_window_visible, tui_get_command_dimension): Update.
2824 * tui/tui-winsource.c (tui_update_source_window_as_is)
2825 (tui_clear_source_content, tui_erase_source_content)
2826 (tui_show_source_line, tui_source_window_base::refill)
2827 (tui_source_window_base::do_scroll_horizontal)
2828 (tui_source_window_base::set_is_exec_point_at)
2829 (tui_update_breakpoint_info, tui_set_exec_info_content)
2830 (tui_alloc_source_buffer, tui_line_is_displayed)
2831 (tui_addr_is_displayed): Update.
2832 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2833 (tui_check_and_display_highlight_if_needed)
2834 (tui_win_info::make_visible, tui_win_info::refresh)
2835 (tui_refresh_all): Update.
2836 * tui/tui-windata.c (tui_first_data_item_displayed)
2837 (tui_delete_data_content_windows, tui_erase_data_content)
2838 (tui_display_all_data, tui_data_window::refresh_all)
2839 (tui_check_data_values): Update.
2840 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2841 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2842 (tui_win_info::backward_scroll, tui_refresh_all_win)
2843 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2844 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2845 (tui_source_window_base::set_new_height)
2846 (tui_data_window::set_new_height)
2847 (make_invisible_and_set_new_height)
2848 (make_visible_with_new_height, new_height_ok)
2849 (parse_scrolling_args): Update.
2850 * tui/tui-stack.c (tui_show_frame_info): Update.
2851 * tui/tui-source.c (tui_set_source_content)
2852 (tui_set_source_content_nil, tui_source_is_displayed)
2853 (tui_source_window::do_scroll_vertical): Update.
2854 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2855 (tui_display_registers_from, tui_display_reg_element_at_line)
2856 (tui_check_register_values, tui_reg_command): Update.
2857 * tui/tui-layout.c (tui_default_win_height)
2858 (show_source_disasm_command, show_data, init_and_make_win)
2859 (show_source_or_disasm_and_command): Update.
2860 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2861 (tui_redisplay_readline, tui_mld_flush)
2862 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2863 (tui_getc): Update.
2864 * tui/tui-disasm.c (tui_set_disassem_content)
2865 (tui_disasm_window::do_scroll_vertical): Update.
2866 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2867 Now virtual.
2868 (struct tui_win_info): Derive from tui_gen_win_info.
2869 <~tui_win_info>: Mark as override.
2870 <generic>: Remove member.
2871 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2872 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2873 (~tui_data_window, ~tui_win_info)
2874 (tui_free_all_source_wins_content): Update.
2875 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2876
ab313b35
TT
28772019-06-25 Tom Tromey <tom@tromey.com>
2878
2879 * tui/tui-layout.c (init_and_make_win): Use new.
2880 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2881 destructor, initializers.
2882 (tui_alloc_generic_win_info): Don't declare.
2883 * tui/tui-data.c (_locator): Add argument to constructor.
2884 (source_win, disasm_win): New globals.
2885 (exec_info): Remove.
2886 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2887 Update.
2888 (tui_alloc_generic_win_info): Remove.
2889 (init_content_element): Use new.
2890 (tui_win_info::tui_win_info): Update.
2891 (free_content_elements) <case DATA_WIN>: Use delete.
2892
dc2c33e4
TT
28932019-06-25 Tom Tromey <tom@tromey.com>
2894
2895 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2896 * tui/tui-windata.c (tui_first_data_item_displayed)
2897 (tui_delete_data_content_windows): Update.
2898 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2899 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2900 (tui_display_registers_from, tui_check_register_values): Update.
2901 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2902 pointer.
2903 * tui/tui-data.c (init_content_element): Update. Allocate the new
2904 window.
2905 (tui_free_data_content): Update.
2906 (free_content_elements) <case DATA_WIN>: Free the window.
2907
214a5cbe
TT
29082019-06-25 Tom Tromey <tom@tromey.com>
2909
2910 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2911 Update.
2912 * tui/tui-layout.c (make_command_window)
2913 (show_source_disasm_command, show_data, init_and_make_win)
2914 (show_source_or_disasm_and_command): Update.
2915 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2916 method.
2917 <can_highight, is_highlighted>: Now bool.
2918 (tui_set_win_highlight): Don't declare.
2919 * tui/tui-data.c (tui_set_win_highlight): Remove.
2920
8e2daf15
TT
29212019-06-25 Tom Tromey <tom@tromey.com>
2922
2923 * tui/tui-wingeneral.c (make_visible): Remove check of window
2924 type.
2925
8903bd8a
TT
29262019-06-25 Tom Tromey <tom@tromey.com>
2927
2928 * tui/tui-win.c (tui_win_info::max_height)
2929 (tui_cmd_window::max_height): New methods.
2930 (new_height_ok): Call max_height.
2931 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2932 <max_height>: New method.
2933
3f02ce1e
TT
29342019-06-25 Tom Tromey <tom@tromey.com>
2935
2936 * tui/tui-win.c (tui_source_window_base::set_new_height)
2937 (tui_data_window::set_new_height): New methods.
2938 (make_invisible_and_set_new_height): Call set_new_height method.
2939 * tui/tui-data.h (struct tui_win_info)
2940 (struct tui_source_window_base, struct tui_data_window)
2941 <set_new_height>: New method.
2942
1825f487
TT
29432019-06-25 Tom Tromey <tom@tromey.com>
2944
2945 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2946 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2947 tui_refresh_data_win.
2948 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2949 method.
2950 (tui_refresh_all_win): Call the refresh_all method.
2951 (tui_set_focus): Likewise.
2952 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2953 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2954 Likewise.
2955
ad54d15b
TT
29562019-06-25 Tom Tromey <tom@tromey.com>
2957
2958 * tui/tui-winsource.h (tui_refill_source_window)
2959 (tui_set_is_exec_point_at): Don't declare.
2960 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2961 (tui_source_window_base::refill): Rename from
2962 tui_refill_source_window.
2963 (tui_source_window_base::do_scroll_horizontal): Update.
2964 (tui_source_window_base::set_is_exec_point_at): Rename from
2965 tui_set_is_exec_point_at.
2966 (tui_update_all_breakpoint_info): Update.
2967 * tui/tui-stack.c (tui_show_frame_info): Update.
2968 * tui/tui-layout.c (show_data): Add cast.
2969 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2970 * tui/tui-data.h (struct tui_source_window_base) <refill,
2971 set_is_exec_point_at>: New methods.
2972 (tui_source_windows, tui_add_to_source_windows): Update types.
2973 (tui_add_to_source_windows): Remove redundant declaration.
2974 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2975 (tui_source_windows): Change return type.
2976 (tui_clear_source_windows_detail): Update.
2977 (tui_add_to_source_windows): Change type of parameter.
2978 (tui_free_all_source_wins_content): Update.
2979
2042b506
TT
29802019-06-25 Tom Tromey <tom@tromey.com>
2981
2982 * tui/tui-wingeneral.c (tui_win_info::refresh)
2983 (tui_source_window_base::refresh): New methods.
2984 (tui_refresh_all): Call the refresh method.
2985 * tui/tui-data.h (struct tui_win_info)
2986 (struct tui_source_window_base) <refresh>: New method.
2987
56122977
TT
29882019-06-25 Tom Tromey <tom@tromey.com>
2989
2990 * tui/tui.h (tui_is_window_visible): Return bool.
2991 * tui/tui.c (tui_is_window_visible): Return bool.
2992 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2993 (tui_make_visible, tui_make_invisible)
2994 (tui_win_info::make_visible)
2995 (tui_source_window_base::make_visible, make_all_visible)
2996 (tui_make_all_visible, tui_make_all_invisible): Update.
2997 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2998 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2999 bool.
3000 (struct tui_win_info, struct tui_source_window_base)
3001 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3002 * tui/tui-data.c (tui_init_generic_part): Update.
3003
cda37efb
TT
30042019-06-25 Tom Tromey <tom@tromey.com>
3005
3006 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3007 (tui_source_window_base::make_visible): New methods.
3008 (make_all_visible): Make method call.
3009 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3010 (struct tui_source_window_base, struct tui_cmd_window): Override
3011 make_visible.
3012 (tui_win_is_source_type): Don't declare.
3013 * tui/tui-data.c (tui_win_is_source_type): Remove.
3014
6a0ee02c
TT
30152019-06-25 Tom Tromey <tom@tromey.com>
3016
3017 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3018 NULL check.
3019
63901aec
TT
30202019-06-25 Tom Tromey <tom@tromey.com>
3021
3022 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3023 Inline constructor. Add initializers for members.
3024 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3025 constructors; now inline in class.
3026
ceb13a13
TT
30272019-06-25 Tom Tromey <tom@tromey.com>
3028
3029 * tui/tui-regs.c (tui_show_registers): Update.
3030 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3031 bool.
3032 * tui/tui-data.c (tui_data_window::clear_detail)
3033 (tui_data_window): Update.
3034
238eb706
TT
30352019-06-25 Tom Tromey <tom@tromey.com>
3036
3037 * tui/tui-windata.c (tui_display_all_data)
3038 (tui_display_data_from_line, tui_display_data_from)
3039 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3040 Update.
3041 * tui/tui-regs.c (tui_last_regs_line_no)
3042 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3043 (tui_show_registers, tui_show_register_group)
3044 (tui_display_registers_from, tui_display_reg_element_at_line)
3045 (tui_display_registers_from_line, tui_check_register_values)
3046 (tui_reg_next, tui_reg_prev): Update.
3047 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3048 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3049 tui_data_window.
3050 (struct tui_win_info) <detail>: Remove. Add new fields from
3051 tui_data_info.
3052 (TUI_DATA_WIN): Add cast.
3053 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3054 (~tui_data_window): Simplify.
3055
81491aa0
TT
30562019-06-25 Tom Tromey <tom@tromey.com>
3057
3058 * tui/tui-layout.c (show_source_disasm_command)
3059 (show_source_or_disasm_and_command): Update.
3060 * tui/tui-io.c (update_cmdwin_start_line)
3061 (tui_redisplay_readline): Update.
3062 * tui/tui-data.h (struct tui_command_info): Remove.
3063 (struct tui_win_info) <detail>: Remove command_info member.
3064 (struct tui_data_window) <start_line>: New member, from
3065 tui_command_info.
3066 (TUI_CMD_WIN): Add casts.
3067
e6e41501
TT
30682019-06-25 Tom Tromey <tom@tromey.com>
3069
3070 * tui/tui-winsource.c (tui_update_source_window)
3071 (tui_refill_source_window)
3072 (tui_source_window_base::do_scroll_horizontal)
3073 (tui_update_breakpoint_info, tui_set_exec_info_content)
3074 (tui_show_exec_info_content, tui_erase_exec_info_content)
3075 (tui_clear_exec_info_content): Update.
3076 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3077 Update.
3078 * tui/tui-win.c (make_invisible_and_set_new_height)
3079 (make_visible_with_new_height): Update.
3080 * tui/tui-source.c (tui_set_source_content)
3081 (tui_show_symtab_source): Update.
3082 * tui/tui-layout.c (extract_display_start_addr)
3083 (show_source_disasm_command, show_data)
3084 (make_source_or_disasm_window)
3085 (show_source_or_disasm_and_command): Update.
3086 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3087 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3088 "gdbarch".
3089 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3090 to tui_source_window_base.
3091 (struct tui_win_info) <detail>: Remove source_info member.
3092 (struct tui_source_window_base) <has_locator>: Inline.
3093 Move contents from tui_source_info; rename has_locator member to
3094 m_has_locator.
3095 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3096 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3097 header file.
3098 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3099 Simplify.
3100 (tui_free_all_source_wins_content): Cast to
3101 tui_source_window_base.
3102
44f0e208
TT
31032019-06-25 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-win.c (make_invisible_and_set_new_height)
3106 (make_visible_with_new_height): Call has_locator method.
3107 * tui/tui-layout.c (show_source_disasm_command, show_data)
3108 (show_source_or_disasm_and_command): Update for bool change.
3109 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3110 (tui_win_info) <has_locator>: New method.
3111 (struct tui_source_window_base) <has_locator>: New method.
3112 (tui_win_has_locator): Don't declare.
3113 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3114 from tui_win_has_locator.
3115 (tui_source_window_base): Use false, not FALSE.
3116
7778b912
TT
31172019-06-25 Tom Tromey <tom@tromey.com>
3118
3119 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3120 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3121 clear_detail method directly.
3122 (tui_clear_win_detail): Remove.
3123
f83d391c
TT
31242019-06-25 Tom Tromey <tom@tromey.com>
3125
3126 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3127 "this", not TUI_DISASM_WIN.
3128
13446e05
TT
31292019-06-25 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3132 declare.
3133 * tui/tui-winsource.c
3134 (tui_source_window_base::do_scroll_horizontal): Rename from
3135 tui_horizontal_source_scroll.
3136 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3137 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3138 from tui_vertical_data_scroll.
3139 * tui/tui-win.h (tui_scroll): Don't declare.
3140 * tui/tui-win.c (tui_win_info::forward_scroll)
3141 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3142 (tui_win_info::right_scroll): Rename and update.
3143 (tui_scroll_forward_command, tui_scroll_backward_command)
3144 (tui_scroll_left_command, tui_scroll_right_command): Update.
3145 (tui_scroll): Remove.
3146 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3147 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3148 from tui_vertical_source_scroll.
3149 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3150 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3151 from tui_vertical_disassem_scroll.
3152 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3153 do_scroll_horizontal>: New methods.
3154 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3155 Likewise.
3156 (struct tui_source_window_base): Add do_scroll_horizontal.
3157 (struct tui_source_window, struct tui_disasm_window): Add
3158 do_scroll_vertical.
3159 (struct tui_data_window, struct tui_cmd_window): Add
3160 do_scroll_horizontal and do_scroll_vertical.
3161 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3162
5cf82909
TT
31632019-06-25 Tom Tromey <tom@tromey.com>
3164
3165 * tui/tui-data.h (struct tui_source_window_base): New struct.
3166 (struct tui_source_window): Derive from tui_source_window_base.
3167 (struct tui_disasm_window): New struct.
3168 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3169 from tui_source_window::clear_detail.
3170 (tui_source_window_base): Rename from tui_source_window.
3171 (~tui_source_window_base): Rename from ~tui_source_window.
3172 (tui_alloc_win_info): Create a tui_disasm_window.
3173
ee1d42d6
TT
31742019-06-25 Tom Tromey <tom@tromey.com>
3175
3176 * tui/tui-data.h (struct tui_source_window)
3177 (struct tui_data_window): Declare destructors.
3178 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3179 destructors.
3180 (tui_win_info): Simplify.
3181
b4eb2452
TT
31822019-06-25 Tom Tromey <tom@tromey.com>
3183
3184 * tui/tui-winsource.c (tui_display_main)
3185 (tui_update_source_windows_with_addr)
3186 (tui_update_all_breakpoint_info): Update.
3187 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3188 (new_height_ok, parse_scrolling_args): Update.
3189 * tui/tui-stack.c (tui_show_frame_info): Update.
3190 * tui/tui-data.h (struct tui_list): Remove.
3191 (tui_source_windows): Return a reference to a std::vector.
3192 * tui/tui-data.c (source_windows): Now a std::vector.
3193 (tui_source_windows): Change return type.
3194 (tui_clear_source_windows): Rewrite.
3195 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3196 (tui_free_all_source_wins_content): Rewrite.
3197
8761a91b
TT
31982019-06-25 Tom Tromey <tom@tromey.com>
3199
3200 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3201 (struct tui_data_window, struct tui_cmd_window): Declare
3202 clear_detail method.
3203 * tui/tui-data.c (tui_source_window::clear_detail)
3204 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3205 methods.
3206 (tui_clear_win_detail): Simplify.
3207
0ed69eda
TT
32082019-06-25 Tom Tromey <tom@tromey.com>
3209
3210 * tui/tui-layout.c (make_source_window, make_disasm_window)
3211 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3212 Return the new window.
3213 (show_source_disasm_command, show_data)
3214 (show_source_or_disasm_and_command): Update.
3215
82432e10
TT
32162019-06-25 Tom Tromey <tom@tromey.com>
3217
3218 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3219 parameter. Return the new window.
3220 (show_source_disasm_command): Update and remove NULL check.
3221 (show_source_or_disasm_and_command): Update.
3222
ec328aa5
TT
32232019-06-25 Tom Tromey <tom@tromey.com>
3224
3225 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3226
33b906ab
TT
32272019-06-25 Tom Tromey <tom@tromey.com>
3228
3229 * tui/tui-data.h (struct tui_win_info): Make constructor
3230 protected. Make destructor virtual. Add initializers.
3231 (tui_source_window, tui_data_window, tui_cmd_window): New
3232 classes.
3233 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3234 constructor. Add "type" parameter.
3235 (tui_source_window, tui_data_window, tui_cmd_window): New
3236 constructors.
3237 (tui_alloc_win_info): Instantiate the appropriate subclass.
3238
e7e11af4
TT
32392019-06-25 Tom Tromey <tom@tromey.com>
3240
3241 * tui/tui-win.c (tui_resize_all): Use delete.
3242 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3243 destructor.
3244 (tui_free_window): Don't declare.
3245 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3246 Update.
3247
6792b55e
TT
32482019-06-25 Tom Tromey <tom@tromey.com>
3249
3250 * tui/tui-data.h (struct tui_win_info): Add constructor.
3251 * tui/tui-data.c (tui_alloc_win_info): Use new.
3252 (tui_free_window): Use delete.
3253
f95675e1
TT
32542019-06-22 Tom Tromey <tom@tromey.com>
3255
3256 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3257 declare.
3258 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3259
5bff081c
TT
32602019-06-22 Tom Tromey <tom@tromey.com>
3261
3262 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3263 declare.
3264 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3265
47e3f474
TV
32662019-06-22 Tom de Vries <tdevries@suse.de>
3267
3268 * dwarf2read.c (create_addrmap_from_aranges)
3269 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3270 instead of '%zu'.
3271
fd5866f6
SM
32722019-06-21 Simon Marchi <simon.marchi@efficios.com>
3273
3274 * dwarf2read.h (dwarf2_section_info_def): Remove.
3275 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3276 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3277 std::vector<dwarf2_section_info>.
3278 (struct dwo_file) <~dwo_file>: Remove.
3279 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3280 types field.
3281 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3282 (dwarf2_read_debug_names): Likewise.
3283 (create_debug_types_hash_table): Change parameter type to
3284 array_view, adjust code accordingly.
3285 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3286 (partial_die_info::fixup): Likewise.
3287 (determine_prefix): Likewise.
3288 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3289
fb1eb2f9
SM
32902019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3291
3292 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3293 gdb_bfd_ref_ptr.
3294 <~dwo_file>: Remove call to gdb_bfd_unref.
3295 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3296 gdb_bfd_ref_ptr::get.
3297
51ac9db5
SM
32982019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3299
3300 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3301 type to htab_up.
3302 * dwarf2read.c (struct dwo_file): Initialize fields.
3303 <~dwo_file>: New.
3304 (free_dwo_file): Remove, move content to ~dwo_file.
3305 (struct dwo_file_deleter): Remove.
3306 (dwo_file_up>: Remove custom deleter.
3307 (free_dwo_files): Remove.
3308 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3309 dwo_files.
3310 (process_skeletonless_type_units): Call unique_ptr::get.
3311 (allocate_dwo_file_hash_table): Add deleter to created hash
3312 table. Change return type to htab_up.
3313 (lookup_dwo_file_slot): Don't memset dwo_file, call
3314 unique_ptr::get.
3315 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3316 (create_dwo_unit_in_dwp_v2): Likewise.
3317 (open_and_init_dwo_file): Likewise.
3318 (free_dwo_file_from_slot): Remove.
3319
dc4ccb6f
SM
33202019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3321
3322 * dwarf2read.h (struct dwarf2_section_info) <readin,
3323 is_virtual>: Change type to bool.
3324 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3325 true instead of 1.
3326
e6a1c5cb
TT
33272019-06-19 Tom Tromey <tom@tromey.com>
3328
3329 * tui/tui-data.h (tui_init_content_element): Don't declare.
3330
6f6ffbeb
TT
33312019-06-19 Tom Tromey <tom@tromey.com>
3332
3333 * tui/tui-data.h (tui_init_win_info): Don't declare.
3334
f23f598e
TV
33352019-06-19 Tom de Vries <tdevries@suse.de>
3336
3337 * dwarf2read.h (abstract_to_concrete): Change type to
3338 std::unordered_map<sect_offset, std::vector<sect_offset>,
3339 gdb::hash_enum<sect_offset>>.
3340
680e1bee
TT
33412019-06-19 Tom Tromey <tromey@adacore.com>
3342
3343 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3344 EVAL_AVOID_SIDE_EFFECTS specially.
3345
dcf37923
TT
33462019-06-19 Tom Tromey <tromey@adacore.com>
3347
3348 * source-cache.c (highlighter): New global.
3349 (source_cache::get_source_lines): Create a highlighter on demand.
3350
494986d5
AB
33512019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3352
3353 * defs.h (deprecated_interactive_hook): Delete declaration.
3354 * interps.c (clear_interpreter_hooks): Remove use of
3355 deprecated_interactive_hook.
3356 * top.c (deprecated_interactive_hook): Delete definition.
3357 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3358
3360b6e7
TV
33592019-06-18 Tom de Vries <tdevries@suse.de>
3360
3361 PR gdb/24515
3362 * dwarf2read.h (abstract_to_concrete): Change type from
3363 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3364 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3365 * dwarf2read.c (read_variable): Update.
3366 (dwarf2_fetch_die_loc_sect_off): Update.
3367
310b3441
TV
33682019-06-17 Tom de Vries <tdevries@suse.de>
3369
3370 PR gdb/24617
3371 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3372 accessing parent[parent_len - 1].
3373
ba9777be
PP
33742019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3375
3376 PR gdb/24364
3377 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3378 call dtrace_process_dof with NULL dof.
3379
2b9f6e89
TV
33802019-06-16 Tom de Vries <tdevries@suse.de>
3381
3382 PR gdb/24445
3383 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3384
431b3ead
TT
33852019-06-16 Tom Tromey <tom@tromey.com>
3386
3387 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3388 (make_all_visible): Use address of member.
3389
d04b44a1
TT
33902019-06-16 Tom Tromey <tom@tromey.com>
3391
3392 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3393 (tui_free_window, free_content, free_content_elements): Remove
3394 unnecessary cast.
3395 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3396 cast.
3397 * tui/tui-regs.c (tui_show_register_group)
3398 (tui_display_registers_from, tui_display_reg_element_at_line):
3399 Remove unnecessary cast.
3400
bf5142e7
AB
34012019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3402
3403 * linux-nat.c (normal_mask): Delete.
3404 (_initialize_linux_nat): Don't initialise normal_mask.
3405
c4973306
SM
34062019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3407
3408 PR gdb/24445
3409 * dwarf-index-write.h (write_psymtabs_to_index): Add
3410 dwz_basename parameter.
3411 * dwarf-index-write.c (write_gdbindex): Move file writing to
3412 write_gdbindex_1. Change return type void.
3413 (assert_file_size): Move up, remove filename parameter.
3414 (write_gdbindex_1): New function.
3415 (write_debug_names): Change return type to void, call
3416 assert_file_size.
3417 (struct index_wip_file): New struct.
3418 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3419 file logic to index_wip_file. Write index for dwz file if
3420 needed.
3421 (save_gdb_index_command): Pass basename of dwz file, if present.
3422 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3423 build-id of dwz file, if present.
3424 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3425 (dwarf2_get_dwz_file): Likewise.
3426 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3427 (dwarf2_get_dwz_file): Likewise.
3428
395f9c91
TT
34292019-06-16 Tom Tromey <tom@tromey.com>
3430
3431 * coffread.c (process_coff_symbol): Use xstrdup.
3432 * value.c (create_internalvar): Use xstrdup.
3433
cafb3438
TT
34342019-06-16 Tom Tromey <tom@tromey.com>
3435
3436 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3437 * breakpoint.c (stopin_command, stopat_command)
3438 (until_break_command, decode_location_default): Remove unnecessary
3439 cast.
3440 * utils.c (subset_compare): Remove unnecessary cast.
3441 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3442 cast.
3443 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3444 cast.
3445 * infcmd.c (path_command): Remove unnecessary cast.
3446 * coffread.c (decode_type): Remove unnecessary cast.
3447 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3448 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3449 * tui/tui-stack.c (tui_show_locator_content)
3450 (tui_show_frame_info): Remove unnecessary cast.
3451 * tui/tui-win.c (tui_scroll_forward_command)
3452 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3453 (parse_scrolling_args): Remove unnecessary cast.
3454 * tui/tui-data.c (init_win_info, tui_del_window)
3455 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3456 (free_content_elements): Remove unnecessary cast.
3457 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3458 unnecessary cast.
3459 * tui/tui-source.c (tui_set_source_content)
3460 (tui_vertical_source_scroll): Remove unnecessary cast.
3461 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3462 cast.
3463 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3464 * tui/tui-regs.c (tui_display_registers_from)
3465 (tui_display_register): Remove unnecessary cast.
3466 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3467 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3468 (make_visible): Remove unnecessary cast.
3469 * tui/tui-winsource.c (tui_erase_source_content)
3470 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3471 unnecessary cast.
3472 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3473 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3474 * stabsread.c (read_type, read_array_type, read_range_type):
3475 Remove unnecessary cast.
3476 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3477 (parse_symbol, parse_type, upgrade_type, parse_external)
3478 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3479 unnecessary cast.
3480 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3481
730ead81
TT
34822019-06-16 Tom Tromey <tom@tromey.com>
3483
3484 * tui/tui-data.c (tui_alloc_generic_win_info)
3485 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3486 checks.
3487
584a927c
AB
34882019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3489 Andrew Burgess <andrew.burgess@embecosm.com>
3490
3491 * f-typeprint.c (f_print_type): Don't return early for not
3492 associated or not allocated types.
3493 (f_type_print_varspec_suffix): Add print_rank parameter and print
3494 ranks of array types in case they dangling.
3495 (f_type_print_base): Add print_rank parameter.
3496
30056ea0
AB
34972019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3498
3499 * NEWS: Mention new MI commands.
3500 * break-catch-throw.c (enum exception_event_kind): Move to
3501 breakpoint.h.
3502 (print_mention_exception_catchpoint): Output text as a single
3503 message.
3504 (catch_exception_command_1): Rename to...
3505 (catch_exception_event): ...this, make non-static, update header
3506 command, and change some parameter types.
3507 (catch_catch_command): Update for changes to
3508 catch_exception_command_1.
3509 (catch_throw_command): Likewise.
3510 (catch_rethrow_command): Likewise.
3511 * breakpoint.c (enum exception_event_kind): Delete.
3512 * breakpoint.h (enum exception_event_kind): Moved here from
3513 break-catch-throw.c.
3514 (catch_exception_event): Declare.
3515 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3516 (mi_cmd_catch_throw): New function.
3517 (mi_cmd_catch_rethrow): New function.
3518 (mi_cmd_catch_catch): New function.
3519 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3520 'catch-catch' entries.
3521 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3522 (mi_cmd_catch_rethrow): Declare.
3523 (mi_cmd_catch_catch): Declare.
3524
ec8e2b6d
AB
35252019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3526
3527 * annotate.c (annotate_source_line): Change return type to void,
3528 update implementation to match.
3529 * annotate.h (annotate_source_line): Change return type to void,
3530 update header comment.
3531 * stack.c (print_frame_info): Don't change what frame information
3532 is printed based on whether annotations are on or not.
3533
0d3abd8c
AB
35342019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3535
3536 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3537 (annotate_source): Make static.
3538 (annotate_source_line): Moved from source.c and renamed from
3539 identify_source_line. Update the return type.
3540 * annotate.h (annotate_source): Delete declaration.
3541 (annotate_source_line): Declaration moved from source.h, and
3542 renamed from identify_source_line. Return type updated.
3543 * source.c (identify_source_line): Moved to annotate.c and renamed
3544 to annotate_source_line.
3545 (info_line_command): Remove check of annotation_level.
3546 * source.h (identify_source_line): Move declaration to annotate.h
3547 and rename to annotate_source_line.
3548 * stack.c: Add 'annotate.h' include.
3549 (print_frame_info): Remove check of annotation_level before
3550 calling annotate_source_line.
3551
00df30ae
AB
35522019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3553
3554 * source-cache.c (source_cache::get_plain_source_lines): Use
3555 open_source_file_with_line_charpos instead of just
3556 open_source_file, remove call to find_source_lines.
3557 (source_cache::get_source_lines): Likewise.
3558 * source.c (find_source_lines): Make static.
3559 (get_filename_and_charpos): Renamed into...
3560 (open_source_file_with_line_charpos): ..this along with changes to
3561 return a scoped_fd, and some other minor clean ups.
3562 (identify_source_line): Use open_source_file_with_line_charpos.
3563 (search_command_helper): Use open_source_file_with_line_charpos
3564 instead of just open_source_file, remove call to
3565 find_source_lines.
3566 * source.h (open_source_file_with_line_charpos): Declare new
3567 function.
3568 (find_source_lines): Delete declaration.
3569
afda45a2
AB
35702019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3571
3572 * source.c (get_filename_and_charpos): Remove fullname
3573 parameter.
3574 (identify_source_line): Update call to get_filename_and_charpos.
3575
0735b091
TT
35762019-06-14 Tom Tromey <tromey@adacore.com>
3577
3578 PR gdb/24502:
3579 * ui-style.h (skip_ansi_escape): Update comment.
3580 * ui-file.h (class no_terminal_escape_file): New class.
3581 * ui-file.c (no_terminal_escape_file::write)
3582 (no_terminal_escape_file::puts): New methods.
3583 * cli/cli-logging.c (handle_redirections): Use
3584 no_terminal_escape_file.
3585
52ce35e2
TT
35862019-06-14 Tom Tromey <tromey@adacore.com>
3587
3588 * NEWS: Move convenience variable news above Python news.
3589
73cc7272
TT
35902019-06-14 Tom Tromey <tom@tromey.com>
3591
3592 * gnulib: Move directory to top-level.
3593 * configure.ac: Don't configure gnulib.
3594 * configure: Rebuild.
3595 * common/common-defs.h: Use new path to gnulib.
3596 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3597 (GNULIB_H): Remove.
3598 (INCGNU): Look in new gnulib location.
3599 (HFILES_NO_SRCDIR): Remove gnulib files.
3600 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3601 (generated_files): Remove GNULIB_H.
3602 ($(LIBGNU), all-lib): Remove targets.
3603 (distclean): Don't mention GNULIB_BUILDDIR.
3604 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3605
f5686554
TT
36062019-06-14 Tom Tromey <tromey@adacore.com>
3607
3608 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3609 Warn if symbol file does not provide any symbols.
3610
a0c1ffed
TT
36112019-06-14 Tom Tromey <tromey@adacore.com>
3612
3613 * source.c (find_and_open_source): Respect basenames_may_differ.
3614
7c39e397
AB
36152019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3616
3617 * annotate.c (annotate_breakpoints_invalid): Make use of
3618 scoped_restore_terminal_state.
3619 (annotate_frames_invalid): Likewise.
3620
f411722c
TT
36212019-06-14 Tom Tromey <tromey@adacore.com>
3622
3623 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3624 allow assignment to an internalvar.
3625
4268ec18
TT
36262019-06-14 Tom Tromey <tromey@adacore.com>
3627
3628 * ada-lex.l: Allow "_" in attribute names.
3629
abdb711e
TT
36302019-06-14 Tom Tromey <tromey@adacore.com>
3631
3632 PR gdb/24653:
3633 * regcache.c (registers_changed): Don't call alloca.
3634 * top.c (execute_command): Don't call alloca.
3635
4c048731
PA
36362019-06-13 Pedro Alves <palves@redhat.com>
3637
3638 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3639 'expression'. When parsing an expression, error out if there's
3640 junk after "unlimited".
3641 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3642 (do_set_command): Adjust calls to is_unlimited_literal.
3643
66eb1ed3
PA
36442019-06-13 Pedro Alves <palves@redhat.com>
3645
3646 * compile/compile.c (make_compile_options_def_group): Add braces
3647 around array_view initializer.
3648 * thread.c (make_thread_apply_all_options_def_group)
3649 (make_thread_apply_all_options_def_group): Likewise.
3650
3345721a
PA
36512019-06-13 Pedro Alves <palves@redhat.com>
3652
3653 * NEWS (New commands): Mention "maint test-options
3654 require-delimiter", "maint test-options unknown-is-error", "maint
3655 test-options unknown-is-operand" and "maint show
3656 test-options-completion-result".
3657 (New command options, command completion): New section.
3658 (Completion improvements): New section.
3659 Mention that you can abbreviate "unlimited".
3660
6206060d
PA
36612019-06-13 Pedro Alves <palves@redhat.com>
3662
3663 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3664 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3665 * unittests/cli-utils-selftests.c (test_parse_flags)
3666 (test_parse_flags_qcs): Delete.
3667 (test_cli_utils): Don't call deleted functions.
3668
6665660a
PA
36692019-06-13 Pedro Alves <palves@redhat.com>
3670
3671 * thread.c: Include "cli/cli-option.h".
3672 (tp_array_compar_ascending): Global.
3673 (tp_array_compar): Delete function.
3674 (tp_array_compar_ascending, tp_array_compar_descending): New
3675 functions.
3676 (ascending_option_def, qcs_flag_option_def)
3677 (thr_qcs_flags_option_defs)
3678 (make_thread_apply_all_options_def_group)
3679 (make_thread_apply_options_def_group): New.
3680 (thread_apply_all_command): Use gdb::option::process_options.
3681 (thread_apply_command_completer)
3682 (thread_apply_all_command_completer): New.
3683 (thread_apply_command): Use gdb::option::process_options.
3684 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3685 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3686 to generate help text of "thread apply". Adjust "taas"'s help.
3687 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3688 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3689
f7e13587
PA
36902019-06-13 Pedro Alves <palves@redhat.com>
3691
3692 * thread.c (thread_apply_command): Check for invalid TID with
3693 isdigit instead of !isalpha.
3694
5d707134
PA
36952019-06-13 Pedro Alves <palves@redhat.com>
3696
3697 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3698 (validate_flags_qcs): New.
3699 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3700 (validate_flags_qcs): Declare.
3701 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3702 (make_frame_apply_options_def_group): New.
3703 (frame_apply_command_count): Process options with
3704 gdb::option::process_options.
3705 (frame_apply_completer): New.
3706 (frame_apply_level_completer, frame_apply_all_completer)
3707 (frame_apply_completer): New.
3708 (_initialize_stack): Update help of "frame apply", "frame apply
3709 level", "frame apply all" and "faas" to mention supported options
3710 and install command completers.
3711 * stack.h (frame_apply_all_completer): Declare.
3712 * thread.c: Include "stack.h".
3713 (tfaas_command): Add "--".
3714 (_initialize_thread): Update help "tfaas" to mention supported
3715 options and install command completer.
3716
272d4594
PA
37172019-06-13 Pedro Alves <palves@redhat.com>
3718
3719 * completer.c (complete_nested_command_line): New.
3720 (gdb_completion_word_break_characters_throw): Add assertion.
3721 * completer.h (complete_nested_command_line): Declare.
3722
90a1ef87
PA
37232019-06-13 Pedro Alves <palves@redhat.com>
3724
3725 * stack.c (parse_backtrace_qualifiers): New.
3726 (backtrace_command): Use it.
3727 (backtrace_command_completer): Complete on qualifiers.
3728
d4c16835
PA
37292019-06-13 Pedro Alves <palves@redhat.com>
3730
3731 * frame.c: Include "cli/cli-option.h.
3732 (user_set_backtrace_options): New.
3733 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3734 Delete.
3735 (get_prev_frame): Adjust.
3736 (boolean_option_def, uinteger_option_def)
3737 (set_backtrace_option_defs): New.
3738 (_initialize_frame): Adjust and use
3739 gdb::option::add_setshow_cmds_for_options to install "set
3740 backtrace past-main" and "set backtrace past-entry".
3741 * frame.h: Include "cli/cli-option.h".
3742 (struct frame_print_options): Forward declare.
3743 (print_frame_arguments_all, print_frame_arguments_scalars)
3744 (print_frame_arguments_none): Declare.
3745 (print_entry_values): Delete declaration.
3746 (struct frame_print_options, user_frame_print_options): New.
3747 (struct set_backtrace_options): New.
3748 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3749 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3750 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3751 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3752 (list_args_or_locals): Add frame_print_options parameter.
3753 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3754 * python/py-framefilter.c (enumerate_args): Pass down
3755 USER_FRAME_PRINT_OPTIONS.
3756 * stack.c: Include "cli/cli-option.h".
3757 (print_frame_arguments_all, print_frame_arguments_scalars)
3758 (print_frame_arguments_none): Declare.
3759 (print_raw_frame_arguments, print_entry_values): Delete.
3760 (user_frame_print_options): New.
3761 (boolean_option_def, enum_option_def, frame_print_option_defs):
3762 New.
3763 (struct backtrace_cmd_options): New.
3764 (bt_flag_option_def): New.
3765 (backtrace_command_option_defs): New.
3766 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3767 (print_frame_arg, read_frame_arg, print_frame_args)
3768 (print_frame_info, print_frame): Add frame_print_options parameter
3769 and use it.
3770 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3771 (backtrace_command_1): Add frame_print_options and
3772 backtrace_cmd_options parameters and use them.
3773 (make_backtrace_options_def_group): New.
3774 (backtrace_command): Process command options with
3775 gdb::option::process_options.
3776 (backtrace_command_completer): New.
3777 (_initialize_stack): Extend "backtrace"'s help to mention
3778 supported options. Install completer for "backtrace".
3779 Install some settings commands with add_setshow_cmds_for_options.
3780
2daf894e
PA
37812019-06-13 Pedro Alves <palves@redhat.com>
3782
3783 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3784 and that "set/show print raw frame-arguments" are now deprecated.
3785
3786 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3787 command.
3788 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3789 * stack.c (_initialize_stack): Install "set/show print
3790 raw-frame-arguments", and deprecate "set/show print raw
3791 frame-arguments".
3792 * valprint.c (_initialize_valprint): Deprecate "set/show print
3793 raw".
3794
e6ed716c
PA
37952019-06-13 Pedro Alves <palves@redhat.com>
3796
3797 * compile/compile.c (struct compile_options): New.
3798 (compile_flag_option_def, compile_command_option_defs)
3799 (make_compile_options_def_group): New.
3800 (compile_file_command): Handle options with
3801 gdb::option::process_options.
3802 (compile_file_command_completer): New function.
3803 (compile_code_command): Handle options with
3804 gdb::option::process_options.
3805 (compile_code_command_completer): New function.
3806 (_initialize_compiler): Install completers for "compile code" and
3807 "compile file". Mention available options in "compile code" and
3808 "compile code"'s help.
3809 * completer.c (advance_to_completion_word): New, factored out from
3810 ...
3811 (advance_to_expression_complete_word_point): ... this.
3812 (advance_to_filename_complete_word_point): New.
3813 * completer.h (advance_to_filename_complete_word_point): New
3814 declaration.
3815
7d8062de
PA
38162019-06-13 Pedro Alves <palves@redhat.com>
3817
3818 * compile/compile.c: Include "cli/cli-option.h".
3819 (compile_print_value): Scope data pointer is now a
3820 value_print_options pointer; adjust.
3821 (compile_print_command): Process options. Scope data pointer is
3822 now a value_print_options pointer; adjust.
3823 (_initialize_compile): Update "compile print"'s help to include
3824 supported options. Install a completer for "compile print".
3825 * cp-valprint.c (show_vtblprint, show_objectprint)
3826 (show_static_field_print): Delete.
3827 (_initialize_cp_valprint): Don't install "set print
3828 static-members", "set print vtbl", "set print object" here.
3829 * printcmd.c: Include "cli/cli-option.h" and
3830 "common/gdb_optional.h".
3831 (print_command_parse_format): Rework to fill in a
3832 value_print_options instead of a format_data.
3833 (print_value): Change parameter type from format_data pointer to
3834 value_print_options reference. Adjust.
3835 (print_command_1): Process options. Adjust to pass down a
3836 value_print_options.
3837 (print_command_completer): New.
3838 (_initialize_printcmd): Install print_command_completer as
3839 handle_brkchars completer for the "print" command. Update
3840 "print"'s help to include supported options.
3841 * valprint.c: Include "cli/cli-option.h".
3842 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3843 here from cp-valprint.c.
3844 (boolean_option_def, uinteger_option_def)
3845 (value_print_option_defs, make_value_print_options_def_group):
3846 New. Use gdb::option::add_setshow_cmds_for_options to install
3847 "set print elements", "set print null-stop", "set print repeats",
3848 "set print pretty", "set print union", "set print array", "set
3849 print address", "set print symbol", "set print array-indexes".
3850 * valprint.h: Include <string> and "cli/cli-option.h".
3851 (make_value_print_options_def_group): Declare.
3852 (print_value): Change parameter type from format_data pointer to
3853 value_print_options reference.
3854 (print_command_completer): Declare.
3855
9d0faba9
PA
38562019-06-13 Pedro Alves <palves@redhat.com>
3857
3858 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3859 (COMMON_SFILES): Add maint-test-settings.c.
3860 * cli/cli-decode.c (boolean_enums): New global, factored out from
3861 ...
3862 (add_setshow_boolean_cmd): ... here.
3863 * cli/cli-decode.h (boolean_enums): Declare.
3864 * cli/cli-option.c: New file.
3865 * cli/cli-option.h: New file.
3866 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3867 factored out from ...
3868 (parse_cli_boolean_value(const char *)): ... this.
3869 (is_unlimited_literal): Change parameter type to pointer to
3870 pointer. Adjust and advance ARG pointer.
3871 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3872 (parse_cli_var_enum): New, factored out from ...
3873 (do_set_command): ... this. Adjust.
3874 * cli/cli-setshow.h (parse_cli_boolean_value)
3875 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3876 (parse_cli_var_enum): Declare.
3877 * cli/cli-utils.c: Include "cli/cli-option.h".
3878 (get_ulongest): New.
3879 * cli/cli-utils.h (get_ulongest): Declare.
3880 (check_for_argument): New overloads.
3881 * maint-test-options.c: New file.
3882
2c722807
PA
38832019-06-13 Pedro Alves <palves@redhat.com>
3884
3885 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3886 parse a range if "-" is at the end of the string.
3887
dee7b4c8
PA
38882019-06-13 Pedro Alves <palves@redhat.com>
3889
3890 * cli/cli-setshow.c (parse_auto_binary_operation)
3891 (parse_cli_boolean_value): Don't allow "o".
3892
dca0f6c0
PA
38932019-06-13 Pedro Alves <palves@redhat.com>
3894
3895 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3896 * NEWS: Mention maint test-settings KIND.
3897 * maint-test-settings.c: New file.
3898
597bf39d
PA
38992019-06-13 Pedro Alves <palves@redhat.com>
3900
3901 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3902 completer.
3903 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3904 "set" completers.
3905
48c410fb
PA
39062019-06-13 Pedro Alves <palves@redhat.com>
3907
3908 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3909 after item.
3910
93bcb043
PA
39112019-06-13 Pedro Alves <palves@redhat.com>
3912
3913 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3914
cbba3ecd
PA
39152019-06-13 Pedro Alves <palves@redhat.com>
3916
3917 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3918 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3919 call.
3920 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3921 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3922 calls.
3923 (check_for_argument): Skip spaces after argument.
3924
b9a3f842
PA
39252019-06-13 Pedro Alves <palves@redhat.com>
3926
3927 * thread.c (thread_apply_command): Adjust TID parsing.
3928 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3929 detected before end of string.
3930 (tid_is_in_list): Error out if LIST is invalid.
3931
3844e605
PA
39322019-06-13 Pedro Alves <palves@redhat.com>
3933
3934 * completer.c (complete_line_internal_1): Rewind completion word
3935 point.
3936 (completion_tracker::advance_custom_word_point_by): Change
3937 parameter type to int.
3938 * completer.h (completion_tracker::advance_custom_word_point_by):
3939 Likewise.
3940
00b56dbe
PA
39412019-06-13 Pedro Alves <palves@redhat.com>
3942
3943 * completer.c (advance_to_completion_word): Handle delimiters.
3944
d106773e
PA
39452019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3946
3947 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3948
08f10e02
TT
39492019-06-11 Tom Tromey <tom@tromey.com>
3950
3951 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3952 (xmalloc_failed): Move to alloc.c.
3953 * alloc.c: New file.
3954 * Makefile.in (COMMON_SFILES): Add alloc.c.
3955
1c7fe951
TT
39562019-06-11 Tom Tromey <tom@tromey.com>
3957
3958 * nat/linux-waitpid.c: Don't include server.h.
3959 (linux_debug): Remove.
3960 (my_waitpid): Update.
3961
89549d7f
TT
39622019-06-11 Tom Tromey <tromey@adacore.com>
3963
3964 * infcall.c (_initialize_infcall): Remove trailing newline from
3965 help.
3966 * user-regs.c (_initialize_user_regs): Remove trailing newline
3967 from help.
3968 * typeprint.c (_initialize_typeprint): Remove trailing newline
3969 from help.
3970 * reverse.c (_initialize_reverse): Remove trailing newlines from
3971 help.
3972 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3973 from help.
3974 * language.c (add_set_language_command): Remove trailing newline
3975 from help.
3976 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3977 help.
3978 * disasm.c (_initialize_disasm): Remove trailing newline from
3979 help.
3980 * top.c (init_main): Remove trailing newline from help.
3981 * interps.c (_initialize_interpreter): Remove trailing newline
3982 from help.
3983 * btrace.c (_initialize_btrace): Remove trailing newlines from
3984 help.
3985 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3986 from help.
3987 * python/python.c (_initialize_python): Remove trailing newline
3988 from help.
3989 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3990 help.
3991 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3992 from help. Reformat some text.
3993 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3994 from help.
3995 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3996 newline from help.
3997
86108c13
TT
39982019-06-11 Tom Tromey <tromey@adacore.com>
3999
4000 * darwin-nat.c (darwin_decode_exception_message)
4001 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4002
a7067863
AB
40032019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4004
4005 * valops.c (value_slice): Check for not allocated or not
4006 associated values.
4007
9ab08412
TV
40082019-06-10 Tom de Vries <tdevries@suse.de>
4009
4010 PR gdb/24618
4011 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4012 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4013 invalid.
4014
f19e22e9
TV
40152019-06-10 Tom de Vries <tdevries@suse.de>
4016
4017 PR gdb/24611
4018 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4019 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4020
e99f9db0
TV
40212019-06-10 Tom de Vries <tdevries@suse.de>
4022
4023 PR symtab/24545
4024 * symtab.c (struct demangled_name_entry): Add language field.
4025 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4026 static minimal symbol". Set and use language field.
4027
9bf7038b
TT
40282019-06-10 Tom Tromey <tromey@adacore.com>
4029
4030 * ada-lang.c (_initialize_ada_language): Update help text.
4031
422186a9
TT
40322019-06-10 Tom Tromey <tromey@adacore.com>
4033
4034 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4035 with a newline.
4036 * guile/guile.c (handle_boot_error): Don't end warning with a
4037 newline.
4038 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4039 warning with a newline.
4040 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4041 newline.
4042 (s12z_frame_cache): Likewise.
4043 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4044 a newline.
4045 * solib-svr4.c (disable_probes_interface): Don't end warning with
4046 a newline.
4047 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4048 newline.
4049 * python/python.c (do_finish_initialization): Don't end warning
4050 with a newline.
4051
25ce02ee
TT
40522019-06-10 Tom Tromey <tom@tromey.com>
4053
4054 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4055 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4056 gdbpy_enter.
4057
caa429d8
TT
40582019-06-10 Tom Tromey <tromey@adacore.com>
4059
4060 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4061 data.
4062 (elf_new_init): Don't call stabsread_new_init.
4063 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4064 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4065 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4066
81873cc8
TV
40672019-06-10 Tom de Vries <tdevries@suse.de>
4068
4069 PR symtab/16264
4070 PR symtab/24517
4071 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4072
4fa0265e
РИ
40732019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4074
4075 * source.c (find_and_open_source): Also rewrite relative file
4076 names.
4077
1a3da2cd
AB
40782019-04-26 Amos Bird <amosbird@gmail.com>
4079
4080 * annotate.c (annotate_thread_exited): Add "thread-exited"
4081 annotation.
4082
3847a7bf
TT
40832019-06-06 Tom Tromey <tromey@adacore.com>
4084
4085 * maint.h (class scoped_command_stats): Use
4086 DISABLE_COPY_AND_ASSIGN.
4087 <print_time>: New method.
4088 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4089 print_time.
4090 (scoped_command_stats::print_time): New method.
4091
312617a3
AB
40922019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4093
4094 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4095 instructions of lengths 6 or 8 bytes.
4096
b02f78f9
PA
40972019-06-04 Pedro Alves <palves@redhat.com>
4098
4099 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4100
4101 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4102 * breakpoint.c (condition_completer): Likewise.
4103 * cli/cli-dump.c (scan_expression): Likewise.
4104 * common/filestuff.c (mkdir_recursive): Likewise.
4105 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4106 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4107 (gdb_abspath): Likewise.
4108 * compile/compile-cplus-types.c
4109 (compile_cplus_instance::decl_name): Likewise.
4110 * completer.c (complete_explicit_location):
4111 (signal_completer, reg_or_group_completer_1): Likewise.
4112 * cp-support.c (cp_remove_params_if_any): Likewise.
4113 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4114 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4115 * infcmd.c (strip_bg_char): Likewise.
4116 * linespec.c (copy_token_string): Likewise.
4117 * mi/mi-main.c (output_cores): Likewise.
4118 * psymtab.c (psymtab_search_name):
4119 * symfile.c (test_set_ext_lang_command): Likewise.
4120 * target.c (target_fileio_read_stralloc): Likewise.
4121 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4122 * value.c (complete_internalvar): Likewise.
4123
e1f2e1a2
CB
41242019-06-04 Christian Biesinger <cbiesinger@google.com>
4125
4126 Add objfile property to gdb.Type.
d3238f7d
PA
4127 * NEWS: Mention Python API addition.
4128 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4129
e664d728
PW
41302019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4131
4132 * NEWS: Mention the new set|show style [title|highlight].
4133 Mention changes to "show style", "help" and "apropos".
4134
66d8c862
PW
41352019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4136
4137 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4138 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4139 instead of print_help_for_command.
4140 (print_doc_of_command): New function.
4141 (help_list): Add 'apropos -v word' suggestion.
4142 (print_help_for_command): Style the command name using title style.
4143 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4144 (_initialize_cli_cmds): Describe -v in apropos_command help.
4145
9303eb2f
PW
41462019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4147
4148 * cli/cli-style.h (cli_style_option): Add name in constructor,
4149 add m_name class member, add constructor with intensity,
4150 add name class function.
4151 (cli_style_option::add_setshow_commands): Remove name argument.
4152 (highlight_style, title_style): New styles.
4153 * cli/cli-style.c (do_show): New function that shows a style
4154 characteristic styling the style name with itself.
4155 (set_style_name): New function.
4156 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4157 Update all callers according to the changes in cli/cli-style.h.
4158 * utils.h (fputs_highlighted): New function.
4159 * utils.c (fputs_highlighted): Likewise.
4160
e2c52041
PW
41612019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4162
4163 * NEWS: Mention new pipe command and new convenience variables.
4164
947d3946
PW
41652019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4166
4167 * cli/cli-cmds.c (pipe_command): New function.
4168 (_initialize_cli_cmds): Call add_com for pipe_command.
4169 Define | as an alias for pipe.
4170 (exit_status_set_internal_vars): New function.
4171 (shell_escape): Call exit_status_set_internal_vars.
4172 cli/cli-decode.c (find_command_name_length): Recognize | as
4173 a single character command.
4174
b8fd0918
PW
41752019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4176
4177 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4178 top.c (execute_command_to_ui_file): New function, mostly a copy
4179 of execute_command_to_string.
4180 (execute_command_to_string): Implement by calling
4181 execute_command_to_ui_file.
4182
68bb5386
PW
41832019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4184
4185 * top.h (saved_command_line): Remove declaration.
4186 * top.c (previous_saved_command_line, previous_repeat_arguments):
4187 New variables.
4188 (saved_command_line): Make static, define together with other
4189 'repeat variables'.
4190 (dont_repeat): Clear repeat_arguments.
4191 (repeat_previous, get_saved_command_line, save_command_line):
4192 New functions.
4193 (gdb_init): Initialize saved_command_line
4194 and previous_saved_command_line.
4195 * main.c (captured_main_1): Remove saved_command_line initialization.
4196 * event-top.c (handle_line_of_input): Update to use
4197 the new 'repeat' related functions instead of direct access to
4198 saved_command_line.
4199 * command.h (repeat_previous, get_saved_command_line,
4200 save_command_line): New declarations.
4201 (dont_repeat): Add comment.
4202
bfcdb852
TT
42032019-05-30 Tom Tromey <tromey@adacore.com>
4204
4205 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4206 Fix comment.
4207 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4208
0ef209f2
JV
42092019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4210
4211 PR cli/24587
4212 * completer.c (complete): Initialize variable word.
4213
955b06fa
SDJ
42142019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4215
4216 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4217 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4218 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4219 'body' is NULL to the outter 'if', protecting the '!is_define'
4220 situation as well.
4221
fa9c3fa0
TT
42222019-05-29 Tom Tromey <tromey@adacore.com>
4223
4224 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4225 (dwarf_unknown): New function.
4226 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4227 (dwarf_type_encoding_name): Use dwarf_unknown.
4228
4330d61d
TT
42292019-05-29 Tom Tromey <tromey@adacore.com>
4230
4231 PR c++/20020:
4232 * cp-valprint.c (cp_print_value_fields): Call
4233 cp_print_static_field inside "try".
4234
33a6bc35
TT
42352019-05-29 Tom Tromey <tromey@adacore.com>
4236
4237 * inflow.c (struct terminal_info): Add default operator=.
4238 * configure: Rebuild.
4239 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4240 -Wdeprecated-copy-dtor, -Wredundant-move.
4241
000439d5
TT
42422019-05-29 Tom Tromey <tromey@adacore.com>
4243
4244 * NEWS: Add entry.
4245 * infcmd.c (print_return_value_1): Handle finish_print
4246 option.
4247 (show_print_finish): New function.
4248 (_initialize_infcmd): Add "set/show print finish" commands.
4249 * valprint.c (user_print_options): Initialize new member.
4250 * valprint.h (struct value_print_options) <finish_print>: New
4251 member.
4252
c0e70c62
TT
42532019-05-28 Tom Tromey <tromey@adacore.com>
4254
4255 * ada-lang.c (ada_remove_Xbn_suffix)
4256 (find_old_style_renaming_symbol)
4257 (parse_old_style_renaming): Remove.
4258 (ada_find_renaming_symbol): Don't call
4259 find_old_style_renaming_symbol.
4260 (ada_is_renaming_symbol): Rename from
4261 ada_find_renaming_symbol. Remove "block" parameter. Return
4262 bool. Now static.
4263 (ada_read_var_value): Update and simplify.
4264 * ada-exp.y (write_var_or_type): Remove old code.
4265
766f8836
AH
42662019-05-28 Alan Hayward <alan.hayward@arm.com>
4267
4268 * event-top.c: Remove include comment.
4269 * inflow.c (class scoped_ignore_sigttou): Move from here...
4270 * inflow.h (class scoped_ignore_sigttou): ...to here.
4271 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4272 * top.c: Remove include comment.
4273
eb41253a
TT
42742019-05-27 Tom Tromey <tom@tromey.com>
4275
4276 * NEWS: Fix typo.
4277
4ca51187
TT
42782019-05-22 Tom Tromey <tromey@adacore.com>
4279
4280 * target.c (target_follow_exec): Constify parameter.
4281 * target-delegates.c: Rebuild.
4282 * remote.c (remote_target::follow_exec): Constify parameter.
4283 * infrun.c (follow_exec): Constify parameter.
4284 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4285 (target_follow_exec): Likewise.
4286
8fca4da0
AH
42872019-05-22 Alan Hayward <alan.hayward@arm.com>
4288
4289 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4290 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4291
b7060614
AH
42922019-05-22 Alan Hayward <alan.hayward@arm.com>
4293
4294 * NEWS: Add debugredirect and testsuite sections.
4295
0a5954bd
SC
42962019-05-22 Simon Cook <simon.cook@embecosm.com>
4297
4298 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4299 target descriptions using exclusively floating point register name
4300 aliases.
4301
dc42e902
AB
43022019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4303
4304 PR gdb/18644:
4305 * f-lang.c (build_fortran_types): Handle the case where
4306 gdbarch_floatformat_for_type returns a nullptr.
4307
fb7806c7
TV
43082019-05-21 Tom de Vries <tdevries@suse.de>
4309
4310 PR cli/24587
4311 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4312
34d11c68
AB
43132019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4314
4315 PR gdb/18644:
4316 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4317 16-byte floats.
4318 * i386-tdep.c (i386_floatformat_for_type): Use
4319 floatformats_ia64_quad for the 16-byte floating point component
4320 within a fortran 32-byte complex number.
4321
122cf0f2
AB
43222019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4323
4324 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4325 delete default constructor.
4326 (find_partial_die): Update to return const struct.
4327 (partial_die_parent_scope): Move variable declaration into scope
4328 of its use and change its type to auto.
4329 (guess_partial_die_structure_name): Likewise.
4330 (partial_die_info::fixup): Likewise.
4331
33d0e35a
TT
43322019-05-17 Tom Tromey <tromey@adacore.com>
4333
4334 * source.c (find_and_open_source): Remove cast.
4335
a45575b0
TT
43362019-05-17 Tom Tromey <tromey@adacore.com>
4337
4338 * annotate.c (annotate_source): Make "filename" const.
4339 * annotate.h (annotate_source): Use const.
4340
81f47ac2
AH
43412019-05-17 Alan Hayward <alan.hayward@arm.com>
4342
4343 * disasm.c (set_disassembler_options): Send errors to stderr.
4344
ca1285d1
AH
43452019-05-17 Alan Hayward <alan.hayward@arm.com>
4346
4347 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4348 (cli_interp_base::set_logging): Check debug_redirect.
4349 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4350 * cli/cli-logging.c (debug_redirect): Add static variable.
4351 (pop_output_files): Add default param.
4352 (handle_redirections): Print debug setting.
4353 (show_logging_command): Likewise.
4354 (_initialize_cli_logging): Add debugredirect command.
4355 * interps.c (current_interp_set_logging): Add debug_redirect
4356 parameter.
4357 * interps.h (set_logging): Add debug_redirect parameter.
4358 (current_interp_set_logging): Likewise.
4359 * mi/mi-common.h: Likewise.
4360 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4361
43622019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4363 Tom Tromey <tromey@adacore.com>
4364
4365 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4366 directly.
4367 * cli/cli-interp.h (make_logging_output): Remove declaration.
4368 * cli/cli-logging.c (make_logging_output): Remove function.
4369 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4370 directly.
4371 * ui-file.c (tee_file::tee_file): Remove bools.
4372 (tee_file::~tee_file): Remove deletes.
4373 * ui-file.h (tee_file): Remove bools.
4374
26648588
JV
43752019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4376
4377 * mi/mi-cmds.h (mi_cmd_complete): New function.
4378 * mi/mi-main.c (mi_cmd_complete): Likewise.
4379 * mi/mi-cmds.c: Define new MI command -complete.
4380 * NEWS: Mention new -complete command.
4381
6e035501
JV
43822019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4383
4384 * completer.h (complete): New function.
4385 * completer.c (complete): Likewise.
4386 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4387 function defined in completer.h.
4388
7d0e2ece
JV
43892019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4390
e79be6e5 4391 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4392
fb816e8b
TV
43932019-05-17 Tom de Vries <tdevries@suse.de>
4394
4395 PR gdb/24094
4396 * dwarf2read.c (struct cu_partial_die_info): New struct.
4397 (find_partial_die): Return cu_partial_die_info.
4398 (partial_die_parent_scope, guess_partial_die_structure_name)
4399 (partial_die_info::fixup): Handle new return type of find_partial_die.
4400
677052f2
SDJ
44012019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4402
4403 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4404 "std::string", simplifying the algorithm.
4405
f3da9116
SDJ
44062019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4407
4408 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4409 (stap_static_probe_ops::get_probes): Likewise.
4410
f1bb75ab
SDJ
44112019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4412
4413 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4414 '-')" and "else if".
4415 (stap_parse_single_operand): Join checks for
4416 "gdbarch_stap_parse_special_token_p" and
4417 "gdbarch_stap_parse_special_token" in the same "if" statement.
4418 Invert check when verifying for operation on register
4419 displacement.
4420
3ca58cde
SDJ
44212019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4422
4423 * stap-probe.c (stap_get_opcode): Update comment.
4424 (stap_get_expected_argument_type): Likewise.
4425 (handle_stap_probe): Likewise.
4426
af2d9bee
SDJ
44272019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4428
4429 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4430 return type to 'bool'. Adjust comment. Use 'bool' when
4431 appropriate.
4432 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4433 * stap-probe.c (stap_parse_argument_1): Likewise.
4434 (stap_is_operator): Likewise.
4435 (stap_is_generic_prefix): Likewise.
4436 (stap_is_register_prefix): Likewise.
4437 (stap_is_register_indirection_prefix): Likewise.
4438 (stap_is_integer_prefix): Likewise.
4439 (stap_generic_check_suffix): Likewise.
4440 (stap_check_integer_suffix): Likewise.
4441 (stap_check_register_suffix): Likewise.
4442 (stap_check_register_indirection_suffix): Likewise.
4443 (stap_parse_register_operand): Likewise.
4444 (stap_parse_single_operand): Likewise.
4445 (stap_parse_argument_1): Likewise.
4446 (stap_probe::get_argument_count): Likewise.
4447 (stap_is_operator): Likewise.
4448
61c9c421
TT
44492019-05-16 Tom Tromey <tromey@adacore.com>
4450
4451 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4452 keyword to foreach.
4453
9ddc1af1
SM
44542019-05-15 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * linux-thread-db.c (try_thread_db_load_1): Change return type
4457 to bool.
4458 (try_thread_db_load): Likewise.
4459 (try_thread_db_load_from_pdir_1): Likewise.
4460 (try_thread_db_load_from_pdir): Likewise.
4461 (try_thread_db_load_from_sdir): Likewise.
4462 (try_thread_db_load_from_dir): Likewise.
4463 (thread_db_load_search): Likewise.
4464 (has_libpthread): Likewise.
4465 (thread_db_load): Likewise.
4466
7bede828
SDJ
44672019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4468
4469 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4470 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4471 NULL, and complain/return if that's the case.
4472
c5358db4
JD
44732019-05-15 John Darrington <john@darrington.wattle.id.au>
4474
4475 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4476 (advance, posn, abstract_read_memory): New functions.
4477 [struct mem_read_abstraction]: New struct.
4478 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4479
c408a94f
TT
44802019-05-14 Tom Tromey <tromey@adacore.com>
4481
4482 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4483 value is not lval_memory.
4484
e7bd7fba
TT
44852019-05-14 Tom Tromey <tromey@adacore.com>
4486
4487 * solib.c (info_sharedlibrary_command): Style the file name.
4488
a6d0f249
AH
44892019-05-14 Alan Hayward <alan.hayward@arm.com>
4490
4491 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4492 (aarch64_vnv_type): Likewise.
4493 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4494 * common/tdesc.c: Likewise.
4495 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4496 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4497 * features/aarch64-fpu.xml: Add ieee half view.
4498 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4499 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4500 * gdbtypes.h (struct builtin_type): Likewise.
4501 (struct objfile_type): Likewise.
4502
66b8bb74
SM
45032019-05-12 Paul Naert <paul.naert@polymtl.ca>
4504
4505 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4506 typo.
4507 * location.h (string_to_event_location): Likewise.
4508
21c219fd
JB
45092019-05-11 Joel Brobecker <brobecker@adacore.com>
4510
4511 GDB 8.3 released.
4512
13674803
SM
45132019-05-10 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4516 New variable declaration.
4517 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4518 New variable.
4519 (print_one_breakpoint): Use ui_out::test_flags and new global
4520 variable to compute use_fixed_output.
4521 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4522 Remove.
4523 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4524 (mi_multi_location_breakpoint_output_fixed): Remove.
4525 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4526 new variable.
4527 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4528 fix_multi_location_breakpoint_output flag if version >= 3.
4529 * ui-out.h (enum ui_out_flag)
4530 <fix_multi_location_breakpoint_output>: New enumerator.
4531
a9eac7f9
SM
45322019-05-10 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4535
71bed2db
TT
45362019-05-10 Tom Tromey <tromey@adacore.com>
4537
4538 * ada-lang.c (catch_ada_completer): New function.
4539 (_initialize_ada_language): Use it.
4540
24c54127
TT
45412019-05-10 Tom Tromey <tromey@adacore.com>
4542
4543 * thread.c (print_thread_info): Make "requested_threads" const.
4544 * gdbthread.h (print_thread_info): Make "requested_threads"
4545 const.
4546 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4547 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4548
7a102139
TT
45492019-05-08 Tom Tromey <tom@tromey.com>
4550
4551 * gdbtypes.c (objfile_type_data): Change type.
4552 (objfile_type, _initialize_gdbtypes): Update.
4553
924d79e2
TT
45542019-05-08 Tom Tromey <tom@tromey.com>
4555
4556 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4557 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4558 (_initialize_dwarf2_frame): Update.
4559
4c58e337
TT
45602019-05-08 Tom Tromey <tom@tromey.com>
4561
4562 * objc-lang.c (objc_objfile_data): Change type.
4563 (find_methods): Update.
4564 (_initialize_objc_lang): Remove.
4565
d772d2ab
TT
45662019-05-08 Tom Tromey <tom@tromey.com>
4567
4568 * stabsread.c (rs6000_builtin_type_data): Change type.
4569 (rs6000_builtin_type, _initialize_stabsread): Update.
4570
d11d83f4
TT
45712019-05-08 Tom Tromey <tom@tromey.com>
4572
4573 * mips-tdep.c (mips_pdr_data): Remove.
4574 (_initialize_mips_tdep): Update.
4575
9a73f0ad
TT
45762019-05-08 Tom Tromey <tom@tromey.com>
4577
4578 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4579 (hppa_init_objfile_priv_data, read_unwind_info)
4580 (find_unwind_entry, _initialize_hppa_tdep): Update.
4581
8127a2fa
TT
45822019-05-08 Tom Tromey <tom@tromey.com>
4583
4584 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4585 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4586 on obstack.
4587 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4588
91d3055d
TT
45892019-05-08 Tom Tromey <tom@tromey.com>
4590
4591 * mdebugread.c (basic_type_data): Change type.
4592 (basic_type, _initialize_mdebugread): Update.
4593
31930bd3
TT
45942019-05-08 Tom Tromey <tom@tromey.com>
4595
4596 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4597
bdb3ed9e
TT
45982019-05-08 Tom Tromey <tom@tromey.com>
4599
4600 * nto-tdep.c (nto_inferior_data_reg): Change type.
4601 (nto_inferior_data): Update.
4602 (nto_inferior_data_cleanup, nto_new_inferior_data)
4603 (_initialize_nto_tdep): Remove.
4604 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4605
f37b313d
TT
46062019-05-08 Tom Tromey <tom@tromey.com>
4607
4608 * ada-lang.c (struct ada_inferior_data): Add initializers.
4609 (ada_inferior_data): Change type.
4610 (ada_inferior_data_cleanup): Remove.
4611 (get_ada_inferior_data, ada_inferior_exit)
4612 (struct ada_pspace_data): Add initializers, destructor.
4613 (ada_pspace_data_handle): Change type.
4614 (get_ada_pspace_data): Update.
4615 (ada_pspace_data_cleanup): Remove.
4616
24699405
TT
46172019-05-08 Tom Tromey <tom@tromey.com>
4618
4619 * coffread.c (struct coff_symfile_info): Add initializers.
4620 (coff_objfile_data_key): Move lower. Change type.
4621 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4622 Update.
4623 (coff_free_info): Remove.
4624
d4e05d2f
TT
46252019-05-08 Tom Tromey <tom@tromey.com>
4626
4627 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4628 (fbsd_pspace_data_handle): Move lower. Change type.
4629 (get_fbsd_pspace_data): Update.
4630 (fbsd_pspace_data_cleanup): Remove.
4631 (_initialize_fbsd_tdep): Update.
4632
14ef6690
TT
46332019-05-08 Tom Tromey <tom@tromey.com>
4634
4635 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4636 (get_ada_tasks_pspace_data): Update.
4637 (ada_tasks_pspace_data_cleanup): Remove.
4638 (_initialize_tasks): Update.
4639 (ada_tasks_inferior_data_handle): Change type.
4640 (get_ada_tasks_inferior_data): Update.
4641 (ada_tasks_inferior_data_cleanup): Remove.
4642 (struct ada_tasks_pspace_data): Add initializers.
4643
814cf43a
TT
46442019-05-08 Tom Tromey <tom@tromey.com>
4645
4646 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4647 * symfile-debug.c (debug_sym_get_probes): Change type.
4648 * stap-probe.c (handle_stap_probe):
4649 (stap_static_probe_ops::get_probes): Change type.
4650 * probe.h (class static_probe_ops) <get_probes>: Change type.
4651 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4652 (parse_probes_in_pspace): Update.
4653 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4654 Update.
4655 (any_static_probe_ops::get_probes): Change type.
4656 * elfread.c (elfread_data): New typedef.
4657 (probe_key): Change type.
4658 (elf_get_probes): Likewise. Update.
4659 (probe_key_free): Remove.
4660 (_initialize_elfread): Update.
4661 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4662 Change type.
4663 (dtrace_process_dof_probe, dtrace_process_dof)
4664 (dtrace_static_probe_ops::get_probe): Change type.
4665
02dc647e
TT
46662019-05-08 Tom Tromey <tom@tromey.com>
4667
4668 * xcoffread.c (struct xcoff_symfile_info): Rename from
4669 coff_symfile_info. Add initializers.
4670 (xcoff_objfile_data_key): Move lower. Change type.
4671 (XCOFF_DATA): Rewrite.
4672 (xcoff_free_info): Remove.
4673 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4674 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4675 (xcoff_initial_scan): Update.
4676
09232438
TT
46772019-05-08 Tom Tromey <tom@tromey.com>
4678
4679 * solib-svr4.c (struct svr4_info): Add initializers and
4680 destructor.
4681 <probes_table>: Now an htab_up.
4682 (solib_svr4_pspace_data): Change type.
4683 (free_probes_table): Simplify.
4684 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4685 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4686 (probes_table_remove_objfile_probes, register_solib_event_probe)
4687 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4688 (_initialize_svr4_solib): Update.
4689
7b4a314f
TT
46902019-05-08 Tom Tromey <tom@tromey.com>
4691
4692 * remote.c (remote_pspace_data): Change type.
4693 (remote_pspace_data_cleanup): Remove.
4694 (get_remote_exec_file, set_pspace_remote_exec_file)
4695 (_initialize_remote): Update.
4696
51d3063a
TT
46972019-05-08 Tom Tromey <tom@tromey.com>
4698
4699 * breakpoint.c (breakpoint_objfile_key): Change type.
4700 (get_breakpoint_objfile_data): Update.
4701 (free_breakpoint_objfile_data): Remove.
4702 (_initialize_breakpoint): Update.
4703
89fb8848
TT
47042019-05-08 Tom Tromey <tom@tromey.com>
4705
4706 * linux-tdep.c (struct linux_info): Add initializers.
4707 (linux_inferior_data): Move. Change type.
4708 (invalidate_linux_cache_inf): Update.
4709 (linux_inferior_data_cleanup): Remove.
4710 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4711
e9b89e2d
TT
47122019-05-08 Tom Tromey <tom@tromey.com>
4713
4714 * auxv.c (auxv_inferior_data): Move. Change type.
4715 (auxv_inferior_data_cleanup): Remove.
4716 (invalidate_auxv_cache_inf): Rewrite.
4717 (get_auxv_inferior_data, _initialize_auxv): Update.
4718
8c42777c
TT
47192019-05-08 Tom Tromey <tom@tromey.com>
4720
4721 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4722 (symfile_debug_objfile_data_key): Change type.
4723 (symfile_debug_installed, debug_qf_has_symbols)
4724 (debug_qf_find_last_source_symtab)
4725 (debug_qf_forget_cached_source_info)
4726 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4727 (debug_qf_print_stats, debug_qf_dump)
4728 (debug_qf_expand_symtabs_for_function)
4729 (debug_qf_expand_all_symtabs)
4730 (debug_qf_expand_symtabs_with_fullname)
4731 (debug_qf_map_matching_symbols)
4732 (debug_qf_expand_symtabs_matching)
4733 (debug_qf_find_pc_sect_compunit_symtab)
4734 (debug_qf_map_symbol_filenames)
4735 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4736 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4737 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4738 (debug_sym_read_linetable, debug_sym_relocate): Update.
4739 (symfile_debug_free_objfile): Remove.
4740 (install_symfile_debug_logging, _initialize_symfile_debug):
4741 Update.
4742
5bfd760d
TT
47432019-05-08 Tom Tromey <tom@tromey.com>
4744
4745 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4746 allocate_on_obstack.
4747 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4748 (get_dwarf2_per_objfile): Update.
4749 (set_dwarf2_per_objfile): Remove.
4750 (dwarf2_has_info, dwarf2_get_section_info): Update.
4751 (dwarf2_free_objfile): Remove.
4752 (_initialize_dwarf2_read): Update.
4753
e85e19b4
TT
47542019-05-08 Tom Tromey <tom@tromey.com>
4755
4756 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4757 initializers.
4758 <unsupported_script_warning_printed,
4759 script_not_found_warning_printed>: Now bool.
4760 (auto_load_pspace_data): Change type.
4761 (~auto_load_pspace_info): Rename from
4762 auto_load_pspace_data_cleanup.
4763 (get_auto_load_pspace_data, init_loaded_scripts_info)
4764 (clear_section_scripts, maybe_print_unsupported_script_warning)
4765 (maybe_print_script_not_found_warning, _initialize_auto_load):
4766 Update.
4767
f6aa7436
TT
47682019-05-08 Tom Tromey <tom@tromey.com>
4769
4770 * objfiles.c (objfile_pspace_info): Add destructor and
4771 initializers.
4772 (objfiles_pspace_data): Change type.
4773 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4774 (get_objfile_pspace_data): Update.
4775 (objfiles_bfd_data): Change type.
4776 (get_objfile_bfd_data): Update.
4777 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4778
6ae614f6
TT
47792019-05-08 Tom Tromey <tom@tromey.com>
4780
4781 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4782 Change type.
4783 (get_catch_syscall_inferior_data): Update.
4784 (catch_syscall_inferior_data_cleanup): Remove.
4785 (_initialize_break_catch_syscall): Update.
4786
6509b8eb
TT
47872019-05-08 Tom Tromey <tom@tromey.com>
4788
4789 * inflow.c (struct terminal_info): Add destructor and
4790 initializers.
4791 (inflow_inferior_data): Change type.
4792 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4793 (get_inflow_inferior_data, inflow_inferior_exit)
4794 (swap_terminal_info, _initialize_inflow): Update.
4795
35632941
TT
47962019-05-08 Tom Tromey <tom@tromey.com>
4797
4798 * target-dcache.c (target_dcache_cleanup): Remove.
4799 (target_dcache_aspace_key): Change type.
4800 (target_dcache_init_p, target_dcache_invalidate)
4801 (target_dcache_get, target_dcache_get_or_init)
4802 (_initialize_target_dcache): Update.
4803 * dcache.h (struct dcache_deleter): New.
4804
3017b94d
TT
48052019-05-08 Tom Tromey <tom@tromey.com>
4806
4807 * symtab.c (struct symbol_cache): Add destructor and
4808 initializers.
4809 (symbol_cache_key): Move. Change type.
4810 (make_symbol_cache, free_symbol_cache): Remove.
4811 (get_symbol_cache): Update.
4812 (symbol_cache_cleanup): Remove.
4813 (ALL_PSPACES, symbol_cache_flush)
4814 (maintenance_print_symbol_cache)
4815 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4816 Update.
4817
a32ad8c5
TT
48182019-05-08 Tom Tromey <tom@tromey.com>
4819
4820 * symtab.c (struct main_info): Add destructor and initializers.
4821 (main_progspace_key): Move. Change type.
4822 (get_main_info): Update.
4823 (main_info_cleanup): Remove.
4824 (_initialize_symtab): Update.
4825
5f6e90a0
TT
48262019-05-08 Tom Tromey <tom@tromey.com>
4827
4828 * registry.h (DECLARE_REGISTRY): Define the _key class.
4829
1bd0c6e4
AB
48302019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4831
4832 * NEWS: Merge two 'New commands' sections.
4833
2228ef77
XR
48342019-05-08 Joel Brobecker <brobecker@adacore.com>
4835
4836 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4837 parameter and use Ada language definition instead.
4838 (ada_val_print_ptr): Remove unused language parameter.
4839 (ada_val_print_num): Remove language parameter and use Ada language
4840 definition instead.
4841 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4842 parameter.
4843 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4844 parameter and use Ada language definition instead.
4845 (ada_val_print_1): Update all ada_val_print_xxx calls.
4846 Remove language parameter.
4847 (ada_val_print): Update ada_val_print_1 call.
4848
60fcc1c3
TT
48492019-05-08 Tom Tromey <tromey@adacore.com>
4850
4851 * remote.c (remote_hw_watchpoint_limit)
4852 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4853 Now static.
4854
ed2b7c17
TT
48552019-05-08 Tom Tromey <tromey@adacore.com>
4856
4857 * maint.c (_initialize_maint_cmds): Move initialization code to
4858 remote.c.
4859 (watchdog, show_watchdog): Move to remote.c.
4860 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4861 "watchdog" static.
4862 (_initialize_remote): Move initialization code from maint.c.
4863 * defs.h (watchdog): Don't declare.
4864
b0be6c91
TT
48652019-05-08 Tom Tromey <tromey@adacore.com>
4866
4867 * tui/tui-interp.c: Include main.h.
4868 * interps.c: Include main.h.
4869 * main.h (interpreter_p): Declare.
4870 * defs.h (interpreter_p): Don't declare.
4871
587ee17b
TT
48722019-05-08 Tom Tromey <tromey@adacore.com>
4873
4874 * dwarf2loc.c: Include dwarf2read.h.
4875 * defs.h (read_unsigned_leb128): Don't declare.
4876 * dwarf2read.h (read_unsigned_leb128): Declare.
4877
ca1df239
TT
48782019-05-08 Tom Tromey <tromey@adacore.com>
4879
4880 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4881 method.
4882
99f20f08
TT
48832019-05-08 Tom Tromey <tromey@adacore.com>
4884
4885 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4886 when no wrap column is set.
4887
80e55b13
TT
48882019-05-08 Tom Tromey <tromey@adacore.com>
4889
4890 * c-lang.c (c_get_string): Handle non-C-style arrays.
4891
9d3421af
TT
48922019-05-08 Tom Tromey <tromey@adacore.com>
4893
4894 * typeprint.c (print_offset_data::update): Print the bit offset,
4895 not the number of bits remaining.
4896
844333e2
TT
48972019-05-08 Tom Tromey <tromey@adacore.com>
4898
4899 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4900 padding at end of comment.
4901
988915ee
TT
49022019-05-08 Tom Tromey <tromey@adacore.com>
4903
4904 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4905 Compare main types.
4906
26bfd823
TT
49072019-05-06 Tom Tromey <tom@tromey.com>
4908
4909 * common/scoped_mmap.c: Include common-defs.h.
4910 * common/scoped_mmap.h: Don't include config.h.
4911
89055eaa
TT
49122019-05-04 Tom Tromey <tom@tromey.com>
4913
4914 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4915 (struct aarch64_call_info): Add initializers.
4916 <si>: Now a std::vector.
4917 (pass_on_stack, aarch64_push_dummy_call): Update.
4918
5da01df5
TT
49192019-05-04 Simon Marchi <simon.marchi@efficios.com>
4920 Tom Tromey <tom@tromey.com>
4921
4922 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4923 (ppc_threads): Now a std::vector. Now static.
4924 (hwdebug_find_thread_points_by_tid)
4925 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4926 Update.
4927
fbdf05a1
TT
49282019-05-04 Tom Tromey <tom@tromey.com>
4929
4930 * arc-tdep.c (arc_tdesc_init): Return bool.
4931
06d16ec9
TT
49322019-05-04 Tom Tromey <tom@tromey.com>
4933
4934 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4935 Use gdb_assert_not_reached.
4936
9c056022
TT
49372019-05-04 Tom Tromey <tom@tromey.com>
4938
4939 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4940 "false".
4941
fa9c2a59
TT
49422019-05-04 Tom Tromey <tom@tromey.com>
4943
4944 * arc-tdep.c (arc_tdesc_init): Use bool.
4945
e2eb806a
TT
49462019-05-04 Tom Tromey <tom@tromey.com>
4947
4948 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4949
6fe87677
TT
49502019-05-04 Tom Tromey <tom@tromey.com>
4951
4952 * cli/cli-cmds.c (valid_command_p): Return bool.
4953
7f008c9e
TT
49542019-05-04 Tom Tromey <tom@tromey.com>
4955
4956 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4957 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4958
b6484282
RT
49592019-05-04 Raul Tambre <raul@tambre.ee>
4960
4961 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4962 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4963 operator for comparison.
4964
af97b416
TT
49652019-05-04 Tom Tromey <tom@tromey.com>
4966
4967 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4968 (lookup_partial_symbol, print_partial_symbols)
4969 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4970 (psymbol_compare): Update.
4971 (add_psymbol_to_bcache): Clear the entire psymbol.
4972 (maintenance_check_psymtabs): Update.
4973 * psympriv.h (struct partial_symbol): Don't derive from
4974 general_symbol_info.
4975 <obj_section, unrelocated_address, address,
4976 set_unrelocated_address>: Update.
4977 <ginfo>: New member.
4978 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4979 (debug_names::write_psymbols): Update.
4980
9d6d4be8
TV
49812019-05-04 Tom de Vries <tdevries@suse.de>
4982
4983 * contrib/cc-with-tweaks.sh: Support -n arg.
4984
66452beb
PW
49852019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4986
4987 * corelow.c (core_target::detach): Ensure frame cache and
4988 register caches are cleared.
4989 inferior.c (exit_inferior_1): Likewise.
4990
bde09ab7
TT
49912019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4992 Tom Tromey <tom@tromey.com>
4993
4994 * dictionary.c (collate_pending_symbols_by_language): Remove
4995 "struct" from foreach.
4996 * symtab.c (lookup_global_symbol_from_objfile)
4997 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4998 foreach.
4999 * ser-tcp.c (net_open): Remove "struct" from foreach.
5000 * objfiles.c (objfile_relocate, objfile_rebase)
5001 (objfile_has_symbols): Remove "struct" from foreach.
5002 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5003 from foreach.
5004 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5005 foreach.
5006 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5007 "struct" from foreach.
5008 * ada-lang.c (create_excep_cond_exprs)
5009 (ada_exception_catchpoint_cond_string): Remove "struct" from
5010 foreach.
5011
222a8d25
TT
50122019-05-03 Tom Tromey <tromey@adacore.com>
5013
5014 * ada-exp.y (convert_char_literal): Check suffix of each
5015 enumerator.
5016
fcd60b84
DP
50172019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5018
5019 PR ada/21406:
5020 * ada-exp.y (yywrap): Don't define.
5021 * ada-lex.l (%option): Add noyywrap
5022 (yywrap): Remove.
5023
5f2459c2
EZ
50242019-05-03 Eli Zaretskii <eliz@gnu.org>
5025
353ea2d1
EZ
5026 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5027 _WIN32_WINNT to the XP level, unless already defined to a higher
5028 level.
5029
5030 * unittests/parse-connection-spec-selftests.c:
5031 * ser-tcp.c:
5032 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5033 override.
5034
5f2459c2
EZ
5035 * symfile.c (find_separate_debug_file): Remove colon from the
5036 drive spec of DOS/Windows file names of the target, so that the
5037 file name produced from DEBUGDIR and the target's directory will
5038 be valid on DOS/Windows systems.
5039
80062eb9
AB
50402019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5041
5042 * rust-lang.c (val_print_struct): Handle printing structures
5043 containing strings.
5044
b8c05e85
TT
50452019-05-02 Tom Tromey <tromey@adacore.com>
5046
5047 * valarith.c (_initialize_valarith): Remove.
5048
4504bbde
TT
50492019-05-01 Tom Tromey <tromey@adacore.com>
5050
5051 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5052 bitfields.
5053
d48e62f4
TT
50542019-05-01 Tom Tromey <tromey@adacore.com>
5055
5056 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5057 for big-endian copies.
5058
15f18d14
AT
50592019-04-30 Ali Tamur <tamur@google.com>
5060 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5061 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5062 (read_3_bytes): New function.
5063
ab4ee614
JB
50642019-04-30 Joel Brobecker <brobecker@adacore.com>
5065
5066 * windows-nat.c (main_thread_id): Delete.
5067 (handle_output_debug_string): Replace main_thread_id by
5068 current_event.dwThreadId.
5069 (fake_create_process): Likewise.
5070 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5071 Do not set main_thread_id.
5072 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5073 current_event.dwThreadId.
5074 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5075
8ed5b76e
JB
50762019-04-30 Joel Brobecker <brobecker@adacore.com>
5077
5078 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5079 Use current_event.dwThreadId instead of main_thread_id.
5080
2ff0a947
TT
50812019-04-30 Tom Tromey <tromey@adacore.com>
5082
5083 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5084 (create_excep_cond_exprs): Iterate over program spaces.
5085 (ada_exception_catchpoint_cond_string): Examine all minimal
5086 symbols for exception types.
5087
a776957c
TT
50882019-04-30 Tom Tromey <tromey@adacore.com>
5089
5090 PR c++/24470:
5091 * dwarf2read.c (process_structure_scope): Handle case where type
5092 has template parameters but no symbol was created.
5093
bc68014d
AB
50942019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5095 Chris January <chris.january@arm.com>
5096
5097 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5098 qualifier.
5099 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5100
f1fdc960
AB
51012019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5102
5103 * f-typeprint.c (f_print_type): Update rules for printing
5104 whitespace.
5105 (f_type_print_varspec_suffix): Likewise.
5106
bf7a4de1
AB
51072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5108 Chris January <chris.january@arm.com>
5109
5110 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5111 function arguments.
5112
bbe75b9d
AB
51132019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * f-lang.c (build_fortran_types): Change name of void type to
5116 lower case.
5117 * f-typeprint.c (f_type_print_base): Print the name of the void
5118 type, rather than a fixed string.
5119 * f-valprint.c (f_decorations): Use lower case void string.
5120
1db455a7
AB
51212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5122 Chris January <chris.january@arm.com>
5123
5124 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5125 types for Fortran.
5126
b6d03bb2
AB
51272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5128 Chris January <chris.january@arm.com>
5129 David Lecomber <david.lecomber@arm.com>
5130
5131 * f-exp.y (BINOP_INTRINSIC): New token.
5132 (exp): New parser rule handling BINOP_INTRINSIC.
5133 (f77_keywords): Add new builtin procedures.
5134 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5135 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5136 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5137 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5138 (print_unop_subexp_f): New function.
5139 (print_binop_subexp_f): New function.
5140 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5141 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5142 (dump_subexp_body_f): Likewise.
5143 (operator_check_f): Likewise.
5144 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5145 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5146
83228e93
AB
51472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5148
5149 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5150 UNOP_KIND.
5151 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5152 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5153 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5154 (operator_length_f): New fuction.
5155 (print_subexp_f): New function.
5156 (op_name_f): New function.
5157 (dump_subexp_body_f): New function.
5158 (operator_check_f): New function.
5159 (exp_descriptor_f): Replace standard expression handling functions
5160 with new functions.
5161 * gdb/fortran-operator.def: New file.
5162 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5163 * gdb/std-operator.def: Remove UNOP_KIND.
5164
6fdcd7cc
AB
51652019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5166
5167 * std-operator.def: Remove unbalanced, stray double quote
5168 character.
5169
2e62ab40
AB
51702019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5171 Chris January <chris.january@arm.com>
5172 Daniel Everett <daniel.everett@arm.com>
5173 Nick Forrington <nick.forrington@arm.com>
5174 Richard Bunt <richard.bunt@arm.com>
5175
5176 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5177 of depth when printing anonymous structs or unions.
5178 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5179 Don't print either the top-level value, or the children if the
5180 max-depth is exceeded.
5181 (ppscm_print_children): When printing the key of a map, allow one
5182 extra level of depth.
5183 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5184 print either the top-level value, or the children if the max-depth
5185 is exceeded.
5186 (print_children): When printing the key of a map, allow one extra
5187 level of depth.
5188 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5189 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5190 (user_print_options): Initialise max_depth field.
5191 (val_print_scalar_or_string_type_p): New function.
5192 (val_print): Check to see if the max depth has been reached.
5193 (val_print_check_max_depth): Define new function.
5194 (show_print_max_depth): New function.
5195 (_initialize_valprint): Add 'print max-depth' option.
5196 * valprint.h (struct value_print_options) <max_depth>: New field.
5197 (val_print_check_max_depth): Declare new function.
5198 * NEWS: Document new feature.
5199
4be290b2
AB
52002019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5201
5202 * ada-lang.c (ada_language_defn): Initialise new field.
5203 * c-lang.c (c_is_string_type_p): New function.
5204 (c_language_defn): Initialise new field.
5205 (cplus_language_defn): Initialise new field.
5206 (asm_language_defn): Initialise new field.
5207 (minimal_language_defn): Initialise new field.
5208 * c-lang.h (c_is_string_type_p): Declare new function.
5209 * d-lang.c (d_language_defn): Initialise new field.
5210 * f-lang.c (f_is_string_type_p): New function.
5211 (f_language_defn): Initialise new field.
5212 * go-lang.c (go_is_string_type_p): New function.
5213 (go_language_defn): Initialise new field.
5214 * language.c (default_is_string_type_p): New function.
5215 (unknown_language_defn): Initialise new field.
5216 (auto_language_defn): Initialise new field.
5217 * language.h (struct language_defn) <la_is_string_type_p>: New
5218 member variable.
5219 (default_is_string_type_p): Declare new function.
5220 * m2-lang.c (m2_language_defn): Initialise new field.
5221 * objc-lang.c (objc_language_defn): Initialise new field.
5222 * opencl-lang.c (opencl_language_defn): Initialise new field.
5223 * p-lang.c (pascal_is_string_type_p): New function.
5224 (pascal_language_defn): Initialise new field.
5225 * rust-lang.c (rust_is_string_type_p): New function.
5226 (rust_language_defn): Initialise new field.
5227
721b08c6
AB
52282019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5229
5230 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5231 New field.
5232 * ada-lang.c (ada_language_defn): Initialise new field.
5233 * c-lang.c (c_language_defn): Likewise.
5234 (cplus_language_defn): Likewise.
5235 (asm_language_defn): Likewise.
5236 (minimal_language_defn): Likewise.
5237 * d-lang.c (d_language_defn): Likewise.
5238 * f-lang.c (f_language_defn): Likewise.
5239 * go-lang.c (go_language_defn): Likewise.
5240 * language.c (unknown_language_defn): Likewise.
5241 (auto_language_defn): Likewise.
5242 * m2-lang.c (m2_language_defn): Likewise.
5243 * objc-lang.c (objc_language_defn): Likewise.
5244 * opencl-lang.c (opencl_language_defn): Likewise.
5245 * p-lang.c (pascal_language_defn): Likewise.
5246 * rust-lang.c (rust_language_defn): Likewise.
5247
fc913e53
AB
52482019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5249
5250 * ada-lang.c (ada_is_character_type): Change return type to bool.
5251 (ada_is_string_type): Likewise.
5252 * ada-lang.h (ada_is_character_type): Update declaration
5253 (ada_is_string_type): Likewise.
5254
fa731fa0
PW
52552019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5256
5257 Support style in 'frame|thread apply'
5258
5259 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5260 * record.c (record_start, record_stop): Update callers of
5261 execute_command_to_string with false.
5262 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5263 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5264 methods.
5265 (class string_file): New constructor with term_out parameter.
5266 Override methods term_out and can_emit_style_escape. New member
5267 term_out.
5268 (class stdio_file): Override can_emit_style_escape.
5269 (class tee_file): Override term_out and can_emit_style_escape.
5270 * utils.h (can_emit_style_escape): Remove.
5271 * utils.c (can_emit_style_escape): Likewise.
5272 Update all callers of can_emit_style_escape (SOMESTREAM) to
5273 SOMESTREAM->can_emit_style_escape.
5274 * source-cache.c (source_cache::get_source_lines): Likewise.
5275 * stack.c (frame_apply_command_count): Call execute_command_to_string
5276 passing the term_out characteristic of the current gdb_stdout.
5277 * thread.c (thr_try_catch_cmd): Likewise.
5278 * top.c (execute_command_to_string): pass term_out parameter
5279 to construct the string_file for the command output.
5280 * ui-file.c (term_cli_styling): New function (most code moved
5281 from utils.c can_emit_style_escape).
5282 (string_file::string_file, string_file::can_emit_style_escape,
5283 stdio_file::can_emit_style_escape, tee_file::term_out,
5284 tee_file::can_emit_style_escape): New functions.
5285
136afab8
PW
52862019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5287
5288 * NEWS: Mention the new set|show may-call-functions.
5289 * infcall.c (may_call_functions_p): New variable.
5290 (show_may_call_functions_p): New function.
5291 (call_function_by_hand_dummy): Throws an error if not
5292 may-call-functions.
5293 (_initialize_infcall): Call add_setshow_boolean_cmd for
5294 may-call-functions.
5295
725cbb63
KS
52962019-04-25 Keith Seitz <keiths@redhat.com>
5297
5298 PR c++/24367
5299 * cp-support.c (inspect_type): Don't attempt substitutions
5300 of symbol with the same name.
5301
3d1cbb78
TT
53022019-04-25 Tom Tromey <tromey@adacore.com>
5303
5304 PR gdb/24475:
5305 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5306 static.
5307
94aeb44b
TT
53082019-04-25 Tom Tromey <tromey@adacore.com>
5309
5310 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5311 rvalue reference.
5312 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5313 (gdb_xml_parser::parse): Use std::move.
5314 * python/python-internal.h (gdbpy_convert_exception): Take a const
5315 reference.
5316 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5317 std::move.
5318 * python/py-utils.c (gdbpy_convert_exception): Take a const
5319 reference.
5320 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5321 Use std::move.
5322 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5323 Use std::move.
5324 * mi/mi-main.c (mi_print_exception): Take a const reference.
5325 * main.c (handle_command_errors): Take a const reference.
5326 * linespec.c (parse_linespec): Use std::move.
5327 * infcall.c (run_inferior_call): Use std::move.
5328 (call_function_by_hand_dummy): Use std::move.
5329 * exec.c (try_open_exec_file): Use std::move.
5330 * exceptions.h (exception_print, exception_fprintf)
5331 (exception_print_same): Update.
5332 * exceptions.c (print_exception, exception_print)
5333 (exception_fprintf, exception_print_same): Change parameters to
5334 const reference.
5335 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5336 * common/new-op.c: Use std::move.
5337 * common/common-exceptions.h (struct gdb_exception): Add move
5338 constructor.
5339 (struct gdb_exception_error, struct gdb_exception_quit, struct
5340 gdb_quit_bad_alloc): Change constructor to move constructor.
5341 (throw_exception): Change parameter to rvalue reference.
5342 * common/common-exceptions.c (throw_exception): Take rvalue
5343 reference.
5344 * cli/cli-interp.c (safe_execute_command): Use std::move.
5345 * breakpoint.c (insert_bp_location, location_to_sals): Use
5346 std::move.
5347
680d7fd5
TT
53482019-04-25 Tom Tromey <tromey@adacore.com>
5349
5350 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5351 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5352 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5353 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5354 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5355 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5356 guile/scm-value.c: Use unpack.
5357 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5358 gdbscm_gdb_exception.
5359 (gdbscm_throw_gdb_exception): Likewise.
5360 (struct gdbscm_gdb_exception): New.
5361 (unpack): New function.
5362 (gdbscm_wrap): Use unpack.
5363
c6fdd8b2
TT
53642019-04-25 Tom Tromey <tromey@adacore.com>
5365
5366 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5367 (gdb_rl_callback_handler): Use std::move.
5368 * common/common-exceptions.h (struct gdb_exception): Add move
5369 assignment operator.
5370 (throw_exception_sjlj): Change "exception" to const reference.
5371 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5372 (throw_exception_sjlj): Change "exception" to const reference.
5373
cc06b668
TT
53742019-04-25 Tom Tromey <tromey@adacore.com>
5375
5376 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5377 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5378 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5379 Update.
5380 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5381 Update.
5382 * mi/mi-interp.c (mi_interp::exec): Update.
5383 * linespec.c (parse_linespec): Update.
5384 * infcall.c (run_inferior_call): Update.
5385 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5386 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5387 (gdbscm_lookup_global_symbol): Update.
5388 * guile/scm-param.c (gdbscm_parameter_value): Update.
5389 * guile/scm-frame.c (gdbscm_frame_read_register)
5390 (gdbscm_frame_read_var): Update.
5391 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5392 * exec.c (try_open_exec_file): Update.
5393 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5394 (gdb_rl_callback_handler): Update.
5395 * common/common-exceptions.h (exception_none): Don't declare.
5396 * common/common-exceptions.c (exception_none): Don't define.
5397 (struct catcher) <exception>: Update.
5398 * cli/cli-interp.c (safe_execute_command): Update.
5399 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5400
cf532bd1
AT
54012019-04-25 Ali Tamur <tamur@google.com>
5402
5403 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5404 (read_attribute_value): Likewise.
5405 (dwarf2_read_addr_index): Update comment.
5406 (read_str_index): Add DW_FORM_strx.
5407 (dwarf2_string_attr): Likewise.
5408 (dwarf2_const_value_attr): Likewise.
5409 (dump_die_shallow): Likewise.
5410 (dwarf2_fetch_constant_bytes): Likewise.
5411 (skip_form_bytes): Likewise.
5412 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5413
82433e3e
SDJ
54142019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5415
5416 PR corefiles/11608
5417 PR corefiles/18187
5418 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5419 OFFSET. Verify if current mapping contains an ELF header.
5420 (linux_find_memory_regions_full): Adjust call to
5421 dump_mapping_p.
5422
723adb65
SL
54232019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5424 Kang Li <kanglictf@gmail.com>
5425
5426 PR gdb/21600
5427
5428 * dwarf2-frame.c (read_initial_length): Be consistent about using
5429 unsigned representation of length.
5430 (decode_frame_entry_1): Likewise. Check for wraparound of
5431 end pointer as well as buffer overflow.
5432
596179f7
SDJ
54332019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5434
5435 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5436 "vq".
5437
a59240a4
TT
54382019-04-24 Tom Tromey <tromey@adacore.com>
5439
5440 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5441
f872fdbb
AB
54422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5443
5444 * s12z-tdep.c (s12z_unwind_pc): Delete.
5445 (s12z_unwind_sp): Delete.
5446 (s12z_gdbarch_init): Don't register deleted functions with
5447 gdbarch.
5448
b614e6f3
AB
54492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5450
5451 * rl78-tdep.c (rl78_unwind_sp): Delete.
5452 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5453
14faed38
AB
54542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5455
5456 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5457 (xstormy16_unwind_pc): Delete.
5458 (xstormy16_dummy_id): Delete.
5459 (xstormy16_gdbarch_init): Don't register deleted functions with
5460 gdbarch.
5461
541aad8a
AB
54622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5463
5464 * vax-tdep.c (vax_unwind_pc): Delete.
5465 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5466
29222070
AB
54672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5468
5469 * v850-tdep.c (v850_unwind_sp): Delete.
5470 (v850_unwind_pc): Delete.
5471 (v850_dummy_id): Delete.
5472 (v850_gdbarch_init): Don't register deleted functions with
5473 gdbarch.
5474
0f534d76
AB
54752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5476
5477 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5478 (tilegx_unwind_pc): Delete.
5479 (tilegx_unwind_dummy_id): Delete.
5480 (tilegx_gdbarch_init): Don't register deleted functions with
5481 gdbarch.
5482
1ba7b7f9
AB
54832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5484
5485 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5486 (tic6x_dummy_id): Delete.
5487 (tic6x_gdbarch_init): Don't register deleted functions with
5488 gdbarch.
5489
d31f262c
AB
54902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5491
5492 * sparc-tdep.c (sparc_unwind_pc): Delete.
5493 (sparc32_gdbarch_init): Don't register deleted function with
5494 gdbarch.
5495
6d14d64d
AB
54962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5497
5498 * sh-tdep.c (sh_unwind_sp): Delete.
5499 (sh_unwind_pc): Delete.
5500 (sh_dummy_id): Delete.
5501 (sh_gdbarch_init): Don't register deleted functions with
5502 gdbarch.
5503
a40dde9d
AB
55042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5505
5506 * score-tdep.c (score_unwind_sp): Delete.
5507 (score_unwind_pc): Delete.
5508 (score_dummy_id): Delete.
5509 (score_gdbarch_init): Don't register deleted functions with
5510 gdbarch.
5511
47c47d69
AB
55122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5513
5514 * rx-tdep.c (rx_unwind_pc): Delete.
5515 (rx_unwind_sp): Delete.
5516 (rx_dummy_id): Delete.
5517 (rx_gdbarch_init): Don't register deleted functions with
5518 gdbarch. Update comment.
5519
833a4480
AB
55202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5523 (rs6000_dummy_id): Delete.
5524 (rs6000_gdbarch_init): Don't register deleted functions with
5525 gdbarch.
5526
3f2cef49
AB
55272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5528
5529 * or1k-tdep.c (or1k_dummy_id): Delete.
5530 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5531
96acf884
AB
55322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5533
5534 * nios2-tdep.c (nios2_dummy_id): Delete.
5535 (nios2_unwind_sp): Delete.
5536 (nios2_gdbarch_init): Don't register deleted functions with
5537 gdbarch.
5538
ca0ab0aa
AB
55392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5540
5541 * nds32-tdep.c (nds32_dummy_id): Delete.
5542 (nds32_unwind_pc): Delete.
5543 (nds32_unwind_sp): Delete.
5544 (nds32_gdbarch_init): Don't register deleted functions with
5545 gdbarch.
5546
c8259044
AB
55472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5548
5549 * msp430-tdep.c (msp430_unwind_pc): Delete.
5550 (msp430_unwind_sp): Delete.
5551 (msp430_dummy_id): Delete.
5552 (msp430_gdbarch_init): Don't register deleted functions with
5553 gdbarch.
5554
27f113c8
AB
55552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5556
5557 * moxie-tdep.c (moxie_unwind_sp): Delete.
5558 (moxie_unwind_pc): Delete.
5559 (moxie_dummy_id): Delete.
5560 (moxie_gdbarch_init): Don't register deleted functions with
5561 gdbarch.
5562
aee6c3cd
AB
55632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5564
5565 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5566 (mn10300_unwind_pc): Delete.
5567 (mn10300_unwind_sp): Delete.
5568 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5569 mn10300_unwind_sp.
5570 (mn10300_frame_unwind_init): Don't register deleted functions with
5571 gdbarch.
5572
8e2b5aea
AB
55732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5574
5575 * mep-tdep.c (mep_unwind_pc): Delete.
5576 (mep_unwind_sp): Delete.
5577 (mep_dummy_id): Delete.
5578 (mep_gdbarch_init): Don't register deleted functions with
5579 gdbarch.
5580
43cf3ede
AB
55812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5582
5583 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5584 (m68hc11_unwind_sp): Delete.
5585 (m68hc11_gdbarch_init): Don't register deleted functions with
5586 gdbarch.
5587
5e79b7bb
AB
55882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5589
5590 * m32r-tdep.c (m32r_unwind_sp): Delete.
5591 (m32r_unwind_pc): Delete.
5592 (m32r_dummy_id): Delete.
5593 (m32r_gdbarch_init): Don't register deleted functions with
5594 gdbarch.
5595
89b268d8
AB
55962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5597
5598 * m32c-tdep.c (m32c_unwind_pc): Delete.
5599 (m32c_unwind_sp): Delete.
5600 (m32c_dummy_id): Delete.
5601 (m32c_gdbarch_init): Don't register deleted functions with
5602 gdbarch.
5603
946c28d2
AB
56042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5605
5606 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5607 (lm32_unwind_pc): Delete.
5608 (lm32_dummy_id): Delete.
5609 (lm32_gdbarch_init): Don't register deleted functions with
5610 gdbarch.
5611
bf12844a
AB
56122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5613
5614 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5615 (iq2000_unwind_pc): Delete.
5616 (iq2000_dummy_id): Delete.
5617 (iq2000_gdbarch_init): Don't register deleted functions with
5618 gdbarch.
5619
ecbc06d2
AB
56202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5621
5622 * nds32-tdep.c (nds32_type_align): Delete.
5623 (nds32_push_dummy_call): Use type_align instead.
5624
030197b4
AB
56252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5626
5627 * arm-tdep.c (arm_type_align): Only handle vector override case.
5628 (arm_push_dummy_call): Use type_align.
5629 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5630
b907456c
AB
56312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5632
5633 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5634 case.
5635 (pass_on_stack): Use type_align.
5636 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5637 function.
5638
9e97ba43
TT
56392019-04-23 Tom Tromey <tromey@adacore.com>
5640
5641 * dwarf2read.c (line_header::file_name_at): Remove unused
5642 overload.
5643
6892f601
TV
56442019-04-23 Tom de Vries <tdevries@suse.de>
5645
5646 PR gdb/24438
5647 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5648 invocation.
5649
336d760d
AT
5650
56512019-03-27 Ali Tamur <tamur@google.com>
5652
5653 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5654 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5655 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5656 (dwarf_expr_context::get_addr_index): Likewise
5657 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5658 (symbol_needs_eval_context::get_addr_index): Likewise
5659 (disassemble_dwarf_expression): Add DW_OP_addrx
5660 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5661 (read_cutu_die_from_dwo): Update comment
5662 (skip_one_die): Add DW_FORM_addrx
5663 (read_attribute_value): Likewise
5664 (var_decode_location): Add DW_OP_addrx
5665 (dwarf2_const_value_attr): Add DW_FORM_addrx
5666 (dump_die_shallow): Likewise
5667 (dwarf2_fetch_constant_bytes): Likewise
5668 (decode_locdesc): Add DW_OP_addrx
5669 (skip_form_bytes): Add DW_FORM_addrx
5670
ad9d13f8
AT
56712019-04-22 Ali Tamur <tamur@google.com>
5672
5673 * MAINTAINERS (Write After Approval): Add self.
5674
d70cc3ba
SM
56752019-04-22 Simon Marchi <simon.marchi@efficios.com>
5676
5677 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5678 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5679 (open_symbol_file_object): Likewise.
5680 (svr4_default_sos): Add info parameter.
5681 (svr4_read_so_list): Likewise.
5682 (svr4_current_sos_direct): Adjust functions calls to pass down
5683 info.
5684 (svr4_current_sos_1): Add info parameter.
5685 (svr4_current_sos): Call get_svr4_info, pass info down to
5686 svr4_current_sos_1.
5687 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5688 get_svr4_info.
5689 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5690 get_svr4_info.
5691 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5692 to get_svr4_info.
5693 (probes_table_remove_objfile_probes): Likewise.
5694 (register_solib_event_probe): Add info parameter.
5695 (solist_update_incremental): Pass info parameter down to
5696 svr4_read_so_list.
5697 (disable_probes_interface): Add info parameter.
5698 (svr4_handle_solib_event): Pass current_program_space to
5699 get_svr4_info. Adjust disable_probes_interface cleanup.
5700 (svr4_create_probe_breakpoints): Add info parameter, pass it
5701 down to register_solib_event_probe.
5702 (svr4_create_solib_event_breakpoints): Add info parameter,
5703 pass it down to svr4_create_probe_breakpoints.
5704 (enable_break): Pass info down to
5705 svr4_create_solib_event_breakpoints.
5706 (svr4_solib_create_inferior_hook): Pass current_program_space to
5707 get_svr4_info.
5708 (svr4_clear_solib): Likewise.
5709
7905fc35
PA
57102019-04-22 Pedro Alves <palves@redhat.com>
5711
5712 * solib-svr4.c (svr4_free_objfile_observer): New.
5713 (probe_and_action::objfile): New field.
5714 (probes_table_htab_remove_objfile_probes)
5715 (probes_table_remove_objfile_probes): New functions.
5716 (register_solib_event_probe): Add 'objfile' parameter. Store it
5717 in the new probe_and_action. Don't store the probe in 'lookup'.
5718 (svr4_create_probe_breakpoints): Pass objfile to
5719 register_solib_event_probe.
5720 (_initialize_svr4_solib): Register a free_objfile observer.
5721
fb881986
TT
57222019-04-19 Tom Tromey <tom@tromey.com>
5723
5724 * common/queue.h: Remove.
5725
8732db6c
TT
57262019-04-19 Tom Tromey <tom@tromey.com>
5727
5728 * event-loop.c: Don't include "common/queue.h".
5729
97dfbadd
TT
57302019-04-19 Tom Tromey <tom@tromey.com>
5731
5732 * remote.c (remote_target): Use delete.
5733 * remote-notif.h: Include <list>, not "common/queue.h".
5734 (notif_client_p): Remove typedef.
5735 (remote_notif_state): Add constructor, destructor, initializer.
5736 <notif_queue>: Now a std::list.
5737 (remote_notif_state_xfree): Don't declare.
5738 * remote-notif.c (remote_notif_process, handle_notification)
5739 (remote_notif_state_allocate): Update.
5740 (~remote_notif_state): Rename from remote_notif_state_xfree.
5741
cf250e36
TT
57422019-04-19 Tom Tromey <tom@tromey.com>
5743
5744 * symfile.c (reread_symbols): Update.
5745 * objfiles.c (objfile_register_static_link)
5746 (objfile_lookup_static_link): Update
5747 (~objfile) Don't delete static_links.
5748 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5749
61f4b350
TT
57502019-04-19 Tom Tromey <tom@tromey.com>
5751
5752 * type-stack.h (struct type_stack) <insert>: Constify string.
5753 * type-stack.c (type_stack::insert): Constify string.
5754 * gdbtypes.h (lookup_template_type): Update.
5755 (address_space_name_to_int): Update.
5756 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5757 const.
5758 (lookup_template_type): Make name const.
5759 * c-exp.y: Update rules.
5760 (lex_one_token, classify_name, classify_inner_name)
5761 (c_print_token): Update.
5762 * p-exp.y: Update rules.
5763 (yylex): Update.
5764 * f-exp.y: Update rules.
5765 (yylex): Update.
5766 * d-exp.y: Update rules.
5767 (lex_one_token, classify_name, classify_inner_name): Update.
5768 * parse.c (write_dollar_variable, copy_name): Return std::string.
5769 * parser-defs.h (copy_name): Change return type.
5770 * m2-exp.y: Update rules.
5771 (yylex): Update.
5772 * go-exp.y (lex_one_token): Update.
5773 Update rules.
5774 (classify_unsafe_function, classify_packaged_name)
5775 (classify_name, yylex): Update.
5776
189b8c2e
ST
57772019-04-19 Sergei Trofimovich <siarheit@google.com>
5778
5779 * configure.ac: add --enable-source-highlight switch.
5780 * configure: Regenerate.
5781 * top.c (print_gdb_version): plumb --enable-source-highlight
5782 status to "show configuration".
5783
8ecb59f8
TT
57842019-04-19 Tom Tromey <tromey@adacore.com>
5785
5786 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5787 Check ADA_TYPE_P.
5788 (empty_record, ada_template_to_fixed_record_type_1)
5789 (template_to_static_fixed_type)
5790 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5791 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5792 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5793 macros.
5794
62160ec9
TT
57952019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5796
5797 PR symtab/24423:
5798 * source.c (print_source_lines_base): Advance "iter" when a
5799 control character is seen.
5800
f2ae8bc8
PW
58012019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5802
5803 * inferior.h (struct infcall_suspend_state_deleter):
5804 Catch exception in destructor to avoid crash.
5805
d563b953
PW
58062019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5807
5808 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5809 close to the add_com "shell".
5810
dc34c897
TT
58112019-04-18 Tom Tromey <tromey@adacore.com>
5812
5813 * process-stratum-target.h (class process_stratum_target)
5814 <stratum>: Add "final".
5815
a12e5744
TT
58162019-04-17 Tom Tromey <tromey@adacore.com>
5817
5818 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5819 against nullptr before use.
5820
a7e559cc
AH
58212019-04-17 Alan Hayward <alan.hayward@arm.com>
5822
5823 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5824
c01660c6
AB
58252019-04-17 Jim Wilson <jimw@sifive.com>
5826 Andrew Burgess <andrew.burgess@embecosm.com>
5827
5828 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5829 code read might fail, assume 4-byte breakpoint in that case.
5830
4aa866af
LS
58312019-04-15 Leszek Swirski <leszeks@google.com>
5832
5833 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5834 rather than a hand-rolled POD check when checking for forced MEMORY
5835 classification.
5836
48574d91
AH
58372019-04-15 Alan Hayward <alan.hayward@arm.com>
5838
5839 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5840 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5841 function.
5842 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5843 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5844 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5845 declaration.
5846
4da037ef
AH
58472019-04-15 Alan Hayward <alan.hayward@arm.com>
5848
5849 * aarch64-linux-nat.c
5850 (aarch64_linux_nat_target::thread_architecture): Add override.
5851 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5852 each VQ.
5853
ccb8d7e8
AH
58542019-04-15 Alan Hayward <alan.hayward@arm.com>
5855
5856 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5857
35add35e
AB
58582019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5859
5860 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5861 target types of size 96-bits, add some additional comments, and
5862 check that the builtin type we found was the correct size.
5863
51196bbc
EZ
58642019-04-12 Eli Zaretskii <eliz@gnu.org>
5865
5866 * utils.c (prompt_for_continue): Don't restore the styling at the
5867 end, as applied_style has the wrong value. This fixes styling in
5868 long lists of file names that are interrupted by the "Continue?"
5869 prompt.
5870
62253a61
AB
58712019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5872
5873 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5874 * c-lang.c (c_language_defn): Likewise.
5875 (cplus_language_defn): Likewise.
5876 (asm_language_defn): Likewise.
5877 (minimal_language_defn): Likewise.
5878 * d-lang.c (d_language_defn): Likewise.
5879 * f-lang.c (f_language_defn): Likewise.
5880 * go-lang.c (go_language_defn): Likewise.
5881 * language.c (unknown_language_defn): Likewise.
5882 (auto_language_defn): Likewise.
5883 * language.h (struct language_defn): Remove la_magic field.
5884 (LANG_MAGIC): Delete.
5885 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5886 * objc-lang.c (objc_language_defn): Likewise.
5887 * opencl-lang.c (opencl_language_defn): Likewise.
5888 * p-lang.c (pascal_language_defn): Likewise.
5889 * rust-lang.c (rust_language_defn): Likewise.
5890
a9158a86
AB
58912019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5892
5893 * riscv-tdep.c (riscv_type_align): New function.
5894 (riscv_type_alignment): Delete.
5895 (riscv_arg_location): Use 'type_align'.
5896 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5897
41077b66
AB
58982019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5899
5900 * gdbtypes.c (type_align): A struct with no non-static fields also
5901 has alignment of 1.
5902
9f0272f8
AB
59032019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5904
5905 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5906 component to 0.
5907 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5908 member.
5909 (riscv_struct_info::analyse): New implementation using new
5910 analyse_inner member function.
5911 (riscv_struct_info::field_offset): New member function.
5912 (riscv_struct_info::m_offsets): New member variable.
5913 (riscv_struct_info::analyse_inner): New private member function,
5914 takes the old implementation of riscv_struct_info::analyse but
5915 extended to track field offsets.
5916 (riscv_call_arg_struct): Update the struct folding special cases
5917 to handle cases where empty C++ structs, which are non-zero
5918 length, are found.
5919 (riscv_arg_location): Initialise the length of each location, a
5920 non-zero length now indicates the location is in use.
5921 (riscv_push_dummy_call): Allow for the first location having a
5922 non-zero offset when setting up arguments.
5923 (riscv_return_value): Likewise, but for return values.
5924
02cf60c7
TT
59252019-04-11 Tom Tromey <tromey@adacore.com>
5926
5927 * utils.c (internal_vproblem): Make "msg" const.
5928
68811f8f
AH
59292019-04-11 Alan Hayward <alan.hayward@arm.com>
5930
5931 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5932 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5933 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5934 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5935
3f52fdbc
KB
59362019-04-10 Kevin Buettner <kevinb@redhat.com>
5937
5938 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5939 function.
5940 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5941 of amd64_collect_native_gregset.
5942 (amd64_linux_nat_target::store_registers): Likewise.
5943
e9ad22ee
TT
59442019-04-10 Tom Tromey <tom@tromey.com>
5945
5946 * symtab.c (lookup_global_symbol_from_objfile)
5947 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5948 * objfiles.h (class separate_debug_iterator): New.
5949 (class separate_debug_range): New.
5950 (struct objfile) <separate_debug_objfiles>: New method.
5951 (objfile_separate_debug_iterate): Don't declare.
5952 * objfiles.c (separate_debug_iterator::operator++): Rename from
5953 objfile_separate_debug_iterate.
5954 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5955 iterator.
5956 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5957 iterator.
5958
ee371134
TT
59592019-04-10 Tom Tromey <tom@tromey.com>
5960
5961 * symfile.c (reread_symbols): Remove old comment.
5962 * objfiles.c (free_all_objfiles): Fix a typo.
5963
bf227d61
TT
59642019-04-10 Tom Tromey <tom@tromey.com>
5965
5966 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5967 * minsyms.c (lookup_minimal_symbol): Use foreach.
5968 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5969 (lookup_minimal_symbol_solib_trampoline): Likewise.
5970 * symfile.c (reread_symbols): Use foreach.
5971
8dc433a0
TT
59722019-04-09 Ivan Begert <ivanbegert@gmail.com>
5973 Tom Tromey <tromey@adacore.com>
5974
5975 PR rust/24414:
5976 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5977 (rust_lex_int_test): Change "value" to be LONGEST.
5978 (rust_lex_tests): Add test for long integer literal.
5979
9ab8741a
TT
59802019-04-09 Tom Tromey <tromey@adacore.com>
5981
5982 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5983 to bool.
5984 (extended_remote_target::attach): Update.
5985 (remote_target::remote_notice_new_inferior): Update.
5986 (remote_target::add_current_inferior_and_thread): Update.
5987 * inferior.c (exit_inferior_1): Use "false".
5988 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5989
e242fd12
SM
59902019-04-09 Simon Marchi <simon.marchi@efficios.com>
5991
9ca1957f 5992 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
5993 the "start" command.
5994
2b0c8b01
KB
59952019-04-08 Kevin Buettner <kevinb@redhat.com>
5996
5997 * python/py-inferior.c (infpy_thread_from_thread_handle):
5998 Adjust comments to reflect renaming of thread_from_thread_handle
5999 to thread_from_handle. Adjust keywords. Fix type error message.
6000 (inferior_object_methods): Add thread_from_handle. Retain
6001 thread_from_thread_handle, but mark it as deprecated.
6002
50a82723
KB
60032019-04-08 Kevin Buettner <kevinb@redhat.com>
6004
6005 * gdbthread.h (find_thread_by_handle): Revise declaration.
6006 * thread.c (find_thread_by_handle): Likewise. Adjust
6007 implementation too.
6008 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6009 support for buffer objects as handles.
6010
cf63b016
KB
60112019-04-08 Kevin Buettner <kevinb@redhat.com>
6012
6013 * python/py-infthread.c (thpy_thread_handle): New function.
6014 (thread_object_methods): Register thpy_thread_handle.
6015
3d6c6204
KB
60162019-04-08 Kevin Buettner <kevinb@redhat.com>
6017
6018 * gdbthread.h (thread_to_thread_handle): Declare.
6019 * thread.c (gdbtypes.h): Include.
6020 (thread_to_thread_handle): New function.
6021
6022 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6023 (target_thread_info_to_thread_handle): Declare.
6024 * target.c (target_thread_info_to_thread_handle): New function.
6025 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6026 * target-delegates.c: Regenerate.
6027
6028 * linux-thread-db.c (class thread_db_target): Add method
6029 thread_info_to_thread_handle.
6030 (thread_db_target::thread_info_to_thread_handle): Define.
6031 * remote.c (class remote_target): Add new method
6032 thread_info_to_thread_handle.
6033 (remote_target::thread_info_to_thread_handle): Define.
6034
56be6ea8
PA
60352019-04-08 Pedro Alves <palves@redhat.com>
6036
6037 * common/common-exceptions.c (throw_exception): Don't create
6038 named object to throw; throw directly.
6039 (throw_it): Likewise. Don't initialize gdb_exception::message
6040 here, with new; pass FMT and AP to the ctor instead.
6041 * common/common-exceptions.h: Include <string>.
6042 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6043 const char *, va_list)): New ctor. Use std::make_shared.
6044 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6045 errors)): Delete.
6046 (gdb_exception_error::gdb_exception_error(enum errors, const char
6047 *, va_list)): New.
6048 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6049 Add assertion.
6050 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6051 errors)): Delete.
6052 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6053 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6054 Add assertion.
6055
eedc3f4f
TT
60562019-04-08 Tom Tromey <tom@tromey.com>
6057
6058 * valops.c (value_rtti_indirect_type): Replace throw_exception
6059 with throw.
6060 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6061 with throw.
6062 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6063 throw.
6064 * target.c (target_translate_tls_address): Replace throw_exception
6065 with throw.
6066 * stack.c (frame_apply_command_count): Replace throw_exception
6067 with throw.
6068 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6069 throw.
6070 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6071 with throw.
6072 * rs6000-tdep.c (rs6000_frame_cache)
6073 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6074 * remote.c: Replace throw_exception with throw.
6075 * record-full.c (record_full_message, record_full_wait_1)
6076 (record_full_restore): Replace throw_exception with throw.
6077 * record-btrace.c:
6078 (get_thread_current_frame_id, record_btrace_start_replaying)
6079 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6080 (cmd_record_btrace_start): Replace throw_exception with throw.
6081 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6082 throw.
6083 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6084 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6085 * linespec.c:
6086 (find_linespec_symbols): Replace throw_exception with throw.
6087 * infrun.c (displaced_step_prepare, resume): Replace
6088 throw_exception with throw.
6089 * infcmd.c (post_create_inferior): Replace throw_exception with
6090 throw.
6091 * inf-loop.c (inferior_event_handler): Replace throw_exception
6092 with throw.
6093 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6094 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6095 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6096 (get_prev_frame_always, get_frame_pc_if_available)
6097 (get_frame_address_in_block_if_available, get_frame_language):
6098 Replace throw_exception with throw.
6099 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6100 throw_exception with throw.
6101 * eval.c (fetch_subexp_value, evaluate_var_value)
6102 (evaluate_funcall, evaluate_subexp_standard): Replace
6103 throw_exception with throw.
6104 * dwarf2loc.c (call_site_find_chain)
6105 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6106 Replace throw_exception with throw.
6107 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6108 with throw.
6109 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6110 throw.
6111 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6112 * completer.c (complete_line_internal): Replace throw_exception
6113 with throw.
6114 * compile/compile-object-run.c (compile_object_run): Replace
6115 throw_exception with throw.
6116 * cli/cli-script.c (process_next_line): Replace throw_exception
6117 with throw.
6118 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6119 (btrace_enable, btrace_maint_update_pt_packets): Replace
6120 throw_exception with throw.
6121 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6122 throw_exception with throw.
6123 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6124 throw_exception with throw.
6125 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6126 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6127 * aarch64-tdep.c (aarch64_make_prologue_cache)
6128 (aarch64_make_stub_cache): Replace throw_exception with throw.
6129
26003a20
TT
61302019-04-08 Tom Tromey <tom@tromey.com>
6131
6132 * common/common-exceptions.c (throw_exception): Rename from
6133 throw_exception_cxx. Remove old copy. Make argument const.
6134 (throw_it): Create and throw exception objects directly.
6135 * common/common-exceptions.h (throw_exception): Make argument
6136 const.
6137 (struct gdb_exception_error): Add constructor.
6138 (struct gdb_exception_quit): Add constructor.
6139
d272eb37
TT
61402019-04-08 Tom Tromey <tom@tromey.com>
6141
6142 * common/common-exceptions.h (exception_rethrow): Don't declare.
6143 (TRY_SJLJ): Update comment.
6144 (TRY, CATCH, END_CATCH): Remove.
6145 * common/common-exceptions.c (exception_rethrow): Remove.
6146
230d2906
TT
61472019-04-08 Tom Tromey <tom@tromey.com>
6148
6149 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6150 Remove.
6151 (gdb_exception_error): Rename from
6152 gdb_exception_RETURN_MASK_ERROR.
6153 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6154 (gdb_quit_bad_alloc): Update.
6155 * aarch64-tdep.c: Update.
6156 * ada-lang.c: Update.
6157 * ada-typeprint.c: Update.
6158 * ada-valprint.c: Update.
6159 * amd64-tdep.c: Update.
6160 * arch-utils.c: Update.
6161 * break-catch-throw.c: Update.
6162 * breakpoint.c: Update.
6163 * btrace.c: Update.
6164 * c-varobj.c: Update.
6165 * cli/cli-cmds.c: Update.
6166 * cli/cli-interp.c: Update.
6167 * cli/cli-script.c: Update.
6168 * common/common-exceptions.c: Update.
6169 * common/new-op.c: Update.
6170 * common/selftest.c: Update.
6171 * compile/compile-c-symbols.c: Update.
6172 * compile/compile-cplus-symbols.c: Update.
6173 * compile/compile-object-load.c: Update.
6174 * compile/compile-object-run.c: Update.
6175 * completer.c: Update.
6176 * corelow.c: Update.
6177 * cp-abi.c: Update.
6178 * cp-support.c: Update.
6179 * cp-valprint.c: Update.
6180 * darwin-nat.c: Update.
6181 * disasm-selftests.c: Update.
6182 * dtrace-probe.c: Update.
6183 * dwarf-index-cache.c: Update.
6184 * dwarf-index-write.c: Update.
6185 * dwarf2-frame-tailcall.c: Update.
6186 * dwarf2-frame.c: Update.
6187 * dwarf2loc.c: Update.
6188 * dwarf2read.c: Update.
6189 * eval.c: Update.
6190 * event-loop.c: Update.
6191 * event-top.c: Update.
6192 * exec.c: Update.
6193 * f-valprint.c: Update.
6194 * fbsd-tdep.c: Update.
6195 * frame-unwind.c: Update.
6196 * frame.c: Update.
6197 * gdbtypes.c: Update.
6198 * gnu-v3-abi.c: Update.
6199 * guile/guile-internal.h: Update.
6200 * guile/scm-block.c: Update.
6201 * guile/scm-breakpoint.c: Update.
6202 * guile/scm-cmd.c: Update.
6203 * guile/scm-disasm.c: Update.
6204 * guile/scm-frame.c: Update.
6205 * guile/scm-lazy-string.c: Update.
6206 * guile/scm-math.c: Update.
6207 * guile/scm-param.c: Update.
6208 * guile/scm-ports.c: Update.
6209 * guile/scm-pretty-print.c: Update.
6210 * guile/scm-symbol.c: Update.
6211 * guile/scm-symtab.c: Update.
6212 * guile/scm-type.c: Update.
6213 * guile/scm-value.c: Update.
6214 * i386-linux-tdep.c: Update.
6215 * i386-tdep.c: Update.
6216 * inf-loop.c: Update.
6217 * infcall.c: Update.
6218 * infcmd.c: Update.
6219 * infrun.c: Update.
6220 * jit.c: Update.
6221 * language.c: Update.
6222 * linespec.c: Update.
6223 * linux-fork.c: Update.
6224 * linux-nat.c: Update.
6225 * linux-tdep.c: Update.
6226 * linux-thread-db.c: Update.
6227 * main.c: Update.
6228 * mi/mi-cmd-break.c: Update.
6229 * mi/mi-cmd-stack.c: Update.
6230 * mi/mi-interp.c: Update.
6231 * mi/mi-main.c: Update.
6232 * objc-lang.c: Update.
6233 * p-valprint.c: Update.
6234 * parse.c: Update.
6235 * ppc-linux-tdep.c: Update.
6236 * printcmd.c: Update.
6237 * python/py-arch.c: Update.
6238 * python/py-breakpoint.c: Update.
6239 * python/py-cmd.c: Update.
6240 * python/py-finishbreakpoint.c: Update.
6241 * python/py-frame.c: Update.
6242 * python/py-framefilter.c: Update.
6243 * python/py-gdb-readline.c: Update.
6244 * python/py-inferior.c: Update.
6245 * python/py-infthread.c: Update.
6246 * python/py-lazy-string.c: Update.
6247 * python/py-linetable.c: Update.
6248 * python/py-objfile.c: Update.
6249 * python/py-param.c: Update.
6250 * python/py-prettyprint.c: Update.
6251 * python/py-progspace.c: Update.
6252 * python/py-record-btrace.c: Update.
6253 * python/py-record.c: Update.
6254 * python/py-symbol.c: Update.
6255 * python/py-type.c: Update.
6256 * python/py-unwind.c: Update.
6257 * python/py-utils.c: Update.
6258 * python/py-value.c: Update.
6259 * python/python.c: Update.
6260 * record-btrace.c: Update.
6261 * record-full.c: Update.
6262 * remote-fileio.c: Update.
6263 * remote.c: Update.
6264 * riscv-tdep.c: Update.
6265 * rs6000-aix-tdep.c: Update.
6266 * rs6000-tdep.c: Update.
6267 * rust-exp.y: Update.
6268 * rust-lang.c: Update.
6269 * s390-tdep.c: Update.
6270 * selftest-arch.c: Update.
6271 * solib-dsbt.c: Update.
6272 * solib-frv.c: Update.
6273 * solib-spu.c: Update.
6274 * solib-svr4.c: Update.
6275 * solib.c: Update.
6276 * sparc64-linux-tdep.c: Update.
6277 * stack.c: Update.
6278 * symfile-mem.c: Update.
6279 * symmisc.c: Update.
6280 * target.c: Update.
6281 * thread.c: Update.
6282 * top.c: Update.
6283 * tracefile-tfile.c: Update.
6284 * tui/tui.c: Update.
6285 * typeprint.c: Update.
6286 * unittests/cli-utils-selftests.c: Update.
6287 * unittests/parse-connection-spec-selftests.c: Update.
6288 * valops.c: Update.
6289 * valprint.c: Update.
6290 * value.c: Update.
6291 * varobj.c: Update.
6292 * windows-nat.c: Update.
6293 * x86-linux-nat.c: Update.
6294 * xml-support.c: Update.
6295
a70b8144
TT
62962019-04-08 Tom Tromey <tom@tromey.com>
6297
6298 * xml-support.c: Use C++ exception handling.
6299 * x86-linux-nat.c: Use C++ exception handling.
6300 * windows-nat.c: Use C++ exception handling.
6301 * varobj.c: Use C++ exception handling.
6302 * value.c: Use C++ exception handling.
6303 * valprint.c: Use C++ exception handling.
6304 * valops.c: Use C++ exception handling.
6305 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6306 handling.
6307 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6308 * typeprint.c: Use C++ exception handling.
6309 * tui/tui.c: Use C++ exception handling.
6310 * tracefile-tfile.c: Use C++ exception handling.
6311 * top.c: Use C++ exception handling.
6312 * thread.c: Use C++ exception handling.
6313 * target.c: Use C++ exception handling.
6314 * symmisc.c: Use C++ exception handling.
6315 * symfile-mem.c: Use C++ exception handling.
6316 * stack.c: Use C++ exception handling.
6317 * sparc64-linux-tdep.c: Use C++ exception handling.
6318 * solib.c: Use C++ exception handling.
6319 * solib-svr4.c: Use C++ exception handling.
6320 * solib-spu.c: Use C++ exception handling.
6321 * solib-frv.c: Use C++ exception handling.
6322 * solib-dsbt.c: Use C++ exception handling.
6323 * selftest-arch.c: Use C++ exception handling.
6324 * s390-tdep.c: Use C++ exception handling.
6325 * rust-lang.c: Use C++ exception handling.
6326 * rust-exp.y: Use C++ exception handling.
6327 * rs6000-tdep.c: Use C++ exception handling.
6328 * rs6000-aix-tdep.c: Use C++ exception handling.
6329 * riscv-tdep.c: Use C++ exception handling.
6330 * remote.c: Use C++ exception handling.
6331 * remote-fileio.c: Use C++ exception handling.
6332 * record-full.c: Use C++ exception handling.
6333 * record-btrace.c: Use C++ exception handling.
6334 * python/python.c: Use C++ exception handling.
6335 * python/py-value.c: Use C++ exception handling.
6336 * python/py-utils.c: Use C++ exception handling.
6337 * python/py-unwind.c: Use C++ exception handling.
6338 * python/py-type.c: Use C++ exception handling.
6339 * python/py-symbol.c: Use C++ exception handling.
6340 * python/py-record.c: Use C++ exception handling.
6341 * python/py-record-btrace.c: Use C++ exception handling.
6342 * python/py-progspace.c: Use C++ exception handling.
6343 * python/py-prettyprint.c: Use C++ exception handling.
6344 * python/py-param.c: Use C++ exception handling.
6345 * python/py-objfile.c: Use C++ exception handling.
6346 * python/py-linetable.c: Use C++ exception handling.
6347 * python/py-lazy-string.c: Use C++ exception handling.
6348 * python/py-infthread.c: Use C++ exception handling.
6349 * python/py-inferior.c: Use C++ exception handling.
6350 * python/py-gdb-readline.c: Use C++ exception handling.
6351 * python/py-framefilter.c: Use C++ exception handling.
6352 * python/py-frame.c: Use C++ exception handling.
6353 * python/py-finishbreakpoint.c: Use C++ exception handling.
6354 * python/py-cmd.c: Use C++ exception handling.
6355 * python/py-breakpoint.c: Use C++ exception handling.
6356 * python/py-arch.c: Use C++ exception handling.
6357 * printcmd.c: Use C++ exception handling.
6358 * ppc-linux-tdep.c: Use C++ exception handling.
6359 * parse.c: Use C++ exception handling.
6360 * p-valprint.c: Use C++ exception handling.
6361 * objc-lang.c: Use C++ exception handling.
6362 * mi/mi-main.c: Use C++ exception handling.
6363 * mi/mi-interp.c: Use C++ exception handling.
6364 * mi/mi-cmd-stack.c: Use C++ exception handling.
6365 * mi/mi-cmd-break.c: Use C++ exception handling.
6366 * main.c: Use C++ exception handling.
6367 * linux-thread-db.c: Use C++ exception handling.
6368 * linux-tdep.c: Use C++ exception handling.
6369 * linux-nat.c: Use C++ exception handling.
6370 * linux-fork.c: Use C++ exception handling.
6371 * linespec.c: Use C++ exception handling.
6372 * language.c: Use C++ exception handling.
6373 * jit.c: Use C++ exception handling.
6374 * infrun.c: Use C++ exception handling.
6375 * infcmd.c: Use C++ exception handling.
6376 * infcall.c: Use C++ exception handling.
6377 * inf-loop.c: Use C++ exception handling.
6378 * i386-tdep.c: Use C++ exception handling.
6379 * i386-linux-tdep.c: Use C++ exception handling.
6380 * guile/scm-value.c: Use C++ exception handling.
6381 * guile/scm-type.c: Use C++ exception handling.
6382 * guile/scm-symtab.c: Use C++ exception handling.
6383 * guile/scm-symbol.c: Use C++ exception handling.
6384 * guile/scm-pretty-print.c: Use C++ exception handling.
6385 * guile/scm-ports.c: Use C++ exception handling.
6386 * guile/scm-param.c: Use C++ exception handling.
6387 * guile/scm-math.c: Use C++ exception handling.
6388 * guile/scm-lazy-string.c: Use C++ exception handling.
6389 * guile/scm-frame.c: Use C++ exception handling.
6390 * guile/scm-disasm.c: Use C++ exception handling.
6391 * guile/scm-cmd.c: Use C++ exception handling.
6392 * guile/scm-breakpoint.c: Use C++ exception handling.
6393 * guile/scm-block.c: Use C++ exception handling.
6394 * guile/guile-internal.h: Use C++ exception handling.
6395 * gnu-v3-abi.c: Use C++ exception handling.
6396 * gdbtypes.c: Use C++ exception handling.
6397 * frame.c: Use C++ exception handling.
6398 * frame-unwind.c: Use C++ exception handling.
6399 * fbsd-tdep.c: Use C++ exception handling.
6400 * f-valprint.c: Use C++ exception handling.
6401 * exec.c: Use C++ exception handling.
6402 * event-top.c: Use C++ exception handling.
6403 * event-loop.c: Use C++ exception handling.
6404 * eval.c: Use C++ exception handling.
6405 * dwarf2read.c: Use C++ exception handling.
6406 * dwarf2loc.c: Use C++ exception handling.
6407 * dwarf2-frame.c: Use C++ exception handling.
6408 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6409 * dwarf-index-write.c: Use C++ exception handling.
6410 * dwarf-index-cache.c: Use C++ exception handling.
6411 * dtrace-probe.c: Use C++ exception handling.
6412 * disasm-selftests.c: Use C++ exception handling.
6413 * darwin-nat.c: Use C++ exception handling.
6414 * cp-valprint.c: Use C++ exception handling.
6415 * cp-support.c: Use C++ exception handling.
6416 * cp-abi.c: Use C++ exception handling.
6417 * corelow.c: Use C++ exception handling.
6418 * completer.c: Use C++ exception handling.
6419 * compile/compile-object-run.c: Use C++ exception handling.
6420 * compile/compile-object-load.c: Use C++ exception handling.
6421 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6422 * compile/compile-c-symbols.c: Use C++ exception handling.
6423 * common/selftest.c: Use C++ exception handling.
6424 * common/new-op.c: Use C++ exception handling.
6425 * cli/cli-script.c: Use C++ exception handling.
6426 * cli/cli-interp.c: Use C++ exception handling.
6427 * cli/cli-cmds.c: Use C++ exception handling.
6428 * c-varobj.c: Use C++ exception handling.
6429 * btrace.c: Use C++ exception handling.
6430 * breakpoint.c: Use C++ exception handling.
6431 * break-catch-throw.c: Use C++ exception handling.
6432 * arch-utils.c: Use C++ exception handling.
6433 * amd64-tdep.c: Use C++ exception handling.
6434 * ada-valprint.c: Use C++ exception handling.
6435 * ada-typeprint.c: Use C++ exception handling.
6436 * ada-lang.c: Use C++ exception handling.
6437 * aarch64-tdep.c: Use C++ exception handling.
6438
3d6e9d23
TT
64392019-04-08 Tom Tromey <tom@tromey.com>
6440
6441 * xml-support.c (gdb_xml_parser::parse): Update.
6442 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6443 * value.c (show_convenience): Update.
6444 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6445 (test_parse_flags_qcs): Update.
6446 * thread.c (thr_try_catch_cmd): Update.
6447 * target.c (target_translate_tls_address): Update.
6448 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6449 (info_frame_command_core, frame_apply_command_count): Update.
6450 * rust-exp.y (rust_lex_exception_test): Update.
6451 * riscv-tdep.c (riscv_print_one_register_info): Update.
6452 * remote.c (remote_target::enable_btrace): Update.
6453 * record-btrace.c (record_btrace_enable_warn): Update.
6454 * python/py-utils.c (gdbpy_convert_exception): Update.
6455 * printcmd.c (do_one_display, print_variable_and_value): Update.
6456 * mi/mi-main.c (mi_print_exception): Update.
6457 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6458 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6459 * linux-nat.c (linux_nat_target::attach): Update.
6460 * linux-fork.c (class scoped_switch_fork_info): Update.
6461 * infrun.c (displaced_step_prepare): Update.
6462 * infcall.c (call_function_by_hand_dummy): Update.
6463 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6464 * gnu-v3-abi.c (print_one_vtable): Update.
6465 * frame.c (get_prev_frame_always): Update.
6466 * f-valprint.c (info_common_command_for_block): Update.
6467 * exec.c (try_open_exec_file): Update.
6468 * exceptions.c (print_exception, exception_print)
6469 (exception_fprintf, exception_print_same): Update.
6470 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6471 * dwarf-index-cache.c (index_cache::store)
6472 (index_cache::lookup_gdb_index): Update.
6473 * darwin-nat.c (maybe_cache_shell): Update.
6474 * cp-valprint.c (cp_print_value_fields): Update.
6475 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6476 (gcc_cplus_symbol_address): Update.
6477 * compile/compile-c-symbols.c (gcc_convert_symbol)
6478 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6479 * common/selftest.c: Update.
6480 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6481 a std::string.
6482 (exception_try_scope_entry, exception_try_scope_exit): Don't
6483 declare.
6484 (struct exception_try_scope): Remove.
6485 (TRY): Don't use exception_try_scope.
6486 (struct gdb_exception): Add constructor, operator=.
6487 <what>: New method.
6488 (struct gdb_exception_RETURN_MASK_ALL)
6489 (struct gdb_exception_RETURN_MASK_ERROR)
6490 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6491 (struct gdb_quit_bad_alloc): Update.
6492 * common/common-exceptions.c (exception_none): Change
6493 initializer.
6494 (struct catcher) <state, exception>: Initialize inline.
6495 <prev>: Remove member.
6496 (current_catcher): Remove.
6497 (catchers): New global.
6498 (exceptions_state_mc_init): Simplify.
6499 (catcher_pop): Remove.
6500 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6501 (try_scope_depth, exception_try_scope_entry)
6502 (exception_try_scope_exit): Remove.
6503 (throw_exception_sjlj): Update.
6504 (exception_messages, exception_messages_size): Remove.
6505 (throw_it): Simplify.
6506 (gdb_exception_sliced_copy): Remove.
6507 (throw_exception_cxx): Update.
6508 * cli/cli-script.c (script_from_file): Update.
6509 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6510 Update.
6511 * ada-valprint.c (ada_val_print): Update.
6512 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6513 (create_excep_cond_exprs): Update.
6514
c5c10118
TT
65152019-04-08 Tom Tromey <tom@tromey.com>
6516
6517 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6518 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6519 (TRY, CATCH, END_CATCH): Remove some definitions.
6520 * common/common-exceptions.c: Don't use GDB_XCPT.
6521 (catcher_list_size): Remove.
6522 (throw_exception, throw_it): Simplify.
6523
4de283e4
TT
65242019-04-05 Tom Tromey <tom@tromey.com>
6525
6526 Revert the header-sorting patch.
6527 * ft32-tdep.c: Revert.
6528 * frv-tdep.c: Revert.
6529 * frv-linux-tdep.c: Revert.
6530 * frame.c: Revert.
6531 * frame-unwind.c: Revert.
6532 * frame-base.c: Revert.
6533 * fork-child.c: Revert.
6534 * findvar.c: Revert.
6535 * findcmd.c: Revert.
6536 * filesystem.c: Revert.
6537 * filename-seen-cache.h: Revert.
6538 * filename-seen-cache.c: Revert.
6539 * fbsd-tdep.c: Revert.
6540 * fbsd-nat.h: Revert.
6541 * fbsd-nat.c: Revert.
6542 * f-valprint.c: Revert.
6543 * f-typeprint.c: Revert.
6544 * f-lang.c: Revert.
6545 * extension.h: Revert.
6546 * extension.c: Revert.
6547 * extension-priv.h: Revert.
6548 * expprint.c: Revert.
6549 * exec.h: Revert.
6550 * exec.c: Revert.
6551 * exceptions.c: Revert.
6552 * event-top.c: Revert.
6553 * event-loop.c: Revert.
6554 * eval.c: Revert.
6555 * elfread.c: Revert.
6556 * dwarf2read.h: Revert.
6557 * dwarf2read.c: Revert.
6558 * dwarf2loc.c: Revert.
6559 * dwarf2expr.h: Revert.
6560 * dwarf2expr.c: Revert.
6561 * dwarf2-frame.c: Revert.
6562 * dwarf2-frame-tailcall.c: Revert.
6563 * dwarf-index-write.h: Revert.
6564 * dwarf-index-write.c: Revert.
6565 * dwarf-index-common.c: Revert.
6566 * dwarf-index-cache.h: Revert.
6567 * dwarf-index-cache.c: Revert.
6568 * dummy-frame.c: Revert.
6569 * dtrace-probe.c: Revert.
6570 * disasm.h: Revert.
6571 * disasm.c: Revert.
6572 * disasm-selftests.c: Revert.
6573 * dictionary.c: Revert.
6574 * dicos-tdep.c: Revert.
6575 * demangle.c: Revert.
6576 * dcache.h: Revert.
6577 * dcache.c: Revert.
6578 * darwin-nat.h: Revert.
6579 * darwin-nat.c: Revert.
6580 * darwin-nat-info.c: Revert.
6581 * d-valprint.c: Revert.
6582 * d-namespace.c: Revert.
6583 * d-lang.c: Revert.
6584 * ctf.c: Revert.
6585 * csky-tdep.c: Revert.
6586 * csky-linux-tdep.c: Revert.
6587 * cris-tdep.c: Revert.
6588 * cris-linux-tdep.c: Revert.
6589 * cp-valprint.c: Revert.
6590 * cp-support.c: Revert.
6591 * cp-namespace.c: Revert.
6592 * cp-abi.c: Revert.
6593 * corelow.c: Revert.
6594 * corefile.c: Revert.
6595 * continuations.c: Revert.
6596 * completer.h: Revert.
6597 * completer.c: Revert.
6598 * complaints.c: Revert.
6599 * coffread.c: Revert.
6600 * coff-pe-read.c: Revert.
6601 * cli-out.h: Revert.
6602 * cli-out.c: Revert.
6603 * charset.c: Revert.
6604 * c-varobj.c: Revert.
6605 * c-valprint.c: Revert.
6606 * c-typeprint.c: Revert.
6607 * c-lang.c: Revert.
6608 * buildsym.c: Revert.
6609 * buildsym-legacy.c: Revert.
6610 * build-id.h: Revert.
6611 * build-id.c: Revert.
6612 * btrace.c: Revert.
6613 * bsd-uthread.c: Revert.
6614 * breakpoint.h: Revert.
6615 * breakpoint.c: Revert.
6616 * break-catch-throw.c: Revert.
6617 * break-catch-syscall.c: Revert.
6618 * break-catch-sig.c: Revert.
6619 * blockframe.c: Revert.
6620 * block.c: Revert.
6621 * bfin-tdep.c: Revert.
6622 * bfin-linux-tdep.c: Revert.
6623 * bfd-target.c: Revert.
6624 * bcache.c: Revert.
6625 * ax-general.c: Revert.
6626 * ax-gdb.h: Revert.
6627 * ax-gdb.c: Revert.
6628 * avr-tdep.c: Revert.
6629 * auxv.c: Revert.
6630 * auto-load.c: Revert.
6631 * arm-wince-tdep.c: Revert.
6632 * arm-tdep.c: Revert.
6633 * arm-symbian-tdep.c: Revert.
6634 * arm-pikeos-tdep.c: Revert.
6635 * arm-obsd-tdep.c: Revert.
6636 * arm-nbsd-tdep.c: Revert.
6637 * arm-nbsd-nat.c: Revert.
6638 * arm-linux-tdep.c: Revert.
6639 * arm-linux-nat.c: Revert.
6640 * arm-fbsd-tdep.c: Revert.
6641 * arm-fbsd-nat.c: Revert.
6642 * arm-bsd-tdep.c: Revert.
6643 * arch-utils.c: Revert.
6644 * arc-tdep.c: Revert.
6645 * arc-newlib-tdep.c: Revert.
6646 * annotate.h: Revert.
6647 * annotate.c: Revert.
6648 * amd64-windows-tdep.c: Revert.
6649 * amd64-windows-nat.c: Revert.
6650 * amd64-tdep.c: Revert.
6651 * amd64-sol2-tdep.c: Revert.
6652 * amd64-obsd-tdep.c: Revert.
6653 * amd64-obsd-nat.c: Revert.
6654 * amd64-nbsd-tdep.c: Revert.
6655 * amd64-nbsd-nat.c: Revert.
6656 * amd64-nat.c: Revert.
6657 * amd64-linux-tdep.c: Revert.
6658 * amd64-linux-nat.c: Revert.
6659 * amd64-fbsd-tdep.c: Revert.
6660 * amd64-fbsd-nat.c: Revert.
6661 * amd64-dicos-tdep.c: Revert.
6662 * amd64-darwin-tdep.c: Revert.
6663 * amd64-bsd-nat.c: Revert.
6664 * alpha-tdep.c: Revert.
6665 * alpha-obsd-tdep.c: Revert.
6666 * alpha-nbsd-tdep.c: Revert.
6667 * alpha-mdebug-tdep.c: Revert.
6668 * alpha-linux-tdep.c: Revert.
6669 * alpha-linux-nat.c: Revert.
6670 * alpha-bsd-tdep.c: Revert.
6671 * alpha-bsd-nat.c: Revert.
6672 * aix-thread.c: Revert.
6673 * agent.c: Revert.
6674 * addrmap.c: Revert.
6675 * ada-varobj.c: Revert.
6676 * ada-valprint.c: Revert.
6677 * ada-typeprint.c: Revert.
6678 * ada-tasks.c: Revert.
6679 * ada-lang.c: Revert.
6680 * aarch64-tdep.c: Revert.
6681 * aarch64-ravenscar-thread.c: Revert.
6682 * aarch64-newlib-tdep.c: Revert.
6683 * aarch64-linux-tdep.c: Revert.
6684 * aarch64-linux-nat.c: Revert.
6685 * aarch64-fbsd-tdep.c: Revert.
6686 * aarch64-fbsd-nat.c: Revert.
6687 * aarch32-linux-nat.c: Revert.
6688
d55e5aa6
TT
66892019-04-05 Tom Tromey <tom@tromey.com>
6690
6691 * ft32-tdep.c: Sort headers.
6692 * frv-tdep.c: Sort headers.
6693 * frv-linux-tdep.c: Sort headers.
6694 * frame.c: Sort headers.
6695 * frame-unwind.c: Sort headers.
6696 * frame-base.c: Sort headers.
6697 * fork-child.c: Sort headers.
6698 * findvar.c: Sort headers.
6699 * findcmd.c: Sort headers.
6700 * filesystem.c: Sort headers.
6701 * filename-seen-cache.h: Sort headers.
6702 * filename-seen-cache.c: Sort headers.
6703 * fbsd-tdep.c: Sort headers.
6704 * fbsd-nat.h: Sort headers.
6705 * fbsd-nat.c: Sort headers.
6706 * f-valprint.c: Sort headers.
6707 * f-typeprint.c: Sort headers.
6708 * f-lang.c: Sort headers.
6709 * extension.h: Sort headers.
6710 * extension.c: Sort headers.
6711 * extension-priv.h: Sort headers.
6712 * expprint.c: Sort headers.
6713 * exec.h: Sort headers.
6714 * exec.c: Sort headers.
6715 * exceptions.c: Sort headers.
6716 * event-top.c: Sort headers.
6717 * event-loop.c: Sort headers.
6718 * eval.c: Sort headers.
6719 * elfread.c: Sort headers.
6720 * dwarf2read.h: Sort headers.
6721 * dwarf2read.c: Sort headers.
6722 * dwarf2loc.c: Sort headers.
6723 * dwarf2expr.h: Sort headers.
6724 * dwarf2expr.c: Sort headers.
6725 * dwarf2-frame.c: Sort headers.
6726 * dwarf2-frame-tailcall.c: Sort headers.
6727 * dwarf-index-write.h: Sort headers.
6728 * dwarf-index-write.c: Sort headers.
6729 * dwarf-index-common.c: Sort headers.
6730 * dwarf-index-cache.h: Sort headers.
6731 * dwarf-index-cache.c: Sort headers.
6732 * dummy-frame.c: Sort headers.
6733 * dtrace-probe.c: Sort headers.
6734 * disasm.h: Sort headers.
6735 * disasm.c: Sort headers.
6736 * disasm-selftests.c: Sort headers.
6737 * dictionary.c: Sort headers.
6738 * dicos-tdep.c: Sort headers.
6739 * demangle.c: Sort headers.
6740 * dcache.h: Sort headers.
6741 * dcache.c: Sort headers.
6742 * darwin-nat.h: Sort headers.
6743 * darwin-nat.c: Sort headers.
6744 * darwin-nat-info.c: Sort headers.
6745 * d-valprint.c: Sort headers.
6746 * d-namespace.c: Sort headers.
6747 * d-lang.c: Sort headers.
6748 * ctf.c: Sort headers.
6749 * csky-tdep.c: Sort headers.
6750 * csky-linux-tdep.c: Sort headers.
6751 * cris-tdep.c: Sort headers.
6752 * cris-linux-tdep.c: Sort headers.
6753 * cp-valprint.c: Sort headers.
6754 * cp-support.c: Sort headers.
6755 * cp-namespace.c: Sort headers.
6756 * cp-abi.c: Sort headers.
6757 * corelow.c: Sort headers.
6758 * corefile.c: Sort headers.
6759 * continuations.c: Sort headers.
6760 * completer.h: Sort headers.
6761 * completer.c: Sort headers.
6762 * complaints.c: Sort headers.
6763 * coffread.c: Sort headers.
6764 * coff-pe-read.c: Sort headers.
6765 * cli-out.h: Sort headers.
6766 * cli-out.c: Sort headers.
6767 * charset.c: Sort headers.
6768 * c-varobj.c: Sort headers.
6769 * c-valprint.c: Sort headers.
6770 * c-typeprint.c: Sort headers.
6771 * c-lang.c: Sort headers.
6772 * buildsym.c: Sort headers.
6773 * buildsym-legacy.c: Sort headers.
6774 * build-id.h: Sort headers.
6775 * build-id.c: Sort headers.
6776 * btrace.c: Sort headers.
6777 * bsd-uthread.c: Sort headers.
6778 * breakpoint.h: Sort headers.
6779 * breakpoint.c: Sort headers.
6780 * break-catch-throw.c: Sort headers.
6781 * break-catch-syscall.c: Sort headers.
6782 * break-catch-sig.c: Sort headers.
6783 * blockframe.c: Sort headers.
6784 * block.c: Sort headers.
6785 * bfin-tdep.c: Sort headers.
6786 * bfin-linux-tdep.c: Sort headers.
6787 * bfd-target.c: Sort headers.
6788 * bcache.c: Sort headers.
6789 * ax-general.c: Sort headers.
6790 * ax-gdb.h: Sort headers.
6791 * ax-gdb.c: Sort headers.
6792 * avr-tdep.c: Sort headers.
6793 * auxv.c: Sort headers.
6794 * auto-load.c: Sort headers.
6795 * arm-wince-tdep.c: Sort headers.
6796 * arm-tdep.c: Sort headers.
6797 * arm-symbian-tdep.c: Sort headers.
6798 * arm-pikeos-tdep.c: Sort headers.
6799 * arm-obsd-tdep.c: Sort headers.
6800 * arm-nbsd-tdep.c: Sort headers.
6801 * arm-nbsd-nat.c: Sort headers.
6802 * arm-linux-tdep.c: Sort headers.
6803 * arm-linux-nat.c: Sort headers.
6804 * arm-fbsd-tdep.c: Sort headers.
6805 * arm-fbsd-nat.c: Sort headers.
6806 * arm-bsd-tdep.c: Sort headers.
6807 * arch-utils.c: Sort headers.
6808 * arc-tdep.c: Sort headers.
6809 * arc-newlib-tdep.c: Sort headers.
6810 * annotate.h: Sort headers.
6811 * annotate.c: Sort headers.
6812 * amd64-windows-tdep.c: Sort headers.
6813 * amd64-windows-nat.c: Sort headers.
6814 * amd64-tdep.c: Sort headers.
6815 * amd64-sol2-tdep.c: Sort headers.
6816 * amd64-obsd-tdep.c: Sort headers.
6817 * amd64-obsd-nat.c: Sort headers.
6818 * amd64-nbsd-tdep.c: Sort headers.
6819 * amd64-nbsd-nat.c: Sort headers.
6820 * amd64-nat.c: Sort headers.
6821 * amd64-linux-tdep.c: Sort headers.
6822 * amd64-linux-nat.c: Sort headers.
6823 * amd64-fbsd-tdep.c: Sort headers.
6824 * amd64-fbsd-nat.c: Sort headers.
6825 * amd64-dicos-tdep.c: Sort headers.
6826 * amd64-darwin-tdep.c: Sort headers.
6827 * amd64-bsd-nat.c: Sort headers.
6828 * alpha-tdep.c: Sort headers.
6829 * alpha-obsd-tdep.c: Sort headers.
6830 * alpha-nbsd-tdep.c: Sort headers.
6831 * alpha-mdebug-tdep.c: Sort headers.
6832 * alpha-linux-tdep.c: Sort headers.
6833 * alpha-linux-nat.c: Sort headers.
6834 * alpha-bsd-tdep.c: Sort headers.
6835 * alpha-bsd-nat.c: Sort headers.
6836 * aix-thread.c: Sort headers.
6837 * agent.c: Sort headers.
6838 * addrmap.c: Sort headers.
6839 * ada-varobj.c: Sort headers.
6840 * ada-valprint.c: Sort headers.
6841 * ada-typeprint.c: Sort headers.
6842 * ada-tasks.c: Sort headers.
6843 * ada-lang.c: Sort headers.
6844 * aarch64-tdep.c: Sort headers.
6845 * aarch64-ravenscar-thread.c: Sort headers.
6846 * aarch64-newlib-tdep.c: Sort headers.
6847 * aarch64-linux-tdep.c: Sort headers.
6848 * aarch64-linux-nat.c: Sort headers.
6849 * aarch64-fbsd-tdep.c: Sort headers.
6850 * aarch64-fbsd-nat.c: Sort headers.
6851 * aarch32-linux-nat.c: Sort headers.
6852
699bd4cf
TT
68532019-04-04 Tom Tromey <tom@tromey.com>
6854
6855 * varobj.c (varobj_create): Update.
6856 * rust-exp.y (struct rust_parser) <update_innermost_block,
6857 lookup_symbol>: New methods.
6858 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6859 Rename.
6860 (rust_parser::rust_lookup_type)
6861 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6862 * printcmd.c (display_command, do_one_display): Update.
6863 * parser-defs.h (struct parser_state) <parser_state>: Add
6864 "tracker" parameter.
6865 (block_tracker): New member.
6866 (class innermost_block_tracker) <innermost_block_tracker>: Add
6867 "types" parameter.
6868 <reset>: Remove method.
6869 (innermost_block): Don't declare.
6870 (null_post_parser): Update.
6871 * parse.c (innermost_block): Remove global.
6872 (write_dollar_variable): Update.
6873 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6874 Remove "tracker_types" parameter.
6875 (parse_expression): Add "tracker" parameter.
6876 (parse_expression_for_completion): Update.
6877 (null_post_parser): Add "tracker" parameter.
6878 * p-exp.y: Update rules.
6879 * m2-exp.y: Update rules.
6880 * language.h (struct language_defn) <la_post_parser>: Add
6881 "tracker" parameter.
6882 * go-exp.y: Update rules.
6883 * f-exp.y: Update rules.
6884 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6885 parameter.
6886 * d-exp.y: Update rules.
6887 * c-exp.y: Update rules.
6888 * breakpoint.c (set_breakpoint_condition): Create an
6889 innermost_block_tracker.
6890 (watch_command_1): Likewise.
6891 * ada-lang.c (resolve): Add "tracker" parameter.
6892 (resolve_subexp): Likewise.
6893 * ada-exp.y (write_var_from_sym): Update.
6894
dac43e32
TT
68952019-04-04 Tom Tromey <tom@tromey.com>
6896
6897 * type-stack.h: New file.
6898 * type-stack.c: New file.
6899 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6900 type-stack.h.
6901 (insert_into_type_stack, insert_type, push_type, push_type_int)
6902 (insert_type_address_space, pop_type, pop_type_int)
6903 (pop_typelist, pop_type_stack, append_type_stack)
6904 (push_type_stack, get_type_stack, push_typelist)
6905 (follow_type_instance_flags, follow_types): Don't declare.
6906 * parse.c (type_stack): Remove global.
6907 (parse_exp_in_context): Update.
6908 (insert_into_type_stack, insert_type, push_type, push_type_int)
6909 (insert_type_address_space, pop_type, pop_type_int)
6910 (pop_typelist, pop_type_stack, append_type_stack)
6911 (push_type_stack, get_type_stack, push_typelist)
6912 (follow_type_instance_flags, follow_types): Remove (moved to
6913 type-stack.c).
6914 * f-exp.y (type_stack): New global.
6915 Update rules.
6916 (push_kind_type, f_parse): Update.
6917 * d-exp.y (type_stack): New global.
6918 Update rules.
6919 (d_parse): Update.
6920 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6921 Update rules.
6922 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6923 (HFILES_NO_SRCDIR): Add type-stack.h.
6924
2a612529
TT
69252019-04-04 Tom Tromey <tom@tromey.com>
6926
6927 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6928 (rust_parser::convert_ast_to_expression, rust_parse)
6929 (rust_lex_test_completion, rust_lex_tests): Update.
6930 * parser-defs.h (struct expr_completion_state): New.
6931 (struct parser_state) <parser_state>: Add completion parameter.
6932 <mark_struct_expression, mark_completion_tag>: New methods.
6933 <parse_completion, m_completion_state>: New members.
6934 (prefixify_expression, null_post_parser): Update.
6935 (mark_struct_expression, mark_completion_tag): Don't declare.
6936 * parse.c (parse_completion, expout_last_struct)
6937 (expout_tag_completion_type, expout_completion_name): Remove
6938 globals.
6939 (parser_state::mark_struct_expression)
6940 (parser_state::mark_completion_tag): Now methods.
6941 (prefixify_expression): Add last_struct parameter.
6942 (prefixify_subexp): Likewise.
6943 (parse_exp_1): Update.
6944 (parse_exp_in_context): Add cstate parameter. Update.
6945 (parse_expression_for_completion): Create an
6946 expr_completion_state.
6947 (null_post_parser): Add "completion" parameter.
6948 * p-exp.y: Update rules.
6949 (yylex): Update.
6950 * language.h (struct language_defn) <la_post_parser>: Add
6951 "completing" parameter.
6952 * go-exp.y: Update rules.
6953 (lex_one_token): Update.
6954 * expression.h (parse_completion): Don't declare.
6955 * d-exp.y: Update rules.
6956 (lex_one_token): Update rules.
6957 * c-exp.y: Update rules.
6958 (lex_one_token): Update.
6959 * ada-lang.c (resolve): Add "parse_completion" parameter.
6960 (resolve_subexp): Likewise.
6961 (ada_resolve_function): Likewise.
6962
43476f0b
TT
69632019-04-04 Tom Tromey <tom@tromey.com>
6964
6965 * parser-defs.h (struct parser_state) <start_arglist,
6966 end_arglist>: New methods.
6967 <arglist_len, m_funcall_chain>: New members.
6968 (arglist_len, start_arglist, end_arglist): Don't declare.
6969 * parse.c (arglist_len, funcall_chain): Remove global.
6970 (start_arglist, end_arglist): Remove functions.
6971 (parse_exp_in_context): Update.
6972 * p-exp.y: Update rules.
6973 * m2-exp.y: Update rules.
6974 * go-exp.y: Update rules.
6975 * f-exp.y: Update rules.
6976 * d-exp.y: Update rules.
6977 * c-exp.y: Update rules.
6978
5776fca3
TT
69792019-04-04 Tom Tromey <tom@tromey.com>
6980
6981 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6982 lex_operator, push_back>: New methods.
6983 Update all rules.
6984 (rust_parser::lex_hex, lex_escape): Rename and update.
6985 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6986 (rust_parser::lex_operator): Rename and update.
6987 (rust_parser::lex_number, rustyylex, rustyyerror)
6988 (rust_lex_test_init, rust_lex_test_sequence)
6989 (rust_lex_test_push_back, rust_lex_tests): Update.
6990 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6991 parameter.
6992 <lexptr, prev_lexptr>: New members.
6993 (lexptr, prev_lexptr): Don't declare.
6994 * parse.c (lexptr, prev_lexptr): Remove globals.
6995 (parse_exp_in_context): Update.
6996 * p-exp.y (yylex, yyerror): Update.
6997 * m2-exp.y (parse_number, yylex, yyerror): Update.
6998 * go-exp.y (lex_one_token, yyerror): Update.
6999 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7000 * d-exp.y (lex_one_token, yyerror): Update.
7001 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7002 (lex_one_token, yyerror): Update.
7003 * ada-lex.l (YY_INPUT): Update.
7004 (rewind_to_char): Update.
7005 * ada-exp.y (yyerror): Update.
7006
8621b685
TT
70072019-04-04 Tom Tromey <tom@tromey.com>
7008
7009 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7010 * parser-defs.h (struct parser_state) <parser_state>: Add new
7011 parameter.
7012 <comma_terminates>: New member.
7013 (comma_terminates): Don't declare global.
7014 * parse.c (comma_terminates): Remove global.
7015 (parse_exp_in_context): Update.
7016 * p-exp.y (yylex): Update.
7017 * m2-exp.y (yylex): Update.
7018 * go-exp.y (lex_one_token): Update.
7019 * f-exp.y (yylex): Update.
7020 * d-exp.y (lex_one_token): Update.
7021 * c-exp.y (lex_one_token): Update.
7022 * ada-lex.l: Update.
7023
28aaf3fd
TT
70242019-04-04 Tom Tromey <tom@tromey.com>
7025
7026 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7027 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7028 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7029 * parser-defs.h (paren_depth): Don't declare.
7030 * parse.c (paren_depth): Remove global.
7031 (parse_exp_in_context): Update.
7032 * p-exp.y (paren_depth): New global.
7033 (pascal_parse): Initialize it.
7034 * m2-exp.y (paren_depth): New global.
7035 (m2_parse): Initialize it.
7036 * go-exp.y (paren_depth): New global.
7037 (go_parse): Initialize it.
7038 * f-exp.y (paren_depth): New global.
7039 (f_parse): Initialize it.
7040 * d-exp.y (paren_depth): New global.
7041 (d_parse): Initialize it.
7042 * c-exp.y (paren_depth): New global.
7043 (c_parse): Initialize it.
7044 * ada-lex.l (paren_depth): New global.
7045 (lexer_init): Initialize it.
7046
1e58a4a4
TT
70472019-04-04 Tom Tromey <tom@tromey.com>
7048
7049 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7050 (rust_parser::convert_ast_to_type)
7051 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7052 * parser-defs.h (struct parser_state) <parser_state>: Add
7053 parameters. Initialize new members.
7054 <expression_context_block, expression_context_pc>: New members.
7055 * parse.c (expression_context_block, expression_context_pc):
7056 Remove globals.
7057 (parse_exp_in_context): Update.
7058 * p-exp.y: Update all rules.
7059 (yylex): Update.
7060 * m2-exp.y: Update all rules.
7061 (yylex): Update.
7062 * go-exp.y (yylex): Update.
7063 * f-exp.y (yylex): Update.
7064 * d-exp.y: Update all rules.
7065 (yylex): Update.
7066 * c-exp.y: Update all rules.
7067 (lex_one_token, classify_name, yylex, c_parse): Update.
7068 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7069
37eedb39
TT
70702019-04-04 Tom Tromey <tom@tromey.com>
7071
7072 * gdbarch.h, gdbarch.c: Rebuild.
7073 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7074 * stap-probe.h:
7075 (struct stap_parse_info): Replace "parser_state" with
7076 "expr_builder".
7077 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7078 (parser_state): New class.
7079 * parse.c (expr_builder): Rename.
7080 (expr_builder::release): Rename.
7081 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7082 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7083 (write_exp_elt_longcst, write_exp_elt_floatcst)
7084 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7085 (write_exp_string_vector, write_exp_bitstring)
7086 (write_exp_msymbol, mark_struct_expression)
7087 (write_dollar_variable)
7088 (insert_type_address_space, increase_expout_size): Replace
7089 "parser_state" with "expr_builder".
7090 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7091 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7092 "parser_state" with "expr_builder".
7093
73923d7e
TT
70942019-04-04 Tom Tromey <tom@tromey.com>
7095
7096 * rust-exp.y: Replace "parse_language" with method call.
7097 * p-exp.y:
7098 (yylex): Replace "parse_language" with method call.
7099 * m2-exp.y:
7100 (yylex): Replace "parse_language" with method call.
7101 * go-exp.y (classify_name): Replace "parse_language" with method
7102 call.
7103 * f-exp.y (yylex): Replace "parse_language" with method call.
7104 * d-exp.y (lex_one_token): Replace "parse_language" with method
7105 call.
7106 * c-exp.y:
7107 (lex_one_token, classify_name, yylex): Replace "parse_language"
7108 with method call.
7109 * ada-exp.y (find_primitive_type, type_char)
7110 (type_system_address): Replace "parse_language" with method call.
7111
fa9f5be6
TT
71122019-04-04 Tom Tromey <tom@tromey.com>
7113
7114 * rust-exp.y: Replace "parse_gdbarch" with method call.
7115 * parse.c (write_dollar_variable, insert_type_address_space):
7116 Replace "parse_gdbarch" with method call.
7117 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7118 call.
7119 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7120 call.
7121 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7122 "parse_gdbarch" with method call.
7123 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7124 with method call.
7125 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7126 "parse_gdbarch" with method call.
7127 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7128 "parse_gdbarch" with method call.
7129 * c-exp.y (parse_type, parse_number, classify_name): Replace
7130 "parse_gdbarch" with method call.
7131 * ada-lex.l: Replace "parse_gdbarch" with method call.
7132 * ada-exp.y (parse_type, find_primitive_type, type_char)
7133 (type_system_address): Replace "parse_gdbarch" with method call.
7134
1201a264
TT
71352019-04-04 Tom Tromey <tom@tromey.com>
7136
7137 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7138 * stap-probe.c (stap_parse_argument): Update.
7139 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7140 initial_size parameter.
7141 * rust-exp.y (rust_lex_tests): Update.
7142 * parse.c (parser_state): Update.
7143 (parse_exp_in_context): Update.
7144 * parser-defs.h (struct parser_state) <parser_state>: Remove
7145 "initial_size" parameter.
7146
e3980ce2
TT
71472019-04-04 Tom Tromey <tom@tromey.com>
7148
7149 * parser-defs.h (increase_expout_size): Don't declare.
7150 * parse.c (increase_expout_size): Now static.
7151
e9f8e3f1
TS
71522019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7153
7154 * gnu-nat.c (gnu_nat_target::wait): Fix
7155 target_waitstatus_to_string call.
7156
d7df6549
AB
71572019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7158
7159 * eval.c (evaluate_subexp_standard): Handle internal functions
7160 during Fortran function call handling.
7161
8bdc1658
AB
71622019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7163
7164 * NEWS: Mention new internal functions.
7165 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7166 (read_base_type): Use dwarf2_init_complex_target_type.
7167 * value.c (creal_internal_fn): New function.
7168 (cimag_internal_fn): New function.
7169 (_initialize_values): Register new internal functions.
7170
c29705b7
PW
71712019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7172
7173 * infrun.c (stop_all_threads): If debug_infrun, always
7174 trace the wait status after wait_one, using
7175 target_waitstatus_to_string and target_pid_to_str.
7176 (handle_inferior_event): Replace various trace of
7177 wait status kind by a single trace.
7178 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7179 wait status kind image by target_waitstatus_to_string.
7180 * target/waitstatus.c (target_waitstatus_to_string): Fix
7181 obsolete comment.
7182
05caa1d2
TT
71832019-04-01 Tom Tromey <tromey@adacore.com>
7184
7185 PR symtab/23331:
7186 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7187
9d1447e0
SDJ
71882019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7189 Pedro Alves <palves@redhat.com>
7190
7191 * top.c (quit_force): Call 'finalize_values'.
7192 * value.c (finalize_values): New function.
7193 * value.h (finalize_values): Declare.
7194
7734102d
EZ
71952019-03-30 Eli Zaretskii <eliz@gnu.org>
7196
7197 * NEWS: Announce $_gdb_major and $_gdb_minor.
7198
7199 * top.c (init_gdb_version_vars): New function.
7200 (gdb_init): Call init_gdb_version_vars.
7201
188e1fa9
TT
72022019-03-29 Tom Tromey <tromey@adacore.com>
7203
7204 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7205 help text. Remove dead code.
7206
2880242d
KS
72072019-03-29 Keith Seitz <keiths@redhat.com>
7208
7209 From Siddhesh Poyarekar:
7210 * f-lang.h (f77_get_upperbound): Return LONGEST.
7211 (f77_get_lowerbound): Likewise.
7212 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7213 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7214 print them.
7215 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7216 plongest to format print it.
7217 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7218 (f77_get_upperbound): Likewise.
7219 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7220 LOWER_BOUND to LONGEST.
7221 (f77_create_arrayprint_offset_tbl): Likewise.
7222
cc1defb1
KS
72232019-03-29 Keith Seitz <keiths@redhat.com>
7224
7225 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7226 %s/pulongest for TYPE_LENGTH instead of %d in format
7227 strings.
7228 * ada-typerint.c (ada_print_type): Likewise.
7229 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7230 * compile/compile-c-support.c (generate_register_struct): Likewise.
7231 * gdbtypes.c (recursive_dump_type): Likewise.
7232 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7233 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7234 instead of %d in format strings.
7235 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7236 to std::min to ULONGEST.
7237 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7238 instead of %d in format strings.
7239 * tracepoint.c (info_scope_command): Likewise.
7240 * typeprint.c (print_offset_data::update)
7241 (print_offset_data::finish): Likewise.
7242 * xtensa-tdep.c (xtensa_store_return_value)
7243 (xtensa_push_dummy_call): Likewise.
7244
e432ccf1
JT
72452019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7246
7247 * windows-nat.c (display_selector): Fixed format specifications
7248 for 64-bit Cygwin.
7249
65d2b333
PW
72502019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7251
7252 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7253
f489207e
SL
72542019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7255
7256 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7257 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7258 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7259 (nios2_linux_init_abi): Install it.
7260
bffa1015
AH
72612019-03-28 Alan Hayward <alan.hayward@arm.com>
7262
7263 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7264
fc96163a
AH
72652019-03-28 Alan Hayward <alan.hayward@arm.com>
7266
7267 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7268
20dc7e9b
PW
72692019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7270 Tom Tromey <tromey@adacore.com>
7271
7272 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7273
7f5331a8
JB
72742019-03-26 Joel Brobecker <brobecker@adacore.com>
7275
7276 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7277 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7278 method to compute the bounds of range types. Also print "[evaluated]"
7279 if the bounds' values come from a dynamic evaluation.
7280
18c77628
AB
72812019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7282
7283 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7284 whitespace when pretty printing is on.
7285
53c973f2
AH
72862019-03-26 Alan Hayward <alan.hayward@arm.com>
7287
e79be6e5 7288 * ppc-linux-nat.c: Add include.
53c973f2 7289
d851aa71
AH
72902019-03-26 Alan Hayward <alan.hayward@arm.com>
7291
e79be6e5 7292 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7293
2fe7bab7
AH
72942019-03-26 Alan Hayward <alan.hayward@arm.com>
7295
e79be6e5 7296 * arm-linux-nat.c: Add include.
2fe7bab7 7297
068ef30e
SM
72982019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7299
7300 * source-cache.c (source_cache::get_source_lines): Re-read
7301 fullname after calling open_source_file.
7302
81a24d04
JB
73032019-03-25 John Baldwin <jhb@FreeBSD.org>
7304
7305 * NEWS: Mention TLS support for FreeBSD.
7306
79e7ae11
TT
73072019-03-25 Tom Tromey <tromey@adacore.com>
7308
7309 * minsyms.c (BUNCH_SIZE): Update comment.
7310 (~minimal_symbol_reader): Remove old comment.
7311 (compact_minimal_symbols): Update comment.
7312 (minimal_symbol_reader::install): Remove old comment. Update
7313 other comments.
7314
d45963c2
AH
73152019-03-25 Alan Hayward <alan.hayward@arm.com>
7316
7317 * s390-linux-nat.c: Add include.
7318
0f83012e
AH
73192019-03-25 Alan Hayward <alan.hayward@arm.com>
7320
7321 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7322 Call linux_get_hwcap.
7323 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7324 Likewise.
7325 (aarch64_linux_get_hwcap): Remove function.
7326 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7327 declaration.
7328 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7329 linux_get_hwcap.
7330 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7331 * linux-tdep.c (linux_get_hwcap): Add function.
7332 (linux_get_hwcap2): Likewise.
7333 * linux-tdep.h (linux_get_hwcap): Add declaration.
7334 (linux_get_hwcap2): Likewise.
7335 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7336 (ppc_linux_get_hwcap2): Likewise.
7337 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7338 linux_get_hwcap.
7339 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7340 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7341 (ppc_linux_nat_target::read_description): Likewise.
7342 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7343 * s390-linux-nat.c: Likewise.
7344 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7345
6640a367
TT
73462019-03-24 Tom Tromey <tom@tromey.com>
7347
7348 * ada-lang.c (standard_lookup): Simplify initialization.
7349 (ada_lookup_symbol_nonlocal): Simplify return.
7350 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7351 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7352 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7353 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7354 initialization.
7355 * solib.c (solib_global_lookup): Simplify.
7356 * symtab.c (null_block_symbol): Remove.
7357 (symbol_cache_lookup): Simplify returns.
7358 (lookup_language_this): Simplify returns.
7359 (lookup_symbol_aux): Simplify return.
7360 (lookup_local_symbol): Simplify returns.
7361 (lookup_global_symbol_from_objfile): Simplify return.
7362 (lookup_symbol_in_objfile_symtabs)
7363 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7364 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7365 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7366 * cp-namespace.c (cp_lookup_bare_symbol)
7367 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7368 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7369 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7370 (cp_lookup_symbol_via_imports): Simplify initialization.
7371 (find_symbol_in_baseclass): Likewise.
7372 * symtab.h (null_block_symbol): Remove.
7373 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7374 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7375 (d_lookup_symbol_module): Likewise.
7376 (find_symbol_in_baseclass): Simplify initialization.
7377
a930ebcd
TT
73782019-03-24 Tom Tromey <tom@tromey.com>
7379
7380 * expression.h: Don't include symtab.h.
7381 (struct block): Forward declare.
7382
582942f4
TT
73832019-03-24 Tom Tromey <tom@tromey.com>
7384
7385 * c-exp.y (typebase): Remove casts.
7386 * gdbtypes.c (lookup_unsigned_typename, )
7387 (lookup_signed_typename): Remove cast.
7388 * eval.c (parse_to_comma_and_eval): Remove cast.
7389 * parse.c (write_dollar_variable): Remove cast.
7390 * block.h (struct block) <superblock>: Now const.
7391 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7392 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7393 (map_block): Make "block" const.
7394 * symfile.h (struct quick_symbol_functions)
7395 <map_matching_symbols>: Constify block argument to "callback".
7396 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7397 const.
7398 (find_pc_sect_compunit_symtab): Make "b" const.
7399 (find_symbol_at_address): Likewise.
7400 (search_symbols): Likewise.
7401 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7402 (dw2_debug_names_lookup_symbol): Likewise.
7403 (dw2_map_matching_symbols): Update.
7404 * p-valprint.c (pascal_val_print): Remove "block".
7405 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7406 (aux_add_nonlocal_symbols): Make "block" const.
7407 (resolve_subexp): Remove cast.
7408 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7409 const.
7410 (iterate_over_file_blocks): Likewise.
7411 * f-exp.y (%union) <bval>: Remove.
7412 * coffread.c (patch_opaque_types): Make "b" const.
7413 * spu-tdep.c (spu_catch_start): Make "block" const.
7414 * c-valprint.c (print_unpacked_pointer): Remove "block".
7415 * symmisc.c (dump_symtab_1): Make "b" const.
7416 (block_depth): Make "block" const.
7417 * d-exp.y (%union) <bval>: Remove.
7418 * cp-support.h (cp_lookup_rtti_type): Update.
7419 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7420 * psymtab.c (psym_lookup_symbol): Make "block" const.
7421 (maintenance_check_psymtabs): Make "b" const.
7422 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7423 (enumerate_locals, enumerate_args): Update.
7424 * python/py-symtab.c (stpy_global_block): Make "block" const.
7425 (stpy_static_block): Likewise.
7426 * inline-frame.c (block_starting_point_at): Make "new_block"
7427 const.
7428 * block.c (find_block_in_blockvector): Make return type const.
7429 (blockvector_for_pc_sect): Make "b" const.
7430 (find_block_in_blockvector): Make "b" const.
7431
7ad417dd
TT
74322019-03-23 Tom Tromey <tom@tromey.com>
7433
7434 * varobj.c (varobj_create): Update.
7435 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7436 * printcmd.c (display_command, do_one_display): Don't reset
7437 innermost_block.
7438 * parser-defs.h (enum innermost_block_tracker_type): Move to
7439 expression.h.
7440 (innermost_block): Update comment.
7441 * parse.c (parse_exp_1): Add tracker_types parameter.
7442 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7443 tracker_types parameter. Reset innermost_block.
7444 (parse_exp_in_context): Remove.
7445 (parse_expression_for_completion): Update.
7446 * objfiles.c (~objfile): Don't reset expression_context_block or
7447 innermost_block.
7448 * expression.h (enum innermost_block_tracker_type): Move from
7449 parser-defs.h.
7450 (parse_exp_1): Add tracker_types parameter.
7451 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7452 reset innermost_block.
7453
b366c208
TT
74542019-03-23 Tom Tromey <tom@tromey.com>
7455
7456 * objfiles.h: Include bcache.h.
7457
9bb9b2f9
TT
74582019-03-23 Tom Tromey <tom@tromey.com>
7459
7460 * linespec.c (get_current_search_block): Use
7461 scoped_restore_current_language.
7462 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7463
59c28372
AH
74642019-03-22 Alan Hayward <alan.hayward@arm.com>
7465 Jiong Wang <jiong.wang@arm.com>
7466
7467 * aarch64-linux-tdep.c
7468 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7469 section.
7470 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7471
17e116a7
AH
74722019-03-22 Alan Hayward <alan.hayward@arm.com>
7473 Jiong Wang <jiong.wang@arm.com>
7474
7475 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7476 instructions.
7477 (aarch64_analyze_prologue_test): Add PACIASP test.
7478 (aarch64_prologue_prev_register): Unmask PC value.
7479
11e1b75f
AH
74802019-03-22 Alan Hayward <alan.hayward@arm.com>
7481 Jiong Wang <jiong.wang@arm.com>
7482
7483 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7484 (aarch64_dwarf2_prev_register): Unmask PC value.
7485 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7486 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7487 DW_CFA_AARCH64_negate_ra_state.
7488 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7489
34dcc7cf
AH
74902019-03-22 Alan Hayward <alan.hayward@arm.com>
7491 Jiong Wang <jiong.wang@arm.com>
7492
7493 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7494 registers.
7495 (aarch64_pseudo_register_name): Likewise.
7496 (aarch64_pseudo_register_type): Likewise.
7497 (aarch64_pseudo_register_reggroup_p): Likewise.
7498 (aarch64_gdbarch_init): Add pauth registers.
7499 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7500 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7501 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7502 (struct gdbarch_tdep): Add regnum for ra_state.
7503
1ef53e6b
AH
75042019-03-22 Alan Hayward <alan.hayward@arm.com>
7505 Jiong Wang <jiong.wang@arm.com>
7506
7507 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7508
76bed0fd
AH
75092019-03-22 Alan Hayward <alan.hayward@arm.com>
7510 Jiong Wang <jiong.wang@arm.com>
7511
7512 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7513 function.
7514 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7515 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7516 (aarch64_gdbarch_init): Add puth registers.
7517 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7518 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7519 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7520
ee4fbcfa
AH
75212019-03-22 Alan Hayward <alan.hayward@arm.com>
7522 Jiong Wang <jiong.wang@arm.com>
7523
7524 * aarch64-linux-nat.c
7525 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7526 * aarch64-linux-tdep.c
7527 (aarch64_linux_core_read_description): Likewise.
7528 (aarch64_linux_get_hwcap): New function.
7529 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7530 (aarch64_linux_get_hwcap): New declaration.
7531
6dc0ebde
AH
75322019-03-22 Alan Hayward <alan.hayward@arm.com>
7533 Jiong Wang <jiong.wang@arm.com>
7534
7535 * aarch64-linux-nat.c
7536 (aarch64_linux_nat_target::read_description): Add pauth param.
7537 * aarch64-linux-tdep.c
7538 (aarch64_linux_core_read_description): Likewise.
7539 * aarch64-tdep.c (struct target_desc): Add in pauth.
7540 (aarch64_read_description): Add pauth param.
7541 (aarch64_gdbarch_init): Likewise.
7542 * aarch64-tdep.h (aarch64_read_description): Likewise.
7543 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7544 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7545 * features/Makefile: Add new files.
7546 * features/aarch64-pauth.c: New file.
7547 * features/aarch64-pauth.xml: New file.
7548
595915c1
TT
75492019-03-20 Tom Tromey <tromey@adacore.com>
7550
7551 * infrun.c (handle_inferior_event): Rename from
7552 handle_inferior_event_1. Create a scoped_value_mark.
7553 (handle_inferior_event): Remove.
7554
4c7d57e7
TT
75552019-03-19 Tom Tromey <tromey@adacore.com>
7556
7557 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7558 * infrun.h (print_stop_event): Add "displays" parameter.
7559 * infrun.c (print_stop_event): Add "displays" parameter.
7560
cb246234
PA
75612019-03-19 Pedro Alves <palves@redhat.com>
7562
7563 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7564 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7565 to -1. Fix TABs vs spaces.
7566 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7567 * tui/tui-out.h (tui_ui_out) Add intro comments.
7568 <m_line, m_start_of_line>: In-class initialize, and add describing
7569 comment.
7570
3a0e45b2
AH
75712019-03-18 Alan Hayward <alan.hayward@arm.com>
7572
7573 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7574 variable names.
7575 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7576
5371b850
PA
75772019-03-18 Pedro Alves <palves@redhat.com>
7578 Eli Zaretskii <eliz@gnu.org>
7579
7580 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7581 m_line and m_start_of_line.
7582
b17c4cd0
EZ
75832019-03-18 Eli Zaretskii <eliz@gnu.org>
7584
7585 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7586 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7587 it returns a newline. This fixes a regression in TU mode, whereby
7588 the next line is output on the same screen line as the user input.
7589
4bd56d18
TT
75902019-03-18 Tom Tromey <tromey@adacore.com>
7591
7592 * minsyms.c (minimal_symbol_reader::install): Remove call to
7593 obstack_blank.
7594
55c10aca
PA
75952019-03-18 Pedro Alves <palves@redhat.com>
7596
7597 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7598 New globals.
7599 (apply_style): New, factored out from ...
7600 (apply_ansi_escape): ... this. Handle reverse video mode.
7601 (tui_set_reverse_mode): New function.
7602 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7603 * tui/tui-winsource.c (tui_show_source_line): Use
7604 tui_set_reverse_mode instead of setting A_STANDOUT.
7605 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7606 New setter methods.
7607
647bb750
HD
76082019-03-18 Hannes Domani <ssbssa@yahoo.de>
7609
7610 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7611 Handle tabs.
7612
bff8c71f
TT
76132019-03-18 Tom Tromey <tromey@adacore.com>
7614
7615 * ada-lang.c (empty_array): Add "high" parameter.
7616 (ada_evaluate_subexp): Update.
7617
58785d98
ST
76182019-03-17 Sergei Trofimovich <siarheit@google.com>
7619
7620 * unittests/string_view-selftests.c: Define
7621 _initialize_string_view_selftests unconditionally.
7622
d4cbef22
ВМ
76232019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7624
7625 PR gdb/24350
7626 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7627
fce4c071
ВМ
76282019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7629
7630 PR gdb/24351
7631 * windows-nat.c (display_selector): Fix format specifiers.
7632
f7f0a123
EZ
76332019-03-17 Eli Zaretskii <eliz@gnu.org>
7634
7635 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7636 tui_refill_source_window instead of tui_refresh_win, to update the
7637 current execution line. This fixes redisplay of the current line
7638 when stepping through the code with "next" or "step".
7639
ab42892f
EZ
76402019-03-16 Eli Zaretskii <eliz@gnu.org>
7641
7642 * source-cache.c (source_cache::get_source_lines): Call
7643 find_source_lines to initialize s->nlines. This fixes vertical
7644 scrolling of TUI source window when the DOWN arrow is pressed.
7645
8d8c087f
PW
76462019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7647
7648 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7649 linux-thread-db.c (_initialize_thread_db): Likewise.
7650
798e1c30
EZ
76512019-03-16 Eli Zaretskii <eliz@gnu.org>
7652
7653 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7654 wclrtoeol in tui_show_source_line". This reverts changes made in
7655 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7656
eefba3da
TT
76572019-03-15 Tom Tromey <tom@tromey.com>
7658
7659 * symtab.h (struct minimal_symbol): Derive from
7660 general_symbol_info.
7661 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7662 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7663 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7664 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7665 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7666 (MSYMBOL_SEARCH_NAME): Update.
7667 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7668 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7669 * minsyms.c (minimal_symbol_reader::record_full): Update.
7670
0de2420c
TT
76712019-03-15 Tom Tromey <tom@tromey.com>
7672
7673 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7674
042d75e4
TT
76752019-03-15 Tom Tromey <tom@tromey.com>
7676
7677 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7678 unique_xmalloc_ptr.
7679 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7680 Update.
7681 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7682 (build_minimal_symbol_hash_tables)
7683 (minimal_symbol_reader::install): Update.
7684
db92718b
TT
76852019-03-15 Tom Tromey <tom@tromey.com>
7686
7687 * symtab.c (create_demangled_names_hash): Update.
7688 (symbol_set_names): Update.
7689 * objfiles.h (struct objfile_per_bfd_storage)
7690 <demangled_names_hash>: Now an htab_up.
7691 * objfiles.c (objfile_per_bfd_storage): Simplify.
7692
d6797f46
TT
76932019-03-15 Tom Tromey <tom@tromey.com>
7694
7695 * objfiles.h (struct objfile_per_bfd_storage): Declare
7696 destructor.
7697 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7698 New.
7699 (get_objfile_bfd_data): Use new. Don't initialize
7700 language_of_main.
7701 (free_objfile_per_bfd_storage): Remove.
7702 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7703
741d7538
TT
77042019-03-15 Tom Tromey <tom@tromey.com>
7705
7706 * symfile.c (reread_symbols): Update.
7707 * objfiles.c (objfile::objfile): Update.
7708 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7709 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7710 comment.
7711 (minimal_symbol_reader::install): Update.
7712 (terminate_minimal_symbol_table): Remove.
7713 * jit.c (jit_object_close_impl): Update.
7714
788c80d1
TT
77152019-03-15 Tom Tromey <tom@tromey.com>
7716
7717 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7718 initializations.
7719
1b7a07cb
TT
77202019-03-15 Tom Tromey <tom@tromey.com>
7721
7722 * objfiles.h (struct objfile_per_bfd_storage)
7723 <demangled_hash_languages>: Now a bitset.
7724 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7725 (lookup_minimal_symbol): Update.
7726
3db066bc
TT
77272019-03-15 Tom Tromey <tom@tromey.com>
7728
7729 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7730 Don't return the symbol.
7731 * coffread.c (record_minimal_symbol): Use record_full.
7732
3fff2c37
EZ
77332019-03-14 Eli Zaretskii <eliz@gnu.org>
7734
7735 The MS-Windows port of ncurses fails to switch to a color pair if
7736 one or both of the colors are the implicit default colors. This
7737 change records the default colors when TUI is initialized, and
7738 then specifies them explicitly when a color pair uses the default
7739 colors. This allows color styling in TUI mode on MS-Windows.
7740
7741 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7742 ncurses_norm_attr.
7743 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7744 colors in ncurses_norm_attr.
7745 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7746 "none", replace it with the default color recorded in
7747 ncurses_norm_attr.
7748
3b336828
TT
77492019-03-14 Tom Tromey <tromey@adacore.com>
7750
7751 * source-cache.h (class source_cache) <get_source_lines>: Return
7752 std::string.
7753 * source-cache.c (source_cache::extract_lines): Handle case where
7754 first_pos==npos. Return std::string.
7755 (source_cache::get_source_lines): Update.
7756
d085f989
TT
77572019-03-14 Tom Tromey <tromey@adacore.com>
7758
7759 * NEWS: Add item for "style sources" commands.
7760 * source-cache.c (source_cache::get_source_lines): Check
7761 source_styling.
7762 * cli/cli-style.c (source_styling): New global.
7763 (_initialize_cli_style): Add "style sources" commands.
7764 (show_style_sources): New function.
7765 * cli/cli-style.h (source_styling): Declare.
7766
6f11e682
TT
77672019-03-14 Pedro Alves <palves@redhat.com>
7768 Tom Tromey <tromey@adacore.com>
7769
7770 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7771 * tui/tui-winsource.c (tui_refill_source_window): New function,
7772 from...
7773 (tui_horizontal_source_scroll): ... here. Move some logic.
7774 * cli/cli-style.c (set_style_enabled): Notify new observable.
7775 * tui/tui-hooks.c (tui_redisplay_source): New function.
7776 (tui_attach_detach_observers): Attach or detach
7777 tui_redisplay_source.
7778 * observable.h (source_styling_changed): New observable.
7779 * observable.c: Define source_styling_changed observable.
7780
a068643d
TT
77812019-03-13 Tom Tromey <tromey@adacore.com>
7782
7783 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7784 (i386_gnu_nat_target::store_registers): Update.
7785 * target-debug.h (target_debug_print_std_string): New macro.
7786 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7787 * windows-tdep.c (display_one_tib): Update.
7788 * tui/tui-stack.c (tui_make_status_line): Update.
7789 * top.c (print_inferior_quit_action): Update.
7790 * thread.c (thr_try_catch_cmd): Update.
7791 (add_thread_with_info): Update.
7792 (thread_target_id_str): Update.
7793 (thr_try_catch_cmd): Update.
7794 (thread_command): Update.
7795 (thread_find_command): Update.
7796 * record-btrace.c (record_btrace_target::info_record)
7797 (record_btrace_resume_thread, record_btrace_target::resume)
7798 (record_btrace_cancel_resume, record_btrace_step_thread)
7799 (record_btrace_target::wait, record_btrace_target::wait)
7800 (record_btrace_target::wait, record_btrace_target::stop): Update.
7801 * progspace.c (print_program_space): Update.
7802 * process-stratum-target.c
7803 (process_stratum_target::thread_address_space): Update.
7804 * linux-fork.c (linux_fork_mourn_inferior)
7805 (detach_checkpoint_command, info_checkpoints_command)
7806 (linux_fork_context): Update.
7807 (linux_fork_detach): Update.
7808 (class scoped_switch_fork_info): Update.
7809 (delete_checkpoint_command): Update.
7810 * infrun.c (follow_fork_inferior): Update.
7811 (follow_fork_inferior): Update.
7812 (proceed_after_vfork_done): Update.
7813 (handle_vfork_child_exec_or_exit): Update.
7814 (follow_exec): Update.
7815 (displaced_step_prepare_throw): Update.
7816 (displaced_step_restore): Update.
7817 (start_step_over): Update.
7818 (resume_1): Update.
7819 (clear_proceed_status_thread): Update.
7820 (proceed): Update.
7821 (print_target_wait_results): Update.
7822 (do_target_wait): Update.
7823 (context_switch): Update.
7824 (stop_all_threads): Update.
7825 (restart_threads): Update.
7826 (finish_step_over): Update.
7827 (handle_signal_stop): Update.
7828 (switch_back_to_stepped_thread): Update.
7829 (keep_going_pass_signal): Update.
7830 (print_exited_reason): Update.
7831 (normal_stop): Update.
7832 * inferior.c (inferior_pid_to_str): Change return type.
7833 (print_selected_inferior): Update.
7834 (add_inferior): Update.
7835 (detach_inferior): Update.
7836 * dummy-frame.c (fprint_dummy_frames): Update.
7837 * dcache.c (dcache_info_1): Update.
7838 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7839 (btrace_fetch, btrace_clear): Update.
7840 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7841 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7842 type.
7843 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7844 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7845 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7846 * gdbarch.c, gdbarch.h: Rebuild.
7847 * gdbarch.sh (core_pid_to_str): Change return type.
7848 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7849 return type.
7850 (windows_nat_target::pid_to_str): Change return type.
7851 (windows_delete_thread): Update.
7852 (windows_nat_target::attach): Update.
7853 (windows_nat_target::files_info): Update.
7854 * target-delegates.c: Rebuild.
7855 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7856 return type.
7857 (sol_thread_target::pid_to_str): Change return type.
7858 * remote.c (class remote_target) <pid_to_str>: Change return
7859 type.
7860 (remote_target::pid_to_str): Change return type.
7861 (extended_remote_target::attach, remote_target::remote_stop_ns)
7862 (remote_target::remote_notif_remove_queued_reply)
7863 (remote_target::push_stop_reply, remote_target::disable_btrace):
7864 Update.
7865 (extended_remote_target::attach): Update.
7866 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7867 type.
7868 (gdbsim_target::pid_to_str): Change return type.
7869 * ravenscar-thread.c (struct ravenscar_thread_target)
7870 <pid_to_str>: Change return type.
7871 (ravenscar_thread_target::pid_to_str): Change return type.
7872 * procfs.c (class procfs_target) <pid_to_str>: Change return
7873 type.
7874 (procfs_target::pid_to_str): Change return type.
7875 (procfs_target::attach): Update.
7876 (procfs_target::detach): Update.
7877 (procfs_target::fetch_registers): Update.
7878 (procfs_target::store_registers): Update.
7879 (procfs_target::wait): Update.
7880 (procfs_target::files_info): Update.
7881 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7882 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7883 return type.
7884 (nto_procfs_target::pid_to_str): Change return type.
7885 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7886 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7887 return type.
7888 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7889 (exit_lwp): Update.
7890 (attach_proc_task_lwp_callback, get_detach_signal)
7891 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7892 (linux_nat_target::resume, wait_lwp, stop_callback)
7893 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7894 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7895 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7896 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7897 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7898 type.
7899 (inf_ptrace_target::attach): Update.
7900 (inf_ptrace_target::files_info): Update.
7901 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7902 type.
7903 (go32_nat_target::pid_to_str): Change return type.
7904 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7905 (gnu_nat_target::wait): Update.
7906 (gnu_nat_target::wait): Update.
7907 (gnu_nat_target::resume): Update.
7908 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7909 (fbsd_nat_target::wait): Update.
7910 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7911 type.
7912 (darwin_nat_target::attach): Update.
7913 * corelow.c (class core_target) <pid_to_str>: Change return type.
7914 (core_target::pid_to_str): Change return type.
7915 * target.c (normal_pid_to_str): Change return type.
7916 (default_pid_to_str): Likewise.
7917 (target_pid_to_str): Change return type.
7918 (target_translate_tls_address): Update.
7919 (target_announce_detach): Update.
7920 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7921 return type.
7922 (bsd_uthread_target::pid_to_str): Change return type.
7923 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7924 type.
7925 (bsd_kvm_target::pid_to_str): Change return type.
7926 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7927 return type.
7928 (aix_thread_target::pid_to_str): Change return type.
7929 * target.h (struct target_ops) <pid_to_str>: Change return type.
7930 (target_pid_to_str, normal_pid_to_str): Likewise.
7931 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7932 type.
7933 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7934 type.
7935 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7936 return type.
7937 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7938 type.
7939 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7940 type.
7941 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7942 return type.
7943
b4be1b06
SM
79442019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7945
7946 * NEWS: Mention that the new default MI version is 3. Mention
7947 changes to the output of commands and events that deal with
7948 multi-location breakpoints.
7949 * breakpoint.c: Include "mi/mi-out.h".
7950 (print_one_breakpoint): Change output syntax if using MI version
7951 >= 3.
7952 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7953 New.
7954 (mi_multi_location_breakpoint_output_fixed): New.
7955 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7956 (mi_cmd_fix_multi_location_breakpoint_output): New.
7957 (mi_multi_location_breakpoint_output_fixed): New.
7958 * mi/mi-cmds.c (mi_cmds): Register command
7959 -fix-multi-location-breakpoint-output.
7960 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7961 interpreter "mi".
7962
8e5e5494
SM
79632019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7964
7965 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7966 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7967 instantiate mi_ui_out based on interpreter name.
7968 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7969 * mi/mi-main.c (mi_load_progress): Likewise.
7970
197df35e
JB
79712019-03-12 John Baldwin <jhb@FreeBSD.org>
7972
7973 * NEWS: Combine separate "New targets" sections for 8.3.
7974
8399425f
JB
79752019-03-12 John Baldwin <jhb@FreeBSD.org>
7976
7977 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7978 (ppcfbsd_init_abi): Install gdbarch
7979 "fetch_tls_load_module_address" and "get_thread_local_address"
7980 methods.
7981
b0f87ed0
JB
79822019-03-12 John Baldwin <jhb@FreeBSD.org>
7983
7984 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7985 (riscv_fbsd_init_abi): Install gdbarch
7986 "fetch_tls_load_module_address" and "get_thread_local_address"
7987 methods.
7988
ce25aa57
JB
79892019-03-12 John Baldwin <jhb@FreeBSD.org>
7990
7991 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7992 (i386fbsd_init_abi): Install gdbarch
7993 "fetch_tls_load_module_address" and "get_thread_local_address"
7994 methods.
7995
f5424cfa
JB
79962019-03-12 John Baldwin <jhb@FreeBSD.org>
7997
7998 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7999 (amd64fbsd_init_abi): Install gdbarch
8000 "fetch_tls_load_module_address" and "get_thread_local_address"
8001 methods.
8002
945f3901
JB
80032019-03-12 John Baldwin <jhb@FreeBSD.org>
8004
8005 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8006 (struct fbsd_pspace_data): New type.
8007 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8008 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8009 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8010 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8011 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8012
ef0bd204
JB
80132019-03-12 John Baldwin <jhb@FreeBSD.org>
8014
8015 * gdbtypes.c (lookup_struct_elt): New function.
8016 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8017 * gdbtypes.h (struct struct_elt): New type.
8018 (lookup_struct_elt): New prototype.
8019
36c53a02
JB
80202019-03-12 John Baldwin <jhb@FreeBSD.org>
8021
8022 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8023 remove disabled code block.
8024
6e056c81
JB
80252019-03-12 John Baldwin <jhb@FreeBSD.org>
8026
8027 * gdbarch.sh (get_thread_local_address): New method.
8028 * gdbarch.h, gdbarch.c: Regenerate.
8029 * target.c (target_translate_tls_address): Use
8030 gdbarch_get_thread_local_address if present instead of
8031 target::get_thread_local_address.
8032
cd250a18
JB
80332019-03-12 John Baldwin <jhb@FreeBSD.org>
8034
8035 * target.h (target::get_thread_local_address): Update comment.
8036
df22c1e5
JB
80372019-03-12 John Baldwin <jhb@FreeBSD.org>
8038
8039 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8040 objfile->separate_debug_objfile_backlink if not NULL.
8041
dd6876c9
JB
80422019-03-12 John Baldwin <jhb@FreeBSD.org>
8043
8044 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8045 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8046 (amd64bsd_store_inferior_registers): Likewise.
8047 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8048 Enable segment base registers.
8049 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8050 PT_GETFSBASE and PT_GETGSBASE.
8051 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8052 PT_SETGSBASE.
8053 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8054 segment base registers.
8055 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8056
1163a4b7
JB
80572019-03-12 John Baldwin <jhb@FreeBSD.org>
8058
8059 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8060 Update calls to i386_target_description to add 'segments'
8061 parameter.
8062 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8063 add segment base registers.
8064 * arch/i386.c (i386_create_target_description): Add 'segments'
8065 parameter to enable segment base registers.
8066 * arch/i386.h (i386_create_target_description): Likewise.
8067 * features/i386/32bit-segments.xml: New file.
8068 * features/i386/32bit-segments.c: Generate.
8069 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8070 call to i386_target_description to add 'segments' parameter.
8071 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8072 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8073 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8074 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8075 if feature is present.
8076 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8077 Add 'segments' parameter to call to i386_target_description.
8078 (i386_target_description): Add 'segments' parameter to enable
8079 segment base registers.
8080 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8081 to call to i386_target_description.
8082 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8083 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8084 Define I386_NUM_REGS.
8085 (i386_target_description): Add 'segments' parameter to enable
8086 segment base registers.
8087
3a350822
EZ
80882019-03-12 Eli Zaretskii <eliz@gnu.org>
8089
8090 PR/24325
8091 * source-cache.c: #undef open and close, to avoid unresolved
8092 externals during linking.
8093
ffdd69cf
TT
80942019-03-12 Tom Tromey <tromey@adacore.com>
8095
8096 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8097 const. Add initializers.
8098 (_initialize_remote): Don't initialize ptid globals.
8099
ec148c57
PA
81002019-03-12 Pedro Alves <palves@redhat.com>
8101
8102 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8103
32764270
PA
81042019-03-12 Pedro Alves <palves@redhat.com>
8105
8106 * cp-name-parser.y (main): Remove unused 'len' variable.
8107
17547186
TT
81082019-03-12 Tom Tromey <tromey@adacore.com>
8109
8110 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8111 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8112
d3a70e03
TT
81132019-03-12 Tom Tromey <tromey@adacore.com>
8114
8115 * linux-nat.c (iterate_over_lwps): Update.
8116 (stop_callback): Remove parameter.
8117 (stop_wait_callback, detach_callback, resume_set_callback)
8118 (select_singlestep_lwp_callback, set_ignore_sigint)
8119 (status_callback, resumed_callback, resume_clear_callback)
8120 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8121 data parameter.
8122 (linux_nat_target::detach, linux_nat_target::resume)
8123 (linux_stop_and_wait_all_lwps, select_event_lwp)
8124 (linux_nat_filter_event, linux_nat_wait_1)
8125 (linux_nat_target::kill, linux_nat_target::stop)
8126 (linux_nat_target::stop): Update.
8127 (linux_nat_resume_callback): Change type.
8128 (resume_stopped_resumed_lwps, count_events_callback)
8129 (select_event_lwp_callback): Likewise.
8130 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8131 * arm-linux-nat.c (struct update_registers_data): Remove.
8132 (update_registers_callback): Change type.
8133 (arm_linux_insert_hw_breakpoint1): Update.
8134 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8135 parameter.
8136 (x86_linux_dr_set_addr): Update.
8137 (x86_linux_dr_set_control): Update.
8138 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8139 (iterate_over_lwps): Use gdb::function_view.
8140 * nat/aarch64-linux-hw-point.c (struct
8141 aarch64_dr_update_callback_param): Remove.
8142 (debug_reg_change_callback): Change type.
8143 (aarch64_notify_debug_reg_change): Update.
8144 * s390-linux-nat.c (s390_refresh_per_info): Update.
8145
82cb27ff
TT
81462019-03-11 Tom Tromey <tromey@adacore.com>
8147
8148 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8149 redundant assignment to "this_cu".
8150
568c0683
SM
81512019-03-08 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8154
f09ce22d
SM
81552019-03-08 Simon Marchi <simon.marchi@efficios.com>
8156
8157 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8158 from...
8159 (rank_one_type): ... this.
8160
595f96a9
SM
81612019-03-08 Simon Marchi <simon.marchi@efficios.com>
8162
8163 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8164 from...
8165 (rank_one_type): ... this.
8166
2598a94b
SM
81672019-03-08 Simon Marchi <simon.marchi@efficios.com>
8168
8169 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8170 from...
8171 (rank_one_type): ... this.
8172
7f17b20d
SM
81732019-03-08 Simon Marchi <simon.marchi@efficios.com>
8174
8175 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8176 from...
8177 (rank_one_type): ... this.
8178
2c509035
SM
81792019-03-08 Simon Marchi <simon.marchi@efficios.com>
8180
8181 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8182 from...
8183 (rank_one_type): ... this.
8184
0dd322dc
SM
81852019-03-08 Simon Marchi <simon.marchi@efficios.com>
8186
8187 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8188 from...
8189 (rank_one_type): ... this.
8190
41ea4728
SM
81912019-03-08 Simon Marchi <simon.marchi@efficios.com>
8192
8193 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8194 from...
8195 (rank_one_type): ... this.
8196
793cd1d2
SM
81972019-03-08 Simon Marchi <simon.marchi@efficios.com>
8198
8199 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8200 from...
8201 (rank_one_type): ... this.
8202
34910087
SM
82032019-03-08 Simon Marchi <simon.marchi@efficios.com>
8204
8205 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8206 from...
8207 (rank_one_type): ... this.
8208
f1f832d6
SM
82092019-03-08 Simon Marchi <simon.marchi@efficios.com>
8210
8211 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8212 from...
8213 (rank_one_type): ... this.
8214
b9f4512f
SM
82152019-03-08 Simon Marchi <simon.marchi@efficios.com>
8216
8217 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8218 from...
8219 (rank_one_type): ... this.
8220
9293fc63
SM
82212019-03-08 Simon Marchi <simon.marchi@efficios.com>
8222
8223 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8224 from...
8225 (rank_one_type): ... this.
8226
e3abbe7e
PW
82272019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8228
8229 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8230 inferior-events' shows the example events.
8231
e4adb939
EZ
82322019-03-08 Eli Zaretskii <eliz@gnu.org>
8233
8234 Support styling on native MS-Windows console
8235
8236 PR/24315
8237 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8238 on MS-Windows if $TERM is not defined.
8239
8240 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8241
8242 * posix-hdep.c (gdb_console_fputs):
8243 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8244 functions.
8245 * ui-file.h (gdb_console_fputs): Add prototype.
8246
8247 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8248 back to fputs only if the former returns zero.
8249
25629dfd
TT
82502019-03-07 Tom Tromey <tom@tromey.com>
8251
8252 * symmisc.c (print_symbol_bcache_statistics): Update.
8253 (print_objfile_statistics): Update.
8254 * symfile.c (allocate_symtab): Update.
8255 * stabsread.c: Don't include bcache.h.
8256 * psymtab.h (struct psymbol_bcache): Don't declare.
8257 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8258 (psymbol_bcache_init, psymbol_bcache_free)
8259 (psymbol_bcache_get_bcache): Don't declare.
8260 * psymtab.c (struct psymbol_bcache): Remove.
8261 (psymtab_storage::psymtab_storage): Update.
8262 (psymtab_storage::~psymtab_storage): Update.
8263 (psymbol_bcache_init, psymbol_bcache_free)
8264 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8265 (add_psymbol_to_bcache): Update.
8266 (allocate_psymtab): Update.
8267 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8268 macro_cache>: No longer pointers.
8269 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8270 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8271 * macrotab.c (macro_bcache): Update.
8272 * macroexp.c: Don't include bcache.h.
8273 * gdbtypes.c (check_types_worklist): Update.
8274 (types_deeply_equal): Remove TRY/CATCH. Update.
8275 * elfread.c (elf_symtab_read): Update.
8276 * dwarf2read.c: Don't include bcache.h.
8277 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8278 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8279 (print_bcache_statistics, bcache_memory_used): Don't declare.
8280 (struct bcache): Move from bcache.c. Add constructor, destructor,
8281 methods. Rename all data members.
8282 * bcache.c (struct bcache): Move to bcache.h.
8283 (bcache::expand_hash_table): Rename from expand_hash_table.
8284 (bcache): Remove.
8285 (bcache::insert): Rename from bcache_full.
8286 (bcache::compare): Rename from bcache_compare.
8287 (bcache_xmalloc): Remove.
8288 (bcache::~bcache): Rename from bcache_xfree.
8289 (bcache::print_statistics): Rename from print_bcache_statistics.
8290 (bcache::memory_used): Rename from bcache_memory_used.
8291
fe726667
PA
82922019-03-07 Pedro Alves <palves@redhat.com>
8293
8294 * infrun.c (normal_stop): Also check for
8295 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8296
7584bb30
AB
82972019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8298
8299 * f-lang.c (value_from_host_double): Moved to...
8300 * value.c (value_from_host_double): ...here.
8301 * value.h (value_from_host_double): Declare.
8302 * guile/scm-math.c (vlscm_convert_typed_number): Use
8303 value_from_host_double.
8304 (vlscm_convert_number): Likewise.
8305 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8306 * python/py-value.c (convert_value_from_python): Likewise.
8307
a7b1986e
TT
83082019-03-06 Tom Tromey <tom@tromey.com>
8309
8310 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8311
0ccf4211
TT
83122019-03-06 Tom Tromey <tom@tromey.com>
8313
8314 * utils.h (free_current_contents): Don't declare.
8315 * utils.c (free_current_contents): Remove.
8316
fe7b42e5
TT
83172019-03-06 Tom Tromey <tom@tromey.com>
8318
8319 * top.c (quit_force): Update.
8320 * main.c (captured_command_loop): Update.
8321 * common/new-op.c (operator new): Update.
8322 * common/common-exceptions.c (struct catcher)
8323 <save_cleanup_chain>: Remove member.
8324 (exceptions_state_mc_init): Update.
8325 (exception_try_scope_entry): Return nullptr.
8326 (exception_try_scope_exit, exception_rethrow)
8327 (throw_exception_sjlj, throw_exception_cxx): Update.
8328 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8329 (all_cleanups, do_cleanups, discard_cleanups)
8330 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8331 (restore_cleanups, restore_final_cleanups): Don't declare.
8332 (do_final_cleanups): Remove parameter.
8333 * common/cleanups.c (cleanup_chain, make_cleanup)
8334 (make_cleanup_dtor, all_cleanups, do_cleanups)
8335 (discard_my_cleanups, discard_cleanups)
8336 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8337 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8338 (null_cleanup): Remove.
8339 (do_final_cleanups): Remove parameter.
8340
c6321f19
TT
83412019-03-06 Tom Tromey <tom@tromey.com>
8342
8343 * remote.c (remote_target::remote_parse_stop_reply): Use
8344 unique_xmalloc_ptr.
8345
61b30099
TT
83462019-03-06 Tom Tromey <tom@tromey.com>
8347
8348 * stabsread.c (struct stabs_field_info): Rename from field_info.
8349 <list, fnlist>: Add initializers.
8350 <obstack>: New member.
8351 (read_member_functions, read_struct_fields, read_baseclasses):
8352 Allocate on obstack. Don't use cleanups.
8353 (read_one_struct_field, read_member_functions, read_struct_fields)
8354 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8355 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8356 (read_struct_type): Update.
8357
6cceac94
TT
83582019-03-06 Tom Tromey <tom@tromey.com>
8359
8360 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8361 * common/filestuff.h (make_cleanup_close): Don't declare.
8362 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8363 Remove.
8364
72412762
TT
83652019-03-06 Tom Tromey <tom@tromey.com>
8366
8367 * solib-aix.c: Use make_scope_exit.
8368
2b6ff1c0
TT
83692019-03-06 Tom Tromey <tom@tromey.com>
8370
8371 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8372 Use make_scope_exit.
8373
d01c5877
TT
83742019-03-06 Tom Tromey <tom@tromey.com>
8375
8376 * solib-svr4.c (disable_probes_interface): Remove parameter.
8377 (svr4_handle_solib_event): Use make_scope_exit.
8378
32603266
TT
83792019-03-06 Tom Tromey <tom@tromey.com>
8380
8381 * remote.c (struct stop_reply_deleter): Remove.
8382 (stop_reply_up): Update.
8383 (struct stop_reply): Derive from notif_event. Don't typedef.
8384 <regcache>: Now a std::vector.
8385 (stop_reply_xfree): Remove.
8386 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8387 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8388 (remote_target::discard_pending_stop_replies): Use delete.
8389 (remote_target::remote_parse_stop_reply): Update.
8390 (remote_target::process_stop_reply): Update.
8391 * remote-notif.h (struct notif_event): Add virtual destructor.
8392 Remove "dtr" member.
8393 (struct notif_client) <alloc_event>: Return a unique_ptr.
8394 (notif_event_xfree): Don't declare.
8395 (notif_event_up): New typedef.
8396 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8397 (notif_event_xfree, do_notif_event_xfree): Remove.
8398 (remote_notif_state_xfree): Update.
8399
9799571e
TT
84002019-03-06 Tom Tromey <tom@tromey.com>
8401
8402 * infrun.c (displaced_step_clear_cleanup): Now a
8403 forward_scope_exit type.
8404 (displaced_step_prepare_throw): Update.
8405 (displaced_step_fixup): Update.
8406
09e3c4ca
TT
84072019-03-06 Tom Tromey <tom@tromey.com>
8408
8409 * inferior.h (class inferior): Update comment.
8410 * gdbthread.h (class thread_info): Update comment.
8411
e2a03548
TT
84122019-03-06 Joel Brobecker <brobecker@adacore.com>
8413 Tom Tromey <tom@tromey.com>
8414
8415 * stabsread.h (struct stab_section_list): Remove.
8416 (coffstab_build_psymtabs): Update.
8417 * dbxread.c (symbuf_sections): Now a std::vector.
8418 (sect_idx): New global.
8419 (fill_symbuf): Update.
8420 (coffstab_build_psymtabs): Change type of stabsects parameter.
8421 Update.
8422 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8423 std::vector.
8424 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8425 (coff_locate_sections): Update.
8426 (coff_symfile_read): Remove cleanups. Update.
8427 (init_stringtab): Add storage parameter.
8428 (free_stringtab, free_stringtab_cleanup): Remove.
8429 (init_lineno): Add storage parameter.
8430 (free_linetab, free_linetab_cleanup): Remove.
8431
b7e60d85
PA
84322019-03-06 Pedro Alves <palves@redhat.com>
8433
8434 * linux-fork.c (fork_info::clobber_regs): Delete.
8435 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8436 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8437 comment. Adjust.
8438 (scoped_switch_fork_info::scoped_switch_fork_info)
8439 (checkpoint_command, linux_fork_context): Adjust
8440 fork_save_infrun_state calls.
8441
e52c971f
PA
84422019-03-06 Pedro Alves <palves@redhat.com>
8443
8444 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8445 (inf_has_multiple_threads): Return 'bool' and rewrite using
8446 inferior_info::threads().
8447
06974e6c
PA
84482019-03-06 Pedro Alves <palves@redhat.com>
8449
8450 * linux-fork.c: Include <list>.
8451 (fork_list): Now a std::list instance.
8452 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8453 (forks_exist_p, find_last_fork): Adjust.
8454 (new_fork): Delete.
8455 (one_fork_p): New.
8456 (add_fork): Adjust.
8457 (free_fork): Delete, folded into fork_info::~fork_info().
8458 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8459 Adjust.
8460 (init_fork_list): Delete.
8461 (linux_fork_killall, linux_fork_mourn_inferior)
8462 (linux_fork_detach, info_checkpoints_command): Adjust.
8463 (_initialize_linux_fork): No longer call init_fork_list.
8464
72f31aea
PA
84652019-03-06 Pedro Alves <palves@redhat.com>
8466
8467 * linux-fork.c (new_fork): New, split out of ...
8468 (add_fork): ... this. Return void. Move "first fork" special
8469 case from here, to ...
8470 (checkpoint_command): ... here.
8471 * linux-linux.h (add_fork): Return void.
8472
efbecbc1
AB
84732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8474
8475 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8476
0841c79a
AB
84772019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8478 Chris January <chris.january@arm.com>
8479 David Lecomber <david.lecomber@arm.com>
8480
8481 * f-exp.y: New token, UNOP_INTRINSIC.
8482 (exp): New pattern using UNOP_INTRINSIC token.
8483 (f77_keywords): Add 'abs' keyword.
8484 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8485 (value_from_host_double): New function.
8486 (evaluate_subexp_f): Support UNOP_ABS.
8487
4a270568
AB
84882019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8489
8490 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8491 types.
8492
067630bd
AB
84932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8494
8495 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8496 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8497 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8498
3be47f7a
AB
84992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8500
8501 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8502
4d00f5d8
AB
85032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8504 Chris January <chris.january@arm.com>
8505
8506 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8507 * f-exp.y: Define 'KIND' token.
8508 (exp): New pattern for KIND expressions.
8509 (ptype): Handle types with a kind extension.
8510 (direct_abs_decl): Extend to spot kind extensions.
8511 (f77_keywords): Add 'kind' to the list.
8512 (push_kind_type): New function.
8513 (convert_to_kind_type): New function.
8514 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8515 * parse.c (operator_length_standard): Likewise.
8516 * parser-defs.h (enum type_pieces): Add tp_kind.
8517 * std-operator.def: Add UNOP_KIND.
8518
e454224f
AB
85192019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8520
8521 * f-exp.y (f_parse): Set yydebug.
8522
9dad4a58
AB
85232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8524
8525 * f-lang.c (evaluate_subexp_f): New function.
8526 (exp_descriptor_f): New global.
8527 (f_language_defn): Use exp_descriptor_f instead of
8528 exp_descriptor_standard.
8529
c8f91604
AB
85302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8531
8532 * f-exp.y (struct token): Add comments.
8533 (dot_ops): Remove uppercase versions and the end marker.
8534 (f77_keywords): Likewise.
8535 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8536 entries in the dot_ops array are case insensitive, and use
8537 strncasecmp to compare strings. Also some whitespace cleanup in
8538 this area. Similar for the f77_keywords array, except entries in
8539 this list might be case sensitive.
8540
dd9f2c76
AB
85412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8542
8543 * f-exp.y (struct f77_boolean_val): Add comments.
8544 (boolean_values): Remove uppercase versions, and end marker.
8545 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8546 and use strncasecmp to achieve case insensitivity. Additionally,
8547 perform whitespace cleanup around this code.
8548
67a3048c
TT
85492019-03-06 Tom Tromey <tromey@adacore.com>
8550
8551 * remote-sim.c (gdbsim_target_open): Use result of
8552 gdb_argv::release.
8553
aa3cfbda
RB
85542019-03-06 Richard Bunt <richard.bunt@arm.com>
8555 Dirk Schubert <dirk.schubert@arm.com>
8556 Chris January <chris.january@arm.com>
8557
8558 * eval.c (evaluate_subexp_standard): Call Fortran argument
8559 wrapping logic.
8560 * f-lang.c (struct value): A value which can be passed into a
8561 Fortran function call.
8562 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8563 where appropriate.
8564 (struct type): Value ready for a Fortran function call.
8565 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8566 is needed.
8567 * f-lang.h (fortran_argument_convert): Declaration.
8568 (fortran_preserve_arg_pointer): Declaration.
8569 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8570
ea38e5df
TT
85712019-03-05 Tom Tromey <tromey@adacore.com>
8572
8573 * python/py-prettyprint.c (print_string_repr): Remove #if.
8574 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8575
06b5b831
TT
85762019-03-05 Tom Tromey <tromey@adacore.com>
8577
8578 * target.c (the_dummy_target): Move later. Change type to
8579 "dummy_target".
8580 (initialize_targets): Don't initialize the_dummy_target.
8581
edbd9e45
TT
85822019-03-05 Tom Tromey <tromey@adacore.com>
8583
8584 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8585 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8586
c119e040
TT
85872019-03-05 Tom Tromey <tromey@adacore.com>
8588
8589 * windows-nat.c (windows_nat_target::attach)
8590 (windows_nat_target::detach): Don't call gdb_flush.
8591 * valprint.c (generic_val_print, val_print, val_print_string):
8592 Don't call gdb_flush.
8593 * utils.c (defaulted_query): Don't call gdb_flush.
8594 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8595 * target.c (target_announce_detach): Don't call gdb_flush.
8596 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8597 * remote.c (extended_remote_target::attach): Don't call
8598 gdb_flush.
8599 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8600 * printcmd.c (do_examine): Don't call gdb_flush.
8601 (info_display_command): Don't call gdb_flush.
8602 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8603 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8604 * memattr.c (info_mem_command): Don't call gdb_flush.
8605 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8606 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8607 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8608 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8609 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8610 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8611 (gnu_nat_target::detach): Don't call gdb_flush.
8612 * f-valprint.c (f_val_print): Don't call gdb_flush.
8613 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8614 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8615 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8616 gdb_flush.
8617 * c-valprint.c (c_val_print): Don't call gdb_flush.
8618 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8619
895dafa6
TT
86202019-03-05 Tom Tromey <tromey@adacore.com>
8621
8622 * varobj.c (update_dynamic_varobj_children): Update.
8623 (install_default_visualizer): Use reset, not release.
8624 * value.c (set_internalvar): Update.
8625 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8626 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8627 ATTRIBUTE_UNUSED_RESULT.
8628
88a774b9
TT
86292019-03-05 Tom Tromey <tromey@adacore.com>
8630
8631 * remote.c (class scoped_remote_fd) <release>: Add
8632 ATTRIBUTE_UNUSED_RESULT.
8633
4e4a8b93
TT
86342019-03-05 Tom Tromey <tromey@adacore.com>
8635
8636 * macroexp.c (struct macro_buffer) <release>: Add
8637 ATTRIBUTE_UNUSED_RESULT.
8638
083eef1f
TT
86392019-03-05 Tom Tromey <tromey@adacore.com>
8640
8641 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8642 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8643 ATTRIBUTE_UNUSED_RESULT.
8644
3cabd438
TT
86452019-03-05 Tom Tromey <tromey@adacore.com>
8646
8647 * common/scoped_fd.h (class scoped_fd) <release>: Add
8648 ATTRIBUTE_UNUSED_RESULT.
8649
41e3300a
TT
86502019-03-05 Tom Tromey <tromey@adacore.com>
8651
8652 * parser-defs.h (struct parser_state) <release>: Add
8653 ATTRIBUTE_UNUSED_RESULT.
8654
18cb7c9f
TT
86552019-03-05 Tom Tromey <tromey@adacore.com>
8656
8657 * utils.h (class gdb_argv) <release>: Add
8658 ATTRIBUTE_UNUSED_RESULT.
8659 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8660
41fa577f
EZ
86612019-03-02 Eli Zaretskii <eliz@gnu.org>
8662
a6a4b2c6
EZ
8663 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8664 for-loop range, to avoid compiler warnings.
8665
8666 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8667 avoid compiler warnings about unused variables.
8668
742a7df5
EZ
8669 * NEWS: Mention end of support for native debugging on MS-Windows
8670 before XP.
8671
41fa577f
EZ
8672 PR gdb/24292
8673 * common/netstuff.c:
8674 * gdbserver/gdbreplay.c
8675 * gdbserver/remote-utils.c:
8676 * ser-tcp.c:
8677 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8678 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8679 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8680 'getaddrinfo' and 'freeaddrinfo' were not available before
8681 Windows XP, and mingw.org's MinGW headers by default define
8682 _WIN32_WINNT to 0x500.
8683
827f438f
GB
86842019-03-01 Gary Benson <gbenson@redhat.com>
8685
8686 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8687
92137da0
RO
86882019-02-28 Brian Vandenberg <phantall@gmail.com>
8689 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8690
8691 PR gdb/8527
8692 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8693 set_sigint_trap, clear_sigint_trap.
8694
799efbe8
PW
86952019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8696
8697 * target.c (target_detach): Clear the regcache and the
8698 frame cache.
8699
8ed25214
PA
87002019-02-27 Pedro Alves <palves@redhat.com>
8701
8702 * utils.c (set_screen_size): When we cap the height/width sizes,
8703 tweak the corresponding command variable to show "unlimited":
8704
23031e31
SJ
87052019-02-27 Saagar Jha <saagar@saagarjha.com>
8706 Pedro Alves <palves@redhat.com>
8707
8708 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8709 before calling rl_set_screen_size.
8710
6c28e44a
TT
87112019-02-27 Tom Tromey <tromey@adacore.com>
8712
8713 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8714 define.
8715 * python/py-value.c: Remove Python 2.4 workaround.
8716 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8717 workaround.
8718 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8719 Python 2.4 workaround.
8720 * python/python-internal.h: Remove Python 2.4 comment.
8721 (Py_ssize_t): Don't define.
8722 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8723 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8724 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8725 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8726 * python/python.c (do_start_initialization): Remove Python 2.4
8727 workaround.
8728 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8729 (print_children): Remove Python 2.4 workaround.
8730 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8731 workaround.
8732 (CHARBUFFERPROC_NAME): Remove.
8733 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8734 Python 2.4 workaround.
8735
2c3fc25d 87362019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8737
2c3fc25d
KB
8738 * NEWS: Note minimum Python version.
8739
6ca62222
KB
87402019-02-27 Kevin Buettner <kevinb@redhat.com>
8741
8742 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8743 code from these functions. Remove corresponding ifdefs. Use
8744 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8745 Remove gotos and target of gotos.
8746 (infpy_search_memory): Likewise.
8747
f4bc7d2c
AB
87482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8749
8750 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8751 (hppa_gdbarch_init): Don't register deleted functions with
8752 gdbarch.
8753
9734a586
AB
87542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8755
8756 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8757 (h8300_unwind_sp): Delete.
8758 (h8300_dummy_id): Delete.
8759 (h8300_gdbarch_init): Don't register deleted functions with
8760 gdbarch.
8761
68b867f3
AB
87622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8763
8764 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8765 (ft32_unwind_pc): Delete.
8766 (ft32_unwind_sp): Delete.
8767 (ft32_gdbarch_init): Don't register deleted functions with
8768 gdbarch.
8769
2fbe7ad0
AB
87702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8771
8772 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8773 (frv_unwind_pc): Delete.
8774 (frv_unwind_sp): Delete.
8775 (frv_gdbarch_init): Don't register deleted functions with
8776 gdbarch.
8777
76055cbe
AB
87782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8779
8780 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8781 (riscv_unwind_pc): Delete.
8782 (riscv_unwind_sp): Delete.
8783 (riscv_gdbarch_init): Don't register deleted functions with
8784 gdbarch.
8785
4133e5a1
AB
87862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8787
8788 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8789 (csky_unwind_pc): Delete.
8790 (csky_unwind_sp): Delete.
8791 (csky_gdbarch_init): Don't register deleted functions with
8792 gdbarch.
8793
8010f576
AB
87942019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8795
8796 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8797 (cris_unwind_pc): Delete.
8798 (cris_unwind_sp): Delete.
8799 (cris_gdbarch_init): Don't register deleted functions with
8800 gdbarch.
8801
b56bf084
AB
88022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8803
8804 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8805 (bfin_unwind_pc): Delete.
8806 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8807
a19a650f
AB
88082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8811 (arm_unwind_pc): Delete.
8812 (arm_unwind_sp): Delete.
8813 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8814
f8278c3c
AB
88152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8816
8817 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8818 (arc_unwind_pc): Delete.
8819 (arc_unwind_sp): Delete.
8820 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8821
480e46cf
AB
88222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8823
8824 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8825 (alpha_unwind_pc): Delete.
8826 (alpha_gdbarch_init): Don't register deleted functions with
8827 gdbarch.
8828
7a995095
AB
88292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8830
8831 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8832 (aarch64_unwind_pc): Delete.
8833 (aarch64_unwind_sp): Delete.
8834 (aarch64_gdbarch_init): Don't register deleted functions with
8835 gdbarch.
8836
bf9a735e
AB
88372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8838
8839 * gdbtypes.c (type_align): Don't consider static members when
8840 computing structure alignment.
8841
5561fc30
AB
88422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8843
8844 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8845 return 0 for other types.
8846 * arch-utils.c (default_type_align): Always return 0.
8847 * gdbarch.h: Regenerate.
8848 * gdbarch.sh (type_align): Extend comment.
8849 * gdbtypes.c (type_align): Add additional comments, always call
8850 gdbarch_type_align before applying the default rules.
8851 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8852 generic code will then apply a suitable default.
8853 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8854 types, return 0 for other types.
8855
9335e75a
JB
88562019-02-27 Joel Brobecker <brobecker@adacore.com>
8857
8858 * NEWS: Create a new section for the next release branch.
8859 Rename the section of the current branch, now that it has
8860 been cut.
8861
3d34d8de
JB
88622019-02-27 Joel Brobecker <brobecker@adacore.com>
8863
8864 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8865 * version.in: Bump version to 8.3.50.DATE-git.
8866
143420fb
SM
88672019-02-26 Simon Marchi <simon.marchi@efficios.com>
8868
8869 * aix-thread.c (ptid_cmp): Remove unused variable.
8870 (get_signaled_thread): Likewise.
8871 (store_regs_user_thread): Likewise.
8872 (store_regs_kernel_thread): Likewise.
8873 (fetch_regs_kernel_thread): Remove shadowed variable.
8874
172fb711
AB
88752019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8876
8877 * features/riscv/32bit-cpu.xml: Add register numbers.
8878 * features/riscv/32bit-fpu.c: Regenerate.
8879 * features/riscv/32bit-fpu.xml: Add register numbers.
8880 * features/riscv/64bit-cpu.xml: Add register numbers.
8881 * features/riscv/64bit-fpu.c: Regenerate.
8882 * features/riscv/64bit-fpu.xml: Add register numbers.
8883
26c89782
KB
88842019-02-26 Kevin Buettner <kevinb@redhat.com>
8885
af54ade9 8886 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
8887 * python/py-value.c (convert_buffer_and_type_to_value): New
8888 function.
8889 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8890 Add support for handling an optional second argument. Call
8891 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
8892 * python/python-internal.h (Py_buffer_deleter): New struct.
8893 (Py_buffer_up): New typedef.
8894
0f58c9e8
JB
88952019-02-25 John Baldwin <jhb@FreeBSD.org>
8896
8897 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8898 instead of releasing ownership.
8899
0a0f4c01
JR
89002019-02-25 Jordan Rupprecht <rupprecht@google.com>
8901
8902 * dwarf2read.c (open_and_init_dwp_file): Call
8903 elf_numsections instead of bfd_count_sections to initialize
8904 dwp_file->num_sections.
8905
cd5a152c
TT
89062019-02-25 Tom Tromey <tromey@adacore.com>
8907
8908 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8909
8a6a8513
SDJ
89102019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8911
8912 * gcore.in: Add '--readnever' option when invoking GDB.
8913
04dcda9c
SM
89142019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8915
8916 * MAINTAINERS: Update my email address.
8917
07bc701d
SM
89182019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8919
8920 * build-id.c (build_id_to_debug_bfd_1): New function.
8921 (build_id_to_debug_bfd): Look for separate debug file in
8922 sysroot.
8923
c6f4a5d0
AB
89242019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8925
8926 * gdbarch.sh: Update the copyright year range that is placed into
8927 generated files.
8928
9600246d
KS
89292019-02-22 Keith Seitz <keiths@redhat.com>
8930
8931 PR symtab/23853
8932 * linespec.c (create_sals_line_offset): Search for the default
8933 symtab's filename instead of its fullname.
8934
7557a514
AH
89352019-02-21 Alan Hayward <alan.hayward@arm.com>
8936
8937 * NEWS: Update style defaults.
8938
ee2bcb0c
AH
89392019-02-21 Alan Hayward <alan.hayward@arm.com>
8940
8941 * main.c (captured_main_1): Disable styling in batch mode.
8942
0c95f9ed
TT
89432019-02-20 Tom Tromey <tom@tromey.com>
8944
8945 * symtab.c (symtab_symbol_info): Fix typos.
8946
c763b894
TT
89472019-02-20 Tom Tromey <tromey@adacore.com>
8948
8949 * findcmd.c (_initialize_mem_search): Use upper case for
8950 metasyntactic variables.
8951
0ef8a082
AH
89522019-02-20 Alan Hayward <alan.hayward@arm.com>
8953
8954 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8955 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8956
6caa91b6
SM
89572019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8958
8959 * top.h (source_file_name): Change to std::string.
8960 * top.c (source_file_name): Likewise.
8961 (command_line_input): Adjust.
8962 * cli/cli-script.c (script_from_file): Adjust.
8963
98814c6c
TT
89642019-02-19 Tom Tromey <tromey@adacore.com>
8965
8966 * ravenscar-thread.c
8967 (ravenscar_thread_target::update_thread_list): Don't call
8968 ada_build_task_list.
8969 * ada-lang.h (ada_build_task_list): Don't declare.
8970 * ada-tasks.c (struct ada_tasks_inferior_data)
8971 <task_list_valid_p>: Now bool.
8972 (read_known_tasks, ada_task_list_changed)
8973 (ada_tasks_invalidate_inferior_data): Update.
8974 (read_known_tasks_array): Return bool.
8975 (read_known_tasks_list): Likewise.
8976 (read_known_tasks): Return void.
8977 (ada_build_task_list): Now static.
8978
70cd633e
AB
89792019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8980
8981 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8982 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8983
040b3e95
PW
89842019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8985
8986 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8987 variant for ada_tasks_pspace_data_handle and
8988 ada_tasks_inferior_data_handle.
8989 (ada_tasks_pspace_data_cleanup): New function.
8990 (ada_tasks_inferior_data_cleanup): New function.
8991
9409233b
TT
89922019-02-17 Tom Tromey <tom@tromey.com>
8993
8994 * macrotab.h (macro_source_fullname): Return a std::string.
8995 * macrotab.c (macro_include, check_for_redefinition)
8996 (macro_undef, macro_lookup_definition, foreach_macro)
8997 (foreach_macro_in_scope): Update.
8998 (macro_source_fullname): Return a std::string.
8999 * macrocmd.c (show_pp_source_pos): Update.
9000
6506371f
TT
90012019-02-17 Tom Tromey <tom@tromey.com>
9002
9003 * macrocmd.c (show_pp_source_pos): Style the file names.
9004
0c820d67
TT
90052019-02-17 Tom Tromey <tom@tromey.com>
9006
9007 PR tui/24197:
9008 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9009
a0087920
TT
90102019-02-17 Tom Tromey <tom@tromey.com>
9011
9012 * ada-lang.c (user_select_syms): Use filtered printing.
9013 * utils.c (wrap_style): New global.
9014 (desired_style): Remove.
9015 (emit_style_escape): Add stream parameter.
9016 (set_output_style, reset_terminal_style, prompt_for_continue):
9017 Update.
9018 (flush_wrap_buffer): Only flush gdb_stdout.
9019 (wrap_here): Set wrap_style.
9020 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9021 treat escape sequences as a character. Change when wrap buffer is
9022 flushed.
9023 (fputs_styled): Do not set the output style when the default is
9024 requested.
9025 * ui-style.h (struct ui_file_style) <is_default>: New method.
9026 * source.c (print_source_lines_base): Emit escape sequences in one
9027 piece.
9028
75ba10dc
JB
90292019-02-17 Joel Brobecker <brobecker@adacore.com>
9030
9031 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9032 integers and enumeration types.
9033
a2cd4f14
JB
90342019-02-17 Joel Brobecker <brobecker@adacore.com>
9035
9036 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9037 instead of lookup_symbol_in_language
9038 (do_exact_match): New function.
9039 (ada_get_symbol_name_matcher): Return do_exact_match when
9040 doing a verbatim match.
9041
485b851b
TT
90422019-02-15 Tom Tromey <tromey@adacore.com>
9043
9044 * ravenscar-thread.c (ravenscar_thread_target::resume)
9045 (ravenscar_thread_target::wait): Special case wildcard requests.
9046
0b790b1e
TT
90472019-02-15 Tom Tromey <tromey@adacore.com>
9048
9049 * ravenscar-thread.c (base_ptid): Remove.
9050 (struct ravenscar_thread_target) <close>: New method.
9051 <m_base_ptid>: New member.
9052 <update_inferior_ptid, active_task, task_is_currently_active,
9053 runtime_initialized>: Declare methods.
9054 <ravenscar_thread_target>: Add constructor.
9055 (ravenscar_thread_target::task_is_currently_active)
9056 (ravenscar_thread_target::update_inferior_ptid)
9057 (ravenscar_runtime_initialized): Rename. Now methods.
9058 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9059 (ravenscar_thread_target::update_thread_list): Update.
9060 (ravenscar_thread_target::active_task): Now method.
9061 (ravenscar_thread_target::store_registers)
9062 (ravenscar_thread_target::prepare_to_store)
9063 (ravenscar_thread_target::prepare_to_store)
9064 (ravenscar_thread_target::mourn_inferior): Update.
9065 (ravenscar_inferior_created): Use "new" to create target.
9066 (ravenscar_thread_target::get_ada_task_ptid): Update.
9067 (_initialize_ravenscar): Don't initialize base_ptid.
9068 (ravenscar_ops): Remove global.
9069
dea57a62
TT
90702019-02-15 Tom Tromey <tromey@adacore.com>
9071
9072 * target.h (push_target): Declare new overload.
9073 * target.c (push_target): New overload, taking an rvalue reference.
9074 * remote.c (remote_target::open_1): Use push_target overload.
9075 * corelow.c (core_target_open): Use push_target overload.
9076
989f3c58
TT
90772019-02-15 Tom Tromey <tromey@adacore.com>
9078
9079 * ravenscar-thread.c (is_ravenscar_task)
9080 (ravenscar_task_is_currently_active): Return bool.
9081 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9082 (_initialize_ravenscar): Remove "(void)".
9083 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9084 Return bool.
9085
6cbcc006
TT
90862019-02-15 Tom Tromey <tromey@adacore.com>
9087
9088 * ravenscar-thread.c (ravenscar_runtime_initializer)
9089 (has_ravenscar_runtime, get_running_thread_id)
9090 (ravenscar_thread_target::resume): Fix indentation.
9091
7657f14d
TT
90922019-02-15 Tom Tromey <tromey@adacore.com>
9093
9094 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9095 from ravenscar_arch_ops.
9096 (sparc_ravenscar_ops::fetch_registers)
9097 (sparc_ravenscar_ops::store_registers): Now methods.
9098 (sparc_ravenscar_prepare_to_store): Remove.
9099 (sparc_ravenscar_ops): Redefine.
9100 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9101 methods and destructor. Remove members.
9102 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9103 (ravenscar_thread_target::store_registers)
9104 (ravenscar_thread_target::prepare_to_store): Update.
9105 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9106 Remove.
9107 (struct ppc_ravenscar_powerpc_ops): Derive from
9108 ravenscar_arch_ops.
9109 (ppc_ravenscar_powerpc_ops::fetch_registers)
9110 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9111 (ppc_ravenscar_powerpc_ops): Redefine.
9112 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9113 (ppc_ravenscar_e500_ops::fetch_registers)
9114 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9115 (ppc_ravenscar_e500_ops): Redefine.
9116 * aarch64-ravenscar-thread.c
9117 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9118 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9119 (aarch64_ravenscar_fetch_registers)
9120 (aarch64_ravenscar_store_registers): Now methods.
9121 (aarch64_ravenscar_ops): Redefine.
9122
5b6ea500
TT
91232019-02-15 Tom Tromey <tromey@adacore.com>
9124
9125 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9126 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9127 (ravenscar_thread_target::stopped_by_watchpoint)
9128 (ravenscar_thread_target::stopped_data_address)
9129 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9130
e397fd39
TT
91312019-02-15 Tom Tromey <tromey@adacore.com>
9132
9133 * ravenscar-thread.c: Fix some typos.
9134
cc12f4a8
TT
91352019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9136 Tom Tromey <tromey@adacore.com>
9137
9138 * ada-lang.c (ada_exception_sal): Change addr_string to a
9139 std::string.
9140 (create_ada_exception_catchpoint): Update.
9141
5f486660
TT
91422019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9143 Tom Tromey <tromey@adacore.com>
9144
9145 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9146 (bp_location_ops): Remove.
9147 (base_breakpoint_allocate_location): Update.
9148 (free_bp_location): Update.
9149 * ada-lang.c (class ada_catchpoint_location)
9150 <ada_catchpoint_location>: Remove ops parameter.
9151 (ada_catchpoint_location_dtor): Remove.
9152 (ada_catchpoint_location_ops): Remove.
9153 (allocate_location_exception): Update.
9154 * breakpoint.h (struct bp_location_ops): Remove.
9155 (class bp_location) <bp_location>: Remove bp_location_ops
9156 parameter.
9157 <~bp_location>: Add destructor.
9158 <ops>: Remove.
9159
b671c7fb
TS
91602019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9161 Pedro Alves <palves@redhat.com>
9162
9163 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9164 'PATH_MAX'.
9165
8071c5ce
DM
91662019-02-14 David Michael <fedora.dm0@gmail.com>
9167 Samuel Thibault <samuel.thibault@gnu.org>
9168 Thomas Schwinge <thomas@codesourcery.com>
9169
9170 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9171 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9172
b1041ae0
TS
91732019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9174
924514e1
TS
9175 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9176 (check_empty): Use "const char *".
9177
c29ee8d4
TS
9178 * gnu-nat.c (gnu_nat_target::detach): Instead of
9179 'detach_inferior (pid)' call
9180 'detach_inferior (find_inferior_pid (pid))'.
9181
6c6ef69f
TS
9182 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9183 'nat/fork-inferior.o'.
9184 * gnu-nat.c: #include "nat/fork-inferior.h".
9185
2d0a338c
TS
9186 * gnu-nat.c (gnu_nat_target::detach): Instead of
9187 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9188 * gnu-nat.h: #include "inf-child.h".
9189 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9190 'i386_gnu_nat_target::fetch_registers'.
9191 (gnu_store_registers): Rename/move to
9192 'i386_gnu_nat_target::store_registers'.
9193
cabb5f06
TS
9194 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9195 * gnu-nat.h (mach_thread_info): New function.
9196 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9197
b1041ae0
TS
9198 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9199
2988d01e
KF
92002019-02-14 Frederic Konrad <konrad@adacore.com>
9201
9202 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9203
c559d709
JB
92042019-02-14 Joel Brobecker <brobecker@adacore.com>
9205
9206 * windows-nat.c (windows_add_thread): Add new parameter
9207 "main_thread_p" with default value set to false. Update
9208 function documentation as well as all callers.
9209 (windows_delete_thread): Likewise.
9210 (fake_create_process): Update call to windows_add_thread.
9211 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9212 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9213 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9214 call to windows_delete_thread.
9215
007024cc
SM
92162019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9217
9218 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9219
f62318e9
JB
92202019-02-12 John Baldwin <jhb@FreeBSD.org>
9221
9222 * symfile.c (find_separate_debug_file): Use canonical path of
9223 sysroot with child_path instead of gdb_sysroot if it is valid.
9224
cd4b7848
JB
92252019-02-12 John Baldwin <jhb@FreeBSD.org>
9226
9227 * symfile.c (find_separate_debug_file): Use child_path to
9228 determine if an object file is under a sysroot.
9229
efac4bfe
JB
92302019-02-12 John Baldwin <jhb@FreeBSD.org>
9231
9232 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9233 unittests/child-path-selftests.c.
9234 * common/pathstuff.c (child_path): New function.
9235 * common/pathstuff.h (child_path): New prototype.
9236 * unittests/child-path-selftests.c: New file.
9237
402d2bfe
JB
92382019-02-12 John Baldwin <jhb@FreeBSD.org>
9239
9240 * symfile.c (find_separate_debug_file): Look for separate debug
9241 files in debug directories under the sysroot.
9242
1ed9f74e
PW
92432019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9244
9245 * symtab.h (struct minimal_symbol data_p): New const method.
9246 (struct minimal_symbol text_p): Likewise.
9247 * symtab.c (output_source_filename): Use file name style
9248 to print file name.
9249 (print_symbol_info): Likewise.
9250 (print_msymbol_info): Use address style to print addresses.
9251 Use function name style to print executable text symbols.
9252 (expand_symtab_containing_pc): Use data_p.
9253 (find_pc_sect_compunit_symtab): Likewise.
9254
2636d81d
PW
92552019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9256
9257 * breakpoint.c (describe_other_breakpoints): Use address style
9258 to print addresses.
9259 (say_where): Likewise.
9260
ac8c53cc
PW
92612019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9262
9263 * ada-typeprint.c (print_func_type): Print function name
9264 style to print function name.
9265 * c-typeprint.c (c_print_type_1): Likewise.
9266
ea638c43
AH
92672019-02-11 Alan Hayward <alan.hayward@arm.com>
9268
9269 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9270 for execve.
9271
ab759ca8
PW
92722019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9273
9274 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9275 type_stack.
9276
aff29d1c
JB
92772019-02-10 Joel Brobecker <brobecker@adacore.com>
9278
9279 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9280 TYPE_CODE_REF types.
9281
617126bc
JW
92822019-02-08 Jim Wilson <jimw@sifive.com>
9283
9284 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9285 (riscv_linux_fregset): New.
9286 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9287
46e3ed7f
TT
92882019-02-07 Tom Tromey <tom@tromey.com>
9289
9290 * thread.c (thread_cancel_execution_command): Update.
9291 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9292 methods.
9293 (struct thread_fsm_ops): Remove.
9294 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9295 (thread_fsm_should_stop, thread_fsm_return_value)
9296 (thread_fsm_set_finished, thread_fsm_finished_p)
9297 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9298 Don't declare.
9299 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9300 * infrun.c (clear_proceed_status_thread)
9301 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9302 (print_stop_event): Update.
9303 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9304 Add constructor.
9305 (step_command_fsm_ops): Remove.
9306 (new_step_command_fsm): Remove.
9307 (step_1): Update.
9308 (step_command_fsm::should_stop): Rename from
9309 step_command_fsm_should_stop.
9310 (step_command_fsm::clean_up): Rename from
9311 step_command_fsm_clean_up.
9312 (step_command_fsm::do_async_reply_reason): Rename from
9313 step_command_fsm_async_reply_reason.
9314 (struct until_next_fsm): Inherit from thread_fsm. Add
9315 constructor.
9316 (until_next_fsm_ops): Remove.
9317 (new_until_next_fsm): Remove.
9318 (until_next_fsm::should_stop): Rename from
9319 until_next_fsm_should_stop.
9320 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9321 (until_next_fsm::do_async_reply_reason): Rename from
9322 until_next_fsm_async_reply_reason.
9323 (struct finish_command_fsm): Inherit from thread_fsm. Add
9324 constructor. Change type of breakpoint.
9325 (finish_command_fsm_ops): Remove.
9326 (new_finish_command_fsm): Remove.
9327 (finish_command_fsm::should_stop): Rename from
9328 finish_command_fsm_should_stop.
9329 (finish_command_fsm::clean_up): Rename from
9330 finish_command_fsm_clean_up.
9331 (finish_command_fsm::return_value): Rename from
9332 finish_command_fsm_return_value.
9333 (finish_command_fsm::do_async_reply_reason): Rename from
9334 finish_command_fsm_async_reply_reason.
9335 (finish_command): Update.
9336 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9337 Add constructor.
9338 (call_thread_fsm_ops): Remove.
9339 (call_thread_fsm::call_thread_fsm): Rename from
9340 new_call_thread_fsm.
9341 (call_thread_fsm::should_stop): Rename from
9342 call_thread_fsm_should_stop.
9343 (call_thread_fsm::should_notify_stop): Rename from
9344 call_thread_fsm_should_notify_stop.
9345 (run_inferior_call, call_function_by_hand_dummy): Update.
9346 * cli/cli-interp.c (should_print_stop_to_console): Update.
9347 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9348 Add constructor. Change type of location_breakpoint,
9349 caller_breakpoint.
9350 (until_break_fsm_ops): Remove.
9351 (new_until_break_fsm): Remove.
9352 (until_break_fsm::should_stop): Rename from
9353 until_break_fsm_should_stop.
9354 (until_break_fsm::clean_up): Rename from
9355 until_break_fsm_clean_up.
9356 (until_break_fsm::do_async_reply_reason): Rename from
9357 until_break_fsm_async_reply_reason.
9358 (until_break_command): Update.
9359 * thread-fsm.c: Remove.
9360 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9361
1a5c2598
TT
93622019-02-07 Tom Tromey <tom@tromey.com>
9363
9364 * yy-remap.h: Add include guard.
9365 * xtensa-tdep.h: Add include guard.
9366 * xcoffread.h: Rename include guard.
9367 * varobj-iter.h: Add include guard.
9368 * tui/tui.h: Rename include guard.
9369 * tui/tui-winsource.h: Rename include guard.
9370 * tui/tui-wingeneral.h: Rename include guard.
9371 * tui/tui-windata.h: Rename include guard.
9372 * tui/tui-win.h: Rename include guard.
9373 * tui/tui-stack.h: Rename include guard.
9374 * tui/tui-source.h: Rename include guard.
9375 * tui/tui-regs.h: Rename include guard.
9376 * tui/tui-out.h: Rename include guard.
9377 * tui/tui-layout.h: Rename include guard.
9378 * tui/tui-io.h: Rename include guard.
9379 * tui/tui-hooks.h: Rename include guard.
9380 * tui/tui-file.h: Rename include guard.
9381 * tui/tui-disasm.h: Rename include guard.
9382 * tui/tui-data.h: Rename include guard.
9383 * tui/tui-command.h: Rename include guard.
9384 * tic6x-tdep.h: Add include guard.
9385 * target/waitstatus.h: Rename include guard.
9386 * target/wait.h: Rename include guard.
9387 * target/target.h: Rename include guard.
9388 * target/resume.h: Rename include guard.
9389 * target-float.h: Rename include guard.
9390 * stabsread.h: Add include guard.
9391 * rs6000-tdep.h: Add include guard.
9392 * riscv-fbsd-tdep.h: Add include guard.
9393 * regformats/regdef.h: Rename include guard.
9394 * record.h: Rename include guard.
9395 * python/python.h: Rename include guard.
9396 * python/python-internal.h: Rename include guard.
9397 * python/py-stopevent.h: Rename include guard.
9398 * python/py-ref.h: Rename include guard.
9399 * python/py-record.h: Rename include guard.
9400 * python/py-record-full.h: Rename include guard.
9401 * python/py-record-btrace.h: Rename include guard.
9402 * python/py-instruction.h: Rename include guard.
9403 * python/py-events.h: Rename include guard.
9404 * python/py-event.h: Rename include guard.
9405 * procfs.h: Add include guard.
9406 * proc-utils.h: Add include guard.
9407 * p-lang.h: Add include guard.
9408 * or1k-tdep.h: Rename include guard.
9409 * observable.h: Rename include guard.
9410 * nto-tdep.h: Rename include guard.
9411 * nat/x86-linux.h: Rename include guard.
9412 * nat/x86-linux-dregs.h: Rename include guard.
9413 * nat/x86-gcc-cpuid.h: Add include guard.
9414 * nat/x86-dregs.h: Rename include guard.
9415 * nat/x86-cpuid.h: Rename include guard.
9416 * nat/ppc-linux.h: Rename include guard.
9417 * nat/mips-linux-watch.h: Rename include guard.
9418 * nat/linux-waitpid.h: Rename include guard.
9419 * nat/linux-ptrace.h: Rename include guard.
9420 * nat/linux-procfs.h: Rename include guard.
9421 * nat/linux-osdata.h: Rename include guard.
9422 * nat/linux-nat.h: Rename include guard.
9423 * nat/linux-namespaces.h: Rename include guard.
9424 * nat/linux-btrace.h: Rename include guard.
9425 * nat/glibc_thread_db.h: Rename include guard.
9426 * nat/gdb_thread_db.h: Rename include guard.
9427 * nat/gdb_ptrace.h: Rename include guard.
9428 * nat/fork-inferior.h: Rename include guard.
9429 * nat/amd64-linux-siginfo.h: Rename include guard.
9430 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9431 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9432 * nat/aarch64-linux.h: Rename include guard.
9433 * nat/aarch64-linux-hw-point.h: Rename include guard.
9434 * mn10300-tdep.h: Add include guard.
9435 * mips-linux-tdep.h: Add include guard.
9436 * mi/mi-parse.h: Rename include guard.
9437 * mi/mi-out.h: Rename include guard.
9438 * mi/mi-main.h: Rename include guard.
9439 * mi/mi-interp.h: Rename include guard.
9440 * mi/mi-getopt.h: Rename include guard.
9441 * mi/mi-console.h: Rename include guard.
9442 * mi/mi-common.h: Rename include guard.
9443 * mi/mi-cmds.h: Rename include guard.
9444 * mi/mi-cmd-break.h: Rename include guard.
9445 * m2-lang.h: Add include guard.
9446 * location.h: Rename include guard.
9447 * linux-record.h: Rename include guard.
9448 * linux-nat.h: Add include guard.
9449 * linux-fork.h: Add include guard.
9450 * i386-darwin-tdep.h: Rename include guard.
9451 * hppa-linux-offsets.h: Add include guard.
9452 * guile/guile.h: Rename include guard.
9453 * guile/guile-internal.h: Rename include guard.
9454 * gnu-nat.h: Rename include guard.
9455 * gdb-stabs.h: Rename include guard.
9456 * frv-tdep.h: Add include guard.
9457 * f-lang.h: Add include guard.
9458 * event-loop.h: Add include guard.
9459 * darwin-nat.h: Rename include guard.
9460 * cp-abi.h: Rename include guard.
9461 * config/sparc/nm-sol2.h: Rename include guard.
9462 * config/nm-nto.h: Rename include guard.
9463 * config/nm-linux.h: Add include guard.
9464 * config/i386/nm-i386gnu.h: Rename include guard.
9465 * config/djgpp/nl_types.h: Rename include guard.
9466 * config/djgpp/langinfo.h: Rename include guard.
9467 * compile/gcc-cp-plugin.h: Add include guard.
9468 * compile/gcc-c-plugin.h: Add include guard.
9469 * compile/compile.h: Rename include guard.
9470 * compile/compile-object-run.h: Rename include guard.
9471 * compile/compile-object-load.h: Rename include guard.
9472 * compile/compile-internal.h: Rename include guard.
9473 * compile/compile-cplus.h: Rename include guard.
9474 * compile/compile-c.h: Rename include guard.
9475 * common/xml-utils.h: Rename include guard.
9476 * common/x86-xstate.h: Rename include guard.
9477 * common/version.h: Rename include guard.
9478 * common/vec.h: Rename include guard.
9479 * common/tdesc.h: Rename include guard.
9480 * common/selftest.h: Rename include guard.
9481 * common/scoped_restore.h: Rename include guard.
9482 * common/scoped_mmap.h: Rename include guard.
9483 * common/scoped_fd.h: Rename include guard.
9484 * common/safe-iterator.h: Rename include guard.
9485 * common/run-time-clock.h: Rename include guard.
9486 * common/refcounted-object.h: Rename include guard.
9487 * common/queue.h: Rename include guard.
9488 * common/ptid.h: Rename include guard.
9489 * common/print-utils.h: Rename include guard.
9490 * common/preprocessor.h: Rename include guard.
9491 * common/pathstuff.h: Rename include guard.
9492 * common/observable.h: Rename include guard.
9493 * common/netstuff.h: Rename include guard.
9494 * common/job-control.h: Rename include guard.
9495 * common/host-defs.h: Rename include guard.
9496 * common/gdb_wait.h: Rename include guard.
9497 * common/gdb_vecs.h: Rename include guard.
9498 * common/gdb_unlinker.h: Rename include guard.
9499 * common/gdb_unique_ptr.h: Rename include guard.
9500 * common/gdb_tilde_expand.h: Rename include guard.
9501 * common/gdb_sys_time.h: Rename include guard.
9502 * common/gdb_string_view.h: Rename include guard.
9503 * common/gdb_splay_tree.h: Rename include guard.
9504 * common/gdb_setjmp.h: Rename include guard.
9505 * common/gdb_ref_ptr.h: Rename include guard.
9506 * common/gdb_optional.h: Rename include guard.
9507 * common/gdb_locale.h: Rename include guard.
9508 * common/gdb_assert.h: Rename include guard.
9509 * common/filtered-iterator.h: Rename include guard.
9510 * common/filestuff.h: Rename include guard.
9511 * common/fileio.h: Rename include guard.
9512 * common/environ.h: Rename include guard.
9513 * common/common-utils.h: Rename include guard.
9514 * common/common-types.h: Rename include guard.
9515 * common/common-regcache.h: Rename include guard.
9516 * common/common-inferior.h: Rename include guard.
9517 * common/common-gdbthread.h: Rename include guard.
9518 * common/common-exceptions.h: Rename include guard.
9519 * common/common-defs.h: Rename include guard.
9520 * common/common-debug.h: Rename include guard.
9521 * common/cleanups.h: Rename include guard.
9522 * common/buffer.h: Rename include guard.
9523 * common/btrace-common.h: Rename include guard.
9524 * common/break-common.h: Rename include guard.
9525 * cli/cli-utils.h: Rename include guard.
9526 * cli/cli-style.h: Rename include guard.
9527 * cli/cli-setshow.h: Rename include guard.
9528 * cli/cli-script.h: Rename include guard.
9529 * cli/cli-interp.h: Rename include guard.
9530 * cli/cli-decode.h: Rename include guard.
9531 * cli/cli-cmds.h: Rename include guard.
9532 * charset-list.h: Add include guard.
9533 * buildsym-legacy.h: Rename include guard.
9534 * bfin-tdep.h: Add include guard.
9535 * ax.h: Rename include guard.
9536 * arm-linux-tdep.h: Add include guard.
9537 * arm-fbsd-tdep.h: Add include guard.
9538 * arch/xtensa.h: Rename include guard.
9539 * arch/tic6x.h: Add include guard.
9540 * arch/i386.h: Add include guard.
9541 * arch/arm.h: Rename include guard.
9542 * arch/arm-linux.h: Rename include guard.
9543 * arch/arm-get-next-pcs.h: Rename include guard.
9544 * arch/amd64.h: Add include guard.
9545 * arch/aarch64-insn.h: Rename include guard.
9546 * arch-utils.h: Rename include guard.
9547 * annotate.h: Add include guard.
9548 * amd64-darwin-tdep.h: Rename include guard.
9549 * aarch64-linux-tdep.h: Add include guard.
9550 * aarch64-fbsd-tdep.h: Add include guard.
9551 * aarch32-linux-nat.h: Add include guard.
9552
ab9268d2
PW
95532019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9554
9555 * macrotab.c (macro_define_internal): New function that
9556 factorizes macro_define_object_internal and macro_define_function
9557 code.
9558 (macro_define_object_internal): Use macro_define_internal.
9559 (macro_define_function): Likewise.
9560
bb0da2b4
PW
95612019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9562
9563 * macrocmd.c (extract_identifier): Return
9564 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9565 callers.
9566
424eb552
JB
95672019-02-06 John Baldwin <jhb@FreeBSD.org>
9568
9569 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9570
1688cb29
TT
95712019-02-05 Tom Tromey <tom@tromey.com>
9572
9573 * target.c (target_stack::unpush): Move assertion earlier.
9574
b5eba2d8
TT
95752019-01-30 Tom Tromey <tom@tromey.com>
9576
9577 PR python/23615:
9578 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9579 (gdbpy_parse_and_eval): Likewise.
9580 * python/python-internal.h (gdbpy_allow_threads): New class.
9581
7054e2ff
JB
95822019-01-28 John Baldwin <jhb@FreeBSD.org>
9583
9584 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9585 (aarch64_fbsd_fpregmap): Move earlier.
9586 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9587 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9588 instead of individual calls to trad_frame_set_reg_addr.
9589 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9590 earlier.
9591 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9592 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9593 instead of individual calls to trad_frame_set_reg_addr.
9594
36c25ffa
AH
95952019-01-28 Alan Hayward <alan.hayward@arm.com>
9596
9597 * CONTRIBUTE: Replace contribution list with wiki link.
9598
a0707f3c
TT
95992019-01-25 Tom Tromey <tom@tromey.com>
9600
9601 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9602
0747795c
TT
96032019-01-25 Tom Tromey <tom@tromey.com>
9604
9605 * xtensa-linux-nat.c: Fix common/ includes.
9606 * xml-support.h: Fix common/ includes.
9607 * xml-support.c: Fix common/ includes.
9608 * x86-linux-nat.c: Fix common/ includes.
9609 * windows-nat.c: Fix common/ includes.
9610 * varobj.h: Fix common/ includes.
9611 * varobj.c: Fix common/ includes.
9612 * value.c: Fix common/ includes.
9613 * valops.c: Fix common/ includes.
9614 * utils.c: Fix common/ includes.
9615 * unittests/xml-utils-selftests.c: Fix common/ includes.
9616 * unittests/utils-selftests.c: Fix common/ includes.
9617 * unittests/unpack-selftests.c: Fix common/ includes.
9618 * unittests/tracepoint-selftests.c: Fix common/ includes.
9619 * unittests/style-selftests.c: Fix common/ includes.
9620 * unittests/string_view-selftests.c: Fix common/ includes.
9621 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9622 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9623 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9624 * unittests/rsp-low-selftests.c: Fix common/ includes.
9625 * unittests/parse-connection-spec-selftests.c: Fix common/
9626 includes.
9627 * unittests/optional-selftests.c: Fix common/ includes.
9628 * unittests/offset-type-selftests.c: Fix common/ includes.
9629 * unittests/observable-selftests.c: Fix common/ includes.
9630 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9631 * unittests/memrange-selftests.c: Fix common/ includes.
9632 * unittests/memory-map-selftests.c: Fix common/ includes.
9633 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9634 * unittests/function-view-selftests.c: Fix common/ includes.
9635 * unittests/environ-selftests.c: Fix common/ includes.
9636 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9637 * unittests/common-utils-selftests.c: Fix common/ includes.
9638 * unittests/cli-utils-selftests.c: Fix common/ includes.
9639 * unittests/array-view-selftests.c: Fix common/ includes.
9640 * ui-file.c: Fix common/ includes.
9641 * tui/tui-io.c: Fix common/ includes.
9642 * tracepoint.h: Fix common/ includes.
9643 * tracepoint.c: Fix common/ includes.
9644 * tracefile-tfile.c: Fix common/ includes.
9645 * top.h: Fix common/ includes.
9646 * top.c: Fix common/ includes.
9647 * thread.c: Fix common/ includes.
9648 * target/waitstatus.h: Fix common/ includes.
9649 * target/waitstatus.c: Fix common/ includes.
9650 * target.h: Fix common/ includes.
9651 * target.c: Fix common/ includes.
9652 * target-memory.c: Fix common/ includes.
9653 * target-descriptions.c: Fix common/ includes.
9654 * symtab.h: Fix common/ includes.
9655 * symfile.c: Fix common/ includes.
9656 * stap-probe.c: Fix common/ includes.
9657 * spu-linux-nat.c: Fix common/ includes.
9658 * sparc-nat.c: Fix common/ includes.
9659 * source.c: Fix common/ includes.
9660 * solib.c: Fix common/ includes.
9661 * solib-target.c: Fix common/ includes.
9662 * ser-unix.c: Fix common/ includes.
9663 * ser-tcp.c: Fix common/ includes.
9664 * ser-pipe.c: Fix common/ includes.
9665 * ser-base.c: Fix common/ includes.
9666 * selftest-arch.c: Fix common/ includes.
9667 * s12z-tdep.c: Fix common/ includes.
9668 * rust-exp.y: Fix common/ includes.
9669 * rs6000-aix-tdep.c: Fix common/ includes.
9670 * riscv-tdep.c: Fix common/ includes.
9671 * remote.c: Fix common/ includes.
9672 * remote-notif.h: Fix common/ includes.
9673 * remote-fileio.h: Fix common/ includes.
9674 * remote-fileio.c: Fix common/ includes.
9675 * regcache.h: Fix common/ includes.
9676 * regcache.c: Fix common/ includes.
9677 * record-btrace.c: Fix common/ includes.
9678 * python/python.c: Fix common/ includes.
9679 * python/py-type.c: Fix common/ includes.
9680 * python/py-inferior.c: Fix common/ includes.
9681 * progspace.h: Fix common/ includes.
9682 * producer.c: Fix common/ includes.
9683 * procfs.c: Fix common/ includes.
9684 * proc-api.c: Fix common/ includes.
9685 * printcmd.c: Fix common/ includes.
9686 * ppc-linux-nat.c: Fix common/ includes.
9687 * parser-defs.h: Fix common/ includes.
9688 * osdata.c: Fix common/ includes.
9689 * obsd-nat.c: Fix common/ includes.
9690 * nat/x86-linux.c: Fix common/ includes.
9691 * nat/x86-linux-dregs.c: Fix common/ includes.
9692 * nat/x86-dregs.h: Fix common/ includes.
9693 * nat/x86-dregs.c: Fix common/ includes.
9694 * nat/ppc-linux.c: Fix common/ includes.
9695 * nat/mips-linux-watch.h: Fix common/ includes.
9696 * nat/mips-linux-watch.c: Fix common/ includes.
9697 * nat/linux-waitpid.c: Fix common/ includes.
9698 * nat/linux-ptrace.h: Fix common/ includes.
9699 * nat/linux-ptrace.c: Fix common/ includes.
9700 * nat/linux-procfs.c: Fix common/ includes.
9701 * nat/linux-personality.c: Fix common/ includes.
9702 * nat/linux-osdata.c: Fix common/ includes.
9703 * nat/linux-namespaces.c: Fix common/ includes.
9704 * nat/linux-btrace.h: Fix common/ includes.
9705 * nat/linux-btrace.c: Fix common/ includes.
9706 * nat/fork-inferior.c: Fix common/ includes.
9707 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9708 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9709 * nat/aarch64-linux.c: Fix common/ includes.
9710 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9711 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9712 * namespace.h: Fix common/ includes.
9713 * mips-linux-tdep.c: Fix common/ includes.
9714 * minsyms.c: Fix common/ includes.
9715 * mi/mi-parse.h: Fix common/ includes.
9716 * mi/mi-main.c: Fix common/ includes.
9717 * mi/mi-cmd-env.c: Fix common/ includes.
9718 * memrange.h: Fix common/ includes.
9719 * memattr.c: Fix common/ includes.
9720 * maint.h: Fix common/ includes.
9721 * maint.c: Fix common/ includes.
9722 * main.c: Fix common/ includes.
9723 * machoread.c: Fix common/ includes.
9724 * location.c: Fix common/ includes.
9725 * linux-thread-db.c: Fix common/ includes.
9726 * linux-nat.c: Fix common/ includes.
9727 * linux-fork.c: Fix common/ includes.
9728 * inline-frame.c: Fix common/ includes.
9729 * infrun.c: Fix common/ includes.
9730 * inflow.c: Fix common/ includes.
9731 * inferior.h: Fix common/ includes.
9732 * inferior.c: Fix common/ includes.
9733 * infcmd.c: Fix common/ includes.
9734 * inf-ptrace.c: Fix common/ includes.
9735 * inf-child.c: Fix common/ includes.
9736 * ia64-linux-nat.c: Fix common/ includes.
9737 * i387-tdep.c: Fix common/ includes.
9738 * i386-tdep.c: Fix common/ includes.
9739 * i386-linux-tdep.c: Fix common/ includes.
9740 * i386-linux-nat.c: Fix common/ includes.
9741 * i386-go32-tdep.c: Fix common/ includes.
9742 * i386-fbsd-tdep.c: Fix common/ includes.
9743 * i386-fbsd-nat.c: Fix common/ includes.
9744 * guile/scm-type.c: Fix common/ includes.
9745 * guile/guile.c: Fix common/ includes.
9746 * go32-nat.c: Fix common/ includes.
9747 * gnu-nat.c: Fix common/ includes.
9748 * gdbthread.h: Fix common/ includes.
9749 * gdbarch-selftests.c: Fix common/ includes.
9750 * gdb_usleep.c: Fix common/ includes.
9751 * gdb_select.h: Fix common/ includes.
9752 * gdb_bfd.c: Fix common/ includes.
9753 * gcore.c: Fix common/ includes.
9754 * fork-child.c: Fix common/ includes.
9755 * findvar.c: Fix common/ includes.
9756 * fbsd-nat.c: Fix common/ includes.
9757 * event-top.c: Fix common/ includes.
9758 * event-loop.c: Fix common/ includes.
9759 * dwarf2read.c: Fix common/ includes.
9760 * dwarf2loc.c: Fix common/ includes.
9761 * dwarf2-frame.c: Fix common/ includes.
9762 * dwarf-index-cache.c: Fix common/ includes.
9763 * dtrace-probe.c: Fix common/ includes.
9764 * disasm-selftests.c: Fix common/ includes.
9765 * defs.h: Fix common/ includes.
9766 * csky-tdep.c: Fix common/ includes.
9767 * cp-valprint.c: Fix common/ includes.
9768 * cp-support.h: Fix common/ includes.
9769 * cp-support.c: Fix common/ includes.
9770 * corelow.c: Fix common/ includes.
9771 * completer.h: Fix common/ includes.
9772 * completer.c: Fix common/ includes.
9773 * compile/compile.c: Fix common/ includes.
9774 * compile/compile-loc2c.c: Fix common/ includes.
9775 * compile/compile-cplus-types.c: Fix common/ includes.
9776 * compile/compile-cplus-symbols.c: Fix common/ includes.
9777 * command.h: Fix common/ includes.
9778 * cli/cli-dump.c: Fix common/ includes.
9779 * cli/cli-cmds.c: Fix common/ includes.
9780 * charset.c: Fix common/ includes.
9781 * build-id.c: Fix common/ includes.
9782 * btrace.h: Fix common/ includes.
9783 * btrace.c: Fix common/ includes.
9784 * breakpoint.h: Fix common/ includes.
9785 * breakpoint.c: Fix common/ includes.
9786 * ax.h:
9787 (enum agent_op): Fix common/ includes.
9788 * ax-general.c (struct aop_map): Fix common/ includes.
9789 * ax-gdb.c: Fix common/ includes.
9790 * auxv.c: Fix common/ includes.
9791 * auto-load.c: Fix common/ includes.
9792 * arm-tdep.c: Fix common/ includes.
9793 * arch/riscv.c: Fix common/ includes.
9794 * arch/ppc-linux-common.c: Fix common/ includes.
9795 * arch/i386.c: Fix common/ includes.
9796 * arch/arm.c: Fix common/ includes.
9797 * arch/arm-linux.c: Fix common/ includes.
9798 * arch/arm-get-next-pcs.c: Fix common/ includes.
9799 * arch/amd64.c: Fix common/ includes.
9800 * arch/aarch64.c: Fix common/ includes.
9801 * arch/aarch64-insn.c: Fix common/ includes.
9802 * arch-utils.c: Fix common/ includes.
9803 * amd64-windows-tdep.c: Fix common/ includes.
9804 * amd64-tdep.c: Fix common/ includes.
9805 * amd64-sol2-tdep.c: Fix common/ includes.
9806 * amd64-obsd-tdep.c: Fix common/ includes.
9807 * amd64-nbsd-tdep.c: Fix common/ includes.
9808 * amd64-linux-tdep.c: Fix common/ includes.
9809 * amd64-linux-nat.c: Fix common/ includes.
9810 * amd64-fbsd-tdep.c: Fix common/ includes.
9811 * amd64-fbsd-nat.c: Fix common/ includes.
9812 * amd64-dicos-tdep.c: Fix common/ includes.
9813 * amd64-darwin-tdep.c: Fix common/ includes.
9814 * agent.c: Fix common/ includes.
9815 * ada-lang.h: Fix common/ includes.
9816 * ada-lang.c: Fix common/ includes.
9817 * aarch64-tdep.c: Fix common/ includes.
9818
2f5c153e
TT
98192019-01-25 Tom Tromey <tom@tromey.com>
9820
9821 * common/create-version.sh: Use common/version.h.
9822
adc6a863
PA
98232019-01-24 Pedro Alves <palves@redhat.com>
9824
9825 * infrun.c (signal_stop, signal_print, signal_program)
9826 (signal_catch, signal_pass): Now arrays instead of pointers.
9827 (update_signals_program_target, do_target_resume)
9828 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9829 * linux-nat.c (linux_nat_target::pass_signals)
9830 (linux_nat_target::create_inferior, linux_nat_target::attach):
9831 Adjust.
9832 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9833 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9834 * procfs.c (procfs_target::pass_signals): Adjust.
9835 * record-full.c (record_full_target::resume): Adjust.
9836 * remote.c (remote_target::pass_signals)
9837 (remote_target::program_signals): Adjust.
9838 * target-debug.h (target_debug_print_signals): Now takes a
9839 gdb::array_view as parameter. Adjust.
9840 * target.h (target_ops) <pass_signals, program_signals>: Replace
9841 pointer and length parameters with gdb::array_view.
9842 (target_pass_signals, target_program_signals): Likewise.
9843 * target-delegates.c: Regenerate.
9844
3046d67a
PA
98452019-01-24 Pedro Alves <palves@redhat.com>
9846
9847 * common/forward-scope-exit.h
9848 (forward_scope_exit::forward_scope_exit): Pass arguments to
9849 m_bind_function directly, instead of creating a std::bind and
9850 copying that.
9851
353229bf
AH
98522019-01-24 Alan Hayward <alan.hayward@arm.com>
9853
9854 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9855 for static members.
9856 (pass_in_v_vfp_candidate): Likewise.
9857
311dc83a
TT
98582019-01-23 Tom Tromey <tom@tromey.com>
9859 Pedro Alves <palves@redhat.com>
9860
9861 * regcache.c (class regcache_invalidator): Remove.
9862 (regcache::raw_write): Use make_scope_exit.
9863
296bd123
TT
98642019-01-23 Tom Tromey <tom@tromey.com>
9865
9866 * ui-out.h (class ui_out_emit_type): Update comment.
9867
979a0d13
TT
98682019-01-23 Tom Tromey <tom@tromey.com>
9869
9870 * infrun.c (fetch_inferior_event): Update comment.
9871
d238133d
TT
98722019-01-23 Tom Tromey <tom@tromey.com>
9873 Pedro Alves <palves@redhat.com>
9874
9875 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9876 parameter.
9877 (fetch_inferior_event): Use SCOPE_EXIT.
9878
9879
9885e6bb
TT
98802019-01-23 Tom Tromey <tom@tromey.com>
9881 Pedro Alves <palves@redhat.com>
9882
9883 * infrun.c (disable_thread_events): Delete.
9884 (stop_all_threads): Use SCOPE_EXIT.
9885
286526c1
TT
98862019-01-23 Tom Tromey <tom@tromey.com>
9887 Pedro Alves <palves@redhat.com>
9888
9889 * symfile.c: Include forward-scope-exit.h.
9890 (clear_symtab_users_cleanup): Replace forward declaration with
9891 a FORWARD_SCOPE_EXIT.
9892 (syms_from_objfile_1): Use the forward_scope_exit and
9893 gdb::optional instead of cleanup_function.
9894 (reread_symbols): Use the forward_scope_exit instead of
9895 cleanup_function.
9896 (clear_symtab_users_cleanup): Remove function.
9897
1db93f14
TT
98982019-01-23 Tom Tromey <tom@tromey.com>
9899 Pedro Alves <palves@redhat.com>
9900
9901 * linux-nat.c: Include scope-exit.h.
9902 (cleanup_target_stop): Remove.
9903 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9904 SCOPE_EXIT.
9905
2cc83d1e
TT
99062019-01-23 Tom Tromey <tom@tromey.com>
9907 Pedro Alves <palves@redhat.com>
9908
9909 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9910 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9911
694c6bf5
TT
99122019-01-23 Tom Tromey <tom@tromey.com>
9913 Andrew Burgess <andrew.burgess@embecosm.com>
9914 Pedro Alves <palves@redhat.com>
9915
9916 * infrun.c (fetch_inferior_event): Use scope_exit.
9917 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9918 * top.c (execute_command): Use scope_exit.
9919 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9920 * utils.c (do_bpstat_clear_actions_cleanup)
9921 (make_bpstat_clear_actions_cleanup): Remove.
9922
4c41382a
TT
99232019-01-23 Tom Tromey <tom@tromey.com>
9924 Pedro Alves <palves@redhat.com>
9925
9926 * infrun.c: Include "common/scope-exit.h"
9927 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9928 (wait_for_inferior): Use SCOPE_EXIT.
9929 (fetch_inferior_event): Use scope_exit.
9930
89f8fb50
TT
99312019-01-23 Tom Tromey <tom@tromey.com>
9932 Pedro Alves <palves@redhat.com>
9933
9934 * breakpoint.c (create_breakpoint): Remove cleanup.
9935
5419bdae
TT
99362019-01-23 Tom Tromey <tom@tromey.com>
9937 Andrew Burgess <andrew.burgess@embecosm.com>
9938 Pedro Alves <palves@redhat.com>
9939
e587ef42
PA
99402019-01-23 Pedro Alves <palves@redhat.com>
9941
9942 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9943
77f0e74c
PA
99442019-01-23 Pedro Alves <palves@redhat.com>
9945 Andrew Burgess <andrew.burgess@embecosm.com>
9946
9947 * gdbthread.h: Include "common/forward-scope-exit.h".
9948 (scoped_finish_thread_state): Redefine custom class in terms of
9949 forward_scope_exit.
9950
5b9b3e53
PA
99512019-01-23 Pedro Alves <palves@redhat.com>
9952 Andrew Burgess <andrew.burgess@embecosm.com>
9953
9954 * common/forward-scope-exit.h: New file.
9955
54b65c9b
PA
99562019-01-23 Pedro Alves <palves@redhat.com>
9957 Andrew Burgess <andrew.burgess@embecosm.com>
9958 Tom Tromey <tom@tromey.com>
9959
9960 * common/scope-exit.h: New file.
9961
cf08fb29
PA
99622019-01-23 Pedro Alves <palves@redhat.com>
9963
9964 * common/preprocessor.h (ESC): Rename to ...
9965 (ESC_PARENS): ... this.
9966 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9967 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9968
ae73e2e2
TT
99692019-01-23 Tom Tromey <tom@tromey.com>
9970
9971 * language.h (class scoped_switch_to_sym_language_if_auto):
9972 Initialize m_lang in both cases.
9973
6594e122
AH
99742019-01-23 Alan Hayward <alan.hayward@arm.com>
9975
9976 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9977 with XCNEW.
9978
a7c9855d
TT
99792019-01-22 Tom Tromey <tom@tromey.com>
9980
9981 * corelow.c: Do not include sys/file.h.
9982
93cc1d53
TT
99832019-01-22 Tom Tromey <tom@tromey.com>
9984
9985 * tui/tui-wingeneral.h: Include gdb_curses.h.
9986
38561778
TT
99872019-01-22 Tom Tromey <tom@tromey.com>
9988
9989 * source-cache.h (class source_cache) <get_source_lines,
9990 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9991
37b3ab5b
TT
99922019-01-22 Tom Tromey <tom@tromey.com>
9993
9994 * remote-fileio.h (struct remote_target): Declare.
9995
3fabc016
TT
99962019-01-22 Tom Tromey <tom@tromey.com>
9997
9998 * python/py-arch.c: Do not include py-ref.h.
9999 * python/py-bpevent.c: Do not include py-ref.h.
10000 * python/py-cmd.c: Do not include py-ref.h.
10001 * python/py-continueevent.c: Do not include py-ref.h.
10002 * python/py-event.h: Do not include py-ref.h.
10003 * python/py-evtregistry.c: Do not include py-ref.h.
10004 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10005 * python/py-frame.c: Do not include py-ref.h.
10006 * python/py-framefilter.c: Do not include py-ref.h.
10007 * python/py-function.c: Do not include py-ref.h.
10008 * python/py-infevents.c: Do not include py-ref.h.
10009 * python/py-linetable.c: Do not include py-ref.h.
10010 * python/py-objfile.c: Do not include py-ref.h.
10011 * python/py-param.c: Do not include py-ref.h.
10012 * python/py-prettyprint.c: Do not include py-ref.h.
10013 * python/py-progspace.c: Do not include py-ref.h.
10014 * python/py-symbol.c: Do not include py-ref.h.
10015 * python/py-symtab.c: Do not include py-ref.h.
10016 * python/py-type.c: Do not include py-ref.h.
10017 * python/py-unwind.c: Do not include py-ref.h.
10018 * python/py-utils.c: Do not include py-ref.h.
10019 * python/py-value.c: Do not include py-ref.h.
10020 * python/py-varobj.c: Do not include py-ref.h.
10021 * python/py-xmethods.c: Do not include py-ref.h.
10022 * python/python.c: Do not include py-ref.h.
10023 * varobj.c: Do not include py-ref.h.
10024
6b4d7774
TT
100252019-01-22 Tom Tromey <tom@tromey.com>
10026
10027 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10028 keyword for bcache.
10029
7af7e9b5
TT
100302019-01-22 Tom Tromey <tom@tromey.com>
10031
10032 * compile/compile-cplus-types.c: Remove a comment by #include.
10033
951d1049
TT
100342019-01-22 Tom Tromey <tom@tromey.com>
10035
10036 * compile/gcc-c-plugin.h: Include compile-internal.h.
10037
d65d5705
TT
100382019-01-22 Tom Tromey <tom@tromey.com>
10039
10040 * stabsread.c (EXTERN): Do not define.
10041 (symnum, next_symbol_text_func, processing_gcc_compilation)
10042 (within_function, global_sym_chain, global_stabs)
10043 (previous_stab_code, this_object_header_files)
10044 (n_this_object_header_files)
10045 (n_allocated_this_object_header_files): Define.
10046 * stabsread.h (EXTERN): Never define. Use "extern".
10047
b6fb1ee5
PW
100482019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10049
10050 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10051 history_value.
10052
be6d4f74
TT
100532019-01-21 Tom Tromey <tom@tromey.com>
10054
10055 * ui-out.c: Fix includes.
10056 * tui/tui-source.c: Fix includes.
10057 * target.c: Fix includes.
10058 * remote.c: Fix includes.
10059 * regcache.c: Fix includes.
10060 * python/py-block.c: Fix includes.
10061 * printcmd.c: Fix includes.
10062 * or1k-tdep.c: Fix includes.
10063 * mi/mi-main.c: Fix includes.
10064 * m32r-tdep.c: Fix includes.
10065 * csky-tdep.c: Fix includes.
10066 * compile/compile-cplus-types.c: Fix includes.
10067 * cli/cli-interp.c: Fix includes.
10068
73021deb
AH
100692019-01-21 Alan Hayward <alan.hayward@arm.com>
10070
10071 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10072 for padding.
10073
7932255d
TT
100742019-01-16 Tom Tromey <tom@tromey.com>
10075
10076 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10077 earlier.
10078 (struct objfile) <msymbols_range>: Move from top level.
10079 <msymbols>: New method.
10080 (class objfile_msymbols): Remove.
10081 * symtab.c (default_collect_symbol_completion_matches_break_on):
10082 Update.
10083 * symmisc.c (dump_msymbols): Update.
10084 * stabsread.c (scan_file_globals): Update.
10085 * objc-lang.c (info_selectors_command, info_classes_command)
10086 (find_methods): Update.
10087 * minsyms.c (find_solib_trampoline_target): Update.
10088 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10089 * coffread.c (coff_symfile_read): Update.
10090 * ada-lang.c (ada_lookup_simple_minsym)
10091 (ada_collect_symbol_completion_matches): Update.
10092
604b1bfb
TT
100932019-01-16 Tom Tromey <tom@tromey.com>
10094
10095 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10096 type. Remove no-argument constructor.
10097 <iterator::operator++>: Simplify.
10098 <begin>: Update.
10099 <end>: Use minimal_symbol_count.
10100
f252c6d5
TT
101012019-01-16 Tom Tromey <tom@tromey.com>
10102
10103 * objfiles.h (struct objfile) <psymtabs>: New method.
10104 (class objfile_psymtabs): Remove.
10105 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10106 typedef.
10107 <range>: New method.
10108 (require_partial_symbols): Change return type.
10109 * psymtab.c (require_partial_symbols)
10110 (psym_expand_symtabs_matching): Update.
10111 * mdebugread.c (parse_partial_symbols): Update.
10112 * dbxread.c (dbx_end_psymtab): Update.
10113
b669c953
TT
101142019-01-15 Tom Tromey <tom@tromey.com>
10115
10116 * symtab.c (lookup_objfile_from_block)
10117 (lookup_symbol_in_objfile_symtabs)
10118 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10119 (find_line_symtab, info_sources_command)
10120 (default_collect_symbol_completion_matches_break_on)
10121 (make_source_files_completion_list): Update.
10122 * symmisc.c (print_objfile_statistics, dump_objfile)
10123 (maintenance_print_symbols, maintenance_info_symtabs)
10124 (maintenance_check_symtabs, maintenance_info_line_tables):
10125 Update.
10126 * source.c (select_source_symtab)
10127 (forget_cached_source_info_for_objfile): Update.
10128 * objfiles.h (class objfile_compunits): Remove.
10129 (struct objfile) <compunits_range>: New typedef.
10130 (compunits): New method.
10131 * objfiles.c (objfile_relocate1): Update.
10132 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10133 * maint.c (count_symtabs_and_blocks): Update.
10134 * linespec.c (iterate_over_all_matching_symtabs): Update.
10135 * cp-support.c (add_symbol_overload_list_qualified): Update.
10136 * coffread.c (coff_symtab_read): Update.
10137 * ada-lang.c (add_nonlocal_symbols)
10138 (ada_collect_symbol_completion_matches)
10139 (ada_add_global_exceptions): Update.
10140
7e955d83
TT
101412019-01-15 Tom Tromey <tom@tromey.com>
10142
10143 * progspace.h (program_space) <objfiles_safe_range>: New
10144 typedef.
10145 <objfiles_safe>: New method.
10146 * objfiles.h (class all_objfiles_safe): Remove.
10147 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10148 * jit.c (jit_inferior_exit_hook): Update.
10149
2030c079
TT
101502019-01-17 Tom Tromey <tom@tromey.com>
10151
10152 * progspace.h (program_space) <objfiles_range>: New typedef.
10153 <objfiles>: New method.
10154 <objfiles_head>: Rename from objfiles.
10155 (object_files): Update.
10156 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10157 * guile/scm-pretty-print.c
10158 (ppscm_find_pretty_printer_from_objfiles): Update.
10159 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10160 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10161 Update.
10162 * python/py-progspace.c (pspy_get_objfiles): Update.
10163 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10164 Update.
10165 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10166 (objfpy_lookup_objfile_by_build_id): Update.
10167 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10168 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10169 Update.
10170 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10171 (expand_symtab_containing_pc, lookup_objfile_from_block)
10172 (lookup_static_symbol, basic_lookup_transparent_type)
10173 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10174 (find_line_symtab, info_sources_command)
10175 (default_collect_symbol_completion_matches_break_on)
10176 (make_source_files_completion_list, find_main_name): Update.
10177 * symmisc.c (print_symbol_bcache_statistics)
10178 (print_objfile_statistics, maintenance_print_symbols)
10179 (maintenance_print_msymbols, maintenance_print_objfiles)
10180 (maintenance_info_symtabs, maintenance_check_symtabs)
10181 (maintenance_expand_symtabs, maintenance_info_line_tables):
10182 Update.
10183 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10184 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10185 (map_overlay_command, unmap_overlay_command)
10186 (simple_overlay_update, expand_symtabs_matching)
10187 (map_symbol_filenames): Update.
10188 * symfile-debug.c (set_debug_symfile): Update.
10189 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10190 Update.
10191 * source.c (select_source_symtab, forget_cached_source_info):
10192 Update.
10193 * solib.c (solib_read_symbols): Update.
10194 * solib-spu.c (append_ocl_sos): Update.
10195 * psymtab.c (maintenance_print_psymbols)
10196 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10197 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10198 * printcmd.c (info_symbol_command): Update.
10199 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10200 Update.
10201 * objfiles.h (class all_objfiles): Remove.
10202 * objfiles.c (have_partial_symbols, have_full_symbols)
10203 (have_minimal_symbols, qsort_cmp, update_section_map)
10204 (shared_objfile_contains_address_p)
10205 (default_iterate_over_objfiles_in_search_order): Update.
10206 * objc-lang.c (info_selectors_command, info_classes_command)
10207 (find_methods): Update.
10208 * minsyms.c (find_solib_trampoline_target): Update.
10209 * maint.c (maintenance_info_sections)
10210 (maintenance_translate_address, count_symtabs_and_blocks):
10211 Update.
10212 * main.c (captured_main_1): Update.
10213 * linux-thread-db.c (try_thread_db_load_from_pdir)
10214 (has_libpthread): Update.
10215 * linespec.c (iterate_over_all_matching_symtabs)
10216 (search_minsyms_for_name): Update.
10217 * jit.c (jit_find_objf_with_entry_addr): Update.
10218 * hppa-tdep.c (find_unwind_entry)
10219 (hppa_lookup_stub_minimal_symbol): Update.
10220 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10221 Update.
10222 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10223 (elf_gnu_ifunc_resolve_by_got): Update.
10224 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10225 * dwarf-index-write.c (save_gdb_index_command): Update.
10226 * cp-support.c (add_symbol_overload_list_qualified): Update.
10227 * breakpoint.c (create_overlay_event_breakpoint)
10228 (create_longjmp_master_breakpoint)
10229 (create_std_terminate_master_breakpoint)
10230 (create_exception_master_breakpoint): Update.
10231 * blockframe.c (find_pc_partial_function): Update.
10232 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10233 (ada_collect_symbol_completion_matches)
10234 (ada_add_global_exceptions): Update.
10235
776489e0
TT
102362019-01-17 Tom Tromey <tom@tromey.com>
10237
10238 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10239 declare VEC.
10240 (solib_target_parse_libraries): Change return type.
10241 (library_list_start_segment, library_list_start_section)
10242 (library_list_end_library, library_list_start_library); Update.
10243 (solib_target_free_library_list): Remove.
10244 (solib_target_parse_libraries): Remove cleanup. Change return
10245 type.
10246 (solib_target_current_sos): Update.
10247
6471e7d2
TT
102482019-01-17 Tom Tromey <tromey@bapiya>
10249
10250 * valprint.c: Replace "the the" with "the".
10251 * symtab.c: Replace "the the" with "the".
10252 * solib.c: Replace "the the" with "the".
10253 * solib-dsbt.c: Replace "the the" with "the".
10254 * linespec.c: Replace "the the" with "the".
10255 * dwarf2loc.h: Replace "the the" with "the".
10256 * amd64-windows-tdep.c: Replace "the the" with "the".
10257 * aarch64-tdep.c: Replace "the the" with "the".
10258
c24bdb02
KS
102592019-01-16 Keith Seitz <keiths@redhat.com>
10260
10261 PR gdb/23773
10262 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10263 <builder>: Rename to ..
10264 <m_builder>: ... this and make private.
10265 (dwarf2_cu::get_builder): New method. Change all users of
10266 `builder' to use this method.
10267 (dwarf2_start_symtab): Move to ...
10268 (dwarf2_cu::start_symtab): ... here. Update all callers
10269 (setup_type_unit_groups): Move to ...
10270 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10271 callers.
10272 (dwarf2_cu::reset_builder): New method.
10273 (process_full_compunit, process_full_type_unit): Use
10274 dwarf2_cu::reset_builder.
10275 (follow_die_offset): Record the ancestor CU if it is different
10276 from the followed DIE's CU.
10277 (follow_die_sig_1): Likewise.
10278
8d64371b
TT
102792019-01-15 Tom Tromey <tom@tromey.com>
10280
10281 * remote.c (class remote_state) <buf>: Now a char_vector.
10282 <buf_size>: Remove.
10283 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10284 parameter.
10285 (remote_target::getpkt_or_notif_sane_1)
10286 (remote_target::getpkt_sane)
10287 (remote_target::getpkt_or_notif_sane): Likewise.
10288 (class remote_target) <putpkt>: New overload.
10289 (remote_target::read_frame): Change type of "buf_p". Remove
10290 sizeof_p parameter.
10291 (packet_ok): New overload.
10292 (packet_check_result): New overload.
10293 Update all uses.
10294
bb277751
TT
102952019-01-14 Tom Tromey <tom@tromey.com>
10296
10297 * remote-notif.c (handle_notification, remote_notif_ack)
10298 (remote_notif_parse): Make "buf" const.
10299 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10300 const.
10301 (remote_notif_parse, remote_notif_ack, handle_notification):
10302 Likewise.
10303 * remote.c (remote_notif_stop_parse): Make "buf" const.
10304 (remote_target::remote_parse_stop_reply): Make "buf" const.
10305 (remote_notif_stop_ack): Make "buf" const.
10306
05be00a8
TT
103072019-01-14 Tom Tromey <tom@tromey.com>
10308
10309 * remote.c (remote_console_output): Make parameter const.
10310
491adeca
TT
103112019-01-14 Tom Tromey <tom@tromey.com>
10312
10313 * target-debug.h (target_debug_print_signals): Constify.
10314 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10315 * procfs.c (procfs_target::pass_signals): Update.
10316 * linux-nat.c (linux_nat_target::pass_signals): Update.
10317 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10318 * target-delegates.c: Rebuild.
10319 * remote.c (remote_target::program_signals): Update.
10320 (remote_target::pass_signals): Update.
10321 * target.c (target_pass_signals): Constify argument.
10322 (target_program_signals): Likewise.
10323 * target.h (struct target_ops) <pass_signals, program_signals>:
10324 Constify argument.
10325 (target_pass_signals, target_program_signals): Constify argument.
10326
bbd94648
TT
103272019-01-14 Tom Tromey <tom@tromey.com>
10328
10329 PR tui/28819:
10330 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10331
6f072a10
PFC
103322019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10333
10334 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10335 field.
10336 * rs6000-tdep.c: Include reggroups.h.
10337 (IS_V_ALIAS_PSEUDOREG): Define.
10338 (rs6000_register_name): Return names for the "vX" aliases.
10339 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10340 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10341 aliases. Call default_register_reggroup_p for all other
10342 pseudo-registers.
10343 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10344 New functions.
10345 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10346 Handle "vX" aliases.
10347 (v_alias_pseudo_register_collect): New function.
10348 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10349 (rs6000_gdbarch_init): Initialize "vX" aliases as
10350 pseudo-registers. Restore registration of
10351 rs6000_pseudo_register_reggroup_p with
10352 set_tdesc_pseudo_register_reggroup_p.
10353
1a782351
MF
103542019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10355
10356 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10357 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10358 set_gdbarch_num_pseudo_regs.
10359
d73cff18
PW
103602019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10361
10362 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10363 Remove arg prefixname, add do_set and do_show.
10364 Add member functions set_list and show_list.
10365 * cli/cli-style.c (class cli_style_option): Update accordingly.
10366 (style_set_list): Move to file scope.
10367 (style_show_list): Likewise.
10368 (set_style): Call help_list.
10369 (show_style): Call cmd_show_list.
10370 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10371 Update to use the new macro.
10372
60a90376
JB
103732019-10-12 Joel Brobecker <brobecker@adacore.com>
10374
10375 * ada-lang.c (_initialize_ada_language): Expand the help text
10376 for the "catch exception" command.
10377
9d7c67bf
PW
103782019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10379
10380 * symtab.c (matching_obj_sections): Initialize obj,
10381 declare it closer to its usage.
10382
7cf47dc4
TT
103832019-01-10 Tom Tromey <tom@tromey.com>
10384
10385 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10386 (basic_inf_threads_range): Remove.
10387 (inf_threads_range, inf_non_exited_threads_range)
10388 (safe_inf_threads_range): Use next_adapter.
10389
d3cb6808
KS
103902019-01-10 Keith Seitz <keiths@redhat.com>
10391
10392 PR gdb/23712
10393 PR symtab/23010
10394 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10395 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10396
63a20375
KS
103972019-01-10 Keith Seitz <keiths@redhat.com>
10398
10399 PR gdb/23712
10400 PR symtab/23010
10401 * dictionary.c (pending_to_vector): Remove.
10402 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10403 Remove _1 suffix, replacing functions of the same name. Update
10404 all callers.
10405 (dict_create_hashed, dict_create_hashed_expandable)
10406 (dict_create_linear, dict_create_linear_expandable, dict_free)
10407 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10408 Make functions static.
10409
b026f593
KS
104102019-01-10 Keith Seitz <keiths@redhat.com>
10411
10412 PR gdb/23712
10413 PR symtab/23010
10414 * dictionary.h (struct dictionary): Replace declaration with
10415 multidictionary.
10416 (dict_create_hashed, dict_create_hashed_expandable)
10417 (dict_create_linear, dict_create_linear_expandable)
10418 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10419 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10420 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10421 taking multidictionary argument.
10422 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10423 * block.h (struct block) <dict>: Change to multidictionary
10424 and rename `multidict'.
10425 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10426 symmisc.c: Update all dictionary references to multidictionary.
10427
c7748ee9
KS
104282019-01-10 Keith Seitz <keiths@redhat.com>
10429
10430 PR gdb/23712
10431 PR symtab/23010
10432 * dictionary.c: Include unordered_map.
10433 (pending_to_vector): New function.
10434 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10435 Rewrite the non-"_1" functions to take vector instead
10436 of linked list.
10437 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10438 "new" _1 versions of the same name.
10439 (multidictionary): Define.
10440 (std::hash<enum language): New definition.
10441 (collate_pending_symbols_by_language, mdict_create_hashed)
10442 (mdict_create_hashed_expandable, mdict_create_linear)
10443 (mdict_create_linear_expandable, mdict_free)
10444 (find_language_dictionary, create_new_language_dictionary)
10445 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10446 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10447 (mdict_size, mdict_empty): New functions.
10448 * dictionary.h (mdict_iterator): Define.
10449
67aa1f3c
PA
104502019-01-10 Pedro Alves <palves@redhat.com>
10451
10452 * breakpoint.c (read_uploaded_action)
10453 (create_tracepoint_from_upload): Adjust to use
10454 gdb::unique_xmalloc_ptr.
10455 * ctf.c (ctf_write_uploaded_tp):
10456 (SET_ARRAY_FIELD): Use emplace_back.
10457 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10458 * tracefile-tfile.c (tfile_write_uploaded_tp):
10459 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10460 gdb::unique_xmalloc_ptr.
10461 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10462 at_string, cond_string, cmd_strings>: Replace char pointers
10463 with gdb::unique_xmalloc_ptr.
10464
2f667667
PA
104652019-01-10 Pedro Alves <palves@redhat.com>
10466
10467 * solib-target.c (library_list_start_library): Don't xstrdup name.
10468
36cb7237
PA
104692019-01-10 Pedro Alves <palves@redhat.com>
10470
10471 * mdebugread.c (parse_partial_symbols): Use
10472 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10473
da584958
AB
104742019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10475
10476 * linux-fork.c (scoped_switch_fork_info)
10477 <~scoped_switch_fork_info>: Fix incorrect variable name.
10478
1ef8573c
AB
104792019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10480
10481 * linux-fork.c (scoped_switch_fork_info)
10482 <scoped_switch_fork_info>: Make explicit.
10483 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10484
8d7bcccb
TT
104852019-01-10 Tom Tromey <tom@tromey.com>
10486
10487 * objfiles.h (objfile::reset_psymtabs): Update.
10488 * objfiles.c (objfile::objfile): Update.
10489 * psymtab.h (psymtab_storage::obstack): Update.
10490 (psymtab_storage::m_obstack): Use gdb::optional.
10491 (class psymtab_storage): Update comment. Remove objfile
10492 parameter.
10493 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10494
b596a3c7
TT
104952019-01-10 Tom Tromey <tom@tromey.com>
10496
10497 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10498 <free_psymtabs>: Now private.
10499 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10500 (allocate_psymtab): Use new method.
10501
a9342b62
TT
105022019-01-10 Tom Tromey <tom@tromey.com>
10503
10504 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10505 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10506 * mdebugread.c (parse_partial_symbols): Use
10507 allocate_dependencies.
10508 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10509 allocate_dependencies.
10510 (process_psymtab_comp_unit_reader)
10511 (build_type_psymtab_dependencies): Likewise.
10512 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10513
5af70966
TT
105142019-01-10 Tom Tromey <tom@tromey.com>
10515
10516 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10517 PSYMBOL_SET_LANGUAGE.
10518 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10519
5923a04c
TT
105202019-01-10 Tom Tromey <tom@tromey.com>
10521
10522 * psymtab.h (psymtab_storage::obstack): New method.
10523 <m_obstack>: Rename from obstack; now private.
10524 * psymtab.c (psymtab_storage): Update.
10525 * dwarf2read.c (create_addrmap_from_index)
10526 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10527 Update.
10528
6d6a12bf
TT
105292019-01-10 Tom Tromey <tom@tromey.com>
10530
10531 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10532 * objfiles.h (objfile::reset_psymtabs): New method.
10533
d320c2b5
TT
105342019-01-10 Tom Tromey <tom@tromey.com>
10535
10536 * symmisc.c (print_symbol_bcache_statistics): Update.
10537 (print_objfile_statistics): Update.
10538 * symfile.c (reread_symbols): Update.
10539 * psymtab.h (class psymtab_storage): New.
10540 * psymtab.c (psymtab_storage): New constructor.
10541 (~psymtab_storage): New destructor.
10542 (require_partial_symbols): Update.
10543 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10544 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10545 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10546 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10547 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10548 (start_psymtab_common, end_psymtab_common)
10549 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10550 (allocate_psymtab): Update.
10551 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10552 Update.
10553 (dump_psymtab_addrmap, maintenance_print_psymbols)
10554 (maintenance_check_psymtabs): Update.
10555 (class objfile_psymtabs): Move to objfiles.h.
10556 * psympriv.h (discard_psymtab): Now inline.
10557 (psymtab_discarder::psymtab_discarder): Update.
10558 (psymtab_discarder::~psymtab_discarder): Update.
10559 (ALL_OBJFILE_PSYMTABS): Rewrite.
10560 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10561 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10562 Remove fields.
10563 <partial_symtabs>: New field.
10564 (class objfile_psymtabs): Move from psymtab.h. Update.
10565 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10566 psymbol_cache.
10567 (objfile::~objfile): Don't destroy psymbol_cache.
10568 * mdebugread.c (parse_partial_symbols): Update.
10569 * dwarf2read.c (create_addrmap_from_index)
10570 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10571 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10572 (add_partial_subprogram, dwarf2_ranges_read): Update.
10573 * dwarf-index-write.c (write_address_map)
10574 (write_one_signatured_type, recursively_write_psymbols)
10575 (class debug_names, class debug_names, write_psymtabs_to_index):
10576 Update.
10577
1d94a5a3
TT
105782019-01-10 Tom Tromey <tom@tromey.com>
10579
10580 * symtab.h (SYMBOL_SET_NAMES): Update.
10581 (symbol_set_names): Update.
10582 (MSYMBOL_SET_NAMES): Update.
10583 * symtab.c (symbol_set_names): Change argument to be an
10584 objfile_per_bfd_storage.
10585 * psymtab.c (add_psymbol_to_bcache): Update.
10586 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10587
0f14768a
TT
105882019-01-10 Tom Tromey <tom@tromey.com>
10589
10590 * symtab.c (create_demangled_names_hash): Change argument to be an
10591 objfile_per_bfd_storage.
10592 (symbol_set_names): Update.
10593
6eee24ce
TT
105942019-01-10 Tom Tromey <tom@tromey.com>
10595
10596 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10597 init_psymbol_list.
10598 * psymtab.c (init_psymbol_list): Do nothing if already called.
10599 * psympriv.h (init_psymbol_list): Add comment.
10600 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10601 init_psymbol_list.
10602 * dbxread.c (dbx_symfile_read): Unconditionally call
10603 init_psymbol_list.
10604
75aedd27
TT
106052019-01-10 Tom Tromey <tom@tromey.com>
10606
10607 * xcoffread.c (scan_xcoff_symtab): Update.
10608 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10609 "where".
10610 * mdebugread.c (parse_partial_symbols)
10611 (handle_psymbol_enumerators): Update.
10612 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10613 * dbxread.c (read_dbx_symtab): Update.
10614 * psympriv.h (psymbol_placement): New enum.
10615 (add_psymbol_to_list): Update.
10616
939652a5
TT
106172019-01-10 Tom Tromey <tom@tromey.com>
10618
10619 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10620 static_psymbols parameters.
10621 (scan_xcoff_symtab): Update.
10622 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10623 static_psymbols parameters.
10624 * psympriv.h (start_psymtab_common): Update.
10625 * mdebugread.c (parse_partial_symbols): Update.
10626 * dwarf2read.c (create_partial_symtab): Update.
10627 * dbxread.c (read_dbx_symtab): Update.
10628 (start_psymtab): Remove global_psymbols and static_psymbols
10629 parameters.
10630
baa62830
TT
106312019-01-10 Tom Tromey <tom@tromey.com>
10632
10633 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10634 * psymtab.c (allocate_psymtab): Add comment.
10635 * psympriv.h (allocate_psymtab): Add comment.
10636 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10637 initializations.
10638 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10639
0e8f53ba
TT
106402019-01-10 Tom Tromey <tom@tromey.com>
10641
10642 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10643 Don't declare.
10644 * mipsread.c: Include mdebugread.h.
10645 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10646 Declare.
10647 * elfread.c: Include mdebugread.h.
10648
b22a7c6a
TT
106492019-01-09 Tom Tromey <tom@tromey.com>
10650
10651 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10652 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10653 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10654 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10655 (psym_lookup_symbol, psym_find_last_source_symtab)
10656 (psym_forget_cached_source_info, psym_print_stats)
10657 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10658 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10659 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10660 (psym_find_compunit_symtab_by_address)
10661 (maintenance_print_psymbols, maintenance_info_psymtabs)
10662 (maintenance_check_psymtabs): Use ranged for.
10663 * psymtab.h (class objfile_psymtabs): New.
10664 (require_partial_symbols): Return objfile_psymtabs.
10665 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10666
3b9d3ac2
TT
106672019-01-09 Tom Tromey <tom@tromey.com>
10668
10669 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10670 (find_pc_mapped_section, list_overlays_command)
10671 (map_overlay_command, unmap_overlay_command)
10672 (simple_overlay_update): Use all_objfiles.
10673 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10674 * printcmd.c (info_symbol_command): Use all_objfiles.
10675 * objfiles.h (ALL_OBJSECTIONS): Remove.
10676 * maint.c (maintenance_translate_address): Use all_objfiles.
10677 * gcore.c (gcore_create_callback): Use all_objfiles.
10678 (objfile_find_memory_regions): Likewise.
10679
8b31193a
TT
106802019-01-09 Tom Tromey <tom@tromey.com>
10681
10682 * symtab.c (find_line_symtab, info_sources_command)
10683 (make_source_files_completion_list): Use objfile_compunits.
10684 * source.c (select_source_symtab): Use objfile_compunits.
10685 * objfiles.h (struct objfile): Update comment.
10686 (ALL_OBJFILES): Remove.
10687 (ALL_FILETABS): Remove.
10688 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10689 objfile_compunits.
10690
d5da8b3c
TT
106912019-01-09 Tom Tromey <tom@tromey.com>
10692
10693 * symmisc.c (print_objfile_statistics, dump_objfile)
10694 (maintenance_print_symbols): Use compunit_filetabs.
10695 * source.c (forget_cached_source_info_for_objfile): Use
10696 compunit_filetabs.
10697 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10698 (ALL_FILETABS): Use compunit_filetabs.
10699 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10700 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10701
5accd1a0
TT
107022019-01-09 Tom Tromey <tom@tromey.com>
10703
10704 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10705 (compunit_filetabs): New.
10706 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10707 compunit_filetabs.
10708 (info_sources_command, make_source_files_completion_list): Remove
10709 declaration.
10710 * symmisc.c (print_objfile_statistics, dump_objfile)
10711 (maintenance_print_symbols): Remove declaration.
10712 (maintenance_info_symtabs): Use compunit_filetabs.
10713 (maintenance_info_line_tables): Likewise.
10714 * source.c (select_source_symtab): Change local variable name.
10715 (forget_cached_source_info_for_objfile): Remove declaration.
10716 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10717 * objfiles.c (objfile_relocate1): Remove declaration.
10718 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10719 declaration.
10720 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10721 * coffread.c (coff_symtab_read): Remove declaration.
10722 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10723 compunit_filetabs.
10724
d8aeb77f
TT
107252019-01-09 Tom Tromey <tom@tromey.com>
10726
10727 * symtab.c (lookup_objfile_from_block)
10728 (find_pc_sect_compunit_symtab, search_symbols)
10729 (default_collect_symbol_completion_matches_break_on): Use
10730 objfile_compunits.
10731 * objfiles.h (ALL_COMPUNITS): Remove.
10732 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10733 * cp-support.c (add_symbol_overload_list_qualified): Use
10734 objfile_compunits.
10735 * ada-lang.c (ada_collect_symbol_completion_matches)
10736 (ada_add_global_exceptions): Use objfile_compunits.
10737
592553c4
TT
107382019-01-09 Tom Tromey <tom@tromey.com>
10739
10740 * source.c (select_source_symtab)
10741 (forget_cached_source_info_for_objfile): Remove declaration.
10742 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10743 declaration.
10744 * maint.c (count_symtabs_and_blocks): Remove declaration.
10745 * cp-support.c (add_symbol_overload_list_qualified): Remove
10746 declaration.
10747 * coffread.c (coff_symtab_read): Remove declaration.
10748 * symtab.c (lookup_symbol_in_objfile_symtabs)
10749 (basic_lookup_transparent_type_1): Use objfile_compunits.
10750 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10751 (info_sources_command, search_symbols)
10752 (default_collect_symbol_completion_matches_break_on)
10753 (make_source_files_completion_list): Remove declaration.
10754 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10755 (ada_collect_symbol_completion_matches)
10756 (ada_add_global_exceptions): Remove declaration.
10757 * linespec.c (iterate_over_all_matching_symtabs): Use
10758 objfile_compunits.
10759 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10760 (class objfile_compunits): New.
10761 (ALL_COMPUNITS): Use objfile_compunits.
10762 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10763 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10764 objfile_compunits.
10765 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10766
5325b9bf
TT
107672019-01-09 Tom Tromey <tom@tromey.com>
10768
10769 * symtab.c (search_symbols)
10770 (default_collect_symbol_completion_matches_break_on): Use
10771 objfile_msymbols.
10772 * ada-lang.c (ada_lookup_simple_minsym)
10773 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10774 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10775 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10776 objfile_msymbols.
10777 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10778 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10779 * objc-lang.c (find_methods): Use objfile_msymbols.
10780 (info_selectors_command, info_classes_command): Likewise.
10781 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10782 * objfiles.h (class objfile_msymbols): New.
10783 (ALL_OBJFILE_MSYMBOLS): Remove.
10784 (ALL_MSYMBOLS): Remove.
10785
cac85af2
TT
107862019-01-09 Tom Tromey <tom@tromey.com>
10787
10788 * common/next-iterator.h (next_adapter): Add Iterator template
10789 parameter.
10790 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10791 (class all_objfiles_safe): New.
10792 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10793 * objfiles.c (put_objfile_before): Update comment.
10794 (add_separate_debug_objfile): Likewise.
10795 (free_all_objfiles): Use all_objfiles_safe.
10796 (objfile_purge_solibs): Likewise.
10797
aed57c53
TT
107982019-01-09 Tom Tromey <tom@tromey.com>
10799
10800 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10801 (expand_symtab_containing_pc, lookup_static_symbol)
10802 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10803 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10804 all_objfiles.
10805 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10806 * breakpoint.c (create_overlay_event_breakpoint)
10807 (create_longjmp_master_breakpoint)
10808 (create_std_terminate_master_breakpoint)
10809 (create_exception_master_breakpoint): Use all_objfiles.
10810 * linux-thread-db.c (try_thread_db_load_from_pdir)
10811 (has_libpthread): Use all_objfiles.
10812 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10813 * linespec.c (iterate_over_all_matching_symtabs)
10814 (search_minsyms_for_name): Use all_objfiles.
10815 * maint.c (maintenance_info_sections): Use all_objfiles.
10816 * main.c (captured_main_1): Use all_objfiles.
10817 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10818 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10819 * guile/scm-pretty-print.c
10820 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10821 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10822 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10823 (maintenance_print_msymbols): Use all_objfiles.
10824 * source.c (select_source_symtab): Use all_objfiles.
10825 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10826 * symfile.c (remove_symbol_file_command)
10827 (expand_symtabs_matching, map_symbol_filenames): Use
10828 all_objfiles.
10829 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10830 all_objfiles.
10831 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10832 * objc-lang.c (find_methods): Use all_objfiles.
10833 * objfiles.c (have_partial_symbols, have_full_symbols)
10834 (have_minimal_symbols, qsort_cmp)
10835 (default_iterate_over_objfiles_in_search_order): Use
10836 all_objfiles.
10837 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10838 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10839 (maintenance_check_psymtabs): Use all_objfiles.
10840 (ALL_PSYMTABS): Remove.
10841 * compile/compile-object-run.c (do_module_cleanup): Use
10842 all_objfiles.
10843 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10844 * cp-support.c (add_symbol_overload_list_qualified): Use
10845 all_objfiles.
10846 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10847 Use all_objfiles.
10848 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10849 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10850 all_objfiles.
10851 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10852 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10853 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10854 Uses all_objfiles.
10855 * solib.c (solib_read_symbols): Use all_objfiles
10856
99d89cde
TT
108572019-01-09 Tom Tromey <tom@tromey.com>
10858
10859 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10860 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10861 all_objfiles.
10862 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10863 * symmisc.c (print_symbol_bcache_statistics)
10864 (print_objfile_statistics, maintenance_print_objfiles)
10865 (maintenance_info_symtabs, maintenance_check_symtabs)
10866 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10867 all_objfiles.
10868 * source.c (forget_cached_source_info): Use all_objfiles.
10869 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10870 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10871 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10872 * objfiles.c (update_section_map): Use all_objfiles.
10873 (shared_objfile_contains_address_p): Likewise.
10874 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10875 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10876
21708325
TT
108772019-01-09 Tom Tromey <tom@tromey.com>
10878
10879 * common/next-iterator.h: New file.
10880 * objfiles.h (class all_objfiles): New.
10881 (struct objfile_iterator): New.
10882
669e09f6
PW
108832019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10884
10885 * NEWS: Move the description of the changed "frame", "select-frame",
10886 and "info frame" commands to the Changed commands section.
10887
041be526
SM
108882019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10889
10890 * gdbtypes.c (check_stub_method_group): Remove handling of old
10891 mangling schemes.
10892 * linespec.c (find_methods): Likewise.
10893 * stabsread.c (read_member_functions): Likewise.
10894 * valops.c (search_struct_method): Likewise.
10895 (value_struct_elt_for_reference): Likewise.
10896 * NEWS: Mention this change.
10897
0e2a2133
AB
108982019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10899
10900 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10901 print_source_lines.
10902 * source.c (print_source_lines_base): Update line number check.
10903 (print_source_lines): New function.
10904 (source_lines_range::source_lines_range): New function.
10905 * source.h (class source_lines_range): New class.
10906 (print_source_lines): New declaration.
10907
1055a3b4
PW
109082019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10909
10910 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10911
cfeadda5
TT
109122019-01-08 Tom Tromey <tom@tromey.com>
10913 Simon Marchi <simon.marchi@ericsson.com>
10914
10915 PR gdb/24060
10916 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10917 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10918 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10919 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10920 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10921 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10922
583068ca
AB
109232019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10924
10925 * source.c (select_source_symtab): Move header comment to
10926 declaration in source.h.
10927 (forget_cached_source_info_for_objfile): Likewise.
10928 (forget_cached_source_info): Likewise.
10929 (identify_source_line): Likewise.
10930 * source.h (identify_source_line): Move declaration from symtab.h
10931 and add comment from source.c
10932 (print_source_lines): Likewise.
10933 (forget_cached_source_info_for_objfile): Likewise.
10934 (forget_cached_source_info): Likewise.
10935 (select_source_symtab): Likewise.
10936 (enum print_source_lines_flag): Move definition from symtab.h.
10937 * symtab.h (identify_source_line): Move declaration to source.h.
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 to source.h.
10943 * tui/tui-hooks.c: Add 'source.h' include.
10944
ec98a4ad
AB
109452019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10946
10947 * source.c (print_source_lines_base): Handle requests to print
10948 reverse line number sequences, and guard against empty lines
10949 string.
10950
62ea19c1
AB
109512019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10952
10953 * source.c (print_source_lines_base): Fix skip of '\r' if next
10954 character is '\n'.
10955
9d30e1fd
TT
109562019-01-06 Tom Tromey <tom@tromey.com>
10957
10958 * c-exp.y (struct c_parse_state) <macro_original_text,
10959 expansion_obstack>: New member.
10960 (macro_original_text, expansion_obstack): Remove globals.
10961 (scan_macro_expansion, scanning_macro_expansion)
10962 (finished_macro_expansion): Update.
10963 (scan_macro_cleanup): Remove.
10964 (yylex, c_parse): Update.
10965
c65bac38
TT
109662019-01-06 Tom Tromey <tom@tromey.com>
10967
10968 * c-exp.y (struct c_parse_state) <strings>: New member.
10969 (operator_stoken): Update.
10970
02e12e38
TT
109712019-01-06 Tom Tromey <tom@tromey.com>
10972
10973 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10974 (union type_stack_elt) <typelist_val>: Now a pointer to
10975 std::vector.
10976 (type_stack_cleanup): Don't declare.
10977 (push_typelist): Update.
10978 * parse.c (pop_typelist): Return a std::vector.
10979 (push_typelist): Take a std::vector.
10980 (follow_types): Update. Do not free args.
10981 (type_stack_cleanup): Remove.
10982 * c-exp.y (struct c_parse_state): New.
10983 (cpstate): New global.
10984 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10985 (nonempty_typelist): Update.
10986 (func_mod): Create a new vector.
10987 (c_parse): Create a c_parse_state.
10988 (check_parameter_typelist): Do not delete params.
10989 (function_method): Update. Do not delete type_list.
10990
f097f5ad
TT
109912019-01-06 Tom Tromey <tom@tromey.com>
10992
10993 PR gdb/28155:
10994 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10995 check_typedef.
10996 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10997 (print_return_value): Likewise.
10998
d2adf9f1
TT
109992019-01-05 Tom Tromey <tom@tromey.com>
11000
11001 * contrib/cleanup_check.py: Remove.
11002 * contrib/gcc-with-excheck: Remove.
11003 * contrib/exsummary.py: Remove.
11004 * contrib/excheck.py: Remove.
11005
2eab46b1
JB
110062019-01-05 Joel Brobecker <brobecker@adacore.com>
11007
11008 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11009 NULL. Initialize tpprev to NULL instead of assigning it
11010 to NULL on the next statement.
11011 * windows-nat.c (windows_delete_thread): Remove check for
11012 main_thread_id before printing thread exit notifications.
11013 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11014 Remove thread ID check against main_thread_id.
11015 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11016 windows_delete_thread.
11017 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11018
48c5e7e2
TT
110192019-01-04 Tom Tromey <tom@tromey.com>
11020
11021 * compile/compile.c (_initialize_compile): Use upper case for
11022 metasyntactic variables.
11023 * symmisc.c (_initialize_symmisc): Use upper case for
11024 metasyntactic variables.
11025 * psymtab.c (_initialize_psymtab): Use upper case for
11026 metasyntactic variables.
11027 * demangle.c (demangle_command): Use upper case for metasyntactic
11028 variables.
11029 (_initialize_demangler): Likewise.
11030 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11031 variables.
11032
986041cd
TT
110332019-01-03 Tom Tromey <tom@tromey.com>
11034
11035 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11036
7c711119
TT
110372019-01-03 Tom Tromey <tom@tromey.com>
11038
11039 * python/py-symtab.c (salpy_str): Update.
11040 (struct salpy_sal_object) <symtab>: Now a PyObject.
11041 (salpy_dealloc): Update.
11042 (del_objfile_sal): Use gdbpy_ref.
11043
1b20edf0
TT
110442019-01-03 Tom Tromey <tom@tromey.com>
11045
11046 * python/py-type.c (convert_field): Use new_reference. Return
11047 gdbpy_ref.
11048 (make_fielditem): Return gdbpy_ref.
11049 (typy_fields): Update.
11050 (typy_getitem): Update.
11051 (field_name): Return gdbpy_ref. Use new_reference.
11052 (typy_iterator_iternext): Update.
11053
ea41325b
TT
110542019-01-03 Tom Tromey <tom@tromey.com>
11055
11056 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11057
2a3c71d6
TT
110582019-01-03 Tom Tromey <tom@tromey.com>
11059
11060 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11061 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11062 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11063 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11064 (pspy_set_type_printers): Likewise.
11065 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11066 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11067 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11068 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11069 (objfpy_set_type_printers): Likewise.
11070
5c329e6a
TT
110712019-01-03 Tom Tromey <tom@tromey.com>
11072
11073 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11074 (gdbpy_print_stack): Use gdbpy_err_fetch.
11075 * python/python-internal.h (class gdbpy_err_fetch): New class.
11076 (class gdbpy_enter) <m_error_type, m_error_value,
11077 m_error_traceback>: Remove.
11078 <m_error>: New member.
11079 (gdbpy_exception_to_string): Don't declare.
11080 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11081 * python/py-value.c (convert_value_from_python): Use
11082 gdbpy_err_fetch.
11083 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11084 gdbpy_exception_to_string.
11085 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11086 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11087 gdbpy_err_fetch.
11088
169bb27b
AB
110892019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11090
11091 * linux-nat.c (delete_lwp_cleanup): Delete.
11092 (struct lwp_deleter): New struct.
11093 (lwp_info_up): New typedef.
11094 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11095 lwp_info_up.
11096
a07c8880
AB
110972019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11098
11099 * linux-fork.c (class scoped_switch_fork_info): New class.
11100 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11101
26089c49
AB
111022019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11103
11104 * valops.c (find_overload_match): Remove use of null_cleanup, and
11105 calls to do_cleanups.
11106
06d3e5b0
AB
111072019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11108
11109 * compile/compile-cplus-types.c
11110 (compile_cplus_instance::decl_name): Handle changes to
11111 cp_func_name.
11112 * cp-support.c (cp_func_name): Update header comment, update
11113 return type.
11114 * cp-support.h (cp_func_name): Update return type in declaration.
11115 * valops.c (find_overload_match): Move temp_func local to top
11116 level of function and change its type. Use temp_func to hold and
11117 delete temporary string obtained from cp_func_name.
11118
66644cd3
AB
111192019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11120
11121 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11122 gdb::char_vector, remove cleanup, and update uses of `msg`.
11123
592d8c0a
JW
111242019-01-03 Jim Wilson <jimw@sifive.com>
11125
11126 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11127
c55d06ec
TT
111282019-01-02 Tom Tromey <tom@tromey.com>
11129
11130 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11131 (tdesc_parse_xml): Remove cleanups.
11132 * target-descriptions.h (make_cleanup_free_target_description):
11133 Don't declare.
11134 (target_desc_deleter): New struct.
11135 (target_desc_up): New typedef.
11136 * target-descriptions.c (target_desc_deleter::operator()): Rename
11137 from free_target_description.
11138 (make_cleanup_free_target_description): Remove.
11139
3a6ae42d
TT
111402019-01-02 Tom Tromey <tom@tromey.com>
11141
11142 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11143 constructor, destructor.
11144 (linespec_parser): Remove typedef.
11145 (~linespec_parser): Rename from linespec_parser_delete.
11146 (linespec_lex_to_end, linespec_complete_label)
11147 (linespec_complete): Update.
11148 (decode_line_full): Remove cleanups.
11149 (decode_line_1): Update.
11150
61fd3e73
TT
111512019-01-02 Tom Tromey <tom@tromey.com>
11152
11153 * python/python-internal.h (inferior_to_inferior_object): Change
11154 return type.
11155 * python/py-exitedevent.c (create_exited_event_object): Update.
11156 * python/py-inferior.c (inferior_to_inferior_object): Return
11157 gdbpy_ref.
11158 (python_new_inferior, python_inferior_deleted)
11159 (thread_to_thread_object, delete_thread_object)
11160 (build_inferior_list, gdbpy_selected_inferior): Update.
11161 * python/py-infthread.c (create_thread_object): Update. Also fail
11162 if inferior_to_inferior_object fails.
11163
d20172fc
SM
111642019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11165
11166 * inferior.h (class inferior) <displaced_step_state>: New field.
11167 * infrun.h (struct displaced_step_state): Move here from
11168 infrun.c. Initialize fields, add constructor.
11169 <inf>: Remove field.
11170 <reset>: New method.
11171 * infrun.c (struct displaced_step_inferior_state): Move to
11172 infrun.h.
11173 (displaced_step_inferior_states): Remove.
11174 (get_displaced_stepping_state): Adust.
11175 (displaced_step_in_progress_any_inferior): Adjust.
11176 (displaced_step_in_progress_thread): Adjust.
11177 (displaced_step_in_progress): Adjust.
11178 (add_displaced_stepping_state): Remove.
11179 (get_displaced_step_closure_by_addr): Adjust.
11180 (remove_displaced_stepping_state): Remove.
11181 (infrun_inferior_exit): Call displaced_step_state.reset.
11182 (use_displaced_stepping): Don't check for NULL.
11183 (displaced_step_prepare_throw): Call
11184 get_displaced_stepping_state.
11185 (displaced_step_fixup): Don't check for NULL.
11186 (prepare_for_detach): Don't check for NULL.
11187
e3319240
PW
111882019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11189
11190 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11191 in case of call that did not complete.
11192
5d36dfb9
AU
111932019-01-02 Andrey Utkin <autkin@undo.io>
11194
11195 * symfile.c (find_separate_debug_file): Fix search of debug files for
11196 remote debuggee.
11197
8833fbf0
TT
111982019-01-02 Tom Tromey <tom@tromey.com>
11199
11200 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11201 indentation.
11202 * python/py-frame.c (frapy_older): Remove cast.
11203 (frapy_newer): Likewise.
11204 * python/py-breakpoint.c (local_setattro): Remove cast.
11205 * python/py-arch.c (archpy_name): Remove local variable.
11206 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11207
4ada3dfd
JB
112082019-01-02 Joel Brobecker <brobecker@adacore.com>
11209
11210 * unittests/basic_string_view/element_access/char/empty.cc:
11211 Fix year range in copyright header.
11212
113b7b81
AB
112132019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11214
11215 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11216 Delete.
11217 <operator==>: Update with for removed field.
11218 <hash>: Likewise.
11219 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11220 <isa_features>: ...this.
11221 <abi_features>: New field.
11222 (riscv_isa_flen): Update comment.
11223 (riscv_abi_xlen): New declaration.
11224 (riscv_abi_flen): New declaration.
11225 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11226 isa_features.
11227 (riscv_abi_xlen): New function.
11228 (riscv_isa_flen): Update to get answer from isa_features.
11229 (riscv_abi_flen): New function.
11230 (riscv_has_fp_abi): Update to get answer from abi_features.
11231 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11232 xlen and flen.
11233 (riscv_call_info) <xlen, flen>: Update comment.
11234 (riscv_call_arg_struct): Remove invalid assertions
11235 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11236 is removed.
11237 (riscv_gdbarch_init): Gather isa features and abi features
11238 separately, ensure both match on the gdbarch when reusing an old
11239 gdbarch. Relax an error check to allow 32-bit abi float to run on
11240 a target with 64-bit float hardware.
11241
b18ca514
PW
112422019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11243
11244 * source.c (search_command_helper): Stop reverse search
11245 when line 1 has been searched.
11246
ec70d8db
PW
112472019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11248
11249 * record-full.c (record_full_base_target::close): Rewrite
11250 record_full_core_buf_list free logic.
11251
5b38f9c1
PW
112522019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11253
11254 * break-catch-syscall.c (print_one_catch_syscall): xfree
11255 the last text.
11256
66d91b39
JB
112572019-01-01 Joel Brobecker <brobecker@adacore.com>
11258
11259 * top.c (print_gdb_version): Update Copyright year in version
11260 message.
11261
42a4f53d
JB
112622019-01-01 Joel Brobecker <brobecker@adacore.com>
11263
11264 Update copyright year range in all GDB files.
11265
7e955d83 112662019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11267
5bbd631d 11268 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11269
5bbd631d 11270For older changes see ChangeLog-2018.
c906108c
SS
11271\f
11272Local Variables:
11273mode: change-log
11274left-margin: 8
11275fill-column: 74
11276version-control: never
57da7796 11277coding: utf-8
c906108c 11278End:
5bbd631d 11279