Make tui_default_win_height static
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
16cb7910
TT
12019-08-13 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4 * tui/tui-layout.c (tui_default_win_height): Now static.
5
cc0c3ffb
TT
62019-08-13 Tom Tromey <tom@tromey.com>
7
8 * tui/tui-layout.c (show_layout): Unify all layout cases into a
9 single switch.
10 (show_source_disasm_command, show_source_or_disasm_and_command):
11 Don't check current layout.
12
3f3ffe54
TT
132019-08-13 Tom Tromey <tom@tromey.com>
14
15 * tui/tui-wingeneral.c (make_all_visible): Remove.
16 (tui_make_all_invisible): Simplify.
17 * tui/tui-layout.c (tui_make_all_invisible): Move from
18 tui-wingeneral.c; simplify.
19 (show_layout): Hoist call to tui_make_all_invisible.
20 (show_data): Don't call tui_make_all_invisible.
21
69258091
TT
222019-08-13 Tom Tromey <tom@tromey.com>
23
24 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
25 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
26
62cf57fe
TT
272019-08-13 Tom Tromey <tom@tromey.com>
28
29 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
30 tui-data.c.
31 (show_source_disasm_command, show_data)
32 (show_source_or_disasm_and_command): Don't use
33 tui_set_current_layout_to.
34 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
35 * tui/tui-data.c (current_layout, tui_current_layout): Move to
36 tui-layout.c.
37 (tui_set_current_layout_to): Remove.
38
2afade5d
TT
392019-08-13 Tom Tromey <tom@tromey.com>
40
41 * tui/tui-layout.c (tui_set_layout): Update.
42 * tui/tui-data.h (struct tui_layout_def): Remove.
43 (tui_layout_def): Don't declare.
44 * tui/tui-data.c (layout_def): Remove.
45 (tui_layout_def): Remove.
46
a3504e96
TT
472019-08-13 Tom Tromey <tom@tromey.com>
48
49 * tui/tui-winsource.h (struct tui_source_window_base)
50 <clear_detail>: No longer "override".
51 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
52 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
53 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
54 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
55 Remove.
56 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
57
29c92911
TT
582019-08-13 Tom Tromey <tromey@adacore.com>
59
60 * tracepoint.c: Don't include readline.h or history.h.
61
86c6b807
TT
622019-08-12 Tom Tromey <tom@tromey.com>
63
64 * configure: Rebuild.
65 * configure.ac: Check for readline 7.
66 * NEWS: Mention readline 7 requirement.
67 * README: Update.
68
5db2718c
TT
692019-08-12 Tom Tromey <tom@tromey.com>
70
71 * mingw-hdep.c (gdb_select): Remove readline hack.
72
dac36daf
PFC
732019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
74
75 * blockframe.c (find_pc_partial_function): Set *block to nullptr
76 when the function fails.
77
1022c627
AA
782019-08-09 Andreas Arnez <arnez@linux.ibm.com>
79
80 * s390-tdep.c (s390_type_align): New function.
81 (s390_gdbarch_init): Set it as type_align gdbarch method.
82
eba4caf2
TV
832019-08-09 Tom de Vries <tdevries@suse.de>
84
85 PR gdb/24591
86 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
87 pc_low with relocation offset.
88
123cd851
TT
892019-08-07 Tom Tromey <tromey@adacore.com>
90
91 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
92 (print_frame_args): Update.
93 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
94 Update.
95 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
96 * frame.h (struct frame_arg): Add initializers.
97 <error>: Now a unique_xmalloc_ptr.
98
3d31bc39
AH
992019-08-07 Alan Hayward <alan.hayward@arm.com>
100
101 * NEWS: Expand the Pointer Authentication entry.
102 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
103 (aarch64_frame_unmask_lr): ... to this.
104 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
105 Call aarch64_frame_unmask_lr.
106 * frame.c (struct frame_info): Add "masked" variable.
107 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
108 (fprint_frame): Check for masked pc.
109 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
110 declarations.
111 * python/py-framefilter.c (py_print_frame): Check for masked pc.
112 * stack.c (print_frame): Check for masked pc.
113
0cf9feb9
TT
1142019-08-06 Tom Tromey <tom@tromey.com>
115
116 * stabsread.c (patch_block_stabs, read_one_struct_field)
117 (read_enum_type): Use obstack_strndup.
118 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
119 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
120 * dwarf2read.c (guess_full_die_structure_name)
121 (anonymous_struct_prefix): Use obstack_strndup.
122 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
123 * c-exp.y (yylex): Use obstack_strndup.
124 * ada-exp.y (write_object_renaming, write_ambiguous_var)
125 (write_var_or_type): Use obstack_strndup.
126
efba19b0
TT
1272019-08-06 Tom Tromey <tom@tromey.com>
128
129 * symfile.c (reread_symbols): Use obstack_strdup.
130 * stabsread.c (read_type): Use obstack_strdup.
131 * gdb_obstack.h (obstack_strdup): New overload.
132 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
133 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
134 (dwarf2_canonicalize_name): Use obstack_strdup.
135 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
136 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
137 Use obstack_strdup.
138
f25102f7
TT
1392019-08-06 Tom Tromey <tom@tromey.com>
140
141 * gdb_obstack.h (obstack_strdup): Define.
142 * gdb_obstack.c (obstack_strdup): Don't define.
143
021887d8
TT
1442019-08-06 Tom Tromey <tom@tromey.com>
145
146 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
147 obstack_strdup.
148 * typeprint.c (typedef_hash_table::find_global_typedef): Use
149 obstack_strdup.
150 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
151 * stabsread.c (common_block_start): Use obstack_strdup.
152 * objfiles.c (set_objfile_main_name, objfile): Use
153 obstack_strdup.
154 * namespace.c (add_using_directive): Use obstack_strdup.
155 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
156 * jit.c (finalize_symtab): Use obstack_strdup.
157 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
158 (guess_partial_die_structure_name, partial_die_info::fixup)
159 (dwarf2_name): Use obstack_strdup.
160 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
161 obstack_strdup.
162 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
163 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
164 obstack_strdup.
165 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
166
d2834edc
PW
1672019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
168
169 * unittests/help-doc-selftests.c: New file.
170 * Makefile.in: Add the new file.
171
590042fc
PW
1722019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
173
174 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
175 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
176 the full first line, except when FOR_VALUE_PREFIX. In this case,
177 the trailing '.' is not output, and the first character is uppercased.
178 (print_help_for_command): Update call to print_doc_line.
179 (print_doc_of_command): Likewise.
180 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
181 * cli/cli-option.c (append_indented_doc): Do not append newline.
182 (build_help_option): Append newline after first appended_indented_doc
183 only if a second call is done.
184 (build_help): Append 2 new lines before each option, except the first
185 one.
186 * compile/compile.c (_initialize_compile): Add new lines after
187 %OPTIONS%, when not at the end of the help.
188 Change help doc or code
189 producing the help doc to respect the invariants.
190 * maint-test-options.c (_initialize_maint_test_options): Likewise.
191 Also removed the new line after 'Options:', as all other commands
192 do not put an empty line between 'Options:' and the first option.
193 * printcmd.c (_initialize_printcmd): Likewise.
194 * stack.c (_initialize_stack): Likewise.
195 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
196 incorrectly telling COMMAND is optional.
197 * ada-lang.c (_initialize_ada_language): Change help doc or code
198 producing the help doc to respect the invariants.
199 * ada-tasks.c (_initialize_ada_tasks): Likewise.
200 * breakpoint.c (_initialize_breakpoint): Likewise.
201 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
202 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
203 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
204 * cli/cli-style.c (cli_style_option::add_setshow_commands,
205 _initialize_cli_style): Likewise.
206 * corelow.c (core_target_info): Likewise.
207 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
208 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
209 * filesystem.c (_initialize_filesystem): Likewise.
210 * frame.c (_initialize_frame): Likewise.
211 * gnu-nat.c (add_task_commands): Likewise.
212 * infcall.c (_initialize_infcall): Likewise.
213 * infcmd.c (_initialize_infcmd): Likewise.
214 * interps.c (_initialize_interpreter): Likewise.
215 * language.c (_initialize_language): Likewise.
216 * linux-fork.c (_initialize_linux_fork): Likewise.
217 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
218 * maint.c (_initialize_maint_cmds): Likewise.
219 * memattr.c (_initialize_mem): Likewise.
220 * printcmd.c (_initialize_printcmd): Likewise.
221 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
222 _RegEx): Likewise.
223 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
224 * record-btrace.c (_initialize_record_btrace): Likewise.
225 * record-full.c (_initialize_record_full): Likewise.
226 * record.c (_initialize_record): Likewise.
227 * regcache-dump.c (_initialize_regcache_dump): Likewise.
228 * regcache.c (_initialize_regcache): Likewise.
229 * remote.c (add_packet_config_cmd, init_remote_threadtests,
230 _initialize_remote): Likewise.
231 * ser-tcp.c (_initialize_ser_tcp): Likewise.
232 * serial.c (_initialize_serial): Likewise.
233 * skip.c (_initialize_step_skip): Likewise.
234 * source.c (_initialize_source): Likewise.
235 * stack.c (_initialize_stack): Likewise.
236 * symfile.c (_initialize_symfile): Likewise.
237 * symtab.c (_initialize_symtab): Likewise.
238 * target-descriptions.c (_initialize_target_descriptions): Likewise.
239 * top.c (init_main): Likewise.
240 * tracefile-tfile.c (tfile_target_info): Likewise.
241 * tracepoint.c (_initialize_tracepoint): Likewise.
242 * tui/tui-win.c (_initialize_tui_win): Likewise.
243 * utils.c (add_internal_problem_command): Likewise.
244 * valprint.c (value_print_option_defs): Likewise.
245
404f2902
FCE
2462019-08-06 Frank Ch. Eigler <fche@redhat.com>
247
248 PR build/24886
249 * configure.ac: Drop enable-libmcheck support.
250 * configure, config.in: Rebuild.
251 * libmcheck.m4: Remove.
252 * acinclude.m4: Don't include it.
253 * Makefile.in: Don't distribute it.
254 * top.c (print_gdb_configuration): Don't mention it.
255
046bebe1
TT
2562019-08-06 Tom Tromey <tom@tromey.com>
257
258 * utils.c (set_output_style): Sometimes pass stream to
259 emit_style_escape.
260 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
261 * record-btrace.c (btrace_insn_history): Update.
262 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
263 method.
264 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
265 Update initializers.
266 <m_uiout>: New field.
267 <m_di>: Move lower.
268 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
269 Remove "uiout" parameter.
270 (dump_insns): Update.
271 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
272 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
273
ddbcedf5
CB
2742019-08-06 Christian Biesinger <cbiesinger@google.com>
275
276 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
277 (error_in_psymtab_expansion): Likewise.
278 (lookup_symbol_via_quick_fns): Likewise.
279 (basic_lookup_transparent_type_quick): Likewise.
280 (basic_lookup_transparent_type_1): Likewise.
281
b08b16c8
TT
2822019-08-06 Tom Tromey <tromey@adacore.com>
283
284 * source.c (last_source_error): Now bool.
285 (print_source_lines_base): Make "noprint" bool. Only open
286 source file when last_source_visited changes.
287
cb44333d
TT
2882019-08-06 Tom Tromey <tromey@adacore.com>
289
290 * annotate.c (annotate_source_line): Use g_source_cache.
291 * source-cache.c (source_cache::get_plain_source_lines): Change
292 parameters. Populate m_offset_cache.
293 (source_cache::ensure): New method.
294 (source_cache::get_line_charpos): New method.
295 (extract_lines): Move lower. Change parameters.
296 (source_cache::get_source_lines): Move lower.
297 * source-cache.h (class source_cache): Update comment.
298 <get_line_charpos>: New method.
299 <get_source_lines>: Update comment.
300 <clear>: Clear m_offset_cache.
301 <get_plain_source_lines>: Change parameters.
302 <ensure>: New method
303 <m_offset_cache>: New member.
304 * source.c (forget_cached_source_info_for_objfile): Update.
305 (info_source_command): Use g_source_cache.
306 (find_source_lines, open_source_file_with_line_charpos): Remove.
307 (print_source_lines_base, search_command_helper): Use g_source_cache.
308 * source.h (open_source_file_with_line_charpos): Don't declare.
309 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
310 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
311 Use g_source_cache.
312
872dceaa
TT
3132019-08-06 Tom Tromey <tromey@adacore.com>
314
315 * source-cache.c (source_cache::get_plain_source_lines):
316 Remove "first_line" and "last_line" parameters.
317 (source_cache::get_source_lines): Cache plain text.
318 * source-cache.h (class source_cache)
319 <get_plain_source_lines>: Update.
320
269249d9
TT
3212019-08-06 Tom Tromey <tromey@adacore.com>
322
323 * source-cache.c (extract_lines): No longer a method.
324 Changed type of parameter. Include final newline.
325 (selftests::extract_lines_test): New function.
326 (_initialize_source_cache): Likewise.
327 * source-cache.h (class source_cache)
328 <extract_lines>: Don't declare.
329
c0e8dcd8
TT
3302019-08-06 Tom Tromey <tromey@adacore.com>
331
332 * breakpoint.c (init_breakpoint_sal): Update.
333 (breakpoint): Update.
334 * breakpoint.h (struct breakpoint) <filter>: Now a
335 unique_xmalloc_ptr.
336
0b27c27d
CB
3372019-08-05 Christian Biesinger <cbiesinger@google.com>
338
339 * NEWS: Mention dictionary access on blocks.
340 * python/py-block.c (blpy_getitem): New function.
341 (block_object_as_mapping): New struct.
342 (block_object_type): Use new struct for tp_as_mapping field.
343
4ee94178
CB
3442019-08-05 Christian Biesinger <cbiesinger@google.com>
345
346 * objfiles.h (objfile): Add a comment describing partial symbols.
347
8abfcabc
TT
3482019-08-05 Tom Tromey <tromey@adacore.com>
349
350 * compile/compile.c (_initialize_compile): Use _(), not N_().
351 * thread.c (_initialize_thread): Use _(), not N_().
352 * stack.c (_initialize_stack): Use _(), not N_().
353 * printcmd.c (_initialize_printcmd): Use _(), not N_().
354
2b79f376
SM
3552019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * dwarf2read.c (struct dw2_symtab_iterator):
358 <want_specific_block>: Remove.
359 <block_index>: Change type to gdb::optional.
360 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
361 change type of BLOCK_INDEX parameter to gdb::optional.
362 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
363 (dw2_lookup_symbol): Don't pass argument for
364 WANT_SPECIFIC_BLOCK.
365 (dw2_expand_symtabs_for_function): Don't pass argument for
366 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
367 (class dw2_debug_names_iterator)
368 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
369 parameter, change BLOCK_INDEX type to gdb::optional.
370 <m_want_specific_block>: Remove.
371 <m_block_index>: Change type to gdb::optional.
372 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
373 gdb::optional. Re-write in function of gdb::optional.
374 (dw2_debug_names_lookup_symbol): Don't pass argument for
375 WANT_SPECIFIC_BLOCK.
376 (dw2_debug_names_expand_symtabs_for_function): Don't pass
377 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
378 BLOCK_INDEX.
379
ae60f04e
PW
3802019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
381
382 * NEWS: Mention changes to "info sources" command.
383
28cd9371
PW
3842019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
385
386 * symtab.c (filename_partial_match_opts): New struct type.
387 (struct output_source_filename_data): New members
388 regexp, c_regexp, partial_match.
389 (output_source_filename): Use new members to decide to print file.
390 (info_sources_option_defs): New variable.
391 (make_info_sources_options_def_group, print_info_sources_header,
392 info_sources_command_completer):
393 New functions.
394 (info_sources_command): Read new optional arguments.
395 (_initialize_symtab): Update info sources help.
396
ca683e3a
AO
3972019-08-02 Alexandre Oliva <oliva@adacore.com>
398
399 * ada-lang.c (exception_support_info_v0): Renamed from...
400 (default_exception_support_info): ... this. Create new
401 definition for v1.
402 (ada_has_this_exception_support): Look up catch_handlers_sym.
403 (ada_exception_support_info_sniffer): Try v0 after default.
404
f1264162
TT
4052019-08-01 Tom Tromey <tromey@adacore.com>
406
407 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
408 gdbarch.h.
409
0a7b2485
CB
4102019-08-01 Christian Biesinger <cbiesinger@google.com>
411
412 * s12z-tdep.c: Fix include path for s12z-opc.h.
413
c6bdbeb7
AH
4142019-08-01 Alan Hayward <alan.hayward@arm.com>
415
416 * NEWS: Require GNU make 3.82.
417
a2bd7b82
TT
4182019-07-16 Tom Tromey <tom@tromey.com>
419
420 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
421 declare.
422
aa3b6533
TT
4232019-07-30 Tom Tromey <tromey@adacore.com>
424
425 * block.c (contained_in): Remove BLOCK_FUNCTION check.
426
a1530dc7
KB
4272019-07-30 Kevin Buettner <kevinb@redhat.com>
428
429 * printcmd.c (print_address_symbolic): Print negative offsets.
430 (build_address_symbolic): Force signed arithmetic when computing
431 offset.
432
2906593f
CB
4332019-07-30 Christian Biesinger <cbiesinger@google.com>
434
435 PR/24474: Add a function to lookup static variables.
436 * NEWS: Mention this new function.
437 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
438 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
439 * python/python.c (python_GdbMethods): Add new function.
440
c620ed88
CB
4412019-07-29 Christian Biesinger <cbiesinger@google.com>
442
443 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
444 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
445 (objfpy_lookup_static_symbol): New function.
446 (objfile_object_methods): Add new functions.
447
bc4268a5
PW
4482019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
449
450 * NEWS: Mention 'set|show print frame-info'. Mention new
451 'presence' value for 'frame-arguments'. Mention new '-frame-info'
452 backtrace argument. Mention that python frame filtering code
453 is now consistent with what 'backtrace' command prints.
454
4b5e8d19
PW
4552019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
456
457 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
458 comments.
459 (print_frame_info_auto, print_frame_info_source_line,
460 print_frame_info_location, print_frame_info_source_and_location,
461 print_frame_info_location_and_address, print_frame_info_short_location):
462 New declarations.
463 (struct frame_print_options): New member print_frame_info.
464 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
465 * stack.h (get_user_print_what_frame_info): New declaration.
466 (frame_show_address): New declaration.
467 * stack.c (print_frame_arguments_choices): New value 'presence'.
468 (print_frame_info_auto, print_frame_info_source_line,
469 print_frame_info_location, print_frame_info_source_and_location,
470 print_frame_info_location_and_address, print_frame_info_short_location,
471 print_frame_info_choices, print_frame_info_print_what): New definitions.
472 (print_frame_args): Only print dots for args if print frame-arguments
473 is 'presence'.
474 (frame_print_option_defs): New element for "frame-info".
475 (get_user_print_what_frame_info): New function.
476 (frame_show_address): Make non static. Move comment to stack.h.
477 (print_frame_info_to_print_what): New function.
478 (print_frame_info): Update comment. Use fp_opts.print_frame_info
479 to decide what to print.
480 (backtrace_command_1): Handle the new print_frame_arguments_presence
481 value.
482 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
483 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
484 (py_print_frame): In non-mi mode, use LOCATION as default for
485 print_what, similarly to frame information printed directly by
486 backtrace command. Handle frame-info user option in non MI mode.
487
6bdfee81
KB
4882019-07-27 Kevin Buettner <kevinb@redhat.com>
489
490 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
491 Add case for debugging 32-bit target on 64-bit host. Revise
492 comment.
493
98a617f8
KB
4942019-07-27 Kevin Buettner <kevinb@redhat.com>
495
496 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
497 instead of find_function_entry_range_from_pc.
498
567238c9
KB
4992019-07-27 Kevin Buettner <kevinb@redhat.com>
500
501 * stack.c (find_frame_funname): Remove code which preferred
502 minsym over symtab sym in "certain pathological cases".
503
2dc80cf8
KB
504 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
505 parameter. Change type of "do_demangle" to bool.
506 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
507 Pass suitable "prefer_sym_over_minsym" flag to
508 build_address_symbolic(). Don't output "+" for negative offsets.
509 * printcmd.c (print_address_symbolic): Update invocation of
510 build_address_symbolic to include a "prefer_sym_over_minsym"
511 flag.
512 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
513 Restrict cases in which use of minimal symbol is preferred to that
514 of a found symbol. Update comments.
515
1aff7173
KB
516 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
517 for entry pc when entry pc is out of range for that FDE.
518
89b085ac
BC
5192019-07-26 Brian Callahan <bcallah@openbsd.org>
520
521 PR gdb/24839:
522 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
523 type.
524
f32feb4a
CB
5252019-07-25 Christian Biesinger <cbiesinger@google.com>
526
527 * python/py-objfile.c (add_separate_debug_file): Fix comment about
528 this function's Python signature.
529
530
5312019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
532
533 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
534 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
535 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
536 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
537 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
538
539
c54e4253
YS
5402019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
541
542 * h8300-tdep.c (h8300_register_name_common): New.
543 h8300_register_name): Use h8300_register_name_common.
544 (h8300s_register_name): Likewise.
545 (h8300sx_register_name): Likewise.
546 (h8300h_register_nam): New.
547 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
548
549
40eadf04
SP
5502019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
551
552 * arm-tdep.c (arm_skip_cmse_entry): New function.
553 (arm_is_sgstubs_section): New function.
554 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
555
bfa2a36d
TT
5562019-07-22 Tom Tromey <tom@tromey.com>
557
558 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
559 Don't self-assign.
560
a8e9d247
AB
5612019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
564 type_print.
565
eb86c5e2
AB
5662019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
567
568 * symtab.c (search_symbols): Adjust msymbol matching type arrays
569 so that GDB doesn't match any msymbols when searching in the
570 TYPES_DOMAIN.
571 (print_symbol_info): Print using typedef_print or type_print based
572 on the type of the symbol. Add updated FIXME comment moved from...
573 (_initialize_symtab): ... move and update FIXME comment to above.
574
a8eab7c6
AB
5752019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
576
577 * NEWS: Mention adding -q option to "info types".
578 * symtab.c (struct info_types_options): New struct.
579 (info_types_options_defs): New variable.
580 (make_info_types_options_def_group): New function.
581 (info_types_command): Use gdb::option framework to parse options.
582 (info_types_command_completer): New function.
583 (_initialize_symtab): Extend the help text on "info types" and
584 register command completer.
585
b4603c34
CB
5862019-07-21 Christian Biesinger <cbiesinger@google.com>
587
588 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
589 (lookup_symbol_in_objfile): Change int to block_enum and add a
590 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
591
c8cdc1e0
CB
5922019-07-20 Christian Biesinger <cbiesinger@google.com>
593
594 * MAINTAINERS (Write After Approval): Add self.
595
01e175fe
AB
5962019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
597
598 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
599 instruction to the dummy code region.
600
56f79b63
TT
6012019-07-19 Tom Tromey <tromey@adacore.com>
602
603 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
604 (ARGSUSED, PARAMS, __func__): Remove rules.
605
4c5aa8e0
AH
6062019-07-19 Alan Hayward <alan.hayward@arm.com>
607
608 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
609 * features/arm/arm-with-iwmmxt.c: Remove.
610 * features/arm/arm-with-iwmmxt.xml: Remove.
611 * features/arm/arm-with-m-fpa-layout.c: Remove.
612 * features/arm/arm-with-m-fpa-layout.xml: Remove.
613 * features/arm/arm-with-m-vfp-d16.c: Remove.
614 * features/arm/arm-with-m-vfp-d16.xml: Remove.
615 * features/arm/arm-with-m.c: Remove.
616 * features/arm/arm-with-m.xml: Remove.
617 * features/arm/arm-with-neon.c: Remove.
618 * features/arm/arm-with-neon.xml: Remove.
619 * features/arm/arm-with-vfpv2.c: Remove.
620 * features/arm/arm-with-vfpv2.xml: Remove.
621 * features/arm/arm-with-vfpv3.c: Remove.
622 * features/arm/arm-with-vfpv3.xml: Remove.
623
f42b2617
AH
6242019-07-19 Alan Hayward <alan.hayward@arm.com>
625
626 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
627
f29ec966
AH
6282019-07-19 Alan Hayward <alan.hayward@arm.com>
629
630 * arch/aarch32.c (aarch32_create_target_description): Create
631 target descriptions using features.
632 * arch/arm.c (arm_create_target_description)
633 (arm_create_mprofile_target_description): Likewise.
634 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
635
d105cce5
AH
6362019-07-19 Alan Hayward <alan.hayward@arm.com>
637
638 * Makefile.in: Add new files.
639 * aarch32-tdep.c: New file.
640 * aarch32-tdep.h: New file.
641 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
642 Call aarch32_read_description.
643 * arch/aarch32.c: New file.
644 * arch/aarch32.h: New file.
645 * arch/arm.c (arm_create_target_description)
646 (arm_create_mprofile_target_description): New function.
647 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
648 (arm_create_target_description)
649 (arm_create_mprofile_target_description): New declaration.
650 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
651 read_description functions.
652 * arm-linux-nat.c (arm_linux_nat_target::read_description):
653 Likewise.
654 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
655 * arm-tdep.c (tdesc_arm_list): New variable.
656 (arm_register_g_packet_guesses): Call create description functions.
657 (arm_read_description) (arm_read_mprofile_description): New
658 function.
659 * arm-tdep.h (arm_read_description)
660 (arm_read_mprofile_description): Add declaration.
661 * configure.tgt: Add new files.
662
afe09f0b
GL
6632019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
664
665 * top.c (new_ui_command): Open specified terminal just once.
666
cd215b2e
TT
6672019-07-18 Tom Tromey <tromey@adacore.com>
668
669 * symtab.c (main_name): Constify return type.
670 * symfile.c (set_initial_language): Update.
671 * symtab.h (main_name): Constify return type.
672
d8f68fcb
TT
6732019-07-17 Tom Tromey <tom@tromey.com>
674
675 * tui/tui-winsource.c (tui_update_source_window)
676 (tui_update_source_window_as_is)
677 (tui_update_source_windows_with_line): Remove return.
678 * tui/tui-disasm.c (tui_show_disassem)
679 (tui_show_disassem_and_update_source): Remove return.
680 * tui/tui.c (tui_reset): Remove return.
681 * tui/tui-wingeneral.c
682 (tui_check_and_display_highlight_if_needed): Remove return.
683
ca5af91e
TT
6842019-07-17 Tom Tromey <tom@tromey.com>
685
686 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
687
5104fe36
TT
6882019-07-17 Tom Tromey <tom@tromey.com>
689
690 * tui/tui-winsource.h (struct tui_exec_info_window)
691 (struct tui_source_window_base): Move from tui-data.h.
692 * tui/tui-winsource.c: Move many method definitions from
693 elsewhere. Remove "structuring" comments.
694 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
695 (tui_source_window_base::refresh_window): Move to
696 tui-winsource.c.
697 * tui/tui-win.c (tui_source_window_base::refresh_all)
698 (tui_source_window_base::update_tab_width)
699 (tui_source_window_base::set_new_height)
700 (tui_source_window_base::do_make_visible_with_new_height): Move to
701 tui-winsource.c.
702 * tui/tui-source.h: Update.
703 * tui/tui-source.c (tui_source_window_base::reset): Move to
704 tui-winsource.c.
705 * tui/tui-disasm.h: Update.
706 * tui/tui-data.h (struct tui_exec_info_window): Move to
707 tui-winsource.h.
708 (struct tui_source_window_base): Likewise.
709 * tui/tui-data.c (tui_source_window_base::clear_detail)
710 (tui_source_window_base, ~tui_source_window_base): Move to
711 tui-winsource.c.
712
daa15dde
TT
7132019-07-17 Tom Tromey <tom@tromey.com>
714
715 * tui/tui-win.c (tui_resize_all)
716 (tui_source_window_base::update_tab_width)
717 (tui_adjust_win_heights): Update.
718 (tui_win_info::make_invisible_and_set_new_height): Rename from
719 make_invisible_and_set_new_height.
720 * tui/tui-data.h (struct tui_win_info)
721 <make_invisible_and_set_new_height>: New method.
722
bfad4537
TT
7232019-07-17 Tom Tromey <tom@tromey.com>
724
725 * tui/tui.c: Update.
726 * tui/tui-source.h (struct tui_source_window): Move from
727 tui-data.h.
728 * tui/tui-layout.c: Update.
729 * tui/tui-disasm.c: Update.
730 * tui/tui-data.h (struct tui_source_window): Move to
731 tui-source.h.
732
88f7e873
TT
7332019-07-17 Tom Tromey <tom@tromey.com>
734
735 * tui/tui-disasm.h (struct tui_disasm_window): Move from
736 tui-data.h.
737 * tui/tui-data.h (struct tui_disasm_window): Move to
738 tui-disasm.h.
739
96bd6233
TT
7402019-07-17 Tom Tromey <tom@tromey.com>
741
742 * tui/tui-regs.h (struct tui_data_item_window): Move from
743 tui-data.h.
744 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
745 * tui/tui-data.h (struct tui_data_item_window): Move to
746 tui-regs.h.
747 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
748
ce38393b
TT
7492019-07-17 Tom Tromey <tom@tromey.com>
750
751 * tui/tui.c: Update.
752 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
753 (tui_cmd_window::max_height): Move to tui-command.c.
754 * tui/tui-layout.c: Update.
755 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
756 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
757 tui-command.c.
758 * tui/tui-command.h (struct tui_cmd_window): Move from
759 tui-data.h.
760 * tui/tui-command.c: Remove "structuring" comments.
761 (tui_cmd_window::clear_detail)
762 (tui_cmd_window::do_make_visible_with_new_height)
763 (tui_cmd_window::max_height): Move from elsewhere.
764
2d8b51cb
TT
7652019-07-17 Tom Tromey <tom@tromey.com>
766
767 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
768 Now static.
769 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
770 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
771
18ab23af
TT
7722019-07-17 Tom Tromey <tom@tromey.com>
773
774 * tui/tui.c: Update.
775 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
776 tui-regs.c.
777 * tui/tui-windata.h: Remove file.
778 * tui/tui-windata.c: Remove file.
779 * tui/tui-win.c (tui_data_window::set_new_height)
780 (tui_data_window::do_make_visible_with_new_height): Move to
781 tui-regs.c.
782 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
783 * tui/tui-regs.c: Remove "structuring" comments.
784 (tui_data_window::first_data_item_displayed)
785 (tui_data_window::delete_data_content_windows)
786 (tui_data_window::erase_data_content)
787 (tui_data_window::display_all_data)
788 (tui_data_window::refresh_all)
789 (tui_data_window::do_scroll_vertical)
790 (tui_data_window::clear_detail, tui_data_window::set_new_height)
791 (tui_data_window::do_make_visible_with_new_height)
792 (tui_data_window::refresh_window): Move from elsewhere.
793 (_initialize_tui_regs): Move to end of file.
794 * tui/tui-layout.c: Update.
795 * tui/tui-hooks.c: Update.
796 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
797 * tui/tui-data.c (tui_data_window::clear_detail): Move to
798 tui-regs.c.
799 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
800
88b7e7cc
TT
8012019-07-17 Tom Tromey <tom@tromey.com>
802
803 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
804 seen.
805
0fcd3711
TT
8062019-07-17 Tom Tromey <tom@tromey.com>
807
808 * tui/tui-win.c (tui_source_window_base::set_new_height)
809 (tui_source_window_base::do_make_visible_with_new_height): Use
810 m_has_locator field directly.
811 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
812 method.
813 (struct tui_source_window_base) <has_locator>: Likewise.
814
4a38112d
TT
8152019-07-17 Tom Tromey <tom@tromey.com>
816
817 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
818 Don't declare.
819 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
820 Remove.
821 * tui/tui-win.c (tui_source_window_base::set_new_height)
822 (tui_source_window_base::set_new_height)
823 (make_invisible_and_set_new_height)
824 (tui_source_window_base::do_make_visible_with_new_height)
825 (tui_source_window_base::do_make_visible_with_new_height):
826 Update.
827 * tui/tui-layout.c (show_source_disasm_command, show_data)
828 (show_source_or_disasm_and_command): Update.
829 * tui/tui-layout.c (show_layout): Update.
830
09129226
TT
8312019-07-17 Tom Tromey <tom@tromey.com>
832
833 * tui/tui-layout.c (make_data_window): Remove.
834 (show_data): Unify creation and re-initialization cases.
835
4a8a5e84
TT
8362019-07-17 Tom Tromey <tom@tromey.com>
837
838 * tui/tui-layout.c (make_source_window, make_disasm_window):
839 Remove.
840 (show_data): Unify creation and re-initialization cases.
841
76d2be8e
TT
8422019-07-17 Tom Tromey <tom@tromey.com>
843
844 * tui/tui-layout.c (make_command_window): Remove.
845 (show_source_disasm_command, show_source_or_disasm_and_command):
846 Unify creation and re-initialization cases.
847
890b8bde
TT
8482019-07-17 Tom Tromey <tom@tromey.com>
849
850 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
851 creation and re-initialization cases.
852
2cdfa113
TT
8532019-07-17 Tom Tromey <tom@tromey.com>
854
855 * tui/tui-regs.c (tui_get_register): Return void.
856
8e3cfd09
TT
8572019-07-17 Tom Tromey <tom@tromey.com>
858
859 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
860 Simplify.
861
f4e04977
TT
8622019-07-17 Tom Tromey <tom@tromey.com>
863
864 * tui/tui-layout.c (show_source_disasm_command): Simplify window
865 resetting.
866
0379b883
TT
8672019-07-17 Tom Tromey <tom@tromey.com>
868
869 * tui/tui.h (tui_set_layout_by_name): Don't declare.
870 * tui/tui-regs.c (tui_reg_layout): New function.
871 (tui_show_registers, tui_reg_command): Use it.
872 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
873 (tui_layout_command): Rename from tui_set_layout_by_name. Change
874 parameters.
875 (tui_layout_command): Remove.
876
b7fbad91
TT
8772019-07-17 Tom Tromey <tom@tromey.com>
878
879 * tui/tui-layout.h (tui/tui-layout): Return void.
880 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
881
4e1e56b9
TT
8822019-07-17 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-layout.c (show_source_disasm_command, show_data):
885 Update.
886 (reset_locator): Remove.
887 (show_source_or_disasm_and_command): Update.
888
1e0c09ba
TT
8892019-07-17 Tom Tromey <tom@tromey.com>
890
891 * tui/tui-source.c (tui_source_window_base::reset): Remove
892 win_type parameter.
893 * tui/tui-layout.c (make_command_window, make_source_window)
894 (make_disasm_window, make_data_window)
895 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
896 (reset_locator, show_source_or_disasm_and_command): Update.
897 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
898 win_type parameter.
899 (struct tui_source_window_base) <reset>: Likewise.
900
1bf605de
TT
9012019-07-17 Tom Tromey <tom@tromey.com>
902
903 * tui/tui-layout.c (show_source_disasm_command): Use
904 reset_locator.
905 (reset_locator): New function.
906 (init_and_make_win): Remove.
907 (show_source_or_disasm_and_command): Use reset_locator.
908
098f9ed4
TT
9092019-07-17 Tom Tromey <tom@tromey.com>
910
911 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
912 condition.
913 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
914 Remove condition.
915 * tui/tui-source.c (tui_source_window_base::reset): New method.
916 * tui/tui-layout.c (make_command_window): Don't call
917 init_and_make_win.
918 (make_source_window, make_disasm_window): Don't call
919 make_source_or_disasm_window.
920 (make_data_window): Don't call init_and_make_win. Change calling
921 convention.
922 (show_source_disasm_command, show_data): Simplify.
923 (make_source_or_disasm_window): Remove.
924 (show_source_or_disasm_and_command): Simplify.
925 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
926 (struct tui_source_window_base) <reset>: Likewise.
927 <execution_info>: Remove initializer.
928 * tui/tui-data.c (tui_source_window_base): Initialize
929 execution_info.
930
80110957
TT
9312019-07-17 Tom Tromey <tom@tromey.com>
932
933 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
934 variable.
935
cf82af05
TT
9362019-07-17 Tom Tromey <tom@tromey.com>
937
938 * tui/tui.c (tui_rl_other_window): Update.
939 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
940 superclass method first. Always iterate over regs_content.
941 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
942 method.
943 * tui/tui-win.c (tui_set_focus_command): Update.
944
01aeb396
TT
9452019-07-17 Tom Tromey <tom@tromey.com>
946
947 * tui/tui-win.c (tui_set_focus_command): Rename from
948 tui_set_focus. Call tui_enable.
949 (tui_set_focus_command): Remove.
950
fd6c75ee
TT
9512019-07-17 Tom Tromey <tom@tromey.com>
952
953 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
954 refresh_window.
955 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
956 touchwin.
957 (tui_data_window::refresh_window): Call refresh_window on data
958 items. Always call superclass refresh_window.
959 (tui_win_info::refresh): Remove.
960 (tui_source_window_base::refresh_window): Update.
961 (tui_refresh_all): Update.
962 * tui/tui-layout.c (show_source_disasm_command): Remove call to
963 refresh_window.
964 (show_source_or_disasm_and_command): Likewise.
965 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
966 (struct tui_source_window_base) <refresh>: Likewise.
967
f6cc34a9
TT
9682019-07-17 Tom Tromey <tom@tromey.com>
969
970 * tui/tui-winsource.c (tui_clear_source_content)
971 (tui_show_source_content): Update.
972 * tui/tui-source.c (tui_source_window::showing_source_p): Check
973 whether content is empty.
974 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
975 Remove.
976
f31ec9af
TT
9772019-07-17 Tom Tromey <tom@tromey.com>
978
979 * tui/tui-winsource.c (tui_erase_source_content): Clear the
980 window's contents.
981 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
982 * tui/tui-source.c (tui_set_source_content_nil): Remove.
983
d1b6f1e5
TT
9842019-07-17 Tom Tromey <tom@tromey.com>
985
986 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
987 (struct tui_data_item_window): Update.
988
d9743a13
TT
9892019-07-17 Tom Tromey <tom@tromey.com>
990
991 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
992 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
993 defines.
994
caf0bc4e
TT
9952019-07-17 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-winsource.h (tui_erase_source_content)
998 (tui_clear_source_content): Remove "display_prompt" parameter.
999 * tui/tui-winsource.c (tui_update_source_window_as_is)
1000 (tui_update_source_windows_with_addr): Update.
1001 (tui_clear_source_content): Remove "display_prompt" parameter.
1002 (tui_erase_source_content): Likewise. Simplify.
1003 (tui_show_source_content): Update.
1004 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1005 * tui/tui-stack.c (tui_show_frame_info): Update.
1006 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1007 Remove defines.
1008
9d391078
TT
10092019-07-17 Tom Tromey <tom@tromey.com>
1010
1011 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1012 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1013 parameter.
1014 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1015 parameter.
1016
a38da35d
TT
10172019-07-17 Tom Tromey <tom@tromey.com>
1018
1019 * tui/tui-winsource.c (tui_clear_source_content)
1020 (tui_show_source_content, tui_show_exec_info_content)
1021 (tui_clear_exec_info_content): Update.
1022 * tui/tui-stack.c (tui_show_locator_content): Update.
1023 (tui_show_frame_info): Update.
1024 * tui/tui-source.h (tui_source_window): Don't declare.
1025 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1026 from tui_source_is_displayed.
1027 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1028 Remove field.
1029 (struct tui_source_window_base) <content_in_use>: New field. Now
1030 bool.
1031 (struct tui_source_window) <showing_source_p>: New method.
1032 (TUI_SRC_WIN): Change cast.
1033 * tui/tui-data.c (tui_initialize_static_data): Update.
1034
c2cd8994
TT
10352019-07-17 Tom Tromey <tom@tromey.com>
1036
1037 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1038 location_matches_p.
1039 * tui/tui-source.c (tui_source_window::location_matches_p): New
1040 method.
1041 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1042 method.
1043 * tui/tui-data.h (struct tui_source_window_base)
1044 <location_matches_p>: New method.
1045 (struct tui_source_window, struct tui_disasm_window)
1046 <location_matches_p>: Likewise.
1047
4dde7b34
TT
10482019-07-17 Tom Tromey <tom@tromey.com>
1049
1050 * tui/tui-win.c (tui_set_win_height_command): Rename from
1051 tui_set_win_height.
1052 (tui_set_win_height_command): Remove.
1053
b73dd877
TT
10542019-07-17 Tom Tromey <tom@tromey.com>
1055
1056 * tui/tui-source.c (tui_source_window): New constructor. Add
1057 observer.
1058 (~tui_source_window): New destructor.
1059 (tui_source_window::style_changed): New method.
1060 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1061 (tui_attach_detach_observers): Update.
1062 * tui/tui-data.h (struct tui_source_window): Make constructor not
1063 inline. Add destructor.
1064 (struct tui_source_window) <style_changed>: New method.
1065 <m_observable>: New member.
1066
ae2b5380
TT
10672019-07-17 Tom Tromey <tom@tromey.com>
1068
1069 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1070 * tui/tui-win.c (tui_resize_all): Fix typo.
1071
1ce3e844
TT
10722019-07-17 Tom Tromey <tom@tromey.com>
1073
1074 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1075 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1076 (tui_refresh_all): Remove "list" parameter. Use foreach.
1077 * tui/tui-win.c (window_name_completer): Use foreach.
1078 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1079 (update_tab_width): Likewise.
1080 * tui/tui-layout.c (show_layout): Update.
1081 * tui/tui-data.h (class tui_window_iterator): New.
1082 (struct all_tui_windows): New.
1083 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1084
fe3eaf1c
TT
10852019-07-17 Tom Tromey <tom@tromey.com>
1086
1087 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1088 parameter. Don't reference globals.
1089 (tui_reg_command): Update.
1090
368c1354
TT
10912019-07-17 Tom Tromey <tom@tromey.com>
1092
1093 * tui/tui-regs.c (tui_show_registers): Simplify.
1094
e80cd204
TT
10952019-07-17 Tom Tromey <tom@tromey.com>
1096
1097 * tui/tui-regs.c (tui_show_registers): Update.
1098 (tui_show_register_group): Add win_info parameter.
1099
aca2dd16
TT
11002019-07-17 Tom Tromey <tom@tromey.com>
1101
1102 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1103 Rename from tui_display_reg_element_at_line.
1104 (tui_data_window::display_registers_from_line): Update.
1105 * tui/tui-data.h (struct tui_data_window)
1106 <display_reg_element_at_line>: New method.
1107
517e9505
TT
11082019-07-17 Tom Tromey <tom@tromey.com>
1109
1110 * tui/tui-regs.h (tui_display_registers_from)
1111 (tui_display_registers_from_line): Don't declare.
1112 * tui/tui-windata.c (tui_data_window::display_all_data)
1113 (tui_data_window::refresh_all)
1114 (tui_data_window::do_scroll_vertical): Update.
1115 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1116 from tui_display_registers_from.
1117 (tui_display_reg_element_at_line): Update.
1118 (tui_data_window::display_registers_from_line): Rename from
1119 tui_display_registers_from_line.
1120 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1121 display_registers_from_line>: New methods.
1122
f76d8b19
TT
11232019-07-17 Tom Tromey <tom@tromey.com>
1124
1125 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1126 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1127 from tui_erase_data_content.
1128 (tui_data_window::display_all_data)
1129 (tui_data_window::refresh_all)
1130 (tui_data_window::do_scroll_vertical): Update.
1131 * tui/tui-regs.c (tui_show_registers): Update.
1132 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1133 New method.
1134
b4094625
TT
11352019-07-17 Tom Tromey <tom@tromey.com>
1136
1137 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1138 declare.
1139 * tui/tui-windata.c
1140 (tui_data_window::delete_data_content_windows): Rename from
1141 tui_delete_data_content_windows.
1142 (tui_data_window::display_all_data)
1143 (tui_data_window::do_scroll_vertical): Update.
1144 * tui/tui-data.h (struct tui_data_window)
1145 <delete_data_content_windows>: New method.
1146
c223a729
TT
11472019-07-17 Tom Tromey <tom@tromey.com>
1148
1149 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1150 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1151
50daf268
TT
11522019-07-17 Tom Tromey <tom@tromey.com>
1153
1154 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1155 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1156 from tui_display_all_data.
1157 * tui/tui-win.c
1158 (tui_data_window::do_make_visible_with_new_height): Update.
1159 * tui/tui-regs.c (tui_show_registers): Update.
1160 * tui/tui-layout.c (tui_set_layout): Update.
1161 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1162 method.
1163
df5f8cab
TT
11642019-07-17 Tom Tromey <tom@tromey.com>
1165
1166 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1167 * tui/tui-windata.c (tui_display_data_from): Remove.
1168 (tui_data_window::refresh_all): Update.
1169
80cb6c27
TT
11702019-07-17 Tom Tromey <tom@tromey.com>
1171
1172 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1173 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1174 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1175 tui_display_registers_from_line.
1176 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1177 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1178 "force_display" parameter.
1179
baff0c28
TT
11802019-07-17 Tom Tromey <tom@tromey.com>
1181
1182 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
1183 declare.
1184 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
1185 Rename from tui_first_reg_element_no_inline.
1186 (tui_display_reg_element_at_line)
1187 (tui_display_registers_from_line): Update.
1188 * tui/tui-data.h (struct tui_data_window)
1189 <first_reg_element_no_inline>: New method.
1190
3b23c5f2
TT
11912019-07-17 Tom Tromey <tom@tromey.com>
1192
1193 * tui/tui-windata.c (tui_display_data_from)
1194 (tui_data_window::do_scroll_vertical): Update.
1195 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
1196 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
1197 Rename from tui_line_from_reg_element_no.
1198 (tui_display_registers_from_line): Update.
1199 * tui/tui-data.h (struct tui_data_window)
1200 <line_from_reg_element_no>: New method.
1201
0b5ec218
TT
12022019-07-17 Tom Tromey <tom@tromey.com>
1203
1204 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
1205 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
1206 tui_last_regs_line_no.
1207 (tui_display_reg_element_at_line)
1208 (tui_display_registers_from_line): Update.
1209 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
1210 method.
1211
0807ab7b
TT
12122019-07-17 Tom Tromey <tom@tromey.com>
1213
1214 PR tui/24722:
1215 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
1216 (tui_update_breakpoint_info): Add "being_deleted" parameter.
1217 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1218 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
1219 (tui_update_breakpoint_info): Likewise.
1220 * tui/tui-hooks.c (tui_event_create_breakpoint)
1221 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
1222 Update.
1223
9ad7fdef
TT
12242019-07-17 Tom Tromey <tom@tromey.com>
1225
1226 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
1227
5813316f
TT
12282019-07-17 Tom Tromey <tom@tromey.com>
1229
1230 * tui/tui-winsource.c (tui_update_source_window_as_is)
1231 (tui_update_source_windows_with_addr): Update.
1232 * tui/tui-source.h (tui_set_source_content)
1233 (tui_show_symtab_source): Add "win_info" parameter.
1234 * tui/tui-source.c (tui_set_source_content): Add "win_info"
1235 parameter.
1236 (tui_show_symtab_source): Likewise.
1237
00e264e7
TT
12382019-07-17 Tom Tromey <tom@tromey.com>
1239
1240 * tui/tui-wingeneral.c
1241 (tui_check_and_display_highlight_if_needed): Check can_highlight.
1242
06210ce4
TT
12432019-07-17 Tom Tromey <tom@tromey.com>
1244
1245 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
1246 (struct tui_cmd_window) <can_scroll>: New method.
1247 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
1248 method.
1249
381befee
TT
12502019-07-17 Tom Tromey <tromey@adacore.com>
1251
1252 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
1253 do_field_signed>: Rename. Change type of "value".
1254 * ui-out.c (ui_out::field_signed): Rename from field_int.
1255 Change type of "value".
1256 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
1257 type of "value".
1258 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
1259 do_field_int. Change type of "value".
1260 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
1261 do_field_int. Change type of "value".
1262 * tracepoint.c (trace_status_mi, tfind_1)
1263 (print_one_static_tracepoint_marker): Update.
1264 * thread.c (print_thread_info_1, print_selected_thread_frame):
1265 Update.
1266 * stack.c (print_frame, print_frame_info): Update.
1267 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
1268 Update.
1269 * source.c (print_source_lines_base): Update.
1270 * skip.c (info_skip_command): Update.
1271 * record-btrace.c (btrace_ui_out_decode_error)
1272 (btrace_call_history_src_line): Update.
1273 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
1274 Update.
1275 * progspace.c (print_program_space): Update.
1276 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
1277 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
1278 do_field_int. Change type of "value".
1279 * mi/mi-out.c (mi_ui_out::do_table_begin)
1280 (mi_ui_out::do_table_header): Update.
1281 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
1282 type of "value".
1283 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
1284 (mi_cmd_data_list_changed_registers, output_register)
1285 (mi_cmd_data_read_memory, mi_load_progress)
1286 (mi_cmd_trace_frame_collected): Update.
1287 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
1288 Update.
1289 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1290 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
1291 (mi_cmd_var_list_children, varobj_update_one): Update.
1292 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
1293 (mi_cmd_stack_list_args, list_arg_or_local): Update.
1294 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
1295 * inferior.c (print_inferior): Update.
1296 * gdb_bfd.c (print_one_bfd): Update.
1297 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1298 Update.
1299 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
1300 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
1301 do_field_int. Change type of "value".
1302 * cli-out.c (cli_ui_out::do_field_signed): Rename from
1303 do_field_int. Change type of "value".
1304 * breakpoint.c (watchpoint_check, print_breakpoint_location)
1305 (print_one_breakpoint_location, print_it_catch_fork)
1306 (print_one_catch_fork, print_it_catch_vfork)
1307 (print_one_catch_vfork, print_it_catch_solib)
1308 (print_it_catch_exec, print_it_ranged_breakpoint)
1309 (print_mention_watchpoint, print_mention_masked_watchpoint)
1310 (bkpt_print_it, update_static_tracepoint): Update.
1311 * break-catch-throw.c (print_it_exception_catchpoint): Update.
1312 * break-catch-syscall.c (print_it_catch_syscall): Update.
1313 * ada-tasks.c (print_ada_task_info): Update.
1314 * ada-lang.c (print_it_exception, print_mention_exception):
1315 Update.
1316
6b78c3f8
AB
13172019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 PR breakpoints/24541
1320 * gdbarch.c: Regenerate.
1321 * gdbarch.h: Regenerate.
1322 * gdbarch.sh: Adjust return type and parameter types for
1323 'stap_adjust_register'.
1324 (i386_stap_adjust_register): Adjust signature and return new
1325 register name.
1326 * stap-probe.c (stap_parse_register_operand): Adjust use of
1327 'gdbarch_stap_adjust_register'.
1328
d72a9b85
TT
13292019-07-17 Tom Tromey <tromey@adacore.com>
1330
1331 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
1332 declare VEC.
1333 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
1334 std::vector.
1335 (struct s390_process_info): Add initializers.
1336 (s390_add_process): Use new.
1337 (s390_linux_nat_target::low_forget_process): Use delete.
1338 (s390_linux_nat_target::low_new_fork)
1339 (s390_linux_nat_target::stopped_by_watchpoint)
1340 (s390_linux_nat_target::low_prepare_to_resume)
1341 (s390_linux_nat_target::insert_watchpoint)
1342 (s390_linux_nat_target::insert_hw_breakpoint)
1343 (s390_linux_nat_target::remove_watchpoint)
1344 (s390_linux_nat_target::remove_hw_breakpoint): Update.
1345
206e6c58
JB
13462019-07-16 John Baldwin <jhb@FreeBSD.org>
1347
1348 * aarch64-fbsd-nat.c: Include regcache.h.
1349 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
1350 argument.
1351 (aarch64_fbsd_nat_target::fetch_registers)
1352 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
1353 variable.
1354 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
1355
cbde90f2
JB
13562019-07-16 John Baldwin <jhb@FreeBSD.org>
1357
1358 * fbsd-nat.c: Include gdbarch.h.
1359
07128006
TT
13602019-07-15 Tom Tromey <tromey@adacore.com>
1361
1362 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
1363
1f77b012
TT
13642019-07-15 Tom Tromey <tromey@adacore.com>
1365
1366 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
1367 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
1368 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
1369 * cli-out.c (cli_ui_out::do_field_int): New method.
1370 * ui-out.c (ui_out::field_unsigned): New method.
1371 * symfile.c (generic_load): Use field_unsigned.
1372 (print_transfer_performance): Likewise.
1373 * record-btrace.c (ui_out_field_uint): Remove.
1374 (btrace_call_history_insn_range, btrace_call_history): Use
1375 field_unsigned.
1376 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1377 field_unsigned.
1378 * ui-out.h (class ui_out) <field_unsigned>: New method.
1379 <do_field_unsigned>: Likewise.
1380
33eca680
TT
13812019-07-15 Tom Tromey <tromey@adacore.com>
1382
1383 * mi/mi-main.c (list_available_thread_groups): Use field_string.
1384 * mi/mi-interp.c (mi_memory_changed): Use field_string.
1385 * target.c (flash_erase_command): Use field_string.
1386 * infrun.c (print_signal_received_reason): Use field_string.
1387 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
1388 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
1389 field_string.
1390 * ada-tasks.c (print_ada_task_info): Use field_string.
1391
ca8d69be
TT
13922019-07-15 Tom Tromey <tromey@adacore.com>
1393
1394 * target.c (flash_erase_command): Use field_core_addr.
1395 * symfile.c (generic_load): Use field_core_addr.
1396 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1397 Use field_core_addr.
1398 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
1399 field_core_addr.
1400
0d4e84ed
AB
14012019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1402
1403 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
1404 value if its desired type is smaller than a CORE_ADDR and signed.
1405
9a49df9d
AB
14062019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
1409 of changes to field names, and use new is_reference field to
1410 decide if a property is a reference or not.
1411 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
1412 field.
1413 (struct dwarf2_property_baton): Update header comment, rename
1414 'referenced_type' to 'property_type' and update comments.
1415 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
1416 default property type, store in property baton, update to take
1417 accound of renamed field.
1418 (read_func_scope): Update call to attr_to_dynamic_prop.
1419 (read_array_type): Likewise.
1420 (dwarf2_per_cu_addr_sized_int_type): New function.
1421 (read_subrange_index_type): Move type finding code to
1422 dwarf2_per_cu_addr_sized_int_type.
1423 (read_subrange_type): Update calls to attr_to_dynamic_prop.
1424 (dwarf2_per_cu_addr_type): New function.
1425 (set_die_type): Update calls to attr_to_dynamic_prop.
1426
b86352cf
AB
14272019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1428
1429 * dwarf2read.c (read_subrange_index_type): New function.
1430 (read_subrange_type): Move code into new function and call it.
1431 * gdbtypes.c (create_range_type): Add some asserts.
1432
603490bf
AB
14332019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1434
1435 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
1436 update return statements.
1437 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
1438 declaration, and update comment to match.
1439 * gdbtypes.c (resolve_dynamic_array): Update call to
1440 dwarf2_evaluate_property to match new return type.
1441
592f9d27
AB
14422019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * valarith.c (value_subscripted_rvalue): Change lowerbound
1445 parameter type from int to LONGEST.
1446 * value.h (value_subscripted_rvalue): Likewise in declaration.
1447
60cfcb20
AB
14482019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1449
1450 * cli/cli-utils.c (info_print_command_completer): New function.
1451 * cli/cli-utils.h: Add 'completer.h' include, and forward
1452 declaration for 'struct cmd_list_element'.
1453 (info_print_command_completer): Declare.
1454 * stack.c (_initialize_stack): Add completer for 'info locals' and
1455 'info args'.
1456 * symtab.c (_initialize_symtab): Add completer for 'info
1457 variables' and 'info functions'.
1458 * NEWS: Mention completion for additional info commands.
1459
b16507e0
AB
14602019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1461
1462 * cli/cli-utils.c (extract_info_print_args): Delete.
1463 (extract_arg_maybe_quoted): Delete.
1464 (info_print_options_defs): New variable.
1465 (make_info_print_options_def_group): New function.
1466 (extract_info_print_options): Define new function.
1467 * cli/cli-utils.h (extract_info_print_args): Delete.
1468 (struct info_print_options): New structure.
1469 (extract_info_print_options): Declare new function.
1470 * stack.c (info_locals_command): Update to use new
1471 extract_info_print_options, also add a header comment.
1472 (info_args_command): Likewise.
1473 * symtab.c (info_variables_command): Likewise.
1474 (info_functions_command): Likewise.
1475
021d8588
AB
14762019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
1479 to extract string arguments.
1480 * common/common-utils.c (extract_string_maybe_quoted): New function.
1481 * common/common-utils.h (extract_string_maybe_quoted): Declare.
1482
b777eb6d
TT
14832019-07-11 Tom Tromey <tromey@adacore.com>
1484
1485 * main.c (get_init_files): Use GDBINIT, not gdbinit.
1486 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
1487 * top.h (gdbinit): Don't declare.
1488 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
1489 into...
1490 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
1491 * top.c (gdb_init): Don't call init_cli_cmds.
1492 (gdbinit): Remove.
1493 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
1494
72ee03ff
TT
14952019-07-11 Tom Tromey <tromey@adacore.com>
1496
1497 * python/py-inferior.c (add_thread_object): Don't use thread_obj
1498 after it has been moved.
1499
00db9531
SM
15002019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1501
1502 * valops.c (value_must_coerce_to_target): Change return type to
1503 bool.
1504 * value.h (value_must_coerce_to_target): Likewise.
1505
f2478a7e
SM
15062019-07-10 Simon Marchi <simon.marchi@efficios.com>
1507
1508 * breakpoint.c (is_hardware_watchpoint): Remove
1509 forward-declaration.
1510 (is_masked_watchpoint): Change return type to bool.
1511 (is_tracepoint): Likewise.
1512 (is_breakpoint): Likewise.
1513 (is_hardware_watchpoint): Likewise.
1514 (is_watchpoint): Likewise.
1515 (is_no_memory_software_watchpoint): Likewise.
1516 (is_catchpoint): Likewise.
1517 (breakpoint_1): Make FILTER parameter's return type bool.
1518 is_masked_watchpoint): Change return type to bool.
1519 (save_breakpoints): Make FILTER parameter's return type bool.
1520 * breakpoint.h (is_breakpoint): Change return type to bool.
1521 (is_watchpoint): Likewise.
1522 (is_catchpoint): Likewise.
1523 (is_tracepoint): Likewise.
1524
0d12e84c
TT
15252019-07-10 Tom Tromey <tom@tromey.com>
1526
1527 * defs.h: Don't include gdbarch.h.
1528 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
1529 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
1530 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
1531 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
1532 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
1533 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
1534 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
1535 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
1536 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
1537 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
1538 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
1539 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
1540 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
1541 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
1542 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
1543 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
1544 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
1545 record-btrace.c, record.h, regcache-dump.c, regcache.h,
1546 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
1547 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
1548 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
1549 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
1550 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
1551 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
1552 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
1553 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
1554 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
1555
f06f1252
TT
15562019-07-10 Tom Tromey <tromey@adacore.com>
1557
1558 * ada-lang.h (is_ada_exception_catchpoint): Declare.
1559 * breakpoint.c (init_ada_exception_breakpoint): Register as
1560 bp_catchpoint.
1561 (print_one_breakpoint_location, print_one_breakpoint): Use
1562 is_ada_exception_catchpoint.
1563 * ada-lang.c (class ada_catchpoint_location): Pass
1564 bp_loc_software_breakpoint to bp_location constructor.
1565 (is_ada_exception_catchpoint): New function.
1566
7a5d944b
TT
15672019-07-10 Tom Tromey <tromey@adacore.com>
1568
1569 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
1570 VEC.
1571 (struct arm_exidx_entry): New method operator<.
1572 (struct arm_exidx_data) <section_maps>: Change type.
1573 (arm_exidx_data_free): Remove.
1574 (arm_exidx_data_key): Change type. Move lower.
1575 (arm_exidx_new_objfile): Update.
1576 (arm_compare_exidx_entries): Remove.
1577 (arm_find_exidx_entry, _initialize_arm_tdep)
1578
48c66e1d
TT
15792019-07-10 Tom Tromey <tromey@adacore.com>
1580
1581 * solib-spu.c (ocl_program_data_key): Change type.
1582 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
1583 Update.
1584
a269fbf1
TT
15852019-07-10 Tom Tromey <tromey@adacore.com>
1586
1587 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
1588 (struct solib_aix_inferior_data) <library_list>: Change type.
1589 (solib_aix_inferior_data_handle): Change type.
1590 (get_solib_aix_inferior_data): Update.
1591 (solib_aix_free_library_list): Remove.
1592 (library_list_start_library): Update.
1593 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
1594 return type.
1595 (solib_aix_get_library_list)
1596 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
1597 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
1598
c294730c
TT
15992019-07-10 Tom Tromey <tromey@adacore.com>
1600
1601 * solib-dsbt.c (struct dsbt_info): Add initializers.
1602 (solib_dsbt_pspace_data): Change type.
1603 (dsbt_pspace_data_cleanup): Remove.
1604 (get_dsbt_info, _initialize_dsbt_solib): Update.
1605
9d52077d
TT
16062019-07-10 Tom Tromey <tromey@adacore.com>
1607
1608 * spu-tdep.c (spu_overlay_data): Change type.
1609 (spu_get_overlay_table, spu_overlay_new_objfile)
1610 (_initialize_spu_tdep): Update.
1611
22a20dca
TT
16122019-07-10 Tom Tromey <tromey@adacore.com>
1613
1614 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
1615 destructor.
1616 (dbx_objfile_data_key): Change type and declare later.
1617 (DBX_SYMFILE_INFO): Rewrite.
1618 * dbxread.c (dbx_objfile_data_key): Change type.
1619 (dbx_symfile_init): Update.
1620 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
1621 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1622 (stabsect_build_psymtabs, _initialize_dbxread): Update.
1623
cb60f420
TT
16242019-07-10 Tom Tromey <tromey@adacore.com>
1625
1626 * jit.c (jit_program_space_key): Change type. Move lower.
1627 (get_jit_program_space_data): Update.
1628 (jit_program_space_data_cleanup): Remove.
1629 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
1630 Update.
1631 (struct jit_program_space_data): Add initializers.
1632
51df2ae3
TT
16332019-07-10 Tom Tromey <tromey@adacore.com>
1634
1635 * solib-darwin.c (struct darwin_info): Add initializers.
1636 (solib_darwin_pspace_data): Change type.
1637 (darwin_pspace_data_cleanup): Remove.
1638 (get_darwin_info, _initialize_darwin_solib): Update.
1639
18101a35
TT
16402019-07-10 Tom Tromey <tromey@adacore.com>
1641
1642 * remote-sim.c (struct sim_inferior_data): Add initializers,
1643 constructor, and destructor.
1644 (sim_inferior_data_key): Change type. Move lower.
1645 (check_for_duplicate_sim_descriptor): Update.
1646 (get_sim_inferior_data): Use new. Update.
1647 (~sim_inferior_data_cleanup): Rename from
1648 sim_inferior_data_cleanup. Simplify.
1649 (gdbsim_close_inferior, simulator_command)
1650 (sim_command_completer, _initialize_remote_sim): Update.
1651 (next_pid, INITIAL_PID): Move earlier.
1652
05b08ac1
TT
16532019-07-10 Tom Tromey <tromey@adacore.com>
1654
1655 * python/python-internal.h (create_thread_object): Return
1656 gdbpy_ref.
1657 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
1658 * python/py-inferior.c (struct threadlist_entry): Add
1659 constructor.
1660 <thread_obj>: Now a gdbpy_ref.
1661 (thread_to_thread_object): Update.
1662 (add_thread_object): Use new.
1663 (delete_thread_object): Use delete.
1664 (infpy_threads): Update.
1665 (py_free_inferior): Update. Construct "inf_obj" after acquiring
1666 GIL.
1667
32372d80
TT
16682019-07-10 Tom Tromey <tromey@adacore.com>
1669
1670 * valops.c (value_cast): Specialize error message for Ada.
1671
5c458ae8
SM
16722019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1673
1674 * breakpoint.c (breakpoint_1): Update doc and parameter names.
1675
4c462cb0
SM
16762019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1677
1678 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
1679 bpstat_should_step): Return bool, adjust comments.
1680 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
1681 bpstat_should_step): Likewise.
1682
89abbcc2
AH
16832019-07-10 Alan Hayward <alan.hayward@arm.com>
1684
1685 * features/Makefile: Use feature target descriptions for Arm.
1686 * features/arm/arm-core.c: Generate new file.
1687 * features/arm/arm-fpa.c: Likewise.
1688 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
1689 * features/arm/arm-m-profile.c: Likewise.
1690 * features/arm/arm-vfpv2.c: Likewise.
1691 * features/arm/arm-vfpv3.c: Likewise.
1692 * features/arm/xscale-iwmmxt.c: Likewise.
1693 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
1694
166a82be
AH
16952019-07-10 Alan Hayward <alan.hayward@arm.com>
1696
1697 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
1698 ptrace earlier.
1699
9fb4c7e9
AH
17002019-07-10 Alan Hayward <alan.hayward@arm.com>
1701
1702 * features/aarch64-pauth.c: Regenerate.
1703
e2d0f980
SM
17042019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
1705
1706 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
1707 bool.
1708 (bpstat_what): Use false instead of 0.
1709
a38118e5
PA
17102019-07-09 Pedro Alves <palves@redhat.com>
1711
1712 * break-catch-throw.c (is_exception_catchpoint): New.
1713 * breakpoint.c (print_one_breakpoint_location): New parameter
1714 'raw_loc'. Handle it. Use
1715 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
1716 looking at the breakpoint's type.
1717 (print_one_breakpoint): If handling "maint info breakpoints", also
1718 print locations of exception catchpoints.
1719 * breakpoint.h (is_exception_catchpoint): Declare.
1720
cb1e4e32
PA
17212019-07-09 Pedro Alves <palves@redhat.com>
1722
1723 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
1724 "addr" field.
1725 (allocate_location_exception_catchpoint): New.
1726 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
1727 (initialize_throw_catchpoint_ops): Install
1728 allocate_location_exception_catchpoint as allocate_location
1729 method.
1730 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
1731 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
1732 bp_loc_other.
1733 (breakpoint_address_is_meaningful): Delete.
1734 (bl_address_is_meaningful): New.
1735 (breakpoint_locations_match): Adjust comment.
1736 (bp_location_from_bp_type): New, factored out of...
1737 (bp_location::bp_location(breakpoint *)): ... this.
1738 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
1739 factored out of...
1740 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
1741 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
1742 breakpoint_address_is_meaningful.
1743 (bp_locations_compare): Adjust comment.
1744 (update_global_location_list): Use bl_address_is_meaningful
1745 instead of breakpoint_address_is_meaningful.
1746 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
1747 explicit.
1748 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
1749 * python/py-breakpoint.c (bppy_get_location): No longer check
1750 whether location is null.
1751
b58a68fe
PA
17522019-07-09 Pedro Alves <palves@redhat.com>
1753
1754 PR c++/15468
1755 * breakpoint.c (print_one_breakpoint_location): Remove
1756 single-location assert.
1757
268a13a5
TT
17582019-07-09 Tom Tromey <tom@tromey.com>
1759
1760 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
1761 * configure: Rebuild.
1762 * configure.ac: Change common to gdbsupport.
1763 * gdbsupport: Rename from common.
1764 * acinclude.m4: Change common to gdbsupport.
1765 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
1766 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
1767 gdbsupport.
1768 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
1769 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
1770 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
1771 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
1772 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
1773 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
1774 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
1775 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
1776 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
1777 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
1778 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
1779 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
1780 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
1781 coff-pe-read.c, command.h, compile/compile-c-support.c,
1782 compile/compile-c.h, compile/compile-cplus-symbols.c,
1783 compile/compile-cplus-types.c, compile/compile-cplus.h,
1784 compile/compile-loc2c.c, compile/compile.c, completer.c,
1785 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
1786 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
1787 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
1788 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
1789 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
1790 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
1791 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
1792 features/aarch64-core.c, features/aarch64-fpu.c,
1793 features/aarch64-pauth.c, features/aarch64-sve.c,
1794 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
1795 features/i386/32bit-core.c, features/i386/32bit-linux.c,
1796 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
1797 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
1798 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
1799 features/i386/64bit-core.c, features/i386/64bit-linux.c,
1800 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
1801 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
1802 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
1803 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
1804 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
1805 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
1806 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
1807 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
1808 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
1809 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
1810 go32-nat.c, guile/guile.c, guile/scm-ports.c,
1811 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
1812 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
1813 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
1814 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
1815 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
1816 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
1817 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
1818 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
1819 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
1820 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
1821 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
1822 minsyms.c, mips-linux-tdep.c, namespace.h,
1823 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
1824 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
1825 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
1826 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
1827 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
1828 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
1829 nat/linux-waitpid.c, nat/mips-linux-watch.c,
1830 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
1831 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
1832 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
1833 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
1834 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
1835 procfs.c, producer.c, progspace.h, psymtab.h,
1836 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
1837 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
1838 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
1839 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
1840 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
1841 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
1842 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
1843 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
1844 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
1845 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
1846 target-memory.c, target.c, target.h, target/waitstatus.c,
1847 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
1848 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
1849 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
1850 unittests/array-view-selftests.c,
1851 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
1852 unittests/common-utils-selftests.c,
1853 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
1854 unittests/format_pieces-selftests.c,
1855 unittests/function-view-selftests.c,
1856 unittests/lookup_name_info-selftests.c,
1857 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
1858 unittests/mkdir-recursive-selftests.c,
1859 unittests/observable-selftests.c,
1860 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
1861 unittests/parse-connection-spec-selftests.c,
1862 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
1863 unittests/scoped_fd-selftests.c,
1864 unittests/scoped_mmap-selftests.c,
1865 unittests/scoped_restore-selftests.c,
1866 unittests/string_view-selftests.c, unittests/style-selftests.c,
1867 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
1868 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
1869 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
1870 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
1871 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
1872 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
1873
5b0e2db4
AB
18742019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * linespec.c (decode_digits_list_mode): Set explicit_line to a
1877 bool value.
1878 (decode_digits_ordinary): Set explicit_line field in sal.
1879 * symtab.c (skip_prologue_sal): Don't skip prologue for a
1880 symtab_and_line that was set on an explicit line number in
1881 assembler code. Do always update the recorded symtab and line if
1882 we do skip the prologue.
1883
0ba852ab
AB
18842019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 * breakpoint.c (set_breakpoint_location_function): Remove
1887 explicit_loc parameter.
1888 (momentary_breakpoint_from_master): Update call to
1889 set_breakpoint_location_function.
1890 (add_location_to_breakpoint): Likewise.
1891
b3a7d171
AB
18922019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1893
1894 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
1895 required features based on default bfd type when no specific bfd
1896 is present.
1897
1f6f6e21
PW
18982019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1899
1900 * NEWS: Mention that GDB printf and eval commands can now print
1901 C-style and Ada-style convenience var strings without
1902 calling the inferior.
1903 * printcmd.c (printf_c_string): Locally print GDB internal var
1904 instead of transiting via the inferior.
1905 (printf_wide_c_string): Likewise.
1906
19072019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
1908
1909 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
1910
0598af48
TT
19112019-07-04 Tom Tromey <tom@tromey.com>
1912
1913 PR tui/24724:
1914 * tui/tui-winsource.c (tui_clear_source_content): Update.
1915 (tui_source_window_base::set_is_exec_point_at): Fix comment.
1916 (tui_update_breakpoint_info): Update.
1917 (tui_set_exec_info_content): Update.
1918 * tui/tui-source.c (tui_set_source_content_nil): Update.
1919 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
1920 has_break.
1921 * tui/tui-data.h (enum tui_bp_flag): New.
1922 (tui_bp_flags): New enum flags type.
1923 (struct tui_source_element) <break_mode>: Change type. Rename
1924 from has_break.
1925 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
1926 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
1927 constants.
1928 * tui/tui-winsource.h: Fix comment.
1929
350fab54
AH
19302019-07-04 Alan Hayward <alan.hayward@arm.com>
1931
1932 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
1933 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
1934 (store_fpregs_to_thread)
1935 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1936 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
1937 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
1938 (IWMMXT_REGS_SIZE): Add define.
1939 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
1940 (fetch_vfp_regs, store_vfp_regs)
1941 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
1942 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
1943
f0452268
AH
19442019-07-04 Alan Hayward <alan.hayward@arm.com>
1945
1946 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
1947 defines.
1948 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
1949 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
1950 (ARM_INT_REGISTER_SIZE): ...to this.
1951 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
1952 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
1953 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
1954 (arm_linux_collect_gregset, supply_nwfpe_register)
1955 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
1956 defines.
1957 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
1958 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
1959 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
1960 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
1961 (arm_return_in_memory, arm_store_return_value)
1962 (arm_get_longjmp_target, arm_register_g_packet_guesses)
1963 (arm_record_ld_st_multiple): Likewise.
1964 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
1965 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
1966
e935475c
AH
19672019-07-04 Alan Hayward <alan.hayward@arm.com>
1968
1969 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
1970 AARCH64_DISPLACED_MODIFIED_INSNS.
1971 * aarch64-tdep.c (struct aarch64_displaced_step_data)
1972 (aarch64_displaced_step_copy_insn): Likewise.
1973 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1974 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
1975 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1976 ARM_DISPLACED_MODIFIED_INSNS.
1977 * arm-tdep.c (arm_gdbarch_init): Likewise.
1978 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
1979 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
1980 (struct arm_displaced_step_closure): Use
1981 ARM_DISPLACED_MODIFIED_INSNS.
1982
df0bb381
AH
19832019-07-04 Alan Hayward <alan.hayward@arm.com>
1984
1985 * features/Makefile: Remove unused xml files.
1986 * features/aarch64.xml: Remove.
1987 * features/i386/amd64-avx-avx512-linux.xml: Remove.
1988 * features/i386/amd64-avx-avx512.xml: Remove.
1989 * features/i386/amd64-avx-linux.xml: Remove.
1990 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
1991 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
1992 * features/i386/amd64-avx-mpx-linux.xml: Remove.
1993 * features/i386/amd64-avx-mpx.xml: Remove.
1994 * features/i386/amd64-avx.xml: Remove.
1995 * features/i386/amd64-linux.xml: Remove.
1996 * features/i386/amd64-mpx-linux.xml: Remove.
1997 * features/i386/amd64-mpx.xml: Remove.
1998 * features/i386/amd64.xml: Remove.
1999 * features/i386/i386-avx-avx512-linux.xml: Remove.
2000 * features/i386/i386-avx-avx512.xml: Remove.
2001 * features/i386/i386-avx-linux.xml: Remove.
2002 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2003 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2004 * features/i386/i386-avx-mpx-linux.xml: Remove.
2005 * features/i386/i386-avx-mpx.xml: Remove.
2006 * features/i386/i386-avx.xml: Remove.
2007 * features/i386/i386-linux.xml: Remove.
2008 * features/i386/i386-mmx-linux.xml: Remove.
2009 * features/i386/i386-mmx.xml: Remove.
2010 * features/i386/i386-mpx-linux.xml: Remove.
2011 * features/i386/i386-mpx.xml: Remove.
2012 * features/i386/i386.xml: Remove.
2013 * features/i386/x32-avx-avx512-linux.xml: Remove.
2014 * features/i386/x32-avx-linux.xml: Remove.
2015 * features/i386/x32-linux.xml: Remove.
2016
edd6266a
AH
20172019-07-04 Alan Hayward <alan.hayward@arm.com>
2018
2019 * regformats/aarch64.dat: Remove.
2020 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2021 * regformats/i386/amd64-avx-linux.dat: Remove.
2022 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2023 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2024 * regformats/i386/amd64-linux.dat: Remove.
2025 * regformats/i386/amd64-mpx-linux.dat: Remove.
2026 * regformats/i386/amd64.dat: Remove.
2027 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2028 * regformats/i386/i386-avx-linux.dat: Remove.
2029 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2030 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2031 * regformats/i386/i386-linux.dat: Remove.
2032 * regformats/i386/i386-mmx-linux.dat: Remove.
2033 * regformats/i386/i386-mpx-linux.dat: Remove.
2034 * regformats/i386/i386.dat: Remove.
2035 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2036 * regformats/i386/x32-avx-linux.dat: Remove.
2037 * regformats/i386/x32-linux.dat: Remove.
2038
2b40fda7
AH
20392019-07-04 Alan Hayward <alan.hayward@arm.com>
2040
2041 * aarch64-tdep.c: Remove xml self tests.
2042 * amd64-linux-tdep.c: Likewise.
2043 * amd64-tdep.c: Likewise.
2044 * i386-linux-tdep.c: Likewise.
2045 * i386-tdep.c: Likewise.
2046
5f4ba3e7
PA
20472019-07-03 Pedro Alves <palves@redhat.com>
2048
2049 PR cli/24732
2050 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2051 (pipe_cmd_option_defs): New.
2052 (make_pipe_cmd_options_def_group): New.
2053 (pipe_command): Use gdb::option::process_options.
2054 (pipe_command_completer): New function.
2055 (_initialize_cli_cmds): Install completer for "pipe" command.
2056
3d9be6f5
PA
20572019-07-03 Pedro Alves <palves@redhat.com>
2058
2059 * cli/cli-option.c (union option_value) <string>: New field.
2060 (struct option_def_and_value): Add ctor, move ctor, dtor and
2061 use DISABLE_COPY_AND_ASSIGN.
2062 (option_def_and_value::clear_value): New.
2063 (parse_option, save_option_value_in_ctx, get_val_type_str)
2064 (add_setshow_cmds_for_options): Handle var_string.
2065 * cli-option.h (union option_def::var_address) <string>: New
2066 field.
2067 (struct string_option_def): New.
2068 * maint-test-options.c (struct test_options_opts): Add default
2069 ctor and use DISABLE_COPY_AND_ASSIGN.
2070 <string_opt>: New field.
2071 (test_options_opts::~test_options_opts): New.
2072 (test_options_opts::dump): Also dump "-string".
2073 (test_options_option_defs): Install "string.
2074
41fc454c
PA
20752019-07-03 Pedro Alves <palves@redhat.com>
2076
2077 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2078 option_value with a null enumeration.
2079 (complete_options): Save the option values in the context.
2080 (save_option_value_in_ctx): New, factored out from ...
2081 (process_options): ... here.
2082 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2083 of the function.
2084 * maint-test-options.c (test_options_opts::dump): New, factored
2085 out from ...
2086 (maintenance_test_options_command_mode): ... here.
2087 (maintenance_test_options_command_completion_result): Delete.
2088 (maintenance_test_options_command_completion_text): Update
2089 comment.
2090 (maintenance_show_test_options_completion_result): Change
2091 prototype. Just print
2092 maintenance_test_options_command_completion_text.
2093 (save_completion_result): New.
2094 (maintenance_test_options_completer_mode): Pass options context to
2095 complete_options, and then save a dump.
2096 (_initialize_maint_test_options): Use add_cmd to install "maint
2097 show test-options-completion-result".
2098
fdbc9870
PA
20992019-07-03 Pedro Alves <palves@redhat.com>
2100
2101 * NEWS (New commands): Mention "with" and "maint with".
2102 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2103 (with_command, with_command_completer): New.
2104 (pipe_command): Adjust to new repeat_previous
2105 interface.
2106 (_initialize_cli_cmds): Install the "with" command and its "w"
2107 alias.
2108 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2109 declarations.
2110 * cli/cli-setshow.c (parse_cli_var_uinteger)
2111 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2112 argument strings for all var_types.
2113 (get_setshow_command_value_string): New, factored out from ...
2114 (do_show_command): ... this.
2115 * cli/cli-setshow.h: Include <string>.
2116 (get_setshow_command_value_string): Declare.
2117 * command.h (repeat_previous): Now returns const char *. Adjust
2118 comment.
2119 * maint.c: Include "cli/cli-cmds.h".
2120 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2121 (_initialize_maint_cmds): Register the "maintenance with" command.
2122 * top.c (repeat_previous): Move bits from pipe_command here:
2123 Return the saved command line, if any; error out if there's no
2124 command to relaunch.
2125
c6ac8931
PA
21262019-07-03 Pedro Alves <palves@redhat.com>
2127
2128 * NEWS (New commands): Mention "maint set/show test-settings"
2129 instead of "maint test-settings".
2130 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2131 (maintenance_test_settings_set_list): Rename to ...
2132 (maintenance_set_test_settings_list): ... this.
2133 (maintenance_test_settings_show_list): Rename to ...
2134 (maintenance_show_test_settings_list): ... this.
2135 (maintenance_test_settings_cmd): Delete.
2136 (maintenance_test_settings_set_cmd): ...
2137 (maintenance_set_test_settings_cmd): ... this.
2138 (maintenance_test_settings_show_cmd): ...
2139 (maintenance_show_test_settings_cmd): ... this.
2140 (maintenance_test_settings_show_value_cmd):
2141 (maintenance_show_test_settings_value_cmd): ... this.
2142 (_initialize_maint_test_settings): No longer install the "maint
2143 test-settings" prefix command. Rename "maint test-settings set"
2144 to "maint set test-settings", and "maint test-settings show" to
2145 "maint show test-settings". Adjust all subcommands.
2146
d1fcf2fd
PA
21472019-07-03 Pedro Alves <palves@redhat.com>
2148
2149 * maint-test-settings.c: Fix file's intro comment. Replace all
2150 references to "test-options" with references to "test-settings",
2151 in comments.
2152
970f9d09
PA
21532019-07-03 Pedro Alves <palves@redhat.com>
2154
2155 * maint-test-settings.c (maintenance_test_settings_xxx)
2156 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2157 New.
2158 (maintenance_test_settings_enums): Use them.
2159 (maintenance_test_settings_enum): Default to
2160 maintenance_test_settings_xxx.
2161 (_initialize_maint_test_settings): Initialize
2162 MAINTENANCE_TEST_SETTINGS_FILENAME.
2163
f3869b1a
SM
21642019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2165
2166 * breakpoint.h (remove_breakpoints_inf): Change return type to
2167 void, move function documentation here.
2168 * breakpoint.c (remove_breakpoints_inf): Change return type to
2169 void, move function documentation to header.
2170
54d66006
PA
21712019-07-02 Pedro Alves <palves@redhat.com>
2172
2173 * NEWS (Completion improvements): Mention "info threads".
2174 * thread.c (struct info_threads_opts, info_threads_option_defs)
2175 (make_info_threads_options_def_group): New.
2176 (info_threads_command): Use gdb::option::process_options.
2177 (info_threads_command_completer): New.
2178 (_initialize_thread): Use gdb::option::build_help to build the
2179 help text for "info threads".
2180
854f6088
SM
21812019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2182
2183 * defs.h (generic_load): Move from here...
2184 * symfile.h (generic_load): ... to here. Rename name parameter
2185 to args.
2186 * symfile.c (generic_load): Add comment.
2187
54ee4252
TT
21882019-07-01 Tom Tromey <tromey@adacore.com>
2189
2190 * dwarf2read.c
2191 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
2192 declaration of without_params. Fix formatting.
2193
65392b3e
TT
21942019-07-01 Tom Tromey <tromey@adacore.com>
2195
2196 * ada-exp.y (find_primitive_type): Update.
2197 * ada-lang.h (ada_lookup_symbol): Update.
2198 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
2199 parameter.
2200 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
2201
7d7571f0
SDJ
22022019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2203
2204 PR breakpoints/24541
2205 * gdbarch.c: Regenerate.
2206 * gdbarch.h: Regenerate.
2207 * gdbarch.sh: Add 'stap_adjust_register'.
2208 * i386-tdep.c: Include '<unordered_set>'.
2209 (i386_stap_adjust_register): New function.
2210 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
2211 * stap-probe.c (stap_parse_register_operand): Call
2212 'gdbarch_stap_adjust_register'.
2213
5af5392a
SDJ
22142019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
2215
2216 PR python/24742
2217 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
2218 * python/python.c (do_start_initialization): Use 'xmalloc'
2219 instead of 'PyMem_Malloc'.
2220
10d06d82
TT
22212019-06-28 Tom Tromey <tromey@adacore.com>
2222
2223 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
2224 for Ada.
2225
1b7f24cd
TT
22262019-06-27 Tom Tromey <tromey@adacore.com>
2227
2228 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
2229 objfile_key.
2230 (arm_find_mapping_symbol, arm_record_special_symbol)
2231 (_initialize_arm_tdep): Update.
2232 (arm_objfile_data_free): Remove.
2233
3d507ff2
TT
22342019-06-27 Tom Tromey <tromey@adacore.com>
2235
2236 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
2237 to cp_print_static_field.
2238
762c164d
TT
22392019-06-26 Tom Tromey <tromey@adacore.com>
2240
2241 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
2242 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
2243 declare.
2244
aa2f9bcf
AH
22452019-06-26 Alan Hayward <alan.hayward@arm.com>
2246
2247 * features/aarch64-core.c (create_feature_aarch64_core):
2248 Regenerate.
2249 * features/aarch64-core.xml: Add cpsr flags.
2250
3426ae57
AH
22512019-06-26 Alan Hayward <alan.hayward@arm.com>
2252
2253 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
2254 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
2255
4838e44c
SM
22562019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2257
2258 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
2259 field.
2260 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
2261 use.
2262 (arm_record_special_symbol): Don't insert new symbol in sorted
2263 position, push it at the end.
2264
54cc7474
SM
22652019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
2266
2267 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
2268 (arm_mapping_symbol_s): Remove.
2269 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
2270 (arm_mapping_symbol_vec): New typedef.
2271 (struct arm_per_objfile): Add constructor.
2272 <section_maps>: Change type to
2273 std::unique_ptr<arm_mapping_symbol_vec[]>.
2274 (arm_compare_mapping_symbols): Remove.
2275 (arm_find_mapping_symbol): Adjust to section_maps type change.
2276 (arm_objfile_data_free): Call delete on arm_per_objfile.
2277 (arm_record_special_symbol): Adjust to section_maps type change.
2278 Allocate arm_per_objfile with new.
2279
b65b566c
PW
22802019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2281
2282 * cli/cli-cmds.c (alias_command): Compare the alias prefix
2283 with the command prefix.
2284
c2fc64f5
TT
22852019-06-25 Tom Tromey <tom@tromey.com>
2286
2287 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
2288 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
2289
fb54fa76
TT
22902019-06-25 Tom Tromey <tom@tromey.com>
2291
2292 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
2293 type.
2294 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
2295 protected.
2296
f7952c57
TT
22972019-06-25 Tom Tromey <tom@tromey.com>
2298
2299 * tui/tui-winsource.c
2300 (tui_source_window_base::set_is_exec_point_at): Add check against
2301 LOA_ADDRESS.
2302
17568d78
TT
23032019-06-25 Tom Tromey <tom@tromey.com>
2304
2305 * tui/tui-source.c (tui_set_source_content): Don't check before
2306 xfree.
2307 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
2308
53e7cdba
TT
23092019-06-25 Tom Tromey <tom@tromey.com>
2310
2311 * tui/tui-winsource.h (tui_update_source_window_as_is)
2312 (tui_alloc_source_buffer, tui_line_is_displayed)
2313 (tui_addr_is_displayed): Change type of win_info.
2314 * tui/tui-winsource.c (tui_update_source_window_as_is)
2315 (tui_clear_source_content, tui_show_source_line)
2316 (tui_show_source_content, tui_source_window_base::refill)
2317 (tui_source_window_base::set_is_exec_point_at)
2318 (tui_source_window_base::set_is_exec_point_at)
2319 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
2320 (tui_alloc_source_buffer, tui_line_is_displayed)
2321 (tui_addr_is_displayed): Change type of win_info. Update.
2322 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2323 (tui_source_window_base::do_make_visible_with_new_height):
2324 Update.
2325 * tui/tui-source.c (tui_set_source_content)
2326 (tui_set_source_content_nil)
2327 (tui_source_window::do_scroll_vertical): Update.
2328 * tui/tui-layout.c (show_layout): Update.
2329 * tui/tui-disasm.c (tui_set_disassem_content)
2330 (tui_disasm_window::do_scroll_vertical): Update.
2331 * tui/tui-data.h (tui_win_content): Remove.
2332 (struct tui_gen_win_info) <content, content_size>: Remove.
2333 (struct tui_source_element): Add initializers and destructor.
2334 (union tui_which_element, struct tui_win_element): Remove.
2335 (struct tui_source_window_base) <content>: New field.
2336 (struct tui_data_window): Remove destructor.
2337 (tui_alloc_content, tui_free_win_content)
2338 (tui_free_all_source_wins_content): Don't declare.
2339 * tui/tui-data.c (tui_initialize_static_data): Update.
2340 (init_content_element, tui_alloc_content): Remove.
2341 (~tui_gen_win_info): Update.
2342 (~tui_data_window, tui_free_all_source_wins_content)
2343 (tui_free_win_content, free_content, free_content_elements):
2344 Remove.
2345
7908abbf
TT
23462019-06-25 Tom Tromey <tom@tromey.com>
2347
2348 * tui/tui-winsource.h (tui_clear_source_content)
2349 (tui_erase_source_content, tui_show_source_content): Change type
2350 of win_info.
2351 * tui/tui-winsource.c (tui_clear_source_content)
2352 (tui_erase_source_content, tui_show_source_content): Change type
2353 of win_info.
2354 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2355 * tui/tui-source.h (tui_set_source_content_nil): Change type of
2356 win_info.
2357 * tui/tui-source.c (tui_set_source_content_nil): Change type of
2358 win_info.
2359 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
2360
02c28df0
TT
23612019-06-25 Tom Tromey <tom@tromey.com>
2362
2363 * tui/tui-winsource.c (tui_clear_source_content)
2364 (tui_source_window_base::set_is_exec_point_at): Update.
2365 * tui/tui-source.c (tui_set_source_content_nil): Update.
2366 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
2367 a bool.
2368 * tui/tui-data.c (init_content_element): Update.
2369
6658b1bf
TT
23702019-06-25 Tom Tromey <tom@tromey.com>
2371
2372 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
2373 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
2374 * tui/tui-layout.c (init_and_make_win): Update.
2375 * tui/tui.h (enum tui_win_type): Update.
2376 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
2377 tui_win_is_auxillary.
2378 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
2379 tui_win_is_auxillary.
2380
21e1c91e
TT
23812019-06-25 Tom Tromey <tom@tromey.com>
2382
2383 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
2384 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
2385 (tui_delete_data_content_windows, tui_display_all_data)
2386 (tui_data_window::do_scroll_vertical, tui_display_data_from):
2387 Update.
2388 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
2389 * tui/tui-regs.c (tui_last_regs_line_no)
2390 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2391 (tui_show_registers): Update.
2392 (tui_show_register_group): Return void. Update.
2393 (tui_display_registers_from, tui_display_reg_element_at_line)
2394 (tui_display_registers_from_line, tui_check_register_values):
2395 Update.
2396 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
2397 member.
2398 (struct tui_data_window) <regs_content>: Now a std::vector.
2399 <regs_content_count>: Remove.
2400 (tui_add_content_elements, tui_free_data_content): Don't declare.
2401 * tui/tui-data.c (tui_data_window::clear_detail): Update.
2402 (init_content_element): Remove DATA_WIN case. Add assert.
2403 (tui_add_content_elements): Remove.
2404 (tui_data_window): Update.
2405 (tui_free_data_content): Remove.
2406 (free_content_elements): Remove DATA_WIN case.
2407
115ac53b
TT
24082019-06-25 Tom Tromey <tom@tromey.com>
2409
2410 * tui/tui-data.c (tui_data_item_window): Update.
2411 * tui/tui-windata.h (tui_check_data_values): Don't declare.
2412 * tui/tui-windata.c (tui_display_all_data)
2413 (tui_display_data_from_line): Update.
2414 (tui_check_data_values): Remove.
2415 * tui/tui-regs.c (tui_show_register_group)
2416 (tui_display_reg_element_at_line): Update.
2417 * tui/tui-hooks.c (tui_register_changed)
2418 (tui_refresh_frame_and_register_information): Call
2419 tui_check_register_values.
2420 * tui/tui-data.h (struct tui_data_window) <data_content,
2421 data_content_count, data_type>: Remove.
2422 (enum tui_data_type): Remove.
2423
2424 * tui/tui-data.c (tui_data_window::clear_detail)
2425 (~tui_data_window): Update.
2426
eaf9738b
TT
24272019-06-25 Tom Tromey <tom@tromey.com>
2428
2429 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
2430 declare.
2431 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
2432 Rename from tui_first_data_item_displayed. Update.
2433 (tui_data_window::refresh_all)
2434 (tui_data_window::do_scroll_vertical): Update.
2435 * tui/tui-data.h (struct tui_data_window)
2436 <first_data_item_displayed>: Declare new method.
2437
31ca4723
TT
24382019-06-25 Tom Tromey <tom@tromey.com>
2439
2440 * tui/tui-data.h (tui_init_generic_part): Don't declare.
2441 * tui/tui-data.c (tui_init_generic_part): Remove, moving
2442 contents...
2443 (tui_initialize_static_data): ...here.
2444
41bcff7f
TT
24452019-06-25 Tom Tromey <tom@tromey.com>
2446
2447 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2448 (tui_display_registers_from, tui_check_register_values): Update.
2449 (tui_display_register): Remove win_info parameter; update.
2450 (tui_get_register): Change type of parameters.
2451 * tui/tui-data.h (struct tui_data_element): Remove.
2452 (union tui_which_element) <data>: Remove.
2453 <data_window>: Change type.
2454 (struct tui_data_item_window): New.
2455 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
2456 case. Add assert.
2457 (~tui_data_item_window): New destructor.
2458 (free_content_elements): Remove DATA_ITEM_WIN case.
2459
d2802c33
TT
24602019-06-25 Tom Tromey <tom@tromey.com>
2461
2462 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
2463 Remove.
2464
dd835f8b
TT
24652019-06-25 Tom Tromey <tom@tromey.com>
2466
2467 * tui/tui-data.h (struct tui_command_element): Remove.
2468 (union tui_which_element) <command>: Remove.
2469 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
2470 assert.
2471 (free_content_elements): Remove CMD_WIN case.
2472
bd7db367
TT
24732019-06-25 Tom Tromey <tom@tromey.com>
2474
2475 * tui/tui-layout.c (tui_set_layout): Update.
2476 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
2477 * tui/tui-data.c (layout_def): Update.
2478
3add462f
TT
24792019-06-25 Tom Tromey <tom@tromey.com>
2480
2481 * tui/tui-wingeneral.c (tui_refresh_all): Update.
2482 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2483 (tui_source_window_base::set_new_height): Update.
2484 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
2485 Update.
2486 (tui_set_locator_fullname, tui_set_locator_info)
2487 (tui_show_frame_info): Update.
2488 * tui/tui-source.c (tui_set_source_content)
2489 (tui_source_is_displayed): Update.
2490 * tui/tui-layout.c (show_source_disasm_command, show_data)
2491 (show_source_or_disasm_and_command): Update.
2492 * tui/tui-disasm.c (tui_set_disassem_content)
2493 (tui_get_begin_asm_address): Update.
2494 * tui/tui-data.h (struct tui_locator_element): Remove.
2495 (union tui_which_element) <locator>: Remove.
2496 (struct tui_locator_window): New.
2497 (tui_locator_win_info_ptr): Change return type.
2498 * tui/tui-data.c (_locator): Change type.
2499 (tui_locator_win_info_ptr): Change return type.
2500 (init_content_element): Remove LOCATOR_WIN case. Add assert.
2501 (tui_alloc_content): Add assert.
2502
489e9d8b
TT
25032019-06-25 Tom Tromey <tom@tromey.com>
2504
2505 * tui/tui-winsource.c
2506 (tui_exec_info_window::maybe_allocate_content): New method.
2507 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
2508 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
2509 (make_source_or_disasm_window): Add cast.
2510 * tui/tui-data.h (union tui_which_element) <simple_string>:
2511 Remove.
2512 (struct tui_source_info): New.
2513 (struct tui_source_window_base) <execution_info>: Change type.
2514 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
2515 case, and add assert.
2516 (tui_alloc_content): Add assert.
2517
c3fabb7d
TT
25182019-06-25 Tom Tromey <tom@tromey.com>
2519
2520 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
2521 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
2522 * tui/tui-data.c (tui_alloc_win_info): Remove.
2523
bbc228ee
TT
25242019-06-25 Tom Tromey <tom@tromey.com>
2525
2526 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
2527 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
2528 can_highlight.
2529
5fcee43a
TT
25302019-06-25 Tom Tromey <tom@tromey.com>
2531
2532 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
2533 make_visible_with_new_height method.
2534 (tui_win_info::make_visible_with_new_height): New method.
2535 (tui_source_window_base::do_make_visible_with_new_height)
2536 (tui_data_window::do_make_visible_with_new_height)
2537 (tui_cmd_window::do_make_visible_with_new_height): New methods.
2538 (make_visible_with_new_height): Remove.
2539 (tui_resize_all, tui_adjust_win_heights): Use
2540 make_visible_with_new_height method.
2541 * tui/tui-data.h (struct tui_win_info)
2542 <do_make_visible_with_new_height, make_visible_with_new_height>:
2543 New methods.
2544 (struct tui_source_window_base, struct tui_data_window)
2545 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
2546 methods.
2547
d83f1fe6
TT
25482019-06-25 Tom Tromey <tom@tromey.com>
2549
2550 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
2551 method.
2552 (update_tab_width): Call update_tab_width method.
2553 * tui/tui-data.h (struct tui_win_info)
2554 (struct tui_source_window_base) <update_tab_width>: New methods.
2555
17374de4
TT
25562019-06-25 Tom Tromey <tom@tromey.com>
2557
2558 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
2559 parameter.
2560 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
2561 parameter.
2562 (tui_gen_win_info::make_visible): Update.
2563 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
2564 parameter.
2565 * tui/tui-data.h (enum tui_box): New enum.
2566 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
2567
f936bca2
TT
25682019-06-25 Tom Tromey <tom@tromey.com>
2569
2570 * tui/tui-layout.c (make_source_or_disasm_window): Always use
2571 init_and_make_win for EXEC_INFO_WIN.
2572 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
2573 longer inline.
2574 (struct tui_win_info) <~tui_win_info>: Inline.
2575 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2576 Don't declare.
2577 * tui/tui-data.c (source_win, disasm_win): Remove globals.
2578 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2579 Remove.
2580 (tui_initialize_static_data): Update.
2581 (~tui_gen_win_info): Handle more cleanup here.
2582 (~tui_source_window_base): Delete "execution_info".
2583 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
2584
d6ba6a11
TT
25852019-06-25 Tom Tromey <tom@tromey.com>
2586
2587 * tui/tui-layout.c (make_command_window): Don't set
2588 can_highlight.
2589 (show_source_disasm_command): Call the reset method.
2590 (show_data): Don't set can_highlight. Call the reset method.
2591 (tui_gen_win_info::reset): Rename from init_gen_win_info
2592 (init_and_make_win): Simplify. Return tui_gen_win_info.
2593 (show_source_or_disasm_and_command): Call the reset method.
2594 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
2595 (struct tui_cmd_window): Set can_highlight.
2596
48a3bd16
TT
25972019-06-25 Tom Tromey <tom@tromey.com>
2598
2599 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
2600 from make_visible.
2601 (tui_make_visible, tui_make_invisible): Rewrite.
2602 (tui_win_info::make_visible): Remove.
2603 (tui_source_window_base::make_visible): Update.
2604 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
2605 method. Moved from...
2606 (struct tui_win_info) <make_visible>: ...here.
2607
c3bd716f
TT
26082019-06-25 Tom Tromey <tom@tromey.com>
2609
2610 * tui/tui-winsource.c
2611 (tui_source_window_base::do_scroll_horizontal): Remove direction
2612 parameter.
2613 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
2614 direction parameter.
2615 * tui/tui-win.c (tui_win_info::forward_scroll)
2616 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
2617 (tui_win_info::right_scroll): Update.
2618 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
2619 direction parameter.
2620 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
2621 direction parameter.
2622 * tui/tui-data.h (enum tui_scroll_direction): Remove.
2623 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
2624 Remove direction parameter.
2625 (struct tui_source_window_base, struct tui_source_window)
2626 (struct tui_disasm_window, struct tui_data_window)
2627 (struct tui_cmd_window): Update.
2628
21c32dca
TT
26292019-06-25 Tom Tromey <tom@tromey.com>
2630
2631 * tui/tui-winsource.h (tui_set_exec_info_content)
2632 (tui_show_exec_info_content, tui_erase_exec_info_content)
2633 (tui_clear_exec_info_content, tui_update_exec_info): Change
2634 argument to tui_source_window_base.
2635 * tui/tui-winsource.c (tui_set_exec_info_content)
2636 (tui_show_exec_info_content, tui_erase_exec_info_content)
2637 (tui_clear_exec_info_content, tui_update_exec_info): Change
2638 argument to tui_source_window_base.
2639
73fbdc65
TT
26402019-06-25 Tom Tromey <tom@tromey.com>
2641
2642 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
2643 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
2644
33325343
TT
26452019-06-25 Tom Tromey <tom@tromey.com>
2646
2647 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
2648 check.
2649
29d2c474
TT
26502019-06-25 Tom Tromey <tom@tromey.com>
2651
2652 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
2653 type to void.
2654 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
2655 type to void.
2656 * tui/tui-source.c (tui_set_source_content): Update.
2657 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2658
152f3f4b
TT
26592019-06-25 Tom Tromey <tom@tromey.com>
2660
2661 * tui/tui-win.c (window_name_completer, tui_set_focus)
2662 (tui_all_windows_info): Use name method.
2663 * tui/tui-data.h (struct tui_gen_win_info)
2664 (struct tui_source_window, struct tui_disasm_window)
2665 (struct tui_data_window, struct tui_cmd_window) <name>: New
2666 method.
2667 (tui_win_name): Don't declare.
2668 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
2669 (tui_win_name): Remove.
2670
be4da588
TT
26712019-06-25 Tom Tromey <tom@tromey.com>
2672
2673 * tui/tui-winsource.h (tui_update_source_window)
2674 (tui_update_source_window_as_is): Change parameter type.
2675 * tui/tui-winsource.c (tui_update_source_window): Change win_info
2676 to be a tui_source_window_base.
2677 (tui_update_source_window_as_is): Likewise.
2678 * tui/tui-win.c (make_visible_with_new_height): Update.
2679
5b81daba
TT
26802019-06-25 Tom Tromey <tom@tromey.com>
2681
2682 * tui/tui-winsource.c (tui_erase_source_content)
2683 (tui_show_source_content, tui_show_exec_info_content)
2684 (tui_erase_exec_info_content): Use refresh_window method.
2685 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
2686 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
2687 from tui_refresh_win.
2688 (tui_data_window::refresh_window): New method.
2689 (tui_win_info::refresh, tui_source_window_base::refresh)
2690 (tui_refresh_all): Use refresh_window method.
2691 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
2692 method.
2693 * tui/tui-regs.c (tui_display_register): Call refresh_window
2694 method.
2695 * tui/tui-layout.c (show_source_disasm_command)
2696 (show_source_or_disasm_and_command): Call refresh_window method.
2697 * tui/tui-data.h (struct tui_gen_win_info)
2698 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
2699 New method.
2700
cb2ce893
TT
27012019-06-25 Tom Tromey <tom@tromey.com>
2702
2703 * tui/tui.c (tui_rl_other_window, tui_enable)
2704 (tui_is_window_visible, tui_get_command_dimension): Update.
2705 * tui/tui-winsource.c (tui_update_source_window_as_is)
2706 (tui_clear_source_content, tui_erase_source_content)
2707 (tui_show_source_line, tui_source_window_base::refill)
2708 (tui_source_window_base::do_scroll_horizontal)
2709 (tui_source_window_base::set_is_exec_point_at)
2710 (tui_update_breakpoint_info, tui_set_exec_info_content)
2711 (tui_alloc_source_buffer, tui_line_is_displayed)
2712 (tui_addr_is_displayed): Update.
2713 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
2714 (tui_check_and_display_highlight_if_needed)
2715 (tui_win_info::make_visible, tui_win_info::refresh)
2716 (tui_refresh_all): Update.
2717 * tui/tui-windata.c (tui_first_data_item_displayed)
2718 (tui_delete_data_content_windows, tui_erase_data_content)
2719 (tui_display_all_data, tui_data_window::refresh_all)
2720 (tui_check_data_values): Update.
2721 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
2722 (tui_set_win_focus_to, tui_win_info::forward_scroll)
2723 (tui_win_info::backward_scroll, tui_refresh_all_win)
2724 (tui_resize_all, tui_set_focus, tui_all_windows_info)
2725 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
2726 (tui_source_window_base::set_new_height)
2727 (tui_data_window::set_new_height)
2728 (make_invisible_and_set_new_height)
2729 (make_visible_with_new_height, new_height_ok)
2730 (parse_scrolling_args): Update.
2731 * tui/tui-stack.c (tui_show_frame_info): Update.
2732 * tui/tui-source.c (tui_set_source_content)
2733 (tui_set_source_content_nil, tui_source_is_displayed)
2734 (tui_source_window::do_scroll_vertical): Update.
2735 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2736 (tui_display_registers_from, tui_display_reg_element_at_line)
2737 (tui_check_register_values, tui_reg_command): Update.
2738 * tui/tui-layout.c (tui_default_win_height)
2739 (show_source_disasm_command, show_data, init_and_make_win)
2740 (show_source_or_disasm_and_command): Update.
2741 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2742 (tui_redisplay_readline, tui_mld_flush)
2743 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
2744 (tui_getc): Update.
2745 * tui/tui-disasm.c (tui_set_disassem_content)
2746 (tui_disasm_window::do_scroll_vertical): Update.
2747 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
2748 Now virtual.
2749 (struct tui_win_info): Derive from tui_gen_win_info.
2750 <~tui_win_info>: Mark as override.
2751 <generic>: Remove member.
2752 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
2753 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
2754 (~tui_data_window, ~tui_win_info)
2755 (tui_free_all_source_wins_content): Update.
2756 * tui/tui-command.c (tui_refresh_cmd_win): Update.
2757
ab313b35
TT
27582019-06-25 Tom Tromey <tom@tromey.com>
2759
2760 * tui/tui-layout.c (init_and_make_win): Use new.
2761 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
2762 destructor, initializers.
2763 (tui_alloc_generic_win_info): Don't declare.
2764 * tui/tui-data.c (_locator): Add argument to constructor.
2765 (source_win, disasm_win): New globals.
2766 (exec_info): Remove.
2767 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
2768 Update.
2769 (tui_alloc_generic_win_info): Remove.
2770 (init_content_element): Use new.
2771 (tui_win_info::tui_win_info): Update.
2772 (free_content_elements) <case DATA_WIN>: Use delete.
2773
dc2c33e4
TT
27742019-06-25 Tom Tromey <tom@tromey.com>
2775
2776 * tui/tui-wingeneral.c (tui_refresh_win): Update.
2777 * tui/tui-windata.c (tui_first_data_item_displayed)
2778 (tui_delete_data_content_windows): Update.
2779 * tui/tui-win.c (tui_data_window::set_new_height): Update.
2780 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
2781 (tui_display_registers_from, tui_check_register_values): Update.
2782 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
2783 pointer.
2784 * tui/tui-data.c (init_content_element): Update. Allocate the new
2785 window.
2786 (tui_free_data_content): Update.
2787 (free_content_elements) <case DATA_WIN>: Free the window.
2788
214a5cbe
TT
27892019-06-25 Tom Tromey <tom@tromey.com>
2790
2791 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
2792 Update.
2793 * tui/tui-layout.c (make_command_window)
2794 (show_source_disasm_command, show_data, init_and_make_win)
2795 (show_source_or_disasm_and_command): Update.
2796 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
2797 method.
2798 <can_highight, is_highlighted>: Now bool.
2799 (tui_set_win_highlight): Don't declare.
2800 * tui/tui-data.c (tui_set_win_highlight): Remove.
2801
8e2daf15
TT
28022019-06-25 Tom Tromey <tom@tromey.com>
2803
2804 * tui/tui-wingeneral.c (make_visible): Remove check of window
2805 type.
2806
8903bd8a
TT
28072019-06-25 Tom Tromey <tom@tromey.com>
2808
2809 * tui/tui-win.c (tui_win_info::max_height)
2810 (tui_cmd_window::max_height): New methods.
2811 (new_height_ok): Call max_height.
2812 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
2813 <max_height>: New method.
2814
3f02ce1e
TT
28152019-06-25 Tom Tromey <tom@tromey.com>
2816
2817 * tui/tui-win.c (tui_source_window_base::set_new_height)
2818 (tui_data_window::set_new_height): New methods.
2819 (make_invisible_and_set_new_height): Call set_new_height method.
2820 * tui/tui-data.h (struct tui_win_info)
2821 (struct tui_source_window_base, struct tui_data_window)
2822 <set_new_height>: New method.
2823
1825f487
TT
28242019-06-25 Tom Tromey <tom@tromey.com>
2825
2826 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
2827 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
2828 tui_refresh_data_win.
2829 * tui/tui-win.c (tui_source_window_base::refresh_all): New
2830 method.
2831 (tui_refresh_all_win): Call the refresh_all method.
2832 (tui_set_focus): Likewise.
2833 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
2834 (struct tui_source_window_base, struct tui_data_window) <refresh>:
2835 Likewise.
2836
ad54d15b
TT
28372019-06-25 Tom Tromey <tom@tromey.com>
2838
2839 * tui/tui-winsource.h (tui_refill_source_window)
2840 (tui_set_is_exec_point_at): Don't declare.
2841 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2842 (tui_source_window_base::refill): Rename from
2843 tui_refill_source_window.
2844 (tui_source_window_base::do_scroll_horizontal): Update.
2845 (tui_source_window_base::set_is_exec_point_at): Rename from
2846 tui_set_is_exec_point_at.
2847 (tui_update_all_breakpoint_info): Update.
2848 * tui/tui-stack.c (tui_show_frame_info): Update.
2849 * tui/tui-layout.c (show_data): Add cast.
2850 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
2851 * tui/tui-data.h (struct tui_source_window_base) <refill,
2852 set_is_exec_point_at>: New methods.
2853 (tui_source_windows, tui_add_to_source_windows): Update types.
2854 (tui_add_to_source_windows): Remove redundant declaration.
2855 * tui/tui-data.c (source_windows): Store tui_source_window_base.
2856 (tui_source_windows): Change return type.
2857 (tui_clear_source_windows_detail): Update.
2858 (tui_add_to_source_windows): Change type of parameter.
2859 (tui_free_all_source_wins_content): Update.
2860
2042b506
TT
28612019-06-25 Tom Tromey <tom@tromey.com>
2862
2863 * tui/tui-wingeneral.c (tui_win_info::refresh)
2864 (tui_source_window_base::refresh): New methods.
2865 (tui_refresh_all): Call the refresh method.
2866 * tui/tui-data.h (struct tui_win_info)
2867 (struct tui_source_window_base) <refresh>: New method.
2868
56122977
TT
28692019-06-25 Tom Tromey <tom@tromey.com>
2870
2871 * tui/tui.h (tui_is_window_visible): Return bool.
2872 * tui/tui.c (tui_is_window_visible): Return bool.
2873 * tui/tui-wingeneral.c (tui_make_window, make_visible)
2874 (tui_make_visible, tui_make_invisible)
2875 (tui_win_info::make_visible)
2876 (tui_source_window_base::make_visible, make_all_visible)
2877 (tui_make_all_visible, tui_make_all_invisible): Update.
2878 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
2879 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
2880 bool.
2881 (struct tui_win_info, struct tui_source_window_base)
2882 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
2883 * tui/tui-data.c (tui_init_generic_part): Update.
2884
cda37efb
TT
28852019-06-25 Tom Tromey <tom@tromey.com>
2886
2887 * tui/tui-wingeneral.c (tui_win_info::make_visible)
2888 (tui_source_window_base::make_visible): New methods.
2889 (make_all_visible): Make method call.
2890 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
2891 (struct tui_source_window_base, struct tui_cmd_window): Override
2892 make_visible.
2893 (tui_win_is_source_type): Don't declare.
2894 * tui/tui-data.c (tui_win_is_source_type): Remove.
2895
6a0ee02c
TT
28962019-06-25 Tom Tromey <tom@tromey.com>
2897
2898 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
2899 NULL check.
2900
63901aec
TT
29012019-06-25 Tom Tromey <tom@tromey.com>
2902
2903 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
2904 Inline constructor. Add initializers for members.
2905 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
2906 constructors; now inline in class.
2907
ceb13a13
TT
29082019-06-25 Tom Tromey <tom@tromey.com>
2909
2910 * tui/tui-regs.c (tui_show_registers): Update.
2911 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
2912 bool.
2913 * tui/tui-data.c (tui_data_window::clear_detail)
2914 (tui_data_window): Update.
2915
238eb706
TT
29162019-06-25 Tom Tromey <tom@tromey.com>
2917
2918 * tui/tui-windata.c (tui_display_all_data)
2919 (tui_display_data_from_line, tui_display_data_from)
2920 (tui_check_data_values, tui_data_window::do_scroll_vertical):
2921 Update.
2922 * tui/tui-regs.c (tui_last_regs_line_no)
2923 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
2924 (tui_show_registers, tui_show_register_group)
2925 (tui_display_registers_from, tui_display_reg_element_at_line)
2926 (tui_display_registers_from_line, tui_check_register_values)
2927 (tui_reg_next, tui_reg_prev): Update.
2928 * tui/tui-layout.c (tui_set_layout, show_data): Update.
2929 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
2930 tui_data_window.
2931 (struct tui_win_info) <detail>: Remove. Add new fields from
2932 tui_data_info.
2933 (TUI_DATA_WIN): Add cast.
2934 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
2935 (~tui_data_window): Simplify.
2936
81491aa0
TT
29372019-06-25 Tom Tromey <tom@tromey.com>
2938
2939 * tui/tui-layout.c (show_source_disasm_command)
2940 (show_source_or_disasm_and_command): Update.
2941 * tui/tui-io.c (update_cmdwin_start_line)
2942 (tui_redisplay_readline): Update.
2943 * tui/tui-data.h (struct tui_command_info): Remove.
2944 (struct tui_win_info) <detail>: Remove command_info member.
2945 (struct tui_data_window) <start_line>: New member, from
2946 tui_command_info.
2947 (TUI_CMD_WIN): Add casts.
2948
e6e41501
TT
29492019-06-25 Tom Tromey <tom@tromey.com>
2950
2951 * tui/tui-winsource.c (tui_update_source_window)
2952 (tui_refill_source_window)
2953 (tui_source_window_base::do_scroll_horizontal)
2954 (tui_update_breakpoint_info, tui_set_exec_info_content)
2955 (tui_show_exec_info_content, tui_erase_exec_info_content)
2956 (tui_clear_exec_info_content): Update.
2957 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
2958 Update.
2959 * tui/tui-win.c (make_invisible_and_set_new_height)
2960 (make_visible_with_new_height): Update.
2961 * tui/tui-source.c (tui_set_source_content)
2962 (tui_show_symtab_source): Update.
2963 * tui/tui-layout.c (extract_display_start_addr)
2964 (show_source_disasm_command, show_data)
2965 (make_source_or_disasm_window)
2966 (show_source_or_disasm_and_command): Update.
2967 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
2968 (tui_disasm_window::do_scroll_vertical): Remove shadowing
2969 "gdbarch".
2970 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
2971 to tui_source_window_base.
2972 (struct tui_win_info) <detail>: Remove source_info member.
2973 (struct tui_source_window_base) <has_locator>: Inline.
2974 Move contents from tui_source_info; rename has_locator member to
2975 m_has_locator.
2976 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
2977 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
2978 header file.
2979 (tui_source_window_base::clear_detail, ~tui_source_window_base):
2980 Simplify.
2981 (tui_free_all_source_wins_content): Cast to
2982 tui_source_window_base.
2983
44f0e208
TT
29842019-06-25 Tom Tromey <tom@tromey.com>
2985
2986 * tui/tui-win.c (make_invisible_and_set_new_height)
2987 (make_visible_with_new_height): Call has_locator method.
2988 * tui/tui-layout.c (show_source_disasm_command, show_data)
2989 (show_source_or_disasm_and_command): Update for bool change.
2990 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
2991 (tui_win_info) <has_locator>: New method.
2992 (struct tui_source_window_base) <has_locator>: New method.
2993 (tui_win_has_locator): Don't declare.
2994 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
2995 from tui_win_has_locator.
2996 (tui_source_window_base): Use false, not FALSE.
2997
7778b912
TT
29982019-06-25 Tom Tromey <tom@tromey.com>
2999
3000 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3001 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3002 clear_detail method directly.
3003 (tui_clear_win_detail): Remove.
3004
f83d391c
TT
30052019-06-25 Tom Tromey <tom@tromey.com>
3006
3007 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3008 "this", not TUI_DISASM_WIN.
3009
13446e05
TT
30102019-06-25 Tom Tromey <tom@tromey.com>
3011
3012 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3013 declare.
3014 * tui/tui-winsource.c
3015 (tui_source_window_base::do_scroll_horizontal): Rename from
3016 tui_horizontal_source_scroll.
3017 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3018 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3019 from tui_vertical_data_scroll.
3020 * tui/tui-win.h (tui_scroll): Don't declare.
3021 * tui/tui-win.c (tui_win_info::forward_scroll)
3022 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3023 (tui_win_info::right_scroll): Rename and update.
3024 (tui_scroll_forward_command, tui_scroll_backward_command)
3025 (tui_scroll_left_command, tui_scroll_right_command): Update.
3026 (tui_scroll): Remove.
3027 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3028 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3029 from tui_vertical_source_scroll.
3030 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3031 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3032 from tui_vertical_disassem_scroll.
3033 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3034 do_scroll_horizontal>: New methods.
3035 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3036 Likewise.
3037 (struct tui_source_window_base): Add do_scroll_horizontal.
3038 (struct tui_source_window, struct tui_disasm_window): Add
3039 do_scroll_vertical.
3040 (struct tui_data_window, struct tui_cmd_window): Add
3041 do_scroll_horizontal and do_scroll_vertical.
3042 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3043
5cf82909
TT
30442019-06-25 Tom Tromey <tom@tromey.com>
3045
3046 * tui/tui-data.h (struct tui_source_window_base): New struct.
3047 (struct tui_source_window): Derive from tui_source_window_base.
3048 (struct tui_disasm_window): New struct.
3049 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3050 from tui_source_window::clear_detail.
3051 (tui_source_window_base): Rename from tui_source_window.
3052 (~tui_source_window_base): Rename from ~tui_source_window.
3053 (tui_alloc_win_info): Create a tui_disasm_window.
3054
ee1d42d6
TT
30552019-06-25 Tom Tromey <tom@tromey.com>
3056
3057 * tui/tui-data.h (struct tui_source_window)
3058 (struct tui_data_window): Declare destructors.
3059 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3060 destructors.
3061 (tui_win_info): Simplify.
3062
b4eb2452
TT
30632019-06-25 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-winsource.c (tui_display_main)
3066 (tui_update_source_windows_with_addr)
3067 (tui_update_all_breakpoint_info): Update.
3068 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3069 (new_height_ok, parse_scrolling_args): Update.
3070 * tui/tui-stack.c (tui_show_frame_info): Update.
3071 * tui/tui-data.h (struct tui_list): Remove.
3072 (tui_source_windows): Return a reference to a std::vector.
3073 * tui/tui-data.c (source_windows): Now a std::vector.
3074 (tui_source_windows): Change return type.
3075 (tui_clear_source_windows): Rewrite.
3076 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3077 (tui_free_all_source_wins_content): Rewrite.
3078
8761a91b
TT
30792019-06-25 Tom Tromey <tom@tromey.com>
3080
3081 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3082 (struct tui_data_window, struct tui_cmd_window): Declare
3083 clear_detail method.
3084 * tui/tui-data.c (tui_source_window::clear_detail)
3085 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3086 methods.
3087 (tui_clear_win_detail): Simplify.
3088
0ed69eda
TT
30892019-06-25 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui-layout.c (make_source_window, make_disasm_window)
3092 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3093 Return the new window.
3094 (show_source_disasm_command, show_data)
3095 (show_source_or_disasm_and_command): Update.
3096
82432e10
TT
30972019-06-25 Tom Tromey <tom@tromey.com>
3098
3099 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3100 parameter. Return the new window.
3101 (show_source_disasm_command): Update and remove NULL check.
3102 (show_source_or_disasm_and_command): Update.
3103
ec328aa5
TT
31042019-06-25 Tom Tromey <tom@tromey.com>
3105
3106 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3107
33b906ab
TT
31082019-06-25 Tom Tromey <tom@tromey.com>
3109
3110 * tui/tui-data.h (struct tui_win_info): Make constructor
3111 protected. Make destructor virtual. Add initializers.
3112 (tui_source_window, tui_data_window, tui_cmd_window): New
3113 classes.
3114 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3115 constructor. Add "type" parameter.
3116 (tui_source_window, tui_data_window, tui_cmd_window): New
3117 constructors.
3118 (tui_alloc_win_info): Instantiate the appropriate subclass.
3119
e7e11af4
TT
31202019-06-25 Tom Tromey <tom@tromey.com>
3121
3122 * tui/tui-win.c (tui_resize_all): Use delete.
3123 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3124 destructor.
3125 (tui_free_window): Don't declare.
3126 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3127 Update.
3128
6792b55e
TT
31292019-06-25 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-data.h (struct tui_win_info): Add constructor.
3132 * tui/tui-data.c (tui_alloc_win_info): Use new.
3133 (tui_free_window): Use delete.
3134
f95675e1
TT
31352019-06-22 Tom Tromey <tom@tromey.com>
3136
3137 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3138 declare.
3139 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3140
5bff081c
TT
31412019-06-22 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3144 declare.
3145 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3146
47e3f474
TV
31472019-06-22 Tom de Vries <tdevries@suse.de>
3148
3149 * dwarf2read.c (create_addrmap_from_aranges)
3150 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3151 instead of '%zu'.
3152
fd5866f6
SM
31532019-06-21 Simon Marchi <simon.marchi@efficios.com>
3154
3155 * dwarf2read.h (dwarf2_section_info_def): Remove.
3156 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3157 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3158 std::vector<dwarf2_section_info>.
3159 (struct dwo_file) <~dwo_file>: Remove.
3160 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3161 types field.
3162 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3163 (dwarf2_read_debug_names): Likewise.
3164 (create_debug_types_hash_table): Change parameter type to
3165 array_view, adjust code accordingly.
3166 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3167 (partial_die_info::fixup): Likewise.
3168 (determine_prefix): Likewise.
3169 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3170
fb1eb2f9
SM
31712019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3172
3173 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3174 gdb_bfd_ref_ptr.
3175 <~dwo_file>: Remove call to gdb_bfd_unref.
3176 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3177 gdb_bfd_ref_ptr::get.
3178
51ac9db5
SM
31792019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3180
3181 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
3182 type to htab_up.
3183 * dwarf2read.c (struct dwo_file): Initialize fields.
3184 <~dwo_file>: New.
3185 (free_dwo_file): Remove, move content to ~dwo_file.
3186 (struct dwo_file_deleter): Remove.
3187 (dwo_file_up>: Remove custom deleter.
3188 (free_dwo_files): Remove.
3189 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
3190 dwo_files.
3191 (process_skeletonless_type_units): Call unique_ptr::get.
3192 (allocate_dwo_file_hash_table): Add deleter to created hash
3193 table. Change return type to htab_up.
3194 (lookup_dwo_file_slot): Don't memset dwo_file, call
3195 unique_ptr::get.
3196 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
3197 (create_dwo_unit_in_dwp_v2): Likewise.
3198 (open_and_init_dwo_file): Likewise.
3199 (free_dwo_file_from_slot): Remove.
3200
dc4ccb6f
SM
32012019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3202
3203 * dwarf2read.h (struct dwarf2_section_info) <readin,
3204 is_virtual>: Change type to bool.
3205 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
3206 true instead of 1.
3207
e6a1c5cb
TT
32082019-06-19 Tom Tromey <tom@tromey.com>
3209
3210 * tui/tui-data.h (tui_init_content_element): Don't declare.
3211
6f6ffbeb
TT
32122019-06-19 Tom Tromey <tom@tromey.com>
3213
3214 * tui/tui-data.h (tui_init_win_info): Don't declare.
3215
f23f598e
TV
32162019-06-19 Tom de Vries <tdevries@suse.de>
3217
3218 * dwarf2read.h (abstract_to_concrete): Change type to
3219 std::unordered_map<sect_offset, std::vector<sect_offset>,
3220 gdb::hash_enum<sect_offset>>.
3221
680e1bee
TT
32222019-06-19 Tom Tromey <tromey@adacore.com>
3223
3224 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
3225 EVAL_AVOID_SIDE_EFFECTS specially.
3226
dcf37923
TT
32272019-06-19 Tom Tromey <tromey@adacore.com>
3228
3229 * source-cache.c (highlighter): New global.
3230 (source_cache::get_source_lines): Create a highlighter on demand.
3231
494986d5
AB
32322019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
3233
3234 * defs.h (deprecated_interactive_hook): Delete declaration.
3235 * interps.c (clear_interpreter_hooks): Remove use of
3236 deprecated_interactive_hook.
3237 * top.c (deprecated_interactive_hook): Delete definition.
3238 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
3239
3360b6e7
TV
32402019-06-18 Tom de Vries <tdevries@suse.de>
3241
3242 PR gdb/24515
3243 * dwarf2read.h (abstract_to_concrete): Change type from
3244 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
3245 std::unordered_map<sect_offset, std::vector<sect_offset>>.
3246 * dwarf2read.c (read_variable): Update.
3247 (dwarf2_fetch_die_loc_sect_off): Update.
3248
310b3441
TV
32492019-06-17 Tom de Vries <tdevries@suse.de>
3250
3251 PR gdb/24617
3252 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
3253 accessing parent[parent_len - 1].
3254
ba9777be
PP
32552019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3256
3257 PR gdb/24364
3258 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
3259 call dtrace_process_dof with NULL dof.
3260
2b9f6e89
TV
32612019-06-16 Tom de Vries <tdevries@suse.de>
3262
3263 PR gdb/24445
3264 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
3265
431b3ead
TT
32662019-06-16 Tom Tromey <tom@tromey.com>
3267
3268 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3269 (make_all_visible): Use address of member.
3270
d04b44a1
TT
32712019-06-16 Tom Tromey <tom@tromey.com>
3272
3273 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
3274 (tui_free_window, free_content, free_content_elements): Remove
3275 unnecessary cast.
3276 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
3277 cast.
3278 * tui/tui-regs.c (tui_show_register_group)
3279 (tui_display_registers_from, tui_display_reg_element_at_line):
3280 Remove unnecessary cast.
3281
bf5142e7
AB
32822019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3283
3284 * linux-nat.c (normal_mask): Delete.
3285 (_initialize_linux_nat): Don't initialise normal_mask.
3286
c4973306
SM
32872019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3288
3289 PR gdb/24445
3290 * dwarf-index-write.h (write_psymtabs_to_index): Add
3291 dwz_basename parameter.
3292 * dwarf-index-write.c (write_gdbindex): Move file writing to
3293 write_gdbindex_1. Change return type void.
3294 (assert_file_size): Move up, remove filename parameter.
3295 (write_gdbindex_1): New function.
3296 (write_debug_names): Change return type to void, call
3297 assert_file_size.
3298 (struct index_wip_file): New struct.
3299 (write_psymtabs_to_index): Add dwz_basename parameter. Move
3300 file logic to index_wip_file. Write index for dwz file if
3301 needed.
3302 (save_gdb_index_command): Pass basename of dwz file, if present.
3303 * dwarf-index-cache.c (index_cache::store): Obtain and pass
3304 build-id of dwz file, if present.
3305 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
3306 (dwarf2_get_dwz_file): Likewise.
3307 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
3308 (dwarf2_get_dwz_file): Likewise.
3309
395f9c91
TT
33102019-06-16 Tom Tromey <tom@tromey.com>
3311
3312 * coffread.c (process_coff_symbol): Use xstrdup.
3313 * value.c (create_internalvar): Use xstrdup.
3314
cafb3438
TT
33152019-06-16 Tom Tromey <tom@tromey.com>
3316
3317 * valops.c (value_cast, value_slice): Remove unnecessary cast.
3318 * breakpoint.c (stopin_command, stopat_command)
3319 (until_break_command, decode_location_default): Remove unnecessary
3320 cast.
3321 * utils.c (subset_compare): Remove unnecessary cast.
3322 * ada-lang.c (ada_update_initial_language): Remove unnecessary
3323 cast.
3324 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
3325 cast.
3326 * infcmd.c (path_command): Remove unnecessary cast.
3327 * coffread.c (decode_type): Remove unnecessary cast.
3328 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
3329 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
3330 * tui/tui-stack.c (tui_show_locator_content)
3331 (tui_show_frame_info): Remove unnecessary cast.
3332 * tui/tui-win.c (tui_scroll_forward_command)
3333 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
3334 (parse_scrolling_args): Remove unnecessary cast.
3335 * tui/tui-data.c (init_win_info, tui_del_window)
3336 (tui_free_window, tui_del_data_windows, tui_free_data_content)
3337 (free_content_elements): Remove unnecessary cast.
3338 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
3339 unnecessary cast.
3340 * tui/tui-source.c (tui_set_source_content)
3341 (tui_vertical_source_scroll): Remove unnecessary cast.
3342 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
3343 cast.
3344 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
3345 * tui/tui-regs.c (tui_display_registers_from)
3346 (tui_display_register): Remove unnecessary cast.
3347 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
3348 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
3349 (make_visible): Remove unnecessary cast.
3350 * tui/tui-winsource.c (tui_erase_source_content)
3351 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
3352 unnecessary cast.
3353 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
3354 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
3355 * stabsread.c (read_type, read_array_type, read_range_type):
3356 Remove unnecessary cast.
3357 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
3358 (parse_symbol, parse_type, upgrade_type, parse_external)
3359 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
3360 unnecessary cast.
3361 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
3362
730ead81
TT
33632019-06-16 Tom Tromey <tom@tromey.com>
3364
3365 * tui/tui-data.c (tui_alloc_generic_win_info)
3366 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
3367 checks.
3368
584a927c
AB
33692019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
3370 Andrew Burgess <andrew.burgess@embecosm.com>
3371
3372 * f-typeprint.c (f_print_type): Don't return early for not
3373 associated or not allocated types.
3374 (f_type_print_varspec_suffix): Add print_rank parameter and print
3375 ranks of array types in case they dangling.
3376 (f_type_print_base): Add print_rank parameter.
3377
30056ea0
AB
33782019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * NEWS: Mention new MI commands.
3381 * break-catch-throw.c (enum exception_event_kind): Move to
3382 breakpoint.h.
3383 (print_mention_exception_catchpoint): Output text as a single
3384 message.
3385 (catch_exception_command_1): Rename to...
3386 (catch_exception_event): ...this, make non-static, update header
3387 command, and change some parameter types.
3388 (catch_catch_command): Update for changes to
3389 catch_exception_command_1.
3390 (catch_throw_command): Likewise.
3391 (catch_rethrow_command): Likewise.
3392 * breakpoint.c (enum exception_event_kind): Delete.
3393 * breakpoint.h (enum exception_event_kind): Moved here from
3394 break-catch-throw.c.
3395 (catch_exception_event): Declare.
3396 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
3397 (mi_cmd_catch_throw): New function.
3398 (mi_cmd_catch_rethrow): New function.
3399 (mi_cmd_catch_catch): New function.
3400 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
3401 'catch-catch' entries.
3402 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
3403 (mi_cmd_catch_rethrow): Declare.
3404 (mi_cmd_catch_catch): Declare.
3405
ec8e2b6d
AB
34062019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3407
3408 * annotate.c (annotate_source_line): Change return type to void,
3409 update implementation to match.
3410 * annotate.h (annotate_source_line): Change return type to void,
3411 update header comment.
3412 * stack.c (print_frame_info): Don't change what frame information
3413 is printed based on whether annotations are on or not.
3414
0d3abd8c
AB
34152019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3416
3417 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
3418 (annotate_source): Make static.
3419 (annotate_source_line): Moved from source.c and renamed from
3420 identify_source_line. Update the return type.
3421 * annotate.h (annotate_source): Delete declaration.
3422 (annotate_source_line): Declaration moved from source.h, and
3423 renamed from identify_source_line. Return type updated.
3424 * source.c (identify_source_line): Moved to annotate.c and renamed
3425 to annotate_source_line.
3426 (info_line_command): Remove check of annotation_level.
3427 * source.h (identify_source_line): Move declaration to annotate.h
3428 and rename to annotate_source_line.
3429 * stack.c: Add 'annotate.h' include.
3430 (print_frame_info): Remove check of annotation_level before
3431 calling annotate_source_line.
3432
00df30ae
AB
34332019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3434
3435 * source-cache.c (source_cache::get_plain_source_lines): Use
3436 open_source_file_with_line_charpos instead of just
3437 open_source_file, remove call to find_source_lines.
3438 (source_cache::get_source_lines): Likewise.
3439 * source.c (find_source_lines): Make static.
3440 (get_filename_and_charpos): Renamed into...
3441 (open_source_file_with_line_charpos): ..this along with changes to
3442 return a scoped_fd, and some other minor clean ups.
3443 (identify_source_line): Use open_source_file_with_line_charpos.
3444 (search_command_helper): Use open_source_file_with_line_charpos
3445 instead of just open_source_file, remove call to
3446 find_source_lines.
3447 * source.h (open_source_file_with_line_charpos): Declare new
3448 function.
3449 (find_source_lines): Delete declaration.
3450
afda45a2
AB
34512019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
3452
3453 * source.c (get_filename_and_charpos): Remove fullname
3454 parameter.
3455 (identify_source_line): Update call to get_filename_and_charpos.
3456
0735b091
TT
34572019-06-14 Tom Tromey <tromey@adacore.com>
3458
3459 PR gdb/24502:
3460 * ui-style.h (skip_ansi_escape): Update comment.
3461 * ui-file.h (class no_terminal_escape_file): New class.
3462 * ui-file.c (no_terminal_escape_file::write)
3463 (no_terminal_escape_file::puts): New methods.
3464 * cli/cli-logging.c (handle_redirections): Use
3465 no_terminal_escape_file.
3466
52ce35e2
TT
34672019-06-14 Tom Tromey <tromey@adacore.com>
3468
3469 * NEWS: Move convenience variable news above Python news.
3470
73cc7272
TT
34712019-06-14 Tom Tromey <tom@tromey.com>
3472
3473 * gnulib: Move directory to top-level.
3474 * configure.ac: Don't configure gnulib.
3475 * configure: Rebuild.
3476 * common/common-defs.h: Use new path to gnulib.
3477 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
3478 (GNULIB_H): Remove.
3479 (INCGNU): Look in new gnulib location.
3480 (HFILES_NO_SRCDIR): Remove gnulib files.
3481 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
3482 (generated_files): Remove GNULIB_H.
3483 ($(LIBGNU), all-lib): Remove targets.
3484 (distclean): Don't mention GNULIB_BUILDDIR.
3485 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
3486
f5686554
TT
34872019-06-14 Tom Tromey <tromey@adacore.com>
3488
3489 * symfile.c (add_symbol_file_command): Remove obsolete comment.
3490 Warn if symbol file does not provide any symbols.
3491
a0c1ffed
TT
34922019-06-14 Tom Tromey <tromey@adacore.com>
3493
3494 * source.c (find_and_open_source): Respect basenames_may_differ.
3495
7c39e397
AB
34962019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
3497
3498 * annotate.c (annotate_breakpoints_invalid): Make use of
3499 scoped_restore_terminal_state.
3500 (annotate_frames_invalid): Likewise.
3501
f411722c
TT
35022019-06-14 Tom Tromey <tromey@adacore.com>
3503
3504 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
3505 allow assignment to an internalvar.
3506
4268ec18
TT
35072019-06-14 Tom Tromey <tromey@adacore.com>
3508
3509 * ada-lex.l: Allow "_" in attribute names.
3510
abdb711e
TT
35112019-06-14 Tom Tromey <tromey@adacore.com>
3512
3513 PR gdb/24653:
3514 * regcache.c (registers_changed): Don't call alloca.
3515 * top.c (execute_command): Don't call alloca.
3516
4c048731
PA
35172019-06-13 Pedro Alves <palves@redhat.com>
3518
3519 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
3520 'expression'. When parsing an expression, error out if there's
3521 junk after "unlimited".
3522 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3523 (do_set_command): Adjust calls to is_unlimited_literal.
3524
66eb1ed3
PA
35252019-06-13 Pedro Alves <palves@redhat.com>
3526
3527 * compile/compile.c (make_compile_options_def_group): Add braces
3528 around array_view initializer.
3529 * thread.c (make_thread_apply_all_options_def_group)
3530 (make_thread_apply_all_options_def_group): Likewise.
3531
3345721a
PA
35322019-06-13 Pedro Alves <palves@redhat.com>
3533
3534 * NEWS (New commands): Mention "maint test-options
3535 require-delimiter", "maint test-options unknown-is-error", "maint
3536 test-options unknown-is-operand" and "maint show
3537 test-options-completion-result".
3538 (New command options, command completion): New section.
3539 (Completion improvements): New section.
3540 Mention that you can abbreviate "unlimited".
3541
6206060d
PA
35422019-06-13 Pedro Alves <palves@redhat.com>
3543
3544 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
3545 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
3546 * unittests/cli-utils-selftests.c (test_parse_flags)
3547 (test_parse_flags_qcs): Delete.
3548 (test_cli_utils): Don't call deleted functions.
3549
6665660a
PA
35502019-06-13 Pedro Alves <palves@redhat.com>
3551
3552 * thread.c: Include "cli/cli-option.h".
3553 (tp_array_compar_ascending): Global.
3554 (tp_array_compar): Delete function.
3555 (tp_array_compar_ascending, tp_array_compar_descending): New
3556 functions.
3557 (ascending_option_def, qcs_flag_option_def)
3558 (thr_qcs_flags_option_defs)
3559 (make_thread_apply_all_options_def_group)
3560 (make_thread_apply_options_def_group): New.
3561 (thread_apply_all_command): Use gdb::option::process_options.
3562 (thread_apply_command_completer)
3563 (thread_apply_all_command_completer): New.
3564 (thread_apply_command): Use gdb::option::process_options.
3565 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
3566 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
3567 to generate help text of "thread apply". Adjust "taas"'s help.
3568 * tid-parse.c (tid_range_parser::in_thread_range): New method.
3569 * tid-parse.h (tid_range_parser::in_thread_range): New method.
3570
f7e13587
PA
35712019-06-13 Pedro Alves <palves@redhat.com>
3572
3573 * thread.c (thread_apply_command): Check for invalid TID with
3574 isdigit instead of !isalpha.
3575
5d707134
PA
35762019-06-13 Pedro Alves <palves@redhat.com>
3577
3578 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
3579 (validate_flags_qcs): New.
3580 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
3581 (validate_flags_qcs): Declare.
3582 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
3583 (make_frame_apply_options_def_group): New.
3584 (frame_apply_command_count): Process options with
3585 gdb::option::process_options.
3586 (frame_apply_completer): New.
3587 (frame_apply_level_completer, frame_apply_all_completer)
3588 (frame_apply_completer): New.
3589 (_initialize_stack): Update help of "frame apply", "frame apply
3590 level", "frame apply all" and "faas" to mention supported options
3591 and install command completers.
3592 * stack.h (frame_apply_all_completer): Declare.
3593 * thread.c: Include "stack.h".
3594 (tfaas_command): Add "--".
3595 (_initialize_thread): Update help "tfaas" to mention supported
3596 options and install command completer.
3597
272d4594
PA
35982019-06-13 Pedro Alves <palves@redhat.com>
3599
3600 * completer.c (complete_nested_command_line): New.
3601 (gdb_completion_word_break_characters_throw): Add assertion.
3602 * completer.h (complete_nested_command_line): Declare.
3603
90a1ef87
PA
36042019-06-13 Pedro Alves <palves@redhat.com>
3605
3606 * stack.c (parse_backtrace_qualifiers): New.
3607 (backtrace_command): Use it.
3608 (backtrace_command_completer): Complete on qualifiers.
3609
d4c16835
PA
36102019-06-13 Pedro Alves <palves@redhat.com>
3611
3612 * frame.c: Include "cli/cli-option.h.
3613 (user_set_backtrace_options): New.
3614 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
3615 Delete.
3616 (get_prev_frame): Adjust.
3617 (boolean_option_def, uinteger_option_def)
3618 (set_backtrace_option_defs): New.
3619 (_initialize_frame): Adjust and use
3620 gdb::option::add_setshow_cmds_for_options to install "set
3621 backtrace past-main" and "set backtrace past-entry".
3622 * frame.h: Include "cli/cli-option.h".
3623 (struct frame_print_options): Forward declare.
3624 (print_frame_arguments_all, print_frame_arguments_scalars)
3625 (print_frame_arguments_none): Declare.
3626 (print_entry_values): Delete declaration.
3627 (struct frame_print_options, user_frame_print_options): New.
3628 (struct set_backtrace_options): New.
3629 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
3630 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3631 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3632 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
3633 (list_args_or_locals): Add frame_print_options parameter.
3634 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3635 * python/py-framefilter.c (enumerate_args): Pass down
3636 USER_FRAME_PRINT_OPTIONS.
3637 * stack.c: Include "cli/cli-option.h".
3638 (print_frame_arguments_all, print_frame_arguments_scalars)
3639 (print_frame_arguments_none): Declare.
3640 (print_raw_frame_arguments, print_entry_values): Delete.
3641 (user_frame_print_options): New.
3642 (boolean_option_def, enum_option_def, frame_print_option_defs):
3643 New.
3644 (struct backtrace_cmd_options): New.
3645 (bt_flag_option_def): New.
3646 (backtrace_command_option_defs): New.
3647 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
3648 (print_frame_arg, read_frame_arg, print_frame_args)
3649 (print_frame_info, print_frame): Add frame_print_options parameter
3650 and use it.
3651 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
3652 (backtrace_command_1): Add frame_print_options and
3653 backtrace_cmd_options parameters and use them.
3654 (make_backtrace_options_def_group): New.
3655 (backtrace_command): Process command options with
3656 gdb::option::process_options.
3657 (backtrace_command_completer): New.
3658 (_initialize_stack): Extend "backtrace"'s help to mention
3659 supported options. Install completer for "backtrace".
3660 Install some settings commands with add_setshow_cmds_for_options.
3661
2daf894e
PA
36622019-06-13 Pedro Alves <palves@redhat.com>
3663
3664 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
3665 and that "set/show print raw frame-arguments" are now deprecated.
3666
3667 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
3668 command.
3669 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
3670 * stack.c (_initialize_stack): Install "set/show print
3671 raw-frame-arguments", and deprecate "set/show print raw
3672 frame-arguments".
3673 * valprint.c (_initialize_valprint): Deprecate "set/show print
3674 raw".
3675
e6ed716c
PA
36762019-06-13 Pedro Alves <palves@redhat.com>
3677
3678 * compile/compile.c (struct compile_options): New.
3679 (compile_flag_option_def, compile_command_option_defs)
3680 (make_compile_options_def_group): New.
3681 (compile_file_command): Handle options with
3682 gdb::option::process_options.
3683 (compile_file_command_completer): New function.
3684 (compile_code_command): Handle options with
3685 gdb::option::process_options.
3686 (compile_code_command_completer): New function.
3687 (_initialize_compiler): Install completers for "compile code" and
3688 "compile file". Mention available options in "compile code" and
3689 "compile code"'s help.
3690 * completer.c (advance_to_completion_word): New, factored out from
3691 ...
3692 (advance_to_expression_complete_word_point): ... this.
3693 (advance_to_filename_complete_word_point): New.
3694 * completer.h (advance_to_filename_complete_word_point): New
3695 declaration.
3696
7d8062de
PA
36972019-06-13 Pedro Alves <palves@redhat.com>
3698
3699 * compile/compile.c: Include "cli/cli-option.h".
3700 (compile_print_value): Scope data pointer is now a
3701 value_print_options pointer; adjust.
3702 (compile_print_command): Process options. Scope data pointer is
3703 now a value_print_options pointer; adjust.
3704 (_initialize_compile): Update "compile print"'s help to include
3705 supported options. Install a completer for "compile print".
3706 * cp-valprint.c (show_vtblprint, show_objectprint)
3707 (show_static_field_print): Delete.
3708 (_initialize_cp_valprint): Don't install "set print
3709 static-members", "set print vtbl", "set print object" here.
3710 * printcmd.c: Include "cli/cli-option.h" and
3711 "common/gdb_optional.h".
3712 (print_command_parse_format): Rework to fill in a
3713 value_print_options instead of a format_data.
3714 (print_value): Change parameter type from format_data pointer to
3715 value_print_options reference. Adjust.
3716 (print_command_1): Process options. Adjust to pass down a
3717 value_print_options.
3718 (print_command_completer): New.
3719 (_initialize_printcmd): Install print_command_completer as
3720 handle_brkchars completer for the "print" command. Update
3721 "print"'s help to include supported options.
3722 * valprint.c: Include "cli/cli-option.h".
3723 (show_vtblprint, show_objectprint, show_static_field_print): Moved
3724 here from cp-valprint.c.
3725 (boolean_option_def, uinteger_option_def)
3726 (value_print_option_defs, make_value_print_options_def_group):
3727 New. Use gdb::option::add_setshow_cmds_for_options to install
3728 "set print elements", "set print null-stop", "set print repeats",
3729 "set print pretty", "set print union", "set print array", "set
3730 print address", "set print symbol", "set print array-indexes".
3731 * valprint.h: Include <string> and "cli/cli-option.h".
3732 (make_value_print_options_def_group): Declare.
3733 (print_value): Change parameter type from format_data pointer to
3734 value_print_options reference.
3735 (print_command_completer): Declare.
3736
9d0faba9
PA
37372019-06-13 Pedro Alves <palves@redhat.com>
3738
3739 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
3740 (COMMON_SFILES): Add maint-test-settings.c.
3741 * cli/cli-decode.c (boolean_enums): New global, factored out from
3742 ...
3743 (add_setshow_boolean_cmd): ... here.
3744 * cli/cli-decode.h (boolean_enums): Declare.
3745 * cli/cli-option.c: New file.
3746 * cli/cli-option.h: New file.
3747 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
3748 factored out from ...
3749 (parse_cli_boolean_value(const char *)): ... this.
3750 (is_unlimited_literal): Change parameter type to pointer to
3751 pointer. Adjust and advance ARG pointer.
3752 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3753 (parse_cli_var_enum): New, factored out from ...
3754 (do_set_command): ... this. Adjust.
3755 * cli/cli-setshow.h (parse_cli_boolean_value)
3756 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
3757 (parse_cli_var_enum): Declare.
3758 * cli/cli-utils.c: Include "cli/cli-option.h".
3759 (get_ulongest): New.
3760 * cli/cli-utils.h (get_ulongest): Declare.
3761 (check_for_argument): New overloads.
3762 * maint-test-options.c: New file.
3763
2c722807
PA
37642019-06-13 Pedro Alves <palves@redhat.com>
3765
3766 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
3767 parse a range if "-" is at the end of the string.
3768
dee7b4c8
PA
37692019-06-13 Pedro Alves <palves@redhat.com>
3770
3771 * cli/cli-setshow.c (parse_auto_binary_operation)
3772 (parse_cli_boolean_value): Don't allow "o".
3773
dca0f6c0
PA
37742019-06-13 Pedro Alves <palves@redhat.com>
3775
3776 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
3777 * NEWS: Mention maint test-settings KIND.
3778 * maint-test-settings.c: New file.
3779
597bf39d
PA
37802019-06-13 Pedro Alves <palves@redhat.com>
3781
3782 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
3783 completer.
3784 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
3785 "set" completers.
3786
48c410fb
PA
37872019-06-13 Pedro Alves <palves@redhat.com>
3788
3789 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
3790 after item.
3791
93bcb043
PA
37922019-06-13 Pedro Alves <palves@redhat.com>
3793
3794 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
3795
cbba3ecd
PA
37962019-06-13 Pedro Alves <palves@redhat.com>
3797
3798 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
3799 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
3800 call.
3801 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
3802 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
3803 calls.
3804 (check_for_argument): Skip spaces after argument.
3805
b9a3f842
PA
38062019-06-13 Pedro Alves <palves@redhat.com>
3807
3808 * thread.c (thread_apply_command): Adjust TID parsing.
3809 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
3810 detected before end of string.
3811 (tid_is_in_list): Error out if LIST is invalid.
3812
3844e605
PA
38132019-06-13 Pedro Alves <palves@redhat.com>
3814
3815 * completer.c (complete_line_internal_1): Rewind completion word
3816 point.
3817 (completion_tracker::advance_custom_word_point_by): Change
3818 parameter type to int.
3819 * completer.h (completion_tracker::advance_custom_word_point_by):
3820 Likewise.
3821
00b56dbe
PA
38222019-06-13 Pedro Alves <palves@redhat.com>
3823
3824 * completer.c (advance_to_completion_word): Handle delimiters.
3825
d106773e
PA
38262019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
3827
3828 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
3829
08f10e02
TT
38302019-06-11 Tom Tromey <tom@tromey.com>
3831
3832 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
3833 (xmalloc_failed): Move to alloc.c.
3834 * alloc.c: New file.
3835 * Makefile.in (COMMON_SFILES): Add alloc.c.
3836
1c7fe951
TT
38372019-06-11 Tom Tromey <tom@tromey.com>
3838
3839 * nat/linux-waitpid.c: Don't include server.h.
3840 (linux_debug): Remove.
3841 (my_waitpid): Update.
3842
89549d7f
TT
38432019-06-11 Tom Tromey <tromey@adacore.com>
3844
3845 * infcall.c (_initialize_infcall): Remove trailing newline from
3846 help.
3847 * user-regs.c (_initialize_user_regs): Remove trailing newline
3848 from help.
3849 * typeprint.c (_initialize_typeprint): Remove trailing newline
3850 from help.
3851 * reverse.c (_initialize_reverse): Remove trailing newlines from
3852 help.
3853 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
3854 from help.
3855 * language.c (add_set_language_command): Remove trailing newline
3856 from help.
3857 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
3858 help.
3859 * disasm.c (_initialize_disasm): Remove trailing newline from
3860 help.
3861 * top.c (init_main): Remove trailing newline from help.
3862 * interps.c (_initialize_interpreter): Remove trailing newline
3863 from help.
3864 * btrace.c (_initialize_btrace): Remove trailing newlines from
3865 help.
3866 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
3867 from help.
3868 * python/python.c (_initialize_python): Remove trailing newline
3869 from help.
3870 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
3871 help.
3872 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
3873 from help. Reformat some text.
3874 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
3875 from help.
3876 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
3877 newline from help.
3878
86108c13
TT
38792019-06-11 Tom Tromey <tromey@adacore.com>
3880
3881 * darwin-nat.c (darwin_decode_exception_message)
3882 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
3883
a7067863
AB
38842019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
3885
3886 * valops.c (value_slice): Check for not allocated or not
3887 associated values.
3888
9ab08412
TV
38892019-06-10 Tom de Vries <tdevries@suse.de>
3890
3891 PR gdb/24618
3892 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
3893 sure an empty slot (defined by a 32-bit zero pair) is recognized as
3894 invalid.
3895
f19e22e9
TV
38962019-06-10 Tom de Vries <tdevries@suse.de>
3897
3898 PR gdb/24611
3899 * linespec.c (linespec_lexer_lex_string): Remove incorrect
3900 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
3901
e99f9db0
TV
39022019-06-10 Tom de Vries <tdevries@suse.de>
3903
3904 PR symtab/24545
3905 * symtab.c (struct demangled_name_entry): Add language field.
3906 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
3907 static minimal symbol". Set and use language field.
3908
9bf7038b
TT
39092019-06-10 Tom Tromey <tromey@adacore.com>
3910
3911 * ada-lang.c (_initialize_ada_language): Update help text.
3912
422186a9
TT
39132019-06-10 Tom Tromey <tromey@adacore.com>
3914
3915 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
3916 with a newline.
3917 * guile/guile.c (handle_boot_error): Don't end warning with a
3918 newline.
3919 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
3920 warning with a newline.
3921 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
3922 newline.
3923 (s12z_frame_cache): Likewise.
3924 * dwarf-index-cache.c (index_cache::store): Don't end warning with
3925 a newline.
3926 * solib-svr4.c (disable_probes_interface): Don't end warning with
3927 a newline.
3928 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
3929 newline.
3930 * python/python.c (do_finish_initialization): Don't end warning
3931 with a newline.
3932
25ce02ee
TT
39332019-06-10 Tom Tromey <tom@tromey.com>
3934
3935 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3936 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
3937 gdbpy_enter.
3938
caa429d8
TT
39392019-06-10 Tom Tromey <tromey@adacore.com>
3940
3941 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
3942 data.
3943 (elf_new_init): Don't call stabsread_new_init.
3944 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
3945 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
3946 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
3947
81873cc8
TV
39482019-06-10 Tom de Vries <tdevries@suse.de>
3949
3950 PR symtab/16264
3951 PR symtab/24517
3952 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
3953
4fa0265e
РИ
39542019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
3955
3956 * source.c (find_and_open_source): Also rewrite relative file
3957 names.
3958
1a3da2cd
AB
39592019-04-26 Amos Bird <amosbird@gmail.com>
3960
3961 * annotate.c (annotate_thread_exited): Add "thread-exited"
3962 annotation.
3963
3847a7bf
TT
39642019-06-06 Tom Tromey <tromey@adacore.com>
3965
3966 * maint.h (class scoped_command_stats): Use
3967 DISABLE_COPY_AND_ASSIGN.
3968 <print_time>: New method.
3969 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
3970 print_time.
3971 (scoped_command_stats::print_time): New method.
3972
312617a3
AB
39732019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
3976 instructions of lengths 6 or 8 bytes.
3977
b02f78f9
PA
39782019-06-04 Pedro Alves <palves@redhat.com>
3979
3980 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
3981
3982 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
3983 * breakpoint.c (condition_completer): Likewise.
3984 * cli/cli-dump.c (scan_expression): Likewise.
3985 * common/filestuff.c (mkdir_recursive): Likewise.
3986 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
3987 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
3988 (gdb_abspath): Likewise.
3989 * compile/compile-cplus-types.c
3990 (compile_cplus_instance::decl_name): Likewise.
3991 * completer.c (complete_explicit_location):
3992 (signal_completer, reg_or_group_completer_1): Likewise.
3993 * cp-support.c (cp_remove_params_if_any): Likewise.
3994 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
3995 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
3996 * infcmd.c (strip_bg_char): Likewise.
3997 * linespec.c (copy_token_string): Likewise.
3998 * mi/mi-main.c (output_cores): Likewise.
3999 * psymtab.c (psymtab_search_name):
4000 * symfile.c (test_set_ext_lang_command): Likewise.
4001 * target.c (target_fileio_read_stralloc): Likewise.
4002 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4003 * value.c (complete_internalvar): Likewise.
4004
e1f2e1a2
CB
40052019-06-04 Christian Biesinger <cbiesinger@google.com>
4006
4007 Add objfile property to gdb.Type.
d3238f7d
PA
4008 * NEWS: Mention Python API addition.
4009 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4010
e664d728
PW
40112019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4012
4013 * NEWS: Mention the new set|show style [title|highlight].
4014 Mention changes to "show style", "help" and "apropos".
4015
66d8c862
PW
40162019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4017
4018 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4019 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4020 instead of print_help_for_command.
4021 (print_doc_of_command): New function.
4022 (help_list): Add 'apropos -v word' suggestion.
4023 (print_help_for_command): Style the command name using title style.
4024 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4025 (_initialize_cli_cmds): Describe -v in apropos_command help.
4026
9303eb2f
PW
40272019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4028
4029 * cli/cli-style.h (cli_style_option): Add name in constructor,
4030 add m_name class member, add constructor with intensity,
4031 add name class function.
4032 (cli_style_option::add_setshow_commands): Remove name argument.
4033 (highlight_style, title_style): New styles.
4034 * cli/cli-style.c (do_show): New function that shows a style
4035 characteristic styling the style name with itself.
4036 (set_style_name): New function.
4037 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4038 Update all callers according to the changes in cli/cli-style.h.
4039 * utils.h (fputs_highlighted): New function.
4040 * utils.c (fputs_highlighted): Likewise.
4041
e2c52041
PW
40422019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4043
4044 * NEWS: Mention new pipe command and new convenience variables.
4045
947d3946
PW
40462019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4047
4048 * cli/cli-cmds.c (pipe_command): New function.
4049 (_initialize_cli_cmds): Call add_com for pipe_command.
4050 Define | as an alias for pipe.
4051 (exit_status_set_internal_vars): New function.
4052 (shell_escape): Call exit_status_set_internal_vars.
4053 cli/cli-decode.c (find_command_name_length): Recognize | as
4054 a single character command.
4055
b8fd0918
PW
40562019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4057
4058 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4059 top.c (execute_command_to_ui_file): New function, mostly a copy
4060 of execute_command_to_string.
4061 (execute_command_to_string): Implement by calling
4062 execute_command_to_ui_file.
4063
68bb5386
PW
40642019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4065
4066 * top.h (saved_command_line): Remove declaration.
4067 * top.c (previous_saved_command_line, previous_repeat_arguments):
4068 New variables.
4069 (saved_command_line): Make static, define together with other
4070 'repeat variables'.
4071 (dont_repeat): Clear repeat_arguments.
4072 (repeat_previous, get_saved_command_line, save_command_line):
4073 New functions.
4074 (gdb_init): Initialize saved_command_line
4075 and previous_saved_command_line.
4076 * main.c (captured_main_1): Remove saved_command_line initialization.
4077 * event-top.c (handle_line_of_input): Update to use
4078 the new 'repeat' related functions instead of direct access to
4079 saved_command_line.
4080 * command.h (repeat_previous, get_saved_command_line,
4081 save_command_line): New declarations.
4082 (dont_repeat): Add comment.
4083
bfcdb852
TT
40842019-05-30 Tom Tromey <tromey@adacore.com>
4085
4086 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4087 Fix comment.
4088 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4089
0ef209f2
JV
40902019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4091
4092 PR cli/24587
4093 * completer.c (complete): Initialize variable word.
4094
955b06fa
SDJ
40952019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4096
4097 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4098 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4099 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4100 'body' is NULL to the outter 'if', protecting the '!is_define'
4101 situation as well.
4102
fa9c3fa0
TT
41032019-05-29 Tom Tromey <tromey@adacore.com>
4104
4105 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4106 (dwarf_unknown): New function.
4107 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4108 (dwarf_type_encoding_name): Use dwarf_unknown.
4109
4330d61d
TT
41102019-05-29 Tom Tromey <tromey@adacore.com>
4111
4112 PR c++/20020:
4113 * cp-valprint.c (cp_print_value_fields): Call
4114 cp_print_static_field inside "try".
4115
33a6bc35
TT
41162019-05-29 Tom Tromey <tromey@adacore.com>
4117
4118 * inflow.c (struct terminal_info): Add default operator=.
4119 * configure: Rebuild.
4120 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4121 -Wdeprecated-copy-dtor, -Wredundant-move.
4122
000439d5
TT
41232019-05-29 Tom Tromey <tromey@adacore.com>
4124
4125 * NEWS: Add entry.
4126 * infcmd.c (print_return_value_1): Handle finish_print
4127 option.
4128 (show_print_finish): New function.
4129 (_initialize_infcmd): Add "set/show print finish" commands.
4130 * valprint.c (user_print_options): Initialize new member.
4131 * valprint.h (struct value_print_options) <finish_print>: New
4132 member.
4133
c0e70c62
TT
41342019-05-28 Tom Tromey <tromey@adacore.com>
4135
4136 * ada-lang.c (ada_remove_Xbn_suffix)
4137 (find_old_style_renaming_symbol)
4138 (parse_old_style_renaming): Remove.
4139 (ada_find_renaming_symbol): Don't call
4140 find_old_style_renaming_symbol.
4141 (ada_is_renaming_symbol): Rename from
4142 ada_find_renaming_symbol. Remove "block" parameter. Return
4143 bool. Now static.
4144 (ada_read_var_value): Update and simplify.
4145 * ada-exp.y (write_var_or_type): Remove old code.
4146
766f8836
AH
41472019-05-28 Alan Hayward <alan.hayward@arm.com>
4148
4149 * event-top.c: Remove include comment.
4150 * inflow.c (class scoped_ignore_sigttou): Move from here...
4151 * inflow.h (class scoped_ignore_sigttou): ...to here.
4152 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4153 * top.c: Remove include comment.
4154
eb41253a
TT
41552019-05-27 Tom Tromey <tom@tromey.com>
4156
4157 * NEWS: Fix typo.
4158
4ca51187
TT
41592019-05-22 Tom Tromey <tromey@adacore.com>
4160
4161 * target.c (target_follow_exec): Constify parameter.
4162 * target-delegates.c: Rebuild.
4163 * remote.c (remote_target::follow_exec): Constify parameter.
4164 * infrun.c (follow_exec): Constify parameter.
4165 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4166 (target_follow_exec): Likewise.
4167
8fca4da0
AH
41682019-05-22 Alan Hayward <alan.hayward@arm.com>
4169
4170 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4171 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4172
b7060614
AH
41732019-05-22 Alan Hayward <alan.hayward@arm.com>
4174
4175 * NEWS: Add debugredirect and testsuite sections.
4176
0a5954bd
SC
41772019-05-22 Simon Cook <simon.cook@embecosm.com>
4178
4179 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4180 target descriptions using exclusively floating point register name
4181 aliases.
4182
dc42e902
AB
41832019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4184
4185 PR gdb/18644:
4186 * f-lang.c (build_fortran_types): Handle the case where
4187 gdbarch_floatformat_for_type returns a nullptr.
4188
fb7806c7
TV
41892019-05-21 Tom de Vries <tdevries@suse.de>
4190
4191 PR cli/24587
4192 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
4193
34d11c68
AB
41942019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4195
4196 PR gdb/18644:
4197 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
4198 16-byte floats.
4199 * i386-tdep.c (i386_floatformat_for_type): Use
4200 floatformats_ia64_quad for the 16-byte floating point component
4201 within a fortran 32-byte complex number.
4202
122cf0f2
AB
42032019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
4204
4205 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
4206 delete default constructor.
4207 (find_partial_die): Update to return const struct.
4208 (partial_die_parent_scope): Move variable declaration into scope
4209 of its use and change its type to auto.
4210 (guess_partial_die_structure_name): Likewise.
4211 (partial_die_info::fixup): Likewise.
4212
33d0e35a
TT
42132019-05-17 Tom Tromey <tromey@adacore.com>
4214
4215 * source.c (find_and_open_source): Remove cast.
4216
a45575b0
TT
42172019-05-17 Tom Tromey <tromey@adacore.com>
4218
4219 * annotate.c (annotate_source): Make "filename" const.
4220 * annotate.h (annotate_source): Use const.
4221
81f47ac2
AH
42222019-05-17 Alan Hayward <alan.hayward@arm.com>
4223
4224 * disasm.c (set_disassembler_options): Send errors to stderr.
4225
ca1285d1
AH
42262019-05-17 Alan Hayward <alan.hayward@arm.com>
4227
4228 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
4229 (cli_interp_base::set_logging): Check debug_redirect.
4230 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
4231 * cli/cli-logging.c (debug_redirect): Add static variable.
4232 (pop_output_files): Add default param.
4233 (handle_redirections): Print debug setting.
4234 (show_logging_command): Likewise.
4235 (_initialize_cli_logging): Add debugredirect command.
4236 * interps.c (current_interp_set_logging): Add debug_redirect
4237 parameter.
4238 * interps.h (set_logging): Add debug_redirect parameter.
4239 (current_interp_set_logging): Likewise.
4240 * mi/mi-common.h: Likewise.
4241 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
4242
42432019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
4244 Tom Tromey <tromey@adacore.com>
4245
4246 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
4247 directly.
4248 * cli/cli-interp.h (make_logging_output): Remove declaration.
4249 * cli/cli-logging.c (make_logging_output): Remove function.
4250 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
4251 directly.
4252 * ui-file.c (tee_file::tee_file): Remove bools.
4253 (tee_file::~tee_file): Remove deletes.
4254 * ui-file.h (tee_file): Remove bools.
4255
26648588
JV
42562019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
4257
4258 * mi/mi-cmds.h (mi_cmd_complete): New function.
4259 * mi/mi-main.c (mi_cmd_complete): Likewise.
4260 * mi/mi-cmds.c: Define new MI command -complete.
4261 * NEWS: Mention new -complete command.
4262
6e035501
JV
42632019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
4264
4265 * completer.h (complete): New function.
4266 * completer.c (complete): Likewise.
4267 * cli/cli-cmds.c: (complete_command): Update to use new complete()
4268 function defined in completer.h.
4269
7d0e2ece
JV
42702019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
4271
e79be6e5 4272 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 4273
fb816e8b
TV
42742019-05-17 Tom de Vries <tdevries@suse.de>
4275
4276 PR gdb/24094
4277 * dwarf2read.c (struct cu_partial_die_info): New struct.
4278 (find_partial_die): Return cu_partial_die_info.
4279 (partial_die_parent_scope, guess_partial_die_structure_name)
4280 (partial_die_info::fixup): Handle new return type of find_partial_die.
4281
677052f2
SDJ
42822019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4283
4284 * stap-probe.c (stap_parse_register_operand): Make "regname" an
4285 "std::string", simplifying the algorithm.
4286
f3da9116
SDJ
42872019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4288
4289 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
4290 (stap_static_probe_ops::get_probes): Likewise.
4291
f1bb75ab
SDJ
42922019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4293
4294 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
4295 '-')" and "else if".
4296 (stap_parse_single_operand): Join checks for
4297 "gdbarch_stap_parse_special_token_p" and
4298 "gdbarch_stap_parse_special_token" in the same "if" statement.
4299 Invert check when verifying for operation on register
4300 displacement.
4301
3ca58cde
SDJ
43022019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4303
4304 * stap-probe.c (stap_get_opcode): Update comment.
4305 (stap_get_expected_argument_type): Likewise.
4306 (handle_stap_probe): Likewise.
4307
af2d9bee
SDJ
43082019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4309
4310 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
4311 return type to 'bool'. Adjust comment. Use 'bool' when
4312 appropriate.
4313 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4314 * stap-probe.c (stap_parse_argument_1): Likewise.
4315 (stap_is_operator): Likewise.
4316 (stap_is_generic_prefix): Likewise.
4317 (stap_is_register_prefix): Likewise.
4318 (stap_is_register_indirection_prefix): Likewise.
4319 (stap_is_integer_prefix): Likewise.
4320 (stap_generic_check_suffix): Likewise.
4321 (stap_check_integer_suffix): Likewise.
4322 (stap_check_register_suffix): Likewise.
4323 (stap_check_register_indirection_suffix): Likewise.
4324 (stap_parse_register_operand): Likewise.
4325 (stap_parse_single_operand): Likewise.
4326 (stap_parse_argument_1): Likewise.
4327 (stap_probe::get_argument_count): Likewise.
4328 (stap_is_operator): Likewise.
4329
61c9c421
TT
43302019-05-16 Tom Tromey <tromey@adacore.com>
4331
4332 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
4333 keyword to foreach.
4334
9ddc1af1
SM
43352019-05-15 Simon Marchi <simon.marchi@efficios.com>
4336
4337 * linux-thread-db.c (try_thread_db_load_1): Change return type
4338 to bool.
4339 (try_thread_db_load): Likewise.
4340 (try_thread_db_load_from_pdir_1): Likewise.
4341 (try_thread_db_load_from_pdir): Likewise.
4342 (try_thread_db_load_from_sdir): Likewise.
4343 (try_thread_db_load_from_dir): Likewise.
4344 (thread_db_load_search): Likewise.
4345 (has_libpthread): Likewise.
4346 (thread_db_load): Likewise.
4347
7bede828
SDJ
43482019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
4349
4350 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4351 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
4352 NULL, and complain/return if that's the case.
4353
c5358db4
JD
43542019-05-15 John Darrington <john@darrington.wattle.id.au>
4355
4356 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
4357 (advance, posn, abstract_read_memory): New functions.
4358 [struct mem_read_abstraction]: New struct.
4359 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
4360
c408a94f
TT
43612019-05-14 Tom Tromey <tromey@adacore.com>
4362
4363 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4364 value is not lval_memory.
4365
e7bd7fba
TT
43662019-05-14 Tom Tromey <tromey@adacore.com>
4367
4368 * solib.c (info_sharedlibrary_command): Style the file name.
4369
a6d0f249
AH
43702019-05-14 Alan Hayward <alan.hayward@arm.com>
4371
4372 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
4373 (aarch64_vnv_type): Likewise.
4374 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
4375 * common/tdesc.c: Likewise.
4376 * common/tdesc.h (enum tdesc_type_kind): Likewise.
4377 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
4378 * features/aarch64-fpu.xml: Add ieee half view.
4379 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
4380 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
4381 * gdbtypes.h (struct builtin_type): Likewise.
4382 (struct objfile_type): Likewise.
4383
66b8bb74
SM
43842019-05-12 Paul Naert <paul.naert@polymtl.ca>
4385
4386 * language.c (language_sniff_from_mangled_name): Fix "langauge"
4387 typo.
4388 * location.h (string_to_event_location): Likewise.
4389
21c219fd
JB
43902019-05-11 Joel Brobecker <brobecker@adacore.com>
4391
4392 GDB 8.3 released.
4393
13674803
SM
43942019-05-10 Simon Marchi <simon.marchi@efficios.com>
4395
4396 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
4397 New variable declaration.
4398 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
4399 New variable.
4400 (print_one_breakpoint): Use ui_out::test_flags and new global
4401 variable to compute use_fixed_output.
4402 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
4403 Remove.
4404 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
4405 (mi_multi_location_breakpoint_output_fixed): Remove.
4406 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
4407 new variable.
4408 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
4409 fix_multi_location_breakpoint_output flag if version >= 3.
4410 * ui-out.h (enum ui_out_flag)
4411 <fix_multi_location_breakpoint_output>: New enumerator.
4412
a9eac7f9
SM
44132019-05-10 Simon Marchi <simon.marchi@efficios.com>
4414
4415 * contrib/cc-with-tweaks.sh: Validate dwz's work.
4416
71bed2db
TT
44172019-05-10 Tom Tromey <tromey@adacore.com>
4418
4419 * ada-lang.c (catch_ada_completer): New function.
4420 (_initialize_ada_language): Use it.
4421
24c54127
TT
44222019-05-10 Tom Tromey <tromey@adacore.com>
4423
4424 * thread.c (print_thread_info): Make "requested_threads" const.
4425 * gdbthread.h (print_thread_info): Make "requested_threads"
4426 const.
4427 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
4428 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
4429
7a102139
TT
44302019-05-08 Tom Tromey <tom@tromey.com>
4431
4432 * gdbtypes.c (objfile_type_data): Change type.
4433 (objfile_type, _initialize_gdbtypes): Update.
4434
924d79e2
TT
44352019-05-08 Tom Tromey <tom@tromey.com>
4436
4437 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
4438 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
4439 (_initialize_dwarf2_frame): Update.
4440
4c58e337
TT
44412019-05-08 Tom Tromey <tom@tromey.com>
4442
4443 * objc-lang.c (objc_objfile_data): Change type.
4444 (find_methods): Update.
4445 (_initialize_objc_lang): Remove.
4446
d772d2ab
TT
44472019-05-08 Tom Tromey <tom@tromey.com>
4448
4449 * stabsread.c (rs6000_builtin_type_data): Change type.
4450 (rs6000_builtin_type, _initialize_stabsread): Update.
4451
d11d83f4
TT
44522019-05-08 Tom Tromey <tom@tromey.com>
4453
4454 * mips-tdep.c (mips_pdr_data): Remove.
4455 (_initialize_mips_tdep): Update.
4456
9a73f0ad
TT
44572019-05-08 Tom Tromey <tom@tromey.com>
4458
4459 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
4460 (hppa_init_objfile_priv_data, read_unwind_info)
4461 (find_unwind_entry, _initialize_hppa_tdep): Update.
4462
8127a2fa
TT
44632019-05-08 Tom Tromey <tom@tromey.com>
4464
4465 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
4466 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
4467 on obstack.
4468 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
4469
91d3055d
TT
44702019-05-08 Tom Tromey <tom@tromey.com>
4471
4472 * mdebugread.c (basic_type_data): Change type.
4473 (basic_type, _initialize_mdebugread): Update.
4474
31930bd3
TT
44752019-05-08 Tom Tromey <tom@tromey.com>
4476
4477 * common/gdb_unique_ptr.h (struct noop_deleter): New.
4478
bdb3ed9e
TT
44792019-05-08 Tom Tromey <tom@tromey.com>
4480
4481 * nto-tdep.c (nto_inferior_data_reg): Change type.
4482 (nto_inferior_data): Update.
4483 (nto_inferior_data_cleanup, nto_new_inferior_data)
4484 (_initialize_nto_tdep): Remove.
4485 * nto-tdep.h (struct nto_inferior_data): Add initializers.
4486
f37b313d
TT
44872019-05-08 Tom Tromey <tom@tromey.com>
4488
4489 * ada-lang.c (struct ada_inferior_data): Add initializers.
4490 (ada_inferior_data): Change type.
4491 (ada_inferior_data_cleanup): Remove.
4492 (get_ada_inferior_data, ada_inferior_exit)
4493 (struct ada_pspace_data): Add initializers, destructor.
4494 (ada_pspace_data_handle): Change type.
4495 (get_ada_pspace_data): Update.
4496 (ada_pspace_data_cleanup): Remove.
4497
24699405
TT
44982019-05-08 Tom Tromey <tom@tromey.com>
4499
4500 * coffread.c (struct coff_symfile_info): Add initializers.
4501 (coff_objfile_data_key): Move lower. Change type.
4502 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
4503 Update.
4504 (coff_free_info): Remove.
4505
d4e05d2f
TT
45062019-05-08 Tom Tromey <tom@tromey.com>
4507
4508 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
4509 (fbsd_pspace_data_handle): Move lower. Change type.
4510 (get_fbsd_pspace_data): Update.
4511 (fbsd_pspace_data_cleanup): Remove.
4512 (_initialize_fbsd_tdep): Update.
4513
14ef6690
TT
45142019-05-08 Tom Tromey <tom@tromey.com>
4515
4516 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
4517 (get_ada_tasks_pspace_data): Update.
4518 (ada_tasks_pspace_data_cleanup): Remove.
4519 (_initialize_tasks): Update.
4520 (ada_tasks_inferior_data_handle): Change type.
4521 (get_ada_tasks_inferior_data): Update.
4522 (ada_tasks_inferior_data_cleanup): Remove.
4523 (struct ada_tasks_pspace_data): Add initializers.
4524
814cf43a
TT
45252019-05-08 Tom Tromey <tom@tromey.com>
4526
4527 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
4528 * symfile-debug.c (debug_sym_get_probes): Change type.
4529 * stap-probe.c (handle_stap_probe):
4530 (stap_static_probe_ops::get_probes): Change type.
4531 * probe.h (class static_probe_ops) <get_probes>: Change type.
4532 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
4533 (parse_probes_in_pspace): Update.
4534 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
4535 Update.
4536 (any_static_probe_ops::get_probes): Change type.
4537 * elfread.c (elfread_data): New typedef.
4538 (probe_key): Change type.
4539 (elf_get_probes): Likewise. Update.
4540 (probe_key_free): Remove.
4541 (_initialize_elfread): Update.
4542 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
4543 Change type.
4544 (dtrace_process_dof_probe, dtrace_process_dof)
4545 (dtrace_static_probe_ops::get_probe): Change type.
4546
02dc647e
TT
45472019-05-08 Tom Tromey <tom@tromey.com>
4548
4549 * xcoffread.c (struct xcoff_symfile_info): Rename from
4550 coff_symfile_info. Add initializers.
4551 (xcoff_objfile_data_key): Move lower. Change type.
4552 (XCOFF_DATA): Rewrite.
4553 (xcoff_free_info): Remove.
4554 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
4555 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
4556 (xcoff_initial_scan): Update.
4557
09232438
TT
45582019-05-08 Tom Tromey <tom@tromey.com>
4559
4560 * solib-svr4.c (struct svr4_info): Add initializers and
4561 destructor.
4562 <probes_table>: Now an htab_up.
4563 (solib_svr4_pspace_data): Change type.
4564 (free_probes_table): Simplify.
4565 (~svr4_info): Rename from svr4_pspace_data_cleanup.
4566 (get_svr4_info, probes_table_htab_remove_objfile_probes)
4567 (probes_table_remove_objfile_probes, register_solib_event_probe)
4568 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
4569 (_initialize_svr4_solib): Update.
4570
7b4a314f
TT
45712019-05-08 Tom Tromey <tom@tromey.com>
4572
4573 * remote.c (remote_pspace_data): Change type.
4574 (remote_pspace_data_cleanup): Remove.
4575 (get_remote_exec_file, set_pspace_remote_exec_file)
4576 (_initialize_remote): Update.
4577
51d3063a
TT
45782019-05-08 Tom Tromey <tom@tromey.com>
4579
4580 * breakpoint.c (breakpoint_objfile_key): Change type.
4581 (get_breakpoint_objfile_data): Update.
4582 (free_breakpoint_objfile_data): Remove.
4583 (_initialize_breakpoint): Update.
4584
89fb8848
TT
45852019-05-08 Tom Tromey <tom@tromey.com>
4586
4587 * linux-tdep.c (struct linux_info): Add initializers.
4588 (linux_inferior_data): Move. Change type.
4589 (invalidate_linux_cache_inf): Update.
4590 (linux_inferior_data_cleanup): Remove.
4591 (get_linux_inferior_data, _initialize_linux_tdep): Update.
4592
e9b89e2d
TT
45932019-05-08 Tom Tromey <tom@tromey.com>
4594
4595 * auxv.c (auxv_inferior_data): Move. Change type.
4596 (auxv_inferior_data_cleanup): Remove.
4597 (invalidate_auxv_cache_inf): Rewrite.
4598 (get_auxv_inferior_data, _initialize_auxv): Update.
4599
8c42777c
TT
46002019-05-08 Tom Tromey <tom@tromey.com>
4601
4602 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
4603 (symfile_debug_objfile_data_key): Change type.
4604 (symfile_debug_installed, debug_qf_has_symbols)
4605 (debug_qf_find_last_source_symtab)
4606 (debug_qf_forget_cached_source_info)
4607 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
4608 (debug_qf_print_stats, debug_qf_dump)
4609 (debug_qf_expand_symtabs_for_function)
4610 (debug_qf_expand_all_symtabs)
4611 (debug_qf_expand_symtabs_with_fullname)
4612 (debug_qf_map_matching_symbols)
4613 (debug_qf_expand_symtabs_matching)
4614 (debug_qf_find_pc_sect_compunit_symtab)
4615 (debug_qf_map_symbol_filenames)
4616 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
4617 (debug_sym_new_init, debug_sym_init, debug_sym_read)
4618 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
4619 (debug_sym_read_linetable, debug_sym_relocate): Update.
4620 (symfile_debug_free_objfile): Remove.
4621 (install_symfile_debug_logging, _initialize_symfile_debug):
4622 Update.
4623
5bfd760d
TT
46242019-05-08 Tom Tromey <tom@tromey.com>
4625
4626 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
4627 allocate_on_obstack.
4628 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
4629 (get_dwarf2_per_objfile): Update.
4630 (set_dwarf2_per_objfile): Remove.
4631 (dwarf2_has_info, dwarf2_get_section_info): Update.
4632 (dwarf2_free_objfile): Remove.
4633 (_initialize_dwarf2_read): Update.
4634
e85e19b4
TT
46352019-05-08 Tom Tromey <tom@tromey.com>
4636
4637 * auto-load.c (struct auto_load_pspace_info): Add destructor and
4638 initializers.
4639 <unsupported_script_warning_printed,
4640 script_not_found_warning_printed>: Now bool.
4641 (auto_load_pspace_data): Change type.
4642 (~auto_load_pspace_info): Rename from
4643 auto_load_pspace_data_cleanup.
4644 (get_auto_load_pspace_data, init_loaded_scripts_info)
4645 (clear_section_scripts, maybe_print_unsupported_script_warning)
4646 (maybe_print_script_not_found_warning, _initialize_auto_load):
4647 Update.
4648
f6aa7436
TT
46492019-05-08 Tom Tromey <tom@tromey.com>
4650
4651 * objfiles.c (objfile_pspace_info): Add destructor and
4652 initializers.
4653 (objfiles_pspace_data): Change type.
4654 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
4655 (get_objfile_pspace_data): Update.
4656 (objfiles_bfd_data): Change type.
4657 (get_objfile_bfd_data): Update.
4658 (objfile_bfd_data_free, _initialize_objfiles): Remove.
4659
6ae614f6
TT
46602019-05-08 Tom Tromey <tom@tromey.com>
4661
4662 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
4663 Change type.
4664 (get_catch_syscall_inferior_data): Update.
4665 (catch_syscall_inferior_data_cleanup): Remove.
4666 (_initialize_break_catch_syscall): Update.
4667
6509b8eb
TT
46682019-05-08 Tom Tromey <tom@tromey.com>
4669
4670 * inflow.c (struct terminal_info): Add destructor and
4671 initializers.
4672 (inflow_inferior_data): Change type.
4673 (~terminal_info): Rename from inflow_inferior_data_cleanup.
4674 (get_inflow_inferior_data, inflow_inferior_exit)
4675 (swap_terminal_info, _initialize_inflow): Update.
4676
35632941
TT
46772019-05-08 Tom Tromey <tom@tromey.com>
4678
4679 * target-dcache.c (target_dcache_cleanup): Remove.
4680 (target_dcache_aspace_key): Change type.
4681 (target_dcache_init_p, target_dcache_invalidate)
4682 (target_dcache_get, target_dcache_get_or_init)
4683 (_initialize_target_dcache): Update.
4684 * dcache.h (struct dcache_deleter): New.
4685
3017b94d
TT
46862019-05-08 Tom Tromey <tom@tromey.com>
4687
4688 * symtab.c (struct symbol_cache): Add destructor and
4689 initializers.
4690 (symbol_cache_key): Move. Change type.
4691 (make_symbol_cache, free_symbol_cache): Remove.
4692 (get_symbol_cache): Update.
4693 (symbol_cache_cleanup): Remove.
4694 (ALL_PSPACES, symbol_cache_flush)
4695 (maintenance_print_symbol_cache)
4696 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
4697 Update.
4698
a32ad8c5
TT
46992019-05-08 Tom Tromey <tom@tromey.com>
4700
4701 * symtab.c (struct main_info): Add destructor and initializers.
4702 (main_progspace_key): Move. Change type.
4703 (get_main_info): Update.
4704 (main_info_cleanup): Remove.
4705 (_initialize_symtab): Update.
4706
5f6e90a0
TT
47072019-05-08 Tom Tromey <tom@tromey.com>
4708
4709 * registry.h (DECLARE_REGISTRY): Define the _key class.
4710
1bd0c6e4
AB
47112019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
4712
4713 * NEWS: Merge two 'New commands' sections.
4714
2228ef77
XR
47152019-05-08 Joel Brobecker <brobecker@adacore.com>
4716
4717 * ada-valprint.c (ada_val_print_gnat_array): Remove language
4718 parameter and use Ada language definition instead.
4719 (ada_val_print_ptr): Remove unused language parameter.
4720 (ada_val_print_num): Remove language parameter and use Ada language
4721 definition instead.
4722 (ada_val_print_enum, ada_val_print_flt): Remove unused language
4723 parameter.
4724 (ada_val_print_struct_union, ada_val_print_ref): Remove language
4725 parameter and use Ada language definition instead.
4726 (ada_val_print_1): Update all ada_val_print_xxx calls.
4727 Remove language parameter.
4728 (ada_val_print): Update ada_val_print_1 call.
4729
60fcc1c3
TT
47302019-05-08 Tom Tromey <tromey@adacore.com>
4731
4732 * remote.c (remote_hw_watchpoint_limit)
4733 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
4734 Now static.
4735
ed2b7c17
TT
47362019-05-08 Tom Tromey <tromey@adacore.com>
4737
4738 * maint.c (_initialize_maint_cmds): Move initialization code to
4739 remote.c.
4740 (watchdog, show_watchdog): Move to remote.c.
4741 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
4742 "watchdog" static.
4743 (_initialize_remote): Move initialization code from maint.c.
4744 * defs.h (watchdog): Don't declare.
4745
b0be6c91
TT
47462019-05-08 Tom Tromey <tromey@adacore.com>
4747
4748 * tui/tui-interp.c: Include main.h.
4749 * interps.c: Include main.h.
4750 * main.h (interpreter_p): Declare.
4751 * defs.h (interpreter_p): Don't declare.
4752
587ee17b
TT
47532019-05-08 Tom Tromey <tromey@adacore.com>
4754
4755 * dwarf2loc.c: Include dwarf2read.h.
4756 * defs.h (read_unsigned_leb128): Don't declare.
4757 * dwarf2read.h (read_unsigned_leb128): Declare.
4758
ca1df239
TT
47592019-05-08 Tom Tromey <tromey@adacore.com>
4760
4761 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
4762 method.
4763
99f20f08
TT
47642019-05-08 Tom Tromey <tromey@adacore.com>
4765
4766 * utils.c (fputs_maybe_filtered): Reset style after paging, even
4767 when no wrap column is set.
4768
80e55b13
TT
47692019-05-08 Tom Tromey <tromey@adacore.com>
4770
4771 * c-lang.c (c_get_string): Handle non-C-style arrays.
4772
9d3421af
TT
47732019-05-08 Tom Tromey <tromey@adacore.com>
4774
4775 * typeprint.c (print_offset_data::update): Print the bit offset,
4776 not the number of bits remaining.
4777
844333e2
TT
47782019-05-08 Tom Tromey <tromey@adacore.com>
4779
4780 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
4781 padding at end of comment.
4782
988915ee
TT
47832019-05-08 Tom Tromey <tromey@adacore.com>
4784
4785 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
4786 Compare main types.
4787
26bfd823
TT
47882019-05-06 Tom Tromey <tom@tromey.com>
4789
4790 * common/scoped_mmap.c: Include common-defs.h.
4791 * common/scoped_mmap.h: Don't include config.h.
4792
89055eaa
TT
47932019-05-04 Tom Tromey <tom@tromey.com>
4794
4795 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
4796 (struct aarch64_call_info): Add initializers.
4797 <si>: Now a std::vector.
4798 (pass_on_stack, aarch64_push_dummy_call): Update.
4799
5da01df5
TT
48002019-05-04 Simon Marchi <simon.marchi@efficios.com>
4801 Tom Tromey <tom@tromey.com>
4802
4803 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
4804 (ppc_threads): Now a std::vector. Now static.
4805 (hwdebug_find_thread_points_by_tid)
4806 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
4807 Update.
4808
fbdf05a1
TT
48092019-05-04 Tom Tromey <tom@tromey.com>
4810
4811 * arc-tdep.c (arc_tdesc_init): Return bool.
4812
06d16ec9
TT
48132019-05-04 Tom Tromey <tom@tromey.com>
4814
4815 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
4816 Use gdb_assert_not_reached.
4817
9c056022
TT
48182019-05-04 Tom Tromey <tom@tromey.com>
4819
4820 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
4821 "false".
4822
fa9c2a59
TT
48232019-05-04 Tom Tromey <tom@tromey.com>
4824
4825 * arc-tdep.c (arc_tdesc_init): Use bool.
4826
e2eb806a
TT
48272019-05-04 Tom Tromey <tom@tromey.com>
4828
4829 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
4830
6fe87677
TT
48312019-05-04 Tom Tromey <tom@tromey.com>
4832
4833 * cli/cli-cmds.c (valid_command_p): Return bool.
4834
7f008c9e
TT
48352019-05-04 Tom Tromey <tom@tromey.com>
4836
4837 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
4838 * command.h (valid_user_defined_cmd_name_p): Channge return type.
4839
b6484282
RT
48402019-05-04 Raul Tambre <raul@tambre.ee>
4841
4842 * python/lib/gdb/prompt.py (_ExtendedPrompt)
4843 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
4844 operator for comparison.
4845
af97b416
TT
48462019-05-04 Tom Tromey <tom@tromey.com>
4847
4848 * psymtab.c (psymbol_name_matches, match_partial_symbol)
4849 (lookup_partial_symbol, print_partial_symbols)
4850 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
4851 (psymbol_compare): Update.
4852 (add_psymbol_to_bcache): Clear the entire psymbol.
4853 (maintenance_check_psymtabs): Update.
4854 * psympriv.h (struct partial_symbol): Don't derive from
4855 general_symbol_info.
4856 <obj_section, unrelocated_address, address,
4857 set_unrelocated_address>: Update.
4858 <ginfo>: New member.
4859 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4860 (debug_names::write_psymbols): Update.
4861
9d6d4be8
TV
48622019-05-04 Tom de Vries <tdevries@suse.de>
4863
4864 * contrib/cc-with-tweaks.sh: Support -n arg.
4865
66452beb
PW
48662019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4867
4868 * corelow.c (core_target::detach): Ensure frame cache and
4869 register caches are cleared.
4870 inferior.c (exit_inferior_1): Likewise.
4871
bde09ab7
TT
48722019-05-03 Sandra Loosemore <sandra@codesourcery.com>
4873 Tom Tromey <tom@tromey.com>
4874
4875 * dictionary.c (collate_pending_symbols_by_language): Remove
4876 "struct" from foreach.
4877 * symtab.c (lookup_global_symbol_from_objfile)
4878 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
4879 foreach.
4880 * ser-tcp.c (net_open): Remove "struct" from foreach.
4881 * objfiles.c (objfile_relocate, objfile_rebase)
4882 (objfile_has_symbols): Remove "struct" from foreach.
4883 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
4884 from foreach.
4885 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
4886 foreach.
4887 * darwin-nat.c (thread_info_from_private_thread_info): Remove
4888 "struct" from foreach.
4889 * ada-lang.c (create_excep_cond_exprs)
4890 (ada_exception_catchpoint_cond_string): Remove "struct" from
4891 foreach.
4892
222a8d25
TT
48932019-05-03 Tom Tromey <tromey@adacore.com>
4894
4895 * ada-exp.y (convert_char_literal): Check suffix of each
4896 enumerator.
4897
fcd60b84
DP
48982019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
4899
4900 PR ada/21406:
4901 * ada-exp.y (yywrap): Don't define.
4902 * ada-lex.l (%option): Add noyywrap
4903 (yywrap): Remove.
4904
5f2459c2
EZ
49052019-05-03 Eli Zaretskii <eliz@gnu.org>
4906
353ea2d1
EZ
4907 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
4908 _WIN32_WINNT to the XP level, unless already defined to a higher
4909 level.
4910
4911 * unittests/parse-connection-spec-selftests.c:
4912 * ser-tcp.c:
4913 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
4914 override.
4915
5f2459c2
EZ
4916 * symfile.c (find_separate_debug_file): Remove colon from the
4917 drive spec of DOS/Windows file names of the target, so that the
4918 file name produced from DEBUGDIR and the target's directory will
4919 be valid on DOS/Windows systems.
4920
80062eb9
AB
49212019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
4922
4923 * rust-lang.c (val_print_struct): Handle printing structures
4924 containing strings.
4925
b8c05e85
TT
49262019-05-02 Tom Tromey <tromey@adacore.com>
4927
4928 * valarith.c (_initialize_valarith): Remove.
4929
4504bbde
TT
49302019-05-01 Tom Tromey <tromey@adacore.com>
4931
4932 * ada-lang.c (ada_value_primitive_field): Treat more fields as
4933 bitfields.
4934
d48e62f4
TT
49352019-05-01 Tom Tromey <tromey@adacore.com>
4936
4937 * ada-lang.c (ada_value_assign): Correctly compute starting offset
4938 for big-endian copies.
4939
15f18d14
AT
49402019-04-30 Ali Tamur <tamur@google.com>
4941 * gdb/dwarf2read.c (read_3_bytes): New declaration.
4942 (read_attribute_value): Added DW_FORM_strx1-4 cases.
4943 (read_3_bytes): New function.
4944
ab4ee614
JB
49452019-04-30 Joel Brobecker <brobecker@adacore.com>
4946
4947 * windows-nat.c (main_thread_id): Delete.
4948 (handle_output_debug_string): Replace main_thread_id by
4949 current_event.dwThreadId.
4950 (fake_create_process): Likewise.
4951 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
4952 Do not set main_thread_id.
4953 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
4954 current_event.dwThreadId.
4955 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
4956
8ed5b76e
JB
49572019-04-30 Joel Brobecker <brobecker@adacore.com>
4958
4959 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
4960 Use current_event.dwThreadId instead of main_thread_id.
4961
2ff0a947
TT
49622019-04-30 Tom Tromey <tromey@adacore.com>
4963
4964 * ada-lang.c (ada_lookup_simple_minsyms): New function.
4965 (create_excep_cond_exprs): Iterate over program spaces.
4966 (ada_exception_catchpoint_cond_string): Examine all minimal
4967 symbols for exception types.
4968
a776957c
TT
49692019-04-30 Tom Tromey <tromey@adacore.com>
4970
4971 PR c++/24470:
4972 * dwarf2read.c (process_structure_scope): Handle case where type
4973 has template parameters but no symbol was created.
4974
bc68014d
AB
49752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4976 Chris January <chris.january@arm.com>
4977
4978 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
4979 qualifier.
4980 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
4981
f1fdc960
AB
49822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4983
4984 * f-typeprint.c (f_print_type): Update rules for printing
4985 whitespace.
4986 (f_type_print_varspec_suffix): Likewise.
4987
bf7a4de1
AB
49882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4989 Chris January <chris.january@arm.com>
4990
4991 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
4992 function arguments.
4993
bbe75b9d
AB
49942019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
4995
4996 * f-lang.c (build_fortran_types): Change name of void type to
4997 lower case.
4998 * f-typeprint.c (f_type_print_base): Print the name of the void
4999 type, rather than a fixed string.
5000 * f-valprint.c (f_decorations): Use lower case void string.
5001
1db455a7
AB
50022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5003 Chris January <chris.january@arm.com>
5004
5005 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5006 types for Fortran.
5007
b6d03bb2
AB
50082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5009 Chris January <chris.january@arm.com>
5010 David Lecomber <david.lecomber@arm.com>
5011
5012 * f-exp.y (BINOP_INTRINSIC): New token.
5013 (exp): New parser rule handling BINOP_INTRINSIC.
5014 (f77_keywords): Add new builtin procedures.
5015 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5016 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5017 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5018 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5019 (print_unop_subexp_f): New function.
5020 (print_binop_subexp_f): New function.
5021 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5022 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5023 (dump_subexp_body_f): Likewise.
5024 (operator_check_f): Likewise.
5025 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5026 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5027
83228e93
AB
50282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5029
5030 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5031 UNOP_KIND.
5032 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5033 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5034 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5035 (operator_length_f): New fuction.
5036 (print_subexp_f): New function.
5037 (op_name_f): New function.
5038 (dump_subexp_body_f): New function.
5039 (operator_check_f): New function.
5040 (exp_descriptor_f): Replace standard expression handling functions
5041 with new functions.
5042 * gdb/fortran-operator.def: New file.
5043 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5044 * gdb/std-operator.def: Remove UNOP_KIND.
5045
6fdcd7cc
AB
50462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5047
5048 * std-operator.def: Remove unbalanced, stray double quote
5049 character.
5050
2e62ab40
AB
50512019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5052 Chris January <chris.january@arm.com>
5053 Daniel Everett <daniel.everett@arm.com>
5054 Nick Forrington <nick.forrington@arm.com>
5055 Richard Bunt <richard.bunt@arm.com>
5056
5057 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5058 of depth when printing anonymous structs or unions.
5059 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5060 Don't print either the top-level value, or the children if the
5061 max-depth is exceeded.
5062 (ppscm_print_children): When printing the key of a map, allow one
5063 extra level of depth.
5064 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5065 print either the top-level value, or the children if the max-depth
5066 is exceeded.
5067 (print_children): When printing the key of a map, allow one extra
5068 level of depth.
5069 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5070 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5071 (user_print_options): Initialise max_depth field.
5072 (val_print_scalar_or_string_type_p): New function.
5073 (val_print): Check to see if the max depth has been reached.
5074 (val_print_check_max_depth): Define new function.
5075 (show_print_max_depth): New function.
5076 (_initialize_valprint): Add 'print max-depth' option.
5077 * valprint.h (struct value_print_options) <max_depth>: New field.
5078 (val_print_check_max_depth): Declare new function.
5079 * NEWS: Document new feature.
5080
4be290b2
AB
50812019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5082
5083 * ada-lang.c (ada_language_defn): Initialise new field.
5084 * c-lang.c (c_is_string_type_p): New function.
5085 (c_language_defn): Initialise new field.
5086 (cplus_language_defn): Initialise new field.
5087 (asm_language_defn): Initialise new field.
5088 (minimal_language_defn): Initialise new field.
5089 * c-lang.h (c_is_string_type_p): Declare new function.
5090 * d-lang.c (d_language_defn): Initialise new field.
5091 * f-lang.c (f_is_string_type_p): New function.
5092 (f_language_defn): Initialise new field.
5093 * go-lang.c (go_is_string_type_p): New function.
5094 (go_language_defn): Initialise new field.
5095 * language.c (default_is_string_type_p): New function.
5096 (unknown_language_defn): Initialise new field.
5097 (auto_language_defn): Initialise new field.
5098 * language.h (struct language_defn) <la_is_string_type_p>: New
5099 member variable.
5100 (default_is_string_type_p): Declare new function.
5101 * m2-lang.c (m2_language_defn): Initialise new field.
5102 * objc-lang.c (objc_language_defn): Initialise new field.
5103 * opencl-lang.c (opencl_language_defn): Initialise new field.
5104 * p-lang.c (pascal_is_string_type_p): New function.
5105 (pascal_language_defn): Initialise new field.
5106 * rust-lang.c (rust_is_string_type_p): New function.
5107 (rust_language_defn): Initialise new field.
5108
721b08c6
AB
51092019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5110
5111 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5112 New field.
5113 * ada-lang.c (ada_language_defn): Initialise new field.
5114 * c-lang.c (c_language_defn): Likewise.
5115 (cplus_language_defn): Likewise.
5116 (asm_language_defn): Likewise.
5117 (minimal_language_defn): Likewise.
5118 * d-lang.c (d_language_defn): Likewise.
5119 * f-lang.c (f_language_defn): Likewise.
5120 * go-lang.c (go_language_defn): Likewise.
5121 * language.c (unknown_language_defn): Likewise.
5122 (auto_language_defn): Likewise.
5123 * m2-lang.c (m2_language_defn): Likewise.
5124 * objc-lang.c (objc_language_defn): Likewise.
5125 * opencl-lang.c (opencl_language_defn): Likewise.
5126 * p-lang.c (pascal_language_defn): Likewise.
5127 * rust-lang.c (rust_language_defn): Likewise.
5128
fc913e53
AB
51292019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5130
5131 * ada-lang.c (ada_is_character_type): Change return type to bool.
5132 (ada_is_string_type): Likewise.
5133 * ada-lang.h (ada_is_character_type): Update declaration
5134 (ada_is_string_type): Likewise.
5135
fa731fa0
PW
51362019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5137
5138 Support style in 'frame|thread apply'
5139
5140 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5141 * record.c (record_start, record_stop): Update callers of
5142 execute_command_to_string with false.
5143 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5144 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5145 methods.
5146 (class string_file): New constructor with term_out parameter.
5147 Override methods term_out and can_emit_style_escape. New member
5148 term_out.
5149 (class stdio_file): Override can_emit_style_escape.
5150 (class tee_file): Override term_out and can_emit_style_escape.
5151 * utils.h (can_emit_style_escape): Remove.
5152 * utils.c (can_emit_style_escape): Likewise.
5153 Update all callers of can_emit_style_escape (SOMESTREAM) to
5154 SOMESTREAM->can_emit_style_escape.
5155 * source-cache.c (source_cache::get_source_lines): Likewise.
5156 * stack.c (frame_apply_command_count): Call execute_command_to_string
5157 passing the term_out characteristic of the current gdb_stdout.
5158 * thread.c (thr_try_catch_cmd): Likewise.
5159 * top.c (execute_command_to_string): pass term_out parameter
5160 to construct the string_file for the command output.
5161 * ui-file.c (term_cli_styling): New function (most code moved
5162 from utils.c can_emit_style_escape).
5163 (string_file::string_file, string_file::can_emit_style_escape,
5164 stdio_file::can_emit_style_escape, tee_file::term_out,
5165 tee_file::can_emit_style_escape): New functions.
5166
136afab8
PW
51672019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5168
5169 * NEWS: Mention the new set|show may-call-functions.
5170 * infcall.c (may_call_functions_p): New variable.
5171 (show_may_call_functions_p): New function.
5172 (call_function_by_hand_dummy): Throws an error if not
5173 may-call-functions.
5174 (_initialize_infcall): Call add_setshow_boolean_cmd for
5175 may-call-functions.
5176
725cbb63
KS
51772019-04-25 Keith Seitz <keiths@redhat.com>
5178
5179 PR c++/24367
5180 * cp-support.c (inspect_type): Don't attempt substitutions
5181 of symbol with the same name.
5182
3d1cbb78
TT
51832019-04-25 Tom Tromey <tromey@adacore.com>
5184
5185 PR gdb/24475:
5186 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
5187 static.
5188
94aeb44b
TT
51892019-04-25 Tom Tromey <tromey@adacore.com>
5190
5191 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
5192 rvalue reference.
5193 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
5194 (gdb_xml_parser::parse): Use std::move.
5195 * python/python-internal.h (gdbpy_convert_exception): Take a const
5196 reference.
5197 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
5198 std::move.
5199 * python/py-utils.c (gdbpy_convert_exception): Take a const
5200 reference.
5201 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5202 Use std::move.
5203 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5204 Use std::move.
5205 * mi/mi-main.c (mi_print_exception): Take a const reference.
5206 * main.c (handle_command_errors): Take a const reference.
5207 * linespec.c (parse_linespec): Use std::move.
5208 * infcall.c (run_inferior_call): Use std::move.
5209 (call_function_by_hand_dummy): Use std::move.
5210 * exec.c (try_open_exec_file): Use std::move.
5211 * exceptions.h (exception_print, exception_fprintf)
5212 (exception_print_same): Update.
5213 * exceptions.c (print_exception, exception_print)
5214 (exception_fprintf, exception_print_same): Change parameters to
5215 const reference.
5216 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
5217 * common/new-op.c: Use std::move.
5218 * common/common-exceptions.h (struct gdb_exception): Add move
5219 constructor.
5220 (struct gdb_exception_error, struct gdb_exception_quit, struct
5221 gdb_quit_bad_alloc): Change constructor to move constructor.
5222 (throw_exception): Change parameter to rvalue reference.
5223 * common/common-exceptions.c (throw_exception): Take rvalue
5224 reference.
5225 * cli/cli-interp.c (safe_execute_command): Use std::move.
5226 * breakpoint.c (insert_bp_location, location_to_sals): Use
5227 std::move.
5228
680d7fd5
TT
52292019-04-25 Tom Tromey <tromey@adacore.com>
5230
5231 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
5232 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
5233 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
5234 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
5235 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
5236 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
5237 guile/scm-value.c: Use unpack.
5238 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
5239 gdbscm_gdb_exception.
5240 (gdbscm_throw_gdb_exception): Likewise.
5241 (struct gdbscm_gdb_exception): New.
5242 (unpack): New function.
5243 (gdbscm_wrap): Use unpack.
5244
c6fdd8b2
TT
52452019-04-25 Tom Tromey <tromey@adacore.com>
5246
5247 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5248 (gdb_rl_callback_handler): Use std::move.
5249 * common/common-exceptions.h (struct gdb_exception): Add move
5250 assignment operator.
5251 (throw_exception_sjlj): Change "exception" to const reference.
5252 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
5253 (throw_exception_sjlj): Change "exception" to const reference.
5254
cc06b668
TT
52552019-04-25 Tom Tromey <tromey@adacore.com>
5256
5257 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
5258 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
5259 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
5260 Update.
5261 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
5262 Update.
5263 * mi/mi-interp.c (mi_interp::exec): Update.
5264 * linespec.c (parse_linespec): Update.
5265 * infcall.c (run_inferior_call): Update.
5266 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
5267 * guile/scm-symbol.c (gdbscm_lookup_symbol)
5268 (gdbscm_lookup_global_symbol): Update.
5269 * guile/scm-param.c (gdbscm_parameter_value): Update.
5270 * guile/scm-frame.c (gdbscm_frame_read_register)
5271 (gdbscm_frame_read_var): Update.
5272 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
5273 * exec.c (try_open_exec_file): Update.
5274 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
5275 (gdb_rl_callback_handler): Update.
5276 * common/common-exceptions.h (exception_none): Don't declare.
5277 * common/common-exceptions.c (exception_none): Don't define.
5278 (struct catcher) <exception>: Update.
5279 * cli/cli-interp.c (safe_execute_command): Update.
5280 * breakpoint.c (insert_bp_location, location_to_sals): Update.
5281
cf532bd1
AT
52822019-04-25 Ali Tamur <tamur@google.com>
5283
5284 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
5285 (read_attribute_value): Likewise.
5286 (dwarf2_read_addr_index): Update comment.
5287 (read_str_index): Add DW_FORM_strx.
5288 (dwarf2_string_attr): Likewise.
5289 (dwarf2_const_value_attr): Likewise.
5290 (dump_die_shallow): Likewise.
5291 (dwarf2_fetch_constant_bytes): Likewise.
5292 (skip_form_bytes): Likewise.
5293 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
5294
82433e3e
SDJ
52952019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5296
5297 PR corefiles/11608
5298 PR corefiles/18187
5299 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
5300 OFFSET. Verify if current mapping contains an ELF header.
5301 (linux_find_memory_regions_full): Adjust call to
5302 dump_mapping_p.
5303
723adb65
SL
53042019-04-25 Sandra Loosemore <sandra@codesourcery.com>
5305 Kang Li <kanglictf@gmail.com>
5306
5307 PR gdb/21600
5308
5309 * dwarf2-frame.c (read_initial_length): Be consistent about using
5310 unsigned representation of length.
5311 (decode_frame_entry_1): Likewise. Check for wraparound of
5312 end pointer as well as buffer overflow.
5313
596179f7
SDJ
53142019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5315
5316 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
5317 "vq".
5318
a59240a4
TT
53192019-04-24 Tom Tromey <tromey@adacore.com>
5320
5321 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
5322
f872fdbb
AB
53232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5324
5325 * s12z-tdep.c (s12z_unwind_pc): Delete.
5326 (s12z_unwind_sp): Delete.
5327 (s12z_gdbarch_init): Don't register deleted functions with
5328 gdbarch.
5329
b614e6f3
AB
53302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5331
5332 * rl78-tdep.c (rl78_unwind_sp): Delete.
5333 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
5334
14faed38
AB
53352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5336
5337 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
5338 (xstormy16_unwind_pc): Delete.
5339 (xstormy16_dummy_id): Delete.
5340 (xstormy16_gdbarch_init): Don't register deleted functions with
5341 gdbarch.
5342
541aad8a
AB
53432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5344
5345 * vax-tdep.c (vax_unwind_pc): Delete.
5346 (vax_gdbarch_init): Don't register deleted function with gdbarch.
5347
29222070
AB
53482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5349
5350 * v850-tdep.c (v850_unwind_sp): Delete.
5351 (v850_unwind_pc): Delete.
5352 (v850_dummy_id): Delete.
5353 (v850_gdbarch_init): Don't register deleted functions with
5354 gdbarch.
5355
0f534d76
AB
53562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5357
5358 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
5359 (tilegx_unwind_pc): Delete.
5360 (tilegx_unwind_dummy_id): Delete.
5361 (tilegx_gdbarch_init): Don't register deleted functions with
5362 gdbarch.
5363
1ba7b7f9
AB
53642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5365
5366 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
5367 (tic6x_dummy_id): Delete.
5368 (tic6x_gdbarch_init): Don't register deleted functions with
5369 gdbarch.
5370
d31f262c
AB
53712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5372
5373 * sparc-tdep.c (sparc_unwind_pc): Delete.
5374 (sparc32_gdbarch_init): Don't register deleted function with
5375 gdbarch.
5376
6d14d64d
AB
53772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5378
5379 * sh-tdep.c (sh_unwind_sp): Delete.
5380 (sh_unwind_pc): Delete.
5381 (sh_dummy_id): Delete.
5382 (sh_gdbarch_init): Don't register deleted functions with
5383 gdbarch.
5384
a40dde9d
AB
53852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5386
5387 * score-tdep.c (score_unwind_sp): Delete.
5388 (score_unwind_pc): Delete.
5389 (score_dummy_id): Delete.
5390 (score_gdbarch_init): Don't register deleted functions with
5391 gdbarch.
5392
47c47d69
AB
53932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5394
5395 * rx-tdep.c (rx_unwind_pc): Delete.
5396 (rx_unwind_sp): Delete.
5397 (rx_dummy_id): Delete.
5398 (rx_gdbarch_init): Don't register deleted functions with
5399 gdbarch. Update comment.
5400
833a4480
AB
54012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5402
5403 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
5404 (rs6000_dummy_id): Delete.
5405 (rs6000_gdbarch_init): Don't register deleted functions with
5406 gdbarch.
5407
3f2cef49
AB
54082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5409
5410 * or1k-tdep.c (or1k_dummy_id): Delete.
5411 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
5412
96acf884
AB
54132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5414
5415 * nios2-tdep.c (nios2_dummy_id): Delete.
5416 (nios2_unwind_sp): Delete.
5417 (nios2_gdbarch_init): Don't register deleted functions with
5418 gdbarch.
5419
ca0ab0aa
AB
54202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5421
5422 * nds32-tdep.c (nds32_dummy_id): Delete.
5423 (nds32_unwind_pc): Delete.
5424 (nds32_unwind_sp): Delete.
5425 (nds32_gdbarch_init): Don't register deleted functions with
5426 gdbarch.
5427
c8259044
AB
54282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5429
5430 * msp430-tdep.c (msp430_unwind_pc): Delete.
5431 (msp430_unwind_sp): Delete.
5432 (msp430_dummy_id): Delete.
5433 (msp430_gdbarch_init): Don't register deleted functions with
5434 gdbarch.
5435
27f113c8
AB
54362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5437
5438 * moxie-tdep.c (moxie_unwind_sp): Delete.
5439 (moxie_unwind_pc): Delete.
5440 (moxie_dummy_id): Delete.
5441 (moxie_gdbarch_init): Don't register deleted functions with
5442 gdbarch.
5443
aee6c3cd
AB
54442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5445
5446 * mn10300-tdep.c (mn10300_dummy_id): Delete.
5447 (mn10300_unwind_pc): Delete.
5448 (mn10300_unwind_sp): Delete.
5449 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
5450 mn10300_unwind_sp.
5451 (mn10300_frame_unwind_init): Don't register deleted functions with
5452 gdbarch.
5453
8e2b5aea
AB
54542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5455
5456 * mep-tdep.c (mep_unwind_pc): Delete.
5457 (mep_unwind_sp): Delete.
5458 (mep_dummy_id): Delete.
5459 (mep_gdbarch_init): Don't register deleted functions with
5460 gdbarch.
5461
43cf3ede
AB
54622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5463
5464 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
5465 (m68hc11_unwind_sp): Delete.
5466 (m68hc11_gdbarch_init): Don't register deleted functions with
5467 gdbarch.
5468
5e79b7bb
AB
54692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5470
5471 * m32r-tdep.c (m32r_unwind_sp): Delete.
5472 (m32r_unwind_pc): Delete.
5473 (m32r_dummy_id): Delete.
5474 (m32r_gdbarch_init): Don't register deleted functions with
5475 gdbarch.
5476
89b268d8
AB
54772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5478
5479 * m32c-tdep.c (m32c_unwind_pc): Delete.
5480 (m32c_unwind_sp): Delete.
5481 (m32c_dummy_id): Delete.
5482 (m32c_gdbarch_init): Don't register deleted functions with
5483 gdbarch.
5484
946c28d2
AB
54852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5486
5487 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
5488 (lm32_unwind_pc): Delete.
5489 (lm32_dummy_id): Delete.
5490 (lm32_gdbarch_init): Don't register deleted functions with
5491 gdbarch.
5492
bf12844a
AB
54932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5494
5495 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
5496 (iq2000_unwind_pc): Delete.
5497 (iq2000_dummy_id): Delete.
5498 (iq2000_gdbarch_init): Don't register deleted functions with
5499 gdbarch.
5500
ecbc06d2
AB
55012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5502
5503 * nds32-tdep.c (nds32_type_align): Delete.
5504 (nds32_push_dummy_call): Use type_align instead.
5505
030197b4
AB
55062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5507
5508 * arm-tdep.c (arm_type_align): Only handle vector override case.
5509 (arm_push_dummy_call): Use type_align.
5510 (arm_gdbarch_init): Register arm_type_align gdbarch function.
5511
b907456c
AB
55122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
5513
5514 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
5515 case.
5516 (pass_on_stack): Use type_align.
5517 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
5518 function.
5519
9e97ba43
TT
55202019-04-23 Tom Tromey <tromey@adacore.com>
5521
5522 * dwarf2read.c (line_header::file_name_at): Remove unused
5523 overload.
5524
6892f601
TV
55252019-04-23 Tom de Vries <tdevries@suse.de>
5526
5527 PR gdb/24438
5528 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
5529 invocation.
5530
336d760d
AT
5531
55322019-03-27 Ali Tamur <tamur@google.com>
5533
5534 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5535 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
5536 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
5537 (dwarf_expr_context::get_addr_index): Likewise
5538 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
5539 (symbol_needs_eval_context::get_addr_index): Likewise
5540 (disassemble_dwarf_expression): Add DW_OP_addrx
5541 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
5542 (read_cutu_die_from_dwo): Update comment
5543 (skip_one_die): Add DW_FORM_addrx
5544 (read_attribute_value): Likewise
5545 (var_decode_location): Add DW_OP_addrx
5546 (dwarf2_const_value_attr): Add DW_FORM_addrx
5547 (dump_die_shallow): Likewise
5548 (dwarf2_fetch_constant_bytes): Likewise
5549 (decode_locdesc): Add DW_OP_addrx
5550 (skip_form_bytes): Add DW_FORM_addrx
5551
ad9d13f8
AT
55522019-04-22 Ali Tamur <tamur@google.com>
5553
5554 * MAINTAINERS (Write After Approval): Add self.
5555
d70cc3ba
SM
55562019-04-22 Simon Marchi <simon.marchi@efficios.com>
5557
5558 * solib-svr4.c (get_svr4_info): Add pspace parameter.
5559 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
5560 (open_symbol_file_object): Likewise.
5561 (svr4_default_sos): Add info parameter.
5562 (svr4_read_so_list): Likewise.
5563 (svr4_current_sos_direct): Adjust functions calls to pass down
5564 info.
5565 (svr4_current_sos_1): Add info parameter.
5566 (svr4_current_sos): Call get_svr4_info, pass info down to
5567 svr4_current_sos_1.
5568 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
5569 get_svr4_info.
5570 (svr4_in_dynsym_resolve_code): Pass current_program_space to
5571 get_svr4_info.
5572 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
5573 to get_svr4_info.
5574 (probes_table_remove_objfile_probes): Likewise.
5575 (register_solib_event_probe): Add info parameter.
5576 (solist_update_incremental): Pass info parameter down to
5577 svr4_read_so_list.
5578 (disable_probes_interface): Add info parameter.
5579 (svr4_handle_solib_event): Pass current_program_space to
5580 get_svr4_info. Adjust disable_probes_interface cleanup.
5581 (svr4_create_probe_breakpoints): Add info parameter, pass it
5582 down to register_solib_event_probe.
5583 (svr4_create_solib_event_breakpoints): Add info parameter,
5584 pass it down to svr4_create_probe_breakpoints.
5585 (enable_break): Pass info down to
5586 svr4_create_solib_event_breakpoints.
5587 (svr4_solib_create_inferior_hook): Pass current_program_space to
5588 get_svr4_info.
5589 (svr4_clear_solib): Likewise.
5590
7905fc35
PA
55912019-04-22 Pedro Alves <palves@redhat.com>
5592
5593 * solib-svr4.c (svr4_free_objfile_observer): New.
5594 (probe_and_action::objfile): New field.
5595 (probes_table_htab_remove_objfile_probes)
5596 (probes_table_remove_objfile_probes): New functions.
5597 (register_solib_event_probe): Add 'objfile' parameter. Store it
5598 in the new probe_and_action. Don't store the probe in 'lookup'.
5599 (svr4_create_probe_breakpoints): Pass objfile to
5600 register_solib_event_probe.
5601 (_initialize_svr4_solib): Register a free_objfile observer.
5602
fb881986
TT
56032019-04-19 Tom Tromey <tom@tromey.com>
5604
5605 * common/queue.h: Remove.
5606
8732db6c
TT
56072019-04-19 Tom Tromey <tom@tromey.com>
5608
5609 * event-loop.c: Don't include "common/queue.h".
5610
97dfbadd
TT
56112019-04-19 Tom Tromey <tom@tromey.com>
5612
5613 * remote.c (remote_target): Use delete.
5614 * remote-notif.h: Include <list>, not "common/queue.h".
5615 (notif_client_p): Remove typedef.
5616 (remote_notif_state): Add constructor, destructor, initializer.
5617 <notif_queue>: Now a std::list.
5618 (remote_notif_state_xfree): Don't declare.
5619 * remote-notif.c (remote_notif_process, handle_notification)
5620 (remote_notif_state_allocate): Update.
5621 (~remote_notif_state): Rename from remote_notif_state_xfree.
5622
cf250e36
TT
56232019-04-19 Tom Tromey <tom@tromey.com>
5624
5625 * symfile.c (reread_symbols): Update.
5626 * objfiles.c (objfile_register_static_link)
5627 (objfile_lookup_static_link): Update
5628 (~objfile) Don't delete static_links.
5629 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
5630
61f4b350
TT
56312019-04-19 Tom Tromey <tom@tromey.com>
5632
5633 * type-stack.h (struct type_stack) <insert>: Constify string.
5634 * type-stack.c (type_stack::insert): Constify string.
5635 * gdbtypes.h (lookup_template_type): Update.
5636 (address_space_name_to_int): Update.
5637 * gdbtypes.c (address_space_name_to_int): Make space_identifier
5638 const.
5639 (lookup_template_type): Make name const.
5640 * c-exp.y: Update rules.
5641 (lex_one_token, classify_name, classify_inner_name)
5642 (c_print_token): Update.
5643 * p-exp.y: Update rules.
5644 (yylex): Update.
5645 * f-exp.y: Update rules.
5646 (yylex): Update.
5647 * d-exp.y: Update rules.
5648 (lex_one_token, classify_name, classify_inner_name): Update.
5649 * parse.c (write_dollar_variable, copy_name): Return std::string.
5650 * parser-defs.h (copy_name): Change return type.
5651 * m2-exp.y: Update rules.
5652 (yylex): Update.
5653 * go-exp.y (lex_one_token): Update.
5654 Update rules.
5655 (classify_unsafe_function, classify_packaged_name)
5656 (classify_name, yylex): Update.
5657
189b8c2e
ST
56582019-04-19 Sergei Trofimovich <siarheit@google.com>
5659
5660 * configure.ac: add --enable-source-highlight switch.
5661 * configure: Regenerate.
5662 * top.c (print_gdb_version): plumb --enable-source-highlight
5663 status to "show configuration".
5664
8ecb59f8
TT
56652019-04-19 Tom Tromey <tromey@adacore.com>
5666
5667 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
5668 Check ADA_TYPE_P.
5669 (empty_record, ada_template_to_fixed_record_type_1)
5670 (template_to_static_fixed_type)
5671 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
5672 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
5673 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
5674 macros.
5675
62160ec9
TT
56762019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5677
5678 PR symtab/24423:
5679 * source.c (print_source_lines_base): Advance "iter" when a
5680 control character is seen.
5681
f2ae8bc8
PW
56822019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5683
5684 * inferior.h (struct infcall_suspend_state_deleter):
5685 Catch exception in destructor to avoid crash.
5686
d563b953
PW
56872019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5688
5689 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
5690 close to the add_com "shell".
5691
dc34c897
TT
56922019-04-18 Tom Tromey <tromey@adacore.com>
5693
5694 * process-stratum-target.h (class process_stratum_target)
5695 <stratum>: Add "final".
5696
a12e5744
TT
56972019-04-17 Tom Tromey <tromey@adacore.com>
5698
5699 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
5700 against nullptr before use.
5701
a7e559cc
AH
57022019-04-17 Alan Hayward <alan.hayward@arm.com>
5703
5704 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
5705
c01660c6
AB
57062019-04-17 Jim Wilson <jimw@sifive.com>
5707 Andrew Burgess <andrew.burgess@embecosm.com>
5708
5709 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
5710 code read might fail, assume 4-byte breakpoint in that case.
5711
4aa866af
LS
57122019-04-15 Leszek Swirski <leszeks@google.com>
5713
5714 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
5715 rather than a hand-rolled POD check when checking for forced MEMORY
5716 classification.
5717
48574d91
AH
57182019-04-15 Alan Hayward <alan.hayward@arm.com>
5719
5720 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
5721 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
5722 function.
5723 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
5724 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
5725 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
5726 declaration.
5727
4da037ef
AH
57282019-04-15 Alan Hayward <alan.hayward@arm.com>
5729
5730 * aarch64-linux-nat.c
5731 (aarch64_linux_nat_target::thread_architecture): Add override.
5732 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
5733 each VQ.
5734
ccb8d7e8
AH
57352019-04-15 Alan Hayward <alan.hayward@arm.com>
5736
5737 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
5738
35add35e
AB
57392019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
5740
5741 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
5742 target types of size 96-bits, add some additional comments, and
5743 check that the builtin type we found was the correct size.
5744
51196bbc
EZ
57452019-04-12 Eli Zaretskii <eliz@gnu.org>
5746
5747 * utils.c (prompt_for_continue): Don't restore the styling at the
5748 end, as applied_style has the wrong value. This fixes styling in
5749 long lists of file names that are interrupted by the "Continue?"
5750 prompt.
5751
62253a61
AB
57522019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
5753
5754 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
5755 * c-lang.c (c_language_defn): Likewise.
5756 (cplus_language_defn): Likewise.
5757 (asm_language_defn): Likewise.
5758 (minimal_language_defn): Likewise.
5759 * d-lang.c (d_language_defn): Likewise.
5760 * f-lang.c (f_language_defn): Likewise.
5761 * go-lang.c (go_language_defn): Likewise.
5762 * language.c (unknown_language_defn): Likewise.
5763 (auto_language_defn): Likewise.
5764 * language.h (struct language_defn): Remove la_magic field.
5765 (LANG_MAGIC): Delete.
5766 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
5767 * objc-lang.c (objc_language_defn): Likewise.
5768 * opencl-lang.c (opencl_language_defn): Likewise.
5769 * p-lang.c (pascal_language_defn): Likewise.
5770 * rust-lang.c (rust_language_defn): Likewise.
5771
a9158a86
AB
57722019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5773
5774 * riscv-tdep.c (riscv_type_align): New function.
5775 (riscv_type_alignment): Delete.
5776 (riscv_arg_location): Use 'type_align'.
5777 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
5778
41077b66
AB
57792019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5780
5781 * gdbtypes.c (type_align): A struct with no non-static fields also
5782 has alignment of 1.
5783
9f0272f8
AB
57842019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
5785
5786 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
5787 component to 0.
5788 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
5789 member.
5790 (riscv_struct_info::analyse): New implementation using new
5791 analyse_inner member function.
5792 (riscv_struct_info::field_offset): New member function.
5793 (riscv_struct_info::m_offsets): New member variable.
5794 (riscv_struct_info::analyse_inner): New private member function,
5795 takes the old implementation of riscv_struct_info::analyse but
5796 extended to track field offsets.
5797 (riscv_call_arg_struct): Update the struct folding special cases
5798 to handle cases where empty C++ structs, which are non-zero
5799 length, are found.
5800 (riscv_arg_location): Initialise the length of each location, a
5801 non-zero length now indicates the location is in use.
5802 (riscv_push_dummy_call): Allow for the first location having a
5803 non-zero offset when setting up arguments.
5804 (riscv_return_value): Likewise, but for return values.
5805
02cf60c7
TT
58062019-04-11 Tom Tromey <tromey@adacore.com>
5807
5808 * utils.c (internal_vproblem): Make "msg" const.
5809
68811f8f
AH
58102019-04-11 Alan Hayward <alan.hayward@arm.com>
5811
5812 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
5813 * trad-frame.c (trad_frame_reset_saved_regs): New function.
5814 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
5815 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
5816
3f52fdbc
KB
58172019-04-10 Kevin Buettner <kevinb@redhat.com>
5818
5819 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
5820 function.
5821 (fill_gregset): Call amd64_linux_collect_native_gregset instead
5822 of amd64_collect_native_gregset.
5823 (amd64_linux_nat_target::store_registers): Likewise.
5824
e9ad22ee
TT
58252019-04-10 Tom Tromey <tom@tromey.com>
5826
5827 * symtab.c (lookup_global_symbol_from_objfile)
5828 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
5829 * objfiles.h (class separate_debug_iterator): New.
5830 (class separate_debug_range): New.
5831 (struct objfile) <separate_debug_objfiles>: New method.
5832 (objfile_separate_debug_iterate): Don't declare.
5833 * objfiles.c (separate_debug_iterator::operator++): Rename from
5834 objfile_separate_debug_iterate.
5835 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
5836 iterator.
5837 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
5838 iterator.
5839
ee371134
TT
58402019-04-10 Tom Tromey <tom@tromey.com>
5841
5842 * symfile.c (reread_symbols): Remove old comment.
5843 * objfiles.c (free_all_objfiles): Fix a typo.
5844
bf227d61
TT
58452019-04-10 Tom Tromey <tom@tromey.com>
5846
5847 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
5848 * minsyms.c (lookup_minimal_symbol): Use foreach.
5849 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5850 (lookup_minimal_symbol_solib_trampoline): Likewise.
5851 * symfile.c (reread_symbols): Use foreach.
5852
8dc433a0
TT
58532019-04-09 Ivan Begert <ivanbegert@gmail.com>
5854 Tom Tromey <tromey@adacore.com>
5855
5856 PR rust/24414:
5857 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
5858 (rust_lex_int_test): Change "value" to be LONGEST.
5859 (rust_lex_tests): Add test for long integer literal.
5860
9ab8741a
TT
58612019-04-09 Tom Tromey <tromey@adacore.com>
5862
5863 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
5864 to bool.
5865 (extended_remote_target::attach): Update.
5866 (remote_target::remote_notice_new_inferior): Update.
5867 (remote_target::add_current_inferior_and_thread): Update.
5868 * inferior.c (exit_inferior_1): Use "false".
5869 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
5870
e242fd12
SM
58712019-04-09 Simon Marchi <simon.marchi@efficios.com>
5872
9ca1957f 5873 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
5874 the "start" command.
5875
2b0c8b01
KB
58762019-04-08 Kevin Buettner <kevinb@redhat.com>
5877
5878 * python/py-inferior.c (infpy_thread_from_thread_handle):
5879 Adjust comments to reflect renaming of thread_from_thread_handle
5880 to thread_from_handle. Adjust keywords. Fix type error message.
5881 (inferior_object_methods): Add thread_from_handle. Retain
5882 thread_from_thread_handle, but mark it as deprecated.
5883
50a82723
KB
58842019-04-08 Kevin Buettner <kevinb@redhat.com>
5885
5886 * gdbthread.h (find_thread_by_handle): Revise declaration.
5887 * thread.c (find_thread_by_handle): Likewise. Adjust
5888 implementation too.
5889 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
5890 support for buffer objects as handles.
5891
cf63b016
KB
58922019-04-08 Kevin Buettner <kevinb@redhat.com>
5893
5894 * python/py-infthread.c (thpy_thread_handle): New function.
5895 (thread_object_methods): Register thpy_thread_handle.
5896
3d6c6204
KB
58972019-04-08 Kevin Buettner <kevinb@redhat.com>
5898
5899 * gdbthread.h (thread_to_thread_handle): Declare.
5900 * thread.c (gdbtypes.h): Include.
5901 (thread_to_thread_handle): New function.
5902
5903 * target.h (struct target_ops): Add thread_info_to_thread_handle.
5904 (target_thread_info_to_thread_handle): Declare.
5905 * target.c (target_thread_info_to_thread_handle): New function.
5906 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
5907 * target-delegates.c: Regenerate.
5908
5909 * linux-thread-db.c (class thread_db_target): Add method
5910 thread_info_to_thread_handle.
5911 (thread_db_target::thread_info_to_thread_handle): Define.
5912 * remote.c (class remote_target): Add new method
5913 thread_info_to_thread_handle.
5914 (remote_target::thread_info_to_thread_handle): Define.
5915
56be6ea8
PA
59162019-04-08 Pedro Alves <palves@redhat.com>
5917
5918 * common/common-exceptions.c (throw_exception): Don't create
5919 named object to throw; throw directly.
5920 (throw_it): Likewise. Don't initialize gdb_exception::message
5921 here, with new; pass FMT and AP to the ctor instead.
5922 * common/common-exceptions.h: Include <string>.
5923 (gdb_exception::gdb_exception(enum return_reason, enum errors,
5924 const char *, va_list)): New ctor. Use std::make_shared.
5925 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
5926 errors)): Delete.
5927 (gdb_exception_error::gdb_exception_error(enum errors, const char
5928 *, va_list)): New.
5929 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
5930 Add assertion.
5931 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
5932 errors)): Delete.
5933 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
5934 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
5935 Add assertion.
5936
eedc3f4f
TT
59372019-04-08 Tom Tromey <tom@tromey.com>
5938
5939 * valops.c (value_rtti_indirect_type): Replace throw_exception
5940 with throw.
5941 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
5942 with throw.
5943 * thread.c (thr_try_catch_cmd): Replace throw_exception with
5944 throw.
5945 * target.c (target_translate_tls_address): Replace throw_exception
5946 with throw.
5947 * stack.c (frame_apply_command_count): Replace throw_exception
5948 with throw.
5949 * solib-spu.c (append_ocl_sos): Replace throw_exception with
5950 throw.
5951 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
5952 with throw.
5953 * rs6000-tdep.c (rs6000_frame_cache)
5954 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
5955 * remote.c: Replace throw_exception with throw.
5956 * record-full.c (record_full_message, record_full_wait_1)
5957 (record_full_restore): Replace throw_exception with throw.
5958 * record-btrace.c:
5959 (get_thread_current_frame_id, record_btrace_start_replaying)
5960 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
5961 (cmd_record_btrace_start): Replace throw_exception with throw.
5962 * parse.c (parse_exp_in_context_1): Replace throw_exception with
5963 throw.
5964 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
5965 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
5966 * linespec.c:
5967 (find_linespec_symbols): Replace throw_exception with throw.
5968 * infrun.c (displaced_step_prepare, resume): Replace
5969 throw_exception with throw.
5970 * infcmd.c (post_create_inferior): Replace throw_exception with
5971 throw.
5972 * inf-loop.c (inferior_event_handler): Replace throw_exception
5973 with throw.
5974 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5975 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
5976 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
5977 (get_prev_frame_always, get_frame_pc_if_available)
5978 (get_frame_address_in_block_if_available, get_frame_language):
5979 Replace throw_exception with throw.
5980 * frame-unwind.c (frame_unwind_try_unwinder): Replace
5981 throw_exception with throw.
5982 * eval.c (fetch_subexp_value, evaluate_var_value)
5983 (evaluate_funcall, evaluate_subexp_standard): Replace
5984 throw_exception with throw.
5985 * dwarf2loc.c (call_site_find_chain)
5986 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
5987 Replace throw_exception with throw.
5988 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
5989 with throw.
5990 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
5991 throw.
5992 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
5993 * completer.c (complete_line_internal): Replace throw_exception
5994 with throw.
5995 * compile/compile-object-run.c (compile_object_run): Replace
5996 throw_exception with throw.
5997 * cli/cli-script.c (process_next_line): Replace throw_exception
5998 with throw.
5999 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6000 (btrace_enable, btrace_maint_update_pt_packets): Replace
6001 throw_exception with throw.
6002 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6003 throw_exception with throw.
6004 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6005 throw_exception with throw.
6006 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6007 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6008 * aarch64-tdep.c (aarch64_make_prologue_cache)
6009 (aarch64_make_stub_cache): Replace throw_exception with throw.
6010
26003a20
TT
60112019-04-08 Tom Tromey <tom@tromey.com>
6012
6013 * common/common-exceptions.c (throw_exception): Rename from
6014 throw_exception_cxx. Remove old copy. Make argument const.
6015 (throw_it): Create and throw exception objects directly.
6016 * common/common-exceptions.h (throw_exception): Make argument
6017 const.
6018 (struct gdb_exception_error): Add constructor.
6019 (struct gdb_exception_quit): Add constructor.
6020
d272eb37
TT
60212019-04-08 Tom Tromey <tom@tromey.com>
6022
6023 * common/common-exceptions.h (exception_rethrow): Don't declare.
6024 (TRY_SJLJ): Update comment.
6025 (TRY, CATCH, END_CATCH): Remove.
6026 * common/common-exceptions.c (exception_rethrow): Remove.
6027
230d2906
TT
60282019-04-08 Tom Tromey <tom@tromey.com>
6029
6030 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6031 Remove.
6032 (gdb_exception_error): Rename from
6033 gdb_exception_RETURN_MASK_ERROR.
6034 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6035 (gdb_quit_bad_alloc): Update.
6036 * aarch64-tdep.c: Update.
6037 * ada-lang.c: Update.
6038 * ada-typeprint.c: Update.
6039 * ada-valprint.c: Update.
6040 * amd64-tdep.c: Update.
6041 * arch-utils.c: Update.
6042 * break-catch-throw.c: Update.
6043 * breakpoint.c: Update.
6044 * btrace.c: Update.
6045 * c-varobj.c: Update.
6046 * cli/cli-cmds.c: Update.
6047 * cli/cli-interp.c: Update.
6048 * cli/cli-script.c: Update.
6049 * common/common-exceptions.c: Update.
6050 * common/new-op.c: Update.
6051 * common/selftest.c: Update.
6052 * compile/compile-c-symbols.c: Update.
6053 * compile/compile-cplus-symbols.c: Update.
6054 * compile/compile-object-load.c: Update.
6055 * compile/compile-object-run.c: Update.
6056 * completer.c: Update.
6057 * corelow.c: Update.
6058 * cp-abi.c: Update.
6059 * cp-support.c: Update.
6060 * cp-valprint.c: Update.
6061 * darwin-nat.c: Update.
6062 * disasm-selftests.c: Update.
6063 * dtrace-probe.c: Update.
6064 * dwarf-index-cache.c: Update.
6065 * dwarf-index-write.c: Update.
6066 * dwarf2-frame-tailcall.c: Update.
6067 * dwarf2-frame.c: Update.
6068 * dwarf2loc.c: Update.
6069 * dwarf2read.c: Update.
6070 * eval.c: Update.
6071 * event-loop.c: Update.
6072 * event-top.c: Update.
6073 * exec.c: Update.
6074 * f-valprint.c: Update.
6075 * fbsd-tdep.c: Update.
6076 * frame-unwind.c: Update.
6077 * frame.c: Update.
6078 * gdbtypes.c: Update.
6079 * gnu-v3-abi.c: Update.
6080 * guile/guile-internal.h: Update.
6081 * guile/scm-block.c: Update.
6082 * guile/scm-breakpoint.c: Update.
6083 * guile/scm-cmd.c: Update.
6084 * guile/scm-disasm.c: Update.
6085 * guile/scm-frame.c: Update.
6086 * guile/scm-lazy-string.c: Update.
6087 * guile/scm-math.c: Update.
6088 * guile/scm-param.c: Update.
6089 * guile/scm-ports.c: Update.
6090 * guile/scm-pretty-print.c: Update.
6091 * guile/scm-symbol.c: Update.
6092 * guile/scm-symtab.c: Update.
6093 * guile/scm-type.c: Update.
6094 * guile/scm-value.c: Update.
6095 * i386-linux-tdep.c: Update.
6096 * i386-tdep.c: Update.
6097 * inf-loop.c: Update.
6098 * infcall.c: Update.
6099 * infcmd.c: Update.
6100 * infrun.c: Update.
6101 * jit.c: Update.
6102 * language.c: Update.
6103 * linespec.c: Update.
6104 * linux-fork.c: Update.
6105 * linux-nat.c: Update.
6106 * linux-tdep.c: Update.
6107 * linux-thread-db.c: Update.
6108 * main.c: Update.
6109 * mi/mi-cmd-break.c: Update.
6110 * mi/mi-cmd-stack.c: Update.
6111 * mi/mi-interp.c: Update.
6112 * mi/mi-main.c: Update.
6113 * objc-lang.c: Update.
6114 * p-valprint.c: Update.
6115 * parse.c: Update.
6116 * ppc-linux-tdep.c: Update.
6117 * printcmd.c: Update.
6118 * python/py-arch.c: Update.
6119 * python/py-breakpoint.c: Update.
6120 * python/py-cmd.c: Update.
6121 * python/py-finishbreakpoint.c: Update.
6122 * python/py-frame.c: Update.
6123 * python/py-framefilter.c: Update.
6124 * python/py-gdb-readline.c: Update.
6125 * python/py-inferior.c: Update.
6126 * python/py-infthread.c: Update.
6127 * python/py-lazy-string.c: Update.
6128 * python/py-linetable.c: Update.
6129 * python/py-objfile.c: Update.
6130 * python/py-param.c: Update.
6131 * python/py-prettyprint.c: Update.
6132 * python/py-progspace.c: Update.
6133 * python/py-record-btrace.c: Update.
6134 * python/py-record.c: Update.
6135 * python/py-symbol.c: Update.
6136 * python/py-type.c: Update.
6137 * python/py-unwind.c: Update.
6138 * python/py-utils.c: Update.
6139 * python/py-value.c: Update.
6140 * python/python.c: Update.
6141 * record-btrace.c: Update.
6142 * record-full.c: Update.
6143 * remote-fileio.c: Update.
6144 * remote.c: Update.
6145 * riscv-tdep.c: Update.
6146 * rs6000-aix-tdep.c: Update.
6147 * rs6000-tdep.c: Update.
6148 * rust-exp.y: Update.
6149 * rust-lang.c: Update.
6150 * s390-tdep.c: Update.
6151 * selftest-arch.c: Update.
6152 * solib-dsbt.c: Update.
6153 * solib-frv.c: Update.
6154 * solib-spu.c: Update.
6155 * solib-svr4.c: Update.
6156 * solib.c: Update.
6157 * sparc64-linux-tdep.c: Update.
6158 * stack.c: Update.
6159 * symfile-mem.c: Update.
6160 * symmisc.c: Update.
6161 * target.c: Update.
6162 * thread.c: Update.
6163 * top.c: Update.
6164 * tracefile-tfile.c: Update.
6165 * tui/tui.c: Update.
6166 * typeprint.c: Update.
6167 * unittests/cli-utils-selftests.c: Update.
6168 * unittests/parse-connection-spec-selftests.c: Update.
6169 * valops.c: Update.
6170 * valprint.c: Update.
6171 * value.c: Update.
6172 * varobj.c: Update.
6173 * windows-nat.c: Update.
6174 * x86-linux-nat.c: Update.
6175 * xml-support.c: Update.
6176
a70b8144
TT
61772019-04-08 Tom Tromey <tom@tromey.com>
6178
6179 * xml-support.c: Use C++ exception handling.
6180 * x86-linux-nat.c: Use C++ exception handling.
6181 * windows-nat.c: Use C++ exception handling.
6182 * varobj.c: Use C++ exception handling.
6183 * value.c: Use C++ exception handling.
6184 * valprint.c: Use C++ exception handling.
6185 * valops.c: Use C++ exception handling.
6186 * unittests/parse-connection-spec-selftests.c: Use C++ exception
6187 handling.
6188 * unittests/cli-utils-selftests.c: Use C++ exception handling.
6189 * typeprint.c: Use C++ exception handling.
6190 * tui/tui.c: Use C++ exception handling.
6191 * tracefile-tfile.c: Use C++ exception handling.
6192 * top.c: Use C++ exception handling.
6193 * thread.c: Use C++ exception handling.
6194 * target.c: Use C++ exception handling.
6195 * symmisc.c: Use C++ exception handling.
6196 * symfile-mem.c: Use C++ exception handling.
6197 * stack.c: Use C++ exception handling.
6198 * sparc64-linux-tdep.c: Use C++ exception handling.
6199 * solib.c: Use C++ exception handling.
6200 * solib-svr4.c: Use C++ exception handling.
6201 * solib-spu.c: Use C++ exception handling.
6202 * solib-frv.c: Use C++ exception handling.
6203 * solib-dsbt.c: Use C++ exception handling.
6204 * selftest-arch.c: Use C++ exception handling.
6205 * s390-tdep.c: Use C++ exception handling.
6206 * rust-lang.c: Use C++ exception handling.
6207 * rust-exp.y: Use C++ exception handling.
6208 * rs6000-tdep.c: Use C++ exception handling.
6209 * rs6000-aix-tdep.c: Use C++ exception handling.
6210 * riscv-tdep.c: Use C++ exception handling.
6211 * remote.c: Use C++ exception handling.
6212 * remote-fileio.c: Use C++ exception handling.
6213 * record-full.c: Use C++ exception handling.
6214 * record-btrace.c: Use C++ exception handling.
6215 * python/python.c: Use C++ exception handling.
6216 * python/py-value.c: Use C++ exception handling.
6217 * python/py-utils.c: Use C++ exception handling.
6218 * python/py-unwind.c: Use C++ exception handling.
6219 * python/py-type.c: Use C++ exception handling.
6220 * python/py-symbol.c: Use C++ exception handling.
6221 * python/py-record.c: Use C++ exception handling.
6222 * python/py-record-btrace.c: Use C++ exception handling.
6223 * python/py-progspace.c: Use C++ exception handling.
6224 * python/py-prettyprint.c: Use C++ exception handling.
6225 * python/py-param.c: Use C++ exception handling.
6226 * python/py-objfile.c: Use C++ exception handling.
6227 * python/py-linetable.c: Use C++ exception handling.
6228 * python/py-lazy-string.c: Use C++ exception handling.
6229 * python/py-infthread.c: Use C++ exception handling.
6230 * python/py-inferior.c: Use C++ exception handling.
6231 * python/py-gdb-readline.c: Use C++ exception handling.
6232 * python/py-framefilter.c: Use C++ exception handling.
6233 * python/py-frame.c: Use C++ exception handling.
6234 * python/py-finishbreakpoint.c: Use C++ exception handling.
6235 * python/py-cmd.c: Use C++ exception handling.
6236 * python/py-breakpoint.c: Use C++ exception handling.
6237 * python/py-arch.c: Use C++ exception handling.
6238 * printcmd.c: Use C++ exception handling.
6239 * ppc-linux-tdep.c: Use C++ exception handling.
6240 * parse.c: Use C++ exception handling.
6241 * p-valprint.c: Use C++ exception handling.
6242 * objc-lang.c: Use C++ exception handling.
6243 * mi/mi-main.c: Use C++ exception handling.
6244 * mi/mi-interp.c: Use C++ exception handling.
6245 * mi/mi-cmd-stack.c: Use C++ exception handling.
6246 * mi/mi-cmd-break.c: Use C++ exception handling.
6247 * main.c: Use C++ exception handling.
6248 * linux-thread-db.c: Use C++ exception handling.
6249 * linux-tdep.c: Use C++ exception handling.
6250 * linux-nat.c: Use C++ exception handling.
6251 * linux-fork.c: Use C++ exception handling.
6252 * linespec.c: Use C++ exception handling.
6253 * language.c: Use C++ exception handling.
6254 * jit.c: Use C++ exception handling.
6255 * infrun.c: Use C++ exception handling.
6256 * infcmd.c: Use C++ exception handling.
6257 * infcall.c: Use C++ exception handling.
6258 * inf-loop.c: Use C++ exception handling.
6259 * i386-tdep.c: Use C++ exception handling.
6260 * i386-linux-tdep.c: Use C++ exception handling.
6261 * guile/scm-value.c: Use C++ exception handling.
6262 * guile/scm-type.c: Use C++ exception handling.
6263 * guile/scm-symtab.c: Use C++ exception handling.
6264 * guile/scm-symbol.c: Use C++ exception handling.
6265 * guile/scm-pretty-print.c: Use C++ exception handling.
6266 * guile/scm-ports.c: Use C++ exception handling.
6267 * guile/scm-param.c: Use C++ exception handling.
6268 * guile/scm-math.c: Use C++ exception handling.
6269 * guile/scm-lazy-string.c: Use C++ exception handling.
6270 * guile/scm-frame.c: Use C++ exception handling.
6271 * guile/scm-disasm.c: Use C++ exception handling.
6272 * guile/scm-cmd.c: Use C++ exception handling.
6273 * guile/scm-breakpoint.c: Use C++ exception handling.
6274 * guile/scm-block.c: Use C++ exception handling.
6275 * guile/guile-internal.h: Use C++ exception handling.
6276 * gnu-v3-abi.c: Use C++ exception handling.
6277 * gdbtypes.c: Use C++ exception handling.
6278 * frame.c: Use C++ exception handling.
6279 * frame-unwind.c: Use C++ exception handling.
6280 * fbsd-tdep.c: Use C++ exception handling.
6281 * f-valprint.c: Use C++ exception handling.
6282 * exec.c: Use C++ exception handling.
6283 * event-top.c: Use C++ exception handling.
6284 * event-loop.c: Use C++ exception handling.
6285 * eval.c: Use C++ exception handling.
6286 * dwarf2read.c: Use C++ exception handling.
6287 * dwarf2loc.c: Use C++ exception handling.
6288 * dwarf2-frame.c: Use C++ exception handling.
6289 * dwarf2-frame-tailcall.c: Use C++ exception handling.
6290 * dwarf-index-write.c: Use C++ exception handling.
6291 * dwarf-index-cache.c: Use C++ exception handling.
6292 * dtrace-probe.c: Use C++ exception handling.
6293 * disasm-selftests.c: Use C++ exception handling.
6294 * darwin-nat.c: Use C++ exception handling.
6295 * cp-valprint.c: Use C++ exception handling.
6296 * cp-support.c: Use C++ exception handling.
6297 * cp-abi.c: Use C++ exception handling.
6298 * corelow.c: Use C++ exception handling.
6299 * completer.c: Use C++ exception handling.
6300 * compile/compile-object-run.c: Use C++ exception handling.
6301 * compile/compile-object-load.c: Use C++ exception handling.
6302 * compile/compile-cplus-symbols.c: Use C++ exception handling.
6303 * compile/compile-c-symbols.c: Use C++ exception handling.
6304 * common/selftest.c: Use C++ exception handling.
6305 * common/new-op.c: Use C++ exception handling.
6306 * cli/cli-script.c: Use C++ exception handling.
6307 * cli/cli-interp.c: Use C++ exception handling.
6308 * cli/cli-cmds.c: Use C++ exception handling.
6309 * c-varobj.c: Use C++ exception handling.
6310 * btrace.c: Use C++ exception handling.
6311 * breakpoint.c: Use C++ exception handling.
6312 * break-catch-throw.c: Use C++ exception handling.
6313 * arch-utils.c: Use C++ exception handling.
6314 * amd64-tdep.c: Use C++ exception handling.
6315 * ada-valprint.c: Use C++ exception handling.
6316 * ada-typeprint.c: Use C++ exception handling.
6317 * ada-lang.c: Use C++ exception handling.
6318 * aarch64-tdep.c: Use C++ exception handling.
6319
3d6e9d23
TT
63202019-04-08 Tom Tromey <tom@tromey.com>
6321
6322 * xml-support.c (gdb_xml_parser::parse): Update.
6323 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
6324 * value.c (show_convenience): Update.
6325 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
6326 (test_parse_flags_qcs): Update.
6327 * thread.c (thr_try_catch_cmd): Update.
6328 * target.c (target_translate_tls_address): Update.
6329 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6330 (info_frame_command_core, frame_apply_command_count): Update.
6331 * rust-exp.y (rust_lex_exception_test): Update.
6332 * riscv-tdep.c (riscv_print_one_register_info): Update.
6333 * remote.c (remote_target::enable_btrace): Update.
6334 * record-btrace.c (record_btrace_enable_warn): Update.
6335 * python/py-utils.c (gdbpy_convert_exception): Update.
6336 * printcmd.c (do_one_display, print_variable_and_value): Update.
6337 * mi/mi-main.c (mi_print_exception): Update.
6338 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
6339 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6340 * linux-nat.c (linux_nat_target::attach): Update.
6341 * linux-fork.c (class scoped_switch_fork_info): Update.
6342 * infrun.c (displaced_step_prepare): Update.
6343 * infcall.c (call_function_by_hand_dummy): Update.
6344 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
6345 * gnu-v3-abi.c (print_one_vtable): Update.
6346 * frame.c (get_prev_frame_always): Update.
6347 * f-valprint.c (info_common_command_for_block): Update.
6348 * exec.c (try_open_exec_file): Update.
6349 * exceptions.c (print_exception, exception_print)
6350 (exception_fprintf, exception_print_same): Update.
6351 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
6352 * dwarf-index-cache.c (index_cache::store)
6353 (index_cache::lookup_gdb_index): Update.
6354 * darwin-nat.c (maybe_cache_shell): Update.
6355 * cp-valprint.c (cp_print_value_fields): Update.
6356 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
6357 (gcc_cplus_symbol_address): Update.
6358 * compile/compile-c-symbols.c (gcc_convert_symbol)
6359 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
6360 * common/selftest.c: Update.
6361 * common/common-exceptions.h (struct gdb_exception) <message>: Now
6362 a std::string.
6363 (exception_try_scope_entry, exception_try_scope_exit): Don't
6364 declare.
6365 (struct exception_try_scope): Remove.
6366 (TRY): Don't use exception_try_scope.
6367 (struct gdb_exception): Add constructor, operator=.
6368 <what>: New method.
6369 (struct gdb_exception_RETURN_MASK_ALL)
6370 (struct gdb_exception_RETURN_MASK_ERROR)
6371 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
6372 (struct gdb_quit_bad_alloc): Update.
6373 * common/common-exceptions.c (exception_none): Change
6374 initializer.
6375 (struct catcher) <state, exception>: Initialize inline.
6376 <prev>: Remove member.
6377 (current_catcher): Remove.
6378 (catchers): New global.
6379 (exceptions_state_mc_init): Simplify.
6380 (catcher_pop): Remove.
6381 (exceptions_state_mc, exceptions_state_mc_catch): Update.
6382 (try_scope_depth, exception_try_scope_entry)
6383 (exception_try_scope_exit): Remove.
6384 (throw_exception_sjlj): Update.
6385 (exception_messages, exception_messages_size): Remove.
6386 (throw_it): Simplify.
6387 (gdb_exception_sliced_copy): Remove.
6388 (throw_exception_cxx): Update.
6389 * cli/cli-script.c (script_from_file): Update.
6390 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
6391 Update.
6392 * ada-valprint.c (ada_val_print): Update.
6393 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
6394 (create_excep_cond_exprs): Update.
6395
c5c10118
TT
63962019-04-08 Tom Tromey <tom@tromey.com>
6397
6398 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
6399 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
6400 (TRY, CATCH, END_CATCH): Remove some definitions.
6401 * common/common-exceptions.c: Don't use GDB_XCPT.
6402 (catcher_list_size): Remove.
6403 (throw_exception, throw_it): Simplify.
6404
4de283e4
TT
64052019-04-05 Tom Tromey <tom@tromey.com>
6406
6407 Revert the header-sorting patch.
6408 * ft32-tdep.c: Revert.
6409 * frv-tdep.c: Revert.
6410 * frv-linux-tdep.c: Revert.
6411 * frame.c: Revert.
6412 * frame-unwind.c: Revert.
6413 * frame-base.c: Revert.
6414 * fork-child.c: Revert.
6415 * findvar.c: Revert.
6416 * findcmd.c: Revert.
6417 * filesystem.c: Revert.
6418 * filename-seen-cache.h: Revert.
6419 * filename-seen-cache.c: Revert.
6420 * fbsd-tdep.c: Revert.
6421 * fbsd-nat.h: Revert.
6422 * fbsd-nat.c: Revert.
6423 * f-valprint.c: Revert.
6424 * f-typeprint.c: Revert.
6425 * f-lang.c: Revert.
6426 * extension.h: Revert.
6427 * extension.c: Revert.
6428 * extension-priv.h: Revert.
6429 * expprint.c: Revert.
6430 * exec.h: Revert.
6431 * exec.c: Revert.
6432 * exceptions.c: Revert.
6433 * event-top.c: Revert.
6434 * event-loop.c: Revert.
6435 * eval.c: Revert.
6436 * elfread.c: Revert.
6437 * dwarf2read.h: Revert.
6438 * dwarf2read.c: Revert.
6439 * dwarf2loc.c: Revert.
6440 * dwarf2expr.h: Revert.
6441 * dwarf2expr.c: Revert.
6442 * dwarf2-frame.c: Revert.
6443 * dwarf2-frame-tailcall.c: Revert.
6444 * dwarf-index-write.h: Revert.
6445 * dwarf-index-write.c: Revert.
6446 * dwarf-index-common.c: Revert.
6447 * dwarf-index-cache.h: Revert.
6448 * dwarf-index-cache.c: Revert.
6449 * dummy-frame.c: Revert.
6450 * dtrace-probe.c: Revert.
6451 * disasm.h: Revert.
6452 * disasm.c: Revert.
6453 * disasm-selftests.c: Revert.
6454 * dictionary.c: Revert.
6455 * dicos-tdep.c: Revert.
6456 * demangle.c: Revert.
6457 * dcache.h: Revert.
6458 * dcache.c: Revert.
6459 * darwin-nat.h: Revert.
6460 * darwin-nat.c: Revert.
6461 * darwin-nat-info.c: Revert.
6462 * d-valprint.c: Revert.
6463 * d-namespace.c: Revert.
6464 * d-lang.c: Revert.
6465 * ctf.c: Revert.
6466 * csky-tdep.c: Revert.
6467 * csky-linux-tdep.c: Revert.
6468 * cris-tdep.c: Revert.
6469 * cris-linux-tdep.c: Revert.
6470 * cp-valprint.c: Revert.
6471 * cp-support.c: Revert.
6472 * cp-namespace.c: Revert.
6473 * cp-abi.c: Revert.
6474 * corelow.c: Revert.
6475 * corefile.c: Revert.
6476 * continuations.c: Revert.
6477 * completer.h: Revert.
6478 * completer.c: Revert.
6479 * complaints.c: Revert.
6480 * coffread.c: Revert.
6481 * coff-pe-read.c: Revert.
6482 * cli-out.h: Revert.
6483 * cli-out.c: Revert.
6484 * charset.c: Revert.
6485 * c-varobj.c: Revert.
6486 * c-valprint.c: Revert.
6487 * c-typeprint.c: Revert.
6488 * c-lang.c: Revert.
6489 * buildsym.c: Revert.
6490 * buildsym-legacy.c: Revert.
6491 * build-id.h: Revert.
6492 * build-id.c: Revert.
6493 * btrace.c: Revert.
6494 * bsd-uthread.c: Revert.
6495 * breakpoint.h: Revert.
6496 * breakpoint.c: Revert.
6497 * break-catch-throw.c: Revert.
6498 * break-catch-syscall.c: Revert.
6499 * break-catch-sig.c: Revert.
6500 * blockframe.c: Revert.
6501 * block.c: Revert.
6502 * bfin-tdep.c: Revert.
6503 * bfin-linux-tdep.c: Revert.
6504 * bfd-target.c: Revert.
6505 * bcache.c: Revert.
6506 * ax-general.c: Revert.
6507 * ax-gdb.h: Revert.
6508 * ax-gdb.c: Revert.
6509 * avr-tdep.c: Revert.
6510 * auxv.c: Revert.
6511 * auto-load.c: Revert.
6512 * arm-wince-tdep.c: Revert.
6513 * arm-tdep.c: Revert.
6514 * arm-symbian-tdep.c: Revert.
6515 * arm-pikeos-tdep.c: Revert.
6516 * arm-obsd-tdep.c: Revert.
6517 * arm-nbsd-tdep.c: Revert.
6518 * arm-nbsd-nat.c: Revert.
6519 * arm-linux-tdep.c: Revert.
6520 * arm-linux-nat.c: Revert.
6521 * arm-fbsd-tdep.c: Revert.
6522 * arm-fbsd-nat.c: Revert.
6523 * arm-bsd-tdep.c: Revert.
6524 * arch-utils.c: Revert.
6525 * arc-tdep.c: Revert.
6526 * arc-newlib-tdep.c: Revert.
6527 * annotate.h: Revert.
6528 * annotate.c: Revert.
6529 * amd64-windows-tdep.c: Revert.
6530 * amd64-windows-nat.c: Revert.
6531 * amd64-tdep.c: Revert.
6532 * amd64-sol2-tdep.c: Revert.
6533 * amd64-obsd-tdep.c: Revert.
6534 * amd64-obsd-nat.c: Revert.
6535 * amd64-nbsd-tdep.c: Revert.
6536 * amd64-nbsd-nat.c: Revert.
6537 * amd64-nat.c: Revert.
6538 * amd64-linux-tdep.c: Revert.
6539 * amd64-linux-nat.c: Revert.
6540 * amd64-fbsd-tdep.c: Revert.
6541 * amd64-fbsd-nat.c: Revert.
6542 * amd64-dicos-tdep.c: Revert.
6543 * amd64-darwin-tdep.c: Revert.
6544 * amd64-bsd-nat.c: Revert.
6545 * alpha-tdep.c: Revert.
6546 * alpha-obsd-tdep.c: Revert.
6547 * alpha-nbsd-tdep.c: Revert.
6548 * alpha-mdebug-tdep.c: Revert.
6549 * alpha-linux-tdep.c: Revert.
6550 * alpha-linux-nat.c: Revert.
6551 * alpha-bsd-tdep.c: Revert.
6552 * alpha-bsd-nat.c: Revert.
6553 * aix-thread.c: Revert.
6554 * agent.c: Revert.
6555 * addrmap.c: Revert.
6556 * ada-varobj.c: Revert.
6557 * ada-valprint.c: Revert.
6558 * ada-typeprint.c: Revert.
6559 * ada-tasks.c: Revert.
6560 * ada-lang.c: Revert.
6561 * aarch64-tdep.c: Revert.
6562 * aarch64-ravenscar-thread.c: Revert.
6563 * aarch64-newlib-tdep.c: Revert.
6564 * aarch64-linux-tdep.c: Revert.
6565 * aarch64-linux-nat.c: Revert.
6566 * aarch64-fbsd-tdep.c: Revert.
6567 * aarch64-fbsd-nat.c: Revert.
6568 * aarch32-linux-nat.c: Revert.
6569
d55e5aa6
TT
65702019-04-05 Tom Tromey <tom@tromey.com>
6571
6572 * ft32-tdep.c: Sort headers.
6573 * frv-tdep.c: Sort headers.
6574 * frv-linux-tdep.c: Sort headers.
6575 * frame.c: Sort headers.
6576 * frame-unwind.c: Sort headers.
6577 * frame-base.c: Sort headers.
6578 * fork-child.c: Sort headers.
6579 * findvar.c: Sort headers.
6580 * findcmd.c: Sort headers.
6581 * filesystem.c: Sort headers.
6582 * filename-seen-cache.h: Sort headers.
6583 * filename-seen-cache.c: Sort headers.
6584 * fbsd-tdep.c: Sort headers.
6585 * fbsd-nat.h: Sort headers.
6586 * fbsd-nat.c: Sort headers.
6587 * f-valprint.c: Sort headers.
6588 * f-typeprint.c: Sort headers.
6589 * f-lang.c: Sort headers.
6590 * extension.h: Sort headers.
6591 * extension.c: Sort headers.
6592 * extension-priv.h: Sort headers.
6593 * expprint.c: Sort headers.
6594 * exec.h: Sort headers.
6595 * exec.c: Sort headers.
6596 * exceptions.c: Sort headers.
6597 * event-top.c: Sort headers.
6598 * event-loop.c: Sort headers.
6599 * eval.c: Sort headers.
6600 * elfread.c: Sort headers.
6601 * dwarf2read.h: Sort headers.
6602 * dwarf2read.c: Sort headers.
6603 * dwarf2loc.c: Sort headers.
6604 * dwarf2expr.h: Sort headers.
6605 * dwarf2expr.c: Sort headers.
6606 * dwarf2-frame.c: Sort headers.
6607 * dwarf2-frame-tailcall.c: Sort headers.
6608 * dwarf-index-write.h: Sort headers.
6609 * dwarf-index-write.c: Sort headers.
6610 * dwarf-index-common.c: Sort headers.
6611 * dwarf-index-cache.h: Sort headers.
6612 * dwarf-index-cache.c: Sort headers.
6613 * dummy-frame.c: Sort headers.
6614 * dtrace-probe.c: Sort headers.
6615 * disasm.h: Sort headers.
6616 * disasm.c: Sort headers.
6617 * disasm-selftests.c: Sort headers.
6618 * dictionary.c: Sort headers.
6619 * dicos-tdep.c: Sort headers.
6620 * demangle.c: Sort headers.
6621 * dcache.h: Sort headers.
6622 * dcache.c: Sort headers.
6623 * darwin-nat.h: Sort headers.
6624 * darwin-nat.c: Sort headers.
6625 * darwin-nat-info.c: Sort headers.
6626 * d-valprint.c: Sort headers.
6627 * d-namespace.c: Sort headers.
6628 * d-lang.c: Sort headers.
6629 * ctf.c: Sort headers.
6630 * csky-tdep.c: Sort headers.
6631 * csky-linux-tdep.c: Sort headers.
6632 * cris-tdep.c: Sort headers.
6633 * cris-linux-tdep.c: Sort headers.
6634 * cp-valprint.c: Sort headers.
6635 * cp-support.c: Sort headers.
6636 * cp-namespace.c: Sort headers.
6637 * cp-abi.c: Sort headers.
6638 * corelow.c: Sort headers.
6639 * corefile.c: Sort headers.
6640 * continuations.c: Sort headers.
6641 * completer.h: Sort headers.
6642 * completer.c: Sort headers.
6643 * complaints.c: Sort headers.
6644 * coffread.c: Sort headers.
6645 * coff-pe-read.c: Sort headers.
6646 * cli-out.h: Sort headers.
6647 * cli-out.c: Sort headers.
6648 * charset.c: Sort headers.
6649 * c-varobj.c: Sort headers.
6650 * c-valprint.c: Sort headers.
6651 * c-typeprint.c: Sort headers.
6652 * c-lang.c: Sort headers.
6653 * buildsym.c: Sort headers.
6654 * buildsym-legacy.c: Sort headers.
6655 * build-id.h: Sort headers.
6656 * build-id.c: Sort headers.
6657 * btrace.c: Sort headers.
6658 * bsd-uthread.c: Sort headers.
6659 * breakpoint.h: Sort headers.
6660 * breakpoint.c: Sort headers.
6661 * break-catch-throw.c: Sort headers.
6662 * break-catch-syscall.c: Sort headers.
6663 * break-catch-sig.c: Sort headers.
6664 * blockframe.c: Sort headers.
6665 * block.c: Sort headers.
6666 * bfin-tdep.c: Sort headers.
6667 * bfin-linux-tdep.c: Sort headers.
6668 * bfd-target.c: Sort headers.
6669 * bcache.c: Sort headers.
6670 * ax-general.c: Sort headers.
6671 * ax-gdb.h: Sort headers.
6672 * ax-gdb.c: Sort headers.
6673 * avr-tdep.c: Sort headers.
6674 * auxv.c: Sort headers.
6675 * auto-load.c: Sort headers.
6676 * arm-wince-tdep.c: Sort headers.
6677 * arm-tdep.c: Sort headers.
6678 * arm-symbian-tdep.c: Sort headers.
6679 * arm-pikeos-tdep.c: Sort headers.
6680 * arm-obsd-tdep.c: Sort headers.
6681 * arm-nbsd-tdep.c: Sort headers.
6682 * arm-nbsd-nat.c: Sort headers.
6683 * arm-linux-tdep.c: Sort headers.
6684 * arm-linux-nat.c: Sort headers.
6685 * arm-fbsd-tdep.c: Sort headers.
6686 * arm-fbsd-nat.c: Sort headers.
6687 * arm-bsd-tdep.c: Sort headers.
6688 * arch-utils.c: Sort headers.
6689 * arc-tdep.c: Sort headers.
6690 * arc-newlib-tdep.c: Sort headers.
6691 * annotate.h: Sort headers.
6692 * annotate.c: Sort headers.
6693 * amd64-windows-tdep.c: Sort headers.
6694 * amd64-windows-nat.c: Sort headers.
6695 * amd64-tdep.c: Sort headers.
6696 * amd64-sol2-tdep.c: Sort headers.
6697 * amd64-obsd-tdep.c: Sort headers.
6698 * amd64-obsd-nat.c: Sort headers.
6699 * amd64-nbsd-tdep.c: Sort headers.
6700 * amd64-nbsd-nat.c: Sort headers.
6701 * amd64-nat.c: Sort headers.
6702 * amd64-linux-tdep.c: Sort headers.
6703 * amd64-linux-nat.c: Sort headers.
6704 * amd64-fbsd-tdep.c: Sort headers.
6705 * amd64-fbsd-nat.c: Sort headers.
6706 * amd64-dicos-tdep.c: Sort headers.
6707 * amd64-darwin-tdep.c: Sort headers.
6708 * amd64-bsd-nat.c: Sort headers.
6709 * alpha-tdep.c: Sort headers.
6710 * alpha-obsd-tdep.c: Sort headers.
6711 * alpha-nbsd-tdep.c: Sort headers.
6712 * alpha-mdebug-tdep.c: Sort headers.
6713 * alpha-linux-tdep.c: Sort headers.
6714 * alpha-linux-nat.c: Sort headers.
6715 * alpha-bsd-tdep.c: Sort headers.
6716 * alpha-bsd-nat.c: Sort headers.
6717 * aix-thread.c: Sort headers.
6718 * agent.c: Sort headers.
6719 * addrmap.c: Sort headers.
6720 * ada-varobj.c: Sort headers.
6721 * ada-valprint.c: Sort headers.
6722 * ada-typeprint.c: Sort headers.
6723 * ada-tasks.c: Sort headers.
6724 * ada-lang.c: Sort headers.
6725 * aarch64-tdep.c: Sort headers.
6726 * aarch64-ravenscar-thread.c: Sort headers.
6727 * aarch64-newlib-tdep.c: Sort headers.
6728 * aarch64-linux-tdep.c: Sort headers.
6729 * aarch64-linux-nat.c: Sort headers.
6730 * aarch64-fbsd-tdep.c: Sort headers.
6731 * aarch64-fbsd-nat.c: Sort headers.
6732 * aarch32-linux-nat.c: Sort headers.
6733
699bd4cf
TT
67342019-04-04 Tom Tromey <tom@tromey.com>
6735
6736 * varobj.c (varobj_create): Update.
6737 * rust-exp.y (struct rust_parser) <update_innermost_block,
6738 lookup_symbol>: New methods.
6739 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
6740 Rename.
6741 (rust_parser::rust_lookup_type)
6742 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6743 * printcmd.c (display_command, do_one_display): Update.
6744 * parser-defs.h (struct parser_state) <parser_state>: Add
6745 "tracker" parameter.
6746 (block_tracker): New member.
6747 (class innermost_block_tracker) <innermost_block_tracker>: Add
6748 "types" parameter.
6749 <reset>: Remove method.
6750 (innermost_block): Don't declare.
6751 (null_post_parser): Update.
6752 * parse.c (innermost_block): Remove global.
6753 (write_dollar_variable): Update.
6754 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
6755 Remove "tracker_types" parameter.
6756 (parse_expression): Add "tracker" parameter.
6757 (parse_expression_for_completion): Update.
6758 (null_post_parser): Add "tracker" parameter.
6759 * p-exp.y: Update rules.
6760 * m2-exp.y: Update rules.
6761 * language.h (struct language_defn) <la_post_parser>: Add
6762 "tracker" parameter.
6763 * go-exp.y: Update rules.
6764 * f-exp.y: Update rules.
6765 * expression.h (parse_expression, parse_exp_1): Add "tracker"
6766 parameter.
6767 * d-exp.y: Update rules.
6768 * c-exp.y: Update rules.
6769 * breakpoint.c (set_breakpoint_condition): Create an
6770 innermost_block_tracker.
6771 (watch_command_1): Likewise.
6772 * ada-lang.c (resolve): Add "tracker" parameter.
6773 (resolve_subexp): Likewise.
6774 * ada-exp.y (write_var_from_sym): Update.
6775
dac43e32
TT
67762019-04-04 Tom Tromey <tom@tromey.com>
6777
6778 * type-stack.h: New file.
6779 * type-stack.c: New file.
6780 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
6781 type-stack.h.
6782 (insert_into_type_stack, insert_type, push_type, push_type_int)
6783 (insert_type_address_space, pop_type, pop_type_int)
6784 (pop_typelist, pop_type_stack, append_type_stack)
6785 (push_type_stack, get_type_stack, push_typelist)
6786 (follow_type_instance_flags, follow_types): Don't declare.
6787 * parse.c (type_stack): Remove global.
6788 (parse_exp_in_context): Update.
6789 (insert_into_type_stack, insert_type, push_type, push_type_int)
6790 (insert_type_address_space, pop_type, pop_type_int)
6791 (pop_typelist, pop_type_stack, append_type_stack)
6792 (push_type_stack, get_type_stack, push_typelist)
6793 (follow_type_instance_flags, follow_types): Remove (moved to
6794 type-stack.c).
6795 * f-exp.y (type_stack): New global.
6796 Update rules.
6797 (push_kind_type, f_parse): Update.
6798 * d-exp.y (type_stack): New global.
6799 Update rules.
6800 (d_parse): Update.
6801 * c-exp.y (struct c_parse_state) <type_stack>: New member.
6802 Update rules.
6803 * Makefile.in (COMMON_SFILES): Add type-stack.c.
6804 (HFILES_NO_SRCDIR): Add type-stack.h.
6805
2a612529
TT
68062019-04-04 Tom Tromey <tom@tromey.com>
6807
6808 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
6809 (rust_parser::convert_ast_to_expression, rust_parse)
6810 (rust_lex_test_completion, rust_lex_tests): Update.
6811 * parser-defs.h (struct expr_completion_state): New.
6812 (struct parser_state) <parser_state>: Add completion parameter.
6813 <mark_struct_expression, mark_completion_tag>: New methods.
6814 <parse_completion, m_completion_state>: New members.
6815 (prefixify_expression, null_post_parser): Update.
6816 (mark_struct_expression, mark_completion_tag): Don't declare.
6817 * parse.c (parse_completion, expout_last_struct)
6818 (expout_tag_completion_type, expout_completion_name): Remove
6819 globals.
6820 (parser_state::mark_struct_expression)
6821 (parser_state::mark_completion_tag): Now methods.
6822 (prefixify_expression): Add last_struct parameter.
6823 (prefixify_subexp): Likewise.
6824 (parse_exp_1): Update.
6825 (parse_exp_in_context): Add cstate parameter. Update.
6826 (parse_expression_for_completion): Create an
6827 expr_completion_state.
6828 (null_post_parser): Add "completion" parameter.
6829 * p-exp.y: Update rules.
6830 (yylex): Update.
6831 * language.h (struct language_defn) <la_post_parser>: Add
6832 "completing" parameter.
6833 * go-exp.y: Update rules.
6834 (lex_one_token): Update.
6835 * expression.h (parse_completion): Don't declare.
6836 * d-exp.y: Update rules.
6837 (lex_one_token): Update rules.
6838 * c-exp.y: Update rules.
6839 (lex_one_token): Update.
6840 * ada-lang.c (resolve): Add "parse_completion" parameter.
6841 (resolve_subexp): Likewise.
6842 (ada_resolve_function): Likewise.
6843
43476f0b
TT
68442019-04-04 Tom Tromey <tom@tromey.com>
6845
6846 * parser-defs.h (struct parser_state) <start_arglist,
6847 end_arglist>: New methods.
6848 <arglist_len, m_funcall_chain>: New members.
6849 (arglist_len, start_arglist, end_arglist): Don't declare.
6850 * parse.c (arglist_len, funcall_chain): Remove global.
6851 (start_arglist, end_arglist): Remove functions.
6852 (parse_exp_in_context): Update.
6853 * p-exp.y: Update rules.
6854 * m2-exp.y: Update rules.
6855 * go-exp.y: Update rules.
6856 * f-exp.y: Update rules.
6857 * d-exp.y: Update rules.
6858 * c-exp.y: Update rules.
6859
5776fca3
TT
68602019-04-04 Tom Tromey <tom@tromey.com>
6861
6862 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
6863 lex_operator, push_back>: New methods.
6864 Update all rules.
6865 (rust_parser::lex_hex, lex_escape): Rename and update.
6866 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
6867 (rust_parser::lex_operator): Rename and update.
6868 (rust_parser::lex_number, rustyylex, rustyyerror)
6869 (rust_lex_test_init, rust_lex_test_sequence)
6870 (rust_lex_test_push_back, rust_lex_tests): Update.
6871 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
6872 parameter.
6873 <lexptr, prev_lexptr>: New members.
6874 (lexptr, prev_lexptr): Don't declare.
6875 * parse.c (lexptr, prev_lexptr): Remove globals.
6876 (parse_exp_in_context): Update.
6877 * p-exp.y (yylex, yyerror): Update.
6878 * m2-exp.y (parse_number, yylex, yyerror): Update.
6879 * go-exp.y (lex_one_token, yyerror): Update.
6880 * f-exp.y (match_string_literal, yylex, yyerror): Update.
6881 * d-exp.y (lex_one_token, yyerror): Update.
6882 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
6883 (lex_one_token, yyerror): Update.
6884 * ada-lex.l (YY_INPUT): Update.
6885 (rewind_to_char): Update.
6886 * ada-exp.y (yyerror): Update.
6887
8621b685
TT
68882019-04-04 Tom Tromey <tom@tromey.com>
6889
6890 * rust-exp.y (rustyylex, rust_lex_tests): Update.
6891 * parser-defs.h (struct parser_state) <parser_state>: Add new
6892 parameter.
6893 <comma_terminates>: New member.
6894 (comma_terminates): Don't declare global.
6895 * parse.c (comma_terminates): Remove global.
6896 (parse_exp_in_context): Update.
6897 * p-exp.y (yylex): Update.
6898 * m2-exp.y (yylex): Update.
6899 * go-exp.y (lex_one_token): Update.
6900 * f-exp.y (yylex): Update.
6901 * d-exp.y (lex_one_token): Update.
6902 * c-exp.y (lex_one_token): Update.
6903 * ada-lex.l: Update.
6904
28aaf3fd
TT
69052019-04-04 Tom Tromey <tom@tromey.com>
6906
6907 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
6908 (rustyylex, rust_lex_test_init, rust_lex_test_one)
6909 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
6910 * parser-defs.h (paren_depth): Don't declare.
6911 * parse.c (paren_depth): Remove global.
6912 (parse_exp_in_context): Update.
6913 * p-exp.y (paren_depth): New global.
6914 (pascal_parse): Initialize it.
6915 * m2-exp.y (paren_depth): New global.
6916 (m2_parse): Initialize it.
6917 * go-exp.y (paren_depth): New global.
6918 (go_parse): Initialize it.
6919 * f-exp.y (paren_depth): New global.
6920 (f_parse): Initialize it.
6921 * d-exp.y (paren_depth): New global.
6922 (d_parse): Initialize it.
6923 * c-exp.y (paren_depth): New global.
6924 (c_parse): Initialize it.
6925 * ada-lex.l (paren_depth): New global.
6926 (lexer_init): Initialize it.
6927
1e58a4a4
TT
69282019-04-04 Tom Tromey <tom@tromey.com>
6929
6930 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
6931 (rust_parser::convert_ast_to_type)
6932 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
6933 * parser-defs.h (struct parser_state) <parser_state>: Add
6934 parameters. Initialize new members.
6935 <expression_context_block, expression_context_pc>: New members.
6936 * parse.c (expression_context_block, expression_context_pc):
6937 Remove globals.
6938 (parse_exp_in_context): Update.
6939 * p-exp.y: Update all rules.
6940 (yylex): Update.
6941 * m2-exp.y: Update all rules.
6942 (yylex): Update.
6943 * go-exp.y (yylex): Update.
6944 * f-exp.y (yylex): Update.
6945 * d-exp.y: Update all rules.
6946 (yylex): Update.
6947 * c-exp.y: Update all rules.
6948 (lex_one_token, classify_name, yylex, c_parse): Update.
6949 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
6950
37eedb39
TT
69512019-04-04 Tom Tromey <tom@tromey.com>
6952
6953 * gdbarch.h, gdbarch.c: Rebuild.
6954 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
6955 * stap-probe.h:
6956 (struct stap_parse_info): Replace "parser_state" with
6957 "expr_builder".
6958 * parser-defs.h (struct expr_builder): Rename from "parser_state".
6959 (parser_state): New class.
6960 * parse.c (expr_builder): Rename.
6961 (expr_builder::release): Rename.
6962 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
6963 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
6964 (write_exp_elt_longcst, write_exp_elt_floatcst)
6965 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
6966 (write_exp_string_vector, write_exp_bitstring)
6967 (write_exp_msymbol, mark_struct_expression)
6968 (write_dollar_variable)
6969 (insert_type_address_space, increase_expout_size): Replace
6970 "parser_state" with "expr_builder".
6971 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
6972 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
6973 "parser_state" with "expr_builder".
6974
73923d7e
TT
69752019-04-04 Tom Tromey <tom@tromey.com>
6976
6977 * rust-exp.y: Replace "parse_language" with method call.
6978 * p-exp.y:
6979 (yylex): Replace "parse_language" with method call.
6980 * m2-exp.y:
6981 (yylex): Replace "parse_language" with method call.
6982 * go-exp.y (classify_name): Replace "parse_language" with method
6983 call.
6984 * f-exp.y (yylex): Replace "parse_language" with method call.
6985 * d-exp.y (lex_one_token): Replace "parse_language" with method
6986 call.
6987 * c-exp.y:
6988 (lex_one_token, classify_name, yylex): Replace "parse_language"
6989 with method call.
6990 * ada-exp.y (find_primitive_type, type_char)
6991 (type_system_address): Replace "parse_language" with method call.
6992
fa9f5be6
TT
69932019-04-04 Tom Tromey <tom@tromey.com>
6994
6995 * rust-exp.y: Replace "parse_gdbarch" with method call.
6996 * parse.c (write_dollar_variable, insert_type_address_space):
6997 Replace "parse_gdbarch" with method call.
6998 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
6999 call.
7000 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7001 call.
7002 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7003 "parse_gdbarch" with method call.
7004 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7005 with method call.
7006 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7007 "parse_gdbarch" with method call.
7008 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7009 "parse_gdbarch" with method call.
7010 * c-exp.y (parse_type, parse_number, classify_name): Replace
7011 "parse_gdbarch" with method call.
7012 * ada-lex.l: Replace "parse_gdbarch" with method call.
7013 * ada-exp.y (parse_type, find_primitive_type, type_char)
7014 (type_system_address): Replace "parse_gdbarch" with method call.
7015
1201a264
TT
70162019-04-04 Tom Tromey <tom@tromey.com>
7017
7018 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7019 * stap-probe.c (stap_parse_argument): Update.
7020 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7021 initial_size parameter.
7022 * rust-exp.y (rust_lex_tests): Update.
7023 * parse.c (parser_state): Update.
7024 (parse_exp_in_context): Update.
7025 * parser-defs.h (struct parser_state) <parser_state>: Remove
7026 "initial_size" parameter.
7027
e3980ce2
TT
70282019-04-04 Tom Tromey <tom@tromey.com>
7029
7030 * parser-defs.h (increase_expout_size): Don't declare.
7031 * parse.c (increase_expout_size): Now static.
7032
e9f8e3f1
TS
70332019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7034
7035 * gnu-nat.c (gnu_nat_target::wait): Fix
7036 target_waitstatus_to_string call.
7037
d7df6549
AB
70382019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7039
7040 * eval.c (evaluate_subexp_standard): Handle internal functions
7041 during Fortran function call handling.
7042
8bdc1658
AB
70432019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * NEWS: Mention new internal functions.
7046 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7047 (read_base_type): Use dwarf2_init_complex_target_type.
7048 * value.c (creal_internal_fn): New function.
7049 (cimag_internal_fn): New function.
7050 (_initialize_values): Register new internal functions.
7051
c29705b7
PW
70522019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7053
7054 * infrun.c (stop_all_threads): If debug_infrun, always
7055 trace the wait status after wait_one, using
7056 target_waitstatus_to_string and target_pid_to_str.
7057 (handle_inferior_event): Replace various trace of
7058 wait status kind by a single trace.
7059 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7060 wait status kind image by target_waitstatus_to_string.
7061 * target/waitstatus.c (target_waitstatus_to_string): Fix
7062 obsolete comment.
7063
05caa1d2
TT
70642019-04-01 Tom Tromey <tromey@adacore.com>
7065
7066 PR symtab/23331:
7067 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7068
9d1447e0
SDJ
70692019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7070 Pedro Alves <palves@redhat.com>
7071
7072 * top.c (quit_force): Call 'finalize_values'.
7073 * value.c (finalize_values): New function.
7074 * value.h (finalize_values): Declare.
7075
7734102d
EZ
70762019-03-30 Eli Zaretskii <eliz@gnu.org>
7077
7078 * NEWS: Announce $_gdb_major and $_gdb_minor.
7079
7080 * top.c (init_gdb_version_vars): New function.
7081 (gdb_init): Call init_gdb_version_vars.
7082
188e1fa9
TT
70832019-03-29 Tom Tromey <tromey@adacore.com>
7084
7085 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7086 help text. Remove dead code.
7087
2880242d
KS
70882019-03-29 Keith Seitz <keiths@redhat.com>
7089
7090 From Siddhesh Poyarekar:
7091 * f-lang.h (f77_get_upperbound): Return LONGEST.
7092 (f77_get_lowerbound): Likewise.
7093 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7094 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7095 print them.
7096 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7097 plongest to format print it.
7098 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7099 (f77_get_upperbound): Likewise.
7100 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7101 LOWER_BOUND to LONGEST.
7102 (f77_create_arrayprint_offset_tbl): Likewise.
7103
cc1defb1
KS
71042019-03-29 Keith Seitz <keiths@redhat.com>
7105
7106 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7107 %s/pulongest for TYPE_LENGTH instead of %d in format
7108 strings.
7109 * ada-typerint.c (ada_print_type): Likewise.
7110 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7111 * compile/compile-c-support.c (generate_register_struct): Likewise.
7112 * gdbtypes.c (recursive_dump_type): Likewise.
7113 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7114 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7115 instead of %d in format strings.
7116 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7117 to std::min to ULONGEST.
7118 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7119 instead of %d in format strings.
7120 * tracepoint.c (info_scope_command): Likewise.
7121 * typeprint.c (print_offset_data::update)
7122 (print_offset_data::finish): Likewise.
7123 * xtensa-tdep.c (xtensa_store_return_value)
7124 (xtensa_push_dummy_call): Likewise.
7125
e432ccf1
JT
71262019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7127
7128 * windows-nat.c (display_selector): Fixed format specifications
7129 for 64-bit Cygwin.
7130
65d2b333
PW
71312019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7132
7133 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7134
f489207e
SL
71352019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7136
7137 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7138 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7139 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7140 (nios2_linux_init_abi): Install it.
7141
bffa1015
AH
71422019-03-28 Alan Hayward <alan.hayward@arm.com>
7143
7144 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7145
fc96163a
AH
71462019-03-28 Alan Hayward <alan.hayward@arm.com>
7147
7148 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7149
20dc7e9b
PW
71502019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7151 Tom Tromey <tromey@adacore.com>
7152
7153 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7154
7f5331a8
JB
71552019-03-26 Joel Brobecker <brobecker@adacore.com>
7156
7157 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7158 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7159 method to compute the bounds of range types. Also print "[evaluated]"
7160 if the bounds' values come from a dynamic evaluation.
7161
18c77628
AB
71622019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7163
7164 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7165 whitespace when pretty printing is on.
7166
53c973f2
AH
71672019-03-26 Alan Hayward <alan.hayward@arm.com>
7168
e79be6e5 7169 * ppc-linux-nat.c: Add include.
53c973f2 7170
d851aa71
AH
71712019-03-26 Alan Hayward <alan.hayward@arm.com>
7172
e79be6e5 7173 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7174
2fe7bab7
AH
71752019-03-26 Alan Hayward <alan.hayward@arm.com>
7176
e79be6e5 7177 * arm-linux-nat.c: Add include.
2fe7bab7 7178
068ef30e
SM
71792019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7180
7181 * source-cache.c (source_cache::get_source_lines): Re-read
7182 fullname after calling open_source_file.
7183
81a24d04
JB
71842019-03-25 John Baldwin <jhb@FreeBSD.org>
7185
7186 * NEWS: Mention TLS support for FreeBSD.
7187
79e7ae11
TT
71882019-03-25 Tom Tromey <tromey@adacore.com>
7189
7190 * minsyms.c (BUNCH_SIZE): Update comment.
7191 (~minimal_symbol_reader): Remove old comment.
7192 (compact_minimal_symbols): Update comment.
7193 (minimal_symbol_reader::install): Remove old comment. Update
7194 other comments.
7195
d45963c2
AH
71962019-03-25 Alan Hayward <alan.hayward@arm.com>
7197
7198 * s390-linux-nat.c: Add include.
7199
0f83012e
AH
72002019-03-25 Alan Hayward <alan.hayward@arm.com>
7201
7202 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
7203 Call linux_get_hwcap.
7204 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7205 Likewise.
7206 (aarch64_linux_get_hwcap): Remove function.
7207 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
7208 declaration.
7209 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
7210 linux_get_hwcap.
7211 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
7212 * linux-tdep.c (linux_get_hwcap): Add function.
7213 (linux_get_hwcap2): Likewise.
7214 * linux-tdep.h (linux_get_hwcap): Add declaration.
7215 (linux_get_hwcap2): Likewise.
7216 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
7217 (ppc_linux_get_hwcap2): Likewise.
7218 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
7219 linux_get_hwcap.
7220 (ppc_linux_nat_target::insert_watchpoint): Likewise.
7221 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
7222 (ppc_linux_nat_target::read_description): Likewise.
7223 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
7224 * s390-linux-nat.c: Likewise.
7225 * s390-linux-tdep.c (s390_core_read_description): Likewise.
7226
6640a367
TT
72272019-03-24 Tom Tromey <tom@tromey.com>
7228
7229 * ada-lang.c (standard_lookup): Simplify initialization.
7230 (ada_lookup_symbol_nonlocal): Simplify return.
7231 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
7232 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
7233 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
7234 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
7235 initialization.
7236 * solib.c (solib_global_lookup): Simplify.
7237 * symtab.c (null_block_symbol): Remove.
7238 (symbol_cache_lookup): Simplify returns.
7239 (lookup_language_this): Simplify returns.
7240 (lookup_symbol_aux): Simplify return.
7241 (lookup_local_symbol): Simplify returns.
7242 (lookup_global_symbol_from_objfile): Simplify return.
7243 (lookup_symbol_in_objfile_symtabs)
7244 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
7245 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
7246 (lookup_static_symbol, lookup_global_symbol): Simplify return.
7247 * cp-namespace.c (cp_lookup_bare_symbol)
7248 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
7249 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
7250 (cp_lookup_nested_symbol): Don't use null_block_symbol.
7251 (cp_lookup_symbol_via_imports): Simplify initialization.
7252 (find_symbol_in_baseclass): Likewise.
7253 * symtab.h (null_block_symbol): Remove.
7254 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
7255 (d_lookup_nested_symbol, d_lookup_symbol_imports)
7256 (d_lookup_symbol_module): Likewise.
7257 (find_symbol_in_baseclass): Simplify initialization.
7258
a930ebcd
TT
72592019-03-24 Tom Tromey <tom@tromey.com>
7260
7261 * expression.h: Don't include symtab.h.
7262 (struct block): Forward declare.
7263
582942f4
TT
72642019-03-24 Tom Tromey <tom@tromey.com>
7265
7266 * c-exp.y (typebase): Remove casts.
7267 * gdbtypes.c (lookup_unsigned_typename, )
7268 (lookup_signed_typename): Remove cast.
7269 * eval.c (parse_to_comma_and_eval): Remove cast.
7270 * parse.c (write_dollar_variable): Remove cast.
7271 * block.h (struct block) <superblock>: Now const.
7272 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
7273 * psymtab.c (psym_map_matching_symbols): Make "block" const.
7274 (map_block): Make "block" const.
7275 * symfile.h (struct quick_symbol_functions)
7276 <map_matching_symbols>: Constify block argument to "callback".
7277 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
7278 const.
7279 (find_pc_sect_compunit_symtab): Make "b" const.
7280 (find_symbol_at_address): Likewise.
7281 (search_symbols): Likewise.
7282 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
7283 (dw2_debug_names_lookup_symbol): Likewise.
7284 (dw2_map_matching_symbols): Update.
7285 * p-valprint.c (pascal_val_print): Remove "block".
7286 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
7287 (aux_add_nonlocal_symbols): Make "block" const.
7288 (resolve_subexp): Remove cast.
7289 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
7290 const.
7291 (iterate_over_file_blocks): Likewise.
7292 * f-exp.y (%union) <bval>: Remove.
7293 * coffread.c (patch_opaque_types): Make "b" const.
7294 * spu-tdep.c (spu_catch_start): Make "block" const.
7295 * c-valprint.c (print_unpacked_pointer): Remove "block".
7296 * symmisc.c (dump_symtab_1): Make "b" const.
7297 (block_depth): Make "block" const.
7298 * d-exp.y (%union) <bval>: Remove.
7299 * cp-support.h (cp_lookup_rtti_type): Update.
7300 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
7301 * psymtab.c (psym_lookup_symbol): Make "block" const.
7302 (maintenance_check_psymtabs): Make "b" const.
7303 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
7304 (enumerate_locals, enumerate_args): Update.
7305 * python/py-symtab.c (stpy_global_block): Make "block" const.
7306 (stpy_static_block): Likewise.
7307 * inline-frame.c (block_starting_point_at): Make "new_block"
7308 const.
7309 * block.c (find_block_in_blockvector): Make return type const.
7310 (blockvector_for_pc_sect): Make "b" const.
7311 (find_block_in_blockvector): Make "b" const.
7312
7ad417dd
TT
73132019-03-23 Tom Tromey <tom@tromey.com>
7314
7315 * varobj.c (varobj_create): Update.
7316 * symfile.c (clear_symtab_users): Don't reset innermost_block.
7317 * printcmd.c (display_command, do_one_display): Don't reset
7318 innermost_block.
7319 * parser-defs.h (enum innermost_block_tracker_type): Move to
7320 expression.h.
7321 (innermost_block): Update comment.
7322 * parse.c (parse_exp_1): Add tracker_types parameter.
7323 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
7324 tracker_types parameter. Reset innermost_block.
7325 (parse_exp_in_context): Remove.
7326 (parse_expression_for_completion): Update.
7327 * objfiles.c (~objfile): Don't reset expression_context_block or
7328 innermost_block.
7329 * expression.h (enum innermost_block_tracker_type): Move from
7330 parser-defs.h.
7331 (parse_exp_1): Add tracker_types parameter.
7332 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
7333 reset innermost_block.
7334
b366c208
TT
73352019-03-23 Tom Tromey <tom@tromey.com>
7336
7337 * objfiles.h: Include bcache.h.
7338
9bb9b2f9
TT
73392019-03-23 Tom Tromey <tom@tromey.com>
7340
7341 * linespec.c (get_current_search_block): Use
7342 scoped_restore_current_language.
7343 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
7344
59c28372
AH
73452019-03-22 Alan Hayward <alan.hayward@arm.com>
7346 Jiong Wang <jiong.wang@arm.com>
7347
7348 * aarch64-linux-tdep.c
7349 (aarch64_linux_iterate_over_regset_sections): Check for pauth
7350 section.
7351 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
7352
17e116a7
AH
73532019-03-22 Alan Hayward <alan.hayward@arm.com>
7354 Jiong Wang <jiong.wang@arm.com>
7355
7356 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
7357 instructions.
7358 (aarch64_analyze_prologue_test): Add PACIASP test.
7359 (aarch64_prologue_prev_register): Unmask PC value.
7360
11e1b75f
AH
73612019-03-22 Alan Hayward <alan.hayward@arm.com>
7362 Jiong Wang <jiong.wang@arm.com>
7363
7364 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
7365 (aarch64_dwarf2_prev_register): Unmask PC value.
7366 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
7367 (aarch64_execute_dwarf_cfa_vendor_op): Check for
7368 DW_CFA_AARCH64_negate_ra_state.
7369 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
7370
34dcc7cf
AH
73712019-03-22 Alan Hayward <alan.hayward@arm.com>
7372 Jiong Wang <jiong.wang@arm.com>
7373
7374 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
7375 registers.
7376 (aarch64_pseudo_register_name): Likewise.
7377 (aarch64_pseudo_register_type): Likewise.
7378 (aarch64_pseudo_register_reggroup_p): Likewise.
7379 (aarch64_gdbarch_init): Add pauth registers.
7380 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
7381 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
7382 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
7383 (struct gdbarch_tdep): Add regnum for ra_state.
7384
1ef53e6b
AH
73852019-03-22 Alan Hayward <alan.hayward@arm.com>
7386 Jiong Wang <jiong.wang@arm.com>
7387
7388 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
7389
76bed0fd
AH
73902019-03-22 Alan Hayward <alan.hayward@arm.com>
7391 Jiong Wang <jiong.wang@arm.com>
7392
7393 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
7394 function.
7395 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
7396 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
7397 (aarch64_gdbarch_init): Add puth registers.
7398 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
7399 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
7400 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
7401
ee4fbcfa
AH
74022019-03-22 Alan Hayward <alan.hayward@arm.com>
7403 Jiong Wang <jiong.wang@arm.com>
7404
7405 * aarch64-linux-nat.c
7406 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
7407 * aarch64-linux-tdep.c
7408 (aarch64_linux_core_read_description): Likewise.
7409 (aarch64_linux_get_hwcap): New function.
7410 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
7411 (aarch64_linux_get_hwcap): New declaration.
7412
6dc0ebde
AH
74132019-03-22 Alan Hayward <alan.hayward@arm.com>
7414 Jiong Wang <jiong.wang@arm.com>
7415
7416 * aarch64-linux-nat.c
7417 (aarch64_linux_nat_target::read_description): Add pauth param.
7418 * aarch64-linux-tdep.c
7419 (aarch64_linux_core_read_description): Likewise.
7420 * aarch64-tdep.c (struct target_desc): Add in pauth.
7421 (aarch64_read_description): Add pauth param.
7422 (aarch64_gdbarch_init): Likewise.
7423 * aarch64-tdep.h (aarch64_read_description): Likewise.
7424 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7425 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7426 * features/Makefile: Add new files.
7427 * features/aarch64-pauth.c: New file.
7428 * features/aarch64-pauth.xml: New file.
7429
595915c1
TT
74302019-03-20 Tom Tromey <tromey@adacore.com>
7431
7432 * infrun.c (handle_inferior_event): Rename from
7433 handle_inferior_event_1. Create a scoped_value_mark.
7434 (handle_inferior_event): Remove.
7435
4c7d57e7
TT
74362019-03-19 Tom Tromey <tromey@adacore.com>
7437
7438 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
7439 * infrun.h (print_stop_event): Add "displays" parameter.
7440 * infrun.c (print_stop_event): Add "displays" parameter.
7441
cb246234
PA
74422019-03-19 Pedro Alves <palves@redhat.com>
7443
7444 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
7445 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
7446 to -1. Fix TABs vs spaces.
7447 (tui_ui_out::tui_ui_out): Don't initialize fields here.
7448 * tui/tui-out.h (tui_ui_out) Add intro comments.
7449 <m_line, m_start_of_line>: In-class initialize, and add describing
7450 comment.
7451
3a0e45b2
AH
74522019-03-18 Alan Hayward <alan.hayward@arm.com>
7453
7454 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
7455 variable names.
7456 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
7457
5371b850
PA
74582019-03-18 Pedro Alves <palves@redhat.com>
7459 Eli Zaretskii <eliz@gnu.org>
7460
7461 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
7462 m_line and m_start_of_line.
7463
b17c4cd0
EZ
74642019-03-18 Eli Zaretskii <eliz@gnu.org>
7465
7466 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
7467 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
7468 it returns a newline. This fixes a regression in TU mode, whereby
7469 the next line is output on the same screen line as the user input.
7470
4bd56d18
TT
74712019-03-18 Tom Tromey <tromey@adacore.com>
7472
7473 * minsyms.c (minimal_symbol_reader::install): Remove call to
7474 obstack_blank.
7475
55c10aca
PA
74762019-03-18 Pedro Alves <palves@redhat.com>
7477
7478 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
7479 New globals.
7480 (apply_style): New, factored out from ...
7481 (apply_ansi_escape): ... this. Handle reverse video mode.
7482 (tui_set_reverse_mode): New function.
7483 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
7484 * tui/tui-winsource.c (tui_show_source_line): Use
7485 tui_set_reverse_mode instead of setting A_STANDOUT.
7486 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
7487 New setter methods.
7488
647bb750
HD
74892019-03-18 Hannes Domani <ssbssa@yahoo.de>
7490
7491 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
7492 Handle tabs.
7493
bff8c71f
TT
74942019-03-18 Tom Tromey <tromey@adacore.com>
7495
7496 * ada-lang.c (empty_array): Add "high" parameter.
7497 (ada_evaluate_subexp): Update.
7498
58785d98
ST
74992019-03-17 Sergei Trofimovich <siarheit@google.com>
7500
7501 * unittests/string_view-selftests.c: Define
7502 _initialize_string_view_selftests unconditionally.
7503
d4cbef22
ВМ
75042019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7505
7506 PR gdb/24350
7507 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
7508
fce4c071
ВМ
75092019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
7510
7511 PR gdb/24351
7512 * windows-nat.c (display_selector): Fix format specifiers.
7513
f7f0a123
EZ
75142019-03-17 Eli Zaretskii <eliz@gnu.org>
7515
7516 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
7517 tui_refill_source_window instead of tui_refresh_win, to update the
7518 current execution line. This fixes redisplay of the current line
7519 when stepping through the code with "next" or "step".
7520
ab42892f
EZ
75212019-03-16 Eli Zaretskii <eliz@gnu.org>
7522
7523 * source-cache.c (source_cache::get_source_lines): Call
7524 find_source_lines to initialize s->nlines. This fixes vertical
7525 scrolling of TUI source window when the DOWN arrow is pressed.
7526
8d8c087f
PW
75272019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7528
7529 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
7530 linux-thread-db.c (_initialize_thread_db): Likewise.
7531
798e1c30
EZ
75322019-03-16 Eli Zaretskii <eliz@gnu.org>
7533
7534 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
7535 wclrtoeol in tui_show_source_line". This reverts changes made in
7536 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
7537
eefba3da
TT
75382019-03-15 Tom Tromey <tom@tromey.com>
7539
7540 * symtab.h (struct minimal_symbol): Derive from
7541 general_symbol_info.
7542 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
7543 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7544 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7545 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7546 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
7547 (MSYMBOL_SEARCH_NAME): Update.
7548 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
7549 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
7550 * minsyms.c (minimal_symbol_reader::record_full): Update.
7551
0de2420c
TT
75522019-03-15 Tom Tromey <tom@tromey.com>
7553
7554 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
7555
042d75e4
TT
75562019-03-15 Tom Tromey <tom@tromey.com>
7557
7558 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
7559 unique_xmalloc_ptr.
7560 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
7561 Update.
7562 * minsyms.c (lookup_minimal_symbol_by_pc_section)
7563 (build_minimal_symbol_hash_tables)
7564 (minimal_symbol_reader::install): Update.
7565
db92718b
TT
75662019-03-15 Tom Tromey <tom@tromey.com>
7567
7568 * symtab.c (create_demangled_names_hash): Update.
7569 (symbol_set_names): Update.
7570 * objfiles.h (struct objfile_per_bfd_storage)
7571 <demangled_names_hash>: Now an htab_up.
7572 * objfiles.c (objfile_per_bfd_storage): Simplify.
7573
d6797f46
TT
75742019-03-15 Tom Tromey <tom@tromey.com>
7575
7576 * objfiles.h (struct objfile_per_bfd_storage): Declare
7577 destructor.
7578 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
7579 New.
7580 (get_objfile_bfd_data): Use new. Don't initialize
7581 language_of_main.
7582 (free_objfile_per_bfd_storage): Remove.
7583 (objfile_bfd_data_free, objfile::~objfile): Use delete.
7584
741d7538
TT
75852019-03-15 Tom Tromey <tom@tromey.com>
7586
7587 * symfile.c (reread_symbols): Update.
7588 * objfiles.c (objfile::objfile): Update.
7589 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
7590 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
7591 comment.
7592 (minimal_symbol_reader::install): Update.
7593 (terminate_minimal_symbol_table): Remove.
7594 * jit.c (jit_object_close_impl): Update.
7595
788c80d1
TT
75962019-03-15 Tom Tromey <tom@tromey.com>
7597
7598 * minsyms.c (minimal_symbol_reader::record_full): Remove some
7599 initializations.
7600
1b7a07cb
TT
76012019-03-15 Tom Tromey <tom@tromey.com>
7602
7603 * objfiles.h (struct objfile_per_bfd_storage)
7604 <demangled_hash_languages>: Now a bitset.
7605 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
7606 (lookup_minimal_symbol): Update.
7607
3db066bc
TT
76082019-03-15 Tom Tromey <tom@tromey.com>
7609
7610 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
7611 Don't return the symbol.
7612 * coffread.c (record_minimal_symbol): Use record_full.
7613
3fff2c37
EZ
76142019-03-14 Eli Zaretskii <eliz@gnu.org>
7615
7616 The MS-Windows port of ncurses fails to switch to a color pair if
7617 one or both of the colors are the implicit default colors. This
7618 change records the default colors when TUI is initialized, and
7619 then specifies them explicitly when a color pair uses the default
7620 colors. This allows color styling in TUI mode on MS-Windows.
7621
7622 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
7623 ncurses_norm_attr.
7624 (tui_initialize_io) [__MINGW32__]: Record the default terminal
7625 colors in ncurses_norm_attr.
7626 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
7627 "none", replace it with the default color recorded in
7628 ncurses_norm_attr.
7629
3b336828
TT
76302019-03-14 Tom Tromey <tromey@adacore.com>
7631
7632 * source-cache.h (class source_cache) <get_source_lines>: Return
7633 std::string.
7634 * source-cache.c (source_cache::extract_lines): Handle case where
7635 first_pos==npos. Return std::string.
7636 (source_cache::get_source_lines): Update.
7637
d085f989
TT
76382019-03-14 Tom Tromey <tromey@adacore.com>
7639
7640 * NEWS: Add item for "style sources" commands.
7641 * source-cache.c (source_cache::get_source_lines): Check
7642 source_styling.
7643 * cli/cli-style.c (source_styling): New global.
7644 (_initialize_cli_style): Add "style sources" commands.
7645 (show_style_sources): New function.
7646 * cli/cli-style.h (source_styling): Declare.
7647
6f11e682
TT
76482019-03-14 Pedro Alves <palves@redhat.com>
7649 Tom Tromey <tromey@adacore.com>
7650
7651 * tui/tui-winsource.h (tui_refill_source_window): Declare.
7652 * tui/tui-winsource.c (tui_refill_source_window): New function,
7653 from...
7654 (tui_horizontal_source_scroll): ... here. Move some logic.
7655 * cli/cli-style.c (set_style_enabled): Notify new observable.
7656 * tui/tui-hooks.c (tui_redisplay_source): New function.
7657 (tui_attach_detach_observers): Attach or detach
7658 tui_redisplay_source.
7659 * observable.h (source_styling_changed): New observable.
7660 * observable.c: Define source_styling_changed observable.
7661
a068643d
TT
76622019-03-13 Tom Tromey <tromey@adacore.com>
7663
7664 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
7665 (i386_gnu_nat_target::store_registers): Update.
7666 * target-debug.h (target_debug_print_std_string): New macro.
7667 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7668 * windows-tdep.c (display_one_tib): Update.
7669 * tui/tui-stack.c (tui_make_status_line): Update.
7670 * top.c (print_inferior_quit_action): Update.
7671 * thread.c (thr_try_catch_cmd): Update.
7672 (add_thread_with_info): Update.
7673 (thread_target_id_str): Update.
7674 (thr_try_catch_cmd): Update.
7675 (thread_command): Update.
7676 (thread_find_command): Update.
7677 * record-btrace.c (record_btrace_target::info_record)
7678 (record_btrace_resume_thread, record_btrace_target::resume)
7679 (record_btrace_cancel_resume, record_btrace_step_thread)
7680 (record_btrace_target::wait, record_btrace_target::wait)
7681 (record_btrace_target::wait, record_btrace_target::stop): Update.
7682 * progspace.c (print_program_space): Update.
7683 * process-stratum-target.c
7684 (process_stratum_target::thread_address_space): Update.
7685 * linux-fork.c (linux_fork_mourn_inferior)
7686 (detach_checkpoint_command, info_checkpoints_command)
7687 (linux_fork_context): Update.
7688 (linux_fork_detach): Update.
7689 (class scoped_switch_fork_info): Update.
7690 (delete_checkpoint_command): Update.
7691 * infrun.c (follow_fork_inferior): Update.
7692 (follow_fork_inferior): Update.
7693 (proceed_after_vfork_done): Update.
7694 (handle_vfork_child_exec_or_exit): Update.
7695 (follow_exec): Update.
7696 (displaced_step_prepare_throw): Update.
7697 (displaced_step_restore): Update.
7698 (start_step_over): Update.
7699 (resume_1): Update.
7700 (clear_proceed_status_thread): Update.
7701 (proceed): Update.
7702 (print_target_wait_results): Update.
7703 (do_target_wait): Update.
7704 (context_switch): Update.
7705 (stop_all_threads): Update.
7706 (restart_threads): Update.
7707 (finish_step_over): Update.
7708 (handle_signal_stop): Update.
7709 (switch_back_to_stepped_thread): Update.
7710 (keep_going_pass_signal): Update.
7711 (print_exited_reason): Update.
7712 (normal_stop): Update.
7713 * inferior.c (inferior_pid_to_str): Change return type.
7714 (print_selected_inferior): Update.
7715 (add_inferior): Update.
7716 (detach_inferior): Update.
7717 * dummy-frame.c (fprint_dummy_frames): Update.
7718 * dcache.c (dcache_info_1): Update.
7719 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
7720 (btrace_fetch, btrace_clear): Update.
7721 * linux-tdep.c (linux_core_pid_to_str): Change return type.
7722 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
7723 type.
7724 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
7725 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
7726 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
7727 * gdbarch.c, gdbarch.h: Rebuild.
7728 * gdbarch.sh (core_pid_to_str): Change return type.
7729 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
7730 return type.
7731 (windows_nat_target::pid_to_str): Change return type.
7732 (windows_delete_thread): Update.
7733 (windows_nat_target::attach): Update.
7734 (windows_nat_target::files_info): Update.
7735 * target-delegates.c: Rebuild.
7736 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
7737 return type.
7738 (sol_thread_target::pid_to_str): Change return type.
7739 * remote.c (class remote_target) <pid_to_str>: Change return
7740 type.
7741 (remote_target::pid_to_str): Change return type.
7742 (extended_remote_target::attach, remote_target::remote_stop_ns)
7743 (remote_target::remote_notif_remove_queued_reply)
7744 (remote_target::push_stop_reply, remote_target::disable_btrace):
7745 Update.
7746 (extended_remote_target::attach): Update.
7747 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
7748 type.
7749 (gdbsim_target::pid_to_str): Change return type.
7750 * ravenscar-thread.c (struct ravenscar_thread_target)
7751 <pid_to_str>: Change return type.
7752 (ravenscar_thread_target::pid_to_str): Change return type.
7753 * procfs.c (class procfs_target) <pid_to_str>: Change return
7754 type.
7755 (procfs_target::pid_to_str): Change return type.
7756 (procfs_target::attach): Update.
7757 (procfs_target::detach): Update.
7758 (procfs_target::fetch_registers): Update.
7759 (procfs_target::store_registers): Update.
7760 (procfs_target::wait): Update.
7761 (procfs_target::files_info): Update.
7762 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
7763 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
7764 return type.
7765 (nto_procfs_target::pid_to_str): Change return type.
7766 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
7767 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
7768 return type.
7769 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
7770 (exit_lwp): Update.
7771 (attach_proc_task_lwp_callback, get_detach_signal)
7772 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
7773 (linux_nat_target::resume, wait_lwp, stop_callback)
7774 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
7775 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
7776 (linux_nat_wait_1, resume_stopped_resumed_lwps)
7777 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
7778 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
7779 type.
7780 (inf_ptrace_target::attach): Update.
7781 (inf_ptrace_target::files_info): Update.
7782 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
7783 type.
7784 (go32_nat_target::pid_to_str): Change return type.
7785 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
7786 (gnu_nat_target::wait): Update.
7787 (gnu_nat_target::wait): Update.
7788 (gnu_nat_target::resume): Update.
7789 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
7790 (fbsd_nat_target::wait): Update.
7791 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
7792 type.
7793 (darwin_nat_target::attach): Update.
7794 * corelow.c (class core_target) <pid_to_str>: Change return type.
7795 (core_target::pid_to_str): Change return type.
7796 * target.c (normal_pid_to_str): Change return type.
7797 (default_pid_to_str): Likewise.
7798 (target_pid_to_str): Change return type.
7799 (target_translate_tls_address): Update.
7800 (target_announce_detach): Update.
7801 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
7802 return type.
7803 (bsd_uthread_target::pid_to_str): Change return type.
7804 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
7805 type.
7806 (bsd_kvm_target::pid_to_str): Change return type.
7807 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
7808 return type.
7809 (aix_thread_target::pid_to_str): Change return type.
7810 * target.h (struct target_ops) <pid_to_str>: Change return type.
7811 (target_pid_to_str, normal_pid_to_str): Likewise.
7812 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
7813 type.
7814 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
7815 type.
7816 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
7817 return type.
7818 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
7819 type.
7820 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
7821 type.
7822 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
7823 return type.
7824
b4be1b06
SM
78252019-03-13 Simon Marchi <simon.marchi@ericsson.com>
7826
7827 * NEWS: Mention that the new default MI version is 3. Mention
7828 changes to the output of commands and events that deal with
7829 multi-location breakpoints.
7830 * breakpoint.c: Include "mi/mi-out.h".
7831 (print_one_breakpoint): Change output syntax if using MI version
7832 >= 3.
7833 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
7834 New.
7835 (mi_multi_location_breakpoint_output_fixed): New.
7836 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
7837 (mi_cmd_fix_multi_location_breakpoint_output): New.
7838 (mi_multi_location_breakpoint_output_fixed): New.
7839 * mi/mi-cmds.c (mi_cmds): Register command
7840 -fix-multi-location-breakpoint-output.
7841 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
7842 interpreter "mi".
7843
8e5e5494
SM
78442019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7845
7846 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
7847 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
7848 instantiate mi_ui_out based on interpreter name.
7849 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
7850 * mi/mi-main.c (mi_load_progress): Likewise.
7851
197df35e
JB
78522019-03-12 John Baldwin <jhb@FreeBSD.org>
7853
7854 * NEWS: Combine separate "New targets" sections for 8.3.
7855
8399425f
JB
78562019-03-12 John Baldwin <jhb@FreeBSD.org>
7857
7858 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
7859 (ppcfbsd_init_abi): Install gdbarch
7860 "fetch_tls_load_module_address" and "get_thread_local_address"
7861 methods.
7862
b0f87ed0
JB
78632019-03-12 John Baldwin <jhb@FreeBSD.org>
7864
7865 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
7866 (riscv_fbsd_init_abi): Install gdbarch
7867 "fetch_tls_load_module_address" and "get_thread_local_address"
7868 methods.
7869
ce25aa57
JB
78702019-03-12 John Baldwin <jhb@FreeBSD.org>
7871
7872 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
7873 (i386fbsd_init_abi): Install gdbarch
7874 "fetch_tls_load_module_address" and "get_thread_local_address"
7875 methods.
7876
f5424cfa
JB
78772019-03-12 John Baldwin <jhb@FreeBSD.org>
7878
7879 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
7880 (amd64fbsd_init_abi): Install gdbarch
7881 "fetch_tls_load_module_address" and "get_thread_local_address"
7882 methods.
7883
945f3901
JB
78842019-03-12 John Baldwin <jhb@FreeBSD.org>
7885
7886 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
7887 (struct fbsd_pspace_data): New type.
7888 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
7889 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
7890 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
7891 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
7892 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
7893
ef0bd204
JB
78942019-03-12 John Baldwin <jhb@FreeBSD.org>
7895
7896 * gdbtypes.c (lookup_struct_elt): New function.
7897 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
7898 * gdbtypes.h (struct struct_elt): New type.
7899 (lookup_struct_elt): New prototype.
7900
36c53a02
JB
79012019-03-12 John Baldwin <jhb@FreeBSD.org>
7902
7903 * gdbtypes.c (lookup_struct_elt_type): Update comment and
7904 remove disabled code block.
7905
6e056c81
JB
79062019-03-12 John Baldwin <jhb@FreeBSD.org>
7907
7908 * gdbarch.sh (get_thread_local_address): New method.
7909 * gdbarch.h, gdbarch.c: Regenerate.
7910 * target.c (target_translate_tls_address): Use
7911 gdbarch_get_thread_local_address if present instead of
7912 target::get_thread_local_address.
7913
cd250a18
JB
79142019-03-12 John Baldwin <jhb@FreeBSD.org>
7915
7916 * target.h (target::get_thread_local_address): Update comment.
7917
df22c1e5
JB
79182019-03-12 John Baldwin <jhb@FreeBSD.org>
7919
7920 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
7921 objfile->separate_debug_objfile_backlink if not NULL.
7922
dd6876c9
JB
79232019-03-12 John Baldwin <jhb@FreeBSD.org>
7924
7925 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7926 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
7927 (amd64bsd_store_inferior_registers): Likewise.
7928 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7929 Enable segment base registers.
7930 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
7931 PT_GETFSBASE and PT_GETGSBASE.
7932 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
7933 PT_SETGSBASE.
7934 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
7935 segment base registers.
7936 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7937
1163a4b7
JB
79382019-03-12 John Baldwin <jhb@FreeBSD.org>
7939
7940 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
7941 Update calls to i386_target_description to add 'segments'
7942 parameter.
7943 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
7944 add segment base registers.
7945 * arch/i386.c (i386_create_target_description): Add 'segments'
7946 parameter to enable segment base registers.
7947 * arch/i386.h (i386_create_target_description): Likewise.
7948 * features/i386/32bit-segments.xml: New file.
7949 * features/i386/32bit-segments.c: Generate.
7950 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
7951 call to i386_target_description to add 'segments' parameter.
7952 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
7953 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
7954 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
7955 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
7956 if feature is present.
7957 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
7958 Add 'segments' parameter to call to i386_target_description.
7959 (i386_target_description): Add 'segments' parameter to enable
7960 segment base registers.
7961 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
7962 to call to i386_target_description.
7963 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
7964 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
7965 Define I386_NUM_REGS.
7966 (i386_target_description): Add 'segments' parameter to enable
7967 segment base registers.
7968
3a350822
EZ
79692019-03-12 Eli Zaretskii <eliz@gnu.org>
7970
7971 PR/24325
7972 * source-cache.c: #undef open and close, to avoid unresolved
7973 externals during linking.
7974
ffdd69cf
TT
79752019-03-12 Tom Tromey <tromey@adacore.com>
7976
7977 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
7978 const. Add initializers.
7979 (_initialize_remote): Don't initialize ptid globals.
7980
ec148c57
PA
79812019-03-12 Pedro Alves <palves@redhat.com>
7982
7983 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
7984
32764270
PA
79852019-03-12 Pedro Alves <palves@redhat.com>
7986
7987 * cp-name-parser.y (main): Remove unused 'len' variable.
7988
17547186
TT
79892019-03-12 Tom Tromey <tromey@adacore.com>
7990
7991 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
7992 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
7993
d3a70e03
TT
79942019-03-12 Tom Tromey <tromey@adacore.com>
7995
7996 * linux-nat.c (iterate_over_lwps): Update.
7997 (stop_callback): Remove parameter.
7998 (stop_wait_callback, detach_callback, resume_set_callback)
7999 (select_singlestep_lwp_callback, set_ignore_sigint)
8000 (status_callback, resumed_callback, resume_clear_callback)
8001 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8002 data parameter.
8003 (linux_nat_target::detach, linux_nat_target::resume)
8004 (linux_stop_and_wait_all_lwps, select_event_lwp)
8005 (linux_nat_filter_event, linux_nat_wait_1)
8006 (linux_nat_target::kill, linux_nat_target::stop)
8007 (linux_nat_target::stop): Update.
8008 (linux_nat_resume_callback): Change type.
8009 (resume_stopped_resumed_lwps, count_events_callback)
8010 (select_event_lwp_callback): Likewise.
8011 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8012 * arm-linux-nat.c (struct update_registers_data): Remove.
8013 (update_registers_callback): Change type.
8014 (arm_linux_insert_hw_breakpoint1): Update.
8015 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8016 parameter.
8017 (x86_linux_dr_set_addr): Update.
8018 (x86_linux_dr_set_control): Update.
8019 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8020 (iterate_over_lwps): Use gdb::function_view.
8021 * nat/aarch64-linux-hw-point.c (struct
8022 aarch64_dr_update_callback_param): Remove.
8023 (debug_reg_change_callback): Change type.
8024 (aarch64_notify_debug_reg_change): Update.
8025 * s390-linux-nat.c (s390_refresh_per_info): Update.
8026
82cb27ff
TT
80272019-03-11 Tom Tromey <tromey@adacore.com>
8028
8029 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8030 redundant assignment to "this_cu".
8031
568c0683
SM
80322019-03-08 Simon Marchi <simon.marchi@efficios.com>
8033
8034 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8035
f09ce22d
SM
80362019-03-08 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8039 from...
8040 (rank_one_type): ... this.
8041
595f96a9
SM
80422019-03-08 Simon Marchi <simon.marchi@efficios.com>
8043
8044 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8045 from...
8046 (rank_one_type): ... this.
8047
2598a94b
SM
80482019-03-08 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8051 from...
8052 (rank_one_type): ... this.
8053
7f17b20d
SM
80542019-03-08 Simon Marchi <simon.marchi@efficios.com>
8055
8056 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8057 from...
8058 (rank_one_type): ... this.
8059
2c509035
SM
80602019-03-08 Simon Marchi <simon.marchi@efficios.com>
8061
8062 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8063 from...
8064 (rank_one_type): ... this.
8065
0dd322dc
SM
80662019-03-08 Simon Marchi <simon.marchi@efficios.com>
8067
8068 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8069 from...
8070 (rank_one_type): ... this.
8071
41ea4728
SM
80722019-03-08 Simon Marchi <simon.marchi@efficios.com>
8073
8074 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8075 from...
8076 (rank_one_type): ... this.
8077
793cd1d2
SM
80782019-03-08 Simon Marchi <simon.marchi@efficios.com>
8079
8080 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8081 from...
8082 (rank_one_type): ... this.
8083
34910087
SM
80842019-03-08 Simon Marchi <simon.marchi@efficios.com>
8085
8086 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8087 from...
8088 (rank_one_type): ... this.
8089
f1f832d6
SM
80902019-03-08 Simon Marchi <simon.marchi@efficios.com>
8091
8092 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8093 from...
8094 (rank_one_type): ... this.
8095
b9f4512f
SM
80962019-03-08 Simon Marchi <simon.marchi@efficios.com>
8097
8098 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8099 from...
8100 (rank_one_type): ... this.
8101
9293fc63
SM
81022019-03-08 Simon Marchi <simon.marchi@efficios.com>
8103
8104 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8105 from...
8106 (rank_one_type): ... this.
8107
e3abbe7e
PW
81082019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8109
8110 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8111 inferior-events' shows the example events.
8112
e4adb939
EZ
81132019-03-08 Eli Zaretskii <eliz@gnu.org>
8114
8115 Support styling on native MS-Windows console
8116
8117 PR/24315
8118 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8119 on MS-Windows if $TERM is not defined.
8120
8121 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8122
8123 * posix-hdep.c (gdb_console_fputs):
8124 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8125 functions.
8126 * ui-file.h (gdb_console_fputs): Add prototype.
8127
8128 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8129 back to fputs only if the former returns zero.
8130
25629dfd
TT
81312019-03-07 Tom Tromey <tom@tromey.com>
8132
8133 * symmisc.c (print_symbol_bcache_statistics): Update.
8134 (print_objfile_statistics): Update.
8135 * symfile.c (allocate_symtab): Update.
8136 * stabsread.c: Don't include bcache.h.
8137 * psymtab.h (struct psymbol_bcache): Don't declare.
8138 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8139 (psymbol_bcache_init, psymbol_bcache_free)
8140 (psymbol_bcache_get_bcache): Don't declare.
8141 * psymtab.c (struct psymbol_bcache): Remove.
8142 (psymtab_storage::psymtab_storage): Update.
8143 (psymtab_storage::~psymtab_storage): Update.
8144 (psymbol_bcache_init, psymbol_bcache_free)
8145 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8146 (add_psymbol_to_bcache): Update.
8147 (allocate_psymtab): Update.
8148 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8149 macro_cache>: No longer pointers.
8150 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8151 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8152 * macrotab.c (macro_bcache): Update.
8153 * macroexp.c: Don't include bcache.h.
8154 * gdbtypes.c (check_types_worklist): Update.
8155 (types_deeply_equal): Remove TRY/CATCH. Update.
8156 * elfread.c (elf_symtab_read): Update.
8157 * dwarf2read.c: Don't include bcache.h.
8158 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8159 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8160 (print_bcache_statistics, bcache_memory_used): Don't declare.
8161 (struct bcache): Move from bcache.c. Add constructor, destructor,
8162 methods. Rename all data members.
8163 * bcache.c (struct bcache): Move to bcache.h.
8164 (bcache::expand_hash_table): Rename from expand_hash_table.
8165 (bcache): Remove.
8166 (bcache::insert): Rename from bcache_full.
8167 (bcache::compare): Rename from bcache_compare.
8168 (bcache_xmalloc): Remove.
8169 (bcache::~bcache): Rename from bcache_xfree.
8170 (bcache::print_statistics): Rename from print_bcache_statistics.
8171 (bcache::memory_used): Rename from bcache_memory_used.
8172
fe726667
PA
81732019-03-07 Pedro Alves <palves@redhat.com>
8174
8175 * infrun.c (normal_stop): Also check for
8176 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8177
7584bb30
AB
81782019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8179
8180 * f-lang.c (value_from_host_double): Moved to...
8181 * value.c (value_from_host_double): ...here.
8182 * value.h (value_from_host_double): Declare.
8183 * guile/scm-math.c (vlscm_convert_typed_number): Use
8184 value_from_host_double.
8185 (vlscm_convert_number): Likewise.
8186 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
8187 * python/py-value.c (convert_value_from_python): Likewise.
8188
a7b1986e
TT
81892019-03-06 Tom Tromey <tom@tromey.com>
8190
8191 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
8192
0ccf4211
TT
81932019-03-06 Tom Tromey <tom@tromey.com>
8194
8195 * utils.h (free_current_contents): Don't declare.
8196 * utils.c (free_current_contents): Remove.
8197
fe7b42e5
TT
81982019-03-06 Tom Tromey <tom@tromey.com>
8199
8200 * top.c (quit_force): Update.
8201 * main.c (captured_command_loop): Update.
8202 * common/new-op.c (operator new): Update.
8203 * common/common-exceptions.c (struct catcher)
8204 <save_cleanup_chain>: Remove member.
8205 (exceptions_state_mc_init): Update.
8206 (exception_try_scope_entry): Return nullptr.
8207 (exception_try_scope_exit, exception_rethrow)
8208 (throw_exception_sjlj, throw_exception_cxx): Update.
8209 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
8210 (all_cleanups, do_cleanups, discard_cleanups)
8211 (discard_final_cleanups, save_cleanups, save_final_cleanups)
8212 (restore_cleanups, restore_final_cleanups): Don't declare.
8213 (do_final_cleanups): Remove parameter.
8214 * common/cleanups.c (cleanup_chain, make_cleanup)
8215 (make_cleanup_dtor, all_cleanups, do_cleanups)
8216 (discard_my_cleanups, discard_cleanups)
8217 (discard_final_cleanups, save_my_cleanups, save_cleanups)
8218 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
8219 (null_cleanup): Remove.
8220 (do_final_cleanups): Remove parameter.
8221
c6321f19
TT
82222019-03-06 Tom Tromey <tom@tromey.com>
8223
8224 * remote.c (remote_target::remote_parse_stop_reply): Use
8225 unique_xmalloc_ptr.
8226
61b30099
TT
82272019-03-06 Tom Tromey <tom@tromey.com>
8228
8229 * stabsread.c (struct stabs_field_info): Rename from field_info.
8230 <list, fnlist>: Add initializers.
8231 <obstack>: New member.
8232 (read_member_functions, read_struct_fields, read_baseclasses):
8233 Allocate on obstack. Don't use cleanups.
8234 (read_one_struct_field, read_member_functions, read_struct_fields)
8235 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
8236 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
8237 (read_struct_type): Update.
8238
6cceac94
TT
82392019-03-06 Tom Tromey <tom@tromey.com>
8240
8241 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
8242 * common/filestuff.h (make_cleanup_close): Don't declare.
8243 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
8244 Remove.
8245
72412762
TT
82462019-03-06 Tom Tromey <tom@tromey.com>
8247
8248 * solib-aix.c: Use make_scope_exit.
8249
2b6ff1c0
TT
82502019-03-06 Tom Tromey <tom@tromey.com>
8251
8252 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
8253 Use make_scope_exit.
8254
d01c5877
TT
82552019-03-06 Tom Tromey <tom@tromey.com>
8256
8257 * solib-svr4.c (disable_probes_interface): Remove parameter.
8258 (svr4_handle_solib_event): Use make_scope_exit.
8259
32603266
TT
82602019-03-06 Tom Tromey <tom@tromey.com>
8261
8262 * remote.c (struct stop_reply_deleter): Remove.
8263 (stop_reply_up): Update.
8264 (struct stop_reply): Derive from notif_event. Don't typedef.
8265 <regcache>: Now a std::vector.
8266 (stop_reply_xfree): Remove.
8267 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
8268 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
8269 (remote_target::discard_pending_stop_replies): Use delete.
8270 (remote_target::remote_parse_stop_reply): Update.
8271 (remote_target::process_stop_reply): Update.
8272 * remote-notif.h (struct notif_event): Add virtual destructor.
8273 Remove "dtr" member.
8274 (struct notif_client) <alloc_event>: Return a unique_ptr.
8275 (notif_event_xfree): Don't declare.
8276 (notif_event_up): New typedef.
8277 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
8278 (notif_event_xfree, do_notif_event_xfree): Remove.
8279 (remote_notif_state_xfree): Update.
8280
9799571e
TT
82812019-03-06 Tom Tromey <tom@tromey.com>
8282
8283 * infrun.c (displaced_step_clear_cleanup): Now a
8284 forward_scope_exit type.
8285 (displaced_step_prepare_throw): Update.
8286 (displaced_step_fixup): Update.
8287
09e3c4ca
TT
82882019-03-06 Tom Tromey <tom@tromey.com>
8289
8290 * inferior.h (class inferior): Update comment.
8291 * gdbthread.h (class thread_info): Update comment.
8292
e2a03548
TT
82932019-03-06 Joel Brobecker <brobecker@adacore.com>
8294 Tom Tromey <tom@tromey.com>
8295
8296 * stabsread.h (struct stab_section_list): Remove.
8297 (coffstab_build_psymtabs): Update.
8298 * dbxread.c (symbuf_sections): Now a std::vector.
8299 (sect_idx): New global.
8300 (fill_symbuf): Update.
8301 (coffstab_build_psymtabs): Change type of stabsects parameter.
8302 Update.
8303 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
8304 std::vector.
8305 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
8306 (coff_locate_sections): Update.
8307 (coff_symfile_read): Remove cleanups. Update.
8308 (init_stringtab): Add storage parameter.
8309 (free_stringtab, free_stringtab_cleanup): Remove.
8310 (init_lineno): Add storage parameter.
8311 (free_linetab, free_linetab_cleanup): Remove.
8312
b7e60d85
PA
83132019-03-06 Pedro Alves <palves@redhat.com>
8314
8315 * linux-fork.c (fork_info::clobber_regs): Delete.
8316 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
8317 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
8318 comment. Adjust.
8319 (scoped_switch_fork_info::scoped_switch_fork_info)
8320 (checkpoint_command, linux_fork_context): Adjust
8321 fork_save_infrun_state calls.
8322
e52c971f
PA
83232019-03-06 Pedro Alves <palves@redhat.com>
8324
8325 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
8326 (inf_has_multiple_threads): Return 'bool' and rewrite using
8327 inferior_info::threads().
8328
06974e6c
PA
83292019-03-06 Pedro Alves <palves@redhat.com>
8330
8331 * linux-fork.c: Include <list>.
8332 (fork_list): Now a std::list instance.
8333 (fork_info): Add ctor, dtor, and in-class initialize all fields.
8334 (forks_exist_p, find_last_fork): Adjust.
8335 (new_fork): Delete.
8336 (one_fork_p): New.
8337 (add_fork): Adjust.
8338 (free_fork): Delete, folded into fork_info::~fork_info().
8339 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
8340 Adjust.
8341 (init_fork_list): Delete.
8342 (linux_fork_killall, linux_fork_mourn_inferior)
8343 (linux_fork_detach, info_checkpoints_command): Adjust.
8344 (_initialize_linux_fork): No longer call init_fork_list.
8345
72f31aea
PA
83462019-03-06 Pedro Alves <palves@redhat.com>
8347
8348 * linux-fork.c (new_fork): New, split out of ...
8349 (add_fork): ... this. Return void. Move "first fork" special
8350 case from here, to ...
8351 (checkpoint_command): ... here.
8352 * linux-linux.h (add_fork): Return void.
8353
efbecbc1
AB
83542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8355
8356 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
8357
0841c79a
AB
83582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8359 Chris January <chris.january@arm.com>
8360 David Lecomber <david.lecomber@arm.com>
8361
8362 * f-exp.y: New token, UNOP_INTRINSIC.
8363 (exp): New pattern using UNOP_INTRINSIC token.
8364 (f77_keywords): Add 'abs' keyword.
8365 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
8366 (value_from_host_double): New function.
8367 (evaluate_subexp_f): Support UNOP_ABS.
8368
4a270568
AB
83692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8370
8371 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
8372 types.
8373
067630bd
AB
83742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8375
8376 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
8377 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
8378 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
8379
3be47f7a
AB
83802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8381
8382 * f-exp.y (convert_to_kind_type): Handle more type kinds.
8383
4d00f5d8
AB
83842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8385 Chris January <chris.january@arm.com>
8386
8387 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
8388 * f-exp.y: Define 'KIND' token.
8389 (exp): New pattern for KIND expressions.
8390 (ptype): Handle types with a kind extension.
8391 (direct_abs_decl): Extend to spot kind extensions.
8392 (f77_keywords): Add 'kind' to the list.
8393 (push_kind_type): New function.
8394 (convert_to_kind_type): New function.
8395 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
8396 * parse.c (operator_length_standard): Likewise.
8397 * parser-defs.h (enum type_pieces): Add tp_kind.
8398 * std-operator.def: Add UNOP_KIND.
8399
e454224f
AB
84002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8401
8402 * f-exp.y (f_parse): Set yydebug.
8403
9dad4a58
AB
84042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8405
8406 * f-lang.c (evaluate_subexp_f): New function.
8407 (exp_descriptor_f): New global.
8408 (f_language_defn): Use exp_descriptor_f instead of
8409 exp_descriptor_standard.
8410
c8f91604
AB
84112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8412
8413 * f-exp.y (struct token): Add comments.
8414 (dot_ops): Remove uppercase versions and the end marker.
8415 (f77_keywords): Likewise.
8416 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
8417 entries in the dot_ops array are case insensitive, and use
8418 strncasecmp to compare strings. Also some whitespace cleanup in
8419 this area. Similar for the f77_keywords array, except entries in
8420 this list might be case sensitive.
8421
dd9f2c76
AB
84222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8423
8424 * f-exp.y (struct f77_boolean_val): Add comments.
8425 (boolean_values): Remove uppercase versions, and end marker.
8426 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
8427 and use strncasecmp to achieve case insensitivity. Additionally,
8428 perform whitespace cleanup around this code.
8429
67a3048c
TT
84302019-03-06 Tom Tromey <tromey@adacore.com>
8431
8432 * remote-sim.c (gdbsim_target_open): Use result of
8433 gdb_argv::release.
8434
aa3cfbda
RB
84352019-03-06 Richard Bunt <richard.bunt@arm.com>
8436 Dirk Schubert <dirk.schubert@arm.com>
8437 Chris January <chris.january@arm.com>
8438
8439 * eval.c (evaluate_subexp_standard): Call Fortran argument
8440 wrapping logic.
8441 * f-lang.c (struct value): A value which can be passed into a
8442 Fortran function call.
8443 (fortran_argument_convert): Wrap Fortran arguments in a pointer
8444 where appropriate.
8445 (struct type): Value ready for a Fortran function call.
8446 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
8447 is needed.
8448 * f-lang.h (fortran_argument_convert): Declaration.
8449 (fortran_preserve_arg_pointer): Declaration.
8450 * infcall.c (value_arg_coerce): Call Fortran argument logic.
8451
ea38e5df
TT
84522019-03-05 Tom Tromey <tromey@adacore.com>
8453
8454 * python/py-prettyprint.c (print_string_repr): Remove #if.
8455 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
8456
06b5b831
TT
84572019-03-05 Tom Tromey <tromey@adacore.com>
8458
8459 * target.c (the_dummy_target): Move later. Change type to
8460 "dummy_target".
8461 (initialize_targets): Don't initialize the_dummy_target.
8462
edbd9e45
TT
84632019-03-05 Tom Tromey <tromey@adacore.com>
8464
8465 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
8466 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
8467
c119e040
TT
84682019-03-05 Tom Tromey <tromey@adacore.com>
8469
8470 * windows-nat.c (windows_nat_target::attach)
8471 (windows_nat_target::detach): Don't call gdb_flush.
8472 * valprint.c (generic_val_print, val_print, val_print_string):
8473 Don't call gdb_flush.
8474 * utils.c (defaulted_query): Don't call gdb_flush.
8475 * typeprint.c (print_type_scalar): Don't call gdb_flush.
8476 * target.c (target_announce_detach): Don't call gdb_flush.
8477 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
8478 * remote.c (extended_remote_target::attach): Don't call
8479 gdb_flush.
8480 * procfs.c (procfs_target::detach): Don't call gdb_flush.
8481 * printcmd.c (do_examine): Don't call gdb_flush.
8482 (info_display_command): Don't call gdb_flush.
8483 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
8484 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
8485 * memattr.c (info_mem_command): Don't call gdb_flush.
8486 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
8487 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
8488 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
8489 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
8490 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
8491 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
8492 (gnu_nat_target::detach): Don't call gdb_flush.
8493 * f-valprint.c (f_val_print): Don't call gdb_flush.
8494 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
8495 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
8496 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
8497 gdb_flush.
8498 * c-valprint.c (c_val_print): Don't call gdb_flush.
8499 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
8500
895dafa6
TT
85012019-03-05 Tom Tromey <tromey@adacore.com>
8502
8503 * varobj.c (update_dynamic_varobj_children): Update.
8504 (install_default_visualizer): Use reset, not release.
8505 * value.c (set_internalvar): Update.
8506 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
8507 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
8508 ATTRIBUTE_UNUSED_RESULT.
8509
88a774b9
TT
85102019-03-05 Tom Tromey <tromey@adacore.com>
8511
8512 * remote.c (class scoped_remote_fd) <release>: Add
8513 ATTRIBUTE_UNUSED_RESULT.
8514
4e4a8b93
TT
85152019-03-05 Tom Tromey <tromey@adacore.com>
8516
8517 * macroexp.c (struct macro_buffer) <release>: Add
8518 ATTRIBUTE_UNUSED_RESULT.
8519
083eef1f
TT
85202019-03-05 Tom Tromey <tromey@adacore.com>
8521
8522 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
8523 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
8524 ATTRIBUTE_UNUSED_RESULT.
8525
3cabd438
TT
85262019-03-05 Tom Tromey <tromey@adacore.com>
8527
8528 * common/scoped_fd.h (class scoped_fd) <release>: Add
8529 ATTRIBUTE_UNUSED_RESULT.
8530
41e3300a
TT
85312019-03-05 Tom Tromey <tromey@adacore.com>
8532
8533 * parser-defs.h (struct parser_state) <release>: Add
8534 ATTRIBUTE_UNUSED_RESULT.
8535
18cb7c9f
TT
85362019-03-05 Tom Tromey <tromey@adacore.com>
8537
8538 * utils.h (class gdb_argv) <release>: Add
8539 ATTRIBUTE_UNUSED_RESULT.
8540 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
8541
41fa577f
EZ
85422019-03-02 Eli Zaretskii <eliz@gnu.org>
8543
a6a4b2c6
EZ
8544 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
8545 for-loop range, to avoid compiler warnings.
8546
8547 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
8548 avoid compiler warnings about unused variables.
8549
742a7df5
EZ
8550 * NEWS: Mention end of support for native debugging on MS-Windows
8551 before XP.
8552
41fa577f
EZ
8553 PR gdb/24292
8554 * common/netstuff.c:
8555 * gdbserver/gdbreplay.c
8556 * gdbserver/remote-utils.c:
8557 * ser-tcp.c:
8558 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
8559 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
8560 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
8561 'getaddrinfo' and 'freeaddrinfo' were not available before
8562 Windows XP, and mingw.org's MinGW headers by default define
8563 _WIN32_WINNT to 0x500.
8564
827f438f
GB
85652019-03-01 Gary Benson <gbenson@redhat.com>
8566
8567 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
8568
92137da0
RO
85692019-02-28 Brian Vandenberg <phantall@gmail.com>
8570 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8571
8572 PR gdb/8527
8573 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
8574 set_sigint_trap, clear_sigint_trap.
8575
799efbe8
PW
85762019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8577
8578 * target.c (target_detach): Clear the regcache and the
8579 frame cache.
8580
8ed25214
PA
85812019-02-27 Pedro Alves <palves@redhat.com>
8582
8583 * utils.c (set_screen_size): When we cap the height/width sizes,
8584 tweak the corresponding command variable to show "unlimited":
8585
23031e31
SJ
85862019-02-27 Saagar Jha <saagar@saagarjha.com>
8587 Pedro Alves <palves@redhat.com>
8588
8589 * utils.c (set_screen_size): Reduce "infinite" rows and columns
8590 before calling rl_set_screen_size.
8591
6c28e44a
TT
85922019-02-27 Tom Tromey <tromey@adacore.com>
8593
8594 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
8595 define.
8596 * python/py-value.c: Remove Python 2.4 workaround.
8597 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
8598 workaround.
8599 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
8600 Python 2.4 workaround.
8601 * python/python-internal.h: Remove Python 2.4 comment.
8602 (Py_ssize_t): Don't define.
8603 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
8604 (gdb_Py_DECREF): Remove Python 2.4 workaround.
8605 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
8606 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
8607 * python/python.c (do_start_initialization): Remove Python 2.4
8608 workaround.
8609 * python/py-prettyprint.c (class dummy_python_frame): Remove.
8610 (print_children): Remove Python 2.4 workaround.
8611 * python/py-inferior.c (buffer_procs): Remove Python 2.4
8612 workaround.
8613 (CHARBUFFERPROC_NAME): Remove.
8614 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
8615 Python 2.4 workaround.
8616
2c3fc25d 86172019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 8618
2c3fc25d
KB
8619 * NEWS: Note minimum Python version.
8620
6ca62222
KB
86212019-02-27 Kevin Buettner <kevinb@redhat.com>
8622
8623 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
8624 code from these functions. Remove corresponding ifdefs. Use
8625 Py_buffer_up instead of explicit calls to PyBuffer_Release.
8626 Remove gotos and target of gotos.
8627 (infpy_search_memory): Likewise.
8628
f4bc7d2c
AB
86292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8630
8631 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
8632 (hppa_gdbarch_init): Don't register deleted functions with
8633 gdbarch.
8634
9734a586
AB
86352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8636
8637 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
8638 (h8300_unwind_sp): Delete.
8639 (h8300_dummy_id): Delete.
8640 (h8300_gdbarch_init): Don't register deleted functions with
8641 gdbarch.
8642
68b867f3
AB
86432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
8646 (ft32_unwind_pc): Delete.
8647 (ft32_unwind_sp): Delete.
8648 (ft32_gdbarch_init): Don't register deleted functions with
8649 gdbarch.
8650
2fbe7ad0
AB
86512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8652
8653 * gdb/frv-tdep.c (frv_dummy_id): Delete.
8654 (frv_unwind_pc): Delete.
8655 (frv_unwind_sp): Delete.
8656 (frv_gdbarch_init): Don't register deleted functions with
8657 gdbarch.
8658
76055cbe
AB
86592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8660
8661 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
8662 (riscv_unwind_pc): Delete.
8663 (riscv_unwind_sp): Delete.
8664 (riscv_gdbarch_init): Don't register deleted functions with
8665 gdbarch.
8666
4133e5a1
AB
86672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8668
8669 * gdb/csky-tdep.c (csky_dummy_id): Delete.
8670 (csky_unwind_pc): Delete.
8671 (csky_unwind_sp): Delete.
8672 (csky_gdbarch_init): Don't register deleted functions with
8673 gdbarch.
8674
8010f576
AB
86752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8676
8677 * gdb/cris-tdep.c (cris_dummy_id): Delete.
8678 (cris_unwind_pc): Delete.
8679 (cris_unwind_sp): Delete.
8680 (cris_gdbarch_init): Don't register deleted functions with
8681 gdbarch.
8682
b56bf084
AB
86832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8684
8685 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
8686 (bfin_unwind_pc): Delete.
8687 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
8688
a19a650f
AB
86892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8690
8691 * gdb/arm-tdep.c (arm_dummy_id): Delete.
8692 (arm_unwind_pc): Delete.
8693 (arm_unwind_sp): Delete.
8694 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
8695
f8278c3c
AB
86962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8697
8698 * gdb/arc-tdep.c (arc_dummy_id): Delete.
8699 (arc_unwind_pc): Delete.
8700 (arc_unwind_sp): Delete.
8701 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
8702
480e46cf
AB
87032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8704
8705 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
8706 (alpha_unwind_pc): Delete.
8707 (alpha_gdbarch_init): Don't register deleted functions with
8708 gdbarch.
8709
7a995095
AB
87102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8711
8712 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
8713 (aarch64_unwind_pc): Delete.
8714 (aarch64_unwind_sp): Delete.
8715 (aarch64_gdbarch_init): Don't register deleted functions with
8716 gdbarch.
8717
bf9a735e
AB
87182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8719
8720 * gdbtypes.c (type_align): Don't consider static members when
8721 computing structure alignment.
8722
5561fc30
AB
87232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8724
8725 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
8726 return 0 for other types.
8727 * arch-utils.c (default_type_align): Always return 0.
8728 * gdbarch.h: Regenerate.
8729 * gdbarch.sh (type_align): Extend comment.
8730 * gdbtypes.c (type_align): Add additional comments, always call
8731 gdbarch_type_align before applying the default rules.
8732 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
8733 generic code will then apply a suitable default.
8734 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
8735 types, return 0 for other types.
8736
9335e75a
JB
87372019-02-27 Joel Brobecker <brobecker@adacore.com>
8738
8739 * NEWS: Create a new section for the next release branch.
8740 Rename the section of the current branch, now that it has
8741 been cut.
8742
3d34d8de
JB
87432019-02-27 Joel Brobecker <brobecker@adacore.com>
8744
8745 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
8746 * version.in: Bump version to 8.3.50.DATE-git.
8747
143420fb
SM
87482019-02-26 Simon Marchi <simon.marchi@efficios.com>
8749
8750 * aix-thread.c (ptid_cmp): Remove unused variable.
8751 (get_signaled_thread): Likewise.
8752 (store_regs_user_thread): Likewise.
8753 (store_regs_kernel_thread): Likewise.
8754 (fetch_regs_kernel_thread): Remove shadowed variable.
8755
172fb711
AB
87562019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
8757
8758 * features/riscv/32bit-cpu.xml: Add register numbers.
8759 * features/riscv/32bit-fpu.c: Regenerate.
8760 * features/riscv/32bit-fpu.xml: Add register numbers.
8761 * features/riscv/64bit-cpu.xml: Add register numbers.
8762 * features/riscv/64bit-fpu.c: Regenerate.
8763 * features/riscv/64bit-fpu.xml: Add register numbers.
8764
26c89782
KB
87652019-02-26 Kevin Buettner <kevinb@redhat.com>
8766
af54ade9 8767 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
8768 * python/py-value.c (convert_buffer_and_type_to_value): New
8769 function.
8770 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
8771 Add support for handling an optional second argument. Call
8772 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
8773 * python/python-internal.h (Py_buffer_deleter): New struct.
8774 (Py_buffer_up): New typedef.
8775
0f58c9e8
JB
87762019-02-25 John Baldwin <jhb@FreeBSD.org>
8777
8778 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
8779 instead of releasing ownership.
8780
0a0f4c01
JR
87812019-02-25 Jordan Rupprecht <rupprecht@google.com>
8782
8783 * dwarf2read.c (open_and_init_dwp_file): Call
8784 elf_numsections instead of bfd_count_sections to initialize
8785 dwp_file->num_sections.
8786
cd5a152c
TT
87872019-02-25 Tom Tromey <tromey@adacore.com>
8788
8789 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
8790
8a6a8513
SDJ
87912019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
8792
8793 * gcore.in: Add '--readnever' option when invoking GDB.
8794
04dcda9c
SM
87952019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8796
8797 * MAINTAINERS: Update my email address.
8798
07bc701d
SM
87992019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
8800
8801 * build-id.c (build_id_to_debug_bfd_1): New function.
8802 (build_id_to_debug_bfd): Look for separate debug file in
8803 sysroot.
8804
c6f4a5d0
AB
88052019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
8806
8807 * gdbarch.sh: Update the copyright year range that is placed into
8808 generated files.
8809
9600246d
KS
88102019-02-22 Keith Seitz <keiths@redhat.com>
8811
8812 PR symtab/23853
8813 * linespec.c (create_sals_line_offset): Search for the default
8814 symtab's filename instead of its fullname.
8815
7557a514
AH
88162019-02-21 Alan Hayward <alan.hayward@arm.com>
8817
8818 * NEWS: Update style defaults.
8819
ee2bcb0c
AH
88202019-02-21 Alan Hayward <alan.hayward@arm.com>
8821
8822 * main.c (captured_main_1): Disable styling in batch mode.
8823
0c95f9ed
TT
88242019-02-20 Tom Tromey <tom@tromey.com>
8825
8826 * symtab.c (symtab_symbol_info): Fix typos.
8827
c763b894
TT
88282019-02-20 Tom Tromey <tromey@adacore.com>
8829
8830 * findcmd.c (_initialize_mem_search): Use upper case for
8831 metasyntactic variables.
8832
0ef8a082
AH
88332019-02-20 Alan Hayward <alan.hayward@arm.com>
8834
8835 * aarch64-tdep.c (aarch64_add_reggroups): New function.
8836 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
8837
6caa91b6
SM
88382019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
8839
8840 * top.h (source_file_name): Change to std::string.
8841 * top.c (source_file_name): Likewise.
8842 (command_line_input): Adjust.
8843 * cli/cli-script.c (script_from_file): Adjust.
8844
98814c6c
TT
88452019-02-19 Tom Tromey <tromey@adacore.com>
8846
8847 * ravenscar-thread.c
8848 (ravenscar_thread_target::update_thread_list): Don't call
8849 ada_build_task_list.
8850 * ada-lang.h (ada_build_task_list): Don't declare.
8851 * ada-tasks.c (struct ada_tasks_inferior_data)
8852 <task_list_valid_p>: Now bool.
8853 (read_known_tasks, ada_task_list_changed)
8854 (ada_tasks_invalidate_inferior_data): Update.
8855 (read_known_tasks_array): Return bool.
8856 (read_known_tasks_list): Likewise.
8857 (read_known_tasks): Return void.
8858 (ada_build_task_list): Now static.
8859
70cd633e
AB
88602019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
8861
8862 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
8863 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
8864
040b3e95
PW
88652019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8866
8867 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
8868 variant for ada_tasks_pspace_data_handle and
8869 ada_tasks_inferior_data_handle.
8870 (ada_tasks_pspace_data_cleanup): New function.
8871 (ada_tasks_inferior_data_cleanup): New function.
8872
9409233b
TT
88732019-02-17 Tom Tromey <tom@tromey.com>
8874
8875 * macrotab.h (macro_source_fullname): Return a std::string.
8876 * macrotab.c (macro_include, check_for_redefinition)
8877 (macro_undef, macro_lookup_definition, foreach_macro)
8878 (foreach_macro_in_scope): Update.
8879 (macro_source_fullname): Return a std::string.
8880 * macrocmd.c (show_pp_source_pos): Update.
8881
6506371f
TT
88822019-02-17 Tom Tromey <tom@tromey.com>
8883
8884 * macrocmd.c (show_pp_source_pos): Style the file names.
8885
0c820d67
TT
88862019-02-17 Tom Tromey <tom@tromey.com>
8887
8888 PR tui/24197:
8889 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
8890
a0087920
TT
88912019-02-17 Tom Tromey <tom@tromey.com>
8892
8893 * ada-lang.c (user_select_syms): Use filtered printing.
8894 * utils.c (wrap_style): New global.
8895 (desired_style): Remove.
8896 (emit_style_escape): Add stream parameter.
8897 (set_output_style, reset_terminal_style, prompt_for_continue):
8898 Update.
8899 (flush_wrap_buffer): Only flush gdb_stdout.
8900 (wrap_here): Set wrap_style.
8901 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
8902 treat escape sequences as a character. Change when wrap buffer is
8903 flushed.
8904 (fputs_styled): Do not set the output style when the default is
8905 requested.
8906 * ui-style.h (struct ui_file_style) <is_default>: New method.
8907 * source.c (print_source_lines_base): Emit escape sequences in one
8908 piece.
8909
75ba10dc
JB
89102019-02-17 Joel Brobecker <brobecker@adacore.com>
8911
8912 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
8913 integers and enumeration types.
8914
a2cd4f14
JB
89152019-02-17 Joel Brobecker <brobecker@adacore.com>
8916
8917 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
8918 instead of lookup_symbol_in_language
8919 (do_exact_match): New function.
8920 (ada_get_symbol_name_matcher): Return do_exact_match when
8921 doing a verbatim match.
8922
485b851b
TT
89232019-02-15 Tom Tromey <tromey@adacore.com>
8924
8925 * ravenscar-thread.c (ravenscar_thread_target::resume)
8926 (ravenscar_thread_target::wait): Special case wildcard requests.
8927
0b790b1e
TT
89282019-02-15 Tom Tromey <tromey@adacore.com>
8929
8930 * ravenscar-thread.c (base_ptid): Remove.
8931 (struct ravenscar_thread_target) <close>: New method.
8932 <m_base_ptid>: New member.
8933 <update_inferior_ptid, active_task, task_is_currently_active,
8934 runtime_initialized>: Declare methods.
8935 <ravenscar_thread_target>: Add constructor.
8936 (ravenscar_thread_target::task_is_currently_active)
8937 (ravenscar_thread_target::update_inferior_ptid)
8938 (ravenscar_runtime_initialized): Rename. Now methods.
8939 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
8940 (ravenscar_thread_target::update_thread_list): Update.
8941 (ravenscar_thread_target::active_task): Now method.
8942 (ravenscar_thread_target::store_registers)
8943 (ravenscar_thread_target::prepare_to_store)
8944 (ravenscar_thread_target::prepare_to_store)
8945 (ravenscar_thread_target::mourn_inferior): Update.
8946 (ravenscar_inferior_created): Use "new" to create target.
8947 (ravenscar_thread_target::get_ada_task_ptid): Update.
8948 (_initialize_ravenscar): Don't initialize base_ptid.
8949 (ravenscar_ops): Remove global.
8950
dea57a62
TT
89512019-02-15 Tom Tromey <tromey@adacore.com>
8952
8953 * target.h (push_target): Declare new overload.
8954 * target.c (push_target): New overload, taking an rvalue reference.
8955 * remote.c (remote_target::open_1): Use push_target overload.
8956 * corelow.c (core_target_open): Use push_target overload.
8957
989f3c58
TT
89582019-02-15 Tom Tromey <tromey@adacore.com>
8959
8960 * ravenscar-thread.c (is_ravenscar_task)
8961 (ravenscar_task_is_currently_active): Return bool.
8962 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
8963 (_initialize_ravenscar): Remove "(void)".
8964 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
8965 Return bool.
8966
6cbcc006
TT
89672019-02-15 Tom Tromey <tromey@adacore.com>
8968
8969 * ravenscar-thread.c (ravenscar_runtime_initializer)
8970 (has_ravenscar_runtime, get_running_thread_id)
8971 (ravenscar_thread_target::resume): Fix indentation.
8972
7657f14d
TT
89732019-02-15 Tom Tromey <tromey@adacore.com>
8974
8975 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
8976 from ravenscar_arch_ops.
8977 (sparc_ravenscar_ops::fetch_registers)
8978 (sparc_ravenscar_ops::store_registers): Now methods.
8979 (sparc_ravenscar_prepare_to_store): Remove.
8980 (sparc_ravenscar_ops): Redefine.
8981 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
8982 methods and destructor. Remove members.
8983 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
8984 (ravenscar_thread_target::store_registers)
8985 (ravenscar_thread_target::prepare_to_store): Update.
8986 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
8987 Remove.
8988 (struct ppc_ravenscar_powerpc_ops): Derive from
8989 ravenscar_arch_ops.
8990 (ppc_ravenscar_powerpc_ops::fetch_registers)
8991 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
8992 (ppc_ravenscar_powerpc_ops): Redefine.
8993 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
8994 (ppc_ravenscar_e500_ops::fetch_registers)
8995 (ppc_ravenscar_e500_ops::store_registers): Now methods.
8996 (ppc_ravenscar_e500_ops): Redefine.
8997 * aarch64-ravenscar-thread.c
8998 (aarch64_ravenscar_generic_prepare_to_store): Remove.
8999 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9000 (aarch64_ravenscar_fetch_registers)
9001 (aarch64_ravenscar_store_registers): Now methods.
9002 (aarch64_ravenscar_ops): Redefine.
9003
5b6ea500
TT
90042019-02-15 Tom Tromey <tromey@adacore.com>
9005
9006 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9007 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9008 (ravenscar_thread_target::stopped_by_watchpoint)
9009 (ravenscar_thread_target::stopped_data_address)
9010 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9011
e397fd39
TT
90122019-02-15 Tom Tromey <tromey@adacore.com>
9013
9014 * ravenscar-thread.c: Fix some typos.
9015
cc12f4a8
TT
90162019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9017 Tom Tromey <tromey@adacore.com>
9018
9019 * ada-lang.c (ada_exception_sal): Change addr_string to a
9020 std::string.
9021 (create_ada_exception_catchpoint): Update.
9022
5f486660
TT
90232019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9024 Tom Tromey <tromey@adacore.com>
9025
9026 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9027 (bp_location_ops): Remove.
9028 (base_breakpoint_allocate_location): Update.
9029 (free_bp_location): Update.
9030 * ada-lang.c (class ada_catchpoint_location)
9031 <ada_catchpoint_location>: Remove ops parameter.
9032 (ada_catchpoint_location_dtor): Remove.
9033 (ada_catchpoint_location_ops): Remove.
9034 (allocate_location_exception): Update.
9035 * breakpoint.h (struct bp_location_ops): Remove.
9036 (class bp_location) <bp_location>: Remove bp_location_ops
9037 parameter.
9038 <~bp_location>: Add destructor.
9039 <ops>: Remove.
9040
b671c7fb
TS
90412019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9042 Pedro Alves <palves@redhat.com>
9043
9044 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9045 'PATH_MAX'.
9046
8071c5ce
DM
90472019-02-14 David Michael <fedora.dm0@gmail.com>
9048 Samuel Thibault <samuel.thibault@gnu.org>
9049 Thomas Schwinge <thomas@codesourcery.com>
9050
9051 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9052 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9053
b1041ae0
TS
90542019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9055
924514e1
TS
9056 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9057 (check_empty): Use "const char *".
9058
c29ee8d4
TS
9059 * gnu-nat.c (gnu_nat_target::detach): Instead of
9060 'detach_inferior (pid)' call
9061 'detach_inferior (find_inferior_pid (pid))'.
9062
6c6ef69f
TS
9063 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9064 'nat/fork-inferior.o'.
9065 * gnu-nat.c: #include "nat/fork-inferior.h".
9066
2d0a338c
TS
9067 * gnu-nat.c (gnu_nat_target::detach): Instead of
9068 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9069 * gnu-nat.h: #include "inf-child.h".
9070 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9071 'i386_gnu_nat_target::fetch_registers'.
9072 (gnu_store_registers): Rename/move to
9073 'i386_gnu_nat_target::store_registers'.
9074
cabb5f06
TS
9075 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9076 * gnu-nat.h (mach_thread_info): New function.
9077 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9078
b1041ae0
TS
9079 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9080
2988d01e
KF
90812019-02-14 Frederic Konrad <konrad@adacore.com>
9082
9083 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9084
c559d709
JB
90852019-02-14 Joel Brobecker <brobecker@adacore.com>
9086
9087 * windows-nat.c (windows_add_thread): Add new parameter
9088 "main_thread_p" with default value set to false. Update
9089 function documentation as well as all callers.
9090 (windows_delete_thread): Likewise.
9091 (fake_create_process): Update call to windows_add_thread.
9092 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9093 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9094 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9095 call to windows_delete_thread.
9096
007024cc
SM
90972019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9098
9099 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9100
f62318e9
JB
91012019-02-12 John Baldwin <jhb@FreeBSD.org>
9102
9103 * symfile.c (find_separate_debug_file): Use canonical path of
9104 sysroot with child_path instead of gdb_sysroot if it is valid.
9105
cd4b7848
JB
91062019-02-12 John Baldwin <jhb@FreeBSD.org>
9107
9108 * symfile.c (find_separate_debug_file): Use child_path to
9109 determine if an object file is under a sysroot.
9110
efac4bfe
JB
91112019-02-12 John Baldwin <jhb@FreeBSD.org>
9112
9113 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9114 unittests/child-path-selftests.c.
9115 * common/pathstuff.c (child_path): New function.
9116 * common/pathstuff.h (child_path): New prototype.
9117 * unittests/child-path-selftests.c: New file.
9118
402d2bfe
JB
91192019-02-12 John Baldwin <jhb@FreeBSD.org>
9120
9121 * symfile.c (find_separate_debug_file): Look for separate debug
9122 files in debug directories under the sysroot.
9123
1ed9f74e
PW
91242019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9125
9126 * symtab.h (struct minimal_symbol data_p): New const method.
9127 (struct minimal_symbol text_p): Likewise.
9128 * symtab.c (output_source_filename): Use file name style
9129 to print file name.
9130 (print_symbol_info): Likewise.
9131 (print_msymbol_info): Use address style to print addresses.
9132 Use function name style to print executable text symbols.
9133 (expand_symtab_containing_pc): Use data_p.
9134 (find_pc_sect_compunit_symtab): Likewise.
9135
2636d81d
PW
91362019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9137
9138 * breakpoint.c (describe_other_breakpoints): Use address style
9139 to print addresses.
9140 (say_where): Likewise.
9141
ac8c53cc
PW
91422019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9143
9144 * ada-typeprint.c (print_func_type): Print function name
9145 style to print function name.
9146 * c-typeprint.c (c_print_type_1): Likewise.
9147
ea638c43
AH
91482019-02-11 Alan Hayward <alan.hayward@arm.com>
9149
9150 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9151 for execve.
9152
ab759ca8
PW
91532019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9154
9155 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9156 type_stack.
9157
aff29d1c
JB
91582019-02-10 Joel Brobecker <brobecker@adacore.com>
9159
9160 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9161 TYPE_CODE_REF types.
9162
617126bc
JW
91632019-02-08 Jim Wilson <jimw@sifive.com>
9164
9165 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9166 (riscv_linux_fregset): New.
9167 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9168
46e3ed7f
TT
91692019-02-07 Tom Tromey <tom@tromey.com>
9170
9171 * thread.c (thread_cancel_execution_command): Update.
9172 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9173 methods.
9174 (struct thread_fsm_ops): Remove.
9175 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9176 (thread_fsm_should_stop, thread_fsm_return_value)
9177 (thread_fsm_set_finished, thread_fsm_finished_p)
9178 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9179 Don't declare.
9180 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9181 * infrun.c (clear_proceed_status_thread)
9182 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
9183 (print_stop_event): Update.
9184 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
9185 Add constructor.
9186 (step_command_fsm_ops): Remove.
9187 (new_step_command_fsm): Remove.
9188 (step_1): Update.
9189 (step_command_fsm::should_stop): Rename from
9190 step_command_fsm_should_stop.
9191 (step_command_fsm::clean_up): Rename from
9192 step_command_fsm_clean_up.
9193 (step_command_fsm::do_async_reply_reason): Rename from
9194 step_command_fsm_async_reply_reason.
9195 (struct until_next_fsm): Inherit from thread_fsm. Add
9196 constructor.
9197 (until_next_fsm_ops): Remove.
9198 (new_until_next_fsm): Remove.
9199 (until_next_fsm::should_stop): Rename from
9200 until_next_fsm_should_stop.
9201 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
9202 (until_next_fsm::do_async_reply_reason): Rename from
9203 until_next_fsm_async_reply_reason.
9204 (struct finish_command_fsm): Inherit from thread_fsm. Add
9205 constructor. Change type of breakpoint.
9206 (finish_command_fsm_ops): Remove.
9207 (new_finish_command_fsm): Remove.
9208 (finish_command_fsm::should_stop): Rename from
9209 finish_command_fsm_should_stop.
9210 (finish_command_fsm::clean_up): Rename from
9211 finish_command_fsm_clean_up.
9212 (finish_command_fsm::return_value): Rename from
9213 finish_command_fsm_return_value.
9214 (finish_command_fsm::do_async_reply_reason): Rename from
9215 finish_command_fsm_async_reply_reason.
9216 (finish_command): Update.
9217 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
9218 Add constructor.
9219 (call_thread_fsm_ops): Remove.
9220 (call_thread_fsm::call_thread_fsm): Rename from
9221 new_call_thread_fsm.
9222 (call_thread_fsm::should_stop): Rename from
9223 call_thread_fsm_should_stop.
9224 (call_thread_fsm::should_notify_stop): Rename from
9225 call_thread_fsm_should_notify_stop.
9226 (run_inferior_call, call_function_by_hand_dummy): Update.
9227 * cli/cli-interp.c (should_print_stop_to_console): Update.
9228 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
9229 Add constructor. Change type of location_breakpoint,
9230 caller_breakpoint.
9231 (until_break_fsm_ops): Remove.
9232 (new_until_break_fsm): Remove.
9233 (until_break_fsm::should_stop): Rename from
9234 until_break_fsm_should_stop.
9235 (until_break_fsm::clean_up): Rename from
9236 until_break_fsm_clean_up.
9237 (until_break_fsm::do_async_reply_reason): Rename from
9238 until_break_fsm_async_reply_reason.
9239 (until_break_command): Update.
9240 * thread-fsm.c: Remove.
9241 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
9242
1a5c2598
TT
92432019-02-07 Tom Tromey <tom@tromey.com>
9244
9245 * yy-remap.h: Add include guard.
9246 * xtensa-tdep.h: Add include guard.
9247 * xcoffread.h: Rename include guard.
9248 * varobj-iter.h: Add include guard.
9249 * tui/tui.h: Rename include guard.
9250 * tui/tui-winsource.h: Rename include guard.
9251 * tui/tui-wingeneral.h: Rename include guard.
9252 * tui/tui-windata.h: Rename include guard.
9253 * tui/tui-win.h: Rename include guard.
9254 * tui/tui-stack.h: Rename include guard.
9255 * tui/tui-source.h: Rename include guard.
9256 * tui/tui-regs.h: Rename include guard.
9257 * tui/tui-out.h: Rename include guard.
9258 * tui/tui-layout.h: Rename include guard.
9259 * tui/tui-io.h: Rename include guard.
9260 * tui/tui-hooks.h: Rename include guard.
9261 * tui/tui-file.h: Rename include guard.
9262 * tui/tui-disasm.h: Rename include guard.
9263 * tui/tui-data.h: Rename include guard.
9264 * tui/tui-command.h: Rename include guard.
9265 * tic6x-tdep.h: Add include guard.
9266 * target/waitstatus.h: Rename include guard.
9267 * target/wait.h: Rename include guard.
9268 * target/target.h: Rename include guard.
9269 * target/resume.h: Rename include guard.
9270 * target-float.h: Rename include guard.
9271 * stabsread.h: Add include guard.
9272 * rs6000-tdep.h: Add include guard.
9273 * riscv-fbsd-tdep.h: Add include guard.
9274 * regformats/regdef.h: Rename include guard.
9275 * record.h: Rename include guard.
9276 * python/python.h: Rename include guard.
9277 * python/python-internal.h: Rename include guard.
9278 * python/py-stopevent.h: Rename include guard.
9279 * python/py-ref.h: Rename include guard.
9280 * python/py-record.h: Rename include guard.
9281 * python/py-record-full.h: Rename include guard.
9282 * python/py-record-btrace.h: Rename include guard.
9283 * python/py-instruction.h: Rename include guard.
9284 * python/py-events.h: Rename include guard.
9285 * python/py-event.h: Rename include guard.
9286 * procfs.h: Add include guard.
9287 * proc-utils.h: Add include guard.
9288 * p-lang.h: Add include guard.
9289 * or1k-tdep.h: Rename include guard.
9290 * observable.h: Rename include guard.
9291 * nto-tdep.h: Rename include guard.
9292 * nat/x86-linux.h: Rename include guard.
9293 * nat/x86-linux-dregs.h: Rename include guard.
9294 * nat/x86-gcc-cpuid.h: Add include guard.
9295 * nat/x86-dregs.h: Rename include guard.
9296 * nat/x86-cpuid.h: Rename include guard.
9297 * nat/ppc-linux.h: Rename include guard.
9298 * nat/mips-linux-watch.h: Rename include guard.
9299 * nat/linux-waitpid.h: Rename include guard.
9300 * nat/linux-ptrace.h: Rename include guard.
9301 * nat/linux-procfs.h: Rename include guard.
9302 * nat/linux-osdata.h: Rename include guard.
9303 * nat/linux-nat.h: Rename include guard.
9304 * nat/linux-namespaces.h: Rename include guard.
9305 * nat/linux-btrace.h: Rename include guard.
9306 * nat/glibc_thread_db.h: Rename include guard.
9307 * nat/gdb_thread_db.h: Rename include guard.
9308 * nat/gdb_ptrace.h: Rename include guard.
9309 * nat/fork-inferior.h: Rename include guard.
9310 * nat/amd64-linux-siginfo.h: Rename include guard.
9311 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
9312 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
9313 * nat/aarch64-linux.h: Rename include guard.
9314 * nat/aarch64-linux-hw-point.h: Rename include guard.
9315 * mn10300-tdep.h: Add include guard.
9316 * mips-linux-tdep.h: Add include guard.
9317 * mi/mi-parse.h: Rename include guard.
9318 * mi/mi-out.h: Rename include guard.
9319 * mi/mi-main.h: Rename include guard.
9320 * mi/mi-interp.h: Rename include guard.
9321 * mi/mi-getopt.h: Rename include guard.
9322 * mi/mi-console.h: Rename include guard.
9323 * mi/mi-common.h: Rename include guard.
9324 * mi/mi-cmds.h: Rename include guard.
9325 * mi/mi-cmd-break.h: Rename include guard.
9326 * m2-lang.h: Add include guard.
9327 * location.h: Rename include guard.
9328 * linux-record.h: Rename include guard.
9329 * linux-nat.h: Add include guard.
9330 * linux-fork.h: Add include guard.
9331 * i386-darwin-tdep.h: Rename include guard.
9332 * hppa-linux-offsets.h: Add include guard.
9333 * guile/guile.h: Rename include guard.
9334 * guile/guile-internal.h: Rename include guard.
9335 * gnu-nat.h: Rename include guard.
9336 * gdb-stabs.h: Rename include guard.
9337 * frv-tdep.h: Add include guard.
9338 * f-lang.h: Add include guard.
9339 * event-loop.h: Add include guard.
9340 * darwin-nat.h: Rename include guard.
9341 * cp-abi.h: Rename include guard.
9342 * config/sparc/nm-sol2.h: Rename include guard.
9343 * config/nm-nto.h: Rename include guard.
9344 * config/nm-linux.h: Add include guard.
9345 * config/i386/nm-i386gnu.h: Rename include guard.
9346 * config/djgpp/nl_types.h: Rename include guard.
9347 * config/djgpp/langinfo.h: Rename include guard.
9348 * compile/gcc-cp-plugin.h: Add include guard.
9349 * compile/gcc-c-plugin.h: Add include guard.
9350 * compile/compile.h: Rename include guard.
9351 * compile/compile-object-run.h: Rename include guard.
9352 * compile/compile-object-load.h: Rename include guard.
9353 * compile/compile-internal.h: Rename include guard.
9354 * compile/compile-cplus.h: Rename include guard.
9355 * compile/compile-c.h: Rename include guard.
9356 * common/xml-utils.h: Rename include guard.
9357 * common/x86-xstate.h: Rename include guard.
9358 * common/version.h: Rename include guard.
9359 * common/vec.h: Rename include guard.
9360 * common/tdesc.h: Rename include guard.
9361 * common/selftest.h: Rename include guard.
9362 * common/scoped_restore.h: Rename include guard.
9363 * common/scoped_mmap.h: Rename include guard.
9364 * common/scoped_fd.h: Rename include guard.
9365 * common/safe-iterator.h: Rename include guard.
9366 * common/run-time-clock.h: Rename include guard.
9367 * common/refcounted-object.h: Rename include guard.
9368 * common/queue.h: Rename include guard.
9369 * common/ptid.h: Rename include guard.
9370 * common/print-utils.h: Rename include guard.
9371 * common/preprocessor.h: Rename include guard.
9372 * common/pathstuff.h: Rename include guard.
9373 * common/observable.h: Rename include guard.
9374 * common/netstuff.h: Rename include guard.
9375 * common/job-control.h: Rename include guard.
9376 * common/host-defs.h: Rename include guard.
9377 * common/gdb_wait.h: Rename include guard.
9378 * common/gdb_vecs.h: Rename include guard.
9379 * common/gdb_unlinker.h: Rename include guard.
9380 * common/gdb_unique_ptr.h: Rename include guard.
9381 * common/gdb_tilde_expand.h: Rename include guard.
9382 * common/gdb_sys_time.h: Rename include guard.
9383 * common/gdb_string_view.h: Rename include guard.
9384 * common/gdb_splay_tree.h: Rename include guard.
9385 * common/gdb_setjmp.h: Rename include guard.
9386 * common/gdb_ref_ptr.h: Rename include guard.
9387 * common/gdb_optional.h: Rename include guard.
9388 * common/gdb_locale.h: Rename include guard.
9389 * common/gdb_assert.h: Rename include guard.
9390 * common/filtered-iterator.h: Rename include guard.
9391 * common/filestuff.h: Rename include guard.
9392 * common/fileio.h: Rename include guard.
9393 * common/environ.h: Rename include guard.
9394 * common/common-utils.h: Rename include guard.
9395 * common/common-types.h: Rename include guard.
9396 * common/common-regcache.h: Rename include guard.
9397 * common/common-inferior.h: Rename include guard.
9398 * common/common-gdbthread.h: Rename include guard.
9399 * common/common-exceptions.h: Rename include guard.
9400 * common/common-defs.h: Rename include guard.
9401 * common/common-debug.h: Rename include guard.
9402 * common/cleanups.h: Rename include guard.
9403 * common/buffer.h: Rename include guard.
9404 * common/btrace-common.h: Rename include guard.
9405 * common/break-common.h: Rename include guard.
9406 * cli/cli-utils.h: Rename include guard.
9407 * cli/cli-style.h: Rename include guard.
9408 * cli/cli-setshow.h: Rename include guard.
9409 * cli/cli-script.h: Rename include guard.
9410 * cli/cli-interp.h: Rename include guard.
9411 * cli/cli-decode.h: Rename include guard.
9412 * cli/cli-cmds.h: Rename include guard.
9413 * charset-list.h: Add include guard.
9414 * buildsym-legacy.h: Rename include guard.
9415 * bfin-tdep.h: Add include guard.
9416 * ax.h: Rename include guard.
9417 * arm-linux-tdep.h: Add include guard.
9418 * arm-fbsd-tdep.h: Add include guard.
9419 * arch/xtensa.h: Rename include guard.
9420 * arch/tic6x.h: Add include guard.
9421 * arch/i386.h: Add include guard.
9422 * arch/arm.h: Rename include guard.
9423 * arch/arm-linux.h: Rename include guard.
9424 * arch/arm-get-next-pcs.h: Rename include guard.
9425 * arch/amd64.h: Add include guard.
9426 * arch/aarch64-insn.h: Rename include guard.
9427 * arch-utils.h: Rename include guard.
9428 * annotate.h: Add include guard.
9429 * amd64-darwin-tdep.h: Rename include guard.
9430 * aarch64-linux-tdep.h: Add include guard.
9431 * aarch64-fbsd-tdep.h: Add include guard.
9432 * aarch32-linux-nat.h: Add include guard.
9433
ab9268d2
PW
94342019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9435
9436 * macrotab.c (macro_define_internal): New function that
9437 factorizes macro_define_object_internal and macro_define_function
9438 code.
9439 (macro_define_object_internal): Use macro_define_internal.
9440 (macro_define_function): Likewise.
9441
bb0da2b4
PW
94422019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9443
9444 * macrocmd.c (extract_identifier): Return
9445 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
9446 callers.
9447
424eb552
JB
94482019-02-06 John Baldwin <jhb@FreeBSD.org>
9449
9450 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
9451
1688cb29
TT
94522019-02-05 Tom Tromey <tom@tromey.com>
9453
9454 * target.c (target_stack::unpush): Move assertion earlier.
9455
b5eba2d8
TT
94562019-01-30 Tom Tromey <tom@tromey.com>
9457
9458 PR python/23615:
9459 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
9460 (gdbpy_parse_and_eval): Likewise.
9461 * python/python-internal.h (gdbpy_allow_threads): New class.
9462
7054e2ff
JB
94632019-01-28 John Baldwin <jhb@FreeBSD.org>
9464
9465 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
9466 (aarch64_fbsd_fpregmap): Move earlier.
9467 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
9468 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9469 instead of individual calls to trad_frame_set_reg_addr.
9470 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
9471 earlier.
9472 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
9473 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
9474 instead of individual calls to trad_frame_set_reg_addr.
9475
36c25ffa
AH
94762019-01-28 Alan Hayward <alan.hayward@arm.com>
9477
9478 * CONTRIBUTE: Replace contribution list with wiki link.
9479
a0707f3c
TT
94802019-01-25 Tom Tromey <tom@tromey.com>
9481
9482 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
9483
0747795c
TT
94842019-01-25 Tom Tromey <tom@tromey.com>
9485
9486 * xtensa-linux-nat.c: Fix common/ includes.
9487 * xml-support.h: Fix common/ includes.
9488 * xml-support.c: Fix common/ includes.
9489 * x86-linux-nat.c: Fix common/ includes.
9490 * windows-nat.c: Fix common/ includes.
9491 * varobj.h: Fix common/ includes.
9492 * varobj.c: Fix common/ includes.
9493 * value.c: Fix common/ includes.
9494 * valops.c: Fix common/ includes.
9495 * utils.c: Fix common/ includes.
9496 * unittests/xml-utils-selftests.c: Fix common/ includes.
9497 * unittests/utils-selftests.c: Fix common/ includes.
9498 * unittests/unpack-selftests.c: Fix common/ includes.
9499 * unittests/tracepoint-selftests.c: Fix common/ includes.
9500 * unittests/style-selftests.c: Fix common/ includes.
9501 * unittests/string_view-selftests.c: Fix common/ includes.
9502 * unittests/scoped_restore-selftests.c: Fix common/ includes.
9503 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
9504 * unittests/scoped_fd-selftests.c: Fix common/ includes.
9505 * unittests/rsp-low-selftests.c: Fix common/ includes.
9506 * unittests/parse-connection-spec-selftests.c: Fix common/
9507 includes.
9508 * unittests/optional-selftests.c: Fix common/ includes.
9509 * unittests/offset-type-selftests.c: Fix common/ includes.
9510 * unittests/observable-selftests.c: Fix common/ includes.
9511 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
9512 * unittests/memrange-selftests.c: Fix common/ includes.
9513 * unittests/memory-map-selftests.c: Fix common/ includes.
9514 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
9515 * unittests/function-view-selftests.c: Fix common/ includes.
9516 * unittests/environ-selftests.c: Fix common/ includes.
9517 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
9518 * unittests/common-utils-selftests.c: Fix common/ includes.
9519 * unittests/cli-utils-selftests.c: Fix common/ includes.
9520 * unittests/array-view-selftests.c: Fix common/ includes.
9521 * ui-file.c: Fix common/ includes.
9522 * tui/tui-io.c: Fix common/ includes.
9523 * tracepoint.h: Fix common/ includes.
9524 * tracepoint.c: Fix common/ includes.
9525 * tracefile-tfile.c: Fix common/ includes.
9526 * top.h: Fix common/ includes.
9527 * top.c: Fix common/ includes.
9528 * thread.c: Fix common/ includes.
9529 * target/waitstatus.h: Fix common/ includes.
9530 * target/waitstatus.c: Fix common/ includes.
9531 * target.h: Fix common/ includes.
9532 * target.c: Fix common/ includes.
9533 * target-memory.c: Fix common/ includes.
9534 * target-descriptions.c: Fix common/ includes.
9535 * symtab.h: Fix common/ includes.
9536 * symfile.c: Fix common/ includes.
9537 * stap-probe.c: Fix common/ includes.
9538 * spu-linux-nat.c: Fix common/ includes.
9539 * sparc-nat.c: Fix common/ includes.
9540 * source.c: Fix common/ includes.
9541 * solib.c: Fix common/ includes.
9542 * solib-target.c: Fix common/ includes.
9543 * ser-unix.c: Fix common/ includes.
9544 * ser-tcp.c: Fix common/ includes.
9545 * ser-pipe.c: Fix common/ includes.
9546 * ser-base.c: Fix common/ includes.
9547 * selftest-arch.c: Fix common/ includes.
9548 * s12z-tdep.c: Fix common/ includes.
9549 * rust-exp.y: Fix common/ includes.
9550 * rs6000-aix-tdep.c: Fix common/ includes.
9551 * riscv-tdep.c: Fix common/ includes.
9552 * remote.c: Fix common/ includes.
9553 * remote-notif.h: Fix common/ includes.
9554 * remote-fileio.h: Fix common/ includes.
9555 * remote-fileio.c: Fix common/ includes.
9556 * regcache.h: Fix common/ includes.
9557 * regcache.c: Fix common/ includes.
9558 * record-btrace.c: Fix common/ includes.
9559 * python/python.c: Fix common/ includes.
9560 * python/py-type.c: Fix common/ includes.
9561 * python/py-inferior.c: Fix common/ includes.
9562 * progspace.h: Fix common/ includes.
9563 * producer.c: Fix common/ includes.
9564 * procfs.c: Fix common/ includes.
9565 * proc-api.c: Fix common/ includes.
9566 * printcmd.c: Fix common/ includes.
9567 * ppc-linux-nat.c: Fix common/ includes.
9568 * parser-defs.h: Fix common/ includes.
9569 * osdata.c: Fix common/ includes.
9570 * obsd-nat.c: Fix common/ includes.
9571 * nat/x86-linux.c: Fix common/ includes.
9572 * nat/x86-linux-dregs.c: Fix common/ includes.
9573 * nat/x86-dregs.h: Fix common/ includes.
9574 * nat/x86-dregs.c: Fix common/ includes.
9575 * nat/ppc-linux.c: Fix common/ includes.
9576 * nat/mips-linux-watch.h: Fix common/ includes.
9577 * nat/mips-linux-watch.c: Fix common/ includes.
9578 * nat/linux-waitpid.c: Fix common/ includes.
9579 * nat/linux-ptrace.h: Fix common/ includes.
9580 * nat/linux-ptrace.c: Fix common/ includes.
9581 * nat/linux-procfs.c: Fix common/ includes.
9582 * nat/linux-personality.c: Fix common/ includes.
9583 * nat/linux-osdata.c: Fix common/ includes.
9584 * nat/linux-namespaces.c: Fix common/ includes.
9585 * nat/linux-btrace.h: Fix common/ includes.
9586 * nat/linux-btrace.c: Fix common/ includes.
9587 * nat/fork-inferior.c: Fix common/ includes.
9588 * nat/amd64-linux-siginfo.c: Fix common/ includes.
9589 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
9590 * nat/aarch64-linux.c: Fix common/ includes.
9591 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
9592 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
9593 * namespace.h: Fix common/ includes.
9594 * mips-linux-tdep.c: Fix common/ includes.
9595 * minsyms.c: Fix common/ includes.
9596 * mi/mi-parse.h: Fix common/ includes.
9597 * mi/mi-main.c: Fix common/ includes.
9598 * mi/mi-cmd-env.c: Fix common/ includes.
9599 * memrange.h: Fix common/ includes.
9600 * memattr.c: Fix common/ includes.
9601 * maint.h: Fix common/ includes.
9602 * maint.c: Fix common/ includes.
9603 * main.c: Fix common/ includes.
9604 * machoread.c: Fix common/ includes.
9605 * location.c: Fix common/ includes.
9606 * linux-thread-db.c: Fix common/ includes.
9607 * linux-nat.c: Fix common/ includes.
9608 * linux-fork.c: Fix common/ includes.
9609 * inline-frame.c: Fix common/ includes.
9610 * infrun.c: Fix common/ includes.
9611 * inflow.c: Fix common/ includes.
9612 * inferior.h: Fix common/ includes.
9613 * inferior.c: Fix common/ includes.
9614 * infcmd.c: Fix common/ includes.
9615 * inf-ptrace.c: Fix common/ includes.
9616 * inf-child.c: Fix common/ includes.
9617 * ia64-linux-nat.c: Fix common/ includes.
9618 * i387-tdep.c: Fix common/ includes.
9619 * i386-tdep.c: Fix common/ includes.
9620 * i386-linux-tdep.c: Fix common/ includes.
9621 * i386-linux-nat.c: Fix common/ includes.
9622 * i386-go32-tdep.c: Fix common/ includes.
9623 * i386-fbsd-tdep.c: Fix common/ includes.
9624 * i386-fbsd-nat.c: Fix common/ includes.
9625 * guile/scm-type.c: Fix common/ includes.
9626 * guile/guile.c: Fix common/ includes.
9627 * go32-nat.c: Fix common/ includes.
9628 * gnu-nat.c: Fix common/ includes.
9629 * gdbthread.h: Fix common/ includes.
9630 * gdbarch-selftests.c: Fix common/ includes.
9631 * gdb_usleep.c: Fix common/ includes.
9632 * gdb_select.h: Fix common/ includes.
9633 * gdb_bfd.c: Fix common/ includes.
9634 * gcore.c: Fix common/ includes.
9635 * fork-child.c: Fix common/ includes.
9636 * findvar.c: Fix common/ includes.
9637 * fbsd-nat.c: Fix common/ includes.
9638 * event-top.c: Fix common/ includes.
9639 * event-loop.c: Fix common/ includes.
9640 * dwarf2read.c: Fix common/ includes.
9641 * dwarf2loc.c: Fix common/ includes.
9642 * dwarf2-frame.c: Fix common/ includes.
9643 * dwarf-index-cache.c: Fix common/ includes.
9644 * dtrace-probe.c: Fix common/ includes.
9645 * disasm-selftests.c: Fix common/ includes.
9646 * defs.h: Fix common/ includes.
9647 * csky-tdep.c: Fix common/ includes.
9648 * cp-valprint.c: Fix common/ includes.
9649 * cp-support.h: Fix common/ includes.
9650 * cp-support.c: Fix common/ includes.
9651 * corelow.c: Fix common/ includes.
9652 * completer.h: Fix common/ includes.
9653 * completer.c: Fix common/ includes.
9654 * compile/compile.c: Fix common/ includes.
9655 * compile/compile-loc2c.c: Fix common/ includes.
9656 * compile/compile-cplus-types.c: Fix common/ includes.
9657 * compile/compile-cplus-symbols.c: Fix common/ includes.
9658 * command.h: Fix common/ includes.
9659 * cli/cli-dump.c: Fix common/ includes.
9660 * cli/cli-cmds.c: Fix common/ includes.
9661 * charset.c: Fix common/ includes.
9662 * build-id.c: Fix common/ includes.
9663 * btrace.h: Fix common/ includes.
9664 * btrace.c: Fix common/ includes.
9665 * breakpoint.h: Fix common/ includes.
9666 * breakpoint.c: Fix common/ includes.
9667 * ax.h:
9668 (enum agent_op): Fix common/ includes.
9669 * ax-general.c (struct aop_map): Fix common/ includes.
9670 * ax-gdb.c: Fix common/ includes.
9671 * auxv.c: Fix common/ includes.
9672 * auto-load.c: Fix common/ includes.
9673 * arm-tdep.c: Fix common/ includes.
9674 * arch/riscv.c: Fix common/ includes.
9675 * arch/ppc-linux-common.c: Fix common/ includes.
9676 * arch/i386.c: Fix common/ includes.
9677 * arch/arm.c: Fix common/ includes.
9678 * arch/arm-linux.c: Fix common/ includes.
9679 * arch/arm-get-next-pcs.c: Fix common/ includes.
9680 * arch/amd64.c: Fix common/ includes.
9681 * arch/aarch64.c: Fix common/ includes.
9682 * arch/aarch64-insn.c: Fix common/ includes.
9683 * arch-utils.c: Fix common/ includes.
9684 * amd64-windows-tdep.c: Fix common/ includes.
9685 * amd64-tdep.c: Fix common/ includes.
9686 * amd64-sol2-tdep.c: Fix common/ includes.
9687 * amd64-obsd-tdep.c: Fix common/ includes.
9688 * amd64-nbsd-tdep.c: Fix common/ includes.
9689 * amd64-linux-tdep.c: Fix common/ includes.
9690 * amd64-linux-nat.c: Fix common/ includes.
9691 * amd64-fbsd-tdep.c: Fix common/ includes.
9692 * amd64-fbsd-nat.c: Fix common/ includes.
9693 * amd64-dicos-tdep.c: Fix common/ includes.
9694 * amd64-darwin-tdep.c: Fix common/ includes.
9695 * agent.c: Fix common/ includes.
9696 * ada-lang.h: Fix common/ includes.
9697 * ada-lang.c: Fix common/ includes.
9698 * aarch64-tdep.c: Fix common/ includes.
9699
2f5c153e
TT
97002019-01-25 Tom Tromey <tom@tromey.com>
9701
9702 * common/create-version.sh: Use common/version.h.
9703
adc6a863
PA
97042019-01-24 Pedro Alves <palves@redhat.com>
9705
9706 * infrun.c (signal_stop, signal_print, signal_program)
9707 (signal_catch, signal_pass): Now arrays instead of pointers.
9708 (update_signals_program_target, do_target_resume)
9709 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
9710 * linux-nat.c (linux_nat_target::pass_signals)
9711 (linux_nat_target::create_inferior, linux_nat_target::attach):
9712 Adjust.
9713 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
9714 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
9715 * procfs.c (procfs_target::pass_signals): Adjust.
9716 * record-full.c (record_full_target::resume): Adjust.
9717 * remote.c (remote_target::pass_signals)
9718 (remote_target::program_signals): Adjust.
9719 * target-debug.h (target_debug_print_signals): Now takes a
9720 gdb::array_view as parameter. Adjust.
9721 * target.h (target_ops) <pass_signals, program_signals>: Replace
9722 pointer and length parameters with gdb::array_view.
9723 (target_pass_signals, target_program_signals): Likewise.
9724 * target-delegates.c: Regenerate.
9725
3046d67a
PA
97262019-01-24 Pedro Alves <palves@redhat.com>
9727
9728 * common/forward-scope-exit.h
9729 (forward_scope_exit::forward_scope_exit): Pass arguments to
9730 m_bind_function directly, instead of creating a std::bind and
9731 copying that.
9732
353229bf
AH
97332019-01-24 Alan Hayward <alan.hayward@arm.com>
9734
9735 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9736 for static members.
9737 (pass_in_v_vfp_candidate): Likewise.
9738
311dc83a
TT
97392019-01-23 Tom Tromey <tom@tromey.com>
9740 Pedro Alves <palves@redhat.com>
9741
9742 * regcache.c (class regcache_invalidator): Remove.
9743 (regcache::raw_write): Use make_scope_exit.
9744
296bd123
TT
97452019-01-23 Tom Tromey <tom@tromey.com>
9746
9747 * ui-out.h (class ui_out_emit_type): Update comment.
9748
979a0d13
TT
97492019-01-23 Tom Tromey <tom@tromey.com>
9750
9751 * infrun.c (fetch_inferior_event): Update comment.
9752
d238133d
TT
97532019-01-23 Tom Tromey <tom@tromey.com>
9754 Pedro Alves <palves@redhat.com>
9755
9756 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
9757 parameter.
9758 (fetch_inferior_event): Use SCOPE_EXIT.
9759
9760
9885e6bb
TT
97612019-01-23 Tom Tromey <tom@tromey.com>
9762 Pedro Alves <palves@redhat.com>
9763
9764 * infrun.c (disable_thread_events): Delete.
9765 (stop_all_threads): Use SCOPE_EXIT.
9766
286526c1
TT
97672019-01-23 Tom Tromey <tom@tromey.com>
9768 Pedro Alves <palves@redhat.com>
9769
9770 * symfile.c: Include forward-scope-exit.h.
9771 (clear_symtab_users_cleanup): Replace forward declaration with
9772 a FORWARD_SCOPE_EXIT.
9773 (syms_from_objfile_1): Use the forward_scope_exit and
9774 gdb::optional instead of cleanup_function.
9775 (reread_symbols): Use the forward_scope_exit instead of
9776 cleanup_function.
9777 (clear_symtab_users_cleanup): Remove function.
9778
1db93f14
TT
97792019-01-23 Tom Tromey <tom@tromey.com>
9780 Pedro Alves <palves@redhat.com>
9781
9782 * linux-nat.c: Include scope-exit.h.
9783 (cleanup_target_stop): Remove.
9784 (linux_nat_target::static_tracepoint_markers_by_strid): Use
9785 SCOPE_EXIT.
9786
2cc83d1e
TT
97872019-01-23 Tom Tromey <tom@tromey.com>
9788 Pedro Alves <palves@redhat.com>
9789
9790 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
9791 (call_function_by_hand_dummy): Use SCOPE_EXIT.
9792
694c6bf5
TT
97932019-01-23 Tom Tromey <tom@tromey.com>
9794 Andrew Burgess <andrew.burgess@embecosm.com>
9795 Pedro Alves <palves@redhat.com>
9796
9797 * infrun.c (fetch_inferior_event): Use scope_exit.
9798 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
9799 * top.c (execute_command): Use scope_exit.
9800 * breakpoint.c (bpstat_do_actions): Use scope_exit.
9801 * utils.c (do_bpstat_clear_actions_cleanup)
9802 (make_bpstat_clear_actions_cleanup): Remove.
9803
4c41382a
TT
98042019-01-23 Tom Tromey <tom@tromey.com>
9805 Pedro Alves <palves@redhat.com>
9806
9807 * infrun.c: Include "common/scope-exit.h"
9808 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
9809 (wait_for_inferior): Use SCOPE_EXIT.
9810 (fetch_inferior_event): Use scope_exit.
9811
89f8fb50
TT
98122019-01-23 Tom Tromey <tom@tromey.com>
9813 Pedro Alves <palves@redhat.com>
9814
9815 * breakpoint.c (create_breakpoint): Remove cleanup.
9816
5419bdae
TT
98172019-01-23 Tom Tromey <tom@tromey.com>
9818 Andrew Burgess <andrew.burgess@embecosm.com>
9819 Pedro Alves <palves@redhat.com>
9820
e587ef42
PA
98212019-01-23 Pedro Alves <palves@redhat.com>
9822
9823 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
9824
77f0e74c
PA
98252019-01-23 Pedro Alves <palves@redhat.com>
9826 Andrew Burgess <andrew.burgess@embecosm.com>
9827
9828 * gdbthread.h: Include "common/forward-scope-exit.h".
9829 (scoped_finish_thread_state): Redefine custom class in terms of
9830 forward_scope_exit.
9831
5b9b3e53
PA
98322019-01-23 Pedro Alves <palves@redhat.com>
9833 Andrew Burgess <andrew.burgess@embecosm.com>
9834
9835 * common/forward-scope-exit.h: New file.
9836
54b65c9b
PA
98372019-01-23 Pedro Alves <palves@redhat.com>
9838 Andrew Burgess <andrew.burgess@embecosm.com>
9839 Tom Tromey <tom@tromey.com>
9840
9841 * common/scope-exit.h: New file.
9842
cf08fb29
PA
98432019-01-23 Pedro Alves <palves@redhat.com>
9844
9845 * common/preprocessor.h (ESC): Rename to ...
9846 (ESC_PARENS): ... this.
9847 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
9848 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
9849
ae73e2e2
TT
98502019-01-23 Tom Tromey <tom@tromey.com>
9851
9852 * language.h (class scoped_switch_to_sym_language_if_auto):
9853 Initialize m_lang in both cases.
9854
6594e122
AH
98552019-01-23 Alan Hayward <alan.hayward@arm.com>
9856
9857 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
9858 with XCNEW.
9859
a7c9855d
TT
98602019-01-22 Tom Tromey <tom@tromey.com>
9861
9862 * corelow.c: Do not include sys/file.h.
9863
93cc1d53
TT
98642019-01-22 Tom Tromey <tom@tromey.com>
9865
9866 * tui/tui-wingeneral.h: Include gdb_curses.h.
9867
38561778
TT
98682019-01-22 Tom Tromey <tom@tromey.com>
9869
9870 * source-cache.h (class source_cache) <get_source_lines,
9871 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
9872
37b3ab5b
TT
98732019-01-22 Tom Tromey <tom@tromey.com>
9874
9875 * remote-fileio.h (struct remote_target): Declare.
9876
3fabc016
TT
98772019-01-22 Tom Tromey <tom@tromey.com>
9878
9879 * python/py-arch.c: Do not include py-ref.h.
9880 * python/py-bpevent.c: Do not include py-ref.h.
9881 * python/py-cmd.c: Do not include py-ref.h.
9882 * python/py-continueevent.c: Do not include py-ref.h.
9883 * python/py-event.h: Do not include py-ref.h.
9884 * python/py-evtregistry.c: Do not include py-ref.h.
9885 * python/py-finishbreakpoint.c: Do not include py-ref.h.
9886 * python/py-frame.c: Do not include py-ref.h.
9887 * python/py-framefilter.c: Do not include py-ref.h.
9888 * python/py-function.c: Do not include py-ref.h.
9889 * python/py-infevents.c: Do not include py-ref.h.
9890 * python/py-linetable.c: Do not include py-ref.h.
9891 * python/py-objfile.c: Do not include py-ref.h.
9892 * python/py-param.c: Do not include py-ref.h.
9893 * python/py-prettyprint.c: Do not include py-ref.h.
9894 * python/py-progspace.c: Do not include py-ref.h.
9895 * python/py-symbol.c: Do not include py-ref.h.
9896 * python/py-symtab.c: Do not include py-ref.h.
9897 * python/py-type.c: Do not include py-ref.h.
9898 * python/py-unwind.c: Do not include py-ref.h.
9899 * python/py-utils.c: Do not include py-ref.h.
9900 * python/py-value.c: Do not include py-ref.h.
9901 * python/py-varobj.c: Do not include py-ref.h.
9902 * python/py-xmethods.c: Do not include py-ref.h.
9903 * python/python.c: Do not include py-ref.h.
9904 * varobj.c: Do not include py-ref.h.
9905
6b4d7774
TT
99062019-01-22 Tom Tromey <tom@tromey.com>
9907
9908 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
9909 keyword for bcache.
9910
7af7e9b5
TT
99112019-01-22 Tom Tromey <tom@tromey.com>
9912
9913 * compile/compile-cplus-types.c: Remove a comment by #include.
9914
951d1049
TT
99152019-01-22 Tom Tromey <tom@tromey.com>
9916
9917 * compile/gcc-c-plugin.h: Include compile-internal.h.
9918
d65d5705
TT
99192019-01-22 Tom Tromey <tom@tromey.com>
9920
9921 * stabsread.c (EXTERN): Do not define.
9922 (symnum, next_symbol_text_func, processing_gcc_compilation)
9923 (within_function, global_sym_chain, global_stabs)
9924 (previous_stab_code, this_object_header_files)
9925 (n_this_object_header_files)
9926 (n_allocated_this_object_header_files): Define.
9927 * stabsread.h (EXTERN): Never define. Use "extern".
9928
b6fb1ee5
PW
99292019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9930
9931 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
9932 history_value.
9933
be6d4f74
TT
99342019-01-21 Tom Tromey <tom@tromey.com>
9935
9936 * ui-out.c: Fix includes.
9937 * tui/tui-source.c: Fix includes.
9938 * target.c: Fix includes.
9939 * remote.c: Fix includes.
9940 * regcache.c: Fix includes.
9941 * python/py-block.c: Fix includes.
9942 * printcmd.c: Fix includes.
9943 * or1k-tdep.c: Fix includes.
9944 * mi/mi-main.c: Fix includes.
9945 * m32r-tdep.c: Fix includes.
9946 * csky-tdep.c: Fix includes.
9947 * compile/compile-cplus-types.c: Fix includes.
9948 * cli/cli-interp.c: Fix includes.
9949
73021deb
AH
99502019-01-21 Alan Hayward <alan.hayward@arm.com>
9951
9952 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
9953 for padding.
9954
7932255d
TT
99552019-01-16 Tom Tromey <tom@tromey.com>
9956
9957 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
9958 earlier.
9959 (struct objfile) <msymbols_range>: Move from top level.
9960 <msymbols>: New method.
9961 (class objfile_msymbols): Remove.
9962 * symtab.c (default_collect_symbol_completion_matches_break_on):
9963 Update.
9964 * symmisc.c (dump_msymbols): Update.
9965 * stabsread.c (scan_file_globals): Update.
9966 * objc-lang.c (info_selectors_command, info_classes_command)
9967 (find_methods): Update.
9968 * minsyms.c (find_solib_trampoline_target): Update.
9969 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
9970 * coffread.c (coff_symfile_read): Update.
9971 * ada-lang.c (ada_lookup_simple_minsym)
9972 (ada_collect_symbol_completion_matches): Update.
9973
604b1bfb
TT
99742019-01-16 Tom Tromey <tom@tromey.com>
9975
9976 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
9977 type. Remove no-argument constructor.
9978 <iterator::operator++>: Simplify.
9979 <begin>: Update.
9980 <end>: Use minimal_symbol_count.
9981
f252c6d5
TT
99822019-01-16 Tom Tromey <tom@tromey.com>
9983
9984 * objfiles.h (struct objfile) <psymtabs>: New method.
9985 (class objfile_psymtabs): Remove.
9986 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
9987 typedef.
9988 <range>: New method.
9989 (require_partial_symbols): Change return type.
9990 * psymtab.c (require_partial_symbols)
9991 (psym_expand_symtabs_matching): Update.
9992 * mdebugread.c (parse_partial_symbols): Update.
9993 * dbxread.c (dbx_end_psymtab): Update.
9994
b669c953
TT
99952019-01-15 Tom Tromey <tom@tromey.com>
9996
9997 * symtab.c (lookup_objfile_from_block)
9998 (lookup_symbol_in_objfile_symtabs)
9999 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10000 (find_line_symtab, info_sources_command)
10001 (default_collect_symbol_completion_matches_break_on)
10002 (make_source_files_completion_list): Update.
10003 * symmisc.c (print_objfile_statistics, dump_objfile)
10004 (maintenance_print_symbols, maintenance_info_symtabs)
10005 (maintenance_check_symtabs, maintenance_info_line_tables):
10006 Update.
10007 * source.c (select_source_symtab)
10008 (forget_cached_source_info_for_objfile): Update.
10009 * objfiles.h (class objfile_compunits): Remove.
10010 (struct objfile) <compunits_range>: New typedef.
10011 (compunits): New method.
10012 * objfiles.c (objfile_relocate1): Update.
10013 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10014 * maint.c (count_symtabs_and_blocks): Update.
10015 * linespec.c (iterate_over_all_matching_symtabs): Update.
10016 * cp-support.c (add_symbol_overload_list_qualified): Update.
10017 * coffread.c (coff_symtab_read): Update.
10018 * ada-lang.c (add_nonlocal_symbols)
10019 (ada_collect_symbol_completion_matches)
10020 (ada_add_global_exceptions): Update.
10021
7e955d83
TT
100222019-01-15 Tom Tromey <tom@tromey.com>
10023
10024 * progspace.h (program_space) <objfiles_safe_range>: New
10025 typedef.
10026 <objfiles_safe>: New method.
10027 * objfiles.h (class all_objfiles_safe): Remove.
10028 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10029 * jit.c (jit_inferior_exit_hook): Update.
10030
2030c079
TT
100312019-01-17 Tom Tromey <tom@tromey.com>
10032
10033 * progspace.h (program_space) <objfiles_range>: New typedef.
10034 <objfiles>: New method.
10035 <objfiles_head>: Rename from objfiles.
10036 (object_files): Update.
10037 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10038 * guile/scm-pretty-print.c
10039 (ppscm_find_pretty_printer_from_objfiles): Update.
10040 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10041 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10042 Update.
10043 * python/py-progspace.c (pspy_get_objfiles): Update.
10044 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10045 Update.
10046 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10047 (objfpy_lookup_objfile_by_build_id): Update.
10048 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10049 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10050 Update.
10051 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10052 (expand_symtab_containing_pc, lookup_objfile_from_block)
10053 (lookup_static_symbol, basic_lookup_transparent_type)
10054 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10055 (find_line_symtab, info_sources_command)
10056 (default_collect_symbol_completion_matches_break_on)
10057 (make_source_files_completion_list, find_main_name): Update.
10058 * symmisc.c (print_symbol_bcache_statistics)
10059 (print_objfile_statistics, maintenance_print_symbols)
10060 (maintenance_print_msymbols, maintenance_print_objfiles)
10061 (maintenance_info_symtabs, maintenance_check_symtabs)
10062 (maintenance_expand_symtabs, maintenance_info_line_tables):
10063 Update.
10064 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10065 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10066 (map_overlay_command, unmap_overlay_command)
10067 (simple_overlay_update, expand_symtabs_matching)
10068 (map_symbol_filenames): Update.
10069 * symfile-debug.c (set_debug_symfile): Update.
10070 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10071 Update.
10072 * source.c (select_source_symtab, forget_cached_source_info):
10073 Update.
10074 * solib.c (solib_read_symbols): Update.
10075 * solib-spu.c (append_ocl_sos): Update.
10076 * psymtab.c (maintenance_print_psymbols)
10077 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10078 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10079 * printcmd.c (info_symbol_command): Update.
10080 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10081 Update.
10082 * objfiles.h (class all_objfiles): Remove.
10083 * objfiles.c (have_partial_symbols, have_full_symbols)
10084 (have_minimal_symbols, qsort_cmp, update_section_map)
10085 (shared_objfile_contains_address_p)
10086 (default_iterate_over_objfiles_in_search_order): Update.
10087 * objc-lang.c (info_selectors_command, info_classes_command)
10088 (find_methods): Update.
10089 * minsyms.c (find_solib_trampoline_target): Update.
10090 * maint.c (maintenance_info_sections)
10091 (maintenance_translate_address, count_symtabs_and_blocks):
10092 Update.
10093 * main.c (captured_main_1): Update.
10094 * linux-thread-db.c (try_thread_db_load_from_pdir)
10095 (has_libpthread): Update.
10096 * linespec.c (iterate_over_all_matching_symtabs)
10097 (search_minsyms_for_name): Update.
10098 * jit.c (jit_find_objf_with_entry_addr): Update.
10099 * hppa-tdep.c (find_unwind_entry)
10100 (hppa_lookup_stub_minimal_symbol): Update.
10101 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10102 Update.
10103 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10104 (elf_gnu_ifunc_resolve_by_got): Update.
10105 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10106 * dwarf-index-write.c (save_gdb_index_command): Update.
10107 * cp-support.c (add_symbol_overload_list_qualified): Update.
10108 * breakpoint.c (create_overlay_event_breakpoint)
10109 (create_longjmp_master_breakpoint)
10110 (create_std_terminate_master_breakpoint)
10111 (create_exception_master_breakpoint): Update.
10112 * blockframe.c (find_pc_partial_function): Update.
10113 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10114 (ada_collect_symbol_completion_matches)
10115 (ada_add_global_exceptions): Update.
10116
776489e0
TT
101172019-01-17 Tom Tromey <tom@tromey.com>
10118
10119 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10120 declare VEC.
10121 (solib_target_parse_libraries): Change return type.
10122 (library_list_start_segment, library_list_start_section)
10123 (library_list_end_library, library_list_start_library); Update.
10124 (solib_target_free_library_list): Remove.
10125 (solib_target_parse_libraries): Remove cleanup. Change return
10126 type.
10127 (solib_target_current_sos): Update.
10128
6471e7d2
TT
101292019-01-17 Tom Tromey <tromey@bapiya>
10130
10131 * valprint.c: Replace "the the" with "the".
10132 * symtab.c: Replace "the the" with "the".
10133 * solib.c: Replace "the the" with "the".
10134 * solib-dsbt.c: Replace "the the" with "the".
10135 * linespec.c: Replace "the the" with "the".
10136 * dwarf2loc.h: Replace "the the" with "the".
10137 * amd64-windows-tdep.c: Replace "the the" with "the".
10138 * aarch64-tdep.c: Replace "the the" with "the".
10139
c24bdb02
KS
101402019-01-16 Keith Seitz <keiths@redhat.com>
10141
10142 PR gdb/23773
10143 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10144 <builder>: Rename to ..
10145 <m_builder>: ... this and make private.
10146 (dwarf2_cu::get_builder): New method. Change all users of
10147 `builder' to use this method.
10148 (dwarf2_start_symtab): Move to ...
10149 (dwarf2_cu::start_symtab): ... here. Update all callers
10150 (setup_type_unit_groups): Move to ...
10151 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10152 callers.
10153 (dwarf2_cu::reset_builder): New method.
10154 (process_full_compunit, process_full_type_unit): Use
10155 dwarf2_cu::reset_builder.
10156 (follow_die_offset): Record the ancestor CU if it is different
10157 from the followed DIE's CU.
10158 (follow_die_sig_1): Likewise.
10159
8d64371b
TT
101602019-01-15 Tom Tromey <tom@tromey.com>
10161
10162 * remote.c (class remote_state) <buf>: Now a char_vector.
10163 <buf_size>: Remove.
10164 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10165 parameter.
10166 (remote_target::getpkt_or_notif_sane_1)
10167 (remote_target::getpkt_sane)
10168 (remote_target::getpkt_or_notif_sane): Likewise.
10169 (class remote_target) <putpkt>: New overload.
10170 (remote_target::read_frame): Change type of "buf_p". Remove
10171 sizeof_p parameter.
10172 (packet_ok): New overload.
10173 (packet_check_result): New overload.
10174 Update all uses.
10175
bb277751
TT
101762019-01-14 Tom Tromey <tom@tromey.com>
10177
10178 * remote-notif.c (handle_notification, remote_notif_ack)
10179 (remote_notif_parse): Make "buf" const.
10180 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10181 const.
10182 (remote_notif_parse, remote_notif_ack, handle_notification):
10183 Likewise.
10184 * remote.c (remote_notif_stop_parse): Make "buf" const.
10185 (remote_target::remote_parse_stop_reply): Make "buf" const.
10186 (remote_notif_stop_ack): Make "buf" const.
10187
05be00a8
TT
101882019-01-14 Tom Tromey <tom@tromey.com>
10189
10190 * remote.c (remote_console_output): Make parameter const.
10191
491adeca
TT
101922019-01-14 Tom Tromey <tom@tromey.com>
10193
10194 * target-debug.h (target_debug_print_signals): Constify.
10195 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
10196 * procfs.c (procfs_target::pass_signals): Update.
10197 * linux-nat.c (linux_nat_target::pass_signals): Update.
10198 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
10199 * target-delegates.c: Rebuild.
10200 * remote.c (remote_target::program_signals): Update.
10201 (remote_target::pass_signals): Update.
10202 * target.c (target_pass_signals): Constify argument.
10203 (target_program_signals): Likewise.
10204 * target.h (struct target_ops) <pass_signals, program_signals>:
10205 Constify argument.
10206 (target_pass_signals, target_program_signals): Constify argument.
10207
bbd94648
TT
102082019-01-14 Tom Tromey <tom@tromey.com>
10209
10210 PR tui/28819:
10211 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
10212
6f072a10
PFC
102132019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10214
10215 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
10216 field.
10217 * rs6000-tdep.c: Include reggroups.h.
10218 (IS_V_ALIAS_PSEUDOREG): Define.
10219 (rs6000_register_name): Return names for the "vX" aliases.
10220 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
10221 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
10222 aliases. Call default_register_reggroup_p for all other
10223 pseudo-registers.
10224 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
10225 New functions.
10226 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
10227 Handle "vX" aliases.
10228 (v_alias_pseudo_register_collect): New function.
10229 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
10230 (rs6000_gdbarch_init): Initialize "vX" aliases as
10231 pseudo-registers. Restore registration of
10232 rs6000_pseudo_register_reggroup_p with
10233 set_tdesc_pseudo_register_reggroup_p.
10234
1a782351
MF
102352019-01-13 Max Filippov <jcmvbkbc@gmail.com>
10236
10237 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
10238 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
10239 set_gdbarch_num_pseudo_regs.
10240
d73cff18
PW
102412019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10242
10243 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
10244 Remove arg prefixname, add do_set and do_show.
10245 Add member functions set_list and show_list.
10246 * cli/cli-style.c (class cli_style_option): Update accordingly.
10247 (style_set_list): Move to file scope.
10248 (style_show_list): Likewise.
10249 (set_style): Call help_list.
10250 (show_style): Call cmd_show_list.
10251 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
10252 Update to use the new macro.
10253
60a90376
JB
102542019-10-12 Joel Brobecker <brobecker@adacore.com>
10255
10256 * ada-lang.c (_initialize_ada_language): Expand the help text
10257 for the "catch exception" command.
10258
9d7c67bf
PW
102592019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10260
10261 * symtab.c (matching_obj_sections): Initialize obj,
10262 declare it closer to its usage.
10263
7cf47dc4
TT
102642019-01-10 Tom Tromey <tom@tromey.com>
10265
10266 * thread-iter.h (inf_threads_iterator): Use next_iterator.
10267 (basic_inf_threads_range): Remove.
10268 (inf_threads_range, inf_non_exited_threads_range)
10269 (safe_inf_threads_range): Use next_adapter.
10270
d3cb6808
KS
102712019-01-10 Keith Seitz <keiths@redhat.com>
10272
10273 PR gdb/23712
10274 PR symtab/23010
10275 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
10276 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
10277
63a20375
KS
102782019-01-10 Keith Seitz <keiths@redhat.com>
10279
10280 PR gdb/23712
10281 PR symtab/23010
10282 * dictionary.c (pending_to_vector): Remove.
10283 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10284 Remove _1 suffix, replacing functions of the same name. Update
10285 all callers.
10286 (dict_create_hashed, dict_create_hashed_expandable)
10287 (dict_create_linear, dict_create_linear_expandable, dict_free)
10288 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
10289 Make functions static.
10290
b026f593
KS
102912019-01-10 Keith Seitz <keiths@redhat.com>
10292
10293 PR gdb/23712
10294 PR symtab/23010
10295 * dictionary.h (struct dictionary): Replace declaration with
10296 multidictionary.
10297 (dict_create_hashed, dict_create_hashed_expandable)
10298 (dict_create_linear, dict_create_linear_expandable)
10299 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
10300 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
10301 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
10302 taking multidictionary argument.
10303 [ALL_DICT_SYMBOLS]: Update for multidictionary.
10304 * block.h (struct block) <dict>: Change to multidictionary
10305 and rename `multidict'.
10306 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
10307 symmisc.c: Update all dictionary references to multidictionary.
10308
c7748ee9
KS
103092019-01-10 Keith Seitz <keiths@redhat.com>
10310
10311 PR gdb/23712
10312 PR symtab/23010
10313 * dictionary.c: Include unordered_map.
10314 (pending_to_vector): New function.
10315 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
10316 Rewrite the non-"_1" functions to take vector instead
10317 of linked list.
10318 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
10319 "new" _1 versions of the same name.
10320 (multidictionary): Define.
10321 (std::hash<enum language): New definition.
10322 (collate_pending_symbols_by_language, mdict_create_hashed)
10323 (mdict_create_hashed_expandable, mdict_create_linear)
10324 (mdict_create_linear_expandable, mdict_free)
10325 (find_language_dictionary, create_new_language_dictionary)
10326 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
10327 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
10328 (mdict_size, mdict_empty): New functions.
10329 * dictionary.h (mdict_iterator): Define.
10330
67aa1f3c
PA
103312019-01-10 Pedro Alves <palves@redhat.com>
10332
10333 * breakpoint.c (read_uploaded_action)
10334 (create_tracepoint_from_upload): Adjust to use
10335 gdb::unique_xmalloc_ptr.
10336 * ctf.c (ctf_write_uploaded_tp):
10337 (SET_ARRAY_FIELD): Use emplace_back.
10338 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
10339 * tracefile-tfile.c (tfile_write_uploaded_tp):
10340 * tracepoint.c (parse_tracepoint_definition): Adjust to use
10341 gdb::unique_xmalloc_ptr.
10342 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
10343 at_string, cond_string, cmd_strings>: Replace char pointers
10344 with gdb::unique_xmalloc_ptr.
10345
2f667667
PA
103462019-01-10 Pedro Alves <palves@redhat.com>
10347
10348 * solib-target.c (library_list_start_library): Don't xstrdup name.
10349
36cb7237
PA
103502019-01-10 Pedro Alves <palves@redhat.com>
10351
10352 * mdebugread.c (parse_partial_symbols): Use
10353 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
10354
da584958
AB
103552019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10356
10357 * linux-fork.c (scoped_switch_fork_info)
10358 <~scoped_switch_fork_info>: Fix incorrect variable name.
10359
1ef8573c
AB
103602019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
10361
10362 * linux-fork.c (scoped_switch_fork_info)
10363 <scoped_switch_fork_info>: Make explicit.
10364 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
10365
8d7bcccb
TT
103662019-01-10 Tom Tromey <tom@tromey.com>
10367
10368 * objfiles.h (objfile::reset_psymtabs): Update.
10369 * objfiles.c (objfile::objfile): Update.
10370 * psymtab.h (psymtab_storage::obstack): Update.
10371 (psymtab_storage::m_obstack): Use gdb::optional.
10372 (class psymtab_storage): Update comment. Remove objfile
10373 parameter.
10374 * psymtab.c (psymtab_storage::psymtab_storage): Update.
10375
b596a3c7
TT
103762019-01-10 Tom Tromey <tom@tromey.com>
10377
10378 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
10379 <free_psymtabs>: Now private.
10380 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
10381 (allocate_psymtab): Use new method.
10382
a9342b62
TT
103832019-01-10 Tom Tromey <tom@tromey.com>
10384
10385 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
10386 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
10387 * mdebugread.c (parse_partial_symbols): Use
10388 allocate_dependencies.
10389 * dwarf2read.c (dwarf2_create_include_psymtab): Use
10390 allocate_dependencies.
10391 (process_psymtab_comp_unit_reader)
10392 (build_type_psymtab_dependencies): Likewise.
10393 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
10394
5af70966
TT
103952019-01-10 Tom Tromey <tom@tromey.com>
10396
10397 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
10398 PSYMBOL_SET_LANGUAGE.
10399 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
10400
5923a04c
TT
104012019-01-10 Tom Tromey <tom@tromey.com>
10402
10403 * psymtab.h (psymtab_storage::obstack): New method.
10404 <m_obstack>: Rename from obstack; now private.
10405 * psymtab.c (psymtab_storage): Update.
10406 * dwarf2read.c (create_addrmap_from_index)
10407 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
10408 Update.
10409
6d6a12bf
TT
104102019-01-10 Tom Tromey <tom@tromey.com>
10411
10412 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
10413 * objfiles.h (objfile::reset_psymtabs): New method.
10414
d320c2b5
TT
104152019-01-10 Tom Tromey <tom@tromey.com>
10416
10417 * symmisc.c (print_symbol_bcache_statistics): Update.
10418 (print_objfile_statistics): Update.
10419 * symfile.c (reread_symbols): Update.
10420 * psymtab.h (class psymtab_storage): New.
10421 * psymtab.c (psymtab_storage): New constructor.
10422 (~psymtab_storage): New destructor.
10423 (require_partial_symbols): Update.
10424 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
10425 (find_pc_sect_psymtab, find_pc_sect_psymbol)
10426 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
10427 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
10428 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
10429 (start_psymtab_common, end_psymtab_common)
10430 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
10431 (allocate_psymtab): Update.
10432 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
10433 Update.
10434 (dump_psymtab_addrmap, maintenance_print_psymbols)
10435 (maintenance_check_psymtabs): Update.
10436 (class objfile_psymtabs): Move to objfiles.h.
10437 * psympriv.h (discard_psymtab): Now inline.
10438 (psymtab_discarder::psymtab_discarder): Update.
10439 (psymtab_discarder::~psymtab_discarder): Update.
10440 (ALL_OBJFILE_PSYMTABS): Rewrite.
10441 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
10442 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
10443 Remove fields.
10444 <partial_symtabs>: New field.
10445 (class objfile_psymtabs): Move from psymtab.h. Update.
10446 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
10447 psymbol_cache.
10448 (objfile::~objfile): Don't destroy psymbol_cache.
10449 * mdebugread.c (parse_partial_symbols): Update.
10450 * dwarf2read.c (create_addrmap_from_index)
10451 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10452 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
10453 (add_partial_subprogram, dwarf2_ranges_read): Update.
10454 * dwarf-index-write.c (write_address_map)
10455 (write_one_signatured_type, recursively_write_psymbols)
10456 (class debug_names, class debug_names, write_psymtabs_to_index):
10457 Update.
10458
1d94a5a3
TT
104592019-01-10 Tom Tromey <tom@tromey.com>
10460
10461 * symtab.h (SYMBOL_SET_NAMES): Update.
10462 (symbol_set_names): Update.
10463 (MSYMBOL_SET_NAMES): Update.
10464 * symtab.c (symbol_set_names): Change argument to be an
10465 objfile_per_bfd_storage.
10466 * psymtab.c (add_psymbol_to_bcache): Update.
10467 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
10468
0f14768a
TT
104692019-01-10 Tom Tromey <tom@tromey.com>
10470
10471 * symtab.c (create_demangled_names_hash): Change argument to be an
10472 objfile_per_bfd_storage.
10473 (symbol_set_names): Update.
10474
6eee24ce
TT
104752019-01-10 Tom Tromey <tom@tromey.com>
10476
10477 * xcoffread.c (xcoff_initial_scan): Unconditionally call
10478 init_psymbol_list.
10479 * psymtab.c (init_psymbol_list): Do nothing if already called.
10480 * psympriv.h (init_psymbol_list): Add comment.
10481 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
10482 init_psymbol_list.
10483 * dbxread.c (dbx_symfile_read): Unconditionally call
10484 init_psymbol_list.
10485
75aedd27
TT
104862019-01-10 Tom Tromey <tom@tromey.com>
10487
10488 * xcoffread.c (scan_xcoff_symtab): Update.
10489 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
10490 "where".
10491 * mdebugread.c (parse_partial_symbols)
10492 (handle_psymbol_enumerators): Update.
10493 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
10494 * dbxread.c (read_dbx_symtab): Update.
10495 * psympriv.h (psymbol_placement): New enum.
10496 (add_psymbol_to_list): Update.
10497
939652a5
TT
104982019-01-10 Tom Tromey <tom@tromey.com>
10499
10500 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
10501 static_psymbols parameters.
10502 (scan_xcoff_symtab): Update.
10503 * psymtab.c (start_psymtab_common): Remove global_psymbols and
10504 static_psymbols parameters.
10505 * psympriv.h (start_psymtab_common): Update.
10506 * mdebugread.c (parse_partial_symbols): Update.
10507 * dwarf2read.c (create_partial_symtab): Update.
10508 * dbxread.c (read_dbx_symtab): Update.
10509 (start_psymtab): Remove global_psymbols and static_psymbols
10510 parameters.
10511
baa62830
TT
105122019-01-10 Tom Tromey <tom@tromey.com>
10513
10514 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
10515 * psymtab.c (allocate_psymtab): Add comment.
10516 * psympriv.h (allocate_psymtab): Add comment.
10517 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
10518 initializations.
10519 * dbxread.c (dbx_end_psymtab): Remove some initializations.
10520
0e8f53ba
TT
105212019-01-10 Tom Tromey <tom@tromey.com>
10522
10523 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10524 Don't declare.
10525 * mipsread.c: Include mdebugread.h.
10526 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
10527 Declare.
10528 * elfread.c: Include mdebugread.h.
10529
b22a7c6a
TT
105302019-01-09 Tom Tromey <tom@tromey.com>
10531
10532 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
10533 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
10534 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
10535 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
10536 (psym_lookup_symbol, psym_find_last_source_symtab)
10537 (psym_forget_cached_source_info, psym_print_stats)
10538 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
10539 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
10540 (psym_map_matching_symbols, psym_expand_symtabs_matching)
10541 (psym_find_compunit_symtab_by_address)
10542 (maintenance_print_psymbols, maintenance_info_psymtabs)
10543 (maintenance_check_psymtabs): Use ranged for.
10544 * psymtab.h (class objfile_psymtabs): New.
10545 (require_partial_symbols): Return objfile_psymtabs.
10546 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
10547
3b9d3ac2
TT
105482019-01-09 Tom Tromey <tom@tromey.com>
10549
10550 * symfile.c (overlay_invalidate_all, find_pc_overlay)
10551 (find_pc_mapped_section, list_overlays_command)
10552 (map_overlay_command, unmap_overlay_command)
10553 (simple_overlay_update): Use all_objfiles.
10554 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
10555 * printcmd.c (info_symbol_command): Use all_objfiles.
10556 * objfiles.h (ALL_OBJSECTIONS): Remove.
10557 * maint.c (maintenance_translate_address): Use all_objfiles.
10558 * gcore.c (gcore_create_callback): Use all_objfiles.
10559 (objfile_find_memory_regions): Likewise.
10560
8b31193a
TT
105612019-01-09 Tom Tromey <tom@tromey.com>
10562
10563 * symtab.c (find_line_symtab, info_sources_command)
10564 (make_source_files_completion_list): Use objfile_compunits.
10565 * source.c (select_source_symtab): Use objfile_compunits.
10566 * objfiles.h (struct objfile): Update comment.
10567 (ALL_OBJFILES): Remove.
10568 (ALL_FILETABS): Remove.
10569 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
10570 objfile_compunits.
10571
d5da8b3c
TT
105722019-01-09 Tom Tromey <tom@tromey.com>
10573
10574 * symmisc.c (print_objfile_statistics, dump_objfile)
10575 (maintenance_print_symbols): Use compunit_filetabs.
10576 * source.c (forget_cached_source_info_for_objfile): Use
10577 compunit_filetabs.
10578 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
10579 (ALL_FILETABS): Use compunit_filetabs.
10580 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
10581 * coffread.c (coff_symtab_read): Use compunit_filetabs.
10582
5accd1a0
TT
105832019-01-09 Tom Tromey <tom@tromey.com>
10584
10585 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
10586 (compunit_filetabs): New.
10587 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
10588 compunit_filetabs.
10589 (info_sources_command, make_source_files_completion_list): Remove
10590 declaration.
10591 * symmisc.c (print_objfile_statistics, dump_objfile)
10592 (maintenance_print_symbols): Remove declaration.
10593 (maintenance_info_symtabs): Use compunit_filetabs.
10594 (maintenance_info_line_tables): Likewise.
10595 * source.c (select_source_symtab): Change local variable name.
10596 (forget_cached_source_info_for_objfile): Remove declaration.
10597 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
10598 * objfiles.c (objfile_relocate1): Remove declaration.
10599 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10600 declaration.
10601 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
10602 * coffread.c (coff_symtab_read): Remove declaration.
10603 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
10604 compunit_filetabs.
10605
d8aeb77f
TT
106062019-01-09 Tom Tromey <tom@tromey.com>
10607
10608 * symtab.c (lookup_objfile_from_block)
10609 (find_pc_sect_compunit_symtab, search_symbols)
10610 (default_collect_symbol_completion_matches_break_on): Use
10611 objfile_compunits.
10612 * objfiles.h (ALL_COMPUNITS): Remove.
10613 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
10614 * cp-support.c (add_symbol_overload_list_qualified): Use
10615 objfile_compunits.
10616 * ada-lang.c (ada_collect_symbol_completion_matches)
10617 (ada_add_global_exceptions): Use objfile_compunits.
10618
592553c4
TT
106192019-01-09 Tom Tromey <tom@tromey.com>
10620
10621 * source.c (select_source_symtab)
10622 (forget_cached_source_info_for_objfile): Remove declaration.
10623 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
10624 declaration.
10625 * maint.c (count_symtabs_and_blocks): Remove declaration.
10626 * cp-support.c (add_symbol_overload_list_qualified): Remove
10627 declaration.
10628 * coffread.c (coff_symtab_read): Remove declaration.
10629 * symtab.c (lookup_symbol_in_objfile_symtabs)
10630 (basic_lookup_transparent_type_1): Use objfile_compunits.
10631 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
10632 (info_sources_command, search_symbols)
10633 (default_collect_symbol_completion_matches_break_on)
10634 (make_source_files_completion_list): Remove declaration.
10635 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
10636 (ada_collect_symbol_completion_matches)
10637 (ada_add_global_exceptions): Remove declaration.
10638 * linespec.c (iterate_over_all_matching_symtabs): Use
10639 objfile_compunits.
10640 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
10641 (class objfile_compunits): New.
10642 (ALL_COMPUNITS): Use objfile_compunits.
10643 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
10644 (maintenance_check_symtabs, maintenance_info_line_tables): Use
10645 objfile_compunits.
10646 * objfiles.c (objfile_relocate1): Use objfile_compunits.
10647
5325b9bf
TT
106482019-01-09 Tom Tromey <tom@tromey.com>
10649
10650 * symtab.c (search_symbols)
10651 (default_collect_symbol_completion_matches_break_on): Use
10652 objfile_msymbols.
10653 * ada-lang.c (ada_lookup_simple_minsym)
10654 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
10655 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
10656 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
10657 objfile_msymbols.
10658 * coffread.c (coff_symfile_read): Use objfile_msymbols.
10659 * symmisc.c (dump_msymbols): Use objfile_msymbols.
10660 * objc-lang.c (find_methods): Use objfile_msymbols.
10661 (info_selectors_command, info_classes_command): Likewise.
10662 * stabsread.c (scan_file_globals): Use objfile_msymbols.
10663 * objfiles.h (class objfile_msymbols): New.
10664 (ALL_OBJFILE_MSYMBOLS): Remove.
10665 (ALL_MSYMBOLS): Remove.
10666
cac85af2
TT
106672019-01-09 Tom Tromey <tom@tromey.com>
10668
10669 * common/next-iterator.h (next_adapter): Add Iterator template
10670 parameter.
10671 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
10672 (class all_objfiles_safe): New.
10673 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
10674 * objfiles.c (put_objfile_before): Update comment.
10675 (add_separate_debug_objfile): Likewise.
10676 (free_all_objfiles): Use all_objfiles_safe.
10677 (objfile_purge_solibs): Likewise.
10678
aed57c53
TT
106792019-01-09 Tom Tromey <tom@tromey.com>
10680
10681 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10682 (expand_symtab_containing_pc, lookup_static_symbol)
10683 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
10684 (find_symbol_at_address, find_line_symtab, find_main_name): Use
10685 all_objfiles.
10686 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
10687 * breakpoint.c (create_overlay_event_breakpoint)
10688 (create_longjmp_master_breakpoint)
10689 (create_std_terminate_master_breakpoint)
10690 (create_exception_master_breakpoint): Use all_objfiles.
10691 * linux-thread-db.c (try_thread_db_load_from_pdir)
10692 (has_libpthread): Use all_objfiles.
10693 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
10694 * linespec.c (iterate_over_all_matching_symtabs)
10695 (search_minsyms_for_name): Use all_objfiles.
10696 * maint.c (maintenance_info_sections): Use all_objfiles.
10697 * main.c (captured_main_1): Use all_objfiles.
10698 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
10699 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
10700 * guile/scm-pretty-print.c
10701 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
10702 * solib-spu.c (append_ocl_sos): Use all_objfiles.
10703 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
10704 (maintenance_print_msymbols): Use all_objfiles.
10705 * source.c (select_source_symtab): Use all_objfiles.
10706 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
10707 * symfile.c (remove_symbol_file_command)
10708 (expand_symtabs_matching, map_symbol_filenames): Use
10709 all_objfiles.
10710 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
10711 all_objfiles.
10712 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
10713 * objc-lang.c (find_methods): Use all_objfiles.
10714 * objfiles.c (have_partial_symbols, have_full_symbols)
10715 (have_minimal_symbols, qsort_cmp)
10716 (default_iterate_over_objfiles_in_search_order): Use
10717 all_objfiles.
10718 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
10719 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
10720 (maintenance_check_psymtabs): Use all_objfiles.
10721 (ALL_PSYMTABS): Remove.
10722 * compile/compile-object-run.c (do_module_cleanup): Use
10723 all_objfiles.
10724 * blockframe.c (find_pc_partial_function): Use all_objfiles.
10725 * cp-support.c (add_symbol_overload_list_qualified): Use
10726 all_objfiles.
10727 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10728 Use all_objfiles.
10729 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
10730 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
10731 all_objfiles.
10732 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10733 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
10734 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10735 Uses all_objfiles.
10736 * solib.c (solib_read_symbols): Use all_objfiles
10737
99d89cde
TT
107382019-01-09 Tom Tromey <tom@tromey.com>
10739
10740 * probe.c (parse_probes_in_pspace): Use all_objfiles.
10741 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
10742 all_objfiles.
10743 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
10744 * symmisc.c (print_symbol_bcache_statistics)
10745 (print_objfile_statistics, maintenance_print_objfiles)
10746 (maintenance_info_symtabs, maintenance_check_symtabs)
10747 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
10748 all_objfiles.
10749 * source.c (forget_cached_source_info): Use all_objfiles.
10750 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
10751 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10752 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
10753 * objfiles.c (update_section_map): Use all_objfiles.
10754 (shared_objfile_contains_address_p): Likewise.
10755 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
10756 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
10757
21708325
TT
107582019-01-09 Tom Tromey <tom@tromey.com>
10759
10760 * common/next-iterator.h: New file.
10761 * objfiles.h (class all_objfiles): New.
10762 (struct objfile_iterator): New.
10763
669e09f6
PW
107642019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10765
10766 * NEWS: Move the description of the changed "frame", "select-frame",
10767 and "info frame" commands to the Changed commands section.
10768
041be526
SM
107692019-01-09 Simon Marchi <simon.marchi@ericsson.com>
10770
10771 * gdbtypes.c (check_stub_method_group): Remove handling of old
10772 mangling schemes.
10773 * linespec.c (find_methods): Likewise.
10774 * stabsread.c (read_member_functions): Likewise.
10775 * valops.c (search_struct_method): Likewise.
10776 (value_struct_elt_for_reference): Likewise.
10777 * NEWS: Mention this change.
10778
0e2a2133
AB
107792019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
10780
10781 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
10782 print_source_lines.
10783 * source.c (print_source_lines_base): Update line number check.
10784 (print_source_lines): New function.
10785 (source_lines_range::source_lines_range): New function.
10786 * source.h (class source_lines_range): New class.
10787 (print_source_lines): New declaration.
10788
1055a3b4
PW
107892019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10790
10791 * linespec.c (linespec_state_destructor): Free self->canonical_names.
10792
cfeadda5
TT
107932019-01-08 Tom Tromey <tom@tromey.com>
10794 Simon Marchi <simon.marchi@ericsson.com>
10795
10796 PR gdb/24060
10797 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
10798 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
10799 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10800 * f-exp.y (DOLLAR_VARIABLE): Likewise.
10801 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
10802 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
10803
583068ca
AB
108042019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * source.c (select_source_symtab): Move header comment to
10807 declaration in source.h.
10808 (forget_cached_source_info_for_objfile): Likewise.
10809 (forget_cached_source_info): Likewise.
10810 (identify_source_line): Likewise.
10811 * source.h (identify_source_line): Move declaration from symtab.h
10812 and add comment from source.c
10813 (print_source_lines): Likewise.
10814 (forget_cached_source_info_for_objfile): Likewise.
10815 (forget_cached_source_info): Likewise.
10816 (select_source_symtab): Likewise.
10817 (enum print_source_lines_flag): Move definition from symtab.h.
10818 * symtab.h (identify_source_line): Move declaration to source.h.
10819 (print_source_lines): Likewise.
10820 (forget_cached_source_info_for_objfile): Likewise.
10821 (forget_cached_source_info): Likewise.
10822 (select_source_symtab): Likewise.
10823 (enum print_source_lines_flag): Move definition to source.h.
10824 * tui/tui-hooks.c: Add 'source.h' include.
10825
ec98a4ad
AB
108262019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10827
10828 * source.c (print_source_lines_base): Handle requests to print
10829 reverse line number sequences, and guard against empty lines
10830 string.
10831
62ea19c1
AB
108322019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
10833
10834 * source.c (print_source_lines_base): Fix skip of '\r' if next
10835 character is '\n'.
10836
9d30e1fd
TT
108372019-01-06 Tom Tromey <tom@tromey.com>
10838
10839 * c-exp.y (struct c_parse_state) <macro_original_text,
10840 expansion_obstack>: New member.
10841 (macro_original_text, expansion_obstack): Remove globals.
10842 (scan_macro_expansion, scanning_macro_expansion)
10843 (finished_macro_expansion): Update.
10844 (scan_macro_cleanup): Remove.
10845 (yylex, c_parse): Update.
10846
c65bac38
TT
108472019-01-06 Tom Tromey <tom@tromey.com>
10848
10849 * c-exp.y (struct c_parse_state) <strings>: New member.
10850 (operator_stoken): Update.
10851
02e12e38
TT
108522019-01-06 Tom Tromey <tom@tromey.com>
10853
10854 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
10855 (union type_stack_elt) <typelist_val>: Now a pointer to
10856 std::vector.
10857 (type_stack_cleanup): Don't declare.
10858 (push_typelist): Update.
10859 * parse.c (pop_typelist): Return a std::vector.
10860 (push_typelist): Take a std::vector.
10861 (follow_types): Update. Do not free args.
10862 (type_stack_cleanup): Remove.
10863 * c-exp.y (struct c_parse_state): New.
10864 (cpstate): New global.
10865 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
10866 (nonempty_typelist): Update.
10867 (func_mod): Create a new vector.
10868 (c_parse): Create a c_parse_state.
10869 (check_parameter_typelist): Do not delete params.
10870 (function_method): Update. Do not delete type_list.
10871
f097f5ad
TT
108722019-01-06 Tom Tromey <tom@tromey.com>
10873
10874 PR gdb/28155:
10875 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
10876 check_typedef.
10877 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
10878 (print_return_value): Likewise.
10879
d2adf9f1
TT
108802019-01-05 Tom Tromey <tom@tromey.com>
10881
10882 * contrib/cleanup_check.py: Remove.
10883 * contrib/gcc-with-excheck: Remove.
10884 * contrib/exsummary.py: Remove.
10885 * contrib/excheck.py: Remove.
10886
2eab46b1
JB
108872019-01-05 Joel Brobecker <brobecker@adacore.com>
10888
10889 * thread.c (delete_thread_1): Add gdb_assert that THR is not
10890 NULL. Initialize tpprev to NULL instead of assigning it
10891 to NULL on the next statement.
10892 * windows-nat.c (windows_delete_thread): Remove check for
10893 main_thread_id before printing thread exit notifications.
10894 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
10895 Remove thread ID check against main_thread_id.
10896 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
10897 windows_delete_thread.
10898 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
10899
48c5e7e2
TT
109002019-01-04 Tom Tromey <tom@tromey.com>
10901
10902 * compile/compile.c (_initialize_compile): Use upper case for
10903 metasyntactic variables.
10904 * symmisc.c (_initialize_symmisc): Use upper case for
10905 metasyntactic variables.
10906 * psymtab.c (_initialize_psymtab): Use upper case for
10907 metasyntactic variables.
10908 * demangle.c (demangle_command): Use upper case for metasyntactic
10909 variables.
10910 (_initialize_demangler): Likewise.
10911 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
10912 variables.
10913
986041cd
TT
109142019-01-03 Tom Tromey <tom@tromey.com>
10915
10916 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
10917
7c711119
TT
109182019-01-03 Tom Tromey <tom@tromey.com>
10919
10920 * python/py-symtab.c (salpy_str): Update.
10921 (struct salpy_sal_object) <symtab>: Now a PyObject.
10922 (salpy_dealloc): Update.
10923 (del_objfile_sal): Use gdbpy_ref.
10924
1b20edf0
TT
109252019-01-03 Tom Tromey <tom@tromey.com>
10926
10927 * python/py-type.c (convert_field): Use new_reference. Return
10928 gdbpy_ref.
10929 (make_fielditem): Return gdbpy_ref.
10930 (typy_fields): Update.
10931 (typy_getitem): Update.
10932 (field_name): Return gdbpy_ref. Use new_reference.
10933 (typy_iterator_iternext): Update.
10934
ea41325b
TT
109352019-01-03 Tom Tromey <tom@tromey.com>
10936
10937 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
10938
2a3c71d6
TT
109392019-01-03 Tom Tromey <tom@tromey.com>
10940
10941 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
10942 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
10943 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
10944 (pspy_set_frame_filters, pspy_set_frame_unwinders)
10945 (pspy_set_type_printers): Likewise.
10946 * python/py-function.c (fnpy_init): Use gdbpy_ref.
10947 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
10948 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
10949 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
10950 (objfpy_set_type_printers): Likewise.
10951
5c329e6a
TT
109522019-01-03 Tom Tromey <tom@tromey.com>
10953
10954 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
10955 (gdbpy_print_stack): Use gdbpy_err_fetch.
10956 * python/python-internal.h (class gdbpy_err_fetch): New class.
10957 (class gdbpy_enter) <m_error_type, m_error_value,
10958 m_error_traceback>: Remove.
10959 <m_error>: New member.
10960 (gdbpy_exception_to_string): Don't declare.
10961 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
10962 * python/py-value.c (convert_value_from_python): Use
10963 gdbpy_err_fetch.
10964 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
10965 gdbpy_exception_to_string.
10966 (gdbpy_handle_exception): Use gdbpy_err_fetch.
10967 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
10968 gdbpy_err_fetch.
10969
169bb27b
AB
109702019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10971
10972 * linux-nat.c (delete_lwp_cleanup): Delete.
10973 (struct lwp_deleter): New struct.
10974 (lwp_info_up): New typedef.
10975 (linux_nat_target::follow_fork): Delete cleanup, and make use of
10976 lwp_info_up.
10977
a07c8880
AB
109782019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10979
10980 * linux-fork.c (class scoped_switch_fork_info): New class.
10981 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
10982
26089c49
AB
109832019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10984
10985 * valops.c (find_overload_match): Remove use of null_cleanup, and
10986 calls to do_cleanups.
10987
06d3e5b0
AB
109882019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
10989
10990 * compile/compile-cplus-types.c
10991 (compile_cplus_instance::decl_name): Handle changes to
10992 cp_func_name.
10993 * cp-support.c (cp_func_name): Update header comment, update
10994 return type.
10995 * cp-support.h (cp_func_name): Update return type in declaration.
10996 * valops.c (find_overload_match): Move temp_func local to top
10997 level of function and change its type. Use temp_func to hold and
10998 delete temporary string obtained from cp_func_name.
10999
66644cd3
AB
110002019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11001
11002 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11003 gdb::char_vector, remove cleanup, and update uses of `msg`.
11004
592d8c0a
JW
110052019-01-03 Jim Wilson <jimw@sifive.com>
11006
11007 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11008
c55d06ec
TT
110092019-01-02 Tom Tromey <tom@tromey.com>
11010
11011 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11012 (tdesc_parse_xml): Remove cleanups.
11013 * target-descriptions.h (make_cleanup_free_target_description):
11014 Don't declare.
11015 (target_desc_deleter): New struct.
11016 (target_desc_up): New typedef.
11017 * target-descriptions.c (target_desc_deleter::operator()): Rename
11018 from free_target_description.
11019 (make_cleanup_free_target_description): Remove.
11020
3a6ae42d
TT
110212019-01-02 Tom Tromey <tom@tromey.com>
11022
11023 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11024 constructor, destructor.
11025 (linespec_parser): Remove typedef.
11026 (~linespec_parser): Rename from linespec_parser_delete.
11027 (linespec_lex_to_end, linespec_complete_label)
11028 (linespec_complete): Update.
11029 (decode_line_full): Remove cleanups.
11030 (decode_line_1): Update.
11031
61fd3e73
TT
110322019-01-02 Tom Tromey <tom@tromey.com>
11033
11034 * python/python-internal.h (inferior_to_inferior_object): Change
11035 return type.
11036 * python/py-exitedevent.c (create_exited_event_object): Update.
11037 * python/py-inferior.c (inferior_to_inferior_object): Return
11038 gdbpy_ref.
11039 (python_new_inferior, python_inferior_deleted)
11040 (thread_to_thread_object, delete_thread_object)
11041 (build_inferior_list, gdbpy_selected_inferior): Update.
11042 * python/py-infthread.c (create_thread_object): Update. Also fail
11043 if inferior_to_inferior_object fails.
11044
d20172fc
SM
110452019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11046
11047 * inferior.h (class inferior) <displaced_step_state>: New field.
11048 * infrun.h (struct displaced_step_state): Move here from
11049 infrun.c. Initialize fields, add constructor.
11050 <inf>: Remove field.
11051 <reset>: New method.
11052 * infrun.c (struct displaced_step_inferior_state): Move to
11053 infrun.h.
11054 (displaced_step_inferior_states): Remove.
11055 (get_displaced_stepping_state): Adust.
11056 (displaced_step_in_progress_any_inferior): Adjust.
11057 (displaced_step_in_progress_thread): Adjust.
11058 (displaced_step_in_progress): Adjust.
11059 (add_displaced_stepping_state): Remove.
11060 (get_displaced_step_closure_by_addr): Adjust.
11061 (remove_displaced_stepping_state): Remove.
11062 (infrun_inferior_exit): Call displaced_step_state.reset.
11063 (use_displaced_stepping): Don't check for NULL.
11064 (displaced_step_prepare_throw): Call
11065 get_displaced_stepping_state.
11066 (displaced_step_fixup): Don't check for NULL.
11067 (prepare_for_detach): Don't check for NULL.
11068
e3319240
PW
110692019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11070
11071 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11072 in case of call that did not complete.
11073
5d36dfb9
AU
110742019-01-02 Andrey Utkin <autkin@undo.io>
11075
11076 * symfile.c (find_separate_debug_file): Fix search of debug files for
11077 remote debuggee.
11078
8833fbf0
TT
110792019-01-02 Tom Tromey <tom@tromey.com>
11080
11081 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11082 indentation.
11083 * python/py-frame.c (frapy_older): Remove cast.
11084 (frapy_newer): Likewise.
11085 * python/py-breakpoint.c (local_setattro): Remove cast.
11086 * python/py-arch.c (archpy_name): Remove local variable.
11087 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11088
4ada3dfd
JB
110892019-01-02 Joel Brobecker <brobecker@adacore.com>
11090
11091 * unittests/basic_string_view/element_access/char/empty.cc:
11092 Fix year range in copyright header.
11093
113b7b81
AB
110942019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11095
11096 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11097 Delete.
11098 <operator==>: Update with for removed field.
11099 <hash>: Likewise.
11100 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11101 <isa_features>: ...this.
11102 <abi_features>: New field.
11103 (riscv_isa_flen): Update comment.
11104 (riscv_abi_xlen): New declaration.
11105 (riscv_abi_flen): New declaration.
11106 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11107 isa_features.
11108 (riscv_abi_xlen): New function.
11109 (riscv_isa_flen): Update to get answer from isa_features.
11110 (riscv_abi_flen): New function.
11111 (riscv_has_fp_abi): Update to get answer from abi_features.
11112 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11113 xlen and flen.
11114 (riscv_call_info) <xlen, flen>: Update comment.
11115 (riscv_call_arg_struct): Remove invalid assertions
11116 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11117 is removed.
11118 (riscv_gdbarch_init): Gather isa features and abi features
11119 separately, ensure both match on the gdbarch when reusing an old
11120 gdbarch. Relax an error check to allow 32-bit abi float to run on
11121 a target with 64-bit float hardware.
11122
b18ca514
PW
111232019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11124
11125 * source.c (search_command_helper): Stop reverse search
11126 when line 1 has been searched.
11127
ec70d8db
PW
111282019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11129
11130 * record-full.c (record_full_base_target::close): Rewrite
11131 record_full_core_buf_list free logic.
11132
5b38f9c1
PW
111332019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11134
11135 * break-catch-syscall.c (print_one_catch_syscall): xfree
11136 the last text.
11137
66d91b39
JB
111382019-01-01 Joel Brobecker <brobecker@adacore.com>
11139
11140 * top.c (print_gdb_version): Update Copyright year in version
11141 message.
11142
42a4f53d
JB
111432019-01-01 Joel Brobecker <brobecker@adacore.com>
11144
11145 Update copyright year range in all GDB files.
11146
7e955d83 111472019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11148
5bbd631d 11149 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11150
5bbd631d 11151For older changes see ChangeLog-2018.
c906108c
SS
11152\f
11153Local Variables:
11154mode: change-log
11155left-margin: 8
11156fill-column: 74
11157version-control: never
57da7796 11158coding: utf-8
c906108c 11159End:
5bbd631d 11160
This page took 3.525869 seconds and 4 git commands to generate.