gdb/fortran: Don't include module symbols when searching for types
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d8f27c60
AB
12019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4 when searching for types.
5
1f20c35e
AB
62019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * f-lang.c (f_language_defn): Use f_print_typedef.
9 * f-lang.h (f_print_typedef): Declare.
10 * f-typeprint.c (f_print_typedef): Define.
11
550105b7
CB
122019-08-27 Christian Biesinger <cbiesinger@google.com>
13
14 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
15
4acfdd20
AB
162019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
17
18 * cli/cli-utils.c (info_print_options_defs): Delete.
19 (make_info_print_options_def_group): Delete.
20 (extract_info_print_options): Delete.
21 (info_print_command_completer): Delete.
22 (info_print_args_help): Add extra parameter, and optionally
23 include text about -n flag.
24 * cli/cli-utils.h (struct info_print_options): Delete.
25 (extract_info_print_options): Delete declaration.
26 (info_print_command_completer): Delete declaration.
27 (info_print_args_help): Add extra parameter, extend header
28 comment.
29 * python/python.c (gdbpy_rbreak): Pass additional parameter to
30 search_symbols.
31 * stack.c (struct info_print_options): New type.
32 (info_print_options_defs): New file scoped variable.
33 (make_info_print_options_def_group): New static function.
34 (info_print_command_completer): New static function.
35 (info_locals_command): Update to use new local functions.
36 (info_args_command): Likewise.
37 (_initialize_stack): Add extra parameter to calls to
38 info_print_args_help.
39 * symtab.c (search_symbols): Add extra parameter, use this to
40 possibly excluse non-debug symbols.
41 (symtab_symbol_info): Add extra parameter, which is passed on to
42 search_symbols.
43 (struct info_print_options): New type.
44 (info_print_options_defs): New file scoped variable.
45 (make_info_print_options_def_group): New static function.
46 (info_print_command_completer): New static function.
47 (info_variables_command): Update to use local functions, and pass
48 extra parameter through to symtab_symbol_info.
49 (info_functions_command): Likewise.
50 (info_types_command): Pass additional argument through to
51 symtab_symbol_info.
52 (rbreak_command): Pass extra argument to search_symbols.
53 (_initialize_symtab): Add extra arguments for calls to
54 info_print_args_help, and update help text for 'info variables',
55 'whereis', and 'info functions' commands.
56 * symtab.h (search_symbols): Add extra argument to declaration.
57 * NEWS: Mention new flags.
58
9aa55206
CB
592019-08-26 Christian Biesinger <cbiesinger@google.com>
60
61 * symtab.c (lookup_static_symbol): Call the new function (and move
62 it down to be next to lookup_global_symbol).
63 (struct global_sym_lookup_data): Add block_enum member and rename to...
64 (struct global_or_static_sym_lookup_data): ...this.
65 (lookup_symbol_global_iterator_cb): Pass block_index instead of
66 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
67 (lookup_symbol_global_or_static_iterator_cb): ...this.
68 (lookup_global_or_static_symbol): New function.
69 (lookup_global_symbol): Call new function.
70
5c31b358
TV
712019-08-26 Tom de Vries <tdevries@suse.de>
72
73 PR c++/24852
74 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
75 when pc_probe.prob == NULL.
76
23c13d42
SM
772019-08-25 Simon Marchi <simon.marchi@efficios.com>
78
79 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
80 variable symbol_linkage to symbol_linkage_.
81
beadd3e8
SM
822019-08-25 Simon Marchi <simon.marchi@efficios.com>
83
84 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
85 represent whether the symbol is static, dynamic, or we don't
86 know.
87
e3ec872f
YS
882019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
89
90 * gdb/rx-tdep.c (rx_register_names): New.
91 (rx_register_name): Delete.
92 (rx_psw_type): Delete.
93 (rx_fpsw_type): Delete.
94 (rx_register_type): Delete.
95 (rx_gdbarch_init): Convert target-descriptions.
96 (_initialize_rx_tdep): Add initialize_tdesc_rx.
97 * gdb/features/Makefile: Add rx.xml.
98 * gdb/features/rx.xml: New.
99 * gdb/features/rx.c: Generated.
100 * gdb/NEWS: Mention target description support.
101
d0509ba4
CB
1022019-08-22 Christian Biesinger <cbiesinger@google.com>
103
104 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
105 *slot_ptr.
106
2d41fa11
SDJ
1072019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
108
109 * configure.ac: Don't check for 'dlfcn.h' (moved to
110 gdbsupport/common.m4).
111 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
112 'gdbsupport/'.
113 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
114 * compile/compile-c-support.c: Include
115 'gdbsupport/gdb-dlfcn.h'.
116 * gdbsupport/common.m4: Check for 'dlfcn.h'.
117 * gdb-dlfcn.c: Move to...
118 * gdbsupport/gdb-dlfcn.c: ... here.
119 * gdb-dlfcn.h: Move to...
120 * gdbsupport/gdb-dlfcn.h: ... here.
121
de8af808
SL
1222019-08-23 Sandra Loosemore <sandra@codesourcery.com>
123
124 * nios2-tdep.c (struct reg_value): Improve comments. Make
125 the offset field signed.
126
27204489
CB
1272019-08-22 Christian Biesinger <cbiesinger@google.com>
128
129 * python/lib/gdb/__init__.py (_execute_file): New function.
130 * python/python.c (python_run_simple_file): Call gdb._execute_file
131 on Windows.
132
43771869
AB
1332019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
136 all uses as this was never set to anything but a zero value.
137
26c957f1
PA
1382019-08-21 Bogdan Harjoc <harjoc@gmail.com>
139
140 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
141
c07aae6e
CB
1422019-08-21 Christian Biesinger <cbiesinger@google.com>
143
144 * tui/tui-data.h (tui_gen_win_info): Add an =default
145 move constructor, required by some GCC versions.
146
3960cb7a
JF
1472019-08-21 Jinke Fan <fanjinke51@yeah.net>
148
149 * go32-nat.c (go32_sysinfo): Add hygon_p.
150
04c72a68
TT
1512019-08-20 Tom Tromey <tom@tromey.com>
152
153 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
154 line_from_reg_element_no, first_reg_element_no_inline,
155 display_all_data, delete_data_content_windows,
156 erase_data_content>: Now private.
157
072272ce
TT
1582019-08-20 Tom Tromey <tom@tromey.com>
159
160 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
161 (tui_unhighlight_win, tui_highlight_win)
162 (tui_win_info::make_window): Update.
163 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
164
973961bd
TT
1652019-08-20 Tom Tromey <tom@tromey.com>
166
167 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
168 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
169 (MAX_PID_WIDTH): Move to tui-stack.c.
170 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
171 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
172 (MAX_PID_WIDTH): Move from tui-data.h.
173
ab0e1f1a
TT
1742019-08-20 Tom Tromey <tom@tromey.com>
175
176 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
177 * tui/tui-wingeneral.c (box_win): Change type of win_info.
178 (box_win): Update.
179 (tui_gen_win_info::make_window): Rename from tui_make_window.
180 (tui_win_info::make_window): New method.
181 (tui_gen_win_info::make_visible): Update.
182 * tui/tui-source.c (tui_source_window::set_contents): Update.
183 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
184 (tui_data_window::display_registers_from): Update.
185 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
186 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
187 Declare.
188 <can_box>: Remove.
189 <title>: Remove.
190 (struct tui_win_info) <make_window>: Declare.
191 <can_box>: Now virtual.
192 <title>: New member.
193 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
194 * tui/tui-command.c (tui_cmd_window::resize): Update.
195
100c2bf3
TT
1962019-08-20 Tom Tromey <tom@tromey.com>
197
198 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
199 * tui/tui-regs.c (tui_data_window::show_registers): Update.
200 (tui_data_window::check_register_values): Update.
201
fa4dc567
TT
2022019-08-20 Tom Tromey <tom@tromey.com>
203
204 * tui/tui-regs.h (struct tui_data_window): Use
205 DISABLE_COPY_AND_ASSIGN.
206 <regs_content>: Change type, removing unique_ptr.
207 <tui_data_window>: Add move constructor.
208 * tui/tui-regs.c (tui_data_window::show_registers)
209 (tui_data_window::show_register_group)
210 (tui_data_window::display_registers_from)
211 (tui_data_window::display_registers_from)
212 (tui_data_window::first_data_item_displayed)
213 (tui_data_window::delete_data_content_windows)
214 (tui_data_window::rerender, tui_data_window::refresh_window)
215 (tui_data_window::check_register_values): Update.
216
ca02d7c8
TT
2172019-08-20 Tom Tromey <tom@tromey.com>
218
219 * tui/tui-regs.h (struct tui_data_window) <show_registers,
220 show_register_group>: Declare.
221 (tui_show_register_group): Don't declare.
222 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
223 tui_show_registers.
224 (tui_data_window::show_register_group): Rename from
225 tui_show_register_group.
226 (tui_data_window::check_register_values, tui_reg_command):
227 Update.
228 * tui/tui-layout.c (tui_set_layout): Update.
229
63356bfd
TT
2302019-08-20 Tom Tromey <tom@tromey.com>
231
232 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
233 Declare.
234 (tui_check_register_values): Don't declare.
235 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
236 from tui_check_register_values.
237 * tui/tui-hooks.c (tui_register_changed): Update.
238
42cc14a7
TT
2392019-08-20 Tom Tromey <tom@tromey.com>
240
241 * tui/tui-regs.c (tui_reg_layout): Move later.
242 (tui_show_registers): Don't enable TUI mode or change layout.
243
b9ad3686
TT
2442019-08-20 Tom Tromey <tom@tromey.com>
245
246 * tui/tui-regs.h (struct tui_data_item_window)
247 <~tui_data_item_window>: Remove.
248 <content>: Now a unique_xmalloc_ptr.
249 * tui/tui-regs.c (tui_register_format): Return a
250 unique_xmalloc_ptr.
251 (tui_get_register): Update.
252 (~tui_data_item_window): Remove.
253 (tui_data_window::display_registers_from, tui_display_register):
254 Update.
255 * tui/tui-io.h (tui_expand_tabs): Update.
256 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
257 Remove "col" parameter.
258
8e114aab
TT
2592019-08-20 Tom Tromey <tom@tromey.com>
260
261 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
262 field.
263 * tui/tui-regs.c (~tui_data_item_window): Update.
264
1a4f81dd
TT
2652019-08-20 Tom Tromey <tom@tromey.com>
266
267 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
268 earlier.
269
0f8d8876
TT
2702019-08-20 Tom Tromey <tom@tromey.com>
271
272 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
273
605dc2c2
TT
2742019-08-20 Tom Tromey <tom@tromey.com>
275
276 * tui/tui-source.h (struct tui_source_window): Update.
277 * tui/tui-regs.c (tui_show_registers): Update.
278 * tui/tui-disasm.h (struct tui_disasm_window): Update.
279 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
280 (NO_REGS_STRING): Remove defines.
281
aedbe3bb
CM
2822019-08-20 Conrad Meyer <cem@FreeBSD.org>
283
284 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
285 unnecessary thread walk if remote doesn't support the packet.
286
7ce8f214
TT
2872019-08-19 Tom Tromey <tromey@adacore.com>
288
289 * python/py-value.c (value_has_field): Fix indentation.
290
f21c2bd7
TT
2912019-08-19 Tom Tromey <tromey@adacore.com>
292
293 * printcmd.c (do_one_display, info_display_command): Update.
294 * block.h (contained_in): Return bool. Add allow_nested
295 parameter.
296 * block.c (contained_in): Return bool. Add allow_nested
297 parameter.
298
d806ea2d
TT
2992019-08-19 Tom Tromey <tom@tromey.com>
300
301 * configure: Rebuild.
302 * configure.ac: Disallow the combination of -static-libstdc++ and
303 source highlight.
304 * source-cache.c (get_language_name): Handle rust.
305 (source_cache::get_source_lines): Ignore highlighting exceptions.
306
398fdd60
TT
3072019-08-16 Tom Tromey <tom@tromey.com>
308
309 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
310 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
311 (struct tui_source_window_base) <make_visible, refresh_window,
312 resize>: Remove methods.
313 <execution_info>: Remove field.
314 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
315 (tui_show_source_line, tui_source_window_base)
316 (~tui_source_window_base): Update.
317 (tui_source_window_base::resize)
318 (tui_source_window_base::make_visible)
319 (tui_source_window_base::refresh_window): Remove.
320 (tui_source_window_base::update_exec_info): Update.
321 * tui/tui-source.c (tui_source_window::set_contents): Update.
322 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
323
e699d331
TT
3242019-08-16 Tom Tromey <tom@tromey.com>
325
326 * tui/tui-hooks.c (tui_remove_hooks): Don't set
327 deprecated_query_hook.
328
bb01dbfc
TT
3292019-08-16 Tom Tromey <tom@tromey.com>
330
331 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
332 (tui_update_source_windows_with_line): Update.
333 * tui/tui-source.h (struct tui_source_window)
334 <show_symtab_source>: Declare.
335 (tui_show_symtab_source): Don't declare.
336 * tui/tui-source.c (tui_show_symtab_source): Rename from
337 tui_show_symtab_source.
338
81c82c4b
TT
3392019-08-16 Tom Tromey <tom@tromey.com>
340
341 * tui/tui-winsource.h (struct tui_source_window_base)
342 <set_contents>: Declare.
343 * tui/tui-winsource.c
344 (tui_source_window_base::update_source_window_as_is): Update.
345 * tui/tui-source.h (struct tui_source_window) <set_contents>:
346 Declare.
347 (tui_set_source_content): Don't declare.
348 * tui/tui-source.c (tui_source_window::set_contents): Rename from
349 tui_set_source_content.
350 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
351 Declare.
352 (tui_set_disassem_content): Don't declare.
353 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
354 tui_set_disassem_content.
355
2ddaf614
TT
3562019-08-16 Tom Tromey <tom@tromey.com>
357
358 * tui/tui-winsource.h (struct tui_source_window_base)
359 <update_breakpoint_info>: Declare.
360 (tui_update_breakpoint_info): Don't declare.
361 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
362 (tui_update_all_breakpoint_info): Update.
363 (tui_source_window_base::update_breakpoint_info): Rename from
364 tui_update_breakpoint_info.
365 (tui_source_window_base::update_exec_info): Update.
366
017f9828
TT
3672019-08-16 Tom Tromey <tom@tromey.com>
368
369 * tui/tui-winsource.h (struct tui_source_window_base)
370 <update_source_window>: Declare.
371 (tui_update_source_window): Don't declare.
372 * tui/tui-winsource.c
373 (tui_source_window_base::update_source_window): Rename from
374 tui_update_source_window.
375 (tui_source_window_base::rerender): Update.
376 * tui/tui-source.c (tui_source_window::maybe_update): Update.
377 * tui/tui-disasm.c (tui_show_disassem)
378 (tui_show_disassem_and_update_source)
379 (tui_disasm_window::maybe_update): Update.
380
ed8358e9
TT
3812019-08-16 Tom Tromey <tom@tromey.com>
382
383 * tui/tui-winsource.h (struct tui_source_window_base)
384 <update_source_window_as_is>: Declare.
385 (tui_update_source_window_as_is): Don't declare.
386 * tui/tui-winsource.c (tui_update_source_window): Update
387 (tui_source_window_base::update_source_window_as_is): Rename from
388 tui_update_source_window_as_is.
389 (tui_source_window_base::refill): Update.
390 * tui/tui-source.c (tui_show_symtab_source): Update.
391 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
392 Update.
393
20149b6b
TT
3942019-08-16 Tom Tromey <tom@tromey.com>
395
396 * tui/tui-winsource.h (tui_update_source_window)
397 (tui_update_source_window_as_is): Remove "noerror" parameter.
398 * tui/tui-winsource.c (tui_update_source_window)
399 (tui_update_source_window_as_is): Remove "noerror" parameter.
400 (tui_update_source_windows_with_addr)
401 (tui_update_source_windows_with_line)
402 (tui_source_window_base::rerender)
403 (tui_source_window_base::refill): Update.
404 * tui/tui-source.h (tui_set_source_content)
405 (tui_show_symtab_source): Remove "noerror" parameter.
406 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
407 parameter.
408 (tui_show_symtab_source): Likewise.
409 (tui_source_window::maybe_update): Update.
410 * tui/tui-disasm.c (tui_show_disassem)
411 (tui_show_disassem_and_update_source)
412 (tui_disasm_window::do_scroll_vertical)
413 (tui_disasm_window::maybe_update): Update.
414
2d83e710
TT
4152019-08-16 Tom Tromey <tom@tromey.com>
416
417 * tui/tui.c (tui_is_window_visible): Update.
418 * tui/tui-wingeneral.c (tui_make_window)
419 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
420 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
421 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
422 (tui_set_win_height_command, parse_scrolling_args): Update.
423 * tui/tui-source.c (tui_source_window::style_changed): Update.
424 * tui/tui-regs.c (tui_show_registers)
425 (tui_data_window::first_data_item_displayed)
426 (tui_data_window::delete_data_content_windows)
427 (tui_check_register_values, tui_reg_command): Update.
428 * tui/tui-disasm.c (tui_show_disassem): Update.
429 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
430 method.
431 <is_visible>: Remove field.
432 * tui/tui-data.c (tui_next_win, tui_prev_win)
433 (tui_delete_invisible_windows): Update.
434
d4ab829a
TT
4352019-08-16 Tom Tromey <tom@tromey.com>
436
437 * tui/tui-winsource.h (struct tui_source_window_base)
438 <m_has_locator>: Remove.
439 * tui/tui-layout.c (show_source_disasm_command, show_data)
440 (show_source_or_disasm_and_command): Update.
441
aa7ca1bb
AH
4422019-08-16 Alan Hayward <alan.hayward@arm.com>
443
444 * NEWS (Other MI changes): New subsection.
445 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
446 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
447 * arch-utils.c (default_get_pc_address_flags): New function.
448 * arch-utils.h (default_get_pc_address_flags): New declaration.
449 * gdbarch.sh: Add get_pc_address_flags.
450 * gdbarch.c: Regenerate.
451 * gdbarch.h: Likewise.
452 * stack.c (print_pc): New function.
453 (print_frame_info) (print_frame): Call print_pc.
454
6eac171f
TV
4552019-08-16 Tom de Vries <tdevries@suse.de>
456
457 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
458 print_objfile_section_info.
459
3df505f6
TT
4602019-08-15 Tom Tromey <tom@tromey.com>
461
462 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
463 calling update_cmdwin_start_line.
464 * tui/tui-winsource.h (struct tui_source_window_base)
465 <do_make_visible_with_new_height, set_new_height>: Don't declare.
466 <rerender>: Declare.
467 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
468 Call rerender.
469 (tui_source_window_base::set_new_height): Remove.
470 (tui_source_window_base::rerender): Rename from
471 do_make_visible_with_new_height.
472 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
473 resize method.
474 (tui_win_info::make_invisible_and_set_new_height)
475 (tui_win_info::make_visible_with_new_height): Remove.
476 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
477 Declare.
478 * tui/tui-stack.c (tui_locator_window::rerender): New method.
479 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
480 do_make_visible_with_new_height>: Don't declare.
481 <rerender>: Declare.
482 * tui/tui-regs.c (tui_data_window::rerender): Rename from
483 set_new_height.
484 (tui_data_window::do_make_visible_with_new_height): Remove.
485 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
486 call tui_show_locator_content.
487 (tui_gen_win_info::resize): Call rerender.
488 (show_source_or_disasm_and_command): Don't call
489 tui_show_locator_content.
490 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
491 method.
492 (struct tui_win_info) <rerender>: Declare.
493 <set_new_height, make_invisible_and_set_new_height,
494 make_visible_with_new_height>: Don't declare.
495 * tui/tui-data.c (tui_win_list::rerender): New method.
496 * tui/tui-command.h (struct tui_cmd_window)
497 <do_make_visible_with_new_height>: Don't declare.
498 * tui/tui-command.c
499 (tui_cmd_window::do_make_visible_with_new_height): Remove.
500
272560b5
TT
5012019-08-15 Tom Tromey <tromey@adacore.com>
502
503 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
504 * ada-lang.c (ada_enum_name): Likewise.
505
08235187
CB
5062019-08-15 Christian Biesinger <cbiesinger@google.com>
507
508 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
509 leading underscore.
510 (GdbOutputErrorFile): Likewise.
511 (global scope): Adjust constructor calls to GdbOutput{,Error}File
512 accordingly.
513 (execute_unwinders): Rename to have a leading underscore.
514 (auto_load_packages): Likewise.
515 (global scope): Adjust call to auto_load_packages accordingly.
516 (GdbSetPythonDirectory): Likewise.
517 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
518 instead of execute_unwinders.
519
db502012
TT
5202019-08-15 Tom Tromey <tom@tromey.com>
521
522 * tui/tui-layout.c (show_layout, show_source_disasm_command)
523 (show_data): Don't change window visibility.
524 (tui_gen_win_info::resize): Remove special case for command
525 window. Use wresize, when available.
526 (show_source_or_disasm_and_command): Don't change window
527 visibility.
528 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
529 <make_visible>: New method.
530 * tui/tui-command.c (tui_cmd_window::resize): New method.
531
3891b65e
TT
5322019-08-15 Tom Tromey <tom@tromey.com>
533
534 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
535 (struct tui_source_windows): New.
536 * tui/tui-winsource.c (tui_display_main): Update.
537 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
538 (new_height_ok, parse_scrolling_args): Update.
539 * tui/tui-layout.c (show_layout, show_data): Update.
540 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
541 (tui_add_to_source_windows): Don't declare.
542 * tui/tui-data.c (source_windows, tui_source_windows)
543 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
544
ee556432
TT
5452019-08-15 Tom Tromey <tom@tromey.com>
546
547 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
548 Rename from reset.
549 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
550 * tui/tui-layout.c (show_source_disasm_command, show_data):
551 Update.
552 (tui_gen_win_info::resize): Rename.
553 (show_source_or_disasm_and_command): Update.
554 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
555 reset.
556
46f438e3
TT
5572019-08-15 Tom Tromey <tom@tromey.com>
558
559 * tui/tui-stack.c (tui_initialize_static_data): Remove.
560 * tui/tui-interp.c (tui_interp::init): Don't call
561 tui_initialize_static_data.
562 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
563
f4ce562c
TT
5642019-08-15 Tom Tromey <tom@tromey.com>
565
566 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
567 examine tui_win_list.
568
c398c3d0
TT
5692019-08-15 Tom Tromey <tom@tromey.com>
570
571 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
572 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
573 tui_clear_source_content.
574 (tui_clear_source_content): Remove.
575 (tui_source_window_base::do_erase_source_content): Hoist call to
576 content.clear().
577 * tui/tui-stack.c (tui_show_frame_info): Don't call
578 tui_clear_source_content.
579
e25d2004
TT
5802019-08-15 Tom Tromey <tom@tromey.com>
581
582 * tui/tui-winsource.h (struct tui_source_window_base)
583 <do_erase_source_content>: New method.
584 <erase_source_content>: New method.
585 (tui_erase_source_content): Don't declare.
586 * tui/tui-winsource.c (tui_clear_source_content): Update.
587 (tui_source_window_base::do_erase_source_content): Rename from
588 tui_erase_source_content.
589 (tui_source_window_base::show_source_content): Update.
590 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
591 * tui/tui-source.h (struct tui_source_window)
592 <erase_source_content>: New method.
593 * tui/tui-disasm.h (struct tui_disasm_window)
594 <erase_source_content>: New method.
595
002f15c2
TT
5962019-08-15 Tom Tromey <tom@tromey.com>
597
598 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
599 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
600 constructor.
601 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
602 * tui/tui-source.c (tui_set_source_content): Update.
603 * tui/tui-disasm.c (tui_set_disassem_content): Update.
604
c9033fe8
TT
6052019-08-15 Tom Tromey <tom@tromey.com>
606
607 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
608 * tui/tui-winsource.c (tui_line_is_displayed): Move to
609 tui-source.c.
610 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
611 Declare.
612 * tui/tui-source.c (tui_source_window::line_is_displayed): New
613 method.
614 (tui_source_window::maybe_update): Update.
615
088f37dd
TT
6162019-08-15 Tom Tromey <tom@tromey.com>
617
618 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
619 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
620 tui-disasm.c.
621 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
622 Declare.
623 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
624 method.
625 (tui_disasm_window::maybe_update): Update.
626
a54700c6
TT
6272019-08-15 Tom Tromey <tom@tromey.com>
628
629 * tui/tui-winsource.h (struct tui_source_window_base)
630 <maybe_update>: Declare.
631 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
632 method.
633 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
634 Declare.
635 * tui/tui-source.c (tui_source_window::maybe_update): New method.
636 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
637 Declare.
638 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
639
e2a678a5
TT
6402019-08-15 Tom Tromey <tom@tromey.com>
641
642 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
643
f2dda477
TT
6442019-08-15 Tom Tromey <tom@tromey.com>
645
646 * tui/tui-wingeneral.c: Include tui-stack.h.
647 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
648 (struct tui_locator_window): Move from tui-data.h.
649 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
650 (tui_initialize_static_data): Move from tui-data.c.
651 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
652 (struct tui_locator_window): Move to tui-stack.c.
653 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
654 (tui_initialize_static_data): Move to tui-stack.c.
655
ed4a1084
TT
6562019-08-15 Tom Tromey <tom@tromey.com>
657
658 * tui/tui-layout.c (show_source_disasm_command)
659 (show_source_or_disasm_and_command): Use make_visible method, not
660 tui_make_window.
661 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
662 Remove.
663
65962b20
TT
6642019-08-15 Tom Tromey <tom@tromey.com>
665
666 * tui/tui-wingeneral.h (tui_make_window): Update.
667 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
668 parameter.
669 (tui_gen_win_info::make_visible): Update.
670 * tui/tui-regs.c (tui_data_window::display_registers_from):
671 Update.
672 * tui/tui-layout.c (show_source_disasm_command)
673 (show_source_or_disasm_and_command): Update.
674 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
675 (enum tui_box): Remove.
676 (struct tui_win_info) <can_box>: New method.
677 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
678 method.
679
2208ee91
TV
6802019-08-15 Tom de Vries <tdevries@suse.de>
681
682 * linux-nat-trad.c: Include gdbarch.h.
683
75faf5c4
AH
6842019-08-14 Alan Hayward <alan.hayward@arm.com>
685
686 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
687 register sizes.
688
b1c896b3
TT
6892019-08-14 Tom Tromey <tromey@adacore.com>
690
691 * darwin-nat.c: Include gdbarch.h.
692 * darwin-nat-info.c: Include gdbarch.h.
693
6405cd73
TT
6942019-08-13 Tom Tromey <tom@tromey.com>
695
696 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
697 Remove.
698 * tui/tui-data.c (tui_initialize_static_data): Update.
699
5216580d
TT
7002019-08-13 Tom Tromey <tom@tromey.com>
701
702 * tui/tui-winsource.h (struct tui_exec_info_window)
703 <~tui_exec_info_window, maybe_allocate_content, get_content,
704 m_content>: Remove.
705 (struct tui_source_window_base) <set_exec_info_content,
706 show_exec_info_content>: Don't declare.
707 * tui/tui-winsource.c
708 (tui_exec_info_window::maybe_allocate_content): Remove.
709 (tui_source_window_base::update_exec_info): Rename from
710 set_exec_info_content.
711 (tui_source_window_base::show_exec_info_content)
712 (tui_source_window_base::update_exec_info): Remove.
713
93858ad3
TT
7142019-08-13 Tom Tromey <tom@tromey.com>
715
716 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
717 declare.
718 * tui/tui-winsource.c (tui_update_source_window_as_is)
719 (tui_update_source_windows_with_addr, tui_erase_source_content):
720 Update.
721 (tui_clear_exec_info_content): Remove.
722
e321e7ce
TT
7232019-08-13 Tom Tromey <tom@tromey.com>
724
725 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
726 declare.
727 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
728 call tui_erase_exec_info_content.
729 (tui_clear_exec_info_content): Rename from
730 tui_erase_exec_info_content.
731 (tui_clear_exec_info_content): Delete.
732
8270ac62
TT
7332019-08-13 Tom Tromey <tom@tromey.com>
734
735 * tui/tui-winsource.h (struct tui_source_window_base)
736 <show_exec_info_content>: Declare.
737 (tui_show_exec_info_content): Don't declare.
738 * tui/tui-winsource.c
739 (tui_source_window_base::show_exec_info_content): Rename from
740 tui_show_exec_info_content.
741 (tui_source_window_base::update_exec_info): Update.
742
7b56485d
TT
7432019-08-13 Tom Tromey <tom@tromey.com>
744
745 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
746 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
747 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
748 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
749 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
750 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
751 ... here.
752
7ba913dc
TT
7532019-08-13 Tom Tromey <tom@tromey.com>
754
755 * tui/tui-winsource.h (struct tui_source_window_base)
756 <update_exec_info>: Declare.
757 (tui_update_exec_info): Don't declare.
758 * tui/tui-winsource.c (tui_update_source_window_as_is)
759 (tui_source_window_base::refresh_all)
760 (tui_update_all_breakpoint_info): Update.
761 (tui_source_window_base::update_exec_info): Rename from
762 tui_update_exec_info.
763 * tui/tui-stack.c (tui_show_frame_info): Update.
764
37a4a131
TT
7652019-08-13 Tom Tromey <tom@tromey.com>
766
767 * tui/tui-winsource.h (struct tui_source_window_base)
768 <set_exec_info_content>: Declare.
769 (tui_set_exec_info_content): Don't declare.
770 * tui/tui-winsource.c
771 (tui_source_window_base::set_exec_info_content): Rename from
772 tui_set_exec_info_content.
773 (tui_update_exec_info): Update.
774
0bd27e07
TT
7752019-08-13 Tom Tromey <tom@tromey.com>
776
777 * tui/tui-winsource.h (struct tui_source_window_base)
778 <show_source_content>: Declare.
779 (tui_show_source_content): Don't declare.
780 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
781 (tui_source_window_base::show_source_content): Rename from
782 tui_show_source_content.
783 (tui_source_window_base::refresh_all): Update.
784 * tui/tui-layout.c (show_source_disasm_command)
785 (show_source_or_disasm_and_command): Update.
786
b4ef5aeb
TT
7872019-08-13 Tom Tromey <tom@tromey.com>
788
789 * tui/tui-winsource.c (tui_erase_source_content)
790 (tui_show_source_content, tui_source_window_base::refresh_all):
791 Update.
792 * tui/tui-wingeneral.h
793 (tui_check_and_display_highlight_if_needed): Don't declare.
794 * tui/tui-wingeneral.c
795 (tui_win_info::check_and_display_highlight_if_needed): Rename from
796 check_and_display_highlight_if_needed.
797 * tui/tui-win.c (tui_rehighlight_all)
798 (tui_win_info::make_visible_with_new_height): Update.
799 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
800 (tui_data_window::erase_data_content)
801 (tui_data_window::display_all_data): Update.
802 * tui/tui-data.h (struct tui_win_info)
803 <check_and_display_highlight_if_needed>: Declare.
804
fede5273
TT
8052019-08-13 Tom Tromey <tom@tromey.com>
806
807 * tui/tui-win.c (tui_resize_all): Call
808 tui_delete_invisible_windows.
809 * tui/tui-layout.c (show_layout): Call
810 tui_delete_invisible_windows.
811 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
812 * tui/tui-data.c (tui_delete_invisible_windows): New function.
813
22c3f490
TT
8142019-08-13 Tom Tromey <tom@tromey.com>
815
816 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
817 tui_add_win_to_layout.
818
16cb7910
TT
8192019-08-13 Tom Tromey <tom@tromey.com>
820
821 * tui/tui-layout.h (tui_default_win_height): Don't declare.
822 * tui/tui-layout.c (tui_default_win_height): Now static.
823
cc0c3ffb
TT
8242019-08-13 Tom Tromey <tom@tromey.com>
825
826 * tui/tui-layout.c (show_layout): Unify all layout cases into a
827 single switch.
828 (show_source_disasm_command, show_source_or_disasm_and_command):
829 Don't check current layout.
830
3f3ffe54
TT
8312019-08-13 Tom Tromey <tom@tromey.com>
832
833 * tui/tui-wingeneral.c (make_all_visible): Remove.
834 (tui_make_all_invisible): Simplify.
835 * tui/tui-layout.c (tui_make_all_invisible): Move from
836 tui-wingeneral.c; simplify.
837 (show_layout): Hoist call to tui_make_all_invisible.
838 (show_data): Don't call tui_make_all_invisible.
839
69258091
TT
8402019-08-13 Tom Tromey <tom@tromey.com>
841
842 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
843 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
844
62cf57fe
TT
8452019-08-13 Tom Tromey <tom@tromey.com>
846
847 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
848 tui-data.c.
849 (show_source_disasm_command, show_data)
850 (show_source_or_disasm_and_command): Don't use
851 tui_set_current_layout_to.
852 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
853 * tui/tui-data.c (current_layout, tui_current_layout): Move to
854 tui-layout.c.
855 (tui_set_current_layout_to): Remove.
856
2afade5d
TT
8572019-08-13 Tom Tromey <tom@tromey.com>
858
859 * tui/tui-layout.c (tui_set_layout): Update.
860 * tui/tui-data.h (struct tui_layout_def): Remove.
861 (tui_layout_def): Don't declare.
862 * tui/tui-data.c (layout_def): Remove.
863 (tui_layout_def): Remove.
864
a3504e96
TT
8652019-08-13 Tom Tromey <tom@tromey.com>
866
867 * tui/tui-winsource.h (struct tui_source_window_base)
868 <clear_detail>: No longer "override".
869 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
870 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
871 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
872 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
873 Remove.
874 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
875
29c92911
TT
8762019-08-13 Tom Tromey <tromey@adacore.com>
877
878 * tracepoint.c: Don't include readline.h or history.h.
879
86c6b807
TT
8802019-08-12 Tom Tromey <tom@tromey.com>
881
882 * configure: Rebuild.
883 * configure.ac: Check for readline 7.
884 * NEWS: Mention readline 7 requirement.
885 * README: Update.
886
5db2718c
TT
8872019-08-12 Tom Tromey <tom@tromey.com>
888
889 * mingw-hdep.c (gdb_select): Remove readline hack.
890
dac36daf
PFC
8912019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
892
893 * blockframe.c (find_pc_partial_function): Set *block to nullptr
894 when the function fails.
895
1022c627
AA
8962019-08-09 Andreas Arnez <arnez@linux.ibm.com>
897
898 * s390-tdep.c (s390_type_align): New function.
899 (s390_gdbarch_init): Set it as type_align gdbarch method.
900
eba4caf2
TV
9012019-08-09 Tom de Vries <tdevries@suse.de>
902
903 PR gdb/24591
904 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
905 pc_low with relocation offset.
906
123cd851
TT
9072019-08-07 Tom Tromey <tromey@adacore.com>
908
909 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
910 (print_frame_args): Update.
911 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
912 Update.
913 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
914 * frame.h (struct frame_arg): Add initializers.
915 <error>: Now a unique_xmalloc_ptr.
916
3d31bc39
AH
9172019-08-07 Alan Hayward <alan.hayward@arm.com>
918
919 * NEWS: Expand the Pointer Authentication entry.
920 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
921 (aarch64_frame_unmask_lr): ... to this.
922 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
923 Call aarch64_frame_unmask_lr.
924 * frame.c (struct frame_info): Add "masked" variable.
925 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
926 (fprint_frame): Check for masked pc.
927 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
928 declarations.
929 * python/py-framefilter.c (py_print_frame): Check for masked pc.
930 * stack.c (print_frame): Check for masked pc.
931
0cf9feb9
TT
9322019-08-06 Tom Tromey <tom@tromey.com>
933
934 * stabsread.c (patch_block_stabs, read_one_struct_field)
935 (read_enum_type): Use obstack_strndup.
936 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
937 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
938 * dwarf2read.c (guess_full_die_structure_name)
939 (anonymous_struct_prefix): Use obstack_strndup.
940 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
941 * c-exp.y (yylex): Use obstack_strndup.
942 * ada-exp.y (write_object_renaming, write_ambiguous_var)
943 (write_var_or_type): Use obstack_strndup.
944
efba19b0
TT
9452019-08-06 Tom Tromey <tom@tromey.com>
946
947 * symfile.c (reread_symbols): Use obstack_strdup.
948 * stabsread.c (read_type): Use obstack_strdup.
949 * gdb_obstack.h (obstack_strdup): New overload.
950 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
951 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
952 (dwarf2_canonicalize_name): Use obstack_strdup.
953 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
954 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
955 Use obstack_strdup.
956
f25102f7
TT
9572019-08-06 Tom Tromey <tom@tromey.com>
958
959 * gdb_obstack.h (obstack_strdup): Define.
960 * gdb_obstack.c (obstack_strdup): Don't define.
961
021887d8
TT
9622019-08-06 Tom Tromey <tom@tromey.com>
963
964 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
965 obstack_strdup.
966 * typeprint.c (typedef_hash_table::find_global_typedef): Use
967 obstack_strdup.
968 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
969 * stabsread.c (common_block_start): Use obstack_strdup.
970 * objfiles.c (set_objfile_main_name, objfile): Use
971 obstack_strdup.
972 * namespace.c (add_using_directive): Use obstack_strdup.
973 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
974 * jit.c (finalize_symtab): Use obstack_strdup.
975 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
976 (guess_partial_die_structure_name, partial_die_info::fixup)
977 (dwarf2_name): Use obstack_strdup.
978 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
979 obstack_strdup.
980 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
981 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
982 obstack_strdup.
983 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
984
d2834edc
PW
9852019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
986
987 * unittests/help-doc-selftests.c: New file.
988 * Makefile.in: Add the new file.
989
590042fc
PW
9902019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
991
992 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
993 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
994 the full first line, except when FOR_VALUE_PREFIX. In this case,
995 the trailing '.' is not output, and the first character is uppercased.
996 (print_help_for_command): Update call to print_doc_line.
997 (print_doc_of_command): Likewise.
998 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
999 * cli/cli-option.c (append_indented_doc): Do not append newline.
1000 (build_help_option): Append newline after first appended_indented_doc
1001 only if a second call is done.
1002 (build_help): Append 2 new lines before each option, except the first
1003 one.
1004 * compile/compile.c (_initialize_compile): Add new lines after
1005 %OPTIONS%, when not at the end of the help.
1006 Change help doc or code
1007 producing the help doc to respect the invariants.
1008 * maint-test-options.c (_initialize_maint_test_options): Likewise.
1009 Also removed the new line after 'Options:', as all other commands
1010 do not put an empty line between 'Options:' and the first option.
1011 * printcmd.c (_initialize_printcmd): Likewise.
1012 * stack.c (_initialize_stack): Likewise.
1013 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
1014 incorrectly telling COMMAND is optional.
1015 * ada-lang.c (_initialize_ada_language): Change help doc or code
1016 producing the help doc to respect the invariants.
1017 * ada-tasks.c (_initialize_ada_tasks): Likewise.
1018 * breakpoint.c (_initialize_breakpoint): Likewise.
1019 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
1020 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
1021 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
1022 * cli/cli-style.c (cli_style_option::add_setshow_commands,
1023 _initialize_cli_style): Likewise.
1024 * corelow.c (core_target_info): Likewise.
1025 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
1026 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
1027 * filesystem.c (_initialize_filesystem): Likewise.
1028 * frame.c (_initialize_frame): Likewise.
1029 * gnu-nat.c (add_task_commands): Likewise.
1030 * infcall.c (_initialize_infcall): Likewise.
1031 * infcmd.c (_initialize_infcmd): Likewise.
1032 * interps.c (_initialize_interpreter): Likewise.
1033 * language.c (_initialize_language): Likewise.
1034 * linux-fork.c (_initialize_linux_fork): Likewise.
1035 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
1036 * maint.c (_initialize_maint_cmds): Likewise.
1037 * memattr.c (_initialize_mem): Likewise.
1038 * printcmd.c (_initialize_printcmd): Likewise.
1039 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
1040 _RegEx): Likewise.
1041 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
1042 * record-btrace.c (_initialize_record_btrace): Likewise.
1043 * record-full.c (_initialize_record_full): Likewise.
1044 * record.c (_initialize_record): Likewise.
1045 * regcache-dump.c (_initialize_regcache_dump): Likewise.
1046 * regcache.c (_initialize_regcache): Likewise.
1047 * remote.c (add_packet_config_cmd, init_remote_threadtests,
1048 _initialize_remote): Likewise.
1049 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1050 * serial.c (_initialize_serial): Likewise.
1051 * skip.c (_initialize_step_skip): Likewise.
1052 * source.c (_initialize_source): Likewise.
1053 * stack.c (_initialize_stack): Likewise.
1054 * symfile.c (_initialize_symfile): Likewise.
1055 * symtab.c (_initialize_symtab): Likewise.
1056 * target-descriptions.c (_initialize_target_descriptions): Likewise.
1057 * top.c (init_main): Likewise.
1058 * tracefile-tfile.c (tfile_target_info): Likewise.
1059 * tracepoint.c (_initialize_tracepoint): Likewise.
1060 * tui/tui-win.c (_initialize_tui_win): Likewise.
1061 * utils.c (add_internal_problem_command): Likewise.
1062 * valprint.c (value_print_option_defs): Likewise.
1063
404f2902
FCE
10642019-08-06 Frank Ch. Eigler <fche@redhat.com>
1065
1066 PR build/24886
1067 * configure.ac: Drop enable-libmcheck support.
1068 * configure, config.in: Rebuild.
1069 * libmcheck.m4: Remove.
1070 * acinclude.m4: Don't include it.
1071 * Makefile.in: Don't distribute it.
1072 * top.c (print_gdb_configuration): Don't mention it.
1073
046bebe1
TT
10742019-08-06 Tom Tromey <tom@tromey.com>
1075
1076 * utils.c (set_output_style): Sometimes pass stream to
1077 emit_style_escape.
1078 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
1079 * record-btrace.c (btrace_insn_history): Update.
1080 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
1081 method.
1082 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
1083 Update initializers.
1084 <m_uiout>: New field.
1085 <m_di>: Move lower.
1086 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1087 Remove "uiout" parameter.
1088 (dump_insns): Update.
1089 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
1090 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
1091
ddbcedf5
CB
10922019-08-06 Christian Biesinger <cbiesinger@google.com>
1093
1094 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
1095 (error_in_psymtab_expansion): Likewise.
1096 (lookup_symbol_via_quick_fns): Likewise.
1097 (basic_lookup_transparent_type_quick): Likewise.
1098 (basic_lookup_transparent_type_1): Likewise.
1099
b08b16c8
TT
11002019-08-06 Tom Tromey <tromey@adacore.com>
1101
1102 * source.c (last_source_error): Now bool.
1103 (print_source_lines_base): Make "noprint" bool. Only open
1104 source file when last_source_visited changes.
1105
cb44333d
TT
11062019-08-06 Tom Tromey <tromey@adacore.com>
1107
1108 * annotate.c (annotate_source_line): Use g_source_cache.
1109 * source-cache.c (source_cache::get_plain_source_lines): Change
1110 parameters. Populate m_offset_cache.
1111 (source_cache::ensure): New method.
1112 (source_cache::get_line_charpos): New method.
1113 (extract_lines): Move lower. Change parameters.
1114 (source_cache::get_source_lines): Move lower.
1115 * source-cache.h (class source_cache): Update comment.
1116 <get_line_charpos>: New method.
1117 <get_source_lines>: Update comment.
1118 <clear>: Clear m_offset_cache.
1119 <get_plain_source_lines>: Change parameters.
1120 <ensure>: New method
1121 <m_offset_cache>: New member.
1122 * source.c (forget_cached_source_info_for_objfile): Update.
1123 (info_source_command): Use g_source_cache.
1124 (find_source_lines, open_source_file_with_line_charpos): Remove.
1125 (print_source_lines_base, search_command_helper): Use g_source_cache.
1126 * source.h (open_source_file_with_line_charpos): Don't declare.
1127 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
1128 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
1129 Use g_source_cache.
1130
872dceaa
TT
11312019-08-06 Tom Tromey <tromey@adacore.com>
1132
1133 * source-cache.c (source_cache::get_plain_source_lines):
1134 Remove "first_line" and "last_line" parameters.
1135 (source_cache::get_source_lines): Cache plain text.
1136 * source-cache.h (class source_cache)
1137 <get_plain_source_lines>: Update.
1138
269249d9
TT
11392019-08-06 Tom Tromey <tromey@adacore.com>
1140
1141 * source-cache.c (extract_lines): No longer a method.
1142 Changed type of parameter. Include final newline.
1143 (selftests::extract_lines_test): New function.
1144 (_initialize_source_cache): Likewise.
1145 * source-cache.h (class source_cache)
1146 <extract_lines>: Don't declare.
1147
c0e8dcd8
TT
11482019-08-06 Tom Tromey <tromey@adacore.com>
1149
1150 * breakpoint.c (init_breakpoint_sal): Update.
1151 (breakpoint): Update.
1152 * breakpoint.h (struct breakpoint) <filter>: Now a
1153 unique_xmalloc_ptr.
1154
0b27c27d
CB
11552019-08-05 Christian Biesinger <cbiesinger@google.com>
1156
1157 * NEWS: Mention dictionary access on blocks.
1158 * python/py-block.c (blpy_getitem): New function.
1159 (block_object_as_mapping): New struct.
1160 (block_object_type): Use new struct for tp_as_mapping field.
1161
4ee94178
CB
11622019-08-05 Christian Biesinger <cbiesinger@google.com>
1163
1164 * objfiles.h (objfile): Add a comment describing partial symbols.
1165
8abfcabc
TT
11662019-08-05 Tom Tromey <tromey@adacore.com>
1167
1168 * compile/compile.c (_initialize_compile): Use _(), not N_().
1169 * thread.c (_initialize_thread): Use _(), not N_().
1170 * stack.c (_initialize_stack): Use _(), not N_().
1171 * printcmd.c (_initialize_printcmd): Use _(), not N_().
1172
2b79f376
SM
11732019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1174
1175 * dwarf2read.c (struct dw2_symtab_iterator):
1176 <want_specific_block>: Remove.
1177 <block_index>: Change type to gdb::optional.
1178 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
1179 change type of BLOCK_INDEX parameter to gdb::optional.
1180 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
1181 (dw2_lookup_symbol): Don't pass argument for
1182 WANT_SPECIFIC_BLOCK.
1183 (dw2_expand_symtabs_for_function): Don't pass argument for
1184 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
1185 (class dw2_debug_names_iterator)
1186 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
1187 parameter, change BLOCK_INDEX type to gdb::optional.
1188 <m_want_specific_block>: Remove.
1189 <m_block_index>: Change type to gdb::optional.
1190 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
1191 gdb::optional. Re-write in function of gdb::optional.
1192 (dw2_debug_names_lookup_symbol): Don't pass argument for
1193 WANT_SPECIFIC_BLOCK.
1194 (dw2_debug_names_expand_symtabs_for_function): Don't pass
1195 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
1196 BLOCK_INDEX.
1197
ae60f04e
PW
11982019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1199
1200 * NEWS: Mention changes to "info sources" command.
1201
28cd9371
PW
12022019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1203
1204 * symtab.c (filename_partial_match_opts): New struct type.
1205 (struct output_source_filename_data): New members
1206 regexp, c_regexp, partial_match.
1207 (output_source_filename): Use new members to decide to print file.
1208 (info_sources_option_defs): New variable.
1209 (make_info_sources_options_def_group, print_info_sources_header,
1210 info_sources_command_completer):
1211 New functions.
1212 (info_sources_command): Read new optional arguments.
1213 (_initialize_symtab): Update info sources help.
1214
ca683e3a
AO
12152019-08-02 Alexandre Oliva <oliva@adacore.com>
1216
1217 * ada-lang.c (exception_support_info_v0): Renamed from...
1218 (default_exception_support_info): ... this. Create new
1219 definition for v1.
1220 (ada_has_this_exception_support): Look up catch_handlers_sym.
1221 (ada_exception_support_info_sniffer): Try v0 after default.
1222
f1264162
TT
12232019-08-01 Tom Tromey <tromey@adacore.com>
1224
1225 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
1226 gdbarch.h.
1227
0a7b2485
CB
12282019-08-01 Christian Biesinger <cbiesinger@google.com>
1229
1230 * s12z-tdep.c: Fix include path for s12z-opc.h.
1231
c6bdbeb7
AH
12322019-08-01 Alan Hayward <alan.hayward@arm.com>
1233
1234 * NEWS: Require GNU make 3.82.
1235
a2bd7b82
TT
12362019-07-16 Tom Tromey <tom@tromey.com>
1237
1238 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
1239 declare.
1240
aa3b6533
TT
12412019-07-30 Tom Tromey <tromey@adacore.com>
1242
1243 * block.c (contained_in): Remove BLOCK_FUNCTION check.
1244
a1530dc7
KB
12452019-07-30 Kevin Buettner <kevinb@redhat.com>
1246
1247 * printcmd.c (print_address_symbolic): Print negative offsets.
1248 (build_address_symbolic): Force signed arithmetic when computing
1249 offset.
1250
2906593f
CB
12512019-07-30 Christian Biesinger <cbiesinger@google.com>
1252
1253 PR/24474: Add a function to lookup static variables.
1254 * NEWS: Mention this new function.
1255 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
1256 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
1257 * python/python.c (python_GdbMethods): Add new function.
1258
c620ed88
CB
12592019-07-29 Christian Biesinger <cbiesinger@google.com>
1260
1261 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
1262 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
1263 (objfpy_lookup_static_symbol): New function.
1264 (objfile_object_methods): Add new functions.
1265
bc4268a5
PW
12662019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1267
1268 * NEWS: Mention 'set|show print frame-info'. Mention new
1269 'presence' value for 'frame-arguments'. Mention new '-frame-info'
1270 backtrace argument. Mention that python frame filtering code
1271 is now consistent with what 'backtrace' command prints.
1272
4b5e8d19
PW
12732019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1274
1275 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
1276 comments.
1277 (print_frame_info_auto, print_frame_info_source_line,
1278 print_frame_info_location, print_frame_info_source_and_location,
1279 print_frame_info_location_and_address, print_frame_info_short_location):
1280 New declarations.
1281 (struct frame_print_options): New member print_frame_info.
1282 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
1283 * stack.h (get_user_print_what_frame_info): New declaration.
1284 (frame_show_address): New declaration.
1285 * stack.c (print_frame_arguments_choices): New value 'presence'.
1286 (print_frame_info_auto, print_frame_info_source_line,
1287 print_frame_info_location, print_frame_info_source_and_location,
1288 print_frame_info_location_and_address, print_frame_info_short_location,
1289 print_frame_info_choices, print_frame_info_print_what): New definitions.
1290 (print_frame_args): Only print dots for args if print frame-arguments
1291 is 'presence'.
1292 (frame_print_option_defs): New element for "frame-info".
1293 (get_user_print_what_frame_info): New function.
1294 (frame_show_address): Make non static. Move comment to stack.h.
1295 (print_frame_info_to_print_what): New function.
1296 (print_frame_info): Update comment. Use fp_opts.print_frame_info
1297 to decide what to print.
1298 (backtrace_command_1): Handle the new print_frame_arguments_presence
1299 value.
1300 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
1301 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
1302 (py_print_frame): In non-mi mode, use LOCATION as default for
1303 print_what, similarly to frame information printed directly by
1304 backtrace command. Handle frame-info user option in non MI mode.
1305
6bdfee81
KB
13062019-07-27 Kevin Buettner <kevinb@redhat.com>
1307
1308 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
1309 Add case for debugging 32-bit target on 64-bit host. Revise
1310 comment.
1311
98a617f8
KB
13122019-07-27 Kevin Buettner <kevinb@redhat.com>
1313
1314 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
1315 instead of find_function_entry_range_from_pc.
1316
567238c9
KB
13172019-07-27 Kevin Buettner <kevinb@redhat.com>
1318
1319 * stack.c (find_frame_funname): Remove code which preferred
1320 minsym over symtab sym in "certain pathological cases".
1321
2dc80cf8
KB
1322 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
1323 parameter. Change type of "do_demangle" to bool.
1324 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1325 Pass suitable "prefer_sym_over_minsym" flag to
1326 build_address_symbolic(). Don't output "+" for negative offsets.
1327 * printcmd.c (print_address_symbolic): Update invocation of
1328 build_address_symbolic to include a "prefer_sym_over_minsym"
1329 flag.
1330 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
1331 Restrict cases in which use of minimal symbol is preferred to that
1332 of a found symbol. Update comments.
1333
1aff7173
KB
1334 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
1335 for entry pc when entry pc is out of range for that FDE.
1336
89b085ac
BC
13372019-07-26 Brian Callahan <bcallah@openbsd.org>
1338
1339 PR gdb/24839:
1340 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
1341 type.
1342
f32feb4a
CB
13432019-07-25 Christian Biesinger <cbiesinger@google.com>
1344
1345 * python/py-objfile.c (add_separate_debug_file): Fix comment about
1346 this function's Python signature.
1347
1348
13492019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
1350
1351 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
1352 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1353 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
1354 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
1355 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
1356
1357
c54e4253
YS
13582019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
1359
1360 * h8300-tdep.c (h8300_register_name_common): New.
1361 h8300_register_name): Use h8300_register_name_common.
1362 (h8300s_register_name): Likewise.
1363 (h8300sx_register_name): Likewise.
1364 (h8300h_register_nam): New.
1365 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
1366
1367
40eadf04
SP
13682019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1369
1370 * arm-tdep.c (arm_skip_cmse_entry): New function.
1371 (arm_is_sgstubs_section): New function.
1372 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
1373
bfa2a36d
TT
13742019-07-22 Tom Tromey <tom@tromey.com>
1375
1376 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
1377 Don't self-assign.
1378
a8e9d247
AB
13792019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1380
1381 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
1382 type_print.
1383
eb86c5e2
AB
13842019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1385
1386 * symtab.c (search_symbols): Adjust msymbol matching type arrays
1387 so that GDB doesn't match any msymbols when searching in the
1388 TYPES_DOMAIN.
1389 (print_symbol_info): Print using typedef_print or type_print based
1390 on the type of the symbol. Add updated FIXME comment moved from...
1391 (_initialize_symtab): ... move and update FIXME comment to above.
1392
a8eab7c6
AB
13932019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * NEWS: Mention adding -q option to "info types".
1396 * symtab.c (struct info_types_options): New struct.
1397 (info_types_options_defs): New variable.
1398 (make_info_types_options_def_group): New function.
1399 (info_types_command): Use gdb::option framework to parse options.
1400 (info_types_command_completer): New function.
1401 (_initialize_symtab): Extend the help text on "info types" and
1402 register command completer.
1403
b4603c34
CB
14042019-07-21 Christian Biesinger <cbiesinger@google.com>
1405
1406 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
1407 (lookup_symbol_in_objfile): Change int to block_enum and add a
1408 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
1409
c8cdc1e0
CB
14102019-07-20 Christian Biesinger <cbiesinger@google.com>
1411
1412 * MAINTAINERS (Write After Approval): Add self.
1413
01e175fe
AB
14142019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
1415
1416 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
1417 instruction to the dummy code region.
1418
56f79b63
TT
14192019-07-19 Tom Tromey <tromey@adacore.com>
1420
1421 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
1422 (ARGSUSED, PARAMS, __func__): Remove rules.
1423
4c5aa8e0
AH
14242019-07-19 Alan Hayward <alan.hayward@arm.com>
1425
1426 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
1427 * features/arm/arm-with-iwmmxt.c: Remove.
1428 * features/arm/arm-with-iwmmxt.xml: Remove.
1429 * features/arm/arm-with-m-fpa-layout.c: Remove.
1430 * features/arm/arm-with-m-fpa-layout.xml: Remove.
1431 * features/arm/arm-with-m-vfp-d16.c: Remove.
1432 * features/arm/arm-with-m-vfp-d16.xml: Remove.
1433 * features/arm/arm-with-m.c: Remove.
1434 * features/arm/arm-with-m.xml: Remove.
1435 * features/arm/arm-with-neon.c: Remove.
1436 * features/arm/arm-with-neon.xml: Remove.
1437 * features/arm/arm-with-vfpv2.c: Remove.
1438 * features/arm/arm-with-vfpv2.xml: Remove.
1439 * features/arm/arm-with-vfpv3.c: Remove.
1440 * features/arm/arm-with-vfpv3.xml: Remove.
1441
f42b2617
AH
14422019-07-19 Alan Hayward <alan.hayward@arm.com>
1443
1444 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
1445
f29ec966
AH
14462019-07-19 Alan Hayward <alan.hayward@arm.com>
1447
1448 * arch/aarch32.c (aarch32_create_target_description): Create
1449 target descriptions using features.
1450 * arch/arm.c (arm_create_target_description)
1451 (arm_create_mprofile_target_description): Likewise.
1452 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
1453
d105cce5
AH
14542019-07-19 Alan Hayward <alan.hayward@arm.com>
1455
1456 * Makefile.in: Add new files.
1457 * aarch32-tdep.c: New file.
1458 * aarch32-tdep.h: New file.
1459 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1460 Call aarch32_read_description.
1461 * arch/aarch32.c: New file.
1462 * arch/aarch32.h: New file.
1463 * arch/arm.c (arm_create_target_description)
1464 (arm_create_mprofile_target_description): New function.
1465 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
1466 (arm_create_target_description)
1467 (arm_create_mprofile_target_description): New declaration.
1468 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
1469 read_description functions.
1470 * arm-linux-nat.c (arm_linux_nat_target::read_description):
1471 Likewise.
1472 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1473 * arm-tdep.c (tdesc_arm_list): New variable.
1474 (arm_register_g_packet_guesses): Call create description functions.
1475 (arm_read_description) (arm_read_mprofile_description): New
1476 function.
1477 * arm-tdep.h (arm_read_description)
1478 (arm_read_mprofile_description): Add declaration.
1479 * configure.tgt: Add new files.
1480
afe09f0b
GL
14812019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
1482
1483 * top.c (new_ui_command): Open specified terminal just once.
1484
cd215b2e
TT
14852019-07-18 Tom Tromey <tromey@adacore.com>
1486
1487 * symtab.c (main_name): Constify return type.
1488 * symfile.c (set_initial_language): Update.
1489 * symtab.h (main_name): Constify return type.
1490
d8f68fcb
TT
14912019-07-17 Tom Tromey <tom@tromey.com>
1492
1493 * tui/tui-winsource.c (tui_update_source_window)
1494 (tui_update_source_window_as_is)
1495 (tui_update_source_windows_with_line): Remove return.
1496 * tui/tui-disasm.c (tui_show_disassem)
1497 (tui_show_disassem_and_update_source): Remove return.
1498 * tui/tui.c (tui_reset): Remove return.
1499 * tui/tui-wingeneral.c
1500 (tui_check_and_display_highlight_if_needed): Remove return.
1501
ca5af91e
TT
15022019-07-17 Tom Tromey <tom@tromey.com>
1503
1504 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
1505
5104fe36
TT
15062019-07-17 Tom Tromey <tom@tromey.com>
1507
1508 * tui/tui-winsource.h (struct tui_exec_info_window)
1509 (struct tui_source_window_base): Move from tui-data.h.
1510 * tui/tui-winsource.c: Move many method definitions from
1511 elsewhere. Remove "structuring" comments.
1512 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
1513 (tui_source_window_base::refresh_window): Move to
1514 tui-winsource.c.
1515 * tui/tui-win.c (tui_source_window_base::refresh_all)
1516 (tui_source_window_base::update_tab_width)
1517 (tui_source_window_base::set_new_height)
1518 (tui_source_window_base::do_make_visible_with_new_height): Move to
1519 tui-winsource.c.
1520 * tui/tui-source.h: Update.
1521 * tui/tui-source.c (tui_source_window_base::reset): Move to
1522 tui-winsource.c.
1523 * tui/tui-disasm.h: Update.
1524 * tui/tui-data.h (struct tui_exec_info_window): Move to
1525 tui-winsource.h.
1526 (struct tui_source_window_base): Likewise.
1527 * tui/tui-data.c (tui_source_window_base::clear_detail)
1528 (tui_source_window_base, ~tui_source_window_base): Move to
1529 tui-winsource.c.
1530
daa15dde
TT
15312019-07-17 Tom Tromey <tom@tromey.com>
1532
1533 * tui/tui-win.c (tui_resize_all)
1534 (tui_source_window_base::update_tab_width)
1535 (tui_adjust_win_heights): Update.
1536 (tui_win_info::make_invisible_and_set_new_height): Rename from
1537 make_invisible_and_set_new_height.
1538 * tui/tui-data.h (struct tui_win_info)
1539 <make_invisible_and_set_new_height>: New method.
1540
bfad4537
TT
15412019-07-17 Tom Tromey <tom@tromey.com>
1542
1543 * tui/tui.c: Update.
1544 * tui/tui-source.h (struct tui_source_window): Move from
1545 tui-data.h.
1546 * tui/tui-layout.c: Update.
1547 * tui/tui-disasm.c: Update.
1548 * tui/tui-data.h (struct tui_source_window): Move to
1549 tui-source.h.
1550
88f7e873
TT
15512019-07-17 Tom Tromey <tom@tromey.com>
1552
1553 * tui/tui-disasm.h (struct tui_disasm_window): Move from
1554 tui-data.h.
1555 * tui/tui-data.h (struct tui_disasm_window): Move to
1556 tui-disasm.h.
1557
96bd6233
TT
15582019-07-17 Tom Tromey <tom@tromey.com>
1559
1560 * tui/tui-regs.h (struct tui_data_item_window): Move from
1561 tui-data.h.
1562 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
1563 * tui/tui-data.h (struct tui_data_item_window): Move to
1564 tui-regs.h.
1565 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
1566
ce38393b
TT
15672019-07-17 Tom Tromey <tom@tromey.com>
1568
1569 * tui/tui.c: Update.
1570 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
1571 (tui_cmd_window::max_height): Move to tui-command.c.
1572 * tui/tui-layout.c: Update.
1573 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
1574 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
1575 tui-command.c.
1576 * tui/tui-command.h (struct tui_cmd_window): Move from
1577 tui-data.h.
1578 * tui/tui-command.c: Remove "structuring" comments.
1579 (tui_cmd_window::clear_detail)
1580 (tui_cmd_window::do_make_visible_with_new_height)
1581 (tui_cmd_window::max_height): Move from elsewhere.
1582
2d8b51cb
TT
15832019-07-17 Tom Tromey <tom@tromey.com>
1584
1585 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
1586 Now static.
1587 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
1588 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
1589
18ab23af
TT
15902019-07-17 Tom Tromey <tom@tromey.com>
1591
1592 * tui/tui.c: Update.
1593 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
1594 tui-regs.c.
1595 * tui/tui-windata.h: Remove file.
1596 * tui/tui-windata.c: Remove file.
1597 * tui/tui-win.c (tui_data_window::set_new_height)
1598 (tui_data_window::do_make_visible_with_new_height): Move to
1599 tui-regs.c.
1600 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
1601 * tui/tui-regs.c: Remove "structuring" comments.
1602 (tui_data_window::first_data_item_displayed)
1603 (tui_data_window::delete_data_content_windows)
1604 (tui_data_window::erase_data_content)
1605 (tui_data_window::display_all_data)
1606 (tui_data_window::refresh_all)
1607 (tui_data_window::do_scroll_vertical)
1608 (tui_data_window::clear_detail, tui_data_window::set_new_height)
1609 (tui_data_window::do_make_visible_with_new_height)
1610 (tui_data_window::refresh_window): Move from elsewhere.
1611 (_initialize_tui_regs): Move to end of file.
1612 * tui/tui-layout.c: Update.
1613 * tui/tui-hooks.c: Update.
1614 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
1615 * tui/tui-data.c (tui_data_window::clear_detail): Move to
1616 tui-regs.c.
1617 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
1618
88b7e7cc
TT
16192019-07-17 Tom Tromey <tom@tromey.com>
1620
1621 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
1622 seen.
1623
0fcd3711
TT
16242019-07-17 Tom Tromey <tom@tromey.com>
1625
1626 * tui/tui-win.c (tui_source_window_base::set_new_height)
1627 (tui_source_window_base::do_make_visible_with_new_height): Use
1628 m_has_locator field directly.
1629 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
1630 method.
1631 (struct tui_source_window_base) <has_locator>: Likewise.
1632
4a38112d
TT
16332019-07-17 Tom Tromey <tom@tromey.com>
1634
1635 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
1636 Don't declare.
1637 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
1638 Remove.
1639 * tui/tui-win.c (tui_source_window_base::set_new_height)
1640 (tui_source_window_base::set_new_height)
1641 (make_invisible_and_set_new_height)
1642 (tui_source_window_base::do_make_visible_with_new_height)
1643 (tui_source_window_base::do_make_visible_with_new_height):
1644 Update.
1645 * tui/tui-layout.c (show_source_disasm_command, show_data)
1646 (show_source_or_disasm_and_command): Update.
1647 * tui/tui-layout.c (show_layout): Update.
1648
09129226
TT
16492019-07-17 Tom Tromey <tom@tromey.com>
1650
1651 * tui/tui-layout.c (make_data_window): Remove.
1652 (show_data): Unify creation and re-initialization cases.
1653
4a8a5e84
TT
16542019-07-17 Tom Tromey <tom@tromey.com>
1655
1656 * tui/tui-layout.c (make_source_window, make_disasm_window):
1657 Remove.
1658 (show_data): Unify creation and re-initialization cases.
1659
76d2be8e
TT
16602019-07-17 Tom Tromey <tom@tromey.com>
1661
1662 * tui/tui-layout.c (make_command_window): Remove.
1663 (show_source_disasm_command, show_source_or_disasm_and_command):
1664 Unify creation and re-initialization cases.
1665
890b8bde
TT
16662019-07-17 Tom Tromey <tom@tromey.com>
1667
1668 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
1669 creation and re-initialization cases.
1670
2cdfa113
TT
16712019-07-17 Tom Tromey <tom@tromey.com>
1672
1673 * tui/tui-regs.c (tui_get_register): Return void.
1674
8e3cfd09
TT
16752019-07-17 Tom Tromey <tom@tromey.com>
1676
1677 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
1678 Simplify.
1679
f4e04977
TT
16802019-07-17 Tom Tromey <tom@tromey.com>
1681
1682 * tui/tui-layout.c (show_source_disasm_command): Simplify window
1683 resetting.
1684
0379b883
TT
16852019-07-17 Tom Tromey <tom@tromey.com>
1686
1687 * tui/tui.h (tui_set_layout_by_name): Don't declare.
1688 * tui/tui-regs.c (tui_reg_layout): New function.
1689 (tui_show_registers, tui_reg_command): Use it.
1690 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
1691 (tui_layout_command): Rename from tui_set_layout_by_name. Change
1692 parameters.
1693 (tui_layout_command): Remove.
1694
b7fbad91
TT
16952019-07-17 Tom Tromey <tom@tromey.com>
1696
1697 * tui/tui-layout.h (tui/tui-layout): Return void.
1698 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
1699
4e1e56b9
TT
17002019-07-17 Tom Tromey <tom@tromey.com>
1701
1702 * tui/tui-layout.c (show_source_disasm_command, show_data):
1703 Update.
1704 (reset_locator): Remove.
1705 (show_source_or_disasm_and_command): Update.
1706
1e0c09ba
TT
17072019-07-17 Tom Tromey <tom@tromey.com>
1708
1709 * tui/tui-source.c (tui_source_window_base::reset): Remove
1710 win_type parameter.
1711 * tui/tui-layout.c (make_command_window, make_source_window)
1712 (make_disasm_window, make_data_window)
1713 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
1714 (reset_locator, show_source_or_disasm_and_command): Update.
1715 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
1716 win_type parameter.
1717 (struct tui_source_window_base) <reset>: Likewise.
1718
1bf605de
TT
17192019-07-17 Tom Tromey <tom@tromey.com>
1720
1721 * tui/tui-layout.c (show_source_disasm_command): Use
1722 reset_locator.
1723 (reset_locator): New function.
1724 (init_and_make_win): Remove.
1725 (show_source_or_disasm_and_command): Use reset_locator.
1726
098f9ed4
TT
17272019-07-17 Tom Tromey <tom@tromey.com>
1728
1729 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
1730 condition.
1731 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
1732 Remove condition.
1733 * tui/tui-source.c (tui_source_window_base::reset): New method.
1734 * tui/tui-layout.c (make_command_window): Don't call
1735 init_and_make_win.
1736 (make_source_window, make_disasm_window): Don't call
1737 make_source_or_disasm_window.
1738 (make_data_window): Don't call init_and_make_win. Change calling
1739 convention.
1740 (show_source_disasm_command, show_data): Simplify.
1741 (make_source_or_disasm_window): Remove.
1742 (show_source_or_disasm_and_command): Simplify.
1743 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
1744 (struct tui_source_window_base) <reset>: Likewise.
1745 <execution_info>: Remove initializer.
1746 * tui/tui-data.c (tui_source_window_base): Initialize
1747 execution_info.
1748
80110957
TT
17492019-07-17 Tom Tromey <tom@tromey.com>
1750
1751 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
1752 variable.
1753
cf82af05
TT
17542019-07-17 Tom Tromey <tom@tromey.com>
1755
1756 * tui/tui.c (tui_rl_other_window): Update.
1757 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
1758 superclass method first. Always iterate over regs_content.
1759 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
1760 method.
1761 * tui/tui-win.c (tui_set_focus_command): Update.
1762
01aeb396
TT
17632019-07-17 Tom Tromey <tom@tromey.com>
1764
1765 * tui/tui-win.c (tui_set_focus_command): Rename from
1766 tui_set_focus. Call tui_enable.
1767 (tui_set_focus_command): Remove.
1768
fd6c75ee
TT
17692019-07-17 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
1772 refresh_window.
1773 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
1774 touchwin.
1775 (tui_data_window::refresh_window): Call refresh_window on data
1776 items. Always call superclass refresh_window.
1777 (tui_win_info::refresh): Remove.
1778 (tui_source_window_base::refresh_window): Update.
1779 (tui_refresh_all): Update.
1780 * tui/tui-layout.c (show_source_disasm_command): Remove call to
1781 refresh_window.
1782 (show_source_or_disasm_and_command): Likewise.
1783 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
1784 (struct tui_source_window_base) <refresh>: Likewise.
1785
f6cc34a9
TT
17862019-07-17 Tom Tromey <tom@tromey.com>
1787
1788 * tui/tui-winsource.c (tui_clear_source_content)
1789 (tui_show_source_content): Update.
1790 * tui/tui-source.c (tui_source_window::showing_source_p): Check
1791 whether content is empty.
1792 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
1793 Remove.
1794
f31ec9af
TT
17952019-07-17 Tom Tromey <tom@tromey.com>
1796
1797 * tui/tui-winsource.c (tui_erase_source_content): Clear the
1798 window's contents.
1799 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
1800 * tui/tui-source.c (tui_set_source_content_nil): Remove.
1801
d1b6f1e5
TT
18022019-07-17 Tom Tromey <tom@tromey.com>
1803
1804 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
1805 (struct tui_data_item_window): Update.
1806
d9743a13
TT
18072019-07-17 Tom Tromey <tom@tromey.com>
1808
1809 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
1810 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
1811 defines.
1812
caf0bc4e
TT
18132019-07-17 Tom Tromey <tom@tromey.com>
1814
1815 * tui/tui-winsource.h (tui_erase_source_content)
1816 (tui_clear_source_content): Remove "display_prompt" parameter.
1817 * tui/tui-winsource.c (tui_update_source_window_as_is)
1818 (tui_update_source_windows_with_addr): Update.
1819 (tui_clear_source_content): Remove "display_prompt" parameter.
1820 (tui_erase_source_content): Likewise. Simplify.
1821 (tui_show_source_content): Update.
1822 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
1823 * tui/tui-stack.c (tui_show_frame_info): Update.
1824 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
1825 Remove defines.
1826
9d391078
TT
18272019-07-17 Tom Tromey <tom@tromey.com>
1828
1829 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
1830 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
1831 parameter.
1832 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
1833 parameter.
1834
a38da35d
TT
18352019-07-17 Tom Tromey <tom@tromey.com>
1836
1837 * tui/tui-winsource.c (tui_clear_source_content)
1838 (tui_show_source_content, tui_show_exec_info_content)
1839 (tui_clear_exec_info_content): Update.
1840 * tui/tui-stack.c (tui_show_locator_content): Update.
1841 (tui_show_frame_info): Update.
1842 * tui/tui-source.h (tui_source_window): Don't declare.
1843 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
1844 from tui_source_is_displayed.
1845 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
1846 Remove field.
1847 (struct tui_source_window_base) <content_in_use>: New field. Now
1848 bool.
1849 (struct tui_source_window) <showing_source_p>: New method.
1850 (TUI_SRC_WIN): Change cast.
1851 * tui/tui-data.c (tui_initialize_static_data): Update.
1852
c2cd8994
TT
18532019-07-17 Tom Tromey <tom@tromey.com>
1854
1855 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
1856 location_matches_p.
1857 * tui/tui-source.c (tui_source_window::location_matches_p): New
1858 method.
1859 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
1860 method.
1861 * tui/tui-data.h (struct tui_source_window_base)
1862 <location_matches_p>: New method.
1863 (struct tui_source_window, struct tui_disasm_window)
1864 <location_matches_p>: Likewise.
1865
4dde7b34
TT
18662019-07-17 Tom Tromey <tom@tromey.com>
1867
1868 * tui/tui-win.c (tui_set_win_height_command): Rename from
1869 tui_set_win_height.
1870 (tui_set_win_height_command): Remove.
1871
b73dd877
TT
18722019-07-17 Tom Tromey <tom@tromey.com>
1873
1874 * tui/tui-source.c (tui_source_window): New constructor. Add
1875 observer.
1876 (~tui_source_window): New destructor.
1877 (tui_source_window::style_changed): New method.
1878 * tui/tui-hooks.c (tui_redisplay_source): Remove.
1879 (tui_attach_detach_observers): Update.
1880 * tui/tui-data.h (struct tui_source_window): Make constructor not
1881 inline. Add destructor.
1882 (struct tui_source_window) <style_changed>: New method.
1883 <m_observable>: New member.
1884
ae2b5380
TT
18852019-07-17 Tom Tromey <tom@tromey.com>
1886
1887 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
1888 * tui/tui-win.c (tui_resize_all): Fix typo.
1889
1ce3e844
TT
18902019-07-17 Tom Tromey <tom@tromey.com>
1891
1892 * tui/tui-wingeneral.h (tui_refresh_all): Update.
1893 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
1894 (tui_refresh_all): Remove "list" parameter. Use foreach.
1895 * tui/tui-win.c (window_name_completer): Use foreach.
1896 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
1897 (update_tab_width): Likewise.
1898 * tui/tui-layout.c (show_layout): Update.
1899 * tui/tui-data.h (class tui_window_iterator): New.
1900 (struct all_tui_windows): New.
1901 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
1902
fe3eaf1c
TT
19032019-07-17 Tom Tromey <tom@tromey.com>
1904
1905 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
1906 parameter. Don't reference globals.
1907 (tui_reg_command): Update.
1908
368c1354
TT
19092019-07-17 Tom Tromey <tom@tromey.com>
1910
1911 * tui/tui-regs.c (tui_show_registers): Simplify.
1912
e80cd204
TT
19132019-07-17 Tom Tromey <tom@tromey.com>
1914
1915 * tui/tui-regs.c (tui_show_registers): Update.
1916 (tui_show_register_group): Add win_info parameter.
1917
aca2dd16
TT
19182019-07-17 Tom Tromey <tom@tromey.com>
1919
1920 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
1921 Rename from tui_display_reg_element_at_line.
1922 (tui_data_window::display_registers_from_line): Update.
1923 * tui/tui-data.h (struct tui_data_window)
1924 <display_reg_element_at_line>: New method.
1925
517e9505
TT
19262019-07-17 Tom Tromey <tom@tromey.com>
1927
1928 * tui/tui-regs.h (tui_display_registers_from)
1929 (tui_display_registers_from_line): Don't declare.
1930 * tui/tui-windata.c (tui_data_window::display_all_data)
1931 (tui_data_window::refresh_all)
1932 (tui_data_window::do_scroll_vertical): Update.
1933 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
1934 from tui_display_registers_from.
1935 (tui_display_reg_element_at_line): Update.
1936 (tui_data_window::display_registers_from_line): Rename from
1937 tui_display_registers_from_line.
1938 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
1939 display_registers_from_line>: New methods.
1940
f76d8b19
TT
19412019-07-17 Tom Tromey <tom@tromey.com>
1942
1943 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
1944 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
1945 from tui_erase_data_content.
1946 (tui_data_window::display_all_data)
1947 (tui_data_window::refresh_all)
1948 (tui_data_window::do_scroll_vertical): Update.
1949 * tui/tui-regs.c (tui_show_registers): Update.
1950 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
1951 New method.
1952
b4094625
TT
19532019-07-17 Tom Tromey <tom@tromey.com>
1954
1955 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
1956 declare.
1957 * tui/tui-windata.c
1958 (tui_data_window::delete_data_content_windows): Rename from
1959 tui_delete_data_content_windows.
1960 (tui_data_window::display_all_data)
1961 (tui_data_window::do_scroll_vertical): Update.
1962 * tui/tui-data.h (struct tui_data_window)
1963 <delete_data_content_windows>: New method.
1964
c223a729
TT
19652019-07-17 Tom Tromey <tom@tromey.com>
1966
1967 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
1968 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
1969
50daf268
TT
19702019-07-17 Tom Tromey <tom@tromey.com>
1971
1972 * tui/tui-windata.h (tui_display_all_data): Don't declare.
1973 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
1974 from tui_display_all_data.
1975 * tui/tui-win.c
1976 (tui_data_window::do_make_visible_with_new_height): Update.
1977 * tui/tui-regs.c (tui_show_registers): Update.
1978 * tui/tui-layout.c (tui_set_layout): Update.
1979 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
1980 method.
1981
df5f8cab
TT
19822019-07-17 Tom Tromey <tom@tromey.com>
1983
1984 * tui/tui-windata.h (tui_display_data_from): Don't declare.
1985 * tui/tui-windata.c (tui_display_data_from): Remove.
1986 (tui_data_window::refresh_all): Update.
1987
80cb6c27
TT
19882019-07-17 Tom Tromey <tom@tromey.com>
1989
1990 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
1991 * tui/tui-windata.c (tui_display_data_from_line): Remove.
1992 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
1993 tui_display_registers_from_line.
1994 * tui/tui-regs.h (tui_display_registers_from_line): Update.
1995 * tui/tui-regs.c (tui_display_registers_from_line): Remove
1996 "force_display" parameter.
1997
baff0c28
TT
19982019-07-17 Tom Tromey <tom@tromey.com>
1999
2000 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
2001 declare.
2002 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
2003 Rename from tui_first_reg_element_no_inline.
2004 (tui_display_reg_element_at_line)
2005 (tui_display_registers_from_line): Update.
2006 * tui/tui-data.h (struct tui_data_window)
2007 <first_reg_element_no_inline>: New method.
2008
3b23c5f2
TT
20092019-07-17 Tom Tromey <tom@tromey.com>
2010
2011 * tui/tui-windata.c (tui_display_data_from)
2012 (tui_data_window::do_scroll_vertical): Update.
2013 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
2014 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
2015 Rename from tui_line_from_reg_element_no.
2016 (tui_display_registers_from_line): Update.
2017 * tui/tui-data.h (struct tui_data_window)
2018 <line_from_reg_element_no>: New method.
2019
0b5ec218
TT
20202019-07-17 Tom Tromey <tom@tromey.com>
2021
2022 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
2023 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
2024 tui_last_regs_line_no.
2025 (tui_display_reg_element_at_line)
2026 (tui_display_registers_from_line): Update.
2027 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
2028 method.
2029
0807ab7b
TT
20302019-07-17 Tom Tromey <tom@tromey.com>
2031
2032 PR tui/24722:
2033 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
2034 (tui_update_breakpoint_info): Add "being_deleted" parameter.
2035 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2036 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
2037 (tui_update_breakpoint_info): Likewise.
2038 * tui/tui-hooks.c (tui_event_create_breakpoint)
2039 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
2040 Update.
2041
9ad7fdef
TT
20422019-07-17 Tom Tromey <tom@tromey.com>
2043
2044 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
2045
5813316f
TT
20462019-07-17 Tom Tromey <tom@tromey.com>
2047
2048 * tui/tui-winsource.c (tui_update_source_window_as_is)
2049 (tui_update_source_windows_with_addr): Update.
2050 * tui/tui-source.h (tui_set_source_content)
2051 (tui_show_symtab_source): Add "win_info" parameter.
2052 * tui/tui-source.c (tui_set_source_content): Add "win_info"
2053 parameter.
2054 (tui_show_symtab_source): Likewise.
2055
00e264e7
TT
20562019-07-17 Tom Tromey <tom@tromey.com>
2057
2058 * tui/tui-wingeneral.c
2059 (tui_check_and_display_highlight_if_needed): Check can_highlight.
2060
06210ce4
TT
20612019-07-17 Tom Tromey <tom@tromey.com>
2062
2063 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
2064 (struct tui_cmd_window) <can_scroll>: New method.
2065 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
2066 method.
2067
381befee
TT
20682019-07-17 Tom Tromey <tromey@adacore.com>
2069
2070 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
2071 do_field_signed>: Rename. Change type of "value".
2072 * ui-out.c (ui_out::field_signed): Rename from field_int.
2073 Change type of "value".
2074 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
2075 type of "value".
2076 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
2077 do_field_int. Change type of "value".
2078 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
2079 do_field_int. Change type of "value".
2080 * tracepoint.c (trace_status_mi, tfind_1)
2081 (print_one_static_tracepoint_marker): Update.
2082 * thread.c (print_thread_info_1, print_selected_thread_frame):
2083 Update.
2084 * stack.c (print_frame, print_frame_info): Update.
2085 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
2086 Update.
2087 * source.c (print_source_lines_base): Update.
2088 * skip.c (info_skip_command): Update.
2089 * record-btrace.c (btrace_ui_out_decode_error)
2090 (btrace_call_history_src_line): Update.
2091 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
2092 Update.
2093 * progspace.c (print_program_space): Update.
2094 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
2095 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
2096 do_field_int. Change type of "value".
2097 * mi/mi-out.c (mi_ui_out::do_table_begin)
2098 (mi_ui_out::do_table_header): Update.
2099 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
2100 type of "value".
2101 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
2102 (mi_cmd_data_list_changed_registers, output_register)
2103 (mi_cmd_data_read_memory, mi_load_progress)
2104 (mi_cmd_trace_frame_collected): Update.
2105 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
2106 Update.
2107 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2108 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
2109 (mi_cmd_var_list_children, varobj_update_one): Update.
2110 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
2111 (mi_cmd_stack_list_args, list_arg_or_local): Update.
2112 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
2113 * inferior.c (print_inferior): Update.
2114 * gdb_bfd.c (print_one_bfd): Update.
2115 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2116 Update.
2117 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
2118 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
2119 do_field_int. Change type of "value".
2120 * cli-out.c (cli_ui_out::do_field_signed): Rename from
2121 do_field_int. Change type of "value".
2122 * breakpoint.c (watchpoint_check, print_breakpoint_location)
2123 (print_one_breakpoint_location, print_it_catch_fork)
2124 (print_one_catch_fork, print_it_catch_vfork)
2125 (print_one_catch_vfork, print_it_catch_solib)
2126 (print_it_catch_exec, print_it_ranged_breakpoint)
2127 (print_mention_watchpoint, print_mention_masked_watchpoint)
2128 (bkpt_print_it, update_static_tracepoint): Update.
2129 * break-catch-throw.c (print_it_exception_catchpoint): Update.
2130 * break-catch-syscall.c (print_it_catch_syscall): Update.
2131 * ada-tasks.c (print_ada_task_info): Update.
2132 * ada-lang.c (print_it_exception, print_mention_exception):
2133 Update.
2134
6b78c3f8
AB
21352019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 PR breakpoints/24541
2138 * gdbarch.c: Regenerate.
2139 * gdbarch.h: Regenerate.
2140 * gdbarch.sh: Adjust return type and parameter types for
2141 'stap_adjust_register'.
2142 (i386_stap_adjust_register): Adjust signature and return new
2143 register name.
2144 * stap-probe.c (stap_parse_register_operand): Adjust use of
2145 'gdbarch_stap_adjust_register'.
2146
d72a9b85
TT
21472019-07-17 Tom Tromey <tromey@adacore.com>
2148
2149 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
2150 declare VEC.
2151 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
2152 std::vector.
2153 (struct s390_process_info): Add initializers.
2154 (s390_add_process): Use new.
2155 (s390_linux_nat_target::low_forget_process): Use delete.
2156 (s390_linux_nat_target::low_new_fork)
2157 (s390_linux_nat_target::stopped_by_watchpoint)
2158 (s390_linux_nat_target::low_prepare_to_resume)
2159 (s390_linux_nat_target::insert_watchpoint)
2160 (s390_linux_nat_target::insert_hw_breakpoint)
2161 (s390_linux_nat_target::remove_watchpoint)
2162 (s390_linux_nat_target::remove_hw_breakpoint): Update.
2163
206e6c58
JB
21642019-07-16 John Baldwin <jhb@FreeBSD.org>
2165
2166 * aarch64-fbsd-nat.c: Include regcache.h.
2167 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
2168 argument.
2169 (aarch64_fbsd_nat_target::fetch_registers)
2170 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
2171 variable.
2172 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
2173
cbde90f2
JB
21742019-07-16 John Baldwin <jhb@FreeBSD.org>
2175
2176 * fbsd-nat.c: Include gdbarch.h.
2177
07128006
TT
21782019-07-15 Tom Tromey <tromey@adacore.com>
2179
2180 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
2181
1f77b012
TT
21822019-07-15 Tom Tromey <tromey@adacore.com>
2183
2184 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
2185 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
2186 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
2187 * cli-out.c (cli_ui_out::do_field_int): New method.
2188 * ui-out.c (ui_out::field_unsigned): New method.
2189 * symfile.c (generic_load): Use field_unsigned.
2190 (print_transfer_performance): Likewise.
2191 * record-btrace.c (ui_out_field_uint): Remove.
2192 (btrace_call_history_insn_range, btrace_call_history): Use
2193 field_unsigned.
2194 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2195 field_unsigned.
2196 * ui-out.h (class ui_out) <field_unsigned>: New method.
2197 <do_field_unsigned>: Likewise.
2198
33eca680
TT
21992019-07-15 Tom Tromey <tromey@adacore.com>
2200
2201 * mi/mi-main.c (list_available_thread_groups): Use field_string.
2202 * mi/mi-interp.c (mi_memory_changed): Use field_string.
2203 * target.c (flash_erase_command): Use field_string.
2204 * infrun.c (print_signal_received_reason): Use field_string.
2205 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
2206 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
2207 field_string.
2208 * ada-tasks.c (print_ada_task_info): Use field_string.
2209
ca8d69be
TT
22102019-07-15 Tom Tromey <tromey@adacore.com>
2211
2212 * target.c (flash_erase_command): Use field_core_addr.
2213 * symfile.c (generic_load): Use field_core_addr.
2214 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2215 Use field_core_addr.
2216 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
2217 field_core_addr.
2218
0d4e84ed
AB
22192019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
2222 value if its desired type is smaller than a CORE_ADDR and signed.
2223
9a49df9d
AB
22242019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2225
2226 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
2227 of changes to field names, and use new is_reference field to
2228 decide if a property is a reference or not.
2229 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
2230 field.
2231 (struct dwarf2_property_baton): Update header comment, rename
2232 'referenced_type' to 'property_type' and update comments.
2233 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
2234 default property type, store in property baton, update to take
2235 accound of renamed field.
2236 (read_func_scope): Update call to attr_to_dynamic_prop.
2237 (read_array_type): Likewise.
2238 (dwarf2_per_cu_addr_sized_int_type): New function.
2239 (read_subrange_index_type): Move type finding code to
2240 dwarf2_per_cu_addr_sized_int_type.
2241 (read_subrange_type): Update calls to attr_to_dynamic_prop.
2242 (dwarf2_per_cu_addr_type): New function.
2243 (set_die_type): Update calls to attr_to_dynamic_prop.
2244
b86352cf
AB
22452019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2246
2247 * dwarf2read.c (read_subrange_index_type): New function.
2248 (read_subrange_type): Move code into new function and call it.
2249 * gdbtypes.c (create_range_type): Add some asserts.
2250
603490bf
AB
22512019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2252
2253 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
2254 update return statements.
2255 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
2256 declaration, and update comment to match.
2257 * gdbtypes.c (resolve_dynamic_array): Update call to
2258 dwarf2_evaluate_property to match new return type.
2259
592f9d27
AB
22602019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
2261
2262 * valarith.c (value_subscripted_rvalue): Change lowerbound
2263 parameter type from int to LONGEST.
2264 * value.h (value_subscripted_rvalue): Likewise in declaration.
2265
60cfcb20
AB
22662019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2267
2268 * cli/cli-utils.c (info_print_command_completer): New function.
2269 * cli/cli-utils.h: Add 'completer.h' include, and forward
2270 declaration for 'struct cmd_list_element'.
2271 (info_print_command_completer): Declare.
2272 * stack.c (_initialize_stack): Add completer for 'info locals' and
2273 'info args'.
2274 * symtab.c (_initialize_symtab): Add completer for 'info
2275 variables' and 'info functions'.
2276 * NEWS: Mention completion for additional info commands.
2277
b16507e0
AB
22782019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * cli/cli-utils.c (extract_info_print_args): Delete.
2281 (extract_arg_maybe_quoted): Delete.
2282 (info_print_options_defs): New variable.
2283 (make_info_print_options_def_group): New function.
2284 (extract_info_print_options): Define new function.
2285 * cli/cli-utils.h (extract_info_print_args): Delete.
2286 (struct info_print_options): New structure.
2287 (extract_info_print_options): Declare new function.
2288 * stack.c (info_locals_command): Update to use new
2289 extract_info_print_options, also add a header comment.
2290 (info_args_command): Likewise.
2291 * symtab.c (info_variables_command): Likewise.
2292 (info_functions_command): Likewise.
2293
021d8588
AB
22942019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
2297 to extract string arguments.
2298 * common/common-utils.c (extract_string_maybe_quoted): New function.
2299 * common/common-utils.h (extract_string_maybe_quoted): Declare.
2300
b777eb6d
TT
23012019-07-11 Tom Tromey <tromey@adacore.com>
2302
2303 * main.c (get_init_files): Use GDBINIT, not gdbinit.
2304 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
2305 * top.h (gdbinit): Don't declare.
2306 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
2307 into...
2308 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
2309 * top.c (gdb_init): Don't call init_cli_cmds.
2310 (gdbinit): Remove.
2311 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
2312
72ee03ff
TT
23132019-07-11 Tom Tromey <tromey@adacore.com>
2314
2315 * python/py-inferior.c (add_thread_object): Don't use thread_obj
2316 after it has been moved.
2317
00db9531
SM
23182019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2319
2320 * valops.c (value_must_coerce_to_target): Change return type to
2321 bool.
2322 * value.h (value_must_coerce_to_target): Likewise.
2323
f2478a7e
SM
23242019-07-10 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * breakpoint.c (is_hardware_watchpoint): Remove
2327 forward-declaration.
2328 (is_masked_watchpoint): Change return type to bool.
2329 (is_tracepoint): Likewise.
2330 (is_breakpoint): Likewise.
2331 (is_hardware_watchpoint): Likewise.
2332 (is_watchpoint): Likewise.
2333 (is_no_memory_software_watchpoint): Likewise.
2334 (is_catchpoint): Likewise.
2335 (breakpoint_1): Make FILTER parameter's return type bool.
2336 is_masked_watchpoint): Change return type to bool.
2337 (save_breakpoints): Make FILTER parameter's return type bool.
2338 * breakpoint.h (is_breakpoint): Change return type to bool.
2339 (is_watchpoint): Likewise.
2340 (is_catchpoint): Likewise.
2341 (is_tracepoint): Likewise.
2342
0d12e84c
TT
23432019-07-10 Tom Tromey <tom@tromey.com>
2344
2345 * defs.h: Don't include gdbarch.h.
2346 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
2347 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
2348 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
2349 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
2350 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
2351 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
2352 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
2353 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
2354 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
2355 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
2356 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
2357 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
2358 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
2359 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
2360 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
2361 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
2362 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
2363 record-btrace.c, record.h, regcache-dump.c, regcache.h,
2364 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
2365 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
2366 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
2367 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
2368 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
2369 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
2370 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
2371 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
2372 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
2373
f06f1252
TT
23742019-07-10 Tom Tromey <tromey@adacore.com>
2375
2376 * ada-lang.h (is_ada_exception_catchpoint): Declare.
2377 * breakpoint.c (init_ada_exception_breakpoint): Register as
2378 bp_catchpoint.
2379 (print_one_breakpoint_location, print_one_breakpoint): Use
2380 is_ada_exception_catchpoint.
2381 * ada-lang.c (class ada_catchpoint_location): Pass
2382 bp_loc_software_breakpoint to bp_location constructor.
2383 (is_ada_exception_catchpoint): New function.
2384
7a5d944b
TT
23852019-07-10 Tom Tromey <tromey@adacore.com>
2386
2387 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
2388 VEC.
2389 (struct arm_exidx_entry): New method operator<.
2390 (struct arm_exidx_data) <section_maps>: Change type.
2391 (arm_exidx_data_free): Remove.
2392 (arm_exidx_data_key): Change type. Move lower.
2393 (arm_exidx_new_objfile): Update.
2394 (arm_compare_exidx_entries): Remove.
2395 (arm_find_exidx_entry, _initialize_arm_tdep)
2396
48c66e1d
TT
23972019-07-10 Tom Tromey <tromey@adacore.com>
2398
2399 * solib-spu.c (ocl_program_data_key): Change type.
2400 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
2401 Update.
2402
a269fbf1
TT
24032019-07-10 Tom Tromey <tromey@adacore.com>
2404
2405 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
2406 (struct solib_aix_inferior_data) <library_list>: Change type.
2407 (solib_aix_inferior_data_handle): Change type.
2408 (get_solib_aix_inferior_data): Update.
2409 (solib_aix_free_library_list): Remove.
2410 (library_list_start_library): Update.
2411 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
2412 return type.
2413 (solib_aix_get_library_list)
2414 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
2415 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
2416
c294730c
TT
24172019-07-10 Tom Tromey <tromey@adacore.com>
2418
2419 * solib-dsbt.c (struct dsbt_info): Add initializers.
2420 (solib_dsbt_pspace_data): Change type.
2421 (dsbt_pspace_data_cleanup): Remove.
2422 (get_dsbt_info, _initialize_dsbt_solib): Update.
2423
9d52077d
TT
24242019-07-10 Tom Tromey <tromey@adacore.com>
2425
2426 * spu-tdep.c (spu_overlay_data): Change type.
2427 (spu_get_overlay_table, spu_overlay_new_objfile)
2428 (_initialize_spu_tdep): Update.
2429
22a20dca
TT
24302019-07-10 Tom Tromey <tromey@adacore.com>
2431
2432 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
2433 destructor.
2434 (dbx_objfile_data_key): Change type and declare later.
2435 (DBX_SYMFILE_INFO): Rewrite.
2436 * dbxread.c (dbx_objfile_data_key): Change type.
2437 (dbx_symfile_init): Update.
2438 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
2439 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2440 (stabsect_build_psymtabs, _initialize_dbxread): Update.
2441
cb60f420
TT
24422019-07-10 Tom Tromey <tromey@adacore.com>
2443
2444 * jit.c (jit_program_space_key): Change type. Move lower.
2445 (get_jit_program_space_data): Update.
2446 (jit_program_space_data_cleanup): Remove.
2447 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
2448 Update.
2449 (struct jit_program_space_data): Add initializers.
2450
51df2ae3
TT
24512019-07-10 Tom Tromey <tromey@adacore.com>
2452
2453 * solib-darwin.c (struct darwin_info): Add initializers.
2454 (solib_darwin_pspace_data): Change type.
2455 (darwin_pspace_data_cleanup): Remove.
2456 (get_darwin_info, _initialize_darwin_solib): Update.
2457
18101a35
TT
24582019-07-10 Tom Tromey <tromey@adacore.com>
2459
2460 * remote-sim.c (struct sim_inferior_data): Add initializers,
2461 constructor, and destructor.
2462 (sim_inferior_data_key): Change type. Move lower.
2463 (check_for_duplicate_sim_descriptor): Update.
2464 (get_sim_inferior_data): Use new. Update.
2465 (~sim_inferior_data_cleanup): Rename from
2466 sim_inferior_data_cleanup. Simplify.
2467 (gdbsim_close_inferior, simulator_command)
2468 (sim_command_completer, _initialize_remote_sim): Update.
2469 (next_pid, INITIAL_PID): Move earlier.
2470
05b08ac1
TT
24712019-07-10 Tom Tromey <tromey@adacore.com>
2472
2473 * python/python-internal.h (create_thread_object): Return
2474 gdbpy_ref.
2475 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
2476 * python/py-inferior.c (struct threadlist_entry): Add
2477 constructor.
2478 <thread_obj>: Now a gdbpy_ref.
2479 (thread_to_thread_object): Update.
2480 (add_thread_object): Use new.
2481 (delete_thread_object): Use delete.
2482 (infpy_threads): Update.
2483 (py_free_inferior): Update. Construct "inf_obj" after acquiring
2484 GIL.
2485
32372d80
TT
24862019-07-10 Tom Tromey <tromey@adacore.com>
2487
2488 * valops.c (value_cast): Specialize error message for Ada.
2489
5c458ae8
SM
24902019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2491
2492 * breakpoint.c (breakpoint_1): Update doc and parameter names.
2493
4c462cb0
SM
24942019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2495
2496 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
2497 bpstat_should_step): Return bool, adjust comments.
2498 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
2499 bpstat_should_step): Likewise.
2500
89abbcc2
AH
25012019-07-10 Alan Hayward <alan.hayward@arm.com>
2502
2503 * features/Makefile: Use feature target descriptions for Arm.
2504 * features/arm/arm-core.c: Generate new file.
2505 * features/arm/arm-fpa.c: Likewise.
2506 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
2507 * features/arm/arm-m-profile.c: Likewise.
2508 * features/arm/arm-vfpv2.c: Likewise.
2509 * features/arm/arm-vfpv3.c: Likewise.
2510 * features/arm/xscale-iwmmxt.c: Likewise.
2511 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
2512
166a82be
AH
25132019-07-10 Alan Hayward <alan.hayward@arm.com>
2514
2515 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
2516 ptrace earlier.
2517
9fb4c7e9
AH
25182019-07-10 Alan Hayward <alan.hayward@arm.com>
2519
2520 * features/aarch64-pauth.c: Regenerate.
2521
e2d0f980
SM
25222019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
2523
2524 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
2525 bool.
2526 (bpstat_what): Use false instead of 0.
2527
a38118e5
PA
25282019-07-09 Pedro Alves <palves@redhat.com>
2529
2530 * break-catch-throw.c (is_exception_catchpoint): New.
2531 * breakpoint.c (print_one_breakpoint_location): New parameter
2532 'raw_loc'. Handle it. Use
2533 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
2534 looking at the breakpoint's type.
2535 (print_one_breakpoint): If handling "maint info breakpoints", also
2536 print locations of exception catchpoints.
2537 * breakpoint.h (is_exception_catchpoint): Declare.
2538
cb1e4e32
PA
25392019-07-09 Pedro Alves <palves@redhat.com>
2540
2541 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
2542 "addr" field.
2543 (allocate_location_exception_catchpoint): New.
2544 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
2545 (initialize_throw_catchpoint_ops): Install
2546 allocate_location_exception_catchpoint as allocate_location
2547 method.
2548 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
2549 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
2550 bp_loc_other.
2551 (breakpoint_address_is_meaningful): Delete.
2552 (bl_address_is_meaningful): New.
2553 (breakpoint_locations_match): Adjust comment.
2554 (bp_location_from_bp_type): New, factored out of...
2555 (bp_location::bp_location(breakpoint *)): ... this.
2556 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
2557 factored out of...
2558 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
2559 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
2560 breakpoint_address_is_meaningful.
2561 (bp_locations_compare): Adjust comment.
2562 (update_global_location_list): Use bl_address_is_meaningful
2563 instead of breakpoint_address_is_meaningful.
2564 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
2565 explicit.
2566 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
2567 * python/py-breakpoint.c (bppy_get_location): No longer check
2568 whether location is null.
2569
b58a68fe
PA
25702019-07-09 Pedro Alves <palves@redhat.com>
2571
2572 PR c++/15468
2573 * breakpoint.c (print_one_breakpoint_location): Remove
2574 single-location assert.
2575
268a13a5
TT
25762019-07-09 Tom Tromey <tom@tromey.com>
2577
2578 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
2579 * configure: Rebuild.
2580 * configure.ac: Change common to gdbsupport.
2581 * gdbsupport: Rename from common.
2582 * acinclude.m4: Change common to gdbsupport.
2583 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
2584 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
2585 gdbsupport.
2586 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
2587 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
2588 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
2589 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
2590 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
2591 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
2592 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
2593 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
2594 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
2595 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
2596 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
2597 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
2598 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
2599 coff-pe-read.c, command.h, compile/compile-c-support.c,
2600 compile/compile-c.h, compile/compile-cplus-symbols.c,
2601 compile/compile-cplus-types.c, compile/compile-cplus.h,
2602 compile/compile-loc2c.c, compile/compile.c, completer.c,
2603 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
2604 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
2605 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
2606 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
2607 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
2608 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
2609 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
2610 features/aarch64-core.c, features/aarch64-fpu.c,
2611 features/aarch64-pauth.c, features/aarch64-sve.c,
2612 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
2613 features/i386/32bit-core.c, features/i386/32bit-linux.c,
2614 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
2615 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
2616 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
2617 features/i386/64bit-core.c, features/i386/64bit-linux.c,
2618 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
2619 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
2620 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
2621 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
2622 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
2623 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
2624 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
2625 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
2626 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
2627 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
2628 go32-nat.c, guile/guile.c, guile/scm-ports.c,
2629 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
2630 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
2631 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
2632 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
2633 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
2634 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
2635 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
2636 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
2637 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
2638 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
2639 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
2640 minsyms.c, mips-linux-tdep.c, namespace.h,
2641 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
2642 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
2643 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
2644 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
2645 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
2646 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
2647 nat/linux-waitpid.c, nat/mips-linux-watch.c,
2648 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
2649 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
2650 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
2651 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
2652 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
2653 procfs.c, producer.c, progspace.h, psymtab.h,
2654 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
2655 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
2656 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
2657 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
2658 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
2659 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
2660 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
2661 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
2662 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
2663 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
2664 target-memory.c, target.c, target.h, target/waitstatus.c,
2665 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
2666 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
2667 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
2668 unittests/array-view-selftests.c,
2669 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
2670 unittests/common-utils-selftests.c,
2671 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
2672 unittests/format_pieces-selftests.c,
2673 unittests/function-view-selftests.c,
2674 unittests/lookup_name_info-selftests.c,
2675 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
2676 unittests/mkdir-recursive-selftests.c,
2677 unittests/observable-selftests.c,
2678 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
2679 unittests/parse-connection-spec-selftests.c,
2680 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
2681 unittests/scoped_fd-selftests.c,
2682 unittests/scoped_mmap-selftests.c,
2683 unittests/scoped_restore-selftests.c,
2684 unittests/string_view-selftests.c, unittests/style-selftests.c,
2685 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
2686 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
2687 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
2688 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
2689 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
2690 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
2691
5b0e2db4
AB
26922019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2693
2694 * linespec.c (decode_digits_list_mode): Set explicit_line to a
2695 bool value.
2696 (decode_digits_ordinary): Set explicit_line field in sal.
2697 * symtab.c (skip_prologue_sal): Don't skip prologue for a
2698 symtab_and_line that was set on an explicit line number in
2699 assembler code. Do always update the recorded symtab and line if
2700 we do skip the prologue.
2701
0ba852ab
AB
27022019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2703
2704 * breakpoint.c (set_breakpoint_location_function): Remove
2705 explicit_loc parameter.
2706 (momentary_breakpoint_from_master): Update call to
2707 set_breakpoint_location_function.
2708 (add_location_to_breakpoint): Likewise.
2709
b3a7d171
AB
27102019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
2713 required features based on default bfd type when no specific bfd
2714 is present.
2715
1f6f6e21
PW
27162019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2717
2718 * NEWS: Mention that GDB printf and eval commands can now print
2719 C-style and Ada-style convenience var strings without
2720 calling the inferior.
2721 * printcmd.c (printf_c_string): Locally print GDB internal var
2722 instead of transiting via the inferior.
2723 (printf_wide_c_string): Likewise.
2724
27252019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf
AH
2726
2727 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
2728
0598af48
TT
27292019-07-04 Tom Tromey <tom@tromey.com>
2730
2731 PR tui/24724:
2732 * tui/tui-winsource.c (tui_clear_source_content): Update.
2733 (tui_source_window_base::set_is_exec_point_at): Fix comment.
2734 (tui_update_breakpoint_info): Update.
2735 (tui_set_exec_info_content): Update.
2736 * tui/tui-source.c (tui_set_source_content_nil): Update.
2737 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
2738 has_break.
2739 * tui/tui-data.h (enum tui_bp_flag): New.
2740 (tui_bp_flags): New enum flags type.
2741 (struct tui_source_element) <break_mode>: Change type. Rename
2742 from has_break.
2743 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
2744 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
2745 constants.
2746 * tui/tui-winsource.h: Fix comment.
2747
350fab54
AH
27482019-07-04 Alan Hayward <alan.hayward@arm.com>
2749
2750 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
2751 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
2752 (store_fpregs_to_thread)
2753 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2754 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
2755 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
2756 (IWMMXT_REGS_SIZE): Add define.
2757 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
2758 (fetch_vfp_regs, store_vfp_regs)
2759 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
2760 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
2761
f0452268
AH
27622019-07-04 Alan Hayward <alan.hayward@arm.com>
2763
2764 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
2765 defines.
2766 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
2767 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
2768 (ARM_INT_REGISTER_SIZE): ...to this.
2769 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
2770 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
2771 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
2772 (arm_linux_collect_gregset, supply_nwfpe_register)
2773 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
2774 defines.
2775 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
2776 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
2777 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
2778 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
2779 (arm_return_in_memory, arm_store_return_value)
2780 (arm_get_longjmp_target, arm_register_g_packet_guesses)
2781 (arm_record_ld_st_multiple): Likewise.
2782 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
2783 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
2784
e935475c
AH
27852019-07-04 Alan Hayward <alan.hayward@arm.com>
2786
2787 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
2788 AARCH64_DISPLACED_MODIFIED_INSNS.
2789 * aarch64-tdep.c (struct aarch64_displaced_step_data)
2790 (aarch64_displaced_step_copy_insn): Likewise.
2791 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2792 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
2793 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2794 ARM_DISPLACED_MODIFIED_INSNS.
2795 * arm-tdep.c (arm_gdbarch_init): Likewise.
2796 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
2797 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
2798 (struct arm_displaced_step_closure): Use
2799 ARM_DISPLACED_MODIFIED_INSNS.
2800
df0bb381
AH
28012019-07-04 Alan Hayward <alan.hayward@arm.com>
2802
2803 * features/Makefile: Remove unused xml files.
2804 * features/aarch64.xml: Remove.
2805 * features/i386/amd64-avx-avx512-linux.xml: Remove.
2806 * features/i386/amd64-avx-avx512.xml: Remove.
2807 * features/i386/amd64-avx-linux.xml: Remove.
2808 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
2809 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
2810 * features/i386/amd64-avx-mpx-linux.xml: Remove.
2811 * features/i386/amd64-avx-mpx.xml: Remove.
2812 * features/i386/amd64-avx.xml: Remove.
2813 * features/i386/amd64-linux.xml: Remove.
2814 * features/i386/amd64-mpx-linux.xml: Remove.
2815 * features/i386/amd64-mpx.xml: Remove.
2816 * features/i386/amd64.xml: Remove.
2817 * features/i386/i386-avx-avx512-linux.xml: Remove.
2818 * features/i386/i386-avx-avx512.xml: Remove.
2819 * features/i386/i386-avx-linux.xml: Remove.
2820 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
2821 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
2822 * features/i386/i386-avx-mpx-linux.xml: Remove.
2823 * features/i386/i386-avx-mpx.xml: Remove.
2824 * features/i386/i386-avx.xml: Remove.
2825 * features/i386/i386-linux.xml: Remove.
2826 * features/i386/i386-mmx-linux.xml: Remove.
2827 * features/i386/i386-mmx.xml: Remove.
2828 * features/i386/i386-mpx-linux.xml: Remove.
2829 * features/i386/i386-mpx.xml: Remove.
2830 * features/i386/i386.xml: Remove.
2831 * features/i386/x32-avx-avx512-linux.xml: Remove.
2832 * features/i386/x32-avx-linux.xml: Remove.
2833 * features/i386/x32-linux.xml: Remove.
2834
edd6266a
AH
28352019-07-04 Alan Hayward <alan.hayward@arm.com>
2836
2837 * regformats/aarch64.dat: Remove.
2838 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
2839 * regformats/i386/amd64-avx-linux.dat: Remove.
2840 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
2841 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
2842 * regformats/i386/amd64-linux.dat: Remove.
2843 * regformats/i386/amd64-mpx-linux.dat: Remove.
2844 * regformats/i386/amd64.dat: Remove.
2845 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
2846 * regformats/i386/i386-avx-linux.dat: Remove.
2847 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
2848 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
2849 * regformats/i386/i386-linux.dat: Remove.
2850 * regformats/i386/i386-mmx-linux.dat: Remove.
2851 * regformats/i386/i386-mpx-linux.dat: Remove.
2852 * regformats/i386/i386.dat: Remove.
2853 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
2854 * regformats/i386/x32-avx-linux.dat: Remove.
2855 * regformats/i386/x32-linux.dat: Remove.
2856
2b40fda7
AH
28572019-07-04 Alan Hayward <alan.hayward@arm.com>
2858
2859 * aarch64-tdep.c: Remove xml self tests.
2860 * amd64-linux-tdep.c: Likewise.
2861 * amd64-tdep.c: Likewise.
2862 * i386-linux-tdep.c: Likewise.
2863 * i386-tdep.c: Likewise.
2864
5f4ba3e7
PA
28652019-07-03 Pedro Alves <palves@redhat.com>
2866
2867 PR cli/24732
2868 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
2869 (pipe_cmd_option_defs): New.
2870 (make_pipe_cmd_options_def_group): New.
2871 (pipe_command): Use gdb::option::process_options.
2872 (pipe_command_completer): New function.
2873 (_initialize_cli_cmds): Install completer for "pipe" command.
2874
3d9be6f5
PA
28752019-07-03 Pedro Alves <palves@redhat.com>
2876
2877 * cli/cli-option.c (union option_value) <string>: New field.
2878 (struct option_def_and_value): Add ctor, move ctor, dtor and
2879 use DISABLE_COPY_AND_ASSIGN.
2880 (option_def_and_value::clear_value): New.
2881 (parse_option, save_option_value_in_ctx, get_val_type_str)
2882 (add_setshow_cmds_for_options): Handle var_string.
2883 * cli-option.h (union option_def::var_address) <string>: New
2884 field.
2885 (struct string_option_def): New.
2886 * maint-test-options.c (struct test_options_opts): Add default
2887 ctor and use DISABLE_COPY_AND_ASSIGN.
2888 <string_opt>: New field.
2889 (test_options_opts::~test_options_opts): New.
2890 (test_options_opts::dump): Also dump "-string".
2891 (test_options_option_defs): Install "string.
2892
41fc454c
PA
28932019-07-03 Pedro Alves <palves@redhat.com>
2894
2895 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
2896 option_value with a null enumeration.
2897 (complete_options): Save the option values in the context.
2898 (save_option_value_in_ctx): New, factored out from ...
2899 (process_options): ... here.
2900 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
2901 of the function.
2902 * maint-test-options.c (test_options_opts::dump): New, factored
2903 out from ...
2904 (maintenance_test_options_command_mode): ... here.
2905 (maintenance_test_options_command_completion_result): Delete.
2906 (maintenance_test_options_command_completion_text): Update
2907 comment.
2908 (maintenance_show_test_options_completion_result): Change
2909 prototype. Just print
2910 maintenance_test_options_command_completion_text.
2911 (save_completion_result): New.
2912 (maintenance_test_options_completer_mode): Pass options context to
2913 complete_options, and then save a dump.
2914 (_initialize_maint_test_options): Use add_cmd to install "maint
2915 show test-options-completion-result".
2916
fdbc9870
PA
29172019-07-03 Pedro Alves <palves@redhat.com>
2918
2919 * NEWS (New commands): Mention "with" and "maint with".
2920 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
2921 (with_command, with_command_completer): New.
2922 (pipe_command): Adjust to new repeat_previous
2923 interface.
2924 (_initialize_cli_cmds): Install the "with" command and its "w"
2925 alias.
2926 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
2927 declarations.
2928 * cli/cli-setshow.c (parse_cli_var_uinteger)
2929 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
2930 argument strings for all var_types.
2931 (get_setshow_command_value_string): New, factored out from ...
2932 (do_show_command): ... this.
2933 * cli/cli-setshow.h: Include <string>.
2934 (get_setshow_command_value_string): Declare.
2935 * command.h (repeat_previous): Now returns const char *. Adjust
2936 comment.
2937 * maint.c: Include "cli/cli-cmds.h".
2938 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
2939 (_initialize_maint_cmds): Register the "maintenance with" command.
2940 * top.c (repeat_previous): Move bits from pipe_command here:
2941 Return the saved command line, if any; error out if there's no
2942 command to relaunch.
2943
c6ac8931
PA
29442019-07-03 Pedro Alves <palves@redhat.com>
2945
2946 * NEWS (New commands): Mention "maint set/show test-settings"
2947 instead of "maint test-settings".
2948 * maint-test-settings.c (maintenance_test_settings_list): Delete.
2949 (maintenance_test_settings_set_list): Rename to ...
2950 (maintenance_set_test_settings_list): ... this.
2951 (maintenance_test_settings_show_list): Rename to ...
2952 (maintenance_show_test_settings_list): ... this.
2953 (maintenance_test_settings_cmd): Delete.
2954 (maintenance_test_settings_set_cmd): ...
2955 (maintenance_set_test_settings_cmd): ... this.
2956 (maintenance_test_settings_show_cmd): ...
2957 (maintenance_show_test_settings_cmd): ... this.
2958 (maintenance_test_settings_show_value_cmd):
2959 (maintenance_show_test_settings_value_cmd): ... this.
2960 (_initialize_maint_test_settings): No longer install the "maint
2961 test-settings" prefix command. Rename "maint test-settings set"
2962 to "maint set test-settings", and "maint test-settings show" to
2963 "maint show test-settings". Adjust all subcommands.
2964
d1fcf2fd
PA
29652019-07-03 Pedro Alves <palves@redhat.com>
2966
2967 * maint-test-settings.c: Fix file's intro comment. Replace all
2968 references to "test-options" with references to "test-settings",
2969 in comments.
2970
970f9d09
PA
29712019-07-03 Pedro Alves <palves@redhat.com>
2972
2973 * maint-test-settings.c (maintenance_test_settings_xxx)
2974 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
2975 New.
2976 (maintenance_test_settings_enums): Use them.
2977 (maintenance_test_settings_enum): Default to
2978 maintenance_test_settings_xxx.
2979 (_initialize_maint_test_settings): Initialize
2980 MAINTENANCE_TEST_SETTINGS_FILENAME.
2981
f3869b1a
SM
29822019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2983
2984 * breakpoint.h (remove_breakpoints_inf): Change return type to
2985 void, move function documentation here.
2986 * breakpoint.c (remove_breakpoints_inf): Change return type to
2987 void, move function documentation to header.
2988
54d66006
PA
29892019-07-02 Pedro Alves <palves@redhat.com>
2990
2991 * NEWS (Completion improvements): Mention "info threads".
2992 * thread.c (struct info_threads_opts, info_threads_option_defs)
2993 (make_info_threads_options_def_group): New.
2994 (info_threads_command): Use gdb::option::process_options.
2995 (info_threads_command_completer): New.
2996 (_initialize_thread): Use gdb::option::build_help to build the
2997 help text for "info threads".
2998
854f6088
SM
29992019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3000
3001 * defs.h (generic_load): Move from here...
3002 * symfile.h (generic_load): ... to here. Rename name parameter
3003 to args.
3004 * symfile.c (generic_load): Add comment.
3005
54ee4252
TT
30062019-07-01 Tom Tromey <tromey@adacore.com>
3007
3008 * dwarf2read.c
3009 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
3010 declaration of without_params. Fix formatting.
3011
65392b3e
TT
30122019-07-01 Tom Tromey <tromey@adacore.com>
3013
3014 * ada-exp.y (find_primitive_type): Update.
3015 * ada-lang.h (ada_lookup_symbol): Update.
3016 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
3017 parameter.
3018 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
3019
7d7571f0
SDJ
30202019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3021
3022 PR breakpoints/24541
3023 * gdbarch.c: Regenerate.
3024 * gdbarch.h: Regenerate.
3025 * gdbarch.sh: Add 'stap_adjust_register'.
3026 * i386-tdep.c: Include '<unordered_set>'.
3027 (i386_stap_adjust_register): New function.
3028 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
3029 * stap-probe.c (stap_parse_register_operand): Call
3030 'gdbarch_stap_adjust_register'.
3031
5af5392a
SDJ
30322019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
3033
3034 PR python/24742
3035 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
3036 * python/python.c (do_start_initialization): Use 'xmalloc'
3037 instead of 'PyMem_Malloc'.
3038
10d06d82
TT
30392019-06-28 Tom Tromey <tromey@adacore.com>
3040
3041 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
3042 for Ada.
3043
1b7f24cd
TT
30442019-06-27 Tom Tromey <tromey@adacore.com>
3045
3046 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
3047 objfile_key.
3048 (arm_find_mapping_symbol, arm_record_special_symbol)
3049 (_initialize_arm_tdep): Update.
3050 (arm_objfile_data_free): Remove.
3051
3d507ff2
TT
30522019-06-27 Tom Tromey <tromey@adacore.com>
3053
3054 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
3055 to cp_print_static_field.
3056
762c164d
TT
30572019-06-26 Tom Tromey <tromey@adacore.com>
3058
3059 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
3060 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
3061 declare.
3062
aa2f9bcf
AH
30632019-06-26 Alan Hayward <alan.hayward@arm.com>
3064
3065 * features/aarch64-core.c (create_feature_aarch64_core):
3066 Regenerate.
3067 * features/aarch64-core.xml: Add cpsr flags.
3068
3426ae57
AH
30692019-06-26 Alan Hayward <alan.hayward@arm.com>
3070
3071 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
3072 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
3073
4838e44c
SM
30742019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3075
3076 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
3077 field.
3078 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
3079 use.
3080 (arm_record_special_symbol): Don't insert new symbol in sorted
3081 position, push it at the end.
3082
54cc7474
SM
30832019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
3084
3085 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
3086 (arm_mapping_symbol_s): Remove.
3087 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
3088 (arm_mapping_symbol_vec): New typedef.
3089 (struct arm_per_objfile): Add constructor.
3090 <section_maps>: Change type to
3091 std::unique_ptr<arm_mapping_symbol_vec[]>.
3092 (arm_compare_mapping_symbols): Remove.
3093 (arm_find_mapping_symbol): Adjust to section_maps type change.
3094 (arm_objfile_data_free): Call delete on arm_per_objfile.
3095 (arm_record_special_symbol): Adjust to section_maps type change.
3096 Allocate arm_per_objfile with new.
3097
b65b566c
PW
30982019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3099
3100 * cli/cli-cmds.c (alias_command): Compare the alias prefix
3101 with the command prefix.
3102
c2fc64f5
TT
31032019-06-25 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
3106 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
3107
fb54fa76
TT
31082019-06-25 Tom Tromey <tom@tromey.com>
3109
3110 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
3111 type.
3112 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
3113 protected.
3114
f7952c57
TT
31152019-06-25 Tom Tromey <tom@tromey.com>
3116
3117 * tui/tui-winsource.c
3118 (tui_source_window_base::set_is_exec_point_at): Add check against
3119 LOA_ADDRESS.
3120
17568d78
TT
31212019-06-25 Tom Tromey <tom@tromey.com>
3122
3123 * tui/tui-source.c (tui_set_source_content): Don't check before
3124 xfree.
3125 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
3126
53e7cdba
TT
31272019-06-25 Tom Tromey <tom@tromey.com>
3128
3129 * tui/tui-winsource.h (tui_update_source_window_as_is)
3130 (tui_alloc_source_buffer, tui_line_is_displayed)
3131 (tui_addr_is_displayed): Change type of win_info.
3132 * tui/tui-winsource.c (tui_update_source_window_as_is)
3133 (tui_clear_source_content, tui_show_source_line)
3134 (tui_show_source_content, tui_source_window_base::refill)
3135 (tui_source_window_base::set_is_exec_point_at)
3136 (tui_source_window_base::set_is_exec_point_at)
3137 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
3138 (tui_alloc_source_buffer, tui_line_is_displayed)
3139 (tui_addr_is_displayed): Change type of win_info. Update.
3140 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3141 (tui_source_window_base::do_make_visible_with_new_height):
3142 Update.
3143 * tui/tui-source.c (tui_set_source_content)
3144 (tui_set_source_content_nil)
3145 (tui_source_window::do_scroll_vertical): Update.
3146 * tui/tui-layout.c (show_layout): Update.
3147 * tui/tui-disasm.c (tui_set_disassem_content)
3148 (tui_disasm_window::do_scroll_vertical): Update.
3149 * tui/tui-data.h (tui_win_content): Remove.
3150 (struct tui_gen_win_info) <content, content_size>: Remove.
3151 (struct tui_source_element): Add initializers and destructor.
3152 (union tui_which_element, struct tui_win_element): Remove.
3153 (struct tui_source_window_base) <content>: New field.
3154 (struct tui_data_window): Remove destructor.
3155 (tui_alloc_content, tui_free_win_content)
3156 (tui_free_all_source_wins_content): Don't declare.
3157 * tui/tui-data.c (tui_initialize_static_data): Update.
3158 (init_content_element, tui_alloc_content): Remove.
3159 (~tui_gen_win_info): Update.
3160 (~tui_data_window, tui_free_all_source_wins_content)
3161 (tui_free_win_content, free_content, free_content_elements):
3162 Remove.
3163
7908abbf
TT
31642019-06-25 Tom Tromey <tom@tromey.com>
3165
3166 * tui/tui-winsource.h (tui_clear_source_content)
3167 (tui_erase_source_content, tui_show_source_content): Change type
3168 of win_info.
3169 * tui/tui-winsource.c (tui_clear_source_content)
3170 (tui_erase_source_content, tui_show_source_content): Change type
3171 of win_info.
3172 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3173 * tui/tui-source.h (tui_set_source_content_nil): Change type of
3174 win_info.
3175 * tui/tui-source.c (tui_set_source_content_nil): Change type of
3176 win_info.
3177 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
3178
02c28df0
TT
31792019-06-25 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-winsource.c (tui_clear_source_content)
3182 (tui_source_window_base::set_is_exec_point_at): Update.
3183 * tui/tui-source.c (tui_set_source_content_nil): Update.
3184 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
3185 a bool.
3186 * tui/tui-data.c (init_content_element): Update.
3187
6658b1bf
TT
31882019-06-25 Tom Tromey <tom@tromey.com>
3189
3190 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
3191 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
3192 * tui/tui-layout.c (init_and_make_win): Update.
3193 * tui/tui.h (enum tui_win_type): Update.
3194 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
3195 tui_win_is_auxillary.
3196 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
3197 tui_win_is_auxillary.
3198
21e1c91e
TT
31992019-06-25 Tom Tromey <tom@tromey.com>
3200
3201 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
3202 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
3203 (tui_delete_data_content_windows, tui_display_all_data)
3204 (tui_data_window::do_scroll_vertical, tui_display_data_from):
3205 Update.
3206 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
3207 * tui/tui-regs.c (tui_last_regs_line_no)
3208 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3209 (tui_show_registers): Update.
3210 (tui_show_register_group): Return void. Update.
3211 (tui_display_registers_from, tui_display_reg_element_at_line)
3212 (tui_display_registers_from_line, tui_check_register_values):
3213 Update.
3214 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
3215 member.
3216 (struct tui_data_window) <regs_content>: Now a std::vector.
3217 <regs_content_count>: Remove.
3218 (tui_add_content_elements, tui_free_data_content): Don't declare.
3219 * tui/tui-data.c (tui_data_window::clear_detail): Update.
3220 (init_content_element): Remove DATA_WIN case. Add assert.
3221 (tui_add_content_elements): Remove.
3222 (tui_data_window): Update.
3223 (tui_free_data_content): Remove.
3224 (free_content_elements): Remove DATA_WIN case.
3225
115ac53b
TT
32262019-06-25 Tom Tromey <tom@tromey.com>
3227
3228 * tui/tui-data.c (tui_data_item_window): Update.
3229 * tui/tui-windata.h (tui_check_data_values): Don't declare.
3230 * tui/tui-windata.c (tui_display_all_data)
3231 (tui_display_data_from_line): Update.
3232 (tui_check_data_values): Remove.
3233 * tui/tui-regs.c (tui_show_register_group)
3234 (tui_display_reg_element_at_line): Update.
3235 * tui/tui-hooks.c (tui_register_changed)
3236 (tui_refresh_frame_and_register_information): Call
3237 tui_check_register_values.
3238 * tui/tui-data.h (struct tui_data_window) <data_content,
3239 data_content_count, data_type>: Remove.
3240 (enum tui_data_type): Remove.
3241
3242 * tui/tui-data.c (tui_data_window::clear_detail)
3243 (~tui_data_window): Update.
3244
eaf9738b
TT
32452019-06-25 Tom Tromey <tom@tromey.com>
3246
3247 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
3248 declare.
3249 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
3250 Rename from tui_first_data_item_displayed. Update.
3251 (tui_data_window::refresh_all)
3252 (tui_data_window::do_scroll_vertical): Update.
3253 * tui/tui-data.h (struct tui_data_window)
3254 <first_data_item_displayed>: Declare new method.
3255
31ca4723
TT
32562019-06-25 Tom Tromey <tom@tromey.com>
3257
3258 * tui/tui-data.h (tui_init_generic_part): Don't declare.
3259 * tui/tui-data.c (tui_init_generic_part): Remove, moving
3260 contents...
3261 (tui_initialize_static_data): ...here.
3262
41bcff7f
TT
32632019-06-25 Tom Tromey <tom@tromey.com>
3264
3265 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3266 (tui_display_registers_from, tui_check_register_values): Update.
3267 (tui_display_register): Remove win_info parameter; update.
3268 (tui_get_register): Change type of parameters.
3269 * tui/tui-data.h (struct tui_data_element): Remove.
3270 (union tui_which_element) <data>: Remove.
3271 <data_window>: Change type.
3272 (struct tui_data_item_window): New.
3273 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
3274 case. Add assert.
3275 (~tui_data_item_window): New destructor.
3276 (free_content_elements): Remove DATA_ITEM_WIN case.
3277
d2802c33
TT
32782019-06-25 Tom Tromey <tom@tromey.com>
3279
3280 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
3281 Remove.
3282
dd835f8b
TT
32832019-06-25 Tom Tromey <tom@tromey.com>
3284
3285 * tui/tui-data.h (struct tui_command_element): Remove.
3286 (union tui_which_element) <command>: Remove.
3287 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
3288 assert.
3289 (free_content_elements): Remove CMD_WIN case.
3290
bd7db367
TT
32912019-06-25 Tom Tromey <tom@tromey.com>
3292
3293 * tui/tui-layout.c (tui_set_layout): Update.
3294 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
3295 * tui/tui-data.c (layout_def): Update.
3296
3add462f
TT
32972019-06-25 Tom Tromey <tom@tromey.com>
3298
3299 * tui/tui-wingeneral.c (tui_refresh_all): Update.
3300 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3301 (tui_source_window_base::set_new_height): Update.
3302 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
3303 Update.
3304 (tui_set_locator_fullname, tui_set_locator_info)
3305 (tui_show_frame_info): Update.
3306 * tui/tui-source.c (tui_set_source_content)
3307 (tui_source_is_displayed): Update.
3308 * tui/tui-layout.c (show_source_disasm_command, show_data)
3309 (show_source_or_disasm_and_command): Update.
3310 * tui/tui-disasm.c (tui_set_disassem_content)
3311 (tui_get_begin_asm_address): Update.
3312 * tui/tui-data.h (struct tui_locator_element): Remove.
3313 (union tui_which_element) <locator>: Remove.
3314 (struct tui_locator_window): New.
3315 (tui_locator_win_info_ptr): Change return type.
3316 * tui/tui-data.c (_locator): Change type.
3317 (tui_locator_win_info_ptr): Change return type.
3318 (init_content_element): Remove LOCATOR_WIN case. Add assert.
3319 (tui_alloc_content): Add assert.
3320
489e9d8b
TT
33212019-06-25 Tom Tromey <tom@tromey.com>
3322
3323 * tui/tui-winsource.c
3324 (tui_exec_info_window::maybe_allocate_content): New method.
3325 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
3326 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
3327 (make_source_or_disasm_window): Add cast.
3328 * tui/tui-data.h (union tui_which_element) <simple_string>:
3329 Remove.
3330 (struct tui_source_info): New.
3331 (struct tui_source_window_base) <execution_info>: Change type.
3332 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
3333 case, and add assert.
3334 (tui_alloc_content): Add assert.
3335
c3fabb7d
TT
33362019-06-25 Tom Tromey <tom@tromey.com>
3337
3338 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
3339 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
3340 * tui/tui-data.c (tui_alloc_win_info): Remove.
3341
bbc228ee
TT
33422019-06-25 Tom Tromey <tom@tromey.com>
3343
3344 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
3345 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
3346 can_highlight.
3347
5fcee43a
TT
33482019-06-25 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
3351 make_visible_with_new_height method.
3352 (tui_win_info::make_visible_with_new_height): New method.
3353 (tui_source_window_base::do_make_visible_with_new_height)
3354 (tui_data_window::do_make_visible_with_new_height)
3355 (tui_cmd_window::do_make_visible_with_new_height): New methods.
3356 (make_visible_with_new_height): Remove.
3357 (tui_resize_all, tui_adjust_win_heights): Use
3358 make_visible_with_new_height method.
3359 * tui/tui-data.h (struct tui_win_info)
3360 <do_make_visible_with_new_height, make_visible_with_new_height>:
3361 New methods.
3362 (struct tui_source_window_base, struct tui_data_window)
3363 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
3364 methods.
3365
d83f1fe6
TT
33662019-06-25 Tom Tromey <tom@tromey.com>
3367
3368 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
3369 method.
3370 (update_tab_width): Call update_tab_width method.
3371 * tui/tui-data.h (struct tui_win_info)
3372 (struct tui_source_window_base) <update_tab_width>: New methods.
3373
17374de4
TT
33742019-06-25 Tom Tromey <tom@tromey.com>
3375
3376 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
3377 parameter.
3378 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
3379 parameter.
3380 (tui_gen_win_info::make_visible): Update.
3381 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
3382 parameter.
3383 * tui/tui-data.h (enum tui_box): New enum.
3384 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
3385
f936bca2
TT
33862019-06-25 Tom Tromey <tom@tromey.com>
3387
3388 * tui/tui-layout.c (make_source_or_disasm_window): Always use
3389 init_and_make_win for EXEC_INFO_WIN.
3390 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
3391 longer inline.
3392 (struct tui_win_info) <~tui_win_info>: Inline.
3393 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3394 Don't declare.
3395 * tui/tui-data.c (source_win, disasm_win): Remove globals.
3396 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3397 Remove.
3398 (tui_initialize_static_data): Update.
3399 (~tui_gen_win_info): Handle more cleanup here.
3400 (~tui_source_window_base): Delete "execution_info".
3401 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
3402
d6ba6a11
TT
34032019-06-25 Tom Tromey <tom@tromey.com>
3404
3405 * tui/tui-layout.c (make_command_window): Don't set
3406 can_highlight.
3407 (show_source_disasm_command): Call the reset method.
3408 (show_data): Don't set can_highlight. Call the reset method.
3409 (tui_gen_win_info::reset): Rename from init_gen_win_info
3410 (init_and_make_win): Simplify. Return tui_gen_win_info.
3411 (show_source_or_disasm_and_command): Call the reset method.
3412 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
3413 (struct tui_cmd_window): Set can_highlight.
3414
48a3bd16
TT
34152019-06-25 Tom Tromey <tom@tromey.com>
3416
3417 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
3418 from make_visible.
3419 (tui_make_visible, tui_make_invisible): Rewrite.
3420 (tui_win_info::make_visible): Remove.
3421 (tui_source_window_base::make_visible): Update.
3422 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
3423 method. Moved from...
3424 (struct tui_win_info) <make_visible>: ...here.
3425
c3bd716f
TT
34262019-06-25 Tom Tromey <tom@tromey.com>
3427
3428 * tui/tui-winsource.c
3429 (tui_source_window_base::do_scroll_horizontal): Remove direction
3430 parameter.
3431 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
3432 direction parameter.
3433 * tui/tui-win.c (tui_win_info::forward_scroll)
3434 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3435 (tui_win_info::right_scroll): Update.
3436 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
3437 direction parameter.
3438 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
3439 direction parameter.
3440 * tui/tui-data.h (enum tui_scroll_direction): Remove.
3441 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
3442 Remove direction parameter.
3443 (struct tui_source_window_base, struct tui_source_window)
3444 (struct tui_disasm_window, struct tui_data_window)
3445 (struct tui_cmd_window): Update.
3446
21c32dca
TT
34472019-06-25 Tom Tromey <tom@tromey.com>
3448
3449 * tui/tui-winsource.h (tui_set_exec_info_content)
3450 (tui_show_exec_info_content, tui_erase_exec_info_content)
3451 (tui_clear_exec_info_content, tui_update_exec_info): Change
3452 argument to tui_source_window_base.
3453 * tui/tui-winsource.c (tui_set_exec_info_content)
3454 (tui_show_exec_info_content, tui_erase_exec_info_content)
3455 (tui_clear_exec_info_content, tui_update_exec_info): Change
3456 argument to tui_source_window_base.
3457
73fbdc65
TT
34582019-06-25 Tom Tromey <tom@tromey.com>
3459
3460 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
3461 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
3462
33325343
TT
34632019-06-25 Tom Tromey <tom@tromey.com>
3464
3465 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
3466 check.
3467
29d2c474
TT
34682019-06-25 Tom Tromey <tom@tromey.com>
3469
3470 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
3471 type to void.
3472 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
3473 type to void.
3474 * tui/tui-source.c (tui_set_source_content): Update.
3475 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3476
152f3f4b
TT
34772019-06-25 Tom Tromey <tom@tromey.com>
3478
3479 * tui/tui-win.c (window_name_completer, tui_set_focus)
3480 (tui_all_windows_info): Use name method.
3481 * tui/tui-data.h (struct tui_gen_win_info)
3482 (struct tui_source_window, struct tui_disasm_window)
3483 (struct tui_data_window, struct tui_cmd_window) <name>: New
3484 method.
3485 (tui_win_name): Don't declare.
3486 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
3487 (tui_win_name): Remove.
3488
be4da588
TT
34892019-06-25 Tom Tromey <tom@tromey.com>
3490
3491 * tui/tui-winsource.h (tui_update_source_window)
3492 (tui_update_source_window_as_is): Change parameter type.
3493 * tui/tui-winsource.c (tui_update_source_window): Change win_info
3494 to be a tui_source_window_base.
3495 (tui_update_source_window_as_is): Likewise.
3496 * tui/tui-win.c (make_visible_with_new_height): Update.
3497
5b81daba
TT
34982019-06-25 Tom Tromey <tom@tromey.com>
3499
3500 * tui/tui-winsource.c (tui_erase_source_content)
3501 (tui_show_source_content, tui_show_exec_info_content)
3502 (tui_erase_exec_info_content): Use refresh_window method.
3503 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
3504 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
3505 from tui_refresh_win.
3506 (tui_data_window::refresh_window): New method.
3507 (tui_win_info::refresh, tui_source_window_base::refresh)
3508 (tui_refresh_all): Use refresh_window method.
3509 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
3510 method.
3511 * tui/tui-regs.c (tui_display_register): Call refresh_window
3512 method.
3513 * tui/tui-layout.c (show_source_disasm_command)
3514 (show_source_or_disasm_and_command): Call refresh_window method.
3515 * tui/tui-data.h (struct tui_gen_win_info)
3516 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
3517 New method.
3518
cb2ce893
TT
35192019-06-25 Tom Tromey <tom@tromey.com>
3520
3521 * tui/tui.c (tui_rl_other_window, tui_enable)
3522 (tui_is_window_visible, tui_get_command_dimension): Update.
3523 * tui/tui-winsource.c (tui_update_source_window_as_is)
3524 (tui_clear_source_content, tui_erase_source_content)
3525 (tui_show_source_line, tui_source_window_base::refill)
3526 (tui_source_window_base::do_scroll_horizontal)
3527 (tui_source_window_base::set_is_exec_point_at)
3528 (tui_update_breakpoint_info, tui_set_exec_info_content)
3529 (tui_alloc_source_buffer, tui_line_is_displayed)
3530 (tui_addr_is_displayed): Update.
3531 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
3532 (tui_check_and_display_highlight_if_needed)
3533 (tui_win_info::make_visible, tui_win_info::refresh)
3534 (tui_refresh_all): Update.
3535 * tui/tui-windata.c (tui_first_data_item_displayed)
3536 (tui_delete_data_content_windows, tui_erase_data_content)
3537 (tui_display_all_data, tui_data_window::refresh_all)
3538 (tui_check_data_values): Update.
3539 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
3540 (tui_set_win_focus_to, tui_win_info::forward_scroll)
3541 (tui_win_info::backward_scroll, tui_refresh_all_win)
3542 (tui_resize_all, tui_set_focus, tui_all_windows_info)
3543 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
3544 (tui_source_window_base::set_new_height)
3545 (tui_data_window::set_new_height)
3546 (make_invisible_and_set_new_height)
3547 (make_visible_with_new_height, new_height_ok)
3548 (parse_scrolling_args): Update.
3549 * tui/tui-stack.c (tui_show_frame_info): Update.
3550 * tui/tui-source.c (tui_set_source_content)
3551 (tui_set_source_content_nil, tui_source_is_displayed)
3552 (tui_source_window::do_scroll_vertical): Update.
3553 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3554 (tui_display_registers_from, tui_display_reg_element_at_line)
3555 (tui_check_register_values, tui_reg_command): Update.
3556 * tui/tui-layout.c (tui_default_win_height)
3557 (show_source_disasm_command, show_data, init_and_make_win)
3558 (show_source_or_disasm_and_command): Update.
3559 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3560 (tui_redisplay_readline, tui_mld_flush)
3561 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
3562 (tui_getc): Update.
3563 * tui/tui-disasm.c (tui_set_disassem_content)
3564 (tui_disasm_window::do_scroll_vertical): Update.
3565 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
3566 Now virtual.
3567 (struct tui_win_info): Derive from tui_gen_win_info.
3568 <~tui_win_info>: Mark as override.
3569 <generic>: Remove member.
3570 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
3571 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
3572 (~tui_data_window, ~tui_win_info)
3573 (tui_free_all_source_wins_content): Update.
3574 * tui/tui-command.c (tui_refresh_cmd_win): Update.
3575
ab313b35
TT
35762019-06-25 Tom Tromey <tom@tromey.com>
3577
3578 * tui/tui-layout.c (init_and_make_win): Use new.
3579 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
3580 destructor, initializers.
3581 (tui_alloc_generic_win_info): Don't declare.
3582 * tui/tui-data.c (_locator): Add argument to constructor.
3583 (source_win, disasm_win): New globals.
3584 (exec_info): Remove.
3585 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
3586 Update.
3587 (tui_alloc_generic_win_info): Remove.
3588 (init_content_element): Use new.
3589 (tui_win_info::tui_win_info): Update.
3590 (free_content_elements) <case DATA_WIN>: Use delete.
3591
dc2c33e4
TT
35922019-06-25 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-wingeneral.c (tui_refresh_win): Update.
3595 * tui/tui-windata.c (tui_first_data_item_displayed)
3596 (tui_delete_data_content_windows): Update.
3597 * tui/tui-win.c (tui_data_window::set_new_height): Update.
3598 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
3599 (tui_display_registers_from, tui_check_register_values): Update.
3600 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
3601 pointer.
3602 * tui/tui-data.c (init_content_element): Update. Allocate the new
3603 window.
3604 (tui_free_data_content): Update.
3605 (free_content_elements) <case DATA_WIN>: Free the window.
3606
214a5cbe
TT
36072019-06-25 Tom Tromey <tom@tromey.com>
3608
3609 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
3610 Update.
3611 * tui/tui-layout.c (make_command_window)
3612 (show_source_disasm_command, show_data, init_and_make_win)
3613 (show_source_or_disasm_and_command): Update.
3614 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
3615 method.
3616 <can_highight, is_highlighted>: Now bool.
3617 (tui_set_win_highlight): Don't declare.
3618 * tui/tui-data.c (tui_set_win_highlight): Remove.
3619
8e2daf15
TT
36202019-06-25 Tom Tromey <tom@tromey.com>
3621
3622 * tui/tui-wingeneral.c (make_visible): Remove check of window
3623 type.
3624
8903bd8a
TT
36252019-06-25 Tom Tromey <tom@tromey.com>
3626
3627 * tui/tui-win.c (tui_win_info::max_height)
3628 (tui_cmd_window::max_height): New methods.
3629 (new_height_ok): Call max_height.
3630 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
3631 <max_height>: New method.
3632
3f02ce1e
TT
36332019-06-25 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-win.c (tui_source_window_base::set_new_height)
3636 (tui_data_window::set_new_height): New methods.
3637 (make_invisible_and_set_new_height): Call set_new_height method.
3638 * tui/tui-data.h (struct tui_win_info)
3639 (struct tui_source_window_base, struct tui_data_window)
3640 <set_new_height>: New method.
3641
1825f487
TT
36422019-06-25 Tom Tromey <tom@tromey.com>
3643
3644 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
3645 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
3646 tui_refresh_data_win.
3647 * tui/tui-win.c (tui_source_window_base::refresh_all): New
3648 method.
3649 (tui_refresh_all_win): Call the refresh_all method.
3650 (tui_set_focus): Likewise.
3651 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
3652 (struct tui_source_window_base, struct tui_data_window) <refresh>:
3653 Likewise.
3654
ad54d15b
TT
36552019-06-25 Tom Tromey <tom@tromey.com>
3656
3657 * tui/tui-winsource.h (tui_refill_source_window)
3658 (tui_set_is_exec_point_at): Don't declare.
3659 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3660 (tui_source_window_base::refill): Rename from
3661 tui_refill_source_window.
3662 (tui_source_window_base::do_scroll_horizontal): Update.
3663 (tui_source_window_base::set_is_exec_point_at): Rename from
3664 tui_set_is_exec_point_at.
3665 (tui_update_all_breakpoint_info): Update.
3666 * tui/tui-stack.c (tui_show_frame_info): Update.
3667 * tui/tui-layout.c (show_data): Add cast.
3668 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
3669 * tui/tui-data.h (struct tui_source_window_base) <refill,
3670 set_is_exec_point_at>: New methods.
3671 (tui_source_windows, tui_add_to_source_windows): Update types.
3672 (tui_add_to_source_windows): Remove redundant declaration.
3673 * tui/tui-data.c (source_windows): Store tui_source_window_base.
3674 (tui_source_windows): Change return type.
3675 (tui_clear_source_windows_detail): Update.
3676 (tui_add_to_source_windows): Change type of parameter.
3677 (tui_free_all_source_wins_content): Update.
3678
2042b506
TT
36792019-06-25 Tom Tromey <tom@tromey.com>
3680
3681 * tui/tui-wingeneral.c (tui_win_info::refresh)
3682 (tui_source_window_base::refresh): New methods.
3683 (tui_refresh_all): Call the refresh method.
3684 * tui/tui-data.h (struct tui_win_info)
3685 (struct tui_source_window_base) <refresh>: New method.
3686
56122977
TT
36872019-06-25 Tom Tromey <tom@tromey.com>
3688
3689 * tui/tui.h (tui_is_window_visible): Return bool.
3690 * tui/tui.c (tui_is_window_visible): Return bool.
3691 * tui/tui-wingeneral.c (tui_make_window, make_visible)
3692 (tui_make_visible, tui_make_invisible)
3693 (tui_win_info::make_visible)
3694 (tui_source_window_base::make_visible, make_all_visible)
3695 (tui_make_all_visible, tui_make_all_invisible): Update.
3696 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
3697 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
3698 bool.
3699 (struct tui_win_info, struct tui_source_window_base)
3700 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
3701 * tui/tui-data.c (tui_init_generic_part): Update.
3702
cda37efb
TT
37032019-06-25 Tom Tromey <tom@tromey.com>
3704
3705 * tui/tui-wingeneral.c (tui_win_info::make_visible)
3706 (tui_source_window_base::make_visible): New methods.
3707 (make_all_visible): Make method call.
3708 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
3709 (struct tui_source_window_base, struct tui_cmd_window): Override
3710 make_visible.
3711 (tui_win_is_source_type): Don't declare.
3712 * tui/tui-data.c (tui_win_is_source_type): Remove.
3713
6a0ee02c
TT
37142019-06-25 Tom Tromey <tom@tromey.com>
3715
3716 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
3717 NULL check.
3718
63901aec
TT
37192019-06-25 Tom Tromey <tom@tromey.com>
3720
3721 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
3722 Inline constructor. Add initializers for members.
3723 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
3724 constructors; now inline in class.
3725
ceb13a13
TT
37262019-06-25 Tom Tromey <tom@tromey.com>
3727
3728 * tui/tui-regs.c (tui_show_registers): Update.
3729 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
3730 bool.
3731 * tui/tui-data.c (tui_data_window::clear_detail)
3732 (tui_data_window): Update.
3733
238eb706
TT
37342019-06-25 Tom Tromey <tom@tromey.com>
3735
3736 * tui/tui-windata.c (tui_display_all_data)
3737 (tui_display_data_from_line, tui_display_data_from)
3738 (tui_check_data_values, tui_data_window::do_scroll_vertical):
3739 Update.
3740 * tui/tui-regs.c (tui_last_regs_line_no)
3741 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
3742 (tui_show_registers, tui_show_register_group)
3743 (tui_display_registers_from, tui_display_reg_element_at_line)
3744 (tui_display_registers_from_line, tui_check_register_values)
3745 (tui_reg_next, tui_reg_prev): Update.
3746 * tui/tui-layout.c (tui_set_layout, show_data): Update.
3747 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
3748 tui_data_window.
3749 (struct tui_win_info) <detail>: Remove. Add new fields from
3750 tui_data_info.
3751 (TUI_DATA_WIN): Add cast.
3752 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
3753 (~tui_data_window): Simplify.
3754
81491aa0
TT
37552019-06-25 Tom Tromey <tom@tromey.com>
3756
3757 * tui/tui-layout.c (show_source_disasm_command)
3758 (show_source_or_disasm_and_command): Update.
3759 * tui/tui-io.c (update_cmdwin_start_line)
3760 (tui_redisplay_readline): Update.
3761 * tui/tui-data.h (struct tui_command_info): Remove.
3762 (struct tui_win_info) <detail>: Remove command_info member.
3763 (struct tui_data_window) <start_line>: New member, from
3764 tui_command_info.
3765 (TUI_CMD_WIN): Add casts.
3766
e6e41501
TT
37672019-06-25 Tom Tromey <tom@tromey.com>
3768
3769 * tui/tui-winsource.c (tui_update_source_window)
3770 (tui_refill_source_window)
3771 (tui_source_window_base::do_scroll_horizontal)
3772 (tui_update_breakpoint_info, tui_set_exec_info_content)
3773 (tui_show_exec_info_content, tui_erase_exec_info_content)
3774 (tui_clear_exec_info_content): Update.
3775 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
3776 Update.
3777 * tui/tui-win.c (make_invisible_and_set_new_height)
3778 (make_visible_with_new_height): Update.
3779 * tui/tui-source.c (tui_set_source_content)
3780 (tui_show_symtab_source): Update.
3781 * tui/tui-layout.c (extract_display_start_addr)
3782 (show_source_disasm_command, show_data)
3783 (make_source_or_disasm_window)
3784 (show_source_or_disasm_and_command): Update.
3785 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
3786 (tui_disasm_window::do_scroll_vertical): Remove shadowing
3787 "gdbarch".
3788 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
3789 to tui_source_window_base.
3790 (struct tui_win_info) <detail>: Remove source_info member.
3791 (struct tui_source_window_base) <has_locator>: Inline.
3792 Move contents from tui_source_info; rename has_locator member to
3793 m_has_locator.
3794 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
3795 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
3796 header file.
3797 (tui_source_window_base::clear_detail, ~tui_source_window_base):
3798 Simplify.
3799 (tui_free_all_source_wins_content): Cast to
3800 tui_source_window_base.
3801
44f0e208
TT
38022019-06-25 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui-win.c (make_invisible_and_set_new_height)
3805 (make_visible_with_new_height): Call has_locator method.
3806 * tui/tui-layout.c (show_source_disasm_command, show_data)
3807 (show_source_or_disasm_and_command): Update for bool change.
3808 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
3809 (tui_win_info) <has_locator>: New method.
3810 (struct tui_source_window_base) <has_locator>: New method.
3811 (tui_win_has_locator): Don't declare.
3812 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
3813 from tui_win_has_locator.
3814 (tui_source_window_base): Use false, not FALSE.
3815
7778b912
TT
38162019-06-25 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
3819 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
3820 clear_detail method directly.
3821 (tui_clear_win_detail): Remove.
3822
f83d391c
TT
38232019-06-25 Tom Tromey <tom@tromey.com>
3824
3825 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
3826 "this", not TUI_DISASM_WIN.
3827
13446e05
TT
38282019-06-25 Tom Tromey <tom@tromey.com>
3829
3830 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
3831 declare.
3832 * tui/tui-winsource.c
3833 (tui_source_window_base::do_scroll_horizontal): Rename from
3834 tui_horizontal_source_scroll.
3835 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
3836 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
3837 from tui_vertical_data_scroll.
3838 * tui/tui-win.h (tui_scroll): Don't declare.
3839 * tui/tui-win.c (tui_win_info::forward_scroll)
3840 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
3841 (tui_win_info::right_scroll): Rename and update.
3842 (tui_scroll_forward_command, tui_scroll_backward_command)
3843 (tui_scroll_left_command, tui_scroll_right_command): Update.
3844 (tui_scroll): Remove.
3845 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
3846 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
3847 from tui_vertical_source_scroll.
3848 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
3849 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
3850 from tui_vertical_disassem_scroll.
3851 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
3852 do_scroll_horizontal>: New methods.
3853 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
3854 Likewise.
3855 (struct tui_source_window_base): Add do_scroll_horizontal.
3856 (struct tui_source_window, struct tui_disasm_window): Add
3857 do_scroll_vertical.
3858 (struct tui_data_window, struct tui_cmd_window): Add
3859 do_scroll_horizontal and do_scroll_vertical.
3860 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
3861
5cf82909
TT
38622019-06-25 Tom Tromey <tom@tromey.com>
3863
3864 * tui/tui-data.h (struct tui_source_window_base): New struct.
3865 (struct tui_source_window): Derive from tui_source_window_base.
3866 (struct tui_disasm_window): New struct.
3867 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
3868 from tui_source_window::clear_detail.
3869 (tui_source_window_base): Rename from tui_source_window.
3870 (~tui_source_window_base): Rename from ~tui_source_window.
3871 (tui_alloc_win_info): Create a tui_disasm_window.
3872
ee1d42d6
TT
38732019-06-25 Tom Tromey <tom@tromey.com>
3874
3875 * tui/tui-data.h (struct tui_source_window)
3876 (struct tui_data_window): Declare destructors.
3877 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
3878 destructors.
3879 (tui_win_info): Simplify.
3880
b4eb2452
TT
38812019-06-25 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-winsource.c (tui_display_main)
3884 (tui_update_source_windows_with_addr)
3885 (tui_update_all_breakpoint_info): Update.
3886 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3887 (new_height_ok, parse_scrolling_args): Update.
3888 * tui/tui-stack.c (tui_show_frame_info): Update.
3889 * tui/tui-data.h (struct tui_list): Remove.
3890 (tui_source_windows): Return a reference to a std::vector.
3891 * tui/tui-data.c (source_windows): Now a std::vector.
3892 (tui_source_windows): Change return type.
3893 (tui_clear_source_windows): Rewrite.
3894 (tui_clear_source_windows_detail, tui_add_to_source_windows)
3895 (tui_free_all_source_wins_content): Rewrite.
3896
8761a91b
TT
38972019-06-25 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
3900 (struct tui_data_window, struct tui_cmd_window): Declare
3901 clear_detail method.
3902 * tui/tui-data.c (tui_source_window::clear_detail)
3903 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
3904 methods.
3905 (tui_clear_win_detail): Simplify.
3906
0ed69eda
TT
39072019-06-25 Tom Tromey <tom@tromey.com>
3908
3909 * tui/tui-layout.c (make_source_window, make_disasm_window)
3910 (make_source_or_disasm_window): Remove win_info_ptr parameter.
3911 Return the new window.
3912 (show_source_disasm_command, show_data)
3913 (show_source_or_disasm_and_command): Update.
3914
82432e10
TT
39152019-06-25 Tom Tromey <tom@tromey.com>
3916
3917 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
3918 parameter. Return the new window.
3919 (show_source_disasm_command): Update and remove NULL check.
3920 (show_source_or_disasm_and_command): Update.
3921
ec328aa5
TT
39222019-06-25 Tom Tromey <tom@tromey.com>
3923
3924 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
3925
33b906ab
TT
39262019-06-25 Tom Tromey <tom@tromey.com>
3927
3928 * tui/tui-data.h (struct tui_win_info): Make constructor
3929 protected. Make destructor virtual. Add initializers.
3930 (tui_source_window, tui_data_window, tui_cmd_window): New
3931 classes.
3932 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
3933 constructor. Add "type" parameter.
3934 (tui_source_window, tui_data_window, tui_cmd_window): New
3935 constructors.
3936 (tui_alloc_win_info): Instantiate the appropriate subclass.
3937
e7e11af4
TT
39382019-06-25 Tom Tromey <tom@tromey.com>
3939
3940 * tui/tui-win.c (tui_resize_all): Use delete.
3941 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
3942 destructor.
3943 (tui_free_window): Don't declare.
3944 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
3945 Update.
3946
6792b55e
TT
39472019-06-25 Tom Tromey <tom@tromey.com>
3948
3949 * tui/tui-data.h (struct tui_win_info): Add constructor.
3950 * tui/tui-data.c (tui_alloc_win_info): Use new.
3951 (tui_free_window): Use delete.
3952
f95675e1
TT
39532019-06-22 Tom Tromey <tom@tromey.com>
3954
3955 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
3956 declare.
3957 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
3958
5bff081c
TT
39592019-06-22 Tom Tromey <tom@tromey.com>
3960
3961 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
3962 declare.
3963 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
3964
47e3f474
TV
39652019-06-22 Tom de Vries <tdevries@suse.de>
3966
3967 * dwarf2read.c (create_addrmap_from_aranges)
3968 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
3969 instead of '%zu'.
3970
fd5866f6
SM
39712019-06-21 Simon Marchi <simon.marchi@efficios.com>
3972
3973 * dwarf2read.h (dwarf2_section_info_def): Remove.
3974 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
3975 * dwarf2read.c (struct dwo_sections) <types>: Change type to
3976 std::vector<dwarf2_section_info>.
3977 (struct dwo_file) <~dwo_file>: Remove.
3978 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
3979 types field.
3980 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
3981 (dwarf2_read_debug_names): Likewise.
3982 (create_debug_types_hash_table): Change parameter type to
3983 array_view, adjust code accordingly.
3984 (dwarf2_locate_dwo_sections): Adjust to std::vector.
3985 (partial_die_info::fixup): Likewise.
3986 (determine_prefix): Likewise.
3987 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
3988
fb1eb2f9
SM
39892019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3990
3991 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
3992 gdb_bfd_ref_ptr.
3993 <~dwo_file>: Remove call to gdb_bfd_unref.
3994 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
3995 gdb_bfd_ref_ptr::get.
3996
51ac9db5
SM
39972019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
3998
3999 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
4000 type to htab_up.
4001 * dwarf2read.c (struct dwo_file): Initialize fields.
4002 <~dwo_file>: New.
4003 (free_dwo_file): Remove, move content to ~dwo_file.
4004 (struct dwo_file_deleter): Remove.
4005 (dwo_file_up>: Remove custom deleter.
4006 (free_dwo_files): Remove.
4007 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
4008 dwo_files.
4009 (process_skeletonless_type_units): Call unique_ptr::get.
4010 (allocate_dwo_file_hash_table): Add deleter to created hash
4011 table. Change return type to htab_up.
4012 (lookup_dwo_file_slot): Don't memset dwo_file, call
4013 unique_ptr::get.
4014 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
4015 (create_dwo_unit_in_dwp_v2): Likewise.
4016 (open_and_init_dwo_file): Likewise.
4017 (free_dwo_file_from_slot): Remove.
4018
dc4ccb6f
SM
40192019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
4020
4021 * dwarf2read.h (struct dwarf2_section_info) <readin,
4022 is_virtual>: Change type to bool.
4023 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
4024 true instead of 1.
4025
e6a1c5cb
TT
40262019-06-19 Tom Tromey <tom@tromey.com>
4027
4028 * tui/tui-data.h (tui_init_content_element): Don't declare.
4029
6f6ffbeb
TT
40302019-06-19 Tom Tromey <tom@tromey.com>
4031
4032 * tui/tui-data.h (tui_init_win_info): Don't declare.
4033
f23f598e
TV
40342019-06-19 Tom de Vries <tdevries@suse.de>
4035
4036 * dwarf2read.h (abstract_to_concrete): Change type to
4037 std::unordered_map<sect_offset, std::vector<sect_offset>,
4038 gdb::hash_enum<sect_offset>>.
4039
680e1bee
TT
40402019-06-19 Tom Tromey <tromey@adacore.com>
4041
4042 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
4043 EVAL_AVOID_SIDE_EFFECTS specially.
4044
dcf37923
TT
40452019-06-19 Tom Tromey <tromey@adacore.com>
4046
4047 * source-cache.c (highlighter): New global.
4048 (source_cache::get_source_lines): Create a highlighter on demand.
4049
494986d5
AB
40502019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
4051
4052 * defs.h (deprecated_interactive_hook): Delete declaration.
4053 * interps.c (clear_interpreter_hooks): Remove use of
4054 deprecated_interactive_hook.
4055 * top.c (deprecated_interactive_hook): Delete definition.
4056 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
4057
3360b6e7
TV
40582019-06-18 Tom de Vries <tdevries@suse.de>
4059
4060 PR gdb/24515
4061 * dwarf2read.h (abstract_to_concrete): Change type from
4062 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
4063 std::unordered_map<sect_offset, std::vector<sect_offset>>.
4064 * dwarf2read.c (read_variable): Update.
4065 (dwarf2_fetch_die_loc_sect_off): Update.
4066
310b3441
TV
40672019-06-17 Tom de Vries <tdevries@suse.de>
4068
4069 PR gdb/24617
4070 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
4071 accessing parent[parent_len - 1].
4072
ba9777be
PP
40732019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4074
4075 PR gdb/24364
4076 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
4077 call dtrace_process_dof with NULL dof.
4078
2b9f6e89
TV
40792019-06-16 Tom de Vries <tdevries@suse.de>
4080
4081 PR gdb/24445
4082 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
4083
431b3ead
TT
40842019-06-16 Tom Tromey <tom@tromey.com>
4085
4086 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
4087 (make_all_visible): Use address of member.
4088
d04b44a1
TT
40892019-06-16 Tom Tromey <tom@tromey.com>
4090
4091 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
4092 (tui_free_window, free_content, free_content_elements): Remove
4093 unnecessary cast.
4094 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
4095 cast.
4096 * tui/tui-regs.c (tui_show_register_group)
4097 (tui_display_registers_from, tui_display_reg_element_at_line):
4098 Remove unnecessary cast.
4099
bf5142e7
AB
41002019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4101
4102 * linux-nat.c (normal_mask): Delete.
4103 (_initialize_linux_nat): Don't initialise normal_mask.
4104
c4973306
SM
41052019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
4106
4107 PR gdb/24445
4108 * dwarf-index-write.h (write_psymtabs_to_index): Add
4109 dwz_basename parameter.
4110 * dwarf-index-write.c (write_gdbindex): Move file writing to
4111 write_gdbindex_1. Change return type void.
4112 (assert_file_size): Move up, remove filename parameter.
4113 (write_gdbindex_1): New function.
4114 (write_debug_names): Change return type to void, call
4115 assert_file_size.
4116 (struct index_wip_file): New struct.
4117 (write_psymtabs_to_index): Add dwz_basename parameter. Move
4118 file logic to index_wip_file. Write index for dwz file if
4119 needed.
4120 (save_gdb_index_command): Pass basename of dwz file, if present.
4121 * dwarf-index-cache.c (index_cache::store): Obtain and pass
4122 build-id of dwz file, if present.
4123 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
4124 (dwarf2_get_dwz_file): Likewise.
4125 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
4126 (dwarf2_get_dwz_file): Likewise.
4127
395f9c91
TT
41282019-06-16 Tom Tromey <tom@tromey.com>
4129
4130 * coffread.c (process_coff_symbol): Use xstrdup.
4131 * value.c (create_internalvar): Use xstrdup.
4132
cafb3438
TT
41332019-06-16 Tom Tromey <tom@tromey.com>
4134
4135 * valops.c (value_cast, value_slice): Remove unnecessary cast.
4136 * breakpoint.c (stopin_command, stopat_command)
4137 (until_break_command, decode_location_default): Remove unnecessary
4138 cast.
4139 * utils.c (subset_compare): Remove unnecessary cast.
4140 * ada-lang.c (ada_update_initial_language): Remove unnecessary
4141 cast.
4142 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
4143 cast.
4144 * infcmd.c (path_command): Remove unnecessary cast.
4145 * coffread.c (decode_type): Remove unnecessary cast.
4146 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
4147 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
4148 * tui/tui-stack.c (tui_show_locator_content)
4149 (tui_show_frame_info): Remove unnecessary cast.
4150 * tui/tui-win.c (tui_scroll_forward_command)
4151 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
4152 (parse_scrolling_args): Remove unnecessary cast.
4153 * tui/tui-data.c (init_win_info, tui_del_window)
4154 (tui_free_window, tui_del_data_windows, tui_free_data_content)
4155 (free_content_elements): Remove unnecessary cast.
4156 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
4157 unnecessary cast.
4158 * tui/tui-source.c (tui_set_source_content)
4159 (tui_vertical_source_scroll): Remove unnecessary cast.
4160 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
4161 cast.
4162 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
4163 * tui/tui-regs.c (tui_display_registers_from)
4164 (tui_display_register): Remove unnecessary cast.
4165 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
4166 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
4167 (make_visible): Remove unnecessary cast.
4168 * tui/tui-winsource.c (tui_erase_source_content)
4169 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
4170 unnecessary cast.
4171 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
4172 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
4173 * stabsread.c (read_type, read_array_type, read_range_type):
4174 Remove unnecessary cast.
4175 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
4176 (parse_symbol, parse_type, upgrade_type, parse_external)
4177 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
4178 unnecessary cast.
4179 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
4180
730ead81
TT
41812019-06-16 Tom Tromey <tom@tromey.com>
4182
4183 * tui/tui-data.c (tui_alloc_generic_win_info)
4184 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
4185 checks.
4186
584a927c
AB
41872019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
4188 Andrew Burgess <andrew.burgess@embecosm.com>
4189
4190 * f-typeprint.c (f_print_type): Don't return early for not
4191 associated or not allocated types.
4192 (f_type_print_varspec_suffix): Add print_rank parameter and print
4193 ranks of array types in case they dangling.
4194 (f_type_print_base): Add print_rank parameter.
4195
30056ea0
AB
41962019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4197
4198 * NEWS: Mention new MI commands.
4199 * break-catch-throw.c (enum exception_event_kind): Move to
4200 breakpoint.h.
4201 (print_mention_exception_catchpoint): Output text as a single
4202 message.
4203 (catch_exception_command_1): Rename to...
4204 (catch_exception_event): ...this, make non-static, update header
4205 command, and change some parameter types.
4206 (catch_catch_command): Update for changes to
4207 catch_exception_command_1.
4208 (catch_throw_command): Likewise.
4209 (catch_rethrow_command): Likewise.
4210 * breakpoint.c (enum exception_event_kind): Delete.
4211 * breakpoint.h (enum exception_event_kind): Moved here from
4212 break-catch-throw.c.
4213 (catch_exception_event): Declare.
4214 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
4215 (mi_cmd_catch_throw): New function.
4216 (mi_cmd_catch_rethrow): New function.
4217 (mi_cmd_catch_catch): New function.
4218 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
4219 'catch-catch' entries.
4220 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
4221 (mi_cmd_catch_rethrow): Declare.
4222 (mi_cmd_catch_catch): Declare.
4223
ec8e2b6d
AB
42242019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4225
4226 * annotate.c (annotate_source_line): Change return type to void,
4227 update implementation to match.
4228 * annotate.h (annotate_source_line): Change return type to void,
4229 update header comment.
4230 * stack.c (print_frame_info): Don't change what frame information
4231 is printed based on whether annotations are on or not.
4232
0d3abd8c
AB
42332019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
4236 (annotate_source): Make static.
4237 (annotate_source_line): Moved from source.c and renamed from
4238 identify_source_line. Update the return type.
4239 * annotate.h (annotate_source): Delete declaration.
4240 (annotate_source_line): Declaration moved from source.h, and
4241 renamed from identify_source_line. Return type updated.
4242 * source.c (identify_source_line): Moved to annotate.c and renamed
4243 to annotate_source_line.
4244 (info_line_command): Remove check of annotation_level.
4245 * source.h (identify_source_line): Move declaration to annotate.h
4246 and rename to annotate_source_line.
4247 * stack.c: Add 'annotate.h' include.
4248 (print_frame_info): Remove check of annotation_level before
4249 calling annotate_source_line.
4250
00df30ae
AB
42512019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4252
4253 * source-cache.c (source_cache::get_plain_source_lines): Use
4254 open_source_file_with_line_charpos instead of just
4255 open_source_file, remove call to find_source_lines.
4256 (source_cache::get_source_lines): Likewise.
4257 * source.c (find_source_lines): Make static.
4258 (get_filename_and_charpos): Renamed into...
4259 (open_source_file_with_line_charpos): ..this along with changes to
4260 return a scoped_fd, and some other minor clean ups.
4261 (identify_source_line): Use open_source_file_with_line_charpos.
4262 (search_command_helper): Use open_source_file_with_line_charpos
4263 instead of just open_source_file, remove call to
4264 find_source_lines.
4265 * source.h (open_source_file_with_line_charpos): Declare new
4266 function.
4267 (find_source_lines): Delete declaration.
4268
afda45a2
AB
42692019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
4270
4271 * source.c (get_filename_and_charpos): Remove fullname
4272 parameter.
4273 (identify_source_line): Update call to get_filename_and_charpos.
4274
0735b091
TT
42752019-06-14 Tom Tromey <tromey@adacore.com>
4276
4277 PR gdb/24502:
4278 * ui-style.h (skip_ansi_escape): Update comment.
4279 * ui-file.h (class no_terminal_escape_file): New class.
4280 * ui-file.c (no_terminal_escape_file::write)
4281 (no_terminal_escape_file::puts): New methods.
4282 * cli/cli-logging.c (handle_redirections): Use
4283 no_terminal_escape_file.
4284
52ce35e2
TT
42852019-06-14 Tom Tromey <tromey@adacore.com>
4286
4287 * NEWS: Move convenience variable news above Python news.
4288
73cc7272
TT
42892019-06-14 Tom Tromey <tom@tromey.com>
4290
4291 * gnulib: Move directory to top-level.
4292 * configure.ac: Don't configure gnulib.
4293 * configure: Rebuild.
4294 * common/common-defs.h: Use new path to gnulib.
4295 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
4296 (GNULIB_H): Remove.
4297 (INCGNU): Look in new gnulib location.
4298 (HFILES_NO_SRCDIR): Remove gnulib files.
4299 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
4300 (generated_files): Remove GNULIB_H.
4301 ($(LIBGNU), all-lib): Remove targets.
4302 (distclean): Don't mention GNULIB_BUILDDIR.
4303 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
4304
f5686554
TT
43052019-06-14 Tom Tromey <tromey@adacore.com>
4306
4307 * symfile.c (add_symbol_file_command): Remove obsolete comment.
4308 Warn if symbol file does not provide any symbols.
4309
a0c1ffed
TT
43102019-06-14 Tom Tromey <tromey@adacore.com>
4311
4312 * source.c (find_and_open_source): Respect basenames_may_differ.
4313
7c39e397
AB
43142019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
4315
4316 * annotate.c (annotate_breakpoints_invalid): Make use of
4317 scoped_restore_terminal_state.
4318 (annotate_frames_invalid): Likewise.
4319
f411722c
TT
43202019-06-14 Tom Tromey <tromey@adacore.com>
4321
4322 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
4323 allow assignment to an internalvar.
4324
4268ec18
TT
43252019-06-14 Tom Tromey <tromey@adacore.com>
4326
4327 * ada-lex.l: Allow "_" in attribute names.
4328
abdb711e
TT
43292019-06-14 Tom Tromey <tromey@adacore.com>
4330
4331 PR gdb/24653:
4332 * regcache.c (registers_changed): Don't call alloca.
4333 * top.c (execute_command): Don't call alloca.
4334
4c048731
PA
43352019-06-13 Pedro Alves <palves@redhat.com>
4336
4337 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
4338 'expression'. When parsing an expression, error out if there's
4339 junk after "unlimited".
4340 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4341 (do_set_command): Adjust calls to is_unlimited_literal.
4342
66eb1ed3
PA
43432019-06-13 Pedro Alves <palves@redhat.com>
4344
4345 * compile/compile.c (make_compile_options_def_group): Add braces
4346 around array_view initializer.
4347 * thread.c (make_thread_apply_all_options_def_group)
4348 (make_thread_apply_all_options_def_group): Likewise.
4349
3345721a
PA
43502019-06-13 Pedro Alves <palves@redhat.com>
4351
4352 * NEWS (New commands): Mention "maint test-options
4353 require-delimiter", "maint test-options unknown-is-error", "maint
4354 test-options unknown-is-operand" and "maint show
4355 test-options-completion-result".
4356 (New command options, command completion): New section.
4357 (Completion improvements): New section.
4358 Mention that you can abbreviate "unlimited".
4359
6206060d
PA
43602019-06-13 Pedro Alves <palves@redhat.com>
4361
4362 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
4363 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
4364 * unittests/cli-utils-selftests.c (test_parse_flags)
4365 (test_parse_flags_qcs): Delete.
4366 (test_cli_utils): Don't call deleted functions.
4367
6665660a
PA
43682019-06-13 Pedro Alves <palves@redhat.com>
4369
4370 * thread.c: Include "cli/cli-option.h".
4371 (tp_array_compar_ascending): Global.
4372 (tp_array_compar): Delete function.
4373 (tp_array_compar_ascending, tp_array_compar_descending): New
4374 functions.
4375 (ascending_option_def, qcs_flag_option_def)
4376 (thr_qcs_flags_option_defs)
4377 (make_thread_apply_all_options_def_group)
4378 (make_thread_apply_options_def_group): New.
4379 (thread_apply_all_command): Use gdb::option::process_options.
4380 (thread_apply_command_completer)
4381 (thread_apply_all_command_completer): New.
4382 (thread_apply_command): Use gdb::option::process_options.
4383 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
4384 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
4385 to generate help text of "thread apply". Adjust "taas"'s help.
4386 * tid-parse.c (tid_range_parser::in_thread_range): New method.
4387 * tid-parse.h (tid_range_parser::in_thread_range): New method.
4388
f7e13587
PA
43892019-06-13 Pedro Alves <palves@redhat.com>
4390
4391 * thread.c (thread_apply_command): Check for invalid TID with
4392 isdigit instead of !isalpha.
4393
5d707134
PA
43942019-06-13 Pedro Alves <palves@redhat.com>
4395
4396 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
4397 (validate_flags_qcs): New.
4398 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
4399 (validate_flags_qcs): Declare.
4400 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
4401 (make_frame_apply_options_def_group): New.
4402 (frame_apply_command_count): Process options with
4403 gdb::option::process_options.
4404 (frame_apply_completer): New.
4405 (frame_apply_level_completer, frame_apply_all_completer)
4406 (frame_apply_completer): New.
4407 (_initialize_stack): Update help of "frame apply", "frame apply
4408 level", "frame apply all" and "faas" to mention supported options
4409 and install command completers.
4410 * stack.h (frame_apply_all_completer): Declare.
4411 * thread.c: Include "stack.h".
4412 (tfaas_command): Add "--".
4413 (_initialize_thread): Update help "tfaas" to mention supported
4414 options and install command completer.
4415
272d4594
PA
44162019-06-13 Pedro Alves <palves@redhat.com>
4417
4418 * completer.c (complete_nested_command_line): New.
4419 (gdb_completion_word_break_characters_throw): Add assertion.
4420 * completer.h (complete_nested_command_line): Declare.
4421
90a1ef87
PA
44222019-06-13 Pedro Alves <palves@redhat.com>
4423
4424 * stack.c (parse_backtrace_qualifiers): New.
4425 (backtrace_command): Use it.
4426 (backtrace_command_completer): Complete on qualifiers.
4427
d4c16835
PA
44282019-06-13 Pedro Alves <palves@redhat.com>
4429
4430 * frame.c: Include "cli/cli-option.h.
4431 (user_set_backtrace_options): New.
4432 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
4433 Delete.
4434 (get_prev_frame): Adjust.
4435 (boolean_option_def, uinteger_option_def)
4436 (set_backtrace_option_defs): New.
4437 (_initialize_frame): Adjust and use
4438 gdb::option::add_setshow_cmds_for_options to install "set
4439 backtrace past-main" and "set backtrace past-entry".
4440 * frame.h: Include "cli/cli-option.h".
4441 (struct frame_print_options): Forward declare.
4442 (print_frame_arguments_all, print_frame_arguments_scalars)
4443 (print_frame_arguments_none): Declare.
4444 (print_entry_values): Delete declaration.
4445 (struct frame_print_options, user_frame_print_options): New.
4446 (struct set_backtrace_options): New.
4447 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
4448 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4449 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4450 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
4451 (list_args_or_locals): Add frame_print_options parameter.
4452 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4453 * python/py-framefilter.c (enumerate_args): Pass down
4454 USER_FRAME_PRINT_OPTIONS.
4455 * stack.c: Include "cli/cli-option.h".
4456 (print_frame_arguments_all, print_frame_arguments_scalars)
4457 (print_frame_arguments_none): Declare.
4458 (print_raw_frame_arguments, print_entry_values): Delete.
4459 (user_frame_print_options): New.
4460 (boolean_option_def, enum_option_def, frame_print_option_defs):
4461 New.
4462 (struct backtrace_cmd_options): New.
4463 (bt_flag_option_def): New.
4464 (backtrace_command_option_defs): New.
4465 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
4466 (print_frame_arg, read_frame_arg, print_frame_args)
4467 (print_frame_info, print_frame): Add frame_print_options parameter
4468 and use it.
4469 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
4470 (backtrace_command_1): Add frame_print_options and
4471 backtrace_cmd_options parameters and use them.
4472 (make_backtrace_options_def_group): New.
4473 (backtrace_command): Process command options with
4474 gdb::option::process_options.
4475 (backtrace_command_completer): New.
4476 (_initialize_stack): Extend "backtrace"'s help to mention
4477 supported options. Install completer for "backtrace".
4478 Install some settings commands with add_setshow_cmds_for_options.
4479
2daf894e
PA
44802019-06-13 Pedro Alves <palves@redhat.com>
4481
4482 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
4483 and that "set/show print raw frame-arguments" are now deprecated.
4484
4485 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
4486 command.
4487 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
4488 * stack.c (_initialize_stack): Install "set/show print
4489 raw-frame-arguments", and deprecate "set/show print raw
4490 frame-arguments".
4491 * valprint.c (_initialize_valprint): Deprecate "set/show print
4492 raw".
4493
e6ed716c
PA
44942019-06-13 Pedro Alves <palves@redhat.com>
4495
4496 * compile/compile.c (struct compile_options): New.
4497 (compile_flag_option_def, compile_command_option_defs)
4498 (make_compile_options_def_group): New.
4499 (compile_file_command): Handle options with
4500 gdb::option::process_options.
4501 (compile_file_command_completer): New function.
4502 (compile_code_command): Handle options with
4503 gdb::option::process_options.
4504 (compile_code_command_completer): New function.
4505 (_initialize_compiler): Install completers for "compile code" and
4506 "compile file". Mention available options in "compile code" and
4507 "compile code"'s help.
4508 * completer.c (advance_to_completion_word): New, factored out from
4509 ...
4510 (advance_to_expression_complete_word_point): ... this.
4511 (advance_to_filename_complete_word_point): New.
4512 * completer.h (advance_to_filename_complete_word_point): New
4513 declaration.
4514
7d8062de
PA
45152019-06-13 Pedro Alves <palves@redhat.com>
4516
4517 * compile/compile.c: Include "cli/cli-option.h".
4518 (compile_print_value): Scope data pointer is now a
4519 value_print_options pointer; adjust.
4520 (compile_print_command): Process options. Scope data pointer is
4521 now a value_print_options pointer; adjust.
4522 (_initialize_compile): Update "compile print"'s help to include
4523 supported options. Install a completer for "compile print".
4524 * cp-valprint.c (show_vtblprint, show_objectprint)
4525 (show_static_field_print): Delete.
4526 (_initialize_cp_valprint): Don't install "set print
4527 static-members", "set print vtbl", "set print object" here.
4528 * printcmd.c: Include "cli/cli-option.h" and
4529 "common/gdb_optional.h".
4530 (print_command_parse_format): Rework to fill in a
4531 value_print_options instead of a format_data.
4532 (print_value): Change parameter type from format_data pointer to
4533 value_print_options reference. Adjust.
4534 (print_command_1): Process options. Adjust to pass down a
4535 value_print_options.
4536 (print_command_completer): New.
4537 (_initialize_printcmd): Install print_command_completer as
4538 handle_brkchars completer for the "print" command. Update
4539 "print"'s help to include supported options.
4540 * valprint.c: Include "cli/cli-option.h".
4541 (show_vtblprint, show_objectprint, show_static_field_print): Moved
4542 here from cp-valprint.c.
4543 (boolean_option_def, uinteger_option_def)
4544 (value_print_option_defs, make_value_print_options_def_group):
4545 New. Use gdb::option::add_setshow_cmds_for_options to install
4546 "set print elements", "set print null-stop", "set print repeats",
4547 "set print pretty", "set print union", "set print array", "set
4548 print address", "set print symbol", "set print array-indexes".
4549 * valprint.h: Include <string> and "cli/cli-option.h".
4550 (make_value_print_options_def_group): Declare.
4551 (print_value): Change parameter type from format_data pointer to
4552 value_print_options reference.
4553 (print_command_completer): Declare.
4554
9d0faba9
PA
45552019-06-13 Pedro Alves <palves@redhat.com>
4556
4557 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
4558 (COMMON_SFILES): Add maint-test-settings.c.
4559 * cli/cli-decode.c (boolean_enums): New global, factored out from
4560 ...
4561 (add_setshow_boolean_cmd): ... here.
4562 * cli/cli-decode.h (boolean_enums): Declare.
4563 * cli/cli-option.c: New file.
4564 * cli/cli-option.h: New file.
4565 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
4566 factored out from ...
4567 (parse_cli_boolean_value(const char *)): ... this.
4568 (is_unlimited_literal): Change parameter type to pointer to
4569 pointer. Adjust and advance ARG pointer.
4570 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4571 (parse_cli_var_enum): New, factored out from ...
4572 (do_set_command): ... this. Adjust.
4573 * cli/cli-setshow.h (parse_cli_boolean_value)
4574 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
4575 (parse_cli_var_enum): Declare.
4576 * cli/cli-utils.c: Include "cli/cli-option.h".
4577 (get_ulongest): New.
4578 * cli/cli-utils.h (get_ulongest): Declare.
4579 (check_for_argument): New overloads.
4580 * maint-test-options.c: New file.
4581
2c722807
PA
45822019-06-13 Pedro Alves <palves@redhat.com>
4583
4584 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
4585 parse a range if "-" is at the end of the string.
4586
dee7b4c8
PA
45872019-06-13 Pedro Alves <palves@redhat.com>
4588
4589 * cli/cli-setshow.c (parse_auto_binary_operation)
4590 (parse_cli_boolean_value): Don't allow "o".
4591
dca0f6c0
PA
45922019-06-13 Pedro Alves <palves@redhat.com>
4593
4594 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
4595 * NEWS: Mention maint test-settings KIND.
4596 * maint-test-settings.c: New file.
4597
597bf39d
PA
45982019-06-13 Pedro Alves <palves@redhat.com>
4599
4600 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
4601 completer.
4602 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
4603 "set" completers.
4604
48c410fb
PA
46052019-06-13 Pedro Alves <palves@redhat.com>
4606
4607 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
4608 after item.
4609
93bcb043
PA
46102019-06-13 Pedro Alves <palves@redhat.com>
4611
4612 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
4613
cbba3ecd
PA
46142019-06-13 Pedro Alves <palves@redhat.com>
4615
4616 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
4617 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
4618 call.
4619 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
4620 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
4621 calls.
4622 (check_for_argument): Skip spaces after argument.
4623
b9a3f842
PA
46242019-06-13 Pedro Alves <palves@redhat.com>
4625
4626 * thread.c (thread_apply_command): Adjust TID parsing.
4627 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
4628 detected before end of string.
4629 (tid_is_in_list): Error out if LIST is invalid.
4630
3844e605
PA
46312019-06-13 Pedro Alves <palves@redhat.com>
4632
4633 * completer.c (complete_line_internal_1): Rewind completion word
4634 point.
4635 (completion_tracker::advance_custom_word_point_by): Change
4636 parameter type to int.
4637 * completer.h (completion_tracker::advance_custom_word_point_by):
4638 Likewise.
4639
00b56dbe
PA
46402019-06-13 Pedro Alves <palves@redhat.com>
4641
4642 * completer.c (advance_to_completion_word): Handle delimiters.
4643
d106773e
PA
46442019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
4645
4646 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
4647
08f10e02
TT
46482019-06-11 Tom Tromey <tom@tromey.com>
4649
4650 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
4651 (xmalloc_failed): Move to alloc.c.
4652 * alloc.c: New file.
4653 * Makefile.in (COMMON_SFILES): Add alloc.c.
4654
1c7fe951
TT
46552019-06-11 Tom Tromey <tom@tromey.com>
4656
4657 * nat/linux-waitpid.c: Don't include server.h.
4658 (linux_debug): Remove.
4659 (my_waitpid): Update.
4660
89549d7f
TT
46612019-06-11 Tom Tromey <tromey@adacore.com>
4662
4663 * infcall.c (_initialize_infcall): Remove trailing newline from
4664 help.
4665 * user-regs.c (_initialize_user_regs): Remove trailing newline
4666 from help.
4667 * typeprint.c (_initialize_typeprint): Remove trailing newline
4668 from help.
4669 * reverse.c (_initialize_reverse): Remove trailing newlines from
4670 help.
4671 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
4672 from help.
4673 * language.c (add_set_language_command): Remove trailing newline
4674 from help.
4675 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
4676 help.
4677 * disasm.c (_initialize_disasm): Remove trailing newline from
4678 help.
4679 * top.c (init_main): Remove trailing newline from help.
4680 * interps.c (_initialize_interpreter): Remove trailing newline
4681 from help.
4682 * btrace.c (_initialize_btrace): Remove trailing newlines from
4683 help.
4684 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
4685 from help.
4686 * python/python.c (_initialize_python): Remove trailing newline
4687 from help.
4688 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
4689 help.
4690 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
4691 from help. Reformat some text.
4692 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
4693 from help.
4694 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
4695 newline from help.
4696
86108c13
TT
46972019-06-11 Tom Tromey <tromey@adacore.com>
4698
4699 * darwin-nat.c (darwin_decode_exception_message)
4700 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
4701
a7067863
AB
47022019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * valops.c (value_slice): Check for not allocated or not
4705 associated values.
4706
9ab08412
TV
47072019-06-10 Tom de Vries <tdevries@suse.de>
4708
4709 PR gdb/24618
4710 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
4711 sure an empty slot (defined by a 32-bit zero pair) is recognized as
4712 invalid.
4713
f19e22e9
TV
47142019-06-10 Tom de Vries <tdevries@suse.de>
4715
4716 PR gdb/24611
4717 * linespec.c (linespec_lexer_lex_string): Remove incorrect
4718 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
4719
e99f9db0
TV
47202019-06-10 Tom de Vries <tdevries@suse.de>
4721
4722 PR symtab/24545
4723 * symtab.c (struct demangled_name_entry): Add language field.
4724 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
4725 static minimal symbol". Set and use language field.
4726
9bf7038b
TT
47272019-06-10 Tom Tromey <tromey@adacore.com>
4728
4729 * ada-lang.c (_initialize_ada_language): Update help text.
4730
422186a9
TT
47312019-06-10 Tom Tromey <tromey@adacore.com>
4732
4733 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
4734 with a newline.
4735 * guile/guile.c (handle_boot_error): Don't end warning with a
4736 newline.
4737 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
4738 warning with a newline.
4739 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
4740 newline.
4741 (s12z_frame_cache): Likewise.
4742 * dwarf-index-cache.c (index_cache::store): Don't end warning with
4743 a newline.
4744 * solib-svr4.c (disable_probes_interface): Don't end warning with
4745 a newline.
4746 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
4747 newline.
4748 * python/python.c (do_finish_initialization): Don't end warning
4749 with a newline.
4750
25ce02ee
TT
47512019-06-10 Tom Tromey <tom@tromey.com>
4752
4753 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4754 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
4755 gdbpy_enter.
4756
caa429d8
TT
47572019-06-10 Tom Tromey <tromey@adacore.com>
4758
4759 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
4760 data.
4761 (elf_new_init): Don't call stabsread_new_init.
4762 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
4763 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
4764 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
4765
81873cc8
TV
47662019-06-10 Tom de Vries <tdevries@suse.de>
4767
4768 PR symtab/16264
4769 PR symtab/24517
4770 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
4771
4fa0265e
РИ
47722019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
4773
4774 * source.c (find_and_open_source): Also rewrite relative file
4775 names.
4776
1a3da2cd
AB
47772019-04-26 Amos Bird <amosbird@gmail.com>
4778
4779 * annotate.c (annotate_thread_exited): Add "thread-exited"
4780 annotation.
4781
3847a7bf
TT
47822019-06-06 Tom Tromey <tromey@adacore.com>
4783
4784 * maint.h (class scoped_command_stats): Use
4785 DISABLE_COPY_AND_ASSIGN.
4786 <print_time>: New method.
4787 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
4788 print_time.
4789 (scoped_command_stats::print_time): New method.
4790
312617a3
AB
47912019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4792
4793 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
4794 instructions of lengths 6 or 8 bytes.
4795
b02f78f9
PA
47962019-06-04 Pedro Alves <palves@redhat.com>
4797
4798 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
4799
4800 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
4801 * breakpoint.c (condition_completer): Likewise.
4802 * cli/cli-dump.c (scan_expression): Likewise.
4803 * common/filestuff.c (mkdir_recursive): Likewise.
4804 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
4805 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
4806 (gdb_abspath): Likewise.
4807 * compile/compile-cplus-types.c
4808 (compile_cplus_instance::decl_name): Likewise.
4809 * completer.c (complete_explicit_location):
4810 (signal_completer, reg_or_group_completer_1): Likewise.
4811 * cp-support.c (cp_remove_params_if_any): Likewise.
4812 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
4813 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
4814 * infcmd.c (strip_bg_char): Likewise.
4815 * linespec.c (copy_token_string): Likewise.
4816 * mi/mi-main.c (output_cores): Likewise.
4817 * psymtab.c (psymtab_search_name):
4818 * symfile.c (test_set_ext_lang_command): Likewise.
4819 * target.c (target_fileio_read_stralloc): Likewise.
4820 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
4821 * value.c (complete_internalvar): Likewise.
4822
e1f2e1a2
CB
48232019-06-04 Christian Biesinger <cbiesinger@google.com>
4824
4825 Add objfile property to gdb.Type.
d3238f7d
PA
4826 * NEWS: Mention Python API addition.
4827 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 4828
e664d728
PW
48292019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4830
4831 * NEWS: Mention the new set|show style [title|highlight].
4832 Mention changes to "show style", "help" and "apropos".
4833
66d8c862
PW
48342019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4835
4836 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
4837 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
4838 instead of print_help_for_command.
4839 (print_doc_of_command): New function.
4840 (help_list): Add 'apropos -v word' suggestion.
4841 (print_help_for_command): Style the command name using title style.
4842 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
4843 (_initialize_cli_cmds): Describe -v in apropos_command help.
4844
9303eb2f
PW
48452019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4846
4847 * cli/cli-style.h (cli_style_option): Add name in constructor,
4848 add m_name class member, add constructor with intensity,
4849 add name class function.
4850 (cli_style_option::add_setshow_commands): Remove name argument.
4851 (highlight_style, title_style): New styles.
4852 * cli/cli-style.c (do_show): New function that shows a style
4853 characteristic styling the style name with itself.
4854 (set_style_name): New function.
4855 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
4856 Update all callers according to the changes in cli/cli-style.h.
4857 * utils.h (fputs_highlighted): New function.
4858 * utils.c (fputs_highlighted): Likewise.
4859
e2c52041
PW
48602019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4861
4862 * NEWS: Mention new pipe command and new convenience variables.
4863
947d3946
PW
48642019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4865
4866 * cli/cli-cmds.c (pipe_command): New function.
4867 (_initialize_cli_cmds): Call add_com for pipe_command.
4868 Define | as an alias for pipe.
4869 (exit_status_set_internal_vars): New function.
4870 (shell_escape): Call exit_status_set_internal_vars.
4871 cli/cli-decode.c (find_command_name_length): Recognize | as
4872 a single character command.
4873
b8fd0918
PW
48742019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4875
4876 * gdbcmd.h (execute_command_to_ui_file): New declaration.
4877 top.c (execute_command_to_ui_file): New function, mostly a copy
4878 of execute_command_to_string.
4879 (execute_command_to_string): Implement by calling
4880 execute_command_to_ui_file.
4881
68bb5386
PW
48822019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4883
4884 * top.h (saved_command_line): Remove declaration.
4885 * top.c (previous_saved_command_line, previous_repeat_arguments):
4886 New variables.
4887 (saved_command_line): Make static, define together with other
4888 'repeat variables'.
4889 (dont_repeat): Clear repeat_arguments.
4890 (repeat_previous, get_saved_command_line, save_command_line):
4891 New functions.
4892 (gdb_init): Initialize saved_command_line
4893 and previous_saved_command_line.
4894 * main.c (captured_main_1): Remove saved_command_line initialization.
4895 * event-top.c (handle_line_of_input): Update to use
4896 the new 'repeat' related functions instead of direct access to
4897 saved_command_line.
4898 * command.h (repeat_previous, get_saved_command_line,
4899 save_command_line): New declarations.
4900 (dont_repeat): Add comment.
4901
bfcdb852
TT
49022019-05-30 Tom Tromey <tromey@adacore.com>
4903
4904 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
4905 Fix comment.
4906 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
4907
0ef209f2
JV
49082019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
4909
4910 PR cli/24587
4911 * completer.c (complete): Initialize variable word.
4912
955b06fa
SDJ
49132019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
4914
4915 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
4916 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
4917 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
4918 'body' is NULL to the outter 'if', protecting the '!is_define'
4919 situation as well.
4920
fa9c3fa0
TT
49212019-05-29 Tom Tromey <tromey@adacore.com>
4922
4923 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
4924 (dwarf_unknown): New function.
4925 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
4926 (dwarf_type_encoding_name): Use dwarf_unknown.
4927
4330d61d
TT
49282019-05-29 Tom Tromey <tromey@adacore.com>
4929
4930 PR c++/20020:
4931 * cp-valprint.c (cp_print_value_fields): Call
4932 cp_print_static_field inside "try".
4933
33a6bc35
TT
49342019-05-29 Tom Tromey <tromey@adacore.com>
4935
4936 * inflow.c (struct terminal_info): Add default operator=.
4937 * configure: Rebuild.
4938 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
4939 -Wdeprecated-copy-dtor, -Wredundant-move.
4940
000439d5
TT
49412019-05-29 Tom Tromey <tromey@adacore.com>
4942
4943 * NEWS: Add entry.
4944 * infcmd.c (print_return_value_1): Handle finish_print
4945 option.
4946 (show_print_finish): New function.
4947 (_initialize_infcmd): Add "set/show print finish" commands.
4948 * valprint.c (user_print_options): Initialize new member.
4949 * valprint.h (struct value_print_options) <finish_print>: New
4950 member.
4951
c0e70c62
TT
49522019-05-28 Tom Tromey <tromey@adacore.com>
4953
4954 * ada-lang.c (ada_remove_Xbn_suffix)
4955 (find_old_style_renaming_symbol)
4956 (parse_old_style_renaming): Remove.
4957 (ada_find_renaming_symbol): Don't call
4958 find_old_style_renaming_symbol.
4959 (ada_is_renaming_symbol): Rename from
4960 ada_find_renaming_symbol. Remove "block" parameter. Return
4961 bool. Now static.
4962 (ada_read_var_value): Update and simplify.
4963 * ada-exp.y (write_var_or_type): Remove old code.
4964
766f8836
AH
49652019-05-28 Alan Hayward <alan.hayward@arm.com>
4966
4967 * event-top.c: Remove include comment.
4968 * inflow.c (class scoped_ignore_sigttou): Move from here...
4969 * inflow.h (class scoped_ignore_sigttou): ...to here.
4970 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
4971 * top.c: Remove include comment.
4972
eb41253a
TT
49732019-05-27 Tom Tromey <tom@tromey.com>
4974
4975 * NEWS: Fix typo.
4976
4ca51187
TT
49772019-05-22 Tom Tromey <tromey@adacore.com>
4978
4979 * target.c (target_follow_exec): Constify parameter.
4980 * target-delegates.c: Rebuild.
4981 * remote.c (remote_target::follow_exec): Constify parameter.
4982 * infrun.c (follow_exec): Constify parameter.
4983 * target.h (struct target_ops) <follow_exec>: Constify parameter.
4984 (target_follow_exec): Likewise.
4985
8fca4da0
AH
49862019-05-22 Alan Hayward <alan.hayward@arm.com>
4987
4988 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
4989 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
4990
b7060614
AH
49912019-05-22 Alan Hayward <alan.hayward@arm.com>
4992
4993 * NEWS: Add debugredirect and testsuite sections.
4994
0a5954bd
SC
49952019-05-22 Simon Cook <simon.cook@embecosm.com>
4996
4997 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
4998 target descriptions using exclusively floating point register name
4999 aliases.
5000
dc42e902
AB
50012019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5002
5003 PR gdb/18644:
5004 * f-lang.c (build_fortran_types): Handle the case where
5005 gdbarch_floatformat_for_type returns a nullptr.
5006
fb7806c7
TV
50072019-05-21 Tom de Vries <tdevries@suse.de>
5008
5009 PR cli/24587
5010 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
5011
34d11c68
AB
50122019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 PR gdb/18644:
5015 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
5016 16-byte floats.
5017 * i386-tdep.c (i386_floatformat_for_type): Use
5018 floatformats_ia64_quad for the 16-byte floating point component
5019 within a fortran 32-byte complex number.
5020
122cf0f2
AB
50212019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
5024 delete default constructor.
5025 (find_partial_die): Update to return const struct.
5026 (partial_die_parent_scope): Move variable declaration into scope
5027 of its use and change its type to auto.
5028 (guess_partial_die_structure_name): Likewise.
5029 (partial_die_info::fixup): Likewise.
5030
33d0e35a
TT
50312019-05-17 Tom Tromey <tromey@adacore.com>
5032
5033 * source.c (find_and_open_source): Remove cast.
5034
a45575b0
TT
50352019-05-17 Tom Tromey <tromey@adacore.com>
5036
5037 * annotate.c (annotate_source): Make "filename" const.
5038 * annotate.h (annotate_source): Use const.
5039
81f47ac2
AH
50402019-05-17 Alan Hayward <alan.hayward@arm.com>
5041
5042 * disasm.c (set_disassembler_options): Send errors to stderr.
5043
ca1285d1
AH
50442019-05-17 Alan Hayward <alan.hayward@arm.com>
5045
5046 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
5047 (cli_interp_base::set_logging): Check debug_redirect.
5048 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
5049 * cli/cli-logging.c (debug_redirect): Add static variable.
5050 (pop_output_files): Add default param.
5051 (handle_redirections): Print debug setting.
5052 (show_logging_command): Likewise.
5053 (_initialize_cli_logging): Add debugredirect command.
5054 * interps.c (current_interp_set_logging): Add debug_redirect
5055 parameter.
5056 * interps.h (set_logging): Add debug_redirect parameter.
5057 (current_interp_set_logging): Likewise.
5058 * mi/mi-common.h: Likewise.
5059 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
5060
50612019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
5062 Tom Tromey <tromey@adacore.com>
5063
5064 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
5065 directly.
5066 * cli/cli-interp.h (make_logging_output): Remove declaration.
5067 * cli/cli-logging.c (make_logging_output): Remove function.
5068 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
5069 directly.
5070 * ui-file.c (tee_file::tee_file): Remove bools.
5071 (tee_file::~tee_file): Remove deletes.
5072 * ui-file.h (tee_file): Remove bools.
5073
26648588
JV
50742019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
5075
5076 * mi/mi-cmds.h (mi_cmd_complete): New function.
5077 * mi/mi-main.c (mi_cmd_complete): Likewise.
5078 * mi/mi-cmds.c: Define new MI command -complete.
5079 * NEWS: Mention new -complete command.
5080
6e035501
JV
50812019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
5082
5083 * completer.h (complete): New function.
5084 * completer.c (complete): Likewise.
5085 * cli/cli-cmds.c: (complete_command): Update to use new complete()
5086 function defined in completer.h.
5087
7d0e2ece
JV
50882019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
5089
e79be6e5 5090 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 5091
fb816e8b
TV
50922019-05-17 Tom de Vries <tdevries@suse.de>
5093
5094 PR gdb/24094
5095 * dwarf2read.c (struct cu_partial_die_info): New struct.
5096 (find_partial_die): Return cu_partial_die_info.
5097 (partial_die_parent_scope, guess_partial_die_structure_name)
5098 (partial_die_info::fixup): Handle new return type of find_partial_die.
5099
677052f2
SDJ
51002019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5101
5102 * stap-probe.c (stap_parse_register_operand): Make "regname" an
5103 "std::string", simplifying the algorithm.
5104
f3da9116
SDJ
51052019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5106
5107 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
5108 (stap_static_probe_ops::get_probes): Likewise.
5109
f1bb75ab
SDJ
51102019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5111
5112 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
5113 '-')" and "else if".
5114 (stap_parse_single_operand): Join checks for
5115 "gdbarch_stap_parse_special_token_p" and
5116 "gdbarch_stap_parse_special_token" in the same "if" statement.
5117 Invert check when verifying for operation on register
5118 displacement.
5119
3ca58cde
SDJ
51202019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5121
5122 * stap-probe.c (stap_get_opcode): Update comment.
5123 (stap_get_expected_argument_type): Likewise.
5124 (handle_stap_probe): Likewise.
5125
af2d9bee
SDJ
51262019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5127
5128 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
5129 return type to 'bool'. Adjust comment. Use 'bool' when
5130 appropriate.
5131 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5132 * stap-probe.c (stap_parse_argument_1): Likewise.
5133 (stap_is_operator): Likewise.
5134 (stap_is_generic_prefix): Likewise.
5135 (stap_is_register_prefix): Likewise.
5136 (stap_is_register_indirection_prefix): Likewise.
5137 (stap_is_integer_prefix): Likewise.
5138 (stap_generic_check_suffix): Likewise.
5139 (stap_check_integer_suffix): Likewise.
5140 (stap_check_register_suffix): Likewise.
5141 (stap_check_register_indirection_suffix): Likewise.
5142 (stap_parse_register_operand): Likewise.
5143 (stap_parse_single_operand): Likewise.
5144 (stap_parse_argument_1): Likewise.
5145 (stap_probe::get_argument_count): Likewise.
5146 (stap_is_operator): Likewise.
5147
61c9c421
TT
51482019-05-16 Tom Tromey <tromey@adacore.com>
5149
5150 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
5151 keyword to foreach.
5152
9ddc1af1
SM
51532019-05-15 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * linux-thread-db.c (try_thread_db_load_1): Change return type
5156 to bool.
5157 (try_thread_db_load): Likewise.
5158 (try_thread_db_load_from_pdir_1): Likewise.
5159 (try_thread_db_load_from_pdir): Likewise.
5160 (try_thread_db_load_from_sdir): Likewise.
5161 (try_thread_db_load_from_dir): Likewise.
5162 (thread_db_load_search): Likewise.
5163 (has_libpthread): Likewise.
5164 (thread_db_load): Likewise.
5165
7bede828
SDJ
51662019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
5167
5168 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
5169 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
5170 NULL, and complain/return if that's the case.
5171
c5358db4
JD
51722019-05-15 John Darrington <john@darrington.wattle.id.au>
5173
5174 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
5175 (advance, posn, abstract_read_memory): New functions.
5176 [struct mem_read_abstraction]: New struct.
5177 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
5178
c408a94f
TT
51792019-05-14 Tom Tromey <tromey@adacore.com>
5180
5181 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
5182 value is not lval_memory.
5183
e7bd7fba
TT
51842019-05-14 Tom Tromey <tromey@adacore.com>
5185
5186 * solib.c (info_sharedlibrary_command): Style the file name.
5187
a6d0f249
AH
51882019-05-14 Alan Hayward <alan.hayward@arm.com>
5189
5190 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
5191 (aarch64_vnv_type): Likewise.
5192 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
5193 * common/tdesc.c: Likewise.
5194 * common/tdesc.h (enum tdesc_type_kind): Likewise.
5195 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
5196 * features/aarch64-fpu.xml: Add ieee half view.
5197 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
5198 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
5199 * gdbtypes.h (struct builtin_type): Likewise.
5200 (struct objfile_type): Likewise.
5201
66b8bb74
SM
52022019-05-12 Paul Naert <paul.naert@polymtl.ca>
5203
5204 * language.c (language_sniff_from_mangled_name): Fix "langauge"
5205 typo.
5206 * location.h (string_to_event_location): Likewise.
5207
21c219fd
JB
52082019-05-11 Joel Brobecker <brobecker@adacore.com>
5209
5210 GDB 8.3 released.
5211
13674803
SM
52122019-05-10 Simon Marchi <simon.marchi@efficios.com>
5213
5214 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
5215 New variable declaration.
5216 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
5217 New variable.
5218 (print_one_breakpoint): Use ui_out::test_flags and new global
5219 variable to compute use_fixed_output.
5220 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
5221 Remove.
5222 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
5223 (mi_multi_location_breakpoint_output_fixed): Remove.
5224 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
5225 new variable.
5226 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
5227 fix_multi_location_breakpoint_output flag if version >= 3.
5228 * ui-out.h (enum ui_out_flag)
5229 <fix_multi_location_breakpoint_output>: New enumerator.
5230
a9eac7f9
SM
52312019-05-10 Simon Marchi <simon.marchi@efficios.com>
5232
5233 * contrib/cc-with-tweaks.sh: Validate dwz's work.
5234
71bed2db
TT
52352019-05-10 Tom Tromey <tromey@adacore.com>
5236
5237 * ada-lang.c (catch_ada_completer): New function.
5238 (_initialize_ada_language): Use it.
5239
24c54127
TT
52402019-05-10 Tom Tromey <tromey@adacore.com>
5241
5242 * thread.c (print_thread_info): Make "requested_threads" const.
5243 * gdbthread.h (print_thread_info): Make "requested_threads"
5244 const.
5245 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
5246 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
5247
7a102139
TT
52482019-05-08 Tom Tromey <tom@tromey.com>
5249
5250 * gdbtypes.c (objfile_type_data): Change type.
5251 (objfile_type, _initialize_gdbtypes): Update.
5252
924d79e2
TT
52532019-05-08 Tom Tromey <tom@tromey.com>
5254
5255 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
5256 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
5257 (_initialize_dwarf2_frame): Update.
5258
4c58e337
TT
52592019-05-08 Tom Tromey <tom@tromey.com>
5260
5261 * objc-lang.c (objc_objfile_data): Change type.
5262 (find_methods): Update.
5263 (_initialize_objc_lang): Remove.
5264
d772d2ab
TT
52652019-05-08 Tom Tromey <tom@tromey.com>
5266
5267 * stabsread.c (rs6000_builtin_type_data): Change type.
5268 (rs6000_builtin_type, _initialize_stabsread): Update.
5269
d11d83f4
TT
52702019-05-08 Tom Tromey <tom@tromey.com>
5271
5272 * mips-tdep.c (mips_pdr_data): Remove.
5273 (_initialize_mips_tdep): Update.
5274
9a73f0ad
TT
52752019-05-08 Tom Tromey <tom@tromey.com>
5276
5277 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
5278 (hppa_init_objfile_priv_data, read_unwind_info)
5279 (find_unwind_entry, _initialize_hppa_tdep): Update.
5280
8127a2fa
TT
52812019-05-08 Tom Tromey <tom@tromey.com>
5282
5283 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
5284 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
5285 on obstack.
5286 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
5287
91d3055d
TT
52882019-05-08 Tom Tromey <tom@tromey.com>
5289
5290 * mdebugread.c (basic_type_data): Change type.
5291 (basic_type, _initialize_mdebugread): Update.
5292
31930bd3
TT
52932019-05-08 Tom Tromey <tom@tromey.com>
5294
5295 * common/gdb_unique_ptr.h (struct noop_deleter): New.
5296
bdb3ed9e
TT
52972019-05-08 Tom Tromey <tom@tromey.com>
5298
5299 * nto-tdep.c (nto_inferior_data_reg): Change type.
5300 (nto_inferior_data): Update.
5301 (nto_inferior_data_cleanup, nto_new_inferior_data)
5302 (_initialize_nto_tdep): Remove.
5303 * nto-tdep.h (struct nto_inferior_data): Add initializers.
5304
f37b313d
TT
53052019-05-08 Tom Tromey <tom@tromey.com>
5306
5307 * ada-lang.c (struct ada_inferior_data): Add initializers.
5308 (ada_inferior_data): Change type.
5309 (ada_inferior_data_cleanup): Remove.
5310 (get_ada_inferior_data, ada_inferior_exit)
5311 (struct ada_pspace_data): Add initializers, destructor.
5312 (ada_pspace_data_handle): Change type.
5313 (get_ada_pspace_data): Update.
5314 (ada_pspace_data_cleanup): Remove.
5315
24699405
TT
53162019-05-08 Tom Tromey <tom@tromey.com>
5317
5318 * coffread.c (struct coff_symfile_info): Add initializers.
5319 (coff_objfile_data_key): Move lower. Change type.
5320 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
5321 Update.
5322 (coff_free_info): Remove.
5323
d4e05d2f
TT
53242019-05-08 Tom Tromey <tom@tromey.com>
5325
5326 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
5327 (fbsd_pspace_data_handle): Move lower. Change type.
5328 (get_fbsd_pspace_data): Update.
5329 (fbsd_pspace_data_cleanup): Remove.
5330 (_initialize_fbsd_tdep): Update.
5331
14ef6690
TT
53322019-05-08 Tom Tromey <tom@tromey.com>
5333
5334 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
5335 (get_ada_tasks_pspace_data): Update.
5336 (ada_tasks_pspace_data_cleanup): Remove.
5337 (_initialize_tasks): Update.
5338 (ada_tasks_inferior_data_handle): Change type.
5339 (get_ada_tasks_inferior_data): Update.
5340 (ada_tasks_inferior_data_cleanup): Remove.
5341 (struct ada_tasks_pspace_data): Add initializers.
5342
814cf43a
TT
53432019-05-08 Tom Tromey <tom@tromey.com>
5344
5345 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
5346 * symfile-debug.c (debug_sym_get_probes): Change type.
5347 * stap-probe.c (handle_stap_probe):
5348 (stap_static_probe_ops::get_probes): Change type.
5349 * probe.h (class static_probe_ops) <get_probes>: Change type.
5350 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
5351 (parse_probes_in_pspace): Update.
5352 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
5353 Update.
5354 (any_static_probe_ops::get_probes): Change type.
5355 * elfread.c (elfread_data): New typedef.
5356 (probe_key): Change type.
5357 (elf_get_probes): Likewise. Update.
5358 (probe_key_free): Remove.
5359 (_initialize_elfread): Update.
5360 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
5361 Change type.
5362 (dtrace_process_dof_probe, dtrace_process_dof)
5363 (dtrace_static_probe_ops::get_probe): Change type.
5364
02dc647e
TT
53652019-05-08 Tom Tromey <tom@tromey.com>
5366
5367 * xcoffread.c (struct xcoff_symfile_info): Rename from
5368 coff_symfile_info. Add initializers.
5369 (xcoff_objfile_data_key): Move lower. Change type.
5370 (XCOFF_DATA): Rewrite.
5371 (xcoff_free_info): Remove.
5372 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
5373 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
5374 (xcoff_initial_scan): Update.
5375
09232438
TT
53762019-05-08 Tom Tromey <tom@tromey.com>
5377
5378 * solib-svr4.c (struct svr4_info): Add initializers and
5379 destructor.
5380 <probes_table>: Now an htab_up.
5381 (solib_svr4_pspace_data): Change type.
5382 (free_probes_table): Simplify.
5383 (~svr4_info): Rename from svr4_pspace_data_cleanup.
5384 (get_svr4_info, probes_table_htab_remove_objfile_probes)
5385 (probes_table_remove_objfile_probes, register_solib_event_probe)
5386 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
5387 (_initialize_svr4_solib): Update.
5388
7b4a314f
TT
53892019-05-08 Tom Tromey <tom@tromey.com>
5390
5391 * remote.c (remote_pspace_data): Change type.
5392 (remote_pspace_data_cleanup): Remove.
5393 (get_remote_exec_file, set_pspace_remote_exec_file)
5394 (_initialize_remote): Update.
5395
51d3063a
TT
53962019-05-08 Tom Tromey <tom@tromey.com>
5397
5398 * breakpoint.c (breakpoint_objfile_key): Change type.
5399 (get_breakpoint_objfile_data): Update.
5400 (free_breakpoint_objfile_data): Remove.
5401 (_initialize_breakpoint): Update.
5402
89fb8848
TT
54032019-05-08 Tom Tromey <tom@tromey.com>
5404
5405 * linux-tdep.c (struct linux_info): Add initializers.
5406 (linux_inferior_data): Move. Change type.
5407 (invalidate_linux_cache_inf): Update.
5408 (linux_inferior_data_cleanup): Remove.
5409 (get_linux_inferior_data, _initialize_linux_tdep): Update.
5410
e9b89e2d
TT
54112019-05-08 Tom Tromey <tom@tromey.com>
5412
5413 * auxv.c (auxv_inferior_data): Move. Change type.
5414 (auxv_inferior_data_cleanup): Remove.
5415 (invalidate_auxv_cache_inf): Rewrite.
5416 (get_auxv_inferior_data, _initialize_auxv): Update.
5417
8c42777c
TT
54182019-05-08 Tom Tromey <tom@tromey.com>
5419
5420 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
5421 (symfile_debug_objfile_data_key): Change type.
5422 (symfile_debug_installed, debug_qf_has_symbols)
5423 (debug_qf_find_last_source_symtab)
5424 (debug_qf_forget_cached_source_info)
5425 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
5426 (debug_qf_print_stats, debug_qf_dump)
5427 (debug_qf_expand_symtabs_for_function)
5428 (debug_qf_expand_all_symtabs)
5429 (debug_qf_expand_symtabs_with_fullname)
5430 (debug_qf_map_matching_symbols)
5431 (debug_qf_expand_symtabs_matching)
5432 (debug_qf_find_pc_sect_compunit_symtab)
5433 (debug_qf_map_symbol_filenames)
5434 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
5435 (debug_sym_new_init, debug_sym_init, debug_sym_read)
5436 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
5437 (debug_sym_read_linetable, debug_sym_relocate): Update.
5438 (symfile_debug_free_objfile): Remove.
5439 (install_symfile_debug_logging, _initialize_symfile_debug):
5440 Update.
5441
5bfd760d
TT
54422019-05-08 Tom Tromey <tom@tromey.com>
5443
5444 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
5445 allocate_on_obstack.
5446 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
5447 (get_dwarf2_per_objfile): Update.
5448 (set_dwarf2_per_objfile): Remove.
5449 (dwarf2_has_info, dwarf2_get_section_info): Update.
5450 (dwarf2_free_objfile): Remove.
5451 (_initialize_dwarf2_read): Update.
5452
e85e19b4
TT
54532019-05-08 Tom Tromey <tom@tromey.com>
5454
5455 * auto-load.c (struct auto_load_pspace_info): Add destructor and
5456 initializers.
5457 <unsupported_script_warning_printed,
5458 script_not_found_warning_printed>: Now bool.
5459 (auto_load_pspace_data): Change type.
5460 (~auto_load_pspace_info): Rename from
5461 auto_load_pspace_data_cleanup.
5462 (get_auto_load_pspace_data, init_loaded_scripts_info)
5463 (clear_section_scripts, maybe_print_unsupported_script_warning)
5464 (maybe_print_script_not_found_warning, _initialize_auto_load):
5465 Update.
5466
f6aa7436
TT
54672019-05-08 Tom Tromey <tom@tromey.com>
5468
5469 * objfiles.c (objfile_pspace_info): Add destructor and
5470 initializers.
5471 (objfiles_pspace_data): Change type.
5472 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
5473 (get_objfile_pspace_data): Update.
5474 (objfiles_bfd_data): Change type.
5475 (get_objfile_bfd_data): Update.
5476 (objfile_bfd_data_free, _initialize_objfiles): Remove.
5477
6ae614f6
TT
54782019-05-08 Tom Tromey <tom@tromey.com>
5479
5480 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
5481 Change type.
5482 (get_catch_syscall_inferior_data): Update.
5483 (catch_syscall_inferior_data_cleanup): Remove.
5484 (_initialize_break_catch_syscall): Update.
5485
6509b8eb
TT
54862019-05-08 Tom Tromey <tom@tromey.com>
5487
5488 * inflow.c (struct terminal_info): Add destructor and
5489 initializers.
5490 (inflow_inferior_data): Change type.
5491 (~terminal_info): Rename from inflow_inferior_data_cleanup.
5492 (get_inflow_inferior_data, inflow_inferior_exit)
5493 (swap_terminal_info, _initialize_inflow): Update.
5494
35632941
TT
54952019-05-08 Tom Tromey <tom@tromey.com>
5496
5497 * target-dcache.c (target_dcache_cleanup): Remove.
5498 (target_dcache_aspace_key): Change type.
5499 (target_dcache_init_p, target_dcache_invalidate)
5500 (target_dcache_get, target_dcache_get_or_init)
5501 (_initialize_target_dcache): Update.
5502 * dcache.h (struct dcache_deleter): New.
5503
3017b94d
TT
55042019-05-08 Tom Tromey <tom@tromey.com>
5505
5506 * symtab.c (struct symbol_cache): Add destructor and
5507 initializers.
5508 (symbol_cache_key): Move. Change type.
5509 (make_symbol_cache, free_symbol_cache): Remove.
5510 (get_symbol_cache): Update.
5511 (symbol_cache_cleanup): Remove.
5512 (ALL_PSPACES, symbol_cache_flush)
5513 (maintenance_print_symbol_cache)
5514 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
5515 Update.
5516
a32ad8c5
TT
55172019-05-08 Tom Tromey <tom@tromey.com>
5518
5519 * symtab.c (struct main_info): Add destructor and initializers.
5520 (main_progspace_key): Move. Change type.
5521 (get_main_info): Update.
5522 (main_info_cleanup): Remove.
5523 (_initialize_symtab): Update.
5524
5f6e90a0
TT
55252019-05-08 Tom Tromey <tom@tromey.com>
5526
5527 * registry.h (DECLARE_REGISTRY): Define the _key class.
5528
1bd0c6e4
AB
55292019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5530
5531 * NEWS: Merge two 'New commands' sections.
5532
2228ef77
XR
55332019-05-08 Joel Brobecker <brobecker@adacore.com>
5534
5535 * ada-valprint.c (ada_val_print_gnat_array): Remove language
5536 parameter and use Ada language definition instead.
5537 (ada_val_print_ptr): Remove unused language parameter.
5538 (ada_val_print_num): Remove language parameter and use Ada language
5539 definition instead.
5540 (ada_val_print_enum, ada_val_print_flt): Remove unused language
5541 parameter.
5542 (ada_val_print_struct_union, ada_val_print_ref): Remove language
5543 parameter and use Ada language definition instead.
5544 (ada_val_print_1): Update all ada_val_print_xxx calls.
5545 Remove language parameter.
5546 (ada_val_print): Update ada_val_print_1 call.
5547
60fcc1c3
TT
55482019-05-08 Tom Tromey <tromey@adacore.com>
5549
5550 * remote.c (remote_hw_watchpoint_limit)
5551 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
5552 Now static.
5553
ed2b7c17
TT
55542019-05-08 Tom Tromey <tromey@adacore.com>
5555
5556 * maint.c (_initialize_maint_cmds): Move initialization code to
5557 remote.c.
5558 (watchdog, show_watchdog): Move to remote.c.
5559 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
5560 "watchdog" static.
5561 (_initialize_remote): Move initialization code from maint.c.
5562 * defs.h (watchdog): Don't declare.
5563
b0be6c91
TT
55642019-05-08 Tom Tromey <tromey@adacore.com>
5565
5566 * tui/tui-interp.c: Include main.h.
5567 * interps.c: Include main.h.
5568 * main.h (interpreter_p): Declare.
5569 * defs.h (interpreter_p): Don't declare.
5570
587ee17b
TT
55712019-05-08 Tom Tromey <tromey@adacore.com>
5572
5573 * dwarf2loc.c: Include dwarf2read.h.
5574 * defs.h (read_unsigned_leb128): Don't declare.
5575 * dwarf2read.h (read_unsigned_leb128): Declare.
5576
ca1df239
TT
55772019-05-08 Tom Tromey <tromey@adacore.com>
5578
5579 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
5580 method.
5581
99f20f08
TT
55822019-05-08 Tom Tromey <tromey@adacore.com>
5583
5584 * utils.c (fputs_maybe_filtered): Reset style after paging, even
5585 when no wrap column is set.
5586
80e55b13
TT
55872019-05-08 Tom Tromey <tromey@adacore.com>
5588
5589 * c-lang.c (c_get_string): Handle non-C-style arrays.
5590
9d3421af
TT
55912019-05-08 Tom Tromey <tromey@adacore.com>
5592
5593 * typeprint.c (print_offset_data::update): Print the bit offset,
5594 not the number of bits remaining.
5595
844333e2
TT
55962019-05-08 Tom Tromey <tromey@adacore.com>
5597
5598 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
5599 padding at end of comment.
5600
988915ee
TT
56012019-05-08 Tom Tromey <tromey@adacore.com>
5602
5603 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
5604 Compare main types.
5605
26bfd823
TT
56062019-05-06 Tom Tromey <tom@tromey.com>
5607
5608 * common/scoped_mmap.c: Include common-defs.h.
5609 * common/scoped_mmap.h: Don't include config.h.
5610
89055eaa
TT
56112019-05-04 Tom Tromey <tom@tromey.com>
5612
5613 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
5614 (struct aarch64_call_info): Add initializers.
5615 <si>: Now a std::vector.
5616 (pass_on_stack, aarch64_push_dummy_call): Update.
5617
5da01df5
TT
56182019-05-04 Simon Marchi <simon.marchi@efficios.com>
5619 Tom Tromey <tom@tromey.com>
5620
5621 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
5622 (ppc_threads): Now a std::vector. Now static.
5623 (hwdebug_find_thread_points_by_tid)
5624 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
5625 Update.
5626
fbdf05a1
TT
56272019-05-04 Tom Tromey <tom@tromey.com>
5628
5629 * arc-tdep.c (arc_tdesc_init): Return bool.
5630
06d16ec9
TT
56312019-05-04 Tom Tromey <tom@tromey.com>
5632
5633 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
5634 Use gdb_assert_not_reached.
5635
9c056022
TT
56362019-05-04 Tom Tromey <tom@tromey.com>
5637
5638 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
5639 "false".
5640
fa9c2a59
TT
56412019-05-04 Tom Tromey <tom@tromey.com>
5642
5643 * arc-tdep.c (arc_tdesc_init): Use bool.
5644
e2eb806a
TT
56452019-05-04 Tom Tromey <tom@tromey.com>
5646
5647 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
5648
6fe87677
TT
56492019-05-04 Tom Tromey <tom@tromey.com>
5650
5651 * cli/cli-cmds.c (valid_command_p): Return bool.
5652
7f008c9e
TT
56532019-05-04 Tom Tromey <tom@tromey.com>
5654
5655 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
5656 * command.h (valid_user_defined_cmd_name_p): Channge return type.
5657
b6484282
RT
56582019-05-04 Raul Tambre <raul@tambre.ee>
5659
5660 * python/lib/gdb/prompt.py (_ExtendedPrompt)
5661 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
5662 operator for comparison.
5663
af97b416
TT
56642019-05-04 Tom Tromey <tom@tromey.com>
5665
5666 * psymtab.c (psymbol_name_matches, match_partial_symbol)
5667 (lookup_partial_symbol, print_partial_symbols)
5668 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
5669 (psymbol_compare): Update.
5670 (add_psymbol_to_bcache): Clear the entire psymbol.
5671 (maintenance_check_psymtabs): Update.
5672 * psympriv.h (struct partial_symbol): Don't derive from
5673 general_symbol_info.
5674 <obj_section, unrelocated_address, address,
5675 set_unrelocated_address>: Update.
5676 <ginfo>: New member.
5677 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5678 (debug_names::write_psymbols): Update.
5679
9d6d4be8
TV
56802019-05-04 Tom de Vries <tdevries@suse.de>
5681
5682 * contrib/cc-with-tweaks.sh: Support -n arg.
5683
66452beb
PW
56842019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5685
5686 * corelow.c (core_target::detach): Ensure frame cache and
5687 register caches are cleared.
5688 inferior.c (exit_inferior_1): Likewise.
5689
bde09ab7
TT
56902019-05-03 Sandra Loosemore <sandra@codesourcery.com>
5691 Tom Tromey <tom@tromey.com>
5692
5693 * dictionary.c (collate_pending_symbols_by_language): Remove
5694 "struct" from foreach.
5695 * symtab.c (lookup_global_symbol_from_objfile)
5696 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
5697 foreach.
5698 * ser-tcp.c (net_open): Remove "struct" from foreach.
5699 * objfiles.c (objfile_relocate, objfile_rebase)
5700 (objfile_has_symbols): Remove "struct" from foreach.
5701 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
5702 from foreach.
5703 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
5704 foreach.
5705 * darwin-nat.c (thread_info_from_private_thread_info): Remove
5706 "struct" from foreach.
5707 * ada-lang.c (create_excep_cond_exprs)
5708 (ada_exception_catchpoint_cond_string): Remove "struct" from
5709 foreach.
5710
222a8d25
TT
57112019-05-03 Tom Tromey <tromey@adacore.com>
5712
5713 * ada-exp.y (convert_char_literal): Check suffix of each
5714 enumerator.
5715
fcd60b84
DP
57162019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
5717
5718 PR ada/21406:
5719 * ada-exp.y (yywrap): Don't define.
5720 * ada-lex.l (%option): Add noyywrap
5721 (yywrap): Remove.
5722
5f2459c2
EZ
57232019-05-03 Eli Zaretskii <eliz@gnu.org>
5724
353ea2d1
EZ
5725 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
5726 _WIN32_WINNT to the XP level, unless already defined to a higher
5727 level.
5728
5729 * unittests/parse-connection-spec-selftests.c:
5730 * ser-tcp.c:
5731 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
5732 override.
5733
5f2459c2
EZ
5734 * symfile.c (find_separate_debug_file): Remove colon from the
5735 drive spec of DOS/Windows file names of the target, so that the
5736 file name produced from DEBUGDIR and the target's directory will
5737 be valid on DOS/Windows systems.
5738
80062eb9
AB
57392019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
5740
5741 * rust-lang.c (val_print_struct): Handle printing structures
5742 containing strings.
5743
b8c05e85
TT
57442019-05-02 Tom Tromey <tromey@adacore.com>
5745
5746 * valarith.c (_initialize_valarith): Remove.
5747
4504bbde
TT
57482019-05-01 Tom Tromey <tromey@adacore.com>
5749
5750 * ada-lang.c (ada_value_primitive_field): Treat more fields as
5751 bitfields.
5752
d48e62f4
TT
57532019-05-01 Tom Tromey <tromey@adacore.com>
5754
5755 * ada-lang.c (ada_value_assign): Correctly compute starting offset
5756 for big-endian copies.
5757
15f18d14
AT
57582019-04-30 Ali Tamur <tamur@google.com>
5759 * gdb/dwarf2read.c (read_3_bytes): New declaration.
5760 (read_attribute_value): Added DW_FORM_strx1-4 cases.
5761 (read_3_bytes): New function.
5762
ab4ee614
JB
57632019-04-30 Joel Brobecker <brobecker@adacore.com>
5764
5765 * windows-nat.c (main_thread_id): Delete.
5766 (handle_output_debug_string): Replace main_thread_id by
5767 current_event.dwThreadId.
5768 (fake_create_process): Likewise.
5769 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
5770 Do not set main_thread_id.
5771 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
5772 current_event.dwThreadId.
5773 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
5774
8ed5b76e
JB
57752019-04-30 Joel Brobecker <brobecker@adacore.com>
5776
5777 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
5778 Use current_event.dwThreadId instead of main_thread_id.
5779
2ff0a947
TT
57802019-04-30 Tom Tromey <tromey@adacore.com>
5781
5782 * ada-lang.c (ada_lookup_simple_minsyms): New function.
5783 (create_excep_cond_exprs): Iterate over program spaces.
5784 (ada_exception_catchpoint_cond_string): Examine all minimal
5785 symbols for exception types.
5786
a776957c
TT
57872019-04-30 Tom Tromey <tromey@adacore.com>
5788
5789 PR c++/24470:
5790 * dwarf2read.c (process_structure_scope): Handle case where type
5791 has template parameters but no symbol was created.
5792
bc68014d
AB
57932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5794 Chris January <chris.january@arm.com>
5795
5796 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
5797 qualifier.
5798 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
5799
f1fdc960
AB
58002019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5801
5802 * f-typeprint.c (f_print_type): Update rules for printing
5803 whitespace.
5804 (f_type_print_varspec_suffix): Likewise.
5805
bf7a4de1
AB
58062019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5807 Chris January <chris.january@arm.com>
5808
5809 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5810 function arguments.
5811
bbe75b9d
AB
58122019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5813
5814 * f-lang.c (build_fortran_types): Change name of void type to
5815 lower case.
5816 * f-typeprint.c (f_type_print_base): Print the name of the void
5817 type, rather than a fixed string.
5818 * f-valprint.c (f_decorations): Use lower case void string.
5819
1db455a7
AB
58202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5821 Chris January <chris.january@arm.com>
5822
5823 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
5824 types for Fortran.
5825
b6d03bb2
AB
58262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5827 Chris January <chris.january@arm.com>
5828 David Lecomber <david.lecomber@arm.com>
5829
5830 * f-exp.y (BINOP_INTRINSIC): New token.
5831 (exp): New parser rule handling BINOP_INTRINSIC.
5832 (f77_keywords): Add new builtin procedures.
5833 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
5834 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5835 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
5836 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5837 (print_unop_subexp_f): New function.
5838 (print_binop_subexp_f): New function.
5839 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5840 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
5841 (dump_subexp_body_f): Likewise.
5842 (operator_check_f): Likewise.
5843 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
5844 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
5845
83228e93
AB
58462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5847
5848 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
5849 UNOP_KIND.
5850 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
5851 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
5852 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
5853 (operator_length_f): New fuction.
5854 (print_subexp_f): New function.
5855 (op_name_f): New function.
5856 (dump_subexp_body_f): New function.
5857 (operator_check_f): New function.
5858 (exp_descriptor_f): Replace standard expression handling functions
5859 with new functions.
5860 * gdb/fortran-operator.def: New file.
5861 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
5862 * gdb/std-operator.def: Remove UNOP_KIND.
5863
6fdcd7cc
AB
58642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
5865
5866 * std-operator.def: Remove unbalanced, stray double quote
5867 character.
5868
2e62ab40
AB
58692019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5870 Chris January <chris.january@arm.com>
5871 Daniel Everett <daniel.everett@arm.com>
5872 Nick Forrington <nick.forrington@arm.com>
5873 Richard Bunt <richard.bunt@arm.com>
5874
5875 * cp-valprint.c (cp_print_value_fields): Allow an additional level
5876 of depth when printing anonymous structs or unions.
5877 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5878 Don't print either the top-level value, or the children if the
5879 max-depth is exceeded.
5880 (ppscm_print_children): When printing the key of a map, allow one
5881 extra level of depth.
5882 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
5883 print either the top-level value, or the children if the max-depth
5884 is exceeded.
5885 (print_children): When printing the key of a map, allow one extra
5886 level of depth.
5887 * python/py-value.c (valpy_format_string): Add max_depth keyword.
5888 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
5889 (user_print_options): Initialise max_depth field.
5890 (val_print_scalar_or_string_type_p): New function.
5891 (val_print): Check to see if the max depth has been reached.
5892 (val_print_check_max_depth): Define new function.
5893 (show_print_max_depth): New function.
5894 (_initialize_valprint): Add 'print max-depth' option.
5895 * valprint.h (struct value_print_options) <max_depth>: New field.
5896 (val_print_check_max_depth): Declare new function.
5897 * NEWS: Document new feature.
5898
4be290b2
AB
58992019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5900
5901 * ada-lang.c (ada_language_defn): Initialise new field.
5902 * c-lang.c (c_is_string_type_p): New function.
5903 (c_language_defn): Initialise new field.
5904 (cplus_language_defn): Initialise new field.
5905 (asm_language_defn): Initialise new field.
5906 (minimal_language_defn): Initialise new field.
5907 * c-lang.h (c_is_string_type_p): Declare new function.
5908 * d-lang.c (d_language_defn): Initialise new field.
5909 * f-lang.c (f_is_string_type_p): New function.
5910 (f_language_defn): Initialise new field.
5911 * go-lang.c (go_is_string_type_p): New function.
5912 (go_language_defn): Initialise new field.
5913 * language.c (default_is_string_type_p): New function.
5914 (unknown_language_defn): Initialise new field.
5915 (auto_language_defn): Initialise new field.
5916 * language.h (struct language_defn) <la_is_string_type_p>: New
5917 member variable.
5918 (default_is_string_type_p): Declare new function.
5919 * m2-lang.c (m2_language_defn): Initialise new field.
5920 * objc-lang.c (objc_language_defn): Initialise new field.
5921 * opencl-lang.c (opencl_language_defn): Initialise new field.
5922 * p-lang.c (pascal_is_string_type_p): New function.
5923 (pascal_language_defn): Initialise new field.
5924 * rust-lang.c (rust_is_string_type_p): New function.
5925 (rust_language_defn): Initialise new field.
5926
721b08c6
AB
59272019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5928
5929 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
5930 New field.
5931 * ada-lang.c (ada_language_defn): Initialise new field.
5932 * c-lang.c (c_language_defn): Likewise.
5933 (cplus_language_defn): Likewise.
5934 (asm_language_defn): Likewise.
5935 (minimal_language_defn): Likewise.
5936 * d-lang.c (d_language_defn): Likewise.
5937 * f-lang.c (f_language_defn): Likewise.
5938 * go-lang.c (go_language_defn): Likewise.
5939 * language.c (unknown_language_defn): Likewise.
5940 (auto_language_defn): Likewise.
5941 * m2-lang.c (m2_language_defn): Likewise.
5942 * objc-lang.c (objc_language_defn): Likewise.
5943 * opencl-lang.c (opencl_language_defn): Likewise.
5944 * p-lang.c (pascal_language_defn): Likewise.
5945 * rust-lang.c (rust_language_defn): Likewise.
5946
fc913e53
AB
59472019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5948
5949 * ada-lang.c (ada_is_character_type): Change return type to bool.
5950 (ada_is_string_type): Likewise.
5951 * ada-lang.h (ada_is_character_type): Update declaration
5952 (ada_is_string_type): Likewise.
5953
fa731fa0
PW
59542019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5955
5956 Support style in 'frame|thread apply'
5957
5958 * gdbcmd.h (execute_command_to_string): New term_out parameter.
5959 * record.c (record_start, record_stop): Update callers of
5960 execute_command_to_string with false.
5961 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
5962 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
5963 methods.
5964 (class string_file): New constructor with term_out parameter.
5965 Override methods term_out and can_emit_style_escape. New member
5966 term_out.
5967 (class stdio_file): Override can_emit_style_escape.
5968 (class tee_file): Override term_out and can_emit_style_escape.
5969 * utils.h (can_emit_style_escape): Remove.
5970 * utils.c (can_emit_style_escape): Likewise.
5971 Update all callers of can_emit_style_escape (SOMESTREAM) to
5972 SOMESTREAM->can_emit_style_escape.
5973 * source-cache.c (source_cache::get_source_lines): Likewise.
5974 * stack.c (frame_apply_command_count): Call execute_command_to_string
5975 passing the term_out characteristic of the current gdb_stdout.
5976 * thread.c (thr_try_catch_cmd): Likewise.
5977 * top.c (execute_command_to_string): pass term_out parameter
5978 to construct the string_file for the command output.
5979 * ui-file.c (term_cli_styling): New function (most code moved
5980 from utils.c can_emit_style_escape).
5981 (string_file::string_file, string_file::can_emit_style_escape,
5982 stdio_file::can_emit_style_escape, tee_file::term_out,
5983 tee_file::can_emit_style_escape): New functions.
5984
136afab8
PW
59852019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5986
5987 * NEWS: Mention the new set|show may-call-functions.
5988 * infcall.c (may_call_functions_p): New variable.
5989 (show_may_call_functions_p): New function.
5990 (call_function_by_hand_dummy): Throws an error if not
5991 may-call-functions.
5992 (_initialize_infcall): Call add_setshow_boolean_cmd for
5993 may-call-functions.
5994
725cbb63
KS
59952019-04-25 Keith Seitz <keiths@redhat.com>
5996
5997 PR c++/24367
5998 * cp-support.c (inspect_type): Don't attempt substitutions
5999 of symbol with the same name.
6000
3d1cbb78
TT
60012019-04-25 Tom Tromey <tromey@adacore.com>
6002
6003 PR gdb/24475:
6004 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
6005 static.
6006
94aeb44b
TT
60072019-04-25 Tom Tromey <tromey@adacore.com>
6008
6009 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
6010 rvalue reference.
6011 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
6012 (gdb_xml_parser::parse): Use std::move.
6013 * python/python-internal.h (gdbpy_convert_exception): Take a const
6014 reference.
6015 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
6016 std::move.
6017 * python/py-utils.c (gdbpy_convert_exception): Take a const
6018 reference.
6019 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6020 Use std::move.
6021 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6022 Use std::move.
6023 * mi/mi-main.c (mi_print_exception): Take a const reference.
6024 * main.c (handle_command_errors): Take a const reference.
6025 * linespec.c (parse_linespec): Use std::move.
6026 * infcall.c (run_inferior_call): Use std::move.
6027 (call_function_by_hand_dummy): Use std::move.
6028 * exec.c (try_open_exec_file): Use std::move.
6029 * exceptions.h (exception_print, exception_fprintf)
6030 (exception_print_same): Update.
6031 * exceptions.c (print_exception, exception_print)
6032 (exception_fprintf, exception_print_same): Change parameters to
6033 const reference.
6034 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
6035 * common/new-op.c: Use std::move.
6036 * common/common-exceptions.h (struct gdb_exception): Add move
6037 constructor.
6038 (struct gdb_exception_error, struct gdb_exception_quit, struct
6039 gdb_quit_bad_alloc): Change constructor to move constructor.
6040 (throw_exception): Change parameter to rvalue reference.
6041 * common/common-exceptions.c (throw_exception): Take rvalue
6042 reference.
6043 * cli/cli-interp.c (safe_execute_command): Use std::move.
6044 * breakpoint.c (insert_bp_location, location_to_sals): Use
6045 std::move.
6046
680d7fd5
TT
60472019-04-25 Tom Tromey <tromey@adacore.com>
6048
6049 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
6050 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
6051 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
6052 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
6053 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
6054 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
6055 guile/scm-value.c: Use unpack.
6056 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
6057 gdbscm_gdb_exception.
6058 (gdbscm_throw_gdb_exception): Likewise.
6059 (struct gdbscm_gdb_exception): New.
6060 (unpack): New function.
6061 (gdbscm_wrap): Use unpack.
6062
c6fdd8b2
TT
60632019-04-25 Tom Tromey <tromey@adacore.com>
6064
6065 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6066 (gdb_rl_callback_handler): Use std::move.
6067 * common/common-exceptions.h (struct gdb_exception): Add move
6068 assignment operator.
6069 (throw_exception_sjlj): Change "exception" to const reference.
6070 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
6071 (throw_exception_sjlj): Change "exception" to const reference.
6072
cc06b668
TT
60732019-04-25 Tom Tromey <tromey@adacore.com>
6074
6075 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
6076 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
6077 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
6078 Update.
6079 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
6080 Update.
6081 * mi/mi-interp.c (mi_interp::exec): Update.
6082 * linespec.c (parse_linespec): Update.
6083 * infcall.c (run_inferior_call): Update.
6084 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
6085 * guile/scm-symbol.c (gdbscm_lookup_symbol)
6086 (gdbscm_lookup_global_symbol): Update.
6087 * guile/scm-param.c (gdbscm_parameter_value): Update.
6088 * guile/scm-frame.c (gdbscm_frame_read_register)
6089 (gdbscm_frame_read_var): Update.
6090 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
6091 * exec.c (try_open_exec_file): Update.
6092 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
6093 (gdb_rl_callback_handler): Update.
6094 * common/common-exceptions.h (exception_none): Don't declare.
6095 * common/common-exceptions.c (exception_none): Don't define.
6096 (struct catcher) <exception>: Update.
6097 * cli/cli-interp.c (safe_execute_command): Update.
6098 * breakpoint.c (insert_bp_location, location_to_sals): Update.
6099
cf532bd1
AT
61002019-04-25 Ali Tamur <tamur@google.com>
6101
6102 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
6103 (read_attribute_value): Likewise.
6104 (dwarf2_read_addr_index): Update comment.
6105 (read_str_index): Add DW_FORM_strx.
6106 (dwarf2_string_attr): Likewise.
6107 (dwarf2_const_value_attr): Likewise.
6108 (dump_die_shallow): Likewise.
6109 (dwarf2_fetch_constant_bytes): Likewise.
6110 (skip_form_bytes): Likewise.
6111 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
6112
82433e3e
SDJ
61132019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6114
6115 PR corefiles/11608
6116 PR corefiles/18187
6117 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
6118 OFFSET. Verify if current mapping contains an ELF header.
6119 (linux_find_memory_regions_full): Adjust call to
6120 dump_mapping_p.
6121
723adb65
SL
61222019-04-25 Sandra Loosemore <sandra@codesourcery.com>
6123 Kang Li <kanglictf@gmail.com>
6124
6125 PR gdb/21600
6126
6127 * dwarf2-frame.c (read_initial_length): Be consistent about using
6128 unsigned representation of length.
6129 (decode_frame_entry_1): Likewise. Check for wraparound of
6130 end pointer as well as buffer overflow.
6131
596179f7
SDJ
61322019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6133
6134 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
6135 "vq".
6136
a59240a4
TT
61372019-04-24 Tom Tromey <tromey@adacore.com>
6138
6139 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
6140
f872fdbb
AB
61412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6142
6143 * s12z-tdep.c (s12z_unwind_pc): Delete.
6144 (s12z_unwind_sp): Delete.
6145 (s12z_gdbarch_init): Don't register deleted functions with
6146 gdbarch.
6147
b614e6f3
AB
61482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6149
6150 * rl78-tdep.c (rl78_unwind_sp): Delete.
6151 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
6152
14faed38
AB
61532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6154
6155 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
6156 (xstormy16_unwind_pc): Delete.
6157 (xstormy16_dummy_id): Delete.
6158 (xstormy16_gdbarch_init): Don't register deleted functions with
6159 gdbarch.
6160
541aad8a
AB
61612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6162
6163 * vax-tdep.c (vax_unwind_pc): Delete.
6164 (vax_gdbarch_init): Don't register deleted function with gdbarch.
6165
29222070
AB
61662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6167
6168 * v850-tdep.c (v850_unwind_sp): Delete.
6169 (v850_unwind_pc): Delete.
6170 (v850_dummy_id): Delete.
6171 (v850_gdbarch_init): Don't register deleted functions with
6172 gdbarch.
6173
0f534d76
AB
61742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
6177 (tilegx_unwind_pc): Delete.
6178 (tilegx_unwind_dummy_id): Delete.
6179 (tilegx_gdbarch_init): Don't register deleted functions with
6180 gdbarch.
6181
1ba7b7f9
AB
61822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6183
6184 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
6185 (tic6x_dummy_id): Delete.
6186 (tic6x_gdbarch_init): Don't register deleted functions with
6187 gdbarch.
6188
d31f262c
AB
61892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6190
6191 * sparc-tdep.c (sparc_unwind_pc): Delete.
6192 (sparc32_gdbarch_init): Don't register deleted function with
6193 gdbarch.
6194
6d14d64d
AB
61952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6196
6197 * sh-tdep.c (sh_unwind_sp): Delete.
6198 (sh_unwind_pc): Delete.
6199 (sh_dummy_id): Delete.
6200 (sh_gdbarch_init): Don't register deleted functions with
6201 gdbarch.
6202
a40dde9d
AB
62032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6204
6205 * score-tdep.c (score_unwind_sp): Delete.
6206 (score_unwind_pc): Delete.
6207 (score_dummy_id): Delete.
6208 (score_gdbarch_init): Don't register deleted functions with
6209 gdbarch.
6210
47c47d69
AB
62112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6212
6213 * rx-tdep.c (rx_unwind_pc): Delete.
6214 (rx_unwind_sp): Delete.
6215 (rx_dummy_id): Delete.
6216 (rx_gdbarch_init): Don't register deleted functions with
6217 gdbarch. Update comment.
6218
833a4480
AB
62192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6220
6221 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
6222 (rs6000_dummy_id): Delete.
6223 (rs6000_gdbarch_init): Don't register deleted functions with
6224 gdbarch.
6225
3f2cef49
AB
62262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6227
6228 * or1k-tdep.c (or1k_dummy_id): Delete.
6229 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
6230
96acf884
AB
62312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6232
6233 * nios2-tdep.c (nios2_dummy_id): Delete.
6234 (nios2_unwind_sp): Delete.
6235 (nios2_gdbarch_init): Don't register deleted functions with
6236 gdbarch.
6237
ca0ab0aa
AB
62382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6239
6240 * nds32-tdep.c (nds32_dummy_id): Delete.
6241 (nds32_unwind_pc): Delete.
6242 (nds32_unwind_sp): Delete.
6243 (nds32_gdbarch_init): Don't register deleted functions with
6244 gdbarch.
6245
c8259044
AB
62462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6247
6248 * msp430-tdep.c (msp430_unwind_pc): Delete.
6249 (msp430_unwind_sp): Delete.
6250 (msp430_dummy_id): Delete.
6251 (msp430_gdbarch_init): Don't register deleted functions with
6252 gdbarch.
6253
27f113c8
AB
62542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6255
6256 * moxie-tdep.c (moxie_unwind_sp): Delete.
6257 (moxie_unwind_pc): Delete.
6258 (moxie_dummy_id): Delete.
6259 (moxie_gdbarch_init): Don't register deleted functions with
6260 gdbarch.
6261
aee6c3cd
AB
62622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6263
6264 * mn10300-tdep.c (mn10300_dummy_id): Delete.
6265 (mn10300_unwind_pc): Delete.
6266 (mn10300_unwind_sp): Delete.
6267 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
6268 mn10300_unwind_sp.
6269 (mn10300_frame_unwind_init): Don't register deleted functions with
6270 gdbarch.
6271
8e2b5aea
AB
62722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6273
6274 * mep-tdep.c (mep_unwind_pc): Delete.
6275 (mep_unwind_sp): Delete.
6276 (mep_dummy_id): Delete.
6277 (mep_gdbarch_init): Don't register deleted functions with
6278 gdbarch.
6279
43cf3ede
AB
62802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6281
6282 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
6283 (m68hc11_unwind_sp): Delete.
6284 (m68hc11_gdbarch_init): Don't register deleted functions with
6285 gdbarch.
6286
5e79b7bb
AB
62872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6288
6289 * m32r-tdep.c (m32r_unwind_sp): Delete.
6290 (m32r_unwind_pc): Delete.
6291 (m32r_dummy_id): Delete.
6292 (m32r_gdbarch_init): Don't register deleted functions with
6293 gdbarch.
6294
89b268d8
AB
62952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6296
6297 * m32c-tdep.c (m32c_unwind_pc): Delete.
6298 (m32c_unwind_sp): Delete.
6299 (m32c_dummy_id): Delete.
6300 (m32c_gdbarch_init): Don't register deleted functions with
6301 gdbarch.
6302
946c28d2
AB
63032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6304
6305 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
6306 (lm32_unwind_pc): Delete.
6307 (lm32_dummy_id): Delete.
6308 (lm32_gdbarch_init): Don't register deleted functions with
6309 gdbarch.
6310
bf12844a
AB
63112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6312
6313 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
6314 (iq2000_unwind_pc): Delete.
6315 (iq2000_dummy_id): Delete.
6316 (iq2000_gdbarch_init): Don't register deleted functions with
6317 gdbarch.
6318
ecbc06d2
AB
63192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6320
6321 * nds32-tdep.c (nds32_type_align): Delete.
6322 (nds32_push_dummy_call): Use type_align instead.
6323
030197b4
AB
63242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6325
6326 * arm-tdep.c (arm_type_align): Only handle vector override case.
6327 (arm_push_dummy_call): Use type_align.
6328 (arm_gdbarch_init): Register arm_type_align gdbarch function.
6329
b907456c
AB
63302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
6331
6332 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
6333 case.
6334 (pass_on_stack): Use type_align.
6335 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
6336 function.
6337
9e97ba43
TT
63382019-04-23 Tom Tromey <tromey@adacore.com>
6339
6340 * dwarf2read.c (line_header::file_name_at): Remove unused
6341 overload.
6342
6892f601
TV
63432019-04-23 Tom de Vries <tdevries@suse.de>
6344
6345 PR gdb/24438
6346 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
6347 invocation.
6348
336d760d
AT
6349
63502019-03-27 Ali Tamur <tamur@google.com>
6351
6352 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
6353 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6354 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
6355 (dwarf_expr_context::get_addr_index): Likewise
6356 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
6357 (symbol_needs_eval_context::get_addr_index): Likewise
6358 (disassemble_dwarf_expression): Add DW_OP_addrx
6359 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
6360 (read_cutu_die_from_dwo): Update comment
6361 (skip_one_die): Add DW_FORM_addrx
6362 (read_attribute_value): Likewise
6363 (var_decode_location): Add DW_OP_addrx
6364 (dwarf2_const_value_attr): Add DW_FORM_addrx
6365 (dump_die_shallow): Likewise
6366 (dwarf2_fetch_constant_bytes): Likewise
6367 (decode_locdesc): Add DW_OP_addrx
6368 (skip_form_bytes): Add DW_FORM_addrx
6369
ad9d13f8
AT
63702019-04-22 Ali Tamur <tamur@google.com>
6371
6372 * MAINTAINERS (Write After Approval): Add self.
6373
d70cc3ba
SM
63742019-04-22 Simon Marchi <simon.marchi@efficios.com>
6375
6376 * solib-svr4.c (get_svr4_info): Add pspace parameter.
6377 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
6378 (open_symbol_file_object): Likewise.
6379 (svr4_default_sos): Add info parameter.
6380 (svr4_read_so_list): Likewise.
6381 (svr4_current_sos_direct): Adjust functions calls to pass down
6382 info.
6383 (svr4_current_sos_1): Add info parameter.
6384 (svr4_current_sos): Call get_svr4_info, pass info down to
6385 svr4_current_sos_1.
6386 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
6387 get_svr4_info.
6388 (svr4_in_dynsym_resolve_code): Pass current_program_space to
6389 get_svr4_info.
6390 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
6391 to get_svr4_info.
6392 (probes_table_remove_objfile_probes): Likewise.
6393 (register_solib_event_probe): Add info parameter.
6394 (solist_update_incremental): Pass info parameter down to
6395 svr4_read_so_list.
6396 (disable_probes_interface): Add info parameter.
6397 (svr4_handle_solib_event): Pass current_program_space to
6398 get_svr4_info. Adjust disable_probes_interface cleanup.
6399 (svr4_create_probe_breakpoints): Add info parameter, pass it
6400 down to register_solib_event_probe.
6401 (svr4_create_solib_event_breakpoints): Add info parameter,
6402 pass it down to svr4_create_probe_breakpoints.
6403 (enable_break): Pass info down to
6404 svr4_create_solib_event_breakpoints.
6405 (svr4_solib_create_inferior_hook): Pass current_program_space to
6406 get_svr4_info.
6407 (svr4_clear_solib): Likewise.
6408
7905fc35
PA
64092019-04-22 Pedro Alves <palves@redhat.com>
6410
6411 * solib-svr4.c (svr4_free_objfile_observer): New.
6412 (probe_and_action::objfile): New field.
6413 (probes_table_htab_remove_objfile_probes)
6414 (probes_table_remove_objfile_probes): New functions.
6415 (register_solib_event_probe): Add 'objfile' parameter. Store it
6416 in the new probe_and_action. Don't store the probe in 'lookup'.
6417 (svr4_create_probe_breakpoints): Pass objfile to
6418 register_solib_event_probe.
6419 (_initialize_svr4_solib): Register a free_objfile observer.
6420
fb881986
TT
64212019-04-19 Tom Tromey <tom@tromey.com>
6422
6423 * common/queue.h: Remove.
6424
8732db6c
TT
64252019-04-19 Tom Tromey <tom@tromey.com>
6426
6427 * event-loop.c: Don't include "common/queue.h".
6428
97dfbadd
TT
64292019-04-19 Tom Tromey <tom@tromey.com>
6430
6431 * remote.c (remote_target): Use delete.
6432 * remote-notif.h: Include <list>, not "common/queue.h".
6433 (notif_client_p): Remove typedef.
6434 (remote_notif_state): Add constructor, destructor, initializer.
6435 <notif_queue>: Now a std::list.
6436 (remote_notif_state_xfree): Don't declare.
6437 * remote-notif.c (remote_notif_process, handle_notification)
6438 (remote_notif_state_allocate): Update.
6439 (~remote_notif_state): Rename from remote_notif_state_xfree.
6440
cf250e36
TT
64412019-04-19 Tom Tromey <tom@tromey.com>
6442
6443 * symfile.c (reread_symbols): Update.
6444 * objfiles.c (objfile_register_static_link)
6445 (objfile_lookup_static_link): Update
6446 (~objfile) Don't delete static_links.
6447 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
6448
61f4b350
TT
64492019-04-19 Tom Tromey <tom@tromey.com>
6450
6451 * type-stack.h (struct type_stack) <insert>: Constify string.
6452 * type-stack.c (type_stack::insert): Constify string.
6453 * gdbtypes.h (lookup_template_type): Update.
6454 (address_space_name_to_int): Update.
6455 * gdbtypes.c (address_space_name_to_int): Make space_identifier
6456 const.
6457 (lookup_template_type): Make name const.
6458 * c-exp.y: Update rules.
6459 (lex_one_token, classify_name, classify_inner_name)
6460 (c_print_token): Update.
6461 * p-exp.y: Update rules.
6462 (yylex): Update.
6463 * f-exp.y: Update rules.
6464 (yylex): Update.
6465 * d-exp.y: Update rules.
6466 (lex_one_token, classify_name, classify_inner_name): Update.
6467 * parse.c (write_dollar_variable, copy_name): Return std::string.
6468 * parser-defs.h (copy_name): Change return type.
6469 * m2-exp.y: Update rules.
6470 (yylex): Update.
6471 * go-exp.y (lex_one_token): Update.
6472 Update rules.
6473 (classify_unsafe_function, classify_packaged_name)
6474 (classify_name, yylex): Update.
6475
189b8c2e
ST
64762019-04-19 Sergei Trofimovich <siarheit@google.com>
6477
6478 * configure.ac: add --enable-source-highlight switch.
6479 * configure: Regenerate.
6480 * top.c (print_gdb_version): plumb --enable-source-highlight
6481 status to "show configuration".
6482
8ecb59f8
TT
64832019-04-19 Tom Tromey <tromey@adacore.com>
6484
6485 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
6486 Check ADA_TYPE_P.
6487 (empty_record, ada_template_to_fixed_record_type_1)
6488 (template_to_static_fixed_type)
6489 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
6490 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
6491 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
6492 macros.
6493
62160ec9
TT
64942019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6495
6496 PR symtab/24423:
6497 * source.c (print_source_lines_base): Advance "iter" when a
6498 control character is seen.
6499
f2ae8bc8
PW
65002019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6501
6502 * inferior.h (struct infcall_suspend_state_deleter):
6503 Catch exception in destructor to avoid crash.
6504
d563b953
PW
65052019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6506
6507 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
6508 close to the add_com "shell".
6509
dc34c897
TT
65102019-04-18 Tom Tromey <tromey@adacore.com>
6511
6512 * process-stratum-target.h (class process_stratum_target)
6513 <stratum>: Add "final".
6514
a12e5744
TT
65152019-04-17 Tom Tromey <tromey@adacore.com>
6516
6517 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
6518 against nullptr before use.
6519
a7e559cc
AH
65202019-04-17 Alan Hayward <alan.hayward@arm.com>
6521
6522 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
6523
c01660c6
AB
65242019-04-17 Jim Wilson <jimw@sifive.com>
6525 Andrew Burgess <andrew.burgess@embecosm.com>
6526
6527 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
6528 code read might fail, assume 4-byte breakpoint in that case.
6529
4aa866af
LS
65302019-04-15 Leszek Swirski <leszeks@google.com>
6531
6532 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
6533 rather than a hand-rolled POD check when checking for forced MEMORY
6534 classification.
6535
48574d91
AH
65362019-04-15 Alan Hayward <alan.hayward@arm.com>
6537
6538 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
6539 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
6540 function.
6541 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
6542 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
6543 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
6544 declaration.
6545
4da037ef
AH
65462019-04-15 Alan Hayward <alan.hayward@arm.com>
6547
6548 * aarch64-linux-nat.c
6549 (aarch64_linux_nat_target::thread_architecture): Add override.
6550 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
6551 each VQ.
6552
ccb8d7e8
AH
65532019-04-15 Alan Hayward <alan.hayward@arm.com>
6554
6555 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
6556
35add35e
AB
65572019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
6558
6559 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
6560 target types of size 96-bits, add some additional comments, and
6561 check that the builtin type we found was the correct size.
6562
51196bbc
EZ
65632019-04-12 Eli Zaretskii <eliz@gnu.org>
6564
6565 * utils.c (prompt_for_continue): Don't restore the styling at the
6566 end, as applied_style has the wrong value. This fixes styling in
6567 long lists of file names that are interrupted by the "Continue?"
6568 prompt.
6569
62253a61
AB
65702019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
6571
6572 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
6573 * c-lang.c (c_language_defn): Likewise.
6574 (cplus_language_defn): Likewise.
6575 (asm_language_defn): Likewise.
6576 (minimal_language_defn): Likewise.
6577 * d-lang.c (d_language_defn): Likewise.
6578 * f-lang.c (f_language_defn): Likewise.
6579 * go-lang.c (go_language_defn): Likewise.
6580 * language.c (unknown_language_defn): Likewise.
6581 (auto_language_defn): Likewise.
6582 * language.h (struct language_defn): Remove la_magic field.
6583 (LANG_MAGIC): Delete.
6584 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
6585 * objc-lang.c (objc_language_defn): Likewise.
6586 * opencl-lang.c (opencl_language_defn): Likewise.
6587 * p-lang.c (pascal_language_defn): Likewise.
6588 * rust-lang.c (rust_language_defn): Likewise.
6589
a9158a86
AB
65902019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6591
6592 * riscv-tdep.c (riscv_type_align): New function.
6593 (riscv_type_alignment): Delete.
6594 (riscv_arg_location): Use 'type_align'.
6595 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
6596
41077b66
AB
65972019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6598
6599 * gdbtypes.c (type_align): A struct with no non-static fields also
6600 has alignment of 1.
6601
9f0272f8
AB
66022019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
6603
6604 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
6605 component to 0.
6606 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
6607 member.
6608 (riscv_struct_info::analyse): New implementation using new
6609 analyse_inner member function.
6610 (riscv_struct_info::field_offset): New member function.
6611 (riscv_struct_info::m_offsets): New member variable.
6612 (riscv_struct_info::analyse_inner): New private member function,
6613 takes the old implementation of riscv_struct_info::analyse but
6614 extended to track field offsets.
6615 (riscv_call_arg_struct): Update the struct folding special cases
6616 to handle cases where empty C++ structs, which are non-zero
6617 length, are found.
6618 (riscv_arg_location): Initialise the length of each location, a
6619 non-zero length now indicates the location is in use.
6620 (riscv_push_dummy_call): Allow for the first location having a
6621 non-zero offset when setting up arguments.
6622 (riscv_return_value): Likewise, but for return values.
6623
02cf60c7
TT
66242019-04-11 Tom Tromey <tromey@adacore.com>
6625
6626 * utils.c (internal_vproblem): Make "msg" const.
6627
68811f8f
AH
66282019-04-11 Alan Hayward <alan.hayward@arm.com>
6629
6630 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
6631 * trad-frame.c (trad_frame_reset_saved_regs): New function.
6632 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
6633 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
6634
3f52fdbc
KB
66352019-04-10 Kevin Buettner <kevinb@redhat.com>
6636
6637 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
6638 function.
6639 (fill_gregset): Call amd64_linux_collect_native_gregset instead
6640 of amd64_collect_native_gregset.
6641 (amd64_linux_nat_target::store_registers): Likewise.
6642
e9ad22ee
TT
66432019-04-10 Tom Tromey <tom@tromey.com>
6644
6645 * symtab.c (lookup_global_symbol_from_objfile)
6646 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
6647 * objfiles.h (class separate_debug_iterator): New.
6648 (class separate_debug_range): New.
6649 (struct objfile) <separate_debug_objfiles>: New method.
6650 (objfile_separate_debug_iterate): Don't declare.
6651 * objfiles.c (separate_debug_iterator::operator++): Rename from
6652 objfile_separate_debug_iterate.
6653 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
6654 iterator.
6655 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
6656 iterator.
6657
ee371134
TT
66582019-04-10 Tom Tromey <tom@tromey.com>
6659
6660 * symfile.c (reread_symbols): Remove old comment.
6661 * objfiles.c (free_all_objfiles): Fix a typo.
6662
bf227d61
TT
66632019-04-10 Tom Tromey <tom@tromey.com>
6664
6665 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
6666 * minsyms.c (lookup_minimal_symbol): Use foreach.
6667 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6668 (lookup_minimal_symbol_solib_trampoline): Likewise.
6669 * symfile.c (reread_symbols): Use foreach.
6670
8dc433a0
TT
66712019-04-09 Ivan Begert <ivanbegert@gmail.com>
6672 Tom Tromey <tromey@adacore.com>
6673
6674 PR rust/24414:
6675 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
6676 (rust_lex_int_test): Change "value" to be LONGEST.
6677 (rust_lex_tests): Add test for long integer literal.
6678
9ab8741a
TT
66792019-04-09 Tom Tromey <tromey@adacore.com>
6680
6681 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
6682 to bool.
6683 (extended_remote_target::attach): Update.
6684 (remote_target::remote_notice_new_inferior): Update.
6685 (remote_target::add_current_inferior_and_thread): Update.
6686 * inferior.c (exit_inferior_1): Use "false".
6687 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
6688
e242fd12
SM
66892019-04-09 Simon Marchi <simon.marchi@efficios.com>
6690
9ca1957f 6691 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
6692 the "start" command.
6693
2b0c8b01
KB
66942019-04-08 Kevin Buettner <kevinb@redhat.com>
6695
6696 * python/py-inferior.c (infpy_thread_from_thread_handle):
6697 Adjust comments to reflect renaming of thread_from_thread_handle
6698 to thread_from_handle. Adjust keywords. Fix type error message.
6699 (inferior_object_methods): Add thread_from_handle. Retain
6700 thread_from_thread_handle, but mark it as deprecated.
6701
50a82723
KB
67022019-04-08 Kevin Buettner <kevinb@redhat.com>
6703
6704 * gdbthread.h (find_thread_by_handle): Revise declaration.
6705 * thread.c (find_thread_by_handle): Likewise. Adjust
6706 implementation too.
6707 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
6708 support for buffer objects as handles.
6709
cf63b016
KB
67102019-04-08 Kevin Buettner <kevinb@redhat.com>
6711
6712 * python/py-infthread.c (thpy_thread_handle): New function.
6713 (thread_object_methods): Register thpy_thread_handle.
6714
3d6c6204
KB
67152019-04-08 Kevin Buettner <kevinb@redhat.com>
6716
6717 * gdbthread.h (thread_to_thread_handle): Declare.
6718 * thread.c (gdbtypes.h): Include.
6719 (thread_to_thread_handle): New function.
6720
6721 * target.h (struct target_ops): Add thread_info_to_thread_handle.
6722 (target_thread_info_to_thread_handle): Declare.
6723 * target.c (target_thread_info_to_thread_handle): New function.
6724 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
6725 * target-delegates.c: Regenerate.
6726
6727 * linux-thread-db.c (class thread_db_target): Add method
6728 thread_info_to_thread_handle.
6729 (thread_db_target::thread_info_to_thread_handle): Define.
6730 * remote.c (class remote_target): Add new method
6731 thread_info_to_thread_handle.
6732 (remote_target::thread_info_to_thread_handle): Define.
6733
56be6ea8
PA
67342019-04-08 Pedro Alves <palves@redhat.com>
6735
6736 * common/common-exceptions.c (throw_exception): Don't create
6737 named object to throw; throw directly.
6738 (throw_it): Likewise. Don't initialize gdb_exception::message
6739 here, with new; pass FMT and AP to the ctor instead.
6740 * common/common-exceptions.h: Include <string>.
6741 (gdb_exception::gdb_exception(enum return_reason, enum errors,
6742 const char *, va_list)): New ctor. Use std::make_shared.
6743 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
6744 errors)): Delete.
6745 (gdb_exception_error::gdb_exception_error(enum errors, const char
6746 *, va_list)): New.
6747 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
6748 Add assertion.
6749 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
6750 errors)): Delete.
6751 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
6752 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
6753 Add assertion.
6754
eedc3f4f
TT
67552019-04-08 Tom Tromey <tom@tromey.com>
6756
6757 * valops.c (value_rtti_indirect_type): Replace throw_exception
6758 with throw.
6759 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
6760 with throw.
6761 * thread.c (thr_try_catch_cmd): Replace throw_exception with
6762 throw.
6763 * target.c (target_translate_tls_address): Replace throw_exception
6764 with throw.
6765 * stack.c (frame_apply_command_count): Replace throw_exception
6766 with throw.
6767 * solib-spu.c (append_ocl_sos): Replace throw_exception with
6768 throw.
6769 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
6770 with throw.
6771 * rs6000-tdep.c (rs6000_frame_cache)
6772 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
6773 * remote.c: Replace throw_exception with throw.
6774 * record-full.c (record_full_message, record_full_wait_1)
6775 (record_full_restore): Replace throw_exception with throw.
6776 * record-btrace.c:
6777 (get_thread_current_frame_id, record_btrace_start_replaying)
6778 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
6779 (cmd_record_btrace_start): Replace throw_exception with throw.
6780 * parse.c (parse_exp_in_context_1): Replace throw_exception with
6781 throw.
6782 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
6783 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
6784 * linespec.c:
6785 (find_linespec_symbols): Replace throw_exception with throw.
6786 * infrun.c (displaced_step_prepare, resume): Replace
6787 throw_exception with throw.
6788 * infcmd.c (post_create_inferior): Replace throw_exception with
6789 throw.
6790 * inf-loop.c (inferior_event_handler): Replace throw_exception
6791 with throw.
6792 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6793 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
6794 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
6795 (get_prev_frame_always, get_frame_pc_if_available)
6796 (get_frame_address_in_block_if_available, get_frame_language):
6797 Replace throw_exception with throw.
6798 * frame-unwind.c (frame_unwind_try_unwinder): Replace
6799 throw_exception with throw.
6800 * eval.c (fetch_subexp_value, evaluate_var_value)
6801 (evaluate_funcall, evaluate_subexp_standard): Replace
6802 throw_exception with throw.
6803 * dwarf2loc.c (call_site_find_chain)
6804 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
6805 Replace throw_exception with throw.
6806 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
6807 with throw.
6808 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
6809 throw.
6810 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
6811 * completer.c (complete_line_internal): Replace throw_exception
6812 with throw.
6813 * compile/compile-object-run.c (compile_object_run): Replace
6814 throw_exception with throw.
6815 * cli/cli-script.c (process_next_line): Replace throw_exception
6816 with throw.
6817 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
6818 (btrace_enable, btrace_maint_update_pt_packets): Replace
6819 throw_exception with throw.
6820 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
6821 throw_exception with throw.
6822 * break-catch-throw.c (re_set_exception_catchpoint): Replace
6823 throw_exception with throw.
6824 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6825 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
6826 * aarch64-tdep.c (aarch64_make_prologue_cache)
6827 (aarch64_make_stub_cache): Replace throw_exception with throw.
6828
26003a20
TT
68292019-04-08 Tom Tromey <tom@tromey.com>
6830
6831 * common/common-exceptions.c (throw_exception): Rename from
6832 throw_exception_cxx. Remove old copy. Make argument const.
6833 (throw_it): Create and throw exception objects directly.
6834 * common/common-exceptions.h (throw_exception): Make argument
6835 const.
6836 (struct gdb_exception_error): Add constructor.
6837 (struct gdb_exception_quit): Add constructor.
6838
d272eb37
TT
68392019-04-08 Tom Tromey <tom@tromey.com>
6840
6841 * common/common-exceptions.h (exception_rethrow): Don't declare.
6842 (TRY_SJLJ): Update comment.
6843 (TRY, CATCH, END_CATCH): Remove.
6844 * common/common-exceptions.c (exception_rethrow): Remove.
6845
230d2906
TT
68462019-04-08 Tom Tromey <tom@tromey.com>
6847
6848 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
6849 Remove.
6850 (gdb_exception_error): Rename from
6851 gdb_exception_RETURN_MASK_ERROR.
6852 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
6853 (gdb_quit_bad_alloc): Update.
6854 * aarch64-tdep.c: Update.
6855 * ada-lang.c: Update.
6856 * ada-typeprint.c: Update.
6857 * ada-valprint.c: Update.
6858 * amd64-tdep.c: Update.
6859 * arch-utils.c: Update.
6860 * break-catch-throw.c: Update.
6861 * breakpoint.c: Update.
6862 * btrace.c: Update.
6863 * c-varobj.c: Update.
6864 * cli/cli-cmds.c: Update.
6865 * cli/cli-interp.c: Update.
6866 * cli/cli-script.c: Update.
6867 * common/common-exceptions.c: Update.
6868 * common/new-op.c: Update.
6869 * common/selftest.c: Update.
6870 * compile/compile-c-symbols.c: Update.
6871 * compile/compile-cplus-symbols.c: Update.
6872 * compile/compile-object-load.c: Update.
6873 * compile/compile-object-run.c: Update.
6874 * completer.c: Update.
6875 * corelow.c: Update.
6876 * cp-abi.c: Update.
6877 * cp-support.c: Update.
6878 * cp-valprint.c: Update.
6879 * darwin-nat.c: Update.
6880 * disasm-selftests.c: Update.
6881 * dtrace-probe.c: Update.
6882 * dwarf-index-cache.c: Update.
6883 * dwarf-index-write.c: Update.
6884 * dwarf2-frame-tailcall.c: Update.
6885 * dwarf2-frame.c: Update.
6886 * dwarf2loc.c: Update.
6887 * dwarf2read.c: Update.
6888 * eval.c: Update.
6889 * event-loop.c: Update.
6890 * event-top.c: Update.
6891 * exec.c: Update.
6892 * f-valprint.c: Update.
6893 * fbsd-tdep.c: Update.
6894 * frame-unwind.c: Update.
6895 * frame.c: Update.
6896 * gdbtypes.c: Update.
6897 * gnu-v3-abi.c: Update.
6898 * guile/guile-internal.h: Update.
6899 * guile/scm-block.c: Update.
6900 * guile/scm-breakpoint.c: Update.
6901 * guile/scm-cmd.c: Update.
6902 * guile/scm-disasm.c: Update.
6903 * guile/scm-frame.c: Update.
6904 * guile/scm-lazy-string.c: Update.
6905 * guile/scm-math.c: Update.
6906 * guile/scm-param.c: Update.
6907 * guile/scm-ports.c: Update.
6908 * guile/scm-pretty-print.c: Update.
6909 * guile/scm-symbol.c: Update.
6910 * guile/scm-symtab.c: Update.
6911 * guile/scm-type.c: Update.
6912 * guile/scm-value.c: Update.
6913 * i386-linux-tdep.c: Update.
6914 * i386-tdep.c: Update.
6915 * inf-loop.c: Update.
6916 * infcall.c: Update.
6917 * infcmd.c: Update.
6918 * infrun.c: Update.
6919 * jit.c: Update.
6920 * language.c: Update.
6921 * linespec.c: Update.
6922 * linux-fork.c: Update.
6923 * linux-nat.c: Update.
6924 * linux-tdep.c: Update.
6925 * linux-thread-db.c: Update.
6926 * main.c: Update.
6927 * mi/mi-cmd-break.c: Update.
6928 * mi/mi-cmd-stack.c: Update.
6929 * mi/mi-interp.c: Update.
6930 * mi/mi-main.c: Update.
6931 * objc-lang.c: Update.
6932 * p-valprint.c: Update.
6933 * parse.c: Update.
6934 * ppc-linux-tdep.c: Update.
6935 * printcmd.c: Update.
6936 * python/py-arch.c: Update.
6937 * python/py-breakpoint.c: Update.
6938 * python/py-cmd.c: Update.
6939 * python/py-finishbreakpoint.c: Update.
6940 * python/py-frame.c: Update.
6941 * python/py-framefilter.c: Update.
6942 * python/py-gdb-readline.c: Update.
6943 * python/py-inferior.c: Update.
6944 * python/py-infthread.c: Update.
6945 * python/py-lazy-string.c: Update.
6946 * python/py-linetable.c: Update.
6947 * python/py-objfile.c: Update.
6948 * python/py-param.c: Update.
6949 * python/py-prettyprint.c: Update.
6950 * python/py-progspace.c: Update.
6951 * python/py-record-btrace.c: Update.
6952 * python/py-record.c: Update.
6953 * python/py-symbol.c: Update.
6954 * python/py-type.c: Update.
6955 * python/py-unwind.c: Update.
6956 * python/py-utils.c: Update.
6957 * python/py-value.c: Update.
6958 * python/python.c: Update.
6959 * record-btrace.c: Update.
6960 * record-full.c: Update.
6961 * remote-fileio.c: Update.
6962 * remote.c: Update.
6963 * riscv-tdep.c: Update.
6964 * rs6000-aix-tdep.c: Update.
6965 * rs6000-tdep.c: Update.
6966 * rust-exp.y: Update.
6967 * rust-lang.c: Update.
6968 * s390-tdep.c: Update.
6969 * selftest-arch.c: Update.
6970 * solib-dsbt.c: Update.
6971 * solib-frv.c: Update.
6972 * solib-spu.c: Update.
6973 * solib-svr4.c: Update.
6974 * solib.c: Update.
6975 * sparc64-linux-tdep.c: Update.
6976 * stack.c: Update.
6977 * symfile-mem.c: Update.
6978 * symmisc.c: Update.
6979 * target.c: Update.
6980 * thread.c: Update.
6981 * top.c: Update.
6982 * tracefile-tfile.c: Update.
6983 * tui/tui.c: Update.
6984 * typeprint.c: Update.
6985 * unittests/cli-utils-selftests.c: Update.
6986 * unittests/parse-connection-spec-selftests.c: Update.
6987 * valops.c: Update.
6988 * valprint.c: Update.
6989 * value.c: Update.
6990 * varobj.c: Update.
6991 * windows-nat.c: Update.
6992 * x86-linux-nat.c: Update.
6993 * xml-support.c: Update.
6994
a70b8144
TT
69952019-04-08 Tom Tromey <tom@tromey.com>
6996
6997 * xml-support.c: Use C++ exception handling.
6998 * x86-linux-nat.c: Use C++ exception handling.
6999 * windows-nat.c: Use C++ exception handling.
7000 * varobj.c: Use C++ exception handling.
7001 * value.c: Use C++ exception handling.
7002 * valprint.c: Use C++ exception handling.
7003 * valops.c: Use C++ exception handling.
7004 * unittests/parse-connection-spec-selftests.c: Use C++ exception
7005 handling.
7006 * unittests/cli-utils-selftests.c: Use C++ exception handling.
7007 * typeprint.c: Use C++ exception handling.
7008 * tui/tui.c: Use C++ exception handling.
7009 * tracefile-tfile.c: Use C++ exception handling.
7010 * top.c: Use C++ exception handling.
7011 * thread.c: Use C++ exception handling.
7012 * target.c: Use C++ exception handling.
7013 * symmisc.c: Use C++ exception handling.
7014 * symfile-mem.c: Use C++ exception handling.
7015 * stack.c: Use C++ exception handling.
7016 * sparc64-linux-tdep.c: Use C++ exception handling.
7017 * solib.c: Use C++ exception handling.
7018 * solib-svr4.c: Use C++ exception handling.
7019 * solib-spu.c: Use C++ exception handling.
7020 * solib-frv.c: Use C++ exception handling.
7021 * solib-dsbt.c: Use C++ exception handling.
7022 * selftest-arch.c: Use C++ exception handling.
7023 * s390-tdep.c: Use C++ exception handling.
7024 * rust-lang.c: Use C++ exception handling.
7025 * rust-exp.y: Use C++ exception handling.
7026 * rs6000-tdep.c: Use C++ exception handling.
7027 * rs6000-aix-tdep.c: Use C++ exception handling.
7028 * riscv-tdep.c: Use C++ exception handling.
7029 * remote.c: Use C++ exception handling.
7030 * remote-fileio.c: Use C++ exception handling.
7031 * record-full.c: Use C++ exception handling.
7032 * record-btrace.c: Use C++ exception handling.
7033 * python/python.c: Use C++ exception handling.
7034 * python/py-value.c: Use C++ exception handling.
7035 * python/py-utils.c: Use C++ exception handling.
7036 * python/py-unwind.c: Use C++ exception handling.
7037 * python/py-type.c: Use C++ exception handling.
7038 * python/py-symbol.c: Use C++ exception handling.
7039 * python/py-record.c: Use C++ exception handling.
7040 * python/py-record-btrace.c: Use C++ exception handling.
7041 * python/py-progspace.c: Use C++ exception handling.
7042 * python/py-prettyprint.c: Use C++ exception handling.
7043 * python/py-param.c: Use C++ exception handling.
7044 * python/py-objfile.c: Use C++ exception handling.
7045 * python/py-linetable.c: Use C++ exception handling.
7046 * python/py-lazy-string.c: Use C++ exception handling.
7047 * python/py-infthread.c: Use C++ exception handling.
7048 * python/py-inferior.c: Use C++ exception handling.
7049 * python/py-gdb-readline.c: Use C++ exception handling.
7050 * python/py-framefilter.c: Use C++ exception handling.
7051 * python/py-frame.c: Use C++ exception handling.
7052 * python/py-finishbreakpoint.c: Use C++ exception handling.
7053 * python/py-cmd.c: Use C++ exception handling.
7054 * python/py-breakpoint.c: Use C++ exception handling.
7055 * python/py-arch.c: Use C++ exception handling.
7056 * printcmd.c: Use C++ exception handling.
7057 * ppc-linux-tdep.c: Use C++ exception handling.
7058 * parse.c: Use C++ exception handling.
7059 * p-valprint.c: Use C++ exception handling.
7060 * objc-lang.c: Use C++ exception handling.
7061 * mi/mi-main.c: Use C++ exception handling.
7062 * mi/mi-interp.c: Use C++ exception handling.
7063 * mi/mi-cmd-stack.c: Use C++ exception handling.
7064 * mi/mi-cmd-break.c: Use C++ exception handling.
7065 * main.c: Use C++ exception handling.
7066 * linux-thread-db.c: Use C++ exception handling.
7067 * linux-tdep.c: Use C++ exception handling.
7068 * linux-nat.c: Use C++ exception handling.
7069 * linux-fork.c: Use C++ exception handling.
7070 * linespec.c: Use C++ exception handling.
7071 * language.c: Use C++ exception handling.
7072 * jit.c: Use C++ exception handling.
7073 * infrun.c: Use C++ exception handling.
7074 * infcmd.c: Use C++ exception handling.
7075 * infcall.c: Use C++ exception handling.
7076 * inf-loop.c: Use C++ exception handling.
7077 * i386-tdep.c: Use C++ exception handling.
7078 * i386-linux-tdep.c: Use C++ exception handling.
7079 * guile/scm-value.c: Use C++ exception handling.
7080 * guile/scm-type.c: Use C++ exception handling.
7081 * guile/scm-symtab.c: Use C++ exception handling.
7082 * guile/scm-symbol.c: Use C++ exception handling.
7083 * guile/scm-pretty-print.c: Use C++ exception handling.
7084 * guile/scm-ports.c: Use C++ exception handling.
7085 * guile/scm-param.c: Use C++ exception handling.
7086 * guile/scm-math.c: Use C++ exception handling.
7087 * guile/scm-lazy-string.c: Use C++ exception handling.
7088 * guile/scm-frame.c: Use C++ exception handling.
7089 * guile/scm-disasm.c: Use C++ exception handling.
7090 * guile/scm-cmd.c: Use C++ exception handling.
7091 * guile/scm-breakpoint.c: Use C++ exception handling.
7092 * guile/scm-block.c: Use C++ exception handling.
7093 * guile/guile-internal.h: Use C++ exception handling.
7094 * gnu-v3-abi.c: Use C++ exception handling.
7095 * gdbtypes.c: Use C++ exception handling.
7096 * frame.c: Use C++ exception handling.
7097 * frame-unwind.c: Use C++ exception handling.
7098 * fbsd-tdep.c: Use C++ exception handling.
7099 * f-valprint.c: Use C++ exception handling.
7100 * exec.c: Use C++ exception handling.
7101 * event-top.c: Use C++ exception handling.
7102 * event-loop.c: Use C++ exception handling.
7103 * eval.c: Use C++ exception handling.
7104 * dwarf2read.c: Use C++ exception handling.
7105 * dwarf2loc.c: Use C++ exception handling.
7106 * dwarf2-frame.c: Use C++ exception handling.
7107 * dwarf2-frame-tailcall.c: Use C++ exception handling.
7108 * dwarf-index-write.c: Use C++ exception handling.
7109 * dwarf-index-cache.c: Use C++ exception handling.
7110 * dtrace-probe.c: Use C++ exception handling.
7111 * disasm-selftests.c: Use C++ exception handling.
7112 * darwin-nat.c: Use C++ exception handling.
7113 * cp-valprint.c: Use C++ exception handling.
7114 * cp-support.c: Use C++ exception handling.
7115 * cp-abi.c: Use C++ exception handling.
7116 * corelow.c: Use C++ exception handling.
7117 * completer.c: Use C++ exception handling.
7118 * compile/compile-object-run.c: Use C++ exception handling.
7119 * compile/compile-object-load.c: Use C++ exception handling.
7120 * compile/compile-cplus-symbols.c: Use C++ exception handling.
7121 * compile/compile-c-symbols.c: Use C++ exception handling.
7122 * common/selftest.c: Use C++ exception handling.
7123 * common/new-op.c: Use C++ exception handling.
7124 * cli/cli-script.c: Use C++ exception handling.
7125 * cli/cli-interp.c: Use C++ exception handling.
7126 * cli/cli-cmds.c: Use C++ exception handling.
7127 * c-varobj.c: Use C++ exception handling.
7128 * btrace.c: Use C++ exception handling.
7129 * breakpoint.c: Use C++ exception handling.
7130 * break-catch-throw.c: Use C++ exception handling.
7131 * arch-utils.c: Use C++ exception handling.
7132 * amd64-tdep.c: Use C++ exception handling.
7133 * ada-valprint.c: Use C++ exception handling.
7134 * ada-typeprint.c: Use C++ exception handling.
7135 * ada-lang.c: Use C++ exception handling.
7136 * aarch64-tdep.c: Use C++ exception handling.
7137
3d6e9d23
TT
71382019-04-08 Tom Tromey <tom@tromey.com>
7139
7140 * xml-support.c (gdb_xml_parser::parse): Update.
7141 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
7142 * value.c (show_convenience): Update.
7143 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
7144 (test_parse_flags_qcs): Update.
7145 * thread.c (thr_try_catch_cmd): Update.
7146 * target.c (target_translate_tls_address): Update.
7147 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
7148 (info_frame_command_core, frame_apply_command_count): Update.
7149 * rust-exp.y (rust_lex_exception_test): Update.
7150 * riscv-tdep.c (riscv_print_one_register_info): Update.
7151 * remote.c (remote_target::enable_btrace): Update.
7152 * record-btrace.c (record_btrace_enable_warn): Update.
7153 * python/py-utils.c (gdbpy_convert_exception): Update.
7154 * printcmd.c (do_one_display, print_variable_and_value): Update.
7155 * mi/mi-main.c (mi_print_exception): Update.
7156 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
7157 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
7158 * linux-nat.c (linux_nat_target::attach): Update.
7159 * linux-fork.c (class scoped_switch_fork_info): Update.
7160 * infrun.c (displaced_step_prepare): Update.
7161 * infcall.c (call_function_by_hand_dummy): Update.
7162 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
7163 * gnu-v3-abi.c (print_one_vtable): Update.
7164 * frame.c (get_prev_frame_always): Update.
7165 * f-valprint.c (info_common_command_for_block): Update.
7166 * exec.c (try_open_exec_file): Update.
7167 * exceptions.c (print_exception, exception_print)
7168 (exception_fprintf, exception_print_same): Update.
7169 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
7170 * dwarf-index-cache.c (index_cache::store)
7171 (index_cache::lookup_gdb_index): Update.
7172 * darwin-nat.c (maybe_cache_shell): Update.
7173 * cp-valprint.c (cp_print_value_fields): Update.
7174 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
7175 (gcc_cplus_symbol_address): Update.
7176 * compile/compile-c-symbols.c (gcc_convert_symbol)
7177 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
7178 * common/selftest.c: Update.
7179 * common/common-exceptions.h (struct gdb_exception) <message>: Now
7180 a std::string.
7181 (exception_try_scope_entry, exception_try_scope_exit): Don't
7182 declare.
7183 (struct exception_try_scope): Remove.
7184 (TRY): Don't use exception_try_scope.
7185 (struct gdb_exception): Add constructor, operator=.
7186 <what>: New method.
7187 (struct gdb_exception_RETURN_MASK_ALL)
7188 (struct gdb_exception_RETURN_MASK_ERROR)
7189 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
7190 (struct gdb_quit_bad_alloc): Update.
7191 * common/common-exceptions.c (exception_none): Change
7192 initializer.
7193 (struct catcher) <state, exception>: Initialize inline.
7194 <prev>: Remove member.
7195 (current_catcher): Remove.
7196 (catchers): New global.
7197 (exceptions_state_mc_init): Simplify.
7198 (catcher_pop): Remove.
7199 (exceptions_state_mc, exceptions_state_mc_catch): Update.
7200 (try_scope_depth, exception_try_scope_entry)
7201 (exception_try_scope_exit): Remove.
7202 (throw_exception_sjlj): Update.
7203 (exception_messages, exception_messages_size): Remove.
7204 (throw_it): Simplify.
7205 (gdb_exception_sliced_copy): Remove.
7206 (throw_exception_cxx): Update.
7207 * cli/cli-script.c (script_from_file): Update.
7208 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
7209 Update.
7210 * ada-valprint.c (ada_val_print): Update.
7211 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
7212 (create_excep_cond_exprs): Update.
7213
c5c10118
TT
72142019-04-08 Tom Tromey <tom@tromey.com>
7215
7216 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
7217 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
7218 (TRY, CATCH, END_CATCH): Remove some definitions.
7219 * common/common-exceptions.c: Don't use GDB_XCPT.
7220 (catcher_list_size): Remove.
7221 (throw_exception, throw_it): Simplify.
7222
4de283e4
TT
72232019-04-05 Tom Tromey <tom@tromey.com>
7224
7225 Revert the header-sorting patch.
7226 * ft32-tdep.c: Revert.
7227 * frv-tdep.c: Revert.
7228 * frv-linux-tdep.c: Revert.
7229 * frame.c: Revert.
7230 * frame-unwind.c: Revert.
7231 * frame-base.c: Revert.
7232 * fork-child.c: Revert.
7233 * findvar.c: Revert.
7234 * findcmd.c: Revert.
7235 * filesystem.c: Revert.
7236 * filename-seen-cache.h: Revert.
7237 * filename-seen-cache.c: Revert.
7238 * fbsd-tdep.c: Revert.
7239 * fbsd-nat.h: Revert.
7240 * fbsd-nat.c: Revert.
7241 * f-valprint.c: Revert.
7242 * f-typeprint.c: Revert.
7243 * f-lang.c: Revert.
7244 * extension.h: Revert.
7245 * extension.c: Revert.
7246 * extension-priv.h: Revert.
7247 * expprint.c: Revert.
7248 * exec.h: Revert.
7249 * exec.c: Revert.
7250 * exceptions.c: Revert.
7251 * event-top.c: Revert.
7252 * event-loop.c: Revert.
7253 * eval.c: Revert.
7254 * elfread.c: Revert.
7255 * dwarf2read.h: Revert.
7256 * dwarf2read.c: Revert.
7257 * dwarf2loc.c: Revert.
7258 * dwarf2expr.h: Revert.
7259 * dwarf2expr.c: Revert.
7260 * dwarf2-frame.c: Revert.
7261 * dwarf2-frame-tailcall.c: Revert.
7262 * dwarf-index-write.h: Revert.
7263 * dwarf-index-write.c: Revert.
7264 * dwarf-index-common.c: Revert.
7265 * dwarf-index-cache.h: Revert.
7266 * dwarf-index-cache.c: Revert.
7267 * dummy-frame.c: Revert.
7268 * dtrace-probe.c: Revert.
7269 * disasm.h: Revert.
7270 * disasm.c: Revert.
7271 * disasm-selftests.c: Revert.
7272 * dictionary.c: Revert.
7273 * dicos-tdep.c: Revert.
7274 * demangle.c: Revert.
7275 * dcache.h: Revert.
7276 * dcache.c: Revert.
7277 * darwin-nat.h: Revert.
7278 * darwin-nat.c: Revert.
7279 * darwin-nat-info.c: Revert.
7280 * d-valprint.c: Revert.
7281 * d-namespace.c: Revert.
7282 * d-lang.c: Revert.
7283 * ctf.c: Revert.
7284 * csky-tdep.c: Revert.
7285 * csky-linux-tdep.c: Revert.
7286 * cris-tdep.c: Revert.
7287 * cris-linux-tdep.c: Revert.
7288 * cp-valprint.c: Revert.
7289 * cp-support.c: Revert.
7290 * cp-namespace.c: Revert.
7291 * cp-abi.c: Revert.
7292 * corelow.c: Revert.
7293 * corefile.c: Revert.
7294 * continuations.c: Revert.
7295 * completer.h: Revert.
7296 * completer.c: Revert.
7297 * complaints.c: Revert.
7298 * coffread.c: Revert.
7299 * coff-pe-read.c: Revert.
7300 * cli-out.h: Revert.
7301 * cli-out.c: Revert.
7302 * charset.c: Revert.
7303 * c-varobj.c: Revert.
7304 * c-valprint.c: Revert.
7305 * c-typeprint.c: Revert.
7306 * c-lang.c: Revert.
7307 * buildsym.c: Revert.
7308 * buildsym-legacy.c: Revert.
7309 * build-id.h: Revert.
7310 * build-id.c: Revert.
7311 * btrace.c: Revert.
7312 * bsd-uthread.c: Revert.
7313 * breakpoint.h: Revert.
7314 * breakpoint.c: Revert.
7315 * break-catch-throw.c: Revert.
7316 * break-catch-syscall.c: Revert.
7317 * break-catch-sig.c: Revert.
7318 * blockframe.c: Revert.
7319 * block.c: Revert.
7320 * bfin-tdep.c: Revert.
7321 * bfin-linux-tdep.c: Revert.
7322 * bfd-target.c: Revert.
7323 * bcache.c: Revert.
7324 * ax-general.c: Revert.
7325 * ax-gdb.h: Revert.
7326 * ax-gdb.c: Revert.
7327 * avr-tdep.c: Revert.
7328 * auxv.c: Revert.
7329 * auto-load.c: Revert.
7330 * arm-wince-tdep.c: Revert.
7331 * arm-tdep.c: Revert.
7332 * arm-symbian-tdep.c: Revert.
7333 * arm-pikeos-tdep.c: Revert.
7334 * arm-obsd-tdep.c: Revert.
7335 * arm-nbsd-tdep.c: Revert.
7336 * arm-nbsd-nat.c: Revert.
7337 * arm-linux-tdep.c: Revert.
7338 * arm-linux-nat.c: Revert.
7339 * arm-fbsd-tdep.c: Revert.
7340 * arm-fbsd-nat.c: Revert.
7341 * arm-bsd-tdep.c: Revert.
7342 * arch-utils.c: Revert.
7343 * arc-tdep.c: Revert.
7344 * arc-newlib-tdep.c: Revert.
7345 * annotate.h: Revert.
7346 * annotate.c: Revert.
7347 * amd64-windows-tdep.c: Revert.
7348 * amd64-windows-nat.c: Revert.
7349 * amd64-tdep.c: Revert.
7350 * amd64-sol2-tdep.c: Revert.
7351 * amd64-obsd-tdep.c: Revert.
7352 * amd64-obsd-nat.c: Revert.
7353 * amd64-nbsd-tdep.c: Revert.
7354 * amd64-nbsd-nat.c: Revert.
7355 * amd64-nat.c: Revert.
7356 * amd64-linux-tdep.c: Revert.
7357 * amd64-linux-nat.c: Revert.
7358 * amd64-fbsd-tdep.c: Revert.
7359 * amd64-fbsd-nat.c: Revert.
7360 * amd64-dicos-tdep.c: Revert.
7361 * amd64-darwin-tdep.c: Revert.
7362 * amd64-bsd-nat.c: Revert.
7363 * alpha-tdep.c: Revert.
7364 * alpha-obsd-tdep.c: Revert.
7365 * alpha-nbsd-tdep.c: Revert.
7366 * alpha-mdebug-tdep.c: Revert.
7367 * alpha-linux-tdep.c: Revert.
7368 * alpha-linux-nat.c: Revert.
7369 * alpha-bsd-tdep.c: Revert.
7370 * alpha-bsd-nat.c: Revert.
7371 * aix-thread.c: Revert.
7372 * agent.c: Revert.
7373 * addrmap.c: Revert.
7374 * ada-varobj.c: Revert.
7375 * ada-valprint.c: Revert.
7376 * ada-typeprint.c: Revert.
7377 * ada-tasks.c: Revert.
7378 * ada-lang.c: Revert.
7379 * aarch64-tdep.c: Revert.
7380 * aarch64-ravenscar-thread.c: Revert.
7381 * aarch64-newlib-tdep.c: Revert.
7382 * aarch64-linux-tdep.c: Revert.
7383 * aarch64-linux-nat.c: Revert.
7384 * aarch64-fbsd-tdep.c: Revert.
7385 * aarch64-fbsd-nat.c: Revert.
7386 * aarch32-linux-nat.c: Revert.
7387
d55e5aa6
TT
73882019-04-05 Tom Tromey <tom@tromey.com>
7389
7390 * ft32-tdep.c: Sort headers.
7391 * frv-tdep.c: Sort headers.
7392 * frv-linux-tdep.c: Sort headers.
7393 * frame.c: Sort headers.
7394 * frame-unwind.c: Sort headers.
7395 * frame-base.c: Sort headers.
7396 * fork-child.c: Sort headers.
7397 * findvar.c: Sort headers.
7398 * findcmd.c: Sort headers.
7399 * filesystem.c: Sort headers.
7400 * filename-seen-cache.h: Sort headers.
7401 * filename-seen-cache.c: Sort headers.
7402 * fbsd-tdep.c: Sort headers.
7403 * fbsd-nat.h: Sort headers.
7404 * fbsd-nat.c: Sort headers.
7405 * f-valprint.c: Sort headers.
7406 * f-typeprint.c: Sort headers.
7407 * f-lang.c: Sort headers.
7408 * extension.h: Sort headers.
7409 * extension.c: Sort headers.
7410 * extension-priv.h: Sort headers.
7411 * expprint.c: Sort headers.
7412 * exec.h: Sort headers.
7413 * exec.c: Sort headers.
7414 * exceptions.c: Sort headers.
7415 * event-top.c: Sort headers.
7416 * event-loop.c: Sort headers.
7417 * eval.c: Sort headers.
7418 * elfread.c: Sort headers.
7419 * dwarf2read.h: Sort headers.
7420 * dwarf2read.c: Sort headers.
7421 * dwarf2loc.c: Sort headers.
7422 * dwarf2expr.h: Sort headers.
7423 * dwarf2expr.c: Sort headers.
7424 * dwarf2-frame.c: Sort headers.
7425 * dwarf2-frame-tailcall.c: Sort headers.
7426 * dwarf-index-write.h: Sort headers.
7427 * dwarf-index-write.c: Sort headers.
7428 * dwarf-index-common.c: Sort headers.
7429 * dwarf-index-cache.h: Sort headers.
7430 * dwarf-index-cache.c: Sort headers.
7431 * dummy-frame.c: Sort headers.
7432 * dtrace-probe.c: Sort headers.
7433 * disasm.h: Sort headers.
7434 * disasm.c: Sort headers.
7435 * disasm-selftests.c: Sort headers.
7436 * dictionary.c: Sort headers.
7437 * dicos-tdep.c: Sort headers.
7438 * demangle.c: Sort headers.
7439 * dcache.h: Sort headers.
7440 * dcache.c: Sort headers.
7441 * darwin-nat.h: Sort headers.
7442 * darwin-nat.c: Sort headers.
7443 * darwin-nat-info.c: Sort headers.
7444 * d-valprint.c: Sort headers.
7445 * d-namespace.c: Sort headers.
7446 * d-lang.c: Sort headers.
7447 * ctf.c: Sort headers.
7448 * csky-tdep.c: Sort headers.
7449 * csky-linux-tdep.c: Sort headers.
7450 * cris-tdep.c: Sort headers.
7451 * cris-linux-tdep.c: Sort headers.
7452 * cp-valprint.c: Sort headers.
7453 * cp-support.c: Sort headers.
7454 * cp-namespace.c: Sort headers.
7455 * cp-abi.c: Sort headers.
7456 * corelow.c: Sort headers.
7457 * corefile.c: Sort headers.
7458 * continuations.c: Sort headers.
7459 * completer.h: Sort headers.
7460 * completer.c: Sort headers.
7461 * complaints.c: Sort headers.
7462 * coffread.c: Sort headers.
7463 * coff-pe-read.c: Sort headers.
7464 * cli-out.h: Sort headers.
7465 * cli-out.c: Sort headers.
7466 * charset.c: Sort headers.
7467 * c-varobj.c: Sort headers.
7468 * c-valprint.c: Sort headers.
7469 * c-typeprint.c: Sort headers.
7470 * c-lang.c: Sort headers.
7471 * buildsym.c: Sort headers.
7472 * buildsym-legacy.c: Sort headers.
7473 * build-id.h: Sort headers.
7474 * build-id.c: Sort headers.
7475 * btrace.c: Sort headers.
7476 * bsd-uthread.c: Sort headers.
7477 * breakpoint.h: Sort headers.
7478 * breakpoint.c: Sort headers.
7479 * break-catch-throw.c: Sort headers.
7480 * break-catch-syscall.c: Sort headers.
7481 * break-catch-sig.c: Sort headers.
7482 * blockframe.c: Sort headers.
7483 * block.c: Sort headers.
7484 * bfin-tdep.c: Sort headers.
7485 * bfin-linux-tdep.c: Sort headers.
7486 * bfd-target.c: Sort headers.
7487 * bcache.c: Sort headers.
7488 * ax-general.c: Sort headers.
7489 * ax-gdb.h: Sort headers.
7490 * ax-gdb.c: Sort headers.
7491 * avr-tdep.c: Sort headers.
7492 * auxv.c: Sort headers.
7493 * auto-load.c: Sort headers.
7494 * arm-wince-tdep.c: Sort headers.
7495 * arm-tdep.c: Sort headers.
7496 * arm-symbian-tdep.c: Sort headers.
7497 * arm-pikeos-tdep.c: Sort headers.
7498 * arm-obsd-tdep.c: Sort headers.
7499 * arm-nbsd-tdep.c: Sort headers.
7500 * arm-nbsd-nat.c: Sort headers.
7501 * arm-linux-tdep.c: Sort headers.
7502 * arm-linux-nat.c: Sort headers.
7503 * arm-fbsd-tdep.c: Sort headers.
7504 * arm-fbsd-nat.c: Sort headers.
7505 * arm-bsd-tdep.c: Sort headers.
7506 * arch-utils.c: Sort headers.
7507 * arc-tdep.c: Sort headers.
7508 * arc-newlib-tdep.c: Sort headers.
7509 * annotate.h: Sort headers.
7510 * annotate.c: Sort headers.
7511 * amd64-windows-tdep.c: Sort headers.
7512 * amd64-windows-nat.c: Sort headers.
7513 * amd64-tdep.c: Sort headers.
7514 * amd64-sol2-tdep.c: Sort headers.
7515 * amd64-obsd-tdep.c: Sort headers.
7516 * amd64-obsd-nat.c: Sort headers.
7517 * amd64-nbsd-tdep.c: Sort headers.
7518 * amd64-nbsd-nat.c: Sort headers.
7519 * amd64-nat.c: Sort headers.
7520 * amd64-linux-tdep.c: Sort headers.
7521 * amd64-linux-nat.c: Sort headers.
7522 * amd64-fbsd-tdep.c: Sort headers.
7523 * amd64-fbsd-nat.c: Sort headers.
7524 * amd64-dicos-tdep.c: Sort headers.
7525 * amd64-darwin-tdep.c: Sort headers.
7526 * amd64-bsd-nat.c: Sort headers.
7527 * alpha-tdep.c: Sort headers.
7528 * alpha-obsd-tdep.c: Sort headers.
7529 * alpha-nbsd-tdep.c: Sort headers.
7530 * alpha-mdebug-tdep.c: Sort headers.
7531 * alpha-linux-tdep.c: Sort headers.
7532 * alpha-linux-nat.c: Sort headers.
7533 * alpha-bsd-tdep.c: Sort headers.
7534 * alpha-bsd-nat.c: Sort headers.
7535 * aix-thread.c: Sort headers.
7536 * agent.c: Sort headers.
7537 * addrmap.c: Sort headers.
7538 * ada-varobj.c: Sort headers.
7539 * ada-valprint.c: Sort headers.
7540 * ada-typeprint.c: Sort headers.
7541 * ada-tasks.c: Sort headers.
7542 * ada-lang.c: Sort headers.
7543 * aarch64-tdep.c: Sort headers.
7544 * aarch64-ravenscar-thread.c: Sort headers.
7545 * aarch64-newlib-tdep.c: Sort headers.
7546 * aarch64-linux-tdep.c: Sort headers.
7547 * aarch64-linux-nat.c: Sort headers.
7548 * aarch64-fbsd-tdep.c: Sort headers.
7549 * aarch64-fbsd-nat.c: Sort headers.
7550 * aarch32-linux-nat.c: Sort headers.
7551
699bd4cf
TT
75522019-04-04 Tom Tromey <tom@tromey.com>
7553
7554 * varobj.c (varobj_create): Update.
7555 * rust-exp.y (struct rust_parser) <update_innermost_block,
7556 lookup_symbol>: New methods.
7557 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
7558 Rename.
7559 (rust_parser::rust_lookup_type)
7560 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7561 * printcmd.c (display_command, do_one_display): Update.
7562 * parser-defs.h (struct parser_state) <parser_state>: Add
7563 "tracker" parameter.
7564 (block_tracker): New member.
7565 (class innermost_block_tracker) <innermost_block_tracker>: Add
7566 "types" parameter.
7567 <reset>: Remove method.
7568 (innermost_block): Don't declare.
7569 (null_post_parser): Update.
7570 * parse.c (innermost_block): Remove global.
7571 (write_dollar_variable): Update.
7572 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
7573 Remove "tracker_types" parameter.
7574 (parse_expression): Add "tracker" parameter.
7575 (parse_expression_for_completion): Update.
7576 (null_post_parser): Add "tracker" parameter.
7577 * p-exp.y: Update rules.
7578 * m2-exp.y: Update rules.
7579 * language.h (struct language_defn) <la_post_parser>: Add
7580 "tracker" parameter.
7581 * go-exp.y: Update rules.
7582 * f-exp.y: Update rules.
7583 * expression.h (parse_expression, parse_exp_1): Add "tracker"
7584 parameter.
7585 * d-exp.y: Update rules.
7586 * c-exp.y: Update rules.
7587 * breakpoint.c (set_breakpoint_condition): Create an
7588 innermost_block_tracker.
7589 (watch_command_1): Likewise.
7590 * ada-lang.c (resolve): Add "tracker" parameter.
7591 (resolve_subexp): Likewise.
7592 * ada-exp.y (write_var_from_sym): Update.
7593
dac43e32
TT
75942019-04-04 Tom Tromey <tom@tromey.com>
7595
7596 * type-stack.h: New file.
7597 * type-stack.c: New file.
7598 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
7599 type-stack.h.
7600 (insert_into_type_stack, insert_type, push_type, push_type_int)
7601 (insert_type_address_space, pop_type, pop_type_int)
7602 (pop_typelist, pop_type_stack, append_type_stack)
7603 (push_type_stack, get_type_stack, push_typelist)
7604 (follow_type_instance_flags, follow_types): Don't declare.
7605 * parse.c (type_stack): Remove global.
7606 (parse_exp_in_context): Update.
7607 (insert_into_type_stack, insert_type, push_type, push_type_int)
7608 (insert_type_address_space, pop_type, pop_type_int)
7609 (pop_typelist, pop_type_stack, append_type_stack)
7610 (push_type_stack, get_type_stack, push_typelist)
7611 (follow_type_instance_flags, follow_types): Remove (moved to
7612 type-stack.c).
7613 * f-exp.y (type_stack): New global.
7614 Update rules.
7615 (push_kind_type, f_parse): Update.
7616 * d-exp.y (type_stack): New global.
7617 Update rules.
7618 (d_parse): Update.
7619 * c-exp.y (struct c_parse_state) <type_stack>: New member.
7620 Update rules.
7621 * Makefile.in (COMMON_SFILES): Add type-stack.c.
7622 (HFILES_NO_SRCDIR): Add type-stack.h.
7623
2a612529
TT
76242019-04-04 Tom Tromey <tom@tromey.com>
7625
7626 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
7627 (rust_parser::convert_ast_to_expression, rust_parse)
7628 (rust_lex_test_completion, rust_lex_tests): Update.
7629 * parser-defs.h (struct expr_completion_state): New.
7630 (struct parser_state) <parser_state>: Add completion parameter.
7631 <mark_struct_expression, mark_completion_tag>: New methods.
7632 <parse_completion, m_completion_state>: New members.
7633 (prefixify_expression, null_post_parser): Update.
7634 (mark_struct_expression, mark_completion_tag): Don't declare.
7635 * parse.c (parse_completion, expout_last_struct)
7636 (expout_tag_completion_type, expout_completion_name): Remove
7637 globals.
7638 (parser_state::mark_struct_expression)
7639 (parser_state::mark_completion_tag): Now methods.
7640 (prefixify_expression): Add last_struct parameter.
7641 (prefixify_subexp): Likewise.
7642 (parse_exp_1): Update.
7643 (parse_exp_in_context): Add cstate parameter. Update.
7644 (parse_expression_for_completion): Create an
7645 expr_completion_state.
7646 (null_post_parser): Add "completion" parameter.
7647 * p-exp.y: Update rules.
7648 (yylex): Update.
7649 * language.h (struct language_defn) <la_post_parser>: Add
7650 "completing" parameter.
7651 * go-exp.y: Update rules.
7652 (lex_one_token): Update.
7653 * expression.h (parse_completion): Don't declare.
7654 * d-exp.y: Update rules.
7655 (lex_one_token): Update rules.
7656 * c-exp.y: Update rules.
7657 (lex_one_token): Update.
7658 * ada-lang.c (resolve): Add "parse_completion" parameter.
7659 (resolve_subexp): Likewise.
7660 (ada_resolve_function): Likewise.
7661
43476f0b
TT
76622019-04-04 Tom Tromey <tom@tromey.com>
7663
7664 * parser-defs.h (struct parser_state) <start_arglist,
7665 end_arglist>: New methods.
7666 <arglist_len, m_funcall_chain>: New members.
7667 (arglist_len, start_arglist, end_arglist): Don't declare.
7668 * parse.c (arglist_len, funcall_chain): Remove global.
7669 (start_arglist, end_arglist): Remove functions.
7670 (parse_exp_in_context): Update.
7671 * p-exp.y: Update rules.
7672 * m2-exp.y: Update rules.
7673 * go-exp.y: Update rules.
7674 * f-exp.y: Update rules.
7675 * d-exp.y: Update rules.
7676 * c-exp.y: Update rules.
7677
5776fca3
TT
76782019-04-04 Tom Tromey <tom@tromey.com>
7679
7680 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
7681 lex_operator, push_back>: New methods.
7682 Update all rules.
7683 (rust_parser::lex_hex, lex_escape): Rename and update.
7684 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
7685 (rust_parser::lex_operator): Rename and update.
7686 (rust_parser::lex_number, rustyylex, rustyyerror)
7687 (rust_lex_test_init, rust_lex_test_sequence)
7688 (rust_lex_test_push_back, rust_lex_tests): Update.
7689 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
7690 parameter.
7691 <lexptr, prev_lexptr>: New members.
7692 (lexptr, prev_lexptr): Don't declare.
7693 * parse.c (lexptr, prev_lexptr): Remove globals.
7694 (parse_exp_in_context): Update.
7695 * p-exp.y (yylex, yyerror): Update.
7696 * m2-exp.y (parse_number, yylex, yyerror): Update.
7697 * go-exp.y (lex_one_token, yyerror): Update.
7698 * f-exp.y (match_string_literal, yylex, yyerror): Update.
7699 * d-exp.y (lex_one_token, yyerror): Update.
7700 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
7701 (lex_one_token, yyerror): Update.
7702 * ada-lex.l (YY_INPUT): Update.
7703 (rewind_to_char): Update.
7704 * ada-exp.y (yyerror): Update.
7705
8621b685
TT
77062019-04-04 Tom Tromey <tom@tromey.com>
7707
7708 * rust-exp.y (rustyylex, rust_lex_tests): Update.
7709 * parser-defs.h (struct parser_state) <parser_state>: Add new
7710 parameter.
7711 <comma_terminates>: New member.
7712 (comma_terminates): Don't declare global.
7713 * parse.c (comma_terminates): Remove global.
7714 (parse_exp_in_context): Update.
7715 * p-exp.y (yylex): Update.
7716 * m2-exp.y (yylex): Update.
7717 * go-exp.y (lex_one_token): Update.
7718 * f-exp.y (yylex): Update.
7719 * d-exp.y (lex_one_token): Update.
7720 * c-exp.y (lex_one_token): Update.
7721 * ada-lex.l: Update.
7722
28aaf3fd
TT
77232019-04-04 Tom Tromey <tom@tromey.com>
7724
7725 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
7726 (rustyylex, rust_lex_test_init, rust_lex_test_one)
7727 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
7728 * parser-defs.h (paren_depth): Don't declare.
7729 * parse.c (paren_depth): Remove global.
7730 (parse_exp_in_context): Update.
7731 * p-exp.y (paren_depth): New global.
7732 (pascal_parse): Initialize it.
7733 * m2-exp.y (paren_depth): New global.
7734 (m2_parse): Initialize it.
7735 * go-exp.y (paren_depth): New global.
7736 (go_parse): Initialize it.
7737 * f-exp.y (paren_depth): New global.
7738 (f_parse): Initialize it.
7739 * d-exp.y (paren_depth): New global.
7740 (d_parse): Initialize it.
7741 * c-exp.y (paren_depth): New global.
7742 (c_parse): Initialize it.
7743 * ada-lex.l (paren_depth): New global.
7744 (lexer_init): Initialize it.
7745
1e58a4a4
TT
77462019-04-04 Tom Tromey <tom@tromey.com>
7747
7748 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
7749 (rust_parser::convert_ast_to_type)
7750 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
7751 * parser-defs.h (struct parser_state) <parser_state>: Add
7752 parameters. Initialize new members.
7753 <expression_context_block, expression_context_pc>: New members.
7754 * parse.c (expression_context_block, expression_context_pc):
7755 Remove globals.
7756 (parse_exp_in_context): Update.
7757 * p-exp.y: Update all rules.
7758 (yylex): Update.
7759 * m2-exp.y: Update all rules.
7760 (yylex): Update.
7761 * go-exp.y (yylex): Update.
7762 * f-exp.y (yylex): Update.
7763 * d-exp.y: Update all rules.
7764 (yylex): Update.
7765 * c-exp.y: Update all rules.
7766 (lex_one_token, classify_name, yylex, c_parse): Update.
7767 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
7768
37eedb39
TT
77692019-04-04 Tom Tromey <tom@tromey.com>
7770
7771 * gdbarch.h, gdbarch.c: Rebuild.
7772 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
7773 * stap-probe.h:
7774 (struct stap_parse_info): Replace "parser_state" with
7775 "expr_builder".
7776 * parser-defs.h (struct expr_builder): Rename from "parser_state".
7777 (parser_state): New class.
7778 * parse.c (expr_builder): Rename.
7779 (expr_builder::release): Rename.
7780 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
7781 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
7782 (write_exp_elt_longcst, write_exp_elt_floatcst)
7783 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
7784 (write_exp_string_vector, write_exp_bitstring)
7785 (write_exp_msymbol, mark_struct_expression)
7786 (write_dollar_variable)
7787 (insert_type_address_space, increase_expout_size): Replace
7788 "parser_state" with "expr_builder".
7789 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
7790 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
7791 "parser_state" with "expr_builder".
7792
73923d7e
TT
77932019-04-04 Tom Tromey <tom@tromey.com>
7794
7795 * rust-exp.y: Replace "parse_language" with method call.
7796 * p-exp.y:
7797 (yylex): Replace "parse_language" with method call.
7798 * m2-exp.y:
7799 (yylex): Replace "parse_language" with method call.
7800 * go-exp.y (classify_name): Replace "parse_language" with method
7801 call.
7802 * f-exp.y (yylex): Replace "parse_language" with method call.
7803 * d-exp.y (lex_one_token): Replace "parse_language" with method
7804 call.
7805 * c-exp.y:
7806 (lex_one_token, classify_name, yylex): Replace "parse_language"
7807 with method call.
7808 * ada-exp.y (find_primitive_type, type_char)
7809 (type_system_address): Replace "parse_language" with method call.
7810
fa9f5be6
TT
78112019-04-04 Tom Tromey <tom@tromey.com>
7812
7813 * rust-exp.y: Replace "parse_gdbarch" with method call.
7814 * parse.c (write_dollar_variable, insert_type_address_space):
7815 Replace "parse_gdbarch" with method call.
7816 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
7817 call.
7818 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
7819 call.
7820 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
7821 "parse_gdbarch" with method call.
7822 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
7823 with method call.
7824 * f-exp.y (parse_type, parse_f_type, yylex): Replace
7825 "parse_gdbarch" with method call.
7826 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
7827 "parse_gdbarch" with method call.
7828 * c-exp.y (parse_type, parse_number, classify_name): Replace
7829 "parse_gdbarch" with method call.
7830 * ada-lex.l: Replace "parse_gdbarch" with method call.
7831 * ada-exp.y (parse_type, find_primitive_type, type_char)
7832 (type_system_address): Replace "parse_gdbarch" with method call.
7833
1201a264
TT
78342019-04-04 Tom Tromey <tom@tromey.com>
7835
7836 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7837 * stap-probe.c (stap_parse_argument): Update.
7838 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
7839 initial_size parameter.
7840 * rust-exp.y (rust_lex_tests): Update.
7841 * parse.c (parser_state): Update.
7842 (parse_exp_in_context): Update.
7843 * parser-defs.h (struct parser_state) <parser_state>: Remove
7844 "initial_size" parameter.
7845
e3980ce2
TT
78462019-04-04 Tom Tromey <tom@tromey.com>
7847
7848 * parser-defs.h (increase_expout_size): Don't declare.
7849 * parse.c (increase_expout_size): Now static.
7850
e9f8e3f1
TS
78512019-04-04 Thomas Schwinge <thomas@codesourcery.com>
7852
7853 * gnu-nat.c (gnu_nat_target::wait): Fix
7854 target_waitstatus_to_string call.
7855
d7df6549
AB
78562019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7857
7858 * eval.c (evaluate_subexp_standard): Handle internal functions
7859 during Fortran function call handling.
7860
8bdc1658
AB
78612019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
7862
7863 * NEWS: Mention new internal functions.
7864 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
7865 (read_base_type): Use dwarf2_init_complex_target_type.
7866 * value.c (creal_internal_fn): New function.
7867 (cimag_internal_fn): New function.
7868 (_initialize_values): Register new internal functions.
7869
c29705b7
PW
78702019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7871
7872 * infrun.c (stop_all_threads): If debug_infrun, always
7873 trace the wait status after wait_one, using
7874 target_waitstatus_to_string and target_pid_to_str.
7875 (handle_inferior_event): Replace various trace of
7876 wait status kind by a single trace.
7877 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
7878 wait status kind image by target_waitstatus_to_string.
7879 * target/waitstatus.c (target_waitstatus_to_string): Fix
7880 obsolete comment.
7881
05caa1d2
TT
78822019-04-01 Tom Tromey <tromey@adacore.com>
7883
7884 PR symtab/23331:
7885 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
7886
9d1447e0
SDJ
78872019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
7888 Pedro Alves <palves@redhat.com>
7889
7890 * top.c (quit_force): Call 'finalize_values'.
7891 * value.c (finalize_values): New function.
7892 * value.h (finalize_values): Declare.
7893
7734102d
EZ
78942019-03-30 Eli Zaretskii <eliz@gnu.org>
7895
7896 * NEWS: Announce $_gdb_major and $_gdb_minor.
7897
7898 * top.c (init_gdb_version_vars): New function.
7899 (gdb_init): Call init_gdb_version_vars.
7900
188e1fa9
TT
79012019-03-29 Tom Tromey <tromey@adacore.com>
7902
7903 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
7904 help text. Remove dead code.
7905
2880242d
KS
79062019-03-29 Keith Seitz <keiths@redhat.com>
7907
7908 From Siddhesh Poyarekar:
7909 * f-lang.h (f77_get_upperbound): Return LONGEST.
7910 (f77_get_lowerbound): Likewise.
7911 * f-typeprint.c (f_type_print_varspec_suffix): Expand
7912 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
7913 print them.
7914 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
7915 plongest to format print it.
7916 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
7917 (f77_get_upperbound): Likewise.
7918 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
7919 LOWER_BOUND to LONGEST.
7920 (f77_create_arrayprint_offset_tbl): Likewise.
7921
cc1defb1
KS
79222019-03-29 Keith Seitz <keiths@redhat.com>
7923
7924 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7925 %s/pulongest for TYPE_LENGTH instead of %d in format
7926 strings.
7927 * ada-typerint.c (ada_print_type): Likewise.
7928 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
7929 * compile/compile-c-support.c (generate_register_struct): Likewise.
7930 * gdbtypes.c (recursive_dump_type): Likewise.
7931 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
7932 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
7933 instead of %d in format strings.
7934 * riscv-tdep.c (riscv_type_alignment): Cast second argument
7935 to std::min to ULONGEST.
7936 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
7937 instead of %d in format strings.
7938 * tracepoint.c (info_scope_command): Likewise.
7939 * typeprint.c (print_offset_data::update)
7940 (print_offset_data::finish): Likewise.
7941 * xtensa-tdep.c (xtensa_store_return_value)
7942 (xtensa_push_dummy_call): Likewise.
7943
e432ccf1
JT
79442019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
7945
7946 * windows-nat.c (display_selector): Fixed format specifications
7947 for 64-bit Cygwin.
7948
65d2b333
PW
79492019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7950
7951 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
7952
f489207e
SL
79532019-03-28 Sandra Loosemore <sandra@codesourcery.com>
7954
7955 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
7956 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
7957 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
7958 (nios2_linux_init_abi): Install it.
7959
bffa1015
AH
79602019-03-28 Alan Hayward <alan.hayward@arm.com>
7961
7962 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
7963
fc96163a
AH
79642019-03-28 Alan Hayward <alan.hayward@arm.com>
7965
7966 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
7967
20dc7e9b
PW
79682019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7969 Tom Tromey <tromey@adacore.com>
7970
7971 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
7972
7f5331a8
JB
79732019-03-26 Joel Brobecker <brobecker@adacore.com>
7974
7975 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
7976 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
7977 method to compute the bounds of range types. Also print "[evaluated]"
7978 if the bounds' values come from a dynamic evaluation.
7979
18c77628
AB
79802019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
7981
7982 * cp-valprint.c (cp_print_value_fields): Don't print trailing
7983 whitespace when pretty printing is on.
7984
53c973f2
AH
79852019-03-26 Alan Hayward <alan.hayward@arm.com>
7986
e79be6e5 7987 * ppc-linux-nat.c: Add include.
53c973f2 7988
d851aa71
AH
79892019-03-26 Alan Hayward <alan.hayward@arm.com>
7990
e79be6e5 7991 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 7992
2fe7bab7
AH
79932019-03-26 Alan Hayward <alan.hayward@arm.com>
7994
e79be6e5 7995 * arm-linux-nat.c: Add include.
2fe7bab7 7996
068ef30e
SM
79972019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
7998
7999 * source-cache.c (source_cache::get_source_lines): Re-read
8000 fullname after calling open_source_file.
8001
81a24d04
JB
80022019-03-25 John Baldwin <jhb@FreeBSD.org>
8003
8004 * NEWS: Mention TLS support for FreeBSD.
8005
79e7ae11
TT
80062019-03-25 Tom Tromey <tromey@adacore.com>
8007
8008 * minsyms.c (BUNCH_SIZE): Update comment.
8009 (~minimal_symbol_reader): Remove old comment.
8010 (compact_minimal_symbols): Update comment.
8011 (minimal_symbol_reader::install): Remove old comment. Update
8012 other comments.
8013
d45963c2
AH
80142019-03-25 Alan Hayward <alan.hayward@arm.com>
8015
8016 * s390-linux-nat.c: Add include.
8017
0f83012e
AH
80182019-03-25 Alan Hayward <alan.hayward@arm.com>
8019
8020 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
8021 Call linux_get_hwcap.
8022 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8023 Likewise.
8024 (aarch64_linux_get_hwcap): Remove function.
8025 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
8026 declaration.
8027 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
8028 linux_get_hwcap.
8029 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
8030 * linux-tdep.c (linux_get_hwcap): Add function.
8031 (linux_get_hwcap2): Likewise.
8032 * linux-tdep.h (linux_get_hwcap): Add declaration.
8033 (linux_get_hwcap2): Likewise.
8034 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
8035 (ppc_linux_get_hwcap2): Likewise.
8036 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
8037 linux_get_hwcap.
8038 (ppc_linux_nat_target::insert_watchpoint): Likewise.
8039 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
8040 (ppc_linux_nat_target::read_description): Likewise.
8041 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
8042 * s390-linux-nat.c: Likewise.
8043 * s390-linux-tdep.c (s390_core_read_description): Likewise.
8044
6640a367
TT
80452019-03-24 Tom Tromey <tom@tromey.com>
8046
8047 * ada-lang.c (standard_lookup): Simplify initialization.
8048 (ada_lookup_symbol_nonlocal): Simplify return.
8049 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
8050 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
8051 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
8052 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
8053 initialization.
8054 * solib.c (solib_global_lookup): Simplify.
8055 * symtab.c (null_block_symbol): Remove.
8056 (symbol_cache_lookup): Simplify returns.
8057 (lookup_language_this): Simplify returns.
8058 (lookup_symbol_aux): Simplify return.
8059 (lookup_local_symbol): Simplify returns.
8060 (lookup_global_symbol_from_objfile): Simplify return.
8061 (lookup_symbol_in_objfile_symtabs)
8062 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
8063 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
8064 (lookup_static_symbol, lookup_global_symbol): Simplify return.
8065 * cp-namespace.c (cp_lookup_bare_symbol)
8066 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
8067 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
8068 (cp_lookup_nested_symbol): Don't use null_block_symbol.
8069 (cp_lookup_symbol_via_imports): Simplify initialization.
8070 (find_symbol_in_baseclass): Likewise.
8071 * symtab.h (null_block_symbol): Remove.
8072 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
8073 (d_lookup_nested_symbol, d_lookup_symbol_imports)
8074 (d_lookup_symbol_module): Likewise.
8075 (find_symbol_in_baseclass): Simplify initialization.
8076
a930ebcd
TT
80772019-03-24 Tom Tromey <tom@tromey.com>
8078
8079 * expression.h: Don't include symtab.h.
8080 (struct block): Forward declare.
8081
582942f4
TT
80822019-03-24 Tom Tromey <tom@tromey.com>
8083
8084 * c-exp.y (typebase): Remove casts.
8085 * gdbtypes.c (lookup_unsigned_typename, )
8086 (lookup_signed_typename): Remove cast.
8087 * eval.c (parse_to_comma_and_eval): Remove cast.
8088 * parse.c (write_dollar_variable): Remove cast.
8089 * block.h (struct block) <superblock>: Now const.
8090 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
8091 * psymtab.c (psym_map_matching_symbols): Make "block" const.
8092 (map_block): Make "block" const.
8093 * symfile.h (struct quick_symbol_functions)
8094 <map_matching_symbols>: Constify block argument to "callback".
8095 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
8096 const.
8097 (find_pc_sect_compunit_symtab): Make "b" const.
8098 (find_symbol_at_address): Likewise.
8099 (search_symbols): Likewise.
8100 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
8101 (dw2_debug_names_lookup_symbol): Likewise.
8102 (dw2_map_matching_symbols): Update.
8103 * p-valprint.c (pascal_val_print): Remove "block".
8104 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
8105 (aux_add_nonlocal_symbols): Make "block" const.
8106 (resolve_subexp): Remove cast.
8107 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
8108 const.
8109 (iterate_over_file_blocks): Likewise.
8110 * f-exp.y (%union) <bval>: Remove.
8111 * coffread.c (patch_opaque_types): Make "b" const.
8112 * spu-tdep.c (spu_catch_start): Make "block" const.
8113 * c-valprint.c (print_unpacked_pointer): Remove "block".
8114 * symmisc.c (dump_symtab_1): Make "b" const.
8115 (block_depth): Make "block" const.
8116 * d-exp.y (%union) <bval>: Remove.
8117 * cp-support.h (cp_lookup_rtti_type): Update.
8118 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
8119 * psymtab.c (psym_lookup_symbol): Make "block" const.
8120 (maintenance_check_psymtabs): Make "b" const.
8121 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
8122 (enumerate_locals, enumerate_args): Update.
8123 * python/py-symtab.c (stpy_global_block): Make "block" const.
8124 (stpy_static_block): Likewise.
8125 * inline-frame.c (block_starting_point_at): Make "new_block"
8126 const.
8127 * block.c (find_block_in_blockvector): Make return type const.
8128 (blockvector_for_pc_sect): Make "b" const.
8129 (find_block_in_blockvector): Make "b" const.
8130
7ad417dd
TT
81312019-03-23 Tom Tromey <tom@tromey.com>
8132
8133 * varobj.c (varobj_create): Update.
8134 * symfile.c (clear_symtab_users): Don't reset innermost_block.
8135 * printcmd.c (display_command, do_one_display): Don't reset
8136 innermost_block.
8137 * parser-defs.h (enum innermost_block_tracker_type): Move to
8138 expression.h.
8139 (innermost_block): Update comment.
8140 * parse.c (parse_exp_1): Add tracker_types parameter.
8141 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
8142 tracker_types parameter. Reset innermost_block.
8143 (parse_exp_in_context): Remove.
8144 (parse_expression_for_completion): Update.
8145 * objfiles.c (~objfile): Don't reset expression_context_block or
8146 innermost_block.
8147 * expression.h (enum innermost_block_tracker_type): Move from
8148 parser-defs.h.
8149 (parse_exp_1): Add tracker_types parameter.
8150 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
8151 reset innermost_block.
8152
b366c208
TT
81532019-03-23 Tom Tromey <tom@tromey.com>
8154
8155 * objfiles.h: Include bcache.h.
8156
9bb9b2f9
TT
81572019-03-23 Tom Tromey <tom@tromey.com>
8158
8159 * linespec.c (get_current_search_block): Use
8160 scoped_restore_current_language.
8161 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
8162
59c28372
AH
81632019-03-22 Alan Hayward <alan.hayward@arm.com>
8164 Jiong Wang <jiong.wang@arm.com>
8165
8166 * aarch64-linux-tdep.c
8167 (aarch64_linux_iterate_over_regset_sections): Check for pauth
8168 section.
8169 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
8170
17e116a7
AH
81712019-03-22 Alan Hayward <alan.hayward@arm.com>
8172 Jiong Wang <jiong.wang@arm.com>
8173
8174 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
8175 instructions.
8176 (aarch64_analyze_prologue_test): Add PACIASP test.
8177 (aarch64_prologue_prev_register): Unmask PC value.
8178
11e1b75f
AH
81792019-03-22 Alan Hayward <alan.hayward@arm.com>
8180 Jiong Wang <jiong.wang@arm.com>
8181
8182 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
8183 (aarch64_dwarf2_prev_register): Unmask PC value.
8184 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
8185 (aarch64_execute_dwarf_cfa_vendor_op): Check for
8186 DW_CFA_AARCH64_negate_ra_state.
8187 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
8188
34dcc7cf
AH
81892019-03-22 Alan Hayward <alan.hayward@arm.com>
8190 Jiong Wang <jiong.wang@arm.com>
8191
8192 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
8193 registers.
8194 (aarch64_pseudo_register_name): Likewise.
8195 (aarch64_pseudo_register_type): Likewise.
8196 (aarch64_pseudo_register_reggroup_p): Likewise.
8197 (aarch64_gdbarch_init): Add pauth registers.
8198 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
8199 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
8200 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
8201 (struct gdbarch_tdep): Add regnum for ra_state.
8202
1ef53e6b
AH
82032019-03-22 Alan Hayward <alan.hayward@arm.com>
8204 Jiong Wang <jiong.wang@arm.com>
8205
8206 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
8207
76bed0fd
AH
82082019-03-22 Alan Hayward <alan.hayward@arm.com>
8209 Jiong Wang <jiong.wang@arm.com>
8210
8211 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
8212 function.
8213 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
8214 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
8215 (aarch64_gdbarch_init): Add puth registers.
8216 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
8217 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
8218 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
8219
ee4fbcfa
AH
82202019-03-22 Alan Hayward <alan.hayward@arm.com>
8221 Jiong Wang <jiong.wang@arm.com>
8222
8223 * aarch64-linux-nat.c
8224 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
8225 * aarch64-linux-tdep.c
8226 (aarch64_linux_core_read_description): Likewise.
8227 (aarch64_linux_get_hwcap): New function.
8228 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
8229 (aarch64_linux_get_hwcap): New declaration.
8230
6dc0ebde
AH
82312019-03-22 Alan Hayward <alan.hayward@arm.com>
8232 Jiong Wang <jiong.wang@arm.com>
8233
8234 * aarch64-linux-nat.c
8235 (aarch64_linux_nat_target::read_description): Add pauth param.
8236 * aarch64-linux-tdep.c
8237 (aarch64_linux_core_read_description): Likewise.
8238 * aarch64-tdep.c (struct target_desc): Add in pauth.
8239 (aarch64_read_description): Add pauth param.
8240 (aarch64_gdbarch_init): Likewise.
8241 * aarch64-tdep.h (aarch64_read_description): Likewise.
8242 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8243 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8244 * features/Makefile: Add new files.
8245 * features/aarch64-pauth.c: New file.
8246 * features/aarch64-pauth.xml: New file.
8247
595915c1
TT
82482019-03-20 Tom Tromey <tromey@adacore.com>
8249
8250 * infrun.c (handle_inferior_event): Rename from
8251 handle_inferior_event_1. Create a scoped_value_mark.
8252 (handle_inferior_event): Remove.
8253
4c7d57e7
TT
82542019-03-19 Tom Tromey <tromey@adacore.com>
8255
8256 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
8257 * infrun.h (print_stop_event): Add "displays" parameter.
8258 * infrun.c (print_stop_event): Add "displays" parameter.
8259
cb246234
PA
82602019-03-19 Pedro Alves <palves@redhat.com>
8261
8262 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
8263 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
8264 to -1. Fix TABs vs spaces.
8265 (tui_ui_out::tui_ui_out): Don't initialize fields here.
8266 * tui/tui-out.h (tui_ui_out) Add intro comments.
8267 <m_line, m_start_of_line>: In-class initialize, and add describing
8268 comment.
8269
3a0e45b2
AH
82702019-03-18 Alan Hayward <alan.hayward@arm.com>
8271
8272 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
8273 variable names.
8274 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
8275
5371b850
PA
82762019-03-18 Pedro Alves <palves@redhat.com>
8277 Eli Zaretskii <eliz@gnu.org>
8278
8279 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
8280 m_line and m_start_of_line.
8281
b17c4cd0
EZ
82822019-03-18 Eli Zaretskii <eliz@gnu.org>
8283
8284 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
8285 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
8286 it returns a newline. This fixes a regression in TU mode, whereby
8287 the next line is output on the same screen line as the user input.
8288
4bd56d18
TT
82892019-03-18 Tom Tromey <tromey@adacore.com>
8290
8291 * minsyms.c (minimal_symbol_reader::install): Remove call to
8292 obstack_blank.
8293
55c10aca
PA
82942019-03-18 Pedro Alves <palves@redhat.com>
8295
8296 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
8297 New globals.
8298 (apply_style): New, factored out from ...
8299 (apply_ansi_escape): ... this. Handle reverse video mode.
8300 (tui_set_reverse_mode): New function.
8301 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
8302 * tui/tui-winsource.c (tui_show_source_line): Use
8303 tui_set_reverse_mode instead of setting A_STANDOUT.
8304 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
8305 New setter methods.
8306
647bb750
HD
83072019-03-18 Hannes Domani <ssbssa@yahoo.de>
8308
8309 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
8310 Handle tabs.
8311
bff8c71f
TT
83122019-03-18 Tom Tromey <tromey@adacore.com>
8313
8314 * ada-lang.c (empty_array): Add "high" parameter.
8315 (ada_evaluate_subexp): Update.
8316
58785d98
ST
83172019-03-17 Sergei Trofimovich <siarheit@google.com>
8318
8319 * unittests/string_view-selftests.c: Define
8320 _initialize_string_view_selftests unconditionally.
8321
d4cbef22
ВМ
83222019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8323
8324 PR gdb/24350
8325 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
8326
fce4c071
ВМ
83272019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
8328
8329 PR gdb/24351
8330 * windows-nat.c (display_selector): Fix format specifiers.
8331
f7f0a123
EZ
83322019-03-17 Eli Zaretskii <eliz@gnu.org>
8333
8334 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
8335 tui_refill_source_window instead of tui_refresh_win, to update the
8336 current execution line. This fixes redisplay of the current line
8337 when stepping through the code with "next" or "step".
8338
ab42892f
EZ
83392019-03-16 Eli Zaretskii <eliz@gnu.org>
8340
8341 * source-cache.c (source_cache::get_source_lines): Call
8342 find_source_lines to initialize s->nlines. This fixes vertical
8343 scrolling of TUI source window when the DOWN arrow is pressed.
8344
8d8c087f
PW
83452019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8346
8347 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
8348 linux-thread-db.c (_initialize_thread_db): Likewise.
8349
798e1c30
EZ
83502019-03-16 Eli Zaretskii <eliz@gnu.org>
8351
8352 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
8353 wclrtoeol in tui_show_source_line". This reverts changes made in
8354 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
8355
eefba3da
TT
83562019-03-15 Tom Tromey <tom@tromey.com>
8357
8358 * symtab.h (struct minimal_symbol): Derive from
8359 general_symbol_info.
8360 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
8361 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8362 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8363 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8364 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
8365 (MSYMBOL_SEARCH_NAME): Update.
8366 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
8367 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
8368 * minsyms.c (minimal_symbol_reader::record_full): Update.
8369
0de2420c
TT
83702019-03-15 Tom Tromey <tom@tromey.com>
8371
8372 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
8373
042d75e4
TT
83742019-03-15 Tom Tromey <tom@tromey.com>
8375
8376 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
8377 unique_xmalloc_ptr.
8378 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
8379 Update.
8380 * minsyms.c (lookup_minimal_symbol_by_pc_section)
8381 (build_minimal_symbol_hash_tables)
8382 (minimal_symbol_reader::install): Update.
8383
db92718b
TT
83842019-03-15 Tom Tromey <tom@tromey.com>
8385
8386 * symtab.c (create_demangled_names_hash): Update.
8387 (symbol_set_names): Update.
8388 * objfiles.h (struct objfile_per_bfd_storage)
8389 <demangled_names_hash>: Now an htab_up.
8390 * objfiles.c (objfile_per_bfd_storage): Simplify.
8391
d6797f46
TT
83922019-03-15 Tom Tromey <tom@tromey.com>
8393
8394 * objfiles.h (struct objfile_per_bfd_storage): Declare
8395 destructor.
8396 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
8397 New.
8398 (get_objfile_bfd_data): Use new. Don't initialize
8399 language_of_main.
8400 (free_objfile_per_bfd_storage): Remove.
8401 (objfile_bfd_data_free, objfile::~objfile): Use delete.
8402
741d7538
TT
84032019-03-15 Tom Tromey <tom@tromey.com>
8404
8405 * symfile.c (reread_symbols): Update.
8406 * objfiles.c (objfile::objfile): Update.
8407 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
8408 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
8409 comment.
8410 (minimal_symbol_reader::install): Update.
8411 (terminate_minimal_symbol_table): Remove.
8412 * jit.c (jit_object_close_impl): Update.
8413
788c80d1
TT
84142019-03-15 Tom Tromey <tom@tromey.com>
8415
8416 * minsyms.c (minimal_symbol_reader::record_full): Remove some
8417 initializations.
8418
1b7a07cb
TT
84192019-03-15 Tom Tromey <tom@tromey.com>
8420
8421 * objfiles.h (struct objfile_per_bfd_storage)
8422 <demangled_hash_languages>: Now a bitset.
8423 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
8424 (lookup_minimal_symbol): Update.
8425
3db066bc
TT
84262019-03-15 Tom Tromey <tom@tromey.com>
8427
8428 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
8429 Don't return the symbol.
8430 * coffread.c (record_minimal_symbol): Use record_full.
8431
3fff2c37
EZ
84322019-03-14 Eli Zaretskii <eliz@gnu.org>
8433
8434 The MS-Windows port of ncurses fails to switch to a color pair if
8435 one or both of the colors are the implicit default colors. This
8436 change records the default colors when TUI is initialized, and
8437 then specifies them explicitly when a color pair uses the default
8438 colors. This allows color styling in TUI mode on MS-Windows.
8439
8440 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
8441 ncurses_norm_attr.
8442 (tui_initialize_io) [__MINGW32__]: Record the default terminal
8443 colors in ncurses_norm_attr.
8444 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
8445 "none", replace it with the default color recorded in
8446 ncurses_norm_attr.
8447
3b336828
TT
84482019-03-14 Tom Tromey <tromey@adacore.com>
8449
8450 * source-cache.h (class source_cache) <get_source_lines>: Return
8451 std::string.
8452 * source-cache.c (source_cache::extract_lines): Handle case where
8453 first_pos==npos. Return std::string.
8454 (source_cache::get_source_lines): Update.
8455
d085f989
TT
84562019-03-14 Tom Tromey <tromey@adacore.com>
8457
8458 * NEWS: Add item for "style sources" commands.
8459 * source-cache.c (source_cache::get_source_lines): Check
8460 source_styling.
8461 * cli/cli-style.c (source_styling): New global.
8462 (_initialize_cli_style): Add "style sources" commands.
8463 (show_style_sources): New function.
8464 * cli/cli-style.h (source_styling): Declare.
8465
6f11e682
TT
84662019-03-14 Pedro Alves <palves@redhat.com>
8467 Tom Tromey <tromey@adacore.com>
8468
8469 * tui/tui-winsource.h (tui_refill_source_window): Declare.
8470 * tui/tui-winsource.c (tui_refill_source_window): New function,
8471 from...
8472 (tui_horizontal_source_scroll): ... here. Move some logic.
8473 * cli/cli-style.c (set_style_enabled): Notify new observable.
8474 * tui/tui-hooks.c (tui_redisplay_source): New function.
8475 (tui_attach_detach_observers): Attach or detach
8476 tui_redisplay_source.
8477 * observable.h (source_styling_changed): New observable.
8478 * observable.c: Define source_styling_changed observable.
8479
a068643d
TT
84802019-03-13 Tom Tromey <tromey@adacore.com>
8481
8482 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
8483 (i386_gnu_nat_target::store_registers): Update.
8484 * target-debug.h (target_debug_print_std_string): New macro.
8485 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8486 * windows-tdep.c (display_one_tib): Update.
8487 * tui/tui-stack.c (tui_make_status_line): Update.
8488 * top.c (print_inferior_quit_action): Update.
8489 * thread.c (thr_try_catch_cmd): Update.
8490 (add_thread_with_info): Update.
8491 (thread_target_id_str): Update.
8492 (thr_try_catch_cmd): Update.
8493 (thread_command): Update.
8494 (thread_find_command): Update.
8495 * record-btrace.c (record_btrace_target::info_record)
8496 (record_btrace_resume_thread, record_btrace_target::resume)
8497 (record_btrace_cancel_resume, record_btrace_step_thread)
8498 (record_btrace_target::wait, record_btrace_target::wait)
8499 (record_btrace_target::wait, record_btrace_target::stop): Update.
8500 * progspace.c (print_program_space): Update.
8501 * process-stratum-target.c
8502 (process_stratum_target::thread_address_space): Update.
8503 * linux-fork.c (linux_fork_mourn_inferior)
8504 (detach_checkpoint_command, info_checkpoints_command)
8505 (linux_fork_context): Update.
8506 (linux_fork_detach): Update.
8507 (class scoped_switch_fork_info): Update.
8508 (delete_checkpoint_command): Update.
8509 * infrun.c (follow_fork_inferior): Update.
8510 (follow_fork_inferior): Update.
8511 (proceed_after_vfork_done): Update.
8512 (handle_vfork_child_exec_or_exit): Update.
8513 (follow_exec): Update.
8514 (displaced_step_prepare_throw): Update.
8515 (displaced_step_restore): Update.
8516 (start_step_over): Update.
8517 (resume_1): Update.
8518 (clear_proceed_status_thread): Update.
8519 (proceed): Update.
8520 (print_target_wait_results): Update.
8521 (do_target_wait): Update.
8522 (context_switch): Update.
8523 (stop_all_threads): Update.
8524 (restart_threads): Update.
8525 (finish_step_over): Update.
8526 (handle_signal_stop): Update.
8527 (switch_back_to_stepped_thread): Update.
8528 (keep_going_pass_signal): Update.
8529 (print_exited_reason): Update.
8530 (normal_stop): Update.
8531 * inferior.c (inferior_pid_to_str): Change return type.
8532 (print_selected_inferior): Update.
8533 (add_inferior): Update.
8534 (detach_inferior): Update.
8535 * dummy-frame.c (fprint_dummy_frames): Update.
8536 * dcache.c (dcache_info_1): Update.
8537 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8538 (btrace_fetch, btrace_clear): Update.
8539 * linux-tdep.c (linux_core_pid_to_str): Change return type.
8540 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
8541 type.
8542 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
8543 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
8544 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
8545 * gdbarch.c, gdbarch.h: Rebuild.
8546 * gdbarch.sh (core_pid_to_str): Change return type.
8547 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
8548 return type.
8549 (windows_nat_target::pid_to_str): Change return type.
8550 (windows_delete_thread): Update.
8551 (windows_nat_target::attach): Update.
8552 (windows_nat_target::files_info): Update.
8553 * target-delegates.c: Rebuild.
8554 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
8555 return type.
8556 (sol_thread_target::pid_to_str): Change return type.
8557 * remote.c (class remote_target) <pid_to_str>: Change return
8558 type.
8559 (remote_target::pid_to_str): Change return type.
8560 (extended_remote_target::attach, remote_target::remote_stop_ns)
8561 (remote_target::remote_notif_remove_queued_reply)
8562 (remote_target::push_stop_reply, remote_target::disable_btrace):
8563 Update.
8564 (extended_remote_target::attach): Update.
8565 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
8566 type.
8567 (gdbsim_target::pid_to_str): Change return type.
8568 * ravenscar-thread.c (struct ravenscar_thread_target)
8569 <pid_to_str>: Change return type.
8570 (ravenscar_thread_target::pid_to_str): Change return type.
8571 * procfs.c (class procfs_target) <pid_to_str>: Change return
8572 type.
8573 (procfs_target::pid_to_str): Change return type.
8574 (procfs_target::attach): Update.
8575 (procfs_target::detach): Update.
8576 (procfs_target::fetch_registers): Update.
8577 (procfs_target::store_registers): Update.
8578 (procfs_target::wait): Update.
8579 (procfs_target::files_info): Update.
8580 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
8581 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
8582 return type.
8583 (nto_procfs_target::pid_to_str): Change return type.
8584 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
8585 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
8586 return type.
8587 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
8588 (exit_lwp): Update.
8589 (attach_proc_task_lwp_callback, get_detach_signal)
8590 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
8591 (linux_nat_target::resume, wait_lwp, stop_callback)
8592 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
8593 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
8594 (linux_nat_wait_1, resume_stopped_resumed_lwps)
8595 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
8596 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
8597 type.
8598 (inf_ptrace_target::attach): Update.
8599 (inf_ptrace_target::files_info): Update.
8600 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
8601 type.
8602 (go32_nat_target::pid_to_str): Change return type.
8603 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
8604 (gnu_nat_target::wait): Update.
8605 (gnu_nat_target::wait): Update.
8606 (gnu_nat_target::resume): Update.
8607 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
8608 (fbsd_nat_target::wait): Update.
8609 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
8610 type.
8611 (darwin_nat_target::attach): Update.
8612 * corelow.c (class core_target) <pid_to_str>: Change return type.
8613 (core_target::pid_to_str): Change return type.
8614 * target.c (normal_pid_to_str): Change return type.
8615 (default_pid_to_str): Likewise.
8616 (target_pid_to_str): Change return type.
8617 (target_translate_tls_address): Update.
8618 (target_announce_detach): Update.
8619 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
8620 return type.
8621 (bsd_uthread_target::pid_to_str): Change return type.
8622 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
8623 type.
8624 (bsd_kvm_target::pid_to_str): Change return type.
8625 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
8626 return type.
8627 (aix_thread_target::pid_to_str): Change return type.
8628 * target.h (struct target_ops) <pid_to_str>: Change return type.
8629 (target_pid_to_str, normal_pid_to_str): Likewise.
8630 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
8631 type.
8632 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
8633 type.
8634 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
8635 return type.
8636 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
8637 type.
8638 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
8639 type.
8640 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
8641 return type.
8642
b4be1b06
SM
86432019-03-13 Simon Marchi <simon.marchi@ericsson.com>
8644
8645 * NEWS: Mention that the new default MI version is 3. Mention
8646 changes to the output of commands and events that deal with
8647 multi-location breakpoints.
8648 * breakpoint.c: Include "mi/mi-out.h".
8649 (print_one_breakpoint): Change output syntax if using MI version
8650 >= 3.
8651 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
8652 New.
8653 (mi_multi_location_breakpoint_output_fixed): New.
8654 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
8655 (mi_cmd_fix_multi_location_breakpoint_output): New.
8656 (mi_multi_location_breakpoint_output_fixed): New.
8657 * mi/mi-cmds.c (mi_cmds): Register command
8658 -fix-multi-location-breakpoint-output.
8659 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
8660 interpreter "mi".
8661
8e5e5494
SM
86622019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
8663
8664 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
8665 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
8666 instantiate mi_ui_out based on interpreter name.
8667 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
8668 * mi/mi-main.c (mi_load_progress): Likewise.
8669
197df35e
JB
86702019-03-12 John Baldwin <jhb@FreeBSD.org>
8671
8672 * NEWS: Combine separate "New targets" sections for 8.3.
8673
8399425f
JB
86742019-03-12 John Baldwin <jhb@FreeBSD.org>
8675
8676 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
8677 (ppcfbsd_init_abi): Install gdbarch
8678 "fetch_tls_load_module_address" and "get_thread_local_address"
8679 methods.
8680
b0f87ed0
JB
86812019-03-12 John Baldwin <jhb@FreeBSD.org>
8682
8683 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
8684 (riscv_fbsd_init_abi): Install gdbarch
8685 "fetch_tls_load_module_address" and "get_thread_local_address"
8686 methods.
8687
ce25aa57
JB
86882019-03-12 John Baldwin <jhb@FreeBSD.org>
8689
8690 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
8691 (i386fbsd_init_abi): Install gdbarch
8692 "fetch_tls_load_module_address" and "get_thread_local_address"
8693 methods.
8694
f5424cfa
JB
86952019-03-12 John Baldwin <jhb@FreeBSD.org>
8696
8697 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
8698 (amd64fbsd_init_abi): Install gdbarch
8699 "fetch_tls_load_module_address" and "get_thread_local_address"
8700 methods.
8701
945f3901
JB
87022019-03-12 John Baldwin <jhb@FreeBSD.org>
8703
8704 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
8705 (struct fbsd_pspace_data): New type.
8706 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
8707 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
8708 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
8709 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
8710 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
8711
ef0bd204
JB
87122019-03-12 John Baldwin <jhb@FreeBSD.org>
8713
8714 * gdbtypes.c (lookup_struct_elt): New function.
8715 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
8716 * gdbtypes.h (struct struct_elt): New type.
8717 (lookup_struct_elt): New prototype.
8718
36c53a02
JB
87192019-03-12 John Baldwin <jhb@FreeBSD.org>
8720
8721 * gdbtypes.c (lookup_struct_elt_type): Update comment and
8722 remove disabled code block.
8723
6e056c81
JB
87242019-03-12 John Baldwin <jhb@FreeBSD.org>
8725
8726 * gdbarch.sh (get_thread_local_address): New method.
8727 * gdbarch.h, gdbarch.c: Regenerate.
8728 * target.c (target_translate_tls_address): Use
8729 gdbarch_get_thread_local_address if present instead of
8730 target::get_thread_local_address.
8731
cd250a18
JB
87322019-03-12 John Baldwin <jhb@FreeBSD.org>
8733
8734 * target.h (target::get_thread_local_address): Update comment.
8735
df22c1e5
JB
87362019-03-12 John Baldwin <jhb@FreeBSD.org>
8737
8738 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
8739 objfile->separate_debug_objfile_backlink if not NULL.
8740
dd6876c9
JB
87412019-03-12 John Baldwin <jhb@FreeBSD.org>
8742
8743 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
8744 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
8745 (amd64bsd_store_inferior_registers): Likewise.
8746 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8747 Enable segment base registers.
8748 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
8749 PT_GETFSBASE and PT_GETGSBASE.
8750 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
8751 PT_SETGSBASE.
8752 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
8753 segment base registers.
8754 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8755
1163a4b7
JB
87562019-03-12 John Baldwin <jhb@FreeBSD.org>
8757
8758 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
8759 Update calls to i386_target_description to add 'segments'
8760 parameter.
8761 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
8762 add segment base registers.
8763 * arch/i386.c (i386_create_target_description): Add 'segments'
8764 parameter to enable segment base registers.
8765 * arch/i386.h (i386_create_target_description): Likewise.
8766 * features/i386/32bit-segments.xml: New file.
8767 * features/i386/32bit-segments.c: Generate.
8768 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
8769 call to i386_target_description to add 'segments' parameter.
8770 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
8771 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
8772 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
8773 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
8774 if feature is present.
8775 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
8776 Add 'segments' parameter to call to i386_target_description.
8777 (i386_target_description): Add 'segments' parameter to enable
8778 segment base registers.
8779 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
8780 to call to i386_target_description.
8781 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
8782 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
8783 Define I386_NUM_REGS.
8784 (i386_target_description): Add 'segments' parameter to enable
8785 segment base registers.
8786
3a350822
EZ
87872019-03-12 Eli Zaretskii <eliz@gnu.org>
8788
8789 PR/24325
8790 * source-cache.c: #undef open and close, to avoid unresolved
8791 externals during linking.
8792
ffdd69cf
TT
87932019-03-12 Tom Tromey <tromey@adacore.com>
8794
8795 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
8796 const. Add initializers.
8797 (_initialize_remote): Don't initialize ptid globals.
8798
ec148c57
PA
87992019-03-12 Pedro Alves <palves@redhat.com>
8800
8801 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
8802
32764270
PA
88032019-03-12 Pedro Alves <palves@redhat.com>
8804
8805 * cp-name-parser.y (main): Remove unused 'len' variable.
8806
17547186
TT
88072019-03-12 Tom Tromey <tromey@adacore.com>
8808
8809 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
8810 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
8811
d3a70e03
TT
88122019-03-12 Tom Tromey <tromey@adacore.com>
8813
8814 * linux-nat.c (iterate_over_lwps): Update.
8815 (stop_callback): Remove parameter.
8816 (stop_wait_callback, detach_callback, resume_set_callback)
8817 (select_singlestep_lwp_callback, set_ignore_sigint)
8818 (status_callback, resumed_callback, resume_clear_callback)
8819 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
8820 data parameter.
8821 (linux_nat_target::detach, linux_nat_target::resume)
8822 (linux_stop_and_wait_all_lwps, select_event_lwp)
8823 (linux_nat_filter_event, linux_nat_wait_1)
8824 (linux_nat_target::kill, linux_nat_target::stop)
8825 (linux_nat_target::stop): Update.
8826 (linux_nat_resume_callback): Change type.
8827 (resume_stopped_resumed_lwps, count_events_callback)
8828 (select_event_lwp_callback): Likewise.
8829 (linux_stop_lwp, linux_nat_stop_lwp): Update.
8830 * arm-linux-nat.c (struct update_registers_data): Remove.
8831 (update_registers_callback): Change type.
8832 (arm_linux_insert_hw_breakpoint1): Update.
8833 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
8834 parameter.
8835 (x86_linux_dr_set_addr): Update.
8836 (x86_linux_dr_set_control): Update.
8837 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
8838 (iterate_over_lwps): Use gdb::function_view.
8839 * nat/aarch64-linux-hw-point.c (struct
8840 aarch64_dr_update_callback_param): Remove.
8841 (debug_reg_change_callback): Change type.
8842 (aarch64_notify_debug_reg_change): Update.
8843 * s390-linux-nat.c (s390_refresh_per_info): Update.
8844
82cb27ff
TT
88452019-03-11 Tom Tromey <tromey@adacore.com>
8846
8847 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
8848 redundant assignment to "this_cu".
8849
568c0683
SM
88502019-03-08 Simon Marchi <simon.marchi@efficios.com>
8851
8852 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
8853
f09ce22d
SM
88542019-03-08 Simon Marchi <simon.marchi@efficios.com>
8855
8856 * gdbtypes.c (rank_one_type_parm_set): New function extracted
8857 from...
8858 (rank_one_type): ... this.
8859
595f96a9
SM
88602019-03-08 Simon Marchi <simon.marchi@efficios.com>
8861
8862 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
8863 from...
8864 (rank_one_type): ... this.
8865
2598a94b
SM
88662019-03-08 Simon Marchi <simon.marchi@efficios.com>
8867
8868 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
8869 from...
8870 (rank_one_type): ... this.
8871
7f17b20d
SM
88722019-03-08 Simon Marchi <simon.marchi@efficios.com>
8873
8874 * gdbtypes.c (rank_one_type_parm_float): New function extracted
8875 from...
8876 (rank_one_type): ... this.
8877
2c509035
SM
88782019-03-08 Simon Marchi <simon.marchi@efficios.com>
8879
8880 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
8881 from...
8882 (rank_one_type): ... this.
8883
0dd322dc
SM
88842019-03-08 Simon Marchi <simon.marchi@efficios.com>
8885
8886 * gdbtypes.c (rank_one_type_parm_range): New function extracted
8887 from...
8888 (rank_one_type): ... this.
8889
41ea4728
SM
88902019-03-08 Simon Marchi <simon.marchi@efficios.com>
8891
8892 * gdbtypes.c (rank_one_type_parm_char): New function extracted
8893 from...
8894 (rank_one_type): ... this.
8895
793cd1d2
SM
88962019-03-08 Simon Marchi <simon.marchi@efficios.com>
8897
8898 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
8899 from...
8900 (rank_one_type): ... this.
8901
34910087
SM
89022019-03-08 Simon Marchi <simon.marchi@efficios.com>
8903
8904 * gdbtypes.c (rank_one_type_parm_int): New function extracted
8905 from...
8906 (rank_one_type): ... this.
8907
f1f832d6
SM
89082019-03-08 Simon Marchi <simon.marchi@efficios.com>
8909
8910 * gdbtypes.c (rank_one_type_parm_func): New function extracted
8911 from...
8912 (rank_one_type): ... this.
8913
b9f4512f
SM
89142019-03-08 Simon Marchi <simon.marchi@efficios.com>
8915
8916 * gdbtypes.c (rank_one_type_parm_array): New function extracted
8917 from...
8918 (rank_one_type): ... this.
8919
9293fc63
SM
89202019-03-08 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
8923 from...
8924 (rank_one_type): ... this.
8925
e3abbe7e
PW
89262019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8927
8928 * inferior.c (initialize_inferiors): Ensure 'help set/show print
8929 inferior-events' shows the example events.
8930
e4adb939
EZ
89312019-03-08 Eli Zaretskii <eliz@gnu.org>
8932
8933 Support styling on native MS-Windows console
8934
8935 PR/24315
8936 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
8937 on MS-Windows if $TERM is not defined.
8938
8939 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
8940
8941 * posix-hdep.c (gdb_console_fputs):
8942 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
8943 functions.
8944 * ui-file.h (gdb_console_fputs): Add prototype.
8945
8946 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
8947 back to fputs only if the former returns zero.
8948
25629dfd
TT
89492019-03-07 Tom Tromey <tom@tromey.com>
8950
8951 * symmisc.c (print_symbol_bcache_statistics): Update.
8952 (print_objfile_statistics): Update.
8953 * symfile.c (allocate_symtab): Update.
8954 * stabsread.c: Don't include bcache.h.
8955 * psymtab.h (struct psymbol_bcache): Don't declare.
8956 (class psymtab_storage) <psymbol_cache>: Now a bcache.
8957 (psymbol_bcache_init, psymbol_bcache_free)
8958 (psymbol_bcache_get_bcache): Don't declare.
8959 * psymtab.c (struct psymbol_bcache): Remove.
8960 (psymtab_storage::psymtab_storage): Update.
8961 (psymtab_storage::~psymtab_storage): Update.
8962 (psymbol_bcache_init, psymbol_bcache_free)
8963 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
8964 (add_psymbol_to_bcache): Update.
8965 (allocate_psymtab): Update.
8966 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8967 macro_cache>: No longer pointers.
8968 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
8969 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
8970 * macrotab.c (macro_bcache): Update.
8971 * macroexp.c: Don't include bcache.h.
8972 * gdbtypes.c (check_types_worklist): Update.
8973 (types_deeply_equal): Remove TRY/CATCH. Update.
8974 * elfread.c (elf_symtab_read): Update.
8975 * dwarf2read.c: Don't include bcache.h.
8976 * buildsym.c (buildsym_compunit::get_macro_table): Update.
8977 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
8978 (print_bcache_statistics, bcache_memory_used): Don't declare.
8979 (struct bcache): Move from bcache.c. Add constructor, destructor,
8980 methods. Rename all data members.
8981 * bcache.c (struct bcache): Move to bcache.h.
8982 (bcache::expand_hash_table): Rename from expand_hash_table.
8983 (bcache): Remove.
8984 (bcache::insert): Rename from bcache_full.
8985 (bcache::compare): Rename from bcache_compare.
8986 (bcache_xmalloc): Remove.
8987 (bcache::~bcache): Rename from bcache_xfree.
8988 (bcache::print_statistics): Rename from print_bcache_statistics.
8989 (bcache::memory_used): Rename from bcache_memory_used.
8990
fe726667
PA
89912019-03-07 Pedro Alves <palves@redhat.com>
8992
8993 * infrun.c (normal_stop): Also check for
8994 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
8995
7584bb30
AB
89962019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * f-lang.c (value_from_host_double): Moved to...
8999 * value.c (value_from_host_double): ...here.
9000 * value.h (value_from_host_double): Declare.
9001 * guile/scm-math.c (vlscm_convert_typed_number): Use
9002 value_from_host_double.
9003 (vlscm_convert_number): Likewise.
9004 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
9005 * python/py-value.c (convert_value_from_python): Likewise.
9006
a7b1986e
TT
90072019-03-06 Tom Tromey <tom@tromey.com>
9008
9009 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
9010
0ccf4211
TT
90112019-03-06 Tom Tromey <tom@tromey.com>
9012
9013 * utils.h (free_current_contents): Don't declare.
9014 * utils.c (free_current_contents): Remove.
9015
fe7b42e5
TT
90162019-03-06 Tom Tromey <tom@tromey.com>
9017
9018 * top.c (quit_force): Update.
9019 * main.c (captured_command_loop): Update.
9020 * common/new-op.c (operator new): Update.
9021 * common/common-exceptions.c (struct catcher)
9022 <save_cleanup_chain>: Remove member.
9023 (exceptions_state_mc_init): Update.
9024 (exception_try_scope_entry): Return nullptr.
9025 (exception_try_scope_exit, exception_rethrow)
9026 (throw_exception_sjlj, throw_exception_cxx): Update.
9027 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
9028 (all_cleanups, do_cleanups, discard_cleanups)
9029 (discard_final_cleanups, save_cleanups, save_final_cleanups)
9030 (restore_cleanups, restore_final_cleanups): Don't declare.
9031 (do_final_cleanups): Remove parameter.
9032 * common/cleanups.c (cleanup_chain, make_cleanup)
9033 (make_cleanup_dtor, all_cleanups, do_cleanups)
9034 (discard_my_cleanups, discard_cleanups)
9035 (discard_final_cleanups, save_my_cleanups, save_cleanups)
9036 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
9037 (null_cleanup): Remove.
9038 (do_final_cleanups): Remove parameter.
9039
c6321f19
TT
90402019-03-06 Tom Tromey <tom@tromey.com>
9041
9042 * remote.c (remote_target::remote_parse_stop_reply): Use
9043 unique_xmalloc_ptr.
9044
61b30099
TT
90452019-03-06 Tom Tromey <tom@tromey.com>
9046
9047 * stabsread.c (struct stabs_field_info): Rename from field_info.
9048 <list, fnlist>: Add initializers.
9049 <obstack>: New member.
9050 (read_member_functions, read_struct_fields, read_baseclasses):
9051 Allocate on obstack. Don't use cleanups.
9052 (read_one_struct_field, read_member_functions, read_struct_fields)
9053 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
9054 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
9055 (read_struct_type): Update.
9056
6cceac94
TT
90572019-03-06 Tom Tromey <tom@tromey.com>
9058
9059 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
9060 * common/filestuff.h (make_cleanup_close): Don't declare.
9061 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
9062 Remove.
9063
72412762
TT
90642019-03-06 Tom Tromey <tom@tromey.com>
9065
9066 * solib-aix.c: Use make_scope_exit.
9067
2b6ff1c0
TT
90682019-03-06 Tom Tromey <tom@tromey.com>
9069
9070 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
9071 Use make_scope_exit.
9072
d01c5877
TT
90732019-03-06 Tom Tromey <tom@tromey.com>
9074
9075 * solib-svr4.c (disable_probes_interface): Remove parameter.
9076 (svr4_handle_solib_event): Use make_scope_exit.
9077
32603266
TT
90782019-03-06 Tom Tromey <tom@tromey.com>
9079
9080 * remote.c (struct stop_reply_deleter): Remove.
9081 (stop_reply_up): Update.
9082 (struct stop_reply): Derive from notif_event. Don't typedef.
9083 <regcache>: Now a std::vector.
9084 (stop_reply_xfree): Remove.
9085 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
9086 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
9087 (remote_target::discard_pending_stop_replies): Use delete.
9088 (remote_target::remote_parse_stop_reply): Update.
9089 (remote_target::process_stop_reply): Update.
9090 * remote-notif.h (struct notif_event): Add virtual destructor.
9091 Remove "dtr" member.
9092 (struct notif_client) <alloc_event>: Return a unique_ptr.
9093 (notif_event_xfree): Don't declare.
9094 (notif_event_up): New typedef.
9095 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
9096 (notif_event_xfree, do_notif_event_xfree): Remove.
9097 (remote_notif_state_xfree): Update.
9098
9799571e
TT
90992019-03-06 Tom Tromey <tom@tromey.com>
9100
9101 * infrun.c (displaced_step_clear_cleanup): Now a
9102 forward_scope_exit type.
9103 (displaced_step_prepare_throw): Update.
9104 (displaced_step_fixup): Update.
9105
09e3c4ca
TT
91062019-03-06 Tom Tromey <tom@tromey.com>
9107
9108 * inferior.h (class inferior): Update comment.
9109 * gdbthread.h (class thread_info): Update comment.
9110
e2a03548
TT
91112019-03-06 Joel Brobecker <brobecker@adacore.com>
9112 Tom Tromey <tom@tromey.com>
9113
9114 * stabsread.h (struct stab_section_list): Remove.
9115 (coffstab_build_psymtabs): Update.
9116 * dbxread.c (symbuf_sections): Now a std::vector.
9117 (sect_idx): New global.
9118 (fill_symbuf): Update.
9119 (coffstab_build_psymtabs): Change type of stabsects parameter.
9120 Update.
9121 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
9122 std::vector.
9123 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
9124 (coff_locate_sections): Update.
9125 (coff_symfile_read): Remove cleanups. Update.
9126 (init_stringtab): Add storage parameter.
9127 (free_stringtab, free_stringtab_cleanup): Remove.
9128 (init_lineno): Add storage parameter.
9129 (free_linetab, free_linetab_cleanup): Remove.
9130
b7e60d85
PA
91312019-03-06 Pedro Alves <palves@redhat.com>
9132
9133 * linux-fork.c (fork_info::clobber_regs): Delete.
9134 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
9135 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
9136 comment. Adjust.
9137 (scoped_switch_fork_info::scoped_switch_fork_info)
9138 (checkpoint_command, linux_fork_context): Adjust
9139 fork_save_infrun_state calls.
9140
e52c971f
PA
91412019-03-06 Pedro Alves <palves@redhat.com>
9142
9143 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
9144 (inf_has_multiple_threads): Return 'bool' and rewrite using
9145 inferior_info::threads().
9146
06974e6c
PA
91472019-03-06 Pedro Alves <palves@redhat.com>
9148
9149 * linux-fork.c: Include <list>.
9150 (fork_list): Now a std::list instance.
9151 (fork_info): Add ctor, dtor, and in-class initialize all fields.
9152 (forks_exist_p, find_last_fork): Adjust.
9153 (new_fork): Delete.
9154 (one_fork_p): New.
9155 (add_fork): Adjust.
9156 (free_fork): Delete, folded into fork_info::~fork_info().
9157 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
9158 Adjust.
9159 (init_fork_list): Delete.
9160 (linux_fork_killall, linux_fork_mourn_inferior)
9161 (linux_fork_detach, info_checkpoints_command): Adjust.
9162 (_initialize_linux_fork): No longer call init_fork_list.
9163
72f31aea
PA
91642019-03-06 Pedro Alves <palves@redhat.com>
9165
9166 * linux-fork.c (new_fork): New, split out of ...
9167 (add_fork): ... this. Return void. Move "first fork" special
9168 case from here, to ...
9169 (checkpoint_command): ... here.
9170 * linux-linux.h (add_fork): Return void.
9171
efbecbc1
AB
91722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9173
9174 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
9175
0841c79a
AB
91762019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9177 Chris January <chris.january@arm.com>
9178 David Lecomber <david.lecomber@arm.com>
9179
9180 * f-exp.y: New token, UNOP_INTRINSIC.
9181 (exp): New pattern using UNOP_INTRINSIC token.
9182 (f77_keywords): Add 'abs' keyword.
9183 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
9184 (value_from_host_double): New function.
9185 (evaluate_subexp_f): Support UNOP_ABS.
9186
4a270568
AB
91872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9188
9189 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
9190 types.
9191
067630bd
AB
91922019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9193
9194 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
9195 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
9196 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
9197
3be47f7a
AB
91982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9199
9200 * f-exp.y (convert_to_kind_type): Handle more type kinds.
9201
4d00f5d8
AB
92022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9203 Chris January <chris.january@arm.com>
9204
9205 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
9206 * f-exp.y: Define 'KIND' token.
9207 (exp): New pattern for KIND expressions.
9208 (ptype): Handle types with a kind extension.
9209 (direct_abs_decl): Extend to spot kind extensions.
9210 (f77_keywords): Add 'kind' to the list.
9211 (push_kind_type): New function.
9212 (convert_to_kind_type): New function.
9213 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
9214 * parse.c (operator_length_standard): Likewise.
9215 * parser-defs.h (enum type_pieces): Add tp_kind.
9216 * std-operator.def: Add UNOP_KIND.
9217
e454224f
AB
92182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9219
9220 * f-exp.y (f_parse): Set yydebug.
9221
9dad4a58
AB
92222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9223
9224 * f-lang.c (evaluate_subexp_f): New function.
9225 (exp_descriptor_f): New global.
9226 (f_language_defn): Use exp_descriptor_f instead of
9227 exp_descriptor_standard.
9228
c8f91604
AB
92292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9230
9231 * f-exp.y (struct token): Add comments.
9232 (dot_ops): Remove uppercase versions and the end marker.
9233 (f77_keywords): Likewise.
9234 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
9235 entries in the dot_ops array are case insensitive, and use
9236 strncasecmp to compare strings. Also some whitespace cleanup in
9237 this area. Similar for the f77_keywords array, except entries in
9238 this list might be case sensitive.
9239
dd9f2c76
AB
92402019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9241
9242 * f-exp.y (struct f77_boolean_val): Add comments.
9243 (boolean_values): Remove uppercase versions, and end marker.
9244 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
9245 and use strncasecmp to achieve case insensitivity. Additionally,
9246 perform whitespace cleanup around this code.
9247
67a3048c
TT
92482019-03-06 Tom Tromey <tromey@adacore.com>
9249
9250 * remote-sim.c (gdbsim_target_open): Use result of
9251 gdb_argv::release.
9252
aa3cfbda
RB
92532019-03-06 Richard Bunt <richard.bunt@arm.com>
9254 Dirk Schubert <dirk.schubert@arm.com>
9255 Chris January <chris.january@arm.com>
9256
9257 * eval.c (evaluate_subexp_standard): Call Fortran argument
9258 wrapping logic.
9259 * f-lang.c (struct value): A value which can be passed into a
9260 Fortran function call.
9261 (fortran_argument_convert): Wrap Fortran arguments in a pointer
9262 where appropriate.
9263 (struct type): Value ready for a Fortran function call.
9264 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
9265 is needed.
9266 * f-lang.h (fortran_argument_convert): Declaration.
9267 (fortran_preserve_arg_pointer): Declaration.
9268 * infcall.c (value_arg_coerce): Call Fortran argument logic.
9269
ea38e5df
TT
92702019-03-05 Tom Tromey <tromey@adacore.com>
9271
9272 * python/py-prettyprint.c (print_string_repr): Remove #if.
9273 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
9274
06b5b831
TT
92752019-03-05 Tom Tromey <tromey@adacore.com>
9276
9277 * target.c (the_dummy_target): Move later. Change type to
9278 "dummy_target".
9279 (initialize_targets): Don't initialize the_dummy_target.
9280
edbd9e45
TT
92812019-03-05 Tom Tromey <tromey@adacore.com>
9282
9283 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
9284 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
9285
c119e040
TT
92862019-03-05 Tom Tromey <tromey@adacore.com>
9287
9288 * windows-nat.c (windows_nat_target::attach)
9289 (windows_nat_target::detach): Don't call gdb_flush.
9290 * valprint.c (generic_val_print, val_print, val_print_string):
9291 Don't call gdb_flush.
9292 * utils.c (defaulted_query): Don't call gdb_flush.
9293 * typeprint.c (print_type_scalar): Don't call gdb_flush.
9294 * target.c (target_announce_detach): Don't call gdb_flush.
9295 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
9296 * remote.c (extended_remote_target::attach): Don't call
9297 gdb_flush.
9298 * procfs.c (procfs_target::detach): Don't call gdb_flush.
9299 * printcmd.c (do_examine): Don't call gdb_flush.
9300 (info_display_command): Don't call gdb_flush.
9301 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
9302 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
9303 * memattr.c (info_mem_command): Don't call gdb_flush.
9304 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
9305 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
9306 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
9307 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
9308 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
9309 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
9310 (gnu_nat_target::detach): Don't call gdb_flush.
9311 * f-valprint.c (f_val_print): Don't call gdb_flush.
9312 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
9313 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
9314 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
9315 gdb_flush.
9316 * c-valprint.c (c_val_print): Don't call gdb_flush.
9317 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
9318
895dafa6
TT
93192019-03-05 Tom Tromey <tromey@adacore.com>
9320
9321 * varobj.c (update_dynamic_varobj_children): Update.
9322 (install_default_visualizer): Use reset, not release.
9323 * value.c (set_internalvar): Update.
9324 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
9325 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
9326 ATTRIBUTE_UNUSED_RESULT.
9327
88a774b9
TT
93282019-03-05 Tom Tromey <tromey@adacore.com>
9329
9330 * remote.c (class scoped_remote_fd) <release>: Add
9331 ATTRIBUTE_UNUSED_RESULT.
9332
4e4a8b93
TT
93332019-03-05 Tom Tromey <tromey@adacore.com>
9334
9335 * macroexp.c (struct macro_buffer) <release>: Add
9336 ATTRIBUTE_UNUSED_RESULT.
9337
083eef1f
TT
93382019-03-05 Tom Tromey <tromey@adacore.com>
9339
9340 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
9341 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
9342 ATTRIBUTE_UNUSED_RESULT.
9343
3cabd438
TT
93442019-03-05 Tom Tromey <tromey@adacore.com>
9345
9346 * common/scoped_fd.h (class scoped_fd) <release>: Add
9347 ATTRIBUTE_UNUSED_RESULT.
9348
41e3300a
TT
93492019-03-05 Tom Tromey <tromey@adacore.com>
9350
9351 * parser-defs.h (struct parser_state) <release>: Add
9352 ATTRIBUTE_UNUSED_RESULT.
9353
18cb7c9f
TT
93542019-03-05 Tom Tromey <tromey@adacore.com>
9355
9356 * utils.h (class gdb_argv) <release>: Add
9357 ATTRIBUTE_UNUSED_RESULT.
9358 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
9359
41fa577f
EZ
93602019-03-02 Eli Zaretskii <eliz@gnu.org>
9361
a6a4b2c6
EZ
9362 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
9363 for-loop range, to avoid compiler warnings.
9364
9365 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
9366 avoid compiler warnings about unused variables.
9367
742a7df5
EZ
9368 * NEWS: Mention end of support for native debugging on MS-Windows
9369 before XP.
9370
41fa577f
EZ
9371 PR gdb/24292
9372 * common/netstuff.c:
9373 * gdbserver/gdbreplay.c
9374 * gdbserver/remote-utils.c:
9375 * ser-tcp.c:
9376 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
9377 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
9378 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
9379 'getaddrinfo' and 'freeaddrinfo' were not available before
9380 Windows XP, and mingw.org's MinGW headers by default define
9381 _WIN32_WINNT to 0x500.
9382
827f438f
GB
93832019-03-01 Gary Benson <gbenson@redhat.com>
9384
9385 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
9386
92137da0
RO
93872019-02-28 Brian Vandenberg <phantall@gmail.com>
9388 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9389
9390 PR gdb/8527
9391 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
9392 set_sigint_trap, clear_sigint_trap.
9393
799efbe8
PW
93942019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9395
9396 * target.c (target_detach): Clear the regcache and the
9397 frame cache.
9398
8ed25214
PA
93992019-02-27 Pedro Alves <palves@redhat.com>
9400
9401 * utils.c (set_screen_size): When we cap the height/width sizes,
9402 tweak the corresponding command variable to show "unlimited":
9403
23031e31
SJ
94042019-02-27 Saagar Jha <saagar@saagarjha.com>
9405 Pedro Alves <palves@redhat.com>
9406
9407 * utils.c (set_screen_size): Reduce "infinite" rows and columns
9408 before calling rl_set_screen_size.
9409
6c28e44a
TT
94102019-02-27 Tom Tromey <tromey@adacore.com>
9411
9412 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
9413 define.
9414 * python/py-value.c: Remove Python 2.4 workaround.
9415 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
9416 workaround.
9417 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
9418 Python 2.4 workaround.
9419 * python/python-internal.h: Remove Python 2.4 comment.
9420 (Py_ssize_t): Don't define.
9421 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
9422 (gdb_Py_DECREF): Remove Python 2.4 workaround.
9423 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
9424 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
9425 * python/python.c (do_start_initialization): Remove Python 2.4
9426 workaround.
9427 * python/py-prettyprint.c (class dummy_python_frame): Remove.
9428 (print_children): Remove Python 2.4 workaround.
9429 * python/py-inferior.c (buffer_procs): Remove Python 2.4
9430 workaround.
9431 (CHARBUFFERPROC_NAME): Remove.
9432 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
9433 Python 2.4 workaround.
9434
2c3fc25d 94352019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 9436
2c3fc25d
KB
9437 * NEWS: Note minimum Python version.
9438
6ca62222
KB
94392019-02-27 Kevin Buettner <kevinb@redhat.com>
9440
9441 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
9442 code from these functions. Remove corresponding ifdefs. Use
9443 Py_buffer_up instead of explicit calls to PyBuffer_Release.
9444 Remove gotos and target of gotos.
9445 (infpy_search_memory): Likewise.
9446
f4bc7d2c
AB
94472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9448
9449 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
9450 (hppa_gdbarch_init): Don't register deleted functions with
9451 gdbarch.
9452
9734a586
AB
94532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9454
9455 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
9456 (h8300_unwind_sp): Delete.
9457 (h8300_dummy_id): Delete.
9458 (h8300_gdbarch_init): Don't register deleted functions with
9459 gdbarch.
9460
68b867f3
AB
94612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9462
9463 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
9464 (ft32_unwind_pc): Delete.
9465 (ft32_unwind_sp): Delete.
9466 (ft32_gdbarch_init): Don't register deleted functions with
9467 gdbarch.
9468
2fbe7ad0
AB
94692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9470
9471 * gdb/frv-tdep.c (frv_dummy_id): Delete.
9472 (frv_unwind_pc): Delete.
9473 (frv_unwind_sp): Delete.
9474 (frv_gdbarch_init): Don't register deleted functions with
9475 gdbarch.
9476
76055cbe
AB
94772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9478
9479 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
9480 (riscv_unwind_pc): Delete.
9481 (riscv_unwind_sp): Delete.
9482 (riscv_gdbarch_init): Don't register deleted functions with
9483 gdbarch.
9484
4133e5a1
AB
94852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9486
9487 * gdb/csky-tdep.c (csky_dummy_id): Delete.
9488 (csky_unwind_pc): Delete.
9489 (csky_unwind_sp): Delete.
9490 (csky_gdbarch_init): Don't register deleted functions with
9491 gdbarch.
9492
8010f576
AB
94932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9494
9495 * gdb/cris-tdep.c (cris_dummy_id): Delete.
9496 (cris_unwind_pc): Delete.
9497 (cris_unwind_sp): Delete.
9498 (cris_gdbarch_init): Don't register deleted functions with
9499 gdbarch.
9500
b56bf084
AB
95012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9502
9503 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
9504 (bfin_unwind_pc): Delete.
9505 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
9506
a19a650f
AB
95072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9508
9509 * gdb/arm-tdep.c (arm_dummy_id): Delete.
9510 (arm_unwind_pc): Delete.
9511 (arm_unwind_sp): Delete.
9512 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
9513
f8278c3c
AB
95142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9515
9516 * gdb/arc-tdep.c (arc_dummy_id): Delete.
9517 (arc_unwind_pc): Delete.
9518 (arc_unwind_sp): Delete.
9519 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
9520
480e46cf
AB
95212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9522
9523 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
9524 (alpha_unwind_pc): Delete.
9525 (alpha_gdbarch_init): Don't register deleted functions with
9526 gdbarch.
9527
7a995095
AB
95282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9529
9530 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
9531 (aarch64_unwind_pc): Delete.
9532 (aarch64_unwind_sp): Delete.
9533 (aarch64_gdbarch_init): Don't register deleted functions with
9534 gdbarch.
9535
bf9a735e
AB
95362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9537
9538 * gdbtypes.c (type_align): Don't consider static members when
9539 computing structure alignment.
9540
5561fc30
AB
95412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9542
9543 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
9544 return 0 for other types.
9545 * arch-utils.c (default_type_align): Always return 0.
9546 * gdbarch.h: Regenerate.
9547 * gdbarch.sh (type_align): Extend comment.
9548 * gdbtypes.c (type_align): Add additional comments, always call
9549 gdbarch_type_align before applying the default rules.
9550 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
9551 generic code will then apply a suitable default.
9552 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
9553 types, return 0 for other types.
9554
9335e75a
JB
95552019-02-27 Joel Brobecker <brobecker@adacore.com>
9556
9557 * NEWS: Create a new section for the next release branch.
9558 Rename the section of the current branch, now that it has
9559 been cut.
9560
3d34d8de
JB
95612019-02-27 Joel Brobecker <brobecker@adacore.com>
9562
9563 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
9564 * version.in: Bump version to 8.3.50.DATE-git.
9565
143420fb
SM
95662019-02-26 Simon Marchi <simon.marchi@efficios.com>
9567
9568 * aix-thread.c (ptid_cmp): Remove unused variable.
9569 (get_signaled_thread): Likewise.
9570 (store_regs_user_thread): Likewise.
9571 (store_regs_kernel_thread): Likewise.
9572 (fetch_regs_kernel_thread): Remove shadowed variable.
9573
172fb711
AB
95742019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
9575
9576 * features/riscv/32bit-cpu.xml: Add register numbers.
9577 * features/riscv/32bit-fpu.c: Regenerate.
9578 * features/riscv/32bit-fpu.xml: Add register numbers.
9579 * features/riscv/64bit-cpu.xml: Add register numbers.
9580 * features/riscv/64bit-fpu.c: Regenerate.
9581 * features/riscv/64bit-fpu.xml: Add register numbers.
9582
26c89782
KB
95832019-02-26 Kevin Buettner <kevinb@redhat.com>
9584
af54ade9 9585 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
9586 * python/py-value.c (convert_buffer_and_type_to_value): New
9587 function.
9588 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
9589 Add support for handling an optional second argument. Call
9590 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
9591 * python/python-internal.h (Py_buffer_deleter): New struct.
9592 (Py_buffer_up): New typedef.
9593
0f58c9e8
JB
95942019-02-25 John Baldwin <jhb@FreeBSD.org>
9595
9596 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
9597 instead of releasing ownership.
9598
0a0f4c01
JR
95992019-02-25 Jordan Rupprecht <rupprecht@google.com>
9600
9601 * dwarf2read.c (open_and_init_dwp_file): Call
9602 elf_numsections instead of bfd_count_sections to initialize
9603 dwp_file->num_sections.
9604
cd5a152c
TT
96052019-02-25 Tom Tromey <tromey@adacore.com>
9606
9607 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
9608
8a6a8513
SDJ
96092019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
9610
9611 * gcore.in: Add '--readnever' option when invoking GDB.
9612
04dcda9c
SM
96132019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9614
9615 * MAINTAINERS: Update my email address.
9616
07bc701d
SM
96172019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
9618
9619 * build-id.c (build_id_to_debug_bfd_1): New function.
9620 (build_id_to_debug_bfd): Look for separate debug file in
9621 sysroot.
9622
c6f4a5d0
AB
96232019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
9624
9625 * gdbarch.sh: Update the copyright year range that is placed into
9626 generated files.
9627
9600246d
KS
96282019-02-22 Keith Seitz <keiths@redhat.com>
9629
9630 PR symtab/23853
9631 * linespec.c (create_sals_line_offset): Search for the default
9632 symtab's filename instead of its fullname.
9633
7557a514
AH
96342019-02-21 Alan Hayward <alan.hayward@arm.com>
9635
9636 * NEWS: Update style defaults.
9637
ee2bcb0c
AH
96382019-02-21 Alan Hayward <alan.hayward@arm.com>
9639
9640 * main.c (captured_main_1): Disable styling in batch mode.
9641
0c95f9ed
TT
96422019-02-20 Tom Tromey <tom@tromey.com>
9643
9644 * symtab.c (symtab_symbol_info): Fix typos.
9645
c763b894
TT
96462019-02-20 Tom Tromey <tromey@adacore.com>
9647
9648 * findcmd.c (_initialize_mem_search): Use upper case for
9649 metasyntactic variables.
9650
0ef8a082
AH
96512019-02-20 Alan Hayward <alan.hayward@arm.com>
9652
9653 * aarch64-tdep.c (aarch64_add_reggroups): New function.
9654 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
9655
6caa91b6
SM
96562019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
9657
9658 * top.h (source_file_name): Change to std::string.
9659 * top.c (source_file_name): Likewise.
9660 (command_line_input): Adjust.
9661 * cli/cli-script.c (script_from_file): Adjust.
9662
98814c6c
TT
96632019-02-19 Tom Tromey <tromey@adacore.com>
9664
9665 * ravenscar-thread.c
9666 (ravenscar_thread_target::update_thread_list): Don't call
9667 ada_build_task_list.
9668 * ada-lang.h (ada_build_task_list): Don't declare.
9669 * ada-tasks.c (struct ada_tasks_inferior_data)
9670 <task_list_valid_p>: Now bool.
9671 (read_known_tasks, ada_task_list_changed)
9672 (ada_tasks_invalidate_inferior_data): Update.
9673 (read_known_tasks_array): Return bool.
9674 (read_known_tasks_list): Likewise.
9675 (read_known_tasks): Return void.
9676 (ada_build_task_list): Now static.
9677
70cd633e
AB
96782019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
9679
9680 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
9681 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
9682
040b3e95
PW
96832019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9684
9685 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
9686 variant for ada_tasks_pspace_data_handle and
9687 ada_tasks_inferior_data_handle.
9688 (ada_tasks_pspace_data_cleanup): New function.
9689 (ada_tasks_inferior_data_cleanup): New function.
9690
9409233b
TT
96912019-02-17 Tom Tromey <tom@tromey.com>
9692
9693 * macrotab.h (macro_source_fullname): Return a std::string.
9694 * macrotab.c (macro_include, check_for_redefinition)
9695 (macro_undef, macro_lookup_definition, foreach_macro)
9696 (foreach_macro_in_scope): Update.
9697 (macro_source_fullname): Return a std::string.
9698 * macrocmd.c (show_pp_source_pos): Update.
9699
6506371f
TT
97002019-02-17 Tom Tromey <tom@tromey.com>
9701
9702 * macrocmd.c (show_pp_source_pos): Style the file names.
9703
0c820d67
TT
97042019-02-17 Tom Tromey <tom@tromey.com>
9705
9706 PR tui/24197:
9707 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
9708
a0087920
TT
97092019-02-17 Tom Tromey <tom@tromey.com>
9710
9711 * ada-lang.c (user_select_syms): Use filtered printing.
9712 * utils.c (wrap_style): New global.
9713 (desired_style): Remove.
9714 (emit_style_escape): Add stream parameter.
9715 (set_output_style, reset_terminal_style, prompt_for_continue):
9716 Update.
9717 (flush_wrap_buffer): Only flush gdb_stdout.
9718 (wrap_here): Set wrap_style.
9719 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
9720 treat escape sequences as a character. Change when wrap buffer is
9721 flushed.
9722 (fputs_styled): Do not set the output style when the default is
9723 requested.
9724 * ui-style.h (struct ui_file_style) <is_default>: New method.
9725 * source.c (print_source_lines_base): Emit escape sequences in one
9726 piece.
9727
75ba10dc
JB
97282019-02-17 Joel Brobecker <brobecker@adacore.com>
9729
9730 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
9731 integers and enumeration types.
9732
a2cd4f14
JB
97332019-02-17 Joel Brobecker <brobecker@adacore.com>
9734
9735 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
9736 instead of lookup_symbol_in_language
9737 (do_exact_match): New function.
9738 (ada_get_symbol_name_matcher): Return do_exact_match when
9739 doing a verbatim match.
9740
485b851b
TT
97412019-02-15 Tom Tromey <tromey@adacore.com>
9742
9743 * ravenscar-thread.c (ravenscar_thread_target::resume)
9744 (ravenscar_thread_target::wait): Special case wildcard requests.
9745
0b790b1e
TT
97462019-02-15 Tom Tromey <tromey@adacore.com>
9747
9748 * ravenscar-thread.c (base_ptid): Remove.
9749 (struct ravenscar_thread_target) <close>: New method.
9750 <m_base_ptid>: New member.
9751 <update_inferior_ptid, active_task, task_is_currently_active,
9752 runtime_initialized>: Declare methods.
9753 <ravenscar_thread_target>: Add constructor.
9754 (ravenscar_thread_target::task_is_currently_active)
9755 (ravenscar_thread_target::update_inferior_ptid)
9756 (ravenscar_runtime_initialized): Rename. Now methods.
9757 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
9758 (ravenscar_thread_target::update_thread_list): Update.
9759 (ravenscar_thread_target::active_task): Now method.
9760 (ravenscar_thread_target::store_registers)
9761 (ravenscar_thread_target::prepare_to_store)
9762 (ravenscar_thread_target::prepare_to_store)
9763 (ravenscar_thread_target::mourn_inferior): Update.
9764 (ravenscar_inferior_created): Use "new" to create target.
9765 (ravenscar_thread_target::get_ada_task_ptid): Update.
9766 (_initialize_ravenscar): Don't initialize base_ptid.
9767 (ravenscar_ops): Remove global.
9768
dea57a62
TT
97692019-02-15 Tom Tromey <tromey@adacore.com>
9770
9771 * target.h (push_target): Declare new overload.
9772 * target.c (push_target): New overload, taking an rvalue reference.
9773 * remote.c (remote_target::open_1): Use push_target overload.
9774 * corelow.c (core_target_open): Use push_target overload.
9775
989f3c58
TT
97762019-02-15 Tom Tromey <tromey@adacore.com>
9777
9778 * ravenscar-thread.c (is_ravenscar_task)
9779 (ravenscar_task_is_currently_active): Return bool.
9780 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
9781 (_initialize_ravenscar): Remove "(void)".
9782 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
9783 Return bool.
9784
6cbcc006
TT
97852019-02-15 Tom Tromey <tromey@adacore.com>
9786
9787 * ravenscar-thread.c (ravenscar_runtime_initializer)
9788 (has_ravenscar_runtime, get_running_thread_id)
9789 (ravenscar_thread_target::resume): Fix indentation.
9790
7657f14d
TT
97912019-02-15 Tom Tromey <tromey@adacore.com>
9792
9793 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
9794 from ravenscar_arch_ops.
9795 (sparc_ravenscar_ops::fetch_registers)
9796 (sparc_ravenscar_ops::store_registers): Now methods.
9797 (sparc_ravenscar_prepare_to_store): Remove.
9798 (sparc_ravenscar_ops): Redefine.
9799 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
9800 methods and destructor. Remove members.
9801 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
9802 (ravenscar_thread_target::store_registers)
9803 (ravenscar_thread_target::prepare_to_store): Update.
9804 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
9805 Remove.
9806 (struct ppc_ravenscar_powerpc_ops): Derive from
9807 ravenscar_arch_ops.
9808 (ppc_ravenscar_powerpc_ops::fetch_registers)
9809 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
9810 (ppc_ravenscar_powerpc_ops): Redefine.
9811 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
9812 (ppc_ravenscar_e500_ops::fetch_registers)
9813 (ppc_ravenscar_e500_ops::store_registers): Now methods.
9814 (ppc_ravenscar_e500_ops): Redefine.
9815 * aarch64-ravenscar-thread.c
9816 (aarch64_ravenscar_generic_prepare_to_store): Remove.
9817 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
9818 (aarch64_ravenscar_fetch_registers)
9819 (aarch64_ravenscar_store_registers): Now methods.
9820 (aarch64_ravenscar_ops): Redefine.
9821
5b6ea500
TT
98222019-02-15 Tom Tromey <tromey@adacore.com>
9823
9824 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
9825 (ravenscar_thread_target::stopped_by_hw_breakpoint)
9826 (ravenscar_thread_target::stopped_by_watchpoint)
9827 (ravenscar_thread_target::stopped_data_address)
9828 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
9829
e397fd39
TT
98302019-02-15 Tom Tromey <tromey@adacore.com>
9831
9832 * ravenscar-thread.c: Fix some typos.
9833
cc12f4a8
TT
98342019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9835 Tom Tromey <tromey@adacore.com>
9836
9837 * ada-lang.c (ada_exception_sal): Change addr_string to a
9838 std::string.
9839 (create_ada_exception_catchpoint): Update.
9840
5f486660
TT
98412019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9842 Tom Tromey <tromey@adacore.com>
9843
9844 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
9845 (bp_location_ops): Remove.
9846 (base_breakpoint_allocate_location): Update.
9847 (free_bp_location): Update.
9848 * ada-lang.c (class ada_catchpoint_location)
9849 <ada_catchpoint_location>: Remove ops parameter.
9850 (ada_catchpoint_location_dtor): Remove.
9851 (ada_catchpoint_location_ops): Remove.
9852 (allocate_location_exception): Update.
9853 * breakpoint.h (struct bp_location_ops): Remove.
9854 (class bp_location) <bp_location>: Remove bp_location_ops
9855 parameter.
9856 <~bp_location>: Add destructor.
9857 <ops>: Remove.
9858
b671c7fb
TS
98592019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9860 Pedro Alves <palves@redhat.com>
9861
9862 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
9863 'PATH_MAX'.
9864
8071c5ce
DM
98652019-02-14 David Michael <fedora.dm0@gmail.com>
9866 Samuel Thibault <samuel.thibault@gnu.org>
9867 Thomas Schwinge <thomas@codesourcery.com>
9868
9869 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
9870 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
9871
b1041ae0
TS
98722019-02-14 Thomas Schwinge <thomas@codesourcery.com>
9873
924514e1
TS
9874 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
9875 (check_empty): Use "const char *".
9876
c29ee8d4
TS
9877 * gnu-nat.c (gnu_nat_target::detach): Instead of
9878 'detach_inferior (pid)' call
9879 'detach_inferior (find_inferior_pid (pid))'.
9880
6c6ef69f
TS
9881 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
9882 'nat/fork-inferior.o'.
9883 * gnu-nat.c: #include "nat/fork-inferior.h".
9884
2d0a338c
TS
9885 * gnu-nat.c (gnu_nat_target::detach): Instead of
9886 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
9887 * gnu-nat.h: #include "inf-child.h".
9888 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
9889 'i386_gnu_nat_target::fetch_registers'.
9890 (gnu_store_registers): Rename/move to
9891 'i386_gnu_nat_target::store_registers'.
9892
cabb5f06
TS
9893 * config/i386/nm-i386gnu.h: Don't "#include" any files.
9894 * gnu-nat.h (mach_thread_info): New function.
9895 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
9896
b1041ae0
TS
9897 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
9898
2988d01e
KF
98992019-02-14 Frederic Konrad <konrad@adacore.com>
9900
9901 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
9902
c559d709
JB
99032019-02-14 Joel Brobecker <brobecker@adacore.com>
9904
9905 * windows-nat.c (windows_add_thread): Add new parameter
9906 "main_thread_p" with default value set to false. Update
9907 function documentation as well as all callers.
9908 (windows_delete_thread): Likewise.
9909 (fake_create_process): Update call to windows_add_thread.
9910 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
9911 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
9912 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
9913 call to windows_delete_thread.
9914
007024cc
SM
99152019-02-13 Simon Marchi <simon.marchi@ericsson.com>
9916
9917 * MAINTAINERS: Add Andrew Burgess as global maintainer.
9918
f62318e9
JB
99192019-02-12 John Baldwin <jhb@FreeBSD.org>
9920
9921 * symfile.c (find_separate_debug_file): Use canonical path of
9922 sysroot with child_path instead of gdb_sysroot if it is valid.
9923
cd4b7848
JB
99242019-02-12 John Baldwin <jhb@FreeBSD.org>
9925
9926 * symfile.c (find_separate_debug_file): Use child_path to
9927 determine if an object file is under a sysroot.
9928
efac4bfe
JB
99292019-02-12 John Baldwin <jhb@FreeBSD.org>
9930
9931 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9932 unittests/child-path-selftests.c.
9933 * common/pathstuff.c (child_path): New function.
9934 * common/pathstuff.h (child_path): New prototype.
9935 * unittests/child-path-selftests.c: New file.
9936
402d2bfe
JB
99372019-02-12 John Baldwin <jhb@FreeBSD.org>
9938
9939 * symfile.c (find_separate_debug_file): Look for separate debug
9940 files in debug directories under the sysroot.
9941
1ed9f74e
PW
99422019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9943
9944 * symtab.h (struct minimal_symbol data_p): New const method.
9945 (struct minimal_symbol text_p): Likewise.
9946 * symtab.c (output_source_filename): Use file name style
9947 to print file name.
9948 (print_symbol_info): Likewise.
9949 (print_msymbol_info): Use address style to print addresses.
9950 Use function name style to print executable text symbols.
9951 (expand_symtab_containing_pc): Use data_p.
9952 (find_pc_sect_compunit_symtab): Likewise.
9953
2636d81d
PW
99542019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9955
9956 * breakpoint.c (describe_other_breakpoints): Use address style
9957 to print addresses.
9958 (say_where): Likewise.
9959
ac8c53cc
PW
99602019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9961
9962 * ada-typeprint.c (print_func_type): Print function name
9963 style to print function name.
9964 * c-typeprint.c (c_print_type_1): Likewise.
9965
ea638c43
AH
99662019-02-11 Alan Hayward <alan.hayward@arm.com>
9967
9968 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
9969 for execve.
9970
ab759ca8
PW
99712019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9972
9973 * c-exp.y (direct_abs_decl): Use emplace_back to record the
9974 type_stack.
9975
aff29d1c
JB
99762019-02-10 Joel Brobecker <brobecker@adacore.com>
9977
9978 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
9979 TYPE_CODE_REF types.
9980
617126bc
JW
99812019-02-08 Jim Wilson <jimw@sifive.com>
9982
9983 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
9984 (riscv_linux_fregset): New.
9985 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
9986
46e3ed7f
TT
99872019-02-07 Tom Tromey <tom@tromey.com>
9988
9989 * thread.c (thread_cancel_execution_command): Update.
9990 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
9991 methods.
9992 (struct thread_fsm_ops): Remove.
9993 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
9994 (thread_fsm_should_stop, thread_fsm_return_value)
9995 (thread_fsm_set_finished, thread_fsm_finished_p)
9996 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
9997 Don't declare.
9998 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
9999 * infrun.c (clear_proceed_status_thread)
10000 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
10001 (print_stop_event): Update.
10002 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
10003 Add constructor.
10004 (step_command_fsm_ops): Remove.
10005 (new_step_command_fsm): Remove.
10006 (step_1): Update.
10007 (step_command_fsm::should_stop): Rename from
10008 step_command_fsm_should_stop.
10009 (step_command_fsm::clean_up): Rename from
10010 step_command_fsm_clean_up.
10011 (step_command_fsm::do_async_reply_reason): Rename from
10012 step_command_fsm_async_reply_reason.
10013 (struct until_next_fsm): Inherit from thread_fsm. Add
10014 constructor.
10015 (until_next_fsm_ops): Remove.
10016 (new_until_next_fsm): Remove.
10017 (until_next_fsm::should_stop): Rename from
10018 until_next_fsm_should_stop.
10019 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
10020 (until_next_fsm::do_async_reply_reason): Rename from
10021 until_next_fsm_async_reply_reason.
10022 (struct finish_command_fsm): Inherit from thread_fsm. Add
10023 constructor. Change type of breakpoint.
10024 (finish_command_fsm_ops): Remove.
10025 (new_finish_command_fsm): Remove.
10026 (finish_command_fsm::should_stop): Rename from
10027 finish_command_fsm_should_stop.
10028 (finish_command_fsm::clean_up): Rename from
10029 finish_command_fsm_clean_up.
10030 (finish_command_fsm::return_value): Rename from
10031 finish_command_fsm_return_value.
10032 (finish_command_fsm::do_async_reply_reason): Rename from
10033 finish_command_fsm_async_reply_reason.
10034 (finish_command): Update.
10035 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
10036 Add constructor.
10037 (call_thread_fsm_ops): Remove.
10038 (call_thread_fsm::call_thread_fsm): Rename from
10039 new_call_thread_fsm.
10040 (call_thread_fsm::should_stop): Rename from
10041 call_thread_fsm_should_stop.
10042 (call_thread_fsm::should_notify_stop): Rename from
10043 call_thread_fsm_should_notify_stop.
10044 (run_inferior_call, call_function_by_hand_dummy): Update.
10045 * cli/cli-interp.c (should_print_stop_to_console): Update.
10046 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
10047 Add constructor. Change type of location_breakpoint,
10048 caller_breakpoint.
10049 (until_break_fsm_ops): Remove.
10050 (new_until_break_fsm): Remove.
10051 (until_break_fsm::should_stop): Rename from
10052 until_break_fsm_should_stop.
10053 (until_break_fsm::clean_up): Rename from
10054 until_break_fsm_clean_up.
10055 (until_break_fsm::do_async_reply_reason): Rename from
10056 until_break_fsm_async_reply_reason.
10057 (until_break_command): Update.
10058 * thread-fsm.c: Remove.
10059 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
10060
1a5c2598
TT
100612019-02-07 Tom Tromey <tom@tromey.com>
10062
10063 * yy-remap.h: Add include guard.
10064 * xtensa-tdep.h: Add include guard.
10065 * xcoffread.h: Rename include guard.
10066 * varobj-iter.h: Add include guard.
10067 * tui/tui.h: Rename include guard.
10068 * tui/tui-winsource.h: Rename include guard.
10069 * tui/tui-wingeneral.h: Rename include guard.
10070 * tui/tui-windata.h: Rename include guard.
10071 * tui/tui-win.h: Rename include guard.
10072 * tui/tui-stack.h: Rename include guard.
10073 * tui/tui-source.h: Rename include guard.
10074 * tui/tui-regs.h: Rename include guard.
10075 * tui/tui-out.h: Rename include guard.
10076 * tui/tui-layout.h: Rename include guard.
10077 * tui/tui-io.h: Rename include guard.
10078 * tui/tui-hooks.h: Rename include guard.
10079 * tui/tui-file.h: Rename include guard.
10080 * tui/tui-disasm.h: Rename include guard.
10081 * tui/tui-data.h: Rename include guard.
10082 * tui/tui-command.h: Rename include guard.
10083 * tic6x-tdep.h: Add include guard.
10084 * target/waitstatus.h: Rename include guard.
10085 * target/wait.h: Rename include guard.
10086 * target/target.h: Rename include guard.
10087 * target/resume.h: Rename include guard.
10088 * target-float.h: Rename include guard.
10089 * stabsread.h: Add include guard.
10090 * rs6000-tdep.h: Add include guard.
10091 * riscv-fbsd-tdep.h: Add include guard.
10092 * regformats/regdef.h: Rename include guard.
10093 * record.h: Rename include guard.
10094 * python/python.h: Rename include guard.
10095 * python/python-internal.h: Rename include guard.
10096 * python/py-stopevent.h: Rename include guard.
10097 * python/py-ref.h: Rename include guard.
10098 * python/py-record.h: Rename include guard.
10099 * python/py-record-full.h: Rename include guard.
10100 * python/py-record-btrace.h: Rename include guard.
10101 * python/py-instruction.h: Rename include guard.
10102 * python/py-events.h: Rename include guard.
10103 * python/py-event.h: Rename include guard.
10104 * procfs.h: Add include guard.
10105 * proc-utils.h: Add include guard.
10106 * p-lang.h: Add include guard.
10107 * or1k-tdep.h: Rename include guard.
10108 * observable.h: Rename include guard.
10109 * nto-tdep.h: Rename include guard.
10110 * nat/x86-linux.h: Rename include guard.
10111 * nat/x86-linux-dregs.h: Rename include guard.
10112 * nat/x86-gcc-cpuid.h: Add include guard.
10113 * nat/x86-dregs.h: Rename include guard.
10114 * nat/x86-cpuid.h: Rename include guard.
10115 * nat/ppc-linux.h: Rename include guard.
10116 * nat/mips-linux-watch.h: Rename include guard.
10117 * nat/linux-waitpid.h: Rename include guard.
10118 * nat/linux-ptrace.h: Rename include guard.
10119 * nat/linux-procfs.h: Rename include guard.
10120 * nat/linux-osdata.h: Rename include guard.
10121 * nat/linux-nat.h: Rename include guard.
10122 * nat/linux-namespaces.h: Rename include guard.
10123 * nat/linux-btrace.h: Rename include guard.
10124 * nat/glibc_thread_db.h: Rename include guard.
10125 * nat/gdb_thread_db.h: Rename include guard.
10126 * nat/gdb_ptrace.h: Rename include guard.
10127 * nat/fork-inferior.h: Rename include guard.
10128 * nat/amd64-linux-siginfo.h: Rename include guard.
10129 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
10130 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
10131 * nat/aarch64-linux.h: Rename include guard.
10132 * nat/aarch64-linux-hw-point.h: Rename include guard.
10133 * mn10300-tdep.h: Add include guard.
10134 * mips-linux-tdep.h: Add include guard.
10135 * mi/mi-parse.h: Rename include guard.
10136 * mi/mi-out.h: Rename include guard.
10137 * mi/mi-main.h: Rename include guard.
10138 * mi/mi-interp.h: Rename include guard.
10139 * mi/mi-getopt.h: Rename include guard.
10140 * mi/mi-console.h: Rename include guard.
10141 * mi/mi-common.h: Rename include guard.
10142 * mi/mi-cmds.h: Rename include guard.
10143 * mi/mi-cmd-break.h: Rename include guard.
10144 * m2-lang.h: Add include guard.
10145 * location.h: Rename include guard.
10146 * linux-record.h: Rename include guard.
10147 * linux-nat.h: Add include guard.
10148 * linux-fork.h: Add include guard.
10149 * i386-darwin-tdep.h: Rename include guard.
10150 * hppa-linux-offsets.h: Add include guard.
10151 * guile/guile.h: Rename include guard.
10152 * guile/guile-internal.h: Rename include guard.
10153 * gnu-nat.h: Rename include guard.
10154 * gdb-stabs.h: Rename include guard.
10155 * frv-tdep.h: Add include guard.
10156 * f-lang.h: Add include guard.
10157 * event-loop.h: Add include guard.
10158 * darwin-nat.h: Rename include guard.
10159 * cp-abi.h: Rename include guard.
10160 * config/sparc/nm-sol2.h: Rename include guard.
10161 * config/nm-nto.h: Rename include guard.
10162 * config/nm-linux.h: Add include guard.
10163 * config/i386/nm-i386gnu.h: Rename include guard.
10164 * config/djgpp/nl_types.h: Rename include guard.
10165 * config/djgpp/langinfo.h: Rename include guard.
10166 * compile/gcc-cp-plugin.h: Add include guard.
10167 * compile/gcc-c-plugin.h: Add include guard.
10168 * compile/compile.h: Rename include guard.
10169 * compile/compile-object-run.h: Rename include guard.
10170 * compile/compile-object-load.h: Rename include guard.
10171 * compile/compile-internal.h: Rename include guard.
10172 * compile/compile-cplus.h: Rename include guard.
10173 * compile/compile-c.h: Rename include guard.
10174 * common/xml-utils.h: Rename include guard.
10175 * common/x86-xstate.h: Rename include guard.
10176 * common/version.h: Rename include guard.
10177 * common/vec.h: Rename include guard.
10178 * common/tdesc.h: Rename include guard.
10179 * common/selftest.h: Rename include guard.
10180 * common/scoped_restore.h: Rename include guard.
10181 * common/scoped_mmap.h: Rename include guard.
10182 * common/scoped_fd.h: Rename include guard.
10183 * common/safe-iterator.h: Rename include guard.
10184 * common/run-time-clock.h: Rename include guard.
10185 * common/refcounted-object.h: Rename include guard.
10186 * common/queue.h: Rename include guard.
10187 * common/ptid.h: Rename include guard.
10188 * common/print-utils.h: Rename include guard.
10189 * common/preprocessor.h: Rename include guard.
10190 * common/pathstuff.h: Rename include guard.
10191 * common/observable.h: Rename include guard.
10192 * common/netstuff.h: Rename include guard.
10193 * common/job-control.h: Rename include guard.
10194 * common/host-defs.h: Rename include guard.
10195 * common/gdb_wait.h: Rename include guard.
10196 * common/gdb_vecs.h: Rename include guard.
10197 * common/gdb_unlinker.h: Rename include guard.
10198 * common/gdb_unique_ptr.h: Rename include guard.
10199 * common/gdb_tilde_expand.h: Rename include guard.
10200 * common/gdb_sys_time.h: Rename include guard.
10201 * common/gdb_string_view.h: Rename include guard.
10202 * common/gdb_splay_tree.h: Rename include guard.
10203 * common/gdb_setjmp.h: Rename include guard.
10204 * common/gdb_ref_ptr.h: Rename include guard.
10205 * common/gdb_optional.h: Rename include guard.
10206 * common/gdb_locale.h: Rename include guard.
10207 * common/gdb_assert.h: Rename include guard.
10208 * common/filtered-iterator.h: Rename include guard.
10209 * common/filestuff.h: Rename include guard.
10210 * common/fileio.h: Rename include guard.
10211 * common/environ.h: Rename include guard.
10212 * common/common-utils.h: Rename include guard.
10213 * common/common-types.h: Rename include guard.
10214 * common/common-regcache.h: Rename include guard.
10215 * common/common-inferior.h: Rename include guard.
10216 * common/common-gdbthread.h: Rename include guard.
10217 * common/common-exceptions.h: Rename include guard.
10218 * common/common-defs.h: Rename include guard.
10219 * common/common-debug.h: Rename include guard.
10220 * common/cleanups.h: Rename include guard.
10221 * common/buffer.h: Rename include guard.
10222 * common/btrace-common.h: Rename include guard.
10223 * common/break-common.h: Rename include guard.
10224 * cli/cli-utils.h: Rename include guard.
10225 * cli/cli-style.h: Rename include guard.
10226 * cli/cli-setshow.h: Rename include guard.
10227 * cli/cli-script.h: Rename include guard.
10228 * cli/cli-interp.h: Rename include guard.
10229 * cli/cli-decode.h: Rename include guard.
10230 * cli/cli-cmds.h: Rename include guard.
10231 * charset-list.h: Add include guard.
10232 * buildsym-legacy.h: Rename include guard.
10233 * bfin-tdep.h: Add include guard.
10234 * ax.h: Rename include guard.
10235 * arm-linux-tdep.h: Add include guard.
10236 * arm-fbsd-tdep.h: Add include guard.
10237 * arch/xtensa.h: Rename include guard.
10238 * arch/tic6x.h: Add include guard.
10239 * arch/i386.h: Add include guard.
10240 * arch/arm.h: Rename include guard.
10241 * arch/arm-linux.h: Rename include guard.
10242 * arch/arm-get-next-pcs.h: Rename include guard.
10243 * arch/amd64.h: Add include guard.
10244 * arch/aarch64-insn.h: Rename include guard.
10245 * arch-utils.h: Rename include guard.
10246 * annotate.h: Add include guard.
10247 * amd64-darwin-tdep.h: Rename include guard.
10248 * aarch64-linux-tdep.h: Add include guard.
10249 * aarch64-fbsd-tdep.h: Add include guard.
10250 * aarch32-linux-nat.h: Add include guard.
10251
ab9268d2
PW
102522019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10253
10254 * macrotab.c (macro_define_internal): New function that
10255 factorizes macro_define_object_internal and macro_define_function
10256 code.
10257 (macro_define_object_internal): Use macro_define_internal.
10258 (macro_define_function): Likewise.
10259
bb0da2b4
PW
102602019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10261
10262 * macrocmd.c (extract_identifier): Return
10263 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
10264 callers.
10265
424eb552
JB
102662019-02-06 John Baldwin <jhb@FreeBSD.org>
10267
10268 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
10269
1688cb29
TT
102702019-02-05 Tom Tromey <tom@tromey.com>
10271
10272 * target.c (target_stack::unpush): Move assertion earlier.
10273
b5eba2d8
TT
102742019-01-30 Tom Tromey <tom@tromey.com>
10275
10276 PR python/23615:
10277 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
10278 (gdbpy_parse_and_eval): Likewise.
10279 * python/python-internal.h (gdbpy_allow_threads): New class.
10280
7054e2ff
JB
102812019-01-28 John Baldwin <jhb@FreeBSD.org>
10282
10283 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
10284 (aarch64_fbsd_fpregmap): Move earlier.
10285 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
10286 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10287 instead of individual calls to trad_frame_set_reg_addr.
10288 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
10289 earlier.
10290 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
10291 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
10292 instead of individual calls to trad_frame_set_reg_addr.
10293
36c25ffa
AH
102942019-01-28 Alan Hayward <alan.hayward@arm.com>
10295
10296 * CONTRIBUTE: Replace contribution list with wiki link.
10297
a0707f3c
TT
102982019-01-25 Tom Tromey <tom@tromey.com>
10299
10300 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
10301
0747795c
TT
103022019-01-25 Tom Tromey <tom@tromey.com>
10303
10304 * xtensa-linux-nat.c: Fix common/ includes.
10305 * xml-support.h: Fix common/ includes.
10306 * xml-support.c: Fix common/ includes.
10307 * x86-linux-nat.c: Fix common/ includes.
10308 * windows-nat.c: Fix common/ includes.
10309 * varobj.h: Fix common/ includes.
10310 * varobj.c: Fix common/ includes.
10311 * value.c: Fix common/ includes.
10312 * valops.c: Fix common/ includes.
10313 * utils.c: Fix common/ includes.
10314 * unittests/xml-utils-selftests.c: Fix common/ includes.
10315 * unittests/utils-selftests.c: Fix common/ includes.
10316 * unittests/unpack-selftests.c: Fix common/ includes.
10317 * unittests/tracepoint-selftests.c: Fix common/ includes.
10318 * unittests/style-selftests.c: Fix common/ includes.
10319 * unittests/string_view-selftests.c: Fix common/ includes.
10320 * unittests/scoped_restore-selftests.c: Fix common/ includes.
10321 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
10322 * unittests/scoped_fd-selftests.c: Fix common/ includes.
10323 * unittests/rsp-low-selftests.c: Fix common/ includes.
10324 * unittests/parse-connection-spec-selftests.c: Fix common/
10325 includes.
10326 * unittests/optional-selftests.c: Fix common/ includes.
10327 * unittests/offset-type-selftests.c: Fix common/ includes.
10328 * unittests/observable-selftests.c: Fix common/ includes.
10329 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
10330 * unittests/memrange-selftests.c: Fix common/ includes.
10331 * unittests/memory-map-selftests.c: Fix common/ includes.
10332 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
10333 * unittests/function-view-selftests.c: Fix common/ includes.
10334 * unittests/environ-selftests.c: Fix common/ includes.
10335 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
10336 * unittests/common-utils-selftests.c: Fix common/ includes.
10337 * unittests/cli-utils-selftests.c: Fix common/ includes.
10338 * unittests/array-view-selftests.c: Fix common/ includes.
10339 * ui-file.c: Fix common/ includes.
10340 * tui/tui-io.c: Fix common/ includes.
10341 * tracepoint.h: Fix common/ includes.
10342 * tracepoint.c: Fix common/ includes.
10343 * tracefile-tfile.c: Fix common/ includes.
10344 * top.h: Fix common/ includes.
10345 * top.c: Fix common/ includes.
10346 * thread.c: Fix common/ includes.
10347 * target/waitstatus.h: Fix common/ includes.
10348 * target/waitstatus.c: Fix common/ includes.
10349 * target.h: Fix common/ includes.
10350 * target.c: Fix common/ includes.
10351 * target-memory.c: Fix common/ includes.
10352 * target-descriptions.c: Fix common/ includes.
10353 * symtab.h: Fix common/ includes.
10354 * symfile.c: Fix common/ includes.
10355 * stap-probe.c: Fix common/ includes.
10356 * spu-linux-nat.c: Fix common/ includes.
10357 * sparc-nat.c: Fix common/ includes.
10358 * source.c: Fix common/ includes.
10359 * solib.c: Fix common/ includes.
10360 * solib-target.c: Fix common/ includes.
10361 * ser-unix.c: Fix common/ includes.
10362 * ser-tcp.c: Fix common/ includes.
10363 * ser-pipe.c: Fix common/ includes.
10364 * ser-base.c: Fix common/ includes.
10365 * selftest-arch.c: Fix common/ includes.
10366 * s12z-tdep.c: Fix common/ includes.
10367 * rust-exp.y: Fix common/ includes.
10368 * rs6000-aix-tdep.c: Fix common/ includes.
10369 * riscv-tdep.c: Fix common/ includes.
10370 * remote.c: Fix common/ includes.
10371 * remote-notif.h: Fix common/ includes.
10372 * remote-fileio.h: Fix common/ includes.
10373 * remote-fileio.c: Fix common/ includes.
10374 * regcache.h: Fix common/ includes.
10375 * regcache.c: Fix common/ includes.
10376 * record-btrace.c: Fix common/ includes.
10377 * python/python.c: Fix common/ includes.
10378 * python/py-type.c: Fix common/ includes.
10379 * python/py-inferior.c: Fix common/ includes.
10380 * progspace.h: Fix common/ includes.
10381 * producer.c: Fix common/ includes.
10382 * procfs.c: Fix common/ includes.
10383 * proc-api.c: Fix common/ includes.
10384 * printcmd.c: Fix common/ includes.
10385 * ppc-linux-nat.c: Fix common/ includes.
10386 * parser-defs.h: Fix common/ includes.
10387 * osdata.c: Fix common/ includes.
10388 * obsd-nat.c: Fix common/ includes.
10389 * nat/x86-linux.c: Fix common/ includes.
10390 * nat/x86-linux-dregs.c: Fix common/ includes.
10391 * nat/x86-dregs.h: Fix common/ includes.
10392 * nat/x86-dregs.c: Fix common/ includes.
10393 * nat/ppc-linux.c: Fix common/ includes.
10394 * nat/mips-linux-watch.h: Fix common/ includes.
10395 * nat/mips-linux-watch.c: Fix common/ includes.
10396 * nat/linux-waitpid.c: Fix common/ includes.
10397 * nat/linux-ptrace.h: Fix common/ includes.
10398 * nat/linux-ptrace.c: Fix common/ includes.
10399 * nat/linux-procfs.c: Fix common/ includes.
10400 * nat/linux-personality.c: Fix common/ includes.
10401 * nat/linux-osdata.c: Fix common/ includes.
10402 * nat/linux-namespaces.c: Fix common/ includes.
10403 * nat/linux-btrace.h: Fix common/ includes.
10404 * nat/linux-btrace.c: Fix common/ includes.
10405 * nat/fork-inferior.c: Fix common/ includes.
10406 * nat/amd64-linux-siginfo.c: Fix common/ includes.
10407 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
10408 * nat/aarch64-linux.c: Fix common/ includes.
10409 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
10410 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
10411 * namespace.h: Fix common/ includes.
10412 * mips-linux-tdep.c: Fix common/ includes.
10413 * minsyms.c: Fix common/ includes.
10414 * mi/mi-parse.h: Fix common/ includes.
10415 * mi/mi-main.c: Fix common/ includes.
10416 * mi/mi-cmd-env.c: Fix common/ includes.
10417 * memrange.h: Fix common/ includes.
10418 * memattr.c: Fix common/ includes.
10419 * maint.h: Fix common/ includes.
10420 * maint.c: Fix common/ includes.
10421 * main.c: Fix common/ includes.
10422 * machoread.c: Fix common/ includes.
10423 * location.c: Fix common/ includes.
10424 * linux-thread-db.c: Fix common/ includes.
10425 * linux-nat.c: Fix common/ includes.
10426 * linux-fork.c: Fix common/ includes.
10427 * inline-frame.c: Fix common/ includes.
10428 * infrun.c: Fix common/ includes.
10429 * inflow.c: Fix common/ includes.
10430 * inferior.h: Fix common/ includes.
10431 * inferior.c: Fix common/ includes.
10432 * infcmd.c: Fix common/ includes.
10433 * inf-ptrace.c: Fix common/ includes.
10434 * inf-child.c: Fix common/ includes.
10435 * ia64-linux-nat.c: Fix common/ includes.
10436 * i387-tdep.c: Fix common/ includes.
10437 * i386-tdep.c: Fix common/ includes.
10438 * i386-linux-tdep.c: Fix common/ includes.
10439 * i386-linux-nat.c: Fix common/ includes.
10440 * i386-go32-tdep.c: Fix common/ includes.
10441 * i386-fbsd-tdep.c: Fix common/ includes.
10442 * i386-fbsd-nat.c: Fix common/ includes.
10443 * guile/scm-type.c: Fix common/ includes.
10444 * guile/guile.c: Fix common/ includes.
10445 * go32-nat.c: Fix common/ includes.
10446 * gnu-nat.c: Fix common/ includes.
10447 * gdbthread.h: Fix common/ includes.
10448 * gdbarch-selftests.c: Fix common/ includes.
10449 * gdb_usleep.c: Fix common/ includes.
10450 * gdb_select.h: Fix common/ includes.
10451 * gdb_bfd.c: Fix common/ includes.
10452 * gcore.c: Fix common/ includes.
10453 * fork-child.c: Fix common/ includes.
10454 * findvar.c: Fix common/ includes.
10455 * fbsd-nat.c: Fix common/ includes.
10456 * event-top.c: Fix common/ includes.
10457 * event-loop.c: Fix common/ includes.
10458 * dwarf2read.c: Fix common/ includes.
10459 * dwarf2loc.c: Fix common/ includes.
10460 * dwarf2-frame.c: Fix common/ includes.
10461 * dwarf-index-cache.c: Fix common/ includes.
10462 * dtrace-probe.c: Fix common/ includes.
10463 * disasm-selftests.c: Fix common/ includes.
10464 * defs.h: Fix common/ includes.
10465 * csky-tdep.c: Fix common/ includes.
10466 * cp-valprint.c: Fix common/ includes.
10467 * cp-support.h: Fix common/ includes.
10468 * cp-support.c: Fix common/ includes.
10469 * corelow.c: Fix common/ includes.
10470 * completer.h: Fix common/ includes.
10471 * completer.c: Fix common/ includes.
10472 * compile/compile.c: Fix common/ includes.
10473 * compile/compile-loc2c.c: Fix common/ includes.
10474 * compile/compile-cplus-types.c: Fix common/ includes.
10475 * compile/compile-cplus-symbols.c: Fix common/ includes.
10476 * command.h: Fix common/ includes.
10477 * cli/cli-dump.c: Fix common/ includes.
10478 * cli/cli-cmds.c: Fix common/ includes.
10479 * charset.c: Fix common/ includes.
10480 * build-id.c: Fix common/ includes.
10481 * btrace.h: Fix common/ includes.
10482 * btrace.c: Fix common/ includes.
10483 * breakpoint.h: Fix common/ includes.
10484 * breakpoint.c: Fix common/ includes.
10485 * ax.h:
10486 (enum agent_op): Fix common/ includes.
10487 * ax-general.c (struct aop_map): Fix common/ includes.
10488 * ax-gdb.c: Fix common/ includes.
10489 * auxv.c: Fix common/ includes.
10490 * auto-load.c: Fix common/ includes.
10491 * arm-tdep.c: Fix common/ includes.
10492 * arch/riscv.c: Fix common/ includes.
10493 * arch/ppc-linux-common.c: Fix common/ includes.
10494 * arch/i386.c: Fix common/ includes.
10495 * arch/arm.c: Fix common/ includes.
10496 * arch/arm-linux.c: Fix common/ includes.
10497 * arch/arm-get-next-pcs.c: Fix common/ includes.
10498 * arch/amd64.c: Fix common/ includes.
10499 * arch/aarch64.c: Fix common/ includes.
10500 * arch/aarch64-insn.c: Fix common/ includes.
10501 * arch-utils.c: Fix common/ includes.
10502 * amd64-windows-tdep.c: Fix common/ includes.
10503 * amd64-tdep.c: Fix common/ includes.
10504 * amd64-sol2-tdep.c: Fix common/ includes.
10505 * amd64-obsd-tdep.c: Fix common/ includes.
10506 * amd64-nbsd-tdep.c: Fix common/ includes.
10507 * amd64-linux-tdep.c: Fix common/ includes.
10508 * amd64-linux-nat.c: Fix common/ includes.
10509 * amd64-fbsd-tdep.c: Fix common/ includes.
10510 * amd64-fbsd-nat.c: Fix common/ includes.
10511 * amd64-dicos-tdep.c: Fix common/ includes.
10512 * amd64-darwin-tdep.c: Fix common/ includes.
10513 * agent.c: Fix common/ includes.
10514 * ada-lang.h: Fix common/ includes.
10515 * ada-lang.c: Fix common/ includes.
10516 * aarch64-tdep.c: Fix common/ includes.
10517
2f5c153e
TT
105182019-01-25 Tom Tromey <tom@tromey.com>
10519
10520 * common/create-version.sh: Use common/version.h.
10521
adc6a863
PA
105222019-01-24 Pedro Alves <palves@redhat.com>
10523
10524 * infrun.c (signal_stop, signal_print, signal_program)
10525 (signal_catch, signal_pass): Now arrays instead of pointers.
10526 (update_signals_program_target, do_target_resume)
10527 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
10528 * linux-nat.c (linux_nat_target::pass_signals)
10529 (linux_nat_target::create_inferior, linux_nat_target::attach):
10530 Adjust.
10531 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
10532 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
10533 * procfs.c (procfs_target::pass_signals): Adjust.
10534 * record-full.c (record_full_target::resume): Adjust.
10535 * remote.c (remote_target::pass_signals)
10536 (remote_target::program_signals): Adjust.
10537 * target-debug.h (target_debug_print_signals): Now takes a
10538 gdb::array_view as parameter. Adjust.
10539 * target.h (target_ops) <pass_signals, program_signals>: Replace
10540 pointer and length parameters with gdb::array_view.
10541 (target_pass_signals, target_program_signals): Likewise.
10542 * target-delegates.c: Regenerate.
10543
3046d67a
PA
105442019-01-24 Pedro Alves <palves@redhat.com>
10545
10546 * common/forward-scope-exit.h
10547 (forward_scope_exit::forward_scope_exit): Pass arguments to
10548 m_bind_function directly, instead of creating a std::bind and
10549 copying that.
10550
353229bf
AH
105512019-01-24 Alan Hayward <alan.hayward@arm.com>
10552
10553 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10554 for static members.
10555 (pass_in_v_vfp_candidate): Likewise.
10556
311dc83a
TT
105572019-01-23 Tom Tromey <tom@tromey.com>
10558 Pedro Alves <palves@redhat.com>
10559
10560 * regcache.c (class regcache_invalidator): Remove.
10561 (regcache::raw_write): Use make_scope_exit.
10562
296bd123
TT
105632019-01-23 Tom Tromey <tom@tromey.com>
10564
10565 * ui-out.h (class ui_out_emit_type): Update comment.
10566
979a0d13
TT
105672019-01-23 Tom Tromey <tom@tromey.com>
10568
10569 * infrun.c (fetch_inferior_event): Update comment.
10570
d238133d
TT
105712019-01-23 Tom Tromey <tom@tromey.com>
10572 Pedro Alves <palves@redhat.com>
10573
10574 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
10575 parameter.
10576 (fetch_inferior_event): Use SCOPE_EXIT.
10577
10578
9885e6bb
TT
105792019-01-23 Tom Tromey <tom@tromey.com>
10580 Pedro Alves <palves@redhat.com>
10581
10582 * infrun.c (disable_thread_events): Delete.
10583 (stop_all_threads): Use SCOPE_EXIT.
10584
286526c1
TT
105852019-01-23 Tom Tromey <tom@tromey.com>
10586 Pedro Alves <palves@redhat.com>
10587
10588 * symfile.c: Include forward-scope-exit.h.
10589 (clear_symtab_users_cleanup): Replace forward declaration with
10590 a FORWARD_SCOPE_EXIT.
10591 (syms_from_objfile_1): Use the forward_scope_exit and
10592 gdb::optional instead of cleanup_function.
10593 (reread_symbols): Use the forward_scope_exit instead of
10594 cleanup_function.
10595 (clear_symtab_users_cleanup): Remove function.
10596
1db93f14
TT
105972019-01-23 Tom Tromey <tom@tromey.com>
10598 Pedro Alves <palves@redhat.com>
10599
10600 * linux-nat.c: Include scope-exit.h.
10601 (cleanup_target_stop): Remove.
10602 (linux_nat_target::static_tracepoint_markers_by_strid): Use
10603 SCOPE_EXIT.
10604
2cc83d1e
TT
106052019-01-23 Tom Tromey <tom@tromey.com>
10606 Pedro Alves <palves@redhat.com>
10607
10608 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
10609 (call_function_by_hand_dummy): Use SCOPE_EXIT.
10610
694c6bf5
TT
106112019-01-23 Tom Tromey <tom@tromey.com>
10612 Andrew Burgess <andrew.burgess@embecosm.com>
10613 Pedro Alves <palves@redhat.com>
10614
10615 * infrun.c (fetch_inferior_event): Use scope_exit.
10616 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
10617 * top.c (execute_command): Use scope_exit.
10618 * breakpoint.c (bpstat_do_actions): Use scope_exit.
10619 * utils.c (do_bpstat_clear_actions_cleanup)
10620 (make_bpstat_clear_actions_cleanup): Remove.
10621
4c41382a
TT
106222019-01-23 Tom Tromey <tom@tromey.com>
10623 Pedro Alves <palves@redhat.com>
10624
10625 * infrun.c: Include "common/scope-exit.h"
10626 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
10627 (wait_for_inferior): Use SCOPE_EXIT.
10628 (fetch_inferior_event): Use scope_exit.
10629
89f8fb50
TT
106302019-01-23 Tom Tromey <tom@tromey.com>
10631 Pedro Alves <palves@redhat.com>
10632
10633 * breakpoint.c (create_breakpoint): Remove cleanup.
10634
5419bdae
TT
106352019-01-23 Tom Tromey <tom@tromey.com>
10636 Andrew Burgess <andrew.burgess@embecosm.com>
10637 Pedro Alves <palves@redhat.com>
10638
e587ef42
PA
106392019-01-23 Pedro Alves <palves@redhat.com>
10640
10641 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
10642
77f0e74c
PA
106432019-01-23 Pedro Alves <palves@redhat.com>
10644 Andrew Burgess <andrew.burgess@embecosm.com>
10645
10646 * gdbthread.h: Include "common/forward-scope-exit.h".
10647 (scoped_finish_thread_state): Redefine custom class in terms of
10648 forward_scope_exit.
10649
5b9b3e53
PA
106502019-01-23 Pedro Alves <palves@redhat.com>
10651 Andrew Burgess <andrew.burgess@embecosm.com>
10652
10653 * common/forward-scope-exit.h: New file.
10654
54b65c9b
PA
106552019-01-23 Pedro Alves <palves@redhat.com>
10656 Andrew Burgess <andrew.burgess@embecosm.com>
10657 Tom Tromey <tom@tromey.com>
10658
10659 * common/scope-exit.h: New file.
10660
cf08fb29
PA
106612019-01-23 Pedro Alves <palves@redhat.com>
10662
10663 * common/preprocessor.h (ESC): Rename to ...
10664 (ESC_PARENS): ... this.
10665 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
10666 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
10667
ae73e2e2
TT
106682019-01-23 Tom Tromey <tom@tromey.com>
10669
10670 * language.h (class scoped_switch_to_sym_language_if_auto):
10671 Initialize m_lang in both cases.
10672
6594e122
AH
106732019-01-23 Alan Hayward <alan.hayward@arm.com>
10674
10675 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
10676 with XCNEW.
10677
a7c9855d
TT
106782019-01-22 Tom Tromey <tom@tromey.com>
10679
10680 * corelow.c: Do not include sys/file.h.
10681
93cc1d53
TT
106822019-01-22 Tom Tromey <tom@tromey.com>
10683
10684 * tui/tui-wingeneral.h: Include gdb_curses.h.
10685
38561778
TT
106862019-01-22 Tom Tromey <tom@tromey.com>
10687
10688 * source-cache.h (class source_cache) <get_source_lines,
10689 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
10690
37b3ab5b
TT
106912019-01-22 Tom Tromey <tom@tromey.com>
10692
10693 * remote-fileio.h (struct remote_target): Declare.
10694
3fabc016
TT
106952019-01-22 Tom Tromey <tom@tromey.com>
10696
10697 * python/py-arch.c: Do not include py-ref.h.
10698 * python/py-bpevent.c: Do not include py-ref.h.
10699 * python/py-cmd.c: Do not include py-ref.h.
10700 * python/py-continueevent.c: Do not include py-ref.h.
10701 * python/py-event.h: Do not include py-ref.h.
10702 * python/py-evtregistry.c: Do not include py-ref.h.
10703 * python/py-finishbreakpoint.c: Do not include py-ref.h.
10704 * python/py-frame.c: Do not include py-ref.h.
10705 * python/py-framefilter.c: Do not include py-ref.h.
10706 * python/py-function.c: Do not include py-ref.h.
10707 * python/py-infevents.c: Do not include py-ref.h.
10708 * python/py-linetable.c: Do not include py-ref.h.
10709 * python/py-objfile.c: Do not include py-ref.h.
10710 * python/py-param.c: Do not include py-ref.h.
10711 * python/py-prettyprint.c: Do not include py-ref.h.
10712 * python/py-progspace.c: Do not include py-ref.h.
10713 * python/py-symbol.c: Do not include py-ref.h.
10714 * python/py-symtab.c: Do not include py-ref.h.
10715 * python/py-type.c: Do not include py-ref.h.
10716 * python/py-unwind.c: Do not include py-ref.h.
10717 * python/py-utils.c: Do not include py-ref.h.
10718 * python/py-value.c: Do not include py-ref.h.
10719 * python/py-varobj.c: Do not include py-ref.h.
10720 * python/py-xmethods.c: Do not include py-ref.h.
10721 * python/python.c: Do not include py-ref.h.
10722 * varobj.c: Do not include py-ref.h.
10723
6b4d7774
TT
107242019-01-22 Tom Tromey <tom@tromey.com>
10725
10726 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
10727 keyword for bcache.
10728
7af7e9b5
TT
107292019-01-22 Tom Tromey <tom@tromey.com>
10730
10731 * compile/compile-cplus-types.c: Remove a comment by #include.
10732
951d1049
TT
107332019-01-22 Tom Tromey <tom@tromey.com>
10734
10735 * compile/gcc-c-plugin.h: Include compile-internal.h.
10736
d65d5705
TT
107372019-01-22 Tom Tromey <tom@tromey.com>
10738
10739 * stabsread.c (EXTERN): Do not define.
10740 (symnum, next_symbol_text_func, processing_gcc_compilation)
10741 (within_function, global_sym_chain, global_stabs)
10742 (previous_stab_code, this_object_header_files)
10743 (n_this_object_header_files)
10744 (n_allocated_this_object_header_files): Define.
10745 * stabsread.h (EXTERN): Never define. Use "extern".
10746
b6fb1ee5
PW
107472019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10748
10749 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
10750 history_value.
10751
be6d4f74
TT
107522019-01-21 Tom Tromey <tom@tromey.com>
10753
10754 * ui-out.c: Fix includes.
10755 * tui/tui-source.c: Fix includes.
10756 * target.c: Fix includes.
10757 * remote.c: Fix includes.
10758 * regcache.c: Fix includes.
10759 * python/py-block.c: Fix includes.
10760 * printcmd.c: Fix includes.
10761 * or1k-tdep.c: Fix includes.
10762 * mi/mi-main.c: Fix includes.
10763 * m32r-tdep.c: Fix includes.
10764 * csky-tdep.c: Fix includes.
10765 * compile/compile-cplus-types.c: Fix includes.
10766 * cli/cli-interp.c: Fix includes.
10767
73021deb
AH
107682019-01-21 Alan Hayward <alan.hayward@arm.com>
10769
10770 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
10771 for padding.
10772
7932255d
TT
107732019-01-16 Tom Tromey <tom@tromey.com>
10774
10775 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
10776 earlier.
10777 (struct objfile) <msymbols_range>: Move from top level.
10778 <msymbols>: New method.
10779 (class objfile_msymbols): Remove.
10780 * symtab.c (default_collect_symbol_completion_matches_break_on):
10781 Update.
10782 * symmisc.c (dump_msymbols): Update.
10783 * stabsread.c (scan_file_globals): Update.
10784 * objc-lang.c (info_selectors_command, info_classes_command)
10785 (find_methods): Update.
10786 * minsyms.c (find_solib_trampoline_target): Update.
10787 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
10788 * coffread.c (coff_symfile_read): Update.
10789 * ada-lang.c (ada_lookup_simple_minsym)
10790 (ada_collect_symbol_completion_matches): Update.
10791
604b1bfb
TT
107922019-01-16 Tom Tromey <tom@tromey.com>
10793
10794 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
10795 type. Remove no-argument constructor.
10796 <iterator::operator++>: Simplify.
10797 <begin>: Update.
10798 <end>: Use minimal_symbol_count.
10799
f252c6d5
TT
108002019-01-16 Tom Tromey <tom@tromey.com>
10801
10802 * objfiles.h (struct objfile) <psymtabs>: New method.
10803 (class objfile_psymtabs): Remove.
10804 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
10805 typedef.
10806 <range>: New method.
10807 (require_partial_symbols): Change return type.
10808 * psymtab.c (require_partial_symbols)
10809 (psym_expand_symtabs_matching): Update.
10810 * mdebugread.c (parse_partial_symbols): Update.
10811 * dbxread.c (dbx_end_psymtab): Update.
10812
b669c953
TT
108132019-01-15 Tom Tromey <tom@tromey.com>
10814
10815 * symtab.c (lookup_objfile_from_block)
10816 (lookup_symbol_in_objfile_symtabs)
10817 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
10818 (find_line_symtab, info_sources_command)
10819 (default_collect_symbol_completion_matches_break_on)
10820 (make_source_files_completion_list): Update.
10821 * symmisc.c (print_objfile_statistics, dump_objfile)
10822 (maintenance_print_symbols, maintenance_info_symtabs)
10823 (maintenance_check_symtabs, maintenance_info_line_tables):
10824 Update.
10825 * source.c (select_source_symtab)
10826 (forget_cached_source_info_for_objfile): Update.
10827 * objfiles.h (class objfile_compunits): Remove.
10828 (struct objfile) <compunits_range>: New typedef.
10829 (compunits): New method.
10830 * objfiles.c (objfile_relocate1): Update.
10831 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10832 * maint.c (count_symtabs_and_blocks): Update.
10833 * linespec.c (iterate_over_all_matching_symtabs): Update.
10834 * cp-support.c (add_symbol_overload_list_qualified): Update.
10835 * coffread.c (coff_symtab_read): Update.
10836 * ada-lang.c (add_nonlocal_symbols)
10837 (ada_collect_symbol_completion_matches)
10838 (ada_add_global_exceptions): Update.
10839
7e955d83
TT
108402019-01-15 Tom Tromey <tom@tromey.com>
10841
10842 * progspace.h (program_space) <objfiles_safe_range>: New
10843 typedef.
10844 <objfiles_safe>: New method.
10845 * objfiles.h (class all_objfiles_safe): Remove.
10846 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
10847 * jit.c (jit_inferior_exit_hook): Update.
10848
2030c079
TT
108492019-01-17 Tom Tromey <tom@tromey.com>
10850
10851 * progspace.h (program_space) <objfiles_range>: New typedef.
10852 <objfiles>: New method.
10853 <objfiles_head>: Rename from objfiles.
10854 (object_files): Update.
10855 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
10856 * guile/scm-pretty-print.c
10857 (ppscm_find_pretty_printer_from_objfiles): Update.
10858 * guile/scm-objfile.c (gdbscm_objfiles): Update.
10859 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
10860 Update.
10861 * python/py-progspace.c (pspy_get_objfiles): Update.
10862 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
10863 Update.
10864 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
10865 (objfpy_lookup_objfile_by_build_id): Update.
10866 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
10867 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
10868 Update.
10869 * symtab.c (iterate_over_symtabs, matching_obj_sections)
10870 (expand_symtab_containing_pc, lookup_objfile_from_block)
10871 (lookup_static_symbol, basic_lookup_transparent_type)
10872 (find_pc_sect_compunit_symtab, find_symbol_at_address)
10873 (find_line_symtab, info_sources_command)
10874 (default_collect_symbol_completion_matches_break_on)
10875 (make_source_files_completion_list, find_main_name): Update.
10876 * symmisc.c (print_symbol_bcache_statistics)
10877 (print_objfile_statistics, maintenance_print_symbols)
10878 (maintenance_print_msymbols, maintenance_print_objfiles)
10879 (maintenance_info_symtabs, maintenance_check_symtabs)
10880 (maintenance_expand_symtabs, maintenance_info_line_tables):
10881 Update.
10882 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
10883 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
10884 (map_overlay_command, unmap_overlay_command)
10885 (simple_overlay_update, expand_symtabs_matching)
10886 (map_symbol_filenames): Update.
10887 * symfile-debug.c (set_debug_symfile): Update.
10888 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
10889 Update.
10890 * source.c (select_source_symtab, forget_cached_source_info):
10891 Update.
10892 * solib.c (solib_read_symbols): Update.
10893 * solib-spu.c (append_ocl_sos): Update.
10894 * psymtab.c (maintenance_print_psymbols)
10895 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
10896 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
10897 * printcmd.c (info_symbol_command): Update.
10898 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
10899 Update.
10900 * objfiles.h (class all_objfiles): Remove.
10901 * objfiles.c (have_partial_symbols, have_full_symbols)
10902 (have_minimal_symbols, qsort_cmp, update_section_map)
10903 (shared_objfile_contains_address_p)
10904 (default_iterate_over_objfiles_in_search_order): Update.
10905 * objc-lang.c (info_selectors_command, info_classes_command)
10906 (find_methods): Update.
10907 * minsyms.c (find_solib_trampoline_target): Update.
10908 * maint.c (maintenance_info_sections)
10909 (maintenance_translate_address, count_symtabs_and_blocks):
10910 Update.
10911 * main.c (captured_main_1): Update.
10912 * linux-thread-db.c (try_thread_db_load_from_pdir)
10913 (has_libpthread): Update.
10914 * linespec.c (iterate_over_all_matching_symtabs)
10915 (search_minsyms_for_name): Update.
10916 * jit.c (jit_find_objf_with_entry_addr): Update.
10917 * hppa-tdep.c (find_unwind_entry)
10918 (hppa_lookup_stub_minimal_symbol): Update.
10919 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
10920 Update.
10921 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
10922 (elf_gnu_ifunc_resolve_by_got): Update.
10923 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
10924 * dwarf-index-write.c (save_gdb_index_command): Update.
10925 * cp-support.c (add_symbol_overload_list_qualified): Update.
10926 * breakpoint.c (create_overlay_event_breakpoint)
10927 (create_longjmp_master_breakpoint)
10928 (create_std_terminate_master_breakpoint)
10929 (create_exception_master_breakpoint): Update.
10930 * blockframe.c (find_pc_partial_function): Update.
10931 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
10932 (ada_collect_symbol_completion_matches)
10933 (ada_add_global_exceptions): Update.
10934
776489e0
TT
109352019-01-17 Tom Tromey <tom@tromey.com>
10936
10937 * solib-target.c (lm_info_target_p): Remove typedef. Don't
10938 declare VEC.
10939 (solib_target_parse_libraries): Change return type.
10940 (library_list_start_segment, library_list_start_section)
10941 (library_list_end_library, library_list_start_library); Update.
10942 (solib_target_free_library_list): Remove.
10943 (solib_target_parse_libraries): Remove cleanup. Change return
10944 type.
10945 (solib_target_current_sos): Update.
10946
6471e7d2
TT
109472019-01-17 Tom Tromey <tromey@bapiya>
10948
10949 * valprint.c: Replace "the the" with "the".
10950 * symtab.c: Replace "the the" with "the".
10951 * solib.c: Replace "the the" with "the".
10952 * solib-dsbt.c: Replace "the the" with "the".
10953 * linespec.c: Replace "the the" with "the".
10954 * dwarf2loc.h: Replace "the the" with "the".
10955 * amd64-windows-tdep.c: Replace "the the" with "the".
10956 * aarch64-tdep.c: Replace "the the" with "the".
10957
c24bdb02
KS
109582019-01-16 Keith Seitz <keiths@redhat.com>
10959
10960 PR gdb/23773
10961 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
10962 <builder>: Rename to ..
10963 <m_builder>: ... this and make private.
10964 (dwarf2_cu::get_builder): New method. Change all users of
10965 `builder' to use this method.
10966 (dwarf2_start_symtab): Move to ...
10967 (dwarf2_cu::start_symtab): ... here. Update all callers
10968 (setup_type_unit_groups): Move to ...
10969 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
10970 callers.
10971 (dwarf2_cu::reset_builder): New method.
10972 (process_full_compunit, process_full_type_unit): Use
10973 dwarf2_cu::reset_builder.
10974 (follow_die_offset): Record the ancestor CU if it is different
10975 from the followed DIE's CU.
10976 (follow_die_sig_1): Likewise.
10977
8d64371b
TT
109782019-01-15 Tom Tromey <tom@tromey.com>
10979
10980 * remote.c (class remote_state) <buf>: Now a char_vector.
10981 <buf_size>: Remove.
10982 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
10983 parameter.
10984 (remote_target::getpkt_or_notif_sane_1)
10985 (remote_target::getpkt_sane)
10986 (remote_target::getpkt_or_notif_sane): Likewise.
10987 (class remote_target) <putpkt>: New overload.
10988 (remote_target::read_frame): Change type of "buf_p". Remove
10989 sizeof_p parameter.
10990 (packet_ok): New overload.
10991 (packet_check_result): New overload.
10992 Update all uses.
10993
bb277751
TT
109942019-01-14 Tom Tromey <tom@tromey.com>
10995
10996 * remote-notif.c (handle_notification, remote_notif_ack)
10997 (remote_notif_parse): Make "buf" const.
10998 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
10999 const.
11000 (remote_notif_parse, remote_notif_ack, handle_notification):
11001 Likewise.
11002 * remote.c (remote_notif_stop_parse): Make "buf" const.
11003 (remote_target::remote_parse_stop_reply): Make "buf" const.
11004 (remote_notif_stop_ack): Make "buf" const.
11005
05be00a8
TT
110062019-01-14 Tom Tromey <tom@tromey.com>
11007
11008 * remote.c (remote_console_output): Make parameter const.
11009
491adeca
TT
110102019-01-14 Tom Tromey <tom@tromey.com>
11011
11012 * target-debug.h (target_debug_print_signals): Constify.
11013 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
11014 * procfs.c (procfs_target::pass_signals): Update.
11015 * linux-nat.c (linux_nat_target::pass_signals): Update.
11016 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
11017 * target-delegates.c: Rebuild.
11018 * remote.c (remote_target::program_signals): Update.
11019 (remote_target::pass_signals): Update.
11020 * target.c (target_pass_signals): Constify argument.
11021 (target_program_signals): Likewise.
11022 * target.h (struct target_ops) <pass_signals, program_signals>:
11023 Constify argument.
11024 (target_pass_signals, target_program_signals): Constify argument.
11025
bbd94648
TT
110262019-01-14 Tom Tromey <tom@tromey.com>
11027
11028 PR tui/28819:
11029 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
11030
6f072a10
PFC
110312019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11032
11033 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
11034 field.
11035 * rs6000-tdep.c: Include reggroups.h.
11036 (IS_V_ALIAS_PSEUDOREG): Define.
11037 (rs6000_register_name): Return names for the "vX" aliases.
11038 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
11039 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
11040 aliases. Call default_register_reggroup_p for all other
11041 pseudo-registers.
11042 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
11043 New functions.
11044 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
11045 Handle "vX" aliases.
11046 (v_alias_pseudo_register_collect): New function.
11047 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
11048 (rs6000_gdbarch_init): Initialize "vX" aliases as
11049 pseudo-registers. Restore registration of
11050 rs6000_pseudo_register_reggroup_p with
11051 set_tdesc_pseudo_register_reggroup_p.
11052
1a782351
MF
110532019-01-13 Max Filippov <jcmvbkbc@gmail.com>
11054
11055 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
11056 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
11057 set_gdbarch_num_pseudo_regs.
11058
d73cff18
PW
110592019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11060
11061 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
11062 Remove arg prefixname, add do_set and do_show.
11063 Add member functions set_list and show_list.
11064 * cli/cli-style.c (class cli_style_option): Update accordingly.
11065 (style_set_list): Move to file scope.
11066 (style_show_list): Likewise.
11067 (set_style): Call help_list.
11068 (show_style): Call cmd_show_list.
11069 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
11070 Update to use the new macro.
11071
60a90376
JB
110722019-10-12 Joel Brobecker <brobecker@adacore.com>
11073
11074 * ada-lang.c (_initialize_ada_language): Expand the help text
11075 for the "catch exception" command.
11076
9d7c67bf
PW
110772019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11078
11079 * symtab.c (matching_obj_sections): Initialize obj,
11080 declare it closer to its usage.
11081
7cf47dc4
TT
110822019-01-10 Tom Tromey <tom@tromey.com>
11083
11084 * thread-iter.h (inf_threads_iterator): Use next_iterator.
11085 (basic_inf_threads_range): Remove.
11086 (inf_threads_range, inf_non_exited_threads_range)
11087 (safe_inf_threads_range): Use next_adapter.
11088
d3cb6808
KS
110892019-01-10 Keith Seitz <keiths@redhat.com>
11090
11091 PR gdb/23712
11092 PR symtab/23010
11093 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
11094 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
11095
63a20375
KS
110962019-01-10 Keith Seitz <keiths@redhat.com>
11097
11098 PR gdb/23712
11099 PR symtab/23010
11100 * dictionary.c (pending_to_vector): Remove.
11101 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11102 Remove _1 suffix, replacing functions of the same name. Update
11103 all callers.
11104 (dict_create_hashed, dict_create_hashed_expandable)
11105 (dict_create_linear, dict_create_linear_expandable, dict_free)
11106 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
11107 Make functions static.
11108
b026f593
KS
111092019-01-10 Keith Seitz <keiths@redhat.com>
11110
11111 PR gdb/23712
11112 PR symtab/23010
11113 * dictionary.h (struct dictionary): Replace declaration with
11114 multidictionary.
11115 (dict_create_hashed, dict_create_hashed_expandable)
11116 (dict_create_linear, dict_create_linear_expandable)
11117 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
11118 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
11119 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
11120 taking multidictionary argument.
11121 [ALL_DICT_SYMBOLS]: Update for multidictionary.
11122 * block.h (struct block) <dict>: Change to multidictionary
11123 and rename `multidict'.
11124 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
11125 symmisc.c: Update all dictionary references to multidictionary.
11126
c7748ee9
KS
111272019-01-10 Keith Seitz <keiths@redhat.com>
11128
11129 PR gdb/23712
11130 PR symtab/23010
11131 * dictionary.c: Include unordered_map.
11132 (pending_to_vector): New function.
11133 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
11134 Rewrite the non-"_1" functions to take vector instead
11135 of linked list.
11136 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
11137 "new" _1 versions of the same name.
11138 (multidictionary): Define.
11139 (std::hash<enum language): New definition.
11140 (collate_pending_symbols_by_language, mdict_create_hashed)
11141 (mdict_create_hashed_expandable, mdict_create_linear)
11142 (mdict_create_linear_expandable, mdict_free)
11143 (find_language_dictionary, create_new_language_dictionary)
11144 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
11145 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
11146 (mdict_size, mdict_empty): New functions.
11147 * dictionary.h (mdict_iterator): Define.
11148
67aa1f3c
PA
111492019-01-10 Pedro Alves <palves@redhat.com>
11150
11151 * breakpoint.c (read_uploaded_action)
11152 (create_tracepoint_from_upload): Adjust to use
11153 gdb::unique_xmalloc_ptr.
11154 * ctf.c (ctf_write_uploaded_tp):
11155 (SET_ARRAY_FIELD): Use emplace_back.
11156 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
11157 * tracefile-tfile.c (tfile_write_uploaded_tp):
11158 * tracepoint.c (parse_tracepoint_definition): Adjust to use
11159 gdb::unique_xmalloc_ptr.
11160 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
11161 at_string, cond_string, cmd_strings>: Replace char pointers
11162 with gdb::unique_xmalloc_ptr.
11163
2f667667
PA
111642019-01-10 Pedro Alves <palves@redhat.com>
11165
11166 * solib-target.c (library_list_start_library): Don't xstrdup name.
11167
36cb7237
PA
111682019-01-10 Pedro Alves <palves@redhat.com>
11169
11170 * mdebugread.c (parse_partial_symbols): Use
11171 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
11172
da584958
AB
111732019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11174
11175 * linux-fork.c (scoped_switch_fork_info)
11176 <~scoped_switch_fork_info>: Fix incorrect variable name.
11177
1ef8573c
AB
111782019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
11179
11180 * linux-fork.c (scoped_switch_fork_info)
11181 <scoped_switch_fork_info>: Make explicit.
11182 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
11183
8d7bcccb
TT
111842019-01-10 Tom Tromey <tom@tromey.com>
11185
11186 * objfiles.h (objfile::reset_psymtabs): Update.
11187 * objfiles.c (objfile::objfile): Update.
11188 * psymtab.h (psymtab_storage::obstack): Update.
11189 (psymtab_storage::m_obstack): Use gdb::optional.
11190 (class psymtab_storage): Update comment. Remove objfile
11191 parameter.
11192 * psymtab.c (psymtab_storage::psymtab_storage): Update.
11193
b596a3c7
TT
111942019-01-10 Tom Tromey <tom@tromey.com>
11195
11196 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
11197 <free_psymtabs>: Now private.
11198 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
11199 (allocate_psymtab): Use new method.
11200
a9342b62
TT
112012019-01-10 Tom Tromey <tom@tromey.com>
11202
11203 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
11204 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
11205 * mdebugread.c (parse_partial_symbols): Use
11206 allocate_dependencies.
11207 * dwarf2read.c (dwarf2_create_include_psymtab): Use
11208 allocate_dependencies.
11209 (process_psymtab_comp_unit_reader)
11210 (build_type_psymtab_dependencies): Likewise.
11211 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
11212
5af70966
TT
112132019-01-10 Tom Tromey <tom@tromey.com>
11214
11215 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
11216 PSYMBOL_SET_LANGUAGE.
11217 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
11218
5923a04c
TT
112192019-01-10 Tom Tromey <tom@tromey.com>
11220
11221 * psymtab.h (psymtab_storage::obstack): New method.
11222 <m_obstack>: Rename from obstack; now private.
11223 * psymtab.c (psymtab_storage): Update.
11224 * dwarf2read.c (create_addrmap_from_index)
11225 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
11226 Update.
11227
6d6a12bf
TT
112282019-01-10 Tom Tromey <tom@tromey.com>
11229
11230 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
11231 * objfiles.h (objfile::reset_psymtabs): New method.
11232
d320c2b5
TT
112332019-01-10 Tom Tromey <tom@tromey.com>
11234
11235 * symmisc.c (print_symbol_bcache_statistics): Update.
11236 (print_objfile_statistics): Update.
11237 * symfile.c (reread_symbols): Update.
11238 * psymtab.h (class psymtab_storage): New.
11239 * psymtab.c (psymtab_storage): New constructor.
11240 (~psymtab_storage): New destructor.
11241 (require_partial_symbols): Update.
11242 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
11243 (find_pc_sect_psymtab, find_pc_sect_psymbol)
11244 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
11245 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
11246 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
11247 (start_psymtab_common, end_psymtab_common)
11248 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
11249 (allocate_psymtab): Update.
11250 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
11251 Update.
11252 (dump_psymtab_addrmap, maintenance_print_psymbols)
11253 (maintenance_check_psymtabs): Update.
11254 (class objfile_psymtabs): Move to objfiles.h.
11255 * psympriv.h (discard_psymtab): Now inline.
11256 (psymtab_discarder::psymtab_discarder): Update.
11257 (psymtab_discarder::~psymtab_discarder): Update.
11258 (ALL_OBJFILE_PSYMTABS): Rewrite.
11259 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
11260 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
11261 Remove fields.
11262 <partial_symtabs>: New field.
11263 (class objfile_psymtabs): Move from psymtab.h. Update.
11264 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
11265 psymbol_cache.
11266 (objfile::~objfile): Don't destroy psymbol_cache.
11267 * mdebugread.c (parse_partial_symbols): Update.
11268 * dwarf2read.c (create_addrmap_from_index)
11269 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11270 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
11271 (add_partial_subprogram, dwarf2_ranges_read): Update.
11272 * dwarf-index-write.c (write_address_map)
11273 (write_one_signatured_type, recursively_write_psymbols)
11274 (class debug_names, class debug_names, write_psymtabs_to_index):
11275 Update.
11276
1d94a5a3
TT
112772019-01-10 Tom Tromey <tom@tromey.com>
11278
11279 * symtab.h (SYMBOL_SET_NAMES): Update.
11280 (symbol_set_names): Update.
11281 (MSYMBOL_SET_NAMES): Update.
11282 * symtab.c (symbol_set_names): Change argument to be an
11283 objfile_per_bfd_storage.
11284 * psymtab.c (add_psymbol_to_bcache): Update.
11285 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
11286
0f14768a
TT
112872019-01-10 Tom Tromey <tom@tromey.com>
11288
11289 * symtab.c (create_demangled_names_hash): Change argument to be an
11290 objfile_per_bfd_storage.
11291 (symbol_set_names): Update.
11292
6eee24ce
TT
112932019-01-10 Tom Tromey <tom@tromey.com>
11294
11295 * xcoffread.c (xcoff_initial_scan): Unconditionally call
11296 init_psymbol_list.
11297 * psymtab.c (init_psymbol_list): Do nothing if already called.
11298 * psympriv.h (init_psymbol_list): Add comment.
11299 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
11300 init_psymbol_list.
11301 * dbxread.c (dbx_symfile_read): Unconditionally call
11302 init_psymbol_list.
11303
75aedd27
TT
113042019-01-10 Tom Tromey <tom@tromey.com>
11305
11306 * xcoffread.c (scan_xcoff_symtab): Update.
11307 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
11308 "where".
11309 * mdebugread.c (parse_partial_symbols)
11310 (handle_psymbol_enumerators): Update.
11311 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
11312 * dbxread.c (read_dbx_symtab): Update.
11313 * psympriv.h (psymbol_placement): New enum.
11314 (add_psymbol_to_list): Update.
11315
939652a5
TT
113162019-01-10 Tom Tromey <tom@tromey.com>
11317
11318 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
11319 static_psymbols parameters.
11320 (scan_xcoff_symtab): Update.
11321 * psymtab.c (start_psymtab_common): Remove global_psymbols and
11322 static_psymbols parameters.
11323 * psympriv.h (start_psymtab_common): Update.
11324 * mdebugread.c (parse_partial_symbols): Update.
11325 * dwarf2read.c (create_partial_symtab): Update.
11326 * dbxread.c (read_dbx_symtab): Update.
11327 (start_psymtab): Remove global_psymbols and static_psymbols
11328 parameters.
11329
baa62830
TT
113302019-01-10 Tom Tromey <tom@tromey.com>
11331
11332 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
11333 * psymtab.c (allocate_psymtab): Add comment.
11334 * psympriv.h (allocate_psymtab): Add comment.
11335 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
11336 initializations.
11337 * dbxread.c (dbx_end_psymtab): Remove some initializations.
11338
0e8f53ba
TT
113392019-01-10 Tom Tromey <tom@tromey.com>
11340
11341 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11342 Don't declare.
11343 * mipsread.c: Include mdebugread.h.
11344 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
11345 Declare.
11346 * elfread.c: Include mdebugread.h.
11347
b22a7c6a
TT
113482019-01-09 Tom Tromey <tom@tromey.com>
11349
11350 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
11351 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
11352 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
11353 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
11354 (psym_lookup_symbol, psym_find_last_source_symtab)
11355 (psym_forget_cached_source_info, psym_print_stats)
11356 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
11357 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
11358 (psym_map_matching_symbols, psym_expand_symtabs_matching)
11359 (psym_find_compunit_symtab_by_address)
11360 (maintenance_print_psymbols, maintenance_info_psymtabs)
11361 (maintenance_check_psymtabs): Use ranged for.
11362 * psymtab.h (class objfile_psymtabs): New.
11363 (require_partial_symbols): Return objfile_psymtabs.
11364 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
11365
3b9d3ac2
TT
113662019-01-09 Tom Tromey <tom@tromey.com>
11367
11368 * symfile.c (overlay_invalidate_all, find_pc_overlay)
11369 (find_pc_mapped_section, list_overlays_command)
11370 (map_overlay_command, unmap_overlay_command)
11371 (simple_overlay_update): Use all_objfiles.
11372 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
11373 * printcmd.c (info_symbol_command): Use all_objfiles.
11374 * objfiles.h (ALL_OBJSECTIONS): Remove.
11375 * maint.c (maintenance_translate_address): Use all_objfiles.
11376 * gcore.c (gcore_create_callback): Use all_objfiles.
11377 (objfile_find_memory_regions): Likewise.
11378
8b31193a
TT
113792019-01-09 Tom Tromey <tom@tromey.com>
11380
11381 * symtab.c (find_line_symtab, info_sources_command)
11382 (make_source_files_completion_list): Use objfile_compunits.
11383 * source.c (select_source_symtab): Use objfile_compunits.
11384 * objfiles.h (struct objfile): Update comment.
11385 (ALL_OBJFILES): Remove.
11386 (ALL_FILETABS): Remove.
11387 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
11388 objfile_compunits.
11389
d5da8b3c
TT
113902019-01-09 Tom Tromey <tom@tromey.com>
11391
11392 * symmisc.c (print_objfile_statistics, dump_objfile)
11393 (maintenance_print_symbols): Use compunit_filetabs.
11394 * source.c (forget_cached_source_info_for_objfile): Use
11395 compunit_filetabs.
11396 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
11397 (ALL_FILETABS): Use compunit_filetabs.
11398 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
11399 * coffread.c (coff_symtab_read): Use compunit_filetabs.
11400
5accd1a0
TT
114012019-01-09 Tom Tromey <tom@tromey.com>
11402
11403 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
11404 (compunit_filetabs): New.
11405 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
11406 compunit_filetabs.
11407 (info_sources_command, make_source_files_completion_list): Remove
11408 declaration.
11409 * symmisc.c (print_objfile_statistics, dump_objfile)
11410 (maintenance_print_symbols): Remove declaration.
11411 (maintenance_info_symtabs): Use compunit_filetabs.
11412 (maintenance_info_line_tables): Likewise.
11413 * source.c (select_source_symtab): Change local variable name.
11414 (forget_cached_source_info_for_objfile): Remove declaration.
11415 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
11416 * objfiles.c (objfile_relocate1): Remove declaration.
11417 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11418 declaration.
11419 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
11420 * coffread.c (coff_symtab_read): Remove declaration.
11421 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
11422 compunit_filetabs.
11423
d8aeb77f
TT
114242019-01-09 Tom Tromey <tom@tromey.com>
11425
11426 * symtab.c (lookup_objfile_from_block)
11427 (find_pc_sect_compunit_symtab, search_symbols)
11428 (default_collect_symbol_completion_matches_break_on): Use
11429 objfile_compunits.
11430 * objfiles.h (ALL_COMPUNITS): Remove.
11431 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
11432 * cp-support.c (add_symbol_overload_list_qualified): Use
11433 objfile_compunits.
11434 * ada-lang.c (ada_collect_symbol_completion_matches)
11435 (ada_add_global_exceptions): Use objfile_compunits.
11436
592553c4
TT
114372019-01-09 Tom Tromey <tom@tromey.com>
11438
11439 * source.c (select_source_symtab)
11440 (forget_cached_source_info_for_objfile): Remove declaration.
11441 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
11442 declaration.
11443 * maint.c (count_symtabs_and_blocks): Remove declaration.
11444 * cp-support.c (add_symbol_overload_list_qualified): Remove
11445 declaration.
11446 * coffread.c (coff_symtab_read): Remove declaration.
11447 * symtab.c (lookup_symbol_in_objfile_symtabs)
11448 (basic_lookup_transparent_type_1): Use objfile_compunits.
11449 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
11450 (info_sources_command, search_symbols)
11451 (default_collect_symbol_completion_matches_break_on)
11452 (make_source_files_completion_list): Remove declaration.
11453 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
11454 (ada_collect_symbol_completion_matches)
11455 (ada_add_global_exceptions): Remove declaration.
11456 * linespec.c (iterate_over_all_matching_symtabs): Use
11457 objfile_compunits.
11458 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
11459 (class objfile_compunits): New.
11460 (ALL_COMPUNITS): Use objfile_compunits.
11461 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
11462 (maintenance_check_symtabs, maintenance_info_line_tables): Use
11463 objfile_compunits.
11464 * objfiles.c (objfile_relocate1): Use objfile_compunits.
11465
5325b9bf
TT
114662019-01-09 Tom Tromey <tom@tromey.com>
11467
11468 * symtab.c (search_symbols)
11469 (default_collect_symbol_completion_matches_break_on): Use
11470 objfile_msymbols.
11471 * ada-lang.c (ada_lookup_simple_minsym)
11472 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
11473 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
11474 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
11475 objfile_msymbols.
11476 * coffread.c (coff_symfile_read): Use objfile_msymbols.
11477 * symmisc.c (dump_msymbols): Use objfile_msymbols.
11478 * objc-lang.c (find_methods): Use objfile_msymbols.
11479 (info_selectors_command, info_classes_command): Likewise.
11480 * stabsread.c (scan_file_globals): Use objfile_msymbols.
11481 * objfiles.h (class objfile_msymbols): New.
11482 (ALL_OBJFILE_MSYMBOLS): Remove.
11483 (ALL_MSYMBOLS): Remove.
11484
cac85af2
TT
114852019-01-09 Tom Tromey <tom@tromey.com>
11486
11487 * common/next-iterator.h (next_adapter): Add Iterator template
11488 parameter.
11489 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
11490 (class all_objfiles_safe): New.
11491 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
11492 * objfiles.c (put_objfile_before): Update comment.
11493 (add_separate_debug_objfile): Likewise.
11494 (free_all_objfiles): Use all_objfiles_safe.
11495 (objfile_purge_solibs): Likewise.
11496
aed57c53
TT
114972019-01-09 Tom Tromey <tom@tromey.com>
11498
11499 * symtab.c (iterate_over_symtabs, matching_obj_sections)
11500 (expand_symtab_containing_pc, lookup_static_symbol)
11501 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
11502 (find_symbol_at_address, find_line_symtab, find_main_name): Use
11503 all_objfiles.
11504 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
11505 * breakpoint.c (create_overlay_event_breakpoint)
11506 (create_longjmp_master_breakpoint)
11507 (create_std_terminate_master_breakpoint)
11508 (create_exception_master_breakpoint): Use all_objfiles.
11509 * linux-thread-db.c (try_thread_db_load_from_pdir)
11510 (has_libpthread): Use all_objfiles.
11511 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
11512 * linespec.c (iterate_over_all_matching_symtabs)
11513 (search_minsyms_for_name): Use all_objfiles.
11514 * maint.c (maintenance_info_sections): Use all_objfiles.
11515 * main.c (captured_main_1): Use all_objfiles.
11516 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
11517 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
11518 * guile/scm-pretty-print.c
11519 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
11520 * solib-spu.c (append_ocl_sos): Use all_objfiles.
11521 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
11522 (maintenance_print_msymbols): Use all_objfiles.
11523 * source.c (select_source_symtab): Use all_objfiles.
11524 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
11525 * symfile.c (remove_symbol_file_command)
11526 (expand_symtabs_matching, map_symbol_filenames): Use
11527 all_objfiles.
11528 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
11529 all_objfiles.
11530 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
11531 * objc-lang.c (find_methods): Use all_objfiles.
11532 * objfiles.c (have_partial_symbols, have_full_symbols)
11533 (have_minimal_symbols, qsort_cmp)
11534 (default_iterate_over_objfiles_in_search_order): Use
11535 all_objfiles.
11536 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
11537 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
11538 (maintenance_check_psymtabs): Use all_objfiles.
11539 (ALL_PSYMTABS): Remove.
11540 * compile/compile-object-run.c (do_module_cleanup): Use
11541 all_objfiles.
11542 * blockframe.c (find_pc_partial_function): Use all_objfiles.
11543 * cp-support.c (add_symbol_overload_list_qualified): Use
11544 all_objfiles.
11545 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
11546 Use all_objfiles.
11547 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
11548 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
11549 all_objfiles.
11550 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
11551 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
11552 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
11553 Uses all_objfiles.
11554 * solib.c (solib_read_symbols): Use all_objfiles
11555
99d89cde
TT
115562019-01-09 Tom Tromey <tom@tromey.com>
11557
11558 * probe.c (parse_probes_in_pspace): Use all_objfiles.
11559 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
11560 all_objfiles.
11561 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
11562 * symmisc.c (print_symbol_bcache_statistics)
11563 (print_objfile_statistics, maintenance_print_objfiles)
11564 (maintenance_info_symtabs, maintenance_check_symtabs)
11565 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
11566 all_objfiles.
11567 * source.c (forget_cached_source_info): Use all_objfiles.
11568 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
11569 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
11570 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
11571 * objfiles.c (update_section_map): Use all_objfiles.
11572 (shared_objfile_contains_address_p): Likewise.
11573 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
11574 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
11575
21708325
TT
115762019-01-09 Tom Tromey <tom@tromey.com>
11577
11578 * common/next-iterator.h: New file.
11579 * objfiles.h (class all_objfiles): New.
11580 (struct objfile_iterator): New.
11581
669e09f6
PW
115822019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11583
11584 * NEWS: Move the description of the changed "frame", "select-frame",
11585 and "info frame" commands to the Changed commands section.
11586
041be526
SM
115872019-01-09 Simon Marchi <simon.marchi@ericsson.com>
11588
11589 * gdbtypes.c (check_stub_method_group): Remove handling of old
11590 mangling schemes.
11591 * linespec.c (find_methods): Likewise.
11592 * stabsread.c (read_member_functions): Likewise.
11593 * valops.c (search_struct_method): Likewise.
11594 (value_struct_elt_for_reference): Likewise.
11595 * NEWS: Mention this change.
11596
0e2a2133
AB
115972019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11598
11599 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
11600 print_source_lines.
11601 * source.c (print_source_lines_base): Update line number check.
11602 (print_source_lines): New function.
11603 (source_lines_range::source_lines_range): New function.
11604 * source.h (class source_lines_range): New class.
11605 (print_source_lines): New declaration.
11606
1055a3b4
PW
116072019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11608
11609 * linespec.c (linespec_state_destructor): Free self->canonical_names.
11610
cfeadda5
TT
116112019-01-08 Tom Tromey <tom@tromey.com>
11612 Simon Marchi <simon.marchi@ericsson.com>
11613
11614 PR gdb/24060
11615 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
11616 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
11617 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11618 * f-exp.y (DOLLAR_VARIABLE): Likewise.
11619 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
11620 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
11621
583068ca
AB
116222019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11623
11624 * source.c (select_source_symtab): Move header comment to
11625 declaration in source.h.
11626 (forget_cached_source_info_for_objfile): Likewise.
11627 (forget_cached_source_info): Likewise.
11628 (identify_source_line): Likewise.
11629 * source.h (identify_source_line): Move declaration from symtab.h
11630 and add comment from source.c
11631 (print_source_lines): Likewise.
11632 (forget_cached_source_info_for_objfile): Likewise.
11633 (forget_cached_source_info): Likewise.
11634 (select_source_symtab): Likewise.
11635 (enum print_source_lines_flag): Move definition from symtab.h.
11636 * symtab.h (identify_source_line): Move declaration to source.h.
11637 (print_source_lines): Likewise.
11638 (forget_cached_source_info_for_objfile): Likewise.
11639 (forget_cached_source_info): Likewise.
11640 (select_source_symtab): Likewise.
11641 (enum print_source_lines_flag): Move definition to source.h.
11642 * tui/tui-hooks.c: Add 'source.h' include.
11643
ec98a4ad
AB
116442019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11645
11646 * source.c (print_source_lines_base): Handle requests to print
11647 reverse line number sequences, and guard against empty lines
11648 string.
11649
62ea19c1
AB
116502019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
11651
11652 * source.c (print_source_lines_base): Fix skip of '\r' if next
11653 character is '\n'.
11654
9d30e1fd
TT
116552019-01-06 Tom Tromey <tom@tromey.com>
11656
11657 * c-exp.y (struct c_parse_state) <macro_original_text,
11658 expansion_obstack>: New member.
11659 (macro_original_text, expansion_obstack): Remove globals.
11660 (scan_macro_expansion, scanning_macro_expansion)
11661 (finished_macro_expansion): Update.
11662 (scan_macro_cleanup): Remove.
11663 (yylex, c_parse): Update.
11664
c65bac38
TT
116652019-01-06 Tom Tromey <tom@tromey.com>
11666
11667 * c-exp.y (struct c_parse_state) <strings>: New member.
11668 (operator_stoken): Update.
11669
02e12e38
TT
116702019-01-06 Tom Tromey <tom@tromey.com>
11671
11672 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
11673 (union type_stack_elt) <typelist_val>: Now a pointer to
11674 std::vector.
11675 (type_stack_cleanup): Don't declare.
11676 (push_typelist): Update.
11677 * parse.c (pop_typelist): Return a std::vector.
11678 (push_typelist): Take a std::vector.
11679 (follow_types): Update. Do not free args.
11680 (type_stack_cleanup): Remove.
11681 * c-exp.y (struct c_parse_state): New.
11682 (cpstate): New global.
11683 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
11684 (nonempty_typelist): Update.
11685 (func_mod): Create a new vector.
11686 (c_parse): Create a c_parse_state.
11687 (check_parameter_typelist): Do not delete params.
11688 (function_method): Update. Do not delete type_list.
11689
f097f5ad
TT
116902019-01-06 Tom Tromey <tom@tromey.com>
11691
11692 PR gdb/28155:
11693 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
11694 check_typedef.
11695 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
11696 (print_return_value): Likewise.
11697
d2adf9f1
TT
116982019-01-05 Tom Tromey <tom@tromey.com>
11699
11700 * contrib/cleanup_check.py: Remove.
11701 * contrib/gcc-with-excheck: Remove.
11702 * contrib/exsummary.py: Remove.
11703 * contrib/excheck.py: Remove.
11704
2eab46b1
JB
117052019-01-05 Joel Brobecker <brobecker@adacore.com>
11706
11707 * thread.c (delete_thread_1): Add gdb_assert that THR is not
11708 NULL. Initialize tpprev to NULL instead of assigning it
11709 to NULL on the next statement.
11710 * windows-nat.c (windows_delete_thread): Remove check for
11711 main_thread_id before printing thread exit notifications.
11712 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
11713 Remove thread ID check against main_thread_id.
11714 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
11715 windows_delete_thread.
11716 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
11717
48c5e7e2
TT
117182019-01-04 Tom Tromey <tom@tromey.com>
11719
11720 * compile/compile.c (_initialize_compile): Use upper case for
11721 metasyntactic variables.
11722 * symmisc.c (_initialize_symmisc): Use upper case for
11723 metasyntactic variables.
11724 * psymtab.c (_initialize_psymtab): Use upper case for
11725 metasyntactic variables.
11726 * demangle.c (demangle_command): Use upper case for metasyntactic
11727 variables.
11728 (_initialize_demangler): Likewise.
11729 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
11730 variables.
11731
986041cd
TT
117322019-01-03 Tom Tromey <tom@tromey.com>
11733
11734 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
11735
7c711119
TT
117362019-01-03 Tom Tromey <tom@tromey.com>
11737
11738 * python/py-symtab.c (salpy_str): Update.
11739 (struct salpy_sal_object) <symtab>: Now a PyObject.
11740 (salpy_dealloc): Update.
11741 (del_objfile_sal): Use gdbpy_ref.
11742
1b20edf0
TT
117432019-01-03 Tom Tromey <tom@tromey.com>
11744
11745 * python/py-type.c (convert_field): Use new_reference. Return
11746 gdbpy_ref.
11747 (make_fielditem): Return gdbpy_ref.
11748 (typy_fields): Update.
11749 (typy_getitem): Update.
11750 (field_name): Return gdbpy_ref. Use new_reference.
11751 (typy_iterator_iternext): Update.
11752
ea41325b
TT
117532019-01-03 Tom Tromey <tom@tromey.com>
11754
11755 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
11756
2a3c71d6
TT
117572019-01-03 Tom Tromey <tom@tromey.com>
11758
11759 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
11760 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
11761 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
11762 (pspy_set_frame_filters, pspy_set_frame_unwinders)
11763 (pspy_set_type_printers): Likewise.
11764 * python/py-function.c (fnpy_init): Use gdbpy_ref.
11765 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
11766 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
11767 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
11768 (objfpy_set_type_printers): Likewise.
11769
5c329e6a
TT
117702019-01-03 Tom Tromey <tom@tromey.com>
11771
11772 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
11773 (gdbpy_print_stack): Use gdbpy_err_fetch.
11774 * python/python-internal.h (class gdbpy_err_fetch): New class.
11775 (class gdbpy_enter) <m_error_type, m_error_value,
11776 m_error_traceback>: Remove.
11777 <m_error>: New member.
11778 (gdbpy_exception_to_string): Don't declare.
11779 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
11780 * python/py-value.c (convert_value_from_python): Use
11781 gdbpy_err_fetch.
11782 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
11783 gdbpy_exception_to_string.
11784 (gdbpy_handle_exception): Use gdbpy_err_fetch.
11785 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
11786 gdbpy_err_fetch.
11787
169bb27b
AB
117882019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11789
11790 * linux-nat.c (delete_lwp_cleanup): Delete.
11791 (struct lwp_deleter): New struct.
11792 (lwp_info_up): New typedef.
11793 (linux_nat_target::follow_fork): Delete cleanup, and make use of
11794 lwp_info_up.
11795
a07c8880
AB
117962019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11797
11798 * linux-fork.c (class scoped_switch_fork_info): New class.
11799 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
11800
26089c49
AB
118012019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11802
11803 * valops.c (find_overload_match): Remove use of null_cleanup, and
11804 calls to do_cleanups.
11805
06d3e5b0
AB
118062019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11807
11808 * compile/compile-cplus-types.c
11809 (compile_cplus_instance::decl_name): Handle changes to
11810 cp_func_name.
11811 * cp-support.c (cp_func_name): Update header comment, update
11812 return type.
11813 * cp-support.h (cp_func_name): Update return type in declaration.
11814 * valops.c (find_overload_match): Move temp_func local to top
11815 level of function and change its type. Use temp_func to hold and
11816 delete temporary string obtained from cp_func_name.
11817
66644cd3
AB
118182019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
11819
11820 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
11821 gdb::char_vector, remove cleanup, and update uses of `msg`.
11822
592d8c0a
JW
118232019-01-03 Jim Wilson <jimw@sifive.com>
11824
11825 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
11826
c55d06ec
TT
118272019-01-02 Tom Tromey <tom@tromey.com>
11828
11829 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
11830 (tdesc_parse_xml): Remove cleanups.
11831 * target-descriptions.h (make_cleanup_free_target_description):
11832 Don't declare.
11833 (target_desc_deleter): New struct.
11834 (target_desc_up): New typedef.
11835 * target-descriptions.c (target_desc_deleter::operator()): Rename
11836 from free_target_description.
11837 (make_cleanup_free_target_description): Remove.
11838
3a6ae42d
TT
118392019-01-02 Tom Tromey <tom@tromey.com>
11840
11841 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
11842 constructor, destructor.
11843 (linespec_parser): Remove typedef.
11844 (~linespec_parser): Rename from linespec_parser_delete.
11845 (linespec_lex_to_end, linespec_complete_label)
11846 (linespec_complete): Update.
11847 (decode_line_full): Remove cleanups.
11848 (decode_line_1): Update.
11849
61fd3e73
TT
118502019-01-02 Tom Tromey <tom@tromey.com>
11851
11852 * python/python-internal.h (inferior_to_inferior_object): Change
11853 return type.
11854 * python/py-exitedevent.c (create_exited_event_object): Update.
11855 * python/py-inferior.c (inferior_to_inferior_object): Return
11856 gdbpy_ref.
11857 (python_new_inferior, python_inferior_deleted)
11858 (thread_to_thread_object, delete_thread_object)
11859 (build_inferior_list, gdbpy_selected_inferior): Update.
11860 * python/py-infthread.c (create_thread_object): Update. Also fail
11861 if inferior_to_inferior_object fails.
11862
d20172fc
SM
118632019-01-02 Simon Marchi <simon.marchi@ericsson.com>
11864
11865 * inferior.h (class inferior) <displaced_step_state>: New field.
11866 * infrun.h (struct displaced_step_state): Move here from
11867 infrun.c. Initialize fields, add constructor.
11868 <inf>: Remove field.
11869 <reset>: New method.
11870 * infrun.c (struct displaced_step_inferior_state): Move to
11871 infrun.h.
11872 (displaced_step_inferior_states): Remove.
11873 (get_displaced_stepping_state): Adust.
11874 (displaced_step_in_progress_any_inferior): Adjust.
11875 (displaced_step_in_progress_thread): Adjust.
11876 (displaced_step_in_progress): Adjust.
11877 (add_displaced_stepping_state): Remove.
11878 (get_displaced_step_closure_by_addr): Adjust.
11879 (remove_displaced_stepping_state): Remove.
11880 (infrun_inferior_exit): Call displaced_step_state.reset.
11881 (use_displaced_stepping): Don't check for NULL.
11882 (displaced_step_prepare_throw): Call
11883 get_displaced_stepping_state.
11884 (displaced_step_fixup): Don't check for NULL.
11885 (prepare_for_detach): Don't check for NULL.
11886
e3319240
PW
118872019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11888
11889 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
11890 in case of call that did not complete.
11891
5d36dfb9
AU
118922019-01-02 Andrey Utkin <autkin@undo.io>
11893
11894 * symfile.c (find_separate_debug_file): Fix search of debug files for
11895 remote debuggee.
11896
8833fbf0
TT
118972019-01-02 Tom Tromey <tom@tromey.com>
11898
11899 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
11900 indentation.
11901 * python/py-frame.c (frapy_older): Remove cast.
11902 (frapy_newer): Likewise.
11903 * python/py-breakpoint.c (local_setattro): Remove cast.
11904 * python/py-arch.c (archpy_name): Remove local variable.
11905 * python/py-type.c (gdbpy_lookup_type): Remove cast.
11906
4ada3dfd
JB
119072019-01-02 Joel Brobecker <brobecker@adacore.com>
11908
11909 * unittests/basic_string_view/element_access/char/empty.cc:
11910 Fix year range in copyright header.
11911
113b7b81
AB
119122019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
11913
11914 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
11915 Delete.
11916 <operator==>: Update with for removed field.
11917 <hash>: Likewise.
11918 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
11919 <isa_features>: ...this.
11920 <abi_features>: New field.
11921 (riscv_isa_flen): Update comment.
11922 (riscv_abi_xlen): New declaration.
11923 (riscv_abi_flen): New declaration.
11924 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
11925 isa_features.
11926 (riscv_abi_xlen): New function.
11927 (riscv_isa_flen): Update to get answer from isa_features.
11928 (riscv_abi_flen): New function.
11929 (riscv_has_fp_abi): Update to get answer from abi_features.
11930 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
11931 xlen and flen.
11932 (riscv_call_info) <xlen, flen>: Update comment.
11933 (riscv_call_arg_struct): Remove invalid assertions
11934 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
11935 is removed.
11936 (riscv_gdbarch_init): Gather isa features and abi features
11937 separately, ensure both match on the gdbarch when reusing an old
11938 gdbarch. Relax an error check to allow 32-bit abi float to run on
11939 a target with 64-bit float hardware.
11940
b18ca514
PW
119412019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11942
11943 * source.c (search_command_helper): Stop reverse search
11944 when line 1 has been searched.
11945
ec70d8db
PW
119462019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11947
11948 * record-full.c (record_full_base_target::close): Rewrite
11949 record_full_core_buf_list free logic.
11950
5b38f9c1
PW
119512019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11952
11953 * break-catch-syscall.c (print_one_catch_syscall): xfree
11954 the last text.
11955
66d91b39
JB
119562019-01-01 Joel Brobecker <brobecker@adacore.com>
11957
11958 * top.c (print_gdb_version): Update Copyright year in version
11959 message.
11960
42a4f53d
JB
119612019-01-01 Joel Brobecker <brobecker@adacore.com>
11962
11963 Update copyright year range in all GDB files.
11964
7e955d83 119652019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 11966
5bbd631d 11967 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 11968
5bbd631d 11969For older changes see ChangeLog-2018.
c906108c
SS
11970\f
11971Local Variables:
11972mode: change-log
11973left-margin: 8
11974fill-column: 74
11975version-control: never
57da7796 11976coding: utf-8
c906108c 11977End:
5bbd631d 11978
This page took 2.880595 seconds and 4 git commands to generate.