]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Delete invisible TUI windows
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fede5273
TT
12019-08-13 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-win.c (tui_resize_all): Call
4 tui_delete_invisible_windows.
5 * tui/tui-layout.c (show_layout): Call
6 tui_delete_invisible_windows.
7 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
8 * tui/tui-data.c (tui_delete_invisible_windows): New function.
9
22c3f490
TT
102019-08-13 Tom Tromey <tom@tromey.com>
11
12 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
13 tui_add_win_to_layout.
14
16cb7910
TT
152019-08-13 Tom Tromey <tom@tromey.com>
16
17 * tui/tui-layout.h (tui_default_win_height): Don't declare.
18 * tui/tui-layout.c (tui_default_win_height): Now static.
19
cc0c3ffb
TT
202019-08-13 Tom Tromey <tom@tromey.com>
21
22 * tui/tui-layout.c (show_layout): Unify all layout cases into a
23 single switch.
24 (show_source_disasm_command, show_source_or_disasm_and_command):
25 Don't check current layout.
26
3f3ffe54
TT
272019-08-13 Tom Tromey <tom@tromey.com>
28
29 * tui/tui-wingeneral.c (make_all_visible): Remove.
30 (tui_make_all_invisible): Simplify.
31 * tui/tui-layout.c (tui_make_all_invisible): Move from
32 tui-wingeneral.c; simplify.
33 (show_layout): Hoist call to tui_make_all_invisible.
34 (show_data): Don't call tui_make_all_invisible.
35
69258091
TT
362019-08-13 Tom Tromey <tom@tromey.com>
37
38 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
39 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
40
62cf57fe
TT
412019-08-13 Tom Tromey <tom@tromey.com>
42
43 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
44 tui-data.c.
45 (show_source_disasm_command, show_data)
46 (show_source_or_disasm_and_command): Don't use
47 tui_set_current_layout_to.
48 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
49 * tui/tui-data.c (current_layout, tui_current_layout): Move to
50 tui-layout.c.
51 (tui_set_current_layout_to): Remove.
52
2afade5d
TT
532019-08-13 Tom Tromey <tom@tromey.com>
54
55 * tui/tui-layout.c (tui_set_layout): Update.
56 * tui/tui-data.h (struct tui_layout_def): Remove.
57 (tui_layout_def): Don't declare.
58 * tui/tui-data.c (layout_def): Remove.
59 (tui_layout_def): Remove.
60
a3504e96
TT
612019-08-13 Tom Tromey <tom@tromey.com>
62
63 * tui/tui-winsource.h (struct tui_source_window_base)
64 <clear_detail>: No longer "override".
65 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
66 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
67 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
68 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
69 Remove.
70 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
71
29c92911
TT
722019-08-13 Tom Tromey <tromey@adacore.com>
73
74 * tracepoint.c: Don't include readline.h or history.h.
75
86c6b807
TT
762019-08-12 Tom Tromey <tom@tromey.com>
77
78 * configure: Rebuild.
79 * configure.ac: Check for readline 7.
80 * NEWS: Mention readline 7 requirement.
81 * README: Update.
82
5db2718c
TT
832019-08-12 Tom Tromey <tom@tromey.com>
84
85 * mingw-hdep.c (gdb_select): Remove readline hack.
86
dac36daf
PFC
872019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
88
89 * blockframe.c (find_pc_partial_function): Set *block to nullptr
90 when the function fails.
91
1022c627
AA
922019-08-09 Andreas Arnez <arnez@linux.ibm.com>
93
94 * s390-tdep.c (s390_type_align): New function.
95 (s390_gdbarch_init): Set it as type_align gdbarch method.
96
eba4caf2
TV
972019-08-09 Tom de Vries <tdevries@suse.de>
98
99 PR gdb/24591
100 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
101 pc_low with relocation offset.
102
123cd851
TT
1032019-08-07 Tom Tromey <tromey@adacore.com>
104
105 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
106 (print_frame_args): Update.
107 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
108 Update.
109 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
110 * frame.h (struct frame_arg): Add initializers.
111 <error>: Now a unique_xmalloc_ptr.
112
3d31bc39
AH
1132019-08-07 Alan Hayward <alan.hayward@arm.com>
114
115 * NEWS: Expand the Pointer Authentication entry.
116 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
117 (aarch64_frame_unmask_lr): ... to this.
118 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
119 Call aarch64_frame_unmask_lr.
120 * frame.c (struct frame_info): Add "masked" variable.
121 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
122 (fprint_frame): Check for masked pc.
123 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
124 declarations.
125 * python/py-framefilter.c (py_print_frame): Check for masked pc.
126 * stack.c (print_frame): Check for masked pc.
127
0cf9feb9
TT
1282019-08-06 Tom Tromey <tom@tromey.com>
129
130 * stabsread.c (patch_block_stabs, read_one_struct_field)
131 (read_enum_type): Use obstack_strndup.
132 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
133 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
134 * dwarf2read.c (guess_full_die_structure_name)
135 (anonymous_struct_prefix): Use obstack_strndup.
136 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
137 * c-exp.y (yylex): Use obstack_strndup.
138 * ada-exp.y (write_object_renaming, write_ambiguous_var)
139 (write_var_or_type): Use obstack_strndup.
140
efba19b0
TT
1412019-08-06 Tom Tromey <tom@tromey.com>
142
143 * symfile.c (reread_symbols): Use obstack_strdup.
144 * stabsread.c (read_type): Use obstack_strdup.
145 * gdb_obstack.h (obstack_strdup): New overload.
146 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
147 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
148 (dwarf2_canonicalize_name): Use obstack_strdup.
149 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
150 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
151 Use obstack_strdup.
152
f25102f7
TT
1532019-08-06 Tom Tromey <tom@tromey.com>
154
155 * gdb_obstack.h (obstack_strdup): Define.
156 * gdb_obstack.c (obstack_strdup): Don't define.
157
021887d8
TT
1582019-08-06 Tom Tromey <tom@tromey.com>
159
160 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
161 obstack_strdup.
162 * typeprint.c (typedef_hash_table::find_global_typedef): Use
163 obstack_strdup.
164 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
165 * stabsread.c (common_block_start): Use obstack_strdup.
166 * objfiles.c (set_objfile_main_name, objfile): Use
167 obstack_strdup.
168 * namespace.c (add_using_directive): Use obstack_strdup.
169 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
170 * jit.c (finalize_symtab): Use obstack_strdup.
171 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
172 (guess_partial_die_structure_name, partial_die_info::fixup)
173 (dwarf2_name): Use obstack_strdup.
174 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
175 obstack_strdup.
176 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
177 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
178 obstack_strdup.
179 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
180
d2834edc
PW
1812019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
182
183 * unittests/help-doc-selftests.c: New file.
184 * Makefile.in: Add the new file.
185
590042fc
PW
1862019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
187
188 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
189 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
190 the full first line, except when FOR_VALUE_PREFIX. In this case,
191 the trailing '.' is not output, and the first character is uppercased.
192 (print_help_for_command): Update call to print_doc_line.
193 (print_doc_of_command): Likewise.
194 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
195 * cli/cli-option.c (append_indented_doc): Do not append newline.
196 (build_help_option): Append newline after first appended_indented_doc
197 only if a second call is done.
198 (build_help): Append 2 new lines before each option, except the first
199 one.
200 * compile/compile.c (_initialize_compile): Add new lines after
201 %OPTIONS%, when not at the end of the help.
202 Change help doc or code
203 producing the help doc to respect the invariants.
204 * maint-test-options.c (_initialize_maint_test_options): Likewise.
205 Also removed the new line after 'Options:', as all other commands
206 do not put an empty line between 'Options:' and the first option.
207 * printcmd.c (_initialize_printcmd): Likewise.
208 * stack.c (_initialize_stack): Likewise.
209 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
210 incorrectly telling COMMAND is optional.
211 * ada-lang.c (_initialize_ada_language): Change help doc or code
212 producing the help doc to respect the invariants.
213 * ada-tasks.c (_initialize_ada_tasks): Likewise.
214 * breakpoint.c (_initialize_breakpoint): Likewise.
215 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
216 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
217 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
218 * cli/cli-style.c (cli_style_option::add_setshow_commands,
219 _initialize_cli_style): Likewise.
220 * corelow.c (core_target_info): Likewise.
221 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
222 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
223 * filesystem.c (_initialize_filesystem): Likewise.
224 * frame.c (_initialize_frame): Likewise.
225 * gnu-nat.c (add_task_commands): Likewise.
226 * infcall.c (_initialize_infcall): Likewise.
227 * infcmd.c (_initialize_infcmd): Likewise.
228 * interps.c (_initialize_interpreter): Likewise.
229 * language.c (_initialize_language): Likewise.
230 * linux-fork.c (_initialize_linux_fork): Likewise.
231 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
232 * maint.c (_initialize_maint_cmds): Likewise.
233 * memattr.c (_initialize_mem): Likewise.
234 * printcmd.c (_initialize_printcmd): Likewise.
235 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
236 _RegEx): Likewise.
237 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
238 * record-btrace.c (_initialize_record_btrace): Likewise.
239 * record-full.c (_initialize_record_full): Likewise.
240 * record.c (_initialize_record): Likewise.
241 * regcache-dump.c (_initialize_regcache_dump): Likewise.
242 * regcache.c (_initialize_regcache): Likewise.
243 * remote.c (add_packet_config_cmd, init_remote_threadtests,
244 _initialize_remote): Likewise.
245 * ser-tcp.c (_initialize_ser_tcp): Likewise.
246 * serial.c (_initialize_serial): Likewise.
247 * skip.c (_initialize_step_skip): Likewise.
248 * source.c (_initialize_source): Likewise.
249 * stack.c (_initialize_stack): Likewise.
250 * symfile.c (_initialize_symfile): Likewise.
251 * symtab.c (_initialize_symtab): Likewise.
252 * target-descriptions.c (_initialize_target_descriptions): Likewise.
253 * top.c (init_main): Likewise.
254 * tracefile-tfile.c (tfile_target_info): Likewise.
255 * tracepoint.c (_initialize_tracepoint): Likewise.
256 * tui/tui-win.c (_initialize_tui_win): Likewise.
257 * utils.c (add_internal_problem_command): Likewise.
258 * valprint.c (value_print_option_defs): Likewise.
259
404f2902
FCE
2602019-08-06 Frank Ch. Eigler <fche@redhat.com>
261
262 PR build/24886
263 * configure.ac: Drop enable-libmcheck support.
264 * configure, config.in: Rebuild.
265 * libmcheck.m4: Remove.
266 * acinclude.m4: Don't include it.
267 * Makefile.in: Don't distribute it.
268 * top.c (print_gdb_configuration): Don't mention it.
269
046bebe1
TT
2702019-08-06 Tom Tromey <tom@tromey.com>
271
272 * utils.c (set_output_style): Sometimes pass stream to
273 emit_style_escape.
274 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
275 * record-btrace.c (btrace_insn_history): Update.
276 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
277 method.
278 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
279 Update initializers.
280 <m_uiout>: New field.
281 <m_di>: Move lower.
282 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
283 Remove "uiout" parameter.
284 (dump_insns): Update.
285 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
286 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
287
ddbcedf5
CB
2882019-08-06 Christian Biesinger <cbiesinger@google.com>
289
290 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
291 (error_in_psymtab_expansion): Likewise.
292 (lookup_symbol_via_quick_fns): Likewise.
293 (basic_lookup_transparent_type_quick): Likewise.
294 (basic_lookup_transparent_type_1): Likewise.
295
b08b16c8
TT
2962019-08-06 Tom Tromey <tromey@adacore.com>
297
298 * source.c (last_source_error): Now bool.
299 (print_source_lines_base): Make "noprint" bool. Only open
300 source file when last_source_visited changes.
301
cb44333d
TT
3022019-08-06 Tom Tromey <tromey@adacore.com>
303
304 * annotate.c (annotate_source_line): Use g_source_cache.
305 * source-cache.c (source_cache::get_plain_source_lines): Change
306 parameters. Populate m_offset_cache.
307 (source_cache::ensure): New method.
308 (source_cache::get_line_charpos): New method.
309 (extract_lines): Move lower. Change parameters.
310 (source_cache::get_source_lines): Move lower.
311 * source-cache.h (class source_cache): Update comment.
312 <get_line_charpos>: New method.
313 <get_source_lines>: Update comment.
314 <clear>: Clear m_offset_cache.
315 <get_plain_source_lines>: Change parameters.
316 <ensure>: New method
317 <m_offset_cache>: New member.
318 * source.c (forget_cached_source_info_for_objfile): Update.
319 (info_source_command): Use g_source_cache.
320 (find_source_lines, open_source_file_with_line_charpos): Remove.
321 (print_source_lines_base, search_command_helper): Use g_source_cache.
322 * source.h (open_source_file_with_line_charpos): Don't declare.
323 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
324 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
325 Use g_source_cache.
326
872dceaa
TT
3272019-08-06 Tom Tromey <tromey@adacore.com>
328
329 * source-cache.c (source_cache::get_plain_source_lines):
330 Remove "first_line" and "last_line" parameters.
331 (source_cache::get_source_lines): Cache plain text.
332 * source-cache.h (class source_cache)
333 <get_plain_source_lines>: Update.
334
269249d9
TT
3352019-08-06 Tom Tromey <tromey@adacore.com>
336
337 * source-cache.c (extract_lines): No longer a method.
338 Changed type of parameter. Include final newline.
339 (selftests::extract_lines_test): New function.
340 (_initialize_source_cache): Likewise.
341 * source-cache.h (class source_cache)
342 <extract_lines>: Don't declare.
343
c0e8dcd8
TT
3442019-08-06 Tom Tromey <tromey@adacore.com>
345
346 * breakpoint.c (init_breakpoint_sal): Update.
347 (breakpoint): Update.
348 * breakpoint.h (struct breakpoint) <filter>: Now a
349 unique_xmalloc_ptr.
350
0b27c27d
CB
3512019-08-05 Christian Biesinger <cbiesinger@google.com>
352
353 * NEWS: Mention dictionary access on blocks.
354 * python/py-block.c (blpy_getitem): New function.
355 (block_object_as_mapping): New struct.
356 (block_object_type): Use new struct for tp_as_mapping field.
357
4ee94178
CB
3582019-08-05 Christian Biesinger <cbiesinger@google.com>
359
360 * objfiles.h (objfile): Add a comment describing partial symbols.
361
8abfcabc
TT
3622019-08-05 Tom Tromey <tromey@adacore.com>
363
364 * compile/compile.c (_initialize_compile): Use _(), not N_().
365 * thread.c (_initialize_thread): Use _(), not N_().
366 * stack.c (_initialize_stack): Use _(), not N_().
367 * printcmd.c (_initialize_printcmd): Use _(), not N_().
368
2b79f376
SM
3692019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * dwarf2read.c (struct dw2_symtab_iterator):
372 <want_specific_block>: Remove.
373 <block_index>: Change type to gdb::optional.
374 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
375 change type of BLOCK_INDEX parameter to gdb::optional.
376 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
377 (dw2_lookup_symbol): Don't pass argument for
378 WANT_SPECIFIC_BLOCK.
379 (dw2_expand_symtabs_for_function): Don't pass argument for
380 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
381 (class dw2_debug_names_iterator)
382 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
383 parameter, change BLOCK_INDEX type to gdb::optional.
384 <m_want_specific_block>: Remove.
385 <m_block_index>: Change type to gdb::optional.
386 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
387 gdb::optional. Re-write in function of gdb::optional.
388 (dw2_debug_names_lookup_symbol): Don't pass argument for
389 WANT_SPECIFIC_BLOCK.
390 (dw2_debug_names_expand_symtabs_for_function): Don't pass
391 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
392 BLOCK_INDEX.
393
ae60f04e
PW
3942019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
395
396 * NEWS: Mention changes to "info sources" command.
397
28cd9371
PW
3982019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
399
400 * symtab.c (filename_partial_match_opts): New struct type.
401 (struct output_source_filename_data): New members
402 regexp, c_regexp, partial_match.
403 (output_source_filename): Use new members to decide to print file.
404 (info_sources_option_defs): New variable.
405 (make_info_sources_options_def_group, print_info_sources_header,
406 info_sources_command_completer):
407 New functions.
408 (info_sources_command): Read new optional arguments.
409 (_initialize_symtab): Update info sources help.
410
ca683e3a
AO
4112019-08-02 Alexandre Oliva <oliva@adacore.com>
412
413 * ada-lang.c (exception_support_info_v0): Renamed from...
414 (default_exception_support_info): ... this. Create new
415 definition for v1.
416 (ada_has_this_exception_support): Look up catch_handlers_sym.
417 (ada_exception_support_info_sniffer): Try v0 after default.
418
f1264162
TT
4192019-08-01 Tom Tromey <tromey@adacore.com>
420
421 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
422 gdbarch.h.
423
0a7b2485
CB
4242019-08-01 Christian Biesinger <cbiesinger@google.com>
425
426 * s12z-tdep.c: Fix include path for s12z-opc.h.
427
c6bdbeb7
AH
4282019-08-01 Alan Hayward <alan.hayward@arm.com>
429
430 * NEWS: Require GNU make 3.82.
431
a2bd7b82
TT
4322019-07-16 Tom Tromey <tom@tromey.com>
433
434 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
435 declare.
436
aa3b6533
TT
4372019-07-30 Tom Tromey <tromey@adacore.com>
438
439 * block.c (contained_in): Remove BLOCK_FUNCTION check.
440
a1530dc7
KB
4412019-07-30 Kevin Buettner <kevinb@redhat.com>
442
443 * printcmd.c (print_address_symbolic): Print negative offsets.
444 (build_address_symbolic): Force signed arithmetic when computing
445 offset.
446
2906593f
CB
4472019-07-30 Christian Biesinger <cbiesinger@google.com>
448
449 PR/24474: Add a function to lookup static variables.
450 * NEWS: Mention this new function.
451 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
452 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
453 * python/python.c (python_GdbMethods): Add new function.
454
c620ed88
CB
4552019-07-29 Christian Biesinger <cbiesinger@google.com>
456
457 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
458 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
459 (objfpy_lookup_static_symbol): New function.
460 (objfile_object_methods): Add new functions.
461
bc4268a5
PW
4622019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
463
464 * NEWS: Mention 'set|show print frame-info'. Mention new
465 'presence' value for 'frame-arguments'. Mention new '-frame-info'
466 backtrace argument. Mention that python frame filtering code
467 is now consistent with what 'backtrace' command prints.
468
4b5e8d19
PW
4692019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
470
471 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
472 comments.
473 (print_frame_info_auto, print_frame_info_source_line,
474 print_frame_info_location, print_frame_info_source_and_location,
475 print_frame_info_location_and_address, print_frame_info_short_location):
476 New declarations.
477 (struct frame_print_options): New member print_frame_info.
478 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
479 * stack.h (get_user_print_what_frame_info): New declaration.
480 (frame_show_address): New declaration.
481 * stack.c (print_frame_arguments_choices): New value 'presence'.
482 (print_frame_info_auto, print_frame_info_source_line,
483 print_frame_info_location, print_frame_info_source_and_location,
484 print_frame_info_location_and_address, print_frame_info_short_location,
485 print_frame_info_choices, print_frame_info_print_what): New definitions.
486 (print_frame_args): Only print dots for args if print frame-arguments
487 is 'presence'.
488 (frame_print_option_defs): New element for "frame-info".
489 (get_user_print_what_frame_info): New function.
490 (frame_show_address): Make non static. Move comment to stack.h.
491 (print_frame_info_to_print_what): New function.
492 (print_frame_info): Update comment. Use fp_opts.print_frame_info
493 to decide what to print.
494 (backtrace_command_1): Handle the new print_frame_arguments_presence
495 value.
496 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
497 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
498 (py_print_frame): In non-mi mode, use LOCATION as default for
499 print_what, similarly to frame information printed directly by
500 backtrace command. Handle frame-info user option in non MI mode.
501
6bdfee81
KB
5022019-07-27 Kevin Buettner <kevinb@redhat.com>
503
504 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
505 Add case for debugging 32-bit target on 64-bit host. Revise
506 comment.
507
98a617f8
KB
5082019-07-27 Kevin Buettner <kevinb@redhat.com>
509
510 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
511 instead of find_function_entry_range_from_pc.
512
567238c9
KB
5132019-07-27 Kevin Buettner <kevinb@redhat.com>
514
515 * stack.c (find_frame_funname): Remove code which preferred
516 minsym over symtab sym in "certain pathological cases".
517
2dc80cf8
KB
518 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
519 parameter. Change type of "do_demangle" to bool.
520 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
521 Pass suitable "prefer_sym_over_minsym" flag to
522 build_address_symbolic(). Don't output "+" for negative offsets.
523 * printcmd.c (print_address_symbolic): Update invocation of
524 build_address_symbolic to include a "prefer_sym_over_minsym"
525 flag.
526 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
527 Restrict cases in which use of minimal symbol is preferred to that
528 of a found symbol. Update comments.
529
1aff7173
KB
530 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
531 for entry pc when entry pc is out of range for that FDE.
532
89b085ac
BC
5332019-07-26 Brian Callahan <bcallah@openbsd.org>
534
535 PR gdb/24839:
536 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
537 type.
538
f32feb4a
CB
5392019-07-25 Christian Biesinger <cbiesinger@google.com>
540
541 * python/py-objfile.c (add_separate_debug_file): Fix comment about
542 this function's Python signature.
543
544
5452019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
546
547 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
548 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
549 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
550 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
551 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
552
553
c54e4253
YS
5542019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
555
556 * h8300-tdep.c (h8300_register_name_common): New.
557 h8300_register_name): Use h8300_register_name_common.
558 (h8300s_register_name): Likewise.
559 (h8300sx_register_name): Likewise.
560 (h8300h_register_nam): New.
561 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
562
563
40eadf04
SP
5642019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
565
566 * arm-tdep.c (arm_skip_cmse_entry): New function.
567 (arm_is_sgstubs_section): New function.
568 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
569
bfa2a36d
TT
5702019-07-22 Tom Tromey <tom@tromey.com>
571
572 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
573 Don't self-assign.
574
a8e9d247
AB
5752019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
576
577 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
578 type_print.
579
eb86c5e2
AB
5802019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
581
582 * symtab.c (search_symbols): Adjust msymbol matching type arrays
583 so that GDB doesn't match any msymbols when searching in the
584 TYPES_DOMAIN.
585 (print_symbol_info): Print using typedef_print or type_print based
586 on the type of the symbol. Add updated FIXME comment moved from...
587 (_initialize_symtab): ... move and update FIXME comment to above.
588
a8eab7c6
AB
5892019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
590
591 * NEWS: Mention adding -q option to "info types".
592 * symtab.c (struct info_types_options): New struct.
593 (info_types_options_defs): New variable.
594 (make_info_types_options_def_group): New function.
595 (info_types_command): Use gdb::option framework to parse options.
596 (info_types_command_completer): New function.
597 (_initialize_symtab): Extend the help text on "info types" and
598 register command completer.
599
b4603c34
CB
6002019-07-21 Christian Biesinger <cbiesinger@google.com>
601
602 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
603 (lookup_symbol_in_objfile): Change int to block_enum and add a
604 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
605
c8cdc1e0
CB
6062019-07-20 Christian Biesinger <cbiesinger@google.com>
607
608 * MAINTAINERS (Write After Approval): Add self.
609
01e175fe
AB
6102019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
611
612 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
613 instruction to the dummy code region.
614
56f79b63
TT
6152019-07-19 Tom Tromey <tromey@adacore.com>
616
617 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
618 (ARGSUSED, PARAMS, __func__): Remove rules.
619
4c5aa8e0
AH
6202019-07-19 Alan Hayward <alan.hayward@arm.com>
621
622 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
623 * features/arm/arm-with-iwmmxt.c: Remove.
624 * features/arm/arm-with-iwmmxt.xml: Remove.
625 * features/arm/arm-with-m-fpa-layout.c: Remove.
626 * features/arm/arm-with-m-fpa-layout.xml: Remove.
627 * features/arm/arm-with-m-vfp-d16.c: Remove.
628 * features/arm/arm-with-m-vfp-d16.xml: Remove.
629 * features/arm/arm-with-m.c: Remove.
630 * features/arm/arm-with-m.xml: Remove.
631 * features/arm/arm-with-neon.c: Remove.
632 * features/arm/arm-with-neon.xml: Remove.
633 * features/arm/arm-with-vfpv2.c: Remove.
634 * features/arm/arm-with-vfpv2.xml: Remove.
635 * features/arm/arm-with-vfpv3.c: Remove.
636 * features/arm/arm-with-vfpv3.xml: Remove.
637
f42b2617
AH
6382019-07-19 Alan Hayward <alan.hayward@arm.com>
639
640 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
641
f29ec966
AH
6422019-07-19 Alan Hayward <alan.hayward@arm.com>
643
644 * arch/aarch32.c (aarch32_create_target_description): Create
645 target descriptions using features.
646 * arch/arm.c (arm_create_target_description)
647 (arm_create_mprofile_target_description): Likewise.
648 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
649
d105cce5
AH
6502019-07-19 Alan Hayward <alan.hayward@arm.com>
651
652 * Makefile.in: Add new files.
653 * aarch32-tdep.c: New file.
654 * aarch32-tdep.h: New file.
655 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
656 Call aarch32_read_description.
657 * arch/aarch32.c: New file.
658 * arch/aarch32.h: New file.
659 * arch/arm.c (arm_create_target_description)
660 (arm_create_mprofile_target_description): New function.
661 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
662 (arm_create_target_description)
663 (arm_create_mprofile_target_description): New declaration.
664 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
665 read_description functions.
666 * arm-linux-nat.c (arm_linux_nat_target::read_description):
667 Likewise.
668 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
669 * arm-tdep.c (tdesc_arm_list): New variable.
670 (arm_register_g_packet_guesses): Call create description functions.
671 (arm_read_description) (arm_read_mprofile_description): New
672 function.
673 * arm-tdep.h (arm_read_description)
674 (arm_read_mprofile_description): Add declaration.
675 * configure.tgt: Add new files.
676
afe09f0b
GL
6772019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
678
679 * top.c (new_ui_command): Open specified terminal just once.
680
cd215b2e
TT
6812019-07-18 Tom Tromey <tromey@adacore.com>
682
683 * symtab.c (main_name): Constify return type.
684 * symfile.c (set_initial_language): Update.
685 * symtab.h (main_name): Constify return type.
686
d8f68fcb
TT
6872019-07-17 Tom Tromey <tom@tromey.com>
688
689 * tui/tui-winsource.c (tui_update_source_window)
690 (tui_update_source_window_as_is)
691 (tui_update_source_windows_with_line): Remove return.
692 * tui/tui-disasm.c (tui_show_disassem)
693 (tui_show_disassem_and_update_source): Remove return.
694 * tui/tui.c (tui_reset): Remove return.
695 * tui/tui-wingeneral.c
696 (tui_check_and_display_highlight_if_needed): Remove return.
697
ca5af91e
TT
6982019-07-17 Tom Tromey <tom@tromey.com>
699
700 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
701
5104fe36
TT
7022019-07-17 Tom Tromey <tom@tromey.com>
703
704 * tui/tui-winsource.h (struct tui_exec_info_window)
705 (struct tui_source_window_base): Move from tui-data.h.
706 * tui/tui-winsource.c: Move many method definitions from
707 elsewhere. Remove "structuring" comments.
708 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
709 (tui_source_window_base::refresh_window): Move to
710 tui-winsource.c.
711 * tui/tui-win.c (tui_source_window_base::refresh_all)
712 (tui_source_window_base::update_tab_width)
713 (tui_source_window_base::set_new_height)
714 (tui_source_window_base::do_make_visible_with_new_height): Move to
715 tui-winsource.c.
716 * tui/tui-source.h: Update.
717 * tui/tui-source.c (tui_source_window_base::reset): Move to
718 tui-winsource.c.
719 * tui/tui-disasm.h: Update.
720 * tui/tui-data.h (struct tui_exec_info_window): Move to
721 tui-winsource.h.
722 (struct tui_source_window_base): Likewise.
723 * tui/tui-data.c (tui_source_window_base::clear_detail)
724 (tui_source_window_base, ~tui_source_window_base): Move to
725 tui-winsource.c.
726
daa15dde
TT
7272019-07-17 Tom Tromey <tom@tromey.com>
728
729 * tui/tui-win.c (tui_resize_all)
730 (tui_source_window_base::update_tab_width)
731 (tui_adjust_win_heights): Update.
732 (tui_win_info::make_invisible_and_set_new_height): Rename from
733 make_invisible_and_set_new_height.
734 * tui/tui-data.h (struct tui_win_info)
735 <make_invisible_and_set_new_height>: New method.
736
bfad4537
TT
7372019-07-17 Tom Tromey <tom@tromey.com>
738
739 * tui/tui.c: Update.
740 * tui/tui-source.h (struct tui_source_window): Move from
741 tui-data.h.
742 * tui/tui-layout.c: Update.
743 * tui/tui-disasm.c: Update.
744 * tui/tui-data.h (struct tui_source_window): Move to
745 tui-source.h.
746
88f7e873
TT
7472019-07-17 Tom Tromey <tom@tromey.com>
748
749 * tui/tui-disasm.h (struct tui_disasm_window): Move from
750 tui-data.h.
751 * tui/tui-data.h (struct tui_disasm_window): Move to
752 tui-disasm.h.
753
96bd6233
TT
7542019-07-17 Tom Tromey <tom@tromey.com>
755
756 * tui/tui-regs.h (struct tui_data_item_window): Move from
757 tui-data.h.
758 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
759 * tui/tui-data.h (struct tui_data_item_window): Move to
760 tui-regs.h.
761 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
762
ce38393b
TT
7632019-07-17 Tom Tromey <tom@tromey.com>
764
765 * tui/tui.c: Update.
766 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
767 (tui_cmd_window::max_height): Move to tui-command.c.
768 * tui/tui-layout.c: Update.
769 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
770 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
771 tui-command.c.
772 * tui/tui-command.h (struct tui_cmd_window): Move from
773 tui-data.h.
774 * tui/tui-command.c: Remove "structuring" comments.
775 (tui_cmd_window::clear_detail)
776 (tui_cmd_window::do_make_visible_with_new_height)
777 (tui_cmd_window::max_height): Move from elsewhere.
778
2d8b51cb
TT
7792019-07-17 Tom Tromey <tom@tromey.com>
780
781 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
782 Now static.
783 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
784 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
785
18ab23af
TT
7862019-07-17 Tom Tromey <tom@tromey.com>
787
788 * tui/tui.c: Update.
789 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
790 tui-regs.c.
791 * tui/tui-windata.h: Remove file.
792 * tui/tui-windata.c: Remove file.
793 * tui/tui-win.c (tui_data_window::set_new_height)
794 (tui_data_window::do_make_visible_with_new_height): Move to
795 tui-regs.c.
796 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
797 * tui/tui-regs.c: Remove "structuring" comments.
798 (tui_data_window::first_data_item_displayed)
799 (tui_data_window::delete_data_content_windows)
800 (tui_data_window::erase_data_content)
801 (tui_data_window::display_all_data)
802 (tui_data_window::refresh_all)
803 (tui_data_window::do_scroll_vertical)
804 (tui_data_window::clear_detail, tui_data_window::set_new_height)
805 (tui_data_window::do_make_visible_with_new_height)
806 (tui_data_window::refresh_window): Move from elsewhere.
807 (_initialize_tui_regs): Move to end of file.
808 * tui/tui-layout.c: Update.
809 * tui/tui-hooks.c: Update.
810 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
811 * tui/tui-data.c (tui_data_window::clear_detail): Move to
812 tui-regs.c.
813 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
814
88b7e7cc
TT
8152019-07-17 Tom Tromey <tom@tromey.com>
816
817 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
818 seen.
819
0fcd3711
TT
8202019-07-17 Tom Tromey <tom@tromey.com>
821
822 * tui/tui-win.c (tui_source_window_base::set_new_height)
823 (tui_source_window_base::do_make_visible_with_new_height): Use
824 m_has_locator field directly.
825 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
826 method.
827 (struct tui_source_window_base) <has_locator>: Likewise.
828
4a38112d
TT
8292019-07-17 Tom Tromey <tom@tromey.com>
830
831 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
832 Don't declare.
833 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
834 Remove.
835 * tui/tui-win.c (tui_source_window_base::set_new_height)
836 (tui_source_window_base::set_new_height)
837 (make_invisible_and_set_new_height)
838 (tui_source_window_base::do_make_visible_with_new_height)
839 (tui_source_window_base::do_make_visible_with_new_height):
840 Update.
841 * tui/tui-layout.c (show_source_disasm_command, show_data)
842 (show_source_or_disasm_and_command): Update.
843 * tui/tui-layout.c (show_layout): Update.
844
09129226
TT
8452019-07-17 Tom Tromey <tom@tromey.com>
846
847 * tui/tui-layout.c (make_data_window): Remove.
848 (show_data): Unify creation and re-initialization cases.
849
4a8a5e84
TT
8502019-07-17 Tom Tromey <tom@tromey.com>
851
852 * tui/tui-layout.c (make_source_window, make_disasm_window):
853 Remove.
854 (show_data): Unify creation and re-initialization cases.
855
76d2be8e
TT
8562019-07-17 Tom Tromey <tom@tromey.com>
857
858 * tui/tui-layout.c (make_command_window): Remove.
859 (show_source_disasm_command, show_source_or_disasm_and_command):
860 Unify creation and re-initialization cases.
861
890b8bde
TT
8622019-07-17 Tom Tromey <tom@tromey.com>
863
864 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
865 creation and re-initialization cases.
866
2cdfa113
TT
8672019-07-17 Tom Tromey <tom@tromey.com>
868
869 * tui/tui-regs.c (tui_get_register): Return void.
870
8e3cfd09
TT
8712019-07-17 Tom Tromey <tom@tromey.com>
872
873 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
874 Simplify.
875
f4e04977
TT
8762019-07-17 Tom Tromey <tom@tromey.com>
877
878 * tui/tui-layout.c (show_source_disasm_command): Simplify window
879 resetting.
880
0379b883
TT
8812019-07-17 Tom Tromey <tom@tromey.com>
882
883 * tui/tui.h (tui_set_layout_by_name): Don't declare.
884 * tui/tui-regs.c (tui_reg_layout): New function.
885 (tui_show_registers, tui_reg_command): Use it.
886 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
887 (tui_layout_command): Rename from tui_set_layout_by_name. Change
888 parameters.
889 (tui_layout_command): Remove.
890
b7fbad91
TT
8912019-07-17 Tom Tromey <tom@tromey.com>
892
893 * tui/tui-layout.h (tui/tui-layout): Return void.
894 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
895
4e1e56b9
TT
8962019-07-17 Tom Tromey <tom@tromey.com>
897
898 * tui/tui-layout.c (show_source_disasm_command, show_data):
899 Update.
900 (reset_locator): Remove.
901 (show_source_or_disasm_and_command): Update.
902
1e0c09ba
TT
9032019-07-17 Tom Tromey <tom@tromey.com>
904
905 * tui/tui-source.c (tui_source_window_base::reset): Remove
906 win_type parameter.
907 * tui/tui-layout.c (make_command_window, make_source_window)
908 (make_disasm_window, make_data_window)
909 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
910 (reset_locator, show_source_or_disasm_and_command): Update.
911 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
912 win_type parameter.
913 (struct tui_source_window_base) <reset>: Likewise.
914
1bf605de
TT
9152019-07-17 Tom Tromey <tom@tromey.com>
916
917 * tui/tui-layout.c (show_source_disasm_command): Use
918 reset_locator.
919 (reset_locator): New function.
920 (init_and_make_win): Remove.
921 (show_source_or_disasm_and_command): Use reset_locator.
922
098f9ed4
TT
9232019-07-17 Tom Tromey <tom@tromey.com>
924
925 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
926 condition.
927 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
928 Remove condition.
929 * tui/tui-source.c (tui_source_window_base::reset): New method.
930 * tui/tui-layout.c (make_command_window): Don't call
931 init_and_make_win.
932 (make_source_window, make_disasm_window): Don't call
933 make_source_or_disasm_window.
934 (make_data_window): Don't call init_and_make_win. Change calling
935 convention.
936 (show_source_disasm_command, show_data): Simplify.
937 (make_source_or_disasm_window): Remove.
938 (show_source_or_disasm_and_command): Simplify.
939 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
940 (struct tui_source_window_base) <reset>: Likewise.
941 <execution_info>: Remove initializer.
942 * tui/tui-data.c (tui_source_window_base): Initialize
943 execution_info.
944
80110957
TT
9452019-07-17 Tom Tromey <tom@tromey.com>
946
947 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
948 variable.
949
cf82af05
TT
9502019-07-17 Tom Tromey <tom@tromey.com>
951
952 * tui/tui.c (tui_rl_other_window): Update.
953 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
954 superclass method first. Always iterate over regs_content.
955 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
956 method.
957 * tui/tui-win.c (tui_set_focus_command): Update.
958
01aeb396
TT
9592019-07-17 Tom Tromey <tom@tromey.com>
960
961 * tui/tui-win.c (tui_set_focus_command): Rename from
962 tui_set_focus. Call tui_enable.
963 (tui_set_focus_command): Remove.
964
fd6c75ee
TT
9652019-07-17 Tom Tromey <tom@tromey.com>
966
967 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
968 refresh_window.
969 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
970 touchwin.
971 (tui_data_window::refresh_window): Call refresh_window on data
972 items. Always call superclass refresh_window.
973 (tui_win_info::refresh): Remove.
974 (tui_source_window_base::refresh_window): Update.
975 (tui_refresh_all): Update.
976 * tui/tui-layout.c (show_source_disasm_command): Remove call to
977 refresh_window.
978 (show_source_or_disasm_and_command): Likewise.
979 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
980 (struct tui_source_window_base) <refresh>: Likewise.
981
f6cc34a9
TT
9822019-07-17 Tom Tromey <tom@tromey.com>
983
984 * tui/tui-winsource.c (tui_clear_source_content)
985 (tui_show_source_content): Update.
986 * tui/tui-source.c (tui_source_window::showing_source_p): Check
987 whether content is empty.
988 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
989 Remove.
990
f31ec9af
TT
9912019-07-17 Tom Tromey <tom@tromey.com>
992
993 * tui/tui-winsource.c (tui_erase_source_content): Clear the
994 window's contents.
995 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
996 * tui/tui-source.c (tui_set_source_content_nil): Remove.
997
d1b6f1e5
TT
9982019-07-17 Tom Tromey <tom@tromey.com>
999
1000 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1001 (struct tui_data_item_window): Update.
1002
d9743a13
TT
10032019-07-17 Tom Tromey <tom@tromey.com>
1004
1005 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1006 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1007 defines.
1008
caf0bc4e
TT
10092019-07-17 Tom Tromey <tom@tromey.com>
1010
1011 * tui/tui-winsource.h (tui_erase_source_content)
1012 (tui_clear_source_content): Remove "display_prompt" parameter.
1013 * tui/tui-winsource.c (tui_update_source_window_as_is)
1014 (tui_update_source_windows_with_addr): Update.
1015 (tui_clear_source_content): Remove "display_prompt" parameter.
1016 (tui_erase_source_content): Likewise. Simplify.
1017 (tui_show_source_content): Update.
1018 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1019 * tui/tui-stack.c (tui_show_frame_info): Update.
1020 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1021 Remove defines.
1022
9d391078
TT
10232019-07-17 Tom Tromey <tom@tromey.com>
1024
1025 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1026 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1027 parameter.
1028 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1029 parameter.
1030
a38da35d
TT
10312019-07-17 Tom Tromey <tom@tromey.com>
1032
1033 * tui/tui-winsource.c (tui_clear_source_content)
1034 (tui_show_source_content, tui_show_exec_info_content)
1035 (tui_clear_exec_info_content): Update.
1036 * tui/tui-stack.c (tui_show_locator_content): Update.
1037 (tui_show_frame_info): Update.
1038 * tui/tui-source.h (tui_source_window): Don't declare.
1039 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1040 from tui_source_is_displayed.
1041 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1042 Remove field.
1043 (struct tui_source_window_base) <content_in_use>: New field. Now
1044 bool.
1045 (struct tui_source_window) <showing_source_p>: New method.
1046 (TUI_SRC_WIN): Change cast.
1047 * tui/tui-data.c (tui_initialize_static_data): Update.
1048
c2cd8994
TT
10492019-07-17 Tom Tromey <tom@tromey.com>
1050
1051 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1052 location_matches_p.
1053 * tui/tui-source.c (tui_source_window::location_matches_p): New
1054 method.
1055 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1056 method.
1057 * tui/tui-data.h (struct tui_source_window_base)
1058 <location_matches_p>: New method.
1059 (struct tui_source_window, struct tui_disasm_window)
1060 <location_matches_p>: Likewise.
1061
4dde7b34
TT
10622019-07-17 Tom Tromey <tom@tromey.com>
1063
1064 * tui/tui-win.c (tui_set_win_height_command): Rename from
1065 tui_set_win_height.
1066 (tui_set_win_height_command): Remove.
1067
b73dd877
TT
10682019-07-17 Tom Tromey <tom@tromey.com>
1069
1070 * tui/tui-source.c (tui_source_window): New constructor. Add
1071 observer.
1072 (~tui_source_window): New destructor.
1073 (tui_source_window::style_changed): New method.
1074 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1075 (tui_attach_detach_observers): Update.
1076 * tui/tui-data.h (struct tui_source_window): Make constructor not
1077 inline. Add destructor.
1078 (struct tui_source_window) <style_changed>: New method.
1079 <m_observable>: New member.
1080
ae2b5380
TT
10812019-07-17 Tom Tromey <tom@tromey.com>
1082
1083 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1084 * tui/tui-win.c (tui_resize_all): Fix typo.
1085
1ce3e844
TT
10862019-07-17 Tom Tromey <tom@tromey.com>
1087
1088 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1089 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1090 (tui_refresh_all): Remove "list" parameter. Use foreach.
1091 * tui/tui-win.c (window_name_completer): Use foreach.
1092 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1093 (update_tab_width): Likewise.
1094 * tui/tui-layout.c (show_layout): Update.
1095 * tui/tui-data.h (class tui_window_iterator): New.
1096 (struct all_tui_windows): New.
1097 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1098
fe3eaf1c
TT
10992019-07-17 Tom Tromey <tom@tromey.com>
1100
1101 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1102 parameter. Don't reference globals.
1103 (tui_reg_command): Update.
1104
368c1354
TT
11052019-07-17 Tom Tromey <tom@tromey.com>
1106
1107 * tui/tui-regs.c (tui_show_registers): Simplify.
1108
e80cd204
TT
11092019-07-17 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-regs.c (tui_show_registers): Update.
1112 (tui_show_register_group): Add win_info parameter.
1113
aca2dd16
TT
11142019-07-17 Tom Tromey <tom@tromey.com>
1115
1116 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1117 Rename from tui_display_reg_element_at_line.
1118 (tui_data_window::display_registers_from_line): Update.
1119 * tui/tui-data.h (struct tui_data_window)
1120 <display_reg_element_at_line>: New method.
1121
517e9505
TT
11222019-07-17 Tom Tromey <tom@tromey.com>
1123
1124 * tui/tui-regs.h (tui_display_registers_from)
1125 (tui_display_registers_from_line): Don't declare.
1126 * tui/tui-windata.c (tui_data_window::display_all_data)
1127 (tui_data_window::refresh_all)
1128 (tui_data_window::do_scroll_vertical): Update.
1129 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1130 from tui_display_registers_from.
1131 (tui_display_reg_element_at_line): Update.
1132 (tui_data_window::display_registers_from_line): Rename from
1133 tui_display_registers_from_line.
1134 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1135 display_registers_from_line>: New methods.
1136
f76d8b19
TT
11372019-07-17 Tom Tromey <tom@tromey.com>
1138
1139 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1140 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1141 from tui_erase_data_content.
1142 (tui_data_window::display_all_data)
1143 (tui_data_window::refresh_all)
1144 (tui_data_window::do_scroll_vertical): Update.
1145 * tui/tui-regs.c (tui_show_registers): Update.
1146 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1147 New method.
1148
b4094625
TT
11492019-07-17 Tom Tromey <tom@tromey.com>
1150
1151 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1152 declare.
1153 * tui/tui-windata.c
1154 (tui_data_window::delete_data_content_windows): Rename from
1155 tui_delete_data_content_windows.
1156 (tui_data_window::display_all_data)
1157 (tui_data_window::do_scroll_vertical): Update.
1158 * tui/tui-data.h (struct tui_data_window)
1159 <delete_data_content_windows>: New method.
1160
c223a729
TT
11612019-07-17 Tom Tromey <tom@tromey.com>
1162
1163 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1164 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1165
50daf268
TT
11662019-07-17 Tom Tromey <tom@tromey.com>
1167
1168 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1169 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1170 from tui_display_all_data.
1171 * tui/tui-win.c
1172 (tui_data_window::do_make_visible_with_new_height): Update.
1173 * tui/tui-regs.c (tui_show_registers): Update.
1174 * tui/tui-layout.c (tui_set_layout): Update.
1175 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1176 method.
1177
df5f8cab
TT
11782019-07-17 Tom Tromey <tom@tromey.com>
1179
1180 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1181 * tui/tui-windata.c (tui_display_data_from): Remove.
1182 (tui_data_window::refresh_all): Update.
1183
80cb6c27
TT
11842019-07-17 Tom Tromey <tom@tromey.com>
1185
1186 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1187 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1188 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1189 tui_display_registers_from_line.
1190 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1191 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1192 "force_display" parameter.
1193
baff0c28
TT
11942019-07-17 Tom Tromey <tom@tromey.com>
1195
1196 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1197 declare.
1198 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1199 Rename from tui_first_reg_element_no_inline.
1200 (tui_display_reg_element_at_line)
1201 (tui_display_registers_from_line): Update.
1202 * tui/tui-data.h (struct tui_data_window)
1203 <first_reg_element_no_inline>: New method.
1204
3b23c5f2
TT
12052019-07-17 Tom Tromey <tom@tromey.com>
1206
1207 * tui/tui-windata.c (tui_display_data_from)
1208 (tui_data_window::do_scroll_vertical): Update.
1209 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1210 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1211 Rename from tui_line_from_reg_element_no.
1212 (tui_display_registers_from_line): Update.
1213 * tui/tui-data.h (struct tui_data_window)
1214 <line_from_reg_element_no>: New method.
1215
0b5ec218
TT
12162019-07-17 Tom Tromey <tom@tromey.com>
1217
1218 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1219 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1220 tui_last_regs_line_no.
1221 (tui_display_reg_element_at_line)
1222 (tui_display_registers_from_line): Update.
1223 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1224 method.
1225
0807ab7b
TT
12262019-07-17 Tom Tromey <tom@tromey.com>
1227
1228 PR tui/24722:
1229 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1230 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1231 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1232 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1233 (tui_update_breakpoint_info): Likewise.
1234 * tui/tui-hooks.c (tui_event_create_breakpoint)
1235 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1236 Update.
1237
9ad7fdef
TT
12382019-07-17 Tom Tromey <tom@tromey.com>
1239
1240 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1241
5813316f
TT
12422019-07-17 Tom Tromey <tom@tromey.com>
1243
1244 * tui/tui-winsource.c (tui_update_source_window_as_is)
1245 (tui_update_source_windows_with_addr): Update.
1246 * tui/tui-source.h (tui_set_source_content)
1247 (tui_show_symtab_source): Add "win_info" parameter.
1248 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1249 parameter.
1250 (tui_show_symtab_source): Likewise.
1251
00e264e7
TT
12522019-07-17 Tom Tromey <tom@tromey.com>
1253
1254 * tui/tui-wingeneral.c
1255 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1256
06210ce4
TT
12572019-07-17 Tom Tromey <tom@tromey.com>
1258
1259 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1260 (struct tui_cmd_window) <can_scroll>: New method.
1261 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1262 method.
1263
381befee
TT
12642019-07-17 Tom Tromey <tromey@adacore.com>
1265
1266 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1267 do_field_signed>: Rename. Change type of "value".
1268 * ui-out.c (ui_out::field_signed): Rename from field_int.
1269 Change type of "value".
1270 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1271 type of "value".
1272 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1273 do_field_int. Change type of "value".
1274 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1275 do_field_int. Change type of "value".
1276 * tracepoint.c (trace_status_mi, tfind_1)
1277 (print_one_static_tracepoint_marker): Update.
1278 * thread.c (print_thread_info_1, print_selected_thread_frame):
1279 Update.
1280 * stack.c (print_frame, print_frame_info): Update.
1281 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1282 Update.
1283 * source.c (print_source_lines_base): Update.
1284 * skip.c (info_skip_command): Update.
1285 * record-btrace.c (btrace_ui_out_decode_error)
1286 (btrace_call_history_src_line): Update.
1287 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1288 Update.
1289 * progspace.c (print_program_space): Update.
1290 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1291 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1292 do_field_int. Change type of "value".
1293 * mi/mi-out.c (mi_ui_out::do_table_begin)
1294 (mi_ui_out::do_table_header): Update.
1295 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1296 type of "value".
1297 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1298 (mi_cmd_data_list_changed_registers, output_register)
1299 (mi_cmd_data_read_memory, mi_load_progress)
1300 (mi_cmd_trace_frame_collected): Update.
1301 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1302 Update.
1303 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1304 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1305 (mi_cmd_var_list_children, varobj_update_one): Update.
1306 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1307 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1308 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1309 * inferior.c (print_inferior): Update.
1310 * gdb_bfd.c (print_one_bfd): Update.
1311 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1312 Update.
1313 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1314 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1315 do_field_int. Change type of "value".
1316 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1317 do_field_int. Change type of "value".
1318 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1319 (print_one_breakpoint_location, print_it_catch_fork)
1320 (print_one_catch_fork, print_it_catch_vfork)
1321 (print_one_catch_vfork, print_it_catch_solib)
1322 (print_it_catch_exec, print_it_ranged_breakpoint)
1323 (print_mention_watchpoint, print_mention_masked_watchpoint)
1324 (bkpt_print_it, update_static_tracepoint): Update.
1325 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1326 * break-catch-syscall.c (print_it_catch_syscall): Update.
1327 * ada-tasks.c (print_ada_task_info): Update.
1328 * ada-lang.c (print_it_exception, print_mention_exception):
1329 Update.
1330
6b78c3f8
AB
13312019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 PR breakpoints/24541
1334 * gdbarch.c: Regenerate.
1335 * gdbarch.h: Regenerate.
1336 * gdbarch.sh: Adjust return type and parameter types for
1337 'stap_adjust_register'.
1338 (i386_stap_adjust_register): Adjust signature and return new
1339 register name.
1340 * stap-probe.c (stap_parse_register_operand): Adjust use of
1341 'gdbarch_stap_adjust_register'.
1342
d72a9b85
TT
13432019-07-17 Tom Tromey <tromey@adacore.com>
1344
1345 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1346 declare VEC.
1347 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1348 std::vector.
1349 (struct s390_process_info): Add initializers.
1350 (s390_add_process): Use new.
1351 (s390_linux_nat_target::low_forget_process): Use delete.
1352 (s390_linux_nat_target::low_new_fork)
1353 (s390_linux_nat_target::stopped_by_watchpoint)
1354 (s390_linux_nat_target::low_prepare_to_resume)
1355 (s390_linux_nat_target::insert_watchpoint)
1356 (s390_linux_nat_target::insert_hw_breakpoint)
1357 (s390_linux_nat_target::remove_watchpoint)
1358 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1359
206e6c58
JB
13602019-07-16 John Baldwin <jhb@FreeBSD.org>
1361
1362 * aarch64-fbsd-nat.c: Include regcache.h.
1363 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1364 argument.
1365 (aarch64_fbsd_nat_target::fetch_registers)
1366 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1367 variable.
1368 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1369
cbde90f2
JB
13702019-07-16 John Baldwin <jhb@FreeBSD.org>
1371
1372 * fbsd-nat.c: Include gdbarch.h.
1373
07128006
TT
13742019-07-15 Tom Tromey <tromey@adacore.com>
1375
1376 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1377
1f77b012
TT
13782019-07-15 Tom Tromey <tromey@adacore.com>
1379
1380 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1381 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1382 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1383 * cli-out.c (cli_ui_out::do_field_int): New method.
1384 * ui-out.c (ui_out::field_unsigned): New method.
1385 * symfile.c (generic_load): Use field_unsigned.
1386 (print_transfer_performance): Likewise.
1387 * record-btrace.c (ui_out_field_uint): Remove.
1388 (btrace_call_history_insn_range, btrace_call_history): Use
1389 field_unsigned.
1390 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1391 field_unsigned.
1392 * ui-out.h (class ui_out) <field_unsigned>: New method.
1393 <do_field_unsigned>: Likewise.
1394
33eca680
TT
13952019-07-15 Tom Tromey <tromey@adacore.com>
1396
1397 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1398 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1399 * target.c (flash_erase_command): Use field_string.
1400 * infrun.c (print_signal_received_reason): Use field_string.
1401 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1402 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1403 field_string.
1404 * ada-tasks.c (print_ada_task_info): Use field_string.
1405
ca8d69be
TT
14062019-07-15 Tom Tromey <tromey@adacore.com>
1407
1408 * target.c (flash_erase_command): Use field_core_addr.
1409 * symfile.c (generic_load): Use field_core_addr.
1410 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1411 Use field_core_addr.
1412 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1413 field_core_addr.
1414
0d4e84ed
AB
14152019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1416
1417 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1418 value if its desired type is smaller than a CORE_ADDR and signed.
1419
9a49df9d
AB
14202019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1421
1422 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1423 of changes to field names, and use new is_reference field to
1424 decide if a property is a reference or not.
1425 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1426 field.
1427 (struct dwarf2_property_baton): Update header comment, rename
1428 'referenced_type' to 'property_type' and update comments.
1429 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1430 default property type, store in property baton, update to take
1431 accound of renamed field.
1432 (read_func_scope): Update call to attr_to_dynamic_prop.
1433 (read_array_type): Likewise.
1434 (dwarf2_per_cu_addr_sized_int_type): New function.
1435 (read_subrange_index_type): Move type finding code to
1436 dwarf2_per_cu_addr_sized_int_type.
1437 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1438 (dwarf2_per_cu_addr_type): New function.
1439 (set_die_type): Update calls to attr_to_dynamic_prop.
1440
b86352cf
AB
14412019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1442
1443 * dwarf2read.c (read_subrange_index_type): New function.
1444 (read_subrange_type): Move code into new function and call it.
1445 * gdbtypes.c (create_range_type): Add some asserts.
1446
603490bf
AB
14472019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1448
1449 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1450 update return statements.
1451 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1452 declaration, and update comment to match.
1453 * gdbtypes.c (resolve_dynamic_array): Update call to
1454 dwarf2_evaluate_property to match new return type.
1455
592f9d27
AB
14562019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1457
1458 * valarith.c (value_subscripted_rvalue): Change lowerbound
1459 parameter type from int to LONGEST.
1460 * value.h (value_subscripted_rvalue): Likewise in declaration.
1461
60cfcb20
AB
14622019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1463
1464 * cli/cli-utils.c (info_print_command_completer): New function.
1465 * cli/cli-utils.h: Add 'completer.h' include, and forward
1466 declaration for 'struct cmd_list_element'.
1467 (info_print_command_completer): Declare.
1468 * stack.c (_initialize_stack): Add completer for 'info locals' and
1469 'info args'.
1470 * symtab.c (_initialize_symtab): Add completer for 'info
1471 variables' and 'info functions'.
1472 * NEWS: Mention completion for additional info commands.
1473
b16507e0
AB
14742019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1475
1476 * cli/cli-utils.c (extract_info_print_args): Delete.
1477 (extract_arg_maybe_quoted): Delete.
1478 (info_print_options_defs): New variable.
1479 (make_info_print_options_def_group): New function.
1480 (extract_info_print_options): Define new function.
1481 * cli/cli-utils.h (extract_info_print_args): Delete.
1482 (struct info_print_options): New structure.
1483 (extract_info_print_options): Declare new function.
1484 * stack.c (info_locals_command): Update to use new
1485 extract_info_print_options, also add a header comment.
1486 (info_args_command): Likewise.
1487 * symtab.c (info_variables_command): Likewise.
1488 (info_functions_command): Likewise.
1489
021d8588
AB
14902019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1493 to extract string arguments.
1494 * common/common-utils.c (extract_string_maybe_quoted): New function.
1495 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1496
b777eb6d
TT
14972019-07-11 Tom Tromey <tromey@adacore.com>
1498
1499 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1500 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1501 * top.h (gdbinit): Don't declare.
1502 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1503 into...
1504 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1505 * top.c (gdb_init): Don't call init_cli_cmds.
1506 (gdbinit): Remove.
1507 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1508
72ee03ff
TT
15092019-07-11 Tom Tromey <tromey@adacore.com>
1510
1511 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1512 after it has been moved.
1513
00db9531
SM
15142019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1515
1516 * valops.c (value_must_coerce_to_target): Change return type to
1517 bool.
1518 * value.h (value_must_coerce_to_target): Likewise.
1519
f2478a7e
SM
15202019-07-10 Simon Marchi <simon.marchi@efficios.com>
1521
1522 * breakpoint.c (is_hardware_watchpoint): Remove
1523 forward-declaration.
1524 (is_masked_watchpoint): Change return type to bool.
1525 (is_tracepoint): Likewise.
1526 (is_breakpoint): Likewise.
1527 (is_hardware_watchpoint): Likewise.
1528 (is_watchpoint): Likewise.
1529 (is_no_memory_software_watchpoint): Likewise.
1530 (is_catchpoint): Likewise.
1531 (breakpoint_1): Make FILTER parameter's return type bool.
1532 is_masked_watchpoint): Change return type to bool.
1533 (save_breakpoints): Make FILTER parameter's return type bool.
1534 * breakpoint.h (is_breakpoint): Change return type to bool.
1535 (is_watchpoint): Likewise.
1536 (is_catchpoint): Likewise.
1537 (is_tracepoint): Likewise.
1538
0d12e84c
TT
15392019-07-10 Tom Tromey <tom@tromey.com>
1540
1541 * defs.h: Don't include gdbarch.h.
1542 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1543 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1544 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1545 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1546 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1547 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1548 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1549 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1550 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1551 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1552 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1553 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1554 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1555 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1556 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1557 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1558 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1559 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1560 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1561 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1562 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1563 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1564 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1565 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1566 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1567 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1568 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1569
f06f1252
TT
15702019-07-10 Tom Tromey <tromey@adacore.com>
1571
1572 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1573 * breakpoint.c (init_ada_exception_breakpoint): Register as
1574 bp_catchpoint.
1575 (print_one_breakpoint_location, print_one_breakpoint): Use
1576 is_ada_exception_catchpoint.
1577 * ada-lang.c (class ada_catchpoint_location): Pass
1578 bp_loc_software_breakpoint to bp_location constructor.
1579 (is_ada_exception_catchpoint): New function.
1580
7a5d944b
TT
15812019-07-10 Tom Tromey <tromey@adacore.com>
1582
1583 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1584 VEC.
1585 (struct arm_exidx_entry): New method operator<.
1586 (struct arm_exidx_data) <section_maps>: Change type.
1587 (arm_exidx_data_free): Remove.
1588 (arm_exidx_data_key): Change type. Move lower.
1589 (arm_exidx_new_objfile): Update.
1590 (arm_compare_exidx_entries): Remove.
1591 (arm_find_exidx_entry, _initialize_arm_tdep)
1592
48c66e1d
TT
15932019-07-10 Tom Tromey <tromey@adacore.com>
1594
1595 * solib-spu.c (ocl_program_data_key): Change type.
1596 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1597 Update.
1598
a269fbf1
TT
15992019-07-10 Tom Tromey <tromey@adacore.com>
1600
1601 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1602 (struct solib_aix_inferior_data) <library_list>: Change type.
1603 (solib_aix_inferior_data_handle): Change type.
1604 (get_solib_aix_inferior_data): Update.
1605 (solib_aix_free_library_list): Remove.
1606 (library_list_start_library): Update.
1607 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1608 return type.
1609 (solib_aix_get_library_list)
1610 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1611 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1612
c294730c
TT
16132019-07-10 Tom Tromey <tromey@adacore.com>
1614
1615 * solib-dsbt.c (struct dsbt_info): Add initializers.
1616 (solib_dsbt_pspace_data): Change type.
1617 (dsbt_pspace_data_cleanup): Remove.
1618 (get_dsbt_info, _initialize_dsbt_solib): Update.
1619
9d52077d
TT
16202019-07-10 Tom Tromey <tromey@adacore.com>
1621
1622 * spu-tdep.c (spu_overlay_data): Change type.
1623 (spu_get_overlay_table, spu_overlay_new_objfile)
1624 (_initialize_spu_tdep): Update.
1625
22a20dca
TT
16262019-07-10 Tom Tromey <tromey@adacore.com>
1627
1628 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1629 destructor.
1630 (dbx_objfile_data_key): Change type and declare later.
1631 (DBX_SYMFILE_INFO): Rewrite.
1632 * dbxread.c (dbx_objfile_data_key): Change type.
1633 (dbx_symfile_init): Update.
1634 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1635 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1636 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1637
cb60f420
TT
16382019-07-10 Tom Tromey <tromey@adacore.com>
1639
1640 * jit.c (jit_program_space_key): Change type. Move lower.
1641 (get_jit_program_space_data): Update.
1642 (jit_program_space_data_cleanup): Remove.
1643 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1644 Update.
1645 (struct jit_program_space_data): Add initializers.
1646
51df2ae3
TT
16472019-07-10 Tom Tromey <tromey@adacore.com>
1648
1649 * solib-darwin.c (struct darwin_info): Add initializers.
1650 (solib_darwin_pspace_data): Change type.
1651 (darwin_pspace_data_cleanup): Remove.
1652 (get_darwin_info, _initialize_darwin_solib): Update.
1653
18101a35
TT
16542019-07-10 Tom Tromey <tromey@adacore.com>
1655
1656 * remote-sim.c (struct sim_inferior_data): Add initializers,
1657 constructor, and destructor.
1658 (sim_inferior_data_key): Change type. Move lower.
1659 (check_for_duplicate_sim_descriptor): Update.
1660 (get_sim_inferior_data): Use new. Update.
1661 (~sim_inferior_data_cleanup): Rename from
1662 sim_inferior_data_cleanup. Simplify.
1663 (gdbsim_close_inferior, simulator_command)
1664 (sim_command_completer, _initialize_remote_sim): Update.
1665 (next_pid, INITIAL_PID): Move earlier.
1666
05b08ac1
TT
16672019-07-10 Tom Tromey <tromey@adacore.com>
1668
1669 * python/python-internal.h (create_thread_object): Return
1670 gdbpy_ref.
1671 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1672 * python/py-inferior.c (struct threadlist_entry): Add
1673 constructor.
1674 <thread_obj>: Now a gdbpy_ref.
1675 (thread_to_thread_object): Update.
1676 (add_thread_object): Use new.
1677 (delete_thread_object): Use delete.
1678 (infpy_threads): Update.
1679 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1680 GIL.
1681
32372d80
TT
16822019-07-10 Tom Tromey <tromey@adacore.com>
1683
1684 * valops.c (value_cast): Specialize error message for Ada.
1685
5c458ae8
SM
16862019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1687
1688 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1689
4c462cb0
SM
16902019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1691
1692 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1693 bpstat_should_step): Return bool, adjust comments.
1694 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1695 bpstat_should_step): Likewise.
1696
89abbcc2
AH
16972019-07-10 Alan Hayward <alan.hayward@arm.com>
1698
1699 * features/Makefile: Use feature target descriptions for Arm.
1700 * features/arm/arm-core.c: Generate new file.
1701 * features/arm/arm-fpa.c: Likewise.
1702 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1703 * features/arm/arm-m-profile.c: Likewise.
1704 * features/arm/arm-vfpv2.c: Likewise.
1705 * features/arm/arm-vfpv3.c: Likewise.
1706 * features/arm/xscale-iwmmxt.c: Likewise.
1707 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1708
166a82be
AH
17092019-07-10 Alan Hayward <alan.hayward@arm.com>
1710
1711 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1712 ptrace earlier.
1713
9fb4c7e9
AH
17142019-07-10 Alan Hayward <alan.hayward@arm.com>
1715
1716 * features/aarch64-pauth.c: Regenerate.
1717
e2d0f980
SM
17182019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1719
1720 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1721 bool.
1722 (bpstat_what): Use false instead of 0.
1723
a38118e5
PA
17242019-07-09 Pedro Alves <palves@redhat.com>
1725
1726 * break-catch-throw.c (is_exception_catchpoint): New.
1727 * breakpoint.c (print_one_breakpoint_location): New parameter
1728 'raw_loc'. Handle it. Use
1729 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1730 looking at the breakpoint's type.
1731 (print_one_breakpoint): If handling "maint info breakpoints", also
1732 print locations of exception catchpoints.
1733 * breakpoint.h (is_exception_catchpoint): Declare.
1734
cb1e4e32
PA
17352019-07-09 Pedro Alves <palves@redhat.com>
1736
1737 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1738 "addr" field.
1739 (allocate_location_exception_catchpoint): New.
1740 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1741 (initialize_throw_catchpoint_ops): Install
1742 allocate_location_exception_catchpoint as allocate_location
1743 method.
1744 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1745 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1746 bp_loc_other.
1747 (breakpoint_address_is_meaningful): Delete.
1748 (bl_address_is_meaningful): New.
1749 (breakpoint_locations_match): Adjust comment.
1750 (bp_location_from_bp_type): New, factored out of...
1751 (bp_location::bp_location(breakpoint *)): ... this.
1752 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1753 factored out of...
1754 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1755 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1756 breakpoint_address_is_meaningful.
1757 (bp_locations_compare): Adjust comment.
1758 (update_global_location_list): Use bl_address_is_meaningful
1759 instead of breakpoint_address_is_meaningful.
1760 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1761 explicit.
1762 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1763 * python/py-breakpoint.c (bppy_get_location): No longer check
1764 whether location is null.
1765
b58a68fe
PA
17662019-07-09 Pedro Alves <palves@redhat.com>
1767
1768 PR c++/15468
1769 * breakpoint.c (print_one_breakpoint_location): Remove
1770 single-location assert.
1771
268a13a5
TT
17722019-07-09 Tom Tromey <tom@tromey.com>
1773
1774 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1775 * configure: Rebuild.
1776 * configure.ac: Change common to gdbsupport.
1777 * gdbsupport: Rename from common.
1778 * acinclude.m4: Change common to gdbsupport.
1779 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1780 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1781 gdbsupport.
1782 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1783 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1784 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1785 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1786 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1787 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1788 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1789 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1790 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1791 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1792 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1793 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1794 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1795 coff-pe-read.c, command.h, compile/compile-c-support.c,
1796 compile/compile-c.h, compile/compile-cplus-symbols.c,
1797 compile/compile-cplus-types.c, compile/compile-cplus.h,
1798 compile/compile-loc2c.c, compile/compile.c, completer.c,
1799 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1800 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1801 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1802 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1803 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1804 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1805 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1806 features/aarch64-core.c, features/aarch64-fpu.c,
1807 features/aarch64-pauth.c, features/aarch64-sve.c,
1808 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1809 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1810 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1811 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1812 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1813 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1814 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1815 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1816 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1817 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1818 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1819 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1820 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1821 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1822 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1823 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1824 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1825 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1826 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1827 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1828 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1829 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1830 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1831 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1832 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1833 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1834 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1835 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1836 minsyms.c, mips-linux-tdep.c, namespace.h,
1837 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1838 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1839 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1840 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1841 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1842 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1843 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1844 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1845 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1846 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1847 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1848 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1849 procfs.c, producer.c, progspace.h, psymtab.h,
1850 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1851 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1852 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1853 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1854 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1855 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1856 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1857 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1858 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1859 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1860 target-memory.c, target.c, target.h, target/waitstatus.c,
1861 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1862 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1863 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1864 unittests/array-view-selftests.c,
1865 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1866 unittests/common-utils-selftests.c,
1867 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1868 unittests/format_pieces-selftests.c,
1869 unittests/function-view-selftests.c,
1870 unittests/lookup_name_info-selftests.c,
1871 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1872 unittests/mkdir-recursive-selftests.c,
1873 unittests/observable-selftests.c,
1874 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1875 unittests/parse-connection-spec-selftests.c,
1876 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1877 unittests/scoped_fd-selftests.c,
1878 unittests/scoped_mmap-selftests.c,
1879 unittests/scoped_restore-selftests.c,
1880 unittests/string_view-selftests.c, unittests/style-selftests.c,
1881 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1882 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1883 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1884 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1885 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1886 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1887
5b0e2db4
AB
18882019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1889
1890 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1891 bool value.
1892 (decode_digits_ordinary): Set explicit_line field in sal.
1893 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1894 symtab_and_line that was set on an explicit line number in
1895 assembler code. Do always update the recorded symtab and line if
1896 we do skip the prologue.
1897
0ba852ab
AB
18982019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * breakpoint.c (set_breakpoint_location_function): Remove
1901 explicit_loc parameter.
1902 (momentary_breakpoint_from_master): Update call to
1903 set_breakpoint_location_function.
1904 (add_location_to_breakpoint): Likewise.
1905
b3a7d171
AB
19062019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1909 required features based on default bfd type when no specific bfd
1910 is present.
1911
1f6f6e21
PW
19122019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1913
1914 * NEWS: Mention that GDB printf and eval commands can now print
1915 C-style and Ada-style convenience var strings without
1916 calling the inferior.
1917 * printcmd.c (printf_c_string): Locally print GDB internal var
1918 instead of transiting via the inferior.
1919 (printf_wide_c_string): Likewise.
1920
19212019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
1922
1923 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1924
0598af48
TT
19252019-07-04 Tom Tromey <tom@tromey.com>
1926
1927 PR tui/24724:
1928 * tui/tui-winsource.c (tui_clear_source_content): Update.
1929 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1930 (tui_update_breakpoint_info): Update.
1931 (tui_set_exec_info_content): Update.
1932 * tui/tui-source.c (tui_set_source_content_nil): Update.
1933 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1934 has_break.
1935 * tui/tui-data.h (enum tui_bp_flag): New.
1936 (tui_bp_flags): New enum flags type.
1937 (struct tui_source_element) <break_mode>: Change type. Rename
1938 from has_break.
1939 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1940 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1941 constants.
1942 * tui/tui-winsource.h: Fix comment.
1943
350fab54
AH
19442019-07-04 Alan Hayward <alan.hayward@arm.com>
1945
1946 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1947 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1948 (store_fpregs_to_thread)
1949 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1950 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1951 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1952 (IWMMXT_REGS_SIZE): Add define.
1953 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1954 (fetch_vfp_regs, store_vfp_regs)
1955 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1956 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1957
f0452268
AH
19582019-07-04 Alan Hayward <alan.hayward@arm.com>
1959
1960 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1961 defines.
1962 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1963 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1964 (ARM_INT_REGISTER_SIZE): ...to this.
1965 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1966 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1967 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1968 (arm_linux_collect_gregset, supply_nwfpe_register)
1969 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
1970 defines.
1971 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
1972 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
1973 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
1974 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
1975 (arm_return_in_memory, arm_store_return_value)
1976 (arm_get_longjmp_target, arm_register_g_packet_guesses)
1977 (arm_record_ld_st_multiple): Likewise.
1978 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
1979 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
1980
e935475c
AH
19812019-07-04 Alan Hayward <alan.hayward@arm.com>
1982
1983 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
1984 AARCH64_DISPLACED_MODIFIED_INSNS.
1985 * aarch64-tdep.c (struct aarch64_displaced_step_data)
1986 (aarch64_displaced_step_copy_insn): Likewise.
1987 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1988 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
1989 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1990 ARM_DISPLACED_MODIFIED_INSNS.
1991 * arm-tdep.c (arm_gdbarch_init): Likewise.
1992 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1993 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
1994 (struct arm_displaced_step_closure): Use
1995 ARM_DISPLACED_MODIFIED_INSNS.
1996
df0bb381
AH
19972019-07-04 Alan Hayward <alan.hayward@arm.com>
1998
1999 * features/Makefile: Remove unused xml files.
2000 * features/aarch64.xml: Remove.
2001 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2002 * features/i386/amd64-avx-avx512.xml: Remove.
2003 * features/i386/amd64-avx-linux.xml: Remove.
2004 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2005 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2006 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2007 * features/i386/amd64-avx-mpx.xml: Remove.
2008 * features/i386/amd64-avx.xml: Remove.
2009 * features/i386/amd64-linux.xml: Remove.
2010 * features/i386/amd64-mpx-linux.xml: Remove.
2011 * features/i386/amd64-mpx.xml: Remove.
2012 * features/i386/amd64.xml: Remove.
2013 * features/i386/i386-avx-avx512-linux.xml: Remove.
2014 * features/i386/i386-avx-avx512.xml: Remove.
2015 * features/i386/i386-avx-linux.xml: Remove.
2016 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2017 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2018 * features/i386/i386-avx-mpx-linux.xml: Remove.
2019 * features/i386/i386-avx-mpx.xml: Remove.
2020 * features/i386/i386-avx.xml: Remove.
2021 * features/i386/i386-linux.xml: Remove.
2022 * features/i386/i386-mmx-linux.xml: Remove.
2023 * features/i386/i386-mmx.xml: Remove.
2024 * features/i386/i386-mpx-linux.xml: Remove.
2025 * features/i386/i386-mpx.xml: Remove.
2026 * features/i386/i386.xml: Remove.
2027 * features/i386/x32-avx-avx512-linux.xml: Remove.
2028 * features/i386/x32-avx-linux.xml: Remove.
2029 * features/i386/x32-linux.xml: Remove.
2030
edd6266a
AH
20312019-07-04 Alan Hayward <alan.hayward@arm.com>
2032
2033 * regformats/aarch64.dat: Remove.
2034 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2035 * regformats/i386/amd64-avx-linux.dat: Remove.
2036 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2037 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2038 * regformats/i386/amd64-linux.dat: Remove.
2039 * regformats/i386/amd64-mpx-linux.dat: Remove.
2040 * regformats/i386/amd64.dat: Remove.
2041 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2042 * regformats/i386/i386-avx-linux.dat: Remove.
2043 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2044 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2045 * regformats/i386/i386-linux.dat: Remove.
2046 * regformats/i386/i386-mmx-linux.dat: Remove.
2047 * regformats/i386/i386-mpx-linux.dat: Remove.
2048 * regformats/i386/i386.dat: Remove.
2049 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2050 * regformats/i386/x32-avx-linux.dat: Remove.
2051 * regformats/i386/x32-linux.dat: Remove.
2052
2b40fda7
AH
20532019-07-04 Alan Hayward <alan.hayward@arm.com>
2054
2055 * aarch64-tdep.c: Remove xml self tests.
2056 * amd64-linux-tdep.c: Likewise.
2057 * amd64-tdep.c: Likewise.
2058 * i386-linux-tdep.c: Likewise.
2059 * i386-tdep.c: Likewise.
2060
5f4ba3e7
PA
20612019-07-03 Pedro Alves <palves@redhat.com>
2062
2063 PR cli/24732
2064 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2065 (pipe_cmd_option_defs): New.
2066 (make_pipe_cmd_options_def_group): New.
2067 (pipe_command): Use gdb::option::process_options.
2068 (pipe_command_completer): New function.
2069 (_initialize_cli_cmds): Install completer for "pipe" command.
2070
3d9be6f5
PA
20712019-07-03 Pedro Alves <palves@redhat.com>
2072
2073 * cli/cli-option.c (union option_value) <string>: New field.
2074 (struct option_def_and_value): Add ctor, move ctor, dtor and
2075 use DISABLE_COPY_AND_ASSIGN.
2076 (option_def_and_value::clear_value): New.
2077 (parse_option, save_option_value_in_ctx, get_val_type_str)
2078 (add_setshow_cmds_for_options): Handle var_string.
2079 * cli-option.h (union option_def::var_address) <string>: New
2080 field.
2081 (struct string_option_def): New.
2082 * maint-test-options.c (struct test_options_opts): Add default
2083 ctor and use DISABLE_COPY_AND_ASSIGN.
2084 <string_opt>: New field.
2085 (test_options_opts::~test_options_opts): New.
2086 (test_options_opts::dump): Also dump "-string".
2087 (test_options_option_defs): Install "string.
2088
41fc454c
PA
20892019-07-03 Pedro Alves <palves@redhat.com>
2090
2091 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2092 option_value with a null enumeration.
2093 (complete_options): Save the option values in the context.
2094 (save_option_value_in_ctx): New, factored out from ...
2095 (process_options): ... here.
2096 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2097 of the function.
2098 * maint-test-options.c (test_options_opts::dump): New, factored
2099 out from ...
2100 (maintenance_test_options_command_mode): ... here.
2101 (maintenance_test_options_command_completion_result): Delete.
2102 (maintenance_test_options_command_completion_text): Update
2103 comment.
2104 (maintenance_show_test_options_completion_result): Change
2105 prototype. Just print
2106 maintenance_test_options_command_completion_text.
2107 (save_completion_result): New.
2108 (maintenance_test_options_completer_mode): Pass options context to
2109 complete_options, and then save a dump.
2110 (_initialize_maint_test_options): Use add_cmd to install "maint
2111 show test-options-completion-result".
2112
fdbc9870
PA
21132019-07-03 Pedro Alves <palves@redhat.com>
2114
2115 * NEWS (New commands): Mention "with" and "maint with".
2116 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2117 (with_command, with_command_completer): New.
2118 (pipe_command): Adjust to new repeat_previous
2119 interface.
2120 (_initialize_cli_cmds): Install the "with" command and its "w"
2121 alias.
2122 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2123 declarations.
2124 * cli/cli-setshow.c (parse_cli_var_uinteger)
2125 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2126 argument strings for all var_types.
2127 (get_setshow_command_value_string): New, factored out from ...
2128 (do_show_command): ... this.
2129 * cli/cli-setshow.h: Include <string>.
2130 (get_setshow_command_value_string): Declare.
2131 * command.h (repeat_previous): Now returns const char *. Adjust
2132 comment.
2133 * maint.c: Include "cli/cli-cmds.h".
2134 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2135 (_initialize_maint_cmds): Register the "maintenance with" command.
2136 * top.c (repeat_previous): Move bits from pipe_command here:
2137 Return the saved command line, if any; error out if there's no
2138 command to relaunch.
2139
c6ac8931
PA
21402019-07-03 Pedro Alves <palves@redhat.com>
2141
2142 * NEWS (New commands): Mention "maint set/show test-settings"
2143 instead of "maint test-settings".
2144 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2145 (maintenance_test_settings_set_list): Rename to ...
2146 (maintenance_set_test_settings_list): ... this.
2147 (maintenance_test_settings_show_list): Rename to ...
2148 (maintenance_show_test_settings_list): ... this.
2149 (maintenance_test_settings_cmd): Delete.
2150 (maintenance_test_settings_set_cmd): ...
2151 (maintenance_set_test_settings_cmd): ... this.
2152 (maintenance_test_settings_show_cmd): ...
2153 (maintenance_show_test_settings_cmd): ... this.
2154 (maintenance_test_settings_show_value_cmd):
2155 (maintenance_show_test_settings_value_cmd): ... this.
2156 (_initialize_maint_test_settings): No longer install the "maint
2157 test-settings" prefix command. Rename "maint test-settings set"
2158 to "maint set test-settings", and "maint test-settings show" to
2159 "maint show test-settings". Adjust all subcommands.
2160
d1fcf2fd
PA
21612019-07-03 Pedro Alves <palves@redhat.com>
2162
2163 * maint-test-settings.c: Fix file's intro comment. Replace all
2164 references to "test-options" with references to "test-settings",
2165 in comments.
2166
970f9d09
PA
21672019-07-03 Pedro Alves <palves@redhat.com>
2168
2169 * maint-test-settings.c (maintenance_test_settings_xxx)
2170 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2171 New.
2172 (maintenance_test_settings_enums): Use them.
2173 (maintenance_test_settings_enum): Default to
2174 maintenance_test_settings_xxx.
2175 (_initialize_maint_test_settings): Initialize
2176 MAINTENANCE_TEST_SETTINGS_FILENAME.
2177
f3869b1a
SM
21782019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2179
2180 * breakpoint.h (remove_breakpoints_inf): Change return type to
2181 void, move function documentation here.
2182 * breakpoint.c (remove_breakpoints_inf): Change return type to
2183 void, move function documentation to header.
2184
54d66006
PA
21852019-07-02 Pedro Alves <palves@redhat.com>
2186
2187 * NEWS (Completion improvements): Mention "info threads".
2188 * thread.c (struct info_threads_opts, info_threads_option_defs)
2189 (make_info_threads_options_def_group): New.
2190 (info_threads_command): Use gdb::option::process_options.
2191 (info_threads_command_completer): New.
2192 (_initialize_thread): Use gdb::option::build_help to build the
2193 help text for "info threads".
2194
854f6088
SM
21952019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * defs.h (generic_load): Move from here...
2198 * symfile.h (generic_load): ... to here. Rename name parameter
2199 to args.
2200 * symfile.c (generic_load): Add comment.
2201
54ee4252
TT
22022019-07-01 Tom Tromey <tromey@adacore.com>
2203
2204 * dwarf2read.c
2205 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2206 declaration of without_params. Fix formatting.
2207
65392b3e
TT
22082019-07-01 Tom Tromey <tromey@adacore.com>
2209
2210 * ada-exp.y (find_primitive_type): Update.
2211 * ada-lang.h (ada_lookup_symbol): Update.
2212 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2213 parameter.
2214 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2215
7d7571f0
SDJ
22162019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2217
2218 PR breakpoints/24541
2219 * gdbarch.c: Regenerate.
2220 * gdbarch.h: Regenerate.
2221 * gdbarch.sh: Add 'stap_adjust_register'.
2222 * i386-tdep.c: Include '<unordered_set>'.
2223 (i386_stap_adjust_register): New function.
2224 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2225 * stap-probe.c (stap_parse_register_operand): Call
2226 'gdbarch_stap_adjust_register'.
2227
5af5392a
SDJ
22282019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2229
2230 PR python/24742
2231 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2232 * python/python.c (do_start_initialization): Use 'xmalloc'
2233 instead of 'PyMem_Malloc'.
2234
10d06d82
TT
22352019-06-28 Tom Tromey <tromey@adacore.com>
2236
2237 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2238 for Ada.
2239
1b7f24cd
TT
22402019-06-27 Tom Tromey <tromey@adacore.com>
2241
2242 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2243 objfile_key.
2244 (arm_find_mapping_symbol, arm_record_special_symbol)
2245 (_initialize_arm_tdep): Update.
2246 (arm_objfile_data_free): Remove.
2247
3d507ff2
TT
22482019-06-27 Tom Tromey <tromey@adacore.com>
2249
2250 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2251 to cp_print_static_field.
2252
762c164d
TT
22532019-06-26 Tom Tromey <tromey@adacore.com>
2254
2255 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2256 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2257 declare.
2258
aa2f9bcf
AH
22592019-06-26 Alan Hayward <alan.hayward@arm.com>
2260
2261 * features/aarch64-core.c (create_feature_aarch64_core):
2262 Regenerate.
2263 * features/aarch64-core.xml: Add cpsr flags.
2264
3426ae57
AH
22652019-06-26 Alan Hayward <alan.hayward@arm.com>
2266
2267 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2268 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2269
4838e44c
SM
22702019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2271
2272 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2273 field.
2274 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2275 use.
2276 (arm_record_special_symbol): Don't insert new symbol in sorted
2277 position, push it at the end.
2278
54cc7474
SM
22792019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2280
2281 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2282 (arm_mapping_symbol_s): Remove.
2283 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2284 (arm_mapping_symbol_vec): New typedef.
2285 (struct arm_per_objfile): Add constructor.
2286 <section_maps>: Change type to
2287 std::unique_ptr<arm_mapping_symbol_vec[]>.
2288 (arm_compare_mapping_symbols): Remove.
2289 (arm_find_mapping_symbol): Adjust to section_maps type change.
2290 (arm_objfile_data_free): Call delete on arm_per_objfile.
2291 (arm_record_special_symbol): Adjust to section_maps type change.
2292 Allocate arm_per_objfile with new.
2293
b65b566c
PW
22942019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2295
2296 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2297 with the command prefix.
2298
c2fc64f5
TT
22992019-06-25 Tom Tromey <tom@tromey.com>
2300
2301 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2302 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2303
fb54fa76
TT
23042019-06-25 Tom Tromey <tom@tromey.com>
2305
2306 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2307 type.
2308 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2309 protected.
2310
f7952c57
TT
23112019-06-25 Tom Tromey <tom@tromey.com>
2312
2313 * tui/tui-winsource.c
2314 (tui_source_window_base::set_is_exec_point_at): Add check against
2315 LOA_ADDRESS.
2316
17568d78
TT
23172019-06-25 Tom Tromey <tom@tromey.com>
2318
2319 * tui/tui-source.c (tui_set_source_content): Don't check before
2320 xfree.
2321 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2322
53e7cdba
TT
23232019-06-25 Tom Tromey <tom@tromey.com>
2324
2325 * tui/tui-winsource.h (tui_update_source_window_as_is)
2326 (tui_alloc_source_buffer, tui_line_is_displayed)
2327 (tui_addr_is_displayed): Change type of win_info.
2328 * tui/tui-winsource.c (tui_update_source_window_as_is)
2329 (tui_clear_source_content, tui_show_source_line)
2330 (tui_show_source_content, tui_source_window_base::refill)
2331 (tui_source_window_base::set_is_exec_point_at)
2332 (tui_source_window_base::set_is_exec_point_at)
2333 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2334 (tui_alloc_source_buffer, tui_line_is_displayed)
2335 (tui_addr_is_displayed): Change type of win_info. Update.
2336 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2337 (tui_source_window_base::do_make_visible_with_new_height):
2338 Update.
2339 * tui/tui-source.c (tui_set_source_content)
2340 (tui_set_source_content_nil)
2341 (tui_source_window::do_scroll_vertical): Update.
2342 * tui/tui-layout.c (show_layout): Update.
2343 * tui/tui-disasm.c (tui_set_disassem_content)
2344 (tui_disasm_window::do_scroll_vertical): Update.
2345 * tui/tui-data.h (tui_win_content): Remove.
2346 (struct tui_gen_win_info) <content, content_size>: Remove.
2347 (struct tui_source_element): Add initializers and destructor.
2348 (union tui_which_element, struct tui_win_element): Remove.
2349 (struct tui_source_window_base) <content>: New field.
2350 (struct tui_data_window): Remove destructor.
2351 (tui_alloc_content, tui_free_win_content)
2352 (tui_free_all_source_wins_content): Don't declare.
2353 * tui/tui-data.c (tui_initialize_static_data): Update.
2354 (init_content_element, tui_alloc_content): Remove.
2355 (~tui_gen_win_info): Update.
2356 (~tui_data_window, tui_free_all_source_wins_content)
2357 (tui_free_win_content, free_content, free_content_elements):
2358 Remove.
2359
7908abbf
TT
23602019-06-25 Tom Tromey <tom@tromey.com>
2361
2362 * tui/tui-winsource.h (tui_clear_source_content)
2363 (tui_erase_source_content, tui_show_source_content): Change type
2364 of win_info.
2365 * tui/tui-winsource.c (tui_clear_source_content)
2366 (tui_erase_source_content, tui_show_source_content): Change type
2367 of win_info.
2368 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2369 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2370 win_info.
2371 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2372 win_info.
2373 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2374
02c28df0
TT
23752019-06-25 Tom Tromey <tom@tromey.com>
2376
2377 * tui/tui-winsource.c (tui_clear_source_content)
2378 (tui_source_window_base::set_is_exec_point_at): Update.
2379 * tui/tui-source.c (tui_set_source_content_nil): Update.
2380 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2381 a bool.
2382 * tui/tui-data.c (init_content_element): Update.
2383
6658b1bf
TT
23842019-06-25 Tom Tromey <tom@tromey.com>
2385
2386 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2387 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2388 * tui/tui-layout.c (init_and_make_win): Update.
2389 * tui/tui.h (enum tui_win_type): Update.
2390 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2391 tui_win_is_auxillary.
2392 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2393 tui_win_is_auxillary.
2394
21e1c91e
TT
23952019-06-25 Tom Tromey <tom@tromey.com>
2396
2397 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2398 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2399 (tui_delete_data_content_windows, tui_display_all_data)
2400 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2401 Update.
2402 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2403 * tui/tui-regs.c (tui_last_regs_line_no)
2404 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2405 (tui_show_registers): Update.
2406 (tui_show_register_group): Return void. Update.
2407 (tui_display_registers_from, tui_display_reg_element_at_line)
2408 (tui_display_registers_from_line, tui_check_register_values):
2409 Update.
2410 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2411 member.
2412 (struct tui_data_window) <regs_content>: Now a std::vector.
2413 <regs_content_count>: Remove.
2414 (tui_add_content_elements, tui_free_data_content): Don't declare.
2415 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2416 (init_content_element): Remove DATA_WIN case. Add assert.
2417 (tui_add_content_elements): Remove.
2418 (tui_data_window): Update.
2419 (tui_free_data_content): Remove.
2420 (free_content_elements): Remove DATA_WIN case.
2421
115ac53b
TT
24222019-06-25 Tom Tromey <tom@tromey.com>
2423
2424 * tui/tui-data.c (tui_data_item_window): Update.
2425 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2426 * tui/tui-windata.c (tui_display_all_data)
2427 (tui_display_data_from_line): Update.
2428 (tui_check_data_values): Remove.
2429 * tui/tui-regs.c (tui_show_register_group)
2430 (tui_display_reg_element_at_line): Update.
2431 * tui/tui-hooks.c (tui_register_changed)
2432 (tui_refresh_frame_and_register_information): Call
2433 tui_check_register_values.
2434 * tui/tui-data.h (struct tui_data_window) <data_content,
2435 data_content_count, data_type>: Remove.
2436 (enum tui_data_type): Remove.
2437
2438 * tui/tui-data.c (tui_data_window::clear_detail)
2439 (~tui_data_window): Update.
2440
eaf9738b
TT
24412019-06-25 Tom Tromey <tom@tromey.com>
2442
2443 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2444 declare.
2445 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2446 Rename from tui_first_data_item_displayed. Update.
2447 (tui_data_window::refresh_all)
2448 (tui_data_window::do_scroll_vertical): Update.
2449 * tui/tui-data.h (struct tui_data_window)
2450 <first_data_item_displayed>: Declare new method.
2451
31ca4723
TT
24522019-06-25 Tom Tromey <tom@tromey.com>
2453
2454 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2455 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2456 contents...
2457 (tui_initialize_static_data): ...here.
2458
41bcff7f
TT
24592019-06-25 Tom Tromey <tom@tromey.com>
2460
2461 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2462 (tui_display_registers_from, tui_check_register_values): Update.
2463 (tui_display_register): Remove win_info parameter; update.
2464 (tui_get_register): Change type of parameters.
2465 * tui/tui-data.h (struct tui_data_element): Remove.
2466 (union tui_which_element) <data>: Remove.
2467 <data_window>: Change type.
2468 (struct tui_data_item_window): New.
2469 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2470 case. Add assert.
2471 (~tui_data_item_window): New destructor.
2472 (free_content_elements): Remove DATA_ITEM_WIN case.
2473
d2802c33
TT
24742019-06-25 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2477 Remove.
2478
dd835f8b
TT
24792019-06-25 Tom Tromey <tom@tromey.com>
2480
2481 * tui/tui-data.h (struct tui_command_element): Remove.
2482 (union tui_which_element) <command>: Remove.
2483 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2484 assert.
2485 (free_content_elements): Remove CMD_WIN case.
2486
bd7db367
TT
24872019-06-25 Tom Tromey <tom@tromey.com>
2488
2489 * tui/tui-layout.c (tui_set_layout): Update.
2490 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2491 * tui/tui-data.c (layout_def): Update.
2492
3add462f
TT
24932019-06-25 Tom Tromey <tom@tromey.com>
2494
2495 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2496 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2497 (tui_source_window_base::set_new_height): Update.
2498 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2499 Update.
2500 (tui_set_locator_fullname, tui_set_locator_info)
2501 (tui_show_frame_info): Update.
2502 * tui/tui-source.c (tui_set_source_content)
2503 (tui_source_is_displayed): Update.
2504 * tui/tui-layout.c (show_source_disasm_command, show_data)
2505 (show_source_or_disasm_and_command): Update.
2506 * tui/tui-disasm.c (tui_set_disassem_content)
2507 (tui_get_begin_asm_address): Update.
2508 * tui/tui-data.h (struct tui_locator_element): Remove.
2509 (union tui_which_element) <locator>: Remove.
2510 (struct tui_locator_window): New.
2511 (tui_locator_win_info_ptr): Change return type.
2512 * tui/tui-data.c (_locator): Change type.
2513 (tui_locator_win_info_ptr): Change return type.
2514 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2515 (tui_alloc_content): Add assert.
2516
489e9d8b
TT
25172019-06-25 Tom Tromey <tom@tromey.com>
2518
2519 * tui/tui-winsource.c
2520 (tui_exec_info_window::maybe_allocate_content): New method.
2521 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2522 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2523 (make_source_or_disasm_window): Add cast.
2524 * tui/tui-data.h (union tui_which_element) <simple_string>:
2525 Remove.
2526 (struct tui_source_info): New.
2527 (struct tui_source_window_base) <execution_info>: Change type.
2528 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2529 case, and add assert.
2530 (tui_alloc_content): Add assert.
2531
c3fabb7d
TT
25322019-06-25 Tom Tromey <tom@tromey.com>
2533
2534 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2535 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2536 * tui/tui-data.c (tui_alloc_win_info): Remove.
2537
bbc228ee
TT
25382019-06-25 Tom Tromey <tom@tromey.com>
2539
2540 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2541 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2542 can_highlight.
2543
5fcee43a
TT
25442019-06-25 Tom Tromey <tom@tromey.com>
2545
2546 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2547 make_visible_with_new_height method.
2548 (tui_win_info::make_visible_with_new_height): New method.
2549 (tui_source_window_base::do_make_visible_with_new_height)
2550 (tui_data_window::do_make_visible_with_new_height)
2551 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2552 (make_visible_with_new_height): Remove.
2553 (tui_resize_all, tui_adjust_win_heights): Use
2554 make_visible_with_new_height method.
2555 * tui/tui-data.h (struct tui_win_info)
2556 <do_make_visible_with_new_height, make_visible_with_new_height>:
2557 New methods.
2558 (struct tui_source_window_base, struct tui_data_window)
2559 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2560 methods.
2561
d83f1fe6
TT
25622019-06-25 Tom Tromey <tom@tromey.com>
2563
2564 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2565 method.
2566 (update_tab_width): Call update_tab_width method.
2567 * tui/tui-data.h (struct tui_win_info)
2568 (struct tui_source_window_base) <update_tab_width>: New methods.
2569
17374de4
TT
25702019-06-25 Tom Tromey <tom@tromey.com>
2571
2572 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2573 parameter.
2574 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2575 parameter.
2576 (tui_gen_win_info::make_visible): Update.
2577 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2578 parameter.
2579 * tui/tui-data.h (enum tui_box): New enum.
2580 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2581
f936bca2
TT
25822019-06-25 Tom Tromey <tom@tromey.com>
2583
2584 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2585 init_and_make_win for EXEC_INFO_WIN.
2586 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2587 longer inline.
2588 (struct tui_win_info) <~tui_win_info>: Inline.
2589 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2590 Don't declare.
2591 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2592 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2593 Remove.
2594 (tui_initialize_static_data): Update.
2595 (~tui_gen_win_info): Handle more cleanup here.
2596 (~tui_source_window_base): Delete "execution_info".
2597 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2598
d6ba6a11
TT
25992019-06-25 Tom Tromey <tom@tromey.com>
2600
2601 * tui/tui-layout.c (make_command_window): Don't set
2602 can_highlight.
2603 (show_source_disasm_command): Call the reset method.
2604 (show_data): Don't set can_highlight. Call the reset method.
2605 (tui_gen_win_info::reset): Rename from init_gen_win_info
2606 (init_and_make_win): Simplify. Return tui_gen_win_info.
2607 (show_source_or_disasm_and_command): Call the reset method.
2608 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2609 (struct tui_cmd_window): Set can_highlight.
2610
48a3bd16
TT
26112019-06-25 Tom Tromey <tom@tromey.com>
2612
2613 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2614 from make_visible.
2615 (tui_make_visible, tui_make_invisible): Rewrite.
2616 (tui_win_info::make_visible): Remove.
2617 (tui_source_window_base::make_visible): Update.
2618 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2619 method. Moved from...
2620 (struct tui_win_info) <make_visible>: ...here.
2621
c3bd716f
TT
26222019-06-25 Tom Tromey <tom@tromey.com>
2623
2624 * tui/tui-winsource.c
2625 (tui_source_window_base::do_scroll_horizontal): Remove direction
2626 parameter.
2627 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2628 direction parameter.
2629 * tui/tui-win.c (tui_win_info::forward_scroll)
2630 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2631 (tui_win_info::right_scroll): Update.
2632 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2633 direction parameter.
2634 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2635 direction parameter.
2636 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2637 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2638 Remove direction parameter.
2639 (struct tui_source_window_base, struct tui_source_window)
2640 (struct tui_disasm_window, struct tui_data_window)
2641 (struct tui_cmd_window): Update.
2642
21c32dca
TT
26432019-06-25 Tom Tromey <tom@tromey.com>
2644
2645 * tui/tui-winsource.h (tui_set_exec_info_content)
2646 (tui_show_exec_info_content, tui_erase_exec_info_content)
2647 (tui_clear_exec_info_content, tui_update_exec_info): Change
2648 argument to tui_source_window_base.
2649 * tui/tui-winsource.c (tui_set_exec_info_content)
2650 (tui_show_exec_info_content, tui_erase_exec_info_content)
2651 (tui_clear_exec_info_content, tui_update_exec_info): Change
2652 argument to tui_source_window_base.
2653
73fbdc65
TT
26542019-06-25 Tom Tromey <tom@tromey.com>
2655
2656 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2657 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2658
33325343
TT
26592019-06-25 Tom Tromey <tom@tromey.com>
2660
2661 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2662 check.
2663
29d2c474
TT
26642019-06-25 Tom Tromey <tom@tromey.com>
2665
2666 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2667 type to void.
2668 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2669 type to void.
2670 * tui/tui-source.c (tui_set_source_content): Update.
2671 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2672
152f3f4b
TT
26732019-06-25 Tom Tromey <tom@tromey.com>
2674
2675 * tui/tui-win.c (window_name_completer, tui_set_focus)
2676 (tui_all_windows_info): Use name method.
2677 * tui/tui-data.h (struct tui_gen_win_info)
2678 (struct tui_source_window, struct tui_disasm_window)
2679 (struct tui_data_window, struct tui_cmd_window) <name>: New
2680 method.
2681 (tui_win_name): Don't declare.
2682 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2683 (tui_win_name): Remove.
2684
be4da588
TT
26852019-06-25 Tom Tromey <tom@tromey.com>
2686
2687 * tui/tui-winsource.h (tui_update_source_window)
2688 (tui_update_source_window_as_is): Change parameter type.
2689 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2690 to be a tui_source_window_base.
2691 (tui_update_source_window_as_is): Likewise.
2692 * tui/tui-win.c (make_visible_with_new_height): Update.
2693
5b81daba
TT
26942019-06-25 Tom Tromey <tom@tromey.com>
2695
2696 * tui/tui-winsource.c (tui_erase_source_content)
2697 (tui_show_source_content, tui_show_exec_info_content)
2698 (tui_erase_exec_info_content): Use refresh_window method.
2699 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2700 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2701 from tui_refresh_win.
2702 (tui_data_window::refresh_window): New method.
2703 (tui_win_info::refresh, tui_source_window_base::refresh)
2704 (tui_refresh_all): Use refresh_window method.
2705 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2706 method.
2707 * tui/tui-regs.c (tui_display_register): Call refresh_window
2708 method.
2709 * tui/tui-layout.c (show_source_disasm_command)
2710 (show_source_or_disasm_and_command): Call refresh_window method.
2711 * tui/tui-data.h (struct tui_gen_win_info)
2712 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2713 New method.
2714
cb2ce893
TT
27152019-06-25 Tom Tromey <tom@tromey.com>
2716
2717 * tui/tui.c (tui_rl_other_window, tui_enable)
2718 (tui_is_window_visible, tui_get_command_dimension): Update.
2719 * tui/tui-winsource.c (tui_update_source_window_as_is)
2720 (tui_clear_source_content, tui_erase_source_content)
2721 (tui_show_source_line, tui_source_window_base::refill)
2722 (tui_source_window_base::do_scroll_horizontal)
2723 (tui_source_window_base::set_is_exec_point_at)
2724 (tui_update_breakpoint_info, tui_set_exec_info_content)
2725 (tui_alloc_source_buffer, tui_line_is_displayed)
2726 (tui_addr_is_displayed): Update.
2727 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2728 (tui_check_and_display_highlight_if_needed)
2729 (tui_win_info::make_visible, tui_win_info::refresh)
2730 (tui_refresh_all): Update.
2731 * tui/tui-windata.c (tui_first_data_item_displayed)
2732 (tui_delete_data_content_windows, tui_erase_data_content)
2733 (tui_display_all_data, tui_data_window::refresh_all)
2734 (tui_check_data_values): Update.
2735 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2736 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2737 (tui_win_info::backward_scroll, tui_refresh_all_win)
2738 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2739 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2740 (tui_source_window_base::set_new_height)
2741 (tui_data_window::set_new_height)
2742 (make_invisible_and_set_new_height)
2743 (make_visible_with_new_height, new_height_ok)
2744 (parse_scrolling_args): Update.
2745 * tui/tui-stack.c (tui_show_frame_info): Update.
2746 * tui/tui-source.c (tui_set_source_content)
2747 (tui_set_source_content_nil, tui_source_is_displayed)
2748 (tui_source_window::do_scroll_vertical): Update.
2749 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2750 (tui_display_registers_from, tui_display_reg_element_at_line)
2751 (tui_check_register_values, tui_reg_command): Update.
2752 * tui/tui-layout.c (tui_default_win_height)
2753 (show_source_disasm_command, show_data, init_and_make_win)
2754 (show_source_or_disasm_and_command): Update.
2755 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2756 (tui_redisplay_readline, tui_mld_flush)
2757 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2758 (tui_getc): Update.
2759 * tui/tui-disasm.c (tui_set_disassem_content)
2760 (tui_disasm_window::do_scroll_vertical): Update.
2761 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2762 Now virtual.
2763 (struct tui_win_info): Derive from tui_gen_win_info.
2764 <~tui_win_info>: Mark as override.
2765 <generic>: Remove member.
2766 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2767 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2768 (~tui_data_window, ~tui_win_info)
2769 (tui_free_all_source_wins_content): Update.
2770 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2771
ab313b35
TT
27722019-06-25 Tom Tromey <tom@tromey.com>
2773
2774 * tui/tui-layout.c (init_and_make_win): Use new.
2775 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2776 destructor, initializers.
2777 (tui_alloc_generic_win_info): Don't declare.
2778 * tui/tui-data.c (_locator): Add argument to constructor.
2779 (source_win, disasm_win): New globals.
2780 (exec_info): Remove.
2781 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2782 Update.
2783 (tui_alloc_generic_win_info): Remove.
2784 (init_content_element): Use new.
2785 (tui_win_info::tui_win_info): Update.
2786 (free_content_elements) <case DATA_WIN>: Use delete.
2787
dc2c33e4
TT
27882019-06-25 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2791 * tui/tui-windata.c (tui_first_data_item_displayed)
2792 (tui_delete_data_content_windows): Update.
2793 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2794 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2795 (tui_display_registers_from, tui_check_register_values): Update.
2796 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2797 pointer.
2798 * tui/tui-data.c (init_content_element): Update. Allocate the new
2799 window.
2800 (tui_free_data_content): Update.
2801 (free_content_elements) <case DATA_WIN>: Free the window.
2802
214a5cbe
TT
28032019-06-25 Tom Tromey <tom@tromey.com>
2804
2805 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2806 Update.
2807 * tui/tui-layout.c (make_command_window)
2808 (show_source_disasm_command, show_data, init_and_make_win)
2809 (show_source_or_disasm_and_command): Update.
2810 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2811 method.
2812 <can_highight, is_highlighted>: Now bool.
2813 (tui_set_win_highlight): Don't declare.
2814 * tui/tui-data.c (tui_set_win_highlight): Remove.
2815
8e2daf15
TT
28162019-06-25 Tom Tromey <tom@tromey.com>
2817
2818 * tui/tui-wingeneral.c (make_visible): Remove check of window
2819 type.
2820
8903bd8a
TT
28212019-06-25 Tom Tromey <tom@tromey.com>
2822
2823 * tui/tui-win.c (tui_win_info::max_height)
2824 (tui_cmd_window::max_height): New methods.
2825 (new_height_ok): Call max_height.
2826 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2827 <max_height>: New method.
2828
3f02ce1e
TT
28292019-06-25 Tom Tromey <tom@tromey.com>
2830
2831 * tui/tui-win.c (tui_source_window_base::set_new_height)
2832 (tui_data_window::set_new_height): New methods.
2833 (make_invisible_and_set_new_height): Call set_new_height method.
2834 * tui/tui-data.h (struct tui_win_info)
2835 (struct tui_source_window_base, struct tui_data_window)
2836 <set_new_height>: New method.
2837
1825f487
TT
28382019-06-25 Tom Tromey <tom@tromey.com>
2839
2840 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2841 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2842 tui_refresh_data_win.
2843 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2844 method.
2845 (tui_refresh_all_win): Call the refresh_all method.
2846 (tui_set_focus): Likewise.
2847 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2848 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2849 Likewise.
2850
ad54d15b
TT
28512019-06-25 Tom Tromey <tom@tromey.com>
2852
2853 * tui/tui-winsource.h (tui_refill_source_window)
2854 (tui_set_is_exec_point_at): Don't declare.
2855 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2856 (tui_source_window_base::refill): Rename from
2857 tui_refill_source_window.
2858 (tui_source_window_base::do_scroll_horizontal): Update.
2859 (tui_source_window_base::set_is_exec_point_at): Rename from
2860 tui_set_is_exec_point_at.
2861 (tui_update_all_breakpoint_info): Update.
2862 * tui/tui-stack.c (tui_show_frame_info): Update.
2863 * tui/tui-layout.c (show_data): Add cast.
2864 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2865 * tui/tui-data.h (struct tui_source_window_base) <refill,
2866 set_is_exec_point_at>: New methods.
2867 (tui_source_windows, tui_add_to_source_windows): Update types.
2868 (tui_add_to_source_windows): Remove redundant declaration.
2869 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2870 (tui_source_windows): Change return type.
2871 (tui_clear_source_windows_detail): Update.
2872 (tui_add_to_source_windows): Change type of parameter.
2873 (tui_free_all_source_wins_content): Update.
2874
2042b506
TT
28752019-06-25 Tom Tromey <tom@tromey.com>
2876
2877 * tui/tui-wingeneral.c (tui_win_info::refresh)
2878 (tui_source_window_base::refresh): New methods.
2879 (tui_refresh_all): Call the refresh method.
2880 * tui/tui-data.h (struct tui_win_info)
2881 (struct tui_source_window_base) <refresh>: New method.
2882
56122977
TT
28832019-06-25 Tom Tromey <tom@tromey.com>
2884
2885 * tui/tui.h (tui_is_window_visible): Return bool.
2886 * tui/tui.c (tui_is_window_visible): Return bool.
2887 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2888 (tui_make_visible, tui_make_invisible)
2889 (tui_win_info::make_visible)
2890 (tui_source_window_base::make_visible, make_all_visible)
2891 (tui_make_all_visible, tui_make_all_invisible): Update.
2892 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2893 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2894 bool.
2895 (struct tui_win_info, struct tui_source_window_base)
2896 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2897 * tui/tui-data.c (tui_init_generic_part): Update.
2898
cda37efb
TT
28992019-06-25 Tom Tromey <tom@tromey.com>
2900
2901 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2902 (tui_source_window_base::make_visible): New methods.
2903 (make_all_visible): Make method call.
2904 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2905 (struct tui_source_window_base, struct tui_cmd_window): Override
2906 make_visible.
2907 (tui_win_is_source_type): Don't declare.
2908 * tui/tui-data.c (tui_win_is_source_type): Remove.
2909
6a0ee02c
TT
29102019-06-25 Tom Tromey <tom@tromey.com>
2911
2912 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2913 NULL check.
2914
63901aec
TT
29152019-06-25 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2918 Inline constructor. Add initializers for members.
2919 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2920 constructors; now inline in class.
2921
ceb13a13
TT
29222019-06-25 Tom Tromey <tom@tromey.com>
2923
2924 * tui/tui-regs.c (tui_show_registers): Update.
2925 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2926 bool.
2927 * tui/tui-data.c (tui_data_window::clear_detail)
2928 (tui_data_window): Update.
2929
238eb706
TT
29302019-06-25 Tom Tromey <tom@tromey.com>
2931
2932 * tui/tui-windata.c (tui_display_all_data)
2933 (tui_display_data_from_line, tui_display_data_from)
2934 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2935 Update.
2936 * tui/tui-regs.c (tui_last_regs_line_no)
2937 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2938 (tui_show_registers, tui_show_register_group)
2939 (tui_display_registers_from, tui_display_reg_element_at_line)
2940 (tui_display_registers_from_line, tui_check_register_values)
2941 (tui_reg_next, tui_reg_prev): Update.
2942 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2943 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2944 tui_data_window.
2945 (struct tui_win_info) <detail>: Remove. Add new fields from
2946 tui_data_info.
2947 (TUI_DATA_WIN): Add cast.
2948 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2949 (~tui_data_window): Simplify.
2950
81491aa0
TT
29512019-06-25 Tom Tromey <tom@tromey.com>
2952
2953 * tui/tui-layout.c (show_source_disasm_command)
2954 (show_source_or_disasm_and_command): Update.
2955 * tui/tui-io.c (update_cmdwin_start_line)
2956 (tui_redisplay_readline): Update.
2957 * tui/tui-data.h (struct tui_command_info): Remove.
2958 (struct tui_win_info) <detail>: Remove command_info member.
2959 (struct tui_data_window) <start_line>: New member, from
2960 tui_command_info.
2961 (TUI_CMD_WIN): Add casts.
2962
e6e41501
TT
29632019-06-25 Tom Tromey <tom@tromey.com>
2964
2965 * tui/tui-winsource.c (tui_update_source_window)
2966 (tui_refill_source_window)
2967 (tui_source_window_base::do_scroll_horizontal)
2968 (tui_update_breakpoint_info, tui_set_exec_info_content)
2969 (tui_show_exec_info_content, tui_erase_exec_info_content)
2970 (tui_clear_exec_info_content): Update.
2971 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
2972 Update.
2973 * tui/tui-win.c (make_invisible_and_set_new_height)
2974 (make_visible_with_new_height): Update.
2975 * tui/tui-source.c (tui_set_source_content)
2976 (tui_show_symtab_source): Update.
2977 * tui/tui-layout.c (extract_display_start_addr)
2978 (show_source_disasm_command, show_data)
2979 (make_source_or_disasm_window)
2980 (show_source_or_disasm_and_command): Update.
2981 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
2982 (tui_disasm_window::do_scroll_vertical): Remove shadowing
2983 "gdbarch".
2984 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
2985 to tui_source_window_base.
2986 (struct tui_win_info) <detail>: Remove source_info member.
2987 (struct tui_source_window_base) <has_locator>: Inline.
2988 Move contents from tui_source_info; rename has_locator member to
2989 m_has_locator.
2990 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
2991 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
2992 header file.
2993 (tui_source_window_base::clear_detail, ~tui_source_window_base):
2994 Simplify.
2995 (tui_free_all_source_wins_content): Cast to
2996 tui_source_window_base.
2997
44f0e208
TT
29982019-06-25 Tom Tromey <tom@tromey.com>
2999
3000 * tui/tui-win.c (make_invisible_and_set_new_height)
3001 (make_visible_with_new_height): Call has_locator method.
3002 * tui/tui-layout.c (show_source_disasm_command, show_data)
3003 (show_source_or_disasm_and_command): Update for bool change.
3004 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3005 (tui_win_info) <has_locator>: New method.
3006 (struct tui_source_window_base) <has_locator>: New method.
3007 (tui_win_has_locator): Don't declare.
3008 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3009 from tui_win_has_locator.
3010 (tui_source_window_base): Use false, not FALSE.
3011
7778b912
TT
30122019-06-25 Tom Tromey <tom@tromey.com>
3013
3014 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3015 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3016 clear_detail method directly.
3017 (tui_clear_win_detail): Remove.
3018
f83d391c
TT
30192019-06-25 Tom Tromey <tom@tromey.com>
3020
3021 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3022 "this", not TUI_DISASM_WIN.
3023
13446e05
TT
30242019-06-25 Tom Tromey <tom@tromey.com>
3025
3026 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3027 declare.
3028 * tui/tui-winsource.c
3029 (tui_source_window_base::do_scroll_horizontal): Rename from
3030 tui_horizontal_source_scroll.
3031 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3032 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3033 from tui_vertical_data_scroll.
3034 * tui/tui-win.h (tui_scroll): Don't declare.
3035 * tui/tui-win.c (tui_win_info::forward_scroll)
3036 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3037 (tui_win_info::right_scroll): Rename and update.
3038 (tui_scroll_forward_command, tui_scroll_backward_command)
3039 (tui_scroll_left_command, tui_scroll_right_command): Update.
3040 (tui_scroll): Remove.
3041 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3042 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3043 from tui_vertical_source_scroll.
3044 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3045 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3046 from tui_vertical_disassem_scroll.
3047 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3048 do_scroll_horizontal>: New methods.
3049 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3050 Likewise.
3051 (struct tui_source_window_base): Add do_scroll_horizontal.
3052 (struct tui_source_window, struct tui_disasm_window): Add
3053 do_scroll_vertical.
3054 (struct tui_data_window, struct tui_cmd_window): Add
3055 do_scroll_horizontal and do_scroll_vertical.
3056 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3057
5cf82909
TT
30582019-06-25 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-data.h (struct tui_source_window_base): New struct.
3061 (struct tui_source_window): Derive from tui_source_window_base.
3062 (struct tui_disasm_window): New struct.
3063 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3064 from tui_source_window::clear_detail.
3065 (tui_source_window_base): Rename from tui_source_window.
3066 (~tui_source_window_base): Rename from ~tui_source_window.
3067 (tui_alloc_win_info): Create a tui_disasm_window.
3068
ee1d42d6
TT
30692019-06-25 Tom Tromey <tom@tromey.com>
3070
3071 * tui/tui-data.h (struct tui_source_window)
3072 (struct tui_data_window): Declare destructors.
3073 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3074 destructors.
3075 (tui_win_info): Simplify.
3076
b4eb2452
TT
30772019-06-25 Tom Tromey <tom@tromey.com>
3078
3079 * tui/tui-winsource.c (tui_display_main)
3080 (tui_update_source_windows_with_addr)
3081 (tui_update_all_breakpoint_info): Update.
3082 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3083 (new_height_ok, parse_scrolling_args): Update.
3084 * tui/tui-stack.c (tui_show_frame_info): Update.
3085 * tui/tui-data.h (struct tui_list): Remove.
3086 (tui_source_windows): Return a reference to a std::vector.
3087 * tui/tui-data.c (source_windows): Now a std::vector.
3088 (tui_source_windows): Change return type.
3089 (tui_clear_source_windows): Rewrite.
3090 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3091 (tui_free_all_source_wins_content): Rewrite.
3092
8761a91b
TT
30932019-06-25 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3096 (struct tui_data_window, struct tui_cmd_window): Declare
3097 clear_detail method.
3098 * tui/tui-data.c (tui_source_window::clear_detail)
3099 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3100 methods.
3101 (tui_clear_win_detail): Simplify.
3102
0ed69eda
TT
31032019-06-25 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-layout.c (make_source_window, make_disasm_window)
3106 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3107 Return the new window.
3108 (show_source_disasm_command, show_data)
3109 (show_source_or_disasm_and_command): Update.
3110
82432e10
TT
31112019-06-25 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3114 parameter. Return the new window.
3115 (show_source_disasm_command): Update and remove NULL check.
3116 (show_source_or_disasm_and_command): Update.
3117
ec328aa5
TT
31182019-06-25 Tom Tromey <tom@tromey.com>
3119
3120 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3121
33b906ab
TT
31222019-06-25 Tom Tromey <tom@tromey.com>
3123
3124 * tui/tui-data.h (struct tui_win_info): Make constructor
3125 protected. Make destructor virtual. Add initializers.
3126 (tui_source_window, tui_data_window, tui_cmd_window): New
3127 classes.
3128 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3129 constructor. Add "type" parameter.
3130 (tui_source_window, tui_data_window, tui_cmd_window): New
3131 constructors.
3132 (tui_alloc_win_info): Instantiate the appropriate subclass.
3133
e7e11af4
TT
31342019-06-25 Tom Tromey <tom@tromey.com>
3135
3136 * tui/tui-win.c (tui_resize_all): Use delete.
3137 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3138 destructor.
3139 (tui_free_window): Don't declare.
3140 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3141 Update.
3142
6792b55e
TT
31432019-06-25 Tom Tromey <tom@tromey.com>
3144
3145 * tui/tui-data.h (struct tui_win_info): Add constructor.
3146 * tui/tui-data.c (tui_alloc_win_info): Use new.
3147 (tui_free_window): Use delete.
3148
f95675e1
TT
31492019-06-22 Tom Tromey <tom@tromey.com>
3150
3151 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3152 declare.
3153 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3154
5bff081c
TT
31552019-06-22 Tom Tromey <tom@tromey.com>
3156
3157 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3158 declare.
3159 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3160
47e3f474
TV
31612019-06-22 Tom de Vries <tdevries@suse.de>
3162
3163 * dwarf2read.c (create_addrmap_from_aranges)
3164 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3165 instead of '%zu'.
3166
fd5866f6
SM
31672019-06-21 Simon Marchi <simon.marchi@efficios.com>
3168
3169 * dwarf2read.h (dwarf2_section_info_def): Remove.
3170 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3171 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3172 std::vector<dwarf2_section_info>.
3173 (struct dwo_file) <~dwo_file>: Remove.
3174 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3175 types field.
3176 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3177 (dwarf2_read_debug_names): Likewise.
3178 (create_debug_types_hash_table): Change parameter type to
3179 array_view, adjust code accordingly.
3180 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3181 (partial_die_info::fixup): Likewise.
3182 (determine_prefix): Likewise.
3183 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3184
fb1eb2f9
SM
31852019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3186
3187 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3188 gdb_bfd_ref_ptr.
3189 <~dwo_file>: Remove call to gdb_bfd_unref.
3190 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3191 gdb_bfd_ref_ptr::get.
3192
51ac9db5
SM
31932019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3194
3195 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3196 type to htab_up.
3197 * dwarf2read.c (struct dwo_file): Initialize fields.
3198 <~dwo_file>: New.
3199 (free_dwo_file): Remove, move content to ~dwo_file.
3200 (struct dwo_file_deleter): Remove.
3201 (dwo_file_up>: Remove custom deleter.
3202 (free_dwo_files): Remove.
3203 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3204 dwo_files.
3205 (process_skeletonless_type_units): Call unique_ptr::get.
3206 (allocate_dwo_file_hash_table): Add deleter to created hash
3207 table. Change return type to htab_up.
3208 (lookup_dwo_file_slot): Don't memset dwo_file, call
3209 unique_ptr::get.
3210 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3211 (create_dwo_unit_in_dwp_v2): Likewise.
3212 (open_and_init_dwo_file): Likewise.
3213 (free_dwo_file_from_slot): Remove.
3214
dc4ccb6f
SM
32152019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3216
3217 * dwarf2read.h (struct dwarf2_section_info) <readin,
3218 is_virtual>: Change type to bool.
3219 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3220 true instead of 1.
3221
e6a1c5cb
TT
32222019-06-19 Tom Tromey <tom@tromey.com>
3223
3224 * tui/tui-data.h (tui_init_content_element): Don't declare.
3225
6f6ffbeb
TT
32262019-06-19 Tom Tromey <tom@tromey.com>
3227
3228 * tui/tui-data.h (tui_init_win_info): Don't declare.
3229
f23f598e
TV
32302019-06-19 Tom de Vries <tdevries@suse.de>
3231
3232 * dwarf2read.h (abstract_to_concrete): Change type to
3233 std::unordered_map<sect_offset, std::vector<sect_offset>,
3234 gdb::hash_enum<sect_offset>>.
3235
680e1bee
TT
32362019-06-19 Tom Tromey <tromey@adacore.com>
3237
3238 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3239 EVAL_AVOID_SIDE_EFFECTS specially.
3240
dcf37923
TT
32412019-06-19 Tom Tromey <tromey@adacore.com>
3242
3243 * source-cache.c (highlighter): New global.
3244 (source_cache::get_source_lines): Create a highlighter on demand.
3245
494986d5
AB
32462019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * defs.h (deprecated_interactive_hook): Delete declaration.
3249 * interps.c (clear_interpreter_hooks): Remove use of
3250 deprecated_interactive_hook.
3251 * top.c (deprecated_interactive_hook): Delete definition.
3252 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3253
3360b6e7
TV
32542019-06-18 Tom de Vries <tdevries@suse.de>
3255
3256 PR gdb/24515
3257 * dwarf2read.h (abstract_to_concrete): Change type from
3258 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3259 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3260 * dwarf2read.c (read_variable): Update.
3261 (dwarf2_fetch_die_loc_sect_off): Update.
3262
310b3441
TV
32632019-06-17 Tom de Vries <tdevries@suse.de>
3264
3265 PR gdb/24617
3266 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3267 accessing parent[parent_len - 1].
3268
ba9777be
PP
32692019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3270
3271 PR gdb/24364
3272 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3273 call dtrace_process_dof with NULL dof.
3274
2b9f6e89
TV
32752019-06-16 Tom de Vries <tdevries@suse.de>
3276
3277 PR gdb/24445
3278 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3279
431b3ead
TT
32802019-06-16 Tom Tromey <tom@tromey.com>
3281
3282 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3283 (make_all_visible): Use address of member.
3284
d04b44a1
TT
32852019-06-16 Tom Tromey <tom@tromey.com>
3286
3287 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3288 (tui_free_window, free_content, free_content_elements): Remove
3289 unnecessary cast.
3290 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3291 cast.
3292 * tui/tui-regs.c (tui_show_register_group)
3293 (tui_display_registers_from, tui_display_reg_element_at_line):
3294 Remove unnecessary cast.
3295
bf5142e7
AB
32962019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * linux-nat.c (normal_mask): Delete.
3299 (_initialize_linux_nat): Don't initialise normal_mask.
3300
c4973306
SM
33012019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3302
3303 PR gdb/24445
3304 * dwarf-index-write.h (write_psymtabs_to_index): Add
3305 dwz_basename parameter.
3306 * dwarf-index-write.c (write_gdbindex): Move file writing to
3307 write_gdbindex_1. Change return type void.
3308 (assert_file_size): Move up, remove filename parameter.
3309 (write_gdbindex_1): New function.
3310 (write_debug_names): Change return type to void, call
3311 assert_file_size.
3312 (struct index_wip_file): New struct.
3313 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3314 file logic to index_wip_file. Write index for dwz file if
3315 needed.
3316 (save_gdb_index_command): Pass basename of dwz file, if present.
3317 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3318 build-id of dwz file, if present.
3319 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3320 (dwarf2_get_dwz_file): Likewise.
3321 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3322 (dwarf2_get_dwz_file): Likewise.
3323
395f9c91
TT
33242019-06-16 Tom Tromey <tom@tromey.com>
3325
3326 * coffread.c (process_coff_symbol): Use xstrdup.
3327 * value.c (create_internalvar): Use xstrdup.
3328
cafb3438
TT
33292019-06-16 Tom Tromey <tom@tromey.com>
3330
3331 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3332 * breakpoint.c (stopin_command, stopat_command)
3333 (until_break_command, decode_location_default): Remove unnecessary
3334 cast.
3335 * utils.c (subset_compare): Remove unnecessary cast.
3336 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3337 cast.
3338 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3339 cast.
3340 * infcmd.c (path_command): Remove unnecessary cast.
3341 * coffread.c (decode_type): Remove unnecessary cast.
3342 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3343 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3344 * tui/tui-stack.c (tui_show_locator_content)
3345 (tui_show_frame_info): Remove unnecessary cast.
3346 * tui/tui-win.c (tui_scroll_forward_command)
3347 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3348 (parse_scrolling_args): Remove unnecessary cast.
3349 * tui/tui-data.c (init_win_info, tui_del_window)
3350 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3351 (free_content_elements): Remove unnecessary cast.
3352 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3353 unnecessary cast.
3354 * tui/tui-source.c (tui_set_source_content)
3355 (tui_vertical_source_scroll): Remove unnecessary cast.
3356 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3357 cast.
3358 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3359 * tui/tui-regs.c (tui_display_registers_from)
3360 (tui_display_register): Remove unnecessary cast.
3361 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3362 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3363 (make_visible): Remove unnecessary cast.
3364 * tui/tui-winsource.c (tui_erase_source_content)
3365 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3366 unnecessary cast.
3367 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3368 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3369 * stabsread.c (read_type, read_array_type, read_range_type):
3370 Remove unnecessary cast.
3371 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3372 (parse_symbol, parse_type, upgrade_type, parse_external)
3373 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3374 unnecessary cast.
3375 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3376
730ead81
TT
33772019-06-16 Tom Tromey <tom@tromey.com>
3378
3379 * tui/tui-data.c (tui_alloc_generic_win_info)
3380 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3381 checks.
3382
584a927c
AB
33832019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3384 Andrew Burgess <andrew.burgess@embecosm.com>
3385
3386 * f-typeprint.c (f_print_type): Don't return early for not
3387 associated or not allocated types.
3388 (f_type_print_varspec_suffix): Add print_rank parameter and print
3389 ranks of array types in case they dangling.
3390 (f_type_print_base): Add print_rank parameter.
3391
30056ea0
AB
33922019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3393
3394 * NEWS: Mention new MI commands.
3395 * break-catch-throw.c (enum exception_event_kind): Move to
3396 breakpoint.h.
3397 (print_mention_exception_catchpoint): Output text as a single
3398 message.
3399 (catch_exception_command_1): Rename to...
3400 (catch_exception_event): ...this, make non-static, update header
3401 command, and change some parameter types.
3402 (catch_catch_command): Update for changes to
3403 catch_exception_command_1.
3404 (catch_throw_command): Likewise.
3405 (catch_rethrow_command): Likewise.
3406 * breakpoint.c (enum exception_event_kind): Delete.
3407 * breakpoint.h (enum exception_event_kind): Moved here from
3408 break-catch-throw.c.
3409 (catch_exception_event): Declare.
3410 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3411 (mi_cmd_catch_throw): New function.
3412 (mi_cmd_catch_rethrow): New function.
3413 (mi_cmd_catch_catch): New function.
3414 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3415 'catch-catch' entries.
3416 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3417 (mi_cmd_catch_rethrow): Declare.
3418 (mi_cmd_catch_catch): Declare.
3419
ec8e2b6d
AB
34202019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3421
3422 * annotate.c (annotate_source_line): Change return type to void,
3423 update implementation to match.
3424 * annotate.h (annotate_source_line): Change return type to void,
3425 update header comment.
3426 * stack.c (print_frame_info): Don't change what frame information
3427 is printed based on whether annotations are on or not.
3428
0d3abd8c
AB
34292019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3432 (annotate_source): Make static.
3433 (annotate_source_line): Moved from source.c and renamed from
3434 identify_source_line. Update the return type.
3435 * annotate.h (annotate_source): Delete declaration.
3436 (annotate_source_line): Declaration moved from source.h, and
3437 renamed from identify_source_line. Return type updated.
3438 * source.c (identify_source_line): Moved to annotate.c and renamed
3439 to annotate_source_line.
3440 (info_line_command): Remove check of annotation_level.
3441 * source.h (identify_source_line): Move declaration to annotate.h
3442 and rename to annotate_source_line.
3443 * stack.c: Add 'annotate.h' include.
3444 (print_frame_info): Remove check of annotation_level before
3445 calling annotate_source_line.
3446
00df30ae
AB
34472019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3448
3449 * source-cache.c (source_cache::get_plain_source_lines): Use
3450 open_source_file_with_line_charpos instead of just
3451 open_source_file, remove call to find_source_lines.
3452 (source_cache::get_source_lines): Likewise.
3453 * source.c (find_source_lines): Make static.
3454 (get_filename_and_charpos): Renamed into...
3455 (open_source_file_with_line_charpos): ..this along with changes to
3456 return a scoped_fd, and some other minor clean ups.
3457 (identify_source_line): Use open_source_file_with_line_charpos.
3458 (search_command_helper): Use open_source_file_with_line_charpos
3459 instead of just open_source_file, remove call to
3460 find_source_lines.
3461 * source.h (open_source_file_with_line_charpos): Declare new
3462 function.
3463 (find_source_lines): Delete declaration.
3464
afda45a2
AB
34652019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3466
3467 * source.c (get_filename_and_charpos): Remove fullname
3468 parameter.
3469 (identify_source_line): Update call to get_filename_and_charpos.
3470
0735b091
TT
34712019-06-14 Tom Tromey <tromey@adacore.com>
3472
3473 PR gdb/24502:
3474 * ui-style.h (skip_ansi_escape): Update comment.
3475 * ui-file.h (class no_terminal_escape_file): New class.
3476 * ui-file.c (no_terminal_escape_file::write)
3477 (no_terminal_escape_file::puts): New methods.
3478 * cli/cli-logging.c (handle_redirections): Use
3479 no_terminal_escape_file.
3480
52ce35e2
TT
34812019-06-14 Tom Tromey <tromey@adacore.com>
3482
3483 * NEWS: Move convenience variable news above Python news.
3484
73cc7272
TT
34852019-06-14 Tom Tromey <tom@tromey.com>
3486
3487 * gnulib: Move directory to top-level.
3488 * configure.ac: Don't configure gnulib.
3489 * configure: Rebuild.
3490 * common/common-defs.h: Use new path to gnulib.
3491 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3492 (GNULIB_H): Remove.
3493 (INCGNU): Look in new gnulib location.
3494 (HFILES_NO_SRCDIR): Remove gnulib files.
3495 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3496 (generated_files): Remove GNULIB_H.
3497 ($(LIBGNU), all-lib): Remove targets.
3498 (distclean): Don't mention GNULIB_BUILDDIR.
3499 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3500
f5686554
TT
35012019-06-14 Tom Tromey <tromey@adacore.com>
3502
3503 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3504 Warn if symbol file does not provide any symbols.
3505
a0c1ffed
TT
35062019-06-14 Tom Tromey <tromey@adacore.com>
3507
3508 * source.c (find_and_open_source): Respect basenames_may_differ.
3509
7c39e397
AB
35102019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3511
3512 * annotate.c (annotate_breakpoints_invalid): Make use of
3513 scoped_restore_terminal_state.
3514 (annotate_frames_invalid): Likewise.
3515
f411722c
TT
35162019-06-14 Tom Tromey <tromey@adacore.com>
3517
3518 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3519 allow assignment to an internalvar.
3520
4268ec18
TT
35212019-06-14 Tom Tromey <tromey@adacore.com>
3522
3523 * ada-lex.l: Allow "_" in attribute names.
3524
abdb711e
TT
35252019-06-14 Tom Tromey <tromey@adacore.com>
3526
3527 PR gdb/24653:
3528 * regcache.c (registers_changed): Don't call alloca.
3529 * top.c (execute_command): Don't call alloca.
3530
4c048731
PA
35312019-06-13 Pedro Alves <palves@redhat.com>
3532
3533 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3534 'expression'. When parsing an expression, error out if there's
3535 junk after "unlimited".
3536 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3537 (do_set_command): Adjust calls to is_unlimited_literal.
3538
66eb1ed3
PA
35392019-06-13 Pedro Alves <palves@redhat.com>
3540
3541 * compile/compile.c (make_compile_options_def_group): Add braces
3542 around array_view initializer.
3543 * thread.c (make_thread_apply_all_options_def_group)
3544 (make_thread_apply_all_options_def_group): Likewise.
3545
3345721a
PA
35462019-06-13 Pedro Alves <palves@redhat.com>
3547
3548 * NEWS (New commands): Mention "maint test-options
3549 require-delimiter", "maint test-options unknown-is-error", "maint
3550 test-options unknown-is-operand" and "maint show
3551 test-options-completion-result".
3552 (New command options, command completion): New section.
3553 (Completion improvements): New section.
3554 Mention that you can abbreviate "unlimited".
3555
6206060d
PA
35562019-06-13 Pedro Alves <palves@redhat.com>
3557
3558 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3559 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3560 * unittests/cli-utils-selftests.c (test_parse_flags)
3561 (test_parse_flags_qcs): Delete.
3562 (test_cli_utils): Don't call deleted functions.
3563
6665660a
PA
35642019-06-13 Pedro Alves <palves@redhat.com>
3565
3566 * thread.c: Include "cli/cli-option.h".
3567 (tp_array_compar_ascending): Global.
3568 (tp_array_compar): Delete function.
3569 (tp_array_compar_ascending, tp_array_compar_descending): New
3570 functions.
3571 (ascending_option_def, qcs_flag_option_def)
3572 (thr_qcs_flags_option_defs)
3573 (make_thread_apply_all_options_def_group)
3574 (make_thread_apply_options_def_group): New.
3575 (thread_apply_all_command): Use gdb::option::process_options.
3576 (thread_apply_command_completer)
3577 (thread_apply_all_command_completer): New.
3578 (thread_apply_command): Use gdb::option::process_options.
3579 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3580 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3581 to generate help text of "thread apply". Adjust "taas"'s help.
3582 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3583 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3584
f7e13587
PA
35852019-06-13 Pedro Alves <palves@redhat.com>
3586
3587 * thread.c (thread_apply_command): Check for invalid TID with
3588 isdigit instead of !isalpha.
3589
5d707134
PA
35902019-06-13 Pedro Alves <palves@redhat.com>
3591
3592 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3593 (validate_flags_qcs): New.
3594 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3595 (validate_flags_qcs): Declare.
3596 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3597 (make_frame_apply_options_def_group): New.
3598 (frame_apply_command_count): Process options with
3599 gdb::option::process_options.
3600 (frame_apply_completer): New.
3601 (frame_apply_level_completer, frame_apply_all_completer)
3602 (frame_apply_completer): New.
3603 (_initialize_stack): Update help of "frame apply", "frame apply
3604 level", "frame apply all" and "faas" to mention supported options
3605 and install command completers.
3606 * stack.h (frame_apply_all_completer): Declare.
3607 * thread.c: Include "stack.h".
3608 (tfaas_command): Add "--".
3609 (_initialize_thread): Update help "tfaas" to mention supported
3610 options and install command completer.
3611
272d4594
PA
36122019-06-13 Pedro Alves <palves@redhat.com>
3613
3614 * completer.c (complete_nested_command_line): New.
3615 (gdb_completion_word_break_characters_throw): Add assertion.
3616 * completer.h (complete_nested_command_line): Declare.
3617
90a1ef87
PA
36182019-06-13 Pedro Alves <palves@redhat.com>
3619
3620 * stack.c (parse_backtrace_qualifiers): New.
3621 (backtrace_command): Use it.
3622 (backtrace_command_completer): Complete on qualifiers.
3623
d4c16835
PA
36242019-06-13 Pedro Alves <palves@redhat.com>
3625
3626 * frame.c: Include "cli/cli-option.h.
3627 (user_set_backtrace_options): New.
3628 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3629 Delete.
3630 (get_prev_frame): Adjust.
3631 (boolean_option_def, uinteger_option_def)
3632 (set_backtrace_option_defs): New.
3633 (_initialize_frame): Adjust and use
3634 gdb::option::add_setshow_cmds_for_options to install "set
3635 backtrace past-main" and "set backtrace past-entry".
3636 * frame.h: Include "cli/cli-option.h".
3637 (struct frame_print_options): Forward declare.
3638 (print_frame_arguments_all, print_frame_arguments_scalars)
3639 (print_frame_arguments_none): Declare.
3640 (print_entry_values): Delete declaration.
3641 (struct frame_print_options, user_frame_print_options): New.
3642 (struct set_backtrace_options): New.
3643 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3644 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3645 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3646 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3647 (list_args_or_locals): Add frame_print_options parameter.
3648 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3649 * python/py-framefilter.c (enumerate_args): Pass down
3650 USER_FRAME_PRINT_OPTIONS.
3651 * stack.c: Include "cli/cli-option.h".
3652 (print_frame_arguments_all, print_frame_arguments_scalars)
3653 (print_frame_arguments_none): Declare.
3654 (print_raw_frame_arguments, print_entry_values): Delete.
3655 (user_frame_print_options): New.
3656 (boolean_option_def, enum_option_def, frame_print_option_defs):
3657 New.
3658 (struct backtrace_cmd_options): New.
3659 (bt_flag_option_def): New.
3660 (backtrace_command_option_defs): New.
3661 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3662 (print_frame_arg, read_frame_arg, print_frame_args)
3663 (print_frame_info, print_frame): Add frame_print_options parameter
3664 and use it.
3665 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3666 (backtrace_command_1): Add frame_print_options and
3667 backtrace_cmd_options parameters and use them.
3668 (make_backtrace_options_def_group): New.
3669 (backtrace_command): Process command options with
3670 gdb::option::process_options.
3671 (backtrace_command_completer): New.
3672 (_initialize_stack): Extend "backtrace"'s help to mention
3673 supported options. Install completer for "backtrace".
3674 Install some settings commands with add_setshow_cmds_for_options.
3675
2daf894e
PA
36762019-06-13 Pedro Alves <palves@redhat.com>
3677
3678 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3679 and that "set/show print raw frame-arguments" are now deprecated.
3680
3681 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3682 command.
3683 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3684 * stack.c (_initialize_stack): Install "set/show print
3685 raw-frame-arguments", and deprecate "set/show print raw
3686 frame-arguments".
3687 * valprint.c (_initialize_valprint): Deprecate "set/show print
3688 raw".
3689
e6ed716c
PA
36902019-06-13 Pedro Alves <palves@redhat.com>
3691
3692 * compile/compile.c (struct compile_options): New.
3693 (compile_flag_option_def, compile_command_option_defs)
3694 (make_compile_options_def_group): New.
3695 (compile_file_command): Handle options with
3696 gdb::option::process_options.
3697 (compile_file_command_completer): New function.
3698 (compile_code_command): Handle options with
3699 gdb::option::process_options.
3700 (compile_code_command_completer): New function.
3701 (_initialize_compiler): Install completers for "compile code" and
3702 "compile file". Mention available options in "compile code" and
3703 "compile code"'s help.
3704 * completer.c (advance_to_completion_word): New, factored out from
3705 ...
3706 (advance_to_expression_complete_word_point): ... this.
3707 (advance_to_filename_complete_word_point): New.
3708 * completer.h (advance_to_filename_complete_word_point): New
3709 declaration.
3710
7d8062de
PA
37112019-06-13 Pedro Alves <palves@redhat.com>
3712
3713 * compile/compile.c: Include "cli/cli-option.h".
3714 (compile_print_value): Scope data pointer is now a
3715 value_print_options pointer; adjust.
3716 (compile_print_command): Process options. Scope data pointer is
3717 now a value_print_options pointer; adjust.
3718 (_initialize_compile): Update "compile print"'s help to include
3719 supported options. Install a completer for "compile print".
3720 * cp-valprint.c (show_vtblprint, show_objectprint)
3721 (show_static_field_print): Delete.
3722 (_initialize_cp_valprint): Don't install "set print
3723 static-members", "set print vtbl", "set print object" here.
3724 * printcmd.c: Include "cli/cli-option.h" and
3725 "common/gdb_optional.h".
3726 (print_command_parse_format): Rework to fill in a
3727 value_print_options instead of a format_data.
3728 (print_value): Change parameter type from format_data pointer to
3729 value_print_options reference. Adjust.
3730 (print_command_1): Process options. Adjust to pass down a
3731 value_print_options.
3732 (print_command_completer): New.
3733 (_initialize_printcmd): Install print_command_completer as
3734 handle_brkchars completer for the "print" command. Update
3735 "print"'s help to include supported options.
3736 * valprint.c: Include "cli/cli-option.h".
3737 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3738 here from cp-valprint.c.
3739 (boolean_option_def, uinteger_option_def)
3740 (value_print_option_defs, make_value_print_options_def_group):
3741 New. Use gdb::option::add_setshow_cmds_for_options to install
3742 "set print elements", "set print null-stop", "set print repeats",
3743 "set print pretty", "set print union", "set print array", "set
3744 print address", "set print symbol", "set print array-indexes".
3745 * valprint.h: Include <string> and "cli/cli-option.h".
3746 (make_value_print_options_def_group): Declare.
3747 (print_value): Change parameter type from format_data pointer to
3748 value_print_options reference.
3749 (print_command_completer): Declare.
3750
9d0faba9
PA
37512019-06-13 Pedro Alves <palves@redhat.com>
3752
3753 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3754 (COMMON_SFILES): Add maint-test-settings.c.
3755 * cli/cli-decode.c (boolean_enums): New global, factored out from
3756 ...
3757 (add_setshow_boolean_cmd): ... here.
3758 * cli/cli-decode.h (boolean_enums): Declare.
3759 * cli/cli-option.c: New file.
3760 * cli/cli-option.h: New file.
3761 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3762 factored out from ...
3763 (parse_cli_boolean_value(const char *)): ... this.
3764 (is_unlimited_literal): Change parameter type to pointer to
3765 pointer. Adjust and advance ARG pointer.
3766 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3767 (parse_cli_var_enum): New, factored out from ...
3768 (do_set_command): ... this. Adjust.
3769 * cli/cli-setshow.h (parse_cli_boolean_value)
3770 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3771 (parse_cli_var_enum): Declare.
3772 * cli/cli-utils.c: Include "cli/cli-option.h".
3773 (get_ulongest): New.
3774 * cli/cli-utils.h (get_ulongest): Declare.
3775 (check_for_argument): New overloads.
3776 * maint-test-options.c: New file.
3777
2c722807
PA
37782019-06-13 Pedro Alves <palves@redhat.com>
3779
3780 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3781 parse a range if "-" is at the end of the string.
3782
dee7b4c8
PA
37832019-06-13 Pedro Alves <palves@redhat.com>
3784
3785 * cli/cli-setshow.c (parse_auto_binary_operation)
3786 (parse_cli_boolean_value): Don't allow "o".
3787
dca0f6c0
PA
37882019-06-13 Pedro Alves <palves@redhat.com>
3789
3790 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3791 * NEWS: Mention maint test-settings KIND.
3792 * maint-test-settings.c: New file.
3793
597bf39d
PA
37942019-06-13 Pedro Alves <palves@redhat.com>
3795
3796 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3797 completer.
3798 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3799 "set" completers.
3800
48c410fb
PA
38012019-06-13 Pedro Alves <palves@redhat.com>
3802
3803 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3804 after item.
3805
93bcb043
PA
38062019-06-13 Pedro Alves <palves@redhat.com>
3807
3808 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3809
cbba3ecd
PA
38102019-06-13 Pedro Alves <palves@redhat.com>
3811
3812 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3813 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3814 call.
3815 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3816 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3817 calls.
3818 (check_for_argument): Skip spaces after argument.
3819
b9a3f842
PA
38202019-06-13 Pedro Alves <palves@redhat.com>
3821
3822 * thread.c (thread_apply_command): Adjust TID parsing.
3823 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3824 detected before end of string.
3825 (tid_is_in_list): Error out if LIST is invalid.
3826
3844e605
PA
38272019-06-13 Pedro Alves <palves@redhat.com>
3828
3829 * completer.c (complete_line_internal_1): Rewind completion word
3830 point.
3831 (completion_tracker::advance_custom_word_point_by): Change
3832 parameter type to int.
3833 * completer.h (completion_tracker::advance_custom_word_point_by):
3834 Likewise.
3835
00b56dbe
PA
38362019-06-13 Pedro Alves <palves@redhat.com>
3837
3838 * completer.c (advance_to_completion_word): Handle delimiters.
3839
d106773e
PA
38402019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3841
3842 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3843
08f10e02
TT
38442019-06-11 Tom Tromey <tom@tromey.com>
3845
3846 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3847 (xmalloc_failed): Move to alloc.c.
3848 * alloc.c: New file.
3849 * Makefile.in (COMMON_SFILES): Add alloc.c.
3850
1c7fe951
TT
38512019-06-11 Tom Tromey <tom@tromey.com>
3852
3853 * nat/linux-waitpid.c: Don't include server.h.
3854 (linux_debug): Remove.
3855 (my_waitpid): Update.
3856
89549d7f
TT
38572019-06-11 Tom Tromey <tromey@adacore.com>
3858
3859 * infcall.c (_initialize_infcall): Remove trailing newline from
3860 help.
3861 * user-regs.c (_initialize_user_regs): Remove trailing newline
3862 from help.
3863 * typeprint.c (_initialize_typeprint): Remove trailing newline
3864 from help.
3865 * reverse.c (_initialize_reverse): Remove trailing newlines from
3866 help.
3867 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3868 from help.
3869 * language.c (add_set_language_command): Remove trailing newline
3870 from help.
3871 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3872 help.
3873 * disasm.c (_initialize_disasm): Remove trailing newline from
3874 help.
3875 * top.c (init_main): Remove trailing newline from help.
3876 * interps.c (_initialize_interpreter): Remove trailing newline
3877 from help.
3878 * btrace.c (_initialize_btrace): Remove trailing newlines from
3879 help.
3880 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3881 from help.
3882 * python/python.c (_initialize_python): Remove trailing newline
3883 from help.
3884 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3885 help.
3886 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3887 from help. Reformat some text.
3888 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3889 from help.
3890 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3891 newline from help.
3892
86108c13
TT
38932019-06-11 Tom Tromey <tromey@adacore.com>
3894
3895 * darwin-nat.c (darwin_decode_exception_message)
3896 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3897
a7067863
AB
38982019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * valops.c (value_slice): Check for not allocated or not
3901 associated values.
3902
9ab08412
TV
39032019-06-10 Tom de Vries <tdevries@suse.de>
3904
3905 PR gdb/24618
3906 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3907 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3908 invalid.
3909
f19e22e9
TV
39102019-06-10 Tom de Vries <tdevries@suse.de>
3911
3912 PR gdb/24611
3913 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3914 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3915
e99f9db0
TV
39162019-06-10 Tom de Vries <tdevries@suse.de>
3917
3918 PR symtab/24545
3919 * symtab.c (struct demangled_name_entry): Add language field.
3920 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3921 static minimal symbol". Set and use language field.
3922
9bf7038b
TT
39232019-06-10 Tom Tromey <tromey@adacore.com>
3924
3925 * ada-lang.c (_initialize_ada_language): Update help text.
3926
422186a9
TT
39272019-06-10 Tom Tromey <tromey@adacore.com>
3928
3929 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3930 with a newline.
3931 * guile/guile.c (handle_boot_error): Don't end warning with a
3932 newline.
3933 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3934 warning with a newline.
3935 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3936 newline.
3937 (s12z_frame_cache): Likewise.
3938 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3939 a newline.
3940 * solib-svr4.c (disable_probes_interface): Don't end warning with
3941 a newline.
3942 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3943 newline.
3944 * python/python.c (do_finish_initialization): Don't end warning
3945 with a newline.
3946
25ce02ee
TT
39472019-06-10 Tom Tromey <tom@tromey.com>
3948
3949 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3950 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3951 gdbpy_enter.
3952
caa429d8
TT
39532019-06-10 Tom Tromey <tromey@adacore.com>
3954
3955 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3956 data.
3957 (elf_new_init): Don't call stabsread_new_init.
3958 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3959 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3960 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3961
81873cc8
TV
39622019-06-10 Tom de Vries <tdevries@suse.de>
3963
3964 PR symtab/16264
3965 PR symtab/24517
3966 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3967
4fa0265e
РИ
39682019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3969
3970 * source.c (find_and_open_source): Also rewrite relative file
3971 names.
3972
1a3da2cd
AB
39732019-04-26 Amos Bird <amosbird@gmail.com>
3974
3975 * annotate.c (annotate_thread_exited): Add "thread-exited"
3976 annotation.
3977
3847a7bf
TT
39782019-06-06 Tom Tromey <tromey@adacore.com>
3979
3980 * maint.h (class scoped_command_stats): Use
3981 DISABLE_COPY_AND_ASSIGN.
3982 <print_time>: New method.
3983 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
3984 print_time.
3985 (scoped_command_stats::print_time): New method.
3986
312617a3
AB
39872019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
3990 instructions of lengths 6 or 8 bytes.
3991
b02f78f9
PA
39922019-06-04 Pedro Alves <palves@redhat.com>
3993
3994 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
3995
3996 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
3997 * breakpoint.c (condition_completer): Likewise.
3998 * cli/cli-dump.c (scan_expression): Likewise.
3999 * common/filestuff.c (mkdir_recursive): Likewise.
4000 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4001 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4002 (gdb_abspath): Likewise.
4003 * compile/compile-cplus-types.c
4004 (compile_cplus_instance::decl_name): Likewise.
4005 * completer.c (complete_explicit_location):
4006 (signal_completer, reg_or_group_completer_1): Likewise.
4007 * cp-support.c (cp_remove_params_if_any): Likewise.
4008 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4009 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4010 * infcmd.c (strip_bg_char): Likewise.
4011 * linespec.c (copy_token_string): Likewise.
4012 * mi/mi-main.c (output_cores): Likewise.
4013 * psymtab.c (psymtab_search_name):
4014 * symfile.c (test_set_ext_lang_command): Likewise.
4015 * target.c (target_fileio_read_stralloc): Likewise.
4016 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4017 * value.c (complete_internalvar): Likewise.
4018
e1f2e1a2
CB
40192019-06-04 Christian Biesinger <cbiesinger@google.com>
4020
4021 Add objfile property to gdb.Type.
d3238f7d
PA
4022 * NEWS: Mention Python API addition.
4023 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4024
e664d728
PW
40252019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4026
4027 * NEWS: Mention the new set|show style [title|highlight].
4028 Mention changes to "show style", "help" and "apropos".
4029
66d8c862
PW
40302019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4031
4032 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4033 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4034 instead of print_help_for_command.
4035 (print_doc_of_command): New function.
4036 (help_list): Add 'apropos -v word' suggestion.
4037 (print_help_for_command): Style the command name using title style.
4038 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4039 (_initialize_cli_cmds): Describe -v in apropos_command help.
4040
9303eb2f
PW
40412019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4042
4043 * cli/cli-style.h (cli_style_option): Add name in constructor,
4044 add m_name class member, add constructor with intensity,
4045 add name class function.
4046 (cli_style_option::add_setshow_commands): Remove name argument.
4047 (highlight_style, title_style): New styles.
4048 * cli/cli-style.c (do_show): New function that shows a style
4049 characteristic styling the style name with itself.
4050 (set_style_name): New function.
4051 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4052 Update all callers according to the changes in cli/cli-style.h.
4053 * utils.h (fputs_highlighted): New function.
4054 * utils.c (fputs_highlighted): Likewise.
4055
e2c52041
PW
40562019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4057
4058 * NEWS: Mention new pipe command and new convenience variables.
4059
947d3946
PW
40602019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4061
4062 * cli/cli-cmds.c (pipe_command): New function.
4063 (_initialize_cli_cmds): Call add_com for pipe_command.
4064 Define | as an alias for pipe.
4065 (exit_status_set_internal_vars): New function.
4066 (shell_escape): Call exit_status_set_internal_vars.
4067 cli/cli-decode.c (find_command_name_length): Recognize | as
4068 a single character command.
4069
b8fd0918
PW
40702019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4071
4072 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4073 top.c (execute_command_to_ui_file): New function, mostly a copy
4074 of execute_command_to_string.
4075 (execute_command_to_string): Implement by calling
4076 execute_command_to_ui_file.
4077
68bb5386
PW
40782019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4079
4080 * top.h (saved_command_line): Remove declaration.
4081 * top.c (previous_saved_command_line, previous_repeat_arguments):
4082 New variables.
4083 (saved_command_line): Make static, define together with other
4084 'repeat variables'.
4085 (dont_repeat): Clear repeat_arguments.
4086 (repeat_previous, get_saved_command_line, save_command_line):
4087 New functions.
4088 (gdb_init): Initialize saved_command_line
4089 and previous_saved_command_line.
4090 * main.c (captured_main_1): Remove saved_command_line initialization.
4091 * event-top.c (handle_line_of_input): Update to use
4092 the new 'repeat' related functions instead of direct access to
4093 saved_command_line.
4094 * command.h (repeat_previous, get_saved_command_line,
4095 save_command_line): New declarations.
4096 (dont_repeat): Add comment.
4097
bfcdb852
TT
40982019-05-30 Tom Tromey <tromey@adacore.com>
4099
4100 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4101 Fix comment.
4102 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4103
0ef209f2
JV
41042019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4105
4106 PR cli/24587
4107 * completer.c (complete): Initialize variable word.
4108
955b06fa
SDJ
41092019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4110
4111 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4112 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4113 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4114 'body' is NULL to the outter 'if', protecting the '!is_define'
4115 situation as well.
4116
fa9c3fa0
TT
41172019-05-29 Tom Tromey <tromey@adacore.com>
4118
4119 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4120 (dwarf_unknown): New function.
4121 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4122 (dwarf_type_encoding_name): Use dwarf_unknown.
4123
4330d61d
TT
41242019-05-29 Tom Tromey <tromey@adacore.com>
4125
4126 PR c++/20020:
4127 * cp-valprint.c (cp_print_value_fields): Call
4128 cp_print_static_field inside "try".
4129
33a6bc35
TT
41302019-05-29 Tom Tromey <tromey@adacore.com>
4131
4132 * inflow.c (struct terminal_info): Add default operator=.
4133 * configure: Rebuild.
4134 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4135 -Wdeprecated-copy-dtor, -Wredundant-move.
4136
000439d5
TT
41372019-05-29 Tom Tromey <tromey@adacore.com>
4138
4139 * NEWS: Add entry.
4140 * infcmd.c (print_return_value_1): Handle finish_print
4141 option.
4142 (show_print_finish): New function.
4143 (_initialize_infcmd): Add "set/show print finish" commands.
4144 * valprint.c (user_print_options): Initialize new member.
4145 * valprint.h (struct value_print_options) <finish_print>: New
4146 member.
4147
c0e70c62
TT
41482019-05-28 Tom Tromey <tromey@adacore.com>
4149
4150 * ada-lang.c (ada_remove_Xbn_suffix)
4151 (find_old_style_renaming_symbol)
4152 (parse_old_style_renaming): Remove.
4153 (ada_find_renaming_symbol): Don't call
4154 find_old_style_renaming_symbol.
4155 (ada_is_renaming_symbol): Rename from
4156 ada_find_renaming_symbol. Remove "block" parameter. Return
4157 bool. Now static.
4158 (ada_read_var_value): Update and simplify.
4159 * ada-exp.y (write_var_or_type): Remove old code.
4160
766f8836
AH
41612019-05-28 Alan Hayward <alan.hayward@arm.com>
4162
4163 * event-top.c: Remove include comment.
4164 * inflow.c (class scoped_ignore_sigttou): Move from here...
4165 * inflow.h (class scoped_ignore_sigttou): ...to here.
4166 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4167 * top.c: Remove include comment.
4168
eb41253a
TT
41692019-05-27 Tom Tromey <tom@tromey.com>
4170
4171 * NEWS: Fix typo.
4172
4ca51187
TT
41732019-05-22 Tom Tromey <tromey@adacore.com>
4174
4175 * target.c (target_follow_exec): Constify parameter.
4176 * target-delegates.c: Rebuild.
4177 * remote.c (remote_target::follow_exec): Constify parameter.
4178 * infrun.c (follow_exec): Constify parameter.
4179 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4180 (target_follow_exec): Likewise.
4181
8fca4da0
AH
41822019-05-22 Alan Hayward <alan.hayward@arm.com>
4183
4184 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4185 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4186
b7060614
AH
41872019-05-22 Alan Hayward <alan.hayward@arm.com>
4188
4189 * NEWS: Add debugredirect and testsuite sections.
4190
0a5954bd
SC
41912019-05-22 Simon Cook <simon.cook@embecosm.com>
4192
4193 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4194 target descriptions using exclusively floating point register name
4195 aliases.
4196
dc42e902
AB
41972019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4198
4199 PR gdb/18644:
4200 * f-lang.c (build_fortran_types): Handle the case where
4201 gdbarch_floatformat_for_type returns a nullptr.
4202
fb7806c7
TV
42032019-05-21 Tom de Vries <tdevries@suse.de>
4204
4205 PR cli/24587
4206 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4207
34d11c68
AB
42082019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4209
4210 PR gdb/18644:
4211 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4212 16-byte floats.
4213 * i386-tdep.c (i386_floatformat_for_type): Use
4214 floatformats_ia64_quad for the 16-byte floating point component
4215 within a fortran 32-byte complex number.
4216
122cf0f2
AB
42172019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4218
4219 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4220 delete default constructor.
4221 (find_partial_die): Update to return const struct.
4222 (partial_die_parent_scope): Move variable declaration into scope
4223 of its use and change its type to auto.
4224 (guess_partial_die_structure_name): Likewise.
4225 (partial_die_info::fixup): Likewise.
4226
33d0e35a
TT
42272019-05-17 Tom Tromey <tromey@adacore.com>
4228
4229 * source.c (find_and_open_source): Remove cast.
4230
a45575b0
TT
42312019-05-17 Tom Tromey <tromey@adacore.com>
4232
4233 * annotate.c (annotate_source): Make "filename" const.
4234 * annotate.h (annotate_source): Use const.
4235
81f47ac2
AH
42362019-05-17 Alan Hayward <alan.hayward@arm.com>
4237
4238 * disasm.c (set_disassembler_options): Send errors to stderr.
4239
ca1285d1
AH
42402019-05-17 Alan Hayward <alan.hayward@arm.com>
4241
4242 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4243 (cli_interp_base::set_logging): Check debug_redirect.
4244 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4245 * cli/cli-logging.c (debug_redirect): Add static variable.
4246 (pop_output_files): Add default param.
4247 (handle_redirections): Print debug setting.
4248 (show_logging_command): Likewise.
4249 (_initialize_cli_logging): Add debugredirect command.
4250 * interps.c (current_interp_set_logging): Add debug_redirect
4251 parameter.
4252 * interps.h (set_logging): Add debug_redirect parameter.
4253 (current_interp_set_logging): Likewise.
4254 * mi/mi-common.h: Likewise.
4255 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4256
42572019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4258 Tom Tromey <tromey@adacore.com>
4259
4260 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4261 directly.
4262 * cli/cli-interp.h (make_logging_output): Remove declaration.
4263 * cli/cli-logging.c (make_logging_output): Remove function.
4264 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4265 directly.
4266 * ui-file.c (tee_file::tee_file): Remove bools.
4267 (tee_file::~tee_file): Remove deletes.
4268 * ui-file.h (tee_file): Remove bools.
4269
26648588
JV
42702019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4271
4272 * mi/mi-cmds.h (mi_cmd_complete): New function.
4273 * mi/mi-main.c (mi_cmd_complete): Likewise.
4274 * mi/mi-cmds.c: Define new MI command -complete.
4275 * NEWS: Mention new -complete command.
4276
6e035501
JV
42772019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4278
4279 * completer.h (complete): New function.
4280 * completer.c (complete): Likewise.
4281 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4282 function defined in completer.h.
4283
7d0e2ece
JV
42842019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4285
e79be6e5 4286 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4287
fb816e8b
TV
42882019-05-17 Tom de Vries <tdevries@suse.de>
4289
4290 PR gdb/24094
4291 * dwarf2read.c (struct cu_partial_die_info): New struct.
4292 (find_partial_die): Return cu_partial_die_info.
4293 (partial_die_parent_scope, guess_partial_die_structure_name)
4294 (partial_die_info::fixup): Handle new return type of find_partial_die.
4295
677052f2
SDJ
42962019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4297
4298 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4299 "std::string", simplifying the algorithm.
4300
f3da9116
SDJ
43012019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4302
4303 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4304 (stap_static_probe_ops::get_probes): Likewise.
4305
f1bb75ab
SDJ
43062019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4307
4308 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4309 '-')" and "else if".
4310 (stap_parse_single_operand): Join checks for
4311 "gdbarch_stap_parse_special_token_p" and
4312 "gdbarch_stap_parse_special_token" in the same "if" statement.
4313 Invert check when verifying for operation on register
4314 displacement.
4315
3ca58cde
SDJ
43162019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4317
4318 * stap-probe.c (stap_get_opcode): Update comment.
4319 (stap_get_expected_argument_type): Likewise.
4320 (handle_stap_probe): Likewise.
4321
af2d9bee
SDJ
43222019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4323
4324 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4325 return type to 'bool'. Adjust comment. Use 'bool' when
4326 appropriate.
4327 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4328 * stap-probe.c (stap_parse_argument_1): Likewise.
4329 (stap_is_operator): Likewise.
4330 (stap_is_generic_prefix): Likewise.
4331 (stap_is_register_prefix): Likewise.
4332 (stap_is_register_indirection_prefix): Likewise.
4333 (stap_is_integer_prefix): Likewise.
4334 (stap_generic_check_suffix): Likewise.
4335 (stap_check_integer_suffix): Likewise.
4336 (stap_check_register_suffix): Likewise.
4337 (stap_check_register_indirection_suffix): Likewise.
4338 (stap_parse_register_operand): Likewise.
4339 (stap_parse_single_operand): Likewise.
4340 (stap_parse_argument_1): Likewise.
4341 (stap_probe::get_argument_count): Likewise.
4342 (stap_is_operator): Likewise.
4343
61c9c421
TT
43442019-05-16 Tom Tromey <tromey@adacore.com>
4345
4346 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4347 keyword to foreach.
4348
9ddc1af1
SM
43492019-05-15 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * linux-thread-db.c (try_thread_db_load_1): Change return type
4352 to bool.
4353 (try_thread_db_load): Likewise.
4354 (try_thread_db_load_from_pdir_1): Likewise.
4355 (try_thread_db_load_from_pdir): Likewise.
4356 (try_thread_db_load_from_sdir): Likewise.
4357 (try_thread_db_load_from_dir): Likewise.
4358 (thread_db_load_search): Likewise.
4359 (has_libpthread): Likewise.
4360 (thread_db_load): Likewise.
4361
7bede828
SDJ
43622019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4363
4364 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4365 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4366 NULL, and complain/return if that's the case.
4367
c5358db4
JD
43682019-05-15 John Darrington <john@darrington.wattle.id.au>
4369
4370 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4371 (advance, posn, abstract_read_memory): New functions.
4372 [struct mem_read_abstraction]: New struct.
4373 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4374
c408a94f
TT
43752019-05-14 Tom Tromey <tromey@adacore.com>
4376
4377 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4378 value is not lval_memory.
4379
e7bd7fba
TT
43802019-05-14 Tom Tromey <tromey@adacore.com>
4381
4382 * solib.c (info_sharedlibrary_command): Style the file name.
4383
a6d0f249
AH
43842019-05-14 Alan Hayward <alan.hayward@arm.com>
4385
4386 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4387 (aarch64_vnv_type): Likewise.
4388 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4389 * common/tdesc.c: Likewise.
4390 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4391 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4392 * features/aarch64-fpu.xml: Add ieee half view.
4393 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4394 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4395 * gdbtypes.h (struct builtin_type): Likewise.
4396 (struct objfile_type): Likewise.
4397
66b8bb74
SM
43982019-05-12 Paul Naert <paul.naert@polymtl.ca>
4399
4400 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4401 typo.
4402 * location.h (string_to_event_location): Likewise.
4403
21c219fd
JB
44042019-05-11 Joel Brobecker <brobecker@adacore.com>
4405
4406 GDB 8.3 released.
4407
13674803
SM
44082019-05-10 Simon Marchi <simon.marchi@efficios.com>
4409
4410 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4411 New variable declaration.
4412 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4413 New variable.
4414 (print_one_breakpoint): Use ui_out::test_flags and new global
4415 variable to compute use_fixed_output.
4416 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4417 Remove.
4418 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4419 (mi_multi_location_breakpoint_output_fixed): Remove.
4420 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4421 new variable.
4422 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4423 fix_multi_location_breakpoint_output flag if version >= 3.
4424 * ui-out.h (enum ui_out_flag)
4425 <fix_multi_location_breakpoint_output>: New enumerator.
4426
a9eac7f9
SM
44272019-05-10 Simon Marchi <simon.marchi@efficios.com>
4428
4429 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4430
71bed2db
TT
44312019-05-10 Tom Tromey <tromey@adacore.com>
4432
4433 * ada-lang.c (catch_ada_completer): New function.
4434 (_initialize_ada_language): Use it.
4435
24c54127
TT
44362019-05-10 Tom Tromey <tromey@adacore.com>
4437
4438 * thread.c (print_thread_info): Make "requested_threads" const.
4439 * gdbthread.h (print_thread_info): Make "requested_threads"
4440 const.
4441 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4442 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4443
7a102139
TT
44442019-05-08 Tom Tromey <tom@tromey.com>
4445
4446 * gdbtypes.c (objfile_type_data): Change type.
4447 (objfile_type, _initialize_gdbtypes): Update.
4448
924d79e2
TT
44492019-05-08 Tom Tromey <tom@tromey.com>
4450
4451 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4452 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4453 (_initialize_dwarf2_frame): Update.
4454
4c58e337
TT
44552019-05-08 Tom Tromey <tom@tromey.com>
4456
4457 * objc-lang.c (objc_objfile_data): Change type.
4458 (find_methods): Update.
4459 (_initialize_objc_lang): Remove.
4460
d772d2ab
TT
44612019-05-08 Tom Tromey <tom@tromey.com>
4462
4463 * stabsread.c (rs6000_builtin_type_data): Change type.
4464 (rs6000_builtin_type, _initialize_stabsread): Update.
4465
d11d83f4
TT
44662019-05-08 Tom Tromey <tom@tromey.com>
4467
4468 * mips-tdep.c (mips_pdr_data): Remove.
4469 (_initialize_mips_tdep): Update.
4470
9a73f0ad
TT
44712019-05-08 Tom Tromey <tom@tromey.com>
4472
4473 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4474 (hppa_init_objfile_priv_data, read_unwind_info)
4475 (find_unwind_entry, _initialize_hppa_tdep): Update.
4476
8127a2fa
TT
44772019-05-08 Tom Tromey <tom@tromey.com>
4478
4479 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4480 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4481 on obstack.
4482 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4483
91d3055d
TT
44842019-05-08 Tom Tromey <tom@tromey.com>
4485
4486 * mdebugread.c (basic_type_data): Change type.
4487 (basic_type, _initialize_mdebugread): Update.
4488
31930bd3
TT
44892019-05-08 Tom Tromey <tom@tromey.com>
4490
4491 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4492
bdb3ed9e
TT
44932019-05-08 Tom Tromey <tom@tromey.com>
4494
4495 * nto-tdep.c (nto_inferior_data_reg): Change type.
4496 (nto_inferior_data): Update.
4497 (nto_inferior_data_cleanup, nto_new_inferior_data)
4498 (_initialize_nto_tdep): Remove.
4499 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4500
f37b313d
TT
45012019-05-08 Tom Tromey <tom@tromey.com>
4502
4503 * ada-lang.c (struct ada_inferior_data): Add initializers.
4504 (ada_inferior_data): Change type.
4505 (ada_inferior_data_cleanup): Remove.
4506 (get_ada_inferior_data, ada_inferior_exit)
4507 (struct ada_pspace_data): Add initializers, destructor.
4508 (ada_pspace_data_handle): Change type.
4509 (get_ada_pspace_data): Update.
4510 (ada_pspace_data_cleanup): Remove.
4511
24699405
TT
45122019-05-08 Tom Tromey <tom@tromey.com>
4513
4514 * coffread.c (struct coff_symfile_info): Add initializers.
4515 (coff_objfile_data_key): Move lower. Change type.
4516 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4517 Update.
4518 (coff_free_info): Remove.
4519
d4e05d2f
TT
45202019-05-08 Tom Tromey <tom@tromey.com>
4521
4522 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4523 (fbsd_pspace_data_handle): Move lower. Change type.
4524 (get_fbsd_pspace_data): Update.
4525 (fbsd_pspace_data_cleanup): Remove.
4526 (_initialize_fbsd_tdep): Update.
4527
14ef6690
TT
45282019-05-08 Tom Tromey <tom@tromey.com>
4529
4530 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4531 (get_ada_tasks_pspace_data): Update.
4532 (ada_tasks_pspace_data_cleanup): Remove.
4533 (_initialize_tasks): Update.
4534 (ada_tasks_inferior_data_handle): Change type.
4535 (get_ada_tasks_inferior_data): Update.
4536 (ada_tasks_inferior_data_cleanup): Remove.
4537 (struct ada_tasks_pspace_data): Add initializers.
4538
814cf43a
TT
45392019-05-08 Tom Tromey <tom@tromey.com>
4540
4541 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4542 * symfile-debug.c (debug_sym_get_probes): Change type.
4543 * stap-probe.c (handle_stap_probe):
4544 (stap_static_probe_ops::get_probes): Change type.
4545 * probe.h (class static_probe_ops) <get_probes>: Change type.
4546 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4547 (parse_probes_in_pspace): Update.
4548 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4549 Update.
4550 (any_static_probe_ops::get_probes): Change type.
4551 * elfread.c (elfread_data): New typedef.
4552 (probe_key): Change type.
4553 (elf_get_probes): Likewise. Update.
4554 (probe_key_free): Remove.
4555 (_initialize_elfread): Update.
4556 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4557 Change type.
4558 (dtrace_process_dof_probe, dtrace_process_dof)
4559 (dtrace_static_probe_ops::get_probe): Change type.
4560
02dc647e
TT
45612019-05-08 Tom Tromey <tom@tromey.com>
4562
4563 * xcoffread.c (struct xcoff_symfile_info): Rename from
4564 coff_symfile_info. Add initializers.
4565 (xcoff_objfile_data_key): Move lower. Change type.
4566 (XCOFF_DATA): Rewrite.
4567 (xcoff_free_info): Remove.
4568 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4569 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4570 (xcoff_initial_scan): Update.
4571
09232438
TT
45722019-05-08 Tom Tromey <tom@tromey.com>
4573
4574 * solib-svr4.c (struct svr4_info): Add initializers and
4575 destructor.
4576 <probes_table>: Now an htab_up.
4577 (solib_svr4_pspace_data): Change type.
4578 (free_probes_table): Simplify.
4579 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4580 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4581 (probes_table_remove_objfile_probes, register_solib_event_probe)
4582 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4583 (_initialize_svr4_solib): Update.
4584
7b4a314f
TT
45852019-05-08 Tom Tromey <tom@tromey.com>
4586
4587 * remote.c (remote_pspace_data): Change type.
4588 (remote_pspace_data_cleanup): Remove.
4589 (get_remote_exec_file, set_pspace_remote_exec_file)
4590 (_initialize_remote): Update.
4591
51d3063a
TT
45922019-05-08 Tom Tromey <tom@tromey.com>
4593
4594 * breakpoint.c (breakpoint_objfile_key): Change type.
4595 (get_breakpoint_objfile_data): Update.
4596 (free_breakpoint_objfile_data): Remove.
4597 (_initialize_breakpoint): Update.
4598
89fb8848
TT
45992019-05-08 Tom Tromey <tom@tromey.com>
4600
4601 * linux-tdep.c (struct linux_info): Add initializers.
4602 (linux_inferior_data): Move. Change type.
4603 (invalidate_linux_cache_inf): Update.
4604 (linux_inferior_data_cleanup): Remove.
4605 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4606
e9b89e2d
TT
46072019-05-08 Tom Tromey <tom@tromey.com>
4608
4609 * auxv.c (auxv_inferior_data): Move. Change type.
4610 (auxv_inferior_data_cleanup): Remove.
4611 (invalidate_auxv_cache_inf): Rewrite.
4612 (get_auxv_inferior_data, _initialize_auxv): Update.
4613
8c42777c
TT
46142019-05-08 Tom Tromey <tom@tromey.com>
4615
4616 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4617 (symfile_debug_objfile_data_key): Change type.
4618 (symfile_debug_installed, debug_qf_has_symbols)
4619 (debug_qf_find_last_source_symtab)
4620 (debug_qf_forget_cached_source_info)
4621 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4622 (debug_qf_print_stats, debug_qf_dump)
4623 (debug_qf_expand_symtabs_for_function)
4624 (debug_qf_expand_all_symtabs)
4625 (debug_qf_expand_symtabs_with_fullname)
4626 (debug_qf_map_matching_symbols)
4627 (debug_qf_expand_symtabs_matching)
4628 (debug_qf_find_pc_sect_compunit_symtab)
4629 (debug_qf_map_symbol_filenames)
4630 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4631 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4632 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4633 (debug_sym_read_linetable, debug_sym_relocate): Update.
4634 (symfile_debug_free_objfile): Remove.
4635 (install_symfile_debug_logging, _initialize_symfile_debug):
4636 Update.
4637
5bfd760d
TT
46382019-05-08 Tom Tromey <tom@tromey.com>
4639
4640 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4641 allocate_on_obstack.
4642 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4643 (get_dwarf2_per_objfile): Update.
4644 (set_dwarf2_per_objfile): Remove.
4645 (dwarf2_has_info, dwarf2_get_section_info): Update.
4646 (dwarf2_free_objfile): Remove.
4647 (_initialize_dwarf2_read): Update.
4648
e85e19b4
TT
46492019-05-08 Tom Tromey <tom@tromey.com>
4650
4651 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4652 initializers.
4653 <unsupported_script_warning_printed,
4654 script_not_found_warning_printed>: Now bool.
4655 (auto_load_pspace_data): Change type.
4656 (~auto_load_pspace_info): Rename from
4657 auto_load_pspace_data_cleanup.
4658 (get_auto_load_pspace_data, init_loaded_scripts_info)
4659 (clear_section_scripts, maybe_print_unsupported_script_warning)
4660 (maybe_print_script_not_found_warning, _initialize_auto_load):
4661 Update.
4662
f6aa7436
TT
46632019-05-08 Tom Tromey <tom@tromey.com>
4664
4665 * objfiles.c (objfile_pspace_info): Add destructor and
4666 initializers.
4667 (objfiles_pspace_data): Change type.
4668 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4669 (get_objfile_pspace_data): Update.
4670 (objfiles_bfd_data): Change type.
4671 (get_objfile_bfd_data): Update.
4672 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4673
6ae614f6
TT
46742019-05-08 Tom Tromey <tom@tromey.com>
4675
4676 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4677 Change type.
4678 (get_catch_syscall_inferior_data): Update.
4679 (catch_syscall_inferior_data_cleanup): Remove.
4680 (_initialize_break_catch_syscall): Update.
4681
6509b8eb
TT
46822019-05-08 Tom Tromey <tom@tromey.com>
4683
4684 * inflow.c (struct terminal_info): Add destructor and
4685 initializers.
4686 (inflow_inferior_data): Change type.
4687 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4688 (get_inflow_inferior_data, inflow_inferior_exit)
4689 (swap_terminal_info, _initialize_inflow): Update.
4690
35632941
TT
46912019-05-08 Tom Tromey <tom@tromey.com>
4692
4693 * target-dcache.c (target_dcache_cleanup): Remove.
4694 (target_dcache_aspace_key): Change type.
4695 (target_dcache_init_p, target_dcache_invalidate)
4696 (target_dcache_get, target_dcache_get_or_init)
4697 (_initialize_target_dcache): Update.
4698 * dcache.h (struct dcache_deleter): New.
4699
3017b94d
TT
47002019-05-08 Tom Tromey <tom@tromey.com>
4701
4702 * symtab.c (struct symbol_cache): Add destructor and
4703 initializers.
4704 (symbol_cache_key): Move. Change type.
4705 (make_symbol_cache, free_symbol_cache): Remove.
4706 (get_symbol_cache): Update.
4707 (symbol_cache_cleanup): Remove.
4708 (ALL_PSPACES, symbol_cache_flush)
4709 (maintenance_print_symbol_cache)
4710 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4711 Update.
4712
a32ad8c5
TT
47132019-05-08 Tom Tromey <tom@tromey.com>
4714
4715 * symtab.c (struct main_info): Add destructor and initializers.
4716 (main_progspace_key): Move. Change type.
4717 (get_main_info): Update.
4718 (main_info_cleanup): Remove.
4719 (_initialize_symtab): Update.
4720
5f6e90a0
TT
47212019-05-08 Tom Tromey <tom@tromey.com>
4722
4723 * registry.h (DECLARE_REGISTRY): Define the _key class.
4724
1bd0c6e4
AB
47252019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4726
4727 * NEWS: Merge two 'New commands' sections.
4728
2228ef77
XR
47292019-05-08 Joel Brobecker <brobecker@adacore.com>
4730
4731 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4732 parameter and use Ada language definition instead.
4733 (ada_val_print_ptr): Remove unused language parameter.
4734 (ada_val_print_num): Remove language parameter and use Ada language
4735 definition instead.
4736 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4737 parameter.
4738 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4739 parameter and use Ada language definition instead.
4740 (ada_val_print_1): Update all ada_val_print_xxx calls.
4741 Remove language parameter.
4742 (ada_val_print): Update ada_val_print_1 call.
4743
60fcc1c3
TT
47442019-05-08 Tom Tromey <tromey@adacore.com>
4745
4746 * remote.c (remote_hw_watchpoint_limit)
4747 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4748 Now static.
4749
ed2b7c17
TT
47502019-05-08 Tom Tromey <tromey@adacore.com>
4751
4752 * maint.c (_initialize_maint_cmds): Move initialization code to
4753 remote.c.
4754 (watchdog, show_watchdog): Move to remote.c.
4755 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4756 "watchdog" static.
4757 (_initialize_remote): Move initialization code from maint.c.
4758 * defs.h (watchdog): Don't declare.
4759
b0be6c91
TT
47602019-05-08 Tom Tromey <tromey@adacore.com>
4761
4762 * tui/tui-interp.c: Include main.h.
4763 * interps.c: Include main.h.
4764 * main.h (interpreter_p): Declare.
4765 * defs.h (interpreter_p): Don't declare.
4766
587ee17b
TT
47672019-05-08 Tom Tromey <tromey@adacore.com>
4768
4769 * dwarf2loc.c: Include dwarf2read.h.
4770 * defs.h (read_unsigned_leb128): Don't declare.
4771 * dwarf2read.h (read_unsigned_leb128): Declare.
4772
ca1df239
TT
47732019-05-08 Tom Tromey <tromey@adacore.com>
4774
4775 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4776 method.
4777
99f20f08
TT
47782019-05-08 Tom Tromey <tromey@adacore.com>
4779
4780 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4781 when no wrap column is set.
4782
80e55b13
TT
47832019-05-08 Tom Tromey <tromey@adacore.com>
4784
4785 * c-lang.c (c_get_string): Handle non-C-style arrays.
4786
9d3421af
TT
47872019-05-08 Tom Tromey <tromey@adacore.com>
4788
4789 * typeprint.c (print_offset_data::update): Print the bit offset,
4790 not the number of bits remaining.
4791
844333e2
TT
47922019-05-08 Tom Tromey <tromey@adacore.com>
4793
4794 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4795 padding at end of comment.
4796
988915ee
TT
47972019-05-08 Tom Tromey <tromey@adacore.com>
4798
4799 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4800 Compare main types.
4801
26bfd823
TT
48022019-05-06 Tom Tromey <tom@tromey.com>
4803
4804 * common/scoped_mmap.c: Include common-defs.h.
4805 * common/scoped_mmap.h: Don't include config.h.
4806
89055eaa
TT
48072019-05-04 Tom Tromey <tom@tromey.com>
4808
4809 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4810 (struct aarch64_call_info): Add initializers.
4811 <si>: Now a std::vector.
4812 (pass_on_stack, aarch64_push_dummy_call): Update.
4813
5da01df5
TT
48142019-05-04 Simon Marchi <simon.marchi@efficios.com>
4815 Tom Tromey <tom@tromey.com>
4816
4817 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4818 (ppc_threads): Now a std::vector. Now static.
4819 (hwdebug_find_thread_points_by_tid)
4820 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4821 Update.
4822
fbdf05a1
TT
48232019-05-04 Tom Tromey <tom@tromey.com>
4824
4825 * arc-tdep.c (arc_tdesc_init): Return bool.
4826
06d16ec9
TT
48272019-05-04 Tom Tromey <tom@tromey.com>
4828
4829 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4830 Use gdb_assert_not_reached.
4831
9c056022
TT
48322019-05-04 Tom Tromey <tom@tromey.com>
4833
4834 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4835 "false".
4836
fa9c2a59
TT
48372019-05-04 Tom Tromey <tom@tromey.com>
4838
4839 * arc-tdep.c (arc_tdesc_init): Use bool.
4840
e2eb806a
TT
48412019-05-04 Tom Tromey <tom@tromey.com>
4842
4843 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4844
6fe87677
TT
48452019-05-04 Tom Tromey <tom@tromey.com>
4846
4847 * cli/cli-cmds.c (valid_command_p): Return bool.
4848
7f008c9e
TT
48492019-05-04 Tom Tromey <tom@tromey.com>
4850
4851 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4852 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4853
b6484282
RT
48542019-05-04 Raul Tambre <raul@tambre.ee>
4855
4856 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4857 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4858 operator for comparison.
4859
af97b416
TT
48602019-05-04 Tom Tromey <tom@tromey.com>
4861
4862 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4863 (lookup_partial_symbol, print_partial_symbols)
4864 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4865 (psymbol_compare): Update.
4866 (add_psymbol_to_bcache): Clear the entire psymbol.
4867 (maintenance_check_psymtabs): Update.
4868 * psympriv.h (struct partial_symbol): Don't derive from
4869 general_symbol_info.
4870 <obj_section, unrelocated_address, address,
4871 set_unrelocated_address>: Update.
4872 <ginfo>: New member.
4873 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4874 (debug_names::write_psymbols): Update.
4875
9d6d4be8
TV
48762019-05-04 Tom de Vries <tdevries@suse.de>
4877
4878 * contrib/cc-with-tweaks.sh: Support -n arg.
4879
66452beb
PW
48802019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4881
4882 * corelow.c (core_target::detach): Ensure frame cache and
4883 register caches are cleared.
4884 inferior.c (exit_inferior_1): Likewise.
4885
bde09ab7
TT
48862019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4887 Tom Tromey <tom@tromey.com>
4888
4889 * dictionary.c (collate_pending_symbols_by_language): Remove
4890 "struct" from foreach.
4891 * symtab.c (lookup_global_symbol_from_objfile)
4892 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4893 foreach.
4894 * ser-tcp.c (net_open): Remove "struct" from foreach.
4895 * objfiles.c (objfile_relocate, objfile_rebase)
4896 (objfile_has_symbols): Remove "struct" from foreach.
4897 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4898 from foreach.
4899 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4900 foreach.
4901 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4902 "struct" from foreach.
4903 * ada-lang.c (create_excep_cond_exprs)
4904 (ada_exception_catchpoint_cond_string): Remove "struct" from
4905 foreach.
4906
222a8d25
TT
49072019-05-03 Tom Tromey <tromey@adacore.com>
4908
4909 * ada-exp.y (convert_char_literal): Check suffix of each
4910 enumerator.
4911
fcd60b84
DP
49122019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4913
4914 PR ada/21406:
4915 * ada-exp.y (yywrap): Don't define.
4916 * ada-lex.l (%option): Add noyywrap
4917 (yywrap): Remove.
4918
5f2459c2
EZ
49192019-05-03 Eli Zaretskii <eliz@gnu.org>
4920
353ea2d1
EZ
4921 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4922 _WIN32_WINNT to the XP level, unless already defined to a higher
4923 level.
4924
4925 * unittests/parse-connection-spec-selftests.c:
4926 * ser-tcp.c:
4927 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4928 override.
4929
5f2459c2
EZ
4930 * symfile.c (find_separate_debug_file): Remove colon from the
4931 drive spec of DOS/Windows file names of the target, so that the
4932 file name produced from DEBUGDIR and the target's directory will
4933 be valid on DOS/Windows systems.
4934
80062eb9
AB
49352019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 * rust-lang.c (val_print_struct): Handle printing structures
4938 containing strings.
4939
b8c05e85
TT
49402019-05-02 Tom Tromey <tromey@adacore.com>
4941
4942 * valarith.c (_initialize_valarith): Remove.
4943
4504bbde
TT
49442019-05-01 Tom Tromey <tromey@adacore.com>
4945
4946 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4947 bitfields.
4948
d48e62f4
TT
49492019-05-01 Tom Tromey <tromey@adacore.com>
4950
4951 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4952 for big-endian copies.
4953
15f18d14
AT
49542019-04-30 Ali Tamur <tamur@google.com>
4955 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4956 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4957 (read_3_bytes): New function.
4958
ab4ee614
JB
49592019-04-30 Joel Brobecker <brobecker@adacore.com>
4960
4961 * windows-nat.c (main_thread_id): Delete.
4962 (handle_output_debug_string): Replace main_thread_id by
4963 current_event.dwThreadId.
4964 (fake_create_process): Likewise.
4965 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4966 Do not set main_thread_id.
4967 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4968 current_event.dwThreadId.
4969 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
4970
8ed5b76e
JB
49712019-04-30 Joel Brobecker <brobecker@adacore.com>
4972
4973 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
4974 Use current_event.dwThreadId instead of main_thread_id.
4975
2ff0a947
TT
49762019-04-30 Tom Tromey <tromey@adacore.com>
4977
4978 * ada-lang.c (ada_lookup_simple_minsyms): New function.
4979 (create_excep_cond_exprs): Iterate over program spaces.
4980 (ada_exception_catchpoint_cond_string): Examine all minimal
4981 symbols for exception types.
4982
a776957c
TT
49832019-04-30 Tom Tromey <tromey@adacore.com>
4984
4985 PR c++/24470:
4986 * dwarf2read.c (process_structure_scope): Handle case where type
4987 has template parameters but no symbol was created.
4988
bc68014d
AB
49892019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4990 Chris January <chris.january@arm.com>
4991
4992 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
4993 qualifier.
4994 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
4995
f1fdc960
AB
49962019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4997
4998 * f-typeprint.c (f_print_type): Update rules for printing
4999 whitespace.
5000 (f_type_print_varspec_suffix): Likewise.
5001
bf7a4de1
AB
50022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5003 Chris January <chris.january@arm.com>
5004
5005 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5006 function arguments.
5007
bbe75b9d
AB
50082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5009
5010 * f-lang.c (build_fortran_types): Change name of void type to
5011 lower case.
5012 * f-typeprint.c (f_type_print_base): Print the name of the void
5013 type, rather than a fixed string.
5014 * f-valprint.c (f_decorations): Use lower case void string.
5015
1db455a7
AB
50162019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5017 Chris January <chris.january@arm.com>
5018
5019 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5020 types for Fortran.
5021
b6d03bb2
AB
50222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5023 Chris January <chris.january@arm.com>
5024 David Lecomber <david.lecomber@arm.com>
5025
5026 * f-exp.y (BINOP_INTRINSIC): New token.
5027 (exp): New parser rule handling BINOP_INTRINSIC.
5028 (f77_keywords): Add new builtin procedures.
5029 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5030 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5031 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5032 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5033 (print_unop_subexp_f): New function.
5034 (print_binop_subexp_f): New function.
5035 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5036 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5037 (dump_subexp_body_f): Likewise.
5038 (operator_check_f): Likewise.
5039 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5040 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5041
83228e93
AB
50422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5043
5044 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5045 UNOP_KIND.
5046 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5047 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5048 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5049 (operator_length_f): New fuction.
5050 (print_subexp_f): New function.
5051 (op_name_f): New function.
5052 (dump_subexp_body_f): New function.
5053 (operator_check_f): New function.
5054 (exp_descriptor_f): Replace standard expression handling functions
5055 with new functions.
5056 * gdb/fortran-operator.def: New file.
5057 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5058 * gdb/std-operator.def: Remove UNOP_KIND.
5059
6fdcd7cc
AB
50602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 * std-operator.def: Remove unbalanced, stray double quote
5063 character.
5064
2e62ab40
AB
50652019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5066 Chris January <chris.january@arm.com>
5067 Daniel Everett <daniel.everett@arm.com>
5068 Nick Forrington <nick.forrington@arm.com>
5069 Richard Bunt <richard.bunt@arm.com>
5070
5071 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5072 of depth when printing anonymous structs or unions.
5073 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5074 Don't print either the top-level value, or the children if the
5075 max-depth is exceeded.
5076 (ppscm_print_children): When printing the key of a map, allow one
5077 extra level of depth.
5078 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5079 print either the top-level value, or the children if the max-depth
5080 is exceeded.
5081 (print_children): When printing the key of a map, allow one extra
5082 level of depth.
5083 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5084 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5085 (user_print_options): Initialise max_depth field.
5086 (val_print_scalar_or_string_type_p): New function.
5087 (val_print): Check to see if the max depth has been reached.
5088 (val_print_check_max_depth): Define new function.
5089 (show_print_max_depth): New function.
5090 (_initialize_valprint): Add 'print max-depth' option.
5091 * valprint.h (struct value_print_options) <max_depth>: New field.
5092 (val_print_check_max_depth): Declare new function.
5093 * NEWS: Document new feature.
5094
4be290b2
AB
50952019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5096
5097 * ada-lang.c (ada_language_defn): Initialise new field.
5098 * c-lang.c (c_is_string_type_p): New function.
5099 (c_language_defn): Initialise new field.
5100 (cplus_language_defn): Initialise new field.
5101 (asm_language_defn): Initialise new field.
5102 (minimal_language_defn): Initialise new field.
5103 * c-lang.h (c_is_string_type_p): Declare new function.
5104 * d-lang.c (d_language_defn): Initialise new field.
5105 * f-lang.c (f_is_string_type_p): New function.
5106 (f_language_defn): Initialise new field.
5107 * go-lang.c (go_is_string_type_p): New function.
5108 (go_language_defn): Initialise new field.
5109 * language.c (default_is_string_type_p): New function.
5110 (unknown_language_defn): Initialise new field.
5111 (auto_language_defn): Initialise new field.
5112 * language.h (struct language_defn) <la_is_string_type_p>: New
5113 member variable.
5114 (default_is_string_type_p): Declare new function.
5115 * m2-lang.c (m2_language_defn): Initialise new field.
5116 * objc-lang.c (objc_language_defn): Initialise new field.
5117 * opencl-lang.c (opencl_language_defn): Initialise new field.
5118 * p-lang.c (pascal_is_string_type_p): New function.
5119 (pascal_language_defn): Initialise new field.
5120 * rust-lang.c (rust_is_string_type_p): New function.
5121 (rust_language_defn): Initialise new field.
5122
721b08c6
AB
51232019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5124
5125 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5126 New field.
5127 * ada-lang.c (ada_language_defn): Initialise new field.
5128 * c-lang.c (c_language_defn): Likewise.
5129 (cplus_language_defn): Likewise.
5130 (asm_language_defn): Likewise.
5131 (minimal_language_defn): Likewise.
5132 * d-lang.c (d_language_defn): Likewise.
5133 * f-lang.c (f_language_defn): Likewise.
5134 * go-lang.c (go_language_defn): Likewise.
5135 * language.c (unknown_language_defn): Likewise.
5136 (auto_language_defn): Likewise.
5137 * m2-lang.c (m2_language_defn): Likewise.
5138 * objc-lang.c (objc_language_defn): Likewise.
5139 * opencl-lang.c (opencl_language_defn): Likewise.
5140 * p-lang.c (pascal_language_defn): Likewise.
5141 * rust-lang.c (rust_language_defn): Likewise.
5142
fc913e53
AB
51432019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5144
5145 * ada-lang.c (ada_is_character_type): Change return type to bool.
5146 (ada_is_string_type): Likewise.
5147 * ada-lang.h (ada_is_character_type): Update declaration
5148 (ada_is_string_type): Likewise.
5149
fa731fa0
PW
51502019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5151
5152 Support style in 'frame|thread apply'
5153
5154 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5155 * record.c (record_start, record_stop): Update callers of
5156 execute_command_to_string with false.
5157 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5158 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5159 methods.
5160 (class string_file): New constructor with term_out parameter.
5161 Override methods term_out and can_emit_style_escape. New member
5162 term_out.
5163 (class stdio_file): Override can_emit_style_escape.
5164 (class tee_file): Override term_out and can_emit_style_escape.
5165 * utils.h (can_emit_style_escape): Remove.
5166 * utils.c (can_emit_style_escape): Likewise.
5167 Update all callers of can_emit_style_escape (SOMESTREAM) to
5168 SOMESTREAM->can_emit_style_escape.
5169 * source-cache.c (source_cache::get_source_lines): Likewise.
5170 * stack.c (frame_apply_command_count): Call execute_command_to_string
5171 passing the term_out characteristic of the current gdb_stdout.
5172 * thread.c (thr_try_catch_cmd): Likewise.
5173 * top.c (execute_command_to_string): pass term_out parameter
5174 to construct the string_file for the command output.
5175 * ui-file.c (term_cli_styling): New function (most code moved
5176 from utils.c can_emit_style_escape).
5177 (string_file::string_file, string_file::can_emit_style_escape,
5178 stdio_file::can_emit_style_escape, tee_file::term_out,
5179 tee_file::can_emit_style_escape): New functions.
5180
136afab8
PW
51812019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5182
5183 * NEWS: Mention the new set|show may-call-functions.
5184 * infcall.c (may_call_functions_p): New variable.
5185 (show_may_call_functions_p): New function.
5186 (call_function_by_hand_dummy): Throws an error if not
5187 may-call-functions.
5188 (_initialize_infcall): Call add_setshow_boolean_cmd for
5189 may-call-functions.
5190
725cbb63
KS
51912019-04-25 Keith Seitz <keiths@redhat.com>
5192
5193 PR c++/24367
5194 * cp-support.c (inspect_type): Don't attempt substitutions
5195 of symbol with the same name.
5196
3d1cbb78
TT
51972019-04-25 Tom Tromey <tromey@adacore.com>
5198
5199 PR gdb/24475:
5200 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5201 static.
5202
94aeb44b
TT
52032019-04-25 Tom Tromey <tromey@adacore.com>
5204
5205 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5206 rvalue reference.
5207 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5208 (gdb_xml_parser::parse): Use std::move.
5209 * python/python-internal.h (gdbpy_convert_exception): Take a const
5210 reference.
5211 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5212 std::move.
5213 * python/py-utils.c (gdbpy_convert_exception): Take a const
5214 reference.
5215 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5216 Use std::move.
5217 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5218 Use std::move.
5219 * mi/mi-main.c (mi_print_exception): Take a const reference.
5220 * main.c (handle_command_errors): Take a const reference.
5221 * linespec.c (parse_linespec): Use std::move.
5222 * infcall.c (run_inferior_call): Use std::move.
5223 (call_function_by_hand_dummy): Use std::move.
5224 * exec.c (try_open_exec_file): Use std::move.
5225 * exceptions.h (exception_print, exception_fprintf)
5226 (exception_print_same): Update.
5227 * exceptions.c (print_exception, exception_print)
5228 (exception_fprintf, exception_print_same): Change parameters to
5229 const reference.
5230 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5231 * common/new-op.c: Use std::move.
5232 * common/common-exceptions.h (struct gdb_exception): Add move
5233 constructor.
5234 (struct gdb_exception_error, struct gdb_exception_quit, struct
5235 gdb_quit_bad_alloc): Change constructor to move constructor.
5236 (throw_exception): Change parameter to rvalue reference.
5237 * common/common-exceptions.c (throw_exception): Take rvalue
5238 reference.
5239 * cli/cli-interp.c (safe_execute_command): Use std::move.
5240 * breakpoint.c (insert_bp_location, location_to_sals): Use
5241 std::move.
5242
680d7fd5
TT
52432019-04-25 Tom Tromey <tromey@adacore.com>
5244
5245 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5246 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5247 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5248 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5249 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5250 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5251 guile/scm-value.c: Use unpack.
5252 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5253 gdbscm_gdb_exception.
5254 (gdbscm_throw_gdb_exception): Likewise.
5255 (struct gdbscm_gdb_exception): New.
5256 (unpack): New function.
5257 (gdbscm_wrap): Use unpack.
5258
c6fdd8b2
TT
52592019-04-25 Tom Tromey <tromey@adacore.com>
5260
5261 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5262 (gdb_rl_callback_handler): Use std::move.
5263 * common/common-exceptions.h (struct gdb_exception): Add move
5264 assignment operator.
5265 (throw_exception_sjlj): Change "exception" to const reference.
5266 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5267 (throw_exception_sjlj): Change "exception" to const reference.
5268
cc06b668
TT
52692019-04-25 Tom Tromey <tromey@adacore.com>
5270
5271 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5272 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5273 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5274 Update.
5275 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5276 Update.
5277 * mi/mi-interp.c (mi_interp::exec): Update.
5278 * linespec.c (parse_linespec): Update.
5279 * infcall.c (run_inferior_call): Update.
5280 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5281 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5282 (gdbscm_lookup_global_symbol): Update.
5283 * guile/scm-param.c (gdbscm_parameter_value): Update.
5284 * guile/scm-frame.c (gdbscm_frame_read_register)
5285 (gdbscm_frame_read_var): Update.
5286 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5287 * exec.c (try_open_exec_file): Update.
5288 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5289 (gdb_rl_callback_handler): Update.
5290 * common/common-exceptions.h (exception_none): Don't declare.
5291 * common/common-exceptions.c (exception_none): Don't define.
5292 (struct catcher) <exception>: Update.
5293 * cli/cli-interp.c (safe_execute_command): Update.
5294 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5295
cf532bd1
AT
52962019-04-25 Ali Tamur <tamur@google.com>
5297
5298 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5299 (read_attribute_value): Likewise.
5300 (dwarf2_read_addr_index): Update comment.
5301 (read_str_index): Add DW_FORM_strx.
5302 (dwarf2_string_attr): Likewise.
5303 (dwarf2_const_value_attr): Likewise.
5304 (dump_die_shallow): Likewise.
5305 (dwarf2_fetch_constant_bytes): Likewise.
5306 (skip_form_bytes): Likewise.
5307 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5308
82433e3e
SDJ
53092019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5310
5311 PR corefiles/11608
5312 PR corefiles/18187
5313 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5314 OFFSET. Verify if current mapping contains an ELF header.
5315 (linux_find_memory_regions_full): Adjust call to
5316 dump_mapping_p.
5317
723adb65
SL
53182019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5319 Kang Li <kanglictf@gmail.com>
5320
5321 PR gdb/21600
5322
5323 * dwarf2-frame.c (read_initial_length): Be consistent about using
5324 unsigned representation of length.
5325 (decode_frame_entry_1): Likewise. Check for wraparound of
5326 end pointer as well as buffer overflow.
5327
596179f7
SDJ
53282019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5329
5330 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5331 "vq".
5332
a59240a4
TT
53332019-04-24 Tom Tromey <tromey@adacore.com>
5334
5335 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5336
f872fdbb
AB
53372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5338
5339 * s12z-tdep.c (s12z_unwind_pc): Delete.
5340 (s12z_unwind_sp): Delete.
5341 (s12z_gdbarch_init): Don't register deleted functions with
5342 gdbarch.
5343
b614e6f3
AB
53442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5345
5346 * rl78-tdep.c (rl78_unwind_sp): Delete.
5347 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5348
14faed38
AB
53492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5350
5351 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5352 (xstormy16_unwind_pc): Delete.
5353 (xstormy16_dummy_id): Delete.
5354 (xstormy16_gdbarch_init): Don't register deleted functions with
5355 gdbarch.
5356
541aad8a
AB
53572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5358
5359 * vax-tdep.c (vax_unwind_pc): Delete.
5360 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5361
29222070
AB
53622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5363
5364 * v850-tdep.c (v850_unwind_sp): Delete.
5365 (v850_unwind_pc): Delete.
5366 (v850_dummy_id): Delete.
5367 (v850_gdbarch_init): Don't register deleted functions with
5368 gdbarch.
5369
0f534d76
AB
53702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5371
5372 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5373 (tilegx_unwind_pc): Delete.
5374 (tilegx_unwind_dummy_id): Delete.
5375 (tilegx_gdbarch_init): Don't register deleted functions with
5376 gdbarch.
5377
1ba7b7f9
AB
53782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5379
5380 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5381 (tic6x_dummy_id): Delete.
5382 (tic6x_gdbarch_init): Don't register deleted functions with
5383 gdbarch.
5384
d31f262c
AB
53852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5386
5387 * sparc-tdep.c (sparc_unwind_pc): Delete.
5388 (sparc32_gdbarch_init): Don't register deleted function with
5389 gdbarch.
5390
6d14d64d
AB
53912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5392
5393 * sh-tdep.c (sh_unwind_sp): Delete.
5394 (sh_unwind_pc): Delete.
5395 (sh_dummy_id): Delete.
5396 (sh_gdbarch_init): Don't register deleted functions with
5397 gdbarch.
5398
a40dde9d
AB
53992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5400
5401 * score-tdep.c (score_unwind_sp): Delete.
5402 (score_unwind_pc): Delete.
5403 (score_dummy_id): Delete.
5404 (score_gdbarch_init): Don't register deleted functions with
5405 gdbarch.
5406
47c47d69
AB
54072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5408
5409 * rx-tdep.c (rx_unwind_pc): Delete.
5410 (rx_unwind_sp): Delete.
5411 (rx_dummy_id): Delete.
5412 (rx_gdbarch_init): Don't register deleted functions with
5413 gdbarch. Update comment.
5414
833a4480
AB
54152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5416
5417 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5418 (rs6000_dummy_id): Delete.
5419 (rs6000_gdbarch_init): Don't register deleted functions with
5420 gdbarch.
5421
3f2cef49
AB
54222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5423
5424 * or1k-tdep.c (or1k_dummy_id): Delete.
5425 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5426
96acf884
AB
54272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5428
5429 * nios2-tdep.c (nios2_dummy_id): Delete.
5430 (nios2_unwind_sp): Delete.
5431 (nios2_gdbarch_init): Don't register deleted functions with
5432 gdbarch.
5433
ca0ab0aa
AB
54342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5435
5436 * nds32-tdep.c (nds32_dummy_id): Delete.
5437 (nds32_unwind_pc): Delete.
5438 (nds32_unwind_sp): Delete.
5439 (nds32_gdbarch_init): Don't register deleted functions with
5440 gdbarch.
5441
c8259044
AB
54422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5443
5444 * msp430-tdep.c (msp430_unwind_pc): Delete.
5445 (msp430_unwind_sp): Delete.
5446 (msp430_dummy_id): Delete.
5447 (msp430_gdbarch_init): Don't register deleted functions with
5448 gdbarch.
5449
27f113c8
AB
54502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5451
5452 * moxie-tdep.c (moxie_unwind_sp): Delete.
5453 (moxie_unwind_pc): Delete.
5454 (moxie_dummy_id): Delete.
5455 (moxie_gdbarch_init): Don't register deleted functions with
5456 gdbarch.
5457
aee6c3cd
AB
54582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5459
5460 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5461 (mn10300_unwind_pc): Delete.
5462 (mn10300_unwind_sp): Delete.
5463 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5464 mn10300_unwind_sp.
5465 (mn10300_frame_unwind_init): Don't register deleted functions with
5466 gdbarch.
5467
8e2b5aea
AB
54682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5469
5470 * mep-tdep.c (mep_unwind_pc): Delete.
5471 (mep_unwind_sp): Delete.
5472 (mep_dummy_id): Delete.
5473 (mep_gdbarch_init): Don't register deleted functions with
5474 gdbarch.
5475
43cf3ede
AB
54762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5477
5478 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5479 (m68hc11_unwind_sp): Delete.
5480 (m68hc11_gdbarch_init): Don't register deleted functions with
5481 gdbarch.
5482
5e79b7bb
AB
54832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5484
5485 * m32r-tdep.c (m32r_unwind_sp): Delete.
5486 (m32r_unwind_pc): Delete.
5487 (m32r_dummy_id): Delete.
5488 (m32r_gdbarch_init): Don't register deleted functions with
5489 gdbarch.
5490
89b268d8
AB
54912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5492
5493 * m32c-tdep.c (m32c_unwind_pc): Delete.
5494 (m32c_unwind_sp): Delete.
5495 (m32c_dummy_id): Delete.
5496 (m32c_gdbarch_init): Don't register deleted functions with
5497 gdbarch.
5498
946c28d2
AB
54992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5500
5501 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5502 (lm32_unwind_pc): Delete.
5503 (lm32_dummy_id): Delete.
5504 (lm32_gdbarch_init): Don't register deleted functions with
5505 gdbarch.
5506
bf12844a
AB
55072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5508
5509 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5510 (iq2000_unwind_pc): Delete.
5511 (iq2000_dummy_id): Delete.
5512 (iq2000_gdbarch_init): Don't register deleted functions with
5513 gdbarch.
5514
ecbc06d2
AB
55152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5516
5517 * nds32-tdep.c (nds32_type_align): Delete.
5518 (nds32_push_dummy_call): Use type_align instead.
5519
030197b4
AB
55202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * arm-tdep.c (arm_type_align): Only handle vector override case.
5523 (arm_push_dummy_call): Use type_align.
5524 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5525
b907456c
AB
55262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5527
5528 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5529 case.
5530 (pass_on_stack): Use type_align.
5531 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5532 function.
5533
9e97ba43
TT
55342019-04-23 Tom Tromey <tromey@adacore.com>
5535
5536 * dwarf2read.c (line_header::file_name_at): Remove unused
5537 overload.
5538
6892f601
TV
55392019-04-23 Tom de Vries <tdevries@suse.de>
5540
5541 PR gdb/24438
5542 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5543 invocation.
5544
336d760d
AT
5545
55462019-03-27 Ali Tamur <tamur@google.com>
5547
5548 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5549 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5550 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5551 (dwarf_expr_context::get_addr_index): Likewise
5552 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5553 (symbol_needs_eval_context::get_addr_index): Likewise
5554 (disassemble_dwarf_expression): Add DW_OP_addrx
5555 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5556 (read_cutu_die_from_dwo): Update comment
5557 (skip_one_die): Add DW_FORM_addrx
5558 (read_attribute_value): Likewise
5559 (var_decode_location): Add DW_OP_addrx
5560 (dwarf2_const_value_attr): Add DW_FORM_addrx
5561 (dump_die_shallow): Likewise
5562 (dwarf2_fetch_constant_bytes): Likewise
5563 (decode_locdesc): Add DW_OP_addrx
5564 (skip_form_bytes): Add DW_FORM_addrx
5565
ad9d13f8
AT
55662019-04-22 Ali Tamur <tamur@google.com>
5567
5568 * MAINTAINERS (Write After Approval): Add self.
5569
d70cc3ba
SM
55702019-04-22 Simon Marchi <simon.marchi@efficios.com>
5571
5572 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5573 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5574 (open_symbol_file_object): Likewise.
5575 (svr4_default_sos): Add info parameter.
5576 (svr4_read_so_list): Likewise.
5577 (svr4_current_sos_direct): Adjust functions calls to pass down
5578 info.
5579 (svr4_current_sos_1): Add info parameter.
5580 (svr4_current_sos): Call get_svr4_info, pass info down to
5581 svr4_current_sos_1.
5582 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5583 get_svr4_info.
5584 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5585 get_svr4_info.
5586 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5587 to get_svr4_info.
5588 (probes_table_remove_objfile_probes): Likewise.
5589 (register_solib_event_probe): Add info parameter.
5590 (solist_update_incremental): Pass info parameter down to
5591 svr4_read_so_list.
5592 (disable_probes_interface): Add info parameter.
5593 (svr4_handle_solib_event): Pass current_program_space to
5594 get_svr4_info. Adjust disable_probes_interface cleanup.
5595 (svr4_create_probe_breakpoints): Add info parameter, pass it
5596 down to register_solib_event_probe.
5597 (svr4_create_solib_event_breakpoints): Add info parameter,
5598 pass it down to svr4_create_probe_breakpoints.
5599 (enable_break): Pass info down to
5600 svr4_create_solib_event_breakpoints.
5601 (svr4_solib_create_inferior_hook): Pass current_program_space to
5602 get_svr4_info.
5603 (svr4_clear_solib): Likewise.
5604
7905fc35
PA
56052019-04-22 Pedro Alves <palves@redhat.com>
5606
5607 * solib-svr4.c (svr4_free_objfile_observer): New.
5608 (probe_and_action::objfile): New field.
5609 (probes_table_htab_remove_objfile_probes)
5610 (probes_table_remove_objfile_probes): New functions.
5611 (register_solib_event_probe): Add 'objfile' parameter. Store it
5612 in the new probe_and_action. Don't store the probe in 'lookup'.
5613 (svr4_create_probe_breakpoints): Pass objfile to
5614 register_solib_event_probe.
5615 (_initialize_svr4_solib): Register a free_objfile observer.
5616
fb881986
TT
56172019-04-19 Tom Tromey <tom@tromey.com>
5618
5619 * common/queue.h: Remove.
5620
8732db6c
TT
56212019-04-19 Tom Tromey <tom@tromey.com>
5622
5623 * event-loop.c: Don't include "common/queue.h".
5624
97dfbadd
TT
56252019-04-19 Tom Tromey <tom@tromey.com>
5626
5627 * remote.c (remote_target): Use delete.
5628 * remote-notif.h: Include <list>, not "common/queue.h".
5629 (notif_client_p): Remove typedef.
5630 (remote_notif_state): Add constructor, destructor, initializer.
5631 <notif_queue>: Now a std::list.
5632 (remote_notif_state_xfree): Don't declare.
5633 * remote-notif.c (remote_notif_process, handle_notification)
5634 (remote_notif_state_allocate): Update.
5635 (~remote_notif_state): Rename from remote_notif_state_xfree.
5636
cf250e36
TT
56372019-04-19 Tom Tromey <tom@tromey.com>
5638
5639 * symfile.c (reread_symbols): Update.
5640 * objfiles.c (objfile_register_static_link)
5641 (objfile_lookup_static_link): Update
5642 (~objfile) Don't delete static_links.
5643 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5644
61f4b350
TT
56452019-04-19 Tom Tromey <tom@tromey.com>
5646
5647 * type-stack.h (struct type_stack) <insert>: Constify string.
5648 * type-stack.c (type_stack::insert): Constify string.
5649 * gdbtypes.h (lookup_template_type): Update.
5650 (address_space_name_to_int): Update.
5651 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5652 const.
5653 (lookup_template_type): Make name const.
5654 * c-exp.y: Update rules.
5655 (lex_one_token, classify_name, classify_inner_name)
5656 (c_print_token): Update.
5657 * p-exp.y: Update rules.
5658 (yylex): Update.
5659 * f-exp.y: Update rules.
5660 (yylex): Update.
5661 * d-exp.y: Update rules.
5662 (lex_one_token, classify_name, classify_inner_name): Update.
5663 * parse.c (write_dollar_variable, copy_name): Return std::string.
5664 * parser-defs.h (copy_name): Change return type.
5665 * m2-exp.y: Update rules.
5666 (yylex): Update.
5667 * go-exp.y (lex_one_token): Update.
5668 Update rules.
5669 (classify_unsafe_function, classify_packaged_name)
5670 (classify_name, yylex): Update.
5671
189b8c2e
ST
56722019-04-19 Sergei Trofimovich <siarheit@google.com>
5673
5674 * configure.ac: add --enable-source-highlight switch.
5675 * configure: Regenerate.
5676 * top.c (print_gdb_version): plumb --enable-source-highlight
5677 status to "show configuration".
5678
8ecb59f8
TT
56792019-04-19 Tom Tromey <tromey@adacore.com>
5680
5681 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5682 Check ADA_TYPE_P.
5683 (empty_record, ada_template_to_fixed_record_type_1)
5684 (template_to_static_fixed_type)
5685 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5686 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5687 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5688 macros.
5689
62160ec9
TT
56902019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5691
5692 PR symtab/24423:
5693 * source.c (print_source_lines_base): Advance "iter" when a
5694 control character is seen.
5695
f2ae8bc8
PW
56962019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5697
5698 * inferior.h (struct infcall_suspend_state_deleter):
5699 Catch exception in destructor to avoid crash.
5700
d563b953
PW
57012019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5702
5703 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5704 close to the add_com "shell".
5705
dc34c897
TT
57062019-04-18 Tom Tromey <tromey@adacore.com>
5707
5708 * process-stratum-target.h (class process_stratum_target)
5709 <stratum>: Add "final".
5710
a12e5744
TT
57112019-04-17 Tom Tromey <tromey@adacore.com>
5712
5713 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5714 against nullptr before use.
5715
a7e559cc
AH
57162019-04-17 Alan Hayward <alan.hayward@arm.com>
5717
5718 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5719
c01660c6
AB
57202019-04-17 Jim Wilson <jimw@sifive.com>
5721 Andrew Burgess <andrew.burgess@embecosm.com>
5722
5723 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5724 code read might fail, assume 4-byte breakpoint in that case.
5725
4aa866af
LS
57262019-04-15 Leszek Swirski <leszeks@google.com>
5727
5728 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5729 rather than a hand-rolled POD check when checking for forced MEMORY
5730 classification.
5731
48574d91
AH
57322019-04-15 Alan Hayward <alan.hayward@arm.com>
5733
5734 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5735 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5736 function.
5737 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5738 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5739 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5740 declaration.
5741
4da037ef
AH
57422019-04-15 Alan Hayward <alan.hayward@arm.com>
5743
5744 * aarch64-linux-nat.c
5745 (aarch64_linux_nat_target::thread_architecture): Add override.
5746 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5747 each VQ.
5748
ccb8d7e8
AH
57492019-04-15 Alan Hayward <alan.hayward@arm.com>
5750
5751 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5752
35add35e
AB
57532019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5754
5755 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5756 target types of size 96-bits, add some additional comments, and
5757 check that the builtin type we found was the correct size.
5758
51196bbc
EZ
57592019-04-12 Eli Zaretskii <eliz@gnu.org>
5760
5761 * utils.c (prompt_for_continue): Don't restore the styling at the
5762 end, as applied_style has the wrong value. This fixes styling in
5763 long lists of file names that are interrupted by the "Continue?"
5764 prompt.
5765
62253a61
AB
57662019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5767
5768 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5769 * c-lang.c (c_language_defn): Likewise.
5770 (cplus_language_defn): Likewise.
5771 (asm_language_defn): Likewise.
5772 (minimal_language_defn): Likewise.
5773 * d-lang.c (d_language_defn): Likewise.
5774 * f-lang.c (f_language_defn): Likewise.
5775 * go-lang.c (go_language_defn): Likewise.
5776 * language.c (unknown_language_defn): Likewise.
5777 (auto_language_defn): Likewise.
5778 * language.h (struct language_defn): Remove la_magic field.
5779 (LANG_MAGIC): Delete.
5780 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5781 * objc-lang.c (objc_language_defn): Likewise.
5782 * opencl-lang.c (opencl_language_defn): Likewise.
5783 * p-lang.c (pascal_language_defn): Likewise.
5784 * rust-lang.c (rust_language_defn): Likewise.
5785
a9158a86
AB
57862019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5787
5788 * riscv-tdep.c (riscv_type_align): New function.
5789 (riscv_type_alignment): Delete.
5790 (riscv_arg_location): Use 'type_align'.
5791 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5792
41077b66
AB
57932019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5794
5795 * gdbtypes.c (type_align): A struct with no non-static fields also
5796 has alignment of 1.
5797
9f0272f8
AB
57982019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5799
5800 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5801 component to 0.
5802 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5803 member.
5804 (riscv_struct_info::analyse): New implementation using new
5805 analyse_inner member function.
5806 (riscv_struct_info::field_offset): New member function.
5807 (riscv_struct_info::m_offsets): New member variable.
5808 (riscv_struct_info::analyse_inner): New private member function,
5809 takes the old implementation of riscv_struct_info::analyse but
5810 extended to track field offsets.
5811 (riscv_call_arg_struct): Update the struct folding special cases
5812 to handle cases where empty C++ structs, which are non-zero
5813 length, are found.
5814 (riscv_arg_location): Initialise the length of each location, a
5815 non-zero length now indicates the location is in use.
5816 (riscv_push_dummy_call): Allow for the first location having a
5817 non-zero offset when setting up arguments.
5818 (riscv_return_value): Likewise, but for return values.
5819
02cf60c7
TT
58202019-04-11 Tom Tromey <tromey@adacore.com>
5821
5822 * utils.c (internal_vproblem): Make "msg" const.
5823
68811f8f
AH
58242019-04-11 Alan Hayward <alan.hayward@arm.com>
5825
5826 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5827 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5828 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5829 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5830
3f52fdbc
KB
58312019-04-10 Kevin Buettner <kevinb@redhat.com>
5832
5833 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5834 function.
5835 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5836 of amd64_collect_native_gregset.
5837 (amd64_linux_nat_target::store_registers): Likewise.
5838
e9ad22ee
TT
58392019-04-10 Tom Tromey <tom@tromey.com>
5840
5841 * symtab.c (lookup_global_symbol_from_objfile)
5842 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5843 * objfiles.h (class separate_debug_iterator): New.
5844 (class separate_debug_range): New.
5845 (struct objfile) <separate_debug_objfiles>: New method.
5846 (objfile_separate_debug_iterate): Don't declare.
5847 * objfiles.c (separate_debug_iterator::operator++): Rename from
5848 objfile_separate_debug_iterate.
5849 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5850 iterator.
5851 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5852 iterator.
5853
ee371134
TT
58542019-04-10 Tom Tromey <tom@tromey.com>
5855
5856 * symfile.c (reread_symbols): Remove old comment.
5857 * objfiles.c (free_all_objfiles): Fix a typo.
5858
bf227d61
TT
58592019-04-10 Tom Tromey <tom@tromey.com>
5860
5861 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5862 * minsyms.c (lookup_minimal_symbol): Use foreach.
5863 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5864 (lookup_minimal_symbol_solib_trampoline): Likewise.
5865 * symfile.c (reread_symbols): Use foreach.
5866
8dc433a0
TT
58672019-04-09 Ivan Begert <ivanbegert@gmail.com>
5868 Tom Tromey <tromey@adacore.com>
5869
5870 PR rust/24414:
5871 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5872 (rust_lex_int_test): Change "value" to be LONGEST.
5873 (rust_lex_tests): Add test for long integer literal.
5874
9ab8741a
TT
58752019-04-09 Tom Tromey <tromey@adacore.com>
5876
5877 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5878 to bool.
5879 (extended_remote_target::attach): Update.
5880 (remote_target::remote_notice_new_inferior): Update.
5881 (remote_target::add_current_inferior_and_thread): Update.
5882 * inferior.c (exit_inferior_1): Use "false".
5883 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5884
e242fd12
SM
58852019-04-09 Simon Marchi <simon.marchi@efficios.com>
5886
9ca1957f 5887 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
5888 the "start" command.
5889
2b0c8b01
KB
58902019-04-08 Kevin Buettner <kevinb@redhat.com>
5891
5892 * python/py-inferior.c (infpy_thread_from_thread_handle):
5893 Adjust comments to reflect renaming of thread_from_thread_handle
5894 to thread_from_handle. Adjust keywords. Fix type error message.
5895 (inferior_object_methods): Add thread_from_handle. Retain
5896 thread_from_thread_handle, but mark it as deprecated.
5897
50a82723
KB
58982019-04-08 Kevin Buettner <kevinb@redhat.com>
5899
5900 * gdbthread.h (find_thread_by_handle): Revise declaration.
5901 * thread.c (find_thread_by_handle): Likewise. Adjust
5902 implementation too.
5903 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5904 support for buffer objects as handles.
5905
cf63b016
KB
59062019-04-08 Kevin Buettner <kevinb@redhat.com>
5907
5908 * python/py-infthread.c (thpy_thread_handle): New function.
5909 (thread_object_methods): Register thpy_thread_handle.
5910
3d6c6204
KB
59112019-04-08 Kevin Buettner <kevinb@redhat.com>
5912
5913 * gdbthread.h (thread_to_thread_handle): Declare.
5914 * thread.c (gdbtypes.h): Include.
5915 (thread_to_thread_handle): New function.
5916
5917 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5918 (target_thread_info_to_thread_handle): Declare.
5919 * target.c (target_thread_info_to_thread_handle): New function.
5920 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5921 * target-delegates.c: Regenerate.
5922
5923 * linux-thread-db.c (class thread_db_target): Add method
5924 thread_info_to_thread_handle.
5925 (thread_db_target::thread_info_to_thread_handle): Define.
5926 * remote.c (class remote_target): Add new method
5927 thread_info_to_thread_handle.
5928 (remote_target::thread_info_to_thread_handle): Define.
5929
56be6ea8
PA
59302019-04-08 Pedro Alves <palves@redhat.com>
5931
5932 * common/common-exceptions.c (throw_exception): Don't create
5933 named object to throw; throw directly.
5934 (throw_it): Likewise. Don't initialize gdb_exception::message
5935 here, with new; pass FMT and AP to the ctor instead.
5936 * common/common-exceptions.h: Include <string>.
5937 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5938 const char *, va_list)): New ctor. Use std::make_shared.
5939 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5940 errors)): Delete.
5941 (gdb_exception_error::gdb_exception_error(enum errors, const char
5942 *, va_list)): New.
5943 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5944 Add assertion.
5945 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5946 errors)): Delete.
5947 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5948 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5949 Add assertion.
5950
eedc3f4f
TT
59512019-04-08 Tom Tromey <tom@tromey.com>
5952
5953 * valops.c (value_rtti_indirect_type): Replace throw_exception
5954 with throw.
5955 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5956 with throw.
5957 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5958 throw.
5959 * target.c (target_translate_tls_address): Replace throw_exception
5960 with throw.
5961 * stack.c (frame_apply_command_count): Replace throw_exception
5962 with throw.
5963 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5964 throw.
5965 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5966 with throw.
5967 * rs6000-tdep.c (rs6000_frame_cache)
5968 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5969 * remote.c: Replace throw_exception with throw.
5970 * record-full.c (record_full_message, record_full_wait_1)
5971 (record_full_restore): Replace throw_exception with throw.
5972 * record-btrace.c:
5973 (get_thread_current_frame_id, record_btrace_start_replaying)
5974 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
5975 (cmd_record_btrace_start): Replace throw_exception with throw.
5976 * parse.c (parse_exp_in_context_1): Replace throw_exception with
5977 throw.
5978 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
5979 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
5980 * linespec.c:
5981 (find_linespec_symbols): Replace throw_exception with throw.
5982 * infrun.c (displaced_step_prepare, resume): Replace
5983 throw_exception with throw.
5984 * infcmd.c (post_create_inferior): Replace throw_exception with
5985 throw.
5986 * inf-loop.c (inferior_event_handler): Replace throw_exception
5987 with throw.
5988 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5989 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
5990 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
5991 (get_prev_frame_always, get_frame_pc_if_available)
5992 (get_frame_address_in_block_if_available, get_frame_language):
5993 Replace throw_exception with throw.
5994 * frame-unwind.c (frame_unwind_try_unwinder): Replace
5995 throw_exception with throw.
5996 * eval.c (fetch_subexp_value, evaluate_var_value)
5997 (evaluate_funcall, evaluate_subexp_standard): Replace
5998 throw_exception with throw.
5999 * dwarf2loc.c (call_site_find_chain)
6000 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6001 Replace throw_exception with throw.
6002 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6003 with throw.
6004 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6005 throw.
6006 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6007 * completer.c (complete_line_internal): Replace throw_exception
6008 with throw.
6009 * compile/compile-object-run.c (compile_object_run): Replace
6010 throw_exception with throw.
6011 * cli/cli-script.c (process_next_line): Replace throw_exception
6012 with throw.
6013 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6014 (btrace_enable, btrace_maint_update_pt_packets): Replace
6015 throw_exception with throw.
6016 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6017 throw_exception with throw.
6018 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6019 throw_exception with throw.
6020 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6021 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6022 * aarch64-tdep.c (aarch64_make_prologue_cache)
6023 (aarch64_make_stub_cache): Replace throw_exception with throw.
6024
26003a20
TT
60252019-04-08 Tom Tromey <tom@tromey.com>
6026
6027 * common/common-exceptions.c (throw_exception): Rename from
6028 throw_exception_cxx. Remove old copy. Make argument const.
6029 (throw_it): Create and throw exception objects directly.
6030 * common/common-exceptions.h (throw_exception): Make argument
6031 const.
6032 (struct gdb_exception_error): Add constructor.
6033 (struct gdb_exception_quit): Add constructor.
6034
d272eb37
TT
60352019-04-08 Tom Tromey <tom@tromey.com>
6036
6037 * common/common-exceptions.h (exception_rethrow): Don't declare.
6038 (TRY_SJLJ): Update comment.
6039 (TRY, CATCH, END_CATCH): Remove.
6040 * common/common-exceptions.c (exception_rethrow): Remove.
6041
230d2906
TT
60422019-04-08 Tom Tromey <tom@tromey.com>
6043
6044 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6045 Remove.
6046 (gdb_exception_error): Rename from
6047 gdb_exception_RETURN_MASK_ERROR.
6048 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6049 (gdb_quit_bad_alloc): Update.
6050 * aarch64-tdep.c: Update.
6051 * ada-lang.c: Update.
6052 * ada-typeprint.c: Update.
6053 * ada-valprint.c: Update.
6054 * amd64-tdep.c: Update.
6055 * arch-utils.c: Update.
6056 * break-catch-throw.c: Update.
6057 * breakpoint.c: Update.
6058 * btrace.c: Update.
6059 * c-varobj.c: Update.
6060 * cli/cli-cmds.c: Update.
6061 * cli/cli-interp.c: Update.
6062 * cli/cli-script.c: Update.
6063 * common/common-exceptions.c: Update.
6064 * common/new-op.c: Update.
6065 * common/selftest.c: Update.
6066 * compile/compile-c-symbols.c: Update.
6067 * compile/compile-cplus-symbols.c: Update.
6068 * compile/compile-object-load.c: Update.
6069 * compile/compile-object-run.c: Update.
6070 * completer.c: Update.
6071 * corelow.c: Update.
6072 * cp-abi.c: Update.
6073 * cp-support.c: Update.
6074 * cp-valprint.c: Update.
6075 * darwin-nat.c: Update.
6076 * disasm-selftests.c: Update.
6077 * dtrace-probe.c: Update.
6078 * dwarf-index-cache.c: Update.
6079 * dwarf-index-write.c: Update.
6080 * dwarf2-frame-tailcall.c: Update.
6081 * dwarf2-frame.c: Update.
6082 * dwarf2loc.c: Update.
6083 * dwarf2read.c: Update.
6084 * eval.c: Update.
6085 * event-loop.c: Update.
6086 * event-top.c: Update.
6087 * exec.c: Update.
6088 * f-valprint.c: Update.
6089 * fbsd-tdep.c: Update.
6090 * frame-unwind.c: Update.
6091 * frame.c: Update.
6092 * gdbtypes.c: Update.
6093 * gnu-v3-abi.c: Update.
6094 * guile/guile-internal.h: Update.
6095 * guile/scm-block.c: Update.
6096 * guile/scm-breakpoint.c: Update.
6097 * guile/scm-cmd.c: Update.
6098 * guile/scm-disasm.c: Update.
6099 * guile/scm-frame.c: Update.
6100 * guile/scm-lazy-string.c: Update.
6101 * guile/scm-math.c: Update.
6102 * guile/scm-param.c: Update.
6103 * guile/scm-ports.c: Update.
6104 * guile/scm-pretty-print.c: Update.
6105 * guile/scm-symbol.c: Update.
6106 * guile/scm-symtab.c: Update.
6107 * guile/scm-type.c: Update.
6108 * guile/scm-value.c: Update.
6109 * i386-linux-tdep.c: Update.
6110 * i386-tdep.c: Update.
6111 * inf-loop.c: Update.
6112 * infcall.c: Update.
6113 * infcmd.c: Update.
6114 * infrun.c: Update.
6115 * jit.c: Update.
6116 * language.c: Update.
6117 * linespec.c: Update.
6118 * linux-fork.c: Update.
6119 * linux-nat.c: Update.
6120 * linux-tdep.c: Update.
6121 * linux-thread-db.c: Update.
6122 * main.c: Update.
6123 * mi/mi-cmd-break.c: Update.
6124 * mi/mi-cmd-stack.c: Update.
6125 * mi/mi-interp.c: Update.
6126 * mi/mi-main.c: Update.
6127 * objc-lang.c: Update.
6128 * p-valprint.c: Update.
6129 * parse.c: Update.
6130 * ppc-linux-tdep.c: Update.
6131 * printcmd.c: Update.
6132 * python/py-arch.c: Update.
6133 * python/py-breakpoint.c: Update.
6134 * python/py-cmd.c: Update.
6135 * python/py-finishbreakpoint.c: Update.
6136 * python/py-frame.c: Update.
6137 * python/py-framefilter.c: Update.
6138 * python/py-gdb-readline.c: Update.
6139 * python/py-inferior.c: Update.
6140 * python/py-infthread.c: Update.
6141 * python/py-lazy-string.c: Update.
6142 * python/py-linetable.c: Update.
6143 * python/py-objfile.c: Update.
6144 * python/py-param.c: Update.
6145 * python/py-prettyprint.c: Update.
6146 * python/py-progspace.c: Update.
6147 * python/py-record-btrace.c: Update.
6148 * python/py-record.c: Update.
6149 * python/py-symbol.c: Update.
6150 * python/py-type.c: Update.
6151 * python/py-unwind.c: Update.
6152 * python/py-utils.c: Update.
6153 * python/py-value.c: Update.
6154 * python/python.c: Update.
6155 * record-btrace.c: Update.
6156 * record-full.c: Update.
6157 * remote-fileio.c: Update.
6158 * remote.c: Update.
6159 * riscv-tdep.c: Update.
6160 * rs6000-aix-tdep.c: Update.
6161 * rs6000-tdep.c: Update.
6162 * rust-exp.y: Update.
6163 * rust-lang.c: Update.
6164 * s390-tdep.c: Update.
6165 * selftest-arch.c: Update.
6166 * solib-dsbt.c: Update.
6167 * solib-frv.c: Update.
6168 * solib-spu.c: Update.
6169 * solib-svr4.c: Update.
6170 * solib.c: Update.
6171 * sparc64-linux-tdep.c: Update.
6172 * stack.c: Update.
6173 * symfile-mem.c: Update.
6174 * symmisc.c: Update.
6175 * target.c: Update.
6176 * thread.c: Update.
6177 * top.c: Update.
6178 * tracefile-tfile.c: Update.
6179 * tui/tui.c: Update.
6180 * typeprint.c: Update.
6181 * unittests/cli-utils-selftests.c: Update.
6182 * unittests/parse-connection-spec-selftests.c: Update.
6183 * valops.c: Update.
6184 * valprint.c: Update.
6185 * value.c: Update.
6186 * varobj.c: Update.
6187 * windows-nat.c: Update.
6188 * x86-linux-nat.c: Update.
6189 * xml-support.c: Update.
6190
a70b8144
TT
61912019-04-08 Tom Tromey <tom@tromey.com>
6192
6193 * xml-support.c: Use C++ exception handling.
6194 * x86-linux-nat.c: Use C++ exception handling.
6195 * windows-nat.c: Use C++ exception handling.
6196 * varobj.c: Use C++ exception handling.
6197 * value.c: Use C++ exception handling.
6198 * valprint.c: Use C++ exception handling.
6199 * valops.c: Use C++ exception handling.
6200 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6201 handling.
6202 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6203 * typeprint.c: Use C++ exception handling.
6204 * tui/tui.c: Use C++ exception handling.
6205 * tracefile-tfile.c: Use C++ exception handling.
6206 * top.c: Use C++ exception handling.
6207 * thread.c: Use C++ exception handling.
6208 * target.c: Use C++ exception handling.
6209 * symmisc.c: Use C++ exception handling.
6210 * symfile-mem.c: Use C++ exception handling.
6211 * stack.c: Use C++ exception handling.
6212 * sparc64-linux-tdep.c: Use C++ exception handling.
6213 * solib.c: Use C++ exception handling.
6214 * solib-svr4.c: Use C++ exception handling.
6215 * solib-spu.c: Use C++ exception handling.
6216 * solib-frv.c: Use C++ exception handling.
6217 * solib-dsbt.c: Use C++ exception handling.
6218 * selftest-arch.c: Use C++ exception handling.
6219 * s390-tdep.c: Use C++ exception handling.
6220 * rust-lang.c: Use C++ exception handling.
6221 * rust-exp.y: Use C++ exception handling.
6222 * rs6000-tdep.c: Use C++ exception handling.
6223 * rs6000-aix-tdep.c: Use C++ exception handling.
6224 * riscv-tdep.c: Use C++ exception handling.
6225 * remote.c: Use C++ exception handling.
6226 * remote-fileio.c: Use C++ exception handling.
6227 * record-full.c: Use C++ exception handling.
6228 * record-btrace.c: Use C++ exception handling.
6229 * python/python.c: Use C++ exception handling.
6230 * python/py-value.c: Use C++ exception handling.
6231 * python/py-utils.c: Use C++ exception handling.
6232 * python/py-unwind.c: Use C++ exception handling.
6233 * python/py-type.c: Use C++ exception handling.
6234 * python/py-symbol.c: Use C++ exception handling.
6235 * python/py-record.c: Use C++ exception handling.
6236 * python/py-record-btrace.c: Use C++ exception handling.
6237 * python/py-progspace.c: Use C++ exception handling.
6238 * python/py-prettyprint.c: Use C++ exception handling.
6239 * python/py-param.c: Use C++ exception handling.
6240 * python/py-objfile.c: Use C++ exception handling.
6241 * python/py-linetable.c: Use C++ exception handling.
6242 * python/py-lazy-string.c: Use C++ exception handling.
6243 * python/py-infthread.c: Use C++ exception handling.
6244 * python/py-inferior.c: Use C++ exception handling.
6245 * python/py-gdb-readline.c: Use C++ exception handling.
6246 * python/py-framefilter.c: Use C++ exception handling.
6247 * python/py-frame.c: Use C++ exception handling.
6248 * python/py-finishbreakpoint.c: Use C++ exception handling.
6249 * python/py-cmd.c: Use C++ exception handling.
6250 * python/py-breakpoint.c: Use C++ exception handling.
6251 * python/py-arch.c: Use C++ exception handling.
6252 * printcmd.c: Use C++ exception handling.
6253 * ppc-linux-tdep.c: Use C++ exception handling.
6254 * parse.c: Use C++ exception handling.
6255 * p-valprint.c: Use C++ exception handling.
6256 * objc-lang.c: Use C++ exception handling.
6257 * mi/mi-main.c: Use C++ exception handling.
6258 * mi/mi-interp.c: Use C++ exception handling.
6259 * mi/mi-cmd-stack.c: Use C++ exception handling.
6260 * mi/mi-cmd-break.c: Use C++ exception handling.
6261 * main.c: Use C++ exception handling.
6262 * linux-thread-db.c: Use C++ exception handling.
6263 * linux-tdep.c: Use C++ exception handling.
6264 * linux-nat.c: Use C++ exception handling.
6265 * linux-fork.c: Use C++ exception handling.
6266 * linespec.c: Use C++ exception handling.
6267 * language.c: Use C++ exception handling.
6268 * jit.c: Use C++ exception handling.
6269 * infrun.c: Use C++ exception handling.
6270 * infcmd.c: Use C++ exception handling.
6271 * infcall.c: Use C++ exception handling.
6272 * inf-loop.c: Use C++ exception handling.
6273 * i386-tdep.c: Use C++ exception handling.
6274 * i386-linux-tdep.c: Use C++ exception handling.
6275 * guile/scm-value.c: Use C++ exception handling.
6276 * guile/scm-type.c: Use C++ exception handling.
6277 * guile/scm-symtab.c: Use C++ exception handling.
6278 * guile/scm-symbol.c: Use C++ exception handling.
6279 * guile/scm-pretty-print.c: Use C++ exception handling.
6280 * guile/scm-ports.c: Use C++ exception handling.
6281 * guile/scm-param.c: Use C++ exception handling.
6282 * guile/scm-math.c: Use C++ exception handling.
6283 * guile/scm-lazy-string.c: Use C++ exception handling.
6284 * guile/scm-frame.c: Use C++ exception handling.
6285 * guile/scm-disasm.c: Use C++ exception handling.
6286 * guile/scm-cmd.c: Use C++ exception handling.
6287 * guile/scm-breakpoint.c: Use C++ exception handling.
6288 * guile/scm-block.c: Use C++ exception handling.
6289 * guile/guile-internal.h: Use C++ exception handling.
6290 * gnu-v3-abi.c: Use C++ exception handling.
6291 * gdbtypes.c: Use C++ exception handling.
6292 * frame.c: Use C++ exception handling.
6293 * frame-unwind.c: Use C++ exception handling.
6294 * fbsd-tdep.c: Use C++ exception handling.
6295 * f-valprint.c: Use C++ exception handling.
6296 * exec.c: Use C++ exception handling.
6297 * event-top.c: Use C++ exception handling.
6298 * event-loop.c: Use C++ exception handling.
6299 * eval.c: Use C++ exception handling.
6300 * dwarf2read.c: Use C++ exception handling.
6301 * dwarf2loc.c: Use C++ exception handling.
6302 * dwarf2-frame.c: Use C++ exception handling.
6303 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6304 * dwarf-index-write.c: Use C++ exception handling.
6305 * dwarf-index-cache.c: Use C++ exception handling.
6306 * dtrace-probe.c: Use C++ exception handling.
6307 * disasm-selftests.c: Use C++ exception handling.
6308 * darwin-nat.c: Use C++ exception handling.
6309 * cp-valprint.c: Use C++ exception handling.
6310 * cp-support.c: Use C++ exception handling.
6311 * cp-abi.c: Use C++ exception handling.
6312 * corelow.c: Use C++ exception handling.
6313 * completer.c: Use C++ exception handling.
6314 * compile/compile-object-run.c: Use C++ exception handling.
6315 * compile/compile-object-load.c: Use C++ exception handling.
6316 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6317 * compile/compile-c-symbols.c: Use C++ exception handling.
6318 * common/selftest.c: Use C++ exception handling.
6319 * common/new-op.c: Use C++ exception handling.
6320 * cli/cli-script.c: Use C++ exception handling.
6321 * cli/cli-interp.c: Use C++ exception handling.
6322 * cli/cli-cmds.c: Use C++ exception handling.
6323 * c-varobj.c: Use C++ exception handling.
6324 * btrace.c: Use C++ exception handling.
6325 * breakpoint.c: Use C++ exception handling.
6326 * break-catch-throw.c: Use C++ exception handling.
6327 * arch-utils.c: Use C++ exception handling.
6328 * amd64-tdep.c: Use C++ exception handling.
6329 * ada-valprint.c: Use C++ exception handling.
6330 * ada-typeprint.c: Use C++ exception handling.
6331 * ada-lang.c: Use C++ exception handling.
6332 * aarch64-tdep.c: Use C++ exception handling.
6333
3d6e9d23
TT
63342019-04-08 Tom Tromey <tom@tromey.com>
6335
6336 * xml-support.c (gdb_xml_parser::parse): Update.
6337 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6338 * value.c (show_convenience): Update.
6339 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6340 (test_parse_flags_qcs): Update.
6341 * thread.c (thr_try_catch_cmd): Update.
6342 * target.c (target_translate_tls_address): Update.
6343 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6344 (info_frame_command_core, frame_apply_command_count): Update.
6345 * rust-exp.y (rust_lex_exception_test): Update.
6346 * riscv-tdep.c (riscv_print_one_register_info): Update.
6347 * remote.c (remote_target::enable_btrace): Update.
6348 * record-btrace.c (record_btrace_enable_warn): Update.
6349 * python/py-utils.c (gdbpy_convert_exception): Update.
6350 * printcmd.c (do_one_display, print_variable_and_value): Update.
6351 * mi/mi-main.c (mi_print_exception): Update.
6352 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6353 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6354 * linux-nat.c (linux_nat_target::attach): Update.
6355 * linux-fork.c (class scoped_switch_fork_info): Update.
6356 * infrun.c (displaced_step_prepare): Update.
6357 * infcall.c (call_function_by_hand_dummy): Update.
6358 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6359 * gnu-v3-abi.c (print_one_vtable): Update.
6360 * frame.c (get_prev_frame_always): Update.
6361 * f-valprint.c (info_common_command_for_block): Update.
6362 * exec.c (try_open_exec_file): Update.
6363 * exceptions.c (print_exception, exception_print)
6364 (exception_fprintf, exception_print_same): Update.
6365 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6366 * dwarf-index-cache.c (index_cache::store)
6367 (index_cache::lookup_gdb_index): Update.
6368 * darwin-nat.c (maybe_cache_shell): Update.
6369 * cp-valprint.c (cp_print_value_fields): Update.
6370 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6371 (gcc_cplus_symbol_address): Update.
6372 * compile/compile-c-symbols.c (gcc_convert_symbol)
6373 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6374 * common/selftest.c: Update.
6375 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6376 a std::string.
6377 (exception_try_scope_entry, exception_try_scope_exit): Don't
6378 declare.
6379 (struct exception_try_scope): Remove.
6380 (TRY): Don't use exception_try_scope.
6381 (struct gdb_exception): Add constructor, operator=.
6382 <what>: New method.
6383 (struct gdb_exception_RETURN_MASK_ALL)
6384 (struct gdb_exception_RETURN_MASK_ERROR)
6385 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6386 (struct gdb_quit_bad_alloc): Update.
6387 * common/common-exceptions.c (exception_none): Change
6388 initializer.
6389 (struct catcher) <state, exception>: Initialize inline.
6390 <prev>: Remove member.
6391 (current_catcher): Remove.
6392 (catchers): New global.
6393 (exceptions_state_mc_init): Simplify.
6394 (catcher_pop): Remove.
6395 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6396 (try_scope_depth, exception_try_scope_entry)
6397 (exception_try_scope_exit): Remove.
6398 (throw_exception_sjlj): Update.
6399 (exception_messages, exception_messages_size): Remove.
6400 (throw_it): Simplify.
6401 (gdb_exception_sliced_copy): Remove.
6402 (throw_exception_cxx): Update.
6403 * cli/cli-script.c (script_from_file): Update.
6404 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6405 Update.
6406 * ada-valprint.c (ada_val_print): Update.
6407 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6408 (create_excep_cond_exprs): Update.
6409
c5c10118
TT
64102019-04-08 Tom Tromey <tom@tromey.com>
6411
6412 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6413 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6414 (TRY, CATCH, END_CATCH): Remove some definitions.
6415 * common/common-exceptions.c: Don't use GDB_XCPT.
6416 (catcher_list_size): Remove.
6417 (throw_exception, throw_it): Simplify.
6418
4de283e4
TT
64192019-04-05 Tom Tromey <tom@tromey.com>
6420
6421 Revert the header-sorting patch.
6422 * ft32-tdep.c: Revert.
6423 * frv-tdep.c: Revert.
6424 * frv-linux-tdep.c: Revert.
6425 * frame.c: Revert.
6426 * frame-unwind.c: Revert.
6427 * frame-base.c: Revert.
6428 * fork-child.c: Revert.
6429 * findvar.c: Revert.
6430 * findcmd.c: Revert.
6431 * filesystem.c: Revert.
6432 * filename-seen-cache.h: Revert.
6433 * filename-seen-cache.c: Revert.
6434 * fbsd-tdep.c: Revert.
6435 * fbsd-nat.h: Revert.
6436 * fbsd-nat.c: Revert.
6437 * f-valprint.c: Revert.
6438 * f-typeprint.c: Revert.
6439 * f-lang.c: Revert.
6440 * extension.h: Revert.
6441 * extension.c: Revert.
6442 * extension-priv.h: Revert.
6443 * expprint.c: Revert.
6444 * exec.h: Revert.
6445 * exec.c: Revert.
6446 * exceptions.c: Revert.
6447 * event-top.c: Revert.
6448 * event-loop.c: Revert.
6449 * eval.c: Revert.
6450 * elfread.c: Revert.
6451 * dwarf2read.h: Revert.
6452 * dwarf2read.c: Revert.
6453 * dwarf2loc.c: Revert.
6454 * dwarf2expr.h: Revert.
6455 * dwarf2expr.c: Revert.
6456 * dwarf2-frame.c: Revert.
6457 * dwarf2-frame-tailcall.c: Revert.
6458 * dwarf-index-write.h: Revert.
6459 * dwarf-index-write.c: Revert.
6460 * dwarf-index-common.c: Revert.
6461 * dwarf-index-cache.h: Revert.
6462 * dwarf-index-cache.c: Revert.
6463 * dummy-frame.c: Revert.
6464 * dtrace-probe.c: Revert.
6465 * disasm.h: Revert.
6466 * disasm.c: Revert.
6467 * disasm-selftests.c: Revert.
6468 * dictionary.c: Revert.
6469 * dicos-tdep.c: Revert.
6470 * demangle.c: Revert.
6471 * dcache.h: Revert.
6472 * dcache.c: Revert.
6473 * darwin-nat.h: Revert.
6474 * darwin-nat.c: Revert.
6475 * darwin-nat-info.c: Revert.
6476 * d-valprint.c: Revert.
6477 * d-namespace.c: Revert.
6478 * d-lang.c: Revert.
6479 * ctf.c: Revert.
6480 * csky-tdep.c: Revert.
6481 * csky-linux-tdep.c: Revert.
6482 * cris-tdep.c: Revert.
6483 * cris-linux-tdep.c: Revert.
6484 * cp-valprint.c: Revert.
6485 * cp-support.c: Revert.
6486 * cp-namespace.c: Revert.
6487 * cp-abi.c: Revert.
6488 * corelow.c: Revert.
6489 * corefile.c: Revert.
6490 * continuations.c: Revert.
6491 * completer.h: Revert.
6492 * completer.c: Revert.
6493 * complaints.c: Revert.
6494 * coffread.c: Revert.
6495 * coff-pe-read.c: Revert.
6496 * cli-out.h: Revert.
6497 * cli-out.c: Revert.
6498 * charset.c: Revert.
6499 * c-varobj.c: Revert.
6500 * c-valprint.c: Revert.
6501 * c-typeprint.c: Revert.
6502 * c-lang.c: Revert.
6503 * buildsym.c: Revert.
6504 * buildsym-legacy.c: Revert.
6505 * build-id.h: Revert.
6506 * build-id.c: Revert.
6507 * btrace.c: Revert.
6508 * bsd-uthread.c: Revert.
6509 * breakpoint.h: Revert.
6510 * breakpoint.c: Revert.
6511 * break-catch-throw.c: Revert.
6512 * break-catch-syscall.c: Revert.
6513 * break-catch-sig.c: Revert.
6514 * blockframe.c: Revert.
6515 * block.c: Revert.
6516 * bfin-tdep.c: Revert.
6517 * bfin-linux-tdep.c: Revert.
6518 * bfd-target.c: Revert.
6519 * bcache.c: Revert.
6520 * ax-general.c: Revert.
6521 * ax-gdb.h: Revert.
6522 * ax-gdb.c: Revert.
6523 * avr-tdep.c: Revert.
6524 * auxv.c: Revert.
6525 * auto-load.c: Revert.
6526 * arm-wince-tdep.c: Revert.
6527 * arm-tdep.c: Revert.
6528 * arm-symbian-tdep.c: Revert.
6529 * arm-pikeos-tdep.c: Revert.
6530 * arm-obsd-tdep.c: Revert.
6531 * arm-nbsd-tdep.c: Revert.
6532 * arm-nbsd-nat.c: Revert.
6533 * arm-linux-tdep.c: Revert.
6534 * arm-linux-nat.c: Revert.
6535 * arm-fbsd-tdep.c: Revert.
6536 * arm-fbsd-nat.c: Revert.
6537 * arm-bsd-tdep.c: Revert.
6538 * arch-utils.c: Revert.
6539 * arc-tdep.c: Revert.
6540 * arc-newlib-tdep.c: Revert.
6541 * annotate.h: Revert.
6542 * annotate.c: Revert.
6543 * amd64-windows-tdep.c: Revert.
6544 * amd64-windows-nat.c: Revert.
6545 * amd64-tdep.c: Revert.
6546 * amd64-sol2-tdep.c: Revert.
6547 * amd64-obsd-tdep.c: Revert.
6548 * amd64-obsd-nat.c: Revert.
6549 * amd64-nbsd-tdep.c: Revert.
6550 * amd64-nbsd-nat.c: Revert.
6551 * amd64-nat.c: Revert.
6552 * amd64-linux-tdep.c: Revert.
6553 * amd64-linux-nat.c: Revert.
6554 * amd64-fbsd-tdep.c: Revert.
6555 * amd64-fbsd-nat.c: Revert.
6556 * amd64-dicos-tdep.c: Revert.
6557 * amd64-darwin-tdep.c: Revert.
6558 * amd64-bsd-nat.c: Revert.
6559 * alpha-tdep.c: Revert.
6560 * alpha-obsd-tdep.c: Revert.
6561 * alpha-nbsd-tdep.c: Revert.
6562 * alpha-mdebug-tdep.c: Revert.
6563 * alpha-linux-tdep.c: Revert.
6564 * alpha-linux-nat.c: Revert.
6565 * alpha-bsd-tdep.c: Revert.
6566 * alpha-bsd-nat.c: Revert.
6567 * aix-thread.c: Revert.
6568 * agent.c: Revert.
6569 * addrmap.c: Revert.
6570 * ada-varobj.c: Revert.
6571 * ada-valprint.c: Revert.
6572 * ada-typeprint.c: Revert.
6573 * ada-tasks.c: Revert.
6574 * ada-lang.c: Revert.
6575 * aarch64-tdep.c: Revert.
6576 * aarch64-ravenscar-thread.c: Revert.
6577 * aarch64-newlib-tdep.c: Revert.
6578 * aarch64-linux-tdep.c: Revert.
6579 * aarch64-linux-nat.c: Revert.
6580 * aarch64-fbsd-tdep.c: Revert.
6581 * aarch64-fbsd-nat.c: Revert.
6582 * aarch32-linux-nat.c: Revert.
6583
d55e5aa6
TT
65842019-04-05 Tom Tromey <tom@tromey.com>
6585
6586 * ft32-tdep.c: Sort headers.
6587 * frv-tdep.c: Sort headers.
6588 * frv-linux-tdep.c: Sort headers.
6589 * frame.c: Sort headers.
6590 * frame-unwind.c: Sort headers.
6591 * frame-base.c: Sort headers.
6592 * fork-child.c: Sort headers.
6593 * findvar.c: Sort headers.
6594 * findcmd.c: Sort headers.
6595 * filesystem.c: Sort headers.
6596 * filename-seen-cache.h: Sort headers.
6597 * filename-seen-cache.c: Sort headers.
6598 * fbsd-tdep.c: Sort headers.
6599 * fbsd-nat.h: Sort headers.
6600 * fbsd-nat.c: Sort headers.
6601 * f-valprint.c: Sort headers.
6602 * f-typeprint.c: Sort headers.
6603 * f-lang.c: Sort headers.
6604 * extension.h: Sort headers.
6605 * extension.c: Sort headers.
6606 * extension-priv.h: Sort headers.
6607 * expprint.c: Sort headers.
6608 * exec.h: Sort headers.
6609 * exec.c: Sort headers.
6610 * exceptions.c: Sort headers.
6611 * event-top.c: Sort headers.
6612 * event-loop.c: Sort headers.
6613 * eval.c: Sort headers.
6614 * elfread.c: Sort headers.
6615 * dwarf2read.h: Sort headers.
6616 * dwarf2read.c: Sort headers.
6617 * dwarf2loc.c: Sort headers.
6618 * dwarf2expr.h: Sort headers.
6619 * dwarf2expr.c: Sort headers.
6620 * dwarf2-frame.c: Sort headers.
6621 * dwarf2-frame-tailcall.c: Sort headers.
6622 * dwarf-index-write.h: Sort headers.
6623 * dwarf-index-write.c: Sort headers.
6624 * dwarf-index-common.c: Sort headers.
6625 * dwarf-index-cache.h: Sort headers.
6626 * dwarf-index-cache.c: Sort headers.
6627 * dummy-frame.c: Sort headers.
6628 * dtrace-probe.c: Sort headers.
6629 * disasm.h: Sort headers.
6630 * disasm.c: Sort headers.
6631 * disasm-selftests.c: Sort headers.
6632 * dictionary.c: Sort headers.
6633 * dicos-tdep.c: Sort headers.
6634 * demangle.c: Sort headers.
6635 * dcache.h: Sort headers.
6636 * dcache.c: Sort headers.
6637 * darwin-nat.h: Sort headers.
6638 * darwin-nat.c: Sort headers.
6639 * darwin-nat-info.c: Sort headers.
6640 * d-valprint.c: Sort headers.
6641 * d-namespace.c: Sort headers.
6642 * d-lang.c: Sort headers.
6643 * ctf.c: Sort headers.
6644 * csky-tdep.c: Sort headers.
6645 * csky-linux-tdep.c: Sort headers.
6646 * cris-tdep.c: Sort headers.
6647 * cris-linux-tdep.c: Sort headers.
6648 * cp-valprint.c: Sort headers.
6649 * cp-support.c: Sort headers.
6650 * cp-namespace.c: Sort headers.
6651 * cp-abi.c: Sort headers.
6652 * corelow.c: Sort headers.
6653 * corefile.c: Sort headers.
6654 * continuations.c: Sort headers.
6655 * completer.h: Sort headers.
6656 * completer.c: Sort headers.
6657 * complaints.c: Sort headers.
6658 * coffread.c: Sort headers.
6659 * coff-pe-read.c: Sort headers.
6660 * cli-out.h: Sort headers.
6661 * cli-out.c: Sort headers.
6662 * charset.c: Sort headers.
6663 * c-varobj.c: Sort headers.
6664 * c-valprint.c: Sort headers.
6665 * c-typeprint.c: Sort headers.
6666 * c-lang.c: Sort headers.
6667 * buildsym.c: Sort headers.
6668 * buildsym-legacy.c: Sort headers.
6669 * build-id.h: Sort headers.
6670 * build-id.c: Sort headers.
6671 * btrace.c: Sort headers.
6672 * bsd-uthread.c: Sort headers.
6673 * breakpoint.h: Sort headers.
6674 * breakpoint.c: Sort headers.
6675 * break-catch-throw.c: Sort headers.
6676 * break-catch-syscall.c: Sort headers.
6677 * break-catch-sig.c: Sort headers.
6678 * blockframe.c: Sort headers.
6679 * block.c: Sort headers.
6680 * bfin-tdep.c: Sort headers.
6681 * bfin-linux-tdep.c: Sort headers.
6682 * bfd-target.c: Sort headers.
6683 * bcache.c: Sort headers.
6684 * ax-general.c: Sort headers.
6685 * ax-gdb.h: Sort headers.
6686 * ax-gdb.c: Sort headers.
6687 * avr-tdep.c: Sort headers.
6688 * auxv.c: Sort headers.
6689 * auto-load.c: Sort headers.
6690 * arm-wince-tdep.c: Sort headers.
6691 * arm-tdep.c: Sort headers.
6692 * arm-symbian-tdep.c: Sort headers.
6693 * arm-pikeos-tdep.c: Sort headers.
6694 * arm-obsd-tdep.c: Sort headers.
6695 * arm-nbsd-tdep.c: Sort headers.
6696 * arm-nbsd-nat.c: Sort headers.
6697 * arm-linux-tdep.c: Sort headers.
6698 * arm-linux-nat.c: Sort headers.
6699 * arm-fbsd-tdep.c: Sort headers.
6700 * arm-fbsd-nat.c: Sort headers.
6701 * arm-bsd-tdep.c: Sort headers.
6702 * arch-utils.c: Sort headers.
6703 * arc-tdep.c: Sort headers.
6704 * arc-newlib-tdep.c: Sort headers.
6705 * annotate.h: Sort headers.
6706 * annotate.c: Sort headers.
6707 * amd64-windows-tdep.c: Sort headers.
6708 * amd64-windows-nat.c: Sort headers.
6709 * amd64-tdep.c: Sort headers.
6710 * amd64-sol2-tdep.c: Sort headers.
6711 * amd64-obsd-tdep.c: Sort headers.
6712 * amd64-obsd-nat.c: Sort headers.
6713 * amd64-nbsd-tdep.c: Sort headers.
6714 * amd64-nbsd-nat.c: Sort headers.
6715 * amd64-nat.c: Sort headers.
6716 * amd64-linux-tdep.c: Sort headers.
6717 * amd64-linux-nat.c: Sort headers.
6718 * amd64-fbsd-tdep.c: Sort headers.
6719 * amd64-fbsd-nat.c: Sort headers.
6720 * amd64-dicos-tdep.c: Sort headers.
6721 * amd64-darwin-tdep.c: Sort headers.
6722 * amd64-bsd-nat.c: Sort headers.
6723 * alpha-tdep.c: Sort headers.
6724 * alpha-obsd-tdep.c: Sort headers.
6725 * alpha-nbsd-tdep.c: Sort headers.
6726 * alpha-mdebug-tdep.c: Sort headers.
6727 * alpha-linux-tdep.c: Sort headers.
6728 * alpha-linux-nat.c: Sort headers.
6729 * alpha-bsd-tdep.c: Sort headers.
6730 * alpha-bsd-nat.c: Sort headers.
6731 * aix-thread.c: Sort headers.
6732 * agent.c: Sort headers.
6733 * addrmap.c: Sort headers.
6734 * ada-varobj.c: Sort headers.
6735 * ada-valprint.c: Sort headers.
6736 * ada-typeprint.c: Sort headers.
6737 * ada-tasks.c: Sort headers.
6738 * ada-lang.c: Sort headers.
6739 * aarch64-tdep.c: Sort headers.
6740 * aarch64-ravenscar-thread.c: Sort headers.
6741 * aarch64-newlib-tdep.c: Sort headers.
6742 * aarch64-linux-tdep.c: Sort headers.
6743 * aarch64-linux-nat.c: Sort headers.
6744 * aarch64-fbsd-tdep.c: Sort headers.
6745 * aarch64-fbsd-nat.c: Sort headers.
6746 * aarch32-linux-nat.c: Sort headers.
6747
699bd4cf
TT
67482019-04-04 Tom Tromey <tom@tromey.com>
6749
6750 * varobj.c (varobj_create): Update.
6751 * rust-exp.y (struct rust_parser) <update_innermost_block,
6752 lookup_symbol>: New methods.
6753 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6754 Rename.
6755 (rust_parser::rust_lookup_type)
6756 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6757 * printcmd.c (display_command, do_one_display): Update.
6758 * parser-defs.h (struct parser_state) <parser_state>: Add
6759 "tracker" parameter.
6760 (block_tracker): New member.
6761 (class innermost_block_tracker) <innermost_block_tracker>: Add
6762 "types" parameter.
6763 <reset>: Remove method.
6764 (innermost_block): Don't declare.
6765 (null_post_parser): Update.
6766 * parse.c (innermost_block): Remove global.
6767 (write_dollar_variable): Update.
6768 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6769 Remove "tracker_types" parameter.
6770 (parse_expression): Add "tracker" parameter.
6771 (parse_expression_for_completion): Update.
6772 (null_post_parser): Add "tracker" parameter.
6773 * p-exp.y: Update rules.
6774 * m2-exp.y: Update rules.
6775 * language.h (struct language_defn) <la_post_parser>: Add
6776 "tracker" parameter.
6777 * go-exp.y: Update rules.
6778 * f-exp.y: Update rules.
6779 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6780 parameter.
6781 * d-exp.y: Update rules.
6782 * c-exp.y: Update rules.
6783 * breakpoint.c (set_breakpoint_condition): Create an
6784 innermost_block_tracker.
6785 (watch_command_1): Likewise.
6786 * ada-lang.c (resolve): Add "tracker" parameter.
6787 (resolve_subexp): Likewise.
6788 * ada-exp.y (write_var_from_sym): Update.
6789
dac43e32
TT
67902019-04-04 Tom Tromey <tom@tromey.com>
6791
6792 * type-stack.h: New file.
6793 * type-stack.c: New file.
6794 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6795 type-stack.h.
6796 (insert_into_type_stack, insert_type, push_type, push_type_int)
6797 (insert_type_address_space, pop_type, pop_type_int)
6798 (pop_typelist, pop_type_stack, append_type_stack)
6799 (push_type_stack, get_type_stack, push_typelist)
6800 (follow_type_instance_flags, follow_types): Don't declare.
6801 * parse.c (type_stack): Remove global.
6802 (parse_exp_in_context): Update.
6803 (insert_into_type_stack, insert_type, push_type, push_type_int)
6804 (insert_type_address_space, pop_type, pop_type_int)
6805 (pop_typelist, pop_type_stack, append_type_stack)
6806 (push_type_stack, get_type_stack, push_typelist)
6807 (follow_type_instance_flags, follow_types): Remove (moved to
6808 type-stack.c).
6809 * f-exp.y (type_stack): New global.
6810 Update rules.
6811 (push_kind_type, f_parse): Update.
6812 * d-exp.y (type_stack): New global.
6813 Update rules.
6814 (d_parse): Update.
6815 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6816 Update rules.
6817 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6818 (HFILES_NO_SRCDIR): Add type-stack.h.
6819
2a612529
TT
68202019-04-04 Tom Tromey <tom@tromey.com>
6821
6822 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6823 (rust_parser::convert_ast_to_expression, rust_parse)
6824 (rust_lex_test_completion, rust_lex_tests): Update.
6825 * parser-defs.h (struct expr_completion_state): New.
6826 (struct parser_state) <parser_state>: Add completion parameter.
6827 <mark_struct_expression, mark_completion_tag>: New methods.
6828 <parse_completion, m_completion_state>: New members.
6829 (prefixify_expression, null_post_parser): Update.
6830 (mark_struct_expression, mark_completion_tag): Don't declare.
6831 * parse.c (parse_completion, expout_last_struct)
6832 (expout_tag_completion_type, expout_completion_name): Remove
6833 globals.
6834 (parser_state::mark_struct_expression)
6835 (parser_state::mark_completion_tag): Now methods.
6836 (prefixify_expression): Add last_struct parameter.
6837 (prefixify_subexp): Likewise.
6838 (parse_exp_1): Update.
6839 (parse_exp_in_context): Add cstate parameter. Update.
6840 (parse_expression_for_completion): Create an
6841 expr_completion_state.
6842 (null_post_parser): Add "completion" parameter.
6843 * p-exp.y: Update rules.
6844 (yylex): Update.
6845 * language.h (struct language_defn) <la_post_parser>: Add
6846 "completing" parameter.
6847 * go-exp.y: Update rules.
6848 (lex_one_token): Update.
6849 * expression.h (parse_completion): Don't declare.
6850 * d-exp.y: Update rules.
6851 (lex_one_token): Update rules.
6852 * c-exp.y: Update rules.
6853 (lex_one_token): Update.
6854 * ada-lang.c (resolve): Add "parse_completion" parameter.
6855 (resolve_subexp): Likewise.
6856 (ada_resolve_function): Likewise.
6857
43476f0b
TT
68582019-04-04 Tom Tromey <tom@tromey.com>
6859
6860 * parser-defs.h (struct parser_state) <start_arglist,
6861 end_arglist>: New methods.
6862 <arglist_len, m_funcall_chain>: New members.
6863 (arglist_len, start_arglist, end_arglist): Don't declare.
6864 * parse.c (arglist_len, funcall_chain): Remove global.
6865 (start_arglist, end_arglist): Remove functions.
6866 (parse_exp_in_context): Update.
6867 * p-exp.y: Update rules.
6868 * m2-exp.y: Update rules.
6869 * go-exp.y: Update rules.
6870 * f-exp.y: Update rules.
6871 * d-exp.y: Update rules.
6872 * c-exp.y: Update rules.
6873
5776fca3
TT
68742019-04-04 Tom Tromey <tom@tromey.com>
6875
6876 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6877 lex_operator, push_back>: New methods.
6878 Update all rules.
6879 (rust_parser::lex_hex, lex_escape): Rename and update.
6880 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6881 (rust_parser::lex_operator): Rename and update.
6882 (rust_parser::lex_number, rustyylex, rustyyerror)
6883 (rust_lex_test_init, rust_lex_test_sequence)
6884 (rust_lex_test_push_back, rust_lex_tests): Update.
6885 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6886 parameter.
6887 <lexptr, prev_lexptr>: New members.
6888 (lexptr, prev_lexptr): Don't declare.
6889 * parse.c (lexptr, prev_lexptr): Remove globals.
6890 (parse_exp_in_context): Update.
6891 * p-exp.y (yylex, yyerror): Update.
6892 * m2-exp.y (parse_number, yylex, yyerror): Update.
6893 * go-exp.y (lex_one_token, yyerror): Update.
6894 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6895 * d-exp.y (lex_one_token, yyerror): Update.
6896 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6897 (lex_one_token, yyerror): Update.
6898 * ada-lex.l (YY_INPUT): Update.
6899 (rewind_to_char): Update.
6900 * ada-exp.y (yyerror): Update.
6901
8621b685
TT
69022019-04-04 Tom Tromey <tom@tromey.com>
6903
6904 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6905 * parser-defs.h (struct parser_state) <parser_state>: Add new
6906 parameter.
6907 <comma_terminates>: New member.
6908 (comma_terminates): Don't declare global.
6909 * parse.c (comma_terminates): Remove global.
6910 (parse_exp_in_context): Update.
6911 * p-exp.y (yylex): Update.
6912 * m2-exp.y (yylex): Update.
6913 * go-exp.y (lex_one_token): Update.
6914 * f-exp.y (yylex): Update.
6915 * d-exp.y (lex_one_token): Update.
6916 * c-exp.y (lex_one_token): Update.
6917 * ada-lex.l: Update.
6918
28aaf3fd
TT
69192019-04-04 Tom Tromey <tom@tromey.com>
6920
6921 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6922 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6923 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6924 * parser-defs.h (paren_depth): Don't declare.
6925 * parse.c (paren_depth): Remove global.
6926 (parse_exp_in_context): Update.
6927 * p-exp.y (paren_depth): New global.
6928 (pascal_parse): Initialize it.
6929 * m2-exp.y (paren_depth): New global.
6930 (m2_parse): Initialize it.
6931 * go-exp.y (paren_depth): New global.
6932 (go_parse): Initialize it.
6933 * f-exp.y (paren_depth): New global.
6934 (f_parse): Initialize it.
6935 * d-exp.y (paren_depth): New global.
6936 (d_parse): Initialize it.
6937 * c-exp.y (paren_depth): New global.
6938 (c_parse): Initialize it.
6939 * ada-lex.l (paren_depth): New global.
6940 (lexer_init): Initialize it.
6941
1e58a4a4
TT
69422019-04-04 Tom Tromey <tom@tromey.com>
6943
6944 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6945 (rust_parser::convert_ast_to_type)
6946 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6947 * parser-defs.h (struct parser_state) <parser_state>: Add
6948 parameters. Initialize new members.
6949 <expression_context_block, expression_context_pc>: New members.
6950 * parse.c (expression_context_block, expression_context_pc):
6951 Remove globals.
6952 (parse_exp_in_context): Update.
6953 * p-exp.y: Update all rules.
6954 (yylex): Update.
6955 * m2-exp.y: Update all rules.
6956 (yylex): Update.
6957 * go-exp.y (yylex): Update.
6958 * f-exp.y (yylex): Update.
6959 * d-exp.y: Update all rules.
6960 (yylex): Update.
6961 * c-exp.y: Update all rules.
6962 (lex_one_token, classify_name, yylex, c_parse): Update.
6963 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6964
37eedb39
TT
69652019-04-04 Tom Tromey <tom@tromey.com>
6966
6967 * gdbarch.h, gdbarch.c: Rebuild.
6968 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6969 * stap-probe.h:
6970 (struct stap_parse_info): Replace "parser_state" with
6971 "expr_builder".
6972 * parser-defs.h (struct expr_builder): Rename from "parser_state".
6973 (parser_state): New class.
6974 * parse.c (expr_builder): Rename.
6975 (expr_builder::release): Rename.
6976 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
6977 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
6978 (write_exp_elt_longcst, write_exp_elt_floatcst)
6979 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
6980 (write_exp_string_vector, write_exp_bitstring)
6981 (write_exp_msymbol, mark_struct_expression)
6982 (write_dollar_variable)
6983 (insert_type_address_space, increase_expout_size): Replace
6984 "parser_state" with "expr_builder".
6985 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
6986 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
6987 "parser_state" with "expr_builder".
6988
73923d7e
TT
69892019-04-04 Tom Tromey <tom@tromey.com>
6990
6991 * rust-exp.y: Replace "parse_language" with method call.
6992 * p-exp.y:
6993 (yylex): Replace "parse_language" with method call.
6994 * m2-exp.y:
6995 (yylex): Replace "parse_language" with method call.
6996 * go-exp.y (classify_name): Replace "parse_language" with method
6997 call.
6998 * f-exp.y (yylex): Replace "parse_language" with method call.
6999 * d-exp.y (lex_one_token): Replace "parse_language" with method
7000 call.
7001 * c-exp.y:
7002 (lex_one_token, classify_name, yylex): Replace "parse_language"
7003 with method call.
7004 * ada-exp.y (find_primitive_type, type_char)
7005 (type_system_address): Replace "parse_language" with method call.
7006
fa9f5be6
TT
70072019-04-04 Tom Tromey <tom@tromey.com>
7008
7009 * rust-exp.y: Replace "parse_gdbarch" with method call.
7010 * parse.c (write_dollar_variable, insert_type_address_space):
7011 Replace "parse_gdbarch" with method call.
7012 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7013 call.
7014 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7015 call.
7016 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7017 "parse_gdbarch" with method call.
7018 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7019 with method call.
7020 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7021 "parse_gdbarch" with method call.
7022 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7023 "parse_gdbarch" with method call.
7024 * c-exp.y (parse_type, parse_number, classify_name): Replace
7025 "parse_gdbarch" with method call.
7026 * ada-lex.l: Replace "parse_gdbarch" with method call.
7027 * ada-exp.y (parse_type, find_primitive_type, type_char)
7028 (type_system_address): Replace "parse_gdbarch" with method call.
7029
1201a264
TT
70302019-04-04 Tom Tromey <tom@tromey.com>
7031
7032 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7033 * stap-probe.c (stap_parse_argument): Update.
7034 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7035 initial_size parameter.
7036 * rust-exp.y (rust_lex_tests): Update.
7037 * parse.c (parser_state): Update.
7038 (parse_exp_in_context): Update.
7039 * parser-defs.h (struct parser_state) <parser_state>: Remove
7040 "initial_size" parameter.
7041
e3980ce2
TT
70422019-04-04 Tom Tromey <tom@tromey.com>
7043
7044 * parser-defs.h (increase_expout_size): Don't declare.
7045 * parse.c (increase_expout_size): Now static.
7046
e9f8e3f1
TS
70472019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7048
7049 * gnu-nat.c (gnu_nat_target::wait): Fix
7050 target_waitstatus_to_string call.
7051
d7df6549
AB
70522019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7053
7054 * eval.c (evaluate_subexp_standard): Handle internal functions
7055 during Fortran function call handling.
7056
8bdc1658
AB
70572019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7058
7059 * NEWS: Mention new internal functions.
7060 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7061 (read_base_type): Use dwarf2_init_complex_target_type.
7062 * value.c (creal_internal_fn): New function.
7063 (cimag_internal_fn): New function.
7064 (_initialize_values): Register new internal functions.
7065
c29705b7
PW
70662019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7067
7068 * infrun.c (stop_all_threads): If debug_infrun, always
7069 trace the wait status after wait_one, using
7070 target_waitstatus_to_string and target_pid_to_str.
7071 (handle_inferior_event): Replace various trace of
7072 wait status kind by a single trace.
7073 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7074 wait status kind image by target_waitstatus_to_string.
7075 * target/waitstatus.c (target_waitstatus_to_string): Fix
7076 obsolete comment.
7077
05caa1d2
TT
70782019-04-01 Tom Tromey <tromey@adacore.com>
7079
7080 PR symtab/23331:
7081 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7082
9d1447e0
SDJ
70832019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7084 Pedro Alves <palves@redhat.com>
7085
7086 * top.c (quit_force): Call 'finalize_values'.
7087 * value.c (finalize_values): New function.
7088 * value.h (finalize_values): Declare.
7089
7734102d
EZ
70902019-03-30 Eli Zaretskii <eliz@gnu.org>
7091
7092 * NEWS: Announce $_gdb_major and $_gdb_minor.
7093
7094 * top.c (init_gdb_version_vars): New function.
7095 (gdb_init): Call init_gdb_version_vars.
7096
188e1fa9
TT
70972019-03-29 Tom Tromey <tromey@adacore.com>
7098
7099 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7100 help text. Remove dead code.
7101
2880242d
KS
71022019-03-29 Keith Seitz <keiths@redhat.com>
7103
7104 From Siddhesh Poyarekar:
7105 * f-lang.h (f77_get_upperbound): Return LONGEST.
7106 (f77_get_lowerbound): Likewise.
7107 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7108 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7109 print them.
7110 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7111 plongest to format print it.
7112 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7113 (f77_get_upperbound): Likewise.
7114 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7115 LOWER_BOUND to LONGEST.
7116 (f77_create_arrayprint_offset_tbl): Likewise.
7117
cc1defb1
KS
71182019-03-29 Keith Seitz <keiths@redhat.com>
7119
7120 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7121 %s/pulongest for TYPE_LENGTH instead of %d in format
7122 strings.
7123 * ada-typerint.c (ada_print_type): Likewise.
7124 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7125 * compile/compile-c-support.c (generate_register_struct): Likewise.
7126 * gdbtypes.c (recursive_dump_type): Likewise.
7127 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7128 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7129 instead of %d in format strings.
7130 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7131 to std::min to ULONGEST.
7132 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7133 instead of %d in format strings.
7134 * tracepoint.c (info_scope_command): Likewise.
7135 * typeprint.c (print_offset_data::update)
7136 (print_offset_data::finish): Likewise.
7137 * xtensa-tdep.c (xtensa_store_return_value)
7138 (xtensa_push_dummy_call): Likewise.
7139
e432ccf1
JT
71402019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7141
7142 * windows-nat.c (display_selector): Fixed format specifications
7143 for 64-bit Cygwin.
7144
65d2b333
PW
71452019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7146
7147 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7148
f489207e
SL
71492019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7150
7151 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7152 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7153 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7154 (nios2_linux_init_abi): Install it.
7155
bffa1015
AH
71562019-03-28 Alan Hayward <alan.hayward@arm.com>
7157
7158 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7159
fc96163a
AH
71602019-03-28 Alan Hayward <alan.hayward@arm.com>
7161
7162 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7163
20dc7e9b
PW
71642019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7165 Tom Tromey <tromey@adacore.com>
7166
7167 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7168
7f5331a8
JB
71692019-03-26 Joel Brobecker <brobecker@adacore.com>
7170
7171 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7172 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7173 method to compute the bounds of range types. Also print "[evaluated]"
7174 if the bounds' values come from a dynamic evaluation.
7175
18c77628
AB
71762019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7177
7178 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7179 whitespace when pretty printing is on.
7180
53c973f2
AH
71812019-03-26 Alan Hayward <alan.hayward@arm.com>
7182
e79be6e5 7183 * ppc-linux-nat.c: Add include.
53c973f2 7184
d851aa71
AH
71852019-03-26 Alan Hayward <alan.hayward@arm.com>
7186
e79be6e5 7187 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7188
2fe7bab7
AH
71892019-03-26 Alan Hayward <alan.hayward@arm.com>
7190
e79be6e5 7191 * arm-linux-nat.c: Add include.
2fe7bab7 7192
068ef30e
SM
71932019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * source-cache.c (source_cache::get_source_lines): Re-read
7196 fullname after calling open_source_file.
7197
81a24d04
JB
71982019-03-25 John Baldwin <jhb@FreeBSD.org>
7199
7200 * NEWS: Mention TLS support for FreeBSD.
7201
79e7ae11
TT
72022019-03-25 Tom Tromey <tromey@adacore.com>
7203
7204 * minsyms.c (BUNCH_SIZE): Update comment.
7205 (~minimal_symbol_reader): Remove old comment.
7206 (compact_minimal_symbols): Update comment.
7207 (minimal_symbol_reader::install): Remove old comment. Update
7208 other comments.
7209
d45963c2
AH
72102019-03-25 Alan Hayward <alan.hayward@arm.com>
7211
7212 * s390-linux-nat.c: Add include.
7213
0f83012e
AH
72142019-03-25 Alan Hayward <alan.hayward@arm.com>
7215
7216 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7217 Call linux_get_hwcap.
7218 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7219 Likewise.
7220 (aarch64_linux_get_hwcap): Remove function.
7221 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7222 declaration.
7223 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7224 linux_get_hwcap.
7225 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7226 * linux-tdep.c (linux_get_hwcap): Add function.
7227 (linux_get_hwcap2): Likewise.
7228 * linux-tdep.h (linux_get_hwcap): Add declaration.
7229 (linux_get_hwcap2): Likewise.
7230 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7231 (ppc_linux_get_hwcap2): Likewise.
7232 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7233 linux_get_hwcap.
7234 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7235 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7236 (ppc_linux_nat_target::read_description): Likewise.
7237 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7238 * s390-linux-nat.c: Likewise.
7239 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7240
6640a367
TT
72412019-03-24 Tom Tromey <tom@tromey.com>
7242
7243 * ada-lang.c (standard_lookup): Simplify initialization.
7244 (ada_lookup_symbol_nonlocal): Simplify return.
7245 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7246 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7247 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7248 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7249 initialization.
7250 * solib.c (solib_global_lookup): Simplify.
7251 * symtab.c (null_block_symbol): Remove.
7252 (symbol_cache_lookup): Simplify returns.
7253 (lookup_language_this): Simplify returns.
7254 (lookup_symbol_aux): Simplify return.
7255 (lookup_local_symbol): Simplify returns.
7256 (lookup_global_symbol_from_objfile): Simplify return.
7257 (lookup_symbol_in_objfile_symtabs)
7258 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7259 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7260 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7261 * cp-namespace.c (cp_lookup_bare_symbol)
7262 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7263 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7264 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7265 (cp_lookup_symbol_via_imports): Simplify initialization.
7266 (find_symbol_in_baseclass): Likewise.
7267 * symtab.h (null_block_symbol): Remove.
7268 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7269 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7270 (d_lookup_symbol_module): Likewise.
7271 (find_symbol_in_baseclass): Simplify initialization.
7272
a930ebcd
TT
72732019-03-24 Tom Tromey <tom@tromey.com>
7274
7275 * expression.h: Don't include symtab.h.
7276 (struct block): Forward declare.
7277
582942f4
TT
72782019-03-24 Tom Tromey <tom@tromey.com>
7279
7280 * c-exp.y (typebase): Remove casts.
7281 * gdbtypes.c (lookup_unsigned_typename, )
7282 (lookup_signed_typename): Remove cast.
7283 * eval.c (parse_to_comma_and_eval): Remove cast.
7284 * parse.c (write_dollar_variable): Remove cast.
7285 * block.h (struct block) <superblock>: Now const.
7286 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7287 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7288 (map_block): Make "block" const.
7289 * symfile.h (struct quick_symbol_functions)
7290 <map_matching_symbols>: Constify block argument to "callback".
7291 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7292 const.
7293 (find_pc_sect_compunit_symtab): Make "b" const.
7294 (find_symbol_at_address): Likewise.
7295 (search_symbols): Likewise.
7296 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7297 (dw2_debug_names_lookup_symbol): Likewise.
7298 (dw2_map_matching_symbols): Update.
7299 * p-valprint.c (pascal_val_print): Remove "block".
7300 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7301 (aux_add_nonlocal_symbols): Make "block" const.
7302 (resolve_subexp): Remove cast.
7303 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7304 const.
7305 (iterate_over_file_blocks): Likewise.
7306 * f-exp.y (%union) <bval>: Remove.
7307 * coffread.c (patch_opaque_types): Make "b" const.
7308 * spu-tdep.c (spu_catch_start): Make "block" const.
7309 * c-valprint.c (print_unpacked_pointer): Remove "block".
7310 * symmisc.c (dump_symtab_1): Make "b" const.
7311 (block_depth): Make "block" const.
7312 * d-exp.y (%union) <bval>: Remove.
7313 * cp-support.h (cp_lookup_rtti_type): Update.
7314 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7315 * psymtab.c (psym_lookup_symbol): Make "block" const.
7316 (maintenance_check_psymtabs): Make "b" const.
7317 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7318 (enumerate_locals, enumerate_args): Update.
7319 * python/py-symtab.c (stpy_global_block): Make "block" const.
7320 (stpy_static_block): Likewise.
7321 * inline-frame.c (block_starting_point_at): Make "new_block"
7322 const.
7323 * block.c (find_block_in_blockvector): Make return type const.
7324 (blockvector_for_pc_sect): Make "b" const.
7325 (find_block_in_blockvector): Make "b" const.
7326
7ad417dd
TT
73272019-03-23 Tom Tromey <tom@tromey.com>
7328
7329 * varobj.c (varobj_create): Update.
7330 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7331 * printcmd.c (display_command, do_one_display): Don't reset
7332 innermost_block.
7333 * parser-defs.h (enum innermost_block_tracker_type): Move to
7334 expression.h.
7335 (innermost_block): Update comment.
7336 * parse.c (parse_exp_1): Add tracker_types parameter.
7337 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7338 tracker_types parameter. Reset innermost_block.
7339 (parse_exp_in_context): Remove.
7340 (parse_expression_for_completion): Update.
7341 * objfiles.c (~objfile): Don't reset expression_context_block or
7342 innermost_block.
7343 * expression.h (enum innermost_block_tracker_type): Move from
7344 parser-defs.h.
7345 (parse_exp_1): Add tracker_types parameter.
7346 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7347 reset innermost_block.
7348
b366c208
TT
73492019-03-23 Tom Tromey <tom@tromey.com>
7350
7351 * objfiles.h: Include bcache.h.
7352
9bb9b2f9
TT
73532019-03-23 Tom Tromey <tom@tromey.com>
7354
7355 * linespec.c (get_current_search_block): Use
7356 scoped_restore_current_language.
7357 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7358
59c28372
AH
73592019-03-22 Alan Hayward <alan.hayward@arm.com>
7360 Jiong Wang <jiong.wang@arm.com>
7361
7362 * aarch64-linux-tdep.c
7363 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7364 section.
7365 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7366
17e116a7
AH
73672019-03-22 Alan Hayward <alan.hayward@arm.com>
7368 Jiong Wang <jiong.wang@arm.com>
7369
7370 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7371 instructions.
7372 (aarch64_analyze_prologue_test): Add PACIASP test.
7373 (aarch64_prologue_prev_register): Unmask PC value.
7374
11e1b75f
AH
73752019-03-22 Alan Hayward <alan.hayward@arm.com>
7376 Jiong Wang <jiong.wang@arm.com>
7377
7378 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7379 (aarch64_dwarf2_prev_register): Unmask PC value.
7380 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7381 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7382 DW_CFA_AARCH64_negate_ra_state.
7383 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7384
34dcc7cf
AH
73852019-03-22 Alan Hayward <alan.hayward@arm.com>
7386 Jiong Wang <jiong.wang@arm.com>
7387
7388 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7389 registers.
7390 (aarch64_pseudo_register_name): Likewise.
7391 (aarch64_pseudo_register_type): Likewise.
7392 (aarch64_pseudo_register_reggroup_p): Likewise.
7393 (aarch64_gdbarch_init): Add pauth registers.
7394 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7395 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7396 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7397 (struct gdbarch_tdep): Add regnum for ra_state.
7398
1ef53e6b
AH
73992019-03-22 Alan Hayward <alan.hayward@arm.com>
7400 Jiong Wang <jiong.wang@arm.com>
7401
7402 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7403
76bed0fd
AH
74042019-03-22 Alan Hayward <alan.hayward@arm.com>
7405 Jiong Wang <jiong.wang@arm.com>
7406
7407 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7408 function.
7409 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7410 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7411 (aarch64_gdbarch_init): Add puth registers.
7412 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7413 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7414 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7415
ee4fbcfa
AH
74162019-03-22 Alan Hayward <alan.hayward@arm.com>
7417 Jiong Wang <jiong.wang@arm.com>
7418
7419 * aarch64-linux-nat.c
7420 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7421 * aarch64-linux-tdep.c
7422 (aarch64_linux_core_read_description): Likewise.
7423 (aarch64_linux_get_hwcap): New function.
7424 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7425 (aarch64_linux_get_hwcap): New declaration.
7426
6dc0ebde
AH
74272019-03-22 Alan Hayward <alan.hayward@arm.com>
7428 Jiong Wang <jiong.wang@arm.com>
7429
7430 * aarch64-linux-nat.c
7431 (aarch64_linux_nat_target::read_description): Add pauth param.
7432 * aarch64-linux-tdep.c
7433 (aarch64_linux_core_read_description): Likewise.
7434 * aarch64-tdep.c (struct target_desc): Add in pauth.
7435 (aarch64_read_description): Add pauth param.
7436 (aarch64_gdbarch_init): Likewise.
7437 * aarch64-tdep.h (aarch64_read_description): Likewise.
7438 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7439 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7440 * features/Makefile: Add new files.
7441 * features/aarch64-pauth.c: New file.
7442 * features/aarch64-pauth.xml: New file.
7443
595915c1
TT
74442019-03-20 Tom Tromey <tromey@adacore.com>
7445
7446 * infrun.c (handle_inferior_event): Rename from
7447 handle_inferior_event_1. Create a scoped_value_mark.
7448 (handle_inferior_event): Remove.
7449
4c7d57e7
TT
74502019-03-19 Tom Tromey <tromey@adacore.com>
7451
7452 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7453 * infrun.h (print_stop_event): Add "displays" parameter.
7454 * infrun.c (print_stop_event): Add "displays" parameter.
7455
cb246234
PA
74562019-03-19 Pedro Alves <palves@redhat.com>
7457
7458 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7459 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7460 to -1. Fix TABs vs spaces.
7461 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7462 * tui/tui-out.h (tui_ui_out) Add intro comments.
7463 <m_line, m_start_of_line>: In-class initialize, and add describing
7464 comment.
7465
3a0e45b2
AH
74662019-03-18 Alan Hayward <alan.hayward@arm.com>
7467
7468 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7469 variable names.
7470 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7471
5371b850
PA
74722019-03-18 Pedro Alves <palves@redhat.com>
7473 Eli Zaretskii <eliz@gnu.org>
7474
7475 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7476 m_line and m_start_of_line.
7477
b17c4cd0
EZ
74782019-03-18 Eli Zaretskii <eliz@gnu.org>
7479
7480 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7481 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7482 it returns a newline. This fixes a regression in TU mode, whereby
7483 the next line is output on the same screen line as the user input.
7484
4bd56d18
TT
74852019-03-18 Tom Tromey <tromey@adacore.com>
7486
7487 * minsyms.c (minimal_symbol_reader::install): Remove call to
7488 obstack_blank.
7489
55c10aca
PA
74902019-03-18 Pedro Alves <palves@redhat.com>
7491
7492 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7493 New globals.
7494 (apply_style): New, factored out from ...
7495 (apply_ansi_escape): ... this. Handle reverse video mode.
7496 (tui_set_reverse_mode): New function.
7497 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7498 * tui/tui-winsource.c (tui_show_source_line): Use
7499 tui_set_reverse_mode instead of setting A_STANDOUT.
7500 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7501 New setter methods.
7502
647bb750
HD
75032019-03-18 Hannes Domani <ssbssa@yahoo.de>
7504
7505 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7506 Handle tabs.
7507
bff8c71f
TT
75082019-03-18 Tom Tromey <tromey@adacore.com>
7509
7510 * ada-lang.c (empty_array): Add "high" parameter.
7511 (ada_evaluate_subexp): Update.
7512
58785d98
ST
75132019-03-17 Sergei Trofimovich <siarheit@google.com>
7514
7515 * unittests/string_view-selftests.c: Define
7516 _initialize_string_view_selftests unconditionally.
7517
d4cbef22
ВМ
75182019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7519
7520 PR gdb/24350
7521 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7522
fce4c071
ВМ
75232019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7524
7525 PR gdb/24351
7526 * windows-nat.c (display_selector): Fix format specifiers.
7527
f7f0a123
EZ
75282019-03-17 Eli Zaretskii <eliz@gnu.org>
7529
7530 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7531 tui_refill_source_window instead of tui_refresh_win, to update the
7532 current execution line. This fixes redisplay of the current line
7533 when stepping through the code with "next" or "step".
7534
ab42892f
EZ
75352019-03-16 Eli Zaretskii <eliz@gnu.org>
7536
7537 * source-cache.c (source_cache::get_source_lines): Call
7538 find_source_lines to initialize s->nlines. This fixes vertical
7539 scrolling of TUI source window when the DOWN arrow is pressed.
7540
8d8c087f
PW
75412019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7542
7543 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7544 linux-thread-db.c (_initialize_thread_db): Likewise.
7545
798e1c30
EZ
75462019-03-16 Eli Zaretskii <eliz@gnu.org>
7547
7548 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7549 wclrtoeol in tui_show_source_line". This reverts changes made in
7550 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7551
eefba3da
TT
75522019-03-15 Tom Tromey <tom@tromey.com>
7553
7554 * symtab.h (struct minimal_symbol): Derive from
7555 general_symbol_info.
7556 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7557 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7558 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7559 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7560 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7561 (MSYMBOL_SEARCH_NAME): Update.
7562 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7563 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7564 * minsyms.c (minimal_symbol_reader::record_full): Update.
7565
0de2420c
TT
75662019-03-15 Tom Tromey <tom@tromey.com>
7567
7568 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7569
042d75e4
TT
75702019-03-15 Tom Tromey <tom@tromey.com>
7571
7572 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7573 unique_xmalloc_ptr.
7574 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7575 Update.
7576 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7577 (build_minimal_symbol_hash_tables)
7578 (minimal_symbol_reader::install): Update.
7579
db92718b
TT
75802019-03-15 Tom Tromey <tom@tromey.com>
7581
7582 * symtab.c (create_demangled_names_hash): Update.
7583 (symbol_set_names): Update.
7584 * objfiles.h (struct objfile_per_bfd_storage)
7585 <demangled_names_hash>: Now an htab_up.
7586 * objfiles.c (objfile_per_bfd_storage): Simplify.
7587
d6797f46
TT
75882019-03-15 Tom Tromey <tom@tromey.com>
7589
7590 * objfiles.h (struct objfile_per_bfd_storage): Declare
7591 destructor.
7592 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7593 New.
7594 (get_objfile_bfd_data): Use new. Don't initialize
7595 language_of_main.
7596 (free_objfile_per_bfd_storage): Remove.
7597 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7598
741d7538
TT
75992019-03-15 Tom Tromey <tom@tromey.com>
7600
7601 * symfile.c (reread_symbols): Update.
7602 * objfiles.c (objfile::objfile): Update.
7603 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7604 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7605 comment.
7606 (minimal_symbol_reader::install): Update.
7607 (terminate_minimal_symbol_table): Remove.
7608 * jit.c (jit_object_close_impl): Update.
7609
788c80d1
TT
76102019-03-15 Tom Tromey <tom@tromey.com>
7611
7612 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7613 initializations.
7614
1b7a07cb
TT
76152019-03-15 Tom Tromey <tom@tromey.com>
7616
7617 * objfiles.h (struct objfile_per_bfd_storage)
7618 <demangled_hash_languages>: Now a bitset.
7619 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7620 (lookup_minimal_symbol): Update.
7621
3db066bc
TT
76222019-03-15 Tom Tromey <tom@tromey.com>
7623
7624 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7625 Don't return the symbol.
7626 * coffread.c (record_minimal_symbol): Use record_full.
7627
3fff2c37
EZ
76282019-03-14 Eli Zaretskii <eliz@gnu.org>
7629
7630 The MS-Windows port of ncurses fails to switch to a color pair if
7631 one or both of the colors are the implicit default colors. This
7632 change records the default colors when TUI is initialized, and
7633 then specifies them explicitly when a color pair uses the default
7634 colors. This allows color styling in TUI mode on MS-Windows.
7635
7636 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7637 ncurses_norm_attr.
7638 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7639 colors in ncurses_norm_attr.
7640 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7641 "none", replace it with the default color recorded in
7642 ncurses_norm_attr.
7643
3b336828
TT
76442019-03-14 Tom Tromey <tromey@adacore.com>
7645
7646 * source-cache.h (class source_cache) <get_source_lines>: Return
7647 std::string.
7648 * source-cache.c (source_cache::extract_lines): Handle case where
7649 first_pos==npos. Return std::string.
7650 (source_cache::get_source_lines): Update.
7651
d085f989
TT
76522019-03-14 Tom Tromey <tromey@adacore.com>
7653
7654 * NEWS: Add item for "style sources" commands.
7655 * source-cache.c (source_cache::get_source_lines): Check
7656 source_styling.
7657 * cli/cli-style.c (source_styling): New global.
7658 (_initialize_cli_style): Add "style sources" commands.
7659 (show_style_sources): New function.
7660 * cli/cli-style.h (source_styling): Declare.
7661
6f11e682
TT
76622019-03-14 Pedro Alves <palves@redhat.com>
7663 Tom Tromey <tromey@adacore.com>
7664
7665 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7666 * tui/tui-winsource.c (tui_refill_source_window): New function,
7667 from...
7668 (tui_horizontal_source_scroll): ... here. Move some logic.
7669 * cli/cli-style.c (set_style_enabled): Notify new observable.
7670 * tui/tui-hooks.c (tui_redisplay_source): New function.
7671 (tui_attach_detach_observers): Attach or detach
7672 tui_redisplay_source.
7673 * observable.h (source_styling_changed): New observable.
7674 * observable.c: Define source_styling_changed observable.
7675
a068643d
TT
76762019-03-13 Tom Tromey <tromey@adacore.com>
7677
7678 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7679 (i386_gnu_nat_target::store_registers): Update.
7680 * target-debug.h (target_debug_print_std_string): New macro.
7681 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7682 * windows-tdep.c (display_one_tib): Update.
7683 * tui/tui-stack.c (tui_make_status_line): Update.
7684 * top.c (print_inferior_quit_action): Update.
7685 * thread.c (thr_try_catch_cmd): Update.
7686 (add_thread_with_info): Update.
7687 (thread_target_id_str): Update.
7688 (thr_try_catch_cmd): Update.
7689 (thread_command): Update.
7690 (thread_find_command): Update.
7691 * record-btrace.c (record_btrace_target::info_record)
7692 (record_btrace_resume_thread, record_btrace_target::resume)
7693 (record_btrace_cancel_resume, record_btrace_step_thread)
7694 (record_btrace_target::wait, record_btrace_target::wait)
7695 (record_btrace_target::wait, record_btrace_target::stop): Update.
7696 * progspace.c (print_program_space): Update.
7697 * process-stratum-target.c
7698 (process_stratum_target::thread_address_space): Update.
7699 * linux-fork.c (linux_fork_mourn_inferior)
7700 (detach_checkpoint_command, info_checkpoints_command)
7701 (linux_fork_context): Update.
7702 (linux_fork_detach): Update.
7703 (class scoped_switch_fork_info): Update.
7704 (delete_checkpoint_command): Update.
7705 * infrun.c (follow_fork_inferior): Update.
7706 (follow_fork_inferior): Update.
7707 (proceed_after_vfork_done): Update.
7708 (handle_vfork_child_exec_or_exit): Update.
7709 (follow_exec): Update.
7710 (displaced_step_prepare_throw): Update.
7711 (displaced_step_restore): Update.
7712 (start_step_over): Update.
7713 (resume_1): Update.
7714 (clear_proceed_status_thread): Update.
7715 (proceed): Update.
7716 (print_target_wait_results): Update.
7717 (do_target_wait): Update.
7718 (context_switch): Update.
7719 (stop_all_threads): Update.
7720 (restart_threads): Update.
7721 (finish_step_over): Update.
7722 (handle_signal_stop): Update.
7723 (switch_back_to_stepped_thread): Update.
7724 (keep_going_pass_signal): Update.
7725 (print_exited_reason): Update.
7726 (normal_stop): Update.
7727 * inferior.c (inferior_pid_to_str): Change return type.
7728 (print_selected_inferior): Update.
7729 (add_inferior): Update.
7730 (detach_inferior): Update.
7731 * dummy-frame.c (fprint_dummy_frames): Update.
7732 * dcache.c (dcache_info_1): Update.
7733 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7734 (btrace_fetch, btrace_clear): Update.
7735 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7736 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7737 type.
7738 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7739 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7740 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7741 * gdbarch.c, gdbarch.h: Rebuild.
7742 * gdbarch.sh (core_pid_to_str): Change return type.
7743 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7744 return type.
7745 (windows_nat_target::pid_to_str): Change return type.
7746 (windows_delete_thread): Update.
7747 (windows_nat_target::attach): Update.
7748 (windows_nat_target::files_info): Update.
7749 * target-delegates.c: Rebuild.
7750 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7751 return type.
7752 (sol_thread_target::pid_to_str): Change return type.
7753 * remote.c (class remote_target) <pid_to_str>: Change return
7754 type.
7755 (remote_target::pid_to_str): Change return type.
7756 (extended_remote_target::attach, remote_target::remote_stop_ns)
7757 (remote_target::remote_notif_remove_queued_reply)
7758 (remote_target::push_stop_reply, remote_target::disable_btrace):
7759 Update.
7760 (extended_remote_target::attach): Update.
7761 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7762 type.
7763 (gdbsim_target::pid_to_str): Change return type.
7764 * ravenscar-thread.c (struct ravenscar_thread_target)
7765 <pid_to_str>: Change return type.
7766 (ravenscar_thread_target::pid_to_str): Change return type.
7767 * procfs.c (class procfs_target) <pid_to_str>: Change return
7768 type.
7769 (procfs_target::pid_to_str): Change return type.
7770 (procfs_target::attach): Update.
7771 (procfs_target::detach): Update.
7772 (procfs_target::fetch_registers): Update.
7773 (procfs_target::store_registers): Update.
7774 (procfs_target::wait): Update.
7775 (procfs_target::files_info): Update.
7776 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7777 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7778 return type.
7779 (nto_procfs_target::pid_to_str): Change return type.
7780 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7781 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7782 return type.
7783 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7784 (exit_lwp): Update.
7785 (attach_proc_task_lwp_callback, get_detach_signal)
7786 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7787 (linux_nat_target::resume, wait_lwp, stop_callback)
7788 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7789 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7790 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7791 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7792 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7793 type.
7794 (inf_ptrace_target::attach): Update.
7795 (inf_ptrace_target::files_info): Update.
7796 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7797 type.
7798 (go32_nat_target::pid_to_str): Change return type.
7799 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7800 (gnu_nat_target::wait): Update.
7801 (gnu_nat_target::wait): Update.
7802 (gnu_nat_target::resume): Update.
7803 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7804 (fbsd_nat_target::wait): Update.
7805 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7806 type.
7807 (darwin_nat_target::attach): Update.
7808 * corelow.c (class core_target) <pid_to_str>: Change return type.
7809 (core_target::pid_to_str): Change return type.
7810 * target.c (normal_pid_to_str): Change return type.
7811 (default_pid_to_str): Likewise.
7812 (target_pid_to_str): Change return type.
7813 (target_translate_tls_address): Update.
7814 (target_announce_detach): Update.
7815 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7816 return type.
7817 (bsd_uthread_target::pid_to_str): Change return type.
7818 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7819 type.
7820 (bsd_kvm_target::pid_to_str): Change return type.
7821 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7822 return type.
7823 (aix_thread_target::pid_to_str): Change return type.
7824 * target.h (struct target_ops) <pid_to_str>: Change return type.
7825 (target_pid_to_str, normal_pid_to_str): Likewise.
7826 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7827 type.
7828 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7829 type.
7830 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7831 return type.
7832 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7833 type.
7834 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7835 type.
7836 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7837 return type.
7838
b4be1b06
SM
78392019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7840
7841 * NEWS: Mention that the new default MI version is 3. Mention
7842 changes to the output of commands and events that deal with
7843 multi-location breakpoints.
7844 * breakpoint.c: Include "mi/mi-out.h".
7845 (print_one_breakpoint): Change output syntax if using MI version
7846 >= 3.
7847 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7848 New.
7849 (mi_multi_location_breakpoint_output_fixed): New.
7850 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7851 (mi_cmd_fix_multi_location_breakpoint_output): New.
7852 (mi_multi_location_breakpoint_output_fixed): New.
7853 * mi/mi-cmds.c (mi_cmds): Register command
7854 -fix-multi-location-breakpoint-output.
7855 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7856 interpreter "mi".
7857
8e5e5494
SM
78582019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7859
7860 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7861 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7862 instantiate mi_ui_out based on interpreter name.
7863 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7864 * mi/mi-main.c (mi_load_progress): Likewise.
7865
197df35e
JB
78662019-03-12 John Baldwin <jhb@FreeBSD.org>
7867
7868 * NEWS: Combine separate "New targets" sections for 8.3.
7869
8399425f
JB
78702019-03-12 John Baldwin <jhb@FreeBSD.org>
7871
7872 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7873 (ppcfbsd_init_abi): Install gdbarch
7874 "fetch_tls_load_module_address" and "get_thread_local_address"
7875 methods.
7876
b0f87ed0
JB
78772019-03-12 John Baldwin <jhb@FreeBSD.org>
7878
7879 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7880 (riscv_fbsd_init_abi): Install gdbarch
7881 "fetch_tls_load_module_address" and "get_thread_local_address"
7882 methods.
7883
ce25aa57
JB
78842019-03-12 John Baldwin <jhb@FreeBSD.org>
7885
7886 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7887 (i386fbsd_init_abi): Install gdbarch
7888 "fetch_tls_load_module_address" and "get_thread_local_address"
7889 methods.
7890
f5424cfa
JB
78912019-03-12 John Baldwin <jhb@FreeBSD.org>
7892
7893 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7894 (amd64fbsd_init_abi): Install gdbarch
7895 "fetch_tls_load_module_address" and "get_thread_local_address"
7896 methods.
7897
945f3901
JB
78982019-03-12 John Baldwin <jhb@FreeBSD.org>
7899
7900 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7901 (struct fbsd_pspace_data): New type.
7902 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7903 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7904 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7905 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7906 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7907
ef0bd204
JB
79082019-03-12 John Baldwin <jhb@FreeBSD.org>
7909
7910 * gdbtypes.c (lookup_struct_elt): New function.
7911 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7912 * gdbtypes.h (struct struct_elt): New type.
7913 (lookup_struct_elt): New prototype.
7914
36c53a02
JB
79152019-03-12 John Baldwin <jhb@FreeBSD.org>
7916
7917 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7918 remove disabled code block.
7919
6e056c81
JB
79202019-03-12 John Baldwin <jhb@FreeBSD.org>
7921
7922 * gdbarch.sh (get_thread_local_address): New method.
7923 * gdbarch.h, gdbarch.c: Regenerate.
7924 * target.c (target_translate_tls_address): Use
7925 gdbarch_get_thread_local_address if present instead of
7926 target::get_thread_local_address.
7927
cd250a18
JB
79282019-03-12 John Baldwin <jhb@FreeBSD.org>
7929
7930 * target.h (target::get_thread_local_address): Update comment.
7931
df22c1e5
JB
79322019-03-12 John Baldwin <jhb@FreeBSD.org>
7933
7934 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7935 objfile->separate_debug_objfile_backlink if not NULL.
7936
dd6876c9
JB
79372019-03-12 John Baldwin <jhb@FreeBSD.org>
7938
7939 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7940 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7941 (amd64bsd_store_inferior_registers): Likewise.
7942 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7943 Enable segment base registers.
7944 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7945 PT_GETFSBASE and PT_GETGSBASE.
7946 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7947 PT_SETGSBASE.
7948 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7949 segment base registers.
7950 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7951
1163a4b7
JB
79522019-03-12 John Baldwin <jhb@FreeBSD.org>
7953
7954 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7955 Update calls to i386_target_description to add 'segments'
7956 parameter.
7957 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7958 add segment base registers.
7959 * arch/i386.c (i386_create_target_description): Add 'segments'
7960 parameter to enable segment base registers.
7961 * arch/i386.h (i386_create_target_description): Likewise.
7962 * features/i386/32bit-segments.xml: New file.
7963 * features/i386/32bit-segments.c: Generate.
7964 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7965 call to i386_target_description to add 'segments' parameter.
7966 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7967 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7968 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7969 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
7970 if feature is present.
7971 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
7972 Add 'segments' parameter to call to i386_target_description.
7973 (i386_target_description): Add 'segments' parameter to enable
7974 segment base registers.
7975 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
7976 to call to i386_target_description.
7977 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
7978 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
7979 Define I386_NUM_REGS.
7980 (i386_target_description): Add 'segments' parameter to enable
7981 segment base registers.
7982
3a350822
EZ
79832019-03-12 Eli Zaretskii <eliz@gnu.org>
7984
7985 PR/24325
7986 * source-cache.c: #undef open and close, to avoid unresolved
7987 externals during linking.
7988
ffdd69cf
TT
79892019-03-12 Tom Tromey <tromey@adacore.com>
7990
7991 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
7992 const. Add initializers.
7993 (_initialize_remote): Don't initialize ptid globals.
7994
ec148c57
PA
79952019-03-12 Pedro Alves <palves@redhat.com>
7996
7997 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
7998
32764270
PA
79992019-03-12 Pedro Alves <palves@redhat.com>
8000
8001 * cp-name-parser.y (main): Remove unused 'len' variable.
8002
17547186
TT
80032019-03-12 Tom Tromey <tromey@adacore.com>
8004
8005 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8006 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8007
d3a70e03
TT
80082019-03-12 Tom Tromey <tromey@adacore.com>
8009
8010 * linux-nat.c (iterate_over_lwps): Update.
8011 (stop_callback): Remove parameter.
8012 (stop_wait_callback, detach_callback, resume_set_callback)
8013 (select_singlestep_lwp_callback, set_ignore_sigint)
8014 (status_callback, resumed_callback, resume_clear_callback)
8015 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8016 data parameter.
8017 (linux_nat_target::detach, linux_nat_target::resume)
8018 (linux_stop_and_wait_all_lwps, select_event_lwp)
8019 (linux_nat_filter_event, linux_nat_wait_1)
8020 (linux_nat_target::kill, linux_nat_target::stop)
8021 (linux_nat_target::stop): Update.
8022 (linux_nat_resume_callback): Change type.
8023 (resume_stopped_resumed_lwps, count_events_callback)
8024 (select_event_lwp_callback): Likewise.
8025 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8026 * arm-linux-nat.c (struct update_registers_data): Remove.
8027 (update_registers_callback): Change type.
8028 (arm_linux_insert_hw_breakpoint1): Update.
8029 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8030 parameter.
8031 (x86_linux_dr_set_addr): Update.
8032 (x86_linux_dr_set_control): Update.
8033 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8034 (iterate_over_lwps): Use gdb::function_view.
8035 * nat/aarch64-linux-hw-point.c (struct
8036 aarch64_dr_update_callback_param): Remove.
8037 (debug_reg_change_callback): Change type.
8038 (aarch64_notify_debug_reg_change): Update.
8039 * s390-linux-nat.c (s390_refresh_per_info): Update.
8040
82cb27ff
TT
80412019-03-11 Tom Tromey <tromey@adacore.com>
8042
8043 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8044 redundant assignment to "this_cu".
8045
568c0683
SM
80462019-03-08 Simon Marchi <simon.marchi@efficios.com>
8047
8048 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8049
f09ce22d
SM
80502019-03-08 Simon Marchi <simon.marchi@efficios.com>
8051
8052 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8053 from...
8054 (rank_one_type): ... this.
8055
595f96a9
SM
80562019-03-08 Simon Marchi <simon.marchi@efficios.com>
8057
8058 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8059 from...
8060 (rank_one_type): ... this.
8061
2598a94b
SM
80622019-03-08 Simon Marchi <simon.marchi@efficios.com>
8063
8064 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8065 from...
8066 (rank_one_type): ... this.
8067
7f17b20d
SM
80682019-03-08 Simon Marchi <simon.marchi@efficios.com>
8069
8070 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8071 from...
8072 (rank_one_type): ... this.
8073
2c509035
SM
80742019-03-08 Simon Marchi <simon.marchi@efficios.com>
8075
8076 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8077 from...
8078 (rank_one_type): ... this.
8079
0dd322dc
SM
80802019-03-08 Simon Marchi <simon.marchi@efficios.com>
8081
8082 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8083 from...
8084 (rank_one_type): ... this.
8085
41ea4728
SM
80862019-03-08 Simon Marchi <simon.marchi@efficios.com>
8087
8088 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8089 from...
8090 (rank_one_type): ... this.
8091
793cd1d2
SM
80922019-03-08 Simon Marchi <simon.marchi@efficios.com>
8093
8094 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8095 from...
8096 (rank_one_type): ... this.
8097
34910087
SM
80982019-03-08 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8101 from...
8102 (rank_one_type): ... this.
8103
f1f832d6
SM
81042019-03-08 Simon Marchi <simon.marchi@efficios.com>
8105
8106 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8107 from...
8108 (rank_one_type): ... this.
8109
b9f4512f
SM
81102019-03-08 Simon Marchi <simon.marchi@efficios.com>
8111
8112 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8113 from...
8114 (rank_one_type): ... this.
8115
9293fc63
SM
81162019-03-08 Simon Marchi <simon.marchi@efficios.com>
8117
8118 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8119 from...
8120 (rank_one_type): ... this.
8121
e3abbe7e
PW
81222019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8123
8124 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8125 inferior-events' shows the example events.
8126
e4adb939
EZ
81272019-03-08 Eli Zaretskii <eliz@gnu.org>
8128
8129 Support styling on native MS-Windows console
8130
8131 PR/24315
8132 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8133 on MS-Windows if $TERM is not defined.
8134
8135 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8136
8137 * posix-hdep.c (gdb_console_fputs):
8138 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8139 functions.
8140 * ui-file.h (gdb_console_fputs): Add prototype.
8141
8142 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8143 back to fputs only if the former returns zero.
8144
25629dfd
TT
81452019-03-07 Tom Tromey <tom@tromey.com>
8146
8147 * symmisc.c (print_symbol_bcache_statistics): Update.
8148 (print_objfile_statistics): Update.
8149 * symfile.c (allocate_symtab): Update.
8150 * stabsread.c: Don't include bcache.h.
8151 * psymtab.h (struct psymbol_bcache): Don't declare.
8152 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8153 (psymbol_bcache_init, psymbol_bcache_free)
8154 (psymbol_bcache_get_bcache): Don't declare.
8155 * psymtab.c (struct psymbol_bcache): Remove.
8156 (psymtab_storage::psymtab_storage): Update.
8157 (psymtab_storage::~psymtab_storage): Update.
8158 (psymbol_bcache_init, psymbol_bcache_free)
8159 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8160 (add_psymbol_to_bcache): Update.
8161 (allocate_psymtab): Update.
8162 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8163 macro_cache>: No longer pointers.
8164 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8165 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8166 * macrotab.c (macro_bcache): Update.
8167 * macroexp.c: Don't include bcache.h.
8168 * gdbtypes.c (check_types_worklist): Update.
8169 (types_deeply_equal): Remove TRY/CATCH. Update.
8170 * elfread.c (elf_symtab_read): Update.
8171 * dwarf2read.c: Don't include bcache.h.
8172 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8173 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8174 (print_bcache_statistics, bcache_memory_used): Don't declare.
8175 (struct bcache): Move from bcache.c. Add constructor, destructor,
8176 methods. Rename all data members.
8177 * bcache.c (struct bcache): Move to bcache.h.
8178 (bcache::expand_hash_table): Rename from expand_hash_table.
8179 (bcache): Remove.
8180 (bcache::insert): Rename from bcache_full.
8181 (bcache::compare): Rename from bcache_compare.
8182 (bcache_xmalloc): Remove.
8183 (bcache::~bcache): Rename from bcache_xfree.
8184 (bcache::print_statistics): Rename from print_bcache_statistics.
8185 (bcache::memory_used): Rename from bcache_memory_used.
8186
fe726667
PA
81872019-03-07 Pedro Alves <palves@redhat.com>
8188
8189 * infrun.c (normal_stop): Also check for
8190 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8191
7584bb30
AB
81922019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8193
8194 * f-lang.c (value_from_host_double): Moved to...
8195 * value.c (value_from_host_double): ...here.
8196 * value.h (value_from_host_double): Declare.
8197 * guile/scm-math.c (vlscm_convert_typed_number): Use
8198 value_from_host_double.
8199 (vlscm_convert_number): Likewise.
8200 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8201 * python/py-value.c (convert_value_from_python): Likewise.
8202
a7b1986e
TT
82032019-03-06 Tom Tromey <tom@tromey.com>
8204
8205 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8206
0ccf4211
TT
82072019-03-06 Tom Tromey <tom@tromey.com>
8208
8209 * utils.h (free_current_contents): Don't declare.
8210 * utils.c (free_current_contents): Remove.
8211
fe7b42e5
TT
82122019-03-06 Tom Tromey <tom@tromey.com>
8213
8214 * top.c (quit_force): Update.
8215 * main.c (captured_command_loop): Update.
8216 * common/new-op.c (operator new): Update.
8217 * common/common-exceptions.c (struct catcher)
8218 <save_cleanup_chain>: Remove member.
8219 (exceptions_state_mc_init): Update.
8220 (exception_try_scope_entry): Return nullptr.
8221 (exception_try_scope_exit, exception_rethrow)
8222 (throw_exception_sjlj, throw_exception_cxx): Update.
8223 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8224 (all_cleanups, do_cleanups, discard_cleanups)
8225 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8226 (restore_cleanups, restore_final_cleanups): Don't declare.
8227 (do_final_cleanups): Remove parameter.
8228 * common/cleanups.c (cleanup_chain, make_cleanup)
8229 (make_cleanup_dtor, all_cleanups, do_cleanups)
8230 (discard_my_cleanups, discard_cleanups)
8231 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8232 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8233 (null_cleanup): Remove.
8234 (do_final_cleanups): Remove parameter.
8235
c6321f19
TT
82362019-03-06 Tom Tromey <tom@tromey.com>
8237
8238 * remote.c (remote_target::remote_parse_stop_reply): Use
8239 unique_xmalloc_ptr.
8240
61b30099
TT
82412019-03-06 Tom Tromey <tom@tromey.com>
8242
8243 * stabsread.c (struct stabs_field_info): Rename from field_info.
8244 <list, fnlist>: Add initializers.
8245 <obstack>: New member.
8246 (read_member_functions, read_struct_fields, read_baseclasses):
8247 Allocate on obstack. Don't use cleanups.
8248 (read_one_struct_field, read_member_functions, read_struct_fields)
8249 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8250 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8251 (read_struct_type): Update.
8252
6cceac94
TT
82532019-03-06 Tom Tromey <tom@tromey.com>
8254
8255 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8256 * common/filestuff.h (make_cleanup_close): Don't declare.
8257 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8258 Remove.
8259
72412762
TT
82602019-03-06 Tom Tromey <tom@tromey.com>
8261
8262 * solib-aix.c: Use make_scope_exit.
8263
2b6ff1c0
TT
82642019-03-06 Tom Tromey <tom@tromey.com>
8265
8266 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8267 Use make_scope_exit.
8268
d01c5877
TT
82692019-03-06 Tom Tromey <tom@tromey.com>
8270
8271 * solib-svr4.c (disable_probes_interface): Remove parameter.
8272 (svr4_handle_solib_event): Use make_scope_exit.
8273
32603266
TT
82742019-03-06 Tom Tromey <tom@tromey.com>
8275
8276 * remote.c (struct stop_reply_deleter): Remove.
8277 (stop_reply_up): Update.
8278 (struct stop_reply): Derive from notif_event. Don't typedef.
8279 <regcache>: Now a std::vector.
8280 (stop_reply_xfree): Remove.
8281 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8282 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8283 (remote_target::discard_pending_stop_replies): Use delete.
8284 (remote_target::remote_parse_stop_reply): Update.
8285 (remote_target::process_stop_reply): Update.
8286 * remote-notif.h (struct notif_event): Add virtual destructor.
8287 Remove "dtr" member.
8288 (struct notif_client) <alloc_event>: Return a unique_ptr.
8289 (notif_event_xfree): Don't declare.
8290 (notif_event_up): New typedef.
8291 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8292 (notif_event_xfree, do_notif_event_xfree): Remove.
8293 (remote_notif_state_xfree): Update.
8294
9799571e
TT
82952019-03-06 Tom Tromey <tom@tromey.com>
8296
8297 * infrun.c (displaced_step_clear_cleanup): Now a
8298 forward_scope_exit type.
8299 (displaced_step_prepare_throw): Update.
8300 (displaced_step_fixup): Update.
8301
09e3c4ca
TT
83022019-03-06 Tom Tromey <tom@tromey.com>
8303
8304 * inferior.h (class inferior): Update comment.
8305 * gdbthread.h (class thread_info): Update comment.
8306
e2a03548
TT
83072019-03-06 Joel Brobecker <brobecker@adacore.com>
8308 Tom Tromey <tom@tromey.com>
8309
8310 * stabsread.h (struct stab_section_list): Remove.
8311 (coffstab_build_psymtabs): Update.
8312 * dbxread.c (symbuf_sections): Now a std::vector.
8313 (sect_idx): New global.
8314 (fill_symbuf): Update.
8315 (coffstab_build_psymtabs): Change type of stabsects parameter.
8316 Update.
8317 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8318 std::vector.
8319 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8320 (coff_locate_sections): Update.
8321 (coff_symfile_read): Remove cleanups. Update.
8322 (init_stringtab): Add storage parameter.
8323 (free_stringtab, free_stringtab_cleanup): Remove.
8324 (init_lineno): Add storage parameter.
8325 (free_linetab, free_linetab_cleanup): Remove.
8326
b7e60d85
PA
83272019-03-06 Pedro Alves <palves@redhat.com>
8328
8329 * linux-fork.c (fork_info::clobber_regs): Delete.
8330 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8331 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8332 comment. Adjust.
8333 (scoped_switch_fork_info::scoped_switch_fork_info)
8334 (checkpoint_command, linux_fork_context): Adjust
8335 fork_save_infrun_state calls.
8336
e52c971f
PA
83372019-03-06 Pedro Alves <palves@redhat.com>
8338
8339 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8340 (inf_has_multiple_threads): Return 'bool' and rewrite using
8341 inferior_info::threads().
8342
06974e6c
PA
83432019-03-06 Pedro Alves <palves@redhat.com>
8344
8345 * linux-fork.c: Include <list>.
8346 (fork_list): Now a std::list instance.
8347 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8348 (forks_exist_p, find_last_fork): Adjust.
8349 (new_fork): Delete.
8350 (one_fork_p): New.
8351 (add_fork): Adjust.
8352 (free_fork): Delete, folded into fork_info::~fork_info().
8353 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8354 Adjust.
8355 (init_fork_list): Delete.
8356 (linux_fork_killall, linux_fork_mourn_inferior)
8357 (linux_fork_detach, info_checkpoints_command): Adjust.
8358 (_initialize_linux_fork): No longer call init_fork_list.
8359
72f31aea
PA
83602019-03-06 Pedro Alves <palves@redhat.com>
8361
8362 * linux-fork.c (new_fork): New, split out of ...
8363 (add_fork): ... this. Return void. Move "first fork" special
8364 case from here, to ...
8365 (checkpoint_command): ... here.
8366 * linux-linux.h (add_fork): Return void.
8367
efbecbc1
AB
83682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8369
8370 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8371
0841c79a
AB
83722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8373 Chris January <chris.january@arm.com>
8374 David Lecomber <david.lecomber@arm.com>
8375
8376 * f-exp.y: New token, UNOP_INTRINSIC.
8377 (exp): New pattern using UNOP_INTRINSIC token.
8378 (f77_keywords): Add 'abs' keyword.
8379 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8380 (value_from_host_double): New function.
8381 (evaluate_subexp_f): Support UNOP_ABS.
8382
4a270568
AB
83832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8384
8385 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8386 types.
8387
067630bd
AB
83882019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8389
8390 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8391 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8392 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8393
3be47f7a
AB
83942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8395
8396 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8397
4d00f5d8
AB
83982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8399 Chris January <chris.january@arm.com>
8400
8401 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8402 * f-exp.y: Define 'KIND' token.
8403 (exp): New pattern for KIND expressions.
8404 (ptype): Handle types with a kind extension.
8405 (direct_abs_decl): Extend to spot kind extensions.
8406 (f77_keywords): Add 'kind' to the list.
8407 (push_kind_type): New function.
8408 (convert_to_kind_type): New function.
8409 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8410 * parse.c (operator_length_standard): Likewise.
8411 * parser-defs.h (enum type_pieces): Add tp_kind.
8412 * std-operator.def: Add UNOP_KIND.
8413
e454224f
AB
84142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8415
8416 * f-exp.y (f_parse): Set yydebug.
8417
9dad4a58
AB
84182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8419
8420 * f-lang.c (evaluate_subexp_f): New function.
8421 (exp_descriptor_f): New global.
8422 (f_language_defn): Use exp_descriptor_f instead of
8423 exp_descriptor_standard.
8424
c8f91604
AB
84252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8426
8427 * f-exp.y (struct token): Add comments.
8428 (dot_ops): Remove uppercase versions and the end marker.
8429 (f77_keywords): Likewise.
8430 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8431 entries in the dot_ops array are case insensitive, and use
8432 strncasecmp to compare strings. Also some whitespace cleanup in
8433 this area. Similar for the f77_keywords array, except entries in
8434 this list might be case sensitive.
8435
dd9f2c76
AB
84362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8437
8438 * f-exp.y (struct f77_boolean_val): Add comments.
8439 (boolean_values): Remove uppercase versions, and end marker.
8440 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8441 and use strncasecmp to achieve case insensitivity. Additionally,
8442 perform whitespace cleanup around this code.
8443
67a3048c
TT
84442019-03-06 Tom Tromey <tromey@adacore.com>
8445
8446 * remote-sim.c (gdbsim_target_open): Use result of
8447 gdb_argv::release.
8448
aa3cfbda
RB
84492019-03-06 Richard Bunt <richard.bunt@arm.com>
8450 Dirk Schubert <dirk.schubert@arm.com>
8451 Chris January <chris.january@arm.com>
8452
8453 * eval.c (evaluate_subexp_standard): Call Fortran argument
8454 wrapping logic.
8455 * f-lang.c (struct value): A value which can be passed into a
8456 Fortran function call.
8457 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8458 where appropriate.
8459 (struct type): Value ready for a Fortran function call.
8460 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8461 is needed.
8462 * f-lang.h (fortran_argument_convert): Declaration.
8463 (fortran_preserve_arg_pointer): Declaration.
8464 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8465
ea38e5df
TT
84662019-03-05 Tom Tromey <tromey@adacore.com>
8467
8468 * python/py-prettyprint.c (print_string_repr): Remove #if.
8469 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8470
06b5b831
TT
84712019-03-05 Tom Tromey <tromey@adacore.com>
8472
8473 * target.c (the_dummy_target): Move later. Change type to
8474 "dummy_target".
8475 (initialize_targets): Don't initialize the_dummy_target.
8476
edbd9e45
TT
84772019-03-05 Tom Tromey <tromey@adacore.com>
8478
8479 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8480 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8481
c119e040
TT
84822019-03-05 Tom Tromey <tromey@adacore.com>
8483
8484 * windows-nat.c (windows_nat_target::attach)
8485 (windows_nat_target::detach): Don't call gdb_flush.
8486 * valprint.c (generic_val_print, val_print, val_print_string):
8487 Don't call gdb_flush.
8488 * utils.c (defaulted_query): Don't call gdb_flush.
8489 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8490 * target.c (target_announce_detach): Don't call gdb_flush.
8491 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8492 * remote.c (extended_remote_target::attach): Don't call
8493 gdb_flush.
8494 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8495 * printcmd.c (do_examine): Don't call gdb_flush.
8496 (info_display_command): Don't call gdb_flush.
8497 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8498 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8499 * memattr.c (info_mem_command): Don't call gdb_flush.
8500 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8501 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8502 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8503 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8504 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8505 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8506 (gnu_nat_target::detach): Don't call gdb_flush.
8507 * f-valprint.c (f_val_print): Don't call gdb_flush.
8508 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8509 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8510 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8511 gdb_flush.
8512 * c-valprint.c (c_val_print): Don't call gdb_flush.
8513 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8514
895dafa6
TT
85152019-03-05 Tom Tromey <tromey@adacore.com>
8516
8517 * varobj.c (update_dynamic_varobj_children): Update.
8518 (install_default_visualizer): Use reset, not release.
8519 * value.c (set_internalvar): Update.
8520 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8521 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8522 ATTRIBUTE_UNUSED_RESULT.
8523
88a774b9
TT
85242019-03-05 Tom Tromey <tromey@adacore.com>
8525
8526 * remote.c (class scoped_remote_fd) <release>: Add
8527 ATTRIBUTE_UNUSED_RESULT.
8528
4e4a8b93
TT
85292019-03-05 Tom Tromey <tromey@adacore.com>
8530
8531 * macroexp.c (struct macro_buffer) <release>: Add
8532 ATTRIBUTE_UNUSED_RESULT.
8533
083eef1f
TT
85342019-03-05 Tom Tromey <tromey@adacore.com>
8535
8536 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8537 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8538 ATTRIBUTE_UNUSED_RESULT.
8539
3cabd438
TT
85402019-03-05 Tom Tromey <tromey@adacore.com>
8541
8542 * common/scoped_fd.h (class scoped_fd) <release>: Add
8543 ATTRIBUTE_UNUSED_RESULT.
8544
41e3300a
TT
85452019-03-05 Tom Tromey <tromey@adacore.com>
8546
8547 * parser-defs.h (struct parser_state) <release>: Add
8548 ATTRIBUTE_UNUSED_RESULT.
8549
18cb7c9f
TT
85502019-03-05 Tom Tromey <tromey@adacore.com>
8551
8552 * utils.h (class gdb_argv) <release>: Add
8553 ATTRIBUTE_UNUSED_RESULT.
8554 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8555
41fa577f
EZ
85562019-03-02 Eli Zaretskii <eliz@gnu.org>
8557
a6a4b2c6
EZ
8558 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8559 for-loop range, to avoid compiler warnings.
8560
8561 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8562 avoid compiler warnings about unused variables.
8563
742a7df5
EZ
8564 * NEWS: Mention end of support for native debugging on MS-Windows
8565 before XP.
8566
41fa577f
EZ
8567 PR gdb/24292
8568 * common/netstuff.c:
8569 * gdbserver/gdbreplay.c
8570 * gdbserver/remote-utils.c:
8571 * ser-tcp.c:
8572 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8573 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8574 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8575 'getaddrinfo' and 'freeaddrinfo' were not available before
8576 Windows XP, and mingw.org's MinGW headers by default define
8577 _WIN32_WINNT to 0x500.
8578
827f438f
GB
85792019-03-01 Gary Benson <gbenson@redhat.com>
8580
8581 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8582
92137da0
RO
85832019-02-28 Brian Vandenberg <phantall@gmail.com>
8584 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8585
8586 PR gdb/8527
8587 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8588 set_sigint_trap, clear_sigint_trap.
8589
799efbe8
PW
85902019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8591
8592 * target.c (target_detach): Clear the regcache and the
8593 frame cache.
8594
8ed25214
PA
85952019-02-27 Pedro Alves <palves@redhat.com>
8596
8597 * utils.c (set_screen_size): When we cap the height/width sizes,
8598 tweak the corresponding command variable to show "unlimited":
8599
23031e31
SJ
86002019-02-27 Saagar Jha <saagar@saagarjha.com>
8601 Pedro Alves <palves@redhat.com>
8602
8603 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8604 before calling rl_set_screen_size.
8605
6c28e44a
TT
86062019-02-27 Tom Tromey <tromey@adacore.com>
8607
8608 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8609 define.
8610 * python/py-value.c: Remove Python 2.4 workaround.
8611 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8612 workaround.
8613 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8614 Python 2.4 workaround.
8615 * python/python-internal.h: Remove Python 2.4 comment.
8616 (Py_ssize_t): Don't define.
8617 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8618 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8619 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8620 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8621 * python/python.c (do_start_initialization): Remove Python 2.4
8622 workaround.
8623 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8624 (print_children): Remove Python 2.4 workaround.
8625 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8626 workaround.
8627 (CHARBUFFERPROC_NAME): Remove.
8628 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8629 Python 2.4 workaround.
8630
2c3fc25d 86312019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8632
2c3fc25d
KB
8633 * NEWS: Note minimum Python version.
8634
6ca62222
KB
86352019-02-27 Kevin Buettner <kevinb@redhat.com>
8636
8637 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8638 code from these functions. Remove corresponding ifdefs. Use
8639 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8640 Remove gotos and target of gotos.
8641 (infpy_search_memory): Likewise.
8642
f4bc7d2c
AB
86432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8646 (hppa_gdbarch_init): Don't register deleted functions with
8647 gdbarch.
8648
9734a586
AB
86492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8650
8651 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8652 (h8300_unwind_sp): Delete.
8653 (h8300_dummy_id): Delete.
8654 (h8300_gdbarch_init): Don't register deleted functions with
8655 gdbarch.
8656
68b867f3
AB
86572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8658
8659 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8660 (ft32_unwind_pc): Delete.
8661 (ft32_unwind_sp): Delete.
8662 (ft32_gdbarch_init): Don't register deleted functions with
8663 gdbarch.
8664
2fbe7ad0
AB
86652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8666
8667 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8668 (frv_unwind_pc): Delete.
8669 (frv_unwind_sp): Delete.
8670 (frv_gdbarch_init): Don't register deleted functions with
8671 gdbarch.
8672
76055cbe
AB
86732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8674
8675 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8676 (riscv_unwind_pc): Delete.
8677 (riscv_unwind_sp): Delete.
8678 (riscv_gdbarch_init): Don't register deleted functions with
8679 gdbarch.
8680
4133e5a1
AB
86812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8682
8683 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8684 (csky_unwind_pc): Delete.
8685 (csky_unwind_sp): Delete.
8686 (csky_gdbarch_init): Don't register deleted functions with
8687 gdbarch.
8688
8010f576
AB
86892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8690
8691 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8692 (cris_unwind_pc): Delete.
8693 (cris_unwind_sp): Delete.
8694 (cris_gdbarch_init): Don't register deleted functions with
8695 gdbarch.
8696
b56bf084
AB
86972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8698
8699 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8700 (bfin_unwind_pc): Delete.
8701 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8702
a19a650f
AB
87032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8704
8705 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8706 (arm_unwind_pc): Delete.
8707 (arm_unwind_sp): Delete.
8708 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8709
f8278c3c
AB
87102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8711
8712 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8713 (arc_unwind_pc): Delete.
8714 (arc_unwind_sp): Delete.
8715 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8716
480e46cf
AB
87172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8718
8719 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8720 (alpha_unwind_pc): Delete.
8721 (alpha_gdbarch_init): Don't register deleted functions with
8722 gdbarch.
8723
7a995095
AB
87242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8725
8726 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8727 (aarch64_unwind_pc): Delete.
8728 (aarch64_unwind_sp): Delete.
8729 (aarch64_gdbarch_init): Don't register deleted functions with
8730 gdbarch.
8731
bf9a735e
AB
87322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8733
8734 * gdbtypes.c (type_align): Don't consider static members when
8735 computing structure alignment.
8736
5561fc30
AB
87372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8738
8739 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8740 return 0 for other types.
8741 * arch-utils.c (default_type_align): Always return 0.
8742 * gdbarch.h: Regenerate.
8743 * gdbarch.sh (type_align): Extend comment.
8744 * gdbtypes.c (type_align): Add additional comments, always call
8745 gdbarch_type_align before applying the default rules.
8746 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8747 generic code will then apply a suitable default.
8748 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8749 types, return 0 for other types.
8750
9335e75a
JB
87512019-02-27 Joel Brobecker <brobecker@adacore.com>
8752
8753 * NEWS: Create a new section for the next release branch.
8754 Rename the section of the current branch, now that it has
8755 been cut.
8756
3d34d8de
JB
87572019-02-27 Joel Brobecker <brobecker@adacore.com>
8758
8759 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8760 * version.in: Bump version to 8.3.50.DATE-git.
8761
143420fb
SM
87622019-02-26 Simon Marchi <simon.marchi@efficios.com>
8763
8764 * aix-thread.c (ptid_cmp): Remove unused variable.
8765 (get_signaled_thread): Likewise.
8766 (store_regs_user_thread): Likewise.
8767 (store_regs_kernel_thread): Likewise.
8768 (fetch_regs_kernel_thread): Remove shadowed variable.
8769
172fb711
AB
87702019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8771
8772 * features/riscv/32bit-cpu.xml: Add register numbers.
8773 * features/riscv/32bit-fpu.c: Regenerate.
8774 * features/riscv/32bit-fpu.xml: Add register numbers.
8775 * features/riscv/64bit-cpu.xml: Add register numbers.
8776 * features/riscv/64bit-fpu.c: Regenerate.
8777 * features/riscv/64bit-fpu.xml: Add register numbers.
8778
26c89782
KB
87792019-02-26 Kevin Buettner <kevinb@redhat.com>
8780
af54ade9 8781 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
8782 * python/py-value.c (convert_buffer_and_type_to_value): New
8783 function.
8784 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8785 Add support for handling an optional second argument. Call
8786 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
8787 * python/python-internal.h (Py_buffer_deleter): New struct.
8788 (Py_buffer_up): New typedef.
8789
0f58c9e8
JB
87902019-02-25 John Baldwin <jhb@FreeBSD.org>
8791
8792 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8793 instead of releasing ownership.
8794
0a0f4c01
JR
87952019-02-25 Jordan Rupprecht <rupprecht@google.com>
8796
8797 * dwarf2read.c (open_and_init_dwp_file): Call
8798 elf_numsections instead of bfd_count_sections to initialize
8799 dwp_file->num_sections.
8800
cd5a152c
TT
88012019-02-25 Tom Tromey <tromey@adacore.com>
8802
8803 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8804
8a6a8513
SDJ
88052019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8806
8807 * gcore.in: Add '--readnever' option when invoking GDB.
8808
04dcda9c
SM
88092019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8810
8811 * MAINTAINERS: Update my email address.
8812
07bc701d
SM
88132019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8814
8815 * build-id.c (build_id_to_debug_bfd_1): New function.
8816 (build_id_to_debug_bfd): Look for separate debug file in
8817 sysroot.
8818
c6f4a5d0
AB
88192019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8820
8821 * gdbarch.sh: Update the copyright year range that is placed into
8822 generated files.
8823
9600246d
KS
88242019-02-22 Keith Seitz <keiths@redhat.com>
8825
8826 PR symtab/23853
8827 * linespec.c (create_sals_line_offset): Search for the default
8828 symtab's filename instead of its fullname.
8829
7557a514
AH
88302019-02-21 Alan Hayward <alan.hayward@arm.com>
8831
8832 * NEWS: Update style defaults.
8833
ee2bcb0c
AH
88342019-02-21 Alan Hayward <alan.hayward@arm.com>
8835
8836 * main.c (captured_main_1): Disable styling in batch mode.
8837
0c95f9ed
TT
88382019-02-20 Tom Tromey <tom@tromey.com>
8839
8840 * symtab.c (symtab_symbol_info): Fix typos.
8841
c763b894
TT
88422019-02-20 Tom Tromey <tromey@adacore.com>
8843
8844 * findcmd.c (_initialize_mem_search): Use upper case for
8845 metasyntactic variables.
8846
0ef8a082
AH
88472019-02-20 Alan Hayward <alan.hayward@arm.com>
8848
8849 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8850 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8851
6caa91b6
SM
88522019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8853
8854 * top.h (source_file_name): Change to std::string.
8855 * top.c (source_file_name): Likewise.
8856 (command_line_input): Adjust.
8857 * cli/cli-script.c (script_from_file): Adjust.
8858
98814c6c
TT
88592019-02-19 Tom Tromey <tromey@adacore.com>
8860
8861 * ravenscar-thread.c
8862 (ravenscar_thread_target::update_thread_list): Don't call
8863 ada_build_task_list.
8864 * ada-lang.h (ada_build_task_list): Don't declare.
8865 * ada-tasks.c (struct ada_tasks_inferior_data)
8866 <task_list_valid_p>: Now bool.
8867 (read_known_tasks, ada_task_list_changed)
8868 (ada_tasks_invalidate_inferior_data): Update.
8869 (read_known_tasks_array): Return bool.
8870 (read_known_tasks_list): Likewise.
8871 (read_known_tasks): Return void.
8872 (ada_build_task_list): Now static.
8873
70cd633e
AB
88742019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8875
8876 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8877 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8878
040b3e95
PW
88792019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8880
8881 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8882 variant for ada_tasks_pspace_data_handle and
8883 ada_tasks_inferior_data_handle.
8884 (ada_tasks_pspace_data_cleanup): New function.
8885 (ada_tasks_inferior_data_cleanup): New function.
8886
9409233b
TT
88872019-02-17 Tom Tromey <tom@tromey.com>
8888
8889 * macrotab.h (macro_source_fullname): Return a std::string.
8890 * macrotab.c (macro_include, check_for_redefinition)
8891 (macro_undef, macro_lookup_definition, foreach_macro)
8892 (foreach_macro_in_scope): Update.
8893 (macro_source_fullname): Return a std::string.
8894 * macrocmd.c (show_pp_source_pos): Update.
8895
6506371f
TT
88962019-02-17 Tom Tromey <tom@tromey.com>
8897
8898 * macrocmd.c (show_pp_source_pos): Style the file names.
8899
0c820d67
TT
89002019-02-17 Tom Tromey <tom@tromey.com>
8901
8902 PR tui/24197:
8903 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8904
a0087920
TT
89052019-02-17 Tom Tromey <tom@tromey.com>
8906
8907 * ada-lang.c (user_select_syms): Use filtered printing.
8908 * utils.c (wrap_style): New global.
8909 (desired_style): Remove.
8910 (emit_style_escape): Add stream parameter.
8911 (set_output_style, reset_terminal_style, prompt_for_continue):
8912 Update.
8913 (flush_wrap_buffer): Only flush gdb_stdout.
8914 (wrap_here): Set wrap_style.
8915 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8916 treat escape sequences as a character. Change when wrap buffer is
8917 flushed.
8918 (fputs_styled): Do not set the output style when the default is
8919 requested.
8920 * ui-style.h (struct ui_file_style) <is_default>: New method.
8921 * source.c (print_source_lines_base): Emit escape sequences in one
8922 piece.
8923
75ba10dc
JB
89242019-02-17 Joel Brobecker <brobecker@adacore.com>
8925
8926 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8927 integers and enumeration types.
8928
a2cd4f14
JB
89292019-02-17 Joel Brobecker <brobecker@adacore.com>
8930
8931 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8932 instead of lookup_symbol_in_language
8933 (do_exact_match): New function.
8934 (ada_get_symbol_name_matcher): Return do_exact_match when
8935 doing a verbatim match.
8936
485b851b
TT
89372019-02-15 Tom Tromey <tromey@adacore.com>
8938
8939 * ravenscar-thread.c (ravenscar_thread_target::resume)
8940 (ravenscar_thread_target::wait): Special case wildcard requests.
8941
0b790b1e
TT
89422019-02-15 Tom Tromey <tromey@adacore.com>
8943
8944 * ravenscar-thread.c (base_ptid): Remove.
8945 (struct ravenscar_thread_target) <close>: New method.
8946 <m_base_ptid>: New member.
8947 <update_inferior_ptid, active_task, task_is_currently_active,
8948 runtime_initialized>: Declare methods.
8949 <ravenscar_thread_target>: Add constructor.
8950 (ravenscar_thread_target::task_is_currently_active)
8951 (ravenscar_thread_target::update_inferior_ptid)
8952 (ravenscar_runtime_initialized): Rename. Now methods.
8953 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8954 (ravenscar_thread_target::update_thread_list): Update.
8955 (ravenscar_thread_target::active_task): Now method.
8956 (ravenscar_thread_target::store_registers)
8957 (ravenscar_thread_target::prepare_to_store)
8958 (ravenscar_thread_target::prepare_to_store)
8959 (ravenscar_thread_target::mourn_inferior): Update.
8960 (ravenscar_inferior_created): Use "new" to create target.
8961 (ravenscar_thread_target::get_ada_task_ptid): Update.
8962 (_initialize_ravenscar): Don't initialize base_ptid.
8963 (ravenscar_ops): Remove global.
8964
dea57a62
TT
89652019-02-15 Tom Tromey <tromey@adacore.com>
8966
8967 * target.h (push_target): Declare new overload.
8968 * target.c (push_target): New overload, taking an rvalue reference.
8969 * remote.c (remote_target::open_1): Use push_target overload.
8970 * corelow.c (core_target_open): Use push_target overload.
8971
989f3c58
TT
89722019-02-15 Tom Tromey <tromey@adacore.com>
8973
8974 * ravenscar-thread.c (is_ravenscar_task)
8975 (ravenscar_task_is_currently_active): Return bool.
8976 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
8977 (_initialize_ravenscar): Remove "(void)".
8978 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
8979 Return bool.
8980
6cbcc006
TT
89812019-02-15 Tom Tromey <tromey@adacore.com>
8982
8983 * ravenscar-thread.c (ravenscar_runtime_initializer)
8984 (has_ravenscar_runtime, get_running_thread_id)
8985 (ravenscar_thread_target::resume): Fix indentation.
8986
7657f14d
TT
89872019-02-15 Tom Tromey <tromey@adacore.com>
8988
8989 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
8990 from ravenscar_arch_ops.
8991 (sparc_ravenscar_ops::fetch_registers)
8992 (sparc_ravenscar_ops::store_registers): Now methods.
8993 (sparc_ravenscar_prepare_to_store): Remove.
8994 (sparc_ravenscar_ops): Redefine.
8995 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
8996 methods and destructor. Remove members.
8997 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
8998 (ravenscar_thread_target::store_registers)
8999 (ravenscar_thread_target::prepare_to_store): Update.
9000 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9001 Remove.
9002 (struct ppc_ravenscar_powerpc_ops): Derive from
9003 ravenscar_arch_ops.
9004 (ppc_ravenscar_powerpc_ops::fetch_registers)
9005 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9006 (ppc_ravenscar_powerpc_ops): Redefine.
9007 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9008 (ppc_ravenscar_e500_ops::fetch_registers)
9009 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9010 (ppc_ravenscar_e500_ops): Redefine.
9011 * aarch64-ravenscar-thread.c
9012 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9013 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9014 (aarch64_ravenscar_fetch_registers)
9015 (aarch64_ravenscar_store_registers): Now methods.
9016 (aarch64_ravenscar_ops): Redefine.
9017
5b6ea500
TT
90182019-02-15 Tom Tromey <tromey@adacore.com>
9019
9020 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9021 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9022 (ravenscar_thread_target::stopped_by_watchpoint)
9023 (ravenscar_thread_target::stopped_data_address)
9024 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9025
e397fd39
TT
90262019-02-15 Tom Tromey <tromey@adacore.com>
9027
9028 * ravenscar-thread.c: Fix some typos.
9029
cc12f4a8
TT
90302019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9031 Tom Tromey <tromey@adacore.com>
9032
9033 * ada-lang.c (ada_exception_sal): Change addr_string to a
9034 std::string.
9035 (create_ada_exception_catchpoint): Update.
9036
5f486660
TT
90372019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9038 Tom Tromey <tromey@adacore.com>
9039
9040 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9041 (bp_location_ops): Remove.
9042 (base_breakpoint_allocate_location): Update.
9043 (free_bp_location): Update.
9044 * ada-lang.c (class ada_catchpoint_location)
9045 <ada_catchpoint_location>: Remove ops parameter.
9046 (ada_catchpoint_location_dtor): Remove.
9047 (ada_catchpoint_location_ops): Remove.
9048 (allocate_location_exception): Update.
9049 * breakpoint.h (struct bp_location_ops): Remove.
9050 (class bp_location) <bp_location>: Remove bp_location_ops
9051 parameter.
9052 <~bp_location>: Add destructor.
9053 <ops>: Remove.
9054
b671c7fb
TS
90552019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9056 Pedro Alves <palves@redhat.com>
9057
9058 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9059 'PATH_MAX'.
9060
8071c5ce
DM
90612019-02-14 David Michael <fedora.dm0@gmail.com>
9062 Samuel Thibault <samuel.thibault@gnu.org>
9063 Thomas Schwinge <thomas@codesourcery.com>
9064
9065 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9066 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9067
b1041ae0
TS
90682019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9069
924514e1
TS
9070 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9071 (check_empty): Use "const char *".
9072
c29ee8d4
TS
9073 * gnu-nat.c (gnu_nat_target::detach): Instead of
9074 'detach_inferior (pid)' call
9075 'detach_inferior (find_inferior_pid (pid))'.
9076
6c6ef69f
TS
9077 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9078 'nat/fork-inferior.o'.
9079 * gnu-nat.c: #include "nat/fork-inferior.h".
9080
2d0a338c
TS
9081 * gnu-nat.c (gnu_nat_target::detach): Instead of
9082 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9083 * gnu-nat.h: #include "inf-child.h".
9084 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9085 'i386_gnu_nat_target::fetch_registers'.
9086 (gnu_store_registers): Rename/move to
9087 'i386_gnu_nat_target::store_registers'.
9088
cabb5f06
TS
9089 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9090 * gnu-nat.h (mach_thread_info): New function.
9091 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9092
b1041ae0
TS
9093 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9094
2988d01e
KF
90952019-02-14 Frederic Konrad <konrad@adacore.com>
9096
9097 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9098
c559d709
JB
90992019-02-14 Joel Brobecker <brobecker@adacore.com>
9100
9101 * windows-nat.c (windows_add_thread): Add new parameter
9102 "main_thread_p" with default value set to false. Update
9103 function documentation as well as all callers.
9104 (windows_delete_thread): Likewise.
9105 (fake_create_process): Update call to windows_add_thread.
9106 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9107 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9108 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9109 call to windows_delete_thread.
9110
007024cc
SM
91112019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9112
9113 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9114
f62318e9
JB
91152019-02-12 John Baldwin <jhb@FreeBSD.org>
9116
9117 * symfile.c (find_separate_debug_file): Use canonical path of
9118 sysroot with child_path instead of gdb_sysroot if it is valid.
9119
cd4b7848
JB
91202019-02-12 John Baldwin <jhb@FreeBSD.org>
9121
9122 * symfile.c (find_separate_debug_file): Use child_path to
9123 determine if an object file is under a sysroot.
9124
efac4bfe
JB
91252019-02-12 John Baldwin <jhb@FreeBSD.org>
9126
9127 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9128 unittests/child-path-selftests.c.
9129 * common/pathstuff.c (child_path): New function.
9130 * common/pathstuff.h (child_path): New prototype.
9131 * unittests/child-path-selftests.c: New file.
9132
402d2bfe
JB
91332019-02-12 John Baldwin <jhb@FreeBSD.org>
9134
9135 * symfile.c (find_separate_debug_file): Look for separate debug
9136 files in debug directories under the sysroot.
9137
1ed9f74e
PW
91382019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9139
9140 * symtab.h (struct minimal_symbol data_p): New const method.
9141 (struct minimal_symbol text_p): Likewise.
9142 * symtab.c (output_source_filename): Use file name style
9143 to print file name.
9144 (print_symbol_info): Likewise.
9145 (print_msymbol_info): Use address style to print addresses.
9146 Use function name style to print executable text symbols.
9147 (expand_symtab_containing_pc): Use data_p.
9148 (find_pc_sect_compunit_symtab): Likewise.
9149
2636d81d
PW
91502019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9151
9152 * breakpoint.c (describe_other_breakpoints): Use address style
9153 to print addresses.
9154 (say_where): Likewise.
9155
ac8c53cc
PW
91562019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9157
9158 * ada-typeprint.c (print_func_type): Print function name
9159 style to print function name.
9160 * c-typeprint.c (c_print_type_1): Likewise.
9161
ea638c43
AH
91622019-02-11 Alan Hayward <alan.hayward@arm.com>
9163
9164 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9165 for execve.
9166
ab759ca8
PW
91672019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9168
9169 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9170 type_stack.
9171
aff29d1c
JB
91722019-02-10 Joel Brobecker <brobecker@adacore.com>
9173
9174 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9175 TYPE_CODE_REF types.
9176
617126bc
JW
91772019-02-08 Jim Wilson <jimw@sifive.com>
9178
9179 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9180 (riscv_linux_fregset): New.
9181 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9182
46e3ed7f
TT
91832019-02-07 Tom Tromey <tom@tromey.com>
9184
9185 * thread.c (thread_cancel_execution_command): Update.
9186 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9187 methods.
9188 (struct thread_fsm_ops): Remove.
9189 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9190 (thread_fsm_should_stop, thread_fsm_return_value)
9191 (thread_fsm_set_finished, thread_fsm_finished_p)
9192 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9193 Don't declare.
9194 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9195 * infrun.c (clear_proceed_status_thread)
9196 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9197 (print_stop_event): Update.
9198 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9199 Add constructor.
9200 (step_command_fsm_ops): Remove.
9201 (new_step_command_fsm): Remove.
9202 (step_1): Update.
9203 (step_command_fsm::should_stop): Rename from
9204 step_command_fsm_should_stop.
9205 (step_command_fsm::clean_up): Rename from
9206 step_command_fsm_clean_up.
9207 (step_command_fsm::do_async_reply_reason): Rename from
9208 step_command_fsm_async_reply_reason.
9209 (struct until_next_fsm): Inherit from thread_fsm. Add
9210 constructor.
9211 (until_next_fsm_ops): Remove.
9212 (new_until_next_fsm): Remove.
9213 (until_next_fsm::should_stop): Rename from
9214 until_next_fsm_should_stop.
9215 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9216 (until_next_fsm::do_async_reply_reason): Rename from
9217 until_next_fsm_async_reply_reason.
9218 (struct finish_command_fsm): Inherit from thread_fsm. Add
9219 constructor. Change type of breakpoint.
9220 (finish_command_fsm_ops): Remove.
9221 (new_finish_command_fsm): Remove.
9222 (finish_command_fsm::should_stop): Rename from
9223 finish_command_fsm_should_stop.
9224 (finish_command_fsm::clean_up): Rename from
9225 finish_command_fsm_clean_up.
9226 (finish_command_fsm::return_value): Rename from
9227 finish_command_fsm_return_value.
9228 (finish_command_fsm::do_async_reply_reason): Rename from
9229 finish_command_fsm_async_reply_reason.
9230 (finish_command): Update.
9231 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9232 Add constructor.
9233 (call_thread_fsm_ops): Remove.
9234 (call_thread_fsm::call_thread_fsm): Rename from
9235 new_call_thread_fsm.
9236 (call_thread_fsm::should_stop): Rename from
9237 call_thread_fsm_should_stop.
9238 (call_thread_fsm::should_notify_stop): Rename from
9239 call_thread_fsm_should_notify_stop.
9240 (run_inferior_call, call_function_by_hand_dummy): Update.
9241 * cli/cli-interp.c (should_print_stop_to_console): Update.
9242 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9243 Add constructor. Change type of location_breakpoint,
9244 caller_breakpoint.
9245 (until_break_fsm_ops): Remove.
9246 (new_until_break_fsm): Remove.
9247 (until_break_fsm::should_stop): Rename from
9248 until_break_fsm_should_stop.
9249 (until_break_fsm::clean_up): Rename from
9250 until_break_fsm_clean_up.
9251 (until_break_fsm::do_async_reply_reason): Rename from
9252 until_break_fsm_async_reply_reason.
9253 (until_break_command): Update.
9254 * thread-fsm.c: Remove.
9255 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9256
1a5c2598
TT
92572019-02-07 Tom Tromey <tom@tromey.com>
9258
9259 * yy-remap.h: Add include guard.
9260 * xtensa-tdep.h: Add include guard.
9261 * xcoffread.h: Rename include guard.
9262 * varobj-iter.h: Add include guard.
9263 * tui/tui.h: Rename include guard.
9264 * tui/tui-winsource.h: Rename include guard.
9265 * tui/tui-wingeneral.h: Rename include guard.
9266 * tui/tui-windata.h: Rename include guard.
9267 * tui/tui-win.h: Rename include guard.
9268 * tui/tui-stack.h: Rename include guard.
9269 * tui/tui-source.h: Rename include guard.
9270 * tui/tui-regs.h: Rename include guard.
9271 * tui/tui-out.h: Rename include guard.
9272 * tui/tui-layout.h: Rename include guard.
9273 * tui/tui-io.h: Rename include guard.
9274 * tui/tui-hooks.h: Rename include guard.
9275 * tui/tui-file.h: Rename include guard.
9276 * tui/tui-disasm.h: Rename include guard.
9277 * tui/tui-data.h: Rename include guard.
9278 * tui/tui-command.h: Rename include guard.
9279 * tic6x-tdep.h: Add include guard.
9280 * target/waitstatus.h: Rename include guard.
9281 * target/wait.h: Rename include guard.
9282 * target/target.h: Rename include guard.
9283 * target/resume.h: Rename include guard.
9284 * target-float.h: Rename include guard.
9285 * stabsread.h: Add include guard.
9286 * rs6000-tdep.h: Add include guard.
9287 * riscv-fbsd-tdep.h: Add include guard.
9288 * regformats/regdef.h: Rename include guard.
9289 * record.h: Rename include guard.
9290 * python/python.h: Rename include guard.
9291 * python/python-internal.h: Rename include guard.
9292 * python/py-stopevent.h: Rename include guard.
9293 * python/py-ref.h: Rename include guard.
9294 * python/py-record.h: Rename include guard.
9295 * python/py-record-full.h: Rename include guard.
9296 * python/py-record-btrace.h: Rename include guard.
9297 * python/py-instruction.h: Rename include guard.
9298 * python/py-events.h: Rename include guard.
9299 * python/py-event.h: Rename include guard.
9300 * procfs.h: Add include guard.
9301 * proc-utils.h: Add include guard.
9302 * p-lang.h: Add include guard.
9303 * or1k-tdep.h: Rename include guard.
9304 * observable.h: Rename include guard.
9305 * nto-tdep.h: Rename include guard.
9306 * nat/x86-linux.h: Rename include guard.
9307 * nat/x86-linux-dregs.h: Rename include guard.
9308 * nat/x86-gcc-cpuid.h: Add include guard.
9309 * nat/x86-dregs.h: Rename include guard.
9310 * nat/x86-cpuid.h: Rename include guard.
9311 * nat/ppc-linux.h: Rename include guard.
9312 * nat/mips-linux-watch.h: Rename include guard.
9313 * nat/linux-waitpid.h: Rename include guard.
9314 * nat/linux-ptrace.h: Rename include guard.
9315 * nat/linux-procfs.h: Rename include guard.
9316 * nat/linux-osdata.h: Rename include guard.
9317 * nat/linux-nat.h: Rename include guard.
9318 * nat/linux-namespaces.h: Rename include guard.
9319 * nat/linux-btrace.h: Rename include guard.
9320 * nat/glibc_thread_db.h: Rename include guard.
9321 * nat/gdb_thread_db.h: Rename include guard.
9322 * nat/gdb_ptrace.h: Rename include guard.
9323 * nat/fork-inferior.h: Rename include guard.
9324 * nat/amd64-linux-siginfo.h: Rename include guard.
9325 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9326 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9327 * nat/aarch64-linux.h: Rename include guard.
9328 * nat/aarch64-linux-hw-point.h: Rename include guard.
9329 * mn10300-tdep.h: Add include guard.
9330 * mips-linux-tdep.h: Add include guard.
9331 * mi/mi-parse.h: Rename include guard.
9332 * mi/mi-out.h: Rename include guard.
9333 * mi/mi-main.h: Rename include guard.
9334 * mi/mi-interp.h: Rename include guard.
9335 * mi/mi-getopt.h: Rename include guard.
9336 * mi/mi-console.h: Rename include guard.
9337 * mi/mi-common.h: Rename include guard.
9338 * mi/mi-cmds.h: Rename include guard.
9339 * mi/mi-cmd-break.h: Rename include guard.
9340 * m2-lang.h: Add include guard.
9341 * location.h: Rename include guard.
9342 * linux-record.h: Rename include guard.
9343 * linux-nat.h: Add include guard.
9344 * linux-fork.h: Add include guard.
9345 * i386-darwin-tdep.h: Rename include guard.
9346 * hppa-linux-offsets.h: Add include guard.
9347 * guile/guile.h: Rename include guard.
9348 * guile/guile-internal.h: Rename include guard.
9349 * gnu-nat.h: Rename include guard.
9350 * gdb-stabs.h: Rename include guard.
9351 * frv-tdep.h: Add include guard.
9352 * f-lang.h: Add include guard.
9353 * event-loop.h: Add include guard.
9354 * darwin-nat.h: Rename include guard.
9355 * cp-abi.h: Rename include guard.
9356 * config/sparc/nm-sol2.h: Rename include guard.
9357 * config/nm-nto.h: Rename include guard.
9358 * config/nm-linux.h: Add include guard.
9359 * config/i386/nm-i386gnu.h: Rename include guard.
9360 * config/djgpp/nl_types.h: Rename include guard.
9361 * config/djgpp/langinfo.h: Rename include guard.
9362 * compile/gcc-cp-plugin.h: Add include guard.
9363 * compile/gcc-c-plugin.h: Add include guard.
9364 * compile/compile.h: Rename include guard.
9365 * compile/compile-object-run.h: Rename include guard.
9366 * compile/compile-object-load.h: Rename include guard.
9367 * compile/compile-internal.h: Rename include guard.
9368 * compile/compile-cplus.h: Rename include guard.
9369 * compile/compile-c.h: Rename include guard.
9370 * common/xml-utils.h: Rename include guard.
9371 * common/x86-xstate.h: Rename include guard.
9372 * common/version.h: Rename include guard.
9373 * common/vec.h: Rename include guard.
9374 * common/tdesc.h: Rename include guard.
9375 * common/selftest.h: Rename include guard.
9376 * common/scoped_restore.h: Rename include guard.
9377 * common/scoped_mmap.h: Rename include guard.
9378 * common/scoped_fd.h: Rename include guard.
9379 * common/safe-iterator.h: Rename include guard.
9380 * common/run-time-clock.h: Rename include guard.
9381 * common/refcounted-object.h: Rename include guard.
9382 * common/queue.h: Rename include guard.
9383 * common/ptid.h: Rename include guard.
9384 * common/print-utils.h: Rename include guard.
9385 * common/preprocessor.h: Rename include guard.
9386 * common/pathstuff.h: Rename include guard.
9387 * common/observable.h: Rename include guard.
9388 * common/netstuff.h: Rename include guard.
9389 * common/job-control.h: Rename include guard.
9390 * common/host-defs.h: Rename include guard.
9391 * common/gdb_wait.h: Rename include guard.
9392 * common/gdb_vecs.h: Rename include guard.
9393 * common/gdb_unlinker.h: Rename include guard.
9394 * common/gdb_unique_ptr.h: Rename include guard.
9395 * common/gdb_tilde_expand.h: Rename include guard.
9396 * common/gdb_sys_time.h: Rename include guard.
9397 * common/gdb_string_view.h: Rename include guard.
9398 * common/gdb_splay_tree.h: Rename include guard.
9399 * common/gdb_setjmp.h: Rename include guard.
9400 * common/gdb_ref_ptr.h: Rename include guard.
9401 * common/gdb_optional.h: Rename include guard.
9402 * common/gdb_locale.h: Rename include guard.
9403 * common/gdb_assert.h: Rename include guard.
9404 * common/filtered-iterator.h: Rename include guard.
9405 * common/filestuff.h: Rename include guard.
9406 * common/fileio.h: Rename include guard.
9407 * common/environ.h: Rename include guard.
9408 * common/common-utils.h: Rename include guard.
9409 * common/common-types.h: Rename include guard.
9410 * common/common-regcache.h: Rename include guard.
9411 * common/common-inferior.h: Rename include guard.
9412 * common/common-gdbthread.h: Rename include guard.
9413 * common/common-exceptions.h: Rename include guard.
9414 * common/common-defs.h: Rename include guard.
9415 * common/common-debug.h: Rename include guard.
9416 * common/cleanups.h: Rename include guard.
9417 * common/buffer.h: Rename include guard.
9418 * common/btrace-common.h: Rename include guard.
9419 * common/break-common.h: Rename include guard.
9420 * cli/cli-utils.h: Rename include guard.
9421 * cli/cli-style.h: Rename include guard.
9422 * cli/cli-setshow.h: Rename include guard.
9423 * cli/cli-script.h: Rename include guard.
9424 * cli/cli-interp.h: Rename include guard.
9425 * cli/cli-decode.h: Rename include guard.
9426 * cli/cli-cmds.h: Rename include guard.
9427 * charset-list.h: Add include guard.
9428 * buildsym-legacy.h: Rename include guard.
9429 * bfin-tdep.h: Add include guard.
9430 * ax.h: Rename include guard.
9431 * arm-linux-tdep.h: Add include guard.
9432 * arm-fbsd-tdep.h: Add include guard.
9433 * arch/xtensa.h: Rename include guard.
9434 * arch/tic6x.h: Add include guard.
9435 * arch/i386.h: Add include guard.
9436 * arch/arm.h: Rename include guard.
9437 * arch/arm-linux.h: Rename include guard.
9438 * arch/arm-get-next-pcs.h: Rename include guard.
9439 * arch/amd64.h: Add include guard.
9440 * arch/aarch64-insn.h: Rename include guard.
9441 * arch-utils.h: Rename include guard.
9442 * annotate.h: Add include guard.
9443 * amd64-darwin-tdep.h: Rename include guard.
9444 * aarch64-linux-tdep.h: Add include guard.
9445 * aarch64-fbsd-tdep.h: Add include guard.
9446 * aarch32-linux-nat.h: Add include guard.
9447
ab9268d2
PW
94482019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9449
9450 * macrotab.c (macro_define_internal): New function that
9451 factorizes macro_define_object_internal and macro_define_function
9452 code.
9453 (macro_define_object_internal): Use macro_define_internal.
9454 (macro_define_function): Likewise.
9455
bb0da2b4
PW
94562019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9457
9458 * macrocmd.c (extract_identifier): Return
9459 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9460 callers.
9461
424eb552
JB
94622019-02-06 John Baldwin <jhb@FreeBSD.org>
9463
9464 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9465
1688cb29
TT
94662019-02-05 Tom Tromey <tom@tromey.com>
9467
9468 * target.c (target_stack::unpush): Move assertion earlier.
9469
b5eba2d8
TT
94702019-01-30 Tom Tromey <tom@tromey.com>
9471
9472 PR python/23615:
9473 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9474 (gdbpy_parse_and_eval): Likewise.
9475 * python/python-internal.h (gdbpy_allow_threads): New class.
9476
7054e2ff
JB
94772019-01-28 John Baldwin <jhb@FreeBSD.org>
9478
9479 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9480 (aarch64_fbsd_fpregmap): Move earlier.
9481 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9482 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9483 instead of individual calls to trad_frame_set_reg_addr.
9484 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9485 earlier.
9486 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9487 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9488 instead of individual calls to trad_frame_set_reg_addr.
9489
36c25ffa
AH
94902019-01-28 Alan Hayward <alan.hayward@arm.com>
9491
9492 * CONTRIBUTE: Replace contribution list with wiki link.
9493
a0707f3c
TT
94942019-01-25 Tom Tromey <tom@tromey.com>
9495
9496 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9497
0747795c
TT
94982019-01-25 Tom Tromey <tom@tromey.com>
9499
9500 * xtensa-linux-nat.c: Fix common/ includes.
9501 * xml-support.h: Fix common/ includes.
9502 * xml-support.c: Fix common/ includes.
9503 * x86-linux-nat.c: Fix common/ includes.
9504 * windows-nat.c: Fix common/ includes.
9505 * varobj.h: Fix common/ includes.
9506 * varobj.c: Fix common/ includes.
9507 * value.c: Fix common/ includes.
9508 * valops.c: Fix common/ includes.
9509 * utils.c: Fix common/ includes.
9510 * unittests/xml-utils-selftests.c: Fix common/ includes.
9511 * unittests/utils-selftests.c: Fix common/ includes.
9512 * unittests/unpack-selftests.c: Fix common/ includes.
9513 * unittests/tracepoint-selftests.c: Fix common/ includes.
9514 * unittests/style-selftests.c: Fix common/ includes.
9515 * unittests/string_view-selftests.c: Fix common/ includes.
9516 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9517 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9518 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9519 * unittests/rsp-low-selftests.c: Fix common/ includes.
9520 * unittests/parse-connection-spec-selftests.c: Fix common/
9521 includes.
9522 * unittests/optional-selftests.c: Fix common/ includes.
9523 * unittests/offset-type-selftests.c: Fix common/ includes.
9524 * unittests/observable-selftests.c: Fix common/ includes.
9525 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9526 * unittests/memrange-selftests.c: Fix common/ includes.
9527 * unittests/memory-map-selftests.c: Fix common/ includes.
9528 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9529 * unittests/function-view-selftests.c: Fix common/ includes.
9530 * unittests/environ-selftests.c: Fix common/ includes.
9531 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9532 * unittests/common-utils-selftests.c: Fix common/ includes.
9533 * unittests/cli-utils-selftests.c: Fix common/ includes.
9534 * unittests/array-view-selftests.c: Fix common/ includes.
9535 * ui-file.c: Fix common/ includes.
9536 * tui/tui-io.c: Fix common/ includes.
9537 * tracepoint.h: Fix common/ includes.
9538 * tracepoint.c: Fix common/ includes.
9539 * tracefile-tfile.c: Fix common/ includes.
9540 * top.h: Fix common/ includes.
9541 * top.c: Fix common/ includes.
9542 * thread.c: Fix common/ includes.
9543 * target/waitstatus.h: Fix common/ includes.
9544 * target/waitstatus.c: Fix common/ includes.
9545 * target.h: Fix common/ includes.
9546 * target.c: Fix common/ includes.
9547 * target-memory.c: Fix common/ includes.
9548 * target-descriptions.c: Fix common/ includes.
9549 * symtab.h: Fix common/ includes.
9550 * symfile.c: Fix common/ includes.
9551 * stap-probe.c: Fix common/ includes.
9552 * spu-linux-nat.c: Fix common/ includes.
9553 * sparc-nat.c: Fix common/ includes.
9554 * source.c: Fix common/ includes.
9555 * solib.c: Fix common/ includes.
9556 * solib-target.c: Fix common/ includes.
9557 * ser-unix.c: Fix common/ includes.
9558 * ser-tcp.c: Fix common/ includes.
9559 * ser-pipe.c: Fix common/ includes.
9560 * ser-base.c: Fix common/ includes.
9561 * selftest-arch.c: Fix common/ includes.
9562 * s12z-tdep.c: Fix common/ includes.
9563 * rust-exp.y: Fix common/ includes.
9564 * rs6000-aix-tdep.c: Fix common/ includes.
9565 * riscv-tdep.c: Fix common/ includes.
9566 * remote.c: Fix common/ includes.
9567 * remote-notif.h: Fix common/ includes.
9568 * remote-fileio.h: Fix common/ includes.
9569 * remote-fileio.c: Fix common/ includes.
9570 * regcache.h: Fix common/ includes.
9571 * regcache.c: Fix common/ includes.
9572 * record-btrace.c: Fix common/ includes.
9573 * python/python.c: Fix common/ includes.
9574 * python/py-type.c: Fix common/ includes.
9575 * python/py-inferior.c: Fix common/ includes.
9576 * progspace.h: Fix common/ includes.
9577 * producer.c: Fix common/ includes.
9578 * procfs.c: Fix common/ includes.
9579 * proc-api.c: Fix common/ includes.
9580 * printcmd.c: Fix common/ includes.
9581 * ppc-linux-nat.c: Fix common/ includes.
9582 * parser-defs.h: Fix common/ includes.
9583 * osdata.c: Fix common/ includes.
9584 * obsd-nat.c: Fix common/ includes.
9585 * nat/x86-linux.c: Fix common/ includes.
9586 * nat/x86-linux-dregs.c: Fix common/ includes.
9587 * nat/x86-dregs.h: Fix common/ includes.
9588 * nat/x86-dregs.c: Fix common/ includes.
9589 * nat/ppc-linux.c: Fix common/ includes.
9590 * nat/mips-linux-watch.h: Fix common/ includes.
9591 * nat/mips-linux-watch.c: Fix common/ includes.
9592 * nat/linux-waitpid.c: Fix common/ includes.
9593 * nat/linux-ptrace.h: Fix common/ includes.
9594 * nat/linux-ptrace.c: Fix common/ includes.
9595 * nat/linux-procfs.c: Fix common/ includes.
9596 * nat/linux-personality.c: Fix common/ includes.
9597 * nat/linux-osdata.c: Fix common/ includes.
9598 * nat/linux-namespaces.c: Fix common/ includes.
9599 * nat/linux-btrace.h: Fix common/ includes.
9600 * nat/linux-btrace.c: Fix common/ includes.
9601 * nat/fork-inferior.c: Fix common/ includes.
9602 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9603 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9604 * nat/aarch64-linux.c: Fix common/ includes.
9605 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9606 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9607 * namespace.h: Fix common/ includes.
9608 * mips-linux-tdep.c: Fix common/ includes.
9609 * minsyms.c: Fix common/ includes.
9610 * mi/mi-parse.h: Fix common/ includes.
9611 * mi/mi-main.c: Fix common/ includes.
9612 * mi/mi-cmd-env.c: Fix common/ includes.
9613 * memrange.h: Fix common/ includes.
9614 * memattr.c: Fix common/ includes.
9615 * maint.h: Fix common/ includes.
9616 * maint.c: Fix common/ includes.
9617 * main.c: Fix common/ includes.
9618 * machoread.c: Fix common/ includes.
9619 * location.c: Fix common/ includes.
9620 * linux-thread-db.c: Fix common/ includes.
9621 * linux-nat.c: Fix common/ includes.
9622 * linux-fork.c: Fix common/ includes.
9623 * inline-frame.c: Fix common/ includes.
9624 * infrun.c: Fix common/ includes.
9625 * inflow.c: Fix common/ includes.
9626 * inferior.h: Fix common/ includes.
9627 * inferior.c: Fix common/ includes.
9628 * infcmd.c: Fix common/ includes.
9629 * inf-ptrace.c: Fix common/ includes.
9630 * inf-child.c: Fix common/ includes.
9631 * ia64-linux-nat.c: Fix common/ includes.
9632 * i387-tdep.c: Fix common/ includes.
9633 * i386-tdep.c: Fix common/ includes.
9634 * i386-linux-tdep.c: Fix common/ includes.
9635 * i386-linux-nat.c: Fix common/ includes.
9636 * i386-go32-tdep.c: Fix common/ includes.
9637 * i386-fbsd-tdep.c: Fix common/ includes.
9638 * i386-fbsd-nat.c: Fix common/ includes.
9639 * guile/scm-type.c: Fix common/ includes.
9640 * guile/guile.c: Fix common/ includes.
9641 * go32-nat.c: Fix common/ includes.
9642 * gnu-nat.c: Fix common/ includes.
9643 * gdbthread.h: Fix common/ includes.
9644 * gdbarch-selftests.c: Fix common/ includes.
9645 * gdb_usleep.c: Fix common/ includes.
9646 * gdb_select.h: Fix common/ includes.
9647 * gdb_bfd.c: Fix common/ includes.
9648 * gcore.c: Fix common/ includes.
9649 * fork-child.c: Fix common/ includes.
9650 * findvar.c: Fix common/ includes.
9651 * fbsd-nat.c: Fix common/ includes.
9652 * event-top.c: Fix common/ includes.
9653 * event-loop.c: Fix common/ includes.
9654 * dwarf2read.c: Fix common/ includes.
9655 * dwarf2loc.c: Fix common/ includes.
9656 * dwarf2-frame.c: Fix common/ includes.
9657 * dwarf-index-cache.c: Fix common/ includes.
9658 * dtrace-probe.c: Fix common/ includes.
9659 * disasm-selftests.c: Fix common/ includes.
9660 * defs.h: Fix common/ includes.
9661 * csky-tdep.c: Fix common/ includes.
9662 * cp-valprint.c: Fix common/ includes.
9663 * cp-support.h: Fix common/ includes.
9664 * cp-support.c: Fix common/ includes.
9665 * corelow.c: Fix common/ includes.
9666 * completer.h: Fix common/ includes.
9667 * completer.c: Fix common/ includes.
9668 * compile/compile.c: Fix common/ includes.
9669 * compile/compile-loc2c.c: Fix common/ includes.
9670 * compile/compile-cplus-types.c: Fix common/ includes.
9671 * compile/compile-cplus-symbols.c: Fix common/ includes.
9672 * command.h: Fix common/ includes.
9673 * cli/cli-dump.c: Fix common/ includes.
9674 * cli/cli-cmds.c: Fix common/ includes.
9675 * charset.c: Fix common/ includes.
9676 * build-id.c: Fix common/ includes.
9677 * btrace.h: Fix common/ includes.
9678 * btrace.c: Fix common/ includes.
9679 * breakpoint.h: Fix common/ includes.
9680 * breakpoint.c: Fix common/ includes.
9681 * ax.h:
9682 (enum agent_op): Fix common/ includes.
9683 * ax-general.c (struct aop_map): Fix common/ includes.
9684 * ax-gdb.c: Fix common/ includes.
9685 * auxv.c: Fix common/ includes.
9686 * auto-load.c: Fix common/ includes.
9687 * arm-tdep.c: Fix common/ includes.
9688 * arch/riscv.c: Fix common/ includes.
9689 * arch/ppc-linux-common.c: Fix common/ includes.
9690 * arch/i386.c: Fix common/ includes.
9691 * arch/arm.c: Fix common/ includes.
9692 * arch/arm-linux.c: Fix common/ includes.
9693 * arch/arm-get-next-pcs.c: Fix common/ includes.
9694 * arch/amd64.c: Fix common/ includes.
9695 * arch/aarch64.c: Fix common/ includes.
9696 * arch/aarch64-insn.c: Fix common/ includes.
9697 * arch-utils.c: Fix common/ includes.
9698 * amd64-windows-tdep.c: Fix common/ includes.
9699 * amd64-tdep.c: Fix common/ includes.
9700 * amd64-sol2-tdep.c: Fix common/ includes.
9701 * amd64-obsd-tdep.c: Fix common/ includes.
9702 * amd64-nbsd-tdep.c: Fix common/ includes.
9703 * amd64-linux-tdep.c: Fix common/ includes.
9704 * amd64-linux-nat.c: Fix common/ includes.
9705 * amd64-fbsd-tdep.c: Fix common/ includes.
9706 * amd64-fbsd-nat.c: Fix common/ includes.
9707 * amd64-dicos-tdep.c: Fix common/ includes.
9708 * amd64-darwin-tdep.c: Fix common/ includes.
9709 * agent.c: Fix common/ includes.
9710 * ada-lang.h: Fix common/ includes.
9711 * ada-lang.c: Fix common/ includes.
9712 * aarch64-tdep.c: Fix common/ includes.
9713
2f5c153e
TT
97142019-01-25 Tom Tromey <tom@tromey.com>
9715
9716 * common/create-version.sh: Use common/version.h.
9717
adc6a863
PA
97182019-01-24 Pedro Alves <palves@redhat.com>
9719
9720 * infrun.c (signal_stop, signal_print, signal_program)
9721 (signal_catch, signal_pass): Now arrays instead of pointers.
9722 (update_signals_program_target, do_target_resume)
9723 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9724 * linux-nat.c (linux_nat_target::pass_signals)
9725 (linux_nat_target::create_inferior, linux_nat_target::attach):
9726 Adjust.
9727 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9728 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9729 * procfs.c (procfs_target::pass_signals): Adjust.
9730 * record-full.c (record_full_target::resume): Adjust.
9731 * remote.c (remote_target::pass_signals)
9732 (remote_target::program_signals): Adjust.
9733 * target-debug.h (target_debug_print_signals): Now takes a
9734 gdb::array_view as parameter. Adjust.
9735 * target.h (target_ops) <pass_signals, program_signals>: Replace
9736 pointer and length parameters with gdb::array_view.
9737 (target_pass_signals, target_program_signals): Likewise.
9738 * target-delegates.c: Regenerate.
9739
3046d67a
PA
97402019-01-24 Pedro Alves <palves@redhat.com>
9741
9742 * common/forward-scope-exit.h
9743 (forward_scope_exit::forward_scope_exit): Pass arguments to
9744 m_bind_function directly, instead of creating a std::bind and
9745 copying that.
9746
353229bf
AH
97472019-01-24 Alan Hayward <alan.hayward@arm.com>
9748
9749 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9750 for static members.
9751 (pass_in_v_vfp_candidate): Likewise.
9752
311dc83a
TT
97532019-01-23 Tom Tromey <tom@tromey.com>
9754 Pedro Alves <palves@redhat.com>
9755
9756 * regcache.c (class regcache_invalidator): Remove.
9757 (regcache::raw_write): Use make_scope_exit.
9758
296bd123
TT
97592019-01-23 Tom Tromey <tom@tromey.com>
9760
9761 * ui-out.h (class ui_out_emit_type): Update comment.
9762
979a0d13
TT
97632019-01-23 Tom Tromey <tom@tromey.com>
9764
9765 * infrun.c (fetch_inferior_event): Update comment.
9766
d238133d
TT
97672019-01-23 Tom Tromey <tom@tromey.com>
9768 Pedro Alves <palves@redhat.com>
9769
9770 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9771 parameter.
9772 (fetch_inferior_event): Use SCOPE_EXIT.
9773
9774
9885e6bb
TT
97752019-01-23 Tom Tromey <tom@tromey.com>
9776 Pedro Alves <palves@redhat.com>
9777
9778 * infrun.c (disable_thread_events): Delete.
9779 (stop_all_threads): Use SCOPE_EXIT.
9780
286526c1
TT
97812019-01-23 Tom Tromey <tom@tromey.com>
9782 Pedro Alves <palves@redhat.com>
9783
9784 * symfile.c: Include forward-scope-exit.h.
9785 (clear_symtab_users_cleanup): Replace forward declaration with
9786 a FORWARD_SCOPE_EXIT.
9787 (syms_from_objfile_1): Use the forward_scope_exit and
9788 gdb::optional instead of cleanup_function.
9789 (reread_symbols): Use the forward_scope_exit instead of
9790 cleanup_function.
9791 (clear_symtab_users_cleanup): Remove function.
9792
1db93f14
TT
97932019-01-23 Tom Tromey <tom@tromey.com>
9794 Pedro Alves <palves@redhat.com>
9795
9796 * linux-nat.c: Include scope-exit.h.
9797 (cleanup_target_stop): Remove.
9798 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9799 SCOPE_EXIT.
9800
2cc83d1e
TT
98012019-01-23 Tom Tromey <tom@tromey.com>
9802 Pedro Alves <palves@redhat.com>
9803
9804 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9805 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9806
694c6bf5
TT
98072019-01-23 Tom Tromey <tom@tromey.com>
9808 Andrew Burgess <andrew.burgess@embecosm.com>
9809 Pedro Alves <palves@redhat.com>
9810
9811 * infrun.c (fetch_inferior_event): Use scope_exit.
9812 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9813 * top.c (execute_command): Use scope_exit.
9814 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9815 * utils.c (do_bpstat_clear_actions_cleanup)
9816 (make_bpstat_clear_actions_cleanup): Remove.
9817
4c41382a
TT
98182019-01-23 Tom Tromey <tom@tromey.com>
9819 Pedro Alves <palves@redhat.com>
9820
9821 * infrun.c: Include "common/scope-exit.h"
9822 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9823 (wait_for_inferior): Use SCOPE_EXIT.
9824 (fetch_inferior_event): Use scope_exit.
9825
89f8fb50
TT
98262019-01-23 Tom Tromey <tom@tromey.com>
9827 Pedro Alves <palves@redhat.com>
9828
9829 * breakpoint.c (create_breakpoint): Remove cleanup.
9830
5419bdae
TT
98312019-01-23 Tom Tromey <tom@tromey.com>
9832 Andrew Burgess <andrew.burgess@embecosm.com>
9833 Pedro Alves <palves@redhat.com>
9834
e587ef42
PA
98352019-01-23 Pedro Alves <palves@redhat.com>
9836
9837 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9838
77f0e74c
PA
98392019-01-23 Pedro Alves <palves@redhat.com>
9840 Andrew Burgess <andrew.burgess@embecosm.com>
9841
9842 * gdbthread.h: Include "common/forward-scope-exit.h".
9843 (scoped_finish_thread_state): Redefine custom class in terms of
9844 forward_scope_exit.
9845
5b9b3e53
PA
98462019-01-23 Pedro Alves <palves@redhat.com>
9847 Andrew Burgess <andrew.burgess@embecosm.com>
9848
9849 * common/forward-scope-exit.h: New file.
9850
54b65c9b
PA
98512019-01-23 Pedro Alves <palves@redhat.com>
9852 Andrew Burgess <andrew.burgess@embecosm.com>
9853 Tom Tromey <tom@tromey.com>
9854
9855 * common/scope-exit.h: New file.
9856
cf08fb29
PA
98572019-01-23 Pedro Alves <palves@redhat.com>
9858
9859 * common/preprocessor.h (ESC): Rename to ...
9860 (ESC_PARENS): ... this.
9861 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9862 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9863
ae73e2e2
TT
98642019-01-23 Tom Tromey <tom@tromey.com>
9865
9866 * language.h (class scoped_switch_to_sym_language_if_auto):
9867 Initialize m_lang in both cases.
9868
6594e122
AH
98692019-01-23 Alan Hayward <alan.hayward@arm.com>
9870
9871 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9872 with XCNEW.
9873
a7c9855d
TT
98742019-01-22 Tom Tromey <tom@tromey.com>
9875
9876 * corelow.c: Do not include sys/file.h.
9877
93cc1d53
TT
98782019-01-22 Tom Tromey <tom@tromey.com>
9879
9880 * tui/tui-wingeneral.h: Include gdb_curses.h.
9881
38561778
TT
98822019-01-22 Tom Tromey <tom@tromey.com>
9883
9884 * source-cache.h (class source_cache) <get_source_lines,
9885 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9886
37b3ab5b
TT
98872019-01-22 Tom Tromey <tom@tromey.com>
9888
9889 * remote-fileio.h (struct remote_target): Declare.
9890
3fabc016
TT
98912019-01-22 Tom Tromey <tom@tromey.com>
9892
9893 * python/py-arch.c: Do not include py-ref.h.
9894 * python/py-bpevent.c: Do not include py-ref.h.
9895 * python/py-cmd.c: Do not include py-ref.h.
9896 * python/py-continueevent.c: Do not include py-ref.h.
9897 * python/py-event.h: Do not include py-ref.h.
9898 * python/py-evtregistry.c: Do not include py-ref.h.
9899 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9900 * python/py-frame.c: Do not include py-ref.h.
9901 * python/py-framefilter.c: Do not include py-ref.h.
9902 * python/py-function.c: Do not include py-ref.h.
9903 * python/py-infevents.c: Do not include py-ref.h.
9904 * python/py-linetable.c: Do not include py-ref.h.
9905 * python/py-objfile.c: Do not include py-ref.h.
9906 * python/py-param.c: Do not include py-ref.h.
9907 * python/py-prettyprint.c: Do not include py-ref.h.
9908 * python/py-progspace.c: Do not include py-ref.h.
9909 * python/py-symbol.c: Do not include py-ref.h.
9910 * python/py-symtab.c: Do not include py-ref.h.
9911 * python/py-type.c: Do not include py-ref.h.
9912 * python/py-unwind.c: Do not include py-ref.h.
9913 * python/py-utils.c: Do not include py-ref.h.
9914 * python/py-value.c: Do not include py-ref.h.
9915 * python/py-varobj.c: Do not include py-ref.h.
9916 * python/py-xmethods.c: Do not include py-ref.h.
9917 * python/python.c: Do not include py-ref.h.
9918 * varobj.c: Do not include py-ref.h.
9919
6b4d7774
TT
99202019-01-22 Tom Tromey <tom@tromey.com>
9921
9922 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9923 keyword for bcache.
9924
7af7e9b5
TT
99252019-01-22 Tom Tromey <tom@tromey.com>
9926
9927 * compile/compile-cplus-types.c: Remove a comment by #include.
9928
951d1049
TT
99292019-01-22 Tom Tromey <tom@tromey.com>
9930
9931 * compile/gcc-c-plugin.h: Include compile-internal.h.
9932
d65d5705
TT
99332019-01-22 Tom Tromey <tom@tromey.com>
9934
9935 * stabsread.c (EXTERN): Do not define.
9936 (symnum, next_symbol_text_func, processing_gcc_compilation)
9937 (within_function, global_sym_chain, global_stabs)
9938 (previous_stab_code, this_object_header_files)
9939 (n_this_object_header_files)
9940 (n_allocated_this_object_header_files): Define.
9941 * stabsread.h (EXTERN): Never define. Use "extern".
9942
b6fb1ee5
PW
99432019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9944
9945 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9946 history_value.
9947
be6d4f74
TT
99482019-01-21 Tom Tromey <tom@tromey.com>
9949
9950 * ui-out.c: Fix includes.
9951 * tui/tui-source.c: Fix includes.
9952 * target.c: Fix includes.
9953 * remote.c: Fix includes.
9954 * regcache.c: Fix includes.
9955 * python/py-block.c: Fix includes.
9956 * printcmd.c: Fix includes.
9957 * or1k-tdep.c: Fix includes.
9958 * mi/mi-main.c: Fix includes.
9959 * m32r-tdep.c: Fix includes.
9960 * csky-tdep.c: Fix includes.
9961 * compile/compile-cplus-types.c: Fix includes.
9962 * cli/cli-interp.c: Fix includes.
9963
73021deb
AH
99642019-01-21 Alan Hayward <alan.hayward@arm.com>
9965
9966 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9967 for padding.
9968
7932255d
TT
99692019-01-16 Tom Tromey <tom@tromey.com>
9970
9971 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
9972 earlier.
9973 (struct objfile) <msymbols_range>: Move from top level.
9974 <msymbols>: New method.
9975 (class objfile_msymbols): Remove.
9976 * symtab.c (default_collect_symbol_completion_matches_break_on):
9977 Update.
9978 * symmisc.c (dump_msymbols): Update.
9979 * stabsread.c (scan_file_globals): Update.
9980 * objc-lang.c (info_selectors_command, info_classes_command)
9981 (find_methods): Update.
9982 * minsyms.c (find_solib_trampoline_target): Update.
9983 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
9984 * coffread.c (coff_symfile_read): Update.
9985 * ada-lang.c (ada_lookup_simple_minsym)
9986 (ada_collect_symbol_completion_matches): Update.
9987
604b1bfb
TT
99882019-01-16 Tom Tromey <tom@tromey.com>
9989
9990 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
9991 type. Remove no-argument constructor.
9992 <iterator::operator++>: Simplify.
9993 <begin>: Update.
9994 <end>: Use minimal_symbol_count.
9995
f252c6d5
TT
99962019-01-16 Tom Tromey <tom@tromey.com>
9997
9998 * objfiles.h (struct objfile) <psymtabs>: New method.
9999 (class objfile_psymtabs): Remove.
10000 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10001 typedef.
10002 <range>: New method.
10003 (require_partial_symbols): Change return type.
10004 * psymtab.c (require_partial_symbols)
10005 (psym_expand_symtabs_matching): Update.
10006 * mdebugread.c (parse_partial_symbols): Update.
10007 * dbxread.c (dbx_end_psymtab): Update.
10008
b669c953
TT
100092019-01-15 Tom Tromey <tom@tromey.com>
10010
10011 * symtab.c (lookup_objfile_from_block)
10012 (lookup_symbol_in_objfile_symtabs)
10013 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10014 (find_line_symtab, info_sources_command)
10015 (default_collect_symbol_completion_matches_break_on)
10016 (make_source_files_completion_list): Update.
10017 * symmisc.c (print_objfile_statistics, dump_objfile)
10018 (maintenance_print_symbols, maintenance_info_symtabs)
10019 (maintenance_check_symtabs, maintenance_info_line_tables):
10020 Update.
10021 * source.c (select_source_symtab)
10022 (forget_cached_source_info_for_objfile): Update.
10023 * objfiles.h (class objfile_compunits): Remove.
10024 (struct objfile) <compunits_range>: New typedef.
10025 (compunits): New method.
10026 * objfiles.c (objfile_relocate1): Update.
10027 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10028 * maint.c (count_symtabs_and_blocks): Update.
10029 * linespec.c (iterate_over_all_matching_symtabs): Update.
10030 * cp-support.c (add_symbol_overload_list_qualified): Update.
10031 * coffread.c (coff_symtab_read): Update.
10032 * ada-lang.c (add_nonlocal_symbols)
10033 (ada_collect_symbol_completion_matches)
10034 (ada_add_global_exceptions): Update.
10035
7e955d83
TT
100362019-01-15 Tom Tromey <tom@tromey.com>
10037
10038 * progspace.h (program_space) <objfiles_safe_range>: New
10039 typedef.
10040 <objfiles_safe>: New method.
10041 * objfiles.h (class all_objfiles_safe): Remove.
10042 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10043 * jit.c (jit_inferior_exit_hook): Update.
10044
2030c079
TT
100452019-01-17 Tom Tromey <tom@tromey.com>
10046
10047 * progspace.h (program_space) <objfiles_range>: New typedef.
10048 <objfiles>: New method.
10049 <objfiles_head>: Rename from objfiles.
10050 (object_files): Update.
10051 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10052 * guile/scm-pretty-print.c
10053 (ppscm_find_pretty_printer_from_objfiles): Update.
10054 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10055 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10056 Update.
10057 * python/py-progspace.c (pspy_get_objfiles): Update.
10058 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10059 Update.
10060 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10061 (objfpy_lookup_objfile_by_build_id): Update.
10062 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10063 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10064 Update.
10065 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10066 (expand_symtab_containing_pc, lookup_objfile_from_block)
10067 (lookup_static_symbol, basic_lookup_transparent_type)
10068 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10069 (find_line_symtab, info_sources_command)
10070 (default_collect_symbol_completion_matches_break_on)
10071 (make_source_files_completion_list, find_main_name): Update.
10072 * symmisc.c (print_symbol_bcache_statistics)
10073 (print_objfile_statistics, maintenance_print_symbols)
10074 (maintenance_print_msymbols, maintenance_print_objfiles)
10075 (maintenance_info_symtabs, maintenance_check_symtabs)
10076 (maintenance_expand_symtabs, maintenance_info_line_tables):
10077 Update.
10078 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10079 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10080 (map_overlay_command, unmap_overlay_command)
10081 (simple_overlay_update, expand_symtabs_matching)
10082 (map_symbol_filenames): Update.
10083 * symfile-debug.c (set_debug_symfile): Update.
10084 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10085 Update.
10086 * source.c (select_source_symtab, forget_cached_source_info):
10087 Update.
10088 * solib.c (solib_read_symbols): Update.
10089 * solib-spu.c (append_ocl_sos): Update.
10090 * psymtab.c (maintenance_print_psymbols)
10091 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10092 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10093 * printcmd.c (info_symbol_command): Update.
10094 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10095 Update.
10096 * objfiles.h (class all_objfiles): Remove.
10097 * objfiles.c (have_partial_symbols, have_full_symbols)
10098 (have_minimal_symbols, qsort_cmp, update_section_map)
10099 (shared_objfile_contains_address_p)
10100 (default_iterate_over_objfiles_in_search_order): Update.
10101 * objc-lang.c (info_selectors_command, info_classes_command)
10102 (find_methods): Update.
10103 * minsyms.c (find_solib_trampoline_target): Update.
10104 * maint.c (maintenance_info_sections)
10105 (maintenance_translate_address, count_symtabs_and_blocks):
10106 Update.
10107 * main.c (captured_main_1): Update.
10108 * linux-thread-db.c (try_thread_db_load_from_pdir)
10109 (has_libpthread): Update.
10110 * linespec.c (iterate_over_all_matching_symtabs)
10111 (search_minsyms_for_name): Update.
10112 * jit.c (jit_find_objf_with_entry_addr): Update.
10113 * hppa-tdep.c (find_unwind_entry)
10114 (hppa_lookup_stub_minimal_symbol): Update.
10115 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10116 Update.
10117 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10118 (elf_gnu_ifunc_resolve_by_got): Update.
10119 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10120 * dwarf-index-write.c (save_gdb_index_command): Update.
10121 * cp-support.c (add_symbol_overload_list_qualified): Update.
10122 * breakpoint.c (create_overlay_event_breakpoint)
10123 (create_longjmp_master_breakpoint)
10124 (create_std_terminate_master_breakpoint)
10125 (create_exception_master_breakpoint): Update.
10126 * blockframe.c (find_pc_partial_function): Update.
10127 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10128 (ada_collect_symbol_completion_matches)
10129 (ada_add_global_exceptions): Update.
10130
776489e0
TT
101312019-01-17 Tom Tromey <tom@tromey.com>
10132
10133 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10134 declare VEC.
10135 (solib_target_parse_libraries): Change return type.
10136 (library_list_start_segment, library_list_start_section)
10137 (library_list_end_library, library_list_start_library); Update.
10138 (solib_target_free_library_list): Remove.
10139 (solib_target_parse_libraries): Remove cleanup. Change return
10140 type.
10141 (solib_target_current_sos): Update.
10142
6471e7d2
TT
101432019-01-17 Tom Tromey <tromey@bapiya>
10144
10145 * valprint.c: Replace "the the" with "the".
10146 * symtab.c: Replace "the the" with "the".
10147 * solib.c: Replace "the the" with "the".
10148 * solib-dsbt.c: Replace "the the" with "the".
10149 * linespec.c: Replace "the the" with "the".
10150 * dwarf2loc.h: Replace "the the" with "the".
10151 * amd64-windows-tdep.c: Replace "the the" with "the".
10152 * aarch64-tdep.c: Replace "the the" with "the".
10153
c24bdb02
KS
101542019-01-16 Keith Seitz <keiths@redhat.com>
10155
10156 PR gdb/23773
10157 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10158 <builder>: Rename to ..
10159 <m_builder>: ... this and make private.
10160 (dwarf2_cu::get_builder): New method. Change all users of
10161 `builder' to use this method.
10162 (dwarf2_start_symtab): Move to ...
10163 (dwarf2_cu::start_symtab): ... here. Update all callers
10164 (setup_type_unit_groups): Move to ...
10165 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10166 callers.
10167 (dwarf2_cu::reset_builder): New method.
10168 (process_full_compunit, process_full_type_unit): Use
10169 dwarf2_cu::reset_builder.
10170 (follow_die_offset): Record the ancestor CU if it is different
10171 from the followed DIE's CU.
10172 (follow_die_sig_1): Likewise.
10173
8d64371b
TT
101742019-01-15 Tom Tromey <tom@tromey.com>
10175
10176 * remote.c (class remote_state) <buf>: Now a char_vector.
10177 <buf_size>: Remove.
10178 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10179 parameter.
10180 (remote_target::getpkt_or_notif_sane_1)
10181 (remote_target::getpkt_sane)
10182 (remote_target::getpkt_or_notif_sane): Likewise.
10183 (class remote_target) <putpkt>: New overload.
10184 (remote_target::read_frame): Change type of "buf_p". Remove
10185 sizeof_p parameter.
10186 (packet_ok): New overload.
10187 (packet_check_result): New overload.
10188 Update all uses.
10189
bb277751
TT
101902019-01-14 Tom Tromey <tom@tromey.com>
10191
10192 * remote-notif.c (handle_notification, remote_notif_ack)
10193 (remote_notif_parse): Make "buf" const.
10194 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10195 const.
10196 (remote_notif_parse, remote_notif_ack, handle_notification):
10197 Likewise.
10198 * remote.c (remote_notif_stop_parse): Make "buf" const.
10199 (remote_target::remote_parse_stop_reply): Make "buf" const.
10200 (remote_notif_stop_ack): Make "buf" const.
10201
05be00a8
TT
102022019-01-14 Tom Tromey <tom@tromey.com>
10203
10204 * remote.c (remote_console_output): Make parameter const.
10205
491adeca
TT
102062019-01-14 Tom Tromey <tom@tromey.com>
10207
10208 * target-debug.h (target_debug_print_signals): Constify.
10209 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10210 * procfs.c (procfs_target::pass_signals): Update.
10211 * linux-nat.c (linux_nat_target::pass_signals): Update.
10212 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10213 * target-delegates.c: Rebuild.
10214 * remote.c (remote_target::program_signals): Update.
10215 (remote_target::pass_signals): Update.
10216 * target.c (target_pass_signals): Constify argument.
10217 (target_program_signals): Likewise.
10218 * target.h (struct target_ops) <pass_signals, program_signals>:
10219 Constify argument.
10220 (target_pass_signals, target_program_signals): Constify argument.
10221
bbd94648
TT
102222019-01-14 Tom Tromey <tom@tromey.com>
10223
10224 PR tui/28819:
10225 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10226
6f072a10
PFC
102272019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10228
10229 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10230 field.
10231 * rs6000-tdep.c: Include reggroups.h.
10232 (IS_V_ALIAS_PSEUDOREG): Define.
10233 (rs6000_register_name): Return names for the "vX" aliases.
10234 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10235 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10236 aliases. Call default_register_reggroup_p for all other
10237 pseudo-registers.
10238 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10239 New functions.
10240 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10241 Handle "vX" aliases.
10242 (v_alias_pseudo_register_collect): New function.
10243 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10244 (rs6000_gdbarch_init): Initialize "vX" aliases as
10245 pseudo-registers. Restore registration of
10246 rs6000_pseudo_register_reggroup_p with
10247 set_tdesc_pseudo_register_reggroup_p.
10248
1a782351
MF
102492019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10250
10251 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10252 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10253 set_gdbarch_num_pseudo_regs.
10254
d73cff18
PW
102552019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10256
10257 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10258 Remove arg prefixname, add do_set and do_show.
10259 Add member functions set_list and show_list.
10260 * cli/cli-style.c (class cli_style_option): Update accordingly.
10261 (style_set_list): Move to file scope.
10262 (style_show_list): Likewise.
10263 (set_style): Call help_list.
10264 (show_style): Call cmd_show_list.
10265 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10266 Update to use the new macro.
10267
60a90376
JB
102682019-10-12 Joel Brobecker <brobecker@adacore.com>
10269
10270 * ada-lang.c (_initialize_ada_language): Expand the help text
10271 for the "catch exception" command.
10272
9d7c67bf
PW
102732019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10274
10275 * symtab.c (matching_obj_sections): Initialize obj,
10276 declare it closer to its usage.
10277
7cf47dc4
TT
102782019-01-10 Tom Tromey <tom@tromey.com>
10279
10280 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10281 (basic_inf_threads_range): Remove.
10282 (inf_threads_range, inf_non_exited_threads_range)
10283 (safe_inf_threads_range): Use next_adapter.
10284
d3cb6808
KS
102852019-01-10 Keith Seitz <keiths@redhat.com>
10286
10287 PR gdb/23712
10288 PR symtab/23010
10289 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10290 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10291
63a20375
KS
102922019-01-10 Keith Seitz <keiths@redhat.com>
10293
10294 PR gdb/23712
10295 PR symtab/23010
10296 * dictionary.c (pending_to_vector): Remove.
10297 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10298 Remove _1 suffix, replacing functions of the same name. Update
10299 all callers.
10300 (dict_create_hashed, dict_create_hashed_expandable)
10301 (dict_create_linear, dict_create_linear_expandable, dict_free)
10302 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10303 Make functions static.
10304
b026f593
KS
103052019-01-10 Keith Seitz <keiths@redhat.com>
10306
10307 PR gdb/23712
10308 PR symtab/23010
10309 * dictionary.h (struct dictionary): Replace declaration with
10310 multidictionary.
10311 (dict_create_hashed, dict_create_hashed_expandable)
10312 (dict_create_linear, dict_create_linear_expandable)
10313 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10314 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10315 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10316 taking multidictionary argument.
10317 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10318 * block.h (struct block) <dict>: Change to multidictionary
10319 and rename `multidict'.
10320 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10321 symmisc.c: Update all dictionary references to multidictionary.
10322
c7748ee9
KS
103232019-01-10 Keith Seitz <keiths@redhat.com>
10324
10325 PR gdb/23712
10326 PR symtab/23010
10327 * dictionary.c: Include unordered_map.
10328 (pending_to_vector): New function.
10329 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10330 Rewrite the non-"_1" functions to take vector instead
10331 of linked list.
10332 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10333 "new" _1 versions of the same name.
10334 (multidictionary): Define.
10335 (std::hash<enum language): New definition.
10336 (collate_pending_symbols_by_language, mdict_create_hashed)
10337 (mdict_create_hashed_expandable, mdict_create_linear)
10338 (mdict_create_linear_expandable, mdict_free)
10339 (find_language_dictionary, create_new_language_dictionary)
10340 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10341 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10342 (mdict_size, mdict_empty): New functions.
10343 * dictionary.h (mdict_iterator): Define.
10344
67aa1f3c
PA
103452019-01-10 Pedro Alves <palves@redhat.com>
10346
10347 * breakpoint.c (read_uploaded_action)
10348 (create_tracepoint_from_upload): Adjust to use
10349 gdb::unique_xmalloc_ptr.
10350 * ctf.c (ctf_write_uploaded_tp):
10351 (SET_ARRAY_FIELD): Use emplace_back.
10352 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10353 * tracefile-tfile.c (tfile_write_uploaded_tp):
10354 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10355 gdb::unique_xmalloc_ptr.
10356 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10357 at_string, cond_string, cmd_strings>: Replace char pointers
10358 with gdb::unique_xmalloc_ptr.
10359
2f667667
PA
103602019-01-10 Pedro Alves <palves@redhat.com>
10361
10362 * solib-target.c (library_list_start_library): Don't xstrdup name.
10363
36cb7237
PA
103642019-01-10 Pedro Alves <palves@redhat.com>
10365
10366 * mdebugread.c (parse_partial_symbols): Use
10367 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10368
da584958
AB
103692019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10370
10371 * linux-fork.c (scoped_switch_fork_info)
10372 <~scoped_switch_fork_info>: Fix incorrect variable name.
10373
1ef8573c
AB
103742019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10375
10376 * linux-fork.c (scoped_switch_fork_info)
10377 <scoped_switch_fork_info>: Make explicit.
10378 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10379
8d7bcccb
TT
103802019-01-10 Tom Tromey <tom@tromey.com>
10381
10382 * objfiles.h (objfile::reset_psymtabs): Update.
10383 * objfiles.c (objfile::objfile): Update.
10384 * psymtab.h (psymtab_storage::obstack): Update.
10385 (psymtab_storage::m_obstack): Use gdb::optional.
10386 (class psymtab_storage): Update comment. Remove objfile
10387 parameter.
10388 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10389
b596a3c7
TT
103902019-01-10 Tom Tromey <tom@tromey.com>
10391
10392 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10393 <free_psymtabs>: Now private.
10394 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10395 (allocate_psymtab): Use new method.
10396
a9342b62
TT
103972019-01-10 Tom Tromey <tom@tromey.com>
10398
10399 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10400 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10401 * mdebugread.c (parse_partial_symbols): Use
10402 allocate_dependencies.
10403 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10404 allocate_dependencies.
10405 (process_psymtab_comp_unit_reader)
10406 (build_type_psymtab_dependencies): Likewise.
10407 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10408
5af70966
TT
104092019-01-10 Tom Tromey <tom@tromey.com>
10410
10411 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10412 PSYMBOL_SET_LANGUAGE.
10413 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10414
5923a04c
TT
104152019-01-10 Tom Tromey <tom@tromey.com>
10416
10417 * psymtab.h (psymtab_storage::obstack): New method.
10418 <m_obstack>: Rename from obstack; now private.
10419 * psymtab.c (psymtab_storage): Update.
10420 * dwarf2read.c (create_addrmap_from_index)
10421 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10422 Update.
10423
6d6a12bf
TT
104242019-01-10 Tom Tromey <tom@tromey.com>
10425
10426 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10427 * objfiles.h (objfile::reset_psymtabs): New method.
10428
d320c2b5
TT
104292019-01-10 Tom Tromey <tom@tromey.com>
10430
10431 * symmisc.c (print_symbol_bcache_statistics): Update.
10432 (print_objfile_statistics): Update.
10433 * symfile.c (reread_symbols): Update.
10434 * psymtab.h (class psymtab_storage): New.
10435 * psymtab.c (psymtab_storage): New constructor.
10436 (~psymtab_storage): New destructor.
10437 (require_partial_symbols): Update.
10438 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10439 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10440 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10441 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10442 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10443 (start_psymtab_common, end_psymtab_common)
10444 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10445 (allocate_psymtab): Update.
10446 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10447 Update.
10448 (dump_psymtab_addrmap, maintenance_print_psymbols)
10449 (maintenance_check_psymtabs): Update.
10450 (class objfile_psymtabs): Move to objfiles.h.
10451 * psympriv.h (discard_psymtab): Now inline.
10452 (psymtab_discarder::psymtab_discarder): Update.
10453 (psymtab_discarder::~psymtab_discarder): Update.
10454 (ALL_OBJFILE_PSYMTABS): Rewrite.
10455 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10456 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10457 Remove fields.
10458 <partial_symtabs>: New field.
10459 (class objfile_psymtabs): Move from psymtab.h. Update.
10460 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10461 psymbol_cache.
10462 (objfile::~objfile): Don't destroy psymbol_cache.
10463 * mdebugread.c (parse_partial_symbols): Update.
10464 * dwarf2read.c (create_addrmap_from_index)
10465 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10466 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10467 (add_partial_subprogram, dwarf2_ranges_read): Update.
10468 * dwarf-index-write.c (write_address_map)
10469 (write_one_signatured_type, recursively_write_psymbols)
10470 (class debug_names, class debug_names, write_psymtabs_to_index):
10471 Update.
10472
1d94a5a3
TT
104732019-01-10 Tom Tromey <tom@tromey.com>
10474
10475 * symtab.h (SYMBOL_SET_NAMES): Update.
10476 (symbol_set_names): Update.
10477 (MSYMBOL_SET_NAMES): Update.
10478 * symtab.c (symbol_set_names): Change argument to be an
10479 objfile_per_bfd_storage.
10480 * psymtab.c (add_psymbol_to_bcache): Update.
10481 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10482
0f14768a
TT
104832019-01-10 Tom Tromey <tom@tromey.com>
10484
10485 * symtab.c (create_demangled_names_hash): Change argument to be an
10486 objfile_per_bfd_storage.
10487 (symbol_set_names): Update.
10488
6eee24ce
TT
104892019-01-10 Tom Tromey <tom@tromey.com>
10490
10491 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10492 init_psymbol_list.
10493 * psymtab.c (init_psymbol_list): Do nothing if already called.
10494 * psympriv.h (init_psymbol_list): Add comment.
10495 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10496 init_psymbol_list.
10497 * dbxread.c (dbx_symfile_read): Unconditionally call
10498 init_psymbol_list.
10499
75aedd27
TT
105002019-01-10 Tom Tromey <tom@tromey.com>
10501
10502 * xcoffread.c (scan_xcoff_symtab): Update.
10503 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10504 "where".
10505 * mdebugread.c (parse_partial_symbols)
10506 (handle_psymbol_enumerators): Update.
10507 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10508 * dbxread.c (read_dbx_symtab): Update.
10509 * psympriv.h (psymbol_placement): New enum.
10510 (add_psymbol_to_list): Update.
10511
939652a5
TT
105122019-01-10 Tom Tromey <tom@tromey.com>
10513
10514 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10515 static_psymbols parameters.
10516 (scan_xcoff_symtab): Update.
10517 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10518 static_psymbols parameters.
10519 * psympriv.h (start_psymtab_common): Update.
10520 * mdebugread.c (parse_partial_symbols): Update.
10521 * dwarf2read.c (create_partial_symtab): Update.
10522 * dbxread.c (read_dbx_symtab): Update.
10523 (start_psymtab): Remove global_psymbols and static_psymbols
10524 parameters.
10525
baa62830
TT
105262019-01-10 Tom Tromey <tom@tromey.com>
10527
10528 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10529 * psymtab.c (allocate_psymtab): Add comment.
10530 * psympriv.h (allocate_psymtab): Add comment.
10531 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10532 initializations.
10533 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10534
0e8f53ba
TT
105352019-01-10 Tom Tromey <tom@tromey.com>
10536
10537 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10538 Don't declare.
10539 * mipsread.c: Include mdebugread.h.
10540 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10541 Declare.
10542 * elfread.c: Include mdebugread.h.
10543
b22a7c6a
TT
105442019-01-09 Tom Tromey <tom@tromey.com>
10545
10546 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10547 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10548 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10549 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10550 (psym_lookup_symbol, psym_find_last_source_symtab)
10551 (psym_forget_cached_source_info, psym_print_stats)
10552 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10553 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10554 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10555 (psym_find_compunit_symtab_by_address)
10556 (maintenance_print_psymbols, maintenance_info_psymtabs)
10557 (maintenance_check_psymtabs): Use ranged for.
10558 * psymtab.h (class objfile_psymtabs): New.
10559 (require_partial_symbols): Return objfile_psymtabs.
10560 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10561
3b9d3ac2
TT
105622019-01-09 Tom Tromey <tom@tromey.com>
10563
10564 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10565 (find_pc_mapped_section, list_overlays_command)
10566 (map_overlay_command, unmap_overlay_command)
10567 (simple_overlay_update): Use all_objfiles.
10568 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10569 * printcmd.c (info_symbol_command): Use all_objfiles.
10570 * objfiles.h (ALL_OBJSECTIONS): Remove.
10571 * maint.c (maintenance_translate_address): Use all_objfiles.
10572 * gcore.c (gcore_create_callback): Use all_objfiles.
10573 (objfile_find_memory_regions): Likewise.
10574
8b31193a
TT
105752019-01-09 Tom Tromey <tom@tromey.com>
10576
10577 * symtab.c (find_line_symtab, info_sources_command)
10578 (make_source_files_completion_list): Use objfile_compunits.
10579 * source.c (select_source_symtab): Use objfile_compunits.
10580 * objfiles.h (struct objfile): Update comment.
10581 (ALL_OBJFILES): Remove.
10582 (ALL_FILETABS): Remove.
10583 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10584 objfile_compunits.
10585
d5da8b3c
TT
105862019-01-09 Tom Tromey <tom@tromey.com>
10587
10588 * symmisc.c (print_objfile_statistics, dump_objfile)
10589 (maintenance_print_symbols): Use compunit_filetabs.
10590 * source.c (forget_cached_source_info_for_objfile): Use
10591 compunit_filetabs.
10592 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10593 (ALL_FILETABS): Use compunit_filetabs.
10594 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10595 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10596
5accd1a0
TT
105972019-01-09 Tom Tromey <tom@tromey.com>
10598
10599 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10600 (compunit_filetabs): New.
10601 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10602 compunit_filetabs.
10603 (info_sources_command, make_source_files_completion_list): Remove
10604 declaration.
10605 * symmisc.c (print_objfile_statistics, dump_objfile)
10606 (maintenance_print_symbols): Remove declaration.
10607 (maintenance_info_symtabs): Use compunit_filetabs.
10608 (maintenance_info_line_tables): Likewise.
10609 * source.c (select_source_symtab): Change local variable name.
10610 (forget_cached_source_info_for_objfile): Remove declaration.
10611 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10612 * objfiles.c (objfile_relocate1): Remove declaration.
10613 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10614 declaration.
10615 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10616 * coffread.c (coff_symtab_read): Remove declaration.
10617 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10618 compunit_filetabs.
10619
d8aeb77f
TT
106202019-01-09 Tom Tromey <tom@tromey.com>
10621
10622 * symtab.c (lookup_objfile_from_block)
10623 (find_pc_sect_compunit_symtab, search_symbols)
10624 (default_collect_symbol_completion_matches_break_on): Use
10625 objfile_compunits.
10626 * objfiles.h (ALL_COMPUNITS): Remove.
10627 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10628 * cp-support.c (add_symbol_overload_list_qualified): Use
10629 objfile_compunits.
10630 * ada-lang.c (ada_collect_symbol_completion_matches)
10631 (ada_add_global_exceptions): Use objfile_compunits.
10632
592553c4
TT
106332019-01-09 Tom Tromey <tom@tromey.com>
10634
10635 * source.c (select_source_symtab)
10636 (forget_cached_source_info_for_objfile): Remove declaration.
10637 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10638 declaration.
10639 * maint.c (count_symtabs_and_blocks): Remove declaration.
10640 * cp-support.c (add_symbol_overload_list_qualified): Remove
10641 declaration.
10642 * coffread.c (coff_symtab_read): Remove declaration.
10643 * symtab.c (lookup_symbol_in_objfile_symtabs)
10644 (basic_lookup_transparent_type_1): Use objfile_compunits.
10645 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10646 (info_sources_command, search_symbols)
10647 (default_collect_symbol_completion_matches_break_on)
10648 (make_source_files_completion_list): Remove declaration.
10649 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10650 (ada_collect_symbol_completion_matches)
10651 (ada_add_global_exceptions): Remove declaration.
10652 * linespec.c (iterate_over_all_matching_symtabs): Use
10653 objfile_compunits.
10654 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10655 (class objfile_compunits): New.
10656 (ALL_COMPUNITS): Use objfile_compunits.
10657 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10658 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10659 objfile_compunits.
10660 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10661
5325b9bf
TT
106622019-01-09 Tom Tromey <tom@tromey.com>
10663
10664 * symtab.c (search_symbols)
10665 (default_collect_symbol_completion_matches_break_on): Use
10666 objfile_msymbols.
10667 * ada-lang.c (ada_lookup_simple_minsym)
10668 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10669 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10670 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10671 objfile_msymbols.
10672 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10673 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10674 * objc-lang.c (find_methods): Use objfile_msymbols.
10675 (info_selectors_command, info_classes_command): Likewise.
10676 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10677 * objfiles.h (class objfile_msymbols): New.
10678 (ALL_OBJFILE_MSYMBOLS): Remove.
10679 (ALL_MSYMBOLS): Remove.
10680
cac85af2
TT
106812019-01-09 Tom Tromey <tom@tromey.com>
10682
10683 * common/next-iterator.h (next_adapter): Add Iterator template
10684 parameter.
10685 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10686 (class all_objfiles_safe): New.
10687 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10688 * objfiles.c (put_objfile_before): Update comment.
10689 (add_separate_debug_objfile): Likewise.
10690 (free_all_objfiles): Use all_objfiles_safe.
10691 (objfile_purge_solibs): Likewise.
10692
aed57c53
TT
106932019-01-09 Tom Tromey <tom@tromey.com>
10694
10695 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10696 (expand_symtab_containing_pc, lookup_static_symbol)
10697 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10698 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10699 all_objfiles.
10700 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10701 * breakpoint.c (create_overlay_event_breakpoint)
10702 (create_longjmp_master_breakpoint)
10703 (create_std_terminate_master_breakpoint)
10704 (create_exception_master_breakpoint): Use all_objfiles.
10705 * linux-thread-db.c (try_thread_db_load_from_pdir)
10706 (has_libpthread): Use all_objfiles.
10707 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10708 * linespec.c (iterate_over_all_matching_symtabs)
10709 (search_minsyms_for_name): Use all_objfiles.
10710 * maint.c (maintenance_info_sections): Use all_objfiles.
10711 * main.c (captured_main_1): Use all_objfiles.
10712 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10713 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10714 * guile/scm-pretty-print.c
10715 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10716 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10717 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10718 (maintenance_print_msymbols): Use all_objfiles.
10719 * source.c (select_source_symtab): Use all_objfiles.
10720 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10721 * symfile.c (remove_symbol_file_command)
10722 (expand_symtabs_matching, map_symbol_filenames): Use
10723 all_objfiles.
10724 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10725 all_objfiles.
10726 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10727 * objc-lang.c (find_methods): Use all_objfiles.
10728 * objfiles.c (have_partial_symbols, have_full_symbols)
10729 (have_minimal_symbols, qsort_cmp)
10730 (default_iterate_over_objfiles_in_search_order): Use
10731 all_objfiles.
10732 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10733 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10734 (maintenance_check_psymtabs): Use all_objfiles.
10735 (ALL_PSYMTABS): Remove.
10736 * compile/compile-object-run.c (do_module_cleanup): Use
10737 all_objfiles.
10738 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10739 * cp-support.c (add_symbol_overload_list_qualified): Use
10740 all_objfiles.
10741 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10742 Use all_objfiles.
10743 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10744 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10745 all_objfiles.
10746 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10747 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10748 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10749 Uses all_objfiles.
10750 * solib.c (solib_read_symbols): Use all_objfiles
10751
99d89cde
TT
107522019-01-09 Tom Tromey <tom@tromey.com>
10753
10754 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10755 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10756 all_objfiles.
10757 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10758 * symmisc.c (print_symbol_bcache_statistics)
10759 (print_objfile_statistics, maintenance_print_objfiles)
10760 (maintenance_info_symtabs, maintenance_check_symtabs)
10761 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10762 all_objfiles.
10763 * source.c (forget_cached_source_info): Use all_objfiles.
10764 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10765 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10766 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10767 * objfiles.c (update_section_map): Use all_objfiles.
10768 (shared_objfile_contains_address_p): Likewise.
10769 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10770 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10771
21708325
TT
107722019-01-09 Tom Tromey <tom@tromey.com>
10773
10774 * common/next-iterator.h: New file.
10775 * objfiles.h (class all_objfiles): New.
10776 (struct objfile_iterator): New.
10777
669e09f6
PW
107782019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10779
10780 * NEWS: Move the description of the changed "frame", "select-frame",
10781 and "info frame" commands to the Changed commands section.
10782
041be526
SM
107832019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10784
10785 * gdbtypes.c (check_stub_method_group): Remove handling of old
10786 mangling schemes.
10787 * linespec.c (find_methods): Likewise.
10788 * stabsread.c (read_member_functions): Likewise.
10789 * valops.c (search_struct_method): Likewise.
10790 (value_struct_elt_for_reference): Likewise.
10791 * NEWS: Mention this change.
10792
0e2a2133
AB
107932019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10794
10795 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10796 print_source_lines.
10797 * source.c (print_source_lines_base): Update line number check.
10798 (print_source_lines): New function.
10799 (source_lines_range::source_lines_range): New function.
10800 * source.h (class source_lines_range): New class.
10801 (print_source_lines): New declaration.
10802
1055a3b4
PW
108032019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10804
10805 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10806
cfeadda5
TT
108072019-01-08 Tom Tromey <tom@tromey.com>
10808 Simon Marchi <simon.marchi@ericsson.com>
10809
10810 PR gdb/24060
10811 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10812 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10813 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10814 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10815 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10816 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10817
583068ca
AB
108182019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10819
10820 * source.c (select_source_symtab): Move header comment to
10821 declaration in source.h.
10822 (forget_cached_source_info_for_objfile): Likewise.
10823 (forget_cached_source_info): Likewise.
10824 (identify_source_line): Likewise.
10825 * source.h (identify_source_line): Move declaration from symtab.h
10826 and add comment from source.c
10827 (print_source_lines): Likewise.
10828 (forget_cached_source_info_for_objfile): Likewise.
10829 (forget_cached_source_info): Likewise.
10830 (select_source_symtab): Likewise.
10831 (enum print_source_lines_flag): Move definition from symtab.h.
10832 * symtab.h (identify_source_line): Move declaration to source.h.
10833 (print_source_lines): Likewise.
10834 (forget_cached_source_info_for_objfile): Likewise.
10835 (forget_cached_source_info): Likewise.
10836 (select_source_symtab): Likewise.
10837 (enum print_source_lines_flag): Move definition to source.h.
10838 * tui/tui-hooks.c: Add 'source.h' include.
10839
ec98a4ad
AB
108402019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10841
10842 * source.c (print_source_lines_base): Handle requests to print
10843 reverse line number sequences, and guard against empty lines
10844 string.
10845
62ea19c1
AB
108462019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10847
10848 * source.c (print_source_lines_base): Fix skip of '\r' if next
10849 character is '\n'.
10850
9d30e1fd
TT
108512019-01-06 Tom Tromey <tom@tromey.com>
10852
10853 * c-exp.y (struct c_parse_state) <macro_original_text,
10854 expansion_obstack>: New member.
10855 (macro_original_text, expansion_obstack): Remove globals.
10856 (scan_macro_expansion, scanning_macro_expansion)
10857 (finished_macro_expansion): Update.
10858 (scan_macro_cleanup): Remove.
10859 (yylex, c_parse): Update.
10860
c65bac38
TT
108612019-01-06 Tom Tromey <tom@tromey.com>
10862
10863 * c-exp.y (struct c_parse_state) <strings>: New member.
10864 (operator_stoken): Update.
10865
02e12e38
TT
108662019-01-06 Tom Tromey <tom@tromey.com>
10867
10868 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10869 (union type_stack_elt) <typelist_val>: Now a pointer to
10870 std::vector.
10871 (type_stack_cleanup): Don't declare.
10872 (push_typelist): Update.
10873 * parse.c (pop_typelist): Return a std::vector.
10874 (push_typelist): Take a std::vector.
10875 (follow_types): Update. Do not free args.
10876 (type_stack_cleanup): Remove.
10877 * c-exp.y (struct c_parse_state): New.
10878 (cpstate): New global.
10879 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10880 (nonempty_typelist): Update.
10881 (func_mod): Create a new vector.
10882 (c_parse): Create a c_parse_state.
10883 (check_parameter_typelist): Do not delete params.
10884 (function_method): Update. Do not delete type_list.
10885
f097f5ad
TT
108862019-01-06 Tom Tromey <tom@tromey.com>
10887
10888 PR gdb/28155:
10889 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10890 check_typedef.
10891 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10892 (print_return_value): Likewise.
10893
d2adf9f1
TT
108942019-01-05 Tom Tromey <tom@tromey.com>
10895
10896 * contrib/cleanup_check.py: Remove.
10897 * contrib/gcc-with-excheck: Remove.
10898 * contrib/exsummary.py: Remove.
10899 * contrib/excheck.py: Remove.
10900
2eab46b1
JB
109012019-01-05 Joel Brobecker <brobecker@adacore.com>
10902
10903 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10904 NULL. Initialize tpprev to NULL instead of assigning it
10905 to NULL on the next statement.
10906 * windows-nat.c (windows_delete_thread): Remove check for
10907 main_thread_id before printing thread exit notifications.
10908 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10909 Remove thread ID check against main_thread_id.
10910 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10911 windows_delete_thread.
10912 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10913
48c5e7e2
TT
109142019-01-04 Tom Tromey <tom@tromey.com>
10915
10916 * compile/compile.c (_initialize_compile): Use upper case for
10917 metasyntactic variables.
10918 * symmisc.c (_initialize_symmisc): Use upper case for
10919 metasyntactic variables.
10920 * psymtab.c (_initialize_psymtab): Use upper case for
10921 metasyntactic variables.
10922 * demangle.c (demangle_command): Use upper case for metasyntactic
10923 variables.
10924 (_initialize_demangler): Likewise.
10925 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10926 variables.
10927
986041cd
TT
109282019-01-03 Tom Tromey <tom@tromey.com>
10929
10930 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10931
7c711119
TT
109322019-01-03 Tom Tromey <tom@tromey.com>
10933
10934 * python/py-symtab.c (salpy_str): Update.
10935 (struct salpy_sal_object) <symtab>: Now a PyObject.
10936 (salpy_dealloc): Update.
10937 (del_objfile_sal): Use gdbpy_ref.
10938
1b20edf0
TT
109392019-01-03 Tom Tromey <tom@tromey.com>
10940
10941 * python/py-type.c (convert_field): Use new_reference. Return
10942 gdbpy_ref.
10943 (make_fielditem): Return gdbpy_ref.
10944 (typy_fields): Update.
10945 (typy_getitem): Update.
10946 (field_name): Return gdbpy_ref. Use new_reference.
10947 (typy_iterator_iternext): Update.
10948
ea41325b
TT
109492019-01-03 Tom Tromey <tom@tromey.com>
10950
10951 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10952
2a3c71d6
TT
109532019-01-03 Tom Tromey <tom@tromey.com>
10954
10955 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10956 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10957 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10958 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10959 (pspy_set_type_printers): Likewise.
10960 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10961 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10962 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10963 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10964 (objfpy_set_type_printers): Likewise.
10965
5c329e6a
TT
109662019-01-03 Tom Tromey <tom@tromey.com>
10967
10968 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10969 (gdbpy_print_stack): Use gdbpy_err_fetch.
10970 * python/python-internal.h (class gdbpy_err_fetch): New class.
10971 (class gdbpy_enter) <m_error_type, m_error_value,
10972 m_error_traceback>: Remove.
10973 <m_error>: New member.
10974 (gdbpy_exception_to_string): Don't declare.
10975 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
10976 * python/py-value.c (convert_value_from_python): Use
10977 gdbpy_err_fetch.
10978 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
10979 gdbpy_exception_to_string.
10980 (gdbpy_handle_exception): Use gdbpy_err_fetch.
10981 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
10982 gdbpy_err_fetch.
10983
169bb27b
AB
109842019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10985
10986 * linux-nat.c (delete_lwp_cleanup): Delete.
10987 (struct lwp_deleter): New struct.
10988 (lwp_info_up): New typedef.
10989 (linux_nat_target::follow_fork): Delete cleanup, and make use of
10990 lwp_info_up.
10991
a07c8880
AB
109922019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10993
10994 * linux-fork.c (class scoped_switch_fork_info): New class.
10995 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
10996
26089c49
AB
109972019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10998
10999 * valops.c (find_overload_match): Remove use of null_cleanup, and
11000 calls to do_cleanups.
11001
06d3e5b0
AB
110022019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11003
11004 * compile/compile-cplus-types.c
11005 (compile_cplus_instance::decl_name): Handle changes to
11006 cp_func_name.
11007 * cp-support.c (cp_func_name): Update header comment, update
11008 return type.
11009 * cp-support.h (cp_func_name): Update return type in declaration.
11010 * valops.c (find_overload_match): Move temp_func local to top
11011 level of function and change its type. Use temp_func to hold and
11012 delete temporary string obtained from cp_func_name.
11013
66644cd3
AB
110142019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11015
11016 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11017 gdb::char_vector, remove cleanup, and update uses of `msg`.
11018
592d8c0a
JW
110192019-01-03 Jim Wilson <jimw@sifive.com>
11020
11021 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11022
c55d06ec
TT
110232019-01-02 Tom Tromey <tom@tromey.com>
11024
11025 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11026 (tdesc_parse_xml): Remove cleanups.
11027 * target-descriptions.h (make_cleanup_free_target_description):
11028 Don't declare.
11029 (target_desc_deleter): New struct.
11030 (target_desc_up): New typedef.
11031 * target-descriptions.c (target_desc_deleter::operator()): Rename
11032 from free_target_description.
11033 (make_cleanup_free_target_description): Remove.
11034
3a6ae42d
TT
110352019-01-02 Tom Tromey <tom@tromey.com>
11036
11037 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11038 constructor, destructor.
11039 (linespec_parser): Remove typedef.
11040 (~linespec_parser): Rename from linespec_parser_delete.
11041 (linespec_lex_to_end, linespec_complete_label)
11042 (linespec_complete): Update.
11043 (decode_line_full): Remove cleanups.
11044 (decode_line_1): Update.
11045
61fd3e73
TT
110462019-01-02 Tom Tromey <tom@tromey.com>
11047
11048 * python/python-internal.h (inferior_to_inferior_object): Change
11049 return type.
11050 * python/py-exitedevent.c (create_exited_event_object): Update.
11051 * python/py-inferior.c (inferior_to_inferior_object): Return
11052 gdbpy_ref.
11053 (python_new_inferior, python_inferior_deleted)
11054 (thread_to_thread_object, delete_thread_object)
11055 (build_inferior_list, gdbpy_selected_inferior): Update.
11056 * python/py-infthread.c (create_thread_object): Update. Also fail
11057 if inferior_to_inferior_object fails.
11058
d20172fc
SM
110592019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11060
11061 * inferior.h (class inferior) <displaced_step_state>: New field.
11062 * infrun.h (struct displaced_step_state): Move here from
11063 infrun.c. Initialize fields, add constructor.
11064 <inf>: Remove field.
11065 <reset>: New method.
11066 * infrun.c (struct displaced_step_inferior_state): Move to
11067 infrun.h.
11068 (displaced_step_inferior_states): Remove.
11069 (get_displaced_stepping_state): Adust.
11070 (displaced_step_in_progress_any_inferior): Adjust.
11071 (displaced_step_in_progress_thread): Adjust.
11072 (displaced_step_in_progress): Adjust.
11073 (add_displaced_stepping_state): Remove.
11074 (get_displaced_step_closure_by_addr): Adjust.
11075 (remove_displaced_stepping_state): Remove.
11076 (infrun_inferior_exit): Call displaced_step_state.reset.
11077 (use_displaced_stepping): Don't check for NULL.
11078 (displaced_step_prepare_throw): Call
11079 get_displaced_stepping_state.
11080 (displaced_step_fixup): Don't check for NULL.
11081 (prepare_for_detach): Don't check for NULL.
11082
e3319240
PW
110832019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11084
11085 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11086 in case of call that did not complete.
11087
5d36dfb9
AU
110882019-01-02 Andrey Utkin <autkin@undo.io>
11089
11090 * symfile.c (find_separate_debug_file): Fix search of debug files for
11091 remote debuggee.
11092
8833fbf0
TT
110932019-01-02 Tom Tromey <tom@tromey.com>
11094
11095 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11096 indentation.
11097 * python/py-frame.c (frapy_older): Remove cast.
11098 (frapy_newer): Likewise.
11099 * python/py-breakpoint.c (local_setattro): Remove cast.
11100 * python/py-arch.c (archpy_name): Remove local variable.
11101 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11102
4ada3dfd
JB
111032019-01-02 Joel Brobecker <brobecker@adacore.com>
11104
11105 * unittests/basic_string_view/element_access/char/empty.cc:
11106 Fix year range in copyright header.
11107
113b7b81
AB
111082019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11109
11110 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11111 Delete.
11112 <operator==>: Update with for removed field.
11113 <hash>: Likewise.
11114 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11115 <isa_features>: ...this.
11116 <abi_features>: New field.
11117 (riscv_isa_flen): Update comment.
11118 (riscv_abi_xlen): New declaration.
11119 (riscv_abi_flen): New declaration.
11120 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11121 isa_features.
11122 (riscv_abi_xlen): New function.
11123 (riscv_isa_flen): Update to get answer from isa_features.
11124 (riscv_abi_flen): New function.
11125 (riscv_has_fp_abi): Update to get answer from abi_features.
11126 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11127 xlen and flen.
11128 (riscv_call_info) <xlen, flen>: Update comment.
11129 (riscv_call_arg_struct): Remove invalid assertions
11130 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11131 is removed.
11132 (riscv_gdbarch_init): Gather isa features and abi features
11133 separately, ensure both match on the gdbarch when reusing an old
11134 gdbarch. Relax an error check to allow 32-bit abi float to run on
11135 a target with 64-bit float hardware.
11136
b18ca514
PW
111372019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11138
11139 * source.c (search_command_helper): Stop reverse search
11140 when line 1 has been searched.
11141
ec70d8db
PW
111422019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11143
11144 * record-full.c (record_full_base_target::close): Rewrite
11145 record_full_core_buf_list free logic.
11146
5b38f9c1
PW
111472019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11148
11149 * break-catch-syscall.c (print_one_catch_syscall): xfree
11150 the last text.
11151
66d91b39
JB
111522019-01-01 Joel Brobecker <brobecker@adacore.com>
11153
11154 * top.c (print_gdb_version): Update Copyright year in version
11155 message.
11156
42a4f53d
JB
111572019-01-01 Joel Brobecker <brobecker@adacore.com>
11158
11159 Update copyright year range in all GDB files.
11160
7e955d83 111612019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11162
5bbd631d 11163 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11164
5bbd631d 11165For older changes see ChangeLog-2018.
c906108c
SS
11166\f
11167Local Variables:
11168mode: change-log
11169left-margin: 8
11170fill-column: 74
11171version-control: never
57da7796 11172coding: utf-8
c906108c 11173End:
5bbd631d 11174