beos.em qsort predicate tidy
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12019-09-06 Alan Modra <amodra@gmail.com>
2
3 * coffread.c (coff_symfile_read): Constify filename variable.
4 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
6 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
7 * solib.c (reload_shared_libraries_1): Likewise.
8 * symfile.c (reread_symbols): Likewise.
9 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
10 * solib-darwin.c (darwin_bfd_open): Likewise.
11 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
12
132019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
14
15 * psymtab.c (print_partial_symbols): Handle missing domain_enum
16 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
17
182019-09-03 Tom Tromey <tromey@adacore.com>
19
20 * ada-valprint.c (ada_val_print_num): Don't recurse for range
21 types.
22 (has_negatives): Unbias a range type bound.
23 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
24 * gdbtypes.c (operator==): Handle new field.
25 (create_range_type): Add "bias" parameter.
26 (create_static_range_type, resolve_dynamic_range): Update.
27 * gdbtypes.h (struct range_bounds) <bias>: New member.
28 (create_range_type): Add bias parameter.
29 * printcmd.c (print_scalar_formatted): Unbias range types.
30 * value.c (unpack_long): Unbias range types.
31 (pack_long): Bias range types.
32
332019-09-02 Alan Hayward <alan.hayward@arm.com>
34
35 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
36 probe arguments.
37
382019-09-02 Alan Hayward <alan.hayward@arm.com>
39
40 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
41 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
42 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
43 (compile_probe_arg): Likewise.
44 * probe.h (get_argument_count): Likewise.
45 * solib-svr4.c (solib_event_probe_action): Likewise.
46 * stap-probe.c (stap_probe::get_argument_count): Likewise.
47
482019-09-02 Alan Hayward <alan.hayward@arm.com>
49
50 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
51 code to here...
52 (svr4_create_solib_event_breakpoints): ...from here.
53
542019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
55
56 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
57 suffix from warning message.
58
592019-08-30 Tom Tromey <tom@tromey.com>
60
61 * tui/tui-winsource.h (struct tui_source_window_base)
62 <refresh_all>: Don't declare.
63 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
64 Remove.
65 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
66 tui_show_locator_content.
67 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
68 declare.
69 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
70 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
71 declare.
72
732019-08-30 Tom Tromey <tom@tromey.com>
74
75 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
76
772019-08-30 Tom Tromey <tom@tromey.com>
78
79 * tui/tui-stack.c (_initialize_tui_stack): Move later.
80 Remove unnecessary forward declarations.
81
822019-08-30 Tom Tromey <tom@tromey.com>
83
84 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
85 rerender.
86 (tui_update_locator_fullname, tui_show_frame_info): Don't call
87 tui_show_locator_content.
88
892019-08-30 Tom Tromey <tom@tromey.com>
90
91 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
92 (tui_locator_window::rerender): Rewrite using body of previous
93 tui_show_locator_content.
94
952019-08-30 Tom Tromey <tom@tromey.com>
96
97 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
98 set_locator_fullname>: New methods.
99 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
100 Rename from tui_set_locator_fullname.
101 (tui_locator_window::set_locator_info): Rename from
102 tui_set_locator_info. Return bool.
103 (tui_update_locator_fullname, tui_show_frame_info): Update.
104
1052019-08-30 Tom Tromey <tom@tromey.com>
106
107 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
108
1092019-08-30 Tom Tromey <tom@tromey.com>
110
111 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
112 call touchwin.
113
1142019-08-30 Tom Tromey <tom@tromey.com>
115
116 * tui/tui-wingeneral.c (box_win): Assume win_info and
117 win_info->handle cannot be NULL.
118
1192019-08-30 Tom Tromey <tom@tromey.com>
120
121 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
122 refresh_window>: Declare.
123 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
124 resize.
125 (tui_data_item_window::rerender): Rename from
126 tui_display_register.
127 (tui_data_item_window::refresh_window): New method.
128 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
129 no-op.
130
1312019-08-30 Tom Tromey <tom@tromey.com>
132
133 * tui/tui-regs.h (struct tui_data_window) <regs_content,
134 regs_column_count, current_group>: Move later. Now private.
135 <get_current_group>: New method.
136 * tui/tui-regs.c (tui_reg_command): Update.
137 * tui/tui-layout.c (tui_set_layout): Update.
138
1392019-08-30 Tom Tromey <tom@tromey.com>
140
141 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
142 (tui_data_window::rerender): Don't call
143 check_and_display_highlight_if_needed.
144 (tui_data_window::refresh_all): Remove call to
145 erase_data_content.
146
1472019-08-30 Tom Tromey <tom@tromey.com>
148
149 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
150 (tui_data_window::display_registers_from)
151 (tui_data_window::display_reg_element_at_line)
152 (tui_data_window::display_registers_from_line): Remove checks of
153 "empty".
154
1552019-08-30 Tom Tromey <tom@tromey.com>
156
157 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
158 Don't declare.
159 * tui/tui-regs.c (tui_data_window::show_registers): Call
160 rerender.
161 (tui_data_window::rerender): Rename from display_all_data.
162 (tui_data_window::rerender): Remove old implementation.
163
1642019-08-30 Tom Tromey <tom@tromey.com>
165
166 * tui/tui-regs.c (tui_data_window::display_all_data): Change
167 text.
168 * tui/tui-data.h (NO_DATA_STRING): Remove define.
169
1702019-08-29 Bernhard Wodok <barto@gmx.net>
171 Sergio Durigan Junior <sergiodj@redhat.com>
172
173 PR win32/24284
174 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
175
1762019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
177
178 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
179 when searching for types.
180
1812019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
182
183 * f-lang.c (f_language_defn): Use f_print_typedef.
184 * f-lang.h (f_print_typedef): Declare.
185 * f-typeprint.c (f_print_typedef): Define.
186
1872019-08-27 Christian Biesinger <cbiesinger@google.com>
188
189 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
190
1912019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
192
193 * cli/cli-utils.c (info_print_options_defs): Delete.
194 (make_info_print_options_def_group): Delete.
195 (extract_info_print_options): Delete.
196 (info_print_command_completer): Delete.
197 (info_print_args_help): Add extra parameter, and optionally
198 include text about -n flag.
199 * cli/cli-utils.h (struct info_print_options): Delete.
200 (extract_info_print_options): Delete declaration.
201 (info_print_command_completer): Delete declaration.
202 (info_print_args_help): Add extra parameter, extend header
203 comment.
204 * python/python.c (gdbpy_rbreak): Pass additional parameter to
205 search_symbols.
206 * stack.c (struct info_print_options): New type.
207 (info_print_options_defs): New file scoped variable.
208 (make_info_print_options_def_group): New static function.
209 (info_print_command_completer): New static function.
210 (info_locals_command): Update to use new local functions.
211 (info_args_command): Likewise.
212 (_initialize_stack): Add extra parameter to calls to
213 info_print_args_help.
214 * symtab.c (search_symbols): Add extra parameter, use this to
215 possibly excluse non-debug symbols.
216 (symtab_symbol_info): Add extra parameter, which is passed on to
217 search_symbols.
218 (struct info_print_options): New type.
219 (info_print_options_defs): New file scoped variable.
220 (make_info_print_options_def_group): New static function.
221 (info_print_command_completer): New static function.
222 (info_variables_command): Update to use local functions, and pass
223 extra parameter through to symtab_symbol_info.
224 (info_functions_command): Likewise.
225 (info_types_command): Pass additional argument through to
226 symtab_symbol_info.
227 (rbreak_command): Pass extra argument to search_symbols.
228 (_initialize_symtab): Add extra arguments for calls to
229 info_print_args_help, and update help text for 'info variables',
230 'whereis', and 'info functions' commands.
231 * symtab.h (search_symbols): Add extra argument to declaration.
232 * NEWS: Mention new flags.
233
2342019-08-26 Christian Biesinger <cbiesinger@google.com>
235
236 * symtab.c (lookup_static_symbol): Call the new function (and move
237 it down to be next to lookup_global_symbol).
238 (struct global_sym_lookup_data): Add block_enum member and rename to...
239 (struct global_or_static_sym_lookup_data): ...this.
240 (lookup_symbol_global_iterator_cb): Pass block_index instead of
241 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
242 (lookup_symbol_global_or_static_iterator_cb): ...this.
243 (lookup_global_or_static_symbol): New function.
244 (lookup_global_symbol): Call new function.
245
2462019-08-26 Tom de Vries <tdevries@suse.de>
247
248 PR c++/24852
249 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
250 when pc_probe.prob == NULL.
251
2522019-08-25 Simon Marchi <simon.marchi@efficios.com>
253
254 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
255 variable symbol_linkage to symbol_linkage_.
256
2572019-08-25 Simon Marchi <simon.marchi@efficios.com>
258
259 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
260 represent whether the symbol is static, dynamic, or we don't
261 know.
262
2632019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
264
265 * gdb/rx-tdep.c (rx_register_names): New.
266 (rx_register_name): Delete.
267 (rx_psw_type): Delete.
268 (rx_fpsw_type): Delete.
269 (rx_register_type): Delete.
270 (rx_gdbarch_init): Convert target-descriptions.
271 (_initialize_rx_tdep): Add initialize_tdesc_rx.
272 * gdb/features/Makefile: Add rx.xml.
273 * gdb/features/rx.xml: New.
274 * gdb/features/rx.c: Generated.
275 * gdb/NEWS: Mention target description support.
276
2772019-08-22 Christian Biesinger <cbiesinger@google.com>
278
279 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
280 *slot_ptr.
281
2822019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
283
284 * configure.ac: Don't check for 'dlfcn.h' (moved to
285 gdbsupport/common.m4).
286 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
287 'gdbsupport/'.
288 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
289 * compile/compile-c-support.c: Include
290 'gdbsupport/gdb-dlfcn.h'.
291 * gdbsupport/common.m4: Check for 'dlfcn.h'.
292 * gdb-dlfcn.c: Move to...
293 * gdbsupport/gdb-dlfcn.c: ... here.
294 * gdb-dlfcn.h: Move to...
295 * gdbsupport/gdb-dlfcn.h: ... here.
296
2972019-08-23 Sandra Loosemore <sandra@codesourcery.com>
298
299 * nios2-tdep.c (struct reg_value): Improve comments. Make
300 the offset field signed.
301
3022019-08-22 Christian Biesinger <cbiesinger@google.com>
303
304 * python/lib/gdb/__init__.py (_execute_file): New function.
305 * python/python.c (python_run_simple_file): Call gdb._execute_file
306 on Windows.
307
3082019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
309
310 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
311 all uses as this was never set to anything but a zero value.
312
3132019-08-21 Bogdan Harjoc <harjoc@gmail.com>
314
315 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
316
3172019-08-21 Christian Biesinger <cbiesinger@google.com>
318
319 * tui/tui-data.h (tui_gen_win_info): Add an =default
320 move constructor, required by some GCC versions.
321
3222019-08-21 Jinke Fan <fanjinke51@yeah.net>
323
324 * go32-nat.c (go32_sysinfo): Add hygon_p.
325
3262019-08-20 Tom Tromey <tom@tromey.com>
327
328 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
329 line_from_reg_element_no, first_reg_element_no_inline,
330 display_all_data, delete_data_content_windows,
331 erase_data_content>: Now private.
332
3332019-08-20 Tom Tromey <tom@tromey.com>
334
335 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
336 (tui_unhighlight_win, tui_highlight_win)
337 (tui_win_info::make_window): Update.
338 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
339
3402019-08-20 Tom Tromey <tom@tromey.com>
341
342 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
343 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
344 (MAX_PID_WIDTH): Move to tui-stack.c.
345 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
346 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
347 (MAX_PID_WIDTH): Move from tui-data.h.
348
3492019-08-20 Tom Tromey <tom@tromey.com>
350
351 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
352 * tui/tui-wingeneral.c (box_win): Change type of win_info.
353 (box_win): Update.
354 (tui_gen_win_info::make_window): Rename from tui_make_window.
355 (tui_win_info::make_window): New method.
356 (tui_gen_win_info::make_visible): Update.
357 * tui/tui-source.c (tui_source_window::set_contents): Update.
358 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
359 (tui_data_window::display_registers_from): Update.
360 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
361 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
362 Declare.
363 <can_box>: Remove.
364 <title>: Remove.
365 (struct tui_win_info) <make_window>: Declare.
366 <can_box>: Now virtual.
367 <title>: New member.
368 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
369 * tui/tui-command.c (tui_cmd_window::resize): Update.
370
3712019-08-20 Tom Tromey <tom@tromey.com>
372
373 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
374 * tui/tui-regs.c (tui_data_window::show_registers): Update.
375 (tui_data_window::check_register_values): Update.
376
3772019-08-20 Tom Tromey <tom@tromey.com>
378
379 * tui/tui-regs.h (struct tui_data_window): Use
380 DISABLE_COPY_AND_ASSIGN.
381 <regs_content>: Change type, removing unique_ptr.
382 <tui_data_window>: Add move constructor.
383 * tui/tui-regs.c (tui_data_window::show_registers)
384 (tui_data_window::show_register_group)
385 (tui_data_window::display_registers_from)
386 (tui_data_window::display_registers_from)
387 (tui_data_window::first_data_item_displayed)
388 (tui_data_window::delete_data_content_windows)
389 (tui_data_window::rerender, tui_data_window::refresh_window)
390 (tui_data_window::check_register_values): Update.
391
3922019-08-20 Tom Tromey <tom@tromey.com>
393
394 * tui/tui-regs.h (struct tui_data_window) <show_registers,
395 show_register_group>: Declare.
396 (tui_show_register_group): Don't declare.
397 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
398 tui_show_registers.
399 (tui_data_window::show_register_group): Rename from
400 tui_show_register_group.
401 (tui_data_window::check_register_values, tui_reg_command):
402 Update.
403 * tui/tui-layout.c (tui_set_layout): Update.
404
4052019-08-20 Tom Tromey <tom@tromey.com>
406
407 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
408 Declare.
409 (tui_check_register_values): Don't declare.
410 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
411 from tui_check_register_values.
412 * tui/tui-hooks.c (tui_register_changed): Update.
413
4142019-08-20 Tom Tromey <tom@tromey.com>
415
416 * tui/tui-regs.c (tui_reg_layout): Move later.
417 (tui_show_registers): Don't enable TUI mode or change layout.
418
4192019-08-20 Tom Tromey <tom@tromey.com>
420
421 * tui/tui-regs.h (struct tui_data_item_window)
422 <~tui_data_item_window>: Remove.
423 <content>: Now a unique_xmalloc_ptr.
424 * tui/tui-regs.c (tui_register_format): Return a
425 unique_xmalloc_ptr.
426 (tui_get_register): Update.
427 (~tui_data_item_window): Remove.
428 (tui_data_window::display_registers_from, tui_display_register):
429 Update.
430 * tui/tui-io.h (tui_expand_tabs): Update.
431 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
432 Remove "col" parameter.
433
4342019-08-20 Tom Tromey <tom@tromey.com>
435
436 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
437 field.
438 * tui/tui-regs.c (~tui_data_item_window): Update.
439
4402019-08-20 Tom Tromey <tom@tromey.com>
441
442 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
443 earlier.
444
4452019-08-20 Tom Tromey <tom@tromey.com>
446
447 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
448
4492019-08-20 Tom Tromey <tom@tromey.com>
450
451 * tui/tui-source.h (struct tui_source_window): Update.
452 * tui/tui-regs.c (tui_show_registers): Update.
453 * tui/tui-disasm.h (struct tui_disasm_window): Update.
454 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
455 (NO_REGS_STRING): Remove defines.
456
4572019-08-20 Conrad Meyer <cem@FreeBSD.org>
458
459 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
460 unnecessary thread walk if remote doesn't support the packet.
461
4622019-08-19 Tom Tromey <tromey@adacore.com>
463
464 * python/py-value.c (value_has_field): Fix indentation.
465
4662019-08-19 Tom Tromey <tromey@adacore.com>
467
468 * printcmd.c (do_one_display, info_display_command): Update.
469 * block.h (contained_in): Return bool. Add allow_nested
470 parameter.
471 * block.c (contained_in): Return bool. Add allow_nested
472 parameter.
473
4742019-08-19 Tom Tromey <tom@tromey.com>
475
476 * configure: Rebuild.
477 * configure.ac: Disallow the combination of -static-libstdc++ and
478 source highlight.
479 * source-cache.c (get_language_name): Handle rust.
480 (source_cache::get_source_lines): Ignore highlighting exceptions.
481
4822019-08-16 Tom Tromey <tom@tromey.com>
483
484 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
485 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
486 (struct tui_source_window_base) <make_visible, refresh_window,
487 resize>: Remove methods.
488 <execution_info>: Remove field.
489 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
490 (tui_show_source_line, tui_source_window_base)
491 (~tui_source_window_base): Update.
492 (tui_source_window_base::resize)
493 (tui_source_window_base::make_visible)
494 (tui_source_window_base::refresh_window): Remove.
495 (tui_source_window_base::update_exec_info): Update.
496 * tui/tui-source.c (tui_source_window::set_contents): Update.
497 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
498
4992019-08-16 Tom Tromey <tom@tromey.com>
500
501 * tui/tui-hooks.c (tui_remove_hooks): Don't set
502 deprecated_query_hook.
503
5042019-08-16 Tom Tromey <tom@tromey.com>
505
506 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
507 (tui_update_source_windows_with_line): Update.
508 * tui/tui-source.h (struct tui_source_window)
509 <show_symtab_source>: Declare.
510 (tui_show_symtab_source): Don't declare.
511 * tui/tui-source.c (tui_show_symtab_source): Rename from
512 tui_show_symtab_source.
513
5142019-08-16 Tom Tromey <tom@tromey.com>
515
516 * tui/tui-winsource.h (struct tui_source_window_base)
517 <set_contents>: Declare.
518 * tui/tui-winsource.c
519 (tui_source_window_base::update_source_window_as_is): Update.
520 * tui/tui-source.h (struct tui_source_window) <set_contents>:
521 Declare.
522 (tui_set_source_content): Don't declare.
523 * tui/tui-source.c (tui_source_window::set_contents): Rename from
524 tui_set_source_content.
525 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
526 Declare.
527 (tui_set_disassem_content): Don't declare.
528 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
529 tui_set_disassem_content.
530
5312019-08-16 Tom Tromey <tom@tromey.com>
532
533 * tui/tui-winsource.h (struct tui_source_window_base)
534 <update_breakpoint_info>: Declare.
535 (tui_update_breakpoint_info): Don't declare.
536 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
537 (tui_update_all_breakpoint_info): Update.
538 (tui_source_window_base::update_breakpoint_info): Rename from
539 tui_update_breakpoint_info.
540 (tui_source_window_base::update_exec_info): Update.
541
5422019-08-16 Tom Tromey <tom@tromey.com>
543
544 * tui/tui-winsource.h (struct tui_source_window_base)
545 <update_source_window>: Declare.
546 (tui_update_source_window): Don't declare.
547 * tui/tui-winsource.c
548 (tui_source_window_base::update_source_window): Rename from
549 tui_update_source_window.
550 (tui_source_window_base::rerender): Update.
551 * tui/tui-source.c (tui_source_window::maybe_update): Update.
552 * tui/tui-disasm.c (tui_show_disassem)
553 (tui_show_disassem_and_update_source)
554 (tui_disasm_window::maybe_update): Update.
555
5562019-08-16 Tom Tromey <tom@tromey.com>
557
558 * tui/tui-winsource.h (struct tui_source_window_base)
559 <update_source_window_as_is>: Declare.
560 (tui_update_source_window_as_is): Don't declare.
561 * tui/tui-winsource.c (tui_update_source_window): Update
562 (tui_source_window_base::update_source_window_as_is): Rename from
563 tui_update_source_window_as_is.
564 (tui_source_window_base::refill): Update.
565 * tui/tui-source.c (tui_show_symtab_source): Update.
566 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
567 Update.
568
5692019-08-16 Tom Tromey <tom@tromey.com>
570
571 * tui/tui-winsource.h (tui_update_source_window)
572 (tui_update_source_window_as_is): Remove "noerror" parameter.
573 * tui/tui-winsource.c (tui_update_source_window)
574 (tui_update_source_window_as_is): Remove "noerror" parameter.
575 (tui_update_source_windows_with_addr)
576 (tui_update_source_windows_with_line)
577 (tui_source_window_base::rerender)
578 (tui_source_window_base::refill): Update.
579 * tui/tui-source.h (tui_set_source_content)
580 (tui_show_symtab_source): Remove "noerror" parameter.
581 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
582 parameter.
583 (tui_show_symtab_source): Likewise.
584 (tui_source_window::maybe_update): Update.
585 * tui/tui-disasm.c (tui_show_disassem)
586 (tui_show_disassem_and_update_source)
587 (tui_disasm_window::do_scroll_vertical)
588 (tui_disasm_window::maybe_update): Update.
589
5902019-08-16 Tom Tromey <tom@tromey.com>
591
592 * tui/tui.c (tui_is_window_visible): Update.
593 * tui/tui-wingeneral.c (tui_make_window)
594 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
595 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
596 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
597 (tui_set_win_height_command, parse_scrolling_args): Update.
598 * tui/tui-source.c (tui_source_window::style_changed): Update.
599 * tui/tui-regs.c (tui_show_registers)
600 (tui_data_window::first_data_item_displayed)
601 (tui_data_window::delete_data_content_windows)
602 (tui_check_register_values, tui_reg_command): Update.
603 * tui/tui-disasm.c (tui_show_disassem): Update.
604 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
605 method.
606 <is_visible>: Remove field.
607 * tui/tui-data.c (tui_next_win, tui_prev_win)
608 (tui_delete_invisible_windows): Update.
609
6102019-08-16 Tom Tromey <tom@tromey.com>
611
612 * tui/tui-winsource.h (struct tui_source_window_base)
613 <m_has_locator>: Remove.
614 * tui/tui-layout.c (show_source_disasm_command, show_data)
615 (show_source_or_disasm_and_command): Update.
616
6172019-08-16 Alan Hayward <alan.hayward@arm.com>
618
619 * NEWS (Other MI changes): New subsection.
620 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
621 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
622 * arch-utils.c (default_get_pc_address_flags): New function.
623 * arch-utils.h (default_get_pc_address_flags): New declaration.
624 * gdbarch.sh: Add get_pc_address_flags.
625 * gdbarch.c: Regenerate.
626 * gdbarch.h: Likewise.
627 * stack.c (print_pc): New function.
628 (print_frame_info) (print_frame): Call print_pc.
629
6302019-08-16 Tom de Vries <tdevries@suse.de>
631
632 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
633 print_objfile_section_info.
634
6352019-08-15 Tom Tromey <tom@tromey.com>
636
637 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
638 calling update_cmdwin_start_line.
639 * tui/tui-winsource.h (struct tui_source_window_base)
640 <do_make_visible_with_new_height, set_new_height>: Don't declare.
641 <rerender>: Declare.
642 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
643 Call rerender.
644 (tui_source_window_base::set_new_height): Remove.
645 (tui_source_window_base::rerender): Rename from
646 do_make_visible_with_new_height.
647 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
648 resize method.
649 (tui_win_info::make_invisible_and_set_new_height)
650 (tui_win_info::make_visible_with_new_height): Remove.
651 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
652 Declare.
653 * tui/tui-stack.c (tui_locator_window::rerender): New method.
654 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
655 do_make_visible_with_new_height>: Don't declare.
656 <rerender>: Declare.
657 * tui/tui-regs.c (tui_data_window::rerender): Rename from
658 set_new_height.
659 (tui_data_window::do_make_visible_with_new_height): Remove.
660 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
661 call tui_show_locator_content.
662 (tui_gen_win_info::resize): Call rerender.
663 (show_source_or_disasm_and_command): Don't call
664 tui_show_locator_content.
665 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
666 method.
667 (struct tui_win_info) <rerender>: Declare.
668 <set_new_height, make_invisible_and_set_new_height,
669 make_visible_with_new_height>: Don't declare.
670 * tui/tui-data.c (tui_win_list::rerender): New method.
671 * tui/tui-command.h (struct tui_cmd_window)
672 <do_make_visible_with_new_height>: Don't declare.
673 * tui/tui-command.c
674 (tui_cmd_window::do_make_visible_with_new_height): Remove.
675
6762019-08-15 Tom Tromey <tromey@adacore.com>
677
678 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
679 * ada-lang.c (ada_enum_name): Likewise.
680
6812019-08-15 Christian Biesinger <cbiesinger@google.com>
682
683 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
684 leading underscore.
685 (GdbOutputErrorFile): Likewise.
686 (global scope): Adjust constructor calls to GdbOutput{,Error}File
687 accordingly.
688 (execute_unwinders): Rename to have a leading underscore.
689 (auto_load_packages): Likewise.
690 (global scope): Adjust call to auto_load_packages accordingly.
691 (GdbSetPythonDirectory): Likewise.
692 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
693 instead of execute_unwinders.
694
6952019-08-15 Tom Tromey <tom@tromey.com>
696
697 * tui/tui-layout.c (show_layout, show_source_disasm_command)
698 (show_data): Don't change window visibility.
699 (tui_gen_win_info::resize): Remove special case for command
700 window. Use wresize, when available.
701 (show_source_or_disasm_and_command): Don't change window
702 visibility.
703 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
704 <make_visible>: New method.
705 * tui/tui-command.c (tui_cmd_window::resize): New method.
706
7072019-08-15 Tom Tromey <tom@tromey.com>
708
709 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
710 (struct tui_source_windows): New.
711 * tui/tui-winsource.c (tui_display_main): Update.
712 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
713 (new_height_ok, parse_scrolling_args): Update.
714 * tui/tui-layout.c (show_layout, show_data): Update.
715 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
716 (tui_add_to_source_windows): Don't declare.
717 * tui/tui-data.c (source_windows, tui_source_windows)
718 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
719
7202019-08-15 Tom Tromey <tom@tromey.com>
721
722 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
723 Rename from reset.
724 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
725 * tui/tui-layout.c (show_source_disasm_command, show_data):
726 Update.
727 (tui_gen_win_info::resize): Rename.
728 (show_source_or_disasm_and_command): Update.
729 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
730 reset.
731
7322019-08-15 Tom Tromey <tom@tromey.com>
733
734 * tui/tui-stack.c (tui_initialize_static_data): Remove.
735 * tui/tui-interp.c (tui_interp::init): Don't call
736 tui_initialize_static_data.
737 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
738
7392019-08-15 Tom Tromey <tom@tromey.com>
740
741 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
742 examine tui_win_list.
743
7442019-08-15 Tom Tromey <tom@tromey.com>
745
746 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
747 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
748 tui_clear_source_content.
749 (tui_clear_source_content): Remove.
750 (tui_source_window_base::do_erase_source_content): Hoist call to
751 content.clear().
752 * tui/tui-stack.c (tui_show_frame_info): Don't call
753 tui_clear_source_content.
754
7552019-08-15 Tom Tromey <tom@tromey.com>
756
757 * tui/tui-winsource.h (struct tui_source_window_base)
758 <do_erase_source_content>: New method.
759 <erase_source_content>: New method.
760 (tui_erase_source_content): Don't declare.
761 * tui/tui-winsource.c (tui_clear_source_content): Update.
762 (tui_source_window_base::do_erase_source_content): Rename from
763 tui_erase_source_content.
764 (tui_source_window_base::show_source_content): Update.
765 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
766 * tui/tui-source.h (struct tui_source_window)
767 <erase_source_content>: New method.
768 * tui/tui-disasm.h (struct tui_disasm_window)
769 <erase_source_content>: New method.
770
7712019-08-15 Tom Tromey <tom@tromey.com>
772
773 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
774 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
775 constructor.
776 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
777 * tui/tui-source.c (tui_set_source_content): Update.
778 * tui/tui-disasm.c (tui_set_disassem_content): Update.
779
7802019-08-15 Tom Tromey <tom@tromey.com>
781
782 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
783 * tui/tui-winsource.c (tui_line_is_displayed): Move to
784 tui-source.c.
785 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
786 Declare.
787 * tui/tui-source.c (tui_source_window::line_is_displayed): New
788 method.
789 (tui_source_window::maybe_update): Update.
790
7912019-08-15 Tom Tromey <tom@tromey.com>
792
793 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
794 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
795 tui-disasm.c.
796 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
797 Declare.
798 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
799 method.
800 (tui_disasm_window::maybe_update): Update.
801
8022019-08-15 Tom Tromey <tom@tromey.com>
803
804 * tui/tui-winsource.h (struct tui_source_window_base)
805 <maybe_update>: Declare.
806 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
807 method.
808 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
809 Declare.
810 * tui/tui-source.c (tui_source_window::maybe_update): New method.
811 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
812 Declare.
813 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
814
8152019-08-15 Tom Tromey <tom@tromey.com>
816
817 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
818
8192019-08-15 Tom Tromey <tom@tromey.com>
820
821 * tui/tui-wingeneral.c: Include tui-stack.h.
822 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
823 (struct tui_locator_window): Move from tui-data.h.
824 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
825 (tui_initialize_static_data): Move from tui-data.c.
826 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
827 (struct tui_locator_window): Move to tui-stack.c.
828 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
829 (tui_initialize_static_data): Move to tui-stack.c.
830
8312019-08-15 Tom Tromey <tom@tromey.com>
832
833 * tui/tui-layout.c (show_source_disasm_command)
834 (show_source_or_disasm_and_command): Use make_visible method, not
835 tui_make_window.
836 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
837 Remove.
838
8392019-08-15 Tom Tromey <tom@tromey.com>
840
841 * tui/tui-wingeneral.h (tui_make_window): Update.
842 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
843 parameter.
844 (tui_gen_win_info::make_visible): Update.
845 * tui/tui-regs.c (tui_data_window::display_registers_from):
846 Update.
847 * tui/tui-layout.c (show_source_disasm_command)
848 (show_source_or_disasm_and_command): Update.
849 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
850 (enum tui_box): Remove.
851 (struct tui_win_info) <can_box>: New method.
852 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
853 method.
854
8552019-08-15 Tom de Vries <tdevries@suse.de>
856
857 * linux-nat-trad.c: Include gdbarch.h.
858
8592019-08-14 Alan Hayward <alan.hayward@arm.com>
860
861 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
862 register sizes.
863
8642019-08-14 Tom Tromey <tromey@adacore.com>
865
866 * darwin-nat.c: Include gdbarch.h.
867 * darwin-nat-info.c: Include gdbarch.h.
868
8692019-08-13 Tom Tromey <tom@tromey.com>
870
871 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
872 Remove.
873 * tui/tui-data.c (tui_initialize_static_data): Update.
874
8752019-08-13 Tom Tromey <tom@tromey.com>
876
877 * tui/tui-winsource.h (struct tui_exec_info_window)
878 <~tui_exec_info_window, maybe_allocate_content, get_content,
879 m_content>: Remove.
880 (struct tui_source_window_base) <set_exec_info_content,
881 show_exec_info_content>: Don't declare.
882 * tui/tui-winsource.c
883 (tui_exec_info_window::maybe_allocate_content): Remove.
884 (tui_source_window_base::update_exec_info): Rename from
885 set_exec_info_content.
886 (tui_source_window_base::show_exec_info_content)
887 (tui_source_window_base::update_exec_info): Remove.
888
8892019-08-13 Tom Tromey <tom@tromey.com>
890
891 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
892 declare.
893 * tui/tui-winsource.c (tui_update_source_window_as_is)
894 (tui_update_source_windows_with_addr, tui_erase_source_content):
895 Update.
896 (tui_clear_exec_info_content): Remove.
897
8982019-08-13 Tom Tromey <tom@tromey.com>
899
900 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
901 declare.
902 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
903 call tui_erase_exec_info_content.
904 (tui_clear_exec_info_content): Rename from
905 tui_erase_exec_info_content.
906 (tui_clear_exec_info_content): Delete.
907
9082019-08-13 Tom Tromey <tom@tromey.com>
909
910 * tui/tui-winsource.h (struct tui_source_window_base)
911 <show_exec_info_content>: Declare.
912 (tui_show_exec_info_content): Don't declare.
913 * tui/tui-winsource.c
914 (tui_source_window_base::show_exec_info_content): Rename from
915 tui_show_exec_info_content.
916 (tui_source_window_base::update_exec_info): Update.
917
9182019-08-13 Tom Tromey <tom@tromey.com>
919
920 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
921 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
922 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
923 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
924 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
925 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
926 ... here.
927
9282019-08-13 Tom Tromey <tom@tromey.com>
929
930 * tui/tui-winsource.h (struct tui_source_window_base)
931 <update_exec_info>: Declare.
932 (tui_update_exec_info): Don't declare.
933 * tui/tui-winsource.c (tui_update_source_window_as_is)
934 (tui_source_window_base::refresh_all)
935 (tui_update_all_breakpoint_info): Update.
936 (tui_source_window_base::update_exec_info): Rename from
937 tui_update_exec_info.
938 * tui/tui-stack.c (tui_show_frame_info): Update.
939
9402019-08-13 Tom Tromey <tom@tromey.com>
941
942 * tui/tui-winsource.h (struct tui_source_window_base)
943 <set_exec_info_content>: Declare.
944 (tui_set_exec_info_content): Don't declare.
945 * tui/tui-winsource.c
946 (tui_source_window_base::set_exec_info_content): Rename from
947 tui_set_exec_info_content.
948 (tui_update_exec_info): Update.
949
9502019-08-13 Tom Tromey <tom@tromey.com>
951
952 * tui/tui-winsource.h (struct tui_source_window_base)
953 <show_source_content>: Declare.
954 (tui_show_source_content): Don't declare.
955 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
956 (tui_source_window_base::show_source_content): Rename from
957 tui_show_source_content.
958 (tui_source_window_base::refresh_all): Update.
959 * tui/tui-layout.c (show_source_disasm_command)
960 (show_source_or_disasm_and_command): Update.
961
9622019-08-13 Tom Tromey <tom@tromey.com>
963
964 * tui/tui-winsource.c (tui_erase_source_content)
965 (tui_show_source_content, tui_source_window_base::refresh_all):
966 Update.
967 * tui/tui-wingeneral.h
968 (tui_check_and_display_highlight_if_needed): Don't declare.
969 * tui/tui-wingeneral.c
970 (tui_win_info::check_and_display_highlight_if_needed): Rename from
971 check_and_display_highlight_if_needed.
972 * tui/tui-win.c (tui_rehighlight_all)
973 (tui_win_info::make_visible_with_new_height): Update.
974 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
975 (tui_data_window::erase_data_content)
976 (tui_data_window::display_all_data): Update.
977 * tui/tui-data.h (struct tui_win_info)
978 <check_and_display_highlight_if_needed>: Declare.
979
9802019-08-13 Tom Tromey <tom@tromey.com>
981
982 * tui/tui-win.c (tui_resize_all): Call
983 tui_delete_invisible_windows.
984 * tui/tui-layout.c (show_layout): Call
985 tui_delete_invisible_windows.
986 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
987 * tui/tui-data.c (tui_delete_invisible_windows): New function.
988
9892019-08-13 Tom Tromey <tom@tromey.com>
990
991 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
992 tui_add_win_to_layout.
993
9942019-08-13 Tom Tromey <tom@tromey.com>
995
996 * tui/tui-layout.h (tui_default_win_height): Don't declare.
997 * tui/tui-layout.c (tui_default_win_height): Now static.
998
9992019-08-13 Tom Tromey <tom@tromey.com>
1000
1001 * tui/tui-layout.c (show_layout): Unify all layout cases into a
1002 single switch.
1003 (show_source_disasm_command, show_source_or_disasm_and_command):
1004 Don't check current layout.
1005
10062019-08-13 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui-wingeneral.c (make_all_visible): Remove.
1009 (tui_make_all_invisible): Simplify.
1010 * tui/tui-layout.c (tui_make_all_invisible): Move from
1011 tui-wingeneral.c; simplify.
1012 (show_layout): Hoist call to tui_make_all_invisible.
1013 (show_data): Don't call tui_make_all_invisible.
1014
10152019-08-13 Tom Tromey <tom@tromey.com>
1016
1017 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
1018 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
1019
10202019-08-13 Tom Tromey <tom@tromey.com>
1021
1022 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
1023 tui-data.c.
1024 (show_source_disasm_command, show_data)
1025 (show_source_or_disasm_and_command): Don't use
1026 tui_set_current_layout_to.
1027 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
1028 * tui/tui-data.c (current_layout, tui_current_layout): Move to
1029 tui-layout.c.
1030 (tui_set_current_layout_to): Remove.
1031
10322019-08-13 Tom Tromey <tom@tromey.com>
1033
1034 * tui/tui-layout.c (tui_set_layout): Update.
1035 * tui/tui-data.h (struct tui_layout_def): Remove.
1036 (tui_layout_def): Don't declare.
1037 * tui/tui-data.c (layout_def): Remove.
1038 (tui_layout_def): Remove.
1039
10402019-08-13 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui-winsource.h (struct tui_source_window_base)
1043 <clear_detail>: No longer "override".
1044 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
1045 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
1046 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
1047 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
1048 Remove.
1049 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
1050
10512019-08-13 Tom Tromey <tromey@adacore.com>
1052
1053 * tracepoint.c: Don't include readline.h or history.h.
1054
10552019-08-12 Tom Tromey <tom@tromey.com>
1056
1057 * configure: Rebuild.
1058 * configure.ac: Check for readline 7.
1059 * NEWS: Mention readline 7 requirement.
1060 * README: Update.
1061
10622019-08-12 Tom Tromey <tom@tromey.com>
1063
1064 * mingw-hdep.c (gdb_select): Remove readline hack.
1065
10662019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1067
1068 * blockframe.c (find_pc_partial_function): Set *block to nullptr
1069 when the function fails.
1070
10712019-08-09 Andreas Arnez <arnez@linux.ibm.com>
1072
1073 * s390-tdep.c (s390_type_align): New function.
1074 (s390_gdbarch_init): Set it as type_align gdbarch method.
1075
10762019-08-09 Tom de Vries <tdevries@suse.de>
1077
1078 PR gdb/24591
1079 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
1080 pc_low with relocation offset.
1081
10822019-08-07 Tom Tromey <tromey@adacore.com>
1083
1084 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1085 (print_frame_args): Update.
1086 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
1087 Update.
1088 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1089 * frame.h (struct frame_arg): Add initializers.
1090 <error>: Now a unique_xmalloc_ptr.
1091
10922019-08-07 Alan Hayward <alan.hayward@arm.com>
1093
1094 * NEWS: Expand the Pointer Authentication entry.
1095 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
1096 (aarch64_frame_unmask_lr): ... to this.
1097 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
1098 Call aarch64_frame_unmask_lr.
1099 * frame.c (struct frame_info): Add "masked" variable.
1100 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
1101 (fprint_frame): Check for masked pc.
1102 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
1103 declarations.
1104 * python/py-framefilter.c (py_print_frame): Check for masked pc.
1105 * stack.c (print_frame): Check for masked pc.
1106
11072019-08-06 Tom Tromey <tom@tromey.com>
1108
1109 * stabsread.c (patch_block_stabs, read_one_struct_field)
1110 (read_enum_type): Use obstack_strndup.
1111 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
1112 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
1113 * dwarf2read.c (guess_full_die_structure_name)
1114 (anonymous_struct_prefix): Use obstack_strndup.
1115 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
1116 * c-exp.y (yylex): Use obstack_strndup.
1117 * ada-exp.y (write_object_renaming, write_ambiguous_var)
1118 (write_var_or_type): Use obstack_strndup.
1119
11202019-08-06 Tom Tromey <tom@tromey.com>
1121
1122 * symfile.c (reread_symbols): Use obstack_strdup.
1123 * stabsread.c (read_type): Use obstack_strdup.
1124 * gdb_obstack.h (obstack_strdup): New overload.
1125 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
1126 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
1127 (dwarf2_canonicalize_name): Use obstack_strdup.
1128 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
1129 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
1130 Use obstack_strdup.
1131
11322019-08-06 Tom Tromey <tom@tromey.com>
1133
1134 * gdb_obstack.h (obstack_strdup): Define.
1135 * gdb_obstack.c (obstack_strdup): Don't define.
1136
11372019-08-06 Tom Tromey <tom@tromey.com>
1138
1139 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
1140 obstack_strdup.
1141 * typeprint.c (typedef_hash_table::find_global_typedef): Use
1142 obstack_strdup.
1143 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
1144 * stabsread.c (common_block_start): Use obstack_strdup.
1145 * objfiles.c (set_objfile_main_name, objfile): Use
1146 obstack_strdup.
1147 * namespace.c (add_using_directive): Use obstack_strdup.
1148 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
1149 * jit.c (finalize_symtab): Use obstack_strdup.
1150 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
1151 (guess_partial_die_structure_name, partial_die_info::fixup)
1152 (dwarf2_name): Use obstack_strdup.
1153 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
1154 obstack_strdup.
1155 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
1156 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
1157 obstack_strdup.
1158 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
1159
11602019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1161
1162 * unittests/help-doc-selftests.c: New file.
1163 * Makefile.in: Add the new file.
1164
11652019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1166
1167 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
1168 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
1169 the full first line, except when FOR_VALUE_PREFIX. In this case,
1170 the trailing '.' is not output, and the first character is uppercased.
1171 (print_help_for_command): Update call to print_doc_line.
1172 (print_doc_of_command): Likewise.
1173 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
1174 * cli/cli-option.c (append_indented_doc): Do not append newline.
1175 (build_help_option): Append newline after first appended_indented_doc
1176 only if a second call is done.
1177 (build_help): Append 2 new lines before each option, except the first
1178 one.
1179 * compile/compile.c (_initialize_compile): Add new lines after
1180 %OPTIONS%, when not at the end of the help.
1181 Change help doc or code
1182 producing the help doc to respect the invariants.
1183 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1184 Also removed the new line after 'Options:', as all other commands
1185 do not put an empty line between 'Options:' and the first option.
1186 * printcmd.c (_initialize_printcmd): Likewise.
1187 * stack.c (_initialize_stack): Likewise.
1188 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1189 incorrectly telling COMMAND is optional.
1190 * ada-lang.c (_initialize_ada_language): Change help doc or code
1191 producing the help doc to respect the invariants.
1192 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1193 * breakpoint.c (_initialize_breakpoint): Likewise.
1194 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1195 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1196 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1197 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1198 _initialize_cli_style): Likewise.
1199 * corelow.c (core_target_info): Likewise.
1200 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1201 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1202 * filesystem.c (_initialize_filesystem): Likewise.
1203 * frame.c (_initialize_frame): Likewise.
1204 * gnu-nat.c (add_task_commands): Likewise.
1205 * infcall.c (_initialize_infcall): Likewise.
1206 * infcmd.c (_initialize_infcmd): Likewise.
1207 * interps.c (_initialize_interpreter): Likewise.
1208 * language.c (_initialize_language): Likewise.
1209 * linux-fork.c (_initialize_linux_fork): Likewise.
1210 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1211 * maint.c (_initialize_maint_cmds): Likewise.
1212 * memattr.c (_initialize_mem): Likewise.
1213 * printcmd.c (_initialize_printcmd): Likewise.
1214 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1215 _RegEx): Likewise.
1216 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1217 * record-btrace.c (_initialize_record_btrace): Likewise.
1218 * record-full.c (_initialize_record_full): Likewise.
1219 * record.c (_initialize_record): Likewise.
1220 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1221 * regcache.c (_initialize_regcache): Likewise.
1222 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1223 _initialize_remote): Likewise.
1224 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1225 * serial.c (_initialize_serial): Likewise.
1226 * skip.c (_initialize_step_skip): Likewise.
1227 * source.c (_initialize_source): Likewise.
1228 * stack.c (_initialize_stack): Likewise.
1229 * symfile.c (_initialize_symfile): Likewise.
1230 * symtab.c (_initialize_symtab): Likewise.
1231 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1232 * top.c (init_main): Likewise.
1233 * tracefile-tfile.c (tfile_target_info): Likewise.
1234 * tracepoint.c (_initialize_tracepoint): Likewise.
1235 * tui/tui-win.c (_initialize_tui_win): Likewise.
1236 * utils.c (add_internal_problem_command): Likewise.
1237 * valprint.c (value_print_option_defs): Likewise.
1238
12392019-08-06 Frank Ch. Eigler <fche@redhat.com>
1240
1241 PR build/24886
1242 * configure.ac: Drop enable-libmcheck support.
1243 * configure, config.in: Rebuild.
1244 * libmcheck.m4: Remove.
1245 * acinclude.m4: Don't include it.
1246 * Makefile.in: Don't distribute it.
1247 * top.c (print_gdb_configuration): Don't mention it.
1248
12492019-08-06 Tom Tromey <tom@tromey.com>
1250
1251 * utils.c (set_output_style): Sometimes pass stream to
1252 emit_style_escape.
1253 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1254 * record-btrace.c (btrace_insn_history): Update.
1255 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1256 method.
1257 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1258 Update initializers.
1259 <m_uiout>: New field.
1260 <m_di>: Move lower.
1261 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1262 Remove "uiout" parameter.
1263 (dump_insns): Update.
1264 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1265 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1266
12672019-08-06 Christian Biesinger <cbiesinger@google.com>
1268
1269 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1270 (error_in_psymtab_expansion): Likewise.
1271 (lookup_symbol_via_quick_fns): Likewise.
1272 (basic_lookup_transparent_type_quick): Likewise.
1273 (basic_lookup_transparent_type_1): Likewise.
1274
12752019-08-06 Tom Tromey <tromey@adacore.com>
1276
1277 * source.c (last_source_error): Now bool.
1278 (print_source_lines_base): Make "noprint" bool. Only open
1279 source file when last_source_visited changes.
1280
12812019-08-06 Tom Tromey <tromey@adacore.com>
1282
1283 * annotate.c (annotate_source_line): Use g_source_cache.
1284 * source-cache.c (source_cache::get_plain_source_lines): Change
1285 parameters. Populate m_offset_cache.
1286 (source_cache::ensure): New method.
1287 (source_cache::get_line_charpos): New method.
1288 (extract_lines): Move lower. Change parameters.
1289 (source_cache::get_source_lines): Move lower.
1290 * source-cache.h (class source_cache): Update comment.
1291 <get_line_charpos>: New method.
1292 <get_source_lines>: Update comment.
1293 <clear>: Clear m_offset_cache.
1294 <get_plain_source_lines>: Change parameters.
1295 <ensure>: New method
1296 <m_offset_cache>: New member.
1297 * source.c (forget_cached_source_info_for_objfile): Update.
1298 (info_source_command): Use g_source_cache.
1299 (find_source_lines, open_source_file_with_line_charpos): Remove.
1300 (print_source_lines_base, search_command_helper): Use g_source_cache.
1301 * source.h (open_source_file_with_line_charpos): Don't declare.
1302 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1303 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1304 Use g_source_cache.
1305
13062019-08-06 Tom Tromey <tromey@adacore.com>
1307
1308 * source-cache.c (source_cache::get_plain_source_lines):
1309 Remove "first_line" and "last_line" parameters.
1310 (source_cache::get_source_lines): Cache plain text.
1311 * source-cache.h (class source_cache)
1312 <get_plain_source_lines>: Update.
1313
13142019-08-06 Tom Tromey <tromey@adacore.com>
1315
1316 * source-cache.c (extract_lines): No longer a method.
1317 Changed type of parameter. Include final newline.
1318 (selftests::extract_lines_test): New function.
1319 (_initialize_source_cache): Likewise.
1320 * source-cache.h (class source_cache)
1321 <extract_lines>: Don't declare.
1322
13232019-08-06 Tom Tromey <tromey@adacore.com>
1324
1325 * breakpoint.c (init_breakpoint_sal): Update.
1326 (breakpoint): Update.
1327 * breakpoint.h (struct breakpoint) <filter>: Now a
1328 unique_xmalloc_ptr.
1329
13302019-08-05 Christian Biesinger <cbiesinger@google.com>
1331
1332 * NEWS: Mention dictionary access on blocks.
1333 * python/py-block.c (blpy_getitem): New function.
1334 (block_object_as_mapping): New struct.
1335 (block_object_type): Use new struct for tp_as_mapping field.
1336
13372019-08-05 Christian Biesinger <cbiesinger@google.com>
1338
1339 * objfiles.h (objfile): Add a comment describing partial symbols.
1340
13412019-08-05 Tom Tromey <tromey@adacore.com>
1342
1343 * compile/compile.c (_initialize_compile): Use _(), not N_().
1344 * thread.c (_initialize_thread): Use _(), not N_().
1345 * stack.c (_initialize_stack): Use _(), not N_().
1346 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1347
13482019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1349
1350 * dwarf2read.c (struct dw2_symtab_iterator):
1351 <want_specific_block>: Remove.
1352 <block_index>: Change type to gdb::optional.
1353 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1354 change type of BLOCK_INDEX parameter to gdb::optional.
1355 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1356 (dw2_lookup_symbol): Don't pass argument for
1357 WANT_SPECIFIC_BLOCK.
1358 (dw2_expand_symtabs_for_function): Don't pass argument for
1359 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1360 (class dw2_debug_names_iterator)
1361 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1362 parameter, change BLOCK_INDEX type to gdb::optional.
1363 <m_want_specific_block>: Remove.
1364 <m_block_index>: Change type to gdb::optional.
1365 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1366 gdb::optional. Re-write in function of gdb::optional.
1367 (dw2_debug_names_lookup_symbol): Don't pass argument for
1368 WANT_SPECIFIC_BLOCK.
1369 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1370 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1371 BLOCK_INDEX.
1372
13732019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1374
1375 * NEWS: Mention changes to "info sources" command.
1376
13772019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1378
1379 * symtab.c (filename_partial_match_opts): New struct type.
1380 (struct output_source_filename_data): New members
1381 regexp, c_regexp, partial_match.
1382 (output_source_filename): Use new members to decide to print file.
1383 (info_sources_option_defs): New variable.
1384 (make_info_sources_options_def_group, print_info_sources_header,
1385 info_sources_command_completer):
1386 New functions.
1387 (info_sources_command): Read new optional arguments.
1388 (_initialize_symtab): Update info sources help.
1389
13902019-08-02 Alexandre Oliva <oliva@adacore.com>
1391
1392 * ada-lang.c (exception_support_info_v0): Renamed from...
1393 (default_exception_support_info): ... this. Create new
1394 definition for v1.
1395 (ada_has_this_exception_support): Look up catch_handlers_sym.
1396 (ada_exception_support_info_sniffer): Try v0 after default.
1397
13982019-08-01 Tom Tromey <tromey@adacore.com>
1399
1400 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1401 gdbarch.h.
1402
14032019-08-01 Christian Biesinger <cbiesinger@google.com>
1404
1405 * s12z-tdep.c: Fix include path for s12z-opc.h.
1406
14072019-08-01 Alan Hayward <alan.hayward@arm.com>
1408
1409 * NEWS: Require GNU make 3.82.
1410
14112019-07-16 Tom Tromey <tom@tromey.com>
1412
1413 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1414 declare.
1415
14162019-07-30 Tom Tromey <tromey@adacore.com>
1417
1418 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1419
14202019-07-30 Kevin Buettner <kevinb@redhat.com>
1421
1422 * printcmd.c (print_address_symbolic): Print negative offsets.
1423 (build_address_symbolic): Force signed arithmetic when computing
1424 offset.
1425
14262019-07-30 Christian Biesinger <cbiesinger@google.com>
1427
1428 PR/24474: Add a function to lookup static variables.
1429 * NEWS: Mention this new function.
1430 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1431 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1432 * python/python.c (python_GdbMethods): Add new function.
1433
14342019-07-29 Christian Biesinger <cbiesinger@google.com>
1435
1436 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1437 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1438 (objfpy_lookup_static_symbol): New function.
1439 (objfile_object_methods): Add new functions.
1440
14412019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1442
1443 * NEWS: Mention 'set|show print frame-info'. Mention new
1444 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1445 backtrace argument. Mention that python frame filtering code
1446 is now consistent with what 'backtrace' command prints.
1447
14482019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1449
1450 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1451 comments.
1452 (print_frame_info_auto, print_frame_info_source_line,
1453 print_frame_info_location, print_frame_info_source_and_location,
1454 print_frame_info_location_and_address, print_frame_info_short_location):
1455 New declarations.
1456 (struct frame_print_options): New member print_frame_info.
1457 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1458 * stack.h (get_user_print_what_frame_info): New declaration.
1459 (frame_show_address): New declaration.
1460 * stack.c (print_frame_arguments_choices): New value 'presence'.
1461 (print_frame_info_auto, print_frame_info_source_line,
1462 print_frame_info_location, print_frame_info_source_and_location,
1463 print_frame_info_location_and_address, print_frame_info_short_location,
1464 print_frame_info_choices, print_frame_info_print_what): New definitions.
1465 (print_frame_args): Only print dots for args if print frame-arguments
1466 is 'presence'.
1467 (frame_print_option_defs): New element for "frame-info".
1468 (get_user_print_what_frame_info): New function.
1469 (frame_show_address): Make non static. Move comment to stack.h.
1470 (print_frame_info_to_print_what): New function.
1471 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1472 to decide what to print.
1473 (backtrace_command_1): Handle the new print_frame_arguments_presence
1474 value.
1475 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1476 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1477 (py_print_frame): In non-mi mode, use LOCATION as default for
1478 print_what, similarly to frame information printed directly by
1479 backtrace command. Handle frame-info user option in non MI mode.
1480
14812019-07-27 Kevin Buettner <kevinb@redhat.com>
1482
1483 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1484 Add case for debugging 32-bit target on 64-bit host. Revise
1485 comment.
1486
14872019-07-27 Kevin Buettner <kevinb@redhat.com>
1488
1489 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1490 instead of find_function_entry_range_from_pc.
1491
14922019-07-27 Kevin Buettner <kevinb@redhat.com>
1493
1494 * stack.c (find_frame_funname): Remove code which preferred
1495 minsym over symtab sym in "certain pathological cases".
1496
1497 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1498 parameter. Change type of "do_demangle" to bool.
1499 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1500 Pass suitable "prefer_sym_over_minsym" flag to
1501 build_address_symbolic(). Don't output "+" for negative offsets.
1502 * printcmd.c (print_address_symbolic): Update invocation of
1503 build_address_symbolic to include a "prefer_sym_over_minsym"
1504 flag.
1505 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1506 Restrict cases in which use of minimal symbol is preferred to that
1507 of a found symbol. Update comments.
1508
1509 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1510 for entry pc when entry pc is out of range for that FDE.
1511
15122019-07-26 Brian Callahan <bcallah@openbsd.org>
1513
1514 PR gdb/24839:
1515 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1516 type.
1517
15182019-07-25 Christian Biesinger <cbiesinger@google.com>
1519
1520 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1521 this function's Python signature.
1522
1523
15242019-07-24 Christian Biesinger <cbiesinger@google.com>
1525
1526 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1527 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1528 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1529 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1530 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1531
1532
15332019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1534
1535 * h8300-tdep.c (h8300_register_name_common): New.
1536 h8300_register_name): Use h8300_register_name_common.
1537 (h8300s_register_name): Likewise.
1538 (h8300sx_register_name): Likewise.
1539 (h8300h_register_nam): New.
1540 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1541
1542
15432019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1544
1545 * arm-tdep.c (arm_skip_cmse_entry): New function.
1546 (arm_is_sgstubs_section): New function.
1547 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1548
15492019-07-22 Tom Tromey <tom@tromey.com>
1550
1551 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1552 Don't self-assign.
1553
15542019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1555
1556 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1557 type_print.
1558
15592019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1560
1561 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1562 so that GDB doesn't match any msymbols when searching in the
1563 TYPES_DOMAIN.
1564 (print_symbol_info): Print using typedef_print or type_print based
1565 on the type of the symbol. Add updated FIXME comment moved from...
1566 (_initialize_symtab): ... move and update FIXME comment to above.
1567
15682019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1569
1570 * NEWS: Mention adding -q option to "info types".
1571 * symtab.c (struct info_types_options): New struct.
1572 (info_types_options_defs): New variable.
1573 (make_info_types_options_def_group): New function.
1574 (info_types_command): Use gdb::option framework to parse options.
1575 (info_types_command_completer): New function.
1576 (_initialize_symtab): Extend the help text on "info types" and
1577 register command completer.
1578
15792019-07-21 Christian Biesinger <cbiesinger@google.com>
1580
1581 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1582 (lookup_symbol_in_objfile): Change int to block_enum and add a
1583 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1584
15852019-07-20 Christian Biesinger <cbiesinger@google.com>
1586
1587 * MAINTAINERS (Write After Approval): Add self.
1588
15892019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1592 instruction to the dummy code region.
1593
15942019-07-19 Tom Tromey <tromey@adacore.com>
1595
1596 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1597 (ARGSUSED, PARAMS, __func__): Remove rules.
1598
15992019-07-19 Alan Hayward <alan.hayward@arm.com>
1600
1601 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1602 * features/arm/arm-with-iwmmxt.c: Remove.
1603 * features/arm/arm-with-iwmmxt.xml: Remove.
1604 * features/arm/arm-with-m-fpa-layout.c: Remove.
1605 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1606 * features/arm/arm-with-m-vfp-d16.c: Remove.
1607 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1608 * features/arm/arm-with-m.c: Remove.
1609 * features/arm/arm-with-m.xml: Remove.
1610 * features/arm/arm-with-neon.c: Remove.
1611 * features/arm/arm-with-neon.xml: Remove.
1612 * features/arm/arm-with-vfpv2.c: Remove.
1613 * features/arm/arm-with-vfpv2.xml: Remove.
1614 * features/arm/arm-with-vfpv3.c: Remove.
1615 * features/arm/arm-with-vfpv3.xml: Remove.
1616
16172019-07-19 Alan Hayward <alan.hayward@arm.com>
1618
1619 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1620
16212019-07-19 Alan Hayward <alan.hayward@arm.com>
1622
1623 * arch/aarch32.c (aarch32_create_target_description): Create
1624 target descriptions using features.
1625 * arch/arm.c (arm_create_target_description)
1626 (arm_create_mprofile_target_description): Likewise.
1627 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1628
16292019-07-19 Alan Hayward <alan.hayward@arm.com>
1630
1631 * Makefile.in: Add new files.
1632 * aarch32-tdep.c: New file.
1633 * aarch32-tdep.h: New file.
1634 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1635 Call aarch32_read_description.
1636 * arch/aarch32.c: New file.
1637 * arch/aarch32.h: New file.
1638 * arch/arm.c (arm_create_target_description)
1639 (arm_create_mprofile_target_description): New function.
1640 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1641 (arm_create_target_description)
1642 (arm_create_mprofile_target_description): New declaration.
1643 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1644 read_description functions.
1645 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1646 Likewise.
1647 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1648 * arm-tdep.c (tdesc_arm_list): New variable.
1649 (arm_register_g_packet_guesses): Call create description functions.
1650 (arm_read_description) (arm_read_mprofile_description): New
1651 function.
1652 * arm-tdep.h (arm_read_description)
1653 (arm_read_mprofile_description): Add declaration.
1654 * configure.tgt: Add new files.
1655
16562019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1657
1658 * top.c (new_ui_command): Open specified terminal just once.
1659
16602019-07-18 Tom Tromey <tromey@adacore.com>
1661
1662 * symtab.c (main_name): Constify return type.
1663 * symfile.c (set_initial_language): Update.
1664 * symtab.h (main_name): Constify return type.
1665
16662019-07-17 Tom Tromey <tom@tromey.com>
1667
1668 * tui/tui-winsource.c (tui_update_source_window)
1669 (tui_update_source_window_as_is)
1670 (tui_update_source_windows_with_line): Remove return.
1671 * tui/tui-disasm.c (tui_show_disassem)
1672 (tui_show_disassem_and_update_source): Remove return.
1673 * tui/tui.c (tui_reset): Remove return.
1674 * tui/tui-wingeneral.c
1675 (tui_check_and_display_highlight_if_needed): Remove return.
1676
16772019-07-17 Tom Tromey <tom@tromey.com>
1678
1679 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1680
16812019-07-17 Tom Tromey <tom@tromey.com>
1682
1683 * tui/tui-winsource.h (struct tui_exec_info_window)
1684 (struct tui_source_window_base): Move from tui-data.h.
1685 * tui/tui-winsource.c: Move many method definitions from
1686 elsewhere. Remove "structuring" comments.
1687 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1688 (tui_source_window_base::refresh_window): Move to
1689 tui-winsource.c.
1690 * tui/tui-win.c (tui_source_window_base::refresh_all)
1691 (tui_source_window_base::update_tab_width)
1692 (tui_source_window_base::set_new_height)
1693 (tui_source_window_base::do_make_visible_with_new_height): Move to
1694 tui-winsource.c.
1695 * tui/tui-source.h: Update.
1696 * tui/tui-source.c (tui_source_window_base::reset): Move to
1697 tui-winsource.c.
1698 * tui/tui-disasm.h: Update.
1699 * tui/tui-data.h (struct tui_exec_info_window): Move to
1700 tui-winsource.h.
1701 (struct tui_source_window_base): Likewise.
1702 * tui/tui-data.c (tui_source_window_base::clear_detail)
1703 (tui_source_window_base, ~tui_source_window_base): Move to
1704 tui-winsource.c.
1705
17062019-07-17 Tom Tromey <tom@tromey.com>
1707
1708 * tui/tui-win.c (tui_resize_all)
1709 (tui_source_window_base::update_tab_width)
1710 (tui_adjust_win_heights): Update.
1711 (tui_win_info::make_invisible_and_set_new_height): Rename from
1712 make_invisible_and_set_new_height.
1713 * tui/tui-data.h (struct tui_win_info)
1714 <make_invisible_and_set_new_height>: New method.
1715
17162019-07-17 Tom Tromey <tom@tromey.com>
1717
1718 * tui/tui.c: Update.
1719 * tui/tui-source.h (struct tui_source_window): Move from
1720 tui-data.h.
1721 * tui/tui-layout.c: Update.
1722 * tui/tui-disasm.c: Update.
1723 * tui/tui-data.h (struct tui_source_window): Move to
1724 tui-source.h.
1725
17262019-07-17 Tom Tromey <tom@tromey.com>
1727
1728 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1729 tui-data.h.
1730 * tui/tui-data.h (struct tui_disasm_window): Move to
1731 tui-disasm.h.
1732
17332019-07-17 Tom Tromey <tom@tromey.com>
1734
1735 * tui/tui-regs.h (struct tui_data_item_window): Move from
1736 tui-data.h.
1737 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1738 * tui/tui-data.h (struct tui_data_item_window): Move to
1739 tui-regs.h.
1740 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1741
17422019-07-17 Tom Tromey <tom@tromey.com>
1743
1744 * tui/tui.c: Update.
1745 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1746 (tui_cmd_window::max_height): Move to tui-command.c.
1747 * tui/tui-layout.c: Update.
1748 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1749 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1750 tui-command.c.
1751 * tui/tui-command.h (struct tui_cmd_window): Move from
1752 tui-data.h.
1753 * tui/tui-command.c: Remove "structuring" comments.
1754 (tui_cmd_window::clear_detail)
1755 (tui_cmd_window::do_make_visible_with_new_height)
1756 (tui_cmd_window::max_height): Move from elsewhere.
1757
17582019-07-17 Tom Tromey <tom@tromey.com>
1759
1760 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1761 Now static.
1762 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1763 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1764
17652019-07-17 Tom Tromey <tom@tromey.com>
1766
1767 * tui/tui.c: Update.
1768 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1769 tui-regs.c.
1770 * tui/tui-windata.h: Remove file.
1771 * tui/tui-windata.c: Remove file.
1772 * tui/tui-win.c (tui_data_window::set_new_height)
1773 (tui_data_window::do_make_visible_with_new_height): Move to
1774 tui-regs.c.
1775 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1776 * tui/tui-regs.c: Remove "structuring" comments.
1777 (tui_data_window::first_data_item_displayed)
1778 (tui_data_window::delete_data_content_windows)
1779 (tui_data_window::erase_data_content)
1780 (tui_data_window::display_all_data)
1781 (tui_data_window::refresh_all)
1782 (tui_data_window::do_scroll_vertical)
1783 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1784 (tui_data_window::do_make_visible_with_new_height)
1785 (tui_data_window::refresh_window): Move from elsewhere.
1786 (_initialize_tui_regs): Move to end of file.
1787 * tui/tui-layout.c: Update.
1788 * tui/tui-hooks.c: Update.
1789 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1790 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1791 tui-regs.c.
1792 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1793
17942019-07-17 Tom Tromey <tom@tromey.com>
1795
1796 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1797 seen.
1798
17992019-07-17 Tom Tromey <tom@tromey.com>
1800
1801 * tui/tui-win.c (tui_source_window_base::set_new_height)
1802 (tui_source_window_base::do_make_visible_with_new_height): Use
1803 m_has_locator field directly.
1804 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1805 method.
1806 (struct tui_source_window_base) <has_locator>: Likewise.
1807
18082019-07-17 Tom Tromey <tom@tromey.com>
1809
1810 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1811 Don't declare.
1812 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1813 Remove.
1814 * tui/tui-win.c (tui_source_window_base::set_new_height)
1815 (tui_source_window_base::set_new_height)
1816 (make_invisible_and_set_new_height)
1817 (tui_source_window_base::do_make_visible_with_new_height)
1818 (tui_source_window_base::do_make_visible_with_new_height):
1819 Update.
1820 * tui/tui-layout.c (show_source_disasm_command, show_data)
1821 (show_source_or_disasm_and_command): Update.
1822 * tui/tui-layout.c (show_layout): Update.
1823
18242019-07-17 Tom Tromey <tom@tromey.com>
1825
1826 * tui/tui-layout.c (make_data_window): Remove.
1827 (show_data): Unify creation and re-initialization cases.
1828
18292019-07-17 Tom Tromey <tom@tromey.com>
1830
1831 * tui/tui-layout.c (make_source_window, make_disasm_window):
1832 Remove.
1833 (show_data): Unify creation and re-initialization cases.
1834
18352019-07-17 Tom Tromey <tom@tromey.com>
1836
1837 * tui/tui-layout.c (make_command_window): Remove.
1838 (show_source_disasm_command, show_source_or_disasm_and_command):
1839 Unify creation and re-initialization cases.
1840
18412019-07-17 Tom Tromey <tom@tromey.com>
1842
1843 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1844 creation and re-initialization cases.
1845
18462019-07-17 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui-regs.c (tui_get_register): Return void.
1849
18502019-07-17 Tom Tromey <tom@tromey.com>
1851
1852 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1853 Simplify.
1854
18552019-07-17 Tom Tromey <tom@tromey.com>
1856
1857 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1858 resetting.
1859
18602019-07-17 Tom Tromey <tom@tromey.com>
1861
1862 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1863 * tui/tui-regs.c (tui_reg_layout): New function.
1864 (tui_show_registers, tui_reg_command): Use it.
1865 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1866 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1867 parameters.
1868 (tui_layout_command): Remove.
1869
18702019-07-17 Tom Tromey <tom@tromey.com>
1871
1872 * tui/tui-layout.h (tui/tui-layout): Return void.
1873 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1874
18752019-07-17 Tom Tromey <tom@tromey.com>
1876
1877 * tui/tui-layout.c (show_source_disasm_command, show_data):
1878 Update.
1879 (reset_locator): Remove.
1880 (show_source_or_disasm_and_command): Update.
1881
18822019-07-17 Tom Tromey <tom@tromey.com>
1883
1884 * tui/tui-source.c (tui_source_window_base::reset): Remove
1885 win_type parameter.
1886 * tui/tui-layout.c (make_command_window, make_source_window)
1887 (make_disasm_window, make_data_window)
1888 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1889 (reset_locator, show_source_or_disasm_and_command): Update.
1890 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1891 win_type parameter.
1892 (struct tui_source_window_base) <reset>: Likewise.
1893
18942019-07-17 Tom Tromey <tom@tromey.com>
1895
1896 * tui/tui-layout.c (show_source_disasm_command): Use
1897 reset_locator.
1898 (reset_locator): New function.
1899 (init_and_make_win): Remove.
1900 (show_source_or_disasm_and_command): Use reset_locator.
1901
19022019-07-17 Tom Tromey <tom@tromey.com>
1903
1904 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1905 condition.
1906 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1907 Remove condition.
1908 * tui/tui-source.c (tui_source_window_base::reset): New method.
1909 * tui/tui-layout.c (make_command_window): Don't call
1910 init_and_make_win.
1911 (make_source_window, make_disasm_window): Don't call
1912 make_source_or_disasm_window.
1913 (make_data_window): Don't call init_and_make_win. Change calling
1914 convention.
1915 (show_source_disasm_command, show_data): Simplify.
1916 (make_source_or_disasm_window): Remove.
1917 (show_source_or_disasm_and_command): Simplify.
1918 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1919 (struct tui_source_window_base) <reset>: Likewise.
1920 <execution_info>: Remove initializer.
1921 * tui/tui-data.c (tui_source_window_base): Initialize
1922 execution_info.
1923
19242019-07-17 Tom Tromey <tom@tromey.com>
1925
1926 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1927 variable.
1928
19292019-07-17 Tom Tromey <tom@tromey.com>
1930
1931 * tui/tui.c (tui_rl_other_window): Update.
1932 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1933 superclass method first. Always iterate over regs_content.
1934 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1935 method.
1936 * tui/tui-win.c (tui_set_focus_command): Update.
1937
19382019-07-17 Tom Tromey <tom@tromey.com>
1939
1940 * tui/tui-win.c (tui_set_focus_command): Rename from
1941 tui_set_focus. Call tui_enable.
1942 (tui_set_focus_command): Remove.
1943
19442019-07-17 Tom Tromey <tom@tromey.com>
1945
1946 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1947 refresh_window.
1948 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1949 touchwin.
1950 (tui_data_window::refresh_window): Call refresh_window on data
1951 items. Always call superclass refresh_window.
1952 (tui_win_info::refresh): Remove.
1953 (tui_source_window_base::refresh_window): Update.
1954 (tui_refresh_all): Update.
1955 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1956 refresh_window.
1957 (show_source_or_disasm_and_command): Likewise.
1958 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1959 (struct tui_source_window_base) <refresh>: Likewise.
1960
19612019-07-17 Tom Tromey <tom@tromey.com>
1962
1963 * tui/tui-winsource.c (tui_clear_source_content)
1964 (tui_show_source_content): Update.
1965 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1966 whether content is empty.
1967 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1968 Remove.
1969
19702019-07-17 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1973 window's contents.
1974 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1975 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1976
19772019-07-17 Tom Tromey <tom@tromey.com>
1978
1979 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1980 (struct tui_data_item_window): Update.
1981
19822019-07-17 Tom Tromey <tom@tromey.com>
1983
1984 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1985 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1986 defines.
1987
19882019-07-17 Tom Tromey <tom@tromey.com>
1989
1990 * tui/tui-winsource.h (tui_erase_source_content)
1991 (tui_clear_source_content): Remove "display_prompt" parameter.
1992 * tui/tui-winsource.c (tui_update_source_window_as_is)
1993 (tui_update_source_windows_with_addr): Update.
1994 (tui_clear_source_content): Remove "display_prompt" parameter.
1995 (tui_erase_source_content): Likewise. Simplify.
1996 (tui_show_source_content): Update.
1997 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1998 * tui/tui-stack.c (tui_show_frame_info): Update.
1999 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
2000 Remove defines.
2001
20022019-07-17 Tom Tromey <tom@tromey.com>
2003
2004 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2005 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
2006 parameter.
2007 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
2008 parameter.
2009
20102019-07-17 Tom Tromey <tom@tromey.com>
2011
2012 * tui/tui-winsource.c (tui_clear_source_content)
2013 (tui_show_source_content, tui_show_exec_info_content)
2014 (tui_clear_exec_info_content): Update.
2015 * tui/tui-stack.c (tui_show_locator_content): Update.
2016 (tui_show_frame_info): Update.
2017 * tui/tui-source.h (tui_source_window): Don't declare.
2018 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
2019 from tui_source_is_displayed.
2020 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
2021 Remove field.
2022 (struct tui_source_window_base) <content_in_use>: New field. Now
2023 bool.
2024 (struct tui_source_window) <showing_source_p>: New method.
2025 (TUI_SRC_WIN): Change cast.
2026 * tui/tui-data.c (tui_initialize_static_data): Update.
2027
20282019-07-17 Tom Tromey <tom@tromey.com>
2029
2030 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
2031 location_matches_p.
2032 * tui/tui-source.c (tui_source_window::location_matches_p): New
2033 method.
2034 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
2035 method.
2036 * tui/tui-data.h (struct tui_source_window_base)
2037 <location_matches_p>: New method.
2038 (struct tui_source_window, struct tui_disasm_window)
2039 <location_matches_p>: Likewise.
2040
20412019-07-17 Tom Tromey <tom@tromey.com>
2042
2043 * tui/tui-win.c (tui_set_win_height_command): Rename from
2044 tui_set_win_height.
2045 (tui_set_win_height_command): Remove.
2046
20472019-07-17 Tom Tromey <tom@tromey.com>
2048
2049 * tui/tui-source.c (tui_source_window): New constructor. Add
2050 observer.
2051 (~tui_source_window): New destructor.
2052 (tui_source_window::style_changed): New method.
2053 * tui/tui-hooks.c (tui_redisplay_source): Remove.
2054 (tui_attach_detach_observers): Update.
2055 * tui/tui-data.h (struct tui_source_window): Make constructor not
2056 inline. Add destructor.
2057 (struct tui_source_window) <style_changed>: New method.
2058 <m_observable>: New member.
2059
20602019-07-17 Tom Tromey <tom@tromey.com>
2061
2062 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
2063 * tui/tui-win.c (tui_resize_all): Fix typo.
2064
20652019-07-17 Tom Tromey <tom@tromey.com>
2066
2067 * tui/tui-wingeneral.h (tui_refresh_all): Update.
2068 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
2069 (tui_refresh_all): Remove "list" parameter. Use foreach.
2070 * tui/tui-win.c (window_name_completer): Use foreach.
2071 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
2072 (update_tab_width): Likewise.
2073 * tui/tui-layout.c (show_layout): Update.
2074 * tui/tui-data.h (class tui_window_iterator): New.
2075 (struct all_tui_windows): New.
2076 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
2077
20782019-07-17 Tom Tromey <tom@tromey.com>
2079
2080 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
2081 parameter. Don't reference globals.
2082 (tui_reg_command): Update.
2083
20842019-07-17 Tom Tromey <tom@tromey.com>
2085
2086 * tui/tui-regs.c (tui_show_registers): Simplify.
2087
20882019-07-17 Tom Tromey <tom@tromey.com>
2089
2090 * tui/tui-regs.c (tui_show_registers): Update.
2091 (tui_show_register_group): Add win_info parameter.
2092
20932019-07-17 Tom Tromey <tom@tromey.com>
2094
2095 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
2096 Rename from tui_display_reg_element_at_line.
2097 (tui_data_window::display_registers_from_line): Update.
2098 * tui/tui-data.h (struct tui_data_window)
2099 <display_reg_element_at_line>: New method.
2100
21012019-07-17 Tom Tromey <tom@tromey.com>
2102
2103 * tui/tui-regs.h (tui_display_registers_from)
2104 (tui_display_registers_from_line): Don't declare.
2105 * tui/tui-windata.c (tui_data_window::display_all_data)
2106 (tui_data_window::refresh_all)
2107 (tui_data_window::do_scroll_vertical): Update.
2108 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
2109 from tui_display_registers_from.
2110 (tui_display_reg_element_at_line): Update.
2111 (tui_data_window::display_registers_from_line): Rename from
2112 tui_display_registers_from_line.
2113 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
2114 display_registers_from_line>: New methods.
2115
21162019-07-17 Tom Tromey <tom@tromey.com>
2117
2118 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
2119 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
2120 from tui_erase_data_content.
2121 (tui_data_window::display_all_data)
2122 (tui_data_window::refresh_all)
2123 (tui_data_window::do_scroll_vertical): Update.
2124 * tui/tui-regs.c (tui_show_registers): Update.
2125 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
2126 New method.
2127
21282019-07-17 Tom Tromey <tom@tromey.com>
2129
2130 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
2131 declare.
2132 * tui/tui-windata.c
2133 (tui_data_window::delete_data_content_windows): Rename from
2134 tui_delete_data_content_windows.
2135 (tui_data_window::display_all_data)
2136 (tui_data_window::do_scroll_vertical): Update.
2137 * tui/tui-data.h (struct tui_data_window)
2138 <delete_data_content_windows>: New method.
2139
21402019-07-17 Tom Tromey <tom@tromey.com>
2141
2142 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
2143 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
2144
21452019-07-17 Tom Tromey <tom@tromey.com>
2146
2147 * tui/tui-windata.h (tui_display_all_data): Don't declare.
2148 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
2149 from tui_display_all_data.
2150 * tui/tui-win.c
2151 (tui_data_window::do_make_visible_with_new_height): Update.
2152 * tui/tui-regs.c (tui_show_registers): Update.
2153 * tui/tui-layout.c (tui_set_layout): Update.
2154 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
2155 method.
2156
21572019-07-17 Tom Tromey <tom@tromey.com>
2158
2159 * tui/tui-windata.h (tui_display_data_from): Don't declare.
2160 * tui/tui-windata.c (tui_display_data_from): Remove.
2161 (tui_data_window::refresh_all): Update.
2162
21632019-07-17 Tom Tromey <tom@tromey.com>
2164
2165 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
2166 * tui/tui-windata.c (tui_display_data_from_line): Remove.
2167 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
2168 tui_display_registers_from_line.
2169 * tui/tui-regs.h (tui_display_registers_from_line): Update.
2170 * tui/tui-regs.c (tui_display_registers_from_line): Remove
2171 "force_display" parameter.
2172
21732019-07-17 Tom Tromey <tom@tromey.com>
2174
2175 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2176 declare.
2177 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2178 Rename from tui_first_reg_element_no_inline.
2179 (tui_display_reg_element_at_line)
2180 (tui_display_registers_from_line): Update.
2181 * tui/tui-data.h (struct tui_data_window)
2182 <first_reg_element_no_inline>: New method.
2183
21842019-07-17 Tom Tromey <tom@tromey.com>
2185
2186 * tui/tui-windata.c (tui_display_data_from)
2187 (tui_data_window::do_scroll_vertical): Update.
2188 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2189 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2190 Rename from tui_line_from_reg_element_no.
2191 (tui_display_registers_from_line): Update.
2192 * tui/tui-data.h (struct tui_data_window)
2193 <line_from_reg_element_no>: New method.
2194
21952019-07-17 Tom Tromey <tom@tromey.com>
2196
2197 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2198 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2199 tui_last_regs_line_no.
2200 (tui_display_reg_element_at_line)
2201 (tui_display_registers_from_line): Update.
2202 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2203 method.
2204
22052019-07-17 Tom Tromey <tom@tromey.com>
2206
2207 PR tui/24722:
2208 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2209 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2210 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2211 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2212 (tui_update_breakpoint_info): Likewise.
2213 * tui/tui-hooks.c (tui_event_create_breakpoint)
2214 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2215 Update.
2216
22172019-07-17 Tom Tromey <tom@tromey.com>
2218
2219 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2220
22212019-07-17 Tom Tromey <tom@tromey.com>
2222
2223 * tui/tui-winsource.c (tui_update_source_window_as_is)
2224 (tui_update_source_windows_with_addr): Update.
2225 * tui/tui-source.h (tui_set_source_content)
2226 (tui_show_symtab_source): Add "win_info" parameter.
2227 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2228 parameter.
2229 (tui_show_symtab_source): Likewise.
2230
22312019-07-17 Tom Tromey <tom@tromey.com>
2232
2233 * tui/tui-wingeneral.c
2234 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2235
22362019-07-17 Tom Tromey <tom@tromey.com>
2237
2238 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2239 (struct tui_cmd_window) <can_scroll>: New method.
2240 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2241 method.
2242
22432019-07-17 Tom Tromey <tromey@adacore.com>
2244
2245 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2246 do_field_signed>: Rename. Change type of "value".
2247 * ui-out.c (ui_out::field_signed): Rename from field_int.
2248 Change type of "value".
2249 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2250 type of "value".
2251 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2252 do_field_int. Change type of "value".
2253 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2254 do_field_int. Change type of "value".
2255 * tracepoint.c (trace_status_mi, tfind_1)
2256 (print_one_static_tracepoint_marker): Update.
2257 * thread.c (print_thread_info_1, print_selected_thread_frame):
2258 Update.
2259 * stack.c (print_frame, print_frame_info): Update.
2260 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2261 Update.
2262 * source.c (print_source_lines_base): Update.
2263 * skip.c (info_skip_command): Update.
2264 * record-btrace.c (btrace_ui_out_decode_error)
2265 (btrace_call_history_src_line): Update.
2266 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2267 Update.
2268 * progspace.c (print_program_space): Update.
2269 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2270 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2271 do_field_int. Change type of "value".
2272 * mi/mi-out.c (mi_ui_out::do_table_begin)
2273 (mi_ui_out::do_table_header): Update.
2274 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2275 type of "value".
2276 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2277 (mi_cmd_data_list_changed_registers, output_register)
2278 (mi_cmd_data_read_memory, mi_load_progress)
2279 (mi_cmd_trace_frame_collected): Update.
2280 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2281 Update.
2282 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2283 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2284 (mi_cmd_var_list_children, varobj_update_one): Update.
2285 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2286 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2287 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2288 * inferior.c (print_inferior): Update.
2289 * gdb_bfd.c (print_one_bfd): Update.
2290 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2291 Update.
2292 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2293 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2294 do_field_int. Change type of "value".
2295 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2296 do_field_int. Change type of "value".
2297 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2298 (print_one_breakpoint_location, print_it_catch_fork)
2299 (print_one_catch_fork, print_it_catch_vfork)
2300 (print_one_catch_vfork, print_it_catch_solib)
2301 (print_it_catch_exec, print_it_ranged_breakpoint)
2302 (print_mention_watchpoint, print_mention_masked_watchpoint)
2303 (bkpt_print_it, update_static_tracepoint): Update.
2304 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2305 * break-catch-syscall.c (print_it_catch_syscall): Update.
2306 * ada-tasks.c (print_ada_task_info): Update.
2307 * ada-lang.c (print_it_exception, print_mention_exception):
2308 Update.
2309
23102019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 PR breakpoints/24541
2313 * gdbarch.c: Regenerate.
2314 * gdbarch.h: Regenerate.
2315 * gdbarch.sh: Adjust return type and parameter types for
2316 'stap_adjust_register'.
2317 (i386_stap_adjust_register): Adjust signature and return new
2318 register name.
2319 * stap-probe.c (stap_parse_register_operand): Adjust use of
2320 'gdbarch_stap_adjust_register'.
2321
23222019-07-17 Tom Tromey <tromey@adacore.com>
2323
2324 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2325 declare VEC.
2326 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2327 std::vector.
2328 (struct s390_process_info): Add initializers.
2329 (s390_add_process): Use new.
2330 (s390_linux_nat_target::low_forget_process): Use delete.
2331 (s390_linux_nat_target::low_new_fork)
2332 (s390_linux_nat_target::stopped_by_watchpoint)
2333 (s390_linux_nat_target::low_prepare_to_resume)
2334 (s390_linux_nat_target::insert_watchpoint)
2335 (s390_linux_nat_target::insert_hw_breakpoint)
2336 (s390_linux_nat_target::remove_watchpoint)
2337 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2338
23392019-07-16 John Baldwin <jhb@FreeBSD.org>
2340
2341 * aarch64-fbsd-nat.c: Include regcache.h.
2342 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2343 argument.
2344 (aarch64_fbsd_nat_target::fetch_registers)
2345 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2346 variable.
2347 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2348
23492019-07-16 John Baldwin <jhb@FreeBSD.org>
2350
2351 * fbsd-nat.c: Include gdbarch.h.
2352
23532019-07-15 Tom Tromey <tromey@adacore.com>
2354
2355 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2356
23572019-07-15 Tom Tromey <tromey@adacore.com>
2358
2359 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2360 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2361 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2362 * cli-out.c (cli_ui_out::do_field_int): New method.
2363 * ui-out.c (ui_out::field_unsigned): New method.
2364 * symfile.c (generic_load): Use field_unsigned.
2365 (print_transfer_performance): Likewise.
2366 * record-btrace.c (ui_out_field_uint): Remove.
2367 (btrace_call_history_insn_range, btrace_call_history): Use
2368 field_unsigned.
2369 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2370 field_unsigned.
2371 * ui-out.h (class ui_out) <field_unsigned>: New method.
2372 <do_field_unsigned>: Likewise.
2373
23742019-07-15 Tom Tromey <tromey@adacore.com>
2375
2376 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2377 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2378 * target.c (flash_erase_command): Use field_string.
2379 * infrun.c (print_signal_received_reason): Use field_string.
2380 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2381 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2382 field_string.
2383 * ada-tasks.c (print_ada_task_info): Use field_string.
2384
23852019-07-15 Tom Tromey <tromey@adacore.com>
2386
2387 * target.c (flash_erase_command): Use field_core_addr.
2388 * symfile.c (generic_load): Use field_core_addr.
2389 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2390 Use field_core_addr.
2391 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2392 field_core_addr.
2393
23942019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2395
2396 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2397 value if its desired type is smaller than a CORE_ADDR and signed.
2398
23992019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2402 of changes to field names, and use new is_reference field to
2403 decide if a property is a reference or not.
2404 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2405 field.
2406 (struct dwarf2_property_baton): Update header comment, rename
2407 'referenced_type' to 'property_type' and update comments.
2408 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2409 default property type, store in property baton, update to take
2410 accound of renamed field.
2411 (read_func_scope): Update call to attr_to_dynamic_prop.
2412 (read_array_type): Likewise.
2413 (dwarf2_per_cu_addr_sized_int_type): New function.
2414 (read_subrange_index_type): Move type finding code to
2415 dwarf2_per_cu_addr_sized_int_type.
2416 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2417 (dwarf2_per_cu_addr_type): New function.
2418 (set_die_type): Update calls to attr_to_dynamic_prop.
2419
24202019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2421
2422 * dwarf2read.c (read_subrange_index_type): New function.
2423 (read_subrange_type): Move code into new function and call it.
2424 * gdbtypes.c (create_range_type): Add some asserts.
2425
24262019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2429 update return statements.
2430 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2431 declaration, and update comment to match.
2432 * gdbtypes.c (resolve_dynamic_array): Update call to
2433 dwarf2_evaluate_property to match new return type.
2434
24352019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2436
2437 * valarith.c (value_subscripted_rvalue): Change lowerbound
2438 parameter type from int to LONGEST.
2439 * value.h (value_subscripted_rvalue): Likewise in declaration.
2440
24412019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2442
2443 * cli/cli-utils.c (info_print_command_completer): New function.
2444 * cli/cli-utils.h: Add 'completer.h' include, and forward
2445 declaration for 'struct cmd_list_element'.
2446 (info_print_command_completer): Declare.
2447 * stack.c (_initialize_stack): Add completer for 'info locals' and
2448 'info args'.
2449 * symtab.c (_initialize_symtab): Add completer for 'info
2450 variables' and 'info functions'.
2451 * NEWS: Mention completion for additional info commands.
2452
24532019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * cli/cli-utils.c (extract_info_print_args): Delete.
2456 (extract_arg_maybe_quoted): Delete.
2457 (info_print_options_defs): New variable.
2458 (make_info_print_options_def_group): New function.
2459 (extract_info_print_options): Define new function.
2460 * cli/cli-utils.h (extract_info_print_args): Delete.
2461 (struct info_print_options): New structure.
2462 (extract_info_print_options): Declare new function.
2463 * stack.c (info_locals_command): Update to use new
2464 extract_info_print_options, also add a header comment.
2465 (info_args_command): Likewise.
2466 * symtab.c (info_variables_command): Likewise.
2467 (info_functions_command): Likewise.
2468
24692019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2470
2471 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2472 to extract string arguments.
2473 * common/common-utils.c (extract_string_maybe_quoted): New function.
2474 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2475
24762019-07-11 Tom Tromey <tromey@adacore.com>
2477
2478 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2479 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2480 * top.h (gdbinit): Don't declare.
2481 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2482 into...
2483 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2484 * top.c (gdb_init): Don't call init_cli_cmds.
2485 (gdbinit): Remove.
2486 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2487
24882019-07-11 Tom Tromey <tromey@adacore.com>
2489
2490 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2491 after it has been moved.
2492
24932019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2494
2495 * valops.c (value_must_coerce_to_target): Change return type to
2496 bool.
2497 * value.h (value_must_coerce_to_target): Likewise.
2498
24992019-07-10 Simon Marchi <simon.marchi@efficios.com>
2500
2501 * breakpoint.c (is_hardware_watchpoint): Remove
2502 forward-declaration.
2503 (is_masked_watchpoint): Change return type to bool.
2504 (is_tracepoint): Likewise.
2505 (is_breakpoint): Likewise.
2506 (is_hardware_watchpoint): Likewise.
2507 (is_watchpoint): Likewise.
2508 (is_no_memory_software_watchpoint): Likewise.
2509 (is_catchpoint): Likewise.
2510 (breakpoint_1): Make FILTER parameter's return type bool.
2511 is_masked_watchpoint): Change return type to bool.
2512 (save_breakpoints): Make FILTER parameter's return type bool.
2513 * breakpoint.h (is_breakpoint): Change return type to bool.
2514 (is_watchpoint): Likewise.
2515 (is_catchpoint): Likewise.
2516 (is_tracepoint): Likewise.
2517
25182019-07-10 Tom Tromey <tom@tromey.com>
2519
2520 * defs.h: Don't include gdbarch.h.
2521 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2522 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2523 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2524 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2525 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2526 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2527 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2528 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2529 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2530 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2531 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2532 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2533 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2534 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2535 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2536 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2537 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2538 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2539 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2540 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2541 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2542 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2543 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2544 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2545 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2546 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2547 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2548
25492019-07-10 Tom Tromey <tromey@adacore.com>
2550
2551 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2552 * breakpoint.c (init_ada_exception_breakpoint): Register as
2553 bp_catchpoint.
2554 (print_one_breakpoint_location, print_one_breakpoint): Use
2555 is_ada_exception_catchpoint.
2556 * ada-lang.c (class ada_catchpoint_location): Pass
2557 bp_loc_software_breakpoint to bp_location constructor.
2558 (is_ada_exception_catchpoint): New function.
2559
25602019-07-10 Tom Tromey <tromey@adacore.com>
2561
2562 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2563 VEC.
2564 (struct arm_exidx_entry): New method operator<.
2565 (struct arm_exidx_data) <section_maps>: Change type.
2566 (arm_exidx_data_free): Remove.
2567 (arm_exidx_data_key): Change type. Move lower.
2568 (arm_exidx_new_objfile): Update.
2569 (arm_compare_exidx_entries): Remove.
2570 (arm_find_exidx_entry, _initialize_arm_tdep)
2571
25722019-07-10 Tom Tromey <tromey@adacore.com>
2573
2574 * solib-spu.c (ocl_program_data_key): Change type.
2575 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2576 Update.
2577
25782019-07-10 Tom Tromey <tromey@adacore.com>
2579
2580 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2581 (struct solib_aix_inferior_data) <library_list>: Change type.
2582 (solib_aix_inferior_data_handle): Change type.
2583 (get_solib_aix_inferior_data): Update.
2584 (solib_aix_free_library_list): Remove.
2585 (library_list_start_library): Update.
2586 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2587 return type.
2588 (solib_aix_get_library_list)
2589 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2590 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2591
25922019-07-10 Tom Tromey <tromey@adacore.com>
2593
2594 * solib-dsbt.c (struct dsbt_info): Add initializers.
2595 (solib_dsbt_pspace_data): Change type.
2596 (dsbt_pspace_data_cleanup): Remove.
2597 (get_dsbt_info, _initialize_dsbt_solib): Update.
2598
25992019-07-10 Tom Tromey <tromey@adacore.com>
2600
2601 * spu-tdep.c (spu_overlay_data): Change type.
2602 (spu_get_overlay_table, spu_overlay_new_objfile)
2603 (_initialize_spu_tdep): Update.
2604
26052019-07-10 Tom Tromey <tromey@adacore.com>
2606
2607 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2608 destructor.
2609 (dbx_objfile_data_key): Change type and declare later.
2610 (DBX_SYMFILE_INFO): Rewrite.
2611 * dbxread.c (dbx_objfile_data_key): Change type.
2612 (dbx_symfile_init): Update.
2613 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2614 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2615 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2616
26172019-07-10 Tom Tromey <tromey@adacore.com>
2618
2619 * jit.c (jit_program_space_key): Change type. Move lower.
2620 (get_jit_program_space_data): Update.
2621 (jit_program_space_data_cleanup): Remove.
2622 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2623 Update.
2624 (struct jit_program_space_data): Add initializers.
2625
26262019-07-10 Tom Tromey <tromey@adacore.com>
2627
2628 * solib-darwin.c (struct darwin_info): Add initializers.
2629 (solib_darwin_pspace_data): Change type.
2630 (darwin_pspace_data_cleanup): Remove.
2631 (get_darwin_info, _initialize_darwin_solib): Update.
2632
26332019-07-10 Tom Tromey <tromey@adacore.com>
2634
2635 * remote-sim.c (struct sim_inferior_data): Add initializers,
2636 constructor, and destructor.
2637 (sim_inferior_data_key): Change type. Move lower.
2638 (check_for_duplicate_sim_descriptor): Update.
2639 (get_sim_inferior_data): Use new. Update.
2640 (~sim_inferior_data_cleanup): Rename from
2641 sim_inferior_data_cleanup. Simplify.
2642 (gdbsim_close_inferior, simulator_command)
2643 (sim_command_completer, _initialize_remote_sim): Update.
2644 (next_pid, INITIAL_PID): Move earlier.
2645
26462019-07-10 Tom Tromey <tromey@adacore.com>
2647
2648 * python/python-internal.h (create_thread_object): Return
2649 gdbpy_ref.
2650 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2651 * python/py-inferior.c (struct threadlist_entry): Add
2652 constructor.
2653 <thread_obj>: Now a gdbpy_ref.
2654 (thread_to_thread_object): Update.
2655 (add_thread_object): Use new.
2656 (delete_thread_object): Use delete.
2657 (infpy_threads): Update.
2658 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2659 GIL.
2660
26612019-07-10 Tom Tromey <tromey@adacore.com>
2662
2663 * valops.c (value_cast): Specialize error message for Ada.
2664
26652019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2666
2667 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2668
26692019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2670
2671 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2672 bpstat_should_step): Return bool, adjust comments.
2673 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2674 bpstat_should_step): Likewise.
2675
26762019-07-10 Alan Hayward <alan.hayward@arm.com>
2677
2678 * features/Makefile: Use feature target descriptions for Arm.
2679 * features/arm/arm-core.c: Generate new file.
2680 * features/arm/arm-fpa.c: Likewise.
2681 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2682 * features/arm/arm-m-profile.c: Likewise.
2683 * features/arm/arm-vfpv2.c: Likewise.
2684 * features/arm/arm-vfpv3.c: Likewise.
2685 * features/arm/xscale-iwmmxt.c: Likewise.
2686 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2687
26882019-07-10 Alan Hayward <alan.hayward@arm.com>
2689
2690 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2691 ptrace earlier.
2692
26932019-07-10 Alan Hayward <alan.hayward@arm.com>
2694
2695 * features/aarch64-pauth.c: Regenerate.
2696
26972019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2700 bool.
2701 (bpstat_what): Use false instead of 0.
2702
27032019-07-09 Pedro Alves <palves@redhat.com>
2704
2705 * break-catch-throw.c (is_exception_catchpoint): New.
2706 * breakpoint.c (print_one_breakpoint_location): New parameter
2707 'raw_loc'. Handle it. Use
2708 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2709 looking at the breakpoint's type.
2710 (print_one_breakpoint): If handling "maint info breakpoints", also
2711 print locations of exception catchpoints.
2712 * breakpoint.h (is_exception_catchpoint): Declare.
2713
27142019-07-09 Pedro Alves <palves@redhat.com>
2715
2716 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2717 "addr" field.
2718 (allocate_location_exception_catchpoint): New.
2719 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2720 (initialize_throw_catchpoint_ops): Install
2721 allocate_location_exception_catchpoint as allocate_location
2722 method.
2723 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2724 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2725 bp_loc_other.
2726 (breakpoint_address_is_meaningful): Delete.
2727 (bl_address_is_meaningful): New.
2728 (breakpoint_locations_match): Adjust comment.
2729 (bp_location_from_bp_type): New, factored out of...
2730 (bp_location::bp_location(breakpoint *)): ... this.
2731 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2732 factored out of...
2733 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2734 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2735 breakpoint_address_is_meaningful.
2736 (bp_locations_compare): Adjust comment.
2737 (update_global_location_list): Use bl_address_is_meaningful
2738 instead of breakpoint_address_is_meaningful.
2739 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2740 explicit.
2741 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2742 * python/py-breakpoint.c (bppy_get_location): No longer check
2743 whether location is null.
2744
27452019-07-09 Pedro Alves <palves@redhat.com>
2746
2747 PR c++/15468
2748 * breakpoint.c (print_one_breakpoint_location): Remove
2749 single-location assert.
2750
27512019-07-09 Tom Tromey <tom@tromey.com>
2752
2753 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2754 * configure: Rebuild.
2755 * configure.ac: Change common to gdbsupport.
2756 * gdbsupport: Rename from common.
2757 * acinclude.m4: Change common to gdbsupport.
2758 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2759 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2760 gdbsupport.
2761 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2762 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2763 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2764 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2765 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2766 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2767 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2768 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2769 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2770 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2771 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2772 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2773 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2774 coff-pe-read.c, command.h, compile/compile-c-support.c,
2775 compile/compile-c.h, compile/compile-cplus-symbols.c,
2776 compile/compile-cplus-types.c, compile/compile-cplus.h,
2777 compile/compile-loc2c.c, compile/compile.c, completer.c,
2778 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2779 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2780 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2781 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2782 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2783 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2784 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2785 features/aarch64-core.c, features/aarch64-fpu.c,
2786 features/aarch64-pauth.c, features/aarch64-sve.c,
2787 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2788 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2789 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2790 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2791 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2792 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2793 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2794 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2795 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2796 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2797 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2798 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2799 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2800 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2801 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2802 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2803 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2804 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2805 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2806 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2807 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2808 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2809 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2810 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2811 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2812 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2813 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2814 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2815 minsyms.c, mips-linux-tdep.c, namespace.h,
2816 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2817 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2818 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2819 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2820 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2821 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2822 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2823 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2824 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2825 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2826 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2827 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2828 procfs.c, producer.c, progspace.h, psymtab.h,
2829 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2830 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2831 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2832 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2833 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2834 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2835 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2836 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2837 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2838 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2839 target-memory.c, target.c, target.h, target/waitstatus.c,
2840 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2841 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2842 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2843 unittests/array-view-selftests.c,
2844 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2845 unittests/common-utils-selftests.c,
2846 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2847 unittests/format_pieces-selftests.c,
2848 unittests/function-view-selftests.c,
2849 unittests/lookup_name_info-selftests.c,
2850 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2851 unittests/mkdir-recursive-selftests.c,
2852 unittests/observable-selftests.c,
2853 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2854 unittests/parse-connection-spec-selftests.c,
2855 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2856 unittests/scoped_fd-selftests.c,
2857 unittests/scoped_mmap-selftests.c,
2858 unittests/scoped_restore-selftests.c,
2859 unittests/string_view-selftests.c, unittests/style-selftests.c,
2860 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2861 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2862 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2863 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2864 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2865 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2866
28672019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2868
2869 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2870 bool value.
2871 (decode_digits_ordinary): Set explicit_line field in sal.
2872 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2873 symtab_and_line that was set on an explicit line number in
2874 assembler code. Do always update the recorded symtab and line if
2875 we do skip the prologue.
2876
28772019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * breakpoint.c (set_breakpoint_location_function): Remove
2880 explicit_loc parameter.
2881 (momentary_breakpoint_from_master): Update call to
2882 set_breakpoint_location_function.
2883 (add_location_to_breakpoint): Likewise.
2884
28852019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2888 required features based on default bfd type when no specific bfd
2889 is present.
2890
28912019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2892
2893 * NEWS: Mention that GDB printf and eval commands can now print
2894 C-style and Ada-style convenience var strings without
2895 calling the inferior.
2896 * printcmd.c (printf_c_string): Locally print GDB internal var
2897 instead of transiting via the inferior.
2898 (printf_wide_c_string): Likewise.
2899
29002019-07-04 Alan Hayward <alan.hayward@arm.com>
2901
2902 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2903
29042019-07-04 Tom Tromey <tom@tromey.com>
2905
2906 PR tui/24724:
2907 * tui/tui-winsource.c (tui_clear_source_content): Update.
2908 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2909 (tui_update_breakpoint_info): Update.
2910 (tui_set_exec_info_content): Update.
2911 * tui/tui-source.c (tui_set_source_content_nil): Update.
2912 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2913 has_break.
2914 * tui/tui-data.h (enum tui_bp_flag): New.
2915 (tui_bp_flags): New enum flags type.
2916 (struct tui_source_element) <break_mode>: Change type. Rename
2917 from has_break.
2918 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2919 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2920 constants.
2921 * tui/tui-winsource.h: Fix comment.
2922
29232019-07-04 Alan Hayward <alan.hayward@arm.com>
2924
2925 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2926 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2927 (store_fpregs_to_thread)
2928 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2929 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2930 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2931 (IWMMXT_REGS_SIZE): Add define.
2932 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2933 (fetch_vfp_regs, store_vfp_regs)
2934 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2935 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2936
29372019-07-04 Alan Hayward <alan.hayward@arm.com>
2938
2939 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2940 defines.
2941 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2942 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2943 (ARM_INT_REGISTER_SIZE): ...to this.
2944 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2945 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2946 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2947 (arm_linux_collect_gregset, supply_nwfpe_register)
2948 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2949 defines.
2950 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2951 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2952 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2953 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2954 (arm_return_in_memory, arm_store_return_value)
2955 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2956 (arm_record_ld_st_multiple): Likewise.
2957 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2958 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2959
29602019-07-04 Alan Hayward <alan.hayward@arm.com>
2961
2962 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2963 AARCH64_DISPLACED_MODIFIED_INSNS.
2964 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2965 (aarch64_displaced_step_copy_insn): Likewise.
2966 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2967 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2968 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2969 ARM_DISPLACED_MODIFIED_INSNS.
2970 * arm-tdep.c (arm_gdbarch_init): Likewise.
2971 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2972 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2973 (struct arm_displaced_step_closure): Use
2974 ARM_DISPLACED_MODIFIED_INSNS.
2975
29762019-07-04 Alan Hayward <alan.hayward@arm.com>
2977
2978 * features/Makefile: Remove unused xml files.
2979 * features/aarch64.xml: Remove.
2980 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2981 * features/i386/amd64-avx-avx512.xml: Remove.
2982 * features/i386/amd64-avx-linux.xml: Remove.
2983 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2984 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2985 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2986 * features/i386/amd64-avx-mpx.xml: Remove.
2987 * features/i386/amd64-avx.xml: Remove.
2988 * features/i386/amd64-linux.xml: Remove.
2989 * features/i386/amd64-mpx-linux.xml: Remove.
2990 * features/i386/amd64-mpx.xml: Remove.
2991 * features/i386/amd64.xml: Remove.
2992 * features/i386/i386-avx-avx512-linux.xml: Remove.
2993 * features/i386/i386-avx-avx512.xml: Remove.
2994 * features/i386/i386-avx-linux.xml: Remove.
2995 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2996 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2997 * features/i386/i386-avx-mpx-linux.xml: Remove.
2998 * features/i386/i386-avx-mpx.xml: Remove.
2999 * features/i386/i386-avx.xml: Remove.
3000 * features/i386/i386-linux.xml: Remove.
3001 * features/i386/i386-mmx-linux.xml: Remove.
3002 * features/i386/i386-mmx.xml: Remove.
3003 * features/i386/i386-mpx-linux.xml: Remove.
3004 * features/i386/i386-mpx.xml: Remove.
3005 * features/i386/i386.xml: Remove.
3006 * features/i386/x32-avx-avx512-linux.xml: Remove.
3007 * features/i386/x32-avx-linux.xml: Remove.
3008 * features/i386/x32-linux.xml: Remove.
3009
30102019-07-04 Alan Hayward <alan.hayward@arm.com>
3011
3012 * regformats/aarch64.dat: Remove.
3013 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
3014 * regformats/i386/amd64-avx-linux.dat: Remove.
3015 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
3016 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
3017 * regformats/i386/amd64-linux.dat: Remove.
3018 * regformats/i386/amd64-mpx-linux.dat: Remove.
3019 * regformats/i386/amd64.dat: Remove.
3020 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
3021 * regformats/i386/i386-avx-linux.dat: Remove.
3022 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
3023 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
3024 * regformats/i386/i386-linux.dat: Remove.
3025 * regformats/i386/i386-mmx-linux.dat: Remove.
3026 * regformats/i386/i386-mpx-linux.dat: Remove.
3027 * regformats/i386/i386.dat: Remove.
3028 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
3029 * regformats/i386/x32-avx-linux.dat: Remove.
3030 * regformats/i386/x32-linux.dat: Remove.
3031
30322019-07-04 Alan Hayward <alan.hayward@arm.com>
3033
3034 * aarch64-tdep.c: Remove xml self tests.
3035 * amd64-linux-tdep.c: Likewise.
3036 * amd64-tdep.c: Likewise.
3037 * i386-linux-tdep.c: Likewise.
3038 * i386-tdep.c: Likewise.
3039
30402019-07-03 Pedro Alves <palves@redhat.com>
3041
3042 PR cli/24732
3043 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
3044 (pipe_cmd_option_defs): New.
3045 (make_pipe_cmd_options_def_group): New.
3046 (pipe_command): Use gdb::option::process_options.
3047 (pipe_command_completer): New function.
3048 (_initialize_cli_cmds): Install completer for "pipe" command.
3049
30502019-07-03 Pedro Alves <palves@redhat.com>
3051
3052 * cli/cli-option.c (union option_value) <string>: New field.
3053 (struct option_def_and_value): Add ctor, move ctor, dtor and
3054 use DISABLE_COPY_AND_ASSIGN.
3055 (option_def_and_value::clear_value): New.
3056 (parse_option, save_option_value_in_ctx, get_val_type_str)
3057 (add_setshow_cmds_for_options): Handle var_string.
3058 * cli-option.h (union option_def::var_address) <string>: New
3059 field.
3060 (struct string_option_def): New.
3061 * maint-test-options.c (struct test_options_opts): Add default
3062 ctor and use DISABLE_COPY_AND_ASSIGN.
3063 <string_opt>: New field.
3064 (test_options_opts::~test_options_opts): New.
3065 (test_options_opts::dump): Also dump "-string".
3066 (test_options_option_defs): Install "string.
3067
30682019-07-03 Pedro Alves <palves@redhat.com>
3069
3070 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
3071 option_value with a null enumeration.
3072 (complete_options): Save the option values in the context.
3073 (save_option_value_in_ctx): New, factored out from ...
3074 (process_options): ... here.
3075 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
3076 of the function.
3077 * maint-test-options.c (test_options_opts::dump): New, factored
3078 out from ...
3079 (maintenance_test_options_command_mode): ... here.
3080 (maintenance_test_options_command_completion_result): Delete.
3081 (maintenance_test_options_command_completion_text): Update
3082 comment.
3083 (maintenance_show_test_options_completion_result): Change
3084 prototype. Just print
3085 maintenance_test_options_command_completion_text.
3086 (save_completion_result): New.
3087 (maintenance_test_options_completer_mode): Pass options context to
3088 complete_options, and then save a dump.
3089 (_initialize_maint_test_options): Use add_cmd to install "maint
3090 show test-options-completion-result".
3091
30922019-07-03 Pedro Alves <palves@redhat.com>
3093
3094 * NEWS (New commands): Mention "with" and "maint with".
3095 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
3096 (with_command, with_command_completer): New.
3097 (pipe_command): Adjust to new repeat_previous
3098 interface.
3099 (_initialize_cli_cmds): Install the "with" command and its "w"
3100 alias.
3101 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
3102 declarations.
3103 * cli/cli-setshow.c (parse_cli_var_uinteger)
3104 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
3105 argument strings for all var_types.
3106 (get_setshow_command_value_string): New, factored out from ...
3107 (do_show_command): ... this.
3108 * cli/cli-setshow.h: Include <string>.
3109 (get_setshow_command_value_string): Declare.
3110 * command.h (repeat_previous): Now returns const char *. Adjust
3111 comment.
3112 * maint.c: Include "cli/cli-cmds.h".
3113 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
3114 (_initialize_maint_cmds): Register the "maintenance with" command.
3115 * top.c (repeat_previous): Move bits from pipe_command here:
3116 Return the saved command line, if any; error out if there's no
3117 command to relaunch.
3118
31192019-07-03 Pedro Alves <palves@redhat.com>
3120
3121 * NEWS (New commands): Mention "maint set/show test-settings"
3122 instead of "maint test-settings".
3123 * maint-test-settings.c (maintenance_test_settings_list): Delete.
3124 (maintenance_test_settings_set_list): Rename to ...
3125 (maintenance_set_test_settings_list): ... this.
3126 (maintenance_test_settings_show_list): Rename to ...
3127 (maintenance_show_test_settings_list): ... this.
3128 (maintenance_test_settings_cmd): Delete.
3129 (maintenance_test_settings_set_cmd): ...
3130 (maintenance_set_test_settings_cmd): ... this.
3131 (maintenance_test_settings_show_cmd): ...
3132 (maintenance_show_test_settings_cmd): ... this.
3133 (maintenance_test_settings_show_value_cmd):
3134 (maintenance_show_test_settings_value_cmd): ... this.
3135 (_initialize_maint_test_settings): No longer install the "maint
3136 test-settings" prefix command. Rename "maint test-settings set"
3137 to "maint set test-settings", and "maint test-settings show" to
3138 "maint show test-settings". Adjust all subcommands.
3139
31402019-07-03 Pedro Alves <palves@redhat.com>
3141
3142 * maint-test-settings.c: Fix file's intro comment. Replace all
3143 references to "test-options" with references to "test-settings",
3144 in comments.
3145
31462019-07-03 Pedro Alves <palves@redhat.com>
3147
3148 * maint-test-settings.c (maintenance_test_settings_xxx)
3149 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
3150 New.
3151 (maintenance_test_settings_enums): Use them.
3152 (maintenance_test_settings_enum): Default to
3153 maintenance_test_settings_xxx.
3154 (_initialize_maint_test_settings): Initialize
3155 MAINTENANCE_TEST_SETTINGS_FILENAME.
3156
31572019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3158
3159 * breakpoint.h (remove_breakpoints_inf): Change return type to
3160 void, move function documentation here.
3161 * breakpoint.c (remove_breakpoints_inf): Change return type to
3162 void, move function documentation to header.
3163
31642019-07-02 Pedro Alves <palves@redhat.com>
3165
3166 * NEWS (Completion improvements): Mention "info threads".
3167 * thread.c (struct info_threads_opts, info_threads_option_defs)
3168 (make_info_threads_options_def_group): New.
3169 (info_threads_command): Use gdb::option::process_options.
3170 (info_threads_command_completer): New.
3171 (_initialize_thread): Use gdb::option::build_help to build the
3172 help text for "info threads".
3173
31742019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3175
3176 * defs.h (generic_load): Move from here...
3177 * symfile.h (generic_load): ... to here. Rename name parameter
3178 to args.
3179 * symfile.c (generic_load): Add comment.
3180
31812019-07-01 Tom Tromey <tromey@adacore.com>
3182
3183 * dwarf2read.c
3184 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3185 declaration of without_params. Fix formatting.
3186
31872019-07-01 Tom Tromey <tromey@adacore.com>
3188
3189 * ada-exp.y (find_primitive_type): Update.
3190 * ada-lang.h (ada_lookup_symbol): Update.
3191 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3192 parameter.
3193 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3194
31952019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3196
3197 PR breakpoints/24541
3198 * gdbarch.c: Regenerate.
3199 * gdbarch.h: Regenerate.
3200 * gdbarch.sh: Add 'stap_adjust_register'.
3201 * i386-tdep.c: Include '<unordered_set>'.
3202 (i386_stap_adjust_register): New function.
3203 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3204 * stap-probe.c (stap_parse_register_operand): Call
3205 'gdbarch_stap_adjust_register'.
3206
32072019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3208
3209 PR python/24742
3210 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3211 * python/python.c (do_start_initialization): Use 'xmalloc'
3212 instead of 'PyMem_Malloc'.
3213
32142019-06-28 Tom Tromey <tromey@adacore.com>
3215
3216 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3217 for Ada.
3218
32192019-06-27 Tom Tromey <tromey@adacore.com>
3220
3221 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3222 objfile_key.
3223 (arm_find_mapping_symbol, arm_record_special_symbol)
3224 (_initialize_arm_tdep): Update.
3225 (arm_objfile_data_free): Remove.
3226
32272019-06-27 Tom Tromey <tromey@adacore.com>
3228
3229 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3230 to cp_print_static_field.
3231
32322019-06-26 Tom Tromey <tromey@adacore.com>
3233
3234 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3235 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3236 declare.
3237
32382019-06-26 Alan Hayward <alan.hayward@arm.com>
3239
3240 * features/aarch64-core.c (create_feature_aarch64_core):
3241 Regenerate.
3242 * features/aarch64-core.xml: Add cpsr flags.
3243
32442019-06-26 Alan Hayward <alan.hayward@arm.com>
3245
3246 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3247 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3248
32492019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3252 field.
3253 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3254 use.
3255 (arm_record_special_symbol): Don't insert new symbol in sorted
3256 position, push it at the end.
3257
32582019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3259
3260 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3261 (arm_mapping_symbol_s): Remove.
3262 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3263 (arm_mapping_symbol_vec): New typedef.
3264 (struct arm_per_objfile): Add constructor.
3265 <section_maps>: Change type to
3266 std::unique_ptr<arm_mapping_symbol_vec[]>.
3267 (arm_compare_mapping_symbols): Remove.
3268 (arm_find_mapping_symbol): Adjust to section_maps type change.
3269 (arm_objfile_data_free): Call delete on arm_per_objfile.
3270 (arm_record_special_symbol): Adjust to section_maps type change.
3271 Allocate arm_per_objfile with new.
3272
32732019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3274
3275 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3276 with the command prefix.
3277
32782019-06-25 Tom Tromey <tom@tromey.com>
3279
3280 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3281 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3282
32832019-06-25 Tom Tromey <tom@tromey.com>
3284
3285 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3286 type.
3287 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3288 protected.
3289
32902019-06-25 Tom Tromey <tom@tromey.com>
3291
3292 * tui/tui-winsource.c
3293 (tui_source_window_base::set_is_exec_point_at): Add check against
3294 LOA_ADDRESS.
3295
32962019-06-25 Tom Tromey <tom@tromey.com>
3297
3298 * tui/tui-source.c (tui_set_source_content): Don't check before
3299 xfree.
3300 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3301
33022019-06-25 Tom Tromey <tom@tromey.com>
3303
3304 * tui/tui-winsource.h (tui_update_source_window_as_is)
3305 (tui_alloc_source_buffer, tui_line_is_displayed)
3306 (tui_addr_is_displayed): Change type of win_info.
3307 * tui/tui-winsource.c (tui_update_source_window_as_is)
3308 (tui_clear_source_content, tui_show_source_line)
3309 (tui_show_source_content, tui_source_window_base::refill)
3310 (tui_source_window_base::set_is_exec_point_at)
3311 (tui_source_window_base::set_is_exec_point_at)
3312 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3313 (tui_alloc_source_buffer, tui_line_is_displayed)
3314 (tui_addr_is_displayed): Change type of win_info. Update.
3315 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3316 (tui_source_window_base::do_make_visible_with_new_height):
3317 Update.
3318 * tui/tui-source.c (tui_set_source_content)
3319 (tui_set_source_content_nil)
3320 (tui_source_window::do_scroll_vertical): Update.
3321 * tui/tui-layout.c (show_layout): Update.
3322 * tui/tui-disasm.c (tui_set_disassem_content)
3323 (tui_disasm_window::do_scroll_vertical): Update.
3324 * tui/tui-data.h (tui_win_content): Remove.
3325 (struct tui_gen_win_info) <content, content_size>: Remove.
3326 (struct tui_source_element): Add initializers and destructor.
3327 (union tui_which_element, struct tui_win_element): Remove.
3328 (struct tui_source_window_base) <content>: New field.
3329 (struct tui_data_window): Remove destructor.
3330 (tui_alloc_content, tui_free_win_content)
3331 (tui_free_all_source_wins_content): Don't declare.
3332 * tui/tui-data.c (tui_initialize_static_data): Update.
3333 (init_content_element, tui_alloc_content): Remove.
3334 (~tui_gen_win_info): Update.
3335 (~tui_data_window, tui_free_all_source_wins_content)
3336 (tui_free_win_content, free_content, free_content_elements):
3337 Remove.
3338
33392019-06-25 Tom Tromey <tom@tromey.com>
3340
3341 * tui/tui-winsource.h (tui_clear_source_content)
3342 (tui_erase_source_content, tui_show_source_content): Change type
3343 of win_info.
3344 * tui/tui-winsource.c (tui_clear_source_content)
3345 (tui_erase_source_content, tui_show_source_content): Change type
3346 of win_info.
3347 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3348 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3349 win_info.
3350 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3351 win_info.
3352 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3353
33542019-06-25 Tom Tromey <tom@tromey.com>
3355
3356 * tui/tui-winsource.c (tui_clear_source_content)
3357 (tui_source_window_base::set_is_exec_point_at): Update.
3358 * tui/tui-source.c (tui_set_source_content_nil): Update.
3359 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3360 a bool.
3361 * tui/tui-data.c (init_content_element): Update.
3362
33632019-06-25 Tom Tromey <tom@tromey.com>
3364
3365 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3366 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3367 * tui/tui-layout.c (init_and_make_win): Update.
3368 * tui/tui.h (enum tui_win_type): Update.
3369 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3370 tui_win_is_auxillary.
3371 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3372 tui_win_is_auxillary.
3373
33742019-06-25 Tom Tromey <tom@tromey.com>
3375
3376 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3377 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3378 (tui_delete_data_content_windows, tui_display_all_data)
3379 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3380 Update.
3381 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3382 * tui/tui-regs.c (tui_last_regs_line_no)
3383 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3384 (tui_show_registers): Update.
3385 (tui_show_register_group): Return void. Update.
3386 (tui_display_registers_from, tui_display_reg_element_at_line)
3387 (tui_display_registers_from_line, tui_check_register_values):
3388 Update.
3389 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3390 member.
3391 (struct tui_data_window) <regs_content>: Now a std::vector.
3392 <regs_content_count>: Remove.
3393 (tui_add_content_elements, tui_free_data_content): Don't declare.
3394 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3395 (init_content_element): Remove DATA_WIN case. Add assert.
3396 (tui_add_content_elements): Remove.
3397 (tui_data_window): Update.
3398 (tui_free_data_content): Remove.
3399 (free_content_elements): Remove DATA_WIN case.
3400
34012019-06-25 Tom Tromey <tom@tromey.com>
3402
3403 * tui/tui-data.c (tui_data_item_window): Update.
3404 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3405 * tui/tui-windata.c (tui_display_all_data)
3406 (tui_display_data_from_line): Update.
3407 (tui_check_data_values): Remove.
3408 * tui/tui-regs.c (tui_show_register_group)
3409 (tui_display_reg_element_at_line): Update.
3410 * tui/tui-hooks.c (tui_register_changed)
3411 (tui_refresh_frame_and_register_information): Call
3412 tui_check_register_values.
3413 * tui/tui-data.h (struct tui_data_window) <data_content,
3414 data_content_count, data_type>: Remove.
3415 (enum tui_data_type): Remove.
3416
3417 * tui/tui-data.c (tui_data_window::clear_detail)
3418 (~tui_data_window): Update.
3419
34202019-06-25 Tom Tromey <tom@tromey.com>
3421
3422 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3423 declare.
3424 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3425 Rename from tui_first_data_item_displayed. Update.
3426 (tui_data_window::refresh_all)
3427 (tui_data_window::do_scroll_vertical): Update.
3428 * tui/tui-data.h (struct tui_data_window)
3429 <first_data_item_displayed>: Declare new method.
3430
34312019-06-25 Tom Tromey <tom@tromey.com>
3432
3433 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3434 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3435 contents...
3436 (tui_initialize_static_data): ...here.
3437
34382019-06-25 Tom Tromey <tom@tromey.com>
3439
3440 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3441 (tui_display_registers_from, tui_check_register_values): Update.
3442 (tui_display_register): Remove win_info parameter; update.
3443 (tui_get_register): Change type of parameters.
3444 * tui/tui-data.h (struct tui_data_element): Remove.
3445 (union tui_which_element) <data>: Remove.
3446 <data_window>: Change type.
3447 (struct tui_data_item_window): New.
3448 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3449 case. Add assert.
3450 (~tui_data_item_window): New destructor.
3451 (free_content_elements): Remove DATA_ITEM_WIN case.
3452
34532019-06-25 Tom Tromey <tom@tromey.com>
3454
3455 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3456 Remove.
3457
34582019-06-25 Tom Tromey <tom@tromey.com>
3459
3460 * tui/tui-data.h (struct tui_command_element): Remove.
3461 (union tui_which_element) <command>: Remove.
3462 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3463 assert.
3464 (free_content_elements): Remove CMD_WIN case.
3465
34662019-06-25 Tom Tromey <tom@tromey.com>
3467
3468 * tui/tui-layout.c (tui_set_layout): Update.
3469 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3470 * tui/tui-data.c (layout_def): Update.
3471
34722019-06-25 Tom Tromey <tom@tromey.com>
3473
3474 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3475 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3476 (tui_source_window_base::set_new_height): Update.
3477 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3478 Update.
3479 (tui_set_locator_fullname, tui_set_locator_info)
3480 (tui_show_frame_info): Update.
3481 * tui/tui-source.c (tui_set_source_content)
3482 (tui_source_is_displayed): Update.
3483 * tui/tui-layout.c (show_source_disasm_command, show_data)
3484 (show_source_or_disasm_and_command): Update.
3485 * tui/tui-disasm.c (tui_set_disassem_content)
3486 (tui_get_begin_asm_address): Update.
3487 * tui/tui-data.h (struct tui_locator_element): Remove.
3488 (union tui_which_element) <locator>: Remove.
3489 (struct tui_locator_window): New.
3490 (tui_locator_win_info_ptr): Change return type.
3491 * tui/tui-data.c (_locator): Change type.
3492 (tui_locator_win_info_ptr): Change return type.
3493 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3494 (tui_alloc_content): Add assert.
3495
34962019-06-25 Tom Tromey <tom@tromey.com>
3497
3498 * tui/tui-winsource.c
3499 (tui_exec_info_window::maybe_allocate_content): New method.
3500 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3501 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3502 (make_source_or_disasm_window): Add cast.
3503 * tui/tui-data.h (union tui_which_element) <simple_string>:
3504 Remove.
3505 (struct tui_source_info): New.
3506 (struct tui_source_window_base) <execution_info>: Change type.
3507 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3508 case, and add assert.
3509 (tui_alloc_content): Add assert.
3510
35112019-06-25 Tom Tromey <tom@tromey.com>
3512
3513 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3514 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3515 * tui/tui-data.c (tui_alloc_win_info): Remove.
3516
35172019-06-25 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3520 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3521 can_highlight.
3522
35232019-06-25 Tom Tromey <tom@tromey.com>
3524
3525 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3526 make_visible_with_new_height method.
3527 (tui_win_info::make_visible_with_new_height): New method.
3528 (tui_source_window_base::do_make_visible_with_new_height)
3529 (tui_data_window::do_make_visible_with_new_height)
3530 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3531 (make_visible_with_new_height): Remove.
3532 (tui_resize_all, tui_adjust_win_heights): Use
3533 make_visible_with_new_height method.
3534 * tui/tui-data.h (struct tui_win_info)
3535 <do_make_visible_with_new_height, make_visible_with_new_height>:
3536 New methods.
3537 (struct tui_source_window_base, struct tui_data_window)
3538 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3539 methods.
3540
35412019-06-25 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3544 method.
3545 (update_tab_width): Call update_tab_width method.
3546 * tui/tui-data.h (struct tui_win_info)
3547 (struct tui_source_window_base) <update_tab_width>: New methods.
3548
35492019-06-25 Tom Tromey <tom@tromey.com>
3550
3551 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3552 parameter.
3553 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3554 parameter.
3555 (tui_gen_win_info::make_visible): Update.
3556 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3557 parameter.
3558 * tui/tui-data.h (enum tui_box): New enum.
3559 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3560
35612019-06-25 Tom Tromey <tom@tromey.com>
3562
3563 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3564 init_and_make_win for EXEC_INFO_WIN.
3565 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3566 longer inline.
3567 (struct tui_win_info) <~tui_win_info>: Inline.
3568 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3569 Don't declare.
3570 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3571 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3572 Remove.
3573 (tui_initialize_static_data): Update.
3574 (~tui_gen_win_info): Handle more cleanup here.
3575 (~tui_source_window_base): Delete "execution_info".
3576 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3577
35782019-06-25 Tom Tromey <tom@tromey.com>
3579
3580 * tui/tui-layout.c (make_command_window): Don't set
3581 can_highlight.
3582 (show_source_disasm_command): Call the reset method.
3583 (show_data): Don't set can_highlight. Call the reset method.
3584 (tui_gen_win_info::reset): Rename from init_gen_win_info
3585 (init_and_make_win): Simplify. Return tui_gen_win_info.
3586 (show_source_or_disasm_and_command): Call the reset method.
3587 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3588 (struct tui_cmd_window): Set can_highlight.
3589
35902019-06-25 Tom Tromey <tom@tromey.com>
3591
3592 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3593 from make_visible.
3594 (tui_make_visible, tui_make_invisible): Rewrite.
3595 (tui_win_info::make_visible): Remove.
3596 (tui_source_window_base::make_visible): Update.
3597 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3598 method. Moved from...
3599 (struct tui_win_info) <make_visible>: ...here.
3600
36012019-06-25 Tom Tromey <tom@tromey.com>
3602
3603 * tui/tui-winsource.c
3604 (tui_source_window_base::do_scroll_horizontal): Remove direction
3605 parameter.
3606 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3607 direction parameter.
3608 * tui/tui-win.c (tui_win_info::forward_scroll)
3609 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3610 (tui_win_info::right_scroll): Update.
3611 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3612 direction parameter.
3613 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3614 direction parameter.
3615 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3616 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3617 Remove direction parameter.
3618 (struct tui_source_window_base, struct tui_source_window)
3619 (struct tui_disasm_window, struct tui_data_window)
3620 (struct tui_cmd_window): Update.
3621
36222019-06-25 Tom Tromey <tom@tromey.com>
3623
3624 * tui/tui-winsource.h (tui_set_exec_info_content)
3625 (tui_show_exec_info_content, tui_erase_exec_info_content)
3626 (tui_clear_exec_info_content, tui_update_exec_info): Change
3627 argument to tui_source_window_base.
3628 * tui/tui-winsource.c (tui_set_exec_info_content)
3629 (tui_show_exec_info_content, tui_erase_exec_info_content)
3630 (tui_clear_exec_info_content, tui_update_exec_info): Change
3631 argument to tui_source_window_base.
3632
36332019-06-25 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3636 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3637
36382019-06-25 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3641 check.
3642
36432019-06-25 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3646 type to void.
3647 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3648 type to void.
3649 * tui/tui-source.c (tui_set_source_content): Update.
3650 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3651
36522019-06-25 Tom Tromey <tom@tromey.com>
3653
3654 * tui/tui-win.c (window_name_completer, tui_set_focus)
3655 (tui_all_windows_info): Use name method.
3656 * tui/tui-data.h (struct tui_gen_win_info)
3657 (struct tui_source_window, struct tui_disasm_window)
3658 (struct tui_data_window, struct tui_cmd_window) <name>: New
3659 method.
3660 (tui_win_name): Don't declare.
3661 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3662 (tui_win_name): Remove.
3663
36642019-06-25 Tom Tromey <tom@tromey.com>
3665
3666 * tui/tui-winsource.h (tui_update_source_window)
3667 (tui_update_source_window_as_is): Change parameter type.
3668 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3669 to be a tui_source_window_base.
3670 (tui_update_source_window_as_is): Likewise.
3671 * tui/tui-win.c (make_visible_with_new_height): Update.
3672
36732019-06-25 Tom Tromey <tom@tromey.com>
3674
3675 * tui/tui-winsource.c (tui_erase_source_content)
3676 (tui_show_source_content, tui_show_exec_info_content)
3677 (tui_erase_exec_info_content): Use refresh_window method.
3678 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3679 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3680 from tui_refresh_win.
3681 (tui_data_window::refresh_window): New method.
3682 (tui_win_info::refresh, tui_source_window_base::refresh)
3683 (tui_refresh_all): Use refresh_window method.
3684 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3685 method.
3686 * tui/tui-regs.c (tui_display_register): Call refresh_window
3687 method.
3688 * tui/tui-layout.c (show_source_disasm_command)
3689 (show_source_or_disasm_and_command): Call refresh_window method.
3690 * tui/tui-data.h (struct tui_gen_win_info)
3691 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3692 New method.
3693
36942019-06-25 Tom Tromey <tom@tromey.com>
3695
3696 * tui/tui.c (tui_rl_other_window, tui_enable)
3697 (tui_is_window_visible, tui_get_command_dimension): Update.
3698 * tui/tui-winsource.c (tui_update_source_window_as_is)
3699 (tui_clear_source_content, tui_erase_source_content)
3700 (tui_show_source_line, tui_source_window_base::refill)
3701 (tui_source_window_base::do_scroll_horizontal)
3702 (tui_source_window_base::set_is_exec_point_at)
3703 (tui_update_breakpoint_info, tui_set_exec_info_content)
3704 (tui_alloc_source_buffer, tui_line_is_displayed)
3705 (tui_addr_is_displayed): Update.
3706 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3707 (tui_check_and_display_highlight_if_needed)
3708 (tui_win_info::make_visible, tui_win_info::refresh)
3709 (tui_refresh_all): Update.
3710 * tui/tui-windata.c (tui_first_data_item_displayed)
3711 (tui_delete_data_content_windows, tui_erase_data_content)
3712 (tui_display_all_data, tui_data_window::refresh_all)
3713 (tui_check_data_values): Update.
3714 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3715 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3716 (tui_win_info::backward_scroll, tui_refresh_all_win)
3717 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3718 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3719 (tui_source_window_base::set_new_height)
3720 (tui_data_window::set_new_height)
3721 (make_invisible_and_set_new_height)
3722 (make_visible_with_new_height, new_height_ok)
3723 (parse_scrolling_args): Update.
3724 * tui/tui-stack.c (tui_show_frame_info): Update.
3725 * tui/tui-source.c (tui_set_source_content)
3726 (tui_set_source_content_nil, tui_source_is_displayed)
3727 (tui_source_window::do_scroll_vertical): Update.
3728 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3729 (tui_display_registers_from, tui_display_reg_element_at_line)
3730 (tui_check_register_values, tui_reg_command): Update.
3731 * tui/tui-layout.c (tui_default_win_height)
3732 (show_source_disasm_command, show_data, init_and_make_win)
3733 (show_source_or_disasm_and_command): Update.
3734 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3735 (tui_redisplay_readline, tui_mld_flush)
3736 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3737 (tui_getc): Update.
3738 * tui/tui-disasm.c (tui_set_disassem_content)
3739 (tui_disasm_window::do_scroll_vertical): Update.
3740 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3741 Now virtual.
3742 (struct tui_win_info): Derive from tui_gen_win_info.
3743 <~tui_win_info>: Mark as override.
3744 <generic>: Remove member.
3745 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3746 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3747 (~tui_data_window, ~tui_win_info)
3748 (tui_free_all_source_wins_content): Update.
3749 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3750
37512019-06-25 Tom Tromey <tom@tromey.com>
3752
3753 * tui/tui-layout.c (init_and_make_win): Use new.
3754 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3755 destructor, initializers.
3756 (tui_alloc_generic_win_info): Don't declare.
3757 * tui/tui-data.c (_locator): Add argument to constructor.
3758 (source_win, disasm_win): New globals.
3759 (exec_info): Remove.
3760 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3761 Update.
3762 (tui_alloc_generic_win_info): Remove.
3763 (init_content_element): Use new.
3764 (tui_win_info::tui_win_info): Update.
3765 (free_content_elements) <case DATA_WIN>: Use delete.
3766
37672019-06-25 Tom Tromey <tom@tromey.com>
3768
3769 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3770 * tui/tui-windata.c (tui_first_data_item_displayed)
3771 (tui_delete_data_content_windows): Update.
3772 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3773 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3774 (tui_display_registers_from, tui_check_register_values): Update.
3775 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3776 pointer.
3777 * tui/tui-data.c (init_content_element): Update. Allocate the new
3778 window.
3779 (tui_free_data_content): Update.
3780 (free_content_elements) <case DATA_WIN>: Free the window.
3781
37822019-06-25 Tom Tromey <tom@tromey.com>
3783
3784 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3785 Update.
3786 * tui/tui-layout.c (make_command_window)
3787 (show_source_disasm_command, show_data, init_and_make_win)
3788 (show_source_or_disasm_and_command): Update.
3789 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3790 method.
3791 <can_highight, is_highlighted>: Now bool.
3792 (tui_set_win_highlight): Don't declare.
3793 * tui/tui-data.c (tui_set_win_highlight): Remove.
3794
37952019-06-25 Tom Tromey <tom@tromey.com>
3796
3797 * tui/tui-wingeneral.c (make_visible): Remove check of window
3798 type.
3799
38002019-06-25 Tom Tromey <tom@tromey.com>
3801
3802 * tui/tui-win.c (tui_win_info::max_height)
3803 (tui_cmd_window::max_height): New methods.
3804 (new_height_ok): Call max_height.
3805 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3806 <max_height>: New method.
3807
38082019-06-25 Tom Tromey <tom@tromey.com>
3809
3810 * tui/tui-win.c (tui_source_window_base::set_new_height)
3811 (tui_data_window::set_new_height): New methods.
3812 (make_invisible_and_set_new_height): Call set_new_height method.
3813 * tui/tui-data.h (struct tui_win_info)
3814 (struct tui_source_window_base, struct tui_data_window)
3815 <set_new_height>: New method.
3816
38172019-06-25 Tom Tromey <tom@tromey.com>
3818
3819 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3820 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3821 tui_refresh_data_win.
3822 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3823 method.
3824 (tui_refresh_all_win): Call the refresh_all method.
3825 (tui_set_focus): Likewise.
3826 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3827 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3828 Likewise.
3829
38302019-06-25 Tom Tromey <tom@tromey.com>
3831
3832 * tui/tui-winsource.h (tui_refill_source_window)
3833 (tui_set_is_exec_point_at): Don't declare.
3834 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3835 (tui_source_window_base::refill): Rename from
3836 tui_refill_source_window.
3837 (tui_source_window_base::do_scroll_horizontal): Update.
3838 (tui_source_window_base::set_is_exec_point_at): Rename from
3839 tui_set_is_exec_point_at.
3840 (tui_update_all_breakpoint_info): Update.
3841 * tui/tui-stack.c (tui_show_frame_info): Update.
3842 * tui/tui-layout.c (show_data): Add cast.
3843 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3844 * tui/tui-data.h (struct tui_source_window_base) <refill,
3845 set_is_exec_point_at>: New methods.
3846 (tui_source_windows, tui_add_to_source_windows): Update types.
3847 (tui_add_to_source_windows): Remove redundant declaration.
3848 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3849 (tui_source_windows): Change return type.
3850 (tui_clear_source_windows_detail): Update.
3851 (tui_add_to_source_windows): Change type of parameter.
3852 (tui_free_all_source_wins_content): Update.
3853
38542019-06-25 Tom Tromey <tom@tromey.com>
3855
3856 * tui/tui-wingeneral.c (tui_win_info::refresh)
3857 (tui_source_window_base::refresh): New methods.
3858 (tui_refresh_all): Call the refresh method.
3859 * tui/tui-data.h (struct tui_win_info)
3860 (struct tui_source_window_base) <refresh>: New method.
3861
38622019-06-25 Tom Tromey <tom@tromey.com>
3863
3864 * tui/tui.h (tui_is_window_visible): Return bool.
3865 * tui/tui.c (tui_is_window_visible): Return bool.
3866 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3867 (tui_make_visible, tui_make_invisible)
3868 (tui_win_info::make_visible)
3869 (tui_source_window_base::make_visible, make_all_visible)
3870 (tui_make_all_visible, tui_make_all_invisible): Update.
3871 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3872 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3873 bool.
3874 (struct tui_win_info, struct tui_source_window_base)
3875 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3876 * tui/tui-data.c (tui_init_generic_part): Update.
3877
38782019-06-25 Tom Tromey <tom@tromey.com>
3879
3880 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3881 (tui_source_window_base::make_visible): New methods.
3882 (make_all_visible): Make method call.
3883 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3884 (struct tui_source_window_base, struct tui_cmd_window): Override
3885 make_visible.
3886 (tui_win_is_source_type): Don't declare.
3887 * tui/tui-data.c (tui_win_is_source_type): Remove.
3888
38892019-06-25 Tom Tromey <tom@tromey.com>
3890
3891 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3892 NULL check.
3893
38942019-06-25 Tom Tromey <tom@tromey.com>
3895
3896 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3897 Inline constructor. Add initializers for members.
3898 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3899 constructors; now inline in class.
3900
39012019-06-25 Tom Tromey <tom@tromey.com>
3902
3903 * tui/tui-regs.c (tui_show_registers): Update.
3904 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3905 bool.
3906 * tui/tui-data.c (tui_data_window::clear_detail)
3907 (tui_data_window): Update.
3908
39092019-06-25 Tom Tromey <tom@tromey.com>
3910
3911 * tui/tui-windata.c (tui_display_all_data)
3912 (tui_display_data_from_line, tui_display_data_from)
3913 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3914 Update.
3915 * tui/tui-regs.c (tui_last_regs_line_no)
3916 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3917 (tui_show_registers, tui_show_register_group)
3918 (tui_display_registers_from, tui_display_reg_element_at_line)
3919 (tui_display_registers_from_line, tui_check_register_values)
3920 (tui_reg_next, tui_reg_prev): Update.
3921 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3922 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3923 tui_data_window.
3924 (struct tui_win_info) <detail>: Remove. Add new fields from
3925 tui_data_info.
3926 (TUI_DATA_WIN): Add cast.
3927 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3928 (~tui_data_window): Simplify.
3929
39302019-06-25 Tom Tromey <tom@tromey.com>
3931
3932 * tui/tui-layout.c (show_source_disasm_command)
3933 (show_source_or_disasm_and_command): Update.
3934 * tui/tui-io.c (update_cmdwin_start_line)
3935 (tui_redisplay_readline): Update.
3936 * tui/tui-data.h (struct tui_command_info): Remove.
3937 (struct tui_win_info) <detail>: Remove command_info member.
3938 (struct tui_data_window) <start_line>: New member, from
3939 tui_command_info.
3940 (TUI_CMD_WIN): Add casts.
3941
39422019-06-25 Tom Tromey <tom@tromey.com>
3943
3944 * tui/tui-winsource.c (tui_update_source_window)
3945 (tui_refill_source_window)
3946 (tui_source_window_base::do_scroll_horizontal)
3947 (tui_update_breakpoint_info, tui_set_exec_info_content)
3948 (tui_show_exec_info_content, tui_erase_exec_info_content)
3949 (tui_clear_exec_info_content): Update.
3950 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3951 Update.
3952 * tui/tui-win.c (make_invisible_and_set_new_height)
3953 (make_visible_with_new_height): Update.
3954 * tui/tui-source.c (tui_set_source_content)
3955 (tui_show_symtab_source): Update.
3956 * tui/tui-layout.c (extract_display_start_addr)
3957 (show_source_disasm_command, show_data)
3958 (make_source_or_disasm_window)
3959 (show_source_or_disasm_and_command): Update.
3960 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3961 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3962 "gdbarch".
3963 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3964 to tui_source_window_base.
3965 (struct tui_win_info) <detail>: Remove source_info member.
3966 (struct tui_source_window_base) <has_locator>: Inline.
3967 Move contents from tui_source_info; rename has_locator member to
3968 m_has_locator.
3969 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3970 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3971 header file.
3972 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3973 Simplify.
3974 (tui_free_all_source_wins_content): Cast to
3975 tui_source_window_base.
3976
39772019-06-25 Tom Tromey <tom@tromey.com>
3978
3979 * tui/tui-win.c (make_invisible_and_set_new_height)
3980 (make_visible_with_new_height): Call has_locator method.
3981 * tui/tui-layout.c (show_source_disasm_command, show_data)
3982 (show_source_or_disasm_and_command): Update for bool change.
3983 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3984 (tui_win_info) <has_locator>: New method.
3985 (struct tui_source_window_base) <has_locator>: New method.
3986 (tui_win_has_locator): Don't declare.
3987 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3988 from tui_win_has_locator.
3989 (tui_source_window_base): Use false, not FALSE.
3990
39912019-06-25 Tom Tromey <tom@tromey.com>
3992
3993 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3994 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3995 clear_detail method directly.
3996 (tui_clear_win_detail): Remove.
3997
39982019-06-25 Tom Tromey <tom@tromey.com>
3999
4000 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
4001 "this", not TUI_DISASM_WIN.
4002
40032019-06-25 Tom Tromey <tom@tromey.com>
4004
4005 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
4006 declare.
4007 * tui/tui-winsource.c
4008 (tui_source_window_base::do_scroll_horizontal): Rename from
4009 tui_horizontal_source_scroll.
4010 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
4011 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
4012 from tui_vertical_data_scroll.
4013 * tui/tui-win.h (tui_scroll): Don't declare.
4014 * tui/tui-win.c (tui_win_info::forward_scroll)
4015 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
4016 (tui_win_info::right_scroll): Rename and update.
4017 (tui_scroll_forward_command, tui_scroll_backward_command)
4018 (tui_scroll_left_command, tui_scroll_right_command): Update.
4019 (tui_scroll): Remove.
4020 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
4021 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
4022 from tui_vertical_source_scroll.
4023 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
4024 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
4025 from tui_vertical_disassem_scroll.
4026 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
4027 do_scroll_horizontal>: New methods.
4028 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
4029 Likewise.
4030 (struct tui_source_window_base): Add do_scroll_horizontal.
4031 (struct tui_source_window, struct tui_disasm_window): Add
4032 do_scroll_vertical.
4033 (struct tui_data_window, struct tui_cmd_window): Add
4034 do_scroll_horizontal and do_scroll_vertical.
4035 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
4036
40372019-06-25 Tom Tromey <tom@tromey.com>
4038
4039 * tui/tui-data.h (struct tui_source_window_base): New struct.
4040 (struct tui_source_window): Derive from tui_source_window_base.
4041 (struct tui_disasm_window): New struct.
4042 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
4043 from tui_source_window::clear_detail.
4044 (tui_source_window_base): Rename from tui_source_window.
4045 (~tui_source_window_base): Rename from ~tui_source_window.
4046 (tui_alloc_win_info): Create a tui_disasm_window.
4047
40482019-06-25 Tom Tromey <tom@tromey.com>
4049
4050 * tui/tui-data.h (struct tui_source_window)
4051 (struct tui_data_window): Declare destructors.
4052 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
4053 destructors.
4054 (tui_win_info): Simplify.
4055
40562019-06-25 Tom Tromey <tom@tromey.com>
4057
4058 * tui/tui-winsource.c (tui_display_main)
4059 (tui_update_source_windows_with_addr)
4060 (tui_update_all_breakpoint_info): Update.
4061 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4062 (new_height_ok, parse_scrolling_args): Update.
4063 * tui/tui-stack.c (tui_show_frame_info): Update.
4064 * tui/tui-data.h (struct tui_list): Remove.
4065 (tui_source_windows): Return a reference to a std::vector.
4066 * tui/tui-data.c (source_windows): Now a std::vector.
4067 (tui_source_windows): Change return type.
4068 (tui_clear_source_windows): Rewrite.
4069 (tui_clear_source_windows_detail, tui_add_to_source_windows)
4070 (tui_free_all_source_wins_content): Rewrite.
4071
40722019-06-25 Tom Tromey <tom@tromey.com>
4073
4074 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
4075 (struct tui_data_window, struct tui_cmd_window): Declare
4076 clear_detail method.
4077 * tui/tui-data.c (tui_source_window::clear_detail)
4078 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
4079 methods.
4080 (tui_clear_win_detail): Simplify.
4081
40822019-06-25 Tom Tromey <tom@tromey.com>
4083
4084 * tui/tui-layout.c (make_source_window, make_disasm_window)
4085 (make_source_or_disasm_window): Remove win_info_ptr parameter.
4086 Return the new window.
4087 (show_source_disasm_command, show_data)
4088 (show_source_or_disasm_and_command): Update.
4089
40902019-06-25 Tom Tromey <tom@tromey.com>
4091
4092 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
4093 parameter. Return the new window.
4094 (show_source_disasm_command): Update and remove NULL check.
4095 (show_source_or_disasm_and_command): Update.
4096
40972019-06-25 Tom Tromey <tom@tromey.com>
4098
4099 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
4100
41012019-06-25 Tom Tromey <tom@tromey.com>
4102
4103 * tui/tui-data.h (struct tui_win_info): Make constructor
4104 protected. Make destructor virtual. Add initializers.
4105 (tui_source_window, tui_data_window, tui_cmd_window): New
4106 classes.
4107 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
4108 constructor. Add "type" parameter.
4109 (tui_source_window, tui_data_window, tui_cmd_window): New
4110 constructors.
4111 (tui_alloc_win_info): Instantiate the appropriate subclass.
4112
41132019-06-25 Tom Tromey <tom@tromey.com>
4114
4115 * tui/tui-win.c (tui_resize_all): Use delete.
4116 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
4117 destructor.
4118 (tui_free_window): Don't declare.
4119 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
4120 Update.
4121
41222019-06-25 Tom Tromey <tom@tromey.com>
4123
4124 * tui/tui-data.h (struct tui_win_info): Add constructor.
4125 * tui/tui-data.c (tui_alloc_win_info): Use new.
4126 (tui_free_window): Use delete.
4127
41282019-06-22 Tom Tromey <tom@tromey.com>
4129
4130 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
4131 declare.
4132 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
4133
41342019-06-22 Tom Tromey <tom@tromey.com>
4135
4136 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
4137 declare.
4138 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
4139
41402019-06-22 Tom de Vries <tdevries@suse.de>
4141
4142 * dwarf2read.c (create_addrmap_from_aranges)
4143 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
4144 instead of '%zu'.
4145
41462019-06-21 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * dwarf2read.h (dwarf2_section_info_def): Remove.
4149 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
4150 * dwarf2read.c (struct dwo_sections) <types>: Change type to
4151 std::vector<dwarf2_section_info>.
4152 (struct dwo_file) <~dwo_file>: Remove.
4153 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
4154 types field.
4155 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
4156 (dwarf2_read_debug_names): Likewise.
4157 (create_debug_types_hash_table): Change parameter type to
4158 array_view, adjust code accordingly.
4159 (dwarf2_locate_dwo_sections): Adjust to std::vector.
4160 (partial_die_info::fixup): Likewise.
4161 (determine_prefix): Likewise.
4162 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
4163
41642019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4165
4166 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
4167 gdb_bfd_ref_ptr.
4168 <~dwo_file>: Remove call to gdb_bfd_unref.
4169 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
4170 gdb_bfd_ref_ptr::get.
4171
41722019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4173
4174 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4175 type to htab_up.
4176 * dwarf2read.c (struct dwo_file): Initialize fields.
4177 <~dwo_file>: New.
4178 (free_dwo_file): Remove, move content to ~dwo_file.
4179 (struct dwo_file_deleter): Remove.
4180 (dwo_file_up>: Remove custom deleter.
4181 (free_dwo_files): Remove.
4182 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4183 dwo_files.
4184 (process_skeletonless_type_units): Call unique_ptr::get.
4185 (allocate_dwo_file_hash_table): Add deleter to created hash
4186 table. Change return type to htab_up.
4187 (lookup_dwo_file_slot): Don't memset dwo_file, call
4188 unique_ptr::get.
4189 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4190 (create_dwo_unit_in_dwp_v2): Likewise.
4191 (open_and_init_dwo_file): Likewise.
4192 (free_dwo_file_from_slot): Remove.
4193
41942019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4195
4196 * dwarf2read.h (struct dwarf2_section_info) <readin,
4197 is_virtual>: Change type to bool.
4198 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4199 true instead of 1.
4200
42012019-06-19 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui-data.h (tui_init_content_element): Don't declare.
4204
42052019-06-19 Tom Tromey <tom@tromey.com>
4206
4207 * tui/tui-data.h (tui_init_win_info): Don't declare.
4208
42092019-06-19 Tom de Vries <tdevries@suse.de>
4210
4211 * dwarf2read.h (abstract_to_concrete): Change type to
4212 std::unordered_map<sect_offset, std::vector<sect_offset>,
4213 gdb::hash_enum<sect_offset>>.
4214
42152019-06-19 Tom Tromey <tromey@adacore.com>
4216
4217 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4218 EVAL_AVOID_SIDE_EFFECTS specially.
4219
42202019-06-19 Tom Tromey <tromey@adacore.com>
4221
4222 * source-cache.c (highlighter): New global.
4223 (source_cache::get_source_lines): Create a highlighter on demand.
4224
42252019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4226
4227 * defs.h (deprecated_interactive_hook): Delete declaration.
4228 * interps.c (clear_interpreter_hooks): Remove use of
4229 deprecated_interactive_hook.
4230 * top.c (deprecated_interactive_hook): Delete definition.
4231 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4232
42332019-06-18 Tom de Vries <tdevries@suse.de>
4234
4235 PR gdb/24515
4236 * dwarf2read.h (abstract_to_concrete): Change type from
4237 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4238 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4239 * dwarf2read.c (read_variable): Update.
4240 (dwarf2_fetch_die_loc_sect_off): Update.
4241
42422019-06-17 Tom de Vries <tdevries@suse.de>
4243
4244 PR gdb/24617
4245 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4246 accessing parent[parent_len - 1].
4247
42482019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4249
4250 PR gdb/24364
4251 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4252 call dtrace_process_dof with NULL dof.
4253
42542019-06-16 Tom de Vries <tdevries@suse.de>
4255
4256 PR gdb/24445
4257 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4258
42592019-06-16 Tom Tromey <tom@tromey.com>
4260
4261 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4262 (make_all_visible): Use address of member.
4263
42642019-06-16 Tom Tromey <tom@tromey.com>
4265
4266 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4267 (tui_free_window, free_content, free_content_elements): Remove
4268 unnecessary cast.
4269 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4270 cast.
4271 * tui/tui-regs.c (tui_show_register_group)
4272 (tui_display_registers_from, tui_display_reg_element_at_line):
4273 Remove unnecessary cast.
4274
42752019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4276
4277 * linux-nat.c (normal_mask): Delete.
4278 (_initialize_linux_nat): Don't initialise normal_mask.
4279
42802019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4281
4282 PR gdb/24445
4283 * dwarf-index-write.h (write_psymtabs_to_index): Add
4284 dwz_basename parameter.
4285 * dwarf-index-write.c (write_gdbindex): Move file writing to
4286 write_gdbindex_1. Change return type void.
4287 (assert_file_size): Move up, remove filename parameter.
4288 (write_gdbindex_1): New function.
4289 (write_debug_names): Change return type to void, call
4290 assert_file_size.
4291 (struct index_wip_file): New struct.
4292 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4293 file logic to index_wip_file. Write index for dwz file if
4294 needed.
4295 (save_gdb_index_command): Pass basename of dwz file, if present.
4296 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4297 build-id of dwz file, if present.
4298 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4299 (dwarf2_get_dwz_file): Likewise.
4300 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4301 (dwarf2_get_dwz_file): Likewise.
4302
43032019-06-16 Tom Tromey <tom@tromey.com>
4304
4305 * coffread.c (process_coff_symbol): Use xstrdup.
4306 * value.c (create_internalvar): Use xstrdup.
4307
43082019-06-16 Tom Tromey <tom@tromey.com>
4309
4310 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4311 * breakpoint.c (stopin_command, stopat_command)
4312 (until_break_command, decode_location_default): Remove unnecessary
4313 cast.
4314 * utils.c (subset_compare): Remove unnecessary cast.
4315 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4316 cast.
4317 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4318 cast.
4319 * infcmd.c (path_command): Remove unnecessary cast.
4320 * coffread.c (decode_type): Remove unnecessary cast.
4321 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4322 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4323 * tui/tui-stack.c (tui_show_locator_content)
4324 (tui_show_frame_info): Remove unnecessary cast.
4325 * tui/tui-win.c (tui_scroll_forward_command)
4326 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4327 (parse_scrolling_args): Remove unnecessary cast.
4328 * tui/tui-data.c (init_win_info, tui_del_window)
4329 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4330 (free_content_elements): Remove unnecessary cast.
4331 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4332 unnecessary cast.
4333 * tui/tui-source.c (tui_set_source_content)
4334 (tui_vertical_source_scroll): Remove unnecessary cast.
4335 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4336 cast.
4337 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4338 * tui/tui-regs.c (tui_display_registers_from)
4339 (tui_display_register): Remove unnecessary cast.
4340 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4341 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4342 (make_visible): Remove unnecessary cast.
4343 * tui/tui-winsource.c (tui_erase_source_content)
4344 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4345 unnecessary cast.
4346 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4347 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4348 * stabsread.c (read_type, read_array_type, read_range_type):
4349 Remove unnecessary cast.
4350 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4351 (parse_symbol, parse_type, upgrade_type, parse_external)
4352 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4353 unnecessary cast.
4354 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4355
43562019-06-16 Tom Tromey <tom@tromey.com>
4357
4358 * tui/tui-data.c (tui_alloc_generic_win_info)
4359 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4360 checks.
4361
43622019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4363 Andrew Burgess <andrew.burgess@embecosm.com>
4364
4365 * f-typeprint.c (f_print_type): Don't return early for not
4366 associated or not allocated types.
4367 (f_type_print_varspec_suffix): Add print_rank parameter and print
4368 ranks of array types in case they dangling.
4369 (f_type_print_base): Add print_rank parameter.
4370
43712019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4372
4373 * NEWS: Mention new MI commands.
4374 * break-catch-throw.c (enum exception_event_kind): Move to
4375 breakpoint.h.
4376 (print_mention_exception_catchpoint): Output text as a single
4377 message.
4378 (catch_exception_command_1): Rename to...
4379 (catch_exception_event): ...this, make non-static, update header
4380 command, and change some parameter types.
4381 (catch_catch_command): Update for changes to
4382 catch_exception_command_1.
4383 (catch_throw_command): Likewise.
4384 (catch_rethrow_command): Likewise.
4385 * breakpoint.c (enum exception_event_kind): Delete.
4386 * breakpoint.h (enum exception_event_kind): Moved here from
4387 break-catch-throw.c.
4388 (catch_exception_event): Declare.
4389 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4390 (mi_cmd_catch_throw): New function.
4391 (mi_cmd_catch_rethrow): New function.
4392 (mi_cmd_catch_catch): New function.
4393 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4394 'catch-catch' entries.
4395 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4396 (mi_cmd_catch_rethrow): Declare.
4397 (mi_cmd_catch_catch): Declare.
4398
43992019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4400
4401 * annotate.c (annotate_source_line): Change return type to void,
4402 update implementation to match.
4403 * annotate.h (annotate_source_line): Change return type to void,
4404 update header comment.
4405 * stack.c (print_frame_info): Don't change what frame information
4406 is printed based on whether annotations are on or not.
4407
44082019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4409
4410 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4411 (annotate_source): Make static.
4412 (annotate_source_line): Moved from source.c and renamed from
4413 identify_source_line. Update the return type.
4414 * annotate.h (annotate_source): Delete declaration.
4415 (annotate_source_line): Declaration moved from source.h, and
4416 renamed from identify_source_line. Return type updated.
4417 * source.c (identify_source_line): Moved to annotate.c and renamed
4418 to annotate_source_line.
4419 (info_line_command): Remove check of annotation_level.
4420 * source.h (identify_source_line): Move declaration to annotate.h
4421 and rename to annotate_source_line.
4422 * stack.c: Add 'annotate.h' include.
4423 (print_frame_info): Remove check of annotation_level before
4424 calling annotate_source_line.
4425
44262019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4427
4428 * source-cache.c (source_cache::get_plain_source_lines): Use
4429 open_source_file_with_line_charpos instead of just
4430 open_source_file, remove call to find_source_lines.
4431 (source_cache::get_source_lines): Likewise.
4432 * source.c (find_source_lines): Make static.
4433 (get_filename_and_charpos): Renamed into...
4434 (open_source_file_with_line_charpos): ..this along with changes to
4435 return a scoped_fd, and some other minor clean ups.
4436 (identify_source_line): Use open_source_file_with_line_charpos.
4437 (search_command_helper): Use open_source_file_with_line_charpos
4438 instead of just open_source_file, remove call to
4439 find_source_lines.
4440 * source.h (open_source_file_with_line_charpos): Declare new
4441 function.
4442 (find_source_lines): Delete declaration.
4443
44442019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4445
4446 * source.c (get_filename_and_charpos): Remove fullname
4447 parameter.
4448 (identify_source_line): Update call to get_filename_and_charpos.
4449
44502019-06-14 Tom Tromey <tromey@adacore.com>
4451
4452 PR gdb/24502:
4453 * ui-style.h (skip_ansi_escape): Update comment.
4454 * ui-file.h (class no_terminal_escape_file): New class.
4455 * ui-file.c (no_terminal_escape_file::write)
4456 (no_terminal_escape_file::puts): New methods.
4457 * cli/cli-logging.c (handle_redirections): Use
4458 no_terminal_escape_file.
4459
44602019-06-14 Tom Tromey <tromey@adacore.com>
4461
4462 * NEWS: Move convenience variable news above Python news.
4463
44642019-06-14 Tom Tromey <tom@tromey.com>
4465
4466 * gnulib: Move directory to top-level.
4467 * configure.ac: Don't configure gnulib.
4468 * configure: Rebuild.
4469 * common/common-defs.h: Use new path to gnulib.
4470 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4471 (GNULIB_H): Remove.
4472 (INCGNU): Look in new gnulib location.
4473 (HFILES_NO_SRCDIR): Remove gnulib files.
4474 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4475 (generated_files): Remove GNULIB_H.
4476 ($(LIBGNU), all-lib): Remove targets.
4477 (distclean): Don't mention GNULIB_BUILDDIR.
4478 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4479
44802019-06-14 Tom Tromey <tromey@adacore.com>
4481
4482 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4483 Warn if symbol file does not provide any symbols.
4484
44852019-06-14 Tom Tromey <tromey@adacore.com>
4486
4487 * source.c (find_and_open_source): Respect basenames_may_differ.
4488
44892019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4490
4491 * annotate.c (annotate_breakpoints_invalid): Make use of
4492 scoped_restore_terminal_state.
4493 (annotate_frames_invalid): Likewise.
4494
44952019-06-14 Tom Tromey <tromey@adacore.com>
4496
4497 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4498 allow assignment to an internalvar.
4499
45002019-06-14 Tom Tromey <tromey@adacore.com>
4501
4502 * ada-lex.l: Allow "_" in attribute names.
4503
45042019-06-14 Tom Tromey <tromey@adacore.com>
4505
4506 PR gdb/24653:
4507 * regcache.c (registers_changed): Don't call alloca.
4508 * top.c (execute_command): Don't call alloca.
4509
45102019-06-13 Pedro Alves <palves@redhat.com>
4511
4512 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4513 'expression'. When parsing an expression, error out if there's
4514 junk after "unlimited".
4515 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4516 (do_set_command): Adjust calls to is_unlimited_literal.
4517
45182019-06-13 Pedro Alves <palves@redhat.com>
4519
4520 * compile/compile.c (make_compile_options_def_group): Add braces
4521 around array_view initializer.
4522 * thread.c (make_thread_apply_all_options_def_group)
4523 (make_thread_apply_all_options_def_group): Likewise.
4524
45252019-06-13 Pedro Alves <palves@redhat.com>
4526
4527 * NEWS (New commands): Mention "maint test-options
4528 require-delimiter", "maint test-options unknown-is-error", "maint
4529 test-options unknown-is-operand" and "maint show
4530 test-options-completion-result".
4531 (New command options, command completion): New section.
4532 (Completion improvements): New section.
4533 Mention that you can abbreviate "unlimited".
4534
45352019-06-13 Pedro Alves <palves@redhat.com>
4536
4537 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4538 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4539 * unittests/cli-utils-selftests.c (test_parse_flags)
4540 (test_parse_flags_qcs): Delete.
4541 (test_cli_utils): Don't call deleted functions.
4542
45432019-06-13 Pedro Alves <palves@redhat.com>
4544
4545 * thread.c: Include "cli/cli-option.h".
4546 (tp_array_compar_ascending): Global.
4547 (tp_array_compar): Delete function.
4548 (tp_array_compar_ascending, tp_array_compar_descending): New
4549 functions.
4550 (ascending_option_def, qcs_flag_option_def)
4551 (thr_qcs_flags_option_defs)
4552 (make_thread_apply_all_options_def_group)
4553 (make_thread_apply_options_def_group): New.
4554 (thread_apply_all_command): Use gdb::option::process_options.
4555 (thread_apply_command_completer)
4556 (thread_apply_all_command_completer): New.
4557 (thread_apply_command): Use gdb::option::process_options.
4558 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4559 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4560 to generate help text of "thread apply". Adjust "taas"'s help.
4561 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4562 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4563
45642019-06-13 Pedro Alves <palves@redhat.com>
4565
4566 * thread.c (thread_apply_command): Check for invalid TID with
4567 isdigit instead of !isalpha.
4568
45692019-06-13 Pedro Alves <palves@redhat.com>
4570
4571 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4572 (validate_flags_qcs): New.
4573 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4574 (validate_flags_qcs): Declare.
4575 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4576 (make_frame_apply_options_def_group): New.
4577 (frame_apply_command_count): Process options with
4578 gdb::option::process_options.
4579 (frame_apply_completer): New.
4580 (frame_apply_level_completer, frame_apply_all_completer)
4581 (frame_apply_completer): New.
4582 (_initialize_stack): Update help of "frame apply", "frame apply
4583 level", "frame apply all" and "faas" to mention supported options
4584 and install command completers.
4585 * stack.h (frame_apply_all_completer): Declare.
4586 * thread.c: Include "stack.h".
4587 (tfaas_command): Add "--".
4588 (_initialize_thread): Update help "tfaas" to mention supported
4589 options and install command completer.
4590
45912019-06-13 Pedro Alves <palves@redhat.com>
4592
4593 * completer.c (complete_nested_command_line): New.
4594 (gdb_completion_word_break_characters_throw): Add assertion.
4595 * completer.h (complete_nested_command_line): Declare.
4596
45972019-06-13 Pedro Alves <palves@redhat.com>
4598
4599 * stack.c (parse_backtrace_qualifiers): New.
4600 (backtrace_command): Use it.
4601 (backtrace_command_completer): Complete on qualifiers.
4602
46032019-06-13 Pedro Alves <palves@redhat.com>
4604
4605 * frame.c: Include "cli/cli-option.h.
4606 (user_set_backtrace_options): New.
4607 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4608 Delete.
4609 (get_prev_frame): Adjust.
4610 (boolean_option_def, uinteger_option_def)
4611 (set_backtrace_option_defs): New.
4612 (_initialize_frame): Adjust and use
4613 gdb::option::add_setshow_cmds_for_options to install "set
4614 backtrace past-main" and "set backtrace past-entry".
4615 * frame.h: Include "cli/cli-option.h".
4616 (struct frame_print_options): Forward declare.
4617 (print_frame_arguments_all, print_frame_arguments_scalars)
4618 (print_frame_arguments_none): Declare.
4619 (print_entry_values): Delete declaration.
4620 (struct frame_print_options, user_frame_print_options): New.
4621 (struct set_backtrace_options): New.
4622 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4623 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4624 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4625 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4626 (list_args_or_locals): Add frame_print_options parameter.
4627 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4628 * python/py-framefilter.c (enumerate_args): Pass down
4629 USER_FRAME_PRINT_OPTIONS.
4630 * stack.c: Include "cli/cli-option.h".
4631 (print_frame_arguments_all, print_frame_arguments_scalars)
4632 (print_frame_arguments_none): Declare.
4633 (print_raw_frame_arguments, print_entry_values): Delete.
4634 (user_frame_print_options): New.
4635 (boolean_option_def, enum_option_def, frame_print_option_defs):
4636 New.
4637 (struct backtrace_cmd_options): New.
4638 (bt_flag_option_def): New.
4639 (backtrace_command_option_defs): New.
4640 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4641 (print_frame_arg, read_frame_arg, print_frame_args)
4642 (print_frame_info, print_frame): Add frame_print_options parameter
4643 and use it.
4644 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4645 (backtrace_command_1): Add frame_print_options and
4646 backtrace_cmd_options parameters and use them.
4647 (make_backtrace_options_def_group): New.
4648 (backtrace_command): Process command options with
4649 gdb::option::process_options.
4650 (backtrace_command_completer): New.
4651 (_initialize_stack): Extend "backtrace"'s help to mention
4652 supported options. Install completer for "backtrace".
4653 Install some settings commands with add_setshow_cmds_for_options.
4654
46552019-06-13 Pedro Alves <palves@redhat.com>
4656
4657 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4658 and that "set/show print raw frame-arguments" are now deprecated.
4659
4660 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4661 command.
4662 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4663 * stack.c (_initialize_stack): Install "set/show print
4664 raw-frame-arguments", and deprecate "set/show print raw
4665 frame-arguments".
4666 * valprint.c (_initialize_valprint): Deprecate "set/show print
4667 raw".
4668
46692019-06-13 Pedro Alves <palves@redhat.com>
4670
4671 * compile/compile.c (struct compile_options): New.
4672 (compile_flag_option_def, compile_command_option_defs)
4673 (make_compile_options_def_group): New.
4674 (compile_file_command): Handle options with
4675 gdb::option::process_options.
4676 (compile_file_command_completer): New function.
4677 (compile_code_command): Handle options with
4678 gdb::option::process_options.
4679 (compile_code_command_completer): New function.
4680 (_initialize_compiler): Install completers for "compile code" and
4681 "compile file". Mention available options in "compile code" and
4682 "compile code"'s help.
4683 * completer.c (advance_to_completion_word): New, factored out from
4684 ...
4685 (advance_to_expression_complete_word_point): ... this.
4686 (advance_to_filename_complete_word_point): New.
4687 * completer.h (advance_to_filename_complete_word_point): New
4688 declaration.
4689
46902019-06-13 Pedro Alves <palves@redhat.com>
4691
4692 * compile/compile.c: Include "cli/cli-option.h".
4693 (compile_print_value): Scope data pointer is now a
4694 value_print_options pointer; adjust.
4695 (compile_print_command): Process options. Scope data pointer is
4696 now a value_print_options pointer; adjust.
4697 (_initialize_compile): Update "compile print"'s help to include
4698 supported options. Install a completer for "compile print".
4699 * cp-valprint.c (show_vtblprint, show_objectprint)
4700 (show_static_field_print): Delete.
4701 (_initialize_cp_valprint): Don't install "set print
4702 static-members", "set print vtbl", "set print object" here.
4703 * printcmd.c: Include "cli/cli-option.h" and
4704 "common/gdb_optional.h".
4705 (print_command_parse_format): Rework to fill in a
4706 value_print_options instead of a format_data.
4707 (print_value): Change parameter type from format_data pointer to
4708 value_print_options reference. Adjust.
4709 (print_command_1): Process options. Adjust to pass down a
4710 value_print_options.
4711 (print_command_completer): New.
4712 (_initialize_printcmd): Install print_command_completer as
4713 handle_brkchars completer for the "print" command. Update
4714 "print"'s help to include supported options.
4715 * valprint.c: Include "cli/cli-option.h".
4716 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4717 here from cp-valprint.c.
4718 (boolean_option_def, uinteger_option_def)
4719 (value_print_option_defs, make_value_print_options_def_group):
4720 New. Use gdb::option::add_setshow_cmds_for_options to install
4721 "set print elements", "set print null-stop", "set print repeats",
4722 "set print pretty", "set print union", "set print array", "set
4723 print address", "set print symbol", "set print array-indexes".
4724 * valprint.h: Include <string> and "cli/cli-option.h".
4725 (make_value_print_options_def_group): Declare.
4726 (print_value): Change parameter type from format_data pointer to
4727 value_print_options reference.
4728 (print_command_completer): Declare.
4729
47302019-06-13 Pedro Alves <palves@redhat.com>
4731
4732 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4733 (COMMON_SFILES): Add maint-test-settings.c.
4734 * cli/cli-decode.c (boolean_enums): New global, factored out from
4735 ...
4736 (add_setshow_boolean_cmd): ... here.
4737 * cli/cli-decode.h (boolean_enums): Declare.
4738 * cli/cli-option.c: New file.
4739 * cli/cli-option.h: New file.
4740 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4741 factored out from ...
4742 (parse_cli_boolean_value(const char *)): ... this.
4743 (is_unlimited_literal): Change parameter type to pointer to
4744 pointer. Adjust and advance ARG pointer.
4745 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4746 (parse_cli_var_enum): New, factored out from ...
4747 (do_set_command): ... this. Adjust.
4748 * cli/cli-setshow.h (parse_cli_boolean_value)
4749 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4750 (parse_cli_var_enum): Declare.
4751 * cli/cli-utils.c: Include "cli/cli-option.h".
4752 (get_ulongest): New.
4753 * cli/cli-utils.h (get_ulongest): Declare.
4754 (check_for_argument): New overloads.
4755 * maint-test-options.c: New file.
4756
47572019-06-13 Pedro Alves <palves@redhat.com>
4758
4759 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4760 parse a range if "-" is at the end of the string.
4761
47622019-06-13 Pedro Alves <palves@redhat.com>
4763
4764 * cli/cli-setshow.c (parse_auto_binary_operation)
4765 (parse_cli_boolean_value): Don't allow "o".
4766
47672019-06-13 Pedro Alves <palves@redhat.com>
4768
4769 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4770 * NEWS: Mention maint test-settings KIND.
4771 * maint-test-settings.c: New file.
4772
47732019-06-13 Pedro Alves <palves@redhat.com>
4774
4775 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4776 completer.
4777 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4778 "set" completers.
4779
47802019-06-13 Pedro Alves <palves@redhat.com>
4781
4782 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4783 after item.
4784
47852019-06-13 Pedro Alves <palves@redhat.com>
4786
4787 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4788
47892019-06-13 Pedro Alves <palves@redhat.com>
4790
4791 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4792 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4793 call.
4794 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4795 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4796 calls.
4797 (check_for_argument): Skip spaces after argument.
4798
47992019-06-13 Pedro Alves <palves@redhat.com>
4800
4801 * thread.c (thread_apply_command): Adjust TID parsing.
4802 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4803 detected before end of string.
4804 (tid_is_in_list): Error out if LIST is invalid.
4805
48062019-06-13 Pedro Alves <palves@redhat.com>
4807
4808 * completer.c (complete_line_internal_1): Rewind completion word
4809 point.
4810 (completion_tracker::advance_custom_word_point_by): Change
4811 parameter type to int.
4812 * completer.h (completion_tracker::advance_custom_word_point_by):
4813 Likewise.
4814
48152019-06-13 Pedro Alves <palves@redhat.com>
4816
4817 * completer.c (advance_to_completion_word): Handle delimiters.
4818
48192019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4820
4821 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4822
48232019-06-11 Tom Tromey <tom@tromey.com>
4824
4825 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4826 (xmalloc_failed): Move to alloc.c.
4827 * alloc.c: New file.
4828 * Makefile.in (COMMON_SFILES): Add alloc.c.
4829
48302019-06-11 Tom Tromey <tom@tromey.com>
4831
4832 * nat/linux-waitpid.c: Don't include server.h.
4833 (linux_debug): Remove.
4834 (my_waitpid): Update.
4835
48362019-06-11 Tom Tromey <tromey@adacore.com>
4837
4838 * infcall.c (_initialize_infcall): Remove trailing newline from
4839 help.
4840 * user-regs.c (_initialize_user_regs): Remove trailing newline
4841 from help.
4842 * typeprint.c (_initialize_typeprint): Remove trailing newline
4843 from help.
4844 * reverse.c (_initialize_reverse): Remove trailing newlines from
4845 help.
4846 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4847 from help.
4848 * language.c (add_set_language_command): Remove trailing newline
4849 from help.
4850 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4851 help.
4852 * disasm.c (_initialize_disasm): Remove trailing newline from
4853 help.
4854 * top.c (init_main): Remove trailing newline from help.
4855 * interps.c (_initialize_interpreter): Remove trailing newline
4856 from help.
4857 * btrace.c (_initialize_btrace): Remove trailing newlines from
4858 help.
4859 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4860 from help.
4861 * python/python.c (_initialize_python): Remove trailing newline
4862 from help.
4863 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4864 help.
4865 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4866 from help. Reformat some text.
4867 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4868 from help.
4869 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4870 newline from help.
4871
48722019-06-11 Tom Tromey <tromey@adacore.com>
4873
4874 * darwin-nat.c (darwin_decode_exception_message)
4875 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4876
48772019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4878
4879 * valops.c (value_slice): Check for not allocated or not
4880 associated values.
4881
48822019-06-10 Tom de Vries <tdevries@suse.de>
4883
4884 PR gdb/24618
4885 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4886 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4887 invalid.
4888
48892019-06-10 Tom de Vries <tdevries@suse.de>
4890
4891 PR gdb/24611
4892 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4893 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4894
48952019-06-10 Tom de Vries <tdevries@suse.de>
4896
4897 PR symtab/24545
4898 * symtab.c (struct demangled_name_entry): Add language field.
4899 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4900 static minimal symbol". Set and use language field.
4901
49022019-06-10 Tom Tromey <tromey@adacore.com>
4903
4904 * ada-lang.c (_initialize_ada_language): Update help text.
4905
49062019-06-10 Tom Tromey <tromey@adacore.com>
4907
4908 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4909 with a newline.
4910 * guile/guile.c (handle_boot_error): Don't end warning with a
4911 newline.
4912 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4913 warning with a newline.
4914 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4915 newline.
4916 (s12z_frame_cache): Likewise.
4917 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4918 a newline.
4919 * solib-svr4.c (disable_probes_interface): Don't end warning with
4920 a newline.
4921 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4922 newline.
4923 * python/python.c (do_finish_initialization): Don't end warning
4924 with a newline.
4925
49262019-06-10 Tom Tromey <tom@tromey.com>
4927
4928 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4929 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4930 gdbpy_enter.
4931
49322019-06-10 Tom Tromey <tromey@adacore.com>
4933
4934 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4935 data.
4936 (elf_new_init): Don't call stabsread_new_init.
4937 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4938 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4939 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4940
49412019-06-10 Tom de Vries <tdevries@suse.de>
4942
4943 PR symtab/16264
4944 PR symtab/24517
4945 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4946
49472019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4948
4949 * source.c (find_and_open_source): Also rewrite relative file
4950 names.
4951
49522019-04-26 Amos Bird <amosbird@gmail.com>
4953
4954 * annotate.c (annotate_thread_exited): Add "thread-exited"
4955 annotation.
4956
49572019-06-06 Tom Tromey <tromey@adacore.com>
4958
4959 * maint.h (class scoped_command_stats): Use
4960 DISABLE_COPY_AND_ASSIGN.
4961 <print_time>: New method.
4962 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4963 print_time.
4964 (scoped_command_stats::print_time): New method.
4965
49662019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4967
4968 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4969 instructions of lengths 6 or 8 bytes.
4970
49712019-06-04 Pedro Alves <palves@redhat.com>
4972
4973 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4974
4975 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4976 * breakpoint.c (condition_completer): Likewise.
4977 * cli/cli-dump.c (scan_expression): Likewise.
4978 * common/filestuff.c (mkdir_recursive): Likewise.
4979 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4980 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4981 (gdb_abspath): Likewise.
4982 * compile/compile-cplus-types.c
4983 (compile_cplus_instance::decl_name): Likewise.
4984 * completer.c (complete_explicit_location):
4985 (signal_completer, reg_or_group_completer_1): Likewise.
4986 * cp-support.c (cp_remove_params_if_any): Likewise.
4987 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4988 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4989 * infcmd.c (strip_bg_char): Likewise.
4990 * linespec.c (copy_token_string): Likewise.
4991 * mi/mi-main.c (output_cores): Likewise.
4992 * psymtab.c (psymtab_search_name):
4993 * symfile.c (test_set_ext_lang_command): Likewise.
4994 * target.c (target_fileio_read_stralloc): Likewise.
4995 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4996 * value.c (complete_internalvar): Likewise.
4997
49982019-06-04 Christian Biesinger <cbiesinger@google.com>
4999
5000 Add objfile property to gdb.Type.
5001 * NEWS: Mention Python API addition.
5002 * python/py-type.c (typy_get_objfile): New method.
5003
50042019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5005
5006 * NEWS: Mention the new set|show style [title|highlight].
5007 Mention changes to "show style", "help" and "apropos".
5008
50092019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5010
5011 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
5012 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
5013 instead of print_help_for_command.
5014 (print_doc_of_command): New function.
5015 (help_list): Add 'apropos -v word' suggestion.
5016 (print_help_for_command): Style the command name using title style.
5017 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
5018 (_initialize_cli_cmds): Describe -v in apropos_command help.
5019
50202019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5021
5022 * cli/cli-style.h (cli_style_option): Add name in constructor,
5023 add m_name class member, add constructor with intensity,
5024 add name class function.
5025 (cli_style_option::add_setshow_commands): Remove name argument.
5026 (highlight_style, title_style): New styles.
5027 * cli/cli-style.c (do_show): New function that shows a style
5028 characteristic styling the style name with itself.
5029 (set_style_name): New function.
5030 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
5031 Update all callers according to the changes in cli/cli-style.h.
5032 * utils.h (fputs_highlighted): New function.
5033 * utils.c (fputs_highlighted): Likewise.
5034
50352019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5036
5037 * NEWS: Mention new pipe command and new convenience variables.
5038
50392019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5040
5041 * cli/cli-cmds.c (pipe_command): New function.
5042 (_initialize_cli_cmds): Call add_com for pipe_command.
5043 Define | as an alias for pipe.
5044 (exit_status_set_internal_vars): New function.
5045 (shell_escape): Call exit_status_set_internal_vars.
5046 cli/cli-decode.c (find_command_name_length): Recognize | as
5047 a single character command.
5048
50492019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5050
5051 * gdbcmd.h (execute_command_to_ui_file): New declaration.
5052 top.c (execute_command_to_ui_file): New function, mostly a copy
5053 of execute_command_to_string.
5054 (execute_command_to_string): Implement by calling
5055 execute_command_to_ui_file.
5056
50572019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5058
5059 * top.h (saved_command_line): Remove declaration.
5060 * top.c (previous_saved_command_line, previous_repeat_arguments):
5061 New variables.
5062 (saved_command_line): Make static, define together with other
5063 'repeat variables'.
5064 (dont_repeat): Clear repeat_arguments.
5065 (repeat_previous, get_saved_command_line, save_command_line):
5066 New functions.
5067 (gdb_init): Initialize saved_command_line
5068 and previous_saved_command_line.
5069 * main.c (captured_main_1): Remove saved_command_line initialization.
5070 * event-top.c (handle_line_of_input): Update to use
5071 the new 'repeat' related functions instead of direct access to
5072 saved_command_line.
5073 * command.h (repeat_previous, get_saved_command_line,
5074 save_command_line): New declarations.
5075 (dont_repeat): Add comment.
5076
50772019-05-30 Tom Tromey <tromey@adacore.com>
5078
5079 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
5080 Fix comment.
5081 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
5082
50832019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
5084
5085 PR cli/24587
5086 * completer.c (complete): Initialize variable word.
5087
50882019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
5089
5090 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5091 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
5092 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
5093 'body' is NULL to the outter 'if', protecting the '!is_define'
5094 situation as well.
5095
50962019-05-29 Tom Tromey <tromey@adacore.com>
5097
5098 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
5099 (dwarf_unknown): New function.
5100 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
5101 (dwarf_type_encoding_name): Use dwarf_unknown.
5102
51032019-05-29 Tom Tromey <tromey@adacore.com>
5104
5105 PR c++/20020:
5106 * cp-valprint.c (cp_print_value_fields): Call
5107 cp_print_static_field inside "try".
5108
51092019-05-29 Tom Tromey <tromey@adacore.com>
5110
5111 * inflow.c (struct terminal_info): Add default operator=.
5112 * configure: Rebuild.
5113 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
5114 -Wdeprecated-copy-dtor, -Wredundant-move.
5115
51162019-05-29 Tom Tromey <tromey@adacore.com>
5117
5118 * NEWS: Add entry.
5119 * infcmd.c (print_return_value_1): Handle finish_print
5120 option.
5121 (show_print_finish): New function.
5122 (_initialize_infcmd): Add "set/show print finish" commands.
5123 * valprint.c (user_print_options): Initialize new member.
5124 * valprint.h (struct value_print_options) <finish_print>: New
5125 member.
5126
51272019-05-28 Tom Tromey <tromey@adacore.com>
5128
5129 * ada-lang.c (ada_remove_Xbn_suffix)
5130 (find_old_style_renaming_symbol)
5131 (parse_old_style_renaming): Remove.
5132 (ada_find_renaming_symbol): Don't call
5133 find_old_style_renaming_symbol.
5134 (ada_is_renaming_symbol): Rename from
5135 ada_find_renaming_symbol. Remove "block" parameter. Return
5136 bool. Now static.
5137 (ada_read_var_value): Update and simplify.
5138 * ada-exp.y (write_var_or_type): Remove old code.
5139
51402019-05-28 Alan Hayward <alan.hayward@arm.com>
5141
5142 * event-top.c: Remove include comment.
5143 * inflow.c (class scoped_ignore_sigttou): Move from here...
5144 * inflow.h (class scoped_ignore_sigttou): ...to here.
5145 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
5146 * top.c: Remove include comment.
5147
51482019-05-27 Tom Tromey <tom@tromey.com>
5149
5150 * NEWS: Fix typo.
5151
51522019-05-22 Tom Tromey <tromey@adacore.com>
5153
5154 * target.c (target_follow_exec): Constify parameter.
5155 * target-delegates.c: Rebuild.
5156 * remote.c (remote_target::follow_exec): Constify parameter.
5157 * infrun.c (follow_exec): Constify parameter.
5158 * target.h (struct target_ops) <follow_exec>: Constify parameter.
5159 (target_follow_exec): Likewise.
5160
51612019-05-22 Alan Hayward <alan.hayward@arm.com>
5162
5163 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
5164 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
5165
51662019-05-22 Alan Hayward <alan.hayward@arm.com>
5167
5168 * NEWS: Add debugredirect and testsuite sections.
5169
51702019-05-22 Simon Cook <simon.cook@embecosm.com>
5171
5172 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
5173 target descriptions using exclusively floating point register name
5174 aliases.
5175
51762019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5177
5178 PR gdb/18644:
5179 * f-lang.c (build_fortran_types): Handle the case where
5180 gdbarch_floatformat_for_type returns a nullptr.
5181
51822019-05-21 Tom de Vries <tdevries@suse.de>
5183
5184 PR cli/24587
5185 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5186
51872019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5188
5189 PR gdb/18644:
5190 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5191 16-byte floats.
5192 * i386-tdep.c (i386_floatformat_for_type): Use
5193 floatformats_ia64_quad for the 16-byte floating point component
5194 within a fortran 32-byte complex number.
5195
51962019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5197
5198 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5199 delete default constructor.
5200 (find_partial_die): Update to return const struct.
5201 (partial_die_parent_scope): Move variable declaration into scope
5202 of its use and change its type to auto.
5203 (guess_partial_die_structure_name): Likewise.
5204 (partial_die_info::fixup): Likewise.
5205
52062019-05-17 Tom Tromey <tromey@adacore.com>
5207
5208 * source.c (find_and_open_source): Remove cast.
5209
52102019-05-17 Tom Tromey <tromey@adacore.com>
5211
5212 * annotate.c (annotate_source): Make "filename" const.
5213 * annotate.h (annotate_source): Use const.
5214
52152019-05-17 Alan Hayward <alan.hayward@arm.com>
5216
5217 * disasm.c (set_disassembler_options): Send errors to stderr.
5218
52192019-05-17 Alan Hayward <alan.hayward@arm.com>
5220
5221 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5222 (cli_interp_base::set_logging): Check debug_redirect.
5223 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5224 * cli/cli-logging.c (debug_redirect): Add static variable.
5225 (pop_output_files): Add default param.
5226 (handle_redirections): Print debug setting.
5227 (show_logging_command): Likewise.
5228 (_initialize_cli_logging): Add debugredirect command.
5229 * interps.c (current_interp_set_logging): Add debug_redirect
5230 parameter.
5231 * interps.h (set_logging): Add debug_redirect parameter.
5232 (current_interp_set_logging): Likewise.
5233 * mi/mi-common.h: Likewise.
5234 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5235
52362019-05-17 Alan Hayward <alan.hayward@arm.com>
5237 Tom Tromey <tromey@adacore.com>
5238
5239 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5240 directly.
5241 * cli/cli-interp.h (make_logging_output): Remove declaration.
5242 * cli/cli-logging.c (make_logging_output): Remove function.
5243 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5244 directly.
5245 * ui-file.c (tee_file::tee_file): Remove bools.
5246 (tee_file::~tee_file): Remove deletes.
5247 * ui-file.h (tee_file): Remove bools.
5248
52492019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5250
5251 * mi/mi-cmds.h (mi_cmd_complete): New function.
5252 * mi/mi-main.c (mi_cmd_complete): Likewise.
5253 * mi/mi-cmds.c: Define new MI command -complete.
5254 * NEWS: Mention new -complete command.
5255
52562019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5257
5258 * completer.h (complete): New function.
5259 * completer.c (complete): Likewise.
5260 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5261 function defined in completer.h.
5262
52632019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5264
5265 * MAINTAINERS (Write After Approval): Add myself.
5266
52672019-05-17 Tom de Vries <tdevries@suse.de>
5268
5269 PR gdb/24094
5270 * dwarf2read.c (struct cu_partial_die_info): New struct.
5271 (find_partial_die): Return cu_partial_die_info.
5272 (partial_die_parent_scope, guess_partial_die_structure_name)
5273 (partial_die_info::fixup): Handle new return type of find_partial_die.
5274
52752019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5276
5277 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5278 "std::string", simplifying the algorithm.
5279
52802019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5281
5282 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5283 (stap_static_probe_ops::get_probes): Likewise.
5284
52852019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5286
5287 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5288 '-')" and "else if".
5289 (stap_parse_single_operand): Join checks for
5290 "gdbarch_stap_parse_special_token_p" and
5291 "gdbarch_stap_parse_special_token" in the same "if" statement.
5292 Invert check when verifying for operation on register
5293 displacement.
5294
52952019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5296
5297 * stap-probe.c (stap_get_opcode): Update comment.
5298 (stap_get_expected_argument_type): Likewise.
5299 (handle_stap_probe): Likewise.
5300
53012019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5302
5303 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5304 return type to 'bool'. Adjust comment. Use 'bool' when
5305 appropriate.
5306 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5307 * stap-probe.c (stap_parse_argument_1): Likewise.
5308 (stap_is_operator): Likewise.
5309 (stap_is_generic_prefix): Likewise.
5310 (stap_is_register_prefix): Likewise.
5311 (stap_is_register_indirection_prefix): Likewise.
5312 (stap_is_integer_prefix): Likewise.
5313 (stap_generic_check_suffix): Likewise.
5314 (stap_check_integer_suffix): Likewise.
5315 (stap_check_register_suffix): Likewise.
5316 (stap_check_register_indirection_suffix): Likewise.
5317 (stap_parse_register_operand): Likewise.
5318 (stap_parse_single_operand): Likewise.
5319 (stap_parse_argument_1): Likewise.
5320 (stap_probe::get_argument_count): Likewise.
5321 (stap_is_operator): Likewise.
5322
53232019-05-16 Tom Tromey <tromey@adacore.com>
5324
5325 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5326 keyword to foreach.
5327
53282019-05-15 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * linux-thread-db.c (try_thread_db_load_1): Change return type
5331 to bool.
5332 (try_thread_db_load): Likewise.
5333 (try_thread_db_load_from_pdir_1): Likewise.
5334 (try_thread_db_load_from_pdir): Likewise.
5335 (try_thread_db_load_from_sdir): Likewise.
5336 (try_thread_db_load_from_dir): Likewise.
5337 (thread_db_load_search): Likewise.
5338 (has_libpthread): Likewise.
5339 (thread_db_load): Likewise.
5340
53412019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5342
5343 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5344 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5345 NULL, and complain/return if that's the case.
5346
53472019-05-15 John Darrington <john@darrington.wattle.id.au>
5348
5349 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5350 (advance, posn, abstract_read_memory): New functions.
5351 [struct mem_read_abstraction]: New struct.
5352 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5353
53542019-05-14 Tom Tromey <tromey@adacore.com>
5355
5356 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5357 value is not lval_memory.
5358
53592019-05-14 Tom Tromey <tromey@adacore.com>
5360
5361 * solib.c (info_sharedlibrary_command): Style the file name.
5362
53632019-05-14 Alan Hayward <alan.hayward@arm.com>
5364
5365 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5366 (aarch64_vnv_type): Likewise.
5367 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5368 * common/tdesc.c: Likewise.
5369 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5370 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5371 * features/aarch64-fpu.xml: Add ieee half view.
5372 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5373 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5374 * gdbtypes.h (struct builtin_type): Likewise.
5375 (struct objfile_type): Likewise.
5376
53772019-05-12 Paul Naert <paul.naert@polymtl.ca>
5378
5379 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5380 typo.
5381 * location.h (string_to_event_location): Likewise.
5382
53832019-05-11 Joel Brobecker <brobecker@adacore.com>
5384
5385 GDB 8.3 released.
5386
53872019-05-10 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5390 New variable declaration.
5391 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5392 New variable.
5393 (print_one_breakpoint): Use ui_out::test_flags and new global
5394 variable to compute use_fixed_output.
5395 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5396 Remove.
5397 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5398 (mi_multi_location_breakpoint_output_fixed): Remove.
5399 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5400 new variable.
5401 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5402 fix_multi_location_breakpoint_output flag if version >= 3.
5403 * ui-out.h (enum ui_out_flag)
5404 <fix_multi_location_breakpoint_output>: New enumerator.
5405
54062019-05-10 Simon Marchi <simon.marchi@efficios.com>
5407
5408 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5409
54102019-05-10 Tom Tromey <tromey@adacore.com>
5411
5412 * ada-lang.c (catch_ada_completer): New function.
5413 (_initialize_ada_language): Use it.
5414
54152019-05-10 Tom Tromey <tromey@adacore.com>
5416
5417 * thread.c (print_thread_info): Make "requested_threads" const.
5418 * gdbthread.h (print_thread_info): Make "requested_threads"
5419 const.
5420 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5421 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5422
54232019-05-08 Tom Tromey <tom@tromey.com>
5424
5425 * gdbtypes.c (objfile_type_data): Change type.
5426 (objfile_type, _initialize_gdbtypes): Update.
5427
54282019-05-08 Tom Tromey <tom@tromey.com>
5429
5430 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5431 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5432 (_initialize_dwarf2_frame): Update.
5433
54342019-05-08 Tom Tromey <tom@tromey.com>
5435
5436 * objc-lang.c (objc_objfile_data): Change type.
5437 (find_methods): Update.
5438 (_initialize_objc_lang): Remove.
5439
54402019-05-08 Tom Tromey <tom@tromey.com>
5441
5442 * stabsread.c (rs6000_builtin_type_data): Change type.
5443 (rs6000_builtin_type, _initialize_stabsread): Update.
5444
54452019-05-08 Tom Tromey <tom@tromey.com>
5446
5447 * mips-tdep.c (mips_pdr_data): Remove.
5448 (_initialize_mips_tdep): Update.
5449
54502019-05-08 Tom Tromey <tom@tromey.com>
5451
5452 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5453 (hppa_init_objfile_priv_data, read_unwind_info)
5454 (find_unwind_entry, _initialize_hppa_tdep): Update.
5455
54562019-05-08 Tom Tromey <tom@tromey.com>
5457
5458 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5459 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5460 on obstack.
5461 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5462
54632019-05-08 Tom Tromey <tom@tromey.com>
5464
5465 * mdebugread.c (basic_type_data): Change type.
5466 (basic_type, _initialize_mdebugread): Update.
5467
54682019-05-08 Tom Tromey <tom@tromey.com>
5469
5470 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5471
54722019-05-08 Tom Tromey <tom@tromey.com>
5473
5474 * nto-tdep.c (nto_inferior_data_reg): Change type.
5475 (nto_inferior_data): Update.
5476 (nto_inferior_data_cleanup, nto_new_inferior_data)
5477 (_initialize_nto_tdep): Remove.
5478 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5479
54802019-05-08 Tom Tromey <tom@tromey.com>
5481
5482 * ada-lang.c (struct ada_inferior_data): Add initializers.
5483 (ada_inferior_data): Change type.
5484 (ada_inferior_data_cleanup): Remove.
5485 (get_ada_inferior_data, ada_inferior_exit)
5486 (struct ada_pspace_data): Add initializers, destructor.
5487 (ada_pspace_data_handle): Change type.
5488 (get_ada_pspace_data): Update.
5489 (ada_pspace_data_cleanup): Remove.
5490
54912019-05-08 Tom Tromey <tom@tromey.com>
5492
5493 * coffread.c (struct coff_symfile_info): Add initializers.
5494 (coff_objfile_data_key): Move lower. Change type.
5495 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5496 Update.
5497 (coff_free_info): Remove.
5498
54992019-05-08 Tom Tromey <tom@tromey.com>
5500
5501 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5502 (fbsd_pspace_data_handle): Move lower. Change type.
5503 (get_fbsd_pspace_data): Update.
5504 (fbsd_pspace_data_cleanup): Remove.
5505 (_initialize_fbsd_tdep): Update.
5506
55072019-05-08 Tom Tromey <tom@tromey.com>
5508
5509 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5510 (get_ada_tasks_pspace_data): Update.
5511 (ada_tasks_pspace_data_cleanup): Remove.
5512 (_initialize_tasks): Update.
5513 (ada_tasks_inferior_data_handle): Change type.
5514 (get_ada_tasks_inferior_data): Update.
5515 (ada_tasks_inferior_data_cleanup): Remove.
5516 (struct ada_tasks_pspace_data): Add initializers.
5517
55182019-05-08 Tom Tromey <tom@tromey.com>
5519
5520 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5521 * symfile-debug.c (debug_sym_get_probes): Change type.
5522 * stap-probe.c (handle_stap_probe):
5523 (stap_static_probe_ops::get_probes): Change type.
5524 * probe.h (class static_probe_ops) <get_probes>: Change type.
5525 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5526 (parse_probes_in_pspace): Update.
5527 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5528 Update.
5529 (any_static_probe_ops::get_probes): Change type.
5530 * elfread.c (elfread_data): New typedef.
5531 (probe_key): Change type.
5532 (elf_get_probes): Likewise. Update.
5533 (probe_key_free): Remove.
5534 (_initialize_elfread): Update.
5535 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5536 Change type.
5537 (dtrace_process_dof_probe, dtrace_process_dof)
5538 (dtrace_static_probe_ops::get_probe): Change type.
5539
55402019-05-08 Tom Tromey <tom@tromey.com>
5541
5542 * xcoffread.c (struct xcoff_symfile_info): Rename from
5543 coff_symfile_info. Add initializers.
5544 (xcoff_objfile_data_key): Move lower. Change type.
5545 (XCOFF_DATA): Rewrite.
5546 (xcoff_free_info): Remove.
5547 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5548 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5549 (xcoff_initial_scan): Update.
5550
55512019-05-08 Tom Tromey <tom@tromey.com>
5552
5553 * solib-svr4.c (struct svr4_info): Add initializers and
5554 destructor.
5555 <probes_table>: Now an htab_up.
5556 (solib_svr4_pspace_data): Change type.
5557 (free_probes_table): Simplify.
5558 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5559 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5560 (probes_table_remove_objfile_probes, register_solib_event_probe)
5561 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5562 (_initialize_svr4_solib): Update.
5563
55642019-05-08 Tom Tromey <tom@tromey.com>
5565
5566 * remote.c (remote_pspace_data): Change type.
5567 (remote_pspace_data_cleanup): Remove.
5568 (get_remote_exec_file, set_pspace_remote_exec_file)
5569 (_initialize_remote): Update.
5570
55712019-05-08 Tom Tromey <tom@tromey.com>
5572
5573 * breakpoint.c (breakpoint_objfile_key): Change type.
5574 (get_breakpoint_objfile_data): Update.
5575 (free_breakpoint_objfile_data): Remove.
5576 (_initialize_breakpoint): Update.
5577
55782019-05-08 Tom Tromey <tom@tromey.com>
5579
5580 * linux-tdep.c (struct linux_info): Add initializers.
5581 (linux_inferior_data): Move. Change type.
5582 (invalidate_linux_cache_inf): Update.
5583 (linux_inferior_data_cleanup): Remove.
5584 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5585
55862019-05-08 Tom Tromey <tom@tromey.com>
5587
5588 * auxv.c (auxv_inferior_data): Move. Change type.
5589 (auxv_inferior_data_cleanup): Remove.
5590 (invalidate_auxv_cache_inf): Rewrite.
5591 (get_auxv_inferior_data, _initialize_auxv): Update.
5592
55932019-05-08 Tom Tromey <tom@tromey.com>
5594
5595 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5596 (symfile_debug_objfile_data_key): Change type.
5597 (symfile_debug_installed, debug_qf_has_symbols)
5598 (debug_qf_find_last_source_symtab)
5599 (debug_qf_forget_cached_source_info)
5600 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5601 (debug_qf_print_stats, debug_qf_dump)
5602 (debug_qf_expand_symtabs_for_function)
5603 (debug_qf_expand_all_symtabs)
5604 (debug_qf_expand_symtabs_with_fullname)
5605 (debug_qf_map_matching_symbols)
5606 (debug_qf_expand_symtabs_matching)
5607 (debug_qf_find_pc_sect_compunit_symtab)
5608 (debug_qf_map_symbol_filenames)
5609 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5610 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5611 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5612 (debug_sym_read_linetable, debug_sym_relocate): Update.
5613 (symfile_debug_free_objfile): Remove.
5614 (install_symfile_debug_logging, _initialize_symfile_debug):
5615 Update.
5616
56172019-05-08 Tom Tromey <tom@tromey.com>
5618
5619 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5620 allocate_on_obstack.
5621 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5622 (get_dwarf2_per_objfile): Update.
5623 (set_dwarf2_per_objfile): Remove.
5624 (dwarf2_has_info, dwarf2_get_section_info): Update.
5625 (dwarf2_free_objfile): Remove.
5626 (_initialize_dwarf2_read): Update.
5627
56282019-05-08 Tom Tromey <tom@tromey.com>
5629
5630 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5631 initializers.
5632 <unsupported_script_warning_printed,
5633 script_not_found_warning_printed>: Now bool.
5634 (auto_load_pspace_data): Change type.
5635 (~auto_load_pspace_info): Rename from
5636 auto_load_pspace_data_cleanup.
5637 (get_auto_load_pspace_data, init_loaded_scripts_info)
5638 (clear_section_scripts, maybe_print_unsupported_script_warning)
5639 (maybe_print_script_not_found_warning, _initialize_auto_load):
5640 Update.
5641
56422019-05-08 Tom Tromey <tom@tromey.com>
5643
5644 * objfiles.c (objfile_pspace_info): Add destructor and
5645 initializers.
5646 (objfiles_pspace_data): Change type.
5647 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5648 (get_objfile_pspace_data): Update.
5649 (objfiles_bfd_data): Change type.
5650 (get_objfile_bfd_data): Update.
5651 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5652
56532019-05-08 Tom Tromey <tom@tromey.com>
5654
5655 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5656 Change type.
5657 (get_catch_syscall_inferior_data): Update.
5658 (catch_syscall_inferior_data_cleanup): Remove.
5659 (_initialize_break_catch_syscall): Update.
5660
56612019-05-08 Tom Tromey <tom@tromey.com>
5662
5663 * inflow.c (struct terminal_info): Add destructor and
5664 initializers.
5665 (inflow_inferior_data): Change type.
5666 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5667 (get_inflow_inferior_data, inflow_inferior_exit)
5668 (swap_terminal_info, _initialize_inflow): Update.
5669
56702019-05-08 Tom Tromey <tom@tromey.com>
5671
5672 * target-dcache.c (target_dcache_cleanup): Remove.
5673 (target_dcache_aspace_key): Change type.
5674 (target_dcache_init_p, target_dcache_invalidate)
5675 (target_dcache_get, target_dcache_get_or_init)
5676 (_initialize_target_dcache): Update.
5677 * dcache.h (struct dcache_deleter): New.
5678
56792019-05-08 Tom Tromey <tom@tromey.com>
5680
5681 * symtab.c (struct symbol_cache): Add destructor and
5682 initializers.
5683 (symbol_cache_key): Move. Change type.
5684 (make_symbol_cache, free_symbol_cache): Remove.
5685 (get_symbol_cache): Update.
5686 (symbol_cache_cleanup): Remove.
5687 (ALL_PSPACES, symbol_cache_flush)
5688 (maintenance_print_symbol_cache)
5689 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5690 Update.
5691
56922019-05-08 Tom Tromey <tom@tromey.com>
5693
5694 * symtab.c (struct main_info): Add destructor and initializers.
5695 (main_progspace_key): Move. Change type.
5696 (get_main_info): Update.
5697 (main_info_cleanup): Remove.
5698 (_initialize_symtab): Update.
5699
57002019-05-08 Tom Tromey <tom@tromey.com>
5701
5702 * registry.h (DECLARE_REGISTRY): Define the _key class.
5703
57042019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5705
5706 * NEWS: Merge two 'New commands' sections.
5707
57082019-05-08 Joel Brobecker <brobecker@adacore.com>
5709
5710 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5711 parameter and use Ada language definition instead.
5712 (ada_val_print_ptr): Remove unused language parameter.
5713 (ada_val_print_num): Remove language parameter and use Ada language
5714 definition instead.
5715 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5716 parameter.
5717 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5718 parameter and use Ada language definition instead.
5719 (ada_val_print_1): Update all ada_val_print_xxx calls.
5720 Remove language parameter.
5721 (ada_val_print): Update ada_val_print_1 call.
5722
57232019-05-08 Tom Tromey <tromey@adacore.com>
5724
5725 * remote.c (remote_hw_watchpoint_limit)
5726 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5727 Now static.
5728
57292019-05-08 Tom Tromey <tromey@adacore.com>
5730
5731 * maint.c (_initialize_maint_cmds): Move initialization code to
5732 remote.c.
5733 (watchdog, show_watchdog): Move to remote.c.
5734 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5735 "watchdog" static.
5736 (_initialize_remote): Move initialization code from maint.c.
5737 * defs.h (watchdog): Don't declare.
5738
57392019-05-08 Tom Tromey <tromey@adacore.com>
5740
5741 * tui/tui-interp.c: Include main.h.
5742 * interps.c: Include main.h.
5743 * main.h (interpreter_p): Declare.
5744 * defs.h (interpreter_p): Don't declare.
5745
57462019-05-08 Tom Tromey <tromey@adacore.com>
5747
5748 * dwarf2loc.c: Include dwarf2read.h.
5749 * defs.h (read_unsigned_leb128): Don't declare.
5750 * dwarf2read.h (read_unsigned_leb128): Declare.
5751
57522019-05-08 Tom Tromey <tromey@adacore.com>
5753
5754 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5755 method.
5756
57572019-05-08 Tom Tromey <tromey@adacore.com>
5758
5759 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5760 when no wrap column is set.
5761
57622019-05-08 Tom Tromey <tromey@adacore.com>
5763
5764 * c-lang.c (c_get_string): Handle non-C-style arrays.
5765
57662019-05-08 Tom Tromey <tromey@adacore.com>
5767
5768 * typeprint.c (print_offset_data::update): Print the bit offset,
5769 not the number of bits remaining.
5770
57712019-05-08 Tom Tromey <tromey@adacore.com>
5772
5773 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5774 padding at end of comment.
5775
57762019-05-08 Tom Tromey <tromey@adacore.com>
5777
5778 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5779 Compare main types.
5780
57812019-05-06 Tom Tromey <tom@tromey.com>
5782
5783 * common/scoped_mmap.c: Include common-defs.h.
5784 * common/scoped_mmap.h: Don't include config.h.
5785
57862019-05-04 Tom Tromey <tom@tromey.com>
5787
5788 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5789 (struct aarch64_call_info): Add initializers.
5790 <si>: Now a std::vector.
5791 (pass_on_stack, aarch64_push_dummy_call): Update.
5792
57932019-05-04 Simon Marchi <simon.marchi@efficios.com>
5794 Tom Tromey <tom@tromey.com>
5795
5796 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5797 (ppc_threads): Now a std::vector. Now static.
5798 (hwdebug_find_thread_points_by_tid)
5799 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5800 Update.
5801
58022019-05-04 Tom Tromey <tom@tromey.com>
5803
5804 * arc-tdep.c (arc_tdesc_init): Return bool.
5805
58062019-05-04 Tom Tromey <tom@tromey.com>
5807
5808 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5809 Use gdb_assert_not_reached.
5810
58112019-05-04 Tom Tromey <tom@tromey.com>
5812
5813 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5814 "false".
5815
58162019-05-04 Tom Tromey <tom@tromey.com>
5817
5818 * arc-tdep.c (arc_tdesc_init): Use bool.
5819
58202019-05-04 Tom Tromey <tom@tromey.com>
5821
5822 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5823
58242019-05-04 Tom Tromey <tom@tromey.com>
5825
5826 * cli/cli-cmds.c (valid_command_p): Return bool.
5827
58282019-05-04 Tom Tromey <tom@tromey.com>
5829
5830 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5831 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5832
58332019-05-04 Raul Tambre <raul@tambre.ee>
5834
5835 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5836 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5837 operator for comparison.
5838
58392019-05-04 Tom Tromey <tom@tromey.com>
5840
5841 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5842 (lookup_partial_symbol, print_partial_symbols)
5843 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5844 (psymbol_compare): Update.
5845 (add_psymbol_to_bcache): Clear the entire psymbol.
5846 (maintenance_check_psymtabs): Update.
5847 * psympriv.h (struct partial_symbol): Don't derive from
5848 general_symbol_info.
5849 <obj_section, unrelocated_address, address,
5850 set_unrelocated_address>: Update.
5851 <ginfo>: New member.
5852 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5853 (debug_names::write_psymbols): Update.
5854
58552019-05-04 Tom de Vries <tdevries@suse.de>
5856
5857 * contrib/cc-with-tweaks.sh: Support -n arg.
5858
58592019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5860
5861 * corelow.c (core_target::detach): Ensure frame cache and
5862 register caches are cleared.
5863 inferior.c (exit_inferior_1): Likewise.
5864
58652019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5866 Tom Tromey <tom@tromey.com>
5867
5868 * dictionary.c (collate_pending_symbols_by_language): Remove
5869 "struct" from foreach.
5870 * symtab.c (lookup_global_symbol_from_objfile)
5871 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5872 foreach.
5873 * ser-tcp.c (net_open): Remove "struct" from foreach.
5874 * objfiles.c (objfile_relocate, objfile_rebase)
5875 (objfile_has_symbols): Remove "struct" from foreach.
5876 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5877 from foreach.
5878 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5879 foreach.
5880 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5881 "struct" from foreach.
5882 * ada-lang.c (create_excep_cond_exprs)
5883 (ada_exception_catchpoint_cond_string): Remove "struct" from
5884 foreach.
5885
58862019-05-03 Tom Tromey <tromey@adacore.com>
5887
5888 * ada-exp.y (convert_char_literal): Check suffix of each
5889 enumerator.
5890
58912019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5892
5893 PR ada/21406:
5894 * ada-exp.y (yywrap): Don't define.
5895 * ada-lex.l (%option): Add noyywrap
5896 (yywrap): Remove.
5897
58982019-05-03 Eli Zaretskii <eliz@gnu.org>
5899
5900 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5901 _WIN32_WINNT to the XP level, unless already defined to a higher
5902 level.
5903
5904 * unittests/parse-connection-spec-selftests.c:
5905 * ser-tcp.c:
5906 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5907 override.
5908
5909 * symfile.c (find_separate_debug_file): Remove colon from the
5910 drive spec of DOS/Windows file names of the target, so that the
5911 file name produced from DEBUGDIR and the target's directory will
5912 be valid on DOS/Windows systems.
5913
59142019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5915
5916 * rust-lang.c (val_print_struct): Handle printing structures
5917 containing strings.
5918
59192019-05-02 Tom Tromey <tromey@adacore.com>
5920
5921 * valarith.c (_initialize_valarith): Remove.
5922
59232019-05-01 Tom Tromey <tromey@adacore.com>
5924
5925 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5926 bitfields.
5927
59282019-05-01 Tom Tromey <tromey@adacore.com>
5929
5930 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5931 for big-endian copies.
5932
59332019-04-30 Ali Tamur <tamur@google.com>
5934 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5935 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5936 (read_3_bytes): New function.
5937
59382019-04-30 Joel Brobecker <brobecker@adacore.com>
5939
5940 * windows-nat.c (main_thread_id): Delete.
5941 (handle_output_debug_string): Replace main_thread_id by
5942 current_event.dwThreadId.
5943 (fake_create_process): Likewise.
5944 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5945 Do not set main_thread_id.
5946 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5947 current_event.dwThreadId.
5948 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5949
59502019-04-30 Joel Brobecker <brobecker@adacore.com>
5951
5952 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5953 Use current_event.dwThreadId instead of main_thread_id.
5954
59552019-04-30 Tom Tromey <tromey@adacore.com>
5956
5957 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5958 (create_excep_cond_exprs): Iterate over program spaces.
5959 (ada_exception_catchpoint_cond_string): Examine all minimal
5960 symbols for exception types.
5961
59622019-04-30 Tom Tromey <tromey@adacore.com>
5963
5964 PR c++/24470:
5965 * dwarf2read.c (process_structure_scope): Handle case where type
5966 has template parameters but no symbol was created.
5967
59682019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5969 Chris January <chris.january@arm.com>
5970
5971 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5972 qualifier.
5973 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5974
59752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5976
5977 * f-typeprint.c (f_print_type): Update rules for printing
5978 whitespace.
5979 (f_type_print_varspec_suffix): Likewise.
5980
59812019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5982 Chris January <chris.january@arm.com>
5983
5984 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5985 function arguments.
5986
59872019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5988
5989 * f-lang.c (build_fortran_types): Change name of void type to
5990 lower case.
5991 * f-typeprint.c (f_type_print_base): Print the name of the void
5992 type, rather than a fixed string.
5993 * f-valprint.c (f_decorations): Use lower case void string.
5994
59952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5996 Chris January <chris.january@arm.com>
5997
5998 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5999 types for Fortran.
6000
60012019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6002 Chris January <chris.january@arm.com>
6003 David Lecomber <david.lecomber@arm.com>
6004
6005 * f-exp.y (BINOP_INTRINSIC): New token.
6006 (exp): New parser rule handling BINOP_INTRINSIC.
6007 (f77_keywords): Add new builtin procedures.
6008 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
6009 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6010 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
6011 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6012 (print_unop_subexp_f): New function.
6013 (print_binop_subexp_f): New function.
6014 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6015 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
6016 (dump_subexp_body_f): Likewise.
6017 (operator_check_f): Likewise.
6018 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
6019 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
6020
60212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6022
6023 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
6024 UNOP_KIND.
6025 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
6026 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
6027 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
6028 (operator_length_f): New fuction.
6029 (print_subexp_f): New function.
6030 (op_name_f): New function.
6031 (dump_subexp_body_f): New function.
6032 (operator_check_f): New function.
6033 (exp_descriptor_f): Replace standard expression handling functions
6034 with new functions.
6035 * gdb/fortran-operator.def: New file.
6036 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
6037 * gdb/std-operator.def: Remove UNOP_KIND.
6038
60392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
6040
6041 * std-operator.def: Remove unbalanced, stray double quote
6042 character.
6043
60442019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6045 Chris January <chris.january@arm.com>
6046 Daniel Everett <daniel.everett@arm.com>
6047 Nick Forrington <nick.forrington@arm.com>
6048 Richard Bunt <richard.bunt@arm.com>
6049
6050 * cp-valprint.c (cp_print_value_fields): Allow an additional level
6051 of depth when printing anonymous structs or unions.
6052 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
6053 Don't print either the top-level value, or the children if the
6054 max-depth is exceeded.
6055 (ppscm_print_children): When printing the key of a map, allow one
6056 extra level of depth.
6057 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
6058 print either the top-level value, or the children if the max-depth
6059 is exceeded.
6060 (print_children): When printing the key of a map, allow one extra
6061 level of depth.
6062 * python/py-value.c (valpy_format_string): Add max_depth keyword.
6063 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
6064 (user_print_options): Initialise max_depth field.
6065 (val_print_scalar_or_string_type_p): New function.
6066 (val_print): Check to see if the max depth has been reached.
6067 (val_print_check_max_depth): Define new function.
6068 (show_print_max_depth): New function.
6069 (_initialize_valprint): Add 'print max-depth' option.
6070 * valprint.h (struct value_print_options) <max_depth>: New field.
6071 (val_print_check_max_depth): Declare new function.
6072 * NEWS: Document new feature.
6073
60742019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6075
6076 * ada-lang.c (ada_language_defn): Initialise new field.
6077 * c-lang.c (c_is_string_type_p): New function.
6078 (c_language_defn): Initialise new field.
6079 (cplus_language_defn): Initialise new field.
6080 (asm_language_defn): Initialise new field.
6081 (minimal_language_defn): Initialise new field.
6082 * c-lang.h (c_is_string_type_p): Declare new function.
6083 * d-lang.c (d_language_defn): Initialise new field.
6084 * f-lang.c (f_is_string_type_p): New function.
6085 (f_language_defn): Initialise new field.
6086 * go-lang.c (go_is_string_type_p): New function.
6087 (go_language_defn): Initialise new field.
6088 * language.c (default_is_string_type_p): New function.
6089 (unknown_language_defn): Initialise new field.
6090 (auto_language_defn): Initialise new field.
6091 * language.h (struct language_defn) <la_is_string_type_p>: New
6092 member variable.
6093 (default_is_string_type_p): Declare new function.
6094 * m2-lang.c (m2_language_defn): Initialise new field.
6095 * objc-lang.c (objc_language_defn): Initialise new field.
6096 * opencl-lang.c (opencl_language_defn): Initialise new field.
6097 * p-lang.c (pascal_is_string_type_p): New function.
6098 (pascal_language_defn): Initialise new field.
6099 * rust-lang.c (rust_is_string_type_p): New function.
6100 (rust_language_defn): Initialise new field.
6101
61022019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6103
6104 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
6105 New field.
6106 * ada-lang.c (ada_language_defn): Initialise new field.
6107 * c-lang.c (c_language_defn): Likewise.
6108 (cplus_language_defn): Likewise.
6109 (asm_language_defn): Likewise.
6110 (minimal_language_defn): Likewise.
6111 * d-lang.c (d_language_defn): Likewise.
6112 * f-lang.c (f_language_defn): Likewise.
6113 * go-lang.c (go_language_defn): Likewise.
6114 * language.c (unknown_language_defn): Likewise.
6115 (auto_language_defn): Likewise.
6116 * m2-lang.c (m2_language_defn): Likewise.
6117 * objc-lang.c (objc_language_defn): Likewise.
6118 * opencl-lang.c (opencl_language_defn): Likewise.
6119 * p-lang.c (pascal_language_defn): Likewise.
6120 * rust-lang.c (rust_language_defn): Likewise.
6121
61222019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6123
6124 * ada-lang.c (ada_is_character_type): Change return type to bool.
6125 (ada_is_string_type): Likewise.
6126 * ada-lang.h (ada_is_character_type): Update declaration
6127 (ada_is_string_type): Likewise.
6128
61292019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6130
6131 Support style in 'frame|thread apply'
6132
6133 * gdbcmd.h (execute_command_to_string): New term_out parameter.
6134 * record.c (record_start, record_stop): Update callers of
6135 execute_command_to_string with false.
6136 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
6137 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
6138 methods.
6139 (class string_file): New constructor with term_out parameter.
6140 Override methods term_out and can_emit_style_escape. New member
6141 term_out.
6142 (class stdio_file): Override can_emit_style_escape.
6143 (class tee_file): Override term_out and can_emit_style_escape.
6144 * utils.h (can_emit_style_escape): Remove.
6145 * utils.c (can_emit_style_escape): Likewise.
6146 Update all callers of can_emit_style_escape (SOMESTREAM) to
6147 SOMESTREAM->can_emit_style_escape.
6148 * source-cache.c (source_cache::get_source_lines): Likewise.
6149 * stack.c (frame_apply_command_count): Call execute_command_to_string
6150 passing the term_out characteristic of the current gdb_stdout.
6151 * thread.c (thr_try_catch_cmd): Likewise.
6152 * top.c (execute_command_to_string): pass term_out parameter
6153 to construct the string_file for the command output.
6154 * ui-file.c (term_cli_styling): New function (most code moved
6155 from utils.c can_emit_style_escape).
6156 (string_file::string_file, string_file::can_emit_style_escape,
6157 stdio_file::can_emit_style_escape, tee_file::term_out,
6158 tee_file::can_emit_style_escape): New functions.
6159
61602019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6161
6162 * NEWS: Mention the new set|show may-call-functions.
6163 * infcall.c (may_call_functions_p): New variable.
6164 (show_may_call_functions_p): New function.
6165 (call_function_by_hand_dummy): Throws an error if not
6166 may-call-functions.
6167 (_initialize_infcall): Call add_setshow_boolean_cmd for
6168 may-call-functions.
6169
61702019-04-25 Keith Seitz <keiths@redhat.com>
6171
6172 PR c++/24367
6173 * cp-support.c (inspect_type): Don't attempt substitutions
6174 of symbol with the same name.
6175
61762019-04-25 Tom Tromey <tromey@adacore.com>
6177
6178 PR gdb/24475:
6179 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6180 static.
6181
61822019-04-25 Tom Tromey <tromey@adacore.com>
6183
6184 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6185 rvalue reference.
6186 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6187 (gdb_xml_parser::parse): Use std::move.
6188 * python/python-internal.h (gdbpy_convert_exception): Take a const
6189 reference.
6190 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6191 std::move.
6192 * python/py-utils.c (gdbpy_convert_exception): Take a const
6193 reference.
6194 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6195 Use std::move.
6196 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6197 Use std::move.
6198 * mi/mi-main.c (mi_print_exception): Take a const reference.
6199 * main.c (handle_command_errors): Take a const reference.
6200 * linespec.c (parse_linespec): Use std::move.
6201 * infcall.c (run_inferior_call): Use std::move.
6202 (call_function_by_hand_dummy): Use std::move.
6203 * exec.c (try_open_exec_file): Use std::move.
6204 * exceptions.h (exception_print, exception_fprintf)
6205 (exception_print_same): Update.
6206 * exceptions.c (print_exception, exception_print)
6207 (exception_fprintf, exception_print_same): Change parameters to
6208 const reference.
6209 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6210 * common/new-op.c: Use std::move.
6211 * common/common-exceptions.h (struct gdb_exception): Add move
6212 constructor.
6213 (struct gdb_exception_error, struct gdb_exception_quit, struct
6214 gdb_quit_bad_alloc): Change constructor to move constructor.
6215 (throw_exception): Change parameter to rvalue reference.
6216 * common/common-exceptions.c (throw_exception): Take rvalue
6217 reference.
6218 * cli/cli-interp.c (safe_execute_command): Use std::move.
6219 * breakpoint.c (insert_bp_location, location_to_sals): Use
6220 std::move.
6221
62222019-04-25 Tom Tromey <tromey@adacore.com>
6223
6224 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6225 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6226 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6227 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6228 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6229 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6230 guile/scm-value.c: Use unpack.
6231 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6232 gdbscm_gdb_exception.
6233 (gdbscm_throw_gdb_exception): Likewise.
6234 (struct gdbscm_gdb_exception): New.
6235 (unpack): New function.
6236 (gdbscm_wrap): Use unpack.
6237
62382019-04-25 Tom Tromey <tromey@adacore.com>
6239
6240 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6241 (gdb_rl_callback_handler): Use std::move.
6242 * common/common-exceptions.h (struct gdb_exception): Add move
6243 assignment operator.
6244 (throw_exception_sjlj): Change "exception" to const reference.
6245 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6246 (throw_exception_sjlj): Change "exception" to const reference.
6247
62482019-04-25 Tom Tromey <tromey@adacore.com>
6249
6250 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6251 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6252 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6253 Update.
6254 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6255 Update.
6256 * mi/mi-interp.c (mi_interp::exec): Update.
6257 * linespec.c (parse_linespec): Update.
6258 * infcall.c (run_inferior_call): Update.
6259 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6260 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6261 (gdbscm_lookup_global_symbol): Update.
6262 * guile/scm-param.c (gdbscm_parameter_value): Update.
6263 * guile/scm-frame.c (gdbscm_frame_read_register)
6264 (gdbscm_frame_read_var): Update.
6265 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6266 * exec.c (try_open_exec_file): Update.
6267 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6268 (gdb_rl_callback_handler): Update.
6269 * common/common-exceptions.h (exception_none): Don't declare.
6270 * common/common-exceptions.c (exception_none): Don't define.
6271 (struct catcher) <exception>: Update.
6272 * cli/cli-interp.c (safe_execute_command): Update.
6273 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6274
62752019-04-25 Ali Tamur <tamur@google.com>
6276
6277 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6278 (read_attribute_value): Likewise.
6279 (dwarf2_read_addr_index): Update comment.
6280 (read_str_index): Add DW_FORM_strx.
6281 (dwarf2_string_attr): Likewise.
6282 (dwarf2_const_value_attr): Likewise.
6283 (dump_die_shallow): Likewise.
6284 (dwarf2_fetch_constant_bytes): Likewise.
6285 (skip_form_bytes): Likewise.
6286 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6287
62882019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6289
6290 PR corefiles/11608
6291 PR corefiles/18187
6292 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6293 OFFSET. Verify if current mapping contains an ELF header.
6294 (linux_find_memory_regions_full): Adjust call to
6295 dump_mapping_p.
6296
62972019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6298 Kang Li <kanglictf@gmail.com>
6299
6300 PR gdb/21600
6301
6302 * dwarf2-frame.c (read_initial_length): Be consistent about using
6303 unsigned representation of length.
6304 (decode_frame_entry_1): Likewise. Check for wraparound of
6305 end pointer as well as buffer overflow.
6306
63072019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6308
6309 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6310 "vq".
6311
63122019-04-24 Tom Tromey <tromey@adacore.com>
6313
6314 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6315
63162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6317
6318 * s12z-tdep.c (s12z_unwind_pc): Delete.
6319 (s12z_unwind_sp): Delete.
6320 (s12z_gdbarch_init): Don't register deleted functions with
6321 gdbarch.
6322
63232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6324
6325 * rl78-tdep.c (rl78_unwind_sp): Delete.
6326 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6327
63282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6329
6330 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6331 (xstormy16_unwind_pc): Delete.
6332 (xstormy16_dummy_id): Delete.
6333 (xstormy16_gdbarch_init): Don't register deleted functions with
6334 gdbarch.
6335
63362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6337
6338 * vax-tdep.c (vax_unwind_pc): Delete.
6339 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6340
63412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6342
6343 * v850-tdep.c (v850_unwind_sp): Delete.
6344 (v850_unwind_pc): Delete.
6345 (v850_dummy_id): Delete.
6346 (v850_gdbarch_init): Don't register deleted functions with
6347 gdbarch.
6348
63492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6350
6351 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6352 (tilegx_unwind_pc): Delete.
6353 (tilegx_unwind_dummy_id): Delete.
6354 (tilegx_gdbarch_init): Don't register deleted functions with
6355 gdbarch.
6356
63572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6358
6359 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6360 (tic6x_dummy_id): Delete.
6361 (tic6x_gdbarch_init): Don't register deleted functions with
6362 gdbarch.
6363
63642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6365
6366 * sparc-tdep.c (sparc_unwind_pc): Delete.
6367 (sparc32_gdbarch_init): Don't register deleted function with
6368 gdbarch.
6369
63702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6371
6372 * sh-tdep.c (sh_unwind_sp): Delete.
6373 (sh_unwind_pc): Delete.
6374 (sh_dummy_id): Delete.
6375 (sh_gdbarch_init): Don't register deleted functions with
6376 gdbarch.
6377
63782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6379
6380 * score-tdep.c (score_unwind_sp): Delete.
6381 (score_unwind_pc): Delete.
6382 (score_dummy_id): Delete.
6383 (score_gdbarch_init): Don't register deleted functions with
6384 gdbarch.
6385
63862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6387
6388 * rx-tdep.c (rx_unwind_pc): Delete.
6389 (rx_unwind_sp): Delete.
6390 (rx_dummy_id): Delete.
6391 (rx_gdbarch_init): Don't register deleted functions with
6392 gdbarch. Update comment.
6393
63942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6395
6396 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6397 (rs6000_dummy_id): Delete.
6398 (rs6000_gdbarch_init): Don't register deleted functions with
6399 gdbarch.
6400
64012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6402
6403 * or1k-tdep.c (or1k_dummy_id): Delete.
6404 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6405
64062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6407
6408 * nios2-tdep.c (nios2_dummy_id): Delete.
6409 (nios2_unwind_sp): Delete.
6410 (nios2_gdbarch_init): Don't register deleted functions with
6411 gdbarch.
6412
64132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6414
6415 * nds32-tdep.c (nds32_dummy_id): Delete.
6416 (nds32_unwind_pc): Delete.
6417 (nds32_unwind_sp): Delete.
6418 (nds32_gdbarch_init): Don't register deleted functions with
6419 gdbarch.
6420
64212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6422
6423 * msp430-tdep.c (msp430_unwind_pc): Delete.
6424 (msp430_unwind_sp): Delete.
6425 (msp430_dummy_id): Delete.
6426 (msp430_gdbarch_init): Don't register deleted functions with
6427 gdbarch.
6428
64292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6430
6431 * moxie-tdep.c (moxie_unwind_sp): Delete.
6432 (moxie_unwind_pc): Delete.
6433 (moxie_dummy_id): Delete.
6434 (moxie_gdbarch_init): Don't register deleted functions with
6435 gdbarch.
6436
64372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6438
6439 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6440 (mn10300_unwind_pc): Delete.
6441 (mn10300_unwind_sp): Delete.
6442 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6443 mn10300_unwind_sp.
6444 (mn10300_frame_unwind_init): Don't register deleted functions with
6445 gdbarch.
6446
64472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6448
6449 * mep-tdep.c (mep_unwind_pc): Delete.
6450 (mep_unwind_sp): Delete.
6451 (mep_dummy_id): Delete.
6452 (mep_gdbarch_init): Don't register deleted functions with
6453 gdbarch.
6454
64552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6456
6457 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6458 (m68hc11_unwind_sp): Delete.
6459 (m68hc11_gdbarch_init): Don't register deleted functions with
6460 gdbarch.
6461
64622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6463
6464 * m32r-tdep.c (m32r_unwind_sp): Delete.
6465 (m32r_unwind_pc): Delete.
6466 (m32r_dummy_id): Delete.
6467 (m32r_gdbarch_init): Don't register deleted functions with
6468 gdbarch.
6469
64702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6471
6472 * m32c-tdep.c (m32c_unwind_pc): Delete.
6473 (m32c_unwind_sp): Delete.
6474 (m32c_dummy_id): Delete.
6475 (m32c_gdbarch_init): Don't register deleted functions with
6476 gdbarch.
6477
64782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6479
6480 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6481 (lm32_unwind_pc): Delete.
6482 (lm32_dummy_id): Delete.
6483 (lm32_gdbarch_init): Don't register deleted functions with
6484 gdbarch.
6485
64862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6487
6488 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6489 (iq2000_unwind_pc): Delete.
6490 (iq2000_dummy_id): Delete.
6491 (iq2000_gdbarch_init): Don't register deleted functions with
6492 gdbarch.
6493
64942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6495
6496 * nds32-tdep.c (nds32_type_align): Delete.
6497 (nds32_push_dummy_call): Use type_align instead.
6498
64992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6500
6501 * arm-tdep.c (arm_type_align): Only handle vector override case.
6502 (arm_push_dummy_call): Use type_align.
6503 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6504
65052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6506
6507 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6508 case.
6509 (pass_on_stack): Use type_align.
6510 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6511 function.
6512
65132019-04-23 Tom Tromey <tromey@adacore.com>
6514
6515 * dwarf2read.c (line_header::file_name_at): Remove unused
6516 overload.
6517
65182019-04-23 Tom de Vries <tdevries@suse.de>
6519
6520 PR gdb/24438
6521 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6522 invocation.
6523
6524
65252019-03-27 Ali Tamur <tamur@google.com>
6526
6527 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6528 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6529 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6530 (dwarf_expr_context::get_addr_index): Likewise
6531 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6532 (symbol_needs_eval_context::get_addr_index): Likewise
6533 (disassemble_dwarf_expression): Add DW_OP_addrx
6534 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6535 (read_cutu_die_from_dwo): Update comment
6536 (skip_one_die): Add DW_FORM_addrx
6537 (read_attribute_value): Likewise
6538 (var_decode_location): Add DW_OP_addrx
6539 (dwarf2_const_value_attr): Add DW_FORM_addrx
6540 (dump_die_shallow): Likewise
6541 (dwarf2_fetch_constant_bytes): Likewise
6542 (decode_locdesc): Add DW_OP_addrx
6543 (skip_form_bytes): Add DW_FORM_addrx
6544
65452019-04-22 Ali Tamur <tamur@google.com>
6546
6547 * MAINTAINERS (Write After Approval): Add self.
6548
65492019-04-22 Simon Marchi <simon.marchi@efficios.com>
6550
6551 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6552 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6553 (open_symbol_file_object): Likewise.
6554 (svr4_default_sos): Add info parameter.
6555 (svr4_read_so_list): Likewise.
6556 (svr4_current_sos_direct): Adjust functions calls to pass down
6557 info.
6558 (svr4_current_sos_1): Add info parameter.
6559 (svr4_current_sos): Call get_svr4_info, pass info down to
6560 svr4_current_sos_1.
6561 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6562 get_svr4_info.
6563 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6564 get_svr4_info.
6565 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6566 to get_svr4_info.
6567 (probes_table_remove_objfile_probes): Likewise.
6568 (register_solib_event_probe): Add info parameter.
6569 (solist_update_incremental): Pass info parameter down to
6570 svr4_read_so_list.
6571 (disable_probes_interface): Add info parameter.
6572 (svr4_handle_solib_event): Pass current_program_space to
6573 get_svr4_info. Adjust disable_probes_interface cleanup.
6574 (svr4_create_probe_breakpoints): Add info parameter, pass it
6575 down to register_solib_event_probe.
6576 (svr4_create_solib_event_breakpoints): Add info parameter,
6577 pass it down to svr4_create_probe_breakpoints.
6578 (enable_break): Pass info down to
6579 svr4_create_solib_event_breakpoints.
6580 (svr4_solib_create_inferior_hook): Pass current_program_space to
6581 get_svr4_info.
6582 (svr4_clear_solib): Likewise.
6583
65842019-04-22 Pedro Alves <palves@redhat.com>
6585
6586 * solib-svr4.c (svr4_free_objfile_observer): New.
6587 (probe_and_action::objfile): New field.
6588 (probes_table_htab_remove_objfile_probes)
6589 (probes_table_remove_objfile_probes): New functions.
6590 (register_solib_event_probe): Add 'objfile' parameter. Store it
6591 in the new probe_and_action. Don't store the probe in 'lookup'.
6592 (svr4_create_probe_breakpoints): Pass objfile to
6593 register_solib_event_probe.
6594 (_initialize_svr4_solib): Register a free_objfile observer.
6595
65962019-04-19 Tom Tromey <tom@tromey.com>
6597
6598 * common/queue.h: Remove.
6599
66002019-04-19 Tom Tromey <tom@tromey.com>
6601
6602 * event-loop.c: Don't include "common/queue.h".
6603
66042019-04-19 Tom Tromey <tom@tromey.com>
6605
6606 * remote.c (remote_target): Use delete.
6607 * remote-notif.h: Include <list>, not "common/queue.h".
6608 (notif_client_p): Remove typedef.
6609 (remote_notif_state): Add constructor, destructor, initializer.
6610 <notif_queue>: Now a std::list.
6611 (remote_notif_state_xfree): Don't declare.
6612 * remote-notif.c (remote_notif_process, handle_notification)
6613 (remote_notif_state_allocate): Update.
6614 (~remote_notif_state): Rename from remote_notif_state_xfree.
6615
66162019-04-19 Tom Tromey <tom@tromey.com>
6617
6618 * symfile.c (reread_symbols): Update.
6619 * objfiles.c (objfile_register_static_link)
6620 (objfile_lookup_static_link): Update
6621 (~objfile) Don't delete static_links.
6622 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6623
66242019-04-19 Tom Tromey <tom@tromey.com>
6625
6626 * type-stack.h (struct type_stack) <insert>: Constify string.
6627 * type-stack.c (type_stack::insert): Constify string.
6628 * gdbtypes.h (lookup_template_type): Update.
6629 (address_space_name_to_int): Update.
6630 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6631 const.
6632 (lookup_template_type): Make name const.
6633 * c-exp.y: Update rules.
6634 (lex_one_token, classify_name, classify_inner_name)
6635 (c_print_token): Update.
6636 * p-exp.y: Update rules.
6637 (yylex): Update.
6638 * f-exp.y: Update rules.
6639 (yylex): Update.
6640 * d-exp.y: Update rules.
6641 (lex_one_token, classify_name, classify_inner_name): Update.
6642 * parse.c (write_dollar_variable, copy_name): Return std::string.
6643 * parser-defs.h (copy_name): Change return type.
6644 * m2-exp.y: Update rules.
6645 (yylex): Update.
6646 * go-exp.y (lex_one_token): Update.
6647 Update rules.
6648 (classify_unsafe_function, classify_packaged_name)
6649 (classify_name, yylex): Update.
6650
66512019-04-19 Sergei Trofimovich <siarheit@google.com>
6652
6653 * configure.ac: add --enable-source-highlight switch.
6654 * configure: Regenerate.
6655 * top.c (print_gdb_version): plumb --enable-source-highlight
6656 status to "show configuration".
6657
66582019-04-19 Tom Tromey <tromey@adacore.com>
6659
6660 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6661 Check ADA_TYPE_P.
6662 (empty_record, ada_template_to_fixed_record_type_1)
6663 (template_to_static_fixed_type)
6664 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6665 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6666 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6667 macros.
6668
66692019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6670
6671 PR symtab/24423:
6672 * source.c (print_source_lines_base): Advance "iter" when a
6673 control character is seen.
6674
66752019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6676
6677 * inferior.h (struct infcall_suspend_state_deleter):
6678 Catch exception in destructor to avoid crash.
6679
66802019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6681
6682 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6683 close to the add_com "shell".
6684
66852019-04-18 Tom Tromey <tromey@adacore.com>
6686
6687 * process-stratum-target.h (class process_stratum_target)
6688 <stratum>: Add "final".
6689
66902019-04-17 Tom Tromey <tromey@adacore.com>
6691
6692 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6693 against nullptr before use.
6694
66952019-04-17 Alan Hayward <alan.hayward@arm.com>
6696
6697 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6698
66992019-04-17 Jim Wilson <jimw@sifive.com>
6700 Andrew Burgess <andrew.burgess@embecosm.com>
6701
6702 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6703 code read might fail, assume 4-byte breakpoint in that case.
6704
67052019-04-15 Leszek Swirski <leszeks@google.com>
6706
6707 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6708 rather than a hand-rolled POD check when checking for forced MEMORY
6709 classification.
6710
67112019-04-15 Alan Hayward <alan.hayward@arm.com>
6712
6713 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6714 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6715 function.
6716 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6717 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6718 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6719 declaration.
6720
67212019-04-15 Alan Hayward <alan.hayward@arm.com>
6722
6723 * aarch64-linux-nat.c
6724 (aarch64_linux_nat_target::thread_architecture): Add override.
6725 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6726 each VQ.
6727
67282019-04-15 Alan Hayward <alan.hayward@arm.com>
6729
6730 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6731
67322019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6733
6734 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6735 target types of size 96-bits, add some additional comments, and
6736 check that the builtin type we found was the correct size.
6737
67382019-04-12 Eli Zaretskii <eliz@gnu.org>
6739
6740 * utils.c (prompt_for_continue): Don't restore the styling at the
6741 end, as applied_style has the wrong value. This fixes styling in
6742 long lists of file names that are interrupted by the "Continue?"
6743 prompt.
6744
67452019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6746
6747 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6748 * c-lang.c (c_language_defn): Likewise.
6749 (cplus_language_defn): Likewise.
6750 (asm_language_defn): Likewise.
6751 (minimal_language_defn): Likewise.
6752 * d-lang.c (d_language_defn): Likewise.
6753 * f-lang.c (f_language_defn): Likewise.
6754 * go-lang.c (go_language_defn): Likewise.
6755 * language.c (unknown_language_defn): Likewise.
6756 (auto_language_defn): Likewise.
6757 * language.h (struct language_defn): Remove la_magic field.
6758 (LANG_MAGIC): Delete.
6759 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6760 * objc-lang.c (objc_language_defn): Likewise.
6761 * opencl-lang.c (opencl_language_defn): Likewise.
6762 * p-lang.c (pascal_language_defn): Likewise.
6763 * rust-lang.c (rust_language_defn): Likewise.
6764
67652019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6766
6767 * riscv-tdep.c (riscv_type_align): New function.
6768 (riscv_type_alignment): Delete.
6769 (riscv_arg_location): Use 'type_align'.
6770 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6771
67722019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * gdbtypes.c (type_align): A struct with no non-static fields also
6775 has alignment of 1.
6776
67772019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6778
6779 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6780 component to 0.
6781 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6782 member.
6783 (riscv_struct_info::analyse): New implementation using new
6784 analyse_inner member function.
6785 (riscv_struct_info::field_offset): New member function.
6786 (riscv_struct_info::m_offsets): New member variable.
6787 (riscv_struct_info::analyse_inner): New private member function,
6788 takes the old implementation of riscv_struct_info::analyse but
6789 extended to track field offsets.
6790 (riscv_call_arg_struct): Update the struct folding special cases
6791 to handle cases where empty C++ structs, which are non-zero
6792 length, are found.
6793 (riscv_arg_location): Initialise the length of each location, a
6794 non-zero length now indicates the location is in use.
6795 (riscv_push_dummy_call): Allow for the first location having a
6796 non-zero offset when setting up arguments.
6797 (riscv_return_value): Likewise, but for return values.
6798
67992019-04-11 Tom Tromey <tromey@adacore.com>
6800
6801 * utils.c (internal_vproblem): Make "msg" const.
6802
68032019-04-11 Alan Hayward <alan.hayward@arm.com>
6804
6805 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6806 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6807 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6808 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6809
68102019-04-10 Kevin Buettner <kevinb@redhat.com>
6811
6812 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6813 function.
6814 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6815 of amd64_collect_native_gregset.
6816 (amd64_linux_nat_target::store_registers): Likewise.
6817
68182019-04-10 Tom Tromey <tom@tromey.com>
6819
6820 * symtab.c (lookup_global_symbol_from_objfile)
6821 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6822 * objfiles.h (class separate_debug_iterator): New.
6823 (class separate_debug_range): New.
6824 (struct objfile) <separate_debug_objfiles>: New method.
6825 (objfile_separate_debug_iterate): Don't declare.
6826 * objfiles.c (separate_debug_iterator::operator++): Rename from
6827 objfile_separate_debug_iterate.
6828 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6829 iterator.
6830 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6831 iterator.
6832
68332019-04-10 Tom Tromey <tom@tromey.com>
6834
6835 * symfile.c (reread_symbols): Remove old comment.
6836 * objfiles.c (free_all_objfiles): Fix a typo.
6837
68382019-04-10 Tom Tromey <tom@tromey.com>
6839
6840 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6841 * minsyms.c (lookup_minimal_symbol): Use foreach.
6842 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6843 (lookup_minimal_symbol_solib_trampoline): Likewise.
6844 * symfile.c (reread_symbols): Use foreach.
6845
68462019-04-09 Ivan Begert <ivanbegert@gmail.com>
6847 Tom Tromey <tromey@adacore.com>
6848
6849 PR rust/24414:
6850 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6851 (rust_lex_int_test): Change "value" to be LONGEST.
6852 (rust_lex_tests): Add test for long integer literal.
6853
68542019-04-09 Tom Tromey <tromey@adacore.com>
6855
6856 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6857 to bool.
6858 (extended_remote_target::attach): Update.
6859 (remote_target::remote_notice_new_inferior): Update.
6860 (remote_target::add_current_inferior_and_thread): Update.
6861 * inferior.c (exit_inferior_1): Use "false".
6862 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6863
68642019-04-09 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
6867 the "start" command.
6868
68692019-04-08 Kevin Buettner <kevinb@redhat.com>
6870
6871 * python/py-inferior.c (infpy_thread_from_thread_handle):
6872 Adjust comments to reflect renaming of thread_from_thread_handle
6873 to thread_from_handle. Adjust keywords. Fix type error message.
6874 (inferior_object_methods): Add thread_from_handle. Retain
6875 thread_from_thread_handle, but mark it as deprecated.
6876
68772019-04-08 Kevin Buettner <kevinb@redhat.com>
6878
6879 * gdbthread.h (find_thread_by_handle): Revise declaration.
6880 * thread.c (find_thread_by_handle): Likewise. Adjust
6881 implementation too.
6882 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6883 support for buffer objects as handles.
6884
68852019-04-08 Kevin Buettner <kevinb@redhat.com>
6886
6887 * python/py-infthread.c (thpy_thread_handle): New function.
6888 (thread_object_methods): Register thpy_thread_handle.
6889
68902019-04-08 Kevin Buettner <kevinb@redhat.com>
6891
6892 * gdbthread.h (thread_to_thread_handle): Declare.
6893 * thread.c (gdbtypes.h): Include.
6894 (thread_to_thread_handle): New function.
6895
6896 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6897 (target_thread_info_to_thread_handle): Declare.
6898 * target.c (target_thread_info_to_thread_handle): New function.
6899 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6900 * target-delegates.c: Regenerate.
6901
6902 * linux-thread-db.c (class thread_db_target): Add method
6903 thread_info_to_thread_handle.
6904 (thread_db_target::thread_info_to_thread_handle): Define.
6905 * remote.c (class remote_target): Add new method
6906 thread_info_to_thread_handle.
6907 (remote_target::thread_info_to_thread_handle): Define.
6908
69092019-04-08 Pedro Alves <palves@redhat.com>
6910
6911 * common/common-exceptions.c (throw_exception): Don't create
6912 named object to throw; throw directly.
6913 (throw_it): Likewise. Don't initialize gdb_exception::message
6914 here, with new; pass FMT and AP to the ctor instead.
6915 * common/common-exceptions.h: Include <string>.
6916 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6917 const char *, va_list)): New ctor. Use std::make_shared.
6918 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6919 errors)): Delete.
6920 (gdb_exception_error::gdb_exception_error(enum errors, const char
6921 *, va_list)): New.
6922 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6923 Add assertion.
6924 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6925 errors)): Delete.
6926 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6927 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6928 Add assertion.
6929
69302019-04-08 Tom Tromey <tom@tromey.com>
6931
6932 * valops.c (value_rtti_indirect_type): Replace throw_exception
6933 with throw.
6934 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6935 with throw.
6936 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6937 throw.
6938 * target.c (target_translate_tls_address): Replace throw_exception
6939 with throw.
6940 * stack.c (frame_apply_command_count): Replace throw_exception
6941 with throw.
6942 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6943 throw.
6944 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6945 with throw.
6946 * rs6000-tdep.c (rs6000_frame_cache)
6947 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6948 * remote.c: Replace throw_exception with throw.
6949 * record-full.c (record_full_message, record_full_wait_1)
6950 (record_full_restore): Replace throw_exception with throw.
6951 * record-btrace.c:
6952 (get_thread_current_frame_id, record_btrace_start_replaying)
6953 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6954 (cmd_record_btrace_start): Replace throw_exception with throw.
6955 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6956 throw.
6957 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6958 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6959 * linespec.c:
6960 (find_linespec_symbols): Replace throw_exception with throw.
6961 * infrun.c (displaced_step_prepare, resume): Replace
6962 throw_exception with throw.
6963 * infcmd.c (post_create_inferior): Replace throw_exception with
6964 throw.
6965 * inf-loop.c (inferior_event_handler): Replace throw_exception
6966 with throw.
6967 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6968 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6969 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6970 (get_prev_frame_always, get_frame_pc_if_available)
6971 (get_frame_address_in_block_if_available, get_frame_language):
6972 Replace throw_exception with throw.
6973 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6974 throw_exception with throw.
6975 * eval.c (fetch_subexp_value, evaluate_var_value)
6976 (evaluate_funcall, evaluate_subexp_standard): Replace
6977 throw_exception with throw.
6978 * dwarf2loc.c (call_site_find_chain)
6979 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6980 Replace throw_exception with throw.
6981 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6982 with throw.
6983 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6984 throw.
6985 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6986 * completer.c (complete_line_internal): Replace throw_exception
6987 with throw.
6988 * compile/compile-object-run.c (compile_object_run): Replace
6989 throw_exception with throw.
6990 * cli/cli-script.c (process_next_line): Replace throw_exception
6991 with throw.
6992 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6993 (btrace_enable, btrace_maint_update_pt_packets): Replace
6994 throw_exception with throw.
6995 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6996 throw_exception with throw.
6997 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6998 throw_exception with throw.
6999 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7000 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
7001 * aarch64-tdep.c (aarch64_make_prologue_cache)
7002 (aarch64_make_stub_cache): Replace throw_exception with throw.
7003
70042019-04-08 Tom Tromey <tom@tromey.com>
7005
7006 * common/common-exceptions.c (throw_exception): Rename from
7007 throw_exception_cxx. Remove old copy. Make argument const.
7008 (throw_it): Create and throw exception objects directly.
7009 * common/common-exceptions.h (throw_exception): Make argument
7010 const.
7011 (struct gdb_exception_error): Add constructor.
7012 (struct gdb_exception_quit): Add constructor.
7013
70142019-04-08 Tom Tromey <tom@tromey.com>
7015
7016 * common/common-exceptions.h (exception_rethrow): Don't declare.
7017 (TRY_SJLJ): Update comment.
7018 (TRY, CATCH, END_CATCH): Remove.
7019 * common/common-exceptions.c (exception_rethrow): Remove.
7020
70212019-04-08 Tom Tromey <tom@tromey.com>
7022
7023 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
7024 Remove.
7025 (gdb_exception_error): Rename from
7026 gdb_exception_RETURN_MASK_ERROR.
7027 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
7028 (gdb_quit_bad_alloc): Update.
7029 * aarch64-tdep.c: Update.
7030 * ada-lang.c: Update.
7031 * ada-typeprint.c: Update.
7032 * ada-valprint.c: Update.
7033 * amd64-tdep.c: Update.
7034 * arch-utils.c: Update.
7035 * break-catch-throw.c: Update.
7036 * breakpoint.c: Update.
7037 * btrace.c: Update.
7038 * c-varobj.c: Update.
7039 * cli/cli-cmds.c: Update.
7040 * cli/cli-interp.c: Update.
7041 * cli/cli-script.c: Update.
7042 * common/common-exceptions.c: Update.
7043 * common/new-op.c: Update.
7044 * common/selftest.c: Update.
7045 * compile/compile-c-symbols.c: Update.
7046 * compile/compile-cplus-symbols.c: Update.
7047 * compile/compile-object-load.c: Update.
7048 * compile/compile-object-run.c: Update.
7049 * completer.c: Update.
7050 * corelow.c: Update.
7051 * cp-abi.c: Update.
7052 * cp-support.c: Update.
7053 * cp-valprint.c: Update.
7054 * darwin-nat.c: Update.
7055 * disasm-selftests.c: Update.
7056 * dtrace-probe.c: Update.
7057 * dwarf-index-cache.c: Update.
7058 * dwarf-index-write.c: Update.
7059 * dwarf2-frame-tailcall.c: Update.
7060 * dwarf2-frame.c: Update.
7061 * dwarf2loc.c: Update.
7062 * dwarf2read.c: Update.
7063 * eval.c: Update.
7064 * event-loop.c: Update.
7065 * event-top.c: Update.
7066 * exec.c: Update.
7067 * f-valprint.c: Update.
7068 * fbsd-tdep.c: Update.
7069 * frame-unwind.c: Update.
7070 * frame.c: Update.
7071 * gdbtypes.c: Update.
7072 * gnu-v3-abi.c: Update.
7073 * guile/guile-internal.h: Update.
7074 * guile/scm-block.c: Update.
7075 * guile/scm-breakpoint.c: Update.
7076 * guile/scm-cmd.c: Update.
7077 * guile/scm-disasm.c: Update.
7078 * guile/scm-frame.c: Update.
7079 * guile/scm-lazy-string.c: Update.
7080 * guile/scm-math.c: Update.
7081 * guile/scm-param.c: Update.
7082 * guile/scm-ports.c: Update.
7083 * guile/scm-pretty-print.c: Update.
7084 * guile/scm-symbol.c: Update.
7085 * guile/scm-symtab.c: Update.
7086 * guile/scm-type.c: Update.
7087 * guile/scm-value.c: Update.
7088 * i386-linux-tdep.c: Update.
7089 * i386-tdep.c: Update.
7090 * inf-loop.c: Update.
7091 * infcall.c: Update.
7092 * infcmd.c: Update.
7093 * infrun.c: Update.
7094 * jit.c: Update.
7095 * language.c: Update.
7096 * linespec.c: Update.
7097 * linux-fork.c: Update.
7098 * linux-nat.c: Update.
7099 * linux-tdep.c: Update.
7100 * linux-thread-db.c: Update.
7101 * main.c: Update.
7102 * mi/mi-cmd-break.c: Update.
7103 * mi/mi-cmd-stack.c: Update.
7104 * mi/mi-interp.c: Update.
7105 * mi/mi-main.c: Update.
7106 * objc-lang.c: Update.
7107 * p-valprint.c: Update.
7108 * parse.c: Update.
7109 * ppc-linux-tdep.c: Update.
7110 * printcmd.c: Update.
7111 * python/py-arch.c: Update.
7112 * python/py-breakpoint.c: Update.
7113 * python/py-cmd.c: Update.
7114 * python/py-finishbreakpoint.c: Update.
7115 * python/py-frame.c: Update.
7116 * python/py-framefilter.c: Update.
7117 * python/py-gdb-readline.c: Update.
7118 * python/py-inferior.c: Update.
7119 * python/py-infthread.c: Update.
7120 * python/py-lazy-string.c: Update.
7121 * python/py-linetable.c: Update.
7122 * python/py-objfile.c: Update.
7123 * python/py-param.c: Update.
7124 * python/py-prettyprint.c: Update.
7125 * python/py-progspace.c: Update.
7126 * python/py-record-btrace.c: Update.
7127 * python/py-record.c: Update.
7128 * python/py-symbol.c: Update.
7129 * python/py-type.c: Update.
7130 * python/py-unwind.c: Update.
7131 * python/py-utils.c: Update.
7132 * python/py-value.c: Update.
7133 * python/python.c: Update.
7134 * record-btrace.c: Update.
7135 * record-full.c: Update.
7136 * remote-fileio.c: Update.
7137 * remote.c: Update.
7138 * riscv-tdep.c: Update.
7139 * rs6000-aix-tdep.c: Update.
7140 * rs6000-tdep.c: Update.
7141 * rust-exp.y: Update.
7142 * rust-lang.c: Update.
7143 * s390-tdep.c: Update.
7144 * selftest-arch.c: Update.
7145 * solib-dsbt.c: Update.
7146 * solib-frv.c: Update.
7147 * solib-spu.c: Update.
7148 * solib-svr4.c: Update.
7149 * solib.c: Update.
7150 * sparc64-linux-tdep.c: Update.
7151 * stack.c: Update.
7152 * symfile-mem.c: Update.
7153 * symmisc.c: Update.
7154 * target.c: Update.
7155 * thread.c: Update.
7156 * top.c: Update.
7157 * tracefile-tfile.c: Update.
7158 * tui/tui.c: Update.
7159 * typeprint.c: Update.
7160 * unittests/cli-utils-selftests.c: Update.
7161 * unittests/parse-connection-spec-selftests.c: Update.
7162 * valops.c: Update.
7163 * valprint.c: Update.
7164 * value.c: Update.
7165 * varobj.c: Update.
7166 * windows-nat.c: Update.
7167 * x86-linux-nat.c: Update.
7168 * xml-support.c: Update.
7169
71702019-04-08 Tom Tromey <tom@tromey.com>
7171
7172 * xml-support.c: Use C++ exception handling.
7173 * x86-linux-nat.c: Use C++ exception handling.
7174 * windows-nat.c: Use C++ exception handling.
7175 * varobj.c: Use C++ exception handling.
7176 * value.c: Use C++ exception handling.
7177 * valprint.c: Use C++ exception handling.
7178 * valops.c: Use C++ exception handling.
7179 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7180 handling.
7181 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7182 * typeprint.c: Use C++ exception handling.
7183 * tui/tui.c: Use C++ exception handling.
7184 * tracefile-tfile.c: Use C++ exception handling.
7185 * top.c: Use C++ exception handling.
7186 * thread.c: Use C++ exception handling.
7187 * target.c: Use C++ exception handling.
7188 * symmisc.c: Use C++ exception handling.
7189 * symfile-mem.c: Use C++ exception handling.
7190 * stack.c: Use C++ exception handling.
7191 * sparc64-linux-tdep.c: Use C++ exception handling.
7192 * solib.c: Use C++ exception handling.
7193 * solib-svr4.c: Use C++ exception handling.
7194 * solib-spu.c: Use C++ exception handling.
7195 * solib-frv.c: Use C++ exception handling.
7196 * solib-dsbt.c: Use C++ exception handling.
7197 * selftest-arch.c: Use C++ exception handling.
7198 * s390-tdep.c: Use C++ exception handling.
7199 * rust-lang.c: Use C++ exception handling.
7200 * rust-exp.y: Use C++ exception handling.
7201 * rs6000-tdep.c: Use C++ exception handling.
7202 * rs6000-aix-tdep.c: Use C++ exception handling.
7203 * riscv-tdep.c: Use C++ exception handling.
7204 * remote.c: Use C++ exception handling.
7205 * remote-fileio.c: Use C++ exception handling.
7206 * record-full.c: Use C++ exception handling.
7207 * record-btrace.c: Use C++ exception handling.
7208 * python/python.c: Use C++ exception handling.
7209 * python/py-value.c: Use C++ exception handling.
7210 * python/py-utils.c: Use C++ exception handling.
7211 * python/py-unwind.c: Use C++ exception handling.
7212 * python/py-type.c: Use C++ exception handling.
7213 * python/py-symbol.c: Use C++ exception handling.
7214 * python/py-record.c: Use C++ exception handling.
7215 * python/py-record-btrace.c: Use C++ exception handling.
7216 * python/py-progspace.c: Use C++ exception handling.
7217 * python/py-prettyprint.c: Use C++ exception handling.
7218 * python/py-param.c: Use C++ exception handling.
7219 * python/py-objfile.c: Use C++ exception handling.
7220 * python/py-linetable.c: Use C++ exception handling.
7221 * python/py-lazy-string.c: Use C++ exception handling.
7222 * python/py-infthread.c: Use C++ exception handling.
7223 * python/py-inferior.c: Use C++ exception handling.
7224 * python/py-gdb-readline.c: Use C++ exception handling.
7225 * python/py-framefilter.c: Use C++ exception handling.
7226 * python/py-frame.c: Use C++ exception handling.
7227 * python/py-finishbreakpoint.c: Use C++ exception handling.
7228 * python/py-cmd.c: Use C++ exception handling.
7229 * python/py-breakpoint.c: Use C++ exception handling.
7230 * python/py-arch.c: Use C++ exception handling.
7231 * printcmd.c: Use C++ exception handling.
7232 * ppc-linux-tdep.c: Use C++ exception handling.
7233 * parse.c: Use C++ exception handling.
7234 * p-valprint.c: Use C++ exception handling.
7235 * objc-lang.c: Use C++ exception handling.
7236 * mi/mi-main.c: Use C++ exception handling.
7237 * mi/mi-interp.c: Use C++ exception handling.
7238 * mi/mi-cmd-stack.c: Use C++ exception handling.
7239 * mi/mi-cmd-break.c: Use C++ exception handling.
7240 * main.c: Use C++ exception handling.
7241 * linux-thread-db.c: Use C++ exception handling.
7242 * linux-tdep.c: Use C++ exception handling.
7243 * linux-nat.c: Use C++ exception handling.
7244 * linux-fork.c: Use C++ exception handling.
7245 * linespec.c: Use C++ exception handling.
7246 * language.c: Use C++ exception handling.
7247 * jit.c: Use C++ exception handling.
7248 * infrun.c: Use C++ exception handling.
7249 * infcmd.c: Use C++ exception handling.
7250 * infcall.c: Use C++ exception handling.
7251 * inf-loop.c: Use C++ exception handling.
7252 * i386-tdep.c: Use C++ exception handling.
7253 * i386-linux-tdep.c: Use C++ exception handling.
7254 * guile/scm-value.c: Use C++ exception handling.
7255 * guile/scm-type.c: Use C++ exception handling.
7256 * guile/scm-symtab.c: Use C++ exception handling.
7257 * guile/scm-symbol.c: Use C++ exception handling.
7258 * guile/scm-pretty-print.c: Use C++ exception handling.
7259 * guile/scm-ports.c: Use C++ exception handling.
7260 * guile/scm-param.c: Use C++ exception handling.
7261 * guile/scm-math.c: Use C++ exception handling.
7262 * guile/scm-lazy-string.c: Use C++ exception handling.
7263 * guile/scm-frame.c: Use C++ exception handling.
7264 * guile/scm-disasm.c: Use C++ exception handling.
7265 * guile/scm-cmd.c: Use C++ exception handling.
7266 * guile/scm-breakpoint.c: Use C++ exception handling.
7267 * guile/scm-block.c: Use C++ exception handling.
7268 * guile/guile-internal.h: Use C++ exception handling.
7269 * gnu-v3-abi.c: Use C++ exception handling.
7270 * gdbtypes.c: Use C++ exception handling.
7271 * frame.c: Use C++ exception handling.
7272 * frame-unwind.c: Use C++ exception handling.
7273 * fbsd-tdep.c: Use C++ exception handling.
7274 * f-valprint.c: Use C++ exception handling.
7275 * exec.c: Use C++ exception handling.
7276 * event-top.c: Use C++ exception handling.
7277 * event-loop.c: Use C++ exception handling.
7278 * eval.c: Use C++ exception handling.
7279 * dwarf2read.c: Use C++ exception handling.
7280 * dwarf2loc.c: Use C++ exception handling.
7281 * dwarf2-frame.c: Use C++ exception handling.
7282 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7283 * dwarf-index-write.c: Use C++ exception handling.
7284 * dwarf-index-cache.c: Use C++ exception handling.
7285 * dtrace-probe.c: Use C++ exception handling.
7286 * disasm-selftests.c: Use C++ exception handling.
7287 * darwin-nat.c: Use C++ exception handling.
7288 * cp-valprint.c: Use C++ exception handling.
7289 * cp-support.c: Use C++ exception handling.
7290 * cp-abi.c: Use C++ exception handling.
7291 * corelow.c: Use C++ exception handling.
7292 * completer.c: Use C++ exception handling.
7293 * compile/compile-object-run.c: Use C++ exception handling.
7294 * compile/compile-object-load.c: Use C++ exception handling.
7295 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7296 * compile/compile-c-symbols.c: Use C++ exception handling.
7297 * common/selftest.c: Use C++ exception handling.
7298 * common/new-op.c: Use C++ exception handling.
7299 * cli/cli-script.c: Use C++ exception handling.
7300 * cli/cli-interp.c: Use C++ exception handling.
7301 * cli/cli-cmds.c: Use C++ exception handling.
7302 * c-varobj.c: Use C++ exception handling.
7303 * btrace.c: Use C++ exception handling.
7304 * breakpoint.c: Use C++ exception handling.
7305 * break-catch-throw.c: Use C++ exception handling.
7306 * arch-utils.c: Use C++ exception handling.
7307 * amd64-tdep.c: Use C++ exception handling.
7308 * ada-valprint.c: Use C++ exception handling.
7309 * ada-typeprint.c: Use C++ exception handling.
7310 * ada-lang.c: Use C++ exception handling.
7311 * aarch64-tdep.c: Use C++ exception handling.
7312
73132019-04-08 Tom Tromey <tom@tromey.com>
7314
7315 * xml-support.c (gdb_xml_parser::parse): Update.
7316 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7317 * value.c (show_convenience): Update.
7318 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7319 (test_parse_flags_qcs): Update.
7320 * thread.c (thr_try_catch_cmd): Update.
7321 * target.c (target_translate_tls_address): Update.
7322 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7323 (info_frame_command_core, frame_apply_command_count): Update.
7324 * rust-exp.y (rust_lex_exception_test): Update.
7325 * riscv-tdep.c (riscv_print_one_register_info): Update.
7326 * remote.c (remote_target::enable_btrace): Update.
7327 * record-btrace.c (record_btrace_enable_warn): Update.
7328 * python/py-utils.c (gdbpy_convert_exception): Update.
7329 * printcmd.c (do_one_display, print_variable_and_value): Update.
7330 * mi/mi-main.c (mi_print_exception): Update.
7331 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7332 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7333 * linux-nat.c (linux_nat_target::attach): Update.
7334 * linux-fork.c (class scoped_switch_fork_info): Update.
7335 * infrun.c (displaced_step_prepare): Update.
7336 * infcall.c (call_function_by_hand_dummy): Update.
7337 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7338 * gnu-v3-abi.c (print_one_vtable): Update.
7339 * frame.c (get_prev_frame_always): Update.
7340 * f-valprint.c (info_common_command_for_block): Update.
7341 * exec.c (try_open_exec_file): Update.
7342 * exceptions.c (print_exception, exception_print)
7343 (exception_fprintf, exception_print_same): Update.
7344 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7345 * dwarf-index-cache.c (index_cache::store)
7346 (index_cache::lookup_gdb_index): Update.
7347 * darwin-nat.c (maybe_cache_shell): Update.
7348 * cp-valprint.c (cp_print_value_fields): Update.
7349 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7350 (gcc_cplus_symbol_address): Update.
7351 * compile/compile-c-symbols.c (gcc_convert_symbol)
7352 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7353 * common/selftest.c: Update.
7354 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7355 a std::string.
7356 (exception_try_scope_entry, exception_try_scope_exit): Don't
7357 declare.
7358 (struct exception_try_scope): Remove.
7359 (TRY): Don't use exception_try_scope.
7360 (struct gdb_exception): Add constructor, operator=.
7361 <what>: New method.
7362 (struct gdb_exception_RETURN_MASK_ALL)
7363 (struct gdb_exception_RETURN_MASK_ERROR)
7364 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7365 (struct gdb_quit_bad_alloc): Update.
7366 * common/common-exceptions.c (exception_none): Change
7367 initializer.
7368 (struct catcher) <state, exception>: Initialize inline.
7369 <prev>: Remove member.
7370 (current_catcher): Remove.
7371 (catchers): New global.
7372 (exceptions_state_mc_init): Simplify.
7373 (catcher_pop): Remove.
7374 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7375 (try_scope_depth, exception_try_scope_entry)
7376 (exception_try_scope_exit): Remove.
7377 (throw_exception_sjlj): Update.
7378 (exception_messages, exception_messages_size): Remove.
7379 (throw_it): Simplify.
7380 (gdb_exception_sliced_copy): Remove.
7381 (throw_exception_cxx): Update.
7382 * cli/cli-script.c (script_from_file): Update.
7383 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7384 Update.
7385 * ada-valprint.c (ada_val_print): Update.
7386 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7387 (create_excep_cond_exprs): Update.
7388
73892019-04-08 Tom Tromey <tom@tromey.com>
7390
7391 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7392 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7393 (TRY, CATCH, END_CATCH): Remove some definitions.
7394 * common/common-exceptions.c: Don't use GDB_XCPT.
7395 (catcher_list_size): Remove.
7396 (throw_exception, throw_it): Simplify.
7397
73982019-04-05 Tom Tromey <tom@tromey.com>
7399
7400 Revert the header-sorting patch.
7401 * ft32-tdep.c: Revert.
7402 * frv-tdep.c: Revert.
7403 * frv-linux-tdep.c: Revert.
7404 * frame.c: Revert.
7405 * frame-unwind.c: Revert.
7406 * frame-base.c: Revert.
7407 * fork-child.c: Revert.
7408 * findvar.c: Revert.
7409 * findcmd.c: Revert.
7410 * filesystem.c: Revert.
7411 * filename-seen-cache.h: Revert.
7412 * filename-seen-cache.c: Revert.
7413 * fbsd-tdep.c: Revert.
7414 * fbsd-nat.h: Revert.
7415 * fbsd-nat.c: Revert.
7416 * f-valprint.c: Revert.
7417 * f-typeprint.c: Revert.
7418 * f-lang.c: Revert.
7419 * extension.h: Revert.
7420 * extension.c: Revert.
7421 * extension-priv.h: Revert.
7422 * expprint.c: Revert.
7423 * exec.h: Revert.
7424 * exec.c: Revert.
7425 * exceptions.c: Revert.
7426 * event-top.c: Revert.
7427 * event-loop.c: Revert.
7428 * eval.c: Revert.
7429 * elfread.c: Revert.
7430 * dwarf2read.h: Revert.
7431 * dwarf2read.c: Revert.
7432 * dwarf2loc.c: Revert.
7433 * dwarf2expr.h: Revert.
7434 * dwarf2expr.c: Revert.
7435 * dwarf2-frame.c: Revert.
7436 * dwarf2-frame-tailcall.c: Revert.
7437 * dwarf-index-write.h: Revert.
7438 * dwarf-index-write.c: Revert.
7439 * dwarf-index-common.c: Revert.
7440 * dwarf-index-cache.h: Revert.
7441 * dwarf-index-cache.c: Revert.
7442 * dummy-frame.c: Revert.
7443 * dtrace-probe.c: Revert.
7444 * disasm.h: Revert.
7445 * disasm.c: Revert.
7446 * disasm-selftests.c: Revert.
7447 * dictionary.c: Revert.
7448 * dicos-tdep.c: Revert.
7449 * demangle.c: Revert.
7450 * dcache.h: Revert.
7451 * dcache.c: Revert.
7452 * darwin-nat.h: Revert.
7453 * darwin-nat.c: Revert.
7454 * darwin-nat-info.c: Revert.
7455 * d-valprint.c: Revert.
7456 * d-namespace.c: Revert.
7457 * d-lang.c: Revert.
7458 * ctf.c: Revert.
7459 * csky-tdep.c: Revert.
7460 * csky-linux-tdep.c: Revert.
7461 * cris-tdep.c: Revert.
7462 * cris-linux-tdep.c: Revert.
7463 * cp-valprint.c: Revert.
7464 * cp-support.c: Revert.
7465 * cp-namespace.c: Revert.
7466 * cp-abi.c: Revert.
7467 * corelow.c: Revert.
7468 * corefile.c: Revert.
7469 * continuations.c: Revert.
7470 * completer.h: Revert.
7471 * completer.c: Revert.
7472 * complaints.c: Revert.
7473 * coffread.c: Revert.
7474 * coff-pe-read.c: Revert.
7475 * cli-out.h: Revert.
7476 * cli-out.c: Revert.
7477 * charset.c: Revert.
7478 * c-varobj.c: Revert.
7479 * c-valprint.c: Revert.
7480 * c-typeprint.c: Revert.
7481 * c-lang.c: Revert.
7482 * buildsym.c: Revert.
7483 * buildsym-legacy.c: Revert.
7484 * build-id.h: Revert.
7485 * build-id.c: Revert.
7486 * btrace.c: Revert.
7487 * bsd-uthread.c: Revert.
7488 * breakpoint.h: Revert.
7489 * breakpoint.c: Revert.
7490 * break-catch-throw.c: Revert.
7491 * break-catch-syscall.c: Revert.
7492 * break-catch-sig.c: Revert.
7493 * blockframe.c: Revert.
7494 * block.c: Revert.
7495 * bfin-tdep.c: Revert.
7496 * bfin-linux-tdep.c: Revert.
7497 * bfd-target.c: Revert.
7498 * bcache.c: Revert.
7499 * ax-general.c: Revert.
7500 * ax-gdb.h: Revert.
7501 * ax-gdb.c: Revert.
7502 * avr-tdep.c: Revert.
7503 * auxv.c: Revert.
7504 * auto-load.c: Revert.
7505 * arm-wince-tdep.c: Revert.
7506 * arm-tdep.c: Revert.
7507 * arm-symbian-tdep.c: Revert.
7508 * arm-pikeos-tdep.c: Revert.
7509 * arm-obsd-tdep.c: Revert.
7510 * arm-nbsd-tdep.c: Revert.
7511 * arm-nbsd-nat.c: Revert.
7512 * arm-linux-tdep.c: Revert.
7513 * arm-linux-nat.c: Revert.
7514 * arm-fbsd-tdep.c: Revert.
7515 * arm-fbsd-nat.c: Revert.
7516 * arm-bsd-tdep.c: Revert.
7517 * arch-utils.c: Revert.
7518 * arc-tdep.c: Revert.
7519 * arc-newlib-tdep.c: Revert.
7520 * annotate.h: Revert.
7521 * annotate.c: Revert.
7522 * amd64-windows-tdep.c: Revert.
7523 * amd64-windows-nat.c: Revert.
7524 * amd64-tdep.c: Revert.
7525 * amd64-sol2-tdep.c: Revert.
7526 * amd64-obsd-tdep.c: Revert.
7527 * amd64-obsd-nat.c: Revert.
7528 * amd64-nbsd-tdep.c: Revert.
7529 * amd64-nbsd-nat.c: Revert.
7530 * amd64-nat.c: Revert.
7531 * amd64-linux-tdep.c: Revert.
7532 * amd64-linux-nat.c: Revert.
7533 * amd64-fbsd-tdep.c: Revert.
7534 * amd64-fbsd-nat.c: Revert.
7535 * amd64-dicos-tdep.c: Revert.
7536 * amd64-darwin-tdep.c: Revert.
7537 * amd64-bsd-nat.c: Revert.
7538 * alpha-tdep.c: Revert.
7539 * alpha-obsd-tdep.c: Revert.
7540 * alpha-nbsd-tdep.c: Revert.
7541 * alpha-mdebug-tdep.c: Revert.
7542 * alpha-linux-tdep.c: Revert.
7543 * alpha-linux-nat.c: Revert.
7544 * alpha-bsd-tdep.c: Revert.
7545 * alpha-bsd-nat.c: Revert.
7546 * aix-thread.c: Revert.
7547 * agent.c: Revert.
7548 * addrmap.c: Revert.
7549 * ada-varobj.c: Revert.
7550 * ada-valprint.c: Revert.
7551 * ada-typeprint.c: Revert.
7552 * ada-tasks.c: Revert.
7553 * ada-lang.c: Revert.
7554 * aarch64-tdep.c: Revert.
7555 * aarch64-ravenscar-thread.c: Revert.
7556 * aarch64-newlib-tdep.c: Revert.
7557 * aarch64-linux-tdep.c: Revert.
7558 * aarch64-linux-nat.c: Revert.
7559 * aarch64-fbsd-tdep.c: Revert.
7560 * aarch64-fbsd-nat.c: Revert.
7561 * aarch32-linux-nat.c: Revert.
7562
75632019-04-05 Tom Tromey <tom@tromey.com>
7564
7565 * ft32-tdep.c: Sort headers.
7566 * frv-tdep.c: Sort headers.
7567 * frv-linux-tdep.c: Sort headers.
7568 * frame.c: Sort headers.
7569 * frame-unwind.c: Sort headers.
7570 * frame-base.c: Sort headers.
7571 * fork-child.c: Sort headers.
7572 * findvar.c: Sort headers.
7573 * findcmd.c: Sort headers.
7574 * filesystem.c: Sort headers.
7575 * filename-seen-cache.h: Sort headers.
7576 * filename-seen-cache.c: Sort headers.
7577 * fbsd-tdep.c: Sort headers.
7578 * fbsd-nat.h: Sort headers.
7579 * fbsd-nat.c: Sort headers.
7580 * f-valprint.c: Sort headers.
7581 * f-typeprint.c: Sort headers.
7582 * f-lang.c: Sort headers.
7583 * extension.h: Sort headers.
7584 * extension.c: Sort headers.
7585 * extension-priv.h: Sort headers.
7586 * expprint.c: Sort headers.
7587 * exec.h: Sort headers.
7588 * exec.c: Sort headers.
7589 * exceptions.c: Sort headers.
7590 * event-top.c: Sort headers.
7591 * event-loop.c: Sort headers.
7592 * eval.c: Sort headers.
7593 * elfread.c: Sort headers.
7594 * dwarf2read.h: Sort headers.
7595 * dwarf2read.c: Sort headers.
7596 * dwarf2loc.c: Sort headers.
7597 * dwarf2expr.h: Sort headers.
7598 * dwarf2expr.c: Sort headers.
7599 * dwarf2-frame.c: Sort headers.
7600 * dwarf2-frame-tailcall.c: Sort headers.
7601 * dwarf-index-write.h: Sort headers.
7602 * dwarf-index-write.c: Sort headers.
7603 * dwarf-index-common.c: Sort headers.
7604 * dwarf-index-cache.h: Sort headers.
7605 * dwarf-index-cache.c: Sort headers.
7606 * dummy-frame.c: Sort headers.
7607 * dtrace-probe.c: Sort headers.
7608 * disasm.h: Sort headers.
7609 * disasm.c: Sort headers.
7610 * disasm-selftests.c: Sort headers.
7611 * dictionary.c: Sort headers.
7612 * dicos-tdep.c: Sort headers.
7613 * demangle.c: Sort headers.
7614 * dcache.h: Sort headers.
7615 * dcache.c: Sort headers.
7616 * darwin-nat.h: Sort headers.
7617 * darwin-nat.c: Sort headers.
7618 * darwin-nat-info.c: Sort headers.
7619 * d-valprint.c: Sort headers.
7620 * d-namespace.c: Sort headers.
7621 * d-lang.c: Sort headers.
7622 * ctf.c: Sort headers.
7623 * csky-tdep.c: Sort headers.
7624 * csky-linux-tdep.c: Sort headers.
7625 * cris-tdep.c: Sort headers.
7626 * cris-linux-tdep.c: Sort headers.
7627 * cp-valprint.c: Sort headers.
7628 * cp-support.c: Sort headers.
7629 * cp-namespace.c: Sort headers.
7630 * cp-abi.c: Sort headers.
7631 * corelow.c: Sort headers.
7632 * corefile.c: Sort headers.
7633 * continuations.c: Sort headers.
7634 * completer.h: Sort headers.
7635 * completer.c: Sort headers.
7636 * complaints.c: Sort headers.
7637 * coffread.c: Sort headers.
7638 * coff-pe-read.c: Sort headers.
7639 * cli-out.h: Sort headers.
7640 * cli-out.c: Sort headers.
7641 * charset.c: Sort headers.
7642 * c-varobj.c: Sort headers.
7643 * c-valprint.c: Sort headers.
7644 * c-typeprint.c: Sort headers.
7645 * c-lang.c: Sort headers.
7646 * buildsym.c: Sort headers.
7647 * buildsym-legacy.c: Sort headers.
7648 * build-id.h: Sort headers.
7649 * build-id.c: Sort headers.
7650 * btrace.c: Sort headers.
7651 * bsd-uthread.c: Sort headers.
7652 * breakpoint.h: Sort headers.
7653 * breakpoint.c: Sort headers.
7654 * break-catch-throw.c: Sort headers.
7655 * break-catch-syscall.c: Sort headers.
7656 * break-catch-sig.c: Sort headers.
7657 * blockframe.c: Sort headers.
7658 * block.c: Sort headers.
7659 * bfin-tdep.c: Sort headers.
7660 * bfin-linux-tdep.c: Sort headers.
7661 * bfd-target.c: Sort headers.
7662 * bcache.c: Sort headers.
7663 * ax-general.c: Sort headers.
7664 * ax-gdb.h: Sort headers.
7665 * ax-gdb.c: Sort headers.
7666 * avr-tdep.c: Sort headers.
7667 * auxv.c: Sort headers.
7668 * auto-load.c: Sort headers.
7669 * arm-wince-tdep.c: Sort headers.
7670 * arm-tdep.c: Sort headers.
7671 * arm-symbian-tdep.c: Sort headers.
7672 * arm-pikeos-tdep.c: Sort headers.
7673 * arm-obsd-tdep.c: Sort headers.
7674 * arm-nbsd-tdep.c: Sort headers.
7675 * arm-nbsd-nat.c: Sort headers.
7676 * arm-linux-tdep.c: Sort headers.
7677 * arm-linux-nat.c: Sort headers.
7678 * arm-fbsd-tdep.c: Sort headers.
7679 * arm-fbsd-nat.c: Sort headers.
7680 * arm-bsd-tdep.c: Sort headers.
7681 * arch-utils.c: Sort headers.
7682 * arc-tdep.c: Sort headers.
7683 * arc-newlib-tdep.c: Sort headers.
7684 * annotate.h: Sort headers.
7685 * annotate.c: Sort headers.
7686 * amd64-windows-tdep.c: Sort headers.
7687 * amd64-windows-nat.c: Sort headers.
7688 * amd64-tdep.c: Sort headers.
7689 * amd64-sol2-tdep.c: Sort headers.
7690 * amd64-obsd-tdep.c: Sort headers.
7691 * amd64-obsd-nat.c: Sort headers.
7692 * amd64-nbsd-tdep.c: Sort headers.
7693 * amd64-nbsd-nat.c: Sort headers.
7694 * amd64-nat.c: Sort headers.
7695 * amd64-linux-tdep.c: Sort headers.
7696 * amd64-linux-nat.c: Sort headers.
7697 * amd64-fbsd-tdep.c: Sort headers.
7698 * amd64-fbsd-nat.c: Sort headers.
7699 * amd64-dicos-tdep.c: Sort headers.
7700 * amd64-darwin-tdep.c: Sort headers.
7701 * amd64-bsd-nat.c: Sort headers.
7702 * alpha-tdep.c: Sort headers.
7703 * alpha-obsd-tdep.c: Sort headers.
7704 * alpha-nbsd-tdep.c: Sort headers.
7705 * alpha-mdebug-tdep.c: Sort headers.
7706 * alpha-linux-tdep.c: Sort headers.
7707 * alpha-linux-nat.c: Sort headers.
7708 * alpha-bsd-tdep.c: Sort headers.
7709 * alpha-bsd-nat.c: Sort headers.
7710 * aix-thread.c: Sort headers.
7711 * agent.c: Sort headers.
7712 * addrmap.c: Sort headers.
7713 * ada-varobj.c: Sort headers.
7714 * ada-valprint.c: Sort headers.
7715 * ada-typeprint.c: Sort headers.
7716 * ada-tasks.c: Sort headers.
7717 * ada-lang.c: Sort headers.
7718 * aarch64-tdep.c: Sort headers.
7719 * aarch64-ravenscar-thread.c: Sort headers.
7720 * aarch64-newlib-tdep.c: Sort headers.
7721 * aarch64-linux-tdep.c: Sort headers.
7722 * aarch64-linux-nat.c: Sort headers.
7723 * aarch64-fbsd-tdep.c: Sort headers.
7724 * aarch64-fbsd-nat.c: Sort headers.
7725 * aarch32-linux-nat.c: Sort headers.
7726
77272019-04-04 Tom Tromey <tom@tromey.com>
7728
7729 * varobj.c (varobj_create): Update.
7730 * rust-exp.y (struct rust_parser) <update_innermost_block,
7731 lookup_symbol>: New methods.
7732 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7733 Rename.
7734 (rust_parser::rust_lookup_type)
7735 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7736 * printcmd.c (display_command, do_one_display): Update.
7737 * parser-defs.h (struct parser_state) <parser_state>: Add
7738 "tracker" parameter.
7739 (block_tracker): New member.
7740 (class innermost_block_tracker) <innermost_block_tracker>: Add
7741 "types" parameter.
7742 <reset>: Remove method.
7743 (innermost_block): Don't declare.
7744 (null_post_parser): Update.
7745 * parse.c (innermost_block): Remove global.
7746 (write_dollar_variable): Update.
7747 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7748 Remove "tracker_types" parameter.
7749 (parse_expression): Add "tracker" parameter.
7750 (parse_expression_for_completion): Update.
7751 (null_post_parser): Add "tracker" parameter.
7752 * p-exp.y: Update rules.
7753 * m2-exp.y: Update rules.
7754 * language.h (struct language_defn) <la_post_parser>: Add
7755 "tracker" parameter.
7756 * go-exp.y: Update rules.
7757 * f-exp.y: Update rules.
7758 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7759 parameter.
7760 * d-exp.y: Update rules.
7761 * c-exp.y: Update rules.
7762 * breakpoint.c (set_breakpoint_condition): Create an
7763 innermost_block_tracker.
7764 (watch_command_1): Likewise.
7765 * ada-lang.c (resolve): Add "tracker" parameter.
7766 (resolve_subexp): Likewise.
7767 * ada-exp.y (write_var_from_sym): Update.
7768
77692019-04-04 Tom Tromey <tom@tromey.com>
7770
7771 * type-stack.h: New file.
7772 * type-stack.c: New file.
7773 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7774 type-stack.h.
7775 (insert_into_type_stack, insert_type, push_type, push_type_int)
7776 (insert_type_address_space, pop_type, pop_type_int)
7777 (pop_typelist, pop_type_stack, append_type_stack)
7778 (push_type_stack, get_type_stack, push_typelist)
7779 (follow_type_instance_flags, follow_types): Don't declare.
7780 * parse.c (type_stack): Remove global.
7781 (parse_exp_in_context): Update.
7782 (insert_into_type_stack, insert_type, push_type, push_type_int)
7783 (insert_type_address_space, pop_type, pop_type_int)
7784 (pop_typelist, pop_type_stack, append_type_stack)
7785 (push_type_stack, get_type_stack, push_typelist)
7786 (follow_type_instance_flags, follow_types): Remove (moved to
7787 type-stack.c).
7788 * f-exp.y (type_stack): New global.
7789 Update rules.
7790 (push_kind_type, f_parse): Update.
7791 * d-exp.y (type_stack): New global.
7792 Update rules.
7793 (d_parse): Update.
7794 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7795 Update rules.
7796 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7797 (HFILES_NO_SRCDIR): Add type-stack.h.
7798
77992019-04-04 Tom Tromey <tom@tromey.com>
7800
7801 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7802 (rust_parser::convert_ast_to_expression, rust_parse)
7803 (rust_lex_test_completion, rust_lex_tests): Update.
7804 * parser-defs.h (struct expr_completion_state): New.
7805 (struct parser_state) <parser_state>: Add completion parameter.
7806 <mark_struct_expression, mark_completion_tag>: New methods.
7807 <parse_completion, m_completion_state>: New members.
7808 (prefixify_expression, null_post_parser): Update.
7809 (mark_struct_expression, mark_completion_tag): Don't declare.
7810 * parse.c (parse_completion, expout_last_struct)
7811 (expout_tag_completion_type, expout_completion_name): Remove
7812 globals.
7813 (parser_state::mark_struct_expression)
7814 (parser_state::mark_completion_tag): Now methods.
7815 (prefixify_expression): Add last_struct parameter.
7816 (prefixify_subexp): Likewise.
7817 (parse_exp_1): Update.
7818 (parse_exp_in_context): Add cstate parameter. Update.
7819 (parse_expression_for_completion): Create an
7820 expr_completion_state.
7821 (null_post_parser): Add "completion" parameter.
7822 * p-exp.y: Update rules.
7823 (yylex): Update.
7824 * language.h (struct language_defn) <la_post_parser>: Add
7825 "completing" parameter.
7826 * go-exp.y: Update rules.
7827 (lex_one_token): Update.
7828 * expression.h (parse_completion): Don't declare.
7829 * d-exp.y: Update rules.
7830 (lex_one_token): Update rules.
7831 * c-exp.y: Update rules.
7832 (lex_one_token): Update.
7833 * ada-lang.c (resolve): Add "parse_completion" parameter.
7834 (resolve_subexp): Likewise.
7835 (ada_resolve_function): Likewise.
7836
78372019-04-04 Tom Tromey <tom@tromey.com>
7838
7839 * parser-defs.h (struct parser_state) <start_arglist,
7840 end_arglist>: New methods.
7841 <arglist_len, m_funcall_chain>: New members.
7842 (arglist_len, start_arglist, end_arglist): Don't declare.
7843 * parse.c (arglist_len, funcall_chain): Remove global.
7844 (start_arglist, end_arglist): Remove functions.
7845 (parse_exp_in_context): Update.
7846 * p-exp.y: Update rules.
7847 * m2-exp.y: Update rules.
7848 * go-exp.y: Update rules.
7849 * f-exp.y: Update rules.
7850 * d-exp.y: Update rules.
7851 * c-exp.y: Update rules.
7852
78532019-04-04 Tom Tromey <tom@tromey.com>
7854
7855 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7856 lex_operator, push_back>: New methods.
7857 Update all rules.
7858 (rust_parser::lex_hex, lex_escape): Rename and update.
7859 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7860 (rust_parser::lex_operator): Rename and update.
7861 (rust_parser::lex_number, rustyylex, rustyyerror)
7862 (rust_lex_test_init, rust_lex_test_sequence)
7863 (rust_lex_test_push_back, rust_lex_tests): Update.
7864 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7865 parameter.
7866 <lexptr, prev_lexptr>: New members.
7867 (lexptr, prev_lexptr): Don't declare.
7868 * parse.c (lexptr, prev_lexptr): Remove globals.
7869 (parse_exp_in_context): Update.
7870 * p-exp.y (yylex, yyerror): Update.
7871 * m2-exp.y (parse_number, yylex, yyerror): Update.
7872 * go-exp.y (lex_one_token, yyerror): Update.
7873 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7874 * d-exp.y (lex_one_token, yyerror): Update.
7875 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7876 (lex_one_token, yyerror): Update.
7877 * ada-lex.l (YY_INPUT): Update.
7878 (rewind_to_char): Update.
7879 * ada-exp.y (yyerror): Update.
7880
78812019-04-04 Tom Tromey <tom@tromey.com>
7882
7883 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7884 * parser-defs.h (struct parser_state) <parser_state>: Add new
7885 parameter.
7886 <comma_terminates>: New member.
7887 (comma_terminates): Don't declare global.
7888 * parse.c (comma_terminates): Remove global.
7889 (parse_exp_in_context): Update.
7890 * p-exp.y (yylex): Update.
7891 * m2-exp.y (yylex): Update.
7892 * go-exp.y (lex_one_token): Update.
7893 * f-exp.y (yylex): Update.
7894 * d-exp.y (lex_one_token): Update.
7895 * c-exp.y (lex_one_token): Update.
7896 * ada-lex.l: Update.
7897
78982019-04-04 Tom Tromey <tom@tromey.com>
7899
7900 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7901 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7902 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7903 * parser-defs.h (paren_depth): Don't declare.
7904 * parse.c (paren_depth): Remove global.
7905 (parse_exp_in_context): Update.
7906 * p-exp.y (paren_depth): New global.
7907 (pascal_parse): Initialize it.
7908 * m2-exp.y (paren_depth): New global.
7909 (m2_parse): Initialize it.
7910 * go-exp.y (paren_depth): New global.
7911 (go_parse): Initialize it.
7912 * f-exp.y (paren_depth): New global.
7913 (f_parse): Initialize it.
7914 * d-exp.y (paren_depth): New global.
7915 (d_parse): Initialize it.
7916 * c-exp.y (paren_depth): New global.
7917 (c_parse): Initialize it.
7918 * ada-lex.l (paren_depth): New global.
7919 (lexer_init): Initialize it.
7920
79212019-04-04 Tom Tromey <tom@tromey.com>
7922
7923 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7924 (rust_parser::convert_ast_to_type)
7925 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7926 * parser-defs.h (struct parser_state) <parser_state>: Add
7927 parameters. Initialize new members.
7928 <expression_context_block, expression_context_pc>: New members.
7929 * parse.c (expression_context_block, expression_context_pc):
7930 Remove globals.
7931 (parse_exp_in_context): Update.
7932 * p-exp.y: Update all rules.
7933 (yylex): Update.
7934 * m2-exp.y: Update all rules.
7935 (yylex): Update.
7936 * go-exp.y (yylex): Update.
7937 * f-exp.y (yylex): Update.
7938 * d-exp.y: Update all rules.
7939 (yylex): Update.
7940 * c-exp.y: Update all rules.
7941 (lex_one_token, classify_name, yylex, c_parse): Update.
7942 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7943
79442019-04-04 Tom Tromey <tom@tromey.com>
7945
7946 * gdbarch.h, gdbarch.c: Rebuild.
7947 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7948 * stap-probe.h:
7949 (struct stap_parse_info): Replace "parser_state" with
7950 "expr_builder".
7951 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7952 (parser_state): New class.
7953 * parse.c (expr_builder): Rename.
7954 (expr_builder::release): Rename.
7955 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7956 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7957 (write_exp_elt_longcst, write_exp_elt_floatcst)
7958 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7959 (write_exp_string_vector, write_exp_bitstring)
7960 (write_exp_msymbol, mark_struct_expression)
7961 (write_dollar_variable)
7962 (insert_type_address_space, increase_expout_size): Replace
7963 "parser_state" with "expr_builder".
7964 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7965 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7966 "parser_state" with "expr_builder".
7967
79682019-04-04 Tom Tromey <tom@tromey.com>
7969
7970 * rust-exp.y: Replace "parse_language" with method call.
7971 * p-exp.y:
7972 (yylex): Replace "parse_language" with method call.
7973 * m2-exp.y:
7974 (yylex): Replace "parse_language" with method call.
7975 * go-exp.y (classify_name): Replace "parse_language" with method
7976 call.
7977 * f-exp.y (yylex): Replace "parse_language" with method call.
7978 * d-exp.y (lex_one_token): Replace "parse_language" with method
7979 call.
7980 * c-exp.y:
7981 (lex_one_token, classify_name, yylex): Replace "parse_language"
7982 with method call.
7983 * ada-exp.y (find_primitive_type, type_char)
7984 (type_system_address): Replace "parse_language" with method call.
7985
79862019-04-04 Tom Tromey <tom@tromey.com>
7987
7988 * rust-exp.y: Replace "parse_gdbarch" with method call.
7989 * parse.c (write_dollar_variable, insert_type_address_space):
7990 Replace "parse_gdbarch" with method call.
7991 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7992 call.
7993 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7994 call.
7995 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7996 "parse_gdbarch" with method call.
7997 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7998 with method call.
7999 * f-exp.y (parse_type, parse_f_type, yylex): Replace
8000 "parse_gdbarch" with method call.
8001 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
8002 "parse_gdbarch" with method call.
8003 * c-exp.y (parse_type, parse_number, classify_name): Replace
8004 "parse_gdbarch" with method call.
8005 * ada-lex.l: Replace "parse_gdbarch" with method call.
8006 * ada-exp.y (parse_type, find_primitive_type, type_char)
8007 (type_system_address): Replace "parse_gdbarch" with method call.
8008
80092019-04-04 Tom Tromey <tom@tromey.com>
8010
8011 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
8012 * stap-probe.c (stap_parse_argument): Update.
8013 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
8014 initial_size parameter.
8015 * rust-exp.y (rust_lex_tests): Update.
8016 * parse.c (parser_state): Update.
8017 (parse_exp_in_context): Update.
8018 * parser-defs.h (struct parser_state) <parser_state>: Remove
8019 "initial_size" parameter.
8020
80212019-04-04 Tom Tromey <tom@tromey.com>
8022
8023 * parser-defs.h (increase_expout_size): Don't declare.
8024 * parse.c (increase_expout_size): Now static.
8025
80262019-04-04 Thomas Schwinge <thomas@codesourcery.com>
8027
8028 * gnu-nat.c (gnu_nat_target::wait): Fix
8029 target_waitstatus_to_string call.
8030
80312019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8032
8033 * eval.c (evaluate_subexp_standard): Handle internal functions
8034 during Fortran function call handling.
8035
80362019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
8037
8038 * NEWS: Mention new internal functions.
8039 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
8040 (read_base_type): Use dwarf2_init_complex_target_type.
8041 * value.c (creal_internal_fn): New function.
8042 (cimag_internal_fn): New function.
8043 (_initialize_values): Register new internal functions.
8044
80452019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8046
8047 * infrun.c (stop_all_threads): If debug_infrun, always
8048 trace the wait status after wait_one, using
8049 target_waitstatus_to_string and target_pid_to_str.
8050 (handle_inferior_event): Replace various trace of
8051 wait status kind by a single trace.
8052 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
8053 wait status kind image by target_waitstatus_to_string.
8054 * target/waitstatus.c (target_waitstatus_to_string): Fix
8055 obsolete comment.
8056
80572019-04-01 Tom Tromey <tromey@adacore.com>
8058
8059 PR symtab/23331:
8060 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
8061
80622019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
8063 Pedro Alves <palves@redhat.com>
8064
8065 * top.c (quit_force): Call 'finalize_values'.
8066 * value.c (finalize_values): New function.
8067 * value.h (finalize_values): Declare.
8068
80692019-03-30 Eli Zaretskii <eliz@gnu.org>
8070
8071 * NEWS: Announce $_gdb_major and $_gdb_minor.
8072
8073 * top.c (init_gdb_version_vars): New function.
8074 (gdb_init): Call init_gdb_version_vars.
8075
80762019-03-29 Tom Tromey <tromey@adacore.com>
8077
8078 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
8079 help text. Remove dead code.
8080
80812019-03-29 Keith Seitz <keiths@redhat.com>
8082
8083 From Siddhesh Poyarekar:
8084 * f-lang.h (f77_get_upperbound): Return LONGEST.
8085 (f77_get_lowerbound): Likewise.
8086 * f-typeprint.c (f_type_print_varspec_suffix): Expand
8087 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
8088 print them.
8089 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
8090 plongest to format print it.
8091 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
8092 (f77_get_upperbound): Likewise.
8093 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
8094 LOWER_BOUND to LONGEST.
8095 (f77_create_arrayprint_offset_tbl): Likewise.
8096
80972019-03-29 Keith Seitz <keiths@redhat.com>
8098
8099 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
8100 %s/pulongest for TYPE_LENGTH instead of %d in format
8101 strings.
8102 * ada-typerint.c (ada_print_type): Likewise.
8103 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
8104 * compile/compile-c-support.c (generate_register_struct): Likewise.
8105 * gdbtypes.c (recursive_dump_type): Likewise.
8106 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
8107 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
8108 instead of %d in format strings.
8109 * riscv-tdep.c (riscv_type_alignment): Cast second argument
8110 to std::min to ULONGEST.
8111 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
8112 instead of %d in format strings.
8113 * tracepoint.c (info_scope_command): Likewise.
8114 * typeprint.c (print_offset_data::update)
8115 (print_offset_data::finish): Likewise.
8116 * xtensa-tdep.c (xtensa_store_return_value)
8117 (xtensa_push_dummy_call): Likewise.
8118
81192019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
8120
8121 * windows-nat.c (display_selector): Fixed format specifications
8122 for 64-bit Cygwin.
8123
81242019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8125
8126 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
8127
81282019-03-28 Sandra Loosemore <sandra@codesourcery.com>
8129
8130 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
8131 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
8132 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
8133 (nios2_linux_init_abi): Install it.
8134
81352019-03-28 Alan Hayward <alan.hayward@arm.com>
8136
8137 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
8138
81392019-03-28 Alan Hayward <alan.hayward@arm.com>
8140
8141 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
8142
81432019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8144 Tom Tromey <tromey@adacore.com>
8145
8146 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
8147
81482019-03-26 Joel Brobecker <brobecker@adacore.com>
8149
8150 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
8151 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
8152 method to compute the bounds of range types. Also print "[evaluated]"
8153 if the bounds' values come from a dynamic evaluation.
8154
81552019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
8156
8157 * cp-valprint.c (cp_print_value_fields): Don't print trailing
8158 whitespace when pretty printing is on.
8159
81602019-03-26 Alan Hayward <alan.hayward@arm.com>
8161
8162 * ppc-linux-nat.c: Add include.
8163
81642019-03-26 Alan Hayward <alan.hayward@arm.com>
8165
8166 * NEWS: Mention AArch64 Pointer Authentication.
8167
81682019-03-26 Alan Hayward <alan.hayward@arm.com>
8169
8170 * arm-linux-nat.c: Add include.
8171
81722019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
8173
8174 * source-cache.c (source_cache::get_source_lines): Re-read
8175 fullname after calling open_source_file.
8176
81772019-03-25 John Baldwin <jhb@FreeBSD.org>
8178
8179 * NEWS: Mention TLS support for FreeBSD.
8180
81812019-03-25 Tom Tromey <tromey@adacore.com>
8182
8183 * minsyms.c (BUNCH_SIZE): Update comment.
8184 (~minimal_symbol_reader): Remove old comment.
8185 (compact_minimal_symbols): Update comment.
8186 (minimal_symbol_reader::install): Remove old comment. Update
8187 other comments.
8188
81892019-03-25 Alan Hayward <alan.hayward@arm.com>
8190
8191 * s390-linux-nat.c: Add include.
8192
81932019-03-25 Alan Hayward <alan.hayward@arm.com>
8194
8195 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8196 Call linux_get_hwcap.
8197 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8198 Likewise.
8199 (aarch64_linux_get_hwcap): Remove function.
8200 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8201 declaration.
8202 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8203 linux_get_hwcap.
8204 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8205 * linux-tdep.c (linux_get_hwcap): Add function.
8206 (linux_get_hwcap2): Likewise.
8207 * linux-tdep.h (linux_get_hwcap): Add declaration.
8208 (linux_get_hwcap2): Likewise.
8209 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8210 (ppc_linux_get_hwcap2): Likewise.
8211 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8212 linux_get_hwcap.
8213 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8214 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8215 (ppc_linux_nat_target::read_description): Likewise.
8216 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8217 * s390-linux-nat.c: Likewise.
8218 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8219
82202019-03-24 Tom Tromey <tom@tromey.com>
8221
8222 * ada-lang.c (standard_lookup): Simplify initialization.
8223 (ada_lookup_symbol_nonlocal): Simplify return.
8224 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8225 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8226 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8227 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8228 initialization.
8229 * solib.c (solib_global_lookup): Simplify.
8230 * symtab.c (null_block_symbol): Remove.
8231 (symbol_cache_lookup): Simplify returns.
8232 (lookup_language_this): Simplify returns.
8233 (lookup_symbol_aux): Simplify return.
8234 (lookup_local_symbol): Simplify returns.
8235 (lookup_global_symbol_from_objfile): Simplify return.
8236 (lookup_symbol_in_objfile_symtabs)
8237 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8238 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8239 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8240 * cp-namespace.c (cp_lookup_bare_symbol)
8241 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8242 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8243 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8244 (cp_lookup_symbol_via_imports): Simplify initialization.
8245 (find_symbol_in_baseclass): Likewise.
8246 * symtab.h (null_block_symbol): Remove.
8247 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8248 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8249 (d_lookup_symbol_module): Likewise.
8250 (find_symbol_in_baseclass): Simplify initialization.
8251
82522019-03-24 Tom Tromey <tom@tromey.com>
8253
8254 * expression.h: Don't include symtab.h.
8255 (struct block): Forward declare.
8256
82572019-03-24 Tom Tromey <tom@tromey.com>
8258
8259 * c-exp.y (typebase): Remove casts.
8260 * gdbtypes.c (lookup_unsigned_typename, )
8261 (lookup_signed_typename): Remove cast.
8262 * eval.c (parse_to_comma_and_eval): Remove cast.
8263 * parse.c (write_dollar_variable): Remove cast.
8264 * block.h (struct block) <superblock>: Now const.
8265 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8266 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8267 (map_block): Make "block" const.
8268 * symfile.h (struct quick_symbol_functions)
8269 <map_matching_symbols>: Constify block argument to "callback".
8270 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8271 const.
8272 (find_pc_sect_compunit_symtab): Make "b" const.
8273 (find_symbol_at_address): Likewise.
8274 (search_symbols): Likewise.
8275 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8276 (dw2_debug_names_lookup_symbol): Likewise.
8277 (dw2_map_matching_symbols): Update.
8278 * p-valprint.c (pascal_val_print): Remove "block".
8279 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8280 (aux_add_nonlocal_symbols): Make "block" const.
8281 (resolve_subexp): Remove cast.
8282 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8283 const.
8284 (iterate_over_file_blocks): Likewise.
8285 * f-exp.y (%union) <bval>: Remove.
8286 * coffread.c (patch_opaque_types): Make "b" const.
8287 * spu-tdep.c (spu_catch_start): Make "block" const.
8288 * c-valprint.c (print_unpacked_pointer): Remove "block".
8289 * symmisc.c (dump_symtab_1): Make "b" const.
8290 (block_depth): Make "block" const.
8291 * d-exp.y (%union) <bval>: Remove.
8292 * cp-support.h (cp_lookup_rtti_type): Update.
8293 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8294 * psymtab.c (psym_lookup_symbol): Make "block" const.
8295 (maintenance_check_psymtabs): Make "b" const.
8296 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8297 (enumerate_locals, enumerate_args): Update.
8298 * python/py-symtab.c (stpy_global_block): Make "block" const.
8299 (stpy_static_block): Likewise.
8300 * inline-frame.c (block_starting_point_at): Make "new_block"
8301 const.
8302 * block.c (find_block_in_blockvector): Make return type const.
8303 (blockvector_for_pc_sect): Make "b" const.
8304 (find_block_in_blockvector): Make "b" const.
8305
83062019-03-23 Tom Tromey <tom@tromey.com>
8307
8308 * varobj.c (varobj_create): Update.
8309 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8310 * printcmd.c (display_command, do_one_display): Don't reset
8311 innermost_block.
8312 * parser-defs.h (enum innermost_block_tracker_type): Move to
8313 expression.h.
8314 (innermost_block): Update comment.
8315 * parse.c (parse_exp_1): Add tracker_types parameter.
8316 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8317 tracker_types parameter. Reset innermost_block.
8318 (parse_exp_in_context): Remove.
8319 (parse_expression_for_completion): Update.
8320 * objfiles.c (~objfile): Don't reset expression_context_block or
8321 innermost_block.
8322 * expression.h (enum innermost_block_tracker_type): Move from
8323 parser-defs.h.
8324 (parse_exp_1): Add tracker_types parameter.
8325 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8326 reset innermost_block.
8327
83282019-03-23 Tom Tromey <tom@tromey.com>
8329
8330 * objfiles.h: Include bcache.h.
8331
83322019-03-23 Tom Tromey <tom@tromey.com>
8333
8334 * linespec.c (get_current_search_block): Use
8335 scoped_restore_current_language.
8336 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8337
83382019-03-22 Alan Hayward <alan.hayward@arm.com>
8339 Jiong Wang <jiong.wang@arm.com>
8340
8341 * aarch64-linux-tdep.c
8342 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8343 section.
8344 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8345
83462019-03-22 Alan Hayward <alan.hayward@arm.com>
8347 Jiong Wang <jiong.wang@arm.com>
8348
8349 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8350 instructions.
8351 (aarch64_analyze_prologue_test): Add PACIASP test.
8352 (aarch64_prologue_prev_register): Unmask PC value.
8353
83542019-03-22 Alan Hayward <alan.hayward@arm.com>
8355 Jiong Wang <jiong.wang@arm.com>
8356
8357 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8358 (aarch64_dwarf2_prev_register): Unmask PC value.
8359 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8360 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8361 DW_CFA_AARCH64_negate_ra_state.
8362 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8363
83642019-03-22 Alan Hayward <alan.hayward@arm.com>
8365 Jiong Wang <jiong.wang@arm.com>
8366
8367 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8368 registers.
8369 (aarch64_pseudo_register_name): Likewise.
8370 (aarch64_pseudo_register_type): Likewise.
8371 (aarch64_pseudo_register_reggroup_p): Likewise.
8372 (aarch64_gdbarch_init): Add pauth registers.
8373 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8374 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8375 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8376 (struct gdbarch_tdep): Add regnum for ra_state.
8377
83782019-03-22 Alan Hayward <alan.hayward@arm.com>
8379 Jiong Wang <jiong.wang@arm.com>
8380
8381 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8382
83832019-03-22 Alan Hayward <alan.hayward@arm.com>
8384 Jiong Wang <jiong.wang@arm.com>
8385
8386 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8387 function.
8388 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8389 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8390 (aarch64_gdbarch_init): Add puth registers.
8391 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8392 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8393 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8394
83952019-03-22 Alan Hayward <alan.hayward@arm.com>
8396 Jiong Wang <jiong.wang@arm.com>
8397
8398 * aarch64-linux-nat.c
8399 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8400 * aarch64-linux-tdep.c
8401 (aarch64_linux_core_read_description): Likewise.
8402 (aarch64_linux_get_hwcap): New function.
8403 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8404 (aarch64_linux_get_hwcap): New declaration.
8405
84062019-03-22 Alan Hayward <alan.hayward@arm.com>
8407 Jiong Wang <jiong.wang@arm.com>
8408
8409 * aarch64-linux-nat.c
8410 (aarch64_linux_nat_target::read_description): Add pauth param.
8411 * aarch64-linux-tdep.c
8412 (aarch64_linux_core_read_description): Likewise.
8413 * aarch64-tdep.c (struct target_desc): Add in pauth.
8414 (aarch64_read_description): Add pauth param.
8415 (aarch64_gdbarch_init): Likewise.
8416 * aarch64-tdep.h (aarch64_read_description): Likewise.
8417 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8418 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8419 * features/Makefile: Add new files.
8420 * features/aarch64-pauth.c: New file.
8421 * features/aarch64-pauth.xml: New file.
8422
84232019-03-20 Tom Tromey <tromey@adacore.com>
8424
8425 * infrun.c (handle_inferior_event): Rename from
8426 handle_inferior_event_1. Create a scoped_value_mark.
8427 (handle_inferior_event): Remove.
8428
84292019-03-19 Tom Tromey <tromey@adacore.com>
8430
8431 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8432 * infrun.h (print_stop_event): Add "displays" parameter.
8433 * infrun.c (print_stop_event): Add "displays" parameter.
8434
84352019-03-19 Pedro Alves <palves@redhat.com>
8436
8437 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8438 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8439 to -1. Fix TABs vs spaces.
8440 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8441 * tui/tui-out.h (tui_ui_out) Add intro comments.
8442 <m_line, m_start_of_line>: In-class initialize, and add describing
8443 comment.
8444
84452019-03-18 Alan Hayward <alan.hayward@arm.com>
8446
8447 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8448 variable names.
8449 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8450
84512019-03-18 Pedro Alves <palves@redhat.com>
8452 Eli Zaretskii <eliz@gnu.org>
8453
8454 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8455 m_line and m_start_of_line.
8456
84572019-03-18 Eli Zaretskii <eliz@gnu.org>
8458
8459 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8460 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8461 it returns a newline. This fixes a regression in TU mode, whereby
8462 the next line is output on the same screen line as the user input.
8463
84642019-03-18 Tom Tromey <tromey@adacore.com>
8465
8466 * minsyms.c (minimal_symbol_reader::install): Remove call to
8467 obstack_blank.
8468
84692019-03-18 Pedro Alves <palves@redhat.com>
8470
8471 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8472 New globals.
8473 (apply_style): New, factored out from ...
8474 (apply_ansi_escape): ... this. Handle reverse video mode.
8475 (tui_set_reverse_mode): New function.
8476 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8477 * tui/tui-winsource.c (tui_show_source_line): Use
8478 tui_set_reverse_mode instead of setting A_STANDOUT.
8479 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8480 New setter methods.
8481
84822019-03-18 Hannes Domani <ssbssa@yahoo.de>
8483
8484 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8485 Handle tabs.
8486
84872019-03-18 Tom Tromey <tromey@adacore.com>
8488
8489 * ada-lang.c (empty_array): Add "high" parameter.
8490 (ada_evaluate_subexp): Update.
8491
84922019-03-17 Sergei Trofimovich <siarheit@google.com>
8493
8494 * unittests/string_view-selftests.c: Define
8495 _initialize_string_view_selftests unconditionally.
8496
84972019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8498
8499 PR gdb/24350
8500 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8501
85022019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8503
8504 PR gdb/24351
8505 * windows-nat.c (display_selector): Fix format specifiers.
8506
85072019-03-17 Eli Zaretskii <eliz@gnu.org>
8508
8509 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8510 tui_refill_source_window instead of tui_refresh_win, to update the
8511 current execution line. This fixes redisplay of the current line
8512 when stepping through the code with "next" or "step".
8513
85142019-03-16 Eli Zaretskii <eliz@gnu.org>
8515
8516 * source-cache.c (source_cache::get_source_lines): Call
8517 find_source_lines to initialize s->nlines. This fixes vertical
8518 scrolling of TUI source window when the DOWN arrow is pressed.
8519
85202019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8521
8522 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8523 linux-thread-db.c (_initialize_thread_db): Likewise.
8524
85252019-03-16 Eli Zaretskii <eliz@gnu.org>
8526
8527 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8528 wclrtoeol in tui_show_source_line". This reverts changes made in
8529 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8530
85312019-03-15 Tom Tromey <tom@tromey.com>
8532
8533 * symtab.h (struct minimal_symbol): Derive from
8534 general_symbol_info.
8535 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8536 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8537 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8538 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8539 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8540 (MSYMBOL_SEARCH_NAME): Update.
8541 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8542 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8543 * minsyms.c (minimal_symbol_reader::record_full): Update.
8544
85452019-03-15 Tom Tromey <tom@tromey.com>
8546
8547 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8548
85492019-03-15 Tom Tromey <tom@tromey.com>
8550
8551 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8552 unique_xmalloc_ptr.
8553 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8554 Update.
8555 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8556 (build_minimal_symbol_hash_tables)
8557 (minimal_symbol_reader::install): Update.
8558
85592019-03-15 Tom Tromey <tom@tromey.com>
8560
8561 * symtab.c (create_demangled_names_hash): Update.
8562 (symbol_set_names): Update.
8563 * objfiles.h (struct objfile_per_bfd_storage)
8564 <demangled_names_hash>: Now an htab_up.
8565 * objfiles.c (objfile_per_bfd_storage): Simplify.
8566
85672019-03-15 Tom Tromey <tom@tromey.com>
8568
8569 * objfiles.h (struct objfile_per_bfd_storage): Declare
8570 destructor.
8571 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8572 New.
8573 (get_objfile_bfd_data): Use new. Don't initialize
8574 language_of_main.
8575 (free_objfile_per_bfd_storage): Remove.
8576 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8577
85782019-03-15 Tom Tromey <tom@tromey.com>
8579
8580 * symfile.c (reread_symbols): Update.
8581 * objfiles.c (objfile::objfile): Update.
8582 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8583 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8584 comment.
8585 (minimal_symbol_reader::install): Update.
8586 (terminate_minimal_symbol_table): Remove.
8587 * jit.c (jit_object_close_impl): Update.
8588
85892019-03-15 Tom Tromey <tom@tromey.com>
8590
8591 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8592 initializations.
8593
85942019-03-15 Tom Tromey <tom@tromey.com>
8595
8596 * objfiles.h (struct objfile_per_bfd_storage)
8597 <demangled_hash_languages>: Now a bitset.
8598 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8599 (lookup_minimal_symbol): Update.
8600
86012019-03-15 Tom Tromey <tom@tromey.com>
8602
8603 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8604 Don't return the symbol.
8605 * coffread.c (record_minimal_symbol): Use record_full.
8606
86072019-03-14 Eli Zaretskii <eliz@gnu.org>
8608
8609 The MS-Windows port of ncurses fails to switch to a color pair if
8610 one or both of the colors are the implicit default colors. This
8611 change records the default colors when TUI is initialized, and
8612 then specifies them explicitly when a color pair uses the default
8613 colors. This allows color styling in TUI mode on MS-Windows.
8614
8615 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8616 ncurses_norm_attr.
8617 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8618 colors in ncurses_norm_attr.
8619 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8620 "none", replace it with the default color recorded in
8621 ncurses_norm_attr.
8622
86232019-03-14 Tom Tromey <tromey@adacore.com>
8624
8625 * source-cache.h (class source_cache) <get_source_lines>: Return
8626 std::string.
8627 * source-cache.c (source_cache::extract_lines): Handle case where
8628 first_pos==npos. Return std::string.
8629 (source_cache::get_source_lines): Update.
8630
86312019-03-14 Tom Tromey <tromey@adacore.com>
8632
8633 * NEWS: Add item for "style sources" commands.
8634 * source-cache.c (source_cache::get_source_lines): Check
8635 source_styling.
8636 * cli/cli-style.c (source_styling): New global.
8637 (_initialize_cli_style): Add "style sources" commands.
8638 (show_style_sources): New function.
8639 * cli/cli-style.h (source_styling): Declare.
8640
86412019-03-14 Pedro Alves <palves@redhat.com>
8642 Tom Tromey <tromey@adacore.com>
8643
8644 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8645 * tui/tui-winsource.c (tui_refill_source_window): New function,
8646 from...
8647 (tui_horizontal_source_scroll): ... here. Move some logic.
8648 * cli/cli-style.c (set_style_enabled): Notify new observable.
8649 * tui/tui-hooks.c (tui_redisplay_source): New function.
8650 (tui_attach_detach_observers): Attach or detach
8651 tui_redisplay_source.
8652 * observable.h (source_styling_changed): New observable.
8653 * observable.c: Define source_styling_changed observable.
8654
86552019-03-13 Tom Tromey <tromey@adacore.com>
8656
8657 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8658 (i386_gnu_nat_target::store_registers): Update.
8659 * target-debug.h (target_debug_print_std_string): New macro.
8660 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8661 * windows-tdep.c (display_one_tib): Update.
8662 * tui/tui-stack.c (tui_make_status_line): Update.
8663 * top.c (print_inferior_quit_action): Update.
8664 * thread.c (thr_try_catch_cmd): Update.
8665 (add_thread_with_info): Update.
8666 (thread_target_id_str): Update.
8667 (thr_try_catch_cmd): Update.
8668 (thread_command): Update.
8669 (thread_find_command): Update.
8670 * record-btrace.c (record_btrace_target::info_record)
8671 (record_btrace_resume_thread, record_btrace_target::resume)
8672 (record_btrace_cancel_resume, record_btrace_step_thread)
8673 (record_btrace_target::wait, record_btrace_target::wait)
8674 (record_btrace_target::wait, record_btrace_target::stop): Update.
8675 * progspace.c (print_program_space): Update.
8676 * process-stratum-target.c
8677 (process_stratum_target::thread_address_space): Update.
8678 * linux-fork.c (linux_fork_mourn_inferior)
8679 (detach_checkpoint_command, info_checkpoints_command)
8680 (linux_fork_context): Update.
8681 (linux_fork_detach): Update.
8682 (class scoped_switch_fork_info): Update.
8683 (delete_checkpoint_command): Update.
8684 * infrun.c (follow_fork_inferior): Update.
8685 (follow_fork_inferior): Update.
8686 (proceed_after_vfork_done): Update.
8687 (handle_vfork_child_exec_or_exit): Update.
8688 (follow_exec): Update.
8689 (displaced_step_prepare_throw): Update.
8690 (displaced_step_restore): Update.
8691 (start_step_over): Update.
8692 (resume_1): Update.
8693 (clear_proceed_status_thread): Update.
8694 (proceed): Update.
8695 (print_target_wait_results): Update.
8696 (do_target_wait): Update.
8697 (context_switch): Update.
8698 (stop_all_threads): Update.
8699 (restart_threads): Update.
8700 (finish_step_over): Update.
8701 (handle_signal_stop): Update.
8702 (switch_back_to_stepped_thread): Update.
8703 (keep_going_pass_signal): Update.
8704 (print_exited_reason): Update.
8705 (normal_stop): Update.
8706 * inferior.c (inferior_pid_to_str): Change return type.
8707 (print_selected_inferior): Update.
8708 (add_inferior): Update.
8709 (detach_inferior): Update.
8710 * dummy-frame.c (fprint_dummy_frames): Update.
8711 * dcache.c (dcache_info_1): Update.
8712 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8713 (btrace_fetch, btrace_clear): Update.
8714 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8715 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8716 type.
8717 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8718 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8719 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8720 * gdbarch.c, gdbarch.h: Rebuild.
8721 * gdbarch.sh (core_pid_to_str): Change return type.
8722 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8723 return type.
8724 (windows_nat_target::pid_to_str): Change return type.
8725 (windows_delete_thread): Update.
8726 (windows_nat_target::attach): Update.
8727 (windows_nat_target::files_info): Update.
8728 * target-delegates.c: Rebuild.
8729 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8730 return type.
8731 (sol_thread_target::pid_to_str): Change return type.
8732 * remote.c (class remote_target) <pid_to_str>: Change return
8733 type.
8734 (remote_target::pid_to_str): Change return type.
8735 (extended_remote_target::attach, remote_target::remote_stop_ns)
8736 (remote_target::remote_notif_remove_queued_reply)
8737 (remote_target::push_stop_reply, remote_target::disable_btrace):
8738 Update.
8739 (extended_remote_target::attach): Update.
8740 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8741 type.
8742 (gdbsim_target::pid_to_str): Change return type.
8743 * ravenscar-thread.c (struct ravenscar_thread_target)
8744 <pid_to_str>: Change return type.
8745 (ravenscar_thread_target::pid_to_str): Change return type.
8746 * procfs.c (class procfs_target) <pid_to_str>: Change return
8747 type.
8748 (procfs_target::pid_to_str): Change return type.
8749 (procfs_target::attach): Update.
8750 (procfs_target::detach): Update.
8751 (procfs_target::fetch_registers): Update.
8752 (procfs_target::store_registers): Update.
8753 (procfs_target::wait): Update.
8754 (procfs_target::files_info): Update.
8755 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8756 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8757 return type.
8758 (nto_procfs_target::pid_to_str): Change return type.
8759 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8760 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8761 return type.
8762 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8763 (exit_lwp): Update.
8764 (attach_proc_task_lwp_callback, get_detach_signal)
8765 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8766 (linux_nat_target::resume, wait_lwp, stop_callback)
8767 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8768 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8769 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8770 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8771 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8772 type.
8773 (inf_ptrace_target::attach): Update.
8774 (inf_ptrace_target::files_info): Update.
8775 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8776 type.
8777 (go32_nat_target::pid_to_str): Change return type.
8778 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8779 (gnu_nat_target::wait): Update.
8780 (gnu_nat_target::wait): Update.
8781 (gnu_nat_target::resume): Update.
8782 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8783 (fbsd_nat_target::wait): Update.
8784 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8785 type.
8786 (darwin_nat_target::attach): Update.
8787 * corelow.c (class core_target) <pid_to_str>: Change return type.
8788 (core_target::pid_to_str): Change return type.
8789 * target.c (normal_pid_to_str): Change return type.
8790 (default_pid_to_str): Likewise.
8791 (target_pid_to_str): Change return type.
8792 (target_translate_tls_address): Update.
8793 (target_announce_detach): Update.
8794 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8795 return type.
8796 (bsd_uthread_target::pid_to_str): Change return type.
8797 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8798 type.
8799 (bsd_kvm_target::pid_to_str): Change return type.
8800 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8801 return type.
8802 (aix_thread_target::pid_to_str): Change return type.
8803 * target.h (struct target_ops) <pid_to_str>: Change return type.
8804 (target_pid_to_str, normal_pid_to_str): Likewise.
8805 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8806 type.
8807 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8808 type.
8809 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8810 return type.
8811 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8812 type.
8813 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8814 type.
8815 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8816 return type.
8817
88182019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8819
8820 * NEWS: Mention that the new default MI version is 3. Mention
8821 changes to the output of commands and events that deal with
8822 multi-location breakpoints.
8823 * breakpoint.c: Include "mi/mi-out.h".
8824 (print_one_breakpoint): Change output syntax if using MI version
8825 >= 3.
8826 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8827 New.
8828 (mi_multi_location_breakpoint_output_fixed): New.
8829 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8830 (mi_cmd_fix_multi_location_breakpoint_output): New.
8831 (mi_multi_location_breakpoint_output_fixed): New.
8832 * mi/mi-cmds.c (mi_cmds): Register command
8833 -fix-multi-location-breakpoint-output.
8834 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8835 interpreter "mi".
8836
88372019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8838
8839 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8840 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8841 instantiate mi_ui_out based on interpreter name.
8842 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8843 * mi/mi-main.c (mi_load_progress): Likewise.
8844
88452019-03-12 John Baldwin <jhb@FreeBSD.org>
8846
8847 * NEWS: Combine separate "New targets" sections for 8.3.
8848
88492019-03-12 John Baldwin <jhb@FreeBSD.org>
8850
8851 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8852 (ppcfbsd_init_abi): Install gdbarch
8853 "fetch_tls_load_module_address" and "get_thread_local_address"
8854 methods.
8855
88562019-03-12 John Baldwin <jhb@FreeBSD.org>
8857
8858 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8859 (riscv_fbsd_init_abi): Install gdbarch
8860 "fetch_tls_load_module_address" and "get_thread_local_address"
8861 methods.
8862
88632019-03-12 John Baldwin <jhb@FreeBSD.org>
8864
8865 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8866 (i386fbsd_init_abi): Install gdbarch
8867 "fetch_tls_load_module_address" and "get_thread_local_address"
8868 methods.
8869
88702019-03-12 John Baldwin <jhb@FreeBSD.org>
8871
8872 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8873 (amd64fbsd_init_abi): Install gdbarch
8874 "fetch_tls_load_module_address" and "get_thread_local_address"
8875 methods.
8876
88772019-03-12 John Baldwin <jhb@FreeBSD.org>
8878
8879 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8880 (struct fbsd_pspace_data): New type.
8881 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8882 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8883 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8884 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8885 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8886
88872019-03-12 John Baldwin <jhb@FreeBSD.org>
8888
8889 * gdbtypes.c (lookup_struct_elt): New function.
8890 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8891 * gdbtypes.h (struct struct_elt): New type.
8892 (lookup_struct_elt): New prototype.
8893
88942019-03-12 John Baldwin <jhb@FreeBSD.org>
8895
8896 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8897 remove disabled code block.
8898
88992019-03-12 John Baldwin <jhb@FreeBSD.org>
8900
8901 * gdbarch.sh (get_thread_local_address): New method.
8902 * gdbarch.h, gdbarch.c: Regenerate.
8903 * target.c (target_translate_tls_address): Use
8904 gdbarch_get_thread_local_address if present instead of
8905 target::get_thread_local_address.
8906
89072019-03-12 John Baldwin <jhb@FreeBSD.org>
8908
8909 * target.h (target::get_thread_local_address): Update comment.
8910
89112019-03-12 John Baldwin <jhb@FreeBSD.org>
8912
8913 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8914 objfile->separate_debug_objfile_backlink if not NULL.
8915
89162019-03-12 John Baldwin <jhb@FreeBSD.org>
8917
8918 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8919 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8920 (amd64bsd_store_inferior_registers): Likewise.
8921 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8922 Enable segment base registers.
8923 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8924 PT_GETFSBASE and PT_GETGSBASE.
8925 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8926 PT_SETGSBASE.
8927 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8928 segment base registers.
8929 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8930
89312019-03-12 John Baldwin <jhb@FreeBSD.org>
8932
8933 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8934 Update calls to i386_target_description to add 'segments'
8935 parameter.
8936 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8937 add segment base registers.
8938 * arch/i386.c (i386_create_target_description): Add 'segments'
8939 parameter to enable segment base registers.
8940 * arch/i386.h (i386_create_target_description): Likewise.
8941 * features/i386/32bit-segments.xml: New file.
8942 * features/i386/32bit-segments.c: Generate.
8943 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8944 call to i386_target_description to add 'segments' parameter.
8945 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8946 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8947 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8948 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8949 if feature is present.
8950 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8951 Add 'segments' parameter to call to i386_target_description.
8952 (i386_target_description): Add 'segments' parameter to enable
8953 segment base registers.
8954 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8955 to call to i386_target_description.
8956 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8957 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8958 Define I386_NUM_REGS.
8959 (i386_target_description): Add 'segments' parameter to enable
8960 segment base registers.
8961
89622019-03-12 Eli Zaretskii <eliz@gnu.org>
8963
8964 PR/24325
8965 * source-cache.c: #undef open and close, to avoid unresolved
8966 externals during linking.
8967
89682019-03-12 Tom Tromey <tromey@adacore.com>
8969
8970 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8971 const. Add initializers.
8972 (_initialize_remote): Don't initialize ptid globals.
8973
89742019-03-12 Pedro Alves <palves@redhat.com>
8975
8976 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8977
89782019-03-12 Pedro Alves <palves@redhat.com>
8979
8980 * cp-name-parser.y (main): Remove unused 'len' variable.
8981
89822019-03-12 Tom Tromey <tromey@adacore.com>
8983
8984 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8985 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8986
89872019-03-12 Tom Tromey <tromey@adacore.com>
8988
8989 * linux-nat.c (iterate_over_lwps): Update.
8990 (stop_callback): Remove parameter.
8991 (stop_wait_callback, detach_callback, resume_set_callback)
8992 (select_singlestep_lwp_callback, set_ignore_sigint)
8993 (status_callback, resumed_callback, resume_clear_callback)
8994 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8995 data parameter.
8996 (linux_nat_target::detach, linux_nat_target::resume)
8997 (linux_stop_and_wait_all_lwps, select_event_lwp)
8998 (linux_nat_filter_event, linux_nat_wait_1)
8999 (linux_nat_target::kill, linux_nat_target::stop)
9000 (linux_nat_target::stop): Update.
9001 (linux_nat_resume_callback): Change type.
9002 (resume_stopped_resumed_lwps, count_events_callback)
9003 (select_event_lwp_callback): Likewise.
9004 (linux_stop_lwp, linux_nat_stop_lwp): Update.
9005 * arm-linux-nat.c (struct update_registers_data): Remove.
9006 (update_registers_callback): Change type.
9007 (arm_linux_insert_hw_breakpoint1): Update.
9008 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
9009 parameter.
9010 (x86_linux_dr_set_addr): Update.
9011 (x86_linux_dr_set_control): Update.
9012 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
9013 (iterate_over_lwps): Use gdb::function_view.
9014 * nat/aarch64-linux-hw-point.c (struct
9015 aarch64_dr_update_callback_param): Remove.
9016 (debug_reg_change_callback): Change type.
9017 (aarch64_notify_debug_reg_change): Update.
9018 * s390-linux-nat.c (s390_refresh_per_info): Update.
9019
90202019-03-11 Tom Tromey <tromey@adacore.com>
9021
9022 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
9023 redundant assignment to "this_cu".
9024
90252019-03-08 Simon Marchi <simon.marchi@efficios.com>
9026
9027 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
9028
90292019-03-08 Simon Marchi <simon.marchi@efficios.com>
9030
9031 * gdbtypes.c (rank_one_type_parm_set): New function extracted
9032 from...
9033 (rank_one_type): ... this.
9034
90352019-03-08 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
9038 from...
9039 (rank_one_type): ... this.
9040
90412019-03-08 Simon Marchi <simon.marchi@efficios.com>
9042
9043 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
9044 from...
9045 (rank_one_type): ... this.
9046
90472019-03-08 Simon Marchi <simon.marchi@efficios.com>
9048
9049 * gdbtypes.c (rank_one_type_parm_float): New function extracted
9050 from...
9051 (rank_one_type): ... this.
9052
90532019-03-08 Simon Marchi <simon.marchi@efficios.com>
9054
9055 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
9056 from...
9057 (rank_one_type): ... this.
9058
90592019-03-08 Simon Marchi <simon.marchi@efficios.com>
9060
9061 * gdbtypes.c (rank_one_type_parm_range): New function extracted
9062 from...
9063 (rank_one_type): ... this.
9064
90652019-03-08 Simon Marchi <simon.marchi@efficios.com>
9066
9067 * gdbtypes.c (rank_one_type_parm_char): New function extracted
9068 from...
9069 (rank_one_type): ... this.
9070
90712019-03-08 Simon Marchi <simon.marchi@efficios.com>
9072
9073 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
9074 from...
9075 (rank_one_type): ... this.
9076
90772019-03-08 Simon Marchi <simon.marchi@efficios.com>
9078
9079 * gdbtypes.c (rank_one_type_parm_int): New function extracted
9080 from...
9081 (rank_one_type): ... this.
9082
90832019-03-08 Simon Marchi <simon.marchi@efficios.com>
9084
9085 * gdbtypes.c (rank_one_type_parm_func): New function extracted
9086 from...
9087 (rank_one_type): ... this.
9088
90892019-03-08 Simon Marchi <simon.marchi@efficios.com>
9090
9091 * gdbtypes.c (rank_one_type_parm_array): New function extracted
9092 from...
9093 (rank_one_type): ... this.
9094
90952019-03-08 Simon Marchi <simon.marchi@efficios.com>
9096
9097 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
9098 from...
9099 (rank_one_type): ... this.
9100
91012019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9102
9103 * inferior.c (initialize_inferiors): Ensure 'help set/show print
9104 inferior-events' shows the example events.
9105
91062019-03-08 Eli Zaretskii <eliz@gnu.org>
9107
9108 Support styling on native MS-Windows console
9109
9110 PR/24315
9111 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
9112 on MS-Windows if $TERM is not defined.
9113
9114 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
9115
9116 * posix-hdep.c (gdb_console_fputs):
9117 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
9118 functions.
9119 * ui-file.h (gdb_console_fputs): Add prototype.
9120
9121 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
9122 back to fputs only if the former returns zero.
9123
91242019-03-07 Tom Tromey <tom@tromey.com>
9125
9126 * symmisc.c (print_symbol_bcache_statistics): Update.
9127 (print_objfile_statistics): Update.
9128 * symfile.c (allocate_symtab): Update.
9129 * stabsread.c: Don't include bcache.h.
9130 * psymtab.h (struct psymbol_bcache): Don't declare.
9131 (class psymtab_storage) <psymbol_cache>: Now a bcache.
9132 (psymbol_bcache_init, psymbol_bcache_free)
9133 (psymbol_bcache_get_bcache): Don't declare.
9134 * psymtab.c (struct psymbol_bcache): Remove.
9135 (psymtab_storage::psymtab_storage): Update.
9136 (psymtab_storage::~psymtab_storage): Update.
9137 (psymbol_bcache_init, psymbol_bcache_free)
9138 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
9139 (add_psymbol_to_bcache): Update.
9140 (allocate_psymtab): Update.
9141 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9142 macro_cache>: No longer pointers.
9143 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
9144 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
9145 * macrotab.c (macro_bcache): Update.
9146 * macroexp.c: Don't include bcache.h.
9147 * gdbtypes.c (check_types_worklist): Update.
9148 (types_deeply_equal): Remove TRY/CATCH. Update.
9149 * elfread.c (elf_symtab_read): Update.
9150 * dwarf2read.c: Don't include bcache.h.
9151 * buildsym.c (buildsym_compunit::get_macro_table): Update.
9152 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
9153 (print_bcache_statistics, bcache_memory_used): Don't declare.
9154 (struct bcache): Move from bcache.c. Add constructor, destructor,
9155 methods. Rename all data members.
9156 * bcache.c (struct bcache): Move to bcache.h.
9157 (bcache::expand_hash_table): Rename from expand_hash_table.
9158 (bcache): Remove.
9159 (bcache::insert): Rename from bcache_full.
9160 (bcache::compare): Rename from bcache_compare.
9161 (bcache_xmalloc): Remove.
9162 (bcache::~bcache): Rename from bcache_xfree.
9163 (bcache::print_statistics): Rename from print_bcache_statistics.
9164 (bcache::memory_used): Rename from bcache_memory_used.
9165
91662019-03-07 Pedro Alves <palves@redhat.com>
9167
9168 * infrun.c (normal_stop): Also check for
9169 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
9170
91712019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9172
9173 * f-lang.c (value_from_host_double): Moved to...
9174 * value.c (value_from_host_double): ...here.
9175 * value.h (value_from_host_double): Declare.
9176 * guile/scm-math.c (vlscm_convert_typed_number): Use
9177 value_from_host_double.
9178 (vlscm_convert_number): Likewise.
9179 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9180 * python/py-value.c (convert_value_from_python): Likewise.
9181
91822019-03-06 Tom Tromey <tom@tromey.com>
9183
9184 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9185
91862019-03-06 Tom Tromey <tom@tromey.com>
9187
9188 * utils.h (free_current_contents): Don't declare.
9189 * utils.c (free_current_contents): Remove.
9190
91912019-03-06 Tom Tromey <tom@tromey.com>
9192
9193 * top.c (quit_force): Update.
9194 * main.c (captured_command_loop): Update.
9195 * common/new-op.c (operator new): Update.
9196 * common/common-exceptions.c (struct catcher)
9197 <save_cleanup_chain>: Remove member.
9198 (exceptions_state_mc_init): Update.
9199 (exception_try_scope_entry): Return nullptr.
9200 (exception_try_scope_exit, exception_rethrow)
9201 (throw_exception_sjlj, throw_exception_cxx): Update.
9202 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9203 (all_cleanups, do_cleanups, discard_cleanups)
9204 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9205 (restore_cleanups, restore_final_cleanups): Don't declare.
9206 (do_final_cleanups): Remove parameter.
9207 * common/cleanups.c (cleanup_chain, make_cleanup)
9208 (make_cleanup_dtor, all_cleanups, do_cleanups)
9209 (discard_my_cleanups, discard_cleanups)
9210 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9211 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9212 (null_cleanup): Remove.
9213 (do_final_cleanups): Remove parameter.
9214
92152019-03-06 Tom Tromey <tom@tromey.com>
9216
9217 * remote.c (remote_target::remote_parse_stop_reply): Use
9218 unique_xmalloc_ptr.
9219
92202019-03-06 Tom Tromey <tom@tromey.com>
9221
9222 * stabsread.c (struct stabs_field_info): Rename from field_info.
9223 <list, fnlist>: Add initializers.
9224 <obstack>: New member.
9225 (read_member_functions, read_struct_fields, read_baseclasses):
9226 Allocate on obstack. Don't use cleanups.
9227 (read_one_struct_field, read_member_functions, read_struct_fields)
9228 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9229 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9230 (read_struct_type): Update.
9231
92322019-03-06 Tom Tromey <tom@tromey.com>
9233
9234 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9235 * common/filestuff.h (make_cleanup_close): Don't declare.
9236 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9237 Remove.
9238
92392019-03-06 Tom Tromey <tom@tromey.com>
9240
9241 * solib-aix.c: Use make_scope_exit.
9242
92432019-03-06 Tom Tromey <tom@tromey.com>
9244
9245 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9246 Use make_scope_exit.
9247
92482019-03-06 Tom Tromey <tom@tromey.com>
9249
9250 * solib-svr4.c (disable_probes_interface): Remove parameter.
9251 (svr4_handle_solib_event): Use make_scope_exit.
9252
92532019-03-06 Tom Tromey <tom@tromey.com>
9254
9255 * remote.c (struct stop_reply_deleter): Remove.
9256 (stop_reply_up): Update.
9257 (struct stop_reply): Derive from notif_event. Don't typedef.
9258 <regcache>: Now a std::vector.
9259 (stop_reply_xfree): Remove.
9260 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9261 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9262 (remote_target::discard_pending_stop_replies): Use delete.
9263 (remote_target::remote_parse_stop_reply): Update.
9264 (remote_target::process_stop_reply): Update.
9265 * remote-notif.h (struct notif_event): Add virtual destructor.
9266 Remove "dtr" member.
9267 (struct notif_client) <alloc_event>: Return a unique_ptr.
9268 (notif_event_xfree): Don't declare.
9269 (notif_event_up): New typedef.
9270 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9271 (notif_event_xfree, do_notif_event_xfree): Remove.
9272 (remote_notif_state_xfree): Update.
9273
92742019-03-06 Tom Tromey <tom@tromey.com>
9275
9276 * infrun.c (displaced_step_clear_cleanup): Now a
9277 forward_scope_exit type.
9278 (displaced_step_prepare_throw): Update.
9279 (displaced_step_fixup): Update.
9280
92812019-03-06 Tom Tromey <tom@tromey.com>
9282
9283 * inferior.h (class inferior): Update comment.
9284 * gdbthread.h (class thread_info): Update comment.
9285
92862019-03-06 Joel Brobecker <brobecker@adacore.com>
9287 Tom Tromey <tom@tromey.com>
9288
9289 * stabsread.h (struct stab_section_list): Remove.
9290 (coffstab_build_psymtabs): Update.
9291 * dbxread.c (symbuf_sections): Now a std::vector.
9292 (sect_idx): New global.
9293 (fill_symbuf): Update.
9294 (coffstab_build_psymtabs): Change type of stabsects parameter.
9295 Update.
9296 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9297 std::vector.
9298 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9299 (coff_locate_sections): Update.
9300 (coff_symfile_read): Remove cleanups. Update.
9301 (init_stringtab): Add storage parameter.
9302 (free_stringtab, free_stringtab_cleanup): Remove.
9303 (init_lineno): Add storage parameter.
9304 (free_linetab, free_linetab_cleanup): Remove.
9305
93062019-03-06 Pedro Alves <palves@redhat.com>
9307
9308 * linux-fork.c (fork_info::clobber_regs): Delete.
9309 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9310 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9311 comment. Adjust.
9312 (scoped_switch_fork_info::scoped_switch_fork_info)
9313 (checkpoint_command, linux_fork_context): Adjust
9314 fork_save_infrun_state calls.
9315
93162019-03-06 Pedro Alves <palves@redhat.com>
9317
9318 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9319 (inf_has_multiple_threads): Return 'bool' and rewrite using
9320 inferior_info::threads().
9321
93222019-03-06 Pedro Alves <palves@redhat.com>
9323
9324 * linux-fork.c: Include <list>.
9325 (fork_list): Now a std::list instance.
9326 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9327 (forks_exist_p, find_last_fork): Adjust.
9328 (new_fork): Delete.
9329 (one_fork_p): New.
9330 (add_fork): Adjust.
9331 (free_fork): Delete, folded into fork_info::~fork_info().
9332 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9333 Adjust.
9334 (init_fork_list): Delete.
9335 (linux_fork_killall, linux_fork_mourn_inferior)
9336 (linux_fork_detach, info_checkpoints_command): Adjust.
9337 (_initialize_linux_fork): No longer call init_fork_list.
9338
93392019-03-06 Pedro Alves <palves@redhat.com>
9340
9341 * linux-fork.c (new_fork): New, split out of ...
9342 (add_fork): ... this. Return void. Move "first fork" special
9343 case from here, to ...
9344 (checkpoint_command): ... here.
9345 * linux-linux.h (add_fork): Return void.
9346
93472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9348
9349 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9350
93512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9352 Chris January <chris.january@arm.com>
9353 David Lecomber <david.lecomber@arm.com>
9354
9355 * f-exp.y: New token, UNOP_INTRINSIC.
9356 (exp): New pattern using UNOP_INTRINSIC token.
9357 (f77_keywords): Add 'abs' keyword.
9358 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9359 (value_from_host_double): New function.
9360 (evaluate_subexp_f): Support UNOP_ABS.
9361
93622019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9363
9364 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9365 types.
9366
93672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9368
9369 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9370 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9371 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9372
93732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9374
9375 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9376
93772019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9378 Chris January <chris.january@arm.com>
9379
9380 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9381 * f-exp.y: Define 'KIND' token.
9382 (exp): New pattern for KIND expressions.
9383 (ptype): Handle types with a kind extension.
9384 (direct_abs_decl): Extend to spot kind extensions.
9385 (f77_keywords): Add 'kind' to the list.
9386 (push_kind_type): New function.
9387 (convert_to_kind_type): New function.
9388 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9389 * parse.c (operator_length_standard): Likewise.
9390 * parser-defs.h (enum type_pieces): Add tp_kind.
9391 * std-operator.def: Add UNOP_KIND.
9392
93932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9394
9395 * f-exp.y (f_parse): Set yydebug.
9396
93972019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9398
9399 * f-lang.c (evaluate_subexp_f): New function.
9400 (exp_descriptor_f): New global.
9401 (f_language_defn): Use exp_descriptor_f instead of
9402 exp_descriptor_standard.
9403
94042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9405
9406 * f-exp.y (struct token): Add comments.
9407 (dot_ops): Remove uppercase versions and the end marker.
9408 (f77_keywords): Likewise.
9409 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9410 entries in the dot_ops array are case insensitive, and use
9411 strncasecmp to compare strings. Also some whitespace cleanup in
9412 this area. Similar for the f77_keywords array, except entries in
9413 this list might be case sensitive.
9414
94152019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9416
9417 * f-exp.y (struct f77_boolean_val): Add comments.
9418 (boolean_values): Remove uppercase versions, and end marker.
9419 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9420 and use strncasecmp to achieve case insensitivity. Additionally,
9421 perform whitespace cleanup around this code.
9422
94232019-03-06 Tom Tromey <tromey@adacore.com>
9424
9425 * remote-sim.c (gdbsim_target_open): Use result of
9426 gdb_argv::release.
9427
94282019-03-06 Richard Bunt <richard.bunt@arm.com>
9429 Dirk Schubert <dirk.schubert@arm.com>
9430 Chris January <chris.january@arm.com>
9431
9432 * eval.c (evaluate_subexp_standard): Call Fortran argument
9433 wrapping logic.
9434 * f-lang.c (struct value): A value which can be passed into a
9435 Fortran function call.
9436 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9437 where appropriate.
9438 (struct type): Value ready for a Fortran function call.
9439 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9440 is needed.
9441 * f-lang.h (fortran_argument_convert): Declaration.
9442 (fortran_preserve_arg_pointer): Declaration.
9443 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9444
94452019-03-05 Tom Tromey <tromey@adacore.com>
9446
9447 * python/py-prettyprint.c (print_string_repr): Remove #if.
9448 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9449
94502019-03-05 Tom Tromey <tromey@adacore.com>
9451
9452 * target.c (the_dummy_target): Move later. Change type to
9453 "dummy_target".
9454 (initialize_targets): Don't initialize the_dummy_target.
9455
94562019-03-05 Tom Tromey <tromey@adacore.com>
9457
9458 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9459 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9460
94612019-03-05 Tom Tromey <tromey@adacore.com>
9462
9463 * windows-nat.c (windows_nat_target::attach)
9464 (windows_nat_target::detach): Don't call gdb_flush.
9465 * valprint.c (generic_val_print, val_print, val_print_string):
9466 Don't call gdb_flush.
9467 * utils.c (defaulted_query): Don't call gdb_flush.
9468 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9469 * target.c (target_announce_detach): Don't call gdb_flush.
9470 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9471 * remote.c (extended_remote_target::attach): Don't call
9472 gdb_flush.
9473 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9474 * printcmd.c (do_examine): Don't call gdb_flush.
9475 (info_display_command): Don't call gdb_flush.
9476 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9477 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9478 * memattr.c (info_mem_command): Don't call gdb_flush.
9479 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9480 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9481 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9482 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9483 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9484 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9485 (gnu_nat_target::detach): Don't call gdb_flush.
9486 * f-valprint.c (f_val_print): Don't call gdb_flush.
9487 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9488 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9489 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9490 gdb_flush.
9491 * c-valprint.c (c_val_print): Don't call gdb_flush.
9492 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9493
94942019-03-05 Tom Tromey <tromey@adacore.com>
9495
9496 * varobj.c (update_dynamic_varobj_children): Update.
9497 (install_default_visualizer): Use reset, not release.
9498 * value.c (set_internalvar): Update.
9499 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9500 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9501 ATTRIBUTE_UNUSED_RESULT.
9502
95032019-03-05 Tom Tromey <tromey@adacore.com>
9504
9505 * remote.c (class scoped_remote_fd) <release>: Add
9506 ATTRIBUTE_UNUSED_RESULT.
9507
95082019-03-05 Tom Tromey <tromey@adacore.com>
9509
9510 * macroexp.c (struct macro_buffer) <release>: Add
9511 ATTRIBUTE_UNUSED_RESULT.
9512
95132019-03-05 Tom Tromey <tromey@adacore.com>
9514
9515 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9516 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9517 ATTRIBUTE_UNUSED_RESULT.
9518
95192019-03-05 Tom Tromey <tromey@adacore.com>
9520
9521 * common/scoped_fd.h (class scoped_fd) <release>: Add
9522 ATTRIBUTE_UNUSED_RESULT.
9523
95242019-03-05 Tom Tromey <tromey@adacore.com>
9525
9526 * parser-defs.h (struct parser_state) <release>: Add
9527 ATTRIBUTE_UNUSED_RESULT.
9528
95292019-03-05 Tom Tromey <tromey@adacore.com>
9530
9531 * utils.h (class gdb_argv) <release>: Add
9532 ATTRIBUTE_UNUSED_RESULT.
9533 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9534
95352019-03-02 Eli Zaretskii <eliz@gnu.org>
9536
9537 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9538 for-loop range, to avoid compiler warnings.
9539
9540 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9541 avoid compiler warnings about unused variables.
9542
9543 * NEWS: Mention end of support for native debugging on MS-Windows
9544 before XP.
9545
9546 PR gdb/24292
9547 * common/netstuff.c:
9548 * gdbserver/gdbreplay.c
9549 * gdbserver/remote-utils.c:
9550 * ser-tcp.c:
9551 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9552 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9553 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9554 'getaddrinfo' and 'freeaddrinfo' were not available before
9555 Windows XP, and mingw.org's MinGW headers by default define
9556 _WIN32_WINNT to 0x500.
9557
95582019-03-01 Gary Benson <gbenson@redhat.com>
9559
9560 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9561
95622019-02-28 Brian Vandenberg <phantall@gmail.com>
9563 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9564
9565 PR gdb/8527
9566 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9567 set_sigint_trap, clear_sigint_trap.
9568
95692019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9570
9571 * target.c (target_detach): Clear the regcache and the
9572 frame cache.
9573
95742019-02-27 Pedro Alves <palves@redhat.com>
9575
9576 * utils.c (set_screen_size): When we cap the height/width sizes,
9577 tweak the corresponding command variable to show "unlimited":
9578
95792019-02-27 Saagar Jha <saagar@saagarjha.com>
9580 Pedro Alves <palves@redhat.com>
9581
9582 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9583 before calling rl_set_screen_size.
9584
95852019-02-27 Tom Tromey <tromey@adacore.com>
9586
9587 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9588 define.
9589 * python/py-value.c: Remove Python 2.4 workaround.
9590 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9591 workaround.
9592 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9593 Python 2.4 workaround.
9594 * python/python-internal.h: Remove Python 2.4 comment.
9595 (Py_ssize_t): Don't define.
9596 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9597 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9598 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9599 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9600 * python/python.c (do_start_initialization): Remove Python 2.4
9601 workaround.
9602 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9603 (print_children): Remove Python 2.4 workaround.
9604 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9605 workaround.
9606 (CHARBUFFERPROC_NAME): Remove.
9607 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9608 Python 2.4 workaround.
9609
96102019-02-27 Kevin Buettner <kevinb@redhat.com>
9611
9612 * NEWS: Note minimum Python version.
9613
96142019-02-27 Kevin Buettner <kevinb@redhat.com>
9615
9616 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9617 code from these functions. Remove corresponding ifdefs. Use
9618 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9619 Remove gotos and target of gotos.
9620 (infpy_search_memory): Likewise.
9621
96222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9623
9624 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9625 (hppa_gdbarch_init): Don't register deleted functions with
9626 gdbarch.
9627
96282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9629
9630 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9631 (h8300_unwind_sp): Delete.
9632 (h8300_dummy_id): Delete.
9633 (h8300_gdbarch_init): Don't register deleted functions with
9634 gdbarch.
9635
96362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9637
9638 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9639 (ft32_unwind_pc): Delete.
9640 (ft32_unwind_sp): Delete.
9641 (ft32_gdbarch_init): Don't register deleted functions with
9642 gdbarch.
9643
96442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9645
9646 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9647 (frv_unwind_pc): Delete.
9648 (frv_unwind_sp): Delete.
9649 (frv_gdbarch_init): Don't register deleted functions with
9650 gdbarch.
9651
96522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9653
9654 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9655 (riscv_unwind_pc): Delete.
9656 (riscv_unwind_sp): Delete.
9657 (riscv_gdbarch_init): Don't register deleted functions with
9658 gdbarch.
9659
96602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9661
9662 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9663 (csky_unwind_pc): Delete.
9664 (csky_unwind_sp): Delete.
9665 (csky_gdbarch_init): Don't register deleted functions with
9666 gdbarch.
9667
96682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9669
9670 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9671 (cris_unwind_pc): Delete.
9672 (cris_unwind_sp): Delete.
9673 (cris_gdbarch_init): Don't register deleted functions with
9674 gdbarch.
9675
96762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9677
9678 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9679 (bfin_unwind_pc): Delete.
9680 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9681
96822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9683
9684 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9685 (arm_unwind_pc): Delete.
9686 (arm_unwind_sp): Delete.
9687 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9688
96892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9690
9691 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9692 (arc_unwind_pc): Delete.
9693 (arc_unwind_sp): Delete.
9694 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9695
96962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9697
9698 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9699 (alpha_unwind_pc): Delete.
9700 (alpha_gdbarch_init): Don't register deleted functions with
9701 gdbarch.
9702
97032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9704
9705 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9706 (aarch64_unwind_pc): Delete.
9707 (aarch64_unwind_sp): Delete.
9708 (aarch64_gdbarch_init): Don't register deleted functions with
9709 gdbarch.
9710
97112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9712
9713 * gdbtypes.c (type_align): Don't consider static members when
9714 computing structure alignment.
9715
97162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9717
9718 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9719 return 0 for other types.
9720 * arch-utils.c (default_type_align): Always return 0.
9721 * gdbarch.h: Regenerate.
9722 * gdbarch.sh (type_align): Extend comment.
9723 * gdbtypes.c (type_align): Add additional comments, always call
9724 gdbarch_type_align before applying the default rules.
9725 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9726 generic code will then apply a suitable default.
9727 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9728 types, return 0 for other types.
9729
97302019-02-27 Joel Brobecker <brobecker@adacore.com>
9731
9732 * NEWS: Create a new section for the next release branch.
9733 Rename the section of the current branch, now that it has
9734 been cut.
9735
97362019-02-27 Joel Brobecker <brobecker@adacore.com>
9737
9738 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9739 * version.in: Bump version to 8.3.50.DATE-git.
9740
97412019-02-26 Simon Marchi <simon.marchi@efficios.com>
9742
9743 * aix-thread.c (ptid_cmp): Remove unused variable.
9744 (get_signaled_thread): Likewise.
9745 (store_regs_user_thread): Likewise.
9746 (store_regs_kernel_thread): Likewise.
9747 (fetch_regs_kernel_thread): Remove shadowed variable.
9748
97492019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9750
9751 * features/riscv/32bit-cpu.xml: Add register numbers.
9752 * features/riscv/32bit-fpu.c: Regenerate.
9753 * features/riscv/32bit-fpu.xml: Add register numbers.
9754 * features/riscv/64bit-cpu.xml: Add register numbers.
9755 * features/riscv/64bit-fpu.c: Regenerate.
9756 * features/riscv/64bit-fpu.xml: Add register numbers.
9757
97582019-02-26 Kevin Buettner <kevinb@redhat.com>
9759
9760 * NEWS: Mention two argument form of gdb.Value constructor.
9761 * python/py-value.c (convert_buffer_and_type_to_value): New
9762 function.
9763 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9764 Add support for handling an optional second argument. Call
9765 convert_buffer_and_type_to_value as appropriate.
9766 * python/python-internal.h (Py_buffer_deleter): New struct.
9767 (Py_buffer_up): New typedef.
9768
97692019-02-25 John Baldwin <jhb@FreeBSD.org>
9770
9771 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9772 instead of releasing ownership.
9773
97742019-02-25 Jordan Rupprecht <rupprecht@google.com>
9775
9776 * dwarf2read.c (open_and_init_dwp_file): Call
9777 elf_numsections instead of bfd_count_sections to initialize
9778 dwp_file->num_sections.
9779
97802019-02-25 Tom Tromey <tromey@adacore.com>
9781
9782 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9783
97842019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9785
9786 * gcore.in: Add '--readnever' option when invoking GDB.
9787
97882019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9789
9790 * MAINTAINERS: Update my email address.
9791
97922019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9793
9794 * build-id.c (build_id_to_debug_bfd_1): New function.
9795 (build_id_to_debug_bfd): Look for separate debug file in
9796 sysroot.
9797
97982019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9799
9800 * gdbarch.sh: Update the copyright year range that is placed into
9801 generated files.
9802
98032019-02-22 Keith Seitz <keiths@redhat.com>
9804
9805 PR symtab/23853
9806 * linespec.c (create_sals_line_offset): Search for the default
9807 symtab's filename instead of its fullname.
9808
98092019-02-21 Alan Hayward <alan.hayward@arm.com>
9810
9811 * NEWS: Update style defaults.
9812
98132019-02-21 Alan Hayward <alan.hayward@arm.com>
9814
9815 * main.c (captured_main_1): Disable styling in batch mode.
9816
98172019-02-20 Tom Tromey <tom@tromey.com>
9818
9819 * symtab.c (symtab_symbol_info): Fix typos.
9820
98212019-02-20 Tom Tromey <tromey@adacore.com>
9822
9823 * findcmd.c (_initialize_mem_search): Use upper case for
9824 metasyntactic variables.
9825
98262019-02-20 Alan Hayward <alan.hayward@arm.com>
9827
9828 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9829 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9830
98312019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9832
9833 * top.h (source_file_name): Change to std::string.
9834 * top.c (source_file_name): Likewise.
9835 (command_line_input): Adjust.
9836 * cli/cli-script.c (script_from_file): Adjust.
9837
98382019-02-19 Tom Tromey <tromey@adacore.com>
9839
9840 * ravenscar-thread.c
9841 (ravenscar_thread_target::update_thread_list): Don't call
9842 ada_build_task_list.
9843 * ada-lang.h (ada_build_task_list): Don't declare.
9844 * ada-tasks.c (struct ada_tasks_inferior_data)
9845 <task_list_valid_p>: Now bool.
9846 (read_known_tasks, ada_task_list_changed)
9847 (ada_tasks_invalidate_inferior_data): Update.
9848 (read_known_tasks_array): Return bool.
9849 (read_known_tasks_list): Likewise.
9850 (read_known_tasks): Return void.
9851 (ada_build_task_list): Now static.
9852
98532019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9854
9855 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9856 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9857
98582019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9859
9860 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9861 variant for ada_tasks_pspace_data_handle and
9862 ada_tasks_inferior_data_handle.
9863 (ada_tasks_pspace_data_cleanup): New function.
9864 (ada_tasks_inferior_data_cleanup): New function.
9865
98662019-02-17 Tom Tromey <tom@tromey.com>
9867
9868 * macrotab.h (macro_source_fullname): Return a std::string.
9869 * macrotab.c (macro_include, check_for_redefinition)
9870 (macro_undef, macro_lookup_definition, foreach_macro)
9871 (foreach_macro_in_scope): Update.
9872 (macro_source_fullname): Return a std::string.
9873 * macrocmd.c (show_pp_source_pos): Update.
9874
98752019-02-17 Tom Tromey <tom@tromey.com>
9876
9877 * macrocmd.c (show_pp_source_pos): Style the file names.
9878
98792019-02-17 Tom Tromey <tom@tromey.com>
9880
9881 PR tui/24197:
9882 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9883
98842019-02-17 Tom Tromey <tom@tromey.com>
9885
9886 * ada-lang.c (user_select_syms): Use filtered printing.
9887 * utils.c (wrap_style): New global.
9888 (desired_style): Remove.
9889 (emit_style_escape): Add stream parameter.
9890 (set_output_style, reset_terminal_style, prompt_for_continue):
9891 Update.
9892 (flush_wrap_buffer): Only flush gdb_stdout.
9893 (wrap_here): Set wrap_style.
9894 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9895 treat escape sequences as a character. Change when wrap buffer is
9896 flushed.
9897 (fputs_styled): Do not set the output style when the default is
9898 requested.
9899 * ui-style.h (struct ui_file_style) <is_default>: New method.
9900 * source.c (print_source_lines_base): Emit escape sequences in one
9901 piece.
9902
99032019-02-17 Joel Brobecker <brobecker@adacore.com>
9904
9905 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9906 integers and enumeration types.
9907
99082019-02-17 Joel Brobecker <brobecker@adacore.com>
9909
9910 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9911 instead of lookup_symbol_in_language
9912 (do_exact_match): New function.
9913 (ada_get_symbol_name_matcher): Return do_exact_match when
9914 doing a verbatim match.
9915
99162019-02-15 Tom Tromey <tromey@adacore.com>
9917
9918 * ravenscar-thread.c (ravenscar_thread_target::resume)
9919 (ravenscar_thread_target::wait): Special case wildcard requests.
9920
99212019-02-15 Tom Tromey <tromey@adacore.com>
9922
9923 * ravenscar-thread.c (base_ptid): Remove.
9924 (struct ravenscar_thread_target) <close>: New method.
9925 <m_base_ptid>: New member.
9926 <update_inferior_ptid, active_task, task_is_currently_active,
9927 runtime_initialized>: Declare methods.
9928 <ravenscar_thread_target>: Add constructor.
9929 (ravenscar_thread_target::task_is_currently_active)
9930 (ravenscar_thread_target::update_inferior_ptid)
9931 (ravenscar_runtime_initialized): Rename. Now methods.
9932 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9933 (ravenscar_thread_target::update_thread_list): Update.
9934 (ravenscar_thread_target::active_task): Now method.
9935 (ravenscar_thread_target::store_registers)
9936 (ravenscar_thread_target::prepare_to_store)
9937 (ravenscar_thread_target::prepare_to_store)
9938 (ravenscar_thread_target::mourn_inferior): Update.
9939 (ravenscar_inferior_created): Use "new" to create target.
9940 (ravenscar_thread_target::get_ada_task_ptid): Update.
9941 (_initialize_ravenscar): Don't initialize base_ptid.
9942 (ravenscar_ops): Remove global.
9943
99442019-02-15 Tom Tromey <tromey@adacore.com>
9945
9946 * target.h (push_target): Declare new overload.
9947 * target.c (push_target): New overload, taking an rvalue reference.
9948 * remote.c (remote_target::open_1): Use push_target overload.
9949 * corelow.c (core_target_open): Use push_target overload.
9950
99512019-02-15 Tom Tromey <tromey@adacore.com>
9952
9953 * ravenscar-thread.c (is_ravenscar_task)
9954 (ravenscar_task_is_currently_active): Return bool.
9955 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9956 (_initialize_ravenscar): Remove "(void)".
9957 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9958 Return bool.
9959
99602019-02-15 Tom Tromey <tromey@adacore.com>
9961
9962 * ravenscar-thread.c (ravenscar_runtime_initializer)
9963 (has_ravenscar_runtime, get_running_thread_id)
9964 (ravenscar_thread_target::resume): Fix indentation.
9965
99662019-02-15 Tom Tromey <tromey@adacore.com>
9967
9968 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9969 from ravenscar_arch_ops.
9970 (sparc_ravenscar_ops::fetch_registers)
9971 (sparc_ravenscar_ops::store_registers): Now methods.
9972 (sparc_ravenscar_prepare_to_store): Remove.
9973 (sparc_ravenscar_ops): Redefine.
9974 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9975 methods and destructor. Remove members.
9976 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9977 (ravenscar_thread_target::store_registers)
9978 (ravenscar_thread_target::prepare_to_store): Update.
9979 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9980 Remove.
9981 (struct ppc_ravenscar_powerpc_ops): Derive from
9982 ravenscar_arch_ops.
9983 (ppc_ravenscar_powerpc_ops::fetch_registers)
9984 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9985 (ppc_ravenscar_powerpc_ops): Redefine.
9986 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9987 (ppc_ravenscar_e500_ops::fetch_registers)
9988 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9989 (ppc_ravenscar_e500_ops): Redefine.
9990 * aarch64-ravenscar-thread.c
9991 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9992 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9993 (aarch64_ravenscar_fetch_registers)
9994 (aarch64_ravenscar_store_registers): Now methods.
9995 (aarch64_ravenscar_ops): Redefine.
9996
99972019-02-15 Tom Tromey <tromey@adacore.com>
9998
9999 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
10000 (ravenscar_thread_target::stopped_by_hw_breakpoint)
10001 (ravenscar_thread_target::stopped_by_watchpoint)
10002 (ravenscar_thread_target::stopped_data_address)
10003 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
10004
100052019-02-15 Tom Tromey <tromey@adacore.com>
10006
10007 * ravenscar-thread.c: Fix some typos.
10008
100092019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10010 Tom Tromey <tromey@adacore.com>
10011
10012 * ada-lang.c (ada_exception_sal): Change addr_string to a
10013 std::string.
10014 (create_ada_exception_catchpoint): Update.
10015
100162019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10017 Tom Tromey <tromey@adacore.com>
10018
10019 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
10020 (bp_location_ops): Remove.
10021 (base_breakpoint_allocate_location): Update.
10022 (free_bp_location): Update.
10023 * ada-lang.c (class ada_catchpoint_location)
10024 <ada_catchpoint_location>: Remove ops parameter.
10025 (ada_catchpoint_location_dtor): Remove.
10026 (ada_catchpoint_location_ops): Remove.
10027 (allocate_location_exception): Update.
10028 * breakpoint.h (struct bp_location_ops): Remove.
10029 (class bp_location) <bp_location>: Remove bp_location_ops
10030 parameter.
10031 <~bp_location>: Add destructor.
10032 <ops>: Remove.
10033
100342019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10035 Pedro Alves <palves@redhat.com>
10036
10037 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
10038 'PATH_MAX'.
10039
100402019-02-14 David Michael <fedora.dm0@gmail.com>
10041 Samuel Thibault <samuel.thibault@gnu.org>
10042 Thomas Schwinge <thomas@codesourcery.com>
10043
10044 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
10045 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
10046
100472019-02-14 Thomas Schwinge <thomas@codesourcery.com>
10048
10049 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
10050 (check_empty): Use "const char *".
10051
10052 * gnu-nat.c (gnu_nat_target::detach): Instead of
10053 'detach_inferior (pid)' call
10054 'detach_inferior (find_inferior_pid (pid))'.
10055
10056 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
10057 'nat/fork-inferior.o'.
10058 * gnu-nat.c: #include "nat/fork-inferior.h".
10059
10060 * gnu-nat.c (gnu_nat_target::detach): Instead of
10061 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
10062 * gnu-nat.h: #include "inf-child.h".
10063 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
10064 'i386_gnu_nat_target::fetch_registers'.
10065 (gnu_store_registers): Rename/move to
10066 'i386_gnu_nat_target::store_registers'.
10067
10068 * config/i386/nm-i386gnu.h: Don't "#include" any files.
10069 * gnu-nat.h (mach_thread_info): New function.
10070 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
10071
10072 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
10073
100742019-02-14 Frederic Konrad <konrad@adacore.com>
10075
10076 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
10077
100782019-02-14 Joel Brobecker <brobecker@adacore.com>
10079
10080 * windows-nat.c (windows_add_thread): Add new parameter
10081 "main_thread_p" with default value set to false. Update
10082 function documentation as well as all callers.
10083 (windows_delete_thread): Likewise.
10084 (fake_create_process): Update call to windows_add_thread.
10085 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
10086 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
10087 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
10088 call to windows_delete_thread.
10089
100902019-02-13 Simon Marchi <simon.marchi@ericsson.com>
10091
10092 * MAINTAINERS: Add Andrew Burgess as global maintainer.
10093
100942019-02-12 John Baldwin <jhb@FreeBSD.org>
10095
10096 * symfile.c (find_separate_debug_file): Use canonical path of
10097 sysroot with child_path instead of gdb_sysroot if it is valid.
10098
100992019-02-12 John Baldwin <jhb@FreeBSD.org>
10100
10101 * symfile.c (find_separate_debug_file): Use child_path to
10102 determine if an object file is under a sysroot.
10103
101042019-02-12 John Baldwin <jhb@FreeBSD.org>
10105
10106 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10107 unittests/child-path-selftests.c.
10108 * common/pathstuff.c (child_path): New function.
10109 * common/pathstuff.h (child_path): New prototype.
10110 * unittests/child-path-selftests.c: New file.
10111
101122019-02-12 John Baldwin <jhb@FreeBSD.org>
10113
10114 * symfile.c (find_separate_debug_file): Look for separate debug
10115 files in debug directories under the sysroot.
10116
101172019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10118
10119 * symtab.h (struct minimal_symbol data_p): New const method.
10120 (struct minimal_symbol text_p): Likewise.
10121 * symtab.c (output_source_filename): Use file name style
10122 to print file name.
10123 (print_symbol_info): Likewise.
10124 (print_msymbol_info): Use address style to print addresses.
10125 Use function name style to print executable text symbols.
10126 (expand_symtab_containing_pc): Use data_p.
10127 (find_pc_sect_compunit_symtab): Likewise.
10128
101292019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10130
10131 * breakpoint.c (describe_other_breakpoints): Use address style
10132 to print addresses.
10133 (say_where): Likewise.
10134
101352019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10136
10137 * ada-typeprint.c (print_func_type): Print function name
10138 style to print function name.
10139 * c-typeprint.c (c_print_type_1): Likewise.
10140
101412019-02-11 Alan Hayward <alan.hayward@arm.com>
10142
10143 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
10144 for execve.
10145
101462019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10147
10148 * c-exp.y (direct_abs_decl): Use emplace_back to record the
10149 type_stack.
10150
101512019-02-10 Joel Brobecker <brobecker@adacore.com>
10152
10153 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
10154 TYPE_CODE_REF types.
10155
101562019-02-08 Jim Wilson <jimw@sifive.com>
10157
10158 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
10159 (riscv_linux_fregset): New.
10160 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
10161
101622019-02-07 Tom Tromey <tom@tromey.com>
10163
10164 * thread.c (thread_cancel_execution_command): Update.
10165 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
10166 methods.
10167 (struct thread_fsm_ops): Remove.
10168 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
10169 (thread_fsm_should_stop, thread_fsm_return_value)
10170 (thread_fsm_set_finished, thread_fsm_finished_p)
10171 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
10172 Don't declare.
10173 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
10174 * infrun.c (clear_proceed_status_thread)
10175 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10176 (print_stop_event): Update.
10177 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10178 Add constructor.
10179 (step_command_fsm_ops): Remove.
10180 (new_step_command_fsm): Remove.
10181 (step_1): Update.
10182 (step_command_fsm::should_stop): Rename from
10183 step_command_fsm_should_stop.
10184 (step_command_fsm::clean_up): Rename from
10185 step_command_fsm_clean_up.
10186 (step_command_fsm::do_async_reply_reason): Rename from
10187 step_command_fsm_async_reply_reason.
10188 (struct until_next_fsm): Inherit from thread_fsm. Add
10189 constructor.
10190 (until_next_fsm_ops): Remove.
10191 (new_until_next_fsm): Remove.
10192 (until_next_fsm::should_stop): Rename from
10193 until_next_fsm_should_stop.
10194 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10195 (until_next_fsm::do_async_reply_reason): Rename from
10196 until_next_fsm_async_reply_reason.
10197 (struct finish_command_fsm): Inherit from thread_fsm. Add
10198 constructor. Change type of breakpoint.
10199 (finish_command_fsm_ops): Remove.
10200 (new_finish_command_fsm): Remove.
10201 (finish_command_fsm::should_stop): Rename from
10202 finish_command_fsm_should_stop.
10203 (finish_command_fsm::clean_up): Rename from
10204 finish_command_fsm_clean_up.
10205 (finish_command_fsm::return_value): Rename from
10206 finish_command_fsm_return_value.
10207 (finish_command_fsm::do_async_reply_reason): Rename from
10208 finish_command_fsm_async_reply_reason.
10209 (finish_command): Update.
10210 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10211 Add constructor.
10212 (call_thread_fsm_ops): Remove.
10213 (call_thread_fsm::call_thread_fsm): Rename from
10214 new_call_thread_fsm.
10215 (call_thread_fsm::should_stop): Rename from
10216 call_thread_fsm_should_stop.
10217 (call_thread_fsm::should_notify_stop): Rename from
10218 call_thread_fsm_should_notify_stop.
10219 (run_inferior_call, call_function_by_hand_dummy): Update.
10220 * cli/cli-interp.c (should_print_stop_to_console): Update.
10221 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10222 Add constructor. Change type of location_breakpoint,
10223 caller_breakpoint.
10224 (until_break_fsm_ops): Remove.
10225 (new_until_break_fsm): Remove.
10226 (until_break_fsm::should_stop): Rename from
10227 until_break_fsm_should_stop.
10228 (until_break_fsm::clean_up): Rename from
10229 until_break_fsm_clean_up.
10230 (until_break_fsm::do_async_reply_reason): Rename from
10231 until_break_fsm_async_reply_reason.
10232 (until_break_command): Update.
10233 * thread-fsm.c: Remove.
10234 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10235
102362019-02-07 Tom Tromey <tom@tromey.com>
10237
10238 * yy-remap.h: Add include guard.
10239 * xtensa-tdep.h: Add include guard.
10240 * xcoffread.h: Rename include guard.
10241 * varobj-iter.h: Add include guard.
10242 * tui/tui.h: Rename include guard.
10243 * tui/tui-winsource.h: Rename include guard.
10244 * tui/tui-wingeneral.h: Rename include guard.
10245 * tui/tui-windata.h: Rename include guard.
10246 * tui/tui-win.h: Rename include guard.
10247 * tui/tui-stack.h: Rename include guard.
10248 * tui/tui-source.h: Rename include guard.
10249 * tui/tui-regs.h: Rename include guard.
10250 * tui/tui-out.h: Rename include guard.
10251 * tui/tui-layout.h: Rename include guard.
10252 * tui/tui-io.h: Rename include guard.
10253 * tui/tui-hooks.h: Rename include guard.
10254 * tui/tui-file.h: Rename include guard.
10255 * tui/tui-disasm.h: Rename include guard.
10256 * tui/tui-data.h: Rename include guard.
10257 * tui/tui-command.h: Rename include guard.
10258 * tic6x-tdep.h: Add include guard.
10259 * target/waitstatus.h: Rename include guard.
10260 * target/wait.h: Rename include guard.
10261 * target/target.h: Rename include guard.
10262 * target/resume.h: Rename include guard.
10263 * target-float.h: Rename include guard.
10264 * stabsread.h: Add include guard.
10265 * rs6000-tdep.h: Add include guard.
10266 * riscv-fbsd-tdep.h: Add include guard.
10267 * regformats/regdef.h: Rename include guard.
10268 * record.h: Rename include guard.
10269 * python/python.h: Rename include guard.
10270 * python/python-internal.h: Rename include guard.
10271 * python/py-stopevent.h: Rename include guard.
10272 * python/py-ref.h: Rename include guard.
10273 * python/py-record.h: Rename include guard.
10274 * python/py-record-full.h: Rename include guard.
10275 * python/py-record-btrace.h: Rename include guard.
10276 * python/py-instruction.h: Rename include guard.
10277 * python/py-events.h: Rename include guard.
10278 * python/py-event.h: Rename include guard.
10279 * procfs.h: Add include guard.
10280 * proc-utils.h: Add include guard.
10281 * p-lang.h: Add include guard.
10282 * or1k-tdep.h: Rename include guard.
10283 * observable.h: Rename include guard.
10284 * nto-tdep.h: Rename include guard.
10285 * nat/x86-linux.h: Rename include guard.
10286 * nat/x86-linux-dregs.h: Rename include guard.
10287 * nat/x86-gcc-cpuid.h: Add include guard.
10288 * nat/x86-dregs.h: Rename include guard.
10289 * nat/x86-cpuid.h: Rename include guard.
10290 * nat/ppc-linux.h: Rename include guard.
10291 * nat/mips-linux-watch.h: Rename include guard.
10292 * nat/linux-waitpid.h: Rename include guard.
10293 * nat/linux-ptrace.h: Rename include guard.
10294 * nat/linux-procfs.h: Rename include guard.
10295 * nat/linux-osdata.h: Rename include guard.
10296 * nat/linux-nat.h: Rename include guard.
10297 * nat/linux-namespaces.h: Rename include guard.
10298 * nat/linux-btrace.h: Rename include guard.
10299 * nat/glibc_thread_db.h: Rename include guard.
10300 * nat/gdb_thread_db.h: Rename include guard.
10301 * nat/gdb_ptrace.h: Rename include guard.
10302 * nat/fork-inferior.h: Rename include guard.
10303 * nat/amd64-linux-siginfo.h: Rename include guard.
10304 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10305 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10306 * nat/aarch64-linux.h: Rename include guard.
10307 * nat/aarch64-linux-hw-point.h: Rename include guard.
10308 * mn10300-tdep.h: Add include guard.
10309 * mips-linux-tdep.h: Add include guard.
10310 * mi/mi-parse.h: Rename include guard.
10311 * mi/mi-out.h: Rename include guard.
10312 * mi/mi-main.h: Rename include guard.
10313 * mi/mi-interp.h: Rename include guard.
10314 * mi/mi-getopt.h: Rename include guard.
10315 * mi/mi-console.h: Rename include guard.
10316 * mi/mi-common.h: Rename include guard.
10317 * mi/mi-cmds.h: Rename include guard.
10318 * mi/mi-cmd-break.h: Rename include guard.
10319 * m2-lang.h: Add include guard.
10320 * location.h: Rename include guard.
10321 * linux-record.h: Rename include guard.
10322 * linux-nat.h: Add include guard.
10323 * linux-fork.h: Add include guard.
10324 * i386-darwin-tdep.h: Rename include guard.
10325 * hppa-linux-offsets.h: Add include guard.
10326 * guile/guile.h: Rename include guard.
10327 * guile/guile-internal.h: Rename include guard.
10328 * gnu-nat.h: Rename include guard.
10329 * gdb-stabs.h: Rename include guard.
10330 * frv-tdep.h: Add include guard.
10331 * f-lang.h: Add include guard.
10332 * event-loop.h: Add include guard.
10333 * darwin-nat.h: Rename include guard.
10334 * cp-abi.h: Rename include guard.
10335 * config/sparc/nm-sol2.h: Rename include guard.
10336 * config/nm-nto.h: Rename include guard.
10337 * config/nm-linux.h: Add include guard.
10338 * config/i386/nm-i386gnu.h: Rename include guard.
10339 * config/djgpp/nl_types.h: Rename include guard.
10340 * config/djgpp/langinfo.h: Rename include guard.
10341 * compile/gcc-cp-plugin.h: Add include guard.
10342 * compile/gcc-c-plugin.h: Add include guard.
10343 * compile/compile.h: Rename include guard.
10344 * compile/compile-object-run.h: Rename include guard.
10345 * compile/compile-object-load.h: Rename include guard.
10346 * compile/compile-internal.h: Rename include guard.
10347 * compile/compile-cplus.h: Rename include guard.
10348 * compile/compile-c.h: Rename include guard.
10349 * common/xml-utils.h: Rename include guard.
10350 * common/x86-xstate.h: Rename include guard.
10351 * common/version.h: Rename include guard.
10352 * common/vec.h: Rename include guard.
10353 * common/tdesc.h: Rename include guard.
10354 * common/selftest.h: Rename include guard.
10355 * common/scoped_restore.h: Rename include guard.
10356 * common/scoped_mmap.h: Rename include guard.
10357 * common/scoped_fd.h: Rename include guard.
10358 * common/safe-iterator.h: Rename include guard.
10359 * common/run-time-clock.h: Rename include guard.
10360 * common/refcounted-object.h: Rename include guard.
10361 * common/queue.h: Rename include guard.
10362 * common/ptid.h: Rename include guard.
10363 * common/print-utils.h: Rename include guard.
10364 * common/preprocessor.h: Rename include guard.
10365 * common/pathstuff.h: Rename include guard.
10366 * common/observable.h: Rename include guard.
10367 * common/netstuff.h: Rename include guard.
10368 * common/job-control.h: Rename include guard.
10369 * common/host-defs.h: Rename include guard.
10370 * common/gdb_wait.h: Rename include guard.
10371 * common/gdb_vecs.h: Rename include guard.
10372 * common/gdb_unlinker.h: Rename include guard.
10373 * common/gdb_unique_ptr.h: Rename include guard.
10374 * common/gdb_tilde_expand.h: Rename include guard.
10375 * common/gdb_sys_time.h: Rename include guard.
10376 * common/gdb_string_view.h: Rename include guard.
10377 * common/gdb_splay_tree.h: Rename include guard.
10378 * common/gdb_setjmp.h: Rename include guard.
10379 * common/gdb_ref_ptr.h: Rename include guard.
10380 * common/gdb_optional.h: Rename include guard.
10381 * common/gdb_locale.h: Rename include guard.
10382 * common/gdb_assert.h: Rename include guard.
10383 * common/filtered-iterator.h: Rename include guard.
10384 * common/filestuff.h: Rename include guard.
10385 * common/fileio.h: Rename include guard.
10386 * common/environ.h: Rename include guard.
10387 * common/common-utils.h: Rename include guard.
10388 * common/common-types.h: Rename include guard.
10389 * common/common-regcache.h: Rename include guard.
10390 * common/common-inferior.h: Rename include guard.
10391 * common/common-gdbthread.h: Rename include guard.
10392 * common/common-exceptions.h: Rename include guard.
10393 * common/common-defs.h: Rename include guard.
10394 * common/common-debug.h: Rename include guard.
10395 * common/cleanups.h: Rename include guard.
10396 * common/buffer.h: Rename include guard.
10397 * common/btrace-common.h: Rename include guard.
10398 * common/break-common.h: Rename include guard.
10399 * cli/cli-utils.h: Rename include guard.
10400 * cli/cli-style.h: Rename include guard.
10401 * cli/cli-setshow.h: Rename include guard.
10402 * cli/cli-script.h: Rename include guard.
10403 * cli/cli-interp.h: Rename include guard.
10404 * cli/cli-decode.h: Rename include guard.
10405 * cli/cli-cmds.h: Rename include guard.
10406 * charset-list.h: Add include guard.
10407 * buildsym-legacy.h: Rename include guard.
10408 * bfin-tdep.h: Add include guard.
10409 * ax.h: Rename include guard.
10410 * arm-linux-tdep.h: Add include guard.
10411 * arm-fbsd-tdep.h: Add include guard.
10412 * arch/xtensa.h: Rename include guard.
10413 * arch/tic6x.h: Add include guard.
10414 * arch/i386.h: Add include guard.
10415 * arch/arm.h: Rename include guard.
10416 * arch/arm-linux.h: Rename include guard.
10417 * arch/arm-get-next-pcs.h: Rename include guard.
10418 * arch/amd64.h: Add include guard.
10419 * arch/aarch64-insn.h: Rename include guard.
10420 * arch-utils.h: Rename include guard.
10421 * annotate.h: Add include guard.
10422 * amd64-darwin-tdep.h: Rename include guard.
10423 * aarch64-linux-tdep.h: Add include guard.
10424 * aarch64-fbsd-tdep.h: Add include guard.
10425 * aarch32-linux-nat.h: Add include guard.
10426
104272019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10428
10429 * macrotab.c (macro_define_internal): New function that
10430 factorizes macro_define_object_internal and macro_define_function
10431 code.
10432 (macro_define_object_internal): Use macro_define_internal.
10433 (macro_define_function): Likewise.
10434
104352019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10436
10437 * macrocmd.c (extract_identifier): Return
10438 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10439 callers.
10440
104412019-02-06 John Baldwin <jhb@FreeBSD.org>
10442
10443 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10444
104452019-02-05 Tom Tromey <tom@tromey.com>
10446
10447 * target.c (target_stack::unpush): Move assertion earlier.
10448
104492019-01-30 Tom Tromey <tom@tromey.com>
10450
10451 PR python/23615:
10452 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10453 (gdbpy_parse_and_eval): Likewise.
10454 * python/python-internal.h (gdbpy_allow_threads): New class.
10455
104562019-01-28 John Baldwin <jhb@FreeBSD.org>
10457
10458 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10459 (aarch64_fbsd_fpregmap): Move earlier.
10460 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10461 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10462 instead of individual calls to trad_frame_set_reg_addr.
10463 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10464 earlier.
10465 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10466 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10467 instead of individual calls to trad_frame_set_reg_addr.
10468
104692019-01-28 Alan Hayward <alan.hayward@arm.com>
10470
10471 * CONTRIBUTE: Replace contribution list with wiki link.
10472
104732019-01-25 Tom Tromey <tom@tromey.com>
10474
10475 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10476
104772019-01-25 Tom Tromey <tom@tromey.com>
10478
10479 * xtensa-linux-nat.c: Fix common/ includes.
10480 * xml-support.h: Fix common/ includes.
10481 * xml-support.c: Fix common/ includes.
10482 * x86-linux-nat.c: Fix common/ includes.
10483 * windows-nat.c: Fix common/ includes.
10484 * varobj.h: Fix common/ includes.
10485 * varobj.c: Fix common/ includes.
10486 * value.c: Fix common/ includes.
10487 * valops.c: Fix common/ includes.
10488 * utils.c: Fix common/ includes.
10489 * unittests/xml-utils-selftests.c: Fix common/ includes.
10490 * unittests/utils-selftests.c: Fix common/ includes.
10491 * unittests/unpack-selftests.c: Fix common/ includes.
10492 * unittests/tracepoint-selftests.c: Fix common/ includes.
10493 * unittests/style-selftests.c: Fix common/ includes.
10494 * unittests/string_view-selftests.c: Fix common/ includes.
10495 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10496 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10497 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10498 * unittests/rsp-low-selftests.c: Fix common/ includes.
10499 * unittests/parse-connection-spec-selftests.c: Fix common/
10500 includes.
10501 * unittests/optional-selftests.c: Fix common/ includes.
10502 * unittests/offset-type-selftests.c: Fix common/ includes.
10503 * unittests/observable-selftests.c: Fix common/ includes.
10504 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10505 * unittests/memrange-selftests.c: Fix common/ includes.
10506 * unittests/memory-map-selftests.c: Fix common/ includes.
10507 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10508 * unittests/function-view-selftests.c: Fix common/ includes.
10509 * unittests/environ-selftests.c: Fix common/ includes.
10510 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10511 * unittests/common-utils-selftests.c: Fix common/ includes.
10512 * unittests/cli-utils-selftests.c: Fix common/ includes.
10513 * unittests/array-view-selftests.c: Fix common/ includes.
10514 * ui-file.c: Fix common/ includes.
10515 * tui/tui-io.c: Fix common/ includes.
10516 * tracepoint.h: Fix common/ includes.
10517 * tracepoint.c: Fix common/ includes.
10518 * tracefile-tfile.c: Fix common/ includes.
10519 * top.h: Fix common/ includes.
10520 * top.c: Fix common/ includes.
10521 * thread.c: Fix common/ includes.
10522 * target/waitstatus.h: Fix common/ includes.
10523 * target/waitstatus.c: Fix common/ includes.
10524 * target.h: Fix common/ includes.
10525 * target.c: Fix common/ includes.
10526 * target-memory.c: Fix common/ includes.
10527 * target-descriptions.c: Fix common/ includes.
10528 * symtab.h: Fix common/ includes.
10529 * symfile.c: Fix common/ includes.
10530 * stap-probe.c: Fix common/ includes.
10531 * spu-linux-nat.c: Fix common/ includes.
10532 * sparc-nat.c: Fix common/ includes.
10533 * source.c: Fix common/ includes.
10534 * solib.c: Fix common/ includes.
10535 * solib-target.c: Fix common/ includes.
10536 * ser-unix.c: Fix common/ includes.
10537 * ser-tcp.c: Fix common/ includes.
10538 * ser-pipe.c: Fix common/ includes.
10539 * ser-base.c: Fix common/ includes.
10540 * selftest-arch.c: Fix common/ includes.
10541 * s12z-tdep.c: Fix common/ includes.
10542 * rust-exp.y: Fix common/ includes.
10543 * rs6000-aix-tdep.c: Fix common/ includes.
10544 * riscv-tdep.c: Fix common/ includes.
10545 * remote.c: Fix common/ includes.
10546 * remote-notif.h: Fix common/ includes.
10547 * remote-fileio.h: Fix common/ includes.
10548 * remote-fileio.c: Fix common/ includes.
10549 * regcache.h: Fix common/ includes.
10550 * regcache.c: Fix common/ includes.
10551 * record-btrace.c: Fix common/ includes.
10552 * python/python.c: Fix common/ includes.
10553 * python/py-type.c: Fix common/ includes.
10554 * python/py-inferior.c: Fix common/ includes.
10555 * progspace.h: Fix common/ includes.
10556 * producer.c: Fix common/ includes.
10557 * procfs.c: Fix common/ includes.
10558 * proc-api.c: Fix common/ includes.
10559 * printcmd.c: Fix common/ includes.
10560 * ppc-linux-nat.c: Fix common/ includes.
10561 * parser-defs.h: Fix common/ includes.
10562 * osdata.c: Fix common/ includes.
10563 * obsd-nat.c: Fix common/ includes.
10564 * nat/x86-linux.c: Fix common/ includes.
10565 * nat/x86-linux-dregs.c: Fix common/ includes.
10566 * nat/x86-dregs.h: Fix common/ includes.
10567 * nat/x86-dregs.c: Fix common/ includes.
10568 * nat/ppc-linux.c: Fix common/ includes.
10569 * nat/mips-linux-watch.h: Fix common/ includes.
10570 * nat/mips-linux-watch.c: Fix common/ includes.
10571 * nat/linux-waitpid.c: Fix common/ includes.
10572 * nat/linux-ptrace.h: Fix common/ includes.
10573 * nat/linux-ptrace.c: Fix common/ includes.
10574 * nat/linux-procfs.c: Fix common/ includes.
10575 * nat/linux-personality.c: Fix common/ includes.
10576 * nat/linux-osdata.c: Fix common/ includes.
10577 * nat/linux-namespaces.c: Fix common/ includes.
10578 * nat/linux-btrace.h: Fix common/ includes.
10579 * nat/linux-btrace.c: Fix common/ includes.
10580 * nat/fork-inferior.c: Fix common/ includes.
10581 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10582 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10583 * nat/aarch64-linux.c: Fix common/ includes.
10584 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10585 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10586 * namespace.h: Fix common/ includes.
10587 * mips-linux-tdep.c: Fix common/ includes.
10588 * minsyms.c: Fix common/ includes.
10589 * mi/mi-parse.h: Fix common/ includes.
10590 * mi/mi-main.c: Fix common/ includes.
10591 * mi/mi-cmd-env.c: Fix common/ includes.
10592 * memrange.h: Fix common/ includes.
10593 * memattr.c: Fix common/ includes.
10594 * maint.h: Fix common/ includes.
10595 * maint.c: Fix common/ includes.
10596 * main.c: Fix common/ includes.
10597 * machoread.c: Fix common/ includes.
10598 * location.c: Fix common/ includes.
10599 * linux-thread-db.c: Fix common/ includes.
10600 * linux-nat.c: Fix common/ includes.
10601 * linux-fork.c: Fix common/ includes.
10602 * inline-frame.c: Fix common/ includes.
10603 * infrun.c: Fix common/ includes.
10604 * inflow.c: Fix common/ includes.
10605 * inferior.h: Fix common/ includes.
10606 * inferior.c: Fix common/ includes.
10607 * infcmd.c: Fix common/ includes.
10608 * inf-ptrace.c: Fix common/ includes.
10609 * inf-child.c: Fix common/ includes.
10610 * ia64-linux-nat.c: Fix common/ includes.
10611 * i387-tdep.c: Fix common/ includes.
10612 * i386-tdep.c: Fix common/ includes.
10613 * i386-linux-tdep.c: Fix common/ includes.
10614 * i386-linux-nat.c: Fix common/ includes.
10615 * i386-go32-tdep.c: Fix common/ includes.
10616 * i386-fbsd-tdep.c: Fix common/ includes.
10617 * i386-fbsd-nat.c: Fix common/ includes.
10618 * guile/scm-type.c: Fix common/ includes.
10619 * guile/guile.c: Fix common/ includes.
10620 * go32-nat.c: Fix common/ includes.
10621 * gnu-nat.c: Fix common/ includes.
10622 * gdbthread.h: Fix common/ includes.
10623 * gdbarch-selftests.c: Fix common/ includes.
10624 * gdb_usleep.c: Fix common/ includes.
10625 * gdb_select.h: Fix common/ includes.
10626 * gdb_bfd.c: Fix common/ includes.
10627 * gcore.c: Fix common/ includes.
10628 * fork-child.c: Fix common/ includes.
10629 * findvar.c: Fix common/ includes.
10630 * fbsd-nat.c: Fix common/ includes.
10631 * event-top.c: Fix common/ includes.
10632 * event-loop.c: Fix common/ includes.
10633 * dwarf2read.c: Fix common/ includes.
10634 * dwarf2loc.c: Fix common/ includes.
10635 * dwarf2-frame.c: Fix common/ includes.
10636 * dwarf-index-cache.c: Fix common/ includes.
10637 * dtrace-probe.c: Fix common/ includes.
10638 * disasm-selftests.c: Fix common/ includes.
10639 * defs.h: Fix common/ includes.
10640 * csky-tdep.c: Fix common/ includes.
10641 * cp-valprint.c: Fix common/ includes.
10642 * cp-support.h: Fix common/ includes.
10643 * cp-support.c: Fix common/ includes.
10644 * corelow.c: Fix common/ includes.
10645 * completer.h: Fix common/ includes.
10646 * completer.c: Fix common/ includes.
10647 * compile/compile.c: Fix common/ includes.
10648 * compile/compile-loc2c.c: Fix common/ includes.
10649 * compile/compile-cplus-types.c: Fix common/ includes.
10650 * compile/compile-cplus-symbols.c: Fix common/ includes.
10651 * command.h: Fix common/ includes.
10652 * cli/cli-dump.c: Fix common/ includes.
10653 * cli/cli-cmds.c: Fix common/ includes.
10654 * charset.c: Fix common/ includes.
10655 * build-id.c: Fix common/ includes.
10656 * btrace.h: Fix common/ includes.
10657 * btrace.c: Fix common/ includes.
10658 * breakpoint.h: Fix common/ includes.
10659 * breakpoint.c: Fix common/ includes.
10660 * ax.h:
10661 (enum agent_op): Fix common/ includes.
10662 * ax-general.c (struct aop_map): Fix common/ includes.
10663 * ax-gdb.c: Fix common/ includes.
10664 * auxv.c: Fix common/ includes.
10665 * auto-load.c: Fix common/ includes.
10666 * arm-tdep.c: Fix common/ includes.
10667 * arch/riscv.c: Fix common/ includes.
10668 * arch/ppc-linux-common.c: Fix common/ includes.
10669 * arch/i386.c: Fix common/ includes.
10670 * arch/arm.c: Fix common/ includes.
10671 * arch/arm-linux.c: Fix common/ includes.
10672 * arch/arm-get-next-pcs.c: Fix common/ includes.
10673 * arch/amd64.c: Fix common/ includes.
10674 * arch/aarch64.c: Fix common/ includes.
10675 * arch/aarch64-insn.c: Fix common/ includes.
10676 * arch-utils.c: Fix common/ includes.
10677 * amd64-windows-tdep.c: Fix common/ includes.
10678 * amd64-tdep.c: Fix common/ includes.
10679 * amd64-sol2-tdep.c: Fix common/ includes.
10680 * amd64-obsd-tdep.c: Fix common/ includes.
10681 * amd64-nbsd-tdep.c: Fix common/ includes.
10682 * amd64-linux-tdep.c: Fix common/ includes.
10683 * amd64-linux-nat.c: Fix common/ includes.
10684 * amd64-fbsd-tdep.c: Fix common/ includes.
10685 * amd64-fbsd-nat.c: Fix common/ includes.
10686 * amd64-dicos-tdep.c: Fix common/ includes.
10687 * amd64-darwin-tdep.c: Fix common/ includes.
10688 * agent.c: Fix common/ includes.
10689 * ada-lang.h: Fix common/ includes.
10690 * ada-lang.c: Fix common/ includes.
10691 * aarch64-tdep.c: Fix common/ includes.
10692
106932019-01-25 Tom Tromey <tom@tromey.com>
10694
10695 * common/create-version.sh: Use common/version.h.
10696
106972019-01-24 Pedro Alves <palves@redhat.com>
10698
10699 * infrun.c (signal_stop, signal_print, signal_program)
10700 (signal_catch, signal_pass): Now arrays instead of pointers.
10701 (update_signals_program_target, do_target_resume)
10702 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10703 * linux-nat.c (linux_nat_target::pass_signals)
10704 (linux_nat_target::create_inferior, linux_nat_target::attach):
10705 Adjust.
10706 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10707 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10708 * procfs.c (procfs_target::pass_signals): Adjust.
10709 * record-full.c (record_full_target::resume): Adjust.
10710 * remote.c (remote_target::pass_signals)
10711 (remote_target::program_signals): Adjust.
10712 * target-debug.h (target_debug_print_signals): Now takes a
10713 gdb::array_view as parameter. Adjust.
10714 * target.h (target_ops) <pass_signals, program_signals>: Replace
10715 pointer and length parameters with gdb::array_view.
10716 (target_pass_signals, target_program_signals): Likewise.
10717 * target-delegates.c: Regenerate.
10718
107192019-01-24 Pedro Alves <palves@redhat.com>
10720
10721 * common/forward-scope-exit.h
10722 (forward_scope_exit::forward_scope_exit): Pass arguments to
10723 m_bind_function directly, instead of creating a std::bind and
10724 copying that.
10725
107262019-01-24 Alan Hayward <alan.hayward@arm.com>
10727
10728 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10729 for static members.
10730 (pass_in_v_vfp_candidate): Likewise.
10731
107322019-01-23 Tom Tromey <tom@tromey.com>
10733 Pedro Alves <palves@redhat.com>
10734
10735 * regcache.c (class regcache_invalidator): Remove.
10736 (regcache::raw_write): Use make_scope_exit.
10737
107382019-01-23 Tom Tromey <tom@tromey.com>
10739
10740 * ui-out.h (class ui_out_emit_type): Update comment.
10741
107422019-01-23 Tom Tromey <tom@tromey.com>
10743
10744 * infrun.c (fetch_inferior_event): Update comment.
10745
107462019-01-23 Tom Tromey <tom@tromey.com>
10747 Pedro Alves <palves@redhat.com>
10748
10749 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10750 parameter.
10751 (fetch_inferior_event): Use SCOPE_EXIT.
10752
10753
107542019-01-23 Tom Tromey <tom@tromey.com>
10755 Pedro Alves <palves@redhat.com>
10756
10757 * infrun.c (disable_thread_events): Delete.
10758 (stop_all_threads): Use SCOPE_EXIT.
10759
107602019-01-23 Tom Tromey <tom@tromey.com>
10761 Pedro Alves <palves@redhat.com>
10762
10763 * symfile.c: Include forward-scope-exit.h.
10764 (clear_symtab_users_cleanup): Replace forward declaration with
10765 a FORWARD_SCOPE_EXIT.
10766 (syms_from_objfile_1): Use the forward_scope_exit and
10767 gdb::optional instead of cleanup_function.
10768 (reread_symbols): Use the forward_scope_exit instead of
10769 cleanup_function.
10770 (clear_symtab_users_cleanup): Remove function.
10771
107722019-01-23 Tom Tromey <tom@tromey.com>
10773 Pedro Alves <palves@redhat.com>
10774
10775 * linux-nat.c: Include scope-exit.h.
10776 (cleanup_target_stop): Remove.
10777 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10778 SCOPE_EXIT.
10779
107802019-01-23 Tom Tromey <tom@tromey.com>
10781 Pedro Alves <palves@redhat.com>
10782
10783 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10784 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10785
107862019-01-23 Tom Tromey <tom@tromey.com>
10787 Andrew Burgess <andrew.burgess@embecosm.com>
10788 Pedro Alves <palves@redhat.com>
10789
10790 * infrun.c (fetch_inferior_event): Use scope_exit.
10791 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10792 * top.c (execute_command): Use scope_exit.
10793 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10794 * utils.c (do_bpstat_clear_actions_cleanup)
10795 (make_bpstat_clear_actions_cleanup): Remove.
10796
107972019-01-23 Tom Tromey <tom@tromey.com>
10798 Pedro Alves <palves@redhat.com>
10799
10800 * infrun.c: Include "common/scope-exit.h"
10801 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10802 (wait_for_inferior): Use SCOPE_EXIT.
10803 (fetch_inferior_event): Use scope_exit.
10804
108052019-01-23 Tom Tromey <tom@tromey.com>
10806 Pedro Alves <palves@redhat.com>
10807
10808 * breakpoint.c (create_breakpoint): Remove cleanup.
10809
108102019-01-23 Tom Tromey <tom@tromey.com>
10811 Andrew Burgess <andrew.burgess@embecosm.com>
10812 Pedro Alves <palves@redhat.com>
10813
108142019-01-23 Pedro Alves <palves@redhat.com>
10815
10816 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10817
108182019-01-23 Pedro Alves <palves@redhat.com>
10819 Andrew Burgess <andrew.burgess@embecosm.com>
10820
10821 * gdbthread.h: Include "common/forward-scope-exit.h".
10822 (scoped_finish_thread_state): Redefine custom class in terms of
10823 forward_scope_exit.
10824
108252019-01-23 Pedro Alves <palves@redhat.com>
10826 Andrew Burgess <andrew.burgess@embecosm.com>
10827
10828 * common/forward-scope-exit.h: New file.
10829
108302019-01-23 Pedro Alves <palves@redhat.com>
10831 Andrew Burgess <andrew.burgess@embecosm.com>
10832 Tom Tromey <tom@tromey.com>
10833
10834 * common/scope-exit.h: New file.
10835
108362019-01-23 Pedro Alves <palves@redhat.com>
10837
10838 * common/preprocessor.h (ESC): Rename to ...
10839 (ESC_PARENS): ... this.
10840 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10841 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10842
108432019-01-23 Tom Tromey <tom@tromey.com>
10844
10845 * language.h (class scoped_switch_to_sym_language_if_auto):
10846 Initialize m_lang in both cases.
10847
108482019-01-23 Alan Hayward <alan.hayward@arm.com>
10849
10850 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10851 with XCNEW.
10852
108532019-01-22 Tom Tromey <tom@tromey.com>
10854
10855 * corelow.c: Do not include sys/file.h.
10856
108572019-01-22 Tom Tromey <tom@tromey.com>
10858
10859 * tui/tui-wingeneral.h: Include gdb_curses.h.
10860
108612019-01-22 Tom Tromey <tom@tromey.com>
10862
10863 * source-cache.h (class source_cache) <get_source_lines,
10864 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10865
108662019-01-22 Tom Tromey <tom@tromey.com>
10867
10868 * remote-fileio.h (struct remote_target): Declare.
10869
108702019-01-22 Tom Tromey <tom@tromey.com>
10871
10872 * python/py-arch.c: Do not include py-ref.h.
10873 * python/py-bpevent.c: Do not include py-ref.h.
10874 * python/py-cmd.c: Do not include py-ref.h.
10875 * python/py-continueevent.c: Do not include py-ref.h.
10876 * python/py-event.h: Do not include py-ref.h.
10877 * python/py-evtregistry.c: Do not include py-ref.h.
10878 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10879 * python/py-frame.c: Do not include py-ref.h.
10880 * python/py-framefilter.c: Do not include py-ref.h.
10881 * python/py-function.c: Do not include py-ref.h.
10882 * python/py-infevents.c: Do not include py-ref.h.
10883 * python/py-linetable.c: Do not include py-ref.h.
10884 * python/py-objfile.c: Do not include py-ref.h.
10885 * python/py-param.c: Do not include py-ref.h.
10886 * python/py-prettyprint.c: Do not include py-ref.h.
10887 * python/py-progspace.c: Do not include py-ref.h.
10888 * python/py-symbol.c: Do not include py-ref.h.
10889 * python/py-symtab.c: Do not include py-ref.h.
10890 * python/py-type.c: Do not include py-ref.h.
10891 * python/py-unwind.c: Do not include py-ref.h.
10892 * python/py-utils.c: Do not include py-ref.h.
10893 * python/py-value.c: Do not include py-ref.h.
10894 * python/py-varobj.c: Do not include py-ref.h.
10895 * python/py-xmethods.c: Do not include py-ref.h.
10896 * python/python.c: Do not include py-ref.h.
10897 * varobj.c: Do not include py-ref.h.
10898
108992019-01-22 Tom Tromey <tom@tromey.com>
10900
10901 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10902 keyword for bcache.
10903
109042019-01-22 Tom Tromey <tom@tromey.com>
10905
10906 * compile/compile-cplus-types.c: Remove a comment by #include.
10907
109082019-01-22 Tom Tromey <tom@tromey.com>
10909
10910 * compile/gcc-c-plugin.h: Include compile-internal.h.
10911
109122019-01-22 Tom Tromey <tom@tromey.com>
10913
10914 * stabsread.c (EXTERN): Do not define.
10915 (symnum, next_symbol_text_func, processing_gcc_compilation)
10916 (within_function, global_sym_chain, global_stabs)
10917 (previous_stab_code, this_object_header_files)
10918 (n_this_object_header_files)
10919 (n_allocated_this_object_header_files): Define.
10920 * stabsread.h (EXTERN): Never define. Use "extern".
10921
109222019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10923
10924 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10925 history_value.
10926
109272019-01-21 Tom Tromey <tom@tromey.com>
10928
10929 * ui-out.c: Fix includes.
10930 * tui/tui-source.c: Fix includes.
10931 * target.c: Fix includes.
10932 * remote.c: Fix includes.
10933 * regcache.c: Fix includes.
10934 * python/py-block.c: Fix includes.
10935 * printcmd.c: Fix includes.
10936 * or1k-tdep.c: Fix includes.
10937 * mi/mi-main.c: Fix includes.
10938 * m32r-tdep.c: Fix includes.
10939 * csky-tdep.c: Fix includes.
10940 * compile/compile-cplus-types.c: Fix includes.
10941 * cli/cli-interp.c: Fix includes.
10942
109432019-01-21 Alan Hayward <alan.hayward@arm.com>
10944
10945 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10946 for padding.
10947
109482019-01-16 Tom Tromey <tom@tromey.com>
10949
10950 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10951 earlier.
10952 (struct objfile) <msymbols_range>: Move from top level.
10953 <msymbols>: New method.
10954 (class objfile_msymbols): Remove.
10955 * symtab.c (default_collect_symbol_completion_matches_break_on):
10956 Update.
10957 * symmisc.c (dump_msymbols): Update.
10958 * stabsread.c (scan_file_globals): Update.
10959 * objc-lang.c (info_selectors_command, info_classes_command)
10960 (find_methods): Update.
10961 * minsyms.c (find_solib_trampoline_target): Update.
10962 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10963 * coffread.c (coff_symfile_read): Update.
10964 * ada-lang.c (ada_lookup_simple_minsym)
10965 (ada_collect_symbol_completion_matches): Update.
10966
109672019-01-16 Tom Tromey <tom@tromey.com>
10968
10969 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10970 type. Remove no-argument constructor.
10971 <iterator::operator++>: Simplify.
10972 <begin>: Update.
10973 <end>: Use minimal_symbol_count.
10974
109752019-01-16 Tom Tromey <tom@tromey.com>
10976
10977 * objfiles.h (struct objfile) <psymtabs>: New method.
10978 (class objfile_psymtabs): Remove.
10979 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10980 typedef.
10981 <range>: New method.
10982 (require_partial_symbols): Change return type.
10983 * psymtab.c (require_partial_symbols)
10984 (psym_expand_symtabs_matching): Update.
10985 * mdebugread.c (parse_partial_symbols): Update.
10986 * dbxread.c (dbx_end_psymtab): Update.
10987
109882019-01-15 Tom Tromey <tom@tromey.com>
10989
10990 * symtab.c (lookup_objfile_from_block)
10991 (lookup_symbol_in_objfile_symtabs)
10992 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10993 (find_line_symtab, info_sources_command)
10994 (default_collect_symbol_completion_matches_break_on)
10995 (make_source_files_completion_list): Update.
10996 * symmisc.c (print_objfile_statistics, dump_objfile)
10997 (maintenance_print_symbols, maintenance_info_symtabs)
10998 (maintenance_check_symtabs, maintenance_info_line_tables):
10999 Update.
11000 * source.c (select_source_symtab)
11001 (forget_cached_source_info_for_objfile): Update.
11002 * objfiles.h (class objfile_compunits): Remove.
11003 (struct objfile) <compunits_range>: New typedef.
11004 (compunits): New method.
11005 * objfiles.c (objfile_relocate1): Update.
11006 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11007 * maint.c (count_symtabs_and_blocks): Update.
11008 * linespec.c (iterate_over_all_matching_symtabs): Update.
11009 * cp-support.c (add_symbol_overload_list_qualified): Update.
11010 * coffread.c (coff_symtab_read): Update.
11011 * ada-lang.c (add_nonlocal_symbols)
11012 (ada_collect_symbol_completion_matches)
11013 (ada_add_global_exceptions): Update.
11014
110152019-01-15 Tom Tromey <tom@tromey.com>
11016
11017 * progspace.h (program_space) <objfiles_safe_range>: New
11018 typedef.
11019 <objfiles_safe>: New method.
11020 * objfiles.h (class all_objfiles_safe): Remove.
11021 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
11022 * jit.c (jit_inferior_exit_hook): Update.
11023
110242019-01-17 Tom Tromey <tom@tromey.com>
11025
11026 * progspace.h (program_space) <objfiles_range>: New typedef.
11027 <objfiles>: New method.
11028 <objfiles_head>: Rename from objfiles.
11029 (object_files): Update.
11030 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
11031 * guile/scm-pretty-print.c
11032 (ppscm_find_pretty_printer_from_objfiles): Update.
11033 * guile/scm-objfile.c (gdbscm_objfiles): Update.
11034 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
11035 Update.
11036 * python/py-progspace.c (pspy_get_objfiles): Update.
11037 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11038 Update.
11039 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11040 (objfpy_lookup_objfile_by_build_id): Update.
11041 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
11042 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11043 Update.
11044 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11045 (expand_symtab_containing_pc, lookup_objfile_from_block)
11046 (lookup_static_symbol, basic_lookup_transparent_type)
11047 (find_pc_sect_compunit_symtab, find_symbol_at_address)
11048 (find_line_symtab, info_sources_command)
11049 (default_collect_symbol_completion_matches_break_on)
11050 (make_source_files_completion_list, find_main_name): Update.
11051 * symmisc.c (print_symbol_bcache_statistics)
11052 (print_objfile_statistics, maintenance_print_symbols)
11053 (maintenance_print_msymbols, maintenance_print_objfiles)
11054 (maintenance_info_symtabs, maintenance_check_symtabs)
11055 (maintenance_expand_symtabs, maintenance_info_line_tables):
11056 Update.
11057 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
11058 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
11059 (map_overlay_command, unmap_overlay_command)
11060 (simple_overlay_update, expand_symtabs_matching)
11061 (map_symbol_filenames): Update.
11062 * symfile-debug.c (set_debug_symfile): Update.
11063 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
11064 Update.
11065 * source.c (select_source_symtab, forget_cached_source_info):
11066 Update.
11067 * solib.c (solib_read_symbols): Update.
11068 * solib-spu.c (append_ocl_sos): Update.
11069 * psymtab.c (maintenance_print_psymbols)
11070 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
11071 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
11072 * printcmd.c (info_symbol_command): Update.
11073 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
11074 Update.
11075 * objfiles.h (class all_objfiles): Remove.
11076 * objfiles.c (have_partial_symbols, have_full_symbols)
11077 (have_minimal_symbols, qsort_cmp, update_section_map)
11078 (shared_objfile_contains_address_p)
11079 (default_iterate_over_objfiles_in_search_order): Update.
11080 * objc-lang.c (info_selectors_command, info_classes_command)
11081 (find_methods): Update.
11082 * minsyms.c (find_solib_trampoline_target): Update.
11083 * maint.c (maintenance_info_sections)
11084 (maintenance_translate_address, count_symtabs_and_blocks):
11085 Update.
11086 * main.c (captured_main_1): Update.
11087 * linux-thread-db.c (try_thread_db_load_from_pdir)
11088 (has_libpthread): Update.
11089 * linespec.c (iterate_over_all_matching_symtabs)
11090 (search_minsyms_for_name): Update.
11091 * jit.c (jit_find_objf_with_entry_addr): Update.
11092 * hppa-tdep.c (find_unwind_entry)
11093 (hppa_lookup_stub_minimal_symbol): Update.
11094 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
11095 Update.
11096 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11097 (elf_gnu_ifunc_resolve_by_got): Update.
11098 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
11099 * dwarf-index-write.c (save_gdb_index_command): Update.
11100 * cp-support.c (add_symbol_overload_list_qualified): Update.
11101 * breakpoint.c (create_overlay_event_breakpoint)
11102 (create_longjmp_master_breakpoint)
11103 (create_std_terminate_master_breakpoint)
11104 (create_exception_master_breakpoint): Update.
11105 * blockframe.c (find_pc_partial_function): Update.
11106 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
11107 (ada_collect_symbol_completion_matches)
11108 (ada_add_global_exceptions): Update.
11109
111102019-01-17 Tom Tromey <tom@tromey.com>
11111
11112 * solib-target.c (lm_info_target_p): Remove typedef. Don't
11113 declare VEC.
11114 (solib_target_parse_libraries): Change return type.
11115 (library_list_start_segment, library_list_start_section)
11116 (library_list_end_library, library_list_start_library); Update.
11117 (solib_target_free_library_list): Remove.
11118 (solib_target_parse_libraries): Remove cleanup. Change return
11119 type.
11120 (solib_target_current_sos): Update.
11121
111222019-01-17 Tom Tromey <tromey@bapiya>
11123
11124 * valprint.c: Replace "the the" with "the".
11125 * symtab.c: Replace "the the" with "the".
11126 * solib.c: Replace "the the" with "the".
11127 * solib-dsbt.c: Replace "the the" with "the".
11128 * linespec.c: Replace "the the" with "the".
11129 * dwarf2loc.h: Replace "the the" with "the".
11130 * amd64-windows-tdep.c: Replace "the the" with "the".
11131 * aarch64-tdep.c: Replace "the the" with "the".
11132
111332019-01-16 Keith Seitz <keiths@redhat.com>
11134
11135 PR gdb/23773
11136 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
11137 <builder>: Rename to ..
11138 <m_builder>: ... this and make private.
11139 (dwarf2_cu::get_builder): New method. Change all users of
11140 `builder' to use this method.
11141 (dwarf2_start_symtab): Move to ...
11142 (dwarf2_cu::start_symtab): ... here. Update all callers
11143 (setup_type_unit_groups): Move to ...
11144 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
11145 callers.
11146 (dwarf2_cu::reset_builder): New method.
11147 (process_full_compunit, process_full_type_unit): Use
11148 dwarf2_cu::reset_builder.
11149 (follow_die_offset): Record the ancestor CU if it is different
11150 from the followed DIE's CU.
11151 (follow_die_sig_1): Likewise.
11152
111532019-01-15 Tom Tromey <tom@tromey.com>
11154
11155 * remote.c (class remote_state) <buf>: Now a char_vector.
11156 <buf_size>: Remove.
11157 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
11158 parameter.
11159 (remote_target::getpkt_or_notif_sane_1)
11160 (remote_target::getpkt_sane)
11161 (remote_target::getpkt_or_notif_sane): Likewise.
11162 (class remote_target) <putpkt>: New overload.
11163 (remote_target::read_frame): Change type of "buf_p". Remove
11164 sizeof_p parameter.
11165 (packet_ok): New overload.
11166 (packet_check_result): New overload.
11167 Update all uses.
11168
111692019-01-14 Tom Tromey <tom@tromey.com>
11170
11171 * remote-notif.c (handle_notification, remote_notif_ack)
11172 (remote_notif_parse): Make "buf" const.
11173 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
11174 const.
11175 (remote_notif_parse, remote_notif_ack, handle_notification):
11176 Likewise.
11177 * remote.c (remote_notif_stop_parse): Make "buf" const.
11178 (remote_target::remote_parse_stop_reply): Make "buf" const.
11179 (remote_notif_stop_ack): Make "buf" const.
11180
111812019-01-14 Tom Tromey <tom@tromey.com>
11182
11183 * remote.c (remote_console_output): Make parameter const.
11184
111852019-01-14 Tom Tromey <tom@tromey.com>
11186
11187 * target-debug.h (target_debug_print_signals): Constify.
11188 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11189 * procfs.c (procfs_target::pass_signals): Update.
11190 * linux-nat.c (linux_nat_target::pass_signals): Update.
11191 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11192 * target-delegates.c: Rebuild.
11193 * remote.c (remote_target::program_signals): Update.
11194 (remote_target::pass_signals): Update.
11195 * target.c (target_pass_signals): Constify argument.
11196 (target_program_signals): Likewise.
11197 * target.h (struct target_ops) <pass_signals, program_signals>:
11198 Constify argument.
11199 (target_pass_signals, target_program_signals): Constify argument.
11200
112012019-01-14 Tom Tromey <tom@tromey.com>
11202
11203 PR tui/28819:
11204 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11205
112062019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11207
11208 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11209 field.
11210 * rs6000-tdep.c: Include reggroups.h.
11211 (IS_V_ALIAS_PSEUDOREG): Define.
11212 (rs6000_register_name): Return names for the "vX" aliases.
11213 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11214 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11215 aliases. Call default_register_reggroup_p for all other
11216 pseudo-registers.
11217 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11218 New functions.
11219 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11220 Handle "vX" aliases.
11221 (v_alias_pseudo_register_collect): New function.
11222 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11223 (rs6000_gdbarch_init): Initialize "vX" aliases as
11224 pseudo-registers. Restore registration of
11225 rs6000_pseudo_register_reggroup_p with
11226 set_tdesc_pseudo_register_reggroup_p.
11227
112282019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11229
11230 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11231 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11232 set_gdbarch_num_pseudo_regs.
11233
112342019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11235
11236 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11237 Remove arg prefixname, add do_set and do_show.
11238 Add member functions set_list and show_list.
11239 * cli/cli-style.c (class cli_style_option): Update accordingly.
11240 (style_set_list): Move to file scope.
11241 (style_show_list): Likewise.
11242 (set_style): Call help_list.
11243 (show_style): Call cmd_show_list.
11244 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11245 Update to use the new macro.
11246
112472019-10-12 Joel Brobecker <brobecker@adacore.com>
11248
11249 * ada-lang.c (_initialize_ada_language): Expand the help text
11250 for the "catch exception" command.
11251
112522019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11253
11254 * symtab.c (matching_obj_sections): Initialize obj,
11255 declare it closer to its usage.
11256
112572019-01-10 Tom Tromey <tom@tromey.com>
11258
11259 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11260 (basic_inf_threads_range): Remove.
11261 (inf_threads_range, inf_non_exited_threads_range)
11262 (safe_inf_threads_range): Use next_adapter.
11263
112642019-01-10 Keith Seitz <keiths@redhat.com>
11265
11266 PR gdb/23712
11267 PR symtab/23010
11268 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11269 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11270
112712019-01-10 Keith Seitz <keiths@redhat.com>
11272
11273 PR gdb/23712
11274 PR symtab/23010
11275 * dictionary.c (pending_to_vector): Remove.
11276 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11277 Remove _1 suffix, replacing functions of the same name. Update
11278 all callers.
11279 (dict_create_hashed, dict_create_hashed_expandable)
11280 (dict_create_linear, dict_create_linear_expandable, dict_free)
11281 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11282 Make functions static.
11283
112842019-01-10 Keith Seitz <keiths@redhat.com>
11285
11286 PR gdb/23712
11287 PR symtab/23010
11288 * dictionary.h (struct dictionary): Replace declaration with
11289 multidictionary.
11290 (dict_create_hashed, dict_create_hashed_expandable)
11291 (dict_create_linear, dict_create_linear_expandable)
11292 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11293 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11294 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11295 taking multidictionary argument.
11296 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11297 * block.h (struct block) <dict>: Change to multidictionary
11298 and rename `multidict'.
11299 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11300 symmisc.c: Update all dictionary references to multidictionary.
11301
113022019-01-10 Keith Seitz <keiths@redhat.com>
11303
11304 PR gdb/23712
11305 PR symtab/23010
11306 * dictionary.c: Include unordered_map.
11307 (pending_to_vector): New function.
11308 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11309 Rewrite the non-"_1" functions to take vector instead
11310 of linked list.
11311 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11312 "new" _1 versions of the same name.
11313 (multidictionary): Define.
11314 (std::hash<enum language): New definition.
11315 (collate_pending_symbols_by_language, mdict_create_hashed)
11316 (mdict_create_hashed_expandable, mdict_create_linear)
11317 (mdict_create_linear_expandable, mdict_free)
11318 (find_language_dictionary, create_new_language_dictionary)
11319 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11320 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11321 (mdict_size, mdict_empty): New functions.
11322 * dictionary.h (mdict_iterator): Define.
11323
113242019-01-10 Pedro Alves <palves@redhat.com>
11325
11326 * breakpoint.c (read_uploaded_action)
11327 (create_tracepoint_from_upload): Adjust to use
11328 gdb::unique_xmalloc_ptr.
11329 * ctf.c (ctf_write_uploaded_tp):
11330 (SET_ARRAY_FIELD): Use emplace_back.
11331 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11332 * tracefile-tfile.c (tfile_write_uploaded_tp):
11333 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11334 gdb::unique_xmalloc_ptr.
11335 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11336 at_string, cond_string, cmd_strings>: Replace char pointers
11337 with gdb::unique_xmalloc_ptr.
11338
113392019-01-10 Pedro Alves <palves@redhat.com>
11340
11341 * solib-target.c (library_list_start_library): Don't xstrdup name.
11342
113432019-01-10 Pedro Alves <palves@redhat.com>
11344
11345 * mdebugread.c (parse_partial_symbols): Use
11346 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11347
113482019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11349
11350 * linux-fork.c (scoped_switch_fork_info)
11351 <~scoped_switch_fork_info>: Fix incorrect variable name.
11352
113532019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11354
11355 * linux-fork.c (scoped_switch_fork_info)
11356 <scoped_switch_fork_info>: Make explicit.
11357 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11358
113592019-01-10 Tom Tromey <tom@tromey.com>
11360
11361 * objfiles.h (objfile::reset_psymtabs): Update.
11362 * objfiles.c (objfile::objfile): Update.
11363 * psymtab.h (psymtab_storage::obstack): Update.
11364 (psymtab_storage::m_obstack): Use gdb::optional.
11365 (class psymtab_storage): Update comment. Remove objfile
11366 parameter.
11367 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11368
113692019-01-10 Tom Tromey <tom@tromey.com>
11370
11371 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11372 <free_psymtabs>: Now private.
11373 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11374 (allocate_psymtab): Use new method.
11375
113762019-01-10 Tom Tromey <tom@tromey.com>
11377
11378 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11379 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11380 * mdebugread.c (parse_partial_symbols): Use
11381 allocate_dependencies.
11382 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11383 allocate_dependencies.
11384 (process_psymtab_comp_unit_reader)
11385 (build_type_psymtab_dependencies): Likewise.
11386 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11387
113882019-01-10 Tom Tromey <tom@tromey.com>
11389
11390 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11391 PSYMBOL_SET_LANGUAGE.
11392 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11393
113942019-01-10 Tom Tromey <tom@tromey.com>
11395
11396 * psymtab.h (psymtab_storage::obstack): New method.
11397 <m_obstack>: Rename from obstack; now private.
11398 * psymtab.c (psymtab_storage): Update.
11399 * dwarf2read.c (create_addrmap_from_index)
11400 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11401 Update.
11402
114032019-01-10 Tom Tromey <tom@tromey.com>
11404
11405 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11406 * objfiles.h (objfile::reset_psymtabs): New method.
11407
114082019-01-10 Tom Tromey <tom@tromey.com>
11409
11410 * symmisc.c (print_symbol_bcache_statistics): Update.
11411 (print_objfile_statistics): Update.
11412 * symfile.c (reread_symbols): Update.
11413 * psymtab.h (class psymtab_storage): New.
11414 * psymtab.c (psymtab_storage): New constructor.
11415 (~psymtab_storage): New destructor.
11416 (require_partial_symbols): Update.
11417 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11418 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11419 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11420 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11421 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11422 (start_psymtab_common, end_psymtab_common)
11423 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11424 (allocate_psymtab): Update.
11425 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11426 Update.
11427 (dump_psymtab_addrmap, maintenance_print_psymbols)
11428 (maintenance_check_psymtabs): Update.
11429 (class objfile_psymtabs): Move to objfiles.h.
11430 * psympriv.h (discard_psymtab): Now inline.
11431 (psymtab_discarder::psymtab_discarder): Update.
11432 (psymtab_discarder::~psymtab_discarder): Update.
11433 (ALL_OBJFILE_PSYMTABS): Rewrite.
11434 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11435 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11436 Remove fields.
11437 <partial_symtabs>: New field.
11438 (class objfile_psymtabs): Move from psymtab.h. Update.
11439 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11440 psymbol_cache.
11441 (objfile::~objfile): Don't destroy psymbol_cache.
11442 * mdebugread.c (parse_partial_symbols): Update.
11443 * dwarf2read.c (create_addrmap_from_index)
11444 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11445 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11446 (add_partial_subprogram, dwarf2_ranges_read): Update.
11447 * dwarf-index-write.c (write_address_map)
11448 (write_one_signatured_type, recursively_write_psymbols)
11449 (class debug_names, class debug_names, write_psymtabs_to_index):
11450 Update.
11451
114522019-01-10 Tom Tromey <tom@tromey.com>
11453
11454 * symtab.h (SYMBOL_SET_NAMES): Update.
11455 (symbol_set_names): Update.
11456 (MSYMBOL_SET_NAMES): Update.
11457 * symtab.c (symbol_set_names): Change argument to be an
11458 objfile_per_bfd_storage.
11459 * psymtab.c (add_psymbol_to_bcache): Update.
11460 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11461
114622019-01-10 Tom Tromey <tom@tromey.com>
11463
11464 * symtab.c (create_demangled_names_hash): Change argument to be an
11465 objfile_per_bfd_storage.
11466 (symbol_set_names): Update.
11467
114682019-01-10 Tom Tromey <tom@tromey.com>
11469
11470 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11471 init_psymbol_list.
11472 * psymtab.c (init_psymbol_list): Do nothing if already called.
11473 * psympriv.h (init_psymbol_list): Add comment.
11474 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11475 init_psymbol_list.
11476 * dbxread.c (dbx_symfile_read): Unconditionally call
11477 init_psymbol_list.
11478
114792019-01-10 Tom Tromey <tom@tromey.com>
11480
11481 * xcoffread.c (scan_xcoff_symtab): Update.
11482 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11483 "where".
11484 * mdebugread.c (parse_partial_symbols)
11485 (handle_psymbol_enumerators): Update.
11486 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11487 * dbxread.c (read_dbx_symtab): Update.
11488 * psympriv.h (psymbol_placement): New enum.
11489 (add_psymbol_to_list): Update.
11490
114912019-01-10 Tom Tromey <tom@tromey.com>
11492
11493 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11494 static_psymbols parameters.
11495 (scan_xcoff_symtab): Update.
11496 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11497 static_psymbols parameters.
11498 * psympriv.h (start_psymtab_common): Update.
11499 * mdebugread.c (parse_partial_symbols): Update.
11500 * dwarf2read.c (create_partial_symtab): Update.
11501 * dbxread.c (read_dbx_symtab): Update.
11502 (start_psymtab): Remove global_psymbols and static_psymbols
11503 parameters.
11504
115052019-01-10 Tom Tromey <tom@tromey.com>
11506
11507 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11508 * psymtab.c (allocate_psymtab): Add comment.
11509 * psympriv.h (allocate_psymtab): Add comment.
11510 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11511 initializations.
11512 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11513
115142019-01-10 Tom Tromey <tom@tromey.com>
11515
11516 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11517 Don't declare.
11518 * mipsread.c: Include mdebugread.h.
11519 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11520 Declare.
11521 * elfread.c: Include mdebugread.h.
11522
115232019-01-09 Tom Tromey <tom@tromey.com>
11524
11525 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11526 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11527 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11528 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11529 (psym_lookup_symbol, psym_find_last_source_symtab)
11530 (psym_forget_cached_source_info, psym_print_stats)
11531 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11532 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11533 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11534 (psym_find_compunit_symtab_by_address)
11535 (maintenance_print_psymbols, maintenance_info_psymtabs)
11536 (maintenance_check_psymtabs): Use ranged for.
11537 * psymtab.h (class objfile_psymtabs): New.
11538 (require_partial_symbols): Return objfile_psymtabs.
11539 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11540
115412019-01-09 Tom Tromey <tom@tromey.com>
11542
11543 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11544 (find_pc_mapped_section, list_overlays_command)
11545 (map_overlay_command, unmap_overlay_command)
11546 (simple_overlay_update): Use all_objfiles.
11547 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11548 * printcmd.c (info_symbol_command): Use all_objfiles.
11549 * objfiles.h (ALL_OBJSECTIONS): Remove.
11550 * maint.c (maintenance_translate_address): Use all_objfiles.
11551 * gcore.c (gcore_create_callback): Use all_objfiles.
11552 (objfile_find_memory_regions): Likewise.
11553
115542019-01-09 Tom Tromey <tom@tromey.com>
11555
11556 * symtab.c (find_line_symtab, info_sources_command)
11557 (make_source_files_completion_list): Use objfile_compunits.
11558 * source.c (select_source_symtab): Use objfile_compunits.
11559 * objfiles.h (struct objfile): Update comment.
11560 (ALL_OBJFILES): Remove.
11561 (ALL_FILETABS): Remove.
11562 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11563 objfile_compunits.
11564
115652019-01-09 Tom Tromey <tom@tromey.com>
11566
11567 * symmisc.c (print_objfile_statistics, dump_objfile)
11568 (maintenance_print_symbols): Use compunit_filetabs.
11569 * source.c (forget_cached_source_info_for_objfile): Use
11570 compunit_filetabs.
11571 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11572 (ALL_FILETABS): Use compunit_filetabs.
11573 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11574 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11575
115762019-01-09 Tom Tromey <tom@tromey.com>
11577
11578 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11579 (compunit_filetabs): New.
11580 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11581 compunit_filetabs.
11582 (info_sources_command, make_source_files_completion_list): Remove
11583 declaration.
11584 * symmisc.c (print_objfile_statistics, dump_objfile)
11585 (maintenance_print_symbols): Remove declaration.
11586 (maintenance_info_symtabs): Use compunit_filetabs.
11587 (maintenance_info_line_tables): Likewise.
11588 * source.c (select_source_symtab): Change local variable name.
11589 (forget_cached_source_info_for_objfile): Remove declaration.
11590 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11591 * objfiles.c (objfile_relocate1): Remove declaration.
11592 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11593 declaration.
11594 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11595 * coffread.c (coff_symtab_read): Remove declaration.
11596 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11597 compunit_filetabs.
11598
115992019-01-09 Tom Tromey <tom@tromey.com>
11600
11601 * symtab.c (lookup_objfile_from_block)
11602 (find_pc_sect_compunit_symtab, search_symbols)
11603 (default_collect_symbol_completion_matches_break_on): Use
11604 objfile_compunits.
11605 * objfiles.h (ALL_COMPUNITS): Remove.
11606 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11607 * cp-support.c (add_symbol_overload_list_qualified): Use
11608 objfile_compunits.
11609 * ada-lang.c (ada_collect_symbol_completion_matches)
11610 (ada_add_global_exceptions): Use objfile_compunits.
11611
116122019-01-09 Tom Tromey <tom@tromey.com>
11613
11614 * source.c (select_source_symtab)
11615 (forget_cached_source_info_for_objfile): Remove declaration.
11616 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11617 declaration.
11618 * maint.c (count_symtabs_and_blocks): Remove declaration.
11619 * cp-support.c (add_symbol_overload_list_qualified): Remove
11620 declaration.
11621 * coffread.c (coff_symtab_read): Remove declaration.
11622 * symtab.c (lookup_symbol_in_objfile_symtabs)
11623 (basic_lookup_transparent_type_1): Use objfile_compunits.
11624 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11625 (info_sources_command, search_symbols)
11626 (default_collect_symbol_completion_matches_break_on)
11627 (make_source_files_completion_list): Remove declaration.
11628 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11629 (ada_collect_symbol_completion_matches)
11630 (ada_add_global_exceptions): Remove declaration.
11631 * linespec.c (iterate_over_all_matching_symtabs): Use
11632 objfile_compunits.
11633 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11634 (class objfile_compunits): New.
11635 (ALL_COMPUNITS): Use objfile_compunits.
11636 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11637 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11638 objfile_compunits.
11639 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11640
116412019-01-09 Tom Tromey <tom@tromey.com>
11642
11643 * symtab.c (search_symbols)
11644 (default_collect_symbol_completion_matches_break_on): Use
11645 objfile_msymbols.
11646 * ada-lang.c (ada_lookup_simple_minsym)
11647 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11648 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11649 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11650 objfile_msymbols.
11651 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11652 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11653 * objc-lang.c (find_methods): Use objfile_msymbols.
11654 (info_selectors_command, info_classes_command): Likewise.
11655 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11656 * objfiles.h (class objfile_msymbols): New.
11657 (ALL_OBJFILE_MSYMBOLS): Remove.
11658 (ALL_MSYMBOLS): Remove.
11659
116602019-01-09 Tom Tromey <tom@tromey.com>
11661
11662 * common/next-iterator.h (next_adapter): Add Iterator template
11663 parameter.
11664 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11665 (class all_objfiles_safe): New.
11666 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11667 * objfiles.c (put_objfile_before): Update comment.
11668 (add_separate_debug_objfile): Likewise.
11669 (free_all_objfiles): Use all_objfiles_safe.
11670 (objfile_purge_solibs): Likewise.
11671
116722019-01-09 Tom Tromey <tom@tromey.com>
11673
11674 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11675 (expand_symtab_containing_pc, lookup_static_symbol)
11676 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11677 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11678 all_objfiles.
11679 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11680 * breakpoint.c (create_overlay_event_breakpoint)
11681 (create_longjmp_master_breakpoint)
11682 (create_std_terminate_master_breakpoint)
11683 (create_exception_master_breakpoint): Use all_objfiles.
11684 * linux-thread-db.c (try_thread_db_load_from_pdir)
11685 (has_libpthread): Use all_objfiles.
11686 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11687 * linespec.c (iterate_over_all_matching_symtabs)
11688 (search_minsyms_for_name): Use all_objfiles.
11689 * maint.c (maintenance_info_sections): Use all_objfiles.
11690 * main.c (captured_main_1): Use all_objfiles.
11691 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11692 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11693 * guile/scm-pretty-print.c
11694 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11695 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11696 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11697 (maintenance_print_msymbols): Use all_objfiles.
11698 * source.c (select_source_symtab): Use all_objfiles.
11699 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11700 * symfile.c (remove_symbol_file_command)
11701 (expand_symtabs_matching, map_symbol_filenames): Use
11702 all_objfiles.
11703 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11704 all_objfiles.
11705 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11706 * objc-lang.c (find_methods): Use all_objfiles.
11707 * objfiles.c (have_partial_symbols, have_full_symbols)
11708 (have_minimal_symbols, qsort_cmp)
11709 (default_iterate_over_objfiles_in_search_order): Use
11710 all_objfiles.
11711 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11712 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11713 (maintenance_check_psymtabs): Use all_objfiles.
11714 (ALL_PSYMTABS): Remove.
11715 * compile/compile-object-run.c (do_module_cleanup): Use
11716 all_objfiles.
11717 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11718 * cp-support.c (add_symbol_overload_list_qualified): Use
11719 all_objfiles.
11720 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11721 Use all_objfiles.
11722 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11723 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11724 all_objfiles.
11725 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11726 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11727 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11728 Uses all_objfiles.
11729 * solib.c (solib_read_symbols): Use all_objfiles
11730
117312019-01-09 Tom Tromey <tom@tromey.com>
11732
11733 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11734 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11735 all_objfiles.
11736 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11737 * symmisc.c (print_symbol_bcache_statistics)
11738 (print_objfile_statistics, maintenance_print_objfiles)
11739 (maintenance_info_symtabs, maintenance_check_symtabs)
11740 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11741 all_objfiles.
11742 * source.c (forget_cached_source_info): Use all_objfiles.
11743 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11744 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11745 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11746 * objfiles.c (update_section_map): Use all_objfiles.
11747 (shared_objfile_contains_address_p): Likewise.
11748 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11749 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11750
117512019-01-09 Tom Tromey <tom@tromey.com>
11752
11753 * common/next-iterator.h: New file.
11754 * objfiles.h (class all_objfiles): New.
11755 (struct objfile_iterator): New.
11756
117572019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11758
11759 * NEWS: Move the description of the changed "frame", "select-frame",
11760 and "info frame" commands to the Changed commands section.
11761
117622019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11763
11764 * gdbtypes.c (check_stub_method_group): Remove handling of old
11765 mangling schemes.
11766 * linespec.c (find_methods): Likewise.
11767 * stabsread.c (read_member_functions): Likewise.
11768 * valops.c (search_struct_method): Likewise.
11769 (value_struct_elt_for_reference): Likewise.
11770 * NEWS: Mention this change.
11771
117722019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11773
11774 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11775 print_source_lines.
11776 * source.c (print_source_lines_base): Update line number check.
11777 (print_source_lines): New function.
11778 (source_lines_range::source_lines_range): New function.
11779 * source.h (class source_lines_range): New class.
11780 (print_source_lines): New declaration.
11781
117822019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11783
11784 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11785
117862019-01-08 Tom Tromey <tom@tromey.com>
11787 Simon Marchi <simon.marchi@ericsson.com>
11788
11789 PR gdb/24060
11790 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11791 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11792 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11793 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11794 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11795 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11796
117972019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11798
11799 * source.c (select_source_symtab): Move header comment to
11800 declaration in source.h.
11801 (forget_cached_source_info_for_objfile): Likewise.
11802 (forget_cached_source_info): Likewise.
11803 (identify_source_line): Likewise.
11804 * source.h (identify_source_line): Move declaration from symtab.h
11805 and add comment from source.c
11806 (print_source_lines): Likewise.
11807 (forget_cached_source_info_for_objfile): Likewise.
11808 (forget_cached_source_info): Likewise.
11809 (select_source_symtab): Likewise.
11810 (enum print_source_lines_flag): Move definition from symtab.h.
11811 * symtab.h (identify_source_line): Move declaration to source.h.
11812 (print_source_lines): Likewise.
11813 (forget_cached_source_info_for_objfile): Likewise.
11814 (forget_cached_source_info): Likewise.
11815 (select_source_symtab): Likewise.
11816 (enum print_source_lines_flag): Move definition to source.h.
11817 * tui/tui-hooks.c: Add 'source.h' include.
11818
118192019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11820
11821 * source.c (print_source_lines_base): Handle requests to print
11822 reverse line number sequences, and guard against empty lines
11823 string.
11824
118252019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11826
11827 * source.c (print_source_lines_base): Fix skip of '\r' if next
11828 character is '\n'.
11829
118302019-01-06 Tom Tromey <tom@tromey.com>
11831
11832 * c-exp.y (struct c_parse_state) <macro_original_text,
11833 expansion_obstack>: New member.
11834 (macro_original_text, expansion_obstack): Remove globals.
11835 (scan_macro_expansion, scanning_macro_expansion)
11836 (finished_macro_expansion): Update.
11837 (scan_macro_cleanup): Remove.
11838 (yylex, c_parse): Update.
11839
118402019-01-06 Tom Tromey <tom@tromey.com>
11841
11842 * c-exp.y (struct c_parse_state) <strings>: New member.
11843 (operator_stoken): Update.
11844
118452019-01-06 Tom Tromey <tom@tromey.com>
11846
11847 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11848 (union type_stack_elt) <typelist_val>: Now a pointer to
11849 std::vector.
11850 (type_stack_cleanup): Don't declare.
11851 (push_typelist): Update.
11852 * parse.c (pop_typelist): Return a std::vector.
11853 (push_typelist): Take a std::vector.
11854 (follow_types): Update. Do not free args.
11855 (type_stack_cleanup): Remove.
11856 * c-exp.y (struct c_parse_state): New.
11857 (cpstate): New global.
11858 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11859 (nonempty_typelist): Update.
11860 (func_mod): Create a new vector.
11861 (c_parse): Create a c_parse_state.
11862 (check_parameter_typelist): Do not delete params.
11863 (function_method): Update. Do not delete type_list.
11864
118652019-01-06 Tom Tromey <tom@tromey.com>
11866
11867 PR gdb/28155:
11868 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11869 check_typedef.
11870 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11871 (print_return_value): Likewise.
11872
118732019-01-05 Tom Tromey <tom@tromey.com>
11874
11875 * contrib/cleanup_check.py: Remove.
11876 * contrib/gcc-with-excheck: Remove.
11877 * contrib/exsummary.py: Remove.
11878 * contrib/excheck.py: Remove.
11879
118802019-01-05 Joel Brobecker <brobecker@adacore.com>
11881
11882 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11883 NULL. Initialize tpprev to NULL instead of assigning it
11884 to NULL on the next statement.
11885 * windows-nat.c (windows_delete_thread): Remove check for
11886 main_thread_id before printing thread exit notifications.
11887 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11888 Remove thread ID check against main_thread_id.
11889 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11890 windows_delete_thread.
11891 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11892
118932019-01-04 Tom Tromey <tom@tromey.com>
11894
11895 * compile/compile.c (_initialize_compile): Use upper case for
11896 metasyntactic variables.
11897 * symmisc.c (_initialize_symmisc): Use upper case for
11898 metasyntactic variables.
11899 * psymtab.c (_initialize_psymtab): Use upper case for
11900 metasyntactic variables.
11901 * demangle.c (demangle_command): Use upper case for metasyntactic
11902 variables.
11903 (_initialize_demangler): Likewise.
11904 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11905 variables.
11906
119072019-01-03 Tom Tromey <tom@tromey.com>
11908
11909 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11910
119112019-01-03 Tom Tromey <tom@tromey.com>
11912
11913 * python/py-symtab.c (salpy_str): Update.
11914 (struct salpy_sal_object) <symtab>: Now a PyObject.
11915 (salpy_dealloc): Update.
11916 (del_objfile_sal): Use gdbpy_ref.
11917
119182019-01-03 Tom Tromey <tom@tromey.com>
11919
11920 * python/py-type.c (convert_field): Use new_reference. Return
11921 gdbpy_ref.
11922 (make_fielditem): Return gdbpy_ref.
11923 (typy_fields): Update.
11924 (typy_getitem): Update.
11925 (field_name): Return gdbpy_ref. Use new_reference.
11926 (typy_iterator_iternext): Update.
11927
119282019-01-03 Tom Tromey <tom@tromey.com>
11929
11930 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11931
119322019-01-03 Tom Tromey <tom@tromey.com>
11933
11934 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11935 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11936 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11937 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11938 (pspy_set_type_printers): Likewise.
11939 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11940 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11941 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11942 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11943 (objfpy_set_type_printers): Likewise.
11944
119452019-01-03 Tom Tromey <tom@tromey.com>
11946
11947 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11948 (gdbpy_print_stack): Use gdbpy_err_fetch.
11949 * python/python-internal.h (class gdbpy_err_fetch): New class.
11950 (class gdbpy_enter) <m_error_type, m_error_value,
11951 m_error_traceback>: Remove.
11952 <m_error>: New member.
11953 (gdbpy_exception_to_string): Don't declare.
11954 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11955 * python/py-value.c (convert_value_from_python): Use
11956 gdbpy_err_fetch.
11957 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11958 gdbpy_exception_to_string.
11959 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11960 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11961 gdbpy_err_fetch.
11962
119632019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11964
11965 * linux-nat.c (delete_lwp_cleanup): Delete.
11966 (struct lwp_deleter): New struct.
11967 (lwp_info_up): New typedef.
11968 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11969 lwp_info_up.
11970
119712019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11972
11973 * linux-fork.c (class scoped_switch_fork_info): New class.
11974 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11975
119762019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11977
11978 * valops.c (find_overload_match): Remove use of null_cleanup, and
11979 calls to do_cleanups.
11980
119812019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11982
11983 * compile/compile-cplus-types.c
11984 (compile_cplus_instance::decl_name): Handle changes to
11985 cp_func_name.
11986 * cp-support.c (cp_func_name): Update header comment, update
11987 return type.
11988 * cp-support.h (cp_func_name): Update return type in declaration.
11989 * valops.c (find_overload_match): Move temp_func local to top
11990 level of function and change its type. Use temp_func to hold and
11991 delete temporary string obtained from cp_func_name.
11992
119932019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11994
11995 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11996 gdb::char_vector, remove cleanup, and update uses of `msg`.
11997
119982019-01-03 Jim Wilson <jimw@sifive.com>
11999
12000 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
12001
120022019-01-02 Tom Tromey <tom@tromey.com>
12003
12004 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
12005 (tdesc_parse_xml): Remove cleanups.
12006 * target-descriptions.h (make_cleanup_free_target_description):
12007 Don't declare.
12008 (target_desc_deleter): New struct.
12009 (target_desc_up): New typedef.
12010 * target-descriptions.c (target_desc_deleter::operator()): Rename
12011 from free_target_description.
12012 (make_cleanup_free_target_description): Remove.
12013
120142019-01-02 Tom Tromey <tom@tromey.com>
12015
12016 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
12017 constructor, destructor.
12018 (linespec_parser): Remove typedef.
12019 (~linespec_parser): Rename from linespec_parser_delete.
12020 (linespec_lex_to_end, linespec_complete_label)
12021 (linespec_complete): Update.
12022 (decode_line_full): Remove cleanups.
12023 (decode_line_1): Update.
12024
120252019-01-02 Tom Tromey <tom@tromey.com>
12026
12027 * python/python-internal.h (inferior_to_inferior_object): Change
12028 return type.
12029 * python/py-exitedevent.c (create_exited_event_object): Update.
12030 * python/py-inferior.c (inferior_to_inferior_object): Return
12031 gdbpy_ref.
12032 (python_new_inferior, python_inferior_deleted)
12033 (thread_to_thread_object, delete_thread_object)
12034 (build_inferior_list, gdbpy_selected_inferior): Update.
12035 * python/py-infthread.c (create_thread_object): Update. Also fail
12036 if inferior_to_inferior_object fails.
12037
120382019-01-02 Simon Marchi <simon.marchi@ericsson.com>
12039
12040 * inferior.h (class inferior) <displaced_step_state>: New field.
12041 * infrun.h (struct displaced_step_state): Move here from
12042 infrun.c. Initialize fields, add constructor.
12043 <inf>: Remove field.
12044 <reset>: New method.
12045 * infrun.c (struct displaced_step_inferior_state): Move to
12046 infrun.h.
12047 (displaced_step_inferior_states): Remove.
12048 (get_displaced_stepping_state): Adust.
12049 (displaced_step_in_progress_any_inferior): Adjust.
12050 (displaced_step_in_progress_thread): Adjust.
12051 (displaced_step_in_progress): Adjust.
12052 (add_displaced_stepping_state): Remove.
12053 (get_displaced_step_closure_by_addr): Adjust.
12054 (remove_displaced_stepping_state): Remove.
12055 (infrun_inferior_exit): Call displaced_step_state.reset.
12056 (use_displaced_stepping): Don't check for NULL.
12057 (displaced_step_prepare_throw): Call
12058 get_displaced_stepping_state.
12059 (displaced_step_fixup): Don't check for NULL.
12060 (prepare_for_detach): Don't check for NULL.
12061
120622019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12063
12064 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
12065 in case of call that did not complete.
12066
120672019-01-02 Andrey Utkin <autkin@undo.io>
12068
12069 * symfile.c (find_separate_debug_file): Fix search of debug files for
12070 remote debuggee.
12071
120722019-01-02 Tom Tromey <tom@tromey.com>
12073
12074 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
12075 indentation.
12076 * python/py-frame.c (frapy_older): Remove cast.
12077 (frapy_newer): Likewise.
12078 * python/py-breakpoint.c (local_setattro): Remove cast.
12079 * python/py-arch.c (archpy_name): Remove local variable.
12080 * python/py-type.c (gdbpy_lookup_type): Remove cast.
12081
120822019-01-02 Joel Brobecker <brobecker@adacore.com>
12083
12084 * unittests/basic_string_view/element_access/char/empty.cc:
12085 Fix year range in copyright header.
12086
120872019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
12088
12089 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
12090 Delete.
12091 <operator==>: Update with for removed field.
12092 <hash>: Likewise.
12093 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
12094 <isa_features>: ...this.
12095 <abi_features>: New field.
12096 (riscv_isa_flen): Update comment.
12097 (riscv_abi_xlen): New declaration.
12098 (riscv_abi_flen): New declaration.
12099 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
12100 isa_features.
12101 (riscv_abi_xlen): New function.
12102 (riscv_isa_flen): Update to get answer from isa_features.
12103 (riscv_abi_flen): New function.
12104 (riscv_has_fp_abi): Update to get answer from abi_features.
12105 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
12106 xlen and flen.
12107 (riscv_call_info) <xlen, flen>: Update comment.
12108 (riscv_call_arg_struct): Remove invalid assertions
12109 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
12110 is removed.
12111 (riscv_gdbarch_init): Gather isa features and abi features
12112 separately, ensure both match on the gdbarch when reusing an old
12113 gdbarch. Relax an error check to allow 32-bit abi float to run on
12114 a target with 64-bit float hardware.
12115
121162019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12117
12118 * source.c (search_command_helper): Stop reverse search
12119 when line 1 has been searched.
12120
121212019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12122
12123 * record-full.c (record_full_base_target::close): Rewrite
12124 record_full_core_buf_list free logic.
12125
121262019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12127
12128 * break-catch-syscall.c (print_one_catch_syscall): xfree
12129 the last text.
12130
121312019-01-01 Joel Brobecker <brobecker@adacore.com>
12132
12133 * top.c (print_gdb_version): Update Copyright year in version
12134 message.
12135
121362019-01-01 Joel Brobecker <brobecker@adacore.com>
12137
12138 Update copyright year range in all GDB files.
12139
121402019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
12141
12142 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
12143
12144For older changes see ChangeLog-2018.
12145\f
12146Local Variables:
12147mode: change-log
12148left-margin: 8
12149fill-column: 74
12150version-control: never
12151coding: utf-8
12152End:
12153
This page took 0.064587 seconds and 4 git commands to generate.